earthnut 0.1.7-alpha.0 → 0.1.7

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.
package/index.cjs CHANGED
@@ -4,4 +4,4 @@
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
7
- "use client";(()=>{var e,t,r={45:(e,t,r)=>{"use strict";r.d(t,{EnLayout:()=>pe,EnLayoutContent:()=>S,EnLayoutFooter:()=>x,EnLayoutHeader:()=>f,EnLayoutSideBar:()=>g,Layout:()=>pe,LayoutContent:()=>S,LayoutFooter:()=>x,LayoutHeader:()=>f,LayoutSideBar:()=>g});var n=r(953),i=r.n(n);const o=require("xcn");var a,s=r(291),u=["className","children","height","noSticky"];function l(){return l=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},l.apply(null,arguments)}var c=s.Ay.div(a||(a=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: header;\n position: sticky;\n top: 0px;\n left: 0px;\n z-index: 10;\n height: var(--layout-header-height);\n box-shadow: 0 4px 13px -3px #0000001a;\n overflow: hidden;\n"]))),f=i().forwardRef(function(e,t){var r=e.className,n=e.children,a=(e.height,e.noSticky,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,u));return i().createElement(c,l({ref:t,className:(0,o.xcn)(["en-layout-header"],r)},a,{"data-earthnut-ui":"layout-header"}),n)});f.displayName="LayoutHeader";var p,d=["className","width","right","full"];function h(){return h=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},h.apply(null,arguments)}var y=s.Ay.div(p||(p=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: sticky;\n left: 0;\n z-index: 8;\n grid-area: side;\n overflow-x: hidden;\n overflow-y: auto;\n"]))),g=i().forwardRef(function(e,t){var r=e.className,n=(e.width,e.right,e.full,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));return i().createElement(y,h({className:(0,o.xcn)("en-layout-side",r),ref:t},n,{"data-earthnut-ui":"layout-side-bar"}))});g.displayName="LayoutSideBar";var m,v=["className"];function b(){return b=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},b.apply(null,arguments)}var w=s.Ay.main(m||(m=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n"]))),S=i().forwardRef(function(e,t){var r=e.className,n=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,v);return i().createElement(w,b({ref:t,className:(0,o.xcn)("en-layout-main",r)},n,{"data-earthnut-ui":"layout-content"}))});S.displayName="LayoutContent";var E,O=["className","height"];function R(){return R=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},R.apply(null,arguments)}var P=s.Ay.div(E||(E=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: footer;\n height: var(--layout-footer-height);\n box-shadow: 0 -1px 13px 0px #0000001a;\n overflow: hidden;\n"]))),x=i().forwardRef(function(e,t){var r=e.className,n=(e.height,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,O));return i().createElement(P,R({ref:t},n,{className:(0,o.xcn)("en-layout-footer",r),"data-earthnut-ui":"layout-footer"}))});x.displayName="LayoutFooter";var T,j,k,A,I,D,_,N,C,F,L,$,B,U,M,z,H,W,X,G,Y,q,V,Z,K,J=r(570);function Q(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ee=s.I4.div(T||(T=Q(["\n position: relative;\n top: 0px;\n width: var(--layout-width);\n height: var(--layout-height);\n overflow-x: hidden;\n overflow-y: auto;\n\n ","\n // 侧边栏全屏样式\n ","\n\n // ------------------------------\n // --- 标准模式(全)与侧边栏右置(全)共用样式 ---\n // 标准模式(全)与侧边栏右置(全)\n ","\n\n // 标准模式(全) 侧边栏与内容区设置\n ","\n // 侧边栏(全) 侧边栏与内容区设置\n ","\n\n // 侧边栏 (全) 左侧全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n \n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 标准模式(无 header)与侧边栏在右侧的无头模式共用样式 ---\n // 标准的无头模式样式、侧边栏在右侧的无头模式样式\n ","\n \n // 侧边栏(无 header )全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n\n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // 标准模式(无 footer)与侧边栏右置(无 footer)共用样式\n // 没有 footer\n ","\n \n\n // 标准模式(无 footer) 侧边栏与内容区设置\n ","\n\n\n// 侧边栏在右侧的无 footer 模式样式\n ","\n\n// 侧边栏 (全) 左侧全屏\n// side bar 居左全尺寸\n// side bar 值由 en-layout-side-full 控制\n","\n\n// 标准的 side bar 居左全尺寸\n ","\n\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 分割线 --- \n // 下面是仅头部、底部和侧边栏布局\n // 仅底部布局\n ","\n\n // 仅头部布局\n ","\n \n // 仅侧边布局\n// 标准的无头模式样式、侧边栏在右侧的无头模式样式\n// side bar 值由 en-layout-side-full 控制\n ","\n \n // 右侧侧边布局\n ","\n"])),function(e){var t=e.$headerNoSticky,r=e.$header,n=e.$layoutType,i=e.$content,o=e.$sidebar;return t&&(0,s.AH)(j||(j=Q(["\n // 头部不粘连样式,头部区域设置\n & > ."," {\n position: relative;\n z-index: 2;\n }\n\n ","\n\n ","\n "])),r,("simple-all"===n||"side-right-all"===n)&&(0,s.AH)(k||(k=Q(["\n & > ."," > ."," {\n top: 0;\n min-height: calc(\n var(--layout-height) - var (--layout-footer-height) - var(--layout-header-height)\n );\n max-height: var(--layout-height);\n }\n "])),i,o),("simple-no-footer"===n||"side-right-no-footer"===n)&&(0,s.AH)(A||(A=Q(["\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n "])),o))},function(e){var t=e.$layoutType,r=e.$sidebar;return"side-full"===t&&(0,s.AH)(I||(I=Q(["\n & > ."," {\n top: 0;\n height: var(--layout-height);\n }\n "])),r)},function(e){var t=e.$layoutType,r=e.$content,n=e.$sidebar;return["simple-all","side-right-all"].includes(t)&&(0,s.AH)(D||(D=Q(["\n // 子元素\n & > ."," {\n display: grid;\n grid-template-rows:\n calc(var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height))\n auto;\n min-height: calc(100% - var(--layout-header-height) - var(--layout-footer-height));\n\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n min-height: calc(\n var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height)\n );\n max-height: calc(var(--layout-height) - var(--layout-header-height));\n }\n }\n "])),r,n)},function(e){var t=e.$layoutType,r=e.$content;return["simple-all","simple-no-header"].includes(t)&&(0,s.AH)(_||(_=Q(["\n & > ."," {\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n '. content';\n }\n "])),r)},function(e){var t=e.$layoutType,r=e.$content;return["side-right-all","side-right-no-header"].includes(t)&&(0,s.AH)(N||(N=Q(["\n & > ."," {\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'content .';\n }\n "])),r)},function(e){var t=e.$layoutType;return["side-full-all","side-right-full-all"].includes(t)&&(0,s.AH)(C||(C=Q(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto var(--layout-footer-height);\n gap: 0px;\n "])))},function(e){return"side-full-all"===e.$layoutType&&(0,s.AH)(F||(F=Q(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content'\n 'side footer';\n "])))},function(e){return"side-right-full-all"===e.$layoutType&&(0,s.AH)(L||(L=Q(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side'\n 'footer side';\n "])))},function(e){var t=e.$layoutType,r=e.$content,n=e.$sidebar;return["simple-no-header","side-right-no-header"].includes(t)&&(0,s.AH)($||($=Q(["\n & > ."," {\n display: grid;\n grid-template-rows: auto;\n // side bar 块的样式\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n }\n "])),r,n)},function(e){var t=e.$layoutType;return["side-full-no-header","side-right-full-no-header"].includes(t)&&(0,s.AH)(B||(B=Q(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n gap: 0px;\n "])))},function(e){return"side-full-no-header"===e.$layoutType&&(0,s.AH)(U||(U=Q(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n 'side footer';\n "])))},function(e){return"side-right-full-no-header"===e.$layoutType&&(0,s.AH)(M||(M=Q(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'footer side';\n "])))},function(e){var t=e.$layoutType,r=e.$sidebar;return["simple-no-footer","side-right-no-footer"].includes(t)&&(0,s.AH)(z||(z=Q(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n min-height: calc(100% - var(--layout-header-height));\n gap: 0px;\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n height: calc(var(--layout-height) - var(--layout-header-height));\n }\n "])),r)},function(e){return"simple-no-footer"===e.$layoutType&&(0,s.AH)(H||(H=Q(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'header header'\n 'side content'\n '. content';\n "])))},function(e){return"side-right-no-footer"===e.$layoutType&&(0,s.AH)(W||(W=Q(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header header'\n 'content side'\n 'content .';\n "])))},function(e){var t=e.$layoutType,r=e.$main;return["side-full-no-footer","side-right-full-no-footer"].includes(t)&&(0,s.AH)(X||(X=Q(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n gap: 0px;\n\n // content 块\n & > ."," {\n min-height: calc(var(--layout-height) - var (--layout-header-height));\n }\n "])),r)},function(e){return"side-full-no-footer"===e.$layoutType&&(0,s.AH)(G||(G=Q(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content';\n "])))},function(e){return"side-right-full-no-footer"===e.$layoutType&&(0,s.AH)(Y||(Y=Q(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side';\n "])))},function(e){return"only-footer"===e.$layoutType&&(0,s.AH)(q||(q=Q(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'content' 'footer';\n "])))},function(e){return"only-header"===e.$layoutType&&(0,s.AH)(V||(V=Q(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'header' 'content';\n "])))},function(e){var t=e.$layoutType;return["simple-only-side","side-right-only-side","side-full-only-side","side-right-full-only-side"].includes(t)&&(0,s.AH)(Z||(Z=Q(["\n display: grid;\n // 纵向空间占比设置\n grid-template-rows: 100%;\n // 横向空间占比设置\n grid-template-columns: var(--layout-side-bar-width) auto;\n gap: 0px;\n grid-template-areas:\n 'side content'\n '. content';\n "])))},function(e){var t=e.$layoutType;return("side-right-full-only-side"===t||"side-right-only-side"===t)&&(0,s.AH)(K||(K=Q(["\n grid-template-areas:\n 'content side'\n 'content .';\n grid-template-columns: auto var(--layout-side-bar-width);\n "])))});function te(e){return(0,J.isNumber)(e)||parseInt(e)===Number(e)?e+"px":e||0}var re=r(86);function ne(e){return"en-"+e+"-"+(0,re.getRandomString)({length:12,includeNumbers:!0,includeUppercaseLetters:!0})}function ie(e){"@babel/helpers - typeof";return ie="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},ie(e)}var oe,ae=["className","children","style","width","height","classes"];function se(){return se=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},se.apply(null,arguments)}function ue(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 le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach(function(t){ce(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ce(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ie(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ie(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fe=s.Ay.div(oe||(oe=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n overflow: auto;\n"]))),pe=n.forwardRef(function(e,t){var r,i,a,s,u=e.className,l=e.children,c=e.style,p=e.width,d=void 0===p?"100vw":p,h=e.height,y=void 0===h?"100vh":h,m=e.classes,v=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,ae),b="simple",w=!1,E=!1,O=!1,R=!1,P=!1,T=150,j="2.8rem",k="2rem",A=!1,I=ne("header"),D=ne("content"),_=ne("main"),N=ne("sidebar"),C=ne("footer");n.Children.forEach(l,function(e){if(n.isValidElement(e))if(E||e.type!==f)if(O||e.type!==g)if(R||e.type!==S)if(R||e.type!==pe){if(!P&&e.type===x){var t=e;k=t.props.height||k,s=n.cloneElement(t,{className:(0,o.xcn)(C,t.props.className)}),P=!0}}else{var u=e;a=n.createElement(fe,{"data-earthnut-ui":"layout-content",className:(0,o.xcn)(_,"en-layout-main")},u),R=!0}else{var l=e;a=n.cloneElement(l,{className:(0,o.xcn)(_,l.props.className)}),R=!0}else{var c=e,p=c.props;T=p.width||T,b=p.right&&p.full?"side-right-full":p.right?"side-right":p.full?"side-full":"simple",A=(0,J.isTrue)(p.full),i=n.cloneElement(c,{className:(0,o.xcn)(N,c.props.className)}),O=!0}else{var d,h=e,y=h.props;j=y.height||j,w=null!==(d=y.noSticky)&&void 0!==d&&d,r=n.cloneElement(h,{className:(0,o.xcn)(I,h.props.className)}),E=!0}});var F=E&&O&&R&&P&&"".concat(b,"-all")||E&&R&&O&&"".concat(b,"-no-footer")||O&&R&&P&&"".concat(b,"-no-header")||R&&P&&"only-footer"||R&&E&&"only-header"||R&&O&&(A=!0)&&"".concat(b,"-only-side")||"simple",L=le({layoutHeight:d,layoutWith:y,sideBarWidth:T,headerHeight:j,footerHeight:k},v.theme||{}),$=/side.*full/.test(b);return n.createElement(ee,se({ref:t,$headerNoSticky:w,$layoutType:F,$header:I,$sidebar:N,$main:_,$content:D,$footer:C,className:(0,o.xcn)(A&&"en-layout-side-full","en-layout-".concat(F),u,m),style:le({"--layout-width":te(d),"--layout-height":te(y),"--layout-side-bar-width":te(T),"--layout-header-height":te(j),"--layout-footer-height":te(k)},c),theme:L},v,{"data-earthnut-ui":"layout"}),$?n.createElement(n.Fragment,null,i,r,a,s):n.createElement(n.Fragment,null,r,P?n.createElement("div",{className:(0,o.xcn)(D),"data-earthnut-ui":"layout-with-foot-content"},i,a):n.createElement(n.Fragment,null,i,a),s))});pe.displayName="Layout"},86:e=>{"use strict";e.exports=require("a-js-tools")},98:(e,t,r)=>{"use strict";var n;r.d(t,{U:()=>i});var i=r(291).I4.div(n||(n=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"])))},213:(e,t,r)=>{"use strict";r.d(t,{LazyBackgroundRipple:()=>y});var n=r(953),i=r.n(n),o=r(224),a=r(570),s=r(98),u=r(634);function l(e){"@babel/helpers - typeof";return l="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},l(e)}var c=["children","style","option"];function f(){return f=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},f.apply(null,arguments)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=(0,n.forwardRef)(function(e,t){var r=e.children,l=e.style,p=e.option,h=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,c),y=(0,n.useRef)(null),g=(0,u.useLazyRipples)().hook,m=(0,n.useRef)(null);return(0,o.k)(m,p),(0,n.useImperativeHandle)(t,function(){return{toggleState:function(){var e;null==m||null===(e=m.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null==m||null===(t=m.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null==m||null===(e=m.current)||void 0===e||e.pause()},set:function(e){if(!(0,a.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var i,o=t[r];null==m||null===(i=m.current)||void 0===i||i.set(o,e[o])}}}}),(0,n.useEffect)(function(){g&&(m.current=g(y,p).current)},[g]),i().createElement(s.U,f({style:d({backgroundRepeat:"round"},l)},h),i().createElement("canvas",{ref:y,"data-earthnut-ui":"canvas",width:0,height:0}),r)});y.displayName="en-lazy-background-ripple"},224:(e,t,r)=>{"use strict";r.d(t,{k:()=>c});var n=r(570),i=r(953);r(713);function o(e){"@babel/helpers - typeof";return o="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},o(e)}function a(e){return function(e){if(Array.isArray(e))return s(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 s(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)?s(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 s(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 u(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 l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=(0,i.useRef)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t));(0,i.useEffect)(function(){t&&e.current&&Object.keys(e.current.defaults).forEach(function(i){var o,s,u=t[i],l=(o=u,s=r.current[i],(0,n.isArray)(o)&&(0,n.isArray)(s)&&(o.length!==s.length||!o.every(function(e){return o[e]===s[e]}))||(!(0,n.isArray)(o)||!(0,n.isArray)(s))&&o!==s);e.current&&l&&(r.current[i]=(0,n.isArray)(u)?a(u):t[i],e.current.set(i,u))})},[t])}},282:(e,t,r)=>{"use strict";r.d(t,{BackgroundRipple:()=>y,LazyBackgroundRipple:()=>g.LazyBackgroundRipple});var n=r(953),i=r.n(n),o=r(705),a=r(224),s=r(570),u=r(98);function l(e){"@babel/helpers - typeof";return l="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},l(e)}var c=["children","style","option"];function f(){return f=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},f.apply(null,arguments)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=(0,n.forwardRef)(function(e,t){var r=e.children,l=e.style,p=e.option,h=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,c),y=(0,n.useRef)(null),g=(0,o.useRipples)(y,p);return(0,a.k)(g,p),(0,n.useImperativeHandle)(t,function(){return{toggleState:function(){var e;null===(e=g.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null===(t=g.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null===(e=g.current)||void 0===e||e.pause()},set:function(e){if(!(0,s.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var i,o=t[r];null===(i=g.current)||void 0===i||i.set(o,e[o])}}}}),i().createElement(u.U,f({style:d({backgroundRepeat:"round"},l)},h),i().createElement("canvas",{ref:y,"data-earthnut-ui":"canvas",width:0,height:0}),r)});y.displayName="en-background-ripple";var g=r(213)},291:(e,t,r)=>{"use strict";r.d(t,{AH:()=>Ht,Ay:()=>Gt,I4:()=>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(953),a=r.n(o),s=r(945),u=r.n(s),l="-ms-",c="-moz-",f="-webkit-",p="comm",d="rule",h="decl",y="@keyframes",g=Math.abs,m=String.fromCharCode,v=Object.assign;function b(e){return e.trim()}function w(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,r){return e.replace(t,r)}function E(e,t,r){return e.indexOf(t,r)}function O(e,t){return 0|e.charCodeAt(t)}function R(e,t,r){return e.slice(t,r)}function P(e){return e.length}function x(e){return e.length}function T(e,t){return t.push(e),e}function j(e,t){return e.filter(function(e){return!w(e,t)})}var k=1,A=1,I=0,D=0,_=0,N="";function C(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:k,column:A,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 L(e){for(;e.root;)e=F(e.root,{children:[e]});T(e,e.siblings)}function $(){return _=D>0?O(N,--D):0,A--,10===_&&(A=1,k--),_}function B(){return _=D<I?O(N,D++):0,A++,10===_&&(A=1,k++),_}function U(){return O(N,D)}function M(){return D}function z(e,t){return R(N,e,t)}function H(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 W(e){return k=A=1,I=P(N=e),D=0,[]}function X(e){return N="",e}function G(e){return b(z(D-1,V(91===e?e+2:40===e?e+1:e)))}function Y(e){for(;(_=U())&&_<33;)B();return H(e)>2||H(_)>3?"":" "}function q(e,t){for(;--t&&B()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return z(e,M()+(t<6&&32==U()&&32==B()))}function V(e){for(;B();)switch(_){case e:return D;case 34:case 39:34!==e&&39!==e&&V(_);break;case 40:41===e&&V(e);break;case 92:B()}return D}function Z(e,t){for(;B()&&e+_!==57&&(e+_!==84||47!==U()););return"/*"+z(t,D-1)+"*"+m(47===e?e:B())}function K(e){for(;!H(U());)B();return z(e,D)}function J(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Q(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 p:return"";case y:return e.return=e.value+"{"+J(e.children,n)+"}";case d:if(!P(e.value=e.props.join(",")))return""}return P(r=J(e.children,n))?e.return=e.value+"{"+r+"}":""}function ee(e,t,r){switch(function(e,t){return 45^O(e,0)?(((t<<2^O(e,0))<<2^O(e,1))<<2^O(e,2))<<2^O(e,3):0}(e,t)){case 5103:return f+"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 f+e+e;case 4789:return c+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return f+e+c+e+l+e+e;case 5936:switch(O(e,t+11)){case 114:return f+e+l+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return f+e+l+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return f+e+l+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return f+e+l+e+e;case 6165:return f+e+l+"flex-"+e+e;case 5187:return f+e+S(e,/(\w+).+(:[^]+)/,f+"box-$1$2"+l+"flex-$1$2")+e;case 5443:return f+e+l+"flex-item-"+S(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":l+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return f+e+l+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return f+e+l+S(e,"shrink","negative")+e;case 5292:return f+e+l+S(e,"basis","preferred-size")+e;case 6060:return f+"box-"+S(e,"-grow","")+f+e+l+S(e,"grow","positive")+e;case 4554:return f+S(e,/([^-])(transform)/g,"$1"+f+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,f+"$1"),/(image-set)/,f+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,f+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,f+"box-pack:$3"+l+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+f+e+e;case 4200:if(!w(e,/flex-|baseline/))return l+"grid-column-align"+R(e,t)+e;break;case 2592:case 3360:return l+S(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,w(e.props,/grid-\w+-end/)})?~E(e+(r=r[t].value),"span",0)?e:l+S(e,"-start","")+e+l+"grid-row-span:"+(~E(r,"span",0)?w(r,/\d+/):+w(r,/\d+/)-+w(e,/\d+/))+";":l+S(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return w(e.props,/grid-\w+-start/)})?e:l+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,f+"$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(O(e,t+1)){case 109:if(45!==O(e,t+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+f+"$2-$3$1"+c+(108==O(e,t+3)?"$3":"$2-$3"))+e;case 115:return~E(e,"stretch",0)?ee(S(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,i,o,a,s){return l+r+":"+n+s+(i?l+r+"-span:"+(o?a:+a-+n)+s:"")+e});case 4949:if(121===O(e,t+6))return S(e,":",":"+f)+e;break;case 6444:switch(O(e,45===O(e,14)?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+f+(45===O(e,14)?"inline-":"")+"box$3$1"+f+"$2$3$1"+l+"$2box$3")+e;case 100:return S(e,":",":"+l)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function te(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=ee(e.value,e.length,r));case y:return J([F(e,{value:S(e.value,"@","@"+f)})],n);case d:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(w(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":L(F(e,{props:[S(t,/:(read-\w+)/,":-moz-$1")]})),L(F(e,{props:[t]})),v(e,{props:j(r,n)});break;case"::placeholder":L(F(e,{props:[S(t,/:(plac\w+)/,":"+f+"input-$1")]})),L(F(e,{props:[S(t,/:(plac\w+)/,":-moz-$1")]})),L(F(e,{props:[S(t,/:(plac\w+)/,l+"input-$1")]})),L(F(e,{props:[t]})),v(e,{props:j(r,n)})}return""})}}function re(e){return X(ne("",null,null,null,[""],e=W(e),0,[0],e))}function ne(e,t,r,n,i,o,a,s,u){for(var l=0,c=0,f=a,p=0,d=0,h=0,y=1,v=1,b=1,w=0,R="",x=i,j=o,k=n,A=R;v;)switch(h=w,w=B()){case 40:if(108!=h&&58==O(A,f-1)){-1!=E(A+=S(G(w),"&","&\f"),"&\f",g(l?s[l-1]:0))&&(b=-1);break}case 34:case 39:case 91:A+=G(w);break;case 9:case 10:case 13:case 32:A+=Y(h);break;case 92:A+=q(M()-1,7);continue;case 47:switch(U()){case 42:case 47:T(oe(Z(B(),M()),t,r,u),u);break;default:A+="/"}break;case 123*y:s[l++]=P(A)*b;case 125*y:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+c:-1==b&&(A=S(A,/\f/g,"")),d>0&&P(A)-f&&T(d>32?ae(A+";",n,r,f-1,u):ae(S(A," ","")+";",n,r,f-2,u),u);break;case 59:A+=";";default:if(T(k=ie(A,t,r,l,c,i,s,R,x=[],j=[],f,o),o),123===w)if(0===c)ne(A,t,k,k,x,o,f,s,j);else switch(99===p&&110===O(A,3)?100:p){case 100:case 108:case 109:case 115:ne(e,k,k,n&&T(ie(e,k,k,0,0,i,s,R,i,x=[],f,j),j),i,j,f,s,n?x:j);break;default:ne(A,k,k,k,[""],j,0,s,j)}}l=c=d=0,y=b=1,R=A="",f=a;break;case 58:f=1+P(A),d=h;default:if(y<1)if(123==w)--y;else if(125==w&&0==y++&&125==$())continue;switch(A+=m(w),w*y){case 38:b=c>0?1:(A+="\f",-1);break;case 44:s[l++]=(P(A)-1)*b,b=1;break;case 64:45===U()&&(A+=G(B())),p=U(),c=f=P(R=A+=K(M())),w++;break;case 45:45===h&&2==P(A)&&(y=0)}}return o}function ie(e,t,r,n,i,o,a,s,u,l,c,f){for(var p=i-1,h=0===i?o:[""],y=x(h),m=0,v=0,w=0;m<n;++m)for(var E=0,O=R(e,p+1,p=g(v=a[m])),P=e;E<y;++E)(P=b(v>0?h[E]+" "+O:S(O,/&\f/g,h[E])))&&(u[w++]=P);return C(e,t,r,0===i?d:s,u,l,c,f)}function oe(e,t,r,n){return C(e,t,r,p,m(_),R(e,2,-2),0,n)}function ae(e,t,r,n,i){return C(e,t,r,h,R(e,0,n),R(e,n+1,-1),n,i)}var se={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},ue="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",le="active",ce="data-styled-version",fe="6.1.19",pe="/*!sc*/\n",de="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)),ye=(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"]),be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function Se(e){return e.replace(be,"-").replace(we,"")}var Ee=/(a)(d)/gi,Oe=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=Oe(t%52)+r;return(Oe(t%52)+r).replace(Ee,"$1-$2")}var Pe,xe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Te=function(e){return xe(5381,e)};function je(e){return Re(Te(e)>>>0)}function ke(e){return e.displayName||e.name||"Component"}function Ae(e){return"string"==typeof e&&!0}var Ie="function"==typeof Symbol&&Symbol.for,De=Ie?Symbol.for("react.memo"):60115,_e=Ie?Symbol.for("react.forward_ref"):60112,Ne={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},Le=((Pe={})[_e]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pe[De]=Fe,Pe);function $e(e){return("type"in(t=e)&&t.type.$$typeof)===De?Fe:"$$typeof"in e?Le[e.$$typeof]:Ne;var t}var Be=Object.defineProperty,Ue=Object.getOwnPropertyNames,Me=Object.getOwnPropertySymbols,ze=Object.getOwnPropertyDescriptor,He=Object.getPrototypeOf,We=Object.prototype;function Xe(e,t,r){if("string"!=typeof t){if(We){var n=He(t);n&&n!==We&&Xe(e,n,r)}var i=Ue(t);Me&&(i=i.concat(Me(t)));for(var o=$e(e),a=$e(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 l=ze(t,u);try{Be(e,u,l)}catch(e){}}}}return e}function Ge(e){return"function"==typeof e}function Ye(e){return"object"==typeof e&&"styledComponentId"in e}function qe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ve(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 Ke(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]=Ke(e[n],t[n]);else if(Ze(t))for(var n in t)e[n]=Ke(e[n],t[n]);return e}function Je(e,t){Object.defineProperty(e,"toString",{value:t})}function Qe(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 et=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 Qe(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(pe);return t},e}(),tt=new Map,rt=new Map,nt=1,it=function(e){if(tt.has(e))return tt.get(e);for(;rt.has(nt);)nt++;var t=nt++;return tt.set(e,t),rt.set(t,e),t},ot=function(e,t){nt=t+1,tt.set(e,t),rt.set(t,e)},at="style[".concat(ue,"][").concat(ce,'="').concat(fe,'"]'),st=new RegExp("^".concat(ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ut=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)},lt=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(pe),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var u=s.match(st);if(u){var l=0|parseInt(u[1],10),c=u[2];0!==l&&(ot(c,l),ut(e,c,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},ct=function(e){for(var t=document.querySelectorAll(at),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(ue)!==le&&(lt(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ft(){return r.nc}var pt=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ue,"]")));return t[t.length-1]}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(ue,le),n.setAttribute(ce,fe);var a=ft();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},dt=function(){function e(e){this.element=pt(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 Qe(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=pt(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}(),yt=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=de,mt={isServer:!de,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&&de&&gt&&(gt=!1,ct(this)),Je(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=function(r){var i=function(e){return rt.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(ue,".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(pe)},o=0;o<r;o++)i(o);return n}(i)})}return e.registerId=function(e){return it(e)},e.prototype.rehydrate=function(){!this.server&&de&&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 yt(r):t?new dt(r):new ht(r)}(this.options),new et(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(it(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(it(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(it(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),bt=/&/g,wt=/^\s*\/\/.*$/gm;function St(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=St(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?ye:s,l=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},c=u.slice();c.push(function(e){e.type===d&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(bt,r).replace(n,l))}),a.prefix&&c.push(te),c.push(Q);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(wt,""),l=re(o||i?"".concat(o," ").concat(i," { ").concat(u," }"):u);a.namespace&&(l=St(l,a.namespace));var f,p,d,h=[];return J(l,(f=c.concat((d=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&d(e)})),p=x(f),function(e,t,r,n){for(var i="",o=0;o<p;o++)i+=f[o](e,t,r,n)||"";return i})),h};return f.hash=u.length?u.reduce(function(e,t){return t.name||Qe(15),xe(e,t.name)},5381).toString():"",f}var Ot=new vt,Rt=Et(),Pt=a().createContext({shouldForwardProp:void 0,styleSheet:Ot,stylis:Rt}),xt=(Pt.Consumer,a().createContext(void 0));function Tt(){return(0,o.useContext)(Pt)}function jt(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=Tt().styleSheet,s=(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]),l=(0,o.useMemo)(function(){return Et({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,o.useEffect)(function(){u()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var c=(0,o.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:l}},[e.shouldForwardProp,s,l]);return a().createElement(Pt.Provider,{value:c},a().createElement(xt.Provider,{value:l},e.children))}var kt=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,Je(this,function(){throw Qe(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 Dt=function(e){return null==e||!1===e||""===e},_t=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Dt(a)&&(Array.isArray(a)&&a.isCss||Ge(a)?n.push("".concat(It(o),":"),a,";"):Ze(a)?n.push.apply(n,i(i(["".concat(o," {")],_t(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 se||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Nt(e,t,r,n){return Dt(e)?[]:Ye(e)?[".".concat(e.styledComponentId)]:Ge(e)?!Ge(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Nt(e(t),t,r,n):e instanceof kt?r?(e.inject(r,n),[e.getName(n)]):[e]:Ze(e)?_t(e):Array.isArray(e)?Array.prototype.concat.apply(ye,e.map(function(e){return Nt(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)&&!Ye(r))return!1}return!0}var Ft=Te(fe),Lt=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=xe(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=qe(n,this.staticRulesId);else{var i=Ve(Nt(this.rules,e,t,r)),o=Re(xe(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=qe(n,o),this.staticRulesId=o}else{for(var s=xe(this.baseHash,r.hash),u="",l=0;l<this.rules.length;l++){var c=this.rules[l];if("string"==typeof c)u+=c;else if(c){var f=Ve(Nt(c,e,t,r));s=xe(s,f+l),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=qe(n,p)}}return n},e}(),$t=a().createContext(void 0);$t.Consumer;var Bt={};new Set;function Ut(e,t,r){var i=Ye(e),s=e,u=!Ae(e),l=t.attrs,c=void 0===l?ye:l,f=t.componentId,p=void 0===f?function(e,t){var r="string"!=typeof e?"sc":Se(e);Bt[r]=(Bt[r]||0)+1;var n="".concat(r,"-").concat(je(fe+r+Bt[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):f,d=t.displayName,h=void 0===d?function(e){return Ae(e)?"styled.".concat(e):"Styled(".concat(ke(e),")")}(e):d,y=t.displayName&&t.componentId?"".concat(Se(t.displayName),"-").concat(t.componentId):t.componentId||p,g=i&&s.attrs?s.attrs.concat(c).filter(Boolean):c,m=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;m=function(e,t){return v(e,t)&&b(e,t)}}else m=v}var w=new Lt(r,y,i?s.componentStyle:void 0);function S(e,t){return function(e,t,r){var i=e.attrs,s=e.componentStyle,u=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,f=e.target,p=a().useContext($t),d=Tt(),h=e.shouldForwardProp||d.shouldForwardProp,y=me(t,p,u)||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?qe(o[u],s[u]):"style"===u?n(n({},o[u]),s[u]):s[u]}return t.className&&(o.className=qe(o.className,t.className)),o}(i,t,y),m=g.as||f,v={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===y||("forwardedAs"===b?v.as=g.forwardedAs:h&&!h(b,m)||(v[b]=g[b]));var w=function(e,t){var r=Tt();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(s,g),S=qe(l,c);return w&&(S+=" "+w),g.className&&(S+=" "+g.className),v[Ae(m)&&!ve.has(m)?"class":"className"]=S,r&&(v.ref=r),(0,o.createElement)(m,v)}(E,e,t)}S.displayName=h;var E=a().forwardRef(S);return E.attrs=g,E.componentStyle=w,E.displayName=h,E.shouldForwardProp=m,E.foldedComponentIds=i?qe(s.foldedComponentIds,s.styledComponentId):"",E.styledComponentId=y,E.target=i?s.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++)Ke(e,i[n],!0);return e}({},s.defaultProps,e):e}}),Je(E,function(){return".".concat(E.styledComponentId)}),u&&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 zt=function(e){return Object.assign(e,{isCss:!0})};function Ht(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ge(e)||Ze(e))return zt(Nt(Mt(ye,i([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Nt(n):zt(Nt(Mt(n,t)))}function Wt(e,t,r){if(void 0===r&&(r=ge),!t)throw Qe(1,t);var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,r,Ht.apply(void 0,i([n],o,!1)))};return o.attrs=function(i){return Wt(e,t,n(n({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return Wt(e,t,n(n({},r),i))},o}var Xt=function(e){return Wt(Ut,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(Ve(Nt(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=ft(),n=Ve([r&&'nonce="'.concat(r,'"'),"".concat(ue,'="true"'),"".concat(ce,'="').concat(fe,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Qe(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Qe(2);var r=e.instance.toString();if(!r)return[];var i=((t={})[ue]="",t[ce]=fe,t.dangerouslySetInnerHTML={__html:r},t),o=ft();return o&&(i.nonce=o),[a().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 Qe(2);return a().createElement(jt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Qe(3)}})(),"__sc-".concat(ue,"__")},336:(e,t,r)=>{"use strict";r.d(t,{useAnimationFrameId:()=>i});var n=r(953);function i(){var e=(0,n.useRef)(0);return(0,n.useEffect)(function(){return function(){e.current&&window.cancelAnimationFrame(e.current)}},[]),e}},378:e=>{"use strict";e.exports=require("a-element-inline-style")},570:e=>{"use strict";e.exports=require("a-type-of-js")},634:(e,t,r)=>{"use strict";r.d(t,{useLazyRipples:()=>a});var n=r(953);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(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 a(){var e=i((0,n.useState)(),2),t=e[0],o=e[1],a=i((0,n.useState)(!1),2),s=a[0],u=a[1],l=i((0,n.useState)(null),2),c=l[0],f=l[1];return(0,n.useEffect)(function(){u(!0),r.e(705).then(r.bind(r,705)).then(function(e){o(e.useRipples)}).catch(function(e){f(e)}).finally(function(){u(!1)})},[]),{hook:t,isLoading:s,error:c}}},705:(e,t,r)=>{"use strict";r.r(t),r.d(t,{useRipples:()=>nt});var n=r(953),i=r(378),o=r(570);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,l=/uniform (\w+) (\w+)/g;!(0,o.isNull)(a=l.exec(u));){var c=a[2];s.locations[c]=r.getUniformLocation(s.id,c)}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 l(e){return"none"===e||""===e}function c(){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,l=0;l<i.length;l++)if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,32,32,0,r.RGBA,i[l].type,null),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE){u=i[l];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,y(n.key),n)}}function d(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}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"!=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 g=d(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"canvas",void 0),h(this,"gl",void 0),h(this,"config",void 0),h(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(c,this,[])}),m=r(86),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 O(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 R(e,t,r){return e.set(x(e,t),r),r}function P(e,t){return e.get(x(e,t))}function x(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 T(e){return function(e){if(Array.isArray(e))return j(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 j(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)?j(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 j(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 k=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 l=function(){var e=i[u][c],r=Math.ceil(Math.sqrt(Math.pow(u,2)+Math.pow(c,2)))<=o,n=t?10:255,a=t?25:190,s=r?t?160:120:t?160:180,l=r?t?230:160:t?250:240,f=function(){return(0,m.getRandomInt)(n,a)};e[0]=f(),e[1]=f(),e[2]=f(),e[3]=(0,m.getRandomInt)(s,l)},c=u;c<=o;c++)l();for(var f=0;f<=o;f++)for(var p=0;p<=f;p++)i[f][p]=i[p][f];for(var d=o;d<n;d++)for(var h=0;h<=o;h++)i[d][h]=i[n-d][h];for(var y=0;y<o;y++)for(var g=o;g<n;g++)i[y][g]=i[y][n-g];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(T(i.slice(w)),T(i.slice(0,w))),r},A=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),O(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",k())},[{key:"build",value:function(e){P(b,this)>100&&R(b,this,0),this.data=k(R(b,this,P(b,this)+4),e)}}])}());function I(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=A.data,o=i.diameter,a=i.list,s=e*o,u=0;u<n.length;u+=4){var l=u/4%s,c=l%e%o,f=Math.floor(l/e),p=a[c][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,m.getRandomString)({length:8,includeNumbers:!0,includeUppercaseLetters:!0});A.build(null!==(e=n.darkMode)&&void 0!==e?e:r.isDark),o.push({resource:I(a,s),width:a,height:s,kind:"default",tag:u}),t&&r.run()}function _(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 N(e,t){return(0,o.isArray)(e.imgUrl)&&1===e.imgUrl.length&&e.imgUrl[0]||t.backgroundColor}function C(){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,l=s.width,c=s.height;i.width=l,i.height=c,a.clearRect(0,0,l,c);var f=N(r,n);a.beginPath(),a.fillStyle=f,a.fillRect(0,0,l,c),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:l,height:c};t.toBeList.push(p),t.run()}function F(){var e=this.fadeData,t=this.renderData,r=this.options;if((0,o.isNull)(t))return Reflect.apply(C,this,[]);var n=t.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,o.isArray)(r.imgUrl))return Reflect.apply(C,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(C,this,[]);var a=document.createElement("canvas"),s=a.getContext("2d");if((0,o.isNull)(s))return Reflect.apply(C,this,[]);var u=e.backgroundInfo,l=u.width,c=u.height;a.width=l,a.height=c,s.fillStyle="#fff",s.fillRect(0,0,l,c);var f=s.createLinearGradient(0,0,0,c);i.forEach(function(e,t){return f.addColorStop(t/(i.length-1),e)}),s.fillStyle=f,s.fillRect(0,0,l,c),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:l,height:c}),e.run()}function L(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}function B(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if((0,o.isNull)(t))Reflect.apply(F,this,[]);else{var i=t.lastUseStyle,a=n.backgroundInfo,s=a.width,u=a.height,l=_(r,i);if(t.imageSource=l,l){var c=function(e,t,r){var n=new Image(t,r);return n.width=t,n.height=r,n.src=e,n}(l,s,u);c.onload=function(){clearTimeout(n.transparentId),n.isTransitioning&&!(0,o.isEmptyArray)(n.toBeList)?n.toBeList=[n.toBeList[0]].concat(L(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!==l)}))):n.toBeList=[],n.toBeList.push({resource:c,width:s,height:u,kind:"image",tag:l}),n.run()},c.onerror=function(){Reflect.apply(F,e,[])},c.crossOrigin=r.crossOrigin}else Reflect.apply(F,this,[])}}function U(){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 M(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 H(e){"@babel/helpers - typeof";return H="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},H(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,G(n.key),n)}}function X(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"!=H(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==H(t)?t:t+""}var Y=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(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),X(this,"quad",null),X(this,"lastRaindropsFallTime",0),X(this,"parentElement",void 0),X(this,"mutationObserver",void 0),X(this,"resizeObserver",void 0),X(this,"renderProgram",void 0),X(this,"imageSource",""),X(this,"dropProgram",void 0),X(this,"updateProgram",void 0),X(this,"textures",[]),X(this,"backgroundTexture",[]),X(this,"textureDelta",void 0),X(this,"framebuffers",[]),X(this,"bufferWriteIndex",0),X(this,"bufferReadIndex",1),X(this,"originStyle",void 0),X(this,"lastUseStyle",void 0),X(this,"events",{}),X(this,"animationFrameId",0),this.parentElement=null!==(i=t.parentElement)&&void 0!==i?i:document.body,Reflect.apply(U,n,[]),this.originStyle=this.lastUseStyle=M(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=M(a.parentElement),s=Object.values(i);if((0,o.isEmptyArray)(m.enArr.difference(t,s)))return;var c=l(i.backgroundImage),f=u(i.backgroundColor);if(c&&f)return;a.lastUseStyle=i,Reflect.apply(r,n,[]),Reflect.apply(U,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 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,l=s.backgroundAttachment,c=s.backgroundPosition,f=/\s+/.test(r=c)?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"===l?(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 d=t.backgroundInfo||{width:100,height:100},h=d.width,y=d.height;if("cover"===u){var g=Math.max(p.width/h,p.height/y);n=h*g,i=y*g}else if("contain"===u){var m=Math.min(p.width/h,p.height/y);n=h*m,i=y*m}else{var v=u.split(" ");n=v[0]||"",i=v[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=h,i=y):("auto"===n&&(n=h*(Number(i)/y)),"auto"===i&&(i=y*(Number(n)/h)))}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 S=Math.max(this.canvas.width,this.canvas.height);e.renderProgram.uniforms.containerRatio=new Float32Array([this.canvas.width/S,this.canvas.height/S])}}function V(e){return e.endsWith("%")}function Z(){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(Z,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,l=t.bufferReadIndex,c=r.resolution;e.viewport(0,0,c,c),e.bindFramebuffer(e.FRAMEBUFFER,a[u]),Reflect.apply(s,this,[i[l]]),e.useProgram(n.id),Reflect.apply(Z,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,l=r.lastRunningState,c=getComputedStyle(i);n.backgroundInfo={width:parseInt(c.width),height:parseInt(c.height)},Reflect.apply(q,this,[]),s?(l||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),a&&this.fade(),Reflect.apply(Q,this,[]),Reflect.apply(K,this,[])):l&&(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,l=i.getBoundingClientRect(),c=e.clientX-l.left-s,f=e.clientY-l.top-u;this.drop(c,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,l=s.height,c=function(e){return(0,o.isZero)(e&e-1)},f=c(u)&&c(l)?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,l=1/s;t.textureDelta=new Float32Array([l,l]),this.config.extensions.forEach(function(e){return u.getExtension(e)});for(var c=this.config.arrayType,f=c?new c(s*s*4):null,p=this.config,d=0;d<2;d++){var h=u.createTexture(),y=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,y),u.bindTexture(u.TEXTURE_2D,h),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,h,0),i.push(h),a.push(y)}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(B,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(B,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 ce(e,t,r,n){var i=this.renderData,a=this.options,u=this.gl;if(!(0,o.isNull)(i)){var l=i.parentElement,c=i.dropProgram,f=i.textures,p=i.framebuffers,d=i.bufferWriteIndex,h=i.bufferReadIndex,y=a.resolution,g=l.offsetWidth,m=l.offsetHeight,v=Math.max(g,m);r/=v;var b=new Float32Array([(2*e-g)/v,(m-2*t)/v]);u.viewport(0,0,y,y),u.bindFramebuffer(u.FRAMEBUFFER,p[d]),Reflect.apply(s,this,[f[h]]),u.useProgram(c.id),u.uniform2fv(c.locations.center,b),u.uniform1f(c.locations.radius,r),u.uniform1f(c.locations.strength,n),Reflect.apply(Z,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,he(n.key),n)}}function de(e,t,r){return(t=he(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function he(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 ye(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 ge(e,t){return e.get(ve(e,t))}function me(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,Oe=new WeakMap,Re=new WeakMap,Pe=new WeakMap,xe=new WeakMap,Te=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),ye(this,be,v.accelerating),ye(this,we,v.interactive),ye(this,Se,v.resolution),ye(this,Ee,v.perturbance),ye(this,Oe,v.dropRadius),de(this,"imgUrl",v.imgUrl),ye(this,Re,v.idleFluctuations),ye(this,Pe,v.raindropsTimeInterval),de(this,"crossOrigin","no-cors"),de(this,"visible",!1),de(this,"running",!1),ye(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 ge(be,this)},set:function(e){e>100||e<2||me(be,this,e)}},{key:"interactive",get:function(){return ge(we,this)},set:function(e){(0,o.isBoolean)(e)&&me(we,this,e)}},{key:"resolution",get:function(){return ge(Se,this)},set:function(e){e<100||e>550||me(Se,this,e)}},{key:"perturbance",get:function(){return ge(Ee,this)},set:function(e){e<1e-4||e>1||me(Ee,this,e)}},{key:"dropRadius",get:function(){return ge(Oe,this)},set:function(e){!isFinite(e)||e<10||me(Oe,this,e)}},{key:"idleFluctuations",get:function(){return ge(Re,this)},set:function(e){(0,o.isBoolean)(e)&&me(Re,this,e)}},{key:"raindropsTimeInterval",get:function(){return ge(Pe,this)},set:function(e){e<10||e>12e3||me(Pe,this,e)}},{key:"playingState",get:function(){return this.running},set:function(e){this.running=Boolean(null==e||e)}},{key:"darkMode",get:function(){return ge(xe,this)},set:function(e){me(xe,this,(0,o.isUndefined)(e)?void 0:Boolean(e))}}])}();function je(){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,l=s.height,c=a.tag,f=a.kind,p=_(t,i),d=a.width===u,h=a.height===l,y=d&&h;if("image"===f&&y&&(0,o.isString)(p)&&p===c)return!0;var g=(0,o.isArray)(n)&&n.join("_")||"";if("linear-gradient"===f&&y&&g===c)return!0;var m=N(t,i);return!("background-color"!==f||!y||c!==m)}function ke(){var e=this,t=this.options,r=this.fadeData;r.transparentId=setTimeout(function(){if(clearTimeout(r.transparentId),r.isTransitioning)return Reflect.apply(ke,e,[]);Reflect.apply(je,e,[])||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(Ie,this,["还没有准备好,即将退出"]);if((0,o.isEmptyArray)(n))return Reflect.apply(Ie,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)&&l(i.backgroundImage)&&Reflect.apply(D,this,[!1])}return Reflect.apply(Ie,this,["当前执行完毕,开启下次执行"])}var a=t.lastDrawImage,s=t.backgroundInfo;t.drawProgress+=18;var c=document.createElement("canvas"),f=c.getContext("2d");if((0,o.isNull)(f)||(0,o.isNull)(a.resource)||(0,o.isEmptyArray)(n))return Reflect.apply(Ie,this,"环境值错误");var p=s.width,d=s.height;c.width=p,c.height=d,f.clearRect(0,0,p,d),f.drawImage(a.resource,0,0,p,d),f.globalAlpha=t.drawProgress/1e3,f.drawImage(n[0].resource,0,0,p,d),f.globalAlpha=1;var h={resource:c,width:p,height:d,kind:"mix",tag:"".concat(a.tag," >> ").concat(n[0].tag)};Reflect.apply(ae,this,[h]),n.length>1&&(t.lastDrawImage=h,n.shift(),t.drawProgress=0)}function Ie(e){this.fadeData.isTransitioning=!1,Reflect.apply(ke,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 _e(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,Fe(n.key),n)}}function Ne(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ce(e,t,r){return(t=Fe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fe(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 Le(e,t){return e.get($e(e,t))}function $e(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,Ue=new WeakSet,Me=function(){return function(e,t,r){return t&&_e(e.prototype,t),r&&_e(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){Ne(e,t),t.add(e)}(this,Ue),Ce(this,"backgroundInfo",{width:0,height:0}),Ce(this,"transparentId",setTimeout(Boolean)),Ce(this,"lastDrawImage",void 0),Ce(this,"toBeList",[]),Ce(this,"drawProgress",0),Ce(this,"isTransitioning",!1),function(e,t,r){Ne(e,t),t.set(e,r)}(this,Be,void 0),Ce(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:I(r,n),width:r,height:n,kind:"default",tag:""},s=Be,u=this,l=window.matchMedia("(prefers-color-scheme: dark)"),s.set($e(s,u),l),this.isDark=Le(Be,this).matches,Le(Be,this).addEventListener("change",$e(Ue,this,ze));var s,u,l,c=this;Object.defineProperty(Le(Be,this),"isDark",{get:function(){return c.isDark},set:function(e){c.isDark=e,Reflect.apply(je,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),Le(Be,this).removeEventListener("change",$e(Ue,this,ze))}}])}();function ze(e){this.isDark=e.matches}function He(e){"@babel/helpers - typeof";return He="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},He(e)}function We(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 Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach(function(t){Je(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ge(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=Ve(t),function(e,t){if(t&&("object"==He(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||[],Ve(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 Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ve(e)}function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ze(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"!=He(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==He(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 n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Je(n=Ye(this,t,[e]),"renderData",null),Je(n,"options",void 0),Je(n,"fadeData",void 0),Je(n,"defaults",v),Je(n,"initialized",!1),Ke(n,tt,(0,m.debounce)(ue,{this:n})),Object.defineProperties(n,{defaults:{value:n.defaults,writable:!1,enumerable:!1,configurable:!1}}),n.options=new Te(Xe(Xe({},n.defaults),r)),n.renderData=new Y(e,n.reloadBackground,n),n.fadeData=new Me(n),(0,o.isFalse)(n.initState)||(0,o.isNull)(e.parentElement)||(0,o.isNull)(n.config)||(0,o.isNull)(n.gl)?n.initState=!1:(!function(e){var t=e.parentElement;e.width=t.clientWidth,e.height=t.clientHeight,(0,i.setStyle)(e,{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1,pointerEvents:"none"})}(e),Reflect.apply(se,n,[])),window.matchMedia("(prefers-color-scheme: dark)"),n}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&&Ze(e,t)}(t,e),function(e,t,r){return t&&Ge(e.prototype,t),r&&Ge(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 l=function(e){return(0,m.getRandomInt)(e)},c=n.width,f=n.height;this.drop(l(c),l(f),s,.03)}}}},{key:"drop",value:function(e,t,r,n){Reflect.apply(ce,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(U,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(B,this,[])):"darkMode"===e?(this.options.darkMode=t,Reflect.apply(je,this,[])||Reflect.apply(D,this,[!0])):this.options[e]=t}}])}(g);function nt(e,t){var r=(0,n.useRef)(null);return(0,n.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}},713:()=>{"use strict";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})},795:(e,t,r)=>{"use strict";r.d(t,{useTimeId:()=>i});var n=r(953);function i(){var e=(0,n.useRef)(void 0);return(0,n.useEffect)(function(){return function(){return e.current&&clearTimeout(e.current)}},[]),e}},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 l=o[u];if(!s(l))return!1;var c=e[l],f=t[l];if(!1===(i=r?r.call(n,c,f,l):void 0)||void 0===i&&c!==f)return!1}return!0}},953:e=>{"use strict";e.exports=require("react")},968:(e,t,r)=>{"use strict";r.d(t,{useInputIsComposing:()=>i});var n=r(953);function i(e){var t=(0,n.useRef)(!1);return(0,n.useEffect)(function(){var r=e.current;if(r){var n=function(){return t.current=!0},i=function(){return t.current=!1};return r.addEventListener("compositionstart",n),r.addEventListener("compositionend",i),function(){r.removeEventListener("compositionstart",n),r.removeEventListener("compositionend",i)}}},[]),t}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.m=r,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,r)=>(i.f[r](e,t),t),[])),i.u=e=>e+"/index.cjs",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="earthnut:",i.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var s,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var f=l[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){s=f;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[n];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(d);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(n)),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),u&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={57:0,117:0,333:0,705:0,731:0,793:0,839:0,904:0,909:0,957:0};i.f.j=(t,r)=>{var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,i)=>n=e[t]=[r,i]);r.push(n[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,r=>{if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}},"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[a,s,u]=r,l=0;if(a.some(t=>0!==e[t])){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(u)u(i)}for(t&&t(r);l<a.length;l++)o=a[l],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkearthnut=self.webpackChunkearthnut||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),i.nc=void 0;var o={};(()=>{"use strict";i.r(o),i.d(o,{BackgroundRipple:()=>e.BackgroundRipple,EnLayout:()=>t.EnLayout,EnLayoutContent:()=>t.EnLayoutContent,EnLayoutFooter:()=>t.EnLayoutFooter,EnLayoutHeader:()=>t.EnLayoutHeader,EnLayoutSideBar:()=>t.EnLayoutSideBar,Layout:()=>t.Layout,LayoutContent:()=>t.LayoutContent,LayoutFooter:()=>t.LayoutFooter,LayoutHeader:()=>t.LayoutHeader,LayoutSideBar:()=>t.LayoutSideBar,LazyBackgroundRipple:()=>e.LazyBackgroundRipple,useAnimationFrameId:()=>a.useAnimationFrameId,useInputIsComposing:()=>r.useInputIsComposing,useLazyRipples:()=>u.useLazyRipples,useRipples:()=>s.useRipples,useTimeId:()=>n.useTimeId});var e=i(282),t=i(45),r=i(968),n=i(795),a=i(336),s=i(705),u=i(634)})(),module.exports.earthnut=o})();
7
+ (()=>{var e={0:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Ripples:()=>tt});const n=require("a-element-inline-style");var i=r(570);function o(e,t,r,n){function o(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,o(r.VERTEX_SHADER,e)),r.attachShader(s.id,o(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,l=/uniform (\w+) (\w+)/g;!(0,i.isNull)(a=l.exec(u));){var c=a[2];s.locations[c]=r.getUniformLocation(s.id,c)}return s}function a(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 s(e){return"rgba(0, 0, 0, 0)"===e||"#ffffffff"===e||"transport"===e}function u(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,l=0;l<i.length;l++)if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,32,32,0,r.RGBA,i[l].type,null),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE){u=i[l];break}return u}function c(e){return c="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},c(e)}function f(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 p(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(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"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var y=p(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,i.isNull)(r))return this.initState=!1,void(this.config=null);this.gl=r,this.config=Reflect.apply(l,this,[])}),g=r(705),m={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(m);var v;r(713);function b(e){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,S(n.key),n)}}function S(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+""}function E(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 O(e,t,r){return e.set(R(e,t),r),r}function P(e,t){return e.get(R(e,t))}function R(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 x(e){return function(e){if(Array.isArray(e))return j(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 j(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)?j(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 j(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 l=function(){var e=i[u][c],r=Math.ceil(Math.sqrt(Math.pow(u,2)+Math.pow(c,2)))<=o,n=t?10:255,a=t?25:190,s=r?t?160:120:t?160:180,l=r?t?230:160:t?250:240,f=function(){return(0,g.getRandomInt)(n,a)};e[0]=f(),e[1]=f(),e[2]=f(),e[3]=(0,g.getRandomInt)(s,l)},c=u;c<=o;c++)l();for(var f=0;f<=o;f++)for(var p=0;p<=f;p++)i[f][p]=i[p][f];for(var d=o;d<n;d++)for(var h=0;h<=o;h++)i[d][h]=i[n-d][h];for(var y=0;y<o;y++)for(var m=o;m<n;m++)i[y][m]=i[y][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(x(i.slice(w)),x(i.slice(0,w))),r},T=new(v=new WeakMap,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),E(this,v,1),function(e,t,r){(t=S(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){P(v,this)>100&&O(v,this,0),this.data=A(O(v,this,P(v,this)+4),e)}}])}());function k(e,t){var r=document.createElement("canvas"),n=document.createElement("canvas"),o=r.getContext("2d"),a=n.getContext("2d");return(0,i.isNull)(o)||(0,i.isNull)(a)?r:(r.width=n.width=e||1,r.height=n.height=t||1,o.clearRect(0,0,e,t),a.clearRect(0,0,e,t),o.globalAlpha=1,o.putImageData(function(e,t){Date.now();for(var r=new ImageData(e||1,t||1),n=r.data,i=T.data,o=i.diameter,a=i.list,s=e*o,u=0;u<n.length;u+=4){var l=u/4%s,c=l%e%o,f=Math.floor(l/e),p=a[c][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 I(){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,g.getRandomString)({length:8,includeNumbers:!0,includeUppercaseLetters:!0});T.build(null!==(e=n.darkMode)&&void 0!==e?e:r.isDark),o.push({resource:k(a,s),width:a,height:s,kind:"default",tag:u}),t&&r.run()}function D(e,t){var r,n,o=e.imgUrl;return(0,i.isString)(o)&&o||(r=t.backgroundImage,n=/url\(["']?([^"']*)["']?\)/.exec(r),(0,i.isNull)(n)?null:n[1])}function _(e,t){return(0,i.isArray)(e.imgUrl)&&1===e.imgUrl.length&&e.imgUrl[0]||t.backgroundColor}function N(){var e=this.renderData,t=this.fadeData,r=this.options;if((0,i.isNull)(e))return Reflect.apply(I,this,[]);var n=e.originStyle;if(s(n.backgroundColor)&&(!(0,i.isArray)(r.imgUrl)||1!==r.imgUrl.length))return Reflect.apply(I,this,[]);var o=document.createElement("canvas"),a=o.getContext("2d");if((0,i.isNull)(a))return Reflect.apply(I,this,[]);var u=t.backgroundInfo,l=u.width,c=u.height;o.width=l,o.height=c,a.clearRect(0,0,l,c);var f=_(r,n);a.beginPath(),a.fillStyle=f,a.fillRect(0,0,l,c),a.fill(),t.isTransitioning&&!(0,i.isEmptyArray)(t.toBeList)?t.toBeList=[t.toBeList[0]]:t.toBeList=[];var p={resource:o,kind:"background-color",tag:f,width:l,height:c};t.toBeList.push(p),t.run()}function C(){var e=this.fadeData,t=this.renderData,r=this.options;if((0,i.isNull)(t))return Reflect.apply(N,this,[]);var n=t.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,i.isArray)(r.imgUrl))return Reflect.apply(N,this,[]);var o=(0,i.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(o.length<2)return Reflect.apply(N,this,[]);var a=document.createElement("canvas"),s=a.getContext("2d");if((0,i.isNull)(s))return Reflect.apply(N,this,[]);var u=e.backgroundInfo,l=u.width,c=u.height;a.width=l,a.height=c,s.fillStyle="#fff",s.fillRect(0,0,l,c);var f=s.createLinearGradient(0,0,0,c);o.forEach(function(e,t){return f.addColorStop(t/(o.length-1),e)}),s.fillStyle=f,s.fillRect(0,0,l,c),e.isTransitioning&&!(0,i.isEmptyArray)(e.toBeList)?e.toBeList=[e.toBeList[0]]:e.toBeList=[],e.toBeList.push({resource:a,kind:"linear-gradient",tag:o.join("_"),width:l,height:c}),e.run()}function F(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 $(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if((0,i.isNull)(t))Reflect.apply(C,this,[]);else{var o=t.lastUseStyle,a=n.backgroundInfo,s=a.width,u=a.height,l=D(r,o);if(t.imageSource=l,l){var c=function(e,t,r){var n=new Image(t,r);return n.width=t,n.height=r,n.src=e,n}(l,s,u);c.onload=function(){clearTimeout(n.transparentId),n.isTransitioning&&!(0,i.isEmptyArray)(n.toBeList)?n.toBeList=[n.toBeList[0]].concat(F(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!==l)}))):n.toBeList=[],n.toBeList.push({resource:c,width:s,height:u,kind:"image",tag:l}),n.run()},c.onerror=function(){Reflect.apply(C,e,[])},c.crossOrigin=r.crossOrigin}else Reflect.apply(C,this,[])}}function U(){var e=this.renderData;if(!(0,i.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 B(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 M(){var e=this.renderData;if(!(0,i.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){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 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,G(n.key),n)}}function X(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"!=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 H=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(t,r,n){var o,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),X(this,"quad",null),X(this,"lastRaindropsFallTime",0),X(this,"parentElement",void 0),X(this,"mutationObserver",void 0),X(this,"resizeObserver",void 0),X(this,"renderProgram",void 0),X(this,"imageSource",""),X(this,"dropProgram",void 0),X(this,"updateProgram",void 0),X(this,"textures",[]),X(this,"backgroundTexture",[]),X(this,"textureDelta",void 0),X(this,"framebuffers",[]),X(this,"bufferWriteIndex",0),X(this,"bufferReadIndex",1),X(this,"originStyle",void 0),X(this,"lastUseStyle",void 0),X(this,"events",{}),X(this,"animationFrameId",0),this.parentElement=null!==(o=t.parentElement)&&void 0!==o?o:document.body,Reflect.apply(U,n,[]),this.originStyle=this.lastUseStyle=B(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),o=B(a.parentElement),l=Object.values(o);if((0,i.isEmptyArray)(g.enArr.difference(t,l)))return;var c=u(o.backgroundImage),f=s(o.backgroundColor);if(c&&f)return;a.lastUseStyle=o,Reflect.apply(r,n,[]),Reflect.apply(U,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(M,{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 Y(){var e=this.renderData,t=this.fadeData;if(!(0,i.isNull)(e)){var r,n,o,a=e.parentElement,s=window.getComputedStyle(a),u=s.backgroundSize,l=s.backgroundAttachment,c=s.backgroundPosition,f=/\s+/.test(r=c)?r.replace(/center/,"50%").replace(/top|left/,"0%").replace(/bottom/,"100%").replace(/\s+/," ").split(" "):q(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"===l?(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 d=t.backgroundInfo||{width:100,height:100},h=d.width,y=d.height;if("cover"===u){var g=Math.max(p.width/h,p.height/y);n=h*g,o=y*g}else if("contain"===u){var m=Math.min(p.width/h,p.height/y);n=h*m,o=y*m}else{var v=u.split(" ");n=v[0]||"",o=v[1]||n,q(n)?n=p.width*parseFloat(n)/100:"auto"!==n&&(n=parseFloat(n)),q(o)?o=p.height*parseFloat(o)/100:"auto"!==o&&(o=parseFloat(o)),"auto"===n&&"auto"===o?(n=h,o=y):("auto"===n&&(n=h*(Number(o)/y)),"auto"===o&&(o=y*(Number(n)/h)))}var b=f&&f[0]||"0%",w=f&&f[1]||"0%";b=q(b)?(p.left+(p.width-Number(n))*parseFloat(b)/100).toString():(p.left+parseFloat(b)).toString(),w=q(w)?(p.top+(p.height-Number(o))*parseFloat(w)/100).toString():(p.top+parseFloat(w)).toString(),e.renderProgram.uniforms.topLeft=new Float32Array([-Number(b)/n,-Number(w)/o]),e.renderProgram.uniforms.bottomRight=new Float32Array([e.renderProgram.uniforms.topLeft[0]+a.clientWidth/n,e.renderProgram.uniforms.topLeft[1]+a.clientHeight/o]);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 q(e){return e.endsWith("%")}function V(){var e=this.gl,t=this.renderData;(0,i.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,i.isNull)(t)){var n=t.textures,o=t.backgroundTexture,s=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(a,this,[o,0]),Reflect.apply(a,this,[n[0],1]),e.uniform1f(t.renderProgram.locations.perturbance,s),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 Q(){var e=this.renderData;if(!(0,i.isNull)(e)){var t=e.bufferWriteIndex,r=e.bufferReadIndex;e.bufferWriteIndex=1-t,e.bufferReadIndex=1-r}}function J(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,i.isNull)(t)){var n=t.updateProgram,o=t.textures,s=t.framebuffers,u=t.bufferWriteIndex,l=t.bufferReadIndex,c=r.resolution;e.viewport(0,0,c,c),e.bindFramebuffer(e.FRAMEBUFFER,s[u]),Reflect.apply(a,this,[o[l]]),e.useProgram(n.id),Reflect.apply(V,this,[]),Reflect.apply(Q,this,[])}}function Z(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,i.isNull)(t)){var o=t.parentElement,a=n.isTransitioning,s=r.running,u=r.idleFluctuations,l=r.lastRunningState,c=getComputedStyle(o);n.backgroundInfo={width:parseInt(c.width),height:parseInt(c.height)},Reflect.apply(Y,this,[]),s?(l||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),a&&this.fade(),Reflect.apply(J,this,[]),Reflect.apply(K,this,[])):l&&(r.lastRunningState=!1,this.hide()),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(Z,e,[])})}}function ee(e,t,r){var n=this.renderData;if(!(0,i.isNull)(n)){var o=n.parentElement,a=window.getComputedStyle(o),s=parseInt(a.borderLeftWidth)||0,u=parseInt(a.borderTopWidth)||0,l=o.getBoundingClientRect(),c=e.clientX-l.left-s,f=e.clientY-l.top-u;this.drop(c,f,t,r)}}function te(){var e=this,t=this.renderData,r=this.options;if(!(0,i.isNull)(t)){var n=t.parentElement,o=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(ee,e,[n,r.dropRadius*(i?1.5:1),i?.03:.01]))};o.mousemove=function(e){for(var t=r.accelerating;t--;)a(e)},o.touchmove=o.touchstart=function(e){for(var t=e.touches,r=0;r<t.length;r++)a(t[r])},o.mousedown=function(e){return a(e,!0)},Object.keys(o).forEach(function(e){return null==n?void 0:n.addEventListener(e,o[e],{passive:!0})})}}var re="\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 ne(){var e=this.gl,t=this.renderData;if(!(0,i.isNull)(t)){var r=t.textureDelta;t.dropProgram=o(re,"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=o(re,"\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=o("\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 ie(){var e=this.gl,t=this.renderData;if(!(0,i.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 oe(e){var t=this.gl,r=this.renderData,n=this.fadeData;if(!(0,i.isNull)(r)){var o=r.backgroundTexture,a=r.parentElement,s=n.backgroundInfo,u=s.width,l=s.height,c=function(e){return(0,i.isZero)(e&e-1)},f=c(u)&&c(l)?t.REPEAT:t.CLAMP_TO_EDGE;t.bindTexture(t.TEXTURE_2D,o),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 ae(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,i.isNull)(t)&&this.config){var o=t.textures,a=t.framebuffers,s=r.resolution,u=this.gl,l=1/s;t.textureDelta=new Float32Array([l,l]),this.config.extensions.forEach(function(e){return u.getExtension(e)});for(var c=this.config.arrayType,f=c?new c(s*s*4):null,p=this.config,d=0;d<2;d++){var h=u.createTexture(),y=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,y),u.bindTexture(u.TEXTURE_2D,h),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,h,0),o.push(h),a.push(y)}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(ne,this,[]),Reflect.apply(ie,this,[]),Reflect.apply($,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(te,this,[]),Reflect.apply(oe,this,[n.lastDrawImage]),t.animationFrameId=requestAnimationFrame(function(){return Reflect.apply(Z,e,[])})}}function se(){var e=this.renderData,t=this.fadeData;if(!(0,i.isNull)(e)){var r=e.parentElement,n=t.backgroundInfo,o=r.offsetWidth,a=r.offsetHeight;this.canvas.width=n.width=o,this.canvas.height=n.height=a,Reflect.apply($,this,[])}}function ue(){var e=this.renderData,t=this.fadeData;(0,i.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 o=this.renderData,s=this.options,u=this.gl;if(!(0,i.isNull)(o)){var l=o.parentElement,c=o.dropProgram,f=o.textures,p=o.framebuffers,d=o.bufferWriteIndex,h=o.bufferReadIndex,y=s.resolution,g=l.offsetWidth,m=l.offsetHeight,v=Math.max(g,m);r/=v;var b=new Float32Array([(2*e-g)/v,(m-2*t)/v]);u.viewport(0,0,y,y),u.bindFramebuffer(u.FRAMEBUFFER,p[d]),Reflect.apply(a,this,[f[h]]),u.useProgram(c.id),u.uniform2fv(c.locations.center,b),u.uniform1f(c.locations.radius,r),u.uniform1f(c.locations.strength,n),Reflect.apply(V,this,[]),Reflect.apply(Q,this,[])}}function ce(e){return ce="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},ce(e)}function fe(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 pe(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"!=ce(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ce(t)?t:t+""}function he(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 ye(e,t){return e.get(me(e,t))}function ge(e,t,r){return e.set(me(e,t),r),r}function me(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 ve=new WeakMap,be=new WeakMap,we=new WeakMap,Se=new WeakMap,Ee=new WeakMap,Oe=new WeakMap,Pe=new WeakMap,Re=new WeakMap,xe=function(){return function(e,t,r){return t&&fe(e.prototype,t),r&&fe(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),he(this,ve,m.accelerating),he(this,be,m.interactive),he(this,we,m.resolution),he(this,Se,m.perturbance),he(this,Ee,m.dropRadius),pe(this,"imgUrl",m.imgUrl),he(this,Oe,m.idleFluctuations),he(this,Pe,m.raindropsTimeInterval),pe(this,"crossOrigin","no-cors"),pe(this,"visible",!1),pe(this,"running",!1),he(this,Re,void 0),pe(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 ye(ve,this)},set:function(e){e>100||e<2||ge(ve,this,e)}},{key:"interactive",get:function(){return ye(be,this)},set:function(e){(0,i.isBoolean)(e)&&ge(be,this,e)}},{key:"resolution",get:function(){return ye(we,this)},set:function(e){e<100||e>550||ge(we,this,e)}},{key:"perturbance",get:function(){return ye(Se,this)},set:function(e){e<1e-4||e>1||ge(Se,this,e)}},{key:"dropRadius",get:function(){return ye(Ee,this)},set:function(e){!isFinite(e)||e<10||ge(Ee,this,e)}},{key:"idleFluctuations",get:function(){return ye(Oe,this)},set:function(e){(0,i.isBoolean)(e)&&ge(Oe,this,e)}},{key:"raindropsTimeInterval",get:function(){return ye(Pe,this)},set:function(e){e<10||e>12e3||ge(Pe,this,e)}},{key:"playingState",get:function(){return this.running},set:function(e){this.running=Boolean(null==e||e)}},{key:"darkMode",get:function(){return ye(Re,this)},set:function(e){ge(Re,this,(0,i.isUndefined)(e)?void 0:Boolean(e))}}])}();function je(){var e=this.fadeData,t=this.options,r=this.renderData;if((0,i.isNull)(r))return!0;var n=t.imgUrl,o=r.lastUseStyle,a=e.lastDrawImage,s=e.backgroundInfo,u=s.width,l=s.height,c=a.tag,f=a.kind,p=D(t,o),d=a.width===u,h=a.height===l,y=d&&h;if("image"===f&&y&&(0,i.isString)(p)&&p===c)return!0;var g=(0,i.isArray)(n)&&n.join("_")||"";if("linear-gradient"===f&&y&&g===c)return!0;var m=_(t,o);return!("background-color"!==f||!y||c!==m)}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(je,e,[])||r.run()},2*t.raindropsTimeInterval)}function Te(){var e=this.renderData,t=this.fadeData,r=this.options,n=t.toBeList;if((0,i.isNull)(e))return Reflect.apply(ke,this,["还没有准备好,即将退出"]);if((0,i.isEmptyArray)(n))return Reflect.apply(ke,this,["由于缺少当前渲染的背景,退出"]);if(0===t.drawProgress&&n.forEach(function(e){}),t.drawProgress>1e3){if(t.lastDrawImage=n.shift(),Reflect.apply(oe,this,[t.lastDrawImage]),(0,i.isEmptyArray)(n)){var o=e.lastUseStyle;((0,i.isNull)(r.imgUrl)||(0,i.isBusinessEmptyString)(r.imgUrl)||(0,i.isZero)(r.imgUrl.length))&&s(o.backgroundColor)&&u(o.backgroundImage)&&Reflect.apply(I,this,[!1])}return Reflect.apply(ke,this,["当前执行完毕,开启下次执行"])}var a=t.lastDrawImage,l=t.backgroundInfo;t.drawProgress+=18;var c=document.createElement("canvas"),f=c.getContext("2d");if((0,i.isNull)(f)||(0,i.isNull)(a.resource)||(0,i.isEmptyArray)(n))return Reflect.apply(ke,this,"环境值错误");var p=l.width,d=l.height;c.width=p,c.height=d,f.clearRect(0,0,p,d),f.drawImage(a.resource,0,0,p,d),f.globalAlpha=t.drawProgress/1e3,f.drawImage(n[0].resource,0,0,p,d),f.globalAlpha=1;var h={resource:c,width:p,height:d,kind:"mix",tag:"".concat(a.tag," >> ").concat(n[0].tag)};Reflect.apply(oe,this,[h]),n.length>1&&(t.lastDrawImage=h,n.shift(),t.drawProgress=0)}function ke(e){this.fadeData.isTransitioning=!1,Reflect.apply(Ae,this,[])}function Ie(e){return Ie="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},Ie(e)}function De(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,Ce(n.key),n)}}function _e(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ne(e,t,r){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ce(e){var t=function(e,t){if("object"!=Ie(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ie(t)?t:t+""}function Fe(e,t){return e.get(Le(e,t))}function Le(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 $e=new WeakMap,Ue=new WeakSet,Be=function(){return function(e,t,r){return t&&De(e.prototype,t),r&&De(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){_e(e,t),t.add(e)}(this,Ue),Ne(this,"backgroundInfo",{width:0,height:0}),Ne(this,"transparentId",setTimeout(Boolean)),Ne(this,"lastDrawImage",void 0),Ne(this,"toBeList",[]),Ne(this,"drawProgress",0),Ne(this,"isTransitioning",!1),function(e,t,r){_e(e,t),t.set(e,r)}(this,$e,void 0),Ne(this,"isDark",!1);var r,n,o=t.renderData;if((0,i.isNull)(o))r=10,n=10;else{var a=getComputedStyle(o.parentElement);r=parseInt(a.width),n=parseInt(a.height)}this.backgroundInfo={width:r,height:n},this.lastDrawImage={resource:k(r,n),width:r,height:n,kind:"default",tag:""},s=$e,u=this,l=window.matchMedia("(prefers-color-scheme: dark)"),s.set(Le(s,u),l),this.isDark=Fe($e,this).matches,Fe($e,this).addEventListener("change",Le(Ue,this,Me));var s,u,l,c=this;Object.defineProperty(Fe($e,this),"isDark",{get:function(){return c.isDark},set:function(e){c.isDark=e,Reflect.apply(je,t,[])||Reflect.apply(I,t,[!0])}})},[{key:"run",value:function(){this.isTransitioning||(this.drawProgress=0,this.isTransitioning=!0)}},{key:"destroy",value:function(){this.transparentId&&clearTimeout(this.transparentId),Fe($e,this).removeEventListener("change",Le(Ue,this,Me))}}])}();function Me(e){this.isDark=e.matches}function ze(e){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 We(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 Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach(function(t){Qe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ge(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,Je(n.key),n)}}function He(e,t,r){return t=qe(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,Ye()?Reflect.construct(t,r||[],qe(e).constructor):t.apply(e,r))}function Ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ye=function(){return!!e})()}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(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 Qe(e,t,r){return(t=Je(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Je(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 Ze(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 et=new WeakMap,tt=function(e){function t(e,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Qe(o=He(this,t,[e]),"renderData",null),Qe(o,"options",void 0),Qe(o,"fadeData",void 0),Qe(o,"defaults",m),Qe(o,"initialized",!1),Ke(o,et,(0,g.debounce)(se,{this:o})),Object.defineProperties(o,{defaults:{value:o.defaults,writable:!1,enumerable:!1,configurable:!1}}),o.options=new xe(Xe(Xe({},o.defaults),r)),o.renderData=new H(e,o.reloadBackground,o),o.fadeData=new Be(o),(0,i.isFalse)(o.initState)||(0,i.isNull)(e.parentElement)||(0,i.isNull)(o.config)||(0,i.isNull)(o.gl)?o.initState=!1:(!function(e){var t=e.parentElement;e.width=t.clientWidth,e.height=t.clientHeight,(0,n.setStyle)(e,{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1,pointerEvents:"none"})}(e),Reflect.apply(ae,o,[])),window.matchMedia("(prefers-color-scheme: dark)"),o}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&&Ge(e.prototype,t),r&&Ge(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,i.isNull)(e)){var n=r.backgroundInfo,o=e.lastRaindropsFallTime,a=t.raindropsTimeInterval,s=t.dropRadius,u=Date.now();if(!(u-o<a)){e.lastRaindropsFallTime=u;var l=function(e){return(0,g.getRandomInt)(e||1)},c=n.width,f=n.height;this.drop(l(c),l(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(Te,this,[])}},{key:"reloadBackground",value:function(){Ze(et,this).call(this)}},{key:"destroy",value:function(){Reflect.apply(ue,this,[])}},{key:"show",value:function(){this.options.visible=!0,this.canvas.style.visibility="visible",Reflect.apply(U,this,[])}},{key:"hide",value:function(){this.options.visible=!1,this.canvas.style.visibility="hidden",Reflect.apply(M,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($,this,[])):"darkMode"===e?(this.options.darkMode=t,Reflect.apply(je,this,[])||Reflect.apply(I,this,[!0])):this.options[e]=t}}])}(y)},326: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 l=o[u];if(!s(l))return!1;var c=e[l],f=t[l];if(!1===(i=r?r.call(n,c,f,l):void 0)||void 0===i&&c!==f)return!1}return!0}},570:e=>{"use strict";e.exports=require("a-type-of-js")},705:e=>{"use strict";e.exports=require("a-js-tools")},713:()=>{"use strict";function e(t){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})}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n={};(()=>{"use strict";r.r(n),r.d(n,{BackgroundRipple:()=>pr,EnImage:()=>Ln,EnLayout:()=>xn,EnLayoutContent:()=>Cr,EnLayoutFooter:()=>pn,EnLayoutHeader:()=>Rr,EnLayoutSideBar:()=>kr,Image:()=>Ln,Layout:()=>xn,LayoutContent:()=>Cr,LayoutFooter:()=>pn,LayoutHeader:()=>Rr,LayoutSideBar:()=>kr,LazyBackgroundRipple:()=>br,useAnimationFrameId:()=>An,useInputIsComposing:()=>Tn,useLazyRipples:()=>s,useRipples:()=>l,useTimeId:()=>jn});const e=require("react");var t=r.n(e),i=r(570);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(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 s(t,n){var a=(0,e.useRef)(null),s=o((0,e.useState)(!1),2),u=s[0],l=s[1],c=o((0,e.useState)(null),2),f=c[0],p=c[1];return(0,e.useEffect)(function(){if(!(0,i.isNull)(t.current))return l(!0),Promise.resolve().then(r.bind(r,0)).then(function(e){(0,i.isNull)(t.current)||(a.current=new e.Ripples(t.current,n))}).catch(function(e){p(e)}).finally(function(){l(!1)}),function(){var e;return null===(e=a.current)||void 0===e?void 0:e.destroy()}},[]),{ripples:a,isLoading:u,error:f}}var u=r(0);function l(t,r){var n=(0,e.useRef)(null);return(0,e.useEffect)(function(){if(!(0,i.isNull)(t.current))return n.current=new u.Ripples(t.current,r),function(){var e;return null===(e=n.current)||void 0===e?void 0:e.destroy()}},[]),n}r(713);function c(e){return c="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},c(e)}function f(e){return function(e){if(Array.isArray(e))return p(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 p(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)?p(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 p(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 h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(t,r){var n=(0,e.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){h(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}({},r));(0,e.useEffect)(function(){r&&t.current&&Object.keys(t.current.defaults).forEach(function(e){var o=r[e],a=function(e,t){return(0,i.isArray)(e)&&(0,i.isArray)(t)&&(e.length!==t.length||!e.every(function(r){return e[r]===t[r]}))||(!(0,i.isArray)(e)||!(0,i.isArray)(t))&&e!==t}(o,n.current[e]);t.current&&a&&(n.current[e]=(0,i.isArray)(o)?f(o):r[e],t.current.set(e,o))})},[r])}var g=function(){return g=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},g.apply(this,arguments)};Object.create;function m(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 v=r(326),b=r.n(v),w="-ms-",S="-moz-",E="-webkit-",O="comm",P="rule",R="decl",x="@keyframes",j=Math.abs,A=String.fromCharCode,T=Object.assign;function k(e){return e.trim()}function I(e,t){return(e=t.exec(e))?e[0]:e}function D(e,t,r){return e.replace(t,r)}function _(e,t,r){return e.indexOf(t,r)}function N(e,t){return 0|e.charCodeAt(t)}function C(e,t,r){return e.slice(t,r)}function F(e){return e.length}function L(e){return e.length}function $(e,t){return t.push(e),e}function U(e,t){return e.filter(function(e){return!I(e,t)})}var B=1,M=1,z=0,W=0,X=0,G="";function H(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:B,column:M,length:a,return:"",siblings:s}}function Y(e,t){return T(H("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function q(e){for(;e.root;)e=Y(e.root,{children:[e]});$(e,e.siblings)}function V(){return X=W>0?N(G,--W):0,M--,10===X&&(M=1,B--),X}function K(){return X=W<z?N(G,W++):0,M++,10===X&&(M=1,B++),X}function Q(){return N(G,W)}function J(){return W}function Z(e,t){return C(G,e,t)}function ee(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 te(e){return B=M=1,z=F(G=e),W=0,[]}function re(e){return G="",e}function ne(e){return k(Z(W-1,ae(91===e?e+2:40===e?e+1:e)))}function ie(e){for(;(X=Q())&&X<33;)K();return ee(e)>2||ee(X)>3?"":" "}function oe(e,t){for(;--t&&K()&&!(X<48||X>102||X>57&&X<65||X>70&&X<97););return Z(e,J()+(t<6&&32==Q()&&32==K()))}function ae(e){for(;K();)switch(X){case e:return W;case 34:case 39:34!==e&&39!==e&&ae(X);break;case 40:41===e&&ae(e);break;case 92:K()}return W}function se(e,t){for(;K()&&e+X!==57&&(e+X!==84||47!==Q()););return"/*"+Z(t,W-1)+"*"+A(47===e?e:K())}function ue(e){for(;!ee(Q());)K();return Z(e,W)}function le(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function ce(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case R:return e.return=e.return||e.value;case O:return"";case x:return e.return=e.value+"{"+le(e.children,n)+"}";case P:if(!F(e.value=e.props.join(",")))return""}return F(r=le(e.children,n))?e.return=e.value+"{"+r+"}":""}function fe(e,t,r){switch(function(e,t){return 45^N(e,0)?(((t<<2^N(e,0))<<2^N(e,1))<<2^N(e,2))<<2^N(e,3):0}(e,t)){case 5103:return E+"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 E+e+e;case 4789:return S+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+S+e+w+e+e;case 5936:switch(N(e,t+11)){case 114:return E+e+w+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+w+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+w+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return E+e+w+e+e;case 6165:return E+e+w+"flex-"+e+e;case 5187:return E+e+D(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+w+"flex-$1$2")+e;case 5443:return E+e+w+"flex-item-"+D(e,/flex-|-self/g,"")+(I(e,/flex-|baseline/)?"":w+"grid-row-"+D(e,/flex-|-self/g,""))+e;case 4675:return E+e+w+"flex-line-pack"+D(e,/align-content|flex-|-self/g,"")+e;case 5548:return E+e+w+D(e,"shrink","negative")+e;case 5292:return E+e+w+D(e,"basis","preferred-size")+e;case 6060:return E+"box-"+D(e,"-grow","")+E+e+w+D(e,"grow","positive")+e;case 4554:return E+D(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return D(D(D(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return D(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return D(D(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+w+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4200:if(!I(e,/flex-|baseline/))return w+"grid-column-align"+C(e,t)+e;break;case 2592:case 3360:return w+D(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,I(e.props,/grid-\w+-end/)})?~_(e+(r=r[t].value),"span",0)?e:w+D(e,"-start","")+e+w+"grid-row-span:"+(~_(r,"span",0)?I(r,/\d+/):+I(r,/\d+/)-+I(e,/\d+/))+";":w+D(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return I(e.props,/grid-\w+-start/)})?e:w+D(D(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return D(e,/(.+)-inline(.+)/,E+"$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(F(e)-1-t>6)switch(N(e,t+1)){case 109:if(45!==N(e,t+4))break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+S+(108==N(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_(e,"stretch",0)?fe(D(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return D(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,i,o,a,s){return w+r+":"+n+s+(i?w+r+"-span:"+(o?a:+a-+n)+s:"")+e});case 4949:if(121===N(e,t+6))return D(e,":",":"+E)+e;break;case 6444:switch(N(e,45===N(e,14)?18:11)){case 120:return D(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+E+(45===N(e,14)?"inline-":"")+"box$3$1"+E+"$2$3$1"+w+"$2box$3")+e;case 100:return D(e,":",":"+w)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return D(e,"scroll-","scroll-snap-")+e}return e}function pe(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case R:return void(e.return=fe(e.value,e.length,r));case x:return le([Y(e,{value:D(e.value,"@","@"+E)})],n);case P:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(I(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":q(Y(e,{props:[D(t,/:(read-\w+)/,":-moz-$1")]})),q(Y(e,{props:[t]})),T(e,{props:U(r,n)});break;case"::placeholder":q(Y(e,{props:[D(t,/:(plac\w+)/,":"+E+"input-$1")]})),q(Y(e,{props:[D(t,/:(plac\w+)/,":-moz-$1")]})),q(Y(e,{props:[D(t,/:(plac\w+)/,w+"input-$1")]})),q(Y(e,{props:[t]})),T(e,{props:U(r,n)})}return""})}}function de(e){return re(he("",null,null,null,[""],e=te(e),0,[0],e))}function he(e,t,r,n,i,o,a,s,u){for(var l=0,c=0,f=a,p=0,d=0,h=0,y=1,g=1,m=1,v=0,b="",w=i,S=o,E=n,O=b;g;)switch(h=v,v=K()){case 40:if(108!=h&&58==N(O,f-1)){-1!=_(O+=D(ne(v),"&","&\f"),"&\f",j(l?s[l-1]:0))&&(m=-1);break}case 34:case 39:case 91:O+=ne(v);break;case 9:case 10:case 13:case 32:O+=ie(h);break;case 92:O+=oe(J()-1,7);continue;case 47:switch(Q()){case 42:case 47:$(ge(se(K(),J()),t,r,u),u);break;default:O+="/"}break;case 123*y:s[l++]=F(O)*m;case 125*y:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==m&&(O=D(O,/\f/g,"")),d>0&&F(O)-f&&$(d>32?me(O+";",n,r,f-1,u):me(D(O," ","")+";",n,r,f-2,u),u);break;case 59:O+=";";default:if($(E=ye(O,t,r,l,c,i,s,b,w=[],S=[],f,o),o),123===v)if(0===c)he(O,t,E,E,w,o,f,s,S);else switch(99===p&&110===N(O,3)?100:p){case 100:case 108:case 109:case 115:he(e,E,E,n&&$(ye(e,E,E,0,0,i,s,b,i,w=[],f,S),S),i,S,f,s,n?w:S);break;default:he(O,E,E,E,[""],S,0,s,S)}}l=c=d=0,y=m=1,b=O="",f=a;break;case 58:f=1+F(O),d=h;default:if(y<1)if(123==v)--y;else if(125==v&&0==y++&&125==V())continue;switch(O+=A(v),v*y){case 38:m=c>0?1:(O+="\f",-1);break;case 44:s[l++]=(F(O)-1)*m,m=1;break;case 64:45===Q()&&(O+=ne(K())),p=Q(),c=f=F(b=O+=ue(J())),v++;break;case 45:45===h&&2==F(O)&&(y=0)}}return o}function ye(e,t,r,n,i,o,a,s,u,l,c,f){for(var p=i-1,d=0===i?o:[""],h=L(d),y=0,g=0,m=0;y<n;++y)for(var v=0,b=C(e,p+1,p=j(g=a[y])),w=e;v<h;++v)(w=k(g>0?d[v]+" "+b:D(b,/&\f/g,d[v])))&&(u[m++]=w);return H(e,t,r,0===i?P:s,u,l,c,f)}function ge(e,t,r,n){return H(e,t,r,O,A(X),C(e,2,-2),0,n)}function me(e,t,r,n,i){return H(e,t,r,R,C(e,0,n),C(e,n+1,-1),n,i)}var ve={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},be="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",we="active",Se="data-styled-version",Ee="6.1.19",Oe="/*!sc*/\n",Pe="undefined"!=typeof window&&"undefined"!=typeof document,Re=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)),xe=(new Set,Object.freeze([])),je=Object.freeze({});function Ae(e,t,r){return void 0===r&&(r=je),e.theme!==r.theme&&e.theme||t||r.theme}var Te=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"]),ke=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ie=/(^-|-$)/g;function De(e){return e.replace(ke,"-").replace(Ie,"")}var _e=/(a)(d)/gi,Ne=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ce(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ne(t%52)+r;return(Ne(t%52)+r).replace(_e,"$1-$2")}var Fe,Le=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},$e=function(e){return Le(5381,e)};function Ue(e){return Ce($e(e)>>>0)}function Be(e){return e.displayName||e.name||"Component"}function Me(e){return"string"==typeof e&&!0}var ze="function"==typeof Symbol&&Symbol.for,We=ze?Symbol.for("react.memo"):60115,Xe=ze?Symbol.for("react.forward_ref"):60112,Ge={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},He={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ye={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qe=((Fe={})[Xe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fe[We]=Ye,Fe);function Ve(e){return("type"in(t=e)&&t.type.$$typeof)===We?Ye:"$$typeof"in e?qe[e.$$typeof]:Ge;var t}var Ke=Object.defineProperty,Qe=Object.getOwnPropertyNames,Je=Object.getOwnPropertySymbols,Ze=Object.getOwnPropertyDescriptor,et=Object.getPrototypeOf,tt=Object.prototype;function rt(e,t,r){if("string"!=typeof t){if(tt){var n=et(t);n&&n!==tt&&rt(e,n,r)}var i=Qe(t);Je&&(i=i.concat(Je(t)));for(var o=Ve(e),a=Ve(t),s=0;s<i.length;++s){var u=i[s];if(!(u in He||r&&r[u]||a&&u in a||o&&u in o)){var l=Ze(t,u);try{Ke(e,u,l)}catch(e){}}}}return e}function nt(e){return"function"==typeof e}function it(e){return"object"==typeof e&&"styledComponentId"in e}function ot(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function at(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 st(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ut(e,t,r){if(void 0===r&&(r=!1),!r&&!st(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ut(e[n],t[n]);else if(st(t))for(var n in t)e[n]=ut(e[n],t[n]);return e}function lt(e,t){Object.defineProperty(e,"toString",{value:t})}function ct(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 ft=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 ct(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(Oe);return t},e}(),pt=new Map,dt=new Map,ht=1,yt=function(e){if(pt.has(e))return pt.get(e);for(;dt.has(ht);)ht++;var t=ht++;return pt.set(e,t),dt.set(t,e),t},gt=function(e,t){ht=t+1,pt.set(e,t),dt.set(t,e)},mt="style[".concat(be,"][").concat(Se,'="').concat(Ee,'"]'),vt=new RegExp("^".concat(be,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),bt=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)},wt=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Oe),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var u=s.match(vt);if(u){var l=0|parseInt(u[1],10),c=u[2];0!==l&&(gt(c,l),bt(e,c,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},St=function(e){for(var t=document.querySelectorAll(mt),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(be)!==we&&(wt(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Et(){return r.nc}var Ot=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(be,"]")));return t[t.length-1]}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(be,we),n.setAttribute(Se,Ee);var a=Et();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},Pt=function(){function e(e){this.element=Ot(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 ct(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}(),Rt=function(){function e(e){this.element=Ot(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}(),xt=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}(),jt=Pe,At={isServer:!Pe,useCSSOMInjection:!Re},Tt=function(){function e(e,t,r){void 0===e&&(e=je),void 0===t&&(t={});var n=this;this.options=g(g({},At),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Pe&&jt&&(jt=!1,St(this)),lt(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=function(r){var i=function(e){return dt.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(be,".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(Oe)},o=0;o<r;o++)i(o);return n}(n)})}return e.registerId=function(e){return yt(e)},e.prototype.rehydrate=function(){!this.server&&Pe&&St(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(g(g({},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 xt(r):t?new Pt(r):new Rt(r)}(this.options),new ft(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(yt(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(yt(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(yt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),kt=/&/g,It=/^\s*\/\/.*$/gm;function Dt(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=Dt(e.children,t)),e})}function _t(e){var t,r,n,i=void 0===e?je:e,o=i.options,a=void 0===o?je:o,s=i.plugins,u=void 0===s?xe:s,l=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},c=u.slice();c.push(function(e){e.type===P&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(kt,r).replace(n,l))}),a.prefix&&c.push(pe),c.push(ce);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(It,""),l=de(o||i?"".concat(o," ").concat(i," { ").concat(u," }"):u);a.namespace&&(l=Dt(l,a.namespace));var f,p,d,h=[];return le(l,(f=c.concat((d=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&d(e)})),p=L(f),function(e,t,r,n){for(var i="",o=0;o<p;o++)i+=f[o](e,t,r,n)||"";return i})),h};return f.hash=u.length?u.reduce(function(e,t){return t.name||ct(15),Le(e,t.name)},5381).toString():"",f}var Nt=new Tt,Ct=_t(),Ft=t().createContext({shouldForwardProp:void 0,styleSheet:Nt,stylis:Ct}),Lt=(Ft.Consumer,t().createContext(void 0));function $t(){return(0,e.useContext)(Ft)}function Ut(r){var n=(0,e.useState)(r.stylisPlugins),i=n[0],o=n[1],a=$t().styleSheet,s=(0,e.useMemo)(function(){var e=a;return r.sheet?e=r.sheet:r.target&&(e=e.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e},[r.disableCSSOMInjection,r.sheet,r.target,a]),u=(0,e.useMemo)(function(){return _t({options:{namespace:r.namespace,prefix:r.enableVendorPrefixes},plugins:i})},[r.enableVendorPrefixes,r.namespace,i]);(0,e.useEffect)(function(){b()(i,r.stylisPlugins)||o(r.stylisPlugins)},[r.stylisPlugins]);var l=(0,e.useMemo)(function(){return{shouldForwardProp:r.shouldForwardProp,styleSheet:s,stylis:u}},[r.shouldForwardProp,s,u]);return t().createElement(Ft.Provider,{value:l},t().createElement(Lt.Provider,{value:u},r.children))}var Bt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ct);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,lt(this,function(){throw ct(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Ct),this.name+e.hash},e}(),Mt=function(e){return e>="A"&&e<="Z"};function zt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Mt(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Wt=function(e){return null==e||!1===e||""===e},Xt=function(e){var t,r,n=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!Wt(o)&&(Array.isArray(o)&&o.isCss||nt(o)?n.push("".concat(zt(i),":"),o,";"):st(o)?n.push.apply(n,m(m(["".concat(i," {")],Xt(o),!1),["}"],!1)):n.push("".concat(zt(i),": ").concat((t=i,null==(r=o)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ve||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Gt(e,t,r,n){return Wt(e)?[]:it(e)?[".".concat(e.styledComponentId)]:nt(e)?!nt(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Gt(e(t),t,r,n):e instanceof Bt?r?(e.inject(r,n),[e.getName(n)]):[e]:st(e)?Xt(e):Array.isArray(e)?Array.prototype.concat.apply(xe,e.map(function(e){return Gt(e,t,r,n)})):[e.toString()];var i}function Ht(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(nt(r)&&!it(r))return!1}return!0}var Yt=$e(Ee),qt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ht(e),this.componentId=t,this.baseHash=Le(Yt,t),this.baseStyle=r,Tt.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=ot(n,this.staticRulesId);else{var i=at(Gt(this.rules,e,t,r)),o=Ce(Le(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=ot(n,o),this.staticRulesId=o}else{for(var s=Le(this.baseHash,r.hash),u="",l=0;l<this.rules.length;l++){var c=this.rules[l];if("string"==typeof c)u+=c;else if(c){var f=at(Gt(c,e,t,r));s=Le(s,f+l),u+=f}}if(u){var p=Ce(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(u,".".concat(p),void 0,this.componentId)),n=ot(n,p)}}return n},e}(),Vt=t().createContext(void 0);Vt.Consumer;var Kt={};new Set;function Qt(r,n,i){var o=it(r),a=r,s=!Me(r),u=n.attrs,l=void 0===u?xe:u,c=n.componentId,f=void 0===c?function(e,t){var r="string"!=typeof e?"sc":De(e);Kt[r]=(Kt[r]||0)+1;var n="".concat(r,"-").concat(Ue(Ee+r+Kt[r]));return t?"".concat(t,"-").concat(n):n}(n.displayName,n.parentComponentId):c,p=n.displayName,d=void 0===p?function(e){return Me(e)?"styled.".concat(e):"Styled(".concat(Be(e),")")}(r):p,h=n.displayName&&n.componentId?"".concat(De(n.displayName),"-").concat(n.componentId):n.componentId||f,y=o&&a.attrs?a.attrs.concat(l).filter(Boolean):l,m=n.shouldForwardProp;if(o&&a.shouldForwardProp){var v=a.shouldForwardProp;if(n.shouldForwardProp){var b=n.shouldForwardProp;m=function(e,t){return v(e,t)&&b(e,t)}}else m=v}var w=new qt(i,h,o?a.componentStyle:void 0);function S(r,n){return function(r,n,i){var o=r.attrs,a=r.componentStyle,s=r.defaultProps,u=r.foldedComponentIds,l=r.styledComponentId,c=r.target,f=t().useContext(Vt),p=$t(),d=r.shouldForwardProp||p.shouldForwardProp,h=Ae(n,f,s)||je,y=function(e,t,r){for(var n,i=g(g({},t),{className:void 0,theme:r}),o=0;o<e.length;o+=1){var a=nt(n=e[o])?n(i):n;for(var s in a)i[s]="className"===s?ot(i[s],a[s]):"style"===s?g(g({},i[s]),a[s]):a[s]}return t.className&&(i.className=ot(i.className,t.className)),i}(o,n,h),m=y.as||c,v={};for(var b in y)void 0===y[b]||"$"===b[0]||"as"===b||"theme"===b&&y.theme===h||("forwardedAs"===b?v.as=y.forwardedAs:d&&!d(b,m)||(v[b]=y[b]));var w=function(e,t){var r=$t();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,y),S=ot(u,l);return w&&(S+=" "+w),y.className&&(S+=" "+y.className),v[Me(m)&&!Te.has(m)?"class":"className"]=S,i&&(v.ref=i),(0,e.createElement)(m,v)}(E,r,n)}S.displayName=d;var E=t().forwardRef(S);return E.attrs=y,E.componentStyle=w,E.displayName=d,E.shouldForwardProp=m,E.foldedComponentIds=o?ot(a.foldedComponentIds,a.styledComponentId):"",E.styledComponentId=h,E.target=o?a.target:r,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?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++)ut(e,i[n],!0);return e}({},a.defaultProps,e):e}}),lt(E,function(){return".".concat(E.styledComponentId)}),s&&rt(E,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function Jt(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 Zt=function(e){return Object.assign(e,{isCss:!0})};function er(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(nt(e)||st(e))return Zt(Gt(Jt(xe,m([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Gt(n):Zt(Gt(Jt(n,t)))}function tr(e,t,r){if(void 0===r&&(r=je),!t)throw ct(1,t);var n=function(n){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e(t,r,er.apply(void 0,m([n],i,!1)))};return n.attrs=function(n){return tr(e,t,g(g({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return tr(e,t,g(g({},r),n))},n}var rr=function(e){return tr(Qt,e)},nr=rr;Te.forEach(function(e){nr[e]=rr(e)});!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ht(e),Tt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var i=n(at(Gt(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&&Tt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();var ir;(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Et(),n=at([r&&'nonce="'.concat(r,'"'),"".concat(be,'="true"'),"".concat(Se,'="').concat(Ee,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw ct(2);return e._emitSheetCSS()},this.getStyleElement=function(){var r;if(e.sealed)throw ct(2);var n=e.instance.toString();if(!n)return[];var i=((r={})[be]="",r[Se]=Ee,r.dangerouslySetInnerHTML={__html:n},r),o=Et();return o&&(i.nonce=o),[t().createElement("style",g({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Tt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw ct(2);return t().createElement(Ut,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw ct(3)}})(),"__sc-".concat(be,"__");var or=nr.div(ir||(ir=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"])));function ar(e){return ar="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},ar(e)}var sr=["children","style","option"];function ur(){return ur=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},ur.apply(null,arguments)}function lr(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 cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(r),!0).forEach(function(t){fr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ar(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ar(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pr=(0,e.forwardRef)(function(t,r){var n=t.children,o=t.style,a=t.option,s=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}(t,sr),u=(0,e.useRef)(null),c=l(u,a);return y(c,a),(0,e.useImperativeHandle)(r,function(){return{toggleState:function(){var e;null===(e=c.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null===(t=c.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null===(e=c.current)||void 0===e||e.pause()},set:function(e){if(!(0,i.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var o,a=t[r];null===(o=c.current)||void 0===o||o.set(a,e[a])}}}}),e.createElement(or,ur({style:cr({backgroundRepeat:"round"},o)},s),e.createElement("canvas",{ref:u,"data-earthnut-ui":"canvas",width:0,height:0}),n)});function dr(e){return dr="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},dr(e)}pr.displayName="en-background-ripple";var hr=["children","style","option"];function yr(){return yr=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},yr.apply(null,arguments)}function gr(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 mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(r),!0).forEach(function(t){vr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=dr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=dr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var br=(0,e.forwardRef)(function(t,r){var n=t.children,o=t.style,a=t.option,u=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}(t,hr),l=(0,e.useRef)(null),c=s(l,a).ripples;return y(c,a),(0,e.useImperativeHandle)(r,function(){return{toggleState:function(){var e;null===(e=c.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null===(t=c.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null===(e=c.current)||void 0===e||e.pause()},set:function(e){if(!(0,i.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var o,a=t[r];null===(o=c.current)||void 0===o||o.set(a,e[a])}}}}),e.createElement(or,yr({style:mr({backgroundRepeat:"round"},o)},u),e.createElement("canvas",{ref:l,"data-earthnut-ui":"canvas",width:0,height:0}),n)});br.displayName="en-lazy-background-ripple";const wr=require("xcn");var Sr,Er=["className","children","height","noSticky"];function Or(){return Or=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},Or.apply(null,arguments)}var Pr=nr.div(Sr||(Sr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: header;\n position: sticky;\n top: 0px;\n left: 0px;\n z-index: 10;\n height: var(--layout-header-height);\n box-shadow: 0 4px 13px -3px #0000001a;\n overflow: hidden;\n"]))),Rr=t().forwardRef(function(e,r){var n=e.className,i=e.children,o=(e.height,e.noSticky,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,Er));return t().createElement(Pr,Or({ref:r,className:(0,wr.xcn)(["en-layout-header"],n)},o,{"data-earthnut-ui":"layout-header"}),i)});Rr.displayName="LayoutHeader";var xr,jr=["className","width","right","full"];function Ar(){return Ar=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},Ar.apply(null,arguments)}var Tr=nr.div(xr||(xr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: sticky;\n left: 0;\n z-index: 8;\n grid-area: side;\n overflow-x: hidden;\n overflow-y: auto;\n"]))),kr=t().forwardRef(function(e,r){var n=e.className,i=(e.width,e.right,e.full,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,jr));return t().createElement(Tr,Ar({className:(0,wr.xcn)("en-layout-side",n),ref:r},i,{"data-earthnut-ui":"layout-side-bar"}))});kr.displayName="LayoutSideBar";var Ir,Dr=["className"];function _r(){return _r=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},_r.apply(null,arguments)}var Nr=nr.main(Ir||(Ir=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n"]))),Cr=t().forwardRef(function(e,r){var n=e.className,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,Dr);return t().createElement(Nr,_r({ref:r,className:(0,wr.xcn)("en-layout-main",n)},i,{"data-earthnut-ui":"layout-content"}))});Cr.displayName="LayoutContent";var Fr,Lr=["className","height"];function $r(){return $r=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},$r.apply(null,arguments)}var Ur,Br,Mr,zr,Wr,Xr,Gr,Hr,Yr,qr,Vr,Kr,Qr,Jr,Zr,en,tn,rn,nn,on,an,sn,un,ln,cn,fn=nr.div(Fr||(Fr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: footer;\n height: var(--layout-footer-height);\n box-shadow: 0 -1px 13px 0px #0000001a;\n overflow: hidden;\n"]))),pn=t().forwardRef(function(e,r){var n=e.className,i=(e.height,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,Lr));return t().createElement(fn,$r({ref:r},i,{className:(0,wr.xcn)("en-layout-footer",n),"data-earthnut-ui":"layout-footer"}))});function dn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}pn.displayName="LayoutFooter";var hn=nr.div(Ur||(Ur=dn(["\n position: relative;\n top: 0px;\n width: var(--layout-width);\n height: var(--layout-height);\n overflow-x: hidden;\n overflow-y: auto;\n\n ","\n // 侧边栏全屏样式\n ","\n\n // ------------------------------\n // --- 标准模式(全)与侧边栏右置(全)共用样式 ---\n // 标准模式(全)与侧边栏右置(全)\n ","\n\n // 标准模式(全) 侧边栏与内容区设置\n ","\n // 侧边栏(全) 侧边栏与内容区设置\n ","\n\n // 侧边栏 (全) 左侧全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n \n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 标准模式(无 header)与侧边栏在右侧的无头模式共用样式 ---\n // 标准的无头模式样式、侧边栏在右侧的无头模式样式\n ","\n \n // 侧边栏(无 header )全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n\n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // 标准模式(无 footer)与侧边栏右置(无 footer)共用样式\n // 没有 footer\n ","\n \n\n // 标准模式(无 footer) 侧边栏与内容区设置\n ","\n\n\n// 侧边栏在右侧的无 footer 模式样式\n ","\n\n// 侧边栏 (全) 左侧全屏\n// side bar 居左全尺寸\n// side bar 值由 en-layout-side-full 控制\n","\n\n// 标准的 side bar 居左全尺寸\n ","\n\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 分割线 --- \n // 下面是仅头部、底部和侧边栏布局\n // 仅底部布局\n ","\n\n // 仅头部布局\n ","\n \n // 仅侧边布局\n// 标准的无头模式样式、侧边栏在右侧的无头模式样式\n// side bar 值由 en-layout-side-full 控制\n ","\n \n // 右侧侧边布局\n ","\n"])),function(e){var t=e.$headerNoSticky,r=e.$header,n=e.$layoutType,i=e.$content,o=e.$sidebar;return t&&er(Br||(Br=dn(["\n // 头部不粘连样式,头部区域设置\n & > ."," {\n position: relative;\n z-index: 2;\n }\n\n ","\n\n ","\n "])),r,("simple-all"===n||"side-right-all"===n)&&er(Mr||(Mr=dn(["\n & > ."," > ."," {\n top: 0;\n min-height: calc(\n var(--layout-height) - var (--layout-footer-height) - var(--layout-header-height)\n );\n max-height: var(--layout-height);\n }\n "])),i,o),("simple-no-footer"===n||"side-right-no-footer"===n)&&er(zr||(zr=dn(["\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n "])),o))},function(e){var t=e.$layoutType,r=e.$sidebar;return"side-full"===t&&er(Wr||(Wr=dn(["\n & > ."," {\n top: 0;\n height: var(--layout-height);\n }\n "])),r)},function(e){var t=e.$layoutType,r=e.$content,n=e.$sidebar;return["simple-all","side-right-all"].includes(t)&&er(Xr||(Xr=dn(["\n // 子元素\n & > ."," {\n display: grid;\n grid-template-rows:\n calc(var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height))\n auto;\n min-height: calc(100% - var(--layout-header-height) - var(--layout-footer-height));\n\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n min-height: calc(\n var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height)\n );\n max-height: calc(var(--layout-height) - var(--layout-header-height));\n }\n }\n "])),r,n)},function(e){var t=e.$layoutType,r=e.$content;return["simple-all","simple-no-header"].includes(t)&&er(Gr||(Gr=dn(["\n & > ."," {\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n '. content';\n }\n "])),r)},function(e){var t=e.$layoutType,r=e.$content;return["side-right-all","side-right-no-header"].includes(t)&&er(Hr||(Hr=dn(["\n & > ."," {\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'content .';\n }\n "])),r)},function(e){var t=e.$layoutType;return["side-full-all","side-right-full-all"].includes(t)&&er(Yr||(Yr=dn(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto var(--layout-footer-height);\n gap: 0px;\n "])))},function(e){return"side-full-all"===e.$layoutType&&er(qr||(qr=dn(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content'\n 'side footer';\n "])))},function(e){return"side-right-full-all"===e.$layoutType&&er(Vr||(Vr=dn(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side'\n 'footer side';\n "])))},function(e){var t=e.$layoutType,r=e.$content,n=e.$sidebar;return["simple-no-header","side-right-no-header"].includes(t)&&er(Kr||(Kr=dn(["\n & > ."," {\n display: grid;\n grid-template-rows: auto;\n // side bar 块的样式\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n }\n "])),r,n)},function(e){var t=e.$layoutType;return["side-full-no-header","side-right-full-no-header"].includes(t)&&er(Qr||(Qr=dn(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n gap: 0px;\n "])))},function(e){return"side-full-no-header"===e.$layoutType&&er(Jr||(Jr=dn(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n 'side footer';\n "])))},function(e){return"side-right-full-no-header"===e.$layoutType&&er(Zr||(Zr=dn(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'footer side';\n "])))},function(e){var t=e.$layoutType,r=e.$sidebar;return["simple-no-footer","side-right-no-footer"].includes(t)&&er(en||(en=dn(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n min-height: calc(100% - var(--layout-header-height));\n gap: 0px;\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n height: calc(var(--layout-height) - var(--layout-header-height));\n }\n "])),r)},function(e){return"simple-no-footer"===e.$layoutType&&er(tn||(tn=dn(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'header header'\n 'side content'\n '. content';\n "])))},function(e){return"side-right-no-footer"===e.$layoutType&&er(rn||(rn=dn(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header header'\n 'content side'\n 'content .';\n "])))},function(e){var t=e.$layoutType,r=e.$main;return["side-full-no-footer","side-right-full-no-footer"].includes(t)&&er(nn||(nn=dn(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n gap: 0px;\n\n // content 块\n & > ."," {\n min-height: calc(var(--layout-height) - var (--layout-header-height));\n }\n "])),r)},function(e){return"side-full-no-footer"===e.$layoutType&&er(on||(on=dn(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content';\n "])))},function(e){return"side-right-full-no-footer"===e.$layoutType&&er(an||(an=dn(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side';\n "])))},function(e){return"only-footer"===e.$layoutType&&er(sn||(sn=dn(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'content' 'footer';\n "])))},function(e){return"only-header"===e.$layoutType&&er(un||(un=dn(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'header' 'content';\n "])))},function(e){var t=e.$layoutType;return["simple-only-side","side-right-only-side","side-full-only-side","side-right-full-only-side"].includes(t)&&er(ln||(ln=dn(["\n display: grid;\n // 纵向空间占比设置\n grid-template-rows: 100%;\n // 横向空间占比设置\n grid-template-columns: var(--layout-side-bar-width) auto;\n gap: 0px;\n grid-template-areas:\n 'side content'\n '. content';\n "])))},function(e){var t=e.$layoutType;return("side-right-full-only-side"===t||"side-right-only-side"===t)&&er(cn||(cn=dn(["\n grid-template-areas:\n 'content side'\n 'content .';\n grid-template-columns: auto var(--layout-side-bar-width);\n "])))});function yn(e){return(0,i.isNumber)(e)||parseInt(e)===Number(e)?e+"px":e||0}var gn=r(705);function mn(e){return"en-"+e+"-"+(0,gn.getRandomString)({length:12,includeNumbers:!0,includeUppercaseLetters:!0})}function vn(e){return vn="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},vn(e)}var bn,wn=["className","children","style","width","height","classes"];function Sn(){return Sn=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},Sn.apply(null,arguments)}function En(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 On(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?En(Object(r),!0).forEach(function(t){Pn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Pn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=vn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Rn=nr.div(bn||(bn=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n overflow: auto;\n"]))),xn=e.forwardRef(function(t,r){var n,o,a,s,u=t.className,l=t.children,c=t.style,f=t.width,p=void 0===f?"100vw":f,d=t.height,h=void 0===d?"100vh":d,y=t.classes,g=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}(t,wn),m="simple",v=!1,b=!1,w=!1,S=!1,E=!1,O=150,P="2.8rem",R="2rem",x=!1,j=mn("header"),A=mn("content"),T=mn("main"),k=mn("sidebar"),I=mn("footer");e.Children.forEach(l,function(t){if(e.isValidElement(t))if(b||t.type!==Rr)if(w||t.type!==kr)if(S||t.type!==Cr)if(S||t.type!==xn){if(!E&&t.type===pn){var r=t;R=r.props.height||R,s=e.cloneElement(r,{className:(0,wr.xcn)(I,r.props.className)}),E=!0}}else{var u=t;a=e.createElement(Rn,{"data-earthnut-ui":"layout-content",className:(0,wr.xcn)(T,"en-layout-main")},u),S=!0}else{var l=t;a=e.cloneElement(l,{className:(0,wr.xcn)(T,l.props.className)}),S=!0}else{var c=t,f=c.props;O=f.width||O,m=f.right&&f.full?"side-right-full":f.right?"side-right":f.full?"side-full":"simple",x=(0,i.isTrue)(f.full),o=e.cloneElement(c,{className:(0,wr.xcn)(k,c.props.className)}),w=!0}else{var p,d=t,h=d.props;P=h.height||P,v=null!==(p=h.noSticky)&&void 0!==p&&p,n=e.cloneElement(d,{className:(0,wr.xcn)(j,d.props.className)}),b=!0}});var D=b&&w&&S&&E&&"".concat(m,"-all")||b&&S&&w&&"".concat(m,"-no-footer")||w&&S&&E&&"".concat(m,"-no-header")||S&&E&&"only-footer"||S&&b&&"only-header"||S&&w&&(x=!0)&&"".concat(m,"-only-side")||"simple",_=On({layoutHeight:p,layoutWith:h,sideBarWidth:O,headerHeight:P,footerHeight:R},g.theme||{}),N=/side.*full/.test(m);return e.createElement(hn,Sn({ref:r,$headerNoSticky:v,$layoutType:D,$header:j,$sidebar:k,$main:T,$content:A,$footer:I,className:(0,wr.xcn)(x&&"en-layout-side-full","en-layout-".concat(D),u,y),style:On({"--layout-width":yn(p),"--layout-height":yn(h),"--layout-side-bar-width":yn(O),"--layout-header-height":yn(P),"--layout-footer-height":yn(R)},c),theme:_},g,{"data-earthnut-ui":"layout"}),N?e.createElement(e.Fragment,null,o,n,a,s):e.createElement(e.Fragment,null,n,E?e.createElement("div",{className:(0,wr.xcn)(A),"data-earthnut-ui":"layout-with-foot-content"},o,a):e.createElement(e.Fragment,null,o,a),s))});function jn(){var t=(0,e.useRef)(void 0);return(0,e.useEffect)(function(){return function(){return t.current&&clearTimeout(t.current)}},[]),t}function An(){var t=(0,e.useRef)(0);return(0,e.useEffect)(function(){return function(){t.current&&window.cancelAnimationFrame(t.current)}},[]),t}function Tn(t){var r=(0,e.useRef)(!1);return(0,e.useEffect)(function(){var e=t.current;if(e){var n=function(){return r.current=!0},i=function(){return r.current=!1};return e.addEventListener("compositionstart",n),e.addEventListener("compositionend",i),function(){e.removeEventListener("compositionstart",n),e.removeEventListener("compositionend",i)}}},[]),r}xn.displayName="Layout";const kn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAMAAACeL25MAAAACVBMVEUAAAD///////9zeKVjAAAAA3RSTlP//wDXyg1BAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAEElEQVQImWNkYmBgYGJAIQAAigAKNDhFkwAAAABJRU5ErkJggg==";function In(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Dn(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)?Dn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dn(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 _n,Nn=["loadingSrc","className","src"];function Cn(){return Cn=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},Cn.apply(null,arguments)}var Fn=nr.img(_n||(_n=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n margin: 0;\n padding: 0;\n user-select: none;\n"]))),Ln=t().forwardRef(function(r,n){var o=r.loadingSrc,a=void 0===o?kn:o,s=r.className,u=r.src,l=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}(r,Nn),c=function(t,r){var n=In((0,e.useState)(kn),2),o=n[0],a=n[1],s=In((0,e.useState)(0),2),u=s[0],l=s[1];return(0,e.useEffect)(function(){l(1),(0,i.isString)(t)||(t=kn);var e=new Image;e.onload=function(){l(2),a(t)},e.onerror=function(){a(r||kn),l(4)},e.src=t,e.crossOrigin="anonymous"},[t,r]),{resultSrc:o,loadComplete:u}}(null!=u?u:a),f=c.resultSrc,p=c.loadComplete;return t().createElement(Fn,Cn({},l,{ref:n,src:f||a,className:(0,wr.xcn)(1===p&&"loading",s)}))});Ln.displayName="en-image"})(),module.exports=n})();
package/index.d.ts CHANGED
@@ -4,7 +4,14 @@
4
4
  * Copyright (c) 2025 earthnut.dev
5
5
  * 请在项目根参看详细许可证明
6
6
  */
7
- export { BackgroundRipple, LazyBackgroundRipple, Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSideBar, EnLayout, EnLayoutContent, EnLayoutFooter, EnLayoutHeader, EnLayoutSideBar, } from './components/index';
8
- export { useTimeId, useAnimationFrameId, useRipples, useLazyRipples, useInputIsComposing, } from './customHooks/index';
9
- export type { Ripples, BackgroundRipplesProps, RipplesOptions, RippleImgUrl, } from './customHooks/index';
7
+ export { useLazyRipples } from './customHooks/useRipples/use-lazy-ripple';
8
+ export { BackgroundRipple, LazyBackgroundRipple } from './components/ripples/';
9
+ export { Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSideBar, EnLayout, EnLayoutContent, EnLayoutFooter, EnLayoutHeader, EnLayoutSideBar, } from './components/layout';
10
+ export { useTimeId } from './customHooks/useTimeId';
11
+ export { useAnimationFrameId } from './customHooks/useAnimationFrame';
12
+ export { useInputIsComposing } from './customHooks/useInputIsComposing';
13
+ export { useRipples } from './customHooks/useRipples';
14
+ export type { Ripples, BackgroundRipplesProps, RipplesOptions, RippleImgUrl, } from './customHooks/useRipples';
10
15
  export type { LayoutProps, LayoutSideBarProps, LayoutHeaderProps, LayoutFooterProps, } from './components/layout';
16
+ export { Image, Image as EnImage } from './components/image';
17
+ export type { EnImageProps } from './components/image';