-
Notifications
You must be signed in to change notification settings - Fork 0
/
BOL.html
82 lines (79 loc) · 37.7 KB
/
BOL.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hash.art blocks of life</title>
<script type="module" crossorigin>
var tn=Object.defineProperty;var nn=(t,e,n)=>e in t?tn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var $e=(t,e,n)=>(nn(t,typeof e!="symbol"?e+"":e,n),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function N(){}function F(t,e){for(const n in e)t[n]=e[n];return t}function Bt(t){return t()}function bt(){return Object.create(null)}function de(t){t.forEach(Bt)}function tt(t){return typeof t=="function"}function J(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Le;function _t(t,e){return t===e?!0:(Le||(Le=document.createElement("a")),Le.href=e,t===Le.href)}function rn(t){return Object.keys(t).length===0}function nt(t,...e){if(t==null){for(const r of e)r(void 0);return N}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function on(t){let e;return nt(t,n=>e=n)(),e}function sn(t,e,n){t.$$.on_destroy.push(nt(e,n))}function ln(t,e,n,r){if(t){const s=It(t,e,n,r);return t[0](s)}}function It(t,e,n,r){return t[1]&&r?F(n.ctx.slice(),t[1](r(e))):n.ctx}function cn(t,e,n,r){if(t[2]&&r){const s=t[2](r(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],i=Math.max(e.dirty.length,s.length);for(let l=0;l<i;l+=1)o[l]=e.dirty[l]|s[l];return o}return e.dirty|s}return e.dirty}function fn(t,e,n,r,s,o){if(s){const i=It(e,n,r,o);t.p(i,s)}}function un(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function j(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}const an=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function x(t,e){t.appendChild(e)}function S(t,e,n){t.insertBefore(e,n||null)}function U(t){t.parentNode&&t.parentNode.removeChild(t)}function P(t){return document.createElement(t)}function he(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ae(t){return document.createTextNode(t)}function Q(){return ae(" ")}function rt(){return ae("")}function me(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function C(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function dn(t){return Array.from(t.childNodes)}function Xe(t,e){e=""+e,t.data!==e&&(t.data=e)}function wt(t,e){t.value=e==null?"":e}function p(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function yt(t,e){return new t(e)}let Oe;function Pe(t){Oe=t}function hn(){if(!Oe)throw new Error("Function called outside component initialization");return Oe}function pn(t){hn().$$.on_mount.push(t)}const ye=[],ze=[];let ve=[];const vt=[],Mt=Promise.resolve();let Je=!1;function Rt(){Je||(Je=!0,Mt.then(kt))}function ot(){return Rt(),Mt}function Ye(t){ve.push(t)}const je=new Set;let _e=0;function kt(){if(_e!==0)return;const t=Oe;do{try{for(;_e<ye.length;){const e=ye[_e];_e++,Pe(e),mn(e.$$)}}catch(e){throw ye.length=0,_e=0,e}for(Pe(null),ye.length=0,_e=0;ze.length;)ze.pop()();for(let e=0;e<ve.length;e+=1){const n=ve[e];je.has(n)||(je.add(n),n())}ve.length=0}while(ye.length);for(;vt.length;)vt.pop()();Je=!1,je.clear(),Pe(t)}function mn(t){if(t.fragment!==null){t.update(),de(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ye)}}function gn(t){const e=[],n=[];ve.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),ve=e}const Te=new Set;let ge;function st(){ge={r:0,c:[],p:ge}}function it(){ge.r||de(ge.c),ge=ge.p}function I(t,e){t&&t.i&&(Te.delete(t),t.i(e))}function L(t,e,n,r){if(t&&t.o){if(Te.has(t))return;Te.add(t),ge.c.push(()=>{Te.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function Ee(t,e){const n={},r={},s={$$scope:1};let o=t.length;for(;o--;){const i=t[o],l=e[o];if(l){for(const f in i)f in l||(r[f]=1);for(const f in l)s[f]||(n[f]=l[f],s[f]=1);t[o]=l}else for(const f in i)s[f]=1}for(const i in r)i in n||(n[i]=void 0);return n}function Ce(t){return typeof t=="object"&&t!==null?t:{}}function H(t){t&&t.c()}function z(t,e,n){const{fragment:r,after_update:s}=t.$$;r&&r.m(e,n),Ye(()=>{const o=t.$$.on_mount.map(Bt).filter(tt);t.$$.on_destroy?t.$$.on_destroy.push(...o):de(o),t.$$.on_mount=[]}),s.forEach(Ye)}function D(t,e){const n=t.$$;n.fragment!==null&&(gn(n.after_update),de(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function bn(t,e){t.$$.dirty[0]===-1&&(ye.push(t),Rt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,e,n,r,s,o,i=null,l=[-1]){const f=Oe;Pe(t);const c=t.$$={fragment:null,ctx:[],props:o,update:N,not_equal:s,bound:bt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:bt(),dirty:l,skip_bound:!1,root:e.target||f.$$.root};i&&i(c.root);let h=!1;if(c.ctx=n?n(t,e.props||{},(u,g,...y)=>{const _=y.length?y[0]:g;return c.ctx&&s(c.ctx[u],c.ctx[u]=_)&&(!c.skip_bound&&c.bound[u]&&c.bound[u](_),h&&bn(t,u)),g}):[],c.update(),h=!0,de(c.before_update),c.fragment=r?r(c.ctx):!1,e.target){if(e.hydrate){const u=dn(e.target);c.fragment&&c.fragment.l(u),u.forEach(U)}else c.fragment&&c.fragment.c();e.intro&&I(t.$$.fragment),z(t,e.target,e.anchor),kt()}Pe(f)}class Z{constructor(){$e(this,"$$");$e(this,"$$set")}$destroy(){D(this,1),this.$destroy=N}$on(e,n){if(!tt(n))return N;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s!==-1&&r.splice(s,1)}}$set(e){this.$$set&&!rn(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _n="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_n);const we=[];function wn(t,e){return{subscribe:lt(t,e).subscribe}}function lt(t,e=N){let n;const r=new Set;function s(l){if(J(t,l)&&(t=l,n)){const f=!we.length;for(const c of r)c[1](),we.push(c,t);if(f){for(let c=0;c<we.length;c+=2)we[c][0](we[c+1]);we.length=0}}}function o(l){s(l(t))}function i(l,f=N){const c=[l,f];return r.add(c),r.size===1&&(n=e(s,o)||N),l(t),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:s,update:o,subscribe:i}}function Lt(t,e,n){const r=!Array.isArray(t),s=r?[t]:t;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return wn(n,(i,l)=>{let f=!1;const c=[];let h=0,u=N;const g=()=>{if(h)return;u();const _=e(r?c[0]:c,i,l);o?i(_):u=tt(_)?_:N},y=s.map((_,a)=>nt(_,d=>{c[a]=d,h&=~(1<<a),f&&g()},()=>{h|=1<<a}));return f=!0,g(),function(){de(y),u(),f=!1}})}const He=typeof location!="undefined",Ft=typeof history!="undefined",Ze=Ft&&Ht(history.pushState),Nt=typeof window!="undefined",Tt=Nt&&window!==window.parent,yn=He&&(location.protocol==="file:"||/[-_\w]+[.][\w]+$/i.test(location.pathname)),zt=Nt&&Ft&&He&&!Tt,Ie=!Ze||yn,ct="#!",X={array:{separator:",",format:"bracket"},convertTypes:!0,breakHooks:!0,hashbang:!1,anchor:!1,scroll:!1,focus:!1,nesting:3,sideEffect:zt,base:""};function vn(){const t=ft().pathname;if(!t)return;const e=ut(),n=Ae(t,e);return Me(n)}function ft(){if(!He)return{};if(Ie){const t=location.hash;return new URL(t.indexOf(ct)===0?t.substring(2):t.substring(1),"file:")}return location}function ut(){return He&&Ie?location.pathname:"/"}function At(t){Ie&&(t=ct+t);const e=ut();return(e[e.length-1]==="/"?e.substring(0,e.length-1):e)+t}function et(t){t=Ae(t,ft().origin);const e=ut();return t=Ae(t,e),Ie&&(t=Ae(t,ct)),Me(t)}function An(t,e=""){const n=Ae(Dt(e),"#");if(t&&X.scroll){const r=De(X.scroll)?{...X.scroll,...t}:t,{top:s=0,left:o=0}=t,{scrollHeight:i,scrollWidth:l}=document.documentElement;if(s<=i&&o<=l)return Fe(r);const f=Sn(c=>{if(!c[0])return f();(!s||c[0].contentRect.height>=s)&&(!o||c[0].contentRect.width>=o)&&(f(),Fe(r))},document.documentElement)}else if(n&&X.anchor){const r=De(X.anchor)?X.anchor:{},s=document.getElementById(n);if(s)return Fe(r,s);const o=Pn(()=>{const i=document.getElementById(n);i&&(o(),Fe(r,i))})}}function En(t="",{decode:e=decodeURIComponent}={}){return t?t.replace("?","").replace(/\+/g," ").split("&").filter(Boolean).reduce((n,r)=>{let[s,o]=r.split(/=(.*)/,2);s=e(s||""),o=e(o||"");let i=Vt(s,o);return n=Object.keys(i).reduce((l,f)=>{const c=Be(i[f]);return l[f]?Array.isArray(l[f])?l[f]=l[f].concat(c):Object.assign(l[f],c):l[f]=c,l},n),n},{}):{}}function Cn(t={},{encode:e=encodeURIComponent}={}){return Object.keys(t).reduce((n,r)=>{if(Object.prototype.hasOwnProperty.call(t,r)&&isNaN(parseInt(r,10)))if(Array.isArray(t[r]))t[r].forEach(s=>n.push(`${r}[]=${e(s)}`));else if(De(t[r])){let s=Vt(r,t[r]);n.push($t(s))}else n.push(`${r}=${e(t[r])}`);return n},[]).join("&")}function xn(t="",e="*",{loose:n=!1,sensitive:r=!1,blank:s=!1,decode:o=decodeURIComponent}={}){const i={},l=e instanceof RegExp?e:e.split("/").reduce((h,u,g,{length:y})=>{if(u){const _=u[0];if(_==="*")i.wild=void 0,h+="/(?<wild>.*)";else if(_===":"){const a=u.indexOf("?",1),d=u.indexOf(".",1),A=!!~a,w=!!~d,M=u.substring(1,A?a:w?d:u.length);i[M]=void 0,h+=A&&!w?`(?:/(?<${M}>[^/]+?))?`:`/(?<${M}>[^/]+?)`,w&&(h+=`${A?"?":""}\\${u.substring(d)}`)}else h+=`/${u}`}return g===y-1&&(h+=n?"(?:$|/)":"/?$"),h},"^"),f=r?"":"i",c=new RegExp(l,f).exec(t);return c?Object.entries(c.groups||{}).reduce((h,[u,g])=>{const y=o(g);return h[u]=Be(y),h},{}):s?i:null}function Dt(t,{decode:e=decodeURIComponent}={}){return e(t)}function Me(t,e="/",n=!1){return t+="",!t&&n?t:t.indexOf(e)!==0?e+t:t}function Ae(t,e){return(t+"").indexOf(e)===0?t.substring(e.length):t}function De(t){return!Array.isArray(t)&&typeof t=="object"&&t!==null}function Ht(t){return typeof t=="function"}function Un(t){return(...e)=>![...t].some(r=>r(...e)===!1)}function qe(...t){return window.addEventListener(...t),()=>window.removeEventListener(...t)}function Fe({top:t=0,left:e=0,...n}={},r){r?document.documentElement.scrollIntoView?r.scrollIntoView({behavior:"smooth",...n}):window.scrollTo({top:r.offsetTop-t,behavior:"smooth",...n}):window.scrollTo({top:t,left:e,behavior:"smooth",...n})}function Sn(t,e,n=5e3){const r=new ResizeObserver(t);r.observe(e);const s=()=>r.unobserve(e);return setTimeout(s,n),s}function Pn(t,e=5e3){const n=new MutationObserver(t);n.observe(document.body,{childList:!0,subtree:!0});const r=()=>n.disconnect();return setTimeout(r,e),r}function Be(t){return Array.isArray(t)?(t[t.length-1]=Be(t[t.length-1]),t):typeof t=="object"?Object.entries(t).reduce((e,[n,r])=>(e[n]=Be(r),e),{}):t==="true"||t==="false"?t==="true":t==="null"?null:t==="undefined"?void 0:t!==""&&!isNaN(Number(t))&&Number(t).toString()===t?Number(t):t}function Vt(t,e){const n=/(\[[^[\]]*])/,r=/(\[[^[\]]*])/g;let s=n.exec(t),o=s?t.slice(0,s.index):t,i=[];o&&i.push(o);let l=0;for(;(s=r.exec(t))&&l<X.nesting;)l++,i.push(s[1]);return s&&i.push(`[${t.slice(s.index)}]`),On(i,e)}function On(t,e){let n=e;for(let r=t.length-1;r>=0;--r){let s=t[r],o;if(s==="[]")o=[].concat(n);else{o={};const i=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=parseInt(i,10);!isNaN(l)&&s!==i&&String(l)===i&&l>=0?(o=[],o[l]=Be(n)):o[i]=n}n=o}return n}function $t(t={},e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?$t(r,e?`${e}[${n}]`:n):`${e}[${n}]=${r}`).join("&")}const Bn=at(function(e=""){return typeof e=="string"&&(e=Ae(e,"/").split("/")),Object.prototype.hasOwnProperty.call(e,"toString")?e:Object.defineProperty(e,"toString",{value(){return Me(this.join("/"))},configurable:!1,writable:!1})}),In=at(function(e=""){return typeof e=="string"&&(e=En(e)),Object.prototype.hasOwnProperty.call(e,"toString")?e:Object.defineProperty(e,"toString",{value(){return Me(Cn(this),"?",!0)},configurable:!1,writable:!1})}),Mn=at(function(e=""){return Me(Dt(e),"#",!0)});function at(t){return(e,n)=>{let r=e&&e.toString();!Array.isArray(n)&&(n=[n]);const s=new Set(n),o=Un(s),{subscribe:i,set:l}=lt(e=t(e),()=>()=>s.clear());function f(c){c=t(c),c.toString()!==r&&o(c,e,t.name)!==!1&&(r=c.toString(),e=c,l(e))}return o(null,e,t.name),{subscribe:i,update(c){f(c(on(this)))},set(c){f(c)},hook(c){return Ht(c)&&(s.add(c),c(null,e,t.name)),()=>s.delete(c)}}}}const jt=vn(),{search:qt,hash:Kt}=ft();let Ke=!0,Se=!1,Et=!1;const Ve=Bn(jt,ht),Wt=In(qt,ht),dt=Mn(Kt,ht),Gt=lt({}),Rn=Lt([Ve,Wt,dt],([t,e,n],r)=>{let s=!1;return ot().then(()=>{s||r(t+e+n)}),()=>s=!0},jt+qt+Kt);Lt(Ve,t=>xn.bind(null,t.toString()));function ht(){}function We(t,e){const n=t.indexOf("#")>=0?t.slice(t.indexOf("#")):"";!De(e)&&(e={}),ot().then(()=>(e._focus,void 0)).then(()=>An(e._scroll,n))}if(zt||Tt){const t=new Set;t.add(Rn.subscribe(e=>{!Ke&&!Se&&X.sideEffect&&(Ze?history[Et?"replaceState":"pushState"]({},null,At(e)):location.hash=At(e)),!Se&&We(e),Ke=Et=Se=!1})),Ze?(t.add(Gt.subscribe(e=>{Ke||!X.sideEffect||history.replaceState(e,null,location.pathname+location.search+location.hash)})),t.add(qe("popstate",e=>{Se=!0,Ct(location.href,e.state),We(et(location.href),e.state)}))):t.add(qe("hashchange",()=>{if(Se=!0,!Ie)return dt.set(location.hash);Ct(location.hash),We(et(location.hash))})),t.add(qe("unload",()=>{t.forEach(e=>e()),t.clear()},!0))}function Ct(t="",e={}){const{pathname:n,search:r,hash:s}=t instanceof URL?t:new URL(et(t),"file:");Ve.set(n),Wt.set(r),dt.set(s),ot().then(()=>Gt.set(e||{}))}function Ge(t,e){let n;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return n=t.substring(1).split(""),n.length==3&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),n="0x"+n.join(""),[n>>16&255,n>>8&255,n&255,e];throw new Error("Bad Hex")}function kn(t){let e=0;for(let n=0;n<t.length;n++)e+=t.charCodeAt(n),e+=e<<10,e^=e>>>6;return e+=e<<3,e^=e>>>11,e+=e<<15,e>>>0}function Ln(t){return[t>>>16,t&65535]}function Fn(t){return t[0]=18030*(t[0]&65535)+(t[0]>>16),t[1]=30903*(t[1]&65535)+(t[1]>>16),(t[0]<<16)+(t[1]&65535)}function Nn(t,e,n,r=!1){const s=r?32:24,o=14,i={BITMAPCOREHEADER:12,BITMAPINFOHEADER:40,BITMAPV2INFOHEADER:52,BITMAPV3INFOHEADER:56,BITMAPV4HEADER:108,BITMAPV5HEADER:124};var l=r?"BITMAPV4HEADER":"BITMAPCOREHEADER",f=/constructor/i.test(window.HTMLElement)||function(d){return d.toString()==="[object SafariRemoteNotification]"}(!window.safari||typeof safari!="undefined"&&window.safari.pushNotification);if(r&&(f||/(iPad|iPhone|iPod)/g.test(navigator.userAgent))&&(l="BITMAPCOREHEADER"),!i.hasOwnProperty(l))throw`Unknown BMP header version: ${l}`;const c=i[l],h=4*Math.floor((e*Math.floor((s+7)/8)+3)/4),u=h*Math.abs(n),g=o+c,y=g+u,_=new ArrayBuffer(y),a=new DataView(_);if(a.setUint8(0,"B".charCodeAt(0)),a.setUint8(1,"M".charCodeAt(0)),a.setUint32(2,y,!0),a.setUint16(6,0,!0),a.setUint16(8,0,!0),a.setUint32(10,g,!0),c==i.BITMAPCOREHEADER?(a.setUint32(14,c,!0),a.setUint16(18,e,!0),a.setInt16(20,n,!0),a.setUint16(22,1,!0),a.setUint16(24,s,!0)):c>=i.BITMAPINFOHEADER&&(a.setUint32(14,c,!0),a.setUint32(18,e,!0),a.setInt32(22,n,!0),a.setUint16(26,1,!0),a.setUint16(28,s,!0),a.setUint32(30,r?3:0,!0),a.setUint32(34,u,!0),a.setUint32(38,2835,!0),a.setUint32(42,2835,!0),a.setUint32(46,0,!0),a.setUint32(50,0,!0)),c>=i.BITMAPV2INFOHEADER&&(a.setUint32(54,r?16711680:0,!0),a.setUint32(58,r?65280:0,!0),a.setUint32(62,r?255:0,!0)),c>=i.BITMAPV3INFOHEADER&&a.setUint32(66,r?4278190080:0,!0),c>=i.BITMAPV4HEADER){const d="Win ";a.setUint8(70,d.charCodeAt(0)),a.setUint8(71,d.charCodeAt(1)),a.setUint8(72,d.charCodeAt(2)),a.setUint8(73,d.charCodeAt(3)),a.setUint32(110,0,!0),a.setUint32(114,0,!0),a.setUint32(118,0,!0)}c>=i.BITMAPV5HEADER&&(a.setUint32(122,4,!0),a.setUint32(126,0,!0),a.setUint32(130,0,!0),a.setUint32(134,0,!0));for(let d=0;d<n;d++){let A=g+(n-1-d)*h;for(let w=0;w<e;w++){const M=t[d*e+w];a.setUint8(A+0,M[2]),a.setUint8(A+1,M[1]),a.setUint8(A+2,M[0]),r?(a.setUint8(A+3,M[3]),A+=4):A+=3}}return _}class ${constructor(e,n,r=null){this.seed,this.colors=[[0,0,0,255],[255,255,255,255]],this.width=e,this.height=n,typeof r=="undefined"||r===null?this.values=Array(this.width*this.height):this.values=r.map(s=>s)}fill(e){this.values.fill(e)}fillRandom(e=""){const n=Ln(kn(e));this.fill(0),this.values=this.values.map((r,s)=>Fn(n)&1)}getCell(e,n){return this.values[n*this.width+e]}setCell(e,n,r){this.values[n*this.width+e]=r}setColors(e){this.colors=e.map(n=>n)}setSeed(e){this.seed=e}connectedCells(){const e=new $(this.width,this.height);for(let n=0;n<this.height;n++)for(let r=0;r<this.width;r++){let s=0;for(let o=-1;o<=1;o++)for(let i=-1;i<=1;i++){const l=n+o,f=r+i;f<0||f>=this.width||l<0||l>=this.height||o===0&&i===0||(s+=this.getCell(f,l))}e.setCell(r,n,s)}return e}evolve(e=1,n=.125,r=.375){const s=new $(this.width,this.height,this.values),o=8,i=(f,c)=>f==0&&c<=n*o,l=(f,c)=>f==1&&(c==2||c==Math.floor(r*o));for(let f=0;f<e;f++){const c=s.connectedCells();s.values=s.values.map((h,u)=>i(h,c.values[u])||l(h,c.values[u])?1:0)}return s}unfold(){const e=new $(2*this.width,this.height);for(let n=0;n<this.height;n++)for(let r=0;r<this.width;r++){const s=this.getCell(r,n);e.setCell(r,n,s),e.setCell(this.width*2-1-r,n,s)}return e}pad(e=1,n=1){const r=new $(this.width+2*e,this.height+2*e);r.fill(n);for(let s=0;s<this.height;s++)for(let o=0;o<this.width;o++){const i=this.getCell(o,s);r.setCell(o+e,s+e,i)}return r}outline(){let e=new $(this.width,this.height);e.fill(.5);for(let n=0;n<this.height;n++)for(let r=0;r<this.width;r++)this.getCell(r,n)==0&&(e.setCell(r,n,0),r>0&&e.setCell(r-1,n,this.getCell(r-1,n)==1?1:0),r<this.width-1&&e.setCell(r+1,n,this.getCell(r+1,n)==1?1:0),n>0&&e.setCell(r,n-1,this.getCell(r,n-1)==1?1:0),n<this.width-1&&e.setCell(r,n+1,this.getCell(r,n+1)==1?1:0));return e=e.pad(0,.5),e}gradient(){const e=new $(this.width,this.height);for(let n=0;n<this.height;n++)for(let r=0;r<this.width;r++){const s=this.getCell(r,n),o=n>0?this.getCell(r,n-1):s,l=((n<this.height-1?this.getCell(r,n+1):s)-s+(s-o))/2;e.setCell(r,n,l)}return e}rescale(e=.2,n=.25){const r=this.values.reduce((i,l)=>i<l?i:l,Number.MAX_VALUE),s=this.values.reduce((i,l)=>i>l?i:l,Number.MIN_VALUE),o=new $(this.width,this.height);return o.values=this.values.map(i=>(i-r)/(s-r)*(n-e)+e),o}combine(e){const n=new $(this.width,this.height);return n.values=this.values.map((r,s)=>r===0?e.values[s]:r),n}createColorData(e){return this.values.map(r=>{let s=r;s<0&&(s=0),s>1&&(s=1);const o=Math.floor(s*(e.length-1)),i=e[o];let l=[0,0,0,255];for(let f=0;f<l.length;f++)l[f]=Math.floor(i[f]);return l})}static generate(e,n="0",r="",s=1,o="#000000",i=255,l="#000000",f=255,c="#ffffff",h=255){typeof e=="undefined"||e===null?e=self.crypto.randomUUID():e===""?e=n:(e=e.toString(),r==="lower"?e=e.toLowerCase():r==="upper"&&(e=e.toUpperCase()));let u=new $(4,8);u.fillRandom(e),u=u.evolve(),u=u.unfold(),u=u.pad(s+1,1);const g=u.outline(),_=g.gradient().rescale(),a=g.combine(_),d=[];return d.push(Ge(o,i)),d.push(Ge(l,f)),d.push(Ge(c,h)),a.setColors(d),a.setSeed(e),a}asBitmapData(e=!1){const n=this.createColorData(this.colors);return Nn(n,this.width,this.height,e)}asDataUri(e=!1){const n="data:image/webp;base64,",r=this.asBitmapData(e);if(typeof globalThis.btoa=="undefined")return n+Buffer.from(r).toString("base64");{const s=String.fromCharCode(...new Uint8Array(r));return n+btoa(s)}}}function xt(t){let e,n;return{c(){e=he("title"),n=ae(t[0])},m(r,s){S(r,e,s),x(e,n)},p(r,s){s&1&&Xe(n,r[0])},d(r){r&&U(e)}}}function Tn(t){let e,n,r,s=t[0]&&xt(t);const o=t[3].default,i=ln(o,t,t[2],null);return{c(){e=he("svg"),s&&s.c(),n=rt(),i&&i.c(),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"viewBox",t[1]),C(e,"class","svelte-c8tyih")},m(l,f){S(l,e,f),s&&s.m(e,null),x(e,n),i&&i.m(e,null),r=!0},p(l,[f]){l[0]?s?s.p(l,f):(s=xt(l),s.c(),s.m(e,n)):s&&(s.d(1),s=null),i&&i.p&&(!r||f&4)&&fn(i,o,l,l[2],r?cn(o,l[2],f,null):un(l[2]),null),(!r||f&2)&&C(e,"viewBox",l[1])},i(l){r||(I(i,l),r=!0)},o(l){L(i,l),r=!1},d(l){l&&U(e),s&&s.d(),i&&i.d(l)}}}function zn(t,e,n){let{$$slots:r={},$$scope:s}=e,{title:o=null}=e,{viewBox:i}=e;return t.$$set=l=>{"title"in l&&n(0,o=l.title),"viewBox"in l&&n(1,i=l.viewBox),"$$scope"in l&&n(2,s=l.$$scope)},[o,i,s,r]}class xe extends Z{constructor(e){super(),Y(this,e,zn,Tn,J,{title:0,viewBox:1})}}function Dn(t){let e;return{c(){e=he("path"),C(e,"d","M440.65 12.57l4 82.77A247.16 247.16 0 0 0 255.83 8C134.73 8 33.91 94.92 12.29 209.82A12 12 0 0 0 24.09 224h49.05a12 12 0 0 0 11.67-9.26 175.91 175.91 0 0 1 317-56.94l-101.46-4.86a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12H500a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12h-47.37a12 12 0 0 0-11.98 12.57zM255.83 432a175.61 175.61 0 0 1-146-77.8l101.8 4.87a12 12 0 0 0 12.57-12v-47.4a12 12 0 0 0-12-12H12a12 12 0 0 0-12 12V500a12 12 0 0 0 12 12h47.35a12 12 0 0 0 12-12.6l-4.15-82.57A247.17 247.17 0 0 0 255.83 504c121.11 0 221.93-86.92 243.55-201.82a12 12 0 0 0-11.8-14.18h-49.05a12 12 0 0 0-11.67 9.26A175.86 175.86 0 0 1 255.83 432z")},m(n,r){S(n,e,r)},p:N,d(n){n&&U(e)}}}function Hn(t){let e,n;const r=[{viewBox:"0 0 512 512"},t[0]];let s={$$slots:{default:[Dn]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)s=F(s,r[o]);return e=new xe({props:s}),{c(){H(e.$$.fragment)},m(o,i){z(e,o,i),n=!0},p(o,[i]){const l=i&1?Ee(r,[r[0],Ce(o[0])]):{};i&2&&(l.$$scope={dirty:i,ctx:o}),e.$set(l)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){D(e,o)}}}function Vn(t,e,n){return t.$$set=r=>{n(0,e=F(F({},e),j(r)))},e=j(e),[e]}class $n extends Z{constructor(e){super(),Y(this,e,Vn,Hn,J,{})}}function jn(t){let e;return{c(){e=he("path"),C(e,"d","M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z")},m(n,r){S(n,e,r)},p:N,d(n){n&&U(e)}}}function qn(t){let e,n;const r=[{viewBox:"0 0 512 512"},t[0]];let s={$$slots:{default:[jn]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)s=F(s,r[o]);return e=new xe({props:s}),{c(){H(e.$$.fragment)},m(o,i){z(e,o,i),n=!0},p(o,[i]){const l=i&1?Ee(r,[r[0],Ce(o[0])]):{};i&2&&(l.$$scope={dirty:i,ctx:o}),e.$set(l)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){D(e,o)}}}function Kn(t,e,n){return t.$$set=r=>{n(0,e=F(F({},e),j(r)))},e=j(e),[e]}class Wn extends Z{constructor(e){super(),Y(this,e,Kn,qn,J,{})}}function Gn(t){let e;return{c(){e=he("path"),C(e,"d","M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z")},m(n,r){S(n,e,r)},p:N,d(n){n&&U(e)}}}function Qn(t){let e,n;const r=[{viewBox:"0 0 448 512"},t[0]];let s={$$slots:{default:[Gn]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)s=F(s,r[o]);return e=new xe({props:s}),{c(){H(e.$$.fragment)},m(o,i){z(e,o,i),n=!0},p(o,[i]){const l=i&1?Ee(r,[r[0],Ce(o[0])]):{};i&2&&(l.$$scope={dirty:i,ctx:o}),e.$set(l)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){D(e,o)}}}function Xn(t,e,n){return t.$$set=r=>{n(0,e=F(F({},e),j(r)))},e=j(e),[e]}class Jn extends Z{constructor(e){super(),Y(this,e,Xn,Qn,J,{})}}function Yn(t){let e;return{c(){e=he("path"),C(e,"d","M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z")},m(n,r){S(n,e,r)},p:N,d(n){n&&U(e)}}}function Zn(t){let e,n;const r=[{viewBox:"0 0 448 512"},t[0]];let s={$$slots:{default:[Yn]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)s=F(s,r[o]);return e=new xe({props:s}),{c(){H(e.$$.fragment)},m(o,i){z(e,o,i),n=!0},p(o,[i]){const l=i&1?Ee(r,[r[0],Ce(o[0])]):{};i&2&&(l.$$scope={dirty:i,ctx:o}),e.$set(l)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){D(e,o)}}}function er(t,e,n){return t.$$set=r=>{n(0,e=F(F({},e),j(r)))},e=j(e),[e]}class tr extends Z{constructor(e){super(),Y(this,e,er,Zn,J,{})}}function nr(t){let e;return{c(){e=he("path"),C(e,"d","M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z")},m(n,r){S(n,e,r)},p:N,d(n){n&&U(e)}}}function rr(t){let e,n;const r=[{viewBox:"0 0 448 512"},t[0]];let s={$$slots:{default:[nr]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)s=F(s,r[o]);return e=new xe({props:s}),{c(){H(e.$$.fragment)},m(o,i){z(e,o,i),n=!0},p(o,[i]){const l=i&1?Ee(r,[r[0],Ce(o[0])]):{};i&2&&(l.$$scope={dirty:i,ctx:o}),e.$set(l)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){D(e,o)}}}function or(t,e,n){return t.$$set=r=>{n(0,e=F(F({},e),j(r)))},e=j(e),[e]}class sr extends Z{constructor(e){super(),Y(this,e,or,rr,J,{})}}function ir(t){let e;return{c(){e=he("path"),C(e,"d","M439.15 453.06L297.17 384l141.99-69.06c7.9-3.95 11.11-13.56 7.15-21.46L432 264.85c-3.95-7.9-13.56-11.11-21.47-7.16L224 348.41 37.47 257.69c-7.9-3.95-17.51-.75-21.47 7.16L1.69 293.48c-3.95 7.9-.75 17.51 7.15 21.46L150.83 384 8.85 453.06c-7.9 3.95-11.11 13.56-7.15 21.47l14.31 28.63c3.95 7.9 13.56 11.11 21.47 7.15L224 419.59l186.53 90.72c7.9 3.95 17.51.75 21.47-7.15l14.31-28.63c3.95-7.91.74-17.52-7.16-21.47zM150 237.28l-5.48 25.87c-2.67 12.62 5.42 24.85 16.45 24.85h126.08c11.03 0 19.12-12.23 16.45-24.85l-5.5-25.87c41.78-22.41 70-62.75 70-109.28C368 57.31 303.53 0 224 0S80 57.31 80 128c0 46.53 28.22 86.87 70 109.28zM280 112c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32zm-112 0c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32z")},m(n,r){S(n,e,r)},p:N,d(n){n&&U(e)}}}function lr(t){let e,n;const r=[{viewBox:"0 0 448 512"},t[0]];let s={$$slots:{default:[ir]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)s=F(s,r[o]);return e=new xe({props:s}),{c(){H(e.$$.fragment)},m(o,i){z(e,o,i),n=!0},p(o,[i]){const l=i&1?Ee(r,[r[0],Ce(o[0])]):{};i&2&&(l.$$scope={dirty:i,ctx:o}),e.$set(l)},i(o){n||(I(e.$$.fragment,o),n=!0)},o(o){L(e.$$.fragment,o),n=!1},d(o){D(e,o)}}}function cr(t,e,n){return t.$$set=r=>{n(0,e=F(F({},e),j(r)))},e=j(e),[e]}class fr extends Z{constructor(e){super(),Y(this,e,cr,lr,J,{})}}const ur=t=>e=>e===-1?t-1:e===t?0:e,ar=(t,e)=>e.map(ur(t)),dr=({y:t,x:e})=>[-1,0,1].reduce((n,r,s,o)=>o.reduce((i,l)=>l||r?[...i,[t+r,e+l]]:i,n),[]),hr=t=>e=>(([n,r])=>t[n][r])(ar(t.length,e)),pr=(t,e)=>dr(e).map(hr(t)).filter(Boolean).length,mr=(t,e)=>(n,r)=>{const s=t.survive(r),o=t.spawn(r),i=Math.random()<e,l=!s;return n?!(l||!o&&i):o||s&&i},gr=(t,e)=>t.map((n,r)=>n.map((s,o)=>e(!!s,pr(t,{y:r,x:o})))),Ut=t=>{const e=n=>t===n;return e.label=String(t),e},G=t=>{const e=n=>t.includes(n);return e.label=t.join(""),e},St=(t,e)=>{const n=r=>r>=t&&r<=e;n.label="";for(let r=t;r<e;r++)n.label=n.label+String(r);return n},br=[{description:"Normal life",rules:{spawn:Ut(3),survive:G([2,3])},gridFillPercentage:.2,mutation:2e-4},{description:"Inverted colors",rules:{spawn:G([0,1,2,3,4,7,8]),survive:G([0,1,2,3,4,6,7,8])},gridFillPercentage:.8,mutation:2e-4},{description:"High life",rules:{spawn:G([3,6]),survive:G([2,3])},gridFillPercentage:.1,mutation:2e-4},{description:"Maze",rules:{spawn:Ut(3),survive:St(1,5)},gridFillPercentage:.05,mutation:0},{description:"Mist",rules:{spawn:G([3,4,5,8]),survive:G([0,5,6,7,8])},gridFillPercentage:.175,mutation:5e-5},{description:"Growing cells",rules:{spawn:G([4,5]),survive:St(2,5)},gridFillPercentage:.15,mutation:3e-4},{description:"Growing cells inverted colors",rules:{spawn:G([0,1,2,7,8]),survive:G([0,1,2,5,6,7,8])},gridFillPercentage:.85,mutation:3e-4}],_r=br[0],{document:Qe}=an;function wr(t){let e,n,r,s,o,i,l,f,c,h,u,g,y,_,a,d,A,w,M,ee;s=new Wn({}),f=new $n({}),g=new sr({});const V=[Ar,vr],O=[];function T(v,B){return v[2]?0:1}return d=T(t),A=O[d]=V[d](t),{c(){e=P("div"),n=P("button"),r=P("div"),H(s.$$.fragment),o=Q(),i=P("button"),l=P("div"),H(f.$$.fragment),c=Q(),h=P("button"),u=P("div"),H(g.$$.fragment),y=Q(),_=P("button"),a=P("div"),A.c(),C(r,"class","button-icon"),p(r,"color",t[6]),n.disabled=t[2],C(l,"class","button-icon"),p(l,"color",t[6]),i.disabled=t[2],C(u,"class","button-icon"),p(u,"color",t[6]),h.disabled=t[2],C(a,"class","button-icon"),p(a,"color",t[6]),C(e,"class","container")},m(v,B){S(v,e,B),x(e,n),x(n,r),z(s,r,null),x(e,o),x(e,i),x(i,l),z(f,l,null),x(e,c),x(e,h),x(h,u),z(g,u,null),x(e,y),x(e,_),x(_,a),O[d].m(a,null),w=!0,M||(ee=[me(n,"click",t[13].random),me(i,"click",t[13].reset),me(h,"click",t[13].next),me(_,"click",t[13].toggleAutoPlay)],M=!0)},p(v,B){(!w||B[0]&64)&&p(r,"color",v[6]),(!w||B[0]&4)&&(n.disabled=v[2]),(!w||B[0]&64)&&p(l,"color",v[6]),(!w||B[0]&4)&&(i.disabled=v[2]),(!w||B[0]&64)&&p(u,"color",v[6]),(!w||B[0]&4)&&(h.disabled=v[2]);let R=d;d=T(v),d!==R&&(st(),L(O[R],1,1,()=>{O[R]=null}),it(),A=O[d],A||(A=O[d]=V[d](v),A.c()),I(A,1),A.m(a,null)),(!w||B[0]&64)&&p(a,"color",v[6])},i(v){w||(I(s.$$.fragment,v),I(f.$$.fragment,v),I(g.$$.fragment,v),I(A),w=!0)},o(v){L(s.$$.fragment,v),L(f.$$.fragment,v),L(g.$$.fragment,v),L(A),w=!1},d(v){v&&U(e),D(s),D(f),D(g),O[d].d(),M=!1,de(ee)}}}function yr(t){let e,n,r,s,o,i,l,f,c,h;return s=new fr({}),{c(){e=P("button"),n=P("div"),r=P("div"),H(s.$$.fragment),o=Q(),i=P("div"),l=ae("oh no, it's dead! respawn"),C(r,"class","button-icon"),p(r,"color",t[6]),p(r,"margin-right","10px"),p(i,"color",t[6]),p(i,"font-weight","bold"),C(n,"class","container")},m(u,g){S(u,e,g),x(e,n),x(n,r),z(s,r,null),x(n,o),x(n,i),x(i,l),f=!0,c||(h=me(e,"click",t[13].reset),c=!0)},p(u,g){(!f||g[0]&64)&&p(r,"color",u[6]),(!f||g[0]&64)&&p(i,"color",u[6])},i(u){f||(I(s.$$.fragment,u),f=!0)},o(u){L(s.$$.fragment,u),f=!1},d(u){u&&U(e),D(s),c=!1,h()}}}function vr(t){let e,n;return e=new Jn({}),{c(){H(e.$$.fragment)},m(r,s){z(e,r,s),n=!0},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){L(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Ar(t){let e,n;return e=new tr({}),{c(){H(e.$$.fragment)},m(r,s){z(e,r,s),n=!0},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){L(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Er(t){let e;return{c(){e=P("canvas"),p(e,"width","100%")},m(n,r){S(n,e,r),t[24](e)},p:N,d(n){n&&U(e),t[24](null)}}}function Cr(t){let e,n;return{c(){e=P("img"),_t(e.src,n=t[4])||C(e,"src",n),C(e,"alt",t[0]),p(e,"width",t[3]+"px"),p(e,"image-rendering","pixelated")},m(r,s){S(r,e,s)},p(r,s){s[0]&16&&!_t(e.src,n=r[4])&&C(e,"src",n),s[0]&1&&C(e,"alt",r[0]),s[0]&8&&p(e,"width",r[3]+"px")},d(r){r&&U(e)}}}function Pt(t){let e,n,r,s,o;return{c(){e=P("div"),n=ae("generation "),r=ae(t[8]),s=ae(`
~ max cells `),o=ae(t[10]),p(e,"width","100%"),p(e,"font-weight","bold"),p(e,"text-align","center"),p(e,"line-height","34px")},m(i,l){S(i,e,l),x(e,n),x(e,r),x(e,s),x(e,o)},p(i,l){l[0]&256&&Xe(r,i[8]),l[0]&1024&&Xe(o,i[10])},d(i){i&&U(e)}}}function xr(t){let e,n,r,s,o,i,l,f,c,h,u,g,y,_,a,d,A,w,M,ee;Qe.title=e=t[11];const V=[yr,wr],O=[];function T(m,b){return m[9]?0:1}h=T(t),u=O[h]=V[h](t);function v(m,b){return m[7]=="image"?Cr:Er}let B=v(t),R=B(t),E=t[7]=="canvas"&&Pt(t);return{c(){n=P("style"),n.textContent=`html {
margin: 0;
padding: 0;
}
body {
font-family: "verdana";
font-size: 12px;
color: #ffffff;
background: #e94000;
margin: 0;
padding: 0;
}
a {
color: #ffd400;
text-decoration: none;
}
a:active {
color: #ffd400;
text-decoration: none;
}
a:hover {
color: #ffffff;
text-decoration: none;
}
.color {
color: #ffd400;
}
button {
color: #ffd400;
background-color: #000000;
border: none;
outline: none;
transition: all 0.15s ease-in;
cursor: pointer;
padding: 14px;
}
button:disabled {
color: #ffffff;
background-color: #464b4b;
box-shadow: none;
cursor: not-allowed;
}
input:disabled {
cursor: not-allowed;
}
.button-icon {
width: 15px;
height: 15px;
}
.container {
display: flex;
justify-content: space-between;
}
/* .art {
overflow: hidden;
}
@media screen and (max-width: 500px) {
.art {
width: 500px;
overflow: hidden;
padding: 0 20px;
}
} */`,r=Q(),s=P("div"),o=P("input"),i=Q(),l=P("div"),f=P("div"),c=Q(),u.c(),g=Q(),y=P("div"),_=Q(),a=P("div"),R.c(),d=Q(),E&&E.c(),A=rt(),C(o,"type","text"),p(o,"width","100%"),p(o,"margin","10px 0 0 0"),p(o,"outline","0"),p(o,"font-size","24px"),p(o,"border-width","0"),p(o,"border-color","#ffffff"),p(o,"background-color","#e94000"),p(o,"color","#ffffff"),p(o,"border-style","solid"),p(o,"border-radius","0px"),p(o,"text-align","center"),p(o,"text-transform","lowercase"),o.disabled=t[2],C(o,"autocapitalize","off"),C(o,"autocomplete","off"),C(o,"autocorrect","off"),C(o,"spellcheck","false"),o.required=!0,C(s,"class","container"),p(f,"margin-bottom","25px"),p(f,"border","1px solid #ffffff"),p(l,"max-width","215px"),p(l,"margin","auto"),p(l,"text-align","center"),p(y,"margin-top","25px"),C(a,"class","art"),p(a,"max-width",t[3]+"px"),p(a,"margin","auto")},m(m,b){x(Qe.head,n),S(m,r,b),S(m,s,b),x(s,o),t[22](o),wt(o,t[0]),S(m,i,b),S(m,l,b),x(l,f),x(l,c),O[h].m(l,null),S(m,g,b),S(m,y,b),S(m,_,b),S(m,a,b),R.m(a,null),S(m,d,b),E&&E.m(m,b),S(m,A,b),w=!0,M||(ee=[me(o,"input",t[23]),me(o,"keyup",t[12])],M=!0)},p(m,b){(!w||b[0]&2048)&&e!==(e=m[11])&&(Qe.title=e),(!w||b[0]&4)&&(o.disabled=m[2]),b[0]&1&&o.value!==m[0]&&wt(o,m[0]);let q=h;h=T(m),h===q?O[h].p(m,b):(st(),L(O[q],1,1,()=>{O[q]=null}),it(),u=O[h],u?u.p(m,b):(u=O[h]=V[h](m),u.c()),I(u,1),u.m(l,null)),B===(B=v(m))&&R?R.p(m,b):(R.d(1),R=B(m),R&&(R.c(),R.m(a,null))),(!w||b[0]&8)&&p(a,"max-width",m[3]+"px"),m[7]=="canvas"?E?E.p(m,b):(E=Pt(m),E.c(),E.m(A.parentNode,A)):E&&(E.d(1),E=null)},i(m){w||(I(u),w=!0)},o(m){L(u),w=!1},d(m){m&&(U(r),U(s),U(i),U(l),U(g),U(y),U(_),U(a),U(d),U(A)),U(n),t[22](null),O[h].d(),R.d(),E&&E.d(m),M=!1,de(ee)}}}let re="HASHART",oe="lower",se=0,Ur=!1,ie=255,le="#e94000",ce=255,fe="#000000",ue=255,Sr=100,Pr=0,Or="#000000";function Ne(t,e){return t.sort(function(){return .5-Math.random()}).slice(0,e)[0]}function Br(t,e,n){let r,s,o,i,l,f,c,h,u,g,y,_,a,d=""+Math.floor(Math.random()*1e4);try{d=document.getElementById("h").getAttribute("s"),console.log("seed from script src",d)}catch{console.log("script src seed missing")}const w=new URLSearchParams(window.location.search).get("s");w&&(d=w);let M,ee,V,O,T,v,B,R=["#ffd400","#00a900","#ff002c","#ff3cae","#b36cff","#6089ff","#00a28a","#c18300","#959898","#ffffff"],E=Ne(R,1),m=_r.rules,b=!1,q,Re="image";function Qt(k,be){k=T.getContext("2d"),n(19,c=0),be.forEach((ne,K)=>{ne.forEach((W,ke)=>{W&&n(19,c++,c);let Ue=E;W||(Ue=Or),k.fillStyle=Ue,k.fillRect(ke*f,K*f,f,f)})}),c===h?n(18,y++,y):(n(18,y=1),h=c),c>u&&n(10,u=c)}pn(()=>{B.focus(),n(4,O=te(d,re,oe,se,E,ie,le,ce,fe,ue).src),n(14,V=te(d,re,oe,se,E,ie,le,ce,fe,ue).matrix)});const Xt=k=>{if(b){cancelAnimationFrame(q),n(2,b=!1);return}pe.clear(),n(0,d=k.target.value),n(6,E=Ne(R,1)),n(4,O=te(d,re,oe,se,E,ie,le,ce,fe,ue).src),n(14,V=te(d,re,oe,se,E,ie,le,ce,fe,ue).matrix)};function te(k,be,ne,K,W,ke,Ue,pt,mt,gt){return M=$.generate(k,be,ne,K,W,ke,Ue,pt,mt,gt),ee=$.generate(k,be,ne,11,W,ke,Ue,pt,mt,gt),{src:M.asDataUri(Ur),matrix:Jt(ee.values,32)}}const pe={menu(){alert("menu")},clear(){if(b){cancelAnimationFrame(q),n(2,b=!1);return}n(7,Re="image"),n(8,i=-1),n(19,c=0),h=0,n(10,u=0),n(18,y=1),n(17,_=10),n(9,g=!1)},random(){pe.clear(),n(0,d=""+Math.floor(Math.random()*1e4)),n(6,E=Ne(R,1)),n(4,O=te(d,re,oe,se,E,ie,le,ce,fe,ue).src),n(14,V=te(d,re,oe,se,E,ie,le,ce,fe,ue).matrix)},reset(){pe.clear(),n(6,E=Ne(R,1)),n(4,O=te(d,re,oe,se,E,ie,le,ce,fe,ue).src),n(14,V=te(d,re,oe,se,E,ie,le,ce,fe,ue).matrix)},next(){n(7,Re="canvas"),n(16,o=gr(o,a)),n(8,i++,i)},play(){n(7,Re="canvas")&&pe.next(),b&&setTimeout(function(){n(15,q=requestAnimationFrame(pe.play))},Sr)},toggleAutoPlay(){if(b){cancelAnimationFrame(q),n(2,b=!1);return}n(2,b=!0),pe.play()}};function Jt(k,be){let ne=[],K,W;for(K=0,W=-1;K<k.length;K++)K%be===0&&(W++,ne[W]=[]),k[K]!=1&&(k[K]=0),ne[W].push(k[K]);return ne}function Yt(k){ze[k?"unshift":"push"](()=>{B=k,n(5,B)})}function Zt(){d=this.value,n(0,d)}function en(k){ze[k?"unshift":"push"](()=>{T=k,n(1,T),n(21,l),n(20,f),n(3,r),n(33,v),n(16,o),n(19,c),n(18,y),n(17,_),n(2,b),n(15,q),n(14,V)})}return t.$$.update=()=>{t.$$.dirty[0]&1&&n(11,s=`hash.art blocks of life: ${d}`),t.$$.dirty[0]&16384&&n(16,o=V),t.$$.dirty[0]&4161550&&T&&l&&f&&(n(1,T.height=r/(r/250)+5,T),n(1,T.width=r/(r/250)+5,T),Qt(v,o),(c===0||y===_)&&(n(9,g=!0),b&&(cancelAnimationFrame(q),n(2,b=!1))))},n(3,r=500),n(8,i=-1),n(21,l=16),n(20,f=8),n(19,c=0),h=0,n(10,u=0),n(9,g=!1),n(18,y=1),n(17,_=10),a=mr(m,Pr),[d,T,b,r,O,B,E,Re,i,g,u,s,Xt,pe,V,q,o,_,y,c,f,l,Yt,Zt,en]}class Ir extends Z{constructor(e){super(),Y(this,e,Br,xr,J,{},null,[-1,-1])}}const Ot={"/":Ir};function Mr(t){let e,n,r;var s=t[0];function o(i,l){return{}}return s&&(e=yt(s,o())),{c(){e&&H(e.$$.fragment),n=rt()},m(i,l){e&&z(e,i,l),S(i,n,l),r=!0},p(i,[l]){if(l&1&&s!==(s=i[0])){if(e){st();const f=e;L(f.$$.fragment,1,0,()=>{D(f,1)}),it()}s?(e=yt(s,o()),H(e.$$.fragment),I(e.$$.fragment,1),z(e,n.parentNode,n)):e=null}},i(i){r||(e&&I(e.$$.fragment,i),r=!0)},o(i){e&&L(e.$$.fragment,i),r=!1},d(i){i&&U(n),e&&D(e,i)}}}function Rr(t,e,n){let r,s;return sn(t,Ve,o=>n(1,s=o)),X.sideEffect=!1,t.$$.update=()=>{t.$$.dirty&2&&n(0,r=Ot[s]||Ot["/"])},[r,s]}class kr extends Z{constructor(e){super(),Y(this,e,Rr,Mr,J,{})}}new kr({target:document.body});
</script>
<style>
svg.svelte-c8tyih{stroke:currentColor;fill:currentColor;stroke-width:0;width:100%;height:auto;max-height:100%}
</style>
</head>
<body class="bg-gray-900">
</body>
</html>