1import"./index-DEIWCX15.js";import"./photoswipe-n7lXYKL2.js";const b=20,O=20;function C({anchor:t,imageSrc:a,configurations:e,motion:r,size:n=b,zIndex:c=1}){if(a.length===0||!t.isConnected||e.length===0)return;const s=A(n,12,48),o=w({anchor:t,configurations:e,motion:r,particleSize:s}),u=T({zIndex:c,placement:o});let y=e.length;e.forEach(m=>{const p=_({origin:o.origin,imageSrc:a,size:s});u.appendChild(p.particle),B(p,m,r,()=>{p.particle.remove(),y-=1,y===0&&u.remove()})})}function T({zIndex:t,placement:a}){const e=document.createElement("div");return e.className="particle-burst particle-burst--document",e.ariaHidden="true",e.style.zIndex=String(t),e.style.left=`${a.left}px`,e.style.top=`${a.top}px`,e.style.width=`${a.width}px`,e.style.height=`${a.height}px`,document.body.appendChild(e),e}function w({anchor:t,configurations:a,motion:e,particleSize:r}){const n=t.getBoundingClientRect(),c={x:n.left+window.scrollX+n.width/2,y:n.top+window.scrollY+n.height/2},s=a.flatMap(d=>[d.start,d.end,d.control1,d.control2]),o=Math.min(0,...s.map(d=>d.x)),u=Math.max(0,...s.map(d=>d.x)),y=Math.min(0,...s.map(d=>d.y)),m=Math.max(0,...s.map(d=>d.y)),p=Math.max(1,e.scaleInFrom,e.scaleInTo,e.scaleOutFrom,e.scaleOutTo),f=r*p/2+4,D=c.x+o-f,E=c.y+y-f,I=u-o+f*2,M=m-y+f*2;return{left:D,top:E,width:I,height:M,origin:{x:c.x-D,y:c.y-E}}}function _({origin:t,imageSrc:a,size:e}){const r=document.createElement("span"),n=document.createElement("span"),c=document.createElement("span"),s=document.createElement("span"),o=document.createElement("img");return r.className="particle-burst__particle",r.style.left=`${t.x}px`,r.style.top=`${t.y}px`,r.style.setProperty("--particle-size",`${e}px`),n.className="particle-burst__path",c.className="particle-burst__scale-in",s.className="particle-burst__scale-out",o.className="particle-burst__image",o.src=a,o.alt="",o.width=e,o.height=e,o.decoding="async",s.appendChild(o),c.appendChild(s),n.appendChild(c),r.appendChild(n),{particle:r,pathElement:n,scaleInElement:c,scaleOutElement:s}}function B(t,a,e,r){if(typeof t.pathElement.animate!="function"||typeof t.scaleInElement.animate!="function"||typeof t.scaleOutElement.animate!="function"){r();return}const n=a.fadeinDurationScale??1,c=a.fadeoutDurationScale??1,s=x(a.delay),o=x(h(a,e)),u=x(S(a,e));t.pathElement.animate(P(a),{delay:s,duration:x(e.positionDuration*n),easing:e.positionEasing,fill:"forwards"}),t.scaleInElement.animate([{transform:`scale(${e.scaleInFrom})`},{transform:`scale(${e.scaleInTo})`}],{delay:s,duration:x(e.scaleInDuration*n),easing:e.scaleInEasing,fill:"forwards"}),t.scaleOutElement.animate([{transform:`scale(${e.scaleOutFrom})`},{transform:`scale(${e.scaleOutTo})`}],{delay:o,duration:x(e.scaleOutDuration*c),easing:e.scaleOutEasing,fill:"forwards"}),t.scaleOutElement.animate($(a,e),{duration:u,easing:e.opacityEasing??"linear",fill:"forwards"}),window.setTimeout(()=>{r()},u+34)}function P(t){const a=[];for(let e=0;e<=O;e++){const r=e/O,n=F(r,t.start,t.control1,t.control2,t.end);a.push({offset:r,transform:`translate3d(${n.x}px, ${n.y}px, 0)`})}return a}function $(t,a){const e=t.fadeinDurationScale??1,r=t.fadeoutDurationScale??1,n=S(t,a),c=t.delay,s=c+a.fadeInOpacityDuration*e,o=h(t,a),u=o+a.fadeOutOpacityDuration*r;return[{offset:0,opacity:"0"},{offset:c/n,opacity:"0"},{offset:s/n,opacity:"1"},{offset:o/n,opacity:"1"},{offset:u/n,opacity:"0"}]}function F(t,a,e,r,n){const c=1-t,s=c*c,o=s*c,u=t*t,y=u*t;return{x:o*a.x+3*s*t*e.x+3*c*u*r.x+y*n.x,y:o*a.y+3*s*t*e.y+3*c*u*r.y+y*n.y}}function h(t,a){const e=t.fadeinDurationScale??1;return Math.max(a.fadeInOpacityDuration*e,a.positionDuration*e,a.scaleInDuration*e)+a.pauseBeforeFadeOut+(t.fadeoutDelay??0)}function S(t,a){const e=t.fadeinDurationScale??1,r=t.fadeoutDurationScale??1,n=t.delay+a.positionDuration*e,c=h(t,a)+Math.max(a.scaleOutDuration*r,a.fadeOutOpacityDuration*r);return Math.max(n,c)}function x(t){return t*1e3}function A(t,a,e){return Math.min(Math.max(t,a),e)}const g=256,l=g/2,N={positionDuration:.75,fadeInOpacityDuration:.1,fadeOutOpacityDuration:.25,pauseBeforeFadeOut:.1,scaleInDuration:.5,scaleOutDuration:.25,positionEasing:"cubic-bezier(0, 0, 0.58, 1)",scaleInEasing:"cubic-bezier(0.6, 0.13, 0.66, 1)",scaleOutEasing:"cubic-bezier(0.42, 0, 0.58, 1)",scaleInFrom:.75,scaleInTo:2,scaleOutFrom:1,scaleOutTo:.125};function K({count:t,...a}){C({...a,configurations:R(t),motion:N})}function R(t){switch(z(t)){case"small":return L();case"medium":return X();case"large":return H();case"huge":return v()}}function z(t){switch(!0){case t<10:return"small";case t<50:return"medium";case t<100:return"large";default:return"huge"}}function L(){return[i({start:{x:l*.1,y:0},end:{x:l*.5,y:-192},control1:{x:0,y:0},control2:{x:-l,y:-128},delay:0}),i({start:{x:-12.8,y:0},end:{x:-12.8,y:-102.4},control1:{x:l*.5,y:-76.8},control2:{x:0,y:-102.4},delay:.25,fadeoutDelay:.12})]}function X(){return[i({start:{x:0,y:0},end:{x:l*.25,y:-192},control1:{x:0,y:0},control2:{x:0,y:-128},delay:0}),i({start:{x:-2.56,y:0},end:{x:-12.8,y:-102.4},control1:{x:-89.6,y:-76.8},control2:{x:0,y:-102.4},delay:.25,fadeoutDelay:.1}),i({start:{x:-6.4,y:0},end:{x:-12.8,y:-179.2}
1,control1:{x:l*.7,y:-76.8},control2:{x:0,y:-102.4},delay:.18,fadeoutDelay:.15})]}function H(){return[i({start:{x:0,y:0},end:{x:l*.2,y:-g},control1:{x:0,y:0},control2:{x:-64,y:-128},delay:.1,fadeoutDelay:.07}),i({start:{x:l*.05,y:0},end:{x:-25.6,y:-112.64},control1:{x:-76.8,y:0},control2:{x:l*.5,y:-128},delay:.15,fadeoutDelay:.11}),i({start:{x:0,y:0},end:{x:-76.8,y:-153.6},control1:{x:0,y:0},control2:{x:-64,y:-128},delay:0}),i({start:{x:0,y:0},end:{x:l*.6,y:-102.4},control1:{x:l*.6,y:0},control2:{x:l*.6,y:-102.4},delay:0,fadeoutDelay:.07})]}function v(){return[i({start:{x:0,y:0},end:{x:-51.2,y:-128},control1:{x:-25.6,y:0},control2:{x:l*.8,y:-102.4},delay:.15}),i({start:{x:0,y:0},end:{x:-12.8,y:-76.8},control1:{x:l*.5,y:0},control2:{x:-89.6,y:-102.4},delay:.2}),i({start:{x:0,y:0},end:{x:l*.1,y:-128},control1:{x:0,y:0},control2:{x:l*.7,y:-102.4},delay:.3}),i({start:{x:0,y:0},end:{x:l*.2,y:-179.2},control1:{x:-64,y:0},control2:{x:0,y:-128},delay:0}),i({start:{x:-12.8,y:0},end:{x:l*.4,y:-51.2},control1:{x:-51.2,y:0},control2:{x:0,y:-51.2},delay:.3})]}function i({start:t,end:a,control1:e,control2:r,delay:n,fadeinDurationScale:c=1,fadeoutDurationScale:s=1,fadeoutDelay:o=0}){return{start:t,end:a,control1:e,control2:r,delay:n,fadeinDurationScale:c,fadeoutDurationScale:s,fadeoutDelay:o}}export{K as playReactionBurst};
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.