tcce-design-system-test 0.3.34 → 0.3.35

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,219 +1,160 @@
1
- (function(C,p){typeof exports=="object"&&typeof module<"u"?p(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"],p):(C=typeof globalThis<"u"?globalThis:C||self,p(C["tcce-design-system-components"]={},C.React,C["react/jsx-runtime"],C.ReactDOM,C.Formik))})(this,(function(C,p,g,Ji,kd){"use strict";function Pd(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 ft=Pd(p);var be=function(){return be=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},be.apply(this,arguments)};function ht(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function $d(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ed=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Md=$d(function(e){return Ed.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Q="-ms-",Qt="-moz-",U="-webkit-",Qi="comm",Mn="rule",kr="decl",Ad="@import",Dd="@namespace",es="@keyframes",Vd="@layer",ts=Math.abs,Pr=String.fromCharCode,$r=Object.assign;function Fd(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 ns(e){return e.trim()}function je(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,n){return e.replace(t,n)}function An(e,t,n){return e.indexOf(t,n)}function se(e,t){return e.charCodeAt(t)|0}function pt(e,t,n){return e.slice(t,n)}function De(e){return e.length}function rs(e){return e.length}function en(e,t){return t.push(e),e}function Id(e,t){return e.map(t).join("")}function os(e,t){return e.filter(function(n){return!je(n,t)})}var Dn=1,$t=1,is=0,Pe=0,oe=0,Et="";function Vn(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Dn,column:$t,length:s,return:"",siblings:a}}function Je(e,t){return $r(Vn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Mt(e){for(;e.root;)e=Je(e.root,{children:[e]});en(e,e.siblings)}function Rd(){return oe}function Ld(){return oe=Pe>0?se(Et,--Pe):0,$t--,oe===10&&($t=1,Dn--),oe}function Ve(){return oe=Pe<is?se(Et,Pe++):0,$t++,oe===10&&($t=1,Dn++),oe}function Qe(){return se(Et,Pe)}function Fn(){return Pe}function In(e,t){return pt(Et,e,t)}function tn(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 _d(e){return Dn=$t=1,is=De(Et=e),Pe=0,[]}function Nd(e){return Et="",e}function Er(e){return ns(In(Pe-1,Mr(e===91?e+2:e===40?e+1:e)))}function Od(e){for(;(oe=Qe())&&oe<33;)Ve();return tn(e)>2||tn(oe)>3?"":" "}function Bd(e,t){for(;--t&&Ve()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return In(e,Fn()+(t<6&&Qe()==32&&Ve()==32))}function Mr(e){for(;Ve();)switch(oe){case e:return Pe;case 34:case 39:e!==34&&e!==39&&Mr(oe);break;case 40:e===41&&Mr(e);break;case 92:Ve();break}return Pe}function zd(e,t){for(;Ve()&&e+oe!==57;)if(e+oe===84&&Qe()===47)break;return"/*"+In(t,Pe-1)+"*"+Pr(e===47?e:Ve())}function Hd(e){for(;!tn(Qe());)Ve();return In(e,Pe)}function jd(e){return Nd(Rn("",null,null,null,[""],e=_d(e),0,[0],e))}function Rn(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,u=s,h=0,f=0,m=0,y=1,x=1,v=1,T=0,w="",M=o,b=i,$=r,k=w;x;)switch(m=T,T=Ve()){case 40:if(m!=108&&se(k,u-1)==58){An(k+=z(Er(T),"&","&\f"),"&\f",ts(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Er(T);break;case 9:case 10:case 13:case 32:k+=Od(m);break;case 92:k+=Bd(Fn()-1,7);continue;case 47:switch(Qe()){case 42:case 47:en(Gd(zd(Ve(),Fn()),t,n,l),l),(tn(m||1)==5||tn(Qe()||1)==5)&&De(k)&&pt(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*y:a[c++]=De(k)*v;case 125*y:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+d:v==-1&&(k=z(k,/\f/g,"")),f>0&&(De(k)-u||y===0&&m===47)&&en(f>32?as(k+";",r,n,u-1,l):as(z(k," ","")+";",r,n,u-2,l),l);break;case 59:k+=";";default:if(en($=ss(k,t,n,c,d,o,a,w,M=[],b=[],u,i),i),T===123)if(d===0)Rn(k,t,$,$,M,i,u,a,b);else{switch(h){case 99:if(se(k,3)===110)break;case 108:if(se(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Rn(e,$,$,r&&en(ss(e,$,$,0,0,o,a,w,o,M=[],u,b),b),o,b,u,a,r?M:b):Rn(k,$,$,$,[""],b,0,a,b)}}c=d=f=0,y=v=1,w=k="",u=s;break;case 58:u=1+De(k),f=m;default:if(y<1){if(T==123)--y;else if(T==125&&y++==0&&Ld()==125)continue}switch(k+=Pr(T),T*y){case 38:v=d>0?1:(k+="\f",-1);break;case 44:a[c++]=(De(k)-1)*v,v=1;break;case 64:Qe()===45&&(k+=Er(Ve())),h=Qe(),d=u=De(w=k+=Hd(Fn())),T++;break;case 45:m===45&&De(k)==2&&(y=0)}}return i}function ss(e,t,n,r,o,i,s,a,l,c,d,u){for(var h=o-1,f=o===0?i:[""],m=rs(f),y=0,x=0,v=0;y<r;++y)for(var T=0,w=pt(e,h+1,h=ts(x=s[y])),M=e;T<m;++T)(M=ns(x>0?f[T]+" "+w:z(w,/&\f/g,f[T])))&&(l[v++]=M);return Vn(e,t,n,o===0?Mn:a,l,c,d,u)}function Gd(e,t,n,r){return Vn(e,t,n,Qi,Pr(Rd()),pt(e,2,-2),0,r)}function as(e,t,n,r,o){return Vn(e,t,n,kr,pt(e,0,r),pt(e,r+1,-1),r,o)}function ls(e,t,n){switch(Fd(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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return U+e+e;case 4855:return U+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Qt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+Qt+e+Q+e+e;case 5936:switch(se(e,t+11)){case 114:return U+e+Q+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+Q+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+Q+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+Q+e+e;case 6165:return U+e+Q+"flex-"+e+e;case 5187:return U+e+z(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return U+e+Q+"flex-item-"+z(e,/flex-|-self/g,"")+(je(e,/flex-|baseline/)?"":Q+"grid-row-"+z(e,/flex-|-self/g,""))+e;case 4675:return U+e+Q+"flex-line-pack"+z(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+Q+z(e,"shrink","negative")+e;case 5292:return U+e+Q+z(e,"basis","preferred-size")+e;case 6060:return U+"box-"+z(e,"-grow","")+U+e+Q+z(e,"grow","positive")+e;case 4554:return U+z(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+Q+"flex-pack:$3"),/space-between/,"justify")+U+e+e;case 4200:if(!je(e,/flex-|baseline/))return Q+"grid-column-align"+pt(e,t)+e;break;case 2592:case 3360:return Q+z(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,je(r.props,/grid-\w+-end/)})?~An(e+(n=n[t].value),"span",0)?e:Q+z(e,"-start","")+e+Q+"grid-row-span:"+(~An(n,"span",0)?je(n,/\d+/):+je(n,/\d+/)-+je(e,/\d+/))+";":Q+z(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return je(r.props,/grid-\w+-start/)})?e:Q+z(z(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return z(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(De(e)-1-t>6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+Qt+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~An(e,"stretch",0)?ls(z(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return z(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,c){return Q+o+":"+i+c+(s?Q+o+"-span:"+(a?l:+l-+i)+c:"")+e});case 4949:if(se(e,t+6)===121)return z(e,":",":"+U)+e;break;case 6444:switch(se(e,se(e,14)===45?18:11)){case 120:return z(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(se(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+Q+"$2box$3")+e;case 100:return z(e,":",":"+Q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(e,"scroll-","scroll-snap-")+e}return e}function Ln(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ud(e,t,n,r){switch(e.type){case Vd:if(e.children.length)break;case Ad:case Dd:case kr:return e.return=e.return||e.value;case Qi:return"";case es:return e.return=e.value+"{"+Ln(e.children,r)+"}";case Mn:if(!De(e.value=e.props.join(",")))return""}return De(n=Ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function Wd(e){var t=rs(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function Kd(e){return function(t){t.root||(t=t.return)&&e(t)}}function Yd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kr:e.return=ls(e.value,e.length,n);return;case es:return Ln([Je(e,{value:z(e.value,"@","@"+U)})],r);case Mn:if(e.length)return Id(n=e.props,function(o){switch(je(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Mt(Je(e,{props:[z(o,/:(read-\w+)/,":"+Qt+"$1")]})),Mt(Je(e,{props:[o]})),$r(e,{props:os(n,r)});break;case"::placeholder":Mt(Je(e,{props:[z(o,/:(plac\w+)/,":"+U+"input-$1")]})),Mt(Je(e,{props:[z(o,/:(plac\w+)/,":"+Qt+"$1")]})),Mt(Je(e,{props:[z(o,/:(plac\w+)/,Q+"input-$1")]})),Mt(Je(e,{props:[o]})),$r(e,{props:os(n,r)});break}return""})}}var qd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},mt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",cs="active",us="data-styled-version",_n="6.3.6",Ar=`/*!sc*/
2
- `,Nn=typeof window<"u"&&typeof document<"u",At=p.createContext===void 0,Xd=!!(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"),ds=/invalid hook call/i,On=new Set,Zd=function(e,t){if(process.env.NODE_ENV!=="production"){if(At)return;var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
3
- `)+`You may see this warning because you've called styled inside another component.
4
- To resolve this only create new StyledComponents outside of any render method and function component.
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 i=!0;console.error=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];ds.test(s)?(i=!1,On.delete(r)):o.apply(void 0,ht([s],a,!1))},typeof p.useState=="function"&&p.useState(null),i&&!On.has(r)&&(console.warn(r),On.add(r))}catch(s){ds.test(s.message)&&On.delete(r)}finally{console.error=o}}},Bn=Object.freeze([]),Dt=Object.freeze({});function Jd(e,t,n){return n===void 0&&(n=Dt),e.theme!==n.theme&&e.theme||t||n.theme}var Dr=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Qd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ef=/(^-|-$)/g;function fs(e){return e.replace(Qd,"-").replace(ef,"")}var tf=/(a)(d)/gi,hs=function(e){return String.fromCharCode(e+(e>25?39:97))};function Vr(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=hs(t%52)+n;return(hs(t%52)+n).replace(tf,"$1-$2")}var Fr,gt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ps=function(e){return gt(5381,e)};function ms(e){return Vr(ps(e)>>>0)}function gs(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Ir(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var ys=typeof Symbol=="function"&&Symbol.for,vs=ys?Symbol.for("react.memo"):60115,nf=ys?Symbol.for("react.forward_ref"):60112,rf={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},of={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ws={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sf=((Fr={})[nf]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fr[vs]=ws,Fr);function bs(e){return("type"in(t=e)&&t.type.$$typeof)===vs?ws:"$$typeof"in e?sf[e.$$typeof]:rf;var t}var af=Object.defineProperty,lf=Object.getOwnPropertyNames,xs=Object.getOwnPropertySymbols,cf=Object.getOwnPropertyDescriptor,uf=Object.getPrototypeOf,Ss=Object.prototype;function Cs(e,t,n){if(typeof t!="string"){if(Ss){var r=uf(t);r&&r!==Ss&&Cs(e,r,n)}var o=lf(t);xs&&(o=o.concat(xs(t)));for(var i=bs(e),s=bs(t),a=0;a<o.length;++a){var l=o[a];if(!(l in of||n&&n[l]||s&&l in s||i&&l in i)){var c=cf(t,l);try{af(e,l,c)}catch{}}}}return e}function Vt(e){return typeof e=="function"}function Rr(e){return typeof e=="object"&&"styledComponentId"in e}function yt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Lr(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Ft(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function _r(e,t,n){if(n===void 0&&(n=!1),!n&&!Ft(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=_r(e[r],t[r]);else if(Ft(t))for(var r in t)e[r]=_r(e[r],t[r]);return e}function Nr(e,t){Object.defineProperty(e,"toString",{value:t})}var df=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
7
-
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
-
10
- - Are you trying to reuse it across renders?
11
- - Are you accidentally calling collectStyles twice?
12
-
13
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
14
-
15
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
16
-
17
- - Does this error occur on the client and is your target falsy?
18
- - Does this error occur on the server and is the sheet falsy?
19
-
20
- `,5:`The clone method cannot be used on the client!
21
-
22
- - Are you running in a client-like environment on the server?
23
- - Are you trying to run SSR on the client?
24
-
25
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
26
-
27
- - Are you using a custom target that isn't mounted?
28
- - Does your document not have a valid head element?
29
- - Have you accidentally removed a style tag manually?
30
-
31
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
32
-
33
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
34
-
35
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
36
-
37
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s 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.
38
-
39
- `,14:`ThemeProvider: "theme" prop is required.
40
-
41
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
42
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
43
- as for instance in your render method then you may be running into this limitation.
44
-
45
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
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 ff(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function It(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(ff.apply(void 0,ht([df[e]],t,!1)).trim())}var hf=(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,i=o;t>=i;)if((i<<=1)<0)throw It(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),l=(s=0,n.length);s<l;s++)this.tag.insertRule(a,n[s])&&(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 i=r;i<o;i++)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),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(Ar);return n},e})(),pf=1<<30,zn=new Map,Hn=new Map,jn=1,nn=function(e){if(zn.has(e))return zn.get(e);for(;Hn.has(jn);)jn++;var t=jn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>pf))throw It(16,"".concat(t));return zn.set(e,t),Hn.set(t,e),t},mf=function(e,t){jn=t+1,zn.set(e,t),Hn.set(t,e)},gf="style[".concat(mt,"][").concat(us,'="').concat(_n,'"]'),yf=new RegExp("^".concat(mt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),vf=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},wf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Ar),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(yf);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(mf(d,c),vf(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(a)}}},Ts=function(e){for(var t=document.querySelectorAll(gf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(mt)!==cs&&(wf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function bf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ks=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(mt,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(mt,cs),r.setAttribute(us,_n);var s=bf();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},xf=(function(){function e(t){this.element=ks(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var s=r[o];if(s.ownerNode===n)return s}throw It(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})(),Sf=(function(){function e(t){this.element=ks(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})(),Cf=(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})(),Ps=Nn,Tf={isServer:!Nn,useCSSOMInjection:!Xd},$s=(function(){function e(t,n,r){t===void 0&&(t=Dt),n===void 0&&(n={});var o=this;this.options=be(be({},Tf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Nn&&Ps&&(Ps=!1,Ts(this)),Nr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",c=function(u){var h=(function(v){return Hn.get(v)})(u);if(h===void 0)return"continue";var f=i.names.get(h),m=s.getGroup(u);if(f===void 0||!f.size||m.length===0)return"continue";var y="".concat(mt,".g").concat(u,'[id="').concat(h,'"]'),x="";f!==void 0&&f.forEach(function(v){v.length>0&&(x+="".concat(v,","))}),l+="".concat(m).concat(y,'{content:"').concat(x,'"}').concat(Ar)},d=0;d<a;d++)c(d);return l})(o)})}return e.registerId=function(t){return nn(t)},e.prototype.rehydrate=function(){!this.server&&Nn&&Ts(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(be(be({},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 Cf(o):r?new xf(o):new Sf(o)})(this.options),new hf(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(nn(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(nn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),kf=/&/g,Rt=47;function Es(e){if(e.indexOf("}")===-1)return!1;for(var t=e.length,n=0,r=0,o=!1,i=0;i<t;i++){var s=e.charCodeAt(i);if(r!==0||o||s!==Rt||e.charCodeAt(i+1)!==42)if(o)s===42&&e.charCodeAt(i+1)===Rt&&(o=!1,i++);else if(s!==34&&s!==39||i!==0&&e.charCodeAt(i-1)===92){if(r===0){if(s===123)n++;else if(s===125&&--n<0)return!0}}else r===0?r=s:r===s&&(r=0);else o=!0,i++}return n!==0||r!==0}function Ms(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=Ms(n.children,t)),n})}function Pf(e){var t,n,r,o=Dt,i=o.options,s=i===void 0?Dt:i,a=o.plugins,l=a===void 0?Bn:a,c=function(h,f,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):h},d=l.slice();d.push(function(h){h.type===Mn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(kf,n).replace(r,c))}),s.prefix&&d.push(Yd),d.push(Ud);var u=function(h,f,m,y){f===void 0&&(f=""),m===void 0&&(m=""),y===void 0&&(y="&"),t=y,n=f,r=new RegExp("\\".concat(n,"\\b"),"g");var x=(function(w){if(!Es(w))return w;for(var M=w.length,b="",$=0,k=0,E=0,D=!1,A=0;A<M;A++){var I=w.charCodeAt(A);if(E!==0||D||I!==Rt||w.charCodeAt(A+1)!==42)if(D)I===42&&w.charCodeAt(A+1)===Rt&&(D=!1,A++);else if(I!==34&&I!==39||A!==0&&w.charCodeAt(A-1)===92){if(E===0)if(I===123)k++;else if(I===125){if(--k<0){for(var N=A+1;N<M;){var j=w.charCodeAt(N);if(j===59||j===10)break;N++}N<M&&w.charCodeAt(N)===59&&N++,k=0,A=N-1,$=N;continue}k===0&&(b+=w.substring($,A+1),$=A+1)}else I===59&&k===0&&(b+=w.substring($,A+1),$=A+1)}else E===0?E=I:E===I&&(E=0);else D=!0,A++}if($<M){var G=w.substring($);Es(G)||(b+=G)}return b})((function(w){if(w.indexOf("//")===-1)return w;for(var M=w.length,b=[],$=0,k=0,E=0,D=0;k<M;){var A=w.charCodeAt(k);if(A!==34&&A!==39||k!==0&&w.charCodeAt(k-1)===92)if(E===0)if(A===40&&k>=3&&(32|w.charCodeAt(k-1))==108&&(32|w.charCodeAt(k-2))==114&&(32|w.charCodeAt(k-3))==117)D=1,k++;else if(D>0)A===41?D--:A===40&&D++,k++;else if(A===Rt&&k+1<M&&w.charCodeAt(k+1)===Rt){for(k>$&&b.push(w.substring($,k));k<M&&w.charCodeAt(k)!==10;)k++;$=k}else k++;else k++;else E===0?E=A:E===A&&(E=0),k++}return $===0?w:($<M&&b.push(w.substring($)),b.join(""))})(h)),v=jd(m||f?"".concat(m," ").concat(f," { ").concat(x," }"):x);s.namespace&&(v=Ms(v,s.namespace));var T=[];return Ln(v,Wd(d.concat(Kd(function(w){return T.push(w)})))),T};return u.hash=l.length?l.reduce(function(h,f){return f.name||It(15),gt(h,f.name)},5381).toString():"",u}var $f=new $s,Or=Pf(),Br={shouldForwardProp:void 0,styleSheet:$f,stylis:Or},As=At?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Br)}}:p.createContext(Br);As.Consumer,At||p.createContext(void 0);function Ds(){return!At&&p.useContext?p.useContext(As):Br}var zr=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Or);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Nr(this,function(){throw It(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Or),this.name+t.hash},e})();function Ef(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in qd||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Mf=function(e){return e>="A"&&e<="Z"};function Vs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Mf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Fs=function(e){return e==null||e===!1||e===""},Is=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!Fs(r)&&(Array.isArray(r)&&r.isCss||Vt(r)?t.push("".concat(Vs(n),":"),r,";"):Ft(r)?t.push.apply(t,ht(ht(["".concat(n," {")],Is(r),!1),["}"],!1)):t.push("".concat(Vs(n),": ").concat(Ef(n,r),";")))}return t};function vt(e,t,n,r){if(Fs(e))return[];if(Rr(e))return[".".concat(e.styledComponentId)];if(Vt(e)){if(!Vt(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof zr||Ft(o)||o===null||console.error("".concat(gs(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.")),vt(o,t,n,r)}var i;return e instanceof zr?n?(e.inject(n,r),[e.getName(r)]):[e]:Ft(e)?Is(e):Array.isArray(e)?Array.prototype.concat.apply(Bn,e.map(function(s){return vt(s,t,n,r)})):[e.toString()]}function Af(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Vt(n)&&!Rr(n))return!1}return!0}var Df=ps(_n),Vf=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Af(t),this.componentId=n,this.baseHash=gt(Df,n),this.baseStyle=r,$s.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=yt(o,this.staticRulesId);else{var i=Lr(vt(this.rules,t,n,r)),s=Vr(gt(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var a=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,a)}o=yt(o,s),this.staticRulesId=s}else{for(var l=gt(this.baseHash,r.hash),c="",d=0;d<this.rules.length;d++){var u=this.rules[d];if(typeof u=="string")c+=u,process.env.NODE_ENV!=="production"&&(l=gt(l,u));else if(u){var h=Lr(vt(u,t,n,r));l=gt(l,h+d),c+=h}}if(c){var f=Vr(l>>>0);if(!n.hasNameForId(this.componentId,f)){var m=r(c,".".concat(f),void 0,this.componentId);n.insertRules(this.componentId,f,m)}o=yt(o,f)}}return{className:o,css:typeof window>"u"?n.getTag().getGroup(nn(this.componentId)):""}},e})(),Rs=At?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:p.createContext(void 0);Rs.Consumer;var Hr={},Ls=new Set;function Ff(e,t,n){var r=Rr(e),o=e,i=!Ir(e),s=t.attrs,a=s===void 0?Bn:s,l=t.componentId,c=l===void 0?(function(M,b){var $=typeof M!="string"?"sc":fs(M);Hr[$]=(Hr[$]||0)+1;var k="".concat($,"-").concat(ms(_n+$+Hr[$]));return b?"".concat(b,"-").concat(k):k})(t.displayName,t.parentComponentId):l,d=t.displayName,u=d===void 0?(function(M){return Ir(M)?"styled.".concat(M):"Styled(".concat(gs(M),")")})(e):d,h=t.displayName&&t.componentId?"".concat(fs(t.displayName),"-").concat(t.componentId):t.componentId||c,f=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;m=function(M,b){return y(M,b)&&x(M,b)}}else m=y}var v=new Vf(n,h,r?o.componentStyle:void 0);function T(M,b){return(function($,k,E){var D=$.attrs,A=$.componentStyle,I=$.defaultProps,N=$.foldedComponentIds,j=$.styledComponentId,G=$.target,X=p.useContext?p.useContext(Rs):void 0,O=Ds(),R=$.shouldForwardProp||O.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue&&p.useDebugValue(j);var W=Jd(k,X,I)||Dt,q=(function(K,Ce,Xe){for(var Le,ge=be(be({},Ce),{className:void 0,theme:Xe}),$n=0;$n<K.length;$n+=1){var ct=Vt(Le=K[$n])?Le(ge):Le;for(var ut in ct)ut==="className"?ge.className=yt(ge.className,ct[ut]):ut==="style"?ge.style=be(be({},ge.style),ct[ut]):ge[ut]=ct[ut]}return"className"in Ce&&typeof Ce.className=="string"&&(ge.className=yt(ge.className,Ce.className)),ge})(D,k,W),Z=q.as||G,de={};for(var le in q)q[le]===void 0||le[0]==="$"||le==="as"||le==="theme"&&q.theme===W||(le==="forwardedAs"?de.as=q.forwardedAs:R&&!R(le,Z)||(de[le]=q[le],R||process.env.NODE_ENV!=="development"||Md(le)||Ls.has(le)||!Dr.has(Z)||(Ls.add(le),console.warn('styled-components: it looks like an unknown prop "'.concat(le,'" 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 H=(function(K,Ce){var Xe=Ds(),Le=K.generateAndInjectStyles(Ce,Xe.styleSheet,Xe.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue&&p.useDebugValue(Le.className),Le})(A,q),J=H.className,te=H.css;process.env.NODE_ENV!=="production"&&$.warnTooManyClasses&&$.warnTooManyClasses(J);var me=yt(N,j);J&&(me+=" "+J),q.className&&(me+=" "+q.className),de[Ir(Z)&&!Dr.has(Z)?"class":"className"]=me,E&&(de.ref=E);var qe=p.createElement(Z,de);return At&&te?p.createElement(p.Fragment,null,p.createElement("style",{precedence:"styled-components",href:"sc-".concat(j,"-").concat(J),children:te}),qe):qe})(w,M,b)}T.displayName=u;var w=p.forwardRef(T);return w.attrs=f,w.componentStyle=v,w.displayName=u,w.shouldForwardProp=m,w.foldedComponentIds=r?yt(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=h,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=r?(function(b){for(var $=[],k=1;k<arguments.length;k++)$[k-1]=arguments[k];for(var E=0,D=$;E<D.length;E++)_r(b,D[E],!0);return b})({},o.defaultProps,M):M}}),process.env.NODE_ENV!=="production"&&(Zd(u,h),w.warnTooManyClasses=(function(M,b){var $={},k=!1;return function(E){if(!k&&($[E]=!0,Object.keys($).length>=200)){var D=b?' with the id of "'.concat(b,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(D,`.
48
- `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
- Example:
50
- const Component = styled.div.attrs(props => ({
51
- style: {
52
- background: props.background,
53
- },
54
- }))\`width: 100%;\`
55
-
56
- <Component />`),k=!0,$={}}}})(u,h)),Nr(w,function(){return".".concat(w.styledComponentId)}),i&&Cs(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function _s(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 Ns=function(e){return Object.assign(e,{isCss:!0})};function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Vt(e)||Ft(e))return Ns(vt(_s(Bn,ht([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?vt(r):Ns(vt(_s(r,t)))}function jr(e,t,n){if(n===void 0&&(n=Dt),!t)throw It(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,S.apply(void 0,ht([o],i,!1)))};return r.attrs=function(o){return jr(e,t,be(be({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return jr(e,t,be(be({},n),o))},r}var Os=function(e){return jr(Ff,e)},P=Os;Dr.forEach(function(e){P[e]=Os(e)});function If(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=Lr(S.apply(void 0,ht([e],t,!1))),o=ms(r);return new zr(o,r)}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
- Perhaps you're looking to import 'styled-components/native'?
58
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Gn="__sc-".concat(mt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Gn]||(window[Gn]=0),window[Gn]===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
-
60
- See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Gn]+=1);const Gr={80:S`
1
+ (function(S,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("styled-components"),require("react/jsx-runtime"),require("react"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","styled-components","react/jsx-runtime","react","react-dom","formik"],g):(S=typeof globalThis<"u"?globalThis:S||self,g(S["tcce-design-system-components"]={},S.styled,S["react/jsx-runtime"],S.React,S.ReactDOM,S.Formik))})(this,(function(S,g,p,m,_r,Cc){"use strict";function Tc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ue=Tc(m),kn={80:g.css`
61
2
  font-family: 'Dax', serif;
62
3
  font-size: 5em;
63
4
  font-style: normal;
64
5
  font-weight: 700;
65
6
  line-height: 163.184%;
66
- `,60:S`
7
+ `,60:g.css`
67
8
  font-family: 'Dax', serif;
68
9
  font-size: 3.75em;
69
10
  font-style: normal;
70
11
  font-weight: 700;
71
12
  line-height: 161.76%;
72
- `,40:S`
13
+ `,40:g.css`
73
14
  font-family: 'Dax', serif;
74
15
  font-size: 2.5em;
75
16
  font-style: normal;
76
17
  font-weight: 700;
77
18
  line-height: 161.76%;
78
- `,30:S`
19
+ `,30:g.css`
79
20
  font-family: 'Dax', serif;
80
21
  font-size: 1.875em;
81
22
  font-style: normal;
82
23
  font-weight: 700;
83
24
  line-height: 161.76%;
84
- `,24:S`
25
+ `,24:g.css`
85
26
  font-family: 'Dax', serif;
86
27
  font-size: 1.5em;
87
28
  font-style: normal;
88
29
  font-weight: 700;
89
30
  line-height: 163.184%;
90
- `,20:S`
31
+ `,20:g.css`
91
32
  font-family: 'Dax', serif;
92
33
  font-size: 1.25em;
93
34
  font-style: normal;
94
35
  font-weight: 700;
95
36
  line-height: 161.76%;
96
- `,16:S`
37
+ `,16:g.css`
97
38
  font-family: 'Dax', serif;
98
39
  font-size: 1em;
99
40
  font-style: normal;
100
41
  font-weight: 700;
101
42
  line-height: 161.76%;
102
- `},Bs={80:S`
43
+ `},Br={80:g.css`
103
44
  font-family: 'Dax', serif;
104
45
  font-size: 5em;
105
46
  font-style: normal;
106
47
  font-weight: 400;
107
48
  line-height: 163.184%;
108
- `,60:S`
49
+ `,60:g.css`
109
50
  font-family: 'Dax', serif;
110
51
  font-size: 3.75em;
111
52
  font-style: normal;
112
53
  font-weight: 400;
113
54
  line-height: 161.76%;
114
- `,40:S`
55
+ `,40:g.css`
115
56
  font-family: 'Dax', serif;
116
57
  font-size: 2.5em;
117
58
  font-style: normal;
118
59
  font-weight: 400;
119
60
  line-height: 161.76%;
120
- `,30:S`
61
+ `,30:g.css`
121
62
  font-family: 'Dax', serif;
122
63
  font-size: 1.875em;
123
64
  font-style: normal;
124
65
  font-weight: 400;
125
66
  line-height: 161.76%;
126
- `,24:S`
67
+ `,24:g.css`
127
68
  font-family: 'Dax', serif;
128
69
  font-size: 1.5em;
129
70
  font-style: normal;
130
71
  font-weight: 400;
131
72
  line-height: 163.184%;
132
- `,20:S`
73
+ `,20:g.css`
133
74
  font-family: 'Dax', serif;
134
75
  font-size: 1.25em;
135
76
  font-style: normal;
136
77
  font-weight: 400;
137
78
  line-height: 161.76%;
138
- `,16:S`
79
+ `,16:g.css`
139
80
  font-family: 'Dax', serif;
140
81
  font-size: 1em;
141
82
  font-style: normal;
142
83
  font-weight: 400;
143
84
  line-height: 161.76%;
144
- `},F={80:S`
85
+ `},E={80:g.css`
145
86
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
146
87
  font-size: 5em;
147
88
  font-style: normal;
148
89
  font-weight: 400;
149
90
  line-height: 155.962%;
150
- `,60:S`
91
+ `,60:g.css`
151
92
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
152
93
  font-size: 3.75em;
153
94
  font-style: normal;
154
95
  font-weight: 400;
155
96
  line-height: 176.782%;
156
- `,40:S`
97
+ `,40:g.css`
157
98
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
158
99
  font-size: 2.5em;
159
100
  font-style: normal;
160
101
  font-weight: 400;
161
102
  line-height: 176.782%;
162
- `,30:S`
103
+ `,30:g.css`
163
104
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
164
105
  font-size: 1.875em;
165
106
  font-style: normal;
166
107
  font-weight: 400;
167
108
  line-height: 176.782%;
168
- `,24:S`
109
+ `,24:g.css`
169
110
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
170
111
  font-size: 1.5em;
171
112
  font-style: normal;
172
113
  font-weight: 400;
173
114
  line-height: 176.782%;
174
- `,20:S`
115
+ `,20:g.css`
175
116
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
176
117
  font-size: 1.25em;
177
118
  font-style: normal;
178
119
  font-weight: 400;
179
120
  line-height: 155.962%;
180
- `,18:S`
121
+ `,18:g.css`
181
122
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
182
123
  font-size: 1.125em;
183
124
  font-style: normal;
184
125
  font-weight: 400;
185
126
  line-height: 150.782%;
186
- `,16:S`
127
+ `,16:g.css`
187
128
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
188
129
  font-size: 1em;
189
130
  font-style: normal;
190
131
  font-weight: 400;
191
132
  line-height: 140%;
192
- `,14:S`
133
+ `,14:g.css`
193
134
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
194
135
  font-size: 0.875em;
195
136
  font-style: normal;
196
137
  font-weight: 400;
197
138
  line-height: 140%;
198
- `,12:S`
139
+ `,12:g.css`
199
140
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
200
141
  font-size: 0.75em;
201
142
  font-style: normal;
202
143
  font-weight: 400;
203
144
  line-height: 133%;
204
- `},zs=P.h1`
205
- ${({size:e=24})=>Gr[e]}
145
+ `},Nr=g.h1`
146
+ ${({size:e=24})=>kn[e]}
206
147
  margin: 0;
207
148
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
208
- `,Rf=P.h2`
209
- ${({size:e=24})=>Bs[e]}
149
+ `,$c=g.h2`
150
+ ${({size:e=24})=>Br[e]}
210
151
  margin: 0;
211
152
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
212
- `,Ge=P.span`
213
- ${({size:e=16})=>F[e]}
153
+ `,Ve=g.span`
154
+ ${({size:e=16})=>E[e]}
214
155
  margin: 0;
215
156
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
216
- `,Lf=P.span`
157
+ `,Pc=g.span`
217
158
  display: inline-flex;
218
159
  align-items: center;
219
160
  justify-content: center;
@@ -223,57 +164,57 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
223
164
  outline: none;
224
165
  box-shadow: var(--shadow-hover-black-card);
225
166
  }
226
- `,Hs={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},Y=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in Hs?Hs[t]:t;return g.jsx(Lf,{$color:n,className:r,children:typeof e=="function"?g.jsx(e,{size:i,...o}):e})},Ur=p.createContext({});function Wr(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const js=typeof window<"u",Gs=js?p.useLayoutEffect:p.useEffect,Un=p.createContext(null);function Kr(e,t){e.indexOf(t)===-1&&e.push(t)}function Yr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Oe=(e,t,n)=>n>t?t:n<e?e:n;function qr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Lt=()=>{},Ue=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(Lt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(qr(t,n))},Ue=(e,t,n)=>{if(!e)throw new Error(qr(t,n))});const We={},Us=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ws(e){return typeof e=="object"&&e!==null}const Ks=e=>/^0[^.\s]+$/u.test(e);function Xr(e){let t;return()=>(t===void 0&&(t=e()),t)}const $e=e=>e,_f=(e,t)=>n=>t(e(n)),rn=(...e)=>e.reduce(_f),on=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Zr{constructor(){this.subscriptions=[]}add(t){return Kr(this.subscriptions,t),()=>Yr(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Be=e=>e*1e3,Ee=e=>e/1e3;function Ys(e,t){return t?e*(1e3/t):0}const qs=new Set;function Jr(e,t,n){e||qs.has(t)||(console.warn(qr(t,n)),qs.add(t))}const Xs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Nf=1e-7,Of=12;function Bf(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Xs(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Nf&&++a<Of);return s}function sn(e,t,n,r){if(e===t&&n===r)return $e;const o=i=>Bf(i,0,1,e,n);return i=>i===0||i===1?i:Xs(o(i),t,r)}const Zs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Js=e=>t=>1-e(1-t),Qs=sn(.33,1.53,.69,.99),Qr=Js(Qs),ea=Zs(Qr),ta=e=>(e*=2)<1?.5*Qr(e):.5*(2-Math.pow(2,-10*(e-1))),eo=e=>1-Math.sin(Math.acos(e)),na=Js(eo),ra=Zs(eo),zf=sn(.42,0,1,1),Hf=sn(0,0,.58,1),oa=sn(.42,0,.58,1),jf=e=>Array.isArray(e)&&typeof e[0]!="number",ia=e=>Array.isArray(e)&&typeof e[0]=="number",sa={linear:$e,easeIn:zf,easeInOut:oa,easeOut:Hf,circIn:eo,circInOut:ra,circOut:na,backIn:Qr,backInOut:ea,backOut:Qs,anticipate:ta},Gf=e=>typeof e=="string",aa=e=>{if(ia(e)){Ue(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return sn(t,n,r,o)}else if(Gf(e))return Ue(sa[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),sa[e];return e},Wn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Uf(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){s.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,u=!1,h=!1)=>{const m=h&&o?n:r;return u&&s.add(d),m.has(d)||m.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(a=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,c.process(d))}};return c}const Wf=40;function la(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Wn.reduce((w,M)=>(w[M]=Uf(i),w),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:f,postRender:m}=s,y=()=>{const w=We.useManualTiming?o.timestamp:performance.now();n=!1,We.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,Wf),1)),o.timestamp=w,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),d.process(o),u.process(o),h.process(o),f.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},x=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Wn.reduce((w,M)=>{const b=s[M];return w[M]=($,k=!1,E=!1)=>(n||x(),b.schedule($,k,E)),w},{}),cancel:w=>{for(let M=0;M<Wn.length;M++)s[Wn[M]].cancel(w)},state:o,steps:s}}const{schedule:ee,cancel:et,state:ue,steps:to}=la(typeof requestAnimationFrame<"u"?requestAnimationFrame:$e,!0);let Kn;function Kf(){Kn=void 0}const ve={now:()=>(Kn===void 0&&ve.set(ue.isProcessing||We.useManualTiming?ue.timestamp:performance.now()),Kn),set:e=>{Kn=e,queueMicrotask(Kf)}},ca=e=>t=>typeof t=="string"&&t.startsWith(e),ua=ca("--"),Yf=ca("var(--"),no=e=>Yf(e)?qf.test(e.split("/*")[0].trim()):!1,qf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function da(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const _t={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},an={..._t,transform:e=>Oe(0,1,e)},Yn={..._t,default:1},ln=e=>Math.round(e*1e5)/1e5,ro=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Xf(e){return e==null}const Zf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,oo=(e,t)=>n=>!!(typeof n=="string"&&Zf.test(n)&&n.startsWith(e)||t&&!Xf(n)&&Object.prototype.hasOwnProperty.call(n,t)),fa=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(ro);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Jf=e=>Oe(0,255,e),io={..._t,transform:e=>Math.round(Jf(e))},wt={test:oo("rgb","red"),parse:fa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+io.transform(e)+", "+io.transform(t)+", "+io.transform(n)+", "+ln(an.transform(r))+")"};function Qf(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 so={test:oo("#"),parse:Qf,transform:wt.transform},cn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tt=cn("deg"),ze=cn("%"),V=cn("px"),eh=cn("vh"),th=cn("vw"),ha={...ze,parse:e=>ze.parse(e)/100,transform:e=>ze.transform(e*100)},Nt={test:oo("hsl","hue"),parse:fa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ze.transform(ln(t))+", "+ze.transform(ln(n))+", "+ln(an.transform(r))+")"},ie={test:e=>wt.test(e)||so.test(e)||Nt.test(e),parse:e=>wt.test(e)?wt.parse(e):Nt.test(e)?Nt.parse(e):so.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?wt.transform(e):Nt.transform(e),getAnimatableNone:e=>{const t=ie.parse(e);return t.alpha=0,ie.transform(t)}},nh=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rh(e){return isNaN(e)&&typeof e=="string"&&(e.match(ro)?.length||0)+(e.match(nh)?.length||0)>0}const pa="number",ma="color",oh="var",ih="var(",ga="${}",sh=/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 un(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(sh,l=>(ie.test(l)?(r.color.push(i),o.push(ma),n.push(ie.parse(l))):l.startsWith(ih)?(r.var.push(i),o.push(oh),n.push(l)):(r.number.push(i),o.push(pa),n.push(parseFloat(l))),++i,ga)).split(ga);return{values:n,split:a,indexes:r,types:o}}function ya(e){return un(e).values}function va(e){const{split:t,types:n}=un(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===pa?i+=ln(o[s]):a===ma?i+=ie.transform(o[s]):i+=o[s]}return i}}const ah=e=>typeof e=="number"?0:ie.test(e)?ie.getAnimatableNone(e):e;function lh(e){const t=ya(e);return va(e)(t.map(ah))}const nt={test:rh,parse:ya,createTransformer:va,getAnimatableNone:lh};function ao(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 ch({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=ao(l,a,e+1/3),i=ao(l,a,e),s=ao(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function qn(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,lo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},uh=[so,wt,Nt],dh=e=>uh.find(t=>t.test(e));function wa(e){const t=dh(e);if(Lt(!!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===Nt&&(n=ch(n)),n}const ba=(e,t)=>{const n=wa(e),r=wa(t);if(!n||!r)return qn(e,t);const o={...n};return i=>(o.red=lo(n.red,r.red,i),o.green=lo(n.green,r.green,i),o.blue=lo(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),wt.transform(o))},co=new Set(["none","hidden"]);function fh(e,t){return co.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hh(e,t){return n=>ne(e,t,n)}function uo(e){return typeof e=="number"?hh:typeof e=="string"?no(e)?qn:ie.test(e)?ba:gh:Array.isArray(e)?xa:typeof e=="object"?ie.test(e)?ba:ph:qn}function xa(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>uo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function ph(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=uo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function mh(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const gh=(e,t)=>{const n=nt.createTransformer(t),r=un(e),o=un(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?co.has(e)&&!o.values.length||co.has(t)&&!r.values.length?fh(e,t):rn(xa(mh(r,o),o.values),n):(Lt(!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"),qn(e,t))};function Sa(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):uo(e)(e,t)}const yh=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ee.update(t,n),stop:()=>et(t),now:()=>ue.isProcessing?ue.timestamp:ve.now()}},Ca=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Xn=2e4;function fo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xn;)t+=n,r=e.next(t);return t>=Xn?1/0:t}function vh(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(fo(r),Xn);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ee(o)}}const wh=5;function Ta(e,t,n){const r=Math.max(t-wh,0);return Ys(n-e(r),t-r)}const re={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},ho=.001;function bh({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;Lt(e<=Be(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Oe(re.minDamping,re.maxDamping,s),e=Oe(re.minDuration,re.maxDuration,Ee(e)),s<1?(o=c=>{const d=c*s,u=d*e,h=d-n,f=po(c,s),m=Math.exp(-u);return ho-h/f*m},i=c=>{const u=c*s*e,h=u*n+n,f=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-u),y=po(Math.pow(c,2),s);return(-o(c)+ho>0?-1:1)*((h-f)*m)/y}):(o=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-ho+d*u},i=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=Sh(o,i,a);if(e=Be(e),isNaN(l))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const xh=12;function Sh(e,t,n){let r=n;for(let o=1;o<xh;o++)r=r-e(r)/t(r);return r}function po(e,t){return e*Math.sqrt(1-t*t)}const Ch=["duration","bounce"],Th=["stiffness","damping","mass"];function ka(e,t){return t.some(n=>e[n]!==void 0)}function kh(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!ka(e,Th)&&ka(e,Ch))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Oe(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=bh(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function Zn(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:f}=kh({...n,velocity:-Ee(n.velocity||0)}),m=h||0,y=c/(2*Math.sqrt(l*d)),x=s-i,v=Ee(Math.sqrt(l/d)),T=Math.abs(x)<5;r||(r=T?re.restSpeed.granular:re.restSpeed.default),o||(o=T?re.restDelta.granular:re.restDelta.default);let w;if(y<1){const b=po(v,y);w=$=>{const k=Math.exp(-y*v*$);return s-k*((m+y*v*x)/b*Math.sin(b*$)+x*Math.cos(b*$))}}else if(y===1)w=b=>s-Math.exp(-v*b)*(x+(m+v*x)*b);else{const b=v*Math.sqrt(y*y-1);w=$=>{const k=Math.exp(-y*v*$),E=Math.min(b*$,300);return s-k*((m+y*v*x)*Math.sinh(E)+b*x*Math.cosh(E))/b}}const M={calculatedDuration:f&&u||null,next:b=>{const $=w(b);if(f)a.done=b>=u;else{let k=b===0?m:0;y<1&&(k=b===0?Be(m):Ta(w,b,$));const E=Math.abs(k)<=r,D=Math.abs(s-$)<=o;a.done=E&&D}return a.value=a.done?s:$,a},toString:()=>{const b=Math.min(fo(M),Xn),$=Ca(k=>M.next(b*k).value,b,30);return b+"ms "+$},toTransition:()=>{}};return M}Zn.applyToOptions=e=>{const t=vh(e,100,Zn);return e.ease=t.ease,e.duration=Be(t.duration),e.type="keyframes",e};function mo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},f=E=>a!==void 0&&E<a||l!==void 0&&E>l,m=E=>a===void 0?l:l===void 0||Math.abs(a-E)<Math.abs(l-E)?a:l;let y=n*t;const x=u+y,v=s===void 0?x:s(x);v!==x&&(y=v-u);const T=E=>-y*Math.exp(-E/r),w=E=>v+T(E),M=E=>{const D=T(E),A=w(E);h.done=Math.abs(D)<=c,h.value=h.done?v:A};let b,$;const k=E=>{f(h.value)&&(b=E,$=Zn({keyframes:[h.value,m(h.value)],velocity:Ta(w,E,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:E=>{let D=!1;return!$&&b===void 0&&(D=!0,M(E),k(E)),b!==void 0&&E>=b?$.next(E-b):(!D&&M(E),h)}}}function Ph(e,t,n){const r=[],o=n||We.mix||Sa,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||$e:t;a=rn(l,a)}r.push(a)}return r}function $h(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ue(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ph(t,r,o),l=a.length,c=d=>{if(s&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const h=on(e[u],e[u+1],d);return a[u](h)};return n?d=>c(Oe(e[0],e[i-1],d)):c}function Eh(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=on(0,t,r);e.push(ne(n,1,o))}}function Mh(e){const t=[0];return Eh(t,e.length-1),t}function Ah(e,t){return e.map(n=>n*t)}function Dh(e,t){return e.map(()=>t||oa).splice(0,e.length-1)}function Ot({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=jf(r)?r.map(aa):aa(r),i={done:!1,value:t[0]},s=Ah(n&&n.length===t.length?n:Mh(t),e),a=$h(s,t,{ease:Array.isArray(o)?o:Dh(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Vh=e=>e!==null;function go(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Vh),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Fh={decay:mo,inertia:mo,tween:Ot,keyframes:Ot,spring:Zn};function Pa(e){typeof e.type=="string"&&(e.type=Fh[e.type])}class yo{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 Ih=e=>e/100;class vo extends yo{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!==ve.now()&&this.tick(ve.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;Pa(t);const{type:n=Ot,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Ot;process.env.NODE_ENV!=="production"&&l!==Ot&&Ue(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Ot&&typeof a[0]!="number"&&(this.mixKeyframes=rn(Ih,Sa(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=fo(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:f,type:m,onUpdate:y,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 v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,M=r;if(u){const E=Math.min(this.currentTime,o)/a;let D=Math.floor(E),A=E%1;!A&&E>=1&&(A=1),A===1&&D--,D=Math.min(D,u+1),D%2&&(h==="reverse"?(A=1-A,f&&(A-=f/a)):h==="mirror"&&(M=s)),w=Oe(0,1,A)*a}const b=T?{done:!1,value:d[0]}:M.next(w);i&&(b.value=i(b.value));let{done:$}=b;!T&&l!==null&&($=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return k&&m!==mo&&(b.value=go(d,this.options,x,this.speed)),y&&y(b.value),k&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return Ee(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(this.currentTime)}set time(t){t=Be(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(ve.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=yh,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(ve.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 Rh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const bt=e=>e*180/Math.PI,wo=e=>{const t=bt(Math.atan2(e[1],e[0]));return bo(t)},Lh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:wo,rotateZ:wo,skewX:e=>bt(Math.atan(e[1])),skewY:e=>bt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bo=e=>(e=e%360,e<0&&(e+=360),e),$a=wo,Ea=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ma=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),_h={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ea,scaleY:Ma,scale:e=>(Ea(e)+Ma(e))/2,rotateX:e=>bo(bt(Math.atan2(e[6],e[5]))),rotateY:e=>bo(bt(Math.atan2(-e[2],e[0]))),rotateZ:$a,rotate:$a,skewX:e=>bt(Math.atan(e[4])),skewY:e=>bt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xo(e){return e.includes("scale")?1:0}function So(e,t){if(!e||e==="none")return xo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=_h,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Lh,o=a}if(!o)return xo(t);const i=r[t],s=o[1].split(",").map(Oh);return typeof i=="function"?i(s):s[i]}const Nh=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return So(n,t)};function Oh(e){return parseFloat(e.trim())}const Bt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zt=new Set(Bt),Aa=e=>e===_t||e===V,Bh=new Set(["x","y","z"]),zh=Bt.filter(e=>!Bh.has(e));function Hh(e){const t=[];return zh.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const rt={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})=>So(t,"x"),y:(e,{transform:t})=>So(t,"y")};rt.translateX=rt.x,rt.translateY=rt.y;const xt=new Set;let Co=!1,To=!1,ko=!1;function Da(){if(To){const e=Array.from(xt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Hh(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}To=!1,Co=!1,xt.forEach(e=>e.complete(ko)),xt.clear()}function Va(){xt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(To=!0)})}function jh(){ko=!0,Va(),Da(),ko=!1}class Po{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(xt.add(this),Co||(Co=!0,ee.read(Va),ee.resolveKeyframes(Da))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Rh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xt.delete(this)}cancel(){this.state==="scheduled"&&(xt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Gh=e=>e.startsWith("--");function Uh(e,t,n){Gh(t)?e.style.setProperty(t,n):e.style[t]=n}const Wh=Xr(()=>window.ScrollTimeline!==void 0),Kh={};function Yh(e,t){const n=Xr(e);return()=>Kh[t]??n()}const Fa=Yh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),dn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ia={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dn([0,.65,.55,1]),circOut:dn([.55,0,1,.45]),backIn:dn([.31,.01,.66,-.59]),backOut:dn([.33,1.53,.69,.99])};function Ra(e,t){if(e)return typeof e=="function"?Fa()?Ca(e,t):"ease-out":ia(e)?dn(e):Array.isArray(e)?e.map(n=>Ra(n,t)||Ia.easeOut):Ia[e]}function qh(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=Ra(a,o);Array.isArray(u)&&(d.easing=u);const h={delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function La(e){return typeof e=="function"&&"applyToOptions"in e}function Xh({type:e,...t}){return La(e)&&Fa()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Zh extends yo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Ue(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Xh(t);this.animation=qh(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=go(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):Uh(n,r,d),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ee(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Be(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Wh()?(this.animation.timeline=t,$e):n(this)}}const _a={anticipate:ta,backInOut:ea,circInOut:ra};function Jh(e){return e in _a}function Qh(e){typeof e.ease=="string"&&Jh(e.ease)&&(e.ease=_a[e.ease])}const $o=10;class ep extends Zh{constructor(t){Qh(t),Pa(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new vo({...s,autoplay:!1}),l=Math.max($o,ve.now()-this.startTime),c=Oe(0,$o,l-$o);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const Na=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nt.test(e)||e==="0")&&!e.startsWith("url("));function tp(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 np(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Na(o,t),a=Na(i,t);return Lt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:tp(e)||(n==="spring"||La(n))&&r}function Eo(e){e.duration=0,e.type="keyframes"}const rp=new Set(["opacity","clipPath","filter","transform"]),op=Xr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ip(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return op()&&n&&rp.has(n)&&(n!=="transform"||!c)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const sp=40;class ap extends yo{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ve.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:d,...u},f=d?.KeyframeResolver||Po;this.keyframeResolver=new f(a,(m,y,x)=>this.onKeyframesResolved(m,y,h,!x),l,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=ve.now(),np(t,i,s,a)||((We.instantAnimations||!l)&&d?.(go(t,r,n)),t[0]=t[t.length-1],Eo(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>sp?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!c&&ip(h)?new ep({...h,element:h.motionValue.owner.current}):new vo(h);f.finished.then(()=>this.notifyFinished()).catch($e),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}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(),jh()),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 lp=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cp(e){const t=lp.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const up=4;function Oa(e,t,n=1){Ue(n<=up,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=cp(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Us(s)?parseFloat(s):s}return no(o)?Oa(o,t,n+1):o}function Mo(e,t){return e?.[t]??e?.default??e}const dp={type:"spring",stiffness:500,damping:25,restSpeed:10},fp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hp={type:"keyframes",duration:.8},pp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mp=(e,{keyframes:t})=>t.length>2?hp:zt.has(e)?e.startsWith("scale")?fp(t[1]):dp:pp;function gp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const yp=e=>e!==null;function vp(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(yp),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function Ba(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}const Ao=(e,t,n,r={},o,i)=>s=>{const a=Mo(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Be(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};gp(a)||Object.assign(d,mp(e,d)),d.duration&&(d.duration=Be(d.duration)),d.repeatDelay&&(d.repeatDelay=Be(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Eo(d),d.delay===0&&(u=!0)),(We.instantAnimations||We.skipAnimations)&&(u=!0,Eo(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!i&&t.get()!==void 0){const h=vp(d.keyframes,a);if(h!==void 0){ee.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new vo(d):new ap(d)},za=new Set(["width","height","top","left","right","bottom",...Bt]),Ha=30,wp=e=>!isNaN(parseFloat(e));class bp{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ve.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ve.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=wp(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Jr(!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 Zr);const r=this.events[t].add(n);return t==="change"?()=>{r(),ee.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=ve.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ha)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ha);return Ys(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 Ht(e,t){return new bp(e,t)}function ja(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Do(e,t,n,r){if(typeof t=="function"){const[o,i]=ja(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=ja(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function jt(e,t,n){const r=e.getProps();return Do(r,t,n!==void 0?n:r.custom,e)}const Vo=e=>Array.isArray(e);function xp(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ht(n))}function Sp(e){return Vo(e)?e[e.length-1]||0:e}function Cp(e,t){const n=jt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Sp(i[s]);xp(e,s,a)}}const he=e=>!!(e&&e.getVelocity);function Tp(e){return!!(he(e)&&e.add)}function Fo(e,t){const n=e.getValue("willChange");if(Tp(n))return n.add(t);if(!n&&We.WillChange){const r=new We.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Io(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Ga="data-"+Io("framerAppearId");function Ua(e){return e.props[Ga]}function kp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wa(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in a){const u=e.getValue(d,e.latestValues[d]??null),h=a[d];if(h===void 0||c&&kp(c,d))continue;const f={delay:n,...Mo(i||{},d)},m=u.get();if(m!==void 0&&!u.isAnimating&&!Array.isArray(h)&&h===m&&!f.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Ua(e);if(v){const T=window.MotionHandoffAnimation(v,d,ee);T!==null&&(f.startTime=T,y=!0)}}Fo(e,d),u.start(Ao(d,u,h,e.shouldReduceMotion&&za.has(d)?{type:!1}:f,e,y));const x=u.animation;x&&l.push(x)}return s&&Promise.all(l).then(()=>{ee.update(()=>{s&&Cp(e,s)})}),l}function Ro(e,t,n={}){const r=jt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Wa(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=o;return Pp(e,t,l,c,d,u,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(n.delay)])}function Pp(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ro(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Ba(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function $p(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Ro(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Ro(e,t,n);else{const o=typeof t=="function"?jt(e,t,n.custom):t;r=Promise.all(Wa(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ep={test:e=>e==="auto",parse:e=>e},Ka=e=>t=>t.test(e),Ya=[_t,V,ze,tt,th,eh,Ep],qa=e=>Ya.find(Ka(e));function Mp(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ks(e):!0}const Ap=new Set(["brightness","contrast","saturate","opacity"]);function Dp(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ro)||[];if(!r)return e;const o=n.replace(r,"");let i=Ap.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Vp=/\b([a-z-]*)\(.*?\)/gu,Lo={...nt,getAnimatableNone:e=>{const t=e.match(Vp);return t?t.map(Dp).join(" "):e}},Xa={..._t,transform:Math.round},_o={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,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:tt,rotateX:tt,rotateY:tt,rotateZ:tt,scale:Yn,scaleX:Yn,scaleY:Yn,scaleZ:Yn,skew:tt,skewX:tt,skewY:tt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:an,originX:ha,originY:ha,originZ:V},zIndex:Xa,fillOpacity:an,strokeOpacity:an,numOctaves:Xa},Fp={..._o,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:Lo,WebkitFilter:Lo},Za=e=>Fp[e];function Ja(e,t){let n=Za(e);return n!==Lo&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ip=new Set(["auto","none","0"]);function Rp(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Ip.has(i)&&un(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Ja(n,o)}class Lp extends Po{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let u=t[d];if(typeof u=="string"&&(u=u.trim(),no(u))){const h=Oa(u,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!za.has(r)||t.length!==2)return;const[o,i]=t,s=qa(o),a=qa(i),l=da(o),c=da(i);if(l!==c&&rt[r]){this.needsMeasurement=!0;return}if(s!==a)if(Aa(s)&&Aa(a))for(let d=0;d<t.length;d++){const u=t[d];typeof u=="string"&&(t[d]=parseFloat(u))}else rt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Mp(t[o]))&&r.push(o);r.length&&Rp(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=rt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=rt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function _p(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 Qa=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function el(e){return Ws(e)&&"offsetHeight"in e}const{schedule:No}=la(queueMicrotask,!1),Fe={x:!1,y:!1};function tl(){return Fe.x||Fe.y}function Np(e){return e==="x"||e==="y"?Fe[e]?null:(Fe[e]=!0,()=>{Fe[e]=!1}):Fe.x||Fe.y?null:(Fe.x=Fe.y=!0,()=>{Fe.x=Fe.y=!1})}function nl(e,t){const n=_p(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function rl(e){return!(e.pointerType==="touch"||tl())}function Op(e,t,n={}){const[r,o,i]=nl(e,n),s=a=>{if(!rl(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const d=u=>{rl(u)&&(c(u),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ol=(e,t)=>t?e===t?!0:ol(e,t.parentElement):!1,Oo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Bp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function il(e){return Bp.has(e.tagName)||e.isContentEditable===!0}const Jn=new WeakSet;function sl(e){return t=>{t.key==="Enter"&&e(t)}}function Bo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zp=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=sl(()=>{if(Jn.has(n))return;Bo(n,"down");const o=sl(()=>{Bo(n,"up")}),i=()=>Bo(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function al(e){return Oo(e)&&!tl()}function Hp(e,t,n={}){const[r,o,i]=nl(e,n),s=a=>{const l=a.currentTarget;if(!al(a))return;Jn.add(l);const c=t(l,a),d=(f,m)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",h),Jn.has(l)&&Jn.delete(l),al(f)&&typeof c=="function"&&c(f,{success:m})},u=f=>{d(f,l===window||l===document||n.useGlobalTarget||ol(l,f.target))},h=f=>{d(f,!1)};window.addEventListener("pointerup",u,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),el(a)&&(a.addEventListener("focus",c=>zp(c,o)),!il(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function ll(e){return Ws(e)&&"ownerSVGElement"in e}function jp(e){return ll(e)&&e.tagName==="svg"}const Gp=[...Ya,ie,nt],Up=e=>Gp.find(Ka(e)),cl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gt=()=>({x:cl(),y:cl()}),ul=()=>({min:0,max:0}),ae=()=>({x:ul(),y:ul()}),zo={current:null},dl={current:!1},Wp=typeof window<"u";function Kp(){if(dl.current=!0,!!Wp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zo.current=e.matches;e.addEventListener("change",t),t()}else zo.current=!1}const Yp=new WeakMap;function Qn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fn(e){return typeof e=="string"||Array.isArray(e)}const Ho=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jo=["initial",...Ho];function er(e){return Qn(e.animate)||jo.some(t=>fn(e[t]))}function fl(e){return!!(er(e)||e.variants)}function qp(e,t,n){for(const r in t){const o=t[r],i=n[r];if(he(o))e.addValue(r,o);else if(he(i))e.addValue(r,Ht(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Ht(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let tr={};function pl(e){tr=e}function Xp(){return tr}class Zp{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Po,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=ve.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ee.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=er(n),this.isVariantNode=fl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in u){const f=u[h];l[h]!==void 0&&he(f)&&f.set(l[h])}}mount(t){this.current=t,Yp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(dl.current||Kp(),this.shouldReduceMotion=zo.current),process.env.NODE_ENV!=="production"&&Jr(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(),et(this.notifyUpdate),et(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=zt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ee.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),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 tr){const n=tr[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ae()}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<hl.length;r++){const o=hl[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=qp(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=Ht(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"&&(Us(r)||Ks(r))?r=parseFloat(r):!Up(r)&&nt.test(n)&&(r=Ja(t,n)),this.setBaseTarget(t,he(r)?r.get():r)),he(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=Do(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!he(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 Zr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){No.render(this.render)}}class ot{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ml extends Zp{constructor(){super(...arguments),this.KeyframeResolver=Lp}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;he(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function gl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Jp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Qp(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 Go(e){return e===void 0||e===1}function Uo({scale:e,scaleX:t,scaleY:n}){return!Go(e)||!Go(t)||!Go(n)}function St(e){return Uo(e)||yl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function yl(e){return vl(e.x)||vl(e.y)}function vl(e){return e&&e!=="0%"}function nr(e,t,n){const r=e-n,o=t*r;return n+o}function wl(e,t,n,r,o){return o!==void 0&&(e=nr(e,o,r)),nr(e,n,r)+t}function Wo(e,t=0,n=1,r,o){e.min=wl(e.min,t,n,r,o),e.max=wl(e.max,t,n,r,o)}function bl(e,{x:t,y:n}){Wo(e.x,t.translate,t.scale,t.originPoint),Wo(e.y,n.translate,n.scale,n.originPoint)}const xl=.999999999999,Sl=1.0000000000001;function em(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Wt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,bl(e,s)),r&&St(i.latestValues)&&Wt(e,i.latestValues))}t.x<Sl&&t.x>xl&&(t.x=1),t.y<Sl&&t.y>xl&&(t.y=1)}function Ut(e,t){e.min=e.min+t,e.max=e.max+t}function Cl(e,t,n,r,o=.5){const i=ne(e.min,e.max,o);Wo(e,t,n,i,r)}function Wt(e,t){Cl(e.x,t.x,t.scaleX,t.scale,t.originX),Cl(e.y,t.y,t.scaleY,t.scale,t.originY)}function Tl(e,t){return gl(Qp(e.getBoundingClientRect(),t))}function tm(e,t,n){const r=Tl(e,n),{scroll:o}=t;return o&&(Ut(r.x,o.offset.x),Ut(r.y,o.offset.y)),r}const nm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rm=Bt.length;function om(e,t,n){let r="",o=!0;for(let i=0;i<rm;i++){const s=Bt[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Qa(a,_o[s]);if(!l){o=!1;const d=nm[s]||s;r+=`${d}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Ko(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(zt.has(l)){s=!0;continue}else if(ua(l)){o[l]=c;continue}else{const d=Qa(c,_o[l]);l.startsWith("origin")?(a=!0,i[l]=d):r[l]=d}}if(t.transform||(s||n?r.transform=om(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${l} ${c} ${d}`}}function kl(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function Pl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Pl(e,t.target.x),r=Pl(e,t.target.y);return`${n}% ${r}%`}},im={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=nt.parse(e);if(o.length>5)return r;const i=nt.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=ne(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},Yo={borderRadius:{...hn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hn,borderTopRightRadius:hn,borderBottomLeftRadius:hn,borderBottomRightRadius:hn,boxShadow:im};function $l(e,{layout:t,layoutId:n}){return zt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Yo[e]||e==="opacity")}function qo(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const s in r)(he(r[s])||o&&he(o[s])||$l(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}function sm(e){return window.getComputedStyle(e)}class am extends ml{constructor(){super(...arguments),this.type="html",this.renderInstance=kl}readValueFromInstance(t,n){if(zt.has(n))return this.projection?.isProjecting?xo(n):Nh(t,n);{const r=sm(t),o=(ua(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tl(t,n)}build(t,n,r){Ko(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return qo(t,n,r)}}const lm={offset:"stroke-dashoffset",array:"stroke-dasharray"},cm={offset:"strokeDashoffset",array:"strokeDasharray"};function um(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?lm:cm;e[i.offset]=V.transform(-r);const s=V.transform(t),a=V.transform(n);e[i.array]=`${s} ${a}`}const dm=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function El(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,d){if(Ko(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:h}=e;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete u.transformBox);for(const f of dm)u[f]!==void 0&&(h[f]=u[f],delete u[f]);t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),o!==void 0&&um(u,o,i,s,!1)}const Ml=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"]),Al=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fm(e,t,n,r){kl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ml.has(o)?o:Io(o),t.attrs[o])}function Dl(e,t,n){const r=qo(e,t,n);for(const o in e)if(he(e[o])||he(t[o])){const i=Bt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class hm extends ml{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(zt.has(n)){const r=Za(n);return r&&r.default||0}return n=Ml.has(n)?n:Io(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Dl(t,n,r)}build(t,n,r){El(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){fm(t,n,r,o)}mount(t){this.isSVGTag=Al(t.tagName),super.mount(t)}}const pm=jo.length;function Vl(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Vl(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pm;n++){const r=jo[n],o=e.props[r];(fn(o)||o===!1)&&(t[r]=o)}return t}function Fl(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 mm=[...Ho].reverse(),gm=Ho.length;function ym(e){return t=>Promise.all(t.map(({animation:n,options:r})=>$p(e,n,r)))}function vm(e){let t=ym(e),n=Il(),r=!0;const o=l=>(c,d)=>{const u=jt(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(u){const{transition:h,transitionEnd:f,...m}=u;c={...c,...m,...f}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,d=Vl(e.parent)||{},u=[],h=new Set;let f={},m=1/0;for(let x=0;x<gm;x++){const v=mm[x],T=n[v],w=c[v]!==void 0?c[v]:d[v],M=fn(w),b=v===l?T.isActive:null;b===!1&&(m=x);let $=w===d[v]&&w!==c[v]&&M;if($&&r&&e.manuallyAnimateOnMount&&($=!1),T.protectedKeys={...f},!T.isActive&&b===null||!w&&!T.prevProp||Qn(w)||typeof w=="boolean")continue;const k=wm(T.prevProp,w);let E=k||v===l&&T.isActive&&!$&&M||x>m&&M,D=!1;const A=Array.isArray(w)?w:[w];let I=A.reduce(o(v),{});b===!1&&(I={});const{prevResolvedValues:N={}}=T,j={...N,...I},G=R=>{E=!0,h.has(R)&&(D=!0,h.delete(R)),T.needsAnimating[R]=!0;const W=e.getValue(R);W&&(W.liveStyle=!1)};for(const R in j){const W=I[R],q=N[R];if(f.hasOwnProperty(R))continue;let Z=!1;Vo(W)&&Vo(q)?Z=!Fl(W,q):Z=W!==q,Z?W!=null?G(R):h.add(R):W!==void 0&&h.has(R)?G(R):T.protectedKeys[R]=!0}T.prevProp=w,T.prevResolvedValues=I,T.isActive&&(f={...f,...I}),r&&e.blockInitialAnimation&&(E=!1);const X=$&&k;E&&(!X||D)&&u.push(...A.map(R=>{const W={type:v};if(typeof R=="string"&&r&&!X&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,Z=jt(q,R);if(q.enteringChildren&&Z){const{delayChildren:de}=Z.transition||{};W.delay=Ba(q.enteringChildren,e,de)}}return{animation:R,options:W}}))}if(h.size){const x={};if(typeof c.initial!="boolean"){const v=jt(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(x.transition=v.transition)}h.forEach(v=>{const T=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),x[v]=T??null}),u.push({animation:x})}let y=!!u.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(u):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(u=>u.animationState?.setActive(l,c)),n[l].isActive=c;const d=s(l);for(const u in n)n[u].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Il()}}}function wm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fl(t,e):!1}function Ct(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Il(){return{animate:Ct(!0),whileInView:Ct(),whileHover:Ct(),whileTap:Ct(),whileDrag:Ct(),whileFocus:Ct(),exit:Ct()}}const Rl=1e-4,bm=1-Rl,xm=1+Rl,Ll=.01,Sm=0-Ll,Cm=0+Ll;function we(e){return e.max-e.min}function Tm(e,t,n){return Math.abs(e-t)<=n}function _l(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=we(n)/we(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bm&&e.scale<=xm||isNaN(e.scale))&&(e.scale=1),(e.translate>=Sm&&e.translate<=Cm||isNaN(e.translate))&&(e.translate=0)}function pn(e,t,n,r){_l(e.x,t.x,n.x,r?r.originX:void 0),_l(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+we(t)}function km(e,t,n){Nl(e.x,t.x,n.x),Nl(e.y,t.y,n.y)}function Ol(e,t,n){e.min=t.min-n.min,e.max=e.min+we(t)}function rr(e,t,n){Ol(e.x,t.x,n.x),Ol(e.y,t.y,n.y)}function Bl(e,t,n,r,o){return e-=t,e=nr(e,1/n,r),o!==void 0&&(e=nr(e,1/o,r)),e}function Pm(e,t=0,n=1,r=.5,o,i=e,s=e){if(ze.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=Bl(e.min,t,n,a,o),e.max=Bl(e.max,t,n,a,o)}function zl(e,t,[n,r,o],i,s){Pm(e,t[n],t[r],t[o],t.scale,i,s)}const $m=["x","scaleX","originX"],Em=["y","scaleY","originY"];function Hl(e,t,n,r){zl(e.x,t,$m,n?n.x:void 0,r?r.x:void 0),zl(e.y,t,Em,n?n.y:void 0,r?r.y:void 0)}function jl(e,t){e.min=t.min,e.max=t.max}function Ie(e,t){jl(e.x,t.x),jl(e.y,t.y)}function Gl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ul(e){return e.translate===0&&e.scale===1}function Wl(e){return Ul(e.x)&&Ul(e.y)}function Kl(e,t){return e.min===t.min&&e.max===t.max}function Mm(e,t){return Kl(e.x,t.x)&&Kl(e.y,t.y)}function Yl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ql(e,t){return Yl(e.x,t.x)&&Yl(e.y,t.y)}function Xl(e){return we(e.x)/we(e.y)}function Zl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Me(e){return[e("x"),e("y")]}function Am(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:u,rotateY:h,skewX:f,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),u&&(r+=`rotateX(${u}deg) `),h&&(r+=`rotateY(${h}deg) `),f&&(r+=`skewX(${f}deg) `),m&&(r+=`skewY(${m}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 Jl=["TopLeft","TopRight","BottomLeft","BottomRight"],Dm=Jl.length,Ql=e=>typeof e=="string"?parseFloat(e):e,ec=e=>typeof e=="number"||V.test(e);function Vm(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,Fm(r)),e.opacityExit=ne(t.opacity??1,0,Im(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<Dm;s++){const a=`border${Jl[s]}Radius`;let l=tc(t,a),c=tc(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ec(l)===ec(c)?(e[a]=Math.max(ne(Ql(l),Ql(c),r),0),(ze.test(c)||ze.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function tc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Fm=nc(0,.5,na),Im=nc(.5,.95,$e);function nc(e,t,n){return r=>r<e?0:r>t?1:n(on(e,t,r))}function Rm(e,t){const n=ve.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(et(r),e(i-t))};return ee.setup(r,!0),()=>et(r)}function mn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function or(e){return he(e)?e.get():e}function Lm(e,t,n){const r=he(e)?e:Ht(e);return r.start(Ao("",r,t,n)),r.animation}const _m=(e,t)=>e.depth-t.depth;class Nm{constructor(){this.children=[],this.isDirty=!1}add(t){Kr(this.children,t),this.isDirty=!0}remove(t){Yr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_m),this.isDirty=!1,this.children.forEach(t)}}class Om{constructor(){this.members=[]}add(t){Kr(this.members,t),t.scheduleRender()}remove(t){if(Yr(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 i=this.members[o];if(i.isPresent!==!1){r=i;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)}}const ir={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Xo=["","X","Y","Z"],Bm=1e3;let zm=0;function Zo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ua(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ee,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&rc(r)}function oc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=zm++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Gm),this.nodes.forEach(Ym),this.nodes.forEach(qm),this.nodes.forEach(Um)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nm)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Zr),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=ll(s)&&!jp(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let d,u=0;const h=()=>this.root.updateBlockedByResize=!1;ee.read(()=>{u=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==u&&(u=f,this.root.updateBlockedByResize=!0,d&&d(),d=Rm(h,250),ir.hasAnimatedSinceResize&&(ir.hasAnimatedSinceResize=!1,this.nodes.forEach(ac)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||eg,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=c.getProps(),v=!this.targetLayout||!ql(this.targetLayout,f),T=!u&&h;if(this.options.layoutRoot||this.resumeFrom||T||u&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Mo(m,"layout"),onPlay:y,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(d,T)}else u||ac(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),et(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(Xm),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&rc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ic);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Km),this.nodes.forEach(Hm),this.nodes.forEach(jm)):this.nodes.forEach(sc),this.clearAllSnapshots();const a=ve.now();ue.delta=Oe(0,1e3/60,a-ue.timestamp),ue.timestamp=a,ue.isProcessing=!0,to.update.process(ue),to.preRender.process(ue),to.render.process(ue),ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,No.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Wm),this.sharedNodes.forEach(Zm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!we(this.snapshot.measuredBox.x)&&!we(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Wl(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||St(this.latestValues)||d)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),tg(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ae();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ng))){const{scroll:c}=this.root;c&&(Ut(a.x,c.offset.x),Ut(a.y,c.offset.y))}return a}removeElementScroll(s){const a=ae();if(Ie(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:u}=c;c!==this.root&&d&&u.layoutScroll&&(d.wasRoot&&Ie(a,s),Ut(a.x,d.offset.x),Ut(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=ae();Ie(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Wt(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),St(d.latestValues)&&Wt(l,d.latestValues)}return St(this.latestValues)&&Wt(l,this.latestValues),l}removeTransform(s){const a=ae();Ie(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!St(c.latestValues))continue;Uo(c.latestValues)&&c.updateSnapshot();const d=ae(),u=c.measurePageBox();Ie(d,u),Hl(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return St(this.latestValues)&&Hl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ue.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:u}=this.options;if(!this.layout||!(d||u))return;this.resolvedRelativeTargetAt=ue.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ae(),this.targetWithTransforms=ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),km(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ie(this.target,this.layout.layoutBox),bl(this.target,this.targetDelta)):Ie(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Uo(this.parent.latestValues)||yl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),rr(this.relativeTargetOrigin,a,l),Ie(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ue.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Ie(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,h=this.treeScale.y;em(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ae());const{target:f}=s;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Gl(this.prevProjectionDelta.x,this.projectionDelta.x),Gl(this.prevProjectionDelta.y,this.projectionDelta.y)),pn(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==h||!Zl(this.projectionDelta.x,this.prevProjectionDelta.x)||!Zl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Gt(),this.projectionDelta=Gt(),this.projectionDeltaWithTransform=Gt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=Gt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ae(),f=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=f!==m,x=this.getStack(),v=!x||x.members.length<=1,T=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Qm));this.animationProgress=0;let w;this.mixTargetDelta=M=>{const b=M/1e3;lc(u.x,s.x,b),lc(u.y,s.y,b),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jm(this.relativeTarget,this.relativeTargetOrigin,h,b),w&&Mm(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ae()),Ie(w,this.relativeTarget)),y&&(this.animationValues=d,Vm(d,c,this.latestValues,b,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(et(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ee.update(()=>{ir.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ht(0)),this.currentAnimation=Lm(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&hc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ae();const u=we(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=we(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Ie(a,l),Wt(a,d),pn(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Om),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Zo("z",s,c,this.animationValues);for(let d=0;d<Xo.length;d++)Zo(`rotate${Xo[d]}`,s,c,this.animationValues),Zo(`skew${Xo[d]}`,s,c,this.animationValues);s.render();for(const d in c)s.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=or(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=or(a?.pointerEvents)||""),this.hasProjected&&!St(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=Am(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),s.transform=u;const{x:h,y:f}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,c.animationValues?s.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in Yo){if(d[m]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:v}=Yo[m],T=u==="none"?d[m]:y(d[m],c);if(x){const w=x.length;for(let M=0;M<w;M++)s[x[M]]=T}else v?this.options.visualElement.renderState.vars[m]=T:s[m]=T}this.options.layoutId&&(s.pointerEvents=c===this?or(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(ic),this.root.sharedNodes.clear()}}}function Hm(e){e.updateLayout()}function jm(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?Me(d=>{const u=i?t.measuredBox[d]:t.layoutBox[d],h=we(u);u.min=n[d].min,u.max=u.min+h}):hc(o,t.layoutBox,n)&&Me(d=>{const u=i?t.measuredBox[d]:t.layoutBox[d],h=we(n[d]);u.max=u.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=Gt();pn(s,n,t.layoutBox);const a=Gt();i?pn(a,e.applyTransform(r,!0),t.measuredBox):pn(a,n,t.layoutBox);const l=!Wl(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:h}=d;if(u&&h){const f=ae();rr(f,t.layoutBox,u.layoutBox);const m=ae();rr(m,n,h.layoutBox),ql(f,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=f,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Gm(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 Um(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Wm(e){e.clearSnapshot()}function ic(e){e.clearMeasurements()}function sc(e){e.isLayoutDirty=!1}function Km(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ac(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ym(e){e.resolveTargetDelta()}function qm(e){e.calcProjection()}function Xm(e){e.resetSkewAndRotation()}function Zm(e){e.removeLeadSnapshot()}function lc(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cc(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function Jm(e,t,n,r){cc(e.x,t.x,n.x,r),cc(e.y,t.y,n.y,r)}function Qm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const eg={duration:.45,ease:[.4,0,.1,1]},uc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dc=uc("applewebkit/")&&!uc("chrome/")?Math.round:$e;function fc(e){e.min=dc(e.min),e.max=dc(e.max)}function tg(e){fc(e.x),fc(e.y)}function hc(e,t,n){return e==="position"||e==="preserve-aspect"&&!Tm(Xl(t),Xl(n),.2)}function ng(e){return e!==e.root&&e.scroll?.wasRoot}const rg=oc({attachResizeListener:(e,t)=>mn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Jo={current:void 0},pc=oc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Jo.current){const e=new rg({});e.mount(window),e.setOptions({layoutScroll:!0}),Jo.current=e}return Jo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Qo=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function mc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function og(...e){return t=>{let n=!1;const r=e.map(o=>{const i=mc(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():mc(e[o],null)}}}}function ig(...e){return ft.useCallback(og(...e),e)}class sg extends ft.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=el(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ag({children:e,isPresent:t,anchorX:n,root:r}){const o=p.useId(),i=p.useRef(null),s=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=p.useContext(Qo),l=e.props?.ref??e?.ref,c=ig(i,l);return p.useInsertionEffect(()=>{const{width:d,height:u,top:h,left:f,right:m}=s.current;if(t||!i.current||!d||!u)return;const y=n==="left"?`left: ${f}`:`right: ${m}`;i.current.dataset.motionPopId=o;const x=document.createElement("style");a&&(x.nonce=a);const v=r??document.head;return v.appendChild(x),x.sheet&&x.sheet.insertRule(`
227
- [data-motion-pop-id="${o}"] {
167
+ `,zr={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},H=({component:e,size:t="1.5rem",color:n="currentColor",className:o,iconProps:r={}})=>{const i=typeof t=="string"&&t in zr?zr[t]:t;return p.jsx(Pc,{$color:n,className:o,children:typeof e=="function"?p.jsx(e,{size:i,...r}):e})},Vn=m.createContext({});function En(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Or=typeof window<"u",Hr=Or?m.useLayoutEffect:m.useEffect,Ut=m.createContext(null);function Dn(e,t){e.indexOf(t)===-1&&e.push(t)}function Fn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $e=(e,t,n)=>n>t?t:n<e?e:n;function An(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let et=()=>{},Ee=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(et=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(An(t,n))},Ee=(e,t,n)=>{if(!e)throw new Error(An(t,n))});const De={},jr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Gr(e){return typeof e=="object"&&e!==null}const Ur=e=>/^0[^.\s]+$/u.test(e);function In(e){let t;return()=>(t===void 0&&(t=e()),t)}const me=e=>e,Mc=(e,t)=>n=>t(e(n)),xt=(...e)=>e.reduce(Mc),St=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Ln{constructor(){this.subscriptions=[]}add(t){return Dn(this.subscriptions,t),()=>Fn(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let i=0;i<r;i++){const s=this.subscriptions[i];s&&s(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Pe=e=>e*1e3,pe=e=>e/1e3;function Kr(e,t){return t?e*(1e3/t):0}const Wr=new Set;function Rn(e,t,n){e||Wr.has(t)||(console.warn(An(t,n)),Wr.add(t))}const qr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kc=1e-7,Vc=12;function Ec(e,t,n,o,r){let i,s,a=0;do s=t+(n-t)/2,i=qr(s,o,r)-e,i>0?n=s:t=s;while(Math.abs(i)>kc&&++a<Vc);return s}function Ct(e,t,n,o){if(e===t&&n===o)return me;const r=i=>Ec(i,0,1,e,n);return i=>i===0||i===1?i:qr(r(i),t,o)}const Yr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xr=e=>t=>1-e(1-t),Zr=Ct(.33,1.53,.69,.99),_n=Xr(Zr),Jr=Yr(_n),Qr=e=>(e*=2)<1?.5*_n(e):.5*(2-Math.pow(2,-10*(e-1))),Bn=e=>1-Math.sin(Math.acos(e)),ei=Xr(Bn),ti=Yr(Bn),Dc=Ct(.42,0,1,1),Fc=Ct(0,0,.58,1),ni=Ct(.42,0,.58,1),Ac=e=>Array.isArray(e)&&typeof e[0]!="number",oi=e=>Array.isArray(e)&&typeof e[0]=="number",ri={linear:me,easeIn:Dc,easeInOut:ni,easeOut:Fc,circIn:Bn,circInOut:ti,circOut:ei,backIn:_n,backInOut:Jr,backOut:Zr,anticipate:Qr},Ic=e=>typeof e=="string",ii=e=>{if(oi(e)){Ee(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return Ct(t,n,o,r)}else if(Ic(e))return Ee(ri[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ri[e];return e},Kt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Lc(e,t){let n=new Set,o=new Set,r=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){s.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,u=!1,h=!1)=>{const v=h&&r?n:o;return u&&s.add(d),v.has(d)||v.add(d),d},cancel:d=>{o.delete(d),s.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[n,o]=[o,n],n.forEach(l),n.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const Rc=40;function si(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Kt.reduce((C,M)=>(C[M]=Lc(i),C),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:f,postRender:v}=s,y=()=>{const C=De.useManualTiming?r.timestamp:performance.now();n=!1,De.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(C-r.timestamp,Rc),1)),r.timestamp=C,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),d.process(r),u.process(r),h.process(r),f.process(r),v.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(y))},b=()=>{n=!0,o=!0,r.isProcessing||e(y)};return{schedule:Kt.reduce((C,M)=>{const x=s[M];return C[M]=(P,V=!1,$=!1)=>(n||b(),x.schedule(P,V,$)),C},{}),cancel:C=>{for(let M=0;M<Kt.length;M++)s[Kt[M]].cancel(C)},state:r,steps:s}}const{schedule:U,cancel:Le,state:ne,steps:Nn}=si(typeof requestAnimationFrame<"u"?requestAnimationFrame:me,!0);let Wt;function _c(){Wt=void 0}const le={now:()=>(Wt===void 0&&le.set(ne.isProcessing||De.useManualTiming?ne.timestamp:performance.now()),Wt),set:e=>{Wt=e,queueMicrotask(_c)}},ai=e=>t=>typeof t=="string"&&t.startsWith(e),li=ai("--"),Bc=ai("var(--"),zn=e=>Bc(e)?Nc.test(e.split("/*")[0].trim()):!1,Nc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ci(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const tt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tt={...tt,transform:e=>$e(0,1,e)},qt={...tt,default:1},$t=e=>Math.round(e*1e5)/1e5,On=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zc(e){return e==null}const Oc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hn=(e,t)=>n=>!!(typeof n=="string"&&Oc.test(n)&&n.startsWith(e)||t&&!zc(n)&&Object.prototype.hasOwnProperty.call(n,t)),ui=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,i,s,a]=o.match(On);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Hc=e=>$e(0,255,e),jn={...tt,transform:e=>Math.round(Hc(e))},Ke={test:Hn("rgb","red"),parse:ui("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+jn.transform(e)+", "+jn.transform(t)+", "+jn.transform(n)+", "+$t(Tt.transform(o))+")"};function jc(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Gn={test:Hn("#"),parse:jc,transform:Ke.transform},Pt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Re=Pt("deg"),Me=Pt("%"),k=Pt("px"),Gc=Pt("vh"),Uc=Pt("vw"),di={...Me,parse:e=>Me.parse(e)/100,transform:e=>Me.transform(e*100)},nt={test:Hn("hsl","hue"),parse:ui("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Me.transform($t(t))+", "+Me.transform($t(n))+", "+$t(Tt.transform(o))+")"},J={test:e=>Ke.test(e)||Gn.test(e)||nt.test(e),parse:e=>Ke.test(e)?Ke.parse(e):nt.test(e)?nt.parse(e):Gn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ke.transform(e):nt.transform(e),getAnimatableNone:e=>{const t=J.parse(e);return t.alpha=0,J.transform(t)}},Kc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wc(e){return isNaN(e)&&typeof e=="string"&&(e.match(On)?.length||0)+(e.match(Kc)?.length||0)>0}const fi="number",hi="color",qc="var",Yc="var(",mi="${}",Xc=/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 Mt(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(Xc,l=>(J.test(l)?(o.color.push(i),r.push(hi),n.push(J.parse(l))):l.startsWith(Yc)?(o.var.push(i),r.push(qc),n.push(l)):(o.number.push(i),r.push(fi),n.push(parseFloat(l))),++i,mi)).split(mi);return{values:n,split:a,indexes:o,types:r}}function pi(e){return Mt(e).values}function gi(e){const{split:t,types:n}=Mt(e),o=t.length;return r=>{let i="";for(let s=0;s<o;s++)if(i+=t[s],r[s]!==void 0){const a=n[s];a===fi?i+=$t(r[s]):a===hi?i+=J.transform(r[s]):i+=r[s]}return i}}const Zc=e=>typeof e=="number"?0:J.test(e)?J.getAnimatableNone(e):e;function Jc(e){const t=pi(e);return gi(e)(t.map(Zc))}const _e={test:Wc,parse:pi,createTransformer:gi,getAnimatableNone:Jc};function Un(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 Qc({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,i=0,s=0;if(!t)r=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Un(l,a,e+1/3),i=Un(l,a,e),s=Un(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:o}}function Yt(e,t){return n=>n>0?t:e}const q=(e,t,n)=>e+(t-e)*n,Kn=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},eu=[Gn,Ke,nt],tu=e=>eu.find(t=>t.test(e));function vi(e){const t=tu(e);if(et(!!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===nt&&(n=Qc(n)),n}const yi=(e,t)=>{const n=vi(e),o=vi(t);if(!n||!o)return Yt(e,t);const r={...n};return i=>(r.red=Kn(n.red,o.red,i),r.green=Kn(n.green,o.green,i),r.blue=Kn(n.blue,o.blue,i),r.alpha=q(n.alpha,o.alpha,i),Ke.transform(r))},Wn=new Set(["none","hidden"]);function nu(e,t){return Wn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ou(e,t){return n=>q(e,t,n)}function qn(e){return typeof e=="number"?ou:typeof e=="string"?zn(e)?Yt:J.test(e)?yi:su:Array.isArray(e)?wi:typeof e=="object"?J.test(e)?yi:ru:Yt}function wi(e,t){const n=[...e],o=n.length,r=e.map((i,s)=>qn(i)(i,t[s]));return i=>{for(let s=0;s<o;s++)n[s]=r[s](i);return n}}function ru(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=qn(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function iu(e,t){const n=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],s=e.indexes[i][o[i]],a=e.values[s]??0;n[r]=a,o[i]++}return n}const su=(e,t)=>{const n=_e.createTransformer(t),o=Mt(e),r=Mt(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Wn.has(e)&&!r.values.length||Wn.has(t)&&!o.values.length?nu(e,t):xt(wi(iu(o,r),r.values),n):(et(!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"),Yt(e,t))};function bi(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?q(e,t,n):qn(e)(e,t)}const au=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>U.update(t,n),stop:()=>Le(t),now:()=>ne.isProcessing?ne.timestamp:le.now()}},xi=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)o+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Xt=2e4;function Yn(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Xt;)t+=n,o=e.next(t);return t>=Xt?1/0:t}function lu(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(Yn(o),Xt);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:pe(r)}}const cu=5;function Si(e,t,n){const o=Math.max(t-cu,0);return Kr(n-e(o),t-o)}const Y={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},Xn=.001;function uu({duration:e=Y.duration,bounce:t=Y.bounce,velocity:n=Y.velocity,mass:o=Y.mass}){let r,i;et(e<=Pe(Y.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=$e(Y.minDamping,Y.maxDamping,s),e=$e(Y.minDuration,Y.maxDuration,pe(e)),s<1?(r=c=>{const d=c*s,u=d*e,h=d-n,f=Zn(c,s),v=Math.exp(-u);return Xn-h/f*v},i=c=>{const u=c*s*e,h=u*n+n,f=Math.pow(s,2)*Math.pow(c,2)*e,v=Math.exp(-u),y=Zn(Math.pow(c,2),s);return(-r(c)+Xn>0?-1:1)*((h-f)*v)/y}):(r=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-Xn+d*u},i=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=fu(r,i,a);if(e=Pe(e),isNaN(l))return{stiffness:Y.stiffness,damping:Y.damping,duration:e};{const c=Math.pow(l,2)*o;return{stiffness:c,damping:s*2*Math.sqrt(o*c),duration:e}}}const du=12;function fu(e,t,n){let o=n;for(let r=1;r<du;r++)o=o-e(o)/t(o);return o}function Zn(e,t){return e*Math.sqrt(1-t*t)}const hu=["duration","bounce"],mu=["stiffness","damping","mass"];function Ci(e,t){return t.some(n=>e[n]!==void 0)}function pu(e){let t={velocity:Y.velocity,stiffness:Y.stiffness,damping:Y.damping,mass:Y.mass,isResolvedFromDuration:!1,...e};if(!Ci(e,mu)&&Ci(e,hu))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*$e(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Y.mass,stiffness:r,damping:i}}else{const n=uu(e);t={...t,...n,mass:Y.mass},t.isResolvedFromDuration=!0}return t}function Zt(e=Y.visualDuration,t=Y.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:f}=pu({...n,velocity:-pe(n.velocity||0)}),v=h||0,y=c/(2*Math.sqrt(l*d)),b=s-i,w=pe(Math.sqrt(l/d)),T=Math.abs(b)<5;o||(o=T?Y.restSpeed.granular:Y.restSpeed.default),r||(r=T?Y.restDelta.granular:Y.restDelta.default);let C;if(y<1){const x=Zn(w,y);C=P=>{const V=Math.exp(-y*w*P);return s-V*((v+y*w*b)/x*Math.sin(x*P)+b*Math.cos(x*P))}}else if(y===1)C=x=>s-Math.exp(-w*x)*(b+(v+w*b)*x);else{const x=w*Math.sqrt(y*y-1);C=P=>{const V=Math.exp(-y*w*P),$=Math.min(x*P,300);return s-V*((v+y*w*b)*Math.sinh($)+x*b*Math.cosh($))/x}}const M={calculatedDuration:f&&u||null,next:x=>{const P=C(x);if(f)a.done=x>=u;else{let V=x===0?v:0;y<1&&(V=x===0?Pe(v):Si(C,x,P));const $=Math.abs(V)<=o,F=Math.abs(s-P)<=r;a.done=$&&F}return a.value=a.done?s:P,a},toString:()=>{const x=Math.min(Yn(M),Xt),P=xi(V=>M.next(x*V).value,x,30);return x+"ms "+P},toTransition:()=>{}};return M}Zt.applyToOptions=e=>{const t=lu(e,100,Zt);return e.ease=t.ease,e.duration=Pe(t.duration),e.type="keyframes",e};function Jn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},f=$=>a!==void 0&&$<a||l!==void 0&&$>l,v=$=>a===void 0?l:l===void 0||Math.abs(a-$)<Math.abs(l-$)?a:l;let y=n*t;const b=u+y,w=s===void 0?b:s(b);w!==b&&(y=w-u);const T=$=>-y*Math.exp(-$/o),C=$=>w+T($),M=$=>{const F=T($),D=C($);h.done=Math.abs(F)<=c,h.value=h.done?w:D};let x,P;const V=$=>{f(h.value)&&(x=$,P=Zt({keyframes:[h.value,v(h.value)],velocity:Si(C,$,h.value),damping:r,stiffness:i,restDelta:c,restSpeed:d}))};return V(0),{calculatedDuration:null,next:$=>{let F=!1;return!P&&x===void 0&&(F=!0,M($),V($)),x!==void 0&&$>=x?P.next($-x):(!F&&M($),h)}}}function gu(e,t,n){const o=[],r=n||De.mix||bi,i=e.length-1;for(let s=0;s<i;s++){let a=r(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||me:t;a=xt(l,a)}o.push(a)}return o}function vu(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Ee(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=gu(t,o,r),l=a.length,c=d=>{if(s&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const h=St(e[u],e[u+1],d);return a[u](h)};return n?d=>c($e(e[0],e[i-1],d)):c}function yu(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=St(0,t,o);e.push(q(n,1,r))}}function wu(e){const t=[0];return yu(t,e.length-1),t}function bu(e,t){return e.map(n=>n*t)}function xu(e,t){return e.map(()=>t||ni).splice(0,e.length-1)}function ot({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=Ac(o)?o.map(ii):ii(o),i={done:!1,value:t[0]},s=bu(n&&n.length===t.length?n:wu(t),e),a=vu(s,t,{ease:Array.isArray(r)?r:xu(t,r)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Su=e=>e!==null;function Qn(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(Su),a=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||o===void 0?i[a]:o}const Cu={decay:Jn,inertia:Jn,tween:ot,keyframes:ot,spring:Zt};function Ti(e){typeof e.type=="string"&&(e.type=Cu[e.type])}class eo{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 Tu=e=>e/100;class to extends eo{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!==le.now()&&this.tick(le.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;Ti(t);const{type:n=ot,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||ot;process.env.NODE_ENV!=="production"&&l!==ot&&Ee(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==ot&&typeof a[0]!="number"&&(this.mixKeyframes=xt(Tu,bi(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Yn(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:o,totalDuration:r,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return o.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:f,type:v,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-c*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?w<0:w>r;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let C=this.currentTime,M=o;if(u){const $=Math.min(this.currentTime,r)/a;let F=Math.floor($),D=$%1;!D&&$>=1&&(D=1),D===1&&F--,F=Math.min(F,u+1),F%2&&(h==="reverse"?(D=1-D,f&&(D-=f/a)):h==="mirror"&&(M=s)),C=$e(0,1,D)*a}const x=T?{done:!1,value:d[0]}:M.next(C);i&&(x.value=i(x.value));let{done:P}=x;!T&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return V&&v!==Jn&&(x.value=Qn(d,this.options,b,this.speed)),y&&y(x.value),V&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return pe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(this.currentTime)}set time(t){t=Pe(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(le.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pe(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=au,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),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(le.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 $u(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const We=e=>e*180/Math.PI,no=e=>{const t=We(Math.atan2(e[1],e[0]));return oo(t)},Pu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:no,rotateZ:no,skewX:e=>We(Math.atan(e[1])),skewY:e=>We(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},oo=e=>(e=e%360,e<0&&(e+=360),e),$i=no,Pi=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Mi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Mu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pi,scaleY:Mi,scale:e=>(Pi(e)+Mi(e))/2,rotateX:e=>oo(We(Math.atan2(e[6],e[5]))),rotateY:e=>oo(We(Math.atan2(-e[2],e[0]))),rotateZ:$i,rotate:$i,skewX:e=>We(Math.atan(e[4])),skewY:e=>We(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ro(e){return e.includes("scale")?1:0}function io(e,t){if(!e||e==="none")return ro(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=Mu,r=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Pu,r=a}if(!r)return ro(t);const i=o[t],s=r[1].split(",").map(Vu);return typeof i=="function"?i(s):s[i]}const ku=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return io(n,t)};function Vu(e){return parseFloat(e.trim())}const rt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(rt),ki=e=>e===tt||e===k,Eu=new Set(["x","y","z"]),Du=rt.filter(e=>!Eu.has(e));function Fu(e){const t=[];return Du.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Be={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})=>io(t,"x"),y:(e,{transform:t})=>io(t,"y")};Be.translateX=Be.x,Be.translateY=Be.y;const qe=new Set;let so=!1,ao=!1,lo=!1;function Vi(){if(ao){const e=Array.from(qe).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=Fu(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([i,s])=>{o.getValue(i)?.set(s)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}ao=!1,so=!1,qe.forEach(e=>e.complete(lo)),qe.clear()}function Ei(){qe.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ao=!0)})}function Au(){lo=!0,Ei(),Vi(),lo=!1}class co{constructor(t,n,o,r,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(qe.add(this),so||(so=!0,U.read(Ei),U.resolveKeyframes(Vi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;if(t[0]===null){const i=r?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&n){const a=o.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),r&&i===void 0&&r.set(t[0])}$u(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),qe.delete(this)}cancel(){this.state==="scheduled"&&(qe.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Iu=e=>e.startsWith("--");function Lu(e,t,n){Iu(t)?e.style.setProperty(t,n):e.style[t]=n}const Ru=In(()=>window.ScrollTimeline!==void 0),_u={};function Bu(e,t){const n=In(e);return()=>_u[t]??n()}const Di=Bu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),kt=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,Fi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kt([0,.65,.55,1]),circOut:kt([.55,0,1,.45]),backIn:kt([.31,.01,.66,-.59]),backOut:kt([.33,1.53,.69,.99])};function Ai(e,t){if(e)return typeof e=="function"?Di()?xi(e,t):"ease-out":oi(e)?kt(e):Array.isArray(e)?e.map(n=>Ai(n,t)||Fi.easeOut):Fi[e]}function Nu(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=Ai(a,r);Array.isArray(u)&&(d.easing=u);const h={delay:o,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function Ii(e){return typeof e=="function"&&"applyToOptions"in e}function zu({type:e,...t}){return Ii(e)&&Di()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ou extends eo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:o,keyframes:r,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Ee(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=zu(t);this.animation=Nu(n,o,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Qn(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):Lu(n,o,d),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return pe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pe(t)}get time(){return pe(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Pe(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Ru()?(this.animation.timeline=t,me):n(this)}}const Li={anticipate:Qr,backInOut:Jr,circInOut:ti};function Hu(e){return e in Li}function ju(e){typeof e.ease=="string"&&Hu(e.ease)&&(e.ease=Li[e.ease])}const uo=10;class Gu extends Ou{constructor(t){ju(t),Ti(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new to({...s,autoplay:!1}),l=Math.max(uo,le.now()-this.startTime),c=$e(0,uo,l-uo);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const Ri=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_e.test(e)||e==="0")&&!e.startsWith("url("));function Uu(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 Ku(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Ri(r,t),a=Ri(i,t);return et(s===a,`You are trying to animate ${t} from "${r}" to "${i}". "${s?i:r}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:Uu(e)||(n==="spring"||Ii(n))&&o}function fo(e){e.duration=0,e.type="keyframes"}const Wu=new Set(["opacity","clipPath","filter","transform"]),qu=In(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Yu(e){const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return qu()&&n&&Wu.has(n)&&(n!=="transform"||!c)&&!l&&!o&&r!=="mirror"&&i!==0&&s!=="inertia"}const Xu=40;class Zu extends eo{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=le.now();const h={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:d,...u},f=d?.KeyframeResolver||co;this.keyframeResolver=new f(a,(v,y,b)=>this.onKeyframesResolved(v,y,h,!b),l,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,o,r){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:d}=o;this.resolvedAt=le.now(),Ku(t,i,s,a)||((De.instantAnimations||!l)&&d?.(Qn(t,o,n)),t[0]=t[t.length-1],fo(o),o.repeat=0);const h={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Xu?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},f=!c&&Yu(h)?new Gu({...h,element:h.motionValue.owner.current}):new to(h);f.finished.then(()=>this.notifyFinished()).catch(me),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}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(),Au()),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 Ju=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Qu(e){const t=Ju.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const ed=4;function _i(e,t,n=1){Ee(n<=ed,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=Qu(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const s=i.trim();return jr(s)?parseFloat(s):s}return zn(r)?_i(r,t,n+1):r}function ho(e,t){return e?.[t]??e?.default??e}const td={type:"spring",stiffness:500,damping:25,restSpeed:10},nd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),od={type:"keyframes",duration:.8},rd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},id=(e,{keyframes:t})=>t.length>2?od:it.has(e)?e.startsWith("scale")?nd(t[1]):td:rd;function sd({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const ad=e=>e!==null;function ld(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(ad),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}function Bi(e,t,n,o=0,r=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),s=e.size,a=(s-1)*o;return typeof n=="function"?n(i,s):r===1?i*o:a-i*o}const mo=(e,t,n,o={},r,i)=>s=>{const a=ho(o,e)||{},l=a.delay||o.delay||0;let{elapsed:c=0}=o;c=c-Pe(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};sd(a)||Object.assign(d,id(e,d)),d.duration&&(d.duration=Pe(d.duration)),d.repeatDelay&&(d.repeatDelay=Pe(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(fo(d),d.delay===0&&(u=!0)),(De.instantAnimations||De.skipAnimations)&&(u=!0,fo(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!i&&t.get()!==void 0){const h=ld(d.keyframes,a);if(h!==void 0){U.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new to(d):new Zu(d)},Ni=new Set(["width","height","top","left","right","bottom",...rt]),zi=30,cd=e=>!isNaN(parseFloat(e));class ud{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const r=le.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=le.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cd(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Rn(!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 Ln);const o=this.events[t].add(n);return t==="change"?()=>{o(),U.read(()=>{this.events.change.getSize()||this.stop()})}:o}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,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}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=le.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>zi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zi);return Kr(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 st(e,t){return new ud(e,t)}function Oi(e){const t=[{},{}];return e?.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function po(e,t,n,o){if(typeof t=="function"){const[r,i]=Oi(o);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Oi(o);t=t(n!==void 0?n:e.custom,r,i)}return t}function at(e,t,n){const o=e.getProps();return po(o,t,n!==void 0?n:o.custom,e)}const go=e=>Array.isArray(e);function dd(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,st(n))}function fd(e){return go(e)?e[e.length-1]||0:e}function hd(e,t){const n=at(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const s in i){const a=fd(i[s]);dd(e,s,a)}}const ie=e=>!!(e&&e.getVelocity);function md(e){return!!(ie(e)&&e.add)}function vo(e,t){const n=e.getValue("willChange");if(md(n))return n.add(t);if(!n&&De.WillChange){const o=new De.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function yo(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Hi="data-"+yo("framerAppearId");function ji(e){return e.props[Hi]}function pd({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Gi(e,t,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;o&&(i=o);const l=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const d in a){const u=e.getValue(d,e.latestValues[d]??null),h=a[d];if(h===void 0||c&&pd(c,d))continue;const f={delay:n,...ho(i||{},d)},v=u.get();if(v!==void 0&&!u.isAnimating&&!Array.isArray(h)&&h===v&&!f.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const w=ji(e);if(w){const T=window.MotionHandoffAnimation(w,d,U);T!==null&&(f.startTime=T,y=!0)}}vo(e,d),u.start(mo(d,u,h,e.shouldReduceMotion&&Ni.has(d)?{type:!1}:f,e,y));const b=u.animation;b&&l.push(b)}return s&&Promise.all(l).then(()=>{U.update(()=>{s&&hd(e,s)})}),l}function wo(e,t,n={}){const o=at(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const i=o?()=>Promise.all(Gi(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=r;return gd(e,t,l,c,d,u,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(n.delay)])}function gd(e,t,n=0,o=0,r=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(wo(l,t,{...s,delay:n+(typeof o=="function"?0:o)+Bi(e.variantChildren,l,o,r,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function vd(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>wo(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=wo(e,t,n);else{const r=typeof t=="function"?at(e,t,n.custom):t;o=Promise.all(Gi(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const yd={test:e=>e==="auto",parse:e=>e},Ui=e=>t=>t.test(e),Ki=[tt,k,Me,Re,Uc,Gc,yd],Wi=e=>Ki.find(Ui(e));function wd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ur(e):!0}const bd=new Set(["brightness","contrast","saturate","opacity"]);function xd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(On)||[];if(!o)return e;const r=n.replace(o,"");let i=bd.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const Sd=/\b([a-z-]*)\(.*?\)/gu,bo={..._e,getAnimatableNone:e=>{const t=e.match(Sd);return t?t.map(xd).join(" "):e}},qi={...tt,transform:Math.round},xo={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,radius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,inset:k,insetBlock:k,insetBlockStart:k,insetBlockEnd:k,insetInline:k,insetInlineStart:k,insetInlineEnd:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockStart:k,paddingBlockEnd:k,paddingInline:k,paddingInlineStart:k,paddingInlineEnd:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockStart:k,marginBlockEnd:k,marginInline:k,marginInlineStart:k,marginInlineEnd:k,backgroundPositionX:k,backgroundPositionY:k,...{rotate:Re,rotateX:Re,rotateY:Re,rotateZ:Re,scale:qt,scaleX:qt,scaleY:qt,scaleZ:qt,skew:Re,skewX:Re,skewY:Re,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:Tt,originX:di,originY:di,originZ:k},zIndex:qi,fillOpacity:Tt,strokeOpacity:Tt,numOctaves:qi},Cd={...xo,color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,filter:bo,WebkitFilter:bo},Yi=e=>Cd[e];function Xi(e,t){let n=Yi(e);return n!==bo&&(n=_e),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Td=new Set(["auto","none","0"]);function $d(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!Td.has(i)&&Mt(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=Xi(n,r)}class Pd extends co{constructor(t,n,o,r,i){super(t,n,o,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let u=t[d];if(typeof u=="string"&&(u=u.trim(),zn(u))){const h=_i(u,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ni.has(o)||t.length!==2)return;const[r,i]=t,s=Wi(r),a=Wi(i),l=ci(r),c=ci(i);if(l!==c&&Be[o]){this.needsMeasurement=!0;return}if(s!==a)if(ki(s)&&ki(a))for(let d=0;d<t.length;d++){const u=t[d];typeof u=="string"&&(t[d]=parseFloat(u))}else Be[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||wd(t[r]))&&o.push(r);o.length&&$d(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Be[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,s=o[i];o[i]=Be[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Md(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const r=n?.[e]??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const Zi=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ji(e){return Gr(e)&&"offsetHeight"in e}const{schedule:So}=si(queueMicrotask,!1),we={x:!1,y:!1};function Qi(){return we.x||we.y}function kd(e){return e==="x"||e==="y"?we[e]?null:(we[e]=!0,()=>{we[e]=!1}):we.x||we.y?null:(we.x=we.y=!0,()=>{we.x=we.y=!1})}function es(e,t){const n=Md(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function ts(e){return!(e.pointerType==="touch"||Qi())}function Vd(e,t,n={}){const[o,r,i]=es(e,n),s=a=>{if(!ts(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const d=u=>{ts(u)&&(c(u),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,r)};return o.forEach(a=>{a.addEventListener("pointerenter",s,r)}),i}const ns=(e,t)=>t?e===t?!0:ns(e,t.parentElement):!1,Co=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ed=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function os(e){return Ed.has(e.tagName)||e.isContentEditable===!0}const Jt=new WeakSet;function rs(e){return t=>{t.key==="Enter"&&e(t)}}function To(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Dd=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=rs(()=>{if(Jt.has(n))return;To(n,"down");const r=rs(()=>{To(n,"up")}),i=()=>To(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function is(e){return Co(e)&&!Qi()}function Fd(e,t,n={}){const[o,r,i]=es(e,n),s=a=>{const l=a.currentTarget;if(!is(a))return;Jt.add(l);const c=t(l,a),d=(f,v)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",h),Jt.has(l)&&Jt.delete(l),is(f)&&typeof c=="function"&&c(f,{success:v})},u=f=>{d(f,l===window||l===document||n.useGlobalTarget||ns(l,f.target))},h=f=>{d(f,!1)};window.addEventListener("pointerup",u,r),window.addEventListener("pointercancel",h,r)};return o.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,r),Ji(a)&&(a.addEventListener("focus",c=>Dd(c,r)),!os(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function ss(e){return Gr(e)&&"ownerSVGElement"in e}function Ad(e){return ss(e)&&e.tagName==="svg"}const Id=[...Ki,J,_e],Ld=e=>Id.find(Ui(e)),as=()=>({translate:0,scale:1,origin:0,originPoint:0}),lt=()=>({x:as(),y:as()}),ls=()=>({min:0,max:0}),ee=()=>({x:ls(),y:ls()}),$o={current:null},cs={current:!1},Rd=typeof window<"u";function _d(){if(cs.current=!0,!!Rd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$o.current=e.matches;e.addEventListener("change",t),t()}else $o.current=!1}const Bd=new WeakMap;function Qt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Vt(e){return typeof e=="string"||Array.isArray(e)}const Po=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mo=["initial",...Po];function en(e){return Qt(e.animate)||Mo.some(t=>Vt(e[t]))}function us(e){return!!(en(e)||e.variants)}function Nd(e,t,n){for(const o in t){const r=t[o],i=n[o];if(ie(r))e.addValue(o,r);else if(ie(i))e.addValue(o,st(r,{owner:e}));else if(i!==r)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(o);e.addValue(o,st(s!==void 0?s:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const ds=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let tn={};function fs(e){tn=e}function zd(){return tn}class Od{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=co,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=le.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,U.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=en(n),this.isVariantNode=us(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in u){const f=u[h];l[h]!==void 0&&ie(f)&&f.set(l[h])}}mount(t){this.current=t,Bd.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,o)=>this.bindToMotionValue(o,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(cs.current||_d(),this.shouldReduceMotion=$o.current),process.env.NODE_ENV!=="production"&&Rn(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(),Le(this.notifyUpdate),Le(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 o=it.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&U.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),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 tn){const n=tn[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):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 o=0;o<ds.length;o++){const r=ds[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,s=t[i];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=Nd(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 o=this.values.get(t);n!==o&&(o&&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 o=this.values.get(t);return o===void 0&&n!==void 0&&(o=st(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(jr(o)||Ur(o))?o=parseFloat(o):!Ld(o)&&_e.test(n)&&(o=Xi(t,n)),this.setBaseTarget(t,ie(o)?o.get():o)),ie(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const i=po(this.props,n,this.presenceContext?.custom);i&&(o=i[t])}if(n&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!ie(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ln),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){So.render(this.render)}}class Ne{constructor(t){this.isMounted=!1,this.node=t}update(){}}class hs extends Od{constructor(){super(...arguments),this.KeyframeResolver=Pd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const o=t.style;return o?o[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ie(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ms({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function Hd({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function jd(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function ko(e){return e===void 0||e===1}function Vo({scale:e,scaleX:t,scaleY:n}){return!ko(e)||!ko(t)||!ko(n)}function Ye(e){return Vo(e)||ps(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ps(e){return gs(e.x)||gs(e.y)}function gs(e){return e&&e!=="0%"}function nn(e,t,n){const o=e-n,r=t*o;return n+r}function vs(e,t,n,o,r){return r!==void 0&&(e=nn(e,r,o)),nn(e,n,o)+t}function Eo(e,t=0,n=1,o,r){e.min=vs(e.min,t,n,o,r),e.max=vs(e.max,t,n,o,r)}function ys(e,{x:t,y:n}){Eo(e.x,t.translate,t.scale,t.originPoint),Eo(e.y,n.translate,n.scale,n.originPoint)}const ws=.999999999999,bs=1.0000000000001;function Gd(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,s;for(let a=0;a<r;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ut(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ys(e,s)),o&&Ye(i.latestValues)&&ut(e,i.latestValues))}t.x<bs&&t.x>ws&&(t.x=1),t.y<bs&&t.y>ws&&(t.y=1)}function ct(e,t){e.min=e.min+t,e.max=e.max+t}function xs(e,t,n,o,r=.5){const i=q(e.min,e.max,r);Eo(e,t,n,i,o)}function ut(e,t){xs(e.x,t.x,t.scaleX,t.scale,t.originX),xs(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ss(e,t){return ms(jd(e.getBoundingClientRect(),t))}function Ud(e,t,n){const o=Ss(e,n),{scroll:r}=t;return r&&(ct(o.x,r.offset.x),ct(o.y,r.offset.y)),o}const Kd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wd=rt.length;function qd(e,t,n){let o="",r=!0;for(let i=0;i<Wd;i++){const s=rt[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Zi(a,xo[s]);if(!l){r=!1;const d=Kd[s]||s;o+=`${d}(${c}) `}n&&(t[s]=c)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function Do(e,t,n){const{style:o,vars:r,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(it.has(l)){s=!0;continue}else if(li(l)){r[l]=c;continue}else{const d=Zi(c,xo[l]);l.startsWith("origin")?(a=!0,i[l]=d):o[l]=d}}if(t.transform||(s||n?o.transform=qd(t,e.transform,n):o.transform&&(o.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=i;o.transformOrigin=`${l} ${c} ${d}`}}function Cs(e,{style:t,vars:n},o,r){const i=e.style;let s;for(s in t)i[s]=t[s];r?.applyProjectionStyles(i,o);for(s in n)i.setProperty(s,n[s])}function Ts(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Et={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(k.test(e))e=parseFloat(e);else return e;const n=Ts(e,t.target.x),o=Ts(e,t.target.y);return`${n}% ${o}%`}},Yd={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=_e.parse(e);if(r.length>5)return o;const i=_e.createTransformer(e),s=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=l;const c=q(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=c),typeof r[3+s]=="number"&&(r[3+s]/=c),i(r)}},Fo={borderRadius:{...Et,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Et,borderTopRightRadius:Et,borderBottomLeftRadius:Et,borderBottomRightRadius:Et,boxShadow:Yd};function $s(e,{layout:t,layoutId:n}){return it.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fo[e]||e==="opacity")}function Ao(e,t,n){const o=e.style,r=t?.style,i={};if(!o)return i;for(const s in o)(ie(o[s])||r&&ie(r[s])||$s(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=o[s]);return i}function Xd(e){return window.getComputedStyle(e)}class Zd extends hs{constructor(){super(...arguments),this.type="html",this.renderInstance=Cs}readValueFromInstance(t,n){if(it.has(n))return this.projection?.isProjecting?ro(n):ku(t,n);{const o=Xd(t),r=(li(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ss(t,n)}build(t,n,o){Do(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return Ao(t,n,o)}}const Jd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qd={offset:"strokeDashoffset",array:"strokeDasharray"};function ef(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?Jd:Qd;e[i.offset]=k.transform(-o);const s=k.transform(t),a=k.transform(n);e[i.array]=`${s} ${a}`}const tf=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ps(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:s=0,...a},l,c,d){if(Do(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:h}=e;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete u.transformBox);for(const f of tf)u[f]!==void 0&&(h[f]=u[f],delete u[f]);t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),o!==void 0&&(u.scale=o),r!==void 0&&ef(u,r,i,s,!1)}const Ms=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"]),ks=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nf(e,t,n,o){Cs(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Ms.has(r)?r:yo(r),t.attrs[r])}function Vs(e,t,n){const o=Ao(e,t,n);for(const r in e)if(ie(e[r])||ie(t[r])){const i=rt.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class of extends hs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ee}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(it.has(n)){const o=Yi(n);return o&&o.default||0}return n=Ms.has(n)?n:yo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Vs(t,n,o)}build(t,n,o){Ps(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){nf(t,n,o,r)}mount(t){this.isSVGTag=ks(t.tagName),super.mount(t)}}const rf=Mo.length;function Es(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Es(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rf;n++){const o=Mo[n],r=e.props[o];(Vt(r)||r===!1)&&(t[o]=r)}return t}function Ds(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const sf=[...Po].reverse(),af=Po.length;function lf(e){return t=>Promise.all(t.map(({animation:n,options:o})=>vd(e,n,o)))}function cf(e){let t=lf(e),n=Fs(),o=!0;const r=l=>(c,d)=>{const u=at(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(u){const{transition:h,transitionEnd:f,...v}=u;c={...c,...v,...f}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,d=Es(e.parent)||{},u=[],h=new Set;let f={},v=1/0;for(let b=0;b<af;b++){const w=sf[b],T=n[w],C=c[w]!==void 0?c[w]:d[w],M=Vt(C),x=w===l?T.isActive:null;x===!1&&(v=b);let P=C===d[w]&&C!==c[w]&&M;if(P&&o&&e.manuallyAnimateOnMount&&(P=!1),T.protectedKeys={...f},!T.isActive&&x===null||!C&&!T.prevProp||Qt(C)||typeof C=="boolean")continue;const V=uf(T.prevProp,C);let $=V||w===l&&T.isActive&&!P&&M||b>v&&M,F=!1;const D=Array.isArray(C)?C:[C];let _=D.reduce(r(w),{});x===!1&&(_={});const{prevResolvedValues:N={}}=T,O={...N,..._},j=L=>{$=!0,h.has(L)&&(F=!0,h.delete(L)),T.needsAnimating[L]=!0;const G=e.getValue(L);G&&(G.liveStyle=!1)};for(const L in O){const G=_[L],oe=N[L];if(f.hasOwnProperty(L))continue;let Q=!1;go(G)&&go(oe)?Q=!Ds(G,oe):Q=G!==oe,Q?G!=null?j(L):h.add(L):G!==void 0&&h.has(L)?j(L):T.protectedKeys[L]=!0}T.prevProp=C,T.prevResolvedValues=_,T.isActive&&(f={...f,..._}),o&&e.blockInitialAnimation&&($=!1);const K=P&&V;$&&(!K||F)&&u.push(...D.map(L=>{const G={type:w};if(typeof L=="string"&&o&&!K&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,Q=at(oe,L);if(oe.enteringChildren&&Q){const{delayChildren:Se}=Q.transition||{};G.delay=Bi(oe.enteringChildren,e,Se)}}return{animation:L,options:G}}))}if(h.size){const b={};if(typeof c.initial!="boolean"){const w=at(e,Array.isArray(c.initial)?c.initial[0]:c.initial);w&&w.transition&&(b.transition=w.transition)}h.forEach(w=>{const T=e.getBaseTarget(w),C=e.getValue(w);C&&(C.liveStyle=!0),b[w]=T??null}),u.push({animation:b})}let y=!!u.length;return o&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),o=!1,y?t(u):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(u=>u.animationState?.setActive(l,c)),n[l].isActive=c;const d=s(l);for(const u in n)n[u].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Fs()}}}function uf(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ds(t,e):!1}function Xe(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fs(){return{animate:Xe(!0),whileInView:Xe(),whileHover:Xe(),whileTap:Xe(),whileDrag:Xe(),whileFocus:Xe(),exit:Xe()}}const As=1e-4,df=1-As,ff=1+As,Is=.01,hf=0-Is,mf=0+Is;function ce(e){return e.max-e.min}function pf(e,t,n){return Math.abs(e-t)<=n}function Ls(e,t,n,o=.5){e.origin=o,e.originPoint=q(t.min,t.max,e.origin),e.scale=ce(n)/ce(t),e.translate=q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=df&&e.scale<=ff||isNaN(e.scale))&&(e.scale=1),(e.translate>=hf&&e.translate<=mf||isNaN(e.translate))&&(e.translate=0)}function Dt(e,t,n,o){Ls(e.x,t.x,n.x,o?o.originX:void 0),Ls(e.y,t.y,n.y,o?o.originY:void 0)}function Rs(e,t,n){e.min=n.min+t.min,e.max=e.min+ce(t)}function gf(e,t,n){Rs(e.x,t.x,n.x),Rs(e.y,t.y,n.y)}function _s(e,t,n){e.min=t.min-n.min,e.max=e.min+ce(t)}function on(e,t,n){_s(e.x,t.x,n.x),_s(e.y,t.y,n.y)}function Bs(e,t,n,o,r){return e-=t,e=nn(e,1/n,o),r!==void 0&&(e=nn(e,1/r,o)),e}function vf(e,t=0,n=1,o=.5,r,i=e,s=e){if(Me.test(t)&&(t=parseFloat(t),t=q(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=q(i.min,i.max,o);e===i&&(a-=t),e.min=Bs(e.min,t,n,a,r),e.max=Bs(e.max,t,n,a,r)}function Ns(e,t,[n,o,r],i,s){vf(e,t[n],t[o],t[r],t.scale,i,s)}const yf=["x","scaleX","originX"],wf=["y","scaleY","originY"];function zs(e,t,n,o){Ns(e.x,t,yf,n?n.x:void 0,o?o.x:void 0),Ns(e.y,t,wf,n?n.y:void 0,o?o.y:void 0)}function Os(e,t){e.min=t.min,e.max=t.max}function be(e,t){Os(e.x,t.x),Os(e.y,t.y)}function Hs(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function js(e){return e.translate===0&&e.scale===1}function Gs(e){return js(e.x)&&js(e.y)}function Us(e,t){return e.min===t.min&&e.max===t.max}function bf(e,t){return Us(e.x,t.x)&&Us(e.y,t.y)}function Ks(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ws(e,t){return Ks(e.x,t.x)&&Ks(e.y,t.y)}function qs(e){return ce(e.x)/ce(e.y)}function Ys(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ge(e){return[e("x"),e("y")]}function xf(e,t,n){let o="";const r=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((r||i||s)&&(o=`translate3d(${r}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:u,rotateY:h,skewX:f,skewY:v}=n;c&&(o=`perspective(${c}px) ${o}`),d&&(o+=`rotate(${d}deg) `),u&&(o+=`rotateX(${u}deg) `),h&&(o+=`rotateY(${h}deg) `),f&&(o+=`skewX(${f}deg) `),v&&(o+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(o+=`scale(${a}, ${l})`),o||"none"}const Xs=["TopLeft","TopRight","BottomLeft","BottomRight"],Sf=Xs.length,Zs=e=>typeof e=="string"?parseFloat(e):e,Js=e=>typeof e=="number"||k.test(e);function Cf(e,t,n,o,r,i){r?(e.opacity=q(0,n.opacity??1,Tf(o)),e.opacityExit=q(t.opacity??1,0,$f(o))):i&&(e.opacity=q(t.opacity??1,n.opacity??1,o));for(let s=0;s<Sf;s++){const a=`border${Xs[s]}Radius`;let l=Qs(t,a),c=Qs(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Js(l)===Js(c)?(e[a]=Math.max(q(Zs(l),Zs(c),o),0),(Me.test(c)||Me.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=q(t.rotate||0,n.rotate||0,o))}function Qs(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Tf=ea(0,.5,ei),$f=ea(.5,.95,me);function ea(e,t,n){return o=>o<e?0:o>t?1:n(St(e,t,o))}function Pf(e,t){const n=le.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(Le(o),e(i-t))};return U.setup(o,!0),()=>Le(o)}function Ft(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function rn(e){return ie(e)?e.get():e}function Mf(e,t,n){const o=ie(e)?e:st(e);return o.start(mo("",o,t,n)),o.animation}const kf=(e,t)=>e.depth-t.depth;class Vf{constructor(){this.children=[],this.isDirty=!1}add(t){Dn(this.children,t),this.isDirty=!0}remove(t){Fn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kf),this.isDirty=!1,this.children.forEach(t)}}class Ef{constructor(){this.members=[]}add(t){Dn(this.members,t),t.scheduleRender()}remove(t){if(Fn(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(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const sn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Io=["","X","Y","Z"],Df=1e3;let Ff=0;function Lo(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function ta(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ji(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",U,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&ta(o)}function na({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(s={},a=t?.()){this.id=Ff++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Lf),this.nodes.forEach(Nf),this.nodes.forEach(zf),this.nodes.forEach(Rf)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vf)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ln),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=ss(s)&&!Ad(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let d,u=0;const h=()=>this.root.updateBlockedByResize=!1;U.read(()=>{u=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==u&&(u=f,this.root.updateBlockedByResize=!0,d&&d(),d=Pf(h,250),sn.hasAnimatedSinceResize&&(sn.hasAnimatedSinceResize=!1,this.nodes.forEach(ia)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||Uf,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=c.getProps(),w=!this.targetLayout||!Ws(this.targetLayout,f),T=!u&&h;if(this.options.layoutRoot||this.resumeFrom||T||u&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...ho(v,"layout"),onPlay:y,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(d,T)}else u||ia(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Le(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(Of),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ta(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(oa);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ra);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bf),this.nodes.forEach(Af),this.nodes.forEach(If)):this.nodes.forEach(ra),this.clearAllSnapshots();const a=le.now();ne.delta=$e(0,1e3/60,a-ne.timestamp),ne.timestamp=a,ne.isProcessing=!0,Nn.update.process(ne),Nn.preRender.process(ne),Nn.render.process(ne),ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,So.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_f),this.sharedNodes.forEach(Hf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ce(this.snapshot.measuredBox.x)&&!ce(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Gs(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||Ye(this.latestValues)||d)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Kf(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ee();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Wf))){const{scroll:c}=this.root;c&&(ct(a.x,c.offset.x),ct(a.y,c.offset.y))}return a}removeElementScroll(s){const a=ee();if(be(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:u}=c;c!==this.root&&d&&u.layoutScroll&&(d.wasRoot&&be(a,s),ct(a.x,d.offset.x),ct(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=ee();be(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ut(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Ye(d.latestValues)&&ut(l,d.latestValues)}return Ye(this.latestValues)&&ut(l,this.latestValues),l}removeTransform(s){const a=ee();be(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Ye(c.latestValues))continue;Vo(c.latestValues)&&c.updateSnapshot();const d=ee(),u=c.measurePageBox();be(d,u),zs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Ye(this.latestValues)&&zs(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:u}=this.options;if(!this.layout||!(d||u))return;this.resolvedRelativeTargetAt=ne.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ee(),this.targetWithTransforms=ee()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):be(this.target,this.layout.layoutBox),ys(this.target,this.targetDelta)):be(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Vo(this.parent.latestValues)||ps(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),on(this.relativeTargetOrigin,a,l),be(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;be(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,h=this.treeScale.y;Gd(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ee());const{target:f}=s;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hs(this.prevProjectionDelta.x,this.projectionDelta.x),Hs(this.prevProjectionDelta.y,this.projectionDelta.y)),Dt(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==h||!Ys(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ys(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=lt(),this.projectionDelta=lt(),this.projectionDeltaWithTransform=lt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=lt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ee(),f=l?l.source:void 0,v=this.layout?this.layout.source:void 0,y=f!==v,b=this.getStack(),w=!b||b.members.length<=1,T=!!(y&&!w&&this.options.crossfade===!0&&!this.path.some(Gf));this.animationProgress=0;let C;this.mixTargetDelta=M=>{const x=M/1e3;sa(u.x,s.x,x),sa(u.y,s.y,x),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(on(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jf(this.relativeTarget,this.relativeTargetOrigin,h,x),C&&bf(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=ee()),be(C,this.relativeTarget)),y&&(this.animationValues=d,Cf(d,c,this.latestValues,x,T,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Le(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.update(()=>{sn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=st(0)),this.currentAnimation=Mf(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Df),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&da(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ee();const u=ce(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=ce(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}be(a,l),ut(a,d),Dt(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Ef),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Lo("z",s,c,this.animationValues);for(let d=0;d<Io.length;d++)Lo(`rotate${Io[d]}`,s,c,this.animationValues),Lo(`skew${Io[d]}`,s,c,this.animationValues);s.render();for(const d in c)s.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=rn(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=rn(a?.pointerEvents)||""),this.hasProjected&&!Ye(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=xf(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),s.transform=u;const{x:h,y:f}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,c.animationValues?s.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in Fo){if(d[v]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:w}=Fo[v],T=u==="none"?d[v]:y(d[v],c);if(b){const C=b.length;for(let M=0;M<C;M++)s[b[M]]=T}else w?this.options.visualElement.renderState.vars[v]=T:s[v]=T}this.options.layoutId&&(s.pointerEvents=c===this?rn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(oa),this.root.sharedNodes.clear()}}}function Af(e){e.updateLayout()}function If(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:r}=e.options,i=t.source!==e.layout.source;r==="size"?ge(d=>{const u=i?t.measuredBox[d]:t.layoutBox[d],h=ce(u);u.min=n[d].min,u.max=u.min+h}):da(r,t.layoutBox,n)&&ge(d=>{const u=i?t.measuredBox[d]:t.layoutBox[d],h=ce(n[d]);u.max=u.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=lt();Dt(s,n,t.layoutBox);const a=lt();i?Dt(a,e.applyTransform(o,!0),t.measuredBox):Dt(a,n,t.layoutBox);const l=!Gs(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:h}=d;if(u&&h){const f=ee();on(f,t.layoutBox,u.layoutBox);const v=ee();on(v,n,h.layoutBox),Ws(f,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=f,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Lf(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 Rf(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _f(e){e.clearSnapshot()}function oa(e){e.clearMeasurements()}function ra(e){e.isLayoutDirty=!1}function Bf(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ia(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Nf(e){e.resolveTargetDelta()}function zf(e){e.calcProjection()}function Of(e){e.resetSkewAndRotation()}function Hf(e){e.removeLeadSnapshot()}function sa(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 aa(e,t,n,o){e.min=q(t.min,n.min,o),e.max=q(t.max,n.max,o)}function jf(e,t,n,o){aa(e.x,t.x,n.x,o),aa(e.y,t.y,n.y,o)}function Gf(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Uf={duration:.45,ease:[.4,0,.1,1]},la=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ca=la("applewebkit/")&&!la("chrome/")?Math.round:me;function ua(e){e.min=ca(e.min),e.max=ca(e.max)}function Kf(e){ua(e.x),ua(e.y)}function da(e,t,n){return e==="position"||e==="preserve-aspect"&&!pf(qs(t),qs(n),.2)}function Wf(e){return e!==e.root&&e.scroll?.wasRoot}const qf=na({attachResizeListener:(e,t)=>Ft(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ro={current:void 0},fa=na({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ro.current){const e=new qf({});e.mount(window),e.setOptions({layoutScroll:!0}),Ro.current=e}return Ro.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_o=m.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 Yf(...e){return t=>{let n=!1;const o=e.map(r=>{const i=ha(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():ha(e[r],null)}}}}function Xf(...e){return Ue.useCallback(Yf(...e),e)}class Zf extends Ue.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,r=Ji(o)&&o.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Jf({children:e,isPresent:t,anchorX:n,root:o}){const r=m.useId(),i=m.useRef(null),s=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=m.useContext(_o),l=e.props?.ref??e?.ref,c=Xf(i,l);return m.useInsertionEffect(()=>{const{width:d,height:u,top:h,left:f,right:v}=s.current;if(t||!i.current||!d||!u)return;const y=n==="left"?`left: ${f}`:`right: ${v}`;i.current.dataset.motionPopId=r;const b=document.createElement("style");a&&(b.nonce=a);const w=o??document.head;return w.appendChild(b),b.sheet&&b.sheet.insertRule(`
168
+ [data-motion-pop-id="${r}"] {
228
169
  position: absolute !important;
229
170
  width: ${d}px !important;
230
171
  height: ${u}px !important;
231
172
  ${y}px !important;
232
173
  top: ${h}px !important;
233
174
  }
234
- `),()=>{v.contains(x)&&v.removeChild(x)}},[t]),g.jsx(sg,{isPresent:t,childRef:i,sizeRef:s,children:ft.cloneElement(e,{ref:c})})}const lg=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=Wr(cg),d=p.useId();let u=!0,h=p.useMemo(()=>(u=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:f=>{c.set(f,!0);for(const m of c.values())if(!m)return;r&&r()},register:f=>(c.set(f,!1),()=>c.delete(f))}),[n,c,r]);return i&&u&&(h={...h}),p.useMemo(()=>{c.forEach((f,m)=>c.set(m,!1))},[n]),ft.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),s==="popLayout"&&(e=g.jsx(ag,{isPresent:n,anchorX:a,root:l,children:e})),g.jsx(Un.Provider,{value:h,children:e})};function cg(){return new Map}function gc(e=!0){const t=p.useContext(Un);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=p.useId();p.useEffect(()=>{if(e)return o(i)},[e]);const s=p.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const sr=e=>e.key||"";function yc(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const gn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,d]=gc(s),u=p.useMemo(()=>yc(e),[e]),h=s&&!c?[]:u.map(sr),f=p.useRef(!0),m=p.useRef(u),y=Wr(()=>new Map),x=p.useRef(new Set),[v,T]=p.useState(u),[w,M]=p.useState(u);Gs(()=>{f.current=!1,m.current=u;for(let k=0;k<w.length;k++){const E=sr(w[k]);h.includes(E)?(y.delete(E),x.current.delete(E)):y.get(E)!==!0&&y.set(E,!1)}},[w,h.length,h.join("-")]);const b=[];if(u!==v){let k=[...u];for(let E=0;E<w.length;E++){const D=w[E],A=sr(D);h.includes(A)||(k.splice(E,0,D),b.push(D))}return i==="wait"&&b.length&&(k=b),M(yc(k)),T(u),null}process.env.NODE_ENV!=="production"&&i==="wait"&&w.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.useContext(Ur);return g.jsx(g.Fragment,{children:w.map(k=>{const E=sr(k),D=s&&!c?!1:u===w||h.includes(E),A=()=>{if(x.current.has(E))return;if(x.current.add(E),y.has(E))y.set(E,!0);else return;let I=!0;y.forEach(N=>{N||(I=!1)}),I&&($?.(),M(m.current),s&&d?.(),r&&r())};return g.jsx(lg,{isPresent:D,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:D?void 0:A,anchorX:a,children:k},E)})})},vc=p.createContext({strict:!1}),wc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let bc=!1;function ug(){if(bc)return;const e={};for(const t in wc)e[t]={isEnabled:n=>wc[t].some(r=>!!n[r])};pl(e),bc=!0}function xc(){return ug(),Xp()}function dg(e){const t=xc();for(const n in e)t[n]={...t[n],...e[n]};pl(t)}const fg=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 ar(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fg.has(e)}let Sc=e=>!ar(e);function hg(e){typeof e=="function"&&(Sc=t=>t.startsWith("on")?!ar(t):e(t))}try{hg(require("@emotion/is-prop-valid").default)}catch{}function pg(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Sc(o)||n===!0&&ar(o)||!t&&!ar(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const lr=p.createContext({});function mg(e,t){if(er(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fn(n)?n:void 0,animate:fn(r)?r:void 0}}return e.inherit!==!1?t:{}}function gg(e){const{initial:t,animate:n}=mg(e,p.useContext(lr));return p.useMemo(()=>({initial:t,animate:n}),[Cc(t),Cc(n)])}function Cc(e){return Array.isArray(e)?e.join(" "):e}const ei=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tc(e,t,n){for(const r in t)!he(t[r])&&!$l(r,n)&&(e[r]=t[r])}function yg({transformTemplate:e},t){return p.useMemo(()=>{const n=ei();return Ko(n,t,e),Object.assign({},n.vars,n.style)},[t])}function vg(e,t){const n=e.style||{},r={};return Tc(r,n,e),Object.assign(r,yg(e,t)),r}function wg(e,t){const n={},r=vg(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 kc=()=>({...ei(),attrs:{}});function bg(e,t,n,r){const o=p.useMemo(()=>{const i=kc();return El(i,t,Al(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Tc(i,e.style,e),o.style={...i,...o.style}}return o}const xg=["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 ti(e){return typeof e!="string"||e.includes("-")?!1:!!(xg.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sg(e,t,n,{latestValues:r},o,i=!1,s){const l=(s??ti(e)?bg:wg)(t,r,o,e),c=pg(t,typeof e=="string",i),d=e!==p.Fragment?{...c,...l,ref:n}:{},{children:u}=t,h=p.useMemo(()=>he(u)?u.get():u,[u]);return p.createElement(e,{...d,children:h})}function Cg({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Tg(n,r,o,e),renderState:t()}}function Tg(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=or(i[h]);let{initial:s,animate:a}=e;const l=er(e),c=fl(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const u=d?a:s;if(u&&typeof u!="boolean"&&!Qn(u)){const h=Array.isArray(u)?u:[u];for(let f=0;f<h.length;f++){const m=Do(e,h[f]);if(m){const{transitionEnd:y,transition:x,...v}=m;for(const T in v){let w=v[T];if(Array.isArray(w)){const M=d?w.length-1:0;w=w[M]}w!==null&&(o[T]=w)}for(const T in y)o[T]=y[T]}}}return o}const Pc=e=>(t,n)=>{const r=p.useContext(lr),o=p.useContext(Un),i=()=>Cg(e,t,r,o);return n?i():Wr(i)},kg=Pc({scrapeMotionValuesFromProps:qo,createRenderState:ei}),Pg=Pc({scrapeMotionValuesFromProps:Dl,createRenderState:kc}),$g=Symbol.for("motionComponentSymbol");function Eg(e,t,n){const r=p.useRef(n);p.useInsertionEffect(()=>{r.current=n});const o=p.useRef(null);return p.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const s=r.current;if(typeof s=="function")if(i){const a=s(i);typeof a=="function"&&(o.current=a)}else o.current?(o.current(),o.current=null):s(i);else s&&(s.current=i)},[t])}const $c=p.createContext({});function yn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Mg(e,t,n,r,o,i){const{visualElement:s}=p.useContext(lr),a=p.useContext(vc),l=p.useContext(Un),c=p.useContext(Qo).reducedMotion,d=p.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,isSVG:i}));const u=d.current,h=p.useContext($c);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Ag(d.current,n,o,h);const f=p.useRef(!1);p.useInsertionEffect(()=>{u&&f.current&&u.update(n,l)});const m=n[Ga],y=p.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Gs(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),p.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),y.current=!1),u.enteringChildren=void 0)}),u}function Ag(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ec(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&yn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c})}function Ec(e){if(e)return e.options.allowProjection!==!1?e.projection:Ec(e.parent)}function ni(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&dg(r);const i=n?n==="svg":ti(e),s=i?Pg:kg;function a(c,d){let u;const h={...p.useContext(Qo),...c,layoutId:Dg(c)},{isStatic:f}=h,m=gg(c),y=s(c,f);if(!f&&js){Vg(h,r);const x=Fg(h);u=x.MeasureLayout,m.visualElement=Mg(e,y,h,o,x.ProjectionNode,i)}return g.jsxs(lr.Provider,{value:m,children:[u&&m.visualElement?g.jsx(u,{visualElement:m.visualElement,...h}):null,Sg(e,c,Eg(y,m.visualElement,d),y,f,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=p.forwardRef(a);return l[$g]=e,l}function Dg({layoutId:e}){const t=p.useContext(Ur).id;return t&&e!==void 0?t+"-"+e:e}function Vg(e,t){const n=p.useContext(vc).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?Lt(!1,r,"lazy-strict-mode"):Ue(!1,r,"lazy-strict-mode")}}function Fg(e){const t=xc(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function Ig(e,t){if(typeof Proxy>"u")return ni;const n=new Map,r=(i,s)=>ni(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Jr(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,ni(s,void 0,e,t)),n.get(s))})}const Rg=(e,t)=>t.isSVG??ti(e)?new hm(t):new am(t,{allowProjection:e!==p.Fragment});class Lg extends ot{constructor(t){super(t),t.animationState||(t.animationState=vm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Qn(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 _g=0;class Ng extends ot{constructor(){super(...arguments),this.id=_g++}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 Og={animation:{Feature:Lg},exit:{Feature:Ng}};function vn(e){return{point:{x:e.pageX,y:e.pageY}}}const Bg=e=>t=>Oo(t)&&e(t,vn(t));function wn(e,t,n,r){return mn(e,t,Bg(n),r)}const Mc=({current:e})=>e?e.ownerDocument.defaultView:null,Ac=(e,t)=>Math.abs(e-t);function zg(e,t){const n=Ac(e.x,t.x),r=Ac(e.y,t.y);return Math.sqrt(n**2+r**2)}const Dc=new Set(["auto","scroll"]);class Vc{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=oi(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=zg(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!y)return;const{point:x}=f,{timestamp:v}=ue;this.history.push({...x,timestamp:v});const{onStart:T,onMove:w}=this.handlers;m||(T&&T(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ri(m,this.transformPagePoint),ee.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=oi(f.type==="pointercancel"?this.lastMoveEventInfo:ri(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,T),x&&x(f,T)},!Oo(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const l=vn(t),c=ri(l,this.transformPagePoint),{point:d}=c,{timestamp:u}=ue;this.history=[{...d,timestamp:u}];const{onSessionStart:h}=n;h&&h(t,oi(c,this.history)),this.removeListeners=rn(wn(this.contextWindow,"pointermove",this.handlePointerMove),wn(this.contextWindow,"pointerup",this.handlePointerUp),wn(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Dc.has(r.overflowX)||Dc.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),ee.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),et(this.updatePoint)}}function ri(e,t){return t?{point:t(e.point)}:e}function Fc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oi({point:e},t){return{point:e,delta:Fc(e,Ic(t)),offset:Fc(e,Hg(t)),velocity:jg(t,.1)}}function Hg(e){return e[0]}function Ic(e){return e[e.length-1]}function jg(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ic(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Be(t)));)n--;if(!r)return{x:0,y:0};const i=Ee(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Gg(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Rc(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 Ug(e,{top:t,left:n,bottom:r,right:o}){return{x:Rc(e.x,n,o),y:Rc(e.y,t,r)}}function Lc(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 Wg(e,t){return{x:Lc(e.x,t.x),y:Lc(e.y,t.y)}}function Kg(e,t){let n=.5;const r=we(e),o=we(t);return o>r?n=on(t.min,t.max-r,e.min):r>o&&(n=on(e.min,e.max-o,t.min)),Oe(0,1,n)}function Yg(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 ii=.35;function qg(e=ii){return e===!1?e=0:e===!0&&(e=ii),{x:_c(e,"left","right"),y:_c(e,"top","bottom")}}function _c(e,t,n){return{min:Nc(e,t),max:Nc(e,n)}}function Nc(e,t){return typeof e=="number"?e:e[t]||0}const Xg=new WeakMap;class Zg{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=ae(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=u=>{n?(this.stopAnimation(),this.snapToCursor(vn(u).point)):this.pauseAnimation()},s=(u,h)=>{this.stopAnimation();const{drag:f,dragPropagation:m,onDragStart:y}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Np(f),!this.openDragLock))return;this.latestPointerEvent=u,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),Me(v=>{let T=this.getAxisMotionValue(v).get()||0;if(ze.test(T)){const{projection:w}=this.visualElement;if(w&&w.layout){const M=w.layout.layoutBox[v];M&&(T=we(M)*(parseFloat(T)/100))}}this.originPoint[v]=T}),y&&ee.postRender(()=>y(u,h)),Fo(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(u,h)=>{this.latestPointerEvent=u,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:y,onDrag:x}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:v}=h;if(m&&this.currentDirection===null){this.currentDirection=Jg(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),x&&x(u,h)},l=(u,h)=>{this.latestPointerEvent=u,this.latestPanInfo=h,this.stop(u,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Me(u=>this.getAnimationState(u)==="paused"&&this.getAxisMotionValue(u).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Vc(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Mc(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&ee.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||!cr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Gg(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&yn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ug(r.layoutBox,t):this.constraints=!1,this.elastic=qg(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Me(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Yg(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!yn(t))return!1;const r=t.current;Ue(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 i=tm(r,o.root,this.visualElement.getTransformPagePoint());let s=Wg(o.layout.layoutBox,i);if(n){const a=n(Jp(s));this.hasMutatedConstraints=!!a,a&&(s=gl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Me(d=>{if(!cr(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const h=o?200:1e6,f=o?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(d,m)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Fo(this.visualElement,t),r.start(Ao(t,r,0,n,this.visualElement,!1))}stopAnimation(){Me(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Me(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){Me(n=>{const{drag:r}=this.getProps();if(!cr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-ne(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!yn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Me(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=Kg({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Me(s=>{if(!cr(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(ne(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;Xg.set(this.visualElement,this);const t=this.visualElement.current,n=wn(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&!il(l.target)&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();yn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ee.read(r);const s=mn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Me(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=ii,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function cr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Jg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Qg extends ot{constructor(t){super(t),this.removeGroupControls=$e,this.removeListeners=$e,this.controls=new Zg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$e}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Oc=e=>(t,n)=>{e&&ee.postRender(()=>e(t,n))};class e0 extends ot{constructor(){super(...arguments),this.removePointerDownListener=$e}onPointerDown(t){this.session=new Vc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Mc(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Oc(t),onStart:Oc(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ee.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=wn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let si=!1;class t0 extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),si&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ir.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,si=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ee.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),No.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;si=!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 Bc(e){const[t,n]=gc(),r=p.useContext(Ur);return g.jsx(t0,{...e,layoutGroup:r,switchLayoutGroup:p.useContext($c),isPresent:t,safeToRemove:n})}const n0={pan:{Feature:e0},drag:{Feature:Qg,ProjectionNode:pc,MeasureLayout:Bc}};function zc(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&ee.postRender(()=>i(t,vn(t)))}class r0 extends ot{mount(){const{current:t}=this.node;t&&(this.unmount=Op(t,(n,r)=>(zc(this.node,r,"Start"),o=>zc(this.node,o,"End"))))}unmount(){}}class o0 extends ot{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=rn(mn(this.node.current,"focus",()=>this.onFocus()),mn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hc(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&ee.postRender(()=>i(t,vn(t)))}class i0 extends ot{mount(){const{current:t}=this.node;t&&(this.unmount=Hp(t,(n,r)=>(Hc(this.node,r,"Start"),(o,{success:i})=>Hc(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ai=new WeakMap,li=new WeakMap,s0=e=>{const t=ai.get(e.target);t&&t(e)},a0=e=>{e.forEach(s0)};function l0({root:e,...t}){const n=e||document;li.has(n)||li.set(n,{});const r=li.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(a0,{root:e,...t})),r[o]}function c0(e,t,n){const r=l0(t);return ai.set(e,n),r.observe(e),()=>{ai.delete(e),r.unobserve(e)}}const u0={some:0,all:1};class d0 extends ot{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:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:u0[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),h=c?d:u;h&&h(l)};return c0(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(f0(t,n))&&this.startObserver()}unmount(){}}function f0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const h0={...Og,...{inView:{Feature:d0},tap:{Feature:i0},focus:{Feature:o0},hover:{Feature:r0}},...n0,...{layout:{ProjectionNode:pc,MeasureLayout:Bc}}},Ke=Ig(h0,Rg),p0={sm:S`
175
+ `),()=>{w.contains(b)&&w.removeChild(b)}},[t]),p.jsx(Zf,{isPresent:t,childRef:i,sizeRef:s,children:Ue.cloneElement(e,{ref:c})})}const Qf=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=En(eh),d=m.useId();let u=!0,h=m.useMemo(()=>(u=!1,{id:d,initial:t,isPresent:n,custom:r,onExitComplete:f=>{c.set(f,!0);for(const v of c.values())if(!v)return;o&&o()},register:f=>(c.set(f,!1),()=>c.delete(f))}),[n,c,o]);return i&&u&&(h={...h}),m.useMemo(()=>{c.forEach((f,v)=>c.set(v,!1))},[n]),Ue.useEffect(()=>{!n&&!c.size&&o&&o()},[n]),s==="popLayout"&&(e=p.jsx(Jf,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(Ut.Provider,{value:h,children:e})};function eh(){return new Map}function ma(e=!0){const t=m.useContext(Ut);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=m.useId();m.useEffect(()=>{if(e)return r(i)},[e]);const s=m.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,s]:[!0]}const an=e=>e.key||"";function pa(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const At=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,d]=ma(s),u=m.useMemo(()=>pa(e),[e]),h=s&&!c?[]:u.map(an),f=m.useRef(!0),v=m.useRef(u),y=En(()=>new Map),b=m.useRef(new Set),[w,T]=m.useState(u),[C,M]=m.useState(u);Hr(()=>{f.current=!1,v.current=u;for(let V=0;V<C.length;V++){const $=an(C[V]);h.includes($)?(y.delete($),b.current.delete($)):y.get($)!==!0&&y.set($,!1)}},[C,h.length,h.join("-")]);const x=[];if(u!==w){let V=[...u];for(let $=0;$<C.length;$++){const F=C[$],D=an(F);h.includes(D)||(V.splice($,0,F),x.push(F))}return i==="wait"&&x.length&&(V=x),M(pa(V)),T(u),null}process.env.NODE_ENV!=="production"&&i==="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}=m.useContext(Vn);return p.jsx(p.Fragment,{children:C.map(V=>{const $=an(V),F=s&&!c?!1:u===C||h.includes($),D=()=>{if(b.current.has($))return;if(b.current.add($),y.has($))y.set($,!0);else return;let _=!0;y.forEach(N=>{N||(_=!1)}),_&&(P?.(),M(v.current),s&&d?.(),o&&o())};return p.jsx(Qf,{isPresent:F,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:l,onExitComplete:F?void 0:D,anchorX:a,children:V},$)})})},ga=m.createContext({strict:!1}),va={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let ya=!1;function th(){if(ya)return;const e={};for(const t in va)e[t]={isEnabled:n=>va[t].some(o=>!!n[o])};fs(e),ya=!0}function wa(){return th(),zd()}function nh(e){const t=wa();for(const n in e)t[n]={...t[n],...e[n]};fs(t)}const oh=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 ln(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oh.has(e)}let ba=e=>!ln(e);function rh(e){typeof e=="function"&&(ba=t=>t.startsWith("on")?!ln(t):e(t))}try{rh(require("@emotion/is-prop-valid").default)}catch{}function ih(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(ba(r)||n===!0&&ln(r)||!t&&!ln(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const cn=m.createContext({});function sh(e,t){if(en(e)){const{initial:n,animate:o}=e;return{initial:n===!1||Vt(n)?n:void 0,animate:Vt(o)?o:void 0}}return e.inherit!==!1?t:{}}function ah(e){const{initial:t,animate:n}=sh(e,m.useContext(cn));return m.useMemo(()=>({initial:t,animate:n}),[xa(t),xa(n)])}function xa(e){return Array.isArray(e)?e.join(" "):e}const Bo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sa(e,t,n){for(const o in t)!ie(t[o])&&!$s(o,n)&&(e[o]=t[o])}function lh({transformTemplate:e},t){return m.useMemo(()=>{const n=Bo();return Do(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ch(e,t){const n=e.style||{},o={};return Sa(o,n,e),Object.assign(o,lh(e,t)),o}function uh(e,t){const n={},o=ch(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n}const Ca=()=>({...Bo(),attrs:{}});function dh(e,t,n,o){const r=m.useMemo(()=>{const i=Ca();return Ps(i,t,ks(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Sa(i,e.style,e),r.style={...i,...r.style}}return r}const fh=["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 No(e){return typeof e!="string"||e.includes("-")?!1:!!(fh.indexOf(e)>-1||/[A-Z]/u.test(e))}function hh(e,t,n,{latestValues:o},r,i=!1,s){const l=(s??No(e)?dh:uh)(t,o,r,e),c=ih(t,typeof e=="string",i),d=e!==m.Fragment?{...c,...l,ref:n}:{},{children:u}=t,h=m.useMemo(()=>ie(u)?u.get():u,[u]);return m.createElement(e,{...d,children:h})}function mh({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:ph(n,o,r,e),renderState:t()}}function ph(e,t,n,o){const r={},i=o(e,{});for(const h in i)r[h]=rn(i[h]);let{initial:s,animate:a}=e;const l=en(e),c=us(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const u=d?a:s;if(u&&typeof u!="boolean"&&!Qt(u)){const h=Array.isArray(u)?u:[u];for(let f=0;f<h.length;f++){const v=po(e,h[f]);if(v){const{transitionEnd:y,transition:b,...w}=v;for(const T in w){let C=w[T];if(Array.isArray(C)){const M=d?C.length-1:0;C=C[M]}C!==null&&(r[T]=C)}for(const T in y)r[T]=y[T]}}}return r}const Ta=e=>(t,n)=>{const o=m.useContext(cn),r=m.useContext(Ut),i=()=>mh(e,t,o,r);return n?i():En(i)},gh=Ta({scrapeMotionValuesFromProps:Ao,createRenderState:Bo}),vh=Ta({scrapeMotionValuesFromProps:Vs,createRenderState:Ca}),yh=Symbol.for("motionComponentSymbol");function wh(e,t,n){const o=m.useRef(n);m.useInsertionEffect(()=>{o.current=n});const r=m.useRef(null);return m.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const s=o.current;if(typeof s=="function")if(i){const a=s(i);typeof a=="function"&&(r.current=a)}else r.current?(r.current(),r.current=null):s(i);else s&&(s.current=i)},[t])}const $a=m.createContext({});function It(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bh(e,t,n,o,r,i){const{visualElement:s}=m.useContext(cn),a=m.useContext(ga),l=m.useContext(Ut),c=m.useContext(_o).reducedMotion,d=m.useRef(null);o=o||a.renderer,!d.current&&o&&(d.current=o(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,isSVG:i}));const u=d.current,h=m.useContext($a);u&&!u.projection&&r&&(u.type==="html"||u.type==="svg")&&xh(d.current,n,r,h);const f=m.useRef(!1);m.useInsertionEffect(()=>{u&&f.current&&u.update(n,l)});const v=n[Hi],y=m.useRef(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return Hr(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),m.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),u.enteringChildren=void 0)}),u}function xh(e,t,n,o){const{layoutId:r,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Pa(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!s||a&&It(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:l,layoutRoot:c})}function Pa(e){if(e)return e.options.allowProjection!==!1?e.projection:Pa(e.parent)}function zo(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&nh(o);const i=n?n==="svg":No(e),s=i?vh:gh;function a(c,d){let u;const h={...m.useContext(_o),...c,layoutId:Sh(c)},{isStatic:f}=h,v=ah(c),y=s(c,f);if(!f&&Or){Ch(h,o);const b=Th(h);u=b.MeasureLayout,v.visualElement=bh(e,y,h,r,b.ProjectionNode,i)}return p.jsxs(cn.Provider,{value:v,children:[u&&v.visualElement?p.jsx(u,{visualElement:v.visualElement,...h}):null,hh(e,c,wh(y,v.visualElement,d),y,f,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=m.forwardRef(a);return l[yh]=e,l}function Sh({layoutId:e}){const t=m.useContext(Vn).id;return t&&e!==void 0?t+"-"+e:e}function Ch(e,t){const n=m.useContext(ga).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?et(!1,o,"lazy-strict-mode"):Ee(!1,o,"lazy-strict-mode")}}function Th(e){const t=wa(),{drag:n,layout:o}=t;if(!n&&!o)return{};const r={...n,...o};return{MeasureLayout:n?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $h(e,t){if(typeof Proxy>"u")return zo;const n=new Map,o=(i,s)=>zo(i,s,e,t),r=(i,s)=>(process.env.NODE_ENV!=="production"&&Rn(!1,"motion() is deprecated. Use motion.create() instead."),o(i,s));return new Proxy(r,{get:(i,s)=>s==="create"?o:(n.has(s)||n.set(s,zo(s,void 0,e,t)),n.get(s))})}const Ph=(e,t)=>t.isSVG??No(e)?new of(t):new Zd(t,{allowProjection:e!==m.Fragment});class Mh extends Ne{constructor(t){super(t),t.animationState||(t.animationState=cf(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Qt(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 kh=0;class Vh extends Ne{constructor(){super(...arguments),this.id=kh++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.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 Eh={animation:{Feature:Mh},exit:{Feature:Vh}};function Lt(e){return{point:{x:e.pageX,y:e.pageY}}}const Dh=e=>t=>Co(t)&&e(t,Lt(t));function Rt(e,t,n,o){return Ft(e,t,Dh(n),o)}const Ma=({current:e})=>e?e.ownerDocument.defaultView:null,ka=(e,t)=>Math.abs(e-t);function Fh(e,t){const n=ka(e.x,t.x),o=ka(e.y,t.y);return Math.sqrt(n**2+o**2)}const Va=new Set(["auto","scroll"]);class Ea{constructor(t,n,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ho(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,y=Fh(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!y)return;const{point:b}=f,{timestamp:w}=ne;this.history.push({...b,timestamp:w});const{onStart:T,onMove:C}=this.handlers;v||(T&&T(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,v)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Oo(v,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(f,v)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Ho(f.type==="pointercancel"?this.lastMoveEventInfo:Oo(v,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,T),b&&b(f,T)},!Co(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=s,this.contextWindow=r||window;const l=Lt(t),c=Oo(l,this.transformPagePoint),{point:d}=c,{timestamp:u}=ne;this.history=[{...d,timestamp:u}];const{onSessionStart:h}=n;h&&h(t,Ho(c,this.history)),this.removeListeners=xt(Rt(this.contextWindow,"pointermove",this.handlePointerMove),Rt(this.contextWindow,"pointerup",this.handlePointerUp),Rt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(Va.has(o.overflowX)||Va.has(o.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:r.x-n.x,y:r.y-n.y};i.x===0&&i.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,r),U.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Le(this.updatePoint)}}function Oo(e,t){return t?{point:t(e.point)}:e}function Da(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ho({point:e},t){return{point:e,delta:Da(e,Fa(t)),offset:Da(e,Ah(t)),velocity:Ih(t,.1)}}function Ah(e){return e[0]}function Fa(e){return e[e.length-1]}function Ih(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=Fa(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Pe(t)));)n--;if(!o)return{x:0,y:0};const i=pe(r.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const s={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Lh(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?q(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?q(n,e,o.max):Math.min(e,n)),e}function Aa(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 Rh(e,{top:t,left:n,bottom:o,right:r}){return{x:Aa(e.x,n,r),y:Aa(e.y,t,o)}}function Ia(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function _h(e,t){return{x:Ia(e.x,t.x),y:Ia(e.y,t.y)}}function Bh(e,t){let n=.5;const o=ce(e),r=ce(t);return r>o?n=St(t.min,t.max-o,e.min):o>r&&(n=St(e.min,e.max-r,t.min)),$e(0,1,n)}function Nh(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 jo=.35;function zh(e=jo){return e===!1?e=0:e===!0&&(e=jo),{x:La(e,"left","right"),y:La(e,"top","bottom")}}function La(e,t,n){return{min:Ra(e,t),max:Ra(e,n)}}function Ra(e,t){return typeof e=="number"?e:e[t]||0}const Oh=new WeakMap;class Hh{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:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{n?(this.stopAnimation(),this.snapToCursor(Lt(u).point)):this.pauseAnimation()},s=(u,h)=>{this.stopAnimation();const{drag:f,dragPropagation:v,onDragStart:y}=this.getProps();if(f&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kd(f),!this.openDragLock))return;this.latestPointerEvent=u,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),ge(w=>{let T=this.getAxisMotionValue(w).get()||0;if(Me.test(T)){const{projection:C}=this.visualElement;if(C&&C.layout){const M=C.layout.layoutBox[w];M&&(T=ce(M)*(parseFloat(T)/100))}}this.originPoint[w]=T}),y&&U.postRender(()=>y(u,h)),vo(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(u,h)=>{this.latestPointerEvent=u,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:v,onDirectionLock:y,onDrag:b}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:w}=h;if(v&&this.currentDirection===null){this.currentDirection=jh(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,w),this.updateAxis("y",h.point,w),this.visualElement.render(),b&&b(u,h)},l=(u,h)=>{this.latestPointerEvent=u,this.latestPanInfo=h,this.stop(u,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>ge(u=>this.getAnimationState(u)==="paused"&&this.getAxisMotionValue(u).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Ea(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Ma(this.visualElement),element:this.visualElement.current})}stop(t,n){const o=t||this.latestPointerEvent,r=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!o)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&U.postRender(()=>a(o,r))}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:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!un(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(s=Lh(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&It(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=Rh(o.layoutBox,t):this.constraints=!1,this.elastic=zh(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ge(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Nh(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!It(t))return!1;const o=t.current;Ee(o!==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:r}=this.visualElement;if(!r||!r.layout)return!1;const i=Ud(o,r.root,this.visualElement.getTransformPagePoint());let s=_h(r.layout.layoutBox,i);if(n){const a=n(Hd(s));this.hasMutatedConstraints=!!a,a&&(s=ms(a))}return s}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ge(d=>{if(!un(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const h=r?200:1e6,f=r?40:1e7,v={type:"inertia",velocity:o?t[d]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(d,v)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return vo(this.visualElement,t),o.start(mo(t,o,0,n,this.visualElement,!1))}stopAnimation(){ge(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ge(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){ge(n=>{const{drag:o}=this.getProps();if(!un(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-q(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!It(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ge(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=Bh({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),ge(s=>{if(!un(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(q(l,c,r[s]))})}addListeners(){if(!this.visualElement.current)return;Oh.set(this.visualElement,this);const t=this.visualElement.current,n=Rt(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&!os(l.target)&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();It(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),U.read(o);const s=Ft(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ge(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=jo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function un(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jh(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Gh extends Ne{constructor(t){super(t),this.removeGroupControls=me,this.removeListeners=me,this.controls=new Hh(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||me}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const _a=e=>(t,n)=>{e&&U.postRender(()=>e(t,n))};class Uh extends Ne{constructor(){super(...arguments),this.removePointerDownListener=me}onPointerDown(t){this.session=new Ea(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ma(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:_a(t),onStart:_a(n),onMove:o,onEnd:(i,s)=>{delete this.session,r&&U.postRender(()=>r(i,s))}}}mount(){this.removePointerDownListener=Rt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Go=!1;class Kh extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),o&&o.register&&r&&o.register(i),Go&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),sn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:i}=this.props,{projection:s}=o;return s&&(s.isPresent=i,Go=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||U.postRender(()=>{const a=s.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:o}=this.props,{projection:r}=t;Go=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ba(e){const[t,n]=ma(),o=m.useContext(Vn);return p.jsx(Kh,{...e,layoutGroup:o,switchLayoutGroup:m.useContext($a),isPresent:t,safeToRemove:n})}const Wh={pan:{Feature:Uh},drag:{Feature:Gh,ProjectionNode:fa,MeasureLayout:Ba}};function Na(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=o[r];i&&U.postRender(()=>i(t,Lt(t)))}class qh extends Ne{mount(){const{current:t}=this.node;t&&(this.unmount=Vd(t,(n,o)=>(Na(this.node,o,"Start"),r=>Na(this.node,r,"End"))))}unmount(){}}class Yh extends Ne{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=xt(Ft(this.node.current,"focus",()=>this.onFocus()),Ft(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function za(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=o[r];i&&U.postRender(()=>i(t,Lt(t)))}class Xh extends Ne{mount(){const{current:t}=this.node;t&&(this.unmount=Fd(t,(n,o)=>(za(this.node,o,"Start"),(r,{success:i})=>za(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Uo=new WeakMap,Ko=new WeakMap,Zh=e=>{const t=Uo.get(e.target);t&&t(e)},Jh=e=>{e.forEach(Zh)};function Qh({root:e,...t}){const n=e||document;Ko.has(n)||Ko.set(n,{});const o=Ko.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(Jh,{root:e,...t})),o[r]}function em(e,t,n){const o=Qh(t);return Uo.set(e,n),o.observe(e),()=>{Uo.delete(e),o.unobserve(e)}}const tm={some:0,all:1};class nm extends Ne{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:tm[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),h=c?d:u;h&&h(l)};return em(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(om(t,n))&&this.startObserver()}unmount(){}}function om({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rm={...Eh,...{inView:{Feature:nm},tap:{Feature:Xh},focus:{Feature:Yh},hover:{Feature:qh}},...Wh,...{layout:{ProjectionNode:fa,MeasureLayout:Ba}}},Fe=$h(rm,Ph),im={sm:g.css`
235
176
  width: 1.25rem;
236
177
  height: 1.25rem;
237
- `,md:S`
178
+ `,md:g.css`
238
179
  width: 1.75rem;
239
180
  height: 1.75rem;
240
- `,lg:S`
181
+ `,lg:g.css`
241
182
  width: 3rem;
242
183
  height: 3rem;
243
- `,xl:S`
184
+ `,xl:g.css`
244
185
  width: 4rem;
245
186
  height: 4rem;
246
- `},jc={primary:S`
187
+ `},Oa={primary:g.css`
247
188
  color: var(--color-main-blue-primary);
248
- `,orange:S`
189
+ `,orange:g.css`
249
190
  color: var(--color-main-orange-primary);
250
- `,white:S`
191
+ `,white:g.css`
251
192
  color: var(--color-main-white);
252
- `,gray:S`
193
+ `,gray:g.css`
253
194
  color: var(--color-main-grey);
254
- `},m0=P.div`
195
+ `},sm=g.div`
255
196
  position: relative;
256
197
  display: block;
257
- ${({$size:e="md"})=>p0[e]}
258
- ${({$color:e="primary"})=>jc[e]}
198
+ ${({$size:e="md"})=>im[e]}
199
+ ${({$color:e="primary"})=>Oa[e]}
259
200
  user-select: none;
260
- `,g0=P.div`
201
+ `,am=g.div`
261
202
  display: flex;
262
203
  flex-direction: column;
263
204
  align-items: center;
264
205
  gap: 0.5rem;
265
206
  padding: 2.5px 2.5px 2.5px 0px;
266
- `,y0=P.div`
207
+ `,lm=g.div`
267
208
  display: flex;
268
209
  align-items: center;
269
210
  justify-content: center;
270
211
  min-height: 12.5rem;
271
212
  width: 100%;
272
- `,v0=P(Ke.p)`
273
- ${F[16]}
274
- ${({$color:e="primary"})=>jc[e]}
213
+ `,cm=g(Fe.p)`
214
+ ${E[16]}
215
+ ${({$color:e="primary"})=>Oa[e]}
275
216
  margin: 0;
276
- `,w0=({variant:e,title:t})=>g.jsxs(Ke.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:e==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:e==="rotate"?{repeat:1/0,duration:2,ease:"linear"}:{repeat:1/0,duration:2,ease:"easeInOut"},children:[g.jsx("g",{transform:"scale(0.15) translate(-10, -1)",children:g.jsx("path",{fill:"currentColor",d:`M67.251411,286.749390
217
+ `,um=({variant:e,title:t})=>p.jsxs(Fe.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:e==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:e==="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
218
  C42.999393,262.534088 27.711603,233.886490 21.140957,200.638245
278
219
  C20.527918,197.536194 19.462318,196.344513 16.327942,196.535400
279
220
  C12.711285,196.755646 9.070918,196.586609 4.251685,196.586609
@@ -290,7 +231,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
290
231
  C231.681030,-17.750278 329.482361,42.974667 346.823608,138.519577
291
232
  C363.551025,230.682480 301.903687,318.479523 209.509521,332.564972
292
233
  C155.049683,340.867371 107.495514,325.072021 67.251411,286.749390
293
- z`})}),t&&g.jsx("title",{children:t})]}),ur=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:i="rotate"})=>{const s=g.jsxs(g0,{children:[g.jsx(m0,{$size:e,$color:t,$variant:i,children:g.jsx(w0,{variant:i,title:o})}),r&&g.jsx(v0,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?g.jsx(y0,{children:s}):s},b0=P.div`
234
+ z`})}),t&&p.jsx("title",{children:t})]}),dn=({size:e="md",color:t="primary",centered:n=!0,message:o,title:r,variant:i="rotate"})=>{const s=p.jsxs(am,{children:[p.jsx(sm,{$size:e,$color:t,$variant:i,children:p.jsx(um,{variant:i,title:r})}),o&&p.jsx(cm,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:o})]});return n?p.jsx(lm,{children:s}):s},dm=g.div`
294
235
  position: fixed;
295
236
  inset: 0;
296
237
  background-color: rgba(255, 255, 255, 0.8);
@@ -299,7 +240,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
299
240
  align-items: center;
300
241
  justify-content: center;
301
242
  z-index: 50;
302
- `,x0=P.div`
243
+ `,fm=g.div`
303
244
  background-color: var(--color-main-white);
304
245
  border-radius: var(--border-radius-card);
305
246
  box-shadow: var(--shadow-black-card);
@@ -310,18 +251,18 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
310
251
  gap: 1rem;
311
252
  width: 90%;
312
253
  max-width: 24rem;
313
- `,S0=P.h2`
314
- ${Gr[30]}
254
+ `,hm=g.h2`
255
+ ${kn[30]}
315
256
  color: var(--color-main-blue-primary);
316
257
  margin: 0 auto;
317
258
  text-align: center;
318
- `,C0=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>g.jsx(b0,{role:"status","aria-live":"polite",children:g.jsxs(x0,{children:[g.jsx(ur,{size:"xl",color:t,centered:!1,title:e,variant:n}),g.jsx(S0,{children:e})]})}),T0=P.div`
259
+ `,mm=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>p.jsx(dm,{role:"status","aria-live":"polite",children:p.jsxs(fm,{children:[p.jsx(dn,{size:"xl",color:t,centered:!1,title:e,variant:n}),p.jsx(hm,{children:e})]})}),pm=g.div`
319
260
  display: flex;
320
261
  flex-direction: column;
321
262
  align-items: center;
322
263
  justify-content: center;
323
264
  padding: 3rem 1rem;
324
- `,Gc=({message:e,color:t="primary",variant:n="rotate"})=>g.jsx(T0,{role:"status","aria-live":"polite",children:g.jsx(ur,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),k0={primary:S`
265
+ `,Ha=({message:e,color:t="primary",variant:n="rotate"})=>p.jsx(pm,{role:"status","aria-live":"polite",children:p.jsx(dn,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),gm={primary:g.css`
325
266
  background-color: var(--color-main-blue-primary);
326
267
  color: var(--color-main-white);
327
268
 
@@ -336,7 +277,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
336
277
  &:focus-visible {
337
278
  outline-color: var(--color-main-blue-primary);
338
279
  }
339
- `,secondary:S`
280
+ `,secondary:g.css`
340
281
  background-color: var(--color-main-orange-primary);
341
282
  color: var(--color-main-white);
342
283
 
@@ -348,7 +289,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
348
289
  &:focus-visible {
349
290
  outline-color: var(--color-main-orange-primary);
350
291
  }
351
- `,cancel:S`
292
+ `,cancel:g.css`
352
293
  background-color: var(--color-main-warning-state);
353
294
  color: var(--color-main-white);
354
295
 
@@ -360,7 +301,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
360
301
  &:focus-visible {
361
302
  outline-color: var(--color-main-warning-state);
362
303
  }
363
- `,outline:S`
304
+ `,outline:g.css`
364
305
  background-color: transparent;
365
306
  color: var(--color-main-blue-primary);
366
307
  border: 2px solid var(--color-main-blue-primary);
@@ -381,24 +322,24 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
381
322
  border-color: var(--color-dark-200);
382
323
  background-color: transparent;
383
324
  }
384
- `},P0=S`
325
+ `},vm=g.css`
385
326
  background-color: var(--color-main-grey);
386
327
  color: var(--color-dark-200);
387
328
  cursor: not-allowed;
388
329
  box-shadow: none;
389
- `,$0={sm:S`
330
+ `,ym={sm:g.css`
390
331
  padding: 0.375rem 0.75rem;
391
332
  min-height: 2.75rem;
392
- ${F[12]}
393
- `,md:S`
333
+ ${E[12]}
334
+ `,md:g.css`
394
335
  padding: 0.625rem 1.25rem;
395
336
  min-height: 3.175rem;
396
- ${F[16]}
397
- `,lg:S`
337
+ ${E[16]}
338
+ `,lg:g.css`
398
339
  padding: 0.75rem 1.5rem;
399
340
  min-height: 3.5rem;
400
- ${F[20]}
401
- `},E0=P.button`
341
+ ${E[20]}
342
+ `},wm=g.button`
402
343
  border: none;
403
344
  border-radius: var(--border-radius-button);
404
345
  transition:
@@ -413,43 +354,43 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
413
354
  outline: 2px solid transparent;
414
355
  outline-offset: 2px;
415
356
 
416
- ${({$variant:e})=>k0[e]}
417
- ${({$size:e})=>$0[e]}
357
+ ${({$variant:e})=>gm[e]}
358
+ ${({$size:e})=>ym[e]}
418
359
 
419
360
  &:disabled {
420
- ${P0}
361
+ ${vm}
421
362
  }
422
- `,Kt=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",...c})=>g.jsxs(E0,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...c,children:[i&&g.jsx(Y,{color:l,size:a,component:i}),r?"Loading...":e,s&&g.jsx(Y,{color:l,size:a,component:s})]}),M0={sm:S`
363
+ `,dt=({children:e,variant:t="primary",size:n="md",isLoading:o,disabled:r,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",...c})=>p.jsxs(wm,{$variant:t,$size:n,disabled:r||o,"aria-busy":o,...c,children:[i&&p.jsx(H,{color:l,size:a,component:i}),o?"Loading...":e,s&&p.jsx(H,{color:l,size:a,component:s})]}),bm={sm:g.css`
423
364
  padding: 0.25rem 0.625rem;
424
365
  border-radius: var(--border-radius-button);
425
- ${F[12]}
426
- `,md:S`
366
+ ${E[12]}
367
+ `,md:g.css`
427
368
  padding: 0.375rem 0.75rem;
428
369
  border-radius: var(--border-radius-button);
429
- ${F[14]}
430
- `,lg:S`
370
+ ${E[14]}
371
+ `,lg:g.css`
431
372
  padding: 0.5rem 1rem;
432
373
  border-radius: var(--border-radius-button);
433
- ${F[16]}
434
- `},A0={primary:S`
374
+ ${E[16]}
375
+ `},xm={primary:g.css`
435
376
  background-color: var(--color-main-blue-primary);
436
377
  color: var(--color-main-white);
437
- `,secondary:S`
378
+ `,secondary:g.css`
438
379
  background-color: var(--color-main-orange-primary);
439
380
  color: var(--color-main-white);
440
- `,success:S`
381
+ `,success:g.css`
441
382
  background-color: var(--color-main-positive-state);
442
383
  color: var(--color-main-white);
443
- `,warning:S`
384
+ `,warning:g.css`
444
385
  background-color: var(--color-main-yellow-primary);
445
386
  color: var(--color-main-black);
446
- `,danger:S`
387
+ `,danger:g.css`
447
388
  background-color: var(--color-main-warning-state);
448
389
  color: var(--color-main-white);
449
- `,neutral:S`
390
+ `,neutral:g.css`
450
391
  background-color: var(--color-light-200);
451
392
  color: var(--color-main-grey);
452
- `,outline:S``},D0=P.span`
393
+ `,outline:g.css``},Sm=g.span`
453
394
  display: inline-flex;
454
395
  align-items: center;
455
396
  gap: 0.375rem;
@@ -457,15 +398,15 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
457
398
  white-space: nowrap;
458
399
  user-select: none;
459
400
 
460
- ${({$size:e})=>M0[e]}
461
- ${({$variant:e})=>A0[e]}
401
+ ${({$size:e})=>bm[e]}
402
+ ${({$variant:e})=>xm[e]}
462
403
 
463
- ${({$variant:e,$outlineColor:t})=>e==="outline"?S`
404
+ ${({$variant:e,$outlineColor:t})=>e==="outline"?g.css`
464
405
  background-color: transparent;
465
406
  color: ${t||"var(--color-main-blue-primary)"};
466
407
  border: 1px solid ${t||"var(--color-main-blue-primary)"};
467
408
  `:""}
468
- `,V0=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:i,iconColor:s="currentColor",iconSize:a="sm",...l})=>g.jsxs(D0,{$variant:t,$size:n,$outlineColor:r,...l,children:[o&&g.jsx(Y,{color:s,size:a,component:o}),e,i&&g.jsx(Y,{color:s,size:a,component:i})]}),F0=P.div`
409
+ `,Cm=({children:e,variant:t="neutral",size:n="md",color:o,leftIcon:r,rightIcon:i,iconColor:s="currentColor",iconSize:a="sm",...l})=>p.jsxs(Sm,{$variant:t,$size:n,$outlineColor:o,...l,children:[r&&p.jsx(H,{color:s,size:a,component:r}),e,i&&p.jsx(H,{color:s,size:a,component:i})]}),Tm=g.div`
469
410
  background-color: ${({$color:e})=>e};
470
411
  ${({$orientation:e,$length:t,$thickness:n})=>e==="horizontal"?`
471
412
  height: ${n||"1px"};
@@ -474,10 +415,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
474
415
  width: ${n||"1px"};
475
416
  height: ${t||"100%"};
476
417
  `}
477
- `,I0=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>g.jsx(F0,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),R0=P.span`
478
- ${({$size:e})=>F[e]}
418
+ `,$m=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:o,className:r=""})=>p.jsx(Tm,{$orientation:e,$color:t,$length:n,$thickness:o,className:r,role:"separator","aria-orientation":e}),Pm=g.span`
419
+ ${({$size:e})=>E[e]}
479
420
  color: ${({$color:e})=>e||"var(--color-main-grey)"};
480
- `,bn=({children:e,size:t=16,color:n,className:r,style:o})=>g.jsx(R0,{$size:t,$color:n,className:r,style:o,children:e});function L0(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 _0=e=>{switch(e){case"success":return B0;case"info":return H0;case"warning":return z0;case"error":return j0;default:return null}},N0=Array(12).fill(0),O0=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},N0.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),B0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),z0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},p.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"})),H0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),j0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),G0=p.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"},p.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),U0=()=>{const[e,t]=p.useState(document.hidden);return p.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let ci=1;class W0{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,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:ci++,s=this.toasts.find(l=>l.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:a,title:r}):l):this.addToast({title:r,...o,dismissible:a,id:i}),i},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 i=r!==void 0,s;const a=o.then(async c=>{if(s=["resolve",c],p.isValidElement(c))i=!1,this.create({id:r,type:"default",message:c});else if(Y0(c)&&!c.ok){i=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,m=typeof u=="object"&&!p.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:h,...m})}else if(c instanceof Error){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,h=typeof n.description=="function"?await n.description(c):n.description,m=typeof u=="object"&&!p.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:h,...m})}else if(n.success!==void 0){i=!1;const u=typeof n.success=="function"?await n.success(c):n.success,h=typeof n.description=="function"?await n.description(c):n.description,m=typeof u=="object"&&!p.isValidElement(u)?u:{message:u};this.create({id:r,type:"success",description:h,...m})}}).catch(async c=>{if(s=["reject",c],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,f=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:u,...f})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,d)=>a.then(()=>s[0]==="reject"?d(s[1]):c(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||ci++;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 xe=new W0,K0=(e,t)=>{const n=t?.id||ci++;return xe.addToast({title:e,...t,id:n}),n},Y0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",q0=K0,X0=()=>xe.toasts,Z0=()=>xe.getActiveToasts(),J0=Object.assign(q0,{success:xe.success,info:xe.info,warning:xe.warning,error:xe.error,custom:xe.custom,message:xe.message,promise:xe.promise,dismiss:xe.dismiss,loading:xe.loading},{getHistory:X0,getToasts:Z0});L0("[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 dr(e){return e.label!==void 0}const Q0=3,ey="24px",ty="16px",Uc=4e3,ny=356,ry=14,oy=45,iy=200;function He(...e){return e.filter(Boolean).join(" ")}function sy(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const ay=e=>{var t,n,r,o,i,s,a,l,c;const{invert:d,toast:u,unstyled:h,interacting:f,setHeights:m,visibleToasts:y,heights:x,index:v,toasts:T,expanded:w,removeToast:M,defaultRichColors:b,closeButton:$,style:k,cancelButtonStyle:E,actionButtonStyle:D,className:A="",descriptionClassName:I="",duration:N,position:j,gap:G,expandByDefault:X,classNames:O,icons:R,closeButtonAriaLabel:W="Close toast"}=e,[q,Z]=p.useState(null),[de,le]=p.useState(null),[H,J]=p.useState(!1),[te,me]=p.useState(!1),[qe,K]=p.useState(!1),[Ce,Xe]=p.useState(!1),[Le,ge]=p.useState(!1),[$n,ct]=p.useState(0),[ut,gd]=p.useState(0),En=p.useRef(u.duration||N||Uc),yd=p.useRef(null),Ze=p.useRef(null),$b=v===0,Eb=v+1<=y,Te=u.type,Xt=u.dismissible!==!1,Mb=u.className||"",Ab=u.descriptionClassName||"",Sr=p.useMemo(()=>x.findIndex(B=>B.toastId===u.id)||0,[x,u.id]),Db=p.useMemo(()=>{var B;return(B=u.closeButton)!=null?B:$},[u.closeButton,$]),vd=p.useMemo(()=>u.duration||N||Uc,[u.duration,N]),Xi=p.useRef(0),Zt=p.useRef(0),wd=p.useRef(0),Jt=p.useRef(null),[Vb,Fb]=j.split("-"),bd=p.useMemo(()=>x.reduce((B,ce,ye)=>ye>=Sr?B:B+ce.height,0),[x,Sr]),xd=U0(),Ib=u.invert||d,Zi=Te==="loading";Zt.current=p.useMemo(()=>Sr*G+bd,[Sr,bd]),p.useEffect(()=>{En.current=vd},[vd]),p.useEffect(()=>{J(!0)},[]),p.useEffect(()=>{const B=Ze.current;if(B){const ce=B.getBoundingClientRect().height;return gd(ce),m(ye=>[{toastId:u.id,height:ce,position:u.position},...ye]),()=>m(ye=>ye.filter(ke=>ke.toastId!==u.id))}},[m,u.id]),p.useLayoutEffect(()=>{if(!H)return;const B=Ze.current,ce=B.style.height;B.style.height="auto";const ye=B.getBoundingClientRect().height;B.style.height=ce,gd(ye),m(ke=>ke.find(fe=>fe.toastId===u.id)?ke.map(fe=>fe.toastId===u.id?{...fe,height:ye}:fe):[{toastId:u.id,height:ye,position:u.position},...ke])},[H,u.title,u.description,m,u.id,u.jsx,u.action,u.cancel]);const dt=p.useCallback(()=>{me(!0),ct(Zt.current),m(B=>B.filter(ce=>ce.toastId!==u.id)),setTimeout(()=>{M(u)},iy)},[u,M,m,Zt]);p.useEffect(()=>{if(u.promise&&Te==="loading"||u.duration===1/0||u.type==="loading")return;let B;return w||f||xd?(()=>{if(wd.current<Xi.current){const ke=new Date().getTime()-Xi.current;En.current=En.current-ke}wd.current=new Date().getTime()})():En.current!==1/0&&(Xi.current=new Date().getTime(),B=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),dt()},En.current)),()=>clearTimeout(B)},[w,f,u,Te,xd,dt]),p.useEffect(()=>{u.delete&&(dt(),u.onDismiss==null||u.onDismiss.call(u,u))},[dt,u.delete]);function Rb(){var B;if(R?.loading){var ce;return p.createElement("div",{className:He(O?.loader,u==null||(ce=u.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":Te==="loading"},R.loading)}return p.createElement(O0,{className:He(O?.loader,u==null||(B=u.classNames)==null?void 0:B.loader),visible:Te==="loading"})}const Lb=u.icon||R?.[Te]||_0(Te);var Sd,Cd;return p.createElement("li",{tabIndex:0,ref:Ze,className:He(A,Mb,O?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,O?.default,O?.[Te],u==null||(n=u.classNames)==null?void 0:n[Te]),"data-sonner-toast":"","data-rich-colors":(Sd=u.richColors)!=null?Sd:b,"data-styled":!(u.jsx||u.unstyled||h),"data-mounted":H,"data-promise":!!u.promise,"data-swiped":Le,"data-removed":te,"data-visible":Eb,"data-y-position":Vb,"data-x-position":Fb,"data-index":v,"data-front":$b,"data-swiping":qe,"data-dismissible":Xt,"data-type":Te,"data-invert":Ib,"data-swipe-out":Ce,"data-swipe-direction":de,"data-expanded":!!(w||X&&H),"data-testid":u.testId,style:{"--index":v,"--toasts-before":v,"--z-index":T.length-v,"--offset":`${te?$n:Zt.current}px`,"--initial-height":X?"auto":`${ut}px`,...k,...u.style},onDragEnd:()=>{K(!1),Z(null),Jt.current=null},onPointerDown:B=>{B.button!==2&&(Zi||!Xt||(yd.current=new Date,ct(Zt.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(K(!0),Jt.current={x:B.clientX,y:B.clientY})))},onPointerUp:()=>{var B,ce,ye;if(Ce||!Xt)return;Jt.current=null;const ke=Number(((B=Ze.current)==null?void 0:B.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cr=Number(((ce=Ze.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),fe=new Date().getTime()-((ye=yd.current)==null?void 0:ye.getTime()),Ae=q==="x"?ke:Cr,Tr=Math.abs(Ae)/fe;if(Math.abs(Ae)>=oy||Tr>.11){ct(Zt.current),u.onDismiss==null||u.onDismiss.call(u,u),le(q==="x"?ke>0?"right":"left":Cr>0?"down":"up"),dt(),Xe(!0);return}else{var _e,Ne;(_e=Ze.current)==null||_e.style.setProperty("--swipe-amount-x","0px"),(Ne=Ze.current)==null||Ne.style.setProperty("--swipe-amount-y","0px")}ge(!1),K(!1),Z(null)},onPointerMove:B=>{var ce,ye,ke;if(!Jt.current||!Xt||((ce=window.getSelection())==null?void 0:ce.toString().length)>0)return;const fe=B.clientY-Jt.current.y,Ae=B.clientX-Jt.current.x;var Tr;const _e=(Tr=e.swipeDirections)!=null?Tr:sy(j);!q&&(Math.abs(Ae)>1||Math.abs(fe)>1)&&Z(Math.abs(Ae)>Math.abs(fe)?"x":"y");let Ne={x:0,y:0};const Td=Pt=>1/(1.5+Math.abs(Pt)/20);if(q==="y"){if(_e.includes("top")||_e.includes("bottom"))if(_e.includes("top")&&fe<0||_e.includes("bottom")&&fe>0)Ne.y=fe;else{const Pt=fe*Td(fe);Ne.y=Math.abs(Pt)<Math.abs(fe)?Pt:fe}}else if(q==="x"&&(_e.includes("left")||_e.includes("right")))if(_e.includes("left")&&Ae<0||_e.includes("right")&&Ae>0)Ne.x=Ae;else{const Pt=Ae*Td(Ae);Ne.x=Math.abs(Pt)<Math.abs(Ae)?Pt:Ae}(Math.abs(Ne.x)>0||Math.abs(Ne.y)>0)&&ge(!0),(ye=Ze.current)==null||ye.style.setProperty("--swipe-amount-x",`${Ne.x}px`),(ke=Ze.current)==null||ke.style.setProperty("--swipe-amount-y",`${Ne.y}px`)}},Db&&!u.jsx&&Te!=="loading"?p.createElement("button",{"aria-label":W,"data-disabled":Zi,"data-close-button":!0,onClick:Zi||!Xt?()=>{}:()=>{dt(),u.onDismiss==null||u.onDismiss.call(u,u)},className:He(O?.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Cd=R?.close)!=null?Cd:G0):null,(Te||u.icon||u.promise)&&u.icon!==null&&(R?.[Te]!==null||u.icon)?p.createElement("div",{"data-icon":"",className:He(O?.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||Rb():null,u.type!=="loading"?Lb:null):null,p.createElement("div",{"data-content":"",className:He(O?.content,u==null||(i=u.classNames)==null?void 0:i.content)},p.createElement("div",{"data-title":"",className:He(O?.title,u==null||(s=u.classNames)==null?void 0:s.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?p.createElement("div",{"data-description":"",className:He(I,Ab,O?.description,u==null||(a=u.classNames)==null?void 0:a.description)},typeof u.description=="function"?u.description():u.description):null),p.isValidElement(u.cancel)?u.cancel:u.cancel&&dr(u.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||E,onClick:B=>{dr(u.cancel)&&Xt&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,B),dt())},className:He(O?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,p.isValidElement(u.action)?u.action:u.action&&dr(u.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||D,onClick:B=>{dr(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,B),!B.defaultPrevented&&dt())},className:He(O?.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Wc(){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 ly(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?ty:ey;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${s}-${c}`]=a:n[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}const cy=p.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:c,offset:d,mobileOffset:u,theme:h="light",richColors:f,duration:m,style:y,visibleToasts:x=Q0,toastOptions:v,dir:T=Wc(),gap:w=ry,icons:M,containerAriaLabel:b="Notifications"}=t,[$,k]=p.useState([]),E=p.useMemo(()=>r?$.filter(H=>H.toasterId===r):$.filter(H=>!H.toasterId),[$,r]),D=p.useMemo(()=>Array.from(new Set([i].concat(E.filter(H=>H.position).map(H=>H.position)))),[E,i]),[A,I]=p.useState([]),[N,j]=p.useState(!1),[G,X]=p.useState(!1),[O,R]=p.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=p.useRef(null),q=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=p.useRef(null),de=p.useRef(!1),le=p.useCallback(H=>{k(J=>{var te;return(te=J.find(me=>me.id===H.id))!=null&&te.delete||xe.dismiss(H.id),J.filter(({id:me})=>me!==H.id)})},[]);return p.useEffect(()=>xe.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{k(J=>J.map(te=>te.id===H.id?{...te,delete:!0}:te))});return}setTimeout(()=>{Ji.flushSync(()=>{k(J=>{const te=J.findIndex(me=>me.id===H.id);return te!==-1?[...J.slice(0,te),{...J[te],...H},...J.slice(te+1)]:[H,...J]})})})}),[$]),p.useEffect(()=>{if(h!=="system"){R(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:J})=>{R(J?"dark":"light")})}catch{H.addListener(({matches:te})=>{try{R(te?"dark":"light")}catch(me){console.error(me)}})}},[h]),p.useEffect(()=>{$.length<=1&&j(!1)},[$]),p.useEffect(()=>{const H=J=>{var te;if(s.every(K=>J[K]||J.code===K)){var qe;j(!0),(qe=W.current)==null||qe.focus()}J.code==="Escape"&&(document.activeElement===W.current||(te=W.current)!=null&&te.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[s]),p.useEffect(()=>{if(W.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,de.current=!1)}},[W.current]),p.createElement("section",{ref:n,"aria-label":`${b} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((H,J)=>{var te;const[me,qe]=H.split("-");return E.length?p.createElement("ol",{key:H,dir:T==="auto"?Wc():T,tabIndex:-1,ref:W,className:c,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":me,"data-x-position":qe,style:{"--front-toast-height":`${((te=A[0])==null?void 0:te.height)||0}px`,"--width":`${ny}px`,"--gap":`${w}px`,...y,...ly(d,u)},onBlur:K=>{de.current&&!K.currentTarget.contains(K.relatedTarget)&&(de.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||de.current||(de.current=!0,Z.current=K.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{G||j(!1)},onDragEnd:()=>j(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},E.filter(K=>!K.position&&J===0||K.position===H).map((K,Ce)=>{var Xe,Le;return p.createElement(ay,{key:K.id,icons:M,index:Ce,toast:K,defaultRichColors:f,duration:(Xe=v?.duration)!=null?Xe:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(Le=v?.closeButton)!=null?Le:l,interacting:G,position:H,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:le,toasts:E.filter(ge=>ge.position==K.position),heights:A.filter(ge=>ge.position==K.position),setHeights:I,expandByDefault:a,gap:w,expanded:N,swipeDirections:t.swipeDirections})})):null}))}),uy=({spinnerColor:e="orange",...t})=>g.jsx(cy,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:g.jsx(ur,{color:e,size:"sm"})},...t}),dy={elevated:S`
421
+ `,_t=({children:e,size:t=16,color:n,className:o,style:r})=>p.jsx(Pm,{$size:t,$color:n,className:o,style:r,children:e});function Mm(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 km=e=>{switch(e){case"success":return Dm;case"info":return Am;case"warning":return Fm;case"error":return Im;default:return null}},Vm=Array(12).fill(0),Em=({visible:e,className:t})=>m.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},m.createElement("div",{className:"sonner-spinner"},Vm.map((n,o)=>m.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),Dm=m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},m.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"})),Fm=m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},m.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"})),Am=m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},m.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"})),Im=m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},m.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"})),Lm=m.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"},m.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),m.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Rm=()=>{const[e,t]=m.useState(document.hidden);return m.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Wo=1;class _m{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:o,...r}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Wo++,s=this.toasts.find(l=>l.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:o}),{...l,...t,id:i,dismissible:a,title:o}):l):this.addToast({title:o,...r,dismissible:a,id:i}),i},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(o=>o({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 o;n.loading!==void 0&&(o=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const r=Promise.resolve(t instanceof Function?t():t);let i=o!==void 0,s;const a=r.then(async c=>{if(s=["resolve",c],m.isValidElement(c))i=!1,this.create({id:o,type:"default",message:c});else if(Nm(c)&&!c.ok){i=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,v=typeof u=="object"&&!m.isValidElement(u)?u:{message:u};this.create({id:o,type:"error",description:h,...v})}else if(c instanceof Error){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,h=typeof n.description=="function"?await n.description(c):n.description,v=typeof u=="object"&&!m.isValidElement(u)?u:{message:u};this.create({id:o,type:"error",description:h,...v})}else if(n.success!==void 0){i=!1;const u=typeof n.success=="function"?await n.success(c):n.success,h=typeof n.description=="function"?await n.description(c):n.description,v=typeof u=="object"&&!m.isValidElement(u)?u:{message:u};this.create({id:o,type:"success",description:h,...v})}}).catch(async c=>{if(s=["reject",c],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,f=typeof d=="object"&&!m.isValidElement(d)?d:{message:d};this.create({id:o,type:"error",description:u,...f})}}).finally(()=>{i&&(this.dismiss(o),o=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,d)=>a.then(()=>s[0]==="reject"?d(s[1]):c(s[1])).catch(d));return typeof o!="string"&&typeof o!="number"?{unwrap:l}:Object.assign(o,{unwrap:l})},this.custom=(t,n)=>{const o=n?.id||Wo++;return this.create({jsx:t(o),id:o,...n}),o},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ue=new _m,Bm=(e,t)=>{const n=t?.id||Wo++;return ue.addToast({title:e,...t,id:n}),n},Nm=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",zm=Bm,Om=()=>ue.toasts,Hm=()=>ue.getActiveToasts(),jm=Object.assign(zm,{success:ue.success,info:ue.info,warning:ue.warning,error:ue.error,custom:ue.custom,message:ue.message,promise:ue.promise,dismiss:ue.dismiss,loading:ue.loading},{getHistory:Om,getToasts:Hm});Mm("[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 fn(e){return e.label!==void 0}const Gm=3,Um="24px",Km="16px",ja=4e3,Wm=356,qm=14,Ym=45,Xm=200;function ke(...e){return e.filter(Boolean).join(" ")}function Zm(e){const[t,n]=e.split("-"),o=[];return t&&o.push(t),n&&o.push(n),o}const Jm=e=>{var t,n,o,r,i,s,a,l,c;const{invert:d,toast:u,unstyled:h,interacting:f,setHeights:v,visibleToasts:y,heights:b,index:w,toasts:T,expanded:C,removeToast:M,defaultRichColors:x,closeButton:P,style:V,cancelButtonStyle:$,actionButtonStyle:F,className:D="",descriptionClassName:_="",duration:N,position:O,gap:j,expandByDefault:K,classNames:R,icons:L,closeButtonAriaLabel:G="Close toast"}=e,[oe,Q]=m.useState(null),[Se,mt]=m.useState(null),[z,Z]=m.useState(!1),[X,ve]=m.useState(!1),[pt,W]=m.useState(!1),[gt,Cn]=m.useState(!1),[Tn,vt]=m.useState(!1),[yy,Ir]=m.useState(0),[wy,mc]=m.useState(0),Gt=m.useRef(u.duration||N||ja),pc=m.useRef(null),Ie=m.useRef(null),by=w===0,xy=w+1<=y,fe=u.type,yt=u.dismissible!==!1,Sy=u.className||"",Cy=u.descriptionClassName||"",$n=m.useMemo(()=>b.findIndex(B=>B.toastId===u.id)||0,[b,u.id]),Ty=m.useMemo(()=>{var B;return(B=u.closeButton)!=null?B:P},[u.closeButton,P]),gc=m.useMemo(()=>u.duration||N||ja,[u.duration,N]),Lr=m.useRef(0),wt=m.useRef(0),vc=m.useRef(0),bt=m.useRef(null),[$y,Py]=O.split("-"),yc=m.useMemo(()=>b.reduce((B,te,ae)=>ae>=$n?B:B+te.height,0),[b,$n]),wc=Rm(),My=u.invert||d,Rr=fe==="loading";wt.current=m.useMemo(()=>$n*j+yc,[$n,yc]),m.useEffect(()=>{Gt.current=gc},[gc]),m.useEffect(()=>{Z(!0)},[]),m.useEffect(()=>{const B=Ie.current;if(B){const te=B.getBoundingClientRect().height;return mc(te),v(ae=>[{toastId:u.id,height:te,position:u.position},...ae]),()=>v(ae=>ae.filter(he=>he.toastId!==u.id))}},[v,u.id]),m.useLayoutEffect(()=>{if(!z)return;const B=Ie.current,te=B.style.height;B.style.height="auto";const ae=B.getBoundingClientRect().height;B.style.height=te,mc(ae),v(he=>he.find(re=>re.toastId===u.id)?he.map(re=>re.toastId===u.id?{...re,height:ae}:re):[{toastId:u.id,height:ae,position:u.position},...he])},[z,u.title,u.description,v,u.id,u.jsx,u.action,u.cancel]);const Ge=m.useCallback(()=>{ve(!0),Ir(wt.current),v(B=>B.filter(te=>te.toastId!==u.id)),setTimeout(()=>{M(u)},Xm)},[u,M,v,wt]);m.useEffect(()=>{if(u.promise&&fe==="loading"||u.duration===1/0||u.type==="loading")return;let B;return C||f||wc?(()=>{if(vc.current<Lr.current){const he=new Date().getTime()-Lr.current;Gt.current=Gt.current-he}vc.current=new Date().getTime()})():Gt.current!==1/0&&(Lr.current=new Date().getTime(),B=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),Ge()},Gt.current)),()=>clearTimeout(B)},[C,f,u,fe,wc,Ge]),m.useEffect(()=>{u.delete&&(Ge(),u.onDismiss==null||u.onDismiss.call(u,u))},[Ge,u.delete]);function ky(){var B;if(L?.loading){var te;return m.createElement("div",{className:ke(R?.loader,u==null||(te=u.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":fe==="loading"},L.loading)}return m.createElement(Em,{className:ke(R?.loader,u==null||(B=u.classNames)==null?void 0:B.loader),visible:fe==="loading"})}const Vy=u.icon||L?.[fe]||km(fe);var bc,xc;return m.createElement("li",{tabIndex:0,ref:Ie,className:ke(D,Sy,R?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,R?.default,R?.[fe],u==null||(n=u.classNames)==null?void 0:n[fe]),"data-sonner-toast":"","data-rich-colors":(bc=u.richColors)!=null?bc:x,"data-styled":!(u.jsx||u.unstyled||h),"data-mounted":z,"data-promise":!!u.promise,"data-swiped":Tn,"data-removed":X,"data-visible":xy,"data-y-position":$y,"data-x-position":Py,"data-index":w,"data-front":by,"data-swiping":pt,"data-dismissible":yt,"data-type":fe,"data-invert":My,"data-swipe-out":gt,"data-swipe-direction":Se,"data-expanded":!!(C||K&&z),"data-testid":u.testId,style:{"--index":w,"--toasts-before":w,"--z-index":T.length-w,"--offset":`${X?yy:wt.current}px`,"--initial-height":K?"auto":`${wy}px`,...V,...u.style},onDragEnd:()=>{W(!1),Q(null),bt.current=null},onPointerDown:B=>{B.button!==2&&(Rr||!yt||(pc.current=new Date,Ir(wt.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(W(!0),bt.current={x:B.clientX,y:B.clientY})))},onPointerUp:()=>{var B,te,ae;if(gt||!yt)return;bt.current=null;const he=Number(((B=Ie.current)==null?void 0:B.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Pn=Number(((te=Ie.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),re=new Date().getTime()-((ae=pc.current)==null?void 0:ae.getTime()),ye=oe==="x"?he:Pn,Mn=Math.abs(ye)/re;if(Math.abs(ye)>=Ym||Mn>.11){Ir(wt.current),u.onDismiss==null||u.onDismiss.call(u,u),mt(oe==="x"?he>0?"right":"left":Pn>0?"down":"up"),Ge(),Cn(!0);return}else{var Ce,Te;(Ce=Ie.current)==null||Ce.style.setProperty("--swipe-amount-x","0px"),(Te=Ie.current)==null||Te.style.setProperty("--swipe-amount-y","0px")}vt(!1),W(!1),Q(null)},onPointerMove:B=>{var te,ae,he;if(!bt.current||!yt||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;const re=B.clientY-bt.current.y,ye=B.clientX-bt.current.x;var Mn;const Ce=(Mn=e.swipeDirections)!=null?Mn:Zm(O);!oe&&(Math.abs(ye)>1||Math.abs(re)>1)&&Q(Math.abs(ye)>Math.abs(re)?"x":"y");let Te={x:0,y:0};const Sc=Qe=>1/(1.5+Math.abs(Qe)/20);if(oe==="y"){if(Ce.includes("top")||Ce.includes("bottom"))if(Ce.includes("top")&&re<0||Ce.includes("bottom")&&re>0)Te.y=re;else{const Qe=re*Sc(re);Te.y=Math.abs(Qe)<Math.abs(re)?Qe:re}}else if(oe==="x"&&(Ce.includes("left")||Ce.includes("right")))if(Ce.includes("left")&&ye<0||Ce.includes("right")&&ye>0)Te.x=ye;else{const Qe=ye*Sc(ye);Te.x=Math.abs(Qe)<Math.abs(ye)?Qe:ye}(Math.abs(Te.x)>0||Math.abs(Te.y)>0)&&vt(!0),(ae=Ie.current)==null||ae.style.setProperty("--swipe-amount-x",`${Te.x}px`),(he=Ie.current)==null||he.style.setProperty("--swipe-amount-y",`${Te.y}px`)}},Ty&&!u.jsx&&fe!=="loading"?m.createElement("button",{"aria-label":G,"data-disabled":Rr,"data-close-button":!0,onClick:Rr||!yt?()=>{}:()=>{Ge(),u.onDismiss==null||u.onDismiss.call(u,u)},className:ke(R?.closeButton,u==null||(o=u.classNames)==null?void 0:o.closeButton)},(xc=L?.close)!=null?xc:Lm):null,(fe||u.icon||u.promise)&&u.icon!==null&&(L?.[fe]!==null||u.icon)?m.createElement("div",{"data-icon":"",className:ke(R?.icon,u==null||(r=u.classNames)==null?void 0:r.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||ky():null,u.type!=="loading"?Vy:null):null,m.createElement("div",{"data-content":"",className:ke(R?.content,u==null||(i=u.classNames)==null?void 0:i.content)},m.createElement("div",{"data-title":"",className:ke(R?.title,u==null||(s=u.classNames)==null?void 0:s.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?m.createElement("div",{"data-description":"",className:ke(_,Cy,R?.description,u==null||(a=u.classNames)==null?void 0:a.description)},typeof u.description=="function"?u.description():u.description):null),m.isValidElement(u.cancel)?u.cancel:u.cancel&&fn(u.cancel)?m.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||$,onClick:B=>{fn(u.cancel)&&yt&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,B),Ge())},className:ke(R?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,m.isValidElement(u.action)?u.action:u.action&&fn(u.action)?m.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||F,onClick:B=>{fn(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,B),!B.defaultPrevented&&Ge())},className:ke(R?.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Ga(){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 Qm(e,t){const n={};return[e,t].forEach((o,r)=>{const i=r===1,s=i?"--mobile-offset":"--offset",a=i?Km:Um;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof o=="number"||typeof o=="string"?l(o):typeof o=="object"?["top","right","bottom","left"].forEach(c=>{o[c]===void 0?n[`${s}-${c}`]=a:n[`${s}-${c}`]=typeof o[c]=="number"?`${o[c]}px`:o[c]}):l(a)}),n}const ep=m.forwardRef(function(t,n){const{id:o,invert:r,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:c,offset:d,mobileOffset:u,theme:h="light",richColors:f,duration:v,style:y,visibleToasts:b=Gm,toastOptions:w,dir:T=Ga(),gap:C=qm,icons:M,containerAriaLabel:x="Notifications"}=t,[P,V]=m.useState([]),$=m.useMemo(()=>o?P.filter(z=>z.toasterId===o):P.filter(z=>!z.toasterId),[P,o]),F=m.useMemo(()=>Array.from(new Set([i].concat($.filter(z=>z.position).map(z=>z.position)))),[$,i]),[D,_]=m.useState([]),[N,O]=m.useState(!1),[j,K]=m.useState(!1),[R,L]=m.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=m.useRef(null),oe=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=m.useRef(null),Se=m.useRef(!1),mt=m.useCallback(z=>{V(Z=>{var X;return(X=Z.find(ve=>ve.id===z.id))!=null&&X.delete||ue.dismiss(z.id),Z.filter(({id:ve})=>ve!==z.id)})},[]);return m.useEffect(()=>ue.subscribe(z=>{if(z.dismiss){requestAnimationFrame(()=>{V(Z=>Z.map(X=>X.id===z.id?{...X,delete:!0}:X))});return}setTimeout(()=>{_r.flushSync(()=>{V(Z=>{const X=Z.findIndex(ve=>ve.id===z.id);return X!==-1?[...Z.slice(0,X),{...Z[X],...z},...Z.slice(X+1)]:[z,...Z]})})})}),[P]),m.useEffect(()=>{if(h!=="system"){L(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;const z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Z})=>{L(Z?"dark":"light")})}catch{z.addListener(({matches:X})=>{try{L(X?"dark":"light")}catch(ve){console.error(ve)}})}},[h]),m.useEffect(()=>{P.length<=1&&O(!1)},[P]),m.useEffect(()=>{const z=Z=>{var X;if(s.every(W=>Z[W]||Z.code===W)){var pt;O(!0),(pt=G.current)==null||pt.focus()}Z.code==="Escape"&&(document.activeElement===G.current||(X=G.current)!=null&&X.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[s]),m.useEffect(()=>{if(G.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,Se.current=!1)}},[G.current]),m.createElement("section",{ref:n,"aria-label":`${x} ${oe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},F.map((z,Z)=>{var X;const[ve,pt]=z.split("-");return $.length?m.createElement("ol",{key:z,dir:T==="auto"?Ga():T,tabIndex:-1,ref:G,className:c,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":ve,"data-x-position":pt,style:{"--front-toast-height":`${((X=D[0])==null?void 0:X.height)||0}px`,"--width":`${Wm}px`,"--gap":`${C}px`,...y,...Qm(d,u)},onBlur:W=>{Se.current&&!W.currentTarget.contains(W.relatedTarget)&&(Se.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||Se.current||(Se.current=!0,Q.current=W.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{j||O(!1)},onDragEnd:()=>O(!1),onPointerDown:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},$.filter(W=>!W.position&&Z===0||W.position===z).map((W,gt)=>{var Cn,Tn;return m.createElement(Jm,{key:W.id,icons:M,index:gt,toast:W,defaultRichColors:f,duration:(Cn=w?.duration)!=null?Cn:v,className:w?.className,descriptionClassName:w?.descriptionClassName,invert:r,visibleToasts:b,closeButton:(Tn=w?.closeButton)!=null?Tn:l,interacting:j,position:z,style:w?.style,unstyled:w?.unstyled,classNames:w?.classNames,cancelButtonStyle:w?.cancelButtonStyle,actionButtonStyle:w?.actionButtonStyle,closeButtonAriaLabel:w?.closeButtonAriaLabel,removeToast:mt,toasts:$.filter(vt=>vt.position==W.position),heights:D.filter(vt=>vt.position==W.position),setHeights:_,expandByDefault:a,gap:C,expanded:N,swipeDirections:t.swipeDirections})})):null}))}),tp=({spinnerColor:e="orange",...t})=>p.jsx(ep,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:p.jsx(dn,{color:e,size:"sm"})},...t}),np={elevated:g.css`
481
422
  background-color: var(--color-main-white);
482
423
  box-shadow: var(--shadow-black-card);
483
424
  border: none;
@@ -485,7 +426,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
485
426
  &:hover {
486
427
  box-shadow: var(--shadow-hover-black-card);
487
428
  }
488
- `,flat:S`
429
+ `,flat:g.css`
489
430
  background-color: var(--color-main-white);
490
431
  box-shadow: none;
491
432
  border: none;
@@ -493,7 +434,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
493
434
  &:hover {
494
435
  background-color: var(--color-main-alternative-secondary);
495
436
  }
496
- `,info:S`
437
+ `,info:g.css`
497
438
  background-color: var(--color-main-white);
498
439
  box-shadow: none;
499
440
 
@@ -504,16 +445,16 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
504
445
  &:active {
505
446
  border: none;
506
447
  }
507
- `},fy={sm:S`
448
+ `},op={sm:g.css`
508
449
  padding: 0.75rem;
509
450
  gap: 0.5rem;
510
- `,md:S`
451
+ `,md:g.css`
511
452
  padding: 1rem;
512
453
  gap: 0.5rem;
513
- `,lg:S`
454
+ `,lg:g.css`
514
455
  padding: 1.25rem;
515
456
  gap: 0.5rem;
516
- `},hy=S`
457
+ `},rp=g.css`
517
458
  transition:
518
459
  box-shadow 0.3s ease-out,
519
460
  background-color 0.3s ease-out,
@@ -533,7 +474,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
533
474
  &:focus-visible {
534
475
  outline-color: var(--color-main-blue-primary);
535
476
  }
536
- `,py=S`
477
+ `,ip=g.css`
537
478
  opacity: 0.6;
538
479
  cursor: not-allowed;
539
480
  pointer-events: none;
@@ -542,7 +483,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
542
483
  transform: none;
543
484
  box-shadow: inherit;
544
485
  }
545
- `,my=P.div`
486
+ `,sp=g.div`
546
487
  display: flex;
547
488
  flex-direction: column;
548
489
  border-radius: var(--border-radius-card);
@@ -550,62 +491,62 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
550
491
  height: 100%;
551
492
  outline: 2px solid transparent;
552
493
  outline-offset: -1px;
553
- ${({$variant:e})=>dy[e]}
554
- ${({$clickable:e})=>e&&hy}
555
- ${({$disabled:e})=>e&&py}
556
- ${({$size:e})=>fy[e]}
557
- `,gy=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...i})=>{const s=a=>{n||r&&r(a)};return g.jsx(my,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:s,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),s(a))}:void 0,...i,children:o})},yy=P.div`
494
+ ${({$variant:e})=>np[e]}
495
+ ${({$clickable:e})=>e&&rp}
496
+ ${({$disabled:e})=>e&&ip}
497
+ ${({$size:e})=>op[e]}
498
+ `,ap=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:o=void 0,children:r,...i})=>{const s=a=>{n||o&&o(a)};return p.jsx(sp,{$variant:e,$size:t,$disabled:n,$clickable:!!o,onClick:s,role:o?"button":void 0,tabIndex:o&&!n?0:void 0,onKeyDown:o&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),s(a))}:void 0,...i,children:r})},lp=g.div`
558
499
  display: flex;
559
500
  align-items: center;
560
501
  align-self: stretch;
561
502
  gap: 0.5rem;
562
503
 
563
- ${({$showDivider:e})=>e&&S`
504
+ ${({$showDivider:e})=>e&&g.css`
564
505
  border-bottom: 1px solid var(--color-divider);
565
506
  padding-bottom: 0.5rem;
566
507
  `}
567
- `,vy=({children:e,showDivider:t=!1,...n})=>g.jsx(yy,{$showDivider:t,...n,children:e}),wy=P.div`
508
+ `,cp=({children:e,showDivider:t=!1,...n})=>p.jsx(lp,{$showDivider:t,...n,children:e}),up=g.div`
568
509
  flex: 1;
569
510
  display: flex;
570
511
  flex-direction: column;
571
- `,by=({children:e,showDivider:t=!1,...n})=>g.jsx(wy,{$showDivider:t,...n,children:e}),xy=P.div`
512
+ `,dp=({children:e,showDivider:t=!1,...n})=>p.jsx(up,{$showDivider:t,...n,children:e}),fp=g.div`
572
513
  display: flex;
573
514
  align-items: center;
574
515
  align-self: stretch;
575
516
  gap: 0.5rem;
576
- `,Sy=({children:e,...t})=>g.jsx(xy,{...t,children:e}),Cy={xs:S`
577
- ${F[12]}
578
- `,sm:S`
579
- ${F[12]}
580
- `,md:S`
581
- ${F[16]}
582
- `,lg:S`
583
- ${F[18]}
584
- `},Ty=P.div`
517
+ `,hp=({children:e,...t})=>p.jsx(fp,{...t,children:e}),mp={xs:g.css`
518
+ ${E[12]}
519
+ `,sm:g.css`
520
+ ${E[12]}
521
+ `,md:g.css`
522
+ ${E[16]}
523
+ `,lg:g.css`
524
+ ${E[18]}
525
+ `},pp=g.div`
585
526
  color: var(--color-main-warning-state);
586
- ${({$size:e})=>Cy[e]}
527
+ ${({$size:e})=>mp[e]}
587
528
  font-weight: 400;
588
529
  margin-top: 0.25rem;
589
530
  display: flex;
590
531
  align-items: flex-start;
591
532
  gap: 0.25rem;
592
- `,ui=({children:e,className:t,size:n="md",...r})=>g.jsx(Ty,{className:t,$size:n,...r,children:e}),ky={xs:S`
593
- ${F[14]}
594
- `,sm:S`
595
- ${F[16]}
596
- `,md:S`
597
- ${F[24]}
598
- `,lg:S`
599
- ${F[30]}
600
- `},Py=P.label`
533
+ `,qo=({children:e,className:t,size:n="md",...o})=>p.jsx(pp,{className:t,$size:n,...o,children:e}),gp={xs:g.css`
534
+ ${E[14]}
535
+ `,sm:g.css`
536
+ ${E[16]}
537
+ `,md:g.css`
538
+ ${E[24]}
539
+ `,lg:g.css`
540
+ ${E[30]}
541
+ `},vp=g.label`
601
542
  color: var(--color-main-blue-primary);
602
- ${({$size:e})=>ky[e]}
603
- ${({$disabled:e})=>e&&$y}
543
+ ${({$size:e})=>gp[e]}
544
+ ${({$disabled:e})=>e&&yp}
604
545
  cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
605
- `,$y=S`
546
+ `,yp=g.css`
606
547
  cursor: not-allowed;
607
548
  opacity: 0.6;
608
- `,fr=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>g.jsxs(Py,{className:n,htmlFor:t,$htmlFor:t,$size:i,$disabled:o,...s,children:[e,r&&g.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),Kc=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Yc=e=>Kc.includes(e),it=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Yc(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})),Ey=e=>e.map(t=>({value:t.value,label:t.label})),My={text:(e,t,n)=>it([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>it([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>it([{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)=>it([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>it([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>it([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>it([{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]},Ay=(e,t,n,r,o,i,s,a)=>{const{field:l,...c}=t,d={...l,...c,size:c.size,hasError:c.hasError,disabled:c.disabled,placeholder:c.placeholder,className:c.className};switch(e){case"textarea":return{component:"textarea",props:{...d,rows:s?.rows||4}};case"select":return{component:"select",props:{...d,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...d,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...d,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...d,length:i?.pinLength||6,type:i?.pinType||"number",onComplete:i?.onPinComplete}};case"password":return{component:"password",props:{...d,type:"password"}};case"search":return{component:"search",props:{...d,onSearch:a?.onSearch}};default:return{component:"base",props:{...d,type:t.type||e||"text"}}}},Tt=S`
549
+ `,hn=({children:e,htmlFor:t,className:n,required:o,disabled:r=!1,size:i="md",...s})=>p.jsxs(vp,{className:n,htmlFor:t,$htmlFor:t,$size:i,$disabled:r,...s,children:[e,o&&p.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),Ua=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Ka=e=>Ua.includes(e),ze=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Ka(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})),wp=e=>e.map(t=>({value:t.value,label:t.label})),bp={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:o=>{if(o&&o.length<8)return"Password must be at least 8 characters long"}},...n}])[0],select:(e,t,n,o)=>ze([{name:e,label:t,type:"select",options:n,required:!0,...o}])[0],checkbox:(e,t,n)=>ze([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,o)=>ze([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...o}])[0],pin:(e,t,n=6,o)=>ze([{name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:r=>{if(r&&r.length!==n)return`${t} must be ${n} digits long`}},...o}])[0]},xp=(e,t,n,o,r,i,s,a)=>{const{field:l,...c}=t,d={...l,...c,size:c.size,hasError:c.hasError,disabled:c.disabled,placeholder:c.placeholder,className:c.className};switch(e){case"textarea":return{component:"textarea",props:{...d,rows:s?.rows||4}};case"select":return{component:"select",props:{...d,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...d,label:o?.checkboxLabel||o?.label,checked:t.field.value||o?.checked||!1}};case"radio":return{component:"radio",props:{...d,options:r?.options||[],radioName:r?.radioName||t.name,onRadioChange:r?.onRadioChange}};case"pin":return{component:"pin",props:{...d,length:i?.pinLength||6,type:i?.pinType||"number",onComplete:i?.onPinComplete}};case"password":return{component:"password",props:{...d,type:"password"}};case"search":return{component:"search",props:{...d,onSearch:a?.onSearch}};default:return{component:"base",props:{...d,type:t.type||e||"text"}}}},Ze=g.css`
609
550
  display: flex;
610
551
  justify-content: space-between;
611
552
  align-items: center;
@@ -635,7 +576,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
635
576
  &:disabled {
636
577
  cursor: not-allowed;
637
578
  }
638
- `,hr=S`
579
+ `,mn=g.css`
639
580
  width: 100%;
640
581
  border: none;
641
582
  outline: none;
@@ -652,18 +593,18 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
652
593
  &::placeholder {
653
594
  color: var(--color-dark-200);
654
595
  }
655
- `,kt=S`
596
+ `,Je=g.css`
656
597
  border: var(--border-input-error) !important;
657
598
 
658
599
  &:focus-within {
659
600
  border: 1px solid var(--color-main-warning-state) !important;
660
601
  outline: none;
661
602
  }
662
- `,st=S`
603
+ `,Oe=g.css`
663
604
  border: var(--border-input-disabled) !important;
664
605
  cursor: not-allowed;
665
606
  opacity: 0.6;
666
- `,qc=S`
607
+ `,Wa=g.css`
667
608
  border: none;
668
609
  border-top: 0;
669
610
  border-right: 0;
@@ -689,63 +630,63 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
689
630
  border-bottom: var(--border-input-focus);
690
631
  outline: none;
691
632
  }
692
- `,xn={xs:S`
633
+ `,Bt={xs:g.css`
693
634
  padding: 0.375rem 0.75rem;
694
635
  height: 2rem;
695
- ${F[16]}
696
- `,sm:S`
636
+ ${E[16]}
637
+ `,sm:g.css`
697
638
  padding: 0.5rem 1rem;
698
639
  height: 2.5rem;
699
- ${F[18]}
700
- `,md:S`
640
+ ${E[18]}
641
+ `,md:g.css`
701
642
  padding: 0.5rem 1rem;
702
643
  height: 2.75rem;
703
- ${F[20]}
704
- `,lg:S`
644
+ ${E[20]}
645
+ `,lg:g.css`
705
646
  padding: 0.5rem 1rem;
706
647
  height: 3rem;
707
- ${F[20]}
708
- `},pr=S`
648
+ ${E[20]}
649
+ `},pn=g.css`
709
650
  display: flex;
710
651
  align-items: center;
711
652
  justify-content: center;
712
653
  flex-shrink: 0;
713
654
  user-select: none;
714
- `,Dy=P.div`
715
- ${Tt}
716
- ${({$size:e})=>xn[e]}
717
- ${({$hasError:e})=>e&&kt}
718
- ${({$disabled:e})=>e&&st}
719
- ${({$isFlushed:e})=>e&&qc}
720
- `,Vy=P.input`
721
- ${hr}
722
- `,di=p.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:r="text",flushed:o=!1,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",className:c,...d},u)=>g.jsxs(Dy,{$size:e,$hasError:t,className:c,$isFlushed:o,children:[i&&g.jsx(Y,{component:i,size:a,color:n?"var(--color-dark-200)":l}),g.jsx(Vy,{ref:u,type:r,$hasError:t,disabled:n,...d}),s&&g.jsx(Y,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));di.displayName="BaseInput";const Fy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Xc=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Iy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Ry=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M11.9498 7.94975L10.5356 9.36396L8.00079 6.828L8.00004 20H6.00004L6.00079 6.828L3.46451 9.36396L2.05029 7.94975L7.00004 3L11.9498 7.94975ZM21.9498 16.0503L17 21L12.0503 16.0503L13.4645 14.636L16.0008 17.172L16 4H18L18.0008 17.172L20.5356 14.636L21.9498 16.0503Z"})),Zc=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Ly=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),_y=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Ny=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Oy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M21 4V6H20L14 15V22H10V15L4 6H3V4H21Z"})),By=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M21 4V6H20L15 13.5V22H9V13.5L4 6H3V4H21ZM6.4037 6L11 12.8944V20H13V12.8944L17.5963 6H6.4037Z"})),zy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Jc=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),Hy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),jy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Qc=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Gy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Uy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Wy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M22.0003 13.0001L22.0004 11.0002L5.82845 11.0002L9.77817 7.05044L8.36396 5.63623L2 12.0002L8.36396 18.3642L9.77817 16.9499L5.8284 13.0002L22.0003 13.0001Z"})),Ky=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M1.99974 13.0001L1.9996 11.0002L18.1715 11.0002L14.2218 7.05044L15.636 5.63623L22 12.0002L15.636 18.3642L14.2218 16.9499L18.1716 13.0002L1.99974 13.0001Z"})),Yy=P.div`
723
- ${Tt}
724
- ${({$size:e})=>xn[e??"md"]}
725
- ${({$hasError:e})=>e&&kt}
726
- ${({$disabled:e})=>e&&st}
655
+ `,Sp=g.div`
656
+ ${Ze}
657
+ ${({$size:e})=>Bt[e]}
658
+ ${({$hasError:e})=>e&&Je}
659
+ ${({$disabled:e})=>e&&Oe}
660
+ ${({$isFlushed:e})=>e&&Wa}
661
+ `,Cp=g.input`
662
+ ${mn}
663
+ `,Yo=m.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:o="text",flushed:r=!1,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",className:c,...d},u)=>p.jsxs(Sp,{$size:e,$hasError:t,className:c,$isFlushed:r,children:[i&&p.jsx(H,{component:i,size:a,color:n?"var(--color-dark-200)":l}),p.jsx(Cp,{ref:u,type:o,$hasError:t,disabled:n,...d}),s&&p.jsx(H,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));Yo.displayName="BaseInput";const Tp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),qa=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),$p=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),Pp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.createElement("path",{d:"M11.9498 7.94975L10.5356 9.36396L8.00079 6.828L8.00004 20H6.00004L6.00079 6.828L3.46451 9.36396L2.05029 7.94975L7.00004 3L11.9498 7.94975ZM21.9498 16.0503L17 21L12.0503 16.0503L13.4645 14.636L16.0008 17.172L16 4H18L18.0008 17.172L20.5356 14.636L21.9498 16.0503Z"})),Ya=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),Mp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),kp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),Vp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),Ep=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.createElement("path",{d:"M21 4V6H20L14 15V22H10V15L4 6H3V4H21Z"})),Dp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.createElement("path",{d:"M21 4V6H20L15 13.5V22H9V13.5L4 6H3V4H21ZM6.4037 6L11 12.8944V20H13V12.8944L17.5963 6H6.4037Z"})),Fp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),Xa=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),Ap=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),Ip=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),Za=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),Lp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),Rp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.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"})),_p=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.createElement("path",{d:"M22.0003 13.0001L22.0004 11.0002L5.82845 11.0002L9.77817 7.05044L8.36396 5.63623L2 12.0002L8.36396 18.3642L9.77817 16.9499L5.8284 13.0002L22.0003 13.0001Z"})),Bp=({color:e="currentColor",size:t=24,className:n,...o})=>m.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...o,className:"remixicon "+(n||"")},m.createElement("path",{d:"M1.99974 13.0001L1.9996 11.0002L18.1715 11.0002L14.2218 7.05044L15.636 5.63623L22 12.0002L15.636 18.3642L14.2218 16.9499L18.1716 13.0002L1.99974 13.0001Z"})),Np=g.div`
664
+ ${Ze}
665
+ ${({$size:e})=>Bt[e??"md"]}
666
+ ${({$hasError:e})=>e&&Je}
667
+ ${({$disabled:e})=>e&&Oe}
727
668
  position: relative;
728
- `,qy=P.input`
729
- ${hr}
730
- `,Xy=P.span`
731
- ${pr}
669
+ `,zp=g.input`
670
+ ${mn}
671
+ `,Op=g.span`
672
+ ${pn}
732
673
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
733
- `,eu=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:i=!1,disabled:s=!1,className:a,...l})=>{const[c,d]=p.useState(!1),u=()=>d(h=>!h);return g.jsxs(Yy,{$size:e,$hasError:i,$disabled:s,className:a,children:[t&&g.jsx(Y,{component:t,size:n,color:s?"var(--color-dark-200)":r}),g.jsx(qy,{type:c?"text":"password",placeholder:o,disabled:s,...l}),g.jsx(Xy,{$disabled:s,onClick:s?void 0:u,children:g.jsx(Y,{component:c?Ny:_y,size:n,color:s?"var(--color-dark-200)":r})})]})},tu=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Zy=e=>{for(let t=e.length-1;t>=0;t--)if(!e[t].disabled)return t;return e.length-1},Jy=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},Qy=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),ev=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},tv=(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 tu(t)},nv=({options:e,value:t,name:n,disabled:r=!1,onChange:o,onOptionSelect:i})=>{const s=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(null),d=p.useRef(!1),u=p.useId(),[h,f]=p.useState(!1),[m,y]=p.useState(-1),x=e.find(b=>b.value===t);p.useEffect(()=>{h&&a.current&&(a.current.focus(),y(tv(t,e)))},[h,e,t]),p.useEffect(()=>{ev(l,m)},[m]),p.useEffect(()=>{if(!h)return;const b=$=>{s.current&&(s.current.contains($.target)||f(!1))};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[h]),p.useEffect(()=>{h?d.current=!0:d.current&&requestAnimationFrame(()=>{c.current?.focus()})},[h]);const v=b=>{b.disabled||(i?.(b),o&&o(Qy(b.value,n)),f(!1),y(-1))};return{open:h,activeIndex:m,selected:x,containerRef:s,menuRef:a,menuContentRef:l,buttonRef:c,id:u,setOpen:f,setActiveIndex:y,commitSelection:v,handleKeyDownButton:b=>{r||(b.key==="ArrowDown"||b.key==="ArrowUp"?(b.preventDefault(),f(!0)):(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),f($=>!$)))},handleKeyDownMenu:b=>{if(b.key==="Escape"){b.preventDefault(),f(!1),y(-1);return}if(b.key==="ArrowDown"||b.key==="ArrowUp"){b.preventDefault();const $=b.key==="ArrowDown"?1:-1;y(Jy(m,$,e))}else if(b.key==="Enter"){b.preventDefault();const $=e[m];$&&!$.disabled&&v($)}else b.key==="Home"?(b.preventDefault(),y(tu(e))):b.key==="End"&&(b.preventDefault(),y(Zy(e)))},handleToggle:()=>{r||f(b=>!b)}}},rv=P.div`
674
+ `,Ja=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:o="currentColor",placeholder:r="Contraseña...",hasError:i=!1,disabled:s=!1,className:a,...l})=>{const[c,d]=m.useState(!1),u=()=>d(h=>!h);return p.jsxs(Np,{$size:e,$hasError:i,$disabled:s,className:a,children:[t&&p.jsx(H,{component:t,size:n,color:s?"var(--color-dark-200)":o}),p.jsx(zp,{type:c?"text":"password",placeholder:r,disabled:s,...l}),p.jsx(Op,{$disabled:s,onClick:s?void 0:u,children:p.jsx(H,{component:c?Vp:kp,size:n,color:s?"var(--color-dark-200)":o})})]})},Qa=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Hp=e=>{for(let t=e.length-1;t>=0;t--)if(!e[t].disabled)return t;return e.length-1},jp=(e,t,n)=>{let o=e;do o=(o+t+n.length)%n.length;while(n[o]?.disabled&&o!==e);return o},Gp=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),Up=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},Kp=(e,t)=>{if(typeof e=="string"||typeof e=="number"){const n=t.findIndex(o=>o.value===e);if(n!==-1&&!t[n].disabled)return n}return Qa(t)},Wp=({options:e,value:t,name:n,disabled:o=!1,onChange:r,onOptionSelect:i})=>{const s=m.useRef(null),a=m.useRef(null),l=m.useRef(null),c=m.useRef(null),d=m.useRef(!1),u=m.useId(),[h,f]=m.useState(!1),[v,y]=m.useState(-1),b=e.find(x=>x.value===t);m.useEffect(()=>{h&&a.current&&(a.current.focus(),y(Kp(t,e)))},[h,e,t]),m.useEffect(()=>{Up(l,v)},[v]),m.useEffect(()=>{if(!h)return;const x=P=>{s.current&&(s.current.contains(P.target)||f(!1))};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[h]),m.useEffect(()=>{h?d.current=!0:d.current&&requestAnimationFrame(()=>{c.current?.focus()})},[h]);const w=x=>{x.disabled||(i?.(x),r&&r(Gp(x.value,n)),f(!1),y(-1))};return{open:h,activeIndex:v,selected:b,containerRef:s,menuRef:a,menuContentRef:l,buttonRef:c,id:u,setOpen:f,setActiveIndex:y,commitSelection:w,handleKeyDownButton:x=>{o||(x.key==="ArrowDown"||x.key==="ArrowUp"?(x.preventDefault(),f(!0)):(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),f(P=>!P)))},handleKeyDownMenu:x=>{if(x.key==="Escape"){x.preventDefault(),f(!1),y(-1);return}if(x.key==="ArrowDown"||x.key==="ArrowUp"){x.preventDefault();const P=x.key==="ArrowDown"?1:-1;y(jp(v,P,e))}else if(x.key==="Enter"){x.preventDefault();const P=e[v];P&&!P.disabled&&w(P)}else x.key==="Home"?(x.preventDefault(),y(Qa(e))):x.key==="End"&&(x.preventDefault(),y(Hp(e)))},handleToggle:()=>{o||f(x=>!x)}}},qp=g.div`
734
675
  position: relative;
735
676
  width: 100%;
736
- `,ov=P.div`
737
- ${pr};
677
+ `,Yp=g.div`
678
+ ${pn};
738
679
  position: absolute;
739
680
  right: 1rem;
740
681
  top: 50%;
741
682
  transform: translateY(-50%) rotate(${({$open:e})=>e?"-180deg":"0deg"});
742
683
  pointer-events: none;
743
684
  transition: transform 0.3s ease-out;
744
- `,iv=P.button`
745
- ${Tt}
746
- ${({$size:e})=>xn[e]}
747
- ${({$hasError:e})=>e&&kt}
748
- ${({$disabled:e})=>e&&st}
685
+ `,Xp=g.button`
686
+ ${Ze}
687
+ ${({$size:e})=>Bt[e]}
688
+ ${({$hasError:e})=>e&&Je}
689
+ ${({$disabled:e})=>e&&Oe}
749
690
 
750
691
  width: 100%;
751
692
  text-align: left;
@@ -763,7 +704,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
763
704
  &:hover {
764
705
  background-color: var(--color-main-alternative-secondary);
765
706
  }
766
- `,sv=P(Ke.ul)`
707
+ `,Zp=g(Fe.ul)`
767
708
  position: absolute;
768
709
  z-index: 50;
769
710
  left: 0;
@@ -785,11 +726,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
785
726
  border: var(--border-input-focus);
786
727
  outline: none;
787
728
  }
788
- `,av=P.div`
729
+ `,Jp=g.div`
789
730
  max-height: 15rem;
790
731
  overflow-y: auto;
791
732
  outline: none;
792
- `,lv=P.li`
733
+ `,Qp=g.li`
793
734
  display: flex;
794
735
  align-items: center;
795
736
  gap: 0.5rem;
@@ -799,24 +740,24 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
799
740
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
800
741
  user-select: none;
801
742
 
802
- ${({$size:e})=>cv[e??"md"]}
743
+ ${({$size:e})=>eg[e??"md"]}
803
744
 
804
745
  background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
805
746
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
806
- `,cv={xs:S`
807
- ${F[14]}
808
- `,sm:S`
809
- ${F[16]}
810
- `,md:S`
811
- ${F[18]}
812
- `,lg:S`
813
- ${F[18]}
814
- `},nu=p.forwardRef(({size:e,hasError:t,disabled:n,hasValue:r,displayText:o,open:i,inputClassName:s,onClick:a,onKeyDown:l,ariaHaspopup:c,ariaExpanded:d,ariaControls:u,ariaInvalid:h,title:f},m)=>g.jsxs(g.Fragment,{children:[g.jsx(iv,{type:"button",$size:e,$hasError:t,$hasValue:r,$disabled:n,disabled:n,className:s,ref:m,onClick:a,onKeyDown:l,"aria-haspopup":c,"aria-expanded":d,"aria-controls":u,"aria-invalid":h,title:f,children:o}),g.jsx(ov,{$size:e,$disabled:n,$open:i,children:g.jsx(Y,{component:Xc,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})})]}));nu.displayName="SelectTrigger";const ru=({option:e,size:t,active:n,selected:r,id:o,className:i,onMouseEnter:s,onClick:a})=>g.jsx(lv,{id:o,className:i,role:"option",$size:t,"aria-selected":r,$active:n,$disabled:e.disabled,onMouseEnter:s,onClick:a,children:e.label});ru.displayName="SelectOption";const ou=({open:e,options:t,size:n,activeIndex:r,selectedValue:o,menuRef:i,menuContentRef:s,id:a,optionsClassName:l,optionClassName:c,onKeyDown:d,onOptionClick:u,onOptionMouseEnter:h})=>g.jsx(gn,{children:e&&g.jsx(sv,{ref:i,className:"custom-scrollbar",id:`${a}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":r>=0?`${a}-option-${r}`: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:d,children:g.jsx(av,{ref:s,className:l,children:t.map((f,m)=>{const y=m===r;return g.jsx(ru,{option:f,size:n,active:y,selected:o===f.value,id:`${a}-option-${m}`,className:c,onMouseEnter:()=>{!f.disabled&&e&&h(m)},onClick:()=>u(f)},f.value)})})})});ou.displayName="SelectMenu";const mr=p.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:i,onChange:s,value:a,name:l,className:c,inputClassName:d,optionsClassName:u,optionClassName:h},f)=>{const{open:m,activeIndex:y,selected:x,containerRef:v,menuRef:T,menuContentRef:w,buttonRef:M,id:b,setActiveIndex:$,commitSelection:k,handleKeyDownButton:E,handleKeyDownMenu:D,handleToggle:A}=nv({options:r,value:a,name:l,disabled:n,onChange:s,onOptionSelect:i}),I=N=>{M.current=N,typeof f=="function"?f(N):f&&"current"in f&&(f.current=N)};return g.jsxs(rv,{ref:v,className:c,children:[l&&g.jsx("input",{type:"hidden",name:l,value:x?.value??""}),g.jsx(nu,{ref:I,size:e,hasError:t,disabled:n,hasValue:!!x,displayText:x?.label??o??"",open:m,inputClassName:d,onClick:A,onKeyDown:E,ariaHaspopup:"listbox",ariaExpanded:m,ariaControls:`${b}-listbox`,ariaInvalid:t||void 0,title:x?.label??o??"Select an option"}),g.jsx(ou,{open:m,options:r,size:e,activeIndex:y,selectedValue:a,menuRef:T,menuContentRef:w,id:b,optionsClassName:u,optionClassName:h,onKeyDown:D,onOptionClick:k,onOptionMouseEnter:$})]})});mr.displayName="SelectInput";const uv=P.textarea`
815
- ${Tt}
816
- ${({$size:e})=>dv[e]}
817
- ${({$hasError:e})=>e&&kt}
818
- ${({$disabled:e})=>e&&st}
819
- ${F[20]}
747
+ `,eg={xs:g.css`
748
+ ${E[14]}
749
+ `,sm:g.css`
750
+ ${E[16]}
751
+ `,md:g.css`
752
+ ${E[18]}
753
+ `,lg:g.css`
754
+ ${E[18]}
755
+ `},el=m.forwardRef(({size:e,hasError:t,disabled:n,hasValue:o,displayText:r,open:i,inputClassName:s,onClick:a,onKeyDown:l,ariaHaspopup:c,ariaExpanded:d,ariaControls:u,ariaInvalid:h,title:f},v)=>p.jsxs(p.Fragment,{children:[p.jsx(Xp,{type:"button",$size:e,$hasError:t,$hasValue:o,$disabled:n,disabled:n,className:s,ref:v,onClick:a,onKeyDown:l,"aria-haspopup":c,"aria-expanded":d,"aria-controls":u,"aria-invalid":h,title:f,children:r}),p.jsx(Yp,{$size:e,$disabled:n,$open:i,children:p.jsx(H,{component:qa,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})})]}));el.displayName="SelectTrigger";const tl=({option:e,size:t,active:n,selected:o,id:r,className:i,onMouseEnter:s,onClick:a})=>p.jsx(Qp,{id:r,className:i,role:"option",$size:t,"aria-selected":o,$active:n,$disabled:e.disabled,onMouseEnter:s,onClick:a,children:e.label});tl.displayName="SelectOption";const nl=({open:e,options:t,size:n,activeIndex:o,selectedValue:r,menuRef:i,menuContentRef:s,id:a,optionsClassName:l,optionClassName:c,onKeyDown:d,onOptionClick:u,onOptionMouseEnter:h})=>p.jsx(At,{children:e&&p.jsx(Zp,{ref:i,className:"custom-scrollbar",id:`${a}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":o>=0?`${a}-option-${o}`: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:d,children:p.jsx(Jp,{ref:s,className:l,children:t.map((f,v)=>{const y=v===o;return p.jsx(tl,{option:f,size:n,active:y,selected:r===f.value,id:`${a}-option-${v}`,className:c,onMouseEnter:()=>{!f.disabled&&e&&h(v)},onClick:()=>u(f)},f.value)})})})});nl.displayName="SelectMenu";const gn=m.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:o=[],placeholder:r,onOptionSelect:i,onChange:s,value:a,name:l,className:c,inputClassName:d,optionsClassName:u,optionClassName:h},f)=>{const{open:v,activeIndex:y,selected:b,containerRef:w,menuRef:T,menuContentRef:C,buttonRef:M,id:x,setActiveIndex:P,commitSelection:V,handleKeyDownButton:$,handleKeyDownMenu:F,handleToggle:D}=Wp({options:o,value:a,name:l,disabled:n,onChange:s,onOptionSelect:i}),_=N=>{M.current=N,typeof f=="function"?f(N):f&&"current"in f&&(f.current=N)};return p.jsxs(qp,{ref:w,className:c,children:[l&&p.jsx("input",{type:"hidden",name:l,value:b?.value??""}),p.jsx(el,{ref:_,size:e,hasError:t,disabled:n,hasValue:!!b,displayText:b?.label??r??"",open:v,inputClassName:d,onClick:D,onKeyDown:$,ariaHaspopup:"listbox",ariaExpanded:v,ariaControls:`${x}-listbox`,ariaInvalid:t||void 0,title:b?.label??r??"Select an option"}),p.jsx(nl,{open:v,options:o,size:e,activeIndex:y,selectedValue:a,menuRef:T,menuContentRef:C,id:x,optionsClassName:u,optionClassName:h,onKeyDown:F,onOptionClick:V,onOptionMouseEnter:P})]})});gn.displayName="SelectInput";const tg=g.textarea`
756
+ ${Ze}
757
+ ${({$size:e})=>ng[e]}
758
+ ${({$hasError:e})=>e&&Je}
759
+ ${({$disabled:e})=>e&&Oe}
760
+ ${E[20]}
820
761
 
821
762
  resize: ${({$resize:e})=>e};
822
763
 
@@ -829,68 +770,68 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
829
770
  color: var(--color-dark-200);
830
771
  opacity: 1;
831
772
  }
832
- `,dv={xs:`
833
- ${F[16]}
773
+ `,ng={xs:`
774
+ ${E[16]}
834
775
  height: 4rem;
835
776
  max-height: 8rem;
836
777
  padding: 0.75rem 1rem;
837
778
  `,sm:`
838
- ${F[20]}
779
+ ${E[20]}
839
780
  height: 6rem;
840
781
  max-height: 12rem;
841
782
  padding: 1rem 1.25rem;
842
783
  `,md:`
843
- ${F[24]}
784
+ ${E[24]}
844
785
  height: 8rem;
845
786
  max-height: 16rem;
846
787
  padding: 1rem 1.25rem;
847
788
  `,lg:`
848
- ${F[24]}
789
+ ${E[24]}
849
790
  height:12rem;
850
791
  max-height: 20rem;
851
792
  padding: 1rem 1.25rem;
852
- `},fi=p.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:r="vertical",autoResize:o=!1,minRows:i=3,maxRows:s,className:a,onChange:l,...c},d)=>{const u=h=>{if(o){const f=h.target;f.style.height="auto";const m=f.scrollHeight,y=i*24,x=s?s*24:m;m>x?(f.style.height=`${x}px`,f.style.overflowY="scroll"):(f.style.height=`${Math.max(m,y)}px`,f.style.overflowY="hidden")}l?.(h)};return g.jsx(uv,{ref:d,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:i,className:a,onChange:u,...c})});fi.displayName="TextAreaInput";const fv=P.div`
853
- ${Tt}
854
- ${({$size:e})=>xn[e??"md"]}
855
- `,hv=P.input`
856
- ${hr}
857
- `,hi=({size:e="md",leftIcon:t,rightIcon:n=Qc,iconSize:r="sm",iconColor:o="currentColor",placeholder:i="Buscar...",onSearch:s,className:a,...l})=>{const c=d=>{s?.(d.target.value)};return g.jsxs(fv,{$size:e,className:a,children:[t&&g.jsx(Y,{component:t,size:r,color:o}),g.jsx(hv,{placeholder:i,onChange:c,...l}),n?g.jsx(Y,{component:n,size:r,color:o}):g.jsx(Y,{component:Qc,size:r,color:o})]})},pv={default:S`
793
+ `},Xo=m.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:o="vertical",autoResize:r=!1,minRows:i=3,maxRows:s,className:a,onChange:l,...c},d)=>{const u=h=>{if(r){const f=h.target;f.style.height="auto";const v=f.scrollHeight,y=i*24,b=s?s*24:v;v>b?(f.style.height=`${b}px`,f.style.overflowY="scroll"):(f.style.height=`${Math.max(v,y)}px`,f.style.overflowY="hidden")}l?.(h)};return p.jsx(tg,{ref:d,$size:e,$hasError:t,$disabled:n,$resize:o,$autoResize:r,disabled:n,rows:i,className:a,onChange:u,...c})});Xo.displayName="TextAreaInput";const og=g.div`
794
+ ${Ze}
795
+ ${({$size:e})=>Bt[e??"md"]}
796
+ `,rg=g.input`
797
+ ${mn}
798
+ `,Zo=({size:e="md",leftIcon:t,rightIcon:n=Za,iconSize:o="sm",iconColor:r="currentColor",placeholder:i="Buscar...",onSearch:s,className:a,...l})=>{const c=d=>{s?.(d.target.value)};return p.jsxs(og,{$size:e,className:a,children:[t&&p.jsx(H,{component:t,size:o,color:r}),p.jsx(rg,{placeholder:i,onChange:c,...l}),n?p.jsx(H,{component:n,size:o,color:r}):p.jsx(H,{component:Za,size:o,color:r})]})},ig={default:g.css`
858
799
  min-height: 18rem;
859
800
  padding: 2rem;
860
- `,compact:S`
801
+ `,compact:g.css`
861
802
  min-height: 6rem;
862
803
  padding: 1rem;
863
804
  flex-direction: row;
864
- `},mv={xs:S`
865
- ${F[12]}
866
- `,sm:S`
867
- ${F[12]}
868
- `,md:S`
869
- ${F[16]}
870
- `,lg:S`
871
- ${F[20]}
872
- `},gv=S`
805
+ `},sg={xs:g.css`
806
+ ${E[12]}
807
+ `,sm:g.css`
808
+ ${E[12]}
809
+ `,md:g.css`
810
+ ${E[16]}
811
+ `,lg:g.css`
812
+ ${E[20]}
813
+ `},ag=g.css`
873
814
  border: 2px dashed var(--color-main-input-borders);
874
815
  background-color: var(--color-main-white);
875
- `,yv=S`
816
+ `,lg=g.css`
876
817
  border-color: var(--color-main-blue-primary);
877
818
  background-color: var(--color-main-alternative-secondary);
878
- `,vv=S`
819
+ `,cg=g.css`
879
820
  border: 2px dashed var(--color-main-positive-state);
880
821
  background-color: var(--color-green-100);
881
- `,wv=S`
822
+ `,ug=g.css`
882
823
  border-color: var(--color-main-warning-state);
883
824
  background-color: var(--color-red-100);
884
- `,bv=S`
825
+ `,dg=g.css`
885
826
  border-color: var(--color-dark-200);
886
827
  cursor: not-allowed;
887
828
  opacity: 0.6;
888
- `,xv=P.div`
829
+ `,fg=g.div`
889
830
  display: flex;
890
831
  flex-direction: column;
891
832
  width: 100%;
892
- ${({$size:e})=>mv[e]}
893
- `,Sv=P.div`
833
+ ${({$size:e})=>sg[e]}
834
+ `,hg=g.div`
894
835
  display: flex;
895
836
  flex-direction: column;
896
837
  align-items: center;
@@ -906,35 +847,35 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
906
847
  outline: 2px solid transparent;
907
848
  outline-offset: 2px;
908
849
 
909
- ${({$variant:e})=>pv[e]}
910
- ${gv}
850
+ ${({$variant:e})=>ig[e]}
851
+ ${ag}
911
852
 
912
- ${({$disabled:e})=>e?bv:S`
853
+ ${({$disabled:e})=>e?dg:g.css`
913
854
  &:hover {
914
- ${yv}
855
+ ${lg}
915
856
  }
916
857
  `}
917
858
 
918
- ${({$isDragging:e,$disabled:t})=>e&&!t&&vv}
919
- ${({$hasError:e,$disabled:t})=>e&&!t&&wv}
859
+ ${({$isDragging:e,$disabled:t})=>e&&!t&&cg}
860
+ ${({$hasError:e,$disabled:t})=>e&&!t&&ug}
920
861
 
921
862
  &:focus-visible {
922
863
  outline-color: var(--color-main-blue-primary);
923
864
  outline-offset: 2px;
924
865
  }
925
- `,Cv=P.div`
866
+ `,mg=g.div`
926
867
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
927
868
 
928
869
  strong {
929
870
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
930
871
  font-weight: 700;
931
872
  }
932
- `,Tv=P.div`
873
+ `,pg=g.div`
933
874
  display: flex;
934
875
  flex-direction: column;
935
876
  gap: 0.5rem;
936
877
  margin-top: 1rem;
937
- `,kv=P.div`
878
+ `,gg=g.div`
938
879
  display: flex;
939
880
  align-items: center;
940
881
  justify-content: space-between;
@@ -951,12 +892,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
951
892
  &:hover {
952
893
  background-color: var(--color-main-alternative-secondary);
953
894
  }
954
- `,Pv=P(Ge)`
895
+ `,vg=g(Ve)`
955
896
  font-weight: 500;
956
897
  overflow: hidden;
957
898
  text-overflow: ellipsis;
958
899
  white-space: nowrap;
959
- `,$v=P.button`
900
+ `,yg=g.button`
960
901
  background: none;
961
902
  border: none;
962
903
  color: var(--color-dark-400);
@@ -983,12 +924,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
983
924
  cursor: not-allowed;
984
925
  opacity: 0.5;
985
926
  }
986
- `,Ev=(e,t)=>{const[n,r]=p.useState(!1),o=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!0)},[t]),i=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!1)},[t]),s=p.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]),a=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||(r(!1),e(l.dataTransfer.files))},[t,e]);return p.useEffect(()=>()=>{n&&r(!1)},[n]),{isDragging:n,dragHandlers:{onDragEnter:o,onDragLeave:i,onDragOver:s,onDrop:a}}},Mv=({maxFileSize:e,accept:t,multiple:n,onError:r})=>{const[o,i]=p.useState(""),s=p.useCallback(l=>{i(l),r?.(l)},[r]),a=p.useCallback(l=>{if(e&&l.some(c=>c.size>e)){const c=e/1048576,d=c>=1?`File size exceeds maximum of ${c.toFixed(1)}MB`:`File size exceeds maximum of ${Math.round(e/1024)}KB`;return s(d),!1}if(t){const c=t.split(",").map(u=>u.trim().toLowerCase());if(l.find(u=>{const h=u.type.toLowerCase(),f=`.${u.name.split(".").pop()?.toLowerCase()}`;return!c.some(m=>{if(m===h||m===f)return!0;if(m.endsWith("/*")){const y=m.slice(0,-2);return h.startsWith(`${y}/`)}return!1})})){const u=`File type not accepted. Allowed: ${t}`;return s(u),!1}}return!n&&l.length>1?(s("Only one file is allowed"),!1):(i(""),!0)},[e,t,n,s]);return{error:o,validateFiles:a,clearError:()=>i("")}},Av=e=>{const t=["Bytes","KB","MB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,n)).toFixed(2)} ${t[n]}`},iu=({files:e,onRemove:t,disabled:n})=>e.length===0?null:g.jsx(Tv,{children:e.map((r,o)=>g.jsxs(kv,{children:[g.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[g.jsx(Pv,{size:14,children:r.name}),g.jsx(bn,{size:12,children:Av(r.size)})]}),g.jsx($v,{type:"button",onClick:()=>t(o),"aria-label":`Remove ${r.name}`,disabled:n,children:g.jsx(Zc,{})})]},`${r.name}-${o}`))}),Dv=({variant:e="default",multiple:t=!1,maxFileSize:n=10,accept:r="image/*,application/pdf",helperText:o="Upload files here",value:i,defaultValue:s,onChange:a,onError:l,onFileRemove:c,disabled:d=!1,hasError:u=!1,errorMessage:h="",className:f="",dropZoneContainerClassName:m="",size:y="md"})=>{const x=i!==void 0,[v,T]=p.useState(s||[]),w=x?i:v,M=n*1024*1024,{error:b,validateFiles:$,clearError:k}=Mv({maxFileSize:M,accept:r,multiple:t,onError:l}),E=(G,X)=>{if(!G||G.length===0)return;const O=Array.from(G);if(!$(O))return;const R=t?[...w,...O]:O;x||T(R),a?.(R,X)},D=G=>{const X=w[G],O=w.filter((R,W)=>W!==G);x||T(O),c?.(X,G),a?.(O),O.length===0&&k()},{isDragging:A,dragHandlers:I}=Ev(E,d),N=u||!!b,j=h||b;return g.jsxs(xv,{$size:y,className:f,children:[g.jsxs("label",{"aria-label":"File upload area",className:`p-4 ${m}`,children:[g.jsxs(Sv,{$variant:e,$isDragging:A,$hasError:N,$disabled:d,role:"button",tabIndex:d?-1:0,"aria-disabled":d,onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),G.currentTarget.querySelector("input")?.click())},...I,children:[g.jsx(Y,{component:Gy,size:"lg",color:d?"var(--color-dark-200)":"var(--color-main-blue-primary)",className:"!text-[5rem]"}),g.jsxs(Cv,{$disabled:d,children:[g.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),o&&!N&&g.jsx(Ge,{size:14,color:"var(--color-main-grey)",children:o})]}),g.jsx("input",{type:"file",multiple:t,accept:r,disabled:d,onChange:G=>E(G.target.files,G.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),N&&j&&g.jsx(ui,{size:"sm",children:j}),g.jsx(iu,{files:w,onRemove:D,disabled:d})]})},Yt={xs:"1rem",sm:"1.25rem",md:"1.5rem",lg:"1.75rem"},Vv=P.div`
927
+ `,wg=(e,t)=>{const[n,o]=m.useState(!1),r=m.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||o(!0)},[t]),i=m.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||o(!1)},[t]),s=m.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]),a=m.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||(o(!1),e(l.dataTransfer.files))},[t,e]);return m.useEffect(()=>()=>{n&&o(!1)},[n]),{isDragging:n,dragHandlers:{onDragEnter:r,onDragLeave:i,onDragOver:s,onDrop:a}}},bg=({maxFileSize:e,accept:t,multiple:n,onError:o})=>{const[r,i]=m.useState(""),s=m.useCallback(l=>{i(l),o?.(l)},[o]),a=m.useCallback(l=>{if(e&&l.some(c=>c.size>e)){const c=e/1048576,d=c>=1?`File size exceeds maximum of ${c.toFixed(1)}MB`:`File size exceeds maximum of ${Math.round(e/1024)}KB`;return s(d),!1}if(t){const c=t.split(",").map(u=>u.trim().toLowerCase());if(l.find(u=>{const h=u.type.toLowerCase(),f=`.${u.name.split(".").pop()?.toLowerCase()}`;return!c.some(v=>{if(v===h||v===f)return!0;if(v.endsWith("/*")){const y=v.slice(0,-2);return h.startsWith(`${y}/`)}return!1})})){const u=`File type not accepted. Allowed: ${t}`;return s(u),!1}}return!n&&l.length>1?(s("Only one file is allowed"),!1):(i(""),!0)},[e,t,n,s]);return{error:r,validateFiles:a,clearError:()=>i("")}},xg=e=>{const t=["Bytes","KB","MB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,n)).toFixed(2)} ${t[n]}`},ol=({files:e,onRemove:t,disabled:n})=>e.length===0?null:p.jsx(pg,{children:e.map((o,r)=>p.jsxs(gg,{children:[p.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[p.jsx(vg,{size:14,children:o.name}),p.jsx(_t,{size:12,children:xg(o.size)})]}),p.jsx(yg,{type:"button",onClick:()=>t(r),"aria-label":`Remove ${o.name}`,disabled:n,children:p.jsx(Ya,{})})]},`${o.name}-${r}`))}),Sg=({variant:e="default",multiple:t=!1,maxFileSize:n=10,accept:o="image/*,application/pdf",helperText:r="Upload files here",value:i,defaultValue:s,onChange:a,onError:l,onFileRemove:c,disabled:d=!1,hasError:u=!1,errorMessage:h="",className:f="",dropZoneContainerClassName:v="",size:y="md"})=>{const b=i!==void 0,[w,T]=m.useState(s||[]),C=b?i:w,M=n*1024*1024,{error:x,validateFiles:P,clearError:V}=bg({maxFileSize:M,accept:o,multiple:t,onError:l}),$=(j,K)=>{if(!j||j.length===0)return;const R=Array.from(j);if(!P(R))return;const L=t?[...C,...R]:R;b||T(L),a?.(L,K)},F=j=>{const K=C[j],R=C.filter((L,G)=>G!==j);b||T(R),c?.(K,j),a?.(R),R.length===0&&V()},{isDragging:D,dragHandlers:_}=wg($,d),N=u||!!x,O=h||x;return p.jsxs(fg,{$size:y,className:f,children:[p.jsxs("label",{"aria-label":"File upload area",className:`p-4 ${v}`,children:[p.jsxs(hg,{$variant:e,$isDragging:D,$hasError:N,$disabled:d,role:"button",tabIndex:d?-1:0,"aria-disabled":d,onKeyDown:j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),j.currentTarget.querySelector("input")?.click())},..._,children:[p.jsx(H,{component:Lp,size:"lg",color:d?"var(--color-dark-200)":"var(--color-main-blue-primary)",className:"!text-[5rem]"}),p.jsxs(mg,{$disabled:d,children:[p.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),r&&!N&&p.jsx(Ve,{size:14,color:"var(--color-main-grey)",children:r})]}),p.jsx("input",{type:"file",multiple:t,accept:o,disabled:d,onChange:j=>$(j.target.files,j.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),N&&O&&p.jsx(qo,{size:"sm",children:O}),p.jsx(ol,{files:C,onRemove:F,disabled:d})]})},ft={xs:"1rem",sm:"1.25rem",md:"1.5rem",lg:"1.75rem"},Cg=g.div`
987
928
  position: relative;
988
- `,Fv=P.input`
929
+ `,Tg=g.input`
989
930
  position: absolute;
990
- height: ${({$size:e})=>Yt[e]};
991
- width: ${({$size:e})=>Yt[e]};
931
+ height: ${({$size:e})=>ft[e]};
932
+ width: ${({$size:e})=>ft[e]};
992
933
  inset: 0;
993
934
  cursor: pointer;
994
935
  opacity: 0;
@@ -1002,9 +943,9 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1002
943
  outline-color: var(--color-main-orange-primary);
1003
944
  outline-offset: 2px;
1004
945
  }
1005
- `,Iv=P.div`
1006
- height: ${({$size:e})=>Yt[e]};
1007
- width: ${({$size:e})=>Yt[e]};
946
+ `,$g=g.div`
947
+ height: ${({$size:e})=>ft[e]};
948
+ width: ${({$size:e})=>ft[e]};
1008
949
  border: 2px solid;
1009
950
  border-radius: 0.25rem;
1010
951
  display: flex;
@@ -1021,34 +962,34 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1021
962
  border-color: var(--color-main-orange-primary);
1022
963
  }
1023
964
 
1024
- ${({$hasError:e})=>e&&kt}
1025
- ${({$disabled:e})=>e&&st}
1026
- ${({$checked:e})=>e&&Rv}
1027
- `,Rv=S`
965
+ ${({$hasError:e})=>e&&Je}
966
+ ${({$disabled:e})=>e&&Oe}
967
+ ${({$checked:e})=>e&&Pg}
968
+ `,Pg=g.css`
1028
969
  background-color: var(--color-main-orange-primary);
1029
970
  border-color: var(--color-main-orange-primary);
1030
- `,Lv=P.svg`
1031
- height: ${({$size:e})=>Yt[e]};
1032
- width: ${({$size:e})=>Yt[e]};
971
+ `,Mg=g.svg`
972
+ height: ${({$size:e})=>ft[e]};
973
+ width: ${({$size:e})=>ft[e]};
1033
974
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
1034
975
  fill: none;
1035
976
  stroke: currentColor;
1036
- `,_v=P.span`
977
+ `,kg=g.span`
1037
978
  display: block;
1038
979
  width: ${({$size:e})=>e==="xs"?"50%":"60%"};
1039
980
  height: ${({$size:e})=>e==="xs"?"1.5px":"2px"};
1040
981
  background-color: white;
1041
982
  border-radius: 1px;
1042
- `,pi=p.forwardRef(({size:e="md",hasError:t=!1,indeterminate:n=!1,checked:r,disabled:o=!1,onChange:i,className:s,checkboxClassName:a,...l},c)=>{const d=p.useId(),u=l.id??d,h=!!r,f=p.useRef(null),m=p.useCallback(y=>{if(f.current=y,!!c)if(typeof c=="function")try{c(y)}catch{}else c.current=y},[c]);return p.useEffect(()=>{f.current&&(f.current.indeterminate=!!n)},[n]),g.jsxs(Vv,{className:s,children:[g.jsx(Fv,{ref:m,type:"checkbox",checked:h||!1,disabled:o,onChange:i,id:u,name:l.name,"aria-invalid":t||void 0,"aria-disabled":o||void 0,"aria-checked":n?"mixed":h?"true":"false",$size:e,...l}),g.jsxs(Iv,{$checked:!!h||!!n,$hasError:t,$disabled:o,$size:e,className:a,children:[h&&!n&&g.jsx(Lv,{$disabled:o,$size:e,viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e==="xs"?2.5:3,d:"M5 13l4 4L19 7"})}),n&&g.jsx(_v,{$size:e})]})]})});pi.displayName="CheckboxInput";const su=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:i,onClick:s,...a})=>{const l=c=>{n||(o&&o(),s&&s(c))};return g.jsx(fr,{size:t,disabled:n,htmlFor:r,onClick:l,className:i,...a,children:e})},Nv=P.section`
983
+ `,Jo=m.forwardRef(({size:e="md",hasError:t=!1,indeterminate:n=!1,checked:o,disabled:r=!1,onChange:i,className:s,checkboxClassName:a,...l},c)=>{const d=m.useId(),u=l.id??d,h=!!o,f=m.useRef(null),v=m.useCallback(y=>{if(f.current=y,!!c)if(typeof c=="function")try{c(y)}catch{}else c.current=y},[c]);return m.useEffect(()=>{f.current&&(f.current.indeterminate=!!n)},[n]),p.jsxs(Cg,{className:s,children:[p.jsx(Tg,{ref:v,type:"checkbox",checked:h||!1,disabled:r,onChange:i,id:u,name:l.name,"aria-invalid":t||void 0,"aria-disabled":r||void 0,"aria-checked":n?"mixed":h?"true":"false",$size:e,...l}),p.jsxs($g,{$checked:!!h||!!n,$hasError:t,$disabled:r,$size:e,className:a,children:[h&&!n&&p.jsx(Mg,{$disabled:r,$size:e,viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e==="xs"?2.5:3,d:"M5 13l4 4L19 7"})}),n&&p.jsx(kg,{$size:e})]})]})});Jo.displayName="CheckboxInput";const rl=({children:e,size:t="md",disabled:n=!1,htmlFor:o,onLabelClick:r,className:i,onClick:s,...a})=>{const l=c=>{n||(r&&r(),s&&s(c))};return p.jsx(hn,{size:t,disabled:n,htmlFor:o,onClick:l,className:i,...a,children:e})},Vg=g.section`
1043
984
  display: flex;
1044
985
  align-items: center;
1045
986
  justify-content: center;
1046
987
  gap: 1rem;
1047
- `,Sn=p.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:i=!1,onChange:s,onLabelClick:a,className:l,checkboxClassName:c,labelClassName:d,...u},h)=>{const f=p.useId(),m=u.id??f;return g.jsxs(Nv,{className:l,children:[g.jsx(pi,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:i,onChange:s,checkboxClassName:c,id:m,...u}),t&&g.jsx(su,{size:e,disabled:i,htmlFor:m,onLabelClick:a,className:d,children:t})]})});Sn.displayName="Checkbox";const Ov=P.div`
988
+ `,Nt=m.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:o=!1,checked:r,disabled:i=!1,onChange:s,onLabelClick:a,className:l,checkboxClassName:c,labelClassName:d,...u},h)=>{const f=m.useId(),v=u.id??f;return p.jsxs(Vg,{className:l,children:[p.jsx(Jo,{ref:h,size:e,hasError:n,indeterminate:o,checked:r,disabled:i,onChange:s,checkboxClassName:c,id:v,...u}),t&&p.jsx(rl,{size:e,disabled:i,htmlFor:v,onLabelClick:a,className:d,children:t})]})});Nt.displayName="Checkbox";const Eg=g.div`
1048
989
  position: relative;
1049
990
  display: inline-block;
1050
- `,Bv=P.input`
1051
- ${Tt}
991
+ `,Dg=g.input`
992
+ ${Ze}
1052
993
  text-align: center;
1053
994
  padding: 0;
1054
995
 
@@ -1061,15 +1002,15 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1061
1002
  &[type='number'] {
1062
1003
  -moz-appearance: textfield;
1063
1004
  }
1064
- ${({$size:e})=>Hv[e]}
1065
- ${({$variant:e})=>e&&zv[e??"outlined"]}
1066
- ${({$hasError:e})=>e&&kt}
1067
- ${({$disabled:e})=>e&&st}
1005
+ ${({$size:e})=>Ag[e]}
1006
+ ${({$variant:e})=>e&&Fg[e??"outlined"]}
1007
+ ${({$hasError:e})=>e&&Je}
1008
+ ${({$disabled:e})=>e&&Oe}
1068
1009
 
1069
1010
  &:focus {
1070
1011
  border: 2px solid var(--color-main-blue-primary);
1071
1012
  }
1072
- `,zv={outlined:`
1013
+ `,Fg={outlined:`
1073
1014
  background-color: var(--color-main-white);
1074
1015
  border: 2px solid var(--color-main-input-borders);
1075
1016
 
@@ -1088,33 +1029,33 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1088
1029
  background-color: var(--color-main-white);
1089
1030
  border: 2px solid var(--color-main-blue-primary);
1090
1031
  }
1091
- `},Hv={xs:`
1032
+ `},Ag={xs:`
1092
1033
  padding: 0.25rem;
1093
1034
  width: 2rem;
1094
1035
  height: 2rem;
1095
- ${F[20]}
1036
+ ${E[20]}
1096
1037
  `,sm:`
1097
1038
  padding: 0.375rem;
1098
1039
  width: 2.5rem;
1099
1040
  height: 2.5rem;
1100
- ${F[24]}
1041
+ ${E[24]}
1101
1042
  `,md:`
1102
1043
  padding: 0.625rem;
1103
1044
  width: 3rem;
1104
1045
  height: 3.5rem;
1105
- ${F[30]}
1046
+ ${E[30]}
1106
1047
  `,lg:`
1107
1048
  padding: 0.75rem;
1108
1049
  width: 3.5rem;
1109
1050
  height: 4rem;
1110
- ${F[40]}
1111
- `},mi=p.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:i=1,type:s="text",...a},l)=>{const c=p.useId(),d=a.id??c;return g.jsx(Ov,{children:g.jsx(Bv,{ref:l,$size:e,$hasError:t,$disabled:r,$variant:n,className:o,maxLength:i,type:s,disabled:r,id:d,"aria-invalid":t||void 0,"aria-disabled":r||void 0,...a})})});mi.displayName="PinInput";const au=(e,t,n,r,o,i,s="text",a,l)=>{const c=e.target.value;if(c.length>1)return;const d=i??o.length;if(s==="number"&&c&&!/^\d$/.test(c))return;const u=[...n];u[t]=c,r(u);const h=u.join("");a?.(h),c&&t<i-1&&o[t+1].current?.focus(),u.every(f=>f!=="")&&u.length>=d&&l?.(h)},lu=(e,t,n,r,o,i)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(o){r[t-1].current?.focus();const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}return}if(t>0&&(r[t-1].current?.focus(),o)){const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}}e.key==="ArrowLeft"&&t>0&&r[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<r.length-1&&r[t+1]?.current?.focus()},cu=(e,t,n,r,o,i,s="text",a,l)=>{e.preventDefault();const c=e.clipboardData.getData("text");if(!c)return;const d=i??o.length,u=[...n];for(let y=0;y<c.length;y++){const x=t+y;if(x>=d)break;const v=c[y];s==="number"&&!/^\d$/.test(v)||(u[x]=v)}r(u),a?.(u.join(""));const h=u.findIndex(y=>y===""),f=h!==-1?Math.min(Math.max(h,t),d-1):d-1;o[f].current?.focus();const m=u.join("");u.every(y=>y!=="")&&u.length>=d&&l?.(m)},uu=e=>Array(e).fill(null).map(()=>p.createRef()),jv=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),Gv=P.div`
1051
+ ${E[40]}
1052
+ `},Qo=m.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:o=!1,className:r,maxLength:i=1,type:s="text",...a},l)=>{const c=m.useId(),d=a.id??c;return p.jsx(Eg,{children:p.jsx(Dg,{ref:l,$size:e,$hasError:t,$disabled:o,$variant:n,className:r,maxLength:i,type:s,disabled:o,id:d,"aria-invalid":t||void 0,"aria-disabled":o||void 0,...a})})});Qo.displayName="PinInput";const il=(e,t,n,o,r,i,s="text",a,l)=>{const c=e.target.value;if(c.length>1)return;const d=i??r.length;if(s==="number"&&c&&!/^\d$/.test(c))return;const u=[...n];u[t]=c,o(u);const h=u.join("");a?.(h),c&&t<i-1&&r[t+1].current?.focus(),u.every(f=>f!=="")&&u.length>=d&&l?.(h)},sl=(e,t,n,o,r,i)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(r){o[t-1].current?.focus();const s=[...n];s[t-1]="",r(s),i?.(s.join(""))}return}if(t>0&&(o[t-1].current?.focus(),r)){const s=[...n];s[t-1]="",r(s),i?.(s.join(""))}}e.key==="ArrowLeft"&&t>0&&o[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<o.length-1&&o[t+1]?.current?.focus()},al=(e,t,n,o,r,i,s="text",a,l)=>{e.preventDefault();const c=e.clipboardData.getData("text");if(!c)return;const d=i??r.length,u=[...n];for(let y=0;y<c.length;y++){const b=t+y;if(b>=d)break;const w=c[y];s==="number"&&!/^\d$/.test(w)||(u[b]=w)}o(u),a?.(u.join(""));const h=u.findIndex(y=>y===""),f=h!==-1?Math.min(Math.max(h,t),d-1):d-1;r[f].current?.focus();const v=u.join("");u.every(y=>y!=="")&&u.length>=d&&l?.(v)},ll=e=>Array(e).fill(null).map(()=>m.createRef()),Ig=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),Lg=g.div`
1112
1053
  display: flex;
1113
1054
  gap: 8px;
1114
1055
  align-items: center;
1115
- `,gi=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:i,onComplete:s,className:a,pinInputClassName:l})=>{const[c,d]=p.useState(Array(e).fill("")),u=p.useMemo(()=>uu(e),[e]);return g.jsx(Gv,{className:a,children:Array.from({length:e},(h,f)=>g.jsx(mi,{className:l,size:t,variant:n,hasError:r,value:c[f],onChange:m=>au(m,f,c,d,u,e,o,i,s),onKeyDown:m=>lu(m,f,c,u,d,i),onPaste:m=>cu(m,f,c,d,u,e,o,i,s),ref:u[f]},f))})};gi.displayName="PinInputGroup";const Uv=P.div`
1056
+ `,er=({length:e=6,size:t="md",variant:n="outlined",hasError:o=!1,type:r="number",onChange:i,onComplete:s,className:a,pinInputClassName:l})=>{const[c,d]=m.useState(Array(e).fill("")),u=m.useMemo(()=>ll(e),[e]);return p.jsx(Lg,{className:a,children:Array.from({length:e},(h,f)=>p.jsx(Qo,{className:l,size:t,variant:n,hasError:o,value:c[f],onChange:v=>il(v,f,c,d,u,e,r,i,s),onKeyDown:v=>sl(v,f,c,u,d,i),onPaste:v=>al(v,f,c,d,u,e,r,i,s),ref:u[f]},f))})};er.displayName="PinInputGroup";const Rg=g.div`
1116
1057
  position: relative;
1117
- `,Wv=P.input`
1058
+ `,_g=g.input`
1118
1059
  position: absolute;
1119
1060
  height: 1.5rem;
1120
1061
  width: 1.5rem;
@@ -1132,9 +1073,9 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1132
1073
  outline-color: var(--color-main-orange-primary);
1133
1074
  outline-offset: 2px;
1134
1075
  }
1135
- `,Kv=S`
1076
+ `,Bg=g.css`
1136
1077
  border-color: var(--color-main-orange-primary);
1137
- `,Yv=P.div`
1078
+ `,Ng=g.div`
1138
1079
  height: 1.5rem;
1139
1080
  width: 1.5rem;
1140
1081
  border: 2px solid var(--color-main-input-borders);
@@ -1152,11 +1093,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1152
1093
  border-color: var(--color-main-warning-state);
1153
1094
  `}
1154
1095
  ${({$disabled:e})=>e&&`
1155
- ${st}
1096
+ ${Oe}
1156
1097
  border: 2px solid var(--color-dark-200) !important;
1157
1098
  `}
1158
- ${({$checked:e})=>e&&Kv}
1159
- `,qv=P.span`
1099
+ ${({$checked:e})=>e&&Bg}
1100
+ `,zg=g.span`
1160
1101
  display: block;
1161
1102
  height: 0.625rem;
1162
1103
  width: 0.625rem;
@@ -1165,21 +1106,21 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1165
1106
  background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
1166
1107
  opacity: ${({$checked:e})=>e?1:0};
1167
1108
  transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
1168
- `,yi=p.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:i,...s},a)=>{const l=p.useId(),c=s.id??l,d=!!t,{size:u,...h}=s;return g.jsxs(Uv,{className:o,children:[g.jsx(Wv,{ref:a,type:"radio",id:c,checked:d||!1,disabled:n,onChange:r,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":d?"true":"false",...h}),g.jsx(Yv,{$checked:!!d,$hasError:e,$disabled:n,className:i,children:g.jsx(qv,{$disabled:n,$checked:d})})]})});yi.displayName="RadioInputDot";const vi=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...i})=>g.jsx(fr,{className:n,htmlFor:t,size:o,disabled:r,...i,children:e});vi.displayName="RadioInputLabel";const Xv=P.section`
1109
+ `,tr=m.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:o,className:r,dotClassName:i,...s},a)=>{const l=m.useId(),c=s.id??l,d=!!t,{size:u,...h}=s;return p.jsxs(Rg,{className:r,children:[p.jsx(_g,{ref:a,type:"radio",id:c,checked:d||!1,disabled:n,onChange:o,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":d?"true":"false",...h}),p.jsx(Ng,{$checked:!!d,$hasError:e,$disabled:n,className:i,children:p.jsx(zg,{$disabled:n,$checked:d})})]})});tr.displayName="RadioInputDot";const nr=({children:e,htmlFor:t,className:n,disabled:o=!1,size:r="md",...i})=>p.jsx(hn,{className:n,htmlFor:t,size:r,disabled:o,...i,children:e});nr.displayName="RadioInputLabel";const Og=g.section`
1169
1110
  display: flex;
1170
1111
  align-items: center;
1171
1112
  justify-content: center;
1172
1113
  gap: 1rem;
1173
- `,wi=p.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:i,className:s,dotClassName:a,labelClassName:l,...c},d)=>{const u=p.useId(),h=c.id??u;return g.jsxs(Xv,{className:s,children:[g.jsx(yi,{ref:d,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:h,...c}),t&&g.jsx(vi,{size:e,disabled:o,htmlFor:h,className:l,children:t})]})});wi.displayName="RadioInput";const Zv=({name:e,required:t=!1,onChange:n,onOptionSelect:r,onRadioChange:o,onPinComplete:i,options:s=[]})=>{const[a,l,c]=kd.useField(e),d=p.useMemo(()=>!!(l.error&&(l.touched||l.value)),[l.error,l.touched,l.value]),u=p.useMemo(()=>d?l.error:void 0,[d,l.error]),h=p.useMemo(()=>a.name||e,[a.name,e]),f=p.useMemo(()=>({required:t||void 0,"aria-required":t||void 0,"aria-invalid":d||void 0,"aria-describedby":d?`${h}-error`:void 0}),[t,d,h]),m=p.useCallback(b=>{n?n(b):a.onChange(b)},[n,a]),y=p.useCallback(b=>{n?n(b):a.onChange(b)},[n,a]),x=p.useCallback(b=>{c.setValue(b.target.checked)},[c]),v=p.useCallback(b=>{a.onChange(b);const $=s.find(k=>String(k.value)===b.target.value);$&&r?.($)},[a,s,r]),T=p.useCallback((b,$)=>{const k=b.target.value,E=typeof $=="number"?Number(k):k;c.setValue(E),o?.(b)},[c,o]),w=p.useCallback(b=>{c.setValue(b)},[c]),M=p.useCallback(b=>{c.setValue(b),i?.(b)},[c,i]);return{field:a,meta:l,helpers:c,hasError:d,errorMessage:u,inputId:h,ariaProps:f,handleStandardChange:m,handleTextAreaChange:y,handleCheckboxChange:x,handleSelectChange:v,handleRadioChange:T,handlePinChange:w,handlePinComplete:M}},Jv=["text","email","number","tel","url","date","datetime-local","time"],Qv=P.div`
1114
+ `,or=m.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:o,disabled:r=!1,onChange:i,className:s,dotClassName:a,labelClassName:l,...c},d)=>{const u=m.useId(),h=c.id??u;return p.jsxs(Og,{className:s,children:[p.jsx(tr,{ref:d,size:e,hasError:n,checked:o,disabled:r,onChange:i,dotClassName:a,id:h,...c}),t&&p.jsx(nr,{size:e,disabled:r,htmlFor:h,className:l,children:t})]})});or.displayName="RadioInput";const Hg=({name:e,required:t=!1,onChange:n,onOptionSelect:o,onRadioChange:r,onPinComplete:i,options:s=[]})=>{const[a,l,c]=Cc.useField(e),d=m.useMemo(()=>!!(l.error&&(l.touched||l.value)),[l.error,l.touched,l.value]),u=m.useMemo(()=>d?l.error:void 0,[d,l.error]),h=m.useMemo(()=>a.name||e,[a.name,e]),f=m.useMemo(()=>({required:t||void 0,"aria-required":t||void 0,"aria-invalid":d||void 0,"aria-describedby":d?`${h}-error`:void 0}),[t,d,h]),v=m.useCallback(x=>{n?n(x):a.onChange(x)},[n,a]),y=m.useCallback(x=>{n?n(x):a.onChange(x)},[n,a]),b=m.useCallback(x=>{c.setValue(x.target.checked)},[c]),w=m.useCallback(x=>{a.onChange(x);const P=s.find(V=>String(V.value)===x.target.value);P&&o?.(P)},[a,s,o]),T=m.useCallback((x,P)=>{const V=x.target.value,$=typeof P=="number"?Number(V):V;c.setValue($),r?.(x)},[c,r]),C=m.useCallback(x=>{c.setValue(x)},[c]),M=m.useCallback(x=>{c.setValue(x),i?.(x)},[c,i]);return{field:a,meta:l,helpers:c,hasError:d,errorMessage:u,inputId:h,ariaProps:f,handleStandardChange:v,handleTextAreaChange:y,handleCheckboxChange:b,handleSelectChange:w,handleRadioChange:T,handlePinChange:C,handlePinComplete:M}},jg=["text","email","number","tel","url","date","datetime-local","time"],Gg=g.div`
1174
1115
  display: flex;
1175
1116
  flex-direction: column;
1176
1117
  gap: 0.75rem;
1177
- `,du=({type:e,inputId:t,name:n,size:r,hasError:o,disabled:i,placeholder:s,inputClassName:a,fieldValue:l,ariaProps:c,options:d=[],onSelectChange:u,checkboxLabel:h,onCheckboxChange:f,radioName:m,onRadioChange:y,pinLength:x=6,pinType:v="number",onPinChange:T,onPinComplete:w,onStandardChange:M,onTextAreaChange:b,leftIcon:$,rightIcon:k,iconSize:E,iconColor:D,additionalProps:A={}})=>{switch(e){case"textarea":return g.jsx(fi,{id:t,name:n,className:a,hasError:o,disabled:i,value:l??"",size:r,placeholder:s,onChange:b,...A,...c});case"select":return g.jsx(mr,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,value:l??"",onChange:u,options:d,placeholder:s||"Selecciona una opción",...A,...c});case"checkbox":return g.jsx(Sn,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,checked:!!l,label:h,onChange:f,...A,...c});case"radio":{const I=d;return g.jsx(Qv,{children:I.map(N=>g.jsx(wi,{name:m||n,value:N.value,label:N.label,size:r,hasError:o,disabled:i,checked:l===N.value,onChange:j=>y?.(j,N.value),...c},N.value))})}case"pin":return g.jsx(gi,{length:x,type:v,size:r,hasError:o,onChange:T,onComplete:w,...A,...c});case"password":{const{...I}=A;return g.jsx(eu,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,leftIcon:$,iconSize:E,iconColor:D,onChange:M,...I,...c})}case"search":return g.jsx(hi,{className:a,size:r,placeholder:s,leftIcon:$,rightIcon:k,iconSize:E,iconColor:D,onSearch:A.onSearch,...c});default:return g.jsx(di,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,type:Jv.includes(e)?e:"text",leftIcon:$,rightIcon:k,iconSize:E,iconColor:D,value:l??"",onChange:M,...A,...c})}};du.displayName="FieldRenderer";const e1=P.div`
1118
+ `,cl=({type:e,inputId:t,name:n,size:o,hasError:r,disabled:i,placeholder:s,inputClassName:a,fieldValue:l,ariaProps:c,options:d=[],onSelectChange:u,checkboxLabel:h,onCheckboxChange:f,radioName:v,onRadioChange:y,pinLength:b=6,pinType:w="number",onPinChange:T,onPinComplete:C,onStandardChange:M,onTextAreaChange:x,leftIcon:P,rightIcon:V,iconSize:$,iconColor:F,additionalProps:D={}})=>{switch(e){case"textarea":return p.jsx(Xo,{id:t,name:n,className:a,hasError:r,disabled:i,value:l??"",size:o,placeholder:s,onChange:x,...D,...c});case"select":return p.jsx(gn,{id:t,name:n,className:a,hasError:r,disabled:i,size:o,value:l??"",onChange:u,options:d,placeholder:s||"Selecciona una opción",...D,...c});case"checkbox":return p.jsx(Nt,{id:t,name:n,className:a,hasError:r,disabled:i,size:o,checked:!!l,label:h,onChange:f,...D,...c});case"radio":{const _=d;return p.jsx(Gg,{children:_.map(N=>p.jsx(or,{name:v||n,value:N.value,label:N.label,size:o,hasError:r,disabled:i,checked:l===N.value,onChange:O=>y?.(O,N.value),...c},N.value))})}case"pin":return p.jsx(er,{length:b,type:w,size:o,hasError:r,onChange:T,onComplete:C,...D,...c});case"password":{const{..._}=D;return p.jsx(Ja,{id:t,name:n,className:a,hasError:r,disabled:i,size:o,placeholder:s,leftIcon:P,iconSize:$,iconColor:F,onChange:M,..._,...c})}case"search":return p.jsx(Zo,{className:a,size:o,placeholder:s,leftIcon:P,rightIcon:V,iconSize:$,iconColor:F,onSearch:D.onSearch,...c});default:return p.jsx(Yo,{id:t,name:n,className:a,hasError:r,disabled:i,size:o,placeholder:s,type:jg.includes(e)?e:"text",leftIcon:P,rightIcon:V,iconSize:$,iconColor:F,value:l??"",onChange:M,...D,...c})}};cl.displayName="FieldRenderer";const Ug=g.div`
1178
1119
  display: flex;
1179
1120
  flex-direction: column;
1180
1121
  gap: 0.5rem;
1181
1122
  width: 100%;
1182
- `,t1=p.memo(({inputId:e,label:t,size:n,required:r,disabled:o,hasError:i,errorMessage:s,isCheckbox:a=!1,className:l,labelClassName:c,messageErrorClassName:d,children:u})=>g.jsxs(e1,{className:l,children:[t&&!a&&g.jsx(fr,{htmlFor:e,size:n,required:r,disabled:o,className:c,children:t}),u,i&&s&&g.jsx(ui,{id:`${e}-error`,size:n,className:d,children:s})]})),n1=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:c,radioName:d,pinLength:u=6,pinType:h="number",rows:f=4,className:m,inputClassName:y,labelClassName:x,messageErrorClassName:v,leftIcon:T,rightIcon:w,iconSize:M,iconColor:b,onOptionSelect:$,onRadioChange:k,onPinComplete:E,onChange:D,...A})=>{const{field:I,hasError:N,errorMessage:j,inputId:G,ariaProps:X,handleStandardChange:O,handleTextAreaChange:R,handleCheckboxChange:W,handleSelectChange:q,handleRadioChange:Z,handlePinChange:de,handlePinComplete:le}=Zv({name:t,required:a,onChange:D,onOptionSelect:$,onRadioChange:k,onPinComplete:E,options:l}),H=e?.toString?.()||G;return g.jsx(t1,{inputId:H,label:n,size:o,required:a,disabled:s,hasError:N,errorMessage:j,isCheckbox:r==="checkbox",className:m,labelClassName:x,messageErrorClassName:v,children:g.jsx(du,{type:r,inputId:H,name:t,size:o,hasError:N,disabled:s,placeholder:i,inputClassName:y,fieldValue:I.value,ariaProps:X,options:l,onSelectChange:q,checkboxLabel:c,onCheckboxChange:W,radioName:d,onRadioChange:Z,pinLength:u,pinType:h,rows:f,onPinChange:de,onPinComplete:le,onStandardChange:O,onTextAreaChange:R,leftIcon:T,rightIcon:w,iconSize:M,iconColor:b,additionalProps:A})})},fu={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},bi={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},r1={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"}}},hu={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"}},o1=P(Ke.div)`
1123
+ `,Kg=m.memo(({inputId:e,label:t,size:n,required:o,disabled:r,hasError:i,errorMessage:s,isCheckbox:a=!1,className:l,labelClassName:c,messageErrorClassName:d,children:u})=>p.jsxs(Ug,{className:l,children:[t&&!a&&p.jsx(hn,{htmlFor:e,size:n,required:o,disabled:r,className:c,children:t}),u,i&&s&&p.jsx(qo,{id:`${e}-error`,size:n,className:d,children:s})]})),Wg=({id:e,name:t,label:n,type:o="text",size:r="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:c,radioName:d,pinLength:u=6,pinType:h="number",rows:f=4,className:v,inputClassName:y,labelClassName:b,messageErrorClassName:w,leftIcon:T,rightIcon:C,iconSize:M,iconColor:x,onOptionSelect:P,onRadioChange:V,onPinComplete:$,onChange:F,...D})=>{const{field:_,hasError:N,errorMessage:O,inputId:j,ariaProps:K,handleStandardChange:R,handleTextAreaChange:L,handleCheckboxChange:G,handleSelectChange:oe,handleRadioChange:Q,handlePinChange:Se,handlePinComplete:mt}=Hg({name:t,required:a,onChange:F,onOptionSelect:P,onRadioChange:V,onPinComplete:$,options:l}),z=e?.toString?.()||j;return p.jsx(Kg,{inputId:z,label:n,size:r,required:a,disabled:s,hasError:N,errorMessage:O,isCheckbox:o==="checkbox",className:v,labelClassName:b,messageErrorClassName:w,children:p.jsx(cl,{type:o,inputId:z,name:t,size:r,hasError:N,disabled:s,placeholder:i,inputClassName:y,fieldValue:_.value,ariaProps:K,options:l,onSelectChange:oe,checkboxLabel:c,onCheckboxChange:G,radioName:d,onRadioChange:Q,pinLength:u,pinType:h,rows:f,onPinChange:Se,onPinComplete:mt,onStandardChange:R,onTextAreaChange:L,leftIcon:T,rightIcon:C,iconSize:M,iconColor:x,additionalProps:D})})},ul={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},rr={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},qg={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"}}},dl={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"}},Yg=g(Fe.div)`
1183
1124
  position: fixed;
1184
1125
  inset: 0;
1185
1126
  z-index: 50;
@@ -1193,7 +1134,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1193
1134
  @media (max-width: 768px) {
1194
1135
  padding: 0.5rem;
1195
1136
  }
1196
- `,i1=P(Ke.div)`
1137
+ `,Xg=g(Fe.div)`
1197
1138
  position: relative;
1198
1139
  display: flex;
1199
1140
  flex-direction: column;
@@ -1220,7 +1161,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1220
1161
  outline: none;
1221
1162
  box-shadow: var(--shadow-hover-black-card);
1222
1163
  }
1223
- `,s1=P.button`
1164
+ `,Zg=g.button`
1224
1165
  position: absolute;
1225
1166
  top: 1rem;
1226
1167
  right: 1rem;
@@ -1239,7 +1180,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1239
1180
  transform: scale(1.1);
1240
1181
  outline: none;
1241
1182
  }
1242
- `,a1=e=>{const t=p.useRef(null),n=p.useRef(null);return p.useEffect(()=>{if(!e)return;n.current=document.activeElement;const r=t.current,o=()=>{r&&(r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),r.focus())},i=window.setTimeout(o,0),s=l=>{const c=["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(l.querySelectorAll(c.join(","))).filter(d=>!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length))},a=l=>{if(l.key!=="Tab"||!r)return;const c=s(r);if(c.length===0){l.preventDefault(),r.focus();return}const d=c[0],u=c[c.length-1],h=document.activeElement;!l.shiftKey&&h===u?(l.preventDefault(),d.focus()):l.shiftKey&&h===d&&(l.preventDefault(),u.focus())};return document.addEventListener("keydown",a),()=>{window.clearTimeout(i),document.removeEventListener("keydown",a),n.current&&n.current.focus()}},[e]),t},l1=(e,t,n=!0)=>{p.useEffect(()=>{if(!e||!n)return;const r=o=>{o.key==="Escape"&&t()};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e,t,n])},c1=e=>{p.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])},pu=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:i=!1,size:s="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:c,ariaLabelledBy:d,ariaDescribedBy:u})=>{const h=a1(e);l1(e,t,l),c1(e);const f=y=>{o&&y.target===y.currentTarget&&t()},m=g.jsx(gn,{children:e&&g.jsx(o1,{...bi,onClick:f,children:g.jsxs(i1,{...fu,ref:h,$size:s,$fullScreen:a,className:r,onClick:y=>y.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":c,"aria-labelledby":c?void 0:d,"aria-describedby":u,children:[i&&g.jsx(s1,{className:`${pr} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:g.jsx(Y,{component:Zc,size:"sm"})}),n]})})});return typeof document>"u"?m:Ji.createPortal(m,document.body)},u1=P.div`
1183
+ `,Jg=e=>{const t=m.useRef(null),n=m.useRef(null);return m.useEffect(()=>{if(!e)return;n.current=document.activeElement;const o=t.current,r=()=>{o&&(o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),o.focus())},i=window.setTimeout(r,0),s=l=>{const c=["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(l.querySelectorAll(c.join(","))).filter(d=>!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length))},a=l=>{if(l.key!=="Tab"||!o)return;const c=s(o);if(c.length===0){l.preventDefault(),o.focus();return}const d=c[0],u=c[c.length-1],h=document.activeElement;!l.shiftKey&&h===u?(l.preventDefault(),d.focus()):l.shiftKey&&h===d&&(l.preventDefault(),u.focus())};return document.addEventListener("keydown",a),()=>{window.clearTimeout(i),document.removeEventListener("keydown",a),n.current&&n.current.focus()}},[e]),t},Qg=(e,t,n=!0)=>{m.useEffect(()=>{if(!e||!n)return;const o=r=>{r.key==="Escape"&&t()};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e,t,n])},e0=e=>{m.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])},fl=({isOpen:e,onClose:t,children:n,className:o,closeOnBackdropClick:r=!0,showCloseButton:i=!1,size:s="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:c,ariaLabelledBy:d,ariaDescribedBy:u})=>{const h=Jg(e);Qg(e,t,l),e0(e);const f=y=>{r&&y.target===y.currentTarget&&t()},v=p.jsx(At,{children:e&&p.jsx(Yg,{...rr,onClick:f,children:p.jsxs(Xg,{...ul,ref:h,$size:s,$fullScreen:a,className:o,onClick:y=>y.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":c,"aria-labelledby":c?void 0:d,"aria-describedby":u,children:[i&&p.jsx(Zg,{className:`${pn} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:p.jsx(H,{component:Ya,size:"sm"})}),n]})})});return typeof document>"u"?v:_r.createPortal(v,document.body)},t0=g.div`
1243
1184
  display: flex;
1244
1185
  align-items: center;
1245
1186
  justify-content: space-between;
@@ -1272,7 +1213,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1272
1213
  flex-shrink: 0;
1273
1214
  margin-left: auto;
1274
1215
  }
1275
- `,mu=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>g.jsx(u1,{$showDivider:e,$variant:t,className:r,...o,children:n}),d1=P.div`
1216
+ `,hl=({showDivider:e=!1,variant:t="default",children:n,className:o,...r})=>p.jsx(t0,{$showDivider:e,$variant:t,className:o,...r,children:n}),n0=g.div`
1276
1217
  position: relative;
1277
1218
  display: flex;
1278
1219
  flex-direction: column;
@@ -1285,7 +1226,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1285
1226
  ${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
1286
1227
 
1287
1228
  ${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
1288
- `,gu=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...i})=>g.jsx(d1,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...i,children:e}),f1=P.div`
1229
+ `,ml=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:o=!1,className:r,...i})=>p.jsx(n0,{$padded:t,$showTopDivider:n,$showBottomDivider:o,className:r,...i,children:e}),o0=g.div`
1289
1230
  display: flex;
1290
1231
  align-items: center;
1291
1232
  width: 100%;
@@ -1301,40 +1242,40 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1301
1242
  bottom: 0;
1302
1243
  background: var(--color-main-white);
1303
1244
  `}
1304
- `,yu=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>g.jsx(f1,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),h1=({isOpen:e,onAccept:t,onCancel:n,title:r,subtitle:o,content:i,bodyFooter:s,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:l="Accept",cancelLabel:c="Cancel",size:d="md",fullScreen:u=!1,showCloseButton:h=!0,closeOnBackdropClick:f=!1,containerClassName:m,headerClassName:y,bodyClassName:x,footerClassName:v,initiallyConfirmed:T=!1,onConfirmChange:w})=>{const[M,b]=p.useState(T);p.useEffect(()=>{e||b(T)},[e,T]);const $=k=>{b(k),w?.(k)};return g.jsxs(pu,{isOpen:e,onClose:n,size:d,fullScreen:u,showCloseButton:h,closeOnBackdropClick:f,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${m} !h-fit !max-w-[60rem]`,children:[g.jsx(mu,{showDivider:!0,className:y,children:g.jsx(zs,{id:"tac-title",size:20,children:r})}),g.jsxs(gu,{padded:!0,showBottomDivider:!0,className:x,children:[o&&g.jsx(Ge,{id:"tac-subtitle",size:16,children:o}),i,s]}),g.jsxs(yu,{showDivider:!0,align:"space-between",className:v,children:[g.jsx(Sn,{label:a,checked:M,onChange:k=>$(k.target.checked)}),g.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[g.jsx(Kt,{variant:"secondary",onClick:n,children:c}),g.jsx(Kt,{variant:"primary",onClick:t,disabled:!M,children:l})]})]})]})},p1=If`
1245
+ `,pl=({align:e="end",showDivider:t=!1,gap:n=8,sticky:o=!1,children:r,className:i,...s})=>p.jsx(o0,{$align:e,$showDivider:t,$gap:n,$sticky:o,className:i,...s,children:r}),r0=({isOpen:e,onAccept:t,onCancel:n,title:o,subtitle:r,content:i,bodyFooter:s,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:l="Accept",cancelLabel:c="Cancel",size:d="md",fullScreen:u=!1,showCloseButton:h=!0,closeOnBackdropClick:f=!1,containerClassName:v,headerClassName:y,bodyClassName:b,footerClassName:w,initiallyConfirmed:T=!1,onConfirmChange:C})=>{const[M,x]=m.useState(T);m.useEffect(()=>{e||x(T)},[e,T]);const P=V=>{x(V),C?.(V)};return p.jsxs(fl,{isOpen:e,onClose:n,size:d,fullScreen:u,showCloseButton:h,closeOnBackdropClick:f,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${v} !h-fit !max-w-[60rem]`,children:[p.jsx(hl,{showDivider:!0,className:y,children:p.jsx(Nr,{id:"tac-title",size:20,children:o})}),p.jsxs(ml,{padded:!0,showBottomDivider:!0,className:b,children:[r&&p.jsx(Ve,{id:"tac-subtitle",size:16,children:r}),i,s]}),p.jsxs(pl,{showDivider:!0,align:"space-between",className:w,children:[p.jsx(Nt,{label:a,checked:M,onChange:V=>P(V.target.checked)}),p.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[p.jsx(dt,{variant:"secondary",onClick:n,children:c}),p.jsx(dt,{variant:"primary",onClick:t,disabled:!M,children:l})]})]})]})},i0=g.keyframes`
1305
1246
  from {
1306
1247
  opacity: 0;
1307
1248
  }
1308
1249
  to {
1309
1250
  opacity: 1;
1310
1251
  }
1311
- `,m1=P.div`
1252
+ `,s0=g.div`
1312
1253
  position: relative;
1313
1254
  display: inline-block;
1314
- `,g1=P.div`
1255
+ `,a0=g.div`
1315
1256
  display: inline-block;
1316
1257
  cursor: pointer;
1317
- `,y1=e=>{switch(e){case"top":return S`
1258
+ `,l0=e=>{switch(e){case"top":return g.css`
1318
1259
  bottom: 100%;
1319
1260
  left: 50%;
1320
1261
  transform: translateX(-50%);
1321
1262
  margin-bottom: 0.5rem;
1322
- `;case"bottom":return S`
1263
+ `;case"bottom":return g.css`
1323
1264
  top: 100%;
1324
1265
  left: 50%;
1325
1266
  transform: translateX(-50%);
1326
1267
  margin-top: 0.5rem;
1327
- `;case"left":return S`
1268
+ `;case"left":return g.css`
1328
1269
  right: 100%;
1329
1270
  top: 50%;
1330
1271
  transform: translateY(-50%);
1331
1272
  margin-right: 0.5rem;
1332
- `;case"right":return S`
1273
+ `;case"right":return g.css`
1333
1274
  left: 100%;
1334
1275
  top: 50%;
1335
1276
  transform: translateY(-50%);
1336
1277
  margin-left: 0.5rem;
1337
- `;default:return S``}},v1=P.div`
1278
+ `;default:return g.css``}},c0=g.div`
1338
1279
  position: absolute;
1339
1280
  z-index: 9999;
1340
1281
  pointer-events: auto;
@@ -1351,40 +1292,40 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1351
1292
  word-wrap: break-word;
1352
1293
 
1353
1294
  /* Animation */
1354
- animation: ${p1} 0.2s ease-in-out;
1295
+ animation: ${i0} 0.2s ease-in-out;
1355
1296
 
1356
1297
  /* Position based on placement */
1357
- ${({$placement:e})=>y1(e)}
1358
- `,w1=e=>{switch(e){case"top":return S`
1298
+ ${({$placement:e})=>l0(e)}
1299
+ `,u0=e=>{switch(e){case"top":return g.css`
1359
1300
  bottom: -0.25rem;
1360
1301
  left: 50%;
1361
1302
  transform: translateX(-50%) rotate(45deg);
1362
- `;case"bottom":return S`
1303
+ `;case"bottom":return g.css`
1363
1304
  top: -0.25rem;
1364
1305
  left: 50%;
1365
1306
  transform: translateX(-50%) rotate(45deg);
1366
- `;case"left":return S`
1307
+ `;case"left":return g.css`
1367
1308
  right: -0.25rem;
1368
1309
  top: 50%;
1369
1310
  transform: translateY(-50%) rotate(45deg);
1370
- `;case"right":return S`
1311
+ `;case"right":return g.css`
1371
1312
  left: -0.25rem;
1372
1313
  top: 50%;
1373
1314
  transform: translateY(-50%) rotate(45deg);
1374
- `;default:return S``}},b1=P.div`
1315
+ `;default:return g.css``}},d0=g.div`
1375
1316
  position: absolute;
1376
1317
  width: 0.5rem;
1377
1318
  height: 0.5rem;
1378
1319
  background-color: var(--color-dark-600);
1379
1320
 
1380
- ${({$placement:e})=>w1(e)}
1381
- `,vu=({content:e,children:t,placement:n="bottom",trigger:r="hover",className:o="",arrowClassName:i="",delay:s=200,showArrow:a=!0})=>{const[l,c]=p.useState(!1),d=p.useRef(null),u=p.useRef(null),h=p.useRef(null);p.useEffect(()=>{if(r!=="click"||!l)return;const v=T=>{u.current&&!u.current.contains(T.target)&&h.current&&!h.current.contains(T.target)&&c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[l,r]),p.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const x=r==="hover"?{onMouseEnter:()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>c(!0),s)},onMouseLeave:()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>c(!1),100)}}:{onClick:()=>{c(v=>!v)}};return g.jsxs(m1,{children:[g.jsx(g1,{ref:h,...x,children:t}),l&&g.jsxs(v1,{ref:u,$placement:n,className:o,role:"tooltip","aria-hidden":!l,children:[e,a&&g.jsx(b1,{$placement:n,className:i})]})]})};vu.displayName="Tooltip";const xi=p.createContext(void 0),wu=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(!1);return g.jsx(xi.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},Si=()=>{const e=p.useContext(xi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},Ci=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),x1=S`
1321
+ ${({$placement:e})=>u0(e)}
1322
+ `,gl=({content:e,children:t,placement:n="bottom",trigger:o="hover",className:r="",arrowClassName:i="",delay:s=200,showArrow:a=!0})=>{const[l,c]=m.useState(!1),d=m.useRef(null),u=m.useRef(null),h=m.useRef(null);m.useEffect(()=>{if(o!=="click"||!l)return;const w=T=>{u.current&&!u.current.contains(T.target)&&h.current&&!h.current.contains(T.target)&&c(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[l,o]),m.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const b=o==="hover"?{onMouseEnter:()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>c(!0),s)},onMouseLeave:()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>c(!1),100)}}:{onClick:()=>{c(w=>!w)}};return p.jsxs(s0,{children:[p.jsx(a0,{ref:h,...b,children:t}),l&&p.jsxs(c0,{ref:u,$placement:n,className:r,role:"tooltip","aria-hidden":!l,children:[e,a&&p.jsx(d0,{$placement:n,className:i})]})]})};gl.displayName="Tooltip";const ir=m.createContext(void 0),vl=({children:e})=>{const[t,n]=m.useState(!1),[o,r]=m.useState(!1);return p.jsx(ir.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:o,setIsMobileOpen:r},children:e})},sr=()=>{const e=m.useContext(ir);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},ar=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),f0=g.css`
1382
1323
  display: flex;
1383
1324
  align-items: center;
1384
1325
  justify-content: center;
1385
1326
  flex-shrink: 0;
1386
1327
  user-select: none;
1387
- `,bu=`
1328
+ `,yl=`
1388
1329
  width: 100%;
1389
1330
  display: flex;
1390
1331
  align-items: center;
@@ -1401,8 +1342,8 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1401
1342
  outline-color: var(--color-main-blue-primary);
1402
1343
  outline-offset: -2px;
1403
1344
  }
1404
- `,S1=P.button`
1405
- ${bu}
1345
+ `,h0=g.button`
1346
+ ${yl}
1406
1347
 
1407
1348
  // Level-based padding
1408
1349
  padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
@@ -1421,8 +1362,8 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1421
1362
  }
1422
1363
 
1423
1364
  ${({$collapsed:e})=>e?"justify-content: center;":""}
1424
- `,C1=P.button`
1425
- ${bu}
1365
+ `,m0=g.button`
1366
+ ${yl}
1426
1367
 
1427
1368
  // Level-based padding
1428
1369
  padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
@@ -1441,36 +1382,36 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1441
1382
  }
1442
1383
 
1443
1384
  ${({$collapsed:e})=>e?"justify-content: center;":""}
1444
- `,T1=P.span`
1385
+ `,p0=g.span`
1445
1386
  display: inline-flex;
1446
1387
  align-items: center;
1447
1388
  gap: 0.75rem;
1448
1389
  min-width: 0;
1449
- `,k1=P(Ge)`
1390
+ `,g0=g(Ve)`
1450
1391
  font-weight: ${({$level:e})=>e===0?600:500};
1451
1392
  color: var(--color-main-blue-primary);
1452
1393
  white-space: nowrap;
1453
1394
  overflow: hidden;
1454
1395
  text-overflow: ellipsis;
1455
- `,P1=P(Ke.div)`
1396
+ `,v0=g(Fe.div)`
1456
1397
  background-color: transparent;
1457
1398
  overflow: hidden;
1458
1399
  will-change: height, opacity, transform;
1459
- `,$1=P.div`
1400
+ `,y0=g.div`
1460
1401
  width: 100%;
1461
1402
  ${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
1462
- `,E1=P.span`
1403
+ `,w0=g.span`
1463
1404
  width: 0.625rem;
1464
1405
  height: 0.125rem;
1465
1406
  background: var(--color-main-blue-primary);
1466
1407
  border-radius: 1px;
1467
1408
  flex: 0 0 auto;
1468
- `,M1=P.div`
1469
- ${x1}
1409
+ `,b0=g.div`
1410
+ ${f0}
1470
1411
  transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
1471
1412
  pointer-events: none;
1472
1413
  transition: transform 0.3s ease-out;
1473
- `,xu=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[i,s]=p.useState(!1),{isCollapsed:a,setIsMobileOpen:l,setIsCollapsed:c}=Si(),d=p.useMemo(()=>(e.children||[]).filter(w=>Ci(t,w.permissions)),[e.children,t]);if(!p.useMemo(()=>Ci(t,e.permissions),[t,e.permissions]))return null;const h=d.length>0,f=e.href||e.path||"",m=!!(f&&r&&r.startsWith(f)),y=()=>{a&&c(!1),s(w=>!w)},x=()=>{a&&c(!1),e.href&&o?.(e.href)},v=async()=>{if(a&&c(!1),!e.path)return;const w=e.target||"_blank";try{typeof window<"u"&&(w==="_blank"?window.open(e.path,"_blank","noopener,noreferrer"):window.location.href=e.path),l&&l(!1)}catch(M){console.error("Error al navegar a microservicio:",M)}},T=()=>g.jsxs(g.Fragment,{children:[g.jsxs(T1,{children:[n>0&&!a&&g.jsx(E1,{}),e.icon&&g.jsx(Y,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&g.jsx(k1,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&h&&g.jsx(M1,{$disabled:a,$open:i,children:g.jsx(Y,{component:Iy,size:"sm",color:"var(--color-main-blue-primary)"})})]});return g.jsxs($1,{$level:n,children:[e.href&&!e.path&&!h?g.jsx(S1,{type:"button",onClick:x,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:T()}):g.jsx(C1,{type:"button",onClick:h?y:e.path?v:x,$level:n,$collapsed:a,$active:m,$expanded:i&&h,title:a?e.label:"",children:T()}),g.jsx(gn,{initial:!1,children:!a&&i&&h&&g.jsx(P1,{$level:n+1,...hu,children:d.map(w=>g.jsx(xu,{item:w,userRoles:t,level:n+1,onNavigate:o,activePath:r},w.id))})})]})},Su=P(Ke.div)`
1414
+ `,wl=({item:e,userRoles:t,level:n=0,activePath:o,onNavigate:r})=>{const[i,s]=m.useState(!1),{isCollapsed:a,setIsMobileOpen:l,setIsCollapsed:c}=sr(),d=m.useMemo(()=>(e.children||[]).filter(C=>ar(t,C.permissions)),[e.children,t]);if(!m.useMemo(()=>ar(t,e.permissions),[t,e.permissions]))return null;const h=d.length>0,f=e.href||e.path||"",v=!!(f&&o&&o.startsWith(f)),y=()=>{a&&c(!1),s(C=>!C)},b=()=>{a&&c(!1),e.href&&r?.(e.href)},w=async()=>{if(a&&c(!1),!e.path)return;const C=e.target||"_blank";try{typeof window<"u"&&(C==="_blank"?window.open(e.path,"_blank","noopener,noreferrer"):window.location.href=e.path),l&&l(!1)}catch(M){console.error("Error al navegar a microservicio:",M)}},T=()=>p.jsxs(p.Fragment,{children:[p.jsxs(p0,{children:[n>0&&!a&&p.jsx(w0,{}),e.icon&&p.jsx(H,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&p.jsx(g0,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&h&&p.jsx(b0,{$disabled:a,$open:i,children:p.jsx(H,{component:$p,size:"sm",color:"var(--color-main-blue-primary)"})})]});return p.jsxs(y0,{$level:n,children:[e.href&&!e.path&&!h?p.jsx(h0,{type:"button",onClick:b,$level:n,$collapsed:a,$active:v,title:a?e.label:"",children:T()}):p.jsx(m0,{type:"button",onClick:h?y:e.path?w:b,$level:n,$collapsed:a,$active:v,$expanded:i&&h,title:a?e.label:"",children:T()}),p.jsx(At,{initial:!1,children:!a&&i&&h&&p.jsx(v0,{$level:n+1,...dl,children:d.map(C=>p.jsx(wl,{item:C,userRoles:t,level:n+1,onNavigate:r,activePath:o},C.id))})})]})},bl=g(Fe.div)`
1474
1415
  position: fixed;
1475
1416
  inset: 0;
1476
1417
  background: rgba(0, 0, 0, 0.5);
@@ -1479,7 +1420,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1479
1420
  @media (max-width: 767px) {
1480
1421
  display: block;
1481
1422
  }
1482
- `,Cu=P.aside`
1423
+ `,xl=g.aside`
1483
1424
  position: fixed;
1484
1425
  left: 0;
1485
1426
  top: 0;
@@ -1498,7 +1439,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1498
1439
  @media (min-width: 768px) {
1499
1440
  transform: translateX(0);
1500
1441
  }
1501
- `,Tu=P.div`
1442
+ `,Sl=g.div`
1502
1443
  display: flex;
1503
1444
  align-items: center;
1504
1445
  justify-content: space-between;
@@ -1506,11 +1447,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1506
1447
  padding: 1rem;
1507
1448
 
1508
1449
  ${({$collapsed:e})=>e?"flex-direction: column":""};
1509
- `,ku=P.div`
1450
+ `,Cl=g.div`
1510
1451
  display: flex;
1511
1452
  align-items: center;
1512
1453
  gap: 0.5rem;
1513
- `,Pu=P.nav`
1454
+ `,Tl=g.nav`
1514
1455
  display: flex;
1515
1456
  flex-direction: column;
1516
1457
  justify-content: flex-start;
@@ -1518,7 +1459,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1518
1459
  flex: 1;
1519
1460
  overflow-y: auto;
1520
1461
  padding: 0.25rem 0;
1521
- `,$u=P.button`
1462
+ `,$l=g.button`
1522
1463
  display: flex;
1523
1464
  align-items: center;
1524
1465
  justify-content: center;
@@ -1544,7 +1485,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1544
1485
  @media (max-width: 767px) {
1545
1486
  display: none;
1546
1487
  }
1547
- `,Eu=P.button`
1488
+ `,Pl=g.button`
1548
1489
  position: fixed;
1549
1490
  top: 0.5rem;
1550
1491
  left: 1rem;
@@ -1555,7 +1496,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1555
1496
  @media (min-width: 768px) {
1556
1497
  display: none;
1557
1498
  }
1558
- `,Ti=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:i=()=>{}})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:c}=Si(),d=u=>{i(u),typeof window<"u"&&window.innerWidth<768&&c(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(gn,{children:l&&g.jsx(Su,{...bi,onClick:()=>c(!1)})}),g.jsxs(Cu,{$collapsed:l?!1:s,$open:l,children:[g.jsxs(Tu,{$collapsed:s,children:[g.jsx(ku,{children:s?o:r}),g.jsx($u,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:g.jsx(Y,{component:Jc,size:"md",color:"var(--color-main-blue-primary)"})})]}),g.jsx(Pu,{children:e.map(u=>g.jsx(xu,{item:u,userRoles:t,onNavigate:d,activePath:n},u.id))})]}),g.jsx(Eu,{onClick:()=>{c(!0),a(!1)},$hidden:l,children:g.jsx(Y,{component:Jc,size:30})})]})};Ti.displayName="Sidebar";const Mu={underlined:S`
1499
+ `,lr=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:o,logoImgCollapsed:r,onNavigate:i=()=>{}})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:c}=sr(),d=u=>{i(u),typeof window<"u"&&window.innerWidth<768&&c(!1)};return p.jsxs(p.Fragment,{children:[p.jsx(At,{children:l&&p.jsx(bl,{...rr,onClick:()=>c(!1)})}),p.jsxs(xl,{$collapsed:l?!1:s,$open:l,children:[p.jsxs(Sl,{$collapsed:s,children:[p.jsx(Cl,{children:s?r:o}),p.jsx($l,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:p.jsx(H,{component:Xa,size:"md",color:"var(--color-main-blue-primary)"})})]}),p.jsx(Tl,{children:e.map(u=>p.jsx(wl,{item:u,userRoles:t,onNavigate:d,activePath:n},u.id))})]}),p.jsx(Pl,{onClick:()=>{c(!0),a(!1)},$hidden:l,children:p.jsx(H,{component:Xa,size:30})})]})};lr.displayName="Sidebar";const Ml={underlined:g.css`
1559
1500
  color: var(--color-main-orange-primary);
1560
1501
  text-decoration-thickness: 1px;
1561
1502
  text-underline-offset: 2px;
@@ -1585,7 +1526,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1585
1526
  text-decoration-thickness: 1px;
1586
1527
  text-underline-offset: 2px;
1587
1528
  }
1588
- `,plain:S`
1529
+ `,plain:g.css`
1589
1530
  color: var(--color-main-orange-primary);
1590
1531
  text-decoration: none;
1591
1532
 
@@ -1615,7 +1556,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1615
1556
  text-decoration-thickness: 1px;
1616
1557
  text-underline-offset: 2px;
1617
1558
  }
1618
- `},Au=S`
1559
+ `},kl=g.css`
1619
1560
  color: var(--color-dark-200);
1620
1561
  cursor: not-allowed;
1621
1562
  pointer-events: none;
@@ -1633,16 +1574,16 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1633
1574
  text-decoration: none;
1634
1575
  transform: none;
1635
1576
  }
1636
- `,Du={sm:S`
1577
+ `,Vl={sm:g.css`
1637
1578
  gap: 0.25rem;
1638
- ${F[14]}
1639
- `,md:S`
1579
+ ${E[14]}
1580
+ `,md:g.css`
1640
1581
  gap: 0.5rem;
1641
- ${F[16]}
1642
- `,lg:S`
1582
+ ${E[16]}
1583
+ `,lg:g.css`
1643
1584
  gap: 0.75rem;
1644
- ${F[20]}
1645
- `},A1=P.a`
1585
+ ${E[20]}
1586
+ `},x0=g.a`
1646
1587
  display: inline-flex;
1647
1588
  align-items: center;
1648
1589
  border-radius: 0.25rem;
@@ -1654,22 +1595,22 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1654
1595
 
1655
1596
  cursor: pointer;
1656
1597
 
1657
- ${({$size:e})=>Du[e]}
1658
- ${({$variant:e})=>Mu[e]}
1659
- ${({$disabled:e})=>e&&Au}
1660
- `,D1=P.span`
1598
+ ${({$size:e})=>Vl[e]}
1599
+ ${({$variant:e})=>Ml[e]}
1600
+ ${({$disabled:e})=>e&&kl}
1601
+ `,S0=g.styled.span`
1661
1602
  flex: 1 1 auto;
1662
1603
  min-width: 0;
1663
1604
  max-width: 18ch;
1664
- ${({$truncate:e})=>e&&S`
1605
+ ${({$truncate:e})=>e&&g.css`
1665
1606
  overflow: hidden;
1666
1607
  text-overflow: ellipsis;
1667
1608
  white-space: nowrap;
1668
1609
  `}
1669
- `,Vu=p.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:i,rel:s,className:a,disabled:l=!1,tabIndex:c,leftIcon:d,rightIcon:u,iconSize:h="tn",iconColor:f="currentColor",truncate:m=!1,"aria-label":y,"aria-describedby":x,onClick:v,...T},w)=>{const M=p.useCallback($=>{if(l){$.preventDefault();return}v?.($)},[l,v]),b={href:l?void 0:o,target:i||void 0,rel:s??(i==="_blank"?"noopener noreferrer":void 0),onClick:M,"aria-label":y??r,"aria-describedby":x,"aria-disabled":l,tabIndex:l?-1:c??0,...T};return g.jsxs(A1,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:w,...b,children:[d&&g.jsx(Y,{component:d,size:h,color:f}),g.jsx(D1,{$truncate:m,children:r}),g.jsx(Y,{component:u||Ly,size:t==="lg"?"sm":h,color:f})]})});Vu.displayName="Link";function V1(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function at(e,t){return typeof e=="function"?e(t):e}function Se(e,t){return n=>{t.setState(r=>({...r,[e]:at(n,r[e])}))}}function gr(e){return e instanceof Function}function F1(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function I1(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&r(s)})};return r(e),n}function L(e,t,n){let r=[],o;return i=>{let s;n.key&&n.debug&&(s=Date.now());const a=e(i);if(!(a.length!==r.length||a.some((d,u)=>r[u]!==d)))return o;r=a;let c;if(n.key&&n.debug&&(c=Date.now()),o=t(...a),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const d=Math.round((Date.now()-s)*100)/100,u=Math.round((Date.now()-c)*100)/100,h=u/16,f=(m,y)=>{for(m=String(m);m.length<y;)m=" "+m;return m};console.info(`%c⏱ ${f(u,5)} /${f(d,5)} ms`,`
1610
+ `,El=m.forwardRef(({id:e,size:t="md",variant:n="underlined",children:o,href:r,target:i,rel:s,className:a,disabled:l=!1,tabIndex:c,leftIcon:d,rightIcon:u,iconSize:h="tn",iconColor:f="currentColor",truncate:v=!1,"aria-label":y,"aria-describedby":b,onClick:w,...T},C)=>{const M=m.useCallback(P=>{if(l){P.preventDefault();return}w?.(P)},[l,w]),x={href:l?void 0:r,target:i||void 0,rel:s??(i==="_blank"?"noopener noreferrer":void 0),onClick:M,"aria-label":y??o,"aria-describedby":b,"aria-disabled":l,tabIndex:l?-1:c??0,...T};return p.jsxs(x0,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:C,...x,children:[d&&p.jsx(H,{component:d,size:h,color:f}),p.jsx(S0,{$truncate:v,children:o}),p.jsx(H,{component:u||Mp,size:t==="lg"?"sm":h,color:f})]})});El.displayName="Link";function C0(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function He(e,t){return typeof e=="function"?e(t):e}function de(e,t){return n=>{t.setState(o=>({...o,[e]:He(n,o[e])}))}}function vn(e){return e instanceof Function}function T0(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function $0(e,t){const n=[],o=r=>{r.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&o(s)})};return o(e),n}function A(e,t,n){let o=[],r;return i=>{let s;n.key&&n.debug&&(s=Date.now());const a=e(i);if(!(a.length!==o.length||a.some((d,u)=>o[u]!==d)))return r;o=a;let c;if(n.key&&n.debug&&(c=Date.now()),r=t(...a),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){const d=Math.round((Date.now()-s)*100)/100,u=Math.round((Date.now()-c)*100)/100,h=u/16,f=(v,y)=>{for(v=String(v);v.length<y;)v=" "+v;return v};console.info(`%c⏱ ${f(u,5)} /${f(d,5)} ms`,`
1670
1611
  font-size: .6rem;
1671
1612
  font-weight: bold;
1672
- color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n?.key)}return o}}function _(e,t,n,r){return{debug:()=>{var o;return(o=e?.debugAll)!=null?o:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function R1(e,t,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:L(()=>[e,n,t,i],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),_(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function L1(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(o=(i=a.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof a.header=="string"?a.header:void 0,d;if(a.accessorFn?d=a.accessorFn:l&&(l.includes(".")?d=h=>{let f=h;for(const y of l.split(".")){var m;f=(m=f)==null?void 0:m[y],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${y}" in deeply nested key "${l}" returned undefined.`)}return f}:d=h=>h[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let u={id:`${String(c)}`,accessorFn:d,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:L(()=>[!0],()=>{var h;return[u,...(h=u.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},_(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:L(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=u.columns)!=null&&f.length){let m=u.columns.flatMap(y=>y.getLeafColumns());return h(m)}return[u]},_(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(u,e);return u}const pe="debugHeaders";function Fu(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(i,e)}),i}const _1={createTable:e=>{e.getHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;const a=(i=r?.map(u=>n.find(h=>h.id===u)).filter(Boolean))!=null?i:[],l=(s=o?.map(u=>n.find(h=>h.id===u)).filter(Boolean))!=null?s:[],c=n.filter(u=>!(r!=null&&r.includes(u.id))&&!(o!=null&&o.includes(u.id)));return yr(t,[...a,...c,...l],e)},_(e.options,pe,"getHeaderGroups")),e.getCenterHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),yr(t,n,e,"center")),_(e.options,pe,"getCenterHeaderGroups")),e.getLeftHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return yr(t,i,e,"left")},_(e.options,pe,"getLeftHeaderGroups")),e.getRightHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return yr(t,i,e,"right")},_(e.options,pe,"getRightHeaderGroups")),e.getFooterGroups=L(()=>[e.getHeaderGroups()],t=>[...t].reverse(),_(e.options,pe,"getFooterGroups")),e.getLeftFooterGroups=L(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),_(e.options,pe,"getLeftFooterGroups")),e.getCenterFooterGroups=L(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),_(e.options,pe,"getCenterFooterGroups")),e.getRightFooterGroups=L(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),_(e.options,pe,"getRightFooterGroups")),e.getFlatHeaders=L(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),_(e.options,pe,"getFlatHeaders")),e.getLeftFlatHeaders=L(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),_(e.options,pe,"getLeftFlatHeaders")),e.getCenterFlatHeaders=L(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),_(e.options,pe,"getCenterFlatHeaders")),e.getRightFlatHeaders=L(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),_(e.options,pe,"getRightFlatHeaders")),e.getCenterLeafHeaders=L(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),_(e.options,pe,"getCenterLeafHeaders")),e.getLeftLeafHeaders=L(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),_(e.options,pe,"getLeftLeafHeaders")),e.getRightLeafHeaders=L(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),_(e.options,pe,"getRightLeafHeaders")),e.getLeafHeaders=L(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,s,a,l,c;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(c=r[0])==null?void 0:c.headers)!=null?l:[]].map(d=>d.getLeafHeaders()).flat()},_(e.options,pe,"getLeafHeaders"))}};function yr(e,t,n,r){var o,i;let s=0;const a=function(h,f){f===void 0&&(f=1),s=Math.max(s,f),h.filter(m=>m.getIsVisible()).forEach(m=>{var y;(y=m.columns)!=null&&y.length&&a(m.columns,f+1)},0)};a(e);let l=[];const c=(h,f)=>{const m={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},y=[];h.forEach(x=>{const v=[...y].reverse()[0],T=x.column.depth===m.depth;let w,M=!1;if(T&&x.column.parent?w=x.column.parent:(w=x.column,M=!0),v&&v?.column===w)v.subHeaders.push(x);else{const b=Fu(n,w,{id:[r,f,w.id,x?.id].filter(Boolean).join("_"),isPlaceholder:M,placeholderId:M?`${y.filter($=>$.column===w).length}`:void 0,depth:f,index:y.length});b.subHeaders.push(x),y.push(b)}m.headers.push(x),x.headerGroup=m}),l.push(m),f>0&&c(y,f-1)},d=t.map((h,f)=>Fu(n,h,{depth:s,index:f}));c(d,s-1),l.reverse();const u=h=>h.filter(m=>m.column.getIsVisible()).map(m=>{let y=0,x=0,v=[0];m.subHeaders&&m.subHeaders.length?(v=[],u(m.subHeaders).forEach(w=>{let{colSpan:M,rowSpan:b}=w;y+=M,v.push(b)})):y=1;const T=Math.min(...v);return x=x+T,m.colSpan=y,m.rowSpan=x,{colSpan:y,rowSpan:x}});return u((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const ki=(e,t,n,r,o,i,s)=>{let a={id:t,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,r),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>I1(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const d=c.getParentRow();if(!d)break;l.push(d),c=d}return l.reverse()},getAllCells:L(()=>[e.getAllLeafColumns()],l=>l.map(c=>R1(e,a,c,c.id)),_(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:L(()=>[a.getAllCells()],l=>l.reduce((c,d)=>(c[d.column.id]=d,c),{}),_(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},N1={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Iu=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};Iu.autoRemove=e=>Re(e);const Ru=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Ru.autoRemove=e=>Re(e);const Lu=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};Lu.autoRemove=e=>Re(e);const _u=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};_u.autoRemove=e=>Re(e);const Nu=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});Nu.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Ou=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});Ou.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Bu=(e,t,n)=>e.getValue(t)===n;Bu.autoRemove=e=>Re(e);const zu=(e,t,n)=>e.getValue(t)==n;zu.autoRemove=e=>Re(e);const Pi=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Pi.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const a=i;i=s,s=a}return[i,s]},Pi.autoRemove=e=>Re(e)||Re(e[0])&&Re(e[1]);const Ye={includesString:Iu,includesStringSensitive:Ru,equalsString:Lu,arrIncludes:_u,arrIncludesAll:Nu,arrIncludesSome:Ou,equals:Bu,weakEquals:zu,inNumberRange:Pi};function Re(e){return e==null||e===""}const O1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Se("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);return typeof r=="string"?Ye.includesString:typeof r=="number"?Ye.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Ye.equals:Array.isArray(r)?Ye.arrIncludes:Ye.weakEquals},e.getFilterFn=()=>{var n,r;return gr(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Ye[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r?.find(d=>d.id===e.id),s=at(n,i?i.value:void 0);if(Hu(o,s,e)){var a;return(a=r?.filter(d=>d.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(i){var c;return(c=r?.map(d=>d.id===e.id?l:d))!=null?c:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=at(t,o))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(Hu(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Hu(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const $i={sum:(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),min:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},max:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!F1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},B1={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Se("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);if(typeof r=="number")return $i.sum;if(Object.prototype.toString.call(r)==="[object Date]")return $i.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return gr(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:$i[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function z1(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...r]}const H1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Se("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=L(n=>[Cn(t,n)],n=>n.findIndex(r=>r.id===e.id),_(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=Cn(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Cn(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=L(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const s=[...t],a=[...o];for(;a.length&&s.length;){const l=s.shift(),c=a.findIndex(d=>d.id===l);c>-1&&i.push(a.splice(c,1)[0])}i=[...i,...a]}return z1(i,n,r)},_(e.options,"debugTable","_getOrderColumnsFn"))}},Ei=()=>({left:[],right:[]}),j1={getInitialState:e=>({columnPinning:Ei(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Se("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,s;if(n==="right"){var a,l;return{left:((a=o?.left)!=null?a:[]).filter(u=>!(r!=null&&r.includes(u))),right:[...((l=o?.right)!=null?l:[]).filter(u=>!(r!=null&&r.includes(u))),...r]}}if(n==="left"){var c,d;return{left:[...((c=o?.left)!=null?c:[]).filter(u=>!(r!=null&&r.includes(u))),...r],right:((d=o?.right)!=null?d:[]).filter(u=>!(r!=null&&r.includes(u)))}}return{left:((i=o?.left)!=null?i:[]).filter(u=>!(r!=null&&r.includes(u))),right:((s=o?.right)!=null?s:[]).filter(u=>!(r!=null&&r.includes(u)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,s;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(a=>r?.includes(a)),s=n.some(a=>o?.includes(a));return i?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=L(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},_(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=L(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),_(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=L(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),_(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Ei():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Ei())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=L(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),_(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=L(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),_(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=L(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},_(e.options,"debugColumns","getCenterLeafColumns"))}};function G1(e){return e||(typeof document<"u"?document:null)}const vr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Mi=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),U1={getDefaultColumnDef:()=>vr,getInitialState:e=>({columnSizing:{},columnSizingInfo:Mi(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Se("columnSizing",e),onColumnSizingInfoChange:Se("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:vr.minSize,(r=i??e.columnDef.size)!=null?r:vr.size),(o=e.columnDef.maxSize)!=null?o:vr.maxSize)},e.getStart=L(n=>[n,Cn(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),_(t.options,"debugColumns","getStart")),e.getAfter=L(n=>[n,Cn(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),_(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r?.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),Ai(i)&&i.touches&&i.touches.length>1))return;const s=e.getSize(),a=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[r.id,r.getSize()]],l=Ai(i)?Math.round(i.touches[0].clientX):i.clientX,c={},d=(v,T)=>{typeof T=="number"&&(t.setColumnSizingInfo(w=>{var M,b;const $=t.options.columnResizeDirection==="rtl"?-1:1,k=(T-((M=w?.startOffset)!=null?M:0))*$,E=Math.max(k/((b=w?.startSize)!=null?b:0),-.999999);return w.columnSizingStart.forEach(D=>{let[A,I]=D;c[A]=Math.round(Math.max(I+I*E,0)*100)/100}),{...w,deltaOffset:k,deltaPercentage:E}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(w=>({...w,...c})))},u=v=>d("move",v),h=v=>{d("end",v),t.setColumnSizingInfo(T=>({...T,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=G1(n),m={moveHandler:v=>u(v.clientX),upHandler:v=>{f?.removeEventListener("mousemove",m.moveHandler),f?.removeEventListener("mouseup",m.upHandler),h(v.clientX)}},y={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),u(v.touches[0].clientX),!1),upHandler:v=>{var T;f?.removeEventListener("touchmove",y.moveHandler),f?.removeEventListener("touchend",y.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),h((T=v.touches[0])==null?void 0:T.clientX)}},x=W1()?{passive:!1}:!1;Ai(i)?(f?.addEventListener("touchmove",y.moveHandler,x),f?.addEventListener("touchend",y.upHandler,x)):(f?.addEventListener("mousemove",m.moveHandler,x),f?.addEventListener("mouseup",m.upHandler,x)),t.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Mi():(n=e.initialState.columnSizingInfo)!=null?n:Mi())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let wr=null;function W1(){if(typeof wr=="boolean")return wr;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return wr=e,wr}function Ai(e){return e.type==="touchstart"}const K1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Se("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=L(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),_(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=L(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],_(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>L(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),_(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Cn(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Y1={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},q1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Se("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Ye.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return gr(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Ye[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},X1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Se("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:a,...l}=s;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r?.[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Di=0,Vi=10,Fi=()=>({pageIndex:Di,pageSize:Vi}),Z1={getInitialState:e=>({...e,pagination:{...Fi(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Se("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>at(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Fi():(o=e.initialState.pagination)!=null?o:Fi())},e.setPageIndex=r=>{e.setPagination(o=>{let i=at(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Di:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Di)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?Vi:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Vi)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,at(r,o.pageSize)),s=o.pageSize*o.pageIndex,a=Math.floor(s/i);return{...o,pageIndex:a,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let s=at(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=L(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},_(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Ii=()=>({top:[],bottom:[]}),J1={getInitialState:e=>({rowPinning:Ii(),...e}),getDefaultOptions:e=>({onRowPinningChange:Se("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=o?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...s,e.id,...i]);t.setRowPinning(l=>{var c,d;if(n==="bottom"){var u,h;return{top:((u=l?.top)!=null?u:[]).filter(y=>!(a!=null&&a.has(y))),bottom:[...((h=l?.bottom)!=null?h:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)]}}if(n==="top"){var f,m;return{top:[...((f=l?.top)!=null?f:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)],bottom:((m=l?.bottom)!=null?m:[]).filter(y=>!(a!=null&&a.has(y)))}}return{top:((c=l?.top)!=null?c:[]).filter(y=>!(a!=null&&a.has(y))),bottom:((d=l?.bottom)!=null?d:[]).filter(y=>!(a!=null&&a.has(y)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(a=>r?.includes(a)),s=n.some(a=>o?.includes(a));return i?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:a}=s;return a});return(r=i?.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Ii():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Ii())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(s=>t.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:r}))},e.getTopRows=L(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),_(e.options,"debugRows","getTopRows")),e.getBottomRows=L(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),_(e.options,"debugRows","getBottomRows")),e.getCenterRows=L(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},_(e.options,"debugRows","getCenterRows"))}},Q1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Se("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Ri(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=L(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Li(e,n):{rows:[],flatRows:[],rowsById:{}},_(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=L(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Li(e,n):{rows:[],flatRows:[],rowsById:{}},_(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=L(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Li(e,n):{rows:[],flatRows:[],rowsById:{}},_(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var s;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return Ri(a,e.id,n,(s=r?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return _i(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ni(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ni(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Ri=(e,t,n,r,o)=>{var i;const s=o.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>Ri(e,a.id,n,r,o))};function Li(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,a){return s.map(l=>{var c;const d=_i(l,n);if(d&&(r.push(l),o[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:i(l.subRows)}),d)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function _i(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ni(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(s=>{if(!(i&&!o)&&(s.getCanSelect()&&(_i(s,t)?i=!0:o=!1),s.subRows&&s.subRows.length)){const a=Ni(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Oi=/([0-9]+)/gm,ew=(e,t,n)=>ju(lt(e.getValue(n)).toLowerCase(),lt(t.getValue(n)).toLowerCase()),tw=(e,t,n)=>ju(lt(e.getValue(n)),lt(t.getValue(n))),nw=(e,t,n)=>Bi(lt(e.getValue(n)).toLowerCase(),lt(t.getValue(n)).toLowerCase()),rw=(e,t,n)=>Bi(lt(e.getValue(n)),lt(t.getValue(n))),ow=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},iw=(e,t,n)=>Bi(e.getValue(n),t.getValue(n));function Bi(e,t){return e===t?0:e>t?1:-1}function lt(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function ju(e,t){const n=e.split(Oi).filter(Boolean),r=t.split(Oi).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),a=parseInt(i,10),l=[s,a].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-r.length}const Tn={alphanumeric:ew,alphanumericCaseSensitive:tw,text:nw,textCaseSensitive:rw,datetime:ow,basic:iw},sw=[_1,K1,H1,j1,N1,O1,Y1,q1,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Se("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Tn.datetime;if(typeof i=="string"&&(r=!0,i.split(Oi).length>1))return Tn.alphanumeric}return r?Tn.text:Tn.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return gr(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Tn[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(f=>f.id===e.id),l=s?.findIndex(f=>f.id===e.id);let c=[],d,u=i?n:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?a?d="toggle":d="add":s!=null&&s.length&&l!==s.length-1?d="replace":a?d="toggle":d="replace",d==="toggle"&&(i||o||(d="remove")),d==="add"){var h;c=[...s,{id:e.id,desc:u}],c.splice(0,c.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=s.map(f=>f.id===e.id?{...f,desc:u}:f):d==="remove"?c=s.filter(f=>f.id!==e.id):c=[{id:e.id,desc:u}];return c})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},B1,X1,Z1,J1,Q1,U1];function aw(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...sw,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(o)),{}),s=h=>o.options.mergeOptions?o.options.mergeOptions(i,h):{...i,...h};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const c=[];let d=!1;const u={_features:r,options:{...i,...e},initialState:l,_queue:h=>{c.push(h),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{o.setState(o.initialState)},setOptions:h=>{const f=at(h,o.options);o.options=s(f)},getState:()=>o.options.state,setState:h=>{o.options.onStateChange==null||o.options.onStateChange(h)},_getRowId:(h,f,m)=>{var y;return(y=o.options.getRowId==null?void 0:o.options.getRowId(h,f,m))!=null?y:`${m?[m.id,f].join("."):f}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(h,f)=>{let m=(f?o.getPrePaginationRowModel():o.getRowModel()).rowsById[h];if(!m&&(m=o.getCoreRowModel().rowsById[h],!m))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return m},_getDefaultColumnDef:L(()=>[o.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:m=>{const y=m.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:m=>{var y,x;return(y=(x=m.renderValue())==null||x.toString==null?void 0:x.toString())!=null?y:null},...o._features.reduce((m,y)=>Object.assign(m,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...h}},_(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:L(()=>[o._getColumnDefs()],h=>{const f=function(m,y,x){return x===void 0&&(x=0),m.map(v=>{const T=L1(o,v,x,y),w=v;return T.columns=w.columns?f(w.columns,T,x+1):[],T})};return f(h)},_(e,"debugColumns","getAllColumns")),getAllFlatColumns:L(()=>[o.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),_(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:L(()=>[o.getAllFlatColumns()],h=>h.reduce((f,m)=>(f[m.id]=m,f),{}),_(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:L(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(h,f)=>{let m=h.flatMap(y=>y.getLeafColumns());return f(m)},_(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const f=o._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${h}' does not exist.`),f}};Object.assign(o,u);for(let h=0;h<o._features.length;h++){const f=o._features[h];f==null||f.createTable==null||f.createTable(o)}return o}function lw(){return e=>L(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const a=[];for(let c=0;c<o.length;c++){const d=ki(e,e._getRowId(o[c],c,s),o[c],c,i,void 0,s?.id);if(n.flatRows.push(d),n.rowsById[d.id]=d,a.push(d),e.options.getSubRows){var l;d.originalSubRows=e.options.getSubRows(o[c],c),(l=d.originalSubRows)!=null&&l.length&&(d.subRows=r(d.originalSubRows,i+1,d))}}return a};return n.rows=r(t),n},_(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function cw(e,t,n){return n.options.filterFromLeafRows?uw(e,t,n):dw(e,t,n)}function uw(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,c){c===void 0&&(c=0);const d=[];for(let h=0;h<l.length;h++){var u;let f=l[h];const m=ki(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(m.columnFilters=f.columnFilters,(u=f.subRows)!=null&&u.length&&c<s){if(m.subRows=a(f.subRows,c+1),f=m,t(f)&&!m.subRows.length){d.push(f),i[f.id]=f,o.push(f);continue}if(t(f)||m.subRows.length){d.push(f),i[f.id]=f,o.push(f);continue}}else f=m,t(f)&&(d.push(f),i[f.id]=f,o.push(f))}return d};return{rows:a(e),flatRows:o,rowsById:i}}function dw(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,c){c===void 0&&(c=0);const d=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var u;if((u=f.subRows)!=null&&u.length&&c<s){const y=ki(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);y.subRows=a(f.subRows,c+1),f=y}d.push(f),o.push(f),i[f.id]=f}}return d};return{rows:a(e),flatRows:o,rowsById:i}}function fw(){return e=>L(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const o=[],i=[];(n??[]).forEach(h=>{var f;const m=e.getColumn(h.id);if(!m)return;const y=m.getFilterFn();if(!y){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${m.id}.`);return}o.push({id:h.id,filterFn:y,resolvedValue:(f=y.resolveFilterValue==null?void 0:y.resolveFilterValue(h.value))!=null?f:h.value})});const s=(n??[]).map(h=>h.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&a&&l.length&&(s.push("__global__"),l.forEach(h=>{var f;i.push({id:h.id,filterFn:a,resolvedValue:(f=a.resolveFilterValue==null?void 0:a.resolveFilterValue(r))!=null?f:r})}));let c,d;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},o.length)for(let m=0;m<o.length;m++){c=o[m];const y=c.id;f.columnFilters[y]=c.filterFn(f,y,c.resolvedValue,x=>{f.columnFiltersMeta[y]=x})}if(i.length){for(let m=0;m<i.length;m++){d=i[m];const y=d.id;if(d.filterFn(f,y,d.resolvedValue,x=>{f.columnFiltersMeta[y]=x})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const u=h=>{for(let f=0;f<s.length;f++)if(h.columnFilters[s[f]]===!1)return!1;return!0};return cw(t.rows,u,e)},_(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function hw(){return e=>L(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,o=[],i=r.filter(l=>{var c;return(c=e.getColumn(l.id))==null?void 0:c.getCanSort()}),s={};i.forEach(l=>{const c=e.getColumn(l.id);c&&(s[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const a=l=>{const c=l.map(d=>({...d}));return c.sort((d,u)=>{for(let f=0;f<i.length;f+=1){var h;const m=i[f],y=s[m.id],x=y.sortUndefined,v=(h=m?.desc)!=null?h:!1;let T=0;if(x){const w=d.getValue(m.id),M=u.getValue(m.id),b=w===void 0,$=M===void 0;if(b||$){if(x==="first")return b?-1:1;if(x==="last")return b?1:-1;T=b&&$?0:b?x:-x}}if(T===0&&(T=y.sortingFn(d,u,m.id)),T!==0)return v&&(T*=-1),y.invertSorting&&(T*=-1),T}return d.index-u.index}),c.forEach(d=>{var u;o.push(d),(u=d.subRows)!=null&&u.length&&(d.subRows=a(d.subRows))}),c};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}},_(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function br(e,t){return e?pw(e)?ft.createElement(e,t):e:null}function pw(e){return mw(e)||typeof e=="function"||gw(e)}function mw(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function gw(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function yw(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=ft.useState(()=>({current:aw(t)})),[r,o]=ft.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}const vw=S`
1613
+ color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n?.key)}return r}}function I(e,t,n,o){return{debug:()=>{var r;return(r=e?.debugAll)!=null?r:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:o}}function P0(e,t,n,o){const r=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:r,getContext:A(()=>[e,n,t,i],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),I(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function M0(e,t,n,o){var r,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(r=(i=a.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?r:typeof a.header=="string"?a.header:void 0,d;if(a.accessorFn?d=a.accessorFn:l&&(l.includes(".")?d=h=>{let f=h;for(const y of l.split(".")){var v;f=(v=f)==null?void 0:v[y],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${y}" in deeply nested key "${l}" returned undefined.`)}return f}:d=h=>h[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let u={id:`${String(c)}`,accessorFn:d,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:A(()=>[!0],()=>{var h;return[u,...(h=u.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},I(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:A(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=u.columns)!=null&&f.length){let v=u.columns.flatMap(y=>y.getLeafColumns());return h(v)}return[u]},I(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(u,e);return u}const se="debugHeaders";function Dl(e,t,n){var o;let i={id:(o=n.id)!=null?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(i,e)}),i}const k0={createTable:e=>{e.getHeaderGroups=A(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>{var i,s;const a=(i=o?.map(u=>n.find(h=>h.id===u)).filter(Boolean))!=null?i:[],l=(s=r?.map(u=>n.find(h=>h.id===u)).filter(Boolean))!=null?s:[],c=n.filter(u=>!(o!=null&&o.includes(u.id))&&!(r!=null&&r.includes(u.id)));return yn(t,[...a,...c,...l],e)},I(e.options,se,"getHeaderGroups")),e.getCenterHeaderGroups=A(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>(n=n.filter(i=>!(o!=null&&o.includes(i.id))&&!(r!=null&&r.includes(i.id))),yn(t,n,e,"center")),I(e.options,se,"getCenterHeaderGroups")),e.getLeftHeaderGroups=A(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,o)=>{var r;const i=(r=o?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return yn(t,i,e,"left")},I(e.options,se,"getLeftHeaderGroups")),e.getRightHeaderGroups=A(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,o)=>{var r;const i=(r=o?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return yn(t,i,e,"right")},I(e.options,se,"getRightHeaderGroups")),e.getFooterGroups=A(()=>[e.getHeaderGroups()],t=>[...t].reverse(),I(e.options,se,"getFooterGroups")),e.getLeftFooterGroups=A(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),I(e.options,se,"getLeftFooterGroups")),e.getCenterFooterGroups=A(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),I(e.options,se,"getCenterFooterGroups")),e.getRightFooterGroups=A(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),I(e.options,se,"getRightFooterGroups")),e.getFlatHeaders=A(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,se,"getFlatHeaders")),e.getLeftFlatHeaders=A(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,se,"getLeftFlatHeaders")),e.getCenterFlatHeaders=A(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,se,"getCenterFlatHeaders")),e.getRightFlatHeaders=A(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,se,"getRightFlatHeaders")),e.getCenterLeafHeaders=A(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),I(e.options,se,"getCenterLeafHeaders")),e.getLeftLeafHeaders=A(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),I(e.options,se,"getLeftLeafHeaders")),e.getRightLeafHeaders=A(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),I(e.options,se,"getRightLeafHeaders")),e.getLeafHeaders=A(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,o)=>{var r,i,s,a,l,c;return[...(r=(i=t[0])==null?void 0:i.headers)!=null?r:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(c=o[0])==null?void 0:c.headers)!=null?l:[]].map(d=>d.getLeafHeaders()).flat()},I(e.options,se,"getLeafHeaders"))}};function yn(e,t,n,o){var r,i;let s=0;const a=function(h,f){f===void 0&&(f=1),s=Math.max(s,f),h.filter(v=>v.getIsVisible()).forEach(v=>{var y;(y=v.columns)!=null&&y.length&&a(v.columns,f+1)},0)};a(e);let l=[];const c=(h,f)=>{const v={depth:f,id:[o,`${f}`].filter(Boolean).join("_"),headers:[]},y=[];h.forEach(b=>{const w=[...y].reverse()[0],T=b.column.depth===v.depth;let C,M=!1;if(T&&b.column.parent?C=b.column.parent:(C=b.column,M=!0),w&&w?.column===C)w.subHeaders.push(b);else{const x=Dl(n,C,{id:[o,f,C.id,b?.id].filter(Boolean).join("_"),isPlaceholder:M,placeholderId:M?`${y.filter(P=>P.column===C).length}`:void 0,depth:f,index:y.length});x.subHeaders.push(b),y.push(x)}v.headers.push(b),b.headerGroup=v}),l.push(v),f>0&&c(y,f-1)},d=t.map((h,f)=>Dl(n,h,{depth:s,index:f}));c(d,s-1),l.reverse();const u=h=>h.filter(v=>v.column.getIsVisible()).map(v=>{let y=0,b=0,w=[0];v.subHeaders&&v.subHeaders.length?(w=[],u(v.subHeaders).forEach(C=>{let{colSpan:M,rowSpan:x}=C;y+=M,w.push(x)})):y=1;const T=Math.min(...w);return b=b+T,v.colSpan=y,v.rowSpan=b,{colSpan:y,rowSpan:b}});return u((r=(i=l[0])==null?void 0:i.headers)!=null?r:[]),l}const cr=(e,t,n,o,r,i,s)=>{let a={id:t,index:o,original:n,depth:r,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,o),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>$0(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const d=c.getParentRow();if(!d)break;l.push(d),c=d}return l.reverse()},getAllCells:A(()=>[e.getAllLeafColumns()],l=>l.map(c=>P0(e,a,c,c.id)),I(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:A(()=>[a.getAllCells()],l=>l.reduce((c,d)=>(c[d.column.id]=d,c),{}),I(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},V0={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Fl=(e,t,n)=>{var o,r;const i=n==null||(o=n.toString())==null?void 0:o.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};Fl.autoRemove=e=>xe(e);const Al=(e,t,n)=>{var o;return!!(!((o=e.getValue(t))==null||(o=o.toString())==null)&&o.includes(n))};Al.autoRemove=e=>xe(e);const Il=(e,t,n)=>{var o;return((o=e.getValue(t))==null||(o=o.toString())==null?void 0:o.toLowerCase())===n?.toLowerCase()};Il.autoRemove=e=>xe(e);const Ll=(e,t,n)=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)};Ll.autoRemove=e=>xe(e);const Rl=(e,t,n)=>!n.some(o=>{var r;return!((r=e.getValue(t))!=null&&r.includes(o))});Rl.autoRemove=e=>xe(e)||!(e!=null&&e.length);const _l=(e,t,n)=>n.some(o=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(o)});_l.autoRemove=e=>xe(e)||!(e!=null&&e.length);const Bl=(e,t,n)=>e.getValue(t)===n;Bl.autoRemove=e=>xe(e);const Nl=(e,t,n)=>e.getValue(t)==n;Nl.autoRemove=e=>xe(e);const ur=(e,t,n)=>{let[o,r]=n;const i=e.getValue(t);return i>=o&&i<=r};ur.resolveFilterValue=e=>{let[t,n]=e,o=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(o)?-1/0:o,s=n===null||Number.isNaN(r)?1/0:r;if(i>s){const a=i;i=s,s=a}return[i,s]},ur.autoRemove=e=>xe(e)||xe(e[0])&&xe(e[1]);const Ae={includesString:Fl,includesStringSensitive:Al,equalsString:Il,arrIncludes:Ll,arrIncludesAll:Rl,arrIncludesSome:_l,equals:Bl,weakEquals:Nl,inNumberRange:ur};function xe(e){return e==null||e===""}const E0={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:de("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);return typeof o=="string"?Ae.includesString:typeof o=="number"?Ae.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?Ae.equals:Array.isArray(o)?Ae.arrIncludes:Ae.weakEquals},e.getFilterFn=()=>{var n,o;return vn(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(o=t.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?n:Ae[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((o=t.options.enableColumnFilters)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(o=>o.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,o;return(n=(o=t.getState().columnFilters)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(o=>{const r=e.getFilterFn(),i=o?.find(d=>d.id===e.id),s=He(n,i?i.value:void 0);if(zl(r,s,e)){var a;return(a=o?.filter(d=>d.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(i){var c;return(c=o?.map(d=>d.id===e.id?l:d))!=null?c:[]}return o!=null&&o.length?[...o,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),o=r=>{var i;return(i=He(t,r))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(zl(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:(n=(o=e.initialState)==null?void 0:o.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function zl(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const dr={sum:(e,t,n)=>n.reduce((o,r)=>{const i=r.getValue(e);return o+(typeof i=="number"?i:0)},0),min:(e,t,n)=>{let o;return n.forEach(r=>{const i=r.getValue(e);i!=null&&(o>i||o===void 0&&i>=i)&&(o=i)}),o},max:(e,t,n)=>{let o;return n.forEach(r=>{const i=r.getValue(e);i!=null&&(o<i||o===void 0&&i>=i)&&(o=i)}),o},extent:(e,t,n)=>{let o,r;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(o===void 0?s>=s&&(o=r=s):(o>s&&(o=s),r<s&&(r=s)))}),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach(r=>{let i=r.getValue(e);i!=null&&(i=+i)>=i&&(++n,o+=i)}),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!T0(n))return;if(n.length===1)return n[0];const o=Math.floor(n.length/2),r=n.sort((i,s)=>i-s);return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},D0={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:de("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(o=>o!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,o;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((o=t.options.enableGrouping)!=null?o:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);if(typeof o=="number")return dr.sum;if(Object.prototype.toString.call(o)==="[object Date]")return dr.extent},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return vn(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(o=t.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?n:dr[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:(n=(o=e.initialState)==null?void 0:o.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function F0(e,t,n){if(!(t!=null&&t.length)||!n)return e;const o=e.filter(i=>!t.includes(i.id));return n==="remove"?o:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...o]}const A0={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:de("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=A(n=>[zt(t,n)],n=>n.findIndex(o=>o.id===e.id),I(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var o;return((o=zt(t,n)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const r=zt(t,n);return((o=r[r.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=A(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,o)=>r=>{let i=[];if(!(t!=null&&t.length))i=r;else{const s=[...t],a=[...r];for(;a.length&&s.length;){const l=s.shift(),c=a.findIndex(d=>d.id===l);c>-1&&i.push(a.splice(c,1)[0])}i=[...i,...a]}return F0(i,n,o)},I(e.options,"debugTable","_getOrderColumnsFn"))}},fr=()=>({left:[],right:[]}),I0={getInitialState:e=>({columnPinning:fr(),...e}),getDefaultOptions:e=>({onColumnPinningChange:de("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var i,s;if(n==="right"){var a,l;return{left:((a=r?.left)!=null?a:[]).filter(u=>!(o!=null&&o.includes(u))),right:[...((l=r?.right)!=null?l:[]).filter(u=>!(o!=null&&o.includes(u))),...o]}}if(n==="left"){var c,d;return{left:[...((c=r?.left)!=null?c:[]).filter(u=>!(o!=null&&o.includes(u))),...o],right:((d=r?.right)!=null?d:[]).filter(u=>!(o!=null&&o.includes(u)))}}return{left:((i=r?.left)!=null?i:[]).filter(u=>!(o!=null&&o.includes(u))),right:((s=r?.right)!=null?s:[]).filter(u=>!(o!=null&&o.includes(u)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var r,i,s;return((r=o.columnDef.enablePinning)!=null?r:!0)&&((i=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:o,right:r}=t.getState().columnPinning,i=n.some(a=>o?.includes(a)),s=n.some(a=>r?.includes(a));return i?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?(n=(o=t.getState().columnPinning)==null||(o=o[r])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=A(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,o,r)=>{const i=[...o??[],...r??[]];return n.filter(s=>!i.includes(s.column.id))},I(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=A(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,o)=>(o??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),I(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=A(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,o)=>(o??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),I(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?fr():(n=(o=e.initialState)==null?void 0:o.columnPinning)!=null?n:fr())},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;if(!t){var r,i;return!!((r=o.left)!=null&&r.length||(i=o.right)!=null&&i.length)}return!!((n=o[t])!=null&&n.length)},e.getLeftLeafColumns=A(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),I(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=A(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),I(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=A(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o)=>{const r=[...n??[],...o??[]];return t.filter(i=>!r.includes(i.id))},I(e.options,"debugColumns","getCenterLeafColumns"))}};function L0(e){return e||(typeof document<"u"?document:null)}const wn={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},hr=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),R0={getDefaultColumnDef:()=>wn,getInitialState:e=>({columnSizing:{},columnSizingInfo:hr(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:de("columnSizing",e),onColumnSizingInfoChange:de("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:wn.minSize,(o=i??e.columnDef.size)!=null?o:wn.size),(r=e.columnDef.maxSize)!=null?r:wn.maxSize)},e.getStart=A(n=>[n,zt(t,n),t.getState().columnSizing],(n,o)=>o.slice(0,e.getIndex(n)).reduce((r,i)=>r+i.getSize(),0),I(t.options,"debugColumns","getStart")),e.getAfter=A(n=>[n,zt(t,n),t.getState().columnSizing],(n,o)=>o.slice(e.getIndex(n)+1).reduce((r,i)=>r+i.getSize(),0),I(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:o,...r}=n;return r})},e.getCanResize=()=>{var n,o;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((o=t.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const o=r=>{if(r.subHeaders.length)r.subHeaders.forEach(o);else{var i;n+=(i=r.column.getSize())!=null?i:0}};return o(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),r=o?.getCanResize();return i=>{if(!o||!r||(i.persist==null||i.persist(),mr(i)&&i.touches&&i.touches.length>1))return;const s=e.getSize(),a=e?e.getLeafHeaders().map(w=>[w.column.id,w.column.getSize()]):[[o.id,o.getSize()]],l=mr(i)?Math.round(i.touches[0].clientX):i.clientX,c={},d=(w,T)=>{typeof T=="number"&&(t.setColumnSizingInfo(C=>{var M,x;const P=t.options.columnResizeDirection==="rtl"?-1:1,V=(T-((M=C?.startOffset)!=null?M:0))*P,$=Math.max(V/((x=C?.startSize)!=null?x:0),-.999999);return C.columnSizingStart.forEach(F=>{let[D,_]=F;c[D]=Math.round(Math.max(_+_*$,0)*100)/100}),{...C,deltaOffset:V,deltaPercentage:$}}),(t.options.columnResizeMode==="onChange"||w==="end")&&t.setColumnSizing(C=>({...C,...c})))},u=w=>d("move",w),h=w=>{d("end",w),t.setColumnSizingInfo(T=>({...T,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=L0(n),v={moveHandler:w=>u(w.clientX),upHandler:w=>{f?.removeEventListener("mousemove",v.moveHandler),f?.removeEventListener("mouseup",v.upHandler),h(w.clientX)}},y={moveHandler:w=>(w.cancelable&&(w.preventDefault(),w.stopPropagation()),u(w.touches[0].clientX),!1),upHandler:w=>{var T;f?.removeEventListener("touchmove",y.moveHandler),f?.removeEventListener("touchend",y.upHandler),w.cancelable&&(w.preventDefault(),w.stopPropagation()),h((T=w.touches[0])==null?void 0:T.clientX)}},b=_0()?{passive:!1}:!1;mr(i)?(f?.addEventListener("touchmove",y.moveHandler,b),f?.addEventListener("touchend",y.upHandler,b)):(f?.addEventListener("mousemove",v.moveHandler,b),f?.addEventListener("mouseup",v.upHandler,b)),t.setColumnSizingInfo(w=>({...w,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?hr():(n=e.initialState.columnSizingInfo)!=null?n:hr())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0}}};let bn=null;function _0(){if(typeof bn=="boolean")return bn;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return bn=e,bn}function mr(e){return e.type==="touchstart"}const B0={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:de("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(o=>({...o,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,o;const r=e.columns;return(n=r.length?r.some(i=>i.getIsVisible()):(o=t.getState().columnVisibility)==null?void 0:o[e.id])!=null?n:!0},e.getCanHide=()=>{var n,o;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((o=t.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=A(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),I(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=A(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,o,r)=>[...n,...o,...r],I(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,o)=>A(()=>[o(),o().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),I(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var o;e.setColumnVisibility(n?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,i)=>({...r,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;e.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}};function zt(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const N0={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},z0={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:de("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,r,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableGlobalFilter)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Ae.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return vn(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[o])!=null?t:Ae[o]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},O0={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:de("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var r,i;e.setExpanded(o?{}:(r=(i=e.initialState)==null?void 0:i.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{const o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");o=Math.max(o,s.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(o=>{var r;const i=o===!0?!0:!!(o!=null&&o[e.id]);let s={};if(o===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=o,n=(r=n)!=null?r:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:a,...l}=s;return l}return o})},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:o===!0||o?.[e.id])},e.getCanExpand=()=>{var n,o,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((o=t.options.enableExpanding)!=null?o:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},pr=0,gr=10,vr=()=>({pageIndex:pr,pageSize:gr}),H0={getInitialState:e=>({...e,pagination:{...vr(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:de("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=o=>{const r=i=>He(o,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=o=>{var r;e.setPagination(o?vr():(r=e.initialState.pagination)!=null?r:vr())},e.setPageIndex=o=>{e.setPagination(r=>{let i=He(o,r.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...r,pageIndex:i}})},e.resetPageIndex=o=>{var r,i;e.setPageIndex(o?pr:(r=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?r:pr)},e.resetPageSize=o=>{var r,i;e.setPageSize(o?gr:(r=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?r:gr)},e.setPageSize=o=>{e.setPagination(r=>{const i=Math.max(1,He(o,r.pageSize)),s=r.pageSize*r.pageIndex,a=Math.floor(s/i);return{...r,pageIndex:a,pageSize:i}})},e.setPageCount=o=>e.setPagination(r=>{var i;let s=He(o,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...r,pageCount:s}}),e.getPageOptions=A(()=>[e.getPageCount()],o=>{let r=[];return o&&o>0&&(r=[...new Array(o)].fill(null).map((i,s)=>s)),r},I(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:o}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:o<r-1},e.previousPage=()=>e.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},yr=()=>({top:[],bottom:[]}),j0={getInitialState:e=>({rowPinning:yr(),...e}),getDefaultOptions:e=>({onRowPinningChange:de("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,r)=>{const i=o?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=r?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...s,e.id,...i]);t.setRowPinning(l=>{var c,d;if(n==="bottom"){var u,h;return{top:((u=l?.top)!=null?u:[]).filter(y=>!(a!=null&&a.has(y))),bottom:[...((h=l?.bottom)!=null?h:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)]}}if(n==="top"){var f,v;return{top:[...((f=l?.top)!=null?f:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)],bottom:((v=l?.bottom)!=null?v:[]).filter(y=>!(a!=null&&a.has(y)))}}return{top:((c=l?.top)!=null?c:[]).filter(y=>!(a!=null&&a.has(y))),bottom:((d=l?.bottom)!=null?d:[]).filter(y=>!(a!=null&&a.has(y)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return typeof o=="function"?o(e):(n=o??r)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,i=n.some(a=>o?.includes(a)),s=n.some(a=>r?.includes(a));return i?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const i=(n=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:a}=s;return a});return(o=i?.indexOf(e.id))!=null?o:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?yr():(n=(o=e.initialState)==null?void 0:o.rowPinning)!=null?n:yr())},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;if(!t){var r,i;return!!((r=o.top)!=null&&r.length||(i=o.bottom)!=null&&i.length)}return!!((n=o[t])!=null&&n.length)},e._getPinnedRows=(t,n,o)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(s=>t.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:o}))},e.getTopRows=A(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),I(e.options,"debugRows","getTopRows")),e.getBottomRows=A(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),I(e.options,"debugRows","getBottomRows")),e.getCenterRows=A(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,o)=>{const r=new Set([...n??[],...o??[]]);return t.filter(i=>!r.has(i.id))},I(e.options,"debugRows","getCenterRows"))}},G0={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:de("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(i=>{i.getCanSelect()&&(o[i.id]=!0)}):r.forEach(i=>{delete o[i.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(i=>{wr(r,i.id,o,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=A(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?br(e,n):{rows:[],flatRows:[],rowsById:{}},I(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=A(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?br(e,n):{rows:[],flatRows:[],rowsById:{}},I(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=A(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?br(e,n):{rows:[],flatRows:[],rowsById:{}},I(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!!(t.length&&Object.keys(n).length);return o&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some(r=>!n[r.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const r=e.getIsSelected();t.setRowSelection(i=>{var s;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return i;const a={...i};return wr(a,e.id,n,(s=o?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return xr(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Sr(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Sr(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return o=>{var r;n&&e.toggleSelected((r=o.target)==null?void 0:r.checked)}}}},wr=(e,t,n,o,r)=>{var i;const s=r.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],o&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>wr(e,a.id,n,o,r))};function br(e,t){const n=e.getState().rowSelection,o=[],r={},i=function(s,a){return s.map(l=>{var c;const d=xr(l,n);if(d&&(o.push(l),r[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:i(l.subRows)}),d)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:r}}function xr(e,t){var n;return(n=t[e.id])!=null?n:!1}function Sr(e,t,n){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let r=!0,i=!1;return e.subRows.forEach(s=>{if(!(i&&!r)&&(s.getCanSelect()&&(xr(s,t)?i=!0:r=!1),s.subRows&&s.subRows.length)){const a=Sr(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),r=!1)}}),r?"all":i?"some":!1}const Cr=/([0-9]+)/gm,U0=(e,t,n)=>Ol(je(e.getValue(n)).toLowerCase(),je(t.getValue(n)).toLowerCase()),K0=(e,t,n)=>Ol(je(e.getValue(n)),je(t.getValue(n))),W0=(e,t,n)=>Tr(je(e.getValue(n)).toLowerCase(),je(t.getValue(n)).toLowerCase()),q0=(e,t,n)=>Tr(je(e.getValue(n)),je(t.getValue(n))),Y0=(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},X0=(e,t,n)=>Tr(e.getValue(n),t.getValue(n));function Tr(e,t){return e===t?0:e>t?1:-1}function je(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ol(e,t){const n=e.split(Cr).filter(Boolean),o=t.split(Cr).filter(Boolean);for(;n.length&&o.length;){const r=n.shift(),i=o.shift(),s=parseInt(r,10),a=parseInt(i,10),l=[s,a].sort();if(isNaN(l[0])){if(r>i)return 1;if(i>r)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-o.length}const Ot={alphanumeric:U0,alphanumericCaseSensitive:K0,text:W0,textCaseSensitive:q0,datetime:Y0,basic:X0},Z0=[k0,B0,A0,I0,V0,E0,N0,z0,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:de("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const r of n){const i=r?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Ot.datetime;if(typeof i=="string"&&(o=!0,i.split(Cr).length>1))return Ot.alphanumeric}return o?Ot.text:Ot.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return vn(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(o=t.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?n:Ot[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(f=>f.id===e.id),l=s?.findIndex(f=>f.id===e.id);let c=[],d,u=i?n:r==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&o?a?d="toggle":d="add":s!=null&&s.length&&l!==s.length-1?d="replace":a?d="toggle":d="replace",d==="toggle"&&(i||r||(d="remove")),d==="add"){var h;c=[...s,{id:e.id,desc:u}],c.splice(0,c.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=s.map(f=>f.id===e.id?{...f,desc:u}:f):d==="remove"?c=s.filter(f=>f.id!==e.id):c=[{id:e.id,desc:u}];return c})},e.getFirstSortDir=()=>{var n,o;return((n=(o=e.columnDef.sortDescFirst)!=null?o:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((o=t.options.enableSortingRemoval)==null||o)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:s==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,o;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((o=t.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return(n=(o=e.columnDef.enableMultiSort)!=null?o:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,o;return(n=(o=t.getState().sorting)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:(n=(o=e.initialState)==null?void 0:o.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},D0,O0,H0,j0,G0,R0];function J0(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const o=[...Z0,...(t=e._features)!=null?t:[]];let r={_features:o};const i=r._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),s=h=>r.options.mergeOptions?r.options.mergeOptions(i,h):{...i,...h};let l={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const c=[];let d=!1;const u={_features:o,options:{...i,...e},initialState:l,_queue:h=>{c.push(h),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:h=>{const f=He(h,r.options);r.options=s(f)},getState:()=>r.options.state,setState:h=>{r.options.onStateChange==null||r.options.onStateChange(h)},_getRowId:(h,f,v)=>{var y;return(y=r.options.getRowId==null?void 0:r.options.getRowId(h,f,v))!=null?y:`${v?[v.id,f].join("."):f}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(h,f)=>{let v=(f?r.getPrePaginationRowModel():r.getRowModel()).rowsById[h];if(!v&&(v=r.getCoreRowModel().rowsById[h],!v))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return v},_getDefaultColumnDef:A(()=>[r.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:v=>{const y=v.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:v=>{var y,b;return(y=(b=v.renderValue())==null||b.toString==null?void 0:b.toString())!=null?y:null},...r._features.reduce((v,y)=>Object.assign(v,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...h}},I(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:A(()=>[r._getColumnDefs()],h=>{const f=function(v,y,b){return b===void 0&&(b=0),v.map(w=>{const T=M0(r,w,b,y),C=w;return T.columns=C.columns?f(C.columns,T,b+1):[],T})};return f(h)},I(e,"debugColumns","getAllColumns")),getAllFlatColumns:A(()=>[r.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),I(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:A(()=>[r.getAllFlatColumns()],h=>h.reduce((f,v)=>(f[v.id]=v,f),{}),I(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:A(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(h,f)=>{let v=h.flatMap(y=>y.getLeafColumns());return f(v)},I(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const f=r._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${h}' does not exist.`),f}};Object.assign(r,u);for(let h=0;h<r._features.length;h++){const f=r._features[h];f==null||f.createTable==null||f.createTable(r)}return r}function Q0(){return e=>A(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(r,i,s){i===void 0&&(i=0);const a=[];for(let c=0;c<r.length;c++){const d=cr(e,e._getRowId(r[c],c,s),r[c],c,i,void 0,s?.id);if(n.flatRows.push(d),n.rowsById[d.id]=d,a.push(d),e.options.getSubRows){var l;d.originalSubRows=e.options.getSubRows(r[c],c),(l=d.originalSubRows)!=null&&l.length&&(d.subRows=o(d.originalSubRows,i+1,d))}}return a};return n.rows=o(t),n},I(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function ev(e,t,n){return n.options.filterFromLeafRows?tv(e,t,n):nv(e,t,n)}function tv(e,t,n){var o;const r=[],i={},s=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,a=function(l,c){c===void 0&&(c=0);const d=[];for(let h=0;h<l.length;h++){var u;let f=l[h];const v=cr(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(v.columnFilters=f.columnFilters,(u=f.subRows)!=null&&u.length&&c<s){if(v.subRows=a(f.subRows,c+1),f=v,t(f)&&!v.subRows.length){d.push(f),i[f.id]=f,r.push(f);continue}if(t(f)||v.subRows.length){d.push(f),i[f.id]=f,r.push(f);continue}}else f=v,t(f)&&(d.push(f),i[f.id]=f,r.push(f))}return d};return{rows:a(e),flatRows:r,rowsById:i}}function nv(e,t,n){var o;const r=[],i={},s=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,a=function(l,c){c===void 0&&(c=0);const d=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var u;if((u=f.subRows)!=null&&u.length&&c<s){const y=cr(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);y.subRows=a(f.subRows,c+1),f=y}d.push(f),r.push(f),i[f.id]=f}}return d};return{rows:a(e),flatRows:r,rowsById:i}}function ov(){return e=>A(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,o)=>{if(!t.rows.length||!(n!=null&&n.length)&&!o){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const r=[],i=[];(n??[]).forEach(h=>{var f;const v=e.getColumn(h.id);if(!v)return;const y=v.getFilterFn();if(!y){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${v.id}.`);return}r.push({id:h.id,filterFn:y,resolvedValue:(f=y.resolveFilterValue==null?void 0:y.resolveFilterValue(h.value))!=null?f:h.value})});const s=(n??[]).map(h=>h.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());o&&a&&l.length&&(s.push("__global__"),l.forEach(h=>{var f;i.push({id:h.id,filterFn:a,resolvedValue:(f=a.resolveFilterValue==null?void 0:a.resolveFilterValue(o))!=null?f:o})}));let c,d;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},r.length)for(let v=0;v<r.length;v++){c=r[v];const y=c.id;f.columnFilters[y]=c.filterFn(f,y,c.resolvedValue,b=>{f.columnFiltersMeta[y]=b})}if(i.length){for(let v=0;v<i.length;v++){d=i[v];const y=d.id;if(d.filterFn(f,y,d.resolvedValue,b=>{f.columnFiltersMeta[y]=b})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const u=h=>{for(let f=0;f<s.length;f++)if(h.columnFilters[s[f]]===!1)return!1;return!0};return ev(t.rows,u,e)},I(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function rv(){return e=>A(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const o=e.getState().sorting,r=[],i=o.filter(l=>{var c;return(c=e.getColumn(l.id))==null?void 0:c.getCanSort()}),s={};i.forEach(l=>{const c=e.getColumn(l.id);c&&(s[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const a=l=>{const c=l.map(d=>({...d}));return c.sort((d,u)=>{for(let f=0;f<i.length;f+=1){var h;const v=i[f],y=s[v.id],b=y.sortUndefined,w=(h=v?.desc)!=null?h:!1;let T=0;if(b){const C=d.getValue(v.id),M=u.getValue(v.id),x=C===void 0,P=M===void 0;if(x||P){if(b==="first")return x?-1:1;if(b==="last")return x?1:-1;T=x&&P?0:x?b:-b}}if(T===0&&(T=y.sortingFn(d,u,v.id)),T!==0)return w&&(T*=-1),y.invertSorting&&(T*=-1),T}return d.index-u.index}),c.forEach(d=>{var u;r.push(d),(u=d.subRows)!=null&&u.length&&(d.subRows=a(d.subRows))}),c};return{rows:a(n.rows),flatRows:r,rowsById:n.rowsById}},I(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function xn(e,t){return e?iv(e)?Ue.createElement(e,t):e:null}function iv(e){return sv(e)||typeof e=="function"||av(e)}function sv(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function av(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function lv(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=Ue.useState(()=>({current:J0(t)})),[o,r]=Ue.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...o,...e.state},onStateChange:s=>{r(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}const cv=g.css`
1673
1614
  @media (max-width: 768px) {
1674
1615
  font-size: 0.875rem;
1675
1616
 
@@ -1678,7 +1619,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1678
1619
  padding: 0.5rem 0.75rem;
1679
1620
  }
1680
1621
  }
1681
- `,ww={default:S`
1622
+ `,uv={default:g.css`
1682
1623
  thead tr:last-child th:first-child {
1683
1624
  border-top-left-radius: var(--border-radius-article);
1684
1625
  }
@@ -1694,7 +1635,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1694
1635
  tbody tr:last-child td:last-child {
1695
1636
  border-bottom-right-radius: var(--border-radius-article);
1696
1637
  }
1697
- `,striped:S`
1638
+ `,striped:g.css`
1698
1639
  border-radius: var(--border-radius-article);
1699
1640
  tbody tr:nth-child(even) td {
1700
1641
  background-color: var(--color-main-alternative-secondary);
@@ -1715,26 +1656,26 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1715
1656
  tbody tr:last-child td:last-child {
1716
1657
  border-bottom-right-radius: var(--border-radius-article);
1717
1658
  }
1718
- `},qt={sm:S`
1659
+ `},ht={sm:g.css`
1719
1660
  padding: 0.5rem 1rem;
1720
1661
  min-height: 2.25rem;
1721
- `,md:S`
1662
+ `,md:g.css`
1722
1663
  padding: 0.625rem 1.25rem;
1723
1664
  min-height: 2.5rem;
1724
- `,lg:S`
1665
+ `,lg:g.css`
1725
1666
  padding: 0.75rem 1.5rem;
1726
1667
  min-height: 2.75rem;
1727
- `},Gu=S`
1668
+ `},Hl=g.css`
1728
1669
  display: flex;
1729
1670
  align-items: center;
1730
1671
  gap: 0.5rem;
1731
1672
  width: 100%;
1732
- `,bw=P.div`
1673
+ `,dv=g.div`
1733
1674
  position: relative;
1734
1675
  border-radius: var(--border-radius-article);
1735
1676
  overflow: ${({$maxHeight:e})=>e?"auto":"visible"};
1736
1677
  max-height: ${({$maxHeight:e})=>e?typeof e=="number"?`${e}px`:e:"none"};
1737
- `,Uu=P.table`
1678
+ `,jl=g.table`
1738
1679
  width: 100%;
1739
1680
  border-collapse: separate;
1740
1681
  border-spacing: 0;
@@ -1742,41 +1683,41 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1742
1683
  border-radius: var(--border-radius-article);
1743
1684
  border: 1px solid var(--color-main-light-borders);
1744
1685
 
1745
- ${({$variant:e})=>ww[e]}
1746
- ${vw}
1747
- `,xw=P.thead`
1748
- ${({$sticky:e})=>e&&S`
1686
+ ${({$variant:e})=>uv[e]}
1687
+ ${cv}
1688
+ `,fv=g.thead`
1689
+ ${({$sticky:e})=>e&&g.css`
1749
1690
  position: sticky;
1750
1691
  top: 0;
1751
1692
  z-index: 10;
1752
1693
  `}
1753
- `,Wu=P.tr`
1694
+ `,Gl=g.tr`
1754
1695
  &:hover {
1755
1696
  background-color: var(--color-main-alternative-secondary);
1756
1697
  }
1757
- ${({$clickable:e})=>e&&S`
1698
+ ${({$clickable:e})=>e&&g.css`
1758
1699
  cursor: pointer;
1759
1700
  `}
1760
- `;P.span`
1701
+ `;g.span`
1761
1702
  display: inline-flex;
1762
1703
  align-items: center;
1763
1704
  justify-content: center;
1764
1705
  transition: transform 0.2s ease-out;
1765
1706
  opacity: ${({$direction:e})=>e==="none"?.5:1};
1766
1707
  transform: ${({$direction:e})=>e==="asc"?"rotate(180deg)":"none"};
1767
- `;const Sw={sm:S`
1768
- ${qt.sm}
1769
- ${F[12]}
1770
- `,md:S`
1771
- ${qt.md}
1772
- ${F[16]}
1773
- `,lg:S`
1774
- ${qt.lg}
1775
- ${F[16]}
1776
- `},Cw=P.th`
1708
+ `;const hv={sm:g.css`
1709
+ ${ht.sm}
1710
+ ${E[12]}
1711
+ `,md:g.css`
1712
+ ${ht.md}
1713
+ ${E[16]}
1714
+ `,lg:g.css`
1715
+ ${ht.lg}
1716
+ ${E[16]}
1717
+ `},mv=g.th`
1777
1718
  background-color: var(--color-main-blue-primary);
1778
1719
  color: var(--color-main-white);
1779
- ${({$size:e})=>Sw[e]}
1720
+ ${({$size:e})=>hv[e]}
1780
1721
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
1781
1722
  min-width: 8rem;
1782
1723
  width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
@@ -1785,13 +1726,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1785
1726
  background-color: var(--color-purple-600);
1786
1727
  }
1787
1728
 
1788
- ${({$active:e})=>e&&S`
1729
+ ${({$active:e})=>e&&g.css`
1789
1730
  background-color: var(--color-blue-400);
1790
1731
  `}
1791
- `,Ku=P.div`
1792
- ${Gu};
1732
+ `,Ul=g.div`
1733
+ ${Hl};
1793
1734
  justify-content: ${({$align:e})=>e||"space-between"};
1794
- `,Yu=P.button`
1735
+ `,Kl=g.button`
1795
1736
  all: unset;
1796
1737
  display: inline-flex;
1797
1738
  align-items: center;
@@ -1808,7 +1749,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1808
1749
  &:focus-visible {
1809
1750
  outline-color: var(--color-main-white);
1810
1751
  }
1811
- `,Tw=P.span`
1752
+ `,pv=g.span`
1812
1753
  display: inline-flex;
1813
1754
  align-items: center;
1814
1755
  justify-content: center;
@@ -1820,10 +1761,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1820
1761
  transform 0.25s ease-out,
1821
1762
  opacity 0.2s ease-out;
1822
1763
 
1823
- ${Yu}:hover & {
1764
+ ${Kl}:hover & {
1824
1765
  opacity: 1;
1825
1766
  }
1826
- `,kw=P.div`
1767
+ `,gv=g.div`
1827
1768
  display: flex;
1828
1769
  align-items: center;
1829
1770
  padding: 0.5rem 0.75rem;
@@ -1838,7 +1779,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1838
1779
  &:active {
1839
1780
  background-color: var(--color-neutral-200);
1840
1781
  }
1841
- `,zi=p.memo(({value:e,label:t,checked:n,onChange:r})=>{const o=i=>{r(e,i.target.checked)};return g.jsx(kw,{children:g.jsx(Sn,{checked:n,onChange:o,size:"xs",checkboxClassName:"filter-option-checkbox",label:t})})});zi.displayName="FilterOption";function Hi(e,t,n){const r=new Set;return e.forEach((o,i)=>{let s;n?s=n(o,i):s=o[t],s!=null&&r.add(String(s))}),Array.from(r).sort((o,i)=>o.localeCompare(i))}function qu(e,t,n){const r=n;if(!r||r.length===0)return!0;const o=e.getValue(t);return o!=null?r.includes(String(o)):!1}function Xu(e,t){if(!t||t.trim()==="")return e;const n=t.toLowerCase().trim();return e.filter(r=>r.toLowerCase().includes(n))}function Pw(e,t,n){const r={};return e.forEach((o,i)=>{let s;if(n?s=n(o,i):s=o[t],s!=null){const a=String(s);r[a]=(r[a]||0)+1}}),r}function $w(e,t){const n=e.find(r=>r.id===t);return n?n.value?.length>0:!1}function Zu(e,t){const n=e.find(r=>r.id===t);return n?n.value||[]:[]}function Ew(e){return e.reduce((t,n)=>{const r=n.value;return t+(r?.length||0)},0)}const Mw=P.div`
1782
+ `,$r=m.memo(({value:e,label:t,checked:n,onChange:o})=>{const r=i=>{o(e,i.target.checked)};return p.jsx(gv,{children:p.jsx(Nt,{checked:n,onChange:r,size:"xs",checkboxClassName:"filter-option-checkbox",label:t})})});$r.displayName="FilterOption";function Pr(e,t,n){const o=new Set;return e.forEach((r,i)=>{let s;n?s=n(r,i):s=r[t],s!=null&&o.add(String(s))}),Array.from(o).sort((r,i)=>r.localeCompare(i))}function Wl(e,t,n){const o=n;if(!o||o.length===0)return!0;const r=e.getValue(t);return r!=null?o.includes(String(r)):!1}function ql(e,t){if(!t||t.trim()==="")return e;const n=t.toLowerCase().trim();return e.filter(o=>o.toLowerCase().includes(n))}function vv(e,t,n){const o={};return e.forEach((r,i)=>{let s;if(n?s=n(r,i):s=r[t],s!=null){const a=String(s);o[a]=(o[a]||0)+1}}),o}function yv(e,t){const n=e.find(o=>o.id===t);return n?n.value?.length>0:!1}function Yl(e,t){const n=e.find(o=>o.id===t);return n?n.value||[]:[]}function wv(e){return e.reduce((t,n)=>{const o=n.value;return t+(o?.length||0)},0)}const bv=g.div`
1842
1783
  position: absolute;
1843
1784
  top: 100%;
1844
1785
  right: 0;
@@ -1855,23 +1796,23 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1855
1796
  display: flex;
1856
1797
  flex-direction: column;
1857
1798
  max-height: 400px;
1858
- `,Aw=P.div`
1799
+ `,xv=g.div`
1859
1800
  flex: 1;
1860
1801
  overflow-y: auto;
1861
1802
  padding: 0.5rem;
1862
1803
  max-height: 280px;
1863
- `,Dw=P.div`
1804
+ `,Sv=g.div`
1864
1805
  display: flex;
1865
1806
  gap: 0.5rem;
1866
1807
  padding: 0.75rem;
1867
1808
  border-top: 1px solid var(--color-neutral-200);
1868
1809
  background: var(--color-neutral-50);
1869
- `,Vw=P.div`
1810
+ `,Cv=g.div`
1870
1811
  padding: 0.5rem 0.75rem;
1871
1812
  border-bottom: 1px solid var(--color-neutral-200);
1872
1813
  display: flex;
1873
1814
  gap: 0.5rem;
1874
- `,Fw=P.button`
1815
+ `,Tv=g.button`
1875
1816
  flex: 1;
1876
1817
  padding: 0.375rem 0.5rem;
1877
1818
  font-size: 0.75rem;
@@ -1890,10 +1831,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1890
1831
  &:active {
1891
1832
  transform: scale(0.98);
1892
1833
  }
1893
- `,ji=({options:e,selectedValues:t,onChange:n,onClose:r,searchPlaceholder:o="Search..."})=>{const[i,s]=p.useState(""),a=p.useMemo(()=>Xu(e,i),[e,i]),l=p.useMemo(()=>a.length===0?!1:a.every(m=>t.includes(m)),[a,t]),c=p.useCallback((m,y)=>{n(y?[...t,m]:t.filter(x=>x!==m))},[t,n]),d=p.useCallback(()=>{const m=[...new Set([...t,...a])];n(m)},[t,a,n]),u=p.useCallback(()=>{const m=t.filter(y=>!a.includes(y));n(m)},[t,a,n]),h=p.useCallback(()=>{n([])},[n]),f=p.useCallback(()=>{r()},[r]);return g.jsx(g.Fragment,{children:g.jsxs(Mw,{onClick:m=>m.stopPropagation(),children:[g.jsx("div",{className:"p-2",children:g.jsx(hi,{value:i,onSearch:s,placeholder:o,size:"xs"})}),a.length>0&&g.jsx(Vw,{children:g.jsx(Fw,{onClick:l?u:d,type:"button",children:l?"Deselect All":"Select All"})}),g.jsx(Aw,{children:a.length>0?a.map(m=>g.jsx(zi,{value:m,label:m,checked:t.includes(m),onChange:c},m)):g.jsx(bn,{children:i?"No matching options":"No options available"})}),g.jsxs(Dw,{children:[g.jsx(Kt,{variant:"outline",size:"sm",onClick:h,disabled:t.length===0,className:"flex-1",children:"Clear"}),g.jsx(Kt,{variant:"primary",size:"sm",onClick:f,className:"flex-1",children:"Close"})]})]})})};ji.displayName="ColumnFilterMenu";function Iw(e,t,n=!0){p.useEffect(()=>{if(!n)return;const r=o=>{const i=o.target;e.current&&!e.current.contains(i)&&t()};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[e,t,n])}const Rw=P.div`
1834
+ `,Mr=({options:e,selectedValues:t,onChange:n,onClose:o,searchPlaceholder:r="Search..."})=>{const[i,s]=m.useState(""),a=m.useMemo(()=>ql(e,i),[e,i]),l=m.useMemo(()=>a.length===0?!1:a.every(v=>t.includes(v)),[a,t]),c=m.useCallback((v,y)=>{n(y?[...t,v]:t.filter(b=>b!==v))},[t,n]),d=m.useCallback(()=>{const v=[...new Set([...t,...a])];n(v)},[t,a,n]),u=m.useCallback(()=>{const v=t.filter(y=>!a.includes(y));n(v)},[t,a,n]),h=m.useCallback(()=>{n([])},[n]),f=m.useCallback(()=>{o()},[o]);return p.jsx(p.Fragment,{children:p.jsxs(bv,{onClick:v=>v.stopPropagation(),children:[p.jsx("div",{className:"p-2",children:p.jsx(Zo,{value:i,onSearch:s,placeholder:r,size:"xs"})}),a.length>0&&p.jsx(Cv,{children:p.jsx(Tv,{onClick:l?u:d,type:"button",children:l?"Deselect All":"Select All"})}),p.jsx(xv,{children:a.length>0?a.map(v=>p.jsx($r,{value:v,label:v,checked:t.includes(v),onChange:c},v)):p.jsx(_t,{children:i?"No matching options":"No options available"})}),p.jsxs(Sv,{children:[p.jsx(dt,{variant:"outline",size:"sm",onClick:h,disabled:t.length===0,className:"flex-1",children:"Clear"}),p.jsx(dt,{variant:"primary",size:"sm",onClick:f,className:"flex-1",children:"Close"})]})]})})};Mr.displayName="ColumnFilterMenu";function $v(e,t,n=!0){m.useEffect(()=>{if(!n)return;const o=r=>{const i=r.target;e.current&&!e.current.contains(i)&&t()};return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}},[e,t,n])}const Pv=g.div`
1894
1835
  position: relative;
1895
1836
  display: inline-flex;
1896
- `,Lw=P(Kt)`
1837
+ `,Mv=g(dt)`
1897
1838
  min-height: auto;
1898
1839
  padding: 0.25rem;
1899
1840
  border: none;
@@ -1916,54 +1857,54 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1916
1857
  ${({$isActive:e})=>e&&`
1917
1858
  opacity: 1;
1918
1859
  `}
1919
- `,xr=({column:e,uniqueValues:t,selectedValues:n,onChange:r})=>{const[o,i]=p.useState(!1),s=p.useRef(null),a=n.length>0,l=()=>{i(u=>!u)},c=()=>{i(!1)},d=u=>{r(u)};return p.useEffect(()=>{const u=h=>{h.key==="Escape"&&o&&c()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]),Iw(s,c,o),g.jsx(g.Fragment,{children:g.jsxs(Rw,{ref:s,onClick:u=>u.stopPropagation(),children:[g.jsx(Lw,{size:"sm",onClick:l,"aria-label":`Filter ${e.id}`,"aria-expanded":o,$isActive:a,leftIcon:g.jsx(Y,{component:a?Oy:By,size:16,"aria-hidden":"true",color:"white"})}),o&&g.jsx(ji,{options:t,selectedValues:n,onChange:d,onClose:c,searchPlaceholder:`Search ${e.id}...`})]})})};xr.displayName="ColumnFilter";const Ju=e=>{const{columnFilters:t,setColumnFilters:n}=kn(),r=Zu(t,e),o=p.useCallback(i=>{const s=[...t],a=s.findIndex(l=>l.id===e);i.length>0?a>=0?s[a]={id:e,value:i}:s.push({id:e,value:i}):a>=0&&s.splice(a,1),n(s)},[t,e,n]);return{selectedValues:r,handleChange:o}},Qu=P.div`
1860
+ `,Sn=({column:e,uniqueValues:t,selectedValues:n,onChange:o})=>{const[r,i]=m.useState(!1),s=m.useRef(null),a=n.length>0,l=()=>{i(u=>!u)},c=()=>{i(!1)},d=u=>{o(u)};return m.useEffect(()=>{const u=h=>{h.key==="Escape"&&r&&c()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[r]),$v(s,c,r),p.jsx(p.Fragment,{children:p.jsxs(Pv,{ref:s,onClick:u=>u.stopPropagation(),children:[p.jsx(Mv,{size:"sm",onClick:l,"aria-label":`Filter ${e.id}`,"aria-expanded":r,$isActive:a,leftIcon:p.jsx(H,{component:a?Ep:Dp,size:16,"aria-hidden":"true",color:"white"})}),r&&p.jsx(Mr,{options:t,selectedValues:n,onChange:d,onClose:c,searchPlaceholder:`Search ${e.id}...`})]})})};Sn.displayName="ColumnFilter";const Xl=e=>{const{columnFilters:t,setColumnFilters:n}=Ht(),o=Yl(t,e),r=m.useCallback(i=>{const s=[...t],a=s.findIndex(l=>l.id===e);i.length>0?a>=0?s[a]={id:e,value:i}:s.push({id:e,value:i}):a>=0&&s.splice(a,1),n(s)},[t,e,n]);return{selectedValues:o,handleChange:r}},Zl=g.div`
1920
1861
  display: flex;
1921
1862
  align-items: center;
1922
1863
  gap: 0.25rem;
1923
1864
  width: 100%;
1924
- `,ed=({header:e})=>{const{size:t,getUniqueValues:n}=kn(),{selectedValues:r,handleChange:o}=Ju(e.column.id),i=e.column.columnDef.meta,s=e.column.getCanSort()&&i?.sortable!==!1,a=i?.filterable!==!1&&e.column.getCanFilter(),l=e.column.getIsSorted(),c=l||"none",d=e.column.id,u=a?n(d):[];return g.jsx(Cw,{$size:i?.size||t,$active:!!l,colSpan:e.colSpan,$width:e.getSize(),children:s?g.jsxs("section",{className:"flex",onClick:e.column.getToggleSortingHandler(),children:[g.jsx(Yu,{onClick:e.column.getToggleSortingHandler(),type:"button","aria-label":`Sort by ${br(e.column.columnDef.header,e.getContext())}`,"aria-sort":c==="asc"?"ascending":c==="desc"?"descending":"none",children:g.jsx(Ku,{$align:i?.align,children:g.jsxs(Qu,{children:[br(e.column.columnDef.header,e.getContext()),g.jsx(Tw,{$direction:c,children:c==="none"?g.jsx(Y,{component:Ry,size:"tn"}):g.jsx(Y,{component:Fy,size:"tn"})})]})})}),a&&g.jsx(xr,{column:e.column,uniqueValues:u,selectedValues:r,onChange:o})]}):g.jsx(Ku,{$align:i?.align,children:g.jsxs(Qu,{children:[br(e.column.columnDef.header,e.getContext()),a&&g.jsx(xr,{column:e.column,uniqueValues:u,selectedValues:r,onChange:o})]})})})},td=({headerGroup:e})=>g.jsx(Wu,{children:e.headers.map(t=>g.jsx(ed,{header:t},t.id))}),Gi=({headerGroups:e,stickyHeader:t,className:n})=>g.jsx(xw,{$sticky:t,className:n,children:e.map(r=>g.jsx(td,{headerGroup:r},r.id))}),_w={sm:S`
1925
- ${qt.sm}
1926
- ${F[14]}
1927
- `,md:S`
1928
- ${qt.md}
1929
- ${F[14]}
1930
- `,lg:S`
1931
- ${qt.lg}
1932
- ${F[16]}
1933
- `},Nw=P.td`
1865
+ `,Jl=({header:e})=>{const{size:t,getUniqueValues:n}=Ht(),{selectedValues:o,handleChange:r}=Xl(e.column.id),i=e.column.columnDef.meta,s=e.column.getCanSort()&&i?.sortable!==!1,a=i?.filterable!==!1&&e.column.getCanFilter(),l=e.column.getIsSorted(),c=l||"none",d=e.column.id,u=a?n(d):[];return p.jsx(mv,{$size:i?.size||t,$active:!!l,colSpan:e.colSpan,$width:e.getSize(),children:s?p.jsxs("section",{className:"flex",onClick:e.column.getToggleSortingHandler(),children:[p.jsx(Kl,{onClick:e.column.getToggleSortingHandler(),type:"button","aria-label":`Sort by ${xn(e.column.columnDef.header,e.getContext())}`,"aria-sort":c==="asc"?"ascending":c==="desc"?"descending":"none",children:p.jsx(Ul,{$align:i?.align,children:p.jsxs(Zl,{children:[xn(e.column.columnDef.header,e.getContext()),p.jsx(pv,{$direction:c,children:c==="none"?p.jsx(H,{component:Pp,size:"tn"}):p.jsx(H,{component:Tp,size:"tn"})})]})})}),a&&p.jsx(Sn,{column:e.column,uniqueValues:u,selectedValues:o,onChange:r})]}):p.jsx(Ul,{$align:i?.align,children:p.jsxs(Zl,{children:[xn(e.column.columnDef.header,e.getContext()),a&&p.jsx(Sn,{column:e.column,uniqueValues:u,selectedValues:o,onChange:r})]})})})},Ql=({headerGroup:e})=>p.jsx(Gl,{children:e.headers.map(t=>p.jsx(Jl,{header:t},t.id))}),kr=({headerGroups:e,stickyHeader:t,className:n})=>p.jsx(fv,{$sticky:t,className:n,children:e.map(o=>p.jsx(Ql,{headerGroup:o},o.id))}),kv={sm:g.css`
1866
+ ${ht.sm}
1867
+ ${E[14]}
1868
+ `,md:g.css`
1869
+ ${ht.md}
1870
+ ${E[14]}
1871
+ `,lg:g.css`
1872
+ ${ht.lg}
1873
+ ${E[16]}
1874
+ `},Vv=g.td`
1934
1875
  min-width: 0;
1935
1876
  max-width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"auto"};
1936
1877
 
1937
- ${({$width:e})=>e?S`
1878
+ ${({$width:e})=>e?g.css`
1938
1879
  min-width: ${typeof e=="number"?`${e}px`:e};
1939
1880
  max-width: ${typeof e=="number"?`${e}px`:e};
1940
1881
  width: ${typeof e=="number"?`${e}px`:e};
1941
- `:S`
1882
+ `:g.css`
1942
1883
  min-width: 0;
1943
1884
  width: auto;
1944
1885
  `}
1945
1886
 
1946
1887
  vertical-align: middle;
1947
1888
  color: var(--color-main-blue-primary);
1948
- ${({$size:e})=>_w[e]}
1889
+ ${({$size:e})=>kv[e]}
1949
1890
  text-align: ${({$align:e})=>e||"left"};
1950
1891
  border-left: 1px solid var(--color-main-light-borders);
1951
1892
  border-top: 1px solid var(--color-main-light-borders);
1952
1893
  transition: background-color 0.3s ease-out;
1953
- `,Ow=P.section`
1954
- ${Gu};
1894
+ `,Ev=g.section`
1895
+ ${Hl};
1955
1896
  justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
1956
1897
 
1957
1898
  width: 100%;
1958
- `,Bw=P.span`
1899
+ `,Dv=g.span`
1959
1900
  width: 100%;
1960
- ${({$ellipsis:e})=>e&&S`
1901
+ ${({$ellipsis:e})=>e&&g.css`
1961
1902
  min-width: 0;
1962
1903
  overflow: hidden;
1963
1904
  text-overflow: ellipsis;
1964
1905
  white-space: nowrap;
1965
1906
  `}
1966
- `,nd=({cell:e,rowClassName:t})=>{const{size:n}=kn(),r=e.column.columnDef.meta,o=e.getValue(),i=typeof o=="string"||typeof o=="number"?String(o):void 0,s=[r?.className||"",t||""].filter(Boolean).join(" ");return g.jsx(Nw,{$size:r?.size||n,$align:r?.align,$width:e.column.getSize(),title:r?.ellipsis&&i?i:void 0,className:s,children:g.jsx(Ow,{$align:r?.align,children:g.jsx(Bw,{$ellipsis:r?.ellipsis,children:br(e.column.columnDef.cell,e.getContext())})})})};function zw({row:e,className:t,cellClassName:n}){const{onRowClick:r}=kn(),o=!!r;return g.jsx(Wu,{$clickable:o,onClick:()=>o&&r(e.original),role:o?"button":void 0,tabIndex:o?0:void 0,className:t,children:e.getVisibleCells().map(i=>g.jsx(nd,{cell:i,rowClassName:n},i.id))})}const rd=p.memo(zw),Ui=({rows:e,className:t,rowClassName:n,cellClassName:r})=>g.jsxs("tbody",{className:t,children:[e.map(o=>{const i=typeof n=="function"?n(o):n,s=typeof r=="function"?r(o):r;return g.jsx(rd,{row:o,className:i,cellClassName:s},o.id)}),e.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:100,className:"py-4 text-center text-[var(--color-main-grey)]",children:"No results found"})})]}),Hw=P.section`
1907
+ `,ec=({cell:e,rowClassName:t})=>{const{size:n}=Ht(),o=e.column.columnDef.meta,r=e.getValue(),i=typeof r=="string"||typeof r=="number"?String(r):void 0,s=[o?.className||"",t||""].filter(Boolean).join(" ");return p.jsx(Vv,{$size:o?.size||n,$align:o?.align,$width:e.column.getSize(),title:o?.ellipsis&&i?i:void 0,className:s,children:p.jsx(Ev,{$align:o?.align,children:p.jsx(Dv,{$ellipsis:o?.ellipsis,children:xn(e.column.columnDef.cell,e.getContext())})})})};function Fv({row:e,className:t,cellClassName:n}){const{onRowClick:o}=Ht(),r=!!o;return p.jsx(Gl,{$clickable:r,onClick:()=>r&&o(e.original),role:r?"button":void 0,tabIndex:r?0:void 0,className:t,children:e.getVisibleCells().map(i=>p.jsx(ec,{cell:i,rowClassName:n},i.id))})}const tc=m.memo(Fv),Vr=({rows:e,className:t,rowClassName:n,cellClassName:o})=>p.jsxs("tbody",{className:t,children:[e.map(r=>{const i=typeof n=="function"?n(r):n,s=typeof o=="function"?o(r):o;return p.jsx(tc,{row:r,className:i,cellClassName:s},r.id)}),e.length===0&&p.jsx("tr",{children:p.jsx("td",{colSpan:100,className:"py-4 text-center text-[var(--color-main-grey)]",children:"No results found"})})]}),Av=g.section`
1967
1908
  display: flex;
1968
1909
  align-items: center;
1969
1910
  gap: 0.5rem;
@@ -1974,8 +1915,8 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1974
1915
  justify-content: center;
1975
1916
  gap: 0.25rem;
1976
1917
  }
1977
- `,od=P.button`
1978
- ${F[14]}
1918
+ `,nc=g.button`
1919
+ ${E[14]}
1979
1920
  display: flex;
1980
1921
  align-items: center;
1981
1922
  justify-content: center;
@@ -2004,7 +1945,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2004
1945
  outline-color: var(--color-main-blue-primary);
2005
1946
  outline-offset: 2px;
2006
1947
  }
2007
- `,id=P(od)`
1948
+ `,oc=g(nc)`
2008
1949
  gap: 0.25rem;
2009
1950
  padding: 0 0.75rem;
2010
1951
  font-weight: 400;
@@ -2018,10 +1959,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2018
1959
  height: 1rem;
2019
1960
  }
2020
1961
  }
2021
- `,jw=P(od)`
1962
+ `,Iv=g(nc)`
2022
1963
  min-width: 2rem;
2023
- `,Gw=P.span`
2024
- ${F[14]}
1964
+ `,Lv=g.span`
1965
+ ${E[14]}
2025
1966
  display: flex;
2026
1967
  align-items: center;
2027
1968
  justify-content: center;
@@ -2029,7 +1970,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2029
1970
  height: 2rem;
2030
1971
  color: var(--color-main-blue-primary);
2031
1972
  user-select: none;
2032
- `,Uw=P.div`
1973
+ `,Rv=g.div`
2033
1974
  display: flex;
2034
1975
  align-items: center;
2035
1976
  gap: 0.5rem;
@@ -2048,9 +1989,9 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2048
1989
  justify-content: center;
2049
1990
  order: 10; /* Move to bottom on mobile */
2050
1991
  }
2051
- `,Ww=P(mr)`
1992
+ `,_v=g(gn)`
2052
1993
  button {
2053
- ${F[14]}
1994
+ ${E[14]}
2054
1995
  height: 2rem;
2055
1996
  min-height: 2rem;
2056
1997
  border-radius: var(--border-radius-outline);
@@ -2058,13 +1999,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2058
1999
  }
2059
2000
 
2060
2001
  li {
2061
- ${F[14]}
2002
+ ${E[14]}
2062
2003
  }
2063
2004
 
2064
2005
  div {
2065
2006
  right: 10%;
2066
2007
  }
2067
- `,Kw=({onPageChange:e,onPerPageChange:t,perPage:n=10,page:r=1,totalPages:o,totalRecords:i,rowsPerPageOptions:s})=>{const l=(()=>{const f=[];if(o<=7)for(let y=1;y<=o;y++)f.push(y);else{f.push(1),r>3&&f.push("...");const y=Math.max(2,r-1),x=Math.min(o-1,r+1);for(let v=y;v<=x;v++)f.push(v);r<o-2&&f.push("..."),f.push(o)}return f})(),c=[{value:10,label:"10"},{value:25,label:"25"},{value:50,label:"50"},{value:100,label:"100"}],d=i!==void 0&&i>0,u=d?(r-1)*n+1:0,h=d?Math.min(r*n,i):0;return g.jsxs(Hw,{children:[d&&g.jsxs(bn,{size:14,children:["Showing ",u,"-",h," of ",i]}),g.jsxs(id,{onClick:()=>e(r-1),$disabled:r===1,disabled:r===1,"aria-label":"Previous page",children:[g.jsx(Wy,{size:24}),"Previous"]}),l.map((f,m)=>f==="..."?g.jsx(Gw,{children:"..."},`ellipsis-${m}`):g.jsx(jw,{onClick:()=>e(f),$active:r===f,"aria-label":`Go to page ${f}`,"aria-current":r===f?"page":void 0,children:f},f)),g.jsxs(id,{onClick:()=>e(r+1),$disabled:r===o,disabled:r===o,"aria-label":"Next page",children:["Next",g.jsx(Ky,{size:24})]}),g.jsxs(Uw,{children:[g.jsx(Ww,{size:"sm",value:n,options:s||c,onOptionSelect:f=>t(Number(f.value))}),g.jsx(bn,{size:12,children:"Rows per page"})]})]})},sd=({sorting:e,defaultSorting:t=[],onSortingChange:n})=>{const[r,o]=p.useState(t),i=e!==void 0,s=i?e:r,a=p.useCallback(c=>{const d=typeof c=="function"?c(s):c;i||o(d),n?.(d)},[i,s,n]),l=p.useCallback(c=>{i||o(c),n?.(c)},[i,n]);return{sortingState:s,handleSortingChange:a,isControlled:i,setSorting:l}},ad=({columnFilters:e,defaultColumnFilters:t=[],onColumnFiltersChange:n})=>{const[r,o]=p.useState(t),i=e!==void 0,s=i?e:r,a=p.useCallback(c=>{const d=typeof c=="function"?c(s):c;i||o(d),n?.(d)},[i,s,n]),l=p.useCallback(c=>{i||o(c),n?.(c)},[i,n]);return{columnFiltersState:s,handleColumnFiltersChange:a,isControlled:i,setColumnFilters:l}},ld=p.createContext(void 0),kn=()=>{const e=p.useContext(ld);if(!e)throw new Error("useTableContext debe usarse dentro de Table");return e},cd=({data:e,columns:t,size:n="md",variant:r="default",stickyHeader:o=!1,maxHeight:i,sorting:s,defaultSorting:a,onSortingChange:l,columnFilters:c,defaultColumnFilters:d,onColumnFiltersChange:u,onRowClick:h,classNames:f,enableSorting:m=!0,manualSorting:y=!1,enableFiltering:x=!0,manualFiltering:v=!1,isLoading:T=!1,getUniqueValues:w})=>{const{sortingState:M,handleSortingChange:b,setSorting:$}=sd({sorting:s,defaultSorting:a,onSortingChange:l}),{columnFiltersState:k,handleColumnFiltersChange:E,setColumnFilters:D}=ad({columnFilters:c,defaultColumnFilters:d,onColumnFiltersChange:u}),A=p.useMemo(()=>{if(w)return null;const X=new Map;return t.forEach(O=>{const R=O.id??("accessorKey"in O&&O.accessorKey?String(O.accessorKey):void 0);if(!R)return;const W="accessorFn"in O?O.accessorFn:void 0;X.set(R,Hi(e,R,W))}),X},[e,t,w]),I=p.useMemo(()=>w||(X=>A?.get(X)||[]),[A,w]),N=p.useMemo(()=>t.map(X=>{const R=X.meta?.filterable!==!1;return x&&R&&!X.filterFn?{...X,filterFn:"multiSelect"}:X}),[t,x]),j=yw({data:e,columns:N,state:{sorting:M,columnFilters:k},onSortingChange:b,onColumnFiltersChange:E,getCoreRowModel:lw(),getSortedRowModel:y?void 0:hw(),getFilteredRowModel:v?void 0:fw(),enableSorting:m,enableSortingRemoval:!0,manualSorting:y,enableColumnFilters:x,manualFiltering:v,filterFns:{multiSelect:qu},globalFilterFn:"includesString"}),G={size:n,variant:r,sorting:M,setSorting:$,columnFilters:k,setColumnFilters:D,getUniqueValues:I,onRowClick:h};return g.jsx(ld.Provider,{value:G,children:g.jsx(bw,{$maxHeight:i,$stickyHeader:o,className:f?.wrapper,children:T?g.jsx(Gc,{message:"Loading data..."}):e.length===0?g.jsxs(Uu,{$variant:r,className:f?.table,children:[g.jsx(Gi,{headerGroups:j.getHeaderGroups(),stickyHeader:o,className:f?.header}),g.jsx(Ui,{rows:[],className:f?.body,rowClassName:f?.row})]}):g.jsxs(Uu,{$variant:r,className:f?.table,children:[g.jsx(Gi,{headerGroups:j.getHeaderGroups(),stickyHeader:o,className:f?.header}),g.jsx(Ui,{rows:j.getRowModel().rows,className:f?.body,rowClassName:f?.row,cellClassName:f?.cell})]})})})};cd.displayName="Table";function ud(e){const t={};for(const n of e)t[n.id]=n.desc?"desc":"asc";return t}function Yw(e){return Object.entries(e).map(([t,n])=>({id:t,desc:n==="desc"}))}function dd(e){return e.length===0?"":JSON.stringify(ud(e))}function qw(e){const t=new URLSearchParams;return e.sorting&&e.sorting.length>0&&t.append("sorts",dd(e.sorting)),e.perPage&&t.append("perPage",e.perPage.toString()),e.genericSearch&&t.append("genericSearch",e.genericSearch),e.filters&&Object.keys(e.filters).length>0&&t.append("filters",JSON.stringify(e.filters)),t}const Xw=({data:e,columns:t,initialPage:n=1,initialPerPage:r=10,initialSorting:o=[],initialColumnFilters:i=[]})=>{const[s,a]=p.useState(n),[l,c]=p.useState(r),[d,u]=p.useState(o),[h,f]=p.useState(i),m=p.useMemo(()=>{const E=new Map;return t.forEach(D=>{const A=D.id??("accessorKey"in D&&D.accessorKey?String(D.accessorKey):void 0);if(!A)return;const I="accessorFn"in D?D.accessorFn:void 0;E.set(A,Hi(e,A,I))}),E},[e,t]),y=p.useMemo(()=>E=>m.get(E)||[],[m]),x=p.useMemo(()=>h.length===0?e:e.filter(E=>h.every(D=>{const A=D.value;if(!A||A.length===0)return!0;const I=E[D.id];return I==null?!1:A.includes(String(I))})),[e,h]),v=p.useMemo(()=>d.length===0?x:[...x].sort((E,D)=>{for(const A of d){const I=E[A.id],N=D[A.id];if(I==null&&N==null)continue;if(I==null)return A.desc?-1:1;if(N==null)return A.desc?1:-1;let j=0;if(typeof I=="string"&&typeof N=="string"?j=I.localeCompare(N):typeof I=="number"&&typeof N=="number"?j=I-N:j=String(I).localeCompare(String(N)),j!==0)return A.desc?-j:j}return 0}),[x,d]),T=p.useMemo(()=>{const E=(s-1)*l,D=E+l;return v.slice(E,D)},[v,s,l]),w=e.length,M=v.length,b=Math.max(1,Math.ceil(M/l)),$=p.useCallback(E=>{a(Math.min(E,b))},[b]),k=p.useCallback(E=>{c(E),a(1)},[]);return p.useMemo(()=>{s>b&&a(1)},[s,b]),{paginatedData:T,processedData:v,page:s,perPage:l,totalPages:b,totalRecords:w,filteredRecords:M,setPage:$,setPerPage:k,sorting:d,setSorting:u,columnFilters:h,setColumnFilters:f,getUniqueValues:y}};function fd(e){const t={};return e.forEach(n=>{t[n.id]=n.value}),t}function hd(e){return JSON.stringify(fd(e))}function Zw(e,t=","){const n={};return e.forEach(r=>{const o=r.value;o&&o.length>0&&(n[`filter[${r.id}]`]=o.join(t))}),n}function Jw(e){const t={};return e.forEach(n=>{const r=n.value;r&&r.length>0&&(t[`filter[${n.id}]`]=r)}),t}function Qw({filters:e,sorts:t,page:n,perPage:r}){const o={};if(n!==void 0&&(o.page=n),r!==void 0&&(o.per_page=r),t&&t.length>0){const i=t.map(a=>a.id).join(","),s=t.map(a=>a.desc?"desc":"asc").join(",");o.sort_by=i,o.sort_order=s}return e&&e.length>0&&(o.filters=hd(e)),o}function eb(e,t=","){const n=typeof e=="string"?new URLSearchParams(e):e,r=[];return n.forEach((o,i)=>{const s=i.match(/^filter\[(.+)\]$/);if(s){const a=s[1],l=o.split(t).filter(Boolean);l.length>0&&r.push({id:a,value:l})}}),r}function tb(e){try{const t=JSON.parse(e);return Object.entries(t).map(([n,r])=>({id:n,value:r}))}catch{return[]}}function nb(...e){const t=new Map;return e.forEach(n=>{n.forEach(r=>{t.set(r.id,r.value)})}),Array.from(t.entries()).map(([n,r])=>({id:n,value:r}))}const rb=P.div`
2008
+ `,Bv=({onPageChange:e,onPerPageChange:t,perPage:n=10,page:o=1,totalPages:r,totalRecords:i,rowsPerPageOptions:s})=>{const l=(()=>{const f=[];if(r<=7)for(let y=1;y<=r;y++)f.push(y);else{f.push(1),o>3&&f.push("...");const y=Math.max(2,o-1),b=Math.min(r-1,o+1);for(let w=y;w<=b;w++)f.push(w);o<r-2&&f.push("..."),f.push(r)}return f})(),c=[{value:10,label:"10"},{value:25,label:"25"},{value:50,label:"50"},{value:100,label:"100"}],d=i!==void 0&&i>0,u=d?(o-1)*n+1:0,h=d?Math.min(o*n,i):0;return p.jsxs(Av,{children:[d&&p.jsxs(_t,{size:14,children:["Showing ",u,"-",h," of ",i]}),p.jsxs(oc,{onClick:()=>e(o-1),$disabled:o===1,disabled:o===1,"aria-label":"Previous page",children:[p.jsx(_p,{size:24}),"Previous"]}),l.map((f,v)=>f==="..."?p.jsx(Lv,{children:"..."},`ellipsis-${v}`):p.jsx(Iv,{onClick:()=>e(f),$active:o===f,"aria-label":`Go to page ${f}`,"aria-current":o===f?"page":void 0,children:f},f)),p.jsxs(oc,{onClick:()=>e(o+1),$disabled:o===r,disabled:o===r,"aria-label":"Next page",children:["Next",p.jsx(Bp,{size:24})]}),p.jsxs(Rv,{children:[p.jsx(_v,{size:"sm",value:n,options:s||c,onOptionSelect:f=>t(Number(f.value))}),p.jsx(_t,{size:12,children:"Rows per page"})]})]})},rc=({sorting:e,defaultSorting:t=[],onSortingChange:n})=>{const[o,r]=m.useState(t),i=e!==void 0,s=i?e:o,a=m.useCallback(c=>{const d=typeof c=="function"?c(s):c;i||r(d),n?.(d)},[i,s,n]),l=m.useCallback(c=>{i||r(c),n?.(c)},[i,n]);return{sortingState:s,handleSortingChange:a,isControlled:i,setSorting:l}},ic=({columnFilters:e,defaultColumnFilters:t=[],onColumnFiltersChange:n})=>{const[o,r]=m.useState(t),i=e!==void 0,s=i?e:o,a=m.useCallback(c=>{const d=typeof c=="function"?c(s):c;i||r(d),n?.(d)},[i,s,n]),l=m.useCallback(c=>{i||r(c),n?.(c)},[i,n]);return{columnFiltersState:s,handleColumnFiltersChange:a,isControlled:i,setColumnFilters:l}},sc=m.createContext(void 0),Ht=()=>{const e=m.useContext(sc);if(!e)throw new Error("useTableContext debe usarse dentro de Table");return e},ac=({data:e,columns:t,size:n="md",variant:o="default",stickyHeader:r=!1,maxHeight:i,sorting:s,defaultSorting:a,onSortingChange:l,columnFilters:c,defaultColumnFilters:d,onColumnFiltersChange:u,onRowClick:h,classNames:f,enableSorting:v=!0,manualSorting:y=!1,enableFiltering:b=!0,manualFiltering:w=!1,isLoading:T=!1,getUniqueValues:C})=>{const{sortingState:M,handleSortingChange:x,setSorting:P}=rc({sorting:s,defaultSorting:a,onSortingChange:l}),{columnFiltersState:V,handleColumnFiltersChange:$,setColumnFilters:F}=ic({columnFilters:c,defaultColumnFilters:d,onColumnFiltersChange:u}),D=m.useMemo(()=>{if(C)return null;const K=new Map;return t.forEach(R=>{const L=R.id??("accessorKey"in R&&R.accessorKey?String(R.accessorKey):void 0);if(!L)return;const G="accessorFn"in R?R.accessorFn:void 0;K.set(L,Pr(e,L,G))}),K},[e,t,C]),_=m.useMemo(()=>C||(K=>D?.get(K)||[]),[D,C]),N=m.useMemo(()=>t.map(K=>{const L=K.meta?.filterable!==!1;return b&&L&&!K.filterFn?{...K,filterFn:"multiSelect"}:K}),[t,b]),O=lv({data:e,columns:N,state:{sorting:M,columnFilters:V},onSortingChange:x,onColumnFiltersChange:$,getCoreRowModel:Q0(),getSortedRowModel:y?void 0:rv(),getFilteredRowModel:w?void 0:ov(),enableSorting:v,enableSortingRemoval:!0,manualSorting:y,enableColumnFilters:b,manualFiltering:w,filterFns:{multiSelect:Wl},globalFilterFn:"includesString"}),j={size:n,variant:o,sorting:M,setSorting:P,columnFilters:V,setColumnFilters:F,getUniqueValues:_,onRowClick:h};return p.jsx(sc.Provider,{value:j,children:p.jsx(dv,{$maxHeight:i,$stickyHeader:r,className:f?.wrapper,children:T?p.jsx(Ha,{message:"Loading data..."}):e.length===0?p.jsxs(jl,{$variant:o,className:f?.table,children:[p.jsx(kr,{headerGroups:O.getHeaderGroups(),stickyHeader:r,className:f?.header}),p.jsx(Vr,{rows:[],className:f?.body,rowClassName:f?.row})]}):p.jsxs(jl,{$variant:o,className:f?.table,children:[p.jsx(kr,{headerGroups:O.getHeaderGroups(),stickyHeader:r,className:f?.header}),p.jsx(Vr,{rows:O.getRowModel().rows,className:f?.body,rowClassName:f?.row,cellClassName:f?.cell})]})})})};ac.displayName="Table";function lc(e){const t={};for(const n of e)t[n.id]=n.desc?"desc":"asc";return t}function Nv(e){return Object.entries(e).map(([t,n])=>({id:t,desc:n==="desc"}))}function cc(e){return e.length===0?"":JSON.stringify(lc(e))}function zv(e){const t=new URLSearchParams;return e.sorting&&e.sorting.length>0&&t.append("sorts",cc(e.sorting)),e.perPage&&t.append("perPage",e.perPage.toString()),e.genericSearch&&t.append("genericSearch",e.genericSearch),e.filters&&Object.keys(e.filters).length>0&&t.append("filters",JSON.stringify(e.filters)),t}const Ov=({data:e,columns:t,initialPage:n=1,initialPerPage:o=10,initialSorting:r=[],initialColumnFilters:i=[]})=>{const[s,a]=m.useState(n),[l,c]=m.useState(o),[d,u]=m.useState(r),[h,f]=m.useState(i),v=m.useMemo(()=>{const $=new Map;return t.forEach(F=>{const D=F.id??("accessorKey"in F&&F.accessorKey?String(F.accessorKey):void 0);if(!D)return;const _="accessorFn"in F?F.accessorFn:void 0;$.set(D,Pr(e,D,_))}),$},[e,t]),y=m.useMemo(()=>$=>v.get($)||[],[v]),b=m.useMemo(()=>h.length===0?e:e.filter($=>h.every(F=>{const D=F.value;if(!D||D.length===0)return!0;const _=$[F.id];return _==null?!1:D.includes(String(_))})),[e,h]),w=m.useMemo(()=>d.length===0?b:[...b].sort(($,F)=>{for(const D of d){const _=$[D.id],N=F[D.id];if(_==null&&N==null)continue;if(_==null)return D.desc?-1:1;if(N==null)return D.desc?1:-1;let O=0;if(typeof _=="string"&&typeof N=="string"?O=_.localeCompare(N):typeof _=="number"&&typeof N=="number"?O=_-N:O=String(_).localeCompare(String(N)),O!==0)return D.desc?-O:O}return 0}),[b,d]),T=m.useMemo(()=>{const $=(s-1)*l,F=$+l;return w.slice($,F)},[w,s,l]),C=e.length,M=w.length,x=Math.max(1,Math.ceil(M/l)),P=m.useCallback($=>{a(Math.min($,x))},[x]),V=m.useCallback($=>{c($),a(1)},[]);return m.useMemo(()=>{s>x&&a(1)},[s,x]),{paginatedData:T,processedData:w,page:s,perPage:l,totalPages:x,totalRecords:C,filteredRecords:M,setPage:P,setPerPage:V,sorting:d,setSorting:u,columnFilters:h,setColumnFilters:f,getUniqueValues:y}};function uc(e){const t={};return e.forEach(n=>{t[n.id]=n.value}),t}function dc(e){return JSON.stringify(uc(e))}function Hv(e,t=","){const n={};return e.forEach(o=>{const r=o.value;r&&r.length>0&&(n[`filter[${o.id}]`]=r.join(t))}),n}function jv(e){const t={};return e.forEach(n=>{const o=n.value;o&&o.length>0&&(t[`filter[${n.id}]`]=o)}),t}function Gv({filters:e,sorts:t,page:n,perPage:o}){const r={};if(n!==void 0&&(r.page=n),o!==void 0&&(r.per_page=o),t&&t.length>0){const i=t.map(a=>a.id).join(","),s=t.map(a=>a.desc?"desc":"asc").join(",");r.sort_by=i,r.sort_order=s}return e&&e.length>0&&(r.filters=dc(e)),r}function Uv(e,t=","){const n=typeof e=="string"?new URLSearchParams(e):e,o=[];return n.forEach((r,i)=>{const s=i.match(/^filter\[(.+)\]$/);if(s){const a=s[1],l=r.split(t).filter(Boolean);l.length>0&&o.push({id:a,value:l})}}),o}function Kv(e){try{const t=JSON.parse(e);return Object.entries(t).map(([n,o])=>({id:n,value:o}))}catch{return[]}}function Wv(...e){const t=new Map;return e.forEach(n=>{n.forEach(o=>{t.set(o.id,o.value)})}),Array.from(t.entries()).map(([n,o])=>({id:n,value:o}))}const qv=g.div`
2068
2009
  position: relative;
2069
2010
  display: flex;
2070
2011
  align-items: center;
@@ -2082,7 +2023,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2082
2023
  outline: 2px solid var(--color-main-blue-primary);
2083
2024
  outline-offset: 2px;
2084
2025
  }
2085
- `,ob=P.div`
2026
+ `,Yv=g.div`
2086
2027
  width: 2rem;
2087
2028
  height: 2rem;
2088
2029
  border-radius: 50%;
@@ -2090,7 +2031,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2090
2031
  display: flex;
2091
2032
  align-items: center;
2092
2033
  justify-content: center;
2093
- `,ib=P.div`
2034
+ `,Xv=g.div`
2094
2035
  display: flex;
2095
2036
  flex-direction: column;
2096
2037
  align-items: flex-start;
@@ -2098,7 +2039,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2098
2039
  @media (max-width: 640px) {
2099
2040
  display: none;
2100
2041
  }
2101
- `,sb=P(Ke.div)`
2042
+ `,Zv=g(Fe.div)`
2102
2043
  display: flex;
2103
2044
  align-items: center;
2104
2045
  justify-content: center;
@@ -2107,7 +2048,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2107
2048
  @media (max-width: 640px) {
2108
2049
  display: none;
2109
2050
  }
2110
- `,ab=P(Ke.div)`
2051
+ `,Jv=g(Fe.div)`
2111
2052
  position: absolute;
2112
2053
  top: 100%;
2113
2054
  right: 0;
@@ -2119,7 +2060,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2119
2060
  box-shadow: var(--shadow-black-card);
2120
2061
  z-index: 100;
2121
2062
  overflow: hidden;
2122
- `,lb=P.button`
2063
+ `,Qv=g.button`
2123
2064
  width: 100%;
2124
2065
  display: flex;
2125
2066
  align-items: center;
@@ -2143,7 +2084,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2143
2084
  &.danger {
2144
2085
  color: var(--color-main-waringn-state);
2145
2086
  }
2146
- `,Wi=({user:e,onProfileClick:t,onLogout:n,menuItems:r=[]})=>{const[o,i]=p.useState(!1),s=p.useRef(null);p.useEffect(()=>{if(!o)return;const d=u=>{s.current&&!s.current.contains(u.target)&&i(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[o]),p.useEffect(()=>{if(!o)return;const d=u=>{u.key==="Escape"&&i(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[o]);const a=d=>d.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2),c=[...[{id:"profile",label:"Profile",icon:Uy,onClick:()=>{i(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:zy,onClick:()=>{i(!1),n?.()},variant:"danger"}],...r];return g.jsxs("div",{ref:s,children:[g.jsxs(rb,{onClick:()=>i(!o),role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),i(!o))},children:[g.jsx(ob,{children:e.avatarUrl?g.jsx("img",{src:e.avatarUrl,alt:e.name}):g.jsx(Ge,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),g.jsxs(ib,{children:[g.jsx(Ge,{size:14,className:"!font-semibold",children:e.name}),g.jsx(Ge,{size:12,children:e.role})]}),g.jsx(sb,{animate:{rotate:o?-180:0},transition:{duration:.3},children:g.jsx(Y,{component:Xc,size:"sm",color:"var(--color-main-blue-primary)"})})]}),g.jsx(gn,{children:o&&g.jsx(ab,{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:c.map(d=>g.jsx(p.Fragment,{children:g.jsxs(lb,{onClick:d.onClick,className:d.variant==="danger"?"danger":"",children:[g.jsx(Y,{component:d.icon,size:"sm",color:d.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),g.jsx(Ge,{size:14,color:`${d.variant==="danger"&&"var(--color-main-warning-state)"}`,children:d.label})]})},d.id))})})]})};Wi.displayName="UserProfile";const pd=({hasNotifications:e=!1,notificationCount:t})=>{const n=(t??0)>0||e,r=t&&t>0?t:void 0,o=r?`${r} notification${r===1?"":"s"}`:n?"New notifications":"No notifications",i=`Notifications: ${o}`;return{effectiveHasNotifications:n,displayCount:r,badgeLabel:o,bellAriaLabel:i}},cb=P.button`
2087
+ `,Er=({user:e,onProfileClick:t,onLogout:n,menuItems:o=[]})=>{const[r,i]=m.useState(!1),s=m.useRef(null);m.useEffect(()=>{if(!r)return;const d=u=>{s.current&&!s.current.contains(u.target)&&i(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[r]),m.useEffect(()=>{if(!r)return;const d=u=>{u.key==="Escape"&&i(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[r]);const a=d=>d.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2),c=[...[{id:"profile",label:"Profile",icon:Rp,onClick:()=>{i(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:Fp,onClick:()=>{i(!1),n?.()},variant:"danger"}],...o];return p.jsxs("div",{ref:s,children:[p.jsxs(qv,{onClick:()=>i(!r),role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),i(!r))},children:[p.jsx(Yv,{children:e.avatarUrl?p.jsx("img",{src:e.avatarUrl,alt:e.name}):p.jsx(Ve,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),p.jsxs(Xv,{children:[p.jsx(Ve,{size:14,className:"!font-semibold",children:e.name}),p.jsx(Ve,{size:12,children:e.role})]}),p.jsx(Zv,{animate:{rotate:r?-180:0},transition:{duration:.3},children:p.jsx(H,{component:qa,size:"sm",color:"var(--color-main-blue-primary)"})})]}),p.jsx(At,{children:r&&p.jsx(Jv,{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:c.map(d=>p.jsx(m.Fragment,{children:p.jsxs(Qv,{onClick:d.onClick,className:d.variant==="danger"?"danger":"",children:[p.jsx(H,{component:d.icon,size:"sm",color:d.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),p.jsx(Ve,{size:14,color:`${d.variant==="danger"&&"var(--color-main-warning-state)"}`,children:d.label})]})},d.id))})})]})};Er.displayName="UserProfile";const fc=({hasNotifications:e=!1,notificationCount:t})=>{const n=(t??0)>0||e,o=t&&t>0?t:void 0,r=o?`${o} notification${o===1?"":"s"}`:n?"New notifications":"No notifications",i=`Notifications: ${r}`;return{effectiveHasNotifications:n,displayCount:o,badgeLabel:r,bellAriaLabel:i}},ey=g.button`
2147
2088
  position: relative;
2148
2089
  background: transparent;
2149
2090
  border: none;
@@ -2167,7 +2108,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2167
2108
  &:active {
2168
2109
  transform: scale(0.92);
2169
2110
  }
2170
- `,ub=P.span`
2111
+ `,ty=g.span`
2171
2112
  position: absolute;
2172
2113
  top: 0.35rem;
2173
2114
  right: 0.35rem;
@@ -2183,7 +2124,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2183
2124
  min-width: ${({$withCount:e})=>e?"1rem":"0.55rem"};
2184
2125
  height: ${({$withCount:e})=>e?"1rem":"0.55rem"};
2185
2126
  padding: ${({$withCount:e})=>e?"0 0.25rem":"0"};
2186
- `,Ki=({hasNotifications:e=!1,notificationCount:t,onNotificationClick:n})=>{const{effectiveHasNotifications:r,displayCount:o,bellAriaLabel:i}=pd({hasNotifications:e,notificationCount:t});return g.jsxs(cb,{onClick:n,"aria-label":i,title:i,"data-has":r||void 0,children:[g.jsx(Y,{component:r?Hy:jy,size:"md",color:"var(--color-main-blue-primary)"}),r&&g.jsx(ub,{$withCount:!!o,"aria-hidden":!!o,children:o&&(o>99?"99+":o)})]})};Ki.displayName="NotificationButton";const db=P.header`
2127
+ `,Dr=({hasNotifications:e=!1,notificationCount:t,onNotificationClick:n})=>{const{effectiveHasNotifications:o,displayCount:r,bellAriaLabel:i}=fc({hasNotifications:e,notificationCount:t});return p.jsxs(ey,{onClick:n,"aria-label":i,title:i,"data-has":o||void 0,children:[p.jsx(H,{component:o?Ap:Ip,size:"md",color:"var(--color-main-blue-primary)"}),o&&p.jsx(ty,{$withCount:!!r,"aria-hidden":!!r,children:r&&(r>99?"99+":r)})]})};Dr.displayName="NotificationButton";const ny=g.header`
2187
2128
  position: fixed;
2188
2129
  top: 0;
2189
2130
  left: 0;
@@ -2199,15 +2140,15 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2199
2140
  padding: 0 1rem;
2200
2141
  transition: padding-left 0.3s ease-out;
2201
2142
  padding-left: 5rem;
2202
- `,fb=P.div`
2143
+ `,oy=g.div`
2203
2144
  display: flex;
2204
2145
  align-items: center;
2205
2146
  gap: 1rem;
2206
- `,hb=P.div`
2147
+ `,ry=g.div`
2207
2148
  display: flex;
2208
2149
  align-items: center;
2209
2150
  gap: 1rem;
2210
- `,Yi=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:i,userMenuItems:s,children:a})=>g.jsxs(db,{children:[g.jsx(fb,{children:a}),g.jsxs(hb,{children:[g.jsx(Ki,{hasNotifications:t,notificationCount:n,onNotificationClick:r}),e&&g.jsx(Wi,{user:e,onProfileClick:o,onLogout:i,menuItems:s})]})]});Yi.displayName="Header";const pb=P.main`
2151
+ `,Fr=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:o,onUserProfileClick:r,onLogout:i,userMenuItems:s,children:a})=>p.jsxs(ny,{children:[p.jsx(oy,{children:a}),p.jsxs(ry,{children:[p.jsx(Dr,{hasNotifications:t,notificationCount:n,onNotificationClick:o}),e&&p.jsx(Er,{user:e,onProfileClick:r,onLogout:i,menuItems:s})]})]});Fr.displayName="Header";const iy=g.main`
2211
2152
  flex: 1;
2212
2153
  margin-top: 4rem;
2213
2154
  /* Mobile-first: no lateral offset so content occupies full width */
@@ -2223,30 +2164,30 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2223
2164
  @media (min-width: 1200px) {
2224
2165
  margin-left: 5rem;
2225
2166
  }
2226
- `,qi=({children:e,className:t})=>g.jsx(pb,{className:t,children:e});qi.displayName="LayoutMainContent";const mb=P.div`
2167
+ `,Ar=({children:e,className:t})=>p.jsx(iy,{className:t,children:e});Ar.displayName="LayoutMainContent";const sy=g.div`
2227
2168
  display: flex;
2228
2169
  flex-direction: column;
2229
2170
  height: 100vh;
2230
2171
  overflow: hidden;
2231
- `,gb=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:i=!1,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onNavigate:c,onLogout:d,userMenuItems:u=[],contentClassName:h,logoImgCollapsed:f,logoImgExpanded:m})=>g.jsxs(mb,{children:[g.jsx(Ti,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:f,logoImgExpanded:m,onNavigate:c}),g.jsx(Yi,{user:o,hasNotifications:i,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onLogout:d,userMenuItems:u}),g.jsx(qi,{className:h,children:e})]}),yb=e=>g.jsx(wu,{children:g.jsx(gb,{...e})});function vb(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 wb(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function bb(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const Pn={sm:{circle:"2rem",fontSize:F[14],line:"2px"},md:{circle:"2.5rem",fontSize:F[18],line:"2px"},lg:{circle:"3.25rem",fontSize:F[20],line:"3px"}},xb=P.div`
2172
+ `,ay=({children:e,navigationConfig:t,userRoles:n=[],activePath:o,user:r,hasNotifications:i=!1,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onNavigate:c,onLogout:d,userMenuItems:u=[],contentClassName:h,logoImgCollapsed:f,logoImgExpanded:v})=>p.jsxs(sy,{children:[p.jsx(lr,{navigationConfig:t,userRoles:n,activePath:o,logoImgCollapsed:f,logoImgExpanded:v,onNavigate:c}),p.jsx(Fr,{user:r,hasNotifications:i,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onLogout:d,userMenuItems:u}),p.jsx(Ar,{className:h,children:e})]}),ly=e=>p.jsx(vl,{children:p.jsx(ay,{...e})});function cy(e,t,n){let o=`${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;if(n){const r=new Date(Date.now()+n*864e5).toUTCString();o+=`; expires=${r}`}document.cookie=o}function uy(e){return document.cookie.split("; ").reduce((t,n)=>{const o=n.split("=");return o[0]===e?decodeURIComponent(o[1]):t},"")}function dy(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const jt={sm:{circle:"2rem",fontSize:E[14],line:"2px"},md:{circle:"2.5rem",fontSize:E[18],line:"2px"},lg:{circle:"3.25rem",fontSize:E[20],line:"3px"}},fy=g.div`
2232
2173
  display: flex;
2233
2174
  width: 100%;
2234
- `,Sb=P.div`
2175
+ `,hy=g.div`
2235
2176
  display: flex;
2236
2177
  flex-direction: ${({$orientation:e})=>e==="vertical"?"column":"row"};
2237
2178
  align-items: center;
2238
2179
  width: 100%;
2239
- `,Cb=P.div`
2180
+ `,my=g.div`
2240
2181
  display: flex;
2241
2182
  align-items: center;
2242
2183
  justify-content: center;
2243
2184
  position: relative;
2244
- `,md=P.div`
2185
+ `,hc=g.div`
2245
2186
  display: flex;
2246
2187
  align-items: center;
2247
2188
  justify-content: center;
2248
- width: ${({$size:e})=>Pn[e].circle};
2249
- height: ${({$size:e})=>Pn[e].circle};
2189
+ width: ${({$size:e})=>jt[e].circle};
2190
+ height: ${({$size:e})=>jt[e].circle};
2250
2191
  outline-offset: 2px;
2251
2192
  outline: 2px solid transparent;
2252
2193
  border-radius: 50%;
@@ -2260,21 +2201,21 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2260
2201
  flex-shrink: 0;
2261
2202
  box-shadow: var(--shadow-black-button);
2262
2203
 
2263
- ${({$size:e})=>Pn[e].fontSize}
2204
+ ${({$size:e})=>jt[e].fontSize}
2264
2205
 
2265
- ${({$isCompleted:e,$isActive:t})=>t?S`
2206
+ ${({$isCompleted:e,$isActive:t})=>t?g.css`
2266
2207
  background-color: var(--color-main-blue-primary);
2267
2208
  color: var(--color-main-white);
2268
2209
  box-shadow: var(--shadow-hover-black-button);
2269
- `:e?S`
2210
+ `:e?g.css`
2270
2211
  background-color: var(--color-main-blue-primary);
2271
2212
  color: var(--color-main-white);
2272
- `:S`
2213
+ `:g.css`
2273
2214
  background-color: var(--color-dark-300);
2274
2215
  color: var(--color-main-white);
2275
2216
  `}
2276
2217
 
2277
- ${({$isClickable:e})=>e&&S`
2218
+ ${({$isClickable:e})=>e&&g.css`
2278
2219
  cursor: pointer;
2279
2220
 
2280
2221
  &:hover {
@@ -2287,21 +2228,21 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2287
2228
  box-shadow: var(--shadow-hover-black-button);
2288
2229
  }
2289
2230
  `}
2290
- `,Tb=P.div`
2231
+ `,py=g.div`
2291
2232
  background-color: ${({$isCompleted:e})=>e?"var(--color-main-blue-primary)":"var(--color-dark-300)"};
2292
2233
  transition: background-color 0.3s ease;
2293
2234
 
2294
- ${({$orientation:e,$size:t})=>e==="vertical"?S`
2295
- width: ${Pn[t].line};
2235
+ ${({$orientation:e,$size:t})=>e==="vertical"?g.css`
2236
+ width: ${jt[t].line};
2296
2237
  height: 2rem;
2297
- `:S`
2298
- height: ${Pn[t].line};
2238
+ `:g.css`
2239
+ height: ${jt[t].line};
2299
2240
  flex: 1;
2300
2241
  min-width: 2rem;
2301
2242
  `}
2302
- `,kb=P.span`
2243
+ `,gy=g.span`
2303
2244
  position: absolute;
2304
- ${F[14]}
2245
+ ${E[14]}
2305
2246
  font-weight: 500;
2306
2247
  color: var(--color-main-white);
2307
2248
  background-color: var(--color-main-blue-primary);
@@ -2329,7 +2270,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2329
2270
  border-left-color: var(--color-main-blue-primary);
2330
2271
  }
2331
2272
 
2332
- ${md}:hover & {
2273
+ ${hc}:hover & {
2333
2274
  opacity: 1;
2334
2275
  }
2335
- `,Pb=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:i})=>{const s=a=>{o?.(a)};return g.jsx(xb,{$orientation:n,className:i,children:g.jsx(Sb,{$orientation:n,children:e.map((a,l)=>{const c=l===t,d=l<t,u=o!=null;return g.jsxs(g.Fragment,{children:[g.jsx(Cb,{$orientation:n,children:g.jsxs(md,{$isActive:c,$isCompleted:d,$size:r,$isClickable:u,onClick:()=>u&&s(l),role:u?"button":void 0,tabIndex:u?0:void 0,"aria-current":c?"step":void 0,"aria-label":a.label,onKeyDown:h=>{u&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),s(l))},children:[a.content??l+1,a.label&&n==="vertical"&&g.jsx(kb,{children:a.label})]})}),l<e.length-1&&g.jsx(Tb,{$isCompleted:d,$orientation:n,$size:r})]},a.id)})})})};C.ALLOWED_INPUT_TYPES=Kc,C.Aside=Cu,C.Badge=V0,C.BaseInput=di,C.BrandLogo=ku,C.Button=Kt,C.Card=gy,C.CardBody=by,C.CardFooter=Sy,C.CardHeader=vy,C.Checkbox=Sn,C.CheckboxInput=pi,C.CheckboxLabel=su,C.CloseOpenButton=$u,C.ColumnFilter=xr,C.ColumnFilterMenu=ji,C.Dialog=pu,C.DialogBody=gu,C.DialogFooter=yu,C.DialogHeader=mu,C.Divider=I0,C.ErrorMessage=ui,C.FileList=iu,C.FileUpload=Dv,C.FilterOption=zi,C.FormField=n1,C.FullScreenSpinner=C0,C.Header=Yi,C.HeadingBold=zs,C.HeadingRegular=Rf,C.Icon=Y,C.IconWrapperStyles=pr,C.InfoLabel=bn,C.Label=fr,C.Layout=yb,C.LayoutMainContent=qi,C.Link=Vu,C.LinkDisabledStyles=Au,C.LinkSizeStyles=Du,C.LinkVariantStyles=Mu,C.MobileOpenBtn=Eu,C.Nav=Pu,C.NotificationButton=Ki,C.Overlay=Su,C.PasswordInput=eu,C.PinInput=mi,C.PinInputGroup=gi,C.RadioInput=wi,C.RadioInputDot=yi,C.RadioInputLabel=vi,C.SearchInput=hi,C.SectionSpinner=Gc,C.SelectInput=mr,C.Sidebar=Ti,C.SidebarContext=xi,C.SidebarHeader=Tu,C.SidebarProvider=wu,C.Spinner=ur,C.Stepper=Pb,C.Table=cd,C.TableBody=Ui,C.TableCell=nd,C.TableHeader=Gi,C.TableHeaderCell=ed,C.TableHeaderRow=td,C.TablePagination=Kw,C.TableRow=rd,C.TermsAndConditions=h1,C.Text=Ge,C.TextAreaInput=fi,C.ToastProvider=uy,C.Tooltip=vu,C.UserProfile=Wi,C.baseFieldStyles=Tt,C.baseInputStyles=hr,C.bodyTextStyles=F,C.columnFiltersToArrayQueryParams=Jw,C.columnFiltersToJsonString=hd,C.columnFiltersToQueryParams=Zw,C.columnFiltersToRecord=fd,C.createBackendParams=qw,C.createBackendParamsWithFilters=Qw,C.createColumnHelper=V1,C.createFieldConfig=My,C.createInputRefs=uu,C.deleteCookie=bb,C.disabledStyles=st,C.errorStyles=kt,C.flushedStyles=qc,C.getActiveFilterCount=Ew,C.getActiveFilterValues=Zu,C.getColumnValueCounts=Pw,C.getCookie=wb,C.getPropsForInputType=Ay,C.getUniqueColumnValues=Hi,C.handleDigitChange=au,C.handleKeyDown=lu,C.handlePaste=cu,C.hasActiveFilters=$w,C.hasPermission=Ci,C.headingBoldStyles=Gr,C.headingRegularStyles=Bs,C.isAllowedInputType=Yc,C.mergeFilters=nb,C.multiSelectFilter=qu,C.normalizeFieldTypes=it,C.normalizeSelectOptions=Ey,C.overlayAnimation=bi,C.parseJsonToFilters=tb,C.parseQueryParamsToFilters=eb,C.searchInArray=Xu,C.setCookie=vb,C.sizeStyles=xn,C.slideAnimation=r1,C.smartAnimation=fu,C.sortRecordToSortingState=Yw,C.sortingStateToJsonString=dd,C.sortingStateToRecord=ud,C.submenuAnimationTopDown=hu,C.toast=J0,C.useColumnFilter=Ju,C.useNotifications=pd,C.useSidebar=Si,C.useTableContext=kn,C.useTableData=Xw,C.useTableFiltering=ad,C.useTableSorting=sd,C.validateCode=jv,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
2276
+ `,vy=({steps:e,currentStep:t,orientation:n="horizontal",size:o="md",onStepClick:r,className:i})=>{const s=a=>{r?.(a)};return p.jsx(fy,{$orientation:n,className:i,children:p.jsx(hy,{$orientation:n,children:e.map((a,l)=>{const c=l===t,d=l<t,u=r!=null;return p.jsxs(p.Fragment,{children:[p.jsx(my,{$orientation:n,children:p.jsxs(hc,{$isActive:c,$isCompleted:d,$size:o,$isClickable:u,onClick:()=>u&&s(l),role:u?"button":void 0,tabIndex:u?0:void 0,"aria-current":c?"step":void 0,"aria-label":a.label,onKeyDown:h=>{u&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),s(l))},children:[a.content??l+1,a.label&&n==="vertical"&&p.jsx(gy,{children:a.label})]})}),l<e.length-1&&p.jsx(py,{$isCompleted:d,$orientation:n,$size:o})]},a.id)})})})};S.ALLOWED_INPUT_TYPES=Ua,S.Aside=xl,S.Badge=Cm,S.BaseInput=Yo,S.BrandLogo=Cl,S.Button=dt,S.Card=ap,S.CardBody=dp,S.CardFooter=hp,S.CardHeader=cp,S.Checkbox=Nt,S.CheckboxInput=Jo,S.CheckboxLabel=rl,S.CloseOpenButton=$l,S.ColumnFilter=Sn,S.ColumnFilterMenu=Mr,S.Dialog=fl,S.DialogBody=ml,S.DialogFooter=pl,S.DialogHeader=hl,S.Divider=$m,S.ErrorMessage=qo,S.FileList=ol,S.FileUpload=Sg,S.FilterOption=$r,S.FormField=Wg,S.FullScreenSpinner=mm,S.Header=Fr,S.HeadingBold=Nr,S.HeadingRegular=$c,S.Icon=H,S.IconWrapperStyles=pn,S.InfoLabel=_t,S.Label=hn,S.Layout=ly,S.LayoutMainContent=Ar,S.Link=El,S.LinkDisabledStyles=kl,S.LinkSizeStyles=Vl,S.LinkVariantStyles=Ml,S.MobileOpenBtn=Pl,S.Nav=Tl,S.NotificationButton=Dr,S.Overlay=bl,S.PasswordInput=Ja,S.PinInput=Qo,S.PinInputGroup=er,S.RadioInput=or,S.RadioInputDot=tr,S.RadioInputLabel=nr,S.SearchInput=Zo,S.SectionSpinner=Ha,S.SelectInput=gn,S.Sidebar=lr,S.SidebarContext=ir,S.SidebarHeader=Sl,S.SidebarProvider=vl,S.Spinner=dn,S.Stepper=vy,S.Table=ac,S.TableBody=Vr,S.TableCell=ec,S.TableHeader=kr,S.TableHeaderCell=Jl,S.TableHeaderRow=Ql,S.TablePagination=Bv,S.TableRow=tc,S.TermsAndConditions=r0,S.Text=Ve,S.TextAreaInput=Xo,S.ToastProvider=tp,S.Tooltip=gl,S.UserProfile=Er,S.baseFieldStyles=Ze,S.baseInputStyles=mn,S.bodyTextStyles=E,S.columnFiltersToArrayQueryParams=jv,S.columnFiltersToJsonString=dc,S.columnFiltersToQueryParams=Hv,S.columnFiltersToRecord=uc,S.createBackendParams=zv,S.createBackendParamsWithFilters=Gv,S.createColumnHelper=C0,S.createFieldConfig=bp,S.createInputRefs=ll,S.deleteCookie=dy,S.disabledStyles=Oe,S.errorStyles=Je,S.flushedStyles=Wa,S.getActiveFilterCount=wv,S.getActiveFilterValues=Yl,S.getColumnValueCounts=vv,S.getCookie=uy,S.getPropsForInputType=xp,S.getUniqueColumnValues=Pr,S.handleDigitChange=il,S.handleKeyDown=sl,S.handlePaste=al,S.hasActiveFilters=yv,S.hasPermission=ar,S.headingBoldStyles=kn,S.headingRegularStyles=Br,S.isAllowedInputType=Ka,S.mergeFilters=Wv,S.multiSelectFilter=Wl,S.normalizeFieldTypes=ze,S.normalizeSelectOptions=wp,S.overlayAnimation=rr,S.parseJsonToFilters=Kv,S.parseQueryParamsToFilters=Uv,S.searchInArray=ql,S.setCookie=cy,S.sizeStyles=Bt,S.slideAnimation=qg,S.smartAnimation=ul,S.sortRecordToSortingState=Nv,S.sortingStateToJsonString=cc,S.sortingStateToRecord=lc,S.submenuAnimationTopDown=dl,S.toast=jm,S.useColumnFilter=Xl,S.useNotifications=fc,S.useSidebar=sr,S.useTableContext=Ht,S.useTableData=Ov,S.useTableFiltering=ic,S.useTableSorting=rc,S.validateCode=Ig,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));