tcce-design-system 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(T,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","formik"],f):(T=typeof globalThis<"u"?globalThis:T||self,f(T["tcce-design-system-components"]={},T.React,T["react/jsx-runtime"],T.ReactDOM,T.Formik))})(this,(function(T,f,p,li,qc){"use strict";function Jc(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=Jc(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 Qc(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=Qc(function(e){return ed.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Z="-ms-",zt="-moz-",Y="-webkit-",ci="comm",dn="rule",nr="decl",nd="@import",di="@keyframes",rd="@layer",ui=Math.abs,rr=String.fromCharCode,or=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 Fe(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,n){return e.replace(t,n)}function un(e,t,n){return e.indexOf(t,n)}function ae(e,t){return e.charCodeAt(t)|0}function gt(e,t,n){return e.slice(t,n)}function Le(e){return e.length}function fi(e){return e.length}function Rt(e,t){return t.push(e),e}function id(e,t){return e.map(t).join("")}function pi(e,t){return e.filter(function(n){return!Fe(n,t)})}var hn=1,yt=1,mi=0,Se=0,re=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 or(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 sd(){return re}function ad(){return re=Se>0?ae(vt,--Se):0,yt--,re===10&&(yt=1,hn--),re}function Ae(){return re=Se<mi?ae(vt,Se++):0,yt++,re===10&&(yt=1,hn++),re}function et(){return ae(vt,Se)}function pn(){return Se}function mn(e,t){return gt(vt,e,t)}function ir(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ld(e){return hn=yt=1,mi=Le(vt=e),Se=0,[]}function cd(e){return vt="",e}function sr(e){return hi(mn(Se-1,ar(e===91?e+2:e===40?e+1:e)))}function dd(e){for(;(re=et())&&re<33;)Ae();return ir(e)>2||ir(re)>3?"":" "}function ud(e,t){for(;--t&&Ae()&&!(re<48||re>102||re>57&&re<65||re>70&&re<97););return mn(e,pn()+(t<6&&et()==32&&Ae()==32))}function ar(e){for(;Ae();)switch(re){case e:return Se;case 34:case 39:e!==34&&e!==39&&ar(re);break;case 40:e===41&&ar(e);break;case 92:Ae();break}return Se}function hd(e,t){for(;Ae()&&e+re!==57;)if(e+re===84&&et()===47)break;return"/*"+mn(t,Se-1)+"*"+rr(e===47?e:Ae())}function fd(e){for(;!ir(et());)Ae();return mn(e,Se)}function pd(e){return cd(gn("",null,null,null,[""],e=ld(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,x=1,y=1,C=0,w="",A=o,E=s,k=r,P=w;x;)switch(g=C,C=Ae()){case 40:if(g!=108&&ae(P,c-1)==58){un(P+=F(sr(C),"&","&\f"),"&\f",ui(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:P+=sr(C);break;case 9:case 10:case 13:case 32:P+=dd(g);break;case 92:P+=ud(pn()-1,7);continue;case 47:switch(et()){case 42:case 47:Rt(md(hd(Ae(),pn()),t,n,l),l);break;default:P+="/"}break;case 123*v:a[d++]=Le(P)*y;case 125*v:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+u:y==-1&&(P=F(P,/\f/g,"")),m>0&&Le(P)-c&&Rt(m>32?yi(P+";",r,n,c-1,l):yi(F(P," ","")+";",r,n,c-2,l),l);break;case 59:P+=";";default:if(Rt(k=gi(P,t,n,d,u,o,a,w,A=[],E=[],c,s),s),C===123)if(u===0)gn(P,t,k,k,A,s,c,a,E);else switch(h===99&&ae(P,3)===110?100:h){case 100:case 108:case 109:case 115:gn(e,k,k,r&&Rt(gi(e,k,k,0,0,o,a,w,o,A=[],c,E),E),o,E,c,a,r?A:E);break;default:gn(P,k,k,k,[""],E,0,a,E)}}d=u=m=0,v=y=1,w=P="",c=i;break;case 58:c=1+Le(P),m=g;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&ad()==125)continue}switch(P+=rr(C),C*v){case 38:y=u>0?1:(P+="\f",-1);break;case 44:a[d++]=(Le(P)-1)*y,y=1;break;case 64:et()===45&&(P+=sr(Ae())),h=et(),u=c=Le(w=P+=fd(pn())),C++;break;case 45:g===45&&Le(P)==2&&(v=0)}}return s}function gi(e,t,n,r,o,s,i,a,l,d,u,c){for(var h=o-1,m=o===0?s:[""],g=fi(m),v=0,x=0,y=0;v<r;++v)for(var C=0,w=gt(e,h+1,h=ui(x=i[v])),A=e;C<g;++C)(A=hi(x>0?m[C]+" "+w:F(w,/&\f/g,m[C])))&&(l[y++]=A);return fn(e,t,n,o===0?dn:a,l,d,u,c)}function md(e,t,n,r){return fn(e,t,n,ci,rr(sd()),gt(e,2,-2),0,r)}function yi(e,t,n,r,o){return fn(e,t,n,nr,gt(e,0,r),gt(e,r+1,-1),r,o)}function vi(e,t,n){switch(od(e,t)){case 5103:return Y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Y+e+e;case 4789:return zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+zt+e+Z+e+e;case 5936:switch(ae(e,t+11)){case 114:return Y+e+Z+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Z+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Z+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Y+e+Z+e+e;case 6165:return Y+e+Z+"flex-"+e+e;case 5187:return Y+e+F(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return Y+e+Z+"flex-item-"+F(e,/flex-|-self/g,"")+(Fe(e,/flex-|baseline/)?"":Z+"grid-row-"+F(e,/flex-|-self/g,""))+e;case 4675:return Y+e+Z+"flex-line-pack"+F(e,/align-content|flex-|-self/g,"")+e;case 5548:return Y+e+Z+F(e,"shrink","negative")+e;case 5292:return Y+e+Z+F(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+F(e,"-grow","")+Y+e+Z+F(e,"grow","positive")+e;case 4554:return Y+F(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4200:if(!Fe(e,/flex-|baseline/))return Z+"grid-column-align"+gt(e,t)+e;break;case 2592:case 3360:return Z+F(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:Z+F(e,"-start","")+e+Z+"grid-row-span:"+(~un(n,"span",0)?Fe(n,/\d+/):+Fe(n,/\d+/)-+Fe(e,/\d+/))+";":Z+F(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Fe(r.props,/grid-\w+-start/)})?e:Z+F(F(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,Y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Le(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+zt+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch",0)?vi(F(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return F(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,l,d){return Z+o+":"+s+d+(i?Z+o+"-span:"+(a?l:+l-+s)+d:"")+e});case 4949:if(ae(e,t+6)===121)return F(e,":",":"+Y)+e;break;case 6444:switch(ae(e,ae(e,14)===45?18:11)){case 120:return F(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Y+(ae(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Z+"$2box$3")+e;case 100:return F(e,":",":"+Z)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return F(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 gd(e,t,n,r){switch(e.type){case rd:if(e.children.length)break;case nd:case nr:return e.return=e.return||e.value;case ci:return"";case di:return e.return=e.value+"{"+yn(e.children,r)+"}";case dn:if(!Le(e.value=e.props.join(",")))return""}return Le(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function yd(e){var t=fi(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function vd(e){return function(t){t.root||(t=t.return)&&e(t)}}function bd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nr:e.return=vi(e.value,e.length,n);return;case di:return yn([We(e,{value:F(e.value,"@","@"+Y)})],r);case dn:if(e.length)return id(n=e.props,function(o){switch(Fe(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bt(We(e,{props:[F(o,/:(read-\w+)/,":"+zt+"$1")]})),bt(We(e,{props:[o]})),or(e,{props:pi(n,r)});break;case"::placeholder":bt(We(e,{props:[F(o,/:(plac\w+)/,":"+Y+"input-$1")]})),bt(We(e,{props:[F(o,/:(plac\w+)/,":"+zt+"$1")]})),bt(We(e,{props:[F(o,/:(plac\w+)/,Z+"input-$1")]})),bt(We(e,{props:[o]})),or(e,{props:pi(n,r)});break}return""})}}var wd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",bi="active",wi="data-styled-version",vn="6.1.19",lr=`/*!sc*/
|
|
2
|
-
`,bn=typeof window<"u"&&typeof document<"u",
|
|
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,di,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-",ui="comm",dn="rule",er="decl",ad="@import",hi="@keyframes",ld="@layer",fi=Math.abs,tr=String.fromCharCode,nr=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 pi(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 mi(e){return e.length}function Rt(e,t){return t.push(e),e}function dd(e,t){return e.map(t).join("")}function gi(e,t){return e.filter(function(n){return!Fe(n,t)})}var hn=1,yt=1,yi=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 nr(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<yi?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 rr(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,yi=Le(vt=e),Se=0,[]}function pd(e){return vt="",e}function or(e){return pi(mn(Se-1,ir(e===91?e+2:e===40?e+1:e)))}function md(e){for(;(ne=et())&&ne<33;)Ae();return rr(e)>2||rr(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 ir(e){for(;Ae();)switch(ne){case e:return Se;case 34:case 39:e!==34&&e!==39&&ir(ne);break;case 40:e===41&&ir(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)+"*"+tr(e===47?e:Ae())}function vd(e){for(;!rr(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(or(S),"&","&\f"),"&\f",fi(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:A+=or(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?bi(A+";",r,n,c-1,l):bi(L(A," ","")+";",r,n,c-2,l),l);break;case 59:A+=";";default:if(Rt(P=vi(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(vi(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+=tr(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+=or(Ae())),h=et(),u=c=Le(C=A+=vd(pn())),S++;break;case 45:g===45&&Le(A)==2&&(v=0)}}return s}function vi(e,t,n,r,o,s,i,a,l,d,u,c){for(var h=o-1,m=o===0?s:[""],g=mi(m),v=0,k=0,y=0;v<r;++v)for(var S=0,C=gt(e,h+1,h=fi(k=i[v])),T=e;S<g;++S)(T=pi(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,ui,tr(ud()),gt(e,2,-2),0,r)}function bi(e,t,n,r,o){return fn(e,t,n,er,gt(e,0,r),gt(e,r+1,-1),r,o)}function wi(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)?wi(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 er:return e.return=e.return||e.value;case ui:return"";case hi: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=mi(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 er:e.return=wi(e.value,e.length,n);return;case hi: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]})),nr(e,{props:gi(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]})),nr(e,{props:gi(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",xi="active",Si="data-styled-version",vn="6.1.19",sr=`/*!sc*/
|
|
2
|
+
`,bn=typeof window<"u"&&typeof document<"u",Ed=!!(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"),Ci=/invalid hook call/i,wn=new Set,Pd=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
3
|
`)+`You may see this warning because you've called styled inside another component.
|
|
4
4
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
5
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
6
|
-
`,o=console.error;try{var s=!0;console.error=function(i){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];
|
|
6
|
+
`,o=console.error;try{var s=!0;console.error=function(i){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];Ci.test(i)?(s=!1,wn.delete(r)):o.apply(void 0,mt([i],a,!1))},f.useRef(),s&&!wn.has(r)&&(console.warn(r),wn.add(r))}catch(i){Ci.test(i.message)&&wn.delete(r)}finally{console.error=o}}},xn=Object.freeze([]),wt=Object.freeze({});function Ad(e,t,n){return n===void 0&&(n=wt),e.theme!==n.theme&&e.theme||t||n.theme}var ar=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"]),Dd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$d=/(^-|-$)/g;function Ti(e){return e.replace(Dd,"-").replace($d,"")}var Md=/(a)(d)/gi,Sn=52,ki=function(e){return String.fromCharCode(e+(e>25?39:97))};function lr(e){var t,n="";for(t=Math.abs(e);t>Sn;t=t/Sn|0)n=ki(t%Sn)+n;return(ki(t%Sn)+n).replace(Md,"$1-$2")}var cr,Ei=5381,nt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Pi=function(e){return nt(Ei,e)};function Vd(e){return lr(Pi(e)>>>0)}function Ai(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function dr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Di=typeof Symbol=="function"&&Symbol.for,$i=Di?Symbol.for("react.memo"):60115,Id=Di?Symbol.for("react.forward_ref"):60112,Ld={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Nd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Mi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bd=((cr={})[Id]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cr[$i]=Mi,cr);function Vi(e){return("type"in(t=e)&&t.type.$$typeof)===$i?Mi:"$$typeof"in e?Bd[e.$$typeof]:Ld;var t}var Od=Object.defineProperty,Fd=Object.getOwnPropertyNames,Ii=Object.getOwnPropertySymbols,jd=Object.getOwnPropertyDescriptor,zd=Object.getPrototypeOf,Li=Object.prototype;function Ni(e,t,n){if(typeof t!="string"){if(Li){var r=zd(t);r&&r!==Li&&Ni(e,r,n)}var o=Fd(t);Ii&&(o=o.concat(Ii(t)));for(var s=Vi(e),i=Vi(t),a=0;a<o.length;++a){var l=o[a];if(!(l in Nd||n&&n[l]||i&&l in i||s&&l in s)){var d=jd(t,l);try{Od(e,l,d)}catch{}}}}return e}function xt(e){return typeof e=="function"}function ur(e){return typeof e=="object"&&"styledComponentId"in e}function rt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Bi(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function St(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function hr(e,t,n){if(n===void 0&&(n=!1),!n&&!St(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=hr(e[r],t[r]);else if(St(t))for(var r in t)e[r]=hr(e[r],t[r]);return e}function fr(e,t){Object.defineProperty(e,"toString",{value:t})}var Rd=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 Od(){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(Od.apply(void 0,mt([Bd[e]],t,!1)).trim())}var Fd=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw Ct(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),l=(i=0,n.length);i<l;i++)this.tag.insertRule(a,n[i])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,i=o;i<s;i++)n+="".concat(this.tag.getRule(i)).concat(lr);return n},e})(),jd=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>jd))throw Ct(16,"".concat(t));return Cn.set(e,t),Tn.set(t,e),t},zd=function(e,t){kn=t+1,Cn.set(e,t),Tn.set(t,e)},Rd="style[".concat(tt,"][").concat(wi,'="').concat(vn,'"]'),_d=new RegExp("^".concat(tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Hd=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)},Ud=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(lr),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var l=a.match(_d);if(l){var d=0|parseInt(l[1],10),u=l[2];d!==0&&(zd(u,d),Hd(e,u,l[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(a)}}},Ni=function(e){for(var t=document.querySelectorAll(Rd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==bi&&(Ud(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Wd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Bi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(tt,"]")));return l[l.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(tt,bi),r.setAttribute(wi,vn);var i=Wd();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Kd=(function(){function e(t){this.element=Bi(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var i=r[o];if(i.ownerNode===n)return i}throw Ct(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Yd=(function(){function e(t){this.element=Bi(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Gd=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Oi=bn,Xd={isServer:!bn,useCSSOMInjection:!xd},Fi=(function(){function e(t,n,r){t===void 0&&(t=wt),n===void 0&&(n={});var o=this;this.options=ge(ge({},Xd),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&bn&&Oi&&(Oi=!1,Ni(this)),mr(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,l="",d=function(c){var h=(function(y){return Tn.get(y)})(c);if(h===void 0)return"continue";var m=s.names.get(h),g=i.getGroup(c);if(m===void 0||!m.size||g.length===0)return"continue";var v="".concat(tt,".g").concat(c,'[id="').concat(h,'"]'),x="";m!==void 0&&m.forEach(function(y){y.length>0&&(x+="".concat(y,","))}),l+="".concat(g).concat(v,'{content:"').concat(x,'"}').concat(lr)},u=0;u<a;u++)d(u);return l})(o)})}return e.registerId=function(t){return En(t)},e.prototype.rehydrate=function(){!this.server&&bn&&Ni(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ge(ge({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Gd(o):r?new Kd(o):new Yd(o)})(this.options),new Fd(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})(),Zd=/&/g,qd=/^\s*\/\/.*$/gm;function ji(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=ji(n.children,t)),n})}function Jd(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(Zd,n).replace(r,d))}),i.prefix&&u.push(bd),u.push(gd);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 x=h.replace(qd,""),y=pd(g||m?"".concat(g," ").concat(m," { ").concat(x," }"):x);i.namespace&&(y=ji(y,i.namespace));var C=[];return yn(y,yd(u.concat(vd(function(w){return C.push(w)})))),C};return c.hash=l.length?l.reduce(function(h,m){return m.name||Ct(15),nt(h,m.name)},Ti).toString():"",c}var Qd=new Fi,gr=Jd(),zi=f.createContext({shouldForwardProp:void 0,styleSheet:Qd,stylis:gr});zi.Consumer,f.createContext(void 0);function Ri(){return f.useContext(zi)}var _i=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=gr);var i=r.name+s.hash;o.hasNameForId(r.id,i)||o.insertRules(r.id,i,s(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,mr(this,function(){throw Ct(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=gr),this.name+t.hash},e})(),eu=function(e){return e>="A"&&e<="Z"};function Hi(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;eu(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ui=function(e){return e==null||e===!1||e===""},Wi=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Ui(s)&&(Array.isArray(s)&&s.isCss||xt(s)?r.push("".concat(Hi(o),":"),s,";"):St(s)?r.push.apply(r,mt(mt(["".concat(o," {")],Wi(s),!1),["}"],!1)):r.push("".concat(Hi(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in wd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Ui(e))return[];if(fr(e))return[".".concat(e.styledComponentId)];if(xt(e)){if(!xt(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof _i||St(o)||o===null||console.error("".concat(Ei(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ot(o,t,n,r)}var s;return e instanceof _i?n?(e.inject(n,r),[e.getName(r)]):[e]:St(e)?Wi(e):Array.isArray(e)?Array.prototype.concat.apply(xn,e.map(function(i){return ot(i,t,n,r)})):[e.toString()]}function tu(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(xt(n)&&!fr(n))return!1}return!0}var nu=ki(vn),ru=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&tu(t),this.componentId=n,this.baseHash=nt(nu,n),this.baseStyle=r,Fi.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=rt(o,this.staticRulesId);else{var s=Li(ot(this.rules,t,n,r)),i=dr(nt(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,i)){var a=r(s,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,a)}o=rt(o,i),this.staticRulesId=i}else{for(var l=nt(this.baseHash,r.hash),d="",u=0;u<this.rules.length;u++){var c=this.rules[u];if(typeof c=="string")d+=c,process.env.NODE_ENV!=="production"&&(l=nt(l,c));else if(c){var h=Li(ot(c,t,n,r));l=nt(l,h+u),d+=h}}if(d){var m=dr(l>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(d,".".concat(m),void 0,this.componentId)),o=rt(o,m)}}return o},e})(),Ki=f.createContext(void 0);Ki.Consumer;var yr={},Yi=new Set;function ou(e,t,n){var r=fr(e),o=e,s=!hr(e),i=t.attrs,a=i===void 0?xn:i,l=t.componentId,d=l===void 0?(function(A,E){var k=typeof A!="string"?"sc":Si(A);yr[k]=(yr[k]||0)+1;var P="".concat(k,"-").concat(Pd(vn+k+yr[k]));return E?"".concat(E,"-").concat(P):P})(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?(function(A){return hr(A)?"styled.".concat(A):"Styled(".concat(Ei(A),")")})(e):u,h=t.displayName&&t.componentId?"".concat(Si(t.displayName),"-").concat(t.componentId):t.componentId||d,m=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;g=function(A,E){return v(A,E)&&x(A,E)}}else g=v}var y=new ru(n,h,r?o.componentStyle:void 0);function C(A,E){return(function(k,P,D){var N=k.attrs,_=k.componentStyle,$=k.defaultProps,H=k.foldedComponentIds,U=k.styledComponentId,G=k.target,Q=f.useContext(Ki),V=Ri(),I=k.shouldForwardProp||V.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(U);var R=Cd(P,Q,$)||wt,B=(function(X,le,Me){for(var K,be=ge(ge({},le),{className:void 0,theme:Me}),Je=0;Je<X.length;Je+=1){var He=xt(K=X[Je])?K(be):K;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 le.className&&(be.className=rt(be.className,le.className)),be})(N,P,R),z=B.as||G,ie={};for(var se in B)B[se]===void 0||se[0]==="$"||se==="as"||se==="theme"&&B.theme===R||(se==="forwardedAs"?ie.as=B.forwardedAs:I&&!I(se,z)||(ie[se]=B[se],I||process.env.NODE_ENV!=="development"||td(se)||Yi.has(se)||!cr.has(z)||(Yi.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 j=(function(X,le){var Me=Ri(),K=X.generateAndInjectStyles(le,Me.styleSheet,Me.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(K),K})(_,B);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(j);var q=rt(H,U);return j&&(q+=" "+j),B.className&&(q+=" "+B.className),ie[hr(z)&&!cr.has(z)?"class":"className"]=q,D&&(ie.ref=D),f.createElement(z,ie)})(w,A,E)}C.displayName=c;var w=f.forwardRef(C);return w.attrs=m,w.componentStyle=y,w.displayName=c,w.shouldForwardProp=g,w.foldedComponentIds=r?rt(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=h,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?(function(E){for(var k=[],P=1;P<arguments.length;P++)k[P-1]=arguments[P];for(var D=0,N=k;D<N.length;D++)pr(E,N[D],!0);return E})({},o.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(Sd(c,h),w.warnTooManyClasses=(function(A,E){var k={},P=!1;return function(D){if(!P&&(k[D]=!0,Object.keys(k).length>=200)){var N=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(N,`.
|
|
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(sr);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(Si,'="').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(sr),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)}}},Oi=function(e){for(var t=document.querySelectorAll(Kd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==xi&&(Xd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Zd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Fi=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,xi),r.setAttribute(Si,vn);var i=Zd();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},qd=(function(){function e(t){this.element=Fi(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=Fi(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})(),ji=bn,eu={isServer:!bn,useCSSOMInjection:!Ed},zi=(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&&ji&&(ji=!1,Oi(this)),fr(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(sr)},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&&Oi(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 Ri(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=Ri(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=Ri(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)},Ei).toString():"",c}var ou=new zi,pr=ru(),_i=f.createContext({shouldForwardProp:void 0,styleSheet:ou,stylis:pr});_i.Consumer,f.createContext(void 0);function Hi(){return f.useContext(_i)}var Ui=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=pr);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,fr(this,function(){throw Ct(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=pr),this.name+t.hash},e})(),iu=function(e){return e>="A"&&e<="Z"};function Wi(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 Ki=function(e){return e==null||e===!1||e===""},Yi=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Ki(s)&&(Array.isArray(s)&&s.isCss||xt(s)?r.push("".concat(Wi(o),":"),s,";"):St(s)?r.push.apply(r,mt(mt(["".concat(o," {")],Yi(s),!1),["}"],!1)):r.push("".concat(Wi(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(Ki(e))return[];if(ur(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 Ui||St(o)||o===null||console.error("".concat(Ai(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 Ui?n?(e.inject(n,r),[e.getName(r)]):[e]:St(e)?Yi(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)&&!ur(n))return!1}return!0}var au=Pi(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,zi.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=Bi(ot(this.rules,t,n,r)),i=lr(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=Bi(ot(c,t,n,r));l=nt(l,h+u),d+=h}}if(d){var m=lr(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})(),Gi=f.createContext(void 0);Gi.Consumer;var mr={},Xi=new Set;function cu(e,t,n){var r=ur(e),o=e,s=!dr(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":Ti(T);mr[P]=(mr[P]||0)+1;var A="".concat(P,"-").concat(Vd(vn+P+mr[P]));return w?"".concat(w,"-").concat(A):A})(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?(function(T){return dr(T)?"styled.".concat(T):"Styled(".concat(Ai(T),")")})(e):u,h=t.displayName&&t.componentId?"".concat(Ti(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(Gi),O=Hi(),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)||Xi.has(oe)||!ar.has(Y)||(Xi.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=Hi(),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[dr(Y)&&!ar.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++)hr(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,`.
|
|
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,11 +53,11 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),
|
|
56
|
+
<Component />`),A=!0,P={}}}})(c,h)),fr(C,function(){return".".concat(C.styledComponentId)}),s&&Ni(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function Zi(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var qi=function(e){return Object.assign(e,{isCss:!0})};function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(xt(e)||St(e))return qi(ot(Zi(xn,mt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):qi(ot(Zi(r,t)))}function gr(e,t,n){if(n===void 0&&(n=wt),!t)throw Ct(1,t);var r=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,n,b.apply(void 0,mt([o],s,!1)))};return r.attrs=function(o){return gr(e,t,ge(ge({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return gr(e,t,ge(ge({},n),o))},r}var Ji=function(e){return gr(cu,e)},x=Ji;ar.forEach(function(e){x[e]=Ji(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
57
|
Perhaps you're looking to import 'styled-components/native'?
|
|
58
58
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Pn="__sc-".concat(tt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Pn]||(window[Pn]=0),window[Pn]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
59
59
|
|
|
60
|
-
See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const yr={80:b`
|
|
61
61
|
font-family: 'Dax', serif;
|
|
62
62
|
font-size: 5em;
|
|
63
63
|
font-style: normal;
|
|
@@ -99,7 +99,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
99
99
|
font-style: normal;
|
|
100
100
|
font-weight: 700;
|
|
101
101
|
line-height: 161.76%;
|
|
102
|
-
`},
|
|
102
|
+
`},Qi={80:b`
|
|
103
103
|
font-family: 'Dax', serif;
|
|
104
104
|
font-size: 5em;
|
|
105
105
|
font-style: normal;
|
|
@@ -141,7 +141,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
141
141
|
font-style: normal;
|
|
142
142
|
font-weight: 400;
|
|
143
143
|
line-height: 161.76%;
|
|
144
|
-
`},
|
|
144
|
+
`},M={80:b`
|
|
145
145
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
146
146
|
font-size: 5em;
|
|
147
147
|
font-style: normal;
|
|
@@ -201,19 +201,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
201
201
|
font-style: normal;
|
|
202
202
|
font-weight: 400;
|
|
203
203
|
line-height: 133%;
|
|
204
|
-
`},An=
|
|
205
|
-
${({size:e=24})=>
|
|
204
|
+
`},An=x.h1`
|
|
205
|
+
${({size:e=24})=>yr[e]}
|
|
206
206
|
margin: 0;
|
|
207
207
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
208
|
-
`,
|
|
209
|
-
${({size:e=24})=>
|
|
208
|
+
`,du=x.h2`
|
|
209
|
+
${({size:e=24})=>Qi[e]}
|
|
210
210
|
margin: 0;
|
|
211
211
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
212
|
-
`,Ne=
|
|
213
|
-
${({size:e=16})=>
|
|
212
|
+
`,Ne=x.span`
|
|
213
|
+
${({size:e=16})=>M[e]}
|
|
214
214
|
margin: 0;
|
|
215
215
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
216
|
-
`,
|
|
216
|
+
`,uu=x.span`
|
|
217
217
|
display: inline-flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
justify-content: center;
|
|
@@ -223,7 +223,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
223
223
|
outline: none;
|
|
224
224
|
box-shadow: var(--shadow-hover-black-card);
|
|
225
225
|
}
|
|
226
|
-
`,Ji={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},W=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const s=typeof t=="string"&&t in Ji?Ji[t]:t;return p.jsx(su,{$color:n,className:r,children:typeof e=="function"?p.jsx(e,{size:s,...o}):e})},wr=f.createContext({});function xr(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const Sr=typeof window<"u",Qi=Sr?f.useLayoutEffect:f.useEffect,Dn=f.createContext(null);function Cr(e,t){e.indexOf(t)===-1&&e.push(t)}function Tr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const je=(e,t,n)=>n>t?t:n<e?e:n;function kr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Tt=()=>{},ze=()=>{};process.env.NODE_ENV!=="production"&&(Tt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(kr(t,n))},ze=(e,t,n)=>{if(!e)throw new Error(kr(t,n))});const Re={},es=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ts(e){return typeof e=="object"&&e!==null}const ns=e=>/^0[^.\s]+$/u.test(e);function Er(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,au=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(au),Ht=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Pr{constructor(){this.subscriptions=[]}add(t){return Cr(this.subscriptions,t),()=>Tr(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Te=e=>e/1e3;function rs(e,t){return t?e*(1e3/t):0}const os=new Set;function Ar(e,t,n){e||os.has(t)||(console.warn(kr(t,n)),os.add(t))}const is=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,lu=1e-7,cu=12;function du(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=is(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>lu&&++a<cu);return i}function Ut(e,t,n,r){if(e===t&&n===r)return Ce;const o=s=>du(s,0,1,e,n);return s=>s===0||s===1?s:is(o(s),t,r)}const ss=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,as=e=>t=>1-e(1-t),ls=Ut(.33,1.53,.69,.99),Dr=as(ls),cs=ss(Dr),ds=e=>(e*=2)<1?.5*Dr(e):.5*(2-Math.pow(2,-10*(e-1))),$r=e=>1-Math.sin(Math.acos(e)),us=as($r),hs=ss($r),uu=Ut(.42,0,1,1),hu=Ut(0,0,.58,1),fs=Ut(.42,0,.58,1),fu=e=>Array.isArray(e)&&typeof e[0]!="number",ps=e=>Array.isArray(e)&&typeof e[0]=="number",ms={linear:Ce,easeIn:uu,easeInOut:fs,easeOut:hu,circIn:$r,circInOut:hs,circOut:us,backIn:Dr,backInOut:cs,backOut:ls,anticipate:ds},pu=e=>typeof e=="string",gs=e=>{if(ps(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(pu(e))return ze(ms[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ms[e];return e},$n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mu(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 gu=40;function ys(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=$n.reduce((w,A)=>(w[A]=mu(s),w),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:m,postRender:g}=i,v=()=>{const w=Re.useManualTiming?o.timestamp:performance.now();n=!1,Re.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,gu),1)),o.timestamp=w,o.isProcessing=!0,a.process(o),l.process(o),d.process(o),u.process(o),c.process(o),h.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},x=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:$n.reduce((w,A)=>{const E=i[A];return w[A]=(k,P=!1,D=!1)=>(n||x(),E.schedule(k,P,D)),w},{}),cancel:w=>{for(let A=0;A<$n.length;A++)i[$n[A]].cancel(w)},state:o,steps:i}}const{schedule:J,cancel:Ke,state:de,steps:Mr}=ys(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let Mn;function yu(){Mn=void 0}const ye={now:()=>(Mn===void 0&&ye.set(de.isProcessing||Re.useManualTiming?de.timestamp:performance.now()),Mn),set:e=>{Mn=e,queueMicrotask(yu)}},vs=e=>t=>typeof t=="string"&&t.startsWith(e),Vr=vs("--"),vu=vs("var(--"),Ir=e=>vu(e)?bu.test(e.split("/*")[0].trim()):!1,bu=/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,Lr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wu(e){return e==null}const xu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nr=(e,t)=>n=>!!(typeof n=="string"&&xu.test(n)&&n.startsWith(e)||t&&!wu(n)&&Object.prototype.hasOwnProperty.call(n,t)),bs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(Lr);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Su=e=>je(0,255,e),Br={...kt,transform:e=>Math.round(Su(e))},it={test:Nr("rgb","red"),parse:bs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Br.transform(e)+", "+Br.transform(t)+", "+Br.transform(n)+", "+Kt(Wt.transform(r))+")"};function Cu(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Or={test:Nr("#"),parse:Cu,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("%"),M=Yt("px"),Tu=Yt("vh"),ku=Yt("vw"),ws={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},Et={test:Nr("hsl","hue"),parse:bs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(Kt(t))+", "+Be.transform(Kt(n))+", "+Kt(Wt.transform(r))+")"},oe={test:e=>it.test(e)||Or.test(e)||Et.test(e),parse:e=>it.test(e)?it.parse(e):Et.test(e)?Et.parse(e):Or.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?it.transform(e):Et.transform(e),getAnimatableNone:e=>{const t=oe.parse(e);return t.alpha=0,oe.transform(t)}},Eu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pu(e){return isNaN(e)&&typeof e=="string"&&(e.match(Lr)?.length||0)+(e.match(Eu)?.length||0)>0}const xs="number",Ss="color",Au="var",Du="var(",Cs="${}",$u=/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($u,l=>(oe.test(l)?(r.color.push(s),o.push(Ss),n.push(oe.parse(l))):l.startsWith(Du)?(r.var.push(s),o.push(Au),n.push(l)):(r.number.push(s),o.push(xs),n.push(parseFloat(l))),++s,Cs)).split(Cs);return{values:n,split:a,indexes:r,types:o}}function Ts(e){return Gt(e).values}function ks(e){const{split:t,types:n}=Gt(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===xs?s+=Kt(o[i]):a===Ss?s+=oe.transform(o[i]):s+=o[i]}return s}}const Mu=e=>typeof e=="number"?0:oe.test(e)?oe.getAnimatableNone(e):e;function Vu(e){const t=Ts(e);return ks(e)(t.map(Mu))}const Ge={test:Pu,parse:Ts,createTransformer:ks,getAnimatableNone:Vu};function Fr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Iu({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Fr(l,a,e+1/3),s=Fr(l,a,e),i=Fr(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function In(e,t){return n=>n>0?t:e}const ee=(e,t,n)=>e+(t-e)*n,jr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Lu=[Or,it,Et],Nu=e=>Lu.find(t=>t.test(e));function Es(e){const t=Nu(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=Iu(n)),n}const Ps=(e,t)=>{const n=Es(e),r=Es(t);if(!n||!r)return In(e,t);const o={...n};return s=>(o.red=jr(n.red,r.red,s),o.green=jr(n.green,r.green,s),o.blue=jr(n.blue,r.blue,s),o.alpha=ee(n.alpha,r.alpha,s),it.transform(o))},zr=new Set(["none","hidden"]);function Bu(e,t){return zr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ou(e,t){return n=>ee(e,t,n)}function Rr(e){return typeof e=="number"?Ou:typeof e=="string"?Ir(e)?In:oe.test(e)?Ps:zu:Array.isArray(e)?As:typeof e=="object"?oe.test(e)?Ps:Fu:In}function As(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>Rr(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function Fu(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Rr(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function ju(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 zu=(e,t)=>{const n=Ge.createTransformer(t),r=Gt(e),o=Gt(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?zr.has(e)&&!o.values.length||zr.has(t)&&!r.values.length?Bu(e,t):_t(As(ju(r,o),o.values),n):(Tt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),In(e,t))};function Ds(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):Rr(e)(e,t)}const Ru=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>J.update(t,n),stop:()=>Ke(t),now:()=>de.isProcessing?de.timestamp:ye.now()}},$s=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ln=2e4;function _r(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ln;)t+=n,r=e.next(t);return t>=Ln?1/0:t}function _u(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(_r(r),Ln);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Te(o)}}const Hu=5;function Ms(e,t,n){const r=Math.max(t-Hu,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},Hr=.001;function Uu({duration:e=te.duration,bounce:t=te.bounce,velocity:n=te.velocity,mass:r=te.mass}){let o,s;Tt(e<=De(te.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=je(te.minDamping,te.maxDamping,i),e=je(te.minDuration,te.maxDuration,Te(e)),i<1?(o=d=>{const u=d*i,c=u*e,h=u-n,m=Ur(d,i),g=Math.exp(-c);return Hr-h/m*g},s=d=>{const c=d*i*e,h=c*n+n,m=Math.pow(i,2)*Math.pow(d,2)*e,g=Math.exp(-c),v=Ur(Math.pow(d,2),i);return(-o(d)+Hr>0?-1:1)*((h-m)*g)/v}):(o=d=>{const u=Math.exp(-d*e),c=(d-n)*e+1;return-Hr+u*c},s=d=>{const u=Math.exp(-d*e),c=(n-d)*(e*e);return u*c});const a=5/e,l=Ku(o,s,a);if(e=De(e),isNaN(l))return{stiffness:te.stiffness,damping:te.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:i*2*Math.sqrt(r*d),duration:e}}}const Wu=12;function Ku(e,t,n){let r=n;for(let o=1;o<Wu;o++)r=r-e(r)/t(r);return r}function Ur(e,t){return e*Math.sqrt(1-t*t)}const Yu=["duration","bounce"],Gu=["stiffness","damping","mass"];function Vs(e,t){return t.some(n=>e[n]!==void 0)}function Xu(e){let t={velocity:te.velocity,stiffness:te.stiffness,damping:te.damping,mass:te.mass,isResolvedFromDuration:!1,...e};if(!Vs(e,Gu)&&Vs(e,Yu))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:te.mass,stiffness:o,damping:s}}else{const n=Uu(e);t={...t,...n,mass:te.mass},t.isResolvedFromDuration=!0}return t}function Nn(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 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}=Xu({...n,velocity:-Te(n.velocity||0)}),g=h||0,v=d/(2*Math.sqrt(l*u)),x=i-s,y=Te(Math.sqrt(l/u)),C=Math.abs(x)<5;r||(r=C?te.restSpeed.granular:te.restSpeed.default),o||(o=C?te.restDelta.granular:te.restDelta.default);let w;if(v<1){const E=Ur(y,v);w=k=>{const P=Math.exp(-v*y*k);return i-P*((g+v*y*x)/E*Math.sin(E*k)+x*Math.cos(E*k))}}else if(v===1)w=E=>i-Math.exp(-y*E)*(x+(g+y*x)*E);else{const E=y*Math.sqrt(v*v-1);w=k=>{const P=Math.exp(-v*y*k),D=Math.min(E*k,300);return i-P*((g+v*y*x)*Math.sinh(D)+E*x*Math.cosh(D))/E}}const A={calculatedDuration:m&&c||null,next:E=>{const k=w(E);if(m)a.done=E>=c;else{let P=E===0?g:0;v<1&&(P=E===0?De(g):Ms(w,E,k));const D=Math.abs(P)<=r,N=Math.abs(i-k)<=o;a.done=D&&N}return a.value=a.done?i:k,a},toString:()=>{const E=Math.min(_r(A),Ln),k=$s(P=>A.next(E*P).value,E,30);return E+"ms "+k},toTransition:()=>{}};return A}Nn.applyToOptions=e=>{const t=_u(e,100,Nn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function Wr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:d=.5,restSpeed:u}){const c=e[0],h={done:!1,value:c},m=D=>a!==void 0&&D<a||l!==void 0&&D>l,g=D=>a===void 0?l:l===void 0||Math.abs(a-D)<Math.abs(l-D)?a:l;let v=n*t;const x=c+v,y=i===void 0?x:i(x);y!==x&&(v=y-c);const C=D=>-v*Math.exp(-D/r),w=D=>y+C(D),A=D=>{const N=C(D),_=w(D);h.done=Math.abs(N)<=d,h.value=h.done?y:_};let E,k;const P=D=>{m(h.value)&&(E=D,k=Nn({keyframes:[h.value,g(h.value)],velocity:Ms(w,D,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return P(0),{calculatedDuration:null,next:D=>{let N=!1;return!k&&E===void 0&&(N=!0,A(D),P(D)),E!==void 0&&D>=E?k.next(D-E):(!N&&A(D),h)}}}function Zu(e,t,n){const r=[],o=n||Re.mix||Ds,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Ce:t;a=_t(l,a)}r.push(a)}return r}function qu(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=Zu(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 Ju(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ht(0,t,r);e.push(ee(n,1,o))}}function Qu(e){const t=[0];return Ju(t,e.length-1),t}function eh(e,t){return e.map(n=>n*t)}function th(e,t){return e.map(()=>t||fs).splice(0,e.length-1)}function Pt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=fu(r)?r.map(gs):gs(r),s={done:!1,value:t[0]},i=eh(n&&n.length===t.length?n:Qu(t),e),a=qu(i,t,{ease:Array.isArray(o)?o:th(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const nh=e=>e!==null;function Kr(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(nh),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const rh={decay:Wr,inertia:Wr,tween:Pt,keyframes:Pt,spring:Nn};function Is(e){typeof e.type=="string"&&(e.type=rh[e.type])}class Yr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const oh=e=>e/100;class Gr extends Yr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ye.now()&&this.tick(ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Is(t);const{type:n=Pt,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const l=n||Pt;process.env.NODE_ENV!=="production"&&l!==Pt&&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(oh,Ds(a[0],a[1])),a=[0,100]);const d=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=_r(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:m,type:g,onUpdate:v,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,A=r;if(c){const D=Math.min(this.currentTime,o)/a;let N=Math.floor(D),_=D%1;!_&&D>=1&&(_=1),_===1&&N--,N=Math.min(N,c+1),!!(N%2)&&(h==="reverse"?(_=1-_,m&&(_-=m/a)):h==="mirror"&&(A=i)),w=je(0,1,_)*a}const E=C?{done:!1,value:u[0]}:A.next(w);s&&(E.value=s(E.value));let{done:k}=E;!C&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&g!==Wr&&(E.value=Kr(u,this.options,x,this.speed)),v&&v(E.value),P&&this.finish(),E}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=Ru,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 ih(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const st=e=>e*180/Math.PI,Xr=e=>{const t=st(Math.atan2(e[1],e[0]));return Zr(t)},sh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xr,rotateZ:Xr,skewX:e=>st(Math.atan(e[1])),skewY:e=>st(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Zr=e=>(e=e%360,e<0&&(e+=360),e),Ls=Xr,Ns=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ah={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ns,scaleY:Bs,scale:e=>(Ns(e)+Bs(e))/2,rotateX:e=>Zr(st(Math.atan2(e[6],e[5]))),rotateY:e=>Zr(st(Math.atan2(-e[2],e[0]))),rotateZ:Ls,rotate:Ls,skewX:e=>st(Math.atan(e[4])),skewY:e=>st(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qr(e){return e.includes("scale")?1:0}function Jr(e,t){if(!e||e==="none")return qr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=ah,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=sh,o=a}if(!o)return qr(t);const s=r[t],i=o[1].split(",").map(ch);return typeof s=="function"?s(i):i[s]}const lh=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jr(n,t)};function ch(e){return parseFloat(e.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dt=new Set(At),Os=e=>e===kt||e===M,dh=new Set(["x","y","z"]),uh=At.filter(e=>!dh.has(e));function hh(e){const t=[];return uh.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const at={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jr(t,"x"),y:(e,{transform:t})=>Jr(t,"y")};at.translateX=at.x,at.translateY=at.y;const lt=new Set;let Qr=!1,eo=!1,to=!1;function Fs(){if(eo){const e=Array.from(lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=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(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}eo=!1,Qr=!1,lt.forEach(e=>e.complete(to)),lt.clear()}function js(){lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eo=!0)})}function fh(){to=!0,js(),Fs(),to=!1}class no{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(lt.add(this),Qr||(Qr=!0,J.read(js),J.resolveKeyframes(Fs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}ih(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 ph=e=>e.startsWith("--");function mh(e,t,n){ph(t)?e.style.setProperty(t,n):e.style[t]=n}const gh=Er(()=>window.ScrollTimeline!==void 0),yh={};function vh(e,t){const n=Er(e);return()=>yh[t]??n()}const zs=vh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Rs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xt([0,.65,.55,1]),circOut:Xt([.55,0,1,.45]),backIn:Xt([.31,.01,.66,-.59]),backOut:Xt([.33,1.53,.69,.99])};function _s(e,t){if(e)return typeof e=="function"?zs()?$s(e,t):"ease-out":ps(e)?Xt(e):Array.isArray(e)?e.map(n=>_s(n,t)||Rs.easeOut):Rs[e]}function bh(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:l}={},d=void 0){const u={[t]:n};l&&(u.offset=l);const c=_s(a,o);Array.isArray(c)&&(u.easing=c);const h={delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Hs(e){return typeof e=="function"&&"applyToOptions"in e}function wh({type:e,...t}){return Hs(e)&&zs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class xh extends Yr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,ze(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=wh(t);this.animation=bh(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Kr(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):mh(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&&gh()?(this.animation.timeline=t,Ce):n(this)}}const Us={anticipate:ds,backInOut:cs,circInOut:hs};function Sh(e){return e in Us}function Ch(e){typeof e.ease=="string"&&Sh(e.ease)&&(e.ease=Us[e.ease])}const Ws=10;class Th extends xh{constructor(t){Ch(t),Is(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Gr({...i,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ws).value,a.sample(l).value,Ws),a.stop()}}const Ks=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ge.test(e)||e==="0")&&!e.startsWith("url("));function kh(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 Eh(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=Ks(o,t),a=Ks(s,t);return Tt(i===a,`You are trying to animate ${t} from "${o}" to "${s}". "${i?s:o}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:kh(e)||(n==="spring"||Hs(n))&&r}function ro(e){e.duration=0,e.type="keyframes"}const Ph=new Set(["opacity","clipPath","filter","transform"]),Ah=Er(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Dh(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 Ah()&&n&&Ph.has(n)&&(n!=="transform"||!d)&&!l&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const $h=40;class Mh extends Yr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:l,motionValue:d,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ye.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:l,motionValue:d,element:u,...c},m=u?.KeyframeResolver||no;this.keyframeResolver=new m(a,(g,v,x)=>this.onKeyframesResolved(g,v,h,!x),l,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:l,isHandoff:d,onUpdate:u}=r;this.resolvedAt=ye.now(),Eh(t,s,i,a)||((Re.instantAnimations||!l)&&u?.(Kr(t,r,n)),t[0]=t[t.length-1],ro(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>$h?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&Dh(h)?new Th({...h,element:h.motionValue.owner.current}):new Gr(h);m.finished.then(()=>this.notifyFinished()).catch(Ce),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),fh()),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 Vh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ih(e){const t=Vh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Lh=4;function Ys(e,t,n=1){ze(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]=Ih(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return es(i)?parseFloat(i):i}return Ir(o)?Ys(o,t,n+1):o}function oo(e,t){return e?.[t]??e?.default??e}const Gs=new Set(["width","height","top","left","right","bottom",...At]),Nh={test:e=>e==="auto",parse:e=>e},Xs=e=>t=>t.test(e),Zs=[kt,M,Be,Ye,ku,Tu,Nh],qs=e=>Zs.find(Xs(e));function Bh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ns(e):!0}const Oh=new Set(["brightness","contrast","saturate","opacity"]);function Fh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lr)||[];if(!r)return e;const o=n.replace(r,"");let s=Oh.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const jh=/\b([a-z-]*)\(.*?\)/gu,io={...Ge,getAnimatableNone:e=>{const t=e.match(jh);return t?t.map(Fh).join(" "):e}},Js={...kt,transform:Math.round},so={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,backgroundPositionX:M,backgroundPositionY:M,...{rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Vn,scaleX:Vn,scaleY:Vn,scaleZ:Vn,skew:Ye,skewX:Ye,skewY:Ye,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Wt,originX:ws,originY:ws,originZ:M},zIndex:Js,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:Js},zh={...so,color:oe,backgroundColor:oe,outlineColor:oe,fill:oe,stroke:oe,borderColor:oe,borderTopColor:oe,borderRightColor:oe,borderBottomColor:oe,borderLeftColor:oe,filter:io,WebkitFilter:io},Qs=e=>zh[e];function ea(e,t){let n=Qs(e);return n!==io&&(n=Ge),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Rh=new Set(["auto","none","0"]);function _h(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!Rh.has(s)&&Gt(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ea(n,o)}class Hh extends no{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),Ir(d))){const u=Ys(d,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Gs.has(r)||t.length!==2)return;const[o,s]=t,i=qs(o),a=qs(s);if(i!==a)if(Os(i)&&Os(a))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else at[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Bh(t[o]))&&r.push(o);r.length&&_h(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 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 ta=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function na(e){return ts(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=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=Wh(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ar(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Pr);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ra)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ra);return rs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function $t(e,t){return new Kh(e,t)}const{schedule:ao}=ys(queueMicrotask,!1),$e={x:!1,y:!1};function oa(){return $e.x||$e.y}function Yh(e){return e==="x"||e==="y"?$e[e]?null:($e[e]=!0,()=>{$e[e]=!1}):$e.x||$e.y?null:($e.x=$e.y=!0,()=>{$e.x=$e.y=!1})}function ia(e,t){const n=Uh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function sa(e){return!(e.pointerType==="touch"||oa())}function Gh(e,t,n={}){const[r,o,s]=ia(e,n),i=a=>{if(!sa(a))return;const{target:l}=a,d=t(l,a);if(typeof d!="function"||!l)return;const u=c=>{sa(c)&&(d(c),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const aa=(e,t)=>t?e===t?!0:aa(e,t.parentElement):!1,lo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Xh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Zh(e){return Xh.has(e.tagName)||e.tabIndex!==-1}const Bn=new WeakSet;function la(e){return t=>{t.key==="Enter"&&e(t)}}function co(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const qh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=la(()=>{if(Bn.has(n))return;co(n,"down");const o=la(()=>{co(n,"up")}),s=()=>co(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ca(e){return lo(e)&&!oa()}function Jh(e,t,n={}){const[r,o,s]=ia(e,n),i=a=>{const l=a.currentTarget;if(!ca(a))return;Bn.add(l);const d=t(l,a),u=(m,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",h),Bn.has(l)&&Bn.delete(l),ca(m)&&typeof d=="function"&&d(m,{success:g})},c=m=>{u(m,l===window||l===document||n.useGlobalTarget||aa(l,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),na(a)&&(a.addEventListener("focus",d=>qh(d,o)),!Zh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function da(e){return ts(e)&&"ownerSVGElement"in e}function Qh(e){return da(e)&&e.tagName==="svg"}const he=e=>!!(e&&e.getVelocity),ef=[...Zs,oe,Ge],tf=e=>ef.find(Xs(e)),uo=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ua(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nf(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ua(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ua(e[o],null)}}}}function rf(...e){return cn.useCallback(nf(...e),e)}class of extends cn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=na(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function sf({children:e,isPresent:t,anchorX:n,root:r}){const o=f.useId(),s=f.useRef(null),i=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(uo),l=rf(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 x=r??document.head;return x.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
226
|
+
`,es={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 es?es[t]:t;return p.jsx(uu,{$color:n,className:r,children:typeof e=="function"?p.jsx(e,{size:s,...o}):e})},vr=f.createContext({});function br(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const wr=typeof window<"u",ts=wr?f.useLayoutEffect:f.useEffect,Dn=f.createContext(null);function xr(e,t){e.indexOf(t)===-1&&e.push(t)}function Sr(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 Cr(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(Cr(t,n))},ze=(e,t,n)=>{if(!e)throw new Error(Cr(t,n))});const Re={},ns=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function rs(e){return typeof e=="object"&&e!==null}const os=e=>/^0[^.\s]+$/u.test(e);function Tr(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 kr{constructor(){this.subscriptions=[]}add(t){return xr(this.subscriptions,t),()=>Sr(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 is(e,t){return t?e*(1e3/t):0}const ss=new Set;function Er(e,t,n){e||ss.has(t)||(console.warn(Cr(t,n)),ss.add(t))}const as=(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=as(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:as(o(s),t,r)}const ls=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,cs=e=>t=>1-e(1-t),ds=Ut(.33,1.53,.69,.99),Pr=cs(ds),us=ls(Pr),hs=e=>(e*=2)<1?.5*Pr(e):.5*(2-Math.pow(2,-10*(e-1))),Ar=e=>1-Math.sin(Math.acos(e)),fs=cs(Ar),ps=ls(Ar),gu=Ut(.42,0,1,1),yu=Ut(0,0,.58,1),ms=Ut(.42,0,.58,1),vu=e=>Array.isArray(e)&&typeof e[0]!="number",gs=e=>Array.isArray(e)&&typeof e[0]=="number",ys={linear:Ce,easeIn:gu,easeInOut:ms,easeOut:yu,circIn:Ar,circInOut:ps,circOut:fs,backIn:Pr,backInOut:us,backOut:ds,anticipate:hs},bu=e=>typeof e=="string",vs=e=>{if(gs(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(ys[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ys[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 bs(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:Dr}=bs(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)}},ws=e=>t=>typeof t=="string"&&t.startsWith(e),$r=ws("--"),Cu=ws("var(--"),Mr=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,Vr=/-?(?:\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,Ir=(e,t)=>n=>!!(typeof n=="string"&&Eu.test(n)&&n.startsWith(e)||t&&!ku(n)&&Object.prototype.hasOwnProperty.call(n,t)),xs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(Vr);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Pu=e=>je(0,255,e),Lr={...kt,transform:e=>Math.round(Pu(e))},it={test:Ir("rgb","red"),parse:xs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Lr.transform(e)+", "+Lr.transform(t)+", "+Lr.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 Nr={test:Ir("#"),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"),Ss={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},Et={test:Ir("hsl","hue"),parse:xs("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)||Nr.test(e)||Et.test(e),parse:e=>it.test(e)?it.parse(e):Et.test(e)?Et.parse(e):Nr.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(Vr)?.length||0)+(e.match(Mu)?.length||0)>0}const Cs="number",Ts="color",Iu="var",Lu="var(",ks="${}",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(Ts),n.push(re.parse(l))):l.startsWith(Lu)?(r.var.push(s),o.push(Iu),n.push(l)):(r.number.push(s),o.push(Cs),n.push(parseFloat(l))),++s,ks)).split(ks);return{values:n,split:a,indexes:r,types:o}}function Es(e){return Gt(e).values}function Ps(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===Cs?s+=Kt(o[i]):a===Ts?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=Es(e);return Ps(e)(t.map(Bu))}const Ge={test:Vu,parse:Es,createTransformer:Ps,getAnimatableNone:Ou};function Br(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=Br(l,a,e+1/3),s=Br(l,a,e),i=Br(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,Or=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},ju=[Nr,it,Et],zu=e=>ju.find(t=>t.test(e));function As(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 Ds=(e,t)=>{const n=As(e),r=As(t);if(!n||!r)return In(e,t);const o={...n};return s=>(o.red=Or(n.red,r.red,s),o.green=Or(n.green,r.green,s),o.blue=Or(n.blue,r.blue,s),o.alpha=J(n.alpha,r.alpha,s),it.transform(o))},Fr=new Set(["none","hidden"]);function Ru(e,t){return Fr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _u(e,t){return n=>J(e,t,n)}function jr(e){return typeof e=="number"?_u:typeof e=="string"?Mr(e)?In:re.test(e)?Ds:Wu:Array.isArray(e)?$s:typeof e=="object"?re.test(e)?Ds:Hu:In}function $s(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>jr(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]=jr(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?Fr.has(e)&&!o.values.length||Fr.has(t)&&!r.values.length?Ru(e,t):_t($s(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 Ms(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):jr(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()}},Vs=(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 zr(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(zr(r),Ln);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Te(o)}}const Gu=5;function Is(e,t,n){const r=Math.max(t-Gu,0);return is(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},Rr=.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=_r(d,i),g=Math.exp(-c);return Rr-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=_r(Math.pow(d,2),i);return(-o(d)+Rr>0?-1:1)*((h-m)*g)/v}):(o=d=>{const u=Math.exp(-d*e),c=(d-n)*e+1;return-Rr+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 _r(e,t){return e*Math.sqrt(1-t*t)}const Ju=["duration","bounce"],Qu=["stiffness","damping","mass"];function Ls(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(!Ls(e,Qu)&&Ls(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=_r(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):Is(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(zr(T),Ln),P=Vs(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 Hr({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:Is(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||Ms,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||ms).splice(0,e.length-1)}function Pt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=vu(r)?r.map(vs):vs(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 Ur(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:Hr,inertia:Hr,tween:Pt,keyframes:Pt,spring:Nn};function Ns(e){typeof e.type=="string"&&(e.type=lh[e.type])}class Wr{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 Kr extends Wr{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;Ns(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,Ms(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=zr(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!==Hr&&(w.value=Ur(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,Yr=e=>{const t=st(Math.atan2(e[1],e[0]));return Gr(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:Yr,rotateZ:Yr,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},Gr=e=>(e=e%360,e<0&&(e+=360),e),Bs=Yr,Os=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Fs=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:Os,scaleY:Fs,scale:e=>(Os(e)+Fs(e))/2,rotateX:e=>Gr(st(Math.atan2(e[6],e[5]))),rotateY:e=>Gr(st(Math.atan2(-e[2],e[0]))),rotateZ:Bs,rotate:Bs,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 Xr(e){return e.includes("scale")?1:0}function Zr(e,t){if(!e||e==="none")return Xr(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 Xr(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 Zr(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),js=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})=>Zr(t,"x"),y:(e,{transform:t})=>Zr(t,"y")};at.translateX=at.x,at.translateY=at.y;const lt=new Set;let qr=!1,Jr=!1,Qr=!1;function zs(){if(Jr){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)})}Jr=!1,qr=!1,lt.forEach(e=>e.complete(Qr)),lt.clear()}function Rs(){lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jr=!0)})}function vh(){Qr=!0,Rs(),zs(),Qr=!1}class eo{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(lt.add(this),qr||(qr=!0,Z.read(Rs),Z.resolveKeyframes(zs))):(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=Tr(()=>window.ScrollTimeline!==void 0),Sh={};function Ch(e,t){const n=Tr(e);return()=>Sh[t]??n()}const _s=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})`,Hs={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 Us(e,t){if(e)return typeof e=="function"?_s()?Vs(e,t):"ease-out":gs(e)?Xt(e):Array.isArray(e)?e.map(n=>Us(n,t)||Hs.easeOut):Hs[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=Us(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 Ws(e){return typeof e=="function"&&"applyToOptions"in e}function kh({type:e,...t}){return Ws(e)&&_s()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Eh extends Wr{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=Ur(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 Ks={anticipate:hs,backInOut:us,circInOut:ps};function Ph(e){return e in Ks}function Ah(e){typeof e.ease=="string"&&Ph(e.ease)&&(e.ease=Ks[e.ease])}const Ys=10;class Dh extends Eh{constructor(t){Ah(t),Ns(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 Kr({...i,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ys).value,a.sample(l).value,Ys),a.stop()}}const Gs=(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=Gs(o,t),a=Gs(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"||Ws(n))&&r}function to(e){e.duration=0,e.type="keyframes"}const Vh=new Set(["opacity","clipPath","filter","transform"]),Ih=Tr(()=>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 Wr{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||eo;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?.(Ur(t,r,n)),t[0]=t[t.length-1],to(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 Kr(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 Xs(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 ns(i)?parseFloat(i):i}return Mr(o)?Xs(o,t,n+1):o}function no(e,t){return e?.[t]??e?.default??e}const Zs=new Set(["width","height","top","left","right","bottom",...At]),zh={test:e=>e==="auto",parse:e=>e},qs=e=>t=>t.test(e),Js=[kt,$,Be,Ye,$u,Du,zh],Qs=e=>Js.find(qs(e));function Rh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||os(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(Vr)||[];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,ro={...Ge,getAnimatableNone:e=>{const t=e.match(Uh);return t?t.map(Hh).join(" "):e}},ea={...kt,transform:Math.round},oo={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:Ss,originY:Ss,originZ:$},zIndex:ea,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:ea},Wh={...oo,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:ro,WebkitFilter:ro},ta=e=>Wh[e];function na(e,t){let n=ta(e);return n!==ro&&(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]=na(n,o)}class Gh extends eo{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(),Mr(d))){const u=Xs(d,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Zs.has(r)||t.length!==2)return;const[o,s]=t,i=Qs(o),a=Qs(s);if(i!==a)if(js(i)&&js(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 ra=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function oa(e){return rs(e)&&"offsetHeight"in e}const ia=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"&&Er(!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 kr);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>ia)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ia);return is(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:io}=bs(queueMicrotask,!1),$e={x:!1,y:!1};function sa(){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 aa(e,t){const n=Xh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function la(e){return!(e.pointerType==="touch"||sa())}function Qh(e,t,n={}){const[r,o,s]=aa(e,n),i=a=>{if(!la(a))return;const{target:l}=a,d=t(l,a);if(typeof d!="function"||!l)return;const u=c=>{la(c)&&(d(c),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const ca=(e,t)=>t?e===t?!0:ca(e,t.parentElement):!1,so=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 da(e){return t=>{t.key==="Enter"&&e(t)}}function ao(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=da(()=>{if(Bn.has(n))return;ao(n,"down");const o=da(()=>{ao(n,"up")}),s=()=>ao(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 ua(e){return so(e)&&!sa()}function rf(e,t,n={}){const[r,o,s]=aa(e,n),i=a=>{const l=a.currentTarget;if(!ua(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),ua(m)&&typeof d=="function"&&d(m,{success:g})},c=m=>{u(m,l===window||l===document||n.useGlobalTarget||ca(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),oa(a)&&(a.addEventListener("focus",d=>nf(d,o)),!tf(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function ha(e){return rs(e)&&"ownerSVGElement"in e}function of(e){return ha(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),sf=[...Js,re,Ge],af=e=>sf.find(qs(e)),lo=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function fa(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=fa(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():fa(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=oa(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(lo),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(`
|
|
227
227
|
[data-motion-pop-id="${o}"] {
|
|
228
228
|
position: absolute !important;
|
|
229
229
|
width: ${d}px !important;
|
|
@@ -231,7 +231,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
231
231
|
${g}px !important;
|
|
232
232
|
top: ${c}px !important;
|
|
233
233
|
}
|
|
234
|
-
`),()=>{x.contains(v)&&x.removeChild(v)}},[t]),p.jsx(of,{isPresent:t,childRef:s,sizeRef:i,children:cn.cloneElement(e,{ref:l})})}const af=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,root:l})=>{const d=xr(lf),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(sf,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(Dn.Provider,{value:h,children:e})};function lf(){return new Map}function ha(e=!0){const t=f.useContext(Dn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=f.useId();f.useEffect(()=>{if(e)return o(s)},[e]);const i=f.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const On=e=>e.key||"";function fa(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const Zt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",root:l})=>{const[d,u]=ha(i),c=f.useMemo(()=>fa(e),[e]),h=i&&!d?[]:c.map(On),m=f.useRef(!0),g=f.useRef(c),v=xr(()=>new Map),[x,y]=f.useState(c),[C,w]=f.useState(c);Qi(()=>{m.current=!1,g.current=c;for(let k=0;k<C.length;k++){const P=On(C[k]);h.includes(P)?v.delete(P):v.get(P)!==!0&&v.set(P,!1)}},[C,h.length,h.join("-")]);const A=[];if(c!==x){let k=[...c];for(let P=0;P<C.length;P++){const D=C[P],N=On(D);h.includes(N)||(k.splice(P,0,D),A.push(D))}return s==="wait"&&A.length&&(k=A),w(fa(k)),y(c),null}process.env.NODE_ENV!=="production"&&s==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:E}=f.useContext(wr);return p.jsx(p.Fragment,{children:C.map(k=>{const P=On(k),D=i&&!d?!1:c===C||h.includes(P),N=()=>{if(v.has(P))v.set(P,!0);else return;let _=!0;v.forEach($=>{$||(_=!1)}),_&&(E?.(),w(g.current),i&&u?.(),r&&r())};return p.jsx(af,{isPresent:D,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:l,onExitComplete:D?void 0:N,anchorX:a,children:k},P)})})},pa=f.createContext({strict:!1}),ma={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Mt={};for(const e in ma)Mt[e]={isEnabled:t=>ma[e].some(n=>!!t[n])};function cf(e){for(const t in e)Mt[t]={...Mt[t],...e[t]}}const df=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")||df.has(e)}let ga=e=>!Fn(e);function uf(e){typeof e=="function"&&(ga=t=>t.startsWith("on")?!Fn(t):e(t))}try{uf(require("@emotion/is-prop-valid").default)}catch{}function hf(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ga(o)||n===!0&&Fn(o)||!t&&!Fn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jn=f.createContext({});function zn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qt(e){return typeof e=="string"||Array.isArray(e)}const ho=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fo=["initial",...ho];function Rn(e){return zn(e.animate)||fo.some(t=>qt(e[t]))}function ya(e){return!!(Rn(e)||e.variants)}function ff(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 pf(e){const{initial:t,animate:n}=ff(e,f.useContext(jn));return f.useMemo(()=>({initial:t,animate:n}),[va(t),va(n)])}function va(e){return Array.isArray(e)?e.join(" "):e}const Jt={};function mf(e){for(const t in e)Jt[t]=e[t],Vr(t)&&(Jt[t].isCSSVariable=!0)}function ba(e,{layout:t,layoutId:n}){return Dt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jt[e]||e==="opacity")}const gf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yf=At.length;function vf(e,t,n){let r="",o=!0;for(let s=0;s<yf;s++){const i=At[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(i.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=ta(a,so[i]);if(!l){o=!1;const u=gf[i]||i;r+=`${u}(${d}) `}n&&(t[i]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function po(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const d=t[l];if(Dt.has(l)){i=!0;continue}else if(Vr(l)){o[l]=d;continue}else{const u=ta(d,so[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(t.transform||(i||n?r.transform=vf(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${d} ${u}`}}const mo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wa(e,t,n){for(const r in t)!he(t[r])&&!ba(r,n)&&(e[r]=t[r])}function bf({transformTemplate:e},t){return f.useMemo(()=>{const n=mo();return po(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wf(e,t){const n=e.style||{},r={};return wa(r,n,e),Object.assign(r,bf(e,t)),r}function xf(e,t){const n={},r=wf(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 Sf={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cf={offset:"strokeDashoffset",array:"strokeDasharray"};function Tf(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?Sf:Cf;e[s.offset]=M.transform(-r);const i=M.transform(t),a=M.transform(n);e[s.array]=`${i} ${a}`}function xa(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},l,d,u){if(po(e,a,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:c,style:h}=e;c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete c.transformBox),t!==void 0&&(c.x=t),n!==void 0&&(c.y=n),r!==void 0&&(c.scale=r),o!==void 0&&Tf(c,o,s,i,!1)}const Sa=()=>({...mo(),attrs:{}}),Ca=e=>typeof e=="string"&&e.toLowerCase()==="svg";function kf(e,t,n,r){const o=f.useMemo(()=>{const s=Sa();return xa(s,t,Ca(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};wa(s,e.style,e),o.style={...s,...o.style}}return o}const Ef=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function go(e){return typeof e!="string"||e.includes("-")?!1:!!(Ef.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pf(e,t,n,{latestValues:r},o,s=!1){const a=(go(e)?kf:xf)(t,r,o,e),l=hf(t,typeof e=="string",s),d=e!==f.Fragment?{...l,...a,ref:n}:{},{children:u}=t,c=f.useMemo(()=>he(u)?u.get():u,[u]);return f.createElement(e,{...d,children:c})}function Ta(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yo(e,t,n,r){if(typeof t=="function"){const[o,s]=Ta(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Ta(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function _n(e){return he(e)?e.get():e}function Af({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Df(n,r,o,e),renderState:t()}}function Df(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=_n(s[h]);let{initial:i,animate:a}=e;const l=Rn(e),d=ya(e);t&&d&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||i===!1;const c=u?a:i;if(c&&typeof c!="boolean"&&!zn(c)){const h=Array.isArray(c)?c:[c];for(let m=0;m<h.length;m++){const g=yo(e,h[m]);if(g){const{transitionEnd:v,transition:x,...y}=g;for(const C in y){let w=y[C];if(Array.isArray(w)){const A=u?w.length-1:0;w=w[A]}w!==null&&(o[C]=w)}for(const C in v)o[C]=v[C]}}}return o}const ka=e=>(t,n)=>{const r=f.useContext(jn),o=f.useContext(Dn),s=()=>Af(e,t,r,o);return n?s():xr(s)};function vo(e,t,n){const{style:r}=e,o={};for(const s in r)(he(r[s])||t.style&&he(t.style[s])||ba(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const $f=ka({scrapeMotionValuesFromProps:vo,createRenderState:mo});function Ea(e,t,n){const r=vo(e,t,n);for(const o in e)if(he(e[o])||he(t[o])){const s=At.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const Mf=ka({scrapeMotionValuesFromProps:Ea,createRenderState:Sa}),Vf=Symbol.for("motionComponentSymbol");function Vt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function If(e,t,n){return f.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vt(n)&&(n.current=r))},[t])}const bo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pa="data-"+bo("framerAppearId"),Aa=f.createContext({});function Lf(e,t,n,r,o){const{visualElement:s}=f.useContext(jn),i=f.useContext(pa),a=f.useContext(Dn),l=f.useContext(uo).reducedMotion,d=f.useRef(null);r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=d.current,c=f.useContext(Aa);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Nf(d.current,n,o,c);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const m=n[Pa],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Qi(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1),u.enteringChildren=void 0)}),u}function Nf(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Da(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&Vt(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:d})}function Da(e){if(e)return e.options.allowProjection!==!1?e.projection:Da(e.parent)}function wo(e,{forwardMotionProps:t=!1}={},n,r){n&&cf(n);const o=go(e)?Mf:$f;function s(a,l){let d;const u={...f.useContext(uo),...a,layoutId:Bf(a)},{isStatic:c}=u,h=pf(a),m=o(a,c);if(!c&&Sr){Of(u,n);const g=Ff(u);d=g.MeasureLayout,h.visualElement=Lf(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,Pf(e,a,If(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[Vf]=e,i}function Bf({layoutId:e}){const t=f.useContext(wr).id;return t&&e!==void 0?t+"-"+e:e}function Of(e,t){const n=f.useContext(pa).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Tt(!1,r,"lazy-strict-mode"):ze(!1,r,"lazy-strict-mode")}}function Ff(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 jf(e,t){if(typeof Proxy>"u")return wo;const n=new Map,r=(s,i)=>wo(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Ar(!1,"motion() is deprecated. Use motion.create() instead."),r(s,i));return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,wo(i,void 0,e,t)),n.get(i))})}function $a({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Rf(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function xo(e){return e===void 0||e===1}function So({scale:e,scaleX:t,scaleY:n}){return!xo(e)||!xo(t)||!xo(n)}function ct(e){return So(e)||Ma(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ma(e){return Va(e.x)||Va(e.y)}function Va(e){return e&&e!=="0%"}function Hn(e,t,n){const r=e-n,o=t*r;return n+o}function Ia(e,t,n,r,o){return o!==void 0&&(e=Hn(e,o,r)),Hn(e,n,r)+t}function Co(e,t=0,n=1,r,o){e.min=Ia(e.min,t,n,r,o),e.max=Ia(e.max,t,n,r,o)}function La(e,{x:t,y:n}){Co(e.x,t.translate,t.scale,t.originPoint),Co(e.y,n.translate,n.scale,n.originPoint)}const Na=.999999999999,Ba=1.0000000000001;function _f(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Lt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,La(e,i)),r&&ct(s.latestValues)&&Lt(e,s.latestValues))}t.x<Ba&&t.x>Na&&(t.x=1),t.y<Ba&&t.y>Na&&(t.y=1)}function It(e,t){e.min=e.min+t,e.max=e.max+t}function Oa(e,t,n,r,o=.5){const s=ee(e.min,e.max,o);Co(e,t,n,s,r)}function Lt(e,t){Oa(e.x,t.x,t.scaleX,t.scale,t.originX),Oa(e.y,t.y,t.scaleY,t.scale,t.originY)}function Fa(e,t){return $a(Rf(e.getBoundingClientRect(),t))}function Hf(e,t,n){const r=Fa(e,n),{scroll:o}=t;return o&&(It(r.x,o.offset.x),It(r.y,o.offset.y)),r}const ja=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nt=()=>({x:ja(),y:ja()}),za=()=>({min:0,max:0}),ne=()=>({x:za(),y:za()}),To={current:null},Ra={current:!1};function Uf(){if(Ra.current=!0,!!Sr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>To.current=e.matches;e.addEventListener("change",t),t()}else To.current=!1}const Wf=new WeakMap;function Kf(e,t,n){for(const r in t){const o=t[r],s=n[r];if(he(o))e.addValue(r,o);else if(he(s))e.addValue(r,$t(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,$t(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const _a=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Yf{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=no,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ye.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,J.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Rn(n),this.isVariantNode=ya(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in c){const m=c[h];l[h]!==void 0&&he(m)&&m.set(l[h])}}mount(t){this.current=t,Wf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ra.current||Uf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:To.current,process.env.NODE_ENV!=="production"&&Ar(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ke(this.notifyUpdate),Ke(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Dt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mt){const n=Mt[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ne()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<_a.length;r++){const o=_a[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=Kf(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=$t(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(es(r)||ns(r))?r=parseFloat(r):!tf(r)&&Ge.test(n)&&(r=ea(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 s=yo(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!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 Pr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ao.render(this.render)}}class Ha extends Yf{constructor(){super(...arguments),this.KeyframeResolver=Hh}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 Ua(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o?.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function Gf(e){return window.getComputedStyle(e)}class Xf extends Ha{constructor(){super(...arguments),this.type="html",this.renderInstance=Ua}readValueFromInstance(t,n){if(Dt.has(n))return this.projection?.isProjecting?qr(n):lh(t,n);{const r=Gf(t),o=(Vr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fa(t,n)}build(t,n,r){po(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return vo(t,n,r)}}const Wa=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Zf(e,t,n,r){Ua(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Wa.has(o)?o:bo(o),t.attrs[o])}class qf extends Ha{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ne}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dt.has(n)){const r=Qs(n);return r&&r.default||0}return n=Wa.has(n)?n:bo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ea(t,n,r)}build(t,n,r){xa(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){Zf(t,n,r,o)}mount(t){this.isSVGTag=Ca(t.tagName),super.mount(t)}}const Jf=(e,t)=>go(e)?new qf(t):new Xf(t,{allowProjection:e!==f.Fragment});function Bt(e,t,n){const r=e.getProps();return yo(r,t,n!==void 0?n:r.custom,e)}const ko=e=>Array.isArray(e);function Qf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$t(n))}function ep(e){return ko(e)?e[e.length-1]||0:e}function tp(e,t){const n=Bt(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=ep(s[i]);Qf(e,i,a)}}function np(e){return!!(he(e)&&e.add)}function Eo(e,t){const n=e.getValue("willChange");if(np(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ka(e){return e.props[Pa]}const rp=e=>e!==null;function op(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(rp),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const ip={type:"spring",stiffness:500,damping:25,restSpeed:10},sp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ap={type:"keyframes",duration:.8},lp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cp=(e,{keyframes:t})=>t.length>2?ap:Dt.has(e)?e.startsWith("scale")?sp(t[1]):ip:lp;function dp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:d,...u}){return!!Object.keys(u).length}const Po=(e,t,n,r={},o,s)=>i=>{const a=oo(r,e)||{},l=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-De(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};dp(a)||Object.assign(u,cp(e,u)),u.duration&&(u.duration=De(u.duration)),u.repeatDelay&&(u.repeatDelay=De(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let c=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ro(u),u.delay===0&&(c=!0)),(Re.instantAnimations||Re.skipAnimations)&&(c=!0,ro(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!s&&t.get()!==void 0){const h=op(u.keyframes,a);if(h!==void 0){J.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Gr(u):new Mh(u)};function up({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ya(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;r&&(s=r);const l=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const c=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||d&&up(d,u))continue;const m={delay:n,...oo(s||{},u)},g=c.get();if(g!==void 0&&!c.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Ka(e);if(y){const C=window.MotionHandoffAnimation(y,u,J);C!==null&&(m.startTime=C,v=!0)}}Eo(e,u),c.start(Po(u,c,h,e.shouldReduceMotion&&Gs.has(u)?{type:!1}:m,e,v));const x=c.animation;x&&l.push(x)}return i&&Promise.all(l).then(()=>{J.update(()=>{i&&tp(e,i)})}),l}function Ga(e,t,n,r=0,o=1){const s=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}function Ao(e,t,n={}){const r=Bt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Ya(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:c}=o;return hp(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 hp(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ao(l,t,{...i,delay:n+(typeof r=="function"?0:r)+Ga(e.variantChildren,l,r,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function fp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>Ao(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Ao(e,t,n);else{const o=typeof t=="function"?Bt(e,t,n.custom):t;r=Promise.all(Ya(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Xa(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const pp=fo.length;function Za(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Za(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pp;n++){const r=fo[n],o=e.props[r];(qt(o)||o===!1)&&(t[r]=o)}return t}const mp=[...ho].reverse(),gp=ho.length;function yp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fp(e,n,r)))}function vp(e){let t=yp(e),n=qa(),r=!0;const o=l=>(d,u)=>{const c=Bt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(c){const{transition:h,transitionEnd:m,...g}=c;d={...d,...g,...m}}return d};function s(l){t=l(e)}function i(l){const{props:d}=e,u=Za(e.parent)||{},c=[],h=new Set;let m={},g=1/0;for(let x=0;x<gp;x++){const y=mp[x],C=n[y],w=d[y]!==void 0?d[y]:u[y],A=qt(w),E=y===l?C.isActive:null;E===!1&&(g=x);let k=w===u[y]&&w!==d[y]&&A;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...m},!C.isActive&&E===null||!w&&!C.prevProp||zn(w)||typeof w=="boolean")continue;const P=bp(C.prevProp,w);let D=P||y===l&&C.isActive&&!k&&A||x>g&&A,N=!1;const _=Array.isArray(w)?w:[w];let $=_.reduce(o(y),{});E===!1&&($={});const{prevResolvedValues:H={}}=C,U={...H,...$},G=I=>{D=!0,h.has(I)&&(N=!0,h.delete(I)),C.needsAnimating[I]=!0;const R=e.getValue(I);R&&(R.liveStyle=!1)};for(const I in U){const R=$[I],B=H[I];if(m.hasOwnProperty(I))continue;let z=!1;ko(R)&&ko(B)?z=!Xa(R,B):z=R!==B,z?R!=null?G(I):h.add(I):R!==void 0&&h.has(I)?G(I):C.protectedKeys[I]=!0}C.prevProp=w,C.prevResolvedValues=$,C.isActive&&(m={...m,...$}),r&&e.blockInitialAnimation&&(D=!1);const Q=k&&P;D&&(!Q||N)&&c.push(..._.map(I=>{const R={type:y};if(typeof I=="string"&&r&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,z=Bt(B,I);if(B.enteringChildren&&z){const{delayChildren:ie}=z.transition||{};R.delay=Ga(B.enteringChildren,e,ie)}}return{animation:I,options:R}}))}if(h.size){const x={};if(typeof d.initial!="boolean"){const y=Bt(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(x.transition=y.transition)}h.forEach(y=>{const C=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),x[y]=C??null}),c.push({animation:x})}let 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=qa(),r=!0}}}function bp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xa(t,e):!1}function dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qa(){return{animate:dt(!0),whileInView:dt(),whileHover:dt(),whileTap:dt(),whileDrag:dt(),whileFocus:dt(),exit:dt()}}class Xe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class wp extends Xe{constructor(t){super(t),t.animationState||(t.animationState=vp(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 xp=0;class Sp extends Xe{constructor(){super(...arguments),this.id=xp++}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 Cp={animation:{Feature:wp},exit:{Feature:Sp}};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 Tp=e=>t=>lo(t)&&e(t,en(t));function tn(e,t,n,r){return Qt(e,t,Tp(n),r)}const Ja=1e-4,kp=1-Ja,Ep=1+Ja,Qa=.01,Pp=0-Qa,Ap=0+Qa;function pe(e){return e.max-e.min}function Dp(e,t,n){return Math.abs(e-t)<=n}function el(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=pe(n)/pe(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kp&&e.scale<=Ep||isNaN(e.scale))&&(e.scale=1),(e.translate>=Pp&&e.translate<=Ap||isNaN(e.translate))&&(e.translate=0)}function nn(e,t,n,r){el(e.x,t.x,n.x,r?r.originX:void 0),el(e.y,t.y,n.y,r?r.originY:void 0)}function tl(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function $p(e,t,n){tl(e.x,t.x,n.x),tl(e.y,t.y,n.y)}function nl(e,t,n){e.min=t.min-n.min,e.max=e.min+pe(t)}function rn(e,t,n){nl(e.x,t.x,n.x),nl(e.y,t.y,n.y)}function ke(e){return[e("x"),e("y")]}const rl=({current:e})=>e?e.ownerDocument.defaultView:null,ol=(e,t)=>Math.abs(e-t);function Mp(e,t){const n=ol(e.x,t.x),r=ol(e.y,t.y);return Math.sqrt(n**2+r**2)}class il{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=$o(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Mp(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:v}=h,{timestamp:x}=de;this.history.push({...v,timestamp:x});const{onStart:y,onMove:C}=this.handlers;m||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Do(m,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=$o(h.type==="pointercancel"?this.lastMoveEventInfo:Do(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),v&&v(h,y)},!lo(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const a=en(t),l=Do(a,this.transformPagePoint),{point:d}=l,{timestamp:u}=de;this.history=[{...d,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,$o(l,this.history)),this.removeListeners=_t(tn(this.contextWindow,"pointermove",this.handlePointerMove),tn(this.contextWindow,"pointerup",this.handlePointerUp),tn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ke(this.updatePoint)}}function Do(e,t){return t?{point:t(e.point)}:e}function sl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $o({point:e},t){return{point:e,delta:sl(e,al(t)),offset:sl(e,Vp(t)),velocity:Ip(t,.1)}}function Vp(e){return e[0]}function al(e){return e[e.length-1]}function Ip(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=al(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};const s=Te(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Lp(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 ll(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Np(e,{top:t,left:n,bottom:r,right:o}){return{x:ll(e.x,n,o),y:ll(e.y,t,r)}}function cl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Bp(e,t){return{x:cl(e.x,t.x),y:cl(e.y,t.y)}}function Op(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 Fp(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Mo=.35;function jp(e=Mo){return e===!1?e=0:e===!0&&(e=Mo),{x:dl(e,"left","right"),y:dl(e,"top","bottom")}}function dl(e,t,n){return{min:ul(e,t),max:ul(e,n)}}function ul(e,t){return typeof e=="number"?e:e[t]||0}const zp=new WeakMap;class Rp{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=ne(),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=Yh(m),!this.openDragLock))return;this.latestPointerEvent=c,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ke(y=>{let C=this.getAxisMotionValue(y).get()||0;if(Be.test(C)){const{projection:w}=this.visualElement;if(w&&w.layout){const A=w.layout.layoutBox[y];A&&(C=pe(A)*(parseFloat(C)/100))}}this.originPoint[y]=C}),v&&J.postRender(()=>v(c,h)),Eo(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=h;if(g&&this.currentDirection===null){this.currentDirection=_p(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),x&&x(c,h)},l=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h,this.stop(c,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>ke(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new il(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:rl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&J.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Un(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=Lp(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=Np(r.layoutBox,t):this.constraints=!1,this.elastic=jp(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ke(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Fp(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=Hf(r,o.root,this.visualElement.getTransformPagePoint());let i=Bp(o.layout.layoutBox,s);if(n){const a=n(zf(i));this.hasMutatedConstraints=!!a,a&&(i=$a(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=ke(u=>{if(!Un(u,n,this.currentDirection))return;let c=l&&l[u]||{};i&&(c={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...c};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Eo(this.visualElement,t),r.start(Po(t,r,0,n,this.visualElement,!1))}stopAnimation(){ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ke(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ke(n=>{const{drag:r}=this.getProps();if(!Un(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n];s.set(t[n]-ee(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]=Op({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(ee(l,d,o[i]))})}addListeners(){if(!this.visualElement.current)return;zp.set(this.visualElement,this);const t=this.visualElement.current,n=tn(t,"pointerdown",l=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),J.read(r);const i=Qt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(ke(u=>{const c=this.getAxisMotionValue(u);c&&(this.originPoint[u]+=l[u].translate,c.set(c.get()+l[u].translate))}),this.visualElement.render())}));return()=>{i(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=Mo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function Un(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _p(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Hp extends Xe{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new Rp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const hl=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class Up extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new il(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:hl(t),onStart:hl(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&J.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=tn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const on={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(M.test(e))e=parseFloat(e);else return e;const n=fl(e,t.target.x),r=fl(e,t.target.y);return`${n}% ${r}%`}},Wp={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=ee(a,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=d),typeof o[3+i]=="number"&&(o[3+i]/=d),s(o)}};let Vo=!1;class Kp extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;mf(Yp),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Vo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Wn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,Vo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||J.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ao.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Vo=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function pl(e){const[t,n]=ha(),r=f.useContext(wr);return p.jsx(Kp,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Aa),isPresent:t,safeToRemove:n})}const Yp={borderRadius:{...on,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:on,borderTopRightRadius:on,borderBottomLeftRadius:on,borderBottomRightRadius:on,boxShadow:Wp};function Gp(e,t,n){const r=he(e)?e:$t(e);return r.start(Po("",r,t,n)),r.animation}const Xp=(e,t)=>e.depth-t.depth;class Zp{constructor(){this.children=[],this.isDirty=!1}add(t){Cr(this.children,t),this.isDirty=!0}remove(t){Tr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xp),this.isDirty=!1,this.children.forEach(t)}}function qp(e,t){const n=ye.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Ke(r),e(s-t))};return J.setup(r,!0),()=>Ke(r)}const ml=["TopLeft","TopRight","BottomLeft","BottomRight"],Jp=ml.length,gl=e=>typeof e=="string"?parseFloat(e):e,yl=e=>typeof e=="number"||M.test(e);function Qp(e,t,n,r,o,s){o?(e.opacity=ee(0,n.opacity??1,em(r)),e.opacityExit=ee(t.opacity??1,0,tm(r))):s&&(e.opacity=ee(t.opacity??1,n.opacity??1,r));for(let i=0;i<Jp;i++){const a=`border${ml[i]}Radius`;let l=vl(t,a),d=vl(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||yl(l)===yl(d)?(e[a]=Math.max(ee(gl(l),gl(d),r),0),(Be.test(d)||Be.test(l))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=ee(t.rotate||0,n.rotate||0,r))}function vl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const em=bl(0,.5,us),tm=bl(.5,.95,Ce);function bl(e,t,n){return r=>r<e?0:r>t?1:n(Ht(e,t,r))}function wl(e,t){e.min=t.min,e.max=t.max}function Ee(e,t){wl(e.x,t.x),wl(e.y,t.y)}function xl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Sl(e,t,n,r,o){return e-=t,e=Hn(e,1/n,r),o!==void 0&&(e=Hn(e,1/o,r)),e}function nm(e,t=0,n=1,r=.5,o,s=e,i=e){if(Be.test(t)&&(t=parseFloat(t),t=ee(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=ee(s.min,s.max,r);e===s&&(a-=t),e.min=Sl(e.min,t,n,a,o),e.max=Sl(e.max,t,n,a,o)}function Cl(e,t,[n,r,o],s,i){nm(e,t[n],t[r],t[o],t.scale,s,i)}const rm=["x","scaleX","originX"],om=["y","scaleY","originY"];function Tl(e,t,n,r){Cl(e.x,t,rm,n?n.x:void 0,r?r.x:void 0),Cl(e.y,t,om,n?n.y:void 0,r?r.y:void 0)}function kl(e){return e.translate===0&&e.scale===1}function El(e){return kl(e.x)&&kl(e.y)}function Pl(e,t){return e.min===t.min&&e.max===t.max}function im(e,t){return Pl(e.x,t.x)&&Pl(e.y,t.y)}function Al(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Dl(e,t){return Al(e.x,t.x)&&Al(e.y,t.y)}function $l(e){return pe(e.x)/pe(e.y)}function Ml(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sm{constructor(){this.members=[]}add(t){Cr(this.members,t),t.scheduleRender()}remove(t){if(Tr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function am(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:c,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Io=["","X","Y","Z"],lm=1e3;let cm=0;function Lo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ka(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",J,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vl(r)}function Il({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=cm++,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(hm),this.nodes.forEach(gm),this.nodes.forEach(ym),this.nodes.forEach(fm)},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 Zp)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Pr),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=da(i)&&!Qh(i),this.instance=i;const{layoutId:a,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,c=0;const h=()=>this.root.updateBlockedByResize=!1;J.read(()=>{c=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==c&&(c=m,this.root.updateBlockedByResize=!0,u&&u(),u=qp(h,250),Wn.hasAnimatedSinceResize&&(Wn.hasAnimatedSinceResize=!1,this.nodes.forEach(Bl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||Sm,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=d.getProps(),y=!this.targetLayout||!Dl(this.targetLayout,m),C=!c&&h;if(this.options.layoutRoot||this.resumeFrom||C||c&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...oo(g,"layout"),onPlay:v,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,C)}else c||Bl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ke(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vm),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const c=this.path[u];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ll);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Nl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mm),this.nodes.forEach(dm),this.nodes.forEach(um)):this.nodes.forEach(Nl),this.clearAllSnapshots();const a=ye.now();de.delta=je(0,1e3/60,a-de.timestamp),de.timestamp=a,de.isProcessing=!0,Mr.update.process(de),Mr.preRender.process(de),Mr.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ao.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pm),this.sharedNodes.forEach(bm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ne(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!El(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;i&&this.instance&&(a||ct(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Cm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return ne();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Tm))){const{scroll:d}=this.root;d&&(It(a.x,d.offset.x),It(a.y,d.offset.y))}return a}removeElementScroll(i){const a=ne();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=ne();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=ne();Ee(a,i);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!ct(d.latestValues))continue;So(d.latestValues)&&d.updateSnapshot();const u=ne(),c=d.measurePageBox();Ee(u,c),Tl(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ct(this.latestValues)&&Tl(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==de.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=de.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ne(),this.relativeTargetOrigin=ne(),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=ne(),this.targetWithTransforms=ne()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$p(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ee(this.target,this.layout.layoutBox),La(this.target,this.targetDelta)):Ee(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ne(),this.relativeTargetOrigin=ne(),rn(this.relativeTargetOrigin,this.target,h.target),Ee(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||So(this.parent.latestValues)||Ma(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const i=this.getLead(),a=!!this.resumingFrom||this!==i;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===de.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;_f(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=ne());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xl(this.prevProjectionDelta.x,this.projectionDelta.x),xl(this.prevProjectionDelta.y,this.projectionDelta.y)),nn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==h||!Ml(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ml(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Nt(),this.projectionDelta=Nt(),this.projectionDeltaWithTransform=Nt()}setAnimationOrigin(i,a=!1){const l=this.snapshot,d=l?l.latestValues:{},u={...this.latestValues},c=Nt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ne(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=m!==g,x=this.getStack(),y=!x||x.members.length<=1,C=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(xm));this.animationProgress=0;let w;this.mixTargetDelta=A=>{const E=A/1e3;Ol(c.x,i.x,E),Ol(c.y,i.y,E),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wm(this.relativeTarget,this.relativeTargetOrigin,h,E),w&&im(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ne()),Ee(w,this.relativeTarget)),v&&(this.animationValues=u,Qp(u,d,this.latestValues,E,C,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ke(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{Wn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=$t(0)),this.currentAnimation=Gp(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(lm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:u}=i;if(!(!a||!l||!d)){if(this!==i&&this.layout&&d&&_l(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||ne();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 sm),this.sharedNodes.get(i).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&Lo("z",i,d,this.animationValues);for(let u=0;u<Io.length;u++)Lo(`rotate${Io[u]}`,i,d,this.animationValues),Lo(`skew${Io[u]}`,i,d,this.animationValues);i.render();for(const u in d)i.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=_n(a?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=_n(a?.pointerEvents)||""),this.hasProjected&&!ct(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let c=am(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:x,isCSSVariable:y}=Jt[g],C=c==="none"?u[g]:v(u[g],d);if(x){const w=x.length;for(let A=0;A<w;A++)i[x[A]]=C}else y?this.options.visualElement.renderState.vars[g]=C:i[g]=C}this.options.layoutId&&(i.pointerEvents=d===this?_n(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Ll),this.root.sharedNodes.clear()}}}function dm(e){e.updateLayout()}function um(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(c);c.min=n[u].min,c.max=c.min+h}):_l(o,t.layoutBox,n)&&ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(n[u]);c.max=c.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const i=Nt();nn(i,n,t.layoutBox);const a=Nt();s?nn(a,e.applyTransform(r,!0),t.measuredBox):nn(a,n,t.layoutBox);const l=!El(i);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:c,layout:h}=u;if(c&&h){const m=ne();rn(m,t.layoutBox,c.layoutBox);const g=ne();rn(g,n,h.layoutBox),Dl(m,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function hm(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 fm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pm(e){e.clearSnapshot()}function Ll(e){e.clearMeasurements()}function Nl(e){e.isLayoutDirty=!1}function mm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Bl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gm(e){e.resolveTargetDelta()}function ym(e){e.calcProjection()}function vm(e){e.resetSkewAndRotation()}function bm(e){e.removeLeadSnapshot()}function Ol(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 Fl(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function wm(e,t,n,r){Fl(e.x,t.x,n.x,r),Fl(e.y,t.y,n.y,r)}function xm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sm={duration:.45,ease:[.4,0,.1,1]},jl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),zl=jl("applewebkit/")&&!jl("chrome/")?Math.round:Ce;function Rl(e){e.min=zl(e.min),e.max=zl(e.max)}function Cm(e){Rl(e.x),Rl(e.y)}function _l(e,t,n){return e==="position"||e==="preserve-aspect"&&!Dp($l(t),$l(n),.2)}function Tm(e){return e!==e.root&&e.scroll?.wasRoot}const km=Il({attachResizeListener:(e,t)=>Qt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),No={current:void 0},Hl=Il({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!No.current){const e=new km({});e.mount(window),e.setOptions({layoutScroll:!0}),No.current=e}return No.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Em={pan:{Feature:Up},drag:{Feature:Hp,ProjectionNode:Hl,MeasureLayout:pl}};function Ul(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&J.postRender(()=>s(t,en(t)))}class Pm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Gh(t,(n,r)=>(Ul(this.node,r,"Start"),o=>Ul(this.node,o,"End"))))}unmount(){}}class Am extends Xe{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_t(Qt(this.node.current,"focus",()=>this.onFocus()),Qt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wl(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&J.postRender(()=>s(t,en(t)))}class Dm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Jh(t,(n,r)=>(Wl(this.node,r,"Start"),(o,{success:s})=>Wl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Bo=new WeakMap,Oo=new WeakMap,$m=e=>{const t=Bo.get(e.target);t&&t(e)},Mm=e=>{e.forEach($m)};function Vm({root:e,...t}){const n=e||document;Oo.has(n)||Oo.set(n,{});const r=Oo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Mm,{root:e,...t})),r[o]}function Im(e,t,n){const r=Vm(t);return Bo.set(e,n),r.observe(e),()=>{Bo.delete(e),r.unobserve(e)}}const Lm={some:0,all:1};class Nm 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:Lm[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 Im(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(Bm(t,n))&&this.startObserver()}unmount(){}}function Bm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Om={...Cp,...{inView:{Feature:Nm},tap:{Feature:Dm},focus:{Feature:Am},hover:{Feature:Pm}},...Em,...{layout:{ProjectionNode:Hl,MeasureLayout:pl}}},_e=jf(Om,Jf),Fm={sm:b`
|
|
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=br(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 pa(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 ma(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]=pa(i),c=f.useMemo(()=>ma(e),[e]),h=i&&!d?[]:c.map(On),m=f.useRef(!0),g=f.useRef(c),v=br(()=>new Map),[k,y]=f.useState(c),[S,C]=f.useState(c);ts(()=>{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(ma(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(vr);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)})})},ga=f.createContext({strict:!1}),ya={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 ya)Mt[e]={isEnabled:t=>ya[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 va=e=>!Fn(e);function gf(e){typeof e=="function"&&(va=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"||(va(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 co=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uo=["initial",...co];function Rn(e){return zn(e.animate)||uo.some(t=>qt(e[t]))}function ba(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}),[wa(t),wa(n)])}function wa(e){return Array.isArray(e)?e.join(" "):e}const Jt={};function wf(e){for(const t in e)Jt[t]=e[t],$r(t)&&(Jt[t].isCSSVariable=!0)}function xa(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=ra(a,oo[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 ho(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($r(l)){o[l]=d;continue}else{const u=ra(d,oo[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 fo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sa(e,t,n){for(const r in t)!ue(t[r])&&!xa(r,n)&&(e[r]=t[r])}function Tf({transformTemplate:e},t){return f.useMemo(()=>{const n=fo();return ho(n,t,e),Object.assign({},n.vars,n.style)},[t])}function kf(e,t){const n=e.style||{},r={};return Sa(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 Ca(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},l,d,u){if(ho(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 Ta=()=>({...fo(),attrs:{}}),ka=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $f(e,t,n,r){const o=f.useMemo(()=>{const s=Ta();return Ca(s,t,ka(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Sa(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 po(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=(po(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 Ea(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function mo(e,t,n,r){if(typeof t=="function"){const[o,s]=Ea(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]=Ea(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=ba(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=mo(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 Pa=e=>(t,n)=>{const r=f.useContext(jn),o=f.useContext(Dn),s=()=>If(e,t,r,o);return n?s():br(s)};function go(e,t,n){const{style:r}=e,o={};for(const s in r)(ue(r[s])||t.style&&ue(t.style[s])||xa(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const Nf=Pa({scrapeMotionValuesFromProps:go,createRenderState:fo});function Aa(e,t,n){const r=go(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=Pa({scrapeMotionValuesFromProps:Aa,createRenderState:Ta}),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 yo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Da="data-"+yo("framerAppearId"),$a=f.createContext({});function jf(e,t,n,r,o){const{visualElement:s}=f.useContext(jn),i=f.useContext(ga),a=f.useContext(Dn),l=f.useContext(lo).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($a);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[Da],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return ts(()=>{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:Ma(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 Ma(e){if(e)return e.options.allowProjection!==!1?e.projection:Ma(e.parent)}function vo(e,{forwardMotionProps:t=!1}={},n,r){n&&pf(n);const o=po(e)?Bf:Nf;function s(a,l){let d;const u={...f.useContext(lo),...a,layoutId:Rf(a)},{isStatic:c}=u,h=bf(a),m=o(a,c);if(!c&&wr){_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(vr).id;return t&&e!==void 0?t+"-"+e:e}function _f(e,t){const n=f.useContext(ga).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 vo;const n=new Map,r=(s,i)=>vo(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Er(!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,vo(i,void 0,e,t)),n.get(i))})}function Va({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 bo(e){return e===void 0||e===1}function wo({scale:e,scaleX:t,scaleY:n}){return!bo(e)||!bo(t)||!bo(n)}function ct(e){return wo(e)||Ia(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ia(e){return La(e.x)||La(e.y)}function La(e){return e&&e!=="0%"}function Hn(e,t,n){const r=e-n,o=t*r;return n+o}function Na(e,t,n,r,o){return o!==void 0&&(e=Hn(e,o,r)),Hn(e,n,r)+t}function xo(e,t=0,n=1,r,o){e.min=Na(e.min,t,n,r,o),e.max=Na(e.max,t,n,r,o)}function Ba(e,{x:t,y:n}){xo(e.x,t.translate,t.scale,t.originPoint),xo(e.y,n.translate,n.scale,n.originPoint)}const Oa=.999999999999,Fa=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,Ba(e,i)),r&&ct(s.latestValues)&&Lt(e,s.latestValues))}t.x<Fa&&t.x>Oa&&(t.x=1),t.y<Fa&&t.y>Oa&&(t.y=1)}function It(e,t){e.min=e.min+t,e.max=e.max+t}function ja(e,t,n,r,o=.5){const s=J(e.min,e.max,o);xo(e,t,n,s,r)}function Lt(e,t){ja(e.x,t.x,t.scaleX,t.scale,t.originX),ja(e.y,t.y,t.scaleY,t.scale,t.originY)}function za(e,t){return Va(Kf(e.getBoundingClientRect(),t))}function Gf(e,t,n){const r=za(e,n),{scroll:o}=t;return o&&(It(r.x,o.offset.x),It(r.y,o.offset.y)),r}const Ra=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nt=()=>({x:Ra(),y:Ra()}),_a=()=>({min:0,max:0}),te=()=>({x:_a(),y:_a()}),So={current:null},Ha={current:!1};function Xf(){if(Ha.current=!0,!!wr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>So.current=e.matches;e.addEventListener("change",t),t()}else So.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 Ua=["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=eo,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=ba(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)),Ha.current||Xf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:So.current,process.env.NODE_ENV!=="production"&&Er(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<Ua.length;r++){const o=Ua[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"&&(ns(r)||os(r))?r=parseFloat(r):!af(r)&&Ge.test(n)&&(r=na(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=mo(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 kr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){io.render(this.render)}}class Wa 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 Ka(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 Wa{constructor(){super(...arguments),this.type="html",this.renderInstance=Ka}readValueFromInstance(t,n){if(Dt.has(n))return this.projection?.isProjecting?Xr(n):fh(t,n);{const r=Qf(t),o=($r(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return za(t,n)}build(t,n,r){ho(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return go(t,n,r)}}const Ya=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){Ka(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ya.has(o)?o:yo(o),t.attrs[o])}class np extends Wa{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=ta(n);return r&&r.default||0}return n=Ya.has(n)?n:yo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Aa(t,n,r)}build(t,n,r){Ca(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){tp(t,n,r,o)}mount(t){this.isSVGTag=ka(t.tagName),super.mount(t)}}const rp=(e,t)=>po(e)?new np(t):new ep(t,{allowProjection:e!==f.Fragment});function Bt(e,t,n){const r=e.getProps();return mo(r,t,n!==void 0?n:r.custom,e)}const Co=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 Co(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 To(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 Ga(e){return e.props[Da]}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 ko=(e,t,n,r={},o,s)=>i=>{const a=no(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)&&(to(u),u.delay===0&&(c=!0)),(Re.instantAnimations||Re.skipAnimations)&&(c=!0,to(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 Kr(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 Xa(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,...no(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=Ga(e);if(y){const S=window.MotionHandoffAnimation(y,u,Z);S!==null&&(m.startTime=S,v=!0)}}To(e,u),c.start(ko(u,c,h,e.shouldReduceMotion&&Zs.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 Za(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 Eo(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(Xa(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(Eo(l,t,{...i,delay:n+(typeof r=="function"?0:r)+Za(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=>Eo(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Eo(e,t,n);else{const o=typeof t=="function"?Bt(e,t,n.custom):t;r=Promise.all(Xa(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qa(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const bp=uo.length;function Ja(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ja(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=uo[n],o=e.props[r];(qt(o)||o===!1)&&(t[r]=o)}return t}const wp=[...co].reverse(),xp=co.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=Qa(),r=!0;const o=l=>(d,u)=>{const c=Bt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(c){const{transition:h,transitionEnd:m,...g}=c;d={...d,...g,...m}}return d};function s(l){t=l(e)}function i(l){const{props:d}=e,u=Ja(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;Co(_)&&Co(W)?Y=!qa(_,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=Za(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=Qa(),r=!0}}}function Tp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qa(t,e):!1}function dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qa(){return{animate:dt(!0),whileInView:dt(),whileHover:dt(),whileTap:dt(),whileDrag:dt(),whileFocus:dt(),exit:dt()}}class Xe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class 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=>so(t)&&e(t,en(t));function tn(e,t,n,r){return Qt(e,t,Dp(n),r)}const el=1e-4,$p=1-el,Mp=1+el,tl=.01,Vp=0-tl,Ip=0+tl;function pe(e){return e.max-e.min}function Lp(e,t,n){return Math.abs(e-t)<=n}function nl(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){nl(e.x,t.x,n.x,r?r.originX:void 0),nl(e.y,t.y,n.y,r?r.originY:void 0)}function rl(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function Np(e,t,n){rl(e.x,t.x,n.x),rl(e.y,t.y,n.y)}function ol(e,t,n){e.min=t.min-n.min,e.max=e.min+pe(t)}function rn(e,t,n){ol(e.x,t.x,n.x),ol(e.y,t.y,n.y)}function ke(e){return[e("x"),e("y")]}const il=({current:e})=>e?e.ownerDocument.defaultView:null,sl=(e,t)=>Math.abs(e-t);function Bp(e,t){const n=sl(e.x,t.x),r=sl(e.y,t.y);return Math.sqrt(n**2+r**2)}class al{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=Ao(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=Po(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=Ao(h.type==="pointercancel"?this.lastMoveEventInfo:Po(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),v&&v(h,y)},!so(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const a=en(t),l=Po(a,this.transformPagePoint),{point:d}=l,{timestamp:u}=le;this.history=[{...d,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Ao(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 Po(e,t){return t?{point:t(e.point)}:e}function ll(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ao({point:e},t){return{point:e,delta:ll(e,cl(t)),offset:ll(e,Op(t)),velocity:Fp(t,.1)}}function Op(e){return e[0]}function cl(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=cl(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 dl(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:dl(e.x,n,o),y:dl(e.y,t,r)}}function ul(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:ul(e.x,t.x),y:ul(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 Do=.35;function Up(e=Do){return e===!1?e=0:e===!0&&(e=Do),{x:hl(e,"left","right"),y:hl(e,"top","bottom")}}function hl(e,t,n){return{min:fl(e,t),max:fl(e,n)}}function fl(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)),To(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 al(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:il(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=Va(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 To(this.visualElement,t),r.start(ko(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=Do,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 pl=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class Xp extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new al(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:il(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:pl(t),onStart:pl(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 ml(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=ml(e,t.target.x),r=ml(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 $o=!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),$o&&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,$o=!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(),io.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;$o=!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 gl(e){const[t,n]=pa(),r=f.useContext(vr);return p.jsx(qp,{...e,layoutGroup:r,switchLayoutGroup:f.useContext($a),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(ko("",r,t,n)),r.animation}const em=(e,t)=>e.depth-t.depth;class tm{constructor(){this.children=[],this.isDirty=!1}add(t){xr(this.children,t),this.isDirty=!0}remove(t){Sr(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 yl=["TopLeft","TopRight","BottomLeft","BottomRight"],rm=yl.length,vl=e=>typeof e=="string"?parseFloat(e):e,bl=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${yl[i]}Radius`;let l=wl(t,a),d=wl(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||bl(l)===bl(d)?(e[a]=Math.max(J(vl(l),vl(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 wl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const im=xl(0,.5,fs),sm=xl(.5,.95,Ce);function xl(e,t,n){return r=>r<e?0:r>t?1:n(Ht(e,t,r))}function Sl(e,t){e.min=t.min,e.max=t.max}function Ee(e,t){Sl(e.x,t.x),Sl(e.y,t.y)}function Cl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Tl(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=Tl(e.min,t,n,a,o),e.max=Tl(e.max,t,n,a,o)}function kl(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 El(e,t,n,r){kl(e.x,t,lm,n?n.x:void 0,r?r.x:void 0),kl(e.y,t,cm,n?n.y:void 0,r?r.y:void 0)}function Pl(e){return e.translate===0&&e.scale===1}function Al(e){return Pl(e.x)&&Pl(e.y)}function Dl(e,t){return e.min===t.min&&e.max===t.max}function dm(e,t){return Dl(e.x,t.x)&&Dl(e.y,t.y)}function $l(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ml(e,t){return $l(e.x,t.x)&&$l(e.y,t.y)}function Vl(e){return pe(e.x)/pe(e.y)}function Il(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class um{constructor(){this.members=[]}add(t){xr(this.members,t),t.scheduleRender()}remove(t){if(Sr(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 Mo=["","X","Y","Z"],fm=1e3;let pm=0;function Vo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ll(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ga(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&&Ll(r)}function Nl({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 kr),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=ha(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(Fl)))})}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||!Ml(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={...no(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||Fl(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&&Ll(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(Bl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ol);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(Ol),this.clearAllSnapshots();const a=ye.now();le.delta=je(0,1e3/60,a-le.timestamp),le.timestamp=a,le.isProcessing=!0,Dr.update.process(le),Dr.preRender.process(le),Dr.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,io.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&&!Al(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;wo(d.latestValues)&&d.updateSnapshot();const u=te(),c=d.measurePageBox();Ee(u,c),El(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ct(this.latestValues)&&El(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),Ba(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||wo(this.parent.latestValues)||Ia(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():(Cl(this.prevProjectionDelta.x,this.projectionDelta.x),Cl(this.prevProjectionDelta.y,this.projectionDelta.y)),nn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==h||!Il(this.projectionDelta.x,this.prevProjectionDelta.x)||!Il(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;jl(c.x,i.x,w),jl(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&&Ul(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&&Vo("z",i,d,this.animationValues);for(let u=0;u<Mo.length;u++)Vo(`rotate${Mo[u]}`,i,d,this.animationValues),Vo(`skew${Mo[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(Bl),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}):Ul(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=!Al(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),Ml(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 Bl(e){e.clearMeasurements()}function Ol(e){e.isLayoutDirty=!1}function wm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Fl(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 jl(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 zl(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){zl(e.x,t.x,n.x,r),zl(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]},Rl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_l=Rl("applewebkit/")&&!Rl("chrome/")?Math.round:Ce;function Hl(e){e.min=_l(e.min),e.max=_l(e.max)}function Am(e){Hl(e.x),Hl(e.y)}function Ul(e,t,n){return e==="position"||e==="preserve-aspect"&&!Lp(Vl(t),Vl(n),.2)}function Dm(e){return e!==e.root&&e.scroll?.wasRoot}const $m=Nl({attachResizeListener:(e,t)=>Qt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Io={current:void 0},Wl=Nl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Io.current){const e=new $m({});e.mount(window),e.setOptions({layoutScroll:!0}),Io.current=e}return Io.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:Wl,MeasureLayout:gl}};function Kl(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)=>(Kl(this.node,r,"Start"),o=>Kl(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 Yl(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)=>(Yl(this.node,r,"Start"),(o,{success:s})=>Yl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Lo=new WeakMap,No=new WeakMap,Nm=e=>{const t=Lo.get(e.target);t&&t(e)},Bm=e=>{e.forEach(Nm)};function Om({root:e,...t}){const n=e||document;No.has(n)||No.set(n,{});const r=No.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 Lo.set(e,n),r.observe(e),()=>{Lo.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:Wl,MeasureLayout:gl}}},_e=Uf(_m,rp),Hm={sm:b`
|
|
235
235
|
width: 1.25rem;
|
|
236
236
|
height: 1.25rem;
|
|
237
237
|
`,md:b`
|
|
@@ -243,7 +243,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
243
243
|
`,xl:b`
|
|
244
244
|
width: 4rem;
|
|
245
245
|
height: 4rem;
|
|
246
|
-
`},
|
|
246
|
+
`},Gl={primary:b`
|
|
247
247
|
color: var(--color-main-blue-primary);
|
|
248
248
|
`,orange:b`
|
|
249
249
|
color: var(--color-main-orange-primary);
|
|
@@ -251,77 +251,46 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
251
251
|
color: var(--color-main-white);
|
|
252
252
|
`,gray:b`
|
|
253
253
|
color: var(--color-main-grey);
|
|
254
|
-
`},
|
|
254
|
+
`},Um=x.div`
|
|
255
255
|
position: relative;
|
|
256
256
|
display: block;
|
|
257
|
-
${({$size:e="md"})=>
|
|
258
|
-
${({$color:e="primary"})=>
|
|
257
|
+
${({$size:e="md"})=>Hm[e]}
|
|
258
|
+
${({$color:e="primary"})=>Gl[e]}
|
|
259
259
|
user-select: none;
|
|
260
|
-
`,
|
|
260
|
+
`,Wm=x.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
|
+
`,Km=x.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
|
+
`,Ym=x(_e.p)`
|
|
273
|
+
${M[16]}
|
|
274
|
+
${({$color:e="primary"})=>Gl[e]}
|
|
275
275
|
margin: 0;
|
|
276
|
-
`,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
position: fixed;
|
|
295
|
-
inset: 0;
|
|
296
|
-
background-color: rgba(255, 255, 255, 0.8);
|
|
297
|
-
backdrop-filter: blur(0.25rem);
|
|
298
|
-
display: flex;
|
|
299
|
-
align-items: center;
|
|
300
|
-
justify-content: center;
|
|
301
|
-
z-index: 50;
|
|
302
|
-
`,Um=S.div`
|
|
303
|
-
background-color: var(--color-main-white);
|
|
304
|
-
border-radius: var(--border-radius-card);
|
|
305
|
-
box-shadow: var(--shadow-black-card);
|
|
306
|
-
padding: 2rem;
|
|
307
|
-
display: flex;
|
|
308
|
-
flex-direction: column;
|
|
309
|
-
align-items: center;
|
|
310
|
-
gap: 1rem;
|
|
311
|
-
width: 90%;
|
|
312
|
-
max-width: 24rem;
|
|
313
|
-
`,Wm=S.h2`
|
|
314
|
-
${br[30]}
|
|
315
|
-
color: var(--color-main-blue-primary);
|
|
316
|
-
margin: 0 auto;
|
|
317
|
-
text-align: center;
|
|
318
|
-
`,Km=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>p.jsx(Hm,{role:"status","aria-live":"polite",children:p.jsxs(Um,{children:[p.jsx(Kn,{size:"xl",color:t,centered:!1,title:e,variant:n}),p.jsx(Wm,{children:e})]})}),Ym=S.div`
|
|
319
|
-
display: flex;
|
|
320
|
-
flex-direction: column;
|
|
321
|
-
align-items: center;
|
|
322
|
-
justify-content: center;
|
|
323
|
-
padding: 3rem 1rem;
|
|
324
|
-
`,Gm=({message:e,color:t="primary",variant:n="rotate"})=>p.jsx(Ym,{role:"status","aria-live":"polite",children:p.jsx(Kn,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),Yl=({color:e="white",variant:t="rotate"})=>p.jsx(Kn,{size:"sm",color:e,centered:!1,variant:t}),Xm={primary:b`
|
|
276
|
+
`,Gm=({variant:e,title:t})=>p.jsxs(_e.svg,{width:"100%",height:"100%",viewBox:"0 0 50 50",style:{position:"absolute",top:0,left:0,zIndex:1,padding:"2.1px 2.5px 2.5px 0px"},animate:e==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:e==="rotate"?{repeat:1/0,duration:2,ease:"linear"}:{repeat:1/0,duration:2,ease:"easeInOut"},children:[p.jsx("g",{transform:"scale(0.15) translate(-10, -1)",children:p.jsx("path",{fill:"currentColor",d:`M67.251411,286.749390
|
|
277
|
+
C42.999393,262.534088 27.711603,233.886490 21.140957,200.638245
|
|
278
|
+
C20.527918,197.536194 19.462318,196.344513 16.327942,196.535400
|
|
279
|
+
C12.711285,196.755646 9.070918,196.586609 4.251685,196.586609
|
|
280
|
+
C19.322153,168.738571 33.952221,141.704315 49.116634,113.682678
|
|
281
|
+
C64.235954,141.612656 78.833565,168.578873 93.908447,196.426758
|
|
282
|
+
C87.866776,196.426758 82.658516,196.426758 77.325577,196.426758
|
|
283
|
+
C85.232460,234.921478 123.925285,277.225311 178.933075,279.192719
|
|
284
|
+
C235.221680,281.205994 283.208466,242.542862 292.799011,187.509933
|
|
285
|
+
C302.126556,133.986282 269.828094,80.603485 218.135574,63.877277
|
|
286
|
+
C164.703934,46.588337 104.072327,71.370583 80.391907,129.314926
|
|
287
|
+
C72.897575,118.331955 65.656891,107.720695 58.038605,96.556068
|
|
288
|
+
C47.621204,103.552185 37.297256,110.485535 26.973309,117.418884
|
|
289
|
+
C46.211082,62.712753 82.779099,25.932369 138.202881,9.672956
|
|
290
|
+
C231.681030,-17.750278 329.482361,42.974667 346.823608,138.519577
|
|
291
|
+
C363.551025,230.682480 301.903687,318.479523 209.509521,332.564972
|
|
292
|
+
C155.049683,340.867371 107.495514,325.072021 67.251411,286.749390
|
|
293
|
+
z`})}),t&&p.jsx("title",{children:t})]}),Xl=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:s="rotate"})=>{const i=p.jsxs(Wm,{children:[p.jsx(Um,{$size:e,$color:t,$variant:s,children:p.jsx(Gm,{variant:s,title:o})}),r&&p.jsx(Ym,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?p.jsx(Km,{children:i}):i},Xm={primary:b`
|
|
325
294
|
background-color: var(--color-main-blue-primary);
|
|
326
295
|
color: var(--color-main-white);
|
|
327
296
|
|
|
@@ -384,16 +353,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
384
353
|
`,qm={sm:b`
|
|
385
354
|
padding: 0.375rem 0.75rem;
|
|
386
355
|
min-height: 2.75rem;
|
|
387
|
-
${
|
|
356
|
+
${M[12]}
|
|
388
357
|
`,md:b`
|
|
389
358
|
padding: 0.625rem 1.25rem;
|
|
390
359
|
min-height: 3.175rem;
|
|
391
|
-
${
|
|
360
|
+
${M[16]}
|
|
392
361
|
`,lg:b`
|
|
393
362
|
padding: 0.75rem 1.5rem;
|
|
394
363
|
min-height: 3.5rem;
|
|
395
|
-
${
|
|
396
|
-
`},Jm=
|
|
364
|
+
${M[20]}
|
|
365
|
+
`},Jm=x.button`
|
|
397
366
|
border: none;
|
|
398
367
|
border-radius: var(--border-radius-button);
|
|
399
368
|
transition:
|
|
@@ -414,18 +383,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
414
383
|
&:disabled {
|
|
415
384
|
${Zm}
|
|
416
385
|
}
|
|
417
|
-
`,
|
|
418
|
-
padding: 0.
|
|
386
|
+
`,Bo=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:s,rightIcon:i,iconSize:a="md",iconColor:l="currentColor",...d})=>p.jsxs(Jm,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...d,children:[s&&p.jsx(j,{color:l,size:a,component:s}),r?"Loading...":e,i&&p.jsx(j,{color:l,size:a,component:i})]}),Qm={sm:b`
|
|
387
|
+
padding: 0.25rem 0.625rem;
|
|
419
388
|
border-radius: var(--border-radius-button);
|
|
420
|
-
${
|
|
389
|
+
${M[12]}
|
|
421
390
|
`,md:b`
|
|
422
391
|
padding: 0.375rem 0.75rem;
|
|
423
392
|
border-radius: var(--border-radius-button);
|
|
424
|
-
${
|
|
393
|
+
${M[14]}
|
|
425
394
|
`,lg:b`
|
|
426
395
|
padding: 0.5rem 1rem;
|
|
427
396
|
border-radius: var(--border-radius-button);
|
|
428
|
-
${
|
|
397
|
+
${M[16]}
|
|
429
398
|
`},eg={primary:b`
|
|
430
399
|
background-color: var(--color-main-blue-primary);
|
|
431
400
|
color: var(--color-main-white);
|
|
@@ -444,7 +413,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
444
413
|
`,neutral:b`
|
|
445
414
|
background-color: var(--color-light-200);
|
|
446
415
|
color: var(--color-main-grey);
|
|
447
|
-
`,outline:b``},tg=
|
|
416
|
+
`,outline:b``},tg=x.span`
|
|
448
417
|
display: inline-flex;
|
|
449
418
|
align-items: center;
|
|
450
419
|
gap: 0.375rem;
|
|
@@ -460,7 +429,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
460
429
|
color: ${t||"var(--color-main-blue-primary)"};
|
|
461
430
|
border: 1px solid ${t||"var(--color-main-blue-primary)"};
|
|
462
431
|
`:""}
|
|
463
|
-
`,ng=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:s,iconColor:i="currentColor",iconSize:a="sm",...l})=>p.jsxs(tg,{$variant:t,$size:n,$outlineColor:r,...l,children:[o&&p.jsx(
|
|
432
|
+
`,ng=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:s,iconColor:i="currentColor",iconSize:a="sm",...l})=>p.jsxs(tg,{$variant:t,$size:n,$outlineColor:r,...l,children:[o&&p.jsx(j,{color:i,size:a,component:o}),e,s&&p.jsx(j,{color:i,size:a,component:s})]}),rg=x.div`
|
|
464
433
|
background-color: ${({$color:e})=>e};
|
|
465
434
|
${({$orientation:e,$length:t,$thickness:n})=>e==="horizontal"?`
|
|
466
435
|
height: ${n||"1px"};
|
|
@@ -469,10 +438,41 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
469
438
|
width: ${n||"1px"};
|
|
470
439
|
height: ${t||"100%"};
|
|
471
440
|
`}
|
|
472
|
-
`,og=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>p.jsx(rg,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),ig=
|
|
473
|
-
${({$size:e})=>
|
|
441
|
+
`,og=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>p.jsx(rg,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),ig=x.span`
|
|
442
|
+
${({$size:e})=>M[e]}
|
|
474
443
|
color: ${({$color:e})=>e||"var(--color-main-grey)"};
|
|
475
|
-
`,Gl=({children:e,size:t=16,color:n,className:r,style:o})=>p.jsx(ig,{$size:t,$color:n,className:r,style:o,children:e});function sg(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ag=e=>{switch(e){case"success":return dg;case"info":return hg;case"warning":return ug;case"error":return fg;default:return null}},lg=Array(12).fill(0),cg=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},lg.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),dg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ug=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),hg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),fg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),mg=()=>{const[e,t]=f.useState(document.hidden);return f.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let jo=1;class gg{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:jo++,i=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...o,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const a=o.then(async d=>{if(i=["resolve",d],f.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(vg(d)&&!d.ok){s=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(d instanceof Error){s=!1;const c=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(n.success!==void 0){s=!1;const c=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:h,...g})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){s=!1;const u=typeof n.error=="function"?await n.error(d):n.error,c=typeof n.description=="function"?await n.description(d):n.description,m=typeof u=="object"&&!f.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:c,...m})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((d,u)=>a.then(()=>i[0]==="reject"?u(i[1]):d(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||jo++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ve=new gg,yg=(e,t)=>{const n=t?.id||jo++;return ve.addToast({title:e,...t,id:n}),n},vg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",bg=yg,wg=()=>ve.toasts,xg=()=>ve.getActiveToasts(),Sg=Object.assign(bg,{success:ve.success,info:ve.info,warning:ve.warning,error:ve.error,custom:ve.custom,message:ve.message,promise:ve.promise,dismiss:ve.dismiss,loading:ve.loading},{getHistory:wg,getToasts:xg});sg("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Yn(e){return e.label!==void 0}const Cg=3,Tg="24px",kg="16px",Xl=4e3,Eg=356,Pg=14,Ag=45,Dg=200;function Oe(...e){return e.filter(Boolean).join(" ")}function $g(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Mg=e=>{var t,n,r,o,s,i,a,l,d;const{invert:u,toast:c,unstyled:h,interacting:m,setHeights:g,visibleToasts:v,heights:x,index:y,toasts:C,expanded:w,removeToast:A,defaultRichColors:E,closeButton:k,style:P,cancelButtonStyle:D,actionButtonStyle:N,className:_="",descriptionClassName:$="",duration:H,position:U,gap:G,expandByDefault:Q,classNames:V,icons:I,closeButtonAriaLabel:R="Close toast"}=e,[B,z]=f.useState(null),[ie,se]=f.useState(null),[j,q]=f.useState(!1),[X,le]=f.useState(!1),[Me,K]=f.useState(!1),[be,Je]=f.useState(!1),[He,me]=f.useState(!1),[w1,ii]=f.useState(0),[x1,_c]=f.useState(0),ln=f.useRef(c.duration||H||Xl),Hc=f.useRef(null),Ue=f.useRef(null),S1=y===0,C1=y+1<=v,we=c.type,Ot=c.dismissible!==!1,T1=c.className||"",k1=c.descriptionClassName||"",Qn=f.useMemo(()=>x.findIndex(O=>O.toastId===c.id)||0,[x,c.id]),E1=f.useMemo(()=>{var O;return(O=c.closeButton)!=null?O:k},[c.closeButton,k]),Uc=f.useMemo(()=>c.duration||H||Xl,[c.duration,H]),si=f.useRef(0),Ft=f.useRef(0),Wc=f.useRef(0),jt=f.useRef(null),[P1,A1]=U.split("-"),Kc=f.useMemo(()=>x.reduce((O,ce,fe)=>fe>=Qn?O:O+ce.height,0),[x,Qn]),Yc=mg(),D1=c.invert||u,ai=we==="loading";Ft.current=f.useMemo(()=>Qn*G+Kc,[Qn,Kc]),f.useEffect(()=>{ln.current=Uc},[Uc]),f.useEffect(()=>{q(!0)},[]),f.useEffect(()=>{const O=Ue.current;if(O){const ce=O.getBoundingClientRect().height;return _c(ce),g(fe=>[{toastId:c.id,height:ce,position:c.position},...fe]),()=>g(fe=>fe.filter(xe=>xe.toastId!==c.id))}},[g,c.id]),f.useLayoutEffect(()=>{if(!j)return;const O=Ue.current,ce=O.style.height;O.style.height="auto";const fe=O.getBoundingClientRect().height;O.style.height=ce,_c(fe),g(xe=>xe.find(ue=>ue.toastId===c.id)?xe.map(ue=>ue.toastId===c.id?{...ue,height:fe}:ue):[{toastId:c.id,height:fe,position:c.position},...xe])},[j,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Qe=f.useCallback(()=>{le(!0),ii(Ft.current),g(O=>O.filter(ce=>ce.toastId!==c.id)),setTimeout(()=>{A(c)},Dg)},[c,A,g,Ft]);f.useEffect(()=>{if(c.promise&&we==="loading"||c.duration===1/0||c.type==="loading")return;let O;return w||m||Yc?(()=>{if(Wc.current<si.current){const xe=new Date().getTime()-si.current;ln.current=ln.current-xe}Wc.current=new Date().getTime()})():(()=>{ln.current!==1/0&&(si.current=new Date().getTime(),O=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Qe()},ln.current))})(),()=>clearTimeout(O)},[w,m,c,we,Yc,Qe]),f.useEffect(()=>{c.delete&&(Qe(),c.onDismiss==null||c.onDismiss.call(c,c))},[Qe,c.delete]);function $1(){var O;if(I?.loading){var ce;return f.createElement("div",{className:Oe(V?.loader,c==null||(ce=c.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":we==="loading"},I.loading)}return f.createElement(cg,{className:Oe(V?.loader,c==null||(O=c.classNames)==null?void 0:O.loader),visible:we==="loading"})}const M1=c.icon||I?.[we]||ag(we);var Gc,Xc;return f.createElement("li",{tabIndex:0,ref:Ue,className:Oe(_,T1,V?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,V?.default,V?.[we],c==null||(n=c.classNames)==null?void 0:n[we]),"data-sonner-toast":"","data-rich-colors":(Gc=c.richColors)!=null?Gc:E,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":j,"data-promise":!!c.promise,"data-swiped":He,"data-removed":X,"data-visible":C1,"data-y-position":P1,"data-x-position":A1,"data-index":y,"data-front":S1,"data-swiping":Me,"data-dismissible":Ot,"data-type":we,"data-invert":D1,"data-swipe-out":be,"data-swipe-direction":ie,"data-expanded":!!(w||Q&&j),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":C.length-y,"--offset":`${X?w1:Ft.current}px`,"--initial-height":Q?"auto":`${x1}px`,...P,...c.style},onDragEnd:()=>{K(!1),z(null),jt.current=null},onPointerDown:O=>{O.button!==2&&(ai||!Ot||(Hc.current=new Date,ii(Ft.current),O.target.setPointerCapture(O.pointerId),O.target.tagName!=="BUTTON"&&(K(!0),jt.current={x:O.clientX,y:O.clientY})))},onPointerUp:()=>{var O,ce,fe;if(be||!Ot)return;jt.current=null;const xe=Number(((O=Ue.current)==null?void 0:O.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),er=Number(((ce=Ue.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ue=new Date().getTime()-((fe=Hc.current)==null?void 0:fe.getTime()),Pe=B==="x"?xe:er,tr=Math.abs(Pe)/ue;if(Math.abs(Pe)>=Ag||tr>.11){ii(Ft.current),c.onDismiss==null||c.onDismiss.call(c,c),se(B==="x"?xe>0?"right":"left":er>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),K(!1),z(null)},onPointerMove:O=>{var ce,fe,xe;if(!jt.current||!Ot||((ce=window.getSelection())==null?void 0:ce.toString().length)>0)return;const ue=O.clientY-jt.current.y,Pe=O.clientX-jt.current.x;var tr;const Ve=(tr=e.swipeDirections)!=null?tr:$g(U);!B&&(Math.abs(Pe)>1||Math.abs(ue)>1)&&z(Math.abs(Pe)>Math.abs(ue)?"x":"y");let Ie={x:0,y:0};const Zc=pt=>1/(1.5+Math.abs(pt)/20);if(B==="y"){if(Ve.includes("top")||Ve.includes("bottom"))if(Ve.includes("top")&&ue<0||Ve.includes("bottom")&&ue>0)Ie.y=ue;else{const pt=ue*Zc(ue);Ie.y=Math.abs(pt)<Math.abs(ue)?pt:ue}}else if(B==="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*Zc(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`)}},E1&&!c.jsx&&we!=="loading"?f.createElement("button",{"aria-label":R,"data-disabled":ai,"data-close-button":!0,onClick:ai||!Ot?()=>{}:()=>{Qe(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Oe(V?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Xc=I?.close)!=null?Xc:pg):null,(we||c.icon||c.promise)&&c.icon!==null&&(I?.[we]!==null||c.icon)?f.createElement("div",{"data-icon":"",className:Oe(V?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||$1():null,c.type!=="loading"?M1:null):null,f.createElement("div",{"data-content":"",className:Oe(V?.content,c==null||(s=c.classNames)==null?void 0:s.content)},f.createElement("div",{"data-title":"",className:Oe(V?.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($,k1,V?.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:O=>{Yn(c.cancel)&&Ot&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,O),Qe())},className:Oe(V?.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||N,onClick:O=>{Yn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,O),!O.defaultPrevented&&Qe())},className:Oe(V?.actionButton,c==null||(d=c.classNames)==null?void 0:d.actionButton)},c.action.label):null)};function Zl(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Vg(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?kg:Tg;function l(d){["top","right","bottom","left"].forEach(u=>{n[`${i}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${i}-${d}`]=a:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(a)}),n}const Ig=f.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:l,className:d,offset:u,mobileOffset:c,theme:h="light",richColors:m,duration:g,style:v,visibleToasts:x=Cg,toastOptions:y,dir:C=Zl(),gap:w=Pg,icons:A,containerAriaLabel:E="Notifications"}=t,[k,P]=f.useState([]),D=f.useMemo(()=>r?k.filter(j=>j.toasterId===r):k.filter(j=>!j.toasterId),[k,r]),N=f.useMemo(()=>Array.from(new Set([s].concat(D.filter(j=>j.position).map(j=>j.position)))),[D,s]),[_,$]=f.useState([]),[H,U]=f.useState(!1),[G,Q]=f.useState(!1),[V,I]=f.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),R=f.useRef(null),B=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=f.useRef(null),ie=f.useRef(!1),se=f.useCallback(j=>{P(q=>{var X;return(X=q.find(le=>le.id===j.id))!=null&&X.delete||ve.dismiss(j.id),q.filter(({id:le})=>le!==j.id)})},[]);return f.useEffect(()=>ve.subscribe(j=>{if(j.dismiss){requestAnimationFrame(()=>{P(q=>q.map(X=>X.id===j.id?{...X,delete:!0}:X))});return}setTimeout(()=>{li.flushSync(()=>{P(q=>{const X=q.findIndex(le=>le.id===j.id);return X!==-1?[...q.slice(0,X),{...q[X],...j},...q.slice(X+1)]:[j,...q]})})})}),[k]),f.useEffect(()=>{if(h!=="system"){I(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),typeof window>"u")return;const j=window.matchMedia("(prefers-color-scheme: dark)");try{j.addEventListener("change",({matches:q})=>{I(q?"dark":"light")})}catch{j.addListener(({matches:X})=>{try{I(X?"dark":"light")}catch(le){console.error(le)}})}},[h]),f.useEffect(()=>{k.length<=1&&U(!1)},[k]),f.useEffect(()=>{const j=q=>{var X;if(i.every(K=>q[K]||q.code===K)){var Me;U(!0),(Me=R.current)==null||Me.focus()}q.code==="Escape"&&(document.activeElement===R.current||(X=R.current)!=null&&X.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[i]),f.useEffect(()=>{if(R.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,ie.current=!1)}},[R.current]),f.createElement("section",{ref:n,"aria-label":`${E} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((j,q)=>{var X;const[le,Me]=j.split("-");return D.length?f.createElement("ol",{key:j,dir:C==="auto"?Zl():C,tabIndex:-1,ref:R,className:d,"data-sonner-toaster":!0,"data-sonner-theme":V,"data-y-position":le,"data-x-position":Me,style:{"--front-toast-height":`${((X=_[0])==null?void 0:X.height)||0}px`,"--width":`${Eg}px`,"--gap":`${w}px`,...v,...Vg(u,c)},onBlur:K=>{ie.current&&!K.currentTarget.contains(K.relatedTarget)&&(ie.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||ie.current||(ie.current=!0,z.current=K.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{G||U(!1)},onDragEnd:()=>U(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||Q(!0)},onPointerUp:()=>Q(!1)},D.filter(K=>!K.position&&q===0||K.position===j).map((K,be)=>{var Je,He;return f.createElement(Mg,{key:K.id,icons:A,index:be,toast:K,defaultRichColors:m,duration:(Je=y?.duration)!=null?Je:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(He=y?.closeButton)!=null?He:l,interacting:G,position:j,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:se,toasts:D.filter(me=>me.position==K.position),heights:_.filter(me=>me.position==K.position),setHeights:$,expandByDefault:a,gap:w,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),Lg=({spinnerColor:e="orange",...t})=>p.jsx(Ig,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:p.jsx(Yl,{color:e})},...t}),Ng={elevated:b`
|
|
444
|
+
`,Zl=({children:e,size:t=16,color:n,className:r,style:o})=>p.jsx(ig,{$size:t,$color:n,className:r,style:o,children:e});x.div`
|
|
445
|
+
position: fixed;
|
|
446
|
+
inset: 0;
|
|
447
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
448
|
+
backdrop-filter: blur(0.25rem);
|
|
449
|
+
display: flex;
|
|
450
|
+
align-items: center;
|
|
451
|
+
justify-content: center;
|
|
452
|
+
z-index: 50;
|
|
453
|
+
`,x.div`
|
|
454
|
+
background-color: var(--color-main-white);
|
|
455
|
+
border-radius: var(--border-radius-card);
|
|
456
|
+
box-shadow: var(--shadow-black-card);
|
|
457
|
+
padding: 2rem;
|
|
458
|
+
display: flex;
|
|
459
|
+
flex-direction: column;
|
|
460
|
+
align-items: center;
|
|
461
|
+
gap: 1rem;
|
|
462
|
+
width: 90%;
|
|
463
|
+
max-width: 24rem;
|
|
464
|
+
`,x.h2`
|
|
465
|
+
${yr[30]}
|
|
466
|
+
color: var(--color-main-blue-primary);
|
|
467
|
+
margin: 0 auto;
|
|
468
|
+
text-align: center;
|
|
469
|
+
`,x.div`
|
|
470
|
+
display: flex;
|
|
471
|
+
flex-direction: column;
|
|
472
|
+
align-items: center;
|
|
473
|
+
justify-content: center;
|
|
474
|
+
padding: 3rem 1rem;
|
|
475
|
+
`;function sg(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ag=e=>{switch(e){case"success":return dg;case"info":return hg;case"warning":return ug;case"error":return fg;default:return null}},lg=Array(12).fill(0),cg=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},lg.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),dg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ug=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),hg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),fg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pg=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),mg=()=>{const[e,t]=f.useState(document.hidden);return f.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Oo=1;class gg{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Oo++,i=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...o,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const a=o.then(async d=>{if(i=["resolve",d],f.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(vg(d)&&!d.ok){s=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(d instanceof Error){s=!1;const c=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(n.success!==void 0){s=!1;const c=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:h,...g})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){s=!1;const u=typeof n.error=="function"?await n.error(d):n.error,c=typeof n.description=="function"?await n.description(d):n.description,m=typeof u=="object"&&!f.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:c,...m})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((d,u)=>a.then(()=>i[0]==="reject"?u(i[1]):d(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||Oo++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ve=new gg,yg=(e,t)=>{const n=t?.id||Oo++;return ve.addToast({title:e,...t,id:n}),n},vg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",bg=yg,wg=()=>ve.toasts,xg=()=>ve.getActiveToasts(),Sg=Object.assign(bg,{success:ve.success,info:ve.info,warning:ve.warning,error:ve.error,custom:ve.custom,message:ve.message,promise:ve.promise,dismiss:ve.dismiss,loading:ve.loading},{getHistory:wg,getToasts:xg});sg("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Kn(e){return e.label!==void 0}const Cg=3,Tg="24px",kg="16px",ql=4e3,Eg=356,Pg=14,Ag=45,Dg=200;function Oe(...e){return e.filter(Boolean).join(" ")}function $g(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Mg=e=>{var t,n,r,o,s,i,a,l,d;const{invert:u,toast:c,unstyled:h,interacting:m,setHeights:g,visibleToasts: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),[D1,ai]=f.useState(0),[$1,Yc]=f.useState(0),ln=f.useRef(c.duration||H||ql),Gc=f.useRef(null),Ue=f.useRef(null),M1=y===0,V1=y+1<=v,we=c.type,Ot=c.dismissible!==!1,I1=c.className||"",L1=c.descriptionClassName||"",qn=f.useMemo(()=>k.findIndex(I=>I.toastId===c.id)||0,[k,c.id]),N1=f.useMemo(()=>{var I;return(I=c.closeButton)!=null?I:P},[c.closeButton,P]),Xc=f.useMemo(()=>c.duration||H||ql,[c.duration,H]),li=f.useRef(0),Ft=f.useRef(0),Zc=f.useRef(0),jt=f.useRef(null),[B1,O1]=ee.split("-"),qc=f.useMemo(()=>k.reduce((I,ae,fe)=>fe>=qn?I:I+ae.height,0),[k,qn]),Jc=mg(),F1=c.invert||u,ci=we==="loading";Ft.current=f.useMemo(()=>qn*U+qc,[qn,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),ai(Ft.current),g(I=>I.filter(ae=>ae.toastId!==c.id)),setTimeout(()=>{T(c)},Dg)},[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<li.current){const xe=new Date().getTime()-li.current;ln.current=ln.current-xe}Zc.current=new Date().getTime()})():(()=>{ln.current!==1/0&&(li.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 j1(){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(cg,{className:Oe(O?.loader,c==null||(I=c.classNames)==null?void 0:I.loader),visible:we==="loading"})}const z1=c.icon||V?.[we]||ag(we);var Qc,ed;return f.createElement("li",{tabIndex:0,ref:Ue,className:Oe(F,I1,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":V1,"data-y-position":B1,"data-x-position":O1,"data-index":y,"data-front":M1,"data-swiping":Me,"data-dismissible":Ot,"data-type":we,"data-invert":F1,"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?D1:Ft.current}px`,"--initial-height":he?"auto":`${$1}px`,...A,...c.style},onDragEnd:()=>{z(!1),Y(null),jt.current=null},onPointerDown:I=>{I.button!==2&&(ci||!Ot||(Gc.current=new Date,ai(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),Jn=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:Jn,Qn=Math.abs(Pe)/de;if(Math.abs(Pe)>=Ag||Qn>.11){ai(Ft.current),c.onDismiss==null||c.onDismiss.call(c,c),oe(W==="x"?xe>0?"right":"left":Jn>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 Qn;const Ve=(Qn=e.swipeDirections)!=null?Qn:$g(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`)}},N1&&!c.jsx&&we!=="loading"?f.createElement("button",{"aria-label":_,"data-disabled":ci,"data-close-button":!0,onClick:ci||!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:pg):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||j1():null,c.type!=="loading"?z1: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,L1,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&&Kn(c.cancel)?f.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||D,onClick:I=>{Kn(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&&Kn(c.action)?f.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||B,onClick:I=>{Kn(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 Vg(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?kg:Tg;function l(d){["top","right","bottom","left"].forEach(u=>{n[`${i}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${i}-${d}`]=a:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(a)}),n}const Ig=f.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:l,className:d,offset:u,mobileOffset:c,theme:h="light",richColors:m,duration:g,style:v,visibleToasts:k=Cg,toastOptions:y,dir:S=Jl(),gap:C=Pg,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(()=>{di.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":`${Eg}px`,"--gap":`${C}px`,...v,...Vg(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(Mg,{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}))}),Lg=({spinnerColor:e="orange",...t})=>p.jsx(Ig,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:p.jsx(Xl,{color:e,size:"sm"})},...t}),Ng={elevated:b`
|
|
476
476
|
background-color: var(--color-main-white);
|
|
477
477
|
box-shadow: var(--shadow-black-card);
|
|
478
478
|
border: none;
|
|
@@ -537,7 +537,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
537
537
|
transform: none;
|
|
538
538
|
box-shadow: inherit;
|
|
539
539
|
}
|
|
540
|
-
`,jg=
|
|
540
|
+
`,jg=x.div`
|
|
541
541
|
display: flex;
|
|
542
542
|
flex-direction: column;
|
|
543
543
|
border-radius: var(--border-radius-card);
|
|
@@ -549,27 +549,32 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
549
549
|
${({$clickable:e})=>e&&Og}
|
|
550
550
|
${({$disabled:e})=>e&&Fg}
|
|
551
551
|
${({$size:e})=>Bg[e]}
|
|
552
|
-
`,zg=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...s})=>{const i=a=>{n||r&&r(a)};return p.jsx(jg,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:i,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i(a))}:void 0,...s,children:o})},Rg=
|
|
552
|
+
`,zg=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...s})=>{const i=a=>{n||r&&r(a)};return p.jsx(jg,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:i,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i(a))}:void 0,...s,children:o})},Rg=x.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&&b`
|
|
559
|
+
border-bottom: 1px solid var(--color-divider);
|
|
560
|
+
padding-bottom: 0.5rem;
|
|
561
|
+
`}
|
|
562
|
+
`,_g=({children:e,showDivider:t=!1,...n})=>p.jsx(Rg,{$showDivider:t,...n,children:e}),Hg=x.div`
|
|
558
563
|
flex: 1;
|
|
559
564
|
display: flex;
|
|
560
565
|
flex-direction: column;
|
|
561
|
-
`,Ug=({children:e,...
|
|
566
|
+
`,Ug=({children:e,showDivider:t=!1,...n})=>p.jsx(Hg,{$showDivider:t,...n,children:e}),Wg=x.div`
|
|
562
567
|
display: flex;
|
|
563
568
|
align-items: center;
|
|
564
569
|
align-self: stretch;
|
|
565
570
|
gap: 0.5rem;
|
|
566
571
|
`,Kg=({children:e,...t})=>p.jsx(Wg,{...t,children:e}),Yg={sm:b`
|
|
567
|
-
${
|
|
572
|
+
${M[12]}
|
|
568
573
|
`,md:b`
|
|
569
|
-
${
|
|
574
|
+
${M[16]}
|
|
570
575
|
`,lg:b`
|
|
571
|
-
${
|
|
572
|
-
`},Gg=
|
|
576
|
+
${M[18]}
|
|
577
|
+
`},Gg=x.div`
|
|
573
578
|
color: var(--color-main-warning-state);
|
|
574
579
|
${({$size:e})=>Yg[e]}
|
|
575
580
|
font-weight: 400;
|
|
@@ -577,13 +582,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
577
582
|
display: flex;
|
|
578
583
|
align-items: flex-start;
|
|
579
584
|
gap: 0.25rem;
|
|
580
|
-
`,
|
|
581
|
-
${
|
|
585
|
+
`,Fo=({children:e,className:t,size:n="md",...r})=>p.jsx(Gg,{className:t,$size:n,...r,children:e}),Xg={sm:b`
|
|
586
|
+
${M[16]}
|
|
582
587
|
`,md:b`
|
|
583
|
-
${
|
|
588
|
+
${M[24]}
|
|
584
589
|
`,lg:b`
|
|
585
|
-
${
|
|
586
|
-
`},Zg=
|
|
590
|
+
${M[30]}
|
|
591
|
+
`},Zg=x.label`
|
|
587
592
|
color: var(--color-main-blue-primary);
|
|
588
593
|
${({$size:e})=>Xg[e]}
|
|
589
594
|
${({$disabled:e})=>e&&qg}
|
|
@@ -591,14 +596,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
591
596
|
`,qg=b`
|
|
592
597
|
cursor: not-allowed;
|
|
593
598
|
opacity: 0.6;
|
|
594
|
-
`,
|
|
599
|
+
`,Yn=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:s="md",...i})=>p.jsxs(Zg,{className:n,htmlFor:t,$htmlFor:t,$size:s,$disabled:o,...i,children:[e,r&&p.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),Ql=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],ec=e=>Ql.includes(e),Ze=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})),Jg=e=>e.map(t=>({value:t.value,label:t.label})),Qg={text:(e,t,n)=>Ze([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>Ze([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>Ze([{name:e,label:t,type:"password",required:!0,validation:{pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,}$",custom:r=>{if(r&&r.length<8)return"Password must be at least 8 characters long"}},...n}])[0],select:(e,t,n,r)=>Ze([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>Ze([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>Ze([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>Ze([{name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} must be ${n} digits long`}},...r}])[0]},e0=(e,t,n,r,o,s,i,a)=>{const{field:l,...d}=t,u={...l,...d,size:d.size,hasError:d.hasError,disabled:d.disabled,placeholder:d.placeholder,className:d.className};switch(e){case"textarea":return{component:"textarea",props:{...u,rows:i?.rows||4}};case"select":return{component:"select",props:{...u,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...u,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...u,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...u,length:s?.pinLength||6,type:s?.pinType||"number",onComplete:s?.onPinComplete}};case"password":return{component:"password",props:{...u,type:"password"}};case"search":return{component:"search",props:{...u,onSearch:a?.onSearch}};default:return{component:"base",props:{...u,type:t.type||e||"text"}}}},ut=b`
|
|
595
600
|
display: flex;
|
|
596
601
|
justify-content: space-between;
|
|
597
602
|
align-items: center;
|
|
598
603
|
gap: 0.625rem;
|
|
599
604
|
width: 100%;
|
|
600
605
|
flex-shrink: 0;
|
|
601
|
-
outline: 2px solid transparent;
|
|
602
606
|
color: var(--color-main-blue-primary);
|
|
603
607
|
border: var(--border-input);
|
|
604
608
|
border-radius: var(--border-radius-article);
|
|
@@ -622,7 +626,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
622
626
|
&:disabled {
|
|
623
627
|
cursor: not-allowed;
|
|
624
628
|
}
|
|
625
|
-
`,
|
|
629
|
+
`,Gn=b`
|
|
626
630
|
width: 100%;
|
|
627
631
|
border: none;
|
|
628
632
|
outline: none;
|
|
@@ -650,7 +654,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
650
654
|
border: var(--border-input-disabled) !important;
|
|
651
655
|
cursor: not-allowed;
|
|
652
656
|
opacity: 0.6;
|
|
653
|
-
`,
|
|
657
|
+
`,tc=b`
|
|
654
658
|
border: none;
|
|
655
659
|
border-top: 0;
|
|
656
660
|
border-right: 0;
|
|
@@ -679,52 +683,52 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
679
683
|
`,sn={sm:b`
|
|
680
684
|
padding: 0.5rem 1rem;
|
|
681
685
|
height: 2.5rem;
|
|
682
|
-
${
|
|
686
|
+
${M[18]}
|
|
683
687
|
`,md:b`
|
|
684
688
|
padding: 0.5rem 1rem;
|
|
685
689
|
height: 2.75rem;
|
|
686
|
-
${
|
|
690
|
+
${M[20]}
|
|
687
691
|
`,lg:b`
|
|
688
692
|
padding: 0.5rem 1rem;
|
|
689
693
|
height: 3rem;
|
|
690
|
-
${
|
|
691
|
-
`},
|
|
694
|
+
${M[20]}
|
|
695
|
+
`},Xn=b`
|
|
692
696
|
display: flex;
|
|
693
697
|
align-items: center;
|
|
694
698
|
justify-content: center;
|
|
695
699
|
flex-shrink: 0;
|
|
696
700
|
user-select: none;
|
|
697
|
-
`,t0=
|
|
701
|
+
`,t0=x.div`
|
|
698
702
|
${ut}
|
|
699
703
|
${({$size:e})=>sn[e]}
|
|
700
704
|
${({$hasError:e})=>e&&ht}
|
|
701
705
|
${({$disabled:e})=>e&&qe}
|
|
702
|
-
${({$isFlushed:e})=>e&&
|
|
703
|
-
`,n0=
|
|
704
|
-
${
|
|
705
|
-
`,
|
|
706
|
+
${({$isFlushed:e})=>e&&tc}
|
|
707
|
+
`,n0=x.input`
|
|
708
|
+
${Gn}
|
|
709
|
+
`,jo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:r="text",flushed:o=!1,leftIcon:s,rightIcon:i,iconSize:a="md",iconColor:l="currentColor",className:d,...u},c)=>p.jsxs(t0,{$size:e,$hasError:t,className:d,$isFlushed:o,children:[s&&p.jsx(j,{component:s,size:a,color:n?"var(--color-dark-200)":l}),p.jsx(n0,{ref:c,type:r,$hasError:t,disabled:n,...u}),i&&p.jsx(j,{component:i,size:a,color:n?"var(--color-dark-200)":l})]}));jo.displayName="BaseInput";const r0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"})),o0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})),i0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})),s0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})),nc=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),a0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"})),l0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"})),c0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"})),d0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M5 22C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2H19C19.5523 2 20 2.44772 20 3V6H18V4H6V20H18V18H20V21C20 21.5523 19.5523 22 19 22H5ZM18 16V13H11V11H18V8L23 12L18 16Z"})),rc=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),u0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),h0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM18 17V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V17H18ZM9 21H15V23H9V21Z"})),oc=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"})),f0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M12 12.5858L16.2426 16.8284L14.8284 18.2426L13 16.415V22H11V16.413L9.17157 18.2426L7.75736 16.8284L12 12.5858ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z"})),p0=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"})),m0=x.div`
|
|
706
710
|
${ut}
|
|
707
711
|
${({$size:e})=>sn[e??"md"]}
|
|
708
712
|
${({$hasError:e})=>e&&ht}
|
|
709
713
|
${({$disabled:e})=>e&&qe}
|
|
710
714
|
position: relative;
|
|
711
|
-
`,g0=
|
|
712
|
-
${
|
|
713
|
-
`,y0=
|
|
714
|
-
${
|
|
715
|
+
`,g0=x.input`
|
|
716
|
+
${Gn}
|
|
717
|
+
`,y0=x.span`
|
|
718
|
+
${Xn}
|
|
715
719
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
716
|
-
`,
|
|
720
|
+
`,ic=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:s=!1,disabled:i=!1,className:a,...l})=>{const[d,u]=f.useState(!1),c=()=>u(h=>!h);return p.jsxs(m0,{$size:e,$hasError:s,$disabled:i,className:a,children:[t&&p.jsx(j,{component:t,size:n,color:i?"var(--color-dark-200)":r}),p.jsx(g0,{type:d?"text":"password",placeholder:o,disabled:i,...l}),p.jsx(y0,{$disabled:i,onClick:i?void 0:c,children:p.jsx(j,{component:d?c0:l0,size:n,color:i?"var(--color-dark-200)":r})})]})},sc=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},v0=e=>{for(let t=e.length-1;t>=0;t--)if(!e[t].disabled)return t;return e.length-1},b0=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},w0=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),x0=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},S0=(e,t)=>{if(typeof e=="string"||typeof e=="number"){const n=t.findIndex(r=>r.value===e);if(n!==-1&&!t[n].disabled)return n}return sc(t)},C0=({options:e,value:t,name:n,disabled:r=!1,onChange:o,onOptionSelect:s})=>{const i=f.useRef(null),a=f.useRef(null),l=f.useRef(null),d=f.useRef(null),u=f.useId(),[c,h]=f.useState(!1),[m,g]=f.useState(-1),v=e.find(T=>T.value===t);f.useEffect(()=>{c&&a.current&&(a.current.focus(),g(S0(t,e)))},[c,e,t]),f.useEffect(()=>{x0(l,m)},[m]),f.useEffect(()=>{if(!c)return;const T=w=>{i.current&&(i.current.contains(w.target)||h(!1))};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[c]),f.useEffect(()=>{c||requestAnimationFrame(()=>{d.current?.focus()})},[c]);const k=T=>{T.disabled||(s?.(T),o&&o(w0(T.value,n)),h(!1),g(-1))};return{open:c,activeIndex:m,selected:v,containerRef:i,menuRef:a,menuContentRef:l,buttonRef:d,id:u,setOpen:h,setActiveIndex:g,commitSelection:k,handleKeyDownButton:T=>{r||(T.key==="ArrowDown"||T.key==="ArrowUp"?(T.preventDefault(),h(!0)):(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),h(w=>!w)))},handleKeyDownMenu:T=>{if(T.key==="Escape"){T.preventDefault(),h(!1),g(-1);return}if(T.key==="ArrowDown"||T.key==="ArrowUp"){T.preventDefault();const w=T.key==="ArrowDown"?1:-1;g(b0(m,w,e))}else if(T.key==="Enter"){T.preventDefault();const w=e[m];w&&!w.disabled&&k(w)}else T.key==="Home"?(T.preventDefault(),g(sc(e))):T.key==="End"&&(T.preventDefault(),g(v0(e)))},handleToggle:()=>{r||h(T=>!T)}}},T0=x.div`
|
|
717
721
|
position: relative;
|
|
718
722
|
width: 100%;
|
|
719
|
-
`,
|
|
720
|
-
${
|
|
723
|
+
`,k0=x.div`
|
|
724
|
+
${Xn}
|
|
721
725
|
position: absolute;
|
|
722
726
|
right: 1rem;
|
|
723
727
|
top: 50%;
|
|
724
728
|
transform: translateY(-50%) rotate(${({$open:e})=>e?"180deg":"0deg"});
|
|
725
729
|
pointer-events: none;
|
|
726
730
|
transition: transform 0.3s ease-out;
|
|
727
|
-
`,
|
|
731
|
+
`,E0=x.button`
|
|
728
732
|
${ut}
|
|
729
733
|
${({$size:e})=>sn[e]}
|
|
730
734
|
${({$hasError:e})=>e&&ht}
|
|
@@ -746,7 +750,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
746
750
|
&:hover {
|
|
747
751
|
background-color: var(--color-main-alternative-secondary);
|
|
748
752
|
}
|
|
749
|
-
`,
|
|
753
|
+
`,P0=x(_e.ul)`
|
|
750
754
|
position: absolute;
|
|
751
755
|
z-index: 50;
|
|
752
756
|
left: 0;
|
|
@@ -768,11 +772,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
768
772
|
border: var(--border-input-focus);
|
|
769
773
|
outline: none;
|
|
770
774
|
}
|
|
771
|
-
`,
|
|
775
|
+
`,A0=x.div`
|
|
772
776
|
max-height: 15rem;
|
|
773
777
|
overflow-y: auto;
|
|
774
778
|
outline: none;
|
|
775
|
-
`,
|
|
779
|
+
`,D0=x.li`
|
|
776
780
|
display: flex;
|
|
777
781
|
align-items: center;
|
|
778
782
|
gap: 0.5rem;
|
|
@@ -782,22 +786,22 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
782
786
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
783
787
|
user-select: none;
|
|
784
788
|
|
|
785
|
-
${({$size:e})
|
|
789
|
+
${({$size:e})=>$0[e??"md"]}
|
|
786
790
|
|
|
787
791
|
background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
|
|
788
792
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
789
|
-
|
|
790
|
-
${
|
|
793
|
+
`,$0={sm:b`
|
|
794
|
+
${M[16]}
|
|
791
795
|
`,md:b`
|
|
792
|
-
${
|
|
796
|
+
${M[18]}
|
|
793
797
|
`,lg:b`
|
|
794
|
-
${
|
|
795
|
-
`},
|
|
798
|
+
${M[18]}
|
|
799
|
+
`},ac=f.forwardRef(({size:e,hasError:t,disabled:n,hasValue:r,displayText:o,open:s,inputClassName:i,onClick:a,onKeyDown:l,ariaHaspopup:d,ariaExpanded:u,ariaControls:c,ariaInvalid:h,title:m},g)=>p.jsxs(p.Fragment,{children:[p.jsx(E0,{type:"button",$size:e,$hasError:t,$hasValue:r,$disabled:n,disabled:n,className:i,ref:g,onClick:a,onKeyDown:l,"aria-haspopup":d,"aria-expanded":u,"aria-controls":c,"aria-invalid":h,title:m,children:o}),p.jsx(k0,{$size:e,$disabled:n,$open:s,children:p.jsx(j,{component:s0,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})})]}));ac.displayName="SelectTrigger";const lc=({option:e,size:t,active:n,selected:r,id:o,className:s,onMouseEnter:i,onClick:a})=>p.jsx(D0,{id:o,className:s,role:"option",$size:t,"aria-selected":r,$active:n,$disabled:e.disabled,onMouseEnter:i,onClick:a,children:e.label});lc.displayName="SelectOption";const cc=({open:e,options:t,size:n,activeIndex:r,selectedValue:o,menuRef:s,menuContentRef:i,id:a,optionsClassName:l,optionClassName:d,onKeyDown:u,onOptionClick:c,onOptionMouseEnter:h})=>p.jsx(Zt,{children:e&&p.jsx(P0,{ref:s,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:u,children:p.jsx(A0,{ref:i,className:l,children:t.map((m,g)=>{const v=g===r;return p.jsx(lc,{option:m,size:n,active:v,selected:o===m.value,id:`${a}-option-${g}`,className:d,onMouseEnter:()=>{!m.disabled&&e&&h(g)},onClick:()=>c(m)},m.value)})})})});cc.displayName="SelectMenu";const zo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:s,onChange:i,value:a,name:l,className:d,inputClassName:u,optionsClassName:c,optionClassName:h},m)=>{const{open:g,activeIndex:v,selected:k,containerRef:y,menuRef:S,menuContentRef:C,buttonRef:T,id:w,setActiveIndex:P,commitSelection:A,handleKeyDownButton:D,handleKeyDownMenu:B,handleToggle:F}=C0({options:r,value:a,name:l,disabled:n,onChange:i,onOptionSelect:s}),q=H=>{T.current=H,typeof m=="function"?m(H):m&&"current"in m&&(m.current=H)};return p.jsxs(T0,{ref:y,className:d,children:[l&&p.jsx("input",{type:"hidden",name:l,value:k?.value??""}),p.jsx(ac,{ref:q,size:e,hasError:t,disabled:n,hasValue:!!k,displayText:k?.label??o??"",open:g,inputClassName:u,onClick:F,onKeyDown:D,ariaHaspopup:"listbox",ariaExpanded:g,ariaControls:`${w}-listbox`,ariaInvalid:t||void 0,title:k?.label??o??"Select an option"}),p.jsx(cc,{open:g,options:r,size:e,activeIndex:v,selectedValue:a,menuRef:S,menuContentRef:C,id:w,optionsClassName:c,optionClassName:h,onKeyDown:B,onOptionClick:A,onOptionMouseEnter:P})]})});zo.displayName="SelectInput";const M0=x.textarea`
|
|
796
800
|
${ut}
|
|
797
|
-
${({$size:e})=>
|
|
801
|
+
${({$size:e})=>V0[e]}
|
|
798
802
|
${({$hasError:e})=>e&&ht}
|
|
799
803
|
${({$disabled:e})=>e&&qe}
|
|
800
|
-
${
|
|
804
|
+
${M[20]}
|
|
801
805
|
|
|
802
806
|
resize: ${({$resize:e})=>e};
|
|
803
807
|
|
|
@@ -810,61 +814,61 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
810
814
|
color: var(--color-dark-200);
|
|
811
815
|
opacity: 1;
|
|
812
816
|
}
|
|
813
|
-
`,
|
|
814
|
-
${
|
|
817
|
+
`,V0={sm:`
|
|
818
|
+
${M[20]}
|
|
815
819
|
height: 6rem;
|
|
816
820
|
max-height: 12rem;
|
|
817
821
|
padding: 1rem 1.25rem;
|
|
818
822
|
`,md:`
|
|
819
|
-
${
|
|
823
|
+
${M[24]}
|
|
820
824
|
height: 8rem;
|
|
821
825
|
max-height: 16rem;
|
|
822
826
|
padding: 1rem 1.25rem;
|
|
823
827
|
`,lg:`
|
|
824
|
-
${
|
|
828
|
+
${M[24]}
|
|
825
829
|
height:12rem;
|
|
826
830
|
max-height: 20rem;
|
|
827
831
|
padding: 1rem 1.25rem;
|
|
828
|
-
`},
|
|
832
|
+
`},Ro=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:r="vertical",autoResize:o=!1,minRows:s=3,maxRows:i,className:a,onChange:l,...d},u)=>{const c=h=>{if(o){const m=h.target;m.style.height="auto";const g=m.scrollHeight,v=s*24,k=i?i*24:g;g>k?(m.style.height=`${k}px`,m.style.overflowY="scroll"):(m.style.height=`${Math.max(g,v)}px`,m.style.overflowY="hidden")}l?.(h)};return p.jsx(M0,{ref:u,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:s,className:a,onChange:c,...d})});Ro.displayName="TextAreaInput";const I0=x.div`
|
|
829
833
|
${ut}
|
|
830
834
|
${({$size:e})=>sn[e??"md"]}
|
|
831
|
-
`,
|
|
832
|
-
${
|
|
833
|
-
`,
|
|
835
|
+
`,L0=x.input`
|
|
836
|
+
${Gn}
|
|
837
|
+
`,dc=({size:e="md",leftIcon:t,rightIcon:n=oc,iconSize:r="sm",iconColor:o="currentColor",placeholder:s="Buscar...",onSearch:i,className:a,...l})=>{const d=u=>{i?.(u.target.value)};return p.jsxs(I0,{$size:e,className:a,children:[t&&p.jsx(j,{component:t,size:r,color:o}),p.jsx(L0,{placeholder:s,onChange:d,...l}),n?p.jsx(j,{component:n,size:r,color:o}):p.jsx(j,{component:oc,size:r,color:o})]})},N0={default:b`
|
|
834
838
|
min-height: 18rem;
|
|
835
839
|
padding: 2rem;
|
|
836
840
|
`,compact:b`
|
|
837
841
|
min-height: 6rem;
|
|
838
842
|
padding: 1rem;
|
|
839
843
|
flex-direction: row;
|
|
840
|
-
`},
|
|
841
|
-
${
|
|
844
|
+
`},B0={sm:b`
|
|
845
|
+
${M[12]}
|
|
842
846
|
`,md:b`
|
|
843
|
-
${
|
|
847
|
+
${M[16]}
|
|
844
848
|
`,lg:b`
|
|
845
|
-
${
|
|
846
|
-
`},
|
|
849
|
+
${M[20]}
|
|
850
|
+
`},O0=b`
|
|
847
851
|
border: 2px dashed var(--color-main-input-borders);
|
|
848
852
|
background-color: var(--color-main-white);
|
|
849
|
-
`,
|
|
853
|
+
`,F0=b`
|
|
850
854
|
border-color: var(--color-main-blue-primary);
|
|
851
855
|
background-color: var(--color-main-alternative-secondary);
|
|
852
|
-
`,
|
|
856
|
+
`,j0=b`
|
|
853
857
|
border: 2px dashed var(--color-main-positive-state);
|
|
854
858
|
background-color: var(--color-green-100);
|
|
855
|
-
`,
|
|
859
|
+
`,z0=b`
|
|
856
860
|
border-color: var(--color-main-warning-state);
|
|
857
861
|
background-color: var(--color-red-100);
|
|
858
|
-
`,
|
|
862
|
+
`,R0=b`
|
|
859
863
|
border-color: var(--color-dark-200);
|
|
860
864
|
cursor: not-allowed;
|
|
861
865
|
opacity: 0.6;
|
|
862
|
-
`,
|
|
866
|
+
`,_0=x.div`
|
|
863
867
|
display: flex;
|
|
864
868
|
flex-direction: column;
|
|
865
869
|
width: 100%;
|
|
866
|
-
${({$size:e})=>
|
|
867
|
-
`,
|
|
870
|
+
${({$size:e})=>B0[e]}
|
|
871
|
+
`,H0=x.div`
|
|
868
872
|
display: flex;
|
|
869
873
|
flex-direction: column;
|
|
870
874
|
align-items: center;
|
|
@@ -880,35 +884,35 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
880
884
|
outline: 2px solid transparent;
|
|
881
885
|
outline-offset: 2px;
|
|
882
886
|
|
|
883
|
-
${({$variant:e})=>
|
|
884
|
-
${
|
|
887
|
+
${({$variant:e})=>N0[e]}
|
|
888
|
+
${O0}
|
|
885
889
|
|
|
886
|
-
${({$disabled:e})=>e?
|
|
890
|
+
${({$disabled:e})=>e?R0:b`
|
|
887
891
|
&:hover {
|
|
888
|
-
${
|
|
892
|
+
${F0}
|
|
889
893
|
}
|
|
890
894
|
`}
|
|
891
895
|
|
|
892
|
-
${({$isDragging:e,$disabled:t})=>e&&!t&&
|
|
893
|
-
${({$hasError:e,$disabled:t})=>e&&!t&&
|
|
896
|
+
${({$isDragging:e,$disabled:t})=>e&&!t&&j0}
|
|
897
|
+
${({$hasError:e,$disabled:t})=>e&&!t&&z0}
|
|
894
898
|
|
|
895
899
|
&:focus-visible {
|
|
896
900
|
outline-color: var(--color-main-blue-primary);
|
|
897
901
|
outline-offset: 2px;
|
|
898
902
|
}
|
|
899
|
-
`,
|
|
903
|
+
`,U0=x.div`
|
|
900
904
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
901
905
|
|
|
902
906
|
strong {
|
|
903
907
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
904
908
|
font-weight: 700;
|
|
905
909
|
}
|
|
906
|
-
`,
|
|
910
|
+
`,W0=x.div`
|
|
907
911
|
display: flex;
|
|
908
912
|
flex-direction: column;
|
|
909
913
|
gap: 0.5rem;
|
|
910
914
|
margin-top: 1rem;
|
|
911
|
-
`,
|
|
915
|
+
`,K0=x.div`
|
|
912
916
|
display: flex;
|
|
913
917
|
align-items: center;
|
|
914
918
|
justify-content: space-between;
|
|
@@ -925,12 +929,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
925
929
|
&:hover {
|
|
926
930
|
background-color: var(--color-main-alternative-secondary);
|
|
927
931
|
}
|
|
928
|
-
`,
|
|
932
|
+
`,Y0=x(Ne)`
|
|
929
933
|
font-weight: 500;
|
|
930
934
|
overflow: hidden;
|
|
931
935
|
text-overflow: ellipsis;
|
|
932
936
|
white-space: nowrap;
|
|
933
|
-
`,
|
|
937
|
+
`,G0=x.button`
|
|
934
938
|
background: none;
|
|
935
939
|
border: none;
|
|
936
940
|
color: var(--color-dark-400);
|
|
@@ -957,9 +961,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
957
961
|
cursor: not-allowed;
|
|
958
962
|
opacity: 0.5;
|
|
959
963
|
}
|
|
960
|
-
`,
|
|
964
|
+
`,X0=(e,t)=>{const[n,r]=f.useState(!1),o=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!0)},[t]),s=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!1)},[t]),i=f.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]),a=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||(r(!1),e(l.dataTransfer.files))},[t,e]);return f.useEffect(()=>()=>{n&&r(!1)},[n]),{isDragging:n,dragHandlers:{onDragEnter:o,onDragLeave:s,onDragOver:i,onDrop:a}}},Z0=({maxFileSize:e,accept:t,multiple:n,onError:r})=>{const[o,s]=f.useState(""),i=f.useCallback(l=>{s(l),r?.(l)},[r]),a=f.useCallback(l=>{if(e&&l.some(d=>d.size>e)){const d=e/1048576,u=d>=1?`File size exceeds maximum of ${d.toFixed(1)}MB`:`File size exceeds maximum of ${Math.round(e/1024)}KB`;return i(u),!1}if(t){const d=t.split(",").map(c=>c.trim().toLowerCase());if(l.find(c=>{const h=c.type.toLowerCase(),m=`.${c.name.split(".").pop()?.toLowerCase()}`;return!d.some(g=>{if(g===h||g===m)return!0;if(g.endsWith("/*")){const v=g.slice(0,-2);return h.startsWith(`${v}/`)}return!1})})){const c=`File type not accepted. Allowed: ${t}`;return i(c),!1}}return!n&&l.length>1?(i("Only one file is allowed"),!1):(s(""),!0)},[e,t,n,i]);return{error:o,validateFiles:a,clearError:()=>s("")}},q0=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]}`},uc=({files:e,onRemove:t,disabled:n})=>e.length===0?null:p.jsx(W0,{children:e.map((r,o)=>p.jsxs(K0,{children:[p.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[p.jsx(Y0,{size:14,children:r.name}),p.jsx(Zl,{size:12,children:q0(r.size)})]}),p.jsx(G0,{type:"button",onClick:()=>t(o),"aria-label":`Remove ${r.name}`,disabled:n,children:p.jsx(nc,{})})]},`${r.name}-${o}`))}),J0=({variant:e="default",multiple:t=!1,maxFileSize:n=10,accept:r="image/*,application/pdf",helperText:o="Upload files here",value:s,defaultValue:i,onChange:a,onError:l,onFileRemove:d,disabled:u=!1,hasError:c=!1,errorMessage:h="",className:m="",dropZoneContainerClassName:g="",size:v="md"})=>{const k=s!==void 0,[y,S]=f.useState(i||[]),C=k?s:y,T=n*1024*1024,{error:w,validateFiles:P,clearError:A}=Z0({maxFileSize:T,accept:r,multiple:t,onError:l}),D=(U,he)=>{if(!U||U.length===0)return;const O=Array.from(U);if(!P(O))return;const V=t?[...C,...O]:O;k||S(V),a?.(V,he)},B=U=>{const he=C[U],O=C.filter((V,_)=>_!==U);k||S(O),d?.(he,U),a?.(O),O.length===0&&A()},{isDragging:F,dragHandlers:q}=X0(D,u),H=c||!!w,ee=h||w;return p.jsxs(_0,{$size:v,className:m,children:[p.jsxs("label",{"aria-label":"File upload area",className:`p-4 ${g}`,children:[p.jsxs(H0,{$variant:e,$isDragging:F,$hasError:H,$disabled:u,role:"button",tabIndex:u?-1:0,"aria-disabled":u,onKeyDown:U=>{(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),U.currentTarget.querySelector("input")?.click())},...q,children:[p.jsx(j,{component:f0,size:"lg",color:u?"var(--color-dark-200)":"var(--color-main-blue-primary)",className:"!text-[5rem]"}),p.jsxs(U0,{$disabled:u,children:[p.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),o&&!H&&p.jsx(Ne,{size:14,color:"var(--color-main-grey)",children:o})]}),p.jsx("input",{type:"file",multiple:t,accept:r,disabled:u,onChange:U=>D(U.target.files,U.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),H&&ee&&p.jsx(Fo,{size:"sm",children:ee}),p.jsx(uc,{files:C,onRemove:B,disabled:u})]})},Q0=x.div`
|
|
961
965
|
position: relative;
|
|
962
|
-
`,
|
|
966
|
+
`,ey=x.input`
|
|
963
967
|
position: absolute;
|
|
964
968
|
height: 1.5rem;
|
|
965
969
|
width: 1.5rem;
|
|
@@ -976,7 +980,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
976
980
|
outline-color: var(--color-main-orange-primary);
|
|
977
981
|
outline-offset: 2px;
|
|
978
982
|
}
|
|
979
|
-
`,
|
|
983
|
+
`,ty=x.div`
|
|
980
984
|
height: 1.5rem;
|
|
981
985
|
width: 1.5rem;
|
|
982
986
|
border: 2px solid;
|
|
@@ -997,31 +1001,31 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
997
1001
|
|
|
998
1002
|
${({$hasError:e})=>e&&ht}
|
|
999
1003
|
${({$disabled:e})=>e&&qe}
|
|
1000
|
-
${({$checked:e})=>e&&
|
|
1001
|
-
`,
|
|
1004
|
+
${({$checked:e})=>e&&ny}
|
|
1005
|
+
`,ny=b`
|
|
1002
1006
|
background-color: var(--color-main-orange-primary);
|
|
1003
1007
|
border-color: var(--color-main-orange-primary);
|
|
1004
|
-
`,
|
|
1008
|
+
`,ry=x.svg`
|
|
1005
1009
|
height: 1.5rem;
|
|
1006
1010
|
width: 1.5rem;
|
|
1007
1011
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
|
|
1008
1012
|
fill: none;
|
|
1009
1013
|
stroke: currentColor;
|
|
1010
|
-
`,
|
|
1014
|
+
`,oy=x.span`
|
|
1011
1015
|
display: block;
|
|
1012
1016
|
width: 60%;
|
|
1013
1017
|
height: 2px;
|
|
1014
1018
|
background-color: white;
|
|
1015
1019
|
border-radius: 1px;
|
|
1016
|
-
`,
|
|
1020
|
+
`,_o=f.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:s,checkboxClassName:i,...a},l)=>{const d=f.useId(),u=a.id??d,c=!!n,{size:h,...m}=a,g=f.useRef(null),v=f.useCallback(k=>{if(g.current=k,!!l)if(typeof l=="function")try{l(k)}catch{}else l.current=k},[l]);return f.useEffect(()=>{g.current&&(g.current.indeterminate=!!t)},[t]),p.jsxs(Q0,{className:s,children:[p.jsx(ey,{ref:v,type:"checkbox",checked:c||!1,disabled:r,onChange:o,id:u,name:m.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":c?"true":"false",...m}),p.jsxs(ty,{$checked:!!c||!!t,$hasError:e,$disabled:r,className:i,children:[c&&!t&&p.jsx(ry,{$disabled:r,viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}),t&&p.jsx(oy,{})]})]})});_o.displayName="CheckboxInput";const hc=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:s,onClick:i,...a})=>{const l=d=>{n||(o&&o(),i&&i(d))};return p.jsx(Yn,{size:t,disabled:n,htmlFor:r,onClick:l,className:s,...a,children:e})},iy=x.section`
|
|
1017
1021
|
display: flex;
|
|
1018
1022
|
align-items: center;
|
|
1019
1023
|
justify-content: center;
|
|
1020
1024
|
gap: 1rem;
|
|
1021
|
-
`,
|
|
1025
|
+
`,Zn=f.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:s=!1,onChange:i,onLabelClick:a,className:l,checkboxClassName:d,labelClassName:u,...c},h)=>{const m=f.useId(),g=c.id??m;return p.jsxs(iy,{className:l,children:[p.jsx(_o,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:s,onChange:i,checkboxClassName:d,id:g,...c}),t&&p.jsx(hc,{size:e,disabled:s,htmlFor:g,onLabelClick:a,className:u,children:t})]})});Zn.displayName="Checkbox";const sy=x.div`
|
|
1022
1026
|
position: relative;
|
|
1023
1027
|
display: inline-block;
|
|
1024
|
-
`,
|
|
1028
|
+
`,ay=x.input`
|
|
1025
1029
|
${ut}
|
|
1026
1030
|
text-align: center;
|
|
1027
1031
|
padding: 0;
|
|
@@ -1035,15 +1039,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1035
1039
|
&[type='number'] {
|
|
1036
1040
|
-moz-appearance: textfield;
|
|
1037
1041
|
}
|
|
1038
|
-
${({$size:e})=>
|
|
1039
|
-
${({$variant:e})=>e&&
|
|
1042
|
+
${({$size:e})=>cy[e]}
|
|
1043
|
+
${({$variant:e})=>e&&ly[e??"outlined"]}
|
|
1040
1044
|
${({$hasError:e})=>e&&ht}
|
|
1041
1045
|
${({$disabled:e})=>e&&qe}
|
|
1042
1046
|
|
|
1043
1047
|
&:focus {
|
|
1044
1048
|
border: 2px solid var(--color-main-blue-primary);
|
|
1045
1049
|
}
|
|
1046
|
-
`,
|
|
1050
|
+
`,ly={outlined:`
|
|
1047
1051
|
background-color: var(--color-main-white);
|
|
1048
1052
|
border: 2px solid var(--color-main-input-borders);
|
|
1049
1053
|
|
|
@@ -1062,28 +1066,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1062
1066
|
background-color: var(--color-main-white);
|
|
1063
1067
|
border: 2px solid var(--color-main-blue-primary);
|
|
1064
1068
|
}
|
|
1065
|
-
`},
|
|
1069
|
+
`},cy={sm:`
|
|
1066
1070
|
padding: 0.375rem;
|
|
1067
1071
|
width: 2.5rem;
|
|
1068
1072
|
height: 2.5rem;
|
|
1069
|
-
${
|
|
1073
|
+
${M[24]}
|
|
1070
1074
|
`,md:`
|
|
1071
1075
|
padding: 0.625rem;
|
|
1072
1076
|
width: 3rem;
|
|
1073
1077
|
height: 3.5rem;
|
|
1074
|
-
${
|
|
1078
|
+
${M[30]}
|
|
1075
1079
|
`,lg:`
|
|
1076
1080
|
padding: 0.75rem;
|
|
1077
1081
|
width: 3.5rem;
|
|
1078
1082
|
height: 4rem;
|
|
1079
|
-
${
|
|
1080
|
-
`},
|
|
1083
|
+
${M[40]}
|
|
1084
|
+
`},Ho=f.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:s=1,type:i="text",...a},l)=>{const d=f.useId(),u=a.id??d;return p.jsx(sy,{children:p.jsx(ay,{ref:l,$size:e,$hasError:t,$disabled:r,$variant:n,className:o,maxLength:s,type:i,disabled:r,id:u,"aria-invalid":t||void 0,"aria-disabled":r||void 0,...a})})});Ho.displayName="PinInput";const fc=(e,t,n,r,o,s,i="text",a,l)=>{const d=e.target.value;if(d.length>1)return;const u=s??o.length;if(i==="number"&&d&&!/^\d$/.test(d))return;const c=[...n];c[t]=d,r(c);const h=c.join("");a?.(h),d&&t<s-1&&o[t+1].current?.focus(),c.every(m=>m!=="")&&c.length>=u&&l?.(h)},pc=(e,t,n,r,o,s)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(o){r[t-1].current?.focus();const i=[...n];i[t-1]="",o(i),s?.(i.join(""))}return}if(t>0&&(r[t-1].current?.focus(),o)){const i=[...n];i[t-1]="",o(i),s?.(i.join(""))}}e.key==="ArrowLeft"&&t>0&&r[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<r.length-1&&r[t+1]?.current?.focus()},mc=(e,t,n,r,o,s,i="text",a,l)=>{e.preventDefault();const d=e.clipboardData.getData("text");if(!d)return;const u=s??o.length,c=[...n];for(let v=0;v<d.length;v++){const k=t+v;if(k>=u)break;const y=d[v];i==="number"&&!/^\d$/.test(y)||(c[k]=y)}r(c),a?.(c.join(""));const h=c.findIndex(v=>v===""),m=h!==-1?Math.min(Math.max(h,t),u-1):u-1;o[m].current?.focus();const g=c.join("");c.every(v=>v!=="")&&c.length>=u&&l?.(g)},gc=e=>Array(e).fill(null).map(()=>f.createRef()),dy=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),uy=x.div`
|
|
1081
1085
|
display: flex;
|
|
1082
1086
|
gap: 8px;
|
|
1083
1087
|
align-items: center;
|
|
1084
|
-
`,
|
|
1088
|
+
`,Uo=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:s,onComplete:i,className:a,pinInputClassName:l})=>{const[d,u]=f.useState(Array(e).fill("")),c=f.useMemo(()=>gc(e),[e]);return p.jsx(uy,{className:a,children:Array.from({length:e},(h,m)=>p.jsx(Ho,{className:l,size:t,variant:n,hasError:r,value:d[m],onChange:g=>fc(g,m,d,u,c,e,o,s,i),onKeyDown:g=>pc(g,m,d,c,u,s),onPaste:g=>mc(g,m,d,u,c,e,o,s,i),ref:c[m]},m))})};Uo.displayName="PinInputGroup";const hy=x.div`
|
|
1085
1089
|
position: relative;
|
|
1086
|
-
`,
|
|
1090
|
+
`,fy=x.input`
|
|
1087
1091
|
position: absolute;
|
|
1088
1092
|
height: 1.5rem;
|
|
1089
1093
|
width: 1.5rem;
|
|
@@ -1101,9 +1105,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1101
1105
|
outline-color: var(--color-main-orange-primary);
|
|
1102
1106
|
outline-offset: 2px;
|
|
1103
1107
|
}
|
|
1104
|
-
`,
|
|
1108
|
+
`,py=b`
|
|
1105
1109
|
border-color: var(--color-main-orange-primary);
|
|
1106
|
-
`,
|
|
1110
|
+
`,my=x.div`
|
|
1107
1111
|
height: 1.5rem;
|
|
1108
1112
|
width: 1.5rem;
|
|
1109
1113
|
border: 2px solid var(--color-main-input-borders);
|
|
@@ -1124,8 +1128,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1124
1128
|
${qe}
|
|
1125
1129
|
border: 2px solid var(--color-dark-200) !important;
|
|
1126
1130
|
`}
|
|
1127
|
-
${({$checked:e})=>e&&
|
|
1128
|
-
`,
|
|
1131
|
+
${({$checked:e})=>e&&py}
|
|
1132
|
+
`,gy=x.span`
|
|
1129
1133
|
display: block;
|
|
1130
1134
|
height: 0.625rem;
|
|
1131
1135
|
width: 0.625rem;
|
|
@@ -1134,21 +1138,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1134
1138
|
background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
|
|
1135
1139
|
opacity: ${({$checked:e})=>e?1:0};
|
|
1136
1140
|
transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
|
|
1137
|
-
`,
|
|
1141
|
+
`,Wo=f.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:s,...i},a)=>{const l=f.useId(),d=i.id??l,u=!!t,{size:c,...h}=i;return p.jsxs(hy,{className:o,children:[p.jsx(fy,{ref:a,type:"radio",id:d,checked:u||!1,disabled:n,onChange:r,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":u?"true":"false",...h}),p.jsx(my,{$checked:!!u,$hasError:e,$disabled:n,className:s,children:p.jsx(gy,{$disabled:n,$checked:u})})]})});Wo.displayName="RadioInputDot";const Ko=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...s})=>p.jsx(Yn,{className:n,htmlFor:t,size:o,disabled:r,...s,children:e});Ko.displayName="RadioInputLabel";const yy=x.section`
|
|
1138
1142
|
display: flex;
|
|
1139
1143
|
align-items: center;
|
|
1140
1144
|
justify-content: center;
|
|
1141
1145
|
gap: 1rem;
|
|
1142
|
-
`,
|
|
1146
|
+
`,Yo=f.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:s,className:i,dotClassName:a,labelClassName:l,...d},u)=>{const c=f.useId(),h=d.id??c;return p.jsxs(yy,{className:i,children:[p.jsx(Wo,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:s,dotClassName:a,id:h,...d}),t&&p.jsx(Ko,{size:e,disabled:o,htmlFor:h,className:l,children:t})]})});Yo.displayName="RadioInput";const vy=({name:e,required:t=!1,onChange:n,onOptionSelect:r,onRadioChange:o,onPinComplete:s,options:i=[]})=>{const[a,l,d]=nd.useField(e),u=f.useMemo(()=>!!(l.error&&(l.touched||l.value)),[l.error,l.touched,l.value]),c=f.useMemo(()=>u?l.error:void 0,[u,l.error]),h=f.useMemo(()=>a.name||e,[a.name,e]),m=f.useMemo(()=>({required:t||void 0,"aria-required":t||void 0,"aria-invalid":u||void 0,"aria-describedby":u?`${h}-error`:void 0}),[t,u,h]),g=f.useCallback(w=>{n?n(w):a.onChange(w)},[n,a]),v=f.useCallback(w=>{n?n(w):a.onChange(w)},[n,a]),k=f.useCallback(w=>{d.setValue(w.target.checked)},[d]),y=f.useCallback(w=>{a.onChange(w);const P=i.find(A=>String(A.value)===w.target.value);P&&r?.(P)},[a,i,r]),S=f.useCallback((w,P)=>{const A=w.target.value,D=typeof P=="number"?Number(A):A;d.setValue(D),o?.(w)},[d,o]),C=f.useCallback(w=>{d.setValue(w)},[d]),T=f.useCallback(w=>{d.setValue(w),s?.(w)},[d,s]);return{field:a,meta:l,helpers:d,hasError:u,errorMessage:c,inputId:h,ariaProps:m,handleStandardChange:g,handleTextAreaChange:v,handleCheckboxChange:k,handleSelectChange:y,handleRadioChange:S,handlePinChange:C,handlePinComplete:T}},by=["text","email","number","tel","url","date","datetime-local","time"],wy=x.div`
|
|
1143
1147
|
display: flex;
|
|
1144
1148
|
flex-direction: column;
|
|
1145
|
-
gap: 0.
|
|
1146
|
-
|
|
1147
|
-
`,gy=S.div`
|
|
1149
|
+
gap: 0.75rem;
|
|
1150
|
+
`,yc=({type:e,inputId:t,name:n,size:r,hasError:o,disabled:s,placeholder:i,inputClassName:a,fieldValue:l,ariaProps:d,options:u=[],onSelectChange:c,checkboxLabel:h,onCheckboxChange:m,radioName:g,onRadioChange:v,pinLength:k=6,pinType:y="number",onPinChange:S,onPinComplete:C,onStandardChange:T,onTextAreaChange:w,leftIcon:P,rightIcon:A,iconSize:D,iconColor:B,additionalProps:F={}})=>{switch(e){case"textarea":return p.jsx(Ro,{id:t,name:n,className:a,hasError:o,disabled:s,value:l??"",size:r,placeholder:i,onChange:w,...F,...d});case"select":return p.jsx(zo,{id:t,name:n,className:a,hasError:o,disabled:s,size:r,value:l??"",onChange:c,options:u,placeholder:i||"Selecciona una opción",...F,...d});case"checkbox":return p.jsx(Zn,{id:t,name:n,className:a,hasError:o,disabled:s,size:r,checked:!!l,label:h,onChange:m,...F,...d});case"radio":{const q=u;return p.jsx(wy,{children:q.map(H=>p.jsx(Yo,{name:g||n,value:H.value,label:H.label,size:r,hasError:o,disabled:s,checked:l===H.value,onChange:ee=>v?.(ee,H.value),...d},H.value))})}case"pin":return p.jsx(Uo,{length:k,type:y,size:r,hasError:o,onChange:S,onComplete:C,...F,...d});case"password":{const{...q}=F;return p.jsx(ic,{id:t,name:n,className:a,hasError:o,disabled:s,size:r,placeholder:i,leftIcon:P,iconSize:D,iconColor:B,onChange:T,...q,...d})}case"search":return p.jsx(dc,{className:a,size:r,placeholder:i,leftIcon:P,rightIcon:A,iconSize:D,iconColor:B,onSearch:F.onSearch,...d});default:return p.jsx(jo,{id:t,name:n,className:a,hasError:o,disabled:s,size:r,placeholder:i,type:by.includes(e)?e:"text",leftIcon:P,rightIcon:A,iconSize:D,iconColor:B,value:l??"",onChange:T,...F,...d})}};yc.displayName="FieldRenderer";const xy=x.div`
|
|
1148
1151
|
display: flex;
|
|
1149
1152
|
flex-direction: column;
|
|
1150
|
-
gap: 0.
|
|
1151
|
-
|
|
1153
|
+
gap: 0.5rem;
|
|
1154
|
+
width: 100%;
|
|
1155
|
+
`,Sy=f.memo(({inputId:e,label:t,size:n,required:r,disabled:o,hasError:s,errorMessage:i,isCheckbox:a=!1,className:l,labelClassName:d,messageErrorClassName:u,children:c})=>p.jsxs(xy,{className:l,children:[t&&!a&&p.jsx(Yn,{htmlFor:e,size:n,required:r,disabled:o,className:d,children:t}),c,s&&i&&p.jsx(Fo,{id:`${e}-error`,size:n,className:u,children:i})]})),Cy=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:s,disabled:i=!1,required:a=!1,options:l=[],checkboxLabel:d,radioName:u,pinLength:c=6,pinType:h="number",rows:m=4,className:g,inputClassName:v,labelClassName:k,messageErrorClassName:y,leftIcon:S,rightIcon:C,iconSize:T,iconColor:w,onOptionSelect:P,onRadioChange:A,onPinComplete:D,onChange:B,...F})=>{const{field:q,hasError:H,errorMessage:ee,inputId:U,ariaProps:he,handleStandardChange:O,handleTextAreaChange:V,handleCheckboxChange:_,handleSelectChange:W,handleRadioChange:Y,handlePinChange:ce,handlePinComplete:oe}=vy({name:t,required:a,onChange:B,onOptionSelect:P,onRadioChange:A,onPinComplete:D,options:l}),N=e?.toString?.()||U;return p.jsx(Sy,{inputId:N,label:n,size:o,required:a,disabled:i,hasError:H,errorMessage:ee,isCheckbox:r==="checkbox",className:g,labelClassName:k,messageErrorClassName:y,children:p.jsx(yc,{type:r,inputId:N,name:t,size:o,hasError:H,disabled:i,placeholder:s,inputClassName:v,fieldValue:q.value,ariaProps:he,options:l,onSelectChange:W,checkboxLabel:d,onCheckboxChange:_,radioName:u,onRadioChange:Y,pinLength:c,pinType:h,rows:m,onPinChange:ce,onPinComplete:oe,onStandardChange:O,onTextAreaChange:V,leftIcon:S,rightIcon:C,iconSize:T,iconColor:w,additionalProps:F})})},vc={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},Go={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},Ty={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"}}},bc={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"}},ky=x(_e.div)`
|
|
1152
1156
|
position: fixed;
|
|
1153
1157
|
inset: 0;
|
|
1154
1158
|
z-index: 50;
|
|
@@ -1162,7 +1166,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1162
1166
|
@media (max-width: 768px) {
|
|
1163
1167
|
padding: 0.5rem;
|
|
1164
1168
|
}
|
|
1165
|
-
`,
|
|
1169
|
+
`,Ey=x(_e.div)`
|
|
1166
1170
|
position: relative;
|
|
1167
1171
|
display: flex;
|
|
1168
1172
|
flex-direction: column;
|
|
@@ -1189,7 +1193,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1189
1193
|
outline: none;
|
|
1190
1194
|
box-shadow: var(--shadow-hover-black-card);
|
|
1191
1195
|
}
|
|
1192
|
-
`,
|
|
1196
|
+
`,Py=x.button`
|
|
1193
1197
|
position: absolute;
|
|
1194
1198
|
top: 1rem;
|
|
1195
1199
|
right: 1rem;
|
|
@@ -1208,7 +1212,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1208
1212
|
transform: scale(1.1);
|
|
1209
1213
|
outline: none;
|
|
1210
1214
|
}
|
|
1211
|
-
`,
|
|
1215
|
+
`,Ay=e=>{const t=f.useRef(null),n=f.useRef(null);return f.useEffect(()=>{if(!e)return;n.current=document.activeElement;const r=t.current,o=()=>{r&&(r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),r.focus())},s=window.setTimeout(o,0),i=l=>{const d=["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(d.join(","))).filter(u=>!!(u.offsetWidth||u.offsetHeight||u.getClientRects().length))},a=l=>{if(l.key!=="Tab"||!r)return;const d=i(r);if(d.length===0){l.preventDefault(),r.focus();return}const u=d[0],c=d[d.length-1],h=document.activeElement;!l.shiftKey&&h===c?(l.preventDefault(),u.focus()):l.shiftKey&&h===u&&(l.preventDefault(),c.focus())};return document.addEventListener("keydown",a),()=>{window.clearTimeout(s),document.removeEventListener("keydown",a),n.current&&n.current.focus()}},[e]),t},Dy=(e,t,n=!0)=>{f.useEffect(()=>{if(!e||!n)return;const r=o=>{o.key==="Escape"&&t()};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e,t,n])},$y=e=>{f.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])},wc=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:s=!1,size:i="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:d,ariaLabelledBy:u,ariaDescribedBy:c})=>{const h=Ay(e);Dy(e,t,l),$y(e);const m=v=>{o&&v.target===v.currentTarget&&t()},g=p.jsx(Zt,{children:e&&p.jsx(ky,{...Go,onClick:m,children:p.jsxs(Ey,{...vc,ref:h,$size:i,$fullScreen:a,className:r,onClick:v=>v.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":d,"aria-labelledby":d?void 0:u,"aria-describedby":c,children:[s&&p.jsx(Py,{className:`${Xn} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:p.jsx(j,{component:nc,size:"sm"})}),n]})})});return typeof document>"u"?g:di.createPortal(g,document.body)},My=x.div`
|
|
1212
1216
|
display: flex;
|
|
1213
1217
|
align-items: center;
|
|
1214
1218
|
justify-content: space-between;
|
|
@@ -1241,7 +1245,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1241
1245
|
flex-shrink: 0;
|
|
1242
1246
|
margin-left: auto;
|
|
1243
1247
|
}
|
|
1244
|
-
`,
|
|
1248
|
+
`,xc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>p.jsx(My,{$showDivider:e,$variant:t,className:r,...o,children:n}),Vy=x.div`
|
|
1245
1249
|
position: relative;
|
|
1246
1250
|
display: flex;
|
|
1247
1251
|
flex-direction: column;
|
|
@@ -1254,7 +1258,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1254
1258
|
${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
|
|
1255
1259
|
|
|
1256
1260
|
${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
|
|
1257
|
-
`,
|
|
1261
|
+
`,Sc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...s})=>p.jsx(Vy,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...s,children:e}),Iy=x.div`
|
|
1258
1262
|
display: flex;
|
|
1259
1263
|
align-items: center;
|
|
1260
1264
|
width: 100%;
|
|
@@ -1270,13 +1274,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1270
1274
|
bottom: 0;
|
|
1271
1275
|
background: var(--color-main-white);
|
|
1272
1276
|
`}
|
|
1273
|
-
`,
|
|
1277
|
+
`,Cc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:s,...i})=>p.jsx(Iy,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:s,...i,children:o}),Ly=({isOpen:e,onAccept:t,onCancel:n,title:r,subtitle:o,content:s,bodyFooter:i,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:l="Accept",cancelLabel:d="Cancel",size:u="md",fullScreen:c=!1,showCloseButton:h=!0,closeOnBackdropClick:m=!1,containerClassName:g,headerClassName:v,bodyClassName:k,footerClassName:y,initiallyConfirmed:S=!1,onConfirmChange:C})=>{const[T,w]=f.useState(S);f.useEffect(()=>{e||w(S)},[e,S]);const P=A=>{w(A),C?.(A)};return p.jsxs(wc,{isOpen:e,onClose:n,size:u,fullScreen:c,showCloseButton:h,closeOnBackdropClick:m,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${g} !h-fit !max-w-[60rem]`,children:[p.jsx(xc,{showDivider:!0,className:v,children:p.jsx(An,{id:"tac-title",size:20,children:r})}),p.jsxs(Sc,{padded:!0,showBottomDivider:!0,className:k,children:[o&&p.jsx(Ne,{id:"tac-subtitle",size:16,children:o}),s,i]}),p.jsxs(Cc,{showDivider:!0,align:"space-between",className:y,children:[p.jsx(Zn,{label:a,checked:T,onChange:A=>P(A.target.checked)}),p.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[p.jsx(Bo,{variant:"secondary",onClick:n,children:d}),p.jsx(Bo,{variant:"primary",onClick:t,disabled:!T,children:l})]})]})]})},Xo=f.createContext(void 0),Tc=({children:e})=>{const[t,n]=f.useState(!1),[r,o]=f.useState(!1);return p.jsx(Xo.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},Zo=()=>{const e=f.useContext(Xo);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},qo=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),Ny=b`
|
|
1274
1278
|
display: flex;
|
|
1275
1279
|
align-items: center;
|
|
1276
1280
|
justify-content: center;
|
|
1277
1281
|
flex-shrink: 0;
|
|
1278
1282
|
user-select: none;
|
|
1279
|
-
`,
|
|
1283
|
+
`,kc=`
|
|
1280
1284
|
width: 100%;
|
|
1281
1285
|
display: flex;
|
|
1282
1286
|
align-items: center;
|
|
@@ -1293,8 +1297,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1293
1297
|
outline-color: var(--color-main-blue-primary);
|
|
1294
1298
|
outline-offset: -2px;
|
|
1295
1299
|
}
|
|
1296
|
-
`,
|
|
1297
|
-
${
|
|
1300
|
+
`,By=x.button`
|
|
1301
|
+
${kc}
|
|
1298
1302
|
|
|
1299
1303
|
// Level-based padding
|
|
1300
1304
|
padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
|
|
@@ -1313,8 +1317,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1313
1317
|
}
|
|
1314
1318
|
|
|
1315
1319
|
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1316
|
-
`,
|
|
1317
|
-
${
|
|
1320
|
+
`,Oy=x.button`
|
|
1321
|
+
${kc}
|
|
1318
1322
|
|
|
1319
1323
|
// Level-based padding
|
|
1320
1324
|
padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
|
|
@@ -1333,36 +1337,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1333
1337
|
}
|
|
1334
1338
|
|
|
1335
1339
|
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1336
|
-
`,
|
|
1340
|
+
`,Fy=x.span`
|
|
1337
1341
|
display: inline-flex;
|
|
1338
1342
|
align-items: center;
|
|
1339
1343
|
gap: 0.75rem;
|
|
1340
1344
|
min-width: 0;
|
|
1341
|
-
|
|
1345
|
+
`,jy=x(Ne)`
|
|
1342
1346
|
font-weight: ${({$level:e})=>e===0?600:500};
|
|
1343
1347
|
color: var(--color-main-blue-primary);
|
|
1344
1348
|
white-space: nowrap;
|
|
1345
1349
|
overflow: hidden;
|
|
1346
1350
|
text-overflow: ellipsis;
|
|
1347
|
-
`,
|
|
1351
|
+
`,zy=x(_e.div)`
|
|
1348
1352
|
background-color: transparent;
|
|
1349
1353
|
overflow: hidden;
|
|
1350
1354
|
will-change: height, opacity, transform;
|
|
1351
|
-
`,
|
|
1355
|
+
`,Ry=x.div`
|
|
1352
1356
|
width: 100%;
|
|
1353
1357
|
${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
|
|
1354
|
-
`,
|
|
1358
|
+
`,_y=x.span`
|
|
1355
1359
|
width: 0.625rem;
|
|
1356
1360
|
height: 0.125rem;
|
|
1357
1361
|
background: var(--color-main-blue-primary);
|
|
1358
1362
|
border-radius: 1px;
|
|
1359
1363
|
flex: 0 0 auto;
|
|
1360
|
-
`,
|
|
1361
|
-
${
|
|
1364
|
+
`,Hy=x.div`
|
|
1365
|
+
${Ny}
|
|
1362
1366
|
transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
|
|
1363
1367
|
pointer-events: none;
|
|
1364
1368
|
transition: transform 0.3s ease-out;
|
|
1365
|
-
`,
|
|
1369
|
+
`,Ec=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[s,i]=f.useState(!1),{isCollapsed:a,setIsMobileOpen:l}=Zo(),d=f.useMemo(()=>(e.children||[]).filter(S=>qo(t,S.permissions)),[e.children,t]);if(!f.useMemo(()=>qo(t,e.permissions),[t,e.permissions]))return null;const c=d.length>0,h=e.href||e.path||"",m=!!(h&&r&&r.startsWith(h)),g=()=>{i(S=>!S)},v=()=>{e.href&&o?.(e.href)},k=async()=>{if(e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),l&&l(!1)}catch(S){console.error("Error al navegar a microservicio:",S)}},y=()=>p.jsxs(p.Fragment,{children:[p.jsxs(Fy,{children:[n>0&&!a&&p.jsx(_y,{}),e.icon&&p.jsx(j,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&p.jsx(jy,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&c&&p.jsx(Hy,{$disabled:a,$open:s,children:p.jsx(j,{component:i0,size:"sm",color:"var(--color-main-blue-primary)"})})]});return p.jsxs(Ry,{$level:n,children:[e.href&&!e.path&&!c?p.jsx(By,{type:"button",onClick:v,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:y()}):p.jsx(Oy,{type:"button",onClick:c?g:e.path?k:v,$level:n,$collapsed:a,$active:m,$expanded:s&&c,title:a?e.label:"",children:y()}),p.jsx(Zt,{initial:!1,children:!a&&s&&c&&p.jsx(zy,{$level:n+1,...bc,children:d.map(S=>p.jsx(Ec,{item:S,userRoles:t,level:n+1,onNavigate:o,activePath:r},S.id))})})]})},Pc=x(_e.div)`
|
|
1366
1370
|
position: fixed;
|
|
1367
1371
|
inset: 0;
|
|
1368
1372
|
background: rgba(0, 0, 0, 0.5);
|
|
@@ -1371,7 +1375,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1371
1375
|
@media (max-width: 767px) {
|
|
1372
1376
|
display: block;
|
|
1373
1377
|
}
|
|
1374
|
-
`,
|
|
1378
|
+
`,Ac=x.aside`
|
|
1375
1379
|
position: fixed;
|
|
1376
1380
|
left: 0;
|
|
1377
1381
|
top: 0;
|
|
@@ -1390,7 +1394,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1390
1394
|
@media (min-width: 768px) {
|
|
1391
1395
|
transform: translateX(0);
|
|
1392
1396
|
}
|
|
1393
|
-
`,
|
|
1397
|
+
`,Dc=x.div`
|
|
1394
1398
|
display: flex;
|
|
1395
1399
|
align-items: center;
|
|
1396
1400
|
justify-content: space-between;
|
|
@@ -1398,11 +1402,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1398
1402
|
padding: 1rem;
|
|
1399
1403
|
|
|
1400
1404
|
${({$collapsed:e})=>e?"flex-direction: column":""};
|
|
1401
|
-
|
|
1405
|
+
`,$c=x.div`
|
|
1402
1406
|
display: flex;
|
|
1403
1407
|
align-items: center;
|
|
1404
1408
|
gap: 0.5rem;
|
|
1405
|
-
`,
|
|
1409
|
+
`,Mc=x.nav`
|
|
1406
1410
|
display: flex;
|
|
1407
1411
|
flex-direction: column;
|
|
1408
1412
|
justify-content: flex-start;
|
|
@@ -1410,7 +1414,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1410
1414
|
flex: 1;
|
|
1411
1415
|
overflow-y: auto;
|
|
1412
1416
|
padding: 0.25rem 0;
|
|
1413
|
-
`,
|
|
1417
|
+
`,Vc=x.button`
|
|
1414
1418
|
display: flex;
|
|
1415
1419
|
align-items: center;
|
|
1416
1420
|
justify-content: center;
|
|
@@ -1436,7 +1440,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1436
1440
|
@media (max-width: 767px) {
|
|
1437
1441
|
display: none;
|
|
1438
1442
|
}
|
|
1439
|
-
`,
|
|
1443
|
+
`,Ic=x.button`
|
|
1440
1444
|
position: fixed;
|
|
1441
1445
|
top: 0.5rem;
|
|
1442
1446
|
left: 1rem;
|
|
@@ -1447,7 +1451,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1447
1451
|
@media (min-width: 768px) {
|
|
1448
1452
|
display: none;
|
|
1449
1453
|
}
|
|
1450
|
-
`,
|
|
1454
|
+
`,Jo=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:s=()=>{}})=>{const{isCollapsed:i,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:d}=Zo(),u=c=>{s(c),typeof window<"u"&&window.innerWidth<768&&d(!1)};return p.jsxs(p.Fragment,{children:[p.jsx(Zt,{children:l&&p.jsx(Pc,{...Go,onClick:()=>d(!1)})}),p.jsxs(Ac,{$collapsed:l?!1:i,$open:l,children:[p.jsxs(Dc,{$collapsed:i,children:[p.jsx($c,{children:i?o:r}),p.jsx(Vc,{onClick:()=>a(!i),"aria-label":"Toggle collapse",children:p.jsx(j,{component:rc,size:"md",color:"var(--color-main-blue-primary)"})})]}),p.jsx(Mc,{children:e.map(c=>p.jsx(Ec,{item:c,userRoles:t,onNavigate:u,activePath:n},c.id))})]}),p.jsx(Ic,{onClick:()=>{d(!0),a(!1)},$hidden:l,children:p.jsx(j,{component:rc,size:30})})]})};Jo.displayName="Sidebar";const Lc={underlined:b`
|
|
1451
1455
|
color: var(--color-main-orange-primary);
|
|
1452
1456
|
text-decoration-thickness: 1px;
|
|
1453
1457
|
text-underline-offset: 2px;
|
|
@@ -1507,7 +1511,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1507
1511
|
text-decoration-thickness: 1px;
|
|
1508
1512
|
text-underline-offset: 2px;
|
|
1509
1513
|
}
|
|
1510
|
-
`}
|
|
1514
|
+
`},Nc=b`
|
|
1511
1515
|
color: var(--color-dark-200);
|
|
1512
1516
|
cursor: not-allowed;
|
|
1513
1517
|
pointer-events: none;
|
|
@@ -1525,16 +1529,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1525
1529
|
text-decoration: none;
|
|
1526
1530
|
transform: none;
|
|
1527
1531
|
}
|
|
1528
|
-
`,
|
|
1532
|
+
`,Bc={sm:b`
|
|
1529
1533
|
gap: 0.25rem;
|
|
1530
|
-
${
|
|
1534
|
+
${M[14]}
|
|
1531
1535
|
`,md:b`
|
|
1532
1536
|
gap: 0.5rem;
|
|
1533
|
-
${
|
|
1537
|
+
${M[16]}
|
|
1534
1538
|
`,lg:b`
|
|
1535
1539
|
gap: 0.75rem;
|
|
1536
|
-
${
|
|
1537
|
-
`},
|
|
1540
|
+
${M[20]}
|
|
1541
|
+
`},Uy=x.a`
|
|
1538
1542
|
display: inline-flex;
|
|
1539
1543
|
align-items: center;
|
|
1540
1544
|
border-radius: 0.25rem;
|
|
@@ -1546,10 +1550,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1546
1550
|
|
|
1547
1551
|
cursor: pointer;
|
|
1548
1552
|
|
|
1549
|
-
${({$size:e})=>
|
|
1550
|
-
${({$variant:e})=>
|
|
1551
|
-
${({$disabled:e})=>e
|
|
1552
|
-
`,
|
|
1553
|
+
${({$size:e})=>Bc[e]}
|
|
1554
|
+
${({$variant:e})=>Lc[e]}
|
|
1555
|
+
${({$disabled:e})=>e&&Nc}
|
|
1556
|
+
`,Wy=x.span`
|
|
1553
1557
|
flex: 1 1 auto;
|
|
1554
1558
|
min-width: 0;
|
|
1555
1559
|
max-width: 18ch;
|
|
@@ -1558,7 +1562,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1558
1562
|
text-overflow: ellipsis;
|
|
1559
1563
|
white-space: nowrap;
|
|
1560
1564
|
`}
|
|
1561
|
-
`,
|
|
1565
|
+
`,Oc=f.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:s,rel:i,className:a,disabled:l=!1,tabIndex:d,leftIcon:u,rightIcon:c,iconSize:h="tn",iconColor:m="currentColor",truncate:g=!1,"aria-label":v,"aria-describedby":k,onClick:y,...S},C)=>{const T=f.useCallback(P=>{if(l){P.preventDefault();return}y?.(P)},[l,y]),w={href:l?void 0:o,target:s||void 0,rel:i??(s==="_blank"?"noopener noreferrer":void 0),onClick:T,"aria-label":v??r,"aria-describedby":k,"aria-disabled":l,tabIndex:l?-1:d??0,...S};return p.jsxs(Uy,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:C,...w,children:[u&&p.jsx(j,{component:u,size:h,color:m}),p.jsx(Wy,{$truncate:g,children:r}),p.jsx(j,{component:c||a0,size:t==="lg"?"sm":h,color:m})]})});Oc.displayName="Link";const Fc={default:b`
|
|
1562
1566
|
thead tr:last-child th:first-child {
|
|
1563
1567
|
border-top-left-radius: var(--border-radius-article);
|
|
1564
1568
|
}
|
|
@@ -1599,11 +1603,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1599
1603
|
tbody tr:last-child td:last-child {
|
|
1600
1604
|
border-bottom-right-radius: var(--border-radius-article);
|
|
1601
1605
|
}
|
|
1602
|
-
`},
|
|
1606
|
+
`},jc=b`
|
|
1603
1607
|
tbody tr:hover td {
|
|
1604
1608
|
background-color: var(--color-main-alternative-secondary);
|
|
1605
1609
|
}
|
|
1606
|
-
`,
|
|
1610
|
+
`,zc=b`
|
|
1607
1611
|
@media (max-width: 768px) {
|
|
1608
1612
|
font-size: 0.875rem;
|
|
1609
1613
|
|
|
@@ -1612,7 +1616,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1612
1616
|
padding: 0.5rem 0.75rem;
|
|
1613
1617
|
}
|
|
1614
1618
|
}
|
|
1615
|
-
`,
|
|
1619
|
+
`,Qo=b`
|
|
1616
1620
|
display: flex;
|
|
1617
1621
|
align-items: center;
|
|
1618
1622
|
gap: 0.5rem;
|
|
@@ -1627,22 +1631,22 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1627
1631
|
`,lg:b`
|
|
1628
1632
|
padding: 0.75rem 1.5rem;
|
|
1629
1633
|
min-height: 2.75rem;
|
|
1630
|
-
`},
|
|
1634
|
+
`},ei=b`
|
|
1631
1635
|
display: inline-flex;
|
|
1632
1636
|
align-items: center;
|
|
1633
1637
|
flex-shrink: 0;
|
|
1634
|
-
`,
|
|
1638
|
+
`,Ky={sm:b`
|
|
1635
1639
|
${ft.sm}
|
|
1636
|
-
${
|
|
1640
|
+
${M[16]}
|
|
1637
1641
|
`,md:b`
|
|
1638
1642
|
${ft.md}
|
|
1639
|
-
${
|
|
1643
|
+
${M[20]}
|
|
1640
1644
|
`,lg:b`
|
|
1641
1645
|
${ft.lg}
|
|
1642
|
-
${
|
|
1643
|
-
`},
|
|
1646
|
+
${M[24]}
|
|
1647
|
+
`},Yy=x.th`
|
|
1644
1648
|
background-color: var(--color-main-blue-primary);
|
|
1645
|
-
${({$size:e})=>
|
|
1649
|
+
${({$size:e})=>Ky[e]}
|
|
1646
1650
|
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
|
|
1647
1651
|
min-width: 8rem;
|
|
1648
1652
|
width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
|
|
@@ -1654,10 +1658,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1654
1658
|
${({$active:e})=>e&&b`
|
|
1655
1659
|
background-color: var(--color-blue-400);
|
|
1656
1660
|
`}
|
|
1657
|
-
`,
|
|
1658
|
-
${
|
|
1661
|
+
`,Gy=x.div`
|
|
1662
|
+
${Qo}
|
|
1659
1663
|
justify-content: ${({$align:e})=>e||"space-between"};
|
|
1660
|
-
`,
|
|
1664
|
+
`,Xy=x.button`
|
|
1661
1665
|
all: unset;
|
|
1662
1666
|
display: inline-flex;
|
|
1663
1667
|
align-items: center;
|
|
@@ -1676,11 +1680,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1676
1680
|
outline-color: var(--color-main-white);
|
|
1677
1681
|
outline-offset: 2px;
|
|
1678
1682
|
}
|
|
1679
|
-
`,
|
|
1683
|
+
`,Zy=x.span`
|
|
1680
1684
|
transition: transform 0.3s ease-out;
|
|
1681
1685
|
display: inline-flex;
|
|
1682
1686
|
transform: ${({$dir:e})=>e==="asc"?"rotate(-180deg)":"none"};
|
|
1683
|
-
`,
|
|
1687
|
+
`,Rc=x.span`
|
|
1684
1688
|
display: inline-flex;
|
|
1685
1689
|
align-items: center;
|
|
1686
1690
|
gap: 0.5rem;
|
|
@@ -1689,28 +1693,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1689
1693
|
text-overflow: ellipsis;
|
|
1690
1694
|
white-space: nowrap;
|
|
1691
1695
|
flex-shrink: 1;
|
|
1692
|
-
`,
|
|
1696
|
+
`,qy=x(An)`
|
|
1693
1697
|
overflow: hidden;
|
|
1694
1698
|
text-overflow: ellipsis;
|
|
1695
1699
|
white-space: nowrap;
|
|
1696
1700
|
max-width: 100%;
|
|
1697
1701
|
color: var(--color-main-white);
|
|
1698
|
-
`,
|
|
1699
|
-
${
|
|
1702
|
+
`,_c=x.span`
|
|
1703
|
+
${ei}
|
|
1700
1704
|
gap: 0.375rem;
|
|
1701
|
-
`,
|
|
1705
|
+
`,ti=({children:e,size:t="md",active:n=!1,sortDirection:r="none",leftIcon:o,rightIcon:s,iconSize:i="sm",iconColor:a="var(--color-main-white)",align:l="left",width:d,sortable:u,className:c,onSort:h,...m})=>{const g=r==="asc"?"desc":"asc",v=h?r==="none"?"none":r==="asc"?"ascending":"descending":void 0;return p.jsx(Yy,{$size:t,$active:n,$width:d,className:c,scope:"col","aria-sort":v,...m,children:h||u?p.jsxs(Xy,{onClick:()=>h?.(g),"aria-label":`Sort ${g}`,children:[p.jsxs(Rc,{children:[o&&p.jsx(j,{component:o,size:i,color:a}),p.jsx(qy,{size:t==="sm"?16:t==="md"?20:24,children:e})]}),p.jsxs(_c,{children:[p.jsx(Zy,{$dir:r,children:p.jsx(j,{component:r0,size:i,color:a})}),s&&p.jsx(j,{component:s,size:i,color:a})]})]}):p.jsxs(Gy,{$align:l,children:[p.jsxs(Rc,{children:[o&&p.jsx(j,{component:o,size:i,color:a}),p.jsx(An,{size:t==="sm"?16:t==="md"?20:24,color:"var(--color-main-white)",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:e})]}),p.jsx(_c,{children:s&&p.jsx(j,{component:s,size:i,color:a})})]})})};ti.displayName="TableHeaderCell";const Jy={sm:b`
|
|
1702
1706
|
${ft.sm}
|
|
1703
|
-
${
|
|
1707
|
+
${M[14]}
|
|
1704
1708
|
`,md:b`
|
|
1705
1709
|
${ft.md}
|
|
1706
|
-
${
|
|
1710
|
+
${M[14]}
|
|
1707
1711
|
`,lg:b`
|
|
1708
1712
|
${ft.lg}
|
|
1709
|
-
${
|
|
1710
|
-
`},
|
|
1713
|
+
${M[16]}
|
|
1714
|
+
`},Qy=x.td`
|
|
1711
1715
|
vertical-align: middle;
|
|
1712
1716
|
color: var(--color-main-blue-primary);
|
|
1713
|
-
${({$size:e})=>
|
|
1717
|
+
${({$size:e})=>Jy[e]}
|
|
1714
1718
|
text-align: ${({$align:e,$variant:t})=>e||(t==="numeric"?"right":"left")};
|
|
1715
1719
|
border-left: 1px solid var(--color-main-light-borders);
|
|
1716
1720
|
border-top: 1px solid var(--color-main-light-borders);
|
|
@@ -1728,15 +1732,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1728
1732
|
font-variant-numeric: tabular-nums;
|
|
1729
1733
|
font-family: ui-monospace, monospace;
|
|
1730
1734
|
`}
|
|
1731
|
-
`,
|
|
1732
|
-
${
|
|
1735
|
+
`,e1=x.div`
|
|
1736
|
+
${Qo}
|
|
1733
1737
|
justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
|
|
1734
|
-
`,
|
|
1738
|
+
`,t1=x(Ne)`
|
|
1735
1739
|
flex: 1;
|
|
1736
1740
|
min-width: 0;
|
|
1737
|
-
`,
|
|
1738
|
-
${
|
|
1739
|
-
`,
|
|
1741
|
+
`,Hc=x.span`
|
|
1742
|
+
${ei}
|
|
1743
|
+
`,ni=({children:e,size:t="md",align:n,width:r,truncate:o=!1,variant:s="default",className:i,leftIcon:a,rightIcon:l,iconSize:d="sm",iconColor:u="var(--color-main-blue-primary)",...c})=>{const h=a||l;return p.jsx(Qy,{$size:t,$align:n,$width:r,$truncate:o,$variant:s,className:i,...c,children:h?p.jsxs(e1,{$align:n,children:[a&&p.jsx(Hc,{children:p.jsx(j,{component:a,size:d,color:u})}),p.jsx(t1,{children:e}),l&&p.jsx(Hc,{children:p.jsx(j,{component:l,size:d,color:u})})]}):e})};ni.displayName="TableCell";const n1=x.table`
|
|
1740
1744
|
width: 100%;
|
|
1741
1745
|
table-layout: auto;
|
|
1742
1746
|
border-collapse: separate;
|
|
@@ -1745,16 +1749,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1745
1749
|
border-radius: var(--border-radius-article);
|
|
1746
1750
|
border: 1px solid var(--color-main-light-borders);
|
|
1747
1751
|
|
|
1748
|
-
${({$variant:e})=>
|
|
1749
|
-
${
|
|
1750
|
-
${
|
|
1751
|
-
`,
|
|
1752
|
+
${({$variant:e})=>Fc[e]}
|
|
1753
|
+
${zc}
|
|
1754
|
+
${jc}
|
|
1755
|
+
`,r1=x.thead`
|
|
1752
1756
|
${({$sticky:e})=>e&&b`
|
|
1753
1757
|
position: sticky;
|
|
1754
1758
|
top: 0;
|
|
1755
1759
|
z-index: 10;
|
|
1756
1760
|
`}
|
|
1757
|
-
`,
|
|
1761
|
+
`,o1=x.div`
|
|
1758
1762
|
max-height: 37.5rem;
|
|
1759
1763
|
overflow: auto;
|
|
1760
1764
|
position: relative;
|
|
@@ -1769,7 +1773,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1769
1773
|
pointer-events: none;
|
|
1770
1774
|
z-index: 3;
|
|
1771
1775
|
}
|
|
1772
|
-
`,
|
|
1776
|
+
`,Uc=({columns:e,rows:t,size:n="md",variant:r="default",tableWrapperClassName:o,tableClassName:s,stickyHeader:i=!1,onSortChange:a})=>{const l=(d,u)=>c=>{d.onSort?.(c),a?.({columnId:d.id??String(u),direction:c})};return p.jsx(o1,{className:o,children:p.jsxs(n1,{$variant:r,className:s,children:[p.jsx(r1,{$sticky:i,children:p.jsx("tr",{children:e.map((d,u)=>p.jsx(ti,{size:n,leftIcon:d.leftIcon,rightIcon:d.rightIcon,iconSize:d.iconSize,iconColor:d.iconColor,sortDirection:d.sortDirection,onSort:d.onSort??(a?l(d,u):void 0),width:d.width,align:d.align,sortable:d.sortable||!!d.onSort||!!a,className:d.className,children:d.header},d.id||`col-${u}`))})}),p.jsx("tbody",{children:t.map((d,u)=>{const c=d.cells;return!c||!Array.isArray(c)?null:p.jsx("tr",{children:c.map((h,m)=>{const g=e[m];return p.jsx(ni,{size:h.size||d.size||n,align:h.align||d.align||g?.align,width:h.width||d.width||g?.width,truncate:h.truncate||d.truncate,variant:h.variant||d.variant,className:h.className||d.className||g?.className,leftIcon:h.leftIcon,rightIcon:h.rightIcon,iconSize:h.iconSize,iconColor:h.iconColor,children:h.content},`${d.id||u}-${m}`)})},d.id||u)})})]})})};Uc.displayName="Table";const i1=x.div`
|
|
1773
1777
|
position: relative;
|
|
1774
1778
|
display: flex;
|
|
1775
1779
|
align-items: center;
|
|
@@ -1787,7 +1791,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1787
1791
|
outline: 2px solid var(--color-main-blue-primary);
|
|
1788
1792
|
outline-offset: 2px;
|
|
1789
1793
|
}
|
|
1790
|
-
`,
|
|
1794
|
+
`,s1=x.div`
|
|
1791
1795
|
width: 2rem;
|
|
1792
1796
|
height: 2rem;
|
|
1793
1797
|
border-radius: 50%;
|
|
@@ -1795,7 +1799,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1795
1799
|
display: flex;
|
|
1796
1800
|
align-items: center;
|
|
1797
1801
|
justify-content: center;
|
|
1798
|
-
`,
|
|
1802
|
+
`,a1=x.div`
|
|
1799
1803
|
display: flex;
|
|
1800
1804
|
flex-direction: column;
|
|
1801
1805
|
align-items: flex-start;
|
|
@@ -1803,7 +1807,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1803
1807
|
@media (max-width: 640px) {
|
|
1804
1808
|
display: none;
|
|
1805
1809
|
}
|
|
1806
|
-
`,
|
|
1810
|
+
`,l1=x(_e.div)`
|
|
1807
1811
|
display: flex;
|
|
1808
1812
|
align-items: center;
|
|
1809
1813
|
justify-content: center;
|
|
@@ -1812,7 +1816,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1812
1816
|
@media (max-width: 640px) {
|
|
1813
1817
|
display: none;
|
|
1814
1818
|
}
|
|
1815
|
-
`,
|
|
1819
|
+
`,c1=x(_e.div)`
|
|
1816
1820
|
position: absolute;
|
|
1817
1821
|
top: 100%;
|
|
1818
1822
|
right: 0;
|
|
@@ -1824,7 +1828,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1824
1828
|
box-shadow: var(--shadow-black-card);
|
|
1825
1829
|
z-index: 100;
|
|
1826
1830
|
overflow: hidden;
|
|
1827
|
-
`,
|
|
1831
|
+
`,d1=x.button`
|
|
1828
1832
|
width: 100%;
|
|
1829
1833
|
display: flex;
|
|
1830
1834
|
align-items: center;
|
|
@@ -1848,40 +1852,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1848
1852
|
&.danger {
|
|
1849
1853
|
color: var(--color-main-waringn-state);
|
|
1850
1854
|
}
|
|
1851
|
-
`,
|
|
1852
|
-
position: fixed;
|
|
1853
|
-
top: 0;
|
|
1854
|
-
left: 0;
|
|
1855
|
-
right: 0;
|
|
1856
|
-
height: 4rem;
|
|
1857
|
-
background: var(--color-main-white);
|
|
1858
|
-
border-bottom: 1px solid var(--color-main-light-borders);
|
|
1859
|
-
box-shadow: var(--shadow-black-button);
|
|
1860
|
-
z-index: 40;
|
|
1861
|
-
display: flex;
|
|
1862
|
-
align-items: center;
|
|
1863
|
-
justify-content: space-between;
|
|
1864
|
-
padding: 0 1rem;
|
|
1865
|
-
transition: padding-left 0.3s ease-out;
|
|
1866
|
-
padding-left: 5rem;
|
|
1867
|
-
`,r1=S.div`
|
|
1868
|
-
display: flex;
|
|
1869
|
-
align-items: center;
|
|
1870
|
-
gap: 1rem;
|
|
1871
|
-
`,o1=S.div`
|
|
1872
|
-
display: flex;
|
|
1873
|
-
align-items: center;
|
|
1874
|
-
gap: 1rem;
|
|
1875
|
-
`,i1=S.button`
|
|
1855
|
+
`,ri=({user:e,onProfileClick:t,onLogout:n,menuItems:r=[]})=>{const[o,s]=f.useState(!1),i=f.useRef(null);f.useEffect(()=>{if(!o)return;const u=c=>{i.current&&!i.current.contains(c.target)&&s(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[o]),f.useEffect(()=>{if(!o)return;const u=c=>{c.key==="Escape"&&s(!1)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]);const a=u=>u.split(" ").map(c=>c[0]).join("").toUpperCase().slice(0,2),d=[...[{id:"profile",label:"Profile",icon:p0,onClick:()=>{s(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:d0,onClick:()=>{s(!1),n?.()},variant:"danger"}],...r];return p.jsxs("div",{ref:i,children:[p.jsxs(i1,{onClick:()=>s(!o),role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s(!o))},children:[p.jsx(s1,{children:e.avatarUrl?p.jsx("img",{src:e.avatarUrl,alt:e.name}):p.jsx(Ne,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),p.jsxs(a1,{children:[p.jsx(Ne,{size:14,className:"!font-semibold",children:e.name}),p.jsx(Ne,{size:12,children:e.role})]}),p.jsx(l1,{animate:{rotate:o?-180:0},transition:{duration:.3},children:p.jsx(j,{component:o0,size:"sm",color:"var(--color-main-blue-primary)"})})]}),p.jsx(Zt,{children:o&&p.jsx(c1,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},children:d.map(u=>p.jsx(f.Fragment,{children:p.jsxs(d1,{onClick:u.onClick,className:u.variant==="danger"?"danger":"",children:[p.jsx(j,{component:u.icon,size:"sm",color:u.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),p.jsx(Ne,{size:14,color:`${u.variant==="danger"&&"var(--color-main-warning-state)"}`,children:u.label})]})},u.id))})})]})};ri.displayName="UserProfile";const Wc=({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",s=`Notifications: ${o}`;return{effectiveHasNotifications:n,displayCount:r,badgeLabel:o,bellAriaLabel:s}},u1=x.button`
|
|
1876
1856
|
position: relative;
|
|
1857
|
+
background: transparent;
|
|
1858
|
+
border: none;
|
|
1859
|
+
cursor: pointer;
|
|
1860
|
+
padding: 0.5rem;
|
|
1877
1861
|
display: flex;
|
|
1878
1862
|
align-items: center;
|
|
1879
1863
|
justify-content: center;
|
|
1880
|
-
padding: 0.5rem;
|
|
1881
|
-
border: none;
|
|
1882
|
-
background: transparent;
|
|
1883
1864
|
border-radius: var(--border-radius-outline);
|
|
1884
|
-
cursor: pointer;
|
|
1885
1865
|
transition: transform 0.15s ease-out;
|
|
1886
1866
|
|
|
1887
1867
|
&:hover {
|
|
@@ -1896,28 +1876,47 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1896
1876
|
&:active {
|
|
1897
1877
|
transform: scale(0.92);
|
|
1898
1878
|
}
|
|
1899
|
-
`,
|
|
1879
|
+
`,h1=x.span`
|
|
1900
1880
|
position: absolute;
|
|
1901
1881
|
top: 0.35rem;
|
|
1902
1882
|
right: 0.35rem;
|
|
1903
|
-
min-width: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1904
|
-
height: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1905
|
-
padding: ${({$withCount:e})=>e?"0 0.25rem":"0"};
|
|
1906
1883
|
background-color: var(--color-main-orange-primary);
|
|
1907
1884
|
color: var(--color-main-white);
|
|
1908
|
-
font-size: 0.55rem;
|
|
1909
|
-
font-weight: 600;
|
|
1910
1885
|
border-radius: 100%;
|
|
1911
1886
|
border: 1px solid var(--color-main-white);
|
|
1887
|
+
font-size: 0.55rem;
|
|
1888
|
+
font-weight: 600;
|
|
1912
1889
|
display: flex;
|
|
1913
1890
|
align-items: center;
|
|
1914
1891
|
justify-content: center;
|
|
1915
|
-
|
|
1892
|
+
min-width: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1893
|
+
height: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1894
|
+
padding: ${({$withCount:e})=>e?"0 0.25rem":"0"};
|
|
1895
|
+
`,oi=({hasNotifications:e=!1,notificationCount:t,onNotificationClick:n})=>{const{effectiveHasNotifications:r,displayCount:o,bellAriaLabel:s}=Wc({hasNotifications:e,notificationCount:t});return p.jsxs(u1,{onClick:n,"aria-label":s,title:s,"data-has":r||void 0,children:[p.jsx(j,{component:r?u0:h0,size:"md",color:"var(--color-main-blue-primary)"}),r&&p.jsx(h1,{$withCount:!!o,"aria-hidden":!!o,children:o&&(o>99?"99+":o)})]})};oi.displayName="NotificationButton";const f1=x.header`
|
|
1896
|
+
position: fixed;
|
|
1897
|
+
top: 0;
|
|
1898
|
+
left: 0;
|
|
1899
|
+
right: 0;
|
|
1900
|
+
height: 4rem;
|
|
1901
|
+
background: var(--color-main-white);
|
|
1902
|
+
border-bottom: 1px solid var(--color-main-light-borders);
|
|
1903
|
+
box-shadow: var(--shadow-black-button);
|
|
1904
|
+
z-index: 40;
|
|
1916
1905
|
display: flex;
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1906
|
+
align-items: center;
|
|
1907
|
+
justify-content: space-between;
|
|
1908
|
+
padding: 0 1rem;
|
|
1909
|
+
transition: padding-left 0.3s ease-out;
|
|
1910
|
+
padding-left: 5rem;
|
|
1911
|
+
`,p1=x.div`
|
|
1912
|
+
display: flex;
|
|
1913
|
+
align-items: center;
|
|
1914
|
+
gap: 1rem;
|
|
1915
|
+
`,m1=x.div`
|
|
1916
|
+
display: flex;
|
|
1917
|
+
align-items: center;
|
|
1918
|
+
gap: 1rem;
|
|
1919
|
+
`,ii=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:s,userMenuItems:i,children:a})=>p.jsxs(f1,{children:[p.jsx(p1,{children:a}),p.jsxs(m1,{children:[p.jsx(oi,{hasNotifications:t,notificationCount:n,onNotificationClick:r}),e&&p.jsx(ri,{user:e,onProfileClick:o,onLogout:s,menuItems:i})]})]});ii.displayName="Header";const g1=x.main`
|
|
1921
1920
|
flex: 1;
|
|
1922
1921
|
margin-top: 4rem;
|
|
1923
1922
|
/* Mobile-first: no lateral offset so content occupies full width */
|
|
@@ -1933,20 +1932,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1933
1932
|
@media (min-width: 1200px) {
|
|
1934
1933
|
margin-left: 5rem;
|
|
1935
1934
|
}
|
|
1936
|
-
`,
|
|
1935
|
+
`,si=({children:e,className:t})=>p.jsx(g1,{className:t,children:e});si.displayName="LayoutMainContent";const y1=x.div`
|
|
1936
|
+
display: flex;
|
|
1937
|
+
flex-direction: column;
|
|
1938
|
+
height: 100vh;
|
|
1939
|
+
overflow: hidden;
|
|
1940
|
+
`,v1=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:s=!1,notificationCount:i,onNotificationClick:a,onUserProfileClick:l,onNavigate:d,onLogout:u,userMenuItems:c=[],contentClassName:h,logoImgCollapsed:m,logoImgExpanded:g})=>p.jsxs(y1,{children:[p.jsx(Jo,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:m,logoImgExpanded:g,onNavigate:d}),p.jsx(ii,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:a,onUserProfileClick:l,onLogout:u,userMenuItems:c}),p.jsx(si,{className:h,children:e})]}),b1=e=>p.jsx(Tc,{children:p.jsx(v1,{...e})});function w1(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 x1(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function S1(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const an={sm:{circle:"2rem",fontSize:M[14],line:"2px"},md:{circle:"2.5rem",fontSize:M[18],line:"2px"},lg:{circle:"3.25rem",fontSize:M[20],line:"3px"}},C1=x.div`
|
|
1937
1941
|
display: flex;
|
|
1938
1942
|
width: 100%;
|
|
1939
|
-
`,
|
|
1943
|
+
`,T1=x.div`
|
|
1940
1944
|
display: flex;
|
|
1941
1945
|
flex-direction: ${({$orientation:e})=>e==="vertical"?"column":"row"};
|
|
1942
1946
|
align-items: center;
|
|
1943
1947
|
width: 100%;
|
|
1944
|
-
`,
|
|
1948
|
+
`,k1=x.div`
|
|
1945
1949
|
display: flex;
|
|
1946
1950
|
align-items: center;
|
|
1947
1951
|
justify-content: center;
|
|
1948
1952
|
position: relative;
|
|
1949
|
-
`,
|
|
1953
|
+
`,Kc=x.div`
|
|
1950
1954
|
display: flex;
|
|
1951
1955
|
align-items: center;
|
|
1952
1956
|
justify-content: center;
|
|
@@ -1992,7 +1996,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1992
1996
|
box-shadow: var(--shadow-hover-black-button);
|
|
1993
1997
|
}
|
|
1994
1998
|
`}
|
|
1995
|
-
`,
|
|
1999
|
+
`,E1=x.div`
|
|
1996
2000
|
background-color: ${({$isCompleted:e})=>e?"var(--color-main-blue-primary)":"var(--color-dark-300)"};
|
|
1997
2001
|
transition: background-color 0.3s ease;
|
|
1998
2002
|
|
|
@@ -2004,9 +2008,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
2004
2008
|
flex: 1;
|
|
2005
2009
|
min-width: 2rem;
|
|
2006
2010
|
`}
|
|
2007
|
-
`,
|
|
2011
|
+
`,P1=x.span`
|
|
2008
2012
|
position: absolute;
|
|
2009
|
-
${
|
|
2013
|
+
${M[14]}
|
|
2010
2014
|
font-weight: 500;
|
|
2011
2015
|
color: var(--color-main-white);
|
|
2012
2016
|
background-color: var(--color-main-blue-primary);
|
|
@@ -2034,7 +2038,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
2034
2038
|
border-left-color: var(--color-main-blue-primary);
|
|
2035
2039
|
}
|
|
2036
2040
|
|
|
2037
|
-
${
|
|
2041
|
+
${Kc}:hover & {
|
|
2038
2042
|
opacity: 1;
|
|
2039
2043
|
}
|
|
2040
|
-
`,
|
|
2044
|
+
`,A1=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:s})=>{const i=a=>{o?.(a)};return p.jsx(C1,{$orientation:n,className:s,children:p.jsx(T1,{$orientation:n,children:e.map((a,l)=>{const d=l===t,u=l<t,c=o!=null;return p.jsxs(p.Fragment,{children:[p.jsx(k1,{$orientation:n,children:p.jsxs(Kc,{$isActive:d,$isCompleted:u,$size:r,$isClickable:c,onClick:()=>c&&i(l),role:c?"button":void 0,tabIndex:c?0:void 0,"aria-current":d?"step":void 0,"aria-label":a.label,onKeyDown:h=>{c&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i(l))},children:[a.content??l+1,a.label&&n==="vertical"&&p.jsx(P1,{children:a.label})]})}),l<e.length-1&&p.jsx(E1,{$isCompleted:u,$orientation:n,$size:r})]},a.id)})})})};E.ALLOWED_INPUT_TYPES=Ql,E.Aside=Ac,E.Badge=ng,E.BaseInput=jo,E.BrandLogo=$c,E.Button=Bo,E.Card=zg,E.CardBody=Ug,E.CardFooter=Kg,E.CardHeader=_g,E.Checkbox=Zn,E.CheckboxInput=_o,E.CheckboxLabel=hc,E.CloseOpenButton=Vc,E.Dialog=wc,E.DialogBody=Sc,E.DialogFooter=Cc,E.DialogHeader=xc,E.Divider=og,E.ErrorMessage=Fo,E.FileList=uc,E.FileUpload=J0,E.FormField=Cy,E.Header=ii,E.HeadingBold=An,E.HeadingRegular=du,E.Icon=j,E.IconWrapperStyles=Xn,E.InfoLabel=Zl,E.Label=Yn,E.Layout=b1,E.LayoutMainContent=si,E.Link=Oc,E.LinkDisabledStyles=Nc,E.LinkSizeStyles=Bc,E.LinkVariantStyles=Lc,E.MobileOpenBtn=Ic,E.Nav=Mc,E.NotificationButton=oi,E.Overlay=Pc,E.PasswordInput=ic,E.PinInput=Ho,E.PinInputGroup=Uo,E.RadioInput=Yo,E.RadioInputDot=Wo,E.RadioInputLabel=Ko,E.SearchInput=dc,E.SelectInput=zo,E.Sidebar=Jo,E.SidebarContext=Xo,E.SidebarHeader=Dc,E.SidebarProvider=Tc,E.Spinner=Xl,E.Stepper=A1,E.Table=Uc,E.TableCell=ni,E.TableHeaderCell=ti,E.TermsAndConditions=Ly,E.Text=Ne,E.TextAreaInput=Ro,E.ToastProvider=Lg,E.UserProfile=ri,E.baseContentTableStyles=Qo,E.baseFieldStyles=ut,E.baseInputStyles=Gn,E.baseTableCellsSizes=ft,E.bodyTextStyles=M,E.createFieldConfig=Qg,E.createInputRefs=gc,E.deleteCookie=S1,E.disabledStyles=qe,E.errorStyles=ht,E.flushedStyles=tc,E.getCookie=x1,E.getPropsForInputType=e0,E.handleDigitChange=fc,E.handleKeyDown=pc,E.handlePaste=mc,E.hasPermission=qo,E.headingBoldStyles=yr,E.headingRegularStyles=Qi,E.isAllowedInputType=ec,E.normalizeFieldTypes=Ze,E.normalizeSelectOptions=Jg,E.overlayAnimation=Go,E.setCookie=w1,E.sizeStyles=sn,E.slideAnimation=Ty,E.smartAnimation=vc,E.submenuAnimationTopDown=bc,E.tableHoverMixin=jc,E.tableIconContainerStyles=ei,E.tableResponsiveMixin=zc,E.tableVariants=Fc,E.toast=Sg,E.useNotifications=Wc,E.useSidebar=Zo,E.validateCode=dy,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|