PageSourceSearch

https://radlab.zone/assets/RippleAvatar-Nn_1-fy0.js

js radlab.zone collected 2026-10-04 10:05:22 UTC 9,104 bytes, 1 lines download raw bytes

1import{o as e}from"./chunk-zsgVPwQN.js";import{t}from"./react-D4cBbUL-.js";import{t as n}from"./jsx-runtime-De-1JGbp.js";import{n as r,r as i,t as a}from"./colorUtils-BaqMpZ7Y.js";import{a as o,i as s,o as c,t as l}from"./hairStyles-DFLbvH3o.js";var u=(e,t=0,n=1)=>Math.max(t,Math.min(n,e)),d=e=>Math.max(0,e),f=e=>Math.max(0,-e);function p(e=0,t=0,n=1,r=1){let i=f(e)*d(t)*.55,a=u(f(e)*(1-d(t)*1.5)+i)*n,o=u(d(e)*(.3+d(t)*.7)+i*.7)*n,s=u(f(e)*.35+f(e)*d(t)*.75)*n,c=u(d(t)*.85)*n,l=u(f(t)*.7)*n,p=u(d(e))*n,m=u(f(e)*f(t)*1.4)*n,h=u(f(e)*d(t)*1.4)*n,g=u(f(e)*d(t)*1.1)*n,_=u(f(e)*d(t)*1.3)*n,v=u(8-c*6+l*10,1.5,20),y=83+v,b=(256+v*v)/(2*v),x=y+3,S=Math.max(0,91-y),C=[60,82-o*8+s*6-i*20-S*.8],w=[76,77-a*5-o*4+s*6-i*16-S*.8],T=[90,81-a*10+s*6-i*18-S*.8],E=[110,81-a*10+s*6-i*18-S*.8],D=[124,77-a*5-o*4+s*6-i*16-S*.8],O=[140,82-o*8+s*6-i*20-S*.8],k=82-h*10,A=118+h*10,j=145-p*12+m*6+h*n*6,M=149+p*12-m*8-h*n*4,N=[[5.5,5.5,5.5],[5.5,5.5,7.5],[5.5,7.5,9.5]],P=Math.min(2,Math.max(0,Math.round(n*3)-1));return{au27:_,au25:g,lO:C,lC:w,lI:T,rI:E,rC:D,rO:O,lashY:y,lidCtrlY:x,lidR:b,cornerLX:k,cornerRX:A,cornerY:j,mouthCtrlY:M,pupilR:N[Math.min(2,Math.max(0,r))][P],blushOpacity:u(.28+d(e)*.22),openMouth:e>.62&&t>.62}}var m=e(t(),1),h=n();function g({skinColor:e=`#FDBCB4`,eyeColor:t=`#4A90D9`,size:n=200,species:u=`human`,hairStyle:d=`none`,hairColor:f=`#784421`,valence:g=0,arousal:_=0,intensityT:v=1,pupilTier:y=1}){let b=(0,m.useId)().replace(/:/g,``),x=c[u]??c.human,{headRx:S,headRy:C,texture:w,scaleMethod:T,textureOpacity:E}=x,D=e,O=a(D,18),k=r(D,18),A=i(D,`#FF8FAB`,.45),j=a(D,36),M=a(i(D,`#C06070`,.5),18),N=t,P=a(N,30),F=r(N,35),I=p(g,_,v,y),L=e=>Number(e).toFixed(1),R=`M ${L(I.lO[0])} ${L(I.lO[1])} Q ${L(I.lC[0])} ${L(I.lC[1])} ${L(I.lI[0])} ${L(I.lI[1])}`,z=`M ${L(I.rI[0])} ${L(I.rI[1])} Q ${L(I.rC[0])} ${L(I.rC[1])} ${L(I.rO[0])} ${L(I.rO[1])}`,B=`M 60 ${L(I.lashY)} Q 76 ${L(I.lidCtrlY)} 92 ${L(I.lashY)} A ${L(I.lidR)} ${L(I.lidR)} 0 0 0 60 ${L(I.lashY)} Z`,V=`M 108 ${L(I.lashY)} Q 124 ${L(I.lidCtrlY)} 140 ${L(I.lashY)} A ${L(I.lidR)} ${L(I.lidR)} 0 0 0 108 ${L(I.lashY)} Z`,H=`M 60 ${L(I.lashY)} Q 76 ${L(I.lidCtrlY)} 92 ${L(I.lashY)}`,U=`M 108 ${L(I.lashY)} Q 124 ${L(I.lidCtrlY)} 140 ${L(I.lashY)}`,W=`M ${L(I.cornerLX)} ${L(I.cornerY)} Q 100 ${L(I.mouthCtrlY)} ${L(I.cornerRX)} ${L(I.cornerY)}`,G=`M ${L(I.cornerLX+4)} ${L(I.cornerY)} Q 100 ${L(I.mouthCtrlY+9)} ${L(I.cornerRX-4)} ${L(I.cornerY)}`,K=l.includes(d),q=`${b}fur`,J=x.behind({skin:D,skinLit:k,skinDark:O,furFilterId:q}),Y=x.front({skin:D,skinLit:k,skinDark:O,furFilterId:q});return(0,h.jsxs)(`svg`,{viewBox:`0 0 200 185`,xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,style:{display:`block`},children:[(0,h.jsxs)(`defs`,{children:[(0,h.jsxs)(`radialGradient`,{id:`${b}h`,cx:`38%`,cy:`30%`,r:`68%`,children:[(0,h.jsx)(`stop`,{offset:`0%`,stopColor:k}),(0,h.jsx)(`stop`,{offset:`60%`,stopColor:D}),(0,h.jsx)(`stop`,{offset:`100%`,stopColor:O})]}),(0,h.jsxs)(`radialGradient`,{id:`${b}i`,cx:`35%`,cy:`30%`,r:`65%`,children:[(0,h.jsx)(`stop`,{offset:`0%`,stopColor:F}),(0,h.jsx)(`stop`,{offset:`55%`,stopColor:N}),(0,h.jsx)(`stop`,{offset:`100%`,stopColor:P})]}),(0,h.jsxs)(`radialGradient`,{id:`${b}s`,cx:`40%`,cy:`30%`,r:`60%`,children:[(0,h.jsx)(`stop`,{offset:`0%`,stopColor:`#fff`}),(0,h.jsx)(`stop`,{offset:`100%`,stopColor:`#F0EBE8`})]}),(0,h.jsx)(`filter`,{id:`${b}b`,children:(0,h.jsx)(`feGaussianBlur`,{stdDeviation:`1.2`})}),(0,h.jsx)(`filter`,{id:`${b}sh`,children:(0,h.jsx)(`feDropShadow`,{dx:`0`,dy:`1`,stdDeviation:`1.5`,floodColor:O,floodOpacity:`0.25`})}),(0,h.jsx)(`clipPath`,{id:`${b}lc`,children:(0,h.jsx)(`circle`,{cx:`76`,cy:`100`,r:`17`})}),(0,h.jsx)(`clipPath`,{id:`${b}rc`,children:(0,h.jsx)(`circle`,{cx:`124`,cy:`100`,r:`17`})}),w===`fur`&&(0,h.jsxs)(`filter`,{id:q,x:`-30%`,y:`-30%`,width:`160%`,height:`160%`,children:[(0,h.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.11 0.11`,numOctaves:`4`,result:`peltNoise`}),(0,h.jsx)(`feDiffuseLighting`,{in:`peltNoise`,lightingColor:`#A9A9A9`,surfaceScale:`3`,result:`diffLight`,children:(0,h.jsx)(`feDistantLight`,{azimuth:`225`,elevation:`60`})}),(0,h.jsx)(`feSpecularLighting`,{in:`peltNoise`,lightingColor:`#ffffff`,specularConstant:`0.3`,specularExponent:`8`,result:`specLight`,children:(0,h.jsx)(`fePointLight`,{x:`100`,y:`60`,z:`120`})}),(0,h.jsxs)(`feMerge`,{result:`mergedLight`,children:[(0,h.jsx)(`feMergeNode`,{in:`diffLight`}),(0,h.jsx)(`feMergeNode`,{in:`specLight`})]}),(0,h.jsx)(`feComposite`,{in:`mergedLight`,in2:`SourceGraphic`,operator:`in`,result:`peltedBase`}),(0,h.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.21`,numOctaves:`2`,seed:`15`,result:`shagNoise`}),(0,h.jsx)(`feDisplacementMap`,{in:`peltedBase`,in2:`shagNoise`,scale:`5`,xChannelSelector:`R`,yChannelSelector:`G`})]}),w===`scales`&&T===`arcs`&&(0,h.jsxs)(`pattern`,{id:`${b}scl`,x:`0`,y:`0`,width:`14`,height:`10`,patternUnits:`userSpaceOnUse`,children:[(0,h.jsx)(`path`,{d:`M 0 10 Q 7 2 14 10`,fill:`none`,stroke:O,strokeWidth:`1.4`,opacity:`0.7`}),(0,h.jsx)(`path`,{d:`M -7 5 Q 0 -3 7 5`,fill:`none`,stroke:O,strokeWidth:`1.4`,opacity:`0.7`})]}),w===`scales`&&T===`tile`&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(`filter`,{id:`${b}stlf`,x:`-5%`,y:`-5%`,width:`110%`,height:`110%`,children:[(0,h.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.08 0.04`,numOctaves:`2`,seed:`7`,result:`tileNoise`}),(0,h.jsx)(`feDisplacementMap`,{in:`SourceGraphic`,in2:`tileNoise`,scale:`6`,xChannelSelector:`R`,yChannelSelector:`G`})]}),(0,h.jsxs)(`pattern`,{id:`${b}stl`,x:`0`,y:`0`,width:`18`,height:`13`,patternUnits:`userSpaceOnUse`,children:[(0,h.jsx)(`path`,{d:`M 0 13 Q 4 7 9 13 Q 13 7 18 13`,fill:O,fillOpacity:`0.18`,stroke:O,strokeWidth:`0.9`,opacity:`0.8`}),(0,h.jsx)(`path`,{d:`M -9 6 Q -4 0 1 6 Q 5 0 10 6 Q 14 0 19 6`,fill:O,fillOpacity:`0.12`,stroke:O,strokeWidth:`0.7`,opacity:`0.6`})]})]}),w===`scales`&&(0,h.jsx)(`clipPath`,{id:`${b}hclip`,children:(0,h.jsx)(`ellipse`,{cx:`100`,cy:`105`,rx:S,ry:C})})]}),d!==`none`&&K&&(0,h.jsx)(`g`,{ref:e=>{if(e){for(;e.firstChild;)e.removeChild(e.firstChild);s(e,d,f,f)}}},`hb-${d}-${f}`),(0,h.jsx)(`g`,{children:J.map(({tag:e,key:t,...n})=>(0,h.jsx)(e,{...n},t))}),(0,h.jsx)(`ellipse`,{cx:`100`,cy:`105`,rx:S,ry:C,fill:`url(#${b}h)`}),(0,h.jsxs)(`g`,{style:{pointerEvents:`none`},children:[w===`fur`&&(0,h.jsx)(`ellipse`,{cx:`100`,cy:`105`,rx:S,ry:C,fill:D,filter:`url(#${q})`,opacity:String(E)}),w===`scales`&&T===`arcs`&&(0,h.jsx)(`ellipse`,{cx:`100`,cy:`105`,rx:S,ry:C,fill:`url(#${b}scl)`,clipPath:`url(#${b}hclip)`}),w===`scales`&&T===`tile`&&(0,h.jsx)(`ellipse`,{cx:`100`,cy:`105`,rx:S,ry:C,fill:`url(#${b}stl)`,clipPath:`url(#${b}hclip)`,filter:`url(#${b}stlf)`}),Y.map(({tag:e,key:t,...n})=>(0,h.jsx)(e,{...n},t))]}),(0,h.jsx)(`circle`,{cx:`76`,cy:`100`,r:`17`,fill:`url(#${b}s)`,filter:`url(#${b}sh)`}),(0,h.jsx)(`circle`,{cx:`76`,cy:`101`,r:`12`,fill:`url(#${b}i)`,clipPath:`url(#${b}lc)`}),(0,h.jsx)(`circle`,{cx:`76`,cy:`101`,r:L(I.pupilR),fill:`#0D0D0D`,clipPath:`url(#${b}lc)`}),(0,h.jsx)(`circle`,{cx:`70`,cy:`102`,r:`3.5`,fill:`white`,opacity:`0.95`}),(0,h.jsx)(`circle`,{cx:`79`,cy:`108`,r:`1.8`,fill:`white`,opacity:`0.65`}),(0,h.jsx)(`path`,{d:B,fill:D}),(0,h.jsx)(`path`,{d:H,stroke:O,strokeWidth:`2.2`,fill:`none`,strokeLinecap:`round`,opacity:`0.6`}),(0,h.jsx)(`circle`,{cx:`124`,cy:`100`,r:`17`,fill:`url(#${b}s)`,filter:`url(#${b}sh)`}),(0,h.jsx)(`circle`,{cx:`124`,cy:`101`,r:`12`,fill:`url(#${b}i)`,clipPath:`url(#${b}rc)`}),(0,h.jsx)(`circle`,{cx:`124`,cy:`101`,r:L(I.pupilR),fill:`#0D0D0D`,clipPath:`url(#${b}rc)`}),(0,h.jsx)(`circle`,{cx:`118`,cy:`102`,r:`3.5`,fill:`white`,opacity:`0.95`}),(0,h.jsx)(`circle`,{cx:`127`,cy:`108`,r:`1.8`,fill:`white`,opacity:`0.65`}),(0,h.jsx)(`path`,{d:V,fill:D}),(0,h.jsx)(`path`,{d:U,stroke:O,strokeWidth:`2.2`,fill:`none`,strokeLinecap:`round`,opacity:`0.6`}),I.au27<=.28&&!I.openMouth&&(0,h.jsx)(`path`,{d:W,stroke:M,strokeWidth:`2.2`,fill:`none`,strokeLinecap:`round`}),I.au25>.1&&I.au27<=.28&&(0,h.jsx)(`ellipse`,{cx:`100`,cy:L(I.cornerY+2),rx:L(8+I.au25*6),ry:L(I.au25*2.5),fill:a(M,15),opacity:Math.min(.7,I.au25*.9)}),I.au27>.28&&(()=>{let e=I.cornerY+2+I.au27*4,t=8+I.au27*11,n=3+I.au27*10;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`ellipse`,{cx:`100`,cy:e,rx:t,ry:n,fill:a(M,20),opacity:Math.min(1,I.au27*1.5)}),(0,h.jsx)(`ellipse`,{cx:`100`,cy:e,rx:t,ry:n,fill:`none`,stroke:M,strokeWidth:`1.5`,opacity:Math.min(1,I.au27*1.5)})]})}
1)(),I.openMouth&&(0,h.jsx)(`path`,{d:G,fill:a(M,8),opacity:`0.9`}),(0,h.jsx)(`ellipse`,{cx:`62`,cy:`120`,rx:`16`,ry:`8`,fill:A,opacity:L(I.blushOpacity),filter:`url(#${b}b)`}),(0,h.jsx)(`ellipse`,{cx:`138`,cy:`120`,rx:`16`,ry:`8`,fill:A,opacity:L(I.blushOpacity),filter:`url(#${b}b)`}),(0,h.jsx)(`path`,{d:R,stroke:j,strokeWidth:`4`,fill:`none`,strokeLinecap:`round`,opacity:`0.88`}),(0,h.jsx)(`path`,{d:z,stroke:j,strokeWidth:`4`,fill:`none`,strokeLinecap:`round`,opacity:`0.88`}),d!==`none`&&(0,h.jsx)(`g`,{ref:e=>{if(e){for(;e.firstChild;)e.removeChild(e.firstChild);o(e,d,f,f,`hf${e._uid||=Math.random().toString(36).slice(2,6)}`)}}},`hf-${d}-${f}`)]})}export{g as t};

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.