!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(require("react")):"function"==typeof define&&define.amd?define(["react"],i):(t||self).reactWavify=i(t.react)}(this,function(t){function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=/*#__PURE__*/i(t),e=class extends t.Component{constructor(t){super(t),this.t=()=>this.i.current.offsetWidth,this.h=()=>this.i.current.offsetHeight,this.i=s.default.createRef(),this.state={path:""},this.o=0,this.l=0,this.u=0,this.p=this.p.bind(this)}m(){const t=[];for(let i=0;i<=Math.max(this.props.points,1);i++){const s=100,e=i/this.props.points*this.t(),h=(this.u+(i+i%this.props.points))*this.props.speed*s,n=Math.sin(h/s)*this.props.amplitude,o=Math.sin(h/s)*n+this.props.height;t.push({x:e,y:o})}return t}$(t){let i=`M ${t[0].x} ${t[0].y}`;const s={x:(t[1].x-t[0].x)/2,y:t[1].y-t[0].y+t[0].y+(t[1].y-t[0].y)},e=(t,i)=>` C ${t.x} ${t.y} ${t.x} ${t.y} ${i.x} ${i.y}`;i+=e(s,t[1]);let h=s;for(let s=1;s{let{options:i,...n}=t;/*#__PURE__*/return s.default.createElement(e,Object.assign({},h,i,n))};return n.displayName="Wave",n});