tcce-design-system 0.1.23 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(E,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","formik"],f):(E=typeof globalThis<"u"?globalThis:E||self,f(E["tcce-design-system-components"]={},E.React,E["react/jsx-runtime"],E.ReactDOM,E.Formik))})(this,(function(E,f,p,ui,nd){"use strict";function rd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const cn=rd(f);var ge=function(){return ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ge.apply(this,arguments)};function mt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function od(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var id=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sd=od(function(e){return id.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),G="-ms-",zt="-moz-",R="-webkit-",hi="comm",dn="rule",tr="decl",ad="@import",fi="@keyframes",ld="@layer",pi=Math.abs,nr=String.fromCharCode,rr=Object.assign;function cd(e,t){return ie(e,0)^45?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}function mi(e){return e.trim()}function Fe(e,t){return(e=t.exec(e))?e[0]:e}function L(e,t,n){return e.replace(t,n)}function un(e,t,n){return e.indexOf(t,n)}function ie(e,t){return e.charCodeAt(t)|0}function gt(e,t,n){return e.slice(t,n)}function Le(e){return e.length}function gi(e){return e.length}function Rt(e,t){return t.push(e),e}function dd(e,t){return e.map(t).join("")}function yi(e,t){return e.filter(function(n){return!Fe(n,t)})}var hn=1,yt=1,vi=0,Se=0,ne=0,vt="";function fn(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:hn,column:yt,length:i,return:"",siblings:a}}function We(e,t){return rr(fn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function bt(e){for(;e.root;)e=We(e.root,{children:[e]});Rt(e,e.siblings)}function ud(){return ne}function hd(){return ne=Se>0?ie(vt,--Se):0,yt--,ne===10&&(yt=1,hn--),ne}function Ae(){return ne=Se<vi?ie(vt,Se++):0,yt++,ne===10&&(yt=1,hn++),ne}function et(){return ie(vt,Se)}function pn(){return Se}function mn(e,t){return gt(vt,e,t)}function or(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fd(e){return hn=yt=1,vi=Le(vt=e),Se=0,[]}function pd(e){return vt="",e}function ir(e){return mi(mn(Se-1,sr(e===91?e+2:e===40?e+1:e)))}function md(e){for(;(ne=et())&&ne<33;)Ae();return or(e)>2||or(ne)>3?"":" "}function gd(e,t){for(;--t&&Ae()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return mn(e,pn()+(t<6&&et()==32&&Ae()==32))}function sr(e){for(;Ae();)switch(ne){case e:return Se;case 34:case 39:e!==34&&e!==39&&sr(ne);break;case 40:e===41&&sr(e);break;case 92:Ae();break}return Se}function yd(e,t){for(;Ae()&&e+ne!==57;)if(e+ne===84&&et()===47)break;return"/*"+mn(t,Se-1)+"*"+nr(e===47?e:Ae())}function vd(e){for(;!or(et());)Ae();return mn(e,Se)}function bd(e){return pd(gn("",null,null,null,[""],e=fd(e),0,[0],e))}function gn(e,t,n,r,o,s,i,a,l){for(var d=0,u=0,c=i,h=0,m=0,g=0,v=1,k=1,y=1,S=0,C="",T=o,w=s,P=r,A=C;k;)switch(g=S,S=Ae()){case 40:if(g!=108&&ie(A,c-1)==58){un(A+=L(ir(S),"&","&\f"),"&\f",pi(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:A+=ir(S);break;case 9:case 10:case 13:case 32:A+=md(g);break;case 92:A+=gd(pn()-1,7);continue;case 47:switch(et()){case 42:case 47:Rt(wd(yd(Ae(),pn()),t,n,l),l);break;default:A+="/"}break;case 123*v:a[d++]=Le(A)*y;case 125*v:case 59:case 0:switch(S){case 0:case 125:k=0;case 59+u:y==-1&&(A=L(A,/\f/g,"")),m>0&&Le(A)-c&&Rt(m>32?wi(A+";",r,n,c-1,l):wi(L(A," ","")+";",r,n,c-2,l),l);break;case 59:A+=";";default:if(Rt(P=bi(A,t,n,d,u,o,a,C,T=[],w=[],c,s),s),S===123)if(u===0)gn(A,t,P,P,T,s,c,a,w);else switch(h===99&&ie(A,3)===110?100:h){case 100:case 108:case 109:case 115:gn(e,P,P,r&&Rt(bi(e,P,P,0,0,o,a,C,o,T=[],c,w),w),o,w,c,a,r?T:w);break;default:gn(A,P,P,P,[""],w,0,a,w)}}d=u=m=0,v=y=1,C=A="",c=i;break;case 58:c=1+Le(A),m=g;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&hd()==125)continue}switch(A+=nr(S),S*v){case 38:y=u>0?1:(A+="\f",-1);break;case 44:a[d++]=(Le(A)-1)*y,y=1;break;case 64:et()===45&&(A+=ir(Ae())),h=et(),u=c=Le(C=A+=vd(pn())),S++;break;case 45:g===45&&Le(A)==2&&(v=0)}}return s}function bi(e,t,n,r,o,s,i,a,l,d,u,c){for(var h=o-1,m=o===0?s:[""],g=gi(m),v=0,k=0,y=0;v<r;++v)for(var S=0,C=gt(e,h+1,h=pi(k=i[v])),T=e;S<g;++S)(T=mi(k>0?m[S]+" "+C:L(C,/&\f/g,m[S])))&&(l[y++]=T);return fn(e,t,n,o===0?dn:a,l,d,u,c)}function wd(e,t,n,r){return fn(e,t,n,hi,nr(ud()),gt(e,2,-2),0,r)}function wi(e,t,n,r,o){return fn(e,t,n,tr,gt(e,0,r),gt(e,r+1,-1),r,o)}function xi(e,t,n){switch(cd(e,t)){case 5103:return R+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return R+e+e;case 4789:return zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return R+e+zt+e+G+e+e;case 5936:switch(ie(e,t+11)){case 114:return R+e+G+L(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return R+e+G+L(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return R+e+G+L(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return R+e+G+e+e;case 6165:return R+e+G+"flex-"+e+e;case 5187:return R+e+L(e,/(\w+).+(:[^]+)/,R+"box-$1$2"+G+"flex-$1$2")+e;case 5443:return R+e+G+"flex-item-"+L(e,/flex-|-self/g,"")+(Fe(e,/flex-|baseline/)?"":G+"grid-row-"+L(e,/flex-|-self/g,""))+e;case 4675:return R+e+G+"flex-line-pack"+L(e,/align-content|flex-|-self/g,"")+e;case 5548:return R+e+G+L(e,"shrink","negative")+e;case 5292:return R+e+G+L(e,"basis","preferred-size")+e;case 6060:return R+"box-"+L(e,"-grow","")+R+e+G+L(e,"grow","positive")+e;case 4554:return R+L(e,/([^-])(transform)/g,"$1"+R+"$2")+e;case 6187:return L(L(L(e,/(zoom-|grab)/,R+"$1"),/(image-set)/,R+"$1"),e,"")+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,R+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,R+"box-pack:$3"+G+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+R+e+e;case 4200:if(!Fe(e,/flex-|baseline/))return G+"grid-column-align"+gt(e,t)+e;break;case 2592:case 3360:return G+L(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Fe(r.props,/grid-\w+-end/)})?~un(e+(n=n[t].value),"span",0)?e:G+L(e,"-start","")+e+G+"grid-row-span:"+(~un(n,"span",0)?Fe(n,/\d+/):+Fe(n,/\d+/)-+Fe(e,/\d+/))+";":G+L(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Fe(r.props,/grid-\w+-start/)})?e:G+L(L(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,R+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Le(e)-1-t>6)switch(ie(e,t+1)){case 109:if(ie(e,t+4)!==45)break;case 102:return L(e,/(.+:)(.+)-([^]+)/,"$1"+R+"$2-$3$1"+zt+(ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch",0)?xi(L(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return L(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,l,d){return G+o+":"+s+d+(i?G+o+"-span:"+(a?l:+l-+s)+d:"")+e});case 4949:if(ie(e,t+6)===121)return L(e,":",":"+R)+e;break;case 6444:switch(ie(e,ie(e,14)===45?18:11)){case 120:return L(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+R+(ie(e,14)===45?"inline-":"")+"box$3$1"+R+"$2$3$1"+G+"$2box$3")+e;case 100:return L(e,":",":"+G)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return L(e,"scroll-","scroll-snap-")+e}return e}function yn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function xd(e,t,n,r){switch(e.type){case ld:if(e.children.length)break;case ad:case tr:return e.return=e.return||e.value;case hi:return"";case fi:return e.return=e.value+"{"+yn(e.children,r)+"}";case dn:if(!Le(e.value=e.props.join(",")))return""}return Le(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Sd(e){var t=gi(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function Cd(e){return function(t){t.root||(t=t.return)&&e(t)}}function Td(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case tr:e.return=xi(e.value,e.length,n);return;case fi:return yn([We(e,{value:L(e.value,"@","@"+R)})],r);case dn:if(e.length)return dd(n=e.props,function(o){switch(Fe(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bt(We(e,{props:[L(o,/:(read-\w+)/,":"+zt+"$1")]})),bt(We(e,{props:[o]})),rr(e,{props:yi(n,r)});break;case"::placeholder":bt(We(e,{props:[L(o,/:(plac\w+)/,":"+R+"input-$1")]})),bt(We(e,{props:[L(o,/:(plac\w+)/,":"+zt+"$1")]})),bt(We(e,{props:[L(o,/:(plac\w+)/,G+"input-$1")]})),bt(We(e,{props:[o]})),rr(e,{props:yi(n,r)});break}return""})}}var kd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Si="active",Ci="data-styled-version",vn="6.1.19",ar=`/*!sc*/
|
|
2
|
-
`,
|
|
1
|
+
(function(P,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):(P=typeof globalThis<"u"?globalThis:P||self,p(P["tcce-design-system-components"]={},P.React,P["react/jsx-runtime"],P.ReactDOM,P.Formik))})(this,(function(P,p,g,Ni,Zu){"use strict";function Ju(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 lt=Ju(p);var we=function(){return we=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},we.apply(this,arguments)};function Ct(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 Qu(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|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,td=Qu(function(e){return ed.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Z="-ms-",Yt="-moz-",H="-webkit-",Oi="comm",bn="rule",vr="decl",nd="@import",Bi="@keyframes",rd="@layer",zi=Math.abs,wr=String.fromCharCode,br=Object.assign;function od(e,t){return ae(e,0)^45?(((t<<2^ae(e,0))<<2^ae(e,1))<<2^ae(e,2))<<2^ae(e,3):0}function Hi(e){return e.trim()}function He(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,n){return e.replace(t,n)}function xn(e,t,n){return e.indexOf(t,n)}function ae(e,t){return e.charCodeAt(t)|0}function Tt(e,t,n){return e.slice(t,n)}function Oe(e){return e.length}function ji(e){return e.length}function Xt(e,t){return t.push(e),e}function id(e,t){return e.map(t).join("")}function Gi(e,t){return e.filter(function(n){return!He(n,t)})}var Sn=1,$t=1,Ui=0,Pe=0,oe=0,Pt="";function Cn(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Sn,column:$t,length:s,return:"",siblings:a}}function Ze(e,t){return br(Cn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function kt(e){for(;e.root;)e=Ze(e.root,{children:[e]});Xt(e,e.siblings)}function sd(){return oe}function ad(){return oe=Pe>0?ae(Pt,--Pe):0,$t--,oe===10&&($t=1,Sn--),oe}function Ve(){return oe=Pe<Ui?ae(Pt,Pe++):0,$t++,oe===10&&($t=1,Sn++),oe}function ct(){return ae(Pt,Pe)}function Tn(){return Pe}function $n(e,t){return Tt(Pt,e,t)}function xr(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 ld(e){return Sn=$t=1,Ui=Oe(Pt=e),Pe=0,[]}function cd(e){return Pt="",e}function Sr(e){return Hi($n(Pe-1,Cr(e===91?e+2:e===40?e+1:e)))}function ud(e){for(;(oe=ct())&&oe<33;)Ve();return xr(e)>2||xr(oe)>3?"":" "}function dd(e,t){for(;--t&&Ve()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return $n(e,Tn()+(t<6&&ct()==32&&Ve()==32))}function Cr(e){for(;Ve();)switch(oe){case e:return Pe;case 34:case 39:e!==34&&e!==39&&Cr(oe);break;case 40:e===41&&Cr(e);break;case 92:Ve();break}return Pe}function fd(e,t){for(;Ve()&&e+oe!==57;)if(e+oe===84&&ct()===47)break;return"/*"+$n(t,Pe-1)+"*"+wr(e===47?e:Ve())}function hd(e){for(;!xr(ct());)Ve();return $n(e,Pe)}function pd(e){return cd(Pn("",null,null,null,[""],e=ld(e),0,[0],e))}function Pn(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,m=0,y=1,w=1,v=1,b=0,x="",T=o,S=i,k=r,E=x;w;)switch(m=b,b=Ve()){case 40:if(m!=108&&ae(E,u-1)==58){xn(E+=_(Sr(b),"&","&\f"),"&\f",zi(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Sr(b);break;case 9:case 10:case 13:case 32:E+=ud(m);break;case 92:E+=dd(Tn()-1,7);continue;case 47:switch(ct()){case 42:case 47:Xt(md(fd(Ve(),Tn()),t,n,l),l);break;default:E+="/"}break;case 123*y:a[c++]=Oe(E)*v;case 125*y:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+d:v==-1&&(E=_(E,/\f/g,"")),h>0&&Oe(E)-u&&Xt(h>32?Ki(E+";",r,n,u-1,l):Ki(_(E," ","")+";",r,n,u-2,l),l);break;case 59:E+=";";default:if(Xt(k=Wi(E,t,n,c,d,o,a,x,T=[],S=[],u,i),i),b===123)if(d===0)Pn(E,t,k,k,T,i,u,a,S);else switch(f===99&&ae(E,3)===110?100:f){case 100:case 108:case 109:case 115:Pn(e,k,k,r&&Xt(Wi(e,k,k,0,0,o,a,x,o,T=[],u,S),S),o,S,u,a,r?T:S);break;default:Pn(E,k,k,k,[""],S,0,a,S)}}c=d=h=0,y=v=1,x=E="",u=s;break;case 58:u=1+Oe(E),h=m;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&ad()==125)continue}switch(E+=wr(b),b*y){case 38:v=d>0?1:(E+="\f",-1);break;case 44:a[c++]=(Oe(E)-1)*v,v=1;break;case 64:ct()===45&&(E+=Sr(Ve())),f=ct(),d=u=Oe(x=E+=hd(Tn())),b++;break;case 45:m===45&&Oe(E)==2&&(y=0)}}return i}function Wi(e,t,n,r,o,i,s,a,l,c,d,u){for(var f=o-1,h=o===0?i:[""],m=ji(h),y=0,w=0,v=0;y<r;++y)for(var b=0,x=Tt(e,f+1,f=zi(w=s[y])),T=e;b<m;++b)(T=Hi(w>0?h[b]+" "+x:_(x,/&\f/g,h[b])))&&(l[v++]=T);return Cn(e,t,n,o===0?bn:a,l,c,d,u)}function md(e,t,n,r){return Cn(e,t,n,Oi,wr(sd()),Tt(e,2,-2),0,r)}function Ki(e,t,n,r,o){return Cn(e,t,n,vr,Tt(e,0,r),Tt(e,r+1,-1),r,o)}function qi(e,t,n){switch(od(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 4789:return Yt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Yt+e+Z+e+e;case 5936:switch(ae(e,t+11)){case 114:return H+e+Z+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+Z+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+Z+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return H+e+Z+e+e;case 6165:return H+e+Z+"flex-"+e+e;case 5187:return H+e+_(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return H+e+Z+"flex-item-"+_(e,/flex-|-self/g,"")+(He(e,/flex-|baseline/)?"":Z+"grid-row-"+_(e,/flex-|-self/g,""))+e;case 4675:return H+e+Z+"flex-line-pack"+_(e,/align-content|flex-|-self/g,"")+e;case 5548:return H+e+Z+_(e,"shrink","negative")+e;case 5292:return H+e+Z+_(e,"basis","preferred-size")+e;case 6060:return H+"box-"+_(e,"-grow","")+H+e+Z+_(e,"grow","positive")+e;case 4554:return H+_(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4200:if(!He(e,/flex-|baseline/))return Z+"grid-column-align"+Tt(e,t)+e;break;case 2592:case 3360:return Z+_(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,He(r.props,/grid-\w+-end/)})?~xn(e+(n=n[t].value),"span",0)?e:Z+_(e,"-start","")+e+Z+"grid-row-span:"+(~xn(n,"span",0)?He(n,/\d+/):+He(n,/\d+/)-+He(e,/\d+/))+";":Z+_(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return He(r.props,/grid-\w+-start/)})?e:Z+_(_(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,H+"$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(Oe(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Yt+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xn(e,"stretch",0)?qi(_(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return _(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,c){return Z+o+":"+i+c+(s?Z+o+"-span:"+(a?l:+l-+i)+c:"")+e});case 4949:if(ae(e,t+6)===121)return _(e,":",":"+H)+e;break;case 6444:switch(ae(e,ae(e,14)===45?18:11)){case 120:return _(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+H+(ae(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+Z+"$2box$3")+e;case 100:return _(e,":",":"+Z)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _(e,"scroll-","scroll-snap-")+e}return e}function kn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function gd(e,t,n,r){switch(e.type){case rd:if(e.children.length)break;case nd:case vr:return e.return=e.return||e.value;case Oi:return"";case Bi:return e.return=e.value+"{"+kn(e.children,r)+"}";case bn:if(!Oe(e.value=e.props.join(",")))return""}return Oe(n=kn(e.children,r))?e.return=e.value+"{"+n+"}":""}function yd(e){var t=ji(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 vd(e){return function(t){t.root||(t=t.return)&&e(t)}}function wd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vr:e.return=qi(e.value,e.length,n);return;case Bi:return kn([Ze(e,{value:_(e.value,"@","@"+H)})],r);case bn:if(e.length)return id(n=e.props,function(o){switch(He(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":kt(Ze(e,{props:[_(o,/:(read-\w+)/,":"+Yt+"$1")]})),kt(Ze(e,{props:[o]})),br(e,{props:Gi(n,r)});break;case"::placeholder":kt(Ze(e,{props:[_(o,/:(plac\w+)/,":"+H+"input-$1")]})),kt(Ze(e,{props:[_(o,/:(plac\w+)/,":"+Yt+"$1")]})),kt(Ze(e,{props:[_(o,/:(plac\w+)/,Z+"input-$1")]})),kt(Ze(e,{props:[o]})),br(e,{props:Gi(n,r)});break}return""})}}var bd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ut=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Yi="active",Xi="data-styled-version",En="6.1.19",Tr=`/*!sc*/
|
|
2
|
+
`,Mn=typeof window<"u"&&typeof document<"u",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"),Zi=/invalid hook call/i,Dn=new Set,Sd=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
3
|
`)+`You may see this warning because you've called styled inside another component.
|
|
4
4
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
5
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
6
|
-
`,o=console.error;try{var
|
|
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];Zi.test(s)?(i=!1,Dn.delete(r)):o.apply(void 0,Ct([s],a,!1))},p.useRef(),i&&!Dn.has(r)&&(console.warn(r),Dn.add(r))}catch(s){Zi.test(s.message)&&Dn.delete(r)}finally{console.error=o}}},An=Object.freeze([]),Et=Object.freeze({});function Cd(e,t,n){return n===void 0&&(n=Et),e.theme!==n.theme&&e.theme||t||n.theme}var $r=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Td=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$d=/(^-|-$)/g;function Ji(e){return e.replace(Td,"-").replace($d,"")}var Pd=/(a)(d)/gi,Vn=52,Qi=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pr(e){var t,n="";for(t=Math.abs(e);t>Vn;t=t/Vn|0)n=Qi(t%Vn)+n;return(Qi(t%Vn)+n).replace(Pd,"$1-$2")}var kr,es=5381,dt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ts=function(e){return dt(es,e)};function kd(e){return Pr(ts(e)>>>0)}function ns(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Er(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var rs=typeof Symbol=="function"&&Symbol.for,os=rs?Symbol.for("react.memo"):60115,Ed=rs?Symbol.for("react.forward_ref"):60112,Md={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Dd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},is={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ad=((kr={})[Ed]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kr[os]=is,kr);function ss(e){return("type"in(t=e)&&t.type.$$typeof)===os?is:"$$typeof"in e?Ad[e.$$typeof]:Md;var t}var Vd=Object.defineProperty,Id=Object.getOwnPropertyNames,as=Object.getOwnPropertySymbols,Rd=Object.getOwnPropertyDescriptor,Ld=Object.getPrototypeOf,ls=Object.prototype;function cs(e,t,n){if(typeof t!="string"){if(ls){var r=Ld(t);r&&r!==ls&&cs(e,r,n)}var o=Id(t);as&&(o=o.concat(as(t)));for(var i=ss(e),s=ss(t),a=0;a<o.length;++a){var l=o[a];if(!(l in Dd||n&&n[l]||s&&l in s||i&&l in i)){var c=Rd(t,l);try{Vd(e,l,c)}catch{}}}}return e}function Mt(e){return typeof e=="function"}function Mr(e){return typeof e=="object"&&"styledComponentId"in e}function ft(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function us(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Dt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Dr(e,t,n){if(n===void 0&&(n=!1),!n&&!Dt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Dr(e[r],t[r]);else if(Dt(t))for(var r in t)e[r]=Dr(e[r],t[r]);return e}function Ar(e,t){Object.defineProperty(e,"toString",{value:t})}var Fd=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
7
7
|
|
|
8
8
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
9
9
|
|
|
@@ -44,7 +44,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
44
44
|
|
|
45
45
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
46
46
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
47
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function _d(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}function Ct(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(_d.apply(void 0,mt([Rd[e]],t,!1)).trim())}var Hd=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw Ct(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),l=(i=0,n.length);i<l;i++)this.tag.insertRule(a,n[i])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,i=o;i<s;i++)n+="".concat(this.tag.getRule(i)).concat(ar);return n},e})(),Ud=1<<30,Cn=new Map,Tn=new Map,kn=1,En=function(e){if(Cn.has(e))return Cn.get(e);for(;Tn.has(kn);)kn++;var t=kn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Ud))throw Ct(16,"".concat(t));return Cn.set(e,t),Tn.set(t,e),t},Wd=function(e,t){kn=t+1,Cn.set(e,t),Tn.set(t,e)},Kd="style[".concat(tt,"][").concat(Ci,'="').concat(vn,'"]'),Yd=new RegExp("^".concat(tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Gd=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},Xd=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ar),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var l=a.match(Yd);if(l){var d=0|parseInt(l[1],10),u=l[2];d!==0&&(Wd(u,d),Gd(e,u,l[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(a)}}},Fi=function(e){for(var t=document.querySelectorAll(Kd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==Si&&(Xd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Zd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ji=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(tt,"]")));return l[l.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(tt,Si),r.setAttribute(Ci,vn);var i=Zd();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},qd=(function(){function e(t){this.element=ji(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var i=r[o];if(i.ownerNode===n)return i}throw Ct(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Jd=(function(){function e(t){this.element=ji(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})(),Qd=(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})(),zi=bn,eu={isServer:!bn,useCSSOMInjection:!Ed},Ri=(function(){function e(t,n,r){t===void 0&&(t=wt),n===void 0&&(n={});var o=this;this.options=ge(ge({},eu),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&bn&&zi&&(zi=!1,Fi(this)),pr(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,l="",d=function(c){var h=(function(y){return Tn.get(y)})(c);if(h===void 0)return"continue";var m=s.names.get(h),g=i.getGroup(c);if(m===void 0||!m.size||g.length===0)return"continue";var v="".concat(tt,".g").concat(c,'[id="').concat(h,'"]'),k="";m!==void 0&&m.forEach(function(y){y.length>0&&(k+="".concat(y,","))}),l+="".concat(g).concat(v,'{content:"').concat(k,'"}').concat(ar)},u=0;u<a;u++)d(u);return l})(o)})}return e.registerId=function(t){return En(t)},e.prototype.rehydrate=function(){!this.server&&bn&&Fi(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ge(ge({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Qd(o):r?new qd(o):new Jd(o)})(this.options),new Hd(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(En(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(En(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(En(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),tu=/&/g,nu=/^\s*\/\/.*$/gm;function _i(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=_i(n.children,t)),n})}function ru(e){var t,n,r,o=wt,s=o.options,i=s===void 0?wt:s,a=o.plugins,l=a===void 0?xn:a,d=function(h,m,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):h},u=l.slice();u.push(function(h){h.type===dn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(tu,n).replace(r,d))}),i.prefix&&u.push(Td),u.push(xd);var c=function(h,m,g,v){m===void 0&&(m=""),g===void 0&&(g=""),v===void 0&&(v="&"),t=v,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var k=h.replace(nu,""),y=bd(g||m?"".concat(g," ").concat(m," { ").concat(k," }"):k);i.namespace&&(y=_i(y,i.namespace));var S=[];return yn(y,Sd(u.concat(Cd(function(C){return S.push(C)})))),S};return c.hash=l.length?l.reduce(function(h,m){return m.name||Ct(15),nt(h,m.name)},Pi).toString():"",c}var ou=new Ri,mr=ru(),Hi=f.createContext({shouldForwardProp:void 0,styleSheet:ou,stylis:mr});Hi.Consumer,f.createContext(void 0);function Ui(){return f.useContext(Hi)}var Wi=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=mr);var i=r.name+s.hash;o.hasNameForId(r.id,i)||o.insertRules(r.id,i,s(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,pr(this,function(){throw Ct(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=mr),this.name+t.hash},e})(),iu=function(e){return e>="A"&&e<="Z"};function Ki(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;iu(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Yi=function(e){return e==null||e===!1||e===""},Gi=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Yi(s)&&(Array.isArray(s)&&s.isCss||xt(s)?r.push("".concat(Ki(o),":"),s,";"):St(s)?r.push.apply(r,mt(mt(["".concat(o," {")],Gi(s),!1),["}"],!1)):r.push("".concat(Ki(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in kd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Yi(e))return[];if(hr(e))return[".".concat(e.styledComponentId)];if(xt(e)){if(!xt(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Wi||St(o)||o===null||console.error("".concat(Di(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ot(o,t,n,r)}var s;return e instanceof Wi?n?(e.inject(n,r),[e.getName(r)]):[e]:St(e)?Gi(e):Array.isArray(e)?Array.prototype.concat.apply(xn,e.map(function(i){return ot(i,t,n,r)})):[e.toString()]}function su(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(xt(n)&&!hr(n))return!1}return!0}var au=Ai(vn),lu=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&su(t),this.componentId=n,this.baseHash=nt(au,n),this.baseStyle=r,Ri.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=rt(o,this.staticRulesId);else{var s=Oi(ot(this.rules,t,n,r)),i=cr(nt(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,i)){var a=r(s,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,a)}o=rt(o,i),this.staticRulesId=i}else{for(var l=nt(this.baseHash,r.hash),d="",u=0;u<this.rules.length;u++){var c=this.rules[u];if(typeof c=="string")d+=c,process.env.NODE_ENV!=="production"&&(l=nt(l,c));else if(c){var h=Oi(ot(c,t,n,r));l=nt(l,h+u),d+=h}}if(d){var m=cr(l>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(d,".".concat(m),void 0,this.componentId)),o=rt(o,m)}}return o},e})(),Xi=f.createContext(void 0);Xi.Consumer;var gr={},Zi=new Set;function cu(e,t,n){var r=hr(e),o=e,s=!ur(e),i=t.attrs,a=i===void 0?xn:i,l=t.componentId,d=l===void 0?(function(T,w){var P=typeof T!="string"?"sc":ki(T);gr[P]=(gr[P]||0)+1;var A="".concat(P,"-").concat(Vd(vn+P+gr[P]));return w?"".concat(w,"-").concat(A):A})(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?(function(T){return ur(T)?"styled.".concat(T):"Styled(".concat(Di(T),")")})(e):u,h=t.displayName&&t.componentId?"".concat(ki(t.displayName),"-").concat(t.componentId):t.componentId||d,m=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;g=function(T,w){return v(T,w)&&k(T,w)}}else g=v}var y=new lu(n,h,r?o.componentStyle:void 0);function S(T,w){return(function(P,A,D){var B=P.attrs,F=P.componentStyle,q=P.defaultProps,H=P.foldedComponentIds,ee=P.styledComponentId,U=P.target,he=f.useContext(Xi),O=Ui(),V=P.shouldForwardProp||O.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(ee);var _=Ad(A,he,q)||wt,W=(function(K,se,Me){for(var z,be=ge(ge({},se),{className:void 0,theme:Me}),Je=0;Je<K.length;Je+=1){var He=xt(z=K[Je])?z(be):z;for(var me in He)be[me]=me==="className"?rt(be[me],He[me]):me==="style"?ge(ge({},be[me]),He[me]):He[me]}return se.className&&(be.className=rt(be.className,se.className)),be})(B,A,_),Y=W.as||U,ce={};for(var oe in W)W[oe]===void 0||oe[0]==="$"||oe==="as"||oe==="theme"&&W.theme===_||(oe==="forwardedAs"?ce.as=W.forwardedAs:V&&!V(oe,Y)||(ce[oe]=W[oe],V||process.env.NODE_ENV!=="development"||sd(oe)||Zi.has(oe)||!lr.has(Y)||(Zi.add(oe),console.warn('styled-components: it looks like an unknown prop "'.concat(oe,'" 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 N=(function(K,se){var Me=Ui(),z=K.generateAndInjectStyles(se,Me.styleSheet,Me.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(z),z})(F,W);process.env.NODE_ENV!=="production"&&P.warnTooManyClasses&&P.warnTooManyClasses(N);var X=rt(H,ee);return N&&(X+=" "+N),W.className&&(X+=" "+W.className),ce[ur(Y)&&!lr.has(Y)?"class":"className"]=X,D&&(ce.ref=D),f.createElement(Y,ce)})(C,T,w)}S.displayName=c;var C=f.forwardRef(S);return C.attrs=m,C.componentStyle=y,C.displayName=c,C.shouldForwardProp=g,C.foldedComponentIds=r?rt(o.foldedComponentIds,o.styledComponentId):"",C.styledComponentId=h,C.target=r?o.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(T){this._foldedDefaultProps=r?(function(w){for(var P=[],A=1;A<arguments.length;A++)P[A-1]=arguments[A];for(var D=0,B=P;D<B.length;D++)fr(w,B[D],!0);return w})({},o.defaultProps,T):T}}),process.env.NODE_ENV!=="production"&&(Pd(c,h),C.warnTooManyClasses=(function(T,w){var P={},A=!1;return function(D){if(!A&&(P[D]=!0,Object.keys(P).length>=200)){var B=w?' with the id of "'.concat(w,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(T).concat(B,`.
|
|
47
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function _d(){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 At(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(_d.apply(void 0,Ct([Fd[e]],t,!1)).trim())}var Nd=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw At(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(Tr);return n},e})(),Od=1<<30,In=new Map,Rn=new Map,Ln=1,Fn=function(e){if(In.has(e))return In.get(e);for(;Rn.has(Ln);)Ln++;var t=Ln++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Od))throw At(16,"".concat(t));return In.set(e,t),Rn.set(t,e),t},Bd=function(e,t){Ln=t+1,In.set(e,t),Rn.set(t,e)},zd="style[".concat(ut,"][").concat(Xi,'="').concat(En,'"]'),Hd=new RegExp("^".concat(ut,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),jd=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)},Gd=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Tr),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(Hd);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(Bd(d,c),jd(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(a)}}},ds=function(e){for(var t=document.querySelectorAll(zd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ut)!==Yi&&(Gd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Ud(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var fs=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(ut,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(ut,Yi),r.setAttribute(Xi,En);var s=Ud();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},Wd=(function(){function e(t){this.element=fs(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 At(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Kd=(function(){function e(t){this.element=fs(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})(),qd=(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})(),hs=Mn,Yd={isServer:!Mn,useCSSOMInjection:!xd},ps=(function(){function e(t,n,r){t===void 0&&(t=Et),n===void 0&&(n={});var o=this;this.options=we(we({},Yd),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Mn&&hs&&(hs=!1,ds(this)),Ar(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",c=function(u){var f=(function(v){return Rn.get(v)})(u);if(f===void 0)return"continue";var h=i.names.get(f),m=s.getGroup(u);if(h===void 0||!h.size||m.length===0)return"continue";var y="".concat(ut,".g").concat(u,'[id="').concat(f,'"]'),w="";h!==void 0&&h.forEach(function(v){v.length>0&&(w+="".concat(v,","))}),l+="".concat(m).concat(y,'{content:"').concat(w,'"}').concat(Tr)},d=0;d<a;d++)c(d);return l})(o)})}return e.registerId=function(t){return Fn(t)},e.prototype.rehydrate=function(){!this.server&&Mn&&ds(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(we(we({},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 qd(o):r?new Wd(o):new Kd(o)})(this.options),new Nd(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Fn(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(Fn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Fn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Xd=/&/g,Zd=/^\s*\/\/.*$/gm;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 Jd(e){var t,n,r,o=Et,i=o.options,s=i===void 0?Et:i,a=o.plugins,l=a===void 0?An:a,c=function(f,h,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):f},d=l.slice();d.push(function(f){f.type===bn&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(Xd,n).replace(r,c))}),s.prefix&&d.push(wd),d.push(gd);var u=function(f,h,m,y){h===void 0&&(h=""),m===void 0&&(m=""),y===void 0&&(y="&"),t=y,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var w=f.replace(Zd,""),v=pd(m||h?"".concat(m," ").concat(h," { ").concat(w," }"):w);s.namespace&&(v=ms(v,s.namespace));var b=[];return kn(v,yd(d.concat(vd(function(x){return b.push(x)})))),b};return u.hash=l.length?l.reduce(function(f,h){return h.name||At(15),dt(f,h.name)},es).toString():"",u}var Qd=new ps,Vr=Jd(),gs=p.createContext({shouldForwardProp:void 0,styleSheet:Qd,stylis:Vr});gs.Consumer,p.createContext(void 0);function ys(){return p.useContext(gs)}var vs=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Vr);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,Ar(this,function(){throw At(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Vr),this.name+t.hash},e})(),ef=function(e){return e>="A"&&e<="Z"};function ws(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ef(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var bs=function(e){return e==null||e===!1||e===""},xs=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!bs(i)&&(Array.isArray(i)&&i.isCss||Mt(i)?r.push("".concat(ws(o),":"),i,";"):Dt(i)?r.push.apply(r,Ct(Ct(["".concat(o," {")],xs(i),!1),["}"],!1)):r.push("".concat(ws(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in bd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ht(e,t,n,r){if(bs(e))return[];if(Mr(e))return[".".concat(e.styledComponentId)];if(Mt(e)){if(!Mt(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 vs||Dt(o)||o===null||console.error("".concat(ns(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.")),ht(o,t,n,r)}var i;return e instanceof vs?n?(e.inject(n,r),[e.getName(r)]):[e]:Dt(e)?xs(e):Array.isArray(e)?Array.prototype.concat.apply(An,e.map(function(s){return ht(s,t,n,r)})):[e.toString()]}function tf(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mt(n)&&!Mr(n))return!1}return!0}var nf=ts(En),rf=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&tf(t),this.componentId=n,this.baseHash=dt(nf,n),this.baseStyle=r,ps.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ft(o,this.staticRulesId);else{var i=us(ht(this.rules,t,n,r)),s=Pr(dt(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=ft(o,s),this.staticRulesId=s}else{for(var l=dt(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=dt(l,u));else if(u){var f=us(ht(u,t,n,r));l=dt(l,f+d),c+=f}}if(c){var h=Pr(l>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),o=ft(o,h)}}return o},e})(),Ss=p.createContext(void 0);Ss.Consumer;var Ir={},Cs=new Set;function of(e,t,n){var r=Mr(e),o=e,i=!Er(e),s=t.attrs,a=s===void 0?An:s,l=t.componentId,c=l===void 0?(function(T,S){var k=typeof T!="string"?"sc":Ji(T);Ir[k]=(Ir[k]||0)+1;var E="".concat(k,"-").concat(kd(En+k+Ir[k]));return S?"".concat(S,"-").concat(E):E})(t.displayName,t.parentComponentId):l,d=t.displayName,u=d===void 0?(function(T){return Er(T)?"styled.".concat(T):"Styled(".concat(ns(T),")")})(e):d,f=t.displayName&&t.componentId?"".concat(Ji(t.displayName),"-").concat(t.componentId):t.componentId||c,h=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 w=t.shouldForwardProp;m=function(T,S){return y(T,S)&&w(T,S)}}else m=y}var v=new rf(n,f,r?o.componentStyle:void 0);function b(T,S){return(function(k,E,M){var L=k.attrs,B=k.componentStyle,G=k.defaultProps,U=k.foldedComponentIds,ne=k.styledComponentId,W=k.target,me=p.useContext(Ss),O=ys(),R=k.shouldForwardProp||O.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(ne);var j=Cd(E,me,G)||Et,K=(function(q,le,Fe){for(var z,Se=we(we({},le),{className:void 0,theme:Fe}),st=0;st<q.length;st+=1){var Ye=Mt(z=q[st])?z(Se):z;for(var ve in Ye)Se[ve]=ve==="className"?ft(Se[ve],Ye[ve]):ve==="style"?we(we({},Se[ve]),Ye[ve]):Ye[ve]}return le.className&&(Se.className=ft(Se.className,le.className)),Se})(L,E,j),X=K.as||W,de={};for(var se in K)K[se]===void 0||se[0]==="$"||se==="as"||se==="theme"&&K.theme===j||(se==="forwardedAs"?de.as=K.forwardedAs:R&&!R(se,X)||(de[se]=K[se],R||process.env.NODE_ENV!=="development"||td(se)||Cs.has(se)||!$r.has(X)||(Cs.add(se),console.warn('styled-components: it looks like an unknown prop "'.concat(se,'" 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 N=(function(q,le){var Fe=ys(),z=q.generateAndInjectStyles(le,Fe.styleSheet,Fe.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(z),z})(B,K);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(N);var J=ft(U,ne);return N&&(J+=" "+N),K.className&&(J+=" "+K.className),de[Er(X)&&!$r.has(X)?"class":"className"]=J,M&&(de.ref=M),p.createElement(X,de)})(x,T,S)}b.displayName=u;var x=p.forwardRef(b);return x.attrs=h,x.componentStyle=v,x.displayName=u,x.shouldForwardProp=m,x.foldedComponentIds=r?ft(o.foldedComponentIds,o.styledComponentId):"",x.styledComponentId=f,x.target=r?o.target:e,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(T){this._foldedDefaultProps=r?(function(S){for(var k=[],E=1;E<arguments.length;E++)k[E-1]=arguments[E];for(var M=0,L=k;M<L.length;M++)Dr(S,L[M],!0);return S})({},o.defaultProps,T):T}}),process.env.NODE_ENV!=="production"&&(Sd(u,f),x.warnTooManyClasses=(function(T,S){var k={},E=!1;return function(M){if(!E&&(k[M]=!0,Object.keys(k).length>=200)){var L=S?' with the id of "'.concat(S,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(T).concat(L,`.
|
|
48
48
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
49
|
Example:
|
|
50
50
|
const Component = styled.div.attrs(props => ({
|
|
@@ -53,167 +53,167 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),
|
|
56
|
+
<Component />`),E=!0,k={}}}})(u,f)),Ar(x,function(){return".".concat(x.styledComponentId)}),i&&cs(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function Ts(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 $s=function(e){return Object.assign(e,{isCss:!0})};function C(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Mt(e)||Dt(e))return $s(ht(Ts(An,Ct([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ht(r):$s(ht(Ts(r,t)))}function Rr(e,t,n){if(n===void 0&&(n=Et),!t)throw At(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,C.apply(void 0,Ct([o],i,!1)))};return r.attrs=function(o){return Rr(e,t,we(we({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return Rr(e,t,we(we({},n),o))},r}var Ps=function(e){return Rr(of,e)},$=Ps;$r.forEach(function(e){$[e]=Ps(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
57
|
Perhaps you're looking to import 'styled-components/native'?
|
|
58
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
58
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var _n="__sc-".concat(ut,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[_n]||(window[_n]=0),window[_n]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
59
59
|
|
|
60
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[_n]+=1);const Lr={80:C`
|
|
61
61
|
font-family: 'Dax', serif;
|
|
62
62
|
font-size: 5em;
|
|
63
63
|
font-style: normal;
|
|
64
64
|
font-weight: 700;
|
|
65
65
|
line-height: 163.184%;
|
|
66
|
-
`,60:
|
|
66
|
+
`,60:C`
|
|
67
67
|
font-family: 'Dax', serif;
|
|
68
68
|
font-size: 3.75em;
|
|
69
69
|
font-style: normal;
|
|
70
70
|
font-weight: 700;
|
|
71
71
|
line-height: 161.76%;
|
|
72
|
-
`,40:
|
|
72
|
+
`,40:C`
|
|
73
73
|
font-family: 'Dax', serif;
|
|
74
74
|
font-size: 2.5em;
|
|
75
75
|
font-style: normal;
|
|
76
76
|
font-weight: 700;
|
|
77
77
|
line-height: 161.76%;
|
|
78
|
-
`,30:
|
|
78
|
+
`,30:C`
|
|
79
79
|
font-family: 'Dax', serif;
|
|
80
80
|
font-size: 1.875em;
|
|
81
81
|
font-style: normal;
|
|
82
82
|
font-weight: 700;
|
|
83
83
|
line-height: 161.76%;
|
|
84
|
-
`,24:
|
|
84
|
+
`,24:C`
|
|
85
85
|
font-family: 'Dax', serif;
|
|
86
86
|
font-size: 1.5em;
|
|
87
87
|
font-style: normal;
|
|
88
88
|
font-weight: 700;
|
|
89
89
|
line-height: 163.184%;
|
|
90
|
-
`,20:
|
|
90
|
+
`,20:C`
|
|
91
91
|
font-family: 'Dax', serif;
|
|
92
92
|
font-size: 1.25em;
|
|
93
93
|
font-style: normal;
|
|
94
94
|
font-weight: 700;
|
|
95
95
|
line-height: 161.76%;
|
|
96
|
-
`,16:
|
|
96
|
+
`,16:C`
|
|
97
97
|
font-family: 'Dax', serif;
|
|
98
98
|
font-size: 1em;
|
|
99
99
|
font-style: normal;
|
|
100
100
|
font-weight: 700;
|
|
101
101
|
line-height: 161.76%;
|
|
102
|
-
`},
|
|
102
|
+
`},ks={80:C`
|
|
103
103
|
font-family: 'Dax', serif;
|
|
104
104
|
font-size: 5em;
|
|
105
105
|
font-style: normal;
|
|
106
106
|
font-weight: 400;
|
|
107
107
|
line-height: 163.184%;
|
|
108
|
-
`,60:
|
|
108
|
+
`,60:C`
|
|
109
109
|
font-family: 'Dax', serif;
|
|
110
110
|
font-size: 3.75em;
|
|
111
111
|
font-style: normal;
|
|
112
112
|
font-weight: 400;
|
|
113
113
|
line-height: 161.76%;
|
|
114
|
-
`,40:
|
|
114
|
+
`,40:C`
|
|
115
115
|
font-family: 'Dax', serif;
|
|
116
116
|
font-size: 2.5em;
|
|
117
117
|
font-style: normal;
|
|
118
118
|
font-weight: 400;
|
|
119
119
|
line-height: 161.76%;
|
|
120
|
-
`,30:
|
|
120
|
+
`,30:C`
|
|
121
121
|
font-family: 'Dax', serif;
|
|
122
122
|
font-size: 1.875em;
|
|
123
123
|
font-style: normal;
|
|
124
124
|
font-weight: 400;
|
|
125
125
|
line-height: 161.76%;
|
|
126
|
-
`,24:
|
|
126
|
+
`,24:C`
|
|
127
127
|
font-family: 'Dax', serif;
|
|
128
128
|
font-size: 1.5em;
|
|
129
129
|
font-style: normal;
|
|
130
130
|
font-weight: 400;
|
|
131
131
|
line-height: 163.184%;
|
|
132
|
-
`,20:
|
|
132
|
+
`,20:C`
|
|
133
133
|
font-family: 'Dax', serif;
|
|
134
134
|
font-size: 1.25em;
|
|
135
135
|
font-style: normal;
|
|
136
136
|
font-weight: 400;
|
|
137
137
|
line-height: 161.76%;
|
|
138
|
-
`,16:
|
|
138
|
+
`,16:C`
|
|
139
139
|
font-family: 'Dax', serif;
|
|
140
140
|
font-size: 1em;
|
|
141
141
|
font-style: normal;
|
|
142
142
|
font-weight: 400;
|
|
143
143
|
line-height: 161.76%;
|
|
144
|
-
`},
|
|
144
|
+
`},D={80:C`
|
|
145
145
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
146
146
|
font-size: 5em;
|
|
147
147
|
font-style: normal;
|
|
148
148
|
font-weight: 400;
|
|
149
149
|
line-height: 155.962%;
|
|
150
|
-
`,60:
|
|
150
|
+
`,60:C`
|
|
151
151
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
152
152
|
font-size: 3.75em;
|
|
153
153
|
font-style: normal;
|
|
154
154
|
font-weight: 400;
|
|
155
155
|
line-height: 176.782%;
|
|
156
|
-
`,40:
|
|
156
|
+
`,40:C`
|
|
157
157
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
158
158
|
font-size: 2.5em;
|
|
159
159
|
font-style: normal;
|
|
160
160
|
font-weight: 400;
|
|
161
161
|
line-height: 176.782%;
|
|
162
|
-
`,30:
|
|
162
|
+
`,30:C`
|
|
163
163
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
164
164
|
font-size: 1.875em;
|
|
165
165
|
font-style: normal;
|
|
166
166
|
font-weight: 400;
|
|
167
167
|
line-height: 176.782%;
|
|
168
|
-
`,24:
|
|
168
|
+
`,24:C`
|
|
169
169
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
170
170
|
font-size: 1.5em;
|
|
171
171
|
font-style: normal;
|
|
172
172
|
font-weight: 400;
|
|
173
173
|
line-height: 176.782%;
|
|
174
|
-
`,20:
|
|
174
|
+
`,20:C`
|
|
175
175
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
176
176
|
font-size: 1.25em;
|
|
177
177
|
font-style: normal;
|
|
178
178
|
font-weight: 400;
|
|
179
179
|
line-height: 155.962%;
|
|
180
|
-
`,18:
|
|
180
|
+
`,18:C`
|
|
181
181
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
182
182
|
font-size: 1.125em;
|
|
183
183
|
font-style: normal;
|
|
184
184
|
font-weight: 400;
|
|
185
185
|
line-height: 150.782%;
|
|
186
|
-
`,16:
|
|
186
|
+
`,16:C`
|
|
187
187
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
188
188
|
font-size: 1em;
|
|
189
189
|
font-style: normal;
|
|
190
190
|
font-weight: 400;
|
|
191
191
|
line-height: 140%;
|
|
192
|
-
`,14:
|
|
192
|
+
`,14:C`
|
|
193
193
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
194
194
|
font-size: 0.875em;
|
|
195
195
|
font-style: normal;
|
|
196
196
|
font-weight: 400;
|
|
197
197
|
line-height: 140%;
|
|
198
|
-
`,12:
|
|
198
|
+
`,12:C`
|
|
199
199
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
200
200
|
font-size: 0.75em;
|
|
201
201
|
font-style: normal;
|
|
202
202
|
font-weight: 400;
|
|
203
203
|
line-height: 133%;
|
|
204
|
-
`},
|
|
205
|
-
${({size:e=24})=>
|
|
204
|
+
`},Es=$.h1`
|
|
205
|
+
${({size:e=24})=>Lr[e]}
|
|
206
206
|
margin: 0;
|
|
207
207
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
208
|
-
`,
|
|
209
|
-
${({size:e=24})=>
|
|
208
|
+
`,sf=$.h2`
|
|
209
|
+
${({size:e=24})=>ks[e]}
|
|
210
210
|
margin: 0;
|
|
211
211
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
212
|
-
`,
|
|
213
|
-
${({size:e=16})=>
|
|
212
|
+
`,je=$.span`
|
|
213
|
+
${({size:e=16})=>D[e]}
|
|
214
214
|
margin: 0;
|
|
215
215
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
216
|
-
`,
|
|
216
|
+
`,af=$.span`
|
|
217
217
|
display: inline-flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
justify-content: center;
|
|
@@ -223,57 +223,57 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
223
223
|
outline: none;
|
|
224
224
|
box-shadow: var(--shadow-hover-black-card);
|
|
225
225
|
}
|
|
226
|
-
`,ts={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},j=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const s=typeof t=="string"&&t in ts?ts[t]:t;return p.jsx(uu,{$color:n,className:r,children:typeof e=="function"?p.jsx(e,{size:s,...o}):e})},br=f.createContext({});function wr(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const xr=typeof window<"u",ns=xr?f.useLayoutEffect:f.useEffect,Dn=f.createContext(null);function Sr(e,t){e.indexOf(t)===-1&&e.push(t)}function Cr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const je=(e,t,n)=>n>t?t:n<e?e:n;function Tr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Tt=()=>{},ze=()=>{};process.env.NODE_ENV!=="production"&&(Tt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Tr(t,n))},ze=(e,t,n)=>{if(!e)throw new Error(Tr(t,n))});const Re={},rs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function os(e){return typeof e=="object"&&e!==null}const is=e=>/^0[^.\s]+$/u.test(e);function kr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,hu=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(hu),Ht=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Er{constructor(){this.subscriptions=[]}add(t){return Sr(this.subscriptions,t),()=>Cr(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Te=e=>e/1e3;function ss(e,t){return t?e*(1e3/t):0}const as=new Set;function Pr(e,t,n){e||as.has(t)||(console.warn(Tr(t,n)),as.add(t))}const ls=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fu=1e-7,pu=12;function mu(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=ls(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>fu&&++a<pu);return i}function Ut(e,t,n,r){if(e===t&&n===r)return Ce;const o=s=>mu(s,0,1,e,n);return s=>s===0||s===1?s:ls(o(s),t,r)}const cs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ds=e=>t=>1-e(1-t),us=Ut(.33,1.53,.69,.99),Ar=ds(us),hs=cs(Ar),fs=e=>(e*=2)<1?.5*Ar(e):.5*(2-Math.pow(2,-10*(e-1))),Dr=e=>1-Math.sin(Math.acos(e)),ps=ds(Dr),ms=cs(Dr),gu=Ut(.42,0,1,1),yu=Ut(0,0,.58,1),gs=Ut(.42,0,.58,1),vu=e=>Array.isArray(e)&&typeof e[0]!="number",ys=e=>Array.isArray(e)&&typeof e[0]=="number",vs={linear:Ce,easeIn:gu,easeInOut:gs,easeOut:yu,circIn:Dr,circInOut:ms,circOut:ps,backIn:Ar,backInOut:hs,backOut:us,anticipate:fs},bu=e=>typeof e=="string",bs=e=>{if(ys(e)){ze(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Ut(t,n,r,o)}else if(bu(e))return ze(vs[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),vs[e];return e},$n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wu(e,t){let n=new Set,r=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,c=!1,h=!1)=>{const g=h&&o?n:r;return c&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),i.delete(u)},process:u=>{if(a=u,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const xu=40;function ws(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=$n.reduce((C,T)=>(C[T]=wu(s),C),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:m,postRender:g}=i,v=()=>{const C=Re.useManualTiming?o.timestamp:performance.now();n=!1,Re.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(C-o.timestamp,xu),1)),o.timestamp=C,o.isProcessing=!0,a.process(o),l.process(o),d.process(o),u.process(o),c.process(o),h.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},k=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:$n.reduce((C,T)=>{const w=i[T];return C[T]=(P,A=!1,D=!1)=>(n||k(),w.schedule(P,A,D)),C},{}),cancel:C=>{for(let T=0;T<$n.length;T++)i[$n[T]].cancel(C)},state:o,steps:i}}const{schedule:Z,cancel:Ke,state:le,steps:$r}=ws(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let Mn;function Su(){Mn=void 0}const ye={now:()=>(Mn===void 0&&ye.set(le.isProcessing||Re.useManualTiming?le.timestamp:performance.now()),Mn),set:e=>{Mn=e,queueMicrotask(Su)}},xs=e=>t=>typeof t=="string"&&t.startsWith(e),Mr=xs("--"),Cu=xs("var(--"),Vr=e=>Cu(e)?Tu.test(e.split("/*")[0].trim()):!1,Tu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,kt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wt={...kt,transform:e=>je(0,1,e)},Vn={...kt,default:1},Kt=e=>Math.round(e*1e5)/1e5,Ir=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ku(e){return e==null}const Eu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lr=(e,t)=>n=>!!(typeof n=="string"&&Eu.test(n)&&n.startsWith(e)||t&&!ku(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ss=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(Ir);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Pu=e=>je(0,255,e),Nr={...kt,transform:e=>Math.round(Pu(e))},it={test:Lr("rgb","red"),parse:Ss("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nr.transform(e)+", "+Nr.transform(t)+", "+Nr.transform(n)+", "+Kt(Wt.transform(r))+")"};function Au(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Br={test:Lr("#"),parse:Au,transform:it.transform},Yt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ye=Yt("deg"),Be=Yt("%"),$=Yt("px"),Du=Yt("vh"),$u=Yt("vw"),Cs={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},Et={test:Lr("hsl","hue"),parse:Ss("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(Kt(t))+", "+Be.transform(Kt(n))+", "+Kt(Wt.transform(r))+")"},re={test:e=>it.test(e)||Br.test(e)||Et.test(e),parse:e=>it.test(e)?it.parse(e):Et.test(e)?Et.parse(e):Br.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?it.transform(e):Et.transform(e),getAnimatableNone:e=>{const t=re.parse(e);return t.alpha=0,re.transform(t)}},Mu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vu(e){return isNaN(e)&&typeof e=="string"&&(e.match(Ir)?.length||0)+(e.match(Mu)?.length||0)>0}const Ts="number",ks="color",Iu="var",Lu="var(",Es="${}",Nu=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(Nu,l=>(re.test(l)?(r.color.push(s),o.push(ks),n.push(re.parse(l))):l.startsWith(Lu)?(r.var.push(s),o.push(Iu),n.push(l)):(r.number.push(s),o.push(Ts),n.push(parseFloat(l))),++s,Es)).split(Es);return{values:n,split:a,indexes:r,types:o}}function Ps(e){return Gt(e).values}function As(e){const{split:t,types:n}=Gt(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===Ts?s+=Kt(o[i]):a===ks?s+=re.transform(o[i]):s+=o[i]}return s}}const Bu=e=>typeof e=="number"?0:re.test(e)?re.getAnimatableNone(e):e;function Ou(e){const t=Ps(e);return As(e)(t.map(Bu))}const Ge={test:Vu,parse:Ps,createTransformer:As,getAnimatableNone:Ou};function Or(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fu({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Or(l,a,e+1/3),s=Or(l,a,e),i=Or(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function In(e,t){return n=>n>0?t:e}const J=(e,t,n)=>e+(t-e)*n,Fr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},ju=[Br,it,Et],zu=e=>ju.find(t=>t.test(e));function Ds(e){const t=zu(e);if(Tt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Et&&(n=Fu(n)),n}const $s=(e,t)=>{const n=Ds(e),r=Ds(t);if(!n||!r)return In(e,t);const o={...n};return s=>(o.red=Fr(n.red,r.red,s),o.green=Fr(n.green,r.green,s),o.blue=Fr(n.blue,r.blue,s),o.alpha=J(n.alpha,r.alpha,s),it.transform(o))},jr=new Set(["none","hidden"]);function Ru(e,t){return jr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _u(e,t){return n=>J(e,t,n)}function zr(e){return typeof e=="number"?_u:typeof e=="string"?Vr(e)?In:re.test(e)?$s:Wu:Array.isArray(e)?Ms:typeof e=="object"?re.test(e)?$s:Hu:In}function Ms(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>zr(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function Hu(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=zr(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function Uu(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][r[s]],a=e.values[i]??0;n[o]=a,r[s]++}return n}const Wu=(e,t)=>{const n=Ge.createTransformer(t),r=Gt(e),o=Gt(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?jr.has(e)&&!o.values.length||jr.has(t)&&!r.values.length?Ru(e,t):_t(Ms(Uu(r,o),o.values),n):(Tt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),In(e,t))};function Vs(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):zr(e)(e,t)}const Ku=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>Ke(t),now:()=>le.isProcessing?le.timestamp:ye.now()}},Is=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ln=2e4;function Rr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ln;)t+=n,r=e.next(t);return t>=Ln?1/0:t}function Yu(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Rr(r),Ln);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Te(o)}}const Gu=5;function Ls(e,t,n){const r=Math.max(t-Gu,0);return ss(n-e(r),t-r)}const Q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},_r=.001;function Xu({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let o,s;Tt(e<=De(Q.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=je(Q.minDamping,Q.maxDamping,i),e=je(Q.minDuration,Q.maxDuration,Te(e)),i<1?(o=d=>{const u=d*i,c=u*e,h=u-n,m=Hr(d,i),g=Math.exp(-c);return _r-h/m*g},s=d=>{const c=d*i*e,h=c*n+n,m=Math.pow(i,2)*Math.pow(d,2)*e,g=Math.exp(-c),v=Hr(Math.pow(d,2),i);return(-o(d)+_r>0?-1:1)*((h-m)*g)/v}):(o=d=>{const u=Math.exp(-d*e),c=(d-n)*e+1;return-_r+u*c},s=d=>{const u=Math.exp(-d*e),c=(n-d)*(e*e);return u*c});const a=5/e,l=qu(o,s,a);if(e=De(e),isNaN(l))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:i*2*Math.sqrt(r*d),duration:e}}}const Zu=12;function qu(e,t,n){let r=n;for(let o=1;o<Zu;o++)r=r-e(r)/t(r);return r}function Hr(e,t){return e*Math.sqrt(1-t*t)}const Ju=["duration","bounce"],Qu=["stiffness","damping","mass"];function Ns(e,t){return t.some(n=>e[n]!==void 0)}function eh(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!Ns(e,Qu)&&Ns(e,Ju))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*je(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Q.mass,stiffness:o,damping:s}}else{const n=Xu(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function Nn(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:d,mass:u,duration:c,velocity:h,isResolvedFromDuration:m}=eh({...n,velocity:-Te(n.velocity||0)}),g=h||0,v=d/(2*Math.sqrt(l*u)),k=i-s,y=Te(Math.sqrt(l/u)),S=Math.abs(k)<5;r||(r=S?Q.restSpeed.granular:Q.restSpeed.default),o||(o=S?Q.restDelta.granular:Q.restDelta.default);let C;if(v<1){const w=Hr(y,v);C=P=>{const A=Math.exp(-v*y*P);return i-A*((g+v*y*k)/w*Math.sin(w*P)+k*Math.cos(w*P))}}else if(v===1)C=w=>i-Math.exp(-y*w)*(k+(g+y*k)*w);else{const w=y*Math.sqrt(v*v-1);C=P=>{const A=Math.exp(-v*y*P),D=Math.min(w*P,300);return i-A*((g+v*y*k)*Math.sinh(D)+w*k*Math.cosh(D))/w}}const T={calculatedDuration:m&&c||null,next:w=>{const P=C(w);if(m)a.done=w>=c;else{let A=w===0?g:0;v<1&&(A=w===0?De(g):Ls(C,w,P));const D=Math.abs(A)<=r,B=Math.abs(i-P)<=o;a.done=D&&B}return a.value=a.done?i:P,a},toString:()=>{const w=Math.min(Rr(T),Ln),P=Is(A=>T.next(w*A).value,w,30);return w+"ms "+P},toTransition:()=>{}};return T}Nn.applyToOptions=e=>{const t=Yu(e,100,Nn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function Ur({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:d=.5,restSpeed:u}){const c=e[0],h={done:!1,value:c},m=D=>a!==void 0&&D<a||l!==void 0&&D>l,g=D=>a===void 0?l:l===void 0||Math.abs(a-D)<Math.abs(l-D)?a:l;let v=n*t;const k=c+v,y=i===void 0?k:i(k);y!==k&&(v=y-c);const S=D=>-v*Math.exp(-D/r),C=D=>y+S(D),T=D=>{const B=S(D),F=C(D);h.done=Math.abs(B)<=d,h.value=h.done?y:F};let w,P;const A=D=>{m(h.value)&&(w=D,P=Nn({keyframes:[h.value,g(h.value)],velocity:Ls(C,D,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return A(0),{calculatedDuration:null,next:D=>{let B=!1;return!P&&w===void 0&&(B=!0,T(D),A(D)),w!==void 0&&D>=w?P.next(D-w):(!B&&T(D),h)}}}function th(e,t,n){const r=[],o=n||Re.mix||Vs,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Ce:t;a=_t(l,a)}r.push(a)}return r}function nh(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(ze(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=th(t,r,o),l=a.length,d=u=>{if(i&&u<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const h=Ht(e[c],e[c+1],u);return a[c](h)};return n?u=>d(je(e[0],e[s-1],u)):d}function rh(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ht(0,t,r);e.push(J(n,1,o))}}function oh(e){const t=[0];return rh(t,e.length-1),t}function ih(e,t){return e.map(n=>n*t)}function sh(e,t){return e.map(()=>t||gs).splice(0,e.length-1)}function Pt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=vu(r)?r.map(bs):bs(r),s={done:!1,value:t[0]},i=ih(n&&n.length===t.length?n:oh(t),e),a=nh(i,t,{ease:Array.isArray(o)?o:sh(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const ah=e=>e!==null;function Wr(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(ah),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const lh={decay:Ur,inertia:Ur,tween:Pt,keyframes:Pt,spring:Nn};function Bs(e){typeof e.type=="string"&&(e.type=lh[e.type])}class Kr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const ch=e=>e/100;class Yr extends Kr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ye.now()&&this.tick(ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Bs(t);const{type:n=Pt,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const l=n||Pt;process.env.NODE_ENV!=="production"&&l!==Pt&&ze(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Pt&&typeof a[0]!="number"&&(this.mixKeyframes=_t(ch,Vs(a[0],a[1])),a=[0,100]);const d=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=Rr(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:m,type:g,onUpdate:v,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let C=this.currentTime,T=r;if(c){const D=Math.min(this.currentTime,o)/a;let B=Math.floor(D),F=D%1;!F&&D>=1&&(F=1),F===1&&B--,B=Math.min(B,c+1),!!(B%2)&&(h==="reverse"?(F=1-F,m&&(F-=m/a)):h==="mirror"&&(T=i)),C=je(0,1,F)*a}const w=S?{done:!1,value:u[0]}:T.next(C);s&&(w.value=s(w.value));let{done:P}=w;!S&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&g!==Ur&&(w.value=Wr(u,this.options,k,this.speed)),v&&v(w.value),A&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return Te(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(this.currentTime)}set time(t){t=De(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ye.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Te(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ku,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function dh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const st=e=>e*180/Math.PI,Gr=e=>{const t=st(Math.atan2(e[1],e[0]));return Xr(t)},uh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Gr,rotateZ:Gr,skewX:e=>st(Math.atan(e[1])),skewY:e=>st(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xr=e=>(e=e%360,e<0&&(e+=360),e),Os=Gr,Fs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),js=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),hh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fs,scaleY:js,scale:e=>(Fs(e)+js(e))/2,rotateX:e=>Xr(st(Math.atan2(e[6],e[5]))),rotateY:e=>Xr(st(Math.atan2(-e[2],e[0]))),rotateZ:Os,rotate:Os,skewX:e=>st(Math.atan(e[4])),skewY:e=>st(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zr(e){return e.includes("scale")?1:0}function qr(e,t){if(!e||e==="none")return Zr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=hh,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=uh,o=a}if(!o)return Zr(t);const s=r[t],i=o[1].split(",").map(ph);return typeof s=="function"?s(i):i[s]}const fh=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return qr(n,t)};function ph(e){return parseFloat(e.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dt=new Set(At),zs=e=>e===kt||e===$,mh=new Set(["x","y","z"]),gh=At.filter(e=>!mh.has(e));function yh(e){const t=[];return gh.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const at={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>qr(t,"x"),y:(e,{transform:t})=>qr(t,"y")};at.translateX=at.x,at.translateY=at.y;const lt=new Set;let Jr=!1,Qr=!1,eo=!1;function Rs(){if(Qr){const e=Array.from(lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=yh(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Qr=!1,Jr=!1,lt.forEach(e=>e.complete(eo)),lt.clear()}function _s(){lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qr=!0)})}function vh(){eo=!0,_s(),Rs(),eo=!1}class to{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(lt.add(this),Jr||(Jr=!0,Z.read(_s),Z.resolveKeyframes(Rs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}dh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lt.delete(this)}cancel(){this.state==="scheduled"&&(lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const bh=e=>e.startsWith("--");function wh(e,t,n){bh(t)?e.style.setProperty(t,n):e.style[t]=n}const xh=kr(()=>window.ScrollTimeline!==void 0),Sh={};function Ch(e,t){const n=kr(e);return()=>Sh[t]??n()}const Hs=Ch(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Us={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xt([0,.65,.55,1]),circOut:Xt([.55,0,1,.45]),backIn:Xt([.31,.01,.66,-.59]),backOut:Xt([.33,1.53,.69,.99])};function Ws(e,t){if(e)return typeof e=="function"?Hs()?Is(e,t):"ease-out":ys(e)?Xt(e):Array.isArray(e)?e.map(n=>Ws(n,t)||Us.easeOut):Us[e]}function Th(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:l}={},d=void 0){const u={[t]:n};l&&(u.offset=l);const c=Ws(a,o);Array.isArray(c)&&(u.easing=c);const h={delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Ks(e){return typeof e=="function"&&"applyToOptions"in e}function kh({type:e,...t}){return Ks(e)&&Hs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Eh extends Kr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,ze(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=kh(t);this.animation=Th(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Wr(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):wh(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Te(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=De(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&xh()?(this.animation.timeline=t,Ce):n(this)}}const Ys={anticipate:fs,backInOut:hs,circInOut:ms};function Ph(e){return e in Ys}function Ah(e){typeof e.ease=="string"&&Ph(e.ease)&&(e.ease=Ys[e.ease])}const Gs=10;class Dh extends Eh{constructor(t){Ah(t),Bs(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Yr({...i,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Gs).value,a.sample(l).value,Gs),a.stop()}}const Xs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ge.test(e)||e==="0")&&!e.startsWith("url("));function $h(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 Mh(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=Xs(o,t),a=Xs(s,t);return Tt(i===a,`You are trying to animate ${t} from "${o}" to "${s}". "${i?s:o}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:$h(e)||(n==="spring"||Ks(n))&&r}function no(e){e.duration=0,e.type="keyframes"}const Vh=new Set(["opacity","clipPath","filter","transform"]),Ih=kr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Lh(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=t.owner.getProps();return Ih()&&n&&Vh.has(n)&&(n!=="transform"||!d)&&!l&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const Nh=40;class Bh extends Kr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:l,motionValue:d,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ye.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:l,motionValue:d,element:u,...c},m=u?.KeyframeResolver||to;this.keyframeResolver=new m(a,(g,v,k)=>this.onKeyframesResolved(g,v,h,!k),l,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:l,isHandoff:d,onUpdate:u}=r;this.resolvedAt=ye.now(),Mh(t,s,i,a)||((Re.instantAnimations||!l)&&u?.(Wr(t,r,n)),t[0]=t[t.length-1],no(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Nh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&Lh(h)?new Dh({...h,element:h.motionValue.owner.current}):new Yr(h);m.finished.then(()=>this.notifyFinished()).catch(Ce),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),vh()),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 Oh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fh(e){const t=Oh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const jh=4;function Zs(e,t,n=1){ze(n<=jh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Fh(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return rs(i)?parseFloat(i):i}return Vr(o)?Zs(o,t,n+1):o}function ro(e,t){return e?.[t]??e?.default??e}const qs=new Set(["width","height","top","left","right","bottom",...At]),zh={test:e=>e==="auto",parse:e=>e},Js=e=>t=>t.test(e),Qs=[kt,$,Be,Ye,$u,Du,zh],ea=e=>Qs.find(Js(e));function Rh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||is(e):!0}const _h=new Set(["brightness","contrast","saturate","opacity"]);function Hh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ir)||[];if(!r)return e;const o=n.replace(r,"");let s=_h.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const Uh=/\b([a-z-]*)\(.*?\)/gu,oo={...Ge,getAnimatableNone:e=>{const t=e.match(Uh);return t?t.map(Hh).join(" "):e}},ta={...kt,transform:Math.round},io={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,radius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,backgroundPositionX:$,backgroundPositionY:$,...{rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Vn,scaleX:Vn,scaleY:Vn,scaleZ:Vn,skew:Ye,skewX:Ye,skewY:Ye,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Wt,originX:Cs,originY:Cs,originZ:$},zIndex:ta,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:ta},Wh={...io,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:oo,WebkitFilter:oo},na=e=>Wh[e];function ra(e,t){let n=na(e);return n!==oo&&(n=Ge),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Kh=new Set(["auto","none","0"]);function Yh(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!Kh.has(s)&&Gt(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ra(n,o)}class Gh extends to{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),Vr(d))){const u=Zs(d,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!qs.has(r)||t.length!==2)return;const[o,s]=t,i=ea(o),a=ea(s);if(i!==a)if(zs(i)&&zs(a))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else at[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Rh(t[o]))&&r.push(o);r.length&&Yh(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=at[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=at[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Xh(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 oa=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ia(e){return os(e)&&"offsetHeight"in e}const sa=30,Zh=e=>!isNaN(parseFloat(e));class qh{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ye.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Zh(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Pr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Er);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>sa)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,sa);return ss(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function $t(e,t){return new qh(e,t)}const{schedule:so}=ws(queueMicrotask,!1),$e={x:!1,y:!1};function aa(){return $e.x||$e.y}function Jh(e){return e==="x"||e==="y"?$e[e]?null:($e[e]=!0,()=>{$e[e]=!1}):$e.x||$e.y?null:($e.x=$e.y=!0,()=>{$e.x=$e.y=!1})}function la(e,t){const n=Xh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function ca(e){return!(e.pointerType==="touch"||aa())}function Qh(e,t,n={}){const[r,o,s]=la(e,n),i=a=>{if(!ca(a))return;const{target:l}=a,d=t(l,a);if(typeof d!="function"||!l)return;const u=c=>{ca(c)&&(d(c),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const da=(e,t)=>t?e===t?!0:da(e,t.parentElement):!1,ao=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ef=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tf(e){return ef.has(e.tagName)||e.tabIndex!==-1}const Bn=new WeakSet;function ua(e){return t=>{t.key==="Enter"&&e(t)}}function lo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const nf=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ua(()=>{if(Bn.has(n))return;lo(n,"down");const o=ua(()=>{lo(n,"up")}),s=()=>lo(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ha(e){return ao(e)&&!aa()}function rf(e,t,n={}){const[r,o,s]=la(e,n),i=a=>{const l=a.currentTarget;if(!ha(a))return;Bn.add(l);const d=t(l,a),u=(m,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",h),Bn.has(l)&&Bn.delete(l),ha(m)&&typeof d=="function"&&d(m,{success:g})},c=m=>{u(m,l===window||l===document||n.useGlobalTarget||da(l,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),ia(a)&&(a.addEventListener("focus",d=>nf(d,o)),!tf(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function fa(e){return os(e)&&"ownerSVGElement"in e}function of(e){return fa(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),sf=[...Qs,re,Ge],af=e=>sf.find(Js(e)),co=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function pa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lf(...e){return t=>{let n=!1;const r=e.map(o=>{const s=pa(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():pa(e[o],null)}}}}function cf(...e){return cn.useCallback(lf(...e),e)}class df extends cn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ia(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function uf({children:e,isPresent:t,anchorX:n,root:r}){const o=f.useId(),s=f.useRef(null),i=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(co),l=cf(s,e?.ref);return f.useInsertionEffect(()=>{const{width:d,height:u,top:c,left:h,right:m}=i.current;if(t||!s.current||!d||!u)return;const g=n==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=o;const v=document.createElement("style");a&&(v.nonce=a);const k=r??document.head;return k.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
226
|
+
`,Ms={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 Ms?Ms[t]:t;return g.jsx(af,{$color:n,className:r,children:typeof e=="function"?g.jsx(e,{size:i,...o}):e})},Fr=p.createContext({});function _r(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const Nr=typeof window<"u",Ds=Nr?p.useLayoutEffect:p.useEffect,Nn=p.createContext(null);function Or(e,t){e.indexOf(t)===-1&&e.push(t)}function Br(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ge=(e,t,n)=>n>t?t:n<e?e:n;function zr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Vt=()=>{},Ue=()=>{};process.env.NODE_ENV!=="production"&&(Vt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(zr(t,n))},Ue=(e,t,n)=>{if(!e)throw new Error(zr(t,n))});const We={},As=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Vs(e){return typeof e=="object"&&e!==null}const Is=e=>/^0[^.\s]+$/u.test(e);function Hr(e){let t;return()=>(t===void 0&&(t=e()),t)}const ke=e=>e,lf=(e,t)=>n=>t(e(n)),Zt=(...e)=>e.reduce(lf),Jt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class jr{constructor(){this.subscriptions=[]}add(t){return Or(this.subscriptions,t),()=>Br(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 Ie=e=>e*1e3,Ee=e=>e/1e3;function Rs(e,t){return t?e*(1e3/t):0}const Ls=new Set;function Gr(e,t,n){e||Ls.has(t)||(console.warn(zr(t,n)),Ls.add(t))}const Fs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,cf=1e-7,uf=12;function df(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Fs(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>cf&&++a<uf);return s}function Qt(e,t,n,r){if(e===t&&n===r)return ke;const o=i=>df(i,0,1,e,n);return i=>i===0||i===1?i:Fs(o(i),t,r)}const _s=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ns=e=>t=>1-e(1-t),Os=Qt(.33,1.53,.69,.99),Ur=Ns(Os),Bs=_s(Ur),zs=e=>(e*=2)<1?.5*Ur(e):.5*(2-Math.pow(2,-10*(e-1))),Wr=e=>1-Math.sin(Math.acos(e)),Hs=Ns(Wr),js=_s(Wr),ff=Qt(.42,0,1,1),hf=Qt(0,0,.58,1),Gs=Qt(.42,0,.58,1),pf=e=>Array.isArray(e)&&typeof e[0]!="number",Us=e=>Array.isArray(e)&&typeof e[0]=="number",Ws={linear:ke,easeIn:ff,easeInOut:Gs,easeOut:hf,circIn:Wr,circInOut:js,circOut:Hs,backIn:Ur,backInOut:Bs,backOut:Os,anticipate:zs},mf=e=>typeof e=="string",Ks=e=>{if(Us(e)){Ue(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Qt(t,n,r,o)}else if(mf(e))return Ue(Ws[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ws[e];return e},On=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function gf(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,f=!1)=>{const m=f&&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 yf=40;function qs(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=On.reduce((x,T)=>(x[T]=gf(i),x),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:f,render:h,postRender:m}=s,y=()=>{const x=We.useManualTiming?o.timestamp:performance.now();n=!1,We.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(x-o.timestamp,yf),1)),o.timestamp=x,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),d.process(o),u.process(o),f.process(o),h.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},w=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:On.reduce((x,T)=>{const S=s[T];return x[T]=(k,E=!1,M=!1)=>(n||w(),S.schedule(k,E,M)),x},{}),cancel:x=>{for(let T=0;T<On.length;T++)s[On[T]].cancel(x)},state:o,steps:s}}const{schedule:Q,cancel:Je,state:ue,steps:Kr}=qs(typeof requestAnimationFrame<"u"?requestAnimationFrame:ke,!0);let Bn;function vf(){Bn=void 0}const be={now:()=>(Bn===void 0&&be.set(ue.isProcessing||We.useManualTiming?ue.timestamp:performance.now()),Bn),set:e=>{Bn=e,queueMicrotask(vf)}},Ys=e=>t=>typeof t=="string"&&t.startsWith(e),qr=Ys("--"),wf=Ys("var(--"),Yr=e=>wf(e)?bf.test(e.split("/*")[0].trim()):!1,bf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,It={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},en={...It,transform:e=>Ge(0,1,e)},zn={...It,default:1},tn=e=>Math.round(e*1e5)/1e5,Xr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xf(e){return e==null}const Sf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zr=(e,t)=>n=>!!(typeof n=="string"&&Sf.test(n)&&n.startsWith(e)||t&&!xf(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Xr);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Cf=e=>Ge(0,255,e),Jr={...It,transform:e=>Math.round(Cf(e))},pt={test:Zr("rgb","red"),parse:Xs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jr.transform(e)+", "+Jr.transform(t)+", "+Jr.transform(n)+", "+tn(en.transform(r))+")"};function Tf(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 Qr={test:Zr("#"),parse:Tf,transform:pt.transform},nn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qe=nn("deg"),Be=nn("%"),A=nn("px"),$f=nn("vh"),Pf=nn("vw"),Zs={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},Rt={test:Zr("hsl","hue"),parse:Xs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(tn(t))+", "+Be.transform(tn(n))+", "+tn(en.transform(r))+")"},ie={test:e=>pt.test(e)||Qr.test(e)||Rt.test(e),parse:e=>pt.test(e)?pt.parse(e):Rt.test(e)?Rt.parse(e):Qr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pt.transform(e):Rt.transform(e),getAnimatableNone:e=>{const t=ie.parse(e);return t.alpha=0,ie.transform(t)}},kf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ef(e){return isNaN(e)&&typeof e=="string"&&(e.match(Xr)?.length||0)+(e.match(kf)?.length||0)>0}const Js="number",Qs="color",Mf="var",Df="var(",ea="${}",Af=/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 rn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Af,l=>(ie.test(l)?(r.color.push(i),o.push(Qs),n.push(ie.parse(l))):l.startsWith(Df)?(r.var.push(i),o.push(Mf),n.push(l)):(r.number.push(i),o.push(Js),n.push(parseFloat(l))),++i,ea)).split(ea);return{values:n,split:a,indexes:r,types:o}}function ta(e){return rn(e).values}function na(e){const{split:t,types:n}=rn(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===Js?i+=tn(o[s]):a===Qs?i+=ie.transform(o[s]):i+=o[s]}return i}}const Vf=e=>typeof e=="number"?0:ie.test(e)?ie.getAnimatableNone(e):e;function If(e){const t=ta(e);return na(e)(t.map(Vf))}const et={test:Ef,parse:ta,createTransformer:na,getAnimatableNone:If};function eo(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 Rf({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=eo(l,a,e+1/3),i=eo(l,a,e),s=eo(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Hn(e,t){return n=>n>0?t:e}const ee=(e,t,n)=>e+(t-e)*n,to=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Lf=[Qr,pt,Rt],Ff=e=>Lf.find(t=>t.test(e));function ra(e){const t=Ff(e);if(Vt(!!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===Rt&&(n=Rf(n)),n}const oa=(e,t)=>{const n=ra(e),r=ra(t);if(!n||!r)return Hn(e,t);const o={...n};return i=>(o.red=to(n.red,r.red,i),o.green=to(n.green,r.green,i),o.blue=to(n.blue,r.blue,i),o.alpha=ee(n.alpha,r.alpha,i),pt.transform(o))},no=new Set(["none","hidden"]);function _f(e,t){return no.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nf(e,t){return n=>ee(e,t,n)}function ro(e){return typeof e=="number"?Nf:typeof e=="string"?Yr(e)?Hn:ie.test(e)?oa:zf:Array.isArray(e)?ia:typeof e=="object"?ie.test(e)?oa:Of:Hn}function ia(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>ro(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Of(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ro(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function Bf(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 zf=(e,t)=>{const n=et.createTransformer(t),r=rn(e),o=rn(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?no.has(e)&&!o.values.length||no.has(t)&&!r.values.length?_f(e,t):Zt(ia(Bf(r,o),o.values),n):(Vt(!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"),Hn(e,t))};function sa(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):ro(e)(e,t)}const Hf=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Q.update(t,n),stop:()=>Je(t),now:()=>ue.isProcessing?ue.timestamp:be.now()}},aa=(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)})`},jn=2e4;function oo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<jn;)t+=n,r=e.next(t);return t>=jn?1/0:t}function jf(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(oo(r),jn);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ee(o)}}const Gf=5;function la(e,t,n){const r=Math.max(t-Gf,0);return Rs(n-e(r),t-r)}const te={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},io=.001;function Uf({duration:e=te.duration,bounce:t=te.bounce,velocity:n=te.velocity,mass:r=te.mass}){let o,i;Vt(e<=Ie(te.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ge(te.minDamping,te.maxDamping,s),e=Ge(te.minDuration,te.maxDuration,Ee(e)),s<1?(o=c=>{const d=c*s,u=d*e,f=d-n,h=so(c,s),m=Math.exp(-u);return io-f/h*m},i=c=>{const u=c*s*e,f=u*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-u),y=so(Math.pow(c,2),s);return(-o(c)+io>0?-1:1)*((f-h)*m)/y}):(o=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-io+d*u},i=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=Kf(o,i,a);if(e=Ie(e),isNaN(l))return{stiffness:te.stiffness,damping:te.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const Wf=12;function Kf(e,t,n){let r=n;for(let o=1;o<Wf;o++)r=r-e(r)/t(r);return r}function so(e,t){return e*Math.sqrt(1-t*t)}const qf=["duration","bounce"],Yf=["stiffness","damping","mass"];function ca(e,t){return t.some(n=>e[n]!==void 0)}function Xf(e){let t={velocity:te.velocity,stiffness:te.stiffness,damping:te.damping,mass:te.mass,isResolvedFromDuration:!1,...e};if(!ca(e,Yf)&&ca(e,qf))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ge(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:te.mass,stiffness:o,damping:i}}else{const n=Uf(e);t={...t,...n,mass:te.mass},t.isResolvedFromDuration=!0}return t}function Gn(e=te.visualDuration,t=te.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:f,isResolvedFromDuration:h}=Xf({...n,velocity:-Ee(n.velocity||0)}),m=f||0,y=c/(2*Math.sqrt(l*d)),w=s-i,v=Ee(Math.sqrt(l/d)),b=Math.abs(w)<5;r||(r=b?te.restSpeed.granular:te.restSpeed.default),o||(o=b?te.restDelta.granular:te.restDelta.default);let x;if(y<1){const S=so(v,y);x=k=>{const E=Math.exp(-y*v*k);return s-E*((m+y*v*w)/S*Math.sin(S*k)+w*Math.cos(S*k))}}else if(y===1)x=S=>s-Math.exp(-v*S)*(w+(m+v*w)*S);else{const S=v*Math.sqrt(y*y-1);x=k=>{const E=Math.exp(-y*v*k),M=Math.min(S*k,300);return s-E*((m+y*v*w)*Math.sinh(M)+S*w*Math.cosh(M))/S}}const T={calculatedDuration:h&&u||null,next:S=>{const k=x(S);if(h)a.done=S>=u;else{let E=S===0?m:0;y<1&&(E=S===0?Ie(m):la(x,S,k));const M=Math.abs(E)<=r,L=Math.abs(s-k)<=o;a.done=M&&L}return a.value=a.done?s:k,a},toString:()=>{const S=Math.min(oo(T),jn),k=aa(E=>T.next(S*E).value,S,30);return S+"ms "+k},toTransition:()=>{}};return T}Gn.applyToOptions=e=>{const t=jf(e,100,Gn);return e.ease=t.ease,e.duration=Ie(t.duration),e.type="keyframes",e};function ao({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],f={done:!1,value:u},h=M=>a!==void 0&&M<a||l!==void 0&&M>l,m=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let y=n*t;const w=u+y,v=s===void 0?w:s(w);v!==w&&(y=v-u);const b=M=>-y*Math.exp(-M/r),x=M=>v+b(M),T=M=>{const L=b(M),B=x(M);f.done=Math.abs(L)<=c,f.value=f.done?v:B};let S,k;const E=M=>{h(f.value)&&(S=M,k=Gn({keyframes:[f.value,m(f.value)],velocity:la(x,M,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return E(0),{calculatedDuration:null,next:M=>{let L=!1;return!k&&S===void 0&&(L=!0,T(M),E(M)),S!==void 0&&M>=S?k.next(M-S):(!L&&T(M),f)}}}function Zf(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]||ke:t;a=Zt(l,a)}r.push(a)}return r}function Jf(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=Zf(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 f=Jt(e[u],e[u+1],d);return a[u](f)};return n?d=>c(Ge(e[0],e[i-1],d)):c}function Qf(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Jt(0,t,r);e.push(ee(n,1,o))}}function eh(e){const t=[0];return Qf(t,e.length-1),t}function th(e,t){return e.map(n=>n*t)}function nh(e,t){return e.map(()=>t||Gs).splice(0,e.length-1)}function Lt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=pf(r)?r.map(Ks):Ks(r),i={done:!1,value:t[0]},s=th(n&&n.length===t.length?n:eh(t),e),a=Jf(s,t,{ease:Array.isArray(o)?o:nh(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const rh=e=>e!==null;function lo(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(rh),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const oh={decay:ao,inertia:ao,tween:Lt,keyframes:Lt,spring:Gn};function ua(e){typeof e.type=="string"&&(e.type=oh[e.type])}class co{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 uo extends co{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!==be.now()&&this.tick(be.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;ua(t);const{type:n=Lt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Lt;process.env.NODE_ENV!=="production"&&l!==Lt&&Ue(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Lt&&typeof a[0]!="number"&&(this.mixKeyframes=Zt(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=oo(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:f,repeatDelay:h,type:m,onUpdate:y,finalKeyframe:w}=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),b=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let x=this.currentTime,T=r;if(u){const M=Math.min(this.currentTime,o)/a;let L=Math.floor(M),B=M%1;!B&&M>=1&&(B=1),B===1&&L--,L=Math.min(L,u+1),!!(L%2)&&(f==="reverse"?(B=1-B,h&&(B-=h/a)):f==="mirror"&&(T=s)),x=Ge(0,1,B)*a}const S=b?{done:!1,value:d[0]}:T.next(x);i&&(S.value=i(S.value));let{done:k}=S;!b&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return E&&m!==ao&&(S.value=lo(d,this.options,w,this.speed)),y&&y(S.value),E&&this.finish(),S}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=Ie(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(be.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Hf,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(be.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 sh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const mt=e=>e*180/Math.PI,fo=e=>{const t=mt(Math.atan2(e[1],e[0]));return ho(t)},ah={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:fo,rotateZ:fo,skewX:e=>mt(Math.atan(e[1])),skewY:e=>mt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ho=e=>(e=e%360,e<0&&(e+=360),e),da=fo,fa=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ha=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),lh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fa,scaleY:ha,scale:e=>(fa(e)+ha(e))/2,rotateX:e=>ho(mt(Math.atan2(e[6],e[5]))),rotateY:e=>ho(mt(Math.atan2(-e[2],e[0]))),rotateZ:da,rotate:da,skewX:e=>mt(Math.atan(e[4])),skewY:e=>mt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function po(e){return e.includes("scale")?1:0}function mo(e,t){if(!e||e==="none")return po(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=lh,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ah,o=a}if(!o)return po(t);const i=r[t],s=o[1].split(",").map(uh);return typeof i=="function"?i(s):s[i]}const ch=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return mo(n,t)};function uh(e){return parseFloat(e.trim())}const Ft=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_t=new Set(Ft),pa=e=>e===It||e===A,dh=new Set(["x","y","z"]),fh=Ft.filter(e=>!dh.has(e));function hh(e){const t=[];return fh.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gt={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})=>mo(t,"x"),y:(e,{transform:t})=>mo(t,"y")};gt.translateX=gt.x,gt.translateY=gt.y;const yt=new Set;let go=!1,yo=!1,vo=!1;function ma(){if(yo){const e=Array.from(yt).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)})}yo=!1,go=!1,yt.forEach(e=>e.complete(vo)),yt.clear()}function ga(){yt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(yo=!0)})}function ph(){vo=!0,ga(),ma(),vo=!1}class wo{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?(yt.add(this),go||(go=!0,Q.read(ga),Q.resolveKeyframes(ma))):(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])}sh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),yt.delete(this)}cancel(){this.state==="scheduled"&&(yt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const mh=e=>e.startsWith("--");function gh(e,t,n){mh(t)?e.style.setProperty(t,n):e.style[t]=n}const yh=Hr(()=>window.ScrollTimeline!==void 0),vh={};function wh(e,t){const n=Hr(e);return()=>vh[t]??n()}const ya=wh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),on=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,va={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:on([0,.65,.55,1]),circOut:on([.55,0,1,.45]),backIn:on([.31,.01,.66,-.59]),backOut:on([.33,1.53,.69,.99])};function wa(e,t){if(e)return typeof e=="function"?ya()?aa(e,t):"ease-out":Us(e)?on(e):Array.isArray(e)?e.map(n=>wa(n,t)||va.easeOut):va[e]}function bh(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=wa(a,o);Array.isArray(u)&&(d.easing=u);const f={delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(d,f)}function ba(e){return typeof e=="function"&&"applyToOptions"in e}function xh({type:e,...t}){return ba(e)&&ya()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Sh extends co{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!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=bh(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=lo(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):gh(n,r,d),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return 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.finishedTime=null,this.animation.currentTime=Ie(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&yh()?(this.animation.timeline=t,ke):n(this)}}const xa={anticipate:zs,backInOut:Bs,circInOut:js};function Ch(e){return e in xa}function Th(e){typeof e.ease=="string"&&Ch(e.ease)&&(e.ease=xa[e.ease])}const Sa=10;class $h extends Sh{constructor(t){Th(t),ua(t),super(t),t.startTime&&(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 uo({...s,autoplay:!1}),l=Ie(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Sa).value,a.sample(l).value,Sa),a.stop()}}const Ca=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(et.test(e)||e==="0")&&!e.startsWith("url("));function Ph(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function kh(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Ca(o,t),a=Ca(i,t);return Vt(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:Ph(e)||(n==="spring"||ba(n))&&r}function bo(e){e.duration=0,e.type="keyframes"}const Eh=new Set(["opacity","clipPath","filter","transform"]),Mh=Hr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Dh(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 Mh()&&n&&Eh.has(n)&&(n!=="transform"||!c)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Ah=40;class Vh extends co{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=be.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:d,...u},h=d?.KeyframeResolver||wo;this.keyframeResolver=new h(a,(m,y,w)=>this.onKeyframesResolved(m,y,f,!w),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=be.now(),kh(t,i,s,a)||((We.instantAnimations||!l)&&d?.(lo(t,r,n)),t[0]=t[t.length-1],bo(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Ah?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!c&&Dh(f)?new $h({...f,element:f.motionValue.owner.current}):new uo(f);h.finished.then(()=>this.notifyFinished()).catch(ke),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),ph()),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 Ih=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rh(e){const t=Ih.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Lh=4;function Ta(e,t,n=1){Ue(n<=Lh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Rh(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return As(s)?parseFloat(s):s}return Yr(o)?Ta(o,t,n+1):o}function xo(e,t){return e?.[t]??e?.default??e}const $a=new Set(["width","height","top","left","right","bottom",...Ft]),Fh={test:e=>e==="auto",parse:e=>e},Pa=e=>t=>t.test(e),ka=[It,A,Be,Qe,Pf,$f,Fh],Ea=e=>ka.find(Pa(e));function _h(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Is(e):!0}const Nh=new Set(["brightness","contrast","saturate","opacity"]);function Oh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xr)||[];if(!r)return e;const o=n.replace(r,"");let i=Nh.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Bh=/\b([a-z-]*)\(.*?\)/gu,So={...et,getAnimatableNone:e=>{const t=e.match(Bh);return t?t.map(Oh).join(" "):e}},Ma={...It,transform:Math.round},Co={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,backgroundPositionX:A,backgroundPositionY:A,...{rotate:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:zn,scaleX:zn,scaleY:zn,scaleZ:zn,skew:Qe,skewX:Qe,skewY:Qe,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:en,originX:Zs,originY:Zs,originZ:A},zIndex:Ma,fillOpacity:en,strokeOpacity:en,numOctaves:Ma},zh={...Co,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:So,WebkitFilter:So},Da=e=>zh[e];function Aa(e,t){let n=Da(e);return n!==So&&(n=et),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Hh=new Set(["auto","none","0"]);function jh(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Hh.has(i)&&rn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Aa(n,o)}class Gh extends wo{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 l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Yr(c))){const d=Ta(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!$a.has(r)||t.length!==2)return;const[o,i]=t,s=Ea(o),a=Ea(i);if(s!==a)if(pa(s)&&pa(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else gt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||_h(t[o]))&&r.push(o);r.length&&jh(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gt[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]=gt[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 Uh(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 Va=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ia(e){return Vs(e)&&"offsetHeight"in e}const Ra=30,Wh=e=>!isNaN(parseFloat(e));class Kh{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=be.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=be.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Wh(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Gr(!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 jr);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.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=be.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ra)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ra);return Rs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Nt(e,t){return new Kh(e,t)}const{schedule:To}=qs(queueMicrotask,!1),Re={x:!1,y:!1};function La(){return Re.x||Re.y}function qh(e){return e==="x"||e==="y"?Re[e]?null:(Re[e]=!0,()=>{Re[e]=!1}):Re.x||Re.y?null:(Re.x=Re.y=!0,()=>{Re.x=Re.y=!1})}function Fa(e,t){const n=Uh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function _a(e){return!(e.pointerType==="touch"||La())}function Yh(e,t,n={}){const[r,o,i]=Fa(e,n),s=a=>{if(!_a(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const d=u=>{_a(u)&&(c(u),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Na=(e,t)=>t?e===t?!0:Na(e,t.parentElement):!1,$o=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Xh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Zh(e){return Xh.has(e.tagName)||e.tabIndex!==-1}const Un=new WeakSet;function Oa(e){return t=>{t.key==="Enter"&&e(t)}}function Po(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Jh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Oa(()=>{if(Un.has(n))return;Po(n,"down");const o=Oa(()=>{Po(n,"up")}),i=()=>Po(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 Ba(e){return $o(e)&&!La()}function Qh(e,t,n={}){const[r,o,i]=Fa(e,n),s=a=>{const l=a.currentTarget;if(!Ba(a))return;Un.add(l);const c=t(l,a),d=(h,m)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",f),Un.has(l)&&Un.delete(l),Ba(h)&&typeof c=="function"&&c(h,{success:m})},u=h=>{d(h,l===window||l===document||n.useGlobalTarget||Na(l,h.target))},f=h=>{d(h,!1)};window.addEventListener("pointerup",u,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Ia(a)&&(a.addEventListener("focus",c=>Jh(c,o)),!Zh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function za(e){return Vs(e)&&"ownerSVGElement"in e}function ep(e){return za(e)&&e.tagName==="svg"}const he=e=>!!(e&&e.getVelocity),tp=[...ka,ie,et],np=e=>tp.find(Pa(e)),ko=p.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 rp(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ha(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():Ha(e[o],null)}}}}function op(...e){return lt.useCallback(rp(...e),e)}class ip extends lt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=Ia(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 sp({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(ko),l=op(i,e?.ref);return p.useInsertionEffect(()=>{const{width:c,height:d,top:u,left:f,right:h}=s.current;if(t||!i.current||!c||!d)return;const m=n==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const w=r??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
227
227
|
[data-motion-pop-id="${o}"] {
|
|
228
228
|
position: absolute !important;
|
|
229
|
-
width: ${
|
|
230
|
-
height: ${
|
|
231
|
-
${
|
|
232
|
-
top: ${
|
|
229
|
+
width: ${c}px !important;
|
|
230
|
+
height: ${d}px !important;
|
|
231
|
+
${m}px !important;
|
|
232
|
+
top: ${u}px !important;
|
|
233
233
|
}
|
|
234
|
-
`),()=>{k.contains(v)&&k.removeChild(v)}},[t]),p.jsx(df,{isPresent:t,childRef:s,sizeRef:i,children:cn.cloneElement(e,{ref:l})})}const hf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,root:l})=>{const d=wr(ff),u=f.useId();let c=!0,h=f.useMemo(()=>(c=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;r&&r()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,r]);return s&&c&&(h={...h}),f.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),cn.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),i==="popLayout"&&(e=p.jsx(uf,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(Dn.Provider,{value:h,children:e})};function ff(){return new Map}function ma(e=!0){const t=f.useContext(Dn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=f.useId();f.useEffect(()=>{if(e)return o(s)},[e]);const i=f.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const On=e=>e.key||"";function ga(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const Zt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",root:l})=>{const[d,u]=ma(i),c=f.useMemo(()=>ga(e),[e]),h=i&&!d?[]:c.map(On),m=f.useRef(!0),g=f.useRef(c),v=wr(()=>new Map),[k,y]=f.useState(c),[S,C]=f.useState(c);ns(()=>{m.current=!1,g.current=c;for(let P=0;P<S.length;P++){const A=On(S[P]);h.includes(A)?v.delete(A):v.get(A)!==!0&&v.set(A,!1)}},[S,h.length,h.join("-")]);const T=[];if(c!==k){let P=[...c];for(let A=0;A<S.length;A++){const D=S[A],B=On(D);h.includes(B)||(P.splice(A,0,D),T.push(D))}return s==="wait"&&T.length&&(P=T),C(ga(P)),y(c),null}process.env.NODE_ENV!=="production"&&s==="wait"&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:w}=f.useContext(br);return p.jsx(p.Fragment,{children:S.map(P=>{const A=On(P),D=i&&!d?!1:c===S||h.includes(A),B=()=>{if(v.has(A))v.set(A,!0);else return;let F=!0;v.forEach(q=>{q||(F=!1)}),F&&(w?.(),C(g.current),i&&u?.(),r&&r())};return p.jsx(hf,{isPresent:D,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:l,onExitComplete:D?void 0:B,anchorX:a,children:P},A)})})},ya=f.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"]},Mt={};for(const e in va)Mt[e]={isEnabled:t=>va[e].some(n=>!!t[n])};function pf(e){for(const t in e)Mt[t]={...Mt[t],...e[t]}}const mf=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||mf.has(e)}let ba=e=>!Fn(e);function gf(e){typeof e=="function"&&(ba=t=>t.startsWith("on")?!Fn(t):e(t))}try{gf(require("@emotion/is-prop-valid").default)}catch{}function yf(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ba(o)||n===!0&&Fn(o)||!t&&!Fn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jn=f.createContext({});function zn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qt(e){return typeof e=="string"||Array.isArray(e)}const uo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ho=["initial",...uo];function Rn(e){return zn(e.animate)||ho.some(t=>qt(e[t]))}function wa(e){return!!(Rn(e)||e.variants)}function vf(e,t){if(Rn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qt(n)?n:void 0,animate:qt(r)?r:void 0}}return e.inherit!==!1?t:{}}function bf(e){const{initial:t,animate:n}=vf(e,f.useContext(jn));return f.useMemo(()=>({initial:t,animate:n}),[xa(t),xa(n)])}function xa(e){return Array.isArray(e)?e.join(" "):e}const Jt={};function wf(e){for(const t in e)Jt[t]=e[t],Mr(t)&&(Jt[t].isCSSVariable=!0)}function Sa(e,{layout:t,layoutId:n}){return Dt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jt[e]||e==="opacity")}const xf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sf=At.length;function Cf(e,t,n){let r="",o=!0;for(let s=0;s<Sf;s++){const i=At[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(i.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=oa(a,io[i]);if(!l){o=!1;const u=xf[i]||i;r+=`${u}(${d}) `}n&&(t[i]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function fo(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const d=t[l];if(Dt.has(l)){i=!0;continue}else if(Mr(l)){o[l]=d;continue}else{const u=oa(d,io[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(t.transform||(i||n?r.transform=Cf(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${d} ${u}`}}const po=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ca(e,t,n){for(const r in t)!ue(t[r])&&!Sa(r,n)&&(e[r]=t[r])}function Tf({transformTemplate:e},t){return f.useMemo(()=>{const n=po();return fo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function kf(e,t){const n=e.style||{},r={};return Ca(r,n,e),Object.assign(r,Tf(e,t)),r}function Ef(e,t){const n={},r=kf(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 Pf={offset:"stroke-dashoffset",array:"stroke-dasharray"},Af={offset:"strokeDashoffset",array:"strokeDasharray"};function Df(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?Pf:Af;e[s.offset]=$.transform(-r);const i=$.transform(t),a=$.transform(n);e[s.array]=`${i} ${a}`}function Ta(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},l,d,u){if(fo(e,a,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:c,style:h}=e;c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete c.transformBox),t!==void 0&&(c.x=t),n!==void 0&&(c.y=n),r!==void 0&&(c.scale=r),o!==void 0&&Df(c,o,s,i,!1)}const ka=()=>({...po(),attrs:{}}),Ea=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $f(e,t,n,r){const o=f.useMemo(()=>{const s=ka();return Ta(s,t,Ea(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Ca(s,e.style,e),o.style={...s,...o.style}}return o}const Mf=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function mo(e){return typeof e!="string"||e.includes("-")?!1:!!(Mf.indexOf(e)>-1||/[A-Z]/u.test(e))}function Vf(e,t,n,{latestValues:r},o,s=!1){const a=(mo(e)?$f:Ef)(t,r,o,e),l=yf(t,typeof e=="string",s),d=e!==f.Fragment?{...l,...a,ref:n}:{},{children:u}=t,c=f.useMemo(()=>ue(u)?u.get():u,[u]);return f.createElement(e,{...d,children:c})}function Pa(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function go(e,t,n,r){if(typeof t=="function"){const[o,s]=Pa(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Pa(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function _n(e){return ue(e)?e.get():e}function If({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Lf(n,r,o,e),renderState:t()}}function Lf(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=_n(s[h]);let{initial:i,animate:a}=e;const l=Rn(e),d=wa(e);t&&d&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||i===!1;const c=u?a:i;if(c&&typeof c!="boolean"&&!zn(c)){const h=Array.isArray(c)?c:[c];for(let m=0;m<h.length;m++){const g=go(e,h[m]);if(g){const{transitionEnd:v,transition:k,...y}=g;for(const S in y){let C=y[S];if(Array.isArray(C)){const T=u?C.length-1:0;C=C[T]}C!==null&&(o[S]=C)}for(const S in v)o[S]=v[S]}}}return o}const Aa=e=>(t,n)=>{const r=f.useContext(jn),o=f.useContext(Dn),s=()=>If(e,t,r,o);return n?s():wr(s)};function yo(e,t,n){const{style:r}=e,o={};for(const s in r)(ue(r[s])||t.style&&ue(t.style[s])||Sa(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const Nf=Aa({scrapeMotionValuesFromProps:yo,createRenderState:po});function Da(e,t,n){const r=yo(e,t,n);for(const o in e)if(ue(e[o])||ue(t[o])){const s=At.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const Bf=Aa({scrapeMotionValuesFromProps:Da,createRenderState:ka}),Of=Symbol.for("motionComponentSymbol");function Vt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ff(e,t,n){return f.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vt(n)&&(n.current=r))},[t])}const vo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$a="data-"+vo("framerAppearId"),Ma=f.createContext({});function jf(e,t,n,r,o){const{visualElement:s}=f.useContext(jn),i=f.useContext(ya),a=f.useContext(Dn),l=f.useContext(co).reducedMotion,d=f.useRef(null);r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=d.current,c=f.useContext(Ma);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&zf(d.current,n,o,c);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const m=n[$a],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return ns(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1),u.enteringChildren=void 0)}),u}function zf(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Va(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&Vt(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:d})}function Va(e){if(e)return e.options.allowProjection!==!1?e.projection:Va(e.parent)}function bo(e,{forwardMotionProps:t=!1}={},n,r){n&&pf(n);const o=mo(e)?Bf:Nf;function s(a,l){let d;const u={...f.useContext(co),...a,layoutId:Rf(a)},{isStatic:c}=u,h=bf(a),m=o(a,c);if(!c&&xr){_f(u,n);const g=Hf(u);d=g.MeasureLayout,h.visualElement=jf(e,m,u,r,g.ProjectionNode)}return p.jsxs(jn.Provider,{value:h,children:[d&&h.visualElement?p.jsx(d,{visualElement:h.visualElement,...u}):null,Vf(e,a,Ff(m,h.visualElement,l),m,c,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=f.forwardRef(s);return i[Of]=e,i}function Rf({layoutId:e}){const t=f.useContext(br).id;return t&&e!==void 0?t+"-"+e:e}function _f(e,t){const n=f.useContext(ya).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Tt(!1,r,"lazy-strict-mode"):ze(!1,r,"lazy-strict-mode")}}function Hf(e){const{drag:t,layout:n}=Mt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Uf(e,t){if(typeof Proxy>"u")return bo;const n=new Map,r=(s,i)=>bo(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Pr(!1,"motion() is deprecated. Use motion.create() instead."),r(s,i));return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,bo(i,void 0,e,t)),n.get(i))})}function Ia({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Wf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Kf(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function wo(e){return e===void 0||e===1}function xo({scale:e,scaleX:t,scaleY:n}){return!wo(e)||!wo(t)||!wo(n)}function ct(e){return xo(e)||La(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function La(e){return Na(e.x)||Na(e.y)}function Na(e){return e&&e!=="0%"}function Hn(e,t,n){const r=e-n,o=t*r;return n+o}function Ba(e,t,n,r,o){return o!==void 0&&(e=Hn(e,o,r)),Hn(e,n,r)+t}function So(e,t=0,n=1,r,o){e.min=Ba(e.min,t,n,r,o),e.max=Ba(e.max,t,n,r,o)}function Oa(e,{x:t,y:n}){So(e.x,t.translate,t.scale,t.originPoint),So(e.y,n.translate,n.scale,n.originPoint)}const Fa=.999999999999,ja=1.0000000000001;function Yf(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Lt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Oa(e,i)),r&&ct(s.latestValues)&&Lt(e,s.latestValues))}t.x<ja&&t.x>Fa&&(t.x=1),t.y<ja&&t.y>Fa&&(t.y=1)}function It(e,t){e.min=e.min+t,e.max=e.max+t}function za(e,t,n,r,o=.5){const s=J(e.min,e.max,o);So(e,t,n,s,r)}function Lt(e,t){za(e.x,t.x,t.scaleX,t.scale,t.originX),za(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ra(e,t){return Ia(Kf(e.getBoundingClientRect(),t))}function Gf(e,t,n){const r=Ra(e,n),{scroll:o}=t;return o&&(It(r.x,o.offset.x),It(r.y,o.offset.y)),r}const _a=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nt=()=>({x:_a(),y:_a()}),Ha=()=>({min:0,max:0}),te=()=>({x:Ha(),y:Ha()}),Co={current:null},Ua={current:!1};function Xf(){if(Ua.current=!0,!!xr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Co.current=e.matches;e.addEventListener("change",t),t()}else Co.current=!1}const Zf=new WeakMap;function qf(e,t,n){for(const r in t){const o=t[r],s=n[r];if(ue(o))e.addValue(r,o);else if(ue(s))e.addValue(r,$t(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,$t(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Jf{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=to,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ye.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Z.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Rn(n),this.isVariantNode=wa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in c){const m=c[h];l[h]!==void 0&&ue(m)&&m.set(l[h])}}mount(t){this.current=t,Zf.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)),Ua.current||Xf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Co.current,process.env.NODE_ENV!=="production"&&Pr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ke(this.notifyUpdate),Ke(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Dt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mt){const n=Mt[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Wa.length;r++){const o=Wa[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=qf(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=$t(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(rs(r)||is(r))?r=parseFloat(r):!af(r)&&Ge.test(n)&&(r=ra(t,n)),this.setBaseTarget(t,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=go(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ue(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Er),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){so.render(this.render)}}class Ka extends Jf{constructor(){super(...arguments),this.KeyframeResolver=Gh}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ya(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o?.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function Qf(e){return window.getComputedStyle(e)}class ep extends Ka{constructor(){super(...arguments),this.type="html",this.renderInstance=Ya}readValueFromInstance(t,n){if(Dt.has(n))return this.projection?.isProjecting?Zr(n):fh(t,n);{const r=Qf(t),o=(Mr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ra(t,n)}build(t,n,r){fo(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return yo(t,n,r)}}const Ga=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tp(e,t,n,r){Ya(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ga.has(o)?o:vo(o),t.attrs[o])}class np extends Ka{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dt.has(n)){const r=na(n);return r&&r.default||0}return n=Ga.has(n)?n:vo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Da(t,n,r)}build(t,n,r){Ta(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){tp(t,n,r,o)}mount(t){this.isSVGTag=Ea(t.tagName),super.mount(t)}}const rp=(e,t)=>mo(e)?new np(t):new ep(t,{allowProjection:e!==f.Fragment});function Bt(e,t,n){const r=e.getProps();return go(r,t,n!==void 0?n:r.custom,e)}const To=e=>Array.isArray(e);function op(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$t(n))}function ip(e){return To(e)?e[e.length-1]||0:e}function sp(e,t){const n=Bt(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=ip(s[i]);op(e,i,a)}}function ap(e){return!!(ue(e)&&e.add)}function ko(e,t){const n=e.getValue("willChange");if(ap(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Xa(e){return e.props[$a]}const lp=e=>e!==null;function cp(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(lp),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const dp={type:"spring",stiffness:500,damping:25,restSpeed:10},up=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hp={type:"keyframes",duration:.8},fp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pp=(e,{keyframes:t})=>t.length>2?hp:Dt.has(e)?e.startsWith("scale")?up(t[1]):dp:fp;function mp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:d,...u}){return!!Object.keys(u).length}const Eo=(e,t,n,r={},o,s)=>i=>{const a=ro(r,e)||{},l=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-De(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};mp(a)||Object.assign(u,pp(e,u)),u.duration&&(u.duration=De(u.duration)),u.repeatDelay&&(u.repeatDelay=De(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let c=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(no(u),u.delay===0&&(c=!0)),(Re.instantAnimations||Re.skipAnimations)&&(c=!0,no(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!s&&t.get()!==void 0){const h=cp(u.keyframes,a);if(h!==void 0){Z.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Yr(u):new Bh(u)};function gp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Za(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;r&&(s=r);const l=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const c=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||d&&gp(d,u))continue;const m={delay:n,...ro(s||{},u)},g=c.get();if(g!==void 0&&!c.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Xa(e);if(y){const S=window.MotionHandoffAnimation(y,u,Z);S!==null&&(m.startTime=S,v=!0)}}ko(e,u),c.start(Eo(u,c,h,e.shouldReduceMotion&&qs.has(u)?{type:!1}:m,e,v));const k=c.animation;k&&l.push(k)}return i&&Promise.all(l).then(()=>{Z.update(()=>{i&&sp(e,i)})}),l}function qa(e,t,n,r=0,o=1){const s=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}function Po(e,t,n={}){const r=Bt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Za(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:c}=o;return yp(e,t,l,d,u,c,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,d]=a==="beforeChildren"?[s,i]:[i,s];return l().then(()=>d())}else return Promise.all([s(),i(n.delay)])}function yp(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Po(l,t,{...i,delay:n+(typeof r=="function"?0:r)+qa(e.variantChildren,l,r,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function vp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>Po(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Po(e,t,n);else{const o=typeof t=="function"?Bt(e,t,n.custom):t;r=Promise.all(Za(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ja(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 bp=ho.length;function Qa(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Qa(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<bp;n++){const r=ho[n],o=e.props[r];(qt(o)||o===!1)&&(t[r]=o)}return t}const wp=[...uo].reverse(),xp=uo.length;function Sp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>vp(e,n,r)))}function Cp(e){let t=Sp(e),n=el(),r=!0;const o=l=>(d,u)=>{const c=Bt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(c){const{transition:h,transitionEnd:m,...g}=c;d={...d,...g,...m}}return d};function s(l){t=l(e)}function i(l){const{props:d}=e,u=Qa(e.parent)||{},c=[],h=new Set;let m={},g=1/0;for(let k=0;k<xp;k++){const y=wp[k],S=n[y],C=d[y]!==void 0?d[y]:u[y],T=qt(C),w=y===l?S.isActive:null;w===!1&&(g=k);let P=C===u[y]&&C!==d[y]&&T;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),S.protectedKeys={...m},!S.isActive&&w===null||!C&&!S.prevProp||zn(C)||typeof C=="boolean")continue;const A=Tp(S.prevProp,C);let D=A||y===l&&S.isActive&&!P&&T||k>g&&T,B=!1;const F=Array.isArray(C)?C:[C];let q=F.reduce(o(y),{});w===!1&&(q={});const{prevResolvedValues:H={}}=S,ee={...H,...q},U=V=>{D=!0,h.has(V)&&(B=!0,h.delete(V)),S.needsAnimating[V]=!0;const _=e.getValue(V);_&&(_.liveStyle=!1)};for(const V in ee){const _=q[V],W=H[V];if(m.hasOwnProperty(V))continue;let Y=!1;To(_)&&To(W)?Y=!Ja(_,W):Y=_!==W,Y?_!=null?U(V):h.add(V):_!==void 0&&h.has(V)?U(V):S.protectedKeys[V]=!0}S.prevProp=C,S.prevResolvedValues=q,S.isActive&&(m={...m,...q}),r&&e.blockInitialAnimation&&(D=!1);const he=P&&A;D&&(!he||B)&&c.push(...F.map(V=>{const _={type:y};if(typeof V=="string"&&r&&!he&&e.manuallyAnimateOnMount&&e.parent){const{parent:W}=e,Y=Bt(W,V);if(W.enteringChildren&&Y){const{delayChildren:ce}=Y.transition||{};_.delay=qa(W.enteringChildren,e,ce)}}return{animation:V,options:_}}))}if(h.size){const k={};if(typeof d.initial!="boolean"){const y=Bt(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(k.transition=y.transition)}h.forEach(y=>{const S=e.getBaseTarget(y),C=e.getValue(y);C&&(C.liveStyle=!0),k[y]=S??null}),c.push({animation:k})}let v=!!c.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(c):Promise.resolve()}function a(l,d){if(n[l].isActive===d)return Promise.resolve();e.variantChildren?.forEach(c=>c.animationState?.setActive(l,d)),n[l].isActive=d;const u=i(l);for(const c in n)n[c].protectedKeys={};return u}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=el(),r=!0}}}function Tp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ja(t,e):!1}function dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function el(){return{animate:dt(!0),whileInView:dt(),whileHover:dt(),whileTap:dt(),whileDrag:dt(),whileFocus:dt(),exit:dt()}}class Xe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class kp extends Xe{constructor(t){super(t),t.animationState||(t.animationState=Cp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Ep=0;class Pp extends Xe{constructor(){super(...arguments),this.id=Ep++}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 Ap={animation:{Feature:kp},exit:{Feature:Pp}};function Qt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function en(e){return{point:{x:e.pageX,y:e.pageY}}}const Dp=e=>t=>ao(t)&&e(t,en(t));function tn(e,t,n,r){return Qt(e,t,Dp(n),r)}const tl=1e-4,$p=1-tl,Mp=1+tl,nl=.01,Vp=0-nl,Ip=0+nl;function pe(e){return e.max-e.min}function Lp(e,t,n){return Math.abs(e-t)<=n}function rl(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=pe(n)/pe(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$p&&e.scale<=Mp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Vp&&e.translate<=Ip||isNaN(e.translate))&&(e.translate=0)}function nn(e,t,n,r){rl(e.x,t.x,n.x,r?r.originX:void 0),rl(e.y,t.y,n.y,r?r.originY:void 0)}function ol(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function Np(e,t,n){ol(e.x,t.x,n.x),ol(e.y,t.y,n.y)}function il(e,t,n){e.min=t.min-n.min,e.max=e.min+pe(t)}function rn(e,t,n){il(e.x,t.x,n.x),il(e.y,t.y,n.y)}function ke(e){return[e("x"),e("y")]}const sl=({current:e})=>e?e.ownerDocument.defaultView:null,al=(e,t)=>Math.abs(e-t);function Bp(e,t){const n=al(e.x,t.x),r=al(e.y,t.y);return Math.sqrt(n**2+r**2)}class ll{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Do(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Bp(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:v}=h,{timestamp:k}=le;this.history.push({...v,timestamp:k});const{onStart:y,onMove:S}=this.handlers;m||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Ao(m,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:k}=this.handlers;if(this.dragSnapToOrigin&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Do(h.type==="pointercancel"?this.lastMoveEventInfo:Ao(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),v&&v(h,y)},!ao(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const a=en(t),l=Ao(a,this.transformPagePoint),{point:d}=l,{timestamp:u}=le;this.history=[{...d,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Do(l,this.history)),this.removeListeners=_t(tn(this.contextWindow,"pointermove",this.handlePointerMove),tn(this.contextWindow,"pointerup",this.handlePointerUp),tn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ke(this.updatePoint)}}function Ao(e,t){return t?{point:t(e.point)}:e}function cl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Do({point:e},t){return{point:e,delta:cl(e,dl(t)),offset:cl(e,Op(t)),velocity:Fp(t,.1)}}function Op(e){return e[0]}function dl(e){return e[e.length-1]}function Fp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=dl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};const s=Te(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function jp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?J(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function ul(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 zp(e,{top:t,left:n,bottom:r,right:o}){return{x:ul(e.x,n,o),y:ul(e.y,t,r)}}function hl(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 Rp(e,t){return{x:hl(e.x,t.x),y:hl(e.y,t.y)}}function _p(e,t){let n=.5;const r=pe(e),o=pe(t);return o>r?n=Ht(t.min,t.max-r,e.min):r>o&&(n=Ht(e.min,e.max-o,t.min)),je(0,1,n)}function Hp(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const $o=.35;function Up(e=$o){return e===!1?e=0:e===!0&&(e=$o),{x:fl(e,"left","right"),y:fl(e,"top","bottom")}}function fl(e,t,n){return{min:pl(e,t),max:pl(e,n)}}function pl(e,t){return typeof e=="number"?e:e[t]||0}const Wp=new WeakMap;class Kp{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(en(c).point)},i=(c,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Jh(m),!this.openDragLock))return;this.latestPointerEvent=c,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ke(y=>{let S=this.getAxisMotionValue(y).get()||0;if(Be.test(S)){const{projection:C}=this.visualElement;if(C&&C.layout){const T=C.layout.layoutBox[y];T&&(S=pe(T)*(parseFloat(S)/100))}}this.originPoint[y]=S}),v&&Z.postRender(()=>v(c,h)),ko(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},a=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:k}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=h;if(g&&this.currentDirection===null){this.currentDirection=Yp(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),k&&k(c,h)},l=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h,this.stop(c,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>ke(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ll(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:sl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Z.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Un(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=jp(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Vt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=zp(r.layoutBox,t):this.constraints=!1,this.elastic=Up(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ke(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Hp(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vt(t))return!1;const r=t.current;ze(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=Gf(r,o.root,this.visualElement.getTransformPagePoint());let i=Rp(o.layout.layoutBox,s);if(n){const a=n(Wf(i));this.hasMutatedConstraints=!!a,a&&(i=Ia(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=ke(u=>{if(!Un(u,n,this.currentDirection))return;let c=l&&l[u]||{};i&&(c={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...c};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ko(this.visualElement,t),r.start(Eo(t,r,0,n,this.visualElement,!1))}stopAnimation(){ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ke(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ke(n=>{const{drag:r}=this.getProps();if(!Un(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n];s.set(t[n]-J(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ke(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const l=a.get();o[i]=_p({min:l,max:l},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ke(i=>{if(!Un(i,t,null))return;const a=this.getAxisMotionValue(i),{min:l,max:d}=this.constraints[i];a.set(J(l,d,o[i]))})}addListeners(){if(!this.visualElement.current)return;Wp.set(this.visualElement,this);const t=this.visualElement.current,n=tn(t,"pointerdown",l=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Z.read(r);const i=Qt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(ke(u=>{const c=this.getAxisMotionValue(u);c&&(this.originPoint[u]+=l[u].translate,c.set(c.get()+l[u].translate))}),this.visualElement.render())}));return()=>{i(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=$o,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function Un(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Yp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Gp extends Xe{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new Kp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const ml=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class Xp extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new ll(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:ml(t),onStart:ml(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&Z.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=tn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const on={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if($.test(e))e=parseFloat(e);else return e;const n=gl(e,t.target.x),r=gl(e,t.target.y);return`${n}% ${r}%`}},Zp={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ge.parse(e);if(o.length>5)return r;const s=Ge.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const d=J(a,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=d),typeof o[3+i]=="number"&&(o[3+i]/=d),s(o)}};let Mo=!1;class qp extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;wf(Jp),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Mo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Wn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,Mo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||Z.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),so.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Mo=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function yl(e){const[t,n]=ma(),r=f.useContext(br);return p.jsx(qp,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Ma),isPresent:t,safeToRemove:n})}const Jp={borderRadius:{...on,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:on,borderTopRightRadius:on,borderBottomLeftRadius:on,borderBottomRightRadius:on,boxShadow:Zp};function Qp(e,t,n){const r=ue(e)?e:$t(e);return r.start(Eo("",r,t,n)),r.animation}const em=(e,t)=>e.depth-t.depth;class tm{constructor(){this.children=[],this.isDirty=!1}add(t){Sr(this.children,t),this.isDirty=!0}remove(t){Cr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(em),this.isDirty=!1,this.children.forEach(t)}}function nm(e,t){const n=ye.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Ke(r),e(s-t))};return Z.setup(r,!0),()=>Ke(r)}const vl=["TopLeft","TopRight","BottomLeft","BottomRight"],rm=vl.length,bl=e=>typeof e=="string"?parseFloat(e):e,wl=e=>typeof e=="number"||$.test(e);function om(e,t,n,r,o,s){o?(e.opacity=J(0,n.opacity??1,im(r)),e.opacityExit=J(t.opacity??1,0,sm(r))):s&&(e.opacity=J(t.opacity??1,n.opacity??1,r));for(let i=0;i<rm;i++){const a=`border${vl[i]}Radius`;let l=xl(t,a),d=xl(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||wl(l)===wl(d)?(e[a]=Math.max(J(bl(l),bl(d),r),0),(Be.test(d)||Be.test(l))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function xl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const im=Sl(0,.5,ps),sm=Sl(.5,.95,Ce);function Sl(e,t,n){return r=>r<e?0:r>t?1:n(Ht(e,t,r))}function Cl(e,t){e.min=t.min,e.max=t.max}function Ee(e,t){Cl(e.x,t.x),Cl(e.y,t.y)}function Tl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function kl(e,t,n,r,o){return e-=t,e=Hn(e,1/n,r),o!==void 0&&(e=Hn(e,1/o,r)),e}function am(e,t=0,n=1,r=.5,o,s=e,i=e){if(Be.test(t)&&(t=parseFloat(t),t=J(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=J(s.min,s.max,r);e===s&&(a-=t),e.min=kl(e.min,t,n,a,o),e.max=kl(e.max,t,n,a,o)}function El(e,t,[n,r,o],s,i){am(e,t[n],t[r],t[o],t.scale,s,i)}const lm=["x","scaleX","originX"],cm=["y","scaleY","originY"];function Pl(e,t,n,r){El(e.x,t,lm,n?n.x:void 0,r?r.x:void 0),El(e.y,t,cm,n?n.y:void 0,r?r.y:void 0)}function Al(e){return e.translate===0&&e.scale===1}function Dl(e){return Al(e.x)&&Al(e.y)}function $l(e,t){return e.min===t.min&&e.max===t.max}function dm(e,t){return $l(e.x,t.x)&&$l(e.y,t.y)}function Ml(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Vl(e,t){return Ml(e.x,t.x)&&Ml(e.y,t.y)}function Il(e){return pe(e.x)/pe(e.y)}function Ll(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class um{constructor(){this.members=[]}add(t){Sr(this.members,t),t.scheduleRender()}remove(t){if(Cr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hm(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:c,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Vo=["","X","Y","Z"],fm=1e3;let pm=0;function Io(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Nl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xa(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Nl(r)}function Bl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=pm++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ym),this.nodes.forEach(xm),this.nodes.forEach(Sm),this.nodes.forEach(vm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new tm)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Er),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=fa(i)&&!of(i),this.instance=i;const{layoutId:a,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,c=0;const h=()=>this.root.updateBlockedByResize=!1;Z.read(()=>{c=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==c&&(c=m,this.root.updateBlockedByResize=!0,u&&u(),u=nm(h,250),Wn.hasAnimatedSinceResize&&(Wn.hasAnimatedSinceResize=!1,this.nodes.forEach(jl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||Pm,{onLayoutAnimationStart:v,onLayoutAnimationComplete:k}=d.getProps(),y=!this.targetLayout||!Vl(this.targetLayout,m),S=!c&&h;if(this.options.layoutRoot||this.resumeFrom||S||c&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...ro(g,"layout"),onPlay:v,onComplete:k};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(u,S)}else c||jl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ke(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Cm),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Nl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const c=this.path[u];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ol);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Fl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wm),this.nodes.forEach(mm),this.nodes.forEach(gm)):this.nodes.forEach(Fl),this.clearAllSnapshots();const a=ye.now();le.delta=je(0,1e3/60,a-le.timestamp),le.timestamp=a,le.isProcessing=!0,$r.update.process(le),$r.preRender.process(le),$r.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,so.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(bm),this.sharedNodes.forEach(Tm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Dl(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;i&&this.instance&&(a||ct(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Am(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return te();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Dm))){const{scroll:d}=this.root;d&&(It(a.x,d.offset.x),It(a.y,d.offset.y))}return a}removeElementScroll(i){const a=te();if(Ee(a,i),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:u,options:c}=d;d!==this.root&&u&&c.layoutScroll&&(u.wasRoot&&Ee(a,i),It(a.x,u.offset.x),It(a.y,u.offset.y))}return a}applyTransform(i,a=!1){const l=te();Ee(l,i);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Lt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ct(u.latestValues)&&Lt(l,u.latestValues)}return ct(this.latestValues)&&Lt(l,this.latestValues),l}removeTransform(i){const a=te();Ee(a,i);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!ct(d.latestValues))continue;xo(d.latestValues)&&d.updateSnapshot();const u=te(),c=d.measurePageBox();Ee(u,c),Pl(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ct(this.latestValues)&&Pl(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:c}=this.options;if(!(!this.layout||!(u||c))){if(this.resolvedRelativeTargetAt=le.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),rn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Ee(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Np(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ee(this.target,this.layout.layoutBox),Oa(this.target,this.targetDelta)):Ee(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),rn(this.relativeTargetOrigin,this.target,h.target),Ee(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||xo(this.parent.latestValues)||La(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const i=this.getLead(),a=!!this.resumingFrom||this!==i;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===le.timestamp&&(l=!1),l)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;Ee(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,h=this.treeScale.y;Yf(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=te());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Tl(this.prevProjectionDelta.x,this.projectionDelta.x),Tl(this.prevProjectionDelta.y,this.projectionDelta.y)),nn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==h||!Ll(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ll(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Nt(),this.projectionDelta=Nt(),this.projectionDeltaWithTransform=Nt()}setAnimationOrigin(i,a=!1){const l=this.snapshot,d=l?l.latestValues:{},u={...this.latestValues},c=Nt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=te(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=m!==g,k=this.getStack(),y=!k||k.members.length<=1,S=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(Em));this.animationProgress=0;let C;this.mixTargetDelta=T=>{const w=T/1e3;zl(c.x,i.x,w),zl(c.y,i.y,w),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),km(this.relativeTarget,this.relativeTargetOrigin,h,w),C&&dm(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=te()),Ee(C,this.relativeTarget)),v&&(this.animationValues=u,om(u,d,this.latestValues,w,S,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ke(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Wn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=$t(0)),this.currentAnimation=Qp(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:u}=i;if(!(!a||!l||!d)){if(this!==i&&this.layout&&d&&Wl(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||te();const c=pe(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+c;const h=pe(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}Ee(a,l),Lt(a,u),nn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new um),this.sharedNodes.get(i).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&Io("z",i,d,this.animationValues);for(let u=0;u<Vo.length;u++)Io(`rotate${Vo[u]}`,i,d,this.animationValues),Io(`skew${Vo[u]}`,i,d,this.animationValues);i.render();for(const u in d)i.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=_n(a?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=_n(a?.pointerEvents)||""),this.hasProjected&&!ct(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let c=hm(this.projectionDeltaWithTransform,this.treeScale,u);l&&(c=l(u,c)),i.transform=c;const{x:h,y:m}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?i.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:i.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in Jt){if(u[g]===void 0)continue;const{correct:v,applyTo:k,isCSSVariable:y}=Jt[g],S=c==="none"?u[g]:v(u[g],d);if(k){const C=k.length;for(let T=0;T<C;T++)i[k[T]]=S}else y?this.options.visualElement.renderState.vars[g]=S:i[g]=S}this.options.layoutId&&(i.pointerEvents=d===this?_n(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Ol),this.root.sharedNodes.clear()}}}function mm(e){e.updateLayout()}function gm(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(c);c.min=n[u].min,c.max=c.min+h}):Wl(o,t.layoutBox,n)&&ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(n[u]);c.max=c.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const i=Nt();nn(i,n,t.layoutBox);const a=Nt();s?nn(a,e.applyTransform(r,!0),t.measuredBox):nn(a,n,t.layoutBox);const l=!Dl(i);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:c,layout:h}=u;if(c&&h){const m=te();rn(m,t.layoutBox,c.layoutBox);const g=te();rn(g,n,h.layoutBox),Vl(m,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function ym(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 vm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bm(e){e.clearSnapshot()}function Ol(e){e.clearMeasurements()}function Fl(e){e.isLayoutDirty=!1}function wm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function jl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xm(e){e.resolveTargetDelta()}function Sm(e){e.calcProjection()}function Cm(e){e.resetSkewAndRotation()}function Tm(e){e.removeLeadSnapshot()}function zl(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rl(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function km(e,t,n,r){Rl(e.x,t.x,n.x,r),Rl(e.y,t.y,n.y,r)}function Em(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Pm={duration:.45,ease:[.4,0,.1,1]},_l=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Hl=_l("applewebkit/")&&!_l("chrome/")?Math.round:Ce;function Ul(e){e.min=Hl(e.min),e.max=Hl(e.max)}function Am(e){Ul(e.x),Ul(e.y)}function Wl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Lp(Il(t),Il(n),.2)}function Dm(e){return e!==e.root&&e.scroll?.wasRoot}const $m=Bl({attachResizeListener:(e,t)=>Qt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lo={current:void 0},Kl=Bl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lo.current){const e=new $m({});e.mount(window),e.setOptions({layoutScroll:!0}),Lo.current=e}return Lo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Mm={pan:{Feature:Xp},drag:{Feature:Gp,ProjectionNode:Kl,MeasureLayout:yl}};function Yl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&Z.postRender(()=>s(t,en(t)))}class Vm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Qh(t,(n,r)=>(Yl(this.node,r,"Start"),o=>Yl(this.node,o,"End"))))}unmount(){}}class Im extends Xe{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_t(Qt(this.node.current,"focus",()=>this.onFocus()),Qt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Gl(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&Z.postRender(()=>s(t,en(t)))}class Lm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=rf(t,(n,r)=>(Gl(this.node,r,"Start"),(o,{success:s})=>Gl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const No=new WeakMap,Bo=new WeakMap,Nm=e=>{const t=No.get(e.target);t&&t(e)},Bm=e=>{e.forEach(Nm)};function Om({root:e,...t}){const n=e||document;Bo.has(n)||Bo.set(n,{});const r=Bo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Bm,{root:e,...t})),r[o]}function Fm(e,t,n){const r=Om(t);return No.set(e,n),r.observe(e),()=>{No.delete(e),r.unobserve(e)}}const jm={some:0,all:1};class zm extends Xe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:jm[o]},a=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:c}=this.node.getProps(),h=d?u:c;h&&h(l)};return Fm(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Rm(t,n))&&this.startObserver()}unmount(){}}function Rm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const _m={...Ap,...{inView:{Feature:zm},tap:{Feature:Lm},focus:{Feature:Im},hover:{Feature:Vm}},...Mm,...{layout:{ProjectionNode:Kl,MeasureLayout:yl}}},_e=Uf(_m,rp),Hm={sm:b`
|
|
234
|
+
`),()=>{w.contains(y)&&w.removeChild(y)}},[t]),g.jsx(ip,{isPresent:t,childRef:i,sizeRef:s,children:lt.cloneElement(e,{ref:l})})}const ap=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=_r(lp),d=p.useId();let u=!0,f=p.useMemo(()=>(u=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:h=>{c.set(h,!0);for(const m of c.values())if(!m)return;r&&r()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,r]);return i&&u&&(f={...f}),p.useMemo(()=>{c.forEach((h,m)=>c.set(m,!1))},[n]),lt.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),s==="popLayout"&&(e=g.jsx(sp,{isPresent:n,anchorX:a,root:l,children:e})),g.jsx(Nn.Provider,{value:f,children:e})};function lp(){return new Map}function ja(e=!0){const t=p.useContext(Nn);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 Wn=e=>e.key||"";function Ga(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const sn=({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]=ja(s),u=p.useMemo(()=>Ga(e),[e]),f=s&&!c?[]:u.map(Wn),h=p.useRef(!0),m=p.useRef(u),y=_r(()=>new Map),[w,v]=p.useState(u),[b,x]=p.useState(u);Ds(()=>{h.current=!1,m.current=u;for(let k=0;k<b.length;k++){const E=Wn(b[k]);f.includes(E)?y.delete(E):y.get(E)!==!0&&y.set(E,!1)}},[b,f.length,f.join("-")]);const T=[];if(u!==w){let k=[...u];for(let E=0;E<b.length;E++){const M=b[E],L=Wn(M);f.includes(L)||(k.splice(E,0,M),T.push(M))}return i==="wait"&&T.length&&(k=T),x(Ga(k)),v(u),null}process.env.NODE_ENV!=="production"&&i==="wait"&&b.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:S}=p.useContext(Fr);return g.jsx(g.Fragment,{children:b.map(k=>{const E=Wn(k),M=s&&!c?!1:u===b||f.includes(E),L=()=>{if(y.has(E))y.set(E,!0);else return;let B=!0;y.forEach(G=>{G||(B=!1)}),B&&(S?.(),x(m.current),s&&d?.(),r&&r())};return g.jsx(ap,{isPresent:M,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:M?void 0:L,anchorX:a,children:k},E)})})},Ua=p.createContext({strict:!1}),Wa={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"]},Ot={};for(const e in Wa)Ot[e]={isEnabled:t=>Wa[e].some(n=>!!t[n])};function cp(e){for(const t in e)Ot[t]={...Ot[t],...e[t]}}const up=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 Kn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||up.has(e)}let Ka=e=>!Kn(e);function dp(e){typeof e=="function"&&(Ka=t=>t.startsWith("on")?!Kn(t):e(t))}try{dp(require("@emotion/is-prop-valid").default)}catch{}function fp(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Ka(o)||n===!0&&Kn(o)||!t&&!Kn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const qn=p.createContext({});function Yn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function an(e){return typeof e=="string"||Array.isArray(e)}const Eo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mo=["initial",...Eo];function Xn(e){return Yn(e.animate)||Mo.some(t=>an(e[t]))}function qa(e){return!!(Xn(e)||e.variants)}function hp(e,t){if(Xn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||an(n)?n:void 0,animate:an(r)?r:void 0}}return e.inherit!==!1?t:{}}function pp(e){const{initial:t,animate:n}=hp(e,p.useContext(qn));return p.useMemo(()=>({initial:t,animate:n}),[Ya(t),Ya(n)])}function Ya(e){return Array.isArray(e)?e.join(" "):e}const ln={};function mp(e){for(const t in e)ln[t]=e[t],qr(t)&&(ln[t].isCSSVariable=!0)}function Xa(e,{layout:t,layoutId:n}){return _t.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ln[e]||e==="opacity")}const gp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yp=Ft.length;function vp(e,t,n){let r="",o=!0;for(let i=0;i<yp;i++){const s=Ft[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=Va(a,Co[s]);if(!l){o=!1;const d=gp[s]||s;r+=`${d}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Do(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(_t.has(l)){s=!0;continue}else if(qr(l)){o[l]=c;continue}else{const d=Va(c,Co[l]);l.startsWith("origin")?(a=!0,i[l]=d):r[l]=d}}if(t.transform||(s||n?r.transform=vp(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}`}}const Ao=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Za(e,t,n){for(const r in t)!he(t[r])&&!Xa(r,n)&&(e[r]=t[r])}function wp({transformTemplate:e},t){return p.useMemo(()=>{const n=Ao();return Do(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bp(e,t){const n=e.style||{},r={};return Za(r,n,e),Object.assign(r,wp(e,t)),r}function xp(e,t){const n={},r=bp(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 Sp={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cp={offset:"strokeDashoffset",array:"strokeDasharray"};function Tp(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Sp:Cp;e[i.offset]=A.transform(-r);const s=A.transform(t),a=A.transform(n);e[i.array]=`${s} ${a}`}function Ja(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,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:f}=e;u.transform&&(f.transform=u.transform,delete u.transform),(f.transform||u.transformOrigin)&&(f.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete u.transformBox),t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),o!==void 0&&Tp(u,o,i,s,!1)}const Qa=()=>({...Ao(),attrs:{}}),el=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $p(e,t,n,r){const o=p.useMemo(()=>{const i=Qa();return Ja(i,t,el(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Za(i,e.style,e),o.style={...i,...o.style}}return o}const Pp=["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 Vo(e){return typeof e!="string"||e.includes("-")?!1:!!(Pp.indexOf(e)>-1||/[A-Z]/u.test(e))}function kp(e,t,n,{latestValues:r},o,i=!1){const a=(Vo(e)?$p:xp)(t,r,o,e),l=fp(t,typeof e=="string",i),c=e!==p.Fragment?{...l,...a,ref:n}:{},{children:d}=t,u=p.useMemo(()=>he(d)?d.get():d,[d]);return p.createElement(e,{...c,children:u})}function tl(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Io(e,t,n,r){if(typeof t=="function"){const[o,i]=tl(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]=tl(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Zn(e){return he(e)?e.get():e}function Ep({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Mp(n,r,o,e),renderState:t()}}function Mp(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Zn(i[f]);let{initial:s,animate:a}=e;const l=Xn(e),c=qa(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"&&!Yn(u)){const f=Array.isArray(u)?u:[u];for(let h=0;h<f.length;h++){const m=Io(e,f[h]);if(m){const{transitionEnd:y,transition:w,...v}=m;for(const b in v){let x=v[b];if(Array.isArray(x)){const T=d?x.length-1:0;x=x[T]}x!==null&&(o[b]=x)}for(const b in y)o[b]=y[b]}}}return o}const nl=e=>(t,n)=>{const r=p.useContext(qn),o=p.useContext(Nn),i=()=>Ep(e,t,r,o);return n?i():_r(i)};function Ro(e,t,n){const{style:r}=e,o={};for(const i in r)(he(r[i])||t.style&&he(t.style[i])||Xa(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const Dp=nl({scrapeMotionValuesFromProps:Ro,createRenderState:Ao});function rl(e,t,n){const r=Ro(e,t,n);for(const o in e)if(he(e[o])||he(t[o])){const i=Ft.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Ap=nl({scrapeMotionValuesFromProps:rl,createRenderState:Qa}),Vp=Symbol.for("motionComponentSymbol");function Bt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ip(e,t,n){return p.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bt(n)&&(n.current=r))},[t])}const Lo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ol="data-"+Lo("framerAppearId"),il=p.createContext({});function Rp(e,t,n,r,o){const{visualElement:i}=p.useContext(qn),s=p.useContext(Ua),a=p.useContext(Nn),l=p.useContext(ko).reducedMotion,c=p.useRef(null);r=r||s.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const d=c.current,u=p.useContext(il);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&Lp(c.current,n,o,u);const f=p.useRef(!1);p.useInsertionEffect(()=>{d&&f.current&&d.update(n,a)});const h=n[ol],m=p.useRef(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return Ds(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),p.useEffect(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),m.current=!1),d.enteringChildren=void 0)}),d}function Lp(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:sl(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Bt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c})}function sl(e){if(e)return e.options.allowProjection!==!1?e.projection:sl(e.parent)}function Fo(e,{forwardMotionProps:t=!1}={},n,r){n&&cp(n);const o=Vo(e)?Ap:Dp;function i(a,l){let c;const d={...p.useContext(ko),...a,layoutId:Fp(a)},{isStatic:u}=d,f=pp(a),h=o(a,u);if(!u&&Nr){_p(d,n);const m=Np(d);c=m.MeasureLayout,f.visualElement=Rp(e,h,d,r,m.ProjectionNode)}return g.jsxs(qn.Provider,{value:f,children:[c&&f.visualElement?g.jsx(c,{visualElement:f.visualElement,...d}):null,kp(e,a,Ip(h,f.visualElement,l),h,u,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=p.forwardRef(i);return s[Vp]=e,s}function Fp({layoutId:e}){const t=p.useContext(Fr).id;return t&&e!==void 0?t+"-"+e:e}function _p(e,t){const n=p.useContext(Ua).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?Vt(!1,r,"lazy-strict-mode"):Ue(!1,r,"lazy-strict-mode")}}function Np(e){const{drag:t,layout:n}=Ot;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Op(e,t){if(typeof Proxy>"u")return Fo;const n=new Map,r=(i,s)=>Fo(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Gr(!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,Fo(s,void 0,e,t)),n.get(s))})}function al({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Bp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zp(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 _o(e){return e===void 0||e===1}function No({scale:e,scaleX:t,scaleY:n}){return!_o(e)||!_o(t)||!_o(n)}function vt(e){return No(e)||ll(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ll(e){return cl(e.x)||cl(e.y)}function cl(e){return e&&e!=="0%"}function Jn(e,t,n){const r=e-n,o=t*r;return n+o}function ul(e,t,n,r,o){return o!==void 0&&(e=Jn(e,o,r)),Jn(e,n,r)+t}function Oo(e,t=0,n=1,r,o){e.min=ul(e.min,t,n,r,o),e.max=ul(e.max,t,n,r,o)}function dl(e,{x:t,y:n}){Oo(e.x,t.translate,t.scale,t.originPoint),Oo(e.y,n.translate,n.scale,n.originPoint)}const fl=.999999999999,hl=1.0000000000001;function Hp(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&&Ht(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,dl(e,s)),r&&vt(i.latestValues)&&Ht(e,i.latestValues))}t.x<hl&&t.x>fl&&(t.x=1),t.y<hl&&t.y>fl&&(t.y=1)}function zt(e,t){e.min=e.min+t,e.max=e.max+t}function pl(e,t,n,r,o=.5){const i=ee(e.min,e.max,o);Oo(e,t,n,i,r)}function Ht(e,t){pl(e.x,t.x,t.scaleX,t.scale,t.originX),pl(e.y,t.y,t.scaleY,t.scale,t.originY)}function ml(e,t){return al(zp(e.getBoundingClientRect(),t))}function jp(e,t,n){const r=ml(e,n),{scroll:o}=t;return o&&(zt(r.x,o.offset.x),zt(r.y,o.offset.y)),r}const gl=()=>({translate:0,scale:1,origin:0,originPoint:0}),jt=()=>({x:gl(),y:gl()}),yl=()=>({min:0,max:0}),re=()=>({x:yl(),y:yl()}),Bo={current:null},vl={current:!1};function Gp(){if(vl.current=!0,!!Nr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Bo.current=e.matches;e.addEventListener("change",t),t()}else Bo.current=!1}const Up=new WeakMap;function Wp(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,Nt(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,Nt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Kp{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=wo,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 f=be.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Q.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=Xn(n),this.isVariantNode=qa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in u){const h=u[f];l[f]!==void 0&&he(h)&&h.set(l[f])}}mount(t){this.current=t,Up.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)),vl.current||Gp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Bo.current,process.env.NODE_ENV!=="production"&&Gr(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(),Je(this.notifyUpdate),Je(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=_t.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;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 Ot){const n=Ot[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):re()}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<wl.length;r++){const o=wl[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=Wp(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=Nt(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"&&(As(r)||Is(r))?r=parseFloat(r):!np(r)&&et.test(n)&&(r=Aa(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=Io(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 jr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){To.render(this.render)}}class bl extends Kp{constructor(){super(...arguments),this.KeyframeResolver=Gh}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;he(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function xl(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 qp(e){return window.getComputedStyle(e)}class Yp extends bl{constructor(){super(...arguments),this.type="html",this.renderInstance=xl}readValueFromInstance(t,n){if(_t.has(n))return this.projection?.isProjecting?po(n):ch(t,n);{const r=qp(t),o=(qr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ml(t,n)}build(t,n,r){Do(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ro(t,n,r)}}const Sl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Xp(e,t,n,r){xl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Sl.has(o)?o:Lo(o),t.attrs[o])}class Zp extends bl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=re}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_t.has(n)){const r=Da(n);return r&&r.default||0}return n=Sl.has(n)?n:Lo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return rl(t,n,r)}build(t,n,r){Ja(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){Xp(t,n,r,o)}mount(t){this.isSVGTag=el(t.tagName),super.mount(t)}}const Jp=(e,t)=>Vo(e)?new Zp(t):new Yp(t,{allowProjection:e!==p.Fragment});function Gt(e,t,n){const r=e.getProps();return Io(r,t,n!==void 0?n:r.custom,e)}const zo=e=>Array.isArray(e);function Qp(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nt(n))}function em(e){return zo(e)?e[e.length-1]||0:e}function tm(e,t){const n=Gt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=em(i[s]);Qp(e,s,a)}}function nm(e){return!!(he(e)&&e.add)}function Ho(e,t){const n=e.getValue("willChange");if(nm(n))return n.add(t);if(!n&&We.WillChange){const r=new We.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Cl(e){return e.props[ol]}const rm=e=>e!==null;function om(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(rm),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const im={type:"spring",stiffness:500,damping:25,restSpeed:10},sm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),am={type:"keyframes",duration:.8},lm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cm=(e,{keyframes:t})=>t.length>2?am:_t.has(e)?e.startsWith("scale")?sm(t[1]):im:lm;function um({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 jo=(e,t,n,r={},o,i)=>s=>{const a=xo(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Ie(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};um(a)||Object.assign(d,cm(e,d)),d.duration&&(d.duration=Ie(d.duration)),d.repeatDelay&&(d.repeatDelay=Ie(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(bo(d),d.delay===0&&(u=!0)),(We.instantAnimations||We.skipAnimations)&&(u=!0,bo(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!i&&t.get()!==void 0){const f=om(d.keyframes,a);if(f!==void 0){Q.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new uo(d):new Vh(d)};function dm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Tl(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),f=a[d];if(f===void 0||c&&dm(c,d))continue;const h={delay:n,...xo(i||{},d)},m=u.get();if(m!==void 0&&!u.isAnimating&&!Array.isArray(f)&&f===m&&!h.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Cl(e);if(v){const b=window.MotionHandoffAnimation(v,d,Q);b!==null&&(h.startTime=b,y=!0)}}Ho(e,d),u.start(jo(d,u,f,e.shouldReduceMotion&&$a.has(d)?{type:!1}:h,e,y));const w=u.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{Q.update(()=>{s&&tm(e,s)})}),l}function $l(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}function Go(e,t,n={}){const r=Gt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Tl(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=o;return fm(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 fm(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(Go(l,t,{...s,delay:n+(typeof r=="function"?0:r)+$l(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function hm(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Go(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Go(e,t,n);else{const o=typeof t=="function"?Gt(e,t,n.custom):t;r=Promise.all(Tl(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Pl(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 pm=Mo.length;function kl(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?kl(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=Mo[n],o=e.props[r];(an(o)||o===!1)&&(t[r]=o)}return t}const mm=[...Eo].reverse(),gm=Eo.length;function ym(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hm(e,n,r)))}function vm(e){let t=ym(e),n=El(),r=!0;const o=l=>(c,d)=>{const u=Gt(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(u){const{transition:f,transitionEnd:h,...m}=u;c={...c,...m,...h}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,d=kl(e.parent)||{},u=[],f=new Set;let h={},m=1/0;for(let w=0;w<gm;w++){const v=mm[w],b=n[v],x=c[v]!==void 0?c[v]:d[v],T=an(x),S=v===l?b.isActive:null;S===!1&&(m=w);let k=x===d[v]&&x!==c[v]&&T;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),b.protectedKeys={...h},!b.isActive&&S===null||!x&&!b.prevProp||Yn(x)||typeof x=="boolean")continue;const E=wm(b.prevProp,x);let M=E||v===l&&b.isActive&&!k&&T||w>m&&T,L=!1;const B=Array.isArray(x)?x:[x];let G=B.reduce(o(v),{});S===!1&&(G={});const{prevResolvedValues:U={}}=b,ne={...U,...G},W=R=>{M=!0,f.has(R)&&(L=!0,f.delete(R)),b.needsAnimating[R]=!0;const j=e.getValue(R);j&&(j.liveStyle=!1)};for(const R in ne){const j=G[R],K=U[R];if(h.hasOwnProperty(R))continue;let X=!1;zo(j)&&zo(K)?X=!Pl(j,K):X=j!==K,X?j!=null?W(R):f.add(R):j!==void 0&&f.has(R)?W(R):b.protectedKeys[R]=!0}b.prevProp=x,b.prevResolvedValues=G,b.isActive&&(h={...h,...G}),r&&e.blockInitialAnimation&&(M=!1);const me=k&&E;M&&(!me||L)&&u.push(...B.map(R=>{const j={type:v};if(typeof R=="string"&&r&&!me&&e.manuallyAnimateOnMount&&e.parent){const{parent:K}=e,X=Gt(K,R);if(K.enteringChildren&&X){const{delayChildren:de}=X.transition||{};j.delay=$l(K.enteringChildren,e,de)}}return{animation:R,options:j}}))}if(f.size){const w={};if(typeof c.initial!="boolean"){const v=Gt(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(w.transition=v.transition)}f.forEach(v=>{const b=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),w[v]=b??null}),u.push({animation:w})}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=El(),r=!0}}}function wm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Pl(t,e):!1}function wt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function El(){return{animate:wt(!0),whileInView:wt(),whileHover:wt(),whileTap:wt(),whileDrag:wt(),whileFocus:wt(),exit:wt()}}class tt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class bm extends tt{constructor(t){super(t),t.animationState||(t.animationState=vm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yn(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 xm=0;class Sm extends tt{constructor(){super(...arguments),this.id=xm++}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 Cm={animation:{Feature:bm},exit:{Feature:Sm}};function cn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function un(e){return{point:{x:e.pageX,y:e.pageY}}}const Tm=e=>t=>$o(t)&&e(t,un(t));function dn(e,t,n,r){return cn(e,t,Tm(n),r)}const Ml=1e-4,$m=1-Ml,Pm=1+Ml,Dl=.01,km=0-Dl,Em=0+Dl;function ye(e){return e.max-e.min}function Mm(e,t,n){return Math.abs(e-t)<=n}function Al(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$m&&e.scale<=Pm||isNaN(e.scale))&&(e.scale=1),(e.translate>=km&&e.translate<=Em||isNaN(e.translate))&&(e.translate=0)}function fn(e,t,n,r){Al(e.x,t.x,n.x,r?r.originX:void 0),Al(e.y,t.y,n.y,r?r.originY:void 0)}function Vl(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function Dm(e,t,n){Vl(e.x,t.x,n.x),Vl(e.y,t.y,n.y)}function Il(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function hn(e,t,n){Il(e.x,t.x,n.x),Il(e.y,t.y,n.y)}function Me(e){return[e("x"),e("y")]}const Rl=({current:e})=>e?e.ownerDocument.defaultView:null,Ll=(e,t)=>Math.abs(e-t);function Am(e,t){const n=Ll(e.x,t.x),r=Ll(e.y,t.y);return Math.sqrt(n**2+r**2)}class Fl{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Wo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Am(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:y}=f,{timestamp:w}=ue;this.history.push({...y,timestamp:w});const{onStart:v,onMove:b}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Uo(h,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Wo(f.type==="pointercancel"?this.lastMoveEventInfo:Uo(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),y&&y(f,v)},!$o(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=un(t),l=Uo(a,this.transformPagePoint),{point:c}=l,{timestamp:d}=ue;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=n;u&&u(t,Wo(l,this.history)),this.removeListeners=Zt(dn(this.contextWindow,"pointermove",this.handlePointerMove),dn(this.contextWindow,"pointerup",this.handlePointerUp),dn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Je(this.updatePoint)}}function Uo(e,t){return t?{point:t(e.point)}:e}function _l(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wo({point:e},t){return{point:e,delta:_l(e,Nl(t)),offset:_l(e,Vm(t)),velocity:Im(t,.1)}}function Vm(e){return e[0]}function Nl(e){return e[e.length-1]}function Im(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Nl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ie(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 Rm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function Ol(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 Lm(e,{top:t,left:n,bottom:r,right:o}){return{x:Ol(e.x,n,o),y:Ol(e.y,t,r)}}function Bl(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 Fm(e,t){return{x:Bl(e.x,t.x),y:Bl(e.y,t.y)}}function _m(e,t){let n=.5;const r=ye(e),o=ye(t);return o>r?n=Jt(t.min,t.max-r,e.min):r>o&&(n=Jt(e.min,e.max-o,t.min)),Ge(0,1,n)}function Nm(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 Ko=.35;function Om(e=Ko){return e===!1?e=0:e===!0&&(e=Ko),{x:zl(e,"left","right"),y:zl(e,"top","bottom")}}function zl(e,t,n){return{min:Hl(e,t),max:Hl(e,n)}}function Hl(e,t){return typeof e=="number"?e:e[t]||0}const Bm=new WeakMap;class zm{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=re(),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=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(un(u).point)},s=(u,f)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qh(h),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=f,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 b=this.getAxisMotionValue(v).get()||0;if(Be.test(b)){const{projection:x}=this.visualElement;if(x&&x.layout){const T=x.layout.layoutBox[v];T&&(b=ye(T)*(parseFloat(b)/100))}}this.originPoint[v]=b}),y&&Q.postRender(()=>y(u,f)),Ho(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=Hm(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),w&&w(u,f)},l=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f,this.stop(u,f),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 Fl(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Rl(this.visualElement)})}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&&Q.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||!Qn(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Rm(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&&Bt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Lm(r.layoutBox,t):this.constraints=!1,this.elastic=Om(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Me(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Nm(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bt(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=jp(r,o.root,this.visualElement.getTransformPagePoint());let s=Fm(o.layout.layoutBox,i);if(n){const a=n(Bp(s));this.hasMutatedConstraints=!!a,a&&(s=al(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(!Qn(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:h,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 Ho(this.visualElement,t),r.start(jo(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(!Qn(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];i.set(t[n]-ee(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bt(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]=_m({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(!Qn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(ee(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;Bm.set(this.visualElement,this);const t=this.visualElement.current,n=dn(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Bt(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()),Q.read(r);const s=cn(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=Ko,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Qn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Hm(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jm extends tt{constructor(t){super(t),this.removeGroupControls=ke,this.removeListeners=ke,this.controls=new zm(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ke}unmount(){this.removeGroupControls(),this.removeListeners()}}const jl=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))};class Gm extends tt{constructor(){super(...arguments),this.removePointerDownListener=ke}onPointerDown(t){this.session=new Fl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:jl(t),onStart:jl(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Q.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=dn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const er={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const pn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=Gl(e,t.target.x),r=Gl(e,t.target.y);return`${n}% ${r}%`}},Um={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=et.parse(e);if(o.length>5)return r;const i=et.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=ee(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}};let qo=!1;class Wm extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;mp(Km),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),qo&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),er.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,qo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Q.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),To.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;qo=!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 Ul(e){const[t,n]=ja(),r=p.useContext(Fr);return g.jsx(Wm,{...e,layoutGroup:r,switchLayoutGroup:p.useContext(il),isPresent:t,safeToRemove:n})}const Km={borderRadius:{...pn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pn,borderTopRightRadius:pn,borderBottomLeftRadius:pn,borderBottomRightRadius:pn,boxShadow:Um};function qm(e,t,n){const r=he(e)?e:Nt(e);return r.start(jo("",r,t,n)),r.animation}const Ym=(e,t)=>e.depth-t.depth;class Xm{constructor(){this.children=[],this.isDirty=!1}add(t){Or(this.children,t),this.isDirty=!0}remove(t){Br(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ym),this.isDirty=!1,this.children.forEach(t)}}function Zm(e,t){const n=be.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Je(r),e(i-t))};return Q.setup(r,!0),()=>Je(r)}const Wl=["TopLeft","TopRight","BottomLeft","BottomRight"],Jm=Wl.length,Kl=e=>typeof e=="string"?parseFloat(e):e,ql=e=>typeof e=="number"||A.test(e);function Qm(e,t,n,r,o,i){o?(e.opacity=ee(0,n.opacity??1,eg(r)),e.opacityExit=ee(t.opacity??1,0,tg(r))):i&&(e.opacity=ee(t.opacity??1,n.opacity??1,r));for(let s=0;s<Jm;s++){const a=`border${Wl[s]}Radius`;let l=Yl(t,a),c=Yl(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ql(l)===ql(c)?(e[a]=Math.max(ee(Kl(l),Kl(c),r),0),(Be.test(c)||Be.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ee(t.rotate||0,n.rotate||0,r))}function Yl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eg=Xl(0,.5,Hs),tg=Xl(.5,.95,ke);function Xl(e,t,n){return r=>r<e?0:r>t?1:n(Jt(e,t,r))}function Zl(e,t){e.min=t.min,e.max=t.max}function De(e,t){Zl(e.x,t.x),Zl(e.y,t.y)}function Jl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ql(e,t,n,r,o){return e-=t,e=Jn(e,1/n,r),o!==void 0&&(e=Jn(e,1/o,r)),e}function ng(e,t=0,n=1,r=.5,o,i=e,s=e){if(Be.test(t)&&(t=parseFloat(t),t=ee(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ee(i.min,i.max,r);e===i&&(a-=t),e.min=Ql(e.min,t,n,a,o),e.max=Ql(e.max,t,n,a,o)}function ec(e,t,[n,r,o],i,s){ng(e,t[n],t[r],t[o],t.scale,i,s)}const rg=["x","scaleX","originX"],og=["y","scaleY","originY"];function tc(e,t,n,r){ec(e.x,t,rg,n?n.x:void 0,r?r.x:void 0),ec(e.y,t,og,n?n.y:void 0,r?r.y:void 0)}function nc(e){return e.translate===0&&e.scale===1}function rc(e){return nc(e.x)&&nc(e.y)}function oc(e,t){return e.min===t.min&&e.max===t.max}function ig(e,t){return oc(e.x,t.x)&&oc(e.y,t.y)}function ic(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sc(e,t){return ic(e.x,t.x)&&ic(e.y,t.y)}function ac(e){return ye(e.x)/ye(e.y)}function lc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sg{constructor(){this.members=[]}add(t){Or(this.members,t),t.scheduleRender()}remove(t){if(Br(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)}}function ag(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:f,skewX:h,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}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 Yo=["","X","Y","Z"],lg=1e3;let cg=0;function Xo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Cl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cc(r)}function uc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=cg++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fg),this.nodes.forEach(gg),this.nodes.forEach(yg),this.nodes.forEach(hg)},this.resolvedRelativeTargetAt=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 Xm)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new jr),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=za(s)&&!ep(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 f=()=>this.root.updateBlockedByResize=!1;Q.read(()=>{u=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==u&&(u=h,this.root.updateBlockedByResize=!0,d&&d(),d=Zm(f,250),er.hasAnimatedSinceResize&&(er.hasAnimatedSinceResize=!1,this.nodes.forEach(hc)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Sg,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=c.getProps(),v=!this.targetLayout||!sc(this.targetLayout,h),b=!u&&f;if(this.options.layoutRoot||this.resumeFrom||b||u&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...xo(m,"layout"),onPlay:y,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(d,b)}else u||hc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),Je(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(vg),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&&cc(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(dc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mg),this.nodes.forEach(ug),this.nodes.forEach(dg)):this.nodes.forEach(fc),this.clearAllSnapshots();const a=be.now();ue.delta=Ge(0,1e3/60,a-ue.timestamp),ue.timestamp=a,ue.isProcessing=!0,Kr.update.process(ue),Kr.preRender.process(ue),Kr.render.process(ue),ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,To.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pg),this.sharedNodes.forEach(wg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(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.layoutCorrected=re(),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&&!rc(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||vt(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)),Cg(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return re();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Tg))){const{scroll:c}=this.root;c&&(zt(a.x,c.offset.x),zt(a.y,c.offset.y))}return a}removeElementScroll(s){const a=re();if(De(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&&De(a,s),zt(a.x,d.offset.x),zt(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=re();De(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&&Ht(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),vt(d.latestValues)&&Ht(l,d.latestValues)}return vt(this.latestValues)&&Ht(l,this.latestValues),l}removeTransform(s){const a=re();De(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!vt(c.latestValues))continue;No(c.latestValues)&&c.updateSnapshot();const d=re(),u=c.measurePageBox();De(d,u),tc(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return vt(this.latestValues)&&tc(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))){if(this.resolvedRelativeTargetAt=ue.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),hn(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),De(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Dm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):De(this.target,this.layout.layoutBox),dl(this.target,this.targetDelta)):De(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),hn(this.relativeTargetOrigin,this.target,f.target),De(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||No(this.parent.latestValues)||ll(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const 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;De(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,f=this.treeScale.y;Hp(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=re());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jl(this.prevProjectionDelta.x,this.projectionDelta.x),Jl(this.prevProjectionDelta.y,this.projectionDelta.y)),fn(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==f||!lc(this.projectionDelta.x,this.prevProjectionDelta.x)||!lc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=jt(),this.projectionDelta=jt(),this.projectionDeltaWithTransform=jt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=re(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=h!==m,w=this.getStack(),v=!w||w.members.length<=1,b=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(xg));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const S=T/1e3;pc(u.x,s.x,S),pc(u.y,s.y,S),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bg(this.relativeTarget,this.relativeTargetOrigin,f,S),x&&ig(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=re()),De(x,this.relativeTarget)),y&&(this.animationValues=d,Qm(d,c,this.latestValues,S,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Je(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{er.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Nt(0)),this.currentAnimation=qm(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(lg),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&&wc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||re();const u=ye(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const f=ye(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}De(a,l),Ht(a,d),fn(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new sg),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&&Xo("z",s,c,this.animationValues);for(let d=0;d<Yo.length;d++)Xo(`rotate${Yo[d]}`,s,c,this.animationValues),Xo(`skew${Yo[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=Zn(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=Zn(a?.pointerEvents)||""),this.hasProjected&&!vt(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=ag(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),s.transform=u;const{x:f,y:h}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${h.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 ln){if(d[m]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:v}=ln[m],b=u==="none"?d[m]:y(d[m],c);if(w){const x=w.length;for(let T=0;T<x;T++)s[w[T]]=b}else v?this.options.visualElement.renderState.vars[m]=b:s[m]=b}this.options.layoutId&&(s.pointerEvents=c===this?Zn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(dc),this.root.sharedNodes.clear()}}}function ug(e){e.updateLayout()}function dg(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],f=ye(u);u.min=n[d].min,u.max=u.min+f}):wc(o,t.layoutBox,n)&&Me(d=>{const u=i?t.measuredBox[d]:t.layoutBox[d],f=ye(n[d]);u.max=u.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const s=jt();fn(s,n,t.layoutBox);const a=jt();i?fn(a,e.applyTransform(r,!0),t.measuredBox):fn(a,n,t.layoutBox);const l=!rc(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:f}=d;if(u&&f){const h=re();hn(h,t.layoutBox,u.layoutBox);const m=re();hn(m,n,f.layoutBox),sc(h,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,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 fg(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 hg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pg(e){e.clearSnapshot()}function dc(e){e.clearMeasurements()}function fc(e){e.isLayoutDirty=!1}function mg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gg(e){e.resolveTargetDelta()}function yg(e){e.calcProjection()}function vg(e){e.resetSkewAndRotation()}function wg(e){e.removeLeadSnapshot()}function pc(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mc(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function bg(e,t,n,r){mc(e.x,t.x,n.x,r),mc(e.y,t.y,n.y,r)}function xg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sg={duration:.45,ease:[.4,0,.1,1]},gc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yc=gc("applewebkit/")&&!gc("chrome/")?Math.round:ke;function vc(e){e.min=yc(e.min),e.max=yc(e.max)}function Cg(e){vc(e.x),vc(e.y)}function wc(e,t,n){return e==="position"||e==="preserve-aspect"&&!Mm(ac(t),ac(n),.2)}function Tg(e){return e!==e.root&&e.scroll?.wasRoot}const $g=uc({attachResizeListener:(e,t)=>cn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zo={current:void 0},bc=uc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zo.current){const e=new $g({});e.mount(window),e.setOptions({layoutScroll:!0}),Zo.current=e}return Zo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Pg={pan:{Feature:Gm},drag:{Feature:jm,ProjectionNode:bc,MeasureLayout:Ul}};function xc(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&&Q.postRender(()=>i(t,un(t)))}class kg extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=Yh(t,(n,r)=>(xc(this.node,r,"Start"),o=>xc(this.node,o,"End"))))}unmount(){}}class Eg extends tt{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=Zt(cn(this.node.current,"focus",()=>this.onFocus()),cn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Sc(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&&Q.postRender(()=>i(t,un(t)))}class Mg extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=Qh(t,(n,r)=>(Sc(this.node,r,"Start"),(o,{success:i})=>Sc(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Jo=new WeakMap,Qo=new WeakMap,Dg=e=>{const t=Jo.get(e.target);t&&t(e)},Ag=e=>{e.forEach(Dg)};function Vg({root:e,...t}){const n=e||document;Qo.has(n)||Qo.set(n,{});const r=Qo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Ag,{root:e,...t})),r[o]}function Ig(e,t,n){const r=Vg(t);return Jo.set(e,n),r.observe(e),()=>{Jo.delete(e),r.unobserve(e)}}const Rg={some:0,all:1};class Lg extends tt{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:Rg[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(),f=c?d:u;f&&f(l)};return Ig(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(Fg(t,n))&&this.startObserver()}unmount(){}}function Fg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const _g={...Cm,...{inView:{Feature:Lg},tap:{Feature:Mg},focus:{Feature:Eg},hover:{Feature:kg}},...Pg,...{layout:{ProjectionNode:bc,MeasureLayout:Ul}}},Ke=Op(_g,Jp),Ng={sm:C`
|
|
235
235
|
width: 1.25rem;
|
|
236
236
|
height: 1.25rem;
|
|
237
|
-
`,md:
|
|
237
|
+
`,md:C`
|
|
238
238
|
width: 1.75rem;
|
|
239
239
|
height: 1.75rem;
|
|
240
|
-
`,lg:
|
|
240
|
+
`,lg:C`
|
|
241
241
|
width: 3rem;
|
|
242
242
|
height: 3rem;
|
|
243
|
-
`,xl:
|
|
243
|
+
`,xl:C`
|
|
244
244
|
width: 4rem;
|
|
245
245
|
height: 4rem;
|
|
246
|
-
`},
|
|
246
|
+
`},Cc={primary:C`
|
|
247
247
|
color: var(--color-main-blue-primary);
|
|
248
|
-
`,orange:
|
|
248
|
+
`,orange:C`
|
|
249
249
|
color: var(--color-main-orange-primary);
|
|
250
|
-
`,white:
|
|
250
|
+
`,white:C`
|
|
251
251
|
color: var(--color-main-white);
|
|
252
|
-
`,gray:
|
|
252
|
+
`,gray:C`
|
|
253
253
|
color: var(--color-main-grey);
|
|
254
|
-
`},
|
|
254
|
+
`},Og=$.div`
|
|
255
255
|
position: relative;
|
|
256
256
|
display: block;
|
|
257
|
-
${({$size:e="md"})=>
|
|
258
|
-
${({$color:e="primary"})=>
|
|
257
|
+
${({$size:e="md"})=>Ng[e]}
|
|
258
|
+
${({$color:e="primary"})=>Cc[e]}
|
|
259
259
|
user-select: none;
|
|
260
|
-
`,
|
|
260
|
+
`,Bg=$.div`
|
|
261
261
|
display: flex;
|
|
262
262
|
flex-direction: column;
|
|
263
263
|
align-items: center;
|
|
264
264
|
gap: 0.5rem;
|
|
265
265
|
padding: 2.5px 2.5px 2.5px 0px;
|
|
266
|
-
`,
|
|
266
|
+
`,zg=$.div`
|
|
267
267
|
display: flex;
|
|
268
268
|
align-items: center;
|
|
269
269
|
justify-content: center;
|
|
270
270
|
min-height: 12.5rem;
|
|
271
271
|
width: 100%;
|
|
272
|
-
`,
|
|
273
|
-
${
|
|
274
|
-
${({$color:e="primary"})=>
|
|
272
|
+
`,Hg=$(Ke.p)`
|
|
273
|
+
${D[16]}
|
|
274
|
+
${({$color:e="primary"})=>Cc[e]}
|
|
275
275
|
margin: 0;
|
|
276
|
-
`,
|
|
276
|
+
`,jg=({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
|
|
277
277
|
C42.999393,262.534088 27.711603,233.886490 21.140957,200.638245
|
|
278
278
|
C20.527918,197.536194 19.462318,196.344513 16.327942,196.535400
|
|
279
279
|
C12.711285,196.755646 9.070918,196.586609 4.251685,196.586609
|
|
@@ -290,7 +290,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
290
290
|
C231.681030,-17.750278 329.482361,42.974667 346.823608,138.519577
|
|
291
291
|
C363.551025,230.682480 301.903687,318.479523 209.509521,332.564972
|
|
292
292
|
C155.049683,340.867371 107.495514,325.072021 67.251411,286.749390
|
|
293
|
-
z`})}),t&&
|
|
293
|
+
z`})}),t&&g.jsx("title",{children:t})]}),tr=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:i="rotate"})=>{const s=g.jsxs(Bg,{children:[g.jsx(Og,{$size:e,$color:t,$variant:i,children:g.jsx(jg,{variant:i,title:o})}),r&&g.jsx(Hg,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?g.jsx(zg,{children:s}):s},Gg=$.div`
|
|
294
294
|
position: fixed;
|
|
295
295
|
inset: 0;
|
|
296
296
|
background-color: rgba(255, 255, 255, 0.8);
|
|
@@ -299,7 +299,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
299
299
|
align-items: center;
|
|
300
300
|
justify-content: center;
|
|
301
301
|
z-index: 50;
|
|
302
|
-
`,
|
|
302
|
+
`,Ug=$.div`
|
|
303
303
|
background-color: var(--color-main-white);
|
|
304
304
|
border-radius: var(--border-radius-card);
|
|
305
305
|
box-shadow: var(--shadow-black-card);
|
|
@@ -310,18 +310,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
310
310
|
gap: 1rem;
|
|
311
311
|
width: 90%;
|
|
312
312
|
max-width: 24rem;
|
|
313
|
-
`,
|
|
314
|
-
${
|
|
313
|
+
`,Wg=$.h2`
|
|
314
|
+
${Lr[30]}
|
|
315
315
|
color: var(--color-main-blue-primary);
|
|
316
316
|
margin: 0 auto;
|
|
317
317
|
text-align: center;
|
|
318
|
-
`,
|
|
318
|
+
`,Kg=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>g.jsx(Gg,{role:"status","aria-live":"polite",children:g.jsxs(Ug,{children:[g.jsx(tr,{size:"xl",color:t,centered:!1,title:e,variant:n}),g.jsx(Wg,{children:e})]})}),qg=$.div`
|
|
319
319
|
display: flex;
|
|
320
320
|
flex-direction: column;
|
|
321
321
|
align-items: center;
|
|
322
322
|
justify-content: center;
|
|
323
323
|
padding: 3rem 1rem;
|
|
324
|
-
`,
|
|
324
|
+
`,Tc=({message:e,color:t="primary",variant:n="rotate"})=>g.jsx(qg,{role:"status","aria-live":"polite",children:g.jsx(tr,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),Yg={primary:C`
|
|
325
325
|
background-color: var(--color-main-blue-primary);
|
|
326
326
|
color: var(--color-main-white);
|
|
327
327
|
|
|
@@ -336,7 +336,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
336
336
|
&:focus-visible {
|
|
337
337
|
outline-color: var(--color-main-blue-primary);
|
|
338
338
|
}
|
|
339
|
-
`,secondary:
|
|
339
|
+
`,secondary:C`
|
|
340
340
|
background-color: var(--color-main-orange-primary);
|
|
341
341
|
color: var(--color-main-white);
|
|
342
342
|
|
|
@@ -348,7 +348,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
348
348
|
&:focus-visible {
|
|
349
349
|
outline-color: var(--color-main-orange-primary);
|
|
350
350
|
}
|
|
351
|
-
`,cancel:
|
|
351
|
+
`,cancel:C`
|
|
352
352
|
background-color: var(--color-main-warning-state);
|
|
353
353
|
color: var(--color-main-white);
|
|
354
354
|
|
|
@@ -360,7 +360,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
360
360
|
&:focus-visible {
|
|
361
361
|
outline-color: var(--color-main-warning-state);
|
|
362
362
|
}
|
|
363
|
-
`,outline:
|
|
363
|
+
`,outline:C`
|
|
364
364
|
background-color: transparent;
|
|
365
365
|
color: var(--color-main-blue-primary);
|
|
366
366
|
border: 2px solid var(--color-main-blue-primary);
|
|
@@ -376,24 +376,24 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
376
376
|
&:focus-visible {
|
|
377
377
|
outline-color: var(--color-main-blue-primary);
|
|
378
378
|
}
|
|
379
|
-
`},
|
|
379
|
+
`},Xg=C`
|
|
380
380
|
background-color: var(--color-main-grey);
|
|
381
381
|
color: var(--color-dark-200);
|
|
382
382
|
cursor: not-allowed;
|
|
383
383
|
box-shadow: none;
|
|
384
|
-
`,
|
|
384
|
+
`,Zg={sm:C`
|
|
385
385
|
padding: 0.375rem 0.75rem;
|
|
386
386
|
min-height: 2.75rem;
|
|
387
|
-
${
|
|
388
|
-
`,md:
|
|
387
|
+
${D[12]}
|
|
388
|
+
`,md:C`
|
|
389
389
|
padding: 0.625rem 1.25rem;
|
|
390
390
|
min-height: 3.175rem;
|
|
391
|
-
${
|
|
392
|
-
`,lg:
|
|
391
|
+
${D[16]}
|
|
392
|
+
`,lg:C`
|
|
393
393
|
padding: 0.75rem 1.5rem;
|
|
394
394
|
min-height: 3.5rem;
|
|
395
|
-
${
|
|
396
|
-
`},
|
|
395
|
+
${D[20]}
|
|
396
|
+
`},Jg=$.button`
|
|
397
397
|
border: none;
|
|
398
398
|
border-radius: var(--border-radius-button);
|
|
399
399
|
transition:
|
|
@@ -408,43 +408,43 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
408
408
|
outline: 2px solid transparent;
|
|
409
409
|
outline-offset: 2px;
|
|
410
410
|
|
|
411
|
-
${({$variant:e})=>
|
|
412
|
-
${({$size:e})=>
|
|
411
|
+
${({$variant:e})=>Yg[e]}
|
|
412
|
+
${({$size:e})=>Zg[e]}
|
|
413
413
|
|
|
414
414
|
&:disabled {
|
|
415
|
-
${
|
|
415
|
+
${Xg}
|
|
416
416
|
}
|
|
417
|
-
`,
|
|
417
|
+
`,ei=({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(Jg,{$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})]}),Qg={sm:C`
|
|
418
418
|
padding: 0.25rem 0.625rem;
|
|
419
419
|
border-radius: var(--border-radius-button);
|
|
420
|
-
${
|
|
421
|
-
`,md:
|
|
420
|
+
${D[12]}
|
|
421
|
+
`,md:C`
|
|
422
422
|
padding: 0.375rem 0.75rem;
|
|
423
423
|
border-radius: var(--border-radius-button);
|
|
424
|
-
${
|
|
425
|
-
`,lg:
|
|
424
|
+
${D[14]}
|
|
425
|
+
`,lg:C`
|
|
426
426
|
padding: 0.5rem 1rem;
|
|
427
427
|
border-radius: var(--border-radius-button);
|
|
428
|
-
${
|
|
429
|
-
`},
|
|
428
|
+
${D[16]}
|
|
429
|
+
`},e0={primary:C`
|
|
430
430
|
background-color: var(--color-main-blue-primary);
|
|
431
431
|
color: var(--color-main-white);
|
|
432
|
-
`,secondary:
|
|
432
|
+
`,secondary:C`
|
|
433
433
|
background-color: var(--color-main-orange-primary);
|
|
434
434
|
color: var(--color-main-white);
|
|
435
|
-
`,success:
|
|
435
|
+
`,success:C`
|
|
436
436
|
background-color: var(--color-main-positive-state);
|
|
437
437
|
color: var(--color-main-white);
|
|
438
|
-
`,warning:
|
|
438
|
+
`,warning:C`
|
|
439
439
|
background-color: var(--color-main-yellow-primary);
|
|
440
440
|
color: var(--color-main-black);
|
|
441
|
-
`,danger:
|
|
441
|
+
`,danger:C`
|
|
442
442
|
background-color: var(--color-main-warning-state);
|
|
443
443
|
color: var(--color-main-white);
|
|
444
|
-
`,neutral:
|
|
444
|
+
`,neutral:C`
|
|
445
445
|
background-color: var(--color-light-200);
|
|
446
446
|
color: var(--color-main-grey);
|
|
447
|
-
`,outline:
|
|
447
|
+
`,outline:C``},t0=$.span`
|
|
448
448
|
display: inline-flex;
|
|
449
449
|
align-items: center;
|
|
450
450
|
gap: 0.375rem;
|
|
@@ -452,15 +452,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
452
452
|
white-space: nowrap;
|
|
453
453
|
user-select: none;
|
|
454
454
|
|
|
455
|
-
${({$size:e})=>
|
|
456
|
-
${({$variant:e})=>
|
|
455
|
+
${({$size:e})=>Qg[e]}
|
|
456
|
+
${({$variant:e})=>e0[e]}
|
|
457
457
|
|
|
458
|
-
${({$variant:e,$outlineColor:t})=>e==="outline"?
|
|
458
|
+
${({$variant:e,$outlineColor:t})=>e==="outline"?C`
|
|
459
459
|
background-color: transparent;
|
|
460
460
|
color: ${t||"var(--color-main-blue-primary)"};
|
|
461
461
|
border: 1px solid ${t||"var(--color-main-blue-primary)"};
|
|
462
462
|
`:""}
|
|
463
|
-
`,
|
|
463
|
+
`,n0=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:i,iconColor:s="currentColor",iconSize:a="sm",...l})=>g.jsxs(t0,{$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})]}),r0=$.div`
|
|
464
464
|
background-color: ${({$color:e})=>e};
|
|
465
465
|
${({$orientation:e,$length:t,$thickness:n})=>e==="horizontal"?`
|
|
466
466
|
height: ${n||"1px"};
|
|
@@ -469,10 +469,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
469
469
|
width: ${n||"1px"};
|
|
470
470
|
height: ${t||"100%"};
|
|
471
471
|
`}
|
|
472
|
-
`,
|
|
473
|
-
${({$size:e})=>
|
|
472
|
+
`,o0=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>g.jsx(r0,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),i0=$.span`
|
|
473
|
+
${({$size:e})=>D[e]}
|
|
474
474
|
color: ${({$color:e})=>e||"var(--color-main-grey)"};
|
|
475
|
-
`,Zl=({children:e,size:t=16,color:n,className:r,style:o})=>p.jsx(ug,{$size:t,$color:n,className:r,style:o,children:e});function hg(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 fg=e=>{switch(e){case"success":return gg;case"info":return vg;case"warning":return yg;case"error":return bg;default:return null}},pg=Array(12).fill(0),mg=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},pg.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),gg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),yg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),vg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),bg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),wg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),xg=()=>{const[e,t]=f.useState(document.hidden);return f.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Fo=1;class Sg{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Fo++,i=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...o,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const a=o.then(async d=>{if(i=["resolve",d],f.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(Tg(d)&&!d.ok){s=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(d instanceof Error){s=!1;const c=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(n.success!==void 0){s=!1;const c=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:h,...g})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){s=!1;const u=typeof n.error=="function"?await n.error(d):n.error,c=typeof n.description=="function"?await n.description(d):n.description,m=typeof u=="object"&&!f.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:c,...m})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((d,u)=>a.then(()=>i[0]==="reject"?u(i[1]):d(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||Fo++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ve=new Sg,Cg=(e,t)=>{const n=t?.id||Fo++;return ve.addToast({title:e,...t,id:n}),n},Tg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",kg=Cg,Eg=()=>ve.toasts,Pg=()=>ve.getActiveToasts(),Ag=Object.assign(kg,{success:ve.success,info:ve.info,warning:ve.warning,error:ve.error,custom:ve.custom,message:ve.message,promise:ve.promise,dismiss:ve.dismiss,loading:ve.loading},{getHistory:Eg,getToasts:Pg});hg("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Yn(e){return e.label!==void 0}const Dg=3,$g="24px",Mg="16px",ql=4e3,Vg=356,Ig=14,Lg=45,Ng=200;function Oe(...e){return e.filter(Boolean).join(" ")}function Bg(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Og=e=>{var t,n,r,o,s,i,a,l,d;const{invert:u,toast:c,unstyled:h,interacting:m,setHeights:g,visibleToasts:v,heights:k,index:y,toasts:S,expanded:C,removeToast:T,defaultRichColors:w,closeButton:P,style:A,cancelButtonStyle:D,actionButtonStyle:B,className:F="",descriptionClassName:q="",duration:H,position:ee,gap:U,expandByDefault:he,classNames:O,icons:V,closeButtonAriaLabel:_="Close toast"}=e,[W,Y]=f.useState(null),[ce,oe]=f.useState(null),[N,X]=f.useState(!1),[K,se]=f.useState(!1),[Me,z]=f.useState(!1),[be,Je]=f.useState(!1),[He,me]=f.useState(!1),[N1,li]=f.useState(0),[B1,Yc]=f.useState(0),ln=f.useRef(c.duration||H||ql),Gc=f.useRef(null),Ue=f.useRef(null),O1=y===0,F1=y+1<=v,we=c.type,Ot=c.dismissible!==!1,j1=c.className||"",z1=c.descriptionClassName||"",Jn=f.useMemo(()=>k.findIndex(I=>I.toastId===c.id)||0,[k,c.id]),R1=f.useMemo(()=>{var I;return(I=c.closeButton)!=null?I:P},[c.closeButton,P]),Xc=f.useMemo(()=>c.duration||H||ql,[c.duration,H]),ci=f.useRef(0),Ft=f.useRef(0),Zc=f.useRef(0),jt=f.useRef(null),[_1,H1]=ee.split("-"),qc=f.useMemo(()=>k.reduce((I,ae,fe)=>fe>=Jn?I:I+ae.height,0),[k,Jn]),Jc=xg(),U1=c.invert||u,di=we==="loading";Ft.current=f.useMemo(()=>Jn*U+qc,[Jn,qc]),f.useEffect(()=>{ln.current=Xc},[Xc]),f.useEffect(()=>{X(!0)},[]),f.useEffect(()=>{const I=Ue.current;if(I){const ae=I.getBoundingClientRect().height;return Yc(ae),g(fe=>[{toastId:c.id,height:ae,position:c.position},...fe]),()=>g(fe=>fe.filter(xe=>xe.toastId!==c.id))}},[g,c.id]),f.useLayoutEffect(()=>{if(!N)return;const I=Ue.current,ae=I.style.height;I.style.height="auto";const fe=I.getBoundingClientRect().height;I.style.height=ae,Yc(fe),g(xe=>xe.find(de=>de.toastId===c.id)?xe.map(de=>de.toastId===c.id?{...de,height:fe}:de):[{toastId:c.id,height:fe,position:c.position},...xe])},[N,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Qe=f.useCallback(()=>{se(!0),li(Ft.current),g(I=>I.filter(ae=>ae.toastId!==c.id)),setTimeout(()=>{T(c)},Ng)},[c,T,g,Ft]);f.useEffect(()=>{if(c.promise&&we==="loading"||c.duration===1/0||c.type==="loading")return;let I;return C||m||Jc?(()=>{if(Zc.current<ci.current){const xe=new Date().getTime()-ci.current;ln.current=ln.current-xe}Zc.current=new Date().getTime()})():(()=>{ln.current!==1/0&&(ci.current=new Date().getTime(),I=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Qe()},ln.current))})(),()=>clearTimeout(I)},[C,m,c,we,Jc,Qe]),f.useEffect(()=>{c.delete&&(Qe(),c.onDismiss==null||c.onDismiss.call(c,c))},[Qe,c.delete]);function W1(){var I;if(V?.loading){var ae;return f.createElement("div",{className:Oe(O?.loader,c==null||(ae=c.classNames)==null?void 0:ae.loader,"sonner-loader"),"data-visible":we==="loading"},V.loading)}return f.createElement(mg,{className:Oe(O?.loader,c==null||(I=c.classNames)==null?void 0:I.loader),visible:we==="loading"})}const K1=c.icon||V?.[we]||fg(we);var Qc,ed;return f.createElement("li",{tabIndex:0,ref:Ue,className:Oe(F,j1,O?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,O?.default,O?.[we],c==null||(n=c.classNames)==null?void 0:n[we]),"data-sonner-toast":"","data-rich-colors":(Qc=c.richColors)!=null?Qc:w,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":N,"data-promise":!!c.promise,"data-swiped":He,"data-removed":K,"data-visible":F1,"data-y-position":_1,"data-x-position":H1,"data-index":y,"data-front":O1,"data-swiping":Me,"data-dismissible":Ot,"data-type":we,"data-invert":U1,"data-swipe-out":be,"data-swipe-direction":ce,"data-expanded":!!(C||he&&N),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${K?N1:Ft.current}px`,"--initial-height":he?"auto":`${B1}px`,...A,...c.style},onDragEnd:()=>{z(!1),Y(null),jt.current=null},onPointerDown:I=>{I.button!==2&&(di||!Ot||(Gc.current=new Date,li(Ft.current),I.target.setPointerCapture(I.pointerId),I.target.tagName!=="BUTTON"&&(z(!0),jt.current={x:I.clientX,y:I.clientY})))},onPointerUp:()=>{var I,ae,fe;if(be||!Ot)return;jt.current=null;const xe=Number(((I=Ue.current)==null?void 0:I.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Qn=Number(((ae=Ue.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),de=new Date().getTime()-((fe=Gc.current)==null?void 0:fe.getTime()),Pe=W==="x"?xe:Qn,er=Math.abs(Pe)/de;if(Math.abs(Pe)>=Lg||er>.11){li(Ft.current),c.onDismiss==null||c.onDismiss.call(c,c),oe(W==="x"?xe>0?"right":"left":Qn>0?"down":"up"),Qe(),Je(!0);return}else{var Ve,Ie;(Ve=Ue.current)==null||Ve.style.setProperty("--swipe-amount-x","0px"),(Ie=Ue.current)==null||Ie.style.setProperty("--swipe-amount-y","0px")}me(!1),z(!1),Y(null)},onPointerMove:I=>{var ae,fe,xe;if(!jt.current||!Ot||((ae=window.getSelection())==null?void 0:ae.toString().length)>0)return;const de=I.clientY-jt.current.y,Pe=I.clientX-jt.current.x;var er;const Ve=(er=e.swipeDirections)!=null?er:Bg(ee);!W&&(Math.abs(Pe)>1||Math.abs(de)>1)&&Y(Math.abs(Pe)>Math.abs(de)?"x":"y");let Ie={x:0,y:0};const td=pt=>1/(1.5+Math.abs(pt)/20);if(W==="y"){if(Ve.includes("top")||Ve.includes("bottom"))if(Ve.includes("top")&&de<0||Ve.includes("bottom")&&de>0)Ie.y=de;else{const pt=de*td(de);Ie.y=Math.abs(pt)<Math.abs(de)?pt:de}}else if(W==="x"&&(Ve.includes("left")||Ve.includes("right")))if(Ve.includes("left")&&Pe<0||Ve.includes("right")&&Pe>0)Ie.x=Pe;else{const pt=Pe*td(Pe);Ie.x=Math.abs(pt)<Math.abs(Pe)?pt:Pe}(Math.abs(Ie.x)>0||Math.abs(Ie.y)>0)&&me(!0),(fe=Ue.current)==null||fe.style.setProperty("--swipe-amount-x",`${Ie.x}px`),(xe=Ue.current)==null||xe.style.setProperty("--swipe-amount-y",`${Ie.y}px`)}},R1&&!c.jsx&&we!=="loading"?f.createElement("button",{"aria-label":_,"data-disabled":di,"data-close-button":!0,onClick:di||!Ot?()=>{}:()=>{Qe(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Oe(O?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(ed=V?.close)!=null?ed:wg):null,(we||c.icon||c.promise)&&c.icon!==null&&(V?.[we]!==null||c.icon)?f.createElement("div",{"data-icon":"",className:Oe(O?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||W1():null,c.type!=="loading"?K1:null):null,f.createElement("div",{"data-content":"",className:Oe(O?.content,c==null||(s=c.classNames)==null?void 0:s.content)},f.createElement("div",{"data-title":"",className:Oe(O?.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?f.createElement("div",{"data-description":"",className:Oe(q,z1,O?.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),f.isValidElement(c.cancel)?c.cancel:c.cancel&&Yn(c.cancel)?f.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||D,onClick:I=>{Yn(c.cancel)&&Ot&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,I),Qe())},className:Oe(O?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,f.isValidElement(c.action)?c.action:c.action&&Yn(c.action)?f.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||B,onClick:I=>{Yn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,I),!I.defaultPrevented&&Qe())},className:Oe(O?.actionButton,c==null||(d=c.classNames)==null?void 0:d.actionButton)},c.action.label):null)};function Jl(){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 Fg(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?Mg:$g;function l(d){["top","right","bottom","left"].forEach(u=>{n[`${i}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${i}-${d}`]=a:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(a)}),n}const jg=f.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:l,className:d,offset:u,mobileOffset:c,theme:h="light",richColors:m,duration:g,style:v,visibleToasts:k=Dg,toastOptions:y,dir:S=Jl(),gap:C=Ig,icons:T,containerAriaLabel:w="Notifications"}=t,[P,A]=f.useState([]),D=f.useMemo(()=>r?P.filter(N=>N.toasterId===r):P.filter(N=>!N.toasterId),[P,r]),B=f.useMemo(()=>Array.from(new Set([s].concat(D.filter(N=>N.position).map(N=>N.position)))),[D,s]),[F,q]=f.useState([]),[H,ee]=f.useState(!1),[U,he]=f.useState(!1),[O,V]=f.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),_=f.useRef(null),W=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),Y=f.useRef(null),ce=f.useRef(!1),oe=f.useCallback(N=>{A(X=>{var K;return(K=X.find(se=>se.id===N.id))!=null&&K.delete||ve.dismiss(N.id),X.filter(({id:se})=>se!==N.id)})},[]);return f.useEffect(()=>ve.subscribe(N=>{if(N.dismiss){requestAnimationFrame(()=>{A(X=>X.map(K=>K.id===N.id?{...K,delete:!0}:K))});return}setTimeout(()=>{ui.flushSync(()=>{A(X=>{const K=X.findIndex(se=>se.id===N.id);return K!==-1?[...X.slice(0,K),{...X[K],...N},...X.slice(K+1)]:[N,...X]})})})}),[P]),f.useEffect(()=>{if(h!=="system"){V(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const N=window.matchMedia("(prefers-color-scheme: dark)");try{N.addEventListener("change",({matches:X})=>{V(X?"dark":"light")})}catch{N.addListener(({matches:K})=>{try{V(K?"dark":"light")}catch(se){console.error(se)}})}},[h]),f.useEffect(()=>{P.length<=1&&ee(!1)},[P]),f.useEffect(()=>{const N=X=>{var K;if(i.every(z=>X[z]||X.code===z)){var Me;ee(!0),(Me=_.current)==null||Me.focus()}X.code==="Escape"&&(document.activeElement===_.current||(K=_.current)!=null&&K.contains(document.activeElement))&&ee(!1)};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[i]),f.useEffect(()=>{if(_.current)return()=>{Y.current&&(Y.current.focus({preventScroll:!0}),Y.current=null,ce.current=!1)}},[_.current]),f.createElement("section",{ref:n,"aria-label":`${w} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((N,X)=>{var K;const[se,Me]=N.split("-");return D.length?f.createElement("ol",{key:N,dir:S==="auto"?Jl():S,tabIndex:-1,ref:_,className:d,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":se,"data-x-position":Me,style:{"--front-toast-height":`${((K=F[0])==null?void 0:K.height)||0}px`,"--width":`${Vg}px`,"--gap":`${C}px`,...v,...Fg(u,c)},onBlur:z=>{ce.current&&!z.currentTarget.contains(z.relatedTarget)&&(ce.current=!1,Y.current&&(Y.current.focus({preventScroll:!0}),Y.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||ce.current||(ce.current=!0,Y.current=z.relatedTarget)},onMouseEnter:()=>ee(!0),onMouseMove:()=>ee(!0),onMouseLeave:()=>{U||ee(!1)},onDragEnd:()=>ee(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||he(!0)},onPointerUp:()=>he(!1)},D.filter(z=>!z.position&&X===0||z.position===N).map((z,be)=>{var Je,He;return f.createElement(Og,{key:z.id,icons:T,index:be,toast:z,defaultRichColors:m,duration:(Je=y?.duration)!=null?Je:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:k,closeButton:(He=y?.closeButton)!=null?He:l,interacting:U,position:N,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:oe,toasts:D.filter(me=>me.position==z.position),heights:F.filter(me=>me.position==z.position),setHeights:q,expandByDefault:a,gap:C,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),zg=({spinnerColor:e="orange",...t})=>p.jsx(jg,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:p.jsx(Kn,{color:e,size:"sm"})},...t}),Rg={elevated:b`
|
|
475
|
+
`,nr=({children:e,size:t=16,color:n,className:r,style:o})=>g.jsx(i0,{$size:t,$color:n,className:r,style:o,children:e});function s0(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 a0=e=>{switch(e){case"success":return u0;case"info":return f0;case"warning":return d0;case"error":return h0;default:return null}},l0=Array(12).fill(0),c0=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},l0.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),u0=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"})),d0=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"})),f0=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"})),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-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"})),p0=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"})),m0=()=>{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 ti=1;class g0{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:ti++,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(v0(c)&&!c.ok){i=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=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:f,...m})}else if(c instanceof Error){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,f=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:f,...m})}else if(n.success!==void 0){i=!1;const u=typeof n.success=="function"?await n.success(c):n.success,f=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:f,...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,h=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:u,...h})}}).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||ti++;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 g0,y0=(e,t)=>{const n=t?.id||ti++;return xe.addToast({title:e,...t,id:n}),n},v0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",w0=y0,b0=()=>xe.toasts,x0=()=>xe.getActiveToasts(),S0=Object.assign(w0,{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:b0,getToasts:x0});s0("[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 rr(e){return e.label!==void 0}const C0=3,T0="24px",$0="16px",$c=4e3,P0=356,k0=14,E0=45,M0=200;function ze(...e){return e.filter(Boolean).join(" ")}function D0(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const A0=e=>{var t,n,r,o,i,s,a,l,c;const{invert:d,toast:u,unstyled:f,interacting:h,setHeights:m,visibleToasts:y,heights:w,index:v,toasts:b,expanded:x,removeToast:T,defaultRichColors:S,closeButton:k,style:E,cancelButtonStyle:M,actionButtonStyle:L,className:B="",descriptionClassName:G="",duration:U,position:ne,gap:W,expandByDefault:me,classNames:O,icons:R,closeButtonAriaLabel:j="Close toast"}=e,[K,X]=p.useState(null),[de,se]=p.useState(null),[N,J]=p.useState(!1),[q,le]=p.useState(!1),[Fe,z]=p.useState(!1),[Se,st]=p.useState(!1),[Ye,ve]=p.useState(!1),[Tw,Li]=p.useState(0),[$w,Hu]=p.useState(0),wn=p.useRef(u.duration||U||$c),ju=p.useRef(null),Xe=p.useRef(null),Pw=v===0,kw=v+1<=y,Te=u.type,Wt=u.dismissible!==!1,Ew=u.className||"",Mw=u.descriptionClassName||"",mr=p.useMemo(()=>w.findIndex(F=>F.toastId===u.id)||0,[w,u.id]),Dw=p.useMemo(()=>{var F;return(F=u.closeButton)!=null?F:k},[u.closeButton,k]),Gu=p.useMemo(()=>u.duration||U||$c,[u.duration,U]),Fi=p.useRef(0),Kt=p.useRef(0),Uu=p.useRef(0),qt=p.useRef(null),[Aw,Vw]=ne.split("-"),Wu=p.useMemo(()=>w.reduce((F,ce,ge)=>ge>=mr?F:F+ce.height,0),[w,mr]),Ku=m0(),Iw=u.invert||d,_i=Te==="loading";Kt.current=p.useMemo(()=>mr*W+Wu,[mr,Wu]),p.useEffect(()=>{wn.current=Gu},[Gu]),p.useEffect(()=>{J(!0)},[]),p.useEffect(()=>{const F=Xe.current;if(F){const ce=F.getBoundingClientRect().height;return Hu(ce),m(ge=>[{toastId:u.id,height:ce,position:u.position},...ge]),()=>m(ge=>ge.filter($e=>$e.toastId!==u.id))}},[m,u.id]),p.useLayoutEffect(()=>{if(!N)return;const F=Xe.current,ce=F.style.height;F.style.height="auto";const ge=F.getBoundingClientRect().height;F.style.height=ce,Hu(ge),m($e=>$e.find(fe=>fe.toastId===u.id)?$e.map(fe=>fe.toastId===u.id?{...fe,height:ge}:fe):[{toastId:u.id,height:ge,position:u.position},...$e])},[N,u.title,u.description,m,u.id,u.jsx,u.action,u.cancel]);const at=p.useCallback(()=>{le(!0),Li(Kt.current),m(F=>F.filter(ce=>ce.toastId!==u.id)),setTimeout(()=>{T(u)},M0)},[u,T,m,Kt]);p.useEffect(()=>{if(u.promise&&Te==="loading"||u.duration===1/0||u.type==="loading")return;let F;return x||h||Ku?(()=>{if(Uu.current<Fi.current){const $e=new Date().getTime()-Fi.current;wn.current=wn.current-$e}Uu.current=new Date().getTime()})():(()=>{wn.current!==1/0&&(Fi.current=new Date().getTime(),F=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),at()},wn.current))})(),()=>clearTimeout(F)},[x,h,u,Te,Ku,at]),p.useEffect(()=>{u.delete&&(at(),u.onDismiss==null||u.onDismiss.call(u,u))},[at,u.delete]);function Rw(){var F;if(R?.loading){var ce;return p.createElement("div",{className:ze(O?.loader,u==null||(ce=u.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":Te==="loading"},R.loading)}return p.createElement(c0,{className:ze(O?.loader,u==null||(F=u.classNames)==null?void 0:F.loader),visible:Te==="loading"})}const Lw=u.icon||R?.[Te]||a0(Te);var qu,Yu;return p.createElement("li",{tabIndex:0,ref:Xe,className:ze(B,Ew,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":(qu=u.richColors)!=null?qu:S,"data-styled":!(u.jsx||u.unstyled||f),"data-mounted":N,"data-promise":!!u.promise,"data-swiped":Ye,"data-removed":q,"data-visible":kw,"data-y-position":Aw,"data-x-position":Vw,"data-index":v,"data-front":Pw,"data-swiping":Fe,"data-dismissible":Wt,"data-type":Te,"data-invert":Iw,"data-swipe-out":Se,"data-swipe-direction":de,"data-expanded":!!(x||me&&N),"data-testid":u.testId,style:{"--index":v,"--toasts-before":v,"--z-index":b.length-v,"--offset":`${q?Tw:Kt.current}px`,"--initial-height":me?"auto":`${$w}px`,...E,...u.style},onDragEnd:()=>{z(!1),X(null),qt.current=null},onPointerDown:F=>{F.button!==2&&(_i||!Wt||(ju.current=new Date,Li(Kt.current),F.target.setPointerCapture(F.pointerId),F.target.tagName!=="BUTTON"&&(z(!0),qt.current={x:F.clientX,y:F.clientY})))},onPointerUp:()=>{var F,ce,ge;if(Se||!Wt)return;qt.current=null;const $e=Number(((F=Xe.current)==null?void 0:F.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),gr=Number(((ce=Xe.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),fe=new Date().getTime()-((ge=ju.current)==null?void 0:ge.getTime()),Ae=K==="x"?$e:gr,yr=Math.abs(Ae)/fe;if(Math.abs(Ae)>=E0||yr>.11){Li(Kt.current),u.onDismiss==null||u.onDismiss.call(u,u),se(K==="x"?$e>0?"right":"left":gr>0?"down":"up"),at(),st(!0);return}else{var _e,Ne;(_e=Xe.current)==null||_e.style.setProperty("--swipe-amount-x","0px"),(Ne=Xe.current)==null||Ne.style.setProperty("--swipe-amount-y","0px")}ve(!1),z(!1),X(null)},onPointerMove:F=>{var ce,ge,$e;if(!qt.current||!Wt||((ce=window.getSelection())==null?void 0:ce.toString().length)>0)return;const fe=F.clientY-qt.current.y,Ae=F.clientX-qt.current.x;var yr;const _e=(yr=e.swipeDirections)!=null?yr:D0(ne);!K&&(Math.abs(Ae)>1||Math.abs(fe)>1)&&X(Math.abs(Ae)>Math.abs(fe)?"x":"y");let Ne={x:0,y:0};const Xu=St=>1/(1.5+Math.abs(St)/20);if(K==="y"){if(_e.includes("top")||_e.includes("bottom"))if(_e.includes("top")&&fe<0||_e.includes("bottom")&&fe>0)Ne.y=fe;else{const St=fe*Xu(fe);Ne.y=Math.abs(St)<Math.abs(fe)?St:fe}}else if(K==="x"&&(_e.includes("left")||_e.includes("right")))if(_e.includes("left")&&Ae<0||_e.includes("right")&&Ae>0)Ne.x=Ae;else{const St=Ae*Xu(Ae);Ne.x=Math.abs(St)<Math.abs(Ae)?St:Ae}(Math.abs(Ne.x)>0||Math.abs(Ne.y)>0)&&ve(!0),(ge=Xe.current)==null||ge.style.setProperty("--swipe-amount-x",`${Ne.x}px`),($e=Xe.current)==null||$e.style.setProperty("--swipe-amount-y",`${Ne.y}px`)}},Dw&&!u.jsx&&Te!=="loading"?p.createElement("button",{"aria-label":j,"data-disabled":_i,"data-close-button":!0,onClick:_i||!Wt?()=>{}:()=>{at(),u.onDismiss==null||u.onDismiss.call(u,u)},className:ze(O?.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Yu=R?.close)!=null?Yu:p0):null,(Te||u.icon||u.promise)&&u.icon!==null&&(R?.[Te]!==null||u.icon)?p.createElement("div",{"data-icon":"",className:ze(O?.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||Rw():null,u.type!=="loading"?Lw:null):null,p.createElement("div",{"data-content":"",className:ze(O?.content,u==null||(i=u.classNames)==null?void 0:i.content)},p.createElement("div",{"data-title":"",className:ze(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:ze(G,Mw,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&&rr(u.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||M,onClick:F=>{rr(u.cancel)&&Wt&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,F),at())},className:ze(O?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,p.isValidElement(u.action)?u.action:u.action&&rr(u.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||L,onClick:F=>{rr(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,F),!F.defaultPrevented&&at())},className:ze(O?.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Pc(){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 V0(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?$0:T0;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 I0=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:f="light",richColors:h,duration:m,style:y,visibleToasts:w=C0,toastOptions:v,dir:b=Pc(),gap:x=k0,icons:T,containerAriaLabel:S="Notifications"}=t,[k,E]=p.useState([]),M=p.useMemo(()=>r?k.filter(N=>N.toasterId===r):k.filter(N=>!N.toasterId),[k,r]),L=p.useMemo(()=>Array.from(new Set([i].concat(M.filter(N=>N.position).map(N=>N.position)))),[M,i]),[B,G]=p.useState([]),[U,ne]=p.useState(!1),[W,me]=p.useState(!1),[O,R]=p.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=p.useRef(null),K=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),X=p.useRef(null),de=p.useRef(!1),se=p.useCallback(N=>{E(J=>{var q;return(q=J.find(le=>le.id===N.id))!=null&&q.delete||xe.dismiss(N.id),J.filter(({id:le})=>le!==N.id)})},[]);return p.useEffect(()=>xe.subscribe(N=>{if(N.dismiss){requestAnimationFrame(()=>{E(J=>J.map(q=>q.id===N.id?{...q,delete:!0}:q))});return}setTimeout(()=>{Ni.flushSync(()=>{E(J=>{const q=J.findIndex(le=>le.id===N.id);return q!==-1?[...J.slice(0,q),{...J[q],...N},...J.slice(q+1)]:[N,...J]})})})}),[k]),p.useEffect(()=>{if(f!=="system"){R(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window>"u")return;const N=window.matchMedia("(prefers-color-scheme: dark)");try{N.addEventListener("change",({matches:J})=>{R(J?"dark":"light")})}catch{N.addListener(({matches:q})=>{try{R(q?"dark":"light")}catch(le){console.error(le)}})}},[f]),p.useEffect(()=>{k.length<=1&&ne(!1)},[k]),p.useEffect(()=>{const N=J=>{var q;if(s.every(z=>J[z]||J.code===z)){var Fe;ne(!0),(Fe=j.current)==null||Fe.focus()}J.code==="Escape"&&(document.activeElement===j.current||(q=j.current)!=null&&q.contains(document.activeElement))&&ne(!1)};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[s]),p.useEffect(()=>{if(j.current)return()=>{X.current&&(X.current.focus({preventScroll:!0}),X.current=null,de.current=!1)}},[j.current]),p.createElement("section",{ref:n,"aria-label":`${S} ${K}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((N,J)=>{var q;const[le,Fe]=N.split("-");return M.length?p.createElement("ol",{key:N,dir:b==="auto"?Pc():b,tabIndex:-1,ref:j,className:c,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":le,"data-x-position":Fe,style:{"--front-toast-height":`${((q=B[0])==null?void 0:q.height)||0}px`,"--width":`${P0}px`,"--gap":`${x}px`,...y,...V0(d,u)},onBlur:z=>{de.current&&!z.currentTarget.contains(z.relatedTarget)&&(de.current=!1,X.current&&(X.current.focus({preventScroll:!0}),X.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||de.current||(de.current=!0,X.current=z.relatedTarget)},onMouseEnter:()=>ne(!0),onMouseMove:()=>ne(!0),onMouseLeave:()=>{W||ne(!1)},onDragEnd:()=>ne(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||me(!0)},onPointerUp:()=>me(!1)},M.filter(z=>!z.position&&J===0||z.position===N).map((z,Se)=>{var st,Ye;return p.createElement(A0,{key:z.id,icons:T,index:Se,toast:z,defaultRichColors:h,duration:(st=v?.duration)!=null?st:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(Ye=v?.closeButton)!=null?Ye:l,interacting:W,position:N,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:se,toasts:M.filter(ve=>ve.position==z.position),heights:B.filter(ve=>ve.position==z.position),setHeights:G,expandByDefault:a,gap:x,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),R0=({spinnerColor:e="orange",...t})=>g.jsx(I0,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:g.jsx(tr,{color:e,size:"sm"})},...t}),L0={elevated:C`
|
|
476
476
|
background-color: var(--color-main-white);
|
|
477
477
|
box-shadow: var(--shadow-black-card);
|
|
478
478
|
border: none;
|
|
@@ -480,7 +480,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
480
480
|
&:hover {
|
|
481
481
|
box-shadow: var(--shadow-hover-black-card);
|
|
482
482
|
}
|
|
483
|
-
`,flat:
|
|
483
|
+
`,flat:C`
|
|
484
484
|
background-color: var(--color-main-white);
|
|
485
485
|
box-shadow: none;
|
|
486
486
|
border: none;
|
|
@@ -488,7 +488,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
488
488
|
&:hover {
|
|
489
489
|
background-color: var(--color-main-alternative-secondary);
|
|
490
490
|
}
|
|
491
|
-
`,info:
|
|
491
|
+
`,info:C`
|
|
492
492
|
background-color: var(--color-main-white);
|
|
493
493
|
box-shadow: none;
|
|
494
494
|
|
|
@@ -499,16 +499,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
499
499
|
&:active {
|
|
500
500
|
border: none;
|
|
501
501
|
}
|
|
502
|
-
`},
|
|
502
|
+
`},F0={sm:C`
|
|
503
503
|
padding: 0.75rem;
|
|
504
504
|
gap: 0.5rem;
|
|
505
|
-
`,md:
|
|
505
|
+
`,md:C`
|
|
506
506
|
padding: 1rem;
|
|
507
507
|
gap: 0.5rem;
|
|
508
|
-
`,lg:
|
|
508
|
+
`,lg:C`
|
|
509
509
|
padding: 1.25rem;
|
|
510
510
|
gap: 0.5rem;
|
|
511
|
-
`},
|
|
511
|
+
`},_0=C`
|
|
512
512
|
transition:
|
|
513
513
|
box-shadow 0.3s ease-out,
|
|
514
514
|
background-color 0.3s ease-out,
|
|
@@ -528,7 +528,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
528
528
|
&:focus-visible {
|
|
529
529
|
outline-color: var(--color-main-blue-primary);
|
|
530
530
|
}
|
|
531
|
-
`,
|
|
531
|
+
`,N0=C`
|
|
532
532
|
opacity: 0.6;
|
|
533
533
|
cursor: not-allowed;
|
|
534
534
|
pointer-events: none;
|
|
@@ -537,7 +537,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
537
537
|
transform: none;
|
|
538
538
|
box-shadow: inherit;
|
|
539
539
|
}
|
|
540
|
-
`,
|
|
540
|
+
`,O0=$.div`
|
|
541
541
|
display: flex;
|
|
542
542
|
flex-direction: column;
|
|
543
543
|
border-radius: var(--border-radius-card);
|
|
@@ -545,58 +545,58 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
545
545
|
height: 100%;
|
|
546
546
|
outline: 2px solid transparent;
|
|
547
547
|
outline-offset: -1px;
|
|
548
|
-
${({$variant:e})=>
|
|
549
|
-
${({$clickable:e})=>e&&
|
|
550
|
-
${({$disabled:e})=>e&&
|
|
551
|
-
${({$size:e})=>
|
|
552
|
-
`,
|
|
548
|
+
${({$variant:e})=>L0[e]}
|
|
549
|
+
${({$clickable:e})=>e&&_0}
|
|
550
|
+
${({$disabled:e})=>e&&N0}
|
|
551
|
+
${({$size:e})=>F0[e]}
|
|
552
|
+
`,B0=({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(O0,{$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})},z0=$.div`
|
|
553
553
|
display: flex;
|
|
554
554
|
align-items: center;
|
|
555
555
|
align-self: stretch;
|
|
556
556
|
gap: 0.5rem;
|
|
557
557
|
|
|
558
|
-
${({$showDivider:e})=>e&&
|
|
558
|
+
${({$showDivider:e})=>e&&C`
|
|
559
559
|
border-bottom: 1px solid var(--color-divider);
|
|
560
560
|
padding-bottom: 0.5rem;
|
|
561
561
|
`}
|
|
562
|
-
`,
|
|
562
|
+
`,H0=({children:e,showDivider:t=!1,...n})=>g.jsx(z0,{$showDivider:t,...n,children:e}),j0=$.div`
|
|
563
563
|
flex: 1;
|
|
564
564
|
display: flex;
|
|
565
565
|
flex-direction: column;
|
|
566
|
-
`,
|
|
566
|
+
`,G0=({children:e,showDivider:t=!1,...n})=>g.jsx(j0,{$showDivider:t,...n,children:e}),U0=$.div`
|
|
567
567
|
display: flex;
|
|
568
568
|
align-items: center;
|
|
569
569
|
align-self: stretch;
|
|
570
570
|
gap: 0.5rem;
|
|
571
|
-
`,
|
|
572
|
-
${
|
|
573
|
-
`,md:
|
|
574
|
-
${
|
|
575
|
-
`,lg:
|
|
576
|
-
${
|
|
577
|
-
`},
|
|
571
|
+
`,W0=({children:e,...t})=>g.jsx(U0,{...t,children:e}),K0={sm:C`
|
|
572
|
+
${D[12]}
|
|
573
|
+
`,md:C`
|
|
574
|
+
${D[16]}
|
|
575
|
+
`,lg:C`
|
|
576
|
+
${D[18]}
|
|
577
|
+
`},q0=$.div`
|
|
578
578
|
color: var(--color-main-warning-state);
|
|
579
|
-
${({$size:e})=>
|
|
579
|
+
${({$size:e})=>K0[e]}
|
|
580
580
|
font-weight: 400;
|
|
581
581
|
margin-top: 0.25rem;
|
|
582
582
|
display: flex;
|
|
583
583
|
align-items: flex-start;
|
|
584
584
|
gap: 0.25rem;
|
|
585
|
-
`,
|
|
586
|
-
${
|
|
587
|
-
`,md:
|
|
588
|
-
${
|
|
589
|
-
`,lg:
|
|
590
|
-
${
|
|
591
|
-
`},
|
|
585
|
+
`,ni=({children:e,className:t,size:n="md",...r})=>g.jsx(q0,{className:t,$size:n,...r,children:e}),Y0={sm:C`
|
|
586
|
+
${D[16]}
|
|
587
|
+
`,md:C`
|
|
588
|
+
${D[24]}
|
|
589
|
+
`,lg:C`
|
|
590
|
+
${D[30]}
|
|
591
|
+
`},X0=$.label`
|
|
592
592
|
color: var(--color-main-blue-primary);
|
|
593
|
-
${({$size:e})=>
|
|
594
|
-
${({$disabled:e})=>e&&
|
|
593
|
+
${({$size:e})=>Y0[e]}
|
|
594
|
+
${({$disabled:e})=>e&&Z0}
|
|
595
595
|
cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
|
|
596
|
-
`,
|
|
596
|
+
`,Z0=C`
|
|
597
597
|
cursor: not-allowed;
|
|
598
598
|
opacity: 0.6;
|
|
599
|
-
`,
|
|
599
|
+
`,or=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>g.jsxs(X0,{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"],Ec=e=>kc.includes(e),nt=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Ec(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})),J0=e=>e.map(t=>({value:t.value,label:t.label})),Q0={text:(e,t,n)=>nt([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>nt([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>nt([{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)=>nt([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>nt([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>nt([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>nt([{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]},ey=(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"}}}},bt=C`
|
|
600
600
|
display: flex;
|
|
601
601
|
justify-content: space-between;
|
|
602
602
|
align-items: center;
|
|
@@ -626,7 +626,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
626
626
|
&:disabled {
|
|
627
627
|
cursor: not-allowed;
|
|
628
628
|
}
|
|
629
|
-
`,
|
|
629
|
+
`,ir=C`
|
|
630
630
|
width: 100%;
|
|
631
631
|
border: none;
|
|
632
632
|
outline: none;
|
|
@@ -643,18 +643,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
643
643
|
&::placeholder {
|
|
644
644
|
color: var(--color-dark-200);
|
|
645
645
|
}
|
|
646
|
-
`,
|
|
646
|
+
`,xt=C`
|
|
647
647
|
border: var(--border-input-error) !important;
|
|
648
648
|
|
|
649
649
|
&:focus-within {
|
|
650
650
|
border: 1px solid var(--color-main-warning-state) !important;
|
|
651
651
|
outline: none;
|
|
652
652
|
}
|
|
653
|
-
`,
|
|
653
|
+
`,rt=C`
|
|
654
654
|
border: var(--border-input-disabled) !important;
|
|
655
655
|
cursor: not-allowed;
|
|
656
656
|
opacity: 0.6;
|
|
657
|
-
`,
|
|
657
|
+
`,Mc=C`
|
|
658
658
|
border: none;
|
|
659
659
|
border-top: 0;
|
|
660
660
|
border-right: 0;
|
|
@@ -680,59 +680,59 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
680
680
|
border-bottom: var(--border-input-focus);
|
|
681
681
|
outline: none;
|
|
682
682
|
}
|
|
683
|
-
`,
|
|
683
|
+
`,mn={sm:C`
|
|
684
684
|
padding: 0.5rem 1rem;
|
|
685
685
|
height: 2.5rem;
|
|
686
|
-
${
|
|
687
|
-
`,md:
|
|
686
|
+
${D[18]}
|
|
687
|
+
`,md:C`
|
|
688
688
|
padding: 0.5rem 1rem;
|
|
689
689
|
height: 2.75rem;
|
|
690
|
-
${
|
|
691
|
-
`,lg:
|
|
690
|
+
${D[20]}
|
|
691
|
+
`,lg:C`
|
|
692
692
|
padding: 0.5rem 1rem;
|
|
693
693
|
height: 3rem;
|
|
694
|
-
${
|
|
695
|
-
`},
|
|
694
|
+
${D[20]}
|
|
695
|
+
`},sr=C`
|
|
696
696
|
display: flex;
|
|
697
697
|
align-items: center;
|
|
698
698
|
justify-content: center;
|
|
699
699
|
flex-shrink: 0;
|
|
700
700
|
user-select: none;
|
|
701
|
-
`,
|
|
702
|
-
${
|
|
703
|
-
${({$size:e})=>
|
|
704
|
-
${({$hasError:e})=>e&&
|
|
705
|
-
${({$disabled:e})=>e&&
|
|
706
|
-
${({$isFlushed:e})=>e&&
|
|
707
|
-
`,
|
|
708
|
-
${
|
|
709
|
-
`,
|
|
710
|
-
${
|
|
711
|
-
${({$size:e})=>
|
|
712
|
-
${({$hasError:e})=>e&&
|
|
713
|
-
${({$disabled:e})=>e&&
|
|
701
|
+
`,ty=$.div`
|
|
702
|
+
${bt}
|
|
703
|
+
${({$size:e})=>mn[e]}
|
|
704
|
+
${({$hasError:e})=>e&&xt}
|
|
705
|
+
${({$disabled:e})=>e&&rt}
|
|
706
|
+
${({$isFlushed:e})=>e&&Mc}
|
|
707
|
+
`,ny=$.input`
|
|
708
|
+
${ir}
|
|
709
|
+
`,ri=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(ty,{$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(ny,{ref:u,type:r,$hasError:t,disabled:n,...d}),s&&g.jsx(Y,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));ri.displayName="BaseInput";const 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:"M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"})),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:"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"})),sy=({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"})),ay=({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 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})),Dc=({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"})),cy=({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"})),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:"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"})),dy=({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"})),Ac=({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"})),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:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),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 10V17ZM18 17V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V17H18ZM9 21H15V23H9V21Z"})),Vc=({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"})),py=({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"})),my=({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"})),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:"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"})),yy=({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"})),vy=$.div`
|
|
710
|
+
${bt}
|
|
711
|
+
${({$size:e})=>mn[e??"md"]}
|
|
712
|
+
${({$hasError:e})=>e&&xt}
|
|
713
|
+
${({$disabled:e})=>e&&rt}
|
|
714
714
|
position: relative;
|
|
715
|
-
`,
|
|
716
|
-
${
|
|
717
|
-
`,
|
|
718
|
-
${
|
|
715
|
+
`,wy=$.input`
|
|
716
|
+
${ir}
|
|
717
|
+
`,by=$.span`
|
|
718
|
+
${sr}
|
|
719
719
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
720
|
-
`,
|
|
720
|
+
`,Ic=({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(f=>!f);return g.jsxs(vy,{$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(wy,{type:c?"text":"password",placeholder:o,disabled:s,...l}),g.jsx(by,{$disabled:s,onClick:s?void 0:u,children:g.jsx(Y,{component:c?uy:cy,size:n,color:s?"var(--color-dark-200)":r})})]})},Rc=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},xy=e=>{for(let t=e.length-1;t>=0;t--)if(!e[t].disabled)return t;return e.length-1},Sy=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},Cy=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),Ty=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},$y=(e,t)=>{if(typeof e=="string"||typeof e=="number"){const n=t.findIndex(r=>r.value===e);if(n!==-1&&!t[n].disabled)return n}return Rc(t)},Py=({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.useId(),[u,f]=p.useState(!1),[h,m]=p.useState(-1),y=e.find(T=>T.value===t);p.useEffect(()=>{u&&a.current&&(a.current.focus(),m($y(t,e)))},[u,e,t]),p.useEffect(()=>{Ty(l,h)},[h]),p.useEffect(()=>{if(!u)return;const T=S=>{s.current&&(s.current.contains(S.target)||f(!1))};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[u]),p.useEffect(()=>{u||requestAnimationFrame(()=>{c.current?.focus()})},[u]);const w=T=>{T.disabled||(i?.(T),o&&o(Cy(T.value,n)),f(!1),m(-1))};return{open:u,activeIndex:h,selected:y,containerRef:s,menuRef:a,menuContentRef:l,buttonRef:c,id:d,setOpen:f,setActiveIndex:m,commitSelection:w,handleKeyDownButton:T=>{r||(T.key==="ArrowDown"||T.key==="ArrowUp"?(T.preventDefault(),f(!0)):(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),f(S=>!S)))},handleKeyDownMenu:T=>{if(T.key==="Escape"){T.preventDefault(),f(!1),m(-1);return}if(T.key==="ArrowDown"||T.key==="ArrowUp"){T.preventDefault();const S=T.key==="ArrowDown"?1:-1;m(Sy(h,S,e))}else if(T.key==="Enter"){T.preventDefault();const S=e[h];S&&!S.disabled&&w(S)}else T.key==="Home"?(T.preventDefault(),m(Rc(e))):T.key==="End"&&(T.preventDefault(),m(xy(e)))},handleToggle:()=>{r||f(T=>!T)}}},ky=$.div`
|
|
721
721
|
position: relative;
|
|
722
722
|
width: 100%;
|
|
723
|
-
`,
|
|
724
|
-
${
|
|
723
|
+
`,Ey=$.div`
|
|
724
|
+
${sr}
|
|
725
725
|
position: absolute;
|
|
726
726
|
right: 1rem;
|
|
727
727
|
top: 50%;
|
|
728
728
|
transform: translateY(-50%) rotate(${({$open:e})=>e?"180deg":"0deg"});
|
|
729
729
|
pointer-events: none;
|
|
730
730
|
transition: transform 0.3s ease-out;
|
|
731
|
-
`,
|
|
732
|
-
${
|
|
733
|
-
${({$size:e})=>
|
|
734
|
-
${({$hasError:e})=>e&&
|
|
735
|
-
${({$disabled:e})=>e&&
|
|
731
|
+
`,My=$.button`
|
|
732
|
+
${bt}
|
|
733
|
+
${({$size:e})=>mn[e]}
|
|
734
|
+
${({$hasError:e})=>e&&xt}
|
|
735
|
+
${({$disabled:e})=>e&&rt}
|
|
736
736
|
|
|
737
737
|
width: 100%;
|
|
738
738
|
text-align: left;
|
|
@@ -750,7 +750,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
750
750
|
&:hover {
|
|
751
751
|
background-color: var(--color-main-alternative-secondary);
|
|
752
752
|
}
|
|
753
|
-
`,
|
|
753
|
+
`,Dy=$(Ke.ul)`
|
|
754
754
|
position: absolute;
|
|
755
755
|
z-index: 50;
|
|
756
756
|
left: 0;
|
|
@@ -772,11 +772,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
772
772
|
border: var(--border-input-focus);
|
|
773
773
|
outline: none;
|
|
774
774
|
}
|
|
775
|
-
`,
|
|
775
|
+
`,Ay=$.div`
|
|
776
776
|
max-height: 15rem;
|
|
777
777
|
overflow-y: auto;
|
|
778
778
|
outline: none;
|
|
779
|
-
`,
|
|
779
|
+
`,Vy=$.li`
|
|
780
780
|
display: flex;
|
|
781
781
|
align-items: center;
|
|
782
782
|
gap: 0.5rem;
|
|
@@ -786,22 +786,22 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
786
786
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
787
787
|
user-select: none;
|
|
788
788
|
|
|
789
|
-
${({$size:e})=>
|
|
789
|
+
${({$size:e})=>Iy[e??"md"]}
|
|
790
790
|
|
|
791
791
|
background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
|
|
792
792
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
793
|
-
`,
|
|
794
|
-
${
|
|
795
|
-
`,md:
|
|
796
|
-
${
|
|
797
|
-
`,lg:
|
|
798
|
-
${
|
|
799
|
-
`},
|
|
800
|
-
${
|
|
801
|
-
${({$size:e})=>
|
|
802
|
-
${({$hasError:e})=>e&&
|
|
803
|
-
${({$disabled:e})=>e&&
|
|
804
|
-
${
|
|
793
|
+
`,Iy={sm:C`
|
|
794
|
+
${D[16]}
|
|
795
|
+
`,md:C`
|
|
796
|
+
${D[18]}
|
|
797
|
+
`,lg:C`
|
|
798
|
+
${D[18]}
|
|
799
|
+
`},Lc=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:f,title:h},m)=>g.jsxs(g.Fragment,{children:[g.jsx(My,{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":f,title:h,children:o}),g.jsx(Ey,{$size:e,$disabled:n,$open:i,children:g.jsx(Y,{component:ay,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})})]}));Lc.displayName="SelectTrigger";const Fc=({option:e,size:t,active:n,selected:r,id:o,className:i,onMouseEnter:s,onClick:a})=>g.jsx(Vy,{id:o,className:i,role:"option",$size:t,"aria-selected":r,$active:n,$disabled:e.disabled,onMouseEnter:s,onClick:a,children:e.label});Fc.displayName="SelectOption";const _c=({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:f})=>g.jsx(sn,{children:e&&g.jsx(Dy,{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(Ay,{ref:s,className:l,children:t.map((h,m)=>{const y=m===r;return g.jsx(Fc,{option:h,size:n,active:y,selected:o===h.value,id:`${a}-option-${m}`,className:c,onMouseEnter:()=>{!h.disabled&&e&&f(m)},onClick:()=>u(h)},h.value)})})})});_c.displayName="SelectMenu";const ar=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:f},h)=>{const{open:m,activeIndex:y,selected:w,containerRef:v,menuRef:b,menuContentRef:x,buttonRef:T,id:S,setActiveIndex:k,commitSelection:E,handleKeyDownButton:M,handleKeyDownMenu:L,handleToggle:B}=Py({options:r,value:a,name:l,disabled:n,onChange:s,onOptionSelect:i}),G=U=>{T.current=U,typeof h=="function"?h(U):h&&"current"in h&&(h.current=U)};return g.jsxs(ky,{ref:v,className:c,children:[l&&g.jsx("input",{type:"hidden",name:l,value:w?.value??""}),g.jsx(Lc,{ref:G,size:e,hasError:t,disabled:n,hasValue:!!w,displayText:w?.label??o??"",open:m,inputClassName:d,onClick:B,onKeyDown:M,ariaHaspopup:"listbox",ariaExpanded:m,ariaControls:`${S}-listbox`,ariaInvalid:t||void 0,title:w?.label??o??"Select an option"}),g.jsx(_c,{open:m,options:r,size:e,activeIndex:y,selectedValue:a,menuRef:b,menuContentRef:x,id:S,optionsClassName:u,optionClassName:f,onKeyDown:L,onOptionClick:E,onOptionMouseEnter:k})]})});ar.displayName="SelectInput";const Ry=$.textarea`
|
|
800
|
+
${bt}
|
|
801
|
+
${({$size:e})=>Ly[e]}
|
|
802
|
+
${({$hasError:e})=>e&&xt}
|
|
803
|
+
${({$disabled:e})=>e&&rt}
|
|
804
|
+
${D[20]}
|
|
805
805
|
|
|
806
806
|
resize: ${({$resize:e})=>e};
|
|
807
807
|
|
|
@@ -814,61 +814,61 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
814
814
|
color: var(--color-dark-200);
|
|
815
815
|
opacity: 1;
|
|
816
816
|
}
|
|
817
|
-
`,
|
|
818
|
-
${
|
|
817
|
+
`,Ly={sm:`
|
|
818
|
+
${D[20]}
|
|
819
819
|
height: 6rem;
|
|
820
820
|
max-height: 12rem;
|
|
821
821
|
padding: 1rem 1.25rem;
|
|
822
822
|
`,md:`
|
|
823
|
-
${
|
|
823
|
+
${D[24]}
|
|
824
824
|
height: 8rem;
|
|
825
825
|
max-height: 16rem;
|
|
826
826
|
padding: 1rem 1.25rem;
|
|
827
827
|
`,lg:`
|
|
828
|
-
${
|
|
828
|
+
${D[24]}
|
|
829
829
|
height:12rem;
|
|
830
830
|
max-height: 20rem;
|
|
831
831
|
padding: 1rem 1.25rem;
|
|
832
|
-
`},
|
|
833
|
-
${
|
|
834
|
-
${({$size:e})=>
|
|
835
|
-
`,
|
|
836
|
-
${
|
|
837
|
-
`,
|
|
832
|
+
`},oi=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=f=>{if(o){const h=f.target;h.style.height="auto";const m=h.scrollHeight,y=i*24,w=s?s*24:m;m>w?(h.style.height=`${w}px`,h.style.overflowY="scroll"):(h.style.height=`${Math.max(m,y)}px`,h.style.overflowY="hidden")}l?.(f)};return g.jsx(Ry,{ref:d,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:i,className:a,onChange:u,...c})});oi.displayName="TextAreaInput";const Fy=$.div`
|
|
833
|
+
${bt}
|
|
834
|
+
${({$size:e})=>mn[e??"md"]}
|
|
835
|
+
`,_y=$.input`
|
|
836
|
+
${ir}
|
|
837
|
+
`,Nc=({size:e="md",leftIcon:t,rightIcon:n=Vc,iconSize:r="sm",iconColor:o="currentColor",placeholder:i="Buscar...",onSearch:s,className:a,...l})=>{const c=d=>{s?.(d.target.value)};return g.jsxs(Fy,{$size:e,className:a,children:[t&&g.jsx(Y,{component:t,size:r,color:o}),g.jsx(_y,{placeholder:i,onChange:c,...l}),n?g.jsx(Y,{component:n,size:r,color:o}):g.jsx(Y,{component:Vc,size:r,color:o})]})},Ny={default:C`
|
|
838
838
|
min-height: 18rem;
|
|
839
839
|
padding: 2rem;
|
|
840
|
-
`,compact:
|
|
840
|
+
`,compact:C`
|
|
841
841
|
min-height: 6rem;
|
|
842
842
|
padding: 1rem;
|
|
843
843
|
flex-direction: row;
|
|
844
|
-
`},
|
|
845
|
-
${
|
|
846
|
-
`,md:
|
|
847
|
-
${
|
|
848
|
-
`,lg:
|
|
849
|
-
${
|
|
850
|
-
`},
|
|
844
|
+
`},Oy={sm:C`
|
|
845
|
+
${D[12]}
|
|
846
|
+
`,md:C`
|
|
847
|
+
${D[16]}
|
|
848
|
+
`,lg:C`
|
|
849
|
+
${D[20]}
|
|
850
|
+
`},By=C`
|
|
851
851
|
border: 2px dashed var(--color-main-input-borders);
|
|
852
852
|
background-color: var(--color-main-white);
|
|
853
|
-
`,
|
|
853
|
+
`,zy=C`
|
|
854
854
|
border-color: var(--color-main-blue-primary);
|
|
855
855
|
background-color: var(--color-main-alternative-secondary);
|
|
856
|
-
`,
|
|
856
|
+
`,Hy=C`
|
|
857
857
|
border: 2px dashed var(--color-main-positive-state);
|
|
858
858
|
background-color: var(--color-green-100);
|
|
859
|
-
`,
|
|
859
|
+
`,jy=C`
|
|
860
860
|
border-color: var(--color-main-warning-state);
|
|
861
861
|
background-color: var(--color-red-100);
|
|
862
|
-
`,
|
|
862
|
+
`,Gy=C`
|
|
863
863
|
border-color: var(--color-dark-200);
|
|
864
864
|
cursor: not-allowed;
|
|
865
865
|
opacity: 0.6;
|
|
866
|
-
`,
|
|
866
|
+
`,Uy=$.div`
|
|
867
867
|
display: flex;
|
|
868
868
|
flex-direction: column;
|
|
869
869
|
width: 100%;
|
|
870
|
-
${({$size:e})=>
|
|
871
|
-
`,
|
|
870
|
+
${({$size:e})=>Oy[e]}
|
|
871
|
+
`,Wy=$.div`
|
|
872
872
|
display: flex;
|
|
873
873
|
flex-direction: column;
|
|
874
874
|
align-items: center;
|
|
@@ -884,35 +884,35 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
884
884
|
outline: 2px solid transparent;
|
|
885
885
|
outline-offset: 2px;
|
|
886
886
|
|
|
887
|
-
${({$variant:e})=>
|
|
888
|
-
${
|
|
887
|
+
${({$variant:e})=>Ny[e]}
|
|
888
|
+
${By}
|
|
889
889
|
|
|
890
|
-
${({$disabled:e})=>e?
|
|
890
|
+
${({$disabled:e})=>e?Gy:C`
|
|
891
891
|
&:hover {
|
|
892
|
-
${
|
|
892
|
+
${zy}
|
|
893
893
|
}
|
|
894
894
|
`}
|
|
895
895
|
|
|
896
|
-
${({$isDragging:e,$disabled:t})=>e&&!t&&
|
|
897
|
-
${({$hasError:e,$disabled:t})=>e&&!t&&
|
|
896
|
+
${({$isDragging:e,$disabled:t})=>e&&!t&&Hy}
|
|
897
|
+
${({$hasError:e,$disabled:t})=>e&&!t&&jy}
|
|
898
898
|
|
|
899
899
|
&:focus-visible {
|
|
900
900
|
outline-color: var(--color-main-blue-primary);
|
|
901
901
|
outline-offset: 2px;
|
|
902
902
|
}
|
|
903
|
-
`,
|
|
903
|
+
`,Ky=$.div`
|
|
904
904
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
905
905
|
|
|
906
906
|
strong {
|
|
907
907
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
908
908
|
font-weight: 700;
|
|
909
909
|
}
|
|
910
|
-
`,
|
|
910
|
+
`,qy=$.div`
|
|
911
911
|
display: flex;
|
|
912
912
|
flex-direction: column;
|
|
913
913
|
gap: 0.5rem;
|
|
914
914
|
margin-top: 1rem;
|
|
915
|
-
`,
|
|
915
|
+
`,Yy=$.div`
|
|
916
916
|
display: flex;
|
|
917
917
|
align-items: center;
|
|
918
918
|
justify-content: space-between;
|
|
@@ -929,12 +929,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
929
929
|
&:hover {
|
|
930
930
|
background-color: var(--color-main-alternative-secondary);
|
|
931
931
|
}
|
|
932
|
-
`,
|
|
932
|
+
`,Xy=$(je)`
|
|
933
933
|
font-weight: 500;
|
|
934
934
|
overflow: hidden;
|
|
935
935
|
text-overflow: ellipsis;
|
|
936
936
|
white-space: nowrap;
|
|
937
|
-
`,
|
|
937
|
+
`,Zy=$.button`
|
|
938
938
|
background: none;
|
|
939
939
|
border: none;
|
|
940
940
|
color: var(--color-dark-400);
|
|
@@ -961,9 +961,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
961
961
|
cursor: not-allowed;
|
|
962
962
|
opacity: 0.5;
|
|
963
963
|
}
|
|
964
|
-
`,
|
|
964
|
+
`,Jy=(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}}},Qy=({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 f=u.type.toLowerCase(),h=`.${u.name.split(".").pop()?.toLowerCase()}`;return!c.some(m=>{if(m===f||m===h)return!0;if(m.endsWith("/*")){const y=m.slice(0,-2);return f.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("")}},ev=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]}`},Oc=({files:e,onRemove:t,disabled:n})=>e.length===0?null:g.jsx(qy,{children:e.map((r,o)=>g.jsxs(Yy,{children:[g.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[g.jsx(Xy,{size:14,children:r.name}),g.jsx(nr,{size:12,children:ev(r.size)})]}),g.jsx(Zy,{type:"button",onClick:()=>t(o),"aria-label":`Remove ${r.name}`,disabled:n,children:g.jsx(Dc,{})})]},`${r.name}-${o}`))}),tv=({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:f="",className:h="",dropZoneContainerClassName:m="",size:y="md"})=>{const w=i!==void 0,[v,b]=p.useState(s||[]),x=w?i:v,T=n*1024*1024,{error:S,validateFiles:k,clearError:E}=Qy({maxFileSize:T,accept:r,multiple:t,onError:l}),M=(W,me)=>{if(!W||W.length===0)return;const O=Array.from(W);if(!k(O))return;const R=t?[...x,...O]:O;w||b(R),a?.(R,me)},L=W=>{const me=x[W],O=x.filter((R,j)=>j!==W);w||b(O),c?.(me,W),a?.(O),O.length===0&&E()},{isDragging:B,dragHandlers:G}=Jy(M,d),U=u||!!S,ne=f||S;return g.jsxs(Uy,{$size:y,className:h,children:[g.jsxs("label",{"aria-label":"File upload area",className:`p-4 ${m}`,children:[g.jsxs(Wy,{$variant:e,$isDragging:B,$hasError:U,$disabled:d,role:"button",tabIndex:d?-1:0,"aria-disabled":d,onKeyDown:W=>{(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),W.currentTarget.querySelector("input")?.click())},...G,children:[g.jsx(Y,{component:py,size:"lg",color:d?"var(--color-dark-200)":"var(--color-main-blue-primary)",className:"!text-[5rem]"}),g.jsxs(Ky,{$disabled:d,children:[g.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),o&&!U&&g.jsx(je,{size:14,color:"var(--color-main-grey)",children:o})]}),g.jsx("input",{type:"file",multiple:t,accept:r,disabled:d,onChange:W=>M(W.target.files,W.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),U&&ne&&g.jsx(ni,{size:"sm",children:ne}),g.jsx(Oc,{files:x,onRemove:L,disabled:d})]})},nv=$.div`
|
|
965
965
|
position: relative;
|
|
966
|
-
`,
|
|
966
|
+
`,rv=$.input`
|
|
967
967
|
position: absolute;
|
|
968
968
|
height: 1.5rem;
|
|
969
969
|
width: 1.5rem;
|
|
@@ -980,7 +980,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
980
980
|
outline-color: var(--color-main-orange-primary);
|
|
981
981
|
outline-offset: 2px;
|
|
982
982
|
}
|
|
983
|
-
`,
|
|
983
|
+
`,ov=$.div`
|
|
984
984
|
height: 1.5rem;
|
|
985
985
|
width: 1.5rem;
|
|
986
986
|
border: 2px solid;
|
|
@@ -999,34 +999,34 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
999
999
|
border-color: var(--color-main-orange-primary);
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
|
-
${({$hasError:e})=>e&&
|
|
1003
|
-
${({$disabled:e})=>e&&
|
|
1004
|
-
${({$checked:e})=>e&&
|
|
1005
|
-
`,
|
|
1002
|
+
${({$hasError:e})=>e&&xt}
|
|
1003
|
+
${({$disabled:e})=>e&&rt}
|
|
1004
|
+
${({$checked:e})=>e&&iv}
|
|
1005
|
+
`,iv=C`
|
|
1006
1006
|
background-color: var(--color-main-orange-primary);
|
|
1007
1007
|
border-color: var(--color-main-orange-primary);
|
|
1008
|
-
`,
|
|
1008
|
+
`,sv=$.svg`
|
|
1009
1009
|
height: 1.5rem;
|
|
1010
1010
|
width: 1.5rem;
|
|
1011
1011
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
|
|
1012
1012
|
fill: none;
|
|
1013
1013
|
stroke: currentColor;
|
|
1014
|
-
`,
|
|
1014
|
+
`,av=$.span`
|
|
1015
1015
|
display: block;
|
|
1016
1016
|
width: 60%;
|
|
1017
1017
|
height: 2px;
|
|
1018
1018
|
background-color: white;
|
|
1019
1019
|
border-radius: 1px;
|
|
1020
|
-
`,
|
|
1020
|
+
`,ii=p.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:i,checkboxClassName:s,...a},l)=>{const c=p.useId(),d=a.id??c,u=!!n,{size:f,...h}=a,m=p.useRef(null),y=p.useCallback(w=>{if(m.current=w,!!l)if(typeof l=="function")try{l(w)}catch{}else l.current=w},[l]);return p.useEffect(()=>{m.current&&(m.current.indeterminate=!!t)},[t]),g.jsxs(nv,{className:i,children:[g.jsx(rv,{ref:y,type:"checkbox",checked:u||!1,disabled:r,onChange:o,id:d,name:h.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":u?"true":"false",...h}),g.jsxs(ov,{$checked:!!u||!!t,$hasError:e,$disabled:r,className:s,children:[u&&!t&&g.jsx(sv,{$disabled:r,viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}),t&&g.jsx(av,{})]})]})});ii.displayName="CheckboxInput";const Bc=({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(or,{size:t,disabled:n,htmlFor:r,onClick:l,className:i,...a,children:e})},lv=$.section`
|
|
1021
1021
|
display: flex;
|
|
1022
1022
|
align-items: center;
|
|
1023
1023
|
justify-content: center;
|
|
1024
1024
|
gap: 1rem;
|
|
1025
|
-
`,
|
|
1025
|
+
`,lr=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},f)=>{const h=p.useId(),m=u.id??h;return g.jsxs(lv,{className:l,children:[g.jsx(ii,{ref:f,size:e,hasError:n,indeterminate:r,checked:o,disabled:i,onChange:s,checkboxClassName:c,id:m,...u}),t&&g.jsx(Bc,{size:e,disabled:i,htmlFor:m,onLabelClick:a,className:d,children:t})]})});lr.displayName="Checkbox";const cv=$.div`
|
|
1026
1026
|
position: relative;
|
|
1027
1027
|
display: inline-block;
|
|
1028
|
-
`,
|
|
1029
|
-
${
|
|
1028
|
+
`,uv=$.input`
|
|
1029
|
+
${bt}
|
|
1030
1030
|
text-align: center;
|
|
1031
1031
|
padding: 0;
|
|
1032
1032
|
|
|
@@ -1039,15 +1039,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1039
1039
|
&[type='number'] {
|
|
1040
1040
|
-moz-appearance: textfield;
|
|
1041
1041
|
}
|
|
1042
|
-
${({$size:e})=>
|
|
1043
|
-
${({$variant:e})=>e&&
|
|
1044
|
-
${({$hasError:e})=>e&&
|
|
1045
|
-
${({$disabled:e})=>e&&
|
|
1042
|
+
${({$size:e})=>fv[e]}
|
|
1043
|
+
${({$variant:e})=>e&&dv[e??"outlined"]}
|
|
1044
|
+
${({$hasError:e})=>e&&xt}
|
|
1045
|
+
${({$disabled:e})=>e&&rt}
|
|
1046
1046
|
|
|
1047
1047
|
&:focus {
|
|
1048
1048
|
border: 2px solid var(--color-main-blue-primary);
|
|
1049
1049
|
}
|
|
1050
|
-
`,
|
|
1050
|
+
`,dv={outlined:`
|
|
1051
1051
|
background-color: var(--color-main-white);
|
|
1052
1052
|
border: 2px solid var(--color-main-input-borders);
|
|
1053
1053
|
|
|
@@ -1066,28 +1066,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1066
1066
|
background-color: var(--color-main-white);
|
|
1067
1067
|
border: 2px solid var(--color-main-blue-primary);
|
|
1068
1068
|
}
|
|
1069
|
-
`},
|
|
1069
|
+
`},fv={sm:`
|
|
1070
1070
|
padding: 0.375rem;
|
|
1071
1071
|
width: 2.5rem;
|
|
1072
1072
|
height: 2.5rem;
|
|
1073
|
-
${
|
|
1073
|
+
${D[24]}
|
|
1074
1074
|
`,md:`
|
|
1075
1075
|
padding: 0.625rem;
|
|
1076
1076
|
width: 3rem;
|
|
1077
1077
|
height: 3.5rem;
|
|
1078
|
-
${
|
|
1078
|
+
${D[30]}
|
|
1079
1079
|
`,lg:`
|
|
1080
1080
|
padding: 0.75rem;
|
|
1081
1081
|
width: 3.5rem;
|
|
1082
1082
|
height: 4rem;
|
|
1083
|
-
${
|
|
1084
|
-
`},
|
|
1083
|
+
${D[40]}
|
|
1084
|
+
`},si=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(cv,{children:g.jsx(uv,{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})})});si.displayName="PinInput";const zc=(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 f=u.join("");a?.(f),c&&t<i-1&&o[t+1].current?.focus(),u.every(h=>h!=="")&&u.length>=d&&l?.(f)},Hc=(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()},jc=(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 w=t+y;if(w>=d)break;const v=c[y];s==="number"&&!/^\d$/.test(v)||(u[w]=v)}r(u),a?.(u.join(""));const f=u.findIndex(y=>y===""),h=f!==-1?Math.min(Math.max(f,t),d-1):d-1;o[h].current?.focus();const m=u.join("");u.every(y=>y!=="")&&u.length>=d&&l?.(m)},Gc=e=>Array(e).fill(null).map(()=>p.createRef()),hv=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),pv=$.div`
|
|
1085
1085
|
display: flex;
|
|
1086
1086
|
gap: 8px;
|
|
1087
1087
|
align-items: center;
|
|
1088
|
-
`,
|
|
1088
|
+
`,ai=({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(()=>Gc(e),[e]);return g.jsx(pv,{className:a,children:Array.from({length:e},(f,h)=>g.jsx(si,{className:l,size:t,variant:n,hasError:r,value:c[h],onChange:m=>zc(m,h,c,d,u,e,o,i,s),onKeyDown:m=>Hc(m,h,c,u,d,i),onPaste:m=>jc(m,h,c,d,u,e,o,i,s),ref:u[h]},h))})};ai.displayName="PinInputGroup";const mv=$.div`
|
|
1089
1089
|
position: relative;
|
|
1090
|
-
`,
|
|
1090
|
+
`,gv=$.input`
|
|
1091
1091
|
position: absolute;
|
|
1092
1092
|
height: 1.5rem;
|
|
1093
1093
|
width: 1.5rem;
|
|
@@ -1105,9 +1105,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1105
1105
|
outline-color: var(--color-main-orange-primary);
|
|
1106
1106
|
outline-offset: 2px;
|
|
1107
1107
|
}
|
|
1108
|
-
`,
|
|
1108
|
+
`,yv=C`
|
|
1109
1109
|
border-color: var(--color-main-orange-primary);
|
|
1110
|
-
`,
|
|
1110
|
+
`,vv=$.div`
|
|
1111
1111
|
height: 1.5rem;
|
|
1112
1112
|
width: 1.5rem;
|
|
1113
1113
|
border: 2px solid var(--color-main-input-borders);
|
|
@@ -1125,11 +1125,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1125
1125
|
border-color: var(--color-main-warning-state);
|
|
1126
1126
|
`}
|
|
1127
1127
|
${({$disabled:e})=>e&&`
|
|
1128
|
-
${
|
|
1128
|
+
${rt}
|
|
1129
1129
|
border: 2px solid var(--color-dark-200) !important;
|
|
1130
1130
|
`}
|
|
1131
|
-
${({$checked:e})=>e&&
|
|
1132
|
-
`,
|
|
1131
|
+
${({$checked:e})=>e&&yv}
|
|
1132
|
+
`,wv=$.span`
|
|
1133
1133
|
display: block;
|
|
1134
1134
|
height: 0.625rem;
|
|
1135
1135
|
width: 0.625rem;
|
|
@@ -1138,21 +1138,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1138
1138
|
background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
|
|
1139
1139
|
opacity: ${({$checked:e})=>e?1:0};
|
|
1140
1140
|
transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
|
|
1141
|
-
`,
|
|
1141
|
+
`,li=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,...f}=s;return g.jsxs(mv,{className:o,children:[g.jsx(gv,{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",...f}),g.jsx(vv,{$checked:!!d,$hasError:e,$disabled:n,className:i,children:g.jsx(wv,{$disabled:n,$checked:d})})]})});li.displayName="RadioInputDot";const ci=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...i})=>g.jsx(or,{className:n,htmlFor:t,size:o,disabled:r,...i,children:e});ci.displayName="RadioInputLabel";const bv=$.section`
|
|
1142
1142
|
display: flex;
|
|
1143
1143
|
align-items: center;
|
|
1144
1144
|
justify-content: center;
|
|
1145
1145
|
gap: 1rem;
|
|
1146
|
-
`,
|
|
1146
|
+
`,ui=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(),f=c.id??u;return g.jsxs(bv,{className:s,children:[g.jsx(li,{ref:d,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:f,...c}),t&&g.jsx(ci,{size:e,disabled:o,htmlFor:f,className:l,children:t})]})});ui.displayName="RadioInput";const xv=({name:e,required:t=!1,onChange:n,onOptionSelect:r,onRadioChange:o,onPinComplete:i,options:s=[]})=>{const[a,l,c]=Zu.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]),f=p.useMemo(()=>a.name||e,[a.name,e]),h=p.useMemo(()=>({required:t||void 0,"aria-required":t||void 0,"aria-invalid":d||void 0,"aria-describedby":d?`${f}-error`:void 0}),[t,d,f]),m=p.useCallback(S=>{n?n(S):a.onChange(S)},[n,a]),y=p.useCallback(S=>{n?n(S):a.onChange(S)},[n,a]),w=p.useCallback(S=>{c.setValue(S.target.checked)},[c]),v=p.useCallback(S=>{a.onChange(S);const k=s.find(E=>String(E.value)===S.target.value);k&&r?.(k)},[a,s,r]),b=p.useCallback((S,k)=>{const E=S.target.value,M=typeof k=="number"?Number(E):E;c.setValue(M),o?.(S)},[c,o]),x=p.useCallback(S=>{c.setValue(S)},[c]),T=p.useCallback(S=>{c.setValue(S),i?.(S)},[c,i]);return{field:a,meta:l,helpers:c,hasError:d,errorMessage:u,inputId:f,ariaProps:h,handleStandardChange:m,handleTextAreaChange:y,handleCheckboxChange:w,handleSelectChange:v,handleRadioChange:b,handlePinChange:x,handlePinComplete:T}},Sv=["text","email","number","tel","url","date","datetime-local","time"],Cv=$.div`
|
|
1147
1147
|
display: flex;
|
|
1148
1148
|
flex-direction: column;
|
|
1149
1149
|
gap: 0.75rem;
|
|
1150
|
-
`,
|
|
1150
|
+
`,Uc=({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:f,onCheckboxChange:h,radioName:m,onRadioChange:y,pinLength:w=6,pinType:v="number",onPinChange:b,onPinComplete:x,onStandardChange:T,onTextAreaChange:S,leftIcon:k,rightIcon:E,iconSize:M,iconColor:L,additionalProps:B={}})=>{switch(e){case"textarea":return g.jsx(oi,{id:t,name:n,className:a,hasError:o,disabled:i,value:l??"",size:r,placeholder:s,onChange:S,...B,...c});case"select":return g.jsx(ar,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,value:l??"",onChange:u,options:d,placeholder:s||"Selecciona una opción",...B,...c});case"checkbox":return g.jsx(lr,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,checked:!!l,label:f,onChange:h,...B,...c});case"radio":{const G=d;return g.jsx(Cv,{children:G.map(U=>g.jsx(ui,{name:m||n,value:U.value,label:U.label,size:r,hasError:o,disabled:i,checked:l===U.value,onChange:ne=>y?.(ne,U.value),...c},U.value))})}case"pin":return g.jsx(ai,{length:w,type:v,size:r,hasError:o,onChange:b,onComplete:x,...B,...c});case"password":{const{...G}=B;return g.jsx(Ic,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,leftIcon:k,iconSize:M,iconColor:L,onChange:T,...G,...c})}case"search":return g.jsx(Nc,{className:a,size:r,placeholder:s,leftIcon:k,rightIcon:E,iconSize:M,iconColor:L,onSearch:B.onSearch,...c});default:return g.jsx(ri,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,type:Sv.includes(e)?e:"text",leftIcon:k,rightIcon:E,iconSize:M,iconColor:L,value:l??"",onChange:T,...B,...c})}};Uc.displayName="FieldRenderer";const Tv=$.div`
|
|
1151
1151
|
display: flex;
|
|
1152
1152
|
flex-direction: column;
|
|
1153
1153
|
gap: 0.5rem;
|
|
1154
1154
|
width: 100%;
|
|
1155
|
-
|
|
1155
|
+
`,$v=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(Tv,{className:l,children:[t&&!a&&g.jsx(or,{htmlFor:e,size:n,required:r,disabled:o,className:c,children:t}),u,i&&s&&g.jsx(ni,{id:`${e}-error`,size:n,className:d,children:s})]})),Pv=({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:f="number",rows:h=4,className:m,inputClassName:y,labelClassName:w,messageErrorClassName:v,leftIcon:b,rightIcon:x,iconSize:T,iconColor:S,onOptionSelect:k,onRadioChange:E,onPinComplete:M,onChange:L,...B})=>{const{field:G,hasError:U,errorMessage:ne,inputId:W,ariaProps:me,handleStandardChange:O,handleTextAreaChange:R,handleCheckboxChange:j,handleSelectChange:K,handleRadioChange:X,handlePinChange:de,handlePinComplete:se}=xv({name:t,required:a,onChange:L,onOptionSelect:k,onRadioChange:E,onPinComplete:M,options:l}),N=e?.toString?.()||W;return g.jsx($v,{inputId:N,label:n,size:o,required:a,disabled:s,hasError:U,errorMessage:ne,isCheckbox:r==="checkbox",className:m,labelClassName:w,messageErrorClassName:v,children:g.jsx(Uc,{type:r,inputId:N,name:t,size:o,hasError:U,disabled:s,placeholder:i,inputClassName:y,fieldValue:G.value,ariaProps:me,options:l,onSelectChange:K,checkboxLabel:c,onCheckboxChange:j,radioName:d,onRadioChange:X,pinLength:u,pinType:f,rows:h,onPinChange:de,onPinComplete:se,onStandardChange:O,onTextAreaChange:R,leftIcon:b,rightIcon:x,iconSize:T,iconColor:S,additionalProps:B})})},Wc={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},di={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},kv={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"}}},Kc={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"}},Ev=$(Ke.div)`
|
|
1156
1156
|
position: fixed;
|
|
1157
1157
|
inset: 0;
|
|
1158
1158
|
z-index: 50;
|
|
@@ -1166,7 +1166,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1166
1166
|
@media (max-width: 768px) {
|
|
1167
1167
|
padding: 0.5rem;
|
|
1168
1168
|
}
|
|
1169
|
-
`,
|
|
1169
|
+
`,Mv=$(Ke.div)`
|
|
1170
1170
|
position: relative;
|
|
1171
1171
|
display: flex;
|
|
1172
1172
|
flex-direction: column;
|
|
@@ -1193,7 +1193,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1193
1193
|
outline: none;
|
|
1194
1194
|
box-shadow: var(--shadow-hover-black-card);
|
|
1195
1195
|
}
|
|
1196
|
-
`,
|
|
1196
|
+
`,Dv=$.button`
|
|
1197
1197
|
position: absolute;
|
|
1198
1198
|
top: 1rem;
|
|
1199
1199
|
right: 1rem;
|
|
@@ -1212,7 +1212,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1212
1212
|
transform: scale(1.1);
|
|
1213
1213
|
outline: none;
|
|
1214
1214
|
}
|
|
1215
|
-
`,
|
|
1215
|
+
`,Av=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],f=document.activeElement;!l.shiftKey&&f===u?(l.preventDefault(),d.focus()):l.shiftKey&&f===d&&(l.preventDefault(),u.focus())};return document.addEventListener("keydown",a),()=>{window.clearTimeout(i),document.removeEventListener("keydown",a),n.current&&n.current.focus()}},[e]),t},Vv=(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])},Iv=e=>{p.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])},qc=({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 f=Av(e);Vv(e,t,l),Iv(e);const h=y=>{o&&y.target===y.currentTarget&&t()},m=g.jsx(sn,{children:e&&g.jsx(Ev,{...di,onClick:h,children:g.jsxs(Mv,{...Wc,ref:f,$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(Dv,{className:`${sr} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:g.jsx(Y,{component:Dc,size:"sm"})}),n]})})});return typeof document>"u"?m:Ni.createPortal(m,document.body)},Rv=$.div`
|
|
1216
1216
|
display: flex;
|
|
1217
1217
|
align-items: center;
|
|
1218
1218
|
justify-content: space-between;
|
|
@@ -1245,7 +1245,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1245
1245
|
flex-shrink: 0;
|
|
1246
1246
|
margin-left: auto;
|
|
1247
1247
|
}
|
|
1248
|
-
`,
|
|
1248
|
+
`,Yc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>g.jsx(Rv,{$showDivider:e,$variant:t,className:r,...o,children:n}),Lv=$.div`
|
|
1249
1249
|
position: relative;
|
|
1250
1250
|
display: flex;
|
|
1251
1251
|
flex-direction: column;
|
|
@@ -1258,7 +1258,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1258
1258
|
${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
|
|
1259
1259
|
|
|
1260
1260
|
${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
|
|
1261
|
-
`,
|
|
1261
|
+
`,Xc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...i})=>g.jsx(Lv,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...i,children:e}),Fv=$.div`
|
|
1262
1262
|
display: flex;
|
|
1263
1263
|
align-items: center;
|
|
1264
1264
|
width: 100%;
|
|
@@ -1274,13 +1274,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1274
1274
|
bottom: 0;
|
|
1275
1275
|
background: var(--color-main-white);
|
|
1276
1276
|
`}
|
|
1277
|
-
`,
|
|
1277
|
+
`,Zc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>g.jsx(Fv,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),_v=({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:f=!0,closeOnBackdropClick:h=!1,containerClassName:m,headerClassName:y,bodyClassName:w,footerClassName:v,initiallyConfirmed:b=!1,onConfirmChange:x})=>{const[T,S]=p.useState(b);p.useEffect(()=>{e||S(b)},[e,b]);const k=E=>{S(E),x?.(E)};return g.jsxs(qc,{isOpen:e,onClose:n,size:d,fullScreen:u,showCloseButton:f,closeOnBackdropClick:h,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${m} !h-fit !max-w-[60rem]`,children:[g.jsx(Yc,{showDivider:!0,className:y,children:g.jsx(Es,{id:"tac-title",size:20,children:r})}),g.jsxs(Xc,{padded:!0,showBottomDivider:!0,className:w,children:[o&&g.jsx(je,{id:"tac-subtitle",size:16,children:o}),i,s]}),g.jsxs(Zc,{showDivider:!0,align:"space-between",className:v,children:[g.jsx(lr,{label:a,checked:T,onChange:E=>k(E.target.checked)}),g.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[g.jsx(ei,{variant:"secondary",onClick:n,children:c}),g.jsx(ei,{variant:"primary",onClick:t,disabled:!T,children:l})]})]})]})},fi=p.createContext(void 0),Jc=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(!1);return g.jsx(fi.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},hi=()=>{const e=p.useContext(fi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},pi=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),Nv=C`
|
|
1278
1278
|
display: flex;
|
|
1279
1279
|
align-items: center;
|
|
1280
1280
|
justify-content: center;
|
|
1281
1281
|
flex-shrink: 0;
|
|
1282
1282
|
user-select: none;
|
|
1283
|
-
`,
|
|
1283
|
+
`,Qc=`
|
|
1284
1284
|
width: 100%;
|
|
1285
1285
|
display: flex;
|
|
1286
1286
|
align-items: center;
|
|
@@ -1297,8 +1297,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1297
1297
|
outline-color: var(--color-main-blue-primary);
|
|
1298
1298
|
outline-offset: -2px;
|
|
1299
1299
|
}
|
|
1300
|
-
`,
|
|
1301
|
-
${
|
|
1300
|
+
`,Ov=$.button`
|
|
1301
|
+
${Qc}
|
|
1302
1302
|
|
|
1303
1303
|
// Level-based padding
|
|
1304
1304
|
padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
|
|
@@ -1317,8 +1317,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1317
1317
|
}
|
|
1318
1318
|
|
|
1319
1319
|
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1320
|
-
`,
|
|
1321
|
-
${
|
|
1320
|
+
`,Bv=$.button`
|
|
1321
|
+
${Qc}
|
|
1322
1322
|
|
|
1323
1323
|
// Level-based padding
|
|
1324
1324
|
padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
|
|
@@ -1337,36 +1337,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1337
1337
|
}
|
|
1338
1338
|
|
|
1339
1339
|
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1340
|
-
`,
|
|
1340
|
+
`,zv=$.span`
|
|
1341
1341
|
display: inline-flex;
|
|
1342
1342
|
align-items: center;
|
|
1343
1343
|
gap: 0.75rem;
|
|
1344
1344
|
min-width: 0;
|
|
1345
|
-
`,
|
|
1345
|
+
`,Hv=$(je)`
|
|
1346
1346
|
font-weight: ${({$level:e})=>e===0?600:500};
|
|
1347
1347
|
color: var(--color-main-blue-primary);
|
|
1348
1348
|
white-space: nowrap;
|
|
1349
1349
|
overflow: hidden;
|
|
1350
1350
|
text-overflow: ellipsis;
|
|
1351
|
-
`,
|
|
1351
|
+
`,jv=$(Ke.div)`
|
|
1352
1352
|
background-color: transparent;
|
|
1353
1353
|
overflow: hidden;
|
|
1354
1354
|
will-change: height, opacity, transform;
|
|
1355
|
-
`,
|
|
1355
|
+
`,Gv=$.div`
|
|
1356
1356
|
width: 100%;
|
|
1357
1357
|
${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
|
|
1358
|
-
`,
|
|
1358
|
+
`,Uv=$.span`
|
|
1359
1359
|
width: 0.625rem;
|
|
1360
1360
|
height: 0.125rem;
|
|
1361
1361
|
background: var(--color-main-blue-primary);
|
|
1362
1362
|
border-radius: 1px;
|
|
1363
1363
|
flex: 0 0 auto;
|
|
1364
|
-
`,
|
|
1365
|
-
${
|
|
1364
|
+
`,Wv=$.div`
|
|
1365
|
+
${Nv}
|
|
1366
1366
|
transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
|
|
1367
1367
|
pointer-events: none;
|
|
1368
1368
|
transition: transform 0.3s ease-out;
|
|
1369
|
-
`,
|
|
1369
|
+
`,eu=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[i,s]=p.useState(!1),{isCollapsed:a,setIsMobileOpen:l}=hi(),c=p.useMemo(()=>(e.children||[]).filter(b=>pi(t,b.permissions)),[e.children,t]);if(!p.useMemo(()=>pi(t,e.permissions),[t,e.permissions]))return null;const u=c.length>0,f=e.href||e.path||"",h=!!(f&&r&&r.startsWith(f)),m=()=>{s(b=>!b)},y=()=>{e.href&&o?.(e.href)},w=async()=>{if(e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),l&&l(!1)}catch(b){console.error("Error al navegar a microservicio:",b)}},v=()=>g.jsxs(g.Fragment,{children:[g.jsxs(zv,{children:[n>0&&!a&&g.jsx(Uv,{}),e.icon&&g.jsx(Y,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&g.jsx(Hv,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&u&&g.jsx(Wv,{$disabled:a,$open:i,children:g.jsx(Y,{component:iy,size:"sm",color:"var(--color-main-blue-primary)"})})]});return g.jsxs(Gv,{$level:n,children:[e.href&&!e.path&&!u?g.jsx(Ov,{type:"button",onClick:y,$level:n,$collapsed:a,$active:h,title:a?e.label:"",children:v()}):g.jsx(Bv,{type:"button",onClick:u?m:e.path?w:y,$level:n,$collapsed:a,$active:h,$expanded:i&&u,title:a?e.label:"",children:v()}),g.jsx(sn,{initial:!1,children:!a&&i&&u&&g.jsx(jv,{$level:n+1,...Kc,children:c.map(b=>g.jsx(eu,{item:b,userRoles:t,level:n+1,onNavigate:o,activePath:r},b.id))})})]})},tu=$(Ke.div)`
|
|
1370
1370
|
position: fixed;
|
|
1371
1371
|
inset: 0;
|
|
1372
1372
|
background: rgba(0, 0, 0, 0.5);
|
|
@@ -1375,7 +1375,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1375
1375
|
@media (max-width: 767px) {
|
|
1376
1376
|
display: block;
|
|
1377
1377
|
}
|
|
1378
|
-
`,
|
|
1378
|
+
`,nu=$.aside`
|
|
1379
1379
|
position: fixed;
|
|
1380
1380
|
left: 0;
|
|
1381
1381
|
top: 0;
|
|
@@ -1394,7 +1394,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1394
1394
|
@media (min-width: 768px) {
|
|
1395
1395
|
transform: translateX(0);
|
|
1396
1396
|
}
|
|
1397
|
-
`,
|
|
1397
|
+
`,ru=$.div`
|
|
1398
1398
|
display: flex;
|
|
1399
1399
|
align-items: center;
|
|
1400
1400
|
justify-content: space-between;
|
|
@@ -1402,11 +1402,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1402
1402
|
padding: 1rem;
|
|
1403
1403
|
|
|
1404
1404
|
${({$collapsed:e})=>e?"flex-direction: column":""};
|
|
1405
|
-
|
|
1405
|
+
`,ou=$.div`
|
|
1406
1406
|
display: flex;
|
|
1407
1407
|
align-items: center;
|
|
1408
1408
|
gap: 0.5rem;
|
|
1409
|
-
`,
|
|
1409
|
+
`,iu=$.nav`
|
|
1410
1410
|
display: flex;
|
|
1411
1411
|
flex-direction: column;
|
|
1412
1412
|
justify-content: flex-start;
|
|
@@ -1414,7 +1414,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1414
1414
|
flex: 1;
|
|
1415
1415
|
overflow-y: auto;
|
|
1416
1416
|
padding: 0.25rem 0;
|
|
1417
|
-
`,
|
|
1417
|
+
`,su=$.button`
|
|
1418
1418
|
display: flex;
|
|
1419
1419
|
align-items: center;
|
|
1420
1420
|
justify-content: center;
|
|
@@ -1440,7 +1440,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1440
1440
|
@media (max-width: 767px) {
|
|
1441
1441
|
display: none;
|
|
1442
1442
|
}
|
|
1443
|
-
`,
|
|
1443
|
+
`,au=$.button`
|
|
1444
1444
|
position: fixed;
|
|
1445
1445
|
top: 0.5rem;
|
|
1446
1446
|
left: 1rem;
|
|
@@ -1451,7 +1451,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1451
1451
|
@media (min-width: 768px) {
|
|
1452
1452
|
display: none;
|
|
1453
1453
|
}
|
|
1454
|
-
`,
|
|
1454
|
+
`,mi=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:i=()=>{}})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:c}=hi(),d=u=>{i(u),typeof window<"u"&&window.innerWidth<768&&c(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(sn,{children:l&&g.jsx(tu,{...di,onClick:()=>c(!1)})}),g.jsxs(nu,{$collapsed:l?!1:s,$open:l,children:[g.jsxs(ru,{$collapsed:s,children:[g.jsx(ou,{children:s?o:r}),g.jsx(su,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:g.jsx(Y,{component:Ac,size:"md",color:"var(--color-main-blue-primary)"})})]}),g.jsx(iu,{children:e.map(u=>g.jsx(eu,{item:u,userRoles:t,onNavigate:d,activePath:n},u.id))})]}),g.jsx(au,{onClick:()=>{c(!0),a(!1)},$hidden:l,children:g.jsx(Y,{component:Ac,size:30})})]})};mi.displayName="Sidebar";const lu={underlined:C`
|
|
1455
1455
|
color: var(--color-main-orange-primary);
|
|
1456
1456
|
text-decoration-thickness: 1px;
|
|
1457
1457
|
text-underline-offset: 2px;
|
|
@@ -1481,7 +1481,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1481
1481
|
text-decoration-thickness: 1px;
|
|
1482
1482
|
text-underline-offset: 2px;
|
|
1483
1483
|
}
|
|
1484
|
-
`,plain:
|
|
1484
|
+
`,plain:C`
|
|
1485
1485
|
color: var(--color-main-orange-primary);
|
|
1486
1486
|
text-decoration: none;
|
|
1487
1487
|
|
|
@@ -1511,7 +1511,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1511
1511
|
text-decoration-thickness: 1px;
|
|
1512
1512
|
text-underline-offset: 2px;
|
|
1513
1513
|
}
|
|
1514
|
-
`},
|
|
1514
|
+
`},cu=C`
|
|
1515
1515
|
color: var(--color-dark-200);
|
|
1516
1516
|
cursor: not-allowed;
|
|
1517
1517
|
pointer-events: none;
|
|
@@ -1529,16 +1529,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1529
1529
|
text-decoration: none;
|
|
1530
1530
|
transform: none;
|
|
1531
1531
|
}
|
|
1532
|
-
`,
|
|
1532
|
+
`,uu={sm:C`
|
|
1533
1533
|
gap: 0.25rem;
|
|
1534
|
-
${
|
|
1535
|
-
`,md:
|
|
1534
|
+
${D[14]}
|
|
1535
|
+
`,md:C`
|
|
1536
1536
|
gap: 0.5rem;
|
|
1537
|
-
${
|
|
1538
|
-
`,lg:
|
|
1537
|
+
${D[16]}
|
|
1538
|
+
`,lg:C`
|
|
1539
1539
|
gap: 0.75rem;
|
|
1540
|
-
${
|
|
1541
|
-
`},
|
|
1540
|
+
${D[20]}
|
|
1541
|
+
`},Kv=$.a`
|
|
1542
1542
|
display: inline-flex;
|
|
1543
1543
|
align-items: center;
|
|
1544
1544
|
border-radius: 0.25rem;
|
|
@@ -1550,19 +1550,53 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1550
1550
|
|
|
1551
1551
|
cursor: pointer;
|
|
1552
1552
|
|
|
1553
|
-
${({$size:e})=>
|
|
1554
|
-
${({$variant:e})=>
|
|
1555
|
-
${({$disabled:e})=>e&&
|
|
1556
|
-
`,
|
|
1553
|
+
${({$size:e})=>uu[e]}
|
|
1554
|
+
${({$variant:e})=>lu[e]}
|
|
1555
|
+
${({$disabled:e})=>e&&cu}
|
|
1556
|
+
`,qv=$.span`
|
|
1557
1557
|
flex: 1 1 auto;
|
|
1558
1558
|
min-width: 0;
|
|
1559
1559
|
max-width: 18ch;
|
|
1560
|
-
${({$truncate:e})=>e&&
|
|
1560
|
+
${({$truncate:e})=>e&&C`
|
|
1561
1561
|
overflow: hidden;
|
|
1562
1562
|
text-overflow: ellipsis;
|
|
1563
1563
|
white-space: nowrap;
|
|
1564
1564
|
`}
|
|
1565
|
-
`,
|
|
1565
|
+
`,du=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:f="tn",iconColor:h="currentColor",truncate:m=!1,"aria-label":y,"aria-describedby":w,onClick:v,...b},x)=>{const T=p.useCallback(k=>{if(l){k.preventDefault();return}v?.(k)},[l,v]),S={href:l?void 0:o,target:i||void 0,rel:s??(i==="_blank"?"noopener noreferrer":void 0),onClick:T,"aria-label":y??r,"aria-describedby":w,"aria-disabled":l,tabIndex:l?-1:c??0,...b};return g.jsxs(Kv,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:x,...S,children:[d&&g.jsx(Y,{component:d,size:f,color:h}),g.jsx(qv,{$truncate:m,children:r}),g.jsx(Y,{component:u||ly,size:t==="lg"?"sm":f,color:h})]})});du.displayName="Link";/**
|
|
1566
|
+
* table-core
|
|
1567
|
+
*
|
|
1568
|
+
* Copyright (c) TanStack
|
|
1569
|
+
*
|
|
1570
|
+
* This source code is licensed under the MIT license found in the
|
|
1571
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
1572
|
+
*
|
|
1573
|
+
* @license MIT
|
|
1574
|
+
*/function Yv(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function ot(e,t){return typeof e=="function"?e(t):e}function Ce(e,t){return n=>{t.setState(r=>({...r,[e]:ot(n,r[e])}))}}function cr(e){return e instanceof Function}function Xv(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Zv(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 V(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,f=u/16,h=(m,y)=>{for(m=String(m);m.length<y;)m=" "+m;return m};console.info(`%c⏱ ${h(u,5)} /${h(d,5)} ms`,`
|
|
1575
|
+
font-size: .6rem;
|
|
1576
|
+
font-weight: bold;
|
|
1577
|
+
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n?.key)}return o}}function I(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 Jv(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:V(()=>[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 Qv(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=f=>{let h=f;for(const y of l.split(".")){var m;h=(m=h)==null?void 0:m[y],process.env.NODE_ENV!=="production"&&h===void 0&&console.warn(`"${y}" in deeply nested key "${l}" returned undefined.`)}return h}:d=f=>f[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:V(()=>[!0],()=>{var f;return[u,...(f=u.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},I(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:V(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=u.columns)!=null&&h.length){let m=u.columns.flatMap(y=>y.getLeafColumns());return f(m)}return[u]},I(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.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 e1={createTable:e=>{e.getHeaderGroups=V(()=>[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(f=>f.id===u)).filter(Boolean))!=null?i:[],l=(s=o?.map(u=>n.find(f=>f.id===u)).filter(Boolean))!=null?s:[],c=n.filter(u=>!(r!=null&&r.includes(u.id))&&!(o!=null&&o.includes(u.id)));return ur(t,[...a,...c,...l],e)},I(e.options,pe,"getHeaderGroups")),e.getCenterHeaderGroups=V(()=>[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))),ur(t,n,e,"center")),I(e.options,pe,"getCenterHeaderGroups")),e.getLeftHeaderGroups=V(()=>[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 ur(t,i,e,"left")},I(e.options,pe,"getLeftHeaderGroups")),e.getRightHeaderGroups=V(()=>[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 ur(t,i,e,"right")},I(e.options,pe,"getRightHeaderGroups")),e.getFooterGroups=V(()=>[e.getHeaderGroups()],t=>[...t].reverse(),I(e.options,pe,"getFooterGroups")),e.getLeftFooterGroups=V(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),I(e.options,pe,"getLeftFooterGroups")),e.getCenterFooterGroups=V(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),I(e.options,pe,"getCenterFooterGroups")),e.getRightFooterGroups=V(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),I(e.options,pe,"getRightFooterGroups")),e.getFlatHeaders=V(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,pe,"getFlatHeaders")),e.getLeftFlatHeaders=V(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,pe,"getLeftFlatHeaders")),e.getCenterFlatHeaders=V(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,pe,"getCenterFlatHeaders")),e.getRightFlatHeaders=V(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,pe,"getRightFlatHeaders")),e.getCenterLeafHeaders=V(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),I(e.options,pe,"getCenterLeafHeaders")),e.getLeftLeafHeaders=V(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),I(e.options,pe,"getLeftLeafHeaders")),e.getRightLeafHeaders=V(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),I(e.options,pe,"getRightLeafHeaders")),e.getLeafHeaders=V(()=>[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()},I(e.options,pe,"getLeafHeaders"))}};function ur(e,t,n,r){var o,i;let s=0;const a=function(f,h){h===void 0&&(h=1),s=Math.max(s,h),f.filter(m=>m.getIsVisible()).forEach(m=>{var y;(y=m.columns)!=null&&y.length&&a(m.columns,h+1)},0)};a(e);let l=[];const c=(f,h)=>{const m={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},y=[];f.forEach(w=>{const v=[...y].reverse()[0],b=w.column.depth===m.depth;let x,T=!1;if(b&&w.column.parent?x=w.column.parent:(x=w.column,T=!0),v&&v?.column===x)v.subHeaders.push(w);else{const S=fu(n,x,{id:[r,h,x.id,w?.id].filter(Boolean).join("_"),isPlaceholder:T,placeholderId:T?`${y.filter(k=>k.column===x).length}`:void 0,depth:h,index:y.length});S.subHeaders.push(w),y.push(S)}m.headers.push(w),w.headerGroup=m}),l.push(m),h>0&&c(y,h-1)},d=t.map((f,h)=>fu(n,f,{depth:s,index:h}));c(d,s-1),l.reverse();const u=f=>f.filter(m=>m.column.getIsVisible()).map(m=>{let y=0,w=0,v=[0];m.subHeaders&&m.subHeaders.length?(v=[],u(m.subHeaders).forEach(x=>{let{colSpan:T,rowSpan:S}=x;y+=T,v.push(S)})):y=1;const b=Math.min(...v);return w=w+b,m.colSpan=y,m.rowSpan=w,{colSpan:y,rowSpan:w}});return u((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const t1=(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:()=>Zv(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:V(()=>[e.getAllLeafColumns()],l=>l.map(c=>Jv(e,a,c,c.id)),I(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:V(()=>[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},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()}}},hu=(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))};hu.autoRemove=e=>Le(e);const pu=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};pu.autoRemove=e=>Le(e);const mu=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};mu.autoRemove=e=>Le(e);const gu=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};gu.autoRemove=e=>Le(e);const yu=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});yu.autoRemove=e=>Le(e)||!(e!=null&&e.length);const vu=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});vu.autoRemove=e=>Le(e)||!(e!=null&&e.length);const wu=(e,t,n)=>e.getValue(t)===n;wu.autoRemove=e=>Le(e);const bu=(e,t,n)=>e.getValue(t)==n;bu.autoRemove=e=>Le(e);const gi=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};gi.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]},gi.autoRemove=e=>Le(e)||Le(e[0])&&Le(e[1]);const qe={includesString:hu,includesStringSensitive:pu,equalsString:mu,arrIncludes:gu,arrIncludesAll:yu,arrIncludesSome:vu,equals:wu,weakEquals:bu,inNumberRange:gi};function Le(e){return e==null||e===""}const r1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ce("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"?qe.includesString:typeof r=="number"?qe.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?qe.equals:Array.isArray(r)?qe.arrIncludes:qe.weakEquals},e.getFilterFn=()=>{var n,r;return cr(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:qe[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=ot(n,i?i.value:void 0);if(xu(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=ot(t,o))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(xu(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 xu(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const yi={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(!Xv(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},o1={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:Ce("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 yi.sum;if(Object.prototype.toString.call(r)==="[object Date]")return yi.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return cr(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:yi[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 i1(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 s1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ce("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=V(n=>[gn(t,n)],n=>n.findIndex(r=>r.id===e.id),I(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=gn(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=gn(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=V(()=>[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 i1(i,n,r)},I(e.options,"debugTable","_getOrderColumnsFn"))}},vi=()=>({left:[],right:[]}),a1={getInitialState:e=>({columnPinning:vi(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ce("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=V(()=>[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))},I(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=V(()=>[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"})),I(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=V(()=>[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"})),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,r;return e.setColumnPinning(t?vi():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:vi())},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=V(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),I(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=V(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),I(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=V(()=>[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))},I(e.options,"debugColumns","getCenterLeafColumns"))}};function l1(e){return e||(typeof document<"u"?document:null)}const dr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},wi=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),c1={getDefaultColumnDef:()=>dr,getInitialState:e=>({columnSizing:{},columnSizingInfo:wi(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ce("columnSizing",e),onColumnSizingInfoChange:Ce("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:dr.minSize,(r=i??e.columnDef.size)!=null?r:dr.size),(o=e.columnDef.maxSize)!=null?o:dr.maxSize)},e.getStart=V(n=>[n,gn(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),I(t.options,"debugColumns","getStart")),e.getAfter=V(n=>[n,gn(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),I(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(),bi(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=bi(i)?Math.round(i.touches[0].clientX):i.clientX,c={},d=(v,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(x=>{var T,S;const k=t.options.columnResizeDirection==="rtl"?-1:1,E=(b-((T=x?.startOffset)!=null?T:0))*k,M=Math.max(E/((S=x?.startSize)!=null?S:0),-.999999);return x.columnSizingStart.forEach(L=>{let[B,G]=L;c[B]=Math.round(Math.max(G+G*M,0)*100)/100}),{...x,deltaOffset:E,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(x=>({...x,...c})))},u=v=>d("move",v),f=v=>{d("end",v),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=l1(n),m={moveHandler:v=>u(v.clientX),upHandler:v=>{h?.removeEventListener("mousemove",m.moveHandler),h?.removeEventListener("mouseup",m.upHandler),f(v.clientX)}},y={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),u(v.touches[0].clientX),!1),upHandler:v=>{var b;h?.removeEventListener("touchmove",y.moveHandler),h?.removeEventListener("touchend",y.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),f((b=v.touches[0])==null?void 0:b.clientX)}},w=u1()?{passive:!1}:!1;bi(i)?(h?.addEventListener("touchmove",y.moveHandler,w),h?.addEventListener("touchend",y.upHandler,w)):(h?.addEventListener("mousemove",m.moveHandler,w),h?.addEventListener("mouseup",m.upHandler,w)),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?wi():(n=e.initialState.columnSizingInfo)!=null?n:wi())},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 fr=null;function u1(){if(typeof fr=="boolean")return fr;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 fr=e,fr}function bi(e){return e.type==="touchstart"}const d1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ce("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=V(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),I(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=V(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],I(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>V(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.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 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 gn(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const f1={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()}}},h1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ce("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=()=>qe.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return cr(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:qe[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},p1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ce("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()}}}},xi=0,Si=10,Ci=()=>({pageIndex:xi,pageSize:Si}),m1={getInitialState:e=>({...e,pagination:{...Ci(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ce("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=>ot(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Ci():(o=e.initialState.pagination)!=null?o:Ci())},e.setPageIndex=r=>{e.setPagination(o=>{let i=ot(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?xi:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:xi)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?Si:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Si)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,ot(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=ot(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=V(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},I(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}}},Ti=()=>({top:[],bottom:[]}),g1={getInitialState:e=>({rowPinning:Ti(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ce("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,f;return{top:((u=l?.top)!=null?u:[]).filter(y=>!(a!=null&&a.has(y))),bottom:[...((f=l?.bottom)!=null?f:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)]}}if(n==="top"){var h,m;return{top:[...((h=l?.top)!=null?h:[]).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?Ti():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Ti())},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=V(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),I(e.options,"debugRows","getTopRows")),e.getBottomRows=V(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),I(e.options,"debugRows","getBottomRows")),e.getCenterRows=V(()=>[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))},I(e.options,"debugRows","getCenterRows"))}},y1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ce("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=>{$i(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=V(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Pi(e,n):{rows:[],flatRows:[],rowsById:{}},I(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=V(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Pi(e,n):{rows:[],flatRows:[],rowsById:{}},I(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=V(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Pi(e,n):{rows:[],flatRows:[],rowsById:{}},I(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 $i(a,e.id,n,(s=r?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return ki(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ei(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ei(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)}}}},$i=(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=>$i(e,a.id,n,r,o))};function Pi(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,a){return s.map(l=>{var c;const d=ki(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 ki(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ei(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()&&(ki(s,t)?i=!0:o=!1),s.subRows&&s.subRows.length)){const a=Ei(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Mi=/([0-9]+)/gm,v1=(e,t,n)=>Su(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),w1=(e,t,n)=>Su(it(e.getValue(n)),it(t.getValue(n))),b1=(e,t,n)=>Di(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),x1=(e,t,n)=>Di(it(e.getValue(n)),it(t.getValue(n))),S1=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},C1=(e,t,n)=>Di(e.getValue(n),t.getValue(n));function Di(e,t){return e===t?0:e>t?1:-1}function it(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Su(e,t){const n=e.split(Mi).filter(Boolean),r=t.split(Mi).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 yn={alphanumeric:v1,alphanumericCaseSensitive:w1,text:b1,textCaseSensitive:x1,datetime:S1,basic:C1},T1=[e1,d1,s1,a1,n1,r1,f1,h1,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ce("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 yn.datetime;if(typeof i=="string"&&(r=!0,i.split(Mi).length>1))return yn.alphanumeric}return r?yn.text:yn.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 cr(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:yn[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(h=>h.id===e.id),l=s?.findIndex(h=>h.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 f;c=[...s,{id:e.id,desc:u}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=s.map(h=>h.id===e.id?{...h,desc:u}:h):d==="remove"?c=s.filter(h=>h.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())}},o1,p1,m1,g1,y1,c1];function $1(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...T1,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((f,h)=>Object.assign(f,h.getDefaultOptions==null?void 0:h.getDefaultOptions(o)),{}),s=f=>o.options.mergeOptions?o.options.mergeOptions(i,f):{...i,...f};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(f=>{var h;l=(h=f.getInitialState==null?void 0:f.getInitialState(l))!=null?h:l});const c=[];let d=!1;const u={_features:r,options:{...i,...e},initialState:l,_queue:f=>{c.push(f),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{o.setState(o.initialState)},setOptions:f=>{const h=ot(f,o.options);o.options=s(h)},getState:()=>o.options.state,setState:f=>{o.options.onStateChange==null||o.options.onStateChange(f)},_getRowId:(f,h,m)=>{var y;return(y=o.options.getRowId==null?void 0:o.options.getRowId(f,h,m))!=null?y:`${m?[m.id,h].join("."):h}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(f,h)=>{let m=(h?o.getPrePaginationRowModel():o.getRowModel()).rowsById[f];if(!m&&(m=o.getCoreRowModel().rowsById[f],!m))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return m},_getDefaultColumnDef:V(()=>[o.options.defaultColumn],f=>{var h;return f=(h=f)!=null?h:{},{header:m=>{const y=m.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:m=>{var y,w;return(y=(w=m.renderValue())==null||w.toString==null?void 0:w.toString())!=null?y:null},...o._features.reduce((m,y)=>Object.assign(m,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...f}},I(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:V(()=>[o._getColumnDefs()],f=>{const h=function(m,y,w){return w===void 0&&(w=0),m.map(v=>{const b=Qv(o,v,w,y),x=v;return b.columns=x.columns?h(x.columns,b,w+1):[],b})};return h(f)},I(e,"debugColumns","getAllColumns")),getAllFlatColumns:V(()=>[o.getAllColumns()],f=>f.flatMap(h=>h.getFlatColumns()),I(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:V(()=>[o.getAllFlatColumns()],f=>f.reduce((h,m)=>(h[m.id]=m,h),{}),I(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:V(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(f,h)=>{let m=f.flatMap(y=>y.getLeafColumns());return h(m)},I(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const h=o._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${f}' does not exist.`),h}};Object.assign(o,u);for(let f=0;f<o._features.length;f++){const h=o._features[f];h==null||h.createTable==null||h.createTable(o)}return o}function P1(){return e=>V(()=>[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=t1(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},I(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function k1(){return e=>V(()=>[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 h=0;h<i.length;h+=1){var f;const m=i[h],y=s[m.id],w=y.sortUndefined,v=(f=m?.desc)!=null?f:!1;let b=0;if(w){const x=d.getValue(m.id),T=u.getValue(m.id),S=x===void 0,k=T===void 0;if(S||k){if(w==="first")return S?-1:1;if(w==="last")return S?1:-1;b=S&&k?0:S?w:-w}}if(b===0&&(b=y.sortingFn(d,u,m.id)),b!==0)return v&&(b*=-1),y.invertSorting&&(b*=-1),b}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}},I(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
|
1578
|
+
* react-table
|
|
1579
|
+
*
|
|
1580
|
+
* Copyright (c) TanStack
|
|
1581
|
+
*
|
|
1582
|
+
* This source code is licensed under the MIT license found in the
|
|
1583
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
1584
|
+
*
|
|
1585
|
+
* @license MIT
|
|
1586
|
+
*/function hr(e,t){return e?E1(e)?lt.createElement(e,t):e:null}function E1(e){return M1(e)||typeof e=="function"||D1(e)}function M1(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function D1(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function A1(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=lt.useState(()=>({current:$1(t)})),[r,o]=lt.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 V1=C`
|
|
1587
|
+
tbody tr:hover td {
|
|
1588
|
+
background-color: var(--color-dark-200);
|
|
1589
|
+
}
|
|
1590
|
+
`,I1=C`
|
|
1591
|
+
@media (max-width: 768px) {
|
|
1592
|
+
font-size: 0.875rem;
|
|
1593
|
+
|
|
1594
|
+
th,
|
|
1595
|
+
td {
|
|
1596
|
+
padding: 0.5rem 0.75rem;
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
`,R1={default:C`
|
|
1566
1600
|
thead tr:last-child th:first-child {
|
|
1567
1601
|
border-top-left-radius: var(--border-radius-article);
|
|
1568
1602
|
}
|
|
@@ -1578,14 +1612,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1578
1612
|
tbody tr:last-child td:last-child {
|
|
1579
1613
|
border-bottom-right-radius: var(--border-radius-article);
|
|
1580
1614
|
}
|
|
1581
|
-
`,striped:
|
|
1615
|
+
`,striped:C`
|
|
1582
1616
|
border-radius: var(--border-radius-article);
|
|
1583
1617
|
tbody tr:nth-child(even) td {
|
|
1584
|
-
background-color: var(--color-
|
|
1618
|
+
background-color: var(--color-main-alternative-secondary);
|
|
1585
1619
|
}
|
|
1586
1620
|
|
|
1587
1621
|
tbody tr:nth-child(even):hover td {
|
|
1588
|
-
background-color: var(--color-
|
|
1622
|
+
background-color: var(--color-dark-200);
|
|
1589
1623
|
}
|
|
1590
1624
|
|
|
1591
1625
|
thead tr:last-child th:first-child {
|
|
@@ -1603,50 +1637,75 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1603
1637
|
tbody tr:last-child td:last-child {
|
|
1604
1638
|
border-bottom-right-radius: var(--border-radius-article);
|
|
1605
1639
|
}
|
|
1606
|
-
`},
|
|
1607
|
-
tbody tr:hover td {
|
|
1608
|
-
background-color: var(--color-main-alternative-secondary);
|
|
1609
|
-
}
|
|
1610
|
-
`,zc=b`
|
|
1611
|
-
@media (max-width: 768px) {
|
|
1612
|
-
font-size: 0.875rem;
|
|
1613
|
-
|
|
1614
|
-
th,
|
|
1615
|
-
td {
|
|
1616
|
-
padding: 0.5rem 0.75rem;
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
`,ei=b`
|
|
1620
|
-
display: flex;
|
|
1621
|
-
align-items: center;
|
|
1622
|
-
gap: 0.5rem;
|
|
1623
|
-
width: 100%;
|
|
1624
|
-
overflow: hidden;
|
|
1625
|
-
`,ft={sm:b`
|
|
1640
|
+
`},Ut={sm:C`
|
|
1626
1641
|
padding: 0.5rem 1rem;
|
|
1627
1642
|
min-height: 2.25rem;
|
|
1628
|
-
`,md:
|
|
1643
|
+
`,md:C`
|
|
1629
1644
|
padding: 0.625rem 1.25rem;
|
|
1630
1645
|
min-height: 2.5rem;
|
|
1631
|
-
`,lg:
|
|
1646
|
+
`,lg:C`
|
|
1632
1647
|
padding: 0.75rem 1.5rem;
|
|
1633
1648
|
min-height: 2.75rem;
|
|
1634
|
-
`},
|
|
1649
|
+
`},Cu=C`
|
|
1650
|
+
display: flex;
|
|
1651
|
+
align-items: center;
|
|
1652
|
+
gap: 0.5rem;
|
|
1653
|
+
width: 100%;
|
|
1654
|
+
`,L1=$.div`
|
|
1655
|
+
position: relative;
|
|
1656
|
+
border-radius: var(--border-radius-article);
|
|
1657
|
+
overflow: ${({$maxHeight:e})=>e?"auto":"visible"};
|
|
1658
|
+
max-height: ${({$maxHeight:e})=>e?typeof e=="number"?`${e}px`:e:"none"};
|
|
1659
|
+
`,F1=$.table`
|
|
1660
|
+
width: 100%;
|
|
1661
|
+
border-collapse: separate;
|
|
1662
|
+
border-spacing: 0;
|
|
1663
|
+
table-layout: auto;
|
|
1664
|
+
border-radius: var(--border-radius-article);
|
|
1665
|
+
border: 1px solid var(--color-main-light-borders);
|
|
1666
|
+
|
|
1667
|
+
${({$variant:e})=>R1[e]}
|
|
1668
|
+
${V1}
|
|
1669
|
+
${I1}
|
|
1670
|
+
`,_1=$.thead`
|
|
1671
|
+
${({$sticky:e})=>e&&C`
|
|
1672
|
+
position: sticky;
|
|
1673
|
+
top: 0;
|
|
1674
|
+
z-index: 10;
|
|
1675
|
+
`}
|
|
1676
|
+
`,Tu=$.tr`
|
|
1677
|
+
${({$clickable:e})=>e&&C`
|
|
1678
|
+
cursor: pointer;
|
|
1679
|
+
|
|
1680
|
+
&:hover {
|
|
1681
|
+
background-color: var(--color-main-alternative-secondary);
|
|
1682
|
+
}
|
|
1683
|
+
`}
|
|
1684
|
+
`;$.span`
|
|
1635
1685
|
display: inline-flex;
|
|
1636
1686
|
align-items: center;
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1687
|
+
justify-content: center;
|
|
1688
|
+
transition: transform 0.2s ease-out;
|
|
1689
|
+
opacity: ${({$direction:e})=>e==="none"?.5:1};
|
|
1690
|
+
transform: ${({$direction:e})=>e==="asc"?"rotate(180deg)":"none"};
|
|
1691
|
+
`;const N1=$.div`
|
|
1692
|
+
padding: 2rem;
|
|
1693
|
+
text-align: center;
|
|
1694
|
+
color: var(--color-text-secondary, #666);
|
|
1695
|
+
font-size: 0.9375rem;
|
|
1696
|
+
`,O1={sm:C`
|
|
1697
|
+
${Ut.sm}
|
|
1698
|
+
${D[12]}
|
|
1699
|
+
`,md:C`
|
|
1700
|
+
${Ut.md}
|
|
1701
|
+
${D[16]}
|
|
1702
|
+
`,lg:C`
|
|
1703
|
+
${Ut.lg}
|
|
1704
|
+
${D[16]}
|
|
1705
|
+
`},B1=$.th`
|
|
1648
1706
|
background-color: var(--color-main-blue-primary);
|
|
1649
|
-
|
|
1707
|
+
color: var(--color-main-white);
|
|
1708
|
+
${({$size:e})=>O1[e]}
|
|
1650
1709
|
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
|
|
1651
1710
|
min-width: 8rem;
|
|
1652
1711
|
width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
|
|
@@ -1655,13 +1714,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1655
1714
|
background-color: var(--color-purple-600);
|
|
1656
1715
|
}
|
|
1657
1716
|
|
|
1658
|
-
${({$active:e})=>e&&
|
|
1717
|
+
${({$active:e})=>e&&C`
|
|
1659
1718
|
background-color: var(--color-blue-400);
|
|
1660
1719
|
`}
|
|
1661
|
-
|
|
1662
|
-
${
|
|
1720
|
+
`,$u=$.div`
|
|
1721
|
+
${Cu}
|
|
1663
1722
|
justify-content: ${({$align:e})=>e||"space-between"};
|
|
1664
|
-
`,
|
|
1723
|
+
`,Pu=$.button`
|
|
1665
1724
|
all: unset;
|
|
1666
1725
|
display: inline-flex;
|
|
1667
1726
|
align-items: center;
|
|
@@ -1671,109 +1730,165 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1671
1730
|
cursor: pointer;
|
|
1672
1731
|
border-radius: 6px;
|
|
1673
1732
|
padding: 0.125rem 0.25rem;
|
|
1674
|
-
overflow: hidden;
|
|
1675
1733
|
outline: 2px solid transparent;
|
|
1676
1734
|
outline-offset: 2px;
|
|
1677
1735
|
transition: outline 0.3s ease-out;
|
|
1678
1736
|
|
|
1679
1737
|
&:focus-visible {
|
|
1680
1738
|
outline-color: var(--color-main-white);
|
|
1681
|
-
outline-offset: 2px;
|
|
1682
1739
|
}
|
|
1683
|
-
`,
|
|
1684
|
-
transition: transform 0.3s ease-out;
|
|
1685
|
-
display: inline-flex;
|
|
1686
|
-
transform: ${({$dir:e})=>e==="asc"?"rotate(-180deg)":"none"};
|
|
1687
|
-
`,Rc=x.span`
|
|
1740
|
+
`,z1=$.span`
|
|
1688
1741
|
display: inline-flex;
|
|
1689
1742
|
align-items: center;
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
overflow: hidden;
|
|
1693
|
-
text-overflow: ellipsis;
|
|
1694
|
-
white-space: nowrap;
|
|
1695
|
-
flex-shrink: 1;
|
|
1696
|
-
`,r1=x(An)`
|
|
1697
|
-
overflow: hidden;
|
|
1698
|
-
text-overflow: ellipsis;
|
|
1699
|
-
white-space: nowrap;
|
|
1700
|
-
max-width: 100%;
|
|
1743
|
+
justify-content: center;
|
|
1744
|
+
flex-shrink: 0;
|
|
1701
1745
|
color: var(--color-main-white);
|
|
1702
|
-
|
|
1703
|
-
${
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
${
|
|
1713
|
-
${
|
|
1714
|
-
`
|
|
1746
|
+
opacity: ${({$direction:e})=>e==="none"?.6:1};
|
|
1747
|
+
transform: rotate(${({$direction:e})=>e==="asc"?"180deg":"0deg"});
|
|
1748
|
+
transition:
|
|
1749
|
+
transform 0.25s ease-out,
|
|
1750
|
+
opacity 0.2s ease-out;
|
|
1751
|
+
|
|
1752
|
+
${Pu}:hover & {
|
|
1753
|
+
opacity: 1;
|
|
1754
|
+
}
|
|
1755
|
+
`,ku=({header:e})=>{const{size:t}=pr(),n=e.column.columnDef.meta,r=e.column.getCanSort()&&n?.sortable!==!1,o=e.column.getIsSorted(),i=o||"none";return g.jsx(B1,{$size:n?.size||t,$active:!!o,colSpan:e.colSpan,$width:e.getSize(),children:r?g.jsx(Pu,{onClick:e.column.getToggleSortingHandler(),type:"button","aria-label":`Sort by ${hr(e.column.columnDef.header,e.getContext())}`,"aria-sort":i==="asc"?"ascending":i==="desc"?"descending":"none",children:g.jsxs($u,{$align:n?.align,children:[hr(e.column.columnDef.header,e.getContext()),g.jsx(z1,{$direction:i,children:i==="none"?g.jsx(Y,{component:sy,size:"tn"}):g.jsx(Y,{component:ry,size:"tn"})})]})}):g.jsx($u,{$align:n?.align,children:hr(e.column.columnDef.header,e.getContext())})})},Eu=({headerGroup:e})=>g.jsx(Tu,{children:e.headers.map(t=>g.jsx(ku,{header:t},t.id))}),Mu=({headerGroups:e,stickyHeader:t})=>g.jsx(_1,{$sticky:t,children:e.map(n=>g.jsx(Eu,{headerGroup:n},n.id))}),H1={sm:C`
|
|
1756
|
+
${Ut.sm}
|
|
1757
|
+
${D[14]}
|
|
1758
|
+
`,md:C`
|
|
1759
|
+
${Ut.md}
|
|
1760
|
+
${D[14]}
|
|
1761
|
+
`,lg:C`
|
|
1762
|
+
${Ut.lg}
|
|
1763
|
+
${D[16]}
|
|
1764
|
+
`},j1=$.td`
|
|
1765
|
+
min-width: 0;
|
|
1766
|
+
max-width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"auto"};
|
|
1767
|
+
|
|
1768
|
+
width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"auto"};
|
|
1769
|
+
|
|
1715
1770
|
vertical-align: middle;
|
|
1716
1771
|
color: var(--color-main-blue-primary);
|
|
1717
|
-
${({$size:e})=>
|
|
1718
|
-
text-align: ${({$align:e
|
|
1772
|
+
${({$size:e})=>H1[e]}
|
|
1773
|
+
text-align: ${({$align:e})=>e||"left"};
|
|
1719
1774
|
border-left: 1px solid var(--color-main-light-borders);
|
|
1720
1775
|
border-top: 1px solid var(--color-main-light-borders);
|
|
1721
1776
|
transition: background-color 0.3s ease-out;
|
|
1722
|
-
|
|
1777
|
+
`,G1=$.p`
|
|
1778
|
+
${Cu}
|
|
1779
|
+
justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
|
|
1723
1780
|
|
|
1724
|
-
|
|
1725
|
-
|
|
1781
|
+
width: 100%;
|
|
1782
|
+
`,U1=$.span`
|
|
1783
|
+
width: 100%;
|
|
1784
|
+
${({$ellipsis:e})=>e&&C`
|
|
1785
|
+
min-width: 0;
|
|
1726
1786
|
overflow: hidden;
|
|
1727
1787
|
text-overflow: ellipsis;
|
|
1728
1788
|
white-space: nowrap;
|
|
1729
1789
|
`}
|
|
1790
|
+
`,Du=({cell:e})=>{const{size:t}=pr(),n=e.column.columnDef.meta,r=e.getValue(),o=typeof r=="string"||typeof r=="number"?String(r):void 0;return g.jsx(j1,{$size:n?.size||t,$align:n?.align,$width:e.column.getSize(),title:n?.ellipsis&&o?o:void 0,children:g.jsx(G1,{$align:n?.align,children:g.jsx(U1,{$ellipsis:n?.ellipsis,children:hr(e.column.columnDef.cell,e.getContext())})})})},Au=p.memo(function({row:t}){const{onRowClick:n}=pr(),r=!!n;return g.jsx(Tu,{$clickable:r,onClick:()=>r&&n(t.original),role:r?"button":void 0,tabIndex:r?0:void 0,children:t.getVisibleCells().map(o=>g.jsx(Du,{cell:o},o.id))})}),Vu=({rows:e})=>g.jsx("tbody",{children:e.map(t=>g.jsx(Au,{row:t},t.id))}),W1=$.section`
|
|
1791
|
+
display: flex;
|
|
1792
|
+
align-items: center;
|
|
1793
|
+
gap: 0.5rem;
|
|
1794
|
+
padding: 1rem 0;
|
|
1795
|
+
flex-wrap: wrap;
|
|
1730
1796
|
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
`,
|
|
1736
|
-
${
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
min-width:
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
border:
|
|
1797
|
+
@media (max-width: 768px) {
|
|
1798
|
+
justify-content: center;
|
|
1799
|
+
gap: 0.25rem;
|
|
1800
|
+
}
|
|
1801
|
+
`,Iu=$.button`
|
|
1802
|
+
${D[14]}
|
|
1803
|
+
display: flex;
|
|
1804
|
+
align-items: center;
|
|
1805
|
+
justify-content: center;
|
|
1806
|
+
min-width: 2rem;
|
|
1807
|
+
height: 2rem;
|
|
1808
|
+
padding: 0.625rem;
|
|
1809
|
+
transition:
|
|
1810
|
+
background-color 0.3s ease-out,
|
|
1811
|
+
border-color 0.3s ease-out,
|
|
1812
|
+
color 0.3s ease-out,
|
|
1813
|
+
outline 0.3s ease-out;
|
|
1814
|
+
background-color: ${({$active:e})=>e?"var(--color-main-blue-primary)":"var(--color-main-white)"};
|
|
1815
|
+
color: ${({$active:e})=>e?"var(--color-main-white)":"var(--color-main-blue-primary)"};
|
|
1816
|
+
border-radius: var(--border-radius-outline);
|
|
1817
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1818
|
+
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1751
1819
|
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
${({$sticky:e})=>e&&b`
|
|
1757
|
-
position: sticky;
|
|
1758
|
-
top: 0;
|
|
1759
|
-
z-index: 10;
|
|
1760
|
-
`}
|
|
1761
|
-
`,d1=x.div`
|
|
1762
|
-
max-height: 37.5rem;
|
|
1763
|
-
overflow: auto;
|
|
1764
|
-
position: relative;
|
|
1765
|
-
border-radius: var(--border-radius-article);
|
|
1766
|
-
box-shadow: var(--shadow-black-card);
|
|
1820
|
+
&:hover:not(:disabled) {
|
|
1821
|
+
background-color: ${({$active:e})=>e?"var(--color-blue-400)":"var(--color-main-alternative-secondary)"};
|
|
1822
|
+
border-color: ${({$active:e})=>e?"var(--color-blue-400)":"var(--color-main-blue-primary)"};
|
|
1823
|
+
}
|
|
1767
1824
|
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1825
|
+
outline: 2px solid transparent;
|
|
1826
|
+
|
|
1827
|
+
&:focus-visible {
|
|
1828
|
+
outline-color: var(--color-main-blue-primary);
|
|
1829
|
+
outline-offset: 2px;
|
|
1830
|
+
}
|
|
1831
|
+
`,Ru=$(Iu)`
|
|
1832
|
+
gap: 0.25rem;
|
|
1833
|
+
padding: 0 0.75rem;
|
|
1834
|
+
font-weight: 400;
|
|
1835
|
+
|
|
1836
|
+
@media (max-width: 768px) {
|
|
1837
|
+
padding: 0 0.5rem;
|
|
1838
|
+
font-size: 0.75rem;
|
|
1839
|
+
|
|
1840
|
+
svg {
|
|
1841
|
+
width: 1rem;
|
|
1842
|
+
height: 1rem;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
`,K1=$(Iu)`
|
|
1846
|
+
min-width: 2rem;
|
|
1847
|
+
`,q1=$.span`
|
|
1848
|
+
${D[14]}
|
|
1849
|
+
display: flex;
|
|
1850
|
+
align-items: center;
|
|
1851
|
+
justify-content: center;
|
|
1852
|
+
min-width: 2rem;
|
|
1853
|
+
height: 2rem;
|
|
1854
|
+
color: var(--color-main-blue-primary);
|
|
1855
|
+
user-select: none;
|
|
1856
|
+
`,Y1=$.div`
|
|
1857
|
+
display: flex;
|
|
1858
|
+
align-items: center;
|
|
1859
|
+
gap: 0.5rem;
|
|
1860
|
+
margin-left: 1rem;
|
|
1861
|
+
padding-left: 1rem;
|
|
1862
|
+
border-left: 1px solid var(--color-light-300);
|
|
1863
|
+
white-space: nowrap;
|
|
1864
|
+
|
|
1865
|
+
@media (max-width: 768px) {
|
|
1866
|
+
margin-left: 0;
|
|
1867
|
+
padding-left: 0;
|
|
1868
|
+
border-left: none;
|
|
1869
|
+
border-top: 1px solid var(--color-light-300);
|
|
1870
|
+
padding-top: 0.5rem;
|
|
1871
|
+
width: 100%;
|
|
1872
|
+
justify-content: center;
|
|
1873
|
+
order: 10; /* Move to bottom on mobile */
|
|
1874
|
+
}
|
|
1875
|
+
`,X1=$(ar)`
|
|
1876
|
+
button {
|
|
1877
|
+
${D[14]}
|
|
1878
|
+
height: 2rem;
|
|
1879
|
+
min-height: 2rem;
|
|
1880
|
+
border-radius: var(--border-radius-outline);
|
|
1881
|
+
width: 100%;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
li {
|
|
1885
|
+
${D[14]}
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
div {
|
|
1889
|
+
right: 10%;
|
|
1775
1890
|
}
|
|
1776
|
-
`,
|
|
1891
|
+
`,Z1=({onPageChange:e,onPerPageChange:t,perPage:n=10,page:r=1,totalPages:o,totalRecords:i,rowsPerPageOptions:s})=>{const l=(()=>{const h=[];if(o<=7)for(let y=1;y<=o;y++)h.push(y);else{h.push(1),r>3&&h.push("...");const y=Math.max(2,r-1),w=Math.min(o-1,r+1);for(let v=y;v<=w;v++)h.push(v);r<o-2&&h.push("..."),h.push(o)}return h})(),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,f=d?Math.min(r*n,i):0;return g.jsxs(W1,{children:[d&&g.jsxs(nr,{size:14,children:["Showing ",u,"-",f," of ",i]}),g.jsxs(Ru,{onClick:()=>e(r-1),$disabled:r===1,disabled:r===1,"aria-label":"Previous page",children:[g.jsx(gy,{size:24}),"Previous"]}),l.map((h,m)=>h==="..."?g.jsx(q1,{children:"..."},`ellipsis-${m}`):g.jsx(K1,{onClick:()=>e(h),$active:r===h,"aria-label":`Go to page ${h}`,"aria-current":r===h?"page":void 0,children:h},h)),g.jsxs(Ru,{onClick:()=>e(r+1),$disabled:r===o,disabled:r===o,"aria-label":"Next page",children:["Next",g.jsx(yy,{size:24})]}),g.jsxs(Y1,{children:[g.jsx(X1,{size:"sm",value:n,options:s||c,onOptionSelect:h=>t(Number(h.value))}),g.jsx(nr,{size:12,children:"Rows per page"})]})]})},Lu=({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}},Fu=p.createContext(void 0),pr=()=>{const e=p.useContext(Fu);if(!e)throw new Error("useTableContext debe usarse dentro de Table");return e},_u=({data:e,columns:t,size:n="md",variant:r="default",stickyHeader:o=!1,maxHeight:i,sorting:s,defaultSorting:a,onSortingChange:l,onRowClick:c,className:d,emptyMessage:u="No data available",enableSorting:f=!0,manualSorting:h=!1,isLoading:m=!1})=>{const{sortingState:y,handleSortingChange:w,setSorting:v}=Lu({sorting:s,defaultSorting:a,onSortingChange:l}),b=A1({data:e,columns:t,state:{sorting:y},onSortingChange:w,getCoreRowModel:P1(),getSortedRowModel:h?void 0:k1(),enableSorting:f,enableSortingRemoval:!0,manualSorting:h}),x={size:n,variant:r,sorting:y,setSorting:v,onRowClick:c};return g.jsx(Fu.Provider,{value:x,children:g.jsx(L1,{$maxHeight:i,$stickyHeader:o,className:d,children:m?g.jsx(Tc,{message:"Loading data..."}):e.length===0?g.jsx(N1,{children:u}):g.jsxs(F1,{$variant:r,children:[g.jsx(Mu,{headerGroups:b.getHeaderGroups(),stickyHeader:o}),g.jsx(Vu,{rows:b.getRowModel().rows})]})})})};_u.displayName="Table";function Nu(e){const t={};for(const n of e)t[n.id]=n.desc?"desc":"asc";return t}function J1(e){return Object.entries(e).map(([t,n])=>({id:t,desc:n==="desc"}))}function Ou(e){return e.length===0?"":JSON.stringify(Nu(e))}function Q1(e){const t=new URLSearchParams;return e.sorting&&e.sorting.length>0&&t.append("sorts",Ou(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 ew=$.div`
|
|
1777
1892
|
position: relative;
|
|
1778
1893
|
display: flex;
|
|
1779
1894
|
align-items: center;
|
|
@@ -1791,7 +1906,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1791
1906
|
outline: 2px solid var(--color-main-blue-primary);
|
|
1792
1907
|
outline-offset: 2px;
|
|
1793
1908
|
}
|
|
1794
|
-
`,
|
|
1909
|
+
`,tw=$.div`
|
|
1795
1910
|
width: 2rem;
|
|
1796
1911
|
height: 2rem;
|
|
1797
1912
|
border-radius: 50%;
|
|
@@ -1799,7 +1914,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1799
1914
|
display: flex;
|
|
1800
1915
|
align-items: center;
|
|
1801
1916
|
justify-content: center;
|
|
1802
|
-
`,
|
|
1917
|
+
`,nw=$.div`
|
|
1803
1918
|
display: flex;
|
|
1804
1919
|
flex-direction: column;
|
|
1805
1920
|
align-items: flex-start;
|
|
@@ -1807,7 +1922,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1807
1922
|
@media (max-width: 640px) {
|
|
1808
1923
|
display: none;
|
|
1809
1924
|
}
|
|
1810
|
-
`,
|
|
1925
|
+
`,rw=$(Ke.div)`
|
|
1811
1926
|
display: flex;
|
|
1812
1927
|
align-items: center;
|
|
1813
1928
|
justify-content: center;
|
|
@@ -1816,7 +1931,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1816
1931
|
@media (max-width: 640px) {
|
|
1817
1932
|
display: none;
|
|
1818
1933
|
}
|
|
1819
|
-
`,
|
|
1934
|
+
`,ow=$(Ke.div)`
|
|
1820
1935
|
position: absolute;
|
|
1821
1936
|
top: 100%;
|
|
1822
1937
|
right: 0;
|
|
@@ -1828,7 +1943,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1828
1943
|
box-shadow: var(--shadow-black-card);
|
|
1829
1944
|
z-index: 100;
|
|
1830
1945
|
overflow: hidden;
|
|
1831
|
-
`,
|
|
1946
|
+
`,iw=$.button`
|
|
1832
1947
|
width: 100%;
|
|
1833
1948
|
display: flex;
|
|
1834
1949
|
align-items: center;
|
|
@@ -1852,7 +1967,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1852
1967
|
&.danger {
|
|
1853
1968
|
color: var(--color-main-waringn-state);
|
|
1854
1969
|
}
|
|
1855
|
-
`,
|
|
1970
|
+
`,Ai=({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:my,onClick:()=>{i(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:dy,onClick:()=>{i(!1),n?.()},variant:"danger"}],...r];return g.jsxs("div",{ref:s,children:[g.jsxs(ew,{onClick:()=>i(!o),role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),i(!o))},children:[g.jsx(tw,{children:e.avatarUrl?g.jsx("img",{src:e.avatarUrl,alt:e.name}):g.jsx(je,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),g.jsxs(nw,{children:[g.jsx(je,{size:14,className:"!font-semibold",children:e.name}),g.jsx(je,{size:12,children:e.role})]}),g.jsx(rw,{animate:{rotate:o?-180:0},transition:{duration:.3},children:g.jsx(Y,{component:oy,size:"sm",color:"var(--color-main-blue-primary)"})})]}),g.jsx(sn,{children:o&&g.jsx(ow,{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(iw,{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(je,{size:14,color:`${d.variant==="danger"&&"var(--color-main-warning-state)"}`,children:d.label})]})},d.id))})})]})};Ai.displayName="UserProfile";const Bu=({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}},sw=$.button`
|
|
1856
1971
|
position: relative;
|
|
1857
1972
|
background: transparent;
|
|
1858
1973
|
border: none;
|
|
@@ -1876,7 +1991,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1876
1991
|
&:active {
|
|
1877
1992
|
transform: scale(0.92);
|
|
1878
1993
|
}
|
|
1879
|
-
`,
|
|
1994
|
+
`,aw=$.span`
|
|
1880
1995
|
position: absolute;
|
|
1881
1996
|
top: 0.35rem;
|
|
1882
1997
|
right: 0.35rem;
|
|
@@ -1892,7 +2007,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1892
2007
|
min-width: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1893
2008
|
height: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1894
2009
|
padding: ${({$withCount:e})=>e?"0 0.25rem":"0"};
|
|
1895
|
-
`,
|
|
2010
|
+
`,Vi=({hasNotifications:e=!1,notificationCount:t,onNotificationClick:n})=>{const{effectiveHasNotifications:r,displayCount:o,bellAriaLabel:i}=Bu({hasNotifications:e,notificationCount:t});return g.jsxs(sw,{onClick:n,"aria-label":i,title:i,"data-has":r||void 0,children:[g.jsx(Y,{component:r?fy:hy,size:"md",color:"var(--color-main-blue-primary)"}),r&&g.jsx(aw,{$withCount:!!o,"aria-hidden":!!o,children:o&&(o>99?"99+":o)})]})};Vi.displayName="NotificationButton";const lw=$.header`
|
|
1896
2011
|
position: fixed;
|
|
1897
2012
|
top: 0;
|
|
1898
2013
|
left: 0;
|
|
@@ -1908,15 +2023,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1908
2023
|
padding: 0 1rem;
|
|
1909
2024
|
transition: padding-left 0.3s ease-out;
|
|
1910
2025
|
padding-left: 5rem;
|
|
1911
|
-
`,
|
|
2026
|
+
`,cw=$.div`
|
|
1912
2027
|
display: flex;
|
|
1913
2028
|
align-items: center;
|
|
1914
2029
|
gap: 1rem;
|
|
1915
|
-
`,
|
|
2030
|
+
`,uw=$.div`
|
|
1916
2031
|
display: flex;
|
|
1917
2032
|
align-items: center;
|
|
1918
2033
|
gap: 1rem;
|
|
1919
|
-
`,
|
|
2034
|
+
`,Ii=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:i,userMenuItems:s,children:a})=>g.jsxs(lw,{children:[g.jsx(cw,{children:a}),g.jsxs(uw,{children:[g.jsx(Vi,{hasNotifications:t,notificationCount:n,onNotificationClick:r}),e&&g.jsx(Ai,{user:e,onProfileClick:o,onLogout:i,menuItems:s})]})]});Ii.displayName="Header";const dw=$.main`
|
|
1920
2035
|
flex: 1;
|
|
1921
2036
|
margin-top: 4rem;
|
|
1922
2037
|
/* Mobile-first: no lateral offset so content occupies full width */
|
|
@@ -1932,30 +2047,30 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1932
2047
|
@media (min-width: 1200px) {
|
|
1933
2048
|
margin-left: 5rem;
|
|
1934
2049
|
}
|
|
1935
|
-
`,
|
|
2050
|
+
`,Ri=({children:e,className:t})=>g.jsx(dw,{className:t,children:e});Ri.displayName="LayoutMainContent";const fw=$.div`
|
|
1936
2051
|
display: flex;
|
|
1937
2052
|
flex-direction: column;
|
|
1938
2053
|
height: 100vh;
|
|
1939
2054
|
overflow: hidden;
|
|
1940
|
-
`,
|
|
2055
|
+
`,hw=({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:f,logoImgCollapsed:h,logoImgExpanded:m})=>g.jsxs(fw,{children:[g.jsx(mi,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:h,logoImgExpanded:m,onNavigate:c}),g.jsx(Ii,{user:o,hasNotifications:i,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onLogout:d,userMenuItems:u}),g.jsx(Ri,{className:f,children:e})]}),pw=e=>g.jsx(Jc,{children:g.jsx(hw,{...e})});function mw(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 gw(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function yw(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const vn={sm:{circle:"2rem",fontSize:D[14],line:"2px"},md:{circle:"2.5rem",fontSize:D[18],line:"2px"},lg:{circle:"3.25rem",fontSize:D[20],line:"3px"}},vw=$.div`
|
|
1941
2056
|
display: flex;
|
|
1942
2057
|
width: 100%;
|
|
1943
|
-
|
|
2058
|
+
`,ww=$.div`
|
|
1944
2059
|
display: flex;
|
|
1945
2060
|
flex-direction: ${({$orientation:e})=>e==="vertical"?"column":"row"};
|
|
1946
2061
|
align-items: center;
|
|
1947
2062
|
width: 100%;
|
|
1948
|
-
`,
|
|
2063
|
+
`,bw=$.div`
|
|
1949
2064
|
display: flex;
|
|
1950
2065
|
align-items: center;
|
|
1951
2066
|
justify-content: center;
|
|
1952
2067
|
position: relative;
|
|
1953
|
-
`,
|
|
2068
|
+
`,zu=$.div`
|
|
1954
2069
|
display: flex;
|
|
1955
2070
|
align-items: center;
|
|
1956
2071
|
justify-content: center;
|
|
1957
|
-
width: ${({$size:e})=>
|
|
1958
|
-
height: ${({$size:e})=>
|
|
2072
|
+
width: ${({$size:e})=>vn[e].circle};
|
|
2073
|
+
height: ${({$size:e})=>vn[e].circle};
|
|
1959
2074
|
outline-offset: 2px;
|
|
1960
2075
|
outline: 2px solid transparent;
|
|
1961
2076
|
border-radius: 50%;
|
|
@@ -1969,21 +2084,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1969
2084
|
flex-shrink: 0;
|
|
1970
2085
|
box-shadow: var(--shadow-black-button);
|
|
1971
2086
|
|
|
1972
|
-
${({$size:e})=>
|
|
2087
|
+
${({$size:e})=>vn[e].fontSize}
|
|
1973
2088
|
|
|
1974
|
-
${({$isCompleted:e,$isActive:t})=>t?
|
|
2089
|
+
${({$isCompleted:e,$isActive:t})=>t?C`
|
|
1975
2090
|
background-color: var(--color-main-blue-primary);
|
|
1976
2091
|
color: var(--color-main-white);
|
|
1977
2092
|
box-shadow: var(--shadow-hover-black-button);
|
|
1978
|
-
`:e?
|
|
2093
|
+
`:e?C`
|
|
1979
2094
|
background-color: var(--color-main-blue-primary);
|
|
1980
2095
|
color: var(--color-main-white);
|
|
1981
|
-
`:
|
|
2096
|
+
`:C`
|
|
1982
2097
|
background-color: var(--color-dark-300);
|
|
1983
2098
|
color: var(--color-main-white);
|
|
1984
2099
|
`}
|
|
1985
2100
|
|
|
1986
|
-
${({$isClickable:e})=>e&&
|
|
2101
|
+
${({$isClickable:e})=>e&&C`
|
|
1987
2102
|
cursor: pointer;
|
|
1988
2103
|
|
|
1989
2104
|
&:hover {
|
|
@@ -1996,21 +2111,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
1996
2111
|
box-shadow: var(--shadow-hover-black-button);
|
|
1997
2112
|
}
|
|
1998
2113
|
`}
|
|
1999
|
-
`,
|
|
2114
|
+
`,xw=$.div`
|
|
2000
2115
|
background-color: ${({$isCompleted:e})=>e?"var(--color-main-blue-primary)":"var(--color-dark-300)"};
|
|
2001
2116
|
transition: background-color 0.3s ease;
|
|
2002
2117
|
|
|
2003
|
-
${({$orientation:e,$size:t})=>e==="vertical"?
|
|
2004
|
-
width: ${
|
|
2118
|
+
${({$orientation:e,$size:t})=>e==="vertical"?C`
|
|
2119
|
+
width: ${vn[t].line};
|
|
2005
2120
|
height: 2rem;
|
|
2006
|
-
`:
|
|
2007
|
-
height: ${
|
|
2121
|
+
`:C`
|
|
2122
|
+
height: ${vn[t].line};
|
|
2008
2123
|
flex: 1;
|
|
2009
2124
|
min-width: 2rem;
|
|
2010
2125
|
`}
|
|
2011
|
-
`,
|
|
2126
|
+
`,Sw=$.span`
|
|
2012
2127
|
position: absolute;
|
|
2013
|
-
${
|
|
2128
|
+
${D[14]}
|
|
2014
2129
|
font-weight: 500;
|
|
2015
2130
|
color: var(--color-main-white);
|
|
2016
2131
|
background-color: var(--color-main-blue-primary);
|
|
@@ -2038,7 +2153,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:b`
|
|
|
2038
2153
|
border-left-color: var(--color-main-blue-primary);
|
|
2039
2154
|
}
|
|
2040
2155
|
|
|
2041
|
-
${
|
|
2156
|
+
${zu}:hover & {
|
|
2042
2157
|
opacity: 1;
|
|
2043
2158
|
}
|
|
2044
|
-
`,
|
|
2159
|
+
`,Cw=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:i})=>{const s=a=>{o?.(a)};return g.jsx(vw,{$orientation:n,className:i,children:g.jsx(ww,{$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(bw,{$orientation:n,children:g.jsxs(zu,{$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:f=>{u&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s(l))},children:[a.content??l+1,a.label&&n==="vertical"&&g.jsx(Sw,{children:a.label})]})}),l<e.length-1&&g.jsx(xw,{$isCompleted:d,$orientation:n,$size:r})]},a.id)})})})};P.ALLOWED_INPUT_TYPES=kc,P.Aside=nu,P.Badge=n0,P.BaseInput=ri,P.BrandLogo=ou,P.Button=ei,P.Card=B0,P.CardBody=G0,P.CardFooter=W0,P.CardHeader=H0,P.Checkbox=lr,P.CheckboxInput=ii,P.CheckboxLabel=Bc,P.CloseOpenButton=su,P.Dialog=qc,P.DialogBody=Xc,P.DialogFooter=Zc,P.DialogHeader=Yc,P.Divider=o0,P.ErrorMessage=ni,P.FileList=Oc,P.FileUpload=tv,P.FormField=Pv,P.FullScreenSpinner=Kg,P.Header=Ii,P.HeadingBold=Es,P.HeadingRegular=sf,P.Icon=Y,P.IconWrapperStyles=sr,P.InfoLabel=nr,P.Label=or,P.Layout=pw,P.LayoutMainContent=Ri,P.Link=du,P.LinkDisabledStyles=cu,P.LinkSizeStyles=uu,P.LinkVariantStyles=lu,P.MobileOpenBtn=au,P.Nav=iu,P.NotificationButton=Vi,P.Overlay=tu,P.PasswordInput=Ic,P.PinInput=si,P.PinInputGroup=ai,P.RadioInput=ui,P.RadioInputDot=li,P.RadioInputLabel=ci,P.SearchInput=Nc,P.SectionSpinner=Tc,P.SelectInput=ar,P.Sidebar=mi,P.SidebarContext=fi,P.SidebarHeader=ru,P.SidebarProvider=Jc,P.Spinner=tr,P.Stepper=Cw,P.Table=_u,P.TableBody=Vu,P.TableCell=Du,P.TableHeader=Mu,P.TableHeaderCell=ku,P.TableHeaderRow=Eu,P.TablePagination=Z1,P.TableRow=Au,P.TermsAndConditions=_v,P.Text=je,P.TextAreaInput=oi,P.ToastProvider=R0,P.UserProfile=Ai,P.baseFieldStyles=bt,P.baseInputStyles=ir,P.bodyTextStyles=D,P.createBackendParams=Q1,P.createColumnHelper=Yv,P.createFieldConfig=Q0,P.createInputRefs=Gc,P.deleteCookie=yw,P.disabledStyles=rt,P.errorStyles=xt,P.flushedStyles=Mc,P.getCookie=gw,P.getPropsForInputType=ey,P.handleDigitChange=zc,P.handleKeyDown=Hc,P.handlePaste=jc,P.hasPermission=pi,P.headingBoldStyles=Lr,P.headingRegularStyles=ks,P.isAllowedInputType=Ec,P.normalizeFieldTypes=nt,P.normalizeSelectOptions=J0,P.overlayAnimation=di,P.setCookie=mw,P.sizeStyles=mn,P.slideAnimation=kv,P.smartAnimation=Wc,P.sortRecordToSortingState=J1,P.sortingStateToJsonString=Ou,P.sortingStateToRecord=Nu,P.submenuAnimationTopDown=Kc,P.toast=S0,P.useNotifications=Bu,P.useSidebar=hi,P.useTableContext=pr,P.useTableSorting=Lu,P.validateCode=hv,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|