0xb3b2…19cb

All memos sent from and to 0xb3b2…19cb.

var Nn=Object.defineProperty;@Hn=(r,e,n)=>e in r?Nn`{enumerable:!0,configuvalue:n}):r[e]=n`Ytypeof e!="symbol"?e+"":@} ("link").relList;if(e&&e.supportoad"))return;for(]'))l(t);new Muta@i.addedNodes)s.tagNam`3,i)}})();class vno=o+1|0,t=i^i>>>9 0)/4294967296}};e?(a% D tokenData.hash()}random_dec(){0,e.length-1)]}rndFromEu<0?(d=n,f=l):u>1@ +sin(PI*2/l*i)*nb l}],n2={black:[0,0,5],yamabudo:[205,70,26],konpeki@3,90,47],fuyusyogun @n ]},W={yellow:[ ,c8:.5,soloWalk)4 arDensity:1},c ^,U2=[{name:"Robot",e&ww.__DENSITY_SPECIFICATION ("-E;u~- t=Vn[l];t||@ l=>({value,E ID:Symbol($.5?2*r*r:-1+(4- y,u=(t-s)*(a-p)-(i@ is already exec4l(""+e+(n?"└─ R@" },enumerabl4 do s++;whil,r"w1=11102230246251565e-32,Z=134217729,g3=(3+8*d1) ,c,p,u,d,f,g,x,w,S,v,P,_,C,I,O^Z*R,d=u-(u-R),f=R-d`F),x=F-g,_=f*x-(P-d*g-f I1=Number.EPSILON; n*n<I3*r*e?0:r<e?-1:1};class k3 * y}}isAnEnd`:An
var z3=Object.defineProperty;@B3=(r,e,n)=>e in r?z3`{enumerable:!0,configuvalue:n}):r[e]=n`Ytypeof e!="symbol"?e+"":@} ("link").relList;if(e&&e.supportoad"))return;for(]'))l(t);new Muta@i.addedNodes)s.tagNam`3,i)}})();class N3o=o+1|0,t=i^i>>>9 0)/4294967296}};e?(a% D tokenData.hash()}random_dec(){0,e.length-1)]}rndFromEc<0?(d=n,f=l):c>1@ l}],n2={black:[0,0,5],yamabudo:[205,70,26],konpeki@3,90,47],fuyusyogun @n ]},W={yellow:[ ,c8:.5,soloWalk)4 arDensity:1},c ^,G2=[{name:"Robot",e&ww.__DENSITY_SPECIFICATION ("-?;o~' t=q3[l];t||@ l=>({value,# ID:Symbol($.5?2*r*r:-1+(4- y,c=(t-s)*(a-p)-(i@Y /** * splaye25er Milevski <info@w8r.name>`-Ge except in com4PROVIDED ON AN *AS * BASIS, WITHOUT WARRANTIES OR ;A PARTICULAR PURPOSE, MERCH rning permi5,+Wl(""+e+(n?"└─ R@" },enumerabl4 do s++;whil,r"wst d1=11102230246251565e-32,Z=134217729,gn=(3+8*d1) ,u,p,c,d,f,g,x,w,S,v,P,_,C,I,O^Z*R,d=c-(c-R),f=R-d`F),x=F-g,_=f*x-(P-d*g-f I1=Number.EPSILON; n*n<In*r*e?0:r<e?-1:1};class knt1{static compare * y}}isAnEnd`:AneB= ;for(;n.consum
tractors","Unable to Reveal CurrTime-Compressing Simula A Quigley Matrix Expo`% Flash Vari@St B k System"];fun on f5(){if(!X1){X1=docum!sList.add("on-s *body.appendChild( dmn(),W2||(W2=setA{{P2=(P2+1)%a2.length@window.__MODE="BUSIEST";!xdth:24,height:60,border:3},DENSITY_SPECIFICATION["0xa283803b70449ab4060c3e3bc4480134aa8f33e510d47aacc5ecf0127bef0x44a7723077c954c8d2c08c8f5b32 dbcbc36831ac5756f7a3873a5b298007186b41f11dda6939551b5f190bfded18c096d3e8d6dfcc065870a3698ce000a17966ed9a7d58db2"7eaba6c381cd55247@9ff1f5d8411a82b64`D 54fb8435f46be"],e=tokenData.` b5=!1,S5=.475,f2f1={pipeID:0,landmark`background="rgb(250, SORT_b9_ELEMENTS"):`6d in April 2024 -,ll. Many thanklumns:e,rows:n}=$!yh=n[t];&,@6 h,0,1,.1,5#
/i,g=cos(PI+PI*d)*a;o.push({x:f,y:g})}p=.5-a-t-c;for(let u=0;u<=o=o.concat(h.reverse())return Y(r.pos.x, y),n.beginShap ,e}function Ze(r,e,n)a9 l=m*(e.length- 5(i,s)=>{b(i.value u.75/(c/2))*h,d=-{height:l,dashesPerGrid:t`darb1:s}=L.a4,o=e[0]. map(x,0,g,d,f) i0={normal:[{fn:r0,dir:"b9",min,avoidFlips:!1}],h*e=i0[r.genus].filter(nO>r.distance?!1:!:h,dashesPerGrid:a`Length:c,secondarb1:p}=L.a4)h.push({start:d, Rst W1=r=>r<.5?2*r*r:1e['d n(floor(r/+ %s.length].valZ+cos(d+x*a)*g,S5's saturated in ${n} i0t d5=` .on-screen-mess!4 color: #6874a2to Lock Back-Buff4
,X)+PI/2;let B=f.x+cos(F)*_,J ;this.transform.vertex(B,J)}}const pn=(r,e,n,l="ccw")=>{@ut=e-r;return l== w"?t<0&&(t+=TWO_PI):t>`n=r.reduce((l,t . l.y<t.y?l:t)),`+un=-1,ae=.25,z1@{{name:"a0-1",w:2,b1:3},boombox",b6:.006& ||"WTF",offset ,_ID:Sy"$ l(),_USES:6||"s 75,canFlip :!0}))};class Wn{h?y()>.5:!1,{polys:s"lumns:e,rows:n}=$ Zif(A(t,i,1,1)|| ,"displayName","Furball"us:{city:[{fn:be,(C :[2,4],b3:1) x1={current*$@?lJ- w1=null,J1 *;function me(r="Af...i,ID:Symbol($2("DEAD INSTANCE7sole.log(`Placed ${l} c6 in N={CURRENT:{m.{ 3e3},megaCB=v+X,J=P+F,Q1=B<0||B>=n||J@ ",from:P,to:_,A{*L.a4.carDensityN}$+cos(s+h*PI/4/(o/2.A _ ]`H PI+PI*d)*a
117,94,8,4,4.16 5 l310,121,222@,7.44 4 p186,29,19 D12 #e2-1-mask p2!35"_av!q ΁ TAUBbB^Hxj|"jBх~ C #a@J'HE<BU!|"9C}IC"D0+5CjB10M@<`WAG#13`,K1={};let R2@ function Q3(){ h=!0){if(!R2[r])return[]; .reduce((c,p)=>Array.is`(p[0])?c.concat(p):(c.push st f={x:p.x*s+u,y h||(f.x+=e,f.y+=n),p height+n+t-i},!1))}{polys:a,mask:c}}class Z3{ab5:round("& scaleMod:t}i=1-e/n;i=i>.8?1:i@,&f=d/c*h+a/l*TWO_PI,g=o*( x=i+cos(f)*g,w=s+sin`ole.log("Hey you! Look accellSize=l/sqrt( Y ).closestDist<.I f,ID:Symbo#{!a X=D/64,F;x<w?F=p i,w,X,"ccw")+PI/2:F=pn(x,w
te=e.afterState()}return this._bexOf(a);p===-1?(n.push ;switch(s1.type :throw new Err$`Unrecognized operaAW"Input geometry is no#Gbbox={ll:{x:t.x,y .POSITIVE_INFINITY#u_s;t tSafely(o,pLYGON_CLIPPING_MAX_QUEUE_SIZE||1@` too big)."7)cn<(a-o)*(l-h)/(c 0<c&&c<1&&0<a&&a<%i!n:\L% cat($3(i,l s){beginShape(),awindow.SVGMODE?,72)*y()>.5?1:-1,u=24&(O),D=p*O,X=lerp&q3{static decode<Usplit(` `C2 {sprites:{0og(`Unpacking V2K or Data. t V3=`$0:#ff0043,1:#0074ff,2@A !R@v@nBs!% D !"0! !3
var Nn=Object.defineProperty;@Hn=(r,e,n)=>e in r?Nn`{enumerable:!0,configuvalue:n}):r[e]=n`Ytypeof e!="symbol"?e+"":@} ("link").relList;if(e&&e.supportoad"))return;for(]'))l(t);new Muta@i.addedNodes)s.tagNam`3,i)}})();class vno=o+1|0,t=i^i>>>9 0)/4294967296}};e?(a% D tokenData.hash()}random_dec(){0,e.length-1)]}rndFromE(g2):{step:0};wi"u<0?(d=n,f=l):u>1@ +sin(PI*2/l*i)*nb l}],n2={black:[0,0,5],yamabudo:[205,70,26],konpeki@3,90,47],fuyusyogun @n ]},W={yellow:[ ,c8:.5,soloWalk)4 arDensity:1},c ^,U2=[{name:"Robot",e&w__DENSITY_SPECIFICATION ( l=>({value,E ID:Symbol($.5?2*r*r:-1+(4- y,u=(t-s)*(a-p)-(i@ is already exec4l(""+e+(n?"└─ R@" },enumerabl4 do s++;whil,r"w1=11102230246251565e-32,Z=134217729,g3=(3+8*d1) ,c,p,u,d,f,g,x,w,S,v,P,_,C,I,O^Z*R,d=u-(u-R),f=R-d`F),x=F-g,_=f*x-(P-d*g-f I1=Number.EPSILON; n*n<I3*r*e?0:r<e?-1:1};class k3 * y}}isAnEnd`:An
_BUSIEST_ is a generative reflection of urban complexity and interconnected systems. As an artist who works at the intersection of code and mechanical plotting, James Merrill has become fascinated with the contrast between overwhelming city dynamics and the quiet stillness of his Vermont studio. He seeks to transform apparent chaos into structured beauty, creating works that reveal the hidden patterns within our seemingly disordered world. Merrill says, "What drew me to generative art was the ability to make programs that generate infinite numbers of outputs. I often observe cities as layered systems that we've normalized through familiarity, and I wonder how to capture that totality. I'm interested in offering viewers a god's eye perspective—not just of urban environments, but of the underlying coexisting elements that form them." This tension between randomness and order drives Merrill's creative process and shapes the intricate compositions that emerge. _BUSIEST_ explores the overwhelming sensation of being pulled in countless directions—notifications, movement, tasks—while seeking the underlying structure beneath.The work emphasizes relationships over randomness, causality over noise, and cause and effect over disorder. Drawing inspiration from highly detailed Wimmelbilder scenes, _BUSIEST_ applies generative techniques to build complex compositions that feel both familiar and abstract. This collection of 5 unique works invites viewers to discover new details with each viewing—much like exploring a metropolis where chaos resolves into structured complexity when viewed through the right lens.
var z3=Object.defineProperty;@B3=(r,e,n)=>e in r?z3`{enumerable:!0,configuvalue:n}):r[e]=n`Ytypeof e!="symbol"?e+"":@} ("link").relList;if(e&&e.supportoad"))return;for(]'))l(t);new Muta@i.addedNodes)s.tagNam`3,i)}})();class N3o=o+1|0,t=i^i>>>9 0)/4294967296}};e?(a% D tokenData.hash()}random_dec(){0,e.length-1)]}rndFromE(y2):{step:0};wi"c<0?(d=n,f=l):c>1@ l}],n2={black:[0,0,5],yamabudo:[205,70,26],konpeki@3,90,47],fuyusyogun @n ]},W={yellow:[ ,c8:.5,soloWalk)4 arDensity:1},c ^,G2=[{name:"Robot",e&w__DENSITY_SPECIFICATION ( l=>({value,# ID:Symbol($.5?2*r*r:-1+(4- y,c=(t-s)*(a-p)-(i@Y /** * splaye25er Milevski <info@w8r.name>`-Ge except in com4PROVIDED ON AN *AS * BASIS, WITHOUT WARRANTIES OR ;A PARTICULAR PURPOSE, MERCH rning permi5,+Wl(""+e+(n?"└─ R@" },enumerabl4 do s++;whil,r"wst d1=11102230246251565e-32,Z=134217729,gn=(3+8*d1) ,u,p,c,d,f,g,x,w,S,v,P,_,C,I,O^Z*R,d=c-(c-R),f=R-d`F),x=F-g,_=f*x-(P-d*g-f I1=Number.EPSILON; n*n<In*r*e?0:r<e?-1:1};class knt1{static compare * y}}isAnEnd`:AneB= ;for(;n.consum
_BUSY_ is a generative reflection of urban complexity and interconnected systems. As an artist who works at the intersection of code and mechanical plotting, James Merrill has become fascinated with the contrast between overwhelming city dynamics and the quiet stillness of his Vermont studio. He seeks to transform apparent chaos into structured beauty, creating works that reveal the hidden patterns within our seemingly disordered world. Merrill says, "What drew me to generative art was the ability to make programs that generate infinite numbers of outputs. I often observe cities as layered systems that we've normalized through familiarity, and I wonder how to capture that totality. I'm interested in offering viewers a god's eye perspective—not just of urban environments, but of the underlying coexisting elements that form them." This tension between randomness and order drives Merrill's creative process and shapes the intricate compositions that emerge. BUSY explores the overwhelming sensation of being pulled in countless directions—notifications, movement, tasks—while seeking the underlying structure beneath.The work emphasizes relationships over randomness, causality over noise, and cause and effect over disorder. Drawing inspiration from highly detailed Wimmelbilder scenes, BUSY applies generative techniques to build complex compositions that feel both familiar and abstract. This collection of 50 unique works invites viewers to discover new details with each viewing—much like exploring a metropolis where chaos resolves into structured complexity when viewed through the right lens.
l)*t+i}}let X1=null,R2k2=0;const d5=` .on-screen-messaposition: fixed;`4 color: #6874a2ter-spacing: 0.08emsize: calc(1.5vh-serif; } `; T a2=["Bind VRoot System","C TInverse Probability Matrices *to Lock Back-Buffer 7on f5(){if(!X1){#`("div"),X1.c \ sList.add("(k2+1)%a2.length@ow.__MODE==="BUSIEST"){DENSITY_SPECIFICATION["0xa283803b70449ab4060c3e3bc4480134aa8f33e510d47aacc5ecf0127bef0x44a7723077c954c8d2c08c8f5b32 dbcbc36831ac5756f7a3873a5b298007186b41f11dda6939551b5f190bfded18c096d3e8d6dfcc065870a3698ce000a17966ed9a7d58db2"z7eaba6c381cd55247@9ff1f5d8411a82b64`D 54fb8435f46be"],e=tokenDw5=!1,b5=.475,f2y:W2}=v3(F3,w5)`:f1={pipeID:0,landmark`SORT_b9_ELEMENTS"):`6ll. Many thanklumns:e,rows:n}=$!yh=n[t];&,@6 h,0,1,.1,5#
x(a,u)}n.endShape()}),e}function Qe(r,e,n){let l=(e.length-1)*m/2,t=.05,i=3.5,s=18;n.begin,n.oval(t+l/i,0,@forEach((c,d)=>`d=c/s,f=u+t+cos(PI/2*d)*p,g >;o.push({x:f,y:g})}return Y(r.pos.x,.75/(u/2))*h,d=-{height:l,dashesPerGrid:t`darb1:s}=L.a4,o=e[0i0={normal:[{fn:r0,dir:"b9",min,avoidFlips:!1}0k*e=i0[r.genus].filter(nO>r.distance?!1:!:h,dashesPerGrid:a`Length:u,secondarb1:p}=L.a4)h.push({start:d, Rst W1=r=>r<.5?2*r*r:1e['d n(floor(r/+ %s.length].valZ+cos(d+x*a)*g,S5
m.beginShape(),this.transform.circle(p,c-f,d*y(.1,.9)),y()>.5?=M(0,i,{x:0,y:0}@ `!s,o=s.length;u2(L.c5).!aEach((a,u)=>{b(a.valuex=atan2(f.y-d.y,f.x x+cos(x+S)*P,I X=D/64,F;x<w?F=h3(x,w,X,"ccw")+Pt=e-r;return l== w"?t<0&&(t+=TWO!n=r.reduce((l,t . l.y<t.y?l:t#p3=-1,ae=.25,z1@{{name:"a0-1",w:2,b1:3#kboombox",b6:.006&e.BP ||"WTF",offset 6||"s 75,canFlip :!0}))};class Y3{h:!1,{polys:s!= sk:o}=M1(t`Nlumns:e,rows:n}=$ Z,"displayName","Furball"us:{city:[{fn:be,(C :[2,4],b3:1)lJ- w1=null,J1 *;function me(r="Afp0p-B ...i,ID:Symbol(asole.log(`Placed ${l} c6 in c=h[a][u]<150|| FN={CURRENT:{m.] 3e3},megaC<l,$//`# wheel-twis@jB=v+X,J=P+F,Q1=B<0||B>=n||J@ ",from:P,to:_,A{*L.a4.carDensityN}$+cos(s+h*PI/4/(o/2.A
,70,0,60 3 #train-car-2 @18 r ? 5,352,88,44 front-1-mask d0,3@P335"_av!q ΁ TAUBbB^Hxj|"jBх~ C #a@J'HE<BU!|"9C}IC"D0+5CjB10M@<`WAG#13`,K1={};let D2@ function Qn(){ h=!0){if(!D2[r])return[]; .reduce((u,p)=>Array.is`(p[0])?u.concat(p):(u.push st f={x:p.x*s+c,y h||(f.x+=e,f.y+=n),p height+n+t-i},!1))}{polys:a,mask:u}}class Zn{ab5:round("& scaleMod:t}i=1-e/n;i=i>.8?1:i@,&f=d/u*h+a/l*TWO_PI,g=o*( x=i+cos(f)*g,w=s+sin`ole.log("Hey you! Look accellSize=l/sqrt( Y ).closestDist<.Ir:p,h:f,ID:Symbo#{!a a,g)!e u=u?max(u,f8
edBy;)n=n.consum`mpare(n,l);if(t!==0){@ rings.length;i<s;i++InResult(){return this._;switch(s1.type&7 ase"union":&9 row new Err(x`Unrecognized operaAW"Input geometry is no#bbox={ll:{x:t.x,y .POSITIVE_INFINITY#u_s;t tSafely(o,pLYGON_CLIPPING_MAX_QUEUE_SIZE||1@` too big)."7)cn<(a-o)*(l-h)/(u 0<u&&u<1&&0<a&&a<%s){beginShape(),awindow.SVGMODE?,7 2)*y()>.5?1:-1$ (O),D=p*O,X=lerp&qn{static decode<7split(` `C2 {sprites:{/og(`Unpacking V2- or Data. t Vn=`$0:#ff0043,1:#0074ff,2@A !R@v@nBs!% D !"0! !3
var z3=Object.defineProperty;@B3=(r,e,n)=>e in r?z3`{enumerable:!0,configuvalue:n}):r[e]=n`Ytypeof e!="symbol"?e+"":@} ("link").relList;if(e&&e.supportoad"))return;for(]'))l(t);new Muta@i.addedNodes)s.tagNam`3,i)}})();class N3o=o+1|0,t=i^i>>>9 0)/4294967296}};e?(a% D tokenData.hash()}random_dec(){0,e.length-1)]}rndFromE(y2):{step:0};wi"c<0?(d=n,f=l):c>1@ l}],n2={black:[0,0,5],yamabudo:[205,70,26],konpeki@3,90,47],fuyusyogun @n ]},W={yellow:[ ,c8:.5,soloWalk)4 arDensity:1},c ^,G2=[{name:"Robot",e&w__DENSITY_SPECIFICATION ( l=>({value,# ID:Symbol($.5?2*r*r:-1+(4- y,c=(t-s)*(a-p)-(i@Y /** * splaye25er Milevski <info@w8r.name>`-Ge except in com4PROVIDED ON AN *AS * BASIS, WITHOUT WARRANTIES OR ;A PARTICULAR PURPOSE, MERCH rning permi5,+Wl(""+e+(n?"└─ R@" },enumerabl4 do s++;whil,r"wst d1=11102230246251565e-32,Z=134217729,gn=(3+8*d1) ,u,p,c,d,f,g,x,w,S,v,P,_,C,I,O^Z*R,d=c-(c-R),f=R-d`F),x=F-g,_=f*x-(P-d*g-f I1=Number.EPSILON; n*n<In*r*e?0:r<e?-1:1};class knt1{static compare * y}}isAnEnd`:AneB= ;for(;n.consum
SHADING"):"RENDERSHADING"===Le?"DEBUG"===Se.fillStrategy?((r,e,n,o,i)=>{r.forEach(((r,e)=>{noStroke();const o=n.a4Polygons[e];stroke(...o.a4.l,1),stroke(0,0,20),fill(255,0,random(80,100)),r&&(beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),vertex(r[0].x,r[0].y),endShape())})),o.forEach((r=>{stroke(40),strokeWeight(q(.5)),r.length&&line(r[0].x,r[0].y,r[1].x,r[1].y)})),i()})(ye,0,xe,de,(()=>Le="POSTPROCESSING")):"individual"===Se.fillStrategy&&(Se.renderSecondaryPolys?Qr(ye,ge,pe,xe,de,(()=>Le="POSTPROCESSING")):Qr(ye,[],pe,xe,de,(()=>Le="POSTPROCESSING"))):"POSTPROCESSING"===Le?Zr(ye,de,xe,fe,(()=>Le="DONE")):"DONE"===Le?(noLoop(),ne=get()):"LOOPING"===Le&&(1===oe&&image(ne,0,0,width,height),ee.forEach((r=>r.tick())))},window.keyPressed=()=>{"DONE"!==Le&&"LOOPING"!==Le||be()};const be=()=>{Le="LOOPING",(()=>{oe=1===oe?2:1,image(ne,0,0,width,height),ee=[];for(let r=0;r<250;r++){const r=random(0,me),e=random(0,he),n=r*(width/me),o=e*(height/he);let i=get(n,o),a=Ir(i[0],i[1],i[2]);a=R(a,2);let t=a,s=createVector(n,o,2),l=0,h=createVector(cos(l),sin(l)),m=random(.15,.5),c=Yr(s,h,m,a,t,!0,2===oe);ee.push(c)}})(),loop()},Ce=()=>{const r=15,e={some:.93,alot:.87,none:1},n=random(2*-PI,2*PI);for(let o=0;o<2500;o++){const o=z("b5",random(-15,10));switch(o.a8&&random()<o.a8.c?o.d6=!0:random()>e[Se.d1Probability]&&(o.d1=!0,o.d1Type=P(["leaf",5,"dots",3,"evenLines",4,"spacedLines",5,"perspectiveLines",5,"perspectiveDots",5])),o.d1||(o.fillType=P([Se.internalShadeMode,50,"leaf",50])),Se.fillDirection){case"down":o.d9=PI/2+random(-.1,.1);break;case"uniform":o.d9=n;break;case"flippy":o.d9=PI/2*(random()>.5?1:-1)+random(-.1,.1);break;default:o.d9=random(2*PI)}xe.a4Polygons.push(o),xe.e0.push({...z("b5",random(-15,r)),type:P(["pop",1,"shade",7,"none",8])}),"random"===Se.backgroundLighting?xe.d8.push(z("c2",random(-7.5,7.5))):xe.d8.push(z("c2",0));const i=P(Cr);xe.b0s.push({color:z("c7",5),style:i.type,spacing:random(i.spacing[0],i.spacing[1]),sz:random(i.sz[0],i.sz[1])})}xe.c0=z("c0",0)},Pe=()=>{let r=ye,e=ge;const n=xe.a4Polygons.map((r=>!0===r.d1));for(let n=1;n<=se.length;n++){let{a9:o,b0:i,a6:a,b1:t}=se[n-1];r=Ie(r,i,o,a,t),random()>.25&&(e=Ie(e,i,o,a,t,.85)),de.length>0?de=Xe(de,i,o,a,t):de.push(i)}ye=r,ge=e,ge=ge.filter((r=>r.length>1)),"minimal"===Se.shouldPerformReversion&&Fe(.15),"negminimal"===Se.shouldPerformReversion?Fe(-.15):"single"===Se.shouldPerformReversion?Fe():"double"===Se.shouldPerformReversion&&Te();let o=Se.a7;"distant"!==o&&"adaptive"!==o&&"verydistant"!==o&&"tight"!==o&&"TEST"!==o&&"full"!==o&&"cover"!==o&&"neardistant"!==o&&"veryverydistant"!==o||(Be(),Ne(Se.a7)),"center"!==Se.a7&&"onlycenter"!==Se.a7||Be();De()&&(Be(),Ne(Se.a7)),ye=Oe(ye),ye=ye.filter((r=>r.length>2)),de=ze(de),pe=E(de,ye,n),Ye(),Ee(),ue=ye,ye=_(ye,me,he,width,height),ge=_(ge,me,he,width,height),de=_(de,me,he,width,height),pe=pe.map((r=>_([r[0]],me,he,width,height))),de=He(de)},He=r=>r.filter((r=>!(isNaN(r[0].x)||isNaN(r[1].x)||isNaN(r[0].y)||isNaN(r[1].y)))),Ye=()=>{let r=[],e=[],n=[],o=[];ye=ye.sort(((r,e)=>c(e)-c(r))),xe.a4Polygons.forEach(((i,a)=>{if(a>ye.length-1)return!1;i.d6?(n.unshift(i),o.unshift(ye[a])):(r.push(i),e.push(ye[a]))})),ye=e.concat(o),xe.a4Polygons=r.concat(n)},Ee=()=>{const r=height/he;let e;we=ye.map((n=>(e=c(n),{area:e,a5:h(n),perimeter:d(n),scaled:{area:e*r,a5:h(n,r)}}))),ke=pe.map((n=>n.map((n=>(e=c(n),{area:e,a5:h(n),scaled:{area:e*r,a5:h(n,r)}}))))),ve=ge.map((n=>(e=c(n),{area:e,a5:h(n),scaled:{area:e*r,a5:h(n,r)}})))},Xe=(r,e,n,o,i)=>Ge(r,e,n,o,i),Ie=(r,n,o,i,t,s=1)=>{let l=[];return r.forEach((r=>{if(e(n[0].x,n[0].y,n[1].x,n[1].y,r)%2!=0){const e=b(r,n);l=l.concat(C(e))}else l.push(r)})),l=l.map((r=>{const e=a(r);let l=null;return(n[1].x-n[0].x)*(e.y-n[0].y)-(e.x-n[0].x)*(n[1].y-n[0].y)>i?(l=g(r,n,o).vertices,0!==t.distance&&t.a6>.5&&(l=x(l,n,t.distance))):(l=r,0!==t.distance&&t.a6<.5&&(l=x(l,n,t.distance))),((r,e,n)=>{const o=[];for(let i=0;i<r.length;i++)o.push({x:lerp(r[i].x,e[i].x,n),y:lerp(r[i].y,e[i].y,n)});return o})(r,l,s)})),l.length>0?l:r},Ge=(r,e,n,o,a)=>{let t=[];return r.forEach((r=>{if(i(e[0].x,e[0].y,e[1].x,e[1].y,r[0].x,r[0].y,r[1].x,r[1].y)){const n=((r,e)=>{const n=i(r[0].x,r[0].y,r[1].x,r[1].y,e[0].x,e[0].y,e[1].x,e[1].y),o={x:n[0],y:n[1]};return[[r[0],o],[r[1],o]]})(r,e);t=t.concat(n)}else t.push(r)})),t=t.map((r=>{const i=(r=>({x:lerp(r[0].x,r[1].x,.5),y:lerp(r[0].y,r[1].y,.5)}))(r);if((e[1].x-e[0].x)*(i.y-e[0].y)-(i.x-e[0].x)*(e[1].y-e[0].y)>o){let o=g(r,e,n).vertices;return 0!==a.distance&&a.a6>.5&&(o=x(o,e,a.distance)),o}{let n=r;return 0!==a.distance&&a.a6<.5&&(n=x(n,e,a.distance)),n}})),t.push(e),t.length>0?t:r},Oe=r=>r.map((r=>r.filter(((r,e,n)=>e===n.findIndex((e=>e.x===r.x&&e.y===r.y)))))),ze=r=>{const e=r;return e.forEach(((r,n)=>{let o=!1,i=!1,a=0;for(;a<e.length;){const t=e[a];a!==n&&((r[0].x===t[0].x&&r[0].y===t[0].y||r[0].x===t[1].x&&r[0].y===t[1].y)&&(o=!0),(r[1].x===t[0].x&&r[1].y===t[0].y||r[1].x===t[1].x&&r[1].y===t[1].y)&&(i=!0)),a++}o||(r[0].ending=!0),i||(r[1].ending=!0)})),e.forEach((r=>{let e=-1;r.forEach(((n,o)=>{if(n.ending){e=o;const n=r[e],i=0===e?r[r.length-1]:r[0],a=Math.atan2(i.y-n.y,i.x-n.x);0===e&&(n.x-=3*cos(a),n.y-=3*sin(a))}}))})),e},Ae=(r,e,n)=>r.filter((r=>{let o=!1,i=0;for(;i<r.length&&!o;){let a=r[i];a.x>-1&&a.x<e- -1&&a.y>-1&&a.y<n- -1&&(o=!0),i++}return o})),Re=()=>{const r=random()>.5?"w":"h";fe.x="w"===r?random()>.5?0:width:random(width),fe.y="h"===r?random()>.5?0:height:random(height)},Fe=(r=1)=>{let e=me/2+random(-me/2,me/2),n=he/2+random(-he/2,he/2),o=random(1.5,4.5)*r;const i=r=>l(r,o,e,n);ye=ye.map(i),ge=ge.map(i),pe=pe.map((r=>r.map(i))),de=de.map(i)},Te=()=>{const r=round(random(2,4));for(let e=0;e<r;e++){const r=random(-.2,1.2)*me,e=random(-.2,1.2)*he,n=random(1,3.5),o=o=>l(o,n,r,e);ye=ye.map(o),ge=ge.map(o),pe=pe.map((r=>r.map(o))),de=de.map(o)}},Ne=r=>{let e=1;const n=m(ye),o=random()>.4?random(.9,1.2):random(.7,.9);switch(r){case"distant":e=max(n.width,n.height)/max(me,he)*o+.9;break;case"neardistant":e=max(n.width,n.height)/min(me,he)+random(.02,.06);break;case"adaptive":e=n.width>n.height?n.width/me*o:max(n.width,n.height)/max(me,he)*o+.1;break;case"verydistant":e=max(n.width,n.height)/max(me,he)*o+1.5;break;case"veryverydistant":e=min(n.width,n.height)/min(me,he)*o+.8;break;case"tight":e=max(n.width,n.height)/max(me,he)*o+.2;break;case"full":e=min(n.width,n.height)/min(me,he)-.2;break;case"cover":e=min(n.width,n.height)/max(me,he);break;default:e=1}const i=r=>{var o,i,a,t;return o=r,i=e,a=n.centerX,t=n.centerY,r=o.map((r=>({x:a+(r.x-a)/i,y:t+(r.y-t)/i})))};let a=[{x:n.minX,y:n.minY},{x:n.b6,y:n.minY},{x:n.b6,y:n.b7},{x:n.minX,y:n.b7},{x:n.minX,y:n.minY}];ye=ye.map(i),ge=ge.map(i),pe=pe.map((r=>r.map(i))),de=de.map(i),ye=Ae(ye,me,he),a=[a].map(i)},Be=()=>{let r=0,e=0;const n=m(ye);r=me/2-n.centerX,e=he/2-n.centerY;const o=n=>n=t(n,r,e);ye=ye.map(o),pe=pe.map((r=>r.map(o))),de=de.map(o)},De=()=>{const r=m(ye);r.width,r.height,ye.reduce(((r,e)=>r+c(e)),0);return!1}})();/**LVE-CT-L-WY-MD**/
me-e/10;t+=e){let s=e/n;o&&i%2==0?r.push($(t+e/2,a,s)):r.push($(t,a,s))}i++}return r},doubleSquare:()=>{const r=me/2,e=me/2-r;return[j(e+5,e+5,r-5,he-2*e-10),j(r+e+5,e+5,r-10,he-2*e-10)]},threeCircles:()=>{const r=random()>.5?3:5,e=random(1.5,4);let n=[];const o=me,i=o*random(.05,.25);if(3===r){const r=o/e;n=[$(me/2,he/2-o/2-r/2+i,r),$(me/2,he/2,o),$(me/2,he/2+o/2+r/2-i,r)]}else if(5===r){const r=o/e,a=o/(2*e);n=[$(me/2,he/2-o/2-r-a/2+2*i,a),$(me/2,he/2-o/2-r/2+i,r),$(me/2,he/2,o),$(me/2,he/2+o/2+r/2-i,r),$(me/2,he/2+o/2+r+a/2-2*i,a)]}if(random()>.5)n=n.map((r=>s(r,random(-1,1),me/2,he/2)));else{let r=random(-1,1);n=n.map((e=>s(e,r,me/2,he/2)))}return n},diamond:()=>{const r=me/random(.5,.9);return[U(me/2,he/2,me-r,.85*me)]},geoPack:()=>zr(4),sixPack:()=>zr(6),megaPack:()=>zr(4,!0)},zr=(r,e=!1)=>{let n=random()>.85?-25:0;const o=random(50,100),i=(r,e,o)=>{if(!s.length)return!0;let i=0,a=!0;for(;i<s.length&&a;){const t=s[i];dist(t.x,t.y,r,e)-t.radius/2-o/2-n<0&&(a=!1),i++}return a},a=2*me;let t=a/random(1.5,10);e&&(t=a/1.1,r=4);const s=[];let l=me/100,h=0;for(;s.length<o&&h<1e3;){let r=random(2*PI),e=random(a/2),n=l;const o=me/2+sin(r)*e,m=he/2+cos(r)*e;for(;n<t&&i(o,m,n);)n+=l;n>l&&s.push({x:o,y:m,radius:n}),h++}return s.map((e=>$(e.x,e.y,e.radius,r)))};Or.flock=()=>{const r=[],e=me/6,n=he/6,o=random(2,3.5),i=me/o,a=random(2*PI),t=random(1,4);for(let o=0;o<me;o+=e)for(let l=0;l<he;l+=n){const n=i+random(me/t),h=o+n/2,m=l+n/2;let c=W(o+n/2,l+n/2,e-n/2);c=s(c,a,h,m),r.push(c)}return r},Or.cLevelExecutive=()=>{const r=[],e=round(random(5,8)),n=me/random(1,2),o=n/e-random(me/4/e);for(let i=1;i<e;i++){const a=n/e*i,t=a-o,s=random(2*PI);let l=s+random(2*PI-s);const h=J(me/2,he/2,a,t,s,l);r.push(h)}return r},Or.writer=()=>{const r=[];let e=100,n=-PI/random(6,9)*(random()>.5?1:-1),o=round(random(5,7)),i=random()>.8?random(-200,200):0,a=e/o/2;for(let t=0;t<o;t++){let l=me/2-a+e*t/1.5,h=he/2-a+i/o*t,m=e-abs((t-o/2)*e/o),c=4*m,d=random(2*PI),y=P([Q(l,h,m,c),5,j(l-m/2*.9,h-c/2,.9*m,c),5,J(l,h,2*m,.99*m,d,d+PI,48),2]);y=s(y,n+random(-.2,.2),l,h),r.push(y)}return r};const Ar=(r,e=10)=>r.map((r=>{const n=[];return r.forEach(((o,i)=>{if(n.push(o),i<r.length-1){const a=r[i+1],t=dist(o.x,o.y,a.x,a.y)/e;for(let r=0;r<t;r++){const e=r/t,i={x:lerp(o.x,a.x,e),y:lerp(o.y,a.y,e)};n.push(i)}}})),n}));const Rr=(r,e=1)=>{let n=q(random(6,12))*e,o=q(75);r=Ar([r],q(5))[0];for(let e=n;e>0;e-=.2)e===n-1&&noStroke(),beginShape(),r.forEach((r=>{let i=e/n,a=noise(r.x/o,r.y/o)*n*i,t=r.y+a;vertex(r.x,t)})),endShape()},Fr=(r,e)=>{const n=a(r);let o=y(width/2,height/2,n.x,n.y),i=q(random(3,12)),t=q(85),s="out"===e?1:-1;r=Ar([r],q(5))[0];for(let e=i;e>0;e-=.2){let n=cos(o)*e*s,a=sin(o)*e*s,l=e/i;e===i-1&&noStroke(),beginShape(),r.forEach((r=>{let e=noise(r.x/t,r.y/t)*i*l,o=r.x+n,s=r.y+a+e;vertex(o,s)})),endShape()}},Tr=(r,e,n,o,i)=>{e.forEach(((e,i)=>{if(o[i].d1)return;const a=A(n.p,5);fill(a),stroke(R(a,-10)),V(1.2),"down"===r?Rr(e):"center-in"===r?Fr(e,"in"):"center-out"===r?Fr(e,"out"):"minimal"===r?Rr(e,.65):"none"===r&&Rr(e,0)})),Gr(e,i,"solo")},Nr=.8,Br=(r,e,n)=>{fill(R(n,5)),noStroke(),circle(r,e,random(4,7)*M*Nr)},Dr=(r,e,n)=>{stroke(R(n,5)),noFill(),V(1);const o=random(3,7);rect(r-o/2,e-o/2,o*M*Nr)},Mr=(r,e,n)=>{stroke(R(n,5)),noFill(),V(1);const o=random(6,9)*Nr*M;beginShape(),vertex(r-o/2,e),vertex(r,e-o/2),vertex(r+o/2,e),vertex(r,e+o/2),vertex(r-o/2,e),endShape()},qr=(r,e,n)=>{fill(R(n,5)),noStroke(),V(1);const o=random(6,9)*Nr*M;beginShape(),vertex(r-o/2,e),vertex(r,e-o/2),vertex(r+o/2,e),vertex(r,e+o/2),vertex(r-o/2,e),endShape()},Vr=(r,e,n)=>{noFill(),V(1.5*Nr),circle(r,e,random(4,7)*M*Nr)},_r=(r,e,n)=>{const o=random(3,5)*M*Nr;stroke(R(n,5)),V(1.6),line(r-o/2,e-o/2,r+o/2,e+o/2),line(r+o/2,e-o/2,r-o/2,e+o/2)},$r=["solidCap",10,"xCap",10,"emptyCap",5,"squareCap",4,"filledDiamondCap",6,"diamondCap",3],jr=(r,e)=>{const n=[],o=[],i=q(4),a=q(1);let t=0;r.forEach((r=>{if(!r.length)return t++,!1;r.forEach((r=>{let s=r.x<a||r.x>width-a||r.y<a||r.y>height-a,l=0;for(;!s&&l<n.length;){const e=n[l];r.x-i<e.x&&r.x+i>e.x&&r.y-i<e.y&&r.y+i>e.y&&(s=!0),l++}s||(n.push(r),o.push(e[t]))})),t++})),n.forEach(((r,e)=>{const n=o[e].color;((r,e,n,o)=>{({solidCap:Br,xCap:_r,emptyCap:Vr,squareCap:Dr,filledDiamondCap:qr,diamondCap:Mr})[r](e,n,o)})(Wr(),r.x,r.y,n.a4)}))},Wr=()=>P($r);let Ur=-1,Jr=0;const Qr=(r,e,n,o,i,s)=>{const l=r.length,h=n.length;if(-1===Ur)n.forEach(((r,e)=>{noStroke();const n=o.d8[e];((r,e,n=!1)=>{r.forEach((r=>{e&&fill(e),beginShape(),r.forEach((r=>vertex(r.x,r.y))),endShape(),r.forEach(((r,e)=>{n&&(circle(r.x,r.y,10),fill(0),textSize(22),text(e,r.x,r.y))}))}))})(r,A(n.a4,0))}));else if(Ur<h){noStroke();const e=Ur,s=n[e],l=o.d8[e];if(s.length>0){const r=15;s.forEach(((n,o)=>{if(n.length>0){if("random"===Pr.backgroundLighting)fill(A(l.a4,6));else if("linear-from-top"===Pr.backgroundLighting){const e=a(n).y/height;fill(R(l.a4,r/2+e*-r))}else if("linear-from-bottom"===Pr.backgroundLighting){const e=a(n).y/height;fill(R(l.a4,-r/2+e*r))}stroke(l.stroke),V(.5),beginShape(),n.forEach((r=>vertex(r.x,r.y))),endShape();const i=ke[e][o];tr(n,l,random(2*PI),i,.1,1,.85)}}))}if(Ur===h-1){((r,e)=>{let n=width/30;fill(e.a4),drawingContext.filter=`blur(${n*pixelDensity()}px)`,r.forEach(((r,e)=>{beginShape(),(r=t(r,0,height/100)).forEach((r=>vertex(r.x,r.y))),endShape()})),drawingContext.filter="none"})(r.filter(((r,e)=>!o.a4Polygons[e].d1)),z("c3",0)),Tr(Pr.backfilled,r,z("c8",0),o.a4Polygons,o)}"bottom"===Pr.linesOnTop&&Ur===h-1&&Kr(i,o)}else if(Ur<h+1)((r,e,n)=>{let o=random()>.5?"overlay":"multiply";noStroke(),r.forEach(((r,i)=>{const a=e[i].type,t=n[i];if("pop"===a){drawingContext.globalCompositeOperation="source-over",drawingContext.globalAlpha=.9;const n=random(2*PI);nr(r,e[i],n),tr(r,e[i],n,t),drawingContext.globalAlpha=1}else"shade"===a&&(drawingContext.globalCompositeOperation=o,fill(0,0,0,random(.02,.05)),"overlay"===o&&fill(0,0,100,random(.02,.05)),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape())})),drawingContext.globalCompositeOperation="overlay",r.forEach(((r,e)=>{stroke(0),"overlay"===o&&stroke(0,0,100),V(.25),noFill(),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape()})),drawingContext.globalCompositeOperation="source-over"})(e,o.e0,ve);else if(Ur<l+h+1){let e=0;for(;e<te&&Ur-1<l+h;){noStroke();const n=Ur-h-1,i=r[n],t=o.a4Polygons[n],s=a(i),l=we[n];fill(A(t.a4,15)),stroke(t.stroke);let m=t.d9;if("centered"===Pr.fillDirection&&(m=atan2(height/2-s.y,width/2-s.x)),t.d1||("linear"===Pr.gradientType?nr(i,t,m):"radial"===Pr.gradientType&&or(i,t,m)),t.d1)switch(t.d1Type){case"leaf":gr(i,t,l);break;case"evenLines":sr(i,t,m,l);break;case"dots":ur(i,t,l);break;case"spacedLines":sr(i,t,m,l,.5);break;case"perspectiveLines":lr(i,t,l,m);break;case"perspectiveDots":hr(i,t,l,m)}else"leaf"===t.fillType?gr(i,t,l):"evenLines"===t.fillType?sr(i,t,m,l):"shattered"===t.fillType?yr(i,t,l):"perspective"===t.fillType&&lr(i,t,l,m);!t.d1&&l.area>2&&tr(i,t,m,l,1),er(i,t),Pr.visualVertices&&kr(i,t),e++,Ur++}Ur-=1}else"top"===Pr.linesOnTop&&Kr(i,o),s();Ur++},Kr=(r,e)=>{r.forEach(((r,n)=>{((r,e)=>{(0,{dashed:br,dotted:Sr}[e.style])(r,q(e.spacing),e.sz,e.color)})(r,e.b0s[n])})),jr(r,e.b0s)},Zr=(r,e,n,o,i)=>{if(0===Jr)((r,e,n)=>{r.forEach(((r,n)=>{const o=e.a4Polygons[n];if(o.d6){const e=we[n],i=ue[n];mr(r,25*M,o.a8.fill?o.a8.fill:o.a4.l),vr(i,e,o,.5,.5,.9),beginShape(),stroke(o.stroke),noFill(),r.forEach((r=>{vertex(r.x,r.y)})),vertex(r[0].x,r[0].y),endShape();const a=o.d9+PI/2;tr(r,o,a,e,.06)}})),n&&n()})(r,n);else if(1===Jr)Pr.hasBorder&&(Pr.hasCanvasSpray&&fr(o.x,o.y,n.c0.l,n.c0.h,n.c0.mode,.9),((r,e,n)=>{const o=width/ce;let i=[j(0,0,width,o),j(0,0,o,height),j(width-o,0,o,height),j(0,height-o,width,o)];drawingContext.fillStyle="white",fill(0,0,255),noStroke(),i.forEach((r=>{beginShape(),r.forEach((r=>vertex(r.x,r.y))),endShape()})),r&&i.forEach((r=>{xr(r),Kr(e,n),drawingContext.restore()}))})("NONE"!==Pr.linesOnTop,e,n));else if(2===Jr)Pr.hasCanvasSpray&&fr(o.x,o.y,n.c0.l,n.c0.h,n.c0.mode,.1);else if(3===Jr)"none"!==Pr.dripAmount&&Gr(r,n,Pr.dripAmount,Pr.a7);else if(4===Jr){Pr.b8;((r,e,n)=>{r.forEach(((r,n)=>{const o=e.a4Polygons[n];if(!o.d1){const r=we[n],e=ue[n];vr(e,r,o,.0075,1,1)}}))})(r,n)}else i();Jr++};const re=class{constructor(r){this.useA=!1;let e=function(r){let e=parseInt(r.substr(0,8),16),n=parseInt(r.substr(8,8),16),o=parseInt(r.substr(16,8),16),i=parseInt(r.substr(24,8),16);return function(){e|=0,n|=0,o|=0,i|=0;let r=(e+n|0)+i|0;return i=i+1|0,e=n^n>>>9,n=o+(o<<3)|0,o=o<<21|o>>>11,o=o+r|0,(r>>>0)/4294967296}};r?(this.prngA=new e(r.substr(2,32)),this.prngB=new e(r.substr(34,32))):(this.prngA=new e(tokenData.hash.substr(2,32)),this.prngB=new e(tokenData.hash.substr(34,32)));for(let r=0;r<1e6;r+=2)this.prngA(),this.prngB()}random_dec(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}random_num(r,e){return r+(e-r)*this.random_dec()}random_int(r,e){return Math.floor(this.random_num(r,e+1))}random_bool(r){return this.random_dec()<r}random_choice(r){return r[this.random_int(0,r.length-1)]}b2(r){const e=this.random_dec();let n=!1,o=1;const i=r.reduce(((r,e,n)=>n%2==1?r+e:r),0),a=i*e;let t=0;for(;!n&&o<r.length;)a-r[o]<t&&(n=r[o-1]),t+=r[o],o+=2;return n}};let ee=[],ne=null,oe=1;let ie="normal",ae="normal"===ie?20:1,te=1===ae?100:2;let se=[];const le=.75,he=1200,me=he*le,ce=24;let de=[],ye=[],ge=[],pe=[],ue=[],xe={b0s:[],a4Polygons:[],e0:[],d8:[],shadow:[]},fe={x:0,y:0},we=[],ke=[],ve=[],Le="NEW",Se={};window.setup=()=>{colorMode(HSL);let r=1;const e=new re;var n;tokenData.hash&&(r=1e17*e.random_dec()),randomSeed(r),noiseSeed(r),window.seedValue=r,pixelDensity(2),createCanvas(window.innerHeight*le,window.innerHeight),n=height/1200,M=n,window.CONFIG=Se=Hr(e);o=Se.palette,i=Se.colorMod,X="exclusive"===i?F(I[o]):I[o];var o,i;const a=D(Se.c1).cb;se=a.slices,ye=((r,e)=>{const n=(0,Or[r])(),o=Ar(n);return e?o:n})(Se.b9,Se.b8),ge=(r=>{let e;return"circle"===r?e=[$(me/2,he/2,me,128)]:"diamond"===r&&(e=[U(me/2,he/2,me,me)]),e})(Se.secondaryGeometry),Re(),Se.oneLastSkewTho&&se.splice(se.length-1,0,{a9:random()>.5?.5:-.5,b0:B(7,2),a6:random()>.5?-1:1,b1:0})},window.draw=()=>{"NEW"===Le?(background(255),Ce(),Pe(),"DEBUG"!==Se.fillStrategy&&background(z("c2").a4),Le="RENDER
i||o){if("dots"===i){noStroke();for(let r=a.minX;r<a.b6;r+=s)for(let n=a.minY;n<a.b7;n+=s){let i=n;r%2==0&&(i+=s/2),fill(A(e.a4.h,20));let h=r/a.b6*t.a5.b6,m=i/a.b7*t.a5.b7,c=q(1.5);o&&(h+=random(-s,s)/4,m+=random(-s,s)/4,l&&(c=q(randomGaussian(1,1)))),circle(h,m,c)}}}else{stroke(R(e.a4.h,20)),V(.75);const r=random(2*PI),n=q(random(2,5));for(let o=a.minX;o<a.b6;o+=s)for(let i=a.minY;i<a.b7;i+=s){let l=i;o%2==0&&(l+=s/2),stroke(A(e.a4.h,20));const h=o/a.b6*t.a5.b6,m=l/a.b7*t.a5.b7;line(h-sin(r)*n/2,m-cos(r)*n/2,h+sin(r)*n/2,m+cos(r)*n/2)}}drawingContext.restore()},xr=r=>{r=rr(r,1),drawingContext.save(),drawingContext.beginPath(),r.forEach((r=>{drawingContext.lineTo(r.x,r.y)})),drawingContext.closePath(),drawingContext.clip()},fr=(r,e,n,o,i,a)=>{n=color(n),o=color(o),drawingContext.globalCompositeOperation=i;const t=width/.8;for(let i=0;i<1200*a;i++){let i=random(2*PI);const a=randomGaussian()>.5?n:o;a.setAlpha(random(.5,1)),fill(a),noStroke();const s=randomGaussian(0,t/2);let l=r+sin(i)*s,h=e+cos(i)*s;const m=q(abs(randomGaussian(.3,1)));if(wr(l,h,m),random()>.95){const n=random(3,10);for(let o=0;o<n;o++){let n=r+sin(i)*(s+m/2*o),a=e+cos(i)*(s+m/2*o);wr(n,a,m)}}}drawingContext.globalCompositeOperation="none"},wr=(r,e,n)=>{beginShape();for(let o=0;o<=18;o++){const i=2*PI/18*o,a=noise(o/5,e/M)*n,t=noise(r/M,o/5)*n;let s=r+sin(i)*n,l=e+cos(i)*n;s+=a,l+=t,vertex(s,l)}endShape()},kr=(r,e)=>{const n=P(["dot",20,"bigDot",1,"stroke",5]),o=R(e.a4.h,random(18,35));"dot"===n?(fill(o),noStroke(),r.forEach((r=>{circle(r.x,r.y,q(1.5))}))):"bigDot"===n?(fill(o),noStroke(),r.forEach((r=>{circle(r.x,r.y,q(2))}))):"stroke"===n&&(noFill(),stroke(o),V(1),r.forEach((r=>{circle(r.x,r.y,q(1.5))})))},vr=(r,e,n,o,i=1,a=1)=>{const t=e.area,s=e.perimeter,l=[n.a4.l,n.a4.h,n.a0,n.a1];let h=t/200;if(h<1)return!1;h>30&&(h=30),h*=a;let m,c,d=.1/o;d*=30/h,h=q(h),noStroke();let g=r[r.length-1],p=r[0],u=r[1],x=[{x:q(p.x),y:q(p.y)},{x:q(u.x),y:q(u.y)}],f=1,w=dist(p.x,p.y,u.x,u.y);for(let e=0;e<s;e+=1*d)round(e)%5!=0&&0!==e||fill(l[round(random(l.length-1))]),e>w&&(f++,p=u,u=r[f],g=r[f-2],x=[{x:q(p.x),y:q(p.y)},{x:q(u.x),y:q(u.y)}],w+=dist(p.x,p.y,u.x,u.y)),random()>1/8?cr(x,h,i,!0):(m=y(p.x,p.y,g.x,g.y)-PI/2,c=y(p.x,p.y,u.x,u.y)+PI/2,dr({x:q(p.x),y:q(p.y)},m,c,h,i,!0))},Lr=(r,e,n)=>{drawingContext.beginPath(),drawingContext.arc(r,e,n/2,0,2*PI,!1),drawingContext.fill(),drawingContext.closePath()},Sr=(r,e,n,o)=>{noStroke();const i=color(A(o.a4,15)),a=color(A(o.a4,15));r.forEach(((o,t)=>{if(t<r.length-1){const s=r[t+1],l=dist(o.x,o.y,s.x,s.y),h=floor(l/e);for(let r=0;r<h;r++){const e=lerp(o.x,s.x,r/h),t=lerp(o.y,s.y,r/h);fill(lerpColor(i,a,r/h)),circle(e,t,q(.75*n))}}}))},br=(r,e,n,o)=>{V(1.125);const i=color(A(o.a4,15)),a=color(A(o.a4,15));r.forEach(((n,o)=>{if(o<r.length-1){const t=r[o+1],s=dist(n.x,n.y,t.x,t.y),l=floor(s/e);for(let r=0;r<l;r++){const e=lerp(n.x,t.x,r/l),o=lerp(n.y,t.y,r/l),s=lerp(n.x,t.x,(r+.5)/l),h=lerp(n.y,t.y,(r+.5)/l);stroke(lerpColor(i,a,r/l)),line(e,o,s,h)}}}))},Cr=[{type:"dotted",spacing:[3,12],sz:[2,3]},10,{type:"dashed",spacing:[5,10],sz:[2,2.5]},10];let Pr={};const Hr=r=>{const e=r.b2([{b9:["writer",1],c1:["d2",10,"d3",10,"foldOver",10],shouldPerformReversion:["single",5,"none",10],a7:["tight",5],b8:[!1,5]},600,{b9:["geoPack",3,"megaPack",3,"sixPack",1],c1:["d5",10,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["distant",5],b8:[!0,5,!1,3]},700,{b9:["threeCircles",1],c1:["d5",10,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["veryverydistant",5],b8:[!0,5,!1,3]},300,{b9:["geoPack",6,"sixPack",1],c1:["d5",10,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["tight",5,"cover",25],b8:[!0,5]},1500,{b9:["circleArray",1],c1:["d5",10,"d2",25,"smallSmallSheers",10,"d4",10],shouldPerformReversion:["none",10],a7:["tight",1,"cover",1],b8:[!1,5]},600,{b9:["threeCircles",1],c1:["d4",10,"d2",35,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["veryverydistant",5],b8:[!1,5]},1e3,{b9:["geoPack",5,"sixPack",1],c1:["d4",10,"d5",10,"d3",15,"smallSmallSheers",10,"radial",10,"foldOver",10],shouldPerformReversion:["minimal",3,"none",12,"negminimal",3],a7:["onlycenter",5],b8:[!1,5]},500,{b9:["doubleSquare",1],c1:["d2",5],shouldPerformReversion:["none",10],a7:["adaptive",5,"onlycenter",5],b8:[!1,5]},1e3,{b9:["doubleSquare",1],c1:["d3",5],shouldPerformReversion:["minimal",3,"negminimal",2],a7:["distant",2,"tight",15],b8:[!1,5,!0,5]},600,{b9:["doubleSquare",1],c1:["d3",5],shouldPerformReversion:["single",1],a7:["tight",8,"distant",1],b8:[!1,5,!0,5]},1100,{b9:["flock",1],c1:["smallSmallSheers",15,"d4",5],shouldPerformReversion:["none",10],a7:["full",5],b8:[!1,5]},200,{b9:["flock",1],c1:["smallSmallSheers",15,"d4",5],shouldPerformReversion:["minimal",10],a7:["full",5],b8:[!0,5]},200]);let n=r.b2(["gum",1e3,"cloud",1e3,"montana",1e3,"briss",1200,"skull",1200,"zest",1e3,"dove",1e3,"cloak",1e3,"screentime",900,"feint",1100,"amused",1300,"exodus",1300,"method",1e3]),o=r.b2(["none",10,"exclusive",1]);const i={};i.palette=n,i.colorMod=o,i.b9=r.b2(e.b9),i.c1=r.b2(e.c1),i.shouldPerformReversion=r.b2(e.shouldPerformReversion),i.a7=r.b2(e.a7),i.b8=r.b2(e.b8),i.fillDirection=r.b2(["random",5,"centered",5,"down",3,"uniform",5,"flippy",6]),i.gradientType=r.b2(["linear",5,"radial",5]),i.internalShadeMode=r.b2(["evenLines",5,"shattered",5,"perspective",5]),i.fillStrategy="individual",i.linesOnTop=r.b2(["top",20,"bottom",30,"NONE",1]),i.dripAmount=r.b2(["none",10,"alittle",50,"some",100,"alot",100,"worked",125]),i.secondaryGeometry=r.b2(["circle",50,"diamond",20]),i.d1Probability=r.b2(["none",5,"some",20,"alot",10]),i.backgroundLighting=r.b2(["linear-from-top",10,"linear-from-bottom",10,"random",5]),i.hasCanvasSpray=r.b2([!0,50,!1,1]),i.hasBorder=r.b2([!0,20,!1,3]),i.visualVertices=!i.b8&&r.b2([!0,5,!1,6]),i.hasSpillover="NONE",i.backfilled=r.b2(["down",6,"center-out",4,"center-in",4,"minimal",15,"none",5]);const a=!("none"===i.shouldPerformReversion||"minimal"===i.shouldPerformReversion||"negminimal"===i.shouldPerformReversion);return i.renderSecondaryPolys=!a,i.oneLastSkewTho=r.b2([!0,10,!1,15]),"flock"===i.b9&&(i.backfilled="none"),("screentime"===i.palette||"wavelet"===i.palette||"exodus"===i.palette||a)&&(i.colorMod="none"),"zest"===i.palette&&"exclusive"===i.colorMod&&(i.backfilled="none"),Pr=i,i};const Yr=(r,e,n,o,i,a,t)=>new Er(r,e,n,o,i,a,t);class Er{constructor(r,e,n,o,i,a,t=!0){for(this.loc=r,this.dir=e,this.speed=n,this.life={curr:0,max:random(240,360),fadeTime:random(30,60),deadTime:random(15,45),alive:a},this.color1=color(o),this.color2=color(i),this.size=abs(randomGaussian(.8,1.2)),this.expandStart=random(.7,.9),this.minLineSize=abs(constrain(randomGaussian(.5,.25),.4,.7)),this.lifespan=a?30:1+abs(randomGaussian(0,3)),this.positions=[{x:r.x,y:r.y,size:this.size}],this.shouldSplatter=t;this.lifespan>0;)this.lifespan--,this.move();a||this.draw()}restart(){this.size=abs(randomGaussian(.9,1.45)),this.lifespan=random(10,50),this.life={curr:0,max:this.lifespan*(1-this.speed+1),fadeTime:random(60,90),deadTime:random(15,45),alive:!0},this.loc=createVector(random(0,width),random(0,height)),this.positions=[{x:this.loc.x,y:this.loc.y,size:this.size}];let r=get(this.loc.x,this.loc.y);for(this.color2=this.color1=color(Ir(r[0],r[1],r[2])),this.shouldSplatter&&Xr(this.loc.x,this.loc.y,Ir(r[0],r[1],r[2]),8,50);this.lifespan>0;)this.lifespan--,this.move()}move(){let r=20*noise(this.loc.x/100/M,this.loc.y/100/M,0)*TWO_PI;this.dir.x=cos(r)*M*.75,this.dir.y=10*M;var e=this.dir.copy();e.mult(1*this.speed),this.loc.add(e),this.positions.push({x:this.loc.x,y:this.loc.y,size:this.size})}tick(){this.life.curr++,this.life.curr<this.life.max+this.life.fadeTime+this.life.deadTime?this.draw():this.restart()}draw(){stroke(this.color1);const r=this.positions.length;let e=1;this.life.alive&&this.life.curr>this.life.max+this.life.deadTime&&(e=1-(this.life.curr-this.life.max-this.life.deadTime)/this.life.fadeTime),this.positions.every(((n,o)=>{if(this.life.alive&&o>this.positions.length*this.life.curr/this.life.max)return!1;if(o<r-1){const i=this.positions[o+1];let a=n.size*this.minLineSize;if(o/r>this.expandStart){const e=(o/r-this.expandStart)/(1-this.expandStart);a=n.size*this.minLineSize+n.size*(1-this.minLineSize)*e}V(a);let t=lerpColor(this.color1,this.color2,o/r);1!==e&&t.setAlpha(e),stroke(t),line(n.x,n.y,i.x,i.y)}return!0}))}}const Xr=(r,e,n,o=10,i=35)=>{let a=random(10,30),t=q(random(o,i));for(let o=0;o<4*a;o++){const o=random(2*PI),i=randomGaussian(0,t/2);let a=r+sin(o)*i,h=e+cos(o)*i;const m=q(random(.2,1));if(fill(A(n,10)),noStroke(),wr(a,h,m),random()>.95){const r=0;var s=createVector(cos(r),sin(r)),l=abs(randomGaussian(0,.15));let e=get(a,h),o=Ir(e[0],e[1],e[2]),i=n;const t=createVector(a,h,2);Yr(t,s,l,o,i)}}};function Ir(r,e,n){r/=255,e/=255,n/=255;let o=Math.min(r,e,n),i=Math.max(r,e,n),a=i-o,t=0,s=0,l=0;return t=0==a?0:i==r?(e-n)/a%6:i==e?(n-r)/a+2:(r-e)/a+4,t=Math.round(60*t),t<0&&(t+=360),l=(i+o)/2,s=0==a?0:a/(1-Math.abs(2*l-1)),s=+(100*s).toFixed(1),l=+(100*l).toFixed(1),[t,s,l]}const Gr=(r,e,n)=>{const i=m(ue);r.forEach(((r,a)=>{const t=e.a4Polygons[a];let{a5:s}=we[a];const l=he/100,h=s.width>l&&s.height>l;let m=0,c=!1;if("alittle"===n&&t.d6&&random()>.5?(c=!0,m=random(2,8)):"some"===n&&(t.d6&&random()>.2||random()>.8)?(c=!0,m=random(6,12)):"alot"===n&&random()>.4?(c=!0,m=random(8,20)):("worked"===n||"solo"===n)&&(c=!0,m=random(15,30)),!c||!h||t.d1)return!1;let d=0,y=0;const g=constrain(s.minX,5,me-5),p=me-5,u=constrain(s.minY,5,he-5),x=he-5;for(;d<m&&y<10*m;){const r=random(g,p),e=random(u,x);if(o([r,e],ue[a])){if("worked"===n){const r=1-(e-i.minY)/(i.b7-i.minY);if(random(1)<1.5*r){d++,y++;continue}}else{const r=1-(e-s.minY)/(s.b7-s.minY);if(random(1)<1.25*r){y++;continue}}const o=r*(width/me),a=e*(height/he);let t=get(o,a),l=Ir(t[0],t[1],t[2]),h=R(l,10),m=createVector(o,a,2),c=0,g=createVector(cos(c),sin(c)),p=random(.5,1);"worked"===n?p=random(.5,2.5):"solo"===n&&(p=random(.25,.5)),fill(0,50,50),"solo"!==n&&Xr(o,a,l),Yr(m,g,p,l,h),d++}y++}}))},Or={circleArray:()=>{const r=[],e=min(me,he)/round(random(4,5)),n=random(1.1,2),o=random()>.25;let i=0;for(let a=e;a<=he-e/10;a+=e){for(let t=e;t<=
,.5),a6:random()>.5?-1:1,b1:N(.03,2,round(random(1)))});return e.push({a9:PI,b0:B(6,3),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))}),e.push({a9:random(-.4,r),b0:B(100,3),a6:random()>.5?-1:1,b1:N(.25,2,round(random(1)))}),{slices:e}},T.d3=()=>{let r=.4;const e=[];e.push({a9:random(-.08,.08),b0:B(7,2),a6:random()>.5?-1:1,b1:0});for(let n=1;n<=20;n++){const o=2*PI/20*n;e.push({a9:random(-.4,r),b0:B(1.5,.5,o),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))})}return e.push({a9:random(-.08,.08),b0:B(7,2),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))}),{slices:e}},T.smallSmallSheers=()=>{const r=random(15,20),e=[];for(let n=1;n<=r;n++)e.push({a9:random(-.1,.1),b0:B(2,2),a6:random()>.5?-1:1,b1:N(.01,1,round(random(1)))});return e.push({a9:.1,b0:B(2,2),a6:random()>.5?-1:1,b1:N(.2,1,round(random(1)))}),{slices:e}},T.radial=()=>{const r=random(12,17),e=3*me;let n,o,i=[];const a=me/2+random(-me/3,me/3),t=he/2+random(-he/3,he/3),l=me/random(2,5);for(let h=0;h<r;h++){const m=2*PI/r*h;n={x:a-e,y:t+l+random(-1,1)*me/20},o={x:a+e,y:t+l+random(-1,1)*me/20};const c=random(.5),d=s([n,o],m,a,t);i.push({a9:random()>.5?-c:c,b0:d,a6:random()>.5?-1:1,b1:N(.1,.1,random())})}return i.push({a9:.1,b0:B(.1,2),a6:random()>.5?-1:1,b1:N(.2,1,round(random(1)))}),i=Y(i),{slices:i}};const D=r=>{const e=T[r];return{cb:e(),name:e.name}};let M=3;const q=r=>r*M,V=r=>strokeWeight(q(r)),_=(r,e,n,o,i)=>{const a=o/e,t=i/n;return r.map((r=>r.map((r=>({x:r.x*a,y:r.y*t})))))},$=(r,e,n,o=48)=>{const i=[];for(let a=0;a<=o;a++){const t=r+sin(2*PI/o*a)*n/2,s=e+cos(2*PI/o*a)*n/2;i.push({x:t,y:s})}return i},j=(r,e,n,o)=>{const i=[];return i.push({x:r,y:e}),i.push({x:r+n,y:e}),i.push({x:r+n,y:e+o}),i.push({x:r,y:e+o}),i.push({x:r,y:e}),i.reverse()},W=(r,e,n)=>{const o=[];return o.push({x:r,y:e-n/2}),o.push({x:r-n/2,y:e+n/2}),o.push({x:r+n/2,y:e+n/2}),o.push({x:r,y:e-n/2}),o},U=(r,e,n,o)=>{let i=[];return i.push({x:r-n/2,y:e}),i.push({x:r,y:e-o/2}),i.push({x:+n,y:e}),i.push({x:r,y:e+o/2}),i},J=(r,e,n,o,i,a,t=48)=>{let s=[];for(let o=0;o<=t;o++){const l=r+sin(i+a/t*o)*n,h=e+cos(i+a/t*o)*n;s.push({x:l,y:h})}for(let n=t;n>=0;n--){const l=r+sin(i+a/t*n)*o,h=e+cos(i+a/t*n)*o;s.push({x:l,y:h})}return s.push(s[0]),s},Q=(r,e,n,o)=>{const i=[];for(let a=0;a<48;a++){let t=r+n/2*sin(2*PI/48*a),s=e+o/2*cos(2*PI/48*a);i.push({x:t,y:s})}return i},K=(r,e,n)=>{let o=e.x,i=e.y,a=n.x-o,t=n.y-i;if(0!==t||0!==a){const e=((r.x-o)*a+(r.y-i)*t)/(a*a+t*t);e>1?(o=n.x,i=n.y):e>0&&(o+=a*e,i+=t*e)}return a=r.x-o,t=r.y-i,a*a+t*t},Z=(r,e,n,o,i)=>{let a,t=o;for(let o=e+1;o<n;o++){let i=K(r[o],r[e],r[n]);i>t&&(a=o,t=i)}t>o&&(a-e>1&&Z(r,e,a,o,i),i.push(r[a]),n-a>1&&Z(r,a,n,o,i))},rr=(r,e)=>r.length<=2?r:((r,e)=>{const n=r.length-1,o=[r[0]];return Z(r,0,n,e,o),o.push(r[n]),o})(r,e*e),er=(r,e)=>{V(1),stroke(e.stroke),noFill(),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape()},nr=(r,e,n)=>{const o=ir(r,n);if(!o)return!1;dist(o.startX,o.startY,o.endX,o.endY);const i=drawingContext.createLinearGradient(o.startX,o.startY,o.endX,o.endY),a=Object.keys(e.a4);a.reverse().forEach(((r,n)=>{i.addColorStop((n+1)/a.length,H(e.a4[r]))})),drawingContext.fillStyle=i,noStroke(),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape()},or=(r,e,n)=>{n+=PI;const o=ir(r,n),i=h(r);if(!o)return!1;let a=dist(o.startX,o.startY,o.endX,o.endY),t=max(i.width,i.height);a<t/2&&(a=t/2);const s=drawingContext.createRadialGradient(o.startX,o.startY,0,o.startX,o.startY,a),l=Object.keys(e.a4);l.forEach(((r,n)=>{s.addColorStop((n+1)/l.length,H(e.a4[r]))})),drawingContext.fillStyle=s,noStroke(),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape()},ir=(r,n)=>{const o=a(r),i=q(2e3),t=[[o.x-cos(n)*i,o.y-sin(n)*i],[o.x+cos(n)*i,o.y+sin(n)*i]],s=h(r),l=function(r,n){if(!r.length)return{true:[],false:[]};let o={true:[[]],false:[[]]},i=e(...r[0],r[0][0]+Math.E,r[0][1]+PI,n,!0).length%2!=0,a=!1;for(let t=0;t<r.length;t++){let s=r[t],l=r[t+1];if(o[i][o[i].length-1].push(s),!l)break;let h=e(...s,...l,n,!1);!a&&h&&(a=!0);for(let r=0;r<h.length;r++)o[i][o[i].length-1].push(h[r].xy),i=!i,o[i].push([h[r].xy])}return o.true=o.true.filter((r=>r.length)),o.false=o.false.filter((r=>r.length)),a?o.true:[]}(t,[{x:s.minX,y:s.minY},{x:s.b6,y:s.minY},{x:s.b6,y:s.b7},{x:s.minX,y:s.b7}]);return 0!==l.length&&{center:o,startX:l[0][0][0],startY:l[0][0][1],endX:l[0][1][0],endY:l[0][1][1]}},ar=(r,e,n,o,i,a)=>{let t=n-PI/2;const s=random(),l=abs(randomGaussian(0,e)),h=o[0]+cos(n)*-i*s,m=o[1]+sin(n)*-i*s,c=h+cos(t)*(a*l),d=m+sin(t)*(a*l);Lr(c,d,q(r))},tr=(r,o,i,a,t,l=1,m=1)=>{const c=.2*l;i+=1.5*PI;const d=a.area/50*ae*t,{startX:y,endX:g,startY:p}=((r,o,i)=>{const{scaled:a}=i,t=1e3/h(r).width,l=r.map((r=>({x:r.x*t,y:r.y*t}))),m=h(l);let c=dist(m.minX,m.minY,m.b6,m.b7)+10+100,d=!1,y=!1,g=!1,p=!1;for(let r=0;r<c;r+=5){let n=s([{x:m.centerX-c/2,y:m.centerY-c/2+r},{x:m.centerX+c/2,y:m.centerY-c/2+r}],o,m.centerX,m.centerY),i=s([{x:m.centerX-c/2,y:m.centerY-c/2+r},{x:m.centerX+c/2,y:m.centerY-c/2+r}],o+PI/2,m.centerX,m.centerY),a=e(n[0].x,n[0].y,n[1].x,n[1].y,l),t=e(i[0].x,i[0].y,i[1].x,i[1].y,l);a.length>0&&!d?d=r:d&&!y&&0===a.length&&(y=r),t.length>0&&!g?g=r:g&&!p&&0===t.length&&(p=r)}g-=5,p+=5,d-=5,y+=5;let u=s([{x:m.centerX-c/2,y:m.centerY-c/2+d},{x:m.centerX+c/2,y:m.centerY-c/2+d}],o,m.centerX,m.centerY),x=s([{x:m.centerX-c/2,y:m.centerY-c/2+y},{x:m.centerX+c/2,y:m.centerY-c/2+y}],o,m.centerX,m.centerY),f=s([{x:m.centerX-c/2,y:m.centerY-c/2+g},{x:m.centerX+c/2,y:m.centerY-c/2+g}],o+PI/2,m.centerX,m.centerY),w=s([{x:m.centerX-c/2,y:m.centerY-c/2+p},{x:m.centerX+c/2,y:m.centerY-c/2+p}],o+PI/2,m.centerX,m.centerY),k=n(f[0].x,f[0].y,f[1].x,f[1].y,u[0].x,u[0].y,u[1].x,u[1].y),v=n(w[0].x,w[0].y,w[1].x,w[1].y,u[0].x,u[0].y,u[1].x,u[1].y),L=n(x[0].x,x[0].y,x[1].x,x[1].y,f[0].x,f[0].y,f[1].x,f[1].y),S=n(x[0].x,x[0].y,x[1].x,x[1].y,w[0].x,w[0].y,w[1].x,w[1].y);return!!(k&&v&&L&&S)&&{startX:k.xy.map((r=>r/t)),endX:v.xy.map((r=>r/t)),startY:L.xy.map((r=>r/t)),endY:S.xy.map((r=>r/t))}})(r,i,a);if(!y||y.length,!y||!y.length)return!1;xr(r),noStroke(),fill(o.a1);const u=dist(y[0],y[1],g[0],g[1]),x=dist(y[0],y[1],p[0],p[1]);for(let r=0;r<d;r++){r%150!=0&&0!==r||fill(A(o.a1,9));let e=random()>.999?random(2,3.25):abs(randomGaussian(.2,.75));ar(e*m,c,i,p,u,x)}for(let r=0;r<d;r++){r%150!=0&&0!==r||fill(A(o.a0,15));let e=random()>.999?random(2,3.25):abs(randomGaussian(.2,.75));ar(e*m,c,i+PI,y,-u,x)}for(let r=0;r<d/10;r++)fill(R(o.a1,random(-5,-10))),ar(random(1,2)*m,c/2.5,i,p,u,x);for(let r=0;r<d/25;r++)fill(R(o.a0,random(5,15))),ar(random(1,2.5)*m,c/2,i+PI,y,-u,x);drawingContext.restore()},sr=(r,e,n,o,i=1)=>{const{a5:a,scaled:t}=o,l=dist(t.a5.minX,t.a5.minY,t.a5.b6,t.a5.b7),h=max(a.b6-a.minX,a.b7-a.minY)/random(3,10)*i;xr(r);const m=color(...e.a4.h),c=color(...e.a4.l);for(let r=0;r<h;r++){let e=t.a5.centerX-l/2+l/h*r,o=t.a5.centerY-l/2,i=e,a=o+l;const d=n+random(-.02,.02),y=s([{x:e,y:o},{x:i,y:a}],d,t.a5.centerX,t.a5.centerY);let g=lerpColor(m,c,constrain(0,1,r/h+randomGaussian(0,.1)));g=A([hue(g),saturation(g),lightness(g)],5),random()>.95&&(g=R([hue(g),saturation(g),lightness(g)],random(10,20))),stroke(g),V(random(.2,1.5)),line(y[0].x,y[0].y,y[1].x,y[1].y)}drawingContext.restore()},lr=(r,e,n,o)=>{const{minX:i,b6:a,minY:t,b7:l,centerX:h,centerY:m}=n.a5;let c=dist(i,t,a,l)/2,d=h-c,y=m-c;xr(r);let g=1,p=random(1.025,1.1);const u=color(...e.a4.h),x=color(...e.a4.l);for(;d<h+c;){d+=g,g*=p;const r=o+random(-.02,.02),e=s([{x:q(d),y:q(y)},{x:q(d),y:q(y)+q(2*c)}],r,q(h),q(m));let n=lerpColor(u,x,constrain(0,1,(d-h)/c+randomGaussian(0,.1)));n=A([hue(n),saturation(n),lightness(n)],5),random()>.95&&(n=R([hue(n),saturation(n),lightness(n)],random(10,20))),stroke(n),V(random(.2,1.5)),line(e[0].x,e[0].y,e[1].x,e[1].y)}drawingContext.restore()},hr=(r,e,n,o)=>{const{minX:i,b6:a,minY:t,b7:l,centerX:h,centerY:m}=n.a5;let c=dist(i,t,a,l)/2,d=h-c,y=m-c;xr(r);let g=.4;const p=color(...e.a4.h),u=color(...e.a4.l);noStroke();let x=q(random(1.45,2.1));for(;d<h+c;){d+=g,g*=1.05;const r=o,e=s([{x:q(d),y:q(y)},{x:q(d),y:q(y)+q(2*c)}],r,q(h),q(m));lerpColor(p,u,constrain(0,1,(d-h)/c+randomGaussian(0,.1)));let n=dist(e[0].x,e[0].y,e[1].x,e[1].y);for(let r=0;r<n;r+=g){const o=lerp(e[0].x,e[1].x,r/n),i=lerp(e[0].y,e[1].y,r/n);Lr(o,i,x)}0}drawingContext.restore()},mr=(r,e,n)=>{fill(n[0],n[1],n[2],.9),drawingContext.filter=`blur(${e*pixelDensity()}px)`,beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape(),drawingContext.filter="none"},cr=(r,e,n,o)=>{let i,a=Math.atan2(r[1].y-r[0].y,r[1].x-r[0].x)+PI/2;const t=random(),s=abs(randomGaussian(0,1))*e,l=a+random(-PI/10,PI/10),h=r[0].x+(r[1].x-r[0].x)*t+cos(l)*s,m=r[0].y+(r[1].y-r[0].y)*t+sin(l)*s;i=abs(randomGaussian(.35,.8))*n,i=q(i),o?wr(h,m,i):Lr(h,m,i)},dr=(r,e,n,o,i,a)=>{let t,s,l;s=abs(randomGaussian(0,2))*o,l=n;l=e-n>0?random(e,n):random(e+PI,n-PI)+PI;const h=r.x+cos(l)*s,m=r.y+sin(l)*s;t=abs(randomGaussian(.35,.75))*i,t=q(t),a?wr(h,m,t):Lr(h,m,t)},yr=(r,e,n)=>{const{area:o,a5:i,scaled:a}=n;let t=constrain(o/1e3,2,8),s=0,l=[r];for(xr(r);s<t;){let r=[];l.forEach((e=>{random()>.1||s<2?r=r.concat(pr(e)):r.push(e)})),s++,l=r}const h=color(...e.a4.h),m=color(...e.a4.l);l.forEach((r=>{let e=random()>.5?h:m;e=A([hue(e),saturation(e),lightness(e)],5),random()>.95&&(e=R([hue(e),saturation(e),lightness(e)],random(6,12))),stroke([hue(e),saturation(e),lightness(e),randomGaussian(.3,.5)]),V(random(.2,1.5)),noFill(),beginShape(),r.forEach(((r,e)=>{vertex(r.x,r.y)})),endShape()})),drawingContext.restore()},gr=(r,e,n)=>{xr(r);let o=pr(r);const i=round(random(0,2));for(let r=0;r<i;r++)o=o.reduce(((r,e)=>r.concat(pr(e))),[]);o.forEach((r=>{er(r,e),sr(r,e,random(2*PI),n)})),drawingContext.restore()},pr=r=>{let e=0;r.forEach(((n,o)=>{let i=o<r.length-1?r[o+1]:r[0];e+=dist(n.x,i.x,n.y,i.y)}));const n=random(e/2),o=e/2+n;let i,a,t=[],s=[],l=0;return r.forEach(((e,h)=>{let m=h<r.length-1?r[h+1]:r[0];const c=dist(e.x,m.x,e.y,m.y);if(l+c>n&&l<n){const r=(n-l)/c;i={x:lerp(e.x,m.x,r),y:lerp(e.y,m.y,r)},t.push(e),s.push(i)}else if(l+c>o&&l<o){const r=(o-l)/c;a={x:lerp(e.x,m.x,r),y:lerp(e.y,m.y,r)},t.push(i),t.push(a),s.push(e)}else l<n||l>o?t.push(e):s.push(e);l+=c})),s.push(a),[t,s]},ur=(r,e,n,o)=>{xr(r);const i=P(["dots",10,"lines",10]),{a5:a,scaled:t}=n,s=random(4,8);let l=o&&random()>.5;if("lines"!==
8:{c:.1,fill:[256,59,50]},e:G},20],c2:[{a4:[198,40,8],a0:[198,40,30],a1:[198,40,2],stroke:[198,40,10]},1.5,{a4:[202,30,13],a0:[202,30,30],a1:[202,30,2],stroke:[202,30,10]},1.5,{a4:[40,0,90],a0:[40,0,100],a1:[189,30,50],stroke:[40,0,71]},10],c7:[{a4:[189,69,25]},40,{a4:[351,59,25]},40,{a4:[40,88,25]},15],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[40,88,71],h:[9,65,61],mode:"none"},10],a2:[{l:[212,47,4,.06],h:[212,47,4,0],c5:[212,47,10,.25]},10],c8:[{p:[189,69,10]},5,{p:[40,0,95]},5,{p:[256,59,40]},1]},I.zest={b5:[{a4:{l:[24,100,55],h:[41,100,65]},a1:[41,100,50],a0:[24,69,76],stroke:[41,100,50]},10,{a4:{l:[100,82,65],h:[100,82,71]},a0:[100,82,80],a1:[70,82,55],stroke:[100,82,60],a8:{c:.25,fill:[100,82,71]}},300,{a4:{l:[130,77,50],h:[130,77,60]},a0:[75,77,65],a1:[130,77,46],stroke:[130,77,60]},400,{a4:{l:[195,90,34],h:[195,90,40]},a0:[130,90,45],a1:[195,90,28],stroke:[195,90,25],e:G},200,{a4:{l:[54,95,70],h:[54,95,75]},a0:[54,95,85],a1:[54,95,65],stroke:[54,95,60]},20,{a4:{l:[195,90,20],h:[195,90,30]},a0:[195,90,35],a1:[130,90,19],stroke:[195,90,15],e:G},400],c2:[{a4:[197,84,10],a0:[197,84,25],a1:[197,84,3],stroke:[197,84,10]},11,{a4:[197,84,98],a0:[197,84,80],a1:[197,84,55],stroke:[197,10,64]},5,{a4:[197,25,98],a0:[137,84,80],a1:[137,84,55],stroke:[197,10,64]},5],c7:[{a4:[197,84,40]},40,{a4:[54,100,25]},10,{a4:[41,100,25]},10],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[130,77,60],h:[225,99,62],mode:"none"},10],a2:[{l:[0,0,4,.01],h:[0,0,4,0],c5:[130,77,40]},10],c8:[{p:[197,25,90]},3,{p:[195,90,15]},3,{p:[100,65,50]},300]},I.dove={b5:[{a4:{l:[210,35,20],h:[210,35,30]},a1:[210,35,15],a0:[210,35,35],stroke:[210,35,15]},100,{a4:{l:[210,40,35],h:[210,40,45]},a1:[210,40,30],a0:[210,40,50],stroke:[210,40,15],e:G},75,{a4:{l:[8,80,85],h:[8,80,90]},a1:[8,80,80],a0:[8,80,95],stroke:[8,80,70],a8:{c:.2,fill:[8,80,90]}},15,{a4:{l:[195,80,37],h:[195,80,45]},a1:[195,80,30],a0:[195,80,50],stroke:[195,80,37]},25],c2:[{a4:[32,76,95],a0:[32,76,100],a1:[32,60,80],stroke:[32,76,95]},11,{a4:[32,76,100],a0:[32,76,100],a1:[32,60,85],stroke:[32,76,95]},3],c7:[{a4:[210,35,15]},40,{a4:[8,80,75]},20,{a4:[195,80,45]},40],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[8,75,90],h:[210,37,40],mode:"none"},10],a2:[{l:[0,0,4,.01],h:[0,0,4,0],c5:[32,60,60]},10],c8:[{p:[8,80,80]},3,{p:[8,80,98]},3]},I.cloak={b5:[{a4:{l:[252,20,20],h:[252,20,25]},a1:[252,20,15],a0:[252,20,35],stroke:[252,20,15],e:G},50,{a4:{l:[252,20,5],h:[252,20,10]},a1:[252,20,0],a0:[252,20,20],stroke:[252,20,2]},50,{a4:{l:[24,85,49],h:[24,85,55]},a1:[24,85,42],a0:[24,85,60],stroke:[24,85,49],a8:{c:.25,fill:[24,85,49]}},7,{a4:{l:[267,65,56],h:[267,65,60]},a1:[267,65,50],a0:[267,65,66],stroke:[267,65,56],a8:{c:.25,fill:[267,65,56]},e:G},5,{a4:{l:[234,68,33],h:[234,68,36]},a1:[234,68,25],a0:[234,68,40],stroke:[234,68,33],a8:{c:.25,fill:[234,68,33]},e:G},5,{a4:{l:[0,66,48],h:[0,66,55]},a1:[0,66,40],a0:[0,66,60],stroke:[0,66,48],a8:{c:.25,fill:[0,66,48]},e:G},5],c2:[{a4:[0,0,95],a0:[0,0,100],a1:[0,0,60],stroke:[0,0,90]},11,{a4:[0,0,85],a0:[0,0,95],a1:[0,0,60],stroke:[0,0,90]},3,{a4:[0,0,5],a0:[0,0,25],a1:[0,0,0],stroke:[0,0,5]},7],c7:[{a4:[234,68,35]},40,{a4:[0,0,60]},40,{a4:[0,66,60]},40,{a4:[267,65,59]},40],c3:[{a4:[189,69,2,.1]},1],c0:[{l:[234,68,33],h:[0,0,100],mode:"none"},10,{l:[267,68,50],h:[0,66,48],mode:"none"},10],a2:[{l:[0,0,4,.05],h:[0,0,4,0],c5:[32,60,0]},10],c8:[{p:[234,40,10]},3]},I.screentime={b5:[{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[353,30,68]},50,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[353,30,68],stroke:[353,30,68]},10,{a4:{l:[158,39,65],h:[158,39,75]},a1:[158,39,55],a0:[158,39,80],stroke:[158,39,68],a8:{c:.5,fill:[158,39,75]}},20,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[207,39,59]},50,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[207,39,59],stroke:[207,39,59]},10,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[158,39,59]},50,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[158,39,59],stroke:[158,39,59]},20,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[90,39,60]},50,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[194,11,70]},50],c2:[{a4:[226,26,90],a0:[226,23,50],a1:[226,26,20],stroke:[226,26,40]},11,{a4:[226,26,40],a0:[226,23,50],a1:[226,26,20],stroke:[226,26,40]},11,{a4:[226,26,25],a0:[226,23,50],a1:[226,26,20],stroke:[226,26,40]},11],c7:[{a4:[194,11,50]},40,{a4:[353,30,50]},40,{a4:[207,39,50]},40,{a4:[158,39,50]},40,{a4:[90,39,45]},40],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[353,30,68],h:[158,39,59],mode:"none"},10],a2:[{l:[0,0,4,.05],h:[0,0,4,0],c5:[231,25,18]},10],c8:[{p:[158,39,75]},2,{p:[226,26,80]},6,{p:[231,25,22]},6e3]},I.feint={b5:[{a4:{l:[199,24,28],h:[199,24,34]},a1:[199,24,24],a0:[199,24,38],stroke:[199,24,30]},10,{a4:{l:[212,33,19],h:[212,33,24]},a1:[212,33,15],a0:[212,33,30],stroke:[212,33,20]},10,{a4:{l:[230,27,4],h:[230,27,9]},a1:[230,27,1],a0:[230,27,12],stroke:[230,27,7]},5,{a4:{l:[184,29,60],h:[184,29,67]},a1:[184,29,76],a0:[184,29,50],stroke:[184,29,55]},10,{a4:{l:[358,46,40],h:[358,46,49]},a1:[358,46,30],a0:[358,46,60],stroke:[358,46,49],a8:{c:.05,fill:[358,46,49]},e:G},3,{a4:{l:[349,46,40],h:[349,46,49]},a1:[349,46,30],a0:[349,46,60],stroke:[349,46,49],a8:{c:.05,fill:[347,46,49]}},2],c2:[{a4:[0,0,97],a0:[0,0,100],a1:[0,0,80],stroke:[0,0,99]},11,{a4:[185,25,80],a0:[185,25,90],a1:[185,25,65],stroke:[185,25,80]},11],c7:[{a4:[358,46,49]},40,{a4:[212,33,25]},40,{a4:[349,33,25]},40,{a4:[22,33,25]},40],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[358,46,50],h:[212,33,24],mode:"none"},10,{l:[212,33,24],h:[184,29,67],mode:"none"},10],a2:[{l:[0,0,4,.05],h:[0,0,4,0],c5:[223,41,51]},10],c8:[{p:[212,33,20]},2,{p:[185,25,91]},2]},I.amused={b5:[{a4:{l:[335,70,37],h:[16,72,65]},a1:[335,70,30],a0:[16,72,75],stroke:[16,70,60],a8:{c:.1,fill:[16,72,65]}},5,{a4:{l:[240,22,14],h:[327,65,27]},a1:[240,22,8],a0:[16,72,45],stroke:[240,22,14],e:G},15,{a4:{l:[240,22,10],h:[240,22,20]},a1:[240,22,3],a0:[240,22,25],stroke:[240,22,14]},12,{a4:{l:[240,22,10],h:[240,22,20]},a1:[240,22,3],a0:[335,70,37],stroke:[240,22,14],e:G},12,{a4:{l:[219,73,29],h:[219,73,35]},a1:[219,73,20],a0:[219,70,45],stroke:[219,73,29]},40,{a4:{l:[216,42,90],h:[216,42,95]},a1:[216,42,80],a0:[216,42,100],stroke:[216,42,90],e:G},6],c2:[{a4:[209,84,60],a0:[209,84,75],a1:[209,84,45],stroke:[209,84,45]},50,{a4:[209,42,89],a0:[209,42,98],a1:[209,42,70],stroke:[209,42,89]},15],c7:[{a4:[84,98,64]},40,{a4:[18,75,67]},40,{a4:[220,73,30]},100],c3:[{a4:[219,73,29,.3]},1],c0:[{l:[84,98,64],h:[84,98,80],mode:"source-over"},10],a2:[{l:[0,0,4,.025],h:[0,0,4,0]},10],c8:[{p:[209,42,90]},6,{p:[240,22,20]},3,{p:[219,73,30]},4]},I.method={b5:[{a4:{l:[207,25,89],h:[207,16,95]},a1:[251,10,70],a0:[207,16,99],stroke:[207,16,89],e:G},2.5,{a4:{l:[207,25,89],h:[207,16,95]},a1:[251,16,75],a0:[207,16,99],stroke:[251,23,89],e:G},2.5,{a4:{l:[208,82,35],h:[209,82,45]},a1:[209,82,25],a0:[209,82,65],stroke:[209,82,40]},15,{a4:{l:[210,82,15],h:[209,95,28]},a1:[209,95,5],a0:[209,95,45],stroke:[209,95,25]},15],c2:[{a4:[230,10,10],a0:[230,10,22],a1:[230,10,2],stroke:[230,10,12]},50,{a4:[230,10,3],a0:[230,10,22],a1:[230,10,0],stroke:[230,10,1]},10],c7:[{a4:[251,25,52]},40,{a4:[200,19,30]},40],c3:[{a4:[251,20,1,.65]},1],c0:[{l:[251,19,52],h:[210,19,69],mode:"source-over"},10],a2:[{l:[0,0,4,.025],h:[0,0,4,0],c5:[223,41,51]},10],c8:[{p:[209,42,90]},6]},I.exodus={b5:[{a4:{l:[205,25,5],h:[205,25,10]},a1:[205,10,1],a0:[205,25,15],stroke:[205,25,5],e:G},25,{a4:{l:[210,20,5],h:[210,20,10]},a1:[251,10,1],a0:[210,15,15],stroke:[210,75,5],e:G},20,{a4:{l:[201,82,25],h:[201,82,34]},a1:[201,82,20],a0:[201,82,40],stroke:[201,82,34],a8:{c:.1,fill:[201,82,40]}},25,{a4:{l:[3,85,25],h:[3,85,34]},a1:[3,85,20],a0:[3,85,40],stroke:[3,85,25],e:G},12,{a4:{l:[13,85,25],h:[13,85,34]},a1:[13,85,15],a0:[13,85,40],stroke:[13,85,25],a8:{c:.1,fill:[13,85,40]}},9],c2:[{a4:[51,20,81],a0:[51,20,94],a1:[51,20,68],stroke:[51,20,81]},20,{a4:[210,39,12],a0:[210,39,35],a1:[210,39,4],stroke:[210,39,12]},50,{a4:[40,97,53],a0:[40,97,65],a1:[40,97,40],stroke:[40,97,53]},50],c7:[{a4:[179,79,31]},40,{a4:[40,97,28]},20,{a4:[9,88,28]},20],c3:[{a4:[251,20,1,.1]},1],c0:[{l:[40,97,53],h:[9,90,40],mode:"source-over"},10],a2:[{l:[0,0,4,.025],h:[0,0,4,0],c5:[223,41,51]},10],c8:[{p:[180,75,5]},6]};const O=(r,e)=>{const n=Object.keys(r),o={},i=["a8","a2"];for(let a=0;a<n.length;a++)-1!==i.indexOf(n[a])||0===e?o[n[a]]=r[n[a]]:r[n[a]].length?o[n[a]]=R(r[n[a]],e):o[n[a]]=O(r[n[a]],e);return o},z=(r,e)=>O(P(X[r]),e),A=(r,e)=>{const n=constrain(r[2]+random(-e,e),0,100),o=void 0!==r[3]?r[3]:100;return[r[0],r[1],n,o]},R=(r,e)=>{const n=r[3]?r[3]:100;return[r[0],r[1],r[2]+e,n]},F=r=>(r.b5=r.b5.filter((r=>r.e)),r.b5=[Y(r.b5)[0]],r.b5[0].a8={c:0},r.b5.push(1),r.c3=[{a4:[0,0,0,0]},1],r),T={},N=(r=0,e,n)=>0===r?{distance:0,a6:0}:{distance:random()<e?min(me,he)*random(-r,r):0,a6:n};T.d4=()=>{let r=random(.05,.45),e=[];const n=random(10,20),o=2*me,i=random(2*PI);for(let a=0;a<n;a++){let t,l;const h=random(-5,5);a%2?(t={x:-o,y:he/n*a},l={x:me+o,y:he/n*(a+h)}):(t={x:me+o,y:he/n*a},l={x:-o,y:he/n*(a+h)});const m=random(r),c=s([t,l],i,me/2,he/2);e.push({a9:random()>.5?-m:m,b0:c,a6:random()>.5?-1:1,b1:N(.1,.1,round(random(1)))})}const a=random(-me,me)/100,t=random(-me,me)/100;let l=[{x:me/2+a,y:4*-he},{x:me/2+t,y:4*he}];return l=s(l,i,me/2,he/2),e.push({a9:random(-1,1)*r,b0:l,a6:random()>.5?-1:1,b1:N(.1,.1,round(random(1)))}),e=Y(e),{slices:e}},T.d5=()=>{const r=round(random(20,25)),e=[];for(let n=1;n<=r;n++)e.push({a9:random(-.25,.25),b0:B(1.15,2),a6:random()>.5?-1:1,b1:N()});return{slices:e}};const B=(r,e,n=!1)=>{const o=n||random(2*-PI,2*PI),i=max(me,he)*e,a=[],t=random(-me,me)/r,s=random(-he,he)/r,l=random(-me,me)/r,h=random(-he,he)/r;return a.push({x:me/2+t+sin(o)*i,y:he/2+s+cos(o)*i}),a.push({x:me/2+l-sin(o)*i,y:he/2+h-cos(o)*i}),a};T.d2=()=>{let r=.4;const e=[];e.push({a9:random(-.08,.08),b0:B(7,2),a6:random()>.5?-1:1,b1:0});for(let n=1;n<=20;n++)e.push({a9:random(-.4,r),b0:B(1.5,.5),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))});return e.push({a9:random(-.4,r),b0:B(7,2),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))}),{slices:e}},T.foldOver=()=>{let r=.4;const e=[];for(let n=1;n<=10;n++)e.push({a9:random(-.4,r),b0:B(8
(()=>{"use strict";var r={d:(e,n)=>{for(var o in n)r.o(n,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)};r.d({},{cQ:()=>ke,X4:()=>ce,HX:()=>ae,zJ:()=>te,_1:()=>we,LW:()=>ve,j9:()=>ue,f8:()=>he,ai:()=>me});function e(r,e,o,i,a,t=!1){let s=a.length,l=[];for(let h=0;h<a.length;h++){let m=a[h],c=a[(h+1)%s],d=n(r,e,o,i,m.x,m.y,c.x,c.y,t);d&&l.push(d)}return l.sort(((r,e)=>r.t-e.t)),l}function n(r,e,n,o,i,a,t,s,l=!1){let h=n-r,m=o-e,c=t-i,d=s-a,y=h*d-m*c;if(0==y)return null;let g=i-r,p=a-e,u=y/(y*y),x=(g*d-p*c)*u,f=(g*m-p*h)*u;if(0<=x&&(l||x<1)&&0<=f&&f<1){let t={t:x,s:f,side:null,other:null,xy:null};return t.xy=[n*x+r*(1-x),o*x+e*(1-x)],t.side=(r-(w=n))*(a-(k=o))-(e-k)*(i-w)<0?1:-1,t}var w,k;return null}const o=(r,e)=>{for(var n=r[0],o=r[1],i=!1,a=0,t=e.length-1;a<e.length;t=a++){var s=e[a].x,l=e[a].y,h=e[t].x,m=e[t].y;l>o!=m>o&&n<(h-s)*(o-l)/(m-l)+s&&(i=!i)}return i};function i(r,e,n,o,i,a,t,s){let l,h;return r===n?(l=r,h=a+(s-a)/(t-i)*(r-i)):i===t?(l=i,h=e+(o-e)/(n-r)*(i-r)):(l=(e-a+i*(s-a)/(t-i)-r*(o-e)/(n-r))/((s-a)/(t-i)-(o-e)/(n-r)),h=e+(o-e)*(l-r)/(n-r)),(r<=l&&l<=n||n<=l&&l<=r)&&(e<=h&&h<=o||o<=h&&h<=e)&&(i<=l&&l<=t||t<=l&&l<=i)&&(a<=h&&h<=s||s<=h&&h<=a)&&[l,h]}const a=r=>{var e=r[0],n=r[r.length-1];e.x==n.x&&e.y==n.y||r.push(e);for(var o,i,a,t=0,s=0,l=0,h=r.length,m=0,c=h-1;m<h;c=m++)o=r[m],i=r[c],t+=a=o.x*i.y-i.x*o.y,s+=(o.x+i.x)*a,l+=(o.y+i.y)*a;return{x:s/(a=3*t),y:l/a}},t=(r,e,n)=>{const o=[];for(let i=0;i<r.length;i++)o.push({x:r[i].x+e,y:r[i].y+n});return o},s=(r,e,n,o)=>r=r.map((r=>{const i=r.x-n,a=r.y-o;return{x:i*cos(e)-a*sin(e)+n,y:a*cos(e)+i*sin(e)+o}})),l=(r,e,n,o)=>r=r.map((r=>{const i=atan2(r.y-o,r.x-n);return{x:r.x+cos(i)*e*100,y:r.y+sin(i)*e*100}})),h=(r,e=1)=>{let n=r[0].x,o=r[0].x,i=r[0].y,a=r[0].y;r.forEach((r=>{r.x<n?n=r.x:r.x>o&&(o=r.x),r.y<i?i=r.y:r.y>a&&(a=r.y)}));let t=n+(o-n)/2,s=i+(a-i)/2,l=o-n,h=a-i;return n*=e,i*=e,o*=e,a*=e,t*=e,s*=e,l*=e,h*=e,n=round(n),i=round(i),o=round(o),a=round(a),t=round(t),s=round(s),l=round(l),h=round(h),{minX:n,minY:i,b6:o,b7:a,centerX:t,centerY:s,width:l,height:h}},m=r=>{let e=r[0][0].x,n=r[0][0].x,o=r[0][0].y,i=r[0][0].y;r.forEach((r=>{const a=h(r);a.minX<e?e=a.minX:a.b6>n&&(n=a.b6),a.minY<o?o=a.minY:a.b7>i&&(i=a.b7)}));return{minX:e,minY:o,b6:n,b7:i,centerX:e+(n-e)/2,centerY:o+(i-o)/2,width:n-e,height:i-o}},c=r=>{for(var e=0,n=0,o=r.length;n<o;n++){e+=r[n].x*r[n==r.length-1?0:n+1].y*.5,e-=r[n==r.length-1?0:n+1].x*r[n].y*.5}return Math.abs(e)},d=r=>{let e=r[0],n=r[r.length-1];e.x!==n.x&&e.y!==n.y&&r.push(e);let o=0;for(let e=0;e<r.length-1;e++){const n=r[e],i=r[e+1];o+=dist(n.x,n.y,i.x,i.y)}return o};function y(r,e,n,o){var i=o-e,a=n-r;return Math.atan2(i,a)}const g=(r,e,n)=>{let o=atan2(e[1].y-e[0].y,e[1].x-e[0].x)+PI/2;const i=[];return r.forEach((r=>{const a=(t=r,s=e[0],l=e[1],Math.sqrt(function(r,e,n){var o=u(e,n);if(0==o)return u(r,e);var i=((r.x-e.x)*(n.x-e.x)+(r.y-e.y)*(n.y-e.y))/o;return i=Math.max(0,Math.min(1,i)),u(r,{x:e.x+i*(n.x-e.x),y:e.y+i*(n.y-e.y)})}(t,s,l)));var t,s,l;const h=r.x-cos(o)*a,m=r.y-sin(o)*a,c={x:h+cos(o+n)*a,y:m+sin(o+n)*a};i.push(c)})),{vertices:i}};function p(r){return r*r}function u(r,e){return p(r.x-e.x)+p(r.y-e.y)}const x=(r,e,n)=>{let o=atan2(e[1].y-e[0].y,e[1].x-e[0].x);return t(r,cos(o)*n,sin(o)*n)},f=(r,e,n,o,i)=>{for(var a=new S(e,n),t=new S(o,i),s=[],l=[],h=0;h<r.length;h+=2)l.push(new S(r[h],r[h+1]));for(h=0;h<l.length;h++){var m=new S(0,0);m=v(a,t,l[h],l[(h+1)%l.length],m);var c=s[0],d=s[s.length-1];m&&(null==c||S.dist(m,c)>1e-10)&&(null==d||S.dist(m,d)>1e-10)&&(m.flag=!0,s.push(m),l.splice(h+1,0,m),h++)}if(s.length<2)return[r.slice(0)];s.sort((function(r,e){return S.dist(a,r)-S.dist(a,e)}));for(var y=[],g=0;s.length>0;){l.length;var p=s[0],u=s[1],x=l.indexOf(p),f=l.indexOf(u),L=!1;if(k(l,x)==f?L=!0:(p=s[1],u=s[0],x=l.indexOf(p),f=l.indexOf(u),k(l,x)==f&&(L=!0)),L&&p&&u){g--;var b=w(l,x,f);y.push(b),l=w(l,f,x),p.flag=u.flag=!1,s.splice(0,2),0==s.length&&y.push(l)}else g++,s.reverse();if(g>1)break}var C=[];for(h=0;h<y.length;h++){for(var P=y[h],H=[],Y=0;Y<P.length;Y++)H.push(P[Y].x,P[Y].y);C.push(H)}return C},w=(r,e,n)=>{var o=r.length,i=[];n<e&&(n+=o);for(var a=e;a<=n;a++)i.push(r[a%o]);return i},k=(r,e)=>{for(var n=r.length;;)if(r[e=(e+1)%n].flag)return e},v=(r,e,n,o,i)=>{var a=r.x-e.x,t=n.x-o.x,s=r.y-e.y,l=n.y-o.y,h=a*l-s*t;if(0==h)return null;var m=r.x*e.y-r.y*e.x,c=n.x*o.y-n.y*o.x,d=i;return d.x=(m*t-a*c)/h,d.y=(m*l-s*c)/h,L(d,r,e)&&L(d,n,o)?d:null},L=(r,e,n)=>{var o=min(e.x,n.x),i=max(e.x,n.x),a=min(e.y,n.y),t=max(e.y,n.y);return o==i?a<=r.y&&r.y<=t:a==t?o<=r.x&&r.x<=i:o<=r.x+1e-10&&r.x-1e-10<=i&&a<=r.y+1e-10&&r.y-1e-10<=t};function S(r,e){this.x=r,this.y=e,this.flag=!1}S.dist=function(r,e){var n=e.x-r.x,o=e.y-r.y;return sqrt(n*n+o*o)};const b=(r,e)=>{if(o([e[0].x,e[0].y],r)||o([e[1].x,e[1].y],r))return[r];const n=r.reduce(((r,e)=>r.concat([e.x,e.y])),[]);let i=f(n,e[0].x,e[0].y,e[1].x,e[1].y);return i=i.map((r=>{const e=[];for(let n=0;n<r.length;n+=2)e.push({x:r[n],y:r[n+1]});return e})),i.length>0?i:[r]},C=r=>r.map((r=>r.vertices?r.vertices:r)),P=r=>{const e=random();let n=!1,o=1;const i=r.reduce(((r,e,n)=>n%2==1?r+e:r),0),a=i*e;let t=0;for(;!n&&o<r.length;)a-r[o]<t&&(n=r[o-1]),t+=r[o],o+=2;return n},H=r=>3===r.length?`hsl(${r[0]},${r[1]}%,${r[2]}%)`:4===r.length?`hsl(${r[0]},${r[1]}%,${r[2]}%, ${r[3]})`:void 0,Y=r=>{let e,n=r.length;for(;0!=n;)e=floor(random()*n),n--,[r[n],r[e]]=[r[e],r[n]];return r},E=(r,e)=>{const n=r;n.sort(((r,e)=>dist(e[0].x,e[0].y,e[1].x,e[1].y)-dist(r[0].x,r[0].y,r[1].x,r[1].y)));let o=[[{x:0,y:0},{x:me,y:0},{x:me,y:he},{x:0,y:he}]];for(let r=0;r<n.length;r++){const e=[],i=n[r];o.forEach(((r,n)=>{const o=b(r,i);o?e.push(...C(o)):e.push(r)})),o=e}return e.length>0&&(o=o.map((r=>[r]))),o};let X=!1,I={},G={e:!0};I.gum={b5:[{a4:{l:[337,67,52],h:[350,67,55]},a0:[337,67,75],a1:[337,67,35],stroke:[350,67,60],a8:{c:.09,fill:[350,67,55]},e:G},90,{a4:{l:[246,30,30],h:[246,50,40]},a0:[227,67,50],a1:[337,67,20],stroke:[246,30,20],a8:{c:.2,fill:[246,50,40]},e:G},70,{a4:{l:[209,86,30],h:[209,86,40]},a0:[209,86,55],a1:[209,86,20],stroke:[209,94,30]},10],a3:[],c2:[{a4:[246,30,10],a0:[246,30,20],a1:[246,50,7],stroke:[246,30,35]},90,{a4:[230,30,8],a0:[230,30,20],a1:[230,50,5],stroke:[230,30,5]},30,{a4:[200,30,6],a0:[200,30,30],a1:[200,50,5],stroke:[200,30,5]},30,{a4:[246,80,10],a0:[246,5,15],a1:[246,0,5],stroke:[246,5,5]},90],c7:[{a4:[246,30,30]},1,{a4:[338,30,30]},1,{a4:[212,30,30]},1],c3:[{a4:[0,50,0,.25]},1],c0:[{l:[337,67,55],h:[337,67,40],mode:"none"},10,{l:[209,86,40],h:[246,86,40],mode:"none"},10],a2:[{l:[246,35,5,.15],h:[246,35,4,0],c5:[246,35,2]},10],c8:[{p:[246,30,2]},5,{p:[337,67,40]},1]},I.cloud={b5:[{a4:{l:[351,92,50],h:[351,92,60]},a0:[351,99,75],a1:[351,100,30],stroke:[351,92,40],a8:{c:.2,fill:[351,92,60]},e:G},60,{a4:{l:[52,92,60],h:[52,92,80]},a0:[52,99,90],a1:[52,92,50],stroke:[52,92,55],a8:{c:.1,fill:[52,92,80]}},20,{a4:{l:[180,28,5],h:[180,28,10]},a0:[180,5,20],a1:[180,28,2],stroke:[180,28,10]},100,{a4:{l:[38,48,70],h:[38,48,80]},a0:[38,48,90],a1:[38,48,70],stroke:[38,48,75]},30,{a4:{l:[311,22,23],h:[311,22,30]},a0:[311,30,45],a1:[311,30,10],stroke:[311,22,20]},40,{a4:{l:[183,86,70],h:[150,87,60]},a0:[150,87,85],a1:[183,86,40],stroke:[183,80,45]},10],a3:[],c2:[{a4:[214,45,59],a0:[214,45,80],a1:[214,45,30],stroke:[214,45,30]},90,{a4:[214,55,59],a0:[351,92,50],a1:[214,35,35],stroke:[214,35,30]},90,{a4:[214,45,90],a0:[214,45,95],a1:[214,50,50],stroke:[214,35,70]},90],c7:[{a4:[52,92,55]},40,{a4:[214,35,50]},90,{a4:[351,92,60]},30],c3:[{a4:[214,90,20,.25]},1],c0:[{l:[214,35,70],h:[351,92,60],mode:"none"},10,{h:[52,92,80],l:[311,22,30],mode:"none"},10],a2:[{l:[214,35,5,.05],h:[214,35,4,0],c5:[214,35,15]},10],c8:[{p:[214,35,95]},5,{p:[214,35,40]},5,{p:[351,92,60]},1]},I.montana={b5:[{a4:{l:[24,100,75],h:[24,100,86]},a0:[24,100,95],a1:[24,100,65],stroke:[24,100,72],a8:{c:.1,fill:[24,100,86]}},5,{a4:{l:[22,66,60],h:[22,66,72]},a0:[22,66,80],a1:[22,66,50],stroke:[22,66,54]},5,{a4:{l:[18,51,45],h:[18,51,60]},a0:[18,51,72],a1:[18,51,35],stroke:[18,51,45]},5,{a4:{l:[12,55,96],h:[12,55,90]},a0:[12,55,98],a1:[12,55,84],stroke:[12,55,84]},25,{a4:{l:[230,20,55],h:[215,20,45]},a0:[215,20,70],a1:[215,20,35],stroke:[215,20,40]},25,{a4:{l:[251,8,10],h:[251,8,15]},a0:[251,8,30],a1:[251,8,5],stroke:[251,8,5],e:G},150],a3:[],c2:[{a4:[210,34,40],a0:[210,34,50],a1:[210,34,30],stroke:[210,34,30]},9,{a4:[220,9,93],a0:[220,9,98],a1:[220,9,70],stroke:[220,9,80]},25,{a4:[208,35,30],a0:[208,35,50],a1:[208,22,10],stroke:[208,22,30]},5,{a4:[251,8,8],a0:[251,8,25],a1:[251,8,5],stroke:[251,8,10]},2],c7:[{a4:[24,100,83]},40,{a4:[24,100,40]},10,{a4:[250,8,24]},40],c3:[{a4:[220,47,5,.025]},1],c0:[{l:[22,66,60],h:[215,20,60],mode:"none"},15],a2:[{l:[215,20,5,.09],h:[215,20,4,0],c5:[215,20,2,.2]},10],c8:[{p:[220,9,90]},3,{p:[251,8,10]},5]},I.briss={b5:[{a4:{l:[54,100,54],h:[54,100,65]},a0:[54,100,72],a1:[54,100,49],stroke:[54,100,54]},3,{a4:{l:[2,100,54],h:[2,100,65]},a0:[2,100,72],a1:[2,100,45],stroke:[2,100,54],e:G},10,{a4:{l:[191,100,54],h:[191,100,65]},a0:[191,100,72],a1:[191,100,45],stroke:[191,100,54]},10,{a4:{l:[0,0,95],h:[0,0,100]},a0:[0,0,100],a1:[0,0,90],stroke:[0,0,90]},30,{a4:{l:[0,0,0],h:[0,0,0]},a0:[0,0,9],a1:[0,0,0],stroke:[0,0,100]},15],c2:[{a4:[0,0,0],a0:[60,4,7],a1:[60,4,0],stroke:[60,5,2]},10],c7:[{a4:[200,0,50]},40,{a4:[200,0,100]},10,{a4:[200,0,0]},10],c3:[{a4:[220,47,5,.1]},1],c0:[{l:[0,0,0],h:[10,50,100],mode:"none"},10],a2:[{l:[0,0,0,.2],h:[0,0,0,0],c5:[54,100,20]},10,{l:[0,0,0,.2],h:[0,0,0,0],c5:[2,100,20]},10,{l:[0,0,0,.2],h:[0,0,0,0],c5:[191,100,20]},10],c8:[{p:[0,0,95]},3,{p:[191,8,50]},5,{p:[191,95,65]},1]},I.skull={b5:[{a4:{l:[9,65,60],h:[40,88,70]},a0:[40,88,80],a1:[9,69,55],stroke:[9,65,70]},10,{a4:{l:[212,40,0],h:[212,40,3]},a0:[212,40,15],a1:[0,0,0],stroke:[0,0,5]},100,{a4:{l:[203,15,50],h:[203,15,60]},a0:[203,15,65],a1:[203,15,45],stroke:[203,15,75]},20,{a4:{l:[212,47,16],h:[212,47,25]},a0:[212,47,30],a1:[212,47,10],stroke:[212,47,15],e:G},200,{a4:{l:[351,59,45],h:[351,59,50]},a0:[351,59,65],a1:[351,80,30],stroke:[351,59,35],a8:{c:.1,fill:[351,59,50]},e:G},100,{a4:{l:[256,59,35],h:[256,59,40]},a0:[256,59,50],a1:[256,59,30],stroke:[256,59,35],a
Ori is an art series that draws inspiration from paper folding to create deeply abstract and highly contrasting imagery. The loose interpretation of origami dynamics quickly dissolves as physical rules are bent and reimagined. An artifact of this process is the distinctive fold lines, which symbolize the Yoshizawa-Randlett diagrams that serve as instructions for Origami. The practice of Kirigami (folding and cutting paper) is also represented and is occasionally visible as highly destructured forms. Contrasting the precision of the folding engine is a spray paint simulation that gives the image its color. Paint is applied with a wandering nozzle, sometimes overflowing past boundaries and dripping downwards. Inspired by the freeform nature of graffiti, the spray paint layers are chaotic and unrefined. Note: The spray paint simulation may take many seconds to fully render. After the render is complete, press any key to destroy the artwork.
,we=[],ke=[],ve=[],Le="NEW",Se={};window.setup=()=>{colorMode(HSL);let r=1;const e=new re;var n;tokenData.hash&&(r=1e17*e.random_dec()),randomSeed(r),noiseSeed(r),window.seedValue=r,pixelDensity(2),createCanvas(window.innerHeight*le,window.innerHeight),n=height/1200,M=n,window.CONFIG=Se=Hr(e);o=Se.palette,i=Se.colorMod,X="exclusive"===i?T(I[o]):I[o];var o,i;const a=B(Se.c1).cb;se=a.slices,ye=((r,e)=>{const n=(0,Or[r])(),o=Ar(n);return e?o:n})(Se.b9,Se.b8),ge=(r=>{let e;return"circle"===r?e=[$(me/2,he/2,me,128)]:"diamond"===r&&(e=[U(me/2,he/2,me,me)]),e})(Se.secondaryGeometry),Re(),Se.oneLastSkewTho&&se.splice(se.length-1,0,{a9:random()>.5?.5:-.5,b0:D(7,2),a6:random()>.5?-1:1,b1:0})},window.draw=()=>{"NEW"===Le?(background(255),Ce(),Pe(),"DEBUG"!==Se.fillStrategy&&background(z("c2").a4),Le="RENDERSHADING"):"RENDERSHADING"===Le?"DEBUG"===Se.fillStrategy?((r,e,n,o,i)=>{r.forEach(((r,e)=>{noStroke();const o=n.a4Polygons[e];stroke(...o.a4.l,1),stroke(0,0,20),fill(255,0,random(80,100)),r&&(beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),vertex(r[0].x,r[0].y),endShape())})),o.forEach((r=>{stroke(40),strokeWeight(q(.5)),r.length&&line(r[0].x,r[0].y,r[1].x,r[1].y)})),i()})(ye,0,xe,ce,(()=>Le="POSTPROCESSING")):"individual"===Se.fillStrategy&&(Se.renderSecondaryPolys?Qr(ye,ge,pe,xe,ce,(()=>Le="POSTPROCESSING")):Qr(ye,[],pe,xe,ce,(()=>Le="POSTPROCESSING"))):"POSTPROCESSING"===Le?Zr(ye,ce,xe,fe,(()=>Le="DONE")):"DONE"===Le?(noLoop(),ne=get()):"LOOPING"===Le&&(1===oe&&image(ne,0,0,width,height),ee.forEach((r=>r.tick())))},window.keyPressed=()=>{"DONE"!==Le&&"LOOPING"!==Le||be()};const be=()=>{Le="LOOPING",(()=>{oe=1===oe?2:1,image(ne,0,0,width,height),ee=[];for(let r=0;r<250;r++){const r=random(0,me),e=random(0,he),n=r*(width/me),o=e*(height/he);let i=get(n,o),a=Ir(i[0],i[1],i[2]);a=R(a,2);let t=a,s=createVector(n,o,2),l=0,h=createVector(cos(l),sin(l)),m=random(.15,.5),d=Yr(s,h,m,a,t,!0,2===oe);ee.push(d)}})(),loop()},Ce=()=>{const r=15,e={some:.93,alot:.87,none:1},n=random(2*-PI,2*PI);for(let o=0;o<2500;o++){const o=z("b5",random(-15,10));switch(o.a8&&random()<o.a8.c?o.d6=!0:random()>e[Se.d1Probability]&&(o.d1=!0,o.d1Type=P(["leaf",5,"dots",3,"evenLines",4,"spacedLines",5,"perspectiveLines",5,"perspectiveDots",5])),o.d1||(o.fillType=P([Se.internalShadeMode,50,"leaf",50])),Se.fillDirection){case"down":o.d9=PI/2+random(-.1,.1);break;case"uniform":o.d9=n;break;case"flippy":o.d9=PI/2*(random()>.5?1:-1)+random(-.1,.1);break;default:o.d9=random(2*PI)}xe.a4Polygons.push(o),xe.e0.push({...z("b5",random(-15,r)),type:P(["pop",1,"shade",7,"none",8])}),"random"===Se.backgroundLighting?xe.d8.push(z("c2",random(-7.5,7.5))):xe.d8.push(z("c2",0));const i=P(Cr);xe.b0s.push({color:z("c7",5),style:i.type,spacing:random(i.spacing[0],i.spacing[1]),sz:random(i.sz[0],i.sz[1])})}xe.c0=z("c0",0)},Pe=()=>{let r=ye,e=ge;const n=xe.a4Polygons.map((r=>!0===r.d1));for(let n=1;n<=se.length;n++){let{a9:o,b0:i,a6:a,b1:t}=se[n-1];r=Ie(r,i,o,a,t),random()>.25&&(e=Ie(e,i,o,a,t,.85)),ce.length>0?ce=Xe(ce,i,o,a,t):ce.push(i)}ye=r,ge=e,ge=ge.filter((r=>r.length>1)),"minimal"===Se.shouldPerformReversion&&Te(.15),"negminimal"===Se.shouldPerformReversion?Te(-.15):"single"===Se.shouldPerformReversion?Te():"double"===Se.shouldPerformReversion&&Fe();let o=Se.a7;"distant"!==o&&"adaptive"!==o&&"verydistant"!==o&&"tight"!==o&&"TEST"!==o&&"full"!==o&&"cover"!==o&&"neardistant"!==o&&"veryverydistant"!==o||(De(),Ne(Se.a7)),"center"!==Se.a7&&"onlycenter"!==Se.a7||De();Be()&&(De(),Ne(Se.a7)),ye=Oe(ye),ye=ye.filter((r=>r.length>2)),ce=ze(ce),pe=E(ce,ye,n),Ye(),Ee(),ue=ye,ye=_(ye,me,he,width,height),ge=_(ge,me,he,width,height),ce=_(ce,me,he,width,height),pe=pe.map((r=>_([r[0]],me,he,width,height))),ce=He(ce)},He=r=>r.filter((r=>!(isNaN(r[0].x)||isNaN(r[1].x)||isNaN(r[0].y)||isNaN(r[1].y)))),Ye=()=>{let r=[],e=[],n=[],o=[];ye=ye.sort(((r,e)=>d(e)-d(r))),xe.a4Polygons.forEach(((i,a)=>{if(a>ye.length-1)return!1;i.d6?(n.unshift(i),o.unshift(ye[a])):(r.push(i),e.push(ye[a]))})),ye=e.concat(o),xe.a4Polygons=r.concat(n)},Ee=()=>{const r=height/he;let e;we=ye.map((n=>(e=d(n),{area:e,a5:h(n),perimeter:c(n),scaled:{area:e*r,a5:h(n,r)}}))),ke=pe.map((n=>n.map((n=>(e=d(n),{area:e,a5:h(n),scaled:{area:e*r,a5:h(n,r)}}))))),ve=ge.map((n=>(e=d(n),{area:e,a5:h(n),scaled:{area:e*r,a5:h(n,r)}})))},Xe=(r,e,n,o,i)=>Ge(r,e,n,o,i),Ie=(r,n,o,i,t,s=1)=>{let l=[];return r.forEach((r=>{if(e(n[0].x,n[0].y,n[1].x,n[1].y,r)%2!=0){const e=b(r,n);l=l.concat(C(e))}else l.push(r)})),l=l.map((r=>{const e=a(r);let l=null;return(n[1].x-n[0].x)*(e.y-n[0].y)-(e.x-n[0].x)*(n[1].y-n[0].y)>i?(l=g(r,n,o).vertices,0!==t.distance&&t.a6>.5&&(l=x(l,n,t.distance))):(l=r,0!==t.distance&&t.a6<.5&&(l=x(l,n,t.distance))),((r,e,n)=>{const o=[];for(let i=0;i<r.length;i++)o.push({x:lerp(r[i].x,e[i].x,n),y:lerp(r[i].y,e[i].y,n)});return o})(r,l,s)})),l.length>0?l:r},Ge=(r,e,n,o,a)=>{let t=[];return r.forEach((r=>{if(i(e[0].x,e[0].y,e[1].x,e[1].y,r[0].x,r[0].y,r[1].x,r[1].y)){const n=((r,e)=>{const n=i(r[0].x,r[0].y,r[1].x,r[1].y,e[0].x,e[0].y,e[1].x,e[1].y),o={x:n[0],y:n[1]};return[[r[0],o],[r[1],o]]})(r,e);t=t.concat(n)}else t.push(r)})),t=t.map((r=>{const i=(r=>({x:lerp(r[0].x,r[1].x,.5),y:lerp(r[0].y,r[1].y,.5)}))(r);if((e[1].x-e[0].x)*(i.y-e[0].y)-(i.x-e[0].x)*(e[1].y-e[0].y)>o){let o=g(r,e,n).vertices;return 0!==a.distance&&a.a6>.5&&(o=x(o,e,a.distance)),o}{let n=r;return 0!==a.distance&&a.a6<.5&&(n=x(n,e,a.distance)),n}})),t.push(e),t.length>0?t:r},Oe=r=>r.map((r=>r.filter(((r,e,n)=>e===n.findIndex((e=>e.x===r.x&&e.y===r.y)))))),ze=r=>{const e=r;return e.forEach(((r,n)=>{let o=!1,i=!1,a=0;for(;a<e.length;){const t=e[a];a!==n&&((r[0].x===t[0].x&&r[0].y===t[0].y||r[0].x===t[1].x&&r[0].y===t[1].y)&&(o=!0),(r[1].x===t[0].x&&r[1].y===t[0].y||r[1].x===t[1].x&&r[1].y===t[1].y)&&(i=!0)),a++}o||(r[0].ending=!0),i||(r[1].ending=!0)})),e.forEach((r=>{let e=-1;r.forEach(((n,o)=>{if(n.ending){e=o;const n=r[e],i=0===e?r[r.length-1]:r[0],a=Math.atan2(i.y-n.y,i.x-n.x);0===e&&(n.x-=3*cos(a),n.y-=3*sin(a))}}))})),e},Ae=(r,e,n)=>r.filter((r=>{let o=!1,i=0;for(;i<r.length&&!o;){let a=r[i];a.x>-1&&a.x<e- -1&&a.y>-1&&a.y<n- -1&&(o=!0),i++}return o})),Re=()=>{const r=random()>.5?"w":"h";fe.x="w"===r?random()>.5?0:width:random(width),fe.y="h"===r?random()>.5?0:height:random(height)},Te=(r=1)=>{let e=me/2+random(-me/2,me/2),n=he/2+random(-he/2,he/2),o=random(1.5,4.5)*r;const i=r=>l(r,o,e,n);ye=ye.map(i),ge=ge.map(i),pe=pe.map((r=>r.map(i))),ce=ce.map(i)},Fe=()=>{const r=round(random(2,4));for(let e=0;e<r;e++){const r=random(-.2,1.2)*me,e=random(-.2,1.2)*he,n=random(1,3.5),o=o=>l(o,n,r,e);ye=ye.map(o),ge=ge.map(o),pe=pe.map((r=>r.map(o))),ce=ce.map(o)}},Ne=r=>{let e=1;const n=m(ye),o=random()>.4?random(.9,1.2):random(.7,.9);switch(r){case"distant":e=max(n.width,n.height)/max(me,he)*o+.9;break;case"neardistant":e=max(n.width,n.height)/min(me,he)+random(.02,.06);break;case"adaptive":e=n.width>n.height?n.width/me*o:max(n.width,n.height)/max(me,he)*o+.1;break;case"verydistant":e=max(n.width,n.height)/max(me,he)*o+1.5;break;case"veryverydistant":e=min(n.width,n.height)/min(me,he)*o+.8;break;case"tight":e=max(n.width,n.height)/max(me,he)*o+.2;break;case"full":e=min(n.width,n.height)/min(me,he)-.2;break;case"cover":e=min(n.width,n.height)/max(me,he);break;default:e=1}const i=r=>{var o,i,a,t;return o=r,i=e,a=n.centerX,t=n.centerY,r=o.map((r=>({x:a+(r.x-a)/i,y:t+(r.y-t)/i})))};let a=[{x:n.minX,y:n.minY},{x:n.b6,y:n.minY},{x:n.b6,y:n.b7},{x:n.minX,y:n.b7},{x:n.minX,y:n.minY}];ye=ye.map(i),ge=ge.map(i),pe=pe.map((r=>r.map(i))),ce=ce.map(i),ye=Ae(ye,me,he),a=[a].map(i)},De=()=>{let r=0,e=0;const n=m(ye);r=me/2-n.centerX,e=he/2-n.centerY;const o=n=>n=t(n,r,e);ye=ye.map(o),pe=pe.map((r=>r.map(o))),ce=ce.map(o)},Be=()=>{const r=m(ye);r.width,r.height,ye.reduce(((r,e)=>r+d(e)),0);return!1}})();
|"solo"===n)&&(d=!0,m=random(15,30)),!d||!h||t.d1)return!1;let c=0,y=0;const g=constrain(s.minX,5,me-5),p=me-5,u=constrain(s.minY,5,he-5),x=he-5;for(;c<m&&y<10*m;){const r=random(g,p),e=random(u,x);if(o([r,e],ue[a])){if("worked"===n){const r=1-(e-i.minY)/(i.b7-i.minY);if(random(1)<1.5*r){c++,y++;continue}}else{const r=1-(e-s.minY)/(s.b7-s.minY);if(random(1)<1.25*r){y++;continue}}const o=r*(width/me),a=e*(height/he);let t=get(o,a),l=Ir(t[0],t[1],t[2]),h=R(l,10),m=createVector(o,a,2),d=0,g=createVector(cos(d),sin(d)),p=random(.5,1);"worked"===n?p=random(.5,2.5):"solo"===n&&(p=random(.25,.5)),fill(0,50,50),"solo"!==n&&Xr(o,a,l),Yr(m,g,p,l,h),c++}y++}}))},Or={circleArray:()=>{const r=[],e=min(me,he)/round(random(4,5)),n=random(1.1,2),o=random()>.25;let i=0;for(let a=e;a<=he-e/10;a+=e){for(let t=e;t<=me-e/10;t+=e){let s=e/n;o&&i%2==0?r.push($(t+e/2,a,s)):r.push($(t,a,s))}i++}return r},doubleSquare:()=>{const r=me/2,e=me/2-r;return[j(e+5,e+5,r-5,he-2*e-10),j(r+e+5,e+5,r-10,he-2*e-10)]},threeCircles:()=>{const r=random()>.5?3:5,e=random(1.5,4);let n=[];const o=me,i=o*random(.05,.25);if(3===r){const r=o/e;n=[$(me/2,he/2-o/2-r/2+i,r),$(me/2,he/2,o),$(me/2,he/2+o/2+r/2-i,r)]}else if(5===r){const r=o/e,a=o/(2*e);n=[$(me/2,he/2-o/2-r-a/2+2*i,a),$(me/2,he/2-o/2-r/2+i,r),$(me/2,he/2,o),$(me/2,he/2+o/2+r/2-i,r),$(me/2,he/2+o/2+r+a/2-2*i,a)]}if(random()>.5)n=n.map((r=>s(r,random(-1,1),me/2,he/2)));else{let r=random(-1,1);n=n.map((e=>s(e,r,me/2,he/2)))}return n},diamond:()=>{const r=me/random(.5,.9);return[U(me/2,he/2,me-r,.85*me)]},geoPack:()=>zr(4),sixPack:()=>zr(6),megaPack:()=>zr(4,!0)},zr=(r,e=!1)=>{let n=random()>.85?-25:0;const o=random(50,100),i=(r,e,o)=>{if(!s.length)return!0;let i=0,a=!0;for(;i<s.length&&a;){const t=s[i];dist(t.x,t.y,r,e)-t.radius/2-o/2-n<0&&(a=!1),i++}return a},a=2*me;let t=a/random(1.5,10);e&&(t=a/1.1,r=4);const s=[];let l=me/100,h=0;for(;s.length<o&&h<1e3;){let r=random(2*PI),e=random(a/2),n=l;const o=me/2+sin(r)*e,m=he/2+cos(r)*e;for(;n<t&&i(o,m,n);)n+=l;n>l&&s.push({x:o,y:m,radius:n}),h++}return s.map((e=>$(e.x,e.y,e.radius,r)))};Or.flock=()=>{const r=[],e=me/6,n=he/6,o=random(2,3.5),i=me/o,a=random(2*PI),t=random(1,4);for(let o=0;o<me;o+=e)for(let l=0;l<he;l+=n){const n=i+random(me/t),h=o+n/2,m=l+n/2;let d=W(o+n/2,l+n/2,e-n/2);d=s(d,a,h,m),r.push(d)}return r},Or.cLevelExecutive=()=>{const r=[],e=round(random(5,8)),n=me/random(1,2),o=n/e-random(me/4/e);for(let i=1;i<e;i++){const a=n/e*i,t=a-o,s=random(2*PI);let l=s+random(2*PI-s);const h=J(me/2,he/2,a,t,s,l);r.push(h)}return r},Or.writer=()=>{const r=[];let e=100,n=-PI/random(6,9)*(random()>.5?1:-1),o=round(random(5,7)),i=random()>.8?random(-200,200):0,a=e/o/2;for(let t=0;t<o;t++){let l=me/2-a+e*t/1.5,h=he/2-a+i/o*t,m=e-abs((t-o/2)*e/o),d=4*m,c=random(2*PI),y=P([Q(l,h,m,d),5,j(l-m/2*.9,h-d/2,.9*m,d),5,J(l,h,2*m,.99*m,c,c+PI,48),2]);y=s(y,n+random(-.2,.2),l,h),r.push(y)}return r};const Ar=(r,e=10)=>r.map((r=>{const n=[];return r.forEach(((o,i)=>{if(n.push(o),i<r.length-1){const a=r[i+1],t=dist(o.x,o.y,a.x,a.y)/e;for(let r=0;r<t;r++){const e=r/t,i={x:lerp(o.x,a.x,e),y:lerp(o.y,a.y,e)};n.push(i)}}})),n}));const Rr=(r,e=1)=>{let n=q(random(6,12))*e,o=q(75);r=Ar([r],q(5))[0];for(let e=n;e>0;e-=.2)e===n-1&&noStroke(),beginShape(),r.forEach((r=>{let i=e/n,a=noise(r.x/o,r.y/o)*n*i,t=r.y+a;vertex(r.x,t)})),endShape()},Tr=(r,e)=>{const n=a(r);let o=y(width/2,height/2,n.x,n.y),i=q(random(3,12)),t=q(85),s="out"===e?1:-1;r=Ar([r],q(5))[0];for(let e=i;e>0;e-=.2){let n=cos(o)*e*s,a=sin(o)*e*s,l=e/i;e===i-1&&noStroke(),beginShape(),r.forEach((r=>{let e=noise(r.x/t,r.y/t)*i*l,o=r.x+n,s=r.y+a+e;vertex(o,s)})),endShape()}},Fr=(r,e,n,o,i)=>{e.forEach(((e,i)=>{if(o[i].d1)return;const a=A(n.p,5);fill(a),stroke(R(a,-10)),V(1.2),"down"===r?Rr(e):"center-in"===r?Tr(e,"in"):"center-out"===r?Tr(e,"out"):"minimal"===r?Rr(e,.65):"none"===r&&Rr(e,0)})),Gr(e,i,"solo")},Nr=.8,Dr=(r,e,n)=>{fill(R(n,5)),noStroke(),circle(r,e,random(4,7)*M*Nr)},Br=(r,e,n)=>{stroke(R(n,5)),noFill(),V(1);const o=random(3,7);rect(r-o/2,e-o/2,o*M*Nr)},Mr=(r,e,n)=>{stroke(R(n,5)),noFill(),V(1);const o=random(6,9)*Nr*M;beginShape(),vertex(r-o/2,e),vertex(r,e-o/2),vertex(r+o/2,e),vertex(r,e+o/2),vertex(r-o/2,e),endShape()},qr=(r,e,n)=>{fill(R(n,5)),noStroke(),V(1);const o=random(6,9)*Nr*M;beginShape(),vertex(r-o/2,e),vertex(r,e-o/2),vertex(r+o/2,e),vertex(r,e+o/2),vertex(r-o/2,e),endShape()},Vr=(r,e,n)=>{noFill(),V(1.5*Nr),circle(r,e,random(4,7)*M*Nr)},_r=(r,e,n)=>{const o=random(3,5)*M*Nr;stroke(R(n,5)),V(1.6),line(r-o/2,e-o/2,r+o/2,e+o/2),line(r+o/2,e-o/2,r-o/2,e+o/2)},$r=["solidCap",10,"xCap",10,"emptyCap",5,"squareCap",4,"filledDiamondCap",6,"diamondCap",3],jr=(r,e)=>{const n=[],o=[],i=q(4),a=q(1);let t=0;r.forEach((r=>{if(!r.length)return t++,!1;r.forEach((r=>{let s=r.x<a||r.x>width-a||r.y<a||r.y>height-a,l=0;for(;!s&&l<n.length;){const e=n[l];r.x-i<e.x&&r.x+i>e.x&&r.y-i<e.y&&r.y+i>e.y&&(s=!0),l++}s||(n.push(r),o.push(e[t]))})),t++})),n.forEach(((r,e)=>{const n=o[e].color;((r,e,n,o)=>{({solidCap:Dr,xCap:_r,emptyCap:Vr,squareCap:Br,filledDiamondCap:qr,diamondCap:Mr})[r](e,n,o)})(Wr(),r.x,r.y,n.a4)}))},Wr=()=>P($r);let Ur=-1,Jr=0;const Qr=(r,e,n,o,i,s)=>{const l=r.length,h=n.length;if(-1===Ur)n.forEach(((r,e)=>{noStroke();const n=o.d8[e];((r,e,n=!1)=>{r.forEach((r=>{e&&fill(e),beginShape(),r.forEach((r=>vertex(r.x,r.y))),endShape(),r.forEach(((r,e)=>{n&&(circle(r.x,r.y,10),fill(0),textSize(22),text(e,r.x,r.y))}))}))})(r,A(n.a4,0))}));else if(Ur<h){noStroke();const e=Ur,s=n[e],l=o.d8[e];if(s.length>0){const r=15;s.forEach(((n,o)=>{if(n.length>0){if("random"===Pr.backgroundLighting)fill(A(l.a4,6));else if("linear-from-top"===Pr.backgroundLighting){const e=a(n).y/height;fill(R(l.a4,r/2+e*-r))}else if("linear-from-bottom"===Pr.backgroundLighting){const e=a(n).y/height;fill(R(l.a4,-r/2+e*r))}stroke(l.stroke),V(.5),beginShape(),n.forEach((r=>vertex(r.x,r.y))),endShape();const i=ke[e][o];tr(n,l,random(2*PI),i,.1,1,.85)}}))}if(Ur===h-1){((r,e)=>{let n=width/30;fill(e.a4),drawingContext.filter=`blur(${n*pixelDensity()}px)`,r.forEach(((r,e)=>{beginShape(),(r=t(r,0,height/100)).forEach((r=>vertex(r.x,r.y))),endShape()})),drawingContext.filter="none"})(r.filter(((r,e)=>!o.a4Polygons[e].d1)),z("c3",0)),Fr(Pr.backfilled,r,z("c8",0),o.a4Polygons,o)}"bottom"===Pr.linesOnTop&&Ur===h-1&&Kr(i,o)}else if(Ur<h+1)((r,e,n)=>{let o=random()>.5?"overlay":"multiply";noStroke(),r.forEach(((r,i)=>{const a=e[i].type,t=n[i];if("pop"===a){drawingContext.globalCompositeOperation="source-over",drawingContext.globalAlpha=.9;const n=random(2*PI);nr(r,e[i],n),tr(r,e[i],n,t),drawingContext.globalAlpha=1}else"shade"===a&&(drawingContext.globalCompositeOperation=o,fill(0,0,0,random(.02,.05)),"overlay"===o&&fill(0,0,100,random(.02,.05)),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape())})),drawingContext.globalCompositeOperation="overlay",r.forEach(((r,e)=>{stroke(0),"overlay"===o&&stroke(0,0,100),V(.25),noFill(),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape()})),drawingContext.globalCompositeOperation="source-over"})(e,o.e0,ve);else if(Ur<l+h+1){let e=0;for(;e<te&&Ur-1<l+h;){noStroke();const n=Ur-h-1,i=r[n],t=o.a4Polygons[n],s=a(i),l=we[n];fill(A(t.a4,15)),stroke(t.stroke);let m=t.d9;if("centered"===Pr.fillDirection&&(m=atan2(height/2-s.y,width/2-s.x)),t.d1||("linear"===Pr.gradientType?nr(i,t,m):"radial"===Pr.gradientType&&or(i,t,m)),t.d1)switch(t.d1Type){case"leaf":gr(i,t,l);break;case"evenLines":sr(i,t,m,l);break;case"dots":ur(i,t,l);break;case"spacedLines":sr(i,t,m,l,.5);break;case"perspectiveLines":lr(i,t,l,m);break;case"perspectiveDots":hr(i,t,l,m)}else"leaf"===t.fillType?gr(i,t,l):"evenLines"===t.fillType?sr(i,t,m,l):"shattered"===t.fillType?yr(i,t,l):"perspective"===t.fillType&&lr(i,t,l,m);!t.d1&&l.area>2&&tr(i,t,m,l,1),er(i,t),Pr.visualVertices&&kr(i,t),e++,Ur++}Ur-=1}else"top"===Pr.linesOnTop&&Kr(i,o),s();Ur++},Kr=(r,e)=>{r.forEach(((r,n)=>{((r,e)=>{(0,{dashed:br,dotted:Sr}[e.style])(r,q(e.spacing),e.sz,e.color)})(r,e.b0s[n])})),jr(r,e.b0s)},Zr=(r,e,n,o,i)=>{if(0===Jr)((r,e,n)=>{r.forEach(((r,n)=>{const o=e.a4Polygons[n];if(o.d6){const e=we[n],i=ue[n];mr(r,25*M,o.a8.fill?o.a8.fill:o.a4.l),vr(i,e,o,.5,.5,.9),beginShape(),stroke(o.stroke),noFill(),r.forEach((r=>{vertex(r.x,r.y)})),vertex(r[0].x,r[0].y),endShape();const a=o.d9+PI/2;tr(r,o,a,e,.06)}})),n&&n()})(r,n);else if(1===Jr)Pr.hasBorder&&(Pr.hasCanvasSpray&&fr(o.x,o.y,n.c0.l,n.c0.h,n.c0.mode,.9),((r,e,n)=>{const o=width/de;let i=[j(0,0,width,o),j(0,0,o,height),j(width-o,0,o,height),j(0,height-o,width,o)];drawingContext.fillStyle="white",fill(0,0,255),noStroke(),i.forEach((r=>{beginShape(),r.forEach((r=>vertex(r.x,r.y))),endShape()})),r&&i.forEach((r=>{xr(r),Kr(e,n),drawingContext.restore()}))})("NONE"!==Pr.linesOnTop,e,n));else if(2===Jr)Pr.hasCanvasSpray&&fr(o.x,o.y,n.c0.l,n.c0.h,n.c0.mode,.1);else if(3===Jr)"none"!==Pr.dripAmount&&Gr(r,n,Pr.dripAmount,Pr.a7);else if(4===Jr){Pr.b8;((r,e,n)=>{r.forEach(((r,n)=>{const o=e.a4Polygons[n];if(!o.d1){const r=we[n],e=ue[n];vr(e,r,o,.0075,1,1)}}))})(r,n)}else i();Jr++};const re=class{constructor(r){this.useA=!1;let e=function(r){let e=parseInt(r.substr(0,8),16),n=parseInt(r.substr(8,8),16),o=parseInt(r.substr(16,8),16),i=parseInt(r.substr(24,8),16);return function(){e|=0,n|=0,o|=0,i|=0;let r=(e+n|0)+i|0;return i=i+1|0,e=n^n>>>9,n=o+(o<<3)|0,o=o<<21|o>>>11,o=o+r|0,(r>>>0)/4294967296}};r?(this.prngA=new e(r.substr(2,32)),this.prngB=new e(r.substr(34,32))):(this.prngA=new e(tokenData.hash.substr(2,32)),this.prngB=new e(tokenData.hash.substr(34,32)));for(let r=0;r<1e6;r+=2)this.prngA(),this.prngB()}random_dec(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}random_num(r,e){return r+(e-r)*this.random_dec()}random_int(r,e){return Math.floor(this.random_num(r,e+1))}random_bool(r){return this.random_dec()<r}random_choice(r){return r[this.random_int(0,r.length-1)]}b2(r){const e=this.random_dec();let n=!1,o=1;const i=r.reduce(((r,e,n)=>n%2==1?r+e:r),0),a=i*e;let t=0;for(;!n&&o<r.length;)a-r[o]<t&&(n=r[o-1]),t+=r[o],o+=2;return n}};let ee=[],ne=null,oe=1;let ie="normal",ae="normal"===ie?20:1,te=1===ae?100:2;let se=[];const le=.75,he=1200,me=he*le,de=24;let ce=[],ye=[],ge=[],pe=[],ue=[],xe={b0s:[],a4Polygons:[],e0:[],d8:[],shadow:[]},fe={x:0,y:0}
r.forEach(((r,e)=>{vertex(r.x,r.y)})),endShape()})),drawingContext.restore()},gr=(r,e,n)=>{xr(r);let o=pr(r);const i=round(random(0,2));for(let r=0;r<i;r++)o=o.reduce(((r,e)=>r.concat(pr(e))),[]);o.forEach((r=>{er(r,e),sr(r,e,random(2*PI),n)})),drawingContext.restore()},pr=r=>{let e=0;r.forEach(((n,o)=>{let i=o<r.length-1?r[o+1]:r[0];e+=dist(n.x,i.x,n.y,i.y)}));const n=random(e/2),o=e/2+n;let i,a,t=[],s=[],l=0;return r.forEach(((e,h)=>{let m=h<r.length-1?r[h+1]:r[0];const d=dist(e.x,m.x,e.y,m.y);if(l+d>n&&l<n){const r=(n-l)/d;i={x:lerp(e.x,m.x,r),y:lerp(e.y,m.y,r)},t.push(e),s.push(i)}else if(l+d>o&&l<o){const r=(o-l)/d;a={x:lerp(e.x,m.x,r),y:lerp(e.y,m.y,r)},t.push(i),t.push(a),s.push(e)}else l<n||l>o?t.push(e):s.push(e);l+=d})),s.push(a),[t,s]},ur=(r,e,n,o)=>{xr(r);const i=P(["dots",10,"lines",10]),{a5:a,scaled:t}=n,s=random(4,8);let l=o&&random()>.5;if("lines"!==i||o){if("dots"===i){noStroke();for(let r=a.minX;r<a.b6;r+=s)for(let n=a.minY;n<a.b7;n+=s){let i=n;r%2==0&&(i+=s/2),fill(A(e.a4.h,20));let h=r/a.b6*t.a5.b6,m=i/a.b7*t.a5.b7,d=q(1.5);o&&(h+=random(-s,s)/4,m+=random(-s,s)/4,l&&(d=q(randomGaussian(1,1)))),circle(h,m,d)}}}else{stroke(R(e.a4.h,20)),V(.75);const r=random(2*PI),n=q(random(2,5));for(let o=a.minX;o<a.b6;o+=s)for(let i=a.minY;i<a.b7;i+=s){let l=i;o%2==0&&(l+=s/2),stroke(A(e.a4.h,20));const h=o/a.b6*t.a5.b6,m=l/a.b7*t.a5.b7;line(h-sin(r)*n/2,m-cos(r)*n/2,h+sin(r)*n/2,m+cos(r)*n/2)}}drawingContext.restore()},xr=r=>{r=rr(r,1),drawingContext.save(),drawingContext.beginPath(),r.forEach((r=>{drawingContext.lineTo(r.x,r.y)})),drawingContext.closePath(),drawingContext.clip()},fr=(r,e,n,o,i,a)=>{n=color(n),o=color(o),drawingContext.globalCompositeOperation=i;const t=width/.8;for(let i=0;i<1200*a;i++){let i=random(2*PI);const a=randomGaussian()>.5?n:o;a.setAlpha(random(.5,1)),fill(a),noStroke();const s=randomGaussian(0,t/2);let l=r+sin(i)*s,h=e+cos(i)*s;const m=q(abs(randomGaussian(.3,1)));if(wr(l,h,m),random()>.95){const n=random(3,10);for(let o=0;o<n;o++){let n=r+sin(i)*(s+m/2*o),a=e+cos(i)*(s+m/2*o);wr(n,a,m)}}}drawingContext.globalCompositeOperation="none"},wr=(r,e,n)=>{beginShape();for(let o=0;o<=18;o++){const i=2*PI/18*o,a=noise(o/5,e/M)*n,t=noise(r/M,o/5)*n;let s=r+sin(i)*n,l=e+cos(i)*n;s+=a,l+=t,vertex(s,l)}endShape()},kr=(r,e)=>{const n=P(["dot",20,"bigDot",1,"stroke",5]),o=R(e.a4.h,random(18,35));"dot"===n?(fill(o),noStroke(),r.forEach((r=>{circle(r.x,r.y,q(1.5))}))):"bigDot"===n?(fill(o),noStroke(),r.forEach((r=>{circle(r.x,r.y,q(2))}))):"stroke"===n&&(noFill(),stroke(o),V(1),r.forEach((r=>{circle(r.x,r.y,q(1.5))})))},vr=(r,e,n,o,i=1,a=1)=>{const t=e.area,s=e.perimeter,l=[n.a4.l,n.a4.h,n.a0,n.a1];let h=t/200;if(h<1)return!1;h>30&&(h=30),h*=a;let m,d,c=.1/o;c*=30/h,h=q(h),noStroke();let g=r[r.length-1],p=r[0],u=r[1],x=[{x:q(p.x),y:q(p.y)},{x:q(u.x),y:q(u.y)}],f=1,w=dist(p.x,p.y,u.x,u.y);for(let e=0;e<s;e+=1*c)round(e)%5!=0&&0!==e||fill(l[round(random(l.length-1))]),e>w&&(f++,p=u,u=r[f],g=r[f-2],x=[{x:q(p.x),y:q(p.y)},{x:q(u.x),y:q(u.y)}],w+=dist(p.x,p.y,u.x,u.y)),random()>1/8?dr(x,h,i,!0):(m=y(p.x,p.y,g.x,g.y)-PI/2,d=y(p.x,p.y,u.x,u.y)+PI/2,cr({x:q(p.x),y:q(p.y)},m,d,h,i,!0))},Lr=(r,e,n)=>{drawingContext.beginPath(),drawingContext.arc(r,e,n/2,0,2*PI,!1),drawingContext.fill(),drawingContext.closePath()},Sr=(r,e,n,o)=>{noStroke();const i=color(A(o.a4,15)),a=color(A(o.a4,15));r.forEach(((o,t)=>{if(t<r.length-1){const s=r[t+1],l=dist(o.x,o.y,s.x,s.y),h=floor(l/e);for(let r=0;r<h;r++){const e=lerp(o.x,s.x,r/h),t=lerp(o.y,s.y,r/h);fill(lerpColor(i,a,r/h)),circle(e,t,q(.75*n))}}}))},br=(r,e,n,o)=>{V(1.125);const i=color(A(o.a4,15)),a=color(A(o.a4,15));r.forEach(((n,o)=>{if(o<r.length-1){const t=r[o+1],s=dist(n.x,n.y,t.x,t.y),l=floor(s/e);for(let r=0;r<l;r++){const e=lerp(n.x,t.x,r/l),o=lerp(n.y,t.y,r/l),s=lerp(n.x,t.x,(r+.5)/l),h=lerp(n.y,t.y,(r+.5)/l);stroke(lerpColor(i,a,r/l)),line(e,o,s,h)}}}))},Cr=[{type:"dotted",spacing:[3,12],sz:[2,3]},10,{type:"dashed",spacing:[5,10],sz:[2,2.5]},10];let Pr={};const Hr=r=>{const e=r.b2([{b9:["writer",1],c1:["d2",10,"d3",10,"foldOver",10],shouldPerformReversion:["single",5,"none",10],a7:["tight",5],b8:[!1,5]},200,{b9:["geoPack",3,"megaPack",3,"sixPack",1],c1:["d5",10,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["distant",5],b8:[!0,5,!1,3]},500,{b9:["threeCircles",1],c1:["d5",10,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["veryverydistant",5],b8:[!0,5,!1,3]},300,{b9:["geoPack",6,"sixPack",1],c1:["d5",10,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["tight",5,"cover",25],b8:[!0,5]},1500,{b9:["circleArray",1],c1:["d5",10,"d2",25,"smallSmallSheers",10,"d4",10],shouldPerformReversion:["none",10],a7:["tight",1,"cover",1],b8:[!1,5]},600,{b9:["threeCircles",1],c1:["d4",10,"d2",35,"smallSmallSheers",10,"radial",10],shouldPerformReversion:["double",3],a7:["veryverydistant",5],b8:[!1,5]},1e3,{b9:["geoPack",5,"sixPack",1],c1:["d4",10,"d5",10,"d3",15,"smallSmallSheers",10,"radial",10,"foldOver",10],shouldPerformReversion:["minimal",3,"none",12,"negminimal",3],a7:["onlycenter",5],b8:[!1,5]},500,{b9:["doubleSquare",1],c1:["d2",5],shouldPerformReversion:["none",10],a7:["adaptive",5,"onlycenter",5],b8:[!1,5]},1e3,{b9:["doubleSquare",1],c1:["d3",5],shouldPerformReversion:["minimal",3,"negminimal",2],a7:["distant",2,"tight",15],b8:[!1,5,!0,5]},600,{b9:["doubleSquare",1],c1:["d3",5],shouldPerformReversion:["single",1],a7:["tight",8,"distant",1],b8:[!1,5,!0,5]},1100,{b9:["flock",1],c1:["smallSmallSheers",15,"d4",5],shouldPerformReversion:["none",10],a7:["full",5],b8:[!1,5]},100,{b9:["flock",1],c1:["smallSmallSheers",15,"d4",5],shouldPerformReversion:["minimal",10],a7:["full",5],b8:[!0,5]},100]);let n=r.b2(["gum",1e3,"cloud",1e3,"montana",1e3,"briss",1200,"skull",1200,"zest",1e3,"dove",1e3,"cloak",1e3,"screentime",900,"feint",1100,"amused",1300,"exodus",1300,"method",1e3]),o=r.b2(["none",7,"exclusive",1]);const i={};return i.palette=n,i.colorMod=o,i.b9=r.b2(e.b9),i.c1=r.b2(e.c1),i.shouldPerformReversion=r.b2(e.shouldPerformReversion),i.a7=r.b2(e.a7),i.b8=r.b2(e.b8),i.fillDirection=r.b2(["random",5,"centered",5,"down",3,"uniform",5,"flippy",6]),i.gradientType=r.b2(["linear",5,"radial",5]),i.internalShadeMode=r.b2(["evenLines",5,"shattered",5,"perspective",5]),i.fillStrategy="individual",i.linesOnTop=r.b2(["top",20,"bottom",30,"NONE",1]),i.dripAmount=r.b2(["none",10,"alittle",50,"some",100,"alot",100,"worked",125]),i.secondaryGeometry=r.b2(["circle",50,"diamond",20]),i.d1Probability=r.b2(["none",5,"some",20,"alot",10]),i.backgroundLighting=r.b2(["linear-from-top",10,"linear-from-bottom",10,"random",5]),i.hasCanvasSpray=r.b2([!0,50,!1,1]),i.hasBorder=r.b2([!0,20,!1,3]),i.visualVertices=!i.b8&&r.b2([!0,5,!1,6]),i.hasSpillover="NONE",i.backfilled=r.b2(["down",6,"center-out",4,"center-in",4,"minimal",15,"none",5]),i.renderSecondaryPolys="none"!==i.shouldPerformReversion,i.oneLastSkewTho=r.b2([!0,10,!1,15]),"flock"===i.b9&&(i.backfilled="none"),("screentime"===i.palette||"wavelet"===i.palette||"exodus"===i.palette||i.shouldPerformReversion)&&(i.colorMod="none"),"zest"===i.palette&&"exclusive"===i.colorMod&&(i.backfilled="none"),Pr=i,i};const Yr=(r,e,n,o,i,a,t)=>new Er(r,e,n,o,i,a,t);class Er{constructor(r,e,n,o,i,a,t=!0){for(this.loc=r,this.dir=e,this.speed=n,this.life={curr:0,max:random(240,360),fadeTime:random(30,60),deadTime:random(15,45),alive:a},this.color1=color(o),this.color2=color(i),this.size=abs(randomGaussian(.8,1.2)),this.expandStart=random(.7,.9),this.minLineSize=abs(constrain(randomGaussian(.5,.25),.4,.7)),this.lifespan=a?30:1+abs(randomGaussian(0,3)),this.positions=[{x:r.x,y:r.y,size:this.size}],this.shouldSplatter=t;this.lifespan>0;)this.lifespan--,this.move();a||this.draw()}restart(){this.size=abs(randomGaussian(.9,1.45)),this.lifespan=random(10,50),this.life={curr:0,max:this.lifespan*(1-this.speed+1),fadeTime:random(60,90),deadTime:random(15,45),alive:!0},this.loc=createVector(random(0,width),random(0,height)),this.positions=[{x:this.loc.x,y:this.loc.y,size:this.size}];let r=get(this.loc.x,this.loc.y);for(this.color2=this.color1=color(Ir(r[0],r[1],r[2])),this.shouldSplatter&&Xr(this.loc.x,this.loc.y,Ir(r[0],r[1],r[2]),8,50);this.lifespan>0;)this.lifespan--,this.move()}move(){let r=20*noise(this.loc.x/100/M,this.loc.y/100/M,0)*TWO_PI;this.dir.x=cos(r)*M*.75,this.dir.y=10*M;var e=this.dir.copy();e.mult(1*this.speed),this.loc.add(e),this.positions.push({x:this.loc.x,y:this.loc.y,size:this.size})}tick(){this.life.curr++,this.life.curr<this.life.max+this.life.fadeTime+this.life.deadTime?this.draw():this.restart()}draw(){stroke(this.color1);const r=this.positions.length;let e=1;this.life.alive&&this.life.curr>this.life.max+this.life.deadTime&&(e=1-(this.life.curr-this.life.max-this.life.deadTime)/this.life.fadeTime),this.positions.every(((n,o)=>{if(this.life.alive&&o>this.positions.length*this.life.curr/this.life.max)return!1;if(o<r-1){const i=this.positions[o+1];let a=n.size*this.minLineSize;if(o/r>this.expandStart){const e=(o/r-this.expandStart)/(1-this.expandStart);a=n.size*this.minLineSize+n.size*(1-this.minLineSize)*e}V(a);let t=lerpColor(this.color1,this.color2,o/r);1!==e&&t.setAlpha(e),stroke(t),line(n.x,n.y,i.x,i.y)}return!0}))}}const Xr=(r,e,n,o=10,i=35)=>{let a=random(10,30),t=q(random(o,i));for(let o=0;o<4*a;o++){const o=random(2*PI),i=randomGaussian(0,t/2);let a=r+sin(o)*i,h=e+cos(o)*i;const m=q(random(.2,1));if(fill(A(n,10)),noStroke(),wr(a,h,m),random()>.95){const r=0;var s=createVector(cos(r),sin(r)),l=abs(randomGaussian(0,.15));let e=get(a,h),o=Ir(e[0],e[1],e[2]),i=n;const t=createVector(a,h,2);Yr(t,s,l,o,i)}}};function Ir(r,e,n){r/=255,e/=255,n/=255;let o=Math.min(r,e,n),i=Math.max(r,e,n),a=i-o,t=0,s=0,l=0;return t=0==a?0:i==r?(e-n)/a%6:i==e?(n-r)/a+2:(r-e)/a+4,t=Math.round(60*t),t<0&&(t+=360),l=(i+o)/2,s=0==a?0:a/(1-Math.abs(2*l-1)),s=+(100*s).toFixed(1),l=+(100*l).toFixed(1),[t,s,l]}const Gr=(r,e,n)=>{const i=m(ue);r.forEach(((r,a)=>{const t=e.a4Polygons[a];let{a5:s}=we[a];const l=he/100,h=s.width>l&&s.height>l;let m=0,d=!1;if("alittle"===n&&t.d6&&random()>.5?(d=!0,m=random(2,8)):"some"===n&&(t.d6&&random()>.2||random()>.8)?(d=!0,m=random(6,12)):"alot"===n&&random()>.4?(d=!0,m=random(8,20)):("worked"===n|
,b1:N(.1,2,round(random(1)))});return e.push({a9:random(-.7,r),b0:D(1.5,2),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))}),{slices:e}},F.d2=()=>{let r=.4;const e=[];e.push({a9:random(-.08,.08),b0:D(7,2),a6:random()>.5?-1:1,b1:0});for(let n=1;n<=20;n++)e.push({a9:random(-.4,r),b0:D(1.5,.5),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))});return e.push({a9:random(-.4,r),b0:D(7,2),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))}),{slices:e}},F.foldOver=()=>{let r=.4;const e=[];for(let n=1;n<=10;n++)e.push({a9:random(-.4,r),b0:D(8,.5),a6:random()>.5?-1:1,b1:N(.03,2,round(random(1)))});return e.push({a9:PI,b0:D(6,3),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))}),e.push({a9:random(-.4,r),b0:D(100,3),a6:random()>.5?-1:1,b1:N(.25,2,round(random(1)))}),{slices:e}},F.d3=()=>{let r=.4;const e=[];e.push({a9:random(-.08,.08),b0:D(7,2),a6:random()>.5?-1:1,b1:0});for(let n=1;n<=20;n++){const o=2*PI/20*n;e.push({a9:random(-.4,r),b0:D(1.5,.5,o),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))})}return e.push({a9:random(-.08,.08),b0:D(7,2),a6:random()>.5?-1:1,b1:N(.1,2,round(random(1)))}),{slices:e}},F.smallSmallSheers=()=>{const r=random(15,20),e=[];for(let n=1;n<=r;n++)e.push({a9:random(-.1,.1),b0:D(2,2),a6:random()>.5?-1:1,b1:N(.01,1,round(random(1)))});return e.push({a9:.1,b0:D(2,2),a6:random()>.5?-1:1,b1:N(.2,1,round(random(1)))}),{slices:e}},F.radial=()=>{const r=random(12,17),e=3*me;let n,o,i=[];const a=me/2+random(-me/3,me/3),t=he/2+random(-he/3,he/3),l=me/random(2,5);for(let h=0;h<r;h++){const m=2*PI/r*h;n={x:a-e,y:t+l+random(-1,1)*me/20},o={x:a+e,y:t+l+random(-1,1)*me/20};const d=random(.5),c=s([n,o],m,a,t);i.push({a9:random()>.5?-d:d,b0:c,a6:random()>.5?-1:1,b1:N(.1,.1,random())})}return i.push({a9:.1,b0:D(.1,2),a6:random()>.5?-1:1,b1:N(.2,1,round(random(1)))}),i=Y(i),{slices:i}},F.topDown=()=>{const r=random(12,17);let e=[],n=random()>.5?1:0;for(let o=0;o<r;o++){let i=random(-me/20,me/20)*n,a=random(-me/20,me/20)*n;const t=me/r*o;let s={x:t+i,y:-he},l={x:t+a,y:2*he};const h=random(.2),m=[s,l];e.push({a9:random()>.5?-h:h,b0:m,a6:random()>.5?-1:1,b1:N(.01,.5,random())})}return random()>.5&&(e=e.reverse()),{slices:e}};const B=r=>{const e=F[r];return{cb:e(),name:e.name}};let M=3;const q=r=>r*M,V=r=>strokeWeight(q(r)),_=(r,e,n,o,i)=>{const a=o/e,t=i/n;return r.map((r=>r.map((r=>({x:r.x*a,y:r.y*t})))))},$=(r,e,n,o=48)=>{const i=[];for(let a=0;a<=o;a++){const t=r+sin(2*PI/o*a)*n/2,s=e+cos(2*PI/o*a)*n/2;i.push({x:t,y:s})}return i},j=(r,e,n,o)=>{const i=[];return i.push({x:r,y:e}),i.push({x:r+n,y:e}),i.push({x:r+n,y:e+o}),i.push({x:r,y:e+o}),i.push({x:r,y:e}),i.reverse()},W=(r,e,n)=>{const o=[];return o.push({x:r,y:e-n/2}),o.push({x:r-n/2,y:e+n/2}),o.push({x:r+n/2,y:e+n/2}),o.push({x:r,y:e-n/2}),o},U=(r,e,n,o)=>{let i=[];return i.push({x:r-n/2,y:e}),i.push({x:r,y:e-o/2}),i.push({x:+n,y:e}),i.push({x:r,y:e+o/2}),i},J=(r,e,n,o,i,a,t=48)=>{let s=[];for(let o=0;o<=t;o++){const l=r+sin(i+a/t*o)*n,h=e+cos(i+a/t*o)*n;s.push({x:l,y:h})}for(let n=t;n>=0;n--){const l=r+sin(i+a/t*n)*o,h=e+cos(i+a/t*n)*o;s.push({x:l,y:h})}return s.push(s[0]),s},Q=(r,e,n,o)=>{const i=[];for(let a=0;a<48;a++){let t=r+n/2*sin(2*PI/48*a),s=e+o/2*cos(2*PI/48*a);i.push({x:t,y:s})}return i},K=(r,e,n)=>{let o=e.x,i=e.y,a=n.x-o,t=n.y-i;if(0!==t||0!==a){const e=((r.x-o)*a+(r.y-i)*t)/(a*a+t*t);e>1?(o=n.x,i=n.y):e>0&&(o+=a*e,i+=t*e)}return a=r.x-o,t=r.y-i,a*a+t*t},Z=(r,e,n,o,i)=>{let a,t=o;for(let o=e+1;o<n;o++){let i=K(r[o],r[e],r[n]);i>t&&(a=o,t=i)}t>o&&(a-e>1&&Z(r,e,a,o,i),i.push(r[a]),n-a>1&&Z(r,a,n,o,i))},rr=(r,e)=>r.length<=2?r:((r,e)=>{const n=r.length-1,o=[r[0]];return Z(r,0,n,e,o),o.push(r[n]),o})(r,e*e),er=(r,e)=>{V(1),stroke(e.stroke),noFill(),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape()},nr=(r,e,n)=>{const o=ir(r,n);if(!o)return!1;dist(o.startX,o.startY,o.endX,o.endY);const i=drawingContext.createLinearGradient(o.startX,o.startY,o.endX,o.endY),a=Object.keys(e.a4);a.reverse().forEach(((r,n)=>{i.addColorStop((n+1)/a.length,H(e.a4[r]))})),drawingContext.fillStyle=i,noStroke(),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape()},or=(r,e,n)=>{n+=PI;const o=ir(r,n),i=h(r);if(!o)return!1;let a=dist(o.startX,o.startY,o.endX,o.endY),t=max(i.width,i.height);a<t/2&&(a=t/2);const s=drawingContext.createRadialGradient(o.startX,o.startY,0,o.startX,o.startY,a),l=Object.keys(e.a4);l.forEach(((r,n)=>{s.addColorStop((n+1)/l.length,H(e.a4[r]))})),drawingContext.fillStyle=s,noStroke(),beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape()},ir=(r,n)=>{const o=a(r),i=q(2e3),t=[[o.x-cos(n)*i,o.y-sin(n)*i],[o.x+cos(n)*i,o.y+sin(n)*i]],s=h(r),l=function(r,n){if(!r.length)return{true:[],false:[]};let o={true:[[]],false:[[]]},i=e(...r[0],r[0][0]+Math.E,r[0][1]+PI,n,!0).length%2!=0,a=!1;for(let t=0;t<r.length;t++){let s=r[t],l=r[t+1];if(o[i][o[i].length-1].push(s),!l)break;let h=e(...s,...l,n,!1);!a&&h&&(a=!0);for(let r=0;r<h.length;r++)o[i][o[i].length-1].push(h[r].xy),i=!i,o[i].push([h[r].xy])}return o.true=o.true.filter((r=>r.length)),o.false=o.false.filter((r=>r.length)),a?o.true:[]}(t,[{x:s.minX,y:s.minY},{x:s.b6,y:s.minY},{x:s.b6,y:s.b7},{x:s.minX,y:s.b7}]);return 0!==l.length&&{center:o,startX:l[0][0][0],startY:l[0][0][1],endX:l[0][1][0],endY:l[0][1][1]}},ar=(r,e,n,o,i,a)=>{let t=n-PI/2;const s=random(),l=abs(randomGaussian(0,e)),h=o[0]+cos(n)*-i*s,m=o[1]+sin(n)*-i*s,d=h+cos(t)*(a*l),c=m+sin(t)*(a*l);Lr(d,c,q(r))},tr=(r,o,i,a,t,l=1,m=1)=>{const d=.2*l;i+=1.5*PI;const c=a.area/50*ae*t,{startX:y,endX:g,startY:p}=((r,o,i)=>{const{scaled:a}=i,t=1e3/h(r).width,l=r.map((r=>({x:r.x*t,y:r.y*t}))),m=h(l);let d=dist(m.minX,m.minY,m.b6,m.b7)+10+100,c=!1,y=!1,g=!1,p=!1;for(let r=0;r<d;r+=5){let n=s([{x:m.centerX-d/2,y:m.centerY-d/2+r},{x:m.centerX+d/2,y:m.centerY-d/2+r}],o,m.centerX,m.centerY),i=s([{x:m.centerX-d/2,y:m.centerY-d/2+r},{x:m.centerX+d/2,y:m.centerY-d/2+r}],o+PI/2,m.centerX,m.centerY),a=e(n[0].x,n[0].y,n[1].x,n[1].y,l),t=e(i[0].x,i[0].y,i[1].x,i[1].y,l);a.length>0&&!c?c=r:c&&!y&&0===a.length&&(y=r),t.length>0&&!g?g=r:g&&!p&&0===t.length&&(p=r)}g-=5,p+=5,c-=5,y+=5;let u=s([{x:m.centerX-d/2,y:m.centerY-d/2+c},{x:m.centerX+d/2,y:m.centerY-d/2+c}],o,m.centerX,m.centerY),x=s([{x:m.centerX-d/2,y:m.centerY-d/2+y},{x:m.centerX+d/2,y:m.centerY-d/2+y}],o,m.centerX,m.centerY),f=s([{x:m.centerX-d/2,y:m.centerY-d/2+g},{x:m.centerX+d/2,y:m.centerY-d/2+g}],o+PI/2,m.centerX,m.centerY),w=s([{x:m.centerX-d/2,y:m.centerY-d/2+p},{x:m.centerX+d/2,y:m.centerY-d/2+p}],o+PI/2,m.centerX,m.centerY),k=n(f[0].x,f[0].y,f[1].x,f[1].y,u[0].x,u[0].y,u[1].x,u[1].y),v=n(w[0].x,w[0].y,w[1].x,w[1].y,u[0].x,u[0].y,u[1].x,u[1].y),L=n(x[0].x,x[0].y,x[1].x,x[1].y,f[0].x,f[0].y,f[1].x,f[1].y),S=n(x[0].x,x[0].y,x[1].x,x[1].y,w[0].x,w[0].y,w[1].x,w[1].y);return!!(k&&v&&L&&S)&&{startX:k.xy.map((r=>r/t)),endX:v.xy.map((r=>r/t)),startY:L.xy.map((r=>r/t)),endY:S.xy.map((r=>r/t))}})(r,i,a);if(!y||y.length,!y||!y.length)return!1;xr(r),noStroke(),fill(o.a1);const u=dist(y[0],y[1],g[0],g[1]),x=dist(y[0],y[1],p[0],p[1]);for(let r=0;r<c;r++){r%150!=0&&0!==r||fill(A(o.a1,9));let e=random()>.999?random(2,3.25):abs(randomGaussian(.2,.75));ar(e*m,d,i,p,u,x)}for(let r=0;r<c;r++){r%150!=0&&0!==r||fill(A(o.a0,15));let e=random()>.999?random(2,3.25):abs(randomGaussian(.2,.75));ar(e*m,d,i+PI,y,-u,x)}for(let r=0;r<c/10;r++)fill(R(o.a1,random(-5,-10))),ar(random(1,2)*m,d/2.5,i,p,u,x);for(let r=0;r<c/25;r++)fill(R(o.a0,random(5,15))),ar(random(1,2.5)*m,d/2,i+PI,y,-u,x);drawingContext.restore()},sr=(r,e,n,o,i=1)=>{const{a5:a,scaled:t}=o,l=dist(t.a5.minX,t.a5.minY,t.a5.b6,t.a5.b7),h=max(a.b6-a.minX,a.b7-a.minY)/random(3,10)*i;xr(r);const m=color(...e.a4.h),d=color(...e.a4.l);for(let r=0;r<h;r++){let e=t.a5.centerX-l/2+l/h*r,o=t.a5.centerY-l/2,i=e,a=o+l;const c=n+random(-.02,.02),y=s([{x:e,y:o},{x:i,y:a}],c,t.a5.centerX,t.a5.centerY);let g=lerpColor(m,d,constrain(0,1,r/h+randomGaussian(0,.1)));g=A([hue(g),saturation(g),lightness(g)],5),random()>.95&&(g=R([hue(g),saturation(g),lightness(g)],random(10,20))),stroke(g),V(random(.2,1.5)),line(y[0].x,y[0].y,y[1].x,y[1].y)}drawingContext.restore()},lr=(r,e,n,o)=>{const{minX:i,b6:a,minY:t,b7:l,centerX:h,centerY:m}=n.a5;let d=dist(i,t,a,l)/2,c=h-d,y=m-d;xr(r);let g=1,p=random(1.025,1.1);const u=color(...e.a4.h),x=color(...e.a4.l);for(;c<h+d;){c+=g,g*=p;const r=o+random(-.02,.02),e=s([{x:q(c),y:q(y)},{x:q(c),y:q(y)+q(2*d)}],r,q(h),q(m));let n=lerpColor(u,x,constrain(0,1,(c-h)/d+randomGaussian(0,.1)));n=A([hue(n),saturation(n),lightness(n)],5),random()>.95&&(n=R([hue(n),saturation(n),lightness(n)],random(10,20))),stroke(n),V(random(.2,1.5)),line(e[0].x,e[0].y,e[1].x,e[1].y)}drawingContext.restore()},hr=(r,e,n,o)=>{const{minX:i,b6:a,minY:t,b7:l,centerX:h,centerY:m}=n.a5;let d=dist(i,t,a,l)/2,c=h-d,y=m-d;xr(r);let g=.4;const p=color(...e.a4.h),u=color(...e.a4.l);noStroke();let x=q(random(1.45,2.1));for(;c<h+d;){c+=g,g*=1.05;const r=o,e=s([{x:q(c),y:q(y)},{x:q(c),y:q(y)+q(2*d)}],r,q(h),q(m));lerpColor(p,u,constrain(0,1,(c-h)/d+randomGaussian(0,.1)));let n=dist(e[0].x,e[0].y,e[1].x,e[1].y);for(let r=0;r<n;r+=g){const o=lerp(e[0].x,e[1].x,r/n),i=lerp(e[0].y,e[1].y,r/n);Lr(o,i,x)}0}drawingContext.restore()},mr=(r,e,n)=>{fill(n[0],n[1],n[2],.9),drawingContext.filter=`blur(${e*pixelDensity()}px)`,beginShape(),r.forEach((r=>{vertex(r.x,r.y)})),endShape(),drawingContext.filter="none"},dr=(r,e,n,o)=>{let i,a=Math.atan2(r[1].y-r[0].y,r[1].x-r[0].x)+PI/2;const t=random(),s=abs(randomGaussian(0,1))*e,l=a+random(-PI/10,PI/10),h=r[0].x+(r[1].x-r[0].x)*t+cos(l)*s,m=r[0].y+(r[1].y-r[0].y)*t+sin(l)*s;i=abs(randomGaussian(.35,.8))*n,i=q(i),o?wr(h,m,i):Lr(h,m,i)},cr=(r,e,n,o,i,a)=>{let t,s,l;s=abs(randomGaussian(0,2))*o,l=n;l=e-n>0?random(e,n):random(e+PI,n-PI)+PI;const h=r.x+cos(l)*s,m=r.y+sin(l)*s;t=abs(randomGaussian(.35,.75))*i,t=q(t),a?wr(h,m,t):Lr(h,m,t)},yr=(r,e,n)=>{const{area:o,a5:i,scaled:a}=n;let t=constrain(o/1e3,2,8),s=0,l=[r];for(xr(r);s<t;){let r=[];l.forEach((e=>{random()>.1||s<2?r=r.concat(pr(e)):r.push(e)})),s++,l=r}const h=color(...e.a4.h),m=color(...e.a4.l);l.forEach((r=>{let e=random()>.5?h:m;e=A([hue(e),saturation(e),lightness(e)],5),random()>.95&&(e=R([hue(e),saturation(e),lightness(e)],random(6,12))),stroke([hue(e),saturation(e),lightness(e),randomGaussian(.3,.5)]),V(random(.2,1.5)),noFill(),beginShape(),
8:{c:.1,fill:[256,59,50]},e:G},20],c2:[{a4:[198,40,8],a0:[198,40,30],a1:[198,40,2],stroke:[198,40,10]},1.5,{a4:[202,30,13],a0:[202,30,30],a1:[202,30,2],stroke:[202,30,10]},1.5,{a4:[40,0,90],a0:[40,0,100],a1:[189,30,50],stroke:[40,0,71]},10],c7:[{a4:[189,69,25]},40,{a4:[351,59,25]},40,{a4:[40,88,25]},15],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[40,88,71],h:[9,65,61],mode:"none"},10],a2:[{l:[212,47,4,.06],h:[212,47,4,0],c5:[212,47,10,.25]},10],c8:[{p:[189,69,10]},5,{p:[40,0,95]},5,{p:[256,59,40]},1]},I.zest={b5:[{a4:{l:[24,100,55],h:[41,100,65]},a1:[41,100,50],a0:[24,69,76],stroke:[41,100,50],e:G},10,{a4:{l:[100,82,65],h:[100,82,71]},a0:[100,82,80],a1:[70,82,55],stroke:[100,82,60],a8:{c:.25,fill:[100,82,71]}},300,{a4:{l:[130,77,50],h:[130,77,60]},a0:[75,77,65],a1:[130,77,46],stroke:[130,77,60]},400,{a4:{l:[195,90,34],h:[195,90,40]},a0:[130,90,45],a1:[195,90,28],stroke:[195,90,25],e:G},200,{a4:{l:[54,95,70],h:[54,95,75]},a0:[54,95,85],a1:[54,95,65],stroke:[54,95,60]},20,{a4:{l:[195,90,20],h:[195,90,30]},a0:[195,90,35],a1:[130,90,19],stroke:[195,90,15],e:G},400],c2:[{a4:[197,84,10],a0:[197,84,25],a1:[197,84,3],stroke:[197,84,10]},11,{a4:[197,84,98],a0:[197,84,80],a1:[197,84,55],stroke:[197,10,64]},5,{a4:[197,25,98],a0:[137,84,80],a1:[137,84,55],stroke:[197,10,64]},5],c7:[{a4:[197,84,40]},40,{a4:[54,100,25]},10,{a4:[41,100,25]},10],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[130,77,60],h:[225,99,62],mode:"none"},10],a2:[{l:[0,0,4,.01],h:[0,0,4,0],c5:[130,77,40]},10],c8:[{p:[197,25,90]},3,{p:[195,90,15]},3,{p:[100,65,50]},300]},I.dove={b5:[{a4:{l:[210,35,20],h:[210,35,30]},a1:[210,35,15],a0:[210,35,35],stroke:[210,35,15]},100,{a4:{l:[210,40,35],h:[210,40,45]},a1:[210,40,30],a0:[210,40,50],stroke:[210,40,15],e:G},75,{a4:{l:[8,80,85],h:[8,80,90]},a1:[8,80,80],a0:[8,80,95],stroke:[8,80,70],a8:{c:.2,fill:[8,80,90]}},15,{a4:{l:[195,80,37],h:[195,80,45]},a1:[195,80,30],a0:[195,80,50],stroke:[195,80,37]},25],c2:[{a4:[32,76,95],a0:[32,76,100],a1:[32,60,80],stroke:[32,76,95]},11,{a4:[32,76,100],a0:[32,76,100],a1:[32,60,85],stroke:[32,76,95]},3],c7:[{a4:[210,35,15]},40,{a4:[8,80,75]},20,{a4:[195,80,45]},40],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[8,75,90],h:[210,37,40],mode:"none"},10],a2:[{l:[0,0,4,.01],h:[0,0,4,0],c5:[32,60,60]},10],c8:[{p:[8,80,80]},3,{p:[8,80,98]},3]},I.cloak={b5:[{a4:{l:[252,20,20],h:[252,20,25]},a1:[252,20,15],a0:[252,20,35],stroke:[252,20,15],e:G},50,{a4:{l:[252,20,5],h:[252,20,10]},a1:[252,20,0],a0:[252,20,20],stroke:[252,20,2]},50,{a4:{l:[24,85,49],h:[24,85,55]},a1:[24,85,42],a0:[24,85,60],stroke:[24,85,49],a8:{c:.25,fill:[24,85,49]}},7,{a4:{l:[267,65,56],h:[267,65,60]},a1:[267,65,50],a0:[267,65,66],stroke:[267,65,56],a8:{c:.25,fill:[267,65,56]},e:G},5,{a4:{l:[234,68,33],h:[234,68,36]},a1:[234,68,25],a0:[234,68,40],stroke:[234,68,33],a8:{c:.25,fill:[234,68,33]},e:G},5,{a4:{l:[0,66,48],h:[0,66,55]},a1:[0,66,40],a0:[0,66,60],stroke:[0,66,48],a8:{c:.25,fill:[0,66,48]},e:G},5],c2:[{a4:[0,0,95],a0:[0,0,100],a1:[0,0,60],stroke:[0,0,90]},11,{a4:[0,0,85],a0:[0,0,95],a1:[0,0,60],stroke:[0,0,90]},3,{a4:[0,0,5],a0:[0,0,25],a1:[0,0,0],stroke:[0,0,5]},7],c7:[{a4:[234,68,35]},40,{a4:[0,0,60]},40,{a4:[0,66,60]},40,{a4:[267,65,59]},40],c3:[{a4:[189,69,2,.1]},1],c0:[{l:[234,68,33],h:[0,0,100],mode:"none"},10,{l:[267,68,50],h:[0,66,48],mode:"none"},10],a2:[{l:[0,0,4,.05],h:[0,0,4,0],c5:[32,60,0]},10],c8:[{p:[234,40,10]},3]},I.screentime={b5:[{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[353,30,68]},50,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[353,30,68],stroke:[353,30,68]},10,{a4:{l:[158,39,65],h:[158,39,75]},a1:[158,39,55],a0:[158,39,80],stroke:[158,39,68],a8:{c:.5,fill:[158,39,75]}},20,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[207,39,59]},50,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[207,39,59],stroke:[207,39,59]},10,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[158,39,59]},50,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[158,39,59],stroke:[158,39,59]},20,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[90,39,60]},50,{a4:{l:[231,25,20],h:[231,25,28]},a1:[231,25,15],a0:[231,25,33],stroke:[194,11,70]},50],c2:[{a4:[226,26,90],a0:[226,23,50],a1:[226,26,20],stroke:[226,26,40]},11,{a4:[226,26,40],a0:[226,23,50],a1:[226,26,20],stroke:[226,26,40]},11,{a4:[226,26,25],a0:[226,23,50],a1:[226,26,20],stroke:[226,26,40]},11],c7:[{a4:[194,11,50]},40,{a4:[353,30,50]},40,{a4:[207,39,50]},40,{a4:[158,39,50]},40,{a4:[90,39,45]},40],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[353,30,68],h:[158,39,59],mode:"none"},10],a2:[{l:[0,0,4,.05],h:[0,0,4,0],c5:[231,25,18]},10],c8:[{p:[158,39,75]},2,{p:[226,26,80]},6,{p:[231,25,22]},6e3]},I.feint={b5:[{a4:{l:[199,24,28],h:[199,24,34]},a1:[199,24,24],a0:[199,24,38],stroke:[199,24,30]},10,{a4:{l:[212,33,19],h:[212,33,24]},a1:[212,33,15],a0:[212,33,30],stroke:[212,33,20]},10,{a4:{l:[230,27,4],h:[230,27,9]},a1:[230,27,1],a0:[230,27,12],stroke:[230,27,7]},5,{a4:{l:[184,29,60],h:[184,29,67]},a1:[184,29,76],a0:[184,29,50],stroke:[184,29,55]},10,{a4:{l:[358,46,40],h:[358,46,49]},a1:[358,46,30],a0:[358,46,60],stroke:[358,46,49],a8:{c:.05,fill:[358,46,49]},e:G},3,{a4:{l:[349,46,40],h:[349,46,49]},a1:[349,46,30],a0:[349,46,60],stroke:[349,46,49],a8:{c:.05,fill:[347,46,49]}},2],c2:[{a4:[0,0,97],a0:[0,0,100],a1:[0,0,80],stroke:[0,0,99]},11,{a4:[185,25,80],a0:[185,25,90],a1:[185,25,65],stroke:[185,25,80]},11],c7:[{a4:[358,46,49]},40,{a4:[212,33,25]},40,{a4:[349,33,25]},40,{a4:[22,33,25]},40],c3:[{a4:[189,69,2,.05]},1],c0:[{l:[358,46,50],h:[212,33,24],mode:"none"},10,{l:[212,33,24],h:[184,29,67],mode:"none"},10],a2:[{l:[0,0,4,.05],h:[0,0,4,0],c5:[223,41,51]},10],c8:[{p:[212,33,20]},2,{p:[185,25,91]},2]},I.amused={b5:[{a4:{l:[335,70,37],h:[16,72,65]},a1:[335,70,30],a0:[16,72,75],stroke:[16,70,60],a8:{c:.1,fill:[16,72,65]}},5,{a4:{l:[240,22,14],h:[327,65,27]},a1:[240,22,8],a0:[16,72,45],stroke:[240,22,14],e:G},15,{a4:{l:[240,22,10],h:[240,22,20]},a1:[240,22,3],a0:[240,22,25],stroke:[240,22,14]},12,{a4:{l:[240,22,10],h:[240,22,20]},a1:[240,22,3],a0:[335,70,37],stroke:[240,22,14],e:G},12,{a4:{l:[219,73,29],h:[219,73,35]},a1:[219,73,20],a0:[219,70,45],stroke:[219,73,29]},40,{a4:{l:[216,42,90],h:[216,42,95]},a1:[216,42,80],a0:[216,42,100],stroke:[216,42,90],e:G},6],c2:[{a4:[209,84,60],a0:[209,84,75],a1:[209,84,45],stroke:[209,84,45]},50,{a4:[209,42,89],a0:[209,42,98],a1:[209,42,70],stroke:[209,42,89]},15],c7:[{a4:[84,98,64]},40,{a4:[18,75,67]},40,{a4:[220,73,30]},100],c3:[{a4:[219,73,29,.3]},1],c0:[{l:[84,98,64],h:[84,98,80],mode:"source-over"},10],a2:[{l:[0,0,4,.025],h:[0,0,4,0]},10],c8:[{p:[209,42,90]},6,{p:[240,22,20]},3,{p:[219,73,30]},4]},I.method={b5:[{a4:{l:[207,25,89],h:[207,16,95]},a1:[251,10,70],a0:[207,16,99],stroke:[207,16,89],e:G},2.5,{a4:{l:[207,25,89],h:[207,16,95]},a1:[251,16,75],a0:[207,16,99],stroke:[251,23,89],e:G},2.5,{a4:{l:[208,82,35],h:[209,82,45]},a1:[209,82,25],a0:[209,82,65],stroke:[209,82,40]},15,{a4:{l:[210,82,15],h:[209,95,28]},a1:[209,95,5],a0:[209,95,45],stroke:[209,95,25]},15],c2:[{a4:[230,10,10],a0:[230,10,22],a1:[230,10,2],stroke:[230,10,12]},50,{a4:[230,10,3],a0:[230,10,22],a1:[230,10,0],stroke:[230,10,1]},10],c7:[{a4:[251,25,52]},40,{a4:[200,19,30]},40],c3:[{a4:[251,20,1,.65]},1],c0:[{l:[251,19,52],h:[210,19,69],mode:"source-over"},10],a2:[{l:[0,0,4,.025],h:[0,0,4,0],c5:[223,41,51]},10],c8:[{p:[209,42,90]},6]},I.exodus={b5:[{a4:{l:[205,25,5],h:[205,25,10]},a1:[205,10,1],a0:[205,25,15],stroke:[205,25,5],e:G},25,{a4:{l:[210,20,5],h:[210,20,10]},a1:[251,10,1],a0:[210,15,15],stroke:[210,75,5],e:G},20,{a4:{l:[201,82,25],h:[201,82,34]},a1:[201,82,20],a0:[201,82,40],stroke:[201,82,34],a8:{c:.1,fill:[201,82,40]}},25,{a4:{l:[3,85,25],h:[3,85,34]},a1:[3,85,20],a0:[3,85,40],stroke:[3,85,25],e:G},12,{a4:{l:[13,85,25],h:[13,85,34]},a1:[13,85,15],a0:[13,85,40],stroke:[13,85,25],a8:{c:.1,fill:[13,85,40]}},9],c2:[{a4:[51,20,81],a0:[51,20,94],a1:[51,20,68],stroke:[51,20,81]},20,{a4:[210,39,12],a0:[210,39,35],a1:[210,39,4],stroke:[210,39,12]},50,{a4:[40,97,53],a0:[40,97,65],a1:[40,97,40],stroke:[40,97,53]},50],c7:[{a4:[179,79,31]},40,{a4:[40,97,28]},20,{a4:[9,88,28]},20],c3:[{a4:[251,20,1,.1]},1],c0:[{l:[40,97,53],h:[9,90,40],mode:"source-over"},10],a2:[{l:[0,0,4,.025],h:[0,0,4,0],c5:[223,41,51]},10],c8:[{p:[180,75,5]},6]};const O=(r,e)=>{const n=Object.keys(r),o={},i=["a8","a2"];for(let a=0;a<n.length;a++)-1!==i.indexOf(n[a])||0===e?o[n[a]]=r[n[a]]:r[n[a]].length?o[n[a]]=R(r[n[a]],e):o[n[a]]=O(r[n[a]],e);return o},z=(r,e)=>O(P(X[r]),e),A=(r,e)=>{const n=constrain(r[2]+random(-e,e),0,100),o=void 0!==r[3]?r[3]:100;return[r[0],r[1],n,o]},R=(r,e)=>{const n=r[3]?r[3]:100;return[r[0],r[1],r[2]+e,n]},T=r=>(r.b5=r.b5.filter((r=>r.e)),r.b5=[Y(r.b5)[0]],r.b5[0].a8={c:0},r.b5.push(1),r.c3=[{a4:[0,0,0,0]},1],r),F={},N=(r=0,e,n)=>0===r?{distance:0,a6:0}:{distance:random()<e?min(me,he)*random(-r,r):0,a6:n};F.DONOTHING=()=>{const r=[];for(let e=1;e<=1;e++)r.push({a9:0,b0:D(3.5,2),a6:random()>.5?-1:1,b1:0});return{slices:r}},F.d4=()=>{let r=random(.05,.45),e=[];const n=random(10,20),o=2*me,i=random(2*PI);for(let a=0;a<n;a++){let t,l;const h=random(-5,5);a%2?(t={x:-o,y:he/n*a},l={x:me+o,y:he/n*(a+h)}):(t={x:me+o,y:he/n*a},l={x:-o,y:he/n*(a+h)});const m=random(r),d=s([t,l],i,me/2,he/2);e.push({a9:random()>.5?-m:m,b0:d,a6:random()>.5?-1:1,b1:N(.1,.1,round(random(1)))})}const a=random(-me,me)/100,t=random(-me,me)/100;let l=[{x:me/2+a,y:4*-he},{x:me/2+t,y:4*he}];return l=s(l,i,me/2,he/2),e.push({a9:random(-1,1)*r,b0:l,a6:random()>.5?-1:1,b1:N(.1,.1,round(random(1)))}),e=Y(e),{slices:e}},F.d5=()=>{const r=round(random(20,25)),e=[];for(let n=1;n<=r;n++)e.push({a9:random(-.25,.25),b0:D(1.15,2),a6:random()>.5?-1:1,b1:N()});return{slices:e}};const D=(r,e,n=!1)=>{const o=n||random(2*-PI,2*PI),i=max(me,he)*e,a=[],t=random(-me,me)/r,s=random(-he,he)/r,l=random(-me,me)/r,h=random(-he,he)/r;return a.push({x:me/2+t+sin(o)*i,y:he/2+s+cos(o)*i}),a.push({x:me/2+l-sin(o)*i,y:he/2+h-cos(o)*i}),a};F.heavySheering=()=>{const r=[];for(let e=1;e<=10;e++)r.push({a9:random(-1,1),b0:D(6,3),a6:random()>.5?-1:1,b1:N(.1,1,round(random(1)))});return{slices:r}},F.rareBigSkews=()=>{let r=.7;const e=[];for(let n=1;n<=8;n++)e.push({a9:random(-.7,r),b0:D(1.5,.75),a6:random()>.5?-1:1
(()=>{"use strict";var r={d:(e,n)=>{for(var o in n)r.o(n,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)};r.d({},{cQ:()=>ke,X4:()=>de,HX:()=>ae,zJ:()=>te,_1:()=>we,LW:()=>ve,j9:()=>ue,f8:()=>he,ai:()=>me});function e(r,e,o,i,a,t=!1){let s=a.length,l=[];for(let h=0;h<a.length;h++){let m=a[h],d=a[(h+1)%s],c=n(r,e,o,i,m.x,m.y,d.x,d.y,t);c&&l.push(c)}return l.sort(((r,e)=>r.t-e.t)),l}function n(r,e,n,o,i,a,t,s,l=!1){let h=n-r,m=o-e,d=t-i,c=s-a,y=h*c-m*d;if(0==y)return null;let g=i-r,p=a-e,u=y/(y*y),x=(g*c-p*d)*u,f=(g*m-p*h)*u;if(0<=x&&(l||x<1)&&0<=f&&f<1){let t={t:x,s:f,side:null,other:null,xy:null};return t.xy=[n*x+r*(1-x),o*x+e*(1-x)],t.side=(r-(w=n))*(a-(k=o))-(e-k)*(i-w)<0?1:-1,t}var w,k;return null}const o=(r,e)=>{for(var n=r[0],o=r[1],i=!1,a=0,t=e.length-1;a<e.length;t=a++){var s=e[a].x,l=e[a].y,h=e[t].x,m=e[t].y;l>o!=m>o&&n<(h-s)*(o-l)/(m-l)+s&&(i=!i)}return i};function i(r,e,n,o,i,a,t,s){let l,h;return r===n?(l=r,h=a+(s-a)/(t-i)*(r-i)):i===t?(l=i,h=e+(o-e)/(n-r)*(i-r)):(l=(e-a+i*(s-a)/(t-i)-r*(o-e)/(n-r))/((s-a)/(t-i)-(o-e)/(n-r)),h=e+(o-e)*(l-r)/(n-r)),(r<=l&&l<=n||n<=l&&l<=r)&&(e<=h&&h<=o||o<=h&&h<=e)&&(i<=l&&l<=t||t<=l&&l<=i)&&(a<=h&&h<=s||s<=h&&h<=a)&&[l,h]}const a=r=>{var e=r[0],n=r[r.length-1];e.x==n.x&&e.y==n.y||r.push(e);for(var o,i,a,t=0,s=0,l=0,h=r.length,m=0,d=h-1;m<h;d=m++)o=r[m],i=r[d],t+=a=o.x*i.y-i.x*o.y,s+=(o.x+i.x)*a,l+=(o.y+i.y)*a;return{x:s/(a=3*t),y:l/a}},t=(r,e,n)=>{const o=[];for(let i=0;i<r.length;i++)o.push({x:r[i].x+e,y:r[i].y+n});return o},s=(r,e,n,o)=>r=r.map((r=>{const i=r.x-n,a=r.y-o;return{x:i*cos(e)-a*sin(e)+n,y:a*cos(e)+i*sin(e)+o}})),l=(r,e,n,o)=>r=r.map((r=>{const i=atan2(r.y-o,r.x-n);return{x:r.x+cos(i)*e*100,y:r.y+sin(i)*e*100}})),h=(r,e=1)=>{let n=r[0].x,o=r[0].x,i=r[0].y,a=r[0].y;r.forEach((r=>{r.x<n?n=r.x:r.x>o&&(o=r.x),r.y<i?i=r.y:r.y>a&&(a=r.y)}));let t=n+(o-n)/2,s=i+(a-i)/2,l=o-n,h=a-i;return n*=e,i*=e,o*=e,a*=e,t*=e,s*=e,l*=e,h*=e,n=round(n),i=round(i),o=round(o),a=round(a),t=round(t),s=round(s),l=round(l),h=round(h),{minX:n,minY:i,b6:o,b7:a,centerX:t,centerY:s,width:l,height:h}},m=r=>{let e=r[0][0].x,n=r[0][0].x,o=r[0][0].y,i=r[0][0].y;r.forEach((r=>{const a=h(r);a.minX<e?e=a.minX:a.b6>n&&(n=a.b6),a.minY<o?o=a.minY:a.b7>i&&(i=a.b7)}));return{minX:e,minY:o,b6:n,b7:i,centerX:e+(n-e)/2,centerY:o+(i-o)/2,width:n-e,height:i-o}},d=r=>{for(var e=0,n=0,o=r.length;n<o;n++){e+=r[n].x*r[n==r.length-1?0:n+1].y*.5,e-=r[n==r.length-1?0:n+1].x*r[n].y*.5}return Math.abs(e)},c=r=>{let e=r[0],n=r[r.length-1];e.x!==n.x&&e.y!==n.y&&r.push(e);let o=0;for(let e=0;e<r.length-1;e++){const n=r[e],i=r[e+1];o+=dist(n.x,n.y,i.x,i.y)}return o};function y(r,e,n,o){var i=o-e,a=n-r;return Math.atan2(i,a)}const g=(r,e,n)=>{let o=atan2(e[1].y-e[0].y,e[1].x-e[0].x)+PI/2;const i=[];return r.forEach((r=>{const a=(t=r,s=e[0],l=e[1],Math.sqrt(function(r,e,n){var o=u(e,n);if(0==o)return u(r,e);var i=((r.x-e.x)*(n.x-e.x)+(r.y-e.y)*(n.y-e.y))/o;return i=Math.max(0,Math.min(1,i)),u(r,{x:e.x+i*(n.x-e.x),y:e.y+i*(n.y-e.y)})}(t,s,l)));var t,s,l;const h=r.x-cos(o)*a,m=r.y-sin(o)*a,d={x:h+cos(o+n)*a,y:m+sin(o+n)*a};i.push(d)})),{vertices:i}};function p(r){return r*r}function u(r,e){return p(r.x-e.x)+p(r.y-e.y)}const x=(r,e,n)=>{let o=atan2(e[1].y-e[0].y,e[1].x-e[0].x);return t(r,cos(o)*n,sin(o)*n)},f=(r,e,n,o,i)=>{for(var a=new S(e,n),t=new S(o,i),s=[],l=[],h=0;h<r.length;h+=2)l.push(new S(r[h],r[h+1]));for(h=0;h<l.length;h++){var m=new S(0,0);m=v(a,t,l[h],l[(h+1)%l.length],m);var d=s[0],c=s[s.length-1];m&&(null==d||S.dist(m,d)>1e-10)&&(null==c||S.dist(m,c)>1e-10)&&(m.flag=!0,s.push(m),l.splice(h+1,0,m),h++)}if(s.length<2)return[r.slice(0)];s.sort((function(r,e){return S.dist(a,r)-S.dist(a,e)}));for(var y=[],g=0;s.length>0;){l.length;var p=s[0],u=s[1],x=l.indexOf(p),f=l.indexOf(u),L=!1;if(k(l,x)==f?L=!0:(p=s[1],u=s[0],x=l.indexOf(p),f=l.indexOf(u),k(l,x)==f&&(L=!0)),L&&p&&u){g--;var b=w(l,x,f);y.push(b),l=w(l,f,x),p.flag=u.flag=!1,s.splice(0,2),0==s.length&&y.push(l)}else g++,s.reverse();if(g>1)break}var C=[];for(h=0;h<y.length;h++){for(var P=y[h],H=[],Y=0;Y<P.length;Y++)H.push(P[Y].x,P[Y].y);C.push(H)}return C},w=(r,e,n)=>{var o=r.length,i=[];n<e&&(n+=o);for(var a=e;a<=n;a++)i.push(r[a%o]);return i},k=(r,e)=>{for(var n=r.length;;)if(r[e=(e+1)%n].flag)return e},v=(r,e,n,o,i)=>{var a=r.x-e.x,t=n.x-o.x,s=r.y-e.y,l=n.y-o.y,h=a*l-s*t;if(0==h)return null;var m=r.x*e.y-r.y*e.x,d=n.x*o.y-n.y*o.x,c=i;return c.x=(m*t-a*d)/h,c.y=(m*l-s*d)/h,L(c,r,e)&&L(c,n,o)?c:null},L=(r,e,n)=>{var o=min(e.x,n.x),i=max(e.x,n.x),a=min(e.y,n.y),t=max(e.y,n.y);return o==i?a<=r.y&&r.y<=t:a==t?o<=r.x&&r.x<=i:o<=r.x+1e-10&&r.x-1e-10<=i&&a<=r.y+1e-10&&r.y-1e-10<=t};function S(r,e){this.x=r,this.y=e,this.flag=!1}S.dist=function(r,e){var n=e.x-r.x,o=e.y-r.y;return sqrt(n*n+o*o)};const b=(r,e)=>{if(o([e[0].x,e[0].y],r)||o([e[1].x,e[1].y],r))return[r];const n=r.reduce(((r,e)=>r.concat([e.x,e.y])),[]);let i=f(n,e[0].x,e[0].y,e[1].x,e[1].y);return i=i.map((r=>{const e=[];for(let n=0;n<r.length;n+=2)e.push({x:r[n],y:r[n+1]});return e})),i.length>0?i:[r]},C=r=>r.map((r=>r.vertices?r.vertices:r)),P=r=>{const e=random();let n=!1,o=1;const i=r.reduce(((r,e,n)=>n%2==1?r+e:r),0),a=i*e;let t=0;for(;!n&&o<r.length;)a-r[o]<t&&(n=r[o-1]),t+=r[o],o+=2;return n},H=r=>3===r.length?`hsl(${r[0]},${r[1]}%,${r[2]}%)`:4===r.length?`hsl(${r[0]},${r[1]}%,${r[2]}%, ${r[3]})`:void 0,Y=r=>{let e,n=r.length;for(;0!=n;)e=floor(random()*n),n--,[r[n],r[e]]=[r[e],r[n]];return r},E=(r,e)=>{const n=r;n.sort(((r,e)=>dist(e[0].x,e[0].y,e[1].x,e[1].y)-dist(r[0].x,r[0].y,r[1].x,r[1].y)));let o=[[{x:0,y:0},{x:me,y:0},{x:me,y:he},{x:0,y:he}]];for(let r=0;r<n.length;r++){const e=[],i=n[r];o.forEach(((r,n)=>{const o=b(r,i);o?e.push(...C(o)):e.push(r)})),o=e}return e.length>0&&(o=o.map((r=>[r]))),o};let X=!1,I={},G={e:!0};I.gum={b5:[{a4:{l:[337,67,52],h:[350,67,55]},a0:[337,67,75],a1:[337,67,35],stroke:[350,67,60],a8:{c:.09,fill:[350,67,55]},e:G},90,{a4:{l:[246,30,30],h:[246,50,40]},a0:[227,67,50],a1:[337,67,20],stroke:[246,30,20],a8:{c:.2,fill:[246,50,40]},e:G},70,{a4:{l:[209,86,30],h:[209,86,40]},a0:[209,86,55],a1:[209,86,20],stroke:[209,94,30]},10],a3:[],c2:[{a4:[246,30,10],a0:[246,30,20],a1:[246,50,7],stroke:[246,30,35]},90,{a4:[230,30,8],a0:[230,30,20],a1:[230,50,5],stroke:[230,30,5]},30,{a4:[200,30,6],a0:[200,30,30],a1:[200,50,5],stroke:[200,30,5]},30,{a4:[246,80,10],a0:[246,5,15],a1:[246,0,5],stroke:[246,5,5]},90],c7:[{a4:[246,30,30]},1,{a4:[338,30,30]},1,{a4:[212,30,30]},1],c3:[{a4:[0,50,0,.25]},1],c0:[{l:[337,67,55],h:[337,67,40],mode:"none"},10,{l:[209,86,40],h:[246,86,40],mode:"none"},10],a2:[{l:[246,35,5,.15],h:[246,35,4,0],c5:[246,35,2]},10],c8:[{p:[246,30,2]},5,{p:[337,67,40]},1]},I.cloud={b5:[{a4:{l:[351,92,50],h:[351,92,60]},a0:[351,99,75],a1:[351,100,30],stroke:[351,92,40],a8:{c:.2,fill:[351,92,60]},e:G},60,{a4:{l:[52,92,60],h:[52,92,80]},a0:[52,99,90],a1:[52,92,50],stroke:[52,92,55],a8:{c:.1,fill:[52,92,80]}},20,{a4:{l:[180,28,5],h:[180,28,10]},a0:[180,5,20],a1:[180,28,2],stroke:[180,28,10]},100,{a4:{l:[38,48,70],h:[38,48,80]},a0:[38,48,90],a1:[38,48,70],stroke:[38,48,75]},30,{a4:{l:[311,22,23],h:[311,22,30]},a0:[311,30,45],a1:[311,30,10],stroke:[311,22,20]},40,{a4:{l:[183,86,70],h:[150,87,60]},a0:[150,87,85],a1:[183,86,40],stroke:[183,80,45]},10],a3:[],c2:[{a4:[214,45,59],a0:[214,45,80],a1:[214,45,30],stroke:[214,45,30]},90,{a4:[214,55,59],a0:[351,92,50],a1:[214,35,35],stroke:[214,35,30]},90,{a4:[214,45,90],a0:[214,45,95],a1:[214,50,50],stroke:[214,35,70]},90],c7:[{a4:[52,92,55]},40,{a4:[214,35,50]},90,{a4:[351,92,60]},30],c3:[{a4:[214,90,20,.25]},1],c0:[{l:[214,35,70],h:[351,92,60],mode:"none"},10,{h:[52,92,80],l:[311,22,30],mode:"none"},10],a2:[{l:[214,35,5,.05],h:[214,35,4,0],c5:[214,35,15]},10],c8:[{p:[214,35,95]},5,{p:[214,35,40]},5,{p:[351,92,60]},1]},I.montana={b5:[{a4:{l:[24,100,75],h:[24,100,86]},a0:[24,100,95],a1:[24,100,65],stroke:[24,100,72],a8:{c:.1,fill:[24,100,86]}},5,{a4:{l:[22,66,60],h:[22,66,72]},a0:[22,66,80],a1:[22,66,50],stroke:[22,66,54]},5,{a4:{l:[18,51,45],h:[18,51,60]},a0:[18,51,72],a1:[18,51,35],stroke:[18,51,45]},5,{a4:{l:[12,55,96],h:[12,55,90]},a0:[12,55,98],a1:[12,55,84],stroke:[12,55,84]},25,{a4:{l:[230,20,55],h:[215,20,45]},a0:[215,20,70],a1:[215,20,35],stroke:[215,20,40]},25,{a4:{l:[251,8,10],h:[251,8,15]},a0:[251,8,30],a1:[251,8,5],stroke:[251,8,5],e:G},150],a3:[],c2:[{a4:[210,34,40],a0:[210,34,50],a1:[210,34,30],stroke:[210,34,30]},9,{a4:[220,9,93],a0:[220,9,98],a1:[220,9,70],stroke:[220,9,80]},25,{a4:[208,35,30],a0:[208,35,50],a1:[208,22,10],stroke:[208,22,30]},5,{a4:[251,8,8],a0:[251,8,25],a1:[251,8,5],stroke:[251,8,10]},2],c7:[{a4:[24,100,83]},40,{a4:[24,100,40]},10,{a4:[250,8,24]},40],c3:[{a4:[220,47,5,.025]},1],c0:[{l:[22,66,60],h:[215,20,60],mode:"none"},15],a2:[{l:[215,20,5,.09],h:[215,20,4,0],c5:[215,20,2,.2]},10],c8:[{p:[220,9,90]},3,{p:[251,8,10]},5]},I.briss={b5:[{a4:{l:[54,100,54],h:[54,100,65]},a0:[54,100,72],a1:[54,100,49],stroke:[54,100,54]},3,{a4:{l:[2,100,54],h:[2,100,65]},a0:[2,100,72],a1:[2,100,45],stroke:[2,100,54],e:G},10,{a4:{l:[191,100,54],h:[191,100,65]},a0:[191,100,72],a1:[191,100,45],stroke:[191,100,54]},10,{a4:{l:[0,0,95],h:[0,0,100]},a0:[0,0,100],a1:[0,0,90],stroke:[0,0,90]},30,{a4:{l:[0,0,0],h:[0,0,0]},a0:[0,0,9],a1:[0,0,0],stroke:[0,0,100]},15],c2:[{a4:[0,0,0],a0:[60,4,7],a1:[60,4,0],stroke:[60,5,2]},10],c7:[{a4:[200,0,50]},40,{a4:[200,0,100]},10,{a4:[200,0,0]},10],c3:[{a4:[220,47,5,.1]},1],c0:[{l:[0,0,0],h:[10,50,100],mode:"none"},10],a2:[{l:[0,0,0,.2],h:[0,0,0,0],c5:[54,100,20]},10,{l:[0,0,0,.2],h:[0,0,0,0],c5:[2,100,20]},10,{l:[0,0,0,.2],h:[0,0,0,0],c5:[191,100,20]},10],c8:[{p:[0,0,95]},3,{p:[191,8,50]},5,{p:[191,95,65]},1]},I.skull={b5:[{a4:{l:[9,65,60],h:[40,88,70]},a0:[40,88,80],a1:[9,69,55],stroke:[9,65,70]},10,{a4:{l:[212,40,0],h:[212,40,3]},a0:[212,40,15],a1:[0,0,0],stroke:[0,0,5]},100,{a4:{l:[203,15,50],h:[203,15,60]},a0:[203,15,65],a1:[203,15,45],stroke:[203,15,75]},20,{a4:{l:[212,47,16],h:[212,47,25]},a0:[212,47,30],a1:[212,47,10],stroke:[212,47,15],e:G},200,{a4:{l:[351,59,45],h:[351,59,50]},a0:[351,59,65],a1:[351,80,30],stroke:[351,59,35],a8:{c:.1,fill:[351,59,50]},e:G},100,{a4:{l:[256,59,35],h:[256,59,40]},a0:[256,59,50],a1:[256,59,30],stroke:[256,59,35],a
Ori is an art series that draws inspiration from paper folding to create deeply abstract and highly contrasting imagery. The loose interpretation of origami dynamics quickly dissolves as physical rules are bent and reimagined. An artifact of this process is the distinctive fold lines, which symbolize the Yoshizawa-Randlett diagrams that serve as instructions for Origami. The practice of Kirigami (folding and cutting paper) is also represented and is occasionally visible as highly destructured forms. Contrasting the precision of the folding engine is a spray paint simulation that gives the image its color. Paint is applied with a wandering nozzle, sometimes overflowing past boundaries and dripping downwards. Inspired by the freeform nature of graffiti, the spray paint layers are chaotic and unrefined. Note: The spray paint simulation may take many seconds to fully render. After render is complete, press a key to destroy artwork.