1import{d as ee,z as j,o as ae,Y as N,a as oe,C as U,y as te,_ as re}from"./BEdepSaR.js";const ce={class:"wave-bg-wrap"},ne=ee({__name:"LoginWaveBackground",setup(le){const O=j(null),R=j(null);return ae(()=>{const h=O.value;if(!h)return;const r=h.getContext("2d"),y=h;let d=y.offsetWidth,s=y.offsetHeight;function E(){const a=Math.min(window.devicePixelRatio||1,2);y.width=Math.max(1,Math.round(d*a)),y.height=Math.max(1,Math.round(s*a)),r.setTransform(a,0,0,a,0,0)}E();let $=d/2,v=s/2,Y=d/2,D=s/2;const p=[];for(let a=0;a<100;a++)p.push(T(d,s));for(let a=0;a<8;a++)p.push(A(d,s));for(let a=0;a<5;a++)p.push(I(d,s));function T(a,t){const c=Math.random()*400+200,o=Math.random()<.2,e=o?Math.random()*10+6:Math.random()*2.5+.5,i=o?Math.random()*.25+.08:Math.random()*.5+.15;return{x:Math.random()*a,y:Math.random()*t,r:e,alpha:i,vx:(Math.random()-.5)*.2,vy:(Math.random()-.5)*.2,life:c,maxLife:c,glow:o}}function A(a,t){const c=Math.random()*600+400;return{x:Math.random()*a,y:Math.random()*t,r:Math.random()*18+28,alpha:Math.random()*.18+.06,vx:(Math.random()-.5)*.1,vy:(Math.random()-.5)*.1,life:c,maxLife:c,glow:!0}}function I(a,t){const c=Math.random()*700+500;return{x:Math.random()*a,y:Math.random()*t,r:Math.random()*8+56,alpha:Math.random()*.12+.04,vx:(Math.random()-.5)*.06,vy:(Math.random()-.5)*.06,life:c,maxLife:c,glow:!0}}const S=[{amp:130,freq:.0022,yBase:.54,thickness:162,color:[140,60,230],opacity:.22,phase:1.1,speed:.006,advance:.009,secondary:.28,freqMul2:1.85,secScrollMul:.55,tertiary:.18,freqMul3:2.7,terScrollMul:.32,chaosW:.62,chaosFreq:5e-4,chaosScrollMul:.22,ampDepth:.52,ampOscSpeed:.0012,ampPhase:.6,coaster:0},{amp:220,freq:.0048,yBase:.51,thickness:132,color:[160,80,255],opacity:.18,phase:4.6,speed:.01,advance:.028,secondary:.72,freqMul2:1.52,secScrollMul:.72,tertiary:.55,freqMul3:2.18,terScrollMul:.48,chaosW:.38,chaosFreq:7e-4,chaosScrollMul:.38,ampDepth:.28,ampOscSpeed:.0018,ampPhase:2.4,coaster:0},{amp:110,freq:.0014,yBase:.57,thickness:176,color:[110,40,210],opacity:.2,phase:2.2,speed:.005,advance:.007,secondary:.82,freqMul2:2.1,secScrollMul:.42,tertiary:.22,freqMul3:3.2,terScrollMul:.28,chaosW:.68,chaosFreq:4e-4,chaosScrollMul:.18,ampDepth:.58,ampOscSpeed:.001,ampPhase:5.1,coaster:0},{amp:200,freq:.0058,yBase:.49,thickness:116,color:[170,90,255],opacity:.25,phase:.2,speed:.012,advance:.034,secondary:.45,freqMul2:1.38,secScrollMul:.88,tertiary:.68,freqMul3:2.42,terScrollMul:.62,chaosW:.32,chaosFreq:8e-4,chaosScrollMul:.52,ampDepth:.22,ampOscSpeed:.0022,ampPhase:3.7,coaster:0},{amp:150,freq:.0038,yBase:.6,thickness:150,color:[120,50,220],opacity:.18,phase:3.4,speed:.007,advance:.01,secondary:.55,freqMul2:1.72,secScrollMul:.58,tertiary:.35,freqMul3:2.95,terScrollMul:.38,chaosW:.75,chaosFreq:6e-4,chaosScrollMul:.28,ampDepth:.48,ampOscSpeed:.0014,ampPhase:1.05,coaster:0}],g=[{amp:135,freq:.0032,yBase:.44,color:"rgba(200,180,255,0.28)",lw:1,phase:5.4,speed:.007,advance:.016,secondary:.58,freqMul2:1.92,secScrollMul:.62,tertiary:.44,freqMul3:2.65,terScrollMul:.44,chaosW:.5,chaosFreq:6e-4,chaosScrollMul:.32,ampDepth:.4,ampOscSpeed:.0014,ampPhase:4.2,coaster:0},{amp:110,freq:.0028,yBase:.65,color:"rgba(190,170,255,0.22)",lw:.8,phase:.85,speed:.009,advance:.024,secondary:.62,freqMul2:1.45,secScrollMul:.78,tertiary:.48,freqMul3:2.08,terScrollMul:.55,chaosW:.54,chaosFreq:7e-4,chaosScrollMul:.42,ampDepth:.38,ampOscSpeed:.0019,ampPhase:.55,coaster:0},{amp:155,freq:.0018,yBase:.4,color:"rgba(210,190,255,0.18)",lw:.7,phase:2.9,speed:.004,advance:.006,secondary:.52,freqMul2:2.25,secScrollMul:.38,tertiary:.52,freqMul3:3.55,terScrollMul:.24,chaosW:.42,chaosFreq:4e-4,chaosScrollMul:.16,ampDepth:.46,ampOscSpeed:9e-4,ampPhase:6.2,coaster:0}],C=S.map(()=>({t:Math.random()*Math.PI*4})),x=g.map(()=>({t:Math.random()*Math.PI*4}));let P=performance.now(),B;const J=1.18;function K(a,t,c,o,e,i){const l=i*e.speed,n=o*e.speed+l,M=1-e.ampDepth*(.5+.5*Math.sin(o*e.ampOscSpeed+e.ampPhase)),u=t*M,m=Math.sin(a*c+n+e.phase),f=e.secondary*Math.sin(a*c*e.freqMul2+n*e.secScrollMul+e.phase*1.37),q=e.tertiary*Math.sin(a*c*e.freqMul3+o*e.terScrollMul+e.phase*.73),W=e.chaosW*Math.sin(a*e.chaosFreq+n*e.chaosScrollMul+o*.19+e.phase*.5),F=1+e.secondary+e.tertiary+e.chaosW;return u*(m+f+q+W)/F*J}function Q(a,t,c,o){if(o<=0)return 0;const e=t*.5;if(a<=e)return 0;const i=t*.48+28,n=Math.min(1,Math.max(0,(a-e)/i))**2.85;return o*c*.36*n}function w(a,t,c,o,e,i,l,n=0){const M=c*i,u=(v-i/2)*.07,m=[];for(let f=-20;f<=e+20;f+=5){const q=(f-$)/e,W=Math.exp(-q*q*6)*(v-i/2)*.12,F=Q(f,e,i,l.coaster),Z=M+u+W+F+K(f,a,t,o,l,n);m.push([f,Z])}return m}function k(a){r.moveTo(a[0][0],a[0][1]);for(let t=1;t<a.length-2;t++){const c=(a[t][0]+a[t+1][0])/2,o=(a[t][1]+a[t+1][1])/2;r.quadraticCurveTo(a[t][0],a[t][1],c,o)}r.lineTo(a[a.length-1][0],a[a.length-1][1])}function X(a){const t=Math.min((a-P)/16.67,4);P=a;for(let o=0;o<C.length;o++)C[o].t+=S[o].advance*t;for(let o=0;o<x.length;o++)x[o].t+=g[o].advance*t;$+=(Y-$)/20,v+=(D-v)/20,r.clearRect(0,0,d,s);const c=r.createLinearGradient(0,0,0,s);c.addColorStop(0,"#080618"),c.addColorStop(.5,"#0e0828"),c.addColorStop(1,"#130a30"),r.f
1illStyle=c,r.fillRect(0,0,d,s);for(let o=0;o<S.length;o++){const e=S[o],i=C[o].t,l=w(e.amp,e.freq,e.yBase,i,d,s,e,0),n=w(e.amp*.85,e.freq,e.yBase+e.thickness/s,i,d,s,e,8),M=e.yBase*s,u=r.createLinearGradient(0,M-e.amp-e.thickness,0,M+e.amp+e.thickness);u.addColorStop(0,`rgba(${e.color[0]},${e.color[1]},${e.color[2]},0)`),u.addColorStop(.3,`rgba(${e.color[0]},${e.color[1]},${e.color[2]},${e.opacity})`),u.addColorStop(.7,`rgba(${e.color[0]},${e.color[1]},${e.color[2]},${e.opacity})`),u.addColorStop(1,`rgba(${e.color[0]},${e.color[1]},${e.color[2]},0)`),r.beginPath(),k(l);for(let m=n.length-1;m>=0;m--)r.lineTo(n[m][0],n[m][1]);r.closePath(),r.fillStyle=u,r.fill(),r.beginPath(),k(l),r.strokeStyle=`rgba(${e.color[0]},${e.color[1]},${e.color[2]},${e.opacity*1.8})`,r.lineWidth=1.2,r.stroke()}for(let o=0;o<g.length;o++){const e=g[o],i=x[o].t,l=w(e.amp,e.freq,e.yBase,i,d,s,e,0);r.beginPath(),k(l),r.strokeStyle=e.color,r.lineWidth=e.lw,r.stroke()}for(let o=0;o<p.length;o++){const e=p[o];e.x+=e.vx,e.y+=e.vy,e.life--;const i=e.life/e.maxLife;if(e.glow){const l=e.alpha*i,n=r.createRadialGradient(e.x,e.y,0,e.x,e.y,e.r);e.r>=48?(n.addColorStop(0,`rgba(235,215,255,${Math.min(.95,l*1.35)})`),n.addColorStop(.14,`rgba(210,185,255,${l*.88})`),n.addColorStop(.32,`rgba(190,160,255,${l*.42})`),n.addColorStop(.55,`rgba(175,145,255,${l*.14})`),n.addColorStop(.82,`rgba(165,135,255,${l*.03})`),n.addColorStop(1,"rgba(160,130,255,0)")):e.r>=22?(n.addColorStop(0,`rgba(220,195,255,${Math.min(.9,l*1.15)})`),n.addColorStop(.18,`rgba(200,170,255,${l*.75})`),n.addColorStop(.45,`rgba(185,155,255,${l*.28})`),n.addColorStop(.78,`rgba(170,140,255,${l*.06})`),n.addColorStop(1,"rgba(160,130,255,0)")):(n.addColorStop(0,`rgba(190,160,255,${l})`),n.addColorStop(1,"rgba(160,130,255,0)")),r.beginPath(),r.arc(e.x,e.y,e.r,0,Math.PI*2),r.fillStyle=n,r.fill()}else r.beginPath(),r.arc(e.x,e.y,e.r,0,Math.PI*2),r.fillStyle=`rgba(170,150,255,${e.alpha*i})`,r.fill();e.life<=0&&(o>=114?p[o]=I(d,s):o>=100?p[o]=A(d,s):p[o]=T(d,s))}B=requestAnimationFrame(X)}P=performance.now(),B=requestAnimationFrame(X);let _=d/2,L=s/2;const z=(a,t)=>{const c=h.getBoundingClientRect(),o=a-c.left,e=t-c.top;Y=o,D=e,_=o,L=e},G=a=>{z(a.clientX,a.clientY)},b=a=>{const t=a.touches[0];t&&z(t.clientX,t.clientY)},H=()=>{d=h.offsetWidth,s=h.offsetHeight,E()};h.addEventListener("mousemove",G),h.addEventListener("touchstart",b,{passive:!0}),h.addEventListener("touchmove",b,{passive:!0}),window.addEventListener("resize",H);const V=R.value;if(V){let a=function(){t+=(_-t)/20,c+=(L-c)/20,V.style.transform=`translate(${Math.round(t)}px, ${Math.round(c)}px)`,o=requestAnimationFrame(a)},t=_,c=L,o=0;a(),N(()=>{cancelAnimationFrame(o)})}N(()=>{cancelAnimationFrame(B),h.removeEventListener("mousemove",G),h.removeEventListener("touchstart",b),h.removeEventListener("touchmove",b),window.removeEventListener("resize",H)})}),(h,r)=>(te(),oe("div",ce,[U("canvas",{ref_key:"canvasRef",ref:O,class:"wave-canvas"},null,512),U("div",{ref_key:"interactiveRef",ref:R,class:"wave-interactive-bubble"},null,512)]))}}),ie=re(ne,[["__scopeId","data-v-31a96a04"]]);export{ie as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.