export const __rspack_esm_id=99881;export const __rspack_esm_ids=[99881];export const __webpack_modules__={36656(i,t,e){e.d(t,{LinkInstance:()=>f});e(18111),e(61701),e(45367),e(92731),e(17642),e(58004),e(33853),e(45876),e(32475),e(15024),e(31698);var n=e(88192),s=e(12694),o=e(80061);function l(i,t){const e=(n=i.map(i=>i.id),[...n].sort((i,t)=>i-t).join("_"));var n;let s=t.get(e);return void 0===s&&(s=(0,o.G0i)(),t.set(e,s)),s}var r=(0,s._)("_colorCache"),a=(0,s._)("_container"),c=(0,s._)("_freqs"),h=(0,s._)("_pluginManager"),_=(0,s._)("_drawTriangles"),d=(0,s._)("_getCachedStyle"),p=(0,s._)("_getLinkFrequency"),u=(0,s._)("_getTriangleFrequency");class f{drawParticle(i,t){const{links:e,options:s}=t;if(!e?.length||!s.links)return;const l=s.links,r=t.retina.linksWidth??0,c=t.getPosition(),u=t.options.twinkle?.links,f=l.triangles.enable,y=f?new Set(e.map(i=>i.destination.id)):null,k=i.globalAlpha;let g="",b=-1,v=-1,x=!1;const w=()=>{x&&(i.stroke(),x=!1)};for(const k of e){if(l.frequency<1&&(0,n._)(this,p)[p](t,k.destination)>l.frequency)continue;const e=k.destination.getPosition();if(f&&!k.isWarped&&y&&(w(),(0,n._)(this,_)[_](s,t,k,y,c,e,i)),k.opacity<=0||r<=0)continue;if(!l.enable)continue;let P=k.opacity,T=k.color;const m=u?.enable&&(0,o.G0i)()<u.frequency?(0,o.BN0)((0,n._)(this,h)[h],u.color):void 0;if(u&&m&&(T=m,P=(0,o.VGA)(u.opacity)),!T){const i=void 0!==l.id?(0,n._)(this,a)[a].particles.linksColors.get(l.id):(0,n._)(this,a)[a].particles.linksColor;T=(0,o._hh)(t,k.destination,i)}if(!T)continue;const j=(0,n._)(this,d)[d](T);if(j===g&&r===b&&P===v||(w(),i.strokeStyle=j,i.lineWidth=r,i.globalAlpha=P,g=j,b=r,v=P,i.beginPath(),x=!0),k.isWarped){const t=(0,n._)(this,a)[a].canvas.size,s=e.x-c.x,l=e.y-c.y;let r=o.boI.x,h=o.boI.y;Math.abs(s)>t.width*o.MXx&&(r=s>0?-t.width:t.width),Math.abs(l)>t.height*o.MXx&&(h=l>0?-t.height:t.height),i.moveTo(c.x,c.y),i.lineTo(e.x+r,e.y+h),i.moveTo(c.x-r,c.y-h),i.lineTo(e.x,e.y)}else i.moveTo(c.x,c.y),i.lineTo(e.x,e.y)}w(),i.globalAlpha=k}init(){return(0,n._)(this,c)[c].links.clear(),(0,n._)(this,c)[c].triangles.clear(),(0,n._)(this,r)[r].clear(),Promise.resolve()}particleCreated(i){if(i.links=[],!i.options.links)return;i.linksDistance=i.options.links.distance,i.linksWidth=i.options.links.width;const t=(0,n._)(this,a)[a].retina.pixelRatio;i.retina.linksDistance=i.linksDistance*t,i.retina.linksWidth=i.linksWidth*t}particleDestroyed(i){i.links=[]}constructor(i,t){Object.defineProperty(this,_,{value:y}),Object.defineProperty(this,d,{value:k}),Object.defineProperty(this,p,{value:g}),Object.defineProperty(this,u,{value:b}),Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),(0,n._)(this,r)[r]=new Map,(0,n._)(this,h)[h]=i,(0,n._)(this,a)[a]=t,(0,n._)(this,c)[c]={links:new Map,triangles:new Map}}}function y(i,t,e,s,l,r,a){const c=e.destination,_=i.links?.triangles;if(!_?.enable||!c.options.links?.triangles.enable)return;const f=c.links;if(f?.length)for(const y of f){if(y.isWarped||(0,n._)(this,p)[p](c,y.destination)>c.options.links.frequency||!s.has(y.destination.id))continue;const f=y.destination;if((0,n._)(this,u)[u](t,c,f)>(i.links?.triangles.frequency??0))continue;const k=_.opacity??(e.opacity+y.opacity)*o.MXx,g=(0,o.BN0)((0,n._)(this,h)[h],_.color)??e.color;if(!g||k<=0)continue;const b=f.getPosition();a.save(),a.fillStyle=(0,n._)(this,d)[d](g),a.globalAlpha=k,a.beginPath(),a.moveTo(l.x,l.y),a.lineTo(r.x,r.y),a.lineTo(b.x,b.y),a.closePath(),a.fill(),a.restore()}}function k(i){const t=`${i.r},${i.g},${i.b}`;let e=(0,n._)(this,r)[r].get(t);return e||(e=(0,o.xxz)(i,(0,n._)(this,a)[a].hdr),(0,n._)(this,r)[r].set(t,e)),e}function g(i,t){return l([i,t],(0,n._)(this,c)[c].links)}function b(i,t,e){return l([i,t,e],(0,n._)(this,c)[c].triangles)}}};
//# sourceMappingURL=99881.4bf6410fa31034db.js.map