Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix IE issues figuring out the dimensions of the image #50

  • Loading branch information...
commit bdc2911c420c8bd805ea4a2268f2d3f81b949610 1 parent 0e4e652
@meltingice authored
View
36 dist/caman.full.js
@@ -261,8 +261,8 @@
Log.debug("Initializing for NodeJS");
this.image = new Image();
this.image.onload = function() {
- Log.debug("Image loaded. Width = " + _this.image.width + ", Height = " + _this.image.height);
- _this.canvas = new Canvas(_this.image.width, _this.image.height);
+ Log.debug("Image loaded. Width = " + (_this.imageWidth()) + ", Height = " + (_this.imageHeight()));
+ _this.canvas = new Canvas(_this.imageWidth(), _this.imageHeight());
return _this.finishInit();
};
this.image.onerror = function(err) {
@@ -309,21 +309,39 @@
};
Caman.prototype.waitForImageLoaded = function() {
- if (this.image.complete) {
+ if (this.isImageLoaded()) {
return this.imageLoaded();
} else {
return this.image.onload = this.imageLoaded;
}
};
+ Caman.prototype.isImageLoaded = function() {
+ if (!this.image.complete) {
+ return false;
+ }
+ if ((this.image.naturalWidth != null) && this.image.naturalWidth === 0) {
+ return false;
+ }
+ return true;
+ };
+
+ Caman.prototype.imageWidth = function() {
+ return this.image.width || this.image.naturalWidth;
+ };
+
+ Caman.prototype.imageHeight = function() {
+ return this.image.height || this.image.naturalHeight;
+ };
+
Caman.prototype.imageLoaded = function() {
- Log.debug("Image loaded. Width = " + this.image.width + ", Height = " + this.image.height);
+ Log.debug("Image loaded. Width = " + (this.imageWidth()) + ", Height = " + (this.imageHeight()));
if (this.swapped) {
- this.canvas.width = this.image.width / this.hiDPIRatio();
- this.canvas.height = this.image.height / this.hiDPIRatio();
+ this.canvas.width = this.imageWidth() / this.hiDPIRatio();
+ this.canvas.height = this.imageHeight() / this.hiDPIRatio();
} else {
- this.canvas.width = this.image.width;
- this.canvas.height = this.image.height;
+ this.canvas.width = this.imageWidth();
+ this.canvas.height = this.imageHeight();
}
return this.finishInit();
};
@@ -340,7 +358,7 @@
this.assignId();
}
if (this.image != null) {
- this.context.drawImage(this.image, 0, 0, this.image.width, this.image.height, 0, 0, this.preScaledWidth, this.preScaledHeight);
+ this.context.drawImage(this.image, 0, 0, this.imageWidth(), this.imageHeight(), 0, 0, this.preScaledWidth, this.preScaledHeight);
}
this.reloadCanvasData();
if (Caman.allowRevert) {
View
8 dist/caman.full.min.js
@@ -23,11 +23,13 @@ this.callback=args[2];if(args.length===4){_ref=args[4];_results=[];for(key in _r
return _results;}};Caman.prototype.setInitObject=function(obj){if(Caman.NodeJS){this.initObj=obj;this.initType='node';return;}
if(typeof obj==="object"){this.initObj=obj;}else{this.initObj=$(obj);}
if(this.initObj==null){throw"Could not find image or canvas for initialization.";}
-return this.initType=this.initObj.nodeName.toLowerCase();};Caman.prototype.setup=function(){switch(this.initType){case"node":return this.initNode();case"img":return this.initImage();case"canvas":return this.initCanvas();}};Caman.prototype.initNode=function(){var _this=this;Log.debug("Initializing for NodeJS");this.image=new Image();this.image.onload=function(){Log.debug("Image loaded. Width = "+_this.image.width+", Height = "+_this.image.height);_this.canvas=new Canvas(_this.image.width,_this.image.height);return _this.finishInit();};this.image.onerror=function(err){throw err;};return this.image.src=this.initObj;};Caman.prototype.initImage=function(){this.image=this.initObj;this.canvas=document.createElement('canvas');this.context=this.canvas.getContext('2d');Util.copyAttributes(this.image,this.canvas,{except:['src']});this.image.parentNode.replaceChild(this.canvas,this.image);this.imageAdjustments();return this.waitForImageLoaded();};Caman.prototype.initCanvas=function(){this.canvas=this.initObj;this.context=this.canvas.getContext('2d');if(this.imageUrl!=null){this.image=document.createElement('img');this.image.src=this.imageUrl;this.imageAdjustments();return this.waitForImageLoaded();}else{return this.finishInit();}};Caman.prototype.imageAdjustments=function(){if(this.needsHiDPISwap()){Log.debug(this.image.src,"->",this.hiDPIReplacement());this.swapped=true;this.image.src=this.hiDPIReplacement();}
-if(IO.isRemote(this.image)){this.image.src=IO.proxyUrl(this.image.src);return Log.debug("Remote image detected, using URL = "+this.image.src);}};Caman.prototype.waitForImageLoaded=function(){if(this.image.complete){return this.imageLoaded();}else{return this.image.onload=this.imageLoaded;}};Caman.prototype.imageLoaded=function(){Log.debug("Image loaded. Width = "+this.image.width+", Height = "+this.image.height);if(this.swapped){this.canvas.width=this.image.width/this.hiDPIRatio();this.canvas.height=this.image.height/this.hiDPIRatio();}else{this.canvas.width=this.image.width;this.canvas.height=this.image.height;}
+return this.initType=this.initObj.nodeName.toLowerCase();};Caman.prototype.setup=function(){switch(this.initType){case"node":return this.initNode();case"img":return this.initImage();case"canvas":return this.initCanvas();}};Caman.prototype.initNode=function(){var _this=this;Log.debug("Initializing for NodeJS");this.image=new Image();this.image.onload=function(){Log.debug("Image loaded. Width = "+(_this.imageWidth())+", Height = "+(_this.imageHeight()));_this.canvas=new Canvas(_this.imageWidth(),_this.imageHeight());return _this.finishInit();};this.image.onerror=function(err){throw err;};return this.image.src=this.initObj;};Caman.prototype.initImage=function(){this.image=this.initObj;this.canvas=document.createElement('canvas');this.context=this.canvas.getContext('2d');Util.copyAttributes(this.image,this.canvas,{except:['src']});this.image.parentNode.replaceChild(this.canvas,this.image);this.imageAdjustments();return this.waitForImageLoaded();};Caman.prototype.initCanvas=function(){this.canvas=this.initObj;this.context=this.canvas.getContext('2d');if(this.imageUrl!=null){this.image=document.createElement('img');this.image.src=this.imageUrl;this.imageAdjustments();return this.waitForImageLoaded();}else{return this.finishInit();}};Caman.prototype.imageAdjustments=function(){if(this.needsHiDPISwap()){Log.debug(this.image.src,"->",this.hiDPIReplacement());this.swapped=true;this.image.src=this.hiDPIReplacement();}
+if(IO.isRemote(this.image)){this.image.src=IO.proxyUrl(this.image.src);return Log.debug("Remote image detected, using URL = "+this.image.src);}};Caman.prototype.waitForImageLoaded=function(){if(this.isImageLoaded()){return this.imageLoaded();}else{return this.image.onload=this.imageLoaded;}};Caman.prototype.isImageLoaded=function(){if(!this.image.complete){return false;}
+if((this.image.naturalWidth!=null)&&this.image.naturalWidth===0){return false;}
+return true;};Caman.prototype.imageWidth=function(){return this.image.width||this.image.naturalWidth;};Caman.prototype.imageHeight=function(){return this.image.height||this.image.naturalHeight;};Caman.prototype.imageLoaded=function(){Log.debug("Image loaded. Width = "+(this.imageWidth())+", Height = "+(this.imageHeight()));if(this.swapped){this.canvas.width=this.imageWidth()/this.hiDPIRatio();this.canvas.height=this.imageHeight()/this.hiDPIRatio();}else{this.canvas.width=this.imageWidth();this.canvas.height=this.imageHeight();}
return this.finishInit();};Caman.prototype.finishInit=function(){var i,pixel,_i,_len,_ref;if(this.context==null){this.context=this.canvas.getContext('2d');}
this.originalWidth=this.preScaledWidth=this.width=this.canvas.width;this.originalHeight=this.preScaledHeight=this.height=this.canvas.height;this.hiDPIAdjustments();if(!this.hasId()){this.assignId();}
-if(this.image!=null){this.context.drawImage(this.image,0,0,this.image.width,this.image.height,0,0,this.preScaledWidth,this.preScaledHeight);}
+if(this.image!=null){this.context.drawImage(this.image,0,0,this.imageWidth(),this.imageHeight(),0,0,this.preScaledWidth,this.preScaledHeight);}
this.reloadCanvasData();if(Caman.allowRevert){this.initializedPixelData=new Uint8Array(this.pixelData.length);this.originalPixelData=new Uint8Array(this.pixelData.length);_ref=this.pixelData;for(i=_i=0,_len=_ref.length;_i<_len;i=++_i){pixel=_ref[i];this.initializedPixelData[i]=pixel;this.originalPixelData[i]=pixel;}}
this.dimensions={width:this.canvas.width,height:this.canvas.height};Store.put(this.id,this);this.callback.call(this,this);return this.callback=function(){};};Caman.prototype.reloadCanvasData=function(){this.imageData=this.context.getImageData(0,0,this.canvas.width,this.canvas.height);return this.pixelData=this.imageData.data;};Caman.prototype.resetOriginalPixelData=function(){var pixel,_i,_len,_ref,_results;if(!Caman.allowRevert){throw"Revert disabled";}
this.originalPixelData=new Uint8Array(this.pixelData.length);_ref=this.pixelData;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){pixel=_ref[_i];_results.push(this.originalPixelData.push(pixel));}
View
2  dist/caman.full.pack.js
@@ -1 +1 @@
-eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(A(){L $,5N,2l,2Q,G,4I,4c,1Y,2M,5Z,Q,2N,5b,3j,1W,6j,2Y,2p,1N,6z,2X,1J,fs,4J,9e,6U={}.fp,91=[].fm||A(aa){Y(L i=0,l=o.X;i<l;i++){C(i 78 o&&o[i]===aa)u i}u-1},1q=o,9L=[].4J;4J=8Q.R.4J;$=A(79,7a){C(7a==M){7a=1X}C(1v 79==="3E"||(1v 2k!=="48"&&2k!==M)){u 79}u 7a.fk(79)};1J=(A(){A 1J(){}1J.8M=(A(){L 2D;2D=0;u{4Y:A(){u 2D++}}})();1J.7b=A(4b){L 5R,7c,66,1D,H,1l;7c=4b;1D=4J.1S(1y,1);Y(H=0,1l=1D.X;H<1l;H++){5R=1D[H];Y(66 78 5R){C(!6U.1S(5R,66))5o;7c[66]=5R[66]}}u 7c};1J.3A=A(2j){C(2j<0){u 0}C(2j>D){u D}u 2j};1J.6q=A(ae,6v,E){L 5T,H,1l,K,2L,1n;C(E==M){E={}}K=ae.fi;1n=[];Y(H=0,1l=K.X;H<1l;H++){5T=K[H];C((E.8J!=M)&&(2L=5T.8I,91.1S(E.8J,2L)>=0)){5o}1n.2m(6v.bk(5T.8I,5T.f7))}u 1n};u 1J})();C(1v 2k!=="48"&&2k!==M){6z=2k;4c=7d(\'J\');5b=4c.5b;5Z=7d(\'f6\');fs=7d(\'fs\')}V{6z=4R}6z.G=G=(A(){G.8G={aH:"4.1.0",bG:"2/12/f4"};G.9B=2K;G.38=1v 2k!=="48"&&2k!==M;G.9O=!G.38;G.5X=34;G.8E="bj";G.f3=A(){u"eX "+G.8G.aH+", eU "+G.8G.bG};G.6c="";G.bR="bU";G.7V=A(J){C(G.38){u 34}C(1v J==="3I"){J=$(J)}C(!((J!=M)&&(J.5m!=M))){u M}u J.5m(\'1R-3z-2D\')};A G(){L 1G,2r,2D,1q=o;C(1y.X===0){4p"7f 1y";}C(o eT G){o.5D=o.5D.8B(o);o.6i=o.6i.8B(o);1G=1y[0];C(!G.38){2D=3P(G.7V(1G[0]),10);2r=1v 1G[1]==="A"?1G[1]:1v 1G[2]==="A"?1G[2]:A(){};C(!bn(2D)&&2X.bo(2D)){u 2X.3O(2D,2r)}}o.2D=1J.8M.4Y();o.7j=o.4T=M;o.5S={x:0,y:0};o.9z=2K;o.7k=2K;o.65=[];o.8y=[];o.8x=[];o.6a=M;o.ad=2K;o.eO=1M 5N(o);o.4v=1M 1N(o);o.aI(A(){1q.b0(1G);u 1q.b5()});u o}V{u 1M G(1y)}}G.R.aI=A(cb){L 8v,1q=o;C(G.38){u 7m(A(){u cb.1S(1q)},0)}V{C(1X.8t==="7p"){1W.2s("bq bt");u 7m(A(){u cb.1S(1q)},0)}V{8v=A(){C(1X.8t==="7p"){1W.2s("bq bt");u cb.1S(1q)}};u 1X.by("eN",8v,2K)}}};G.R.b0=A(1G){L 5V,2j,K,1n;C(1G.X===0){4p"7f 1y bJ";}o.3U=M;o.7q=M;o.7s=M;o.2r=A(){};o.bW(1G[0]);C(1G.X===1){u}5f(1v 1G[1]){1Z"3I":o.7s=1G[1];4N;1Z"A":o.2r=1G[1]}C(1G.X===2){u}o.2r=1G[2];C(1G.X===4){K=1G[4];1n=[];Y(5V 78 K){C(!6U.1S(K,5V))5o;2j=K[5V];1n.2m(o.1E[5V]=2j)}u 1n}};G.R.bW=A(4b){C(G.38){o.3U=4b;o.7q=\'9C\';u}C(1v 4b==="3E"){o.3U=4b}V{o.3U=$(4b)}C(o.3U==M){4p"eL eH eF 1c ac J Y eE.";}u o.7q=o.3U.8I.6o()};G.R.b5=A(){5f(o.7q){1Z"9C":u o.ah();1Z"1C":u o.al();1Z"J":u o.aD()}};G.R.ah=A(){L 1q=o;1W.2s("eD Y 38");o.1c=1M 5b();o.1c.8n=A(){1W.2s("5b aO. aV = "+1q.1c.F+", b1 = "+1q.1c.I);1q.J=1M 4c(1q.1c.F,1q.1c.I);u 1q.5D()};o.1c.ex=A(bg){4p bg;};u o.1c.1D=o.3U};G.R.al=A(){o.1c=o.3U;o.J=1X.3c(\'J\');o.1r=o.J.3o(\'2d\');1J.6q(o.1c,o.J,{8J:[\'1D\']});o.1c.8m.8j(o.J,o.1c);o.8i();u o.8h()};G.R.aD=A(){o.J=o.3U;o.1r=o.J.3o(\'2d\');C(o.7s!=M){o.1c=1X.3c(\'1C\');o.1c.1D=o.7s;o.8i();u o.8h()}V{u o.5D()}};G.R.8i=A(){C(o.bu()){1W.2s(o.1c.1D,"->",o.7y());o.bz=34;o.1c.1D=o.7y()}C(2N.bA(o.1c)){o.1c.1D=2N.5J(o.1c.1D);u 1W.2s("et 1c es, er bQ = "+o.1c.1D)}};G.R.8h=A(){C(o.1c.7p){u o.6i()}V{u o.1c.8n=o.6i}};G.R.6i=A(){1W.2s("5b aO. aV = "+o.1c.F+", b1 = "+o.1c.I);C(o.bz){o.J.F=o.1c.F/o.7D();o.J.I=o.1c.I/o.7D()}V{o.J.F=o.1c.F;o.J.I=o.1c.I}u o.5D()};G.R.5D=A(){L i,28,H,1l,K;C(o.1r==M){o.1r=o.J.3o(\'2d\')}o.5s=o.6r=o.F=o.J.F;o.6s=o.6t=o.I=o.J.I;o.c3();C(!o.9o()){o.9p()}C(o.1c!=M){o.1r.6u(o.1c,0,0,o.1c.F,o.1c.I,0,0,o.6r,o.6t)}o.8d();C(G.5X){o.7j=1M 7E(o.P.X);o.4T=1M 7E(o.P.X);K=o.P;Y(i=H=0,1l=K.X;H<1l;i=++H){28=K[i];o.7j[i]=28;o.4T[i]=28}}o.1d={F:o.J.F,I:o.J.I};2X.9N(o.2D,o);o.2r.1S(o,o);u o.2r=A(){}};G.R.8d=A(){o.2H=o.1r.4F(0,0,o.J.F,o.J.I);u o.P=o.2H.1R};G.R.eq=A(){L 28,H,1l,K,1n;C(!G.5X){4p"89 7G";}o.4T=1M 7E(o.P.X);K=o.P;1n=[];Y(H=0,1l=K.X;H<1l;H++){28=K[H];1n.2m(o.4T.2m(28))}u 1n};G.R.9o=A(){u G.7V(o.J)!=M};G.R.9p=A(){C(G.38||o.J.5m(\'1R-3z-2D\')){u}u o.J.bk(\'1R-3z-2D\',o.2D)};G.R.86=A(){u o.J.5m(\'1R-3z-aj-7G\')!==M};G.R.c3=A(){L 4a;C(G.38||o.86()){u}4a=o.7D();C(4a!==1){1W.2s("eo 4a = "+4a);o.ad=34;o.6r=o.J.F;o.6t=o.J.I;o.J.F=o.6r*4a;o.J.I=o.6t*4a;o.J.as.F=""+o.6r+"at";o.J.as.I=""+o.6t+"at";o.1r.em(4a,4a);o.F=o.5s=o.J.F;u o.I=o.6s=o.J.I}};G.R.7D=A(){L 85,43;43=4R.43||1;85=o.1r.el||o.1r.ek||o.1r.ej||o.1r.ei||o.1r.eh||1;u 43/85};G.R.b3=A(){u(4R.43!=M)&&4R.43!==1};G.R.bu=A(){C(o.86()||!o.b3()){u 2K}u o.7y()!==M};G.R.7y=A(){C(o.1c==M){u M}u o.1c.5m(\'1R-3z-aj\')};G.R.7J=A(b7){L 7M;7M=o.J;o.J=b7;o.1r=o.J.3o(\'2d\');7M.8m.8j(o.J,7M);o.F=o.J.F;o.I=o.J.I;o.8d();u o.1d={F:o.J.F,I:o.J.I}};G.R.be=A(2r){L 1q=o;C(2r==M){2r=A(){}}2M.51(o,"bh");u o.4v.3O(A(){1q.1r.7P(1q.2H,0,0);u 2r.1S(1q)})};G.R.eg=A(){L i,28,H,1l,K;C(!G.5X){4p"89 7G";}K=o.bl();Y(i=H=0,1l=K.X;H<1l;i=++H){28=K[i];o.P[i]=28}u o.1r.7P(o.2H,0,0)};G.R.ef=A(){L J,2z,i,2H,28,P,H,1l,K;J=1X.3c(\'J\');1J.6q(o.J,J);J.F=o.5s;J.I=o.6s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2m(o.P);o.6a=29;u o.P=29.P};G.R.9T=A(){o.P=o.65.9V();u o.6a=o.8y.9V()};G.R.9X=A(){u o.6a.a9()};u G})();5N=(A(){A 5N(c){o.c=c}5N.R.ee=A(){L i,3b,61,H,1j,1s,K;3b={r:{},g:{},b:{}};Y(i=H=0;H<=D;i=++H){3b.r[i]=0;3b.g[i]=0;3b.b[i]=0}Y(i=1j=0,K=o.c.P.X;1j<K;i=1j+=4){3b.r[o.c.P[i]]++;3b.g[o.c.P[i+1]]++;3b.b[o.c.P[i+2]]++}61=o.c.P.X/4;Y(i=1s=0;1s<=D;i=++1s){3b.r[i]/=61;3b.g[i]/=61;3b.b[i]/=61}u 3b};u 5N})();G.84=A(){L 1C,6b,ax,H,1l,1n;6b=1X.ed("1C[1R-3z]");C(!(6b.X>0)){u}1n=[];Y(H=0,1l=6b.X;H<1l;H++){1C=6b[H];1n.2m(ax=1M 4I(1C,A(){o.aG();u o.3O()}))}u 1n};C(G.9O){(A(){C(1X.8t==="7p"){u G.84()}V{u 1X.by("ec",G.84,2K)}})()}4I=(A(){L 7H;7H="(\\\\w+)\\\\((.*?)\\\\)";A 4I(49,aP){o.aR=49.5m(\'1R-3z\');o.3z=G(49,aP.8B(o))}4I.R.aG=A(){L 1G,1w,6m,88,8a,m,r,6p,H,1l,K,1n;o.49=o.3z.J;r=1M b6(7H,\'g\');6p=o.aR.8c(r);C(!(6p.X>0)){u}r=1M b6(7H);1n=[];Y(H=0,1l=6p.X;H<1l;H++){88=6p[H];K=88.8c(r),m=K[0],1w=K[1],1G=K[2];8a=1M eb("u A() { o."+1w+"("+1G+"); };");b9{6m=8a();1n.2m(6m.1S(o.3z))}bd(e){1n.2m(1W.2s(e))}}u 1n};4I.R.3O=A(){L 49;49=o.49;u o.3z.be(A(){u 49.8m.8j(o.bf(),49)})};u 4I})();G.2l=2l=(A(){A 2l(){}2l.8f={};2l.T=A(1m,6m){u o.8f[1m]=6m};2l.3O=A(1m,Z,U){u o.8f[1m](Z,U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}98=o.b2(r,g,b);u o.bx(98)};1Y.dL=A(l,a,b){};u 1Y})();2M=(A(){A 2M(){}2M.4L={};2M.9q=["9r","9s","bh","9v","9w","5d"];2M.51=A(3y,1p,1R){L 5O,H,1l,K,1n;C(o.4L[1p]&&o.4L[1p].X){K=o.4L[1p];1n=[];Y(H=0,1l=K.X;H<1l;H++){5O=K[H];C(5O.3y===M||3y.2D===5O.3y.2D){1n.2m(5O.fn.1S(3y,1R))}V{1n.2m(9K 0)}}u 1n}};2M.dK=A(3y,1p,fn){L 9a,9c;C(1v 3y==="3I"){9c=3y;9a=1p;3y=M;1p=9c;fn=9a}C(91.1S(o.9q,1p)<0){u 2K}C(!o.4L[1p]){o.4L[1p]=[]}o.4L[1p].2m({3y:3y,fn:fn});u 34};u 2M})();G.2M=2M;G.Q=Q=(A(){A Q(){}Q.33={7Y:1,7Z:2,81:3,83:4,9d:5,2p:6};Q.T=A(1m,9Q){u G.R[1m]=9Q};u Q})();G.2N=2N=(A(){A 2N(){}2N.9R=/(?:(?:dJ|dI):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;2N.bA=A(1C){C(1C==M){u 2K}C(o.9U(1C)){u 2K}u o.6I(1C.1D)};2N.9U=A(1C){L K;u(1C.8E!=M)&&((K=1C.8E.6o())===\'bj\'||K===\'9W-dH\')};2N.6I=A(9Z){L 6H;6H=9Z.8c(o.9R);C(6H){u 6H[1]!==1X.dG}V{u 2K}};2N.ab=A(1D){C(o.6I(1D)){C(!G.6c.X){1W.9f("dF 6v dE a af 1c dD a dC ai. bQ: "+1D)}V{C(G.6I(G.6c)){1W.9f("dB 9W a af ai Y dA dz.");u}u""+G.6c+"?bU="+(ap(1D))}}};2N.5J=A(1D){u""+G.6c+"?"+G.bR+"="+(ap(1D))};2N.dy=A(4V){L 6E;6E={dx:\'dw\',fv:\'dv\',du:\'ds\',dr:\'dq\'};4V=4V.6o();C(6E[4V]!=M){4V=6E[4V]}u"dp/do."+4V};u 2N})();G.R.dn=A(){C(1v 2k!=="48"&&2k!==M){u o.aQ.5C(o,1y)}V{u o.aS.5C(o,1y)}};G.R.aS=A(1p){L 1c;C(1p==M){1p="aT"}1p=1p.6o();1c=o.9i(1p).dm("1c/"+1p,"1c/dk-dj");u 1X.di.dh=1c};G.R.aQ=A(5H,7T){L 9l;C(7T==M){7T=34}b9{9l=fs.dg(5H);C(9l.df()&&!7T){u 2K}}bd(e){1W.2s("de dd 5H "+5H)}u fs.dc(5H,o.J.db(),A(){u 1W.2s("da d9 6v "+5H)})};G.R.bf=A(1p){L 1C;1C=1X.3c(\'1C\');1C.1D=o.9i(1p);1C.F=o.1d.F;1C.I=o.1d.I;C(4R.43){1C.F/=4R.43;1C.I/=4R.43}u 1C};G.R.9i=A(1p){C(1p==M){1p="aT"}1p=1p.6o();u o.J.d8("1c/"+1p)};3j=(A(){A 3j(c){o.c=c;o.1w=o.c;o.1E={9k:\'9j\',2a:1.0};o.d7=1J.8M.4Y();o.J=1v 2k!=="48"&&2k!==M?1M 4c():1X.3c(\'J\');o.J.F=o.c.1d.F;o.J.I=o.c.1d.I;o.1r=o.J.3o(\'2d\');o.1r.d6(o.J.F,o.J.I);o.2H=o.1r.4F(0,0,o.J.F,o.J.I);o.P=o.2H.1R}3j.R.2P=A(cb){u o.c.2P.1S(o.c,cb)};3j.R.3d=A(bi){o.1E.9k=bi;u o};3j.R.2a=A(2a){o.1E.2a=2a/1h;u o};3j.R.3W=A(){L i,2O,H,K;2O=o.c.P;Y(i=H=0,K=o.c.P.X;H<K;i=H+=4){o.P[i]=2O[i];o.P[i+1]=2O[i+1];o.P[i+2]=2O[i+2];o.P[i+3]=2O[i+3]}u o};3j.R.4C=A(){u o.c.4C.5C(o.c,1y)};3j.R.d5=A(1c){C(1v 1c==="3E"){1c=1c.1D}V C(1v 1c==="3I"&&1c[0]==="#"){1c=$(1c).1D}C(!1c){u o}o.c.4v.5W.2m({1p:Q.33.9d,1D:1c,29:o});u o};3j.R.a9=A(){L i,4Q,2O,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=A(x,y){L S;S=o.9b(x,y,o.F);u{r:o.c.P[S],g:o.c.P[S+1],b:o.c.P[S+2],a:o.c.P[S+3]}};2Y.R.d1=A(x,y,B){L S;S=o.9b(x,y,o.F);o.c.P[S]=B.r;o.c.P[S+1]=B.g;o.c.P[S+2]=B.b;u o.c.P[S+3]=B.a};u 2Y})();2p=(A(){A 2p(){}2p.97={};2p.T=A(1m,3X){u o.97[1m]=3X};2p.3O=A(1r,1m,1G){u o.97[1m].5C(1r,1G)};u 2p})();G.2p=2p;G.1N=1N=(A(){1N.4w=G.38?7d(\'d0\').cZ().X:4;A 1N(c){L 1q=o;o.c=c;o.4e=A(){u 1N.R.4e.5C(1q,1y)};o.5W=[];o.52=M}1N.R.5w=A(93){C(93==M){u}u o.5W.2m(93)};1N.R.4e=A(){L 29;C(o.5W.X===0){2M.51(o,"9v");C(o.8Z!=M){o.8Z.1S(o.c)}u o}o.27=o.5W.bL();5f(o.27.1p){1Z Q.33.81:29=o.c.8x.bL();o.c.9P(29);u o.4e();1Z Q.33.83:o.c.9X();o.c.9T();u o.4e();1Z Q.33.9d:u o.bM(o.27.29,o.27.1D);1Z Q.33.2p:u o.bN();cY:u o.bP()}};1N.R.3O=A(2r){o.8Z=2r;o.52=1M 7E(o.c.P.X);u o.4e()};1N.R.8X=A(fn){L 6k,8W,2G,1t,f,i,8U,n,1H,H,K,1n,1q=o;o.76=0;n=o.c.P.X;8W=O.39((n/4)/1N.4w);6k=8W*4;8U=6k+((n/4)%1N.4w)*4;1n=[];Y(i=H=0,K=1N.4w;0<=K?H<K:H>K;i=0<=K?++H:--H){1H=i*6k;1t=1H+(i===1N.4w-1?8U:6k);C(G.38){f=5Z(A(){u fn.1S(1q,i,1H,1t)});2G=f.cX();1n.2m(o.5d(2G))}V{1n.2m(7m((A(i,1H,1t){u A(){u fn.1S(1q,i,1H,1t)}})(i,1H,1t),0))}}u 1n};1N.R.bP=A(){2M.51(o.c,"9r",o.27);C(o.27.1p===Q.33.7Y){u o.8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b+=N;u B})});Q.T("3x",A(N){N*=-0.cJ;u o.2b("3x",A(B){L 1f;1f=O.1f(B.r,B.g,B.b);C(B.r!==1f){B.r+=(1f-B.r)*N}C(B.g!==1f){B.g+=(1f-B.g)*N}C(B.b!==1f){B.b+=(1f-B.b)*N}u B})});Q.T("3Q",A(N){N*=-1;u o.2b("3Q",A(B){L 1k,4u,1f;1f=O.1f(B.r,B.g,B.b);4u=(B.r+B.g+B.b)/3;1k=((O.4h(1f-4u)*2/D)*N)/1h;C(B.r!==1f){B.r+=(1f-B.r)*1k}C(B.g!==1f){B.g+=(1f-B.g)*1k}C(B.b!==1f){B.b+=(1f-B.b)*1k}u B})});Q.T("4i",A(N){u o.2b("4i",A(B){L 4u;4u=2Q.6e(B);B.r=4u;B.g=4u;B.b=4u;u B})});Q.T("2i",A(N){N=O.1I((N+1h)/1h,2);u o.2b("2i",A(B){B.r/=D;B.r-=0.5;B.r*=N;B.r+=0.5;B.r*=D;B.g/=D;B.g-=0.5;B.g*=N;B.g+=0.5;B.g*=D;B.b/=D;B.b-=0.5;B.b*=N;B.b+=0.5;B.b*=D;u B})});Q.T("8q",A(N){u o.2b("8q",A(B){L h,4U,2w;4U=1Y.aU(B.r,B.g,B.b);h=4U.h*1h;h+=O.4h(N);h=h%1h;h/=1h;4U.h=h;2w=1Y.aZ(4U.h,4U.s,4U.v);2w.a=B.a;u 2w})});Q.T("3Y",A(){L 5e,2w;C(1y.X===2){2w=1Y.7i(1y[0]);5e=1y[1]}V C(1y.X===4){2w={r:1y[0],g:1y[1],b:1y[2]};5e=1y[3]}u o.2b("3Y",A(B){B.r-=(B.r-2w.r)*(5e/1h);B.g-=(B.g-2w.g)*(5e/1h);B.b-=(B.b-2w.b)*(5e/1h);u B})});Q.T("9Y",A(){u o.2b("9Y",A(B){B.r=D-B.r;B.g=D-B.g;B.b=D-B.b;u B})});Q.T("3V",A(N){C(N==M){N=1h}N/=1h;u o.2b("3V",A(B){B.r=O.2c(D,(B.r*(1-(0.cI*N)))+(B.g*(0.cH*N))+(B.b*(0.cG*N)));B.g=O.2c(D,(B.r*(0.cF*N))+(B.g*(1-(0.cE*N)))+(B.b*(0.cD*N)));B.b=O.2c(D,(B.r*(0.cC*N))+(B.g*(0.cB*N))+(B.b*(1-(0.cA*N))));u B})});Q.T("2h",A(N){u o.2b("2h",A(B){B.r=O.1I(B.r/D,N)*D;B.g=O.1I(B.g/D,N)*D;B.b=O.1I(B.b/D,N)*D;u B})});Q.T("7z",A(N){N=O.4h(N)*2.55;u o.2b("7z",A(B){L 3S;3S=2Q.bv(N*-1,N);B.r+=3S;B.g+=3S;B.b+=3S;u B})});Q.T("7A",A(N){N=O.4h(N)*2.55;u o.2b("7A",A(B){C(B.r>D-N){B.r=D}V C(B.r<N){B.r=0}C(B.g>D-N){B.g=D}V C(B.g<N){B.g=0}C(B.b>D-N){B.b=D}V C(B.b<N){B.b=0}u B})});Q.T("3m",A(1E){L 5j,8e;C(1v 1E!=="3E"){u o}Y(5j 78 1E){C(!6U.1S(1E,5j))5o;8e=1E[5j];C(8e===0){9y 1E[5j];5o}1E[5j]/=1h}C(1E.X===0){u o}u o.2b("3m",A(B){C(1E.32!=M){C(1E.32>0){B.r+=(D-B.r)*1E.32}V{B.r-=B.r*O.4h(1E.32)}}C(1E.4q!=M){C(1E.4q>0){B.g+=(D-B.g)*1E.4q}V{B.g-=B.g*O.4h(1E.4q)}}C(1E.3G!=M){C(1E.3G>0){B.b+=(D-B.b)*1E.3G}V{B.b-=B.b*O.4h(1E.3G)}}u B})});Q.T("26",A(){L 1Q,3K,3C,3w,3v,1t,i,1H,H,1j,K,2L;3K=1y[0],3C=2<=1y.X?9L.1S(1y,1):[];C(1v 3K==="3I"){3K=3K.cz("")}C(3K[0]==="v"){3K=[\'r\',\'g\',\'b\']}C(3C.X<3||3C.X>4){4p"7f an cy 1y 6v 26 1w";}1H=3C[0];3w=3C[1];3v=3C.X===4?3C[2]:3C[1];1t=3C[3C.X-1];1Q=2Q.1Q(1H,3w,3v,1t,0,D);C(1H[0]>0){Y(i=H=0,K=1H[0];0<=K?H<K:H>K;i=0<=K?++H:--H){1Q[i]=1H[1]}}C(1t[0]<D){Y(i=1j=2L=1t[0];2L<=D?1j<=D:1j>=D;i=2L<=D?++1j:--1j){1Q[i]=1t[1]}}u o.2b("26",A(B){L 1s,41;Y(i=1s=0,41=3K.X;0<=41?1s<41:1s>41;i=0<=41?++1s:--1s){B[3K[i]]=1Q[B[3K[i]]]}u B})});Q.T("2R",A(N){L 3w,3v,p;p=O.4h(N)/1h;3w=[0,D*p];3v=[D-(D*p),D];C(N<0){3w=3w.aq();3v=3v.aq()}u o.26(\'2w\',[0,0],3w,3v,[D,D])});G.2p.T("82",A(F,I,x,y){L J,2z;C(x==M){x=0}C(y==M){y=0}C(1v 2k!=="48"&&2k!==M){J=1M 4c(F,I)}V{J=1X.3c(\'J\');1J.6q(o.J,J);J.F=F;J.I=I}2z=J.3o(\'2d\');2z.6u(o.J,x,y,F,I,0,0,F,I);o.5S={x:x,y:y};o.9z=34;u o.7J(J)});G.2p.T("7L",A(2t){L J,2z;C(2t==M){2t=M}C(2t===M||((2t.F==M)&&(2t.I==M))){1W.br("7f ac cx 1d bJ Y 7L");u}C(2t.F==M){2t.F=o.J.F*2t.I/o.J.I}V C(2t.I==M){2t.I=o.J.I*2t.F/o.J.F}C(1v 2k!=="48"&&2k!==M){J=1M 4c(2t.F,2t.I)}V{J=1X.3c(\'J\');1J.6q(o.J,J);J.F=2t.F;J.I=2t.I}2z=J.3o(\'2d\');2z.6u(o.J,0,0,o.J.F,o.J.I,0,0,2t.F,2t.I);o.7k=34;u o.7J(J)});G.Q.T("82",A(){u o.5k("82",8Q.R.4J.1S(1y,0))});G.Q.T("7L",A(){u o.5k("7L",8Q.R.4J.1S(1y,0))});G.Q.T("cw",A(){u o.3u("cv 7N",[1,1,1,1,1,1,1,1,1])});G.Q.T("cu",A(){u o.3u("ct cs 7N",[0,0,1,0,0,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,0])});G.Q.T("cr",A(){u o.3u("cq 7N",[1,4,6,4,1,4,16,24,16,4,6,24,36,24,6,4,16,24,16,4,1,4,6,4,1])});G.Q.T("cp",A(42){L 2y;C(42===0||42===4W){2y=[0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0]}V C((42>0&&42<90)||(42>4W&&42<aJ)){2y=[0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0]}V C(42===90||42===aJ){2y=[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0]}V{2y=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]}u o.3u("co 7N",2y)});G.Q.T("64",A(1k){C(1k==M){1k=1h}1k/=1h;u o.3u("dV",[0,-1k,0,-1k,4*1k+1,-1k,0,-1k,0])});9e={3s:A(B,1k,E){B.r=B.r-(B.r*1k*E.37);B.g=B.g-(B.g*1k*E.37);B.b=B.b-(B.b*1k*E.37);u B},2h:A(B,1k,E){B.r=O.1I(B.r/D,O.1f(10*1k*E.37,1))*D;B.g=O.1I(B.g/D,O.1f(10*1k*E.37,1))*D;B.b=O.1I(B.b/D,O.1f(10*1k*E.37,1))*D;u B},3Y:A(B,1k,E){B.r-=(B.r-E.31.r)*1k;B.g-=(B.g-E.31.g)*1k;B.b-=(B.b-E.31.b)*1k;u B}};Q.T("1P",A(1o,37){L 1Q,3f,1t,1H;C(37==M){37=60}C(1v 1o==="3I"&&1o.4S(-1)==="%"){C(o.1d.I>o.1d.F){1o=o.1d.F*(3P(1o.4S(0,1o.X-1),10)/1h)}V{1o=o.1d.I*(3P(1o.4S(0,1o.X-1),10)/1h)}}37/=1h;3f=[o.1d.F/2,o.1d.I/2];1H=O.8g(O.1I(3f[0],2)+O.1I(3f[1],2));1t=1H-1o;1Q=2Q.1Q([0,1],[30,30],[70,60],[1h,80]);u o.2b("1P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J,6x,2J,ca,77,cc,5G,4j,74,cd,4y,ce,73,cf,3F,cg,72,ch,3H,ci,71,cj,5y,ck,6Z,cl,4z,cm,4x,7K,5l,5t,6X,7U,3n,aK,5A,aF,2T,aE,6W,aC,4A,7O,6V,5B,56,aA,4E,az,3h,ay,3J,aw,4f,av,6S,au,4B,ao,6R,am,4j,a8,6Q,a7,2V,a6,6N,a5,5i,a4,3F,a3,4D,a2,6M,a1,5I,a0,6L,9M,3L,9I,6K,9H,5x,9F,6J,9D,4G,9A,4x,7K,57,9x,5t,9u,3l,7U,6G,9t,58,5A,6D,9m,2T,c9,6C,c6,5p,8p,6A,7O,3D,c5,5B,c0,5n,bX,4E,bO,4k,3h,6y,bF,3J,bE,6x,4f];59=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];8k=A(F,I,5L,5K,4g,X,b4){L 3R,1r,2n,44,4o,3T,4n;3R=1v 2k!=="48"&&2k!==M?1M 4c():1X.3c(\'J\');3R.F=F;3R.I=I;44=5L+O.aY(4g)*X*0.5;3T=5K+O.aW(4g)*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f=E.1T/2;2n=8l(o.1d.F,o.1d.I,E.3f.x,E.3f.y,6g,6f);u o.5k("9g",[2n,E.7C,E.7B,E.4X])})})();G.Q.T("ew",A(){u o.3u("b8 ey",[0,0,0,-1,1,0,0,0,0])});G.Q.T("ez",A(){u o.3u("b8 eA",[-1,-1,-1,-1,8,-1,-1,-1,-1])});G.Q.T("eB",A(){u o.3u("eC",[-2,-1,0,-1,1,1,0,1,2])});G.Q.T("8o",A(N){L 6n,6l;6n=6h/N;6l=D/(N-1);u o.2b("8o",A(B){B.r=O.39(O.39(B.r/6n)*6l);B.g=O.39(O.39(B.g/6n)*6l);B.b=O.39(O.39(B.b/6n)*6l);u B})});G.Q.T("eG",A(1P){C(1P==M){1P=34}o.4i();o.2i(5);o.7z(3);o.3V(1h);o.3m({32:8,3G:2,4q:4});o.2h(0.87);C(1P){u o.1P("40%",30)}});G.Q.T("eI",A(1P){C(1P==M){1P=34}o.3s(15);o.2R(15);o.26(\'2w\',[0,0],[54,0],[eJ,D],[D,D]);o.3x(-20);o.2h(1.8);C(1P){o.1P("50%",60)}u o.3s(5)});G.Q.T("eK",A(7w){C(7w==M){7w=2K}o.3Q(20);o.26(\'2w\',[5,0],[eM,bC],[8w,eP],[eQ,D]);o.64(15);o.1P("45%",20);C(7w){o.4i();o.2i(4)}u o});G.Q.T("eR",A(){o.2i(1h);o.3s(15);o.2R(10);o.8o(80);o.7A(30);u o.4i()});G.Q.T("eS",A(){o.2R(3.5);o.3x(-5);o.3Q(50);o.3V(60);o.3Y("#ak",10);o.3m({32:8,3G:8});o.2i(5);o.2h(1.2);u o.1P("55%",25)});G.Q.T("eV",A(){o.2R(5);o.3Y("#ak",4);o.3V(20);o.3m({3G:8,32:3});o.26(\'b\',[0,0],[1h,bC],[4W,4W],[D,D]);o.2i(15);o.3Q(75);u o.2h(1.6)});G.Q.T("eW",A(){o.26(\'2w\',[0,0],[1h,50],[bm,54],[D,D]);o.3Q(-30);o.3x(-30);o.3Y(\'#eY\',30);o.2i(-5);u o.2h(1.4)});G.Q.T("eZ",A(){o.3s(5);o.2R(8);o.2i(4);o.3Y(\'#f0\',30);o.3Q(50);u o.2h(1.3)});G.Q.T("f1",A(){o.2h(1.5);o.7A(25);o.3x(-60);o.2i(5);o.7z(5);u o.1P("50%",30)});G.Q.T("f2",A(){o.3x(-35);o.26(\'b\',[20,0],[90,7e],[f5,9J],[D,bV]);o.26(\'r\',[0,0],[9J,90],[f8,7e],[D,D]);o.26(\'g\',[10,0],[f9,fa],[fb,1h],[D,fc]);o.26(\'2w\',[0,0],[7e,1h],[1e,bm],[D,D]);u o.64(20)});G.Q.T("fd",A(){o.4i();o.3V(10);o.2R(10);o.2i(15);u o.1P("60%",35)});G.Q.T("fe",A(){o.3x(-20);o.3Q(-50);o.2h(1.1);o.3V(30);o.3m({32:-10,3G:5});o.26(\'2w\',[0,0],[80,50],[1e,bV],[D,D]);u o.1P("60%",30)});G.Q.T("ff",A(1P){C(1P==M){1P=34}o.3s(10);o.2P(A(){o.3d("5h");o.2a(80);o.3W();o.1w.2h(0.8);o.1w.2i(50);u o.1w.2R(10)});o.2P(A(){o.3d("9G");o.2a(80);u o.4C("#fg")});o.2R(20);o.2h(0.8);C(1P){u o.1P("45%",20)}});G.Q.T("fh",A(){o.2h(1.2);o.2P(A(){o.3d("7h");o.2a(60);o.3W();o.1w.3m({32:5});u o.1w.5E(15)});o.2P(A(){o.3d("9E");o.2a(40);u o.4C("#fj")});o.2P(A(){o.3d("5h");o.2a(35);o.3W();o.1w.3s(40);o.1w.3Q(40);o.1w.2R(30);o.1w.2i(15);o.1w.26(\'r\',[0,40],[1e,1e],[1e,1e],[D,8N]);o.1w.26(\'g\',[0,40],[1e,1e],[1e,1e],[D,8N]);o.1w.26(\'b\',[0,40],[1e,1e],[1e,1e],[D,8N]);u o.1w.5E(5)});o.26(\'r\',[20,0],[1e,fl],[1e,1e],[6Y,D]);o.26(\'g\',[20,0],[1e,1e],[1e,1e],[6Y,D]);o.26(\'b\',[20,0],[1e,8R],[1e,1e],[6Y,D]);u o.1P("45%",20)});G.Q.T("fo",A(){o.3s(40);o.3Y("#c2",10);o.26(\'b\',[0,10],[1e,4W],[8w,8w],[D,D]);o.2P(A(){o.3d(\'7h\');o.2a(50);o.3W();o.1w.2h(0.7);u o.2P(A(){o.3d(\'9j\');o.2a(60);u o.4C(\'#c2\')})});o.2P(A(){o.3d(\'5h\');o.2a(60);o.3W();o.1w.3x(50);o.1w.8q(90);u o.1w.2i(10)});o.2h(1.4);o.3Q(-30);o.2P(A(){o.2a(10);u o.4C(\'#fq\')});u o});G.Q.T("fr",A(){o.3x(20);o.2h(1.4);o.4i();o.2i(5);o.3V(1h);o.3m({32:8,3G:2,4q:4});o.2h(0.8);o.2i(5);o.2R(10);o.2P(A(){o.3d(\'7h\');o.3W();o.2a(55);u o.1w.5E(10)});u o.1P("50%",30)});G.Q.T("ft",A(){o.4i();o.2i(10);o.2h(0.9);o.2P(A(){o.3d("5h");o.2a(40);o.3W();o.1w.2R(15);o.1w.2i(15);u o.1w.3m({4q:10,32:5})});o.3V(30);o.26(\'2w\',[0,10],[7e,90],[4W,54],[6Y,D]);o.3m({32:5,4q:-2});u o.2R(15)});G.Q.T("fu",A(){o.64(40);o.3x(-50);o.3m({32:3});o.2P(A(){o.3d("5h");o.2a(80);o.3W();o.1w.64(5);o.1w.2i(50);o.1w.2R(10);u o.1w.3m({3G:5})});u o.3s(10)});(A(){L 4l,5u,59;5u=[2J,2J,2V,2J,3n,2V,3l,2J,3H,3n,3h,2V,3L,3l,3D,2J,4y,3H,4z,3n,4A,3h,4B,2V,4D,3L,4G,3l,2T,3D,4k,2J,5G,4y,3F,3H,5y,4z,5l,3n,2T,4A,56,3h,4f,4B,4j,2V,5i,4D,5I,3L,5x,4G,57,3l,58,2T,5p,3D,5n,4k,3J,2J,77,5G,74,4y,73,3F,72,3H,71,5y,6Z,4z,4x,5l,6X,3n,5A,2T,6W,4A,6V,56,4E,3h,3J,4f,6S,4B,6R,4j,6Q,2V,6N,5i,3F,4D,6M,5I,6L,3L,6K,5x,6J,4G,4x,57,5t,3l,6G,58,6D,2T,6C,5p,6A,3D,5B,5n,4E,4k,6y,3J,6x,2J,ca,77,cc,5G,4j,74,cd,4y,ce,73,cf,3F,cg,72,ch,3H,ci,71,cj,5y,ck,6Z,cl,4z,cm,4x,7K,5l,5t,6X,7U,3n,aK,5A,aF,2T,aE,6W,aC,4A,7O,6V,5B,56,aA,4E,az,3h,ay,3J,aw,4f,av,6S,au,4B,ao,6R,am,4j,a8,6Q,a7,2V,a6,6N,a5,5i,a4,3F,a3,4D,a2,6M,a1,5I,a0,6L,9M,3L,9I,6K,9H,5x,9F,6J,9D,4G,9A,4x,7K,57,9x,5t,9u,3l,7U,6G,9t,58,5A,6D,9m,2T,c9,6C,c6,5p,8p,6A,7O,3D,c5,5B,c0,5n,bX,4E,bO,4k,3h,6y,bF,3J,bE,6x,4f];59=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];4l=A(){o.r=0;o.g=0;o.b=0;o.a=0;u o.1V=M};G.2p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||||||||||||||||this||||||return||||||function|rgba|if|255|opts|width|Caman|_i|height|canvas|_ref|var|null|adjust|Math|pixelData|Filter|prototype|loc|register|rgbaParent|else|pixels|length|for|rgbaLayer|||||||||||radiusPlus1|stack|image|dimensions|128|max|yi|100|stackIn|_j|amt|_len|name|_results|size|type|_this|context|_k|end|corners|typeof|filter|pg|arguments|pr|pb|result|img|src|options|stackOut|args|start|pow|Util|b_sum|g_sum|new|Renderer|r_sum|vignette|bezier|data|call|radius|coords|next|Log|document|Convert|case|||||||curves|currentJob|pixel|layer|opacity|process|min||r_in_sum|g_in_sum|b_in_sum|gamma|contrast|val|exports|Blender|push|gradient|g_out_sum|Plugin|b_out_sum|callback|debug|newDims|idx|r_out_sum|rgb|cornerRadius|kernel|ctx|div|builder|sumFactor|id|mul_sum|shg_sum|bnum|imageData|stackStart|512|false|_ref1|Event|IO|parentData|newLayer|Calculate|exposure|rbs|312|divisor|456|newLoc|Store|PixelInfo|res||color|red|Type|true|||strength|NodeJS|floor|_l|levels|createElement|setBlendingMode|_m|center|_p|271|_o|Layer|widthMinus1|335|channels|328|getContext|_q|_n|055|brightness|imagePixels|processKernel|ctrl2|ctrl1|saturation|target|caman|clampRGB|bias|cps|292|object|428|blue|405|string|265|chans|388|iradius|heightMinus1|execute|parseInt|vibrance|cnv|rand|y1|initObj|sepia|copyParent|plugin|colorize|radialDist||_ref2|degrees|devicePixelRatio|x1||defaults|stackEnd|undefined|ele|ratio|obj|Canvas|maxDist|processNext|259|angle|abs|greyscale|475|273|BlurStack|search|y2|x2|throw|green|yp|yw|pixelInfo|avg|renderer|Blocks|354|454|364|298|496|fillColor|420|278|getImageData|360|curveY|CamanParser|slice|left|events|distance|break|bottom|hex|layerData|window|substr|originalPixelData|hsv|lang|180|steps|get|addColorStop||trigger|modPixelData|1379310345|200||284|347|323|shg_table|leftCoord|Image|top|blockFinished|level|switch|items|multiply|437|chan|processPlugin|345|getAttribute|282|continue|302|blend|right|originalWidth|341|mul_table|builderIndex|add|374|383|wh4|320|287|apply|finishInit|stackBlur|dim|482|file|404|proxyUrl|centerY|centerX|_r|Analyze|event|Cx|Cy|copy|cropCoordinates|attr|iblend|key|renderQueue|allowRevert|scaledCanvas|Fiber||numPixels|y0|currentIndex|sharpen|pixelStack|prop|getFloat|lookupValue|x0|currentLayer|imgs|remoteProxy|adjustSize|luminance|radius2|radius1|256|imageLoaded|Logger|blockN|numOfValues|func|numOfAreas|toLowerCase|unparsedInstructions|copyAttributes|preScaledWidth|originalHeight|preScaledHeight|drawImage|to|startY|261|269|Root|297|white|307|318|langToExt|blurLevels|329|matches|isURLRemote|367|381|396|412|446|horiz|vert|465|485|507|index|__hasProp|291|305|337|235|373||394|417|441|468||blocksDone|497|in|sel|root|extend|dest|require|120|Invalid|hueToRGB|overlay|hexToRGB|initializedPixelData|resized|rightCoord|setTimeout|By|Bx|complete|initType|highBound|imageUrl|lowBound|w4|wh|grey|round|hiDPIReplacement|noise|clip|radiusFactor|startRadius|hiDPIRatio|Uint8Array|percent|disabled|INST_REGEX|dist|replaceCanvas|350|resize|oldCanvas|Blur|294|putImageData|coord|processFn|startX|overwrite|332|getAttrId|_ref3|endX|Single|Kernel||LayerDequeue|crop|LayerFinished|DOMUpdated|backingStoreRatio|hiDPIDisabled||inst|Revert|instFunc|method|match|reloadCanvasData|value|blenders|sqrt|waitForImageLoaded|imageAdjustments|replaceChild|getLinearGradientMap|getRadialGradientMap|parentNode|onload|posterize|299|hue|Ax|Ay|readyState|curveX|listener|190|canvasQueue|layerStack|x3|y3|bind|04045|endY|crossOrigin|radiusPixels|version|0031308|nodeName|except|4166666667|whiteX|uniqid|215|whiteY|whiteZ|Array|108|finished|008856451679|lastBlockN|3333333333|blockPixelLength|eachBlock|787037037|finishedFn||__indexOf||job|2068965517||1284185493|plugins|xyz|locationXY|_fn|coordinatesToLocation|_type|LoadOverlay|vignetteFilters|info|compoundBlur|black|toBase64|normal|blendingMode|stats|315|yield|hasId|assignId|types|processStart|processComplete|326|338|renderFinished|blockStarted|344|delete|cropped|357|DEBUG|node|363|addition|370|softLight|377|385|144|void|__slice|392|put|autoload|executeLayer|filterFunc|domainRegex|pushContext|popContext|corsEnabled|pop|use|applyCurrentLayer|invert|url|400|408|416|424|433|442|451|460|470|applyToParent|item|remoteCheck|or|scaled|from|remote|1000|initNode|proxy|hidpi|e87b22|initImage|480|number|491|encodeURIComponent|reverse|increaseFactor|style|px|501|257|262|parser|268|274|281|radiusData|301|initCanvas|309|316|parse|release|domIsLoaded|270|324|while|fillRect|fillStyle|loaded|ready|nodeSave|dataStr|browserSave|png|rgbToHSV|Width|sin|rectangularVignette|cos|hsvToRGB|parseArguments|Height|rgbToXYZ|hiDPICapable|mirrored|setup|RegExp|newCanvas|Edge|try|2126|7152|0722|catch|render|toImage|err|renderStart|mode|anonymous|setAttribute|originalVisiblePixels|140|isNaN|has|log|DOM|error|console|initialized|needsHiDPISwap|randomRange|getPixelRelative|xyzToLab|addEventListener|swapped|isRemote|nowLoc|150|047|263|267|date|883|locationToCoordinates|given|focusWidth|shift|loadOverlay|executePlugin|275|executeFilter|URL|proxyParam|116|500|camanProxyUrl|230|setInitObject|280|renderBlock|renderKernel|285|threshold|ea1c5d|hiDPIAdjustments|Block|289|304|blockNum|totalBlocks|310|505||489|461|447|435|422|411|399|389|378|368|359|5372|Motion|motionBlur|Gaussian|gaussianBlur|Radial|Heavy|heavyRadialBlur|Box|boxBlur|missing|of|split|869|534|272|168|314|349|189|769|607|01|darken|lighten|exclusion|difference|screen|flush|blocksFinished|Rendering|endPixel|startPixel|End|Start|Executing|run|default|cpus|os|putPixel|getPixel|putPixelRelative|warn|overlayImage|createImageData|layerID|toDataURL|writing|Finished|toBuffer|writeFile|output|Creating|isFile|statSync|href|location|stream|octet|createLinearGradient|replace|save|caman_proxy|proxies|js|javascript|pl|createRadialGradient|perl|py|rb|ruby|useProxy|images|loading|Cannot|configured|without|load|Attempting|domain|credentials|https|http|listen|labToRGB|rgbToLab|labToXYZ|0570|2040|0557|0415|8758|9689|4986|Sharpen|2406|xyzToRGB|9505|1192|0193|1805|3576|4124|hslToRGB|rgbToHSL|charAt|114|587|toFixed|random|Function|DOMContentLoaded|querySelectorAll|calculateLevels|reset|revert|backingStorePixelRatio|oBackingStorePixelRatio|msBackingStorePixelRatio|mozBackingStorePixelRatio|webkitBackingStorePixelRatio|scale|0xff|HiDPI|tiltShift|resetOriginalPixelData|using|detected|Remote|PI|radialBlur|edgeEnhance|onerror|Enhance|edgeDetect|Detect|emboss|Emboss|Initializing|initialization|find|vintage|not|lomo|155|clarity|Could|130|readystatechange|analyze|220|250|sinCity|sunrise|instanceof|Released|crossProcess|orangePeel|Version|ff9000|love|c42007|grungy|jarques|toString|2013|186|fibers|nodeValue|138|115|105|148|248|pinhole|oldBoot|glowingSun|f49600|hazyDays|attributes|6899ba|querySelector|158|indexOf||herMajesty|hasOwnProperty|e5f0ff|nostalgia||hemingway|concentrate|python'.split('|'),0,{}))
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(A(){L $,59,2i,2O,F,4N,46,1Y,2D,5W,P,2P,5c,3a,1V,62,2U,2r,1O,6P,2R,1I,fs,51,8G,6z={}.fo,82=[].eQ||A(ai){Y(L i=0,l=o.X;i<l;i++){C(i 7z o&&o[i]===ai)u i}u-1},1r=o,aj=[].51;51=85.R.51;$=A(72,7l){C(7l==M){7l=26}C(1u 72==="3J"||(1u 2j!=="47"&&2j!==M)){u 72}u 7l.ey(72)};1I=(A(){A 1I(){}1I.88=(A(){L 2L;2L=0;u{4S:A(){u 2L++}}})();1I.7f=A(3W){L 6w,7K,6v,1C,H,1l;7K=3W;1C=51.1S(1x,1);Y(H=0,1l=1C.X;H<1l;H++){6w=1C[H];Y(6v 7z 6w){C(!6z.1S(6w,6v))5z;7K[6v]=6w[6v]}}u 7K};1I.3x=A(2n){C(2n<0){u 0}C(2n>D){u D}u 2n};1I.6s=A(b9,6r,E){L 6q,H,1l,K,2F,1p;C(E==M){E={}}K=b9.et;1p=[];Y(H=0,1l=K.X;H<1l;H++){6q=K[H];C((E.89!=M)&&(2F=6q.8c,82.1S(E.89,2F)>=0)){5z}1p.2h(6r.bQ(6q.8c,6q.en))}u 1p};u 1I})();C(1u 2j!=="47"&&2j!==M){6P=2j;46=7k(\'I\');5c=46.5c;5W=7k(\'em\');fs=7k(\'fs\')}V{6P=4Q}6P.F=F=(A(){F.8d={9w:"4.1.0",9N:"2/12/ei"};F.9Q=2v;F.33=1u 2j!=="47"&&2j!==M;F.9S=!F.33;F.6n=2X;F.8e="a0";F.ed=A(){u"ec "+F.8d.9w+", eb "+F.8d.9N};F.6m="";F.ab="ag";F.8h=A(I){C(F.33){u 2X}C(1u I==="3L"){I=$(I)}C(!((I!=M)&&(I.5k!=M))){u M}u I.5k(\'1Q-3y-2L\')};A F(){L 1E,2u,2L,1r=o;C(1x.X===0){4C"7r 1x";}C(o e7 F){o.5r=o.5r.8i(o);o.6l=o.6l.8i(o);1E=1x[0];C(!F.33){2L=3Q(F.8h(1E[0]),10);2u=1u 1E[1]==="A"?1E[1]:1u 1E[2]==="A"?1E[2]:A(){};C(!am(2L)&&2R.an(2L)){u 2R.3F(2L,2u)}}o.2L=1I.88.4S();o.6M=o.52=M;o.6k={x:0,y:0};o.av=2v;o.78=2v;o.6j=[];o.8k=[];o.8p=[];o.6i=M;o.bg=2v;o.dY=1N 59(o);o.4r=1N 1O(o);o.bs(A(){1r.bD(1E);u 1r.bO()});u o}V{u 1N F(1x)}}F.R.bs=A(cb){L 8u,1r=o;C(F.33){u 6I(A(){u cb.1S(1r)},0)}V{C(26.8v==="6O"){1V.2s("ca cc");u 6I(A(){u cb.1S(1r)},0)}V{8u=A(){C(26.8v==="6O"){1V.2s("ca cc");u cb.1S(1r)}};u 26.9q("dP",8u,2v)}}};F.R.bD=A(1E){L 6g,2n,K,1p;C(1E.X===0){4C"7r 1x 9r";}o.3Z=M;o.7g=M;o.7i=M;o.2u=A(){};o.9y(1E[0]);C(1E.X===1){u}5A(1u 1E[1]){28"3L":o.7i=1E[1];4R;28"A":o.2u=1E[1]}C(1E.X===2){u}o.2u=1E[2];C(1E.X===4){K=1E[4];1p=[];Y(6g 7z K){C(!6z.1S(K,6g))5z;2n=K[6g];1p.2h(o.1G[6g]=2n)}u 1p}};F.R.9y=A(3W){C(F.33){o.3Z=3W;o.7g=\'9z\';u}C(1u 3W==="3J"){o.3Z=3W}V{o.3Z=$(3W)}C(o.3Z==M){4C"dL dK dJ 1d 9A I Y dH.";}u o.7g=o.3Z.8c.6c()};F.R.bO=A(){5A(o.7g){28"9z":u o.9C();28"1F":u o.9F();28"I":u o.9I()}};F.R.9C=A(){L 1r=o;1V.2s("dC Y 33");o.1d=1N 5c();o.1d.8A=A(){1V.2s("5c 9R. 9T = "+(1r.4V())+", a7 = "+(1r.4X()));1r.I=1N 46(1r.4V(),1r.4X());u 1r.5r()};o.1d.dr=A(aa){4C aa;};u o.1d.1C=o.3Z};F.R.9F=A(){o.1d=o.3Z;o.I=26.3b(\'I\');o.1q=o.I.3c(\'2d\');1I.6s(o.1d,o.I,{89:[\'1C\']});o.1d.8J.8K(o.I,o.1d);o.8S();u o.8T()};F.R.9I=A(){o.I=o.3Z;o.1q=o.I.3c(\'2d\');C(o.7i!=M){o.1d=26.3b(\'1F\');o.1d.1C=o.7i;o.8S();u o.8T()}V{u o.5r()}};F.R.8S=A(){C(o.ap()){1V.2s(o.1d.1C,"->",o.7W());o.aq=2X;o.1d.1C=o.7W()}C(2P.as(o.1d)){o.1d.1C=2P.5t(o.1d.1C);u 1V.2s("de 1d dd, dc at = "+o.1d.1C)}};F.R.8T=A(){C(o.aw()){u o.6l()}V{u o.1d.8A=o.6l}};F.R.aw=A(){C(!o.1d.6O){u 2v}C((o.1d.8V!=M)&&o.1d.8V===0){u 2v}u 2X};F.R.4V=A(){u o.1d.G||o.1d.8V};F.R.4X=A(){u o.1d.J||o.1d.d8};F.R.6l=A(){1V.2s("5c 9R. 9T = "+(o.4V())+", a7 = "+(o.4X()));C(o.aq){o.I.G=o.4V()/o.6V();o.I.J=o.4X()/o.6V()}V{o.I.G=o.4V();o.I.J=o.4X()}u o.5r()};F.R.5r=A(){L i,27,H,1l,K;C(o.1q==M){o.1q=o.I.3c(\'2d\')}o.5f=o.68=o.G=o.I.G;o.67=o.66=o.J=o.I.J;o.bZ();C(!o.c5()){o.c8()}C(o.1d!=M){o.1q.65(o.1d,0,0,o.4V(),o.4X(),0,0,o.68,o.66)}o.9o();C(F.6n){o.6M=1N 7c(o.Q.X);o.52=1N 7c(o.Q.X);K=o.Q;Y(i=H=0,1l=K.X;H<1l;i=++H){27=K[i];o.6M[i]=27;o.52[i]=27}}o.1c={G:o.I.G,J:o.I.J};2R.ce(o.2L,o);o.2u.1S(o,o);u o.2u=A(){}};F.R.9o=A(){o.2K=o.1q.4z(0,0,o.I.G,o.I.J);u o.Q=o.2K.1Q};F.R.cs=A(){L 27,H,1l,K,1p;C(!F.6n){4C"9n 7o";}o.52=1N 7c(o.Q.X);K=o.Q;1p=[];Y(H=0,1l=K.X;H<1l;H++){27=K[H];1p.2h(o.52.2h(27))}u 1p};F.R.c5=A(){u F.8h(o.I)!=M};F.R.c8=A(){C(F.33||o.I.5k(\'1Q-3y-2L\')){u}u o.I.bQ(\'1Q-3y-2L\',o.2L)};F.R.9m=A(){u o.I.5k(\'1Q-3y-c9-7o\')!==M};F.R.bZ=A(){L 4b;C(F.33||o.9m()){u}4b=o.6V();C(4b!==1){1V.2s("e0 4b = "+4b);o.bg=2X;o.68=o.I.G;o.66=o.I.J;o.I.G=o.68*4b;o.I.J=o.66*4b;o.I.c7.G=""+o.68+"c6";o.I.c7.J=""+o.66+"c6";o.1q.ct(4b,4b);o.G=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1Q-3y]");C(!(5Z.X>0)){u}1p=[];Y(H=0,1l=5Z.X;H<1l;H++){1F=5Z[H];1p.2h(bC=1N 4N(1F,A(){o.bA();u o.3F()}))}u 1p};C(F.9S){(A(){C(26.8v==="6O"){u F.9e()}V{u 26.9q("cE",F.9e,2v)}})()}4N=(A(){L 7C;7C="(\\\\w+)\\\\((.*?)\\\\)";A 4N(41,bx){o.bw=41.5k(\'1Q-3y\');o.3y=F(41,bx.8i(o))}4N.R.bA=A(){L 1E,1y,5Y,9d,9c,m,r,5X,H,1l,K,1p;o.41=o.3y.I;r=1N bt(7C,\'g\');5X=o.bw.9b(r);C(!(5X.X>0)){u}r=1N bt(7C);1p=[];Y(H=0,1l=5X.X;H<1l;H++){9d=5X[H];K=9d.9b(r),m=K[0],1y=K[1],1E=K[2];9c=1N cF("u A() { o."+1y+"("+1E+"); };");bq{5Y=9c();1p.2h(5Y.1S(o.3y))}bp(e){1p.2h(1V.2s(e))}}u 1p};4N.R.3F=A(){L 41;41=o.41;u o.3y.bW(A(){u 41.8J.8K(o.bn(),41)})};u 4N})();F.2i=2i=(A(){A 2i(){}2i.9a={};2i.S=A(1m,5Y){u o.9a[1m]=5Y};2i.3F=A(1m,Z,U){u o.9a[1m](Z,U)};u 2i})();F.2O=2O=(A(){A 2O(){}2O.54=A(3Y,3X,4g,4G){u O.99(O.1H(4g-3Y,2)+O.1H(4G-3X,2))};2O.bk=A(2f,1f,5V){L 3T;C(5V==M){5V=2v}3T=2f+(O.cG()*(1f-2f));C(5V){u 3T.cH(5V)}V{u O.6U(3T)}};2O.5U=A(B){u(0.96*B.r)+(0.cI*B.g)+(0.cJ*B.b)};2O.1R=A(1J,3A,3B,1t,79,7a){L 94,93,7d,7e,5T,5S,1R,91,4O,i,j,5B,7m,t,5R,3Y,4g,8Z,6b,3X,4G,8Y,H,1j,1s,K,2F;5R=1J[0];6b=1J[1];3Y=3A[0];3X=3A[1];4g=3B[0];4G=3B[1];8Z=1t[0];8Y=1t[1];1R={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n});u 2X};u 2D})();F.2D=2D;F.P=P=(A(){A P(){}P.34={9h:1,9g:2,7Y:3,9f:4,8w:5,2r:6};P.S=A(1m,9u){u F.R[1m]=9u};u P})();F.2P=2P=(A(){A 2P(){}2P.9t=/(?:(?:dT|dU):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;2P.as=A(1F){C(1F==M){u 2v}C(o.by(1F)){u 2v}u o.7x(1F.1C)};2P.by=A(1F){L K;u(1F.8e!=M)&&((K=1F.8e.6c())===\'a0\'||K===\'bv-dX\')};2P.7x=A(bm){L 7B;7B=bm.9b(o.9t);C(7B){u 7B[1]!==26.cr}V{u 2v}};2P.b6=A(1C){C(o.7x(1C)){C(!F.6m.X){1V.8m("e3 6r e8 a ah 1d e9 a ea 9V. at: "+1C)}V{C(F.7x(F.6m)){1V.8m("ef bv a ah 9V Y eg ej.");u}u""+F.6m+"?ag="+(9x(1C))}}};2P.5t=A(1C){u""+F.6m+"?"+F.ab+"="+(9x(1C))};2P.ek=A(4H){L 6D;6D={el:\'eq\',eS:\'eT\',fb:\'fA\',cB:\'fv\'};4H=4H.6c();C(6D[4H]!=M){4H=6D[4H]}u"ft/fq."+4H};u 2P})();F.R.fc=A(){C(1u 2j!=="47"&&2j!==M){u o.9U.57(o,1x)}V{u o.ao.57(o,1x)}};F.R.ao=A(1o){L 1d;C(1o==M){1o="ax"}1o=1o.6c();1d=o.81(1o).f9("1d/"+1o,"1d/f8-f2");u 26.eZ.eY=1d};F.R.9U=A(5b,7U){L 84;C(7U==M){7U=2X}bq{84=fs.eM(5b);C(84.eK()&&!7U){u 2v}}bp(e){1V.2s("eJ eI 5b "+5b)}u fs.eC(5b,o.I.ex(),A(){u 1V.2s("ew ev 6r "+5b)})};F.R.bn=A(1o){L 1F;1F=26.3b(\'1F\');1F.1C=o.81(1o);1F.G=o.1c.G;1F.J=o.1c.J;C(4Q.4a){1F.G/=4Q.4a;1F.J/=4Q.4a}u 1F};F.R.81=A(1o){C(1o==M){1o="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o.6o.2h(8n)};1O.R.3U=A(){L 1X;C(o.6o.X===0){2D.4Z(o,"9G");C(o.8o!=M){o.8o.1S(o.c)}u o}o.29=o.6o.bb();5A(o.29.1o){28 P.34.7Y:1X=o.c.8p.bb();o.c.bK(1X);u o.3U();28 P.34.9f:o.c.bG();o.c.bI();u o.3U();28 P.34.8w:u o.bc(o.29.1X,o.29.1C);28 P.34.2r:u o.bf();dZ:u o.bh()}};1O.R.3F=A(2u){o.8o=2u;o.4I=1N 7c(o.c.Q.X);u o.3U()};1O.R.8q=A(fn){L 6f,8r,2E,1t,f,i,8s,n,1J,H,K,1p,1r=o;o.7w=0;n=o.c.Q.X;8r=O.39((n/4)/1O.4i);6f=8r*4;8s=6f+((n/4)%1O.4i)*4;1p=[];Y(i=H=0,K=1O.4i;0<=K?H<K:H>K;i=0<=K?++H:--H){1J=i*6f;1t=1J+(i===1O.4i-1?8s:6f);C(F.33){f=5W(A(){u fn.1S(1r,i,1J,1t)});2E=f.dW();1p.2h(o.5O(2E))}V{1p.2h(6I((A(i,1J,1t){u A(){u fn.1S(1r,i,1J,1t)}})(i,1J,1t),0))}}u 1p};1O.R.bh=A(){2D.4Z(o.c,"9O",o.29);C(o.29.1o===P.34.9h){u o.8q(o.bL)}V{u o.8q(o.bN)}};1O.R.bf=A(){1V.2s("dV 4e "+o.29.4e);2r.3F(o.c,o.29.4e,o.29.1E);1V.2s("2r "+o.29.4e+" 8t!");u o.3U()};1O.R.bL=A(2E,1J,1t){L 1Q,i,4p,31,H;1V.2s("c4 #"+2E+" - P: "+o.29.1m+", dS: "+1J+", dR: "+1t);2D.4Z(o.c,"9E",{cf:2E,9p:1O.4i,dQ:1J,dO:1t});1Q={r:0,g:0,b:0,a:0};4p=1N 2U(o.c);Y(i=H=1J;H<1t;i=H+=4){4p.T=i;1Q.r=o.c.Q[i];1Q.g=o.c.Q[i+1];1Q.b=o.c.Q[i+2];1Q.a=o.c.Q[i+3];31=o.29.6Q.1S(4p,1Q);C(31.a==M){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=4f;B.b=4f;u B})});P.S("2m",A(N){N=O.1H((N+1h)/1h,2);u o.2e("2m",A(B){B.r/=D;B.r-=0.5;B.r*=N;B.r+=0.5;B.r*=D;B.g/=D;B.g-=0.5;B.g*=N;B.g+=0.5;B.g*=D;B.b/=D;B.b-=0.5;B.b*=N;B.b+=0.5;B.b*=D;u B})});P.S("8E",A(N){u o.2e("8E",A(B){L h,53,2x;53=1Y.b2(B.r,B.g,B.b);h=53.h*1h;h+=O.4k(N);h=h%1h;h/=1h;53.h=h;2x=1Y.b1(53.h,53.s,53.v);2x.a=B.a;u 2x})});P.S("4c",A(){L 5J,2x;C(1x.X===2){2x=1Y.7t(1x[0]);5J=1x[1]}V C(1x.X===4){2x={r:1x[0],g:1x[1],b:1x[2]};5J=1x[3]}u o.2e("4c",A(B){B.r-=(B.r-2x.r)*(5J/1h);B.g-=(B.g-2x.g)*(5J/1h);B.b-=(B.b-2x.b)*(5J/1h);u B})});P.S("a3",A(){u o.2e("a3",A(B){B.r=D-B.r;B.g=D-B.g;B.b=D-B.b;u B})});P.S("48",A(N){C(N==M){N=1h}N/=1h;u o.2e("48",A(B){B.r=O.2f(D,(B.r*(1-(0.du*N)))+(B.g*(0.dt*N))+(B.b*(0.ds*N)));B.g=O.2f(D,(B.r*(0.dp*N))+(B.g*(1-(0.do*N)))+(B.b*(0.dn*N)));B.b=O.2f(D,(B.r*(0.dm*N))+(B.g*(0.dl*N))+(B.b*(1-(0.dk*N))));u B})});P.S("2k",A(N){u o.2e("2k",A(B){B.r=O.1H(B.r/D,N)*D;B.g=O.1H(B.g/D,N)*D;B.b=O.1H(B.b/D,N)*D;u B})});P.S("6X",A(N){N=O.4k(N)*2.55;u o.2e("6X",A(B){L 3T;3T=2O.bk(N*-1,N);B.r+=3T;B.g+=3T;B.b+=3T;u B})});P.S("6W",A(N){N=O.4k(N)*2.55;u o.2e("6W",A(B){C(B.r>D-N){B.r=D}V C(B.r<N){B.r=0}C(B.g>D-N){B.g=D}V C(B.g<N){B.g=0}C(B.b>D-N){B.b=D}V C(B.b<N){B.b=0}u B})});P.S("3p",A(1G){L 5F,8P;C(1u 1G!=="3J"){u o}Y(5F 7z 1G){C(!6z.1S(1G,5F))5z;8P=1G[5F];C(8P===0){9D 1G[5F];5z}1G[5F]/=1h}C(1G.X===0){u o}u o.2e("3p",A(B){C(1G.37!=M){C(1G.37>0){B.r+=(D-B.r)*1G.37}V{B.r-=B.r*O.4k(1G.37)}}C(1G.4u!=M){C(1G.4u>0){B.g+=(D-B.g)*1G.4u}V{B.g-=B.g*O.4k(1G.4u)}}C(1G.3N!=M){C(1G.3N>0){B.b+=(D-B.b)*1G.3N}V{B.b-=B.b*O.4k(1G.3N)}}u B})});P.S("1Z",A(){L 1R,3O,3z,3A,3B,1t,i,1J,H,1j,K,2F;3O=1x[0],3z=2<=1x.X?aj.1S(1x,1):[];C(1u 3O==="3L"){3O=3O.dg("")}C(3O[0]==="v"){3O=[\'r\',\'g\',\'b\']}C(3z.X<3||3z.X>4){4C"7r ar df 1x 6r 1Z 1y";}1J=3z[0];3A=3z[1];3B=3z.X===4?3z[2]:3z[1];1t=3z[3z.X-1];1R=2O.1R(1J,3A,3B,1t,0,D);C(1J[0]>0){Y(i=H=0,K=1J[0];0<=K?H<K:H>K;i=0<=K?++H:--H){1R[i]=1J[1]}}C(1t[0]<D){Y(i=1j=2F=1t[0];2F<=D?1j<=D:1j>=D;i=2F<=D?++1j:--1j){1R[i]=1t[1]}}u o.2e("1Z",A(B){L 1s,44;Y(i=1s=0,44=3O.X;0<=44?1s<44:1s>44;i=0<=44?++1s:--1s){B[3O[i]]=1R[B[3O[i]]]}u B})});P.S("2T",A(N){L 3A,3B,p;p=O.4k(N)/1h;3A=[0,D*p];3B=[D-(D*p),D];C(N<0){3A=3A.au();3B=3B.au()}u o.1Z(\'2x\',[0,0],3A,3B,[D,D])});F.2r.S("8U",A(G,J,x,y){L I,2z;C(x==M){x=0}C(y==M){y=0}C(1u 2j!=="47"&&2j!==M){I=1N 46(G,J)}V{I=26.3b(\'I\');1I.6s(o.I,I);I.G=G;I.J=J}2z=I.3c(\'2d\');2z.65(o.I,x,y,G,J,0,0,G,J);o.6k={x:x,y:y};o.av=2X;u o.7M(I)});F.2r.S("6N",A(2q){L I,2z;C(2q==M){2q=M}C(2q===M||((2q.G==M)&&(2q.J==M))){1V.a1("7r 9A d7 1c 9r Y 6N");u}C(2q.G==M){2q.G=o.I.G*2q.J/o.I.J}V C(2q.J==M){2q.J=o.I.J*2q.G/o.I.G}C(1u 2j!=="47"&&2j!==M){I=1N 46(2q.G,2q.J)}V{I=26.3b(\'I\');1I.6s(o.I,I);I.G=2q.G;I.J=2q.J}2z=I.3c(\'2d\');2z.65(o.I,0,0,o.I.G,o.I.J,0,0,2q.G,2q.J);o.78=2X;u o.7M(I)});F.P.S("8U",A(){u o.5x("8U",85.R.51.1S(1x,0))});F.P.S("6N",A(){u o.5x("6N",85.R.51.1S(1x,0))});F.P.S("d6",A(){u o.3w("d5 6L",[1,1,1,1,1,1,1,1,1])});F.P.S("d3",A(){u o.3w("d2 d1 6L",[0,0,1,0,0,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,0])});F.P.S("d0",A(){u o.3w("cZ 6L",[1,4,6,4,1,4,16,24,16,4,6,24,36,24,6,4,16,24,16,4,1,4,6,4,1])});F.P.S("cX",A(3V){L 2B;C(3V===0||3V===4L){2B=[0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0]}V C((3V>0&&3V<90)||(3V>4L&&3V<aM)){2B=[0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0]}V C(3V===90||3V===aM){2B=[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0]}V{2B=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]}u o.3w("cT 6L",2B)});F.P.S("5Q",A(1k){C(1k==M){1k=1h}1k/=1h;u o.3w("cR",[0,-1k,0,-1k,4*1k+1,-1k,0,-1k,0])});8G={3g:A(B,1k,E){B.r=B.r-(B.r*1k*E.38);B.g=B.g-(B.g*1k*E.38);B.b=B.b-(B.b*1k*E.38);u B},2k:A(B,1k,E){B.r=O.1H(B.r/D,O.1f(10*1k*E.38,1))*D;B.g=O.1H(B.g/D,O.1f(10*1k*E.38,1))*D;B.b=O.1H(B.b/D,O.1f(10*1k*E.38,1))*D;u B},4c:A(B,1k,E){B.r-=(B.r-E.32.r)*1k;B.g-=(B.g-E.32.g)*1k;B.b-=(B.b-E.32.b)*1k;u B}};P.S("1T",A(1n,38){L 1R,3e,1t,1J;C(38==M){38=60}C(1u 1n==="3L"&&1n.4J(-1)==="%"){C(o.1c.J>o.1c.G){1n=o.1c.G*(3Q(1n.4J(0,1n.X-1),10)/1h)}V{1n=o.1c.J*(3Q(1n.4J(0,1n.X-1),10)/1h)}}38/=1h;3e=[o.1c.G/2,o.1c.J/2];1J=O.99(O.1H(3e[0],2)+O.1H(3e[1],2));1t=1J-1n;1R=2O.1R([0,1],[30,30],[70,60],[1h,80]);u o.2e("1T",A(B){L 7T,2A,T;T=o.8g();7T=2O.54(T.x,T.y,3e[0],3e[1]);C(7T>1t){2A=O.1f(1,(1R[O.6U(((7T-1t)/1n)*1h)]/10)*38);B.r=O.1H(B.r/D,2A)*D;B.g=O.1H(B.g/D,2A)*D;B.b=O.1H(B.b/D,2A)*D}u B})});P.S("b0",A(E){L 49,5e,7G,1n,H,1l,K;49={38:50,2y:0,8X:\'3g\',32:{r:0,g:0,b:0}};E=1I.7f(49,E);C(!E.1n){u o}V C(1u E.1n==="3L"){7G=3Q(E.1n,10)/1h;E.1n={G:o.1c.G*7G,J:o.1c.J*7G}}V C(1u E.1n==="3J"){K=["G","J"];Y(H=0,1l=K.X;H<1l;H++){5e=K[H];C(1u E.1n[5e]==="3L"){E.1n[5e]=o.1c[5e]*(3Q(E.1n[5e],10)/1h)}}}V C(E.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,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];97=A(G,J,5p,5n,4h,X,ac){L 3K,1q,2l,3Y,4g,3X,4G;3K=1u 2j!=="47"&&2j!==M?1N 46():26.3b(\'I\');3K.G=G;3K.J=J;3Y=5p+O.a9(4h)*X*0.5;3X=5n+O.a8(4h)*X*0.5;4g=5p-O.a9(4h)*X*0.5;4G=5n-O.a8(4h)*X*0.5;1q=3K.3c("2d");2l=1q.dq(3Y,3X,4g,4G);C(!ac){2l.4Y(0,"73");2l.4Y(1,"8I")}V{2l.4Y(0,"73");2l.4Y(0.5,"8I");2l.4Y(1,"73")}1q.a5=2l;1q.9W(0,0,G,J);u 1q.4z(0,0,G,J)};98=A(G,J,5p,5n,69,6x){L 3K,1q,2l;3K=1u 2j!=="47"&&2j!==M?1N 46():26.3b(\'I\');3K.G=G;3K.J=J;1q=3K.3c("2d");2l=1q.dy(5p,5n,69,5p,5n,6x);2l.4Y(1,"73");2l.4Y(0,"8I");1q.a5=2l;1q.9W(0,0,G,J);u 1q.4z(0,0,G,J)};4x=A(){o.r=0;o.g=0;o.b=0;o.a=0;u o.1W=M};F.2r.S("8z",A(9M,1P,9K,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1B.1W;1g+=G}}1P*=9K;i=7Q;bu(--i>-1){2p=i<<2;6h=(8l[2p+2]&es)/D.0*6R;6Y=6h|0;C(6Y===6d){5w=6p.0*(6h-(6h|0));6e=6p-5w;3s[2p]=(3s[2p]*6e+W[2p]*5w)>>8;3s[2p+1]=(3s[2p+1]*6e+W[2p+1]*5w)>>8;3s[2p+2]=(3s[2p+2]*6e+W[2p+2]*5w)>>8}V C(6Y===6d+1){3s[2p]=W[2p];3s[2p+1]=W[2p+1];3s[2p+2]=W[2p+2]}}6d++}u o});F.P.S("eu",A(E){L 49,2l;49={3e:{x:o.1c.G/2,y:o.1c.J/2},4h:45,b8:5s,6Z:3,6S:1.5,4W:3};E=1I.7f(49,E);E.4h*=O.ez/4L;2l=97(o.1c.G,o.1c.J,E.3e.x,E.3e.y,E.4h,E.b8,2X);u o.5x("8z",[2l,E.6Z,E.6S,E.4W])});u F.P.S("eA",A(E){L 49,2l,69,6x;49={1n:50,3e:{x:o.1c.G/2,y:o.1c.J/2},6Z:3,6S:1.5,4W:3,1P:M};E=1I.7f(49,E);C(!E.1P){E.1P=o.1c.G<o.1c.J?o.1c.J:o.1c.G}69=(E.1P/2)-E.1n;6x=E.1P/2;2l=98(o.1c.G,o.1c.J,E.3e.x,E.3e.y,69,6x);u o.5x("8z",[2l,E.6Z,E.6S,E.4W])})})();F.P.S("eB",A(){u o.3w("ay eD",[0,0,0,-1,1,0,0,0,0])});F.P.S("eE",A(){u o.3w("ay eF",[-1,-1,-1,-1,8,-1,-1,-1,-1])});F.P.S("eG",A(){u o.3w("eH",[-2,-1,0,-1,1,1,0,1,2])});F.P.S("86",A(N){L 6u,6t;6u=6p/N;6t=D/(N-1);u o.2e("86",A(B){B.r=O.39(O.39(B.r/6u)*6t);B.g=O.39(O.39(B.g/6u)*6t);B.b=O.39(O.39(B.b/6u)*6t);u B})});F.P.S("eL",A(1T){C(1T==M){1T=2X}o.4l();o.2m(5);o.6X(3);o.48(1h);o.3p({37:8,3N:2,4u:4});o.2k(0.87);C(1T){u o.1T("40%",30)}});F.P.S("eN",A(1T){C(1T==M){1T=2X}o.3g(15);o.2T(15);o.1Z(\'2x\',[0,0],[5s,0],[eO,D],[D,D]);o.3u(-20);o.2k(1.8);C(1T){o.1T("50%",60)}u o.3g(5)});F.P.S("eP",A(6H){C(6H==M){6H=2v}o.3I(20);o.1Z(\'2x\',[5,0],[eR,a6],[83,eU],[eV,D]);o.5Q(15);o.1T("45%",20);C(6H){o.4l();o.2m(4)}u o});F.P.S("eW",A(){o.2m(1h);o.3g(15);o.2T(10);o.86(80);o.6W(30);u o.4l()});F.P.S("eX",A(){o.2T(3.5);o.3u(-5);o.3I(50);o.48(60);o.4c("#bR",10);o.3p({37:8,3N:8});o.2m(5);o.2k(1.2);u o.1T("55%",25)});F.P.S("f0",A(){o.2T(5);o.4c("#bR",4);o.48(20);o.3p({3N:8,37:3});o.1Z(\'b\',[0,0],[1h,a6],[4L,4L],[D,D]);o.2m(15);o.3I(75);u o.2k(1.6)});F.P.S("f1",A(){o.1Z(\'2x\',[0,0],[1h,50],[bo,5s],[D,D]);o.3I(-30);o.3u(-30);o.4c(\'#f3\',30);o.2m(-5);u o.2k(1.4)});F.P.S("f4",A(){o.3g(5);o.2T(8);o.2m(4);o.4c(\'#f5\',30);o.3I(50);u o.2k(1.3)});F.P.S("f6",A(){o.2k(1.5);o.6W(25);o.3u(-60);o.2m(5);o.6X(5);u o.1T("50%",30)});F.P.S("f7",A(){o.3u(-35);o.1Z(\'b\',[20,0],[90,6E],[fa,ad],[D,bl]);o.1Z(\'r\',[0,0],[ad,90],[fd,6E],[D,D]);o.1Z(\'g\',[10,0],[fe,ff],[fg,1h],[D,fh]);o.1Z(\'2x\',[0,0],[6E,1h],[1e,bo],[D,D]);u o.5Q(20)});F.P.S("fi",A(){o.4l();o.48(10);o.2T(10);o.2m(15);u o.1T("60%",35)});F.P.S("fj",A(){o.3u(-20);o.3I(-50);o.2k(1.1);o.48(30);o.3p({37:-10,3N:5});o.1Z(\'2x\',[0,0],[80,50],[1e,bl],[D,D]);u o.1T("60%",30)});F.P.S("fk",A(1T){C(1T==M){1T=2X}o.3g(10);o.2Q(A(){o.3d("58");o.2g(80);o.43();o.1y.2k(0.8);o.1y.2m(50);u o.1y.2T(10)});o.2Q(A(){o.3d("9L");o.2g(80);u o.4j("#fl")});o.2T(20);o.2k(0.8);C(1T){u o.1T("45%",20)}});F.P.S("fm",A(){o.2k(1.2);o.2Q(A(){o.3d("7j");o.2g(60);o.43();o.1y.3p({37:5});u o.1y.56(15)});o.2Q(A(){o.3d("9J");o.2g(40);u o.4j("#fp")});o.2Q(A(){o.3d("58");o.2g(35);o.43();o.1y.3g(40);o.1y.3I(40);o.1y.2T(30);o.1y.2m(15);o.1y.1Z(\'r\',[0,40],[1e,1e],[1e,1e],[D,7Z]);o.1y.1Z(\'g\',[0,40],[1e,1e],[1e,1e],[D,7Z]);o.1y.1Z(\'b\',[0,40],[1e,1e],[1e,1e],[D,7Z]);u o.1y.56(5)});o.1Z(\'r\',[20,0],[1e,fr],[1e,1e],[71,D]);o.1Z(\'g\',[20,0],[1e,1e],[1e,1e],[71,D]);o.1Z(\'b\',[20,0],[1e,8L],[1e,1e],[71,D]);u o.1T("45%",20)});F.P.S("fu",A(){o.3g(40);o.4c("#ba",10);o.1Z(\'b\',[0,10],[1e,4L],[83,83],[D,D]);o.2Q(A(){o.3d(\'7j\');o.2g(50);o.43();o.1y.2k(0.7);u o.2Q(A(){o.3d(\'8b\');o.2g(60);u o.4j(\'#ba\')})});o.2Q(A(){o.3d(\'58\');o.2g(60);o.43();o.1y.3u(50);o.1y.8E(90);u o.1y.2m(10)});o.2k(1.4);o.3I(-30);o.2Q(A(){o.2g(10);u o.4j(\'#fw\')});u o});F.P.S("fx",A(){o.3u(20);o.2k(1.4);o.4l();o.2m(5);o.48(1h);o.3p({37:8,3N:2,4u:4});o.2k(0.8);o.2m(5);o.2T(10);o.2Q(A(){o.3d(\'7j\');o.43();o.2g(55);u o.1y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aF,5D,96,7n,74,3G,aE,5u,aD,5P,aC,4s,aB,4A,3i,7h,aA,3P,az,7b,4q];5i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];4x=A(){o.r=0;o.g=0;o.b=0;o.a=0;u o.1W=M};F.2r.S("56",A(1P){L 2b,2o,1M,2A,2c,2t,1L,J,3D,i,2J,p,1z,1A,W,1w,2a,2w,1K,1a,2Y,2M,1b,4d,1i,1B,2I,2H,7R,G,3o,x,y,1g,4E,4B,H,1j,1s,3r,3j,3m,3h,3t,3n;C(am(1P)||1P<1){u}1P|=0;W=o.Q;G=o.1c.G;J=o.1c.J;2A=1P+1P+1;7R=G<<2;3o=G-1;3D=J-1;1a=1P+1;2H=1a*(1a+1)/2;2I=1N 4x();1b=2I;Y(i=H=1;1<=2A?H<2A:H>2A;i=1<=2A?++H:--H){1b=1b.1W=1N 4x();C(i===1a){4d=1b}}1b.1W=2I;1i=M;1B=M;4B=1g=0;2J=5j[1P];2M=5i[1P];Y(y=1j=0;0<=J?1j<J:1j>J;y=0<=J?++1j:--1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g]))*(2Y=1a-i);1L+=(1b.g=(1A=W[1g+1]))*2Y;1M+=(1b.b=(1z=W[1g+2]))*2Y;2a+=1w;2c+=1A;2b+=1z;1b=1b.1W;C(i<3D){4E+=G}}1g=x;1i=2I;1B=4d;Y(y=3n=0;0<=J?3n<J:3n>J;y=0<=J?++3n:--3n){p=1g<<2;W[p]=(1K*2J)>>2M;W[p+1]=(1L*2J)>>2M;W[p+2]=(1M*2J)>>2M;1K-=2w;1L-=2t;1M-=2o;2w-=1i.r;2t-=1i.g;2o-=1i.b;p=(x+(((p=y+1a)<3D?p:3D)*G))<<2;1K+=(2a+=(1i.r=W[p]));1L+=(2c+=(1i.g=W[p+1]));1M+=(2b+=(1i.b=W[p+2]));1i=1i.1W;2w+=(1w=1B.r);2t+=(1A=1B.g);2o+=(1z=1B.b);2a-=1w;2c-=1A;2b-=1z;1B=1B.1W;1g+=G}}u o});u F.P.S("56",A(1P){u o.5x("56",[1P])})})();F.P.S("aY",A(N){u o.2e("aY",A(B){L 5U;5U=(0.aT*B.r)+(0.aS*B.g)+(0.aR*B.b);C(5U<N){B.r=0;B.g=0;B.b=0}V{B.r=D;B.g=D;B.b=D}u B})})}).1S(o);',62,967,'||||||||||||||||||||||||this||||||return||||||function|rgba|if|255|opts|Caman|width|_i|canvas|height|_ref|var|null|adjust|Math|Filter|pixelData|prototype|register|loc|rgbaParent|else|pixels|length|for|rgbaLayer|||||||||||radiusPlus1|stack|dimensions|image|128|max|yi|100|stackIn|_j|amt|_len|name|size|type|_results|context|_this|_k|end|typeof|corners|pr|arguments|filter|pb|pg|stackOut|src|result|args|img|options|pow|Util|start|r_sum|g_sum|b_sum|new|Renderer|radius|data|bezier|call|vignette|coords|Log|next|layer|Convert|curves|||||||document|pixel|case|currentJob|r_in_sum|b_in_sum|g_in_sum||process|min|opacity|push|Blender|exports|gamma|gradient|contrast|val|b_out_sum|idx|newDims|Plugin|debug|g_out_sum|callback|false|r_out_sum|rgb|cornerRadius|ctx|div|kernel|512|Event|bnum|_ref1|builder|sumFactor|stackStart|mul_sum|imageData|id|shg_sum|parentData|Calculate|IO|newLayer|Store|newLoc|exposure|PixelInfo|divisor|456|true|rbs|312||res|color|NodeJS|Type|||red|strength|floor|Layer|createElement|getContext|setBlendingMode|center|055|brightness|_o|271|_m|335|328|_n|_q|widthMinus1|channels|levels|_l|imagePixels|_p|saturation|bias|processKernel|clampRGB|caman|cps|ctrl1|ctrl2|target|heightMinus1|iradius|execute|292|388|vibrance|object|cnv|string|428|blue|chans|265|parseInt|405|maxDist|rand|processNext|degrees|obj|y1|x1|initObj||ele|radialDist|copyParent|_ref2||Canvas|undefined|sepia|defaults|devicePixelRatio|ratio|colorize|stackEnd|plugin|avg|x2|angle|Blocks|fillColor|abs|greyscale|420|496|298|pixelInfo|259|renderer|278|454|green|364|354|BlurStack|search|getImageData|273|yw|throw|360|yp|475|y2|lang|modPixelData|substr|hex|180|left|CamanParser|curveY|bottom|window|break|get|events|layerData|imageWidth|steps|imageHeight|addColorStop|trigger||slice|originalPixelData|hsv|distance||stackBlur|apply|multiply|Analyze|wh4|file|Image|284|dim|originalWidth|345|383|shg_table|mul_table|getAttribute|482|items|centerY|add|centerX|builderIndex|finishInit|200|proxyUrl|287|top|blend|processPlugin|341|continue|switch|leftCoord|_r|302|right|chan|323|347|374|level|404|437|1379310345|320|blockFinished|282|sharpen|x0|Cy|Cx|luminance|getFloat|Fiber|unparsedInstructions|func|imgs||numPixels|Logger|scaledCanvas|event|drawImage|preScaledHeight|originalHeight|preScaledWidth|radius1|adjustSize|y0|toLowerCase|currentIndex|iblend|blockN|key|lookupValue|currentLayer|pixelStack|cropCoordinates|imageLoaded|remoteProxy|allowRevert|renderQueue|256|attr|to|copyAttributes|numOfValues|numOfAreas|prop|copy|radius2|373|__hasProp|coord|394|417|langToExt|120|startX|startY|grey|setTimeout|441|468|Blur|initializedPixelData|resize|complete|Root|processFn|blurLevels|radiusFactor|497|round|hiDPIRatio|clip|noise|index|startRadius||235|sel|white|294||332|350|resized|lowBound|highBound|261|Uint8Array|Bx|By|extend|initType|269|imageUrl|overlay|require|root|rightCoord|297|disabled|307|318|Invalid|329|hexToRGB|367|381|blocksDone|isURLRemote|396|in|412|matches|INST_REGEX|446|465|485|percent|vert|horiz|507|dest|hueToRGB|replaceCanvas|291|oldCanvas|305|wh|w4|putImageData|dist|overwrite|337|hiDPIReplacement|3333333333|LayerDequeue|215||toBase64|__indexOf|190|stats|Array|posterize||uniqid|except|blendingMode|normal|nodeName|version|crossOrigin|coordinatesToLocation|locationXY|getAttrId|bind|plugins|layerStack|radiusPixels|info|job|finishedFn|canvasQueue|eachBlock|blockPixelLength|lastBlockN|finished|listener|readyState|LoadOverlay|_type|_fn|compoundBlur|onload|xyz|1284185493|2068965517|hue|787037037|vignetteFilters|008856451679|black|parentNode|replaceChild|108|whiteZ|whiteY|whiteX|value|4166666667|0031308|imageAdjustments|waitForImageLoaded|crop|naturalWidth|04045|method|y3|x3||curveX||Ay|Ax||299|getLinearGradientMap|getRadialGradientMap|sqrt|blenders|match|instFunc|inst|DOMUpdated|LayerFinished|Kernel|Single|_ref3|endY|endX|backingStoreRatio|hiDPIDisabled|Revert|reloadCanvasData|totalBlocks|addEventListener|given|yield|domainRegex|filterFunc|mode|release|encodeURIComponent|setInitObject|node|or|void|initNode|delete|blockStarted|initImage|renderFinished|processComplete|initCanvas|addition|increaseFactor|softLight|radiusData|date|processStart|types|DEBUG|loaded|autoload|Width|nodeSave|proxy|fillRect|500|log|116|anonymous|error|console|invert|883|fillStyle|150|Height|sin|cos|err|proxyParam|mirrored|144|getPixelRelative|047|camanProxyUrl|remote|item|__slice|xyzToLab|nowLoc|isNaN|has|browserSave|needsHiDPISwap|swapped|number|isRemote|URL|reverse|cropped|isImageLoaded|png|Edge|263|267|275|280|285|289|304|310|315|326|338|344|357|270|363|370|377|385|0722|7152|2126|392|400|408|416|threshold|rgbToXYZ|rectangularVignette|hsvToRGB|rgbToHSV|424|433|442|remoteCheck|1000|focusWidth|from|ea1c5d|shift|loadOverlay|451|460|executePlugin|scaled|executeFilter|470|480|randomRange|230|url|toImage|140|catch|try|491|domIsLoaded|RegExp|while|use|dataStr|ready|corsEnabled|501|parse|257|parser|parseArguments|262|applyToParent|applyCurrentLayer|pop|popContext|pushContext|executeLayer|renderBlock|268|renderKernel|setup|locationToCoordinates|setAttribute|e87b22|274|originalVisiblePixels|281|renderStart|render|newCanvas|hiDPICapable|hiDPIAdjustments|301|309|316|324|Block|hasId|px|style|assignId|hidpi|DOM||initialized|359|put|blockNum|505|489|461|447|435|422|411|399|389|378|368|domain|resetOriginalPixelData|scale|webkitBackingStorePixelRatio|mozBackingStorePixelRatio|msBackingStorePixelRatio|oBackingStorePixelRatio|backingStorePixelRatio|revert|reset|javascript|calculateLevels|querySelectorAll|DOMContentLoaded|Function|random|toFixed|587|114|charAt|rgbToHSL|hslToRGB|4124|3576|1805|0193|Sharpen|1192|Motion|9505|xyzToRGB|2406|motionBlur|5372|Gaussian|gaussianBlur|Radial|Heavy|heavyRadialBlur|4986|Box|boxBlur|missing|naturalHeight|9689|8758|0415|using|detected|Remote|of|split|0557|2040|0570|869|534|272|168|314|349|createLinearGradient|onerror|189|769|607|labToXYZ|rgbToLab|01|createRadialGradient|labToRGB|darken|lighten|Initializing|exclusion|difference|screen|flush|initialization|listen|find|not|Could|blocksFinished|Rendering|endPixel|readystatechange|startPixel|End|Start|http|https|Executing|run|credentials|analyze|default|HiDPI|cpus|os|Attempting|putPixel|getPixel|putPixelRelative|instanceof|load|without|configured|Released|Version|toString|warn|Cannot|loading|overlayImage|2013|images|useProxy|ruby|fibers|nodeValue|createImageData|layerID|rb|toDataURL|0xff|attributes|tiltShift|writing|Finished|toBuffer|querySelector|PI|radialBlur|edgeEnhance|writeFile|Enhance|edgeDetect|Detect|emboss|Emboss|output|Creating|isFile|vintage|statSync|lomo|155|clarity|indexOf|130|python|py|220|250|sinCity|sunrise|href|location|crossProcess|orangePeel|stream|ff9000|love|c42007|grungy|jarques|octet|replace|186|perl|save|138|115|105|148|248|pinhole|oldBoot|glowingSun|f49600|hazyDays||hasOwnProperty|6899ba|caman_proxy|158||proxies|herMajesty|js|e5f0ff|nostalgia|hemingway|concentrate|pl'.split('|'),0,{}))
View
36 dist/caman.js
@@ -261,8 +261,8 @@
Log.debug("Initializing for NodeJS");
this.image = new Image();
this.image.onload = function() {
- Log.debug("Image loaded. Width = " + _this.image.width + ", Height = " + _this.image.height);
- _this.canvas = new Canvas(_this.image.width, _this.image.height);
+ Log.debug("Image loaded. Width = " + (_this.imageWidth()) + ", Height = " + (_this.imageHeight()));
+ _this.canvas = new Canvas(_this.imageWidth(), _this.imageHeight());
return _this.finishInit();
};
this.image.onerror = function(err) {
@@ -309,21 +309,39 @@
};
Caman.prototype.waitForImageLoaded = function() {
- if (this.image.complete) {
+ if (this.isImageLoaded()) {
return this.imageLoaded();
} else {
return this.image.onload = this.imageLoaded;
}
};
+ Caman.prototype.isImageLoaded = function() {
+ if (!this.image.complete) {
+ return false;
+ }
+ if ((this.image.naturalWidth != null) && this.image.naturalWidth === 0) {
+ return false;
+ }
+ return true;
+ };
+
+ Caman.prototype.imageWidth = function() {
+ return this.image.width || this.image.naturalWidth;
+ };
+
+ Caman.prototype.imageHeight = function() {
+ return this.image.height || this.image.naturalHeight;
+ };
+
Caman.prototype.imageLoaded = function() {
- Log.debug("Image loaded. Width = " + this.image.width + ", Height = " + this.image.height);
+ Log.debug("Image loaded. Width = " + (this.imageWidth()) + ", Height = " + (this.imageHeight()));
if (this.swapped) {
- this.canvas.width = this.image.width / this.hiDPIRatio();
- this.canvas.height = this.image.height / this.hiDPIRatio();
+ this.canvas.width = this.imageWidth() / this.hiDPIRatio();
+ this.canvas.height = this.imageHeight() / this.hiDPIRatio();
} else {
- this.canvas.width = this.image.width;
- this.canvas.height = this.image.height;
+ this.canvas.width = this.imageWidth();
+ this.canvas.height = this.imageHeight();
}
return this.finishInit();
};
@@ -340,7 +358,7 @@
this.assignId();
}
if (this.image != null) {
- this.context.drawImage(this.image, 0, 0, this.image.width, this.image.height, 0, 0, this.preScaledWidth, this.preScaledHeight);
+ this.context.drawImage(this.image, 0, 0, this.imageWidth(), this.imageHeight(), 0, 0, this.preScaledWidth, this.preScaledHeight);
}
this.reloadCanvasData();
if (Caman.allowRevert) {
View
8 dist/caman.min.js
@@ -23,11 +23,13 @@ this.callback=args[2];if(args.length===4){_ref=args[4];_results=[];for(key in _r
return _results;}};Caman.prototype.setInitObject=function(obj){if(Caman.NodeJS){this.initObj=obj;this.initType='node';return;}
if(typeof obj==="object"){this.initObj=obj;}else{this.initObj=$(obj);}
if(this.initObj==null){throw"Could not find image or canvas for initialization.";}
-return this.initType=this.initObj.nodeName.toLowerCase();};Caman.prototype.setup=function(){switch(this.initType){case"node":return this.initNode();case"img":return this.initImage();case"canvas":return this.initCanvas();}};Caman.prototype.initNode=function(){var _this=this;Log.debug("Initializing for NodeJS");this.image=new Image();this.image.onload=function(){Log.debug("Image loaded. Width = "+_this.image.width+", Height = "+_this.image.height);_this.canvas=new Canvas(_this.image.width,_this.image.height);return _this.finishInit();};this.image.onerror=function(err){throw err;};return this.image.src=this.initObj;};Caman.prototype.initImage=function(){this.image=this.initObj;this.canvas=document.createElement('canvas');this.context=this.canvas.getContext('2d');Util.copyAttributes(this.image,this.canvas,{except:['src']});this.image.parentNode.replaceChild(this.canvas,this.image);this.imageAdjustments();return this.waitForImageLoaded();};Caman.prototype.initCanvas=function(){this.canvas=this.initObj;this.context=this.canvas.getContext('2d');if(this.imageUrl!=null){this.image=document.createElement('img');this.image.src=this.imageUrl;this.imageAdjustments();return this.waitForImageLoaded();}else{return this.finishInit();}};Caman.prototype.imageAdjustments=function(){if(this.needsHiDPISwap()){Log.debug(this.image.src,"->",this.hiDPIReplacement());this.swapped=true;this.image.src=this.hiDPIReplacement();}
-if(IO.isRemote(this.image)){this.image.src=IO.proxyUrl(this.image.src);return Log.debug("Remote image detected, using URL = "+this.image.src);}};Caman.prototype.waitForImageLoaded=function(){if(this.image.complete){return this.imageLoaded();}else{return this.image.onload=this.imageLoaded;}};Caman.prototype.imageLoaded=function(){Log.debug("Image loaded. Width = "+this.image.width+", Height = "+this.image.height);if(this.swapped){this.canvas.width=this.image.width/this.hiDPIRatio();this.canvas.height=this.image.height/this.hiDPIRatio();}else{this.canvas.width=this.image.width;this.canvas.height=this.image.height;}
+return this.initType=this.initObj.nodeName.toLowerCase();};Caman.prototype.setup=function(){switch(this.initType){case"node":return this.initNode();case"img":return this.initImage();case"canvas":return this.initCanvas();}};Caman.prototype.initNode=function(){var _this=this;Log.debug("Initializing for NodeJS");this.image=new Image();this.image.onload=function(){Log.debug("Image loaded. Width = "+(_this.imageWidth())+", Height = "+(_this.imageHeight()));_this.canvas=new Canvas(_this.imageWidth(),_this.imageHeight());return _this.finishInit();};this.image.onerror=function(err){throw err;};return this.image.src=this.initObj;};Caman.prototype.initImage=function(){this.image=this.initObj;this.canvas=document.createElement('canvas');this.context=this.canvas.getContext('2d');Util.copyAttributes(this.image,this.canvas,{except:['src']});this.image.parentNode.replaceChild(this.canvas,this.image);this.imageAdjustments();return this.waitForImageLoaded();};Caman.prototype.initCanvas=function(){this.canvas=this.initObj;this.context=this.canvas.getContext('2d');if(this.imageUrl!=null){this.image=document.createElement('img');this.image.src=this.imageUrl;this.imageAdjustments();return this.waitForImageLoaded();}else{return this.finishInit();}};Caman.prototype.imageAdjustments=function(){if(this.needsHiDPISwap()){Log.debug(this.image.src,"->",this.hiDPIReplacement());this.swapped=true;this.image.src=this.hiDPIReplacement();}
+if(IO.isRemote(this.image)){this.image.src=IO.proxyUrl(this.image.src);return Log.debug("Remote image detected, using URL = "+this.image.src);}};Caman.prototype.waitForImageLoaded=function(){if(this.isImageLoaded()){return this.imageLoaded();}else{return this.image.onload=this.imageLoaded;}};Caman.prototype.isImageLoaded=function(){if(!this.image.complete){return false;}
+if((this.image.naturalWidth!=null)&&this.image.naturalWidth===0){return false;}
+return true;};Caman.prototype.imageWidth=function(){return this.image.width||this.image.naturalWidth;};Caman.prototype.imageHeight=function(){return this.image.height||this.image.naturalHeight;};Caman.prototype.imageLoaded=function(){Log.debug("Image loaded. Width = "+(this.imageWidth())+", Height = "+(this.imageHeight()));if(this.swapped){this.canvas.width=this.imageWidth()/this.hiDPIRatio();this.canvas.height=this.imageHeight()/this.hiDPIRatio();}else{this.canvas.width=this.imageWidth();this.canvas.height=this.imageHeight();}
return this.finishInit();};Caman.prototype.finishInit=function(){var i,pixel,_i,_len,_ref;if(this.context==null){this.context=this.canvas.getContext('2d');}
this.originalWidth=this.preScaledWidth=this.width=this.canvas.width;this.originalHeight=this.preScaledHeight=this.height=this.canvas.height;this.hiDPIAdjustments();if(!this.hasId()){this.assignId();}
-if(this.image!=null){this.context.drawImage(this.image,0,0,this.image.width,this.image.height,0,0,this.preScaledWidth,this.preScaledHeight);}
+if(this.image!=null){this.context.drawImage(this.image,0,0,this.imageWidth(),this.imageHeight(),0,0,this.preScaledWidth,this.preScaledHeight);}
this.reloadCanvasData();if(Caman.allowRevert){this.initializedPixelData=new Uint8Array(this.pixelData.length);this.originalPixelData=new Uint8Array(this.pixelData.length);_ref=this.pixelData;for(i=_i=0,_len=_ref.length;_i<_len;i=++_i){pixel=_ref[i];this.initializedPixelData[i]=pixel;this.originalPixelData[i]=pixel;}}
this.dimensions={width:this.canvas.width,height:this.canvas.height};Store.put(this.id,this);this.callback.call(this,this);return this.callback=function(){};};Caman.prototype.reloadCanvasData=function(){this.imageData=this.context.getImageData(0,0,this.canvas.width,this.canvas.height);return this.pixelData=this.imageData.data;};Caman.prototype.resetOriginalPixelData=function(){var pixel,_i,_len,_ref,_results;if(!Caman.allowRevert){throw"Revert disabled";}
this.originalPixelData=new Uint8Array(this.pixelData.length);_ref=this.pixelData;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){pixel=_ref[_i];_results.push(this.originalPixelData.push(pixel));}
View
2  dist/caman.pack.js
@@ -1 +1 @@
-eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(o(){G $,2S,1A,20,E,2P,2H,1v,1L,3O,T,1P,2Y,22,1n,3B,1T,1N,1d,4E,1V,1f,3i,2M,4t={}.97,57=[].8T||o(5Y){V(G i=0,l=8.Q;i<l;i++){u(i 4F 8&&8[i]===5Y)9 i}9-1},Z=8,7N=[].2M;2M=58.K.2M;$=o(4k,4j){u(4j==M){4j=1z}u(1j 4k==="2s"||(1j 1R!=="2G"&&1R!==M)){9 4k}9 4j.8v(4k)};1f=(o(){o 1f(){}1f.5R=(o(){G 1H;1H=0;9{2N:o(){9 1H++}}})();1f.9a=o(2p){G 3P,48,3N,17,D,13;48=2p;17=2M.1e(14,1);V(D=0,13=17.Q;D<13;D++){3P=17[D];V(3N 4F 3P){u(!4t.1e(3P,3N))3E;48[3N]=3P[3N]}}9 48};1f.2c=o(1y){u(1y<0){9 0}u(1y>B){9 B}9 1y};1f.3v=o(66,3q,3r){G 3t,D,13,F,1O,X;u(3r==M){3r={}}F=66.8D;X=[];V(D=0,13=F.Q;D<13;D++){3t=F[D];u((3r.5F!=M)&&(1O=3t.5G,57.1e(3r.5F,1O)>=0)){3E}X.1x(3q.68(3t.5G,3t.9w))}9 X};9 1f})();u(1j 1R!=="2G"&&1R!==M){4E=1R;2H=4C(\'C\');2Y=2H.2Y;3O=4C(\'8G\');3i=4C(\'3i\')}S{4E=2R}4E.E=E=(o(){E.5M={6C:"4.1.0",7O:"2/12/8P"};E.6T=1S;E.1Z=1j 1R!=="2G"&&1R!==M;E.6x=!E.1Z;E.3l=2j;E.5P="69";E.8K=o(){9"8L "+E.5M.6C+", 8M "+E.5M.7O};E.3T="";E.7a="7i";E.5O=o(C){u(E.1Z){9 2j}u(1j C==="3R"){C=$(C)}u(!((C!=M)&&(C.2V!=M))){9 M}9 C.2V(\'1h-24-1H\')};o E(){G 1b,1C,1H,Z=8;u(14.Q===0){2z"4b 14";}u(8 8O E){8.2X=8.2X.5N(8);8.3L=8.3L.5N(8);1b=14[0];u(!E.1Z){1H=3K(E.5O(1b[0]),10);1C=1j 1b[1]==="o"?1b[1]:1j 1b[2]==="o"?1b[2]:o(){};u(!9j(1H)&&1V.7I(1H)){9 1V.2f(1H,1C)}}8.1H=1f.5R.2N();8.4a=8.2J=M;8.3H={x:0,y:0};8.6W=1S;8.4m=1S;8.3G=[];8.5L=[];8.5K=[];8.3F=M;8.5V=1S;8.9l=1t 2S(8);8.2A=1t 1d(8);8.6e(o(){Z.6q(1b);9 Z.6u()});9 8}S{9 1t E(14)}}E.K.6e=o(2Z){G 5I,Z=8;u(E.1Z){9 4u(o(){9 2Z.1e(Z)},0)}S{u(1z.5H==="4A"){1n.1F("7l 7o");9 4u(o(){9 2Z.1e(Z)},0)}S{5I=o(){u(1z.5H==="4A"){1n.1F("7l 7o");9 2Z.1e(Z)}};9 1z.7u("9k",5I,1S)}}};E.K.6q=o(1b){G 3A,1y,F,X;u(1b.Q===0){2z"4b 14 7B";}8.2o=M;8.44=M;8.46=M;8.1C=o(){};8.65(1b[0]);u(1b.Q===1){9}32(1j 1b[1]){1q"3R":8.46=1b[1];2D;1q"o":8.1C=1b[1]}u(1b.Q===2){9}8.1C=1b[2];u(1b.Q===4){F=1b[4];X=[];V(3A 4F F){u(!4t.1e(F,3A))3E;1y=F[3A];X.1x(8.18[3A]=1y)}9 X}};E.K.65=o(2p){u(E.1Z){8.2o=2p;8.44=\'6o\';9}u(1j 2p==="2s"){8.2o=2p}S{8.2o=$(2p)}u(8.2o==M){2z"8W 8Y 90 P 6t C V 99.";}9 8.44=8.2o.5G.3y()};E.K.6u=o(){32(8.44){1q"6o":9 8.6v();1q"1a":9 8.6z();1q"C":9 8.6B()}};E.K.6v=o(){G Z=8;1n.1F("8u V 1Z");8.P=1t 2Y();8.P.5E=o(){1n.1F("2Y 6M. 6O = "+Z.P.H+", 6U = "+Z.P.N);Z.C=1t 2H(Z.P.H,Z.P.N);9 Z.2X()};8.P.8N=o(74){2z 74;};9 8.P.17=8.2o};E.K.6z=o(){8.P=8.2o;8.C=1z.2h(\'C\');8.1k=8.C.2g(\'2d\');1f.3v(8.P,8.C,{5F:[\'17\']});8.P.5D.5C(8.C,8.P);8.5B();9 8.5A()};E.K.6B=o(){8.C=8.2o;8.1k=8.C.2g(\'2d\');u(8.46!=M){8.P=1z.2h(\'1a\');8.P.17=8.46;8.5B();9 8.5A()}S{9 8.2X()}};E.K.5B=o(){u(8.7M()){1n.1F(8.P.17,"->",8.4l());8.7Q=2j;8.P.17=8.4l()}u(1P.7R(8.P)){8.P.17=1P.3c(8.P.17);9 1n.1F("9F P 82, 8r 5X = "+8.P.17)}};E.K.5A=o(){u(8.P.4A){9 8.3L()}S{9 8.P.5E=8.3L}};E.K.3L=o(){1n.1F("2Y 6M. 6O = "+8.P.H+", 6U = "+8.P.N);u(8.7Q){8.C.H=8.P.H/8.4r();8.C.N=8.P.N/8.4r()}S{8.C.H=8.P.H;8.C.N=8.P.N}9 8.2X()};E.K.2X=o(){G i,1s,D,13,F;u(8.1k==M){8.1k=8.C.2g(\'2d\')}8.3d=8.3j=8.H=8.C.H;8.3h=8.3g=8.N=8.C.N;8.6h();u(!8.6j()){8.6n()}u(8.P!=M){8.1k.3k(8.P,0,0,8.P.H,8.P.N,0,0,8.3j,8.3g)}8.5z();u(E.3l){8.4a=1t 42(8.J.Q);8.2J=1t 42(8.J.Q);F=8.J;V(i=D=0,13=F.Q;D<13;i=++D){1s=F[i];8.4a[i]=1s;8.2J[i]=1s}}8.1E={H:8.C.H,N:8.C.N};1V.6w(8.1H,8);8.1C.1e(8,8);9 8.1C=o(){}};E.K.5z=o(){8.1M=8.1k.36(0,0,8.C.H,8.C.N);9 8.J=8.1M.1h};E.K.9d=o(){G 1s,D,13,F,X;u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o;9 8.J=1o.J};E.K.6E=o(){8.J=8.3G.6F();9 8.3F=8.5L.6F()};E.K.6J=o(){9 8.3F.6K()};9 E})();2S=(o(){o 2S(c){8.c=c}2S.K.93=o(){G i,21,3o,D,1c,1m,F;21={r:{},g:{},b:{}};V(i=D=0;D<=B;i=++D){21.r[i]=0;21.g[i]=0;21.b[i]=0}V(i=1c=0,F=8.c.J.Q;1c<F;i=1c+=4){21.r[8.c.J[i]]++;21.g[8.c.J[i+1]]++;21.b[8.c.J[i+2]]++}3o=8.c.J.Q/4;V(i=1m=0;1m<=B;i=++1m){21.r[i]/=3o;21.g[i]/=3o;21.b[i]/=3o}9 21};9 2S})();E.5f=o(){G 1a,3J,71,D,13,X;3J=1z.9D("1a[1h-24]");u(!(3J.Q>0)){9}X=[];V(D=0,13=3J.Q;D<13;D++){1a=3J[D];X.1x(71=1t 2P(1a,o(){8.72();9 8.2f()}))}9 X};u(E.6x){(o(){u(1z.5H==="4A"){9 E.5f()}S{9 1z.7u("9N",E.5f,1S)}})()}2P=(o(){G 45;45="(\\\\w+)\\\\((.*?)\\\\)";o 2P(2k,76){8.77=2k.2V(\'1h-24\');8.24=E(2k,76.5N(8))}2P.K.72=o(){G 1b,3C,3e,5d,5c,m,r,3x,D,13,F,X;8.2k=8.24.C;r=1t 7m(45,\'g\');3x=8.77.5b(r);u(!(3x.Q>0)){9}r=1t 7m(45);X=[];V(D=0,13=3x.Q;D<13;D++){5d=3x[D];F=5d.5b(r),m=F[0],3C=F[1],1b=F[2];5c=1t 8H("9 o() { 8."+3C+"("+1b+"); };");7p{3e=5c();X.1x(3e.1e(8.24))}7t(e){X.1x(1n.1F(e))}}9 X};2P.K.2f=o(){G 2k;2k=8.2k;9 8.24.75(o(){9 2k.5D.5C(8.7z(),2k)})};9 2P})();E.1A=1A=(o(){o 1A(){}1A.59={};1A.11=o(W,3e){9 8.59[W]=3e};1A.2f=o(W,O,L){9 8.59[W](O,L)};9 1A})();E.20=20=(o(){o 20(){}20.ao=o(38,39,3s,3m){9 R.7S(R.1B(3s-38,2)+R.1B(3m-39,2))};20.64=o(1w,U,3z){G 2l;u(3z==M){3z=1S}2l=1w+(R.9m()*(U-1w));u(3z){9 2l.9s(3z)}S{9 R.56(2l)}};20.6a=o(A){9(0.9H*A.r)+(0.9J*A.g)+(0.9K*A.b)};20.1u=o(1g,25,28,15,3V,3W){G 54,53,3Z,40,3U,3p,1u,50,2Q,i,j,3a,47,t,3u,38,3s,4Z,3w,39,3m,4X,D,1c,1m,F,1O;3u=1g[0];3w=1g[1];38=25[0];39=25[1];3s=28[0];3m=28[1];4Z=15[0];4X=15[1];1u={};3U=3K(3*(38-3u),10);3Z=3*(3s-38)-3U;54=4Z-3u-3U-3Z;3p=3*(39-3w);40=3*(3m-39)-3p;53=4X-3w-3p-40;V(i=D=0;D<6S;i=++D){t=i/6S;50=R.56((54*R.1B(t,3))+(3Z*R.1B(t,2))+(3U*t)+3u);2Q=R.56((53*R.1B(t,3))+(40*R.1B(t,2))+(3p*t)+3w);u(3V&&2Q<3V){2Q=3V}S u(3W&&2Q>3W){2Q=3W}1u[50]=2Q}u(1u.Q<15[0]+1){V(i=1c=0,F=15[0];0<=F?1c<=F:1c>=F;i=0<=F?++1c:--1c){u(1u[i]==M){3a=[i-1,1u[i-1]];V(j=1m=i,1O=15[0];i<=1O?1m<=1O:1m>=1O;j=i<=1O?++1m:--1m){u(1u[j]!=M){47=[j,1u[j]];2D}}1u[i]=3a[1]+((47[1]-3a[1])/(47[0]-3a[0]))*(i-3a[0])}}}u(1u[15[0]]==M){1u[15[0]]=1u[15[0]-1]}9 1u};9 20})();1v=(o(){o 1v(){}1v.4W=o(2I){G b,g,r;u(2I.8Z(0)==="#"){2I=2I.4f(1)}r=3K(2I.4f(0,2),16);g=3K(2I.4f(2,2),16);b=3K(2I.4f(4,2),16);9{r:r,g:g,b:b}};1v.94=o(r,g,b){G d,h,l,U,1w,s;u(1j r==="2s"){g=r.g;b=r.b;r=r.r}r/=B;g/=B;b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L[Y]&&8.2L[Y].Q){F=8.2L[Y];X=[];V(D=0,13=F.Q;D<13;D++){3Q=F[D];u(3Q.2b===M||2b.1H===3Q.2b.1H){X.1x(3Q.2u.1e(2b,1h))}S{X.1x(9e 0)}}9 X}};1L.9h=o(2b,Y,2u){G 4P,4Q;u(1j 2b==="3R"){4Q=2b;4P=Y;2b=M;Y=4Q;2u=4P}u(57.1e(8.5Z,Y)<0){9 1S}u(!8.2L[Y]){8.2L[Y]=[]}8.2L[Y].1x({2b:2b,2u:2u});9 2j};9 1L})();E.1L=1L;E.T=T=(o(){o T(){}T.1X={5s:1,5p:2,5k:3,5i:4,4R:5,1N:6};T.11=o(W,6b){9 E.K[W]=6b};9 T})();E.1P=1P=(o(){o 1P(){}1P.6c=/(?:(?:9p|9q):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;1P.7R=o(1a){u(1a==M){9 1S}u(8.6d(1a)){9 1S}9 8.4x(1a.17)};1P.6d=o(1a){G F;9(1a.5P!=M)&&((F=1a.5P.3y())===\'69\'||F===\'6f-9E\')};1P.4x=o(6g){G 4w;4w=6g.5b(8.6c);u(4w){9 4w[1]!==1z.9I}S{9 1S}};1P.6i=o(17){u(8.4x(17)){u(!E.3T.Q){1n.4U("9L 3q 9M a 6k P 9O a 9P 6l. 5X: "+17)}S{u(E.4x(E.3T)){1n.4U("9R 6f a 6k 6l V 9S 9T.");9}9""+E.3T+"?7i="+(6m(17))}}};1P.3c=o(17){9""+E.3T+"?"+E.7a+"="+(6m(17))};1P.a4=o(2E){G 4d;4d={a7:\'a8\',a9:\'aa\',ab:\'ac\',ad:\'ae\'};2E=2E.3y();u(4d[2E]!=M){2E=4d[2E]}9"af/ak."+2E};9 1P})();E.K.al=o(){u(1j 1R!=="2G"&&1R!==M){9 8.6p.34(8,14)}S{9 8.6r.34(8,14)}};E.K.6r=o(Y){G P;u(Y==M){Y="6s"}Y=Y.3y();P=8.4Y(Y).7W("P/"+Y,"P/7X-7Y");9 1z.7Z.80=P};E.K.6p=o(37,43){G 51;u(43==M){43=2j}7p{51=3i.84(37);u(51.85()&&!43){9 1S}}7t(e){1n.1F("86 87 37 "+37)}9 3i.88(37,8.C.89(),o(){9 1n.1F("8a 8b 3q "+37)})};E.K.7z=o(Y){G 1a;1a=1z.2h(\'1a\');1a.17=8.4Y(Y);1a.H=8.1E.H;1a.N=8.1E.N;u(2R.2r){1a.H/=2R.2r;1a.N/=2R.2r}9 1a};E.K.4Y=o(Y){u(Y==M){Y="6s"}Y=Y.3y();9 8.C.8c("P/"+Y)};22=(o(){o 22(c){8.c=c;8.3C=8.c;8.18={52:\'6y\',2y:1.0};8.8g=1f.5R.2N();8.C=1j 1R!=="2G"&&1R!==M?1t 2H():1z.2h(\'C\');8.C.H=8.c.1E.H;8.C.N=8.c.1E.N;8.1k=8.C.2g(\'2d\');8.1k.8h(8.C.H,8.C.N);8.1M=8.1k.36(0,0,8.C.H,8.C.N);8.J=8.1M.1h}22.K.5m=o(2Z){9 8.c.5m.1e(8.c,2Z)};22.K.8i=o(6A){8.18.52=6A;9 8};22.K.2y=o(2y){8.18.2y=2y/1i;9 8};22.K.8k=o(){G i,1Q,D,F;1Q=8.c.J;V(i=D=0,F=8.c.J.Q;D<F;i=D+=4){8.J[i]=1Q[i];8.J[i+1]=1Q[i+1];8.J[i+2]=1Q[i+2];8.J[i+3]=1Q[i+3]}9 8};22.K.4y=o(){9 8.c.4y.34(8.c,14)};22.K.8n=o(P){u(1j P==="2s"){P=P.17}S u(1j P==="3R"&&P[0]==="#"){P=$(P).17}u(!P){9 8}8.c.2A.3f.1x({Y:T.1X.4R,17:P,1o:8});9 8};22.K.6K=o(){G i,2C,1Q,19,O,L,D,F,X;1Q=8.c.3G[8.c.3G.Q-1];2C=8.c.J;X=[];V(i=D=0,F=2C.Q;D<F;i=D+=4){L={r:1Q[i],g:1Q[i+1],b:1Q[i+2],a:1Q[i+3]};O={r:2C[i],g:2C[i+1],b:2C[i+2],a:2C[i+3]};19=1A.2f(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();1N=(o(){o 1N(){}1N.5e={};1N.11=o(W,2i){9 8.5e[W]=2i};1N.2f=o(1k,W,1b){9 8.5e[W].34(1k,1b)};9 1N})();E.1N=1N;E.1d=1d=(o(){1d.2v=E.1Z?4C(\'8I\').8J().Q:4;o 1d(c){G Z=8;8.c=c;8.2n=o(){9 1d.K.2n.34(Z,14)};8.3f=[];8.2O=M}1d.K.2W=o(5g){u(5g==M){9}9 8.3f.1x(5g)};1d.K.2n=o(){G 1o;u(8.3f.Q===0){1L.2K(8,"62");u(8.5h!=M){8.5h.1e(8.c)}9 8}8.1r=8.3f.6X();32(8.1r.Y){1q T.1X.5k:1o=8.c.5K.6X();8.c.67(1o);9 8.2n();1q T.1X.5i:8.c.6J();8.c.6E();9 8.2n();1q T.1X.4R:9 8.6Y(8.1r.1o,8.1r.17);1q T.1X.1N:9 8.6Z();8S:9 8.70()}};1d.K.2f=o(1C){8.5h=1C;8.2O=1t 42(8.c.J.Q);9 8.2n()};1d.K.5j=o(2u){G 3S,5l,1I,15,f,i,5n,n,1g,D,F,X,Z=8;8.4o=0;n=8.c.J.Q;5l=R.3I((n/4)/1d.2v);3S=5l*4;5n=3S+((n/4)%1d.2v)*4;X=[];V(i=D=0,F=1d.2v;0<=F?D<F:D>F;i=0<=F?++D:--D){1g=i*3S;15=1g+(i===1d.2v-1?5n:3S);u(E.1Z){f=3O(o(){9 2u.1e(Z,i,1g,15)});1I=f.91();X.1x(8.2U(1I))}S{X.1x(4u((o(i,1g,15){9 o(){9 2u.1e(Z,i,1g,15)}})(i,1g,15),0))}}9 X};1d.K.70=o(){1L.2K(8.c,"60",8.1r);u(8.1r.Y===T.1X.5s){9 8.5j(8.78)}S{9 8.5j(8.79)}};1d.K.6Z=o(){1n.1F("96 2i "+8.1r.2i);1N.2f(8.c,8.1r.2i,8.1r.1b);1n.1F("1N "+8.1r.2i+" 5q!");9 8.2n()};1d.K.78=o(1I,1g,15){G 1h,i,2t,1Y,D;1n.1F("7d #"+1I+" - T: "+8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2v});u(8.4o===1d.2v){u(8.1r.Y===T.1X.5p){V(i=D=0,F=8.c.J.Q;0<=F?D<F:D>F;i=0<=F?++D:--D){8.c.J[i]=8.2O[i]}}u(1I>=0){1n.1F("T "+8.1r.W+" 5q!")}1L.2K(8.c,"61",8.1r);9 8.2n()}};1d.K.5r=o(I,26,1U,2a){G i,1y,D,F;1y={r:0,g:0,b:0};V(i=D=0,F=I.Q;0<=F?D<F:D>F;i=0<=F?++D:--D){1y.r+=I[i]*26[i*3];1y.g+=I[i]*26[i*3+1];1y.b+=I[i]*26[i*3+2]}1y.r=(1y.r/1U)+2a;1y.g=(1y.g/1U)+2a;1y.b=(1y.b/1U)+2a;9 1y};1d.K.6Y=o(1o,17){G 1a,3c,Z=8;1a=1z.2h(\'1a\');1a.5E=o(){1o.1k.3k(1a,0,0,Z.c.1E.H,Z.c.1E.N);1o.1M=1o.1k.36(0,0,Z.c.1E.H,Z.c.1E.N);1o.J=1o.1M.1h;Z.c.J=1o.J;9 Z.2n()};3c=1P.6i(17);9 1a.17=3c!=M?3c:17};9 1d})();E.1V=1V=(o(){o 1V(){}1V.35={};1V.7I=o(2B){9 8.35[2B]!=M};1V.2N=o(2B){9 8.35[2B]};1V.6w=o(W,2p){9 8.35[W]=2p};1V.2f=o(2B,1C){G Z=8;4u(o(){9 1C.1e(Z.2N(2B),Z.2N(2B))},0);9 8.2N(2B)};1V.9r=o(W){u(W==M){W=1S}u(W){9 7n 8.35[W]}S{9 8.35={}}};9 1V})();1A.11("6y",o(O,L){9{r:O.r,g:O.g,b:O.b}});1A.11("9t",o(O,L){9{r:(O.r*L.r)/B,g:(O.g*L.g)/B,b:(O.b*L.b)/B}});1A.11("9u",o(O,L){9{r:B-(((B-O.r)*(B-L.r))/B),g:B-(((B-O.g)*(B-L.g))/B),b:B-(((B-O.b)*(B-L.b))/B)}});1A.11("9v",o(O,L){G 19;19={};19.r=L.r>1p?B-2*(B-O.r)*(B-L.r)/B:(L.r*O.r*2)/B;19.g=L.g>1p?B-2*(B-O.g)*(B-L.g)/B:(L.g*O.g*2)/B;19.b=L.b>1p?B-2*(B-O.b)*(B-L.b)/B:(L.b*O.b*2)/B;9 19});1A.11("9x",o(O,L){9{r:O.r-L.r,g:O.g-L.g,b:O.b-L.b}});1A.11("9y",o(O,L){9{r:L.r+O.r,g:L.g+O.g,b:L.b+O.b}});1A.11("9z",o(O,L){9{r:1p-2*(L.r-1p)*(O.r-1p)/B,g:1p-2*(L.g-1p)*(O.g-1p)/B,b:1p-2*(L.b-1p)*(O.b-1p)/B}});1A.11("9A",o(O,L){G 19;19={};19.r=L.r>1p?B-((B-L.r)*(B-(O.r-1p)))/B:(L.r*(O.r+1p))/B;19.g=L.g>1p?B-((B-L.g)*(B-(O.g-1p)))/B:(L.g*(O.g+1p))/B;19.b=L.b>1p?B-((B-L.b)*(B-(O.b-1p)))/B:(L.b*(O.b+1p))/B;9 19});1A.11("9B",o(O,L){9{r:L.r>O.r?L.r:O.r,g:L.g>O.g?L.g:O.g,b:L.b>O.b?L.b:O.b}});1A.11("9C",o(O,L){9{r:L.r>O.r?O.r:L.r,g:L.g>O.g?O.g:L.g,b:L.b>O.b?O.b:L.b}});T.11("4y",o(){G 3b;u(14.Q===1){3b=1v.4W(14[0])}S{3b={r:14[0],g:14[1],b:14[2]}}9 8.1J("4y",o(A){A.r=3b.r;A.g=3b.g;A.b=3b.b;A.a=B;9 A})});T.11("7q",o(I){I=R.3I(B*(I/1i));9 8.1J("7q",o(A){A.r+=I;A.g+=I;A.b+=I;9 A})});T.11("7r",o(I){I*=-0.9G;9 8.1J("7r",o(A){G U;U=R.U(A.r,A.g,A.b);u(A.r!==U){A.r+=(U-A.r)*I}u(A.g!==U){A.g+=(U-A.g)*I}u(A.b!==U){A.b+=(U-A.b)*I}9 A})});T.11("7s",o(I){I*=-1;9 8.1J("7s",o(A){G 3n,2x,U;U=R.U(A.r,A.g,A.b);2x=(A.r+A.g+A.b)/3;3n=((R.2w(U-2x)*2/B)*I)/1i;u(A.r!==U){A.r+=(U-A.r)*3n}u(A.g!==U){A.g+=(U-A.g)*3n}u(A.b!==U){A.b+=(U-A.b)*3n}9 A})});T.11("7w",o(I){9 8.1J("7w",o(A){G 2x;2x=20.6a(A);A.r=2x;A.g=2x;A.b=2x;9 A})});T.11("7x",o(I){I=R.1B((I+1i)/1i,2);9 8.1J("7x",o(A){A.r/=B;A.r-=0.5;A.r*=I;A.r+=0.5;A.r*=B;A.g/=B;A.g-=0.5;A.g*=I;A.g+=0.5;A.g*=B;A.b/=B;A.b-=0.5;A.b*=I;A.b+=0.5;A.b*=B;9 A})});T.11("7y",o(I){9 8.1J("7y",o(A){G h,2F,27;2F=1v.7b(A.r,A.g,A.b);h=2F.h*1i;h+=R.2w(I);h=h%1i;h/=1i;2F.h=h;27=1v.7h(2F.h,2F.s,2F.v);27.a=A.a;9 27})});T.11("7A",o(){G 31,27;u(14.Q===2){27=1v.4W(14[0]);31=14[1]}S u(14.Q===4){27={r:14[0],g:14[1],b:14[2]};31=14[3]}9 8.1J("7A",o(A){A.r-=(A.r-27.r)*(31/1i);A.g-=(A.g-27.g)*(31/1i);A.b-=(A.b-27.b)*(31/1i);9 A})});T.11("7C",o(){9 8.1J("7C",o(A){A.r=B-A.r;A.g=B-A.g;A.b=B-A.b;9 A})});T.11("7D",o(I){u(I==M){I=1i}I/=1i;9 8.1J("7D",o(A){A.r=R.1w(B,(A.r*(1-(0.9U*I)))+(A.g*(0.9V*I))+(A.b*(0.9W*I)));A.g=R.1w(B,(A.r*(0.9X*I))+(A.g*(1-(0.9Y*I)))+(A.b*(0.9Z*I)));A.b=R.1w(B,(A.r*(0.a0*I))+(A.g*(0.a1*I))+(A.b*(1-(0.a2*I))));9 A})});T.11("7E",o(I){9 8.1J("7E",o(A){A.r=R.1B(A.r/B,I)*B;A.g=R.1B(A.g/B,I)*B;A.b=R.1B(A.b/B,I)*B;9 A})});T.11("7F",o(I){I=R.2w(I)*2.55;9 8.1J("7F",o(A){G 2l;2l=20.64(I*-1,I);A.r+=2l;A.g+=2l;A.b+=2l;9 A})});T.11("7G",o(I){I=R.2w(I)*2.55;9 8.1J("7G",o(A){u(A.r>B-I){A.r=B}S u(A.r<I){A.r=0}u(A.g>B-I){A.g=B}S u(A.g<I){A.g=0}u(A.b>B-I){A.b=B}S u(A.b<I){A.b=0}9 A})});T.11("7H",o(18){G 30,5J;u(1j 18!=="2s"){9 8}V(30 4F 18){u(!4t.1e(18,30))3E;5J=18[30];u(5J===0){7n 18[30];3E}18[30]/=1i}u(18.Q===0){9 8}9 8.1J("7H",o(A){u(18.41!=M){u(18.41>0){A.r+=(B-A.r)*18.41}S{A.r-=A.r*R.2w(18.41)}}u(18.3Y!=M){u(18.3Y>0){A.g+=(B-A.g)*18.3Y}S{A.g-=A.g*R.2w(18.3Y)}}u(18.4i!=M){u(18.4i>0){A.b+=(B-A.b)*18.4i}S{A.b-=A.b*R.2w(18.4i)}}9 A})});T.11("4z",o(){G 1u,2e,29,25,28,15,i,1g,D,1c,F,1O;2e=14[0],29=2<=14.Q?7N.1e(14,1):[];u(1j 2e==="3R"){2e=2e.ag("")}u(2e[0]==="v"){2e=[\'r\',\'g\',\'b\']}u(29.Q<3||29.Q>4){2z"4b ah ai 14 3q 4z 3C";}1g=29[0];25=29[1];28=29.Q===4?29[2]:29[1];15=29[29.Q-1];1u=20.1u(1g,25,28,15,0,B);u(1g[0]>0){V(i=D=0,F=1g[0];0<=F?D<F:D>F;i=0<=F?++D:--D){1u[i]=1g[1]}}u(15[0]<B){V(i=1c=1O=15[0];1O<=B?1c<=B:1c>=B;i=1O<=B?++1c:--1c){1u[i]=15[1]}}9 8.1J("4z",o(A){G 1m,2m;V(i=1m=0,2m=2e.Q;0<=2m?1m<2m:1m>2m;i=0<=2m?++1m:--1m){A[2e[i]]=1u[A[2e[i]]]}9 A})});T.11("aj",o(I){G 25,28,p;p=R.2w(I)/1i;25=[0,B*p];28=[B-(B*p),B];u(I<0){25=25.7P();28=28.7P()}9 8.4z(\'27\',[0,0],25,28,[B,B])});E.1N.11("5Q",o(H,N,x,y){G C,1G;u(x==M){x=0}u(y==M){y=0}u(1j 1R!=="2G"&&1R!==M){C=1t 2H(H,N)}S{C=1z.2h(\'C\');1f.3v(8.C,C);C.H=H;C.N=N}1G=C.2g(\'2d\');1G.3k(8.C,x,y,H,N,0,0,H,N);8.3H={x:x,y:y};8.6W=2j;9 8.4p(C)});E.1N.11("4e",o(1D){G C,1G;u(1D==M){1D=M}u(1D===M||((1D.H==M)&&(1D.N==M))){1n.6H("4b 6t 98 1E 7B V 4e");9}u(1D.H==M){1D.H=8.C.H*1D.N/8.C.N}S u(1D.N==M){1D.N=8.C.N*1D.H/8.C.H}u(1j 1R!=="2G"&&1R!==M){C=1t 2H(1D.H,1D.N)}S{C=1z.2h(\'C\');1f.3v(8.C,C);C.H=1D.H;C.N=1D.N}1G=C.2g(\'2d\');1G.3k(8.C,0,0,8.C.H,8.C.N,0,0,1D.H,1D.N);8.4m=2j;9 8.4p(C)});E.T.11("5Q",o(){9 8.5o("5Q",58.K.2M.1e(14,0))});E.T.11("4e",o(){9 8.5o("4e",58.K.2M.1e(14,0))})}).1e(8);',62,645,'||||||||this|return|||||||||||||||function||||||if||||||rgba|255|canvas|_i|Caman|_ref|var|width|adjust|pixelData|prototype|rgbaParent|null|height|rgbaLayer|image|length|Math|else|Filter|max|for|name|_results|type|_this||register||_len|arguments|end||src|options|result|img|args|_j|Renderer|call|Util|start|data|100|typeof|context|loc|_k|Log|layer|128|case|currentJob|pixel|new|bezier|Convert|min|push|val|document|Blender|pow|callback|newDims|dimensions|debug|ctx|id|bnum|process|builder|Event|imageData|Plugin|_ref1|IO|parentData|exports|false|PixelInfo|divisor|Store|newLoc|Type|res|NodeJS|Calculate|levels|Layer|055|caman|ctrl1|kernel|rgb|ctrl2|cps|bias|target|clampRGB||chans|execute|getContext|createElement|plugin|true|ele|rand|_ref2|processNext|initObj|obj|ratio|devicePixelRatio|object|pixelInfo|fn|Blocks|abs|avg|opacity|throw|renderer|search|layerData|break|lang|hsv|undefined|Canvas|hex|originalPixelData|trigger|events|slice|get|modPixelData|CamanParser|curveY|window|Analyze|1379310345|blockFinished|getAttribute|add|finishInit|Image|cb|chan|level|switch|builderIndex|apply|items|getImageData|file|x1|y1|leftCoord|color|proxyUrl|originalWidth|func|renderQueue|preScaledHeight|originalHeight|fs|preScaledWidth|drawImage|allowRevert|y2|amt|numPixels|Cy|to|opts|x2|attr|x0|copyAttributes|y0|unparsedInstructions|toLowerCase|getFloat|key|Logger|filter|scaledCanvas|continue|currentLayer|pixelStack|cropCoordinates|floor|imgs|parseInt|imageLoaded|adjustSize|prop|Fiber|copy|event|string|blockN|remoteProxy|Cx|lowBound|highBound|startY|green|Bx|By|red|Uint8Array|overwrite|initType|INST_REGEX|imageUrl|rightCoord|dest|processFn|initializedPixelData|Invalid|vert|langToExt|resize|substr|horiz|disabled|blue|root|sel|hiDPIReplacement|resized|hueToRGB|blocksDone|replaceCanvas|oldCanvas|hiDPIRatio|putImageData|__hasProp|setTimeout|coord|matches|isURLRemote|fillColor|curves|complete|pixels|require|startX|Root|in|787037037|2068965517|1284185493|xyz|3333333333|008856451679|whiteZ|whiteY|whiteX|_fn|_type|LoadOverlay|4166666667|0031308|info|04045|hexToRGB|y3|toBase64|x3|curveX|stats|blendingMode|Ay|Ax||round|__indexOf|Array|blenders|coordinatesToLocation|match|instFunc|inst|plugins|DOMUpdated|job|finishedFn|LayerFinished|eachBlock|LayerDequeue|blockPixelLength|newLayer|lastBlockN|processPlugin|Kernel|finished|processKernel|Single|_ref3|endY|endX|backingStoreRatio|hiDPIDisabled|Revert|reloadCanvasData|waitForImageLoaded|imageAdjustments|replaceChild|parentNode|onload|except|nodeName|readyState|listener|value|canvasQueue|layerStack|version|bind|getAttrId|crossOrigin|crop|uniqid|116|500|200|scaled|locationToCoordinates|URL|item|types|processStart|processComplete|renderFinished|blockStarted|randomRange|setInitObject|from|executeLayer|setAttribute|anonymous|luminance|filterFunc|domainRegex|corsEnabled|domIsLoaded|use|url|hiDPIAdjustments|remoteCheck|hasId|remote|proxy|encodeURIComponent|assignId|node|nodeSave|parseArguments|browserSave|png|or|setup|initNode|put|autoload|normal|initImage|mode|initCanvas|release|pushContext|popContext|pop|log|error|console|applyCurrentLayer|applyToParent|getPixelRelative|loaded|hidpi|Width|nowLoc|style|px|1000|DEBUG|Height|hiDPICapable|cropped|shift|loadOverlay|executePlugin|executeFilter|parser|parse|newCanvas|err|render|ready|dataStr|renderBlock|renderKernel|proxyParam|rgbToHSV|renderStart|Block|blockNum|totalBlocks|yield|hsvToRGB|camanProxyUrl|originalVisiblePixels|rgbToXYZ|DOM|RegExp|delete|initialized|try|brightness|saturation|vibrance|catch|addEventListener|xyzToLab|greyscale|contrast|hue|toImage|colorize|given|invert|sepia|gamma|noise|clip|channels|has|047|108|883|needsHiDPISwap|__slice|date|reverse|swapped|isRemote|sqrt|0722|0193|1192|replace|octet|stream|location|href|9505|detected|xyzToRGB|statSync|isFile|Creating|output|writeFile|toBuffer|Finished|writing|toDataURL|2406|5372|4986|layerID|createImageData|setBlendingMode|9689|copyParent|8758|0415|overlayImage|0557|2040|0570|using|warn|scale|Initializing|querySelector|webkitBackingStorePixelRatio|locationXY|mozBackingStorePixelRatio|msBackingStorePixelRatio|oBackingStorePixelRatio|backingStorePixelRatio|putPixelRelative|attributes|getPixel|putPixel|fibers|Function|os|cpus|toString|Version|Released|onerror|instanceof|2013|revert|labToXYZ|default|indexOf|reset|rgbToLab|Could|labToRGB|not|charAt|find|run||calculateLevels|rgbToHSL||Executing|hasOwnProperty|missing|initialization|extend|Start|End|resetOriginalPixelData|void|startPixel|endPixel|listen|hslToRGB|isNaN|readystatechange|analyze|random|Rendering|blocksFinished|http|https|flush|toFixed|multiply|screen|overlay|nodeValue|difference|addition|exclusion|softLight|lighten|darken|querySelectorAll|credentials|Remote|01|299|domain|587|114|Attempting|load|DOMContentLoaded|without|configured|HiDPI|Cannot|loading|images|607|769|189|349|314|168|272|534|869|4124|useProxy|3576|1805|ruby|rb|python|py|perl|pl|javascript|js|proxies|split|number|of|exposure|caman_proxy|save|2126|7152|distance'.split('|'),0,{}))
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(o(){G $,31,1A,20,E,2Q,2L,1v,1K,3p,T,1Q,3c,22,1k,3T,1T,1N,1d,3Y,1U,1f,3q,2I,4e={}.8z,5T=[].8Q||o(7M){V(G i=0,l=8.P;i<l;i++){u(i 4a 8&&8[i]===7M)9 i}9-1},Z=8,7k=[].2I;2I=5E.H.2I;$=o(4u,4E){u(4E==M){4E=1y}u(1h 4u==="2o"||(1h 1S!=="2E"&&1S!==M)){9 4u}9 4E.8Z(4u)};1f=(o(){o 1f(){}1f.5p=(o(){G 1P;1P=0;9{2G:o(){9 1P++}}})();1f.9N=o(2n){G 3F,4q,3P,1a,D,11;4q=2n;1a=2I.1e(14,1);V(D=0,11=1a.P;D<11;D++){3F=1a[D];V(3P 4a 3F){u(!4e.1e(3F,3P))3R;4q[3P]=3F[3P]}}9 4q};1f.2b=o(1x){u(1x<0){9 0}u(1x>B){9 B}9 1x};1f.3S=o(5V,3h,3W){G 3V,D,11,F,1M,Y;u(3W==M){3W={}}F=5V.8E;Y=[];V(D=0,11=F.P;D<11;D++){3V=F[D];u((3W.4J!=M)&&(1M=3V.5l,5T.1e(3W.4J,1M)>=0)){3R}Y.1B(3h.6O(3V.5l,3V.8A))}9 Y};9 1f})();u(1h 1S!=="2E"&&1S!==M){3Y=1S;2L=3X(\'C\');3c=2L.3c;3p=3X(\'8S\');3q=3X(\'3q\')}R{3Y=2O}3Y.E=E=(o(){E.53={61:"4.1.0",60:"2/12/9e"};E.7V=1G;E.1X=1h 1S!=="2E"&&1S!==M;E.7U=!E.1X;E.3J=2i;E.5i="7m";E.9i=o(){9"9j "+E.53.61+", 9M "+E.53.60};E.3I="";E.6Y="6W";E.4I=o(C){u(E.1X){9 2i}u(1h C==="3A"){C=$(C)}u(!((C!=M)&&(C.37!=M))){9 M}9 C.37(\'1j-25-1P\')};o E(){G 19,1F,1P,Z=8;u(14.P===0){2B"4z 14";}u(8 a9 E){8.39=8.39.5y(8);8.3t=8.3t.5y(8);19=14[0];u(!E.1X){1P=3r(E.4I(19[0]),10);1F=1h 19[1]==="o"?19[1]:1h 19[2]==="o"?19[2]:o(){};u(!8W(1P)&&1U.6e(1P)){9 1U.2g(1P,1F)}}8.1P=1f.5p.2G();8.47=8.2R=M;8.3n={x:0,y:0};8.6P=1G;8.40=1G;8.3l=[];8.5O=[];8.5P=[];8.3C=M;8.7w=1G;8.9a=1u 31(8);8.2t=1u 1d(8);8.7D(o(){Z.68(19);9 Z.75()});9 8}R{9 1u E(14)}}E.H.7D=o(32){G 5d,Z=8;u(E.1X){9 4f(o(){9 32.1e(Z)},0)}R{u(1y.5h==="48"){1k.1D("7l 7x");9 4f(o(){9 32.1e(Z)},0)}R{5d=o(){u(1y.5h==="48"){1k.1D("7l 7x");9 32.1e(Z)}};9 1y.7C("9c",5d,1G)}}};E.H.68=o(19){G 3j,1x,F,Y;u(19.P===0){2B"4z 14 7W";}8.2s=M;8.4r=M;8.4v=M;8.1F=o(){};8.7F(19[0]);u(19.P===1){9}2X(1h 19[1]){1r"3A":8.4v=19[1];2D;1r"o":8.1F=19[1]}u(19.P===2){9}8.1F=19[2];u(19.P===4){F=19[4];Y=[];V(3j 4a F){u(!4e.1e(F,3j))3R;1x=F[3j];Y.1B(8.18[3j]=1x)}9 Y}};E.H.7F=o(2n){u(E.1X){8.2s=2n;8.4r=\'7y\';9}u(1h 2n==="2o"){8.2s=2n}R{8.2s=$(2n)}u(8.2s==M){2B"8T 8U 8V S 7s C V 93.";}9 8.4r=8.2s.5l.3o()};E.H.75=o(){2X(8.4r){1r"7y":9 8.7o();1r"1b":9 8.7d();1r"C":9 8.78()}};E.H.7o=o(){G Z=8;1k.1D("9o V 1X");8.S=1u 3c();8.S.5t=o(){1k.1D("3c 6T. 6Q = "+(Z.2F())+", 6H = "+(Z.2H()));Z.C=1u 2L(Z.2F(),Z.2H());9 Z.39()};8.S.8P=o(6G){2B 6G;};9 8.S.1a=8.2s};E.H.7d=o(){8.S=8.2s;8.C=1y.2f(\'C\');8.1l=8.C.2e(\'2d\');1f.3S(8.S,8.C,{4J:[\'1a\']});8.S.56.52(8.C,8.S);8.51();9 8.4X()};E.H.78=o(){8.C=8.2s;8.1l=8.C.2e(\'2d\');u(8.4v!=M){8.S=1y.2f(\'1b\');8.S.1a=8.4v;8.51();9 8.4X()}R{9 8.39()}};E.H.51=o(){u(8.7e()){1k.1D(8.S.1a,"->",8.4D());8.6D=2i;8.S.1a=8.4D()}u(1Q.6t(8.S)){8.S.1a=1Q.2Y(8.S.1a);9 1k.1D("9q S 9u, 9B 6k = "+8.S.1a)}};E.H.4X=o(){u(8.5Z()){9 8.3t()}R{9 8.S.5t=8.3t}};E.H.5Z=o(){u(!8.S.48){9 1G}u((8.S.5e!=M)&&8.S.5e===0){9 1G}9 2i};E.H.2F=o(){9 8.S.K||8.S.5e};E.H.2H=o(){9 8.S.O||8.S.8D};E.H.3t=o(){1k.1D("3c 6T. 6Q = "+(8.2F())+", 6H = "+(8.2H()));u(8.6D){8.C.K=8.2F()/8.49();8.C.O=8.2H()/8.49()}R{8.C.K=8.2F();8.C.O=8.2H()}9 8.39()};E.H.39=o(){G i,1s,D,11,F;u(8.1l==M){8.1l=8.C.2e(\'2d\')}8.36=8.3y=8.K=8.C.K;8.3x=8.3v=8.O=8.C.O;8.7S();u(!8.7Q()){8.7r()}u(8.S!=M){8.1l.3i(8.S,0,0,8.2F(),8.2H(),0,0,8.3y,8.3v)}8.4K();u(E.3J){8.47=1u 4B(8.I.P);8.2R=1u 4B(8.I.P);F=8.I;V(i=D=0,11=F.P;D<11;i=++D){1s=F[i];8.47[i]=1s;8.2R[i]=1s}}8.1C={K:8.C.K,O:8.C.O};1U.6d(8.1P,8);8.1F.1e(8,8);9 8.1F=o(){}};E.H.4K=o(){8.1I=8.1l.3e(0,0,8.C.K,8.C.O);9 8.I=8.1I.1j};E.H.9r=o(){G 1s,D,11,F,Y;u(!E.3J){2B"5S 4w";}8.2R=1u 4B(8.I.P);F=8.I;Y=[];V(D=0,11=F.P;D<11;D++){1s=F[D];Y.1B(8.2R.1B(1s))}9 Y};E.H.7Q=o(){9 E.4I(8.C)!=M};E.H.7r=o(){u(E.1X||8.C.37(\'1j-25-1P\')){9}9 8.C.6O(\'1j-25-1P\',8.1P)};E.H.5R=o(){9 8.C.37(\'1j-25-69-4w\')!==M};E.H.7S=o(){G 2k;u(E.1X||8.5R()){9}2k=8.49();u(2k!==1){1k.1D("8y 2k = "+2k);8.7w=2i;8.3y=8.C.K;8.3v=8.C.O;8.C.K=8.3y*2k;8.C.O=8.3v*2k;8.C.6w.K=""+8.3y+"6y";8.C.6w.O=""+8.3v+"6y";8.1l.8B(2k,2k);8.K=8.36=8.C.K;9 8.O=8.3x=8.C.O}};E.H.49=o(){G 5Q,2j;2j=2O.2j||1;5Q=8.1l.8F||8.1l.8G||8.1l.8I||8.1l.8L||8.1l.8M||1;9 2j/5Q};E.H.62=o(){9(2O.2j!=M)&&2O.2j!==1};E.H.7e=o(){u(8.5R()||!8.62()){9 1G}9 8.4D()!==M};E.H.4D=o(){u(8.S==M){9 M}9 8.S.37(\'1j-25-69\')};E.H.4b=o(6a){G 4c;4c=8.C;8.C=6a;8.1l=8.C.2e(\'2d\');4c.56.52(8.C,4c);8.K=8.C.K;8.O=8.C.O;8.4K();9 8.1C={K:8.C.K,O:8.C.O}};E.H.6r=o(1F){G Z=8;u(1F==M){1F=o(){}}1K.2S(8,"6x");9 8.2t.2g(o(){Z.1l.4n(Z.1I,0,0);9 1F.1e(Z)})};E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X:T.1Z.1N,2l:2l,19:19});9 8};E.H.5F=o(1F){G 1p;1p=1u 22(8);8.5P.1B(1p);8.2t.3b({X:T.1Z.5C});1F.1e(1p);8.2t.3b({X:T.1Z.5A});9 8};E.H.6U=o(1p){9 8.6V(1p)};E.H.6V=o(1p){8.5O.1B(8.3C);8.3l.1B(8.I);8.3C=1p;9 8.I=1p.I};E.H.74=o(){8.I=8.3l.77();9 8.3C=8.5O.77()};E.H.79=o(){9 8.3C.7c()};9 E})();31=(o(){o 31(c){8.c=c}31.H.9f=o(){G i,21,3w,D,1c,1n,F;21={r:{},g:{},b:{}};V(i=D=0;D<=B;i=++D){21.r[i]=0;21.g[i]=0;21.b[i]=0}V(i=1c=0,F=8.c.I.P;1c<F;i=1c+=4){21.r[8.c.I[i]]++;21.g[8.c.I[i+1]]++;21.b[8.c.I[i+2]]++}3w=8.c.I.P/4;V(i=1n=0;1n<=B;i=++1n){21.r[i]/=3w;21.g[i]/=3w;21.b[i]/=3w}9 21};9 31})();E.5w=o(){G 1b,3z,6b,D,11,Y;3z=1y.9P("1b[1j-25]");u(!(3z.P>0)){9}Y=[];V(D=0,11=3z.P;D<11;D++){1b=3z[D];Y.1B(6b=1u 2Q(1b,o(){8.6c();9 8.2g()}))}9 Y};u(E.7U){(o(){u(1y.5h==="48"){9 E.5w()}R{9 1y.7C("88",E.5w,1G)}})()}2Q=(o(){G 4H;4H="(\\\\w+)\\\\((.*?)\\\\)";o 2Q(2r,6m){8.6q=2r.37(\'1j-25\');8.25=E(2r,6m.5y(8))}2Q.H.6c=o(){G 19,3B,3g,5r,5q,m,r,3D,D,11,F,Y;8.2r=8.25.C;r=1u 6E(4H,\'g\');3D=8.6q.5n(r);u(!(3D.P>0)){9}r=1u 6E(4H);Y=[];V(D=0,11=3D.P;D<11;D++){5r=3D[D];F=5r.5n(r),m=F[0],3B=F[1],19=F[2];5q=1u 8R("9 o() { 8."+3B+"("+19+"); };");6L{3g=5q();Y.1B(3g.1e(8.25))}6M(e){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}u(z>0.4Y){z=z*z*z}R{z=0.4Z*(z-0.2U)}9{x:x*95.7N,y:y*1i.0,z:z*7O.7P}};1v.91=o(r,g,b){G 50;u(1h r==="2o"){g=r.g;b=r.b;r=r.r}50=8.76(r,g,b);9 8.7p(50)};1v.94=o(l,a,b){};9 1v})();1K=(o(){o 1K(){}1K.2M={};1K.63=["64","65","6x","66","67","3d"];1K.2S=o(24,X,1j){G 3N,D,11,F,Y;u(8.2M[X]&&8.2M[X].P){F=8.2M[X];Y=[];V(D=0,11=F.P;D<11;D++){3N=F[D];u(3N.24===M||24.1P===3N.24.1P){Y.1B(3N.2A.1e(24,1j))}R{Y.1B(9m 0)}}9 Y}};1K.9n=o(24,X,2A){G 57,58;u(1h 24==="3A"){58=24;57=X;24=M;X=58;2A=57}u(5T.1e(8.63,X)<0){9 1G}u(!8.2M[X]){8.2M[X]=[]}8.2M[X].1B({24:24,2A:2A});9 2i};9 1K})();E.1K=1K;E.T=T=(o(){o T(){}T.1Z={5J:1,5H:2,5C:3,5A:4,59:5,1N:6};T.13=o(W,6f){9 E.H[W]=6f};9 T})();E.1Q=1Q=(o(){o 1Q(){}1Q.6g=/(?:(?:9v|9x):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;1Q.6t=o(1b){u(1b==M){9 1G}u(8.6h(1b)){9 1G}9 8.4k(1b.1a)};1Q.6h=o(1b){G F;9(1b.5i!=M)&&((F=1b.5i.3o())===\'7m\'||F===\'6i-9K\')};1Q.4k=o(6j){G 4j;4j=6j.5n(8.6g);u(4j){9 4j[1]!==1y.9O}R{9 1G}};1Q.6l=o(1a){u(8.4k(1a)){u(!E.3I.P){1k.5c("9R 3h 9S a 6n S 9U a 9V 6o. 6k: "+1a)}R{u(E.4k(E.3I)){1k.5c("9X 6i a 6n 6o V 9Y a8.");9}9""+E.3I+"?6W="+(6p(1a))}}};1Q.2Y=o(1a){9""+E.3I+"?"+E.6Y+"="+(6p(1a))};1Q.aa=o(2K){G 4g;4g={ad:\'ae\',af:\'ag\',ah:\'ai\',aj:\'ak\'};2K=2K.3o();u(4g[2K]!=M){2K=4g[2K]}9"ap/aq."+2K};9 1Q})();E.H.ar=o(){u(1h 1S!=="2E"&&1S!==M){9 8.6s.35(8,14)}R{9 8.6u.35(8,14)}};E.H.6u=o(X){G S;u(X==M){X="6v"}X=X.3o();S=8.5g(X).81("S/"+X,"S/82-83");9 1y.84.85=S};E.H.6s=o(30,4d){G 5j;u(4d==M){4d=2i}6L{5j=3q.89(30);u(5j.8a()&&!4d){9 1G}}6M(e){1k.1D("8b 8c 30 "+30)}9 3q.8d(30,8.C.8e(),o(){9 1k.1D("8f 8g 3h "+30)})};E.H.6S=o(X){G 1b;1b=1y.2f(\'1b\');1b.1a=8.5g(X);1b.K=8.1C.K;1b.O=8.1C.O;u(2O.2j){1b.K/=2O.2j;1b.O/=2O.2j}9 1b};E.H.5g=o(X){u(X==M){X="6v"}X=X.3o();9 8.C.8h("S/"+X)};22=(o(){o 22(c){8.c=c;8.3B=8.c;8.18={5k:\'6A\',2z:1.0};8.8l=1f.5p.2G();8.C=1h 1S!=="2E"&&1S!==M?1u 2L():1y.2f(\'C\');8.C.K=8.c.1C.K;8.C.O=8.c.1C.O;8.1l=8.C.2e(\'2d\');8.1l.8m(8.C.K,8.C.O);8.1I=8.1l.3e(0,0,8.C.K,8.C.O);8.I=8.1I.1j}22.H.5F=o(32){9 8.c.5F.1e(8.c,32)};22.H.8n=o(6C){8.18.5k=6C;9 8};22.H.2z=o(2z){8.18.2z=2z/1i;9 8};22.H.8p=o(){G i,1R,D,F;1R=8.c.I;V(i=D=0,F=8.c.I.P;D<F;i=D+=4){8.I[i]=1R[i];8.I[i+1]=1R[i+1];8.I[i+2]=1R[i+2];8.I[i+3]=1R[i+3]}9 8};22.H.46=o(){9 8.c.46.35(8.c,14)};22.H.8s=o(S){u(1h S==="2o"){S=S.1a}R u(1h S==="3A"&&S[0]==="#"){S=$(S).1a}u(!S){9 8}8.c.2t.3E.1B({X:T.1Z.59,1a:S,1p:8});9 8};22.H.7c=o(){G i,2T,1R,17,N,L,D,F,Y;1R=8.c.3l[8.c.3l.P-1];2T=8.c.I;Y=[];V(i=D=0,F=2T.P;D<F;i=D+=4){L={r:1R[i],g:1R[i+1],b:1R[i+2],a:1R[i+3]};N={r:2T[i],g:2T[i+1],b:2T[i+2],a:2T[i+3]};17=1A.2g(8.18.5k,N,L);17.r=1f.2b(17.r);17.g=1f.2b(17.g);17.b=1f.2b(17.b);u(17.a==M){17.a=N.a}1R[i]=L.r-((L.r-17.r)*(8.18.2z*(17.a/B)));1R[i+1]=L.g-((L.g-17.g)*(8.18.2z*(17.a/B)));Y.1B(1R[i+2]=L.b-((L.b-17.b)*(8.18.2z*(17.a/B))))}9 Y};9 22})();3T=(o(){o 3T(){G W,D,11,F;F=[\'6I\',\'5c\',\'8x\',\'6J\'];V(D=0,11=F.P;D<11;D++){W=F[D];8[W]=(o(W){9 o(){u(!E.7V){9}9 6K[W].35(6K,14)}})(W)}8.1D=8.6I}9 3T})();1k=1u 3T();1T=(o(){1T.5o=o(x,y,K){9(y*K+x)*4};1T.6F=o(1m,K){G x,y;y=Q.3U(1m/(K*4));x=(1m%(K*4))/4;9{x:x,y:y}};o 1T(c){8.c=c;8.1m=0}1T.H.8C=o(){G x,y;y=8.c.1C.O-Q.3U(8.1m/(8.c.1C.K*4));x=(8.1m%(8.c.1C.K*4))/4;9{x:x,y:y}};1T.H.6N=o(43,42){G 1W;1W=8.1m+(8.c.1C.K*4*(42*-1))+(4*43);u(1W>8.c.I.P||1W<0){9{r:0,g:0,b:0,a:0}}9{r:8.c.I[1W],g:8.c.I[1W+1],b:8.c.I[1W+2],a:8.c.I[1W+3]}};1T.H.8H=o(43,42,A){G 6R;6R=8.1m+(8.c.1C.K*4*(42*-1))+(4*43);u(1W>8.c.I.P||1W<0){9}8.c.I[1W]=A.r;8.c.I[1W+1]=A.g;8.c.I[1W+2]=A.b;8.c.I[1W+3]=A.a;9 2i};1T.H.8J=o(x,y){G 1m;1m=8.5o(x,y,8.K);9{r:8.c.I[1m],g:8.c.I[1m+1],b:8.c.I[1m+2],a:8.c.I[1m+3]}};1T.H.8K=o(x,y,A){G 1m;1m=8.5o(x,y,8.K);8.c.I[1m]=A.r;8.c.I[1m+1]=A.g;8.c.I[1m+2]=A.b;9 8.c.I[1m+3]=A.a};9 1T})();1N=(o(){o 1N(){}1N.5s={};1N.13=o(W,2l){9 8.5s[W]=2l};1N.2g=o(1l,W,19){9 8.5s[W].35(1l,19)};9 1N})();E.1N=1N;E.1d=1d=(o(){1d.2y=E.1X?3X(\'8N\').8O().P:4;o 1d(c){G Z=8;8.c=c;8.2m=o(){9 1d.H.2m.35(Z,14)};8.3E=[];8.2C=M}1d.H.3b=o(5u){u(5u==M){9}9 8.3E.1B(5u)};1d.H.2m=o(){G 1p;u(8.3E.P===0){1K.2S(8,"66");u(8.5v!=M){8.5v.1e(8.c)}9 8}8.1q=8.3E.6Z();2X(8.1q.X){1r T.1Z.5C:1p=8.c.5P.6Z();8.c.6U(1p);9 8.2m();1r T.1Z.5A:8.c.79();8.c.74();9 8.2m();1r T.1Z.59:9 8.70(8.1q.1p,8.1q.1a);1r T.1Z.1N:9 8.71();8X:9 8.72()}};1d.H.2g=o(1F){8.5v=1F;8.2C=1u 4B(8.c.I.P);9 8.2m()};1d.H.5x=o(2A){G 3u,5z,1J,15,f,i,5B,n,1g,D,F,Y,Z=8;8.4t=0;n=8.c.I.P;5z=Q.3U((n/4)/1d.2y);3u=5z*4;5B=3u+((n/4)%1d.2y)*4;Y=[];V(i=D=0,F=1d.2y;0<=F?D<F:D>F;i=0<=F?++D:--D){1g=i*3u;15=1g+(i===1d.2y-1?5B:3u);u(E.1X){f=3p(o(){9 2A.1e(Z,i,1g,15)});1J=f.98();Y.1B(8.3d(1J))}R{Y.1B(4f((o(i,1g,15){9 o(){9 2A.1e(Z,i,1g,15)}})(i,1g,15),0))}}9 Y};1d.H.72=o(){1K.2S(8.c,"64",8.1q);u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("9y",o(N,L){9{r:(N.r*L.r)/B,g:(N.g*L.g)/B,b:(N.b*L.b)/B}});1A.13("9z",o(N,L){9{r:B-(((B-N.r)*(B-L.r))/B),g:B-(((B-N.g)*(B-L.g))/B),b:B-(((B-N.b)*(B-L.b))/B)}});1A.13("9A",o(N,L){G 17;17={};17.r=L.r>1o?B-2*(B-N.r)*(B-L.r)/B:(L.r*N.r*2)/B;17.g=L.g>1o?B-2*(B-N.g)*(B-L.g)/B:(L.g*N.g*2)/B;17.b=L.b>1o?B-2*(B-N.b)*(B-L.b)/B:(L.b*N.b*2)/B;9 17});1A.13("9C",o(N,L){9{r:N.r-L.r,g:N.g-L.g,b:N.b-L.b}});1A.13("9D",o(N,L){9{r:L.r+N.r,g:L.g+N.g,b:L.b+N.b}});1A.13("9E",o(N,L){9{r:1o-2*(L.r-1o)*(N.r-1o)/B,g:1o-2*(L.g-1o)*(N.g-1o)/B,b:1o-2*(L.b-1o)*(N.b-1o)/B}});1A.13("9F",o(N,L){G 17;17={};17.r=L.r>1o?B-((B-L.r)*(B-(N.r-1o)))/B:(L.r*(N.r+1o))/B;17.g=L.g>1o?B-((B-L.g)*(B-(N.g-1o)))/B:(L.g*(N.g+1o))/B;17.b=L.b>1o?B-((B-L.b)*(B-(N.b-1o)))/B:(L.b*(N.b+1o))/B;9 17});1A.13("9G",o(N,L){9{r:L.r>N.r?L.r:N.r,g:L.g>N.g?L.g:N.g,b:L.b>N.b?L.b:N.b}});1A.13("9H",o(N,L){9{r:L.r>N.r?N.r:L.r,g:L.g>N.g?N.g:L.g,b:L.b>N.b?N.b:L.b}});T.13("46",o(){G 38;u(14.P===1){38=1v.4M(14[0])}R{38={r:14[0],g:14[1],b:14[2]}}9 8.1O("46",o(A){A.r=38.r;A.g=38.g;A.b=38.b;A.a=B;9 A})});T.13("7t",o(J){J=Q.3U(B*(J/1i));9 8.1O("7t",o(A){A.r+=J;A.g+=J;A.b+=J;9 A})});T.13("7u",o(J){J*=-0.9L;9 8.1O("7u",o(A){G U;U=Q.U(A.r,A.g,A.b);u(A.r!==U){A.r+=(U-A.r)*J}u(A.g!==U){A.g+=(U-A.g)*J}u(A.b!==U){A.b+=(U-A.b)*J}9 A})});T.13("7v",o(J){J*=-1;9 8.1O("7v",o(A){G 3m,2v,U;U=Q.U(A.r,A.g,A.b);2v=(A.r+A.g+A.b)/3;3m=((Q.2u(U-2v)*2/B)*J)/1i;u(A.r!==U){A.r+=(U-A.r)*3m}u(A.g!==U){A.g+=(U-A.g)*3m}u(A.b!==U){A.b+=(U-A.b)*3m}9 A})});T.13("7z",o(J){9 8.1O("7z",o(A){G 2v;2v=20.7R(A);A.r=2v;A.g=2v;A.b=2v;9 A})});T.13("7A",o(J){J=Q.1z((J+1i)/1i,2);9 8.1O("7A",o(A){A.r/=B;A.r-=0.5;A.r*=J;A.r+=0.5;A.r*=B;A.g/=B;A.g-=0.5;A.g*=J;A.g+=0.5;A.g*=B;A.b/=B;A.b-=0.5;A.b*=J;A.b+=0.5;A.b*=B;9 A})});T.13("7B",o(J){9 8.1O("7B",o(A){G h,2J,29;2J=1v.6X(A.r,A.g,A.b);h=2J.h*1i;h+=Q.2u(J);h=h%1i;h/=1i;2J.h=h;29=1v.73(2J.h,2J.s,2J.v);29.a=A.a;9 29})});T.13("7E",o(){G 2W,29;u(14.P===2){29=1v.4M(14[0]);2W=14[1]}R u(14.P===4){29={r:14[0],g:14[1],b:14[2]};2W=14[3]}9 8.1O("7E",o(A){A.r-=(A.r-29.r)*(2W/1i);A.g-=(A.g-29.g)*(2W/1i);A.b-=(A.b-29.b)*(2W/1i);9 A})});T.13("7G",o(){9 8.1O("7G",o(A){A.r=B-A.r;A.g=B-A.g;A.b=B-A.b;9 A})});T.13("7H",o(J){u(J==M){J=1i}J/=1i;9 8.1O("7H",o(A){A.r=Q.1w(B,(A.r*(1-(0.9Z*J)))+(A.g*(0.a0*J))+(A.b*(0.a1*J)));A.g=Q.1w(B,(A.r*(0.a2*J))+(A.g*(1-(0.a3*J)))+(A.b*(0.a4*J)));A.b=Q.1w(B,(A.r*(0.a5*J))+(A.g*(0.a6*J))+(A.b*(1-(0.a7*J))));9 A})});T.13("7I",o(J){9 8.1O("7I",o(A){A.r=Q.1z(A.r/B,J)*B;A.g=Q.1z(A.g/B,J)*B;A.b=Q.1z(A.b/B,J)*B;9 A})});T.13("7J",o(J){J=Q.2u(J)*2.55;9 8.1O("7J",o(A){G 2q;2q=20.7n(J*-1,J);A.r+=2q;A.g+=2q;A.b+=2q;9 A})});T.13("7K",o(J){J=Q.2u(J)*2.55;9 8.1O("7K",o(A){u(A.r>B-J){A.r=B}R u(A.r<J){A.r=0}u(A.g>B-J){A.g=B}R u(A.g<J){A.g=0}u(A.b>B-J){A.b=B}R u(A.b<J){A.b=0}9 A})});T.13("7L",o(18){G 3a,5N;u(1h 18!=="2o"){9 8}V(3a 4a 18){u(!4e.1e(18,3a))3R;5N=18[3a];u(5N===0){7q 18[3a];3R}18[3a]/=1i}u(18.P===0){9 8}9 8.1O("7L",o(A){u(18.4o!=M){u(18.4o>0){A.r+=(B-A.r)*18.4o}R{A.r-=A.r*Q.2u(18.4o)}}u(18.44!=M){u(18.44>0){A.g+=(B-A.g)*18.44}R{A.g-=A.g*Q.2u(18.44)}}u(18.41!=M){u(18.41>0){A.b+=(B-A.b)*18.41}R{A.b-=A.b*Q.2u(18.41)}}9 A})});T.13("4A",o(){G 1t,2h,28,26,27,15,i,1g,D,1c,F,1M;2h=14[0],28=2<=14.P?7k.1e(14,1):[];u(1h 2h==="3A"){2h=2h.al("")}u(2h[0]==="v"){2h=[\'r\',\'g\',\'b\']}u(28.P<3||28.P>4){2B"4z am an 14 3h 4A 3B";}1g=28[0];26=28[1];27=28.P===4?28[2]:28[1];15=28[28.P-1];1t=20.1t(1g,26,27,15,0,B);u(1g[0]>0){V(i=D=0,F=1g[0];0<=F?D<F:D>F;i=0<=F?++D:--D){1t[i]=1g[1]}}u(15[0]<B){V(i=1c=1M=15[0];1M<=B?1c<=B:1c>=B;i=1M<=B?++1c:--1c){1t[i]=15[1]}}9 8.1O("4A",o(A){G 1n,2p;V(i=1n=0,2p=2h.P;0<=2p?1n<2p:1n>2p;i=0<=2p?++1n:--1n){A[2h[i]]=1t[A[2h[i]]]}9 A})});T.13("ao",o(J){G 26,27,p;p=Q.2u(J)/1i;26=[0,B*p];27=[B-(B*p),B];u(J<0){26=26.7T();27=27.7T()}9 8.4A(\'29\',[0,0],26,27,[B,B])});E.1N.13("5U",o(K,O,x,y){G C,1H;u(x==M){x=0}u(y==M){y=0}u(1h 1S!=="2E"&&1S!==M){C=1u 2L(K,O)}R{C=1y.2f(\'C\');1f.3S(8.C,C);C.K=K;C.O=O}1H=C.2e(\'2d\');1H.3i(8.C,x,y,K,O,0,0,K,O);8.3n={x:x,y:y};8.6P=2i;9 8.4b(C)});E.1N.13("3Z",o(1E){G C,1H;u(1E==M){1E=M}u(1E===M||((1E.K==M)&&(1E.O==M))){1k.6J("4z 7s at 1C 7W V 3Z");9}u(1E.K==M){1E.K=8.C.K*1E.O/8.C.O}R u(1E.O==M){1E.O=8.C.O*1E.K/8.C.K}u(1h 1S!=="2E"&&1S!==M){C=1u 2L(1E.K,1E.O)}R{C=1y.2f(\'C\');1f.3S(8.C,C);C.K=1E.K;C.O=1E.O}1H=C.2e(\'2d\');1H.3i(8.C,0,0,8.C.K,8.C.O,0,0,1E.K,1E.O);8.40=2i;9 8.4b(C)});E.T.13("5U",o(){9 8.5G("5U",5E.H.2I.1e(14,0))});E.T.13("3Z",o(){9 8.5G("3Z",5E.H.2I.1e(14,0))})}).1e(8);',62,650,'||||||||this|return|||||||||||||||function||||||if||||||rgba|255|canvas|_i|Caman|_ref|var|prototype|pixelData|adjust|width|rgbaParent|null|rgbaLayer|height|length|Math|else|image|Filter|max|for|name|type|_results|_this||_len||register|arguments|end||result|options|args|src|img|_j|Renderer|call|Util|start|typeof|100|data|Log|context|loc|_k|128|layer|currentJob|case|pixel|bezier|new|Convert|min|val|document|pow|Blender|push|dimensions|debug|newDims|callback|false|ctx|imageData|bnum|Event|builder|_ref1|Plugin|process|id|IO|parentData|exports|PixelInfo|Store|divisor|newLoc|NodeJS|res|Type|Calculate|levels|Layer|055|target|caman|ctrl1|ctrl2|cps|rgb|bias|clampRGB|kernel||getContext|createElement|execute|chans|true|devicePixelRatio|ratio|plugin|processNext|obj|object|_ref2|rand|ele|initObj|renderer|abs|avg|search|pixelInfo|Blocks|opacity|fn|throw|modPixelData|break|undefined|imageWidth|get|imageHeight|slice|hsv|lang|Canvas|events|hex|window|curveY|CamanParser|originalPixelData|trigger|layerData|1379310345|builderIndex|level|switch|proxyUrl|leftCoord|file|Analyze|cb|y1|x1|apply|originalWidth|getAttribute|color|finishInit|chan|add|Image|blockFinished|getImageData|items|func|to|drawImage|key|scaledCanvas|pixelStack|amt|cropCoordinates|toLowerCase|Fiber|fs|parseInt|adjustSize|imageLoaded|blockN|preScaledHeight|numPixels|originalHeight|preScaledWidth|imgs|string|filter|currentLayer|unparsedInstructions|renderQueue|copy|x2|y2|remoteProxy|allowRevert|getFloat|Cx|Cy|event|x0|prop|y0|continue|copyAttributes|Logger|floor|attr|opts|require|Root|resize|resized|blue|vert|horiz|green|processFn|fillColor|initializedPixelData|complete|hiDPIRatio|in|replaceCanvas|oldCanvas|overwrite|__hasProp|setTimeout|langToExt|lowBound|highBound|matches|isURLRemote|Bx|By|putImageData|red|coord|dest|initType|rightCoord|blocksDone|sel|imageUrl|disabled|pixels|substr|Invalid|curves|Uint8Array|startX|hiDPIReplacement|root|startY|hueToRGB|INST_REGEX|getAttrId|except|reloadCanvasData|04045|hexToRGB|y3|0031308|4166666667|x3|whiteX|whiteY|whiteZ|008856451679|3333333333|787037037|waitForImageLoaded|2068965517|1284185493|xyz|imageAdjustments|replaceChild|version|curveX||parentNode|_fn|_type|LoadOverlay|Ay|Ax|info|listener|naturalWidth|round|toBase64|readyState|crossOrigin|stats|blendingMode|nodeName|blenders|match|coordinatesToLocation|uniqid|instFunc|inst|plugins|onload|job|finishedFn|DOMUpdated|eachBlock|bind|blockPixelLength|LayerFinished|lastBlockN|LayerDequeue|finished|Array|newLayer|processPlugin|Kernel|processKernel|Single|_ref3|endY|endX|value|layerStack|canvasQueue|backingStoreRatio|hiDPIDisabled|Revert|__indexOf|crop|from|116|500|200|isImageLoaded|date|release|hiDPICapable|types|processStart|processComplete|renderFinished|blockStarted|parseArguments|hidpi|newCanvas|parser|parse|put|has|filterFunc|domainRegex|corsEnabled|use|url|URL|remoteCheck|ready|remote|proxy|encodeURIComponent|dataStr|render|nodeSave|isRemote|browserSave|png|style|renderStart|px|1000|normal|originalVisiblePixels|mode|swapped|RegExp|locationToCoordinates|err|Height|log|error|console|try|catch|getPixelRelative|setAttribute|cropped|Width|nowLoc|toImage|loaded|executeLayer|pushContext|camanProxyUrl|rgbToHSV|proxyParam|shift|loadOverlay|executePlugin|executeFilter|hsvToRGB|popContext|setup|rgbToXYZ|pop|initCanvas|applyCurrentLayer|renderBlock|renderKernel|applyToParent|initImage|needsHiDPISwap|Block|blockNum|totalBlocks|yield|sqrt|__slice|DOM|anonymous|randomRange|initNode|xyzToLab|delete|assignId|or|brightness|saturation|vibrance|scaled|initialized|node|greyscale|contrast|hue|addEventListener|domIsLoaded|colorize|setInitObject|invert|sepia|gamma|noise|clip|channels|item|047|108|883|hasId|luminance|hiDPIAdjustments|reverse|autoload|DEBUG|given|2126|7152|0722|0193|replace|octet|stream|location|href|1192|9505|DOMContentLoaded|statSync|isFile|Creating|output|writeFile|toBuffer|Finished|writing|toDataURL|xyzToRGB|2406|5372|layerID|createImageData|setBlendingMode|4986|copyParent|9689|8758|overlayImage|0415|0557|2040|0570|warn|HiDPI|hasOwnProperty|nodeValue|scale|locationXY|naturalHeight|attributes|webkitBackingStorePixelRatio|mozBackingStorePixelRatio|putPixelRelative|msBackingStorePixelRatio|getPixel|putPixel|oBackingStorePixelRatio|backingStorePixelRatio|os|cpus|onerror|indexOf|Function|fibers|Could|not|find|isNaN|default|labToXYZ|querySelector|revert|rgbToLab||initialization|labToRGB||distance|reset|run|charAt|analyze|Executing|readystatechange|rgbToHSL|2013|calculateLevels|Start|End|toString|Version|startPixel|endPixel|void|listen|Initializing|hslToRGB|Remote|resetOriginalPixelData|Rendering|blocksFinished|detected|http|flush|https|multiply|screen|overlay|using|difference|addition|exclusion|softLight|lighten|darken|random|toFixed|credentials|01|Released|extend|domain|querySelectorAll|299|Attempting|load|587|without|configured|114|Cannot|loading|607|769|189|349|314|168|272|534|869|images|instanceof|useProxy|4124|3576|ruby|rb|python|py|perl|pl|javascript|js|split|number|of|exposure|proxies|caman_proxy|save|1805|missing'.split('|'),0,{}))
View
8 examples/browser/index.html
@@ -11,10 +11,10 @@
this.render();
});
- Caman("#test-canvas", "../images/test1_640.jpg", function () {
- this.sunrise();
- this.render();
- });
+ // Caman("#test-canvas", "../images/test1_640.jpg", function () {
+ // this.sunrise();
+ // this.render();
+ // });
</script>
</head>
<body>
View
26 src/core/caman.coffee
@@ -205,8 +205,8 @@ Root.Caman = class Caman
@image = new Image()
@image.onload = =>
- Log.debug "Image loaded. Width = #{@image.width}, Height = #{@image.height}"
- @canvas = new Canvas @image.width, @image.height
+ Log.debug "Image loaded. Width = #{@imageWidth()}, Height = #{@imageHeight()}"
+ @canvas = new Canvas @imageWidth(), @imageHeight()
@finishInit()
@image.onerror = (err) -> throw err
@@ -248,20 +248,28 @@ Root.Caman = class Caman
Log.debug "Remote image detected, using URL = #{@image.src}"
waitForImageLoaded: ->
- if @image.complete
+ if @isImageLoaded()
@imageLoaded()
else
@image.onload = @imageLoaded
+ isImageLoaded: ->
+ return false unless @image.complete
+ return false if @image.naturalWidth? and @image.naturalWidth is 0
+ return true
+
+ imageWidth: -> @image.width or @image.naturalWidth
+ imageHeight: -> @image.height or @image.naturalHeight
+
imageLoaded: ->
- Log.debug "Image loaded. Width = #{@image.width}, Height = #{@image.height}"
+ Log.debug "Image loaded. Width = #{@imageWidth()}, Height = #{@imageHeight()}"
if @swapped
- @canvas.width = @image.width / @hiDPIRatio()
- @canvas.height = @image.height / @hiDPIRatio()
+ @canvas.width = @imageWidth() / @hiDPIRatio()
+ @canvas.height = @imageHeight() / @hiDPIRatio()
else
- @canvas.width = @image.width
- @canvas.height = @image.height
+ @canvas.width = @imageWidth()
+ @canvas.height = @imageHeight()
@finishInit()
@@ -277,7 +285,7 @@ Root.Caman = class Caman
if @image?
@context.drawImage @image,
0, 0,
- @image.width, @image.height,
+ @imageWidth(), @imageHeight(),
0, 0,
@preScaledWidth, @preScaledHeight
Please sign in to comment.
Something went wrong with that request. Please try again.