diff --git a/demoBouncyBubbles01/index.html b/demoBouncyBubbles01/index.html new file mode 100644 index 0000000..e828cdb --- /dev/null +++ b/demoBouncyBubbles01/index.html @@ -0,0 +1,25 @@ + + + + + OPENRNDR + + + + + + + + diff --git a/demoBouncyBubbles01/openrndr-program.js b/demoBouncyBubbles01/openrndr-program.js new file mode 100644 index 0000000..f66a700 --- /dev/null +++ b/demoBouncyBubbles01/openrndr-program.js @@ -0,0 +1,2 @@ +!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["openrndr-js-template"]=n():t["openrndr-js-template"]=n()}(globalThis,(()=>{return t={36:(t,n)=>{var i,e,r,s;"object"!=typeof globalThis&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__),void 0===Math.imul&&(Math.imul=function(t,n){return(4294901760&t)*(65535&n)+(65535&t)*(0|n)|0}),void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(t){return null!=t&&null!=t.__proto__&&t.__proto__.__proto__===Int8Array.prototype.__proto__}),void 0===Array.prototype.fill&&Object.defineProperty(Array.prototype,"fill",{value:function(t){if(null==this)throw new TypeError("this is null or not defined");for(var n=Object(this),i=n.length>>>0,e=0|arguments[1],r=e<0?Math.max(i+e,0):Math.min(e,i),s=arguments[2],u=void 0===s?i:0|s,_=u<0?Math.max(i+u,0):Math.min(u,i);r<_;)n[r]=t,r++;return n}}),[Int8Array,Int16Array,Uint16Array,Int32Array,Float32Array,Float64Array].forEach((function(t){void 0===t.prototype.fill&&Object.defineProperty(t.prototype,"fill",{value:Array.prototype.fill})})),void 0===Math.clz32&&(Math.clz32=(r=Math.log,s=Math.LN2,function(t){var n=t>>>0;return 0===n?32:31-(r(n)/s|0)|0})),void 0===String.prototype.startsWith&&Object.defineProperty(String.prototype,"startsWith",{value:function(t,n){return n=n||0,this.lastIndexOf(t,n)===n}}),void 0===(e="function"==typeof(i=function(t){"use strict";var n,i,e,r,s,u,_,o,h,a,l,f,c,v,d,$,w,g,p,b,j,m,x,y,k,q,C,S,E,z,R,A,L,I,T,N,M,O,B,D,G,V,P,F,W,U,H,K,Y,X,Q,Z,J,tt=Math.imul,nt=ArrayBuffer.isView,it=Math.clz32;function et(){}function rt(){}function st(t){switch(t.length){case 0:return au();case 1:return n=t[0],ut(i=[n],re(i.length));default:return ut(t,function(t,n){return function(t,n,i){ee(t,n,i),Me.call(i)}(t,1,n),n}(t.length,on(dn(Me))))}var n,i}function ut(t,n){for(var i=0,e=t.length;i1&&n.e(i),!(s<0||o<=s))break t;Au(n,l,_)}return s>=0&&o>s&&n.e(u),n.e(r),n}(t,as(),n,i,e,r,s,u).toString()}function ht(t,n,i,e,r,s,u){return n=n===j?", ":n,i=i===j?"":i,e=e===j?"":e,r=r===j?-1:r,s=s===j?"...":s,u=u===j?null:u,at(t,as(),n,i,e,r,s,u).toString()}function at(t,n,i,e,r,s,u,_){i=i===j?", ":i,e=e===j?"":e,r=r===j?"":r,s=s===j?-1:s,u=u===j?"...":u,_=_===j?null:_,n.e(e);var o=0,h=t.f();t:for(;h.g();){var a=h.h();if((o=o+1|0)>1&&n.e(i),!(s<0||o<=s))break t;Au(n,a,_)}return s>=0&&o>s&&n.e(u),n.e(r),n}function lt(t,n){for(var i=t.f();i.g();){var e=i.h();n.d(e)}return n}function ft(t){return ni(t,zt)?ct(t):lt(t,Oi())}function ct(t){return Di(t)}function vt(t){if(ni(t,Et))return function(t){var n;switch(t.i()){case 0:throw ar("List is empty.");case 1:n=t.j(0);break;default:throw Ze("List has more than one element.")}return n}(t);var n=t.f();if(!n.g())throw ar("Collection is empty.");var i=n.h();if(n.g())throw Ze("Collection has more than one element.");return i}function dt(t,n){return n<=-2147483648?Cu().r_1:Xn(t,n-1|0)}function $t(t,n){return tn?n:t}function pt(t,n,i,e,r,s,u){return n=n===j?", ":n,i=i===j?"":i,e=e===j?"":e,r=r===j?-1:r,s=s===j?"...":s,u=u===j?null:u,function(t,n,i,e,r,s,u,_){i=i===j?", ":i,e=e===j?"":e,r=r===j?"":r,s=s===j?-1:s,u=u===j?"...":u,_=_===j?null:_,n.e(e);var o=0,h=t.f();t:for(;h.g();){var a=h.h();if((o=o+1|0)>1&&n.e(i),!(s<0||o<=s))break t;Au(n,a,_)}return s>=0&&o>s&&n.e(u),n.e(r),n}(t,as(),n,i,e,r,s,u).toString()}function bt(t){this.t_1=t}function jt(t,n){if(!(n>=0))throw Ze(hn("Requested character count "+n+" is less than zero."));var i=gt(n,t.length);return t.substring(i)}function mt(t,n){if(!(n>=0))throw Ze(hn("Requested character count "+n+" is less than zero."));var i=gt(n,t.length);return t.substring(0,i)}function xt(t){return t}function yt(t,n){return t-n|0}function kt(t,n){return t-n|0}function qt(t){return t}function Ct(t){return String.fromCharCode(t)}function St(){}function Et(){}function zt(){}function Rt(){}function At(){}function Lt(){}function It(){}function Tt(t,n){this.a1_1=t,this.b1_1=n}function Nt(t){var n=null==t?null:hn(t);return null==n?"null":n}function Mt(){n=this,this.e1_1=new Ot(0,-2147483648),this.f1_1=new Ot(-1,2147483647),this.g1_1=8,this.h1_1=64}function Ot(t,i){null==n&&new Mt,rt.call(this),this.i1_1=t,this.j1_1=i}function Bt(t){for(var n=1,i=[],e=0,r=t.length;e>5,c=new Int32Array(f+1|0),v=1<<(31&l),c[f]=c[f]|v,c);null!=a&&(i.push(a),u=Math.max(u,a.length)),u>n&&(n=u)}var l,f,c,v;return function(t,n){for(var i=0,e=new Int32Array(t);i65535)throw Ze("Invalid Char code: "+e);i=function(t){return function(t){return 65535&t}(function(t){return t<<16>>16}(Kn(t)))}(e)}else i=t.b(n);return i}function Zt(t){return"string"==typeof t}function Jt(t){return Zt(t)?t.length:t.a()}function tn(t,n,i){return Zt(t)?t.substring(n,i):t.c(n,i)}function nn(t){return hn(t)}function en(t,n){var i;switch(typeof t){case"number":i="number"==typeof n?rn(t,n):n instanceof Ot?rn(t,n.s1()):sn(t,n);break;case"string":case"boolean":i=sn(t,n);break;default:i=function(t,n){return t.d1(n)}(t,n)}return i}function rn(t,n){var i;if(tn)i=1;else if(t===n){var e;if(0!==t)e=0;else{var r=1/t;e=r===1/n?0:r<0?-1:1}i=e}else i=t!=t?n!=n?0:1:-1;return i}function sn(t,n){return tn?1:0}function un(t){if(!("kotlinHashCodeValue$"in t)){var n=_n(),i=new Object;i.value=n,i.enumerable=!1,Object.defineProperty(t,"kotlinHashCodeValue$",i)}return t.kotlinHashCodeValue$}function _n(){return 4294967296*Math.random()|0}function on(t){return t=t===j?null:t,Object.create(t)}function hn(t){return null==t?"null":Jn(t)?"[...]":"function"!=typeof t.toString?function(t){return Object.prototype.toString.call(t)}(t):t.toString()}function an(t,n){return null==t?null==n:null!=n&&("object"==typeof t&&"function"==typeof t.equals?t.equals(n):t!=t?n!=n:"number"==typeof t&&"number"==typeof n?t===n&&(0!==t||1/t==1/n):t===n)}function ln(t){if(null==t)return 0;var n,i=typeof t;switch(i){case"object":n="function"==typeof t.hashCode?t.hashCode():un(t);break;case"function":n=un(t);break;case"number":n=Yt(t);break;case"boolean":n=fn(t);break;case"string":n=cn(String(t));break;case"bigint":n=function(t){for(var n=BigInt(32),i=BigInt(4294967295),e=t<0?-t:t,r=0,s=t<0?-1:1;0!=e;){var u=Number(e&i);r=tt(31,r)+u|0,e>>=n}return tt(r,s)}(t);break;case"symbol":n=function(t){var n=(e=t,Symbol.keyFor(e)!=j?(o===j&&(o=new Map),o):(h===j&&(h=new WeakMap),h)),i=n.get(t);var e;if(i!==j)return i;var r=_n();return n.set(t,r),r}(t);break;default:n=function(){throw new Error("Unexpected typeof `"+i+"`")}()}return n}function fn(t){return t?1231:1237}function cn(t){var n=0,i=0,e=t.length-1|0;if(i<=e)do{var r=i;i=i+1|0;var s=t.charCodeAt(r);n=tt(n,31)+s|0}while(r!==e);return n}function vn(t,n){null!=Error.captureStackTrace?Error.captureStackTrace(t,n):t.stack=(new Error).stack}function dn(t){return t.prototype}function $n(t,n,i){Error.call(t),function(t,n,i){var e=li(Object.getPrototypeOf(t));if(!(1&e)){var r;if(null==n){var s;if(null!==n){var u=null==i?null:i.toString();s=null==u?j:u}else s=j;r=s}else r=n;t.message=r}2&e||(t.cause=i),t.name=Object.getPrototypeOf(t).constructor.name}(t,n,i)}function wn(t){var n;return null==t?function(){throw br()}():n=t,n}function gn(){throw yr()}function pn(){return Gn(),a}function bn(){return Gn(),l}function jn(){return Gn(),f}function mn(){return Gn(),v}function xn(){return Gn(),d}function yn(t,n){if(Gn(),Rn(t,n))return 0;var i=Ln(t),e=Ln(n);return i&&!e?-1:!i&&e?1:Ln(qn(t,n))?-1:1}function kn(t,n){Gn();var i=t.j1_1>>>16|0,e=65535&t.j1_1,r=t.i1_1>>>16|0,s=65535&t.i1_1,u=n.j1_1>>>16|0,_=65535&n.j1_1,o=n.i1_1>>>16|0,h=0,a=0,l=0,f=0;return h=(h=h+((a=(a=a+((l=(l=l+((f=f+(s+(65535&n.i1_1)|0)|0)>>>16|0)|0)+(r+o|0)|0)>>>16|0)|0)+(e+_|0)|0)>>>16|0)|0)+(i+u|0)|0,new Ot((l&=65535)<<16|(f&=65535),(h&=65535)<<16|(a&=65535))}function qn(t,n){return Gn(),kn(t,n.p1())}function Cn(t,n){if(Gn(),In(t))return pn();if(In(n))return pn();if(Rn(t,mn()))return Tn(n)?mn():pn();if(Rn(n,mn()))return Tn(t)?mn():pn();if(Ln(t))return Ln(n)?Cn(Nn(t),Nn(n)):Nn(Cn(Nn(t),n));if(Ln(n))return Nn(Cn(t,Nn(n)));if(Mn(t,xn())&&Mn(n,xn()))return On(En(t)*En(n));var i=t.j1_1>>>16|0,e=65535&t.j1_1,r=t.i1_1>>>16|0,s=65535&t.i1_1,u=n.j1_1>>>16|0,_=65535&n.j1_1,o=n.i1_1>>>16|0,h=65535&n.i1_1,a=0,l=0,f=0,c=0;return f=f+((c=c+tt(s,h)|0)>>>16|0)|0,c&=65535,l=(l=l+((f=f+tt(r,h)|0)>>>16|0)|0)+((f=(f&=65535)+tt(s,o)|0)>>>16|0)|0,f&=65535,a=(a=(a=a+((l=l+tt(e,h)|0)>>>16|0)|0)+((l=(l&=65535)+tt(r,o)|0)>>>16|0)|0)+((l=(l&=65535)+tt(s,_)|0)>>>16|0)|0,l&=65535,a=a+(((tt(i,h)+tt(e,o)|0)+tt(r,_)|0)+tt(s,u)|0)|0,new Ot(f<<16|c,(a&=65535)<<16|l)}function Sn(t,n){if(Gn(),In(n))throw Xe("division by zero");if(In(t))return pn();if(Rn(t,mn())){if(Rn(n,bn())||Rn(n,jn()))return mn();if(Rn(n,mn()))return bn();var i=function(t,n){Gn();var i=63&n;return 0===i?t:i<32?new Ot(t.i1_1<>>(32-i|0)):new Ot(0,t.i1_1<>>i|t.j1_1<<32-i,t.j1_1>>i):new Ot(t.j1_1>>i-32,t.j1_1>=0?0:-1)}(t,1).o1(n),1);return Rn(i,pn())?Ln(n)?bn():jn():kn(i,qn(t,Cn(n,i)).o1(n))}if(Rn(n,mn()))return pn();if(Ln(t))return Ln(n)?Nn(t).o1(Nn(n)):Nn(Nn(t).o1(n));if(Ln(n))return Nn(t.o1(Nn(n)));for(var e=pn(),r=t;Dn(r,n);){for(var s=En(r)/En(n),u=Math.max(1,Math.floor(s)),_=Math.ceil(Math.log(u)/Math.LN2),o=_<=48?1:Math.pow(2,_-48),h=On(u),a=Cn(h,n);Ln(a)||Bn(a,r);)a=Cn(h=On(u-=o),n);In(h)&&(h=bn()),e=kn(e,h),r=qn(r,a)}return e}function En(t){return Gn(),4294967296*t.j1_1+function(t){return Gn(),t.i1_1>=0?t.i1_1:4294967296+t.i1_1}(t)}function zn(t,n){if(Gn(),n<2||36=0x8000000000000000)return Gn(),c;if(t<0)return Nn(On(-t));var i=4294967296;return new Ot(t%i|0,t/i|0)}function Bn(t,n){return Gn(),yn(t,n)>0}function Dn(t,n){return Gn(),yn(t,n)>=0}function Gn(){$||($=!0,a=An(0),l=An(1),f=An(-1),c=new Ot(-1,2147483647),v=new Ot(0,-2147483648),d=An(16777216))}function Vn(t,n,i,e,r,s){return{kind:t,simpleName:n,associatedObjectKey:e,associatedObjects:r,suspendArity:s,$kClass$:j,defaultConstructor:i,iid:"interface"===t?(w===j&&(w=0),w=w+1|0):j}}function Pn(t,n,i,e,r,s,u,_,o){null!=r&&(n.prototype=Object.create(r.prototype),n.prototype.constructor=n);var h=Vn(t,i,e,_,o,u);n.$metadata$=h,null!=s&&((an(h.iid,j)?n.prototype:n).$imask$=Bt(s))}function Fn(t,n,i,e,r,s,u,_){Pn("class",t,n,i,e,r,s,u,_)}function Wn(t,n,i,e,r,s,u,_){Pn("object",t,n,i,e,r,s,u,_)}function Un(t,n,i,e,r,s,u,_){Pn("interface",t,n,i,e,r,s,u,_)}function Hn(t,n,i,e){Wn(t,"Companion",j,n,i,e,j,j)}function Kn(t){return t instanceof Ot?t.r1():function(t){return t>2147483647?2147483647:t<-2147483648?-2147483648:0|t}(t)}function Yn(){this.MIN_VALUE=5e-324,this.MAX_VALUE=17976931348623157e292,this.POSITIVE_INFINITY=1/0,this.NEGATIVE_INFINITY=-1/0,this.NaN=NaN,this.SIZE_BYTES=8,this.SIZE_BITS=64}function Xn(t,n){return new Su(t,n)}function Qn(){return Zn(),Vn("class",j,j,j,j,j)}function Zn(){if(!b){b=!0;var t=[Qn(),Qn()],n=[Qn(),Qn()];p=[t,n,[Qn(),Qn()]]}}function Jn(t){return ti(t)||nt(t)}function ti(t){return Array.isArray(t)}function ni(t,n){return function(t,n){var i=t.$imask$;return null!=i&&function(t,n){var i=n>>5;if(i>t.length)return!1;var e=1<<(31&n);return!!(t[i]&e)}(i,n)}(t,n.$metadata$.iid)}function ii(t){return!!ti(t)&&!t.$type$}function ei(t){return ti(t)&&"BooleanArray"===t.$type$}function ri(t){return t instanceof Int8Array}function si(t){return t instanceof Int16Array}function ui(t){return t instanceof Uint16Array&&"CharArray"===t.$type$}function _i(t){return t instanceof Int32Array}function oi(t){return t instanceof Float32Array}function hi(t){return ti(t)&&"LongArray"===t.$type$}function ai(t){return t instanceof Float64Array}function li(t){var n=t.constructor,i=null==n?null:n.$metadata$,e=null==i?null:i.errorInfo;if(null!=e)return e;var r,s=0;if(fi(t,"message")&&(s|=1),fi(t,"cause")&&(s|=2),3!==s){var u=(r=t,Object.getPrototypeOf(r));u!=Error.prototype&&(s|=li(u))}return null!=i&&(i.errorInfo=s),s}function fi(t,n){return t.hasOwnProperty(n)}function ci(t){return new Vi(t)}function vi(t,n,i,e){i=i===j?0:i,e=e===j?t.length:e,N.e2(i,e,t.length),t.fill(n,i,e)}function di(){m=this,this.g2_1=new Int32Array([48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296])}function $i(){return null==m&&new di,m}function wi(){}function gi(t){this.h2_1=t,qs.call(this)}function pi(){}function bi(t){return function(t){if(t.u())return[];for(var n=t.i(),i=Gt(Array(n),null),e=t.f(),r=0;e.g();){var s=r;r=s+1|0,i[s]=e.h()}return i}(t)}function ji(t){return 0===(n=[t]).length?Oi():Di(new Qs(n,!0));var n}function mi(t){return t}function xi(t){return e=(n=[t]).length,function(t,n){for(var i=0,e=n.length;i=0))throw Ze(hn("capacity must be non-negative."));return Gt(Array(t),null)}function Ii(t,n,i){t.fill(null,n,i)}function Ti(t,n){return function(t,n){if(!(n>=0))throw Ze(hn("Invalid new array size: "+n+"."));return function(t,n,i){var e=t.slice(0,n);void 0!==t.$type$&&(e.$type$=t.$type$);var r=t.length;if(n>r)for(e.length=n;r=0))throw Ze(hn("Negative initial capacity: "+t));return n}(t,on(dn(Vi)))}function Di(t){return function(t,n){var i=ki(t);return Vi.call(n,i),n}(t,on(dn(Vi)))}function Gi(t,n){return N.p3(n,t.i()),n}function Vi(t){null==y&&new Mi,zi.call(this),this.l_1=t,this.m_1=!1}function Pi(t,n){return Ri.call(n),Ki.call(n),n.v3_1=t,n}function Fi(t){return Pi(he(),t),t}function Wi(){return Fi(on(dn(Ki)))}function Ui(t,n){return function(t,n,i){Pi(le(t,n),i)}(t,1,n),n}function Hi(t,n){return Pi(function(t){return function(t,n){return ae(t.i(),n),n.y3(t),n}(t,on(dn(ze)))}(t),n),n}function Ki(){this.w3_1=null}function Yi(t){Ai.call(this),this.z3_1=t}function Xi(t){Qi.call(this,t)}function Qi(t){Ai.call(this),this.d4_1=t}function Zi(t){this.j4_1=t}function Ji(t){Ai.call(this),this.k4_1=t}function te(t,n){return Ai.call(n),se.call(n),n.m4_1=t,n}function ne(t){return te(he(),t),t}function ie(){return ne(on(dn(se)))}function ee(t,n,i){return te(le(t,n),i),i}function re(t){return function(t,n){return ee(t,1,n),n}(t,on(dn(se)))}function se(){}function ue(t,n){return 0===(i=tt($t(n,1),3))?0:1<<31-it(i);var i}function _e(t,n){return it(n)+1|0}function oe(t){if(t.x4_1.u4_1!==t.z4_1)throw $r("The backing map has been modified after this entry was obtained.")}function he(){return ae(8,t=on(dn(ze))),t;var t}function ae(t,n){return ze.call(n,Li(t),null,new Int32Array(t),new Int32Array(ue(0,t)),2,0),n}function le(t,n){return function(t,n,i){if(ae(t,i),!(n>0))throw Ze(hn("Non-positive load factor: "+n));return i}(t,n,on(dn(ze)))}function fe(t){return t.n4_1.length}function ce(t){return t.q4_1.length}function ve(t){t.u4_1=t.u4_1+1|0}function de(t,n){!function(t,n){var i=fe(t)-t.s4_1|0,e=t.s4_1-t.i()|0;return i=n&&e>=(fe(t)/4|0)}(t,n)?function(t,n){if(n<0)throw _r("too many elements");if(n>fe(t)){var i=N.a5(fe(t),n);t.n4_1=Ti(t.n4_1,i);var e=t,r=t.o4_1;e.o4_1=null==r?null:Ti(r,i),t.p4_1=function(t,n){if(!(n>=0))throw Ze(hn("Invalid new array size: "+n+"."));return function(t,n){for(var i=t.length,e=n.length,r=0,s=n;rce(t)&&pe(t,s)}}(t,t.s4_1+n|0):ge(t,!0)}function $e(t){var n=t.o4_1;if(null!=n)return n;var i=Li(fe(t));return t.o4_1=i,i}function we(t,n){return null==n?0:tt(ln(n),-1640531527)>>>t.t4_1|0}function ge(t,n){for(var i=0,e=0,r=t.o4_1;i=0&&(t.n4_1[e]=t.n4_1[i],null!=r&&(r[e]=r[i]),n&&(t.p4_1[e]=s,t.q4_1[s]=e+1|0),e=e+1|0),i=i+1|0}Ii(t.n4_1,e,t.s4_1),null==r||Ii(r,e,t.s4_1),t.s4_1=e}function pe(t,n){ve(t),t.s4_1>t.v4_1&&ge(t,!1),t.q4_1=new Int32Array(n),t.t4_1=_e(0,n);for(var i=0;i0&&an(t.n4_1[r-1|0],n))return r-1|0;if((e=e-1|0)<0)return-1;var s=i;i=s-1|0,0===s&&(i=ce(t)-1|0)}}function me(t,n){t.b4();t:for(;;)for(var i=we(t,n),e=gt(tt(t.r4_1,2),ce(t)/2|0),r=0;;){var s=t.q4_1[i];if(s<=0){if(t.s4_1>=fe(t)){de(t,1);continue t}var u=t.s4_1;t.s4_1=u+1|0;var _=u;return t.n4_1[_]=n,t.p4_1[_]=i,t.q4_1[i]=_+1|0,t.v4_1=t.v4_1+1|0,ve(t),r>t.r4_1&&(t.r4_1=r),_}if(an(t.n4_1[s-1|0],n))return 0|-s;if((r=r+1|0)>e){pe(t,tt(ce(t),2));continue t}var o=i;i=o-1|0,0===o&&(i=ce(t)-1|0)}}function xe(t,n){Ni(t.n4_1,n);var i=t.o4_1;null==i||Ni(i,n),function(t,n){for(var i=n,e=n,r=0,s=gt(tt(t.r4_1,2),ce(t)/2|0);;){var u=i;if(i=u-1|0,0===u&&(i=ce(t)-1|0),(r=r+1|0)>t.r4_1)return t.q4_1[e]=0,x;var _=t.q4_1[i];if(0===_)return t.q4_1[e]=0,x;if(_<0?(t.q4_1[e]=-1,e=i,r=0):(we(t,t.n4_1[_-1|0])-i&ce(t)-1)>=r&&(t.q4_1[e]=_,t.p4_1[_-1|0]=e,e=i,r=0),(s=s-1|0)<0)return t.q4_1[e]=-1,x}}(t,t.p4_1[n]),t.p4_1[n]=-1,t.v4_1=t.v4_1-1|0,ve(t)}function ye(t,n){var i=me(t,n.p()),e=$e(t);if(i>=0)return e[i]=n.q(),!0;var r=e[(0|-i)-1|0];return!an(n.q(),r)&&(e[(0|-i)-1|0]=n.q(),!0)}function ke(){this.b5_1=-1640531527,this.c5_1=8,this.d5_1=2,this.e5_1=-1}function qe(t){this.f5_1=t,this.g5_1=0,this.h5_1=-1,this.i5_1=this.f5_1.u4_1,this.j5()}function Ce(t){qe.call(this,t)}function Se(t){qe.call(this,t)}function Ee(t,n){this.x4_1=t,this.y4_1=n,this.z4_1=this.x4_1.u4_1}function ze(t,n,i,e,r,s){this.n4_1=t,this.o4_1=n,this.p4_1=i,this.q4_1=e,this.r4_1=r,this.s4_1=s,this.t4_1=_e(0,ce(this)),this.u4_1=0,this.v4_1=0,this.w4_1=!1}function Re(){}function Ae(){return Fi(t=on(dn(Te))),Te.call(t),t;var t}function Le(t){return function(t,n){return Ui(t,n),Te.call(n),n}(t,on(dn(Te)))}function Ie(t){return function(t,n){return Hi(t,n),Te.call(n),n}(t,on(dn(Te)))}function Te(){}function Ne(){return ne(t=on(dn(Me))),Me.call(t),t;var t}function Me(){}function Oe(){}function Be(t){Oe.call(this),this.k6_1=t}function De(){Ge.call(this)}function Ge(){Oe.call(this),this.m6_1=""}function Ve(){if(!q){q=!0;var t="undefined"!=typeof process&&process.versions&&!!process.versions.node;k=t?new Be(process.stdout):new De}}function Pe(t){We.call(this),this.p6_1=t,this.q6_1=0,this.r6_1=0,this.s6_1=null,this.t6_1=null,this.u6_1=null;var n=this.p6_1;this.v6_1=null==n?null:n.w6()}function Fe(){}function We(){this.z6_1=null}function Ue(t,n,i){this.o7_1=n,this.p7_1=i,Pe.call(this,ni(t,cu)?t:gn())}function He(t){return $n(t),Qe.call(t),t}function Ke(){var t=He(on(dn(Qe)));return vn(t,Ke),t}function Ye(t,n){return $n(n,t),Qe.call(n),n}function Xe(t){var n=Ye(t,on(dn(Qe)));return vn(n,Xe),n}function Qe(){vn(this,Qe)}function Ze(t){var n=function(t,n){return ur(t,n),Je.call(n),n}(t,on(dn(Je)));return vn(n,Ze),n}function Je(){vn(this,Je)}function tr(t){var n=function(t,n){return ur(t,n),nr.call(n),n}(t,on(dn(nr)));return vn(n,tr),n}function nr(){vn(this,nr)}function ir(){var t,n=(sr(t=on(dn(rr))),rr.call(t),t);return vn(n,ir),n}function er(t){var n=function(t,n){return ur(t,n),rr.call(n),n}(t,on(dn(rr)));return vn(n,er),n}function rr(){vn(this,rr)}function sr(t){return He(t),or.call(t),t}function ur(t,n){return Ye(t,n),or.call(n),n}function _r(t){var n=ur(t,on(dn(or)));return vn(n,_r),n}function or(){vn(this,or)}function hr(){var t,n=(sr(t=on(dn(lr))),lr.call(t),t);return vn(n,hr),n}function ar(t){var n=function(t,n){return ur(t,n),lr.call(n),n}(t,on(dn(lr)));return vn(n,ar),n}function lr(){vn(this,lr)}function fr(){vn(this,fr)}function cr(t){var n=function(t,n){return ur(t,n),vr.call(n),n}(t,on(dn(vr)));return vn(n,cr),n}function vr(){vn(this,vr)}function dr(){var t,n=(sr(t=on(dn(wr))),wr.call(t),t);return vn(n,dr),n}function $r(t){var n=function(t,n){return ur(t,n),wr.call(n),n}(t,on(dn(wr)));return vn(n,$r),n}function wr(){vn(this,wr)}function gr(t){var n=function(t,n){return ur(t,n),pr.call(n),n}(t,on(dn(pr)));return vn(n,gr),n}function pr(){vn(this,pr)}function br(){var t,n=(sr(t=on(dn(jr))),jr.call(t),t);return vn(n,br),n}function jr(){vn(this,jr)}function mr(){var t,n=(sr(t=on(dn(xr))),xr.call(t),t);return vn(n,mr),n}function xr(){vn(this,xr)}function yr(){var t,n=(sr(t=on(dn(kr))),kr.call(t),t);return vn(n,yr),n}function kr(){vn(this,kr)}function qr(t){var n=function(t,n){return ur(t,n),Cr.call(n),n}(t,on(dn(Cr)));return vn(n,qr),n}function Cr(){vn(this,Cr)}function Sr(t,n){return Er(),t*(Er(),S)+n*(Er(),E)}function Er(){z||(z=!0,S=Math.pow(2,-26),E=Math.pow(2,-53))}function zr(){}function Rr(t){this.u7_1=t}function Ar(){R=this,Rr.call(this,Object),this.x7_1="Nothing"}function Lr(){return null==R&&new Ar,R}function Ir(){}function Tr(t,n,i){Rr.call(this,t),this.z7_1=n,this.a8_1=i}function Nr(t){Rr.call(this,t);var n=t.$metadata$;this.c8_1=null==n?null:n.simpleName}function Mr(){}function Or(){return I||(I=!0,A=Gt(Array(0),null)),A}function Br(t){return!(null==t)}function Dr(t){return"number"==typeof(n=t)||n instanceof Ot;var n}function Gr(t){return null!=t&&"boolean"==typeof t}function Vr(t){return null!=t&&"number"==typeof t}function Pr(t){return null!=t&&"number"==typeof t}function Fr(t){return null!=t&&"number"==typeof t}function Wr(t){return null!=t&&"number"==typeof t}function Ur(t){return null!=t&&"number"==typeof t}function Hr(t){return null!=t&&ii(t)}function Kr(t){return null!=t&&"string"==typeof t}function Yr(t){return t instanceof Error}function Xr(t){return null!=t&&ei(t)}function Qr(t){return null!=t&&ui(t)}function Zr(t){return null!=t&&ri(t)}function Jr(t){return null!=t&&si(t)}function ts(t){return null!=t&&_i(t)}function ns(t){return null!=t&&hi(t)}function is(t){return null!=t&&oi(t)}function es(t){return null!=t&&ai(t)}function rs(){L=this;var t=Object;this.anyClass=new Tr(t,"Any",Br);var n=Number;this.numberClass=new Tr(n,"Number",Dr),this.nothingClass=Lr();var i=Boolean;this.booleanClass=new Tr(i,"Boolean",Gr);var e=Number;this.byteClass=new Tr(e,"Byte",Vr);var r=Number;this.shortClass=new Tr(r,"Short",Pr);var s=Number;this.intClass=new Tr(s,"Int",Fr);var u=Number;this.floatClass=new Tr(u,"Float",Wr);var _=Number;this.doubleClass=new Tr(_,"Double",Ur);var o=Array;this.arrayClass=new Tr(o,"Array",Hr);var h=String;this.stringClass=new Tr(h,"String",Kr);var a=Error;this.throwableClass=new Tr(a,"Throwable",Yr);var l=Array;this.booleanArrayClass=new Tr(l,"BooleanArray",Xr);var f=Uint16Array;this.charArrayClass=new Tr(f,"CharArray",Qr);var c=Int8Array;this.byteArrayClass=new Tr(c,"ByteArray",Zr);var v=Int16Array;this.shortArrayClass=new Tr(v,"ShortArray",Jr);var d=Int32Array;this.intArrayClass=new Tr(d,"IntArray",ts);var $=Array;this.longArrayClass=new Tr($,"LongArray",ns);var w=Float32Array;this.floatArrayClass=new Tr(w,"FloatArray",is);var g=Float64Array;this.doubleArrayClass=new Tr(g,"DoubleArray",es)}function ss(){return null==L&&new rs,L}function us(t){return Array.isArray(t)?function(t){var n;switch(t.length){case 1:n=_s(t[0]);break;case 0:n=Lr();break;default:n=new Ir}return n}(t):_s(t)}function _s(t){if(t===String)return ss().stringClass;var n,i=t.$metadata$;if(null!=i){var e;if(null==i.$kClass$){var r=new Nr(t);i.$kClass$=r,e=r}else e=i.$kClass$;n=e}else n=new Nr(t);return n}function os(t){return hs(n=on(dn(ls))),n;var n}function hs(t){return ls.call(t,""),t}function as(){return hs(on(dn(ls)))}function ls(t){this.v5_1=t}function fs(t){var n=Ct(t).toUpperCase();return n.length>1?t:Qt(n,0)}function cs(t){return function(t){return 9<=t&&t<=13||28<=t&&t<=32||160===t||t>4096&&(5760===t||8192<=t&&t<=8202||8232===t||8233===t||8239===t||8287===t||12288===t)}(t)}function vs(t,n){var i,e,r,s=yt(t,48)>=0&&yt(t,57)<=0?kt(t,48):yt(t,65)>=0&&yt(t,90)<=0?kt(t,65)+10|0:yt(t,97)>=0&&yt(t,122)<=0?kt(t,97)+10|0:yt(t,128)<0?-1:yt(t,65313)>=0&&yt(t,65338)<=0?kt(t,65313)+10|0:yt(t,65345)>=0&&yt(t,65370)<=0?kt(t,65345)+10|0:(i=t,e=function(t,n){for(var i=0,e=t.length-1|0,r=-1,s=0;i<=e;)if(n>(s=t[r=(i+e|0)/2|0]))i=r+1|0;else{if(n===s)return r;e=r-1|0}return r-(n=n?-1:s}function ds(t){this.x8_1=t}function $s(t,n){return ws(),function(t,n,i){if(i=i!==j&&i,ws(),i){var e=t.length,r=n.length,s=Math.min(e,r);if(0===s)return e-r|0;var u=0;if(u0&&32===Qt(n,Mu(n)-(s-1|0)|0);)s=s-1|0;return function(t,n){if(!(n>=0))throw Ze(hn("Requested character count "+n+" is less than zero."));return mt(t,$t(t.length-n|0,0))}(n,s)+"... and "+(e-1|0)+" more common stack frames skipped"}(n,u,o),Jt(i)>0){var h;if(0===o)h=0;else{for(var a=0,l=0;l=c&&n.z8_1.x5(i),n.z8_1.x5($).x5("\n")}}else n.z8_1.x5(u).x5("\n")}else n.z8_1.x5(r).x5("\n");var g=function(t){var n=t._suppressed,i=null==n?null:n;return null==i?Hs():i}(t);if(!g.u())for(var p=i+" ",b=g.f();b.g();)bs(b.h(),n,p,"Suppressed: ");return!0}function ms(){this.z8_1=as(),this.a9_1=[],this.b9_1="",this.c9_1=0}function xs(){}function ys(t){this.f9_1=t,this.e9_1=0}function ks(){this.d2_1=2147483639}function qs(){xs.call(this)}function Cs(t){this.g9_1=t}function Ss(t,n){return n===t?"(this Map)":Nt(n)}function Es(t,n){var i;t:{for(var e=t.o().f();e.g();){var r=e.h();if(an(r.p(),n)){i=r;break t}}i=null}return i}function zs(){}function Rs(t){this.h9_1=t,Ts.call(this)}function As(t){return function(n){return Ss(i=t,(e=n).p())+"="+Ss(i,e.q());var i,e}}function Ls(){this.j3_1=null,this.k3_1=null}function Is(){}function Ts(){xs.call(this)}function Ns(){return t=on(dn(Us)),zi.call(t),Us.call(t),t.k9_1=Ws().m9_1,t;var t}function Ms(t,n){if(n<0)throw tr("Deque is too big.");if(n<=t.k9_1.length)return x;if(t.k9_1===Ws().m9_1){var i=t,e=$t(n,10);return i.k9_1=Gt(Array(e),null),x}!function(t,n){var i=Gt(Array(n),null);qi(t.k9_1,i,0,t.j9_1,t.k9_1.length),qi(t.k9_1,i,t.k9_1.length-t.j9_1|0,0,t.j9_1),t.j9_1=0,t.k9_1=i}(t,N.a5(t.k9_1.length,n))}function Os(t,n){return n>=t.k9_1.length?n-t.k9_1.length|0:n}function Bs(t,n){return n<0?n+t.k9_1.length|0:n}function Ds(t,n){return n===_t(t.k9_1)?0:n+1|0}function Gs(t,n){return 0===n?_t(t.k9_1):n-1|0}function Vs(t,n,i){n=0?i:i+n|0}function bu(){H=this,mu.call(this),this.ua_1=(Er(),xu(Math.random()*Math.pow(2,32)|0))}function ju(){return null==H&&new bu,H}function mu(){ju()}function xu(t){return function(t,n,i){return ku.call(i,t,n,0,0,~t,t<<10^n>>>4),i}(t,t>>31,on(dn(ku)))}function yu(){K=this,this.xa_1=new Ot(0,0)}function ku(t,n,i,e,r,s){if(null==K&&new yu,mu.call(this),this.ya_1=t,this.za_1=n,this.ab_1=i,this.bb_1=e,this.cb_1=r,this.db_1=s,!(this.ya_1|this.za_1|this.ab_1|this.bb_1|this.cb_1))throw Ze(hn("Initial state must have at least one non-zero element."));var u=0;if(u<64)do{u=u+1|0,this.la()}while(u<64)}function qu(){Y=this,this.r_1=new Su(1,0)}function Cu(){return null==Y&&new qu,Y}function Su(t,n){Cu(),Ru.call(this,t,n,1)}function Eu(t,n,i){_u.call(this),this.mb_1=i,this.nb_1=n,this.ob_1=this.mb_1>0?t<=n:t>=n,this.pb_1=this.ob_1?t:this.nb_1}function zu(){}function Ru(t,n,i){if(0===i)throw Ze("Step must be non-zero.");if(-2147483648===i)throw Ze("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.ib_1=t,this.jb_1=function(t,n,i){var e;if(i>0)e=t>=n?n:n-gu(n,t,i)|0;else{if(!(i<0))throw Ze("Step is zero.");e=t<=n?n:n+gu(t,n,0|-i)|0}return e}(t,n,i),this.kb_1=i}function Au(t,n,i){var e;null!=i?t.e(i(n)):null==n||("string"==typeof(e=n)||ni(e,et))?t.e(n):n instanceof St?t.y5(n.qb_1):t.e(hn(n))}function Lu(t,n,i){if(t===n)return!0;if(!(i=i!==j&&i))return!1;var e=fs(t),r=fs(n);return e===r||Qt(Ct(e).toLowerCase(),0)===Qt(Ct(r).toLowerCase(),0)}function Iu(t){return 0===Jt(t)?Nu:(n=t,function(t){return n+t});var n}function Tu(t){var n;t:{var i=0,e=Jt(t)-1|0;if(i<=e)do{var r=i;if(i=i+1|0,!cs(Qt(t,r))){n=r;break t}}while(i<=e);n=-1}var s=n;return-1===s?t.length:s}function Nu(t){return t}function Mu(t){return Jt(t)-1|0}function Ou(t){var n;t:{for(var i=0;i=0))throw Ze(hn("Limit must be non-negative, but was "+t))}function Gu(t,n,i,e){return i=i===j?0:i,(e=e!==j&&e)||"string"!=typeof t?Wu(t,n,i,Jt(t),e):t.indexOf(n,i)}function Vu(t){if(t.tb_1<0)t.rb_1=0,t.ub_1=null;else{var n;if(t.wb_1.zb_1>0?(t.vb_1=t.vb_1+1|0,n=t.vb_1>=t.wb_1.zb_1):n=!1,n||t.tb_1>Jt(t.wb_1.xb_1))t.ub_1=Xn(t.sb_1,Mu(t.wb_1.xb_1)),t.tb_1=-1;else{var i=t.wb_1.ac_1(t.wb_1.xb_1,t.tb_1);if(null==i)t.ub_1=Xn(t.sb_1,Mu(t.wb_1.xb_1)),t.tb_1=-1;else{var e=i.ja(),r=i.ka();t.ub_1=dt(t.sb_1,e),t.sb_1=e+r|0,t.tb_1=t.sb_1+(0===r?1:0)|0}}t.rb_1=1}}function Pu(t){this.wb_1=t,this.rb_1=-1,this.sb_1=function(t,n,i){if(n>i)throw Ze("Cannot coerce value to an empty range: maximum "+i+" is less than minimum "+n+".");return ti?i:t}(t.yb_1,0,Jt(t.xb_1)),this.tb_1=this.sb_1,this.ub_1=null,this.vb_1=0}function Fu(t,n,i,e){this.xb_1=t,this.yb_1=n,this.zb_1=i,this.ac_1=e}function Wu(t,n,i,e,r,s){var u=(s=s!==j&&s)?wt(gt(i,Mu(t)),$t(e,0)):Xn($t(i,0),gt(e,Jt(t)));if("string"==typeof t&&"string"==typeof n){var _=u.ib_1,o=u.jb_1,h=u.kb_1;if(h>0&&_<=o||h<0&&o<=_)do{var a=_;if(_=_+h|0,gs(n,0,t,a,n.length,r))return a}while(a!==o)}else{var l=u.ib_1,f=u.jb_1,c=u.kb_1;if(c>0&&l<=f||c<0&&f<=l)do{var v=l;if(l=l+c|0,Hu(n,0,t,v,Jt(n),r))return v}while(v!==f)}return-1}function Uu(t,n,i,e){return i=i===j?Mu(t):i,(e=e!==j&&e)||"string"!=typeof t?Wu(t,n,i,0,e,!0):t.lastIndexOf(n,i)}function Hu(t,n,i,e,r,s){if(e<0||n<0||n>(Jt(t)-r|0)||e>(Jt(i)-r|0))return!1;var u=0;if(u=0},dn(zi).y2=function(t){var n;t:{for(var i=0,e=this.f();e.g();){if(an(e.h(),t)){n=i;break t}i=i+1|0}n=-1}return n},dn(zi).z2=function(t){return new Ei(this,t)},dn(zi).x2=function(t,n){var i=this.z2(t),e=n-t|0,r=0;if(r=this.f5_1.s4_1)throw hr();var t=this.g5_1;this.g5_1=t+1|0,this.h5_1=t;var n=this.f5_1.n4_1[this.h5_1];return this.j5(),n},dn(Se).h=function(){if(this.k5(),this.g5_1>=this.f5_1.s4_1)throw hr();var t=this.g5_1;this.g5_1=t+1|0,this.h5_1=t;var n=new Ee(this.f5_1,this.h5_1);return this.j5(),n},dn(Se).t5=function(){if(this.g5_1>=this.f5_1.s4_1)throw hr();var t=this.g5_1;this.g5_1=t+1|0,this.h5_1=t;var n=this.f5_1.n4_1[this.h5_1],i=null==n?null:ln(n),e=null==i?0:i,r=wn(this.f5_1.o4_1)[this.h5_1],s=null==r?null:ln(r),u=e^(null==s?0:s);return this.j5(),u},dn(Se).u5=function(t){if(this.g5_1>=this.f5_1.s4_1)throw hr();var n=this.g5_1;this.g5_1=n+1|0,this.h5_1=n;var i=this.f5_1.n4_1[this.h5_1];an(i,this.f5_1)?t.x5("(this Map)"):t.w5(i),t.y5(61);var e=wn(this.f5_1.o4_1)[this.h5_1];an(e,this.f5_1)?t.x5("(this Map)"):t.w5(e),this.j5()},dn(Ee).p=function(){return oe(this),this.x4_1.n4_1[this.y4_1]},dn(Ee).q=function(){return oe(this),wn(this.x4_1.o4_1)[this.y4_1]},dn(Ee).equals=function(t){return!(null==t||!ni(t,At)||!an(t.p(),this.p()))&&an(t.q(),this.q())},dn(Ee).hashCode=function(){var t=this.p(),n=null==t?null:ln(t),i=null==n?0:n,e=this.q(),r=null==e?null:ln(e);return i^(null==r?0:r)},dn(Ee).toString=function(){return Nt(this.p())+"="+Nt(this.q())},dn(ze).i=function(){return this.v4_1},dn(ze).y=function(t){var n=je(this,t);return n<0?null:wn(this.o4_1)[n]},dn(ze).x3=function(t){return je(this,t)>=0},dn(ze).h3=function(t,n){var i=me(this,t),e=$e(this);if(i<0){var r=e[(0|-i)-1|0];return e[(0|-i)-1|0]=n,r}return e[i]=n,null},dn(ze).y3=function(t){this.b4(),function(t,n){if(n.u())return!1;de(t,n.i());for(var i=n.f(),e=!1;i.g();)ye(t,i.h())&&(e=!0)}(this,t.o())},dn(ze).i3=function(t){this.b4();var n=je(this,t);if(n<0)return null;var i=wn(this.o4_1)[n];return xe(this,n),i},dn(ze).equals=function(t){return t===this||!(null==t||!ni(t,Lt))&&function(t,n){return t.v4_1===n.i()&&t.i4(n.o())}(this,t)},dn(ze).hashCode=function(){for(var t=0,n=this.e4();n.g();)t=t+n.t5()|0;return t},dn(ze).toString=function(){var t=os(tt(this.v4_1,3));t.x5("{");for(var n=0,i=this.e4();i.g();)n>0&&t.x5(", "),i.u5(t),n=n+1|0;return t.x5("}"),t.toString()},dn(ze).b4=function(){if(this.w4_1)throw ir()},dn(ze).h4=function(t){var n=je(this,t.p());return!(n<0)&&an(wn(this.o4_1)[n],t.q())},dn(ze).z5=function(t){return this.h4(ni(t,At)?t:gn())},dn(ze).a4=function(){return new Ce(this)},dn(ze).e4=function(){return new Se(this)},dn(Te).j2=function(){return this.v3_1.b4()},dn(Me).j2=function(){return this.m4_1.b4()},dn(Oe).h6=function(){this.i6("\n")},dn(Oe).j6=function(t){this.i6(t),this.h6()},dn(Be).i6=function(t){var n=null==t?null:hn(t),i=null==n?"null":n;this.k6_1.write(i)},dn(De).i6=function(t){var n=null==t?null:hn(t),i=null==n?"null":n,e=i.lastIndexOf("\n",0);if(e>=0){var r=this.m6_1;this.m6_1=r+i.substring(0,e),this.n6();var s=e+1|0;i=i.substring(s)}this.m6_1=this.m6_1+i},dn(De).n6=function(){console.log(this.m6_1),this.m6_1=""},dn(Ge).i6=function(t){var n=this.m6_1,i=null==t?null:hn(t);this.m6_1=n+(null==i?"null":i)},dn(Pe).w6=function(){return wn(this.v6_1)},dn(Pe).x6=function(t){var n,i=this;if(t instanceof e_)n=null;else{n=null==t||null!=t?t:gn()}for(var e=n,r=function(t){return t instanceof e_?t.nc_1:null}(t);;){var s=i;null==r?s.s6_1=e:(s.q6_1=s.r6_1,s.t6_1=r);try{var u=s.y6();if(u===$u())return x;e=u,r=null}catch(t){e=null,r=t}s.a7();var _=wn(s.p6_1);if(!(_ instanceof Pe)){if(null!=r){var o=new e_(wn(r));_.b7(o)}else{var h=e;_.b7(h)}return x}i=_}},dn(Pe).b7=function(t){return this.x6(t)},dn(Fe).w6=function(){throw tr(hn("This continuation is already complete"))},dn(Fe).x6=function(t){throw tr(hn("This continuation is already complete"))},dn(Fe).b7=function(t){return this.x6(t)},dn(Fe).toString=function(){return"This continuation is already complete"},dn(We).c7=function(){var t,n=this.z6_1;if(null==n){var i=this.w6().d7(P),e=null==i?null:i.e7(this),r=null==e?this:e;this.z6_1=r,t=r}else t=n;return t},dn(We).a7=function(){var t=this.z6_1;null!=t&&t!==this&&wn(this.w6().d7(P)).f7(t),this.z6_1=C},dn(Ue).y6=function(){if(null!=this.t6_1)throw this.t6_1;var t=this.o7_1;return"function"==typeof t?t(this.p7_1):this.o7_1.q7(this.p7_1)},dn(Rr).v7=function(){return this.u7_1},dn(Rr).equals=function(t){return!(t instanceof Ar)&&!(t instanceof Ir)&&t instanceof Rr&&an(this.v7(),t.v7())},dn(Rr).hashCode=function(){var t=this.t7(),n=null==t?null:cn(t);return null==n?0:n},dn(Rr).toString=function(){return"class "+this.t7()},dn(Ar).t7=function(){return this.x7_1},dn(Ar).v7=function(){throw er("There's no native JS class for Nothing type")},dn(Ar).equals=function(t){return t===this},dn(Ar).hashCode=function(){return 0},dn(Ir).t7=function(){throw tr(hn("Unknown simpleName for ErrorKClass"))},dn(Ir).equals=function(t){return t===this},dn(Ir).hashCode=function(){return 0},dn(Tr).equals=function(t){return t instanceof Tr&&dn(Rr).equals.call(this,t)&&this.z7_1===t.z7_1},dn(Tr).t7=function(){return this.z7_1},dn(Nr).t7=function(){return this.c8_1},dn(rs).d8=function(){return this.anyClass},dn(rs).e8=function(){return this.numberClass},dn(rs).f8=function(){return this.nothingClass},dn(rs).g8=function(){return this.booleanClass},dn(rs).h8=function(){return this.byteClass},dn(rs).i8=function(){return this.shortClass},dn(rs).j8=function(){return this.intClass},dn(rs).k8=function(){return this.floatClass},dn(rs).l8=function(){return this.doubleClass},dn(rs).m8=function(){return this.arrayClass},dn(rs).n8=function(){return this.stringClass},dn(rs).o8=function(){return this.throwableClass},dn(rs).p8=function(){return this.booleanArrayClass},dn(rs).q8=function(){return this.charArrayClass},dn(rs).r8=function(){return this.byteArrayClass},dn(rs).s8=function(){return this.shortArrayClass},dn(rs).t8=function(){return this.intArrayClass},dn(rs).u8=function(){return this.longArrayClass},dn(rs).v8=function(){return this.floatArrayClass},dn(rs).w8=function(){return this.doubleArrayClass},dn(rs).functionClass=function(t){var n,i,e=Or()[t];if(null==e){var r=new Tr(Function,"Function"+t,(i=t,function(t){return"function"==typeof t&&t.length===i}));Or()[t]=r,n=r}else n=e;return n},dn(ls).a=function(){return this.v5_1.length},dn(ls).b=function(t){var n=this.v5_1;if(!(0<=t&&t<=(Jt(n)-1|0)))throw cr("index: "+t+", length: "+this.a()+"}");return Qt(n,t)},dn(ls).c=function(t,n){return this.v5_1.substring(t,n)},dn(ls).y5=function(t){return this.v5_1=this.v5_1+Ct(t),this},dn(ls).e=function(t){return this.v5_1=this.v5_1+Nt(t),this},dn(ls).w5=function(t){return this.v5_1=this.v5_1+Nt(t),this},dn(ls).x5=function(t){var n=this.v5_1;return this.v5_1=n+(null==t?"null":t),this},dn(ls).toString=function(){return this.v5_1},dn(ds).y8=function(t,n){return this.x8_1(t,n)},dn(ds).compare=function(t,n){return this.y8(t,n)},dn(ds).t1=function(){return this.x8_1},dn(ds).equals=function(t){return!(null==t||!ni(t,wi))&&!(null==t||!ni(t,Dt))&&an(this.t1(),t.t1())},dn(ds).hashCode=function(){return ln(this.t1())},dn(ms).d9=function(t){return bs(t,this,"",""),this.z8_1.toString()},dn(xs).v=function(t){var n;t:if(ni(this,zt)&&this.u())n=!1;else{for(var i=this.f();i.g();)if(an(i.h(),t)){n=!0;break t}n=!1}return n},dn(xs).w=function(t){var n;t:if(ni(t,zt)&&t.u())n=!0;else{for(var i=t.f();i.g();){var e=i.h();if(!this.v(e)){n=!1;break t}}n=!0}return n},dn(xs).u=function(){return 0===this.i()},dn(xs).toString=function(){return ht(this,", ","[","]",j,j,(t=this,function(n){return n===t?"(this Collection)":Nt(n)}));var t},dn(xs).toArray=function(){return bi(this)},dn(ys).g=function(){return this.e9_1=n)throw cr("index: "+t+", size: "+n)},dn(ks).u2=function(t,n){if(t<0||t>n)throw cr("index: "+t+", size: "+n)},dn(ks).e2=function(t,n,i){if(t<0||n>i)throw cr("fromIndex: "+t+", toIndex: "+n+", size: "+i);if(t>n)throw Ze("fromIndex: "+t+" > toIndex: "+n)},dn(ks).a5=function(t,n){var i=t+(t>>1)|0;return(i-n|0)<0&&(i=n),(i-2147483639|0)>0&&(i=n>2147483639?2147483647:2147483639),i},dn(ks).b3=function(t){for(var n=1,i=t.f();i.g();){var e=i.h(),r=tt(31,n),s=null==e?null:ln(e);n=r+(null==s?0:s)|0}return n},dn(ks).a3=function(t,n){if(t.i()!==n.i())return!1;for(var i=n.f(),e=t.f();e.g();)if(!an(e.h(),i.h()))return!1;return!0},dn(qs).f=function(){return new ys(this)},dn(qs).equals=function(t){return t===this||!(null==t||!ni(t,Et))&&N.a3(this,t)},dn(qs).hashCode=function(){return N.b3(this)},dn(Cs).g=function(){return this.g9_1.g()},dn(Cs).h=function(){return this.g9_1.h().p()},dn(Rs).x3=function(t){return this.h9_1.x(t)},dn(Rs).v=function(t){return(null==t||null!=t)&&this.x3(null==t||null!=t?t:gn())},dn(Rs).f=function(){return new Cs(this.h9_1.o().f())},dn(Rs).i=function(){return this.h9_1.i()},dn(Ls).x=function(t){return!(null==Es(this,t))},dn(Ls).l3=function(t){if(null==t||!ni(t,At))return!1;var n=t.p(),i=t.q(),e=(ni(this,Lt)?this:gn()).y(n);return!(!an(i,e)||null==e&&!(ni(this,Lt)?this:gn()).x(n))},dn(Ls).equals=function(t){if(t===this)return!0;if(null==t||!ni(t,Lt))return!1;if(this.i()!==t.i())return!1;var n,i=t.o();t:if(ni(i,zt)&&i.u())n=!0;else{for(var e=i.f();e.g();){var r=e.h();if(!this.l3(r)){n=!1;break t}}n=!0}return n},dn(Ls).y=function(t){var n=Es(this,t);return null==n?null:n.q()},dn(Ls).hashCode=function(){return ln(this.o())},dn(Ls).u=function(){return 0===this.i()},dn(Ls).i=function(){return this.o().i()},dn(Ls).z=function(){return null==this.j3_1&&(this.j3_1=new Rs(this)),wn(this.j3_1)},dn(Ls).toString=function(){return ht(this.o(),", ","{","}",j,j,As(this))},dn(Is).n3=function(t){for(var n=0,i=t.f();i.g();){var e=i.h(),r=n,s=null==e?null:ln(e);n=r+(null==s?0:s)|0}return n},dn(Is).m3=function(t,n){return t.i()===n.i()&&t.w(n)},dn(Ts).equals=function(t){return t===this||!(null==t||!ni(t,Rt))&&M.m3(this,t)},dn(Ts).hashCode=function(){return M.n3(this)},dn(Us).i=function(){return this.l9_1},dn(Us).u=function(){return 0===this.l9_1},dn(Us).o9=function(){if(this.u())throw ar("ArrayDeque is empty.");var t=this.j9_1,n=this.k9_1[t];return null==n||null!=n?n:gn()},dn(Us).p9=function(){if(this.u())throw ar("ArrayDeque is empty.");var t=Xs(this),n=Os(this,this.j9_1+t|0),i=this.k9_1[n];return null==i||null!=i?i:gn()},dn(Us).q9=function(t){Ps(this),Ms(this,this.l9_1+1|0),this.j9_1=Gs(this,this.j9_1),this.k9_1[this.j9_1]=t,this.l9_1=this.l9_1+1|0},dn(Us).r9=function(t){Ps(this),Ms(this,this.l9_1+1|0);var n=this.k9_1,i=this.l9_1;n[Os(this,this.j9_1+i|0)]=t,this.l9_1=this.l9_1+1|0},dn(Us).s9=function(){if(this.u())throw ar("ArrayDeque is empty.");Ps(this);var t=this.j9_1,n=this.k9_1[t],i=null==n||null!=n?n:gn();return this.k9_1[this.j9_1]=null,this.j9_1=Ds(this,this.j9_1),this.l9_1=this.l9_1-1|0,i},dn(Us).t9=function(){if(this.u())throw ar("ArrayDeque is empty.");Ps(this);var t=Xs(this),n=Os(this,this.j9_1+t|0),i=this.k9_1[n],e=null==i||null!=i?i:gn();return this.k9_1[n]=null,this.l9_1=this.l9_1-1|0,e},dn(Us).d=function(t){return this.r9(t),!0},dn(Us).v2=function(t,n){if(N.u2(t,this.l9_1),t===this.l9_1)return this.r9(n),x;if(0===t)return this.q9(n),x;Ps(this),Ms(this,this.l9_1+1|0);var i=Os(this,this.j9_1+t|0);if(t>1){var e=Gs(this,i),r=Gs(this,this.j9_1);e>=this.j9_1?(this.k9_1[r]=this.k9_1[this.j9_1],qi(this.k9_1,this.k9_1,this.j9_1,this.j9_1+1|0,e+1|0)):(qi(this.k9_1,this.k9_1,this.j9_1-1|0,this.j9_1,this.k9_1.length),this.k9_1[this.k9_1.length-1|0]=this.k9_1[0],qi(this.k9_1,this.k9_1,0,1,e+1|0)),this.k9_1[e]=n,this.j9_1=r}else{var s=this.l9_1,u=Os(this,this.j9_1+s|0);i=i){var s=this.j9_1,u=this.k9_1.length;if(s>1)n>=this.j9_1?qi(this.k9_1,this.k9_1,this.j9_1+1|0,this.j9_1,n):(qi(this.k9_1,this.k9_1,1,0,n),this.k9_1[0]=this.k9_1[this.k9_1.length-1|0],qi(this.k9_1,this.k9_1,this.j9_1+1|0,this.j9_1,this.k9_1.length-1|0)),this.k9_1[this.j9_1]=null,this.j9_1=Ds(this,this.j9_1);else{var r=Xs(this),s=Os(this,this.j9_1+r|0);n<=s?qi(this.k9_1,this.k9_1,n,n+1|0,s+1|0):(qi(this.k9_1,this.k9_1,n,n+1|0,this.k9_1.length),this.k9_1[this.k9_1.length-1|0]=this.k9_1[0],qi(this.k9_1,this.k9_1,0,1,s+1|0)),this.k9_1[s]=null}return this.l9_1=this.l9_1-1|0,e},dn(Us).w2=function(){if(!this.u()){Ps(this);var t=this.l9_1,n=Os(this,this.j9_1+t|0);Vs(this,this.j9_1,n)}this.j9_1=0,this.l9_1=0},dn(Us).u9=function(t){var n,i=t.length>=this.l9_1?t:(n=this.l9_1,Gt(Array(n),null)),e=ii(i)?i:gn(),r=this.l9_1,s=Os(this,this.j9_1+r|0);this.j9_10;){var o=_,h=r+1|0,a=u+1|0,l=Math.min(o,h,a);qi(t.k9_1,t.k9_1,1+(u-l|0)|0,1+(r-l|0)|0,r+1|0),r=Bs(t,r-l|0),u=Bs(t,u-l|0),_=_-l|0}}(this,t,n);var e=Os(this,this.j9_1+i|0);Vs(this,this.j9_1,e),this.j9_1=e}else{!function(t,n,i){for(var e=Os(t,t.j9_1+i|0),r=Os(t,t.j9_1+n|0),s=t.l9_1-i|0;s>0;){var u=s,_=t.k9_1.length-e|0,o=t.k9_1.length-r|0,h=Math.min(u,_,o);qi(t.k9_1,t.k9_1,r,e,e+h|0),e=Os(t,e+h|0),r=Os(t,r+h|0),s=s-h|0}}(this,t,n);var r=this.l9_1,s=Os(this,this.j9_1+r|0);Vs(this,Bs(this,s-i|0),s)}this.l9_1=this.l9_1-i|0},dn(Ks).equals=function(t){return!(null==t||!ni(t,Et))&&t.u()},dn(Ks).hashCode=function(){return 1},dn(Ks).toString=function(){return"[]"},dn(Ks).i=function(){return 0},dn(Ks).u=function(){return!0},dn(Ks).j=function(t){throw cr("Empty list doesn't contain element at index "+t+".")},dn(Ks).f=function(){return D},dn(Ys).g=function(){return!1},dn(Ys).h=function(){throw hr()},dn(Qs).i=function(){return this.w9_1.length},dn(Qs).u=function(){return 0===this.w9_1.length},dn(Qs).f=function(){return Vt(this.w9_1)},dn(Zs).toString=function(){return"IndexedValue(index="+this.y9_1+", value="+Nt(this.z9_1)+")"},dn(Zs).hashCode=function(){var t=this.y9_1;return tt(t,31)+(null==this.z9_1?0:ln(this.z9_1))|0},dn(Zs).equals=function(t){if(this===t)return!0;if(!(t instanceof Zs))return!1;var n=t instanceof Zs?t:gn();return this.y9_1===n.y9_1&&!!an(this.z9_1,n.z9_1)},dn(tu).f=function(){return new nu(this.aa_1())},dn(nu).g=function(){return this.ba_1.g()},dn(nu).h=function(){var t=this.ca_1;return this.ca_1=t+1|0,new Zs(yi(t),this.ba_1.h())},dn(ru).equals=function(t){return!(null==t||!ni(t,Lt))&&t.u()},dn(ru).hashCode=function(){return 0},dn(ru).toString=function(){return"{}"},dn(ru).i=function(){return 0},dn(ru).u=function(){return!0},dn(ru).fa=function(t){return!1},dn(ru).x=function(t){return(null==t||null!=t)&&this.fa(null==t||null!=t?t:gn())},dn(ru).ga=function(t){return null},dn(ru).y=function(t){return null!=t&&null==t?null:this.ga(null==t||null!=t?t:gn())},dn(ru).o=function(){return fu()},dn(ru).z=function(){return fu()},dn(_u).h=function(){return this.la()},dn(ou).h=function(){return this.na_1.pa_1(this.ma_1.h())},dn(ou).g=function(){return this.ma_1.g()},dn(hu).f=function(){return new ou(this)},dn(lu).equals=function(t){return!(null==t||!ni(t,Rt))&&t.u()},dn(lu).hashCode=function(){return 0},dn(lu).toString=function(){return"[]"},dn(lu).i=function(){return 0},dn(lu).u=function(){return!0},dn(lu).ra=function(t){return!1},dn(lu).v=function(t){return!1},dn(lu).sa=function(t){return t.u()},dn(lu).w=function(t){return this.sa(t)},dn(lu).f=function(){return D},dn(du).d7=function(t){return null},dn(du).hashCode=function(){return 0},dn(du).toString=function(){return"EmptyCoroutineContext"},dn(bu).va=function(t){return this.ua_1.va(t)},dn(bu).wa=function(){return this.ua_1.wa()},dn(mu).wa=function(){return Sr(this.va(26),this.va(27))},dn(ku).la=function(){var t=this.ya_1;t^=t>>>2,this.ya_1=this.za_1,this.za_1=this.ab_1,this.ab_1=this.bb_1;var n=this.cb_1;return this.bb_1=n,t=t^t<<1^n^n<<4,this.cb_1=t,this.db_1=this.db_1+362437|0,t+this.db_1|0},dn(ku).va=function(t){return function(t,n){return t>>>(32-n|0)&-n>>31}(this.la(),t)},dn(Su).hb=function(){return this.ib_1},dn(Su).lb=function(){return this.jb_1},dn(Su).u=function(){return this.ib_1>this.jb_1},dn(Su).equals=function(t){return t instanceof Su&&(this.u()&&t.u()||this.ib_1===t.ib_1&&this.jb_1===t.jb_1)},dn(Su).hashCode=function(){return this.u()?-1:tt(31,this.ib_1)+this.jb_1|0},dn(Su).toString=function(){return this.ib_1+".."+this.jb_1},dn(Eu).g=function(){return this.ob_1},dn(Eu).la=function(){var t=this.pb_1;if(t===this.nb_1){if(!this.ob_1)throw hr();this.ob_1=!1}else this.pb_1=this.pb_1+this.mb_1|0;return t},dn(zu).s=function(t,n,i){return new Ru(t,n,i)},dn(Ru).f=function(){return new Eu(this.ib_1,this.jb_1,this.kb_1)},dn(Ru).u=function(){return this.kb_1>0?this.ib_1>this.jb_1:this.ib_10?this.ib_1+".."+this.jb_1+" step "+this.kb_1:this.ib_1+" downTo "+this.jb_1+" step "+(0|-this.kb_1)},dn(Pu).h=function(){if(-1===this.rb_1&&Vu(this),0===this.rb_1)throw hr();var t=this.ub_1,n=t instanceof Su?t:gn();return this.ub_1=null,this.rb_1=-1,n},dn(Pu).g=function(){return-1===this.rb_1&&Vu(this),1===this.rb_1},dn(Fu).f=function(){return new Pu(this)},dn(Qu).g=function(){if(0!==this.fc_1)return 1===this.fc_1;if(this.ic_1<0)return this.fc_1=2,!1;var t=-1,n=Jt(this.ec_1),i=this.gc_1,e=Jt(this.ec_1);if(i0?ci(t):Hs()},t.$_$.s1=mi,t.$_$.t1=function(t,n){var i=Ie(t);return i.y3(n),i},t.$_$.u1=function(t,n){if(ni(n,zt)){var i=Bi(t.i()+n.i()|0);return i.n(t),i.n(n),i}var e=Di(t);return uu(e,n),e},t.$_$.v1=function(t){if(ni(t,zt)&&t.i()<=1)return function(t){if(ni(t,zt)){var n;switch(t.i()){case 0:n=Hs();break;case 1:n=ji(ni(t,Et)?t.j(0):t.f().h());break;default:n=ct(t)}return n}return function(t){switch(t.i()){case 0:return Hs();case 1:return ji(t.j(0));default:return t}}(ft(t))}(t);var n=ft(t);return function(t){var n=(t.i()/2|0)-1|0;if(n<0)return x;var i=Xs(t),e=0;if(e<=n)do{var r=e;e=e+1|0;var s=t.j(r);t.f2(r,t.j(i)),t.f2(i,s),i=i-1|0}while(r!==n)}(n),n},t.$_$.w1=function(t){return st(t)},t.$_$.x1=function(t){for(var n=Pt(t.i()),i=0,e=t.f();e.g();){var r=e.h(),s=i;i=s+1|0,n[s]=r}return n},t.$_$.y1=function(t){for(var n=new Float32Array(t.i()),i=0,e=t.f();e.g();){var r=e.h(),s=i;i=s+1|0,n[s]=r}return n},t.$_$.z1=function(t){return lt(t,re(Js(t,12)))},t.$_$.a2=function(t){if(0===t.i())return Hs();var n=t.o().f();if(!n.g())return Hs();var i=n.h();if(!n.g())return ji(new s_(i.p(),i.q()));var e=Bi(t.i()),r=new s_(i.p(),i.q());e.d(r);do{var s=n.h(),u=new s_(s.p(),s.q());e.d(u)}while(n.g());return e},t.$_$.b2=function(t){switch(t.length){case 0:return Hs();case 1:return ji(t[0]);default:return function(t){return Di(function(t){return new Qs(t,!1)}(t))}(t)}},t.$_$.c2=function(t){if(ni(t,zt)){var n;switch(t.i()){case 0:n=eu();break;case 1:n=xi(ni(t,Et)?t.j(0):t.f().h());break;default:n=su(t,Le(t.i()))}return n}return function(t){return 0===t.i()?eu():t}(su(t,Ae()))},t.$_$.d2=function(t){return[].slice.call(t)},t.$_$.e2=function(t){return new tu((n=t,function(){return Vt(n)}));var n},t.$_$.f2=$u,t.$_$.g2=cu,t.$_$.h2=Pe,t.$_$.i2=function(t,n){var i=function(t){var n=t instanceof We?t:null,i=null==n?null:n.c7();return null==i?t:i}(function(t,n){return new Ue(n,t,n)}(t,n)),e=x;i.b7(e)},t.$_$.j2=function(t){Ve(),(Ve(),k).j6(t)},t.$_$.k2=Pt,t.$_$.l2=Jt,t.$_$.m2=function(t,n,i,e){return Object.defineProperty(t,n,{configurable:!0,get:i,set:e})},t.$_$.n2=an,t.$_$.o2=Gt,t.$_$.p2=fn,t.$_$.q2=Yt,t.$_$.r2=function(t,n,i,e,r){return Zn(),e.get=e,e.set=r,e.callableName=t,s=e,u=function(t,n){return Zn(),(Zn(),p)[t][null==n?0:1]}(n,r),_=function(t,n){Zn();var i=t.$imask$;return null==i?Bt([n]):i}(e,i),Zn(),s.$metadata$=u,s.constructor=s,s.$imask$=_,s;var s,u,_},t.$_$.s2=cn,t.$_$.t2=ln,t.$_$.u2=Fn,t.$_$.v2=Hn,t.$_$.w2=Un,t.$_$.x2=function(t,n,i,e){Fn(t,"Lambda",j,n,i,e,j,j)},t.$_$.y2=Wn,t.$_$.z2=ii,t.$_$.a3=ai,t.$_$.b3=_i,t.$_$.c3=ni,t.$_$.d3=Kn,t.$_$.e3=function(t){return t instanceof Ot?t:On(t)},t.$_$.f3=on,t.$_$.g3=dn,t.$_$.h3=function(t){return An(t)},t.$_$.i3=hn,t.$_$.j3=xu,t.$_$.k3=$t,t.$_$.l3=dt,t.$_$.m3=Mr,t.$_$.n3=function(t,n,i){return i=i!==j&&i,"string"==typeof n?Gu(t,n,j,i)>=0:Wu(t,n,0,Jt(t),i)>=0},t.$_$.o3=jt,t.$_$.p3=Ou,t.$_$.q3=function(t,n){return n=n===j?" ":n,pt(function(t,n){return new hu(t,n)}(Yu(t),(i=n,function(t){return Ou(t)?t.length0,_=Bi(u?gt(e,10):10);t:do{var o=hn(tn(t,r,s));if(_.d(o),r=s+n.length|0,u&&_.i()===(e-1|0))break t;s=Gu(t,n,r,i)}while(-1!==s);var h=hn(tn(t,r,Jt(t)));return _.d(h),_}(t,r,i,e)}for(var s=function(t){return new bt(t)}(function(t,n,i,e,r){return i=i===j?0:i,e=e!==j&&e,Du(r=r===j?0:r),new Fu(t,i,r,(s=ci(n),u=e,function(t,n){var i=function(t,n,i,e,r){if(!e&&1===n.i()){var s=vt(n),u=r?Uu(t,s,i):Gu(t,s,i);return u<0?null:u_(u,s)}var _=r?wt(gt(i,Mu(t)),0):Xn($t(i,0),Jt(t));if("string"==typeof t){var o=_.ib_1,h=_.jb_1,a=_.kb_1;if(a>0&&o<=h||a<0&&h<=o)do{var l,f=o;o=o+a|0;t:{for(var c=n.f();c.g();){var v=c.h();if(gs(v,0,t,f,v.length,e)){l=v;break t}}l=null}if(null!=l)return u_(f,l)}while(f!==h)}else{var d=_.ib_1,$=_.jb_1,w=_.kb_1;if(w>0&&d<=$||w<0&&$<=d)do{var g,p=d;d=d+w|0;t:{for(var b=n.f();b.g();){var j=b.h();if(Hu(j,0,t,p,j.length,e)){g=j;break t}}g=null}if(null!=g)return u_(p,g)}while(p!==$)}return null}(t,s,n,u,!1);return null==i?null:u_(i.ha_1,i.ia_1.length)}));var s,u}(t,n,j,i,e)),u=Bi(Js(s,10)),_=s.f();_.g();){var o=Bu(t,_.h());u.d(o)}return u},t.$_$.s3=function(t,n,i){return(i=i!==j&&i)?gs(t,0,n,0,n.length,i):t.startsWith(n,0)},t.$_$.t3=function(t,n,i){i=i===j?t:i;var e,r=Uu(t,n);if(-1===r)e=i;else{var s=r+n.length|0,u=t.length;e=t.substring(s,u)}return e},t.$_$.u3=function(t,n,i){i=i===j?t:i;var e=Gu(t,n);return-1===e?i:t.substring(0,e)},t.$_$.v3=mt,t.$_$.w3=function(t){ws();for(var n=0,i=t.length,e=(s=void 0,(s=new Uint16Array(i)).$type$="CharArray",s);n0&&(i=e)}return i}(u),a=null==h?0:h,l=(t.length,tt(n.length,i.i()),Iu(n)),f=Xs(i),c=Oi(),v=0,d=i.f();d.g();){var $=d.h(),w=v;v=w+1|0;var g,p=yi(w);if(0!==p&&p!==f||!Ou($)){var b,m=jt($,a);g=null==(b=null==m?null:l(m))?$:b}else g=null;var x=g;null==x||c.d(x)}return at(c,os(),"\n").toString()}(t,"")},t.$_$.z3=function(t,n){return function(t,n,i){if(n=n===j?"":n,Ou(i=i===j?"|":i))throw Ze(hn("marginPrefix must be non-blank string."));for(var e=Ku(t),r=(t.length,tt(n.length,e.i()),Iu(n)),s=Xs(e),u=Oi(),_=0,o=e.f();o.g();){var h=o.h(),a=_;_=a+1|0;var l,f=yi(a);if(0!==f&&f!==s||!Ou(h)){var c;t:{var v=0,d=Jt(h)-1|0;if(v<=d)do{var $=v;if(v=v+1|0,!cs(Qt(h,$))){c=$;break t}}while(v<=d);c=-1}var w,g,p=c;if(-1===p)w=null;else if(ps(h,i,p)){var b=p+i.length|0;w=h.substring(b)}else w=null;l=null==(g=null==w?null:r(w))?h:g}else l=null;var m=l;null==m||u.d(m)}return at(u,os(),"\n").toString()}(t,"",n=n===j?"|":n)},t.$_$.a4=Tt,t.$_$.b4=Qe,t.$_$.c4=Ot,t.$_$.d4=r_,t.$_$.e4=s_,t.$_$.f4=gn,t.$_$.g4=function(t){throw Ze(t)},t.$_$.h4=wn,t.$_$.i4=function(t,n){return new t_(n)},t.$_$.j4=function(t){return new t_(t)},t.$_$.k4=function(){throw mr()},t.$_$.l4=function(t){return(new ms).d9(t)},t.$_$.m4=function(t){throw qr("lateinit property "+t+" has not been initialized")},t.$_$.n4=Nt,t.$_$.o4=u_,t.$_$.p4=function(t){return new gi(t)},t})?i.apply(n,[n]):i)||(t.exports=e)},385:(t,n,i)=>{var e,r,s;r=[n,i(36)],void 0===(s="function"==typeof(e=function(t,n){"use strict";var i,e,r,s,u,_,o,h,a=Math.imul,l=n.$_$.a1,f=n.$_$.c,c=n.$_$.g3,v=n.$_$.w2,d=n.$_$.u2,$=n.$_$.y2,w=n.$_$.a4,g=n.$_$.n4,p=n.$_$.b4,b=n.$_$.n2,j=n.$_$.n,m=n.$_$.f3,x=n.$_$.t2,y=n.$_$.s2,k=n.$_$.f4,q=n.$_$.k4,C=n.$_$.o,S=n.$_$.l4,E=n.$_$.r3,z=n.$_$.u3,R=n.$_$.t3,A=n.$_$.n3;function L(){}function I(){this.oc_1=null,this.pc_1=null,this.qc_1=null}function T(){}function N(){if(s)return l;s=!0,new M("TRACE",0,0,"TRACE"),new M("DEBUG",1,10,"DEBUG"),e=new M("INFO",2,20,"INFO"),new M("WARN",3,30,"WARN"),r=new M("ERROR",4,40,"ERROR"),new M("OFF",5,50,"OFF")}function M(t,n,i,e){w.call(this,t,n),this.zc_1=i,this.ad_1=e}function O(){}function B(){}function D(t,n){return function(t,n,i){for(var e=n,r=i;;){if(null==r||b(r.cause,r))return e;e=e+", Caused by: '"+r.message+"'",r=r.cause}}(0,"",t)}function G(t){t=t===f||t,this.id_1=t}function V(t,n,i,e){return function(t,n,i,e,r){return P.call(r,t,n,i,e.oc_1,e.pc_1,e.qc_1),r}(t,n,i,e,m(c(P)))}function P(t,n,i,e,r,s){e=e===f?null:e,r=r===f?null:r,s=s===f?null:s,this.jd_1=t,this.kd_1=n,this.ld_1=i,this.md_1=e,this.nd_1=r,this.od_1=s}function F(t){this.qd_1=t}function W(){}function U(){B.call(this)}function H(){o=this,this.ed_1=(N(),e),this.fd_1=new G(!0),this.gd_1=new U}function K(){return null==o&&new H,o}function Y(){}return v(L,"KLogger"),d(I,"KLoggingEventBuilder",I),$(T,"KotlinLogging"),d(M,"Level",f,w),$(O,"DefaultErrorMessageProducer"),d(B,"FormattingAppender"),d(G,"DefaultMessageFormatter",G),d(P,"KLoggingEvent"),d(F,"KLoggerDirect",f,f,[L]),$(W,"KLoggerFactory"),d(U,"ConsoleOutputAppender",U,B),$(H,"KotlinLoggingConfiguration"),$(Y,"KLoggerNameResolver"),c(T).uc=function(t){return this.wc(h.vc(t))},c(T).wc=function(t){return _.wc(t)},c(M).toString=function(){return this.ad_1},c(O).bd=function(t){return"Log message invocation failed: "+t.toString()},c(B).dd=function(t){var n=K().fd_1.hd(t);this.cd(t,n)},c(G).hd=function(t){var n,i,e,r=j();r.x5((n=this,i=t.jd_1,e=t.ld_1,n.id_1?i.a1_1+": ["+e+"] ":""));var s=t.kd_1,u=null==s?null:s.pd();return null==u||(r.x5(u),r.x5(" ")),r.x5(t.md_1),r.x5(D(t.nd_1)),r.toString()},c(P).toString=function(){return"KLoggingEvent(level="+this.jd_1.toString()+", marker="+g(this.kd_1)+", loggerName="+this.ld_1+", message="+this.md_1+", cause="+g(this.nd_1)+", payload="+g(this.od_1)+")"},c(P).hashCode=function(){var t=this.jd_1.hashCode();return t=a(t,31)+(null==this.kd_1?0:x(this.kd_1))|0,t=a(t,31)+y(this.ld_1)|0,t=a(t,31)+(null==this.md_1?0:y(this.md_1))|0,t=a(t,31)+(null==this.nd_1?0:x(this.nd_1))|0,a(t,31)+(null==this.od_1?0:x(this.od_1))|0},c(P).equals=function(t){if(this===t)return!0;if(!(t instanceof P))return!1;var n=t instanceof P?t:k();return!!(this.jd_1.equals(n.jd_1)&&b(this.kd_1,n.kd_1)&&this.ld_1===n.ld_1&&this.md_1==n.md_1&&b(this.nd_1,n.nd_1)&&b(this.od_1,n.od_1))},c(F).tc=function(t,n,i){if(this.rd(t,n)){var e=new I;i(e),5!==t.b1_1&&K().gd_1.dd(V(t,n,this.qd_1,e))}},c(F).rd=function(t,n){return t.b1_1>=K().ed_1.b1_1},c(W).wc=function(t){return new F(t)},c(U).cd=function(t,n){switch(t.jd_1.b1_1){case 0:case 1:console.log(n);break;case 2:console.info(n);break;case 3:console.warn(n);break;case 4:console.error(n);break;case 5:break;default:q()}},c(Y).vc=function(t){for(var n=!1,i=C(),e=E(S(i),["\n"]).f();e.g();){var r=e.h();if(n)return R(R(z(r,".kt"),"."),"/");A(r,"at KotlinLogging")&&(n=!0)}return""},c(F).sc=function(t,n,i,e){var r;return n=n===f?null:n,e===f?(this.tc(t,n,i),r=l):r=e.tc.call(this,t,n,i),r},c(F).rc=function(t){var n,i=(N(),r);return this.sc(i,f,(n=t,function(t){return t.oc_1=function(t){var n;try{n=g(t())}catch(t){if(!(t instanceof p))throw t;var i=t;n=u.bd(i)}return n}(n),l}))},i=new T,u=new O,_=new W,h=new Y,t.$_$=t.$_$||{},t.$_$.a=i,t})?e.apply(n,r):e)||(t.exports=s)},539:(t,n,i)=>{var e,r,s;r=[n,i(36)],void 0===(s="function"==typeof(e=function(t,n){"use strict";var i,e,r,s,u,_,o,h=Math.imul,a=n.$_$.g3,l=n.$_$.w2,f=n.$_$.u2,c=n.$_$.c,v=n.$_$.p3,d=n.$_$.i3,$=n.$_$.p,w=n.$_$.n2,g=n.$_$.b2,p=n.$_$.h1,b=n.$_$.g,j=n.$_$.j,m=n.$_$.z1,x=n.$_$.g1,y=n.$_$.x1,k=n.$_$.e2,q=n.$_$.d1,C=n.$_$.f,S=n.$_$.o4,E=n.$_$.a1,z=n.$_$.c2,R=n.$_$.j4,A=n.$_$.e1,L=n.$_$.l3,I=n.$_$.p1,T=n.$_$.m3,N=n.$_$.r2,M=n.$_$.y2,O=n.$_$.a,B=n.$_$.h4,D=n.$_$.s2,G=n.$_$.o2,V=n.$_$.c3,P=n.$_$.t2,F=n.$_$.i,W=n.$_$.f1,U=n.$_$.h,H=n.$_$.k2,K=n.$_$.i1,Y=n.$_$.d,X=n.$_$.i4,Q=n.$_$.o1,Z=n.$_$.r;function J(){}function tt(t){return new rt(t)}function nt(t){this.yd_1=t,this.xd_1=t.ud()}function it(t){this.zd_1=t}function et(t){this.be_1=t,this.ae_1=t.ud()}function rt(t){this.ce_1=t}function st(t,n,i,e){if(e=e===c?ht:e,v(t))throw $(d("Blank serial names are prohibited"));if(w(n,vt()))throw $(d("For StructureKind.CLASS please use 'buildClassSerialDescriptor' instead"));var r=new ut(t);return e(r),new ot(t,n,r.ge_1.i(),g(i),r)}function ut(t){this.de_1=t,this.ee_1=!1,this.fe_1=p(),this.ge_1=b(),this.he_1=j(),this.ie_1=b(),this.je_1=b(),this.ke_1=b()}function _t(t){var n=t.we_1;return N("_hashCode",1,T,(function(t){return _t(t)}),null),n.q()}function ot(t,n,i,e,r){this.le_1=t,this.me_1=n,this.ne_1=i,this.oe_1=r.fe_1,this.pe_1=m(r.ge_1);var s=r.ge_1;this.qe_1=x(s),this.re_1=xt(r.ie_1);var u,_=r.je_1;this.se_1=x(_),this.te_1=y(r.ke_1);for(var o=k(this.qe_1),h=C(q(o,10)),a=o.f();a.g();){var l=a.h(),f=S(l.z9_1,l.y9_1);h.d(f)}this.ue_1=z(h),this.ve_1=xt(e),this.we_1=R((u=this,function(){return kt(u,u.ve_1)}))}function ht(t){return E}function at(){i=this,ft.call(this)}function lt(){return null==i&&new at,i}function ft(){}function ct(){e=this,$t.call(this)}function vt(){return null==e&&new ct,e}function dt(){r=this,$t.call(this)}function $t(){ft.call(this)}function wt(){}function gt(t,n){return function(){var i=t.ze_1;return null==i?function(t,n){for(var i=new jt(n,t.ye_1.length),e=t.ye_1,r=0,s=e.length;r0},a(nt).h=function(){var t=this.yd_1.ud(),n=this.xd_1;return this.xd_1=n-1|0,this.yd_1.wd(t-n|0)},a(it).f=function(){return new nt(this.zd_1)},a(et).g=function(){return this.ae_1>0},a(et).h=function(){var t=this.be_1.ud(),n=this.ae_1;return this.ae_1=n-1|0,this.be_1.vd(t-n|0)},a(rt).f=function(){return new et(this.ce_1)},a(ot).sd=function(){return this.le_1},a(ot).td=function(){return this.me_1},a(ot).ud=function(){return this.ne_1},a(ot).xe=function(){return this.pe_1},a(ot).vd=function(t){return zt(this.qe_1,t)},a(ot).wd=function(t){return zt(this.re_1,t)},a(ot).equals=function(t){var n;t:if(this!==t)if(t instanceof ot)if(this.sd()===t.sd())if(A(this.ve_1,t.ve_1))if(this.ud()===t.ud()){var i=0,e=this.ud();if(i"},a(jt).td=function(){return this.bg_1},a(jt).wd=function(t){return zt(bt(this),t)},a(jt).equals=function(t){return this===t||null!=t&&!(null==t||!V(t,J))&&t.td()===lt()&&this.sd()===t.sd()&&!!w(mt(this),mt(t))},a(jt).toString=function(){return I(tt(this),", ",this.sd()+"(",")")},a(jt).hashCode=function(){for(var t=D(this.sd()),n=1,i=tt(this).f();i.g();){var e=i.h(),r=h(31,n),s=null==e?null:P(e);n=r+(null==s?0:s)|0}var u=n;return h(31,t)+u|0},a(Et).sd=function(){return this.bf_1},a(Et).ud=function(){return this.df_1},a(Et).td=function(){return vt()},a(Et).xe=function(){return this.jf_1.z()},a(Et).dg=function(){var t=this.lf_1;return N("typeParameterDescriptors",1,T,(function(t){return t.dg()}),null),t.q()},a(Et).eg=function(t,n){this.ef_1=this.ef_1+1|0,this.ff_1[this.ef_1]=t,this.if_1[this.ef_1]=n,this.gf_1[this.ef_1]=null,this.ef_1===(this.df_1-1|0)&&(this.jf_1=function(t){var n=U(),i=0,e=t.ff_1.length-1|0;if(i<=e)do{var r=i;i=i+1|0;var s=t.ff_1[r];n.h3(s,r)}while(i<=e);return n}(this))},a(Et).nf=function(t,n,i){var e;return n=n!==c&&n,i===c?(this.eg(t,n),e=E):e=i.eg.call(this,t,n),e},a(Et).wd=function(t){return zt(qt(this),t).of()},a(Et).vd=function(t){return zt(this.ff_1,t)},a(Et).equals=function(t){var n;t:if(this!==t)if(t instanceof Et)if(this.sd()===t.sd())if(A(this.dg(),t.dg()))if(this.ud()===t.ud()){var i=0,e=this.ud();if(i{var e,r,s;r=[n,i(50),i(36),i(560),i(989),i(731),i(644),i(120)],void 0===(s="function"==typeof(e=function(t,n,i,e,r,s,u,_){"use strict";var o=n.$_$.z,h=i.$_$.a1,a=e.$_$.d,l=i.$_$.g3,f=e.$_$.q,c=r.$_$.b,v=i.$_$.u2,d=s.$_$.a,$=i.$_$.h2,w=i.$_$.f4,g=n.$_$.w,p=i.$_$.c3,b=i.$_$.f,j=u.$_$.b,m=u.$_$.a,x=i.$_$.c,y=i.$_$.x2;function k(t){return t.e11(q),t.f11((n=new E(null),(i=function(t,i){return n.b1h(t,i)}).$arity=1,i)),h;var n,i}function q(t){return t.h11_1=640,t.i11_1=360,h}function C(t,n,i,e,r,s,u,_){this.k1g_1=t,this.l1g_1=n,this.m1g_1=i,this.n1g_1=e,this.o1g_1=r,this.f1g_1=s,this.g1g_1=u,this.h1g_1=_,this.i1g_1=a().yk_1,this.j1g_1=t.b14().vr().in(-this.g1g_1)}function S(t){return function(n){n.b14().fs(d().em_1),n.b14().hs(null),n.b14().gs(d().fm_1.vm(.8));for(var i=t.f();i.g();){var e=i.h();e.p1g(t),e.q1g(),e.r1g()}return h}}function E(t){$.call(this,t)}return v(C,"Ball"),y(E,$,x,[1]),l(C).p1g=function(t){var n=this.h1g_1+1|0,i=this.l1g_1;if(n{var e,r,s;r=[n,i(36)],void 0===(s="function"==typeof(e=function(t,n){"use strict";var i,e,r,s,u,_=n.$_$.g3,o=n.$_$.f3,h=n.$_$.g,a=n.$_$.d1,l=n.$_$.f,f=n.$_$.a1,c=n.$_$.c4,v=n.$_$.v2,d=n.$_$.c,$=n.$_$.u2,w=n.$_$.a4,g=n.$_$.h3,p=n.$_$.w2,b=n.$_$.e3;function j(){return t=o(_(y)),y.call(t),t.k10_1=t,t;var t}function m(){i=this,this.y10_1=new z}function x(){return null==i&&new m,i}function y(){x(),this.f10_1=x().y10_1.b11(),this.g10_1=this.f10_1,this.h10_1=h(),this.i10_1=null,this.j10_1=null,this.k10_1=null}function k(){if(u)return f;u=!0,e=new q("Queued",0),r=new q("Playing",1),s=new q("Stopped",2)}function q(t,n){w.call(this,t,n)}function C(){}function S(){}function E(t){this.d11_1=t}function z(){}return v(m),$(y,"Animatable",j),$(q,"AnimationState",d,w),p(C,"Clock"),$(S,"AnimationEvent",S),$(E,"AnimationUpdateEvent"),$(z,"DefaultClock",z,d,[C]),_(y).z10=function(t){this.g10_1=t,this.f10_1=this.g10_1,function(t,n){for(var i=h(),u=h(),_=t.h10_1,o=l(a(_,10)),f=_.f();f.g();){var v=f.h();o.d(v)}for(var d=o.f();d.g();){var $=d.h();if($.o10_1.k1(n)<=0){if($.u10_1.equals((k(),e))&&$.v10(),$.u10_1.equals((k(),r))){var w=n.m1($.o10_1).s1();$.n10_1.k1(new c(0,0))>0?w/=$.n10_1.s1():w=1,w<0&&(w=0),w>=1&&(w=1,$.w10()),$.x10(w),$.s10_1.on(new E(w))}$.u10_1.equals((k(),s))&&(u.d($.r10_1),i.d($))}}for(var g=u.f();g.g();)g.h().on(new S);for(var p=i.f();p.g();){var b=p.h();t.h10_1.i2(b)}t.g10_1=n,t.g10_1.k1(t.f10_1)>0&&(t.f10_1=t.g10_1)}(this,t)},_(y).a11=function(t,n){var i;return t=t===d?x().y10_1.b11():t,n===d?(this.z10(t),i=f):i=n.z10.call(this,t),i},_(z).b11=function(){return b(1e3*window.performance.now())},_(z).c11=function(){return this.b11().o1(g(1e3))},t.$_$=t.$_$||{},t.$_$.a=j,t})?e.apply(n,r):e)||(t.exports=s)},50:(t,n,i)=>{var e,r,s;r=[n,i(36),i(856),i(114),i(731)],void 0===(s="function"==typeof(e=function(t,n,i,e,r){"use strict";var s,u,_,o,h,a,l,f,c,v,d,$,w,g,p,b,j,m,x,y,k,q,C,S,E,z,R,A,L,I,T,N,M,O,B=Math.imul,D=n.$_$.a1,G=n.$_$.a4,V=n.$_$.g3,P=n.$_$.u2,F=n.$_$.c,W=n.$_$.y2,U=n.$_$.w2,H=i.$_$.a,K=n.$_$.i3,Y=n.$_$.s2,X=n.$_$.t2,Q=n.$_$.f4,Z=n.$_$.n2,J=e.$_$.a,tt=n.$_$.j4,nt=n.$_$.l,it=r.$_$.a,et=n.$_$.g,rt=n.$_$.m4,st=n.$_$.q,ut=n.$_$.k4,_t=n.$_$.v1,ot=n.$_$.p2,ht=n.$_$.m3,at=n.$_$.r2,lt=n.$_$.h2,ft=n.$_$.f2,ct=n.$_$.x2,vt=n.$_$.i2,dt=n.$_$.w,$t=n.$_$.g2,wt=n.$_$.h1,gt=n.$_$.l2,pt=n.$_$.s3,bt=n.$_$.p3;function jt(t,n){}function mt(t,n){}function xt(t,n){G.call(this,t,n)}function yt(){}function kt(){this.g11_1="openrndr-canvas",this.h11_1=640,this.i11_1=480,this.j11_1=128,this.k11_1=128,this.l11_1=268435455,this.m11_1=268435455,this.n11_1="OPENRNDR",this.o11_1=!1,this.p11_1=!1,this.q11_1=!1,this.r11_1=null,this.s11_1=(function(){if(h)return D;h=!0,o=new St("DISABLED",0),new St("CURRENT_DISPLAY_MODE",1),new St("SET_DISPLAY_MODE",2)}(),o),this.t11_1=!0,this.u11_1=!1,this.v11_1=(function(){if(L)return D;L=!0,A=new Pt("HIDE",0),new Pt("DISABLE",1)}(),A),this.w11_1=null,this.x11_1=(function(){if(l)return D;l=!0,a=new Et("NORMAL",0),new Et("THROTTLE",1)}(),a),this.y11_1=!1,this.z11_1=!1,this.a12_1=!0,this.b12_1=!1,this.c12_1=(null==_&&new qt,_),this.d12_1=!0,this.e12_1=10}function qt(){_=this,Ct.call(this)}function Ct(){}function St(t,n){G.call(this,t,n)}function Et(t,n){G.call(this,t,n)}function zt(){}function Rt(){}function At(t,n){G.call(this,t,n)}function Lt(){this.m12_1=new H("keyboard-key-down",!0),this.n12_1=new H("keyboard-key-up",!0),this.o12_1=new H("keyboard-key-repeat",!0),this.p12_1=new H("keyboard-character",!0)}function It(){if(g)return D;g=!0,v=new Tt("MOVED",0),new Tt("DRAGGED",1),new Tt("CLICKED",2),d=new Tt("BUTTON_UP",3),$=new Tt("BUTTON_DOWN",4),w=new Tt("SCROLLED",5),new Tt("ENTERED",6),new Tt("EXITED",7)}function Tt(t,n){G.call(this,t,n)}function Nt(){if(x)return D;x=!0,p=new Mt("LEFT",0),b=new Mt("RIGHT",1),j=new Mt("CENTER",2),m=new Mt("NONE",3)}function Mt(t,n){G.call(this,t,n)}function Ot(){if(S)return D;S=!0,y=new Bt("SHIFT",0,1),k=new Bt("CTRL",1,2),q=new Bt("ALT",2,4),C=new Bt("SUPER",3,8)}function Bt(t,n,i){G.call(this,t,n),this.u12_1=i}function Dt(t,n,i,e){this.v12_1=t,this.w12_1=n,this.x12_1=i,this.y12_1=e,this.z12_1=!1}function Gt(){if(R)return D;R=!0,E=new Vt("KEY_DOWN",0),z=new Vt("KEY_UP",1),new Vt("KEY_REPEAT",2)}function Vt(t,n){G.call(this,t,n)}function Pt(t,n){G.call(this,t,n)}function Ft(t,n){G.call(this,t,n)}function Wt(t){this.a13_1=t,this.b13_1=new H("mouse-button-down",!0),this.c13_1=new H("mouse-button-up",!0),this.d13_1=new H("mouse-dragged",!0),this.e13_1=new H("mouse-moved",!0),this.f13_1=new H("mouse-scrolled",!0),this.g13_1=this.c13_1,this.h13_1=new H("mouse-entered",!0),this.i13_1=new H("mouse-exited",!0)}function Ut(t,n,i,e,r,s){this.o13_1=t,this.p13_1=n,this.q13_1=i,this.r13_1=e,this.s13_1=r,this.t13_1=s,this.u13_1=!1}function Ht(t){this.v13_1=t}function Kt(){}function Yt(t,n,i){this.g14_1=t,this.h14_1=n,this.i14_1=i}function Xt(t,n,i){this.j14_1=t,this.k14_1=n,this.l14_1=i}function Qt(t){var n=t.s14_1;return at("animator",1,ht,(function(t){return Qt(t)}),null),n.q()}function Zt(t){this.p15_1=t}function Jt(t){this.y15_1=t,this.q15_1=new H("window-focused",!0),this.r15_1=new H("window-unfocused",!0),this.s15_1=new H("window-moved",!0),this.t15_1=new H("window-sized",!0),this.u15_1=new H("window-minimized",!0),this.v15_1=new H("window-restored",!0),this.w15_1=new H("window-closed",!0),this.x15_1=new H("window-drop",!0)}function tn(){return J()}function nn(t){return function(){return new Xt(t.w13(),function(t,n,i){i=i===F?null:i;var e,r=0===gt(n=n===F?"":n)?"":pt(n,".")?n:"."+n,s=t.w13();if(bt(s)){var u=t.c14().z15();e=bt(u)?"untitled":u}else e=s;return""+i+e+r}(t),t.i16())}}function en(t){this.n16_1=t,this.m16_1=!0}function rn(t){this.p16_1=t,this.o16_1=!0}function sn(t){this.r16_1=t,this.q16_1=!0}function un(){return new Lt}function _n(t){var n;t=t!==F&&t,this.m14_1=t,this.n14_1=0,this.o14_1=0,this.p14_1=tt((n=this,function(){return n})),this.q14_1=nt(),this.r14_1="unknown",this.s14_1=tt(tn),this.v14_1=!1,this.w14_1=it().em_1,this.x14_1=new wn,this.y14_1=new H,this.z14_1=1/0,this.a15_1=function(t){return function(){return t.z14_1===1/0||t.h16()<=0?0:t.a16().g16()-t.z14_1}}(this),this.b15_1=nt(),this.c15_1=nn(this),this.d15_1=new H,this.e15_1=new H,this.d15_1.qn(function(t){return function(n){return t.e15_1.on(new Yt(n.j16_1,n.k16_1,t.l16()())),D}}(this)),this.f15_1=0,this.g15_1=0,this.h15_1=-1,this.i15_1=0,this.j15_1=new Zt(this),this.k15_1=et(),this.l15_1=new Jt(this),this.m15_1=tt(un),this.n15_1=tt(function(t){return function(){return new Wt(function(t){return function(){return t.a16()}}(t))}}(this)),this.o15_1=tt(function(t){return function(){return new Ht(function(t){return function(){return t.a16()}}(t))}}(this))}function on(t,n,i,e){this.z16_1=t,this.a17_1=n,this.b17_1=i,this.c17_1=e}function hn(t,n){this.d17_1=t,this.e17_1=n}function an(t,n){G.call(this,t,n)}function ln(t,n){this.n17_1=t,lt.call(this,n)}function fn(){}function cn(){}function vn(){}function dn(t){this.b19_1=t,_n.call(this)}function $n(){yt.call(this),this.u17_1=new kt,this.v17_1=new _n;var t,n=null==O?null:O();if(null==n)throw st(K("applicationFunc not set"));t=n,this.w17_1=t,this.x17_1=wt()}function wn(){}return P(xt,"PresentationMode",F,G),P(yt,"ApplicationBuilder"),P(kt,"Configuration",kt),P(Ct,"WindowMultisample"),W(qt,"Disabled",F,Ct),P(St,"Fullscreen",F,G),P(Et,"UnfocusBehaviour",F,G),U(zt,"ExtensionHost"),U(Rt,"Extension"),P(At,"ExtensionStage",F,G),P(Lt,"Keyboard",Lt),P(Tt,"MouseEventType",F,G),P(Mt,"MouseButton",F,G),P(Bt,"KeyModifier",F,G),P(Dt,"KeyEvent"),P(Vt,"KeyEventType",F,G),P(Pt,"MouseCursorHideMode",F,G),P(Ft,"CursorType",F,G),P(Wt,"ApplicationMouse"),P(Ut,"MouseEvent"),P(Ht,"Pointers"),U(Kt,"Program",F,F,[zt],[0]),P(Yt,"ProduceAssetsEvent"),P(Xt,"AssetMetadata"),P(Zt,"ApplicationClipboard"),P(Jt,"Window"),P(en,F,F,F,[Rt]),P(rn,F,F,F,[Rt]),P(sn,F,F,F,[Rt]),P(_n,"ProgramImplementation",_n,F,[Kt],[0]),P(on,"WindowEvent"),P(hn,"DropEvent"),P(an,"WindowEventType",F,G),ct(ln,lt,F,[0]),P(fn,"Application",F,F,F,[0]),P(cn,F,F,F,[$t]),P(vn,"ApplicationBase"),P(dn,F,F,_n,F,[0]),P($n,"ApplicationBuilderJS",F,yt),P(wn,"Dispatcher",wn),V(Lt).q12=function(){return this.m12_1},V(Lt).r12=function(){return this.n12_1},V(Dt).toString=function(){return"KeyEvent(type="+this.v12_1.toString()+", key="+this.w12_1+", name="+this.x12_1+", modifiers="+K(this.y12_1)+")"},V(Dt).hashCode=function(){var t=this.v12_1.hashCode();return t=B(t,31)+this.w12_1|0,t=B(t,31)+Y(this.x12_1)|0,B(t,31)+X(this.y12_1)|0},V(Dt).equals=function(t){if(this===t)return!0;if(!(t instanceof Dt))return!1;var n=t instanceof Dt?t:Q();return!!this.v12_1.equals(n.v12_1)&&this.w12_1===n.w12_1&&this.x12_1===n.x12_1&&!!Z(this.y12_1,n.y12_1)},V(Wt).j13=function(){return this.b13_1},V(Wt).k13=function(){return this.c13_1},V(Wt).l13=function(){return this.d13_1},V(Wt).m13=function(){return this.e13_1},V(Wt).n13=function(){return this.f13_1},V(Ut).toString=function(){return"MouseEvent(position="+this.o13_1.toString()+", rotation="+this.p13_1.toString()+", dragDisplacement="+this.q13_1.toString()+", type="+this.r13_1.toString()+", button="+this.s13_1.toString()+", modifiers="+K(this.t13_1)+")"},V(Ut).hashCode=function(){var t=this.o13_1.hashCode();return t=B(t,31)+this.p13_1.hashCode()|0,t=B(t,31)+this.q13_1.hashCode()|0,t=B(t,31)+this.r13_1.hashCode()|0,t=B(t,31)+this.s13_1.hashCode()|0,B(t,31)+X(this.t13_1)|0},V(Ut).equals=function(t){if(this===t)return!0;if(!(t instanceof Ut))return!1;var n=t instanceof Ut?t:Q();return!!(this.o13_1.equals(n.o13_1)&&this.p13_1.equals(n.p13_1)&&this.q13_1.equals(n.q13_1)&&this.r13_1.equals(n.r13_1)&&this.s13_1.equals(n.s13_1)&&Z(this.t13_1,n.t13_1))},V(Yt).toString=function(){return"ProduceAssetsEvent(origin="+K(this.g14_1)+", program="+K(this.h14_1)+", assetMetadata="+this.i14_1.toString()+")"},V(Yt).hashCode=function(){var t=X(this.g14_1);return t=B(t,31)+X(this.h14_1)|0,B(t,31)+this.i14_1.hashCode()|0},V(Yt).equals=function(t){if(this===t)return!0;if(!(t instanceof Yt))return!1;var n=t instanceof Yt?t:Q();return!!Z(this.g14_1,n.g14_1)&&!!Z(this.h14_1,n.h14_1)&&!!this.i14_1.equals(n.i14_1)},V(Xt).toString=function(){return"AssetMetadata(programName="+this.j14_1+", assetBaseName="+this.k14_1+", assetProperties="+K(this.l14_1)+")"},V(Xt).hashCode=function(){var t=Y(this.j14_1);return t=B(t,31)+Y(this.k14_1)|0,B(t,31)+X(this.l14_1)|0},V(Xt).equals=function(t){if(this===t)return!0;if(!(t instanceof Xt))return!1;var n=t instanceof Xt?t:Q();return this.j14_1===n.j14_1&&this.k14_1===n.k14_1&&!!Z(this.l14_1,n.l14_1)},V(Jt).z15=function(){return this.y15_1.a16().b16()},V(Jt).i=function(){return this.y15_1.a16().c16()},V(Jt).as=function(){return this.y15_1.a16().d16()},V(Jt).e16=function(){return this.t15_1},V(Jt).f16=function(){return this.x15_1},V(en).j12=function(){return this.m16_1},V(rn).j12=function(){return this.o16_1},V(rn).k12=function(t,n){n.z13(!0),this.p16_1(n)},V(sn).j12=function(){return this.q16_1},V(sn).l12=function(t,n){n.z13(!0),this.r16_1(n)},V(_n).x13=function(t){this.n14_1=t},V(_n).wr=function(){return this.n14_1},V(_n).y13=function(t){this.o14_1=t},V(_n).xr=function(){return this.o14_1},V(_n).w13=function(){return this.r14_1},V(_n).a14=function(t){this.t14_1=t},V(_n).b14=function(){var t=this.t14_1;if(null!=t)return t;rt("drawer")},V(_n).d14=function(t){this.u14_1=t},V(_n).a16=function(){var t=this.u14_1;if(null!=t)return t;rt("application")},V(_n).z13=function(t){this.v14_1=t},V(_n).s16=function(){return this.v14_1},V(_n).t16=function(){return this.w14_1},V(_n).u16=function(){return this.a15_1},V(_n).i16=function(){return this.b15_1},V(_n).l16=function(){return this.c15_1},V(_n).v16=function(t){this.i15_1=t},V(_n).h16=function(){return this.i15_1},V(_n).g16=function(){return this.f15_1},V(_n).w16=function(){return this.k15_1.u()&&this.z13(!1),this.k15_1},V(_n).f12=function(t,n){var i;if(this.s16())throw st(K("Cannot nest extend blocks within extend blocks"));switch(t.b1_1){case 0:i=new en(n);break;case 1:i=new rn(n);break;case 2:i=new sn(n);break;default:ut()}var e=i;this.w16().d(e)},V(_n).c14=function(){return this.l15_1},V(_n).i12=function(){var t=this.m15_1;return at("keyboard",1,ht,(function(t){return t.i12()}),null),t.q()},V(_n).h12=function(){var t=this.n15_1;return at("mouse",1,ht,(function(t){return t.h12()}),null),t.q()},V(_n).e14=function(t){return D},V(_n).f14=function(){0===this.h16()&&(this.z14_1=this.a16().g16()),Qt(this).a11(),this.x16(),-1===this.h15_1&&(this.h15_1=this.g16()),this.g15_1=this.f15_1-this.h15_1,this.h15_1=this.f15_1;var t=this.t16();null==t||this.b14().fs(t);for(var n=this.w16(),i=et(),e=n.f();e.g();){var r=e.h();r.j12()&&i.d(r)}for(var s=i.f();s.g();)s.h().k12(this.b14(),this);this.y16();for(var u=_t(this.w16()),_=et(),o=u.f();o.g();){var h=o.h();h.j12()&&_.d(h)}for(var a=_.f();a.g();)a.h().l12(this.b14(),this);var l=this.h16();this.v16(l+1|0)},V(_n).y16=function(){},V(_n).x16=function(){this.f15_1=this.u16()()},V(on).toString=function(){return"WindowEvent(type="+this.z16_1.toString()+", position="+this.a17_1.toString()+", size="+this.b17_1.toString()+", focused="+this.c17_1+")"},V(on).hashCode=function(){var t=this.z16_1.hashCode();return t=B(t,31)+this.a17_1.hashCode()|0,t=B(t,31)+this.b17_1.hashCode()|0,B(t,31)+ot(this.c17_1)|0},V(on).equals=function(t){if(this===t)return!0;if(!(t instanceof on))return!1;var n=t instanceof on?t:Q();return!!this.z16_1.equals(n.z16_1)&&!!this.a17_1.equals(n.a17_1)&&!!this.b17_1.equals(n.b17_1)&&this.c17_1===n.c17_1},V(hn).toString=function(){return"DropEvent(position="+this.d17_1.toString()+", files="+K(this.e17_1)+")"},V(hn).hashCode=function(){var t=this.d17_1.hashCode();return B(t,31)+X(this.e17_1)|0},V(hn).equals=function(t){if(this===t)return!0;if(!(t instanceof hn))return!1;var n=t instanceof hn?t:Q();return!!this.d17_1.equals(n.d17_1)&&!!Z(this.e17_1,n.e17_1)},V(ln).o17=function(t){var n=this.p17(t);return n.s6_1=D,n.t6_1=null,n.y6()},V(ln).q7=function(t){return this.o17(t)},V(ln).y6=function(){var t=this.s6_1;t:for(;;)try{switch(this.q6_1){case 0:if(this.r6_1=2,this.q6_1=1,(t=this.n17_1.e14(this))===ft())return t;continue t;case 1:return this.n17_1.q17(),D;case 2:throw this.t6_1}}catch(t){var n=t;if(2===this.r6_1)throw n;this.q6_1=this.r6_1,this.t6_1=n}},V(ln).p17=function(t){return new ln(this.n17_1,t)},V(fn).r17=function(){var t,n;t=new ln(this,null),(n=function(n){return t.o17(n)}).$arity=0,vt(n,new cn)},V(cn).w6=function(){return dt()},V(cn).s17=function(t){},V(cn).b7=function(t){return this.s17(t)},V(dn).e14=function(t){return this.b19_1(this,t)},V($n).e11=function(t){t(this.u17_1)},V($n).f11=function(t){return this.v17_1=new dn(t),this.v17_1},V(en).k12=jt,V(en).l12=mt,V(rn).l12=mt,V(sn).k12=jt,V(_n).g12=function(t,n,i){var e;return t=t===F?(function(){if(c)return D;c=!0,new At("SETUP",0),f=new At("BEFORE_DRAW",1),new At("AFTER_DRAW",2)}(),f):t,i===F?(this.f12(t,n),e=D):e=i.f12.call(this,t,n),e},O=null,t.$_$=t.$_$||{},t.$_$.a=function(){return function(){if(T)return D;T=!0,I=new Ft("ARROW_CURSOR",0),new Ft("IBEAM_CURSOR",1),new Ft("CROSSHAIR_CURSOR",2),new Ft("HAND_CURSOR",3),new Ft("HRESIZE_CURSOR",4),new Ft("VRESIZE_CURSOR",5)}(),I},t.$_$.b=function(){return Gt(),E},t.$_$.c=function(){return Gt(),z},t.$_$.d=function(){return Ot(),q},t.$_$.e=function(){return Ot(),k},t.$_$.f=function(){return Ot(),y},t.$_$.g=function(){return Ot(),C},t.$_$.h=function(){return Nt(),j},t.$_$.i=function(){return Nt(),p},t.$_$.j=function(){return Nt(),m},t.$_$.k=function(){return Nt(),b},t.$_$.l=function(){return It(),$},t.$_$.m=function(){return It(),d},t.$_$.n=function(){return It(),v},t.$_$.o=function(){return It(),w},t.$_$.p=function(){return function(){if(u)return D;u=!0,s=new xt("AUTOMATIC",0),new xt("MANUAL",1)}(),s},t.$_$.q=function(){return function(){if(M)return D;M=!0,new an("MOVED",0),N=new an("RESIZED",1),new an("FOCUSED",2),new an("UNFOCUSED",3),new an("MINIMIZED",4),new an("RESTORED",5),new an("CLOSED",6)}(),N},t.$_$.r=vn,t.$_$.s=fn,t.$_$.t=hn,t.$_$.u=Dt,t.$_$.v=Ut,t.$_$.w=Kt,t.$_$.x=on,t.$_$.y=function(t){O=t},t.$_$.z=function(t){var n=new $n;t(n),n.w17_1.t17(n.v17_1,n.u17_1).r17()},t})?e.apply(n,r):e)||(t.exports=s)},731:(t,n,i)=>{var e,r,s;r=[n,i(36),i(560),i(539)],void 0===(s="function"==typeof(e=function(t,n,i,e){"use strict";var r,s,u,_,o,h=Math.imul,a=n.$_$.g3,l=n.$_$.v2,f=n.$_$.c,c=n.$_$.q2,v=i.$_$.s,d=n.$_$.f4,$=n.$_$.n2,w=i.$_$.k,g=n.$_$.u2,p=e.$_$.a,b=n.$_$.d,j=n.$_$.i4,m=n.$_$.a1,x=n.$_$.a4;function y(){r=this,this.cm_1=[null,null,null,null,z().bm(),null],this.dm_1=this.om(16761035),this.em_1=new C(0,0,0,1,I()),this.fm_1=new C(1,1,1,1,I()),this.gm_1=new C(1,0,0,1,I()),this.hm_1=new C(0,0,1,1,I()),this.im_1=new C(0,1,0,1,I()),this.jm_1=new C(1,1,0,1,I()),this.km_1=new C(0,1,1,1,I()),this.lm_1=new C(1,0,1,1,I()),this.mm_1=new C(.5,.5,.5,1,I()),this.nm_1=new C(0,0,0,0,L())}function k(){return null==r&&new y,r}function q(t){var n;if(t<=.04045)n=t/12.92;else{var i=(t+.055)/1.055;n=Math.pow(i,2.4)}return n}function C(t,n,i,e,r){k(),e=e===f?1:e,r=r===f?L():r,this.pm_1=t,this.qm_1=n,this.rm_1=i,this.sm_1=e,this.tm_1=r,this.um_1=this.sm_1}function S(){return p("org.openrndr.color.Linearity",[L(),I()])}function E(){_=this;var t=b();this.am_1=j(t,S)}function z(){return R(),null==_&&new E,_}function R(){if(o)return m;o=!0,s=new A("LINEAR",0,1),u=new A("SRGB",1,1),z()}function A(t,n,i){x.call(this,t,n),this.zm_1=i}function L(){return R(),s}function I(){return R(),u}return l(y),g(C,"ColorRGBa",f,f,[w]),l(E),g(A,"Linearity",f,x,f,f,f,{0:z}),a(y).om=function(t){return new C(((16711680&t)>>16)/255,((65280&t)>>8)/255,(255&t)/255,1,I())},a(C).vm=function(t){return new C(this.pm_1,this.qm_1,this.rm_1,this.sm_1*t,this.tm_1)},a(C).wm=function(){return 1===this.tm_1.b1_1?new C(q(this.pm_1),q(this.qm_1),q(this.rm_1),this.sm_1,L()):this},a(C).hashCode=function(){var t=c(this.pm_1);return t=h(31,t)+c(this.qm_1)|0,t=h(31,t)+c(this.rm_1)|0,t=h(31,t)+c(this.sm_1)|0,h(31,t)+this.tm_1.b1_1|0},a(C).zl=function(){return new v(this.pm_1,this.qm_1,this.rm_1,this.sm_1)},a(C).toString=function(){return"ColorRGBa(r="+this.pm_1+", g="+this.qm_1+", b="+this.rm_1+", alpha="+this.sm_1+", linearity="+this.tm_1.toString()+")"},a(C).equals=function(t){if(this===t)return!0;if(!(t instanceof C))return!1;var n=t instanceof C?t:d();return!!($(this.pm_1,n.pm_1)&&$(this.qm_1,n.qm_1)&&$(this.rm_1,n.rm_1)&&$(this.sm_1,n.sm_1)&&this.tm_1.equals(n.tm_1))},a(E).bm=function(){return this.am_1.q()},t.$_$=t.$_$||{},t.$_$.a=k,t.$_$.b=C,t})?e.apply(n,r):e)||(t.exports=s)},988:(t,n,i)=>{var e,r,s;r=[n,i(36),i(560),i(731),i(989),i(73)],void 0===(s="function"==typeof(e=function(t,n,i,e,r,s){"use strict";var u,_,o,h,a,l,f,c,v,d,$,w,g,p,b,j,m,x,y,k,q,C,S,E,z,R,A,L,I,T,N,M,O,B,D,G,V,P,F,W,U,H,K,Y,X,Q,Z,J,tt,nt,it,et,rt,st,ut,_t,ot,ht,at,lt,ft,ct,vt,dt,$t,wt,gt,pt,bt,jt,mt,xt,yt,kt,qt,Ct,St,Et,zt,Rt,At,Lt,It,Tt,Nt,Mt,Ot,Bt,Dt,Gt,Vt,Pt,Ft,Wt,Ut,Ht,Kt,Yt,Xt,Qt,Zt,Jt,tn=Math.imul,nn=n.$_$.g3,en=n.$_$.w2,rn=n.$_$.c,sn=n.$_$.v2,un=n.$_$.i3,_n=n.$_$.p,on=n.$_$.u2,hn=n.$_$.a1,an=n.$_$.y2,ln=i.$_$.q,fn=i.$_$.b,cn=i.$_$.f,vn=n.$_$.q2,dn=n.$_$.f4,$n=n.$_$.n2,wn=n.$_$.l,gn=n.$_$.g4,pn=n.$_$.a4,bn=n.$_$.k4,jn=e.$_$.a,mn=i.$_$.c,xn=n.$_$.n4,yn=n.$_$.p2,kn=n.$_$.t2,qn=n.$_$.e,Cn=n.$_$.j4,Sn=r.$_$.a,En=i.$_$.e,zn=i.$_$.g,Rn=s.$_$.b,An=n.$_$.x3,Ln=s.$_$.a,In=n.$_$.m3,Tn=n.$_$.r2,Nn=n.$_$.d3,Mn=n.$_$.g,On=n.$_$.m,Bn=n.$_$.q,Dn=n.$_$.z,Gn=n.$_$.b,Vn=e.$_$.b,Pn=i.$_$.p,Fn=i.$_$.o,Wn=i.$_$.j,Un=i.$_$.n,Hn=i.$_$.s,Kn=i.$_$.i,Yn=i.$_$.m,Xn=i.$_$.r,Qn=i.$_$.h,Zn=i.$_$.l,Jn=n.$_$.o3,ti=n.$_$.s3,ni=n.$_$.s2,ii=n.$_$.n1,ei=n.$_$.a2,ri=n.$_$.p1,si=n.$_$.q3,ui=n.$_$.r3,_i=n.$_$.t,oi=n.$_$.v,hi=n.$_$.l3,ai=n.$_$.d1,li=n.$_$.f,fi=i.$_$.a,ci=n.$_$.r1,vi=n.$_$.q1,di=n.$_$.h1,$i=n.$_$.u1,wi=n.$_$.z3,gi=n.$_$.y3;function pi(){}function bi(){return Ii(),u}function ji(){return Ii(),_}function mi(){return Ii(),o}function xi(){return Ii(),h}function yi(){}function ki(t,n){if(this.wn_1=t,this.xn_1=n,!this.wn_1.yn().equals(mi()))throw _n(un("Failed requirement."));if(!this.xn_1.yn().equals(bi()))throw _n(un("Failed requirement."));if(this.wn_1.zn()!==this.xn_1.zn())throw _n(un("Failed requirement."))}function qi(){}function Ci(t,n){if(this.bo_1=t,this.co_1=n,!this.bo_1.yn().equals(xi()))throw _n(un("Failed requirement."));if(!this.co_1.yn().equals(bi()))throw _n(un("Failed requirement."));if(this.bo_1.zn()!==this.co_1.zn())throw _n(un("Failed requirement."))}function Si(){}function Ei(t,n){if(this.eo_1=t,this.fo_1=n,!this.eo_1.yn().equals(ji()))throw _n(un("Failed requirement."));if(!this.fo_1.yn().equals(bi()))throw _n(un("Failed requirement."));if(this.eo_1.zn()!==this.fo_1.zn())throw _n(un("Failed requirement."))}function zi(t){return Ii(),t.io("fill",cr()),t.io("stroke",cr()),t.io("strokeWeight",ar()),hn}function Ri(t){return Ii(),t.io("offset",fr()),t.io("radius",lr()),hn}function Ai(t){return Ii(),t.io("offset",fr()),t.io("dimensions",lr()),t.io("rotation",ar()),hn}function Li(t){return Ii(),t.io("offset",fr()),hn}function Ii(){c||(c=!0,u=$r(zi),_=$r(Ri),o=$r(Ai),h=$r(Li))}function Ti(){v=this,Ni.call(this)}function Ni(){}function Mi(){}function Oi(t){Hi(),d=t}function Bi(){return Hi(),d}function Di(t){Hi(),$=t}function Gi(){return Hi(),$}function Vi(t){Hi(),w=t}function Pi(){return Hi(),w}function Fi(t){Hi(),g=t}function Wi(){return Hi(),g}function Ui(t,n,i,e,r,s,u){this.ko_1=t,this.lo_1=n,this.mo_1=i,this.no_1=e,this.oo_1=r,this.po_1=s,this.qo_1=u}function Hi(){b||(b=!0,d=fn().xi_1,$=fn().xi_1,w=fn().xi_1,g=fn().xi_1,p=wn())}function Ki(){return yt||(yt=!0,j=wn()),j}function Yi(){if(S)return hn;S=!0,m=new Xi("R",0),x=new Xi("RG",1),y=new Xi("RGB",2),k=new Xi("BGR",3),q=new Xi("RGBa",4),C=new Xi("BGRa",5)}function Xi(t,n){pn.call(this,t,n)}function Qi(){if(X)return hn;X=!0,E=new Zi("UINT8",0),z=new Zi("UINT8_SRGB",1),R=new Zi("UINT16",2),A=new Zi("UINT8_INT",3),L=new Zi("UINT16_INT",4),I=new Zi("UINT32_INT",5),T=new Zi("SINT8_INT",6),N=new Zi("SINT16_INT",7),M=new Zi("SINT32_INT",8),O=new Zi("FLOAT16",9),B=new Zi("FLOAT32",10),D=new Zi("DXT1",11),G=new Zi("DXT3",12),V=new Zi("DXT5",13),P=new Zi("DXT1_SRGB",14),F=new Zi("DXT3_SRGB",15),W=new Zi("DXT5_SRGB",16),U=new Zi("BPTC_UNORM",17),H=new Zi("BPTC_UNORM_SRGB",18),K=new Zi("BPTC_FLOAT",19),Y=new Zi("BPTC_UFLOAT",20)}function Zi(t,n){pn.call(this,t,n)}function Ji(t,n){pn.call(this,t,n)}function te(t,n,i,e,r,s,u,_,o,h,a,l,f,c,v,d,$,w,g,p,b,j,m){t=t===rn?null:t,n=n===rn?jn().fm_1:n,i=i===rn?jn().em_1:i,e=e===rn?(function(){if(ut)return hn;ut=!0,new re("ROUND",0),st=new re("BUTT",1),new re("SQUARE",2)}(),st):e,r=r===rn?(function(){if(ot)return hn;ot=!0,_t=new se("MITER",0),new se("BEVEL",1),new se("ROUND",2)}(),_t):r,s=s===rn?1:s,u=u===rn||u,_=_===rn?4:_,o=o===rn?(function(){if(at)return hn;at=!0,ht=new ue("QUALITY",0),new ue("PERFORMANCE",1)}(),ht):o,h=h===rn?(function(){if(ft)return hn;ft=!0,lt=new _e("ALWAYS",0),new _e("LESS",1),new _e("LESS_OR_EQUAL",2),new _e("EQUAL",3),new _e("GREATER",4),new _e("GREATER_OR_EQUAL",5),new _e("NEVER",6)}(),lt):h,a=a!==rn&&a,l=l===rn?(function(){if(tt)return hn;tt=!0,J=new ne("OVER",0),new ne("BLEND",1),new ne("ADD",2),new ne("SUBTRACT",3),new ne("MULTIPLY",4),new ne("REPLACE",5),new ne("REMOVE",6),new ne("MIN",7),new ne("MAX",8),new ne("SCREEN",9),new ne("OVERLAY",10),new ne("DARKEN",11),new ne("LIGHTEN",12),new ne("COLOR_DODGE",13),new ne("COLOR_BURN",14),new ne("HARD_LIGHT",15),new ne("SOFT_LIGHT",16),new ne("DIFFERENCE",17),new ne("EXCLUSION",18),new ne("HSL_HUE",19),new ne("HSL_SATURATION",20),new ne("HSL_COLOR",21),new ne("HSL_LUMINOSITY",22)}(),J):l,f=f===rn?(function(){if(vt)return hn;vt=!0,ct=new oe("ALWAYS",0),new oe("FRONT",1),new oe("BACK",2),new oe("NEVER",3)}(),ct):f,c=c===rn?new ae(!0,!0,!0,!0):c,v=v!==rn&&v,d=d===rn?null:d,$=$===rn?null:$,w=w===rn?(function(){if(wt)return hn;wt=!0,new le("DISABLED",0),$t=new le("METRIC",1)}(),$t):w,g=g===rn?(function(){if(pt)return hn;pt=!0,new fe("PIXEL",0),gt=new fe("SUBPIXEL",1)}(),gt):g,p=p===rn?new ce:p,b=b===rn?p:b,j=j===rn?p:j,m=m===rn?mn().wj_1:m,this.kp_1=t,this.lp_1=n,this.mp_1=i,this.np_1=e,this.op_1=r,this.pp_1=s,this.qp_1=u,this.rp_1=_,this.sp_1=o,this.tp_1=h,this.up_1=a,this.vp_1=l,this.wp_1=f,this.xp_1=c,this.yp_1=v,this.zp_1=d,this.aq_1=$,this.bq_1=w,this.cq_1=g,this.dq_1=p,this.eq_1=b,this.fq_1=j,this.gq_1=m}function ne(t,n){pn.call(this,t,n)}function ie(){if(rt)return hn;rt=!0,nt=new ee("NORMALIZED",0),it=new ee("UNSIGNED_INTEGER",1),et=new ee("SIGNED_INTEGER",2)}function ee(t,n){pn.call(this,t,n)}function re(t,n){pn.call(this,t,n)}function se(t,n){pn.call(this,t,n)}function ue(t,n){pn.call(this,t,n)}function _e(t,n){pn.call(this,t,n)}function oe(t,n){pn.call(this,t,n)}function he(){dt=this,this.kq_1=1,this.lq_1=2,this.mq_1=4,this.nq_1=8,this.oq_1=new ae(!1,!1,!1,!1),this.pq_1=new ae(!0,!0,!0,!0)}function ae(t,n,i,e){null==dt&&new he,this.qq_1=t,this.rq_1=n,this.sq_1=i,this.tq_1=e}function le(t,n){pn.call(this,t,n)}function fe(t,n){pn.call(this,t,n)}function ce(t,n,i,e,r,s,u){t=t===rn?Le():t,n=n===rn?Le():n,i=i===rn?Le():i,e=e===rn?255:e,r=r===rn?0:r,s=s===rn?255:s,u=u===rn?Ie():u,this.uq_1=t,this.vq_1=n,this.wq_1=i,this.xq_1=e,this.yq_1=r,this.zq_1=s,this.ar_1=u}function ve(t,n){pn.call(this,t,n)}function de(t,n){pn.call(this,t,n)}function $e(){return Yi(),m}function we(){return Yi(),x}function ge(){return Yi(),q}function pe(){return Qi(),E}function be(){return Qi(),R}function je(){return Qi(),A}function me(){return Qi(),L}function xe(){return Qi(),I}function ye(){return Qi(),T}function ke(){return Qi(),N}function qe(){return Qi(),M}function Ce(){return Qi(),O}function Se(){return Qi(),B}function Ee(){return function(){if(Z)return hn;Z=!0,Q=new Ji("TRIANGLES",0),new Ji("TRIANGLE_STRIP",1),new Ji("TRIANGLE_FAN",2),new Ji("POINTS",3),new Ji("LINES",4),new Ji("LINE_STRIP",5),new Ji("LINE_LOOP",6),new Ji("PATCHES",7)}(),Q}function ze(){return ie(),nt}function Re(){return ie(),it}function Ae(){return ie(),et}function Le(){return function(){if(jt)return hn;jt=!0,bt=new ve("KEEP",0),new ve("ZERO",1),new ve("REPLACE",2),new ve("INCREASE",3),new ve("INCREASE_WRAP",4),new ve("DECREASE",5),new ve("DECREASE_WRAP",6),new ve("INVERT",7)}(),bt}function Ie(){return function(){if(xt)return hn;xt=!0,new de("NEVER",0),new de("LESS",1),new de("LESS_OR_EQUAL",2),new de("GREATER",3),new de("GREATER_OR_EQUAL",4),new de("EQUAL",5),new de("NOT_EQUAL",6),new de("ALWAYS",7),mt=new de("DISABLED",8)}(),mt}function Te(){return new zr}function Ne(t){this.br_1=t;var n=qn();n.r9(new te),this.cr_1=n,this.dr_1=new Nr,this.er_1=new Mr,this.fr_1=new jr,this.gr_1=new Lr,this.hr_1=new Sr,this.ir_1=new Ar,this.jr_1=Cn(Te),this.kr_1=new Ir,this.lr_1=new Tr,this.mr_1=new kr,this.nr_1=qn(),this.or_1=qn(),this.pr_1=qn(),this.qr_1=1,this.rr_1=fn().xi_1,this.sr_1=fn().xi_1,this.tr_1=fn().xi_1,this.ur_1=new te}function Me(){return"disable"===Rn.sn("org.openrndr.draw.vertex_buffer_optimizations")}function Oe(){return"force"===Rn.sn("org.openrndr.draw.vertex_buffer_optimizations")}function Be(){var t=Rn.sn("org.openrndr.draw.vertex_buffer_multi_buffer_hint"),n=null==t?null:An(t);return null==n?100:n}function De(){return Ve().vs()?1:Ve().us()||Rn.rn().equals(Ln())?Ve().ts():1}function Ge(){kt=this,this.ps_1=Cn(Me),this.qs_1=Cn(Oe),this.rs_1=Cn(Be),this.ss_1=Cn(De)}function Ve(){return null==kt&&new Ge,kt}function Pe(){}function Fe(){}function We(){return Et||(Et=!0,Ct=wn()),Ct}function Ue(){}function He(t){this.dt_1=t,this.et_1=Jt.to().uo(),this.ft_1=Mn(),this.gt_1=On(),this.ht_1=On(),this.it_1=On(),this.jt_1=On(),this.kt_1=On(),this.lt_1=On(),this.mt_1=On(),this.nt_1=On(),this.ot_1=On(),this.pt_1=On(),this.qt_1=On(),this.rt_1=On(),this.st_1=On(),this.tt_1=On()}function Ke(t){var n=function(t){var n,i=Dn().g8(),e=i.equals(Dn().g8())?"boolean":i.equals(Dn().j8())?"int":i.equals(Dn().k8())||i.equals(Dn().l8())?"float":i.equals(Gn(ln))?"Vector2":i.equals(Gn(Zn))?"IntVector2":i.equals(Gn(Qn))?"BooleanVector2":i.equals(Gn(Xn))?"Vector3":i.equals(Gn(Yn))?"IntVector3":i.equals(Gn(Kn))?"BooleanVector3":i.equals(Gn(Hn))?"Vector4":i.equals(Gn(Un))?"IntVector4":i.equals(Gn(Wn))?"BooleanVector4":i.equals(Gn(Fn))?"Matrix33":i.equals(Gn(Pn))?"Matrix44":i.equals(Gn(Vn))?"ColorRGBa":i.equals(Gn(Mi))?"DepthBuffer":"struct "+Dn().g8().t7();if(null==e){var r="shade style type not supported: "+Dn().g8().t7();throw Bn(un(r))}if(t===e)n="bool";else{var s=Dn().j8(),u=s.equals(Dn().g8())?"boolean":s.equals(Dn().j8())?"int":s.equals(Dn().k8())||s.equals(Dn().l8())?"float":s.equals(Gn(ln))?"Vector2":s.equals(Gn(Zn))?"IntVector2":s.equals(Gn(Qn))?"BooleanVector2":s.equals(Gn(Xn))?"Vector3":s.equals(Gn(Yn))?"IntVector3":s.equals(Gn(Kn))?"BooleanVector3":s.equals(Gn(Hn))?"Vector4":s.equals(Gn(Un))?"IntVector4":s.equals(Gn(Wn))?"BooleanVector4":s.equals(Gn(Fn))?"Matrix33":s.equals(Gn(Pn))?"Matrix44":s.equals(Gn(Vn))?"ColorRGBa":s.equals(Gn(Mi))?"DepthBuffer":"struct "+Dn().j8().t7();if(null==u){var _="shade style type not supported: "+Dn().j8().t7();throw Bn(un(_))}if(t===u)n="int";else{var o=Gn(Fn),h=o.equals(Dn().g8())?"boolean":o.equals(Dn().j8())?"int":o.equals(Dn().k8())||o.equals(Dn().l8())?"float":o.equals(Gn(ln))?"Vector2":o.equals(Gn(Zn))?"IntVector2":o.equals(Gn(Qn))?"BooleanVector2":o.equals(Gn(Xn))?"Vector3":o.equals(Gn(Yn))?"IntVector3":o.equals(Gn(Kn))?"BooleanVector3":o.equals(Gn(Hn))?"Vector4":o.equals(Gn(Un))?"IntVector4":o.equals(Gn(Wn))?"BooleanVector4":o.equals(Gn(Fn))?"Matrix33":o.equals(Gn(Pn))?"Matrix44":o.equals(Gn(Vn))?"ColorRGBa":o.equals(Gn(Mi))?"DepthBuffer":"struct "+Gn(Fn).t7();if(null==h){var a="shade style type not supported: "+Gn(Fn).t7();throw Bn(un(a))}if(t===h)n="mat3";else{var l=Gn(Pn),f=l.equals(Dn().g8())?"boolean":l.equals(Dn().j8())?"int":l.equals(Dn().k8())||l.equals(Dn().l8())?"float":l.equals(Gn(ln))?"Vector2":l.equals(Gn(Zn))?"IntVector2":l.equals(Gn(Qn))?"BooleanVector2":l.equals(Gn(Xn))?"Vector3":l.equals(Gn(Yn))?"IntVector3":l.equals(Gn(Kn))?"BooleanVector3":l.equals(Gn(Hn))?"Vector4":l.equals(Gn(Un))?"IntVector4":l.equals(Gn(Wn))?"BooleanVector4":l.equals(Gn(Fn))?"Matrix33":l.equals(Gn(Pn))?"Matrix44":l.equals(Gn(Vn))?"ColorRGBa":l.equals(Gn(Mi))?"DepthBuffer":"struct "+Gn(Pn).t7();if(null==f){var c="shade style type not supported: "+Gn(Pn).t7();throw Bn(un(c))}if(t===f)n="mat4";else{var v,d=Dn().k8(),$=d.equals(Dn().g8())?"boolean":d.equals(Dn().j8())?"int":d.equals(Dn().k8())||d.equals(Dn().l8())?"float":d.equals(Gn(ln))?"Vector2":d.equals(Gn(Zn))?"IntVector2":d.equals(Gn(Qn))?"BooleanVector2":d.equals(Gn(Xn))?"Vector3":d.equals(Gn(Yn))?"IntVector3":d.equals(Gn(Kn))?"BooleanVector3":d.equals(Gn(Hn))?"Vector4":d.equals(Gn(Un))?"IntVector4":d.equals(Gn(Wn))?"BooleanVector4":d.equals(Gn(Fn))?"Matrix33":d.equals(Gn(Pn))?"Matrix44":d.equals(Gn(Vn))?"ColorRGBa":d.equals(Gn(Mi))?"DepthBuffer":"struct "+Dn().k8().t7();if(null==$){var w="shade style type not supported: "+Dn().k8().t7();throw Bn(un(w))}if(t===$)v=!0;else{var g=Dn().l8(),p=g.equals(Dn().g8())?"boolean":g.equals(Dn().j8())?"int":g.equals(Dn().k8())||g.equals(Dn().l8())?"float":g.equals(Gn(ln))?"Vector2":g.equals(Gn(Zn))?"IntVector2":g.equals(Gn(Qn))?"BooleanVector2":g.equals(Gn(Xn))?"Vector3":g.equals(Gn(Yn))?"IntVector3":g.equals(Gn(Kn))?"BooleanVector3":g.equals(Gn(Hn))?"Vector4":g.equals(Gn(Un))?"IntVector4":g.equals(Gn(Wn))?"BooleanVector4":g.equals(Gn(Fn))?"Matrix33":g.equals(Gn(Pn))?"Matrix44":g.equals(Gn(Vn))?"ColorRGBa":g.equals(Gn(Mi))?"DepthBuffer":"struct "+Dn().l8().t7();if(null==p){var b="shade style type not supported: "+Dn().l8().t7();throw Bn(un(b))}v=t===p}if(v)n="float";else{var j=Gn(ln),m=j.equals(Dn().g8())?"boolean":j.equals(Dn().j8())?"int":j.equals(Dn().k8())||j.equals(Dn().l8())?"float":j.equals(Gn(ln))?"Vector2":j.equals(Gn(Zn))?"IntVector2":j.equals(Gn(Qn))?"BooleanVector2":j.equals(Gn(Xn))?"Vector3":j.equals(Gn(Yn))?"IntVector3":j.equals(Gn(Kn))?"BooleanVector3":j.equals(Gn(Hn))?"Vector4":j.equals(Gn(Un))?"IntVector4":j.equals(Gn(Wn))?"BooleanVector4":j.equals(Gn(Fn))?"Matrix33":j.equals(Gn(Pn))?"Matrix44":j.equals(Gn(Vn))?"ColorRGBa":j.equals(Gn(Mi))?"DepthBuffer":"struct "+Gn(ln).t7();if(null==m){var x="shade style type not supported: "+Gn(ln).t7();throw Bn(un(x))}if(t===m)n="vec2";else{var y=Gn(Xn),k=y.equals(Dn().g8())?"boolean":y.equals(Dn().j8())?"int":y.equals(Dn().k8())||y.equals(Dn().l8())?"float":y.equals(Gn(ln))?"Vector2":y.equals(Gn(Zn))?"IntVector2":y.equals(Gn(Qn))?"BooleanVector2":y.equals(Gn(Xn))?"Vector3":y.equals(Gn(Yn))?"IntVector3":y.equals(Gn(Kn))?"BooleanVector3":y.equals(Gn(Hn))?"Vector4":y.equals(Gn(Un))?"IntVector4":y.equals(Gn(Wn))?"BooleanVector4":y.equals(Gn(Fn))?"Matrix33":y.equals(Gn(Pn))?"Matrix44":y.equals(Gn(Vn))?"ColorRGBa":y.equals(Gn(Mi))?"DepthBuffer":"struct "+Gn(Xn).t7();if(null==k){var q="shade style type not supported: "+Gn(Xn).t7();throw Bn(un(q))}if(t===k)n="vec3";else{var C,S=Gn(Hn),E=S.equals(Dn().g8())?"boolean":S.equals(Dn().j8())?"int":S.equals(Dn().k8())||S.equals(Dn().l8())?"float":S.equals(Gn(ln))?"Vector2":S.equals(Gn(Zn))?"IntVector2":S.equals(Gn(Qn))?"BooleanVector2":S.equals(Gn(Xn))?"Vector3":S.equals(Gn(Yn))?"IntVector3":S.equals(Gn(Kn))?"BooleanVector3":S.equals(Gn(Hn))?"Vector4":S.equals(Gn(Un))?"IntVector4":S.equals(Gn(Wn))?"BooleanVector4":S.equals(Gn(Fn))?"Matrix33":S.equals(Gn(Pn))?"Matrix44":S.equals(Gn(Vn))?"ColorRGBa":S.equals(Gn(Mi))?"DepthBuffer":"struct "+Gn(Hn).t7();if(null==E){var z="shade style type not supported: "+Gn(Hn).t7();throw Bn(un(z))}if(t===E)C=!0;else{var R=Gn(Vn),A=R.equals(Dn().g8())?"boolean":R.equals(Dn().j8())?"int":R.equals(Dn().k8())||R.equals(Dn().l8())?"float":R.equals(Gn(ln))?"Vector2":R.equals(Gn(Zn))?"IntVector2":R.equals(Gn(Qn))?"BooleanVector2":R.equals(Gn(Xn))?"Vector3":R.equals(Gn(Yn))?"IntVector3":R.equals(Gn(Kn))?"BooleanVector3":R.equals(Gn(Hn))?"Vector4":R.equals(Gn(Un))?"IntVector4":R.equals(Gn(Wn))?"BooleanVector4":R.equals(Gn(Fn))?"Matrix33":R.equals(Gn(Pn))?"Matrix44":R.equals(Gn(Vn))?"ColorRGBa":R.equals(Gn(Mi))?"DepthBuffer":"struct "+Gn(Vn).t7();if(null==A){var L="shade style type not supported: "+Gn(Vn).t7();throw Bn(un(L))}C=t===A}if(C)n="vec4";else{var I=Gn(Zn),T=I.equals(Dn().g8())?"boolean":I.equals(Dn().j8())?"int":I.equals(Dn().k8())||I.equals(Dn().l8())?"float":I.equals(Gn(ln))?"Vector2":I.equals(Gn(Zn))?"IntVector2":I.equals(Gn(Qn))?"BooleanVector2":I.equals(Gn(Xn))?"Vector3":I.equals(Gn(Yn))?"IntVector3":I.equals(Gn(Kn))?"BooleanVector3":I.equals(Gn(Hn))?"Vector4":I.equals(Gn(Un))?"IntVector4":I.equals(Gn(Wn))?"BooleanVector4":I.equals(Gn(Fn))?"Matrix33":I.equals(Gn(Pn))?"Matrix44":I.equals(Gn(Vn))?"ColorRGBa":I.equals(Gn(Mi))?"DepthBuffer":"struct "+Gn(Zn).t7();if(null==T){var N="shade style type not supported: "+Gn(Zn).t7();throw Bn(un(N))}if(t===T)n="ivec2";else{var M=Gn(Yn),O=M.equals(Dn().g8())?"boolean":M.equals(Dn().j8())?"int":M.equals(Dn().k8())||M.equals(Dn().l8())?"float":M.equals(Gn(ln))?"Vector2":M.equals(Gn(Zn))?"IntVector2":M.equals(Gn(Qn))?"BooleanVector2":M.equals(Gn(Xn))?"Vector3":M.equals(Gn(Yn))?"IntVector3":M.equals(Gn(Kn))?"BooleanVector3":M.equals(Gn(Hn))?"Vector4":M.equals(Gn(Un))?"IntVector4":M.equals(Gn(Wn))?"BooleanVector4":M.equals(Gn(Fn))?"Matrix33":M.equals(Gn(Pn))?"Matrix44":M.equals(Gn(Vn))?"ColorRGBa":M.equals(Gn(Mi))?"DepthBuffer":"struct "+Gn(Yn).t7();if(null==O){var B="shade style type not supported: "+Gn(Yn).t7();throw Bn(un(B))}if(t===O)n="ivec3";else{var D=Gn(Un),G=D.equals(Dn().g8())?"boolean":D.equals(Dn().j8())?"int":D.equals(Dn().k8())||D.equals(Dn().l8())?"float":D.equals(Gn(ln))?"Vector2":D.equals(Gn(Zn))?"IntVector2":D.equals(Gn(Qn))?"BooleanVector2":D.equals(Gn(Xn))?"Vector3":D.equals(Gn(Yn))?"IntVector3":D.equals(Gn(Kn))?"BooleanVector3":D.equals(Gn(Hn))?"Vector4":D.equals(Gn(Un))?"IntVector4":D.equals(Gn(Wn))?"BooleanVector4":D.equals(Gn(Fn))?"Matrix33":D.equals(Gn(Pn))?"Matrix44":D.equals(Gn(Vn))?"ColorRGBa":D.equals(Gn(Mi))?"DepthBuffer":"struct "+Gn(Un).t7();if(null==G){var V="shade style type not supported: "+Gn(Un).t7();throw Bn(un(V))}n=t===G?"ivec4":"BufferTexture"===t?"samplerBuffer":"BufferTexture_UINT"===t?"usamplerBuffer":"BufferTexture_SINT"===t?"isamplerBuffer":"ColorBuffer"===t?"sampler2D":"ColorBuffer_UINT"===t?"usampler2D":"ColorBuffer_SINT"===t?"isampler2D":"DepthBuffer"===t?"sampler2D":"Cubemap"===t?"samplerCube":"Cubemap_UINT"===t?"usamplerCube":"Cubemap_SINT"===t?"isamplerCube":"ArrayCubemap"===t?"samplerCubeArray":"ArrayCubemap_UINT"===t?"usamplerCubeArray":"ArrayCubemap_SINT"===t?"isamplerCubeArray":"ArrayTexture"===t?"sampler2DArray":"ArrayTexture_UINT"===t?"usampler2DArray":"ArrayTexture_SINT"===t?"isampler2DArray":"VolumeTexture"===t?"sampler3D":"VolumeTexture_UINT"===t?"usampler3D":"VolumeTexture_SINT"===t?"isampler3D":ti(t,"struct")?Jn(t,7):null}}}}}}}}}}return n}(t);if(null==n)throw Bn(un("unsupported type "+t));return n}function Ye(){}function Xe(t){this.yt_1=t}function Qe(t,n,i,e,r,s,u,_,o,h,a,l,f,c,v){t=t===rn?null:t,n=n===rn?null:n,i=i===rn?null:i,e=e===rn?null:e,r=r===rn?null:r,s=s===rn?null:s,u=u===rn?null:u,_=_===rn?null:_,o=o===rn?null:o,h=h===rn?null:h,a=a===rn?null:a,l=l===rn?null:l,f=f===rn?null:f,c=c===rn?null:c,v=v!==rn&&v,this.au_1=t,this.bu_1=n,this.cu_1=i,this.du_1=e,this.eu_1=r,this.fu_1=s,this.gu_1=u,this.hu_1=_,this.iu_1=o,this.ju_1=h,this.ku_1=a,this.lu_1=l,this.mu_1=f,this.nu_1=c,this.ou_1=v}function Ze(){}function Je(){if(Mt)return hn;Mt=!0,At=new tr("VERTEX",0),Lt=new tr("TESSELLATION_CONTROL",1),It=new tr("TESSELLATION_EVALUATION",2),Tt=new tr("GEOMETRY",3),Nt=new tr("FRAGMENT",4),new tr("COMPUTE",5)}function tr(t,n){pn.call(this,t,n)}function nr(){}function ir(){}function er(){}function rr(t){var n=ui(t.ia_1,[", "]);return 1===n.i()?Ke(t.ia_1)+" "+t.ha_1+";":Ke(n.j(0))+" "+t.ha_1+"["+n.j(1)+"];"}function sr(){}function ur(t,n,i){return i=i===rn?St.vn():i,Qt.tu(t,n,i)}function _r(){}function or(){if(Ft)return hn;Ft=!0,new hr("INT8",0,1,1),new hr("UINT8",1,1,1),new hr("UINT16",2,1,2),new hr("INT16",3,1,2),new hr("UINT32",4,1,4),new hr("INT32",5,1,4),new hr("VECTOR2_UINT8",6,2,2),new hr("VECTOR2_INT8",7,2,2),new hr("VECTOR2_UINT16",8,2,4),new hr("VECTOR2_INT16",9,2,4),new hr("VECTOR2_UINT32",10,2,8),new hr("VECTOR2_INT32",11,2,8),new hr("VECTOR3_UINT8",12,3,3),new hr("VECTOR3_INT8",13,3,3),new hr("VECTOR3_UINT16",14,3,6),new hr("VECTOR3_INT16",15,3,6),new hr("VECTOR3_UINT32",16,3,12),new hr("VECTOR3_INT32",17,3,12),new hr("VECTOR4_UINT8",18,4,4),new hr("VECTOR4_INT8",19,4,4),new hr("VECTOR4_UINT16",20,4,8),new hr("VECTOR4_INT16",21,4,8),new hr("VECTOR4_UINT32",22,4,16),new hr("VECTOR4_INT32",23,4,16),Ot=new hr("FLOAT32",24,1,4),Bt=new hr("VECTOR2_FLOAT32",25,2,8),Dt=new hr("VECTOR3_FLOAT32",26,3,12),Gt=new hr("VECTOR4_FLOAT32",27,4,16),new hr("MATRIX22_FLOAT32",28,4,16),Vt=new hr("MATRIX33_FLOAT32",29,9,36),Pt=new hr("MATRIX44_FLOAT32",30,16,64)}function hr(t,n,i,e){pn.call(this,t,n),this.bv_1=i,this.cv_1=e}function ar(){return or(),Ot}function lr(){return or(),Bt}function fr(){return or(),Dt}function cr(){return or(),Gt}function vr(t,n){var i;switch(n){case 1:i=ar();break;case 2:i=lr();break;case 3:i=fr();break;case 4:i=cr();break;default:throw _n("dimensions can only be 1, 2, 3 or 4 (got "+n+")")}return i}function dr(){this.go_1=Mn(),this.ho_1=0}function $r(t){var n=new dr;return t(n),n}function wr(t,n,i,e){this.jv_1=t,this.kv_1=n,this.lv_1=i,this.mv_1=e}function gr(){if(Kt)return hn;Kt=!0,Wt=new pr("READ",0),Ut=new pr("READ_WRITE",1),Ht=new pr("WRITE",2)}function pr(t,n){pn.call(this,t,n)}function br(){return gr(),Ut}function jr(){var t=Qt,n=new dr;n.dv(3),n.ev(3),n.hv(2),this.js_1=t.tu(n,6,St.ct()),this.ks_1=f.do(1e4),this.ls_1=0;var i=hi(0,Ve().ws()),e=li(ai(i,10)),r=i.ib_1,s=i.jb_1;if(r<=s)do{var u=r;r=r+1|0;var _=f.do(1);e.d(_)}while(u!==s);this.ms_1=e;var o,h,a=zt,l=(o=Jt.to().pv(),(h=function(t){return o.nv(t)}).callableName="circleVertexShader",h);this.ns_1=a.xt("circle",l,rn,rn,rn,function(t){var n=function(n){return t.ov(n)};return n.callableName="circleFragmentShader",n}(Jt.to().pv()));var c=this.js_1.qv().yu();c.rv();var v=new Xn(-1,-1,0),d=new Xn(1,-1,0),$=new Xn(1,1,0),w=new Xn(-1,1,0),g=new ln(0,0),p=new ln(1,0),b=new ln(1,1),j=new ln(0,1),m=new Xn(0,0,-1);c.sv(v),c.sv(m),c.tv(g),c.sv(w),c.sv(m),c.tv(j),c.sv($),c.sv(m),c.tv(b),c.sv($),c.sv(m),c.tv(b),c.sv(d),c.sv(m),c.tv(p),c.sv(v),c.sv(m),c.tv(g),this.js_1.qv().wu()}function mr(t,n,i){this.zw_1=t,this.ax_1=n,this.bx_1=i}function xr(t){return t.dv(2),t.hv(2),t.io("vertexOffset",ar()),hn}function yr(){var t,n,i=zt,e=(t=Jt.to().pv(),(n=function(n){return t.cx(n)}).callableName="expansionVertexShader",n);this.ex_1=i.xt("expansion",e,rn,rn,rn,function(t){var n=function(n){return t.dx(n)};return n.callableName="expansionFragmentShader",n}(Jt.to().pv())),this.fx_1=$r(xr),this.gx_1=Qt.tu(this.fx_1,4194304,St.ct());var r=Ve().ws(),s=li(r),u=0;if(u>31)|0,h=this.ms_1.j(o),a=h.eo_1.qv().yu();a.rv(),a.sv(new Xn(i,e,0));var l=Math.abs(r);a.tv(fi(l)),h.eo_1.qv().xu(0,1);var f=h.fo_1.qv().yu();f.rv();var c=n.lp_1,v=null==c?null:c.wm();f.uv(null==v?jn().nm_1:v);var d,$=n.mp_1,w=null==$?null:$.wm();if(f.uv(null==w?jn().nm_1:w),null==n.mp_1)d=!0;else{var g=n.mp_1;d=0===(null==g?null:g.sm_1)}var p=d?0:n.pp_1;f.vv(p),h.fo_1.qv().xu(0,1),this.wv(t,n,h,1),this.ls_1=this.ls_1+1|0},nn(jr).wv=function(t,n,i,e){var r=ci([i.eo_1,i.fo_1]),s=ci([i.eo_1.yn(),i.fo_1.yn()]),u=this.ns_1.zt(n.zp_1,vi(this.js_1.yn()),s);u.xv(),t.ro(u),n.ro(u),Jt.to().yv(n);var _=Jt.to(),o=vi(this.js_1),h=n.zp_1,a=null==h?null:h.tw_1,l=null==a?di():a;_.xw(u,o,$i(r,l),Ee(),0,6,0,e,0),u.yw()},nn(mr).toString=function(){return"DriverProperties(maxRenderTargetSamples="+this.zw_1+", maxTextureSamples="+this.ax_1+", maxTextureSize="+this.bx_1+")"},nn(mr).hashCode=function(){var t=this.zw_1;return t=tn(t,31)+this.ax_1|0,tn(t,31)+this.bx_1|0},nn(mr).equals=function(t){if(this===t)return!0;if(!(t instanceof mr))return!1;var n=t instanceof mr?t:dn();return this.zw_1===n.zw_1&&this.ax_1===n.ax_1&&this.bx_1===n.bx_1},nn(Ur).tz=function(t,n,i,e,r,s){return wi("\n | // -- fragmentConstants\n | #define c_instance ("+t+")\n | #define c_element ("+n+")\n | #define c_screenPosition ("+i+")\n | #define c_contourPosition ("+e+")\n | #define c_boundsPosition ("+r+")\n | #define c_boundsSize ("+s+")")},nn(Ur).uz=function(t,n,i,e,r,s,u){return t=t===rn?"v_instance":t,n=n===rn?"0":n,i=i===rn?"gl_FragCoord.xy / u_contentScale":i,e=e===rn?"0.0":e,r=r===rn?"vec3(0.0)":r,s=s===rn?"vec3(0.0)":s,u===rn?this.tz(t,n,i,e,r,s):u.tz.call(this,t,n,i,e,r,s)},nn(Ur).vz=function(t,n){return wi("\n |#define c_instance "+t+"\n |int c_element = "+n+";")},nn(Ur).wz=function(t,n,i){return t=t===rn?"gl_InstanceID":t,n=n===rn?"0":n,i===rn?this.vz(t,n):i.vz.call(this,t,n)},nn(Ur).xz=function(t){return gi("\n // (ShadeStyleGLSL.kt)\n #define d_vertex_buffer 0\n #define d_image 1\n #define d_circle 2\n #define d_rectangle 3\n #define d_font_image_map 4\n #define d_expansion 5\n #define d_fast_line 6\n #define d_mesh_line 7\n #define d_point 8\n #define d_custom 9\n #define d_primitive "+t+"\n // \n ")},nn(Ur).yz=function(t,n){var i=Hr(t,Fr);return wi("\n |// (ShadeStyleGLSL.kt)\n "+i+"\n "+Hr(n,Wr)+"\n |// \n ")},nn(Ur).zz=function(t,n,i){return t=t===rn||t,n=n===rn||n,i===rn?this.yz(t,n):i.yz.call(this,t,n)},nn(Yr).tu=function(t,n,i){return Jt.to().b10(t,n,i)},nn(Yr).vx=function(t,n,i,e){return i=i===rn?St.vn():i,e===rn?this.tu(t,n,i):e.tu.call(this,t,n,i)},nn(Zr).to=function(){var t=this.so_1;if(null==t)throw Bn(un("no active driver"));return t},a=new yi,l=new qi,f=new Si,qt=new Pe,St=new Ue,zt=new Ye,Rt=new Ze,Yt=!1,Xt=new Ur,Qt=new Yr,Zt=!1,Jt=new Zr,t.$_$=t.$_$||{},t.$_$.a=br,t.$_$.b=ge,t.$_$.c=we,t.$_$.d=$e,t.$_$.e=ze,t.$_$.f=Ae,t.$_$.g=Re,t.$_$.h=Ce,t.$_$.i=Se,t.$_$.j=ke,t.$_$.k=qe,t.$_$.l=ye,t.$_$.m=me,t.$_$.n=be,t.$_$.o=xe,t.$_$.p=je,t.$_$.q=pe,t.$_$.r=function(){return Je(),Nt},t.$_$.s=function(){return Je(),Tt},t.$_$.t=function(){return Je(),Lt},t.$_$.u=function(){return Je(),It},t.$_$.v=function(){return Je(),At},t.$_$.w=Ie,t.$_$.x=ar,t.$_$.y=function(){return or(),Vt},t.$_$.z=function(){return or(),Pt},t.$_$.a1=lr,t.$_$.b1=fr,t.$_$.c1=cr,t.$_$.d1=function(t,n,i){var e;return t=t===rn?0:t,n=n===rn?tn(this.uu().zn(),this.uu().yn().i()):n,i===rn?(this.vu(t,n),e=hn):e=i.vu.call(this,t,n),e},t.$_$.e1=function(t,n,i,e,r,s,u,_){return i=i===rn?null:i,e=e===rn?null:e,r=r===rn?null:r,u=u===rn?St.ct():u,_===rn?this.d10(t,n,i,e,r,s,u):_.d10.call(this,t,n,i,e,r,s,u)},t.$_$.f1=function(){return null==v&&new Ti,v},t.$_$.g1=qt,t.$_$.h1=St,t.$_$.i1=Xt,t.$_$.j1=Rt,t.$_$.k1=Jt,t.$_$.l1=function(t){switch(t){case"READ":return gr(),Wt;case"READ_WRITE":return br();case"WRITE":return gr(),Ht;default:gr(),gn("No enum constant value.")}},t.$_$.m1=Or,t.$_$.n1=Br,t.$_$.o1=pi,t.$_$.p1=Dr,t.$_$.q1=Gr,t.$_$.r1=Vr,t.$_$.s1=function(t){switch(t){case"R":return $e();case"RG":return we();case"RGB":return Yi(),y;case"BGR":return Yi(),k;case"RGBa":return ge();case"BGRa":return Yi(),C;default:Yi(),gn("No enum constant value.")}},t.$_$.t1=function(t){switch(t){case"UINT8":return pe();case"UINT8_SRGB":return Qi(),z;case"UINT16":return be();case"UINT8_INT":return je();case"UINT16_INT":return me();case"UINT32_INT":return xe();case"SINT8_INT":return ye();case"SINT16_INT":return ke();case"SINT32_INT":return qe();case"FLOAT16":return Ce();case"FLOAT32":return Se();case"DXT1":return Qi(),D;case"DXT3":return Qi(),G;case"DXT5":return Qi(),V;case"DXT1_SRGB":return Qi(),P;case"DXT3_SRGB":return Qi(),F;case"DXT5_SRGB":return Qi(),W;case"BPTC_UNORM":return Qi(),U;case"BPTC_UNORM_SRGB":return Qi(),H;case"BPTC_FLOAT":return Qi(),K;case"BPTC_UFLOAT":return Qi(),Y;default:Qi(),gn("No enum constant value.")}},t.$_$.u1=Pr,t.$_$.v1=Mi,t.$_$.w1=te,t.$_$.x1=Ne,t.$_$.y1=function(){return Nn(this.xr()*this.as())},t.$_$.z1=function(){return Nn(this.wr()*this.as())},t.$_$.a2=Fe,t.$_$.b2=Qe,t.$_$.c2=Xe,t.$_$.d2=Kr,t.$_$.e2=nr,t.$_$.f2=ir,t.$_$.g2=sr,t.$_$.h2=er,t.$_$.i2=function(t,n){this.vu(tn(t,this.uu().yn().i()),tn(n,this.uu().yn().i()))},t.$_$.j2=_r,t.$_$.k2=Xr,t.$_$.l2=Qr,t.$_$.m2=Ke,t.$_$.n2=function t(n,i,e){var r="";if(!(e=e!==rn&&e))for(var s=n.su_1.o().f();s.g();){var u=s.h(),_=u.p(),o=u.q();if(o instanceof er){var h=ii(n.ru_1,_);r=r+"\n"+t(o instanceof er?o:dn(),Jn(h,7))}}var a=e?"":r+"\n#ifndef STRUCT_"+i+"\n#define STRUCT_"+i+"\nstruct "+i+" {\n",l=ei(n.ru_1);return"\n "+a+"\n"+si(ri(l,"\n",rn,rn,rn,rn,rr)," ")+"\n"+(e?"":"};\n#endif \n")+" \n"},t.$_$.o2=mr,t.$_$.p2=Jr,t})?e.apply(n,r):e)||(t.exports=s)},856:(t,n,i)=>{var e,r,s;r=[n,i(36),i(385)],void 0===(s="function"==typeof(e=function(t,n,i){"use strict";var e,r,s=n.$_$.a,u=n.$_$.c,_=n.$_$.g,o=n.$_$.a1,h=n.$_$.g3,a=n.$_$.b4,l=n.$_$.u2,f=i.$_$.a;function c(){return g(),e}function v(t,n){return function(){return"Exception thrown in listener ('"+t.jn_1+"'): "+s(n).t7()+"; '"+n.message+"'"}}function d(t,n){return function(){return"Exception thrown in one-shot listener ('"+t.jn_1+"'): "+s(n).t7()+"; '"+n.message+"'"}}function $(t,n){t=t===u?"":t,n=n!==u&&n,this.jn_1=t,this.kn_1=n,this.ln_1=_(),this.mn_1=_(),this.nn_1=_()}function w(){return g(),o}function g(){r||(r=!0,e=f.uc(w))}return l($,"Event",$),h($).on=function(t){this.nn_1.d(t),this.pn()},h($).pn=function(){if(this.nn_1.i()>0){var t=_();t.n(this.nn_1),this.nn_1.w2();for(var n=t.f();n.g();){for(var i=n.h(),e=this.ln_1.f();e.g();){var r=e.h();try{r(i)}catch(t){if(t instanceof a){var s=t;throw c().rc(v(this,s)),s}throw t}}for(var u=this.mn_1.f();u.g();){var o=u.h();try{o(i)}catch(t){if(t instanceof a){var h=t;throw c().rc(d(this,h)),h}throw t}}this.mn_1.w2()}}},h($).qn=function(t){return this.ln_1.d(t),t},t.$_$=t.$_$||{},t.$_$.a=$,t})?e.apply(n,r):e)||(t.exports=s)},651:(t,n,i)=>{var e,r,s;r=[n,i(36),i(988),i(560),i(731)],void 0===(s="function"==typeof(e=function(t,n,i,e,r){"use strict";var s,u,_,o,h=Math.imul,a=n.$_$.c,l=n.$_$.l,f=n.$_$.e,c=n.$_$.g3,v=(n.$_$.a1,n.$_$.u2),d=n.$_$.e4,$=n.$_$.i3,w=n.$_$.q,g=i.$_$.f,p=i.$_$.g,b=i.$_$.e,j=n.$_$.k4,m=n.$_$.r3,x=n.$_$.m1,y=n.$_$.v3,k=n.$_$.o3,q=i.$_$.s1,C=i.$_$.t1,S=i.$_$.l1,E=i.$_$.m2,z=n.$_$.p1,R=i.$_$.b,A=i.$_$.i,L=i.$_$.h,I=i.$_$.j,T=i.$_$.m,N=i.$_$.n,M=i.$_$.l,O=i.$_$.p,B=i.$_$.q,D=i.$_$.c,G=i.$_$.d,V=i.$_$.k,P=i.$_$.o,F=i.$_$.f2,W=i.$_$.e2,U=n.$_$.n4,H=n.$_$.t2,K=n.$_$.f4,Y=n.$_$.n2,X=i.$_$.b2,Q=n.$_$.f,Z=n.$_$.r1,J=n.$_$.g,tt=n.$_$.b1,nt=i.$_$.k1,it=i.$_$.c2,et=n.$_$.h1,rt=n.$_$.d1,st=n.$_$.u1,ut=i.$_$.j1,_t=i.$_$.v,ot=i.$_$.t,ht=i.$_$.u,at=i.$_$.s,lt=i.$_$.r,ft=i.$_$.h1,ct=n.$_$.h4,vt=i.$_$.i1,dt=n.$_$.q3,$t=n.$_$.z3,wt=n.$_$.n3,gt=i.$_$.o1,pt=n.$_$.c3,bt=i.$_$.d2,jt=i.$_$.g2,mt=n.$_$.w2,xt=n.$_$.l1,yt=n.$_$.a,kt=n.$_$.s,qt=n.$_$.n1,Ct=i.$_$.h2,St=e.$_$.k,Et=n.$_$.p,zt=n.$_$.k1,Rt=n.$_$.z2,At=n.$_$.g1,Lt=e.$_$.q,It=e.$_$.r,Tt=e.$_$.s,Nt=r.$_$.b,Mt=e.$_$.p,Ot=n.$_$.b3,Bt=n.$_$.y1,Dt=n.$_$.a3,Gt=i.$_$.l2,Vt=i.$_$.m1,Pt=i.$_$.n1,Ft=i.$_$.u1,Wt=i.$_$.p1,Ut=i.$_$.v1,Ht=i.$_$.r1,Kt=e.$_$.n,Yt=e.$_$.m,Xt=e.$_$.l,Qt=e.$_$.o,Zt=n.$_$.s3,Jt=n.$_$.t1,tn=n.$_$.j,nn=n.$_$.j1,en=i.$_$.a,rn=i.$_$.n2;function sn(t){t=t===a?1e3:t,this.l19_1=t,this.m19_1=l(),this.n19_1=f()}function un(t){var n,i=new d(t.r19_1.gp(),t.s19_1.jp());if(i.equals(new d(1,b())))n="float";else if(i.equals(new d(2,b())))n="vec2";else if(i.equals(new d(3,b())))n="vec3";else if(i.equals(new d(4,b())))n="vec4";else if(i.equals(new d(1,p())))n="uint";else if(i.equals(new d(2,p())))n="uvec2";else if(i.equals(new d(3,p())))n="uvec3";else if(i.equals(new d(4,p())))n="uvec4";else if(i.equals(new d(1,g())))n="int";else if(i.equals(new d(2,g())))n="ivec2";else if(i.equals(new d(3,g())))n="ivec3";else{if(!i.equals(new d(4,g())))throw w($("unsupported type"));n="ivec4"}return n}function _n(t){switch(t.b1_1){case 0:case 3:case 5:case 1:case 2:case 4:case 6:case 8:case 10:case 7:case 9:case 11:case 12:case 14:case 16:case 13:case 15:case 17:case 18:case 20:case 22:case 19:case 21:case 23:return"flat ";default:return""}}function on(t){var n;switch(t.b1_1){case 0:case 3:case 5:n="int";break;case 1:case 2:case 4:n="uint";break;case 6:case 8:case 10:n="uvec2";break;case 7:case 9:case 11:n="ivec2";break;case 12:case 14:case 16:n="uvec3";break;case 13:case 15:case 17:n="ivec3";break;case 18:case 20:case 22:n="uvec4";break;case 19:case 21:case 23:n="ivec4";break;case 24:n="float";break;case 25:n="vec2";break;case 26:n="vec3";break;case 27:n="vec4";break;case 28:n="mat2";break;case 29:n="mat3";break;case 30:n="mat4";break;default:j()}return n}function hn(t,n){var i,e=m(t,[","]),r=x(e,1),s="uniform",u=m(e.j(0),[" "]);switch(u.j(0)){case"struct":i=s+" "+u.j(1)+" p_"+n+dn(r,r,n);break;case"Image2D":case"Image3D":case"ImageCube":case"Image2DArray":case"ImageBuffer":case"ImageCubeArray":var _,o=y(e.j(0),1).toLowerCase()+k(e.j(0),1),h=q(e.j(1)),a=C(e.j(2)),l=S(e.j(3)),f=cn(h,a);switch(l.b1_1){case 0:_="layout("+f+") readonly "+s+" "+o+" p_"+n+";";break;case 1:_="layout("+f+") "+s+" "+o+" p_"+n+";";break;case 2:_="layout("+f+") writeonly "+s+" "+o+" p_"+n+";";break;default:j()}i=_;break;default:i=s+" "+E(e.j(0))+" p_"+n+dn(r,r,n)}return i}function an(t){var n;switch(t.b1_1){case 2:n="restrict";break;case 1:n="coherent";break;case 0:n="volatile";break;default:j()}return n}function ln(t){var n;switch(t.b1_1){case 0:n="readonly";break;case 1:n="";break;case 2:n="writeonly";break;default:j()}return n}function fn(t){var n=t.t19_1;return z(n,"\n",a,a,a,a,$n)}function cn(t,n){var i,e=new d(t,n);if(e.equals(new d(G(),B())))i="r8";else if(e.equals(new d(G(),O())))i="r8u";else if(e.equals(new d(G(),M())))i="r8i";else if(e.equals(new d(G(),N())))i="r16";else if(e.equals(new d(G(),T())))i="r16u";else if(e.equals(new d(G(),I())))i="r16i";else if(e.equals(new d(G(),P())))i="r32u";else if(e.equals(new d(G(),V())))i="r32i";else if(e.equals(new d(G(),L())))i="r16f";else if(e.equals(new d(G(),A())))i="r32f";else if(e.equals(new d(D(),B())))i="rg8";else if(e.equals(new d(D(),O())))i="rg8u";else if(e.equals(new d(D(),M())))i="rg8i";else if(e.equals(new d(D(),N())))i="rg16";else if(e.equals(new d(D(),T())))i="rg16u";else if(e.equals(new d(D(),I())))i="rg16i";else if(e.equals(new d(D(),L())))i="rg16f";else if(e.equals(new d(D(),A())))i="rg32f";else if(e.equals(new d(R(),B())))i="rgba8";else if(e.equals(new d(R(),O())))i="rgba8u";else if(e.equals(new d(R(),M())))i="rgba8i";else if(e.equals(new d(R(),N())))i="rgba16";else if(e.equals(new d(R(),T())))i="rgba16u";else if(e.equals(new d(R(),I())))i="rgba16i";else if(e.equals(new d(R(),L())))i="rgba16f";else{if(!e.equals(new d(R(),A()))){var r="unsupported layout: "+t.toString()+" "+n.toString();throw w($(r))}i="rgba32f"}return i}function vn(t){var n;switch(t.b1_1){case 2:n="bool";break;case 1:n="int";break;case 0:n="uint";break;case 3:n="float";break;case 4:n="double";break;case 7:n="uvec2";break;case 5:n="bvec2";break;case 6:n="ivec2";break;case 8:n="vec2";break;case 9:n="dvec2";break;case 12:n="uvec3";break;case 10:n="bvec3";break;case 11:n="ivec3";break;case 13:n="vec3";break;case 14:n="dvec3";break;case 17:n="uvec4";break;case 15:n="bvec4";break;case 16:n="ivec4";break;case 18:n="vec4";break;case 19:n="dvec4";break;case 20:n="mat2";break;case 21:n="mat3";break;case 22:n="mat4";break;default:j()}return n}function dn(t,n,i){return null==t?";":"["+n+"]; \n#define p_"+i+"_SIZE "+n}function $n(t){return t instanceof W?1===t.a1a_1?vn(t.z19_1)+" "+t.y19_1+";":vn(t.z19_1)+"["+t.a1a_1+"] "+t.y19_1+";":t instanceof F?1===t.x19_1?t.v19_1+" "+t.w19_1+";":t.v19_1+"["+t.x19_1+"] "+t.w19_1+";":""}function wn(t,n,i){this.b1a_1=t,this.c1a_1=n,this.d1a_1=i}function gn(t,n,i){Sn();var e,r,u,_=new wn(t,n,i),o=(Sn(),s),h=null==t?null:t.zv_1,f=null!=h&&h;return o.p19(_,f,(e=t,r=n,u=i,function(){null==e||(e.zv_1=!1);var t=new X;if(null!=e){t.eu_1=e.ew_1,t.fu_1=e.fw_1,t.gu_1=e.gw_1,t.hu_1=e.bw_1,t.iu_1=e.cw_1,t.ju_1=e.dw_1,t.au_1=function(t){for(var n=t.v1b(),i=l(),e=n.o().f();e.g();){var r=e.h(),s=r.q();Zt(s,"struct")&&i.h3(r.p(),r.q())}for(var u=i,_=t.w1b(),o=l(),h=_.o().f();h.g();){var f=h.h(),c=f.q();Zt(c,"struct")&&o.h3(f.p(),f.q())}for(var v=Jt(u,o).z(),$=Q(rt(v,10)),w=v.f();w.g();){var g,p=w.h(),b=t.f1b().y(p),j=null==b?t.u1a().y(p):b;if(null!=j&&Rt(j)){var x=t.f1b().y(p),y=null==x?t.u1a().y(p):x,k=null!=y&&Rt(y)?y:K();g=new d(p,xt(k))}else{var q,C=t.f1b().y(p);if(null==C){var S=t.u1a().y(p),E=S instanceof jt?S:null;q=null==E?null:E.x1a_1}else q=C;var R=ct(q);g=new d(p,R instanceof Ct?R:K())}var A=g;$.d(A)}for(var L=$,I=tn(),T=J(),N=L.f();N.g();){var M=N.h(),O=yt(M.ia_1).t7();I.d(O)&&T.d(M)}return z(T,"\n",a,a,a,a,(B=t,function(t){var n=t.ia_1,i=B.v1b().y(t.ha_1),e=m(m(ct(null==i?B.w1b().y(t.ha_1):i),[" "]).j(1),[","]).j(0);return rn(n,e,!1)}));var B}(e);for(var n=t,i=e.sw_1,s=Q(i.i()),_=i.o().f();_.g();){var o=_.h(),h="// -- output-from "+o.q().toString()+" \n#define OUTPUT_"+o.p()+" \nlayout(location = "+o.q().q19_1+") out "+un(o.q())+" o_"+o.p()+";\n";s.d(h)}n.ku_1=z(s,""),t.bu_1=function(t){for(var n=t.v1b(),i=Q(n.i()),e=n.o().f();e.g();){var r=e.h(),s=hn(r.q(),r.p());i.d(s)}return z(i,"\n")}(e),t.du_1=z(Z([Tn(e),Nn(e)]),"\n")}for(var f=t,c=r,v=J(),$=c.f();$.g();){for(var w=$.h().go_1,g=J(),p=w.f();p.g();){var b=p.h();"_"!==b.jv_1&&g.d(b)}tt(v,g)}for(var j=z(v,"",a,a,a,a,bn),x=u,y=J(),k=x.f();k.g();){for(var q=k.h().go_1,C=J(),S=q.f();S.g();){var E=S.h();"_"!==E.jv_1&&C.d(E)}tt(y,C)}var R=y;f.lu_1=j+z(R,"",a,a,a,a,jn);for(var A=t,L=r,I=J(),T=L.f();T.g();){for(var N=T.h().go_1,M=J(),O=N.f();O.g();){var B=O.h();"_"!==B.jv_1&&M.d(B)}tt(I,M)}for(var D=z(I,"",a,a,a,a,mn),G=u,V=J(),P=G.f();P.g();){for(var F=P.h().go_1,W=J(),U=F.f();U.g();){var H=U.h();"_"!==H.jv_1&&W.d(H)}tt(V,W)}var Y=V;A.mu_1=D+z(Y,"",a,a,a,a,xn);for(var nt=t,it=r,et=J(),st=it.f();st.g();){for(var ut=st.h().go_1,_t=J(),ot=ut.f();ot.g();){var ht=ot.h();"_"!==ht.jv_1&&_t.d(ht)}tt(et,_t)}for(var at=z(et,"",a,a,a,a,yn),lt=u,ft=J(),vt=lt.f();vt.g();){for(var dt=vt.h().go_1,$t=J(),wt=dt.f();wt.g();){var gt=wt.h();"_"!==gt.jv_1&&$t.d(gt)}tt(ft,$t)}var pt=ft;nt.nu_1=at+z(pt,"",a,a,a,a,kn);for(var bt=t,mt=r,kt=J(),qt=mt.f();qt.g();){for(var St=qt.h().go_1,Et=J(),zt=St.f();zt.g();){var At=zt.h();"_"!==At.jv_1&&Et.d(At)}tt(kt,Et)}for(var Lt=z(kt,"",a,a,a,a,qn),It=u,Tt=J(),Nt=It.f();Nt.g();){for(var Mt=Nt.h().go_1,Ot=J(),Bt=Mt.f();Bt.g();){var Dt=Bt.h();"_"!==Dt.jv_1&&Ot.d(Dt)}tt(Tt,Ot)}var Gt=Tt;bt.cu_1=Lt+z(Gt,"",a,a,a,a,Cn);var Vt=t,Pt=null==e?null:e.uw_1;return Vt.ou_1=null!=Pt&&Pt,t}))}function pn(t){return Sn(),1===t.mv_1?"":"["+t.mv_1+"]"}function bn(t){return Sn(),_n(t.lv_1)+"out "+on(t.lv_1)+" va_"+t.jv_1+pn(t)+";\n"}function jn(t){return Sn(),_n(t.lv_1)+"out "+on(t.lv_1)+" vi_"+t.jv_1+pn(t)+";\n"}function mn(t){return Sn(),_n(t.lv_1)+"in "+on(t.lv_1)+" va_"+t.jv_1+pn(t)+";\n"}function xn(t){return Sn(),_n(t.lv_1)+"in "+on(t.lv_1)+" vi_"+t.jv_1+pn(t)+";\n"}function yn(t){return Sn()," va_"+t.jv_1+" = a_"+t.jv_1+";\n"}function kn(t){return Sn(),"vi_"+t.jv_1+" = i_"+t.jv_1+";\n"}function qn(t){return Sn(),"in "+on(t.lv_1)+" a_"+t.jv_1+pn(t)+";\n"}function Cn(t){return Sn(),"in "+on(t.lv_1)+" i_"+t.jv_1+pn(t)+";\n"}function Sn(){u||(u=!0,s=new sn)}function En(t,n){return nt.to().e10(n)+"\n"+t}function zn(t,n,i,e,r,s){it.call(this,t),this.f1a_1=n,this.g1a_1=i,this.h1a_1=e,this.i1a_1=r,this.j1a_1=s,this.k1a_1=0,this.l1a_1=0,this.m1a_1=null,this.n1a_1=l()}function Rn(){}function An(){}function Ln(){}function In(){}function Tn(t){for(var n=2,i=t.u1a(),e=Q(i.i()),r=i.o().f();r.g();){var s,u=r.h(),_=u.q();if(_ instanceof jt){var o="layout(std430, binding = "+n+")",h=t.x1b().y(u.p()),l=null==h?nn():h,f=z(l," ",a,a,a,a,Mn),c=t.y1b().y(u.p()),v=ln(null==c?en():c),d=u.p(),g=_.x1a_1,p=rn(g,"",!0);s=z(Z([o,f,v,"buffer B_"+d+" { "+p+" } b_"+u.p()+";"])," ")}else if(pt(_,bt))s="layout(std430, binding = "+n+") buffer B_"+u.p()+" { "+fn(_.a10())+" } b_"+u.p()+";";else{if(!pt(_,gt)){var b="unsupported buffer type: "+$(_);throw w($(b))}var j=n,m=u.p(),x=u.q();s="layout(binding = "+j+", offset = 0) uniform atomic_uint b_"+m+"["+(pt(x,gt)?x:K()).i()+"];"}var y=s;n=n+1|0,e.d(y)}return z(e,"\n")}function Nn(t){for(var n=t.z1b(),i=Q(n.i()),e=n.o().f();e.g();){var r,s=e.h(),u=m(s.q(),[","]),_=m(u.j(0),[" "]);switch(_.j(0)){case"Image2D":case"Image3D":case"ImageCube":case"Image2DArray":case"ImageBuffer":case"ImageCubeArray":var o,h=y(u.j(0),1).toLowerCase()+k(u.j(0),1),l=q(u.j(1)),f=C(u.j(2)),c=cn(l,f);switch(f.jp().b1_1){case 2:o="i";break;case 1:o="u";break;default:o=""}var v,d=t.d1b().y(s.p());switch(d){case-1:v="";break;case 0:throw w($("zero-sized arrays are not supported"));default:v="["+d+"]"}var g=v,p="layout("+c+", binding = "+t.a1b().y(s.p())+")",b=t.a1c().y(s.p()),j=null==b?nn():b,x=z(j," ",a,a,a,a,On),S=t.b1c().y(s.p());r=z(Z([p,x,ln(null==S?en():S),"uniform "+o+h+" p_"+s.p()+g+";"])," ");break;default:var E="unknown image type '"+_.j(0);throw w($(E))}var R=r;i.d(R)}return z(i,"\n")}function Mn(t){return an(t)}function On(t){return an(t)}return v(sn,"LRUCache",sn),v(wn,"CacheEntry"),mt(In,"StyleManagerDispatchUniform"),mt(Ln,"StyleManagerDispatchImageBindings"),mt(An,"StyleManagerDispatchBufferBindings"),v(zn,"ShadeStyleManagerGLCommon",a,it,[it,In,Ln,An]),v(Rn,"ShaderGeneratorsGLCommon",Rn),c(sn).y=function(t){return this.m19_1.y(t)},c(sn).o19=function(t,n){this.m19_1.i()>=this.l19_1&&this.m19_1.i3(this.n19_1.s9()),this.m19_1.h3(t,n),this.n19_1.r9(t)},c(sn).p19=function(t,n,i){var e,r=this.y(t);if(n||null==r){var s=i();this.o19(t,s),e=s}else e=r;return e},c(wn).toString=function(){return"CacheEntry(shadeStyle="+U(this.b1a_1)+", vertexFormats="+$(this.c1a_1)+", instanceAttributeFormats="+$(this.d1a_1)+")"},c(wn).hashCode=function(){var t=null==this.b1a_1?0:H(this.b1a_1);return t=h(t,31)+H(this.c1a_1)|0,h(t,31)+H(this.d1a_1)|0},c(wn).equals=function(t){if(this===t)return!0;if(!(t instanceof wn))return!1;var n=t instanceof wn?t:K();return!!Y(this.b1a_1,n.b1a_1)&&!!Y(this.c1a_1,n.c1a_1)&&!!Y(this.d1a_1,n.d1a_1)},c(zn).o1a=function(t){this.l1a_1=t},c(zn).p1a=function(){return this.l1a_1},c(zn).zt=function(t,n,i){for(var e=null==t?null:t.tw_1,r=null==e?et():e,s=Q(rt(r,10)),u=r.f();u.g();){var _=u.h().yn();s.d(_)}var h=st(i,s);if(null==t){if(null==this.m1a_1){var a=gn(t,n,h),l=ut,f=En(this.f1a_1(a),_t()),c=this.g1a_1,v=null==c?null:c(a),d=null==v?null:En(v,ot()),$=this.h1a_1,w=null==$?null:$(a),g=null==w?null:En(w,ht()),p=this.i1a_1,b=null==p?null:p(a);this.m1a_1=l.pu(f,d,g,null==b?null:En(b,at()),En(this.j1a_1(a),lt()),"shade-style-default:"+this.yt_1,ft.ct())}return ct(this.m1a_1)}var j,m=gn(t,n,h),x=this.n1a_1,y=x.y(m);if(null==y){var k;try{var q=ut,C=En(this.f1a_1(m),_t()),S=this.g1a_1,E=null==S?null:S(m),z=null==E?null:En(E,ot()),R=this.h1a_1,A=null==R?null:R(m),L=null==A?null:En(A,ht()),I=this.i1a_1,T=null==I?null:I(m);k=q.pu(C,z,L,null==T?null:En(T,at()),En(this.j1a_1(m),lt()),"shade-style-custom:"+this.yt_1+"-"+m.hashCode(),ft.ct())}catch(t){if(!(t instanceof Error))throw t;if(!o)throw t;k=this.zt(null,n,h)}var N=k;x.h3(m,N),j=N}else j=y;var M=j;return this.q1a(t,M),this.r1a(t,M),this.s1a(t,M),M},c(Rn).nz=function(t){var n=vt.xz("d_vertex_buffer"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=t.bu_1,_=null==u?"":u,o=vt.zz(),h=t.mu_1,l=null==h?"":h,f=t.ku_1,c=null==f?"":f,v=vt.pz_1,d=t.ou_1?"":"out vec4 o_color;",$=vt.uz(a,"v_instance"),w=t.ju_1,g=null==w?"":w,p=t.gu_1,b=null==p?null:dt(p," ");return $t("|\n|"+n+"\n|"+e+"\n|"+s+"\n|"+_+"\n|#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n\n|uniform sampler2D image;\n|"+o+"\n|"+l+"\n|"+c+"\n|"+v+"\n\n|#ifndef OUTPUT_color\n|"+d+"\n|#endif\n|\n|flat in int v_instance;\n|flat in float va_pointSize;\n|"+$+"\n|"+g+"\n|void main(void) {\n| vec4 x_fill = u_fill;\n| vec4 x_stroke = u_stroke;\n| {\n"+(null==b?"":b)+"\n| }\n "+(t.ou_1?"":" o_color = x_fill;\n o_color.rgb *= o_color.a;\n")+"\n|}")},c(Rn).mz=function(t){var n=vt.xz("d_vertex_buffer"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=vt.zz(),_=t.cu_1,o=null==_?"":_,h=t.bu_1,a=null==h?"":h,l=t.lu_1,f=null==l?"":l,c=vt.qz_1,v=t.hu_1,d=null==v?"":v,$=vt.wz(),w=t.nu_1,g=null==w?"":w,p=t.cu_1,b=!0===(null==p?null:wt(p,"vec3 a_normal;"))?"x_normal = a_normal;":"",j=vt.rz_1,m=t.eu_1,x=null==m?null:dt(m," ");return $t("\n"+n+"\n"+e+"\n"+s+"\n"+u+"\n"+o+"\n"+a+"\n"+f+"\n"+c+"\n"+d+"\n\nflat out int v_instance;\nflat out float va_pointSize;\nvoid main() {\n int instance = gl_InstanceID; // this will go use c_instance instead\n"+$+"\n"+g+"\n vec3 x_normal = vec3(0.0, 0.0, 0.0);\n "+b+"\n vec3 x_position = a_position;\n float x_pointSize = 1.0;\n\n "+j+"\n {\n"+(null==x?"":x)+"\n }\n "+vt.sz_1+"\n\n v_instance = instance;\n gl_Position = v_clipPosition;\n gl_PointSize = x_pointSize;\n va_pointSize = x_pointSize;\n}\n ")},c(Rn).xx=function(t){var n=vt.xz("d_image"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=t.bu_1,_=null==u?"":u,o=vt.zz(),h=t.mu_1,l=null==h?"":h,f=vt.pz_1,c=t.ku_1,v=null==c?"":c,d=t.ou_1?"":"out vec4 o_color;",$=vt.uz(a,a,a,a,"v_boundsPosition"),w=t.ju_1,g=null==w?"":w,p=t.gu_1,b=null==p?null:dt(p," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+_+"\n#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n\nuniform sampler2D image;\n"+o+"\n"+l+"\n"+f+"\n\n"+v+"\n\n#ifndef OUTPUT_color\n"+d+"\n#endif\n\nin vec3 v_boundsPosition;\nflat in int v_instance;\nvec4 colorTransform(vec4 color, float[25] matrix) {\n float r = color.r * matrix[0] + color.g * matrix[5] + color.b * matrix[10] + color.a * matrix[15] + matrix[20];\n float g = color.r * matrix[1] + color.g * matrix[6] + color.b * matrix[11] + color.a * matrix[16] + matrix[21];\n float b = color.r * matrix[2] + color.g * matrix[7] + color.b * matrix[12] + color.a * matrix[17] + matrix[22];\n float a = color.r * matrix[3] + color.g * matrix[8] + color.b * matrix[13] + color.a * matrix[18] + matrix[23];\n return vec4(r, g, b, a);\n}\n"+$+"\n"+g+"\nvoid main(void) {\n\n vec4 x_fill = texture(image, va_texCoord0);\n vec4 x_stroke = u_stroke;\n {\n"+(null==b?"":b)+"\n }\n float div = x_fill.a != 0.0 ? x_fill.a : 1.0;\n x_fill.rgb /= div;\n x_fill = colorTransform(x_fill, u_colorMatrix);\n x_fill.rgb *= x_fill.a;\n "+(t.ou_1?"":"o_color = x_fill;")+"\n}"},c(Rn).wx=function(t){var n=vt.xz("d_image"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=vt.zz(),_=t.cu_1,o=null==_?"":_,h=t.bu_1,a=null==h?"":h,l=t.lu_1,f=null==l?"":l,c=vt.qz_1,v=vt.wz(),d=t.hu_1,$=null==d?"":d,w=t.nu_1,g=null==w?"":w,p=vt.rz_1,b=t.eu_1,j=null==b?null:dt(b," ");return"\n\n"+n+"\n"+e+"\n"+s+"\n"+u+"\nuniform int u_flipV;\n"+o+"\n"+a+"\n"+f+"\n"+c+"\n\n"+v+"\n"+$+"\n\nflat out int v_instance;\n\nout vec3 v_boundsPosition;\nvoid main() {\n v_instance = gl_InstanceID;\n\n "+g+"\n "+p+"\n vec3 x_normal = a_normal;\n vec3 x_position = a_position;\n x_position.xy = a_position.xy * i_target.zw + i_target.xy;\n v_boundsPosition = vec3(a_texCoord0.xy, 1.0);\n va_texCoord0.xy = a_texCoord0.xy * i_source.zw + i_source.xy;\n if (u_flipV == 0) {\n va_texCoord0.y = 1.0 - va_texCoord0.y;\n }\n {\n"+(null==j?"":j)+"\n }\n "+vt.sz_1+"\n gl_Position = v_clipPosition;\n}\n"},c(Rn).zx=function(t){var n=vt.xz("d_image"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=t.bu_1,_=null==u?"":u,o=vt.zz(),h=t.mu_1,l=null==h?"":h,f=vt.pz_1,c=t.ou_1?"":"out vec4 o_color;",v=vt.uz(a,a,a,a,"v_boundsPosition"),d=t.ju_1,$=null==d?"":d,w=t.gu_1,g=null==w?null:dt(w," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+_+"\n#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n\nuniform sampler2DArray image;\n"+o+"\n"+l+"\n"+f+"\n\n#ifndef OUTPUT_color\n"+c+"\n#endif\n\n\nin vec3 v_boundsPosition;\nflat in int v_instance;\nflat in int v_layer;\nvec4 colorTransform(vec4 color, float[25] matrix) {\n float r = color.r * matrix[0] + color.g * matrix[5] + color.b * matrix[10] + color.a * matrix[15] + matrix[20];\n float g = color.r * matrix[1] + color.g * matrix[6] + color.b * matrix[11] + color.a * matrix[16] + matrix[21];\n float b = color.r * matrix[2] + color.g * matrix[7] + color.b * matrix[12] + color.a * matrix[17] + matrix[22];\n float a = color.r * matrix[3] + color.g * matrix[8] + color.b * matrix[13] + color.a * matrix[18] + matrix[23];\n return vec4(r, g, b, a);\n}\n\n"+v+"\n"+$+"\nvoid main(void) {\n vec4 x_fill = texture(image, vec3(va_texCoord0, float(v_layer) * 1.0));\n vec4 x_stroke = u_stroke;\n {\n"+(null==g?"":g)+"\n }\n float div = x_fill.a != 0.0 ? x_fill.a : 1.0;\n x_fill.rgb /= div;\n x_fill = colorTransform(x_fill, u_colorMatrix);\n x_fill.rgb *= x_fill.a;\n "+(t.ou_1?"":"o_color = x_fill;")+"\n}"},c(Rn).yx=function(t){var n=vt.xz("d_image"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=vt.zz(),_=t.cu_1,o=null==_?"":_,h=t.bu_1,a=null==h?"":h,l=t.lu_1,f=null==l?"":l,c=vt.qz_1,v=vt.wz(),d=t.hu_1,$=null==d?"":d,w=t.nu_1,g=null==w?"":w,p=vt.rz_1,b=t.eu_1,j=null==b?null:dt(b," ");return"\n\n"+n+"\n"+e+"\n"+s+"\n"+u+"\nuniform int u_flipV;\n"+o+"\n"+a+"\n"+f+"\n"+c+"\n\n"+v+"\n"+$+"\n\nflat out int v_instance;\nflat out int v_layer;\n\nout vec3 v_boundsPosition;\nvoid main() {\n v_instance = gl_InstanceID;\n\n "+g+"\n "+p+"\n vec3 x_normal = a_normal;\n vec3 x_position = a_position;\n x_position.xy = a_position.xy * i_target.zw + i_target.xy;\n v_boundsPosition = vec3(a_texCoord0.xy, 1.0);\n va_texCoord0.xy = a_texCoord0.xy * i_source.zw + i_source.xy;\n v_layer = int(floor(i_layer+0.5));\n if (u_flipV == 0) {\n va_texCoord0.y = 1.0 - va_texCoord0.y;\n }\n {\n"+(null==j?"":j)+"\n }\n "+vt.sz_1+"\n gl_Position = v_clipPosition;\n}\n"},c(Rn).xy=function(t){var n=vt.xz("d_circle"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=t.bu_1,_=null==u?"":u,o=vt.zz(a,!1),h=t.mu_1,l=null==h?"":h,f=vt.pz_1,c=t.ou_1?"":"out vec4 o_color;",v=vt.uz(a,a,a,a,"vec3(0.0, 0.0, 0.0)","v_boundsSize"),d=t.ju_1,$=null==d?"":d,w=t.gu_1,g=null==w?null:dt(w," ");return $t("\n"+n+"\n"+e+"\n"+s+"\n"+_+"\n#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n\n"+o+"\n"+l+"\n"+f+"\n\n#ifndef OUTPUT_color\n"+c+"\n#endif\n\n\nflat in int v_instance;\nin vec3 v_boundsSize;\nflat in float va_pointSize;\n"+v+"\n"+$+"\nvoid main(void) {\n\n\n vec4 x_fill = vi_fill;\n vec4 x_stroke = vi_stroke;\n {\n"+(null==g?"":g)+"\n }\n x_fill.rgb *= x_fill.a;\n "+(t.ou_1?"":"o_color = x_fill;")+"\n}\n\n ")},c(Rn).wy=function(t){var n=vt.xz("d_point"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=vt.zz(a,!1),_=t.cu_1,o=null==_?"":_,h=t.bu_1,l=null==h?"":h,f=t.lu_1,c=null==f?"":f,v=vt.qz_1,d=vt.wz(),$=t.hu_1,w=null==$?"":$,g=t.nu_1,p=null==g?"":g,b=vt.rz_1,j=t.eu_1,m=null==j?null:dt(j," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+u+"\n"+o+"\n"+l+"\n"+c+"\n"+v+"\n\n"+d+"\n"+w+"\n\nflat out int v_instance;\nout vec3 v_boundsSize;\nflat out float va_pointSize;\nvoid main() {\n v_instance = gl_InstanceID;\n\n "+p+"\n\n v_boundsSize = vec3(0, 0.0, 0.0);\n "+b+"\n vec3 x_normal = vec3(0.0, 0.0, 1.0);\n vec3 x_position = a_position + i_offset;\n float x_pointSize = 1.0;\n {\n"+(null==m?"":m)+"\n }\n va_position = x_position;\n "+vt.sz_1+"\n gl_Position = v_clipPosition;\n gl_PointSize = x_pointSize;\n va_pointSize = x_pointSize;\n}"},c(Rn).ov=function(t){var n=vt.xz("d_circle"),i=t.au_1,e=null==i?"":i,r=t.bu_1,s=null==r?"":r,u=t.du_1,_=null==u?"":u,o=vt.zz(a,!1),h=t.mu_1,l=null==h?"":h,f=vt.pz_1,c=t.ou_1?"":"out vec4 o_color;",v=t.ju_1,d=null==v?"":v,$=vt.uz(a,a,a,a,"vec3(va_texCoord0, 0.0)","v_boundsSize"),w=t.gu_1,g=null==w?null:dt(w," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+_+"\n#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n\n"+o+"\n"+l+"\n"+f+"\n\n#ifndef OUTPUT_color\n"+c+"\n#endif\n\n"+d+"\n\nflat in int v_instance;\nin vec3 v_boundsSize;\n"+$+"\n\n\nvoid main(void) {\n float smoothFactor = 3.0;\n\n vec4 x_fill = vi_fill;\n vec4 x_stroke = vi_stroke;\n float x_strokeWeight = vi_strokeWeight;\n\n {\n"+(null==g?"":g)+"\n }\n float wd = fwidth(length(va_texCoord0 - vec2(0.0)));\n float d = length(va_texCoord0 - vec2(0.5)) * 2.0;\n\n float or = smoothstep(0.0, wd * smoothFactor, 1.0 - d);\n float b = x_strokeWeight / vi_radius.x;\n float ir = smoothstep(0.0, wd * smoothFactor, 1.0 - b - d);\n\n vec4 final = vec4(0.0);\n final.rgb = x_stroke.rgb;\n final.a = or * (1.0 - ir) * x_stroke.a;\n final.rgb *= final.a;\n\n final.rgb += x_fill.rgb * ir * x_fill.a;\n final.a += ir * x_fill.a;\n "+(t.ou_1?"":"o_color = final;")+"\n}\n"},c(Rn).nv=function(t){var n=vt.xz("d_circle"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=vt.zz(a,!1),_=t.cu_1,o=null==_?"":_,h=t.bu_1,l=null==h?"":h,f=t.lu_1,c=null==f?"":f,v=vt.qz_1,d=vt.wz(),$=t.hu_1,w=null==$?"":$,g=t.nu_1,p=null==g?"":g,b=vt.rz_1,j=t.eu_1,m=null==j?null:dt(j," ");return"\n// -- circle vertex shader\n"+n+"\n"+e+"\n"+s+"\n"+u+"\n"+o+"\n"+l+"\n"+c+"\n"+v+"\n\n"+d+"\n"+w+"\n\nflat out int v_instance;\nout vec3 v_boundsSize;\nvoid main() {\n v_instance = gl_InstanceID;\n\n "+p+"\n\n vec2 effectiveRadius = i_radius.xy + vec2(1.25 / u_contentScale) / (u_modelViewScalingFactor);\n\n v_boundsSize = vec3(effectiveRadius.xy, 0.0);\n "+b+"\n vec3 x_normal = a_normal;\n vec3 x_position = vec3(a_position.xy * effectiveRadius, 0.0) + i_offset;\n {\n"+(null==m?"":m)+"\n }\n va_position = x_position;\n "+vt.sz_1+"\n gl_Position = v_clipPosition;\n\n}\n "},c(Rn).mx=function(t){var n=vt.xz("d_font_image_map"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=t.bu_1,_=null==u?"":u,o=vt.zz(),h=t.mu_1,l=null==h?"":h,f=vt.pz_1,c=t.ou_1?"":"out vec4 o_color;",v=t.ju_1,d=null==v?"":v,$=vt.uz("v_instance","v_element",a,a,"vec3(va_bounds.xy, 0.0)","vec3(va_bounds.zw, 0.0)"),w=t.gu_1,g=null==w?null:dt(w," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+_+"\n#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n\nuniform sampler2D image;\nflat in int v_instance;\nflat in int v_element;\n\n"+o+"\n"+l+"\n"+f+"\n\n#ifndef OUTPUT_color\n"+c+"\n#endif\n\n"+d+"\n\n"+$+"\nvoid main(void) {\n float imageMap = texture(image, va_texCoord0).r;\n\n vec4 x_fill = vec4(u_fill.rgb,u_fill.a * imageMap);\n vec4 x_stroke = u_stroke;\n {\n"+(null==g?"":g)+"\n }\n vec4 final = x_fill;\n final.rgb *= final.a;\n "+(t.ou_1?"":"o_color = final;")+"\n}\n"},c(Rn).lx=function(t){var n=vt.xz("d_font_image_map"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=vt.zz(),_=t.cu_1,o=null==_?"":_,h=t.bu_1,a=null==h?"":h,l=t.lu_1,f=null==l?"":l,c=vt.qz_1,v=vt.wz("int(a_position.z)"),d=t.hu_1,$=null==d?"":d,w=t.nu_1,g=null==w?"":w,p=vt.rz_1,b=t.eu_1,j=null==b?null:dt(b," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+u+"\n\n"+o+"\n"+a+"\n"+f+"\n"+c+"\n"+v+"\n"+$+"\nflat out int v_instance;\nflat out int v_element;\n\nvoid main() {\n\n vec3 decodedPosition = vec3(a_position.xy, 0.0);\n v_element = int(a_position.z);\n v_instance = int(a_instance);\n\n "+g+"\n "+p+"\n vec3 x_normal = vec3(0.0, 0.0, 1.0);\n vec3 x_position = decodedPosition;\n {\n"+(null==j?"":j)+"\n }\n "+vt.sz_1+"\n gl_Position = v_clipPosition;\n}\n "},c(Rn).gz=function(t){var n=vt.xz("d_rectangle"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=t.bu_1,_=null==u?"":u,o=vt.zz(a,!1),h=t.mu_1,l=null==h?"":h,f=t.ku_1,c=null==f?"":f,v=vt.pz_1,d=t.ou_1?"":"out vec4 o_color;",$=t.ju_1,w=null==$?"":$,g=vt.uz(a,a,a,a,"vec3(va_texCoord0, 0.0)","v_boundsSize"),p=t.gu_1,b=null==p?null:dt(p," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+_+"\n#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n\n"+o+"\n"+l+"\n"+c+"\n"+v+"\n\n#ifndef OUTPUT_color\n"+d+"\n#endif\n\n"+w+"\nflat in int v_instance;\nin vec3 v_boundsSize;\n\n"+g+"\n\nvoid main(void) {\n vec4 x_fill = vi_fill;\n vec4 x_stroke = vi_stroke;\n {\n"+(null==b?"":b)+"\n }\n vec2 wd = fwidth(va_texCoord0 - vec2(0.5));\n vec2 d = abs((va_texCoord0 - vec2(0.5)) * 2.0);\n\n float irx = smoothstep(0.0, wd.x * 2.5, 1.0-d.x - vi_strokeWeight * 2.0 / vi_dimensions.x);\n float iry = smoothstep(0.0, wd.y * 2.5, 1.0-d.y - vi_strokeWeight * 2.0 / vi_dimensions.y);\n float ir = irx*iry;\n\n vec4 final = vec4(1.0);\n final.rgb = x_fill.rgb * x_fill.a;\n final.a = x_fill.a;\n\n float sa = (1.0-ir) * x_stroke.a;\n final.rgb = final.rgb * (1.0-sa) + x_stroke.rgb * sa;\n final.a = final.a * (1.0-sa) + sa;\n\n "+(t.ou_1?"":" o_color = final;")+"\n}\n"},c(Rn).fz=function(t){var n=vt.xz("d_rectangle"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=vt.zz(a,!1),o=t.cu_1,h=null==o?"":o,l=t.bu_1,f=null==l?"":l,c=t.lu_1,v=null==c?"":c,d=vt.qz_1,$=vt.wz(),w=t.hu_1,g=null==w?"":w,p=t.nu_1,b=null==p?"":p,j=vt.rz_1,m=t.eu_1,x=null==m?null:dt(m," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+u+"\n"+h+"\n"+f+"\n"+v+"\n"+d+"\n\n"+$+"\n"+g+"\n\nflat out int v_instance;\nout vec3 v_boundsSize;\n"+_+"\n\nvoid main() {\n v_instance = gl_InstanceID;\n "+b+"\n "+j+"\n vec3 x_normal = vec3(0.0, 0.0, 1.0);\n vec2 rotatedPosition = rotate2(i_rotation) * (( a_position.xy - vec2(0.5) ) * i_dimensions) + vec2(0.5) * i_dimensions;\n\n vec3 x_position = vec3(rotatedPosition, 0.0) + i_offset;\n v_boundsSize = vec3(i_dimensions, 1.0);\n {\n"+(null==x?"":x)+"\n }\n "+vt.sz_1+"\n gl_Position = v_clipPosition;\n }\n "},c(Rn).dx=function(t){var n=vt.xz("d_expansion"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=t.bu_1,_=null==u?"":u,o=vt.zz(),h=t.mu_1,l=null==h?"":h,f=vt.pz_1,c=t.ou_1?"":"out vec4 o_color;",v=t.ju_1,d=null==v?"":v,$=vt.uz(a,a,a,"va_vertexOffset","vec3(v_objectPosition.xy - bounds.xy, 0.0) / vec3(bounds.zw,1.0)","vec3(bounds.zw, 0.0)"),w=t.gu_1,g=null==w?null:dt(w," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+_+"\n#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n"+o+"\n"+l+"\n"+f+"\nflat in int v_instance;\nuniform float strokeMult;\nuniform float strokeThr;\nuniform float strokeFillFactor;\nuniform sampler2D tex;\nuniform vec4 bounds;\n\nin vec3 v_objectPosition;\nin vec2 v_ftcoord;\n\n#ifndef OUTPUT_color\n"+c+"\n#endif\n\n"+d+"\n\nfloat strokeMask() {\n\treturn min(1.0, (1.0-abs(v_ftcoord.x*2.0-1.0))*strokeMult) * min(1.0, v_ftcoord.y);\n\t//return pow(min(1.0, (1.0-abs(v_ftcoord.x*2.0-1.0)*strokeMult)) * min(1.0, v_ftcoord.y), 1.0);\n //return smoothstep(0.0, 1.0, (1.0-abs(v_ftcoord.x*2.0-1.0))*strokeMult) * smoothstep(0.0, 1.0, v_ftcoord.y);\n}\n\n"+$+"\n\nvoid main(void) {\n\tfloat strokeAlpha = strokeMask();\n\n vec4 x_stroke = u_stroke;\n vec4 x_fill = u_fill;\n\n"+(null==g?"":g)+"\n\n vec4 color = mix(x_stroke, x_fill, strokeFillFactor) * vec4(1.0, 1.0, 1.0, strokeAlpha);\n vec4 result = color;\n\n if (strokeAlpha < strokeThr) {\n\t discard;\n\t}\n\n vec4 final = result;\n\tfinal = result;\n\tfinal.rgb *= final.a;\n "+(t.ou_1?"":"o_color = final;")+"\n}\n"},c(Rn).cx=function(t){var n=vt.xz("d_expansion"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=vt.zz(),_=t.bu_1,o=null==_?"":_,h=t.cu_1,a=t.lu_1,l=null==a?"":a,f=vt.qz_1,c=vt.wz(),v=t.hu_1,d=null==v?"":v,$=t.nu_1,w=null==$?"":$,g=vt.rz_1,p=t.eu_1,b=null==p?null:dt(p," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+u+"\n"+o+"\n"+h+"\n"+l+"\n"+f+"\n\n"+c+"\n"+d+"\n\nout vec2 v_ftcoord;\nout float v_offset;\n\nout vec3 v_objectPosition;\nflat out int v_instance;\n\nvoid main() {\n v_instance = 0;\n "+w+"\n v_objectPosition = vec3(a_position, 0.0);\n v_ftcoord = a_texCoord0;\n\n vec3 x_position = vec3(a_position, 0.0);\n vec3 x_normal = vec3(0.0, 0.0, 1.0);\n "+g+"\n {\n"+(null==b?"":b)+"\n }\n "+vt.sz_1+"\n\n gl_Position = v_clipPosition;\n}\n"},c(Rn).qy=function(t){var n=vt.xz("d_fast_line"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=t.bu_1,_=null==u?"":u,o=vt.zz(),h=t.mu_1,a=null==h?"":h,l=vt.pz_1,f=t.ou_1?"":"out vec4 o_color;",c=t.ju_1,v=null==c?"":c,d=vt.uz(),$=t.gu_1,w=null==$?null:dt($," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+_+"\n#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n\nuniform sampler2D image;\n"+o+"\n"+a+"\n"+l+"\nflat in int v_instance;\n\n#ifndef OUTPUT_color\n"+f+"\n#endif\n\n"+v+"\n\n"+d+"\nvoid main(void) {\n vec4 x_fill = u_fill;\n vec4 x_stroke = u_stroke;\n {\n"+(null==w?"":w)+"\n }\n\n\n vec4 final = x_stroke;\n final = x_stroke;\n final.rgb *= final.a;\n "+(t.ou_1?"":"o_color = final;")+"\n}\n"},c(Rn).py=function(t){var n=vt.xz("d_fast_line"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=vt.zz(),_=t.cu_1,o=null==_?"":_,h=t.bu_1,a=null==h?"":h,l=t.lu_1,f=null==l?"":l,c=vt.qz_1,v=vt.wz(),d=t.hu_1,$=null==d?"":d,w=t.nu_1,g=null==w?"":w,p=vt.rz_1,b=t.eu_1,j=null==b?null:dt(b," ");return"\n"+n+"\n"+e+"\n"+s+"\n"+u+"\n"+o+"\n"+a+"\n"+f+"\n"+c+"\n\n"+v+"\n"+$+"\n\nflat out int v_instance;\n\nvoid main() {\n v_instance = gl_InstanceID;\n\n "+g+"\n "+p+"\n vec3 x_normal = vec3(0.0, 0.0, 1.0);\n vec3 x_position = a_position;\n {\n"+(null==j?"":j)+"\n }\n "+vt.sz_1+"\n gl_Position = v_clipPosition;\n}\n"},c(Rn).iy=function(t){var n=vt.xz("d_mesh_line"),i=t.au_1,e=null==i?"":i,r=t.du_1,s=null==r?"":r,u=t.ku_1,_=null==u?"":u,o=t.bu_1,h=null==o?"":o,a=t.ju_1,l=null==a?"":a,f=vt.zz(),c=t.mu_1,v=null==c?"":c,d=vt.pz_1,$=t.ou_1?"":"out vec4 o_color;",w=vt.uz(),g=t.gu_1,p=null==g?null:dt(g," ");return $t("\n |\n |"+n+"\n |"+e+"\n |"+s+"\n |"+_+"\n |"+h+"\n |#ifdef OR_GL \nlayout(origin_upper_left) in vec4 gl_FragCoord;\n#endif \n\n |\n |uniform sampler2D image;\n |"+l+"\n |"+f+"\n |"+v+"\n |"+d+"\n |flat in int v_instance;\n |#ifndef OUTPUT_color\n |"+$+"\n |#endif\n | "+w+"\n |void main(void) {\n | vec4 x_fill = u_fill;\n | vec4 x_stroke = va_color;\n | {\n"+(null==p?"":p)+"\n | }\n |"+(t.ou_1?"":"o_color = x_stroke;\no_color.rgb *= o_color.a;")+"\n |}\n ")},c(Rn).hy=function(t){var n=t.au_1,i=null==n?"":n,e=t.du_1,r=null==e?"":e,s=vt.xz("d_mesh_line"),u=vt.zz(),_=t.cu_1,o=null==_?"":_,h=t.bu_1,l=null==h?"":h,f=t.lu_1,c=null==f?"":f,v=vt.qz_1,d=vt.wz(a,"int(a_element)"),$=t.hu_1,w=null==$?"":$,g=t.nu_1,p=null==g?"":g,b=vt.rz_1,j=t.eu_1,m=null==j?null:dt(j," ");return $t("\n |\n |"+i+"\n |"+r+"\n |"+s+"\n |"+u+"\n |"+o+"\n |"+l+"\n |"+c+"\n |"+v+"\n |"+d+"\n |"+w+"\n |flat out int v_instance;\n |\n |vec2 fix(vec4 i, float aspect) {\n | vec2 res = i.xy / i.w;\n | res.x *= aspect;\n | return res;\n |}\n |\n |void main() {\n | v_instance = gl_InstanceID;\n | "+p+"\n | "+b+"\n | vec3 x_normal = vec3(0.0, 0.0, 1.0);\n | vec3 x_position = a_position;\n | {\n"+(null==m?"":m)+"\n | }\n | "+vt.sz_1+"\n | float aspect = u_viewDimensions.x / u_viewDimensions.y;\n | vec2 pixelWidthRatio = 1.0 / (u_viewDimensions);\n | mat4 pvm = x_projectionMatrix * x_viewMatrix * x_modelMatrix;\n | vec4 finalPosition = pvm * vec4(a_position, 1.0);\n | vec4 prevPosition = pvm * vec4(a_previous, 1.0);\n | vec4 nextPosition = pvm * vec4(a_next, 1.0);\n | vec2 currentP = fix(finalPosition, aspect);\n | vec2 prevP = fix(prevPosition, aspect);\n | vec2 nextP = fix(nextPosition, aspect);\n |\n | vec2 w = max(pixelWidthRatio*finalPosition.w, (pixelWidthRatio) * a_width);\n | vec2 dir;\n | if (nextP == currentP) {\n | dir = normalize(currentP - prevP);\n | } else if(prevP == currentP) {\n | dir = normalize( nextP - currentP );\n | } else {\n | vec2 dir1 = normalize(currentP - prevP);\n | vec2 dir2 = normalize(nextP - currentP);\n | dir = normalize(dir1 + dir2);\n | }\n | x_normal = ( cross( vec3( dir, 0. ), vec3( 0., 0., 1. ) ) );\n | vec2 normal = vec2(-dir.y, dir.x) * w;\n | vec4 offset = vec4(normal * a_side, 0.0, 1.0);\n |\n | finalPosition.xy += offset.xy;\n | v_clipPosition = finalPosition;\n | gl_Position = finalPosition;\n |}\n ")},c(zn).r1a=function(t,n){this.o1a(t.e1b());for(var i=t.f1b().o().f();i.g();){var e=i.h();this.t1a(n,"p_"+e.p(),e.p(),e.q())}},c(zn).t1a=function(t,n,i,e){if("boolean"==typeof e)t.u1b(n,e);else if("number"==typeof e)t.o1b(n,e);else if("number"==typeof e)t.yo(n,e);else if("number"==typeof e)t.dp(n,e);else if(e instanceof Mt)t.wo(n,e);else if(e instanceof Qt)t.t1b(n,e);else if(e instanceof Tt)t.g1b(n,e);else if(e instanceof It)t.s1b(n,e);else if(e instanceof Lt)t.xo(n,e);else if(e instanceof Xt)t.r1b(n,e);else if(e instanceof Yt)t.q1b(n,e);else if(e instanceof Kt)t.p1b(n,e);else if(e instanceof Nt)t.hq(n,e);else if(e instanceof Ht){e.jo(this.p1a()),t.o1b(n,this.p1a());var r=this.p1a();this.o1a(r+1|0)}else if(pt(e,Ut)){e.jo(this.p1a()),t.o1b(n,this.p1a());var s=this.p1a();this.o1a(s+1|0)}else if(e instanceof Wt){e.jo(this.p1a()),t.o1b(n,this.p1a());var u=this.p1a();this.o1a(u+1|0)}else if(pt(e,Ft)){e.jo(this.p1a()),t.o1b(n,this.p1a());var _=this.p1a();this.o1a(_+1|0)}else if(e instanceof Pt){e.jo(this.p1a()),t.o1b(n,this.p1a());var o=this.p1a();this.o1a(o+1|0)}else if(pt(e,Vt)){e.jo(this.p1a()),t.o1b(n,this.p1a());var h=this.p1a();this.o1a(h+1|0)}else if(pt(e,Gt)){e.jo(this.p1a()),t.o1b(n,this.p1a());var a=this.p1a();this.o1a(a+1|0)}else if(Dt(e)){for(var l=Q(e.length),f=0,c=e.length;f{var e,r,s;r=[n,i(50),i(36),i(560),i(988),i(651),i(549)],void 0===(s="function"==typeof(e=function(t,n,i,e,r,s,u){"use strict";var _,o,h,a,l,f,c,v,d=Math.imul,$=n.$_$.r,w=i.$_$.a1,g=i.$_$.g3,p=i.$_$.u2,b=n.$_$.y,j=i.$_$.m2,m=i.$_$.m,x=n.$_$.e,y=n.$_$.d,k=n.$_$.g,q=n.$_$.f,C=i.$_$.i3,S=i.$_$.q,E=i.$_$.d3,z=n.$_$.q,R=e.$_$.q,A=n.$_$.x,L=i.$_$.f4,I=n.$_$.b,T=n.$_$.u,N=n.$_$.c,M=e.$_$.d,O=n.$_$.l,B=n.$_$.i,D=n.$_$.k,G=n.$_$.h,V=i.$_$.j1,P=n.$_$.v,F=n.$_$.m,W=n.$_$.o,U=n.$_$.j,H=n.$_$.n,K=i.$_$.j2,Y=i.$_$.b2,X=n.$_$.t,Q=i.$_$.p4,Z=i.$_$.d1,J=i.$_$.f,tt=i.$_$.g1,nt=n.$_$.s,it=n.$_$.a,et=n.$_$.p,rt=r.$_$.k1,st=r.$_$.x1,ut=i.$_$.c,_t=r.$_$.q1,ot=i.$_$.p,ht=i.$_$.k4,at=i.$_$.s,lt=i.$_$.d2,ft=i.$_$.j4,ct=i.$_$.p2,vt=r.$_$.x,dt=r.$_$.a1,$t=r.$_$.b1,wt=r.$_$.c1,gt=i.$_$.w1,pt=i.$_$.d4,bt=r.$_$.y,jt=r.$_$.z,mt=s.$_$.b,xt=r.$_$.o2,yt=r.$_$.w1,kt=i.$_$.l,qt=i.$_$.t2,Ct=i.$_$.h3,St=s.$_$.a,Et=r.$_$.e1,zt=r.$_$.g1,Rt=i.$_$.n2,At=r.$_$.w,Lt=r.$_$.p2,It=i.$_$.m3,Tt=i.$_$.r2,Nt=i.$_$.r3,Mt=i.$_$.c1,Ot=i.$_$.v2,Bt=r.$_$.f1,Dt=r.$_$.h1,Gt=r.$_$.a2,Vt=i.$_$.g,Pt=u.$_$.a,Ft=r.$_$.z1,Wt=r.$_$.y1,Ut=i.$_$.e,Ht=i.$_$.l3,Kt=i.$_$.s1,Yt=i.$_$.k3,Xt=i.$_$.k,Qt=r.$_$.r,Zt=r.$_$.v,Jt=i.$_$.s2,tn=r.$_$.k2,nn=i.$_$.h4,en=r.$_$.d1,rn=r.$_$.i2,sn=r.$_$.j2;function un(){return _}function _n(){$.call(this)}function on(){var t;console.log("setting up ApplicationBaseWebGL"),b(((t=function(){return new _n}).callableName="",t))}function hn(t,n){return new Promise((i=n,function(t,n){var e,r,s=new FileReader;return s.readAsDataURL(i),s.onloadend=(e=t,r=s,function(t){return e(r.result),w}),w}));var i}function an(t,n){var i=m();return n.ctrlKey&&i.d(x()),n.altKey&&i.d(y()),n.metaKey&&i.d(k()),n.shiftKey&&i.d(q()),i}function ln(t){return t.preventDefault(),K("dragover"),w}function fn(t){return function(n){n.preventDefault(),K("drop");for(var i=n.dataTransfer.files,e=Q(i),r=J(Z(e,10)),s=e.f();s.g();){var u=hn(0,s.h());r.d(u)}var _=Promise,o=tt(r);return _.all(o).then(function(t){return function(n){return t.e1c_1.c14().f16().on(new X(t.l1c_1,Y(n))),w}}(t)),w}}function cn(t,n){nt.call(this),this.e1c_1=t,this.f1c_1=n,this.e1c_1.d14(this),this.g1c_1=!0,this.h1c_1=0,this.i1c_1=null,this.j1c_1=null,this.k1c_1=null,this.l1c_1=new R(0,0),this.m1c_1=it(),this.n1c_1=et()}function vn(t,n){if(_t.call(this),this.a1d_1=t,this.b1d_1=n,this.b1d_1%4|0){var i="elementSize "+this.b1d_1+" must be a multiple of 4";throw ot(C(i))}this.c1d_1=0}function dn(t){var n;switch(t.b1_1){case 1:case 6:case 12:case 18:n=WebGLRenderingContext.UNSIGNED_BYTE;break;case 2:case 8:case 14:case 20:n=WebGLRenderingContext.UNSIGNED_SHORT;break;case 4:case 10:case 16:case 22:n=WebGLRenderingContext.UNSIGNED_INT;break;case 0:case 7:case 13:case 19:n=WebGLRenderingContext.BYTE;break;case 3:case 9:case 15:case 21:n=WebGLRenderingContext.SHORT;break;case 5:case 11:case 17:case 23:n=WebGLRenderingContext.INT;break;case 24:case 28:case 29:case 30:case 25:case 26:case 27:n=WebGLRenderingContext.FLOAT;break;default:ht()}return n}function $n(t){var n;switch(t.b1_1){case 0:n=WebGLRenderingContext.NEVER;break;case 7:n=WebGLRenderingContext.ALWAYS;break;case 1:n=WebGLRenderingContext.LESS;break;case 2:n=WebGLRenderingContext.LEQUAL;break;case 3:n=WebGLRenderingContext.GREATER;break;case 4:n=WebGLRenderingContext.GEQUAL;break;case 5:n=WebGLRenderingContext.EQUAL;break;case 6:n=WebGLRenderingContext.NOTEQUAL;break;default:throw at("unsupported test: "+t.toString())}return n}function wn(t){var n;switch(t.b1_1){case 0:n=WebGLRenderingContext.KEEP;break;case 5:n=WebGLRenderingContext.DECR;break;case 6:n=WebGLRenderingContext.DECR_WRAP;break;case 3:n=WebGLRenderingContext.INCR;break;case 4:n=WebGLRenderingContext.INCR_WRAP;break;case 1:n=WebGLRenderingContext.ZERO;break;case 7:n=WebGLRenderingContext.INVERT;break;case 2:n=WebGLRenderingContext.REPLACE;break;default:throw at("unsupported op")}return n}function gn(t){return pn(new Float32Array([t.zi_1,t.dj_1,t.hj_1,t.lj_1,t.aj_1,t.ej_1,t.ij_1,t.mj_1,t.bj_1,t.fj_1,t.jj_1,t.nj_1,t.cj_1,t.gj_1,t.kj_1,t.oj_1]))}function pn(t){return new Float32Array(lt(t))}function bn(t){var n;this.w1d_1=t,this.m1d_1=ft((n=this.w1d_1,function(){var t=n.e1d_1.getExtension("ANGLE_instanced_arrays");return null!=t&&null!=t?t:null})),this.n1d_1=ft(function(t){return function(){var n=t.e1d_1.getExtension("OES_standard_derivatives");return null!=n&&null!=n?n:null}}(this.w1d_1)),this.o1d_1=ft(function(t){return function(){var n=t.e1d_1.getExtension("OES_texture_half_float");return null!=n&&null!=n?n:null}}(this.w1d_1)),this.p1d_1=ft(function(t){return function(){var n=t.e1d_1.getExtension("OES_texture_float");return null!=n&&null!=n?n:null}}(this.w1d_1)),this.q1d_1=ft(function(t){return function(){var n=t.e1d_1.getExtension("EXT_color_buffer_half_float");return null!=n&&null!=n?n:null}}(this.w1d_1)),this.r1d_1=ft(function(t){return function(){var n=t.e1d_1.getExtension("EXT_color_buffer_float");return null!=n&&null!=n?n:null}}(this.w1d_1)),this.s1d_1=ft(function(t){return function(){var n=t.e1d_1.getExtension("OES_texture_half_float_linear");return null!=n&&null!=n?n:null}}(this.w1d_1)),this.t1d_1=ft(function(t){return function(){var n=t.e1d_1.getExtension("OES_texture_float_linear");return null!=n&&null!=n?n:null}}(this.w1d_1)),this.u1d_1=ft(function(t){return function(){var n=t.e1d_1.getExtension("WEBGL_draw_buffers");return null!=n&&null!=n?n:null}}(this.w1d_1)),this.v1d_1=ft(function(t){return function(){var n=t.e1d_1.getExtension("WEBGL_depth_texture");return null!=n&&null!=n?n:null}}(this.w1d_1))}function jn(t,n,i,e,r,s,u,_,o,h){this.f1e_1=t,this.g1e_1=n,this.h1e_1=i,this.i1e_1=e,this.j1e_1=r,this.k1e_1=s,this.l1e_1=u,this.m1e_1=_,this.n1e_1=o,this.o1e_1=h}function mn(t,n,i,e,r,s){var u=0===s?"a":"i",_=0,o=WebGLRenderingContext.ARRAY_BUFFER;t.e1d_1.bindBuffer(o,(r instanceof Nn?r:L()).q1e_1);for(var h=r.r1e_1,a=h.go_1.f();a.g();){var l=a.h();if("_"!==l.jv_1){var f=n.c1f(u+"_"+l.jv_1);if(0===f&&(i._v=!0),-1!==f){var c=l.lv_1;if(e.v(c)){var v=0,$=l.mv_1;if(v<$)do{var w=v;v=v+1|0,t.e1d_1.enableVertexAttribArray(f+w|0);var g=dn(l.lv_1);if(g!==WebGLRenderingContext.FLOAT)throw S(C("integer attributes are not supported by WebGL"));t.e1d_1.vertexAttribPointer(f+w|0,l.lv_1.bv_1,g,!1,h.i(),l.kv_1+d(w,l.lv_1.cv_1)|0),t.e1d_1.vertexAttribDivisor(f,s),_=_+1|0}while(v<$)}else if(c.equals(jt())){var p=0,b=l.mv_1;if(p16)throw S(C("Maximum vertex attributes exceeded "+_+" (limit is 16)"))}function xn(){return new mt}function yn(t){var n;this.e1d_1=t,rt.so_1=this,this.f1d_1=new bn(this),this.g1d_1=new jn(!(null==this.f1d_1.x1d()),!(null==this.f1d_1.y1d()),!0,!0,!(null==this.f1d_1.z1d()),!(null==this.f1d_1.a1e()),!(null==this.f1d_1.b1e()),!(null==this.f1d_1.c1e()),!(null==this.f1d_1.d1e()),!(null==this.f1d_1.e1e())),this.h1d_1=new yt,this.i1d_1=!0,this.j1d_1=ft(xn),this.k1d_1=kt(),this.l1d_1=ft((n=this,function(){var t=n.e1d_1.getParameter(WebGLRenderingContext.MAX_TEXTURE_SIZE),i=null!=t&&"number"==typeof t?t:null;return new xt(4,4,null==i?4096:i)}))}function kn(){}function qn(t,n){this.g1f_1=t,this.h1f_1=n}function Cn(){return l||(l=!0,h=Ut()),h}function Sn(t,n){zn.call(this,t,null,0,0,1,Bt(),Dt.ct()),this.s1f_1=n,this.t1f_1=!0,this.u1f_1=!0,this.v1f_1=!0}function En(){}function zn(t,n,i,e,r,s,u){this.p1c_1=t,this.q1c_1=n,this.r1c_1=i,this.s1c_1=e,this.t1c_1=r,this.u1c_1=s,this.v1c_1=u,this.w1c_1=Vt(),this.x1c_1=null,this.y1c_1=!1}function Rn(){}function An(t,n,i,e){this.w1e_1=t,this.x1e_1=n,this.y1e_1=i,this.z1e_1=e,this.a1f_1=!1,this.b1f_1=gt([Qt(),Zt()])}function Ln(t,n){n=n===ut?"":n;var i=t.getError();if(i!==WebGLRenderingContext.NO_ERROR){var e=i===WebGLRenderingContext.INVALID_ENUM?"Invalid enum":i===WebGLRenderingContext.INVALID_VALUE?"Invalid value":i===WebGLRenderingContext.INVALID_OPERATION?"Invalid operation":i===WebGLRenderingContext.INVALID_FRAMEBUFFER_OPERATION?"Invalid framebuffer operation":i===WebGLRenderingContext.OUT_OF_MEMORY?"Out of memory":i===WebGLRenderingContext.CONTEXT_LOST_WEBGL?"Context lst webgl":"unknown error";throw S(C(e+": "+n))}}function In(t,n,i){this.y1f_1=t,this.z1f_1=n,this.a1g_1=i}function Tn(){}function Nn(t,n,i,e,r){tn.call(this),this.p1e_1=t,this.q1e_1=n,this.r1e_1=i,this.s1e_1=e,this.t1e_1=r,this.u1e_1=!1,this.v1e_1=null}function Mn(t){this.d1g_1=t,this.e1g_1=new Float32Array(d(this.d1g_1.zn(),this.d1g_1.yn().i()/4|0))}function On(){}function Bn(t,n){this.w1f_1=t,this.x1f_1=n}function Dn(t){var n=t.org||(t.org={}),i=n.openrndr||(n.openrndr={}),e=i.webgl||(i.webgl={});j(e,"applicationBaseWebGLInitializer",un)}return p(_n,"ApplicationBaseWebGL",_n,$),p(on),p(cn,"ApplicationWebGL",ut,nt,ut,[0]),p(vn,"BufferWriterWebGL",ut,_t),p(bn,"Extensions"),p(jn,"Capabilities"),p(yn,"DriverWebGL",ut,ut,[Lt]),Ot(kn),p(qn,"FragmentShaderWebGL"),p(zn,"RenderTargetWebGL",ut,ut,[Gt]),p(Sn,"ProgramRenderTargetWebGL",ut,zn,[Gt,zn]),Ot(En),Ot(Rn),p(An,"ShaderWebGL"),p(In,"ActiveUniform"),Ot(Tn),p(Nn,"VertexBufferWebGL",ut,tn),p(Mn,"VertexBufferShadowWebGL",ut,ut,[sn]),Ot(On),p(Bn,"VertexShaderWebGL"),g(_n).t17=function(t,n){return new cn(t,n)},g(cn).e14=function(t){var n,i=document.getElementById(this.f1c_1.g11_1),e=i instanceof HTMLCanvasElement?i:null;if(null==e){var r="failed to get canvas #"+this.f1c_1.g11_1;throw S(C(r))}n=e,this.i1c_1=n;var s,u={alpha:!0,depth:!0,stencil:!0,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0,preferLowPowerToHighPerformance:!1,failIfMajorPerformanceCaveat:!1},_=this.i1c_1,o=null==_?null:_.getContext("webgl2",u),h=o instanceof WebGL2RenderingContext?o:null;if(null==h)throw S(C("failed to create webgl2 context"));s=h,this.j1c_1=s;var a=rt,l=this.j1c_1;a.so_1=new yn(l instanceof WebGL2RenderingContext?l:L()),this.e1c_1.a14(new st(rt.to())),this.h1c_1=window.performance.now();var f=this.f1c_1.e12_1,c=window.devicePixelRatio,v=Math.min(f,c),d=this.i1c_1;if(null==d);else{var $,g=this.i1c_1,p=null==g?null:g.clientWidth;if(null==p)throw S(C("no width"));$=p,d.width=E(v*$)}var b,j=this.i1c_1;if(null==j);else{var m,x=this.i1c_1,y=null==x?null:x.clientHeight;if(null==y)throw S(C("no height"));m=y,j.height=E(v*m)}this.o1c(this.f1c_1.n11_1),window.addEventListener("resize",(b=this,function(t){var n=b.f1c_1.e12_1,i=window.devicePixelRatio,e=Math.min(n,i),r=b.i1c_1;if(null==r);else{var s,u=b.i1c_1,_=null==u?null:u.clientWidth;if(null==_)throw S(C("no width"));s=_,r.width=E(e*s)}var o=b.i1c_1;if(null==o);else{var h,a=b.i1c_1,l=null==a?null:a.clientHeight;if(null==l)throw S(C("no height"));h=l,o.height=E(e*h)}var f=b.i1c_1,c=null==f?null:f.clientWidth,v=null==c?null:c;if(null==v)throw S(C("no canvas"));var d=v,$=b.i1c_1,g=null==$?null:$.clientHeight,p=null==g?null:g;if(null==p)throw S(C("no canvas"));var j=p;return b.e1c_1.c14().e16().on(new A(z(),new R(0,0),new R(d,j),!0)),w})),window.addEventListener("keydown",function(t){return function(n){return n instanceof KeyboardEvent||L(),t.e1c_1.i12().q12().on(new T(I(),n.which,n.key,an(0,n))),w}}(this)),window.addEventListener("keyup",function(t){return function(n){return n instanceof KeyboardEvent||L(),t.e1c_1.i12().r12().on(new T(N(),n.which,n.key,an(0,n))),w}}(this));var k={_v:M().yk_1},q={_v:!1};window.addEventListener("mousedown",function(t,n,i){return function(e){e instanceof MouseEvent||L(),t._v=!0;var r=e.clientX,s=e.clientY;n._v=new R(r,s);var u=i.e1c_1.h12().j13(),_=n._v,o=M().yk_1,h=M().yk_1,a=O(),l=e.button;return u.on(new P(_,o,h,a,0===l?B():1===l?G():2===l?D():B(),V())),w}}(q,k,this)),window.addEventListener("mouseup",function(t,n,i){return function(e){e instanceof MouseEvent||L(),t._v=!1;var r=n.e1c_1.h12().k13(),s=i._v,u=M().yk_1,_=M().yk_1,o=F(),h=e.button;return r.on(new P(s,u,_,o,0===h?B():1===h?G():2===h?D():B(),V())),w}}(q,this,k)),window.addEventListener("wheel",function(t){return function(n){return n instanceof WheelEvent||L(),t.e1c_1.h12().n13().on(new P(t.l1c_1,new R(n.deltaX,n.deltaY),M().yk_1,W(),U(),V())),w}}(this)),window.addEventListener("pointermove",function(t){return function(n){n instanceof MouseEvent||L();var i=n.clientX,e=n.clientY;return t.l1c_1=new R(i,e),t.e1c_1.h12().m13().on(new P(t.l1c_1,M().yk_1,M().yk_1,H(),U(),V())),w}}(this)),window.addEventListener("mousemove",function(t,n,i){return function(e){if(t._v){e instanceof MouseEvent||L();var r=e.clientX,s=e.clientY;n.l1c_1=new R(r,s),n.e1c_1.h12().l13().on(new P(n.l1c_1,M().yk_1,n.l1c_1.el(i._v),H(),U(),V())),i._v=n.l1c_1}return w}}(q,this,k));var K=this.i1c_1;null==K||K.addEventListener("dragover",ln);var Y=this.i1c_1;null==Y||Y.addEventListener("drop",fn(this));var X,Q=this.j1c_1;if(null==Q)throw S(C("no context"));X=Q,this.k1c_1=new Sn(X,this.e1c_1);var Z=this.k1c_1;null==Z||Z.at();var J=this.c16();return this.e1c_1.x13(E(J.ih_1)),this.e1c_1.y13(E(J.jh_1)),this.e1c_1.e14(t)},g(cn).q17=function(){if(this.n1c_1.equals(et())||this.g1c_1){this.g1c_1=!1;var t=this.c16();this.e1c_1.x13(E(t.ih_1)),this.e1c_1.y13(E(t.jh_1)),this.e1c_1.b14().bs(),this.e1c_1.b14().ds();var n=this.k1c_1;null==n||n.z1c(),this.e1c_1.f14()}var i;window.requestAnimationFrame((i=this,function(t){return i.q17(),w}))},g(cn).o1c=function(t){window.document.title=t},g(cn).b16=function(){return window.document.title},g(cn).c16=function(){var t=this.i1c_1,n=null==t?null:t.clientWidth,i=null==n?null:n,e=null==i?0:i,r=this.i1c_1,s=null==r?null:r.clientHeight,u=null==s?null:s;return new R(e,null==u?0:u)},g(cn).g16=function(){return(window.performance.now()-this.h1c_1)/1e3},g(cn).d16=function(){var t=this.f1c_1.e12_1,n=window.devicePixelRatio;return Math.min(t,n)},g(vn).sv=function(t){this.a1d_1[this.c1d_1]=t.ui_1,this.c1d_1=this.c1d_1+1|0,this.a1d_1[this.c1d_1]=t.vi_1,this.c1d_1=this.c1d_1+1|0,this.a1d_1[this.c1d_1]=t.wi_1,this.c1d_1=this.c1d_1+1|0},g(vn).tv=function(t){this.a1d_1[this.c1d_1]=t.ih_1,this.c1d_1=this.c1d_1+1|0,this.a1d_1[this.c1d_1]=t.jh_1,this.c1d_1=this.c1d_1+1|0},g(vn).vv=function(t){this.a1d_1[this.c1d_1]=t,this.c1d_1=this.c1d_1+1|0},g(vn).d1d=function(t,n,i,e){this.a1d_1[this.c1d_1]=t,this.c1d_1=this.c1d_1+1|0,this.a1d_1[this.c1d_1]=n,this.c1d_1=this.c1d_1+1|0,this.a1d_1[this.c1d_1]=i,this.c1d_1=this.c1d_1+1|0,this.a1d_1[this.c1d_1]=e,this.c1d_1=this.c1d_1+1|0},g(vn).uv=function(t){this.d1d(t.pm_1,t.qm_1,t.rm_1,t.sm_1)},g(vn).rv=function(){this.c1d_1=0},g(bn).x1d=function(){var t=this.m1d_1;return Tt("instancedArrays",1,It,(function(t){return t.x1d()}),null),t.q()},g(bn).y1d=function(){var t=this.n1d_1;return Tt("standardDerivatives",1,It,(function(t){return t.y1d()}),null),t.q()},g(bn).z1d=function(){var t=this.q1d_1;return Tt("colorBufferHalfFloat",1,It,(function(t){return t.z1d()}),null),t.q()},g(bn).a1e=function(){var t=this.r1d_1;return Tt("colorBufferFloat",1,It,(function(t){return t.a1e()}),null),t.q()},g(bn).b1e=function(){var t=this.s1d_1;return Tt("halfFloatTexturesLinear",1,It,(function(t){return t.b1e()}),null),t.q()},g(bn).c1e=function(){var t=this.t1d_1;return Tt("floatTexturesLinear",1,It,(function(t){return t.c1e()}),null),t.q()},g(bn).d1e=function(){var t=this.u1d_1;return Tt("drawBuffers",1,It,(function(t){return t.d1e()}),null),t.q()},g(bn).e1e=function(){var t=this.v1d_1;return Tt("depthTexture",1,It,(function(t){return t.e1e()}),null),t.q()},g(jn).toString=function(){return"Capabilities(instancedArrays="+this.f1e_1+", standardDerivatives="+this.g1e_1+", halfFloatTextures="+this.h1e_1+", floatTextures="+this.i1e_1+", colorBufferHalfFloat="+this.j1e_1+", colorBufferFloat="+this.k1e_1+", halfFloatTexturesLinear="+this.l1e_1+", floatTexturesLinear="+this.m1e_1+", drawBuffers="+this.n1e_1+", depthTexture="+this.o1e_1+")"},g(jn).hashCode=function(){var t=ct(this.f1e_1);return t=d(t,31)+ct(this.g1e_1)|0,t=d(t,31)+ct(this.h1e_1)|0,t=d(t,31)+ct(this.i1e_1)|0,t=d(t,31)+ct(this.j1e_1)|0,t=d(t,31)+ct(this.k1e_1)|0,t=d(t,31)+ct(this.l1e_1)|0,t=d(t,31)+ct(this.m1e_1)|0,t=d(t,31)+ct(this.n1e_1)|0,d(t,31)+ct(this.o1e_1)|0},g(jn).equals=function(t){if(this===t)return!0;if(!(t instanceof jn))return!1;var n=t instanceof jn?t:L();return this.f1e_1===n.f1e_1&&this.g1e_1===n.g1e_1&&this.h1e_1===n.h1e_1&&this.i1e_1===n.i1e_1&&this.j1e_1===n.j1e_1&&this.k1e_1===n.k1e_1&&this.l1e_1===n.l1e_1&&this.m1e_1===n.m1e_1&&this.n1e_1===n.n1e_1&&this.o1e_1===n.o1e_1},g(yn).uo=function(){return Ct(qt(this.e1d_1))},g(yn).qu=function(t,n,i,e,r,s,u){if(null!=n||null!=i||null!=e)throw ot(C("only vertex and fragment shaders are supported in WebGL"));var _=v.d1f(this.e1d_1,t,s),h=o.d1f(this.e1d_1,r,s);return f.e1f(this.e1d_1,_,h,s,u)},g(yn).d10=function(t,n,i,e,r,s,u){if(null!=i)throw ot(C("Failed requirement."));if(null!=e)throw ot(C("Failed requirement."));if(null!=r)throw ot(C("Failed requirement."));return new St(t,n,i,e,r,s)},g(yn).fs=function(t){this.e1d_1.clearColor(t.pm_1,t.qm_1,t.rm_1,t.sm_1),this.e1d_1.clearDepth(1),this.e1d_1.disable(WebGLRenderingContext.SCISSOR_TEST),this.e1d_1.depthMask(!0),this.e1d_1.clear(WebGLRenderingContext.COLOR_BUFFER_BIT|WebGLRenderingContext.DEPTH_BUFFER_BIT|WebGLRenderingContext.STENCIL_BUFFER_BIT),this.e1d_1.depthMask(!1)},g(yn).b10=function(t,n,i){return c.f1f(this.e1d_1,t,n,i)},g(yn).xw=function(t,n,i,e,r,s,u,_,o){if(t instanceof An||L(),function(t,n,i,e){for(var r=gt([vt(),dt(),$t(),wt()]),s={_v:!1},u=n.f();u.g();)mn(t,e,s,r,u.h(),0);for(var _=i.f();_.g();)mn(t,e,s,r,_.h(),1);s._v||K("attribute 0 is not used")}(this,n,i,t),0!==u)throw ot(C("instance offsets are not supported"));this.e1d_1.drawArraysInstanced(function(t){var n;switch(t.b1_1){case 0:n=WebGLRenderingContext.TRIANGLES;break;case 2:n=WebGLRenderingContext.TRIANGLE_FAN;break;case 1:n=WebGLRenderingContext.TRIANGLE_STRIP;break;case 4:n=WebGLRenderingContext.LINES;break;case 5:n=WebGLRenderingContext.LINE_STRIP;break;case 6:n=WebGLRenderingContext.LINE_LOOP;break;case 3:n=WebGLRenderingContext.POINTS;break;case 7:throw S(C("not supported"));default:ht()}return n}(e),r,s,_)},g(yn).yv=function(t){if(this.i1d_1||!Rt(this.h1d_1.kp_1,t.kp_1)){if(null!=t.kp_1){var n=t.kp_1;if(null==n);else{var i=zt.vn();this.e1d_1.scissor(E(n.fn()*i.as()),E(i.xr()*i.as()-n.gn()*i.as()-n.dn_1*i.as()),E(n.cn_1*i.as()),E(n.dn_1*i.as())),this.e1d_1.enable(WebGLRenderingContext.SCISSOR_TEST)}}else this.e1d_1.disable(WebGLRenderingContext.SCISSOR_TEST);this.h1d_1.kp_1=t.kp_1}if(!this.i1d_1&&this.h1d_1.xp_1.equals(t.xp_1)||(this.e1d_1.colorMask(t.xp_1.qq_1,t.xp_1.rq_1,t.xp_1.sq_1,t.xp_1.tq_1),this.h1d_1.xp_1=t.xp_1),this.i1d_1||this.h1d_1.up_1!==t.up_1){switch(t.up_1){case!0:this.e1d_1.depthMask(!0);break;case!1:this.e1d_1.depthMask(!1);break;default:ht()}this.e1d_1.enable(WebGLRenderingContext.DEPTH_TEST),this.h1d_1.up_1=t.up_1}if(t.eq_1===t.fq_1?t.dq_1.ar_1===At()?this.e1d_1.disable(WebGLRenderingContext.STENCIL_TEST):(this.e1d_1.enable(WebGLRenderingContext.STENCIL_TEST),this.e1d_1.stencilFunc($n(t.dq_1.ar_1),t.dq_1.yq_1,t.dq_1.xq_1),this.e1d_1.stencilOp(wn(t.dq_1.uq_1),wn(t.dq_1.vq_1),wn(t.dq_1.wq_1)),this.e1d_1.stencilMask(t.dq_1.zq_1)):(this.e1d_1.enable(WebGLRenderingContext.STENCIL_TEST),this.e1d_1.stencilFuncSeparate(WebGLRenderingContext.FRONT,$n(t.eq_1.ar_1),t.eq_1.yq_1,t.eq_1.xq_1),this.e1d_1.stencilFuncSeparate(WebGLRenderingContext.BACK,$n(t.fq_1.ar_1),t.fq_1.yq_1,t.fq_1.xq_1),this.e1d_1.stencilOpSeparate(WebGLRenderingContext.FRONT,wn(t.eq_1.uq_1),wn(t.eq_1.vq_1),wn(t.eq_1.wq_1)),this.e1d_1.stencilOpSeparate(WebGLRenderingContext.BACK,wn(t.fq_1.uq_1),wn(t.fq_1.vq_1),wn(t.fq_1.wq_1)),this.e1d_1.stencilMaskSeparate(WebGLRenderingContext.FRONT,t.eq_1.zq_1),this.e1d_1.stencilMaskSeparate(WebGLRenderingContext.BACK,t.fq_1.zq_1)),this.i1d_1||!this.h1d_1.vp_1.equals(t.vp_1)){switch(t.vp_1.b1_1){case 0:this.e1d_1.enable(WebGLRenderingContext.BLEND),this.e1d_1.blendEquation(WebGLRenderingContext.FUNC_ADD),this.e1d_1.blendFunc(WebGLRenderingContext.ONE,WebGLRenderingContext.ONE_MINUS_SRC_ALPHA);break;case 1:this.e1d_1.enable(WebGLRenderingContext.BLEND),this.e1d_1.blendEquation(WebGLRenderingContext.FUNC_ADD),this.e1d_1.blendFunc(WebGLRenderingContext.SRC_ALPHA,WebGLRenderingContext.ONE_MINUS_SRC_ALPHA);break;case 2:this.e1d_1.enable(WebGLRenderingContext.BLEND),this.e1d_1.blendEquation(WebGLRenderingContext.FUNC_ADD),this.e1d_1.blendFunc(WebGLRenderingContext.ONE,WebGLRenderingContext.ONE);break;case 5:this.e1d_1.disable(WebGLRenderingContext.BLEND);break;case 3:this.e1d_1.enable(WebGLRenderingContext.BLEND),this.e1d_1.blendEquationSeparate(WebGLRenderingContext.FUNC_REVERSE_SUBTRACT,WebGLRenderingContext.FUNC_ADD),this.e1d_1.blendFuncSeparate(WebGLRenderingContext.SRC_ALPHA,WebGLRenderingContext.ONE,WebGLRenderingContext.ONE,WebGLRenderingContext.ONE);break;case 4:this.e1d_1.enable(WebGLRenderingContext.BLEND),this.e1d_1.blendEquation(WebGLRenderingContext.FUNC_ADD),this.e1d_1.blendFunc(WebGLRenderingContext.DST_COLOR,WebGLRenderingContext.ONE_MINUS_SRC_ALPHA);break;case 6:this.e1d_1.enable(WebGLRenderingContext.BLEND),this.e1d_1.blendEquation(WebGLRenderingContext.FUNC_ADD),this.e1d_1.blendFunc(WebGLRenderingContext.ZERO,WebGLRenderingContext.ONE_MINUS_SRC_ALPHA);break;case 7:this.e1d_1.enable(WebGLRenderingContext.BLEND),this.e1d_1.blendEquation(WebGL2RenderingContext.MIN),this.e1d_1.blendFunc(WebGLRenderingContext.ONE,WebGLRenderingContext.ONE);break;case 8:this.e1d_1.enable(WebGLRenderingContext.BLEND),this.e1d_1.blendEquation(WebGL2RenderingContext.MAX),this.e1d_1.blendFunc(WebGLRenderingContext.ONE,WebGLRenderingContext.ONE);break;default:var e="blendmode "+t.vp_1.toString()+" is not supported";throw S(C(e))}this.h1d_1.vp_1=t.vp_1}if((this.i1d_1||this.h1d_1.yp_1!==t.yp_1)&&(t.yp_1?(this.e1d_1.enable(WebGLRenderingContext.SAMPLE_ALPHA_TO_COVERAGE),this.e1d_1.disable(WebGLRenderingContext.BLEND)):this.e1d_1.disable(WebGLRenderingContext.SAMPLE_ALPHA_TO_COVERAGE),this.h1d_1.yp_1=t.yp_1),this.i1d_1||!this.h1d_1.tp_1.equals(t.tp_1)){switch(t.tp_1.b1_1){case 0:this.e1d_1.depthFunc(WebGLRenderingContext.ALWAYS);break;case 4:this.e1d_1.depthFunc(WebGLRenderingContext.GREATER);break;case 5:this.e1d_1.depthFunc(WebGLRenderingContext.GEQUAL);break;case 1:this.e1d_1.depthFunc(WebGLRenderingContext.LESS);break;case 2:this.e1d_1.depthFunc(WebGLRenderingContext.LEQUAL);break;case 3:this.e1d_1.depthFunc(WebGLRenderingContext.EQUAL);break;case 6:this.e1d_1.depthFunc(WebGLRenderingContext.NEVER);break;default:ht()}this.h1d_1.tp_1=t.tp_1}if(this.i1d_1||!this.h1d_1.wp_1.equals(t.wp_1)){switch(t.wp_1.b1_1){case 0:this.e1d_1.disable(WebGLRenderingContext.CULL_FACE);break;case 1:this.e1d_1.enable(WebGLRenderingContext.CULL_FACE),this.e1d_1.cullFace(WebGLRenderingContext.BACK);break;case 2:this.e1d_1.enable(WebGLRenderingContext.CULL_FACE),this.e1d_1.cullFace(WebGLRenderingContext.FRONT);break;case 3:this.e1d_1.enable(WebGLRenderingContext.CULL_FACE),this.e1d_1.cullFace(WebGLRenderingContext.FRONT_AND_BACK);break;default:ht()}this.h1d_1.wp_1=t.wp_1}},g(yn).pv=function(){var t=this.j1d_1;return Tt("shaderGenerators",1,It,(function(t){return t.pv()}),null),t.q()},g(yn).xs=function(){return a.xs()},g(yn).e10=function(t){return"#version 300 es\nprecision highp float;\n#define OR_WEBGL2\n#define OR_IN_OUT"},g(kn).d1f=function(t,n,i){var e=t.createShader(WebGLRenderingContext.FRAGMENT_SHADER);if(null==e)throw S(C("failed to create shader"));var r=e;t.shaderSource(r,n),t.compileShader(r);var s=t.getShaderParameter(r,WebGLRenderingContext.COMPILE_STATUS);if(!(null!=s&&"boolean"==typeof s?s:L())){for(var u=t.getShaderInfoLog(r),_=Nt(null==u?"":u,["\n"]).f();_.g();){var o=_.h();console.error(o)}console.error("---");for(var h=0,a=Nt(n,["\n"]).f();a.g();){var l=a.h(),f=h;h=f+1|0;var c=Mt(f);console.log(c+"\t"+l)}throw ot(C("fragment shader compilation failed"))}return new qn(r,i)},g(Sn).wr=function(){return E(this.s1f_1.c14().i().ih_1)},g(Sn).xr=function(){return E(this.s1f_1.c14().i().jh_1)},g(Sn).as=function(){return this.s1f_1.c14().as()},g(En).xs=function(){return Cn().p9()},g(zn).wr=function(){return this.r1c_1},g(zn).xr=function(){return this.s1c_1},g(zn).as=function(){return this.t1c_1},g(zn).z1c=function(){Ln(this.p1c_1,"preexisting errors"),this.p1c_1.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,this.q1c_1),Ln(this.p1c_1,"bindFrameBuffer "+C(this)),this.p1c_1.viewport(0,0,this.ys(),this.zs()),Ln(this.p1c_1,"viewport")},g(zn).at=function(){if(Ln(this.p1c_1,"preexisting errors"),this.y1c_1)throw at("already bound");Pt(Cn(),this),this.z1c()},g(Rn).e1f=function(t,n,i,e,r){var s=t.createProgram();if(null==s)throw S(C("failed to create program"));var u=s;t.attachShader(u,n.w1f_1),t.attachShader(u,i.g1f_1),t.linkProgram(u);var _=t.getProgramParameter(u,WebGLRenderingContext.ACTIVE_UNIFORMS),o=null!=_&&"number"==typeof _?_:L(),h=Ht(0,o),a=Vt(),l=h.ib_1,f=h.jb_1;if(l<=f)do{var c=l;l=l+1|0;var v=c,d=t.getActiveUniform(u,v),$=null!=d?new In(d.name,d.size,d.type):null;null==$||a.d($)}while(c!==f);for(var w=a,g=Yt(Kt(Z(w,10)),16),p=Xt(g),b=w.f();b.g();){var j=b.h(),m=j.y1f_1;p.h3(m,j)}return new An(t,u,p,r)},g(An).c1f=function(t){return this.w1e_1.getAttribLocation(this.x1e_1,t)},g(An).xv=function(){this.w1e_1.useProgram(this.x1e_1)},g(An).yw=function(){this.w1e_1.useProgram(null)},g(An).b1g=function(t){return this.w1e_1.getUniformLocation(this.x1e_1,t)},g(An).cp=function(t){return!(null==this.b1g(t))},g(An).vo=function(t){throw S(C("uniform blocks are not supported by WebGL"))},g(An).bp=function(t,n){throw S(C("uniform blocks are not supported by WebGL"))},g(An).t1b=function(t,n){var i,e=this.b1g(t);null!=e&&(this.w1e_1.uniformMatrix3fv(e,!1,(i=n,pn(new Float32Array([i.ki_1,i.ni_1,i.qi_1,i.li_1,i.oi_1,i.ri_1,i.mi_1,i.pi_1,i.si_1])))),Ln(this.w1e_1,t+" "+n.toString()))},g(An).wo=function(t,n){Ln(this.w1e_1,"older error persists");var i=this.b1g(t);null!=i&&(this.w1e_1.uniformMatrix4fv(i,!1,gn(n)),Ln(this.w1e_1,t+" "+n.toString()))},g(An).hq=function(t,n){var i,e=this.b1g(t);null!=e&&(this.w1e_1.uniform4fv(e,(i=n,pn(new Float32Array([i.pm_1,i.qm_1,i.rm_1,i.sm_1])))),Ln(this.w1e_1,t+" "+n.toString()))},g(An).g1b=function(t,n){var i,e=this.b1g(t);null!=e&&(this.w1e_1.uniform4fv(e,(i=n,pn(new Float32Array([i.vl_1,i.wl_1,i.xl_1,i.yl_1])))),Ln(this.w1e_1,t+" "+n.toString()))},g(An).s1b=function(t,n){var i,e=this.b1g(t);null!=e&&(this.w1e_1.uniform3fv(e,(i=n,pn(new Float32Array([i.ui_1,i.vi_1,i.wi_1])))),Ln(this.w1e_1,t+" "+n.toString()))},g(An).xo=function(t,n){var i,e=this.b1g(t);null!=e&&this.w1e_1.uniform2fv(e,(i=n,pn(new Float32Array([i.ih_1,i.jh_1]))))},g(An).p1b=function(t,n){var i=this.b1g(t);null!=i&&this.w1e_1.uniform4i(i,n.ei_1,n.fi_1,n.gi_1,n.hi_1)},g(An).q1b=function(t,n){var i=this.b1g(t);null!=i&&this.w1e_1.uniform3i(i,n.vh_1,n.wh_1,n.xh_1)},g(An).r1b=function(t,n){var i=this.b1g(t);null!=i&&this.w1e_1.uniform2i(i,n.oh_1,n.ph_1)},g(An).yo=function(t,n){var i=this.b1g(t);null!=i&&this.w1e_1.uniform1f(i,n)},g(An).dp=function(t,n){var i=this.b1g(t),e=this.y1e_1.y(t);if(null!=i&&null==e)throw ot(C("no active uniform for "+t));if(null!=i&&null!=e){var r=e.a1g_1;if(r===WebGLRenderingContext.INT)this.w1e_1.uniform1i(i,E(n));else{if(r!==WebGLRenderingContext.FLOAT){var s="unsupported type "+e.a1g_1;throw S(C(s))}this.w1e_1.uniform1f(i,n)}Ln(this.w1e_1,t+" "+n+" (float)")}},g(An).o1b=function(t,n){var i=this.b1g(t);null!=i&&(this.w1e_1.uniform1i(i,n),Ln(this.w1e_1,t+" "+n+" (int)"))},g(An).u1b=function(t,n){var i=this.b1g(t);null!=i&&(this.w1e_1.uniform1i(i,n?1:0),Ln(this.w1e_1,t+" "+n))},g(An).m1b=function(t,n){var i=new Float32Array(d(d(n.length,4),4)),e=0,r=0,s=n.length-1|0;if(r<=s)do{var u=r;r=r+1|0;var _=gn(n[u]),o=0;if(o<16)do{var h=o;o=o+1|0,i[e]=_[h],e=e+1|0}while(o<16)}while(r<=s);var a=this.b1g(t);null!=a&&(this.w1e_1.uniformMatrix4fv(a,!1,i),Ln(this.w1e_1,t+" "+C(n)))},g(An).w1a=function(t,n){throw new pt("An operation is not implemented: Not yet implemented")},g(An).v1a=function(t,n){throw new pt("An operation is not implemented: Not yet implemented")},g(An).h1b=function(t,n){var i=new Float32Array(d(n.length,4)),e=0,r=n.length-1|0;if(e<=r)do{var s=e;e=e+1|0,i[d(s,4)]=n[s].vl_1,i[d(s,4)+1|0]=n[s].wl_1,i[d(s,4)+2|0]=n[s].xl_1,i[d(s,4)+3|0]=n[s].yl_1}while(e<=r);var u=this.b1g(t);null!=u&&(this.w1e_1.uniform4fv(u,i),Ln(this.w1e_1,t+" "+C(n)))},g(An).j1b=function(t,n){var i=new Float32Array(d(n.length,3)),e=0,r=n.length-1|0;if(e<=r)do{var s=e;e=e+1|0,i[d(s,3)]=n[s].ui_1,i[d(s,3)+1|0]=n[s].vi_1,i[d(s,3)+2|0]=n[s].wi_1}while(e<=r);var u=this.b1g(t);null!=u&&(this.w1e_1.uniform3fv(u,i),Ln(this.w1e_1,t+" "+C(n)))},g(An).i1b=function(t,n){var i=new Float32Array(d(n.length,2)),e=0,r=n.length-1|0;if(e<=r)do{var s=e;e=e+1|0,i[d(s,3)]=n[s].ih_1,i[d(s,3)+1|0]=n[s].jh_1}while(e<=r);var u=this.b1g(t);null!=u&&(this.w1e_1.uniform3fv(u,i),Ln(this.w1e_1,t+" "+C(n)))},g(An).k1b=function(t,n){throw new pt("An operation is not implemented: Not yet implemented")},g(An).l1b=function(t,n){var i=new Float32Array(n.length),e=0,r=n.length-1|0;if(e<=r)do{var s=e;e=e+1|0,i[s]=n[s]}while(e<=r);var u=this.b1g(t);null!=u&&(this.w1e_1.uniform1fv(u,i),Ln(this.w1e_1,t+" "+C(n)))},g(An).jq=function(t,n){var i=new Float32Array(n.length),e=0,r=n.length-1|0;if(e<=r)do{var s=e;e=e+1|0,i[s]=n[s]}while(e<=r);var u=this.b1g(t);null!=u&&(this.w1e_1.uniform1fv(u,i),Ln(this.w1e_1,t+" "+C(n)))},g(An).n1b=function(t,n){throw new pt("An operation is not implemented: Not yet implemented")},g(An).c1b=function(t,n,i){throw S(C("image bindings are not supported by WebGL"))},g(An).b1b=function(t,n,i){throw S(C("image bindings are not supported by WebGL"))},g(In).toString=function(){return"ActiveUniform(name="+this.y1f_1+", size="+this.z1f_1+", type="+this.a1g_1+")"},g(In).hashCode=function(){var t=Jt(this.y1f_1);return t=d(t,31)+this.z1f_1|0,d(t,31)+this.a1g_1|0},g(In).equals=function(t){if(this===t)return!0;if(!(t instanceof In))return!1;var n=t instanceof In?t:L();return this.y1f_1===n.y1f_1&&this.z1f_1===n.z1f_1&&this.a1g_1===n.a1g_1},g(Tn).f1f=function(t,n,i,e){var r=t.createBuffer();if(null==r)throw S(C("failed to create buffer"));var s=r;t.bindBuffer(WebGLRenderingContext.ARRAY_BUFFER,s);var u=d(n.i(),i);return t.bufferData(WebGLRenderingContext.ARRAY_BUFFER,u,WebGLRenderingContext.DYNAMIC_DRAW),new Nn(t,s,n,i,e)},g(Nn).yn=function(){return this.r1e_1},g(Nn).zn=function(){return this.s1e_1},g(Nn).qv=function(){return null==this.v1e_1&&(this.v1e_1=new Mn(this)),nn(this.v1e_1)},g(Nn).c10=function(t,n,i){this.at();var e=n/4|0;this.p1e_1.bufferSubData(WebGLRenderingContext.ARRAY_BUFFER,n,t.subarray(e,e+i|0)),this.c1g()},g(Nn).at=function(){this.p1e_1.bindBuffer(WebGLRenderingContext.ARRAY_BUFFER,this.q1e_1)},g(Nn).c1g=function(){var t=WebGLRenderingContext.ARRAY_BUFFER;this.p1e_1.bindBuffer(t,null)},g(Mn).uu=function(){return this.d1g_1},g(Mn).vu=function(t,n){this.d1g_1.c10(this.e1g_1,t,n/4|0)},g(Mn).yu=function(){return new vn(this.e1g_1,this.d1g_1.yn().i())},g(On).d1f=function(t,n,i){var e=t.createShader(WebGLRenderingContext.VERTEX_SHADER);if(null==e)throw S(C("failed to create shader"));var r=e;t.shaderSource(r,n),t.compileShader(r);var s=t.getShaderParameter(r,WebGLRenderingContext.COMPILE_STATUS);if(!(null!=s&&"boolean"==typeof s?s:L())){for(var u=t.getShaderInfoLog(r),_=Nt(null==u?"":u,["\n"]).f();_.g();){var o=_.h();console.error(o)}console.error("---");for(var h=0,a=Nt(n,["\n"]).f();a.g();){var l=a.h(),f=h;h=f+1|0;var c=Mt(f);console.log(c+"\t"+l)}throw ot(C("fragment shader compilation failed"))}return new Bn(r,i)},g(yn).wt=Et,g(zn).ys=Ft,g(zn).zs=Wt,g(Mn).wu=en,g(Mn).xu=rn,_=new on,o=new kn,a=new En,f=new Rn,c=new Tn,v=new On,Dn(t),t.$jsExportAll$=Dn,t})?e.apply(n,r):e)||(t.exports=s)},560:(t,n,i)=>{var e,r,s;r=[n,i(36)],void 0===(s="function"==typeof(e=function(t,n){"use strict";var i,e,r,s,u,_,o,h,a,l,f,c,v=Math.imul,d=n.$_$.g3,$=n.$_$.v2,w=n.$_$.p2,g=n.$_$.f4,p=n.$_$.u2,b=n.$_$.w2,j=n.$_$.c,m=n.$_$.q2,x=n.$_$.n2,y=n.$_$.y3,k=n.$_$.f3;function q(){var t=this.a();return 0===t?this.fh():this.hh(t)}function C(){i=this,this.hg_1=new S(!1,!1),this.ig_1=new S(!0,!0),this.jg_1=new S(!0,!1),this.kg_1=new S(!1,!0)}function S(t,n){null==i&&new C,this.lg_1=t,this.mg_1=n}function E(){e=this,this.ng_1=new z(!1,!1,!1),this.og_1=new z(!0,!0,!0),this.pg_1=new z(!0,!1,!1),this.qg_1=new z(!1,!0,!1),this.rg_1=new z(!1,!1,!0)}function z(t,n,i){null==e&&new E,this.sg_1=t,this.tg_1=n,this.ug_1=i}function R(){r=this,this.vg_1=new A(!1,!1,!1,!1),this.wg_1=new A(!0,!0,!0,!0),this.xg_1=new A(!0,!1,!1,!1),this.yg_1=new A(!1,!0,!1,!1),this.zg_1=new A(!1,!1,!0,!1),this.ah_1=new A(!1,!1,!1,!0)}function A(t,n,i,e){null==r&&new R,this.bh_1=t,this.ch_1=n,this.dh_1=i,this.eh_1=e}function L(){}function I(t,n,i){return function(t,n,i){var e=Math.min(i,t);return Math.max(n,e)}(t,n,i)}function T(){s=this,this.kh_1=new N(0,0),this.lh_1=new N(1,1),this.mh_1=new N(1,0),this.nh_1=new N(0,1)}function N(t,n){null==s&&new T,this.oh_1=t,this.ph_1=n}function M(){u=this,this.qh_1=new O(0,0,0),this.rh_1=new O(1,1,1),this.sh_1=new O(1,0,0),this.th_1=new O(0,1,0),this.uh_1=new O(0,0,1)}function O(t,n,i){null==u&&new M,this.vh_1=t,this.wh_1=n,this.xh_1=i}function B(){_=this,this.yh_1=new D(0,0,0,0),this.zh_1=new D(1,1,1,1),this.ai_1=new D(1,0,0,0),this.bi_1=new D(0,1,0,0),this.ci_1=new D(0,0,1,0),this.di_1=new D(0,0,0,1)}function D(t,n,i,e){null==_&&new B,this.ei_1=t,this.fi_1=n,this.gi_1=i,this.hi_1=e}function G(){o=this,this.ii_1=new V(1,j,j,j,1,j,j,j,1),this.ji_1=new V}function V(t,n,i,e,r,s,u,_,h){null==o&&new G,t=t===j?0:t,n=n===j?0:n,i=i===j?0:i,e=e===j?0:e,r=r===j?0:r,s=s===j?0:s,u=u===j?0:u,_=_===j?0:_,h=h===j?0:h,this.ki_1=t,this.li_1=n,this.mi_1=i,this.ni_1=e,this.oi_1=r,this.pi_1=s,this.qi_1=u,this.ri_1=_,this.si_1=h}function P(){h=this,this.xi_1=new W(1,j,j,j,j,1,j,j,j,j,1,j,j,j,j,1),this.yi_1=new W}function F(){return null==h&&new P,h}function W(t,n,i,e,r,s,u,_,o,h,a,l,f,c,v,d){F(),t=t===j?0:t,n=n===j?0:n,i=i===j?0:i,e=e===j?0:e,r=r===j?0:r,s=s===j?0:s,u=u===j?0:u,_=_===j?0:_,o=o===j?0:o,h=h===j?0:h,a=a===j?0:a,l=l===j?0:l,f=f===j?0:f,c=c===j?0:c,v=v===j?0:v,d=d===j?0:d,this.zi_1=t,this.aj_1=n,this.bj_1=i,this.cj_1=e,this.dj_1=r,this.ej_1=s,this.fj_1=u,this.gj_1=_,this.hj_1=o,this.ij_1=h,this.jj_1=a,this.kj_1=l,this.lj_1=f,this.mj_1=c,this.nj_1=v,this.oj_1=d}function U(){a=this,this.wj_1=new K(1,j,j,j,j,j,1,j,j,j,j,j,1,j,j,j,j,j,1,j,j,j,j,j,1),this.xj_1=new K}function H(){return null==a&&new U,a}function K(t,n,i,e,r,s,u,_,o,h,a,l,f,c,v,d,$,w,g,p,b,m,x,y,k){H(),t=t===j?0:t,n=n===j?0:n,i=i===j?0:i,e=e===j?0:e,r=r===j?0:r,s=s===j?0:s,u=u===j?0:u,_=_===j?0:_,o=o===j?0:o,h=h===j?0:h,a=a===j?0:a,l=l===j?0:l,f=f===j?0:f,c=c===j?0:c,v=v===j?0:v,d=d===j?0:d,$=$===j?0:$,w=w===j?0:w,g=g===j?0:g,p=p===j?0:p,b=b===j?0:b,m=m===j?0:m,x=x===j?0:x,y=y===j?0:y,k=k===j?0:k,this.yj_1=t,this.zj_1=n,this.ak_1=i,this.bk_1=e,this.ck_1=r,this.dk_1=s,this.ek_1=u,this.fk_1=_,this.gk_1=o,this.hk_1=h,this.ik_1=a,this.jk_1=l,this.kk_1=f,this.lk_1=c,this.mk_1=v,this.nk_1=d,this.ok_1=$,this.pk_1=w,this.qk_1=g,this.rk_1=p,this.sk_1=b,this.tk_1=m,this.uk_1=x,this.vk_1=y,this.wk_1=k}function Y(){l=this,this.yk_1=new Q(0,0),this.zk_1=new Q(1,1),this.al_1=new Q(1,0),this.bl_1=new Q(0,1),this.cl_1=new Q(1/0,1/0)}function X(){return null==l&&new Y,l}function Q(t,n){X(),this.ih_1=t,this.jh_1=n}function Z(){f=this,this.hl_1=new tt(0,0,0),this.il_1=new tt(1,1,1),this.jl_1=this.il_1.gh(),this.kl_1=new tt(1,0,0),this.ll_1=new tt(0,1,0),this.ml_1=new tt(0,0,1),this.nl_1=new tt(1/0,1/0,1/0)}function J(){return null==f&&new Z,f}function tt(t,n,i){J(),this.ui_1=t,this.vi_1=n,this.wi_1=i}function nt(){c=this,this.ol_1=new et(1,0,0,0),this.pl_1=new et(0,1,0,0),this.ql_1=new et(0,0,1,0),this.rl_1=new et(0,0,0,1),this.sl_1=new et(0,0,0,0),this.tl_1=new et(1,1,1,1),this.ul_1=new et(1/0,1/0,1/0,1/0)}function it(){return null==c&&new nt,c}function et(t,n,i,e){it(),this.vl_1=t,this.wl_1=n,this.xl_1=i,this.yl_1=e}function rt(){}return $(C),p(S,"BooleanVector2"),$(E),p(z,"BooleanVector3"),$(R),p(A,"BooleanVector4"),b(L,"EuclideanVector"),$(T),p(N,"IntVector2"),$(M),p(O,"IntVector3"),$(B),p(D,"IntVector4"),$(G),p(V,"Matrix33",V),$(P),p(W,"Matrix44",W),$(U),p(K,"Matrix55",K),$(Y),p(Q,"Vector2",j,j,[L]),$(Z),p(tt,"Vector3",j,j,[L]),$(nt),p(et,"Vector4",j,j,[L]),b(rt,"CastableToVector4"),d(S).toString=function(){return"BooleanVector2(x="+this.lg_1+", y="+this.mg_1+")"},d(S).hashCode=function(){var t=w(this.lg_1);return v(t,31)+w(this.mg_1)|0},d(S).equals=function(t){if(this===t)return!0;if(!(t instanceof S))return!1;var n=t instanceof S?t:g();return this.lg_1===n.lg_1&&this.mg_1===n.mg_1},d(z).toString=function(){return"BooleanVector3(x="+this.sg_1+", y="+this.tg_1+", z="+this.ug_1+")"},d(z).hashCode=function(){var t=w(this.sg_1);return t=v(t,31)+w(this.tg_1)|0,v(t,31)+w(this.ug_1)|0},d(z).equals=function(t){if(this===t)return!0;if(!(t instanceof z))return!1;var n=t instanceof z?t:g();return this.sg_1===n.sg_1&&this.tg_1===n.tg_1&&this.ug_1===n.ug_1},d(A).toString=function(){return"BooleanVector4(x="+this.bh_1+", y="+this.ch_1+", z="+this.dh_1+", w="+this.eh_1+")"},d(A).hashCode=function(){var t=w(this.bh_1);return t=v(t,31)+w(this.ch_1)|0,t=v(t,31)+w(this.dh_1)|0,v(t,31)+w(this.eh_1)|0},d(A).equals=function(t){if(this===t)return!0;if(!(t instanceof A))return!1;var n=t instanceof A?t:g();return this.bh_1===n.bh_1&&this.ch_1===n.ch_1&&this.dh_1===n.dh_1&&this.eh_1===n.eh_1},d(N).toString=function(){return"IntVector2(x="+this.oh_1+", y="+this.ph_1+")"},d(N).hashCode=function(){var t=this.oh_1;return v(t,31)+this.ph_1|0},d(N).equals=function(t){if(this===t)return!0;if(!(t instanceof N))return!1;var n=t instanceof N?t:g();return this.oh_1===n.oh_1&&this.ph_1===n.ph_1},d(O).toString=function(){return"IntVector3(x="+this.vh_1+", y="+this.wh_1+", z="+this.xh_1+")"},d(O).hashCode=function(){var t=this.vh_1;return t=v(t,31)+this.wh_1|0,v(t,31)+this.xh_1|0},d(O).equals=function(t){if(this===t)return!0;if(!(t instanceof O))return!1;var n=t instanceof O?t:g();return this.vh_1===n.vh_1&&this.wh_1===n.wh_1&&this.xh_1===n.xh_1},d(D).toString=function(){return"IntVector4(x="+this.ei_1+", y="+this.fi_1+", z="+this.gi_1+", w="+this.hi_1+")"},d(D).hashCode=function(){var t=this.ei_1;return t=v(t,31)+this.fi_1|0,t=v(t,31)+this.gi_1|0,v(t,31)+this.hi_1|0},d(D).equals=function(t){if(this===t)return!0;if(!(t instanceof D))return!1;var n=t instanceof D?t:g();return this.ei_1===n.ei_1&&this.fi_1===n.fi_1&&this.gi_1===n.gi_1&&this.hi_1===n.hi_1},d(V).ti=function(t){return new tt(t.ui_1*this.ki_1+t.vi_1*this.li_1+t.wi_1*this.mi_1,t.ui_1*this.ni_1+t.vi_1*this.oi_1+t.wi_1*this.pi_1,t.ui_1*this.qi_1+t.vi_1*this.ri_1+t.wi_1*this.si_1)},d(V).toString=function(){return this.ki_1+", "+this.li_1+", "+this.mi_1+",\n"+this.ni_1+", "+this.oi_1+", "+this.pi_1+",\n"+this.qi_1+", "+this.ri_1+", "+this.si_1},d(V).hashCode=function(){var t=m(this.ki_1);return t=v(t,31)+m(this.li_1)|0,t=v(t,31)+m(this.mi_1)|0,t=v(t,31)+m(this.ni_1)|0,t=v(t,31)+m(this.oi_1)|0,t=v(t,31)+m(this.pi_1)|0,t=v(t,31)+m(this.qi_1)|0,t=v(t,31)+m(this.ri_1)|0,v(t,31)+m(this.si_1)|0},d(V).equals=function(t){if(this===t)return!0;if(!(t instanceof V))return!1;var n=t instanceof V?t:g();return!!(x(this.ki_1,n.ki_1)&&x(this.li_1,n.li_1)&&x(this.mi_1,n.mi_1)&&x(this.ni_1,n.ni_1)&&x(this.oi_1,n.oi_1)&&x(this.pi_1,n.pi_1)&&x(this.qi_1,n.qi_1)&&x(this.ri_1,n.ri_1)&&x(this.si_1,n.si_1))},d(W).pj=function(){if(this===F().xi_1)return this;var t=this.ij_1*this.nj_1*this.gj_1-this.mj_1*this.jj_1*this.gj_1+this.mj_1*this.fj_1*this.kj_1-this.ej_1*this.nj_1*this.kj_1-this.ij_1*this.fj_1*this.oj_1+this.ej_1*this.jj_1*this.oj_1,n=this.lj_1*this.jj_1*this.gj_1-this.hj_1*this.nj_1*this.gj_1-this.lj_1*this.fj_1*this.kj_1+this.dj_1*this.nj_1*this.kj_1+this.hj_1*this.fj_1*this.oj_1-this.dj_1*this.jj_1*this.oj_1,i=this.hj_1*this.mj_1*this.gj_1-this.lj_1*this.ij_1*this.gj_1+this.lj_1*this.ej_1*this.kj_1-this.dj_1*this.mj_1*this.kj_1-this.hj_1*this.ej_1*this.oj_1+this.dj_1*this.ij_1*this.oj_1,e=this.lj_1*this.ij_1*this.fj_1-this.hj_1*this.mj_1*this.fj_1-this.lj_1*this.ej_1*this.jj_1+this.dj_1*this.mj_1*this.jj_1+this.hj_1*this.ej_1*this.nj_1-this.dj_1*this.ij_1*this.nj_1,r=this.mj_1*this.jj_1*this.cj_1-this.ij_1*this.nj_1*this.cj_1-this.mj_1*this.bj_1*this.kj_1+this.aj_1*this.nj_1*this.kj_1+this.ij_1*this.bj_1*this.oj_1-this.aj_1*this.jj_1*this.oj_1,s=this.hj_1*this.nj_1*this.cj_1-this.lj_1*this.jj_1*this.cj_1+this.lj_1*this.bj_1*this.kj_1-this.zi_1*this.nj_1*this.kj_1-this.hj_1*this.bj_1*this.oj_1+this.zi_1*this.jj_1*this.oj_1,u=this.lj_1*this.ij_1*this.cj_1-this.hj_1*this.mj_1*this.cj_1-this.lj_1*this.aj_1*this.kj_1+this.zi_1*this.mj_1*this.kj_1+this.hj_1*this.aj_1*this.oj_1-this.zi_1*this.ij_1*this.oj_1,_=this.hj_1*this.mj_1*this.bj_1-this.lj_1*this.ij_1*this.bj_1+this.lj_1*this.aj_1*this.jj_1-this.zi_1*this.mj_1*this.jj_1-this.hj_1*this.aj_1*this.nj_1+this.zi_1*this.ij_1*this.nj_1,o=this.ej_1*this.nj_1*this.cj_1-this.mj_1*this.fj_1*this.cj_1+this.mj_1*this.bj_1*this.gj_1-this.aj_1*this.nj_1*this.gj_1-this.ej_1*this.bj_1*this.oj_1+this.aj_1*this.fj_1*this.oj_1,h=this.lj_1*this.fj_1*this.cj_1-this.dj_1*this.nj_1*this.cj_1-this.lj_1*this.bj_1*this.gj_1+this.zi_1*this.nj_1*this.gj_1+this.dj_1*this.bj_1*this.oj_1-this.zi_1*this.fj_1*this.oj_1,a=this.dj_1*this.mj_1*this.cj_1-this.lj_1*this.ej_1*this.cj_1+this.lj_1*this.aj_1*this.gj_1-this.zi_1*this.mj_1*this.gj_1-this.dj_1*this.aj_1*this.oj_1+this.zi_1*this.ej_1*this.oj_1,l=this.lj_1*this.ej_1*this.bj_1-this.dj_1*this.mj_1*this.bj_1-this.lj_1*this.aj_1*this.fj_1+this.zi_1*this.mj_1*this.fj_1+this.dj_1*this.aj_1*this.nj_1-this.zi_1*this.ej_1*this.nj_1,f=this.ij_1*this.fj_1*this.cj_1-this.ej_1*this.jj_1*this.cj_1-this.ij_1*this.bj_1*this.gj_1+this.aj_1*this.jj_1*this.gj_1+this.ej_1*this.bj_1*this.kj_1-this.aj_1*this.fj_1*this.kj_1,c=this.dj_1*this.jj_1*this.cj_1-this.hj_1*this.fj_1*this.cj_1+this.hj_1*this.bj_1*this.gj_1-this.zi_1*this.jj_1*this.gj_1-this.dj_1*this.bj_1*this.kj_1+this.zi_1*this.fj_1*this.kj_1,v=this.hj_1*this.ej_1*this.cj_1-this.dj_1*this.ij_1*this.cj_1-this.hj_1*this.aj_1*this.gj_1+this.zi_1*this.ij_1*this.gj_1+this.dj_1*this.aj_1*this.kj_1-this.zi_1*this.ej_1*this.kj_1,d=this.dj_1*this.ij_1*this.bj_1-this.hj_1*this.ej_1*this.bj_1+this.hj_1*this.aj_1*this.fj_1-this.zi_1*this.ij_1*this.fj_1-this.dj_1*this.aj_1*this.jj_1+this.zi_1*this.ej_1*this.jj_1,$=this.qj();return new W(t/$,r/$,o/$,f/$,n/$,s/$,h/$,c/$,i/$,u/$,a/$,v/$,e/$,_/$,l/$,d/$)},d(W).qj=function(){return this.lj_1*this.ij_1*this.fj_1*this.cj_1-this.hj_1*this.mj_1*this.fj_1*this.cj_1-this.lj_1*this.ej_1*this.jj_1*this.cj_1+this.dj_1*this.mj_1*this.jj_1*this.cj_1+this.hj_1*this.ej_1*this.nj_1*this.cj_1-this.dj_1*this.ij_1*this.nj_1*this.cj_1-this.lj_1*this.ij_1*this.bj_1*this.gj_1+this.hj_1*this.mj_1*this.bj_1*this.gj_1+this.lj_1*this.aj_1*this.jj_1*this.gj_1-this.zi_1*this.mj_1*this.jj_1*this.gj_1-this.hj_1*this.aj_1*this.nj_1*this.gj_1+this.zi_1*this.ij_1*this.nj_1*this.gj_1+this.lj_1*this.ej_1*this.bj_1*this.kj_1-this.dj_1*this.mj_1*this.bj_1*this.kj_1-this.lj_1*this.aj_1*this.fj_1*this.kj_1+this.zi_1*this.mj_1*this.fj_1*this.kj_1+this.dj_1*this.aj_1*this.nj_1*this.kj_1-this.zi_1*this.ej_1*this.nj_1*this.kj_1-this.hj_1*this.ej_1*this.bj_1*this.oj_1+this.dj_1*this.ij_1*this.bj_1*this.oj_1+this.hj_1*this.aj_1*this.fj_1*this.oj_1-this.zi_1*this.ij_1*this.fj_1*this.oj_1-this.dj_1*this.aj_1*this.jj_1*this.oj_1+this.zi_1*this.ej_1*this.jj_1*this.oj_1},d(W).rj=function(){return new W(this.zi_1,this.dj_1,this.hj_1,this.lj_1,this.aj_1,this.ej_1,this.ij_1,this.mj_1,this.bj_1,this.fj_1,this.jj_1,this.nj_1,this.cj_1,this.gj_1,this.kj_1,this.oj_1)},d(W).sj=function(){return new V(this.zi_1,this.aj_1,this.bj_1,this.dj_1,this.ej_1,this.fj_1,this.hj_1,this.ij_1,this.jj_1)},d(W).tj=function(t){return this===F().xi_1?t:t===F().xi_1?this:new W(this.zi_1*t.zi_1+this.aj_1*t.dj_1+this.bj_1*t.hj_1+this.cj_1*t.lj_1,this.zi_1*t.aj_1+this.aj_1*t.ej_1+this.bj_1*t.ij_1+this.cj_1*t.mj_1,this.zi_1*t.bj_1+this.aj_1*t.fj_1+this.bj_1*t.jj_1+this.cj_1*t.nj_1,this.zi_1*t.cj_1+this.aj_1*t.gj_1+this.bj_1*t.kj_1+this.cj_1*t.oj_1,this.dj_1*t.zi_1+this.ej_1*t.dj_1+this.fj_1*t.hj_1+this.gj_1*t.lj_1,this.dj_1*t.aj_1+this.ej_1*t.ej_1+this.fj_1*t.ij_1+this.gj_1*t.mj_1,this.dj_1*t.bj_1+this.ej_1*t.fj_1+this.fj_1*t.jj_1+this.gj_1*t.nj_1,this.dj_1*t.cj_1+this.ej_1*t.gj_1+this.fj_1*t.kj_1+this.gj_1*t.oj_1,this.hj_1*t.zi_1+this.ij_1*t.dj_1+this.jj_1*t.hj_1+this.kj_1*t.lj_1,this.hj_1*t.aj_1+this.ij_1*t.ej_1+this.jj_1*t.ij_1+this.kj_1*t.mj_1,this.hj_1*t.bj_1+this.ij_1*t.fj_1+this.jj_1*t.jj_1+this.kj_1*t.nj_1,this.hj_1*t.cj_1+this.ij_1*t.gj_1+this.jj_1*t.kj_1+this.kj_1*t.oj_1,this.lj_1*t.zi_1+this.mj_1*t.dj_1+this.nj_1*t.hj_1+this.oj_1*t.lj_1,this.lj_1*t.aj_1+this.mj_1*t.ej_1+this.nj_1*t.ij_1+this.oj_1*t.mj_1,this.lj_1*t.bj_1+this.mj_1*t.fj_1+this.nj_1*t.jj_1+this.oj_1*t.nj_1,this.lj_1*t.cj_1+this.mj_1*t.gj_1+this.nj_1*t.kj_1+this.oj_1*t.oj_1)},d(W).toString=function(){return this.zi_1+", "+this.aj_1+", "+this.bj_1+", "+this.cj_1+",\n"+this.dj_1+", "+this.ej_1+", "+this.fj_1+", "+this.gj_1+",\n"+this.hj_1+", "+this.ij_1+", "+this.jj_1+", "+this.kj_1+",\n"+this.lj_1+", "+this.mj_1+", "+this.nj_1+", "+this.oj_1},d(W).uj=function(t,n,i,e,r,s,u,_,o,h,a,l,f,c,v,d){return new W(t,n,i,e,r,s,u,_,o,h,a,l,f,c,v,d)},d(W).vj=function(t,n,i,e,r,s,u,_,o,h,a,l,f,c,v,d,$){return t=t===j?this.zi_1:t,n=n===j?this.aj_1:n,i=i===j?this.bj_1:i,e=e===j?this.cj_1:e,r=r===j?this.dj_1:r,s=s===j?this.ej_1:s,u=u===j?this.fj_1:u,_=_===j?this.gj_1:_,o=o===j?this.hj_1:o,h=h===j?this.ij_1:h,a=a===j?this.jj_1:a,l=l===j?this.kj_1:l,f=f===j?this.lj_1:f,c=c===j?this.mj_1:c,v=v===j?this.nj_1:v,d=d===j?this.oj_1:d,$===j?this.uj(t,n,i,e,r,s,u,_,o,h,a,l,f,c,v,d):$.uj.call(this,t,n,i,e,r,s,u,_,o,h,a,l,f,c,v,d)},d(W).hashCode=function(){var t=m(this.zi_1);return t=v(t,31)+m(this.aj_1)|0,t=v(t,31)+m(this.bj_1)|0,t=v(t,31)+m(this.cj_1)|0,t=v(t,31)+m(this.dj_1)|0,t=v(t,31)+m(this.ej_1)|0,t=v(t,31)+m(this.fj_1)|0,t=v(t,31)+m(this.gj_1)|0,t=v(t,31)+m(this.hj_1)|0,t=v(t,31)+m(this.ij_1)|0,t=v(t,31)+m(this.jj_1)|0,t=v(t,31)+m(this.kj_1)|0,t=v(t,31)+m(this.lj_1)|0,t=v(t,31)+m(this.mj_1)|0,t=v(t,31)+m(this.nj_1)|0,v(t,31)+m(this.oj_1)|0},d(W).equals=function(t){if(this===t)return!0;if(!(t instanceof W))return!1;var n=t instanceof W?t:g();return!!(x(this.zi_1,n.zi_1)&&x(this.aj_1,n.aj_1)&&x(this.bj_1,n.bj_1)&&x(this.cj_1,n.cj_1)&&x(this.dj_1,n.dj_1)&&x(this.ej_1,n.ej_1)&&x(this.fj_1,n.fj_1)&&x(this.gj_1,n.gj_1)&&x(this.hj_1,n.hj_1)&&x(this.ij_1,n.ij_1)&&x(this.jj_1,n.jj_1)&&x(this.kj_1,n.kj_1)&&x(this.lj_1,n.lj_1)&&x(this.mj_1,n.mj_1)&&x(this.nj_1,n.nj_1)&&x(this.oj_1,n.oj_1))},d(K).xk=function(){return new Float32Array([this.yj_1,this.dk_1,this.ik_1,this.nk_1,this.sk_1,this.zj_1,this.ek_1,this.jk_1,this.ok_1,this.tk_1,this.ak_1,this.fk_1,this.kk_1,this.pk_1,this.uk_1,this.bk_1,this.gk_1,this.lk_1,this.qk_1,this.vk_1,this.ck_1,this.hk_1,this.mk_1,this.rk_1,this.wk_1])},d(K).toString=function(){return y(this.yj_1+", "+this.zj_1+", "+this.ak_1+", "+this.bk_1+", "+this.ck_1+",\n "+this.dk_1+", "+this.ek_1+", "+this.fk_1+", "+this.gk_1+", "+this.hk_1+",\n "+this.ik_1+", "+this.jk_1+", "+this.kk_1+", "+this.lk_1+", "+this.mk_1+",\n "+this.nk_1+", "+this.ok_1+", "+this.pk_1+", "+this.qk_1+", "+this.rk_1+",\n "+this.sk_1+", "+this.tk_1+", "+this.uk_1+", "+this.vk_1+", "+this.wk_1)},d(K).hashCode=function(){var t=m(this.yj_1);return t=v(t,31)+m(this.zj_1)|0,t=v(t,31)+m(this.ak_1)|0,t=v(t,31)+m(this.bk_1)|0,t=v(t,31)+m(this.ck_1)|0,t=v(t,31)+m(this.dk_1)|0,t=v(t,31)+m(this.ek_1)|0,t=v(t,31)+m(this.fk_1)|0,t=v(t,31)+m(this.gk_1)|0,t=v(t,31)+m(this.hk_1)|0,t=v(t,31)+m(this.ik_1)|0,t=v(t,31)+m(this.jk_1)|0,t=v(t,31)+m(this.kk_1)|0,t=v(t,31)+m(this.lk_1)|0,t=v(t,31)+m(this.mk_1)|0,t=v(t,31)+m(this.nk_1)|0,t=v(t,31)+m(this.ok_1)|0,t=v(t,31)+m(this.pk_1)|0,t=v(t,31)+m(this.qk_1)|0,t=v(t,31)+m(this.rk_1)|0,t=v(t,31)+m(this.sk_1)|0,t=v(t,31)+m(this.tk_1)|0,t=v(t,31)+m(this.uk_1)|0,t=v(t,31)+m(this.vk_1)|0,v(t,31)+m(this.wk_1)|0},d(K).equals=function(t){if(this===t)return!0;if(!(t instanceof K))return!1;var n=t instanceof K?t:g();return!!(x(this.yj_1,n.yj_1)&&x(this.zj_1,n.zj_1)&&x(this.ak_1,n.ak_1)&&x(this.bk_1,n.bk_1)&&x(this.ck_1,n.ck_1)&&x(this.dk_1,n.dk_1)&&x(this.ek_1,n.ek_1)&&x(this.fk_1,n.fk_1)&&x(this.gk_1,n.gk_1)&&x(this.hk_1,n.hk_1)&&x(this.ik_1,n.ik_1)&&x(this.jk_1,n.jk_1)&&x(this.kk_1,n.kk_1)&&x(this.lk_1,n.lk_1)&&x(this.mk_1,n.mk_1)&&x(this.nk_1,n.nk_1)&&x(this.ok_1,n.ok_1)&&x(this.pk_1,n.pk_1)&&x(this.qk_1,n.qk_1)&&x(this.rk_1,n.rk_1)&&x(this.sk_1,n.sk_1)&&x(this.tk_1,n.tk_1)&&x(this.uk_1,n.uk_1)&&x(this.vk_1,n.vk_1)&&x(this.wk_1,n.wk_1))},d(Q).a=function(){var t=this.ih_1*this.ih_1+this.jh_1*this.jh_1;return Math.sqrt(t)},d(Q).fh=function(){return X().yk_1},d(Q).dl=function(t){return new Q(this.ih_1+t.ih_1,this.jh_1+t.jh_1)},d(Q).el=function(t){return new Q(this.ih_1-t.ih_1,this.jh_1-t.jh_1)},d(Q).fl=function(t){return new Q(this.ih_1*t,this.jh_1*t)},d(Q).gl=function(t){return new Q(this.ih_1*t.ih_1,this.jh_1*t.jh_1)},d(Q).hh=function(t){return new Q(this.ih_1/t,this.jh_1/t)},d(Q).toString=function(){return"Vector2(x="+this.ih_1+", y="+this.jh_1+")"},d(Q).hashCode=function(){var t=m(this.ih_1);return v(t,31)+m(this.jh_1)|0},d(Q).equals=function(t){if(this===t)return!0;if(!(t instanceof Q))return!1;var n=t instanceof Q?t:g();return!!x(this.ih_1,n.ih_1)&&!!x(this.jh_1,n.jh_1)},d(tt).fh=function(){return J().hl_1},d(tt).hh=function(t){return new tt(this.ui_1/t,this.vi_1/t,this.wi_1/t)},d(tt).a=function(){var t=this.ui_1*this.ui_1+this.vi_1*this.vi_1+this.wi_1*this.wi_1;return Math.sqrt(t)},d(tt).toString=function(){return"Vector3(x="+this.ui_1+", y="+this.vi_1+", z="+this.wi_1+")"},d(tt).hashCode=function(){var t=m(this.ui_1);return t=v(t,31)+m(this.vi_1)|0,v(t,31)+m(this.wi_1)|0},d(tt).equals=function(t){if(this===t)return!0;if(!(t instanceof tt))return!1;var n=t instanceof tt?t:g();return!!x(this.ui_1,n.ui_1)&&!!x(this.vi_1,n.vi_1)&&!!x(this.wi_1,n.wi_1)},d(et).a=function(){var t=this.vl_1*this.vl_1+this.wl_1*this.wl_1+this.xl_1*this.xl_1+this.yl_1*this.yl_1;return Math.sqrt(t)},d(et).fh=function(){return it().sl_1},d(et).hh=function(t){return new et(this.vl_1/t,this.wl_1/t,this.xl_1/t,this.yl_1/t)},d(et).toString=function(){return"Vector4(x="+this.vl_1+", y="+this.wl_1+", z="+this.xl_1+", w="+this.yl_1+")"},d(et).hashCode=function(){var t=m(this.vl_1);return t=v(t,31)+m(this.wl_1)|0,t=v(t,31)+m(this.xl_1)|0,v(t,31)+m(this.yl_1)|0},d(et).equals=function(t){if(this===t)return!0;if(!(t instanceof et))return!1;var n=t instanceof et?t:g();return!!(x(this.vl_1,n.vl_1)&&x(this.wl_1,n.wl_1)&&x(this.xl_1,n.xl_1)&&x(this.yl_1,n.yl_1))},d(Q).gh=q,d(tt).gh=q,t.$_$=t.$_$||{},t.$_$.a=function(t){return function(t,n){return Q.call(n,t,t),n}(t,k(d(Q)))},t.$_$.b=F,t.$_$.c=H,t.$_$.d=X,t.$_$.e=J,t.$_$.f=function(t){return new W(t.zi_1,t.aj_1,t.bj_1,0,t.dj_1,t.ej_1,t.fj_1,0,t.hj_1,t.ij_1,t.jj_1,0,0,0,0,1).pj().rj().vj(j,j,j,j,j,j,j,j,j,j,j,j,j,j,j,0)},t.$_$.g=function(t,n,i,e,r,s){return new W(2/(n-t),0,0,-(n+t)/(n-t),0,2/(e-i),0,-(e+i)/(e-i),0,0,-2/(s-r),-(s+r)/(s-r),0,0,0,1)},t.$_$.h=S,t.$_$.i=z,t.$_$.j=A,t.$_$.k=rt,t.$_$.l=N,t.$_$.m=O,t.$_$.n=D,t.$_$.o=V,t.$_$.p=W,t.$_$.q=Q,t.$_$.r=tt,t.$_$.s=et,t.$_$.t=function(t,n,i){return new Q(I(t.ih_1,n.ih_1,i.ih_1),I(t.jh_1,n.jh_1,i.jh_1))},t})?e.apply(n,r):e)||(t.exports=s)},73:(t,n,i)=>{var e,r,s;r=[n,i(36)],void 0===(s="function"==typeof(e=function(t,n){"use strict";var i,e,r,s,u=n.$_$.a1,_=n.$_$.a4,o=n.$_$.g3,h=n.$_$.u2,a=n.$_$.c,l=n.$_$.y2;function f(){if(r)return u;r=!0,new c("GENERIC",0),new c("WINDOWS",1),i=new c("MAC",2),e=new c("BROWSER",3)}function c(t,n){_.call(this,t,n)}function v(){}return h(c,"PlatformType",a,_),l(v,"Platform"),o(v).rn=function(){return f(),e},o(v).sn=function(t){return null},s=new v,t.$_$=t.$_$||{},t.$_$.a=function(){return f(),i},t.$_$.b=s,t})?e.apply(n,r):e)||(t.exports=s)},989:(t,n,i)=>{var e,r,s;r=[n,i(36),i(560)],void 0===(s="function"==typeof(e=function(t,n,i){"use strict";var e,r=Math.imul,s=n.$_$.g3,u=n.$_$.v2,_=n.$_$.c,o=i.$_$.q,h=n.$_$.q2,a=n.$_$.f4,l=n.$_$.n2,f=n.$_$.u2,c=i.$_$.t;function v(){var t,n;e=this,this.an_1=(t=0,n=(n=0)===_?t:n,new d(new o(0,0),t,n))}function d(t,n,i){null==e&&new v,i=i===_?n:i,this.bn_1=t,this.cn_1=n,this.dn_1=i}return u(v),f(d,"Rectangle"),s(d).en=function(){return new o(this.cn_1,this.dn_1)},s(d).fn=function(){return this.bn_1.ih_1},s(d).gn=function(){return this.bn_1.jh_1},s(d).hn=function(t,n){return new d(new o(this.bn_1.ih_1-t,this.bn_1.jh_1-n),this.cn_1+2*t,this.dn_1+2*n)},s(d).in=function(t,n,i){return n=n===_?t:n,i===_?this.hn(t,n):i.hn.call(this,t,n)},s(d).toString=function(){return"Rectangle(corner="+this.bn_1.toString()+", width="+this.cn_1+", height="+this.dn_1+")"},s(d).hashCode=function(){var t=this.bn_1.hashCode();return t=r(t,31)+h(this.cn_1)|0,r(t,31)+h(this.dn_1)|0},s(d).equals=function(t){if(this===t)return!0;if(!(t instanceof d))return!1;var n=t instanceof d?t:a();return!!this.bn_1.equals(n.bn_1)&&!!l(this.cn_1,n.cn_1)&&!!l(this.dn_1,n.dn_1)},t.$_$=t.$_$||{},t.$_$.a=d,t.$_$.b=function(t,n){return c(t,n.bn_1,n.bn_1.dl(n.en()))},t})?e.apply(n,r):e)||(t.exports=s)},549:(t,n)=>{var i,e;void 0===(e="function"==typeof(i=function(t){"use strict";return t.$_$=t.$_$||{},t.$_$.a=function(t,n){return t.r9(n),n},t})?i.apply(n,[n]):i)||(t.exports=e)},644:(t,n,i)=>{var e,r,s;r=[n,i(36),i(560)],void 0===(s="function"==typeof(e=function(t,n,i){"use strict";var e,r=Math.imul,s=n.$_$.j3,u=n.$_$.w3,_=n.$_$.u,o=(n.$_$.x,n.$_$.g3),h=n.$_$.y2,a=n.$_$.i3,l=n.$_$.s2,f=n.$_$.t2,c=n.$_$.f4,v=n.$_$.n2,d=n.$_$.u2,$=n.$_$.c,w=n.$_$.y,g=i.$_$.q;function p(t,n){return s(function(t,n){for(var i=0,e=u(n),r=0,s=e.length;r {\nreturn ",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"import org.openrndr.application\nimport org.openrndr.color.ColorRGBa\nimport org.openrndr.extra.noise.Random\nimport org.openrndr.extra.noise.shapes.uniform\nimport org.openrndr.math.Vector2\nimport org.openrndr.shape.clamp\n\nfun main() = application {\n configure {\n width = 640\n height = 360\n }\n\n program {\n val numBalls = 12\n val spring = 0.05\n val gravity = Vector2(0.0, 0.03)\n val friction = -0.9\n\n class Ball(var position: Vector2, val radius: Double, val id: Int) {\n var velocity = Vector2.ZERO\n val safeArea = drawer.bounds.offsetEdges(-radius)\n\n fun collide(others: List) {\n for (i in id + 1 until numBalls) {\n val diff = others[i].position - position\n val minDist = others[i].radius + radius\n if (diff.length < minDist) {\n val targetPos = position + diff.normalized * minDist\n val acceleration = (targetPos - others[i].position) * spring\n velocity -= acceleration\n others[i].velocity += acceleration\n }\n }\n }\n\n fun move() {\n velocity += gravity\n position += velocity\n if (position.x !in radius..width - radius) {\n velocity *= Vector2(friction, 1.0)\n }\n if (position.y !in radius..height - radius) {\n velocity *= Vector2(1.0, friction)\n }\n position = position.clamp(safeArea)\n }\n\n fun display() {\n drawer.circle(position, radius)\n }\n }\n\n val balls = List(numBalls) { Ball(drawer.bounds.uniform(), Random.double(15.0, 35.0), it) }\n\n extend {\n drawer.clear(ColorRGBa.BLACK)\n drawer.stroke = null\n drawer.fill = ColorRGBa.WHITE.opacify(0.8)\n balls.forEach {\n it.collide(balls)\n it.move()\n it.display()\n }\n }\n }\n}\n",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module used 'module' so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(395);\n"],"names":["root","factory","exports","module","define","amd","globalThis","log","LN2","a","b","value","O","len","relativeStart","k","end","relativeEnd","finalValue","TypedArray","x","asUint","searchString","position","","element","elements","initialCapacity","loadFactor","destination","item","separator","prefix","postfix","limit","truncated","transform","buffer","count","iterator","single","to","minimumValue","maximumValue","n","other","name","ordinal","low","high","interfaces","maxSize","masks","i","currentSize","imask","iid","iidImask","numberIndex","intArray","numberWithSettledBit","activeBit","capacity","result","mask","array","initValue","size","$array","obj","index","code","startIndex","endIndex","it","ia","hash","descriptor","proto","o","obj1","obj2","typeOf","shiftNumber","MASK","bigNumber","hashCode","signum","chunk","hashCodeMap","symbol","cachedHashCode","str","instance","constructorFunction","constructor","this_","message","cause","errorInfo","v","thisNeg","otherNeg","a48","a32","a16","a00","b48","b32","b16","c48","c32","c16","c00","b00","approx","numBits","res","rem","approxDouble","approx2","log2","delta","approxRes","approxRem","radix","radixLong","div","digitsPerTime","radixToPower","remDiv","digits","twoPwr32","kind","defaultConstructor","associatedObjectKey","associatedObjects","suspendArity","ctor","parent","metadata","start","endInclusive","iface","possibleActiveBit","parentProto","propName","fromIndex","toIndex","collection","expectedSize","pair","pairs","key","source","destinationOffset","rangeSize","subrange","","newSize","defaultValue","ArrayList_init_$Init$","rangeCheck","internalMap","HashMap_init_$Init$","original","backing","$entryIterator","backingMap","map","HashSet_init_$Init$","computeHashSize","computeShift","hashSize","checkForComodification","InternalHashMap_init_$Init$","","","registerModification","ensureExtraCapacity","shouldCompact","extraCapacity","spareCapacity","gaps","ensureCapacity","minCapacity","src","dst","srcLen","dstLen","arr","newHashSize","allocateValuesArray","curValuesArray","newValuesArray","compact","updateHashArray","j","valuesArray","rehash","putRehash","probesLeft","findKey","addKey","tentativeMaxProbeDistance","probeDistance","putIndex","removeEntryAt","removeHashAt","removedHash","hole","patchAttemptsLeft","putEntry","entry","oldValue","keysArray","presenceArray","hashArray","maxProbeDistance","length","LinkedHashMap_init_$Init$","LinkedHashSet_init_$Init$","outputStream","isNode","resultContinuation","$completion$1","Exception_init_$Init$","UnsupportedOperationException_init_$Init$","RuntimeException_init_$Init$","NoSuchElementException_init_$Init$","ConcurrentModificationException_init_$Init$","NullPointerException_init_$Init$","NoWhenBranchMatchedException_init_$Init$","ClassCastException_init_$Init$","hi26","low27","jClass","givenSimpleName","isInstanceFunction","jClasses","kClass","StringBuilder_init_$Init$","content","uppercase","char","ch","diff","needle","bottom","top","middle","ignoreCase","n1","n2","min","thisChar","otherChar","thisOffset","otherOffset","indent","qualifier","shortInfo","hasSeen","exception","stack","stackStart","dropCommonFrames","commonFrames","lastBreak","preLastBreak","pos","c","messageLines","suppressed","suppressedIndent","toString","implFindEntry","ArrayDeque_init_$Init$","copyElements","newCapacity","newElements","positiveMod","negativeMod","incremented","decremented","nullifyNonEmpty","internalFromIndex","internalToIndex","values","isVarargs","default","iteratorFactory","sequence","transformer","mod","seed","seed1","seed2","y","z","w","addend","first","last","step","thisUpper","otherUpper","$indent","line","range","string","calcNext","match","input","getNextMatch","indices","initializer","second","that","IllegalArgumentException_init_$Init$","IllegalStateException_init_$Init$","Error_init_$Init$","IndexOutOfBoundsException_init_$Init$","ArithmeticException_init_$Init$","UninitializedPropertyAccessException_init_$Init$","l","modified","iter","insertionRangeCheck","offset","increaseLength","amount","previous","from","sb","putAllEntries","updated","contentEquals","messageString","s","current","currentResult","currentException","outcome","completion","intercepted","arity","$arity","equals","oldCapacity","e","otherIterator","ourValue","internalLastIndex","internalIndex","decrementedInternalIndex","decrementedHead","tail","copyCollectionElements","oldElement","dest","collectionSize","removeRangeShiftPreceding","copyFromIndex","copyToIndex","copyCount","segmentLength","newHead","removeRangeShiftSucceeding","bitCount","t","v0","rangeStart","rangeEnd","_delimiterLength","_delimiterStartIndex","idx","lastIndex","firstIndex","m","list","midPoint","reverseIndex","tmp","getter","setter","paramCount","superType","delimiters","delimiter","currentOffset","nextIndex","isLimited","$delimitersList","$ignoreCase","$this$DelimitedRangesSequence","currentIndex","strings","missingDelimiterValue","isNegative","firstChar","limitForMaxRadix","limitBeforeMul","digit","newIndent","lines","minCommonIndent","marginPrefix","firstNonWhitespaceIndex","msg","mode","levelInt","levelStr","createThrowableMsg","throwable","includePrefix","level","marker","loggerName","eventBuilder","payload","func","loggingEvent","block","formattedMessage","found","$message","$this$at","serialName","typeParameters","builder","sdBuilder","","receiver","elementsCount","$serialName","createUnmarkedDescriptor","d","","$elementsCount","$name","typeParams","elementDescriptors","accumulator","namesHash","kindHash","","generatedSerializer","elementsHashCode","isOptional","buildIndices","$this$application","$this$program","$completion","$this$configure","$this_program","$numBalls","$spring","$gravity","$friction","radius","id","$balls","$this$extend","others","minDist","acceleration","Vector2","clamp","gravity","uniform","balls","application","Animatable_init_$Init$","dt","timeInNs","updatePropertyAnimations","toRemove","triggers","drawer","program","type","modifiers","rotation","dragDisplacement","button","origin","assetMetadata","programName","assetBaseName","assetProperties","","extension","path","ext","$userDraw","suspend","focused","files","$init","","stage","userDraw","functionExtension","init","build","r","g","alpha","linearity","certainty","hex","factor","geometry","drawStyle","$this$vertexFormat","model","view","projection","width","height","contentScale","modelViewScalingFactor","clip","fill","stroke","lineCap","lineJoin","strokeWeight","smooth","miterLimit","quality","depthTestPass","depthWrite","blendMode","cullTestPass","channelWriteMask","alphaToCoverage","shadeStyle","fontMap","kerning","textSetting","stencil","frontStencil","backStencil","colorMatrix","red","green","blue","stencilFailOperation","depthFailOperation","depthPassOperation","stencilTestMask","stencilTestReference","stencilWriteMask","stencilTest","driver","structDefinitions","uniforms","attributes","buffers","vertexTransform","geometryTransform","fragmentTransform","vertexPreamble","geometryPreamble","fragmentPreamble","outputs","varyingOut","varyingIn","varyingBridge","suppressDefaultOutput","tokens","vertexFormat","vertexCount","session","componentCount","sizeInBytes","floatTypeFromDimensions","dimensions","attribute","arraySize","ShaderGenerators$circleVertexShader$ref","ShaderGenerators$circleVertexShader$ref$lambda","ShaderGenerators$circleFragmentShader$ref","ShaderGenerators$circleFragmentShader$ref$lambda","pa","pb","pc","pd","ta","tb","tc","td","maxRenderTargetSamples","maxTextureSamples","maxTextureSize","ShaderGenerators$expansionVertexShader$ref","ShaderGenerators$expansionVertexShader$ref$lambda","ShaderGenerators$expansionFragmentShader$ref","ShaderGenerators$expansionFragmentShader$ref$lambda","ShaderGenerators$fontImageMapVertexShader$ref","ShaderGenerators$fontImageMapVertexShader$ref$lambda","ShaderGenerators$fontImageMapFragmentShader$ref","ShaderGenerators$fontImageMapFragmentShader$ref$lambda","ShaderGenerators$imageVertexShader$ref","ShaderGenerators$imageVertexShader$ref$lambda","ShaderGenerators$imageFragmentShader$ref","ShaderGenerators$imageFragmentShader$ref$lambda","ShaderGenerators$imageArrayTextureVertexShader$ref","ShaderGenerators$imageArrayTextureVertexShader$ref$lambda","ShaderGenerators$imageArrayTextureFragmentShader$ref","ShaderGenerators$imageArrayTextureFragmentShader$ref$lambda","ShaderGenerators$meshLineVertexShader$ref","ShaderGenerators$meshLineVertexShader$ref$lambda","ShaderGenerators$meshLineFragmentShader$ref","ShaderGenerators$meshLineFragmentShader$ref$lambda","ShaderGenerators$fastLineVertexShader$ref","ShaderGenerators$fastLineVertexShader$ref$lambda","ShaderGenerators$fastLineFragmentShader$ref","ShaderGenerators$fastLineFragmentShader$ref$lambda","ShaderGenerators$pointVertexShader$ref","ShaderGenerators$pointVertexShader$ref$lambda","ShaderGenerators$pointFragmentShader$ref","ShaderGenerators$pointFragmentShader$ref$lambda","ShaderGenerators$rectangleVertexShader$ref","ShaderGenerators$rectangleVertexShader$ref$lambda","ShaderGenerators$rectangleFragmentShader$ref","ShaderGenerators$rectangleFragmentShader$ref$lambda","ShaderGenerators$vertexBufferVertexShader$ref","ShaderGenerators$vertexBufferVertexShader$ref$lambda","ShaderGenerators$vertexBufferFragmentShader$ref","ShaderGenerators$vertexBufferFragmentShader$ref$lambda","f","shader","answer","contextBlock","normalMatrix","styleBlock","left","right","near","far","color","vsGenerator","tscGenerator","tseGenerator","gsGenerator","fsGenerator","vsCode","tcsCode","tesCode","gsCode","fsCode","sum","drawContext","batch","weight","circleBatch","instanceAttributes","instanceAttributeFormats","screenPosition","contourPosition","boundsPosition","boundsSize","format","offsetInBytes","tcsGenerator","tesGenerator","elementOffset","elementCount","bufferDefinition","deps","Event$deliver$lambda","$e","postpone","copy","listener","u","subtokens","sampler","colorFormat","colorType","access","layout","vertexFormats","$shadeStyle","$vertexFormats","$instanceAttributeFormats","cacheEntry","structValues","set","bufferIndex","arraySpec","flag","forceSet","valueFunction","style","instanceFormats","outputInstanceFormats","structure","shadeStructure","targetName","readFileOrBlobAsDataUrl","file","$file","resolve","$resolve","$reader","reader","getModifiers","images","configuration","elementSize","test","op","floats","instancedArrays","standardDerivatives","halfFloatTextures","floatTextures","colorBufferHalfFloat","colorBufferFloat","halfFloatTexturesLinear","floatTexturesLinear","drawBuffers","depthTexture","this$0","$shader","attribute0Used","scalarVectorTypes","divisor","attributeBindings","attributeIndex","glType","column","context","shaderObject","framebuffer","multisample","activeUniforms","vertexBuffer","contextAttributes","dpr","resizeDpr","newWidth","newHeight","lastDragPosition","down","$down","$lastDragPosition","dims","text","vertexShader","fragmentShader","vertexBuffers","drawPrimitive","vertexOffset","instanceOffset","instanceCount","verticesPerPatch","setupFormat","target","activeUniformCount","activeUniform","blockName","floatValues","mf","shaderStorageBuffer","counterBuffer","image","imageBinding","data","offsetBytes","floatCount","offsetFloats","max","c0r0","c1r0","c2r0","c0r1","c1r1","c2r1","c0r2","c1r2","c2r2","c3r0","c3r1","c3r2","c0r3","c1r3","c2r3","c3r3","c4r0","c4r1","c4r2","c4r3","c0r4","c1r4","c2r4","c3r4","c4r4","n00","n01","n02","n03","n10","n11","n12","n13","n20","n21","n22","n23","n30","n31","n32","n33","mat","scale","zNear","zFar","corner","offsetY","bounds","newRandomGenerator","newSeed","stringToInt","rng","random","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__"],"sourceRoot":""} \ No newline at end of file diff --git a/index.html b/demoHobbyCurves01/index.html similarity index 100% rename from index.html rename to demoHobbyCurves01/index.html diff --git a/openrndr-program.js b/demoHobbyCurves01/openrndr-program.js similarity index 100% rename from openrndr-program.js rename to demoHobbyCurves01/openrndr-program.js diff --git a/openrndr-program.js.map b/demoHobbyCurves01/openrndr-program.js.map similarity index 100% rename from openrndr-program.js.map rename to demoHobbyCurves01/openrndr-program.js.map diff --git a/index.md b/index.md new file mode 100644 index 0000000..96f1eb3 --- /dev/null +++ b/index.md @@ -0,0 +1,5 @@ +## List of demos + +- [Bouncy Bubbles 01](demoBouncyBubbles01) +- [Hobby Curves 01](demoHobbyCurves01) +