UNPKG

gwitter

Version:

Turn GitHub Issues into your personal microblog platform

1 lines 366 kB
import*as t from"react";import e,{forwardRef as n,useContext as i,createContext as r,useRef as o,useLayoutEffect as s,useEffect as a,useId as l,useInsertionEffect as c,useMemo as u,useCallback as d,Children as h,isValidElement as p,useState as f,Fragment as m,createElement as g,Component as y}from"react";import v from"react-dom/client";import{createPortal as b}from"react-dom";function x(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}l((i=i.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var w,S,k={exports:{}},C={};var P=(S||(S=1,k.exports=function(){if(w)return C;w=1;var t=e,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(t,e,i){var a,l={},c=null,u=null;for(a in void 0!==i&&(c=""+i),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)r.call(e,a)&&!s.hasOwnProperty(a)&&(l[a]=e[a]);if(t&&t.defaultProps)for(a in e=t.defaultProps)void 0===l[a]&&(l[a]=e[a]);return{$$typeof:n,type:t,key:c,ref:u,props:l,_owner:o.current}}return C.Fragment=i,C.jsx=a,C.jsxs=a,C}()),k.exports);function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},T.apply(null,arguments)}var E=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),this.tags=[],this.ctr=0},t}(),A="-ms-",j="-moz-",R="-webkit-",O="comm",M="rule",L="decl",D="@keyframes",$=Math.abs,_=String.fromCharCode,N=Object.assign;function F(t){return t.trim()}function V(t,e,n){return t.replace(e,n)}function I(t,e){return t.indexOf(e)}function B(t,e){return 0|t.charCodeAt(e)}function U(t,e,n){return t.slice(e,n)}function z(t){return t.length}function W(t){return t.length}function H(t,e){return e.push(t),t}var q=1,Y=1,X=0,G=0,K=0,J="";function Z(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:q,column:Y,length:s,return:""}}function Q(t,e){return N(Z("",null,null,"",null,null,0),t,{length:-t.length},e)}function tt(){return K=G>0?B(J,--G):0,Y--,10===K&&(Y=1,q--),K}function et(){return K=G<X?B(J,G++):0,Y++,10===K&&(Y=1,q++),K}function nt(){return B(J,G)}function it(){return G}function rt(t,e){return U(J,t,e)}function ot(t){switch(t){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 st(t){return q=Y=1,X=z(J=t),G=0,[]}function at(t){return J="",t}function lt(t){return F(rt(G-1,dt(91===t?t+2:40===t?t+1:t)))}function ct(t){for(;(K=nt())&&K<33;)et();return ot(t)>2||ot(K)>3?"":" "}function ut(t,e){for(;--e&&et()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return rt(t,it()+(e<6&&32==nt()&&32==et()))}function dt(t){for(;et();)switch(K){case t:return G;case 34:case 39:34!==t&&39!==t&&dt(K);break;case 40:41===t&&dt(t);break;case 92:et()}return G}function ht(t,e){for(;et()&&t+K!==57&&(t+K!==84||47!==nt()););return"/*"+rt(e,G-1)+"*"+_(47===t?t:et())}function pt(t){for(;!ot(nt());)et();return rt(t,G)}function ft(t){return at(mt("",null,null,null,[""],t=st(t),0,[0],t))}function mt(t,e,n,i,r,o,s,a,l){for(var c=0,u=0,d=s,h=0,p=0,f=0,m=1,g=1,y=1,v=0,b="",x=r,w=o,S=i,k=b;g;)switch(f=v,v=et()){case 40:if(108!=f&&58==B(k,d-1)){-1!=I(k+=V(lt(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=lt(v);break;case 9:case 10:case 13:case 32:k+=ct(f);break;case 92:k+=ut(it()-1,7);continue;case 47:switch(nt()){case 42:case 47:H(yt(ht(et(),it()),e,n),l);break;default:k+="/"}break;case 123*m:a[c++]=z(k)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(k=V(k,/\f/g,"")),p>0&&z(k)-d&&H(p>32?vt(k+";",i,n,d-1):vt(V(k," ","")+";",i,n,d-2),l);break;case 59:k+=";";default:if(H(S=gt(k,e,n,c,u,r,a,b,x=[],w=[],d),o),123===v)if(0===u)mt(k,e,S,S,x,o,d,a,w);else switch(99===h&&110===B(k,3)?100:h){case 100:case 108:case 109:case 115:mt(t,S,S,i&&H(gt(t,S,S,0,0,r,a,b,r,x=[],d),w),r,w,d,a,i?x:w);break;default:mt(k,S,S,S,[""],w,0,a,w)}}c=u=p=0,m=y=1,b=k="",d=s;break;case 58:d=1+z(k),p=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==tt())continue;switch(k+=_(v),v*m){case 38:y=u>0?1:(k+="\f",-1);break;case 44:a[c++]=(z(k)-1)*y,y=1;break;case 64:45===nt()&&(k+=lt(et())),h=nt(),u=d=z(b=k+=pt(it())),v++;break;case 45:45===f&&2==z(k)&&(m=0)}}return o}function gt(t,e,n,i,r,o,s,a,l,c,u){for(var d=r-1,h=0===r?o:[""],p=W(h),f=0,m=0,g=0;f<i;++f)for(var y=0,v=U(t,d+1,d=$(m=s[f])),b=t;y<p;++y)(b=F(m>0?h[y]+" "+v:V(v,/&\f/g,h[y])))&&(l[g++]=b);return Z(t,e,n,0===r?M:a,l,c,u)}function yt(t,e,n){return Z(t,e,n,O,_(K),U(t,2,-2),0)}function vt(t,e,n,i){return Z(t,e,n,L,U(t,0,i),U(t,i+1,-1),i)}function bt(t,e){for(var n="",i=W(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function xt(t,e,n,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case L:return t.return=t.return||t.value;case O:return"";case D:return t.return=t.value+"{"+bt(t.children,i)+"}";case M:t.value=t.props.join(",")}return z(n=bt(t.children,i))?t.return=t.value+"{"+n+"}":""}function wt(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var St=function(t,e,n){for(var i=0,r=0;i=r,r=nt(),38===i&&12===r&&(e[n]=1),!ot(r);)et();return rt(t,G)},kt=function(t,e){return at(function(t,e){var n=-1,i=44;do{switch(ot(i)){case 0:38===i&&12===nt()&&(e[n]=1),t[n]+=St(G-1,e,n);break;case 2:t[n]+=lt(i);break;case 4:if(44===i){t[++n]=58===nt()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=_(i)}}while(i=et());return t}(st(t),e))},Ct=new WeakMap,Pt=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||Ct.get(n))&&!i){Ct.set(t,!0);for(var r=[],o=kt(e,r),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)t.props[l]=r[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},Tt=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function Et(t,e){switch(function(t,e){return 45^B(t,0)?(((e<<2^B(t,0))<<2^B(t,1))<<2^B(t,2))<<2^B(t,3):0}(t,e)){case 5103:return R+"print-"+t+t;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+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return R+t+j+t+A+t+t;case 6828:case 4268:return R+t+A+t+t;case 6165:return R+t+A+"flex-"+t+t;case 5187:return R+t+V(t,/(\w+).+(:[^]+)/,R+"box-$1$2"+A+"flex-$1$2")+t;case 5443:return R+t+A+"flex-item-"+V(t,/flex-|-self/,"")+t;case 4675:return R+t+A+"flex-line-pack"+V(t,/align-content|flex-|-self/,"")+t;case 5548:return R+t+A+V(t,"shrink","negative")+t;case 5292:return R+t+A+V(t,"basis","preferred-size")+t;case 6060:return R+"box-"+V(t,"-grow","")+R+t+A+V(t,"grow","positive")+t;case 4554:return R+V(t,/([^-])(transform)/g,"$1"+R+"$2")+t;case 6187:return V(V(V(t,/(zoom-|grab)/,R+"$1"),/(image-set)/,R+"$1"),t,"")+t;case 5495:case 3959:return V(t,/(image-set\([^]*)/,R+"$1$`$1");case 4968:return V(V(t,/(.+:)(flex-)?(.*)/,R+"box-pack:$3"+A+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+R+t+t;case 4095:case 3583:case 4068:case 2532:return V(t,/(.+)-inline(.+)/,R+"$1$2")+t;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(z(t)-1-e>6)switch(B(t,e+1)){case 109:if(45!==B(t,e+4))break;case 102:return V(t,/(.+:)(.+)-([^]+)/,"$1"+R+"$2-$3$1"+j+(108==B(t,e+3)?"$3":"$2-$3"))+t;case 115:return~I(t,"stretch")?Et(V(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==B(t,e+1))break;case 6444:switch(B(t,z(t)-3-(~I(t,"!important")&&10))){case 107:return V(t,":",":"+R)+t;case 101:return V(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+R+(45===B(t,14)?"inline-":"")+"box$3$1"+R+"$2$3$1"+A+"$2box$3")+t}break;case 5936:switch(B(t,e+11)){case 114:return R+t+A+V(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return R+t+A+V(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return R+t+A+V(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return R+t+A+t+t}return t}var At,jt,Rt,Ot,Mt=[function(t,e,n,i){if(t.length>-1&&!t.return)switch(t.type){case L:t.return=Et(t.value,t.length);break;case D:return bt([Q(t,{value:V(t.value,"@","@"+R)})],i);case M:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,function(e){switch(function(t,e){return(t=e.exec(t))?t[0]:t}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bt([Q(t,{props:[V(e,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return bt([Q(t,{props:[V(e,/:(plac\w+)/,":"+R+"input-$1")]}),Q(t,{props:[V(e,/:(plac\w+)/,":-moz-$1")]}),Q(t,{props:[V(e,/:(plac\w+)/,A+"input-$1")]})],i)}return""})}}],Lt=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var i,r,o=t.stylisPlugins||Mt,s={},a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)s[e[n]]=!0;a.push(t)});var l,c,u=[xt,(c=function(t){l.insert(t)},function(t){t.root||(t=t.return)&&c(t)})],d=function(t){var e=W(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}([Pt,Tt].concat(o,u));r=function(t,e,n,i){l=n,bt(ft(t?t+"{"+e.styles+"}":e.styles),d),i&&(h.inserted[e.name]=!0)};var h={key:e,sheet:new E({key:e,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:r};return h.sheet.hydrate(a),h},Dt={exports:{}},$t={};function _t(){return jt||(jt=1,Dt.exports=function(){if(At)return $t;At=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case l:case c:case i:case o:case r:case d:return t;default:switch(t=t&&t.$$typeof){case a:case u:case f:case p:case s:return t;default:return h}}case n:return h}}}function x(t){return b(t)===c}return $t.AsyncMode=l,$t.ConcurrentMode=c,$t.ContextConsumer=a,$t.ContextProvider=s,$t.Element=e,$t.ForwardRef=u,$t.Fragment=i,$t.Lazy=f,$t.Memo=p,$t.Portal=n,$t.Profiler=o,$t.StrictMode=r,$t.Suspense=d,$t.isAsyncMode=function(t){return x(t)||b(t)===l},$t.isConcurrentMode=x,$t.isContextConsumer=function(t){return b(t)===a},$t.isContextProvider=function(t){return b(t)===s},$t.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},$t.isForwardRef=function(t){return b(t)===u},$t.isFragment=function(t){return b(t)===i},$t.isLazy=function(t){return b(t)===f},$t.isMemo=function(t){return b(t)===p},$t.isPortal=function(t){return b(t)===n},$t.isProfiler=function(t){return b(t)===o},$t.isStrictMode=function(t){return b(t)===r},$t.isSuspense=function(t){return b(t)===d},$t.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===c||t===o||t===r||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===s||t.$$typeof===a||t.$$typeof===u||t.$$typeof===g||t.$$typeof===y||t.$$typeof===v||t.$$typeof===m)},$t.typeOf=b,$t}()),Dt.exports}!function(){if(Ot)return Rt;Ot=1;var t=_t(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};function o(n){return t.isMemo(n)?i:r[n.$$typeof]||e}r[t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r[t.Memo]=i;var s=Object.defineProperty,a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Rt=function t(e,i,r){if("string"!=typeof i){if(d){var h=u(i);h&&h!==d&&t(e,h,r)}var p=a(i);l&&(p=p.concat(l(i)));for(var f=o(e),m=o(i),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||r&&r[y]||m&&m[y]||f&&f[y])){var v=c(i,y);try{s(e,y,v)}catch(t){}}}}return e}}();function Nt(t,e,n){var i="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]+";"):n&&(i+=n+" ")}),i}var Ft=function(t,e,n){var i=t.key+"-"+e.name;!1===n&&void 0===t.registered[i]&&(t.registered[i]=e.styles)},Vt=function(t,e,n){Ft(t,e,n);var i=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var r=e;do{t.insert(e===r?"."+i:"",r,t.sheet,!0),r=r.next}while(void 0!==r)}};var It={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bt=/[A-Z]|^ms/g,Ut=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zt=function(t){return 45===t.charCodeAt(1)},Wt=function(t){return null!=t&&"boolean"!=typeof t},Ht=wt(function(t){return zt(t)?t:t.replace(Bt,"-$&").toLowerCase()}),qt=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(Ut,function(t,e,n){return Xt={name:e,styles:n,next:Xt},e})}return 1===It[t]||zt(t)||"number"!=typeof e||0===e?e:e+"px"};function Yt(t,e,n){if(null==n)return"";var i=n;if(void 0!==i.__emotion_styles)return i;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return Xt={name:r.name,styles:r.styles,next:Xt},r.name;var o=n;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)Xt={name:s.name,styles:s.styles,next:Xt},s=s.next;return o.styles+";"}return function(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Yt(t,e,n[r])+";";else for(var o in n){var s=n[o];if("object"!=typeof s){var a=s;null!=e&&void 0!==e[a]?i+=o+"{"+e[a]+"}":Wt(a)&&(i+=Ht(o)+":"+qt(o,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=e&&void 0!==e[s[0]]){var l=Yt(t,e,s);switch(o){case"animation":case"animationName":i+=Ht(o)+":"+l+";";break;default:i+=o+"{"+l+"}"}}else for(var c=0;c<s.length;c++)Wt(s[c])&&(i+=Ht(o)+":"+qt(o,s[c])+";")}return i}(t,e,n);case"function":if(void 0!==t){var a=Xt,l=n(t);return Xt=a,Yt(t,e,l)}}var c=n;if(null==e)return c;var u=e[c];return void 0!==u?u:c}var Xt,Gt=/label:\s*([^\s;{]+)\s*(;|$)/g;function Kt(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,r="";Xt=void 0;var o=t[0];null==o||void 0===o.raw?(i=!1,r+=Yt(n,e,o)):r+=o[0];for(var s=1;s<t.length;s++){if(r+=Yt(n,e,t[s]),i)r+=o[s]}Gt.lastIndex=0;for(var a,l="";null!==(a=Gt.exec(r));)l+="-"+a[1];var c=function(t){for(var e,n=0,i=0,r=t.length;r>=4;++i,r-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:c,styles:r,next:Xt}}var Jt=!!t.useInsertionEffect&&t.useInsertionEffect||function(t){return t()},Zt=t.createContext("undefined"!=typeof HTMLElement?Lt({key:"css"}):null);Zt.Provider;var Qt,te,ee=function(t){return n(function(e,n){var r=i(Zt);return t(e,r,n)})},ne=t.createContext({}),ie={}.hasOwnProperty,re="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",oe=function(t){var e=t.cache,n=t.serialized,i=t.isStringTag;return Ft(e,n,i),Jt(function(){return Vt(e,n,i)}),null},se=ee(function(e,n,i){var r=e.css;"string"==typeof r&&void 0!==n.registered[r]&&(r=n.registered[r]);var o=e[re],s=[r],a="";"string"==typeof e.className?a=Nt(n.registered,s,e.className):null!=e.className&&(a=e.className+" ");var l=Kt(s,void 0,t.useContext(ne));a+=n.key+"-"+l.name;var c={};for(var u in e)ie.call(e,u)&&"css"!==u&&u!==re&&(c[u]=e[u]);return c.className=a,i&&(c.ref=i),t.createElement(t.Fragment,null,t.createElement(oe,{cache:n,serialized:l,isStringTag:"string"==typeof o}),t.createElement(o,c))}),ae=se,le=function(e,n){var i=arguments;if(null==n||!ie.call(n,"css"))return t.createElement.apply(void 0,i);var r=i.length,o=new Array(r);o[0]=ae,o[1]=function(t,e){var n={};for(var i in e)ie.call(e,i)&&(n[i]=e[i]);return n[re]=t,n}(e,n);for(var s=2;s<r;s++)o[s]=i[s];return t.createElement.apply(null,o)};function ce(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Kt(e)}function ue(){var t=ce.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}Qt=le||(le={}),te||(te=Qt.JSX||(Qt.JSX={}));var de=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|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)-.*))$/,he=wt(function(t){return de.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}),pe=function(t){return"theme"!==t},fe=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?he:pe},me=function(t,e,n){var i;if(e){var r=e.shouldForwardProp;i=t.__emotion_forwardProp&&r?function(e){return t.__emotion_forwardProp(e)&&r(e)}:r}return"function"!=typeof i&&n&&(i=t.__emotion_forwardProp),i},ge=function(t){var e=t.cache,n=t.serialized,i=t.isStringTag;return Ft(e,n,i),Jt(function(){return Vt(e,n,i)}),null},ye=function e(n,i){var r,o,s=n.__emotion_real===n,a=s&&n.__emotion_base||n;void 0!==i&&(r=i.label,o=i.target);var l=me(n,i,s),c=l||fe(a),u=!c("as");return function(){var d=arguments,h=s&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==r&&h.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{var p=d[0];h.push(p[0]);for(var f=d.length,m=1;m<f;m++)h.push(d[m],p[m])}var g=ee(function(e,n,i){var r=u&&e.as||a,s="",d=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=t.useContext(ne)}"string"==typeof e.className?s=Nt(n.registered,d,e.className):null!=e.className&&(s=e.className+" ");var m=Kt(h.concat(d),n.registered,p);s+=n.key+"-"+m.name,void 0!==o&&(s+=" "+o);var g=u&&void 0===l?fe(r):c,y={};for(var v in e)u&&"as"===v||g(v)&&(y[v]=e[v]);return y.className=s,i&&(y.ref=i),t.createElement(t.Fragment,null,t.createElement(ge,{cache:n,serialized:m,isStringTag:"string"==typeof r}),t.createElement(r,y))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=n.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=h,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,n){return e(t,T({},i,n,{shouldForwardProp:me(g,n,!0)})).apply(void 0,h)},g}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(t){ye[t]=ye(t)});const ve=r({});function be(t){const e=o(null);return null===e.current&&(e.current=t()),e.current}const xe="undefined"!=typeof window,we=xe?s:a,Se=r(null);function ke(t,e){-1===t.indexOf(e)&&t.push(e)}function Ce(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Pe=(t,e,n)=>n>e?e:n<t?t:n;const Te={},Ee=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ae(t){return"object"==typeof t&&null!==t}const je=t=>/^0[^.\s]+$/u.test(t);function Re(t){let e;return()=>(void 0===e&&(e=t()),e)}const Oe=t=>t,Me=(t,e)=>n=>e(t(n)),Le=(...t)=>t.reduce(Me),De=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};class $e{constructor(){this.subscriptions=[]}add(t){return ke(this.subscriptions,t),()=>Ce(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){const i=this.subscriptions[r];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _e=t=>1e3*t,Ne=t=>t/1e3;function Fe(t,e){return e?t*(1e3/e):0}const Ve=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Ie(t,e,n,i){if(t===e&&n===i)return Oe;const r=e=>function(t,e,n,i,r){let o,s,a=0;do{s=e+(n-e)/2,o=Ve(s,i,r)-t,o>0?n=s:e=s}while(Math.abs(o)>1e-7&&++a<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:Ve(r(t),e,i)}const Be=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ue=t=>e=>1-t(1-e),ze=Ie(.33,1.53,.69,.99),We=Ue(ze),He=Be(We),qe=t=>(t*=2)<1?.5*We(t):.5*(2-Math.pow(2,-10*(t-1))),Ye=t=>1-Math.sin(Math.acos(t)),Xe=Ue(Ye),Ge=Be(Ye),Ke=Ie(.42,0,1,1),Je=Ie(0,0,.58,1),Ze=Ie(.42,0,.58,1),Qe=t=>Array.isArray(t)&&"number"==typeof t[0],tn={linear:Oe,easeIn:Ke,easeInOut:Ze,easeOut:Je,circIn:Ye,circInOut:Ge,circOut:Xe,backIn:We,backInOut:He,backOut:ze,anticipate:qe},en=t=>{if(Qe(t)){t.length;const[e,n,i,r]=t;return Ie(e,n,i,r)}return"string"==typeof t?tn[t]:t},nn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function rn(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=nn.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(s)}const l={schedule:(t,r=!1,s=!1)=>{const a=s&&i?e:n;return r&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{s=t,i?r=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,r&&(r=!1,l.process(t)))}};return l}(o),t),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:p,postRender:f}=s,m=()=>{const o=Te.useManualTiming?r.timestamp:performance.now();n=!1,Te.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),d.process(r),h.process(r),p.process(r),f.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(m))};return{schedule:nn.reduce((e,o)=>{const a=s[o];return e[o]=(e,o=!1,s=!1)=>(n||(n=!0,i=!0,r.isProcessing||t(m)),a.schedule(e,o,s)),e},{}),cancel:t=>{for(let e=0;e<nn.length;e++)s[nn[e]].cancel(t)},state:r,steps:s}}const{schedule:on,cancel:sn,state:an,steps:ln}=rn("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Oe,!0);let cn;function un(){cn=void 0}const dn={now:()=>(void 0===cn&&dn.set(an.isProcessing||Te.useManualTiming?an.timestamp:performance.now()),cn),set:t=>{cn=t,queueMicrotask(un)}},hn=t=>e=>"string"==typeof e&&e.startsWith(t),pn=hn("--"),fn=hn("var(--"),mn=t=>!!fn(t)&&gn.test(t.split("/*")[0].trim()),gn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yn={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},vn={...yn,transform:t=>Pe(0,1,t)},bn={...yn,default:1},xn=t=>Math.round(1e5*t)/1e5,wn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Sn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,kn=(t,e)=>n=>Boolean("string"==typeof n&&Sn.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),Cn=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[r,o,s,a]=i.match(wn);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Pn={...yn,transform:t=>Math.round((t=>Pe(0,255,t))(t))},Tn={test:kn("rgb","red"),parse:Cn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Pn.transform(t)+", "+Pn.transform(e)+", "+Pn.transform(n)+", "+xn(vn.transform(i))+")"};const En={test:kn("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:Tn.transform},An=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),jn=An("deg"),Rn=An("%"),On=An("px"),Mn=An("vh"),Ln=An("vw"),Dn=(()=>({...Rn,parse:t=>Rn.parse(t)/100,transform:t=>Rn.transform(100*t)}))(),$n={test:kn("hsl","hue"),parse:Cn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Rn.transform(xn(e))+", "+Rn.transform(xn(n))+", "+xn(vn.transform(i))+")"},_n={test:t=>Tn.test(t)||En.test(t)||$n.test(t),parse:t=>Tn.test(t)?Tn.parse(t):$n.test(t)?$n.parse(t):En.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Tn.transform(t):$n.transform(t)},Nn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Fn="number",Vn="color",In=/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 Bn(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const s=e.replace(In,t=>(_n.test(t)?(i.color.push(o),r.push(Vn),n.push(_n.parse(t))):t.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(t)):(i.number.push(o),r.push(Fn),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:r}}function Un(t){return Bn(t).values}function zn(t){const{split:e,types:n}=Bn(t),i=e.length;return t=>{let r="";for(let o=0;o<i;o++)if(r+=e[o],void 0!==t[o]){const e=n[o];r+=e===Fn?xn(t[o]):e===Vn?_n.transform(t[o]):t[o]}return r}}const Wn=t=>"number"==typeof t?0:t;const Hn={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(wn)?.length||0)+(t.match(Nn)?.length||0)>0},parse:Un,createTransformer:zn,getAnimatableNone:function(t){const e=Un(t);return zn(t)(e.map(Wn))}};function qn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Yn(t,e){return n=>n>0?e:t}const Xn=(t,e,n)=>t+(e-t)*n,Gn=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},Kn=[En,Tn,$n];function Jn(t){const e=(n=t,Kn.find(t=>t.test(n)));var n;if(!Boolean(e))return!1;let i=e.parse(t);return e===$n&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,o=0,s=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;r=qn(a,i,t+1/3),o=qn(a,i,t),s=qn(a,i,t-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(i)),i}const Zn=(t,e)=>{const n=Jn(t),i=Jn(e);if(!n||!i)return Yn(t,e);const r={...n};return t=>(r.red=Gn(n.red,i.red,t),r.green=Gn(n.green,i.green,t),r.blue=Gn(n.blue,i.blue,t),r.alpha=Xn(n.alpha,i.alpha,t),Tn.transform(r))},Qn=new Set(["none","hidden"]);function ti(t,e){return n=>Xn(t,e,n)}function ei(t){return"number"==typeof t?ti:"string"==typeof t?mn(t)?Yn:_n.test(t)?Zn:ri:Array.isArray(t)?ni:"object"==typeof t?_n.test(t)?Zn:ii:Yn}function ni(t,e){const n=[...t],i=n.length,r=t.map((t,n)=>ei(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}}function ii(t,e){const n={...t,...e},i={};for(const r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=ei(t[r])(t[r],e[r]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const ri=(t,e)=>{const n=Hn.createTransformer(e),i=Bn(t),r=Bn(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Qn.has(t)&&!r.values.length||Qn.has(e)&&!i.values.length?function(t,e){return Qn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Le(ni(function(t,e){const n=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],s=t.indexes[o][i[o]],a=t.values[s]??0;n[r]=a,i[o]++}return n}(i,r),r.values),n):Yn(t,e)};function oi(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Xn(t,e,n);return ei(t)(t,e)}const si=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>on.update(e,t),stop:()=>sn(e),now:()=>an.isProcessing?an.timestamp:dn.now()}},ai=(t,e,n=10)=>{let i="";const r=Math.max(Math.round(e/n),2);for(let e=0;e<r;e++)i+=t(e/(r-1))+", ";return`linear(${i.substring(0,i.length-2)})`},li=2e4;function ci(t){let e=0;let n=t.next(e);for(;!n.done&&e<li;)e+=50,n=t.next(e);return e>=li?1/0:e}function ui(t,e,n){const i=Math.max(e-5,0);return Fe(n-t(i),e-i)}const di=100,hi=10,pi=1,fi=0,mi=800,gi=.3,yi=.3,vi={granular:.01,default:2},bi={granular:.005,default:.5},xi=.01,wi=10,Si=.05,ki=1,Ci=.001;function Pi({duration:t=mi,bounce:e=gi,velocity:n=fi,mass:i=pi}){let r,o,s=1-e;s=Pe(Si,ki,s),t=Pe(xi,wi,Ne(t)),s<1?(r=e=>{const i=e*s,r=i*t,o=i-n,a=Ei(e,s),l=Math.exp(-r);return Ci-o/a*l},o=e=>{const i=e*s*t,o=i*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,l=Math.exp(-i),c=Ei(Math.pow(e,2),s);return(-r(e)+Ci>0?-1:1)*((o-a)*l)/c}):(r=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<Ti;n++)i-=t(i)/e(i);return i}(r,o,5/t);if(t=_e(t),isNaN(a))return{stiffness:di,damping:hi,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*s*Math.sqrt(i*e),duration:t}}}const Ti=12;function Ei(t,e){return t*Math.sqrt(1-e*e)}const Ai=["duration","bounce"],ji=["stiffness","damping","mass"];function Ri(t,e){return e.some(e=>void 0!==t[e])}function Oi(t=yi,e=gi){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:r}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:p}=function(t){let e={velocity:fi,stiffness:di,damping:hi,mass:pi,isResolvedFromDuration:!1,...t};if(!Ri(t,ji)&&Ri(t,Ai))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),r=i*i,o=2*Pe(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:pi,stiffness:r,damping:o}}else{const n=Pi(t);e={...e,...n,mass:pi},e.isResolvedFromDuration=!0}return e}({...n,velocity:-Ne(n.velocity||0)}),f=h||0,m=c/(2*Math.sqrt(l*u)),g=s-o,y=Ne(Math.sqrt(l/u)),v=Math.abs(g)<5;let b;if(i||(i=v?vi.granular:vi.default),r||(r=v?bi.granular:bi.default),m<1){const t=Ei(y,m);b=e=>{const n=Math.exp(-m*y*e);return s-n*((f+m*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===m)b=t=>s-Math.exp(-y*t)*(g+(f+y*g)*t);else{const t=y*Math.sqrt(m*m-1);b=e=>{const n=Math.exp(-m*y*e),i=Math.min(t*e,300);return s-n*((f+m*y*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const x={calculatedDuration:p&&d||null,next:t=>{const e=b(t);if(p)a.done=t>=d;else{let n=0===t?f:0;m<1&&(n=0===t?_e(f):ui(b,t,e));const o=Math.abs(n)<=i,l=Math.abs(s-e)<=r;a.done=o&&l}return a.value=a.done?s:e,a},toString:()=>{const t=Math.min(ci(x),li),e=ai(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function Mi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],h={done:!1,value:d},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let f=n*e;const m=d+f,g=void 0===s?m:s(m);g!==m&&(f=g-d);const y=t=>-f*Math.exp(-t/i),v=t=>g+y(t),b=t=>{const e=y(t),n=v(t);h.done=Math.abs(e)<=c,h.value=h.done?g:n};let x,w;const S=t=>{var e;(e=h.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(x=t,w=Oi({keyframes:[h.value,p(h.value)],velocity:ui(v,t,h.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==x||(e=!0,b(t),S(t)),void 0!==x&&t>=x?w.next(t-x):(!e&&b(t),h)}}}function Li(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const o=t.length;if(e.length,1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],r=n||Te.mix||oi,o=t.length-1;for(let n=0;n<o;n++){let o=r(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||Oe:e;o=Le(t,o)}i.push(o)}return i}(e,i,r),l=a.length,c=n=>{if(s&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const r=De(t[i],t[i+1],n);return a[i](r)};return n?e=>c(Pe(t[0],t[o-1],e)):c}function Di(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=De(0,e,i);t.push(Xn(n,1,r))}}(e,t.length-1),e}function $i({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(en):en(i),o={done:!1,value:e[0]},s=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:Di(e),t),a=Li(s,e,{ease:Array.isArray(r)?r:(l=e,c=r,l.map(()=>c||Ze).splice(0,l.length-1))});var l,c;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}Oi.applyToOptions=t=>{const e=function(t,e=100,n){const i=n({...t,keyframes:[0,e]}),r=Math.min(ci(i),li);return{type:"keyframes",ease:t=>i.next(r*t).value/e,duration:Ne(r)}}(t,100,Oi);return t.ease=e.ease,t.duration=_e(e.duration),t.type="keyframes",t};const _i=t=>null!==t;function Ni(t,{repeat:e,repeatType:n="loop"},i,r=1){const o=t.filter(_i),s=r<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return s&&void 0!==i?i:o[s]}const Fi={decay:Mi,inertia:Mi,tween:$i,keyframes:$i,spring:Oi};function Vi(t){"string"==typeof t.type&&(t.type=Fi[t.type])}class Ii{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Bi=t=>t/100;class Ui extends Ii{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:t}=this.options;t&&t.updatedAt!==dn.now()&&this.tick(dn.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;Vi(t);const{type:e=$i,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:s}=t;const a=e||$i;a!==$i&&"number"!=typeof s[0]&&(this.mixKeyframes=Le(Bi,oi(s[0],s[1])),s=[0,100]);const l=a({...t,keyframes:s});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=ci(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:h,type:p,onUpdate:f,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let v=this.currentTime,b=n;if(u){const t=Math.min(this.currentTime,i)/s;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,u+1);Boolean(e%2)&&("reverse"===d?(n=1-n,h&&(n-=h/s)):"mirror"===d&&(b=o)),v=Pe(0,1,n)*s}const x=y?{done:!1,value:c[0]}:b.next(v);r&&(x.value=r(x.value));let{done:w}=x;y||null===a||(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&p!==Mi&&(x.value=Ni(c,this.options,m,this.speed)),f&&f(x.value),S&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return Ne(this.calculatedDuration)}get time(){return Ne(this.currentTime)}set time(t){t=_e(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?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(dn.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=Ne(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=si,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(dn.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&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)}}const zi=t=>180*t/Math.PI,Wi=t=>{const e=zi(Math.atan2(t[1],t[0]));return qi(e)},Hi={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Wi,rotateZ:Wi,skewX:t=>zi(Math.atan(t[1])),skewY:t=>zi(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},qi=t=>((t%=360)<0&&(t+=360),t),Yi=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Xi=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Gi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yi,scaleY:Xi,scale:t=>(Yi(t)+Xi(t))/2,rotateX:t=>qi(zi(Math.atan2(t[6],t[5]))),rotateY:t=>qi(zi(Math.atan2(-t[2],t[0]))),rotateZ:Wi,rotate:Wi,skewX:t=>zi(Math.atan(t[4])),skewY:t=>zi(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ki(t){return t.includes("scale")?1:0}function Ji(t,e){if(!t||"none"===t)return Ki(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,r;if(n)i=Gi,r=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Hi,r=e}if(!r)return Ki(e);const o=i[e],s=r[1].split(",").map(Zi);return"function"==typeof o?o(s):s[o]}function Zi(t){return parseFloat(t.trim())}const Qi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tr=(()=>new Set(Qi))(),er=t=>t===yn||t===On,nr=new Set(["x","y","z"]),ir=Qi.filter(t=>!nr.has(t));const rr={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ji(e,"x"),y:(t,{transform:e})=>Ji(e,"y")};rr.translateX=rr.x,rr.translateY=rr.y;const or=new Set;let sr=!1,ar=!1,lr=!1;function cr(){if(ar){const t=Array.from(or).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return ir.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ar=!1,sr=!1,or.forEach(t=>t.complete(lr)),or.clear()}function ur(){or.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ar=!0)})}class dr{constructor(t,e,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(or.add(this),sr||(sr=!0,on.read(ur),on.resolveKeyframes(cr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const r=i?.get(),o=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===r&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),or.delete(this)}cancel(){"scheduled"===this.state&&(or.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const hr=Re(()=>void 0!==window.ScrollTimeline),pr={};function fr(t,e){const n=Re(t);return()=>pr[e]??n()}const mr=fr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),gr=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,yr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gr([0,.65,.55,1]),circOut:gr([.55,0,1,.45]),backIn:gr([.31,.01,.66,-.59]),backOut:gr([.33,1.53,.69,.99])};function vr(t,e){return t?"function"==typeof t?mr()?ai(t,e):"ease-out":Qe(t)?gr(t):Array.isArray(t)?t.map(t=>vr(t,e)||yr.easeOut):yr[t]:void 0}function br(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const d=vr(a,r);Array.isArray(d)&&(u.easing=d);const h={delay:i,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};c&&(h.pseudoElement=c);return t.animate(u,h)}function xr(t){return"function"==typeof t&&"applyToOptions"in t}class wr extends Ii{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=t;this.isPseudoElement=Boolean(r),this.allowFlatten=o,this.options=t,t.type;const l=function({type:t,...e}){return xr(t)&&mr()?t.applyToOptions(e):(e.