define(["react"],(function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),n={exports:{}},r={},a=t.default,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(e,t,n){var r,a={},o=null,f=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(f=t.ref),t)l.call(t,r)&&!c.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:s,type:e,key:o,ref:f,props:a,_owner:i.current}}return r.Fragment=o,r.jsx=f,r.jsxs=f,n.exports=r,({height:r,speed:a,children:s,stopScroll:o,uid:l})=>{const i=e.useRef(),c=e.useRef(),[f,m]=e.useState(0),[d,u]=e.useState(0),p=l||"";return t.default.useEffect((()=>{const e=document.querySelector(`.scroll-${p}`),t=document.querySelector(`.scroll-${p} .scroll-content-${p}`);t&&e&&f&&d&&((e,t,n)=>{const r=document.createElement("style");r.type="text/css",1==n?(r.innerHTML=`@-webkit-keyframes scroll-content-${p} {\n                0% {\n                    -webkit-transform: translate3d(0, 0, 0);\n                    transform: translate3d(0, 0, 0);\n                }\n                100% {\n                    -webkit-transform: translate3d(0, -200%, 0);\n                    transform: translate3d(0, -200%, 0);\n                }\n            }\n            @keyframes scroll-content-${p} {\n                0% {\n                    -webkit-transform: translate3d(0, 0, 0);\n                    transform: translate3d(0, 0, 0);\n                }\n                100% {\n                    -webkit-transform: translate3d(0, -200%, 0);\n                    transform: translate3d(0, -200%, 0);\n                }\n            }\n            .scroll-content-${p}{\n                -webkit-animation: ${Math.floor(1e3*e/t)}ms scroll-content-${p} linear infinite normal;\n                animation: ${Math.floor(1e3*e/t)}ms scroll-content-${p} linear infinite normal;\n                -webkit-animation-play-state: paused;\n                animation-play-state: paused;\n            }`,document.getElementsByTagName("head")[0].appendChild(r)):(r.innerHTML=`@-webkit-keyframes scroll-content-${p}{\n                0% {\n                    -webkit-transform: translate3d(0, 0, 0);\n                    transform: translate3d(0, 0, 0);\n                }\n                100% {\n                    -webkit-transform: translate3d(0, -200%, 0);\n                    transform: translate3d(0, -200%, 0);\n                }\n            }\n            @keyframes scroll-content-${p}{\n                0% {\n                    -webkit-transform: translate3d(0, 0, 0);\n                    transform: translate3d(0, 0, 0);\n                }\n                100% {\n                    -webkit-transform: translate3d(0, -200%, 0);\n                    transform: translate3d(0, -200%, 0);\n                }\n            }\n            .scroll-content-${p}{\n                -webkit-animation: ${Math.floor(1e3*e/t)}ms scroll-content-${p} linear infinite normal;\n                animation: ${Math.floor(1e3*e/t)}ms scroll-content-${p} linear infinite normal;\n            }`,document.getElementsByTagName("head")[0].appendChild(r))})(t.offsetHeight/2,a||35,o)}),[s,f,d]),e.useLayoutEffect((()=>{m(i.current.offsetHeight),u(c.current.offsetHeight)}),[s]),n.exports.jsxs("div",{ref:i,className:`scroll-${p}`,style:{height:r},children:[n.exports.jsx("div",{ref:c,className:`scroll-content-${p}`,children:s}),d>f&&n.exports.jsxs(n.exports.Fragment,{children:[n.exports.jsx("div",{className:`scroll-content-${p}`,children:s}),n.exports.jsx("div",{className:`scroll-content-${p}`,children:s})]})]})}}));