tcce-design-system-test 0.3.26 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- (function(T,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","formik"],f):(T=typeof globalThis<"u"?globalThis:T||self,f(T["tcce-design-system-components"]={},T.React,T["react/jsx-runtime"],T.ReactDOM,T.Formik))})(this,(function(T,f,p,ci,Gc){"use strict";function Xc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const cn=Xc(f);var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},me.apply(this,arguments)};function mt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function qc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Zc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jc=qc(function(e){return Zc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),X="-ms-",zt="-moz-",U="-webkit-",di="comm",dn="rule",tr="decl",Qc="@import",ui="@keyframes",ed="@layer",hi=Math.abs,nr=String.fromCharCode,rr=Object.assign;function td(e,t){return se(e,0)^45?(((t<<2^se(e,0))<<2^se(e,1))<<2^se(e,2))<<2^se(e,3):0}function fi(e){return e.trim()}function Oe(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function un(e,t,n){return e.indexOf(t,n)}function se(e,t){return e.charCodeAt(t)|0}function gt(e,t,n){return e.slice(t,n)}function Le(e){return e.length}function pi(e){return e.length}function Rt(e,t){return t.push(e),e}function nd(e,t){return e.map(t).join("")}function mi(e,t){return e.filter(function(n){return!Oe(n,t)})}var hn=1,yt=1,gi=0,xe=0,te=0,vt="";function fn(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:hn,column:yt,length:i,return:"",siblings:a}}function Ue(e,t){return rr(fn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function bt(e){for(;e.root;)e=Ue(e.root,{children:[e]});Rt(e,e.siblings)}function rd(){return te}function od(){return te=xe>0?se(vt,--xe):0,yt--,te===10&&(yt=1,hn--),te}function Ae(){return te=xe<gi?se(vt,xe++):0,yt++,te===10&&(yt=1,hn++),te}function et(){return se(vt,xe)}function pn(){return xe}function mn(e,t){return gt(vt,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 id(e){return hn=yt=1,gi=Le(vt=e),xe=0,[]}function sd(e){return vt="",e}function ir(e){return fi(mn(xe-1,sr(e===91?e+2:e===40?e+1:e)))}function ad(e){for(;(te=et())&&te<33;)Ae();return or(e)>2||or(te)>3?"":" "}function ld(e,t){for(;--t&&Ae()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return mn(e,pn()+(t<6&&et()==32&&Ae()==32))}function sr(e){for(;Ae();)switch(te){case e:return xe;case 34:case 39:e!==34&&e!==39&&sr(te);break;case 40:e===41&&sr(e);break;case 92:Ae();break}return xe}function cd(e,t){for(;Ae()&&e+te!==57;)if(e+te===84&&et()===47)break;return"/*"+mn(t,xe-1)+"*"+nr(e===47?e:Ae())}function dd(e){for(;!or(et());)Ae();return mn(e,xe)}function ud(e){return sd(gn("",null,null,null,[""],e=id(e),0,[0],e))}function gn(e,t,n,r,o,s,i,a,c){for(var d=0,u=0,l=i,h=0,m=0,g=0,v=1,b=1,y=1,S=0,w="",A=o,E=s,k=r,P=w;b;)switch(g=S,S=Ae()){case 40:if(g!=108&&se(P,l-1)==58){un(P+=O(ir(S),"&","&\f"),"&\f",hi(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:P+=ir(S);break;case 9:case 10:case 13:case 32:P+=ad(g);break;case 92:P+=ld(pn()-1,7);continue;case 47:switch(et()){case 42:case 47:Rt(hd(cd(Ae(),pn()),t,n,c),c);break;default:P+="/"}break;case 123*v:a[d++]=Le(P)*y;case 125*v:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+u:y==-1&&(P=O(P,/\f/g,"")),m>0&&Le(P)-l&&Rt(m>32?vi(P+";",r,n,l-1,c):vi(O(P," ","")+";",r,n,l-2,c),c);break;case 59:P+=";";default:if(Rt(k=yi(P,t,n,d,u,o,a,w,A=[],E=[],l,s),s),S===123)if(u===0)gn(P,t,k,k,A,s,l,a,E);else switch(h===99&&se(P,3)===110?100:h){case 100:case 108:case 109:case 115:gn(e,k,k,r&&Rt(yi(e,k,k,0,0,o,a,w,o,A=[],l,E),E),o,E,l,a,r?A:E);break;default:gn(P,k,k,k,[""],E,0,a,E)}}d=u=m=0,v=y=1,w=P="",l=i;break;case 58:l=1+Le(P),m=g;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&od()==125)continue}switch(P+=nr(S),S*v){case 38:y=u>0?1:(P+="\f",-1);break;case 44:a[d++]=(Le(P)-1)*y,y=1;break;case 64:et()===45&&(P+=ir(Ae())),h=et(),u=l=Le(w=P+=dd(pn())),S++;break;case 45:g===45&&Le(P)==2&&(v=0)}}return s}function yi(e,t,n,r,o,s,i,a,c,d,u,l){for(var h=o-1,m=o===0?s:[""],g=pi(m),v=0,b=0,y=0;v<r;++v)for(var S=0,w=gt(e,h+1,h=hi(b=i[v])),A=e;S<g;++S)(A=fi(b>0?m[S]+" "+w:O(w,/&\f/g,m[S])))&&(c[y++]=A);return fn(e,t,n,o===0?dn:a,c,d,u,l)}function hd(e,t,n,r){return fn(e,t,n,di,nr(rd()),gt(e,2,-2),0,r)}function vi(e,t,n,r,o){return fn(e,t,n,tr,gt(e,0,r),gt(e,r+1,-1),r,o)}function bi(e,t,n){switch(td(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 4789:return zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+zt+e+X+e+e;case 5936:switch(se(e,t+11)){case 114:return U+e+X+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+X+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+X+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+X+e+e;case 6165:return U+e+X+"flex-"+e+e;case 5187:return U+e+O(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+X+"flex-$1$2")+e;case 5443:return U+e+X+"flex-item-"+O(e,/flex-|-self/g,"")+(Oe(e,/flex-|baseline/)?"":X+"grid-row-"+O(e,/flex-|-self/g,""))+e;case 4675:return U+e+X+"flex-line-pack"+O(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+X+O(e,"shrink","negative")+e;case 5292:return U+e+X+O(e,"basis","preferred-size")+e;case 6060:return U+"box-"+O(e,"-grow","")+U+e+X+O(e,"grow","positive")+e;case 4554:return U+O(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4200:if(!Oe(e,/flex-|baseline/))return X+"grid-column-align"+gt(e,t)+e;break;case 2592:case 3360:return X+O(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Oe(r.props,/grid-\w+-end/)})?~un(e+(n=n[t].value),"span",0)?e:X+O(e,"-start","")+e+X+"grid-row-span:"+(~un(n,"span",0)?Oe(n,/\d+/):+Oe(n,/\d+/)-+Oe(e,/\d+/))+";":X+O(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Oe(r.props,/grid-\w+-start/)})?e:X+O(O(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Le(e)-1-t>6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+zt+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch",0)?bi(O(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return O(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,c,d){return X+o+":"+s+d+(i?X+o+"-span:"+(a?c:+c-+s)+d:"")+e});case 4949:if(se(e,t+6)===121)return O(e,":",":"+U)+e;break;case 6444:switch(se(e,se(e,14)===45?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(se(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+X+"$2box$3")+e;case 100:return O(e,":",":"+X)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,"scroll-","scroll-snap-")+e}return e}function yn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function fd(e,t,n,r){switch(e.type){case ed:if(e.children.length)break;case Qc:case tr:return e.return=e.return||e.value;case di:return"";case ui:return e.return=e.value+"{"+yn(e.children,r)+"}";case dn:if(!Le(e.value=e.props.join(",")))return""}return Le(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function pd(e){var t=pi(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function md(e){return function(t){t.root||(t=t.return)&&e(t)}}function gd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case tr:e.return=bi(e.value,e.length,n);return;case ui:return yn([Ue(e,{value:O(e.value,"@","@"+U)})],r);case dn:if(e.length)return nd(n=e.props,function(o){switch(Oe(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bt(Ue(e,{props:[O(o,/:(read-\w+)/,":"+zt+"$1")]})),bt(Ue(e,{props:[o]})),rr(e,{props:mi(n,r)});break;case"::placeholder":bt(Ue(e,{props:[O(o,/:(plac\w+)/,":"+U+"input-$1")]})),bt(Ue(e,{props:[O(o,/:(plac\w+)/,":"+zt+"$1")]})),bt(Ue(e,{props:[O(o,/:(plac\w+)/,X+"input-$1")]})),bt(Ue(e,{props:[o]})),rr(e,{props:mi(n,r)});break}return""})}}var yd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",wi="active",xi="data-styled-version",vn="6.1.19",ar=`/*!sc*/
2
- `,bn=typeof window<"u"&&typeof document<"u",vd=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Si=/invalid hook call/i,wn=new Set,bd=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
1
+ (function(T,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","formik"],f):(T=typeof globalThis<"u"?globalThis:T||self,f(T["tcce-design-system-components"]={},T.React,T["react/jsx-runtime"],T.ReactDOM,T.Formik))})(this,(function(T,f,p,li,Zc){"use strict";function qc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const cn=qc(f);var ge=function(){return ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ge.apply(this,arguments)};function mt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Jc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Qc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ed=Jc(function(e){return Qc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Z="-ms-",zt="-moz-",Y="-webkit-",ci="comm",dn="rule",nr="decl",td="@import",di="@keyframes",nd="@layer",ui=Math.abs,rr=String.fromCharCode,or=Object.assign;function rd(e,t){return se(e,0)^45?(((t<<2^se(e,0))<<2^se(e,1))<<2^se(e,2))<<2^se(e,3):0}function hi(e){return e.trim()}function Oe(e,t){return(e=t.exec(e))?e[0]:e}function j(e,t,n){return e.replace(t,n)}function un(e,t,n){return e.indexOf(t,n)}function se(e,t){return e.charCodeAt(t)|0}function gt(e,t,n){return e.slice(t,n)}function Le(e){return e.length}function fi(e){return e.length}function Rt(e,t){return t.push(e),e}function od(e,t){return e.map(t).join("")}function pi(e,t){return e.filter(function(n){return!Oe(n,t)})}var hn=1,yt=1,mi=0,Se=0,ne=0,vt="";function fn(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:hn,column:yt,length:i,return:"",siblings:a}}function Ue(e,t){return or(fn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function bt(e){for(;e.root;)e=Ue(e.root,{children:[e]});Rt(e,e.siblings)}function id(){return ne}function sd(){return ne=Se>0?se(vt,--Se):0,yt--,ne===10&&(yt=1,hn--),ne}function Ae(){return ne=Se<mi?se(vt,Se++):0,yt++,ne===10&&(yt=1,hn++),ne}function et(){return se(vt,Se)}function pn(){return Se}function mn(e,t){return gt(vt,e,t)}function ir(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ad(e){return hn=yt=1,mi=Le(vt=e),Se=0,[]}function ld(e){return vt="",e}function sr(e){return hi(mn(Se-1,ar(e===91?e+2:e===40?e+1:e)))}function cd(e){for(;(ne=et())&&ne<33;)Ae();return ir(e)>2||ir(ne)>3?"":" "}function dd(e,t){for(;--t&&Ae()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return mn(e,pn()+(t<6&&et()==32&&Ae()==32))}function ar(e){for(;Ae();)switch(ne){case e:return Se;case 34:case 39:e!==34&&e!==39&&ar(ne);break;case 40:e===41&&ar(e);break;case 92:Ae();break}return Se}function ud(e,t){for(;Ae()&&e+ne!==57;)if(e+ne===84&&et()===47)break;return"/*"+mn(t,Se-1)+"*"+rr(e===47?e:Ae())}function hd(e){for(;!ir(et());)Ae();return mn(e,Se)}function fd(e){return ld(gn("",null,null,null,[""],e=ad(e),0,[0],e))}function gn(e,t,n,r,o,s,i,a,l){for(var d=0,u=0,c=i,h=0,m=0,g=0,b=1,x=1,y=1,C=0,w="",A=o,P=s,k=r,E=w;x;)switch(g=C,C=Ae()){case 40:if(g!=108&&se(E,c-1)==58){un(E+=j(sr(C),"&","&\f"),"&\f",ui(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:E+=sr(C);break;case 9:case 10:case 13:case 32:E+=cd(g);break;case 92:E+=dd(pn()-1,7);continue;case 47:switch(et()){case 42:case 47:Rt(pd(ud(Ae(),pn()),t,n,l),l);break;default:E+="/"}break;case 123*b:a[d++]=Le(E)*y;case 125*b:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+u:y==-1&&(E=j(E,/\f/g,"")),m>0&&Le(E)-c&&Rt(m>32?yi(E+";",r,n,c-1,l):yi(j(E," ","")+";",r,n,c-2,l),l);break;case 59:E+=";";default:if(Rt(k=gi(E,t,n,d,u,o,a,w,A=[],P=[],c,s),s),C===123)if(u===0)gn(E,t,k,k,A,s,c,a,P);else switch(h===99&&se(E,3)===110?100:h){case 100:case 108:case 109:case 115:gn(e,k,k,r&&Rt(gi(e,k,k,0,0,o,a,w,o,A=[],c,P),P),o,P,c,a,r?A:P);break;default:gn(E,k,k,k,[""],P,0,a,P)}}d=u=m=0,b=y=1,w=E="",c=i;break;case 58:c=1+Le(E),m=g;default:if(b<1){if(C==123)--b;else if(C==125&&b++==0&&sd()==125)continue}switch(E+=rr(C),C*b){case 38:y=u>0?1:(E+="\f",-1);break;case 44:a[d++]=(Le(E)-1)*y,y=1;break;case 64:et()===45&&(E+=sr(Ae())),h=et(),u=c=Le(w=E+=hd(pn())),C++;break;case 45:g===45&&Le(E)==2&&(b=0)}}return s}function gi(e,t,n,r,o,s,i,a,l,d,u,c){for(var h=o-1,m=o===0?s:[""],g=fi(m),b=0,x=0,y=0;b<r;++b)for(var C=0,w=gt(e,h+1,h=ui(x=i[b])),A=e;C<g;++C)(A=hi(x>0?m[C]+" "+w:j(w,/&\f/g,m[C])))&&(l[y++]=A);return fn(e,t,n,o===0?dn:a,l,d,u,c)}function pd(e,t,n,r){return fn(e,t,n,ci,rr(id()),gt(e,2,-2),0,r)}function yi(e,t,n,r,o){return fn(e,t,n,nr,gt(e,0,r),gt(e,r+1,-1),r,o)}function vi(e,t,n){switch(rd(e,t)){case 5103:return Y+"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 Y+e+e;case 4789:return zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+zt+e+Z+e+e;case 5936:switch(se(e,t+11)){case 114:return Y+e+Z+j(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Z+j(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Z+j(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Y+e+Z+e+e;case 6165:return Y+e+Z+"flex-"+e+e;case 5187:return Y+e+j(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return Y+e+Z+"flex-item-"+j(e,/flex-|-self/g,"")+(Oe(e,/flex-|baseline/)?"":Z+"grid-row-"+j(e,/flex-|-self/g,""))+e;case 4675:return Y+e+Z+"flex-line-pack"+j(e,/align-content|flex-|-self/g,"")+e;case 5548:return Y+e+Z+j(e,"shrink","negative")+e;case 5292:return Y+e+Z+j(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+j(e,"-grow","")+Y+e+Z+j(e,"grow","positive")+e;case 4554:return Y+j(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return j(j(j(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return j(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return j(j(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4200:if(!Oe(e,/flex-|baseline/))return Z+"grid-column-align"+gt(e,t)+e;break;case 2592:case 3360:return Z+j(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Oe(r.props,/grid-\w+-end/)})?~un(e+(n=n[t].value),"span",0)?e:Z+j(e,"-start","")+e+Z+"grid-row-span:"+(~un(n,"span",0)?Oe(n,/\d+/):+Oe(n,/\d+/)-+Oe(e,/\d+/))+";":Z+j(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Oe(r.props,/grid-\w+-start/)})?e:Z+j(j(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return j(e,/(.+)-inline(.+)/,Y+"$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(Le(e)-1-t>6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return j(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+zt+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch",0)?vi(j(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return j(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,l,d){return Z+o+":"+s+d+(i?Z+o+"-span:"+(a?l:+l-+s)+d:"")+e});case 4949:if(se(e,t+6)===121)return j(e,":",":"+Y)+e;break;case 6444:switch(se(e,se(e,14)===45?18:11)){case 120:return j(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Y+(se(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Z+"$2box$3")+e;case 100:return j(e,":",":"+Z)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return j(e,"scroll-","scroll-snap-")+e}return e}function yn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function md(e,t,n,r){switch(e.type){case nd:if(e.children.length)break;case td:case nr:return e.return=e.return||e.value;case ci:return"";case di:return e.return=e.value+"{"+yn(e.children,r)+"}";case dn:if(!Le(e.value=e.props.join(",")))return""}return Le(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function gd(e){var t=fi(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function yd(e){return function(t){t.root||(t=t.return)&&e(t)}}function vd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nr:e.return=vi(e.value,e.length,n);return;case di:return yn([Ue(e,{value:j(e.value,"@","@"+Y)})],r);case dn:if(e.length)return od(n=e.props,function(o){switch(Oe(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bt(Ue(e,{props:[j(o,/:(read-\w+)/,":"+zt+"$1")]})),bt(Ue(e,{props:[o]})),or(e,{props:pi(n,r)});break;case"::placeholder":bt(Ue(e,{props:[j(o,/:(plac\w+)/,":"+Y+"input-$1")]})),bt(Ue(e,{props:[j(o,/:(plac\w+)/,":"+zt+"$1")]})),bt(Ue(e,{props:[j(o,/:(plac\w+)/,Z+"input-$1")]})),bt(Ue(e,{props:[o]})),or(e,{props:pi(n,r)});break}return""})}}var bd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",bi="active",wi="data-styled-version",vn="6.1.19",lr=`/*!sc*/
2
+ `,bn=typeof window<"u"&&typeof document<"u",wd=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),xi=/invalid hook call/i,wn=new Set,xd=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
3
3
  `)+`You may see this warning because you've called styled inside another component.
4
4
  To resolve this only create new StyledComponents outside of any render method and function component.
5
5
  See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
6
- `,o=console.error;try{var s=!0;console.error=function(i){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];Si.test(i)?(s=!1,wn.delete(r)):o.apply(void 0,mt([i],a,!1))},f.useRef(),s&&!wn.has(r)&&(console.warn(r),wn.add(r))}catch(i){Si.test(i.message)&&wn.delete(r)}finally{console.error=o}}},xn=Object.freeze([]),wt=Object.freeze({});function wd(e,t,n){return n===void 0&&(n=wt),e.theme!==n.theme&&e.theme||t||n.theme}var lr=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),xd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Sd=/(^-|-$)/g;function Ci(e){return e.replace(xd,"-").replace(Sd,"")}var Cd=/(a)(d)/gi,Sn=52,Ti=function(e){return String.fromCharCode(e+(e>25?39:97))};function cr(e){var t,n="";for(t=Math.abs(e);t>Sn;t=t/Sn|0)n=Ti(t%Sn)+n;return(Ti(t%Sn)+n).replace(Cd,"$1-$2")}var dr,ki=5381,nt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ei=function(e){return nt(ki,e)};function Td(e){return cr(Ei(e)>>>0)}function Pi(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ur(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ai=typeof Symbol=="function"&&Symbol.for,Di=Ai?Symbol.for("react.memo"):60115,kd=Ai?Symbol.for("react.forward_ref"):60112,Ed={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Pd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ad=((dr={})[kd]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dr[Di]=$i,dr);function Mi(e){return("type"in(t=e)&&t.type.$$typeof)===Di?$i:"$$typeof"in e?Ad[e.$$typeof]:Ed;var t}var Dd=Object.defineProperty,$d=Object.getOwnPropertyNames,Vi=Object.getOwnPropertySymbols,Md=Object.getOwnPropertyDescriptor,Vd=Object.getPrototypeOf,Ii=Object.prototype;function Li(e,t,n){if(typeof t!="string"){if(Ii){var r=Vd(t);r&&r!==Ii&&Li(e,r,n)}var o=$d(t);Vi&&(o=o.concat(Vi(t)));for(var s=Mi(e),i=Mi(t),a=0;a<o.length;++a){var c=o[a];if(!(c in Pd||n&&n[c]||i&&c in i||s&&c in s)){var d=Md(t,c);try{Dd(e,c,d)}catch{}}}}return e}function xt(e){return typeof e=="function"}function hr(e){return typeof e=="object"&&"styledComponentId"in e}function rt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ni(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function St(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function fr(e,t,n){if(n===void 0&&(n=!1),!n&&!St(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=fr(e[r],t[r]);else if(St(t))for(var r in t)e[r]=fr(e[r],t[r]);return e}function pr(e,t){Object.defineProperty(e,"toString",{value:t})}var Id=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
6
+ `,o=console.error;try{var s=!0;console.error=function(i){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];xi.test(i)?(s=!1,wn.delete(r)):o.apply(void 0,mt([i],a,!1))},f.useRef(),s&&!wn.has(r)&&(console.warn(r),wn.add(r))}catch(i){xi.test(i.message)&&wn.delete(r)}finally{console.error=o}}},xn=Object.freeze([]),wt=Object.freeze({});function Sd(e,t,n){return n===void 0&&(n=wt),e.theme!==n.theme&&e.theme||t||n.theme}var cr=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Cd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Td=/(^-|-$)/g;function Si(e){return e.replace(Cd,"-").replace(Td,"")}var kd=/(a)(d)/gi,Sn=52,Ci=function(e){return String.fromCharCode(e+(e>25?39:97))};function dr(e){var t,n="";for(t=Math.abs(e);t>Sn;t=t/Sn|0)n=Ci(t%Sn)+n;return(Ci(t%Sn)+n).replace(kd,"$1-$2")}var ur,Ti=5381,nt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ki=function(e){return nt(Ti,e)};function Ed(e){return dr(ki(e)>>>0)}function Ei(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function hr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Pi=typeof Symbol=="function"&&Symbol.for,Ai=Pi?Symbol.for("react.memo"):60115,Pd=Pi?Symbol.for("react.forward_ref"):60112,Ad={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Dd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Di={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$d=((ur={})[Pd]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ur[Ai]=Di,ur);function $i(e){return("type"in(t=e)&&t.type.$$typeof)===Ai?Di:"$$typeof"in e?$d[e.$$typeof]:Ad;var t}var Md=Object.defineProperty,Vd=Object.getOwnPropertyNames,Mi=Object.getOwnPropertySymbols,Id=Object.getOwnPropertyDescriptor,Ld=Object.getPrototypeOf,Vi=Object.prototype;function Ii(e,t,n){if(typeof t!="string"){if(Vi){var r=Ld(t);r&&r!==Vi&&Ii(e,r,n)}var o=Vd(t);Mi&&(o=o.concat(Mi(t)));for(var s=$i(e),i=$i(t),a=0;a<o.length;++a){var l=o[a];if(!(l in Dd||n&&n[l]||i&&l in i||s&&l in s)){var d=Id(t,l);try{Md(e,l,d)}catch{}}}}return e}function xt(e){return typeof e=="function"}function fr(e){return typeof e=="object"&&"styledComponentId"in e}function rt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Li(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function St(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function pr(e,t,n){if(n===void 0&&(n=!1),!n&&!St(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=pr(e[r],t[r]);else if(St(t))for(var r in t)e[r]=pr(e[r],t[r]);return e}function mr(e,t){Object.defineProperty(e,"toString",{value:t})}var Nd=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
7
7
 
8
8
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
9
9
 
@@ -44,7 +44,7 @@ as for instance in your render method then you may be running into this limitati
44
44
 
45
45
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
46
46
  Has styled-components' style tag been unmounted or altered by another script?
47
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Ld(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}function Ct(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Ld.apply(void 0,mt([Id[e]],t,!1)).trim())}var Nd=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw Ct(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),c=(i=0,n.length);i<c;i++)this.tag.insertRule(a,n[i])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,i=o;i<s;i++)n+="".concat(this.tag.getRule(i)).concat(ar);return n},e})(),Bd=1<<30,Cn=new Map,Tn=new Map,kn=1,En=function(e){if(Cn.has(e))return Cn.get(e);for(;Tn.has(kn);)kn++;var t=kn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Bd))throw Ct(16,"".concat(t));return Cn.set(e,t),Tn.set(t,e),t},Od=function(e,t){kn=t+1,Cn.set(e,t),Tn.set(t,e)},Fd="style[".concat(tt,"][").concat(xi,'="').concat(vn,'"]'),jd=new RegExp("^".concat(tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zd=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},Rd=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ar),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(jd);if(c){var d=0|parseInt(c[1],10),u=c[2];d!==0&&(Od(u,d),zd(e,u,c[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(a)}}},Bi=function(e){for(var t=document.querySelectorAll(Fd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==wi&&(Rd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function _d(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Oi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var c=Array.from(a.querySelectorAll("style[".concat(tt,"]")));return c[c.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(tt,wi),r.setAttribute(xi,vn);var i=_d();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Hd=(function(){function e(t){this.element=Oi(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var i=r[o];if(i.ownerNode===n)return i}throw Ct(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Ud=(function(){function e(t){this.element=Oi(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Wd=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Fi=bn,Kd={isServer:!bn,useCSSOMInjection:!vd},ji=(function(){function e(t,n,r){t===void 0&&(t=wt),n===void 0&&(n={});var o=this;this.options=me(me({},Kd),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&bn&&Fi&&(Fi=!1,Bi(this)),pr(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,c="",d=function(l){var h=(function(y){return Tn.get(y)})(l);if(h===void 0)return"continue";var m=s.names.get(h),g=i.getGroup(l);if(m===void 0||!m.size||g.length===0)return"continue";var v="".concat(tt,".g").concat(l,'[id="').concat(h,'"]'),b="";m!==void 0&&m.forEach(function(y){y.length>0&&(b+="".concat(y,","))}),c+="".concat(g).concat(v,'{content:"').concat(b,'"}').concat(ar)},u=0;u<a;u++)d(u);return c})(o)})}return e.registerId=function(t){return En(t)},e.prototype.rehydrate=function(){!this.server&&bn&&Bi(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(me(me({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Wd(o):r?new Hd(o):new Ud(o)})(this.options),new Nd(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(En(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(En(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(En(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Yd=/&/g,Gd=/^\s*\/\/.*$/gm;function zi(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=zi(n.children,t)),n})}function Xd(e){var t,n,r,o=wt,s=o.options,i=s===void 0?wt:s,a=o.plugins,c=a===void 0?xn:a,d=function(h,m,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):h},u=c.slice();u.push(function(h){h.type===dn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Yd,n).replace(r,d))}),i.prefix&&u.push(gd),u.push(fd);var l=function(h,m,g,v){m===void 0&&(m=""),g===void 0&&(g=""),v===void 0&&(v="&"),t=v,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var b=h.replace(Gd,""),y=ud(g||m?"".concat(g," ").concat(m," { ").concat(b," }"):b);i.namespace&&(y=zi(y,i.namespace));var S=[];return yn(y,pd(u.concat(md(function(w){return S.push(w)})))),S};return l.hash=c.length?c.reduce(function(h,m){return m.name||Ct(15),nt(h,m.name)},ki).toString():"",l}var qd=new ji,mr=Xd(),Ri=f.createContext({shouldForwardProp:void 0,styleSheet:qd,stylis:mr});Ri.Consumer,f.createContext(void 0);function _i(){return f.useContext(Ri)}var Hi=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=mr);var i=r.name+s.hash;o.hasNameForId(r.id,i)||o.insertRules(r.id,i,s(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,pr(this,function(){throw Ct(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=mr),this.name+t.hash},e})(),Zd=function(e){return e>="A"&&e<="Z"};function Ui(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Zd(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Wi=function(e){return e==null||e===!1||e===""},Ki=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Wi(s)&&(Array.isArray(s)&&s.isCss||xt(s)?r.push("".concat(Ui(o),":"),s,";"):St(s)?r.push.apply(r,mt(mt(["".concat(o," {")],Ki(s),!1),["}"],!1)):r.push("".concat(Ui(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in yd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Wi(e))return[];if(hr(e))return[".".concat(e.styledComponentId)];if(xt(e)){if(!xt(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Hi||St(o)||o===null||console.error("".concat(Pi(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ot(o,t,n,r)}var s;return e instanceof Hi?n?(e.inject(n,r),[e.getName(r)]):[e]:St(e)?Ki(e):Array.isArray(e)?Array.prototype.concat.apply(xn,e.map(function(i){return ot(i,t,n,r)})):[e.toString()]}function Jd(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(xt(n)&&!hr(n))return!1}return!0}var Qd=Ei(vn),eu=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Jd(t),this.componentId=n,this.baseHash=nt(Qd,n),this.baseStyle=r,ji.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=rt(o,this.staticRulesId);else{var s=Ni(ot(this.rules,t,n,r)),i=cr(nt(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,i)){var a=r(s,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,a)}o=rt(o,i),this.staticRulesId=i}else{for(var c=nt(this.baseHash,r.hash),d="",u=0;u<this.rules.length;u++){var l=this.rules[u];if(typeof l=="string")d+=l,process.env.NODE_ENV!=="production"&&(c=nt(c,l));else if(l){var h=Ni(ot(l,t,n,r));c=nt(c,h+u),d+=h}}if(d){var m=cr(c>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(d,".".concat(m),void 0,this.componentId)),o=rt(o,m)}}return o},e})(),Yi=f.createContext(void 0);Yi.Consumer;var gr={},Gi=new Set;function tu(e,t,n){var r=hr(e),o=e,s=!ur(e),i=t.attrs,a=i===void 0?xn:i,c=t.componentId,d=c===void 0?(function(A,E){var k=typeof A!="string"?"sc":Ci(A);gr[k]=(gr[k]||0)+1;var P="".concat(k,"-").concat(Td(vn+k+gr[k]));return E?"".concat(E,"-").concat(P):P})(t.displayName,t.parentComponentId):c,u=t.displayName,l=u===void 0?(function(A){return ur(A)?"styled.".concat(A):"Styled(".concat(Pi(A),")")})(e):u,h=t.displayName&&t.componentId?"".concat(Ci(t.displayName),"-").concat(t.componentId):t.componentId||d,m=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;g=function(A,E){return v(A,E)&&b(A,E)}}else g=v}var y=new eu(n,h,r?o.componentStyle:void 0);function S(A,E){return(function(k,P,D){var L=k.attrs,_=k.componentStyle,$=k.defaultProps,Y=k.foldedComponentIds,K=k.styledComponentId,Ee=k.target,re=f.useContext(Yi),j=_i(),N=k.shouldForwardProp||j.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(K);var R=wd(P,re,$)||wt,V=(function(G,ae,Me){for(var H,ve=me(me({},ae),{className:void 0,theme:Me}),Je=0;Je<G.length;Je+=1){var _e=xt(H=G[Je])?H(ve):H;for(var pe in _e)ve[pe]=pe==="className"?rt(ve[pe],_e[pe]):pe==="style"?me(me({},ve[pe]),_e[pe]):_e[pe]}return ae.className&&(ve.className=rt(ve.className,ae.className)),ve})(L,P,R),z=V.as||Ee,oe={};for(var ie in V)V[ie]===void 0||ie[0]==="$"||ie==="as"||ie==="theme"&&V.theme===R||(ie==="forwardedAs"?oe.as=V.forwardedAs:N&&!N(ie,z)||(oe[ie]=V[ie],N||process.env.NODE_ENV!=="development"||Jc(ie)||Gi.has(ie)||!lr.has(z)||(Gi.add(ie),console.warn('styled-components: it looks like an unknown prop "'.concat(ie,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var F=(function(G,ae){var Me=_i(),H=G.generateAndInjectStyles(ae,Me.styleSheet,Me.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(H),H})(_,V);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(F);var q=rt(Y,K);return F&&(q+=" "+F),V.className&&(q+=" "+V.className),oe[ur(z)&&!lr.has(z)?"class":"className"]=q,D&&(oe.ref=D),f.createElement(z,oe)})(w,A,E)}S.displayName=l;var w=f.forwardRef(S);return w.attrs=m,w.componentStyle=y,w.displayName=l,w.shouldForwardProp=g,w.foldedComponentIds=r?rt(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=h,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?(function(E){for(var k=[],P=1;P<arguments.length;P++)k[P-1]=arguments[P];for(var D=0,L=k;D<L.length;D++)fr(E,L[D],!0);return E})({},o.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(bd(l,h),w.warnTooManyClasses=(function(A,E){var k={},P=!1;return function(D){if(!P&&(k[D]=!0,Object.keys(k).length>=200)){var L=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(L,`.
47
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Bd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}function Ct(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Bd.apply(void 0,mt([Nd[e]],t,!1)).trim())}var Od=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw Ct(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),l=(i=0,n.length);i<l;i++)this.tag.insertRule(a,n[i])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,i=o;i<s;i++)n+="".concat(this.tag.getRule(i)).concat(lr);return n},e})(),Fd=1<<30,Cn=new Map,Tn=new Map,kn=1,En=function(e){if(Cn.has(e))return Cn.get(e);for(;Tn.has(kn);)kn++;var t=kn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Fd))throw Ct(16,"".concat(t));return Cn.set(e,t),Tn.set(t,e),t},jd=function(e,t){kn=t+1,Cn.set(e,t),Tn.set(t,e)},zd="style[".concat(tt,"][").concat(wi,'="').concat(vn,'"]'),Rd=new RegExp("^".concat(tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),_d=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},Hd=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(lr),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var l=a.match(Rd);if(l){var d=0|parseInt(l[1],10),u=l[2];d!==0&&(jd(u,d),_d(e,u,l[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(a)}}},Ni=function(e){for(var t=document.querySelectorAll(zd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==bi&&(Hd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Ud(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Bi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(tt,"]")));return l[l.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(tt,bi),r.setAttribute(wi,vn);var i=Ud();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Wd=(function(){function e(t){this.element=Bi(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var i=r[o];if(i.ownerNode===n)return i}throw Ct(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Kd=(function(){function e(t){this.element=Bi(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Yd=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Oi=bn,Gd={isServer:!bn,useCSSOMInjection:!wd},Fi=(function(){function e(t,n,r){t===void 0&&(t=wt),n===void 0&&(n={});var o=this;this.options=ge(ge({},Gd),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&bn&&Oi&&(Oi=!1,Ni(this)),mr(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,l="",d=function(c){var h=(function(y){return Tn.get(y)})(c);if(h===void 0)return"continue";var m=s.names.get(h),g=i.getGroup(c);if(m===void 0||!m.size||g.length===0)return"continue";var b="".concat(tt,".g").concat(c,'[id="').concat(h,'"]'),x="";m!==void 0&&m.forEach(function(y){y.length>0&&(x+="".concat(y,","))}),l+="".concat(g).concat(b,'{content:"').concat(x,'"}').concat(lr)},u=0;u<a;u++)d(u);return l})(o)})}return e.registerId=function(t){return En(t)},e.prototype.rehydrate=function(){!this.server&&bn&&Ni(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ge(ge({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Yd(o):r?new Wd(o):new Kd(o)})(this.options),new Od(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(En(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(En(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(En(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Xd=/&/g,Zd=/^\s*\/\/.*$/gm;function ji(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=ji(n.children,t)),n})}function qd(e){var t,n,r,o=wt,s=o.options,i=s===void 0?wt:s,a=o.plugins,l=a===void 0?xn:a,d=function(h,m,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):h},u=l.slice();u.push(function(h){h.type===dn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Xd,n).replace(r,d))}),i.prefix&&u.push(vd),u.push(md);var c=function(h,m,g,b){m===void 0&&(m=""),g===void 0&&(g=""),b===void 0&&(b="&"),t=b,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var x=h.replace(Zd,""),y=fd(g||m?"".concat(g," ").concat(m," { ").concat(x," }"):x);i.namespace&&(y=ji(y,i.namespace));var C=[];return yn(y,gd(u.concat(yd(function(w){return C.push(w)})))),C};return c.hash=l.length?l.reduce(function(h,m){return m.name||Ct(15),nt(h,m.name)},Ti).toString():"",c}var Jd=new Fi,gr=qd(),zi=f.createContext({shouldForwardProp:void 0,styleSheet:Jd,stylis:gr});zi.Consumer,f.createContext(void 0);function Ri(){return f.useContext(zi)}var _i=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=gr);var i=r.name+s.hash;o.hasNameForId(r.id,i)||o.insertRules(r.id,i,s(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,mr(this,function(){throw Ct(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=gr),this.name+t.hash},e})(),Qd=function(e){return e>="A"&&e<="Z"};function Hi(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Qd(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ui=function(e){return e==null||e===!1||e===""},Wi=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Ui(s)&&(Array.isArray(s)&&s.isCss||xt(s)?r.push("".concat(Hi(o),":"),s,";"):St(s)?r.push.apply(r,mt(mt(["".concat(o," {")],Wi(s),!1),["}"],!1)):r.push("".concat(Hi(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in bd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Ui(e))return[];if(fr(e))return[".".concat(e.styledComponentId)];if(xt(e)){if(!xt(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof _i||St(o)||o===null||console.error("".concat(Ei(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ot(o,t,n,r)}var s;return e instanceof _i?n?(e.inject(n,r),[e.getName(r)]):[e]:St(e)?Wi(e):Array.isArray(e)?Array.prototype.concat.apply(xn,e.map(function(i){return ot(i,t,n,r)})):[e.toString()]}function eu(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(xt(n)&&!fr(n))return!1}return!0}var tu=ki(vn),nu=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&eu(t),this.componentId=n,this.baseHash=nt(tu,n),this.baseStyle=r,Fi.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=rt(o,this.staticRulesId);else{var s=Li(ot(this.rules,t,n,r)),i=dr(nt(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,i)){var a=r(s,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,a)}o=rt(o,i),this.staticRulesId=i}else{for(var l=nt(this.baseHash,r.hash),d="",u=0;u<this.rules.length;u++){var c=this.rules[u];if(typeof c=="string")d+=c,process.env.NODE_ENV!=="production"&&(l=nt(l,c));else if(c){var h=Li(ot(c,t,n,r));l=nt(l,h+u),d+=h}}if(d){var m=dr(l>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(d,".".concat(m),void 0,this.componentId)),o=rt(o,m)}}return o},e})(),Ki=f.createContext(void 0);Ki.Consumer;var yr={},Yi=new Set;function ru(e,t,n){var r=fr(e),o=e,s=!hr(e),i=t.attrs,a=i===void 0?xn:i,l=t.componentId,d=l===void 0?(function(A,P){var k=typeof A!="string"?"sc":Si(A);yr[k]=(yr[k]||0)+1;var E="".concat(k,"-").concat(Ed(vn+k+yr[k]));return P?"".concat(P,"-").concat(E):E})(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?(function(A){return hr(A)?"styled.".concat(A):"Styled(".concat(Ei(A),")")})(e):u,h=t.displayName&&t.componentId?"".concat(Si(t.displayName),"-").concat(t.componentId):t.componentId||d,m=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var b=o.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;g=function(A,P){return b(A,P)&&x(A,P)}}else g=b}var y=new nu(n,h,r?o.componentStyle:void 0);function C(A,P){return(function(k,E,D){var L=k.attrs,_=k.componentStyle,$=k.defaultProps,U=k.foldedComponentIds,I=k.styledComponentId,he=k.target,G=f.useContext(Ki),B=Ri(),N=k.shouldForwardProp||B.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(I);var H=Sd(E,G,$)||wt,O=(function(X,ae,Me){for(var K,be=ge(ge({},ae),{className:void 0,theme:Me}),Je=0;Je<X.length;Je+=1){var _e=xt(K=X[Je])?K(be):K;for(var me in _e)be[me]=me==="className"?rt(be[me],_e[me]):me==="style"?ge(ge({},be[me]),_e[me]):_e[me]}return ae.className&&(be.className=rt(be.className,ae.className)),be})(L,E,H),R=O.as||he,oe={};for(var ie in O)O[ie]===void 0||ie[0]==="$"||ie==="as"||ie==="theme"&&O.theme===H||(ie==="forwardedAs"?oe.as=O.forwardedAs:N&&!N(ie,R)||(oe[ie]=O[ie],N||process.env.NODE_ENV!=="development"||ed(ie)||Yi.has(ie)||!cr.has(R)||(Yi.add(ie),console.warn('styled-components: it looks like an unknown prop "'.concat(ie,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var z=(function(X,ae){var Me=Ri(),K=X.generateAndInjectStyles(ae,Me.styleSheet,Me.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(K),K})(_,O);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(z);var q=rt(U,I);return z&&(q+=" "+z),O.className&&(q+=" "+O.className),oe[hr(R)&&!cr.has(R)?"class":"className"]=q,D&&(oe.ref=D),f.createElement(R,oe)})(w,A,P)}C.displayName=c;var w=f.forwardRef(C);return w.attrs=m,w.componentStyle=y,w.displayName=c,w.shouldForwardProp=g,w.foldedComponentIds=r?rt(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=h,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?(function(P){for(var k=[],E=1;E<arguments.length;E++)k[E-1]=arguments[E];for(var D=0,L=k;D<L.length;D++)pr(P,L[D],!0);return P})({},o.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(xd(c,h),w.warnTooManyClasses=(function(A,P){var k={},E=!1;return function(D){if(!E&&(k[D]=!0,Object.keys(k).length>=200)){var L=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(L,`.
48
48
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
49
  Example:
50
50
  const Component = styled.div.attrs(props => ({
@@ -53,167 +53,167 @@ Example:
53
53
  },
54
54
  }))\`width: 100%;\`
55
55
 
56
- <Component />`),P=!0,k={}}}})(l,h)),pr(w,function(){return".".concat(w.styledComponentId)}),s&&Li(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Xi(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var qi=function(e){return Object.assign(e,{isCss:!0})};function x(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(xt(e)||St(e))return qi(ot(Xi(xn,mt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):qi(ot(Xi(r,t)))}function yr(e,t,n){if(n===void 0&&(n=wt),!t)throw Ct(1,t);var r=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,n,x.apply(void 0,mt([o],s,!1)))};return r.attrs=function(o){return yr(e,t,me(me({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return yr(e,t,me(me({},n),o))},r}var Zi=function(e){return yr(tu,e)},C=Zi;lr.forEach(function(e){C[e]=Zi(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
56
+ <Component />`),E=!0,k={}}}})(c,h)),mr(w,function(){return".".concat(w.styledComponentId)}),s&&Ii(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Gi(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Xi=function(e){return Object.assign(e,{isCss:!0})};function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(xt(e)||St(e))return Xi(ot(Gi(xn,mt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):Xi(ot(Gi(r,t)))}function vr(e,t,n){if(n===void 0&&(n=wt),!t)throw Ct(1,t);var r=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,n,v.apply(void 0,mt([o],s,!1)))};return r.attrs=function(o){return vr(e,t,ge(ge({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return vr(e,t,ge(ge({},n),o))},r}var Zi=function(e){return vr(ru,e)},S=Zi;cr.forEach(function(e){S[e]=Zi(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
57
57
  Perhaps you're looking to import 'styled-components/native'?
58
58
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Pn="__sc-".concat(tt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Pn]||(window[Pn]=0),window[Pn]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
59
59
 
60
- See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
60
+ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:v`
61
61
  font-family: 'Dax', serif;
62
62
  font-size: 5em;
63
63
  font-style: normal;
64
64
  font-weight: 700;
65
65
  line-height: 163.184%;
66
- `,60:x`
66
+ `,60:v`
67
67
  font-family: 'Dax', serif;
68
68
  font-size: 3.75em;
69
69
  font-style: normal;
70
70
  font-weight: 700;
71
71
  line-height: 161.76%;
72
- `,40:x`
72
+ `,40:v`
73
73
  font-family: 'Dax', serif;
74
74
  font-size: 2.5em;
75
75
  font-style: normal;
76
76
  font-weight: 700;
77
77
  line-height: 161.76%;
78
- `,30:x`
78
+ `,30:v`
79
79
  font-family: 'Dax', serif;
80
80
  font-size: 1.875em;
81
81
  font-style: normal;
82
82
  font-weight: 700;
83
83
  line-height: 161.76%;
84
- `,24:x`
84
+ `,24:v`
85
85
  font-family: 'Dax', serif;
86
86
  font-size: 1.5em;
87
87
  font-style: normal;
88
88
  font-weight: 700;
89
89
  line-height: 163.184%;
90
- `,20:x`
90
+ `,20:v`
91
91
  font-family: 'Dax', serif;
92
92
  font-size: 1.25em;
93
93
  font-style: normal;
94
94
  font-weight: 700;
95
95
  line-height: 161.76%;
96
- `,16:x`
96
+ `,16:v`
97
97
  font-family: 'Dax', serif;
98
98
  font-size: 1em;
99
99
  font-style: normal;
100
100
  font-weight: 700;
101
101
  line-height: 161.76%;
102
- `},Ji={80:x`
102
+ `},qi={80:v`
103
103
  font-family: 'Dax', serif;
104
104
  font-size: 5em;
105
105
  font-style: normal;
106
106
  font-weight: 400;
107
107
  line-height: 163.184%;
108
- `,60:x`
108
+ `,60:v`
109
109
  font-family: 'Dax', serif;
110
110
  font-size: 3.75em;
111
111
  font-style: normal;
112
112
  font-weight: 400;
113
113
  line-height: 161.76%;
114
- `,40:x`
114
+ `,40:v`
115
115
  font-family: 'Dax', serif;
116
116
  font-size: 2.5em;
117
117
  font-style: normal;
118
118
  font-weight: 400;
119
119
  line-height: 161.76%;
120
- `,30:x`
120
+ `,30:v`
121
121
  font-family: 'Dax', serif;
122
122
  font-size: 1.875em;
123
123
  font-style: normal;
124
124
  font-weight: 400;
125
125
  line-height: 161.76%;
126
- `,24:x`
126
+ `,24:v`
127
127
  font-family: 'Dax', serif;
128
128
  font-size: 1.5em;
129
129
  font-style: normal;
130
130
  font-weight: 400;
131
131
  line-height: 163.184%;
132
- `,20:x`
132
+ `,20:v`
133
133
  font-family: 'Dax', serif;
134
134
  font-size: 1.25em;
135
135
  font-style: normal;
136
136
  font-weight: 400;
137
137
  line-height: 161.76%;
138
- `,16:x`
138
+ `,16:v`
139
139
  font-family: 'Dax', serif;
140
140
  font-size: 1em;
141
141
  font-style: normal;
142
142
  font-weight: 400;
143
143
  line-height: 161.76%;
144
- `},I={80:x`
144
+ `},M={80:v`
145
145
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
146
146
  font-size: 5em;
147
147
  font-style: normal;
148
148
  font-weight: 400;
149
149
  line-height: 155.962%;
150
- `,60:x`
150
+ `,60:v`
151
151
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
152
152
  font-size: 3.75em;
153
153
  font-style: normal;
154
154
  font-weight: 400;
155
155
  line-height: 176.782%;
156
- `,40:x`
156
+ `,40:v`
157
157
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
158
158
  font-size: 2.5em;
159
159
  font-style: normal;
160
160
  font-weight: 400;
161
161
  line-height: 176.782%;
162
- `,30:x`
162
+ `,30:v`
163
163
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
164
164
  font-size: 1.875em;
165
165
  font-style: normal;
166
166
  font-weight: 400;
167
167
  line-height: 176.782%;
168
- `,24:x`
168
+ `,24:v`
169
169
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
170
170
  font-size: 1.5em;
171
171
  font-style: normal;
172
172
  font-weight: 400;
173
173
  line-height: 176.782%;
174
- `,20:x`
174
+ `,20:v`
175
175
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
176
176
  font-size: 1.25em;
177
177
  font-style: normal;
178
178
  font-weight: 400;
179
179
  line-height: 155.962%;
180
- `,18:x`
180
+ `,18:v`
181
181
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
182
182
  font-size: 1.125em;
183
183
  font-style: normal;
184
184
  font-weight: 400;
185
185
  line-height: 150.782%;
186
- `,16:x`
186
+ `,16:v`
187
187
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
188
188
  font-size: 1em;
189
189
  font-style: normal;
190
190
  font-weight: 400;
191
191
  line-height: 140%;
192
- `,14:x`
192
+ `,14:v`
193
193
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
194
194
  font-size: 0.875em;
195
195
  font-style: normal;
196
196
  font-weight: 400;
197
197
  line-height: 140%;
198
- `,12:x`
198
+ `,12:v`
199
199
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
200
200
  font-size: 0.75em;
201
201
  font-style: normal;
202
202
  font-weight: 400;
203
203
  line-height: 133%;
204
- `},An=C.h1`
205
- ${({size:e=24})=>vr[e]}
204
+ `},An=S.h1`
205
+ ${({size:e=24})=>br[e]}
206
206
  margin: 0;
207
207
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
208
- `,nu=C.h2`
209
- ${({size:e=24})=>Ji[e]}
208
+ `,ou=S.h2`
209
+ ${({size:e=24})=>qi[e]}
210
210
  margin: 0;
211
211
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
212
- `,We=C.span`
213
- ${({size:e=16})=>I[e]}
212
+ `,We=S.span`
213
+ ${({size:e=16})=>M[e]}
214
214
  margin: 0;
215
215
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
216
- `,ru=C.span`
216
+ `,iu=S.span`
217
217
  display: inline-flex;
218
218
  align-items: center;
219
219
  justify-content: center;
@@ -223,57 +223,57 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
223
223
  outline: none;
224
224
  box-shadow: var(--shadow-hover-black-card);
225
225
  }
226
- `,Qi={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},W=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const s=typeof t=="string"&&t in Qi?Qi[t]:t;return p.jsx(ru,{$color:n,className:r,children:typeof e=="function"?p.jsx(e,{size:s,...o}):e})},br=f.createContext({});function wr(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const xr=typeof window<"u",es=xr?f.useLayoutEffect:f.useEffect,Dn=f.createContext(null);function Sr(e,t){e.indexOf(t)===-1&&e.push(t)}function Cr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Fe=(e,t,n)=>n>t?t:n<e?e:n;function Tr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Tt=()=>{},je=()=>{};process.env.NODE_ENV!=="production"&&(Tt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Tr(t,n))},je=(e,t,n)=>{if(!e)throw new Error(Tr(t,n))});const ze={},ts=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ns(e){return typeof e=="object"&&e!==null}const rs=e=>/^0[^.\s]+$/u.test(e);function kr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Se=e=>e,ou=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(ou),Ht=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Er{constructor(){this.subscriptions=[]}add(t){return Sr(this.subscriptions,t),()=>Cr(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 s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Ce=e=>e/1e3;function os(e,t){return t?e*(1e3/t):0}const is=new Set;function Pr(e,t,n){e||is.has(t)||(console.warn(Tr(t,n)),is.add(t))}const ss=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,iu=1e-7,su=12;function au(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=ss(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>iu&&++a<su);return i}function Ut(e,t,n,r){if(e===t&&n===r)return Se;const o=s=>au(s,0,1,e,n);return s=>s===0||s===1?s:ss(o(s),t,r)}const as=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ls=e=>t=>1-e(1-t),cs=Ut(.33,1.53,.69,.99),Ar=ls(cs),ds=as(Ar),us=e=>(e*=2)<1?.5*Ar(e):.5*(2-Math.pow(2,-10*(e-1))),Dr=e=>1-Math.sin(Math.acos(e)),hs=ls(Dr),fs=as(Dr),lu=Ut(.42,0,1,1),cu=Ut(0,0,.58,1),ps=Ut(.42,0,.58,1),du=e=>Array.isArray(e)&&typeof e[0]!="number",ms=e=>Array.isArray(e)&&typeof e[0]=="number",gs={linear:Se,easeIn:lu,easeInOut:ps,easeOut:cu,circIn:Dr,circInOut:fs,circOut:hs,backIn:Ar,backInOut:ds,backOut:cs,anticipate:us},uu=e=>typeof e=="string",ys=e=>{if(ms(e)){je(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Ut(t,n,r,o)}else if(uu(e))return je(gs[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),gs[e];return e},$n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hu(e,t){let n=new Set,r=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){i.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,l=!1,h=!1)=>{const g=h&&o?n:r;return l&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),i.delete(u)},process:u=>{if(a=u,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const fu=40;function vs(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=$n.reduce((w,A)=>(w[A]=hu(s),w),{}),{setup:a,read:c,resolveKeyframes:d,preUpdate:u,update:l,preRender:h,render:m,postRender:g}=i,v=()=>{const w=ze.useManualTiming?o.timestamp:performance.now();n=!1,ze.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,fu),1)),o.timestamp=w,o.isProcessing=!0,a.process(o),c.process(o),d.process(o),u.process(o),l.process(o),h.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:$n.reduce((w,A)=>{const E=i[A];return w[A]=(k,P=!1,D=!1)=>(n||b(),E.schedule(k,P,D)),w},{}),cancel:w=>{for(let A=0;A<$n.length;A++)i[$n[A]].cancel(w)},state:o,steps:i}}const{schedule:Z,cancel:Ke,state:ce,steps:$r}=vs(typeof requestAnimationFrame<"u"?requestAnimationFrame:Se,!0);let Mn;function pu(){Mn=void 0}const ge={now:()=>(Mn===void 0&&ge.set(ce.isProcessing||ze.useManualTiming?ce.timestamp:performance.now()),Mn),set:e=>{Mn=e,queueMicrotask(pu)}},bs=e=>t=>typeof t=="string"&&t.startsWith(e),Mr=bs("--"),mu=bs("var(--"),Vr=e=>mu(e)?gu.test(e.split("/*")[0].trim()):!1,gu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,kt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wt={...kt,transform:e=>Fe(0,1,e)},Vn={...kt,default:1},Kt=e=>Math.round(e*1e5)/1e5,Ir=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yu(e){return e==null}const vu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lr=(e,t)=>n=>!!(typeof n=="string"&&vu.test(n)&&n.startsWith(e)||t&&!yu(n)&&Object.prototype.hasOwnProperty.call(n,t)),ws=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(Ir);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},bu=e=>Fe(0,255,e),Nr={...kt,transform:e=>Math.round(bu(e))},it={test:Lr("rgb","red"),parse:ws("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nr.transform(e)+", "+Nr.transform(t)+", "+Nr.transform(n)+", "+Kt(Wt.transform(r))+")"};function wu(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 Br={test:Lr("#"),parse:wu,transform:it.transform},Yt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ye=Yt("deg"),Ne=Yt("%"),M=Yt("px"),xu=Yt("vh"),Su=Yt("vw"),xs={...Ne,parse:e=>Ne.parse(e)/100,transform:e=>Ne.transform(e*100)},Et={test:Lr("hsl","hue"),parse:ws("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ne.transform(Kt(t))+", "+Ne.transform(Kt(n))+", "+Kt(Wt.transform(r))+")"},ne={test:e=>it.test(e)||Br.test(e)||Et.test(e),parse:e=>it.test(e)?it.parse(e):Et.test(e)?Et.parse(e):Br.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?it.transform(e):Et.transform(e),getAnimatableNone:e=>{const t=ne.parse(e);return t.alpha=0,ne.transform(t)}},Cu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Tu(e){return isNaN(e)&&typeof e=="string"&&(e.match(Ir)?.length||0)+(e.match(Cu)?.length||0)>0}const Ss="number",Cs="color",ku="var",Eu="var(",Ts="${}",Pu=/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 Gt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(Pu,c=>(ne.test(c)?(r.color.push(s),o.push(Cs),n.push(ne.parse(c))):c.startsWith(Eu)?(r.var.push(s),o.push(ku),n.push(c)):(r.number.push(s),o.push(Ss),n.push(parseFloat(c))),++s,Ts)).split(Ts);return{values:n,split:a,indexes:r,types:o}}function ks(e){return Gt(e).values}function Es(e){const{split:t,types:n}=Gt(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===Ss?s+=Kt(o[i]):a===Cs?s+=ne.transform(o[i]):s+=o[i]}return s}}const Au=e=>typeof e=="number"?0:ne.test(e)?ne.getAnimatableNone(e):e;function Du(e){const t=ks(e);return Es(e)(t.map(Au))}const Ge={test:Tu,parse:ks,createTransformer:Es,getAnimatableNone:Du};function Or(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 $u({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=Or(c,a,e+1/3),s=Or(c,a,e),i=Or(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function In(e,t){return n=>n>0?t:e}const J=(e,t,n)=>e+(t-e)*n,Fr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Mu=[Br,it,Et],Vu=e=>Mu.find(t=>t.test(e));function Ps(e){const t=Vu(e);if(Tt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Et&&(n=$u(n)),n}const As=(e,t)=>{const n=Ps(e),r=Ps(t);if(!n||!r)return In(e,t);const o={...n};return s=>(o.red=Fr(n.red,r.red,s),o.green=Fr(n.green,r.green,s),o.blue=Fr(n.blue,r.blue,s),o.alpha=J(n.alpha,r.alpha,s),it.transform(o))},jr=new Set(["none","hidden"]);function Iu(e,t){return jr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Lu(e,t){return n=>J(e,t,n)}function zr(e){return typeof e=="number"?Lu:typeof e=="string"?Vr(e)?In:ne.test(e)?As:Ou:Array.isArray(e)?Ds:typeof e=="object"?ne.test(e)?As:Nu:In}function Ds(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>zr(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function Nu(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=zr(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function Bu(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][r[s]],a=e.values[i]??0;n[o]=a,r[s]++}return n}const Ou=(e,t)=>{const n=Ge.createTransformer(t),r=Gt(e),o=Gt(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?jr.has(e)&&!o.values.length||jr.has(t)&&!r.values.length?Iu(e,t):_t(Ds(Bu(r,o),o.values),n):(Tt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),In(e,t))};function $s(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):zr(e)(e,t)}const Fu=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>Ke(t),now:()=>ce.isProcessing?ce.timestamp:ge.now()}},Ms=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ln=2e4;function Rr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ln;)t+=n,r=e.next(t);return t>=Ln?1/0:t}function ju(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Rr(r),Ln);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Ce(o)}}const zu=5;function Vs(e,t,n){const r=Math.max(t-zu,0);return os(n-e(r),t-r)}const Q={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},_r=.001;function Ru({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let o,s;Tt(e<=De(Q.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=Fe(Q.minDamping,Q.maxDamping,i),e=Fe(Q.minDuration,Q.maxDuration,Ce(e)),i<1?(o=d=>{const u=d*i,l=u*e,h=u-n,m=Hr(d,i),g=Math.exp(-l);return _r-h/m*g},s=d=>{const l=d*i*e,h=l*n+n,m=Math.pow(i,2)*Math.pow(d,2)*e,g=Math.exp(-l),v=Hr(Math.pow(d,2),i);return(-o(d)+_r>0?-1:1)*((h-m)*g)/v}):(o=d=>{const u=Math.exp(-d*e),l=(d-n)*e+1;return-_r+u*l},s=d=>{const u=Math.exp(-d*e),l=(n-d)*(e*e);return u*l});const a=5/e,c=Hu(o,s,a);if(e=De(e),isNaN(c))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:i*2*Math.sqrt(r*d),duration:e}}}const _u=12;function Hu(e,t,n){let r=n;for(let o=1;o<_u;o++)r=r-e(r)/t(r);return r}function Hr(e,t){return e*Math.sqrt(1-t*t)}const Uu=["duration","bounce"],Wu=["stiffness","damping","mass"];function Is(e,t){return t.some(n=>e[n]!==void 0)}function Ku(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!Is(e,Wu)&&Is(e,Uu))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Q.mass,stiffness:o,damping:s}}else{const n=Ru(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function Nn(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:d,mass:u,duration:l,velocity:h,isResolvedFromDuration:m}=Ku({...n,velocity:-Ce(n.velocity||0)}),g=h||0,v=d/(2*Math.sqrt(c*u)),b=i-s,y=Ce(Math.sqrt(c/u)),S=Math.abs(b)<5;r||(r=S?Q.restSpeed.granular:Q.restSpeed.default),o||(o=S?Q.restDelta.granular:Q.restDelta.default);let w;if(v<1){const E=Hr(y,v);w=k=>{const P=Math.exp(-v*y*k);return i-P*((g+v*y*b)/E*Math.sin(E*k)+b*Math.cos(E*k))}}else if(v===1)w=E=>i-Math.exp(-y*E)*(b+(g+y*b)*E);else{const E=y*Math.sqrt(v*v-1);w=k=>{const P=Math.exp(-v*y*k),D=Math.min(E*k,300);return i-P*((g+v*y*b)*Math.sinh(D)+E*b*Math.cosh(D))/E}}const A={calculatedDuration:m&&l||null,next:E=>{const k=w(E);if(m)a.done=E>=l;else{let P=E===0?g:0;v<1&&(P=E===0?De(g):Vs(w,E,k));const D=Math.abs(P)<=r,L=Math.abs(i-k)<=o;a.done=D&&L}return a.value=a.done?i:k,a},toString:()=>{const E=Math.min(Rr(A),Ln),k=Ms(P=>A.next(E*P).value,E,30);return E+"ms "+k},toTransition:()=>{}};return A}Nn.applyToOptions=e=>{const t=ju(e,100,Nn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function Ur({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:c,restDelta:d=.5,restSpeed:u}){const l=e[0],h={done:!1,value:l},m=D=>a!==void 0&&D<a||c!==void 0&&D>c,g=D=>a===void 0?c:c===void 0||Math.abs(a-D)<Math.abs(c-D)?a:c;let v=n*t;const b=l+v,y=i===void 0?b:i(b);y!==b&&(v=y-l);const S=D=>-v*Math.exp(-D/r),w=D=>y+S(D),A=D=>{const L=S(D),_=w(D);h.done=Math.abs(L)<=d,h.value=h.done?y:_};let E,k;const P=D=>{m(h.value)&&(E=D,k=Nn({keyframes:[h.value,g(h.value)],velocity:Vs(w,D,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return P(0),{calculatedDuration:null,next:D=>{let L=!1;return!k&&E===void 0&&(L=!0,A(D),P(D)),E!==void 0&&D>=E?k.next(D-E):(!L&&A(D),h)}}}function Yu(e,t,n){const r=[],o=n||ze.mix||$s,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||Se:t;a=_t(c,a)}r.push(a)}return r}function Gu(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(je(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Yu(t,r,o),c=a.length,d=u=>{if(i&&u<e[0])return t[0];let l=0;if(c>1)for(;l<e.length-2&&!(u<e[l+1]);l++);const h=Ht(e[l],e[l+1],u);return a[l](h)};return n?u=>d(Fe(e[0],e[s-1],u)):d}function Xu(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ht(0,t,r);e.push(J(n,1,o))}}function qu(e){const t=[0];return Xu(t,e.length-1),t}function Zu(e,t){return e.map(n=>n*t)}function Ju(e,t){return e.map(()=>t||ps).splice(0,e.length-1)}function Pt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=du(r)?r.map(ys):ys(r),s={done:!1,value:t[0]},i=Zu(n&&n.length===t.length?n:qu(t),e),a=Gu(i,t,{ease:Array.isArray(o)?o:Ju(t,o)});return{calculatedDuration:e,next:c=>(s.value=a(c),s.done=c>=e,s)}}const Qu=e=>e!==null;function Wr(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(Qu),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const eh={decay:Ur,inertia:Ur,tween:Pt,keyframes:Pt,spring:Nn};function Ls(e){typeof e.type=="string"&&(e.type=eh[e.type])}class Kr{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 th=e=>e/100;class Yr extends Kr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ge.now()&&this.tick(ge.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;Ls(t);const{type:n=Pt,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const c=n||Pt;process.env.NODE_ENV!=="production"&&c!==Pt&&je(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Pt&&typeof a[0]!="number"&&(this.mixKeyframes=_t(th,$s(a[0],a[1])),a=[0,100]);const d=c({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=Rr(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}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:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:l,repeatType:h,repeatDelay:m,type:g,onUpdate:v,finalKeyframe:b}=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 y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,A=r;if(l){const D=Math.min(this.currentTime,o)/a;let L=Math.floor(D),_=D%1;!_&&D>=1&&(_=1),_===1&&L--,L=Math.min(L,l+1),!!(L%2)&&(h==="reverse"?(_=1-_,m&&(_-=m/a)):h==="mirror"&&(A=i)),w=Fe(0,1,_)*a}const E=S?{done:!1,value:u[0]}:A.next(w);s&&(E.value=s(E.value));let{done:k}=E;!S&&c!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&g!==Ur&&(E.value=Wr(u,this.options,b,this.speed)),v&&v(E.value),P&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Ce(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ce(t)}get time(){return Ce(this.currentTime)}set time(t){t=De(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ge.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ce(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Fu,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(ge.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 nh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const st=e=>e*180/Math.PI,Gr=e=>{const t=st(Math.atan2(e[1],e[0]));return Xr(t)},rh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Gr,rotateZ:Gr,skewX:e=>st(Math.atan(e[1])),skewY:e=>st(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xr=e=>(e=e%360,e<0&&(e+=360),e),Ns=Gr,Bs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Os=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),oh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bs,scaleY:Os,scale:e=>(Bs(e)+Os(e))/2,rotateX:e=>Xr(st(Math.atan2(e[6],e[5]))),rotateY:e=>Xr(st(Math.atan2(-e[2],e[0]))),rotateZ:Ns,rotate:Ns,skewX:e=>st(Math.atan(e[4])),skewY:e=>st(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qr(e){return e.includes("scale")?1:0}function Zr(e,t){if(!e||e==="none")return qr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=oh,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=rh,o=a}if(!o)return qr(t);const s=r[t],i=o[1].split(",").map(sh);return typeof s=="function"?s(i):i[s]}const ih=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Zr(n,t)};function sh(e){return parseFloat(e.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dt=new Set(At),Fs=e=>e===kt||e===M,ah=new Set(["x","y","z"]),lh=At.filter(e=>!ah.has(e));function ch(e){const t=[];return lh.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"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Zr(t,"x"),y:(e,{transform:t})=>Zr(t,"y")};at.translateX=at.x,at.translateY=at.y;const lt=new Set;let Jr=!1,Qr=!1,eo=!1;function js(){if(Qr){const e=Array.from(lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=ch(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(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Qr=!1,Jr=!1,lt.forEach(e=>e.complete(eo)),lt.clear()}function zs(){lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qr=!0)})}function dh(){eo=!0,zs(),js(),eo=!1}class to{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(lt.add(this),Jr||(Jr=!0,Z.read(zs),Z.resolveKeyframes(js))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}nh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lt.delete(this)}cancel(){this.state==="scheduled"&&(lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const uh=e=>e.startsWith("--");function hh(e,t,n){uh(t)?e.style.setProperty(t,n):e.style[t]=n}const fh=kr(()=>window.ScrollTimeline!==void 0),ph={};function mh(e,t){const n=kr(e);return()=>ph[t]??n()}const Rs=mh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,_s={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xt([0,.65,.55,1]),circOut:Xt([.55,0,1,.45]),backIn:Xt([.31,.01,.66,-.59]),backOut:Xt([.33,1.53,.69,.99])};function Hs(e,t){if(e)return typeof e=="function"?Rs()?Ms(e,t):"ease-out":ms(e)?Xt(e):Array.isArray(e)?e.map(n=>Hs(n,t)||_s.easeOut):_s[e]}function gh(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:c}={},d=void 0){const u={[t]:n};c&&(u.offset=c);const l=Hs(a,o);Array.isArray(l)&&(u.easing=l);const h={delay:r,duration:o,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Us(e){return typeof e=="function"&&"applyToOptions"in e}function yh({type:e,...t}){return Us(e)&&Rs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class vh extends Kr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,je(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=yh(t);this.animation=gh(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Wr(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):hh(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ce(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ce(t)}get time(){return Ce(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=De(t)}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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&fh()?(this.animation.timeline=t,Se):n(this)}}const Ws={anticipate:us,backInOut:ds,circInOut:fs};function bh(e){return e in Ws}function wh(e){typeof e.ease=="string"&&bh(e.ease)&&(e.ease=Ws[e.ease])}const Ks=10;class xh extends vh{constructor(t){wh(t),Ls(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Yr({...i,autoplay:!1}),c=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Ks).value,a.sample(c).value,Ks),a.stop()}}const Ys=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ge.test(e)||e==="0")&&!e.startsWith("url("));function Sh(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 Ch(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=Ys(o,t),a=Ys(s,t);return Tt(i===a,`You are trying to animate ${t} from "${o}" to "${s}". "${i?s:o}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:Sh(e)||(n==="spring"||Us(n))&&r}function no(e){e.duration=0,e.type="keyframes"}const Th=new Set(["opacity","clipPath","filter","transform"]),kh=kr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Eh(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return kh()&&n&&Th.has(n)&&(n!=="transform"||!d)&&!c&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const Ph=40;class Ah extends Kr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:c,motionValue:d,element:u,...l}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:c,motionValue:d,element:u,...l},m=u?.KeyframeResolver||to;this.keyframeResolver=new m(a,(g,v,b)=>this.onKeyframesResolved(g,v,h,!b),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:c,isHandoff:d,onUpdate:u}=r;this.resolvedAt=ge.now(),Ch(t,s,i,a)||((ze.instantAnimations||!c)&&u?.(Wr(t,r,n)),t[0]=t[t.length-1],no(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Ph?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&Eh(h)?new xh({...h,element:h.motionValue.owner.current}):new Yr(h);m.finished.then(()=>this.notifyFinished()).catch(Se),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}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(),dh()),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()}}const Dh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $h(e){const t=Dh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Mh=4;function Gs(e,t,n=1){je(n<=Mh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=$h(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return ts(i)?parseFloat(i):i}return Vr(o)?Gs(o,t,n+1):o}function ro(e,t){return e?.[t]??e?.default??e}const Xs=new Set(["width","height","top","left","right","bottom",...At]),Vh={test:e=>e==="auto",parse:e=>e},qs=e=>t=>t.test(e),Zs=[kt,M,Ne,Ye,Su,xu,Vh],Js=e=>Zs.find(qs(e));function Ih(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rs(e):!0}const Lh=new Set(["brightness","contrast","saturate","opacity"]);function Nh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ir)||[];if(!r)return e;const o=n.replace(r,"");let s=Lh.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const Bh=/\b([a-z-]*)\(.*?\)/gu,oo={...Ge,getAnimatableNone:e=>{const t=e.match(Bh);return t?t.map(Nh).join(" "):e}},Qs={...kt,transform:Math.round},io={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,backgroundPositionX:M,backgroundPositionY:M,...{rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Vn,scaleX:Vn,scaleY:Vn,scaleZ:Vn,skew:Ye,skewX:Ye,skewY:Ye,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Wt,originX:xs,originY:xs,originZ:M},zIndex:Qs,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:Qs},Oh={...io,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:oo,WebkitFilter:oo},ea=e=>Oh[e];function ta(e,t){let n=ea(e);return n!==oo&&(n=Ge),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Fh=new Set(["auto","none","0"]);function jh(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!Fh.has(s)&&Gt(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ta(n,o)}class zh extends to{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Vr(d))){const u=Gs(d,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Xs.has(r)||t.length!==2)return;const[o,s]=t,i=Js(o),a=Js(s);if(i!==a)if(Fs(i)&&Fs(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=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||Ih(t[o]))&&r.push(o);r.length&&jh(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 s=r.length-1,i=r[s];r[s]=at[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Rh(e,t,n){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)}const na=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ra(e){return ns(e)&&"offsetHeight"in e}const oa=30,_h=e=>!isNaN(parseFloat(e));class Hh{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ge.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 s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ge.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_h(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Pr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Er);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=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>oa)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,oa);return os(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 $t(e,t){return new Hh(e,t)}const{schedule:so}=vs(queueMicrotask,!1),$e={x:!1,y:!1};function ia(){return $e.x||$e.y}function Uh(e){return e==="x"||e==="y"?$e[e]?null:($e[e]=!0,()=>{$e[e]=!1}):$e.x||$e.y?null:($e.x=$e.y=!0,()=>{$e.x=$e.y=!1})}function sa(e,t){const n=Rh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function aa(e){return!(e.pointerType==="touch"||ia())}function Wh(e,t,n={}){const[r,o,s]=sa(e,n),i=a=>{if(!aa(a))return;const{target:c}=a,d=t(c,a);if(typeof d!="function"||!c)return;const u=l=>{aa(l)&&(d(l),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const la=(e,t)=>t?e===t?!0:la(e,t.parentElement):!1,ao=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Kh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Yh(e){return Kh.has(e.tagName)||e.tabIndex!==-1}const Bn=new WeakSet;function ca(e){return t=>{t.key==="Enter"&&e(t)}}function lo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Gh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ca(()=>{if(Bn.has(n))return;lo(n,"down");const o=ca(()=>{lo(n,"up")}),s=()=>lo(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function da(e){return ao(e)&&!ia()}function Xh(e,t,n={}){const[r,o,s]=sa(e,n),i=a=>{const c=a.currentTarget;if(!da(a))return;Bn.add(c);const d=t(c,a),u=(m,g)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",h),Bn.has(c)&&Bn.delete(c),da(m)&&typeof d=="function"&&d(m,{success:g})},l=m=>{u(m,c===window||c===document||n.useGlobalTarget||la(c,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),ra(a)&&(a.addEventListener("focus",d=>Gh(d,o)),!Yh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function ua(e){return ns(e)&&"ownerSVGElement"in e}function qh(e){return ua(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),Zh=[...Zs,ne,Ge],Jh=e=>Zh.find(qs(e)),co=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ha(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qh(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ha(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ha(e[o],null)}}}}function ef(...e){return cn.useCallback(Qh(...e),e)}class tf extends cn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ra(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function nf({children:e,isPresent:t,anchorX:n,root:r}){const o=f.useId(),s=f.useRef(null),i=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(co),c=ef(s,e?.ref);return f.useInsertionEffect(()=>{const{width:d,height:u,top:l,left:h,right:m}=i.current;if(t||!s.current||!d||!u)return;const g=n==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=o;const v=document.createElement("style");a&&(v.nonce=a);const b=r??document.head;return b.appendChild(v),v.sheet&&v.sheet.insertRule(`
226
+ `,Ji={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},W=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const s=typeof t=="string"&&t in Ji?Ji[t]:t;return p.jsx(iu,{$color:n,className:r,children:typeof e=="function"?p.jsx(e,{size:s,...o}):e})},wr=f.createContext({});function xr(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const Sr=typeof window<"u",Qi=Sr?f.useLayoutEffect:f.useEffect,Dn=f.createContext(null);function Cr(e,t){e.indexOf(t)===-1&&e.push(t)}function Tr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Fe=(e,t,n)=>n>t?t:n<e?e:n;function kr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Tt=()=>{},je=()=>{};process.env.NODE_ENV!=="production"&&(Tt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(kr(t,n))},je=(e,t,n)=>{if(!e)throw new Error(kr(t,n))});const ze={},es=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ts(e){return typeof e=="object"&&e!==null}const ns=e=>/^0[^.\s]+$/u.test(e);function Er(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,su=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(su),Ht=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Pr{constructor(){this.subscriptions=[]}add(t){return Cr(this.subscriptions,t),()=>Tr(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 s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Te=e=>e/1e3;function rs(e,t){return t?e*(1e3/t):0}const os=new Set;function Ar(e,t,n){e||os.has(t)||(console.warn(kr(t,n)),os.add(t))}const is=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,au=1e-7,lu=12;function cu(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=is(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>au&&++a<lu);return i}function Ut(e,t,n,r){if(e===t&&n===r)return Ce;const o=s=>cu(s,0,1,e,n);return s=>s===0||s===1?s:is(o(s),t,r)}const ss=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,as=e=>t=>1-e(1-t),ls=Ut(.33,1.53,.69,.99),Dr=as(ls),cs=ss(Dr),ds=e=>(e*=2)<1?.5*Dr(e):.5*(2-Math.pow(2,-10*(e-1))),$r=e=>1-Math.sin(Math.acos(e)),us=as($r),hs=ss($r),du=Ut(.42,0,1,1),uu=Ut(0,0,.58,1),fs=Ut(.42,0,.58,1),hu=e=>Array.isArray(e)&&typeof e[0]!="number",ps=e=>Array.isArray(e)&&typeof e[0]=="number",ms={linear:Ce,easeIn:du,easeInOut:fs,easeOut:uu,circIn:$r,circInOut:hs,circOut:us,backIn:Dr,backInOut:cs,backOut:ls,anticipate:ds},fu=e=>typeof e=="string",gs=e=>{if(ps(e)){je(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Ut(t,n,r,o)}else if(fu(e))return je(ms[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ms[e];return e},$n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function pu(e,t){let n=new Set,r=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,c=!1,h=!1)=>{const g=h&&o?n:r;return c&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),i.delete(u)},process:u=>{if(a=u,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const mu=40;function ys(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=$n.reduce((w,A)=>(w[A]=pu(s),w),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:m,postRender:g}=i,b=()=>{const w=ze.useManualTiming?o.timestamp:performance.now();n=!1,ze.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,mu),1)),o.timestamp=w,o.isProcessing=!0,a.process(o),l.process(o),d.process(o),u.process(o),c.process(o),h.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(b))},x=()=>{n=!0,r=!0,o.isProcessing||e(b)};return{schedule:$n.reduce((w,A)=>{const P=i[A];return w[A]=(k,E=!1,D=!1)=>(n||x(),P.schedule(k,E,D)),w},{}),cancel:w=>{for(let A=0;A<$n.length;A++)i[$n[A]].cancel(w)},state:o,steps:i}}const{schedule:J,cancel:Ke,state:ce,steps:Mr}=ys(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let Mn;function gu(){Mn=void 0}const ye={now:()=>(Mn===void 0&&ye.set(ce.isProcessing||ze.useManualTiming?ce.timestamp:performance.now()),Mn),set:e=>{Mn=e,queueMicrotask(gu)}},vs=e=>t=>typeof t=="string"&&t.startsWith(e),Vr=vs("--"),yu=vs("var(--"),Ir=e=>yu(e)?vu.test(e.split("/*")[0].trim()):!1,vu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,kt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wt={...kt,transform:e=>Fe(0,1,e)},Vn={...kt,default:1},Kt=e=>Math.round(e*1e5)/1e5,Lr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bu(e){return e==null}const wu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nr=(e,t)=>n=>!!(typeof n=="string"&&wu.test(n)&&n.startsWith(e)||t&&!bu(n)&&Object.prototype.hasOwnProperty.call(n,t)),bs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(Lr);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},xu=e=>Fe(0,255,e),Br={...kt,transform:e=>Math.round(xu(e))},it={test:Nr("rgb","red"),parse:bs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Br.transform(e)+", "+Br.transform(t)+", "+Br.transform(n)+", "+Kt(Wt.transform(r))+")"};function Su(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 Or={test:Nr("#"),parse:Su,transform:it.transform},Yt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ye=Yt("deg"),Ne=Yt("%"),V=Yt("px"),Cu=Yt("vh"),Tu=Yt("vw"),ws={...Ne,parse:e=>Ne.parse(e)/100,transform:e=>Ne.transform(e*100)},Et={test:Nr("hsl","hue"),parse:bs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ne.transform(Kt(t))+", "+Ne.transform(Kt(n))+", "+Kt(Wt.transform(r))+")"},re={test:e=>it.test(e)||Or.test(e)||Et.test(e),parse:e=>it.test(e)?it.parse(e):Et.test(e)?Et.parse(e):Or.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?it.transform(e):Et.transform(e),getAnimatableNone:e=>{const t=re.parse(e);return t.alpha=0,re.transform(t)}},ku=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Eu(e){return isNaN(e)&&typeof e=="string"&&(e.match(Lr)?.length||0)+(e.match(ku)?.length||0)>0}const xs="number",Ss="color",Pu="var",Au="var(",Cs="${}",Du=/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 Gt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(Du,l=>(re.test(l)?(r.color.push(s),o.push(Ss),n.push(re.parse(l))):l.startsWith(Au)?(r.var.push(s),o.push(Pu),n.push(l)):(r.number.push(s),o.push(xs),n.push(parseFloat(l))),++s,Cs)).split(Cs);return{values:n,split:a,indexes:r,types:o}}function Ts(e){return Gt(e).values}function ks(e){const{split:t,types:n}=Gt(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===xs?s+=Kt(o[i]):a===Ss?s+=re.transform(o[i]):s+=o[i]}return s}}const $u=e=>typeof e=="number"?0:re.test(e)?re.getAnimatableNone(e):e;function Mu(e){const t=Ts(e);return ks(e)(t.map($u))}const Ge={test:Eu,parse:Ts,createTransformer:ks,getAnimatableNone:Mu};function Fr(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 Vu({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Fr(l,a,e+1/3),s=Fr(l,a,e),i=Fr(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function In(e,t){return n=>n>0?t:e}const Q=(e,t,n)=>e+(t-e)*n,jr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Iu=[Or,it,Et],Lu=e=>Iu.find(t=>t.test(e));function Es(e){const t=Lu(e);if(Tt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Et&&(n=Vu(n)),n}const Ps=(e,t)=>{const n=Es(e),r=Es(t);if(!n||!r)return In(e,t);const o={...n};return s=>(o.red=jr(n.red,r.red,s),o.green=jr(n.green,r.green,s),o.blue=jr(n.blue,r.blue,s),o.alpha=Q(n.alpha,r.alpha,s),it.transform(o))},zr=new Set(["none","hidden"]);function Nu(e,t){return zr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Bu(e,t){return n=>Q(e,t,n)}function Rr(e){return typeof e=="number"?Bu:typeof e=="string"?Ir(e)?In:re.test(e)?Ps:ju:Array.isArray(e)?As:typeof e=="object"?re.test(e)?Ps:Ou:In}function As(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>Rr(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function Ou(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Rr(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function Fu(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][r[s]],a=e.values[i]??0;n[o]=a,r[s]++}return n}const ju=(e,t)=>{const n=Ge.createTransformer(t),r=Gt(e),o=Gt(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?zr.has(e)&&!o.values.length||zr.has(t)&&!r.values.length?Nu(e,t):_t(As(Fu(r,o),o.values),n):(Tt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),In(e,t))};function Ds(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Q(e,t,n):Rr(e)(e,t)}const zu=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>J.update(t,n),stop:()=>Ke(t),now:()=>ce.isProcessing?ce.timestamp:ye.now()}},$s=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ln=2e4;function _r(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ln;)t+=n,r=e.next(t);return t>=Ln?1/0:t}function Ru(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(_r(r),Ln);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Te(o)}}const _u=5;function Ms(e,t,n){const r=Math.max(t-_u,0);return rs(n-e(r),t-r)}const ee={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},Hr=.001;function Hu({duration:e=ee.duration,bounce:t=ee.bounce,velocity:n=ee.velocity,mass:r=ee.mass}){let o,s;Tt(e<=De(ee.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=Fe(ee.minDamping,ee.maxDamping,i),e=Fe(ee.minDuration,ee.maxDuration,Te(e)),i<1?(o=d=>{const u=d*i,c=u*e,h=u-n,m=Ur(d,i),g=Math.exp(-c);return Hr-h/m*g},s=d=>{const c=d*i*e,h=c*n+n,m=Math.pow(i,2)*Math.pow(d,2)*e,g=Math.exp(-c),b=Ur(Math.pow(d,2),i);return(-o(d)+Hr>0?-1:1)*((h-m)*g)/b}):(o=d=>{const u=Math.exp(-d*e),c=(d-n)*e+1;return-Hr+u*c},s=d=>{const u=Math.exp(-d*e),c=(n-d)*(e*e);return u*c});const a=5/e,l=Wu(o,s,a);if(e=De(e),isNaN(l))return{stiffness:ee.stiffness,damping:ee.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:i*2*Math.sqrt(r*d),duration:e}}}const Uu=12;function Wu(e,t,n){let r=n;for(let o=1;o<Uu;o++)r=r-e(r)/t(r);return r}function Ur(e,t){return e*Math.sqrt(1-t*t)}const Ku=["duration","bounce"],Yu=["stiffness","damping","mass"];function Vs(e,t){return t.some(n=>e[n]!==void 0)}function Gu(e){let t={velocity:ee.velocity,stiffness:ee.stiffness,damping:ee.damping,mass:ee.mass,isResolvedFromDuration:!1,...e};if(!Vs(e,Yu)&&Vs(e,Ku))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ee.mass,stiffness:o,damping:s}}else{const n=Hu(e);t={...t,...n,mass:ee.mass},t.isResolvedFromDuration=!0}return t}function Nn(e=ee.visualDuration,t=ee.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:d,mass:u,duration:c,velocity:h,isResolvedFromDuration:m}=Gu({...n,velocity:-Te(n.velocity||0)}),g=h||0,b=d/(2*Math.sqrt(l*u)),x=i-s,y=Te(Math.sqrt(l/u)),C=Math.abs(x)<5;r||(r=C?ee.restSpeed.granular:ee.restSpeed.default),o||(o=C?ee.restDelta.granular:ee.restDelta.default);let w;if(b<1){const P=Ur(y,b);w=k=>{const E=Math.exp(-b*y*k);return i-E*((g+b*y*x)/P*Math.sin(P*k)+x*Math.cos(P*k))}}else if(b===1)w=P=>i-Math.exp(-y*P)*(x+(g+y*x)*P);else{const P=y*Math.sqrt(b*b-1);w=k=>{const E=Math.exp(-b*y*k),D=Math.min(P*k,300);return i-E*((g+b*y*x)*Math.sinh(D)+P*x*Math.cosh(D))/P}}const A={calculatedDuration:m&&c||null,next:P=>{const k=w(P);if(m)a.done=P>=c;else{let E=P===0?g:0;b<1&&(E=P===0?De(g):Ms(w,P,k));const D=Math.abs(E)<=r,L=Math.abs(i-k)<=o;a.done=D&&L}return a.value=a.done?i:k,a},toString:()=>{const P=Math.min(_r(A),Ln),k=$s(E=>A.next(P*E).value,P,30);return P+"ms "+k},toTransition:()=>{}};return A}Nn.applyToOptions=e=>{const t=Ru(e,100,Nn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function Wr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:d=.5,restSpeed:u}){const c=e[0],h={done:!1,value:c},m=D=>a!==void 0&&D<a||l!==void 0&&D>l,g=D=>a===void 0?l:l===void 0||Math.abs(a-D)<Math.abs(l-D)?a:l;let b=n*t;const x=c+b,y=i===void 0?x:i(x);y!==x&&(b=y-c);const C=D=>-b*Math.exp(-D/r),w=D=>y+C(D),A=D=>{const L=C(D),_=w(D);h.done=Math.abs(L)<=d,h.value=h.done?y:_};let P,k;const E=D=>{m(h.value)&&(P=D,k=Nn({keyframes:[h.value,g(h.value)],velocity:Ms(w,D,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return E(0),{calculatedDuration:null,next:D=>{let L=!1;return!k&&P===void 0&&(L=!0,A(D),E(D)),P!==void 0&&D>=P?k.next(D-P):(!L&&A(D),h)}}}function Xu(e,t,n){const r=[],o=n||ze.mix||Ds,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Ce:t;a=_t(l,a)}r.push(a)}return r}function Zu(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(je(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Xu(t,r,o),l=a.length,d=u=>{if(i&&u<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const h=Ht(e[c],e[c+1],u);return a[c](h)};return n?u=>d(Fe(e[0],e[s-1],u)):d}function qu(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ht(0,t,r);e.push(Q(n,1,o))}}function Ju(e){const t=[0];return qu(t,e.length-1),t}function Qu(e,t){return e.map(n=>n*t)}function eh(e,t){return e.map(()=>t||fs).splice(0,e.length-1)}function Pt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=hu(r)?r.map(gs):gs(r),s={done:!1,value:t[0]},i=Qu(n&&n.length===t.length?n:Ju(t),e),a=Zu(i,t,{ease:Array.isArray(o)?o:eh(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const th=e=>e!==null;function Kr(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(th),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const nh={decay:Wr,inertia:Wr,tween:Pt,keyframes:Pt,spring:Nn};function Is(e){typeof e.type=="string"&&(e.type=nh[e.type])}class Yr{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 rh=e=>e/100;class Gr extends Yr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ye.now()&&this.tick(ye.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;Is(t);const{type:n=Pt,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const l=n||Pt;process.env.NODE_ENV!=="production"&&l!==Pt&&je(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Pt&&typeof a[0]!="number"&&(this.mixKeyframes=_t(rh,Ds(a[0],a[1])),a=[0,100]);const d=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=_r(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}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:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:m,type:g,onUpdate:b,finalKeyframe:x}=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 y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,A=r;if(c){const D=Math.min(this.currentTime,o)/a;let L=Math.floor(D),_=D%1;!_&&D>=1&&(_=1),_===1&&L--,L=Math.min(L,c+1),!!(L%2)&&(h==="reverse"?(_=1-_,m&&(_-=m/a)):h==="mirror"&&(A=i)),w=Fe(0,1,_)*a}const P=C?{done:!1,value:u[0]}:A.next(w);s&&(P.value=s(P.value));let{done:k}=P;!C&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return E&&g!==Wr&&(P.value=Kr(u,this.options,x,this.speed)),b&&b(P.value),E&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Te(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(this.currentTime)}set time(t){t=De(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ye.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Te(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=zu,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(ye.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 oh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const st=e=>e*180/Math.PI,Xr=e=>{const t=st(Math.atan2(e[1],e[0]));return Zr(t)},ih={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xr,rotateZ:Xr,skewX:e=>st(Math.atan(e[1])),skewY:e=>st(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Zr=e=>(e=e%360,e<0&&(e+=360),e),Ls=Xr,Ns=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),sh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ns,scaleY:Bs,scale:e=>(Ns(e)+Bs(e))/2,rotateX:e=>Zr(st(Math.atan2(e[6],e[5]))),rotateY:e=>Zr(st(Math.atan2(-e[2],e[0]))),rotateZ:Ls,rotate:Ls,skewX:e=>st(Math.atan(e[4])),skewY:e=>st(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qr(e){return e.includes("scale")?1:0}function Jr(e,t){if(!e||e==="none")return qr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=sh,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ih,o=a}if(!o)return qr(t);const s=r[t],i=o[1].split(",").map(lh);return typeof s=="function"?s(i):i[s]}const ah=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jr(n,t)};function lh(e){return parseFloat(e.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dt=new Set(At),Os=e=>e===kt||e===V,ch=new Set(["x","y","z"]),dh=At.filter(e=>!ch.has(e));function uh(e){const t=[];return dh.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"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jr(t,"x"),y:(e,{transform:t})=>Jr(t,"y")};at.translateX=at.x,at.translateY=at.y;const lt=new Set;let Qr=!1,eo=!1,to=!1;function Fs(){if(eo){const e=Array.from(lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=uh(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(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}eo=!1,Qr=!1,lt.forEach(e=>e.complete(to)),lt.clear()}function js(){lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eo=!0)})}function hh(){to=!0,js(),Fs(),to=!1}class no{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(lt.add(this),Qr||(Qr=!0,J.read(js),J.resolveKeyframes(Fs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}oh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lt.delete(this)}cancel(){this.state==="scheduled"&&(lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fh=e=>e.startsWith("--");function ph(e,t,n){fh(t)?e.style.setProperty(t,n):e.style[t]=n}const mh=Er(()=>window.ScrollTimeline!==void 0),gh={};function yh(e,t){const n=Er(e);return()=>gh[t]??n()}const zs=yh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Rs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xt([0,.65,.55,1]),circOut:Xt([.55,0,1,.45]),backIn:Xt([.31,.01,.66,-.59]),backOut:Xt([.33,1.53,.69,.99])};function _s(e,t){if(e)return typeof e=="function"?zs()?$s(e,t):"ease-out":ps(e)?Xt(e):Array.isArray(e)?e.map(n=>_s(n,t)||Rs.easeOut):Rs[e]}function vh(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:l}={},d=void 0){const u={[t]:n};l&&(u.offset=l);const c=_s(a,o);Array.isArray(c)&&(u.easing=c);const h={delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Hs(e){return typeof e=="function"&&"applyToOptions"in e}function bh({type:e,...t}){return Hs(e)&&zs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class wh extends Yr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,je(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=bh(t);this.animation=vh(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Kr(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):ph(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Te(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=De(t)}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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&mh()?(this.animation.timeline=t,Ce):n(this)}}const Us={anticipate:ds,backInOut:cs,circInOut:hs};function xh(e){return e in Us}function Sh(e){typeof e.ease=="string"&&xh(e.ease)&&(e.ease=Us[e.ease])}const Ws=10;class Ch extends wh{constructor(t){Sh(t),Is(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Gr({...i,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ws).value,a.sample(l).value,Ws),a.stop()}}const Ks=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ge.test(e)||e==="0")&&!e.startsWith("url("));function Th(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 kh(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=Ks(o,t),a=Ks(s,t);return Tt(i===a,`You are trying to animate ${t} from "${o}" to "${s}". "${i?s:o}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:Th(e)||(n==="spring"||Hs(n))&&r}function ro(e){e.duration=0,e.type="keyframes"}const Eh=new Set(["opacity","clipPath","filter","transform"]),Ph=Er(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ah(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=t.owner.getProps();return Ph()&&n&&Eh.has(n)&&(n!=="transform"||!d)&&!l&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const Dh=40;class $h extends Yr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:l,motionValue:d,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ye.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:l,motionValue:d,element:u,...c},m=u?.KeyframeResolver||no;this.keyframeResolver=new m(a,(g,b,x)=>this.onKeyframesResolved(g,b,h,!x),l,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:l,isHandoff:d,onUpdate:u}=r;this.resolvedAt=ye.now(),kh(t,s,i,a)||((ze.instantAnimations||!l)&&u?.(Kr(t,r,n)),t[0]=t[t.length-1],ro(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Dh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&Ah(h)?new Ch({...h,element:h.motionValue.owner.current}):new Gr(h);m.finished.then(()=>this.notifyFinished()).catch(Ce),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}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(),hh()),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()}}const Mh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Vh(e){const t=Mh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Ih=4;function Ys(e,t,n=1){je(n<=Ih,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Vh(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return es(i)?parseFloat(i):i}return Ir(o)?Ys(o,t,n+1):o}function oo(e,t){return e?.[t]??e?.default??e}const Gs=new Set(["width","height","top","left","right","bottom",...At]),Lh={test:e=>e==="auto",parse:e=>e},Xs=e=>t=>t.test(e),Zs=[kt,V,Ne,Ye,Tu,Cu,Lh],qs=e=>Zs.find(Xs(e));function Nh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ns(e):!0}const Bh=new Set(["brightness","contrast","saturate","opacity"]);function Oh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lr)||[];if(!r)return e;const o=n.replace(r,"");let s=Bh.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const Fh=/\b([a-z-]*)\(.*?\)/gu,io={...Ge,getAnimatableNone:e=>{const t=e.match(Fh);return t?t.map(Oh).join(" "):e}},Js={...kt,transform:Math.round},so={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Vn,scaleX:Vn,scaleY:Vn,scaleZ:Vn,skew:Ye,skewX:Ye,skewY:Ye,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Wt,originX:ws,originY:ws,originZ:V},zIndex:Js,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:Js},jh={...so,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:io,WebkitFilter:io},Qs=e=>jh[e];function ea(e,t){let n=Qs(e);return n!==io&&(n=Ge),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const zh=new Set(["auto","none","0"]);function Rh(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!zh.has(s)&&Gt(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ea(n,o)}class _h extends no{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),Ir(d))){const u=Ys(d,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Gs.has(r)||t.length!==2)return;const[o,s]=t,i=qs(o),a=qs(s);if(i!==a)if(Os(i)&&Os(a))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=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||Nh(t[o]))&&r.push(o);r.length&&Rh(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 s=r.length-1,i=r[s];r[s]=at[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Hh(e,t,n){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)}const ta=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function na(e){return ts(e)&&"offsetHeight"in e}const ra=30,Uh=e=>!isNaN(parseFloat(e));class Wh{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ye.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 s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Uh(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ar(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Pr);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.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=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ra)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ra);return rs(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 $t(e,t){return new Wh(e,t)}const{schedule:ao}=ys(queueMicrotask,!1),$e={x:!1,y:!1};function oa(){return $e.x||$e.y}function Kh(e){return e==="x"||e==="y"?$e[e]?null:($e[e]=!0,()=>{$e[e]=!1}):$e.x||$e.y?null:($e.x=$e.y=!0,()=>{$e.x=$e.y=!1})}function ia(e,t){const n=Hh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function sa(e){return!(e.pointerType==="touch"||oa())}function Yh(e,t,n={}){const[r,o,s]=ia(e,n),i=a=>{if(!sa(a))return;const{target:l}=a,d=t(l,a);if(typeof d!="function"||!l)return;const u=c=>{sa(c)&&(d(c),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const aa=(e,t)=>t?e===t?!0:aa(e,t.parentElement):!1,lo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Gh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Xh(e){return Gh.has(e.tagName)||e.tabIndex!==-1}const Bn=new WeakSet;function la(e){return t=>{t.key==="Enter"&&e(t)}}function co(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Zh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=la(()=>{if(Bn.has(n))return;co(n,"down");const o=la(()=>{co(n,"up")}),s=()=>co(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ca(e){return lo(e)&&!oa()}function qh(e,t,n={}){const[r,o,s]=ia(e,n),i=a=>{const l=a.currentTarget;if(!ca(a))return;Bn.add(l);const d=t(l,a),u=(m,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",h),Bn.has(l)&&Bn.delete(l),ca(m)&&typeof d=="function"&&d(m,{success:g})},c=m=>{u(m,l===window||l===document||n.useGlobalTarget||aa(l,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),na(a)&&(a.addEventListener("focus",d=>Zh(d,o)),!Xh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function da(e){return ts(e)&&"ownerSVGElement"in e}function Jh(e){return da(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),Qh=[...Zs,re,Ge],ef=e=>Qh.find(Xs(e)),uo=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ua(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tf(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ua(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ua(e[o],null)}}}}function nf(...e){return cn.useCallback(tf(...e),e)}class rf extends cn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=na(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function of({children:e,isPresent:t,anchorX:n,root:r}){const o=f.useId(),s=f.useRef(null),i=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(uo),l=nf(s,e?.ref);return f.useInsertionEffect(()=>{const{width:d,height:u,top:c,left:h,right:m}=i.current;if(t||!s.current||!d||!u)return;const g=n==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=o;const b=document.createElement("style");a&&(b.nonce=a);const x=r??document.head;return x.appendChild(b),b.sheet&&b.sheet.insertRule(`
227
227
  [data-motion-pop-id="${o}"] {
228
228
  position: absolute !important;
229
229
  width: ${d}px !important;
230
230
  height: ${u}px !important;
231
231
  ${g}px !important;
232
- top: ${l}px !important;
232
+ top: ${c}px !important;
233
233
  }
234
- `),()=>{b.contains(v)&&b.removeChild(v)}},[t]),p.jsx(tf,{isPresent:t,childRef:s,sizeRef:i,children:cn.cloneElement(e,{ref:c})})}const rf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,root:c})=>{const d=wr(of),u=f.useId();let l=!0,h=f.useMemo(()=>(l=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;r&&r()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,r]);return s&&l&&(h={...h}),f.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),cn.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),i==="popLayout"&&(e=p.jsx(nf,{isPresent:n,anchorX:a,root:c,children:e})),p.jsx(Dn.Provider,{value:h,children:e})};function of(){return new Map}function fa(e=!0){const t=f.useContext(Dn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=f.useId();f.useEffect(()=>{if(e)return o(s)},[e]);const i=f.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const On=e=>e.key||"";function pa(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const qt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",root:c})=>{const[d,u]=fa(i),l=f.useMemo(()=>pa(e),[e]),h=i&&!d?[]:l.map(On),m=f.useRef(!0),g=f.useRef(l),v=wr(()=>new Map),[b,y]=f.useState(l),[S,w]=f.useState(l);es(()=>{m.current=!1,g.current=l;for(let k=0;k<S.length;k++){const P=On(S[k]);h.includes(P)?v.delete(P):v.get(P)!==!0&&v.set(P,!1)}},[S,h.length,h.join("-")]);const A=[];if(l!==b){let k=[...l];for(let P=0;P<S.length;P++){const D=S[P],L=On(D);h.includes(L)||(k.splice(P,0,D),A.push(D))}return s==="wait"&&A.length&&(k=A),w(pa(k)),y(l),null}process.env.NODE_ENV!=="production"&&s==="wait"&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:E}=f.useContext(br);return p.jsx(p.Fragment,{children:S.map(k=>{const P=On(k),D=i&&!d?!1:l===S||h.includes(P),L=()=>{if(v.has(P))v.set(P,!0);else return;let _=!0;v.forEach($=>{$||(_=!1)}),_&&(E?.(),w(g.current),i&&u?.(),r&&r())};return p.jsx(rf,{isPresent:D,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:c,onExitComplete:D?void 0:L,anchorX:a,children:k},P)})})},ma=f.createContext({strict:!1}),ga={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"]},Mt={};for(const e in ga)Mt[e]={isEnabled:t=>ga[e].some(n=>!!t[n])};function sf(e){for(const t in e)Mt[t]={...Mt[t],...e[t]}}const af=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||af.has(e)}let ya=e=>!Fn(e);function lf(e){typeof e=="function"&&(ya=t=>t.startsWith("on")?!Fn(t):e(t))}try{lf(require("@emotion/is-prop-valid").default)}catch{}function cf(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ya(o)||n===!0&&Fn(o)||!t&&!Fn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jn=f.createContext({});function zn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zt(e){return typeof e=="string"||Array.isArray(e)}const uo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ho=["initial",...uo];function Rn(e){return zn(e.animate)||ho.some(t=>Zt(e[t]))}function va(e){return!!(Rn(e)||e.variants)}function df(e,t){if(Rn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zt(n)?n:void 0,animate:Zt(r)?r:void 0}}return e.inherit!==!1?t:{}}function uf(e){const{initial:t,animate:n}=df(e,f.useContext(jn));return f.useMemo(()=>({initial:t,animate:n}),[ba(t),ba(n)])}function ba(e){return Array.isArray(e)?e.join(" "):e}const Jt={};function hf(e){for(const t in e)Jt[t]=e[t],Mr(t)&&(Jt[t].isCSSVariable=!0)}function wa(e,{layout:t,layoutId:n}){return Dt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jt[e]||e==="opacity")}const ff={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pf=At.length;function mf(e,t,n){let r="",o=!0;for(let s=0;s<pf;s++){const i=At[s],a=e[i];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(i.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const d=na(a,io[i]);if(!c){o=!1;const u=ff[i]||i;r+=`${u}(${d}) `}n&&(t[i]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function fo(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const c in t){const d=t[c];if(Dt.has(c)){i=!0;continue}else if(Mr(c)){o[c]=d;continue}else{const u=na(d,io[c]);c.startsWith("origin")?(a=!0,s[c]=u):r[c]=u}}if(t.transform||(i||n?r.transform=mf(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${d} ${u}`}}const po=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xa(e,t,n){for(const r in t)!ue(t[r])&&!wa(r,n)&&(e[r]=t[r])}function gf({transformTemplate:e},t){return f.useMemo(()=>{const n=po();return fo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function yf(e,t){const n=e.style||{},r={};return xa(r,n,e),Object.assign(r,gf(e,t)),r}function vf(e,t){const n={},r=yf(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 bf={offset:"stroke-dashoffset",array:"stroke-dasharray"},wf={offset:"strokeDashoffset",array:"strokeDasharray"};function xf(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?bf:wf;e[s.offset]=M.transform(-r);const i=M.transform(t),a=M.transform(n);e[s.array]=`${i} ${a}`}function Sa(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},c,d,u){if(fo(e,a,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:l,style:h}=e;l.transform&&(h.transform=l.transform,delete l.transform),(h.transform||l.transformOrigin)&&(h.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete l.transformBox),t!==void 0&&(l.x=t),n!==void 0&&(l.y=n),r!==void 0&&(l.scale=r),o!==void 0&&xf(l,o,s,i,!1)}const Ca=()=>({...po(),attrs:{}}),Ta=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Sf(e,t,n,r){const o=f.useMemo(()=>{const s=Ca();return Sa(s,t,Ta(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};xa(s,e.style,e),o.style={...s,...o.style}}return o}const Cf=["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 mo(e){return typeof e!="string"||e.includes("-")?!1:!!(Cf.indexOf(e)>-1||/[A-Z]/u.test(e))}function Tf(e,t,n,{latestValues:r},o,s=!1){const a=(mo(e)?Sf:vf)(t,r,o,e),c=cf(t,typeof e=="string",s),d=e!==f.Fragment?{...c,...a,ref:n}:{},{children:u}=t,l=f.useMemo(()=>ue(u)?u.get():u,[u]);return f.createElement(e,{...d,children:l})}function ka(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function go(e,t,n,r){if(typeof t=="function"){const[o,s]=ka(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=ka(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function _n(e){return ue(e)?e.get():e}function kf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Ef(n,r,o,e),renderState:t()}}function Ef(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=_n(s[h]);let{initial:i,animate:a}=e;const c=Rn(e),d=va(e);t&&d&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||i===!1;const l=u?a:i;if(l&&typeof l!="boolean"&&!zn(l)){const h=Array.isArray(l)?l:[l];for(let m=0;m<h.length;m++){const g=go(e,h[m]);if(g){const{transitionEnd:v,transition:b,...y}=g;for(const S in y){let w=y[S];if(Array.isArray(w)){const A=u?w.length-1:0;w=w[A]}w!==null&&(o[S]=w)}for(const S in v)o[S]=v[S]}}}return o}const Ea=e=>(t,n)=>{const r=f.useContext(jn),o=f.useContext(Dn),s=()=>kf(e,t,r,o);return n?s():wr(s)};function yo(e,t,n){const{style:r}=e,o={};for(const s in r)(ue(r[s])||t.style&&ue(t.style[s])||wa(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const Pf=Ea({scrapeMotionValuesFromProps:yo,createRenderState:po});function Pa(e,t,n){const r=yo(e,t,n);for(const o in e)if(ue(e[o])||ue(t[o])){const s=At.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const Af=Ea({scrapeMotionValuesFromProps:Pa,createRenderState:Ca}),Df=Symbol.for("motionComponentSymbol");function Vt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $f(e,t,n){return f.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vt(n)&&(n.current=r))},[t])}const vo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Aa="data-"+vo("framerAppearId"),Da=f.createContext({});function Mf(e,t,n,r,o){const{visualElement:s}=f.useContext(jn),i=f.useContext(ma),a=f.useContext(Dn),c=f.useContext(co).reducedMotion,d=f.useRef(null);r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=d.current,l=f.useContext(Da);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Vf(d.current,n,o,l);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const m=n[Aa],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return es(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1),u.enteringChildren=void 0)}),u}function Vf(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$a(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&Vt(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:d})}function $a(e){if(e)return e.options.allowProjection!==!1?e.projection:$a(e.parent)}function bo(e,{forwardMotionProps:t=!1}={},n,r){n&&sf(n);const o=mo(e)?Af:Pf;function s(a,c){let d;const u={...f.useContext(co),...a,layoutId:If(a)},{isStatic:l}=u,h=uf(a),m=o(a,l);if(!l&&xr){Lf(u,n);const g=Nf(u);d=g.MeasureLayout,h.visualElement=Mf(e,m,u,r,g.ProjectionNode)}return p.jsxs(jn.Provider,{value:h,children:[d&&h.visualElement?p.jsx(d,{visualElement:h.visualElement,...u}):null,Tf(e,a,$f(m,h.visualElement,c),m,l,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=f.forwardRef(s);return i[Df]=e,i}function If({layoutId:e}){const t=f.useContext(br).id;return t&&e!==void 0?t+"-"+e:e}function Lf(e,t){const n=f.useContext(ma).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Tt(!1,r,"lazy-strict-mode"):je(!1,r,"lazy-strict-mode")}}function Nf(e){const{drag:t,layout:n}=Mt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Bf(e,t){if(typeof Proxy>"u")return bo;const n=new Map,r=(s,i)=>bo(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Pr(!1,"motion() is deprecated. Use motion.create() instead."),r(s,i));return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,bo(i,void 0,e,t)),n.get(i))})}function Ma({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Of({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ff(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 wo(e){return e===void 0||e===1}function xo({scale:e,scaleX:t,scaleY:n}){return!wo(e)||!wo(t)||!wo(n)}function ct(e){return xo(e)||Va(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Va(e){return Ia(e.x)||Ia(e.y)}function Ia(e){return e&&e!=="0%"}function Hn(e,t,n){const r=e-n,o=t*r;return n+o}function La(e,t,n,r,o){return o!==void 0&&(e=Hn(e,o,r)),Hn(e,n,r)+t}function So(e,t=0,n=1,r,o){e.min=La(e.min,t,n,r,o),e.max=La(e.max,t,n,r,o)}function Na(e,{x:t,y:n}){So(e.x,t.translate,t.scale,t.originPoint),So(e.y,n.translate,n.scale,n.originPoint)}const Ba=.999999999999,Oa=1.0000000000001;function jf(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Lt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Na(e,i)),r&&ct(s.latestValues)&&Lt(e,s.latestValues))}t.x<Oa&&t.x>Ba&&(t.x=1),t.y<Oa&&t.y>Ba&&(t.y=1)}function It(e,t){e.min=e.min+t,e.max=e.max+t}function Fa(e,t,n,r,o=.5){const s=J(e.min,e.max,o);So(e,t,n,s,r)}function Lt(e,t){Fa(e.x,t.x,t.scaleX,t.scale,t.originX),Fa(e.y,t.y,t.scaleY,t.scale,t.originY)}function ja(e,t){return Ma(Ff(e.getBoundingClientRect(),t))}function zf(e,t,n){const r=ja(e,n),{scroll:o}=t;return o&&(It(r.x,o.offset.x),It(r.y,o.offset.y)),r}const za=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nt=()=>({x:za(),y:za()}),Ra=()=>({min:0,max:0}),ee=()=>({x:Ra(),y:Ra()}),Co={current:null},_a={current:!1};function Rf(){if(_a.current=!0,!!xr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Co.current=e.matches;e.addEventListener("change",t),t()}else Co.current=!1}const _f=new WeakMap;function Hf(e,t,n){for(const r in t){const o=t[r],s=n[r];if(ue(o))e.addValue(r,o);else if(ue(s))e.addValue(r,$t(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,$t(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ha=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Uf{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=to,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ge.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Z.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Rn(n),this.isVariantNode=va(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...l}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in l){const m=l[h];c[h]!==void 0&&ue(m)&&m.set(c[h])}}mount(t){this.current=t,_f.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)),_a.current||Rf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Co.current,process.env.NODE_ENV!=="production"&&Pr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ke(this.notifyUpdate),Ke(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){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Dt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mt){const n=Mt[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ee()}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<Ha.length;r++){const o=Ha[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=Hf(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=$t(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"&&(ts(r)||rs(r))?r=parseFloat(r):!Jh(r)&&Ge.test(n)&&(r=ta(t,n)),this.setBaseTarget(t,ue(r)?r.get():r)),ue(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 s=go(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ue(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 Er),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){so.render(this.render)}}class Ua extends Uf{constructor(){super(...arguments),this.KeyframeResolver=zh}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[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;ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Wa(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o?.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function Wf(e){return window.getComputedStyle(e)}class Kf extends Ua{constructor(){super(...arguments),this.type="html",this.renderInstance=Wa}readValueFromInstance(t,n){if(Dt.has(n))return this.projection?.isProjecting?qr(n):ih(t,n);{const r=Wf(t),o=(Mr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ja(t,n)}build(t,n,r){fo(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return yo(t,n,r)}}const Ka=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Yf(e,t,n,r){Wa(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ka.has(o)?o:vo(o),t.attrs[o])}class Gf extends Ua{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ee}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dt.has(n)){const r=ea(n);return r&&r.default||0}return n=Ka.has(n)?n:vo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Pa(t,n,r)}build(t,n,r){Sa(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){Yf(t,n,r,o)}mount(t){this.isSVGTag=Ta(t.tagName),super.mount(t)}}const Xf=(e,t)=>mo(e)?new Gf(t):new Kf(t,{allowProjection:e!==f.Fragment});function Bt(e,t,n){const r=e.getProps();return go(r,t,n!==void 0?n:r.custom,e)}const To=e=>Array.isArray(e);function qf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$t(n))}function Zf(e){return To(e)?e[e.length-1]||0:e}function Jf(e,t){const n=Bt(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=Zf(s[i]);qf(e,i,a)}}function Qf(e){return!!(ue(e)&&e.add)}function ko(e,t){const n=e.getValue("willChange");if(Qf(n))return n.add(t);if(!n&&ze.WillChange){const r=new ze.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ya(e){return e.props[Aa]}const ep=e=>e!==null;function tp(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(ep),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const np={type:"spring",stiffness:500,damping:25,restSpeed:10},rp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),op={type:"keyframes",duration:.8},ip={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sp=(e,{keyframes:t})=>t.length>2?op:Dt.has(e)?e.startsWith("scale")?rp(t[1]):np:ip;function ap({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const Eo=(e,t,n,r={},o,s)=>i=>{const a=ro(r,e)||{},c=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-De(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};ap(a)||Object.assign(u,sp(e,u)),u.duration&&(u.duration=De(u.duration)),u.repeatDelay&&(u.repeatDelay=De(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let l=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(no(u),u.delay===0&&(l=!0)),(ze.instantAnimations||ze.skipAnimations)&&(l=!0,no(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,l&&!s&&t.get()!==void 0){const h=tp(u.keyframes,a);if(h!==void 0){Z.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Yr(u):new Ah(u)};function lp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ga(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;r&&(s=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const l=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||d&&lp(d,u))continue;const m={delay:n,...ro(s||{},u)},g=l.get();if(g!==void 0&&!l.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Ya(e);if(y){const S=window.MotionHandoffAnimation(y,u,Z);S!==null&&(m.startTime=S,v=!0)}}ko(e,u),l.start(Eo(u,l,h,e.shouldReduceMotion&&Xs.has(u)?{type:!1}:m,e,v));const b=l.animation;b&&c.push(b)}return i&&Promise.all(c).then(()=>{Z.update(()=>{i&&Jf(e,i)})}),c}function Xa(e,t,n,r=0,o=1){const s=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}function Po(e,t,n={}){const r=Bt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Ga(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:l}=o;return cp(e,t,c,d,u,l,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[c,d]=a==="beforeChildren"?[s,i]:[i,s];return c().then(()=>d())}else return Promise.all([s(),i(n.delay)])}function cp(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(Po(c,t,{...i,delay:n+(typeof r=="function"?0:r)+Xa(e.variantChildren,c,r,o,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function dp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>Po(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Po(e,t,n);else{const o=typeof t=="function"?Bt(e,t,n.custom):t;r=Promise.all(Ga(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qa(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 up=ho.length;function Za(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Za(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<up;n++){const r=ho[n],o=e.props[r];(Zt(o)||o===!1)&&(t[r]=o)}return t}const hp=[...uo].reverse(),fp=uo.length;function pp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>dp(e,n,r)))}function mp(e){let t=pp(e),n=Ja(),r=!0;const o=c=>(d,u)=>{const l=Bt(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(l){const{transition:h,transitionEnd:m,...g}=l;d={...d,...g,...m}}return d};function s(c){t=c(e)}function i(c){const{props:d}=e,u=Za(e.parent)||{},l=[],h=new Set;let m={},g=1/0;for(let b=0;b<fp;b++){const y=hp[b],S=n[y],w=d[y]!==void 0?d[y]:u[y],A=Zt(w),E=y===c?S.isActive:null;E===!1&&(g=b);let k=w===u[y]&&w!==d[y]&&A;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),S.protectedKeys={...m},!S.isActive&&E===null||!w&&!S.prevProp||zn(w)||typeof w=="boolean")continue;const P=gp(S.prevProp,w);let D=P||y===c&&S.isActive&&!k&&A||b>g&&A,L=!1;const _=Array.isArray(w)?w:[w];let $=_.reduce(o(y),{});E===!1&&($={});const{prevResolvedValues:Y={}}=S,K={...Y,...$},Ee=N=>{D=!0,h.has(N)&&(L=!0,h.delete(N)),S.needsAnimating[N]=!0;const R=e.getValue(N);R&&(R.liveStyle=!1)};for(const N in K){const R=$[N],V=Y[N];if(m.hasOwnProperty(N))continue;let z=!1;To(R)&&To(V)?z=!qa(R,V):z=R!==V,z?R!=null?Ee(N):h.add(N):R!==void 0&&h.has(N)?Ee(N):S.protectedKeys[N]=!0}S.prevProp=w,S.prevResolvedValues=$,S.isActive&&(m={...m,...$}),r&&e.blockInitialAnimation&&(D=!1);const re=k&&P;D&&(!re||L)&&l.push(..._.map(N=>{const R={type:y};if(typeof N=="string"&&r&&!re&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,z=Bt(V,N);if(V.enteringChildren&&z){const{delayChildren:oe}=z.transition||{};R.delay=Xa(V.enteringChildren,e,oe)}}return{animation:N,options:R}}))}if(h.size){const b={};if(typeof d.initial!="boolean"){const y=Bt(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(b.transition=y.transition)}h.forEach(y=>{const S=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),b[y]=S??null}),l.push({animation:b})}let v=!!l.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(l):Promise.resolve()}function a(c,d){if(n[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(l=>l.animationState?.setActive(c,d)),n[c].isActive=d;const u=i(c);for(const l in n)n[l].protectedKeys={};return u}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Ja(),r=!0}}}function gp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qa(t,e):!1}function dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ja(){return{animate:dt(!0),whileInView:dt(),whileHover:dt(),whileTap:dt(),whileDrag:dt(),whileFocus:dt(),exit:dt()}}class Xe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class yp extends Xe{constructor(t){super(t),t.animationState||(t.animationState=mp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zn(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 vp=0;class bp extends Xe{constructor(){super(...arguments),this.id=vp++}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;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const wp={animation:{Feature:yp},exit:{Feature:bp}};function Qt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function en(e){return{point:{x:e.pageX,y:e.pageY}}}const xp=e=>t=>ao(t)&&e(t,en(t));function tn(e,t,n,r){return Qt(e,t,xp(n),r)}const Qa=1e-4,Sp=1-Qa,Cp=1+Qa,el=.01,Tp=0-el,kp=0+el;function fe(e){return e.max-e.min}function Ep(e,t,n){return Math.abs(e-t)<=n}function tl(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=fe(n)/fe(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Sp&&e.scale<=Cp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Tp&&e.translate<=kp||isNaN(e.translate))&&(e.translate=0)}function nn(e,t,n,r){tl(e.x,t.x,n.x,r?r.originX:void 0),tl(e.y,t.y,n.y,r?r.originY:void 0)}function nl(e,t,n){e.min=n.min+t.min,e.max=e.min+fe(t)}function Pp(e,t,n){nl(e.x,t.x,n.x),nl(e.y,t.y,n.y)}function rl(e,t,n){e.min=t.min-n.min,e.max=e.min+fe(t)}function rn(e,t,n){rl(e.x,t.x,n.x),rl(e.y,t.y,n.y)}function Te(e){return[e("x"),e("y")]}const ol=({current:e})=>e?e.ownerDocument.defaultView:null,il=(e,t)=>Math.abs(e-t);function Ap(e,t){const n=il(e.x,t.x),r=il(e.y,t.y);return Math.sqrt(n**2+r**2)}class sl{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Do(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Ap(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:v}=h,{timestamp:b}=ce;this.history.push({...v,timestamp:b});const{onStart:y,onMove:S}=this.handlers;m||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Ao(m,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Do(h.type==="pointercancel"?this.lastMoveEventInfo:Ao(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),v&&v(h,y)},!ao(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const a=en(t),c=Ao(a,this.transformPagePoint),{point:d}=c,{timestamp:u}=ce;this.history=[{...d,timestamp:u}];const{onSessionStart:l}=n;l&&l(t,Do(c,this.history)),this.removeListeners=_t(tn(this.contextWindow,"pointermove",this.handlePointerMove),tn(this.contextWindow,"pointerup",this.handlePointerUp),tn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ke(this.updatePoint)}}function Ao(e,t){return t?{point:t(e.point)}:e}function al(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Do({point:e},t){return{point:e,delta:al(e,ll(t)),offset:al(e,Dp(t)),velocity:$p(t,.1)}}function Dp(e){return e[0]}function ll(e){return e[e.length-1]}function $p(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=ll(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};const s=Ce(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Mp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?J(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function cl(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 Vp(e,{top:t,left:n,bottom:r,right:o}){return{x:cl(e.x,n,o),y:cl(e.y,t,r)}}function dl(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 Ip(e,t){return{x:dl(e.x,t.x),y:dl(e.y,t.y)}}function Lp(e,t){let n=.5;const r=fe(e),o=fe(t);return o>r?n=Ht(t.min,t.max-r,e.min):r>o&&(n=Ht(e.min,e.max-o,t.min)),Fe(0,1,n)}function Np(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 $o=.35;function Bp(e=$o){return e===!1?e=0:e===!0&&(e=$o),{x:ul(e,"left","right"),y:ul(e,"top","bottom")}}function ul(e,t,n){return{min:hl(e,t),max:hl(e,n)}}function hl(e,t){return typeof e=="number"?e:e[t]||0}const Op=new WeakMap;class Fp{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=ee(),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 s=l=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(en(l).point)},i=(l,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Uh(m),!this.openDragLock))return;this.latestPointerEvent=l,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),Te(y=>{let S=this.getAxisMotionValue(y).get()||0;if(Ne.test(S)){const{projection:w}=this.visualElement;if(w&&w.layout){const A=w.layout.layoutBox[y];A&&(S=fe(A)*(parseFloat(S)/100))}}this.originPoint[y]=S}),v&&Z.postRender(()=>v(l,h)),ko(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(l,h)=>{this.latestPointerEvent=l,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=h;if(g&&this.currentDirection===null){this.currentDirection=jp(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),b&&b(l,h)},c=(l,h)=>{this.latestPointerEvent=l,this.latestPanInfo=h,this.stop(l,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Te(l=>this.getAnimationState(l)==="paused"&&this.getAxisMotionValue(l).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new sl(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:ol(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);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.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Un(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=Mp(i,this.constraints[t],this.elastic[t])),s.set(i)}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&&Vt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Vp(r.layoutBox,t):this.constraints=!1,this.elastic=Bp(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Te(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Np(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vt(t))return!1;const r=t.current;je(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=zf(r,o.root,this.visualElement.getTransformPagePoint());let i=Ip(o.layout.layoutBox,s);if(n){const a=n(Of(i));this.hasMutatedConstraints=!!a,a&&(i=Ma(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},d=Te(u=>{if(!Un(u,n,this.currentDirection))return;let l=c&&c[u]||{};i&&(l={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ko(this.visualElement,t),r.start(Eo(t,r,0,n,this.visualElement,!1))}stopAnimation(){Te(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Te(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Te(n=>{const{drag:r}=this.getProps();if(!Un(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n];s.set(t[n]-J(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Te(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const c=a.get();o[i]=Lp({min:c,max:c},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Te(i=>{if(!Un(i,t,null))return;const a=this.getAxisMotionValue(i),{min:c,max:d}=this.constraints[i];a.set(J(c,d,o[i]))})}addListeners(){if(!this.visualElement.current)return;Op.set(this.visualElement,this);const t=this.visualElement.current,n=tn(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Vt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Z.read(r);const i=Qt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Te(u=>{const l=this.getAxisMotionValue(u);l&&(this.originPoint[u]+=c[u].translate,l.set(l.get()+c[u].translate))}),this.visualElement.render())}));return()=>{i(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=$o,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function Un(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zp extends Xe{constructor(t){super(t),this.removeGroupControls=Se,this.removeListeners=Se,this.controls=new Fp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Se}unmount(){this.removeGroupControls(),this.removeListeners()}}const fl=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class Rp extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Se}onPointerDown(t){this.session=new sl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ol(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:fl(t),onStart:fl(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&Z.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=tn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const on={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(M.test(e))e=parseFloat(e);else return e;const n=pl(e,t.target.x),r=pl(e,t.target.y);return`${n}% ${r}%`}},_p={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ge.parse(e);if(o.length>5)return r;const s=Ge.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=c;const d=J(a,c,.5);return typeof o[2+i]=="number"&&(o[2+i]/=d),typeof o[3+i]=="number"&&(o[3+i]/=d),s(o)}};let Mo=!1;class Hp extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;hf(Up),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Mo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Wn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,Mo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||Z.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),so.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Mo=!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 ml(e){const[t,n]=fa(),r=f.useContext(br);return p.jsx(Hp,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Da),isPresent:t,safeToRemove:n})}const Up={borderRadius:{...on,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:on,borderTopRightRadius:on,borderBottomLeftRadius:on,borderBottomRightRadius:on,boxShadow:_p};function Wp(e,t,n){const r=ue(e)?e:$t(e);return r.start(Eo("",r,t,n)),r.animation}const Kp=(e,t)=>e.depth-t.depth;class Yp{constructor(){this.children=[],this.isDirty=!1}add(t){Sr(this.children,t),this.isDirty=!0}remove(t){Cr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Kp),this.isDirty=!1,this.children.forEach(t)}}function Gp(e,t){const n=ge.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Ke(r),e(s-t))};return Z.setup(r,!0),()=>Ke(r)}const gl=["TopLeft","TopRight","BottomLeft","BottomRight"],Xp=gl.length,yl=e=>typeof e=="string"?parseFloat(e):e,vl=e=>typeof e=="number"||M.test(e);function qp(e,t,n,r,o,s){o?(e.opacity=J(0,n.opacity??1,Zp(r)),e.opacityExit=J(t.opacity??1,0,Jp(r))):s&&(e.opacity=J(t.opacity??1,n.opacity??1,r));for(let i=0;i<Xp;i++){const a=`border${gl[i]}Radius`;let c=bl(t,a),d=bl(n,a);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||vl(c)===vl(d)?(e[a]=Math.max(J(yl(c),yl(d),r),0),(Ne.test(d)||Ne.test(c))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function bl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Zp=wl(0,.5,hs),Jp=wl(.5,.95,Se);function wl(e,t,n){return r=>r<e?0:r>t?1:n(Ht(e,t,r))}function xl(e,t){e.min=t.min,e.max=t.max}function ke(e,t){xl(e.x,t.x),xl(e.y,t.y)}function Sl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Cl(e,t,n,r,o){return e-=t,e=Hn(e,1/n,r),o!==void 0&&(e=Hn(e,1/o,r)),e}function Qp(e,t=0,n=1,r=.5,o,s=e,i=e){if(Ne.test(t)&&(t=parseFloat(t),t=J(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=J(s.min,s.max,r);e===s&&(a-=t),e.min=Cl(e.min,t,n,a,o),e.max=Cl(e.max,t,n,a,o)}function Tl(e,t,[n,r,o],s,i){Qp(e,t[n],t[r],t[o],t.scale,s,i)}const em=["x","scaleX","originX"],tm=["y","scaleY","originY"];function kl(e,t,n,r){Tl(e.x,t,em,n?n.x:void 0,r?r.x:void 0),Tl(e.y,t,tm,n?n.y:void 0,r?r.y:void 0)}function El(e){return e.translate===0&&e.scale===1}function Pl(e){return El(e.x)&&El(e.y)}function Al(e,t){return e.min===t.min&&e.max===t.max}function nm(e,t){return Al(e.x,t.x)&&Al(e.y,t.y)}function Dl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $l(e,t){return Dl(e.x,t.x)&&Dl(e.y,t.y)}function Ml(e){return fe(e.x)/fe(e.y)}function Vl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rm{constructor(){this.members=[]}add(t){Sr(this.members,t),t.scheduleRender()}remove(t){if(Cr(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){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function om(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:l,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),l&&(r+=`rotateX(${l}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Vo=["","X","Y","Z"],im=1e3;let sm=0;function Io(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Il(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ya(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Il(r)}function Ll({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=sm++,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.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(cm),this.nodes.forEach(fm),this.nodes.forEach(pm),this.nodes.forEach(dm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yp)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Er),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const c=this.eventHandlers.get(i);c&&c.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=ua(i)&&!qh(i),this.instance=i;const{layoutId:a,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let u,l=0;const h=()=>this.root.updateBlockedByResize=!1;Z.read(()=>{l=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==l&&(l=m,this.root.updateBlockedByResize=!0,u&&u(),u=Gp(h,250),Wn.hasAnimatedSinceResize&&(Wn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ol)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||bm,{onLayoutAnimationStart:v,onLayoutAnimationComplete:b}=d.getProps(),y=!this.targetLayout||!$l(this.targetLayout,m),S=!l&&h;if(this.options.layoutRoot||this.resumeFrom||S||l&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...ro(g,"layout"),onPlay:v,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,S)}else l||Ol(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ke(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(mm),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Il(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const l=this.path[u];l.shouldResetTransform=!0,l.updateScroll("snapshot"),l.options.layoutRoot&&l.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hm),this.nodes.forEach(am),this.nodes.forEach(lm)):this.nodes.forEach(Bl),this.clearAllSnapshots();const a=ge.now();ce.delta=Fe(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,$r.update.process(ce),$r.preRender.process(ce),$r.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,so.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(um),this.sharedNodes.forEach(gm)}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&&!fe(this.snapshot.measuredBox.x)&&!fe(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ee(),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,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Pl(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;i&&this.instance&&(a||ct(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return i&&(c=this.removeTransform(c)),wm(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return ee();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(xm))){const{scroll:d}=this.root;d&&(It(a.x,d.offset.x),It(a.y,d.offset.y))}return a}removeElementScroll(i){const a=ee();if(ke(a,i),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:l}=d;d!==this.root&&u&&l.layoutScroll&&(u.wasRoot&&ke(a,i),It(a.x,u.offset.x),It(a.y,u.offset.y))}return a}applyTransform(i,a=!1){const c=ee();ke(c,i);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Lt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ct(u.latestValues)&&Lt(c,u.latestValues)}return ct(this.latestValues)&&Lt(c,this.latestValues),c}removeTransform(i){const a=ee();ke(a,i);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!ct(d.latestValues))continue;xo(d.latestValues)&&d.updateSnapshot();const u=ee(),l=d.measurePageBox();ke(u,l),kl(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ct(this.latestValues)&&kl(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:l}=this.options;if(!(!this.layout||!(u||l))){if(this.resolvedRelativeTargetAt=ce.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),rn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ee(),this.targetWithTransforms=ee()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Pp(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ke(this.target,this.layout.layoutBox),Na(this.target,this.targetDelta)):ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),rn(this.relativeTargetOrigin,this.target,h.target),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||xo(this.parent.latestValues)||Va(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const i=this.getLead(),a=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(c=!1),c)return;const{layout:d,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||!(d||u))return;ke(this.layoutCorrected,this.layout.layoutBox);const l=this.treeScale.x,h=this.treeScale.y;jf(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=ee());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sl(this.prevProjectionDelta.x,this.projectionDelta.x),Sl(this.prevProjectionDelta.y,this.projectionDelta.y)),nn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==l||this.treeScale.y!==h||!Vl(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Nt(),this.projectionDelta=Nt(),this.projectionDeltaWithTransform=Nt()}setAnimationOrigin(i,a=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},l=Nt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ee(),m=c?c.source:void 0,g=this.layout?this.layout.source:void 0,v=m!==g,b=this.getStack(),y=!b||b.members.length<=1,S=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(vm));this.animationProgress=0;let w;this.mixTargetDelta=A=>{const E=A/1e3;Fl(l.x,i.x,E),Fl(l.y,i.y,E),this.setTargetDelta(l),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ym(this.relativeTarget,this.relativeTargetOrigin,h,E),w&&nm(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ee()),ke(w,this.relativeTarget)),v&&(this.animationValues=u,qp(u,d,this.latestValues,E,S,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ke(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Wn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=$t(0)),this.currentAnimation=Wp(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(im),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:c,layout:d,latestValues:u}=i;if(!(!a||!c||!d)){if(this!==i&&this.layout&&d&&Hl(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||ee();const l=fe(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+l;const h=fe(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+h}ke(a,c),Lt(a,u),nn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new rm),this.sharedNodes.get(i).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const d={};c.z&&Io("z",i,d,this.animationValues);for(let u=0;u<Vo.length;u++)Io(`rotate${Vo[u]}`,i,d,this.animationValues),Io(`skew${Vo[u]}`,i,d,this.animationValues);i.render();for(const u in d)i.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=_n(a?.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=_n(a?.pointerEvents)||""),this.hasProjected&&!ct(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let l=om(this.projectionDeltaWithTransform,this.treeScale,u);c&&(l=c(u,l)),i.transform=l;const{x:h,y:m}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?i.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:i.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in Jt){if(u[g]===void 0)continue;const{correct:v,applyTo:b,isCSSVariable:y}=Jt[g],S=l==="none"?u[g]:v(u[g],d);if(b){const w=b.length;for(let A=0;A<w;A++)i[b[A]]=S}else y?this.options.visualElement.renderState.vars[g]=S:i[g]=S}this.options.layoutId&&(i.pointerEvents=d===this?_n(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Nl),this.root.sharedNodes.clear()}}}function am(e){e.updateLayout()}function lm(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,s=t.source!==e.layout.source;o==="size"?Te(u=>{const l=s?t.measuredBox[u]:t.layoutBox[u],h=fe(l);l.min=n[u].min,l.max=l.min+h}):Hl(o,t.layoutBox,n)&&Te(u=>{const l=s?t.measuredBox[u]:t.layoutBox[u],h=fe(n[u]);l.max=l.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const i=Nt();nn(i,n,t.layoutBox);const a=Nt();s?nn(a,e.applyTransform(r,!0),t.measuredBox):nn(a,n,t.layoutBox);const c=!Pl(i);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:l,layout:h}=u;if(l&&h){const m=ee();rn(m,t.layoutBox,l.layoutBox);const g=ee();rn(g,n,h.layoutBox),$l(m,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function cm(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 dm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function um(e){e.clearSnapshot()}function Nl(e){e.clearMeasurements()}function Bl(e){e.isLayoutDirty=!1}function hm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ol(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fm(e){e.resolveTargetDelta()}function pm(e){e.calcProjection()}function mm(e){e.resetSkewAndRotation()}function gm(e){e.removeLeadSnapshot()}function Fl(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function jl(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function ym(e,t,n,r){jl(e.x,t.x,n.x,r),jl(e.y,t.y,n.y,r)}function vm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const bm={duration:.45,ease:[.4,0,.1,1]},zl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rl=zl("applewebkit/")&&!zl("chrome/")?Math.round:Se;function _l(e){e.min=Rl(e.min),e.max=Rl(e.max)}function wm(e){_l(e.x),_l(e.y)}function Hl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ep(Ml(t),Ml(n),.2)}function xm(e){return e!==e.root&&e.scroll?.wasRoot}const Sm=Ll({attachResizeListener:(e,t)=>Qt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lo={current:void 0},Ul=Ll({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lo.current){const e=new Sm({});e.mount(window),e.setOptions({layoutScroll:!0}),Lo.current=e}return Lo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Cm={pan:{Feature:Rp},drag:{Feature:zp,ProjectionNode:Ul,MeasureLayout:ml}};function Wl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&Z.postRender(()=>s(t,en(t)))}class Tm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Wh(t,(n,r)=>(Wl(this.node,r,"Start"),o=>Wl(this.node,o,"End"))))}unmount(){}}class km extends Xe{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=_t(Qt(this.node.current,"focus",()=>this.onFocus()),Qt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Kl(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),s=r[o];s&&Z.postRender(()=>s(t,en(t)))}class Em extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Xh(t,(n,r)=>(Kl(this.node,r,"Start"),(o,{success:s})=>Kl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const No=new WeakMap,Bo=new WeakMap,Pm=e=>{const t=No.get(e.target);t&&t(e)},Am=e=>{e.forEach(Pm)};function Dm({root:e,...t}){const n=e||document;Bo.has(n)||Bo.set(n,{});const r=Bo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Am,{root:e,...t})),r[o]}function $m(e,t,n){const r=Dm(t);return No.set(e,n),r.observe(e),()=>{No.delete(e),r.unobserve(e)}}const Mm={some:0,all:1};class Vm extends Xe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Mm[o]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:l}=this.node.getProps(),h=d?u:l;h&&h(c)};return $m(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Im(t,n))&&this.startObserver()}unmount(){}}function Im({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Lm={...wp,...{inView:{Feature:Vm},tap:{Feature:Em},focus:{Feature:km},hover:{Feature:Tm}},...Cm,...{layout:{ProjectionNode:Ul,MeasureLayout:ml}}},Re=Bf(Lm,Xf),Nm={sm:x`
234
+ `),()=>{x.contains(b)&&x.removeChild(b)}},[t]),p.jsx(rf,{isPresent:t,childRef:s,sizeRef:i,children:cn.cloneElement(e,{ref:l})})}const sf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,root:l})=>{const d=xr(af),u=f.useId();let c=!0,h=f.useMemo(()=>(c=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;r&&r()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,r]);return s&&c&&(h={...h}),f.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),cn.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),i==="popLayout"&&(e=p.jsx(of,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(Dn.Provider,{value:h,children:e})};function af(){return new Map}function ha(e=!0){const t=f.useContext(Dn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=f.useId();f.useEffect(()=>{if(e)return o(s)},[e]);const i=f.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const On=e=>e.key||"";function fa(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const Zt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",root:l})=>{const[d,u]=ha(i),c=f.useMemo(()=>fa(e),[e]),h=i&&!d?[]:c.map(On),m=f.useRef(!0),g=f.useRef(c),b=xr(()=>new Map),[x,y]=f.useState(c),[C,w]=f.useState(c);Qi(()=>{m.current=!1,g.current=c;for(let k=0;k<C.length;k++){const E=On(C[k]);h.includes(E)?b.delete(E):b.get(E)!==!0&&b.set(E,!1)}},[C,h.length,h.join("-")]);const A=[];if(c!==x){let k=[...c];for(let E=0;E<C.length;E++){const D=C[E],L=On(D);h.includes(L)||(k.splice(E,0,D),A.push(D))}return s==="wait"&&A.length&&(k=A),w(fa(k)),y(c),null}process.env.NODE_ENV!=="production"&&s==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:P}=f.useContext(wr);return p.jsx(p.Fragment,{children:C.map(k=>{const E=On(k),D=i&&!d?!1:c===C||h.includes(E),L=()=>{if(b.has(E))b.set(E,!0);else return;let _=!0;b.forEach($=>{$||(_=!1)}),_&&(P?.(),w(g.current),i&&u?.(),r&&r())};return p.jsx(sf,{isPresent:D,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:l,onExitComplete:D?void 0:L,anchorX:a,children:k},E)})})},pa=f.createContext({strict:!1}),ma={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"]},Mt={};for(const e in ma)Mt[e]={isEnabled:t=>ma[e].some(n=>!!t[n])};function lf(e){for(const t in e)Mt[t]={...Mt[t],...e[t]}}const cf=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cf.has(e)}let ga=e=>!Fn(e);function df(e){typeof e=="function"&&(ga=t=>t.startsWith("on")?!Fn(t):e(t))}try{df(require("@emotion/is-prop-valid").default)}catch{}function uf(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ga(o)||n===!0&&Fn(o)||!t&&!Fn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jn=f.createContext({});function zn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qt(e){return typeof e=="string"||Array.isArray(e)}const ho=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fo=["initial",...ho];function Rn(e){return zn(e.animate)||fo.some(t=>qt(e[t]))}function ya(e){return!!(Rn(e)||e.variants)}function hf(e,t){if(Rn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qt(n)?n:void 0,animate:qt(r)?r:void 0}}return e.inherit!==!1?t:{}}function ff(e){const{initial:t,animate:n}=hf(e,f.useContext(jn));return f.useMemo(()=>({initial:t,animate:n}),[va(t),va(n)])}function va(e){return Array.isArray(e)?e.join(" "):e}const Jt={};function pf(e){for(const t in e)Jt[t]=e[t],Vr(t)&&(Jt[t].isCSSVariable=!0)}function ba(e,{layout:t,layoutId:n}){return Dt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jt[e]||e==="opacity")}const mf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gf=At.length;function yf(e,t,n){let r="",o=!0;for(let s=0;s<gf;s++){const i=At[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(i.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=ta(a,so[i]);if(!l){o=!1;const u=mf[i]||i;r+=`${u}(${d}) `}n&&(t[i]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function po(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const d=t[l];if(Dt.has(l)){i=!0;continue}else if(Vr(l)){o[l]=d;continue}else{const u=ta(d,so[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(t.transform||(i||n?r.transform=yf(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${d} ${u}`}}const mo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wa(e,t,n){for(const r in t)!ue(t[r])&&!ba(r,n)&&(e[r]=t[r])}function vf({transformTemplate:e},t){return f.useMemo(()=>{const n=mo();return po(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bf(e,t){const n=e.style||{},r={};return wa(r,n,e),Object.assign(r,vf(e,t)),r}function wf(e,t){const n={},r=bf(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 xf={offset:"stroke-dashoffset",array:"stroke-dasharray"},Sf={offset:"strokeDashoffset",array:"strokeDasharray"};function Cf(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?xf:Sf;e[s.offset]=V.transform(-r);const i=V.transform(t),a=V.transform(n);e[s.array]=`${i} ${a}`}function xa(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},l,d,u){if(po(e,a,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:c,style:h}=e;c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete c.transformBox),t!==void 0&&(c.x=t),n!==void 0&&(c.y=n),r!==void 0&&(c.scale=r),o!==void 0&&Cf(c,o,s,i,!1)}const Sa=()=>({...mo(),attrs:{}}),Ca=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Tf(e,t,n,r){const o=f.useMemo(()=>{const s=Sa();return xa(s,t,Ca(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};wa(s,e.style,e),o.style={...s,...o.style}}return o}const kf=["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 go(e){return typeof e!="string"||e.includes("-")?!1:!!(kf.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ef(e,t,n,{latestValues:r},o,s=!1){const a=(go(e)?Tf:wf)(t,r,o,e),l=uf(t,typeof e=="string",s),d=e!==f.Fragment?{...l,...a,ref:n}:{},{children:u}=t,c=f.useMemo(()=>ue(u)?u.get():u,[u]);return f.createElement(e,{...d,children:c})}function Ta(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yo(e,t,n,r){if(typeof t=="function"){const[o,s]=Ta(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Ta(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function _n(e){return ue(e)?e.get():e}function Pf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Af(n,r,o,e),renderState:t()}}function Af(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=_n(s[h]);let{initial:i,animate:a}=e;const l=Rn(e),d=ya(e);t&&d&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||i===!1;const c=u?a:i;if(c&&typeof c!="boolean"&&!zn(c)){const h=Array.isArray(c)?c:[c];for(let m=0;m<h.length;m++){const g=yo(e,h[m]);if(g){const{transitionEnd:b,transition:x,...y}=g;for(const C in y){let w=y[C];if(Array.isArray(w)){const A=u?w.length-1:0;w=w[A]}w!==null&&(o[C]=w)}for(const C in b)o[C]=b[C]}}}return o}const ka=e=>(t,n)=>{const r=f.useContext(jn),o=f.useContext(Dn),s=()=>Pf(e,t,r,o);return n?s():xr(s)};function vo(e,t,n){const{style:r}=e,o={};for(const s in r)(ue(r[s])||t.style&&ue(t.style[s])||ba(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const Df=ka({scrapeMotionValuesFromProps:vo,createRenderState:mo});function Ea(e,t,n){const r=vo(e,t,n);for(const o in e)if(ue(e[o])||ue(t[o])){const s=At.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const $f=ka({scrapeMotionValuesFromProps:Ea,createRenderState:Sa}),Mf=Symbol.for("motionComponentSymbol");function Vt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vf(e,t,n){return f.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vt(n)&&(n.current=r))},[t])}const bo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pa="data-"+bo("framerAppearId"),Aa=f.createContext({});function If(e,t,n,r,o){const{visualElement:s}=f.useContext(jn),i=f.useContext(pa),a=f.useContext(Dn),l=f.useContext(uo).reducedMotion,d=f.useRef(null);r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=d.current,c=f.useContext(Aa);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Lf(d.current,n,o,c);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const m=n[Pa],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Qi(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1),u.enteringChildren=void 0)}),u}function Lf(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Da(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&Vt(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:d})}function Da(e){if(e)return e.options.allowProjection!==!1?e.projection:Da(e.parent)}function wo(e,{forwardMotionProps:t=!1}={},n,r){n&&lf(n);const o=go(e)?$f:Df;function s(a,l){let d;const u={...f.useContext(uo),...a,layoutId:Nf(a)},{isStatic:c}=u,h=ff(a),m=o(a,c);if(!c&&Sr){Bf(u,n);const g=Of(u);d=g.MeasureLayout,h.visualElement=If(e,m,u,r,g.ProjectionNode)}return p.jsxs(jn.Provider,{value:h,children:[d&&h.visualElement?p.jsx(d,{visualElement:h.visualElement,...u}):null,Ef(e,a,Vf(m,h.visualElement,l),m,c,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=f.forwardRef(s);return i[Mf]=e,i}function Nf({layoutId:e}){const t=f.useContext(wr).id;return t&&e!==void 0?t+"-"+e:e}function Bf(e,t){const n=f.useContext(pa).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Tt(!1,r,"lazy-strict-mode"):je(!1,r,"lazy-strict-mode")}}function Of(e){const{drag:t,layout:n}=Mt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Ff(e,t){if(typeof Proxy>"u")return wo;const n=new Map,r=(s,i)=>wo(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Ar(!1,"motion() is deprecated. Use motion.create() instead."),r(s,i));return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,wo(i,void 0,e,t)),n.get(i))})}function $a({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function jf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zf(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 xo(e){return e===void 0||e===1}function So({scale:e,scaleX:t,scaleY:n}){return!xo(e)||!xo(t)||!xo(n)}function ct(e){return So(e)||Ma(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ma(e){return Va(e.x)||Va(e.y)}function Va(e){return e&&e!=="0%"}function Hn(e,t,n){const r=e-n,o=t*r;return n+o}function Ia(e,t,n,r,o){return o!==void 0&&(e=Hn(e,o,r)),Hn(e,n,r)+t}function Co(e,t=0,n=1,r,o){e.min=Ia(e.min,t,n,r,o),e.max=Ia(e.max,t,n,r,o)}function La(e,{x:t,y:n}){Co(e.x,t.translate,t.scale,t.originPoint),Co(e.y,n.translate,n.scale,n.originPoint)}const Na=.999999999999,Ba=1.0000000000001;function Rf(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Lt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,La(e,i)),r&&ct(s.latestValues)&&Lt(e,s.latestValues))}t.x<Ba&&t.x>Na&&(t.x=1),t.y<Ba&&t.y>Na&&(t.y=1)}function It(e,t){e.min=e.min+t,e.max=e.max+t}function Oa(e,t,n,r,o=.5){const s=Q(e.min,e.max,o);Co(e,t,n,s,r)}function Lt(e,t){Oa(e.x,t.x,t.scaleX,t.scale,t.originX),Oa(e.y,t.y,t.scaleY,t.scale,t.originY)}function Fa(e,t){return $a(zf(e.getBoundingClientRect(),t))}function _f(e,t,n){const r=Fa(e,n),{scroll:o}=t;return o&&(It(r.x,o.offset.x),It(r.y,o.offset.y)),r}const ja=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nt=()=>({x:ja(),y:ja()}),za=()=>({min:0,max:0}),te=()=>({x:za(),y:za()}),To={current:null},Ra={current:!1};function Hf(){if(Ra.current=!0,!!Sr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>To.current=e.matches;e.addEventListener("change",t),t()}else To.current=!1}const Uf=new WeakMap;function Wf(e,t,n){for(const r in t){const o=t[r],s=n[r];if(ue(o))e.addValue(r,o);else if(ue(s))e.addValue(r,$t(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,$t(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const _a=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Kf{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=no,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ye.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,J.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Rn(n),this.isVariantNode=ya(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in c){const m=c[h];l[h]!==void 0&&ue(m)&&m.set(l[h])}}mount(t){this.current=t,Uf.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)),Ra.current||Hf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:To.current,process.env.NODE_ENV!=="production"&&Ar(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ke(this.notifyUpdate),Ke(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){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Dt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mt){const n=Mt[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}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<_a.length;r++){const o=_a[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=Wf(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=$t(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"&&(es(r)||ns(r))?r=parseFloat(r):!ef(r)&&Ge.test(n)&&(r=ea(t,n)),this.setBaseTarget(t,ue(r)?r.get():r)),ue(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 s=yo(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ue(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 Pr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ao.render(this.render)}}class Ha extends Kf{constructor(){super(...arguments),this.KeyframeResolver=_h}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[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;ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ua(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o?.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function Yf(e){return window.getComputedStyle(e)}class Gf extends Ha{constructor(){super(...arguments),this.type="html",this.renderInstance=Ua}readValueFromInstance(t,n){if(Dt.has(n))return this.projection?.isProjecting?qr(n):ah(t,n);{const r=Yf(t),o=(Vr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fa(t,n)}build(t,n,r){po(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return vo(t,n,r)}}const Wa=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Xf(e,t,n,r){Ua(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Wa.has(o)?o:bo(o),t.attrs[o])}class Zf extends Ha{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dt.has(n)){const r=Qs(n);return r&&r.default||0}return n=Wa.has(n)?n:bo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ea(t,n,r)}build(t,n,r){xa(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){Xf(t,n,r,o)}mount(t){this.isSVGTag=Ca(t.tagName),super.mount(t)}}const qf=(e,t)=>go(e)?new Zf(t):new Gf(t,{allowProjection:e!==f.Fragment});function Bt(e,t,n){const r=e.getProps();return yo(r,t,n!==void 0?n:r.custom,e)}const ko=e=>Array.isArray(e);function Jf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$t(n))}function Qf(e){return ko(e)?e[e.length-1]||0:e}function ep(e,t){const n=Bt(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=Qf(s[i]);Jf(e,i,a)}}function tp(e){return!!(ue(e)&&e.add)}function Eo(e,t){const n=e.getValue("willChange");if(tp(n))return n.add(t);if(!n&&ze.WillChange){const r=new ze.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ka(e){return e.props[Pa]}const np=e=>e!==null;function rp(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(np),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const op={type:"spring",stiffness:500,damping:25,restSpeed:10},ip=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sp={type:"keyframes",duration:.8},ap={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lp=(e,{keyframes:t})=>t.length>2?sp:Dt.has(e)?e.startsWith("scale")?ip(t[1]):op:ap;function cp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:d,...u}){return!!Object.keys(u).length}const Po=(e,t,n,r={},o,s)=>i=>{const a=oo(r,e)||{},l=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-De(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};cp(a)||Object.assign(u,lp(e,u)),u.duration&&(u.duration=De(u.duration)),u.repeatDelay&&(u.repeatDelay=De(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let c=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ro(u),u.delay===0&&(c=!0)),(ze.instantAnimations||ze.skipAnimations)&&(c=!0,ro(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!s&&t.get()!==void 0){const h=rp(u.keyframes,a);if(h!==void 0){J.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Gr(u):new $h(u)};function dp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ya(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;r&&(s=r);const l=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const c=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||d&&dp(d,u))continue;const m={delay:n,...oo(s||{},u)},g=c.get();if(g!==void 0&&!c.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const y=Ka(e);if(y){const C=window.MotionHandoffAnimation(y,u,J);C!==null&&(m.startTime=C,b=!0)}}Eo(e,u),c.start(Po(u,c,h,e.shouldReduceMotion&&Gs.has(u)?{type:!1}:m,e,b));const x=c.animation;x&&l.push(x)}return i&&Promise.all(l).then(()=>{J.update(()=>{i&&ep(e,i)})}),l}function Ga(e,t,n,r=0,o=1){const s=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}function Ao(e,t,n={}){const r=Bt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Ya(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:c}=o;return up(e,t,l,d,u,c,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,d]=a==="beforeChildren"?[s,i]:[i,s];return l().then(()=>d())}else return Promise.all([s(),i(n.delay)])}function up(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ao(l,t,{...i,delay:n+(typeof r=="function"?0:r)+Ga(e.variantChildren,l,r,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function hp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>Ao(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Ao(e,t,n);else{const o=typeof t=="function"?Bt(e,t,n.custom):t;r=Promise.all(Ya(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Xa(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 fp=fo.length;function Za(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Za(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<fp;n++){const r=fo[n],o=e.props[r];(qt(o)||o===!1)&&(t[r]=o)}return t}const pp=[...ho].reverse(),mp=ho.length;function gp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hp(e,n,r)))}function yp(e){let t=gp(e),n=qa(),r=!0;const o=l=>(d,u)=>{const c=Bt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(c){const{transition:h,transitionEnd:m,...g}=c;d={...d,...g,...m}}return d};function s(l){t=l(e)}function i(l){const{props:d}=e,u=Za(e.parent)||{},c=[],h=new Set;let m={},g=1/0;for(let x=0;x<mp;x++){const y=pp[x],C=n[y],w=d[y]!==void 0?d[y]:u[y],A=qt(w),P=y===l?C.isActive:null;P===!1&&(g=x);let k=w===u[y]&&w!==d[y]&&A;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...m},!C.isActive&&P===null||!w&&!C.prevProp||zn(w)||typeof w=="boolean")continue;const E=vp(C.prevProp,w);let D=E||y===l&&C.isActive&&!k&&A||x>g&&A,L=!1;const _=Array.isArray(w)?w:[w];let $=_.reduce(o(y),{});P===!1&&($={});const{prevResolvedValues:U={}}=C,I={...U,...$},he=N=>{D=!0,h.has(N)&&(L=!0,h.delete(N)),C.needsAnimating[N]=!0;const H=e.getValue(N);H&&(H.liveStyle=!1)};for(const N in I){const H=$[N],O=U[N];if(m.hasOwnProperty(N))continue;let R=!1;ko(H)&&ko(O)?R=!Xa(H,O):R=H!==O,R?H!=null?he(N):h.add(N):H!==void 0&&h.has(N)?he(N):C.protectedKeys[N]=!0}C.prevProp=w,C.prevResolvedValues=$,C.isActive&&(m={...m,...$}),r&&e.blockInitialAnimation&&(D=!1);const G=k&&E;D&&(!G||L)&&c.push(..._.map(N=>{const H={type:y};if(typeof N=="string"&&r&&!G&&e.manuallyAnimateOnMount&&e.parent){const{parent:O}=e,R=Bt(O,N);if(O.enteringChildren&&R){const{delayChildren:oe}=R.transition||{};H.delay=Ga(O.enteringChildren,e,oe)}}return{animation:N,options:H}}))}if(h.size){const x={};if(typeof d.initial!="boolean"){const y=Bt(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(x.transition=y.transition)}h.forEach(y=>{const C=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),x[y]=C??null}),c.push({animation:x})}let b=!!c.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(c):Promise.resolve()}function a(l,d){if(n[l].isActive===d)return Promise.resolve();e.variantChildren?.forEach(c=>c.animationState?.setActive(l,d)),n[l].isActive=d;const u=i(l);for(const c in n)n[c].protectedKeys={};return u}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=qa(),r=!0}}}function vp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xa(t,e):!1}function dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qa(){return{animate:dt(!0),whileInView:dt(),whileHover:dt(),whileTap:dt(),whileDrag:dt(),whileFocus:dt(),exit:dt()}}class Xe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class bp extends Xe{constructor(t){super(t),t.animationState||(t.animationState=yp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zn(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 wp=0;class xp extends Xe{constructor(){super(...arguments),this.id=wp++}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;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Sp={animation:{Feature:bp},exit:{Feature:xp}};function Qt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function en(e){return{point:{x:e.pageX,y:e.pageY}}}const Cp=e=>t=>lo(t)&&e(t,en(t));function tn(e,t,n,r){return Qt(e,t,Cp(n),r)}const Ja=1e-4,Tp=1-Ja,kp=1+Ja,Qa=.01,Ep=0-Qa,Pp=0+Qa;function pe(e){return e.max-e.min}function Ap(e,t,n){return Math.abs(e-t)<=n}function el(e,t,n,r=.5){e.origin=r,e.originPoint=Q(t.min,t.max,e.origin),e.scale=pe(n)/pe(t),e.translate=Q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Tp&&e.scale<=kp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ep&&e.translate<=Pp||isNaN(e.translate))&&(e.translate=0)}function nn(e,t,n,r){el(e.x,t.x,n.x,r?r.originX:void 0),el(e.y,t.y,n.y,r?r.originY:void 0)}function tl(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function Dp(e,t,n){tl(e.x,t.x,n.x),tl(e.y,t.y,n.y)}function nl(e,t,n){e.min=t.min-n.min,e.max=e.min+pe(t)}function rn(e,t,n){nl(e.x,t.x,n.x),nl(e.y,t.y,n.y)}function ke(e){return[e("x"),e("y")]}const rl=({current:e})=>e?e.ownerDocument.defaultView:null,ol=(e,t)=>Math.abs(e-t);function $p(e,t){const n=ol(e.x,t.x),r=ol(e.y,t.y);return Math.sqrt(n**2+r**2)}class il{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=$o(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=$p(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:b}=h,{timestamp:x}=ce;this.history.push({...b,timestamp:x});const{onStart:y,onMove:C}=this.handlers;m||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Do(m,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=$o(h.type==="pointercancel"?this.lastMoveEventInfo:Do(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),b&&b(h,y)},!lo(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const a=en(t),l=Do(a,this.transformPagePoint),{point:d}=l,{timestamp:u}=ce;this.history=[{...d,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,$o(l,this.history)),this.removeListeners=_t(tn(this.contextWindow,"pointermove",this.handlePointerMove),tn(this.contextWindow,"pointerup",this.handlePointerUp),tn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ke(this.updatePoint)}}function Do(e,t){return t?{point:t(e.point)}:e}function sl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $o({point:e},t){return{point:e,delta:sl(e,al(t)),offset:sl(e,Mp(t)),velocity:Vp(t,.1)}}function Mp(e){return e[0]}function al(e){return e[e.length-1]}function Vp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=al(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};const s=Te(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Ip(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Q(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Q(n,e,r.max):Math.min(e,n)),e}function ll(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 Lp(e,{top:t,left:n,bottom:r,right:o}){return{x:ll(e.x,n,o),y:ll(e.y,t,r)}}function cl(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 Np(e,t){return{x:cl(e.x,t.x),y:cl(e.y,t.y)}}function Bp(e,t){let n=.5;const r=pe(e),o=pe(t);return o>r?n=Ht(t.min,t.max-r,e.min):r>o&&(n=Ht(e.min,e.max-o,t.min)),Fe(0,1,n)}function Op(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 Mo=.35;function Fp(e=Mo){return e===!1?e=0:e===!0&&(e=Mo),{x:dl(e,"left","right"),y:dl(e,"top","bottom")}}function dl(e,t,n){return{min:ul(e,t),max:ul(e,n)}}function ul(e,t){return typeof e=="number"?e:e[t]||0}const jp=new WeakMap;class zp{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=te(),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 s=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(en(c).point)},i=(c,h)=>{const{drag:m,dragPropagation:g,onDragStart:b}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Kh(m),!this.openDragLock))return;this.latestPointerEvent=c,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),ke(y=>{let C=this.getAxisMotionValue(y).get()||0;if(Ne.test(C)){const{projection:w}=this.visualElement;if(w&&w.layout){const A=w.layout.layoutBox[y];A&&(C=pe(A)*(parseFloat(C)/100))}}this.originPoint[y]=C}),b&&J.postRender(()=>b(c,h)),Eo(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:b,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=h;if(g&&this.currentDirection===null){this.currentDirection=Rp(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),x&&x(c,h)},l=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h,this.stop(c,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>ke(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new il(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:rl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&J.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Un(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=Ip(i,this.constraints[t],this.elastic[t])),s.set(i)}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&&Vt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Lp(r.layoutBox,t):this.constraints=!1,this.elastic=Fp(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ke(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Op(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vt(t))return!1;const r=t.current;je(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=_f(r,o.root,this.visualElement.getTransformPagePoint());let i=Np(o.layout.layoutBox,s);if(n){const a=n(jf(i));this.hasMutatedConstraints=!!a,a&&(i=$a(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=ke(u=>{if(!Un(u,n,this.currentDirection))return;let c=l&&l[u]||{};i&&(c={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...c};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Eo(this.visualElement,t),r.start(Po(t,r,0,n,this.visualElement,!1))}stopAnimation(){ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ke(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ke(n=>{const{drag:r}=this.getProps();if(!Un(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n];s.set(t[n]-Q(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ke(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const l=a.get();o[i]=Bp({min:l,max:l},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ke(i=>{if(!Un(i,t,null))return;const a=this.getAxisMotionValue(i),{min:l,max:d}=this.constraints[i];a.set(Q(l,d,o[i]))})}addListeners(){if(!this.visualElement.current)return;jp.set(this.visualElement,this);const t=this.visualElement.current,n=tn(t,"pointerdown",l=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),J.read(r);const i=Qt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(ke(u=>{const c=this.getAxisMotionValue(u);c&&(this.originPoint[u]+=l[u].translate,c.set(c.get()+l[u].translate))}),this.visualElement.render())}));return()=>{i(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=Mo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function Un(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Rp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _p extends Xe{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new zp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const hl=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class Hp extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new il(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:hl(t),onStart:hl(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&J.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=tn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const on={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=fl(e,t.target.x),r=fl(e,t.target.y);return`${n}% ${r}%`}},Up={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ge.parse(e);if(o.length>5)return r;const s=Ge.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const d=Q(a,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=d),typeof o[3+i]=="number"&&(o[3+i]/=d),s(o)}};let Vo=!1;class Wp extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;pf(Kp),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Vo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Wn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,Vo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||J.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ao.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Vo=!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 pl(e){const[t,n]=ha(),r=f.useContext(wr);return p.jsx(Wp,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Aa),isPresent:t,safeToRemove:n})}const Kp={borderRadius:{...on,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:on,borderTopRightRadius:on,borderBottomLeftRadius:on,borderBottomRightRadius:on,boxShadow:Up};function Yp(e,t,n){const r=ue(e)?e:$t(e);return r.start(Po("",r,t,n)),r.animation}const Gp=(e,t)=>e.depth-t.depth;class Xp{constructor(){this.children=[],this.isDirty=!1}add(t){Cr(this.children,t),this.isDirty=!0}remove(t){Tr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Gp),this.isDirty=!1,this.children.forEach(t)}}function Zp(e,t){const n=ye.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Ke(r),e(s-t))};return J.setup(r,!0),()=>Ke(r)}const ml=["TopLeft","TopRight","BottomLeft","BottomRight"],qp=ml.length,gl=e=>typeof e=="string"?parseFloat(e):e,yl=e=>typeof e=="number"||V.test(e);function Jp(e,t,n,r,o,s){o?(e.opacity=Q(0,n.opacity??1,Qp(r)),e.opacityExit=Q(t.opacity??1,0,em(r))):s&&(e.opacity=Q(t.opacity??1,n.opacity??1,r));for(let i=0;i<qp;i++){const a=`border${ml[i]}Radius`;let l=vl(t,a),d=vl(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||yl(l)===yl(d)?(e[a]=Math.max(Q(gl(l),gl(d),r),0),(Ne.test(d)||Ne.test(l))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=Q(t.rotate||0,n.rotate||0,r))}function vl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Qp=bl(0,.5,us),em=bl(.5,.95,Ce);function bl(e,t,n){return r=>r<e?0:r>t?1:n(Ht(e,t,r))}function wl(e,t){e.min=t.min,e.max=t.max}function Ee(e,t){wl(e.x,t.x),wl(e.y,t.y)}function xl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Sl(e,t,n,r,o){return e-=t,e=Hn(e,1/n,r),o!==void 0&&(e=Hn(e,1/o,r)),e}function tm(e,t=0,n=1,r=.5,o,s=e,i=e){if(Ne.test(t)&&(t=parseFloat(t),t=Q(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=Q(s.min,s.max,r);e===s&&(a-=t),e.min=Sl(e.min,t,n,a,o),e.max=Sl(e.max,t,n,a,o)}function Cl(e,t,[n,r,o],s,i){tm(e,t[n],t[r],t[o],t.scale,s,i)}const nm=["x","scaleX","originX"],rm=["y","scaleY","originY"];function Tl(e,t,n,r){Cl(e.x,t,nm,n?n.x:void 0,r?r.x:void 0),Cl(e.y,t,rm,n?n.y:void 0,r?r.y:void 0)}function kl(e){return e.translate===0&&e.scale===1}function El(e){return kl(e.x)&&kl(e.y)}function Pl(e,t){return e.min===t.min&&e.max===t.max}function om(e,t){return Pl(e.x,t.x)&&Pl(e.y,t.y)}function Al(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Dl(e,t){return Al(e.x,t.x)&&Al(e.y,t.y)}function $l(e){return pe(e.x)/pe(e.y)}function Ml(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class im{constructor(){this.members=[]}add(t){Cr(this.members,t),t.scheduleRender()}remove(t){if(Tr(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){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sm(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:c,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}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 Io=["","X","Y","Z"],am=1e3;let lm=0;function Lo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ka(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",J,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vl(r)}function Il({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=lm++,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.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(um),this.nodes.forEach(mm),this.nodes.forEach(gm),this.nodes.forEach(hm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,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 Xp)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Pr),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=da(i)&&!Jh(i),this.instance=i;const{layoutId:a,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,c=0;const h=()=>this.root.updateBlockedByResize=!1;J.read(()=>{c=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==c&&(c=m,this.root.updateBlockedByResize=!0,u&&u(),u=Zp(h,250),Wn.hasAnimatedSinceResize&&(Wn.hasAnimatedSinceResize=!1,this.nodes.forEach(Bl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||xm,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=d.getProps(),y=!this.targetLayout||!Dl(this.targetLayout,m),C=!c&&h;if(this.options.layoutRoot||this.resumeFrom||C||c&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...oo(g,"layout"),onPlay:b,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,C)}else c||Bl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ke(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(ym),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const c=this.path[u];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ll);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Nl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(pm),this.nodes.forEach(cm),this.nodes.forEach(dm)):this.nodes.forEach(Nl),this.clearAllSnapshots();const a=ye.now();ce.delta=Fe(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,Mr.update.process(ce),Mr.preRender.process(ce),Mr.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ao.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fm),this.sharedNodes.forEach(vm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(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 i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),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,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!El(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;i&&this.instance&&(a||ct(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Sm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return te();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Cm))){const{scroll:d}=this.root;d&&(It(a.x,d.offset.x),It(a.y,d.offset.y))}return a}removeElementScroll(i){const a=te();if(Ee(a,i),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:u,options:c}=d;d!==this.root&&u&&c.layoutScroll&&(u.wasRoot&&Ee(a,i),It(a.x,u.offset.x),It(a.y,u.offset.y))}return a}applyTransform(i,a=!1){const l=te();Ee(l,i);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Lt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ct(u.latestValues)&&Lt(l,u.latestValues)}return ct(this.latestValues)&&Lt(l,this.latestValues),l}removeTransform(i){const a=te();Ee(a,i);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!ct(d.latestValues))continue;So(d.latestValues)&&d.updateSnapshot();const u=te(),c=d.measurePageBox();Ee(u,c),Tl(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ct(this.latestValues)&&Tl(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!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(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:c}=this.options;if(!(!this.layout||!(u||c))){if(this.resolvedRelativeTargetAt=ce.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),rn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Ee(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Dp(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ee(this.target,this.layout.layoutBox),La(this.target,this.targetDelta)):Ee(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),rn(this.relativeTargetOrigin,this.target,h.target),Ee(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||So(this.parent.latestValues)||Ma(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const i=this.getLead(),a=!!this.resumingFrom||this!==i;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(l=!1),l)return;const{layout:d,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||!(d||u))return;Ee(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,h=this.treeScale.y;Rf(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=te());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xl(this.prevProjectionDelta.x,this.projectionDelta.x),xl(this.prevProjectionDelta.y,this.projectionDelta.y)),nn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==h||!Ml(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ml(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Nt(),this.projectionDelta=Nt(),this.projectionDeltaWithTransform=Nt()}setAnimationOrigin(i,a=!1){const l=this.snapshot,d=l?l.latestValues:{},u={...this.latestValues},c=Nt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=te(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=m!==g,x=this.getStack(),y=!x||x.members.length<=1,C=!!(b&&!y&&this.options.crossfade===!0&&!this.path.some(wm));this.animationProgress=0;let w;this.mixTargetDelta=A=>{const P=A/1e3;Ol(c.x,i.x,P),Ol(c.y,i.y,P),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bm(this.relativeTarget,this.relativeTargetOrigin,h,P),w&&om(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=te()),Ee(w,this.relativeTarget)),b&&(this.animationValues=u,Jp(u,d,this.latestValues,P,C,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ke(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{Wn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=$t(0)),this.currentAnimation=Yp(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(am),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:u}=i;if(!(!a||!l||!d)){if(this!==i&&this.layout&&d&&_l(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||te();const c=pe(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+c;const h=pe(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}Ee(a,l),Lt(a,u),nn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new im),this.sharedNodes.get(i).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&Lo("z",i,d,this.animationValues);for(let u=0;u<Io.length;u++)Lo(`rotate${Io[u]}`,i,d,this.animationValues),Lo(`skew${Io[u]}`,i,d,this.animationValues);i.render();for(const u in d)i.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=_n(a?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=_n(a?.pointerEvents)||""),this.hasProjected&&!ct(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let c=sm(this.projectionDeltaWithTransform,this.treeScale,u);l&&(c=l(u,c)),i.transform=c;const{x:h,y:m}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?i.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:i.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in Jt){if(u[g]===void 0)continue;const{correct:b,applyTo:x,isCSSVariable:y}=Jt[g],C=c==="none"?u[g]:b(u[g],d);if(x){const w=x.length;for(let A=0;A<w;A++)i[x[A]]=C}else y?this.options.visualElement.renderState.vars[g]=C:i[g]=C}this.options.layoutId&&(i.pointerEvents=d===this?_n(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Ll),this.root.sharedNodes.clear()}}}function cm(e){e.updateLayout()}function dm(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,s=t.source!==e.layout.source;o==="size"?ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(c);c.min=n[u].min,c.max=c.min+h}):_l(o,t.layoutBox,n)&&ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(n[u]);c.max=c.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const i=Nt();nn(i,n,t.layoutBox);const a=Nt();s?nn(a,e.applyTransform(r,!0),t.measuredBox):nn(a,n,t.layoutBox);const l=!El(i);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:c,layout:h}=u;if(c&&h){const m=te();rn(m,t.layoutBox,c.layoutBox);const g=te();rn(g,n,h.layoutBox),Dl(m,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function um(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 hm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fm(e){e.clearSnapshot()}function Ll(e){e.clearMeasurements()}function Nl(e){e.isLayoutDirty=!1}function pm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Bl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mm(e){e.resolveTargetDelta()}function gm(e){e.calcProjection()}function ym(e){e.resetSkewAndRotation()}function vm(e){e.removeLeadSnapshot()}function Ol(e,t,n){e.translate=Q(t.translate,0,n),e.scale=Q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fl(e,t,n,r){e.min=Q(t.min,n.min,r),e.max=Q(t.max,n.max,r)}function bm(e,t,n,r){Fl(e.x,t.x,n.x,r),Fl(e.y,t.y,n.y,r)}function wm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xm={duration:.45,ease:[.4,0,.1,1]},jl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),zl=jl("applewebkit/")&&!jl("chrome/")?Math.round:Ce;function Rl(e){e.min=zl(e.min),e.max=zl(e.max)}function Sm(e){Rl(e.x),Rl(e.y)}function _l(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ap($l(t),$l(n),.2)}function Cm(e){return e!==e.root&&e.scroll?.wasRoot}const Tm=Il({attachResizeListener:(e,t)=>Qt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),No={current:void 0},Hl=Il({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!No.current){const e=new Tm({});e.mount(window),e.setOptions({layoutScroll:!0}),No.current=e}return No.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),km={pan:{Feature:Hp},drag:{Feature:_p,ProjectionNode:Hl,MeasureLayout:pl}};function Ul(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&J.postRender(()=>s(t,en(t)))}class Em extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Yh(t,(n,r)=>(Ul(this.node,r,"Start"),o=>Ul(this.node,o,"End"))))}unmount(){}}class Pm extends Xe{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=_t(Qt(this.node.current,"focus",()=>this.onFocus()),Qt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wl(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),s=r[o];s&&J.postRender(()=>s(t,en(t)))}class Am extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=qh(t,(n,r)=>(Wl(this.node,r,"Start"),(o,{success:s})=>Wl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Bo=new WeakMap,Oo=new WeakMap,Dm=e=>{const t=Bo.get(e.target);t&&t(e)},$m=e=>{e.forEach(Dm)};function Mm({root:e,...t}){const n=e||document;Oo.has(n)||Oo.set(n,{});const r=Oo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver($m,{root:e,...t})),r[o]}function Vm(e,t,n){const r=Mm(t);return Bo.set(e,n),r.observe(e),()=>{Bo.delete(e),r.unobserve(e)}}const Im={some:0,all:1};class Lm extends Xe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Im[o]},a=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:c}=this.node.getProps(),h=d?u:c;h&&h(l)};return Vm(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Nm(t,n))&&this.startObserver()}unmount(){}}function Nm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Bm={...Sp,...{inView:{Feature:Lm},tap:{Feature:Am},focus:{Feature:Pm},hover:{Feature:Em}},...km,...{layout:{ProjectionNode:Hl,MeasureLayout:pl}}},Re=Ff(Bm,qf),Om={sm:v`
235
235
  width: 1.25rem;
236
236
  height: 1.25rem;
237
- `,md:x`
237
+ `,md:v`
238
238
  width: 1.75rem;
239
239
  height: 1.75rem;
240
- `,lg:x`
240
+ `,lg:v`
241
241
  width: 3rem;
242
242
  height: 3rem;
243
- `,xl:x`
243
+ `,xl:v`
244
244
  width: 4rem;
245
245
  height: 4rem;
246
- `},Yl={primary:x`
246
+ `},Kl={primary:v`
247
247
  color: var(--color-main-blue-primary);
248
- `,orange:x`
248
+ `,orange:v`
249
249
  color: var(--color-main-orange-primary);
250
- `,white:x`
250
+ `,white:v`
251
251
  color: var(--color-main-white);
252
- `,gray:x`
252
+ `,gray:v`
253
253
  color: var(--color-main-grey);
254
- `},Bm=C.div`
254
+ `},Fm=S.div`
255
255
  position: relative;
256
256
  display: block;
257
- ${({$size:e="md"})=>Nm[e]}
258
- ${({$color:e="primary"})=>Yl[e]}
257
+ ${({$size:e="md"})=>Om[e]}
258
+ ${({$color:e="primary"})=>Kl[e]}
259
259
  user-select: none;
260
- `,Om=C.div`
260
+ `,jm=S.div`
261
261
  display: flex;
262
262
  flex-direction: column;
263
263
  align-items: center;
264
264
  gap: 0.5rem;
265
265
  padding: 2.5px 2.5px 2.5px 0px;
266
- `,Fm=C.div`
266
+ `,zm=S.div`
267
267
  display: flex;
268
268
  align-items: center;
269
269
  justify-content: center;
270
270
  min-height: 12.5rem;
271
271
  width: 100%;
272
- `,jm=C(Re.p)`
273
- ${I[16]}
274
- ${({$color:e="primary"})=>Yl[e]}
272
+ `,Rm=S(Re.p)`
273
+ ${M[16]}
274
+ ${({$color:e="primary"})=>Kl[e]}
275
275
  margin: 0;
276
- `,Kn=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:s="rotate"})=>{const i=p.jsxs(Om,{children:[p.jsxs(Bm,{$size:e,$color:t,$variant:s,children:[p.jsx(Re.svg,{width:"100%",height:"100%",viewBox:"0 0 50 50",style:{position:"absolute",top:0,left:0,zIndex:1,padding:"2.1px 2.5px 2.5px 0px"},animate:s==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:s==="rotate"?{repeat:1/0,duration:2,ease:"linear"}:{repeat:1/0,duration:2,ease:"easeInOut"},children:p.jsx("g",{transform:"scale(0.15) translate(-10, -1)",children:p.jsx("path",{fill:"currentColor",d:`M67.251411,286.749390
276
+ `,Kn=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:s="rotate"})=>{const i=p.jsxs(jm,{children:[p.jsxs(Fm,{$size:e,$color:t,$variant:s,children:[p.jsx(Re.svg,{width:"100%",height:"100%",viewBox:"0 0 50 50",style:{position:"absolute",top:0,left:0,zIndex:1,padding:"2.1px 2.5px 2.5px 0px"},animate:s==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:s==="rotate"?{repeat:1/0,duration:2,ease:"linear"}:{repeat:1/0,duration:2,ease:"easeInOut"},children:p.jsx("g",{transform:"scale(0.15) translate(-10, -1)",children:p.jsx("path",{fill:"currentColor",d:`M67.251411,286.749390
277
277
  C42.999393,262.534088 27.711603,233.886490 21.140957,200.638245
278
278
  C20.527918,197.536194 19.462318,196.344513 16.327942,196.535400
279
279
  C12.711285,196.755646 9.070918,196.586609 4.251685,196.586609
@@ -290,7 +290,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
290
290
  C231.681030,-17.750278 329.482361,42.974667 346.823608,138.519577
291
291
  C363.551025,230.682480 301.903687,318.479523 209.509521,332.564972
292
292
  C155.049683,340.867371 107.495514,325.072021 67.251411,286.749390
293
- z`})})}),o&&p.jsx("title",{children:o})]}),r&&p.jsx(jm,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?p.jsx(Fm,{children:i}):i},zm=C.div`
293
+ z`})})}),o&&p.jsx("title",{children:o})]}),r&&p.jsx(Rm,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?p.jsx(zm,{children:i}):i},_m=S.div`
294
294
  position: fixed;
295
295
  inset: 0;
296
296
  background-color: rgba(255, 255, 255, 0.8);
@@ -299,7 +299,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
299
299
  align-items: center;
300
300
  justify-content: center;
301
301
  z-index: 50;
302
- `,Rm=C.div`
302
+ `,Hm=S.div`
303
303
  background-color: var(--color-main-white);
304
304
  border-radius: var(--border-radius-card);
305
305
  box-shadow: var(--shadow-black-card);
@@ -310,18 +310,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
310
310
  gap: 1rem;
311
311
  width: 90%;
312
312
  max-width: 24rem;
313
- `,_m=C.h2`
314
- ${vr[30]}
313
+ `,Um=S.h2`
314
+ ${br[30]}
315
315
  color: var(--color-main-blue-primary);
316
316
  margin: 0 auto;
317
317
  text-align: center;
318
- `,Hm=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>p.jsx(zm,{role:"status","aria-live":"polite",children:p.jsxs(Rm,{children:[p.jsx(Kn,{size:"xl",color:t,centered:!1,title:e,variant:n}),p.jsx(_m,{children:e})]})}),Um=C.div`
318
+ `,Wm=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>p.jsx(_m,{role:"status","aria-live":"polite",children:p.jsxs(Hm,{children:[p.jsx(Kn,{size:"xl",color:t,centered:!1,title:e,variant:n}),p.jsx(Um,{children:e})]})}),Km=S.div`
319
319
  display: flex;
320
320
  flex-direction: column;
321
321
  align-items: center;
322
322
  justify-content: center;
323
323
  padding: 3rem 1rem;
324
- `,Wm=({message:e,color:t="primary",variant:n="rotate"})=>p.jsx(Um,{role:"status","aria-live":"polite",children:p.jsx(Kn,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),Gl=({color:e="white",variant:t="rotate"})=>p.jsx(Kn,{size:"sm",color:e,centered:!1,variant:t}),Km={primary:x`
324
+ `,Ym=({message:e,color:t="primary",variant:n="rotate"})=>p.jsx(Km,{role:"status","aria-live":"polite",children:p.jsx(Kn,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),Yl=({color:e="white",variant:t="rotate"})=>p.jsx(Kn,{size:"sm",color:e,centered:!1,variant:t}),Gm={primary:v`
325
325
  background-color: var(--color-main-blue-primary);
326
326
  color: var(--color-main-white);
327
327
 
@@ -336,7 +336,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
336
336
  &:focus-visible {
337
337
  outline-color: var(--color-main-blue-primary);
338
338
  }
339
- `,secondary:x`
339
+ `,secondary:v`
340
340
  background-color: var(--color-main-orange-primary);
341
341
  color: var(--color-main-white);
342
342
 
@@ -348,7 +348,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
348
348
  &:focus-visible {
349
349
  outline-color: var(--color-main-orange-primary);
350
350
  }
351
- `,cancel:x`
351
+ `,cancel:v`
352
352
  background-color: var(--color-main-warning-state);
353
353
  color: var(--color-main-white);
354
354
 
@@ -360,25 +360,41 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
360
360
  &:focus-visible {
361
361
  outline-color: var(--color-main-warning-state);
362
362
  }
363
- `},Ym=x`
363
+ `,outline:v`
364
+ background-color: transparent;
365
+ color: var(--color-main-blue-primary);
366
+ border: 2px solid var(--color-main-blue-primary);
367
+
368
+ &:hover {
369
+ background-color: var(--color-blue-100);
370
+ }
371
+
372
+ &:active {
373
+ background-color: var(--color-blue-200);
374
+ }
375
+
376
+ &:focus-visible {
377
+ outline-color: var(--color-main-blue-primary);
378
+ }
379
+ `},Xm=v`
364
380
  background-color: var(--color-main-grey);
365
381
  color: var(--color-dark-200);
366
382
  cursor: not-allowed;
367
383
  box-shadow: none;
368
- `,Gm={sm:x`
384
+ `,Zm={sm:v`
369
385
  padding: 0.375rem 0.75rem;
370
386
  min-height: 2.75rem;
371
- ${I[12]}
372
- `,md:x`
387
+ ${M[12]}
388
+ `,md:v`
373
389
  padding: 0.625rem 1.25rem;
374
390
  min-height: 3.175rem;
375
- ${I[16]}
376
- `,lg:x`
391
+ ${M[16]}
392
+ `,lg:v`
377
393
  padding: 0.75rem 1.5rem;
378
394
  min-height: 3.5rem;
379
- ${I[20]}
380
- `},Xm=C.button`
381
- borden: none;
395
+ ${M[20]}
396
+ `},qm=S.button`
397
+ border: none;
382
398
  border-radius: var(--border-radius-button);
383
399
  transition:
384
400
  outline 0.3s ease-out,
@@ -392,43 +408,43 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
392
408
  outline: 2px solid transparent;
393
409
  outline-offset: 2px;
394
410
 
395
- ${({$variant:e})=>Km[e]}
396
- ${({$size:e})=>Gm[e]}
411
+ ${({$variant:e})=>Gm[e]}
412
+ ${({$size:e})=>Zm[e]}
397
413
 
398
414
  &:disabled {
399
- ${Ym}
415
+ ${Xm}
400
416
  }
401
- `,Oo=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:s,rightIcon:i,iconSize:a="md",iconColor:c="currentColor",...d})=>p.jsxs(Xm,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...d,children:[s&&p.jsx(W,{color:c,size:a,component:s}),r?"Loading...":e,i&&p.jsx(W,{color:c,size:a,component:i})]}),qm={sm:x`
417
+ `,Fo=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:s,rightIcon:i,iconSize:a="md",iconColor:l="currentColor",...d})=>p.jsxs(qm,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...d,children:[s&&p.jsx(W,{color:l,size:a,component:s}),r?"Loading...":e,i&&p.jsx(W,{color:l,size:a,component:i})]}),Jm={sm:v`
402
418
  padding: 0.2rem 0.625rem;
403
419
  border-radius: var(--border-radius-button);
404
- ${I[12]}
405
- `,md:x`
420
+ ${M[12]}
421
+ `,md:v`
406
422
  padding: 0.375rem 0.75rem;
407
423
  border-radius: var(--border-radius-button);
408
- ${I[14]}
409
- `,lg:x`
424
+ ${M[14]}
425
+ `,lg:v`
410
426
  padding: 0.5rem 1rem;
411
427
  border-radius: var(--border-radius-button);
412
- ${I[16]}
413
- `},Zm={primary:x`
428
+ ${M[16]}
429
+ `},Qm={primary:v`
414
430
  background-color: var(--color-main-blue-primary);
415
431
  color: var(--color-main-white);
416
- `,secondary:x`
432
+ `,secondary:v`
417
433
  background-color: var(--color-main-orange-primary);
418
434
  color: var(--color-main-white);
419
- `,success:x`
435
+ `,success:v`
420
436
  background-color: var(--color-main-positive-state);
421
437
  color: var(--color-main-white);
422
- `,warning:x`
438
+ `,warning:v`
423
439
  background-color: var(--color-main-yellow-primary);
424
440
  color: var(--color-main-black);
425
- `,danger:x`
441
+ `,danger:v`
426
442
  background-color: var(--color-main-warning-state);
427
443
  color: var(--color-main-white);
428
- `,neutral:x`
444
+ `,neutral:v`
429
445
  background-color: var(--color-light-200);
430
446
  color: var(--color-main-grey);
431
- `,outline:x``},Jm=C.span`
447
+ `,outline:v``},eg=S.span`
432
448
  display: inline-flex;
433
449
  align-items: center;
434
450
  gap: 0.375rem;
@@ -436,15 +452,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
436
452
  white-space: nowrap;
437
453
  user-select: none;
438
454
 
439
- ${({$size:e})=>qm[e]}
440
- ${({$variant:e})=>Zm[e]}
455
+ ${({$size:e})=>Jm[e]}
456
+ ${({$variant:e})=>Qm[e]}
441
457
 
442
- ${({$variant:e,$outlineColor:t})=>e==="outline"?x`
458
+ ${({$variant:e,$outlineColor:t})=>e==="outline"?v`
443
459
  background-color: transparent;
444
460
  color: ${t||"var(--color-main-blue-primary)"};
445
461
  border: 1px solid ${t||"var(--color-main-blue-primary)"};
446
462
  `:""}
447
- `,Qm=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:s,iconColor:i="currentColor",iconSize:a="sm",...c})=>p.jsxs(Jm,{$variant:t,$size:n,$outlineColor:r,...c,children:[o&&p.jsx(W,{color:i,size:a,component:o}),e,s&&p.jsx(W,{color:i,size:a,component:s})]}),eg=C.div`
463
+ `,tg=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:s,iconColor:i="currentColor",iconSize:a="sm",...l})=>p.jsxs(eg,{$variant:t,$size:n,$outlineColor:r,...l,children:[o&&p.jsx(W,{color:i,size:a,component:o}),e,s&&p.jsx(W,{color:i,size:a,component:s})]}),ng=S.div`
448
464
  background-color: ${({$color:e})=>e};
449
465
  ${({$orientation:e,$length:t,$thickness:n})=>e==="horizontal"?`
450
466
  height: ${n||"1px"};
@@ -453,10 +469,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
453
469
  width: ${n||"1px"};
454
470
  height: ${t||"100%"};
455
471
  `}
456
- `,tg=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>p.jsx(eg,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),ng=C.span`
457
- ${({$size:e})=>I[e]}
472
+ `,rg=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>p.jsx(ng,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),og=S.span`
473
+ ${({$size:e})=>M[e]}
458
474
  color: ${({$color:e})=>e||"var(--color-main-grey)"};
459
- `,rg=({children:e,size:t=16,color:n,className:r,style:o})=>p.jsx(ng,{$size:t,$color:n,className:r,style:o,children:e});function og(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ig=e=>{switch(e){case"success":return lg;case"info":return dg;case"warning":return cg;case"error":return ug;default:return null}},sg=Array(12).fill(0),ag=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},sg.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),lg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),cg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),dg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ug=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),hg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),fg=()=>{const[e,t]=f.useState(document.hidden);return f.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Fo=1;class pg{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Fo++,i=this.toasts.find(c=>c.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...t,id:s,title:r}),{...c,...t,id:s,dismissible:a,title:r}):c):this.addToast({title:r,...o,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const a=o.then(async d=>{if(i=["resolve",d],f.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(gg(d)&&!d.ok){s=!1;const l=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof l=="object"&&!f.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:h,...g})}else if(d instanceof Error){s=!1;const l=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof l=="object"&&!f.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:h,...g})}else if(n.success!==void 0){s=!1;const l=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof l=="object"&&!f.isValidElement(l)?l:{message:l};this.create({id:r,type:"success",description:h,...g})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){s=!1;const u=typeof n.error=="function"?await n.error(d):n.error,l=typeof n.description=="function"?await n.description(d):n.description,m=typeof u=="object"&&!f.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:l,...m})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((d,u)=>a.then(()=>i[0]==="reject"?u(i[1]):d(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=n?.id||Fo++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ye=new pg,mg=(e,t)=>{const n=t?.id||Fo++;return ye.addToast({title:e,...t,id:n}),n},gg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",yg=mg,vg=()=>ye.toasts,bg=()=>ye.getActiveToasts(),wg=Object.assign(yg,{success:ye.success,info:ye.info,warning:ye.warning,error:ye.error,custom:ye.custom,message:ye.message,promise:ye.promise,dismiss:ye.dismiss,loading:ye.loading},{getHistory:vg,getToasts:bg});og("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Yn(e){return e.label!==void 0}const xg=3,Sg="24px",Cg="16px",Xl=4e3,Tg=356,kg=14,Eg=45,Pg=200;function Be(...e){return e.filter(Boolean).join(" ")}function Ag(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Dg=e=>{var t,n,r,o,s,i,a,c,d;const{invert:u,toast:l,unstyled:h,interacting:m,setHeights:g,visibleToasts:v,heights:b,index:y,toasts:S,expanded:w,removeToast:A,defaultRichColors:E,closeButton:k,style:P,cancelButtonStyle:D,actionButtonStyle:L,className:_="",descriptionClassName:$="",duration:Y,position:K,gap:Ee,expandByDefault:re,classNames:j,icons:N,closeButtonAriaLabel:R="Close toast"}=e,[V,z]=f.useState(null),[oe,ie]=f.useState(null),[F,q]=f.useState(!1),[G,ae]=f.useState(!1),[Me,H]=f.useState(!1),[ve,Je]=f.useState(!1),[_e,pe]=f.useState(!1),[tv,si]=f.useState(0),[nv,jc]=f.useState(0),ln=f.useRef(l.duration||Y||Xl),zc=f.useRef(null),He=f.useRef(null),rv=y===0,ov=y+1<=v,be=l.type,Ot=l.dismissible!==!1,iv=l.className||"",sv=l.descriptionClassName||"",Jn=f.useMemo(()=>b.findIndex(B=>B.toastId===l.id)||0,[b,l.id]),av=f.useMemo(()=>{var B;return(B=l.closeButton)!=null?B:k},[l.closeButton,k]),Rc=f.useMemo(()=>l.duration||Y||Xl,[l.duration,Y]),ai=f.useRef(0),Ft=f.useRef(0),_c=f.useRef(0),jt=f.useRef(null),[lv,cv]=K.split("-"),Hc=f.useMemo(()=>b.reduce((B,le,he)=>he>=Jn?B:B+le.height,0),[b,Jn]),Uc=fg(),dv=l.invert||u,li=be==="loading";Ft.current=f.useMemo(()=>Jn*Ee+Hc,[Jn,Hc]),f.useEffect(()=>{ln.current=Rc},[Rc]),f.useEffect(()=>{q(!0)},[]),f.useEffect(()=>{const B=He.current;if(B){const le=B.getBoundingClientRect().height;return jc(le),g(he=>[{toastId:l.id,height:le,position:l.position},...he]),()=>g(he=>he.filter(we=>we.toastId!==l.id))}},[g,l.id]),f.useLayoutEffect(()=>{if(!F)return;const B=He.current,le=B.style.height;B.style.height="auto";const he=B.getBoundingClientRect().height;B.style.height=le,jc(he),g(we=>we.find(de=>de.toastId===l.id)?we.map(de=>de.toastId===l.id?{...de,height:he}:de):[{toastId:l.id,height:he,position:l.position},...we])},[F,l.title,l.description,g,l.id,l.jsx,l.action,l.cancel]);const Qe=f.useCallback(()=>{ae(!0),si(Ft.current),g(B=>B.filter(le=>le.toastId!==l.id)),setTimeout(()=>{A(l)},Pg)},[l,A,g,Ft]);f.useEffect(()=>{if(l.promise&&be==="loading"||l.duration===1/0||l.type==="loading")return;let B;return w||m||Uc?(()=>{if(_c.current<ai.current){const we=new Date().getTime()-ai.current;ln.current=ln.current-we}_c.current=new Date().getTime()})():(()=>{ln.current!==1/0&&(ai.current=new Date().getTime(),B=setTimeout(()=>{l.onAutoClose==null||l.onAutoClose.call(l,l),Qe()},ln.current))})(),()=>clearTimeout(B)},[w,m,l,be,Uc,Qe]),f.useEffect(()=>{l.delete&&(Qe(),l.onDismiss==null||l.onDismiss.call(l,l))},[Qe,l.delete]);function uv(){var B;if(N?.loading){var le;return f.createElement("div",{className:Be(j?.loader,l==null||(le=l.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":be==="loading"},N.loading)}return f.createElement(ag,{className:Be(j?.loader,l==null||(B=l.classNames)==null?void 0:B.loader),visible:be==="loading"})}const hv=l.icon||N?.[be]||ig(be);var Wc,Kc;return f.createElement("li",{tabIndex:0,ref:He,className:Be(_,iv,j?.toast,l==null||(t=l.classNames)==null?void 0:t.toast,j?.default,j?.[be],l==null||(n=l.classNames)==null?void 0:n[be]),"data-sonner-toast":"","data-rich-colors":(Wc=l.richColors)!=null?Wc:E,"data-styled":!(l.jsx||l.unstyled||h),"data-mounted":F,"data-promise":!!l.promise,"data-swiped":_e,"data-removed":G,"data-visible":ov,"data-y-position":lv,"data-x-position":cv,"data-index":y,"data-front":rv,"data-swiping":Me,"data-dismissible":Ot,"data-type":be,"data-invert":dv,"data-swipe-out":ve,"data-swipe-direction":oe,"data-expanded":!!(w||re&&F),"data-testid":l.testId,style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${G?tv:Ft.current}px`,"--initial-height":re?"auto":`${nv}px`,...P,...l.style},onDragEnd:()=>{H(!1),z(null),jt.current=null},onPointerDown:B=>{B.button!==2&&(li||!Ot||(zc.current=new Date,si(Ft.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(H(!0),jt.current={x:B.clientX,y:B.clientY})))},onPointerUp:()=>{var B,le,he;if(ve||!Ot)return;jt.current=null;const we=Number(((B=He.current)==null?void 0:B.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qn=Number(((le=He.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),de=new Date().getTime()-((he=zc.current)==null?void 0:he.getTime()),Pe=V==="x"?we:Qn,er=Math.abs(Pe)/de;if(Math.abs(Pe)>=Eg||er>.11){si(Ft.current),l.onDismiss==null||l.onDismiss.call(l,l),ie(V==="x"?we>0?"right":"left":Qn>0?"down":"up"),Qe(),Je(!0);return}else{var Ve,Ie;(Ve=He.current)==null||Ve.style.setProperty("--swipe-amount-x","0px"),(Ie=He.current)==null||Ie.style.setProperty("--swipe-amount-y","0px")}pe(!1),H(!1),z(null)},onPointerMove:B=>{var le,he,we;if(!jt.current||!Ot||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;const de=B.clientY-jt.current.y,Pe=B.clientX-jt.current.x;var er;const Ve=(er=e.swipeDirections)!=null?er:Ag(K);!V&&(Math.abs(Pe)>1||Math.abs(de)>1)&&z(Math.abs(Pe)>Math.abs(de)?"x":"y");let Ie={x:0,y:0};const Yc=pt=>1/(1.5+Math.abs(pt)/20);if(V==="y"){if(Ve.includes("top")||Ve.includes("bottom"))if(Ve.includes("top")&&de<0||Ve.includes("bottom")&&de>0)Ie.y=de;else{const pt=de*Yc(de);Ie.y=Math.abs(pt)<Math.abs(de)?pt:de}}else if(V==="x"&&(Ve.includes("left")||Ve.includes("right")))if(Ve.includes("left")&&Pe<0||Ve.includes("right")&&Pe>0)Ie.x=Pe;else{const pt=Pe*Yc(Pe);Ie.x=Math.abs(pt)<Math.abs(Pe)?pt:Pe}(Math.abs(Ie.x)>0||Math.abs(Ie.y)>0)&&pe(!0),(he=He.current)==null||he.style.setProperty("--swipe-amount-x",`${Ie.x}px`),(we=He.current)==null||we.style.setProperty("--swipe-amount-y",`${Ie.y}px`)}},av&&!l.jsx&&be!=="loading"?f.createElement("button",{"aria-label":R,"data-disabled":li,"data-close-button":!0,onClick:li||!Ot?()=>{}:()=>{Qe(),l.onDismiss==null||l.onDismiss.call(l,l)},className:Be(j?.closeButton,l==null||(r=l.classNames)==null?void 0:r.closeButton)},(Kc=N?.close)!=null?Kc:hg):null,(be||l.icon||l.promise)&&l.icon!==null&&(N?.[be]!==null||l.icon)?f.createElement("div",{"data-icon":"",className:Be(j?.icon,l==null||(o=l.classNames)==null?void 0:o.icon)},l.promise||l.type==="loading"&&!l.icon?l.icon||uv():null,l.type!=="loading"?hv:null):null,f.createElement("div",{"data-content":"",className:Be(j?.content,l==null||(s=l.classNames)==null?void 0:s.content)},f.createElement("div",{"data-title":"",className:Be(j?.title,l==null||(i=l.classNames)==null?void 0:i.title)},l.jsx?l.jsx:typeof l.title=="function"?l.title():l.title),l.description?f.createElement("div",{"data-description":"",className:Be($,sv,j?.description,l==null||(a=l.classNames)==null?void 0:a.description)},typeof l.description=="function"?l.description():l.description):null),f.isValidElement(l.cancel)?l.cancel:l.cancel&&Yn(l.cancel)?f.createElement("button",{"data-button":!0,"data-cancel":!0,style:l.cancelButtonStyle||D,onClick:B=>{Yn(l.cancel)&&Ot&&(l.cancel.onClick==null||l.cancel.onClick.call(l.cancel,B),Qe())},className:Be(j?.cancelButton,l==null||(c=l.classNames)==null?void 0:c.cancelButton)},l.cancel.label):null,f.isValidElement(l.action)?l.action:l.action&&Yn(l.action)?f.createElement("button",{"data-button":!0,"data-action":!0,style:l.actionButtonStyle||L,onClick:B=>{Yn(l.action)&&(l.action.onClick==null||l.action.onClick.call(l.action,B),!B.defaultPrevented&&Qe())},className:Be(j?.actionButton,l==null||(d=l.classNames)==null?void 0:d.actionButton)},l.action.label):null)};function ql(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function $g(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?Cg:Sg;function c(d){["top","right","bottom","left"].forEach(u=>{n[`${i}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${i}-${d}`]=a:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):c(a)}),n}const Mg=f.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:c,className:d,offset:u,mobileOffset:l,theme:h="light",richColors:m,duration:g,style:v,visibleToasts:b=xg,toastOptions:y,dir:S=ql(),gap:w=kg,icons:A,containerAriaLabel:E="Notifications"}=t,[k,P]=f.useState([]),D=f.useMemo(()=>r?k.filter(F=>F.toasterId===r):k.filter(F=>!F.toasterId),[k,r]),L=f.useMemo(()=>Array.from(new Set([s].concat(D.filter(F=>F.position).map(F=>F.position)))),[D,s]),[_,$]=f.useState([]),[Y,K]=f.useState(!1),[Ee,re]=f.useState(!1),[j,N]=f.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),R=f.useRef(null),V=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=f.useRef(null),oe=f.useRef(!1),ie=f.useCallback(F=>{P(q=>{var G;return(G=q.find(ae=>ae.id===F.id))!=null&&G.delete||ye.dismiss(F.id),q.filter(({id:ae})=>ae!==F.id)})},[]);return f.useEffect(()=>ye.subscribe(F=>{if(F.dismiss){requestAnimationFrame(()=>{P(q=>q.map(G=>G.id===F.id?{...G,delete:!0}:G))});return}setTimeout(()=>{ci.flushSync(()=>{P(q=>{const G=q.findIndex(ae=>ae.id===F.id);return G!==-1?[...q.slice(0,G),{...q[G],...F},...q.slice(G+1)]:[F,...q]})})})}),[k]),f.useEffect(()=>{if(h!=="system"){N(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),typeof window>"u")return;const F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:q})=>{N(q?"dark":"light")})}catch{F.addListener(({matches:G})=>{try{N(G?"dark":"light")}catch(ae){console.error(ae)}})}},[h]),f.useEffect(()=>{k.length<=1&&K(!1)},[k]),f.useEffect(()=>{const F=q=>{var G;if(i.every(H=>q[H]||q.code===H)){var Me;K(!0),(Me=R.current)==null||Me.focus()}q.code==="Escape"&&(document.activeElement===R.current||(G=R.current)!=null&&G.contains(document.activeElement))&&K(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[i]),f.useEffect(()=>{if(R.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,oe.current=!1)}},[R.current]),f.createElement("section",{ref:n,"aria-label":`${E} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((F,q)=>{var G;const[ae,Me]=F.split("-");return D.length?f.createElement("ol",{key:F,dir:S==="auto"?ql():S,tabIndex:-1,ref:R,className:d,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":ae,"data-x-position":Me,style:{"--front-toast-height":`${((G=_[0])==null?void 0:G.height)||0}px`,"--width":`${Tg}px`,"--gap":`${w}px`,...v,...$g(u,l)},onBlur:H=>{oe.current&&!H.currentTarget.contains(H.relatedTarget)&&(oe.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||oe.current||(oe.current=!0,z.current=H.relatedTarget)},onMouseEnter:()=>K(!0),onMouseMove:()=>K(!0),onMouseLeave:()=>{Ee||K(!1)},onDragEnd:()=>K(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},D.filter(H=>!H.position&&q===0||H.position===F).map((H,ve)=>{var Je,_e;return f.createElement(Dg,{key:H.id,icons:A,index:ve,toast:H,defaultRichColors:m,duration:(Je=y?.duration)!=null?Je:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:b,closeButton:(_e=y?.closeButton)!=null?_e:c,interacting:Ee,position:F,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:ie,toasts:D.filter(pe=>pe.position==H.position),heights:_.filter(pe=>pe.position==H.position),setHeights:$,expandByDefault:a,gap:w,expanded:Y,swipeDirections:t.swipeDirections})})):null}))}),Vg=({spinnerColor:e="orange",...t})=>p.jsx(Mg,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:p.jsx(Gl,{color:e})},...t}),Ig={elevated:x`
475
+ `,ig=({children:e,size:t=16,color:n,className:r,style:o})=>p.jsx(og,{$size:t,$color:n,className:r,style:o,children:e});function sg(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ag=e=>{switch(e){case"success":return dg;case"info":return hg;case"warning":return ug;case"error":return fg;default:return null}},lg=Array(12).fill(0),cg=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},lg.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),dg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ug=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),hg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),fg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),mg=()=>{const[e,t]=f.useState(document.hidden);return f.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let jo=1;class gg{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:jo++,i=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...o,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const a=o.then(async d=>{if(i=["resolve",d],f.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(vg(d)&&!d.ok){s=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(d instanceof Error){s=!1;const c=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(n.success!==void 0){s=!1;const c=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:h,...g})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){s=!1;const u=typeof n.error=="function"?await n.error(d):n.error,c=typeof n.description=="function"?await n.description(d):n.description,m=typeof u=="object"&&!f.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:c,...m})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((d,u)=>a.then(()=>i[0]==="reject"?u(i[1]):d(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||jo++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ve=new gg,yg=(e,t)=>{const n=t?.id||jo++;return ve.addToast({title:e,...t,id:n}),n},vg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",bg=yg,wg=()=>ve.toasts,xg=()=>ve.getActiveToasts(),Sg=Object.assign(bg,{success:ve.success,info:ve.info,warning:ve.warning,error:ve.error,custom:ve.custom,message:ve.message,promise:ve.promise,dismiss:ve.dismiss,loading:ve.loading},{getHistory:wg,getToasts:xg});sg("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Yn(e){return e.label!==void 0}const Cg=3,Tg="24px",kg="16px",Gl=4e3,Eg=356,Pg=14,Ag=45,Dg=200;function Be(...e){return e.filter(Boolean).join(" ")}function $g(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Mg=e=>{var t,n,r,o,s,i,a,l,d;const{invert:u,toast:c,unstyled:h,interacting:m,setHeights:g,visibleToasts:b,heights:x,index:y,toasts:C,expanded:w,removeToast:A,defaultRichColors:P,closeButton:k,style:E,cancelButtonStyle:D,actionButtonStyle:L,className:_="",descriptionClassName:$="",duration:U,position:I,gap:he,expandByDefault:G,classNames:B,icons:N,closeButtonAriaLabel:H="Close toast"}=e,[O,R]=f.useState(null),[oe,ie]=f.useState(null),[z,q]=f.useState(!1),[X,ae]=f.useState(!1),[Me,K]=f.useState(!1),[be,Je]=f.useState(!1),[_e,me]=f.useState(!1),[C1,ii]=f.useState(0),[T1,Rc]=f.useState(0),ln=f.useRef(c.duration||U||Gl),_c=f.useRef(null),He=f.useRef(null),k1=y===0,E1=y+1<=b,we=c.type,Ot=c.dismissible!==!1,P1=c.className||"",A1=c.descriptionClassName||"",Qn=f.useMemo(()=>x.findIndex(F=>F.toastId===c.id)||0,[x,c.id]),D1=f.useMemo(()=>{var F;return(F=c.closeButton)!=null?F:k},[c.closeButton,k]),Hc=f.useMemo(()=>c.duration||U||Gl,[c.duration,U]),si=f.useRef(0),Ft=f.useRef(0),Uc=f.useRef(0),jt=f.useRef(null),[$1,M1]=I.split("-"),Wc=f.useMemo(()=>x.reduce((F,le,fe)=>fe>=Qn?F:F+le.height,0),[x,Qn]),Kc=mg(),V1=c.invert||u,ai=we==="loading";Ft.current=f.useMemo(()=>Qn*he+Wc,[Qn,Wc]),f.useEffect(()=>{ln.current=Hc},[Hc]),f.useEffect(()=>{q(!0)},[]),f.useEffect(()=>{const F=He.current;if(F){const le=F.getBoundingClientRect().height;return Rc(le),g(fe=>[{toastId:c.id,height:le,position:c.position},...fe]),()=>g(fe=>fe.filter(xe=>xe.toastId!==c.id))}},[g,c.id]),f.useLayoutEffect(()=>{if(!z)return;const F=He.current,le=F.style.height;F.style.height="auto";const fe=F.getBoundingClientRect().height;F.style.height=le,Rc(fe),g(xe=>xe.find(de=>de.toastId===c.id)?xe.map(de=>de.toastId===c.id?{...de,height:fe}:de):[{toastId:c.id,height:fe,position:c.position},...xe])},[z,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Qe=f.useCallback(()=>{ae(!0),ii(Ft.current),g(F=>F.filter(le=>le.toastId!==c.id)),setTimeout(()=>{A(c)},Dg)},[c,A,g,Ft]);f.useEffect(()=>{if(c.promise&&we==="loading"||c.duration===1/0||c.type==="loading")return;let F;return w||m||Kc?(()=>{if(Uc.current<si.current){const xe=new Date().getTime()-si.current;ln.current=ln.current-xe}Uc.current=new Date().getTime()})():(()=>{ln.current!==1/0&&(si.current=new Date().getTime(),F=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Qe()},ln.current))})(),()=>clearTimeout(F)},[w,m,c,we,Kc,Qe]),f.useEffect(()=>{c.delete&&(Qe(),c.onDismiss==null||c.onDismiss.call(c,c))},[Qe,c.delete]);function I1(){var F;if(N?.loading){var le;return f.createElement("div",{className:Be(B?.loader,c==null||(le=c.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":we==="loading"},N.loading)}return f.createElement(cg,{className:Be(B?.loader,c==null||(F=c.classNames)==null?void 0:F.loader),visible:we==="loading"})}const L1=c.icon||N?.[we]||ag(we);var Yc,Gc;return f.createElement("li",{tabIndex:0,ref:He,className:Be(_,P1,B?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,B?.default,B?.[we],c==null||(n=c.classNames)==null?void 0:n[we]),"data-sonner-toast":"","data-rich-colors":(Yc=c.richColors)!=null?Yc:P,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":z,"data-promise":!!c.promise,"data-swiped":_e,"data-removed":X,"data-visible":E1,"data-y-position":$1,"data-x-position":M1,"data-index":y,"data-front":k1,"data-swiping":Me,"data-dismissible":Ot,"data-type":we,"data-invert":V1,"data-swipe-out":be,"data-swipe-direction":oe,"data-expanded":!!(w||G&&z),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":C.length-y,"--offset":`${X?C1:Ft.current}px`,"--initial-height":G?"auto":`${T1}px`,...E,...c.style},onDragEnd:()=>{K(!1),R(null),jt.current=null},onPointerDown:F=>{F.button!==2&&(ai||!Ot||(_c.current=new Date,ii(Ft.current),F.target.setPointerCapture(F.pointerId),F.target.tagName!=="BUTTON"&&(K(!0),jt.current={x:F.clientX,y:F.clientY})))},onPointerUp:()=>{var F,le,fe;if(be||!Ot)return;jt.current=null;const xe=Number(((F=He.current)==null?void 0:F.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),er=Number(((le=He.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),de=new Date().getTime()-((fe=_c.current)==null?void 0:fe.getTime()),Pe=O==="x"?xe:er,tr=Math.abs(Pe)/de;if(Math.abs(Pe)>=Ag||tr>.11){ii(Ft.current),c.onDismiss==null||c.onDismiss.call(c,c),ie(O==="x"?xe>0?"right":"left":er>0?"down":"up"),Qe(),Je(!0);return}else{var Ve,Ie;(Ve=He.current)==null||Ve.style.setProperty("--swipe-amount-x","0px"),(Ie=He.current)==null||Ie.style.setProperty("--swipe-amount-y","0px")}me(!1),K(!1),R(null)},onPointerMove:F=>{var le,fe,xe;if(!jt.current||!Ot||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;const de=F.clientY-jt.current.y,Pe=F.clientX-jt.current.x;var tr;const Ve=(tr=e.swipeDirections)!=null?tr:$g(I);!O&&(Math.abs(Pe)>1||Math.abs(de)>1)&&R(Math.abs(Pe)>Math.abs(de)?"x":"y");let Ie={x:0,y:0};const Xc=pt=>1/(1.5+Math.abs(pt)/20);if(O==="y"){if(Ve.includes("top")||Ve.includes("bottom"))if(Ve.includes("top")&&de<0||Ve.includes("bottom")&&de>0)Ie.y=de;else{const pt=de*Xc(de);Ie.y=Math.abs(pt)<Math.abs(de)?pt:de}}else if(O==="x"&&(Ve.includes("left")||Ve.includes("right")))if(Ve.includes("left")&&Pe<0||Ve.includes("right")&&Pe>0)Ie.x=Pe;else{const pt=Pe*Xc(Pe);Ie.x=Math.abs(pt)<Math.abs(Pe)?pt:Pe}(Math.abs(Ie.x)>0||Math.abs(Ie.y)>0)&&me(!0),(fe=He.current)==null||fe.style.setProperty("--swipe-amount-x",`${Ie.x}px`),(xe=He.current)==null||xe.style.setProperty("--swipe-amount-y",`${Ie.y}px`)}},D1&&!c.jsx&&we!=="loading"?f.createElement("button",{"aria-label":H,"data-disabled":ai,"data-close-button":!0,onClick:ai||!Ot?()=>{}:()=>{Qe(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Be(B?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Gc=N?.close)!=null?Gc:pg):null,(we||c.icon||c.promise)&&c.icon!==null&&(N?.[we]!==null||c.icon)?f.createElement("div",{"data-icon":"",className:Be(B?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||I1():null,c.type!=="loading"?L1:null):null,f.createElement("div",{"data-content":"",className:Be(B?.content,c==null||(s=c.classNames)==null?void 0:s.content)},f.createElement("div",{"data-title":"",className:Be(B?.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?f.createElement("div",{"data-description":"",className:Be($,A1,B?.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),f.isValidElement(c.cancel)?c.cancel:c.cancel&&Yn(c.cancel)?f.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||D,onClick:F=>{Yn(c.cancel)&&Ot&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,F),Qe())},className:Be(B?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,f.isValidElement(c.action)?c.action:c.action&&Yn(c.action)?f.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||L,onClick:F=>{Yn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,F),!F.defaultPrevented&&Qe())},className:Be(B?.actionButton,c==null||(d=c.classNames)==null?void 0:d.actionButton)},c.action.label):null)};function Xl(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Vg(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?kg:Tg;function l(d){["top","right","bottom","left"].forEach(u=>{n[`${i}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${i}-${d}`]=a:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(a)}),n}const Ig=f.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:l,className:d,offset:u,mobileOffset:c,theme:h="light",richColors:m,duration:g,style:b,visibleToasts:x=Cg,toastOptions:y,dir:C=Xl(),gap:w=Pg,icons:A,containerAriaLabel:P="Notifications"}=t,[k,E]=f.useState([]),D=f.useMemo(()=>r?k.filter(z=>z.toasterId===r):k.filter(z=>!z.toasterId),[k,r]),L=f.useMemo(()=>Array.from(new Set([s].concat(D.filter(z=>z.position).map(z=>z.position)))),[D,s]),[_,$]=f.useState([]),[U,I]=f.useState(!1),[he,G]=f.useState(!1),[B,N]=f.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=f.useRef(null),O=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=f.useRef(null),oe=f.useRef(!1),ie=f.useCallback(z=>{E(q=>{var X;return(X=q.find(ae=>ae.id===z.id))!=null&&X.delete||ve.dismiss(z.id),q.filter(({id:ae})=>ae!==z.id)})},[]);return f.useEffect(()=>ve.subscribe(z=>{if(z.dismiss){requestAnimationFrame(()=>{E(q=>q.map(X=>X.id===z.id?{...X,delete:!0}:X))});return}setTimeout(()=>{li.flushSync(()=>{E(q=>{const X=q.findIndex(ae=>ae.id===z.id);return X!==-1?[...q.slice(0,X),{...q[X],...z},...q.slice(X+1)]:[z,...q]})})})}),[k]),f.useEffect(()=>{if(h!=="system"){N(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),typeof window>"u")return;const z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:q})=>{N(q?"dark":"light")})}catch{z.addListener(({matches:X})=>{try{N(X?"dark":"light")}catch(ae){console.error(ae)}})}},[h]),f.useEffect(()=>{k.length<=1&&I(!1)},[k]),f.useEffect(()=>{const z=q=>{var X;if(i.every(K=>q[K]||q.code===K)){var Me;I(!0),(Me=H.current)==null||Me.focus()}q.code==="Escape"&&(document.activeElement===H.current||(X=H.current)!=null&&X.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[i]),f.useEffect(()=>{if(H.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,oe.current=!1)}},[H.current]),f.createElement("section",{ref:n,"aria-label":`${P} ${O}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((z,q)=>{var X;const[ae,Me]=z.split("-");return D.length?f.createElement("ol",{key:z,dir:C==="auto"?Xl():C,tabIndex:-1,ref:H,className:d,"data-sonner-toaster":!0,"data-sonner-theme":B,"data-y-position":ae,"data-x-position":Me,style:{"--front-toast-height":`${((X=_[0])==null?void 0:X.height)||0}px`,"--width":`${Eg}px`,"--gap":`${w}px`,...b,...Vg(u,c)},onBlur:K=>{oe.current&&!K.currentTarget.contains(K.relatedTarget)&&(oe.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||oe.current||(oe.current=!0,R.current=K.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{he||I(!1)},onDragEnd:()=>I(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||G(!0)},onPointerUp:()=>G(!1)},D.filter(K=>!K.position&&q===0||K.position===z).map((K,be)=>{var Je,_e;return f.createElement(Mg,{key:K.id,icons:A,index:be,toast:K,defaultRichColors:m,duration:(Je=y?.duration)!=null?Je:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(_e=y?.closeButton)!=null?_e:l,interacting:he,position:z,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:ie,toasts:D.filter(me=>me.position==K.position),heights:_.filter(me=>me.position==K.position),setHeights:$,expandByDefault:a,gap:w,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),Lg=({spinnerColor:e="orange",...t})=>p.jsx(Ig,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:p.jsx(Yl,{color:e})},...t}),Ng={elevated:v`
460
476
  background-color: var(--color-main-white);
461
477
  box-shadow: var(--shadow-black-card);
462
478
  border: none;
@@ -464,7 +480,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
464
480
  &:hover {
465
481
  box-shadow: var(--shadow-hover-black-card);
466
482
  }
467
- `,flat:x`
483
+ `,flat:v`
468
484
  background-color: var(--color-main-white);
469
485
  box-shadow: none;
470
486
  border: none;
@@ -472,7 +488,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
472
488
  &:hover {
473
489
  background-color: var(--color-main-alternative-secondary);
474
490
  }
475
- `,info:x`
491
+ `,info:v`
476
492
  background-color: var(--color-main-white);
477
493
  box-shadow: none;
478
494
 
@@ -483,16 +499,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
483
499
  &:active {
484
500
  border: none;
485
501
  }
486
- `},Lg={sm:x`
502
+ `},Bg={sm:v`
487
503
  padding: 0.75rem;
488
504
  gap: 0.5rem;
489
- `,md:x`
505
+ `,md:v`
490
506
  padding: 1rem;
491
507
  gap: 0.5rem;
492
- `,lg:x`
508
+ `,lg:v`
493
509
  padding: 1.25rem;
494
510
  gap: 0.5rem;
495
- `},Ng=x`
511
+ `},Og=v`
496
512
  transition:
497
513
  box-shadow 0.3s ease-out,
498
514
  background-color 0.3s ease-out,
@@ -512,7 +528,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
512
528
  &:focus-visible {
513
529
  outline-color: var(--color-main-blue-primary);
514
530
  }
515
- `,Bg=x`
531
+ `,Fg=v`
516
532
  opacity: 0.6;
517
533
  cursor: not-allowed;
518
534
  pointer-events: none;
@@ -521,7 +537,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
521
537
  transform: none;
522
538
  box-shadow: inherit;
523
539
  }
524
- `,Og=C.div`
540
+ `,jg=S.div`
525
541
  display: flex;
526
542
  flex-direction: column;
527
543
  border-radius: var(--border-radius-card);
@@ -529,53 +545,53 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
529
545
  height: 100%;
530
546
  outline: 2px solid transparent;
531
547
  outline-offset: -1px;
532
- ${({$variant:e})=>Ig[e]}
533
- ${({$clickable:e})=>e&&Ng}
534
- ${({$disabled:e})=>e&&Bg}
535
- ${({$size:e})=>Lg[e]}
536
- `,Fg=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...s})=>{const i=a=>{n||r&&r(a)};return p.jsx(Og,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:i,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i(a))}:void 0,...s,children:o})},jg=C.div`
548
+ ${({$variant:e})=>Ng[e]}
549
+ ${({$clickable:e})=>e&&Og}
550
+ ${({$disabled:e})=>e&&Fg}
551
+ ${({$size:e})=>Bg[e]}
552
+ `,zg=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...s})=>{const i=a=>{n||r&&r(a)};return p.jsx(jg,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:i,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i(a))}:void 0,...s,children:o})},Rg=S.div`
537
553
  display: flex;
538
554
  align-items: center;
539
555
  align-self: stretch;
540
556
  gap: 0.5rem;
541
- `,zg=({children:e,...t})=>p.jsx(jg,{...t,children:e}),Rg=C.div`
557
+ `,_g=({children:e,...t})=>p.jsx(Rg,{...t,children:e}),Hg=S.div`
542
558
  flex: 1;
543
559
  display: flex;
544
560
  flex-direction: column;
545
- `,_g=({children:e,...t})=>p.jsx(Rg,{...t,children:e}),Hg=C.div`
561
+ `,Ug=({children:e,...t})=>p.jsx(Hg,{...t,children:e}),Wg=S.div`
546
562
  display: flex;
547
563
  align-items: center;
548
564
  align-self: stretch;
549
565
  gap: 0.5rem;
550
- `,Ug=({children:e,...t})=>p.jsx(Hg,{...t,children:e}),Wg={sm:x`
551
- ${I[12]}
552
- `,md:x`
553
- ${I[16]}
554
- `,lg:x`
555
- ${I[18]}
556
- `},Kg=C.div`
566
+ `,Kg=({children:e,...t})=>p.jsx(Wg,{...t,children:e}),Yg={sm:v`
567
+ ${M[12]}
568
+ `,md:v`
569
+ ${M[16]}
570
+ `,lg:v`
571
+ ${M[18]}
572
+ `},Gg=S.div`
557
573
  color: var(--color-main-warning-state);
558
- ${({$size:e})=>Wg[e]}
574
+ ${({$size:e})=>Yg[e]}
559
575
  font-weight: 400;
560
576
  margin-top: 0.25rem;
561
577
  display: flex;
562
578
  align-items: flex-start;
563
579
  gap: 0.25rem;
564
- `,jo=({children:e,className:t,size:n="md",...r})=>p.jsx(Kg,{className:t,$size:n,...r,children:e}),Yg={sm:x`
565
- ${I[16]}
566
- `,md:x`
567
- ${I[24]}
568
- `,lg:x`
569
- ${I[30]}
570
- `},Gg=C.label`
580
+ `,Gn=({children:e,className:t,size:n="md",...r})=>p.jsx(Gg,{className:t,$size:n,...r,children:e}),Xg={sm:v`
581
+ ${M[16]}
582
+ `,md:v`
583
+ ${M[24]}
584
+ `,lg:v`
585
+ ${M[30]}
586
+ `},Zg=S.label`
571
587
  color: var(--color-main-blue-primary);
572
- ${({$size:e})=>Yg[e]}
573
- ${({$disabled:e})=>e&&Xg}
588
+ ${({$size:e})=>Xg[e]}
589
+ ${({$disabled:e})=>e&&qg}
574
590
  cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
575
- `,Xg=x`
591
+ `,qg=v`
576
592
  cursor: not-allowed;
577
593
  opacity: 0.6;
578
- `,Gn=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:s="md",...i})=>p.jsxs(Gg,{className:n,htmlFor:t,$htmlFor:t,$size:s,$disabled:o,...i,children:[e,r&&p.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),Zl=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Jl=e=>Zl.includes(e),qe=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Jl(t.type)?t.type:"text",placeholder:t.placeholder,required:t.required||!1,disabled:t.disabled||!1,options:t.options||[],validation:t.validation,checkboxLabel:t.checkboxLabel,radioName:t.radioName,pinLength:t.pinLength||6,pinType:t.pinType||"number",rows:t.rows||4,size:t.size||"md",inputClassName:t.inputClassName,labelClassName:t.labelClassName,messageErrorClassName:t.messageErrorClassName})),qg=e=>e.map(t=>({value:t.value,label:t.label})),Zg={text:(e,t,n)=>qe([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>qe([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>qe([{name:e,label:t,type:"password",required:!0,validation:{pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,}$",custom:r=>{if(r&&r.length<8)return"Password must be at least 8 characters long"}},...n}])[0],select:(e,t,n,r)=>qe([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>qe([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>qe([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>qe([{name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} must be ${n} digits long`}},...r}])[0]},Jg=(e,t,n,r,o,s,i,a)=>{const{field:c,...d}=t,u={...c,...d,size:d.size,hasError:d.hasError,disabled:d.disabled,placeholder:d.placeholder,className:d.className};switch(e){case"textarea":return{component:"textarea",props:{...u,rows:i?.rows||4}};case"select":return{component:"select",props:{...u,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...u,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...u,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...u,length:s?.pinLength||6,type:s?.pinType||"number",onComplete:s?.onPinComplete}};case"password":return{component:"password",props:{...u,type:"password"}};case"search":return{component:"search",props:{...u,onSearch:a?.onSearch}};default:return{component:"base",props:{...u,type:t.type||e||"text"}}}},ut=x`
594
+ `,Xn=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:s="md",...i})=>p.jsxs(Zg,{className:n,htmlFor:t,$htmlFor:t,$size:s,$disabled:o,...i,children:[e,r&&p.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),Zl=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],ql=e=>Zl.includes(e),Ze=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&ql(t.type)?t.type:"text",placeholder:t.placeholder,required:t.required||!1,disabled:t.disabled||!1,options:t.options||[],validation:t.validation,checkboxLabel:t.checkboxLabel,radioName:t.radioName,pinLength:t.pinLength||6,pinType:t.pinType||"number",rows:t.rows||4,size:t.size||"md",inputClassName:t.inputClassName,labelClassName:t.labelClassName,messageErrorClassName:t.messageErrorClassName})),Jg=e=>e.map(t=>({value:t.value,label:t.label})),Qg={text:(e,t,n)=>Ze([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>Ze([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>Ze([{name:e,label:t,type:"password",required:!0,validation:{pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,}$",custom:r=>{if(r&&r.length<8)return"Password must be at least 8 characters long"}},...n}])[0],select:(e,t,n,r)=>Ze([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>Ze([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>Ze([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>Ze([{name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} must be ${n} digits long`}},...r}])[0]},e0=(e,t,n,r,o,s,i,a)=>{const{field:l,...d}=t,u={...l,...d,size:d.size,hasError:d.hasError,disabled:d.disabled,placeholder:d.placeholder,className:d.className};switch(e){case"textarea":return{component:"textarea",props:{...u,rows:i?.rows||4}};case"select":return{component:"select",props:{...u,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...u,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...u,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...u,length:s?.pinLength||6,type:s?.pinType||"number",onComplete:s?.onPinComplete}};case"password":return{component:"password",props:{...u,type:"password"}};case"search":return{component:"search",props:{...u,onSearch:a?.onSearch}};default:return{component:"base",props:{...u,type:t.type||e||"text"}}}},ut=v`
579
595
  display: flex;
580
596
  justify-content: space-between;
581
597
  align-items: center;
@@ -606,7 +622,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
606
622
  &:disabled {
607
623
  cursor: not-allowed;
608
624
  }
609
- `,Xn=x`
625
+ `,Zn=v`
610
626
  width: 100%;
611
627
  border: none;
612
628
  outline: none;
@@ -623,18 +639,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
623
639
  &::placeholder {
624
640
  color: var(--color-dark-200);
625
641
  }
626
- `,ht=x`
642
+ `,ht=v`
627
643
  border: var(--border-input-error) !important;
628
644
 
629
645
  &:focus-within {
630
646
  border: 1px solid var(--color-main-warning-state) !important;
631
647
  outline: none;
632
648
  }
633
- `,Ze=x`
649
+ `,qe=v`
634
650
  border: var(--border-input-disabled) !important;
635
651
  cursor: not-allowed;
636
652
  opacity: 0.6;
637
- `,Ql=x`
653
+ `,Jl=v`
638
654
  border: none;
639
655
  border-top: 0;
640
656
  border-right: 0;
@@ -660,47 +676,47 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
660
676
  border-bottom: var(--border-input-focus);
661
677
  outline: none;
662
678
  }
663
- `,sn={sm:x`
679
+ `,sn={sm:v`
664
680
  padding: 0.5rem 1rem;
665
681
  height: 2.5rem;
666
- ${I[18]}
667
- `,md:x`
682
+ ${M[18]}
683
+ `,md:v`
668
684
  padding: 0.5rem 1rem;
669
685
  height: 2.75rem;
670
- ${I[20]}
671
- `,lg:x`
686
+ ${M[20]}
687
+ `,lg:v`
672
688
  padding: 0.5rem 1rem;
673
689
  height: 3rem;
674
- ${I[20]}
675
- `},qn=x`
690
+ ${M[20]}
691
+ `},qn=v`
676
692
  display: flex;
677
693
  align-items: center;
678
694
  justify-content: center;
679
695
  flex-shrink: 0;
680
696
  user-select: none;
681
- `,Qg=C.div`
697
+ `,t0=S.div`
682
698
  ${ut}
683
699
  ${({$size:e})=>sn[e]}
684
700
  ${({$hasError:e})=>e&&ht}
685
- ${({$disabled:e})=>e&&Ze}
686
- ${({$isFlushed:e})=>e&&Ql}
687
- `,e0=C.input`
688
- ${Xn}
689
- `,zo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:r="text",flushed:o=!1,leftIcon:s,rightIcon:i,iconSize:a="md",iconColor:c="currentColor",className:d,...u},l)=>p.jsxs(Qg,{$size:e,$hasError:t,className:d,$isFlushed:o,children:[s&&p.jsx(W,{component:s,size:a,color:n?"var(--color-dark-200)":c}),p.jsx(e0,{ref:l,type:r,$hasError:t,disabled:n,...u}),i&&p.jsx(W,{component:i,size:a,color:n?"var(--color-dark-200)":c})]}));zo.displayName="BaseInput";const t0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"})),n0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})),r0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})),o0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})),i0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),s0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"})),a0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"})),l0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"})),c0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M5 22C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2H19C19.5523 2 20 2.44772 20 3V6H18V4H6V20H18V18H20V21C20 21.5523 19.5523 22 19 22H5ZM18 16V13H11V11H18V8L23 12L18 16Z"})),ec=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),d0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),u0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM18 17V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V17H18ZM9 21H15V23H9V21Z"})),tc=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"})),h0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"})),f0=C.div`
701
+ ${({$disabled:e})=>e&&qe}
702
+ ${({$isFlushed:e})=>e&&Jl}
703
+ `,n0=S.input`
704
+ ${Zn}
705
+ `,zo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:r="text",flushed:o=!1,leftIcon:s,rightIcon:i,iconSize:a="md",iconColor:l="currentColor",className:d,...u},c)=>p.jsxs(t0,{$size:e,$hasError:t,className:d,$isFlushed:o,children:[s&&p.jsx(W,{component:s,size:a,color:n?"var(--color-dark-200)":l}),p.jsx(n0,{ref:c,type:r,$hasError:t,disabled:n,...u}),i&&p.jsx(W,{component:i,size:a,color:n?"var(--color-dark-200)":l})]}));zo.displayName="BaseInput";const r0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"})),o0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})),i0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})),s0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})),Ql=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),a0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"})),l0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"})),c0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"})),d0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M5 22C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2H19C19.5523 2 20 2.44772 20 3V6H18V4H6V20H18V18H20V21C20 21.5523 19.5523 22 19 22H5ZM18 16V13H11V11H18V8L23 12L18 16Z"})),ec=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),u0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),h0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM18 17V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V17H18ZM9 21H15V23H9V21Z"})),tc=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"})),f0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M12 12.5858L16.2426 16.8284L14.8284 18.2426L13 16.415V22H11V16.413L9.17157 18.2426L7.75736 16.8284L12 12.5858ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z"})),p0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"})),m0=S.div`
690
706
  ${ut}
691
707
  ${({$size:e})=>sn[e??"md"]}
692
708
  ${({$hasError:e})=>e&&ht}
693
- ${({$disabled:e})=>e&&Ze}
709
+ ${({$disabled:e})=>e&&qe}
694
710
  position: relative;
695
- `,p0=C.input`
696
- ${Xn}
697
- `,m0=C.span`
711
+ `,g0=S.input`
712
+ ${Zn}
713
+ `,y0=S.span`
698
714
  ${qn}
699
715
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
700
- `,nc=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:s=!1,disabled:i=!1,className:a,...c})=>{const[d,u]=f.useState(!1),l=()=>u(h=>!h);return p.jsxs(f0,{$size:e,$hasError:s,$disabled:i,className:a,children:[t&&p.jsx(W,{component:t,size:n,color:i?"var(--color-dark-200)":r}),p.jsx(p0,{type:d?"text":"password",placeholder:o,disabled:i,...c}),p.jsx(m0,{$disabled:i,onClick:i?void 0:l,children:p.jsx(W,{component:d?l0:a0,size:n,color:i?"var(--color-dark-200)":r})})]})},rc=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},g0=e=>{const t=e.map((n,r)=>({...n,index:r})).reverse().find(n=>!n.disabled)?.index;return t!==void 0?t:e.length-1},y0=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},v0=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),b0=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},w0=(e,t)=>{if(typeof e=="string"||typeof e=="number"){const n=t.findIndex(r=>r.value===e);if(n!==-1&&!t[n].disabled)return n}return rc(t)},x0=C.div`
716
+ `,nc=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:s=!1,disabled:i=!1,className:a,...l})=>{const[d,u]=f.useState(!1),c=()=>u(h=>!h);return p.jsxs(m0,{$size:e,$hasError:s,$disabled:i,className:a,children:[t&&p.jsx(W,{component:t,size:n,color:i?"var(--color-dark-200)":r}),p.jsx(g0,{type:d?"text":"password",placeholder:o,disabled:i,...l}),p.jsx(y0,{$disabled:i,onClick:i?void 0:c,children:p.jsx(W,{component:d?c0:l0,size:n,color:i?"var(--color-dark-200)":r})})]})},rc=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},v0=e=>{const t=e.map((n,r)=>({...n,index:r})).reverse().find(n=>!n.disabled)?.index;return t!==void 0?t:e.length-1},b0=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},w0=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),x0=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},S0=(e,t)=>{if(typeof e=="string"||typeof e=="number"){const n=t.findIndex(r=>r.value===e);if(n!==-1&&!t[n].disabled)return n}return rc(t)},C0=S.div`
701
717
  position: relative;
702
718
  width: 100%;
703
- `,S0=C.div`
719
+ `,T0=S.div`
704
720
  ${qn}
705
721
  position: absolute;
706
722
  right: 1rem;
@@ -708,11 +724,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
708
724
  transform: translateY(-50%) rotate(${({$open:e})=>e?"180deg":"0deg"});
709
725
  pointer-events: none;
710
726
  transition: transform 0.3s ease-out;
711
- `,C0=C.button`
727
+ `,k0=S.button`
712
728
  ${ut}
713
729
  ${({$size:e})=>sn[e]}
714
730
  ${({$hasError:e})=>e&&ht}
715
- ${({$disabled:e})=>e&&Ze}
731
+ ${({$disabled:e})=>e&&qe}
716
732
 
717
733
  width: 100%;
718
734
  text-align: left;
@@ -730,7 +746,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
730
746
  &:hover {
731
747
  background-color: var(--color-main-alternative-secondary);
732
748
  }
733
- `,T0=C(Re.ul)`
749
+ `,E0=S(Re.ul)`
734
750
  position: absolute;
735
751
  z-index: 50;
736
752
  left: 0;
@@ -752,11 +768,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
752
768
  border: var(--border-input-focus);
753
769
  outline: none;
754
770
  }
755
- `,k0=C.div`
771
+ `,P0=S.div`
756
772
  max-height: 15rem;
757
773
  overflow-y: auto;
758
774
  outline: none;
759
- `,E0=C.li`
775
+ `,A0=S.li`
760
776
  display: flex;
761
777
  align-items: center;
762
778
  gap: 0.5rem;
@@ -766,22 +782,22 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
766
782
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
767
783
  user-select: none;
768
784
 
769
- ${({$size:e})=>P0[e??"md"]}
785
+ ${({$size:e})=>D0[e??"md"]}
770
786
 
771
787
  background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
772
788
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
773
- `,P0={sm:x`
774
- ${I[16]}
775
- `,md:x`
776
- ${I[18]}
777
- `,lg:x`
778
- ${I[18]}
779
- `},Ro=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:s,onChange:i,value:a,name:c,className:d,inputClassName:u,optionsClassName:l,optionClassName:h},m)=>{const g=f.useRef(null),v=f.useRef(null),b=f.useRef(null),y=f.useRef(null),S=f.useId(),[w,A]=f.useState(!1),[E,k]=f.useState(-1),P=r.find($=>$.value===a);f.useEffect(()=>{w&&v.current&&(v.current.focus(),k(w0(a,r)))},[w,r,a]),f.useEffect(()=>{b0(b,E)},[E]),f.useEffect(()=>{if(!w)return;const $=Y=>{g.current&&(g.current.contains(Y.target)||A(!1))};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[w]),f.useEffect(()=>{w||requestAnimationFrame(()=>{m?.current?.focus?.(),y.current?.focus()})},[w,m]);const D=$=>{$.disabled||(s?.($),i&&i(v0($.value,c)),A(!1),k(-1))},L=$=>{n||($.key==="ArrowDown"||$.key==="ArrowUp"?($.preventDefault(),A(!0)):($.key==="Enter"||$.key===" ")&&($.preventDefault(),A(Y=>!Y)))},_=$=>{if($.key==="Escape"){$.preventDefault(),A(!1),k(-1);return}if($.key==="ArrowDown"||$.key==="ArrowUp"){$.preventDefault();const Y=$.key==="ArrowDown"?1:-1;k(y0(E,Y,r))}else if($.key==="Enter"){$.preventDefault();const Y=r[E];Y&&!Y.disabled&&D(Y)}else $.key==="Home"?($.preventDefault(),k(rc(r))):$.key==="End"&&($.preventDefault(),k(g0(r)))};return p.jsxs(x0,{ref:g,className:d,children:[c&&p.jsx("input",{type:"hidden",name:c,value:P?.value??""}),p.jsx(C0,{type:"button",$size:e,$hasError:t,$hasValue:!!P,$disabled:n,disabled:n,className:u,ref:$=>{y.current=$,typeof m=="function"?m($):m&&"current"in m&&(m.current=$)},onClick:()=>!n&&A($=>!$),onKeyDown:L,"aria-haspopup":"listbox","aria-expanded":w,"aria-controls":`${S}-listbox`,"aria-invalid":t||void 0,title:P?.label??o??"Select an option",children:P?.label??o??""}),p.jsx(S0,{$size:e,$disabled:n,$open:w,children:p.jsx(W,{component:o0,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})}),p.jsx(qt,{children:w&&p.jsx(T0,{ref:v,className:"custom-scrollbar",id:`${S}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":E>=0?`${S}-option-${E}`:void 0,initial:{opacity:0,height:0,scaleY:.8},animate:{opacity:1,height:"auto",scaleY:1},exit:{opacity:0,height:0,scaleY:.8},transition:{duration:.25,ease:[.4,0,.2,1]},onKeyDown:_,children:p.jsx(k0,{ref:b,className:l,children:r.map(($,Y)=>{const K=Y===E;return p.jsx(E0,{id:`${S}-option-${Y}`,className:h,role:"option",$size:e,"aria-selected":a===$.value,$active:K,$disabled:$.disabled,onMouseEnter:()=>{!$.disabled&&w&&k(Y)},onClick:()=>D($),children:$.label},$.value)})})})})]})});Ro.displayName="SelectInput";const A0=C.textarea`
789
+ `,D0={sm:v`
790
+ ${M[16]}
791
+ `,md:v`
792
+ ${M[18]}
793
+ `,lg:v`
794
+ ${M[18]}
795
+ `},Ro=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:s,onChange:i,value:a,name:l,className:d,inputClassName:u,optionsClassName:c,optionClassName:h},m)=>{const g=f.useRef(null),b=f.useRef(null),x=f.useRef(null),y=f.useRef(null),C=f.useId(),[w,A]=f.useState(!1),[P,k]=f.useState(-1),E=r.find($=>$.value===a);f.useEffect(()=>{w&&b.current&&(b.current.focus(),k(S0(a,r)))},[w,r,a]),f.useEffect(()=>{x0(x,P)},[P]),f.useEffect(()=>{if(!w)return;const $=U=>{g.current&&(g.current.contains(U.target)||A(!1))};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[w]),f.useEffect(()=>{w||requestAnimationFrame(()=>{m?.current?.focus?.(),y.current?.focus()})},[w,m]);const D=$=>{$.disabled||(s?.($),i&&i(w0($.value,l)),A(!1),k(-1))},L=$=>{n||($.key==="ArrowDown"||$.key==="ArrowUp"?($.preventDefault(),A(!0)):($.key==="Enter"||$.key===" ")&&($.preventDefault(),A(U=>!U)))},_=$=>{if($.key==="Escape"){$.preventDefault(),A(!1),k(-1);return}if($.key==="ArrowDown"||$.key==="ArrowUp"){$.preventDefault();const U=$.key==="ArrowDown"?1:-1;k(b0(P,U,r))}else if($.key==="Enter"){$.preventDefault();const U=r[P];U&&!U.disabled&&D(U)}else $.key==="Home"?($.preventDefault(),k(rc(r))):$.key==="End"&&($.preventDefault(),k(v0(r)))};return p.jsxs(C0,{ref:g,className:d,children:[l&&p.jsx("input",{type:"hidden",name:l,value:E?.value??""}),p.jsx(k0,{type:"button",$size:e,$hasError:t,$hasValue:!!E,$disabled:n,disabled:n,className:u,ref:$=>{y.current=$,typeof m=="function"?m($):m&&"current"in m&&(m.current=$)},onClick:()=>!n&&A($=>!$),onKeyDown:L,"aria-haspopup":"listbox","aria-expanded":w,"aria-controls":`${C}-listbox`,"aria-invalid":t||void 0,title:E?.label??o??"Select an option",children:E?.label??o??""}),p.jsx(T0,{$size:e,$disabled:n,$open:w,children:p.jsx(W,{component:s0,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})}),p.jsx(Zt,{children:w&&p.jsx(E0,{ref:b,className:"custom-scrollbar",id:`${C}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":P>=0?`${C}-option-${P}`:void 0,initial:{opacity:0,height:0,scaleY:.8},animate:{opacity:1,height:"auto",scaleY:1},exit:{opacity:0,height:0,scaleY:.8},transition:{duration:.25,ease:[.4,0,.2,1]},onKeyDown:_,children:p.jsx(P0,{ref:x,className:c,children:r.map(($,U)=>{const I=U===P;return p.jsx(A0,{id:`${C}-option-${U}`,className:h,role:"option",$size:e,"aria-selected":a===$.value,$active:I,$disabled:$.disabled,onMouseEnter:()=>{!$.disabled&&w&&k(U)},onClick:()=>D($),children:$.label},$.value)})})})})]})});Ro.displayName="SelectInput";const $0=S.textarea`
780
796
  ${ut}
781
- ${({$size:e})=>D0[e]}
797
+ ${({$size:e})=>M0[e]}
782
798
  ${({$hasError:e})=>e&&ht}
783
- ${({$disabled:e})=>e&&Ze}
784
- ${I[20]}
799
+ ${({$disabled:e})=>e&&qe}
800
+ ${M[20]}
785
801
 
786
802
  resize: ${({$resize:e})=>e};
787
803
 
@@ -794,29 +810,179 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
794
810
  color: var(--color-dark-200);
795
811
  opacity: 1;
796
812
  }
797
- `,D0={sm:`
798
- ${I[20]}
813
+ `,M0={sm:`
814
+ ${M[20]}
799
815
  height: 6rem;
800
816
  max-height: 12rem;
801
817
  padding: 1rem 1.25rem;
802
818
  `,md:`
803
- ${I[24]}
819
+ ${M[24]}
804
820
  height: 8rem;
805
821
  max-height: 16rem;
806
822
  padding: 1rem 1.25rem;
807
823
  `,lg:`
808
- ${I[24]}
824
+ ${M[24]}
809
825
  height:12rem;
810
826
  max-height: 20rem;
811
827
  padding: 1rem 1.25rem;
812
- `},_o=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:r="vertical",autoResize:o=!1,minRows:s=3,maxRows:i,className:a,onChange:c,...d},u)=>{const l=h=>{if(o){const m=h.target;m.style.height="auto";const g=m.scrollHeight,v=s*24,b=i?i*24:g;g>b?(m.style.height=`${b}px`,m.style.overflowY="scroll"):(m.style.height=`${Math.max(g,v)}px`,m.style.overflowY="hidden")}c?.(h)};return p.jsx(A0,{ref:u,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:s,className:a,onChange:l,...d})});_o.displayName="TextAreaInput";const $0=C.div`
828
+ `},_o=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:r="vertical",autoResize:o=!1,minRows:s=3,maxRows:i,className:a,onChange:l,...d},u)=>{const c=h=>{if(o){const m=h.target;m.style.height="auto";const g=m.scrollHeight,b=s*24,x=i?i*24:g;g>x?(m.style.height=`${x}px`,m.style.overflowY="scroll"):(m.style.height=`${Math.max(g,b)}px`,m.style.overflowY="hidden")}l?.(h)};return p.jsx($0,{ref:u,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:s,className:a,onChange:c,...d})});_o.displayName="TextAreaInput";const V0=S.div`
813
829
  ${ut}
814
830
  ${({$size:e})=>sn[e??"md"]}
815
- `,M0=C.input`
816
- ${Xn}
817
- `,oc=({size:e="md",leftIcon:t,rightIcon:n=tc,iconSize:r="sm",iconColor:o="currentColor",placeholder:s="Buscar...",onSearch:i,className:a,...c})=>{const d=u=>{i?.(u.target.value)};return p.jsxs($0,{$size:e,className:a,children:[t&&p.jsx(W,{component:t,size:r,color:o}),p.jsx(M0,{placeholder:s,onChange:d,...c}),n?p.jsx(W,{component:n,size:r,color:o}):p.jsx(W,{component:tc,size:r,color:o})]})},V0=C.div`
831
+ `,I0=S.input`
832
+ ${Zn}
833
+ `,oc=({size:e="md",leftIcon:t,rightIcon:n=tc,iconSize:r="sm",iconColor:o="currentColor",placeholder:s="Buscar...",onSearch:i,className:a,...l})=>{const d=u=>{i?.(u.target.value)};return p.jsxs(V0,{$size:e,className:a,children:[t&&p.jsx(W,{component:t,size:r,color:o}),p.jsx(I0,{placeholder:s,onChange:d,...l}),n?p.jsx(W,{component:n,size:r,color:o}):p.jsx(W,{component:tc,size:r,color:o})]})},L0={default:v`
834
+ min-height: 18rem;
835
+ padding: 2rem;
836
+ `,compact:v`
837
+ min-height: 6rem;
838
+ padding: 1rem;
839
+ flex-direction: row;
840
+ `},N0={sm:v`
841
+ ${M[12]}
842
+ `,md:v`
843
+ ${M[16]}
844
+ `,lg:v`
845
+ ${M[20]}
846
+ `},B0=v`
847
+ border: 2px dashed var(--color-main-input-borders);
848
+ background-color: transparent;
849
+ `,O0=v`
850
+ border-color: var(--color-main-blue-primary);
851
+ background-color: var(--color-main-alternative-secondary);
852
+ `,F0=v`
853
+ border: 2px dashed var(--color-main-positive-state);
854
+ background-color: var(--color-green-100);
855
+ `,j0=v`
856
+ border-color: var(--color-main-warning-state);
857
+ background-color: var(--color-red-100);
858
+ `,z0=v`
859
+ border-color: var(--color-dark-200);
860
+ cursor: not-allowed;
861
+ opacity: 0.6;
862
+ `,R0=S.div`
863
+ display: flex;
864
+ flex-direction: column;
865
+ gap: 0.5rem;
866
+ width: 100%;
867
+ ${({$size:e})=>N0[e]}
868
+ `,_0=S.div`
869
+ display: flex;
870
+ flex-direction: column;
871
+ align-items: center;
872
+ justify-content: center;
873
+ gap: 0.75rem;
874
+ border-radius: var(--border-radius-article);
875
+ transition:
876
+ outline-color 0.3s ease-out,
877
+ border-color 0.3s ease-out,
878
+ background-color 0.3s ease-out;
879
+ cursor: pointer;
880
+ text-align: center;
881
+ outline: 2px solid transparent;
882
+ outline-offset: 2px;
883
+
884
+ ${({$variant:e})=>L0[e]}
885
+ ${B0}
886
+
887
+ ${({$disabled:e})=>e?z0:v`
888
+ &:hover {
889
+ ${O0}
890
+ }
891
+ `}
892
+
893
+ ${({$isDragging:e,$disabled:t})=>e&&!t&&F0}
894
+ ${({$hasError:e,$disabled:t})=>e&&!t&&j0}
895
+
896
+ &:focus-visible {
897
+ outline-color: var(--color-main-blue-primary);
898
+ outline-offset: 2px;
899
+ }
900
+ `;S.div`
901
+ font-size: 2.5rem;
902
+ color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
903
+ display: flex;
904
+ align-items: center;
905
+ justify-content: center;
906
+ `;const H0=S.div`
907
+ color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
908
+
909
+ strong {
910
+ color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
911
+ font-weight: 700;
912
+ }
913
+ `,U0=S.div`
914
+ color: var(--color-main-grey);
915
+ ${M[14]}
916
+ margin-top: 0.25rem;
917
+ `,W0=S.div`
918
+ display: flex;
919
+ flex-direction: column;
920
+ gap: 0.5rem;
921
+ margin-top: 1rem;
922
+ `,K0=S.div`
923
+ display: flex;
924
+ align-items: center;
925
+ justify-content: space-between;
926
+ padding: 0.875rem 1rem;
927
+ border: 1px solid var(--color-main-light-borders);
928
+ border-radius: var(--border-radius-outline);
929
+ transition:
930
+ background 0.3s ease-out,
931
+ border-color 0.3s ease-out,
932
+ box-shadow 0.3s ease-out;
933
+ background-color: var(--color-main-white);
934
+ box-shadow: var(--shadow-black-card);
935
+
936
+ &:hover {
937
+ background-color: var(--color-main-alternative-secondary);
938
+ }
939
+ `,Y0=S.div`
940
+ display: flex;
941
+ flex-direction: column;
942
+ gap: 0.25rem;
943
+ flex: 1;
944
+ min-width: 0;
945
+ `,G0=S.div`
946
+ color: var(--color-dark-700);
947
+ font-weight: 500;
948
+ ${M[14]}
949
+ overflow: hidden;
950
+ text-overflow: ellipsis;
951
+ white-space: nowrap;
952
+ `,X0=S.div`
953
+ color: var(--color-dark-400);
954
+ ${M[12]}
955
+ font-weight: 400;
956
+ `,Z0=S.button`
957
+ background: none;
958
+ border: none;
959
+ color: var(--color-dark-400);
960
+ cursor: pointer;
961
+ padding: 0.375rem;
962
+ display: flex;
963
+ align-items: center;
964
+ justify-content: center;
965
+ border-radius: var(--border-radius-button);
966
+ transition:
967
+ outline-color 0.3s ease,
968
+ color 0.3s ease;
969
+
970
+ &:hover:not(:disabled) {
971
+ color: var(--color-main-warning-state);
972
+ }
973
+
974
+ &:focus-visible {
975
+ outline: 2px solid var(--color-main-warning-state);
976
+ outline-offset: 2px;
977
+ }
978
+
979
+ &:disabled {
980
+ cursor: not-allowed;
981
+ opacity: 0.5;
982
+ }
983
+ `,q0=(e,t)=>{const[n,r]=f.useState(!1),o=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!0)},[t]),s=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!1)},[t]),i=f.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]),a=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||(r(!1),e(l.dataTransfer.files))},[t,e]);return{isDragging:n,dragHandlers:{onDragEnter:o,onDragLeave:s,onDragOver:i,onDrop:a}}},J0=({maxFileSize:e,accept:t,multiple:n,onError:r})=>{const[o,s]=f.useState(""),i=f.useCallback(l=>{s(l),r?.(l)},[r]),a=f.useCallback(l=>{if(e&&l.some(d=>d.size>e)){const d=`File size exceeds maximum allowed size of ${Math.round(e/1024)} KB`;return i(d),!1}if(t){const d=t.split(",").map(c=>c.trim());if(l.find(c=>{const h=c.type,m=`.${c.name.split(".").pop()}`;return!d.some(g=>g===h||g===m)})){const c=`File type not accepted. Allowed: ${t}`;return i(c),!1}}return!n&&l.length>1?(i("Only one file is allowed"),!1):(s(""),!0)},[e,t,n,i]);return{error:o,validateFiles:a,clearError:()=>s("")}},ic=({files:e,onRemove:t,disabled:n})=>{const r=o=>{const s=["Bytes","KB","MB"],i=Math.floor(Math.log(o)/Math.log(1024));return`${(o/Math.pow(1024,i)).toFixed(2)} ${s[i]}`};return e.length===0?null:p.jsx(W0,{children:e.map((o,s)=>p.jsxs(K0,{children:[p.jsxs(Y0,{children:[p.jsx(G0,{children:o.name}),p.jsx(X0,{children:r(o.size)})]}),p.jsx(Z0,{type:"button",onClick:()=>t(s),"aria-label":`Remove ${o.name}`,disabled:n,children:p.jsx(Ql,{})})]},`${o.name}-${s}`))})},Q0=({variant:e="default",multiple:t=!1,maxFileSize:n=10*1024*1024,accept:r="image/*,application/pdf",helperText:o="Upload files here",value:s,defaultValue:i,onChange:a,onError:l,onFileRemove:d,onFilesSelected:u,disabled:c=!1,hasError:h=!1,errorMessage:m="",className:g="",size:b="md"})=>{const x=s!==void 0,[y,C]=f.useState(i||[]),w=x?s:y,{error:A,validateFiles:P,clearError:k}=J0({maxFileSize:n,accept:r,multiple:t,onError:l}),E=(I,he)=>{if(!I||I.length===0)return;const G=Array.from(I);if(!P(G))return;const B=t?[...w,...G]:G;x||C(B),a?.(B,he),u?.(B)},D=I=>{const he=w[I],G=w.filter((B,N)=>N!==I);x||C(G),d?.(he,I),a?.(G),u?.(G),G.length===0&&k()},{isDragging:L,dragHandlers:_}=q0(E,c),$=h||!!A,U=m||A;return p.jsxs(R0,{$size:b,className:g,children:[p.jsxs("label",{"aria-label":"File upload area",children:[p.jsxs(_0,{$variant:e,$isDragging:L,$hasError:$,$disabled:c,role:"button",tabIndex:c?-1:0,"aria-disabled":c,onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),I.currentTarget.querySelector("input")?.click())},..._,children:[p.jsx(W,{component:f0,size:"lg",color:c?"var(--color-dark-200)":"var(--color-main-blue-primary)"}),p.jsxs(H0,{$disabled:c,children:[p.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),o&&!$&&p.jsx(U0,{children:o})]}),p.jsx("input",{type:"file",multiple:t,accept:r,disabled:c,onChange:I=>E(I.target.files,I.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),$&&U&&p.jsx(Gn,{size:"sm",children:U}),p.jsx(ic,{files:w,onRemove:D,disabled:c})]})},ey=S.div`
818
984
  position: relative;
819
- `,I0=C.input`
985
+ `,ty=S.input`
820
986
  position: absolute;
821
987
  height: 1.5rem;
822
988
  width: 1.5rem;
@@ -833,7 +999,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
833
999
  outline-color: var(--color-main-orange-primary);
834
1000
  outline-offset: 2px;
835
1001
  }
836
- `,L0=C.div`
1002
+ `,ny=S.div`
837
1003
  height: 1.5rem;
838
1004
  width: 1.5rem;
839
1005
  border: 2px solid;
@@ -853,32 +1019,32 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
853
1019
  }
854
1020
 
855
1021
  ${({$hasError:e})=>e&&ht}
856
- ${({$disabled:e})=>e&&Ze}
857
- ${({$checked:e})=>e&&N0}
858
- `,N0=x`
1022
+ ${({$disabled:e})=>e&&qe}
1023
+ ${({$checked:e})=>e&&ry}
1024
+ `,ry=v`
859
1025
  background-color: var(--color-main-orange-primary);
860
1026
  border-color: var(--color-main-orange-primary);
861
- `,B0=C.svg`
1027
+ `,oy=S.svg`
862
1028
  height: 1.5rem;
863
1029
  width: 1.5rem;
864
1030
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
865
1031
  fill: none;
866
1032
  stroke: currentColor;
867
- `,O0=C.span`
1033
+ `,iy=S.span`
868
1034
  display: block;
869
1035
  width: 60%;
870
1036
  height: 2px;
871
1037
  background-color: white;
872
1038
  border-radius: 1px;
873
- `,Ho=f.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:s,checkboxClassName:i,...a},c)=>{const d=f.useId(),u=a.id??d,l=!!n,{size:h,...m}=a,g=f.useRef(null),v=f.useCallback(b=>{if(g.current=b,!!c)if(typeof c=="function")try{c(b)}catch{}else c.current=b},[c]);return f.useEffect(()=>{g.current&&(g.current.indeterminate=!!t)},[t]),p.jsxs(V0,{className:s,children:[p.jsx(I0,{ref:v,type:"checkbox",checked:l||!1,disabled:r,onChange:o,id:u,name:m.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":l?"true":"false",...m}),p.jsxs(L0,{$checked:!!l||!!t,$hasError:e,$disabled:r,className:i,children:[l&&!t&&p.jsx(B0,{$disabled:r,viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}),t&&p.jsx(O0,{})]})]})});Ho.displayName="CheckboxInput";const ic=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:s,onClick:i,...a})=>{const c=d=>{n||(o&&o(),i&&i(d))};return p.jsx(Gn,{size:t,disabled:n,htmlFor:r,onClick:c,className:s,...a,children:e})},F0=C.section`
1039
+ `,Ho=f.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:s,checkboxClassName:i,...a},l)=>{const d=f.useId(),u=a.id??d,c=!!n,{size:h,...m}=a,g=f.useRef(null),b=f.useCallback(x=>{if(g.current=x,!!l)if(typeof l=="function")try{l(x)}catch{}else l.current=x},[l]);return f.useEffect(()=>{g.current&&(g.current.indeterminate=!!t)},[t]),p.jsxs(ey,{className:s,children:[p.jsx(ty,{ref:b,type:"checkbox",checked:c||!1,disabled:r,onChange:o,id:u,name:m.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":c?"true":"false",...m}),p.jsxs(ny,{$checked:!!c||!!t,$hasError:e,$disabled:r,className:i,children:[c&&!t&&p.jsx(oy,{$disabled:r,viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}),t&&p.jsx(iy,{})]})]})});Ho.displayName="CheckboxInput";const sc=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:s,onClick:i,...a})=>{const l=d=>{n||(o&&o(),i&&i(d))};return p.jsx(Xn,{size:t,disabled:n,htmlFor:r,onClick:l,className:s,...a,children:e})},sy=S.section`
874
1040
  display: flex;
875
1041
  align-items: center;
876
1042
  justify-content: center;
877
1043
  gap: 1rem;
878
- `,Zn=f.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:s=!1,onChange:i,onLabelClick:a,className:c,checkboxClassName:d,labelClassName:u,...l},h)=>{const m=f.useId(),g=l.id??m;return p.jsxs(F0,{className:c,children:[p.jsx(Ho,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:s,onChange:i,checkboxClassName:d,id:g,...l}),t&&p.jsx(ic,{size:e,disabled:s,htmlFor:g,onLabelClick:a,className:u,children:t})]})});Zn.displayName="Checkbox";const j0=C.div`
1044
+ `,Jn=f.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:s=!1,onChange:i,onLabelClick:a,className:l,checkboxClassName:d,labelClassName:u,...c},h)=>{const m=f.useId(),g=c.id??m;return p.jsxs(sy,{className:l,children:[p.jsx(Ho,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:s,onChange:i,checkboxClassName:d,id:g,...c}),t&&p.jsx(sc,{size:e,disabled:s,htmlFor:g,onLabelClick:a,className:u,children:t})]})});Jn.displayName="Checkbox";const ay=S.div`
879
1045
  position: relative;
880
1046
  display: inline-block;
881
- `,z0=C.input`
1047
+ `,ly=S.input`
882
1048
  ${ut}
883
1049
  text-align: center;
884
1050
  padding: 0;
@@ -892,15 +1058,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
892
1058
  &[type='number'] {
893
1059
  -moz-appearance: textfield;
894
1060
  }
895
- ${({$size:e})=>_0[e]}
896
- ${({$variant:e})=>e&&R0[e??"outlined"]}
1061
+ ${({$size:e})=>dy[e]}
1062
+ ${({$variant:e})=>e&&cy[e??"outlined"]}
897
1063
  ${({$hasError:e})=>e&&ht}
898
- ${({$disabled:e})=>e&&Ze}
1064
+ ${({$disabled:e})=>e&&qe}
899
1065
 
900
1066
  &:focus {
901
1067
  border: 2px solid var(--color-main-blue-primary);
902
1068
  }
903
- `,R0={outlined:`
1069
+ `,cy={outlined:`
904
1070
  background-color: var(--color-main-white);
905
1071
  border: 2px solid var(--color-main-input-borders);
906
1072
 
@@ -919,28 +1085,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
919
1085
  background-color: var(--color-main-white);
920
1086
  border: 2px solid var(--color-main-blue-primary);
921
1087
  }
922
- `},_0={sm:`
1088
+ `},dy={sm:`
923
1089
  padding: 0.375rem;
924
1090
  width: 2.5rem;
925
1091
  height: 2.5rem;
926
- ${I[24]}
1092
+ ${M[24]}
927
1093
  `,md:`
928
1094
  padding: 0.625rem;
929
1095
  width: 3rem;
930
1096
  height: 3.5rem;
931
- ${I[30]}
1097
+ ${M[30]}
932
1098
  `,lg:`
933
1099
  padding: 0.75rem;
934
1100
  width: 3.5rem;
935
1101
  height: 4rem;
936
- ${I[40]}
937
- `},Uo=f.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:s=1,type:i="text",...a},c)=>{const d=f.useId(),u=a.id??d;return p.jsx(j0,{children:p.jsx(z0,{ref:c,$size:e,$hasError:t,$disabled:r,$variant:n,className:o,maxLength:s,type:i,disabled:r,id:u,"aria-invalid":t||void 0,"aria-disabled":r||void 0,...a})})});Uo.displayName="PinInput";const sc=(e,t,n,r,o,s,i="text",a,c)=>{const d=e.target.value;if(d.length>1)return;const u=s??o.length;if(i==="number"&&d&&!/^\d$/.test(d))return;const l=[...n];l[t]=d,r(l);const h=l.join("");a?.(h),d&&t<s-1&&o[t+1].current?.focus(),l.every(m=>m!=="")&&l.length>=u&&c?.(h)},ac=(e,t,n,r,o,s)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(o){r[t-1].current?.focus();const i=[...n];i[t-1]="",o(i),s?.(i.join(""))}return}if(t>0&&(r[t-1].current?.focus(),o)){const i=[...n];i[t-1]="",o(i),s?.(i.join(""))}}e.key==="ArrowLeft"&&t>0&&r[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<r.length-1&&r[t+1]?.current?.focus()},lc=(e,t,n,r,o,s,i="text",a,c)=>{e.preventDefault();const d=e.clipboardData.getData("text");if(!d)return;const u=s??o.length,l=[...n];for(let v=0;v<d.length;v++){const b=t+v;if(b>=u)break;const y=d[v];i==="number"&&!/^\d$/.test(y)||(l[b]=y)}r(l),a?.(l.join(""));const h=l.findIndex(v=>v===""),m=h!==-1?Math.min(Math.max(h,t),u-1):u-1;o[m].current?.focus();const g=l.join("");l.every(v=>v!=="")&&l.length>=u&&c?.(g)},cc=e=>Array(e).fill(null).map(()=>f.createRef()),H0=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),U0=C.div`
1102
+ ${M[40]}
1103
+ `},Uo=f.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:s=1,type:i="text",...a},l)=>{const d=f.useId(),u=a.id??d;return p.jsx(ay,{children:p.jsx(ly,{ref:l,$size:e,$hasError:t,$disabled:r,$variant:n,className:o,maxLength:s,type:i,disabled:r,id:u,"aria-invalid":t||void 0,"aria-disabled":r||void 0,...a})})});Uo.displayName="PinInput";const ac=(e,t,n,r,o,s,i="text",a,l)=>{const d=e.target.value;if(d.length>1)return;const u=s??o.length;if(i==="number"&&d&&!/^\d$/.test(d))return;const c=[...n];c[t]=d,r(c);const h=c.join("");a?.(h),d&&t<s-1&&o[t+1].current?.focus(),c.every(m=>m!=="")&&c.length>=u&&l?.(h)},lc=(e,t,n,r,o,s)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(o){r[t-1].current?.focus();const i=[...n];i[t-1]="",o(i),s?.(i.join(""))}return}if(t>0&&(r[t-1].current?.focus(),o)){const i=[...n];i[t-1]="",o(i),s?.(i.join(""))}}e.key==="ArrowLeft"&&t>0&&r[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<r.length-1&&r[t+1]?.current?.focus()},cc=(e,t,n,r,o,s,i="text",a,l)=>{e.preventDefault();const d=e.clipboardData.getData("text");if(!d)return;const u=s??o.length,c=[...n];for(let b=0;b<d.length;b++){const x=t+b;if(x>=u)break;const y=d[b];i==="number"&&!/^\d$/.test(y)||(c[x]=y)}r(c),a?.(c.join(""));const h=c.findIndex(b=>b===""),m=h!==-1?Math.min(Math.max(h,t),u-1):u-1;o[m].current?.focus();const g=c.join("");c.every(b=>b!=="")&&c.length>=u&&l?.(g)},dc=e=>Array(e).fill(null).map(()=>f.createRef()),uy=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),hy=S.div`
938
1104
  display: flex;
939
1105
  gap: 8px;
940
1106
  align-items: center;
941
- `,Wo=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:s,onComplete:i,className:a,pinInputClassName:c})=>{const[d,u]=f.useState(Array(e).fill("")),l=f.useMemo(()=>cc(e),[e]);return p.jsx(U0,{className:a,children:Array.from({length:e},(h,m)=>p.jsx(Uo,{className:c,size:t,variant:n,hasError:r,value:d[m],onChange:g=>sc(g,m,d,u,l,e,o,s,i),onKeyDown:g=>ac(g,m,d,l,u,s),onPaste:g=>lc(g,m,d,u,l,e,o,s,i),ref:l[m]},m))})};Wo.displayName="PinInputGroup";const W0=C.div`
1107
+ `,Wo=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:s,onComplete:i,className:a,pinInputClassName:l})=>{const[d,u]=f.useState(Array(e).fill("")),c=f.useMemo(()=>dc(e),[e]);return p.jsx(hy,{className:a,children:Array.from({length:e},(h,m)=>p.jsx(Uo,{className:l,size:t,variant:n,hasError:r,value:d[m],onChange:g=>ac(g,m,d,u,c,e,o,s,i),onKeyDown:g=>lc(g,m,d,c,u,s),onPaste:g=>cc(g,m,d,u,c,e,o,s,i),ref:c[m]},m))})};Wo.displayName="PinInputGroup";const fy=S.div`
942
1108
  position: relative;
943
- `,K0=C.input`
1109
+ `,py=S.input`
944
1110
  position: absolute;
945
1111
  height: 1.5rem;
946
1112
  width: 1.5rem;
@@ -958,9 +1124,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
958
1124
  outline-color: var(--color-main-orange-primary);
959
1125
  outline-offset: 2px;
960
1126
  }
961
- `,Y0=x`
1127
+ `,my=v`
962
1128
  border-color: var(--color-main-orange-primary);
963
- `,G0=C.div`
1129
+ `,gy=S.div`
964
1130
  height: 1.5rem;
965
1131
  width: 1.5rem;
966
1132
  border: 2px solid var(--color-main-input-borders);
@@ -978,11 +1144,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
978
1144
  border-color: var(--color-main-warning-state);
979
1145
  `}
980
1146
  ${({$disabled:e})=>e&&`
981
- ${Ze}
1147
+ ${qe}
982
1148
  border: 2px solid var(--color-dark-200) !important;
983
1149
  `}
984
- ${({$checked:e})=>e&&Y0}
985
- `,X0=C.span`
1150
+ ${({$checked:e})=>e&&my}
1151
+ `,yy=S.span`
986
1152
  display: block;
987
1153
  height: 0.625rem;
988
1154
  width: 0.625rem;
@@ -991,21 +1157,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
991
1157
  background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
992
1158
  opacity: ${({$checked:e})=>e?1:0};
993
1159
  transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
994
- `,Ko=f.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:s,...i},a)=>{const c=f.useId(),d=i.id??c,u=!!t,{size:l,...h}=i;return p.jsxs(W0,{className:o,children:[p.jsx(K0,{ref:a,type:"radio",id:d,checked:u||!1,disabled:n,onChange:r,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":u?"true":"false",...h}),p.jsx(G0,{$checked:!!u,$hasError:e,$disabled:n,className:s,children:p.jsx(X0,{$disabled:n,$checked:u})})]})});Ko.displayName="RadioInputDot";const Yo=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...s})=>p.jsx(Gn,{className:n,htmlFor:t,size:o,disabled:r,...s,children:e});Yo.displayName="RadioInputLabel";const q0=C.section`
1160
+ `,Ko=f.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:s,...i},a)=>{const l=f.useId(),d=i.id??l,u=!!t,{size:c,...h}=i;return p.jsxs(fy,{className:o,children:[p.jsx(py,{ref:a,type:"radio",id:d,checked:u||!1,disabled:n,onChange:r,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":u?"true":"false",...h}),p.jsx(gy,{$checked:!!u,$hasError:e,$disabled:n,className:s,children:p.jsx(yy,{$disabled:n,$checked:u})})]})});Ko.displayName="RadioInputDot";const Yo=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...s})=>p.jsx(Xn,{className:n,htmlFor:t,size:o,disabled:r,...s,children:e});Yo.displayName="RadioInputLabel";const vy=S.section`
995
1161
  display: flex;
996
1162
  align-items: center;
997
1163
  justify-content: center;
998
1164
  gap: 1rem;
999
- `,Go=f.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:s,className:i,dotClassName:a,labelClassName:c,...d},u)=>{const l=f.useId(),h=d.id??l;return p.jsxs(q0,{className:i,children:[p.jsx(Ko,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:s,dotClassName:a,id:h,...d}),t&&p.jsx(Yo,{size:e,disabled:o,htmlFor:h,className:c,children:t})]})});Go.displayName="RadioInput";const dc=C.div`
1165
+ `,Go=f.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:s,className:i,dotClassName:a,labelClassName:l,...d},u)=>{const c=f.useId(),h=d.id??c;return p.jsxs(vy,{className:i,children:[p.jsx(Ko,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:s,dotClassName:a,id:h,...d}),t&&p.jsx(Yo,{size:e,disabled:o,htmlFor:h,className:l,children:t})]})});Go.displayName="RadioInput";const uc=S.div`
1000
1166
  display: flex;
1001
1167
  flex-direction: column;
1002
1168
  gap: 0.5rem;
1003
1169
  width: 100%;
1004
- `,Z0=C.div`
1170
+ `,by=S.div`
1005
1171
  display: flex;
1006
1172
  flex-direction: column;
1007
1173
  gap: 0.75rem;
1008
- `,J0=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:s,disabled:i=!1,required:a=!1,options:c=[],checkboxLabel:d,radioName:u,pinLength:l=6,pinType:h="number",className:m,inputClassName:g,labelClassName:v,messageErrorClassName:b,leftIcon:y,rightIcon:S,iconSize:w,iconColor:A,onOptionSelect:E,onRadioChange:k,onPinComplete:P,onChange:D,...L})=>{const[_,$,Y]=Gc.useField(t),K=!!($.error&&($.touched||$.value)),Ee=K?$.error:void 0,re=e?.toString?.()||t,j={required:a||void 0,"aria-required":a||void 0,"aria-invalid":K||void 0,"aria-describedby":K?`${re}-error`:void 0},N=V=>{if(D)return D(V);_.onChange(V)};let R;switch(r){case"textarea":{const V=z=>{D?D(z):_.onChange(z)};R=p.jsx(_o,{id:re,name:t,className:g,hasError:K,disabled:i,value:_.value??"",size:o,placeholder:s,onChange:V,...L,...j});break}case"select":{R=p.jsx(Ro,{id:re,name:t,className:g,hasError:K,disabled:i,size:o,value:_.value??"",onChange:V=>{_.onChange(V);const z=c.find(oe=>String(oe.value)===V.target.value);z&&E?.(z)},options:c,placeholder:s||"Selecciona una opción",...L,...j});break}case"checkbox":{R=p.jsx(Zn,{id:re,name:t,className:g,hasError:K,disabled:i,size:o,checked:!!_.value,label:d,onChange:V=>{Y.setValue(V.target.checked)},...L,...j});break}case"radio":{const V=c;R=p.jsx(Z0,{children:V.map(z=>p.jsx(Go,{name:u||t,value:z.value,label:z.label,size:o,hasError:K,disabled:i,checked:_.value===z.value,onChange:oe=>{const ie=oe.target.value,F=typeof z.value=="number"?Number(ie):ie;Y.setValue(F),k?.(oe)},...j},z.value))});break}case"pin":{R=p.jsx(Wo,{length:l,type:h,size:o,hasError:K,onChange:V=>Y.setValue(V),onComplete:V=>{Y.setValue(V),P?.(V)},...L,...j});break}case"password":{const{rightIcon:V,...z}=L;R=p.jsx(nc,{id:re,name:t,className:g,hasError:K,disabled:i,size:o,placeholder:s,leftIcon:y,iconSize:w,iconColor:A,onChange:N,...z,...j});break}case"search":{R=p.jsx(oc,{className:g,size:o,placeholder:s,leftIcon:y,rightIcon:S,iconSize:w,iconColor:A,onSearch:L.onSearch,...j});break}default:R=p.jsx(zo,{id:re,name:t,className:g,hasError:K,disabled:i,size:o,placeholder:s,type:["text","email","number","tel","url","date","date","datetime-local","time"].includes(r)?r:"text",leftIcon:y,rightIcon:S,iconSize:w,iconColor:A,value:_.value??"",onChange:N,...L,...j})}return r==="checkbox"?p.jsxs(dc,{className:m,children:[R,K&&p.jsx(jo,{id:`${re}-error`,size:o,className:b,children:Ee})]}):p.jsxs(dc,{className:m,children:[n&&p.jsx(Gn,{htmlFor:re,size:o,required:a,disabled:i,className:v,children:n}),R,K&&p.jsx(jo,{id:`${re}-error`,size:o,className:b,children:Ee})]})},uc={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},Xo={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},Q0={fromBottom:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2,ease:"easeInOut"}},fromTop:{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.2,ease:"easeInOut"}},fromLeft:{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2,ease:"easeInOut"}},fromRight:{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.2,ease:"easeInOut"}}},hc={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},ey=C(Re.div)`
1174
+ `,wy=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:s,disabled:i=!1,required:a=!1,options:l=[],checkboxLabel:d,radioName:u,pinLength:c=6,pinType:h="number",className:m,inputClassName:g,labelClassName:b,messageErrorClassName:x,leftIcon:y,rightIcon:C,iconSize:w,iconColor:A,onOptionSelect:P,onRadioChange:k,onPinComplete:E,onChange:D,...L})=>{const[_,$,U]=Zc.useField(t),I=!!($.error&&($.touched||$.value)),he=I?$.error:void 0,G=e?.toString?.()||t,B={required:a||void 0,"aria-required":a||void 0,"aria-invalid":I||void 0,"aria-describedby":I?`${G}-error`:void 0},N=O=>{if(D)return D(O);_.onChange(O)};let H;switch(r){case"textarea":{const O=R=>{D?D(R):_.onChange(R)};H=p.jsx(_o,{id:G,name:t,className:g,hasError:I,disabled:i,value:_.value??"",size:o,placeholder:s,onChange:O,...L,...B});break}case"select":{H=p.jsx(Ro,{id:G,name:t,className:g,hasError:I,disabled:i,size:o,value:_.value??"",onChange:O=>{_.onChange(O);const R=l.find(oe=>String(oe.value)===O.target.value);R&&P?.(R)},options:l,placeholder:s||"Selecciona una opción",...L,...B});break}case"checkbox":{H=p.jsx(Jn,{id:G,name:t,className:g,hasError:I,disabled:i,size:o,checked:!!_.value,label:d,onChange:O=>{U.setValue(O.target.checked)},...L,...B});break}case"radio":{const O=l;H=p.jsx(by,{children:O.map(R=>p.jsx(Go,{name:u||t,value:R.value,label:R.label,size:o,hasError:I,disabled:i,checked:_.value===R.value,onChange:oe=>{const ie=oe.target.value,z=typeof R.value=="number"?Number(ie):ie;U.setValue(z),k?.(oe)},...B},R.value))});break}case"pin":{H=p.jsx(Wo,{length:c,type:h,size:o,hasError:I,onChange:O=>U.setValue(O),onComplete:O=>{U.setValue(O),E?.(O)},...L,...B});break}case"password":{const{rightIcon:O,...R}=L;H=p.jsx(nc,{id:G,name:t,className:g,hasError:I,disabled:i,size:o,placeholder:s,leftIcon:y,iconSize:w,iconColor:A,onChange:N,...R,...B});break}case"search":{H=p.jsx(oc,{className:g,size:o,placeholder:s,leftIcon:y,rightIcon:C,iconSize:w,iconColor:A,onSearch:L.onSearch,...B});break}default:H=p.jsx(zo,{id:G,name:t,className:g,hasError:I,disabled:i,size:o,placeholder:s,type:["text","email","number","tel","url","date","date","datetime-local","time"].includes(r)?r:"text",leftIcon:y,rightIcon:C,iconSize:w,iconColor:A,value:_.value??"",onChange:N,...L,...B})}return r==="checkbox"?p.jsxs(uc,{className:m,children:[H,I&&p.jsx(Gn,{id:`${G}-error`,size:o,className:x,children:he})]}):p.jsxs(uc,{className:m,children:[n&&p.jsx(Xn,{htmlFor:G,size:o,required:a,disabled:i,className:b,children:n}),H,I&&p.jsx(Gn,{id:`${G}-error`,size:o,className:x,children:he})]})},hc={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},Xo={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},xy={fromBottom:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2,ease:"easeInOut"}},fromTop:{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.2,ease:"easeInOut"}},fromLeft:{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2,ease:"easeInOut"}},fromRight:{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.2,ease:"easeInOut"}}},fc={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},Sy=S(Re.div)`
1009
1175
  position: fixed;
1010
1176
  inset: 0;
1011
1177
  z-index: 50;
@@ -1019,7 +1185,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1019
1185
  @media (max-width: 768px) {
1020
1186
  padding: 0.5rem;
1021
1187
  }
1022
- `,ty=C(Re.div)`
1188
+ `,Cy=S(Re.div)`
1023
1189
  position: relative;
1024
1190
  display: flex;
1025
1191
  flex-direction: column;
@@ -1046,7 +1212,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1046
1212
  outline: none;
1047
1213
  box-shadow: var(--shadow-hover-black-card);
1048
1214
  }
1049
- `,ny=C.button`
1215
+ `,Ty=S.button`
1050
1216
  position: absolute;
1051
1217
  top: 1rem;
1052
1218
  right: 1rem;
@@ -1065,7 +1231,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1065
1231
  transform: scale(1.1);
1066
1232
  outline: none;
1067
1233
  }
1068
- `,fc=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:s=!1,size:i="md",fullScreen:a=!1,closeOnEsc:c=!0,ariaLabel:d,ariaLabelledBy:u,ariaDescribedBy:l})=>{const h=f.useRef(null),m=f.useRef(null),g=b=>{o&&b.target===b.currentTarget&&t()};f.useEffect(()=>{const b=y=>{c&&y.key==="Escape"&&t()};return e?(document.addEventListener("keydown",b),document.body.style.overflow="hidden"):document.body.style.overflow="",()=>{document.removeEventListener("keydown",b),document.body.style.overflow=""}},[e,t,c]),f.useEffect(()=>{if(!e)return;m.current=document.activeElement;const b=h.current,y=()=>{b&&(b.hasAttribute("tabindex")||b.setAttribute("tabindex","-1"),b.focus())},S=window.setTimeout(y,0);function w(E){const k=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'];return Array.from(E.querySelectorAll(k.join(","))).filter(P=>!!(P.offsetWidth||P.offsetHeight||P.getClientRects().length))}const A=E=>{if(E.key!=="Tab"||!b)return;const k=w(b);if(k.length===0){E.preventDefault(),b.focus();return}const P=k[0],D=k[k.length-1],L=document.activeElement;!E.shiftKey&&L===D?(E.preventDefault(),P.focus()):E.shiftKey&&L===P&&(E.preventDefault(),D.focus())};return document.addEventListener("keydown",A),()=>{window.clearTimeout(S),document.removeEventListener("keydown",A),m.current&&m.current.focus()}},[e]);const v=p.jsx(qt,{children:e&&p.jsx(ey,{...Xo,onClick:g,children:p.jsxs(ty,{...uc,ref:h,$size:i,$fullScreen:a,className:r,onClick:b=>b.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":d,"aria-labelledby":d?void 0:u,"aria-describedby":l,children:[s&&p.jsx(ny,{className:`${qn} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:p.jsx(W,{component:i0,size:"sm"})}),n]})})});return typeof document>"u"?v:ci.createPortal(v,document.body)},ry=C.div`
1234
+ `,pc=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:s=!1,size:i="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:d,ariaLabelledBy:u,ariaDescribedBy:c})=>{const h=f.useRef(null),m=f.useRef(null),g=x=>{o&&x.target===x.currentTarget&&t()};f.useEffect(()=>{const x=y=>{l&&y.key==="Escape"&&t()};return e?(document.addEventListener("keydown",x),document.body.style.overflow="hidden"):document.body.style.overflow="",()=>{document.removeEventListener("keydown",x),document.body.style.overflow=""}},[e,t,l]),f.useEffect(()=>{if(!e)return;m.current=document.activeElement;const x=h.current,y=()=>{x&&(x.hasAttribute("tabindex")||x.setAttribute("tabindex","-1"),x.focus())},C=window.setTimeout(y,0);function w(P){const k=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'];return Array.from(P.querySelectorAll(k.join(","))).filter(E=>!!(E.offsetWidth||E.offsetHeight||E.getClientRects().length))}const A=P=>{if(P.key!=="Tab"||!x)return;const k=w(x);if(k.length===0){P.preventDefault(),x.focus();return}const E=k[0],D=k[k.length-1],L=document.activeElement;!P.shiftKey&&L===D?(P.preventDefault(),E.focus()):P.shiftKey&&L===E&&(P.preventDefault(),D.focus())};return document.addEventListener("keydown",A),()=>{window.clearTimeout(C),document.removeEventListener("keydown",A),m.current&&m.current.focus()}},[e]);const b=p.jsx(Zt,{children:e&&p.jsx(Sy,{...Xo,onClick:g,children:p.jsxs(Cy,{...hc,ref:h,$size:i,$fullScreen:a,className:r,onClick:x=>x.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":d,"aria-labelledby":d?void 0:u,"aria-describedby":c,children:[s&&p.jsx(Ty,{className:`${qn} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:p.jsx(W,{component:Ql,size:"sm"})}),n]})})});return typeof document>"u"?b:li.createPortal(b,document.body)},ky=S.div`
1069
1235
  display: flex;
1070
1236
  align-items: center;
1071
1237
  justify-content: space-between;
@@ -1098,7 +1264,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1098
1264
  flex-shrink: 0;
1099
1265
  margin-left: auto;
1100
1266
  }
1101
- `,pc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>p.jsx(ry,{$showDivider:e,$variant:t,className:r,...o,children:n}),oy=C.div`
1267
+ `,mc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>p.jsx(ky,{$showDivider:e,$variant:t,className:r,...o,children:n}),Ey=S.div`
1102
1268
  position: relative;
1103
1269
  display: flex;
1104
1270
  flex-direction: column;
@@ -1111,7 +1277,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1111
1277
  ${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
1112
1278
 
1113
1279
  ${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
1114
- `,mc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...s})=>p.jsx(oy,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...s,children:e}),iy=C.div`
1280
+ `,gc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...s})=>p.jsx(Ey,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...s,children:e}),Py=S.div`
1115
1281
  display: flex;
1116
1282
  align-items: center;
1117
1283
  width: 100%;
@@ -1127,13 +1293,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1127
1293
  bottom: 0;
1128
1294
  background: var(--color-main-white);
1129
1295
  `}
1130
- `,gc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:s,...i})=>p.jsx(iy,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:s,...i,children:o}),sy=({isOpen:e,onAccept:t,onCancel:n,title:r,subtitle:o,content:s,bodyFooter:i,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:c="Accept",cancelLabel:d="Cancel",size:u="md",fullScreen:l=!1,showCloseButton:h=!0,closeOnBackdropClick:m=!1,containerClassName:g,headerClassName:v,bodyClassName:b,footerClassName:y,initiallyConfirmed:S=!1,onConfirmChange:w})=>{const[A,E]=f.useState(S);f.useEffect(()=>{e||E(S)},[e,S]);const k=P=>{E(P),w?.(P)};return p.jsxs(fc,{isOpen:e,onClose:n,size:u,fullScreen:l,showCloseButton:h,closeOnBackdropClick:m,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${g} !h-fit !max-w-[60rem]`,children:[p.jsx(pc,{showDivider:!0,className:v,children:p.jsx(An,{id:"tac-title",size:20,children:r})}),p.jsxs(mc,{padded:!0,showBottomDivider:!0,className:b,children:[o&&p.jsx(We,{id:"tac-subtitle",size:16,children:o}),s,i]}),p.jsxs(gc,{showDivider:!0,align:"space-between",className:y,children:[p.jsx(Zn,{label:a,checked:A,onChange:P=>k(P.target.checked)}),p.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[p.jsx(Oo,{variant:"secondary",onClick:n,children:d}),p.jsx(Oo,{variant:"primary",onClick:t,disabled:!A,children:c})]})]})]})},qo=f.createContext(void 0),yc=({children:e})=>{const[t,n]=f.useState(!1),[r,o]=f.useState(!1);return p.jsx(qo.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},Zo=()=>{const e=f.useContext(qo);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},Jo=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),ay=x`
1296
+ `,yc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:s,...i})=>p.jsx(Py,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:s,...i,children:o}),Ay=({isOpen:e,onAccept:t,onCancel:n,title:r,subtitle:o,content:s,bodyFooter:i,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:l="Accept",cancelLabel:d="Cancel",size:u="md",fullScreen:c=!1,showCloseButton:h=!0,closeOnBackdropClick:m=!1,containerClassName:g,headerClassName:b,bodyClassName:x,footerClassName:y,initiallyConfirmed:C=!1,onConfirmChange:w})=>{const[A,P]=f.useState(C);f.useEffect(()=>{e||P(C)},[e,C]);const k=E=>{P(E),w?.(E)};return p.jsxs(pc,{isOpen:e,onClose:n,size:u,fullScreen:c,showCloseButton:h,closeOnBackdropClick:m,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${g} !h-fit !max-w-[60rem]`,children:[p.jsx(mc,{showDivider:!0,className:b,children:p.jsx(An,{id:"tac-title",size:20,children:r})}),p.jsxs(gc,{padded:!0,showBottomDivider:!0,className:x,children:[o&&p.jsx(We,{id:"tac-subtitle",size:16,children:o}),s,i]}),p.jsxs(yc,{showDivider:!0,align:"space-between",className:y,children:[p.jsx(Jn,{label:a,checked:A,onChange:E=>k(E.target.checked)}),p.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[p.jsx(Fo,{variant:"secondary",onClick:n,children:d}),p.jsx(Fo,{variant:"primary",onClick:t,disabled:!A,children:l})]})]})]})},Zo=f.createContext(void 0),vc=({children:e})=>{const[t,n]=f.useState(!1),[r,o]=f.useState(!1);return p.jsx(Zo.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},qo=()=>{const e=f.useContext(Zo);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},Jo=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),Dy=v`
1131
1297
  display: flex;
1132
1298
  align-items: center;
1133
1299
  justify-content: center;
1134
1300
  flex-shrink: 0;
1135
1301
  user-select: none;
1136
- `,vc=`
1302
+ `,bc=`
1137
1303
  width: 100%;
1138
1304
  display: flex;
1139
1305
  align-items: center;
@@ -1150,8 +1316,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1150
1316
  outline-color: var(--color-main-blue-primary);
1151
1317
  outline-offset: -2px;
1152
1318
  }
1153
- `,ly=C.button`
1154
- ${vc}
1319
+ `,$y=S.button`
1320
+ ${bc}
1155
1321
 
1156
1322
  // Level-based padding
1157
1323
  padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
@@ -1170,8 +1336,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1170
1336
  }
1171
1337
 
1172
1338
  ${({$collapsed:e})=>e?"justify-content: center;":""}
1173
- `,cy=C.button`
1174
- ${vc}
1339
+ `,My=S.button`
1340
+ ${bc}
1175
1341
 
1176
1342
  // Level-based padding
1177
1343
  padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
@@ -1190,36 +1356,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1190
1356
  }
1191
1357
 
1192
1358
  ${({$collapsed:e})=>e?"justify-content: center;":""}
1193
- `,dy=C.span`
1359
+ `,Vy=S.span`
1194
1360
  display: inline-flex;
1195
1361
  align-items: center;
1196
1362
  gap: 0.75rem;
1197
1363
  min-width: 0;
1198
- `,uy=C(We)`
1364
+ `,Iy=S(We)`
1199
1365
  font-weight: ${({$level:e})=>e===0?600:500};
1200
1366
  color: var(--color-main-blue-primary);
1201
1367
  white-space: nowrap;
1202
1368
  overflow: hidden;
1203
1369
  text-overflow: ellipsis;
1204
- `,hy=C(Re.div)`
1370
+ `,Ly=S(Re.div)`
1205
1371
  background-color: transparent;
1206
1372
  overflow: hidden;
1207
1373
  will-change: height, opacity, transform;
1208
- `,fy=C.div`
1374
+ `,Ny=S.div`
1209
1375
  width: 100%;
1210
1376
  ${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
1211
- `,py=C.span`
1377
+ `,By=S.span`
1212
1378
  width: 0.625rem;
1213
1379
  height: 0.125rem;
1214
1380
  background: var(--color-main-blue-primary);
1215
1381
  border-radius: 1px;
1216
1382
  flex: 0 0 auto;
1217
- `,my=C.div`
1218
- ${ay}
1383
+ `,Oy=S.div`
1384
+ ${Dy}
1219
1385
  transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
1220
1386
  pointer-events: none;
1221
1387
  transition: transform 0.3s ease-out;
1222
- `,Qo=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[s,i]=f.useState(!1),{isCollapsed:a,setIsMobileOpen:c}=Zo(),d=f.useMemo(()=>(e.children||[]).filter(S=>Jo(t,S.permissions)),[e.children,t]);if(!f.useMemo(()=>Jo(t,e.permissions),[t,e.permissions]))return null;const l=d.length>0,h=e.href||e.path||"",m=!!(h&&r&&r.startsWith(h)),g=()=>{i(S=>!S)},v=()=>{e.href&&o?.(e.href)},b=async()=>{if(e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),c&&c(!1)}catch(S){console.error("Error al navegar a microservicio:",S)}},y=()=>p.jsxs(p.Fragment,{children:[p.jsxs(dy,{children:[n>0&&!a&&p.jsx(py,{}),e.icon&&p.jsx(W,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&p.jsx(uy,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&l&&p.jsx(my,{$disabled:a,$open:s,children:p.jsx(W,{component:r0,size:"sm",color:"var(--color-main-blue-primary)"})})]});return p.jsxs(fy,{$level:n,children:[e.href&&!e.path&&!l?p.jsx(ly,{type:"button",onClick:v,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:y()}):p.jsx(cy,{type:"button",onClick:l?g:e.path?b:v,$level:n,$collapsed:a,$active:m,$expanded:s&&l,title:a?e.label:"",children:y()}),p.jsx(qt,{initial:!1,children:!a&&s&&l&&p.jsx(hy,{$level:n+1,...hc,children:d.map(S=>p.jsx(Qo,{item:S,userRoles:t,level:n+1,onNavigate:o,activePath:r},S.id))})})]})},bc=C(Re.div)`
1388
+ `,wc=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[s,i]=f.useState(!1),{isCollapsed:a,setIsMobileOpen:l}=qo(),d=f.useMemo(()=>(e.children||[]).filter(C=>Jo(t,C.permissions)),[e.children,t]);if(!f.useMemo(()=>Jo(t,e.permissions),[t,e.permissions]))return null;const c=d.length>0,h=e.href||e.path||"",m=!!(h&&r&&r.startsWith(h)),g=()=>{i(C=>!C)},b=()=>{e.href&&o?.(e.href)},x=async()=>{if(e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),l&&l(!1)}catch(C){console.error("Error al navegar a microservicio:",C)}},y=()=>p.jsxs(p.Fragment,{children:[p.jsxs(Vy,{children:[n>0&&!a&&p.jsx(By,{}),e.icon&&p.jsx(W,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&p.jsx(Iy,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&c&&p.jsx(Oy,{$disabled:a,$open:s,children:p.jsx(W,{component:i0,size:"sm",color:"var(--color-main-blue-primary)"})})]});return p.jsxs(Ny,{$level:n,children:[e.href&&!e.path&&!c?p.jsx($y,{type:"button",onClick:b,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:y()}):p.jsx(My,{type:"button",onClick:c?g:e.path?x:b,$level:n,$collapsed:a,$active:m,$expanded:s&&c,title:a?e.label:"",children:y()}),p.jsx(Zt,{initial:!1,children:!a&&s&&c&&p.jsx(Ly,{$level:n+1,...fc,children:d.map(C=>p.jsx(wc,{item:C,userRoles:t,level:n+1,onNavigate:o,activePath:r},C.id))})})]})},xc=S(Re.div)`
1223
1389
  position: fixed;
1224
1390
  inset: 0;
1225
1391
  background: rgba(0, 0, 0, 0.5);
@@ -1228,7 +1394,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1228
1394
  @media (max-width: 767px) {
1229
1395
  display: block;
1230
1396
  }
1231
- `,wc=C.aside`
1397
+ `,Sc=S.aside`
1232
1398
  position: fixed;
1233
1399
  left: 0;
1234
1400
  top: 0;
@@ -1247,7 +1413,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1247
1413
  @media (min-width: 768px) {
1248
1414
  transform: translateX(0);
1249
1415
  }
1250
- `,xc=C.div`
1416
+ `,Cc=S.div`
1251
1417
  display: flex;
1252
1418
  align-items: center;
1253
1419
  justify-content: space-between;
@@ -1255,11 +1421,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1255
1421
  padding: 1rem;
1256
1422
 
1257
1423
  ${({$collapsed:e})=>e?"flex-direction: column":""};
1258
- `,Sc=C.div`
1424
+ `,Tc=S.div`
1259
1425
  display: flex;
1260
1426
  align-items: center;
1261
1427
  gap: 0.5rem;
1262
- `,Cc=C.nav`
1428
+ `,kc=S.nav`
1263
1429
  display: flex;
1264
1430
  flex-direction: column;
1265
1431
  justify-content: flex-start;
@@ -1267,7 +1433,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1267
1433
  flex: 1;
1268
1434
  overflow-y: auto;
1269
1435
  padding: 0.25rem 0;
1270
- `,Tc=C.button`
1436
+ `,Ec=S.button`
1271
1437
  display: flex;
1272
1438
  align-items: center;
1273
1439
  justify-content: center;
@@ -1293,7 +1459,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1293
1459
  @media (max-width: 767px) {
1294
1460
  display: none;
1295
1461
  }
1296
- `,kc=C.button`
1462
+ `,Pc=S.button`
1297
1463
  position: fixed;
1298
1464
  top: 0.5rem;
1299
1465
  left: 1rem;
@@ -1304,7 +1470,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1304
1470
  @media (min-width: 768px) {
1305
1471
  display: none;
1306
1472
  }
1307
- `,ei=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:s=()=>{}})=>{const{isCollapsed:i,setIsCollapsed:a,isMobileOpen:c,setIsMobileOpen:d}=Zo(),u=l=>{s(l),typeof window<"u"&&window.innerWidth<768&&d(!1)};return p.jsxs(p.Fragment,{children:[p.jsx(qt,{children:c&&p.jsx(bc,{...Xo,onClick:()=>d(!1)})}),p.jsxs(wc,{$collapsed:c?!1:i,$open:c,children:[p.jsxs(xc,{$collapsed:i,children:[p.jsx(Sc,{children:i?o:r}),p.jsx(Tc,{onClick:()=>a(!i),"aria-label":"Toggle collapse",children:p.jsx(W,{component:ec,size:"md",color:"var(--color-main-blue-primary)"})})]}),p.jsx(Cc,{children:e.map(l=>p.jsx(Qo,{item:l,userRoles:t,onNavigate:u,activePath:n},l.id))})]}),p.jsx(kc,{onClick:()=>{d(!0),a(!1)},$hidden:c,children:p.jsx(W,{component:ec,size:30})})]})};ei.displayName="Sidebar";const Ec={underlined:x`
1473
+ `,Qo=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:s=()=>{}})=>{const{isCollapsed:i,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:d}=qo(),u=c=>{s(c),typeof window<"u"&&window.innerWidth<768&&d(!1)};return p.jsxs(p.Fragment,{children:[p.jsx(Zt,{children:l&&p.jsx(xc,{...Xo,onClick:()=>d(!1)})}),p.jsxs(Sc,{$collapsed:l?!1:i,$open:l,children:[p.jsxs(Cc,{$collapsed:i,children:[p.jsx(Tc,{children:i?o:r}),p.jsx(Ec,{onClick:()=>a(!i),"aria-label":"Toggle collapse",children:p.jsx(W,{component:ec,size:"md",color:"var(--color-main-blue-primary)"})})]}),p.jsx(kc,{children:e.map(c=>p.jsx(wc,{item:c,userRoles:t,onNavigate:u,activePath:n},c.id))})]}),p.jsx(Pc,{onClick:()=>{d(!0),a(!1)},$hidden:l,children:p.jsx(W,{component:ec,size:30})})]})};Qo.displayName="Sidebar";const Ac={underlined:v`
1308
1474
  color: var(--color-main-orange-primary);
1309
1475
  text-decoration-thickness: 1px;
1310
1476
  text-underline-offset: 2px;
@@ -1334,7 +1500,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1334
1500
  text-decoration-thickness: 1px;
1335
1501
  text-underline-offset: 2px;
1336
1502
  }
1337
- `,plain:x`
1503
+ `,plain:v`
1338
1504
  color: var(--color-main-orange-primary);
1339
1505
  text-decoration: none;
1340
1506
 
@@ -1364,7 +1530,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1364
1530
  text-decoration-thickness: 1px;
1365
1531
  text-underline-offset: 2px;
1366
1532
  }
1367
- `},Pc=x`
1533
+ `},Dc=v`
1368
1534
  color: var(--color-dark-200);
1369
1535
  cursor: not-allowed;
1370
1536
  pointer-events: none;
@@ -1382,16 +1548,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1382
1548
  text-decoration: none;
1383
1549
  transform: none;
1384
1550
  }
1385
- `,Ac={sm:x`
1551
+ `,$c={sm:v`
1386
1552
  gap: 0.25rem;
1387
- ${I[14]}
1388
- `,md:x`
1553
+ ${M[14]}
1554
+ `,md:v`
1389
1555
  gap: 0.5rem;
1390
- ${I[16]}
1391
- `,lg:x`
1556
+ ${M[16]}
1557
+ `,lg:v`
1392
1558
  gap: 0.75rem;
1393
- ${I[20]}
1394
- `},gy=C.a`
1559
+ ${M[20]}
1560
+ `},Fy=S.a`
1395
1561
  display: inline-flex;
1396
1562
  align-items: center;
1397
1563
  border-radius: 0.25rem;
@@ -1403,19 +1569,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1403
1569
 
1404
1570
  cursor: pointer;
1405
1571
 
1406
- ${({$size:e})=>Ac[e]}
1407
- ${({$variant:e})=>Ec[e]}
1408
- ${({$disabled:e})=>e&&Pc}
1409
- `,yy=C.span`
1572
+ ${({$size:e})=>$c[e]}
1573
+ ${({$variant:e})=>Ac[e]}
1574
+ ${({$disabled:e})=>e&&Dc}
1575
+ `,jy=S.span`
1410
1576
  flex: 1 1 auto;
1411
1577
  min-width: 0;
1412
1578
  max-width: 18ch;
1413
- ${({$truncate:e})=>e&&x`
1579
+ ${({$truncate:e})=>e&&v`
1414
1580
  overflow: hidden;
1415
1581
  text-overflow: ellipsis;
1416
1582
  white-space: nowrap;
1417
1583
  `}
1418
- `,Dc=f.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:s,rel:i,className:a,disabled:c=!1,tabIndex:d,leftIcon:u,rightIcon:l,iconSize:h="tn",iconColor:m="currentColor",truncate:g=!1,"aria-label":v,"aria-describedby":b,onClick:y,...S},w)=>{const A=f.useCallback(k=>{if(c){k.preventDefault();return}y?.(k)},[c,y]),E={href:c?void 0:o,target:s||void 0,rel:i??(s==="_blank"?"noopener noreferrer":void 0),onClick:A,"aria-label":v??r,"aria-describedby":b,"aria-disabled":c,tabIndex:c?-1:d??0,...S};return p.jsxs(gy,{id:e,$variant:n,$size:t,$disabled:c,className:a,ref:w,...E,children:[u&&p.jsx(W,{component:u,size:h,color:m}),p.jsx(yy,{$truncate:g,children:r}),p.jsx(W,{component:l||s0,size:t==="lg"?"sm":h,color:m})]})});Dc.displayName="Link";const $c={default:x`
1584
+ `,Mc=f.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:s,rel:i,className:a,disabled:l=!1,tabIndex:d,leftIcon:u,rightIcon:c,iconSize:h="tn",iconColor:m="currentColor",truncate:g=!1,"aria-label":b,"aria-describedby":x,onClick:y,...C},w)=>{const A=f.useCallback(k=>{if(l){k.preventDefault();return}y?.(k)},[l,y]),P={href:l?void 0:o,target:s||void 0,rel:i??(s==="_blank"?"noopener noreferrer":void 0),onClick:A,"aria-label":b??r,"aria-describedby":x,"aria-disabled":l,tabIndex:l?-1:d??0,...C};return p.jsxs(Fy,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:w,...P,children:[u&&p.jsx(W,{component:u,size:h,color:m}),p.jsx(jy,{$truncate:g,children:r}),p.jsx(W,{component:c||a0,size:t==="lg"?"sm":h,color:m})]})});Mc.displayName="Link";const Vc={default:v`
1419
1585
  thead tr:last-child th:first-child {
1420
1586
  border-top-left-radius: var(--border-radius-article);
1421
1587
  }
@@ -1431,7 +1597,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1431
1597
  tbody tr:last-child td:last-child {
1432
1598
  border-bottom-right-radius: var(--border-radius-article);
1433
1599
  }
1434
- `,striped:x`
1600
+ `,striped:v`
1435
1601
  border-radius: var(--border-radius-article);
1436
1602
  tbody tr:nth-child(even) td {
1437
1603
  background-color: var(--color-dark-200);
@@ -1456,11 +1622,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1456
1622
  tbody tr:last-child td:last-child {
1457
1623
  border-bottom-right-radius: var(--border-radius-article);
1458
1624
  }
1459
- `},Mc=x`
1625
+ `},Ic=v`
1460
1626
  tbody tr:hover td {
1461
1627
  background-color: var(--color-main-alternative-secondary);
1462
1628
  }
1463
- `,Vc=x`
1629
+ `,Lc=v`
1464
1630
  @media (max-width: 768px) {
1465
1631
  font-size: 0.875rem;
1466
1632
 
@@ -1469,37 +1635,37 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1469
1635
  padding: 0.5rem 0.75rem;
1470
1636
  }
1471
1637
  }
1472
- `,ti=x`
1638
+ `,ei=v`
1473
1639
  display: flex;
1474
1640
  align-items: center;
1475
1641
  gap: 0.5rem;
1476
1642
  width: 100%;
1477
1643
  overflow: hidden;
1478
- `,ft={sm:x`
1644
+ `,ft={sm:v`
1479
1645
  padding: 0.5rem 1rem;
1480
1646
  min-height: 2.25rem;
1481
- `,md:x`
1647
+ `,md:v`
1482
1648
  padding: 0.625rem 1.25rem;
1483
1649
  min-height: 2.5rem;
1484
- `,lg:x`
1650
+ `,lg:v`
1485
1651
  padding: 0.75rem 1.5rem;
1486
1652
  min-height: 2.75rem;
1487
- `},ni=x`
1653
+ `},ti=v`
1488
1654
  display: inline-flex;
1489
1655
  align-items: center;
1490
1656
  flex-shrink: 0;
1491
- `,vy={sm:x`
1657
+ `,zy={sm:v`
1492
1658
  ${ft.sm}
1493
- ${I[16]}
1494
- `,md:x`
1659
+ ${M[16]}
1660
+ `,md:v`
1495
1661
  ${ft.md}
1496
- ${I[20]}
1497
- `,lg:x`
1662
+ ${M[20]}
1663
+ `,lg:v`
1498
1664
  ${ft.lg}
1499
- ${I[24]}
1500
- `},by=C.th`
1665
+ ${M[24]}
1666
+ `},Ry=S.th`
1501
1667
  background-color: var(--color-main-blue-primary);
1502
- ${({$size:e})=>vy[e]}
1668
+ ${({$size:e})=>zy[e]}
1503
1669
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
1504
1670
  min-width: 8rem;
1505
1671
  width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
@@ -1508,13 +1674,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1508
1674
  background-color: var(--color-purple-600);
1509
1675
  }
1510
1676
 
1511
- ${({$active:e})=>e&&x`
1677
+ ${({$active:e})=>e&&v`
1512
1678
  background-color: var(--color-blue-400);
1513
1679
  `}
1514
- `,wy=C.div`
1515
- ${ti}
1680
+ `,_y=S.div`
1681
+ ${ei}
1516
1682
  justify-content: ${({$align:e})=>e||"space-between"};
1517
- `,xy=C.button`
1683
+ `,Hy=S.button`
1518
1684
  all: unset;
1519
1685
  display: inline-flex;
1520
1686
  align-items: center;
@@ -1533,11 +1699,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1533
1699
  outline-color: var(--color-main-white);
1534
1700
  outline-offset: 2px;
1535
1701
  }
1536
- `,Sy=C.span`
1702
+ `,Uy=S.span`
1537
1703
  transition: transform 0.3s ease-out;
1538
1704
  display: inline-flex;
1539
1705
  transform: ${({$dir:e})=>e==="asc"?"rotate(-180deg)":"none"};
1540
- `,Ic=C.span`
1706
+ `,Nc=S.span`
1541
1707
  display: inline-flex;
1542
1708
  align-items: center;
1543
1709
  gap: 0.5rem;
@@ -1546,54 +1712,54 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1546
1712
  text-overflow: ellipsis;
1547
1713
  white-space: nowrap;
1548
1714
  flex-shrink: 1;
1549
- `,Cy=C(An)`
1715
+ `,Wy=S(An)`
1550
1716
  overflow: hidden;
1551
1717
  text-overflow: ellipsis;
1552
1718
  white-space: nowrap;
1553
1719
  max-width: 100%;
1554
1720
  color: var(--color-main-white);
1555
- `,Lc=C.span`
1556
- ${ni}
1721
+ `,Bc=S.span`
1722
+ ${ti}
1557
1723
  gap: 0.375rem;
1558
- `,ri=({children:e,size:t="md",active:n=!1,sortDirection:r="none",leftIcon:o,rightIcon:s,iconSize:i="sm",iconColor:a="var(--color-main-white)",align:c="left",width:d,sortable:u,className:l,onSort:h,...m})=>{const g=r==="asc"?"desc":"asc",v=h?r==="none"?"none":r==="asc"?"ascending":"descending":void 0;return p.jsx(by,{$size:t,$active:n,$width:d,className:l,scope:"col","aria-sort":v,...m,children:h||u?p.jsxs(xy,{onClick:()=>h?.(g),"aria-label":`Sort ${g}`,children:[p.jsxs(Ic,{children:[o&&p.jsx(W,{component:o,size:i,color:a}),p.jsx(Cy,{size:t==="sm"?16:t==="md"?20:24,children:e})]}),p.jsxs(Lc,{children:[p.jsx(Sy,{$dir:r,children:p.jsx(W,{component:t0,size:i,color:a})}),s&&p.jsx(W,{component:s,size:i,color:a})]})]}):p.jsxs(wy,{$align:c,children:[p.jsxs(Ic,{children:[o&&p.jsx(W,{component:o,size:i,color:a}),p.jsx(An,{size:t==="sm"?16:t==="md"?20:24,color:"var(--color-main-white)",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:e})]}),p.jsx(Lc,{children:s&&p.jsx(W,{component:s,size:i,color:a})})]})})};ri.displayName="TableHeaderCell";const Ty={sm:x`
1724
+ `,ni=({children:e,size:t="md",active:n=!1,sortDirection:r="none",leftIcon:o,rightIcon:s,iconSize:i="sm",iconColor:a="var(--color-main-white)",align:l="left",width:d,sortable:u,className:c,onSort:h,...m})=>{const g=r==="asc"?"desc":"asc",b=h?r==="none"?"none":r==="asc"?"ascending":"descending":void 0;return p.jsx(Ry,{$size:t,$active:n,$width:d,className:c,scope:"col","aria-sort":b,...m,children:h||u?p.jsxs(Hy,{onClick:()=>h?.(g),"aria-label":`Sort ${g}`,children:[p.jsxs(Nc,{children:[o&&p.jsx(W,{component:o,size:i,color:a}),p.jsx(Wy,{size:t==="sm"?16:t==="md"?20:24,children:e})]}),p.jsxs(Bc,{children:[p.jsx(Uy,{$dir:r,children:p.jsx(W,{component:r0,size:i,color:a})}),s&&p.jsx(W,{component:s,size:i,color:a})]})]}):p.jsxs(_y,{$align:l,children:[p.jsxs(Nc,{children:[o&&p.jsx(W,{component:o,size:i,color:a}),p.jsx(An,{size:t==="sm"?16:t==="md"?20:24,color:"var(--color-main-white)",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:e})]}),p.jsx(Bc,{children:s&&p.jsx(W,{component:s,size:i,color:a})})]})})};ni.displayName="TableHeaderCell";const Ky={sm:v`
1559
1725
  ${ft.sm}
1560
- ${I[14]}
1561
- `,md:x`
1726
+ ${M[14]}
1727
+ `,md:v`
1562
1728
  ${ft.md}
1563
- ${I[14]}
1564
- `,lg:x`
1729
+ ${M[14]}
1730
+ `,lg:v`
1565
1731
  ${ft.lg}
1566
- ${I[16]}
1567
- `},ky=C.td`
1732
+ ${M[16]}
1733
+ `},Yy=S.td`
1568
1734
  vertical-align: middle;
1569
1735
  color: var(--color-main-blue-primary);
1570
- ${({$size:e})=>Ty[e]}
1736
+ ${({$size:e})=>Ky[e]}
1571
1737
  text-align: ${({$align:e,$variant:t})=>e||(t==="numeric"?"right":"left")};
1572
1738
  border-left: 1px solid var(--color-main-light-borders);
1573
1739
  border-top: 1px solid var(--color-main-light-borders);
1574
1740
  transition: background-color 0.3s ease-out;
1575
1741
  width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"auto"};
1576
1742
 
1577
- ${({$truncate:e})=>e&&x`
1743
+ ${({$truncate:e})=>e&&v`
1578
1744
  max-width: 200px;
1579
1745
  overflow: hidden;
1580
1746
  text-overflow: ellipsis;
1581
1747
  white-space: nowrap;
1582
1748
  `}
1583
1749
 
1584
- ${({$variant:e})=>e==="numeric"&&x`
1750
+ ${({$variant:e})=>e==="numeric"&&v`
1585
1751
  font-variant-numeric: tabular-nums;
1586
1752
  font-family: ui-monospace, monospace;
1587
1753
  `}
1588
- `,Ey=C.div`
1589
- ${ti}
1754
+ `,Gy=S.div`
1755
+ ${ei}
1590
1756
  justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
1591
- `,Py=C(We)`
1757
+ `,Xy=S(We)`
1592
1758
  flex: 1;
1593
1759
  min-width: 0;
1594
- `,Nc=C.span`
1595
- ${ni}
1596
- `,oi=({children:e,size:t="md",align:n,width:r,truncate:o=!1,variant:s="default",className:i,leftIcon:a,rightIcon:c,iconSize:d="sm",iconColor:u="var(--color-main-blue-primary)",...l})=>{const h=a||c;return p.jsx(ky,{$size:t,$align:n,$width:r,$truncate:o,$variant:s,className:i,...l,children:h?p.jsxs(Ey,{$align:n,children:[a&&p.jsx(Nc,{children:p.jsx(W,{component:a,size:d,color:u})}),p.jsx(Py,{children:e}),c&&p.jsx(Nc,{children:p.jsx(W,{component:c,size:d,color:u})})]}):e})};oi.displayName="TableCell";const Ay=C.table`
1760
+ `,Oc=S.span`
1761
+ ${ti}
1762
+ `,ri=({children:e,size:t="md",align:n,width:r,truncate:o=!1,variant:s="default",className:i,leftIcon:a,rightIcon:l,iconSize:d="sm",iconColor:u="var(--color-main-blue-primary)",...c})=>{const h=a||l;return p.jsx(Yy,{$size:t,$align:n,$width:r,$truncate:o,$variant:s,className:i,...c,children:h?p.jsxs(Gy,{$align:n,children:[a&&p.jsx(Oc,{children:p.jsx(W,{component:a,size:d,color:u})}),p.jsx(Xy,{children:e}),l&&p.jsx(Oc,{children:p.jsx(W,{component:l,size:d,color:u})})]}):e})};ri.displayName="TableCell";const Zy=S.table`
1597
1763
  width: 100%;
1598
1764
  table-layout: auto;
1599
1765
  border-collapse: separate;
@@ -1602,16 +1768,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1602
1768
  border-radius: var(--border-radius-article);
1603
1769
  border: 1px solid var(--color-main-light-borders);
1604
1770
 
1605
- ${({$variant:e})=>$c[e]}
1606
- ${Vc}
1607
- ${Mc}
1608
- `,Dy=C.thead`
1609
- ${({$sticky:e})=>e&&x`
1771
+ ${({$variant:e})=>Vc[e]}
1772
+ ${Lc}
1773
+ ${Ic}
1774
+ `,qy=S.thead`
1775
+ ${({$sticky:e})=>e&&v`
1610
1776
  position: sticky;
1611
1777
  top: 0;
1612
1778
  z-index: 10;
1613
1779
  `}
1614
- `,$y=C.div`
1780
+ `,Jy=S.div`
1615
1781
  max-height: 37.5rem;
1616
1782
  overflow: auto;
1617
1783
  position: relative;
@@ -1626,7 +1792,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1626
1792
  pointer-events: none;
1627
1793
  z-index: 3;
1628
1794
  }
1629
- `,Bc=({columns:e,rows:t,size:n="md",variant:r="default",tableWrapperClassName:o,tableClassName:s,stickyHeader:i=!1,onSortChange:a})=>{const c=(d,u)=>l=>{d.onSort?.(l),a?.({columnId:d.id??String(u),direction:l})};return p.jsx($y,{className:o,children:p.jsxs(Ay,{$variant:r,className:s,children:[p.jsx(Dy,{$sticky:i,children:p.jsx("tr",{children:e.map((d,u)=>p.jsx(ri,{size:n,leftIcon:d.leftIcon,rightIcon:d.rightIcon,iconSize:d.iconSize,iconColor:d.iconColor,sortDirection:d.sortDirection,onSort:d.onSort??(a?c(d,u):void 0),width:d.width,align:d.align,sortable:d.sortable||!!d.onSort||!!a,className:d.className,children:d.header},d.id||`col-${u}`))})}),p.jsx("tbody",{children:t.map((d,u)=>{const l=d.cells;return!l||!Array.isArray(l)?null:p.jsx("tr",{children:l.map((h,m)=>{const g=e[m];return p.jsx(oi,{size:h.size||d.size||n,align:h.align||d.align||g?.align,width:h.width||d.width||g?.width,truncate:h.truncate||d.truncate,variant:h.variant||d.variant,className:h.className||d.className||g?.className,leftIcon:h.leftIcon,rightIcon:h.rightIcon,iconSize:h.iconSize,iconColor:h.iconColor,children:h.content},`${d.id||u}-${m}`)})},d.id||u)})})]})})};Bc.displayName="Table";const My=C.div`
1795
+ `,Fc=({columns:e,rows:t,size:n="md",variant:r="default",tableWrapperClassName:o,tableClassName:s,stickyHeader:i=!1,onSortChange:a})=>{const l=(d,u)=>c=>{d.onSort?.(c),a?.({columnId:d.id??String(u),direction:c})};return p.jsx(Jy,{className:o,children:p.jsxs(Zy,{$variant:r,className:s,children:[p.jsx(qy,{$sticky:i,children:p.jsx("tr",{children:e.map((d,u)=>p.jsx(ni,{size:n,leftIcon:d.leftIcon,rightIcon:d.rightIcon,iconSize:d.iconSize,iconColor:d.iconColor,sortDirection:d.sortDirection,onSort:d.onSort??(a?l(d,u):void 0),width:d.width,align:d.align,sortable:d.sortable||!!d.onSort||!!a,className:d.className,children:d.header},d.id||`col-${u}`))})}),p.jsx("tbody",{children:t.map((d,u)=>{const c=d.cells;return!c||!Array.isArray(c)?null:p.jsx("tr",{children:c.map((h,m)=>{const g=e[m];return p.jsx(ri,{size:h.size||d.size||n,align:h.align||d.align||g?.align,width:h.width||d.width||g?.width,truncate:h.truncate||d.truncate,variant:h.variant||d.variant,className:h.className||d.className||g?.className,leftIcon:h.leftIcon,rightIcon:h.rightIcon,iconSize:h.iconSize,iconColor:h.iconColor,children:h.content},`${d.id||u}-${m}`)})},d.id||u)})})]})})};Fc.displayName="Table";const Qy=S.div`
1630
1796
  position: relative;
1631
1797
  display: flex;
1632
1798
  align-items: center;
@@ -1644,7 +1810,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1644
1810
  outline: 2px solid var(--color-main-blue-primary);
1645
1811
  outline-offset: 2px;
1646
1812
  }
1647
- `,Vy=C.div`
1813
+ `,e1=S.div`
1648
1814
  width: 2rem;
1649
1815
  height: 2rem;
1650
1816
  border-radius: 50%;
@@ -1652,7 +1818,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1652
1818
  display: flex;
1653
1819
  align-items: center;
1654
1820
  justify-content: center;
1655
- `,Iy=C.div`
1821
+ `,t1=S.div`
1656
1822
  display: flex;
1657
1823
  flex-direction: column;
1658
1824
  align-items: flex-start;
@@ -1660,7 +1826,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1660
1826
  @media (max-width: 640px) {
1661
1827
  display: none;
1662
1828
  }
1663
- `,Ly=C(Re.div)`
1829
+ `,n1=S(Re.div)`
1664
1830
  display: flex;
1665
1831
  align-items: center;
1666
1832
  justify-content: center;
@@ -1669,7 +1835,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1669
1835
  @media (max-width: 640px) {
1670
1836
  display: none;
1671
1837
  }
1672
- `,Ny=C(Re.div)`
1838
+ `,r1=S(Re.div)`
1673
1839
  position: absolute;
1674
1840
  top: 100%;
1675
1841
  right: 0;
@@ -1681,7 +1847,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1681
1847
  box-shadow: var(--shadow-black-card);
1682
1848
  z-index: 100;
1683
1849
  overflow: hidden;
1684
- `,By=C.button`
1850
+ `,o1=S.button`
1685
1851
  width: 100%;
1686
1852
  display: flex;
1687
1853
  align-items: center;
@@ -1705,7 +1871,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1705
1871
  &.danger {
1706
1872
  color: var(--color-main-waringn-state);
1707
1873
  }
1708
- `,Oc=({user:e,onProfileClick:t,onLogout:n,menuItems:r=[]})=>{const[o,s]=f.useState(!1),i=f.useRef(null);f.useEffect(()=>{if(!o)return;const u=l=>{i.current&&!i.current.contains(l.target)&&s(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[o]),f.useEffect(()=>{if(!o)return;const u=l=>{l.key==="Escape"&&s(!1)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]);const a=u=>u.split(" ").map(l=>l[0]).join("").toUpperCase().slice(0,2),d=[...[{id:"profile",label:"Profile",icon:h0,onClick:()=>{s(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:c0,onClick:()=>{s(!1),n?.()},variant:"danger"}],...r];return p.jsxs("div",{ref:i,children:[p.jsxs(My,{onClick:()=>s(!o),role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s(!o))},children:[p.jsx(Vy,{children:e.avatarUrl?p.jsx("img",{src:e.avatarUrl,alt:e.name}):p.jsx(We,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),p.jsxs(Iy,{children:[p.jsx(We,{size:14,className:"!font-semibold",children:e.name}),p.jsx(We,{size:12,children:e.role})]}),p.jsx(Ly,{animate:{rotate:o?-180:0},transition:{duration:.3},children:p.jsx(W,{component:n0,size:"sm",color:"var(--color-main-blue-primary)"})})]}),p.jsx(qt,{children:o&&p.jsx(Ny,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},children:d.map(u=>p.jsx(f.Fragment,{children:p.jsxs(By,{onClick:u.onClick,className:u.variant==="danger"?"danger":"",children:[p.jsx(W,{component:u.icon,size:"sm",color:u.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),p.jsx(We,{size:14,color:`${u.variant==="danger"&&"var(--color-main-warning-state)"}`,children:u.label})]})},u.id))})})]})};Oc.displayName="UserProfile";const Oy=C.header`
1874
+ `,jc=({user:e,onProfileClick:t,onLogout:n,menuItems:r=[]})=>{const[o,s]=f.useState(!1),i=f.useRef(null);f.useEffect(()=>{if(!o)return;const u=c=>{i.current&&!i.current.contains(c.target)&&s(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[o]),f.useEffect(()=>{if(!o)return;const u=c=>{c.key==="Escape"&&s(!1)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]);const a=u=>u.split(" ").map(c=>c[0]).join("").toUpperCase().slice(0,2),d=[...[{id:"profile",label:"Profile",icon:p0,onClick:()=>{s(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:d0,onClick:()=>{s(!1),n?.()},variant:"danger"}],...r];return p.jsxs("div",{ref:i,children:[p.jsxs(Qy,{onClick:()=>s(!o),role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s(!o))},children:[p.jsx(e1,{children:e.avatarUrl?p.jsx("img",{src:e.avatarUrl,alt:e.name}):p.jsx(We,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),p.jsxs(t1,{children:[p.jsx(We,{size:14,className:"!font-semibold",children:e.name}),p.jsx(We,{size:12,children:e.role})]}),p.jsx(n1,{animate:{rotate:o?-180:0},transition:{duration:.3},children:p.jsx(W,{component:o0,size:"sm",color:"var(--color-main-blue-primary)"})})]}),p.jsx(Zt,{children:o&&p.jsx(r1,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},children:d.map(u=>p.jsx(f.Fragment,{children:p.jsxs(o1,{onClick:u.onClick,className:u.variant==="danger"?"danger":"",children:[p.jsx(W,{component:u.icon,size:"sm",color:u.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),p.jsx(We,{size:14,color:`${u.variant==="danger"&&"var(--color-main-warning-state)"}`,children:u.label})]})},u.id))})})]})};jc.displayName="UserProfile";const i1=S.header`
1709
1875
  position: fixed;
1710
1876
  top: 0;
1711
1877
  left: 0;
@@ -1721,15 +1887,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1721
1887
  padding: 0 1rem;
1722
1888
  transition: padding-left 0.3s ease-out;
1723
1889
  padding-left: 5rem;
1724
- `,Fy=C.div`
1890
+ `,s1=S.div`
1725
1891
  display: flex;
1726
1892
  align-items: center;
1727
1893
  gap: 1rem;
1728
- `,jy=C.div`
1894
+ `,a1=S.div`
1729
1895
  display: flex;
1730
1896
  align-items: center;
1731
1897
  gap: 1rem;
1732
- `,zy=C.button`
1898
+ `,l1=S.button`
1733
1899
  position: relative;
1734
1900
  display: flex;
1735
1901
  align-items: center;
@@ -1753,7 +1919,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1753
1919
  &:active {
1754
1920
  transform: scale(0.92);
1755
1921
  }
1756
- `,Ry=C.span`
1922
+ `,c1=S.span`
1757
1923
  position: absolute;
1758
1924
  top: 0.35rem;
1759
1925
  right: 0.35rem;
@@ -1769,12 +1935,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1769
1935
  display: flex;
1770
1936
  align-items: center;
1771
1937
  justify-content: center;
1772
- `,ii=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:s,userMenuItems:i,children:a})=>{const c=(n??0)>0||t,d=n&&n>0?n:void 0,u=d?`${d} notification${d===1?"":"s"}`:c?"New notifications":"No notifications",l=`Notifications: ${u}`;return p.jsxs(Oy,{children:[p.jsx(Fy,{children:a}),p.jsxs(jy,{children:[p.jsxs(zy,{onClick:r,"aria-label":l,title:u,"data-has":c||void 0,children:[p.jsx(W,{component:c?d0:u0,size:"md",color:"var(--color-main-blue-primary)"}),c&&p.jsx(Ry,{$withCount:!!d,"aria-hidden":!!d,children:d&&(d>99?"99+":d)})]}),e&&p.jsx(Oc,{user:e,onProfileClick:o,onLogout:s,menuItems:i})]})]})};ii.displayName="Header";const _y=C.div`
1938
+ `,oi=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:s,userMenuItems:i,children:a})=>{const l=(n??0)>0||t,d=n&&n>0?n:void 0,u=d?`${d} notification${d===1?"":"s"}`:l?"New notifications":"No notifications",c=`Notifications: ${u}`;return p.jsxs(i1,{children:[p.jsx(s1,{children:a}),p.jsxs(a1,{children:[p.jsxs(l1,{onClick:r,"aria-label":c,title:u,"data-has":l||void 0,children:[p.jsx(W,{component:l?u0:h0,size:"md",color:"var(--color-main-blue-primary)"}),l&&p.jsx(c1,{$withCount:!!d,"aria-hidden":!!d,children:d&&(d>99?"99+":d)})]}),e&&p.jsx(jc,{user:e,onProfileClick:o,onLogout:s,menuItems:i})]})]})};oi.displayName="Header";const d1=S.div`
1773
1939
  display: flex;
1774
1940
  flex-direction: column;
1775
1941
  height: 100vh;
1776
1942
  overflow: hidden;
1777
- `,Hy=C.main`
1943
+ `,u1=S.main`
1778
1944
  flex: 1;
1779
1945
  margin-top: 4rem;
1780
1946
  /* Mobile-first: no lateral offset so content occupies full width */
@@ -1790,20 +1956,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1790
1956
  @media (min-width: 1200px) {
1791
1957
  margin-left: 5rem;
1792
1958
  }
1793
- `,Uy=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:s=!1,notificationCount:i,onNotificationClick:a,onUserProfileClick:c,onNavigate:d,onLogout:u,userMenuItems:l=[],contentClassName:h,logoImgCollapsed:m,logoImgExpanded:g})=>p.jsxs(_y,{children:[p.jsx(ei,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:m,logoImgExpanded:g,onNavigate:d}),p.jsx(ii,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:a,onUserProfileClick:c,onLogout:u,userMenuItems:l}),p.jsx(Hy,{className:h,children:e})]}),Wy=e=>p.jsx(yc,{children:p.jsx(Uy,{...e})});function Ky(e,t,n){let r=`${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;if(n){const o=new Date(Date.now()+n*864e5).toUTCString();r+=`; expires=${o}`}document.cookie=r}function Yy(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function Gy(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const an={sm:{circle:"2rem",fontSize:I[14],line:"2px"},md:{circle:"2.5rem",fontSize:I[18],line:"2px"},lg:{circle:"3.25rem",fontSize:I[20],line:"3px"}},Xy=C.div`
1959
+ `,h1=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:s=!1,notificationCount:i,onNotificationClick:a,onUserProfileClick:l,onNavigate:d,onLogout:u,userMenuItems:c=[],contentClassName:h,logoImgCollapsed:m,logoImgExpanded:g})=>p.jsxs(d1,{children:[p.jsx(Qo,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:m,logoImgExpanded:g,onNavigate:d}),p.jsx(oi,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:a,onUserProfileClick:l,onLogout:u,userMenuItems:c}),p.jsx(u1,{className:h,children:e})]}),f1=e=>p.jsx(vc,{children:p.jsx(h1,{...e})});function p1(e,t,n){let r=`${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;if(n){const o=new Date(Date.now()+n*864e5).toUTCString();r+=`; expires=${o}`}document.cookie=r}function m1(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function g1(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const an={sm:{circle:"2rem",fontSize:M[14],line:"2px"},md:{circle:"2.5rem",fontSize:M[18],line:"2px"},lg:{circle:"3.25rem",fontSize:M[20],line:"3px"}},y1=S.div`
1794
1960
  display: flex;
1795
1961
  width: 100%;
1796
- `,qy=C.div`
1962
+ `,v1=S.div`
1797
1963
  display: flex;
1798
1964
  flex-direction: ${({$orientation:e})=>e==="vertical"?"column":"row"};
1799
1965
  align-items: center;
1800
1966
  width: 100%;
1801
- `,Zy=C.div`
1967
+ `,b1=S.div`
1802
1968
  display: flex;
1803
1969
  align-items: center;
1804
1970
  justify-content: center;
1805
1971
  position: relative;
1806
- `,Fc=C.div`
1972
+ `,zc=S.div`
1807
1973
  display: flex;
1808
1974
  align-items: center;
1809
1975
  justify-content: center;
@@ -1824,19 +1990,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1824
1990
 
1825
1991
  ${({$size:e})=>an[e].fontSize}
1826
1992
 
1827
- ${({$isCompleted:e,$isActive:t})=>t?x`
1993
+ ${({$isCompleted:e,$isActive:t})=>t?v`
1828
1994
  background-color: var(--color-main-blue-primary);
1829
1995
  color: var(--color-main-white);
1830
1996
  box-shadow: var(--shadow-hover-black-button);
1831
- `:e?x`
1997
+ `:e?v`
1832
1998
  background-color: var(--color-main-blue-primary);
1833
1999
  color: var(--color-main-white);
1834
- `:x`
2000
+ `:v`
1835
2001
  background-color: var(--color-dark-300);
1836
2002
  color: var(--color-main-white);
1837
2003
  `}
1838
2004
 
1839
- ${({$isClickable:e})=>e&&x`
2005
+ ${({$isClickable:e})=>e&&v`
1840
2006
  cursor: pointer;
1841
2007
 
1842
2008
  &:hover {
@@ -1849,21 +2015,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1849
2015
  box-shadow: var(--shadow-hover-black-button);
1850
2016
  }
1851
2017
  `}
1852
- `,Jy=C.div`
2018
+ `,w1=S.div`
1853
2019
  background-color: ${({$isCompleted:e})=>e?"var(--color-main-blue-primary)":"var(--color-dark-300)"};
1854
2020
  transition: background-color 0.3s ease;
1855
2021
 
1856
- ${({$orientation:e,$size:t})=>e==="vertical"?x`
2022
+ ${({$orientation:e,$size:t})=>e==="vertical"?v`
1857
2023
  width: ${an[t].line};
1858
2024
  height: 2rem;
1859
- `:x`
2025
+ `:v`
1860
2026
  height: ${an[t].line};
1861
2027
  flex: 1;
1862
2028
  min-width: 2rem;
1863
2029
  `}
1864
- `,Qy=C.span`
2030
+ `,x1=S.span`
1865
2031
  position: absolute;
1866
- ${I[14]}
2032
+ ${M[14]}
1867
2033
  font-weight: 500;
1868
2034
  color: var(--color-main-white);
1869
2035
  background-color: var(--color-main-blue-primary);
@@ -1891,7 +2057,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
1891
2057
  border-left-color: var(--color-main-blue-primary);
1892
2058
  }
1893
2059
 
1894
- ${Fc}:hover & {
2060
+ ${zc}:hover & {
1895
2061
  opacity: 1;
1896
2062
  }
1897
- `,ev=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:s})=>{const i=a=>{o?.(a)};return p.jsx(Xy,{$orientation:n,className:s,children:p.jsx(qy,{$orientation:n,children:e.map((a,c)=>{const d=c===t,u=c<t,l=o!=null;return p.jsxs(f.Fragment,{children:[p.jsx(Zy,{$orientation:n,children:p.jsxs(Fc,{$isActive:d,$isCompleted:u,$size:r,$isClickable:l,onClick:()=>l&&i(c),role:l?"button":void 0,tabIndex:l?0:void 0,"aria-current":d?"step":void 0,"aria-label":a.label,onKeyDown:h=>{l&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i(c))},children:[a.content??c+1,a.label&&n==="vertical"&&p.jsx(Qy,{children:a.label})]})}),c<e.length-1&&p.jsx(Jy,{$isCompleted:u,$orientation:n,$size:r})]},a.id)})})})};T.ALLOWED_INPUT_TYPES=Zl,T.Aside=wc,T.Badge=Qm,T.BaseInput=zo,T.BrandLogo=Sc,T.Button=Oo,T.ButtonSpinner=Gl,T.Card=Fg,T.CardBody=_g,T.CardFooter=Ug,T.CardHeader=zg,T.Checkbox=Zn,T.CheckboxInput=Ho,T.CheckboxLabel=ic,T.CloseOpenButton=Tc,T.Dialog=fc,T.DialogBody=mc,T.DialogFooter=gc,T.DialogHeader=pc,T.Divider=tg,T.ErrorMessage=jo,T.FormField=J0,T.FullScreenSpinner=Hm,T.Header=ii,T.HeadingBold=An,T.HeadingRegular=nu,T.Icon=W,T.IconWrapperStyles=qn,T.InfoLabel=rg,T.Label=Gn,T.Layout=Wy,T.Link=Dc,T.LinkDisabledStyles=Pc,T.LinkSizeStyles=Ac,T.LinkVariantStyles=Ec,T.MenuItem=Qo,T.MobileOpenBtn=kc,T.Nav=Cc,T.Overlay=bc,T.PasswordInput=nc,T.PinInput=Uo,T.PinInputGroup=Wo,T.RadioInput=Go,T.RadioInputDot=Ko,T.RadioInputLabel=Yo,T.SearchInput=oc,T.SectionSpinner=Wm,T.SelectInput=Ro,T.Sidebar=ei,T.SidebarContext=qo,T.SidebarHeader=xc,T.SidebarProvider=yc,T.Spinner=Kn,T.Stepper=ev,T.Table=Bc,T.TableCell=oi,T.TableHeaderCell=ri,T.TermsAndConditions=sy,T.Text=We,T.TextAreaInput=_o,T.ToastProvider=Vg,T.baseContentTableStyles=ti,T.baseFieldStyles=ut,T.baseInputStyles=Xn,T.baseTableCellsSizes=ft,T.bodyTextStyles=I,T.createFieldConfig=Zg,T.createInputRefs=cc,T.deleteCookie=Gy,T.disabledStyles=Ze,T.errorStyles=ht,T.flushedStyles=Ql,T.getCookie=Yy,T.getPropsForInputType=Jg,T.handleDigitChange=sc,T.handleKeyDown=ac,T.handlePaste=lc,T.hasPermission=Jo,T.headingBoldStyles=vr,T.headingRegularStyles=Ji,T.isAllowedInputType=Jl,T.normalizeFieldTypes=qe,T.normalizeSelectOptions=qg,T.overlayAnimation=Xo,T.setCookie=Ky,T.sizeStyles=sn,T.slideAnimation=Q0,T.smartAnimation=uc,T.submenuAnimationTopDown=hc,T.tableHoverMixin=Mc,T.tableIconContainerStyles=ni,T.tableResponsiveMixin=Vc,T.tableVariants=$c,T.toast=wg,T.useSidebar=Zo,T.validateCode=H0,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
2063
+ `,S1=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:s})=>{const i=a=>{o?.(a)};return p.jsx(y1,{$orientation:n,className:s,children:p.jsx(v1,{$orientation:n,children:e.map((a,l)=>{const d=l===t,u=l<t,c=o!=null;return p.jsxs(f.Fragment,{children:[p.jsx(b1,{$orientation:n,children:p.jsxs(zc,{$isActive:d,$isCompleted:u,$size:r,$isClickable:c,onClick:()=>c&&i(l),role:c?"button":void 0,tabIndex:c?0:void 0,"aria-current":d?"step":void 0,"aria-label":a.label,onKeyDown:h=>{c&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i(l))},children:[a.content??l+1,a.label&&n==="vertical"&&p.jsx(x1,{children:a.label})]})}),l<e.length-1&&p.jsx(w1,{$isCompleted:u,$orientation:n,$size:r})]},a.id)})})})};T.ALLOWED_INPUT_TYPES=Zl,T.Aside=Sc,T.Badge=tg,T.BaseInput=zo,T.BrandLogo=Tc,T.Button=Fo,T.ButtonSpinner=Yl,T.Card=zg,T.CardBody=Ug,T.CardFooter=Kg,T.CardHeader=_g,T.Checkbox=Jn,T.CheckboxInput=Ho,T.CheckboxLabel=sc,T.CloseOpenButton=Ec,T.Dialog=pc,T.DialogBody=gc,T.DialogFooter=yc,T.DialogHeader=mc,T.Divider=rg,T.ErrorMessage=Gn,T.FileList=ic,T.FileUpload=Q0,T.FormField=wy,T.FullScreenSpinner=Wm,T.Header=oi,T.HeadingBold=An,T.HeadingRegular=ou,T.Icon=W,T.IconWrapperStyles=qn,T.InfoLabel=ig,T.Label=Xn,T.Layout=f1,T.Link=Mc,T.LinkDisabledStyles=Dc,T.LinkSizeStyles=$c,T.LinkVariantStyles=Ac,T.MobileOpenBtn=Pc,T.Nav=kc,T.Overlay=xc,T.PasswordInput=nc,T.PinInput=Uo,T.PinInputGroup=Wo,T.RadioInput=Go,T.RadioInputDot=Ko,T.RadioInputLabel=Yo,T.SearchInput=oc,T.SectionSpinner=Ym,T.SelectInput=Ro,T.Sidebar=Qo,T.SidebarContext=Zo,T.SidebarHeader=Cc,T.SidebarProvider=vc,T.Spinner=Kn,T.Stepper=S1,T.Table=Fc,T.TableCell=ri,T.TableHeaderCell=ni,T.TermsAndConditions=Ay,T.Text=We,T.TextAreaInput=_o,T.ToastProvider=Lg,T.baseContentTableStyles=ei,T.baseFieldStyles=ut,T.baseInputStyles=Zn,T.baseTableCellsSizes=ft,T.bodyTextStyles=M,T.createFieldConfig=Qg,T.createInputRefs=dc,T.deleteCookie=g1,T.disabledStyles=qe,T.errorStyles=ht,T.flushedStyles=Jl,T.getCookie=m1,T.getPropsForInputType=e0,T.handleDigitChange=ac,T.handleKeyDown=lc,T.handlePaste=cc,T.hasPermission=Jo,T.headingBoldStyles=br,T.headingRegularStyles=qi,T.isAllowedInputType=ql,T.normalizeFieldTypes=Ze,T.normalizeSelectOptions=Jg,T.overlayAnimation=Xo,T.setCookie=p1,T.sizeStyles=sn,T.slideAnimation=xy,T.smartAnimation=hc,T.submenuAnimationTopDown=fc,T.tableHoverMixin=Ic,T.tableIconContainerStyles=ti,T.tableResponsiveMixin=Lc,T.tableVariants=Vc,T.toast=Sg,T.useSidebar=qo,T.validateCode=uy,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));