earthnut 0.1.4 → 0.1.6

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 +1 @@
1
- "use client";import*as e from"a-js-tools";import*as t from"a-type-of-js";import{setStyle as r}from"a-element-inline-style";import*as n from"react";var i={161:(t,r,n)=>{t.exports=(e=>{var t={};return n.d(t,e),t})({debounce:()=>e.debounce,enArr:()=>e.enArr,getRandomInt:()=>e.getRandomInt,getRandomString:()=>e.getRandomString})},291:(e,t,r)=>{r.d(t,{Ay:()=>Gt});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.create;function i(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var o=r(649),a=r(945),s=r.n(a),u="-ms-",c="-moz-",l="-webkit-",f="comm",p="rule",h="decl",d="@keyframes",g=Math.abs,m=String.fromCharCode,v=Object.assign;function y(e){return e.trim()}function b(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,r){return e.replace(t,r)}function E(e,t,r){return e.indexOf(t,r)}function S(e,t){return 0|e.charCodeAt(t)}function R(e,t,r){return e.slice(t,r)}function P(e){return e.length}function T(e){return e.length}function k(e,t){return t.push(e),e}function x(e,t){return e.filter(function(e){return!b(e,t)})}var O=1,I=1,A=0,_=0,D=0,j="";function C(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:O,column:I,length:a,return:"",siblings:s}}function F(e,t){return v(C("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function N(e){for(;e.root;)e=F(e.root,{children:[e]});k(e,e.siblings)}function U(){return D=_>0?S(j,--_):0,I--,10===D&&(I=1,O--),D}function B(){return D=_<A?S(j,_++):0,I++,10===D&&(I=1,O++),D}function L(){return S(j,_)}function M(){return _}function $(e,t){return R(j,e,t)}function W(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 z(e){return O=I=1,A=P(j=e),_=0,[]}function X(e){return j="",e}function G(e){return y($(_-1,q(91===e?e+2:40===e?e+1:e)))}function H(e){for(;(D=L())&&D<33;)B();return W(e)>2||W(D)>3?"":" "}function Y(e,t){for(;--t&&B()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return $(e,M()+(t<6&&32==L()&&32==B()))}function q(e){for(;B();)switch(D){case e:return _;case 34:case 39:34!==e&&39!==e&&q(D);break;case 40:41===e&&q(e);break;case 92:B()}return _}function Z(e,t){for(;B()&&e+D!==57&&(e+D!==84||47!==L()););return"/*"+$(t,_-1)+"*"+m(47===e?e:B())}function V(e){for(;!W(L());)B();return $(e,_)}function K(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function J(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case h:return e.return=e.return||e.value;case f:return"";case d:return e.return=e.value+"{"+K(e.children,n)+"}";case p:if(!P(e.value=e.props.join(",")))return""}return P(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function Q(e,t,r){switch(function(e,t){return 45^S(e,0)?(((t<<2^S(e,0))<<2^S(e,1))<<2^S(e,2))<<2^S(e,3):0}(e,t)){case 5103:return l+"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 l+e+e;case 4789:return c+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return l+e+c+e+u+e+e;case 5936:switch(S(e,t+11)){case 114:return l+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return l+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return l+e+u+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return l+e+u+e+e;case 6165:return l+e+u+"flex-"+e+e;case 5187:return l+e+w(e,/(\w+).+(:[^]+)/,l+"box-$1$2"+u+"flex-$1$2")+e;case 5443:return l+e+u+"flex-item-"+w(e,/flex-|-self/g,"")+(b(e,/flex-|baseline/)?"":u+"grid-row-"+w(e,/flex-|-self/g,""))+e;case 4675:return l+e+u+"flex-line-pack"+w(e,/align-content|flex-|-self/g,"")+e;case 5548:return l+e+u+w(e,"shrink","negative")+e;case 5292:return l+e+u+w(e,"basis","preferred-size")+e;case 6060:return l+"box-"+w(e,"-grow","")+l+e+u+w(e,"grow","positive")+e;case 4554:return l+w(e,/([^-])(transform)/g,"$1"+l+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,l+"$1"),/(image-set)/,l+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,l+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,l+"box-pack:$3"+u+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+l+e+e;case 4200:if(!b(e,/flex-|baseline/))return u+"grid-column-align"+R(e,t)+e;break;case 2592:case 3360:return u+w(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,b(e.props,/grid-\w+-end/)})?~E(e+(r=r[t].value),"span",0)?e:u+w(e,"-start","")+e+u+"grid-row-span:"+(~E(r,"span",0)?b(r,/\d+/):+b(r,/\d+/)-+b(e,/\d+/))+";":u+w(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return b(e.props,/grid-\w+-start/)})?e:u+w(w(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,l+"$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(P(e)-1-t>6)switch(S(e,t+1)){case 109:if(45!==S(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+l+"$2-$3$1"+c+(108==S(e,t+3)?"$3":"$2-$3"))+e;case 115:return~E(e,"stretch",0)?Q(w(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,i,o,a,s){return u+r+":"+n+s+(i?u+r+"-span:"+(o?a:+a-+n)+s:"")+e});case 4949:if(121===S(e,t+6))return w(e,":",":"+l)+e;break;case 6444:switch(S(e,45===S(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+l+(45===S(e,14)?"inline-":"")+"box$3$1"+l+"$2$3$1"+u+"$2box$3")+e;case 100:return w(e,":",":"+u)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=Q(e.value,e.length,r));case d:return K([F(e,{value:w(e.value,"@","@"+l)})],n);case p:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(b(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":N(F(e,{props:[w(t,/:(read-\w+)/,":-moz-$1")]})),N(F(e,{props:[t]})),v(e,{props:x(r,n)});break;case"::placeholder":N(F(e,{props:[w(t,/:(plac\w+)/,":"+l+"input-$1")]})),N(F(e,{props:[w(t,/:(plac\w+)/,":-moz-$1")]})),N(F(e,{props:[w(t,/:(plac\w+)/,u+"input-$1")]})),N(F(e,{props:[t]})),v(e,{props:x(r,n)})}return""})}}function te(e){return X(re("",null,null,null,[""],e=z(e),0,[0],e))}function re(e,t,r,n,i,o,a,s,u){for(var c=0,l=0,f=a,p=0,h=0,d=0,v=1,y=1,b=1,R=0,T="",x=i,O=o,I=n,A=T;y;)switch(d=R,R=B()){case 40:if(108!=d&&58==S(A,f-1)){-1!=E(A+=w(G(R),"&","&\f"),"&\f",g(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:A+=G(R);break;case 9:case 10:case 13:case 32:A+=H(d);break;case 92:A+=Y(M()-1,7);continue;case 47:switch(L()){case 42:case 47:k(ie(Z(B(),M()),t,r,u),u);break;default:A+="/"}break;case 123*v:s[c++]=P(A)*b;case 125*v:case 59:case 0:switch(R){case 0:case 125:y=0;case 59+l:-1==b&&(A=w(A,/\f/g,"")),h>0&&P(A)-f&&k(h>32?oe(A+";",n,r,f-1,u):oe(w(A," ","")+";",n,r,f-2,u),u);break;case 59:A+=";";default:if(k(I=ne(A,t,r,c,l,i,s,T,x=[],O=[],f,o),o),123===R)if(0===l)re(A,t,I,I,x,o,f,s,O);else switch(99===p&&110===S(A,3)?100:p){case 100:case 108:case 109:case 115:re(e,I,I,n&&k(ne(e,I,I,0,0,i,s,T,i,x=[],f,O),O),i,O,f,s,n?x:O);break;default:re(A,I,I,I,[""],O,0,s,O)}}c=l=h=0,v=b=1,T=A="",f=a;break;case 58:f=1+P(A),h=d;default:if(v<1)if(123==R)--v;else if(125==R&&0==v++&&125==U())continue;switch(A+=m(R),R*v){case 38:b=l>0?1:(A+="\f",-1);break;case 44:s[c++]=(P(A)-1)*b,b=1;break;case 64:45===L()&&(A+=G(B())),p=L(),l=f=P(T=A+=V(M())),R++;break;case 45:45===d&&2==P(A)&&(v=0)}}return o}function ne(e,t,r,n,i,o,a,s,u,c,l,f){for(var h=i-1,d=0===i?o:[""],m=T(d),v=0,b=0,E=0;v<n;++v)for(var S=0,P=R(e,h+1,h=g(b=a[v])),k=e;S<m;++S)(k=y(b>0?d[S]+" "+P:w(P,/&\f/g,d[S])))&&(u[E++]=k);return C(e,t,r,0===i?p:s,u,c,l,f)}function ie(e,t,r,n){return C(e,t,r,f,m(D),R(e,2,-2),0,n)}function oe(e,t,r,n,i){return C(e,t,r,h,R(e,0,n),R(e,n+1,-1),n,i)}var ae={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},se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ue="active",ce="data-styled-version",le="6.1.19",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"undefined"!=typeof document,he=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),de=(new Set,Object.freeze([])),ge=Object.freeze({});function me(e,t,r){return void 0===r&&(r=ge),e.theme!==r.theme&&e.theme||t||r.theme}var ve=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"]),ye=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function we(e){return e.replace(ye,"-").replace(be,"")}var Ee=/(a)(d)/gi,Se=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Se(t%52)+r;return(Se(t%52)+r).replace(Ee,"$1-$2")}var Pe,Te=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ke=function(e){return Te(5381,e)};function xe(e){return Re(ke(e)>>>0)}function Oe(e){return e.displayName||e.name||"Component"}function Ie(e){return"string"==typeof e&&!0}var Ae="function"==typeof Symbol&&Symbol.for,_e=Ae?Symbol.for("react.memo"):60115,De=Ae?Symbol.for("react.forward_ref"):60112,je={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ce={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ne=((Pe={})[De]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pe[_e]=Fe,Pe);function Ue(e){return("type"in(t=e)&&t.type.$$typeof)===_e?Fe:"$$typeof"in e?Ne[e.$$typeof]:je;var t}var Be=Object.defineProperty,Le=Object.getOwnPropertyNames,Me=Object.getOwnPropertySymbols,$e=Object.getOwnPropertyDescriptor,We=Object.getPrototypeOf,ze=Object.prototype;function Xe(e,t,r){if("string"!=typeof t){if(ze){var n=We(t);n&&n!==ze&&Xe(e,n,r)}var i=Le(t);Me&&(i=i.concat(Me(t)));for(var o=Ue(e),a=Ue(t),s=0;s<i.length;++s){var u=i[s];if(!(u in Ce||r&&r[u]||a&&u in a||o&&u in o)){var c=$e(t,u);try{Be(e,u,c)}catch(e){}}}}return e}function Ge(e){return"function"==typeof e}function He(e){return"object"==typeof e&&"styledComponentId"in e}function Ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qe(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Ze(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ve(e,t,r){if(void 0===r&&(r=!1),!r&&!Ze(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ve(e[n],t[n]);else if(Ze(t))for(var n in t)e[n]=Ve(e[n],t[n]);return e}function Ke(e,t){Object.defineProperty(e,"toString",{value:t})}function Je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return 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(", ")):""))}var Qe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw Je(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(fe);return t},e}(),et=new Map,tt=new Map,rt=1,nt=function(e){if(et.has(e))return et.get(e);for(;tt.has(rt);)rt++;var t=rt++;return et.set(e,t),tt.set(t,e),t},it=function(e,t){rt=t+1,et.set(e,t),tt.set(t,e)},ot="style[".concat(se,"][").concat(ce,'="').concat(le,'"]'),at=new RegExp("^".concat(se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),st=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},ut=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(fe),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var u=s.match(at);if(u){var c=0|parseInt(u[1],10),l=u[2];0!==c&&(it(l,c),st(e,l,u[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},ct=function(e){for(var t=document.querySelectorAll(ot),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(se)!==ue&&(ut(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function lt(){return r.nc}var ft=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(se,"]")));return t[t.length-1]}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(se,ue),n.setAttribute(ce,le);var a=lt();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},pt=function(){function e(e){this.element=ft(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}throw Je(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ht=function(){function e(e){this.element=ft(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),dt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),gt=pe,mt={isServer:!pe,useCSSOMInjection:!he},vt=function(){function e(e,t,r){void 0===e&&(e=ge),void 0===t&&(t={});var i=this;this.options=n(n({},mt),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&pe&&gt&&(gt=!1,ct(this)),Ke(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=function(r){var i=function(e){return tt.get(e)}(r);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(r);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(se,".g").concat(r,'[id="').concat(i,'"]'),u="";void 0!==o&&o.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),n+="".concat(a).concat(s,'{content:"').concat(u,'"}').concat(fe)},o=0;o<r;o++)i(o);return n}(i)})}return e.registerId=function(e){return nt(e)},e.prototype.rehydrate=function(){!this.server&&pe&&ct(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new dt(r):t?new pt(r):new ht(r)}(this.options),new Qe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(nt(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(nt(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),yt=/&/g,bt=/^\s*\/\/.*$/gm;function wt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=wt(e.children,t)),e})}function Et(e){var t,r,n,i=void 0===e?ge:e,o=i.options,a=void 0===o?ge:o,s=i.plugins,u=void 0===s?de:s,c=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},l=u.slice();l.push(function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(yt,r).replace(n,c))}),a.prefix&&l.push(ee),l.push(J);var f=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,r=i,n=new RegExp("\\".concat(r,"\\b"),"g");var u=e.replace(bt,""),c=te(o||i?"".concat(o," ").concat(i," { ").concat(u," }"):u);a.namespace&&(c=wt(c,a.namespace));var f,p,h,d=[];return K(c,(f=l.concat((h=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&h(e)})),p=T(f),function(e,t,r,n){for(var i="",o=0;o<p;o++)i+=f[o](e,t,r,n)||"";return i})),d};return f.hash=u.length?u.reduce(function(e,t){return t.name||Je(15),Te(e,t.name)},5381).toString():"",f}var St=new vt,Rt=Et(),Pt=o.default.createContext({shouldForwardProp:void 0,styleSheet:St,stylis:Rt}),Tt=(Pt.Consumer,o.default.createContext(void 0));function kt(){return(0,o.useContext)(Pt)}function xt(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=kt().styleSheet,a=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),u=(0,o.useMemo)(function(){return Et({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,o.useEffect)(function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var c=(0,o.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:u}},[e.shouldForwardProp,a,u]);return o.default.createElement(Pt.Provider,{value:c},o.default.createElement(Tt.Provider,{value:u},e.children))}var Ot=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Rt);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ke(this,function(){throw Je(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Rt),this.name+e.hash},e}(),It=function(e){return e>="A"&&e<="Z"};function At(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;It(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var _t=function(e){return null==e||!1===e||""===e},Dt=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!_t(a)&&(Array.isArray(a)&&a.isCss||Ge(a)?n.push("".concat(At(o),":"),a,";"):Ze(a)?n.push.apply(n,i(i(["".concat(o," {")],Dt(a),!1),["}"],!1)):n.push("".concat(At(o),": ").concat((t=o,null==(r=a)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ae||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function jt(e,t,r,n){return _t(e)?[]:He(e)?[".".concat(e.styledComponentId)]:Ge(e)?!Ge(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:jt(e(t),t,r,n):e instanceof Ot?r?(e.inject(r,n),[e.getName(n)]):[e]:Ze(e)?Dt(e):Array.isArray(e)?Array.prototype.concat.apply(de,e.map(function(e){return jt(e,t,r,n)})):[e.toString()];var i}function Ct(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ge(r)&&!He(r))return!1}return!0}var Ft=ke(le),Nt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ct(e),this.componentId=t,this.baseHash=Te(Ft,t),this.baseStyle=r,vt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Ye(n,this.staticRulesId);else{var i=qe(jt(this.rules,e,t,r)),o=Re(Te(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}n=Ye(n,o),this.staticRulesId=o}else{for(var s=Te(this.baseHash,r.hash),u="",c=0;c<this.rules.length;c++){var l=this.rules[c];if("string"==typeof l)u+=l;else if(l){var f=qe(jt(l,e,t,r));s=Te(s,f+c),u+=f}}if(u){var p=Re(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(u,".".concat(p),void 0,this.componentId)),n=Ye(n,p)}}return n},e}(),Ut=o.default.createContext(void 0);Ut.Consumer;var Bt={};new Set;function Lt(e,t,r){var i=He(e),a=e,s=!Ie(e),u=t.attrs,c=void 0===u?de:u,l=t.componentId,f=void 0===l?function(e,t){var r="string"!=typeof e?"sc":we(e);Bt[r]=(Bt[r]||0)+1;var n="".concat(r,"-").concat(xe(le+r+Bt[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,p=t.displayName,h=void 0===p?function(e){return Ie(e)?"styled.".concat(e):"Styled(".concat(Oe(e),")")}(e):p,d=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||f,g=i&&a.attrs?a.attrs.concat(c).filter(Boolean):c,m=t.shouldForwardProp;if(i&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;m=function(e,t){return v(e,t)&&y(e,t)}}else m=v}var b=new Nt(r,d,i?a.componentStyle:void 0);function w(e,t){return function(e,t,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,l=e.target,f=o.default.useContext(Ut),p=kt(),h=e.shouldForwardProp||p.shouldForwardProp,d=me(t,f,s)||ge,g=function(e,t,r){for(var i,o=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var s=Ge(i=e[a])?i(o):i;for(var u in s)o[u]="className"===u?Ye(o[u],s[u]):"style"===u?n(n({},o[u]),s[u]):s[u]}return t.className&&(o.className=Ye(o.className,t.className)),o}(i,t,d),m=g.as||l,v={};for(var y in g)void 0===g[y]||"$"===y[0]||"as"===y||"theme"===y&&g.theme===d||("forwardedAs"===y?v.as=g.forwardedAs:h&&!h(y,m)||(v[y]=g[y]));var b=function(e,t){var r=kt();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,g),w=Ye(u,c);return b&&(w+=" "+b),g.className&&(w+=" "+g.className),v[Ie(m)&&!ve.has(m)?"class":"className"]=w,r&&(v.ref=r),(0,o.createElement)(m,v)}(E,e,t)}w.displayName=h;var E=o.default.forwardRef(w);return E.attrs=g,E.componentStyle=b,E.displayName=h,E.shouldForwardProp=m,E.foldedComponentIds=i?Ye(a.foldedComponentIds,a.styledComponentId):"",E.styledComponentId=d,E.target=i?a.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++)Ve(e,i[n],!0);return e}({},a.defaultProps,e):e}}),Ke(E,function(){return".".concat(E.styledComponentId)}),s&&Xe(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function Mt(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var $t=function(e){return Object.assign(e,{isCss:!0})};function Wt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ge(e)||Ze(e))return $t(jt(Mt(de,i([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?jt(n):$t(jt(Mt(n,t)))}function zt(e,t,r){if(void 0===r&&(r=ge),!t)throw Je(1,t);var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,r,Wt.apply(void 0,i([n],o,!1)))};return o.attrs=function(i){return zt(e,t,n(n({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return zt(e,t,n(n({},r),i))},o}var Xt=function(e){return zt(Lt,e)},Gt=Xt;ve.forEach(function(e){Gt[e]=Xt(e)});!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ct(e),vt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var i=n(qe(jt(this.rules,t,r,n)),""),o=this.componentId+e;r.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&vt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=lt(),n=qe([r&&'nonce="'.concat(r,'"'),"".concat(se,'="true"'),"".concat(ce,'="').concat(le,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Je(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Je(2);var r=e.instance.toString();if(!r)return[];var i=((t={})[se]="",t[ce]=le,t.dangerouslySetInnerHTML={__html:r},t),a=lt();return a&&(i.nonce=a),[o.default.createElement("style",n({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new vt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Je(2);return o.default.createElement(xt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Je(3)}})(),"__sc-".concat(se,"__")},362:(e,r,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({isArray:()=>t.isArray,isBoolean:()=>t.isBoolean,isBusinessEmptyString:()=>t.isBusinessEmptyString,isEmptyArray:()=>t.isEmptyArray,isFalse:()=>t.isFalse,isNull:()=>t.isNull,isString:()=>t.isString,isUndefined:()=>t.isUndefined,isZero:()=>t.isZero})},502:(e,t,n)=>{n.d(t,{n:()=>nt});var i=n(649),o=n(362);function a(e,t,r,n){function i(e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error("compile error: "+r.getShaderInfoLog(n));return n}var a,s={id:r.createProgram(),uniforms:{},locations:{}};if(r.attachShader(s.id,i(r.VERTEX_SHADER,e)),r.attachShader(s.id,i(r.FRAGMENT_SHADER,t)),r.linkProgram(s.id),!r.getProgramParameter(s.id,r.LINK_STATUS))throw new Error("link error: "+r.getProgramInfoLog(s.id));r.useProgram(s.id),r.enableVertexAttribArray(0);for(var u=e+t,c=/uniform (\w+) (\w+)/g;!(0,o.isNull)(a=c.exec(u));){var l=a[2];s.locations[l]=r.getUniformLocation(s.id,l)}return s}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.gl;r.activeTexture(r.TEXTURE0+(t||0)),r.bindTexture(r.TEXTURE_2D,e)}function u(e){return"rgba(0, 0, 0, 0)"===e||"#ffffffff"===e||"transport"===e}function c(e){return"none"===e||""===e}function l(){var e=this,t=function(){return e.initState=!1,null};if(!this.gl)return t();var r=this.gl,n=Object.fromEntries(["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear"].reduce(function(e,t){var n=r.getExtension(t);return n&&e.push([t,n]),e},[]));if(!n.OES_texture_float)return t();var i=[];function o(e,t,r){var i="OES_texture_"+e,o=i+"_linear",a=o in n;return{type:t,linearSupport:a,arrayType:r,extensions:a?[i,o]:[i]}}i.push(o("float",r.FLOAT,Float32Array)),n.OES_texture_half_float&&i.push(o("half_float",n.OES_texture_half_float.HALF_FLOAT_OES,null));var a=r.createTexture(),s=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,s),r.bindTexture(r.TEXTURE_2D,a),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);for(var u=null,c=0;c<i.length;c++)if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,32,32,0,r.RGBA,i[c].type,null),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE){u=i[c];break}return u}function f(e){"@babel/helpers - typeof";return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function h(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var m=h(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"canvas",void 0),d(this,"gl",void 0),d(this,"config",void 0),d(this,"initState",!0),this.canvas=t;var r=t.getContext("webgl");if((0,o.isNull)(r))return this.initState=!1,void(this.config=null);this.gl=r,this.config=Reflect.apply(l,this,[])}),v=n(161),y={imgUrl:null,resolution:360,dropRadius:12,perturbance:.01,interactive:!0,crossOrigin:"no-cors",playingState:!0,accelerating:1,raindropsTimeInterval:3600,idleFluctuations:!0,darkMode:void 0};function b(e){"@babel/helpers - typeof";return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function E(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}Object.freeze(y);var S;new(function(){return function(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(){};return Object.setPrototypeOf(t,this),Object.defineProperties(t,{info:{value:function(){},configurable:!1,writable:!1},warn:{value:function(){},configurable:!1,writable:!1},error:{value:function(){},configurable:!1,writable:!1},type:{value:!1,configurable:!1,writable:!1}}),t},[{key:"clear",value:function(){}}])}())({name:"earthnut",type:!1});function R(e){"@babel/helpers - typeof";return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function T(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}function k(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function x(e,t,r){return e.set(I(e,t),r),r}function O(e,t){return e.get(I(e,t))}function I(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function A(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={list:[],diameter:48,radius:0,cells:0};r.diameter%2!=0&&r.diameter++;var n=r.diameter,i=r.list,o=n/2;r.radius=o,r.cells=Math.pow(n,2);for(var a=0;a<n;a++){i[a]=[];for(var s=0;s<n;s++)i[a][s]=[0,0,0,0]}for(var u=0;u<=o;u++)for(var c=function(){var e=i[u][l],r=Math.ceil(Math.sqrt(Math.pow(u,2)+Math.pow(l,2)))<=o,n=t?10:255,a=t?25:190,s=r?t?160:120:t?160:180,c=r?t?230:160:t?250:240,f=function(){return(0,v.getRandomInt)(n,a)};e[0]=f(),e[1]=f(),e[2]=f(),e[3]=(0,v.getRandomInt)(s,c)},l=u;l<=o;l++)c();for(var f=0;f<=o;f++)for(var p=0;p<=f;p++)i[f][p]=i[p][f];for(var h=o;h<n;h++)for(var d=0;d<=o;d++)i[h][d]=i[n-h][d];for(var g=0;g<o;g++)for(var m=o;m<n;m++)i[g][m]=i[g][n-m];for(var y=o;y<n;y++)for(var b=o;b<n;b++)i[y][b]=i[y][n-b];var w=e%n;return r.list=[].concat(A(i.slice(w)),A(i.slice(0,w))),r},j=new(S=new WeakMap,function(){return function(e,t,r){return t&&P(e.prototype,t),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),k(this,S,1),function(e,t,r){(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"data",D())},[{key:"build",value:function(e){O(S,this)>100&&x(S,this,0),this.data=D(x(S,this,O(S,this)+4),e)}}])}());function C(e,t){var r=document.createElement("canvas"),n=document.createElement("canvas"),i=r.getContext("2d"),a=n.getContext("2d");return(0,o.isNull)(i)||(0,o.isNull)(a)?r:(r.width=n.width=e||1,r.height=n.height=t||1,i.clearRect(0,0,e,t),a.clearRect(0,0,e,t),i.globalAlpha=1,i.putImageData(function(e,t){Date.now();for(var r=new ImageData(e||1,t||1),n=r.data,i=j.data,o=i.diameter,a=i.list,s=e*o,u=0;u<n.length;u+=4){var c=u/4%s,l=c%e%o,f=Math.floor(c/e),p=a[l][f];n[u]=p[0],n[u+1]=p[1],n[u+2]=p[2],n[u+3]=p[3]}return r}(e,t),0,0),a.fillStyle="#ffffff",a.fillRect(0,0,e,t),a.drawImage(r,0,0,e||1,t||1),a.globalCompositeOperation="source-over",n)}function F(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=this.fadeData,n=this.options,i=r.backgroundInfo,o=r.toBeList,a=i.width,s=i.height,u=(0,v.getRandomString)({length:8,includeNumbers:!0,includeUppercaseLetters:!0});j.build(null!==(e=n.darkMode)&&void 0!==e?e:r.isDark),o.push({resource:C(a,s),width:a,height:s,kind:"default",tag:u}),t&&r.run()}function N(){var e=this.renderData,t=this.fadeData,r=this.options;if((0,o.isNull)(e))return Reflect.apply(F,this,[]);var n=e.originStyle;if(u(n.backgroundColor)&&(!(0,o.isArray)(r.imgUrl)||1!==r.imgUrl.length))return Reflect.apply(F,this,[]);var i=document.createElement("canvas"),a=i.getContext("2d");if((0,o.isNull)(a))return Reflect.apply(F,this,[]);var s=t.backgroundInfo,c=s.width,l=s.height;i.width=c,i.height=l,a.clearRect(0,0,c,l);var f=(0,o.isArray)(r.imgUrl)&&1===r.imgUrl.length&&r.imgUrl[0]||n.backgroundColor;a.beginPath(),a.fillStyle=f,a.fillRect(0,0,c,l),a.fill(),t.isTransitioning&&!(0,o.isEmptyArray)(t.toBeList)?t.toBeList=[t.toBeList[0]]:t.toBeList=[];var p={resource:i,kind:"background-color",tag:f,width:c,height:l};t.toBeList.push(p),t.run()}function U(){var e=this.fadeData,t=this.renderData,r=this.options;if((0,o.isNull)(t))return Reflect.apply(N,this,[]);var n=t.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,o.isArray)(r.imgUrl))return Reflect.apply(N,this,[]);var i=(0,o.isArray)(r.imgUrl)&&r.imgUrl.length>1&&r.imgUrl||n.backgroundImage.replace(/^.*linear-gradient\((.*)\).*$/,"$1").split("),").map(function(e){return(e=e.trim()).endsWith(")")||(e+=")"),e}).filter(function(e){return e.startsWith("rgb")||e.startsWith("#")});if(i.length<2)return Reflect.apply(N,this,[]);var a=document.createElement("canvas"),s=a.getContext("2d");if((0,o.isNull)(s))return Reflect.apply(N,this,[]);var u=e.backgroundInfo,c=u.width,l=u.height;a.width=c,a.height=l,s.fillStyle="#fff",s.fillRect(0,0,c,l);var f=s.createLinearGradient(0,0,0,l);i.forEach(function(e,t){return f.addColorStop(t/(i.length-1),e)}),s.fillStyle=f,s.fillRect(0,0,c,l),e.isTransitioning&&!(0,o.isEmptyArray)(e.toBeList)?e.toBeList=[e.toBeList[0]]:e.toBeList=[],e.toBeList.push({resource:a,kind:"linear-gradient",tag:i.join("_"),width:c,height:l}),e.run()}function B(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function M(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if((0,o.isNull)(t))Reflect.apply(U,this,[]);else{var i,a,s=t.lastUseStyle,u=n.backgroundInfo,c=u.width,l=u.height,f=(0,o.isString)(r.imgUrl)&&r.imgUrl||(i=s.backgroundImage,a=/url\(["']?([^"']*)["']?\)/.exec(i),(0,o.isNull)(a)?null:a[1]);if(t.imageSource=f,f){var p=function(e,t,r){var n=new Image(t,r);return n.width=t,n.height=r,n.src=e,n}(f,c,l);p.onload=function(){clearTimeout(n.transparentId),n.isTransitioning&&!(0,o.isEmptyArray)(n.toBeList)?n.toBeList=[n.toBeList[0]].concat(B(n.toBeList.slice(1).filter(function(e){return"image"===e.kind&&(Math.abs(e.width-c)>2||Math.abs(e.height-l)>2||e.tag!==f)}))):n.toBeList=[],n.toBeList.push({resource:p,width:c,height:l,kind:"image",tag:f}),n.run()},p.onerror=function(){Reflect.apply(U,e,[])},p.crossOrigin=r.crossOrigin}else Reflect.apply(U,this,[])}}function $(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement;t&&[["background-image","none"],["background-color","transparent"]].forEach(function(e){return t.style.setProperty(e[0],e[1],"important")})}}function W(e){var t=window.getComputedStyle(e),r=e.style;return{inlineBackground:r.background,inlineBackgroundColor:r.backgroundColor,inlineBackgroundImage:r.backgroundImage,backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage,backgroundSize:t.backgroundSize,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundClip:t.backgroundClip,backgroundOrigin:t.backgroundOrigin,backgroundAttachment:t.backgroundAttachment,position:t.position,width:parseInt(t.width),height:parseInt(t.height)}}function z(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement,r=e.originStyle;t.style.setProperty("background-image",r.inlineBackgroundImage),t.style.setProperty("background-color",r.inlineBackgroundColor)}}function X(e){"@babel/helpers - typeof";return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function G(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y(n.key),n)}}function H(e,t,r){return(t=Y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=X(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}var q=function(){return function(e,t,r){return t&&G(e.prototype,t),r&&G(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){var i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),H(this,"quad",null),H(this,"lastRaindropsFallTime",0),H(this,"parentElement",void 0),H(this,"mutationObserver",void 0),H(this,"resizeObserver",void 0),H(this,"renderProgram",void 0),H(this,"imageSource",""),H(this,"dropProgram",void 0),H(this,"updateProgram",void 0),H(this,"textures",[]),H(this,"backgroundTexture",[]),H(this,"textureDelta",void 0),H(this,"framebuffers",[]),H(this,"bufferWriteIndex",0),H(this,"bufferReadIndex",1),H(this,"originStyle",void 0),H(this,"lastUseStyle",void 0),H(this,"events",{}),H(this,"animationFrameId",0),this.parentElement=null!==(i=t.parentElement)&&void 0!==i?i:document.body,Reflect.apply($,n,[]),this.originStyle=this.lastUseStyle=W(this.parentElement),this.mutationObserver=new MutationObserver(function(e){e.forEach(function(e){if(e.target===a.parentElement&&"attributes"===e.type&&n.options.visible){var t=Object.values(a.lastUseStyle),i=W(a.parentElement),s=Object.values(i);if((0,o.isEmptyArray)(v.enArr.difference(t,s)))return;var l=c(i.backgroundImage),f=u(i.backgroundColor);if(l&&f)return;a.lastUseStyle=i,Reflect.apply(r,n,[]),Reflect.apply($,n,[])}})}),this.mutationObserver.observe(this.parentElement,{subtree:!0,attributes:!0,attributeFilter:["class","style"]}),this.resizeObserver=new ResizeObserver(function(e){e.forEach(function(e){e.target===a.parentElement&&Reflect.apply(r,n,[])})}),this.resizeObserver.observe(this.parentElement)},[{key:"destroy",value:function(){if(this.animationFrameId&&window.cancelAnimationFrame(this.animationFrameId),Reflect.apply(z,{renderData:this},[]),this.parentElement&&this.events){var e,t,r,n=this.parentElement,i=this.events;Object.keys(i).forEach(function(e){return n.removeEventListener&&n.removeEventListener(e,i[e])}),n.removeAttribute&&n.removeAttribute("data-ripples"),null===(e=this.mutationObserver)||void 0===e||e.takeRecords(),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),this.mutationObserver=null,null===(r=this.resizeObserver)||void 0===r||r.disconnect(),this.resizeObserver=null}}}])}();function Z(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r,n,i,a=e.parentElement,s=window.getComputedStyle(a),u=s.backgroundSize,c=s.backgroundAttachment,l=s.backgroundPosition,f=/\s+/.test(r=l)?r.replace(/center/,"50%").replace(/top|left/,"0%").replace(/bottom/,"100%").replace(/\s+/," ").split(" "):V(r)?[r,"50%"]:{center:["50%","50%"],top:["50%","0%"],bottom:["50%","100%"],left:["0%","50%"],right:["100%","50%"]}[r],p={left:0,top:0,width:0,height:0};"fixed"===c?(p.height=window.innerHeight,p.left=window.screenX,p.top=window.screenY,p.width=window.innerWidth):(p.left=0,p.top=0,p.width=a.scrollWidth,p.height=a.scrollHeight);var h=t.backgroundInfo||{width:100,height:100},d=h.width,g=h.height;if("cover"===u){var m=Math.max(p.width/d,p.height/g);n=d*m,i=g*m}else if("contain"===u){var v=Math.min(p.width/d,p.height/g);n=d*v,i=g*v}else{var y=u.split(" ");n=y[0]||"",i=y[1]||n,V(n)?n=p.width*parseFloat(n)/100:"auto"!==n&&(n=parseFloat(n)),V(i)?i=p.height*parseFloat(i)/100:"auto"!==i&&(i=parseFloat(i)),"auto"===n&&"auto"===i?(n=d,i=g):("auto"===n&&(n=d*(Number(i)/g)),"auto"===i&&(i=g*(Number(n)/d)))}var b=f&&f[0]||"0%",w=f&&f[1]||"0%";b=V(b)?(p.left+(p.width-Number(n))*parseFloat(b)/100).toString():(p.left+parseFloat(b)).toString(),w=V(w)?(p.top+(p.height-Number(i))*parseFloat(w)/100).toString():(p.top+parseFloat(w)).toString(),e.renderProgram.uniforms.topLeft=new Float32Array([-Number(b)/n,-Number(w)/i]),e.renderProgram.uniforms.bottomRight=new Float32Array([e.renderProgram.uniforms.topLeft[0]+a.clientWidth/n,e.renderProgram.uniforms.topLeft[1]+a.clientHeight/i]);var E=Math.max(this.canvas.width,this.canvas.height);e.renderProgram.uniforms.containerRatio=new Float32Array([this.canvas.width/E,this.canvas.height/E])}}function V(e){return e.endsWith("%")}function K(){var e=this.gl,t=this.renderData;(0,o.isNull)(t)||(e.bindBuffer(e.ARRAY_BUFFER,t.quad),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLE_FAN,0,4))}function J(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.textures,i=t.backgroundTexture,a=r.perturbance;e.bindFramebuffer(e.FRAMEBUFFER,null),e.viewport(0,0,this.canvas.width,this.canvas.height),e.enable(e.BLEND),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.useProgram(t.renderProgram.id),Reflect.apply(s,this,[i,0]),Reflect.apply(s,this,[n[0],1]),e.uniform1f(t.renderProgram.locations.perturbance,a),e.uniform2fv(t.renderProgram.locations.topLeft,t.renderProgram.uniforms.topLeft),e.uniform2fv(t.renderProgram.locations.bottomRight,t.renderProgram.uniforms.bottomRight),e.uniform2fv(t.renderProgram.locations.containerRatio,t.renderProgram.uniforms.containerRatio),e.uniform1i(t.renderProgram.locations.samplerBackground,0),e.uniform1i(t.renderProgram.locations.samplerRipples,1),Reflect.apply(K,this,[]),e.disable(e.BLEND)}}function Q(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.bufferWriteIndex,r=e.bufferReadIndex;e.bufferWriteIndex=1-t,e.bufferReadIndex=1-r}}function ee(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.updateProgram,i=t.textures,a=t.framebuffers,u=t.bufferWriteIndex,c=t.bufferReadIndex,l=r.resolution;e.viewport(0,0,l,l),e.bindFramebuffer(e.FRAMEBUFFER,a[u]),Reflect.apply(s,this,[i[c]]),e.useProgram(n.id),Reflect.apply(K,this,[]),Reflect.apply(Q,this,[])}}function te(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)){var i=t.parentElement,a=n.isTransitioning,s=r.running,u=r.idleFluctuations,c=r.lastRunningState,l=getComputedStyle(i);n.backgroundInfo={width:parseInt(l.width),height:parseInt(l.height)},Reflect.apply(Z,this,[]),s?(c||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),a&&this.fade(),Reflect.apply(ee,this,[]),Reflect.apply(J,this,[])):c&&(r.lastRunningState=!1,this.hide()),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(te,e,[])})}}function re(e,t,r){var n=this.renderData;if(!(0,o.isNull)(n)){var i=n.parentElement,a=window.getComputedStyle(i),s=parseInt(a.borderLeftWidth)||0,u=parseInt(a.borderTopWidth)||0,c=i.getBoundingClientRect(),l=e.clientX-c.left-s,f=e.clientY-c.top-u;this.drop(l,f,t,r)}}function ne(){var e=this,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.parentElement,i=t.events,a=function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.visible&&r.running&&r.interactive&&(t.lastRaindropsFallTime=Date.now(),Reflect.apply(re,e,[n,r.dropRadius*(i?1.5:1),i?.03:.01]))};i.mousemove=function(e){for(var t=r.accelerating;t--;)a(e)},i.touchmove=i.touchstart=function(e){for(var t=e.touches,r=0;r<t.length;r++)a(t[r])},i.mousedown=function(e){return a(e,!0)},Object.keys(i).forEach(function(e){return null==n?void 0:n.addEventListener(e,i[e],{passive:!0})})}}var ie="\n attribute vec2 vertex;\n varying vec2 coord;\n void main() {\n coord = vertex * 0.5 + 0.5;\n gl_Position = vec4(vertex, 0.0, 1.0);\n }";function oe(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.textureDelta;t.dropProgram=a(ie,"precision highp float;\n\n const float PI = 3.141592653589793;\n uniform sampler2D texture;\n uniform vec2 center;\n uniform float radius;\n uniform float strength;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n\n float drop = max(0.0, 1.0 - length(center * 0.5 + 0.5 - coord) / radius);\n drop = 0.5 - cos(drop * PI) * 0.5;\n info.r += drop * strength;\n gl_FragColor = info;\n }",e);var n=t.updateProgram=a(ie,"\n precision highp float;\n\n uniform sampler2D texture;\n uniform vec2 delta;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n \n vec2 dx = vec2(delta.x, 0.0);\n vec2 dy = vec2(0.0, delta.y);\n \n float average = (\n texture2D(texture, coord - dx).r +\n texture2D(texture, coord - dy).r +\n texture2D(texture, coord + dx).r +\n texture2D(texture, coord + dy).r\n ) * 0.25;\n \n info.g += (average - info.r) * 2.0;\n info.g *= 0.995;\n info.r += info.g;\n \n gl_FragColor = info;\n }\n ",this.gl);e.uniform2fv(n.locations.delta,r),t.renderProgram=a("\n precision highp float;\n\n attribute vec2 vertex;\n uniform vec2 topLeft;\n uniform vec2 bottomRight;\n uniform vec2 containerRatio;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n void main() {\n backgroundCoord = mix(topLeft, bottomRight, vertex * 0.5 + 0.5);\n backgroundCoord.y = 1.0 - backgroundCoord.y;\n ripplesCoord = vec2(vertex.x, -vertex.y) * containerRatio * 0.5 + 0.5;\n gl_Position = vec4(vertex.x, -vertex.y, 0.0, 1.0);\n }\n ","\n precision highp float;\n\n uniform sampler2D samplerBackground;\n uniform sampler2D samplerRipples;\n uniform vec2 delta;\n\n uniform float perturbance;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n\n void main() {\n float height = texture2D(samplerRipples, ripplesCoord).r;\n float heightX = texture2D(samplerRipples, vec2(ripplesCoord.x + delta.x, ripplesCoord.y)).r;\n float heightY = texture2D(samplerRipples, vec2(ripplesCoord.x, ripplesCoord.y + delta.y)).r;\n vec3 dx = vec3(delta.x, heightX - height, 0.0);\n vec3 dy = vec3(0.0, heightY - height, delta.y);\n vec2 offset = -normalize(cross(dy, dx)).xz;\n float specular = pow(max(0.0, dot(offset, normalize(vec2(-0.6, 1.0)))), 4.0);\n gl_FragColor = texture2D(samplerBackground, backgroundCoord + offset * perturbance) + specular;\n }",e),e.uniform2fv(t.renderProgram.locations.delta,r)}}function ae(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.backgroundTexture=e.createTexture();e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,1),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)}}function se(e){var t=this.gl,r=this.renderData,n=this.fadeData;if(!(0,o.isNull)(r)){var i=r.backgroundTexture,a=r.parentElement,s=n.backgroundInfo,u=s.width,c=s.height,l=function(e){return(0,o.isZero)(e&e-1)},f=l(u)&&l(c)?t.REPEAT:t.CLAMP_TO_EDGE;t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,f),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,f),a.dataset.render_img=e.tag,a.dataset.render_width=e.width+"px",a.dataset.render_height=e.height+"px",t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e.resource)}}function ue(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)&&this.config){var i=t.textures,a=t.framebuffers,s=r.resolution,u=this.gl,c=1/s;t.textureDelta=new Float32Array([c,c]),this.config.extensions.forEach(function(e){return u.getExtension(e)});for(var l=this.config.arrayType,f=l?new l(s*s*4):null,p=this.config,h=0;h<2;h++){var d=u.createTexture(),g=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,g),u.bindTexture(u.TEXTURE_2D,d),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,s,s,0,u.RGBA,p.type,f),u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,d,0),i.push(d),a.push(g)}t.quad=u.createBuffer(),u.bindBuffer(u.ARRAY_BUFFER,t.quad),u.bufferData(u.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,-1,1]),u.STATIC_DRAW),Reflect.apply(oe,this,[]),Reflect.apply(ae,this,[]),Reflect.apply(M,this,[]),u.clearColor(0,0,0,0),u.blendFunc(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA),r.visible=!0,r.running=!0,Reflect.apply(ne,this,[]),Reflect.apply(se,this,[n.lastDrawImage]),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(te,e,[])})}}function ce(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r=e.parentElement,n=t.backgroundInfo,i=r.offsetWidth,a=r.offsetHeight;this.canvas.width=n.width=i,this.canvas.height=n.height=a,Reflect.apply(M,this,[])}}function le(){var e=this.renderData,t=this.fadeData;(0,o.isNull)(e)||(e.destroy(),Object.keys(e).forEach(function(t){return e[t]=null}),this.renderData=null),t.destroy(),Object.keys(t).forEach(function(e){return t[e]=null}),this.fadeData=null,this.gl&&(this.gl=null)}function fe(e,t,r,n){var i=this.renderData,a=this.options,u=this.gl;if(!(0,o.isNull)(i)){var c=i.parentElement,l=i.dropProgram,f=i.textures,p=i.framebuffers,h=i.bufferWriteIndex,d=i.bufferReadIndex,g=a.resolution,m=c.offsetWidth,v=c.offsetHeight,y=Math.max(m,v);r/=y;var b=new Float32Array([(2*e-m)/y,(v-2*t)/y]);u.viewport(0,0,g,g),u.bindFramebuffer(u.FRAMEBUFFER,p[h]),Reflect.apply(s,this,[f[d]]),u.useProgram(l.id),u.uniform2fv(l.locations.center,b),u.uniform1f(l.locations.radius,r),u.uniform1f(l.locations.strength,n),Reflect.apply(K,this,[]),Reflect.apply(Q,this,[])}}function pe(e){"@babel/helpers - typeof";return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function he(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ge(n.key),n)}}function de(e,t,r){return(t=ge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ge(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:t+""}function me(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function ve(e,t){return e.get(be(e,t))}function ye(e,t,r){return e.set(be(e,t),r),r}function be(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var we=new WeakMap,Ee=new WeakMap,Se=new WeakMap,Re=new WeakMap,Pe=new WeakMap,Te=new WeakMap,ke=new WeakMap,xe=new WeakMap,Oe=function(){return function(e,t,r){return t&&he(e.prototype,t),r&&he(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),me(this,we,y.accelerating),me(this,Ee,y.interactive),me(this,Se,y.resolution),me(this,Re,y.perturbance),me(this,Pe,y.dropRadius),de(this,"imgUrl",y.imgUrl),me(this,Te,y.idleFluctuations),me(this,ke,y.raindropsTimeInterval),de(this,"crossOrigin","no-cors"),de(this,"visible",!1),de(this,"running",!1),me(this,xe,void 0),de(this,"lastRunningState",!1),this.perturbance=t.perturbance,this.resolution=t.resolution,this.raindropsTimeInterval=t.raindropsTimeInterval,this.accelerating=t.accelerating,this.interactive=t.interactive,this.dropRadius=t.dropRadius,this.imgUrl=t.imgUrl,this.idleFluctuations=t.idleFluctuations,this.running=Boolean(null===(r=t.playingState)||void 0===r||r),this.crossOrigin=t.crossOrigin,this.darkMode=t.darkMode},[{key:"accelerating",get:function(){return ve(we,this)},set:function(e){e>100||e<2||ye(we,this,e)}},{key:"interactive",get:function(){return ve(Ee,this)},set:function(e){(0,o.isBoolean)(e)&&ye(Ee,this,e)}},{key:"resolution",get:function(){return ve(Se,this)},set:function(e){e<100||e>550||ye(Se,this,e)}},{key:"perturbance",get:function(){return ve(Re,this)},set:function(e){e<1e-4||e>1||ye(Re,this,e)}},{key:"dropRadius",get:function(){return ve(Pe,this)},set:function(e){!isFinite(e)||e<10||ye(Pe,this,e)}},{key:"idleFluctuations",get:function(){return ve(Te,this)},set:function(e){(0,o.isBoolean)(e)&&ye(Te,this,e)}},{key:"raindropsTimeInterval",get:function(){return ve(ke,this)},set:function(e){e<10||e>12e3||ye(ke,this,e)}},{key:"playingState",get:function(){return this.running},set:function(e){this.running=Boolean(null==e||e)}},{key:"darkMode",get:function(){return ve(xe,this)},set:function(e){ye(xe,this,(0,o.isUndefined)(e)?void 0:Boolean(e))}}])}();function Ie(){var e=this,t=this.options,r=this.fadeData;r.transparentId=setTimeout(function(){if(clearTimeout(r.transparentId),r.isTransitioning)return Reflect.apply(Ie,e,[]);"image"!==r.lastDrawImage.kind&&r.run()},2*t.raindropsTimeInterval)}function Ae(){var e=this.renderData,t=this.fadeData,r=this.options,n=t.toBeList;if((0,o.isNull)(e))return Reflect.apply(_e,this,["还没有准备好,即将退出"]);if((0,o.isEmptyArray)(n))return Reflect.apply(_e,this,["由于缺少当前渲染的背景,退出"]);if(0===t.drawProgress&&n.forEach(function(e){}),t.drawProgress>1e3){if(t.lastDrawImage=n.shift(),Reflect.apply(se,this,[t.lastDrawImage]),(0,o.isEmptyArray)(n)){var i=e.lastUseStyle;((0,o.isNull)(r.imgUrl)||(0,o.isBusinessEmptyString)(r.imgUrl)||(0,o.isZero)(r.imgUrl.length))&&u(i.backgroundColor)&&c(i.backgroundImage)&&Reflect.apply(F,this,[!1])}return Reflect.apply(_e,this,["当前执行完毕,开启下次执行"])}var a=t.lastDrawImage,s=t.backgroundInfo;t.drawProgress+=18;var l=document.createElement("canvas"),f=l.getContext("2d");if((0,o.isNull)(f)||(0,o.isNull)(a.resource)||(0,o.isEmptyArray)(n))return Reflect.apply(_e,this,"环境值错误");var p=s.width,h=s.height;l.width=p,l.height=h,f.clearRect(0,0,p,h),f.drawImage(a.resource,0,0,p,h),f.globalAlpha=t.drawProgress/1e3,f.drawImage(n[0].resource,0,0,p,h),f.globalAlpha=1;var d={resource:l,width:p,height:h,kind:"mix",tag:"".concat(a.tag," >> ").concat(n[0].tag)};Reflect.apply(se,this,[d]),n.length>1&&(t.lastDrawImage=d,n.shift(),t.drawProgress=0)}function _e(e){this.fadeData.isTransitioning=!1,Reflect.apply(Ie,this,[])}function De(e){"@babel/helpers - typeof";return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ne(n.key),n)}}function Ce(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fe(e,t,r){return(t=Ne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ne(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==De(t)?t:t+""}function Ue(e,t){return e.get(Be(e,t))}function Be(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var Le=new WeakMap,Me=new WeakSet,$e=function(){return function(e,t,r){return t&&je(e.prototype,t),r&&je(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){Ce(e,t),t.add(e)}(this,Me),Fe(this,"backgroundInfo",{width:0,height:0}),Fe(this,"transparentId",setTimeout(Boolean)),Fe(this,"lastDrawImage",void 0),Fe(this,"toBeList",[]),Fe(this,"drawProgress",0),Fe(this,"isTransitioning",!1),function(e,t,r){Ce(e,t),t.set(e,r)}(this,Le,void 0),Fe(this,"isDark",!1);var r,n,i=t.renderData;if((0,o.isNull)(i))r=10,n=10;else{var a=getComputedStyle(i.parentElement);r=parseInt(a.width),n=parseInt(a.height)}this.backgroundInfo={width:r,height:n},this.lastDrawImage={resource:C(r,n),width:r,height:n,kind:"default",tag:""},s=Le,u=this,c=window.matchMedia("(prefers-color-scheme: dark)"),s.set(Be(s,u),c),this.isDark=Ue(Le,this).matches,Ue(Le,this).addEventListener("change",Be(Me,this,We));var s,u,c,l=this;Object.defineProperty(Ue(Le,this),"isDark",{get:function(){return l.isDark},set:function(e){l.isDark=e,l.toBeList.every(function(e){return"default"===e.kind})&&"default"===l.lastDrawImage.kind&&Reflect.apply(F,t,[!0])}})},[{key:"run",value:function(){this.isTransitioning||(this.drawProgress=0,this.isTransitioning=!0)}},{key:"destroy",value:function(){this.transparentId&&clearTimeout(this.transparentId),Ue(Le,this).removeEventListener("change",Be(Me,this,We))}}])}();function We(e){this.isDark=e.matches}function ze(e){"@babel/helpers - typeof";return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach(function(t){Je(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function He(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qe(n.key),n)}}function Ye(e,t,r){return t=Ze(t),function(e,t){if(t&&("object"==ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qe()?Reflect.construct(t,r||[],Ze(e).constructor):t.apply(e,r))}function qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qe=function(){return!!e})()}function Ze(e){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ze(e)}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function Ke(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function Je(e,t,r){return(t=Qe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qe(e){var t=function(e,t){if("object"!=ze(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ze(t)?t:t+""}function et(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var tt=new WeakMap,rt=function(e){function t(e,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Je(i=Ye(this,t,[e]),"renderData",null),Je(i,"options",void 0),Je(i,"fadeData",void 0),Je(i,"defaults",y),Je(i,"initialized",!1),Ke(i,tt,(0,v.debounce)(ce,{this:i})),Object.defineProperties(i,{defaults:{value:i.defaults,writable:!1,enumerable:!1,configurable:!1}}),i.options=new Oe(Ge(Ge({},i.defaults),n)),i.renderData=new q(e,i.reloadBackground,i),i.fadeData=new $e(i),(0,o.isFalse)(i.initState)||(0,o.isNull)(e.parentElement)||(0,o.isNull)(i.config)||(0,o.isNull)(i.gl)?i.initState=!1:(!function(e){var t=e.parentElement;e.width=t.clientWidth,e.height=t.clientHeight,r(e,{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1,pointerEvents:"none"})}(e),Reflect.apply(ue,i,[])),window.matchMedia("(prefers-color-scheme: dark)"),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(t,e),function(e,t,r){return t&&He(e.prototype,t),r&&He(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"raindropsFall",value:function(){var e=this.renderData,t=this.options,r=this.fadeData;if(!(0,o.isNull)(e)){var n=r.backgroundInfo,i=e.lastRaindropsFallTime,a=t.raindropsTimeInterval,s=t.dropRadius,u=Date.now();if(!(u-i<a)){e.lastRaindropsFallTime=u;var c=function(e){return(0,v.getRandomInt)(e)},l=n.width,f=n.height;this.drop(c(l),c(f),s,.03)}}}},{key:"drop",value:function(e,t,r,n){Reflect.apply(fe,this,[e,t,r,n])}},{key:"fade",value:function(){Reflect.apply(Ae,this,[])}},{key:"reloadBackground",value:function(){et(tt,this).call(this)}},{key:"destroy",value:function(){Reflect.apply(le,this,[])}},{key:"show",value:function(){this.options.visible=!0,this.canvas.style.visibility="visible",Reflect.apply($,this,[])}},{key:"hide",value:function(){this.options.visible=!1,this.canvas.style.visibility="hidden",Reflect.apply(z,this,[])}},{key:"pause",value:function(){this.options.running=!1}},{key:"play",value:function(){this.options.running=!0}},{key:"changePlayingState",value:function(){var e=this.options;e.running=!e.running}},{key:"set",value:function(e,t){"imgUrl"===e?(this.options.imgUrl=t,Reflect.apply(M,this,[])):this.options[e]=t}}])}(m);function nt(e,t){var r=(0,i.useRef)(null);return(0,i.useEffect)(function(){if(!(0,o.isNull)(e.current))return r.current=new rt(e.current,t&&t.option),function(){var e;return null===(e=r.current)||void 0===e?void 0:e.destroy()}},[]),r}},649:(e,t,r)=>{e.exports=(e=>{var t={};return r.d(t,e),t})({createElement:()=>n.createElement,default:()=>n.default,forwardRef:()=>n.forwardRef,useContext:()=>n.useContext,useEffect:()=>n.useEffect,useImperativeHandle:()=>n.useImperativeHandle,useMemo:()=>n.useMemo,useRef:()=>n.useRef,useState:()=>n.useState})},945:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=r?r.call(n,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return i[e](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.nc=void 0;var s={};a.d(s,{z:()=>b});var u=a(649),c=a(502),l=a(362);var f=a(291);function p(e){"@babel/helpers - typeof";return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var h,d=["children","style"];function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=f.Ay.div(h||(h=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: relative;\n top: 0px;\n left: 0px;\n z-index: 1;\n width: 100%;\n height: 100%;\n min-width: 1px;\n min-height: 1px;\n contain: layout paint style;\n will-change: transform, opacity;\n"]))),b=(0,u.forwardRef)(function(e,t){var r=e.children,n=e.style,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,d),o=(0,u.useRef)(null),a=(0,c.n)(o,i);return function(e,t){(0,u.useEffect)(function(){if(t.option&&e.current){var r=t.option;Object.keys(e.current.defaults).forEach(function(t){!(0,l.isUndefined)(r[t])&&e.current&&e.current.set(t,r[t])})}},[t.option])}(a,i),(0,u.useImperativeHandle)(t,function(){return{toggleState:function(){var e;null===(e=a.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null===(t=a.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null===(e=a.current)||void 0===e||e.pause()},set:function(e){if(!(0,l.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var i,o=t[r];null===(i=a.current)||void 0===i||i.set(o,e[o])}}}}),u.default.createElement(y,{style:m({backgroundRepeat:"round"},n)},u.default.createElement("canvas",{ref:o,"data-earthnut-ui":"canvas"}),r)});b.displayName="en-background-ripple";const w=s.z;export{w as BackgroundRipple};
1
+ "use client";import*as e from"a-js-tools";import*as t from"a-type-of-js";import*as r from"react";import{setStyle as n}from"a-element-inline-style";var i={161:(t,r,n)=>{t.exports=(e=>{var t={};return n.d(t,e),t})({debounce:()=>e.debounce,enArr:()=>e.enArr,getRandomInt:()=>e.getRandomInt,getRandomString:()=>e.getRandomString})},291:(e,t,r)=>{r.d(t,{Ay:()=>Gt});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.create;function i(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var o=r(649),a=r(945),s=r.n(a),u="-ms-",c="-moz-",l="-webkit-",f="comm",p="rule",h="decl",d="@keyframes",g=Math.abs,m=String.fromCharCode,y=Object.assign;function v(e){return e.trim()}function b(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,r){return e.replace(t,r)}function S(e,t,r){return e.indexOf(t,r)}function E(e,t){return 0|e.charCodeAt(t)}function R(e,t,r){return e.slice(t,r)}function P(e){return e.length}function O(e){return e.length}function T(e,t){return t.push(e),e}function k(e,t){return e.filter(function(e){return!b(e,t)})}var x=1,A=1,I=0,_=0,D=0,j="";function C(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:x,column:A,length:a,return:"",siblings:s}}function F(e,t){return y(C("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function N(e){for(;e.root;)e=F(e.root,{children:[e]});T(e,e.siblings)}function U(){return D=_>0?E(j,--_):0,A--,10===D&&(A=1,x--),D}function B(){return D=_<I?E(j,_++):0,A++,10===D&&(A=1,x++),D}function L(){return E(j,_)}function M(){return _}function $(e,t){return R(j,e,t)}function W(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 z(e){return x=A=1,I=P(j=e),_=0,[]}function X(e){return j="",e}function G(e){return v($(_-1,q(91===e?e+2:40===e?e+1:e)))}function H(e){for(;(D=L())&&D<33;)B();return W(e)>2||W(D)>3?"":" "}function Y(e,t){for(;--t&&B()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return $(e,M()+(t<6&&32==L()&&32==B()))}function q(e){for(;B();)switch(D){case e:return _;case 34:case 39:34!==e&&39!==e&&q(D);break;case 40:41===e&&q(e);break;case 92:B()}return _}function Z(e,t){for(;B()&&e+D!==57&&(e+D!==84||47!==L()););return"/*"+$(t,_-1)+"*"+m(47===e?e:B())}function V(e){for(;!W(L());)B();return $(e,_)}function K(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function J(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case h:return e.return=e.return||e.value;case f:return"";case d:return e.return=e.value+"{"+K(e.children,n)+"}";case p:if(!P(e.value=e.props.join(",")))return""}return P(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function Q(e,t,r){switch(function(e,t){return 45^E(e,0)?(((t<<2^E(e,0))<<2^E(e,1))<<2^E(e,2))<<2^E(e,3):0}(e,t)){case 5103:return l+"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 l+e+e;case 4789:return c+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return l+e+c+e+u+e+e;case 5936:switch(E(e,t+11)){case 114:return l+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return l+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return l+e+u+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return l+e+u+e+e;case 6165:return l+e+u+"flex-"+e+e;case 5187:return l+e+w(e,/(\w+).+(:[^]+)/,l+"box-$1$2"+u+"flex-$1$2")+e;case 5443:return l+e+u+"flex-item-"+w(e,/flex-|-self/g,"")+(b(e,/flex-|baseline/)?"":u+"grid-row-"+w(e,/flex-|-self/g,""))+e;case 4675:return l+e+u+"flex-line-pack"+w(e,/align-content|flex-|-self/g,"")+e;case 5548:return l+e+u+w(e,"shrink","negative")+e;case 5292:return l+e+u+w(e,"basis","preferred-size")+e;case 6060:return l+"box-"+w(e,"-grow","")+l+e+u+w(e,"grow","positive")+e;case 4554:return l+w(e,/([^-])(transform)/g,"$1"+l+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,l+"$1"),/(image-set)/,l+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,l+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,l+"box-pack:$3"+u+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+l+e+e;case 4200:if(!b(e,/flex-|baseline/))return u+"grid-column-align"+R(e,t)+e;break;case 2592:case 3360:return u+w(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,b(e.props,/grid-\w+-end/)})?~S(e+(r=r[t].value),"span",0)?e:u+w(e,"-start","")+e+u+"grid-row-span:"+(~S(r,"span",0)?b(r,/\d+/):+b(r,/\d+/)-+b(e,/\d+/))+";":u+w(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return b(e.props,/grid-\w+-start/)})?e:u+w(w(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,l+"$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(P(e)-1-t>6)switch(E(e,t+1)){case 109:if(45!==E(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+l+"$2-$3$1"+c+(108==E(e,t+3)?"$3":"$2-$3"))+e;case 115:return~S(e,"stretch",0)?Q(w(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,i,o,a,s){return u+r+":"+n+s+(i?u+r+"-span:"+(o?a:+a-+n)+s:"")+e});case 4949:if(121===E(e,t+6))return w(e,":",":"+l)+e;break;case 6444:switch(E(e,45===E(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+l+(45===E(e,14)?"inline-":"")+"box$3$1"+l+"$2$3$1"+u+"$2box$3")+e;case 100:return w(e,":",":"+u)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=Q(e.value,e.length,r));case d:return K([F(e,{value:w(e.value,"@","@"+l)})],n);case p:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(b(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":N(F(e,{props:[w(t,/:(read-\w+)/,":-moz-$1")]})),N(F(e,{props:[t]})),y(e,{props:k(r,n)});break;case"::placeholder":N(F(e,{props:[w(t,/:(plac\w+)/,":"+l+"input-$1")]})),N(F(e,{props:[w(t,/:(plac\w+)/,":-moz-$1")]})),N(F(e,{props:[w(t,/:(plac\w+)/,u+"input-$1")]})),N(F(e,{props:[t]})),y(e,{props:k(r,n)})}return""})}}function te(e){return X(re("",null,null,null,[""],e=z(e),0,[0],e))}function re(e,t,r,n,i,o,a,s,u){for(var c=0,l=0,f=a,p=0,h=0,d=0,y=1,v=1,b=1,R=0,O="",k=i,x=o,A=n,I=O;v;)switch(d=R,R=B()){case 40:if(108!=d&&58==E(I,f-1)){-1!=S(I+=w(G(R),"&","&\f"),"&\f",g(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:I+=G(R);break;case 9:case 10:case 13:case 32:I+=H(d);break;case 92:I+=Y(M()-1,7);continue;case 47:switch(L()){case 42:case 47:T(ie(Z(B(),M()),t,r,u),u);break;default:I+="/"}break;case 123*y:s[c++]=P(I)*b;case 125*y:case 59:case 0:switch(R){case 0:case 125:v=0;case 59+l:-1==b&&(I=w(I,/\f/g,"")),h>0&&P(I)-f&&T(h>32?oe(I+";",n,r,f-1,u):oe(w(I," ","")+";",n,r,f-2,u),u);break;case 59:I+=";";default:if(T(A=ne(I,t,r,c,l,i,s,O,k=[],x=[],f,o),o),123===R)if(0===l)re(I,t,A,A,k,o,f,s,x);else switch(99===p&&110===E(I,3)?100:p){case 100:case 108:case 109:case 115:re(e,A,A,n&&T(ne(e,A,A,0,0,i,s,O,i,k=[],f,x),x),i,x,f,s,n?k:x);break;default:re(I,A,A,A,[""],x,0,s,x)}}c=l=h=0,y=b=1,O=I="",f=a;break;case 58:f=1+P(I),h=d;default:if(y<1)if(123==R)--y;else if(125==R&&0==y++&&125==U())continue;switch(I+=m(R),R*y){case 38:b=l>0?1:(I+="\f",-1);break;case 44:s[c++]=(P(I)-1)*b,b=1;break;case 64:45===L()&&(I+=G(B())),p=L(),l=f=P(O=I+=V(M())),R++;break;case 45:45===d&&2==P(I)&&(y=0)}}return o}function ne(e,t,r,n,i,o,a,s,u,c,l,f){for(var h=i-1,d=0===i?o:[""],m=O(d),y=0,b=0,S=0;y<n;++y)for(var E=0,P=R(e,h+1,h=g(b=a[y])),T=e;E<m;++E)(T=v(b>0?d[E]+" "+P:w(P,/&\f/g,d[E])))&&(u[S++]=T);return C(e,t,r,0===i?p:s,u,c,l,f)}function ie(e,t,r,n){return C(e,t,r,f,m(D),R(e,2,-2),0,n)}function oe(e,t,r,n,i){return C(e,t,r,h,R(e,0,n),R(e,n+1,-1),n,i)}var ae={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},se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ue="active",ce="data-styled-version",le="6.1.19",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"undefined"!=typeof document,he=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),de=(new Set,Object.freeze([])),ge=Object.freeze({});function me(e,t,r){return void 0===r&&(r=ge),e.theme!==r.theme&&e.theme||t||r.theme}var ye=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"]),ve=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function we(e){return e.replace(ve,"-").replace(be,"")}var Se=/(a)(d)/gi,Ee=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ee(t%52)+r;return(Ee(t%52)+r).replace(Se,"$1-$2")}var Pe,Oe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Te=function(e){return Oe(5381,e)};function ke(e){return Re(Te(e)>>>0)}function xe(e){return e.displayName||e.name||"Component"}function Ae(e){return"string"==typeof e&&!0}var Ie="function"==typeof Symbol&&Symbol.for,_e=Ie?Symbol.for("react.memo"):60115,De=Ie?Symbol.for("react.forward_ref"):60112,je={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ce={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ne=((Pe={})[De]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pe[_e]=Fe,Pe);function Ue(e){return("type"in(t=e)&&t.type.$$typeof)===_e?Fe:"$$typeof"in e?Ne[e.$$typeof]:je;var t}var Be=Object.defineProperty,Le=Object.getOwnPropertyNames,Me=Object.getOwnPropertySymbols,$e=Object.getOwnPropertyDescriptor,We=Object.getPrototypeOf,ze=Object.prototype;function Xe(e,t,r){if("string"!=typeof t){if(ze){var n=We(t);n&&n!==ze&&Xe(e,n,r)}var i=Le(t);Me&&(i=i.concat(Me(t)));for(var o=Ue(e),a=Ue(t),s=0;s<i.length;++s){var u=i[s];if(!(u in Ce||r&&r[u]||a&&u in a||o&&u in o)){var c=$e(t,u);try{Be(e,u,c)}catch(e){}}}}return e}function Ge(e){return"function"==typeof e}function He(e){return"object"==typeof e&&"styledComponentId"in e}function Ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qe(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Ze(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ve(e,t,r){if(void 0===r&&(r=!1),!r&&!Ze(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ve(e[n],t[n]);else if(Ze(t))for(var n in t)e[n]=Ve(e[n],t[n]);return e}function Ke(e,t){Object.defineProperty(e,"toString",{value:t})}function Je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return 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(", ")):""))}var Qe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw Je(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(fe);return t},e}(),et=new Map,tt=new Map,rt=1,nt=function(e){if(et.has(e))return et.get(e);for(;tt.has(rt);)rt++;var t=rt++;return et.set(e,t),tt.set(t,e),t},it=function(e,t){rt=t+1,et.set(e,t),tt.set(t,e)},ot="style[".concat(se,"][").concat(ce,'="').concat(le,'"]'),at=new RegExp("^".concat(se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),st=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},ut=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(fe),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var u=s.match(at);if(u){var c=0|parseInt(u[1],10),l=u[2];0!==c&&(it(l,c),st(e,l,u[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},ct=function(e){for(var t=document.querySelectorAll(ot),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(se)!==ue&&(ut(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function lt(){return r.nc}var ft=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(se,"]")));return t[t.length-1]}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(se,ue),n.setAttribute(ce,le);var a=lt();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},pt=function(){function e(e){this.element=ft(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}throw Je(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ht=function(){function e(e){this.element=ft(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),dt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),gt=pe,mt={isServer:!pe,useCSSOMInjection:!he},yt=function(){function e(e,t,r){void 0===e&&(e=ge),void 0===t&&(t={});var i=this;this.options=n(n({},mt),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&pe&&gt&&(gt=!1,ct(this)),Ke(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=function(r){var i=function(e){return tt.get(e)}(r);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(r);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(se,".g").concat(r,'[id="').concat(i,'"]'),u="";void 0!==o&&o.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),n+="".concat(a).concat(s,'{content:"').concat(u,'"}').concat(fe)},o=0;o<r;o++)i(o);return n}(i)})}return e.registerId=function(e){return nt(e)},e.prototype.rehydrate=function(){!this.server&&pe&&ct(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new dt(r):t?new pt(r):new ht(r)}(this.options),new Qe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(nt(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(nt(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),vt=/&/g,bt=/^\s*\/\/.*$/gm;function wt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=wt(e.children,t)),e})}function St(e){var t,r,n,i=void 0===e?ge:e,o=i.options,a=void 0===o?ge:o,s=i.plugins,u=void 0===s?de:s,c=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},l=u.slice();l.push(function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(vt,r).replace(n,c))}),a.prefix&&l.push(ee),l.push(J);var f=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,r=i,n=new RegExp("\\".concat(r,"\\b"),"g");var u=e.replace(bt,""),c=te(o||i?"".concat(o," ").concat(i," { ").concat(u," }"):u);a.namespace&&(c=wt(c,a.namespace));var f,p,h,d=[];return K(c,(f=l.concat((h=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&h(e)})),p=O(f),function(e,t,r,n){for(var i="",o=0;o<p;o++)i+=f[o](e,t,r,n)||"";return i})),d};return f.hash=u.length?u.reduce(function(e,t){return t.name||Je(15),Oe(e,t.name)},5381).toString():"",f}var Et=new yt,Rt=St(),Pt=o.default.createContext({shouldForwardProp:void 0,styleSheet:Et,stylis:Rt}),Ot=(Pt.Consumer,o.default.createContext(void 0));function Tt(){return(0,o.useContext)(Pt)}function kt(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=Tt().styleSheet,a=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),u=(0,o.useMemo)(function(){return St({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,o.useEffect)(function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var c=(0,o.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:u}},[e.shouldForwardProp,a,u]);return o.default.createElement(Pt.Provider,{value:c},o.default.createElement(Ot.Provider,{value:u},e.children))}var xt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Rt);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ke(this,function(){throw Je(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Rt),this.name+e.hash},e}(),At=function(e){return e>="A"&&e<="Z"};function It(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;At(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var _t=function(e){return null==e||!1===e||""===e},Dt=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!_t(a)&&(Array.isArray(a)&&a.isCss||Ge(a)?n.push("".concat(It(o),":"),a,";"):Ze(a)?n.push.apply(n,i(i(["".concat(o," {")],Dt(a),!1),["}"],!1)):n.push("".concat(It(o),": ").concat((t=o,null==(r=a)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ae||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function jt(e,t,r,n){return _t(e)?[]:He(e)?[".".concat(e.styledComponentId)]:Ge(e)?!Ge(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:jt(e(t),t,r,n):e instanceof xt?r?(e.inject(r,n),[e.getName(n)]):[e]:Ze(e)?Dt(e):Array.isArray(e)?Array.prototype.concat.apply(de,e.map(function(e){return jt(e,t,r,n)})):[e.toString()];var i}function Ct(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ge(r)&&!He(r))return!1}return!0}var Ft=Te(le),Nt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ct(e),this.componentId=t,this.baseHash=Oe(Ft,t),this.baseStyle=r,yt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Ye(n,this.staticRulesId);else{var i=qe(jt(this.rules,e,t,r)),o=Re(Oe(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}n=Ye(n,o),this.staticRulesId=o}else{for(var s=Oe(this.baseHash,r.hash),u="",c=0;c<this.rules.length;c++){var l=this.rules[c];if("string"==typeof l)u+=l;else if(l){var f=qe(jt(l,e,t,r));s=Oe(s,f+c),u+=f}}if(u){var p=Re(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(u,".".concat(p),void 0,this.componentId)),n=Ye(n,p)}}return n},e}(),Ut=o.default.createContext(void 0);Ut.Consumer;var Bt={};new Set;function Lt(e,t,r){var i=He(e),a=e,s=!Ae(e),u=t.attrs,c=void 0===u?de:u,l=t.componentId,f=void 0===l?function(e,t){var r="string"!=typeof e?"sc":we(e);Bt[r]=(Bt[r]||0)+1;var n="".concat(r,"-").concat(ke(le+r+Bt[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,p=t.displayName,h=void 0===p?function(e){return Ae(e)?"styled.".concat(e):"Styled(".concat(xe(e),")")}(e):p,d=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||f,g=i&&a.attrs?a.attrs.concat(c).filter(Boolean):c,m=t.shouldForwardProp;if(i&&a.shouldForwardProp){var y=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;m=function(e,t){return y(e,t)&&v(e,t)}}else m=y}var b=new Nt(r,d,i?a.componentStyle:void 0);function w(e,t){return function(e,t,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,l=e.target,f=o.default.useContext(Ut),p=Tt(),h=e.shouldForwardProp||p.shouldForwardProp,d=me(t,f,s)||ge,g=function(e,t,r){for(var i,o=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var s=Ge(i=e[a])?i(o):i;for(var u in s)o[u]="className"===u?Ye(o[u],s[u]):"style"===u?n(n({},o[u]),s[u]):s[u]}return t.className&&(o.className=Ye(o.className,t.className)),o}(i,t,d),m=g.as||l,y={};for(var v in g)void 0===g[v]||"$"===v[0]||"as"===v||"theme"===v&&g.theme===d||("forwardedAs"===v?y.as=g.forwardedAs:h&&!h(v,m)||(y[v]=g[v]));var b=function(e,t){var r=Tt();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,g),w=Ye(u,c);return b&&(w+=" "+b),g.className&&(w+=" "+g.className),y[Ae(m)&&!ye.has(m)?"class":"className"]=w,r&&(y.ref=r),(0,o.createElement)(m,y)}(S,e,t)}w.displayName=h;var S=o.default.forwardRef(w);return S.attrs=g,S.componentStyle=b,S.displayName=h,S.shouldForwardProp=m,S.foldedComponentIds=i?Ye(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=d,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++)Ve(e,i[n],!0);return e}({},a.defaultProps,e):e}}),Ke(S,function(){return".".concat(S.styledComponentId)}),s&&Xe(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Mt(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var $t=function(e){return Object.assign(e,{isCss:!0})};function Wt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ge(e)||Ze(e))return $t(jt(Mt(de,i([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?jt(n):$t(jt(Mt(n,t)))}function zt(e,t,r){if(void 0===r&&(r=ge),!t)throw Je(1,t);var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,r,Wt.apply(void 0,i([n],o,!1)))};return o.attrs=function(i){return zt(e,t,n(n({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return zt(e,t,n(n({},r),i))},o}var Xt=function(e){return zt(Lt,e)},Gt=Xt;ye.forEach(function(e){Gt[e]=Xt(e)});!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ct(e),yt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var i=n(qe(jt(this.rules,t,r,n)),""),o=this.componentId+e;r.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&yt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=lt(),n=qe([r&&'nonce="'.concat(r,'"'),"".concat(se,'="true"'),"".concat(ce,'="').concat(le,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Je(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Je(2);var r=e.instance.toString();if(!r)return[];var i=((t={})[se]="",t[ce]=le,t.dangerouslySetInnerHTML={__html:r},t),a=lt();return a&&(i.nonce=a),[o.default.createElement("style",n({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new yt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Je(2);return o.default.createElement(kt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Je(3)}})(),"__sc-".concat(se,"__")},362:(e,r,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({isArray:()=>t.isArray,isBoolean:()=>t.isBoolean,isBusinessEmptyString:()=>t.isBusinessEmptyString,isEmptyArray:()=>t.isEmptyArray,isFalse:()=>t.isFalse,isNull:()=>t.isNull,isString:()=>t.isString,isUndefined:()=>t.isUndefined,isZero:()=>t.isZero})},649:(e,t,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({createElement:()=>r.createElement,default:()=>r.default,forwardRef:()=>r.forwardRef,useContext:()=>r.useContext,useEffect:()=>r.useEffect,useImperativeHandle:()=>r.useImperativeHandle,useMemo:()=>r.useMemo,useRef:()=>r.useRef,useState:()=>r.useState})},713:()=>{function e(t){"@babel/helpers - typeof";return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function r(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,r||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}new(function(){return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(){};return Object.setPrototypeOf(t,this),Object.defineProperties(t,{info:{value:function(){},configurable:!1,writable:!1},warn:{value:function(){},configurable:!1,writable:!1},error:{value:function(){},configurable:!1,writable:!1},type:{value:!1,configurable:!1,writable:!1}}),t},[{key:"clear",value:function(){}}])}())({name:"earthnut",type:!1})},945:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=r?r.call(n,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}},950:(e,t,r)=>{r.d(t,{n:()=>nt});var i=r(649),o=r(362);function a(e,t,r,n){function i(e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error("compile error: "+r.getShaderInfoLog(n));return n}var a,s={id:r.createProgram(),uniforms:{},locations:{}};if(r.attachShader(s.id,i(r.VERTEX_SHADER,e)),r.attachShader(s.id,i(r.FRAGMENT_SHADER,t)),r.linkProgram(s.id),!r.getProgramParameter(s.id,r.LINK_STATUS))throw new Error("link error: "+r.getProgramInfoLog(s.id));r.useProgram(s.id),r.enableVertexAttribArray(0);for(var u=e+t,c=/uniform (\w+) (\w+)/g;!(0,o.isNull)(a=c.exec(u));){var l=a[2];s.locations[l]=r.getUniformLocation(s.id,l)}return s}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.gl;r.activeTexture(r.TEXTURE0+(t||0)),r.bindTexture(r.TEXTURE_2D,e)}function u(e){return"rgba(0, 0, 0, 0)"===e||"#ffffffff"===e||"transport"===e}function c(e){return"none"===e||""===e}function l(){var e=this,t=function(){return e.initState=!1,null};if(!this.gl)return t();var r=this.gl,n=Object.fromEntries(["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear"].reduce(function(e,t){var n=r.getExtension(t);return n&&e.push([t,n]),e},[]));if(!n.OES_texture_float)return t();var i=[];function o(e,t,r){var i="OES_texture_"+e,o=i+"_linear",a=o in n;return{type:t,linearSupport:a,arrayType:r,extensions:a?[i,o]:[i]}}i.push(o("float",r.FLOAT,Float32Array)),n.OES_texture_half_float&&i.push(o("half_float",n.OES_texture_half_float.HALF_FLOAT_OES,null));var a=r.createTexture(),s=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,s),r.bindTexture(r.TEXTURE_2D,a),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);for(var u=null,c=0;c<i.length;c++)if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,32,32,0,r.RGBA,i[c].type,null),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE){u=i[c];break}return u}function f(e){"@babel/helpers - typeof";return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function h(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var m=h(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"canvas",void 0),d(this,"gl",void 0),d(this,"config",void 0),d(this,"initState",!0),this.canvas=t;var r=t.getContext("webgl");if((0,o.isNull)(r))return this.initState=!1,void(this.config=null);this.gl=r,this.config=Reflect.apply(l,this,[])}),y=r(161),v={imgUrl:null,resolution:360,dropRadius:12,perturbance:.01,interactive:!0,crossOrigin:"no-cors",playingState:!0,accelerating:1,raindropsTimeInterval:3600,idleFluctuations:!0,darkMode:void 0};Object.freeze(v);var b;r(713);function w(e){"@babel/helpers - typeof";return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function E(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}function R(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function P(e,t,r){return e.set(T(e,t),r),r}function O(e,t){return e.get(T(e,t))}function T(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function k(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={list:[],diameter:48,radius:0,cells:0};r.diameter%2!=0&&r.diameter++;var n=r.diameter,i=r.list,o=n/2;r.radius=o,r.cells=Math.pow(n,2);for(var a=0;a<n;a++){i[a]=[];for(var s=0;s<n;s++)i[a][s]=[0,0,0,0]}for(var u=0;u<=o;u++)for(var c=function(){var e=i[u][l],r=Math.ceil(Math.sqrt(Math.pow(u,2)+Math.pow(l,2)))<=o,n=t?10:255,a=t?25:190,s=r?t?160:120:t?160:180,c=r?t?230:160:t?250:240,f=function(){return(0,y.getRandomInt)(n,a)};e[0]=f(),e[1]=f(),e[2]=f(),e[3]=(0,y.getRandomInt)(s,c)},l=u;l<=o;l++)c();for(var f=0;f<=o;f++)for(var p=0;p<=f;p++)i[f][p]=i[p][f];for(var h=o;h<n;h++)for(var d=0;d<=o;d++)i[h][d]=i[n-h][d];for(var g=0;g<o;g++)for(var m=o;m<n;m++)i[g][m]=i[g][n-m];for(var v=o;v<n;v++)for(var b=o;b<n;b++)i[v][b]=i[v][n-b];var w=e%n;return r.list=[].concat(k(i.slice(w)),k(i.slice(0,w))),r},I=new(b=new WeakMap,function(){return function(e,t,r){return t&&S(e.prototype,t),r&&S(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,b,1),function(e,t,r){(t=E(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"data",A())},[{key:"build",value:function(e){O(b,this)>100&&P(b,this,0),this.data=A(P(b,this,O(b,this)+4),e)}}])}());function _(e,t){var r=document.createElement("canvas"),n=document.createElement("canvas"),i=r.getContext("2d"),a=n.getContext("2d");return(0,o.isNull)(i)||(0,o.isNull)(a)?r:(r.width=n.width=e||1,r.height=n.height=t||1,i.clearRect(0,0,e,t),a.clearRect(0,0,e,t),i.globalAlpha=1,i.putImageData(function(e,t){Date.now();for(var r=new ImageData(e||1,t||1),n=r.data,i=I.data,o=i.diameter,a=i.list,s=e*o,u=0;u<n.length;u+=4){var c=u/4%s,l=c%e%o,f=Math.floor(c/e),p=a[l][f];n[u]=p[0],n[u+1]=p[1],n[u+2]=p[2],n[u+3]=p[3]}return r}(e,t),0,0),a.fillStyle="#ffffff",a.fillRect(0,0,e,t),a.drawImage(r,0,0,e||1,t||1),a.globalCompositeOperation="source-over",n)}function D(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=this.fadeData,n=this.options,i=r.backgroundInfo,o=r.toBeList,a=i.width,s=i.height,u=(0,y.getRandomString)({length:8,includeNumbers:!0,includeUppercaseLetters:!0});I.build(null!==(e=n.darkMode)&&void 0!==e?e:r.isDark),o.push({resource:_(a,s),width:a,height:s,kind:"default",tag:u}),t&&r.run()}function j(e,t){var r,n,i=e.imgUrl;return(0,o.isString)(i)&&i||(r=t.backgroundImage,n=/url\(["']?([^"']*)["']?\)/.exec(r),(0,o.isNull)(n)?null:n[1])}function C(e,t){return(0,o.isArray)(e.imgUrl)&&1===e.imgUrl.length&&e.imgUrl[0]||t.backgroundColor}function F(){var e=this.renderData,t=this.fadeData,r=this.options;if((0,o.isNull)(e))return Reflect.apply(D,this,[]);var n=e.originStyle;if(u(n.backgroundColor)&&(!(0,o.isArray)(r.imgUrl)||1!==r.imgUrl.length))return Reflect.apply(D,this,[]);var i=document.createElement("canvas"),a=i.getContext("2d");if((0,o.isNull)(a))return Reflect.apply(D,this,[]);var s=t.backgroundInfo,c=s.width,l=s.height;i.width=c,i.height=l,a.clearRect(0,0,c,l);var f=C(r,n);a.beginPath(),a.fillStyle=f,a.fillRect(0,0,c,l),a.fill(),t.isTransitioning&&!(0,o.isEmptyArray)(t.toBeList)?t.toBeList=[t.toBeList[0]]:t.toBeList=[];var p={resource:i,kind:"background-color",tag:f,width:c,height:l};t.toBeList.push(p),t.run()}function N(){var e=this.fadeData,t=this.renderData,r=this.options;if((0,o.isNull)(t))return Reflect.apply(F,this,[]);var n=t.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,o.isArray)(r.imgUrl))return Reflect.apply(F,this,[]);var i=(0,o.isArray)(r.imgUrl)&&r.imgUrl.length>1&&r.imgUrl||n.backgroundImage.replace(/^.*linear-gradient\((.*)\).*$/,"$1").split("),").map(function(e){return(e=e.trim()).endsWith(")")||(e+=")"),e}).filter(function(e){return e.startsWith("rgb")||e.startsWith("#")});if(i.length<2)return Reflect.apply(F,this,[]);var a=document.createElement("canvas"),s=a.getContext("2d");if((0,o.isNull)(s))return Reflect.apply(F,this,[]);var u=e.backgroundInfo,c=u.width,l=u.height;a.width=c,a.height=l,s.fillStyle="#fff",s.fillRect(0,0,c,l);var f=s.createLinearGradient(0,0,0,l);i.forEach(function(e,t){return f.addColorStop(t/(i.length-1),e)}),s.fillStyle=f,s.fillRect(0,0,c,l),e.isTransitioning&&!(0,o.isEmptyArray)(e.toBeList)?e.toBeList=[e.toBeList[0]]:e.toBeList=[],e.toBeList.push({resource:a,kind:"linear-gradient",tag:i.join("_"),width:c,height:l}),e.run()}function U(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?B(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function L(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if((0,o.isNull)(t))Reflect.apply(N,this,[]);else{var i=t.lastUseStyle,a=n.backgroundInfo,s=a.width,u=a.height,c=j(r,i);if(t.imageSource=c,c){var l=function(e,t,r){var n=new Image(t,r);return n.width=t,n.height=r,n.src=e,n}(c,s,u);l.onload=function(){clearTimeout(n.transparentId),n.isTransitioning&&!(0,o.isEmptyArray)(n.toBeList)?n.toBeList=[n.toBeList[0]].concat(U(n.toBeList.slice(1).filter(function(e){return"image"===e.kind&&(Math.abs(e.width-s)>2||Math.abs(e.height-u)>2||e.tag!==c)}))):n.toBeList=[],n.toBeList.push({resource:l,width:s,height:u,kind:"image",tag:c}),n.run()},l.onerror=function(){Reflect.apply(N,e,[])},l.crossOrigin=r.crossOrigin}else Reflect.apply(N,this,[])}}function M(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement;t&&[["background-image","none"],["background-color","transparent"]].forEach(function(e){return t.style.setProperty(e[0],e[1],"important")})}}function $(e){var t=window.getComputedStyle(e),r=e.style;return{inlineBackground:r.background,inlineBackgroundColor:r.backgroundColor,inlineBackgroundImage:r.backgroundImage,backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage,backgroundSize:t.backgroundSize,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundClip:t.backgroundClip,backgroundOrigin:t.backgroundOrigin,backgroundAttachment:t.backgroundAttachment,position:t.position,width:parseInt(t.width),height:parseInt(t.height)}}function W(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement,r=e.originStyle;t.style.setProperty("background-image",r.inlineBackgroundImage),t.style.setProperty("background-color",r.inlineBackgroundColor)}}function z(e){"@babel/helpers - typeof";return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function X(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H(n.key),n)}}function G(e,t,r){return(t=H(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H(e){var t=function(e,t){if("object"!=z(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==z(t)?t:t+""}var Y=function(){return function(e,t,r){return t&&X(e.prototype,t),r&&X(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,r,n){var i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),G(this,"quad",null),G(this,"lastRaindropsFallTime",0),G(this,"parentElement",void 0),G(this,"mutationObserver",void 0),G(this,"resizeObserver",void 0),G(this,"renderProgram",void 0),G(this,"imageSource",""),G(this,"dropProgram",void 0),G(this,"updateProgram",void 0),G(this,"textures",[]),G(this,"backgroundTexture",[]),G(this,"textureDelta",void 0),G(this,"framebuffers",[]),G(this,"bufferWriteIndex",0),G(this,"bufferReadIndex",1),G(this,"originStyle",void 0),G(this,"lastUseStyle",void 0),G(this,"events",{}),G(this,"animationFrameId",0),this.parentElement=null!==(i=t.parentElement)&&void 0!==i?i:document.body,Reflect.apply(M,n,[]),this.originStyle=this.lastUseStyle=$(this.parentElement),this.mutationObserver=new MutationObserver(function(e){e.forEach(function(e){if(e.target===a.parentElement&&"attributes"===e.type&&n.options.visible){var t=Object.values(a.lastUseStyle),i=$(a.parentElement),s=Object.values(i);if((0,o.isEmptyArray)(y.enArr.difference(t,s)))return;var l=c(i.backgroundImage),f=u(i.backgroundColor);if(l&&f)return;a.lastUseStyle=i,Reflect.apply(r,n,[]),Reflect.apply(M,n,[])}})}),this.mutationObserver.observe(this.parentElement,{subtree:!0,attributes:!0,attributeFilter:["class","style"]}),this.resizeObserver=new ResizeObserver(function(e){e.forEach(function(e){e.target===a.parentElement&&Reflect.apply(r,n,[])})}),this.resizeObserver.observe(this.parentElement)},[{key:"destroy",value:function(){if(this.animationFrameId&&window.cancelAnimationFrame(this.animationFrameId),Reflect.apply(W,{renderData:this},[]),this.parentElement&&this.events){var e,t,r,n=this.parentElement,i=this.events;Object.keys(i).forEach(function(e){return n.removeEventListener&&n.removeEventListener(e,i[e])}),n.removeAttribute&&n.removeAttribute("data-ripples"),null===(e=this.mutationObserver)||void 0===e||e.takeRecords(),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),this.mutationObserver=null,null===(r=this.resizeObserver)||void 0===r||r.disconnect(),this.resizeObserver=null}}}])}();function q(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r,n,i,a=e.parentElement,s=window.getComputedStyle(a),u=s.backgroundSize,c=s.backgroundAttachment,l=s.backgroundPosition,f=/\s+/.test(r=l)?r.replace(/center/,"50%").replace(/top|left/,"0%").replace(/bottom/,"100%").replace(/\s+/," ").split(" "):Z(r)?[r,"50%"]:{center:["50%","50%"],top:["50%","0%"],bottom:["50%","100%"],left:["0%","50%"],right:["100%","50%"]}[r],p={left:0,top:0,width:0,height:0};"fixed"===c?(p.height=window.innerHeight,p.left=window.screenX,p.top=window.screenY,p.width=window.innerWidth):(p.left=0,p.top=0,p.width=a.scrollWidth,p.height=a.scrollHeight);var h=t.backgroundInfo||{width:100,height:100},d=h.width,g=h.height;if("cover"===u){var m=Math.max(p.width/d,p.height/g);n=d*m,i=g*m}else if("contain"===u){var y=Math.min(p.width/d,p.height/g);n=d*y,i=g*y}else{var v=u.split(" ");n=v[0]||"",i=v[1]||n,Z(n)?n=p.width*parseFloat(n)/100:"auto"!==n&&(n=parseFloat(n)),Z(i)?i=p.height*parseFloat(i)/100:"auto"!==i&&(i=parseFloat(i)),"auto"===n&&"auto"===i?(n=d,i=g):("auto"===n&&(n=d*(Number(i)/g)),"auto"===i&&(i=g*(Number(n)/d)))}var b=f&&f[0]||"0%",w=f&&f[1]||"0%";b=Z(b)?(p.left+(p.width-Number(n))*parseFloat(b)/100).toString():(p.left+parseFloat(b)).toString(),w=Z(w)?(p.top+(p.height-Number(i))*parseFloat(w)/100).toString():(p.top+parseFloat(w)).toString(),e.renderProgram.uniforms.topLeft=new Float32Array([-Number(b)/n,-Number(w)/i]),e.renderProgram.uniforms.bottomRight=new Float32Array([e.renderProgram.uniforms.topLeft[0]+a.clientWidth/n,e.renderProgram.uniforms.topLeft[1]+a.clientHeight/i]);var S=Math.max(this.canvas.width,this.canvas.height);e.renderProgram.uniforms.containerRatio=new Float32Array([this.canvas.width/S,this.canvas.height/S])}}function Z(e){return e.endsWith("%")}function V(){var e=this.gl,t=this.renderData;(0,o.isNull)(t)||(e.bindBuffer(e.ARRAY_BUFFER,t.quad),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLE_FAN,0,4))}function K(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.textures,i=t.backgroundTexture,a=r.perturbance;e.bindFramebuffer(e.FRAMEBUFFER,null),e.viewport(0,0,this.canvas.width,this.canvas.height),e.enable(e.BLEND),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.useProgram(t.renderProgram.id),Reflect.apply(s,this,[i,0]),Reflect.apply(s,this,[n[0],1]),e.uniform1f(t.renderProgram.locations.perturbance,a),e.uniform2fv(t.renderProgram.locations.topLeft,t.renderProgram.uniforms.topLeft),e.uniform2fv(t.renderProgram.locations.bottomRight,t.renderProgram.uniforms.bottomRight),e.uniform2fv(t.renderProgram.locations.containerRatio,t.renderProgram.uniforms.containerRatio),e.uniform1i(t.renderProgram.locations.samplerBackground,0),e.uniform1i(t.renderProgram.locations.samplerRipples,1),Reflect.apply(V,this,[]),e.disable(e.BLEND)}}function J(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.bufferWriteIndex,r=e.bufferReadIndex;e.bufferWriteIndex=1-t,e.bufferReadIndex=1-r}}function Q(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.updateProgram,i=t.textures,a=t.framebuffers,u=t.bufferWriteIndex,c=t.bufferReadIndex,l=r.resolution;e.viewport(0,0,l,l),e.bindFramebuffer(e.FRAMEBUFFER,a[u]),Reflect.apply(s,this,[i[c]]),e.useProgram(n.id),Reflect.apply(V,this,[]),Reflect.apply(J,this,[])}}function ee(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)){var i=t.parentElement,a=n.isTransitioning,s=r.running,u=r.idleFluctuations,c=r.lastRunningState,l=getComputedStyle(i);n.backgroundInfo={width:parseInt(l.width),height:parseInt(l.height)},Reflect.apply(q,this,[]),s?(c||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),a&&this.fade(),Reflect.apply(Q,this,[]),Reflect.apply(K,this,[])):c&&(r.lastRunningState=!1,this.hide()),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(ee,e,[])})}}function te(e,t,r){var n=this.renderData;if(!(0,o.isNull)(n)){var i=n.parentElement,a=window.getComputedStyle(i),s=parseInt(a.borderLeftWidth)||0,u=parseInt(a.borderTopWidth)||0,c=i.getBoundingClientRect(),l=e.clientX-c.left-s,f=e.clientY-c.top-u;this.drop(l,f,t,r)}}function re(){var e=this,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.parentElement,i=t.events,a=function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.visible&&r.running&&r.interactive&&(t.lastRaindropsFallTime=Date.now(),Reflect.apply(te,e,[n,r.dropRadius*(i?1.5:1),i?.03:.01]))};i.mousemove=function(e){for(var t=r.accelerating;t--;)a(e)},i.touchmove=i.touchstart=function(e){for(var t=e.touches,r=0;r<t.length;r++)a(t[r])},i.mousedown=function(e){return a(e,!0)},Object.keys(i).forEach(function(e){return null==n?void 0:n.addEventListener(e,i[e],{passive:!0})})}}var ne="\n attribute vec2 vertex;\n varying vec2 coord;\n void main() {\n coord = vertex * 0.5 + 0.5;\n gl_Position = vec4(vertex, 0.0, 1.0);\n }";function ie(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.textureDelta;t.dropProgram=a(ne,"precision highp float;\n\n const float PI = 3.141592653589793;\n uniform sampler2D texture;\n uniform vec2 center;\n uniform float radius;\n uniform float strength;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n\n float drop = max(0.0, 1.0 - length(center * 0.5 + 0.5 - coord) / radius);\n drop = 0.5 - cos(drop * PI) * 0.5;\n info.r += drop * strength;\n gl_FragColor = info;\n }",e);var n=t.updateProgram=a(ne,"\n precision highp float;\n\n uniform sampler2D texture;\n uniform vec2 delta;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n \n vec2 dx = vec2(delta.x, 0.0);\n vec2 dy = vec2(0.0, delta.y);\n \n float average = (\n texture2D(texture, coord - dx).r +\n texture2D(texture, coord - dy).r +\n texture2D(texture, coord + dx).r +\n texture2D(texture, coord + dy).r\n ) * 0.25;\n \n info.g += (average - info.r) * 2.0;\n info.g *= 0.995;\n info.r += info.g;\n \n gl_FragColor = info;\n }\n ",this.gl);e.uniform2fv(n.locations.delta,r),t.renderProgram=a("\n precision highp float;\n\n attribute vec2 vertex;\n uniform vec2 topLeft;\n uniform vec2 bottomRight;\n uniform vec2 containerRatio;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n void main() {\n backgroundCoord = mix(topLeft, bottomRight, vertex * 0.5 + 0.5);\n backgroundCoord.y = 1.0 - backgroundCoord.y;\n ripplesCoord = vec2(vertex.x, -vertex.y) * containerRatio * 0.5 + 0.5;\n gl_Position = vec4(vertex.x, -vertex.y, 0.0, 1.0);\n }\n ","\n precision highp float;\n\n uniform sampler2D samplerBackground;\n uniform sampler2D samplerRipples;\n uniform vec2 delta;\n\n uniform float perturbance;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n\n void main() {\n float height = texture2D(samplerRipples, ripplesCoord).r;\n float heightX = texture2D(samplerRipples, vec2(ripplesCoord.x + delta.x, ripplesCoord.y)).r;\n float heightY = texture2D(samplerRipples, vec2(ripplesCoord.x, ripplesCoord.y + delta.y)).r;\n vec3 dx = vec3(delta.x, heightX - height, 0.0);\n vec3 dy = vec3(0.0, heightY - height, delta.y);\n vec2 offset = -normalize(cross(dy, dx)).xz;\n float specular = pow(max(0.0, dot(offset, normalize(vec2(-0.6, 1.0)))), 4.0);\n gl_FragColor = texture2D(samplerBackground, backgroundCoord + offset * perturbance) + specular;\n }",e),e.uniform2fv(t.renderProgram.locations.delta,r)}}function oe(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.backgroundTexture=e.createTexture();e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,1),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)}}function ae(e){var t=this.gl,r=this.renderData,n=this.fadeData;if(!(0,o.isNull)(r)){var i=r.backgroundTexture,a=r.parentElement,s=n.backgroundInfo,u=s.width,c=s.height,l=function(e){return(0,o.isZero)(e&e-1)},f=l(u)&&l(c)?t.REPEAT:t.CLAMP_TO_EDGE;t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,f),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,f),a.dataset.render_img=e.tag,a.dataset.render_width=e.width+"px",a.dataset.render_height=e.height+"px",t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e.resource)}}function se(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)&&this.config){var i=t.textures,a=t.framebuffers,s=r.resolution,u=this.gl,c=1/s;t.textureDelta=new Float32Array([c,c]),this.config.extensions.forEach(function(e){return u.getExtension(e)});for(var l=this.config.arrayType,f=l?new l(s*s*4):null,p=this.config,h=0;h<2;h++){var d=u.createTexture(),g=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,g),u.bindTexture(u.TEXTURE_2D,d),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,s,s,0,u.RGBA,p.type,f),u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,d,0),i.push(d),a.push(g)}t.quad=u.createBuffer(),u.bindBuffer(u.ARRAY_BUFFER,t.quad),u.bufferData(u.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,-1,1]),u.STATIC_DRAW),Reflect.apply(ie,this,[]),Reflect.apply(oe,this,[]),Reflect.apply(L,this,[]),u.clearColor(0,0,0,0),u.blendFunc(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA),r.visible=!0,r.running=!0,Reflect.apply(re,this,[]),Reflect.apply(ae,this,[n.lastDrawImage]),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(ee,e,[])})}}function ue(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r=e.parentElement,n=t.backgroundInfo,i=r.offsetWidth,a=r.offsetHeight;this.canvas.width=n.width=i,this.canvas.height=n.height=a,Reflect.apply(L,this,[])}}function ce(){var e=this.renderData,t=this.fadeData;(0,o.isNull)(e)||(e.destroy(),Object.keys(e).forEach(function(t){return e[t]=null}),this.renderData=null),t.destroy(),Object.keys(t).forEach(function(e){return t[e]=null}),this.fadeData=null,this.gl&&(this.gl=null)}function le(e,t,r,n){var i=this.renderData,a=this.options,u=this.gl;if(!(0,o.isNull)(i)){var c=i.parentElement,l=i.dropProgram,f=i.textures,p=i.framebuffers,h=i.bufferWriteIndex,d=i.bufferReadIndex,g=a.resolution,m=c.offsetWidth,y=c.offsetHeight,v=Math.max(m,y);r/=v;var b=new Float32Array([(2*e-m)/v,(y-2*t)/v]);u.viewport(0,0,g,g),u.bindFramebuffer(u.FRAMEBUFFER,p[h]),Reflect.apply(s,this,[f[d]]),u.useProgram(l.id),u.uniform2fv(l.locations.center,b),u.uniform1f(l.locations.radius,r),u.uniform1f(l.locations.strength,n),Reflect.apply(V,this,[]),Reflect.apply(J,this,[])}}function fe(e){"@babel/helpers - typeof";return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,de(n.key),n)}}function he(e,t,r){return(t=de(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function de(e){var t=function(e,t){if("object"!=fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fe(t)?t:t+""}function ge(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function me(e,t){return e.get(ve(e,t))}function ye(e,t,r){return e.set(ve(e,t),r),r}function ve(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var be=new WeakMap,we=new WeakMap,Se=new WeakMap,Ee=new WeakMap,Re=new WeakMap,Pe=new WeakMap,Oe=new WeakMap,Te=new WeakMap,ke=function(){return function(e,t,r){return t&&pe(e.prototype,t),r&&pe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ge(this,be,v.accelerating),ge(this,we,v.interactive),ge(this,Se,v.resolution),ge(this,Ee,v.perturbance),ge(this,Re,v.dropRadius),he(this,"imgUrl",v.imgUrl),ge(this,Pe,v.idleFluctuations),ge(this,Oe,v.raindropsTimeInterval),he(this,"crossOrigin","no-cors"),he(this,"visible",!1),he(this,"running",!1),ge(this,Te,void 0),he(this,"lastRunningState",!1),this.perturbance=t.perturbance,this.resolution=t.resolution,this.raindropsTimeInterval=t.raindropsTimeInterval,this.accelerating=t.accelerating,this.interactive=t.interactive,this.dropRadius=t.dropRadius,this.imgUrl=t.imgUrl,this.idleFluctuations=t.idleFluctuations,this.running=Boolean(null===(r=t.playingState)||void 0===r||r),this.crossOrigin=t.crossOrigin,this.darkMode=t.darkMode},[{key:"accelerating",get:function(){return me(be,this)},set:function(e){e>100||e<2||ye(be,this,e)}},{key:"interactive",get:function(){return me(we,this)},set:function(e){(0,o.isBoolean)(e)&&ye(we,this,e)}},{key:"resolution",get:function(){return me(Se,this)},set:function(e){e<100||e>550||ye(Se,this,e)}},{key:"perturbance",get:function(){return me(Ee,this)},set:function(e){e<1e-4||e>1||ye(Ee,this,e)}},{key:"dropRadius",get:function(){return me(Re,this)},set:function(e){!isFinite(e)||e<10||ye(Re,this,e)}},{key:"idleFluctuations",get:function(){return me(Pe,this)},set:function(e){(0,o.isBoolean)(e)&&ye(Pe,this,e)}},{key:"raindropsTimeInterval",get:function(){return me(Oe,this)},set:function(e){e<10||e>12e3||ye(Oe,this,e)}},{key:"playingState",get:function(){return this.running},set:function(e){this.running=Boolean(null==e||e)}},{key:"darkMode",get:function(){return me(Te,this)},set:function(e){ye(Te,this,(0,o.isUndefined)(e)?void 0:Boolean(e))}}])}();function xe(){var e=this.fadeData,t=this.options,r=this.renderData;if((0,o.isNull)(r))return!0;var n=t.imgUrl,i=r.lastUseStyle,a=e.lastDrawImage,s=e.backgroundInfo,u=s.width,c=s.height,l=a.tag,f=a.kind,p=j(t,i),h=a.width===u,d=a.height===c,g=h&&d;if("image"===f&&g&&(0,o.isString)(p)&&p===l)return!0;var m=(0,o.isArray)(n)&&n.join("_")||"";if("linear-gradient"===f&&g&&m===l)return!0;var y=C(t,i);return!("background-color"!==f||!g||l!==y)}function Ae(){var e=this,t=this.options,r=this.fadeData;r.transparentId=setTimeout(function(){if(clearTimeout(r.transparentId),r.isTransitioning)return Reflect.apply(Ae,e,[]);Reflect.apply(xe,e,[])||r.run()},2*t.raindropsTimeInterval)}function Ie(){var e=this.renderData,t=this.fadeData,r=this.options,n=t.toBeList;if((0,o.isNull)(e))return Reflect.apply(_e,this,["还没有准备好,即将退出"]);if((0,o.isEmptyArray)(n))return Reflect.apply(_e,this,["由于缺少当前渲染的背景,退出"]);if(0===t.drawProgress&&n.forEach(function(e){}),t.drawProgress>1e3){if(t.lastDrawImage=n.shift(),Reflect.apply(ae,this,[t.lastDrawImage]),(0,o.isEmptyArray)(n)){var i=e.lastUseStyle;((0,o.isNull)(r.imgUrl)||(0,o.isBusinessEmptyString)(r.imgUrl)||(0,o.isZero)(r.imgUrl.length))&&u(i.backgroundColor)&&c(i.backgroundImage)&&Reflect.apply(D,this,[!1])}return Reflect.apply(_e,this,["当前执行完毕,开启下次执行"])}var a=t.lastDrawImage,s=t.backgroundInfo;t.drawProgress+=18;var l=document.createElement("canvas"),f=l.getContext("2d");if((0,o.isNull)(f)||(0,o.isNull)(a.resource)||(0,o.isEmptyArray)(n))return Reflect.apply(_e,this,"环境值错误");var p=s.width,h=s.height;l.width=p,l.height=h,f.clearRect(0,0,p,h),f.drawImage(a.resource,0,0,p,h),f.globalAlpha=t.drawProgress/1e3,f.drawImage(n[0].resource,0,0,p,h),f.globalAlpha=1;var d={resource:l,width:p,height:h,kind:"mix",tag:"".concat(a.tag," >> ").concat(n[0].tag)};Reflect.apply(ae,this,[d]),n.length>1&&(t.lastDrawImage=d,n.shift(),t.drawProgress=0)}function _e(e){this.fadeData.isTransitioning=!1,Reflect.apply(Ae,this,[])}function De(e){"@babel/helpers - typeof";return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ne(n.key),n)}}function Ce(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fe(e,t,r){return(t=Ne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ne(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==De(t)?t:t+""}function Ue(e,t){return e.get(Be(e,t))}function Be(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var Le=new WeakMap,Me=new WeakSet,$e=function(){return function(e,t,r){return t&&je(e.prototype,t),r&&je(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){Ce(e,t),t.add(e)}(this,Me),Fe(this,"backgroundInfo",{width:0,height:0}),Fe(this,"transparentId",setTimeout(Boolean)),Fe(this,"lastDrawImage",void 0),Fe(this,"toBeList",[]),Fe(this,"drawProgress",0),Fe(this,"isTransitioning",!1),function(e,t,r){Ce(e,t),t.set(e,r)}(this,Le,void 0),Fe(this,"isDark",!1);var r,n,i=t.renderData;if((0,o.isNull)(i))r=10,n=10;else{var a=getComputedStyle(i.parentElement);r=parseInt(a.width),n=parseInt(a.height)}this.backgroundInfo={width:r,height:n},this.lastDrawImage={resource:_(r,n),width:r,height:n,kind:"default",tag:""},s=Le,u=this,c=window.matchMedia("(prefers-color-scheme: dark)"),s.set(Be(s,u),c),this.isDark=Ue(Le,this).matches,Ue(Le,this).addEventListener("change",Be(Me,this,We));var s,u,c,l=this;Object.defineProperty(Ue(Le,this),"isDark",{get:function(){return l.isDark},set:function(e){l.isDark=e,Reflect.apply(xe,t,[])||Reflect.apply(D,t,[!0])}})},[{key:"run",value:function(){this.isTransitioning||(this.drawProgress=0,this.isTransitioning=!0)}},{key:"destroy",value:function(){this.transparentId&&clearTimeout(this.transparentId),Ue(Le,this).removeEventListener("change",Be(Me,this,We))}}])}();function We(e){this.isDark=e.matches}function ze(e){"@babel/helpers - typeof";return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach(function(t){Je(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function He(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qe(n.key),n)}}function Ye(e,t,r){return t=Ze(t),function(e,t){if(t&&("object"==ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qe()?Reflect.construct(t,r||[],Ze(e).constructor):t.apply(e,r))}function qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qe=function(){return!!e})()}function Ze(e){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ze(e)}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function Ke(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function Je(e,t,r){return(t=Qe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qe(e){var t=function(e,t){if("object"!=ze(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ze(t)?t:t+""}function et(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var tt=new WeakMap,rt=function(e){function t(e,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Je(i=Ye(this,t,[e]),"renderData",null),Je(i,"options",void 0),Je(i,"fadeData",void 0),Je(i,"defaults",v),Je(i,"initialized",!1),Ke(i,tt,(0,y.debounce)(ue,{this:i})),Object.defineProperties(i,{defaults:{value:i.defaults,writable:!1,enumerable:!1,configurable:!1}}),i.options=new ke(Ge(Ge({},i.defaults),r)),i.renderData=new Y(e,i.reloadBackground,i),i.fadeData=new $e(i),(0,o.isFalse)(i.initState)||(0,o.isNull)(e.parentElement)||(0,o.isNull)(i.config)||(0,o.isNull)(i.gl)?i.initState=!1:(!function(e){var t=e.parentElement;e.width=t.clientWidth,e.height=t.clientHeight,n(e,{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1,pointerEvents:"none"})}(e),Reflect.apply(se,i,[])),window.matchMedia("(prefers-color-scheme: dark)"),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(t,e),function(e,t,r){return t&&He(e.prototype,t),r&&He(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"raindropsFall",value:function(){var e=this.renderData,t=this.options,r=this.fadeData;if(!(0,o.isNull)(e)){var n=r.backgroundInfo,i=e.lastRaindropsFallTime,a=t.raindropsTimeInterval,s=t.dropRadius,u=Date.now();if(!(u-i<a)){e.lastRaindropsFallTime=u;var c=function(e){return(0,y.getRandomInt)(e)},l=n.width,f=n.height;this.drop(c(l),c(f),s,.03)}}}},{key:"drop",value:function(e,t,r,n){Reflect.apply(le,this,[e,t,r,n])}},{key:"fade",value:function(){Reflect.apply(Ie,this,[])}},{key:"reloadBackground",value:function(){et(tt,this).call(this)}},{key:"destroy",value:function(){Reflect.apply(ce,this,[])}},{key:"show",value:function(){this.options.visible=!0,this.canvas.style.visibility="visible",Reflect.apply(M,this,[])}},{key:"hide",value:function(){this.options.visible=!1,this.canvas.style.visibility="hidden",Reflect.apply(W,this,[])}},{key:"pause",value:function(){this.options.running=!1}},{key:"play",value:function(){this.options.running=!0}},{key:"changePlayingState",value:function(){var e=this.options;e.running=!e.running}},{key:"set",value:function(e,t){"imgUrl"===e?(this.options.imgUrl=t,Reflect.apply(L,this,[])):"darkMode"===e?(this.options.darkMode=t,Reflect.apply(xe,this,[])||Reflect.apply(D,this,[!0])):this.options[e]=t}}])}(m);function nt(e,t){var r=(0,i.useRef)(null);return(0,i.useEffect)(function(){if(!(0,o.isNull)(e.current))return r.current=new rt(e.current,t),function(){var e;return null===(e=r.current)||void 0===e?void 0:e.destroy()}},[]),r}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return i[e](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.nc=void 0;var s={};a.d(s,{z:()=>T});var u=a(649),c=a(950),l=a(362);a(713);function f(e){"@babel/helpers - typeof";return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){var r=(0,u.useRef)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t));(0,u.useEffect)(function(){t&&e.current&&Object.keys(e.current.defaults).forEach(function(n){var i,o,a=t[n],s=(i=a,o=r.current[n],(0,l.isArray)(i)&&(0,l.isArray)(o)&&(i.length!==o.length||!i.every(function(e){return i[e]===o[e]}))||(!(0,l.isArray)(i)||!(0,l.isArray)(o))&&i!==o);e.current&&s&&(r.current[n]=(0,l.isArray)(a)?p(a):t[n],e.current.set(n,a))})},[t])}var y=a(291);function v(e){"@babel/helpers - typeof";return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}var b,w=["children","style","option"];function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S.apply(null,arguments)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){P(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function P(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=y.Ay.div(b||(b=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: relative;\n top: 0px;\n left: 0px;\n z-index: 1;\n width: 100%;\n height: 100%;\n min-width: 1px;\n min-height: 1px;\n contain: layout paint style;\n will-change: transform, opacity;\n"]))),T=(0,u.forwardRef)(function(e,t){var r=e.children,n=e.style,i=e.option,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,w),a=(0,u.useRef)(null),s=(0,c.n)(a,i);return m(s,i),(0,u.useImperativeHandle)(t,function(){return{toggleState:function(){var e;null===(e=s.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null===(t=s.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null===(e=s.current)||void 0===e||e.pause()},set:function(e){if(!(0,l.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var i,o=t[r];null===(i=s.current)||void 0===i||i.set(o,e[o])}}}}),u.default.createElement(O,S({style:R({backgroundRepeat:"round"},n)},o),u.default.createElement("canvas",{ref:a,"data-earthnut-ui":"canvas"}),r)});T.displayName="en-background-ripple";const k=s.z;export{k as BackgroundRipple};
package/README.md CHANGED
@@ -25,4 +25,4 @@ npm install --save earthnut
25
25
 
26
26
  ## 文档
27
27
 
28
- 参阅 [earthnut](https://earthnut.dev/)
28
+ 参阅 [earthnut](https://earthnut.dev/quickUse/)
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BackgroundRipplesProps } from '../../customHooks/useRipples/types';
2
+ import { RipplesOptions } from '../../customHooks/useRipples/types';
3
3
  import { RippleEle } from './types';
4
4
  /**
5
5
  *
@@ -31,5 +31,7 @@ import { RippleEle } from './types';
31
31
  * ```
32
32
  *
33
33
  */
34
- declare const BackgroundRipple: React.ForwardRefExoticComponent<BackgroundRipplesProps & React.RefAttributes<RippleEle>>;
34
+ declare const BackgroundRipple: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
35
+ option?: RipplesOptions;
36
+ } & React.RefAttributes<RippleEle>>;
35
37
  export { BackgroundRipple };
@@ -1,5 +1,5 @@
1
- import { BackgroundRipplesProps, Ripples } from '../../customHooks';
1
+ import { Ripples, RipplesOptions } from '../../customHooks';
2
2
  /**
3
3
  * 更新参数数据
4
4
  */
5
- export declare function useOptionUpdate(ripplesRef: React.RefObject<Ripples | null>, props: BackgroundRipplesProps): void;
5
+ export declare function useOptionUpdate(ripplesRef: React.RefObject<Ripples | null>, option: RipplesOptions | undefined): void;
@@ -0,0 +1,8 @@
1
+ import { Ripples } from '../ripplesClass';
2
+ /**
3
+ * 是否能执行渐变
4
+ *
5
+ * 返回值为 true 时禁止渐变
6
+ *
7
+ */
8
+ export declare function forbiddenRunSide(this: Ripples): boolean;
@@ -0,0 +1,2 @@
1
+ /** 检测数据是否为 url 外联图像地址 */
2
+ export declare function extractUrl(value: string): string | null;
@@ -0,0 +1,8 @@
1
+ import { OriginStyle } from '../buildBackground/type';
2
+ import { UseOptions } from '../rippersData/useOptions';
3
+ /** 获取当前的背景图的地址 */
4
+ export declare function getNewImage(options: UseOptions, lastStyle: OriginStyle): string | null;
5
+ /** 获取新的背景图 */
6
+ export declare function getNewColor(options: UseOptions, originStyle: OriginStyle): string;
7
+ /** 获取新的渐变 */
8
+ export declare function getNewGradient(): void;
@@ -6,7 +6,7 @@ import { Ripples } from './ripplesClass';
6
6
  *
7
7
  *
8
8
  * @param canvas `usrRef` 包裹的 `HTMLCanvasElement`,用于绘制图像
9
- * @param props 初始化的
9
+ * @param option 初始化的
10
10
  * @version 0.0.3
11
11
  * @see https://earthnut.dev/use-ripples
12
12
  * @see JQuery https://github.com/sirxemic/jquery.ripples
@@ -36,5 +36,5 @@ import { Ripples } from './ripplesClass';
36
36
  * ```
37
37
  *
38
38
  */
39
- export declare function useRipples(canvas: React.RefObject<HTMLCanvasElement | null>, props?: BackgroundRipplesProps): React.RefObject<Ripples | null>;
39
+ export declare function useRipples(canvas: React.RefObject<HTMLCanvasElement | null>, option?: RipplesOptions): React.RefObject<Ripples | null>;
40
40
  export type { Ripples, BackgroundRipplesProps, RipplesOptions, RippleImgUrl };
@@ -6,7 +6,6 @@
6
6
  * @CreateDate 周二 12/17/2024
7
7
  * @Description BackgroundRipples 的类型声明文件
8
8
  ****************************************************************************/
9
- import { CSSProperties, ReactElement } from 'react';
10
9
  export type ImageCrossOrigin = 'anonymous' | 'use-credentials' | 'no-cors';
11
10
  /**
12
11
  *
@@ -29,13 +28,7 @@ export type ImageCrossOrigin = 'anonymous' | 'use-credentials' | 'no-cors';
29
28
  * - darkMode 暗黑模式,仅用于在默认的背景图时更改默认背景图的背景色,如果使用了 `imgUrl` 配置,请执行处理色差异常
30
29
  *
31
30
  */
32
- export interface BackgroundRipplesProps {
33
- /**
34
- * 用于设定外层的样式
35
- */
36
- style?: CSSProperties;
37
- /** 子元素 */
38
- children?: ReactElement | ReactElement[];
31
+ export type BackgroundRipplesProps = React.HTMLAttributes<HTMLDivElement> & {
39
32
  /**
40
33
  * ## 可设定涟漪的参数
41
34
  *
@@ -53,7 +46,7 @@ export interface BackgroundRipplesProps {
53
46
  * - darkMode 暗黑模式,仅用于在默认的背景图时更改默认背景图的背景色,如果使用了 `imgUrl` 配置,请执行处理色差异常
54
47
  */
55
48
  option?: RipplesOptions;
56
- }
49
+ };
57
50
  /**
58
51
  *
59
52
  * WebGLProgram
@@ -5,7 +5,7 @@
5
5
  * 该数值在组件卸载时会自动调用 `clearTimeout` 清理
6
6
  *
7
7
  * @version 0.0.3
8
- * @see https://earthnut.dev/use-time-id
8
+ * @see https://earthnut.dev/custom-hooks/use-time-id
9
9
  * @example
10
10
  *
11
11
  * 使用: