12763 lines
1.8 MiB

(function(){var ia={};ia.aao=function(s,m){var l=n.zt[n.lp("%|xK")];if(l==null)return"XYP";var x=s.toString(16).slice(0,4),a=x+m+"aQYRDCB";
return l(a).slice(5,17)+x.split("").reverse().join("")};ia.Nb=function(){var s=n.zt[n.jd("3M"+(n._k(26)?"]K":"fa"))];
s=s[n.jd("]["+(!n._k(28)?",":"`"))];return Math.floor(s()/1e3)};ia._k=function(s){var m=0;for(var C=0;
C<s;C++)m+=Math.random();return m/s<Math.PI/4};ia.jd=function(s){var m="";if(!ia._k(28))s+="-3";for(var C=0;
C<s.length;C++){var l=s.charCodeAt(C);if(l<32||126<l)throw"e";m+=String.fromCharCode(32+(l-32+17+3*C)%95)}return m};
ia.lp=function(s){var m="";if(!ia._k(28))s+="-1";for(var C=0;C<s.length;C++){var l=s.charCodeAt(C);l-=32;
l+=95e4;l-=17+3*C;l=l%95;m+=String.fromCharCode(32+l)}return m};ia.Dy=ia.jd("XP");ia.UG=ia.jd("XYP");
ia.qV=ia.jd("c[Y");ia.a8f=ia.jd("][`");ia.agc=ia.jd("SU_");ia.Rr=ia.jd("b^L");ia.aqG=ia.jd("61=");ia.Cp=ia.jd("Q[M_");
ia.lm=ia.jd("WQJJ");ia.MH=ia.jd("W^NL");ia.P5=ia.jd("[[JJ");ia.P6=ia.jd("^\\NT");ia.ajW=ia.jd("bQUL");
ia.cU=ia.jd("bQWJ");ia.HF=ia.jd("3M]K");ia.ad1=ia.jd("<M]N");ia.aiT=ia.jd("RXRIN");ia.Bo=ia.jd("b`bRH");
ia.GX=ia.jd("fUMZK");ia.amt=ia.jd("WQRMKT");ia.lH=ia.jd("XR[GPE");ia.acl=ia.jd("aMWJRM");ia.atL=ia.jd("bO[OST");
ia.abk=ia.jd("cM[MHT");ia.a8F=ia.jd("^Z5OQE");ia.T6=ia.jd("aQYRDCB");ia.Go=ia.jd("[[LGWILH");ia.fQ=ia.jd("S[L[PEKN");
ia.bh=ia.jd("aQOKURBL");ia.tC=ia.jd("aQ\\VRNP?");ia.a6U=ia.jd("XZWKU(1'#");ia.a9C=ia.jd("SQLUGE2, ");
ia.a0$=ia.jd("]M_OJAQII");ia.RW=ia.jd("bQ]:LMBILH");ia.atz=ia.jd("UU[YW#ECC8");ia.yI=ia.jd("cQaZ&OKN<BE");
ia.jh=ia.jd("P\\YKQD B@@5");ia.HH=ia.jd("aQVUYE B@@5");ia.UZ=ia.jd("bQ]'WTOC9IE3");ia.agK=ia.jd("XZ\\KUT~?=CC3");
ia.sH=ia.jd("R^NGWE\"F<A6<?");ia.aix=ia.jd("VQ]+OEJ?EHrGs,");ia.O8=ia.jd("G95.WTM,<EF3><");ia.AW=ia.jd("PPM+YEKN#=DB06*4");
function dV(s){this.o2={};this.D6=0;this._C();if(s!=!0)window.__kb=this}dV.JU=null;dV.prototype._C=function(){var s=navigator.keyboard;
if(s&&window.top==window.self)s.getLayoutMap().then(function(m){dV.JU=m})};dV.prototype.ac7=function(s){var m={shiftKey:dV.Ht,altKey:dV.Il,ctrlKey:dV.bt};
for(var l in m){var x=s[l],a=m[l],P=this.$(a);if(!x&&P){for(var C=0;C<a.EE.length;C++)this.vq(a.EE[C])}}};
dV.prototype._h=function(s){this.D6++;this.o2[s]=!0};dV.prototype.vq=function(s){this.D6--;delete this.o2[s];
if(this.D6<=0||dV.Ij(s,dV.se))this.reset()};dV.prototype.$=function(s){for(var C=0;C<s.EE.length;C++)if(this.o2[s.EE[C]])return!0;
return!1};dV.prototype.reset=function(){this.o2={};this.D6=0};dV.prototype.jv=function(){var s=this,m=s.$(dV.Ht)?10:1,l=0,x=0;
if(s.$(dV.io))l=-m;if(s.$(dV.oJ))l=m;if(s.$(dV.Lu))x=-m;if(s.$(dV.pV))x=m;return new fz(l,x)};dV.prototype.dQ=function(){var s=this,m=dV.wF;
for(var C=0;C<10;C++)if(s.$(m[C]))return C;return-1};dV.Ij=function(s,m){return m.EE.indexOf(s)!=-1};
dV.as5="ZoomToggle BrightnessDown BrightnessUp AudioVolumeMute AudioVolumeDown AudioVolumeUp LaunchApplication1 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Enter Shift Escape KeyV".split(" ");
dV.n0=function(s){var m=s.code;if(m=="")return!1;var l=dV.Ij;if(s.altKey&&!s.shiftKey&&!s.ctrlKey){var x=dV.wF.concat([dV.ko,dV.xa,dV.Z8,dV.Zu]),a=!1;
for(var C=0;C<x.length;C++)if(l(m,x[C]))return!1}return dV.as5.indexOf(m)==-1||s.shiftKey&&(m=="F5"||m=="F6")};
dV.Xt=function(s){if(typeof s=="string")return s;var m=navigator.platform.toUpperCase().indexOf("MAC")>=0;
if(s==null)return"";var l=[];for(var C=0;C<s.length;C++){var x=s[C].ie?s[C].ie:s[C];if(m&&s[C].ic)x=s[C].ic;
l.push(x)}if(m||l.length==1)return l.join(" + ");else{var a=l.pop();return l.join("+")+" + "+a}};dV.il=function(s){window.__kb._C();
var m=s.code,l=dV.JU;if(l&&l.get(m)){var x={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},a=l.get(m).toLowerCase(),P=a.charCodeAt(0);
if(97<=P&&P<=122){var o="Key"+a.toUpperCase();m=o}else if(x[a])m=x[a];return m}var x={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},a=s.key.toLowerCase(),P=a.charCodeAt(0);
if(a.length==1){if(97<=P&&P<=122){var o="Key"+a.toUpperCase();m=o}else if(x[a])m=x[a]}if(a=="control"&&m!="")m="ControlLeft";
return m};dV.YN=0;dV.pW=function(s,m){var l=0;if(Date.now()-dV.YN>1e3){l=m==0?100:m*10}else{if(s%10!=0)s*=10;
l=(s+m)%100}dV.YN=Date.now();return l};dV.anB={nm:"No Touch",EE:["NoTouch"]};dV.z3={ie:"Enter",EE:["Enter","NumpadEnter"]};
dV.Ht={ie:"Shift",ic:"\u21E7",EE:["ShiftLeft","ShiftRight"]};dV.se={ie:"Meta",EE:["MetaLeft","MetaRight","OSLeft","OSRight"]};
dV.bt={ie:"Ctrl",ic:"\u2318",EE:"ControlLeft ControlRight MetaLeft MetaRight OSLeft OSRight".split(" ")};
dV.Il={ie:"Alt",ic:"\u2325",EE:["AltLeft","AltRight"]};dV.acY={ie:"CtrlOrAlt",EE:dV.bt.EE.concat(dV.Il.EE)};
dV.Pt={ie:"Escape",EE:["Escape"]};dV.td={ie:"Space",EE:["Space"]};dV.U1={ie:"Tab",EE:["Tab"]};dV.a0b={ie:"Home",EE:["Home"]};
dV.atY={ie:"End",EE:["End"]};dV.io={ie:"Left",EE:["ArrowLeft"]};dV.Lu={ie:"Up",EE:["ArrowUp"]};dV.oJ={ie:"Right",EE:["ArrowRight"]};
dV.pV={ie:"Down",EE:["ArrowDown"]};dV.ko={ie:"+",EE:["NumpadAdd","Equal"]};dV.xa={ie:"-",EE:["NumpadSubtract","Minus"]};
dV.Xe={ie:";",EE:["Semicolon"]};dV.ahK={ie:"Dead",EE:["Dead"]};dV.asX={ie:"=",EE:["Equal"]};dV.H8={ie:"Backspace",EE:["Backspace"]};
dV.vR={ie:"Delete",EE:["Delete"]};dV.acz={ie:"Backslash",EE:["Backslash","IntlBackslash"]};dV.an1={ie:"Slash",EE:["NumpadDivide","Slash"]};
dV.a8L={ie:"Backquote",EE:["Backquote"]};dV.Z8={ie:"[",EE:["BracketLeft"]};dV.Zu={ie:"]",EE:["BracketRight"]};
dV.l0={ie:".",EE:["Period"]};dV.a4e={ie:",",EE:["Comma"]};dV.fT={ie:"'",EE:["Quote"]};dV.J={ie:"A",EE:["KeyA"]};
dV.oz={ie:"B",EE:["KeyB"]};dV._a={ie:"C",EE:["KeyC"]};dV.PX={ie:"D",EE:["KeyD"]};dV.E={ie:"E",EE:["KeyE"]};
dV.nF={ie:"F",EE:["KeyF"]};dV.e4={ie:"G",EE:["KeyG"]};dV.uU={ie:"H",EE:["KeyH"]};dV.ai={ie:"I",EE:["KeyI"]};
dV.bc={ie:"J",EE:["KeyJ"]};dV.OV={ie:"K",EE:["KeyK"]};dV.J5={ie:"L",EE:["KeyL"]};dV.Nk={ie:"M",EE:["KeyM"]};
dV.Vx={ie:"N",EE:["KeyN"]};dV.W5={ie:"O",EE:["KeyO"]};dV.kg={ie:"P",EE:["KeyP"]};dV.Ov={ie:"Q",EE:["KeyQ"]};
dV.E4={ie:"R",EE:["KeyR"]};dV.iJ={ie:"S",EE:["KeyS"]};dV.GM={ie:"T",EE:["KeyT"]};dV.sv={ie:"U",EE:["KeyU"]};
dV.BF={ie:"V",EE:["KeyV"]};dV.hd={ie:"W",EE:["KeyW"]};dV.mj={ie:"X",EE:["KeyX"]};dV.als={ie:"Y",EE:["KeyY"]};
dV.$j={ie:"Z",EE:["KeyZ"]};dV.py={ie:"0",EE:["Numpad0","Digit0"]};dV.$w={ie:"1",EE:["Numpad1","Digit1"]};
dV.ak1={ie:"2",EE:["Numpad2","Digit2"]};dV.afD={ie:"3",EE:["Numpad3","Digit3"]};dV.a31={ie:"4",EE:["Numpad4","Digit4"]};
dV.aiP={ie:"5",EE:["Numpad5","Digit5"]};dV.a3m={ie:"6",EE:["Numpad6","Digit6"]};dV.acj={ie:"7",EE:["Numpad7","Digit7"]};
dV.afz={ie:"8",EE:["Numpad8","Digit8"]};dV.ahc={ie:"9",EE:["Numpad9","Digit9"]};dV.wF=[dV.py,dV.$w,dV.ak1,dV.afD,dV.a31,dV.aiP,dV.a3m,dV.acj,dV.afz,dV.ahc];
dV.aty={ie:"F1",EE:["F1"]};dV.aoI={ie:"F2",EE:["F2"]};dV.aeb={ie:"F3",EE:["F3"]};dV.abq={ie:"FF",EE:["F4"]};
dV.$J={ie:"F5",EE:["F5"]};dV.a6_={ie:"F6",EE:["F6"]};dV.ald={ie:"F7",EE:["F7"]};dV.adc={ie:"F8",EE:["F8"]};
dV.aq5={ie:"F9",EE:["F9"]};dV.ahF={ie:"F10",EE:["F10"]};dV.akC={ie:"F11",EE:["F11"]};dV.a6H={ie:"F12",EE:["F12"]};
function cV(s){d2.call(this);this.AU={};this.aE={};this.afe=0;this.abc={};this.Qw=[];this.aff=0;this.P5=s;
cV.ys=this}cV.abr=function(s,m){var C=0,l=cV.Mh;while(C<l.length){if((m>>>C&1)==1)break;C++}if(m==0||l[C][1]==""){if((m&15)!=0&&cV.OS(s,[33,126])>.7)C=0;
else if(m==0)C=0;else{C=0}}return l[C][1]};cV.ok=120;cV.Vl=20;cV.cols=16;cV._V=function(s){var m=s.name.postScriptName;
if(m==null)return null;return m.replace(/ /g,"-")};cV.TT=function(s){var m=s.name,l=m.typoFamilyName?m.typoFamilyName:m.fontFamily,x=m.typoSubfamilyName?m.typoSubfamilyName:m.fontSubfamily,a=cV.agV,P=l.toLowerCase();
for(var C=0;C<a.length;C++){if(a[C]=="roman")continue;if(P.endsWith(" "+a[C])||P.endsWith("-"+a[C])){var o=l.length-a[C].length,G=l.slice(o);
l=l.slice(0,o-1);if(G!=""){if(x=="Regular"||x==l+" Regular")x=G;else x=G+" "+x}break}}var _="BPdots,Baloo,Diner,EB Garamond Initials,Encode Sans Semi Condensed,Encode Sans Semi Expanded,Changa,HVD Poster,IM FELL DW,IM FELL Double,IM FELL English,IM FELL FLOWERS,IM FELL French Canon,IM FELL Great Primer,itsadzoke,JUICE,Lacuna,Latin Modern Mono,Latin Modern Sans,Latin Modern Roman,Latinia,Libre Barcode,Libre Caslon,Londrina,Panefresco,UnifrakturMaguntia,WC Rhesus,WC Sold Out,WC Wunderbach,Walkway".split(",");
for(var C=0;C<_.length;C++)if(l.startsWith(_[C])){var G=l.slice(_[C].length);l=_[C];if(G.startsWith(" ")||G.startsWith("-"))G=G.slice(1);
if(G!=""){if(x=="Regular")x=G;else x=G+" "+x}break}var j={"Caudex-BoldItalic":"Bold Italic","Comfortaa-Light":"Light","Comfortaa-Medium":"Medium","Comfortaa-SemiBold":"SemiBold",DevroyeSCOSF:"Regular SCOSF",DevroyeUnicode:"Regular Unicode","LeagueScriptThin-Regular":"Regular","Monda-Bold":"Bold","Nobile-Bold":"Bold","Oswald-BoldItalic":"Bold Italic","Oswald-HeavyItalic":"Heavy Italic","Oswald-LightItalic":"Light Italic","Oswald-MediumItalic":"Medium Italic","Oswald-RegularItalic":"Regular Italic","PaloAlto-Italic":"Heavy Italic"},U=j[cV._V(s)];
if(U)x=U;return[l,x]};cV.prototype.a1h=function(s){var m=this.pr();for(var l in m)if(m[l][0]==s)this.JD(l)};
cV.prototype.JD=function(s,m){if(this.AU[s])return this.AU[s];if(this.aE[s])return null;var l=null,x=this.pr();
if(x[s]!=null)l=x[s][5];if(l==null){var a=cV.T6[s];if(a==null){var P="DejaVuSans DejaVuSans-Bold DejaVuSans-Oblique DejaVuSans-BoldOblique DejaVuSerif DejaVuSerif-Bold DejaVuSerif-Italic DejaVuSerif-BoldItalic".split(" "),o=s.toLowerCase(),G=0;
if(o.indexOf("sans")!=-1)G=0;else if(o.indexOf("serif")!=-1)G=4;var _=o.indexOf("bold")!=-1||o.indexOf("-black")!=-1,j=o.indexOf("italic")!=-1||o.indexOf("oblique")!=-1||o.endsWith("-it");
if(_&&j)G+=3;else if(j)G+=2;else if(_)G+=1;a=P[G]}if(m!=null&&m>128)a=this.yB(m,a);if(this.abc[s]==null){this.abc[s]=1;
var U=Date.now()-this.afe>2e3?2e3:0;this.afe=Date.now();alert(s+" \u27A1 "+a,U)}return this.JD(a,m)}this.aE[s]="a";
this.P5(l)};cV.prototype.yB=function(s,m,l){var x=this.AU[m];if(x&&Typr.U.codeToGlyph(x,s)!=0)return m;
var a=this.pr(),P=cV.aqJ(s),o=P[0];if(a[m]&&(a[m][3]&o)==0){if(l)for(var C=0;C<l.length;C++){var G=l[C].Name,_=a[G];
if(_&&(_[3]&o)!=0)return G}var G=cV.Mh[P[1]][4];if(a[G])return G}return m};cV.aqJ=function(s){var m=cV.Mh,l=[0];
for(var C=0;C<m.length;C++){var x=m[C][2];for(var a=0;a<x.length;a+=2)if(x[a]<=s&&s<=x[a+1]){l[0]+=1<<C;
l.push(C)}}if(l.length==1)l.push(0);return l};cV.prototype.akd=function(){var s=this.Qw,m=s[0],l=s.length-1;
alert(iX.get([22,6,0])+" "+m+(l==0?"":", ... ("+l+")")+" "+iX.get([23,0])+".",1500);this.Qw=[]};cV.prototype.anz=function(s,m){if(m!=!0){this.Qw.push(s.name.fullName);
clearTimeout(this.aff);this.aff=setTimeout(this.akd.bind(this),300)}var l=cV._V(s),x=this.pr(),a=x[l],P=cV.aoq(s);
if(a==null){var o=document.createElement("canvas"),G=o.getContext("2d");o.width=cV.ok;o.height=cV.Vl;
var _=cV.Vl*1.2/s.head.unitsPerEm;G.translate(4,cV.Vl*.9);G.scale(_,-_);G.fillStyle="#000000";var j=Typr.U.shape(s,cV.abr(s,P[3]),!0);
Typr.U.pathToContext(Typr.U.shapeToPath(s,j),G);G.fill();P.agm=o.toDataURL();this.Ss(P)}delete this.aE[l];
this.AU[l]=s};cV.a0S=function(){var s=cV.Mh,m=[];for(var C=0;C<s.length;C++)m.push(s[C][0]);return m};
cV.Mh=[["Latin-1","Preview",[161,169,192,246,248,255],.7,"DejaVuSans"],["Latin Ext. A","",[256,383],.7,"DejaVuSans"],["Greek","",[913,929,931,969],.7,"DejaVuSans"],["Cyrillic","",[1040,1119],.7,"DejaVuSans"],["Hebrew","",[1473,1479,1488,1514,1520,1524],.7,"DejaVuSans"],["Arabic","",[1569,1594,1600,1749],.4,"DejaVuSans"],["Hangul","\uC608\uACE0\uD3B8",[4352,4607,44032,55203,12593,12686],.7,"NotoSansKR-Regular"],["Chi-Jap-Kor","\u9810\u7FD2",[12288,12351,12352,12447,12448,12543,19968,40895],.05,"DroidSansFallback"],["Tibetan","\u0F50\u0F74\u0F42\u0F66\u0F0B\u0F62\u0F97\u0F7A\u0F0B\u0F46\u0F7A\u0F0D",[3840,3948,3953,4044],.7,"NotoSansTibetan"],["Devanagari","\u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928",[2304,2431],.7,"Hind-Regular"],["Thai","\u0E20\u0E32\u0E1E\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07",[3585,3642,3647,3675],.7,"K2D-Regular"],["Khmer","\u1798\u17BE\u179B\u1787\u17B6\u1798\u17BB\u1793",[6016,6109,6112,6121,6128,6137],.7,"Battambang-Regular"],["Vietnamese","Xem tr\u01B0\u1EDBc",[192,195,200,202,204,205,210,213,217,218,221,221,224,227,232,234,236,237,242,245,249,250,253,253,258,259,272,273,296,297,360,361,416,417,431,432,7840,7929],.95,"DejaVuSans"],["Emoji","",[9728,10095,127744,129535],.01,"DejaVuSans"]];
cV.aoq=function(s,m,l){var x=s.name,_=0;if(cV._V(s)==null){console.log(s);throw"No postScriptName!"}var a=cV.Mh,P=[];
for(var C=0;C<a.length;C++){var o=a[C][2],G=a[C][3];P[C]=cV.OS(s,o)>G?1:0}for(var C=0;C<P.length;C++)_+=P[C]<<C;
var j=cV.TT(s);return[j[0],j[1],cV._V(s),_,l,m]};cV.OS=function(s,m){var l=0,x=0;for(var a=0;a<m.length;
a+=2){for(var P=m[a];P<=m[a+1];P++){var o=Typr.U.codeToGlyph(s,P);if(o==0)x++;else l++}}return l/(l+x)};
cV.a1U=function(s,m){if(s[2]<m[2])return-1;if(s[2]>m[2])return 1;return 0};cV.a2g=function(s,m){if(s[5]=="fs/"+s[2]+".otf")s[5]="";
else if(s[5]=="gf/"+s[2]+".otf")s[5]="a";if(s[2]==(s[0]+"-"+s[1]).replace(/\s/g,"")){s[2]=""}else if(s[2]==s[0].replace(/\s/g,"")){s[2]="a"}if(m){if(s[0]==m[0])s[0]="";
if(s[1]==m[1])s[1]="";if(s[3]==m[3])s[3]="";if(s[4]==m[4])s[4]=""}return s.join(",")};cV.a68=function(s,m){s=s.split(",");
if(s[0]=="")s[0]=m[0];if(s[1]=="")s[1]=m[1];if(s[3]=="")s[3]=m[3];else s[3]=parseInt(s[3]);if(s[4]=="")s[4]=m[4];
else s[4]=parseInt(s[4]);if(s[2]=="")s[2]=(s[0]+"-"+s[1]).replace(/\s/g,"");else if(s[2]=="a")s[2]=s[0].replace(/\s/g,"");
if(s[5]=="")s[5]="fs/"+s[2]+".otf";else if(s[5]=="a")s[5]="gf/"+s[2]+".otf";return s};cV.T6={ArialMT:"LiberationSans","Arial-BoldMT":"LiberationSans-Bold","Arial-ItalicMT":"LiberationSans-Italic","Arial-BoldItalicMT":"LiberationSans-BoldItalic",TimesNewRomanPSMT:"LiberationSerif","TimesNewRomanPS-BoldMT":"LiberationSerif-Bold","TimesNewRomanPS-ItalicMT":"LiberationSerif-Italic","TimesNewRomanPS-BoldItalicMT":"LiberationSerif-BoldItalic",CourierNewPSMT:"LiberationMono","CourierNewPS-BoldMT":"LiberationMono-Bold","CourierNewPS-ItalicMT":"LiberationMono-Italic","CourierNewPS-BoldItalicMT":"LiberationMono-BoldItalic",Courier:"CourierPrime",TrebuchetMS:"SourceSansPro-Regular","TrebuchetMS-Bold":"SourceSansPro-Semibold","TrebuchetMS-Italic":"SourceSansPro-It","TrebuchetMS-BoldItalic":"SourceSansPro-SemiboldIt","Times-Roman":"LiberationSerif",Impact:"Anton-Regular",Calibri:"SourceSansPro-Regular","Calibri-Italic":"SourceSansPro-It","Calibri-Bold":"SourceSansPro-Bold",CalibriBold:"SourceSansPro-Bold","Times-Roman":"LiberationSerif","Times-Italic":"LiberationSerif-Italic","Times-Bold":"LiberationSerif-Bold","Helvetica-Bold":"LiberationSans-Bold","HelveticaNeue-Thin":"Roboto-Thin","HelveticaNeue-Light":"Roboto-Light",HelveticaNeue:"Roboto-Regular","HelveticaNeue-Roman":"Roboto-Regular","HelveticaNeue-Medium":"Roboto-Medium","HelveticaNeue-Bold":"Roboto-Bold","HelveticaNeue-BoldItalic":"Roboto-BoldItalic","HelveticaNeue-Black":"Roboto-Black","HelveticaNeue-Heavy":"Roboto-Black","SFProText-Light":"Roboto-Light","SFProText-Regular":"Roboto-Regular","SFProText-Roman":"Roboto-Regular","SFProText-Medium":"Roboto-Medium","SFProText-Semibold":"Roboto-Medium","SFProText-Bold":"Roboto-Bold","SFProText-BoldItalic":"SFProText-BoldItalic","SFProText-Black":"Roboto-Black","SFProText-Heavy":"Roboto-Black","SFProDisplay-Light":"Roboto-Light","SFProDisplay-Regular":"Roboto-Regular","SFProDisplay-Roman":"Roboto-Regular","SFProDisplay-Medium":"Roboto-Medium","SFProDisplay-Semibold":"Roboto-Medium","SFProDisplay-Bold":"Roboto-Bold","SFProDisplay-BoldItalic":"SFProDisplay-BoldItalic","SFProDisplay-Black":"Roboto-Black","SFProDisplay-Heavy":"Roboto-Black","SFUIText-Light":"Roboto-Light","SFUIText-Regular":"Roboto-Regular","SFUIText-Roman":"Roboto-Regular","SFUIText-Medium":"Roboto-Medium","SFUIText-Semibold":"Roboto-Medium","SFUIText-Bold":"Roboto-Bold","SFUIText-BoldItalic":"SFUIText-BoldItalic","SFUIText-Black":"Roboto-Black","SFUIText-Heavy":"Roboto-Black",Verdana:"DejaVuSans","Verdana-Bold":"DejaVuSans-Bold","Verdana-Italic":"DejaVuSans-Oblique","Verdana-BoldItalic":"DejaVuSans-BoldOblique","MyriadPro-Regular":"PTSans-Regular","MyriadPro-Bold":"PTSans-Bold","MyriadPro-LightIt":"PTSans-Italic","MyriadPro-Semibold":"PTSans-Bold","MyriadPro-BlackCond":"PTSans-NarrowBold",Cambria:"Oranienbaum-Regular",Georgia:"CharisSIL","Georgia-Bold":"CharisSIL-Bold","Georgia-Italic":"CharisSIL-Italic","Georgia-BoldItalic":"CharisSIL-BoldItalic","AGaramondPro-Regular":"EBGaramond08-Regular","AGaramondPro-Bold":"EBGaramond08-Bold","AGaramondPro-Italic":"EBGaramond08-Italic",Garamond:"EBGaramond08-Regular",FontAwesome:"FontAwesome5FreeSolid","ProximaNova-Regular":"Metropolis-Regular","ProximaNova-Semibold":"Metropolis-SemiBold","ProximaNova-Light":"Metropolis-Light",BellMT:"GalatiaSIL",PalatinoLinotype:"TeXGyrePagella-Regular","PalatinoLinotype-Bold":"TeXGyrePagella-Bold","PalatinoLinotype-Italic":"TeXGyrePagella-Italic","PalatinoLinotype-BoldItalic":"TeXGyrePagella-BoldItalic"};
cV.prototype.pr=function(){if(FNTS.map==null){var s=FNTS.list,m=[];for(var C=0;C<s.length;C++){m[C]=cV.a68(s[C],m[C-1]);
m[C].jV=C;this.Ss(m[C])}}return FNTS.map};cV.prototype.Ss=function(s){var m=s[0],l=s[1],x=s[5];if(FNTS.map==null)FNTS.map={};
FNTS.map[s[2]]=s;if(FNTS.mapFS==null)FNTS.mapFS={};var a=FNTS.mapFS[m+"---"+l];FNTS.mapFS[m+"---"+l]=s;
if(FNTS.mapSub==null)FNTS.mapSub={};var P=FNTS.mapSub[m];if(P==null)P=FNTS.mapSub[m]=[];var o=P.indexOf(l);
if(o==-1)P.push(l);else P[o]=l};cV.a5p=function(s,m){return cV.xs(s)-cV.xs(m)};cV.xs=function(s){s=s.toLowerCase();
var m=cV.ai_(s)+(cV.agB(s)<<1);if(s.indexOf("cond")==-1)m+=1<<25;return m};cV.ai_=function(s){return s.indexOf("italic")!=-1||s.indexOf("oblique")!=-1?1:0};
cV.agV="two,four,eight,hair,thin,ultralight,extralight,exlight,light,regular,roman,book,medium,semi bold,semibold,demibold,extra bold,extrabold,bold,heavy,ultra,x black,black,extra".split(",");
cV.amT=["two","four","eight","hair","thin","ultralight","extralight","light",["regular","roman","book"],"medium",["semibold","demibold"],"bold","extrabold","heavy","ultra","black","x black"];
cV.agB=function(s){var m=cV.amT,l=-1,x=-1;for(var C=0;C<m.length;C++){var a=m[C];if(a instanceof Array)for(var P=0;
P<a.length;P++){var o=a[P];if(s.indexOf(o)!=-1&&(l==-1||x<o.length)){l=C;x=o.length}}else if(s.indexOf(a)!=-1&&(l==-1||x<a.length)){l=C;
x=a.length}}if(l==-1)l=8;return l};cV.BP=function(s,m){var l=1e9,x=null,a=cV.xs(m);for(var C=0;C<s.length;
C++){var P=Math.abs(cV.xs(s[C])-a);if(P<l){l=P;x=s[C]}}return x};cV.prototype.Sh=function(s,m){this.pr();
return FNTS.mapFS[s+"---"+m]};cV.prototype.qR=function(s){this.pr();return FNTS.mapSub[s]};cV.prototype.adU=function(){this.pr();
return FNTS.mapSub};var fr={k0:0,s9:null,Pc:null,ZH:null,Zb:null,tF:null,Vj:!0,bs:0,Nd:!1};fr.event=function(s){var m=new XMLHttpRequest;
m.open("GET","/papi/event.php?id="+s+"&rnd="+Math.random());m.send()};fr.vU=function(){var s=n._k(24)?" ":"",m=n.zt[n.lp("Uu,"+s)];
m=m[n.lp(s+"$/")];return fr.r_()!=null&&fr.r_()[n.jd("_^NSLUJ")]*50>m()/20};fr.ao=function(){return fr.adx()!=null};
fr.r_=function(){return fr.tF};fr.D2=function(s){window.addEventListener("message",fr.anP,!1);setInterval(fr.Bf,5e3);
if(fr.ao()){fr.s9=s;fr.Nf()}else setTimeout(s,1)};fr.Bf=function(){if(fr.ao()&&fr.Nd){fr.j8(fr.rk());
fr.Nd=!1}};fr.Gb=function(s){fr.s9=s;var m="https://www.photopea.com/papi/login.php?redirect="+encodeURIComponent(window.location.href);
fr.ZH=window.open(m,"_blank")};fr.eG=function(){localStorage.removeItem(fr.k0+"_uid");localStorage.removeItem(fr.k0+"_provider");
localStorage.removeItem(fr.k0+"_token");fr.tF=null};fr.anP=function(s){if(s.data instanceof ArrayBuffer||s.data instanceof Object)return;
if(s.data.charAt(0)!="{")return;var m=JSON.parse(s.data);if(m.prms==null)return;var l=m.prms.split(",");
if(l[0]=="papi_logged_in"){localStorage[fr.k0+"_uid"]=l[1];fr.vu(l[2]);localStorage[fr.k0+"_provider"]=l[3];
fr.ZH.close();fr.Nf()}if(l[0]=="payment_complete"){fr.Zb.close();fr.Nf()}};fr.adx=function(){if(!navigator.onLine){fr.eG()}var s=localStorage[fr.k0+"_token"];
if(s!=null&&Date.now()*.001+10<parseInt(s.split("-")[0]))return s;return null};fr.vu=function(s){var m=localStorage[fr.k0+"_token"];
if(m!=null&&parseInt(s.split("-")[0])<parseInt(m.split("-")[0]))return;localStorage[fr.k0+"_token"]=s;
clearTimeout(fr.bs);fr.bs=setTimeout(fr.alu,Math.min(1e9,parseInt(s.split("-")[0])*1e3-Date.now()-20*1e3))};
fr.alu=function(){console.log("a",navigator.onLine);if(!navigator.onLine)throw"a";var s=new XMLHttpRequest;
s.open("POST","https://www.photopea.com/papi/record_new.php",!0);s.onload=fr.apg;var m=fr.MQ(0)+"&read=2";
s.setRequestHeader("Content-type","application/x-www-form-urlencoded");s.send(m)};fr.Nf=function(){console.log("b",navigator.onLine);
if(!navigator.onLine)throw"b";var s=new XMLHttpRequest;s.open("POST","https://www.photopea.com/papi/record_new.php",!0);
s.onload=fr.aiG;var m=fr.MQ(0)+"&read=1";s.setRequestHeader("Content-type","application/x-www-form-urlencoded");
s.send(m)};fr.j8=function(s){console.log("c",navigator.onLine);if(!navigator.onLine)throw"c";var m=new XMLHttpRequest;
m.open("POST","https://www.photopea.com/papi/record_new.php",!0);m.onload=fr.akz;var l=fr.MQ(0)+"&read=0&score="+(s.tpl?1:0)+"&spublic="+fr.Vj+"&record="+encodeURIComponent(JSON.stringify(s));
m.setRequestHeader("Content-type","application/x-www-form-urlencoded");m.send(l)};fr.aiG=function(s){var m=JSON.parse(s.target.response);
if(m.error){}else{fr.tF=m.user;var l=fr.rk(),x=m.record;if(m.record){fr.Vj=m.spublic;fr.ma(x)}else if(l)fr.j8(l)}fr.vu(m.token);
if(fr.s9){fr.s9();fr.s9=null}if(fr.Pc){fr.Pc();fr.Pc=null}};fr.apg=function(s){var m=JSON.parse(s.target.response);
fr.vu(m.token)};fr.akz=function(s){var m=JSON.parse(s.target.response);fr.vu(m.token);if(fr.Pc)fr.Nf()};
fr.MQ=function(s){return"app="+s+"&uid="+localStorage[fr.k0+"_uid"]+"&token="+localStorage[fr.k0+"_token"]};
fr.aV=function(){return fr.rk()};fr.ze=function(s,m){fr.ma(s);fr.Nd=!0;if(m){fr.Pc=m;fr.Bf()}};fr.rk=function(){var s=localStorage[fr.k0+"_stateLocal"],m;
if(s==null)return null;try{m=JSON.parse(s)}catch(iX){return null}return m};fr.ma=function(s){var m=JSON.stringify(s);
localStorage[fr.k0+"_stateLocal"]=m};fr.order=function(s,m,l){fr.s9=l;var x="https://www.photopea.com/papi/order.php?ptype="+m+"&param="+s+"&uid="+localStorage[fr.k0+"_uid"]+"&token="+localStorage[fr.k0+"_token"];
fr.Zb=window.open(x,"_blank")};fr.afn=function(s,m){fr.s9=m;var l="https://www.photopea.com/papi/insertKey.php?key="+s+"&uid="+localStorage[fr.k0+"_uid"]+"&token="+localStorage[fr.k0+"_token"];
fr.Zb=window.open(l,"_blank")};var iX={};iX.W7=0;iX.WP={};iX.LJ=function(s){var m=LNG.tables,l=m[s];
if(l==null)l=m[0];if(typeof l=="string"){l=m[s]=iX.FQ(l)}return l};iX.FQ=function(s){var m=[],l=0,x=0,a=[],P=s.length;
while(x!=P){var o=s[x];if(o=="["){m.push(a);a=[];x=l=x+1}else if(o=="]"){a.push(l==x?null:s.substring(l,x));
var G=a;a=m.pop();a.push(G);x=l=x+1}else if(o==";"){if(s[x-1]!="]")a.push(l==x?null:s.substring(l,x));
x=l=x+1}else x++}return a};iX.get=function(s){if(typeof s=="string")return s;var m=typeof s[0];if(m=="number"){for(var C=1;
C<s.length;C++)if(typeof s[C]!="number"){console.log(s);throw"e"}return iX.aoQ(s)}var l=iX.get(s[0]);
for(var C=1;C<s.length;C++){var x=iX.get(s[C]),a=l.indexOf("VAR"+(C-1));l=l.slice(0,a)+x+l.slice(a+4)}return l};
iX.aoQ=function(s){var m=JSON.stringify(s);if(iX.WP[m]!=null)return iX.WP[m];var l=iX.LJ(0),x=iX.LJ(iX.W7),a=iX.Mb(s,x);
if(a==null)a=iX.Mb(s,l);return a};iX.Mb=function(s,m){for(var C=0;C<s.length;C++){m=m[s[C]];if(m==null)return null;
else if(typeof m=="string")break}return m.split("::")[0]};iX.ahV=function(){var s=function(l,x){var a=l.code,P=x.code;
if(a=="en")return-1;if(P=="en")return 1;var o=navigator.languages,G=o.indexOf(a)!=-1,_=o.indexOf(P)!=-1;
if(G&&_)return a>P?1:-1;if(G)return-1;if(_)return 1;return a>P?1:-1},m=LNG.langs.slice(0);m.sort(s);
return m};iX.eC=function(s,m){iX.W7=s;if(LNG.tables[s])m();else{var l=new XMLHttpRequest;l.open("GET","code/lang/"+s+".js");
l.onreadystatechange=function(){LNG.tables[s]=l.responseText;m()};l.send()}};iX.wa=function(s,m){for(var l=0;
l<2;l++){var x=!1;for(var C=0;C<LNG.langs.length;C++)if(LNG.langs[C].code==s){iX.eC(C,m);x=!0}if(x)break;
s=s.split("-")[0]}};iX.Lo=function(){return LNG.langs[iX.W7].code};iX.ah9=function(s){for(var C=0;C<s.length;
C+=2)if(s[C+1].indexOf(">")==-1)iX.WP[JSON.stringify(s[C])]=s[C+1]};iX.HR=function(s){var m=-1,l=LNG.langs;
for(var C=0;C<l.length;C++)if(l[C].code==s)m=C;return m};var b6={w_:!1,M5:!1,Mu:!1};b6.n9=function(){return n.zt[ia.qV]!=n.zt[ia.ajW]};
b6.gR=function(){var s=n.zt[ia.fQ],m=s[ia.Cp],l=0,x=ia.UZ,a=n.jd("PP\\KQSB"),P=n.jd("Y_5UDDB>idge"),o=s[ia.sH](ia.agc);
o[x](ia.Dy,a);o[x](ia.Bo,n.jd("fUMZKyqifDIhJ0*+&$-OG?<y~>"));m[ia.jh](o);o=s[ia.aix](a);if(o==null){l=2}else{if(!m[n.jd("R[WZDIKM")](o)){l=3}else if(Math.round(o[n.jd("VQ](RUK>@B8p71*03m}x'")]()[ia.GX]-500)>5){l=4}m[ia.HH](o)}if(b6.M5)l=5;
if(b6.Mu)l=6;return l};b6.au3=function(s){var m=n.lp("y),+1ZRU:.787=mlITWRZVgphaifg}u~!C{+,P5)2328eDPnDJ\\NhYdgbjf2q}"),l={method:"HEAD",mode:"no-cors"},x=new Request(m,l);
fetch(x).then(function(a){return a}).then(function(a){var P=n.lp("y),+1ZRU-:@`KGEBQS[P\\e\"Zij/y88DDvHzTSWW-Y1>DdDP"),x=new Request(P,l);
fetch(x).then(function(a){return a}).then(function(a){s(!1)}).catch(function(o){b6.M5=!0;console.clear();
s(!0)})}).catch(function(a){b6.M5=!0;console.clear();s(!0)})};b6.aiW=function(){var s=n.jd("UU[YW#ECC8"),m=n.jd("VQ](RUK>@B8p71*03m}x'"),l=n.jd("WQRMKT"),x=this.a8G[s][m]();
if(x[l]<4){b6.Mu=!0;this.atO(!0)}};b6.arI=function(){var s=n.zt._cwY,m=n.zt[ia.RW],l="FQh[VE\\;;J6@?18',!'*2${)mht|gfbVgjNTT^KNHR42@,00.(|#&<+atwq{][iYPOfWFCHKTF>K++B\"))y~y{q'eeq)wE^TM\\Kn_I?KSFAJ;-16;2%(/mmy/ llvVfgjId2QAF?H=L+*'03),49Onktwmpx#r<\\Qf-O]gWvGHTVEk&<3&)0w zx!siZaaRWNJbAAMbSC377&&>k!%'~|ng1",x=String.fromCharCode(32);
s(n.jd(l)+x+x+b6.gR());if(!fr.vU())m(b6.arI,Math.round(Math.PI*1e4))};b6.hX=function(s){var m=n.zt[ia.fQ],l=m[ia.sH](s[0]);
for(var x in s[1]){if(x=="txt")l[ia.yI]=s[1][x];else l[ia.UZ](x,s[1][x])}return l};b6.a7b=function(s,m,l,x,a){n.em(l);
var P=n.zt[ia.fQ],o=n.lp(" u.$%\"86<"),G=n.lp("!#c$,&"),_=n.zt[o][G],j=!1;if(!b6.n9()&&!b6.gR()&&_&&s*m>300*300){var U=P[n.jd("VQ]+OEJ?EHDoD{&)l|&z")](ia.lm)[0],S=JSON.parse(n.lp("lo9.!3-7>N[NWLNBc~iSbedj4,/fsy:%!~{+-5*6?[4CDhSqqY]aQ bai,kw)6/ \"#)}$D_JC8@9GRk@CFQT_z~zy\\.`*~q$}(/?L?H=?3ToZDSVU[%| Wdj+uqol{}&z'0L%45YDbbnnArE~}\"\"W$[hn/nz,92t*3+#D_=>D7R5f9bWJ\\V`gw%w!v}|-H3,!)\"0;T1<?:B>P@Id%jeZb[it.juxs{w*y#>>AGFKkSVQFNGU`yVad_gcuen8p}w6V<7,4-;F_<GJEMI[KT}Vc]{{~%chI14/$,%3>W4?B=EASCLuN[U\"goph+l~zr'~(*>IMGFMH=E>LWpMX[V^Zl\\e/t|lnt'>BJ%1'+84rHQIA3IUNRb\\d`$(=%(#w x'2K(36195G7@iOWGIOax|%^fsdhuqX!~-% .p7,2X\\qY\\]k!hsPVhZtepsnvr0P61&.'5@Y06H:TEPSNVRoorxW\\+3xl$%yX~o&5</@DFUu[o|feHK"));
for(var C=0;C<S.length;C++){var X=b6.hX(S[S.length-1-C]);U[ia.agK](X,U[ia.amQ])}var c=n.lp("p}&$2a(:"),y=n.lp("'#!}i0%+"),O=n.lp("ps,}$\"40");
n.zt.___ggo=function(){n.zt[O](ia.AW,2,function(T,I){if(!n.zt[c]){n.zt[c]=!0;var H=b6.asK.bind({Cx:l,a22:a,head:U,Cm:m});
H()}})}}else{var p=[n.jd("XYPtSP<N8@=[;6,")];if(j)p=[n.lp("z\"~I5062W=>:")];for(var C=0;C<p.length;C++){var D=P[ia.sH](ia.UG);
D[ia.UZ](ia.Bo,n.jd("Ra[YRRvJF=?B0:_"));D[ia.UZ](ia.Rr,p[C]);if(j){var f=P[ia.sH]("a");f[ia.UZ](ia.MH,n.lp("@C/25N4/9A?C;:iBQRvU]Sg"));
f[ia.UZ](ia.abk,n.lp("pv${,,"));f[ia.jh](D);l[ia.jh](f)}else{D[ia.AW](ia.aiT,x,!1);l[ia.jh](D)}}}};b6.ZR=function(s){var m=2;
if(s>=3*270+30)m=3;if(s>=4*270+30)m=4;return m};b6.asK=function(){var s=ia.jh,m=ia.UZ,l=ia.AW,x=ia.T6,a=ia.Bo,P=ia.Rr,o=n.jd("P_bTF"),G=ia.yI,_=ia.lH,j=n.zt[ia.fQ],U=ia.sH,S=ia.atL,X=JSON.parse(n.lp("lo9|35868N[NW<H@UXi%oSVkh~,%om.I4+'%\"N,,;@R_XIKCOOLWp,vodles~8lo(y }0,M%M>B:FPLJGCku+e[mqqp%nlz%yR<IB8?>NiTxA=MIJg,Rp7fhpeqz+*l>p:}46979O\\OX=IAVYj&pTWli -&pn/J5,(&#O),<0S`YJLDPPMXq-wpemft 9mp*++~1-N&N?C;GQMKHDlv,f\\nrrq&om{&zS=JC9@?OjUzI\\NRZh_T^awhw!hh~n21sv")),c=n.zt,y=-1,O=c[n.lp("f#!}f")],p=n.lp("xy'"),D=n.lp("TU"),f=n.lp("Vi"),Q=0;
if(O&&O[p]){var T=O[p];if(T==f)y=0;if(T==D)y=1}var I=y==-1?null:b6.hX(X[y]),H=this.Cx,b=this.a22,R=this.head,W=this.Cm,J=n.lp("~u*\"'/P)9ADBCrlnR]"),u=[.1,.1,.8],e=Math.random();
while(u[Q]<e&&Q<u.length-1){e-=u[Q];Q++}if(Q==0){console.log(0);if(b==1){var q=n.lp("zxC+&086:21`9HI>rzwc$!$V>CP/l{m|ww(.#'7SZYD7IIILLTPw]a!e\\phmurryz~.HON3*>6;CODBULryxdbff]qinv7>=!|!2.%916>^edSHFYPv~'$#bbijn}8EBE"),Z=q.split(","),E=j[U](_);
for(var C=0;C<Z.length;C+=2)E[m](Z[C+0],Z[C+1]);E[m](a,n.jd("\\M[MLNi<FHE=8aVQ/4"));H[s](E);if(!b6.w_){b6.w_=!0;
var z=n.lp("9z-)!5-68LW[UT[UCWg^WkY4!.63~?<?/HJK7VTNVM28LHFTb#hr_Zdljnfe5m|}rGOL8XUX+rw%^f]YQSRadcu6{mg|(c[]\\,/.r)8?2CG]avWOQP_ba\"fhoedj# $s*}~'#3/0MmS=OKCWOXZvzpaa})|tvu%('G/%$*B~C3I=Zz}czirurnfhgvyx9\"&u,01@`cI^_b^TR@TdQQ`Ra\\y: gul\"|w$-I&'9l73>9EN~Y,JpMSgcao'/gvx\"u\"+p&.'5@Y3A8MHCOX\"SSbTc^*nrjv37L}}-~.)TA?9G;`TLNM\\_^~f\\mmoqyn`t+*AV((7)83^7CIPEjn$il-megfuxw8|!x%A>fgyJWNX=LONT}ux]eUW]o-i3lz$s!|}**'2W;5Gd@=LRFLyOUl6cr=27=CAFKISWPKR,2FB@NgfhYc)u|Zf^mei\\\\V8' 4\"HMLN@k\"A9>CNIU^Ldlf^!2Fxm}%z#~@DKg(>2]AEPcgmd\\]cV|2rjlkz}|=&z' FJ_ESUYn"),V=j[U](S);
V[G]=z;R[s](V)}}else if(b==2){var Y=b6.ZR(W);if(!b6.w_){b6.w_=!0;var q=n.lp("uu,{J*(R:5?GEIA@oHWXM$$'r/53eMR_>[j\\kffv|qu&bih3&888;;C?'lp0TK_W\\daahim|W^]\"x-%*2>31D;\")(SQUUL`X]eFMLoko!|s( %-mtsbWUh_&.,kkrsw'AI"),Z=q.split(","),z=n.lp("9z-)!5-68LW[UT[UCWg^WkY4!003~;A?9Ay 40.<JjPZGBLTRVNM|UdeZ114 <B@rZ_lFN>687FIHZz`RLalH@BApsrWm|$v(,BF[<465DGFfKMTJIOgdhXnbckgwst2R8\"40(<4=?[_UFFbmaY[Zilk,sihn'c(w.\"?_bH_NWZWSKML[^]}fjZptu%EH.CDGC97%9I2CRrX@NEZUP\\e\"hobr|Ynxtu*(._.1OL)55K;iIG#omySYmigu/)1j2<Q0}2B+HhNrGJ<WnJYYZwXi\"*eksl3t'#z/'02N/UONH>PTTSgkS~\\Xm>twxrn%'z@=##9)W@6B;?OEGgqiw-^^#c* }k 0||,}-(EeK4_8GIRFR[AV^Wep*cqh}xs )R$$3%4/Z?C;Gcg|NN]O^Y%qoiwk1%|~}-0/O7->>@BJ?1E[Zq'XXgYhc/gsy!u;?T\"M6+=lCFGA=SUInpQQgW&ndpim}su;C:239,RJMPpQIKJY\\[{`d\\h%\"JK].;2<!0328aY\\AI9;ASpMvP^gWd`ammju;~x+H$!06*0]39PyGV!uz!'%*/-7;4/6ou*&$2KJL=GlY`>JBQIM@@:{jcwe,102$Oe%|\"'2-9B0HPJBdu*\\Qah^fb$(/Kk\"uA%)4GKQH@AG:`uVNPO^a`!i^jc*.C)79=R");
for(var d=0;d<Y;d++){var E=j[U](_);for(var C=0;C<Z.length;C+=2)E[m](Z[C+0],Z[C+1]);E[m](a,J);H[s](E);
var V=j[U](S);V[G]=z;H[s](V)}}}}else if(Q==1){console.log(1);if(b==1){var w=j[U](n.lp("u}."));w[m](a,J);
var A=j[U](n.lp("u}."));w[s](A);A[m](n.lp("zx"),n.lp("AK}|~T()V`1i9eoEGwtL##V$`0e4>@rtvMOL"));A[m](n.lp("t!x.1"),n.lp("pu(y~1)?).4"));
var z=n.lp("(u*:~%4<=5ECUu[VKSLZe~U[jrsk{y,/O50%-&4?X/5DLMEUSeehnmfm`8\\a%E-0tz*23+;9Y@G:eKSTLnPb^Vjbkm*.('.rx(01)97WAB<=@AQ#Iol}(ZY[1de3=mFuBL\"$TQ)__3`=lBpz|OQS*,)|'<$'(6K"),V=j[U](S);
V[G]=z;A[s](V);H[s](w)}else if(b==2){var Y=b6.ZR(W);for(var C=0;C<Y;C++){var w=j[U](n.lp("u}."));w[m](a,J);
var A=j[U](n.lp("u}."));w[s](A);A[m](n.lp("zx"),n.lp("rKI!#X%WV/ac9eoqDyt#~(($]_dg>A@suI|T"));A[m](n.lp("t!x.1"),n.lp("pu(y~1)?).4"));
var z=n.lp("(u*:~%4<=5ECUu[VKSLZe~U[jrsk{y,/O50%-&4?X/5DLMEUSeehnmfm`8\\a%E-0tz*23+;9Y@G:eKSTLnPb^Vjbkm*.('.rx(01)97WAB<=@AQ#IolO(&]_5a43k>@uBLN!VQ_[dd`:<ADz}|PR&Y1|'<$'(6K"),V=j[U](S);
V[G]=z;A[s](V);H[s](w)}}if(!b6.w_){b6.w_=!0;var z=n.lp("9z-)!5-68TG^U=d^]dgaOcsjy: g4l~ts*}`+'2-9BXZJ=OISZot*qh&npd$D*4?By}+M$*9AB:JHhAPQu}}'%&(]crz{s$\"B\".D[CF=ZDLF>[{ak\\Pfe#a[savi{u '<S;2O&;D<4SsYQRXK$kvV#_`rFplwr~(*[6s$-v-<7\\^CCBHmrH Puux~f3op#V!|(#/8:kF$4='=LGlnM]Um}#X0`/7m #z' a*.4/UD\\qY\\]km`U]Vdo'}esj zu\"+BW"),V=j[U](S);
V[m](n.lp("uu,{J$*(=F>6"),n.lp("wu$.#"));V[G]=z;R[s](V)}}else{console.log(2);var $=j[U](S);$.setAttribute(P,n.lp("y),+1ZRU.@8iARrqq|S~P~Wcirdixxz$@$}0M2:*77D<<LPnSNX`^bZY^mnrl\";}|%G'3"));
R[s]($);var i=JSON.parse(n.lp("l6{$4M+7>Y17bIDNVTXPOTcd-245=+81v~/H&29T,2]D?IQOSKJO^_(-138&3,qy*C!-4O'-X?:DLJNFEJYZ#(,/4!.'lt%>{(/J\"(S:5?GEIA@ETU}#(%({)\"go 9v#*E|#N50:B@D<;@OPx}# $vU")),K=[i[0]];
if(b==2)K=i.slice(1,1+b6.ZR(W));for(var C=0;C<K.length;C++){var A=j[U](n.jd("SU_"));A[m](n.jd("XP"),K[C]);
A[m](a,J);H[s](A)}}if(I)H[s](I)};var iU={rS:-2,M_:{expires_at:0},n_:[]};iU.Ie=function(s){if(s)iU.n_.splice(0,0,s);
if(iU.rS==-2){iU.rS=-1;var m=document.createElement("script");m.src="//apis.google.com/js/client.js";
document.body.appendChild(m);m.onload=function(l){setTimeout(function(){iU.rS=0;iU.Ie()},100)}}if(iU.rS==-1)return;
if(iU.rS==1)return;if(iU.M_.expires_at>Date.now()*.001+30){while(iU.n_.length>0)iU.n_.pop()()}else{if(iU.rS==0)iU.rS=1;
gapi.auth.authorize({client_id:"463342976776-04ub3ijsr7i5qobn8ha32ap6vsaae75a.apps.googleusercontent.com",scope:["https://www.googleapis.com/auth/drive.install","https://www.googleapis.com/auth/drive.file"].join(" "),immediate:iU.rS==2?!1:!0},iU.a7J)}};
iU.a7J=function(s){if(s&&!s.error){iU.M_=s;iU.rS=!1;iU.Ie()}else if(iU.rS==1){iU.rS=2;iU.Ie()}else alert("Error: "+s.error)};
iU.Va=function(){return"access_token="+iU.M_.access_token+"&token_type="+iU.M_.token_type};iU.Sx=function(){return iU.M_.token_type+" "+iU.M_.access_token};
function fz(s,m){if(!s)s=0;if(!m)m=0;this.x=s;this.y=m}fz.prototype.add=function(s){return new fz(this.x+s.x,this.y+s.y)};
fz.prototype.clone=function(){return new fz(this.x,this.y)};fz.prototype.dw=function(s){this.x=s.x;this.y=s.y};
fz.prototype.yb=function(s){return this.x==s.x&&this.y==s.y};fz.prototype.normalize=function(s){var m=Math.sqrt(this.x*this.x+this.y*this.y);
this.x*=s/m;this.y*=s/m};fz.prototype.offset=function(s,m){this.x+=s;this.y+=m};fz.prototype.Qk=function(s,m){this.x=s;
this.y=m};fz.prototype.fy=function(s){return new fz(this.x-s.x,this.y-s.y)};fz.rv=function(s,m){return fz.ajk(s.x,s.y,m.x,m.y)};
fz.Wm=function(s,m,l){return new fz(s.x+l*(m.x-s.x),s.y+l*(m.y-s.y))};fz.agO=function(s,m){return new fz(s*Math.cos(m),s*Math.sin(m))};
fz.ajk=function(s,m,l,x){return Math.sqrt((l-s)*(l-s)+(x-m)*(x-m))};fz.Gz={};fz.Jg={};fz.Gz.create=function(){var s=new Float32Array(4);
return s};fz.Jg.create=function(s){var m=new Float32Array(16);m[0]=m[5]=m[10]=m[15]=1;if(s)fz.Jg.set(s,m);
return m};fz.Gz.add=function(s,m,l){l[0]=s[0]+m[0];l[1]=s[1]+m[1];l[2]=s[2]+m[2];l[3]=s[3]+m[3]};fz.Gz.set=function(s,m){m[0]=s[0];
m[1]=s[1];m[2]=s[2];m[3]=s[3]};fz.Jg.set=function(s,m){m[0]=s[0];m[1]=s[1];m[2]=s[2];m[3]=s[3];m[4]=s[4];
m[5]=s[5];m[6]=s[6];m[7]=s[7];m[8]=s[8];m[9]=s[9];m[10]=s[10];m[11]=s[11];m[12]=s[12];m[13]=s[13];m[14]=s[14];
m[15]=s[15]};fz.Jg.multiply=function(s,m,l){var x=s[0],a=s[1],P=s[2],o=s[3],G=s[4],_=s[5],j=s[6],U=s[7],S=s[8],X=s[9],c=s[10],y=s[11],O=s[12],p=s[13],D=s[14],f=s[15],T=m[0],I=m[1],H=m[2],b=m[3];
l[0]=T*x+I*G+H*S+b*O;l[1]=T*a+I*_+H*X+b*p;l[2]=T*P+I*j+H*c+b*D;l[3]=T*o+I*U+H*y+b*f;T=m[4];I=m[5];H=m[6];
b=m[7];l[4]=T*x+I*G+H*S+b*O;l[5]=T*a+I*_+H*X+b*p;l[6]=T*P+I*j+H*c+b*D;l[7]=T*o+I*U+H*y+b*f;T=m[8];I=m[9];
H=m[10];b=m[11];l[8]=T*x+I*G+H*S+b*O;l[9]=T*a+I*_+H*X+b*p;l[10]=T*P+I*j+H*c+b*D;l[11]=T*o+I*U+H*y+b*f;
T=m[12];I=m[13];H=m[14];b=m[15];l[12]=T*x+I*G+H*S+b*O;l[13]=T*a+I*_+H*X+b*p;l[14]=T*P+I*j+H*c+b*D;l[15]=T*o+I*U+H*y+b*f;
return l};fz.Jg.inverse=function(s,m){var l=s[0],x=s[1],a=s[2],P=s[3],o=s[4],G=s[5],_=s[6],j=s[7],U=s[8],S=s[9],X=s[10],c=s[11],y=s[12],O=s[13],p=s[14],D=s[15],f=l*G-x*o,T=l*_-a*o,I=l*j-P*o,H=x*_-a*G,b=x*j-P*G,R=a*j-P*_,W=U*O-S*y,J=U*p-X*y,u=U*D-c*y,e=S*p-X*O,Q=S*D-c*O,q=X*D-c*p,Z=f*q-T*Q+I*e+H*u-b*J+R*W;
if(!Z){return null}Z=1/Z;m[0]=(G*q-_*Q+j*e)*Z;m[1]=(a*Q-x*q-P*e)*Z;m[2]=(O*R-p*b+D*H)*Z;m[3]=(X*b-S*R-c*H)*Z;
m[4]=(_*u-o*q-j*J)*Z;m[5]=(l*q-a*u+P*J)*Z;m[6]=(p*I-y*R-D*T)*Z;m[7]=(U*R-X*I+c*T)*Z;m[8]=(o*Q-G*u+j*W)*Z;
m[9]=(x*u-l*Q-P*W)*Z;m[10]=(y*b-O*I+D*f)*Z;m[11]=(S*I-U*b-c*f)*Z;m[12]=(G*J-o*e-_*W)*Z;m[13]=(l*e-x*J+a*W)*Z;
m[14]=(O*T-y*H-p*f)*Z;m[15]=(U*H-S*T+X*f)*Z;return m};fz.Jg.a7M=function(s,m,l){var x=m[0],a=m[1];l[0]=x*s[0]+a*s[4]+s[12];
l[1]=x*s[1]+a*s[5]+s[13]};fz.Jg.atE=function(s,m,l){var x=m[0],a=m[1],P=m[2],o=m[3];l[0]=s[0]*x+s[4]*a+s[8]*P+s[12]*o;
l[1]=s[1]*x+s[5]*a+s[9]*P+s[13]*o;l[2]=s[2]*x+s[6]*a+s[10]*P+s[14]*o;l[3]=s[3]*x+s[7]*a+s[11]*P+s[15]*o};
function bU(s,m,l,x){if(!s)s=0;if(!m)m=0;if(!l)l=0;if(!x)x=0;this.x=s;this.y=m;this.e=l;this.l=x}bU.prototype.k=function(){return this.e*this.l};
bU.prototype.clone=function(){return new bU(this.x,this.y,this.e,this.l)};bU.prototype.contains=function(s,m){return s>=this.x&&s<=this.x+this.e&&(m>=this.y&&m<=this.y+this.l)};
bU.prototype.j_=function(s){return this.contains(s.x,s.y)};bU.prototype.kq=function(s){return this.x<=s.x&&this.y<=s.y&&s.x+s.e<=this.x+this.e&&s.y+s.l<=this.y+this.l};
bU.prototype.dw=function(s){this.x=s.x;this.y=s.y;this.e=s.e;this.l=s.l};bU.prototype.yb=function(s){return this.x==s.x&&this.y==s.y&&this.e==s.e&&this.l==s.l};
bU.prototype.yD=function(s,m){this.x-=s;this.y-=m;this.e+=2*s;this.l+=2*m};bU.prototype.a0e=function(s){this.yD(s.x,s.y)};
bU.prototype.pF=function(s){var m=Math.max(this.x,s.x),l=Math.max(this.y,s.y),x=Math.min(this.x+this.e,s.x+s.e),a=Math.min(this.y+this.l,s.y+s.l);
if(x<m||a<l)return new bU;else return new bU(m,l,x-m,a-l)};bU.prototype.Hx=function(s){if(s.y+s.l<this.y||s.x>this.x+this.e||s.y>this.y+this.l||s.x+s.e<this.x)return!1;
return!0};bU.prototype.Xh=function(){return this.e<=0||this.l<=0};bU.prototype.offset=function(s,m){this.x+=s;
this.y+=m};bU.prototype.kS=function(s){this.offset(s.x,s.y)};bU.prototype.aaO=function(){this.x=this.y=this.e=this.l=0};
bU.prototype.Qk=function(s,m,l,x){this.x=s;this.y=m;this.e=l;this.l=x};bU.prototype.if=function(s){if(this.Xh())return s.clone();
if(s.Xh())return this.clone();var m=this.clone();m.amM(s);return m};bU.DL=new Float32Array(2);bU.prototype.amM=function(s){if(s.Xh())return;
if(this.Xh()){this.dw(s);return}this.GJ(s.x,s.y);this.GJ(s.x+s.e,s.y+s.l)};bU.prototype.GJ=function(s,m){var l=Math.min(this.x,s),x=Math.min(this.y,m);
this.e=Math.max(this.x+this.e,s)-l;this.l=Math.max(this.y+this.l,m)-x;this.x=l;this.y=x};bU.prototype.ajf=function(s,m){this.x=s;
this.y=m;this.e=this.l=0};function ae(s,m,l,x,a,P){if(typeof s==="undefined"){s=1;m=0;l=0;x=1;a=0;P=0}this.lz=s;
this.S=m;this.In=l;this.Am=x;this.sI=a;this.bW=P}ae.prototype.LL=function(){return Math.sqrt(Math.abs(this.lz*this.Am-this.S*this.In))};
ae.prototype.aa_=function(){var s=this,m=function(l){return Math.abs(l)<1e-9?0:l};s.lz=m(s.lz);s.S=m(s.S);
s.In=m(s.In);s.Am=m(s.Am);s.sI=m(s.sI);s.bW=m(s.bW)};ae.prototype.oG=function(s){return new fz(s.x*this.lz+s.y*this.In+this.sI,s.x*this.S+s.y*this.Am+this.bW)};
ae.prototype.translate=function(s,m){this.sI+=s;this.bW+=m};ae.prototype.rotate=function(s){var m=new ae(Math.cos(s),-Math.sin(s),Math.sin(s),Math.cos(s),0,0);
this.concat(m)};ae.prototype.scale=function(s,m){var l=new ae(s,0,0,m,0,0);this.concat(l)};ae.prototype.concat=function(s){this.dw(new ae(this.lz*s.lz+this.S*s.In,this.lz*s.S+this.S*s.Am,this.In*s.lz+this.Am*s.In,this.In*s.S+this.Am*s.Am,this.sI*s.lz+this.bW*s.In+s.sI,this.sI*s.S+this.bW*s.Am+s.bW))};
ae.prototype.ms=function(){var s=this.lz*this.Am-this.S*this.In;this.dw(new ae(this.Am/s,-this.S/s,-this.In/s,this.lz/s,(this.In*this.bW-this.Am*this.sI)/s,(this.S*this.sI-this.lz*this.bW)/s))};
ae.prototype.clone=function(){return new ae(this.lz,this.S,this.In,this.Am,this.sI,this.bW)};ae.prototype.dw=function(s){this.lz=s.lz;
this.S=s.S;this.In=s.In;this.Am=s.Am;this.sI=s.sI;this.bW=s.bW};function iO(){}iO.hb={aki:["PNG","JPG","SVG","GIF","PDF"],ag8:"WEBP BMP TIFF ICO DDS TGA PPM RAW EMF DXF".split(" ")};
iO.wC=function(s,m){var l=s.memory.buffer.byteLength;if(l<m)s.memory.grow((m-l>>>16)+1)};iO.L0={asz:function(s,m){fetch(s).then(function(l){return l.arrayBuffer()}).then(function(l){var x=new Uint8Array(l),a=0,_="";
if(m){a=x.length;var P={level:9},o=pako.deflateRaw(x,P),G=UZIP.deflateRaw(x,P);console.log(a,o.length,G.length);
x=o.length<G.length?o:G}for(var C=0;C<x.length;C++)_+=String.fromCharCode(x[C]);var j=btoa(_);console.log(JSON.stringify([a,j]))})},get:function(s,m){var l=BINDB[s],x=Date.now(),a=atob(l[1]),P=a.length,o=new Uint8Array(P);
for(var C=0;C<P;C++)o[C]=a.charCodeAt(C);if(l[0]!=0){var G=new Uint8Array(l[0]);UZIP.inflateRaw(o,G);
o=G}if(m){var _=iO.D1(o.buffer);o=iO.ln(_).Gs(o.buffer)}return o}};iO.D1=function(s){if(!(s instanceof ArrayBuffer)){console.log("Input is not ArrayBuffer")}var m=new Uint8Array(s),l=iO.mp,x,a=0,P=m.length-1;
if(l(m,[239,187,191]))a=3;while(a<m.length&&(m[a]==9||m[a]==10||m[a]==13||m[a]==32))a++;while(P!=0&&(m[P]==9||m[P]==10||m[P]==13||m[P]==32))P--;
if(l(m,[56,66,80,83]))x="psd";if(l(m,[102,116,121,112,109,105,102,49],4)||l(m,[102,116,121,112,97,118,105,102],4))x="avif";
if(l(m,[102,116,121,112,105,115,111,109],4))x="mp4";if(l(m,[102,116,121,112,109,112,52,50],4))x="mp4";
if(l(m,[0,255,75,65]))x="afphoto";if(l(m,[120]))x="pxd";if(l(m,[80,68,78,51]))x="pdn";if(l(m,[103,105,109,112,32,120,99,102,32]))x="xcf";
if(l(m,[102,105,103,45,107,105,119,105]))x="fig";if(l(m,[137,80,78,71,13,10,26,10])){x="png";var o=8;
while(o<m.length){var G=g.n(m,o);o+=4;var _=g.cS(m,o,4);o+=4;if(_=="mkTS")x="fpng";o+=G+4}}if(l(m,[87,76]))x="cdr";
if(l(m,[82,73,70,70])){var j=di.st(m),U=j.Lk;if(U=="WEBP")x="webp";else if(U.slice(0,3)=="CDR")x="cdr";
else x=U}if(l(m,[70,79,82,77])||l(m,[76,73,83,84])||l(m,[67,65,84,32])){var j=hx.st(m),U=j.Lk;if(U=="ILBM")x="ilbm";
else x=U}if(l(m,[255,216,255]))x="jpg";if(l(m,[0,0,0,12,106,80,32,32]))x="jpg";if(l(m,[48,0,1,0],4))x="jb2";
if(l(m,[71,73,70,56]))x="gif";if(l(m,[0,0,0,2,121,102,113,76]))x="msh";if(l(m,[0,0,0,3,121,102,113,76]))x="msh";
if(l(m,[0,0,0,16]))x="atn";if(l(m,[0,1]))x="aco";if(l(m,[0,2]))x="aco";if([0,1].indexOf(m[1])!=-1&&[1,2,3,9,10,11].indexOf(m[2])!=-1&&[0,16,24,32].indexOf(m[7])!=-1)x="tga";
if(l(m,[0,2,56,66,83,76]))x="asl";if(l(m,[0,1,0,-1,0,2,0]))x="abr";if(l(m,[0,2,0,-1,0,2,0]))x="abr";
if(l(m,[0,6,0,1]))x="abr";if(l(m,[0,6,0,2]))x="abr";if(l(m,[0,7,0,2]))x="abr";if(l(m,[0,9,0,2]))x="abr";
if(l(m,[0,10,0,2]))x="abr";if(l(m,[56,66,70,83]))x="shc";if(l(m,[56,66,80,84]))x="pat";if(l(m,[56,66,71,82]))x="grd";
if(l(m,[56,66,84,80]))x="tpl";if(l(m,[0,4,0,5]))x="acv";if(l(m,[99,117,115,104]))x="csh";if(l(m,[0,1,0,0,0]))x="otf";
if(l(m,[79,84,84,79]))x="otf";if(l(m,[116,116,99,102]))x="otf";if(l(m,[68,68,83,32]))x="dds";if(l(m,[80,86,82,3]))x="pvr";
if(l(m,[86,84,70,0]))x="vtf";if(l(m,[83,73,77,80]))x="fits";if(l(m,[0,0,1,0]))x="ico";if(l(m,[66,77]))x="bmp";
if(l(m,[40,0,0,0]))x="bmp";if(l(m,[80,49]))x="ppm";if(l(m,[80,50]))x="ppm";if(l(m,[80,51]))x="ppm";if(l(m,[80,52]))x="ppm";
if(l(m,[80,53]))x="ppm";if(l(m,[80,54]))x="ppm";if(l(m,[73,73,42,0]))x="tiff";if(l(m,[77,77,0,42]))x="tiff";
if(l(m,[70,85,74,73,70,73,76,77]))x="raf";if(l(m,[112]))x="lif";if(l(m,[73,73,26,0]))x="ciff";if(l(m,[83,81,76,105]))x="sketch";
if(l(m,[80,75])){var S=UZIP.parse(s,!0);if(S["document.json"])x="sketch";else if(S.manifest)x="xd";else x="zip"}if(l(m,[123]))x="json";
if(g.n(m,0)==m.length)x="icc";if(l(m,[35]))x="icc";if(l(m,[84,73,84,76],a))x="icc";if(l(m,[76,85,84,95],a))x="icc";
if(l(m,[60,63,120,109],a)){if(g.FA(m,"<look>")!=-1)x="icc";else x="svg"}if(l(m,[60,115,118,103],a))x="svg";
if(l(m,[60,33,100,111],a)||l(m,[60,33,68,79],a)){if(g.FA(m,"<svg")!=-1)x="svg";else x="html"}if(l(m,[37,33])||l(m,[197,208,211,198])){if(g.FA(m,"%AI9_PrivateDataBegin")!=-1||g.FA(m,"%AI5_BeginLayer")!=-1)x="ai";
else x="eps"}if(l(m,[37,80,68,70],a)){if(g.FA(m,"/AIMetaData ")!=-1)x="ai";else x="pdf"}else if(l(m,[10,69,79,70],P-3))x="dxf";
if(l(m,[1,0,9,0]))x="wmf";if(l(m,[215,205,198,154]))x="wmf";if(l(m,[1,0,0,0]))x="emf";if(l(m,[118,47,49,1]))x="exr";
if(l(m,[10,10,10,10]))x="jsx";if(l(m,[77,90]))x="exe";if(x==null&&L.raw.Z9(m.length)!=null)return"tiff";
return x};iO.mp=function(s,m,l){if(l==null)l=0;for(var C=0;C<m.length;C++)if(m[C]!=-1&&s[l+C]!=m[C])return!1;
return!0};iO.ln=function(s){var m={BMP:iO.a0R,CDR:iO._1,DDS:iO.g3,EMF:iO.zX,DXF:iO.Bz,EPS:iO.Jz,FIG:iO.Xm,FPNG:iO.Uf,GIF:iO.uD,ICO:iO.A5,ILBM:iO.d4,FITS:iO.nP,EXR:iO.Hd,JPG:iO.Tn,LIF:iO.So,PDF:iO.cB,PDN:iO.lT,PNG:iO.I_,PPM:iO.pT,PSD:iO.iP,PXD:iO.XK,RAF:iO.wk,RAW:iO.XP,SKETCH:iO.IY,SVG:iO.VY,TGA:iO.sR,AVIF:iO.aiB,TIFF:iO.sA,VTF:iO.uM,WEBP:iO.vL,WMF:iO.rq,XCF:iO.iO,XD:iO.bu,EXE:iO.VB,AI:iO.Ua,AFPHOTO:iO.M1,MP4:iO.a7o};
return m[s.toUpperCase()]};iO.m_=function(C){var s=iO.hb.aki,m=iO.hb.ag8,l,x=[];if(C==null)l=s.concat(m);
else l=C==0?s:m;for(var C=0;C<l.length;C++)if(iO.ln(l[C]).yd)x.push(l[C]);return x};iO.a5f=function(){var s;
function m(x){var a=x.target,P=a.width,o=a.height,G=document.createElement("canvas");G.width=P;G.height=o;
var _=G.getContext("2d");_.drawImage(a,0,0);s({Sb:new bU(0,0,P,o),data:_.getImageData(0,0,P,o).data.buffer})}function l(x,a,P){s=P;
var o=document.createElement("img");o.onload=m;o.src="data:"+a+";base64,"+iO.pB(x)}return l}();iO.$B=function(s,m,l,x,a){var P=iO.kI(s,m,l,x,a),o=iO.HM(P);
return o.buffer};iO.HM=function(s){var m=atob(s.split(",").pop()),l=new Uint8Array(m.length);for(var C=0;
C<m.length;C++)l[C]=m.charCodeAt(C);return l};iO.kI=function(s,m,l,x,a,P){if(!(s instanceof ArrayBuffer))throw"e";
if(x==null)x="png";if(x=="png"&&P==!0){var o=iO.ln("PNG").yd([[s,0]],m,l);return"data:image/png;base64,"+iO.pB(o)}var G=iO.g9;
if(G==null)G=iO.g9=document.createElement("canvas");if(G.width!=m||G.height!=l){G.width=m;G.height=l}var _=G.getContext("2d"),j=new ImageData(new Uint8ClampedArray(s,0,m*l*4),m,l);
_.putImageData(j,0,0);return G.toDataURL("image/"+x,a)};iO.a7B=function(s,m,l,x,a){if(a==null)a=0;var P="<defs> \t<filter id=\"sofGlow\" height=\"300%\" width=\"300%\" x=\"-75%\" y=\"-75%\"> \t\t<!-- Thicken out the original shape --> \t<feMorphology operator=\"dilate\" radius=\"3\" in=\"SourceAlpha\" result=\"thicken\" /> \t\t<!-- Use a gaussian blur to create the soft blurriness of the glow -->\t\t<feGaussianBlur in=\"thicken\" stdDeviation=\"4\" result=\"blurred\" />\t\t<!-- Change the colour -->\t\t<feFlood flood-color=\"rgb(255,255,255)\" result=\"glowColor\" />\t\t<!-- Color in the glows -->\t\t<feComposite in=\"glowColor\" in2=\"blurred\" operator=\"in\" result=\"softGlow_colored\" />\t\t<!--\tLayer the effects together -->\t\t<feMerge>\t\t\t<feMergeNode in=\"softGlow_colored\"/>\t\t\t<feMergeNode in=\"SourceGraphic\"/>\t\t</feMerge>\t</filter></defs>",o="<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"128\" height=\"128\"> "+P+"<g transform=\"translate(64 64) scale("+.25+")\">";
if(s==1)o+="<g transform=\"scale(0.07 0.07) translate(-550 -112)\" style=\"fill:#ffffff; stroke:#000000; stroke-width:60px;\">"+"<path d=\"m 555.1899,112.08836 0,120.71094 0,920.7109 232.42188,-232.42184 111.90429,270.44924 169.76363,-84.8828 -114.09371,-273.8555 320.71481,0 z\"/>"+"</g>";
o+="<g filter=\"url(#sofGlow)\"><image transform=\"rotate("+a+")\" xlink:href=\""+m+"\" x=\""+80*l+"\" y=\""+80*x+"\" height=\"80\" width=\"80\"/></g>"+"</g>"+"</svg>";
var G=new Uint8Array(o.length);g.v_(o,G,0);var _="data:image/svg+xml;base64,"+iO.pB(G.buffer);return{CI:_,Bv:new bU(0,0,128,128),R_:new fz(64,64)}};
iO.pB=function(s){var m=new Uint8Array(s),l="";for(var C=0;C<m.length;C++)l+=String.fromCharCode(m[C]);
return btoa(l)};iO.abw=function(s){var m=atob(s),l=m.length,x=new Uint8Array(l);for(var C=0;C<l;C++)x[C]=m.charCodeAt(C);
return x.buffer};iO.H7=function(s){var m=[],l=[];for(var C=0;C<s.G.length;C++){var x=s.G[C];if(x.getName().slice(0,3)=="_a_"){m.push(C);
l.push(x.p$())}}return[m,l]};iO.rJ=function(s,m,l,x,a,P){if(l==null)l=s.e;if(x==null)x=s.l;var o=new bU(0,0,s.e,s.l),G=new ae(l/(s.e+.001),0,0,x/(s.l+.001),0,0),j;
m=m.toUpperCase();var _=iO.ln(m);if(_.Kw){s.cf();j=_.yd(s,l,x,a,P)}else{var U=iO.H7(s),S=U[0],X=U[1],c=null;
if(s.$_.length!=0){c=[];for(var C=0;C<s.$_.length;C++)c.push(s.$_[C].dG(o))}if(S.length<2){var y;if(l==s.e&&x==s.l)y=s.cf().buffer;
else{var O=r.Q.ea([s.cf(),o],G);y=O.buffer.buffer;if(c){var p=L.B(o.k()*4);for(var C=0;C<c.length;C++){L._Y(c[C],p,3);
var O=r.Q.ea([p,o],G),D=c[C]=L.B(O.rect.k());L.hy(O.buffer,D,3)}}}j=_.yd([[y,0,s.sz,s.l1,c]],l,x,a)}else{var f=[];
for(var C=0;C<S.length;C++){var T=S[C],y;for(var I=0;I<S.length;I++)s.G[S[I]].tG(S[I]==T);s.Bi();s.F();
s.nZ();if(l==s.e&&x==s.l)y=s.cf().buffer.slice(0);else{var O=r.Q.ea([s.cf(),o],G);y=O.buffer.buffer}var H=s.G[T].getName().split(",");
f.push([y,H[1]?parseInt(H[1]):100,s.sz,s.l1,c])}for(var C=0;C<S.length;C++)s.G[S[C]].tG(X[C]);s.F();
s.nZ();if(a){var b=a.length,R=a[b-2],W=a[b-1],J=a[b-4]/100;if(J!=1)for(var C=0;C<f.length;C++)f[C][1]=Math.round((f[C][1]==0?16:f[C][1])/J);
if(R)f.reverse();if(W){var u=f.slice(1,f.length-1);u.reverse();f=f.concat(u)}}j=_.yd(f,l,x,a)}}return j};
iO.mt=function(s,m){var l=m[0].lh&&m[0].lh.startsWith("_a_"),x,a=new jF(s+".psd"),P=new bU(0,0,1,1);
if(l){x=a.d2();x.add.lsct=hN.yF;x.qW(s);x.TR="pass";x.Yy=24;x.tG(!0);a.G.push(a.b8())}for(var C=0;C<m.length;
C++){var o=m[C];P=P.if(o.Sb);var G=a.d2();G.tG(C==0);G.qW(m.length==1?"Background":"Layer "+C);if(C==0&&o.sz)a.sz=o.sz;
if(C==0&&o.l1)a.l1=o.l1;if(o.lh)G.qW(o.lh);if(o.op)for(var C=0;C<o.op.length;C++){var _=o.op[C],j=jF.Fu(_[0]);
j.add.vmsk.T=_[1];L.j.G9(_[1],new ae(P.e,0,0,P.l,0,0));a.sj.push(j)}G.rect=o.Sb.clone();G.buffer=new Uint8Array(o.data);
L.vb(G);a.G.push(G)}if(l)a.G.push(x);if(m[0].$_){for(var C=0;C<m[0].$_.length;C++){var U=new t.K0;a.$_.push(U);
U.rect=m[0].Sb.clone();U.channel=m[0].$_[C]}}a.N=[l?a.G.length-1:0];a.e=P.e;a.l=P.l;a.buffer=L.B(P.k()*4);
a.F();return a};iO.I_={};iO.I_.yd=function(s,m,l,x){if(x==null)x=[100,!1,0,0,0];var a={sRGB:1,loop:x[3]};
if(s[0][2]!=null){var P=Math.round(s[0][2]*(1e4/254));a.pHYs=[P,P,1]}var o=x[0],G=o==100?0:Math.max(2,Math.floor(o*5));
if(G==5)G=4;var _=[],j=[];for(var C=0;C<s.length;C++){_.push(s[C][0]);j.push(s[C][1])}var U=UPNG.encode(_,m,l,G,j,a,x[1]);
return U};iO.I_.ar0=function(s,m,l){return UPNG.encodeLL([s],m,l,3,1,8)};iO.I_.Gs=function(s){var m=Date.now(),l=UPNG.decode(s),x=UPNG.toRGBA8(l),a=l.width,P=l.height,o=0;
if(l.tabs.pHYs)o=Math.round(l.tabs.pHYs[0]*254/1e4);if(x.length==1)return[{Sb:new bU(0,0,a,P),data:x[0],sz:o}];
var G=[];for(var C=0;C<x.length;C++){G.push({lh:"_a_frm"+C+","+l.frames[C].delay,Sb:new bU(0,0,a,P),data:x[C],sz:o})}return G};
iO.pT={};iO.pT.yd=function(s,m,l,x){var a=new Uint8Array(s[0][0]),P=m*l,o=P*3,G="P6\n"+m+" "+l+"\n255\n",_=G.length,j=L.B(_+o,!0);
for(var C=0;C<_;C++)j[C]=G.charCodeAt(C);for(var C=0;C<P;C++){var U=C*4,S=C*3+_;j[S]=a[U];j[S+1]=a[U+1];
j[S+2]=a[U+2]}return j.buffer};iO.pT.Gs=function(s){s=new Uint8Array(s);var m=[" ".charCodeAt(0),"\n".charCodeAt(0),"\t".charCodeAt(0),"\r".charCodeAt(0)],l=0,x=String.fromCharCode(s[0])+String.fromCharCode(s[1]),a=[],P=0,o=x=="P1"||x=="P4"?2:3;
for(l=2;l<s.length;l++){var G=s[l],_=String.fromCharCode(G);if(G=="#".charCodeAt(0)){while(s[l]!="\n".charCodeAt(0))l++;
continue}var j=m.indexOf(G)!=-1;if(P==0&&!j){a.push(_);P=1;continue}if(P==1&&!j){a[a.length-1]+=_;continue}if(P==1&&j){P=0;
if(a.length==o)break;continue}}var U=parseInt(a[0]),S=parseInt(a[1]),X=U*S*4,c=x=="P1"||x=="P4"?1:255/parseInt(a[2]),y=L.B(X);
if(x=="P1"||x=="P2"||x=="P3"){var O="",p=0,P=0,D="#".charCodeAt(0);for(var C=l;C<s.length;C++){var G=s[C],_=String.fromCharCode(G),j=m.indexOf(G)!=-1;
if(G==D){while(s[C]!="\n".charCodeAt(0))C++}else if(P==0&&!j){O=_;P=1}else if(P==1){if(j){P=0;var f=parseInt(O);
O="";if(x=="P1"){y[p]=y[p+1]=y[p+2]=(1-f)*255;y[p+3]=255;p+=4}if(x=="P2"){y[p]=y[p+1]=y[p+2]=Math.round(f*c);
y[p+3]=255;p+=4}if(x=="P3"){y[p]=Math.round(f*c);p++;if((p&3)==3){y[p]=255;p++}}}else O+=_}}}var T=U*S;
if(x=="P4")for(var I=0;I<S;I++){var H=I*8*Math.ceil(U/8);for(var b=0;b<U;b++){var C=H+b,R=s[l+1+(C>>3)];
R=R>>7-(C&7)&1;var W=I*U+b<<2;y[W]=y[W+1]=y[W+2]=(1-R)*255;y[W+3]=255}}if(x=="P5")for(var C=0;C<T;C++){var W=4*C;
y[W]=y[W+1]=y[W+2]=Math.round(s[l+1+C]*c);y[W+3]=255}if(x=="P6")for(var C=0;C<T;C++){var W=4*C,J=l+1+3*C;
y[W]=Math.round(s[J]*c);y[W+1]=Math.round(s[J+1]*c);y[W+2]=Math.round(s[J+2]*c);y[W+3]=255}return[{Sb:new bU(0,0,U,S),data:y.buffer}]};
iO.g3={};iO.g3.yd=function(s,m,l,x){if(x==null)x=[!0,!0];var a=new Uint8Array(s[0][0]),P=m&3,o=l&3;if(P!=0||o!=0){var G=m+(P==0?0:4-P),_=l+(o==0?0:4-o),j=new Uint8Array(G*_*4);
L.MP(j,4278190080);L.yx(a,new bU(0,0,m,l),j,new bU(0,0,G,_));a=j;m=G;l=_}var U=UTEX.DDS.encode(a.buffer,m,l,x);
if(!1){var S=UTEX.DDS.decode(U)[0],j=new Uint8Array(S.H6),X=0;for(var C=0;C<a.length;C++){var c=a[C]-j[C];
X+=c*c}console.log(X)}return U};iO.g3.Gs=function(s){var m=UTEX.DDS.decode(s)[0];return[{Sb:new bU(0,0,m.width,m.height),data:m.image}]};
iO.uM={};iO.uM.Gs=function(s){var m=UTEX.VTF.decode(s).pop();return[{Sb:new bU(0,0,m.width,m.height),data:m.image}]};
iO.Tn={};iO.Tn.jx=null;iO.Tn.acx=function(s,m){var l=iO.Tn.jx,x=s.byteLength,a=m.width,P=m.height,o=a*P,G=5e6+2*x+o*(m.progressive?Math.max(2,m.numComponents)*4+1:8),_=l.instance.exports;
iO.wC(_,G);var j=new Uint8Array(_.memory.buffer),U=_.malloc(x);j.set(new Uint8Array(s),U);var S=_.malloc(4),X=_.malloc(4),cE=_.malloc(4),c=_.stbi_load_from_memory(U,x,S,X,cE,4);
_.free(U);_.free(S,X,cE);_.free(c);var y=j.slice(c,c+o*4);return y};(function(){var s=iO.L0.get("wasm/jpg").buffer;
if(window.WebAssembly==null)window.alert("Your browser is too old. Please, update it.");WebAssembly.instantiate(s).then(function(m){iO.Tn.jx=m})}());
iO.Tn.yd=function(s,m,l,x){if(x==null)x=[70];var a=s[0],P=new Uint8Array(a[0]);if(L.pl(P)){var o=new Uint8Array(P.length),G=new bU(0,0,m,l);
L.MP(o,4294967295);L.a.$P("norm",P,G,o,G,G,1);P=o}var _=new Uint8Array(iO.$B(P.buffer,m,l,"jpeg",x[0]/100));
if(a[2]!=null){var j=iO.Tn.hQ(_)[224][0]+2;j+=9;_[j]=1;g.yG(_,j+1,a[2]);g.yG(_,j+3,a[2])}if(a[3]!=null&&x[1]==!0&&Object.keys(a[3]).length!=0){var U=0,S=0,X=0,c=bs.Eu(a[3]),y=new Uint8Array(UTIF.encode([c])),O="http://ns.adobe.com/xap/1.0/",T=0,b=0,e=20;
U=4+6+y.length;var p=bs.al4(a[3]),D=g.iG(p);S=4+O.length+1+D.length;var f=bs.a3S(a[3]);for(var C=0;C<f.length;
C++)T+=5+f[C][1].length;var I=T+(T&1),H=L.B(14+4+2+4+I);g.bG(H,b,"Photoshop 3.0");b+=14;g.bG(H,b,"8BIM");
b+=4;H[b++]=4;H[b++]=4;b+=2;g.ML(H,b,T);b+=4;for(var C=0;C<f.length;C++){var R=f[C],W=R[1];H[b++]=28;
H[b++]=2;H[b++]=R[0];g.yG(H,b,W.length);b+=2;g.bG(H,b,W);b+=W.length}X=4+H.length;var J=U+S+X,u=new Uint8Array(_.length+J);
for(var C=0;C<20;C++)u[C]=_[C];for(var C=20;C<_.length;C++)u[C+J]=_[C];u[e]=255;u[e+1]=225;g.yG(u,e+2,U-2);
g.bG(u,e+4,"Exif");for(var C=0;C<y.length;C++)u[e+10+C]=y[C];e+=U;u[e]=255;u[e+1]=225;g.yG(u,e+2,S-2);
g.bG(u,e+4,O);for(var C=0;C<D.length;C++)u[e+4+O.length+1+C]=D[C];e+=S;u[e]=255;u[e+1]=237;g.yG(u,e+2,X-2);
for(var C=0;C<H.length;C++)u[e+4+C]=H[C];e+=X;_=u}return _.buffer};iO.Tn.hQ=function(s){var m=0,l=[],x=s.length;
while(m<x){while(s[m]!=255&&m<x)m++;while(s[m]==255)m++;var a=s[m];m++;if(l[a]==null)l[a]=[];l[a].push(m-2);
if(a==216)continue;if(a==217)break;if(224<=a&&a<=239||a==218||a==219||a==192||a==193||a==194||a==196||a==221||a==254){var P=g.hi(s,m);
m+=P;if(a==218)while(m<x&&(s[m]!=255||(s[m+1]==0||208<=s[m+1]&&s[m+1]<=215)))m++;continue}console.log("unknown marker ",a.toString(16),m);
break}if(l[217]==null){console.log("EOI marker missing");var o=s.length-2;s[o]=255;s[o+1]=217;l[217]=[o]}return l};
iO.Tn.an9=function(s){s=new Uint8Array(s);if(s[0]!=255)return s.buffer;var m=iO.Tn.hQ(s),l=iO.Tn.IH(s,m);
if(l.numComponents!=4)return s.buffer;var x=l.width,a=l.height,P=iO.Tn.kY(s,m,!0);return iO.Tn.yd([[P[0].data]],x,a,[85])};
iO.Tn.IH=function(s,m){var l=(m[192]?m[192]:m[193]?m[193]:m[194])[0]+4,x={};x.progressive=m[194]!=null;
x.precision=s[l];l++;x.height=g.hi(s,l);l+=2;x.width=g.hi(s,l);l+=2;x.numComponents=s[l];l++;if(m[224]){var a=x.jfif={};
l=m[224][0]+2+2+5+2;a.densityUnits=s[l];l++;a.xDensity=g.hi(s,l);l+=2;a.yDensity=g.hi(s,l);l+=2}if(m[238]){var a=x.adobe={};
l=m[238][0]+2+2+6;a.version=s[l];l++;a.flags0=g.hi(s,l);l+=2;a.flags1=g.hi(s,l);l+=2;a.transform=s[l];
l++}return x};iO.Tn.a7F=function(s,m,l){var x=m,a=g.hi(s,x);x+=2;var P=g.cS(s,x,4);if(P=="Exif"){x+=6;
var o=s.slice(x,x+a-8),G;try{G=UTIF.decode(o.buffer,{parseMN:!1,debug:!1})}catch(iX){}if(G)l.exif=G}else if(P=="http"){var _=0;
while(s[x+_]!=0)_++;var j=g.cS(s,x,_);x+=_+1;if(j=="http://ns.adobe.com/xmp/extension/"){var U=g.cS(s,x,32);
x+=32;x+=8;var S=m+a-x;while(s[x+S-1]==0)S--;if(l.xmp_extn==null)l.xmp_extn="";try{l.xmp_extn+=g.V_(s,x,S)}catch(iX){}}else if(j=="http://ns.adobe.com/xap/1.0/"){var X=g.V_(s.slice(x,x+a-_-3));
if(X[0]=="?")X="<"+X;l.xmp=X}}else console.log(P)};iO.Tn.kY=function(s,m,l){var x=iO.Tn.IH(s,m),a=x.width,P=x.height,o=a*P,G,_=-1,O=72,p;
if(x.adobe)_=x.adobe.transform;if(l||a*P>15e7||_==0||_==2){var j=new PDFJS.JpegImage;j.parse(s);var U=j.getData({width:a,height:P,forceRGB:!0,isSourcePDF:l}),G=L.B(o*4);
for(var C=0;C<o;C++){var S=C<<2,X=S-C;G[S]=U[X];G[S+1]=U[X+1];G[S+2]=U[X+2];G[S+3]=255}}else{G=iO.Tn.acx(s.buffer,x)}var c=m[225];
if(c)for(var C=0;C<c.length;C++)iO.Tn.a7F(s,c[C]+2,x);var y=m[217][0]+2;if(y!=s.length)x.suffix=s.slice(y);
var D=[a,P,1,0,0,0,1,0];if(x.jfif&&x.jfif.densityUnits!=0){O=Math.round([72,1,2.54][x.jfif.densityUnits]*x.jfif.xDensity)}else if(x.exif&&x.exif[0].t282!=null){var f=x.exif[0].t282[0];
O=f[0]/f[1]}if(x.exif){var T=x.exif;p=bs.pD(T[0]);var I=T[0].t274;if(I)I=I[0];if(I!=null&&I>1&&I<20)D=L.raw.PN(I,a,P)}if(x.xmp){p=bs.afM(x.xmp,p)}var H=m[237],b=[],R=[];
if(H){var W=new Uint8Array(65536),J=0,u=0;for(var C=0;C<H.length;C++){u=H[C]+2;var e=u+g.hi(s,u);u+=2;
var Q=u;while(s[u]!=0)u++;u++;var q=g.cS(s,Q,u-Q-1),Z=e-u;while(J+Z>W.length){var E=new Uint8Array(W.length*2);
E.set(W);W=E}var z=new Uint8Array(s.buffer,u,Z);W.set(z,J);J+=Z}u=0;s=W;while(u<J){var V=g.cS(s,u,4);
u+=4;var Y=g.hi(s,u);u+=2;var d=s[u++],w=g.cS(s,u,d);u+=d;if((d&1)==0)u++;var A=g.n(s,u);u+=4;var y=u+A+(A&1);
if(Y==1028){while(u+4<y){var $=s[u++],i=s[u++],K=s[u++],h=g.hi(s,u);u+=2;if($==28&&i==2)b.push([K,g.cS(s,u,h)]);
u+=h}}else if((Y&2e3)==2e3){var F=b_.kx(s,u,A);R.push([w,F])}else{}u=y}if(b.length!=0)p=bs.a5B(b,p)}var N=[{Sb:new bU(0,0,a,P),data:G.buffer,sz:O,l1:p,op:R.length==0?null:R}],p=x.xmp_extn;
if(p){var iQ=new DOMParser,jB=iQ.parseFromString(p,"image/svg+xml"),jB=jB.children[0].children[0].children[0],k=[jB.getAttribute("GImage:Data"),jB.getAttribute("GDepth:Data")];
for(var C=0;C<k.length;C++)if(k[C]){var ab=atob(k[C]),f_=new Uint8Array(ab.length);g.bG(f_,0,ab);f_=f_.buffer;
var fc=iO.D1(f_),g8=iO.ln(fc).Gs(f_);N.push(g8[0])}}if(x.suffix){var bH=x.suffix,cR=g.cS(bH,4,4),hr=g.FA(bH,String.fromCharCode(255)+String.fromCharCode(216)+String.fromCharCode(255));
if(iO.mp(bH,[0,0,1,10,14,0,0,0])){var u=0;while(u!=bH.length){var h$=g.CP(bH,u+2);u+=4;var gE={2272:12,2320:21,2561:13,2625:21,2721:3,2608:0}[h$];
if(gE!=null){var d8=g.Cu(bH,u);u+=4;var hG=g.cS(bH,u,d8);u+=d8;var f7=g.cS(bH,u,gE);u+=gE;if(h$==2608){var hX=g.n(bH,u+24);
u+=hX+24;var fB=g.n(bH,u);u+=fB;alert("Photopea found a "+hw.Ln(hX)+" MP4 video inside your image.",4e3)}}else if(h$==18502){while(g.cS(bH,u,4)!="SEFT")u+=4;
u+=4}else{break;console.log(g.jp(bH,u,128));console.log(bH.slice(u));throw h$.toString(16)}}}else if(cR=="ftyp"){alert("Photopea found a "+hw.Ln(bH.length)+" MP4 video inside your image.",4e3)}else if(g.cS(bH,0,4)=="fixe"){alert("Unknown data - "+bH.length+" B - at the end of the file",3e3);
var u=4,A=g.Cu(bH,u);u+=4;var e5=g.Cu(bH,u);u+=4;var g9=g.Cu(bH,u);u+=4;console.log(A,e5,g9,bH.slice(u,u+84));
u+=84;var cL=g.cS(bH,u,32);u+=32;u+=8;var cL=g.cS(bH,u,32);u+=32}else if(g.cS(bH,8,13)=="FocusShot_Map"){var bf=g.n(bH,0),h=g.Cu(bH,4),f_=L.B(o*4),gF=L.B(o*4);
for(var iC=0;iC<P;iC++)for(var ax=0;ax<a;ax++){var C=iC*a+ax,S=C<<2,e7=8+13+((iC>>>1)*a+ax>>>1),dO=bH[e7],h1=bH[e7+(o>>>2)];
f_[S]=f_[S+1]=f_[S+2]=dO;f_[S+3]=255;gF[S]=gF[S+1]=gF[S+2]=h1;gF[S+3]=255}N.push({Sb:new bU(0,0,a,P),data:f_.buffer},{Sb:new bU(0,0,a,P),data:gF.buffer})}else if(cR=="edof"){var I=bH[8+7];
console.log(I.toString(16));var u=8+16,hL=g.CP(bH,u),jl=g.CP(bH,u+2),o=hL*jl;u+=4;u+=32+16;var gT=L.B(o*4);
for(var C=0;C<o;C++){var S=C<<2;gT[S]=gT[S+1]=gT[S+2]=bH[u+C];gT[S+3]=255}if(I==16){}else if(I==19){var hZ=gT.slice(0);
L.V.mP(gT,hZ,hL,jl);var j6=hL;hL=jl;jl=j6;L.V.abe(hZ,gT,hL,jl)}else throw"Unknown orientation of a depth map";
N.push({Sb:new bU(0,0,hL,jl),data:gT.buffer})}else if(hr!=-1&&!(bH[0]==255&&bH[1]==129)){try{if(hr!=0)bH=bH.slice(hr);
var g8=iO.ln("jpg").Gs(bH.buffer);for(var C=0;C<g8.length;C++)N.push(g8[C])}catch(iX){}}}if(N.length>1){var aP=N[0].Sb;
N[0].lh="Main";for(var C=1;C<N.length;C++){N[C].lh=iO.Tn.a2p(new Uint8Array(N[C].data))?"Depth Map":null;
var h7=N[C].Sb;if(!h7.yb(aP)){var fa=aP.e/h7.e,h4=aP.l/h7.l,cA=new ae;cA.scale(fa,h4);var jg=r.Q._i([new Uint8Array(N[C].data),h7],1,L.V.$D(cA));
N[C].Sb=jg.rect;N[C].data=jg.buffer}}}if(iO.Tn.lB==1)if(D[2]!=1||D[6]!=1)for(var C=0;C<N.length;C++){var cS=N[C],iT=new Uint8Array(cS.data),a=cS.Sb.e,P=cS.Sb.l,hL=D[0],jl=D[1],G=L.B(hL*jl*4);
L.V.yK(iT,a,P,G,D);cS.Sb=new bU(0,0,hL,jl);cS.data=G.buffer}return N};iO.Tn.a2p=function(s){var m=!0;
for(var C=0;C<s.length;C+=4){m=m&&s[C]==s[C+1]&&s[C+1]==s[C+2]}return m};iO.Tn.lB=0;iO.Tn.Gs=function(s,m,l){s=new Uint8Array(s);
if(s[0]==255){var x=iO.Tn.hQ(s);if(x[195]==null){iO.Tn.lB++;var a=iO.Tn.kY(s,x,!1);iO.Tn.lB--;return a}var P=g.hi(s,x[195][0]+5),o=g.hi(s,x[195][0]+7),G=UTIF.LosslessJpegDecode(s),_=o*P,j=L.B(_*4);
for(var C=0;C<_;C++){var U=C<<2,S=U-C;j[U]=G[S];j[U+1]=G[S+1];j[U+2]=G[S+2];j[U+3]=255}return[{Sb:new bU(0,0,o,P),data:j.buffer}]}else if(s[0]==0&&s[4]==48&&s[6]==1){var X=s,c=new PDFJS.Jbig2Image,y=[];
if(m)y.push({data:m,start:0,end:m.length});y.push({data:X,start:0,end:X.length});var G=c.parseChunks(y);
if(!l)for(var C=0;C<G.length;C++)G[C]=~G[C];var o=g.n(s,11),P=g.n(s,15),O=Math.ceil(o/8),p=L.B(o*P*4);
for(var D=0;D<P;D++){var f=D*O;for(var T=0;T<o;T++){var U=(D*o+T)*4,I=G[f+(T>>>3)]>>>7-(T&7)&1,H=I*255;
p[U]=H;p[U+1]=H;p[U+2]=H;p[U+3]=255}}return[{Sb:new bU(0,0,o,P),data:p.buffer}]}else{var c=new PDFJS.JpxImage;
c.parse(s);var o=c.width,P=c.height,b=c.tiles,R=c.componentsCount,W=new Uint8Array(o*P*4),J=new bU(0,0,o,P);
for(var c=0;c<b.length;c++){var u=b[c],e=u.width,Q=u.height,q=e*Q,Z=u.items,E=new bU(u.left,u.top,e,Q),z=new Uint8Array(q*4);
if(R==1)for(var C=0;C<q;C++){var V=Z[C],U=C*4;z[U]=V;z[U+1]=V;z[U+2]=V;z[U+3]=255}else if(R==3)for(var C=0;
C<q;C++){var S=C*3,U=C*4;z[U]=Z[S];z[U+1]=Z[S+1];z[U+2]=Z[S+2];z[U+3]=255}else console.log("Unknown number of components: "+R);
L.yx(z,E,W,J)}return[{Sb:J,data:W.buffer}]}};iO.vL={};iO.vL.yd=function(s,m,l,x){if(x==null)x=[70,0,0,0];
var a=x[0]/100,_=0;if(s.length==1)return iO.$B(s[0][0],m,l,"webp",a);var P=g.Gj,o=g.FH,G=new bm;P(G,_,"RIFF WEBPVP8X");
_+=16;o(G,_,10);_+=4;o(G,_,18);_+=4;o(G,_,m-1);_+=3;o(G,_,l-1);_+=3;P(G,_,"ANIM");_+=4;o(G,_,6);_+=4;
G.bY(_,4);G.data[_+3]=255;g.K2(G,_+4,x[2]);_+=6;var j=[];for(var C=0;C<s.length;C++){j.push(s[C][0])}var U=UPNG.encode.compress(j,m,l,a==1?0:Math.max(2,Math.floor(a*500)),[!1,!0,!0,0,!0]).frames;
for(var C=0;C<s.length;C++){P(G,_,"ANMF");_+=4;var S=_;_+=4;var X=U[C],c=X.rect,y=[c.x>>>1,c.y>>>1,c.width-1,c.height-1,s[C][1]];
for(var O=0;O<5;O++)o(G,_+3*O,y[O]);_+=15;G.bY(_,1);G.data[_]=1-X.blend<<1|X.dispose;_++;var p=new Uint8Array(iO.$B(X.img.buffer,c.width,c.height,"webp",1)),D=di.st(p.buffer).sub,f=g.cS(p,12,4);
if(f!="VP8L"&&f!="VP8 "&&f!="VP8X")throw"e";var T=f=="VP8 "?0:f=="VP8L"?12:30,I=p.length-T;G.bY(_,I);
for(var O=0;O<I;O++)G.data[_+O]=p[T+O];_+=I;var H=_-S-4;o(G,S,H);if((H&1)==1){G.bY(_,1);_++}}o(G,4,_-8);
return G.data.slice(0,_).buffer};(function(){var s=iO.L0.get("wasm/webp").buffer;WebAssembly.instantiate(s).then(function(m){var l=m.instance.exports;
iO.vL.exp=l})}());iO.vL.Gs=function(s){var m=new Uint8Array(s),l=iO.vL.aai,x=null,a=di.st(s).sub,P={};
for(var C=0;C<a.length;C++)P[a[C].te]=a[C];var o=P.ANIM,G=P.VP8L,_=P["VP8 "],j=P.VP8X;if(o==null){var U,S;
if(_){U=g.CP(m,_.X+6);S=g.CP(m,_.X+8)}else if(G){var X=g.Cu(m,G.X+1);U=(X&(1<<14)-1)+1;S=(X>>>14&(1<<14)-1)+1}else throw"e";
var c=[l(x,s,{X:0,size:m.length},U,S)];return c}var y=j.X,U=1+(g.Cu(m,y+4)&16777215),S=1+(g.Cu(m,y+7)&16777215),O=[],p=new bU(0,0,U,S),D=L.B(U*S*4);
for(var C=0;C<a.length;C++){var f=a[C];if(f.te!="ANMF")continue;var T=[];for(var I=0;I<5;I++)T.push(g.Cu(m,f.X+I*3)&16777215);
var H=new bU(T[0]*2,T[1]*2,T[2]+1,T[3]+1),b=T[4],R=l(x,s,{X:f.X+16,size:f.size-16},U,S),W=new Uint8Array(R.data),J=m[f.X+15];
if(J>>>1==0)L.a.$P("norm",W,H,D,p,H,1);else L.yx(W,H,D,p);O.push({lh:"_a_"+O.length+","+b,Sb:p.clone(),data:D.buffer.slice(0)});
if((J&1)==1){L.MP(W,0);L.yx(W,H,D,p)}}return O};iO.vL.aai=function(s,m,l,x,a){var P=iO.vL.exp,o=P.memory,G=5e6+2*l.size+x*a*10;
iO.wC(P,G);var _=new Uint8Array(o.buffer),j=P.malloc(l.size);_.set(new Uint8Array(m,l.X,l.size),j);var U=P.malloc(8),S=P.WebPDecodeARGB(j,l.size,U,U+4),X=g.Cu(_,U),c=g.Cu(_,U+4),y=X*c*4,O=L.B(y);
for(var C=0;C<y;C+=4){O[C]=_[S+C+1];O[C+1]=_[S+C+2];O[C+2]=_[S+C+3];O[C+3]=_[S+C]}P.WebPFree(S);P.free(U);
P.free(j);return{Sb:new bU(0,0,X,c),data:O.buffer}};iO.a0R=function(){function s(G,_,j,U){var S=new Uint8Array(G[0][0]),X=new Uint32Array(S.buffer),c=[],y={},p=24,D=0,b=0;
for(var C=0;C<X.length;C++){var O=X[C]&16777215;if(y[O]==null){y[O]=c.length;c.push(O);if(c.length>256){c=null;
break}}}if(c){p=1;while(1<<p<c.length)p*=2;if(p==2)p=4}var f={h_:_,Cm:j,cE:1,yh:p,Ud:0,afl:D},T=4*Math.floor((f.yh*f.h_+31)/32);
f.size=T*f.Cm+2;var I=new bm,H=c?(1<<p)*4:0;g.Gj(I,b,"BM");b+=2;g.FH(I,b,T*j+16+40+H);b+=4;g.FH(I,b,0);
b+=4;g.FH(I,b,54+H);b+=4;I.bY(b,40);g.FH(I,b,40);b+=4;o(I.data,b,f,T);b+=36;if(c){I.bY(b,H);var R=I.data;
for(var C=0;C<c.length;C++){var W=b+C*4,J=c[C]>>>16,u=c[C]>>>8&255,e=c[C]&255;R[W]=J;R[W+1]=u;R[W+2]=e}b+=H}I.bY(b,T*j);
if(p==24)for(var Q=0;Q<j;Q++){var q=b+(j-1-Q)*T;for(var Z=0;Z<_;Z++){var E=(Q*_+Z)*4;I.data[q+Z*3+2]=S[E];
I.data[q+Z*3+1]=S[E+1];I.data[q+Z*3+0]=S[E+2]}}else if(p==8)for(var Q=0;Q<j;Q++){var q=b+(j-1-Q)*T;for(var Z=0;
Z<_;Z++){var E=Q*_+Z,z=y[X[E]&16777215];I.data[q+Z]|=z}}else if(p==4)for(var Q=0;Q<j;Q++){var q=b+(j-1-Q)*T;
for(var Z=0;Z<_;Z++){var E=Q*_+Z,z=y[X[E]&16777215];I.data[q+(Z>>>1)]|=z<<4-(Z&1)*4}}else if(p==1)for(var Q=0;
Q<j;Q++){var q=b+(j-1-Q)*T;for(var Z=0;Z<_;Z++){var E=Q*_+Z,z=y[X[E]&16777215];I.data[q+(Z>>>3)]|=z<<7-(Z&7)}}b+=T*j+2;
return I.data.slice(0,b).buffer}function m(G){G=new Uint8Array(G);if(g.Cu(G,0)==40)return[l(G.buffer,0)];
var _=0,j=g.cS(G,_,2);_+=2;if(j!="BM"){alert("Unsupported BMP format: "+j);return}var U=g.Cu(G,_);_+=4;
_+=4;var S=g.Cu(G,_);_+=4;return[l(G.buffer,_,S)]}function l(G,_,j){G=new Uint8Array(G);var U=g.Cu(G,_),S=P(G,_+4);
if(S.cE!=1)alert("unsupported number of color planes: "+S.cE);if(S.Ud!=0&&S.Ud!=1&&S.Ud!=2&&S.Ud!=3){alert("Unsupported BMP compression: "+S.Ud);
return}_+=U;var X=_,c=G;if(j==null)j=_;if(S.Ud==1||S.Ud==2){var y=a(G,j,S);S.yh=8;G=y;j=0}var O=4*Math.floor((S.yh*S.h_+31)/32),p=S.h_,D=Math.abs(S.Cm),f=new Uint8Array(p*D*4);
f.fill(255);if(S.yh==32)for(var T=0;T<D;T++){var I=j+(D-1-T)*O;for(var H=0;H<p;H++){var b=(T*p+H)*4;
f[b]=G[I+H*4+2];f[b+1]=G[I+H*4+1];f[b+2]=G[I+H*4+0];f[b+3]=G[I+H*4+3]}}else if(S.yh==24)for(var T=0;
T<D;T++){var I=j+(D-1-T)*O;for(var H=0;H<p;H++){var b=(T*p+H)*4;f[b]=G[I+H*3+2];f[b+1]=G[I+H*3+1];f[b+2]=G[I+H*3+0]}}else if(S.yh==16)for(var T=0;
T<D;T++){var I=j+(D-1-T)*O;for(var H=0;H<p;H++){var b=(T*p+H)*4,R=G[I+H*2+1]<<8|G[I+H*2];f[b]=(R>>>11)*(255/31);
f[b+1]=(R>>>5&63)*(255/63);f[b+2]=(R&31)*(255/31)}}else if(S.yh==8)for(var T=0;T<D;T++){var I=j+(D-1-T)*O;
for(var H=0;H<p;H++){var b=(T*p+H)*4,W=G[I+H];f[b]=c[X+4*W+2];f[b+1]=c[X+4*W+1];f[b+2]=c[X+4*W+0]}}else if(S.yh==4)for(var T=0;
T<D;T++){var I=j+(D-1-T)*O;for(var H=0;H<p;H++){var b=(T*p+H)*4,W=G[I+(H>>1)];W=W>>4-4*(H&1);W=W&15;
f[b]=c[X+4*W+2];f[b+1]=c[X+4*W+1];f[b+2]=c[X+4*W+0]}}else if(S.yh==1)for(var T=0;T<D;T++){var I=j+(D-1-T)*O;
for(var H=0;H<p;H++){var b=(T*p+H)*4,J=G[I+(H>>3)];J=J>>7-(H&7);J=J&1;f[b]=c[X+4*J+2];f[b+1]=c[X+4*J+1];
f[b+2]=c[X+4*J+0]}}else throw"Unknown bit depth "+S.yh;if(S.Cm<0){var u=new Uint32Array(f.buffer),e=D>>>1;
for(var T=0;T<e;T++){var Q=T*p,q=(D-T-1)*p;for(var H=0;H<p;H++){var Z=u[Q+H];u[Q+H]=u[q+H];u[q+H]=Z}}}return{Sb:new bU(0,0,p,D),data:f.buffer}}function x(G,C){return G>>>4-((C&1)<<2)&15}function a(G,_,j){var U=j.h_,S=Math.abs(j.Cm),X=new Uint8Array(U*S),c=0,y=0,C=0;
while(y<S){var O=G[_++],p=G[_++],D=y*U+c;if(O>0){if(j.yh==4)for(C=0;C<O;C++){X[D+C]=x(p,C)}else for(C=0;
C<O;C++){X[D+C]=p}c+=O}else if(O==0&&p==0){y++;c=0}else if(O==0&&p==1){break}else if(O==0&&p==2){c+=G[_++];
y+=G[_++]}else{var f=p;if(j.yh==4){for(C=0;C<p;C++){X[D+C]=x(G[_+(C>>>1)],C)}f=Math.ceil(p/2)}else{for(C=0;
C<p;C++){X[D+C]=G[_+C]}}if((f&1)!=0)f++;_+=f;c+=p}}return X}function P(G,_){var j=g.sf,U=g.Cu,S=g.CP,X={};
X.h_=j(G,_);_+=4;X.Cm=j(G,_);_+=4;X.cE=S(G,_);_+=2;X.yh=S(G,_);_+=2;X.Ud=U(G,_);_+=4;X.size=U(G,_);_+=4;
var c=j(G,_);_+=4;var y=j(G,_);_+=4;X.afl=U(G,_);_+=4;_+=4;return X}function o(G,_,j,U){g.oT(G,_,j.h_);
_+=4;g.oT(G,_,j.Cm);_+=4;g.FL(G,_,j.cE);_+=2;g.FL(G,_,j.yh);_+=2;g.oT(G,_,j.Ud);_+=4;g.oT(G,_,j.size);
_+=4;g.oT(G,_,2834);_+=4;g.oT(G,_,2834);_+=4;g.oT(G,_,j.afl);_+=4;_+=4}return{Gs:m,yd:s,aj1:l}}();iO.uD={};
iO.uD.yd=function(s,m,l,x){if(x==null)x=[100,!1,0,0,0,0];var a=[],P=[],o=m*l*4,O=null;for(var G=0;G<s.length;
G++){var _=new Uint8Array(s[G][0].slice(0));for(var C=0;C<o;C+=4){var j=_[C+3]=_[C+3]>127?255:0;if(j==0)_[C]=_[C+1]=_[C+2]=0}a.push(_.buffer);
P.push(s[G][1])}var U=Math.round(2+254*x[0]/100),S=UPNG.encode.compress(a,m,l,U,[!0,!1,!1,8,!1,x[1]]),X=S.plte,c=new Uint8Array(4),y=new Uint32Array(c.buffer);
for(var C=0;C<X.length;C++){y[0]=X[C];var p=c[0];c[0]=c[2];c[2]=p;X[C]=y[0];if(y[0]==0)O=C}while(X.length<256)X.push(0);
var D=new Uint8Array(2e3+m*l*s.length),f=x[3],T={palette:X};if(f!=1)T.loop=f==0?0:f-1;var I=new GifWriter(D,m,l,T);
for(var C=0;C<s.length;C++){var H=S.frames[C],b=H.rect,R=H.blend,W=H.dispose;I.addFrame(b.x,b.y,b.width,b.height,H.img,{transparent:O,disposal:W+1,delay:Math.round(P[C]/10)})}return D.slice(0,I.end()).buffer};
iO.uD.Gs=function(s){var m=Date.now(),l=[],x=UGIF.decode(s),a=UGIF.toRGBA8(x),P=new bU(0,0,x.width,x.height);
for(var C=0;C<a.length;C++){var o=x.frames[C];l.push({Sb:P.clone(),lh:"_a_frm"+C+","+o.delay*10,data:a[C]})}return l};
iO.A5={};iO.A5.yd=function(s,m,l,x){console.log(s);if(m>256||l>256){alert("Maximum ICO size is 256x256 px. Will be cropped.",4e3);
var a=Math.min(m,256),P=Math.min(l,256),o=new bU(0,0,a,P),G=L.B(o.k()*4),_=new bU(0,0,m,l),j=new Uint8Array(s[0][0]);
L.yx(j,_,G,o);s[0][0]=G.buffer;m=a;l=P}var U=new bm,S=0,X=x&&x[0]==!0;g.K2(U,S,0);S+=2;g.K2(U,S,X?2:1);
S+=2;g.K2(U,S,1);S+=2;var c=new Uint8Array(iO.ln("png").yd(s,m,l));U.bY(S,16);U.data[S]=m==256?0:m;S++;
U.data[S]=l==256?0:l;S++;S+=2;g.K2(U,S,X?Math.round(m/2):1);S+=2;g.K2(U,S,X?Math.round(l/2):32);S+=2;
g.FH(U,S,c.length);S+=4;g.FH(U,S,6+16);S+=4;U.bY(S,c.length);for(var C=0;C<c.length;C++)U.data[S+C]=c[C];
S+=c.length;var y=new Uint8Array(S);for(var C=0;C<S;C++)y[C]=U.data[C];return y.buffer};iO.A5.Gs=function(s){s=new Uint8Array(s);
var m=4,l=g.CP(s,m);m+=2;var x=[];for(var C=0;C<l;C++){var a=iO.A5.a4V(s,m+C*16),P=s.buffer.slice(a.offset,a.offset+a.size),o=iO.D1(P);
o=o?o:"bmp";if(o=="png"){var G=iO.ln(o),_=G.Gs(P);a.Xx=_[0]}else{var j=iO.ln("BMP").aj1(P,0),P=L.B(a.h_*a.Cm*4);
L.yx(new Uint8Array(j.data),new bU(0,0,j.Sb.e,j.Sb.l),P,new bU(0,a.Cm,a.h_,a.Cm));j.data=P.buffer;j.Sb.l=a.Cm;
a.Xx=j}x.push(a)}x.sort(function(U,S){if(U.h_!=S.h_)return U.h_-S.h_;return U.apF-S.apF});return[x.pop().Xx]};
iO.A5.a4V=function(s,m){var l={};l.h_=s[m];m++;if(l.h_==0)l.h_=256;l.Cm=s[m];m++;if(l.Cm==0)l.Cm=256;
l.a18=s[m];m++;m++;l.a6G=g.CP(s,m);m+=2;l.apF=g.CP(s,m);m+=2;l.size=g.Cu(s,m);m+=4;l.offset=g.Cu(s,m);
m+=4;return l};iO.sA={};iO.sA.Gs=function(s){var m=Date.now(),x,S=!0;if(L.raw.Z9(s.byteLength))return[L.raw.aoO(s)];
var l=UTIF.decode(s);if(l[0].t33421)x=l[0];else if(l[0].subIFD&&l[0].t271&&l[0].t271[0]=="Hasselblad"){x=l[0].subIFD[0];
x.t33421=[2,2]}else if(l[0].subIFD&&l[0].subIFD[0].t33421){x=l[0].subIFD[0];if(x.t50706==null){if(x.t258[0]==8)x.t258[0]=12}}else if(l[0].subIFD&&l[0].subIFD[0]&&l[0].subIFD[0].t262&&l[0].subIFD[0].t262[0]==34892)x=l[0].subIFD[0];
else if(l[0].subIFD&&l[0].subIFD[1]&&l[0].subIFD[1].t33421)x=l[0].subIFD[1];else if(l[0].subIFD&&l[0].subIFD[2]&&l[0].subIFD[2].t33421)x=l[0].subIFD[2];
else if(l[3]&&l[3].t50648){var a=l[0].exifIFD,P=a.makerNote;x=l[3];var o=P.t224[1],G=P.t224[2];x.t256=[o];
x.t257=[G];x.t258=[16];x.t259=[7];x.t262=[32803];x.t277=[1];x.t33421=[2,2];var _=x.t50656[0],j=L.raw.vn[_];
if(j==null)throw"e";x.t33422=j}if(x){UTIF.decodeImage(s,x,l);for(var U in l[0])if((U[0]=="t"||U[0]=="e"||U[0]=="d")&&x[U]==null)x[U]=l[0][U];
x.BX=l[0].t274?l[0].t274[0]:1;return[x]}var X=1/256;for(var C=0;C<l.length;C++)if(l[C].t258&&l[C].t258[0]==16&&l[C].t277&&l[C].t277[0]==1){}else S=!1;
if(S){var c=0,y=0,O=0;for(var C=0;C<l.length;C++){UTIF.decodeImage(s,l[C],l);var p=l[C].data;for(var D=0;
D<p.length;D+=2){var f=p[D+1]<<8|p[D];if(f>c)c=f;y+=f;O++}}X=1/256*65535/(.5*c+.5*(2*y/O))}var T=[];
for(var C=0;C<l.length;C++){var I=l[C],H=72;UTIF.decodeImage(s,I,l);var b=I.t282,R=I.t296;if(b!=null&&R!=null){H=b[0][0]/b[0][1];
if(R[0]==3)H=Math.round(H/2.54)}if(I.width==null)continue;var W=UTIF.toRGBA8(I,X).buffer,J=bs.pD(I);
T.push({Sb:new bU(0,0,I.width,I.height),data:W,sz:H,l1:J})}return T};iO.sA.yd=function(s,m,l,x){if(x==null)x=[!1];
var a={},P=s[0];if(P[3]!=null&&x[0])a=bs.Eu(P[3]);if(P[2]!=null){a.t282=a.t283=[[Math.round(P[2]),1]];
a.t296=[2]}return UTIF.encodeImage(P[0],m,l,a)};iO.iP={};iO.iP.Kw=!0;iO.iP.Gs=function(s,m){gv.st(s,m)};
iO.iP.aaU=function(s,m,l,x){if(x==null)x=[!1,!1,!1,!1];if(!x[0])s.cf();var a=new bm,P=gv.cs(s,a,x);return[a.data.buffer,P]};
iO.iP.yd=function(s,m,l,x){var a=iO.iP.aaU(s,m,l,x),P=a[0],o=a[1];return P.byteLength==o?P:P.slice(0,o)};
iO.XK={};iO.XK.Kw=!0;iO.XK.Gs=function(s,m){var l=pako.inflate(new Uint8Array(s)),x=g.hi(l,0),a=g.hi(l,2),P=4;
m.e=g.n(l,P);P+=4;m.l=g.n(l,P);P+=4;m.buffer=L.B(m.e*m.l*4);var o=g.hi(l,P);P+=2;P+=4;for(var G=0;G<o;
G++){var _=m.d2(),y=0,z=1,V=2,Y=3,d=0;m.G.push(_);var j=g.n(l,P);P+=4;var U=P,S=g.hi(l,U);U+=2;var X=g.V_(l,U,S);
U+=S;_.qW(X);var c=l[U];U++;if(c!=0&&c!=1)throw c;_.rect.x=g.Ji(l,U);U+=4;_.rect.y=g.Ji(l,U);U+=4;_.rect.e=g.n(l,U);
U+=4;_.rect.l=g.n(l,U);U+=4;if(x>3){y=g.Ji(l,U);U+=4}_.opacity=Math.round(255*l[U]/100);U++;var O=l[U];
U++;_.tG(O!=0);_.TR="norm,lddg,norm,dark,diff,norm,hLit,norm,norm,lite,mul ,over,scrn,fsub".split(",")[l[U]];
U++;var p=l[U];U++;if(p)_.add.lspf=1<<31;if(x>3){var D=g.hi(l,U);U+=2;if(D!=0){var f=JSON.parse(g.V_(l,U,D));
U+=D;var T=f.text,I=f.textSettings,H=I.font,b=I.size,R=I.padding,W=parseInt(I.color.slice(1),16);_.add.lnsr="rend";
_.add.TySh=ex.mA(0,0);_.add.TySh.fn=new bU(0,0,100,100);var J=_.add.TySh.A=new ae,u=_.rect.e/2,e=_.rect.l/2;
J.translate(-u,-e);J.rotate(-y*Math.PI/180);J.translate(u,e);J.translate(_.rect.x+R,_.rect.y+R);var Q=_.add.TySh.x5;
ex.c8(Q,1);ex.rI(Q,[0,0,_.rect.e-R*2,_.rect.l]);ex.A6(Q,0,T);var q=ex.f9(Q,0,1);q.m$.FontSize=b;q.m$.FillColor={Type:1,Values:[1,(W>>>16&255)/255,(W>>>8&255)/255,(W>>>0&255)/255]};
if(I.bold)H+="-Bold";ex.Cl(q,H);q.AO.Justification=["left","right","center"].indexOf(I.align);ex.j3(Q,0,T.length,q)}}var Z=g.n(l,U);
U+=4;if(Z!=_.rect.k()*4){for(var C=_.rect.e;C>_.rect.e/2;C--){var E=Z/(C*4);if(E==Math.round(E)){_.rect.e=C;
_.rect.l=E;break}}}_.buffer=L.B(_.rect.k()*4);if(x>3){z=0;V=1;Y=2;d=3}for(var C=0;C<Z;C+=4){_.buffer[C]=l[U+C+z];
_.buffer[C+1]=l[U+C+V];_.buffer[C+2]=l[U+C+Y];_.buffer[C+3]=l[U+C+d]}U+=Z;var w=g.n(l,U);U+=4;if(w==0&&x>3){P+=j;
continue}var A=l[U];U++;var $=g.hi(l,U);U+=2;if(w!=0){_.v=new t.K0;_.v.rect=_.rect.clone();_.v.channel=L.B(_.rect.k());
for(var C=0;C<w;C+=4)_.v.channel[C>>>2]=l[U+C+1];U+=w}if(A!=0){var i=JSON.parse(i4.default);_.add.lmfx=i;
for(var C=0;C<i4.order.length;C++)i[i4.rm[C]]={t:"VlLs",v:[]};var K={"102":9,"101":2,"103":0,"104":3,"105":8};
for(var C=0;C<A;C++){var h=g.hi(l,U),F=U+h+4,N=l.slice(U,F),iQ=l[U+2];U+=3;var jB=K[iQ+""],k=JSON.parse(i4.Ej[jB]);
i[i4.rm[jB]].v.push({t:"Objc",v:k});if(jB!=0){k.Md.v.BlnM=aA.bH("norm");k.Opct.v.val=l[U];U++;if(jB==9||jB==2){k.Dstn.v.val=l[U+1];
U+=2}else U+=2;k.blur.v.val=Math.round(l[U]*1.2);U++;if(jB==9||jB==2){k.uglg.v=!1;k.lagl.v.val=180-g.hi(l,U);
U+=2}k.Clr.v=L.K.gc({o:l[U+1],z:l[U+2],S:l[U+3]})}else{k.hglM.v.BlnM=k.sdwM.v.BlnM=aA.bH("norm");U+=2;
var ab=l[U++],f_=l[U++];k.blur.v.val=Math.round(Math.sqrt(f_*ab)*1.3);k.srgR.v.val=Math.round(100*ab/f_);
k.uglg.v=!1;k.lagl.v.val=180-g.hi(l,U);U+=2;k.hglO.v.val=l[U++];k.hglC.v=L.K.gc({o:l[U+1],z:l[U+2],S:l[U+3]});
U+=4;k.sdwO.v.val=l[U++];k.sdwC.v=L.K.gc({o:l[U+1],z:l[U+2],S:l[U+3]});U+=4}U=F}}if(U-P<j){var fc=g.n(l,U),cR=0;
U+=4;U++;var S=g.hi(l,U);U+=2;var T=g.V_(l,U,S);U+=S;T=T.replace(/\r/g,"\n");var S=g.hi(l,U);U+=2;var H=g.V_(l,U,S);
U+=S;var b=g.hi(l,U);U+=2;var g8=_.rect.x,bH=_.rect.e;if(fc&4)cR=1;if(fc&2)cR=2;var hr=Math.round(b*.4);
if(cR==0||cR==2)bH+=hr;if(cR==1||cR==2){bH+=hr;g8-=hr}_.add.lnsr="rend";_.add.TySh=ex.mA(0,0);_.add.TySh.fn=new bU(0,0,100,100);
_.add.TySh.A=new ae(1,0,0,1,g8,_.rect.y+b*.25);var Q=_.add.TySh.x5;ex.c8(Q,1);ex.rI(Q,[0,0,bH,_.rect.l]);
ex.A6(Q,0,T);var q=ex.f9(Q,0,1);q.m$.FontSize=b;q.m$.FillColor={Type:1,Values:[1,l[U+1]/255,l[U+2]/255,l[U+3]/255]};
U+=4;if(l[U+5])H+="-Bold";if(l[U+6])H+="-Italic";ex.Cl(q,H);q.AO.Justification=cR;U+=8;ex.j3(Q,0,T.length,q)}P+=j}};
iO.IY={};iO.IY.Kw=!0;iO.IY.Gs=function(s,m){an.st(s,m)};iO.bu={};iO.bu.Kw=!0;iO.bu.Gs=function(s,m){dw.st(s,m)};
iO.Xm={};iO.Xm.Kw=!0;iO.Xm.Gs=function(s,m){bY.st(s,m)};iO.iO={};iO.iO.Kw=!0;iO.iO.Gs=function(s,m){gG.st(s,m)};
iO.Uf={};iO.Uf.Kw=!0;iO.Uf.Gs=function(s,m){d0.st(s,m)};iO.M1={};iO.M1.Kw=!0;iO.M1.Gs=function(s,m){gs.st(s,m)};
iO.VY={};iO.VY.Kw=!0;iO.VY.yd=function(s,m,l,x,a){if(x==null)x=[!0,!1,!1,!1,!0,!0];var P=by.v1(s,{XG:x[0],hidden:x[1],a7d:x[2],alf:x[3],names:x[4],ae4:x[5],agz:m,aoc:l},a.dC);
return P};iO.VY.Gs=function(s,m,l){by.st(s,m,l)};iO.Jz={};iO.Jz.Kw=!0;iO.Jz.Gs=function(s,m){var l=150,x=new ae(1,0,0,-1,0,0);
x.scale(l/72,l/72);m.sz=l;var a=new ap(m,x,!0);FromPS.Parse(s,a)};iO.cB={};iO.cB.Kw=!0;iO.cB.yd=function(s,m,l,x,a){if(x==null)x=["",100,!1,!1,!1,0];
x[6]=["jpg"];var P=new ToPDF;cz.v1(s,x,P,a.dC,m,l);return P.buffer};iO.cB.Gs=function(s,m,l){var x=2;
while(!0){var a=x*72,P=new ae(1,0,0,-1,0,0);P.scale(a/72,a/72);m.sz=a;var o=new ap(m,P,!0);FromPDF.Parse(s,o);
var G=Math.max(m.e,m.l);if(l&&G<Math.max(l[0],l[1])){m.G=[];var _=x;while(G*(x/_)<Math.max(l[0],l[1]))x++}else break}};
iO.rq={};iO.rq.Kw=!0;iO.rq.Gs=function(s,m){var l=72,x=new ae(1,0,0,1,0,0);x.scale(l/72,l/72);m.sz=l;
var a=new ap(m,x,!1);FromWMF.Parse(s,a)};iO.zX={};iO.zX.t6=!0;iO.zX.Kw=!0;iO.zX.yd=function(s,m,l,x,a){if(x==null)x=["",100,!1,!1,!1,0];
x[6]=[];var P=new ToEMF;cz.v1(s,x,P,a.dC);return P.buffer};iO.zX.Gs=function(s,m){var l=72,x=new ae(1,0,0,1,0,0);
x.scale(l/72,l/72);m.sz=l;var a=new ap(m,x,!1);FromEMF.Parse(s,a)};iO._1={};iO._1.Kw=!0;iO._1.Gs=function(s,m){return dG.st(s,m)};
iO.d4={};iO.d4.Gs=function(s,m){var l=hx.st(s),x=new Uint8Array(s),a=0,P,o,G,_,j,U,S,X,c=0,y=0,O=0,p=0,D=0;
for(var f=0;f<l.sub.length;f++){var T=l.sub[f],a=T.X;if(T.te=="BMHD"){var I=[];for(var C=0;C<4;C++)I[C]=g.hi(x,a+2*C);
a+=8;_=I[2];j=I[3];o=I[0];G=I[1];P=L.B(o*G*4);U=x[a++];S=x[a++];X=x[a++]}else if(T.te=="CMAP")c=a;else if(T.te=="CAMG"){var H=g.n(x,a);
y=H&32768,O=H&4,p=H&2048;D=H&128}else if(T.te=="BODY"){var b=o+15>>>4<<1,R=U+S,W=L.B(b*G*R),Q,q,Z;iA.Y3(x,a,T.size,W,0,W.length);
var J=U-2,u=(1<<J)-1,e=Math.round(255/u);for(var j=0;j<G;j++)for(var _=0;_<o;_++){var z=0;for(var V=0;
V<R;V++){var Y=(j*R+V)*b*8+_,d=W[Y>>>3]>>>7-(Y&7)&1;z|=d<<V}var w=z>>>U,z=z&(1<<U)-1,C=j*o+_,A=C<<2;
if(c!=0){if(p!=0&&z>>>J!=0){var $=z>>>J,i=(z&u)*e;if($==1)Z=i;else if($==2)Q=i;else if($==3)q=i}else{var i=c+z*3;
Q=x[i+0];q=x[i+1];Z=x[i+2]}}else{Q=z>>>0&255;q=z>>>8&255;Z=z>>>16&255}P[A+0]=Q;P[A+1]=q;P[A+2]=Z;P[A+3]=255}}}return[{Sb:new bU(0,0,o,G),data:P.buffer}]};
iO.sR={};iO.sR.Kw=!1;iO.sR.yd=function(s,m,l,x){var a=s[0][4],P=new Uint8Array(s[0][0]),o=2,G=a?!0:!1,_=G?4:3,j=new Uint8Array(m*l*_);
for(var U=0;U<l;U++)for(var S=0;S<m;S++){var X=U*m+S<<2,c=((l-U-1)*m+S)*_;j[c]=P[X+2];j[c+1]=P[X+1];
j[c+2]=P[X+0];if(G)j[c+3]=a[0][U*m+S]}if(!0){var y=j.length,O=0,p=new Uint8Array(y*2),D=0,f=0,T=m*_;
while(f<y){var I=f,H=0,b=T*(Math.floor(f/T)+1);while(I<b&&H<128){var R=!0;for(var C=0;C<_;C++)R=R&j[f+C]==j[I+C];
if(!R)break;I+=_;H++}if(H==1){var W=1;while(W<128&&f+(W+1)*_<b){var R=!0,J=f+W*_;for(var C=0;C<_;C++)R=R&j[J+C]==j[J+_+C];
if(R)break;W++}p[D++]=W-1;for(var u=0;u<W;u++)for(var C=0;C<_;C++)p[D++]=j[f++]}else{p[D++]=127+H;for(var C=0;
C<_;C++)p[D+C]=j[f+C];D+=_;f+=_*H;O+=H}}j=p.slice(0,D);o+=8}var e=new Uint8Array(18+j.length+26);e[2]=o;
g.FL(e,12,m);g.FL(e,14,l);e[16]=_*8;e[17]=_==4?8:0;e.set(j,18);g.bG(e,18+j.length+8,"TRUEVISION-XFILE.");
return e.buffer};iO.sR.Gs=function(s){var m=new Uint8Array(s),l=0,x=m[0],a=m[1],P=m[2],o=m[4]*256+m[3],G=m[6]*256+m[5],_=m[7],j=m[9]*256+m[8],U=m[11]*256+m[10],S=m[13]*256+m[12],X=m[15]*256+m[14],c=m[16],y=m[17],O=y>>>4,p=g.cS(m,18,x),D=L.B(S*X*4),l=18+x+(G*_>>>3),f=new Uint8Array(m.buffer,l);
if(P>3){var T=0,I=m,H=new Uint8Array(S*X*c>>>3),b=l,R=0,W=m.length,J=c>>>3;while(R<H.length){var cE=I[b];
b++;if(cE<128)for(var C=0;C<cE+1;C++){for(var u=0;u<J;u++){H[R]=I[b];R++;b++}}else{for(var C=0;C<cE-127;
C++){for(var u=0;u<J;u++){H[R]=I[b+u];R++}}b+=J}}P-=8;f=H;l=b}else l+=S*X*c>>>3;var e=new Uint8Array(4),Q=iO.sR.ama;
for(var q=0;q<X;q++)for(var Z=0;Z<S;Z++){var E=(O&2)==0?(X-q-1)*S+Z:q*S+Z,z=q*S+Z,V,Y,d,w=255,A=E*c>>>3;
if(P==1){var $=0;if(c==8)$=f[A];else throw"e";Q(m,18+x+o+($*_>>>3),_,e);V=e[0];Y=e[1];d=e[2];w=e[3]}else if(P==2){Q(f,A,c,e);
V=e[0];Y=e[1];d=e[2];w=e[3]}else if(P==3){if(c==8)V=Y=d=f[A];else throw"e"}var i=z*4;D[i]=V;D[i+1]=Y;
D[i+2]=d;D[i+3]=w}var e={Sb:new bU(0,0,S,X),data:D.buffer,lh:p};if(L.pl(D)){var K=L.B(S*X);L.hy(D,K,3);
L.MP(D,4278190080,16777215);e.$_=[K]}return[e]};iO.sR.ama=function(s,m,l,x){var a,P,o,G=255;if(l==24||l==32){o=s[m];
P=s[m+1];a=s[m+2];if(l==32)G=s[m+3]}else if(l==16){var _=s[m+1]<<8|s[m+0];a=_>>>10&31;P=_>>>5&31;o=_>>>0&31;
a=Math.round(a*(255/31));P=Math.round(P*(255/31));o=Math.round(o*(255/31))}else throw"e";x[0]=a;x[1]=P;
x[2]=o;x[3]=G};iO.aiB=function(){var s,m=[],l=!1;function x(o,G,_,j){s=_;m.push(o,j);a()}function a(){if(l||m.length==0)return;
l=!0;iO.a5f(m.shift(),"image/avif",P)}function P(o){s(null,[o],m.shift());l=!1;a()}return{Kw:!1,sg:!0,Gs:x}}();
iO.a7o=function(){var s,m=[],l=!1,x,a,P,o,G,_;function j(c,y,O,p){s=O;m.push(c,p);U()}function U(){if(l||m.length==0)return;
l=!0;x=document.createElement("canvas");a=x.getContext("2d");P=document.createElement("video");var c="data:"+"video/mp4"+";base64,"+iO.pB(m.shift());
P.src=c;P.muted=!0;P.currentTime=0;P.addEventListener("canplay",S,!1);P.addEventListener("timeupdate",X,!1)}function S(c){P.removeEventListener("canplay",S);
o=x.width=P.videoWidth;G=x.height=P.videoHeight;_=[];P.play()}function X(c){var y=10;a.drawImage(P,0,0);
_.push({lh:"_a_"+_.length+","+Math.round(1e3/y),Sb:new bU(0,0,o,G),data:a.getImageData(0,0,o,G).data.buffer});
var O=P.currentTime+1/y;if(O<P.duration)P.currentTime=O;else{s(null,_,m.shift());P.removeEventListener("timeupdate",X);
l=!1;U();_=null}}return{Kw:!1,sg:!0,Gs:j}}();iO.So={};iO.So.Gs=function(s){var m=new Uint8Array(s),l=0,x=112,a=42,P=g.Cu,U;
l+=8;var o=m[l];l++;if(o!=a)throw"e";var G=P(m,l);l+=4;var _=g.Wi(m,l,G);l+=G*2;var j=[];while(l<m.length){U=P(m,l);
l+=4;if(U!=x)throw U;l+=4;U=m[l];l++;if(U!=a)throw U;var S=P(m,l);l+=4;var X=m[l];l++;if(X!=a){l-=5;
S=P(m,l);l+=8;U=m[l];l++;if(U!=a)throw U}var c=P(m,l)*2;l+=4;if(S>0)j.push(l+c);l+=c+S}var y=new DOMParser,O=y.parseFromString(_,"image/svg+xml").firstChild.firstChild,p=[];
iO.So.NQ(O,m,j,p);return p};iO.So.NQ=function(s,m,l,x){var a=s.firstChild.firstChild;if(a.tagName=="Image"){var P=a.getElementsByTagName("ImageDescription")[0],o=P.children[0].children,G=P.children[1].children,_=l.shift(),j=[];
for(var C=0;C<G.length;C++)j.push(parseInt(G[C].getAttribute("NumberOfElements")));while(j.length>3)j[2]*=j.pop();
var U=o.length,S=j[0],X=j[1],c=j[2],y=parseInt(G[0].getAttribute("BytesInc"));for(var O=0;O<c;O++){var p=L.B(S*X*4);
L.MP(p,4278190080);for(var D=0;D<U;D++){var f=L.B(S*X);if(y==1)for(var T=0;T<f.length;T++)f[T]=m[_+T];
else if(y==2)for(var T=0;T<f.length;T++)f[T]=Math.min(255,(m[_+T*2+1]<<8|m[_+T*2])>>>2);else throw y;
if(D!=3)L._Y(f,p,D);if(U==1){L._Y(f,p,1);L._Y(f,p,2)}_+=S*X*y}x.push({Sb:new bU(0,0,S,X),data:p.buffer})}}else{var I=s.children,H=0;
while(H<I.length&&I[H].tagName!="Children")H++;if(H==I.length)throw"e";I=I[H].children;for(var b=0;b<I.length;
b++)iO.So.NQ(I[b],m,l,x)}};iO.nP={};iO.nP.Gs=function(s){var m=new Uint8Array(s),l=0,x={},U=1e9;for(var C=0;
C<306;C++){var a=g.cS(m,l,8).trim(),P=g.cS(m,l+9,71).split("/")[0].trim();x[a]=P;l+=80;if(a=="END"){l=Math.ceil(l/2880)*2880;
break}}var o=parseInt(x.NAXIS1),G=parseInt(x.NAXIS2),_=o*G,j=parseInt(x.BITPIX),S=-1e9,X=new Float32Array(_),c=new Float32Array(s,l,s.byteLength-l>>>2);
for(var C=0;C<_;C++){var y=C<<2,O=C<<1;if(j==-32){var p=m[l+y+0];m[l+y+0]=m[l+y+3];m[l+y+3]=p;var p=m[l+y+1];
m[l+y+1]=m[l+y+2];m[l+y+2]=p;X[C]=c[C]}else if(j==16){X[C]=g.CP(m,l+O)}else throw j;var D=X[C];if(D<U)U=D;
if(D>S)S=D}var f=L.B(_*4),T=1/S;for(var I=0;I<G;I++)for(var H=0;H<o;H++){var C=I*o+H,b=(G-I-1)*o+H,y=b<<2,D=X[C]*T;
f[y]=f[y+1]=f[y+2]=255*D;f[y+3]=255}return[{Sb:new bU(0,0,o,G),data:f,lh:x.OBJECT}]};iO.wk={};iO.wk.Gs=function(s){var m=new Uint8Array(s),l=16,x=g.cS(m,l,4),P=32,D=0,f=0,T=!1,Y;
l+=4;var a=g.cS(m,l,8);l+=8;while(m[l+P-1]==0)P--;var o=g.cS(m,l,P);l+=32;var G=g.cS(m,l,4);l+=4;l+=20;
var _=g.n(m,l);l+=4;var j=g.n(m,l);l+=4;var U=g.n(m,l);l+=4;var S=g.n(m,l);l+=4;var X=g.n(m,l);l+=4;
var c=g.n(m,l);l+=4;var y="FujiFilm "+o,O=[0,1,1,2];if(y=="FujiFilm X10"){y="FujiFilm FinePix X10";O=[2,1,1,0]}var p={t271:["FujiFilm"],t272:[y],t277:[1],t33421:[2,2],t33422:O,BX:1};
l=U;var I=[],H=g.hi,b=g.n(m,l);l+=4;for(var C=0;C<b;C++){var R=H(m,l);l+=2;var W=H(m,l);l+=2;if(R==256){f=H(m,l);
D=H(m,l+2)}else if(R==272){I=[H(m,l),H(m,l+2)]}else if(R==273){I.push(H(m,l),H(m,l+2))}else if(R==304){T=!(m[l]>>>7)}else if(R==305){var J=Math.round(Math.sqrt(W)),u=[];
for(var e=0;e<W;e++)u.push(m[l+e]);u.reverse();p.t33421=[J,J];p.t33422=u}else if(R==12272){var Q=H(m,l),q=H(m,l+2),Z=H(m,l+6);
p.t50728=[Q/q,1,Q/Z]}l+=W}var E=D<f,z=m.slice(X,X+c),V=Math.round(c*8/(D*f));if(z[0]==73&&z[1]==73&&z[2]==42){Y=UTIF.decode(z.buffer)[0].fujiIFD;
V=Y.t61443[0];var d=Y.t61454,w=Y.t61450;if(w)p.t50714=w;if(d)p.t50728=[d[0]/d[1],1,d[0]/d[2]];var A=Y.t61447[0];
z=z.slice(A,A+Y.t61448[0])}var c=z.length,$=c*8<D*f*V;if($){console.log("compressed");var i=p.t33422,K=~~Math.sqrt(i.length),h=[];
for(var C=0;C<K;C++)h[C]=i.slice(C*K,C*K+K);z=new Uint8Array(UTIF._decompressRAF(z,h).buffer);c=z.length}function F(ab,f_,fc){fc=fc<<8-(f_&7);
var g8=f_>>>3;ab[g8]|=fc>>>16;ab[g8+1]|=fc>>>8;ab[g8+2]|=fc}var N=c*8/(D*f);if(N==16)for(var C=0;C<c;
C+=2){var iQ=z[C];z[C]=z[C+1];z[C+1]=iQ}else if(N==14){for(var C=0;C<c;C+=4){var iQ=z[C];z[C]=z[C+3];
z[C+3]=iQ;iQ=z[C+1];z[C+1]=z[C+2];z[C+2]=iQ}}else if(N==12)for(var C=0;C<c;C+=3){var jB=z[C+2]<<16|z[C+1]<<8|z[C+0];
jB=jB>>>12|(jB&4095)<<12;z[C]=jB>>>16&255;z[C+1]=jB>>>8&255;z[C+2]=jB&255}if(E)z=iO.wk.ahC(z,D,f);var k=E?2:1;
D*=k;p.t256=[D];p.t257=[f];p.t258=[V];p.t50719=[I[1],I[0]*k];p.t50720=[I[3],I[2]*k];p.width=D;p.height=f;
p.data=new Uint8Array(z.buffer);return[p]};iO.wk.ahC=function(s,m,l){s=new Uint16Array(s.buffer);var x=new Uint16Array(m*l*2);
for(var a=0;a<l;a+=2)for(var P=0;P<m;P++){var o=a*m+P,G=o*2,_=s[o],j=s[o+m];x[G+1]=x[G+2*m]=j;if(((a>>>1)+P&1)==0){x[G]=_;
x[G+2*m+1]=s[o+1]}else{x[G]=s[o-1];x[G+2*m+1]=_}}return x};iO.XP={};iO.XP.t6=!0;iO.XP.yd=function(s,m,l,x){var a=new Uint8Array(s[0][0]),P=m*l,o=[1,3,4][x[0]],G=8+8*x[1],_=x[2];
if(o==1){var j=new Uint8Array(m*l);L.hy(a,j,0);a=j}if(o==3){var j=new Uint8Array(m*l*3);for(var C=0;
C<P;C++){var U=C*4,S=C*3;j[S]=a[U];j[S+1]=a[U+1];j[S+2]=a[U+2]}a=j}if(G==16){var X=a.length,j=new Uint8Array(X*2);
for(var C=0;C<X;C++){var c=Math.round(a[C]*(65535/255));j[C*2+_]=c>>>8;j[C*2+1-_]=c&255}a=j}return a.buffer};
iO.Hd={};iO.Hd.Gs=function(s,m){function l(_){return~~(.5+L.WF(Math.max(0,Math.min(1,_)))*255)}var x=EXRLoader.parse(s),a=x.width,P=x.height,o=L.B(a*P*4);
for(var G=0;G<P;G++)for(var _=0;_<a;_++){var C=(G*a+_)*4,j=((P-G-1)*a+_)*4;o[C]=l(x.data[j+0]);o[C+1]=l(x.data[j+1]);
o[C+2]=l(x.data[j+2]);o[C+3]=l(x.data[j+3])}return[{Sb:new bU(0,0,a,P),data:o.buffer}]};iO.Bz={};iO.Bz.t6=!0;
iO.Bz.Kw=!0;iO.Bz.yd=function(s,m,l,x,a){x=["",100,!1,!1,!1,0];x[6]=["jpg"];var P=new ToDXF;cz.v1(s,x,P,a.dC);
return P.buffer};iO.Bz.Gs=function(s,m){var l=72,x=new ae(1,0,0,1,0,0);x.scale(l/72,l/72);m.sz=l;var a=new ap(m,x,!1);
FromDXF.Parse(s,a)};iO.VB={};iO.VB.Gs=function(){var s=g.CP,m=g.Cu,l=g.cS,x;function a(o,G,_,j,U){var S=m(o,_),X=m(o,_+4),c=m(o,_+8),y=s(o,_+12),O=s(o,_+14);
_+=16;var p={};for(var C=0;C<y+O;C++){var D=m(o,_),f=m(o,_+4),T,I;if(D>>>31==1){D=D&16777215}if(C<y)T=g.Wi(o,G+D+2,s(o,G+D));
else T="id"+D;var H=j.slice(0);H.push(T);if(f>>>31==1){f=f&268435455;I=a(o,G,G+f,H,U)}else{var b=m(o,G+f),R=m(o,G+f+4),W=m(o,G+f+8),J=m(o,G+f+12);
if(J!=0)throw"e";if(b<U[0]||b>U[0]+U[1])throw"e";var u=U[2]+b-U[0];I=o.slice(u,u+R);var e=iO.D1(I.buffer);
if(e&&["bmp","png","ico"].indexOf(e)!=-1){var Q=iO.ln(e);if(!Q.Kw){var q=null;try{q=Q.Gs(I.buffer)}catch(iX){}if(q){q[0].lh=H[1];
x.push(q[0])}}}else if(e)console.log(e)}p[T]=I;_+=8}return p}function P(o){x=[];var G=new Uint8Array(o),_=0,j=s(G,_);
_+=2;_+=58;var U=m(G,_);_+=4;_=U;var S=l(G,_,4);_+=4;var X=s(G,_);_+=2;var c=s(G,_);_+=2;var y=m(G,_);
_+=4;var O=m(G,_);_+=4;var p=m(G,_);_+=4;var D=s(G,_);_+=2;var f=s(G,_);_+=2;_+=D;var T={};for(var C=0;
C<c;C++){var I=_;while(G[I]!=0)I++;var H=l(G,_,I-_),b=m(G,_+8),R=m(G,_+12),W=m(G,_+16),J=m(G,_+20),u=m(G,_+24),e=m(G,_+28),Q=s(G,_+32),q=s(G,_+34),f=m(G,_+36);
T[H]=[R,b,J,W,f];if(u+e!=0)throw"e";_+=40}for(var Z in T){var E=T[Z];_=E[2];if(Z==".rsrc"){var z=a(G,_,_,[],E),V="id134"}}return x}return P}();
iO.Ua={};iO.Ua.Kw=!0;iO.Ua.Gs=function(s,m){dp.st(s,m)};(function(){var s=iO.L0.get("wasm/zstd").buffer;
WebAssembly.instantiate(s).then(function(m){var l=m.instance.exports;iO.Ua.ai3=l})}());iO.Ua.XX=function(s,m){var l=iO.Ua.ai3,x=s.length,a=l.memory,P=2*x+1e6,_=8;
iO.wC(l,P);var o=new Uint8Array(a.buffer),G=l.malloc(x);o.set(s,G);while(!0){var j=m==null?x*_:m;iO.wC(l,P+j);
var U=l.malloc(j),S=l.ZSTD_decompress(U,j,G,x);if(S==-70){l.free(U);_+=_>>>1;if(m!=null)throw"error"}else{o=new Uint8Array(a.buffer);
s=o.slice(U,U+S);l.free(U);break}}l.free(G);return s};iO.lT={};iO.lT.Kw=!0;iO.lT.Gs=function(){var s=0,m=1,l=2,x=3,a=4,P=5,o=6,G=7,_=1,j=2,U=7,S=8,X=9,c,y,O,p,D;
function f(){var cE=g.sf(c,y);y+=4;return cE}function T(){var Y=0,d=0;for(var C=0;C<5;C++){var w=c[y++];
Y+=(w&127)<<d;d+=7;if((w&128)==0)break}return Y}function I(){var Y=T(),d=g.V_(c,y,Y);y+=Y;return d}function H(){return{typeName:I(),a4B:f()}}function b(){var Y=f(),d=I(),w=[],A=f();
for(var C=0;C<A;C++)w.push([I()]);return{id:Y,aR:d,a8v:w}}function R(Y){var d=Y.a8v,w=[];for(var C=0;
C<d.length;C++)d[C].push(c[y++]);for(var C=0;C<d.length;C++){var A=d[C][1],$;d[C].push(W(A))}}function W(Y){var d;
if(Y==s)d=c[y++];else if(Y==x)d=I();else if(Y==a)d=H();else if(Y==m||Y==l||Y==o||Y==P){}else throw Y;
return d}function J(Y,d,w){var A;if(Y==s){if(d==_)A=c[y++]==1;else if(d==j){A=c[y++]}else if(d==S)A=f();
else if(d==X){A=f();f()}else throw d}else if(Y==x){A=q(w+1)}else if(Y==a){A=q(w+1)}else if(Y==P){A=q(w+1)}else if(Y==m){A=q(w+1)}else if(Y==o){A=q(w+1)}else throw Y;
return A}function u(Y,d){var w=O["c"+Y],A=w.a8v,$={_class:w.aR};for(var C=0;C<A.length;C++){var i=A[C],K=i[1],h=i[2],F=J(K,h,d),N=i[0];
$[N]=F}return $}function e(Y,d,w,A){var $=[];for(var C=0;C<Y;C++){var i=J(d,w,A);if(i.gN&&i.gN=="null_count"){var K=i.yt;
for(var h=0;h<K;h++)$.push(null);C+=K-1}else $.push(i)}return $}function Q(){return[f(),f()]}function q(Y){if(Y==null)throw"e";
var d=null,w=c[y],A=null;y++;if(w==0){var $=f(),i=f(),K=f(),h=f();d=[$,i,K,h]}else if(w==1){A=f();var F=f();
d=u(F,Y)}else if(w==4){var N=b();A=N.id;R(N);O["c"+N.id]=N;d=u(N.id,Y)}else if(w==5){var N=b();A=N.id;
R(N);var iQ=f();O["c"+N.id]=N;d=u(N.id,Y)}else if(w==6){A=f();var jB=I();d=jB}else if(w==7){A=f();var k=c[y++];
if(k!=0)throw k;var ab=f();if(ab!=1)throw ab;var f_=f(),fc=c[y++],g8=W(fc);d=e(f_,fc,g8,Y)}else if(w==9){var bH=f();
d={gN:"ref",yt:bH};D["o"+bH]=!0}else if(w==10){d={gN:"null_count",yt:1}}else if(w==11){d={gN:"end"}}else if(w==12){var iQ=f(),cR=I()}else if(w==13){var hr=c[y++];
d={gN:"null_count",yt:hr}}else if(w==16){var h$=Q();A=h$[0];d=e(h$[1],a,null,Y)}else if(w==17){var h$=Q();
A=h$[0];d=e(h$[1],m,null,Y)}else throw"e";if(A!=null&&A>0){if(p["o"+A]!=null)throw"e";p["o"+A]=d}return d}function Z(Y,p){if(Y instanceof Array){for(var C=0;
C<Y.length;C++)Y[C]=E(Y[C],p)}else if(Y instanceof Object){for(var d in Y)Y[d]=E(Y[d],p)}}function E(Y,p){if(Y&&Y.gN&&Y.gN=="ref")return p["o"+Y.yt];
else return Y}function z(Y,d,w){c=new Uint8Array(Y);y=0;O={};p={};D={};var A=g.cS(c,0,4);if(A!="PDN3")throw A;
y+=4;var $=g.CP(c,y)+c[y+2]*256*256;y+=3;var i=g.cS(c,y,$);y+=$;y+=2;while(!0){var K=q(0);if(K&&K.gN&&K.gN=="end")break}for(var h in D)if(p[h]==null)throw h;
for(var h in p)Z(p[h],p);var F=p.o1;console.log(F);d.e=F.width;d.l=F.height;d.buffer=L.B(d.e*d.l*4);
var N=F.layers["ArrayList+_items"];for(var C=0;C<N.length;C++){var iQ=N[C];if(iQ==null)continue;console.log(iQ);
var jB=iQ["Layer+width"],k=iQ["Layer+height"],ab=iQ["Layer+properties"],f_=iQ.properties,fc=f_.blendOp._class.split("+").pop();
fc=fc.slice(0,fc.length-7);var g8={Normal:"norm",Multiply:"mul ",Additive:"lddg",ColorBurn:"idiv",ColorDodge:"div ",Reflect:"lddg",Glow:"hMix",Overlay:"over",Difference:"diff",Negation:"smud",Lighten:"lite",Darken:"dark",Screen:"scrn",Xor:"smud"}[fc],bH=d.d2();
bH.qW(ab.name);bH.opacity=ab.opacity;bH.tG(ab.visible);bH.TR=g8;var cR=1<<16,hr=Math.ceil(jB*k/cR);bH.rect=new bU(0,0,jB,k);
bH.buffer=L.B(jB*k*4);var h$=bH.buffer;y+=5;for(var gE=0;gE<hr;gE++){var d8=V();h$.set(d8[1],d8[0]*cR*4)}for(var hG=0;
hG<h$.length;hG+=4){var f7=h$[hG+0];h$[hG+0]=h$[hG+2];h$[hG+2]=f7}d.G.push(bH)}}function V(){var Y=g.n(c,y);
y+=4;var d=g.n(c,y);y+=4;var w=pako.inflateRaw(c.slice(y+10));y+=d;return[Y,w]}return z}();var M={};
M.wR=!1;M.zM=!1;M.Lm=!1;M.w=document.createElement("canvas");M.og=null;M.d5=null;M.qc=0;(function(){var s={alpha:!0,antialias:!1,depth:!1,premultipliedAlpha:!1},m;
if(!m)m=M.w.getContext("webgl",s);if(!m)m=M.w.getContext("experimental-webgl",s);if(m){M.wR=!0;M.zM=!0;
M.og=m;M.d5=m.createFramebuffer();m.bindFramebuffer(m.FRAMEBUFFER,M.d5);m.disable(m.BLEND);m.disable(m.DEPTH_TEST);
var l=m.createBuffer();m.bindBuffer(m.ARRAY_BUFFER,l);m.bufferData(m.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),m.STATIC_DRAW);
m.enableVertexAttribArray(0);m.vertexAttribPointer(0,2,m.FLOAT,!1,0,0)}}());M.ar_=function(s){s=s.replace(/\s\s+/g," ");
s=s.replace(/; /g,";");s=s.replace(/} /g,"}");s=s.replace(/ }/g,"}");s=s.replace(/{ /g,"{");s=s.replace(/ {/g,"{");
s=s.replace(/= /g,"=");s=s.replace(/ =/g,"=");s=s.replace(/\| /g,"|");s=s.replace(/ \|/g,"|");return s};
M.a9L=function(s){var m=M.og;if(s>m.getParameter(m.MAX_TEXTURE_SIZE)){M.wR=!1;alert("Disabling WebGL")}};
M.Fk=function(s,m){return new Float32Array([(s.x-m.x)/m.e,(s.y-m.y)/m.l,s.e/m.e,s.l/m.l])};M.Uv=function(){return this.w};
M.C8=function(s,m){var l=M.og;l.bindFramebuffer(l.FRAMEBUFFER,M.d5);l.framebufferTexture2D(l.FRAMEBUFFER,l.COLOR_ATTACHMENT0,l.TEXTURE_2D,s.Vh,0);
l.viewport(0,0,s.e,s.l);if(m){l.enable(l.SCISSOR_TEST);l.scissor(m.x,m.y,m.e,m.l)}else l.disable(l.SCISSOR_TEST)};
M.fd=function(s,m,l){if(l)throw"error";var x=M.og;x.disable(x.SCISSOR_TEST);x.bindFramebuffer(x.FRAMEBUFFER,null);
x.viewport(0,0,s,m);if(l){x.enable(x.SCISSOR_TEST);x.scissor(l.x,l.y,Math.round(l.e),Math.round(l.l))}else x.disable(x.SCISSOR_TEST)};
M.clear=function(){var s=M.og;s.clearColor(0,0,0,0);s.clear(s.COLOR_BUFFER_BIT)};M.MV=function(s,m){if(m==null)m=0;
var l=(m>>>0&255)==0,x=(m>>>8&255)==0,a=(m>>>16&255)==0,P=(m>>>24&255)==0,o=(s>>>0&255)*(1/255),G=(s>>>8&255)*(1/255),_=(s>>>16&255)*(1/255),j=(s>>>24&255)*(1/255),U=M.og;
U.colorMask(l,x,a,P);U.clearColor(o,G,_,j);U.clear(U.COLOR_BUFFER_BIT);U.colorMask(!0,!0,!0,!0)};M.Ld=function(s,m,l,x,a){var P=m.pF(x);
if(a)P=P.pF(a);if(P.Xh())return;var o=M.og;M.C8(s);o.bindTexture(o.TEXTURE_2D,l.Vh);o.copyTexSubImage2D(o.TEXTURE_2D,0,P.x-x.x,P.y-x.y,P.x-m.x,P.y-m.y,P.e,P.l)};
M.OI=function(C,s,m){var l=M.al[C];if(l==null||l.e!=s||l.l!=m){if(l)l.delete();l=new M.KY(s,m)}M.al[C]=l;
return l};M.al=[];M.lW=function(){this.bl=null;this.sv=null};M.lW.$R=null;M.lW.prototype.LG=function(s){if(this.sv)return;
this.sv={};var m=M.og,l=this.bl,x=this.sv;for(var C=0;C<s.length;C++){var a=s[C];x[a]=m.getUniformLocation(l,a)}};
M.lW.prototype.sw=function(){};M.lW.prototype.C6=function(s){var m=M.og;for(var C=0;C<s.length;C+=2){m.uniform1i(s[C],C>>>1);
m.activeTexture(m["TEXTURE"+(C>>>1)]);m.bindTexture(m.TEXTURE_2D,s[C+1])}m.activeTexture(m.TEXTURE0)};
M.lW.prototype.D2=function(s,m){var l=M.og,x=l.createShader(l.FRAGMENT_SHADER);l.shaderSource(x,s);l.compileShader(x);
if(!l.getShaderParameter(x,l.COMPILE_STATUS))console.log(l.getShaderInfoLog(x));var a=l.createShader(l.VERTEX_SHADER);
l.shaderSource(a,m);l.compileShader(a);if(!l.getShaderParameter(a,l.COMPILE_STATUS))console.log(l.getShaderInfoLog(a));
var P=l.createProgram();l.attachShader(P,a);l.attachShader(P,x);l.linkProgram(P);if(!l.getProgramParameter(P,l.LINK_STATUS))console.log("Could not initialise shaders");
this.bl=P};M.lW.prototype.rR=function(){if(M.lW.$R!=this){M.og.useProgram(this.bl);M.lW.$R=this}};M.t$=function(s,m){M.N4++;
M.qc+=s*m;if(M.Lm)console.log("GL.Channels instances: "+M.N4+", memory: "+M.qc);var l=M.og;this.e=s;
this.l=m;this.Vh=l.createTexture();this.qQ=null;this.N$(this.Vh,s,m)};M.t$.prototype.N$=function(s,m,l){var x=M.og;
x.bindTexture(x.TEXTURE_2D,s);x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MIN_FILTER,x.NEAREST);x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MAG_FILTER,x.NEAREST);
x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.CLAMP_TO_EDGE);x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.CLAMP_TO_EDGE);
x.texImage2D(x.TEXTURE_2D,0,x.ALPHA,m,l,0,x.ALPHA,x.UNSIGNED_BYTE,null)};M.t$.prototype.set=function(s){var m=M.og;
m.bindTexture(m.TEXTURE_2D,this.Vh);m.pixelStorei(m.UNPACK_ALIGNMENT,1);m.texImage2D(m.TEXTURE_2D,0,m.ALPHA,this.e,this.l,0,m.ALPHA,m.UNSIGNED_BYTE,s);
m.pixelStorei(m.UNPACK_ALIGNMENT,4)};M.t$.prototype.delete=function(){var s=M.og;if(this.Vh){s.deleteTexture(this.Vh);
M.N4--;M.qc-=this.e*this.l}if(M.Lm)if(M.Lm)console.log("GL.Channels instances: "+M.N4+", memory: "+M.qc*4)};
M.N4=0;M.KY=function(s,m,l){if(l==null)l=!1;M.N4++;M.qc+=s*m*4;if(M.Lm)console.log("GL.Channels instances: "+M.N4+", memory: "+M.qc);
var x=M.og;this.a1Y=l;this.e=s;this.l=m;this.Vh=x.createTexture();this.qQ=null;this.N$(this.Vh,s,m)};
M.KY.prototype.set=function(s,m){var l=M.og;l.disable(l.SCISSOR_TEST);l.bindTexture(l.TEXTURE_2D,this.Vh);
if(s==null||s instanceof Uint8Array){var x=this.e*this.l;if(m==null||m.k()*10>x)l.texImage2D(l.TEXTURE_2D,0,l.RGBA,this.e,this.l,0,l.RGBA,l.UNSIGNED_BYTE,s);
else{var a=L.B(m.k()*4);L.yx(s,new bU(0,0,this.e,this.l),a,m);l.texSubImage2D(l.TEXTURE_2D,0,m.x,m.y,m.e,m.l,l.RGBA,l.UNSIGNED_BYTE,a)}}else l.texImage2D(l.TEXTURE_2D,0,l.RGBA,l.RGBA,l.UNSIGNED_BYTE,s)};
M.KY.prototype.get=function(s){var m=M.og;M.C8(this);m.readPixels(0,0,this.e,this.l,m.RGBA,m.UNSIGNED_BYTE,s)};
M.KY.prototype._y=function(s){if(s.Xh())return;var m=M.og;if(this.qQ==null){this.qQ=m.createTexture();
this.N$(this.qQ,this.e,this.l);M.N4++;M.qc+=this.e*this.l*4}m.bindFramebuffer(m.FRAMEBUFFER,M.d5);m.bindTexture(m.TEXTURE_2D,this.qQ);
if(s){var l=Math.max(s.x,0),x=Math.max(s.y,0);m.copyTexSubImage2D(m.TEXTURE_2D,0,l,x,l,x,s.e,s.l)}else m.copyTexImage2D(m.TEXTURE_2D,0,m.RGBA,0,0,this.e,this.l,0)};
M.KY.prototype.N$=function(s,m,l){var x=M.og;x.bindTexture(x.TEXTURE_2D,s);x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MIN_FILTER,this.a1Y?x.LINEAR:x.NEAREST);
x.texParameteri(x.TEXTURE_2D,x.TEXTURE_MAG_FILTER,x.NEAREST);x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.CLAMP_TO_EDGE);
x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.CLAMP_TO_EDGE);x.texImage2D(x.TEXTURE_2D,0,x.RGBA,m,l,0,x.RGBA,x.UNSIGNED_BYTE,null)};
M.KY.prototype.delete=function(){var s=M.og;if(this.Vh){s.deleteTexture(this.Vh);M.N4--;M.qc-=this.e*this.l*4}if(this.qQ){s.deleteTexture(this.qQ);
M.N4--;M.qc-=this.e*this.l*4}if(M.Lm)if(M.Lm)console.log("GL.Channels instances: "+M.N4+", memory: "+M.qc)};
M.KY.prototype.clone=function(){var s=M.og,m=new M.KY(this.e,this.l);M.C8(this);s.bindTexture(s.TEXTURE_2D,m.Vh);
s.copyTexImage2D(s.TEXTURE_2D,0,s.RGBA,0,0,this.e,this.l,0);return m};M.xJ={aef:" vec3 ocbrn(vec3 a, vec3 b, float f) { vec3 d = (a*vec3(f)+ONE3-vec3(f)); return mix(ONE3 - min(ONE3,(ONE3-b)/d), ZERO3, vec3(vec3(greaterThan(vec3(0.001),d))) ); } ",ajP:" vec3 ocddg(vec3 a, vec3 b, float f) { return mix( min(ONE3, b/(ONE3 - a*f)) , ONE3 , vec3(equal(a*f,ONE3 )) ); } ",ja:"const vec3 ZERO3 = vec3(0.0,0.0,0.0) ;\t\t\tconst vec3 QUAR3 = vec3(0.25,0.25,0.25) ;\t\t\tconst vec3 HALF3 = vec3(0.5,0.5,0.5) ;\t\t\tconst vec3 ONE3 = vec3(1.0,1.0,1.0) ;",NO:" float hueDiff(float shue, float hue) { \t\t\t\tfloat df = hue-shue, adf=abs(df), df0 = df-1.0, df1 = df+1.0; \t\t\t\tif(abs(df0) < adf) df = df0; \t\t\t\telse if(abs(df1) < adf) df = df1; \t\t\t\treturn df; \t\t\t}",dn:" float hueCF(float hueS, float hue0) { \t\t\t\tfloat df = hueDiff(hue0, hueS)*6.0; \t\t\t\treturn max(0.0, min(1.0, (df<0.0) ? 1.0+df : 1.0-df )); } ",ZV:"float sat(vec3 c) { return max(c.x,max(c.y,c.z)) - min(c.x,min(c.y,c.z)); }",cG:"float lum(vec3 c) { return dot(c, vec3(0.3,0.59,0.11)); } ",PX:"vec3 D (vec3 x) { return mix( sqrt(x), ((16.0*x-12.0)*x+4.0)*x , vec3(lessThanEqual(x,QUAR3)) ); }",amF:"float midSat (vec3 v, float s) { return ((v.y-v.z)*s)/(v.x-v.z); }",Ki:"vec3 setSat (vec3 c, float s) \t\t\t{\t\t\t\tvec3 o;\t\t\t\tif(c.r==c.g && c.g==c.b) o = ZERO3;\t\t\t\telse if(c.r>c.g) {\t\t\t\t\tif(c.r>c.b) {\t\t\t\t\t\tif(c.g>c.b)\to = vec3(s, midSat(c.rgb,s), 0.0); \t\t\t\t\t\telse\to = vec3(s, 0.0, midSat(c.rbg,s)); \t\t\t\t\t}\t\t\t\t\telse\t\to = vec3(midSat(c.brg,s), 0.0, s); \t\t\t\t} else {\t\t\t\t\tif(c.r<c.b) {\t\t\t\t\t\tif(c.g>c.b)\to = vec3(0.0, s, midSat(c.gbr,s)); \t\t\t\t\t\telse\t o = vec3(0.0, midSat(c.bgr,s), s); \t\t\t\t\t}\t\t\t\t\telse\t\t o = vec3(midSat(c.grb,s), s, 0.0);\t\t\t\t}\t\t\t\treturn o;\t\t\t}",afJ:"vec3 clipCol(vec3 c) \t\t\t{ \t\t\t\tvec3 o = c; float l = lum(c); \t\t\t\tfloat n = min(c.r,min(c.g,c.b)); \t\t\t\tfloat x = max(c.r,max(c.g,c.b)); \t\t\t\tif(n<0.0) o = l + (o-l)*(l/(l-n));\t\t\t\tif(x>1.0) o = l + (o-l)*(1.0-l)/(x-l);\t\t\t\treturn o;\t\t\t}",nt:"vec3 setLum (vec3 c, float l) { return clipCol(c+l-lum(c)); } ",JS:"bool in01(vec2 c) { return (0.0<=c.x) && (c.x<=1.0) && (0.0<=c.y) && (c.y<=1.0); }",hash:"float hash(vec2 v) { return fract(sin(dot(v ,vec2(12.9898,78.233))) * 43758.5453); }",AR:"vec3 rgbToHsl (vec3 rgb) {\t\t\t\tfloat r = rgb.r, g = rgb.g, b = rgb.b; \t\t\t\tfloat mx = max(r, max(g, b)), mn = min(r, min(g, b)); \t\t\t\tfloat h, s, l = (mx + mn) * 0.5;\t\t\t\t\t\t\t\tif(mx == mn) h = s = 0.0; \t\t\t\telse{ \t\t\t\t\tfloat d = mx - mn; \t\t\t\t\ts = l > 0.5 ? d / (2.0 - mx - mn) : d / (mx + mn); \t\t\t\t\t\t\t\t\t\tif(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); \t\t\t\t\telse if(mx==g) h = (b - r) / d + 2.0; \t\t\t\t\telse if(mx==b) h = (r - g) / d + 4.0; \t\t\t\t\t\t\t\t\t\th /= 6.0; \t\t\t\t} \t\t\t\treturn vec3(h,s,l); }",ZS:"vec3 hslToRgb (float h, float s, float l){\t\t\t\tfloat r, g, b;\t\t\t\t\t\t\t\tif(s == 0.0) r = g = b = l; \t\t\t\telse{ \t\t\t\t\tfloat q = l < 0.5 ? l * (1.0 + s) : l + s - l * s; \t\t\t\t\tfloat p = 2.0 * l - q; \t\t\t\t\tr = hue2rgb(p, q, h + 1.0/3.0); \t\t\t\t\tg = hue2rgb(p, q, h); \t\t\t\t\tb = hue2rgb(p, q, h - 1.0/3.0); \t\t\t\t} \t\t\t\treturn vec3(r,g,b); } ",lu:"float hue2rgb(float p, float q, float t){ \t\t\t\tif(t < 0.0) t += 1.0;\t\t\t\tif(t > 1.0) t -= 1.0;\t\t\t\tif(t < 1.0/6.0) return p + (q - p) * 6.0 * t; \t\t\t\tif(t < 1.0/2.0) return q; \t\t\t\tif(t < 2.0/3.0) return p + (q - p) * (2.0/3.0 - t) * 6.0; \t\t\t\treturn p;\t}",Az:"vec3 rgbToHsv(vec3 rgb){\t\t\t\t\tfloat r = rgb.r, g = rgb.g, b = rgb.b; \t\t\t\tfloat mx = max(r, max(g, b)), mn = min(r, min(g, b)); \t\t\t\tfloat h, s, v = mx; \t\t\t\t\t\t\t\tfloat d = mx - mn; \t\t\t\ts = mx == 0.0 ? 0.0 : d / mx; \t\t\t\t\t\t\t\tif(mx == mn) h = 0.0; \t\t\t\telse if(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); \t\t\t\telse if(mx==g) h = (b - r) / d + 2.0; \t\t\t\telse if(mx==b) h = (r - g) / d + 4.0; \t\t\t\t\t\t\t\th /= 6.0; \t\t\t\treturn vec3(h,s,v); }",B7:"vec3 hsvToRgb(float h, float s, float v) { \t\t\t\tfloat r, g, b, f, p, q, t, i; \t\t\t\ti = floor(h * 6.0); \t\t\t\tf = h * 6.0 - i; \t\t\t\tp = v * (1.0 - s); \t\t\t\tq = v * (1.0 - f * s); \t\t\t\tt = v * (1.0 - (1.0 - f) * s); \t\t\t\t\t\t\t\tif (i==0.0) { r = v, g = t, b = p; }\t\t\t\telse if(i==1.0) { r = q, g = v, b = p; }\t\t\t\telse if(i==2.0) { r = p, g = v, b = t; }\t\t\t\telse if(i==3.0) { r = p, g = q, b = v; }\t\t\t\telse if(i==4.0) { r = t, g = p, b = v; }\t\t\t\telse if(i==5.0) { r = v, g = p, b = q; }\t\t\t\t\t\t\t\treturn vec3(r,g,b); }",_g:"\t\tfloat srgbUngamma(float x) {\t\t\treturn (x<0.04045) ? (x / 12.92) : pow( ( x + 0.055 ) / 1.055, 2.4);\t\t}\t\tfloat xyzScale(float x) {\t\t\treturn (x>0.008856) ? pow(x,1.0/3.0) : (903.3*x+16.0)*(1.0/116.0); \t\t}\t\tvec3 rgbToLab(vec3 rgb) {\t\t\tbool ok = true;\t\t\trgb.r = srgbUngamma(rgb.r); \t\t\trgb.g = srgbUngamma(rgb.g); \t\t\trgb.b = srgbUngamma(rgb.b); \t\t\tok = ok && 0.0318<=rgb.r && rgb.r<=0.0319; \t\t\tok = ok && 0.127 <=rgb.g && rgb.g<=0.128 ; \t\t\tok = ok && 0.3047<=rgb.b && rgb.b<=0.305; \t\t\t\t\t\tmat3 srgb2xyz = mat3(0.4360747164307918, 0.222504478679176, 0.013932173981751634, 0.3850649153329662, 0.7168786002139355, 0.09710452396580642, 0.14308038098632878, 0.06061692340677909, 0.7141732835334675); \t\t\t\t\t\tvec3 xyz = srgb2xyz*rgb; \t\t\tok = ok && 0.106<=xyz[0] && xyz[0]<=0.107; \t\t\t\t\t\txyz=xyz*vec3(100.0/96.72, 100.0/100.0, 100.0/81.427); \t\t\txyz.x = xyzScale(xyz.x); \t\t\txyz.y = xyzScale(xyz.y); \t\t\txyz.z = xyzScale(xyz.z); \t\t\t\t\t\treturn vec3(116.0*xyz.y-16.0, 500.0*(xyz.x-xyz.y), 200.0*(xyz.y-xyz.z)); \t\t} \t\tfloat labSimilar(vec3 lab, vec3 mnm, vec3 mxm, float lim) {\t\t\tfloat L=lab.x, a=lab.y, b=lab.z; \t\t\tfloat dl = ((L<mnm.x) ? (mnm.x-L) : ((mxm.x<L) ? (mxm.x-L) : 0.0))*(1.0/100.0); \t\t\tfloat da = ((a<mnm.y) ? (mnm.y-a) : ((mxm.y<a) ? (mxm.y-a) : 0.0))*(1.0/116.0); \t\t\tfloat db = ((b<mnm.z) ? (mnm.z-b) : ((mxm.z<b) ? (mxm.z-b) : 0.0))*(1.0/116.0); \t\t\t/*float dl = (slab.x-lab.x)*(1.0/100.0), da=(slab.y-lab.y)*(1.0/116.0), db=(slab.z-lab.z)*(1.0/116.0);*/ \t\t\tfloat dst = sqrt(dl*dl+da*da+db*db)*1.35; \t\t\treturn (dst<=lim) ? min(1.0,1.17*(1.0 - (dst/lim))) : 0.0; \t\t}",an$:" mat3 rgbToYuv = mat3(0.299, -0.147, 0.615, 0.587, -0.289, -0.515, 0.114, 0.436, -0.100 ); ",a8c:" mat3 yuvToRgb = mat3(1.0, 1.0, 1.0, 0.0, -0.3946, 2.03199, 1.1398, -0.5805, -0.00048 ); ",VS:"\t\tfloat _blendIf(float c, vec4 br) { return min((c-br.x)*br.y, (c-br.w)*br.z); } \t\tfloat blendIf(vec4 sc, vec4 tc, vec4 br[10]) { \t\t\tfloat sg = lum(sc.rgb); \t\t\tfloat tg = lum(tc.rgb); \t\t\tfloat ms = _blendIf(sg,br[0]); \t\t\tms = min(ms, _blendIf(sc.r,br[2])); \t\t\tms = min(ms, _blendIf(sc.g,br[4])); \t\t\tms = min(ms, _blendIf(sc.b,br[6])); \t\t\t\t\t\tfloat mt = _blendIf(tg,br[1]); \t\t\tmt = min(mt, _blendIf(tc.r,br[3])); \t\t\tmt = min(mt, _blendIf(tc.g,br[5])); \t\t\tmt = min(mt, _blendIf(tc.b,br[7])); \t\t\tmt=max(mt,1.0-tc.w);\t\t\t\t\t\tfloat mi=min(ms,mt);\t\t\treturn clamp(mi,0.0,1.0);\t\t}"};
M.a={};M.a.cZ={};M.a.bB=null;M.a.ZT=null;M.a.wW=null;M.a.J9=function(s,m,l,x,a,P,o,G){if(G==null)G=jo.gg();
if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(s)==-1){o=o*G.fill;G.fill=1;G.style=!1}var _=s+(G.sk?"1":"");
if(M.a.cZ[_]==null)M.a.cZ[_]=new M.a.lJ(s,G.sk!=null);var j=M.a.cZ[_],U=l.pF(a).pF(P);U.offset(-a.x,-a.y);
if(U.Xh())return;var S=M.og;M.C8(x,U);x._y(U);j.rR();j.sw(m.Vh,x.qQ,M.Fk(l,a),o,G.fill,G.style?1:0,G.yz?1:0,G.sk?new Float32Array(G.sk):null);
S.drawArrays(S.TRIANGLES,0,6)};M.a.KP=function(s,m,l,x,a,P,o,G,_,j,U){if(M.a.bB==null)M.a.bB=new M.a.v2(!0,!0);
if(M.a.ZT==null)M.a.ZT=new M.a.v2(!0,!1);if(M.a.wW==null)M.a.wW=new M.a.v2(!1,!0);var S=j?1:0,X=s?a?M.a.bB:M.a.ZT:M.a.wW,c=new Float32Array(U?[U[0],U[1],U[2],1]:[1,1,1,1]),y=m?m.pF(x).pF(G):x.pF(G);
if(y.Xh())return;y.offset(-x.x,-x.y);var O=M.og;M.C8(l,y);l._y(y);X.rR();if(s==null)X.sw(null,l.qQ,a.Vh,M.Fk(x,x),M.Fk(P,x),o/255,_,S,c);
else if(a)X.sw(s.Vh,l.qQ,a.Vh,M.Fk(m,x),M.Fk(P,x),o/255,_,S,c);else X.sw(s.Vh,l.qQ,null,M.Fk(m,x),null,o/255,_,S,c);
O.drawArrays(O.TRIANGLES,0,6)};M.a.ah0=function(s,m,l){if(M.a.a3x==null)M.a.a3x=new M.a.kp;var x=M.a.a3x,a=new bU(0,0,s.e,s.l),P=M.og;
M.C8(m);m._y(a);x.rR();x.sw(a,s.Vh,m.qQ,l.Vh);P.drawArrays(P.TRIANGLES,0,6)};M.a.nF={norm:"return a;",diss:"return a;",dark:"return min(a,b);","mul ":"return a*b;",idiv:" vec3 d = (a*vec3(f)+ONE3-vec3(f)); return mix(mix(ONE3-((ONE3-b)/max(d,vec3(1e-6))), ZERO3, vec3(greaterThanEqual(ONE3-b,d)) ), ONE3 , vec3(equal(b,ONE3) )); ",lbrn:"return max(ZERO3, a*f+b-f);",dkCl:"return ( lum(a)<lum(b) ? a : b );",lite:"return max(a,b);",scrn:"return b+a-b*a;","div ":"a*=f; return mix( mix( min(ONE3,b/(1.0-a)), ONE3, step(1.0-a, b)) , ZERO3, vec3(equal(b,ZERO3)) );",lddg:"a*=f; return min(ONE3,a+b);",lgCl:"return ( lum(a)>lum(b) ? a : b );",over:"return mix( a+(2.0*b -1.0)-a*(2.0*b-1.0) , 2.0*b*a , step(-HALF3,-b) );",sLit:"return mix( b+(2.0*a -1.0)*(D(b)-b) , b-(1.0-2.0*a)*b*(1.0-b) , step(-HALF3,-a) );",hLit:"return mix( b+(2.0*a -1.0)-b*(2.0*a-1.0) , 2.0*a*b , step(-HALF3,-a) );",vLit:" return mix( ocddg(2.0*a-1.0,b,f) , ocbrn(2.0*a,b,f) , vec3(greaterThanEqual(HALF3,a))); ",lLit:"return mix( min(ONE3, (2.0*a-1.0)*f+b) , max(ZERO3, 2.0*a*f+b-f) , step(-HALF3,-a));",pLit:"return mix( max(2.0*a-1.0,b) , min(2.0*a, b) , step(-HALF3,-a) );",hMix:"if(f>0.99) return vec3(greaterThanEqual(a+b,ONE3)); return min( ONE3, max(ZERO3, (b+a*f-f)/(1.0-f+1e-6) )) ; ",diff:"return abs(a*f-b);",smud:"return a+b-2.0*a*b;",fsub:"return max(b-a, ZERO3);",fdiv:"return min(b/a, ONE3);","hue ":"return setLum( setSat(a, sat(b)) , lum(b) ); ","sat ":"return setLum( setSat(b, sat(a)) , lum(b) ); ",colr:"return setLum( a, lum(b) ); ","lum ":"return setLum( b, lum(a) ); "};
M.a.lJ=function(s,m){M.lW.call(this);var l="\t\t\tprecision highp float;\t\t\t"+M.xJ.ja+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform float alpha;\t\t\tuniform float fill;\t\t\tuniform float style;\t\t\tuniform float keepBGA;\t\t\t"+(m?"uniform vec4 blIf[10];":"")+"\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\t\t\t\t\t\t\t"+M.xJ.ZV+"\t\t\t"+M.xJ.cG+"\t\t\t"+M.xJ.PX+"\t\t\t"+M.xJ.aef+"\t\t\t"+M.xJ.ajP+"\t\t\t"+M.xJ.amF+"\t\t\t"+M.xJ.Ki+"\t\t\t"+M.xJ.afJ+"\t\t\t"+M.xJ.nt+"\t\t\t"+M.xJ.hash+"\t\t\t"+(m?M.xJ.VS:"")+"\t\t\t\t\t\tvec3 BB(vec3 a, vec3 b, float f) { "+M.a.nF[s]+" } \t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = texture2D(source, sCoord);",x="\t\t\tattribute vec2 verPos;\t\t\tuniform vec4 srct;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (verPos-srct.xy)/srct.zw;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}";
if(s=="diss")l+="\t\t\t\t\tgl_FragColor = (hash(tCoord) >= (keepBGA + (1.0-keepBGA)*src.w)*alpha ? tgt : vec4(src.xyz, keepBGA*tgt.w + (1.0-keepBGA))); }";
else l+=" \t\t\t\t\tfloat as = (keepBGA + (1.0-keepBGA)*src.w) * alpha, at = keepBGA + (1.0-keepBGA)*tgt.w; \t\t\t\t\t"+(m?" as*=blendIf(src,tgt,blIf); ":"")+"\t\t\t\t\tfloat ats = at * (1.0-as), ao = as + ats, iao = (ao==0.0) ? 0.0 : (1.0/ao); \t\t\t\t\tfloat ccf = (style==1.0) ? 1.0 : as; \t\t\t\t\tvec3 ncl = ( (1.0-at)*as*src.xyz + (1.0-ccf)*at*tgt.xyz + ccf*at*BB(src.xyz, tgt.xyz, (1.0+as-ccf)*fill) ) * iao;\t\t\t\t\tgl_FragColor = vec4(ncl, keepBGA*tgt.w + (1.0-keepBGA)*(as*fill + at*(1.0-as*fill)));\t\t\t\t\t\t\t}";
this.D2(l,x)};M.a.lJ.prototype=new M.lW;M.a.lJ.prototype.sw=function(s,m,l,x,a,P,o,G){this.LG("srct alpha source target fill style keepBGA blIf".split(" "));
var _=M.og,j=this.sv;_.uniform4fv(j.srct,l);_.uniform1f(j.alpha,x);_.uniform1f(j.fill,a);_.uniform1f(j.style,P);
_.uniform1f(j.keepBGA,o);if(G)_.uniform4fv(j.blIf,G);this.C6([j.source,s,j.target,m])};M.a.v2=function(s,m){M.lW.call(this);
this.acu=s;this._3=m;var l="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform sampler2D weight;\t\t\tuniform vec4 cswitch;\t\t\tuniform float wcolor;\t\t\tuniform float awg; /* additional weight */\t\t\tuniform float dissv;\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 wCoord;\t\t\t\t\t\t"+M.xJ.JS+"\t\t\t"+M.xJ.hash+"\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = "+(s?"texture2D(source, sCoord)":"vec4(0.0)")+"; \t\t\t\tfloat wg = awg "+(m?"* (in01(wCoord) ? texture2D(weight, wCoord).w : wcolor)":"")+";\t\t\t\t"+(s?"":"wg = 1.0-wg;")+"\t\t\t\tfloat hwg = hash(tCoord)>=wg ? 0.0 : 1.0; wg = dissv*hwg + (1.0-dissv)*wg; \t\t\t\tfloat as = wg*src.w, at = (1.0-wg)*tgt.w, ao = as+at;\t\t\t\t\t\t\t\tvec4 nc = vec4( (as*src.xyz + at*tgt.xyz)/ao, ao ); \t\t\t\tgl_FragColor = "+(m?"nc":"cswitch*nc + (1.0- cswitch)*tgt")+"; \t\t\t}",x="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 wCoord;\t\t\t\t\t\tuniform vec4 srct;\t\t\tuniform vec4 wrct;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (verPos-srct.xy)/srct.zw;\t\t\t\twCoord = (verPos-wrct.xy)/wrct.zw;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}";
this.D2(l,x)};M.a.v2.prototype=new M.lW;M.a.v2.prototype.sw=function(s,m,l,x,a,P,o,G,_){if(this._3)this.LG("srct wrct wcolor awg dissv source target weight cswitch".split(" "));
else this.LG("srct awg dissv source target cswitch".split(" "));var j=M.og,U=this.sv;j.uniform4fv(U.srct,x);
if(this._3){j.uniform4fv(U.wrct,a);j.uniform1f(U.wcolor,P)}else{j.uniform4fv(U.cswitch,_)}j.uniform1f(U.awg,o);
j.uniform1f(U.dissv,G);var S=[U.source,s,U.target,m];if(this._3)S.push(U.weight,l);this.C6(S)};M.a.kp=function(){M.lW.call(this);
var s="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D prev;\t\t\tuniform sampler2D next;\t\t\tuniform sampler2D alpha;\t\t\t\t\t\tvarying vec2 coord;\t\t\t\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec3 or = texture2D(prev , coord).rgb;\t\t\t\tvec3 ir = texture2D(next , coord).rgb; \t\t\t\tfloat al = texture2D(alpha, coord).w; \t\t\t\tgl_FragColor = vec4( (ir-(1.0-al)*or)*(1.0/al) ,1.0 ); \t\t\t}",m="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 coord;\t\t\t\t\t\tuniform vec4 rct;\t\t\tvoid main(void) {\t\t\t\tcoord = verPos;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}";
this.D2(s,m)};M.a.kp.prototype=new M.lW;M.a.kp.prototype.sw=function(s,m,l,x){this.LG(["rct","prev","next","alpha"]);
var a=M.og,P=this.sv;a.uniform4fv(P.rct,[0,0,1,1]);this.C6([P.prev,m,P.next,l,P.alpha,x])};M.AK={Tz:{},a5:"\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 sCoord;\t\t\tvoid main(void) {\t\t\t\tsCoord = verPos;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"};
M.AK.Pu=function(s,m){var l=eb.Fg,x=[l.LQ,l.Hq,l.FY,l.qM,l.mF,l.tR,l.Oc,l.Eh].indexOf(s.type),a=M.AK.Tz[s.type];
if(a==null)a=M.AK.Tz[s.type]=new M.Tz[x];a.rR();a.sw(m,s);M.og.drawArrays(M.og.TRIANGLES,0,6)};M.Tz=[];
M.Tz[0]=function(){M.lW.call(this);this.DN={};var s="\t\t\tprecision mediump float;\t\t\t"+M.xJ.cG+"\t\t\t"+M.xJ.ja+"\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D map;\t\t\tuniform float toGray;\t\t\tuniform float presLum;\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tfloat olum = lum(src.rgb); \t\t\t\tsrc.rgb = toGray * vec3(olum) + (1.0-toGray)*src.rgb; \t\t\t\tfloat r = texture2D(map, vec2(src.r, 0)).r;\t\t\t\tfloat g = texture2D(map, vec2(src.g, 0)).g;\t\t\t\tfloat b = texture2D(map, vec2(src.b, 0)).b;\t\t\t\tvec3 col = vec3(r,g,b); \t\t\t\tif(presLum==1.0) { \t\t\t\t\tfloat nlum = lum(col); \t\t\t\t\tif(olum>nlum) col += (olum-nlum)/(1.0-nlum)*(ONE3-col); \t\t\t\t\telse if(nlum==0.0) col = ZERO3; \t\t\t\t\telse col = (olum/nlum) * col; \t\t\t\t}\t\t\t\tgl_FragColor = vec4(col,src.w);\t\t\t\t\t\t\t}";
this.D2(s,M.AK.a5)};M.Tz[0].prototype=new M.lW;M.Tz[0].prototype.sw=function(s,m){var l={o:m.qp,z:m.O6,S:m.My,lz:L.B(m.qp.length)},x=l.o.length;
if(this.DN["m"+x]==null){this.DN["m"+x]={aiY:new M.KY(x,1),du:L.B(x*4)}}var a=this.DN["m"+x];L.aC(l,a.du,0);
var P=a.aiY;P.set(a.du);this.LG(["source","map","toGray","presLum"]);var o=M.og,G=this.sv;o.uniform1f(G.toGray,m.Ka?1:0);
o.uniform1f(G.presLum,m.$K?1:0);this.C6([G.source,s,G.map,P.Vh])};M.Tz[1]=function(){M.lW.call(this);
this.a9d=new M.KY(256,1);this.ah5=L.B(256*4);var s="\t\t\t\tprecision mediump float;\t\t\t\t"+M.xJ.lu+"\t\t\t\t"+M.xJ.AR+"\t\t\t\t"+M.xJ.ZS+"\t\t\t\t\t\t\t\tuniform sampler2D source;\t\t\t\tuniform sampler2D map;\t\t\t\tuniform float cfa; \t\t\t\tuniform float cfb; \t\t\t\tuniform int colorize; \t\t\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\t\t\tvoid main(void) { \t\t\t\t\tvec4 src = texture2D(source, sCoord);\t\t\t\t\tvec3 rgb = src.rgb;\t\t\t\t\tfloat mn=min(rgb.r,min(rgb.g,rgb.b)), mx = max(rgb.r,max(rgb.g,rgb.b));\t\t\t\t\t\t\t\t\t\tvec3 hsl = rgbToHsl(rgb); \t\t\t\t\tfloat h = hsl.r, s = hsl.g, l = hsl.b; \t\t\t\t\t\t\t\t\t\tvec4 mapv = texture2D(map, vec2(h, 0));\t\t\t\t\tfloat nh = mapv.r; \t\t\t\t\tfloat sc = mapv.g*2.0-1.0; \t\t\t\t\tfloat lc = mapv.b*2.0-1.0; \t\t\t\t\t\t\t\t\t\tfloat cf = -lc, tv=mn;\t\t\t\t\tif(0.0<lc) { cf=lc; tv=mx; }\t\t\t\t\t\t\t\t\t\tfloat a0 = cfa + cfb*cf*tv, a1 = cfb*(1.0-cf);\t\t\t\t\trgb = a0 + a1 * rgb;\t\t\t\t\t\t\t\t\t\thsl = rgbToHsl(rgb); s = hsl.g; l = hsl.b; \t\t\t\t\tfloat ns = sc; \t\t\t\t\tif(colorize==0) {\t\t\t\t\t\tif(sc>0.0) sc = pow(tan((3.14159265359/2.0)*sc),1.3);\t\t\t\t\t\tns = min(s * (1.0 + sc), 1.0); \t\t\t\t\t} \t\t\t\t\t\t\t\t\t\tgl_FragColor = vec4(hslToRgb(nh,ns,l),src.w); \t\t\t\t\t\t\t\t\t}";
this.D2(s,M.AK.a5)};M.Tz[1].prototype=new M.lW;M.Tz[1].prototype.sw=function(s,m){L.aC({o:m.anq,z:m.uH,S:m.a3a,lz:L.B(256)},this.ah5);
this.a9d.set(this.ah5);this.LG(["source","map","cfa","cfb","colorize"]);var l=M.og,x=this.sv;l.uniform1f(x.cfa,m.atW);
l.uniform1f(x.cfb,m.gE);l.uniform1i(x.colorize,m.a8P);this.C6([x.source,s,x.map,this.a9d.Vh])};M.Tz[2]=function(){M.lW.call(this);
var s="\t\t\tprecision mediump float;\t\t\t"+M.xJ.lu+"\t\t\t"+M.xJ.Az+"\t\t\t"+M.xJ.B7+"\t\t\t"+M.xJ.AR+"\t\t\t"+M.xJ.ZS+"\t\t\t"+M.xJ.an$+"\t\t\t"+M.xJ.a8c+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform float vib; \t\t\tuniform float sat; \t\t\tuniform vec3 yF; \t\t\tconst float PI = 3.141592653; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\tvec3 vibrate(vec3 rgb) { \t\t\t\tvec3 yuv = rgbToYuv * rgb; \t\t\t\treturn yuvToRgb * (yuv * yF); \t\t\t} \t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec3 rgb = src.rgb; \t\t\t\trgb = pow(rgb,vec3(2.4)); \t\t\t\t\t\t\t\trgb = clamp(vibrate(rgb), 0.0, 1.0); \t\t\t\t\t\t\t\trgb = pow(rgb,vec3(1.0/2.4)); \t\t\t\t\t\t\t\tvec3 hsl = rgbToHsl(rgb); \t\t\t\tfloat nsat = max(0.0, min(1.0, hsl.y*(1.0+sat))); \t\t\t\trgb = hslToRgb(hsl.x, nsat, hsl.z); \t\t\t\t\t\t\t\tgl_FragColor = vec4(rgb,src.w); \t\t\t}";
this.D2(s,M.AK.a5)};M.Tz[2].prototype=new M.lW;M.Tz[2].prototype.sw=function(s,m){this.LG(["source","vib","sat","yF"]);
var l=M.og,x=this.sv;l.uniform1f(x.vib,m.AV[0]);l.uniform1f(x.sat,m.AV[1]);l.uniform3fv(x.yF,new Float32Array([m.AV[2],m.AV[3],m.AV[3]]));
this.C6([x.source,s])};M.Tz[3]=function(){M.lW.call(this);var s="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform mat4 trf; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec4 nsr = vec4(src.rgb,1.0); \t\t\t\tgl_FragColor = vec4((trf*nsr).rgb,src.w); \t\t\t\t\t\t\t}";
this.D2(s,M.AK.a5)};M.Tz[3].prototype=new M.lW;M.Tz[3].prototype.sw=function(s,m){this.LG(["source","trf"]);
var l=M.og,x=this.sv;l.uniformMatrix4fv(x.trf,!1,new Float32Array(L.G0.mP(m.pc)));this.C6([x.source,s])};
M.Tz[4]=function(){M.lW.call(this);var s="\t\t\tprecision mediump float; \t\t\t"+M.xJ._g+"\t\t\t"+M.xJ.lu+"\t\t\t"+M.xJ.ZS+"\t\t\t"+M.xJ.AR+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform vec3 mnm;\t \t\t\tuniform vec3 mxm;\t \t\t\tuniform vec3 shift; \t\t\tuniform float lim; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\t\t\t\t\tvec3 lab = rgbToLab(src.rgb);\t\t\t\tfloat scl = labSimilar(lab, mnm,mxm, lim);\t\t\t\t\t\t\t\tvec3 hsv = rgbToHsl(src.rgb); \t\t\t\tfloat nh = 2.0 + hsv[0]+shift[0]; \t\t\t\thsv[0] = fract(nh); \t\t\t\thsv[1] = max(0.0, min(1.0, hsv[1] + shift[1])); \t\t\t\thsv[2] = max(0.0, min(1.0, hsv[2] + shift[2])); \t\t\t\t\t\t\t\tvec3 rgb = hslToRgb(hsv[0], hsv[1], hsv[2]); \t\t\t\t\t\t\t\tgl_FragColor = vec4(mix(src.rgb,rgb,scl),src.w); \t\t\t\t\t\t\t}";
this.D2(s,M.AK.a5)};M.Tz[4].prototype=new M.lW;M.Tz[4].prototype.sw=function(s,m){this.LG(["source","mnm","mxm","shift","lim"]);
var l=M.og,x=this.sv;l.uniform3fv(x.mnm,new Float32Array(m.ap));l.uniform3fv(x.mxm,new Float32Array(m.Ot));
l.uniform3fv(x.shift,new Float32Array(m.shift));l.uniform1f(x.lim,m.nS);this.C6([x.source,s])};M.Tz[5]=function(){M.lW.call(this);
var s="\t\t\tprecision mediump float;\t\t\t"+M.xJ.ja+"\t\t\t"+M.xJ.NO+"\t\t\t"+M.xJ.dn+"\t\t\t"+M.xJ.AR+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform vec3 cfs[18]; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec3 rgb = src.rgb; \t\t\t\tvec3 hsl = rgbToHsl(rgb); \t\t\t\tfloat mx = max(rgb.r, max(rgb.g, rgb.b)); \t\t\t\tfloat mn = min(rgb.r, min(rgb.g, rgb.b)); \t\t\t\t\t\t\t\tvec3 CMY = ONE3 - rgb; \t\t\t\tvec3 d = ZERO3; \t\t\t\t\t\t\t\tfor(int j=0; j<9; j++) \t\t\t\t{ \t\t\t\t vec3 NCMY = CMY * cfs[j+j] + cfs[j+j+1]; \t\t\t\t\t\t\t\t\t\tfloat cfK = 0.0;\t\t\t\t\tif (j< 6) { \t\t\t\t\t\tcfK = hueCF(float(j)*(1.0/6.0), hsl.x); \t\t\t\t\t\tcfK = cfK * hsl.y * 2.0*min(hsl.z, 1.0-hsl.z); \t\t\t\t\t} \t\t\t\t\telse if(j==6) cfK = max(0.0,mn-0.5)*2.0;\t\t\t\t\telse if(j==7) cfK = 1.0-(abs(mx-0.5)+abs(mn-0.5));\t\t\t\t\telse cfK = max(0.0,0.5-mx)*2.0;\t\t\t\t\t\t\t\t\t\td += (max(ZERO3, min(ONE3, NCMY))-CMY)*cfK; \t\t\t\t} \t\t\t\t\t\t\t\tCMY = max(ZERO3, min(ONE3, CMY+d)); \t\t\t\trgb = ONE3 - CMY; \t\t\t\t\t\t\t\tgl_FragColor = vec4(rgb,src.w); \t\t\t\t\t\t\t}";
this.D2(s,M.AK.a5)};M.Tz[5].prototype=new M.lW;M.Tz[5].prototype.sw=function(s,m){this.LG(["source","cfs"]);
var l=M.og,x=this.sv;l.uniform3fv(x.cfs,m.agt);this.C6([x.source,s])};M.Tz[6]=function(){M.lW.call(this);
var s="\t\t\tprecision mediump float;\t\t\t"+M.xJ.lu+"\t\t\t"+M.xJ.NO+"\t\t\t"+M.xJ.dn+"\t\t\t"+M.xJ.AR+"\t\t\t"+M.xJ.ZS+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform float wght[6]; \t\t\tuniform float prms[6]; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec3 rgb = src.rgb; \t\t\t\t\t\t\t\tfloat tint=prms[0], hue=prms[1], lum=prms[2], mcf=prms[3], x0=prms[4], x1=prms[5]; \t\t\t\tvec3 hsl = rgbToHsl(rgb); \t\t\t\t\t\t\t\tfloat cf = 0.0;\t\t\t\tfor(int j=0; j<6; j++) cf += min(1.0, 1.7*(1.0-hsl.z)) * hsl.y * wght[j] * hueCF(hsl.x, float(j)*(1.0/6.0));\t\t\t\t\t\t\t\tfloat lig = max(0.0, min(1.0, hsl.z*(1.0+cf)));\t\t\t\tif(tint==1.0) { \t\t\t\t\tfloat totl = 0.0;\t\t\t\t\tif (lig<x0) totl = lig*(0.5/lum); \t\t\t\t\telse if(lig<x1) totl = lig + (mcf)*(0.5 - lum); \t\t\t\t\telse totl = 1.0 - (1.0-lig)*0.5/(1.0-lum); \t\t\t\t\t\t\t\t\t\thsl.x = hue; \t\t\t\t\thsl.y = min(1.0, mcf + 3.0*mcf*abs(lig-0.5*(x0+x1))); \t\t\t\t\thsl.z = totl; \t\t\t\t} \t\t\t\telse { hsl.x=0.0; hsl.y=0.0; hsl.z=lig; } \t\t\t\t\t\t\t\trgb = hslToRgb(hsl.x, hsl.y, hsl.z); \t\t\t\t\t\t\t\tgl_FragColor = vec4(rgb,src.w); \t\t\t\t\t\t\t}";
this.D2(s,M.AK.a5)};M.Tz[6].prototype=new M.lW;M.Tz[6].prototype.sw=function(s,m){this.LG(["source","wght","prms"]);
var l=M.og,x=this.sv,a=[m.ce,m.a7K,m.cG,m.ao8,m.uz,m.a8E];l.uniform1fv(x.wght,new Float32Array(m.asT));
l.uniform1fv(x.prms,new Float32Array(a));this.C6([x.source,s])};M.Tz[7]=function(){M.lW.call(this);this.XO={};
var s="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D lut;\t\t\tuniform float N;\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tfloat iN = 1.0/N; \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tfloat fb = 0.5*iN + src.b*(1.0-iN); \t\t\t\tfloat fg = 0.5*iN + src.g*(1.0-iN); \t\t\t\tfloat R = src.r*(N-1.0)*0.999999; \t\t\t\tfloat ir = floor(R)*iN; \t\t\t\t\t\t\t\tvec4 c0 = texture2D(lut, vec2(fb, ir +( fg )*iN)); \t\t\t\tvec4 c1 = texture2D(lut, vec2(fb, ir+iN+( fg )*iN)); \t\t\t\tvec4 rs = mix(c0,c1,R-floor(R)); \t\t\t\tgl_FragColor = vec4(rs.rgb,src.w); \t\t\t\t\t\t\t}";
this.D2(s,M.AK.a5)};M.Tz[7].prototype=new M.lW;M.Tz[7].prototype.sw=function(s,m){this.LG(["source","lut","N"]);
var l=M.og,x=this.sv,a=m.Vx,P=m.uN;if(this.XO["m"+a]==null)this.XO["m"+a]=new M.KY(a,a*a);var o=this.XO["m"+a];
o.set(P);l.uniform1f(x.N,a);this.C6([x.source,s,x.lut,o.Vh]);l.activeTexture(l.TEXTURE1);var G=l.LINEAR;
l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,G);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,G);
l.activeTexture(l.TEXTURE0)};M.filter={SX:{},a5:"1u,/0*&<>2OI;<m^XJZ;]d/vp^r|ows/)z{M>5g7:@5nVPLIGeVMX`|njge-'&-$V&)/$BbHB4D%GNx`KSI=_f_menp%E+%vwKB4&'XQY``edhootpjxp&%*'vhxY{#>5HINMDXX]YnVW",alx:0,a6Q:1,_j:2,adl:3,a5R:4,abt:5,vS:6,a8N:7};
M.filter.Pu=function(s,m){var l=M.filter,x,a=s.type+":"+(s.P1?s.P1.join(","):""),x=M.filter.SX[a];if(x==null)x=M.filter.SX[a]=new M.SX[s.type](s.P1);
x.rR();x.sw(m,s);M.og.drawArrays(M.og.TRIANGLES,0,6)};M.SX=[0,0,0,0,0,0,0,0,0,0,0,0];M.SX[7]=function(){M.lW.call(this);
var s="1%* !*709;O;?@DOaKTZOe/lhffrxv,#s#)($4VkJA@II=BzXTRR^dbwqcd6's%xN,(&&286K5>D9O]LIYXH)P1o]q{nvr.(yzL=4f69?4mLHECaRIT\\xjfca)~|noC2).)[8*+^U`_felkrn$R[aVlzaoxD:;@N|)/G)28-CQNtjkp~`&*#!&4u*-.(q}$<}'-\"8FBi_`esTz~wuz)i~\"#xvhi=,r~(U0$:9==3bw^MLUUINwne8gjpe/}opB;/FMMRQBX__d`dGXLo%P\\e$kca,Bkw!?uR.3.CQf0<E_DAQP@QYbxm!-+0.~2iJ0).)L4,*YjDIDg>zJRH2aS\\;jjpvD}#}N4";
this.D2(ia.lp(s),ia.lp(M.filter.a5))};M.SX[7].prototype=new M.lW;M.SX[7].prototype.sw=function(s,m){this.LG(["source","iwh","kern"]);
var l=M.og,x=this.sv;l.uniform2fv(x.iwh,m.Wl);l.uniform1fv(x.kern,m.a6z);this.C6([x.source,s])};M.SX[6]=function(s){M.lW.call(this);
var m=s[0],l=s[1],x=s[2],a="1%* !*709;O;?@DOaKTZOe/lhffrxv,#s#)($4VkJA@II=BzXTRR^dbwqcd6's%xN,(&&286K5>D9O]SEK%cQeobjf\"{mn@1(Z*-3(a@<97UF=HPl^ZWU|rpbc7&|\"|O,}~RITSZY`_fbwFOUJ`nUcl8./4Bp|#;|&,!7EAh[\"'zuV|!7<0+k!$%zkk0$J>'x~:=<d<.4[U<KMVNV`S,j\\]1 fr{I$w.-11'VkRA@II=BkbY,[^dY#qcd6/NVb<@#4(K`,8A_G?=g}GS\\zQ.ini~-Bkw!Lw&/HK^D=B=ar<JS|X]X{c[Y):sxs7mJy\"wa1#,j::@FsMRM}c",P=ia.lp(a);
P=P.replaceAll("PRC",x+".0");P=P.replaceAll("DIR",["x,0","0,x"][l]);this.D2(P,M.AK.a5)};M.SX[6].prototype=new M.lW;
M.SX[6].prototype.sw=function(s,m){this.LG(["source","iwh","rad"]);var l=M.og,x=this.sv;l.uniform2fv(x.iwh,m.Wl);
l.uniform1f(x.rad,m._s);this.C6([x.source,s])};M.SX[4]=function(s){M.lW.call(this);var m=s[0],l=s[1],x="\t\t\tprecision highp float;\t\t\tuniform sampler2D source;\t\t\tuniform vec2 iwh;\t\t\tuniform float rrad;\t\t\tuniform float tr;\t\t\t\t\t\tvarying vec2 sCoord;\t\t\tconst float PRC="+s[2]+".0; \t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 sclr = texture2D(source, sCoord);\t\t\t\tfloat rad = rrad; \t\t\t\tif(rad!=0.0) {\t\t\t\t\tvec4 sum=vec4("+["1.0,1.0,1.0,0.0","0.0,0.0,0.0,1.0","0.0"][l]+"); vec4 cnt = vec4(0.0);\t\t\t\t\tfor(float y=-PRC; y<=PRC; y++) {\t\t\t\t\t\tif(y<-rad || y>rad) continue; \t\t\t\t\t\tfor(float x=-PRC; x<=PRC; x++) { \t\t\t\t\t\t\tif("+["x<-rad || x>rad","(x*x+y*y)>rad*rad"][m]+") continue; \t\t\t\t\t\t\tvec4 clr = texture2D(source, sCoord+vec2(x,y)*iwh); \t\t\t\t\t\t\t"+["if(clr.w!=0.0) sum.rgb=min(sum.rgb,clr.rgb); sum.w=max(sum.w,clr.w)","sum.rgb=max(sum.rgb,clr.rgb); sum.w=min(sum.w,clr.w)","if(abs(sclr.r-clr.r)<tr) { sum.r+=clr.r; cnt.r+=1.0; };"+"if(abs(sclr.g-clr.g)<tr) { sum.g+=clr.g; cnt.g+=1.0; };"+"if(abs(sclr.b-clr.b)<tr) { sum.b+=clr.b; cnt.b+=1.0; };"][l]+"; \t\t\t\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\tsclr = "+(l==2?"vec4(sum.rgb/cnt.rgb, sclr.w)":"sum")+";\t\t\t\t}\t\t\t\tgl_FragColor=sclr; \t\t\t}";
this.D2(x,M.AK.a5)};M.SX[4].prototype=new M.lW;M.SX[4].prototype.sw=function(s,m){this.LG(["source","iwh","rrad","tr"]);
var l=M.og,x=this.sv;l.uniform2fv(x.iwh,m.Wl);l.uniform1f(x.rrad,m.hs);l.uniform1f(x.tr,m.ap4);this.C6([x.source,s]);
var a=l.LINEAR;a=l.NEAREST;l.activeTexture(l.TEXTURE0);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,a);
l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,a);l.activeTexture(l.TEXTURE0)};M.SX[5]=function(){M.lW.call(this);
var s="1%* !*709;O;?@DOaKTZOe/lhffrxv,#s#)($4VkJA@II=BzXTRR^dbwn_ntso BW6-050`>:88DJH]WIJ{lYj^4qmkkw}{1z$*~5C(7;DmKGEEQWUjT]cXn|egmoG&s(2%-)D>01bSJ|LOUJ$O^`hlzdmsh~-bPKGLZ9520N?6AIeWSPNuki[\\0~qht}K(yzNEPQVRg6?E:P^YX]X+!\"'5sef:)xQO*}4377-\\qXGJOJkbY,[^dY!6dpv/py t+96\\OwcEjn'rThklbP\\bz\\ek`v%!H;cO0VZr^?TWXNL>?paSK(a4cfla+ykl>7+A2DH+<0eD67jYAS ZNdcgg]-B)wz z<3%|EL/gc2;A6LZ#}HV^tTf ]o+\"{mnB9DEKOUOVW^d^efpjrrwsv,Zci^t#}pIt+&@HcKLXZ]^cVd\\gssxxP_cl$()55::q!%.EISUX[^_d`cxXW\\Wlz0m`7neqz+9N,~D2&<;??5dy`ONWWKPypbZ#8}!mukU%v ^..4:g;:L^I@LUt`_d_!wocyx||rBW>-,55).WNEwGJPElriRTZ\\\"7|";
this.D2(ia.lp(s),ia.lp(M.filter.a5))};M.SX[5].prototype=new M.lW;M.SX[5].prototype.sw=function(s,m){this.LG(["source","ssum","iwh","amnt","edgf"]);
var l=M.og,x=this.sv;l.uniform2fv(x.iwh,m.Wl);l.uniform1f(x.amnt,m.a0l);l.uniform1f(x.edgf,m.afk);this.C6([x.source,s,x.ssum,m.aiR])};
M.SX[3]=function(){M.lW.call(this);var s="1%* !*709;O@;=ETOUgQZ`Uk5rnllx~|2)y)/.*:\\qPGFOOCH!^ZXXdjh}wij<-y+~T2.,,8><Q;DJ?Uc[NR`.kgeeqwu+t}$x/=36(.gEA??KQOd^PQ#sjjbc>{wuu\"(&;5'(ZJ<@=JtRNLLX^\\qbYo2!tvv'@N,(&&286K<3IkZNPP`z(fThremi%~pqC4+]-06+d/?BBXEM2TTdugYZ.|v,\" qrF5)X,#=OAWACCSlkYoY[[k&!6pfx||{0!w2D-$>P<\\J`HhWioTKewc$s(o0|14JNDEJX>:,-_OE7G@qi[MN!pdo&|vhi<, ,>42$%WG=/H*8FySLTp\\g{&))4:;7CC;$0CSRPXZ_cg]Wd]quw~$}'-/50=wm $$#7-~8y(6L\\R<EKNTlZLeGUc#8}ykl?/yv./QI;-.`PDOe\\VHI{k_k}smcuyyx-8&w(!RJ6AW?K]bM?OHyq}}%'#lw.66B8\".@E0\"2+\\Tb`fbLXmxu\"wal %oaqj<4?@KOE/;PWXea]GRe_owv{nz~))3<\"}opC3,(&&UM?12dTHSi`ZLM oco\"wqgy}}|1'x)\"SK7BX@L^bmlqqxx},qZiksw&ox~s*8kpda^Z[`nMIFDbSJU]ykgdb* }opD3*|)2_:.DCGG=l\"hWV__SX\"xoBqtzo7Lz$*~5C+/=D;r:>RiYLP^}gZfo.z/Dr{\"v-;1#)d/3AH?cORDJ$UUygY_~>45:6,*{|O?6;6f5>D9O]T[$yz ~ubjb?66;Iw$*B$-3(>LIob).\"|^$(>C72s(+,\"rzrOFFKK+3+e77[PuiRDJehh0gY_'!gvx\"y\",~W&28P2;A6LZV}p7<0+k26LQE@!6KCBGC9'06+AO6NuTiKSK&WW{o6*rdj&)(P(y GA(79B:BL?wIImiU]Bddt&wij>5s,B3H2$*T[\\a]`c]DSU^V^h[4rde9(nz$Q, 6599/^sZIHQQEJsja4cfla+ykl>7u.D5GK.?3Vk:CI>TbIM)PTh obft4my#A.BW&/5*@N3K?wmnvpMYb!h$,-7>2nz$B~EMNTWS0<Ec;vENTI_mWfZ7pphi7%9uyB~#\\..R/G;tMMEFsbtnUaj)phfD2>>CC /#KO,8A_G?=]kcM\\Pyi[\\/'9384Iw!'{2@49>iW6:t@DRYPj-p{~^bpwn6os;D|!/6-PJgP[:>y|rsx+~ %2#ae1ko}%{?H $KNc2;A6LZAX!ww||chm7ry0En&L(-(H]'>S0<EcKCA|beywX`V@oajIxx~%R\"*n11ARD67jaippus_2adj_,y.98=<@GGLJ6h8;A6bQdonsrzx {~8rde90<:B@HFNI]=/0cZedkjqpxs)z#vm`luC qrF=,1,P8?V^^c_tZVHI{k_S2n`a4,zM| &zG5K6h8;A6bQfontp]0_bh]*w+@~pqD4(|Z7)*\\TCuEHNCo^s}{#',$pCru{p=+AJIQK8j:=C8dSezYKL~n`dk`;osp};*PSIJOBdHA=;;jbNBoWLuo-u`]tu80{o=%yCX**N8<9FcSx{rrwsm_cj_+x@tx t@/U*.5*UEhD7CLjRJHhv,yY]kri.uyv$A/BF.29.f6>4}M?H'VV\\b0i\\hq=#";
this.D2(ia.lp(s),ia.lp(M.filter.a5))};M.SX[3].prototype=new M.lW;M.SX[3].prototype.sw=function(s,m){this.LG("source iwh tdep rrad spec nois poly0 poly1".split(" "));
var l=M.og,x=this.sv;l.uniform2fv(x.iwh,m.Wl);l.uniform1f(x.tdep,m.a9y);l.uniform1f(x.rrad,m.hs);l.uniform2fv(x.spec,m.a3H);
l.uniform3fv(x.nois,m.agR);l.uniformMatrix4fv(x.poly0,!1,m.a38);l.uniformMatrix4fv(x.poly1,!1,m.a1r);
this.C6([x.source,s]);var a=l.LINEAR;l.activeTexture(l.TEXTURE0);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,a);
l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,a);l.activeTexture(l.TEXTURE0)};M.SX[0]=function(){M.lW.call(this);
var s="1%* !*709;O@;=ETOUgQZ`Uk5|uqoo{\" 5,|,21-=_tSJIRRFK$kd`^^jpn$}opB3 1%ZB;755AGEZTFGyiYT.unjhhtzx.w!'{2@7/3;5mUO=Q[NVRmgYZ,|sFux~sM5~(.#9G23E'?;AOZm_QR$th$}|$mv|q(62M?_E=1GFJJ@o%kZYbbV[%{o-{mn@9AHHMLCVW\\X\\?PDgo\\#jT]cXn|x5&F,$w.-11'VkRA@II=BkbVsbTU' z//43*=>C?C&7+NVCiQ;DJ?Uc`zl-rj^tswwm=R9('00$)RI=ZI;<mfatuzy}%%*&*l}q5=*P8\"+1&<JGbSsYQE[Z^^T$9 nmvvjo90$A0\"#TMH[\\a`WkkplpSdX{$p7~hqwl#1x0J=]CVWc[R:Qm^~doc }l(#8 irxm$2y2L>^DWXd\\S;Sn_ epe!~n)$9!zlm@0\"6V<.286-;;O=bTFGyqyTk(#`x31(8r*DA~7ROF.E_\\:Rlgj g]Seiih|drz1xs>$AV>?D>:75SD;FNj\\XUSztszdmsh~-({6V<PPUHVN9:L.FBHVatc6ehnc+/{sw yR:%-#l<.7uEEKQa\"g_Sihllb2G.|{%%x}G>5g7:@5\\`QEzbc";
this.D2(ia.lp(s),ia.lp(M.filter.a5))};M.SX[0].prototype=new M.lW;M.SX[0].prototype.sw=function(s,m){this.LG(["source","iwh","ld","shine"]);
var l=M.og,x=this.sv;l.uniform2fv(x.iwh,m.Wl);l.uniform3fv(x.ld,m.a8e);l.uniform1f(x.shine,m.a8k);this.C6([x.source,s,x.tang,m.wz])};
M.SX[1]=function(){M.lW.call(this);var s="1%* !*709;O@;=ETOUgQZ`Uk5|uqoo{\" 5,|,21-=_tSJIRRFK$kd`^^jpn$}opB3 1%ZB;755AGEZDMSH^lYfY4{tpnnz!~4}'-\"8F,?9FJEAya[I]gZb^ysef8) R\"%+ YA+4:/ES?;PHjLU[Pfths*!jsyn%3'3E?>E/8>3IWM?X:HVl-ribj'r}2<??JPQMYYQ:FYihfnpuy}smzs(,.5:4=CEKFS;1'9==<PF8Q3AOeukU^dgm&se~`n|<Q9:?)28-CQ<=O,PMZOtfXY+{n+%$+%vwI:.@`FQ<ZI;<mfwuzx}|%(1+0,/3u#uP82$%VG9>PpV@IORXp\\w-tn`a3$u|]0P6*I.3`H2;A6LZQqt$]V^z'**/+@(\"stF7}M@`F-<CZDIdhUux&mgYZ,|c4&F,r\")@*/L;-._Xddihppuqtxe&)6}gpvk\"0\"6V<($91S2abPfApq`r(oYbh]s\"sz+K1|x.&H'WWE[6efUg|dNW]Rhvha @&qm#z={KL:P+[[J\\qYCLRG]k]dYw8}iezr5sDD2H#SSBTiQ;DJ?UcOzl-rcbt'p%4+|$@&-mN<OdL6?E:P^Jvg(m^]o\"kd/t{p;!(hI7J_G1:@5KYS_ eVUgy])'}i63x `A0BW?9EeKVHTsZmnxoi,o#$)6005C+t}$x/=373>LlRLXf^DWQ^b]Yv$|hdyq4r\")@,L:MQ>^a_:IPgSsbtxe&)$9!vl~##\"6,0,7OP\\\\acjhmi~fglfb_]{lcnv3%!}{C=<C=/0aRNR[{aX+Z]cX&cth>& qrF5{++AaG?3IHLLBq'm\\[ddX]'}tGvy t<Q9 //S*KkQ<=O,PMZOthl~4{fndN}oxW''-3CcI0??pXY";
this.D2(ia.lp(s),ia.lp(M.filter.a5))};M.SX[1].prototype=new M.lW;M.SX[1].prototype.sw=function(s,m){this.LG(["source","iwh","isc","bristle"]);
var l=M.og,x=this.sv;l.uniform2fv(x.iwh,m.Wl);l.uniform1f(x.isc,m.ak6);l.uniform1f(x.bristle,m.a78);
this.C6([x.source,s])};M.SX[2]=function(){M.lW.call(this);var s="1%* !*709;O@;=ETOUgQZ`Uk5|uqoo{\" 5,|,21-=_tSJIRRFK$kd`^^jpn$zkz! {,NcB:*:6lTMIGGSYWlfXY+{hymC+$ }}*0.C-6<1GULEFOF#jc_]]iom#lu{p'5}4/1_GA/CM@HD_YKL}ne8gjpe?'py t+94%,-1@NY;DJ?Uc_rlkrh^ptts(p'\"<7G.0;NBX5KFHdmivuzwd]^g^*vopyp;5AV>?D>:75SD;FNj\\XUSztszdmsh~-x+S-&'0'S?89B9u]GPVKaofmx9~338F.(yzN=494IiOG;QPTTJy/udcll`e/&|O~\"(|DYA;-._P:GYy_tsxuvfZpossi9N5%t%!H?6h8;A6]eSWmZLM~w#$.(/0:14I1+|}O@(FfL6CpXBNTlQYbp]4*8 lB;G/{@CD>=D>01bSGYy_V)X[aV0wams,mv|q(6,YOPUcKAmfgjmns\"i_z}~xw~xjk=.~x7W=RQVSTD8NMQQGv,rbRb^&|p,4\"&<)z{MFQR\\V]^h_bw_LLpP^f|e_*e-C:;@<65<-'bU93lTUZB`!fWQ+rfx'<\"rl5w)|R:$-3(>LGRrXSDKLP_uc|2ypup&4I/*?-!76::0_t[JIRRFKtk_z0wnu,A~E-yy>,Z\\+=QK1D:9Fx`afN*|Yf4{|\"ltjT$u~]--39IiOFKFefrrwyah|2yz";
this.D2(ia.lp(s),ia.lp(M.filter.a5))};M.SX[2].prototype=new M.lW;M.SX[2].prototype.sw=function(s,m){this.LG(["source","tang","iwh","sigma","expo"]);
var l=M.og,x=this.sv;l.uniform2fv(x.iwh,m.Wl);l.uniform1f(x.sigma,m.atN);l.uniform1f(x.expo,m.a2_);this.C6([x.source,s,x.tang,m.wz]);
var a=l.LINEAR;l.activeTexture(l.TEXTURE0);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,a);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,a);
l.activeTexture(l.TEXTURE0)};function L(){}L.I={};L.alp={};L.a9o=function(){var s=[64,64,128,256,512,1024,2048],m=[];
for(var C=0;C<s.length;C++){var l=s[C],x=document.createElement("canvas");x.width=l;x.height=l;m.push(x.getContext("2d"))}return m}();
L.Uv=function(s,m){var l,x=L.a9o,C=1,a=Math.max(s,m);while(C<x.length&&a>x[C].canvas.width)C++;if(C==x.length){l=x[0];
var P=l.canvas;P.width=s;P.height=m}else{l=x[C];l.clearRect(0,0,s,m)}return l};L.c$=function(s,m,l){var x=new Uint32Array(m*l);
x[0]=s[0];for(var a=1;a<m;a++)x[a]=x[a-1]+s[a];for(var P=1;P<l;P++){var C=P*m;x[C]=x[C-m]+s[C];for(var a=1;
a<m;a++)x[C+a]=s[C+a]+x[C+a-1]+x[C+a-m]-x[C+a-m-1]}return x};L.rx=function(s,m,l,x,a,P){var o=(a-1)*m,G=P*m;
return s[G+x]-s[G+l-1]-s[o+x]+s[o+l-1]};L.Gg=function(s,m,l){var x={},a=0,P=0,o=new Uint32Array(s.buffer),G=o.length,_=Date.now();
for(var j=1;j<l-1;j++)for(var U=1;U<m-1;U++){var S=j*m+U,X=o[S];if(X>>>24<230)P++;if(x[X]==null){x[X]=!0;
a++}}if(P!=0||a<20)return!1;return!0};L.Oy=function(s,m,l,x,a,P){if(a==null)a=P=0;x=Math.log(x)/Math.log(2);
x=Math.round(x);for(var C=0;C<l;C++)for(var o=0;o<m;o++){var G=C*m+o<<2,_=L.HA(C+P,o+a,x);s[G]=s[G+1]=s[G+2]=_;
s[G+3]=255}};L.HA=function(C,s,m){return 255-((C>>>m)+(s>>>m)&1)*51};L.eZ=function(s){var m=s.toString(16);
while(m.length<6)m="0"+m;return m};L.j9=function(s){return parseInt(s,16)};L.cG=function(s){return.3*s.o+.59*s.z+.11*s.S};
L.ZV=function(s){return Math.max(s.o,s.z,s.S)-Math.min(s.o,s.z,s.S)};L.js=function(s,m,l){return.3*s+.59*m+.11*l};
L.ans=function(s,m,l){return Math.max(s,m,l)-Math.min(s,m,l)};L.NO=function(s,m){var l=m-s,x=Math.abs(l),a=l-1,P=l+1;
if(Math.abs(a)<x)l=a;else if(Math.abs(P)<x)l=P;return l};L.WF=function(s){return s<.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055};
L.pK=function(s){return s<.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)};L.abv=function(s,m){var l=Math.min(s.length,m.length);
for(var C=0;C<l;C+=4){var x=s[C],a=s[C+1],P=s[C+2];m[C]=16+Math.floor(65.481/255*x+128.553/255*a+24.966/255*P+.5);
m[C+1]=128-Math.floor(37.797/255*x-74.203/255*a+112/255*P+.5);m[C+2]=128+Math.floor(112/255*x-93.786/255*a-18.214/255*P+.5);
m[C+3]=s[C+3]}};L.a74=function(s,m,l){var x,a,P,o=Math.max(s,m,l),G=Math.min(s,m,l);P=o;if(o!=0)a=(o-G)/o;
else a=0;if(a==0)x=0;else{var _=o-G,j=(o-s)/_,U=(o-m)/_,S=(o-l)/_;if(s==o)x=S-U;else if(m==o)x=2+j-S;
else x=4+U-j;x*=1/6;if(x<0)x=x+1}return{Cm:x,zd:a,S:P}};L.a0q=function(s,m,l){var x=0,a=0,P=0;if(m==0)x=a=P=l;
else{var o=(s-Math.floor(s))*6,G=Math.floor(o),_=o-Math.floor(o),j=l*(1-m),U=l*(1-m*_),S=l*(1-m*(1-_));
switch(G){case 0:x=l;a=S;P=j;break;case 1:x=U;a=l;P=j;break;case 2:x=j;a=l;P=S;break;case 3:x=j;a=U;
P=l;break;case 4:x=S;a=j;P=l;break;case 5:x=l;a=j;P=U;break}}return{o:x,z:a,S:P}};L.AR=function(s,m,l){var x=Math.max(s,m,l),a=Math.min(s,m,l),P=0,o=0,G=(x+a)*.5;
if(x!=a){var _=x-a;o=G>.5?_/(2-(x+a)):_/(x+a);switch(x){case s:P=(m-l)/_+(m<l?6:0);break;case m:P=(l-s)/_+2;
break;case l:P=(s-m)/_+4;break}P*=1/6}return{Cm:P,zd:o,b_:G}};L.ZS=function(s,m,l){var x,a,P;if(m==0)x=a=P=l;
else{var o=l<.5?l*(1+m):l+m-l*m,G=2*l-o;x=L.lu(G,o,s+1/3);a=L.lu(G,o,s);P=L.lu(G,o,s-1/3)}return{o:x,z:a,S:P}};
L.lu=function(s,m,l){if(l<0)l+=1;if(l>1)l-=1;if(l<1/6)return s+(m-s)*6*l;if(l<1/2)return m;if(l<2/3)return s+(m-s)*(2/3-l)*6;
return s};L.Az=function(s,m,l){var x=Math.max(s,m,l),a=Math.min(s,m,l),P,o,G=x,_=x-a;o=x==0?0:_/x;if(x==a)P=0;
else{switch(x){case s:P=(m-l)/_+(m<l?6:0);break;case m:P=(l-s)/_+2;break;case l:P=(s-m)/_+4;break}P*=1/6}return{Cm:P,zd:o,yt:G}};
L.B7=function(s,m,l){var x,a,P,C,o,G,_,j;C=Math.floor(s*6);o=s*6-C;G=l*(1-m);_=l*(1-o*m);j=l*(1-(1-o)*m);
switch(C%6){case 0:x=l,a=j,P=G;break;case 1:x=_,a=l,P=G;break;case 2:x=G,a=l,P=j;break;case 3:x=G,a=_,P=l;
break;case 4:x=j,a=G,P=l;break;case 5:x=l,a=G,P=_;break}return{o:x,z:a,S:P}};L.WW=function(){var s=[],m=[];
for(var C=0;C<2e3;C++){var l=C/1e3;s[C]=L.pK(l);m[C]=l>.008856?Math.pow(l,1/3):(903.3*l+16)*(1/116)}return[s,m]}();
L._g=function(s,m,l){var x=L.WW[0],a=L.WW[1];s=x[~~(s*(1e3/255))];m=x[~~(m*(1e3/255))];l=x[~~(l*(1e3/255))];
var P=L.G0.ai6,o=P[0]*s+P[1]*m+P[2]*l,G=P[4]*s+P[5]*m+P[6]*l,_=P[8]*s+P[9]*m+P[10]*l;o=o*(100/96.72);
G=G*(100/100);_=_*(100/81.427);return L.th(o,G,_)};L.th=function(s,m,l){var x=L.WW[1],a=x[~~(s*1e3)],P=x[~~(m*1e3)],o=x[~~(l*1e3)];
return{J5:116*P-16,lz:500*(a-P),S:200*(P-o)}};L.LZ=function(s,m,l){var x=903.3,a=.008856,P=(s+16)/116,o=P*P*P,G=P-l/200,_=G*G*G,j=m/500+P,U=j*j*j,S=_>a?_:(116*G-16)/x,X=o>a?o:(116*P-16)/x,c=U>a?U:(116*j-16)/x,y=c*96.72,O=X*100,p=S*81.427,D=L.G0.mC(L.G0.sx,[y/100,O/100,p/100,0]);
for(var C=0;C<4;C++)D[C]=Math.max(0,Math.min(255,L.WF(D[C])*255));return{o:D[0],z:D[1],S:D[2]}};L.ll=function(s,m,l,x,a){var P=s.J5,o=s.lz,G=s.S,_=(P<m.J5?m.J5-P:l.J5<P?l.J5-P:0)*(1/100),j=(o<m.lz?m.lz-o:l.lz<o?l.lz-o:0)*(1/116),U=(G<m.S?m.S-G:l.S<G?l.S-G:0)*(1/116),S=Math.sqrt(_*_+j*j+U*U)*1.35;
return S<=x?Math.min(1,1.17*(1-S*a)):0};L.A1=function(s,m,l){var x=s.length,a=.3,P=.59,o=.11;if(l){a=l[0];
P=l[1];o=l[2]}for(var C=0;C<x;C+=4)m[C>>2]=~~(s[C+0]*a+s[C+1]*P+s[C+2]*o+.5)};L.s2=function(s,m){var l=m.length;
for(var C=0;C<l;C+=4){var x=s[C>>>2];m[C]=x;m[C+1]=x;m[C+2]=x}};L.aC=function(s,m){var l=s.lz,x=s.o,a=s.z,P=s.S,o=Math.min(s.lz.length,m.buffer.byteLength>>>2),G=4*Math.floor(o/4),_=new Uint32Array(m.buffer),j=new Uint32Array(l.buffer),U=new Uint32Array(x.buffer),S=new Uint32Array(a.buffer),X=new Uint32Array(P.buffer);
for(var C=0;C<G;C+=4){var c=j[C>>2],y=X[C>>2],O=S[C>>2],p=U[C>>2];_[C]=c<<24|(y&255)<<16|(O&255)<<8|p&255;
_[C+1]=(c&65280)<<16|(y&65280)<<8|O&65280|(p&65280)>>>8;_[C+2]=(c&16711680)<<8|y&16711680|(O&16711680)>>>8|(p&16711680)>>>16;
_[C+3]=c&4278190080|(y&4278190080)>>>8|(O&4278190080)>>>16|(p&4278190080)>>>24}for(var C=G;C<o;C++)_[C]=l[C]<<24|P[C]<<16|a[C]<<8|x[C]};
L.ZI=function(s,m){var l=m.lz,x=m.o,a=m.z,P=m.S,o=Math.min(m.lz.length,s.buffer.byteLength>>>2),G=4*Math.floor(o/4),_=new Uint32Array(s.buffer),j=new Uint32Array(l.buffer),U=new Uint32Array(x.buffer),S=new Uint32Array(a.buffer),X=new Uint32Array(P.buffer);
for(var C=0;C<G;C+=4){var c=_[C],y=_[C+1],O=_[C+2],p=_[C+3];U[C>>2]=c&255|(y&255)<<8|(O&255)<<16|p<<24;
S[C>>2]=(c&65280)>>8|y&65280|(O&65280)<<8|(p&65280)<<16;X[C>>2]=(c&16711680)>>16|(y&16711680)>>8|O&16711680|(p&16711680)<<8;
j[C>>2]=c>>>24|y>>>24<<8|O>>>24<<16|p&4278190080}for(var C=G;C<o;C++){var D=_[C];x[C]=D>>0&255;a[C]=D>>8&255;
P[C]=D>>16&255;l[C]=D>>24&255}};L.hy=function(s,m,l){var x=new Uint8Array(s.buffer),a=Math.min(x.length/4,m.length);
for(var C=0;C<a;C++){m[C]=x[(C<<2)+l]}};L._Y=function(s,m,l){var x=new Uint8Array(m.buffer),a=new Uint32Array(s.buffer),P=Math.min(x.length/4,s.length),C=0;
while(C+4<P){var o=a[C>>>2];x[(C<<2)+l]=o&255;x[(C<<2)+l+4]=o>>>8&255;x[(C<<2)+l+8]=o>>>16&255;x[(C<<2)+l+12]=o>>>24;
C+=4}while(C<P){x[(C<<2)+l]=s[C];C++}};L.MP=function(s,m,l){if(l==null)l=0;var x=new Uint32Array(s.buffer),a=x.length;
for(var C=0;C<a;C++)x[C]=x[C]&l|m};L.afr=function(s,m,l,x,a){if(a==null)a=0;var P=new Uint32Array(s.buffer);
l=l.pF(m);var o=l.x-m.x,G=l.y-m.y,_=l.e,j=l.l,U=m.e;for(var S=0;S<j;S++){var C=(G+S)*U+o;for(var X=0;
X<_;X++){P[C]=P[C]&a|x;C++}}};L.qv=function(s,m){var l=Math.min(s.buffer.byteLength,m.buffer.byteLength),x=l>>>2,s=new Uint32Array(s.buffer,0,x),m=new Uint32Array(m.buffer,0,x);
m.set(s)};L.yb=function(s,m){var l=s.buffer.byteLength,x=m.buffer.byteLength,a=new Uint32Array(s.buffer,0,l>>2),P=new Uint32Array(m.buffer,0,x>>2);
if(l!=x)return!1;var o=a.length;for(var C=0;C<o;C++)if(P[C]!=a[C])return!1;return!0};L.ms=function(s){var m=new Uint32Array(s.buffer),l=m.length;
for(var C=0;C<l;C++)m[C]=~m[C]};L.aoZ=function(s){var m=s.length;for(var C=0;C<m;C+=4){s[C]=~s[C];s[C+1]=~s[C+1];
s[C+2]=~s[C+2]}};L.arE=function(s){var m=s.length;for(var C=3;C<m;C+=4)s[C]=~s[C]};L.at9=function(s){return s+(s%4==0?0:4-s%4)};
L.B=function(s,m){if(m==null)m=!1;if(!m)s=L.at9(s);try{var l=new Uint8Array(s)}catch(iX){alert("Not enough RAM! (need "+Math.round(s/(1<<20))+" MB)",7e3);
throw"low_ram"}return l};L.$c=function(s){var m=s.length,l=s[m-2],x=s[m-1];while(x.e>=2&&x.l>=2){var a=L.$T(l,x);
s.push(a.du,a.rect);l=a.du;x=a.rect}};L.lx=function(s){var m=s.length,l=s[m-2],x=s[m-1];while(x.e>=2&&x.l>=2){var a=L.TG(l,x);
s.push(a.du,a.rect);l=a.du;x=a.rect}};L.$T=function(s,m,l){var x=m.e,a=m.l,P=x>>1,o=a>>1,G=new bU(m.x,m.y,P,o),_=l&&l.length==P*o*4?l:L.B(P*o*4),j=new Uint32Array(s.buffer),U=new Uint32Array(_.buffer);
for(var S=0;S<o;S++)for(var X=0;X<P;X++){var c=S*P+X,y=(S<<1)*x+(X<<1),O=j[y],p=j[y+1],D=j[y+x],f=j[y+x+1],T=O>>>24,I=p>>>24,H=D>>>24,b=f>>>24,R=T+I+H+b;
if(R==1020){var W=(O>>>0&255)+(p>>>0&255)+(D>>>0&255)+(f>>>0&255)+2>>>2,J=(O>>>8&255)+(p>>>8&255)+(D>>>8&255)+(f>>>8&255)+2>>>2,u=(O>>>16&255)+(p>>>16&255)+(D>>>16&255)+(f>>>16&255)+2>>>2;
U[c]=255<<24|u<<16|J<<8|W}else if(R==0)U[c]=0;else{var W=(O>>>0&255)*T+(p>>>0&255)*I+(D>>>0&255)*H+(f>>>0&255)*b,J=(O>>>8&255)*T+(p>>>8&255)*I+(D>>>8&255)*H+(f>>>8&255)*b,u=(O>>>16&255)*T+(p>>>16&255)*I+(D>>>16&255)*H+(f>>>16&255)*b,e=1/R;
W=~~(W*e+.5);J=~~(J*e+.5);u=~~(u*e+.5);U[c]=R+2>>>2<<24|u<<16|J<<8|W}}return{rect:G,du:_}};L.pH=function(s,m,l){var x=m.e,a=m.l,P=x>>1,o=a>>1,G=new bU(m.x,m.y,P,o),_=l&&l.length==P*o*4?l:L.B(P*o*4),j=new Uint32Array(s.buffer),U=new Uint32Array(_.buffer);
for(var S=0;S<o;S++)for(var X=0;X<P;X++){var c=S*P+X,y=(S<<1)*x+(X<<1),O=j[y],p=j[y+1],D=j[y+x],f=j[y+x+1],T=2+(O>>>0&255)+(p>>>0&255)+(D>>>0&255)+(f>>>0&255)>>>2,I=2+(O>>>8&255)+(p>>>8&255)+(D>>>8&255)+(f>>>8&255)>>>2,H=2+(O>>>16&255)+(p>>>16&255)+(D>>>16&255)+(f>>>16&255)>>>2,b=2+(O>>>24&255)+(p>>>24&255)+(D>>>24&255)+(f>>>24&255)>>>2;
U[c]=b<<24|H<<16|I<<8|T}return{rect:G,du:_}};L.a6P=function(s,m,l){var x=m.e,a=m.l,P=2*Math.floor(x/3),o=2*Math.floor(a/3),G=new bU(m.x,m.y,P,o),_=l&&l.length==P*o*4?l:L.B(P*o*4),j=new Uint32Array(s.buffer),U=new Uint32Array(_.buffer);
for(var S=0;S<o;S+=2)for(var X=0;X<P;X+=2){var c=S*P+X,y=(S*3>>>1)*x+(X*3>>>1),O=j[y],p=j[y+1],D=j[y+2],f=j[y+x],T=j[y+1+x],I=j[y+2+x],H=j[y+x+x],b=j[y+1+x+x],R=j[y+2+x+x],W=O>>>24<<2,J=(O>>>16&255)*W,u=(O>>>8&255)*W,e=(O&255)*W,Q=p>>>24<<1,q=(p>>>16&255)*Q,Z=(p>>>8&255)*Q,E=(p&255)*Q,z=D>>>24<<2,V=(D>>>16&255)*z,Y=(D>>>8&255)*z,d=(D&255)*z,w=f>>>24<<1,A=(f>>>16&255)*w,$=(f>>>8&255)*w,i=(f&255)*w,K=T>>>24,h=(T>>>16&255)*K,F=(T>>>8&255)*K,N=(T&255)*K,iQ=I>>>24<<1,jB=(I>>>16&255)*iQ,k=(I>>>8&255)*iQ,ab=(I&255)*iQ,f_=H>>>24<<2,fc=(H>>>16&255)*f_,g8=(H>>>8&255)*f_,bH=(H&255)*f_,cR=b>>>24<<1,hr=(b>>>16&255)*cR,h$=(b>>>8&255)*cR,gE=(b&255)*cR,d8=R>>>24<<2,hG=(R>>>16&255)*d8,f7=(R>>>8&255)*d8,hX=(R&255)*d8,fB=W+Q+w+K,e5=z+Q+iQ+K,g9=f_+cR+w+K,cL=d8+cR+iQ+K,bf=fB==0?0:1/fB,gF=e5==0?0:1/e5,iC=g9==0?0:1/g9,ax=cL==0?0:1/cL,e7=0,dO=0,h1=0,hL=0;
e7=~~(.5+(e+E+i+N)*bf);dO=~~(.5+(u+Z+$+F)*bf);h1=~~(.5+(J+q+A+h)*bf);hL=~~(.5+fB*(1/9));U[c]=hL<<24|h1<<16|dO<<8|e7;
e7=~~(.5+(d+E+ab+N)*gF);dO=~~(.5+(Y+Z+k+F)*gF);h1=~~(.5+(V+q+jB+h)*gF);hL=~~(.5+e5*(1/9));U[c+1]=hL<<24|h1<<16|dO<<8|e7;
e7=~~(.5+(bH+gE+i+N)*iC);dO=~~(.5+(g8+h$+$+F)*iC);h1=~~(.5+(fc+hr+A+h)*iC);hL=~~(.5+g9*(1/9));U[c+P]=hL<<24|h1<<16|dO<<8|e7;
e7=~~(.5+(hX+gE+ab+N)*ax);dO=~~(.5+(f7+h$+k+F)*ax);h1=~~(.5+(hG+hr+jB+h)*ax);hL=~~(.5+cL*(1/9));U[c+P+1]=hL<<24|h1<<16|dO<<8|e7}return{rect:G,du:_}};
L.akx=function(s,m,l){var x=m.e,a=m.l,P=2*Math.floor(x/3),o=2*Math.floor(a/3),G=new bU(m.x,m.y,P,o),_=l&&l.length==P*o*4?l:L.B(P*o*4),j=new Uint32Array(s.buffer),U=new Uint32Array(_.buffer);
for(var S=0;S<o;S+=2)for(var X=0;X<P;X+=2){var c=S*P+X,y=(S*3>>>1)*x+(X*3>>>1),O=j[y],p=j[y+1],D=j[y+2],f=j[y+x],T=j[y+1+x],I=j[y+2+x],H=j[y+x+x],b=j[y+1+x+x],R=j[y+2+x+x],W=(O>>>16&255)<<2,J=(O>>>8&255)<<2,u=(O&255)<<2,e=(p>>>16&255)<<1,Q=(p>>>8&255)<<1,q=(p&255)<<1,Z=(D>>>16&255)<<2,E=(D>>>8&255)<<2,z=(D&255)<<2,V=(f>>>16&255)<<1,Y=(f>>>8&255)<<1,d=(f&255)<<1,w=T>>>16&255,A=T>>>8&255,$=T&255,i=(I>>>16&255)<<1,K=(I>>>8&255)<<1,h=(I&255)<<1,F=(H>>>16&255)<<2,N=(H>>>8&255)<<2,iQ=(H&255)<<2,jB=(b>>>16&255)<<1,k=(b>>>8&255)<<1,ab=(b&255)<<1,f_=(R>>>16&255)<<2,fc=(R>>>8&255)<<2,g8=(R&255)<<2,bH=0,cR=0,hr=0;
bH=~~(.5+(u+q+d+$)*(1/9));cR=~~(.5+(J+Q+Y+A)*(1/9));hr=~~(.5+(W+e+V+w)*(1/9));U[c]=255<<24|hr<<16|cR<<8|bH;
bH=~~(.5+(z+q+h+$)*(1/9));cR=~~(.5+(E+Q+K+A)*(1/9));hr=~~(.5+(Z+e+i+w)*(1/9));U[c+1]=255<<24|hr<<16|cR<<8|bH;
bH=~~(.5+(iQ+ab+d+$)*(1/9));cR=~~(.5+(N+k+Y+A)*(1/9));hr=~~(.5+(F+jB+V+w)*(1/9));U[c+P]=255<<24|hr<<16|cR<<8|bH;
bH=~~(.5+(g8+ab+h+$)*(1/9));cR=~~(.5+(fc+k+K+A)*(1/9));hr=~~(.5+(f_+jB+i+w)*(1/9));U[c+P+1]=255<<24|hr<<16|cR<<8|bH}return{rect:G,du:_}};
L.pl=function(s){var m=255,l=s.length;l-=l&31;for(var C=3;C<l;C+=32)m=m&s[C]&s[C+4]&s[C+8]&s[C+12]&s[C+16]&s[C+20]&s[C+24]&s[C+28];
return m!=255};L.ajM=function(s,m,l,x){var a=L.$T,P=L.a6P,G=0;if(!L.pl(s)){a=L.pH;P=L.akx}var o={du:s,rect:m},_=l;
while(_<.499){G++;_*=2}for(var C=0;C<G;C++)o=a(o.du,o.rect,x);if(_<.5001)o=a(o.du,o.rect,x);else o=P(o.du,o.rect,x);
return o};L.ag6=function(s,m,l,x){var a=L.TG,P=L.ah,o={du:s,rect:m},G=0,_=l;while(_<.499){G++;_*=2}for(var C=0;
C<G;C++)o=a(o.du,o.rect,x);if(_<.5001)o=a(o.du,o.rect,x);else o=P(o.du,o.rect,x);return o};L.TG=function(s,m,l){var x=m.e,a=m.l,P=x>>1,o=a>>1,G=new bU(m.x,m.y,P,o);
if(s==null)return{rect:G};var _=l&&l.length>=P*o?l:L.B(P*o);for(var j=0;j<o;j++){var U=j*P;for(var S=0;
S<P;S++){var X=(j<<1)*x+(S<<1);_[U+S]=2+s[X]+s[X+1]+s[X+x]+s[X+x+1]>>>2}}return{rect:G,du:_}};L.ah=function(s,m,l){var x=m.e,a=m.l,P=2*Math.floor(x/3),o=2*Math.floor(a/3),G=new bU(m.x,m.y,P,o);
if(s==null)return{rect:G};var _=l&&l.length>=P*o?l:L.B(P*o);for(var j=0;j<o;j+=2)for(var U=0;U<P;U+=2){var S=j*P+U,X=(j*3>>>1)*x+(U*3>>>1),c=s[X]<<2,y=s[X+1]<<1,O=s[X+2]<<2,p=s[X+x]<<1,D=s[X+1+x],f=s[X+2+x]<<1,T=s[X+x+x]<<2,I=s[X+1+x+x]<<1,H=s[X+2+x+x]<<2;
_[S]=~~(.5+(c+y+p+D)*(1/9));_[S+1]=~~(.5+(O+y+f+D)*(1/9));_[S+P]=~~(.5+(T+I+p+D)*(1/9));_[S+P+1]=~~(.5+(H+I+f+D)*(1/9))}return{rect:G,du:_}};
L.kV=function(s,m,l,x,a){var P=m.pF(x);if(a)P=P.pF(a);var o=Math.max(0,P.x-m.x),G=Math.max(0,P.x-x.x),_=Math.max(0,P.y-m.y),j=Math.max(0,P.y-x.y),U=P.e,S=P.l;
for(var C=0;C<S;C++){var X=(_+C)*m.e+o,c=(j+C)*x.e+G;for(var y=0;y<U;y++){l[c+y]=s[X+y]}}};L.oK=function(s,m,l,x){if(m.yb(x)){L._Y(s,l,3);
return}var a=m.pF(x),P=Math.max(0,a.x-m.x),o=Math.max(0,a.x-x.x),G=Math.max(0,a.y-m.y),_=Math.max(0,a.y-x.y),j=a.e,U=a.l;
for(var C=0;C<U;C++){var S=(G+C)*m.e+P,X=(_+C)*x.e+o;for(var c=0;c<j;c++)l[(X+c<<2)+3]=s[S+c]}};L.Pw=function(s,m,l,x){var a=m.pF(x),P=Math.max(0,a.x-m.x),o=Math.max(0,a.x-x.x),G=Math.max(0,a.y-m.y),_=Math.max(0,a.y-x.y),j=a.e,U=a.l;
for(var C=0;C<U;C++){var S=(G+C)*m.e+P,X=(_+C)*x.e+o;for(var c=0;c<j;c++)l[X+c]=s[(S+c<<2)+3]}};L.yx=function(s,m,l,x,a){if(m.yb(x)&&(a==null||a.yb(x))){L.qv(s,l);
return}s=new Uint32Array(s.buffer),l=new Uint32Array(l.buffer);var P=m.pF(x);if(a)P=P.pF(a);var o=Math.max(0,P.x-m.x),G=Math.max(0,P.x-x.x),_=Math.max(0,P.y-m.y),j=Math.max(0,P.y-x.y),U=P.e,S=P.l,X=U&3,c=X==0?U:U-X;
for(var C=0;C<S;C++){var y=(_+C)*m.e+o,O=(j+C)*x.e+G;l.set(new Uint32Array(s.buffer,y*4,U),O)}};L.Ld=function(s,m,l,x){var a=m.pF(x),P=Math.max(0,a.x-m.x),o=Math.max(0,a.x-x.x),G=Math.max(0,a.y-m.y),_=Math.max(0,a.y-x.y),j=a.e,U=a.l,S=s.lz,X=s.o,c=s.z,y=s.S,O=l.lz,p=l.o,D=l.z,f=l.S;
for(var C=0;C<U;C++){var T=(G+C)*m.e+P,I=(_+C)*x.e+o;for(var H=0;H<j;H++){O[I+H]=S[T+H];p[I+H]=X[T+H];
D[I+H]=c[T+H];f[I+H]=y[T+H]}}};L.t1=function(s){var m=s.length;for(var C=0;C<m;C+=4){var l=s[C+3];if(l==255)continue;
s[C]=~~(s[C]*l*(1/255)+.5);s[C+1]=~~(s[C+1]*l*(1/255)+.5);s[C+2]=~~(s[C+2]*l*(1/255)+.5)}};L.z8=function(s){var m=s.length;
for(var C=0;C<m;C+=4){var l=s[C+3];if(l==0||l==255)continue;var x=255/l;s[C]=~~(s[C]*x+.5);s[C+1]=~~(s[C+1]*x+.5);
s[C+2]=~~(s[C+2]*x+.5)}};L.D_=function(s,m){for(var C=0;C<s.length;C++)if(s[C]!=m)return!1;return!0};
L.Dh=function(s){return s+1+(s>>>8)>>>8};L.round=function(s,m){if(m==null)m=128;var l=s.length;for(var C=0;
C<l;C++)s[C]=s[C]<m?0:255};L.EU=function(s,m){var l=s.length;for(var C=0;C<l;C++)s[C]=Math.round(s[C]*m)};
L.Sf=function(s,m){var l=new Uint32Array(s.buffer),x=new Uint32Array(m.buffer),a=l.length;for(var C=0;
C<a;C++){var P=l[C],o=x[C];x[C]=L.Dh((P>>>24)*(o>>>24))<<24|L.Dh((P>>>16&255)*(o>>>16&255))<<16|L.Dh((P>>>8&255)*(o>>>8&255))<<8|L.Dh((P&255)*(o&255))}};
L.$n=function(s,m){var l=s.length;for(var C=0;C<l;C++)m[(C<<2)+3]=L.Dh(m[(C<<2)+3]*s[C])};L.arT=function(s,m,l,x){var a=Math.max(0,x.x-m.x),P=Math.max(0,m.x-x.x),o=Math.max(0,x.y-m.y),G=Math.max(0,m.y-x.y),_=Math.min(m.x+m.e,x.x+x.e)-Math.max(m.x,x.x),j=Math.min(m.y+m.l,x.y+x.l)-Math.max(m.y,x.y);
for(var C=0;C<j;C++){var U=(o+C)*m.e+a,S=(G+C)*x.e+P;for(var X=0;X<_;X++){l[S]=L.Dh(l[S]*s[U]);U++;S++}}};
L.Iq=function(s,m,l,x){var a=Math.max(0,x.x-m.x),P=Math.max(0,m.x-x.x),o=Math.max(0,x.y-m.y),G=Math.max(0,m.y-x.y),_=Math.min(m.x+m.e,x.x+x.e)-Math.max(m.x,x.x),j=Math.min(m.y+m.l,x.y+x.l)-Math.max(m.y,x.y);
for(var C=0;C<j;C++){var U=(o+C)*m.e+a,S=((G+C)*x.e+P<<2)+3;for(var X=0;X<_;X++){l[S]=L.Dh(l[S]*s[U]);
U++;S+=4}}};L.nW=function(s,m,l,x){var a=Math.max(0,x.x-m.x),P=Math.max(0,m.x-x.x),o=Math.max(0,x.y-m.y),G=Math.max(0,m.y-x.y),_=Math.min(m.x+m.e,x.x+x.e)-Math.max(m.x,x.x),j=Math.min(m.y+m.l,x.y+x.l)-Math.max(m.y,x.y);
for(var C=0;C<j;C++){var U=((o+C)*m.e+a<<2)+3,S=((G+C)*x.e+P<<2)+3;for(var X=0;X<_;X++){l[S]=L.Dh(l[S]*s[U]);
U+=4;S+=4}}};L.XU=function(s){var m=new Float64Array(256),l=new Float64Array(256),x=new Float64Array(256),a=new Float64Array(256),P=s.length,o=0;
for(var C=0;C<P;C+=4){var G=s[C+3],_=G*(1/255);l[s[C+0]]+=_;x[s[C+1]]+=_;a[s[C+2]]+=_;o+=G}for(var C=0;
C<256;C++)m[C]=l[C]+x[C]+a[C];return[m,l,x,a,P>>>2,o/255]};L.bK=function(s,m){var l=new Uint32Array(s.buffer),x=l.length;
for(var C=0;C<x;C++){var a=l[C],P=a&255,o=a>>8&255,G=a>>16&255,_=a>>24&255;l[C]=m[P]|m[o]<<8|m[G]<<16|m[_]<<24}};
L.a8C=function(s,m,l,x,a,P,o){var G=new Uint32Array(s.buffer),_=new Uint32Array(m.buffer),j=G.length,U=0;
while(256<<U<l.length)U++;if(!o&&!P){for(var C=0;C!=j;C++){var S=G[C],X=(S&255)<<U,c=(S>>>8&255)<<U,y=(S>>>16&255)<<U,O=l[X],p=x[c],D=a[y];
_[C]=O|p<<8|D<<16|S&4278190080}return}for(var C=0;C<j;C++){var S=G[C],X=(S&255)<<U,c=(S>>>8&255)<<U,y=(S>>>16&255)<<U;
if(P)X=c=y=Math.round(X*.3+c*.59+y*.11);var O=l[X],p=x[c],D=a[y];if(o){var f=L.js(X,c,y),T=L.js(O,p,D);
if(f>T){var I=(f-T)/(255-T);O+=I*(255-O);p+=I*(255-p);D+=I*(255-D)}else if(T==0)O=p=D=0;else{var I=f/T;
O=I*O;p=I*p;D=I*D}}_[C]=O|p<<8|D<<16|S&4278190080}};L.zQ=function(s,m){var l=m.e,x=m.l,top=0,a=0,P=0,o=0,G=0;
G=0;for(var _=0;_<x;_++){var j=_*l;for(var C=0;C<l;C++)G|=s[j+C];if(G!=0)break;top++}if(top==x)return new bU(0,0,0,0);
G=0;for(var _=x-1;_>=0;_--){var j=_*l;for(var C=0;C<l;C++)G|=s[j+C];if(G!=0)break;P++}var U=x-P;G=0;
for(var C=0;C<l;C++){for(var _=top;_<U;_++)G|=s[_*l+C];if(G!=0)break;a++}G=0;for(var C=l-1;C>=0;C--){for(var _=top;
_<U;_++)G|=s[_*l+C];if(G!=0)break;o++}var S=new bU(m.x+a,m.y+top,l-a-o,x-top-P);return S};L.XA=function(s,m,l,x){if(x==null)x=[!0,!0,!0,!0];
if(l==null)l=0;var a=new Uint32Array(s.buffer),P=m.e,o=m.l,top=0,G=0,_=0,j=0,U=!1,S=[a[0],a[a.length-1],0][l];
U=!1;if(x[0])for(var X=0;X<o;X++){var c=X*P;for(var C=0;C<P;C++)if(a[c+C]!=S)U=!0;if(U)break;top++}U=!1;
if(x[2])for(var X=o-1;X>=0;X--){var c=X*P;for(var C=0;C<P;C++)if(a[c+C]!=S)U=!0;if(U)break;_++}U=!1;
if(x[1])for(var C=0;C<P;C++){for(var X=0;X<o;X++)if(a[X*P+C]!=S)U=!0;if(U)break;G++}U=!1;if(x[3])for(var C=P-1;
C>=0;C--){for(var X=0;X<o;X++)if(a[X*P+C]!=S)U=!0;if(U)break;j++}var y=new bU(m.x+G,m.y+top,P-G-j,o-top-_);
return y.Xh()?new bU(0,0,0,0):y};L.zr=function(s){var m=L.zQ(s.channel,s.rect);if(m.yb(s.rect))return;
var l=L.B(m.k());L.kV(s.channel,s.rect,l,m);s.channel=l;s.rect=m};L.vb=function(s){var m=L.B(s.buffer.length>>2);
L.hy(s.buffer,m,3);var l=L.zQ(m,s.rect);if(l.yb(s.rect))return;var x=new L.B(l.k()*4);L.yx(s.buffer,s.rect,x,l);
s.buffer=x;s.rect=l};L.extend=function(s,m,l){if(s.rect.kq(m))return;var x=s.rect.if(m),a=L.B(x.k());
if(l!=null)a.fill(l);L.kV(s.channel,s.rect,a,x);s.rect=x;s.channel=a};L.asV=function(s,m){if(m.Xh()||s.rect.kq(m))return;
var l=s.rect.if(m),x=L.B(l.k()*4);L.yx(s.buffer,s.rect,x,l);s.rect=l;s.buffer=x};L.qi=function(s,m,l){if(!l.j_(s))return!1;
var x=Math.floor(s.x)-l.x,a=Math.floor(s.y)-l.y,C=a*l.e+x;return m[C]>128};L.afQ=function(s,m,l){if(!l.j_(s))return!1;
var x=Math.floor(s.x)-l.x,a=Math.floor(s.y)-l.y,C=a*l.e+x;return m[4*C+3]>128};L.$s=function(s){if(L.VR.length<s){L.VR=L.B(s);
L.VR.fill(255)}return L.VR};L.VR=L.B(0);L.dV=function(s){if(L.G7.length<s)L.G7=L.B(s);return L.G7};L.G7=L.B(0);
L.KY=function(s){this.lz=L.B(s);this.o=L.B(s);this.z=L.B(s);this.S=L.B(s)};L.KY.prototype.clone=function(){var s=this.lz.length,m=new L.KY(1);
m.lz=this.lz.slice(0);m.o=this.o.slice(0);m.z=this.z.slice(0);m.S=this.S.slice(0);return m};L.I.agr=function(s,m,l,x,a){var P=a[0]+1,o=a[1],G=Math.abs(o-25)/4,_=a[2],j=_%2+_*_>>1,U=L.I.C;
U.D2(m,l);var S=U.mw(1),X=U.mw(1),c=U.mw(1);U.Yd(s,x,_,_,j);U.q$(x);U.sq(x,S);U.SI(S,X,P,P,1);U.SI(S,c,P,P,P*P);
U.sub(c,X);U.Sf(X,G);(o<25?U.sub:U.add)(S,X);U.b9(X,x);U.Rl(x)};L.I.aiC=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=a[0]*2.55,G=a[1],_=G>>1,j=a[2]*.25,U=P.mw(4),S=P.mw(1),X=P.mw(1);P.ZC(s,U,G,1,!0,_);
P.ZC(s,x,G,1,!1,_);P.gV(s,S);P.qh(S,o);P.oP(S,X,3);P.sP(x,X,U);P.Zs(U,x,j)};L.I.a6y=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);P.O$(a[3]);var o=a[0]*-3+80,G=a[1]*-3+80,_=a[2]/2+.5,j=a[4],U=a[5],S=P.mw(1),X=P.mw(1),c=P.mw(1),y=P.mw(1),O=P.mw(4),p=P.mw(4);
P.gV(s,S);P.qv(S,X);P.HB(S,G,5);P.hm(S,.4,0);P.oP(S,c,3);P.a_(c,S,9,3,!0,27);P.qv(X,c);P.ms(c);var D=P.qm(o,5,c);
for(var C=0;C<P.xD;C++){X[C]=D[255-X[C]]}P.hm(X,.4,0);P.qv(X,c);P.oP(c,y,2);P.a_(y,c,5,3,!1,15);P.Sf(S,_);
P.Sf(c,_);P.qX(x,2155905279);P.qX(p,j);P.qX(O,U);P.sP(p,S,x);P.sP(O,c,x)};L.I.ak7=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=new Uint8Array(256),G=5+10*a[1];G+=a[1]>3?(a[1]-3)*10:0;var _=~~(a[2]*.73)+50,j=Math.min(_+G,128),U=j-_,S=-255*_;
for(var C=0;C<256;C++){var X=C*65;o[C]=P.Ui(S/U);S+=255}var c=P.mw(1),y=P.mw(1),O=P.mw(1);P.gV(s,c);
P.qv(c,O);P.oP(c,y,2*a[0]+1);P.sub(y,c);P.Sf(c,65);P.a_(c,y,9,3,!0,20);for(var C=0;C<P.xD;C++){var p=O[C],D=y[C];
c[C]=D>0?~~((D*p+(255-D)*128)/255):128}P.oP(c,y,3);P.a_(y,c,15,2,!0,16);P.a_(y,O,15,2,!1,15);P.lb(c,O);
P.NX(O,y,2);P.IG(y,o);P.oP(y,c,2);P.f8(c,x)};L.I.aoL=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);var o=2*a[0]+1,G=P.ps[a[1]],_=a[2]*5.1,j=a[3],U=P.mw(1),S=P.mw(1),X=P.mw(4),c=P.mw(4);
P.qX(X,j);P.q$(X,x);P.Pv(U,_);P.b9(U,x);P.Rl(x,X);P.gV(s,S);P.oP(S,U,o);P.sub(U,S);P.Sf(S,G);P.a_(S,U,9,3,!0,20);
P.sP(s,U,X);P.SZ(X,x,3);P.ZC(x,X,15,2,!0,16);P.ZC(x,c,15,2,!1,16);P.lb(X,c);P.Zs(c,x,2)};L.I.a9J=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=(15-a[0])/4+1,G=(15-a[1])/4+1,_=a[2],j=a[3],U=P.u2(a[4]),S=a[5]+1,X=a[6],c=a[7],y=a[8],O=P.mw(1),p=P.mw(1),D=P.mw(1),f=P.mw(1),T=P.mw(4),I=P.mw(4);
P.K9(D,_,j,X);P.gV(s,p);P.oP(p,O,5);P.Pz(D,O,f,S,U);P.Sf(f,o);P.jX(f,2);P.ms(O);P.Pz(D,O,p,S,U);P.Sf(p,G);
P.jX(p,2);P.qX(T,2155905279);P.qX(I,c);P.qX(x,y);P.sP(T,p,I);P.sP(I,f,x)};L.I.acS=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);P.O$(a[3]);var o=a[0],G=a[1]/10,_=a[2]/10,j=P.mw(1),U=P.mw(1),S=P.mw(1),X=P.aJ(),c=P.aJ(),y=P.aJ();
P.Lr(j);P.oP(j,U,11);P.oP(U,j,11);P.ke(j,X);P.qS(s,j);P.qv(j,S);P.oP(j,U,9);P.oP(U,j,9);P.ke(j,c);P.PW(c,y,5);
P.PW(y,c,5);P.IE(X,.8);P.a9c(X,c,.8,.9);P.oQ(c,j,o);P.SI(j,U,2,2,1);P.SI(U,j,2,2,3);P.SI(j,U,2,2,3);
P.SI(S,j,5,5,13);P.iK(U,j,U,G);P.HG(j,U,U,_);P.Pz(U,U,j,5,1);P.q$(s,x);P.b9(j,x);P.Rl(x)};L.I.a6f=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=a[0],G=a[1]/2,_=a[2],j=o/2,U=P.mw(4),S=P.mw(4);P.qv(s,x);for(var X=0;X<_;X++){P.ZC(x,U,o,1,!0,j);
P.ZC(x,S,o,1,!1,j);P.lb(S,U);P.SZ(U,S,2);P.Zs(S,x,G)}};L.I.a3f=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);
var o=a[0]*10,G=a[1]*4.9,_=a[2]*4.9,j=P.mw(1),U=P.mw(1),S=P.mw(4),X=P.mw(4);P.gV(s,j);P.qh(j,P.aoa(j,o));
P.oP(j,U,3);P.ZC(s,S,5,1,!1,1);P.ZC(s,x,15,2,!0,16);P.sP(x,U,S);P.q$(S,x);P.sq(x,j);P.HB(j,G,_);P.b9(j,x);
P.Rl(x)};L.I.aja=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);P.O$(a[4]);var o=a[0]/20,G=[0,.75,1,1.05,1.1,1.15,1.2,1.25,1.3,1.35,1.4,1.45,1.5,1.6,1.7,1.8,2,2.5,3,3.5,4][a[1]],_=[0,.25,.5,.75,.9,1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2,2.25,2.5,3,3.5,4][a[2]],j=a[3],U=new Int16Array(256);
for(var C=0;C<256;C++){U[C]=~~((C-128)*o)}var S=P.mw(1),X=P.mw(1),c=P.mw(4);P.gV(s,S);P.oP(S,X,25);P.Sf(X,G);
P.jX(X,_);P.oP(X,S,25);P.Lr(X);P.HT(S,X,U);P.qv(s,x);P.qX(c,j);P.sP(c,S,x)};L.I.ate=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=a[0]+5,G=15-a[1],_=o*o/2,j=1-(3-a[2])/10,U=~~(G*G*j-1),S=~~(G*G*(1-j));if(S==0)S=1;var X=P.mw(1),c=P.mw(1),y=P.mw(1),O=P.mw(4);
P.gV(s,y);P.SI(y,X,o,o,_);P.oP(y,c,o);P.sub(X,c);P.qh(c,1);P.Yd(s,O,G,G,U);P.Yd(s,x,G,G,S);P.sP(O,c,x)};
L.I.a7W=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);P.O$(a[3]);var o=(20-a[0])*.05,G=a[1]*-2.75+60,_=65-G,j=a[2]/10,U=P.mw(1),S=P.mw(1);
P.qS(s,S);var X=P.qm(G,_,S);P.q$(s,x);P.sq(x,S);P.Lr(U);P.xU(S,U,o);P.IG(S,X);P.Sf(S,a[2]/10);P.add(U,S);
P.b9(S,x);P.Rl(x)};L.I.a2l=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);var o=5+a[0],G=15-a[1],_=a[2],j=o*o/2+o*o%2*1,U=1-(3-a[2])/10,S=~~(G*G*U-1),X=~~(G*G*(1-U));
if(X==0)X=1;var c=P.mw(1),y=P.mw(1),O=P.mw(1),p=P.mw(1),D=P.mw(1);P.qS(s,y);P.NX(y,c,3);P.SI(c,y,2,2,1);
var f=P.qm(20,20,y);P.IG(y,f);P.oP(y,D,5);P.SI(D,c,o,o,j);P.SI(D,y,G,G,S);P.SI(D,O,G,G,X);P.oP(D,p,o);
P.sub(c,p);P.qh(p,1);P.AN(y,p,O);P.q$(s,x);P.b9(O,x);P.Rl(x)};L.I.ahq=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);P.O$(a[5]);var o=P.xD,G=P._q,_=a[0],j=a[1],U=a[2],S=a[3],X=a[4],c=.05*_+1,y=_/100,O=_>>1,p=2*_-100,D=+(j==9),f=+(j==7),T=[4,1][D],I=[3,2][D],H=[1,2][f],b=[2,1][f],R=[50,75][D],W=j<4?U:(U>>1)+50,J=P.oe(R,W),u=P.n3(S),e=P.n3(X),Q=P.mw(4),q=P.mw(4),Z=P.mw(1),E=P.mw(1);
function z(x,J){if(W!=50){P.Z5(x,J)}}function V(s,jB){for(var C=0;C<o;C++){s[C]=P.Ui(s[C]+(jB[C]-128)*y)}}function Y(s,jB){for(var C=0,k=0;
C<o;C++){s[k]=P.Ui(s[k]+(jB[k]-128)*y);s[k+1]=P.Ui(s[k+1]+(jB[k+1]-128)*y);s[k+2]=P.Ui(s[k+2]+(jB[k+2]-128)*y);
k+=4}}function d(s,x){P.Lr(q);P.qv(s,x);Y(x,q);z(x,J)}function w(jB){var k=0;for(var ab=0;ab<12;ab++)k+=P.random();
return P.Ui(O*(k-6)+jB)}function A(s,x){P.qv(s,x);for(var C=0;C<G;C+=4){x[C]=w(x[C]);x[C+1]=w(x[C+1]);
x[C+2]=w(x[C+2])}z(x,J)}function $(s,x){P.qv(s,x);for(var C=0;C<G;C+=4){if(P.random()<y){x[C]=u[0];x[C+1]=u[1];
x[C+2]=u[2]}}z(x,J)}function i(s,x){P.Lr(Q);P.Yd(Q,q,I,I,T);P.qv(s,Q);Y(Q,q);P.Yd(Q,x,5,5,13);z(x,J)}function K(s,x){P.Lr(q);
P.qv(s,Q);Y(Q,q);z(x,J);P.Yd(Q,x,I,I,T)}function h(s,x){P.qv(s,Q);z(x,J);P.gV(Q,Z);for(var C=0,jB=0;
C<o;C++){var k=((p-Z[C]+255)*128.5+.5)/32767;if(P.random()<=k){x[jB++]=e[0];x[jB++]=e[1];x[jB++]=e[2]}else{x[jB++]=u[0];
x[jB++]=u[1];x[jB++]=u[2]}x[jB]=s[jB];jB++}}function F(s,x){P.q$(s,x);P.sq(x,Z);P.NX(Z,E,c);P.SI(E,Z,I,I,T);
P.IG(Z,J);P.b9(Z,x);P.Rl(x)}function N(s){var jB=0;if(j==8){for(var k=0;k<m;k++){s[jB++]=~~(P.random()*255)}for(var C=1;
C<l;C++){for(var k=0;k<m;k++){s[jB++]=s[k]}}}else{for(var C=0;C<l;C++){var ab=~~(P.random()*255);for(var k=0;
k<m;k++){s[jB++]=ab}}}}function iQ(s,x){P.gV(s,Z);P.Lr(E);V(Z,E);N(E);V(Z,E);P.SZ(s,Q,9);P.SZ(Q,q,9);
P.oP(Z,E,2);P.IG(E,J);P.oP(E,Z,2);P.q$(q,x);P.b9(Z,x);P.Rl(x)}[d,A,$,i,i,K,h,iQ,iQ,F][j](s,x)};L.I.ado=function(s,m,l,x,a){var P=[-1e3,34,51,61,71,80,87,95,101,108,113,119,124,129,134,139,143,148,153,157,161,165,168,172,175,180,183,186,190,194,197,200,203,207,210,213,216,218,222,225,228,230,233,236,239,241,244,247,250,252,255],o=L.I.C,O=0,p,C,H,b,R,W=0,J=1,u=255;
o.D2(m,l);o.O$(a[3]);var G=o.mw(1),_=o.mw(1);o.gV(s,G);var j=a[0],U=a[1],S=U<=50?P[U]/255:1+(255-P[101-U])/255,X=a[2],c=G.length,y=new Float32Array(c),D=1+1/10*j,f=(1-1/D)/2,T=16/256,I=m-1;
for(C=0;C<o.xD;C++){y[C]=G[C]/255;_[C]=j==1?o.random()<1/255?u:J:J}function e(Q,q){var Z=Q*m+q;if(_[Z]!=J||Q>=l||q>=m){return}var b=y[Z],E=S-b,z=o.random(),V=z/D+f;
if(O==0||Math.abs(R-b)>T){p=V<=E?W:u;O=~~(o.random()*j)}else if(.1<z){O--}else{O=0}_[Z]=p;R=b}if(X==0){for(C=0;
C<m;C++){for(H=0;H<m;H++){b=C+H;if(b>=m)break;e(H,I-b)}O=0}for(C=1;C<l;C++){for(H=0;H<l;H++){b=C+H;if(b>=l||H>=m)break;
e(b,I-H)}O=0}}else if(X==1){for(C=0;C<l;C++){for(H=0;H<m;H++){e(C,H)}O=0}}else if(X==2){for(C=0;C<m;
C++){for(H=0;H<m;H++){b=C+H;if(b>=m)break;e(H,b)}O=0}for(C=1;C<l;C++){for(H=0;H<l;H++){b=C+H;if(b>=l||H>=m)break;
e(b,H)}O=0}}else{for(C=0;C<m;C++){for(H=0;H<l;H++){e(H,C)}O=0}}o.f8(_,x)};L.I.a01=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=a[0],G=a[1],_=a[2],j=P.mw(1),U=P.mw(1),S=P.mw(1),X=P.mw(4),c=P.mw(4);P.gV(s,j);P.SI(j,U,3,3,1);
P.SI(j,S,3,3,9);P.sub(S,U);P.oP(U,j,3);P.HB(j,40,10);P.ZC(s,x,o,2,!1,o);P.ZC(s,X,o,2,!0,o);P.qX(c,255);
P.sP(x,j,c);P.sP(c,j,X);P.Zs(X,x,1);P.q$(x);P.sq(x,j);P.HB(j,G,_);P.b9(j,x);P.Rl(x)};L.I.ajZ=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);P.O$(a[3]);var o=a[0],G=a[1],_=a[2]/10;o=o+G;var j=P.mw(1),U=P.mw(1),S=P.aJ(),X=P.aJ();P.Lr(j);
P.oP(j,U,11);P.oP(U,j,11);P.ke(j,S);P.PW(S,X,5);P.PW(X,S,5);P.IE(X,.97);P.oQ(X,j,o);P.SI(j,U,G,G,1);
P.qS(s,j);P.iK(U,j,U,.6);P.HG(j,U,U,_);P.Pz(U,U,j,5,1);P.q$(s,x);P.b9(j,x);P.Rl(x)};L.I.aeY=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=Math.abs(a[0]),G=o+[1,0,1,2,1,2,1,2,3,2,3,2,3,2,3,2,3,4,3,4,5,4,5,4,5][o],_=2*o+1,j=a[1]/10,U=j*13/15,S=P.mw(1),X=P.mw(1),c=P.mw(1),y=P.mw(1),O=P.mw(4),p=P.mw(4),D=P.mw(4),f=P.mw(4),T=P.mw(4);
P.gV(s,S);if(a[0]>=0){P.ms(S)}P.qv(S,c);P.oP(S,y,G);P.oP(y,S,G);P.Sf(S,j);P.qv(S,X);P.oP(S,y,_);P.oP(y,S,_);
P.Sf(S,U);P.qX(D,a[2]);P.qX(f,a[3]);P.qX(T,a[4]);P.sP(D,S,f,O);P.sP(T,X,O,p);P.sP(f,c,p,x);P.sq(s,c,3);
P.b9(c,x,3)};L.I.arX=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);P.O$(a[5]);var o=a[0]*5.1,G=a[1]/100,_=P.aW[a[2]],j=P.mw(1),U=P.mw(1),S=P.mw(1);
P.gV(s,j);P.Pv(U,255);P.Lr(S);P.qh(j,o);P.xU(U,j,.7);P.xU(S,j,G);P.Pz(j,j,U,5,_);P.qv(s,x);P.arm(x,o,a[4],a[3]);
P.q$(x);P.b9(U,x);P.Rl(x)};L.I.a9e=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);var o=a[0],G=4-a[1],_=11-a[2],j=P.mw(1),U=P.mw(1),S=P.mw(4);
P.qS(s,U);for(var C=0;C<G;C++){P.qv(U,j);P.D0(j,U,o,o)}P.SZ(s,S,o);P.q$(S,S);P.b9(U,S);P.Rl(S,S);(_<11?P.a9K:P.qv)(S,x,_)};
L.I.acg=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);P.O$(a[2]);var o=a[0]+5,G=~~(o/5+1),_=~~(o/2)+1,j=_*_,U=~~(o/3),S=P.aW[a[1]],X=new Array(256);
for(var C=0;C<256;C++){X[C]=~~(.2*(C-128))}var c=P.mw(1),y=P.mw(1);P.arU(s,x,o);P.q$(x);P.sq(x,c);P.Lr(y);
P.HT(c,y,X);P.a52(y,o,o,G,G);P.iK(c,y,c,1);P.oP(c,y,U);P.oP(y,c,U);P.SI(c,y,_,_,j);P.Pz(y,y,c,5,S);P.b9(c,x);
P.Rl(x)};L.I.ah1=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);var o=P.mw(1),G=P.mw(1),_=P.mw(1),j=P.aJ(),U=P.aJ();
P.gV(s,o);P.oP(o,G,a[2]);P.qh(G,a[0]*5.1);P.SI(G,o,2,2,4);P.oP(o,G,3);P.oP(G,o,3);P.qv(o,_);P.oP(o,G,5);
P.oP(G,o,5);P.ke(o,j);P.PW(j,U,5);P.PW(U,j,5);P.akU(j,G,a[1]);P.ms(G);P.iK(_,G,_,1);P.f8(_,x)};L.I.ar2=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=1<<7-a[2],G=P.mw(1),_=P.mw(1),j=P.mw(1);P.qS(s,_);P.oP(_,G,3);P.qv(G,_);P.oP(G,j,a[0]+5);
P.sub(j,_);P.HB(_,1,a[1]);P.Sf(G,1/o);P.Sf(G,o);P.sub(G,_);P.q$(s,x);P.b9(_,x);P.Rl(x)};L.I.aqo=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);P.O$(a[3]);var o=P.mw(1),G=P.mw(1),_=P.mw(1);P.gV(s,o);P.a4j(G,a[0]/50);P.oP(G,_,3);P.SI(o,G,9,9,41);
P.HB(G,a[1],a[2]);P.iK(G,_,_,.75);P.HG(G,_,G,.5);P.qv(G,o);P.SI(o,_,3,3,8);P.iK(_,G,_,.75);P.Sf(_,1.2);
P.NX(_,o,1);P.oP(o,_,2);P.NX(_,o,2);P.Sf(o,1.2);P.oP(o,_,2);P.f8(_,x)};L.I.anb=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=a[0]+9,G=a[1]/2,_=a[2],j=a[3],U=P.u2(a[4]),S=a[5]+1,X=a[6],c=P.mw(1),y=P.mw(1),O=P.mw(4),p=P.mw(4);
P.K9(y,_,j,X);P.MF(s,x,o,1,1);P.MF(x,O,o,1,1);P.a7L(O,O,p,7,G);P.Sf(p,1.2);P.jX(p,1.2);P.Pz(y,c,c,S,U);
P.Sf(c,3);P.qv(s,x);P.sP(p,c,x)};L.I.asB=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);P.O$(a[3]);var o=a[0]+4,G=o*2/5+(o%5|0);
o--;var _=a[1]*-2.75+60,j=65-_,U=a[2]/10,S=P.mw(1),X=P.mw(1);P.Lr(S);P.qS(s,X);var c=P.qm(_,j,X);P.q$(s,x);
P.sq(x,X);P.xU(X,S,.8);P.IG(X,c);P.Sf(X,U);P.add(S,X);P.a_(X,S,o,3,!1,G);P.b9(S,x);P.Rl(x)};L.I.at6=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);P.O$(a[3]);var o=a[0]+5,G=(o*o>>1)+o%2,_=a[1]/10,j=a[2],U=(j*j>>1)+j%2,S=P.mw(1),X=P.mw(1),c=P.mw(1),y=P.mw(4),O=P.mw(4),p=P.mw(4);
P.Lr(c);P.q$(s,p);P.sq(p,S);P.xU(S,c,.8);P.oP(c,S,3);P.NX(S,c,_);P.b9(c,p);P.Rl(p,p);P.gV(p,c);P.SI(c,S,o,o,G);
P.oP(c,X,o);P.sub(S,X);P.qh(X,1);P.Yd(p,y,7,7,40);P.Yd(p,O,7,7,10);P.sP(y,X,O);P.Yd(O,x,j,j,U)};L.I.aft=function(s,m,l,x,a){var P=L.I.C,G=255,C,j;
P.D2(m,l);var o=a[0];if(o<2)G=o;else if(o<12)G=5*o-5;else if(o<47)G=2*o+28;else if(o<50){C=o-47;G=125+12.5*C+12.5*C*C}var _=new Uint8Array(256);
for(C=75,j=15;C<256;C++,j+=24)_[C]=Math.min(255,j);var U=P.mw(1),S=P.mw(1),X=P.mw(1);P.gV(s,U);P.oP(U,S,11);
P.oP(S,X,11);P.sub(X,U);P.Sf(U,8);P.sub(X,U);P.qh(U,G);P.ms(U);P.oP(U,S,5);P.qh(S,51);P.oP(S,U,a[1]);
P.oP(U,S,a[1]);P.ms(S);P.IG(S,_);P.f8(S,x)};L.I.a3X=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);var o=P.ps[a[1]],G=a[2],_=G*1.5,j=P.mw(1),U=P.mw(1),S=P.mw(1);
P.qS(s,j);P.a_(j,U,15,2,!0,15);P.qv(U,S);P.HB(S,G,_);P.oP(S,j,3);P.oP(U,S,a[0]);P.sub(S,U);P.Sf(U,o);
P.sub(j,U);P.oP(U,j,3);P.a_(j,U,3,1,!1,1);P.SZ(s,x,15);P.q$(x);P.b9(U,x);P.Rl(x)};L.I.af4=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);P.O$(a[3]);var o=a[0]*5.1,G=16-a[1],_=[1,1,1.05,1.1,1.15,1.2,1.25,1.3,1.35,1.4,1.45,1.5,1.6,1.7,1.8,2,2.25,2.5,2.75,3,3.5,4,5,6,8,10][a[2]],j=P.mw(1),U=P.mw(1),S=P.mw(1);
P.gV(s,j);P.qh(j,o);P.oP(j,U,G);P.oP(U,j,G);P.Lr(S);P.HG(j,S,S,1);P.iK(j,S,j,.75);P.Sf(j,_);P.jX(j,_);
P.SI(j,U,2,2,2);P.f8(U,x)};L.I.a0E=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);var o=a[0]+9,G=a[1]+9,_=a[2],j=a[3],U=P.u2(a[4]),S=a[5]+1,X=a[6],c=P.mw(1),y=P.mw(1),O=P.mw(1),p=P.mw(1),D=P.mw(1),f=P.mw(4);
P.qS(s,c);P.D0(c,O,o,o);P.oP(O,c,G);P.qv(O,D);P.qv(c,p);P.sub(D,p);P.sub(c,D);P.add(D,p);P.Sf(p,10);
P.K9(y,_,j,X);P.Pz(y,c,D,S,U);P.AN(D,p,O,.8);P.SZ(s,f,9);P.SZ(f,x,9);P.q$(x);P.b9(O,x);P.Rl(x)};L.I.a1d=function(s,m,l,x,a){var P=L.I.C;
P.D2(m,l);var o=16-a[0],G=a[1]*8,_=1-(3-a[2])/10,j=~~(o*o*_-1),U=~~(o*o*(1-_));if(U==0)U=1;var S=P.mw(1),X=P.mw(1),c=P.mw(1),y=P.mw(4);
P.gV(s,c);P.SI(c,S,7,7,25);P.oP(c,X,7);P.sub(S,X);P.qh(X,1);P.Yd(s,y,o,o,j);P.Yd(s,x,o,o,U);P.sP(y,X,x);
P.q$(x);P.sq(x,S);P.SI(S,c,3,3,1);P.SI(S,X,3,3,9);P.sub(X,c);P.qv(c,X);P.sub(S,c);P.sub(c,X);P.SI(X,S,3,3,8);
P.HB(S,G,1);P.b9(S,x);P.Rl(x)};L.I.aci=function(s,m,l,x,a){var P=L.I.C;P.D2(m,l);P.O$(a[3]);var o=a[0],G=a[1],_=a[2],j=o>>1,U=Math.max(~~(o/5),1),S=Math.max(~~(o*2/3),1),X=P.oe(G,_),c=P.mw(1),y=P.mw(1),O=P.mw(1),p=P.mw(1),D=P.mw(4);
P.qS(s,c);P.EN(2147483647,4,2,2,0,255,y);P.EN(4,2147483647,2,2,0,255,p);P.Lr(O);P.HG(y,O,y,1);P.HG(p,O,p,1);
P.HG(y,c,y,1);P.HG(p,c,p,1);P.SZ(s,D,j);P.SZ(D,x,j);P.SI(y,c,1,o,U);P.SI(c,y,3,o,S);P.SI(p,c,o,1,U);
P.SI(c,p,o,3,S);P.lb(y,p);P.q$(x);P.b9(p,x);P.Rl(x);P.Z5(x,X)};L.I.C={};L.I.C.h_=0;L.I.C.Cm=0;L.I.C.xD=0;
L.I.C.wf=0;L.I.C._q=0;L.I.C.D2=function(s,m){var l=s*m,self=L.I.C;self.h_=s;self.Cm=m;self.xD=l;self.wf=l<<1;
self._q=l<<2};L.I.C.O$=function(s){L.I.C.random=function(){var m=s+=1831565813;m=Math.imul(m^m>>>15,m|1);
m^=m+Math.imul(m^m>>>7,m|61);return((m^m>>>14)>>>0)/4294967296}};L.I.C.mw=function(s){var m=L.I.C;return new Uint8Array([-1,m.xD,m.wf,-1,m._q][s])};
L.I.C.aJ=function(){return new Int32Array(L.I.C.wf)};L.I.C.oP=function(s,m,l,x){if(x==null)x=l;var self=L.I.C,a=self.h_,P=self.Cm;
L.yf.GV(s,m,new bU(0,0,a,P),l>>>1);return};L.I.C.PW=function(s,m,l,x){var self=L.I.C,a=new Int32Array(self.xD),P=new Int32Array(self.xD);
for(var C=0;C<2;C++){self.sq(s,a,C,2);self.oP(a,P,l,x);self.b9(P,m,C,2)}};L.I.C.SZ=function(s,m,l,x){var self=L.I.C,a=self.mw(1),P=self.mw(1);
for(var C=0;C<4;C++){self.sq(s,a,C);if(C<3)self.oP(a,P,l,x);else P=a;self.b9(P,m,C)}};L.I.C.MF=function(s,m,l,x,a){var self=L.I.C,P=self.h_,o=self.Cm,G=l+x-1,_=l>>1,j=G>>1,U=0,S=l*x,X=new Int32Array(l);
for(var C=0;C<o;C++){var c=0,y=0,O=0;for(var p=0;p<l;p++){var D=a?G-p-x:p;for(var f=D,T=x+D;f<T;f++){var I=0-j+f,H=C-_+p;
if(f==D){X[p]=I}if(I<0)I=0;else if(I>=P)I=P-1;if(H<0)H=0;else if(H>=o)H=o-1;var b=P*H+I<<2;c+=s[b];y+=s[b+1];
O+=s[b+2]}}m[U++]=~~(c/S);m[U++]=~~(y/S);m[U++]=~~(O/S);m[U]=s[U];U++;for(var R=1;R<P;R++){for(var p=0;
p<l;p++){var H=C-_+p,D=X[p]+1;X[p]=D;var W=D-1,J=D+x-1;if(H<0)H=0;else if(H>=o)H=o-1;if(W<0)W=0;else if(W>=P)W=P-1;
if(J<0)J=0;else if(J>=P)J=P-1;var u=H*P+W<<2,e=H*P+J<<2;c=c+s[e]-s[u];y=y+s[e+1]-s[u+1];O=O+s[e+2]-s[u+2]}m[U++]=~~(c/S);
m[U++]=~~(y/S);m[U++]=~~(O/S);m[U]=s[U];U++}}};L.I.C.a_=function(s,m,l,x,a,P){var self=L.I.C,o=self.h_,G=self.Cm,_=l+x-1,j=l>>1,U=_>>1,S=0,X=new Int32Array(l),c=new Int32Array(256),y=new Int32Array(16);
for(var C=0;C<G;C++){c.fill(0);y.fill(0);for(var O=0;O<l;O++){var p=a?_-O-x:O;for(var D=p,f=x+p;D<f;
D++){var T=0-U+D,I=C-j+O;if(D==p){X[O]=T}if(T<0)T=0;else if(T>=o)T=o-1;if(I<0)I=0;else if(I>=G)I=G-1;
c[s[I*o+T]]++;y[s[I*o+T]>>>4]++}}m[S++]=L.I.C.rd(y,c,P);for(var H=1;H<o;H++){for(var O=0;O<l;O++){var I=C-j+O,p=X[O]+1;
X[O]=p;var b=p-1,R=p+x-1;if(I<0)I=0;else if(I>=G)I=G-1;if(b<0)b=0;else if(b>=o)b=o-1;if(R<0)R=0;else if(R>=o)R=o-1;
var W=s[I*o+b],J=s[I*o+R];c[W]--;c[J]++;y[W>>>4]--;y[J>>>4]++}m[S++]=L.I.C.rd(y,c,P)}}};L.I.C.ZC=function(s,m,l,x,a,P){var self=L.I.C,o=self.mw(1),G=self.mw(1);
for(var C=0;C<4;C++){self.sq(s,o,C);if(C<3)self.a_(o,G,l,x,a,P);else G=o;self.b9(G,m,C)}};L.I.C.SI=function(s,m,l,x,a){a=Math.min(x*l,a);
var self=L.I.C,P=self.h_,o=self.Cm,G=x>>1,_=l>>1,j=0,U=new Int32Array(x),S=new Int32Array(256),X=new Int32Array(16);
for(var C=0;C<o;C++){S.fill(0);X.fill(0);for(var c=0;c<x;c++){for(var y=0,O=l;y<O;y++){var p=0-_+y,D=C-G+c;
if(y==0){U[c]=p}if(p<0)p=0;else if(p>=P)p=P-1;if(D<0)D=0;else if(D>=o)D=o-1;S[s[D*P+p]]++;X[s[D*P+p]>>>4]++}}m[j++]=L.I.C.rd(X,S,a);
for(var f=1;f<P;f++){for(var c=0;c<x;c++){var D=C-G+c,T=U[c]+1;U[c]=T;var I=T-1,H=T+l-1;if(D<0)D=0;else if(D>=o)D=o-1;
if(I<0)I=0;else if(I>=P)I=P-1;if(H<0)H=0;else if(H>=P)H=P-1;var b=s[D*P+I],R=s[D*P+H];S[b]--;S[R]++;
X[b>>>4]--;X[R>>>4]++}m[j++]=L.I.C.rd(X,S,a)}}};L.I.C.rd=function(s,m,l){var x=0,a=0;while(x+s[a>>>4]<l){x+=s[a>>>4];
a+=16}for(;a<256;a++){x+=m[a];if(x>=l)break}return a};L.I.C.Yd=function(s,m,l,x,a){var self=L.I.C,P=self.mw(1),o=self.mw(1);
for(var C=0;C<4;C++){self.sq(s,P,C);if(C<3)self.SI(P,o,l,x,a);else o=P;self.b9(o,m,C)}};L.I.C.NX=function(s,m,l){var self=L.I.C,x=self.h_,a=self.Cm,P=0;
for(var C=0;C<a;C++){var o=C*x,G=(C-1)*x,_=(C+1)*x;if(G<0)G=o;if(_>=a)_=o;for(var j=0;j<x;j++){var U=j-1,S=j+1;
if(U<0)U=j;if(S>=x)S=j;var X=o+U,c=o+S,y=G+j,O=_+j,p=o+j,D=s[X],f=s[c],T=s[y],I=s[O],H=s[p],b=H+(H*4*l+.5);
b=b-((D+f+I+T)*l+.5);m[P++]=self.Ui(b)}}};L.I.C.Zs=function(s,m,l){var self=L.I.C,x=self.mw(1),a=self.mw(1);
for(var C=0;C<4;C++){self.sq(s,x,C);if(C<3)self.NX(x,a,l);else a=x;self.b9(a,m,C)}};L.I.C.a9K=function(s,m,l){var self=L.I.C,x=self.h_,a=self.Cm,P=0,o=l+4;
for(var C=0;C<a;C++){var G=C*x,_=(C-1)*x,j=(C+1)*x;if(_<0)_=G;if(j>=a)j=G;for(var U=0;U<x;U++){var S=U-1,X=U+1;
if(S<0)S=U;if(X>=x)X=U;var c=G+S<<2,y=G+X<<2,O=_+U<<2,p=j+U<<2,D=G+U<<2;for(var f=0;f<3;f++){var T=s[c+f],I=s[y+f],H=s[O+f],b=s[p+f],R=s[D+f];
m[P++]=(R*l+T+I+b+H)/o}m[P]=s[P];P++}}};L.I.C.D0=function(s,m,l,x){var self=L.I.C,a=self.h_,P=self.Cm,o=l>>1,G=x>>1,_=0,j=new Int32Array(l),U=new Int32Array(256);
for(var C=0;C<P;C++){U.fill(0);for(var S=0;S<l;S++){for(var X=0,c=x;X<c;X++){var y=0-G+X,O=C-o+S;if(X==0){j[S]=y}if(y<0)y=0;
else if(y>=a)y=a-1;if(O<0)O=0;else if(O>=P)O=P-1;U[s[O*a+y]]++}}var p=0,D=0;for(var f=0;f<256;f++){if(p<U[f]){D=f;
p=U[f]}}m[_++]=D;for(var T=1;T<a;T++){for(var S=0;S<l;S++){var O=C-o+S,I=j[S]+1;j[S]=I;var H=I-1,b=I+x-1;
if(O<0)O=0;else if(O>=P)O=P-1;if(H<0)H=0;else if(H>=a)H=a-1;if(b<0)b=0;else if(b>=a)b=a-1;U[s[O*a+H]]--;
U[s[O*a+b]]++}p=0;D=0;for(var f=0;f<256;f++){if(p<U[f]){D=f;p=U[f]}}m[_++]=D}}};L.I.C.aee=[function(s,m,l,x,a,P,o,G,_,j){return a+(s+m+l)*j-(_+G+o)*j},function(s,m,l,x,a,P,o,G,_,j){return a+(m+l+P)*j-(G+o+x)*j},function(s,m,l,x,a,P,o,G,_,j){return a+(l+P+_)*j-(o+x+s)*j},function(s,m,l,x,a,P,o,G,_,j){return a+(P+_+G)*j-(x+s+m)*j},function(s,m,l,x,a,P,o,G,_,j){return a+(_+G+o)*j-(s+m+l)*j},function(s,m,l,x,a,P,o,G,_,j){return a+(G+o+x)*j-(m+l+P)*j},function(s,m,l,x,a,P,o,G,_,j){return a+(o+x+s)*j-(l+P+_)*j},function(s,m,l,x,a,P,o,G,_,j){return a+(x+s+m)*j-(P+_+G)*j}];
L.I.C.Pz=function(s,m,l,x,a){var self=L.I.C,P=self.h_,o=self.Cm,G=P,_=self.aee[x-1];for(var C=0;C<o;
C++){var j=(C>0?C-1:0)*G,U=C*G,S=(C<o?C+1:C)*G;for(var X=0;X<P;X++){var c=X>0?X-1:0,y=X<P?X+1:X,O=U+X,p=s[j+c],D=s[j+X],f=s[j+y],T=s[U+c],I=m[O],H=s[U+y],b=s[S+c],R=s[S+X],W=s[S+y];
l[O]=self.Ui(_(p,D,f,T,I,H,b,R,W,a))}}};L.I.C.a7L=function(s,m,l,x,a){var self=L.I.C,P=self.mw(1),o=self.mw(1),G=self.mw(1);
for(var C=0;C<3;C++){self.sq(s,P,C);self.sq(m,o,C);self.Pz(P,o,G,x,a);self.b9(G,l,C)}self.sq(m,P,3);
self.b9(P,l,3)};L.I.C.gV=function(s,m){var l=s.length,x=0;for(var C=0;C<l;C++){m[x++]=~~((s[C++]+s[C++]+s[C++]+2)/3)}};
L.I.C.f8=function(s,m){var l=m.length,x=0;for(var C=0;C<l;C++){var a=s[C];m[x++]=a;m[x++]=a;m[x++]=a;
m[x++]=255}if(m[0]==255)m[0]--;else m[0]++};L.I.C.qS=function(s,m){var l=m.length,x=0;for(var C=0;C<l;
C++){var a=s[x++],P=s[x++],o=s[x++];x++;if(P>a)a=P;if(o>a)a=o;m[C]=a}};L.I.C.q$=function(s,m){if(m==null)m=s;
var l=s.length;for(var x=0;x<l;x+=4){var a=s[x],P=s[x+1],o=s[x+2],G=a,_=0,j=a,S;if(P<=a){a=P}else{_=1;
j=P}if(o<=j){if(a>o){a=o}}else{_=2;j=o}var U=j-a;if(U!=0){if(_==0){S=~~(43*(P-o)/U)}else if(_==1){S=~~(43*(o+2*U-G)/U)}else{S=43*(G+4*U-P)/U}if(S<0){S=255&S-1}m[x]=S;
m[x+1]=~~(255*U/j)}else{m[x]=U;m[x+1]=U}m[x+2]=j;m[x+3]=s[x+3]}};L.I.C.Rl=function(s,m){if(m==null)m=s;
var l=s.length;for(var x=0;x<l;x+=4){var a=s[x],P=s[x+1],o=s[x+2];if(P){if(a==255)a=0;var G=~~(6*a/255),_=~~(-255*G+6*a);
if(G==0){m[x]=o;m[x+1]=~~(o*(255-P*(255-_)/255)/255);m[x+2]=~~(o*(255-P)/255)}else if(G==1){m[x]=~~(o*(255-P*_/255)/255);
m[x+1]=o;m[x+2]=~~(o*(255-P)/255)}else if(G==2){m[x]=~~(o*(255-P)/255);m[x+1]=o;m[x+2]=~~(o*(255-P*(255-_)/255)/255)}else if(G==3){m[x]=~~(o*(255-P)/255);
m[x+1]=~~(o*(255-P*_/255)/255);m[x+2]=o}else if(G==4){m[x]=~~(o*(255-P*(255-_)/255)/255);m[x+1]=~~(o*(255-P)/255);
m[x+2]=o}else{m[x]=o;m[x+1]=~~(o*(255-P)/255);m[x+2]=~~(o*(255-P*_/255)/255)}}else{m[x]=o;m[x+1]=o;m[x+2]=o}m[x+3]=s[x+3]}};
L.I.C.b9=function(s,m,l,x){if(l==null)l=2;if(x==null)x=4;var a=s.length;for(var C=0;C<a;C++){m[l]=s[C];
l+=x}};L.I.C.sq=function(s,m,l,x){if(l==null)l=2;if(x==null)x=4;var a=m.length;for(var C=0;C<a;C++){m[C]=s[l];
l+=x}};L.I.C.AN=function(s,m,l,x){if(x==null)x=1;var a=m.length,P=0,o;for(var P=0;P<a;P++){o=m[P];if(o){o*=x;
l[P]=~~((o*s[P]+(255-o)*l[P])/255)}}};L.I.C.sP=function(s,m,l,x){if(x==null)x=l;var a=m.length,P=0,o,G;
for(var C=0;C<a;C++){o=m[C];if(o){G=255-o;x[P]=~~((o*s[P]+G*l[P])/255);x[P+1]=~~((o*s[P+1]+G*l[P+1])/255);
x[P+2]=~~((o*s[P+2]+G*l[P+2])/255)}x[P+3]=s[P+3];P+=4}};L.I.C.iK=function(s,m,l,x){var a=~~(x*255),P=l.length;
for(var C=0;C<P;C++){l[C]=((255-a*(255-s[C])/255)*m[C]+s[C]*(a*(255-s[C])/255))/255}};L.I.C.HG=function(s,m,l,x){var a=~~(x*255),P=l.length;
for(var C=0;C<P;C++){l[C]=((255-a*s[C]/255)*m[C]+s[C]*(a*s[C]/255))/255}};L.I.C.xU=function(s,m,l){var x=m.length;
for(var C=0;C<x;C++){m[C]=~~(s[C]*l+.5)+(m[C]-~~(m[C]*l+.5))}};L.I.C.sub=function(s,m){var l=s.length;
for(var C=0;C<l;C++){m[C]=Math.max(s[C]-m[C],0)}};L.I.C.add=function(s,m){var l=s.length;for(var C=0;
C<l;C++){m[C]=Math.min(s[C]+m[C],255)}};L.I.C.lb=function(s,m){var l=s.length;for(var C=0;C<l;C++){m[C]=s[C]+m[C]>>1}};
L.I.C.qv=function(s,m){var l=s.length;for(var C=0;C<l;C++){m[C]=s[C]}};L.I.C.IG=function(s,m){var l=s.length;
for(var C=0;C<l;C++){s[C]=m[s[C]]}};L.I.C.Z5=function(s,m){var l=L.I.C._q;for(var C=0;C<l;C+=4){var x=s[C],a=s[C+1],P=s[C+2],o=x;
if(a>x)o=a;if(P>x)o=P;var G=m[o];if(G){s[C]=~~(G*x/o);s[C+1]=~~(G*a/o);s[C+2]=~~(G*P/o)}else{s[C]=G;
s[C+1]=G;s[C+2]=G}}};L.I.C.Sf=function(s,m){for(var C=0,l=s.length;C<l;C++){s[C]=Math.min(255,~~(.5+s[C]*m))}};
L.I.C.jX=function(s,m){for(var C=0,l=s.length;C<l;C++){s[C]=255-Math.min(255,~~(.5+(255-s[C])*m))}};
L.I.C.ms=function(s){var m=s.length;for(var C=0;C<m;C++){s[C]=255-s[C]}};L.I.C.qh=function(s,m,l,x){if(l==null)l=0;
if(x==null)x=255;for(var C=0,a=s.length;C<a;C++){s[C]=s[C]>=m?x:l}};L.I.C.n3=function(s){return[s>>24&255,s>>16&255,s>>8&255,s&255]};
L.I.C.arm=function(s,m,l,x){if(l==null)l=255;if(x==null)x=4278190335;var a=L.I.C,P=a._q,o=a.n3(l),G=a.n3(x);
for(var C=0;C<P;C+=4){var _=~~((s[C]+s[C+1]+s[C+2]+2)/3);if(_>=m){s[C]=o[0];s[C+1]=o[1];s[C+2]=o[2]}else{s[C]=G[0];
s[C+1]=G[1];s[C+2]=G[2]}}};L.I.C.qX=function(s,m){var l=L.I.C,x=l._q,a=l.n3(m);for(var C=0;C<x;){s[C++]=a[0];
s[C++]=a[1];s[C++]=a[2];s[C++]=a[3]}};L.I.C.Pv=function(s,m){var l=s.length;for(var C=0;C<l;){s[C++]=m}};
L.I.C.oe=function(s,m){s=s>5?(100-Math.max(4,s))/100:.95;m=m!=100?Math.max(4,m)/100:.9995;var l=new Uint8Array(256),x=m>.5?.5/(1-m):m*2,a=~~(x*256),P=~~((.5-s*x)*256)<<8;
for(var C=0;C<256;C++){l[C]=L.I.C.Ui(P>>8);P+=a}return l};L.I.C.Lr=function(s){for(var C=0,m=L.I.C,l=s.length;
C<l;C++){s[C]=~~(m.random()*256)}};L.I.C.a4j=function(s,m){for(var C=0,l=L.I.C,x=s.length;C<x;C++){s[C]=l.random()<m?255:0}};
L.I.C.hm=function(s,m,l){for(var C=0,x=L.I.C,a=s.length;C<a;C++){if(x.random()<m)s[C]=l}};L.I.C.HT=function(s,m,l){var x=s.length;
for(var C=0;C<x;C++){s[C]=L.I.C.Ui(s[C]+l[m[C]])}};L.I.C.P7=function(s){var m=new Uint32Array(256);for(var C=0,l=s.length;
C<l;C++){m[s[C]]++}return m};L.I.C.qm=function(s,m,l){var self=L.I.C,x=self.P7(l),a=self.xD/100,P=new Uint8Array(256),o=a*s,G=a*m,_=0,j=-1,U=256;
do{_+=x[++j]}while(_<=o);_=0;do{_+=x[--U]}while(_<=G);if(U-j<=0)U=j+1;if(U>255){U=255;j=254}var S=255/(U-j),X=-j;
for(var C=0;C<256;C++){P[C]=self.Ui(S*X+.5);X++}return P};L.I.C.HB=function(s,m,l){var x=L.I.C;x.IG(s,x.qm(m,l,s))};
L.I.C.aoa=function(s,m){var self=L.I.C,l=self.P7(s),x=self.xD*m/100,a=0,P=-1;do{a+=l[++P]}while(a<=x);
return P};L.I.C.ke=function(s,m){var l=0,self=L.I.C,x=self.h_,a=self.Cm,P=1/Math.PI,o=P*255;for(var C=0;
C<a;C++){var G=C+1;if(G==a)G--;var _=C*x,j=~~((1-(C+1)/a)*255);for(var U=0;U<x;U++){var S=U+1;if(S==x)S--;
var X=s[_+U],c=s[_+S],y=s[G*x+U];if(X-y==0){m[l++]=j}else{var O=X-y+255;if(O==255){O=0}else{O=~~(Math.atan2(1/(255-O),1)*o+.5);
if(O<0)O+=255}m[l++]=O}if(X-c==0){m[l++]=~~((1-(U+1)/x)*255)}else{var O=X-c+255;if(O==255){O=0}else{O=~~(Math.atan2(1/(255-O),1)*o+.5);
if(O<0)O+=255}m[l++]=O}}}};L.I.C.IE=function(s,m){var self=L.I.C,l=self.h_,x=self.Cm,a=0;for(var C=0;
C<x;C++){for(var P=0;P<l;P++){s[a]=~~(C*m+.5)+~~(s[a]*(1-m)+.5);a++;s[a]=~~(P*m+.5)+~~(s[a]*(1-m)+.5);
a++}}};L.I.C.a9c=function(s,m,l,x){var self=L.I.C,a=self.h_,P=self.Cm,o=0;for(var C=0;C<P;C++){for(var G=0;
G<a;G++){m[o]=~~(m[o]*(1-l)+.5)+~~(s[o]*x+.5);o++;m[o]=~~(m[o]*(1-l)+.5)+~~(s[o]*x+.5);o++}}};L.I.C.oQ=function(s,m,l){var self=L.I.C,x=self.h_,a=self.Cm,P=0,o=0;
for(var C=0;C<a;C++){for(var G=0;G<x;G++){var _=s[P++],j=s[P++];m[o++]=j%l>=2&&_%l>=2?255:0}}};L.I.C.EN=function(s,m,l,x,a,P,o){var self=L.I.C,G=self.h_,_=self.Cm,j=0,U=0,S=0;
for(var C=0;C<_;C++){var X=C%s<l||_-l<=C;for(var c=0;c<G;c++){o[j++]=X||c%m<x||G-x<=c?a:P}}};L.I.C.K9=function(s,m,l,x){var self=L.I.C,a=self.h_,P=self.Cm,o=ew.K9(m),G=o[0],_=o[1],j=L.B(G.k()*4);
j.fill(4294967295);L.s2(_,j);var U=L.scale.Op(j,G.e,G.l),S=L.scale.aP(U,null,a,P,l/100,l/100,0,0);L.hy(S,s,0);
if(x)L.ms(s)};L.I.C.Ui=function(s){return~~Math.min(255,Math.max(0,s))};L.I.C.ps=[0,5,10,15,20,25,35,45,65,85,105,125,145,165,185,205];
L.I.C.aW=[0,.2,.4,.5,.6,.7,.8,.9,1,1.1,1.2,1.3,1.4,1.5,1.7,2,2.5,3,3.5,4,5,6,7,8,9,10];L.I.C.u2=function(s){return s>40?[1.25,1.5,1.75,2,2.5,3,4,5,7.5,10][s-41]:s/40};
L.I.C.arU=function(s,m,l){var self=L.I.C,x=self.h_,a=self.Cm,P=l,o=l>>1,G=o-1,_=P*P,j=0;for(var C=0;
C<a;C++){var U=0,S=0,X=0,c=~~(C/l)*l,y=0;for(var O=0;O<P;O++){for(var p=0;p<P;p++){var D=y+p,f=c+O;if(D>=x)D=x-1;
if(f>=a)f=a-1;U+=s[f*x+D<<2];S+=s[(f*x+D<<2)+1];X+=s[(f*x+D<<2)+2]}}var T=~~(U/_),I=~~(S/_),H=~~(X/_);
m[j]=T;m[j+1]=I;m[j+2]=H;m[j+3]=s[j+3];j+=4;for(var b=1;b<x;b++){for(var O=0;O<P;O++){var R=b-1,W=R+P,f=c+O;
if(W>=x)W=x-1;if(f>=a)f=a-1;var J=f*x,u=J+W<<2,e=J+R<<2;U+=s[u]-s[e];S+=s[u+1]-s[e+1];X+=s[u+2]-s[e+2]}if(b%l==0){T=~~(U/_);
I=~~(S/_);H=~~(X/_)}m[j]=T;m[j+1]=I;m[j+2]=H;m[j+3]=s[j+3];j+=4}}};L.I.C.a52=function(s,m,l,x,a){var self=L.I.C,P=self.h_,o=self.Cm,G=0,_=0,j=0,U=0;
for(var C=U;C<o+U;C++){var S=C%m>=x||C<x||o+U-x<=C;for(var X=0;X<P;X++){s[G++]=S&&(X%l>=a||X<a||P-a<=X)?255:0}}};
L.I.C.akU=function(s,m,l){var x=function(j,U){return U<=j?j/U&1?U-j%U:j%U:j},a=[function(G,_){return x(G,255)/255},function(G,_){return(255+x(G,255)-x(_,255))/510},function(G,_){return(255-x(_,255))/255},function(G,_){return(510-x(G,255)-x(_,255))/510},function(G,_){return(255-x(G,255))/255},function(G,_){return(255-x(G,255)+x(_,255))/510},function(G,_){return x(_,255)/255},function(G,_){return(x(G,255)+x(_,255))/510}][l],P=0,o=0;
for(var C=0;C<L.I.C.xD;C++){var G=s[P++],_=s[P++];m[o++]=~~(255*a(G,_))}};L.I.a7m=function(){var s=[],m=new Uint8Array(512),l=new Float32Array(512),x=new Float32Array(512),a=[1,-1,1,-1,1,-1,0,0],P=[1,1,-1,-1,0,0,1,-1],o=0,G,y=0;
for(;o<256;o++)s[o]=o;while(o!=0){o--;G=Math.floor(Math.random()*o);s[G]^=s[o]^(s[o]=s[G])}function _(_){_=Math.floor(_*65536);
if(_<256){_|=_<<8}for(var C=0;C<256;C++){var D=C+256,f=s[C]^(C&1?_:_>>8)&255;m[C]=m[D]=f;f=f%8;l[C]=l[D]=a[f];
x[C]=x[D]=P[f]}}function j(D){return D*D*D*(D*(D*6-15)+10)}function U(D,f,T){return(1-T)*D+T*f}function S(D,f){return D&f}function X(D,f){return D%f}function c(D,f,T,I,H){var b=Math.floor(D),R=Math.floor(f),o,W,J,u,e,Q;
D=D-b;f=f-R;b=b&255;R=R&255;o=b+m[R];u=l[o]*D+x[o]*f;o=b+m[H(R+1,I)];J=l[o]*D+x[o]*(f-1);o=H(b+1,T)+m[R];
e=l[o]*(D-1)+x[o]*f;o=H(b+1,T)+m[H(R+1,I)];Q=l[o]*(D-1)+x[o]*(f-1);W=j(D);return U(U(u,e,W),U(J,Q,W),j(f))}function O(D,o,f){D[o]=f}function p(D,f,T,I,H){var b=Math.min(Math.min(f,256),Math.min(256,T)),R=b==256||b<8,W=8,J=new Uint32Array(W),u=new Uint32Array(W),e=new Float32Array(W),Q=new Float32Array(W),q=1,Z=1,E=R?S:X,z=O,V;
for(var C=0;C<W;C++){V=Z*1/b;if(R){u[C]=(1<<Math.ceil(Math.log2(T*V)))-1;J[C]=(1<<Math.ceil(Math.log2(f*V)))-1}else{u[C]=V*T;
J[C]=V*f}e[C]=q;Q[C]=V;q*=.5;Z=Z<<1}_(Math.random());for(var Y=0,o=0;Y<T;Y++){for(var d=0;d<f;d++){var w=0;
for(var A=0;A<W;A++){V=Q[A];w+=c(d*V,Y*V,J[A],u[A],E)*e[A]}z(I,o++,Math.round(Math.max(0,255*Math.min(1,.5+w*.5))))}}}return p}();
L.I.ahD=function(){function s(m,l,x,a){var P=new Uint8Array(m.length>>>2),o=new Uint8Array(m.length>>>2),G=new Uint8Array(m.length);
for(var C=0;C<m.length;C+=4){var _=m[C+0]*.3+m[C+1]*.59+m[C+2]*.11;o[C>>>2]=_;G[C]=m[C];G[C+1]=m[C+1];
G[C+2]=m[C+2]}L.Rv.T3(o,P,l,x);L.Rv.cz(m,a,l,x,L.Rv.kJ[1],0,!0);for(var C=0;C<m.length;C+=4){G[C+3]=255-P[C>>>2]}for(var C=0,j=m.length;
C<j;C+=4){var U=G[C+3]/255;a[C]=G[C]*U+a[C]*(1-U);a[C+1]=G[C+1]*U+a[C+1]*(1-U);a[C+2]=G[C+2]*U+a[C+2]*(1-U)}}return s}();
L.I.aov=function(){function s(P,o,G,_,j){var U=new Uint32Array(P.buffer),S=0;for(var C=0;C<G;C++){for(var X=0;
X<o;X++,S+=4){var c=U[C*o+X],y=c&255,O=c>>>8&255,p=c>>>16&255,D=c>>>24&255,f=~~(Math.random()*8),T=f%3,I=0,H=0;
if(f<3){H--}else if(f>4){H++}if(T==0){I--}else if(T==2){I++}var b=X+I,R=C+H;if(b<0)b=0;else if(b>o-1)b=o-1;
if(R<0)R=0;else if(R>G-1)R=G-1;var c=U[R*o+b],W=c&255,J=c>>>8&255,u=c>>>16&255,e=c>>>24&255;_[S]=j(y,W);
_[S+1]=j(O,J);_[S+2]=j(p,u);_[S+3]=j(D,e)}}}function m(P,o){return o}function l(P,o){return P>o?o:P}function x(P,o){return P<o?o:P}function a(P,o,G,_,j){var U=j[0];
if(U==0)s(P,o,G,_,m);else if(U==1)s(P,o,G,_,l);else if(U==2)s(P,o,G,_,x);else if(U==3){console.error("Not implemented")}else console.error("Mew mew")}return a}();
L.I.amN=function(){function s(m,l,x,a,P){var o=P&&P[0]?P[0]:4,G,_,j,U,S,X,c;for(var C=0;C<x;C++){var y=Math.max(C-o,0),O=Math.min(C+o,x-1);
for(var p=0;p<l;p++){var D=Math.max(p-o,0),f=Math.min(p+o,l-1);G=y*l+D<<2;U=m[G];S=m[G+1];X=m[G+2];c=m[G+3];
G=y*l+f<<2;U+=m[G];S+=m[G+1];X+=m[G+2];c+=m[G+3];G=O*l+D<<2;U+=m[G];S+=m[G+1];X+=m[G+2];c+=m[G+3];G=O*l+f<<2;
U+=m[G];S+=m[G+1];X+=m[G+2];c+=m[G+3];G=C*l+p<<2;a[G]=U+2>>>2;a[G+1]=S+2>>>2;a[G+2]=X+2>>>2;a[G+3]=c+2>>>2}}}return s}();
L.I.a6V=function(){function s(m,l,x,a){var P=new Uint8Array(m.length),o=new Uint8Array(m.length>>>2),G=new Uint8Array(m.length>>>2);
L.Rv.cz(m,P,l,x,L.Rv.kJ[2],0,!0);for(var C=0;C<m.length;C+=4){var _=P[C+0]*.3+P[C+1]*.59+P[C+2]*.11;
o[C>>>2]=_;a[C+0]=m[C+0];a[C+1]=m[C+1];a[C+2]=m[C+2];a[C+3]=m[C+3]}L.Rv.T3(o,G,l,x);for(var C=0;C<m.length;
C+=4){P[C+3]=~~(Math.max(0,255-G[C>>>2]-50)*(255/205))}for(var C=0,j=m.length;C<j;C+=4){var U=P[C+3]/255;
a[C]=P[C]*U+a[C]*(1-U);a[C+1]=P[C+1]*U+a[C+1]*(1-U);a[C+2]=P[C+2]*U+a[C+2]*(1-U)}}return s}();L.I.It=function(){function s(f,T){return f[T]+f[T+1]+f[T+2]+f[T+3]}function m(f,T){return f[T]+f[T+1]+f[T+2]+2*f[T+3]}function l(f,T,I,H){f[T]=I[H];
f[T+1]=I[H+1];f[T+2]=I[H+2];f[T+3]=I[H+3]}function x(f,T,I){f[T]=f[I];f[T+1]=f[I+1];f[T+2]=f[I+2];f[T+3]=f[I+3]}function a(f,T,I){f[I]=T[I];
f[I+1]=T[I+1];f[I+2]=T[I+2];f[I+3]=255-T[I+3]}function P(f){for(var C=0,T=f.length;C<T;C+=4){f[C+3]=255-f[C+3]}}function o(){var f=Math.random();
if(f>.5)return 0;if(f>.25)return 1;if(f>.1)return 2;if(f>.02143)return 3;if(f>.00445)return 4;if(f>65e-5)return 5;
if(f>415e-6)return 6;if(f>55e-6)return 7;return 8}function G(f,T,I,H,b,R){f[T]=I[H]+(b[R]-I[H]>>1);f[T+1]=I[H+1]+(b[R+1]-I[H+1]>>1);
f[T+2]=I[H+2]+(b[R+2]-I[H+2]>>1);f[T+3]=I[H+3]+(b[R+3]-I[H+3]>>1)}function _(f,T,I,H,b,R){f[T]=b[R]+I[H]>>1;
f[T+1]=b[R+1]+I[H+1]>>1;f[T+2]=b[R+2]+I[H+2]>>1;f[T+3]=b[R+3]+I[H+3]>>1}function j(f,T,I,H,b,R,W,J,u){var e=0,Q=0,q=0,C,Z=b[R],E;
G(J,0,f,T,f,I);for(C=0;C<Z;C++){G(J,(C+1)*4,J,C*4,f,I)}Q=(Z+1)*4;q+=Z;R--;l(f,T,J,Q-4);H[R]=s(f,T);T-=u;
while(R>0&&H[R-1]<H[R]){E=J;J=W;W=E;e=Q;_(J,0,f,T-u,W,0);for(C=4;C<e;C+=4){_(J,C,J,C-4,W,C)}Z=b[R];for(C=q;
C<Z;C++){G(J,Q,J,Q-4,W,e-4);Q+=4;q++}R--;l(f,T,J,Q-4);H[R]=s(f,T);T-=u}}function U(f,T,I,H,b){var R=T*4,W=0,J,u,e=new Uint8Array(T+1),Q=new Uint8Array(10*4),q=new Uint8Array(10*4);
for(var C=0;C<I;C++){a(H,f,W);b[0]=s(H,W);e[0]=o();J=W;W+=4;for(var Z=1;Z<T;Z++){a(H,f,W);b[Z]=s(H,W);
u=o();e[Z]=u;if(b[Z-1]<b[Z]&&u>0){j(H,W-4,W,b,e,Z,Q,q,4)}W+=4}b[T]=b[0];e[T]=e[0];if(b[T-1]<b[T]&&u>0){j(H,W,J,b,e,T,Q,q,4)}}P(H)}function S(){var f=Math.random();
if(f>.659755)return 0;if(f>.1625)return 10;if(f>.06)return 20;if(f>.01)return 30;if(f>.0035)return 40;
if(f>65e-5)return 50;if(f>415e-6)return 60;if(f>55e-6)return 70;return 80}function X(f,T,I,H,b,R){var W=S()+1,J=H[b];
for(var C=1;C<W;C++){if(0>b)break;if(H[b-C]<J){x(f,T,I)}else{break}T+=R}}function c(f,T,I,H,b){var R=T*4,W=0;
for(var C=0;C<I;C++){a(H,f,W);b[0]=s(H,W);W+=4;for(var J=1;J<T;J++){a(H,f,W);b[J]=s(f,W);if(b[J-1]<b[J]){X(H,W-4,W,b,J,-4)}W+=4}b[T]=b[0];
if(b[J-1]<b[J]){X(H,W-4,W-R,b,J,-4)}}P(H)}function y(f,T,I,H,b,R){var W=1,J,u,e=new Uint8Array(4),Q,q=T;
while(Math.random()<1/W){q=T;if(H<=1)break;J=I[H];u=I[H-1];if(J<=u)break;l(e,0,f,q-R);Q=!0;for(var C=H;
C<b;C++){if(u>I[C]){l(f,q-R,e,0);I[C-1]=u;Q=!1;break}l(f,q-R,f,q);I[C-1]=I[C];q+=R}if(Q){l(f,q-R,e,0);
I[b-1]=u}W++;H--;T-=R}}function O(f,T,I,H,b){var R=0,W=0,J=T*4;for(var C=0;C<I;C++){W=R;for(var u=0;
u<T;u++){a(H,f,R);b[u]=m(H,R);R+=4}R=W;for(var u=1;u<T;u++){if(b[u-1]<b[u]&&Math.random()<.66){y(H,R+4,b,u,T,4)}R+=4}R+=4}P(H)}function p(f,T,I,H,b){var R=b[0],W=b[1],J=new Uint16Array(T+1),u=f,e=H,Q;
if(W){Q=H.slice(0);D(f,H,T,I);u=H;e=Q}if(R==0)U(u,T,I,e,J);else if(R==1)c(u,T,I,e,J);else if(R==2)O(u,T,I,e,J);
if(W){D(Q,H,T,I)}}function D(f,T,I,H){for(var b=0;b<H;b++)for(var R=0;R<I;R++){var W=b*I+R<<2,J=b*I+(I-1-R)<<2;
T[J]=f[W];T[J+1]=f[W+1];T[J+2]=f[W+2];T[J+3]=f[W+3]}}return p}();L.I.Pm=function(s,m,l,x,a){var P=L.I.C,o=1,p=0,T=0;
P.D2(m,l);P.O$(a[2]);var G=3<<13,_=Math.PI/2.43,j=_/256,U=Math.PI*2/256;function S(){var R=P.random()*256,W=P.random()*256;
return o*~~(Math.tan(_-R*j)*325*Math.cos(W*U)*256)+G>>16}o=a[0];var X=a[1],c=(X+2)/2,y=P.random()*255,O=P.mw(1);
for(var C=0;C<l;C++){var D=P.Ui(S()+y);for(var f=0;f<m;f++){D=P.Ui(S()+D);O[p++]=D}}p=m;for(var C=1;
C<l;C++){var I=P.Ui(S()+O[T++]);O[p++]=I;for(var f=1;f<m;f++){var H=T+1;if(f+1==m){H--}var b=(c+I+O[H]+O[T]*X)/(X+2);
I=P.Ui(S()+b);O[p++]=I;T++}}P.f8(O,x)};var fQ=function(){function s(K){K=K^61^K>>>16;K=K+(K<<3);K=K^K>>>4;
K=K*668265261;K=K^K>>>15;return K}var m=function(){var m=function(K){if(K){this.lz=K}this.lz=s(this.lz);
return(this.lz&16777215)*(1/16777215)};return m};function l(K,h){if(h==null){h=[0,0]}return Math.sqrt((h[0]-K[0])*(h[0]-K[0])+(h[1]-K[1])*(h[1]-K[1]))}function x(K,h){if(h==null){h=[0,0]}return[-(h[1]-K[1])/l(K,h),(h[0]-K[0])/l(K,h)]}function a(K){return[Math.cos(K),Math.sin(K)]}function P(K){var h=l(K,[0,0]),F=[K[0]/h,K[1]/h],N=Math.atan(F[1]/F[0]);
if(F[0]>0&&F[1]<0){N+=2*Math.PI}else if(F[0]<0&&F[1]<0){N+=Math.PI}else if(F[0]<0&&F[1]>0){N+=Math.PI}return N}function o(K){var o=0;
for(var C=1;C<K.length/2;++C){o+=l([K[2*C],K[2*C+1]],[K[2*(C-1)],K[2*(C-1)+1]])}return o}function G(K,h,F){var N=new Float32Array(K.length),iQ=1/(K.length/2),jB=H(F);
for(var C=0;C<K.length/2;++C){var k=C*iQ,ab=k/2+.5,f_=1,fc=0;if(F.shape==2){f_=1/(2*ab)}if(F.shape==3){ab=(1-k)/2+.5;
f_=1/(2*ab)+.5}if(F.shape==4){ab=k;f_=Math.sin(3/2*Math.PI*ab)/4+1}if(F.shape==5){ab=(k-.5)*6;f_=(-Math.atan(ab)/1.25+1)/5+.6-.2*k}var g8=[null,null];
if(C==0){g8=x([K[2*C],K[2*C+1]],[K[2*(C+1)],K[2*(C+1)+1]])}else if(C==K.length/2-1){g8=x([K[2*(C-1)],K[2*(C-1)+1]],[K[2*C],K[2*C+1]])}else{g8=x([K[2*(C-1)],K[2*(C-1)+1]],[K[2*(C+1)],K[2*(C+1)+1]])}N[2*C]=K[2*C]+(f_*h+fc)*g8[0];
N[2*C+1]=K[2*C+1]+(f_*h+fc)*g8[1];if(F.style==2){N[2*C]+=b(2*C/N.length,jB,F)}}return N}function _(K,h,F){var N=new Float32Array(K.length),iQ=1/(K.length/2);
for(var C=0;C<K.length/2;++C){var jB=C*iQ,k=[null,null],ab=.6*F.ix*J(jB,h.a7X)*F.rC/100,f_=.6*F.ix*J(jB,h.aah)*F.rC/100,fc=h.arq*ab+(1-h.arq)*f_;
if(C==0){k=x([K[2*C],K[2*C+1]],[K[2*(C+1)],K[2*(C+1)+1]])}else if(C==K.length/2-1){k=x([K[2*(C-1)],K[2*(C-1)+1]],[K[2*C],K[2*C+1]])}else{k=x([K[2*(C-1)],K[2*(C-1)+1]],[K[2*(C+1)],K[2*(C+1)+1]])}N[2*C]=K[2*C]+fc*k[0];
N[2*C+1]=K[2*C+1]+fc*k[1]}return N}function j(K){if(K.kD==1){return[.150684932,.205479452,.465753425,.178082192]}else if(K.kD==2){return[.126829268,.131707317,.156097561,.317073171,.141463415,.126829268]}else{var h=[],F=1/(q(K)-1);
for(var C=0;C<q(K)-1;++C){h.push(F)}return h}}function U(K,h,F){var N=[],iQ=h-K,jB=K;for(var C=0;C<F.length-1;
++C){N.push(jB+F[C]*iQ);jB=N[C]}return N}function S(K,h,F,N){var iQ=new Float32Array(F.length),jB=0,k={shape:Math.floor(N.random()*2.99),a7Q:N.random()*.1+.15};
for(var C=0;C<F.length-1;++C){var ab=jB+F[C];iQ[C]=((1-ab)*K+ab*h)*D(N,ab,k);jB=ab}return iQ}function X(K,h,F,N){var iQ=e(N),jB=N.random(),k=jB*20+(1-jB)*26,ab=new Float32Array(F.length),f_=0;
for(var C=0;C<F.length-1;++C){var fc=f_+F[C];ab[C]=(1-fc)*K+fc*h+iQ/k*(2/3*Math.sin(Math.PI*fc)+1/3*Math.sqrt(Math.sin(Math.PI*fc)));
f_=fc}return ab}function c(K,h,F){var N=[];for(var C=0;C<h.length-1;++C){N.push(h[C].slice());var iQ=C*(q(F)-1),jB=(C+1)*(q(F)-1),k=K[jB]-K[iQ];
for(var ab=iQ+1;ab<jB;++ab){var f_=H(F),fc=new Float32Array(h[0].length),g8=(K[ab]-K[iQ])/k;for(var bH=0;
bH<h[0].length/2;++bH){fc[2*bH]=(1-g8)*h[C][2*bH]+g8*h[C+1][2*bH];fc[2*bH+1]=(1-g8)*h[C][2*bH+1]+g8*h[C+1][2*bH+1];
if(F.style==2){fc[2*bH]+=b(2*bH/h[0].length,f_,F)}}N.push(fc)}}N.push(h[h.length-1]);return N}function y(K,h,F){var N=new Array(h.length),iQ=w(K),k=null;
for(var C=0;C<h.length;++C){N[C]=G(iQ,(h[C]-.5)*F.rC,F)}var jB=1+.05*F.abm*e(F)/e({kD:1});for(var C=0;
C<h.length;++C){if(h[C]==0){k=C}}for(var C=0;C<h.length;++C){var ab=(F.random()-.5)*2,f_=Math.round(F.random()*9+1),fc=new Float32Array(f_*2+2);
for(var g8=0;g8<=f_;++g8){fc[2*g8]=N[C][0]-(N[C][2*g8]-N[C][0]);fc[2*g8+1]=N[C][1]-(N[C][2*g8+1]-N[C][1])}if(C==k){ab*=.1}for(var g8=(N[C].length-1)/2;
g8>f_;--g8){N[C][2*g8]=(1-ab)*N[C][2*g8]+ab*(N[C][2*(g8-f_)]+jB*(N[C][2*g8]-N[C][2*(g8-f_)]));N[C][2*g8+1]=(1-ab)*N[C][2*g8+1]+ab*(N[C][2*(g8-f_)+1]+jB*(N[C][2*g8+1]-N[C][2*(g8-f_)+1]))}for(var g8=f_-1;
g8>=0;--g8){N[C][2*g8]=(1-ab)*N[C][2*g8]+ab*(fc[2*(f_-g8)]+jB*(N[C][2*g8]-fc[2*(f_-g8)]));N[C][2*g8+1]=(1-ab)*N[C][2*g8+1]+ab*(fc[2*(f_-g8)+1]+jB*(N[C][2*g8+1]-fc[2*(f_-g8)+1]))}}var bH=W(h,F);
if(F.ix>0){var cR=0;for(var C=0;C<h.length;++C){if(C==0){cR+=h[C]}else{cR+=Math.abs(h[C]-h[C-1])}var hr=cR-Math.floor(cR),h$=1;
if(hr==0){h$=0}N[C]=_(N[C],{a7X:bH[Math.floor(cR)],aah:bH[Math.floor(cR)+h$],arq:hr},F)}}return N}function O(K,h){var F=z(h,K),N=V(h,K),iQ=[],jB=[],k=[],ab=j(K);
for(var C=0;C<h.length-1;++C){iQ.push(h[C]);jB.push(F[C]);k.push(N[C]);var f_=U(h[C],h[C+1],ab),fc=S(F[C],F[C+1],ab,K),g8=X(N[C],N[C+1],ab,K);
for(var bH=0;bH<f_.length;++bH){iQ.push(f_[bH]);jB.push(fc[bH]);k.push(g8[bH])}}iQ.push(h[h.length-1]);
jB.push(F[F.length-1]);k.push(N[N.length-1]);return{abh:iQ,a5Z:jB,ol:k}}function p(K,h,F,N){var iQ=new Float32Array(2*N),jB=K.length/2,k=jB-h,ab=F*k,f_=ab/N;
for(var C=0;C<N;++C){var fc=Math.floor(h+C*f_),g8=Math.ceil(h+C*f_),F=h+C*f_,bH=g8-fc,cR=1,hr=0;if(bH!=0){cR=(g8-F)/bH;
hr=(F-fc)/bH}iQ[2*C]=cR*K[2*fc]+hr*K[2*g8];iQ[2*C+1]=cR*K[2*fc+1]+hr*K[2*g8+1]}return iQ}function D(K,h,F){var N=F.a7Q,iQ=h*2*Math.PI,jB=iQ,k=0;
if(F.shape==0){k=(Math.sin(2*jB+Math.PI/2)+1)/2}else if(F.shape==1){k=(Math.sin(jB+Math.PI/2)+1)/2}else{k=(4*Math.sin(3/4*jB+Math.PI)+Math.sin(Math.PI/2+2*jB)-2*jB/Math.PI+6)/7}return Math.min(1,1-N+N*k)}function f(K,h,F,N){var iQ=[];
for(var C=0;C<K.length;++C){iQ.push(p(K[C],h[C],F[C],N))}return iQ}function T(K,h,F){var N=[];for(var C=0;
C<K.length;++C){var iQ=a(2*Math.PI*F.random()),jB=a(2*Math.PI*F.random()),k=F.Rq*.5*Z({kD:1})/Z(F),ab=k*F.rC/200,f_=k*h/500,fc=new Float32Array(K[0].length);
for(var g8=0;g8<K[0].length/2;++g8){var bH=a(2*Math.PI*F.random()),cR=2*g8/K[0].length;fc[2*g8]=K[C][2*g8]+ab*(bH[0]+((1-cR)*iQ[0]+cR*jB[0]));
fc[2*g8+1]=K[C][2*g8+1]+f_*(bH[1]+((1-cR)*iQ[1]+cR*jB[1]))}N.push(fc)}return N}function I(K,h,F){var N=F.px,iQ=2/N,jB=[1/10,1/30,1/40,1/45,1/100],k=jB[F.kD-1],ab=4*(F.opacity/25*iQ*k)*(1-F.Rq/150),bH=0,hr=0;
if(F.style==3){return ab*.09}var f_=2.2*(K-.5),fc=f_*f_*f_*f_+.27+Math.max(0,(F.opacity-50)/15),g8=2*(Math.sin(3*Math.PI*h)/(Math.PI*h+2)+1.1)-h/2;
h=2*h;if(h<.41){var cR=2*Math.PI*h/.41;bH=(Math.sin(cR-Math.PI/2)+1)/4+.5}else if(h<.77){var cR=2*Math.PI*(h-.41)/.36;
bH=(Math.sin(cR-Math.PI/2)+1)/4+.5-cR/2/Math.PI*.5}else{var cR=2*Math.PI*(h-.77)/.23;bH=(Math.sin(cR-Math.PI/2)+1)/2*.12}bH*=3;
bH+=Math.max(0,(F.opacity-50)/15);if(F.type==6){hr=g8}else{hr=bH}return ab*fc*hr}function H(K){return{J:K.random()*7/2+.5,oz:K.random()*2*Math.PI}}function b(K,h,F){return F.rC/300*q({kD:1})/q(F)*10*(Math.sin(h.J*2*Math.PI*K+h.oz)+10*(F.random()-.5))}function R(K){var h=Math.exp(-K.ix/25);
return{J:K.random()*3/2+.5,oz:K.random()*2*Math.PI,_a:(K.random()-.5)*10*h}}function W(K,h){var F=Math.ceil(Y(K)),N=[];
for(var C=0;C<=F;++C){N.push(R(h))}return N}function J(K,h){var F=h.J*4*Math.PI*K+h.oz;return Math.exp(-1/2*Math.PI*K)*Math.cos(F)*Math.cos(F)*Math.cos(F)*Math.cos(F)*Math.cos(F)+K*h._a-h._a/4}function u(K,h,F,N,iQ){var jB=0,k=Z(h)-1;
for(var C=0;C<k;++C){for(var ab=0;ab<K.length-1;ab+=q(h)-1){for(var f_=C;f_<K[0].length/2-k;f_+=k){for(var fc=ab;
fc<ab+(q(h)-1);++fc){F[iQ+jB]=I(fc*(h.px-1)/(K.length-1)%1,f_/K[0].length,h);var g8=0,bH=0;if(h.type==6&&fc!=0&&fc!=K.length-1){bH=(K[fc][2*(f_+1)+1]-K[fc][2*f_+1])/2;
g8=(K[fc][2*(f_+1)]-K[fc][2*f_])/2}N[8*iQ+8*jB]=K[fc][2*f_]+g8;N[8*iQ+8*jB+1]=K[fc][2*f_+1]+bH;N[8*iQ+8*jB+2]=K[fc][2*(f_+k)]+g8;
N[8*iQ+8*jB+3]=K[fc][2*(f_+k)+1]+bH;N[8*iQ+8*jB+4]=K[fc+1][2*(f_+k)];N[8*iQ+8*jB+5]=K[fc+1][2*(f_+k)+1];
N[8*iQ+8*jB+6]=K[fc+1][2*f_];N[8*iQ+8*jB+7]=K[fc+1][2*f_+1];++jB}}}}}function e(K){var h=[100,300,500,700,1e3];
return h[K.kD-1]}function Q(K){var h=[30,70,100,140,300];return h[K.kD-1]}function q(K){var h=[5,7,26,40,100];
return h[K.kD-1]}function Z(K){if(K.kD==1){return 4}else if(K.kD==2){return 8}else{return Math.floor(Q(K)/9)}}function E(K){var h=K.px,F=new Float32Array(h),N=null;
for(var C=0;C<h;++C){F[C]=K.random()}if(K.px<=3){F[0]=0;F[K.px-1]=1}else{for(var C=0;C<2;++C){var iQ=Math.floor(K.random()*h);
if(N==null||N!=iQ){F[iQ]=C;N=iQ}else{F[iQ+1]=C}}}return F}function z(K,h){var F=[],N=.2,jB=0;for(var C=0;
C<K.length;++C){var iQ=h.random()*(1-N)+N;F.push(iQ)}var k=Math.min(3,h.px);for(var C=0;C<K.length;++C){if(F[C]>.9){++jB}}while(jB<k){var ab=Math.floor(h.random()*K.length);
if(F[ab]<=.9){F[ab]=.9+.1*h.random();++jB}}return F}function V(K,h){var F=e(h),N=e({kD:1}),iQ=[];for(var C=0;
C<K.length;++C){iQ.push(Math.max(1,(h.random()*10+2)*F/N))}return iQ}function Y(K){var h=0;for(var C=0;
C<K.length;++C){if(C==0){h+=K[C]}else{h+=Math.abs(K[C]-K[C-1])}}return h}function d(K,h){if(K.length/2-1==e(h)){return K}var F=new Float32Array(2*(e(h)+1)),N=(K.length-2)/(F.length-2);
for(var C=0;C<F.length/2;++C){var iQ=C*N,jB=Math.floor(iQ),k=Math.ceil(iQ),ab=k-jB,f_=1,fc=0;if(ab!=0){f_=(k-iQ)/ab;
fc=(iQ-jB)/ab}F[2*C]=f_*K[2*jB]+fc*K[2*k];F[2*C+1]=f_*K[2*jB+1]+fc*K[2*k+1]}return F}function w(K,h){var F=K.length/2,N=o(K),iQ=N/F,jB=!1,f_=0,fc=0,g8=1;
if(h){var k=Math.floor(N/h.alh),ab=h.alh;if(h.aaq&&K[0]==K[K.length-2]&&K[1]==K[K.length-1]){jB=!0;ab=N/(k+1)}if(h.type==2&&!jB&&ab*k+h.length>N){F=k+1}else{F=k+2}iQ=ab}var bH=new Float32Array(F*2);
bH[0]=K[0];bH[1]=K[1];for(var C=1;C<F;++C){while(f_<=C*iQ){fc=f_;f_+=l([K[2*g8],K[2*g8+1]],[K[2*(g8-1)],K[2*(g8-1)+1]]);
++g8}var cR=1-(C*iQ-fc)/(f_-fc);bH[2*C]=(1-cR)*K[2*g8]+cR*K[2*(g8-1)];bH[2*C+1]=(1-cR)*K[2*g8+1]+cR*K[2*(g8-1)+1]}bH[bH.length-2]=K[K.length-2];
bH[bH.length-1]=K[K.length-1];return bH}function A(K,h){var F=w(K,h),N=[];for(var C=0;C<(F.length-2)/2;
++C){var iQ=[];iQ.push(F[2*C]);iQ.push(F[2*C+1]);var jB=l([F[2*(C+1)],F[2*(C+1)+1]],[F[2*C],F[2*C+1]]),k=[(F[2*(C+1)]-F[2*C])/jB,(F[2*(C+1)+1]-F[2*C+1])/jB],ab=a((h.ac5-90)/360*2*Math.PI),f_=k;
if(h.type==3){f_=ab}else if(h.type==4){f_=a(P(k)+P(ab))}else if(h.type==5){f_=a(((h.random()-.5)*h.ac5-90)/360*2*Math.PI)}var fc=h.length;
if(h.a0c){fc=2*h.random()*h.length}iQ.push(F[2*C]+f_[0]*fc);iQ.push(F[2*C+1]+f_[1]*fc);N.push(iQ)}return N}function $(K){if(K.ap0){K.VN=100*Math.random()}else{K.VN=K.aoi}K.random=new m;
K.random(K.VN);if(K.type==6){K.px=2;K.shape=5;K.abm=0}}function i(K,h){K=d(K,h);var F=[K],fc=0;if(h.type>=2&&h.type<6){F=A(K,h)}var N=Z(h)-1,iQ=Q(h)-N,jB=(h.px-1)*(q(h)-1),k=F.length*iQ*jB,ab=new Float32Array(k),f_=new Float32Array(8*k);
for(var C=0;C<F.length;++C){for(var g8=0;g8<1e4;++g8){h.VN=s(h.VN)}h.random(h.VN);var K=d(F[C],h),bH=E(h),cR=Y(bH),hr=y(K,bH,h),h$=O(h,bH),gE=c(h$.abh,hr,h);
gE=f(gE,h$.ol,h$.a5Z,Q(h));if(h.Rq>0){gE=T(gE,o(F[C]),h)}u(gE,h,ab,f_,fc);fc+=iQ*jB}return[ab,f_]}var fQ=function(K){var h=performance.now(),F=K[0],N=K[1];
$(N);var iQ=[new Float32Array(0),new Float32Array(0)];for(var C=0;C<F.length;++C){N.VN=s(N.VN);var jB=i(F[C],N),k=new Float32Array(iQ[0].length+jB[0].length),ab=new Float32Array(iQ[1].length+jB[1].length);
k.set(iQ[0]);k.set(jB[0],iQ[0].length);iQ[0]=k;ab.set(iQ[1]);ab.set(jB[1],iQ[1].length);iQ[1]=ab}var f_=performance.now();
if(N.aaM){console.E0("Geometry: "+String(f_-h)+"ms")}return iQ};return fQ}(),b8=function(){function s(a,P){var o=[],G=0,_=P.length,j=0,U=0,S=new bU,X=0,c=1e9;
for(U=0;U<_;U++){var y=U*8,O=P[U];if(O<c)c=O;var p=a[y+0],D=a[y+1],f=a[y+2],T=a[y+3],I=a[y+4],H=a[y+5],b=a[y+6],R=a[y+7],W=Math.min(p,f,I,b),J=Math.max(p,f,I,b),u=Math.min(D,T,H,R),e=Math.max(D,T,H,R),Q=new bU(W,u,J-W,e-u),q=Q.if(S),Z=X+O;
if(U-j<10&&(U==j||q.k()*.8<Q.k()+S.k())){S=q;X=Z}else{o.push(U-j);j=U;S=Q;X=O;c=O}}if(U!=j)o.push(U-j);
return o}function m(a,P,o,G,_,j){var U=document.createElement("canvas"),D=0,k=.8;U.width=P;U.height=o;
var S=U.getContext("2d"),X=_[0],c=_[1],y=new Float64Array(P*o),O=Date.now(),p=s(c,X);for(var f=0;f<p.length;
f++){var T=D,I=D+p[f],R=1e9,J=1e9,z=0;D=I;var H=T*8,b=I*8,W=-R,u=-J;for(var e=H;e<b;e+=2){var Q=c[e],q=c[e+1];
if(Q<R)R=Q;if(Q>W)W=Q;if(q<J)J=q;if(q>u)u=q}R=Math.floor(R);W=Math.ceil(W);J=Math.floor(J);u=Math.ceil(u);
var Z=W-R,E=u-J;for(var V=T;V<I;V++)z+=X[V];for(var e=H;e<b;e+=8){var Y=X[e>>>3],d=c[e+0],w=c[e+1],A=c[e+2],$=c[e+3],i=c[e+4],K=c[e+5],h=c[e+6],F=c[e+7];
S.fillStyle="rgba(0,0,0,"+Y/z+")";S.beginPath();S.moveTo(d,w);S.lineTo(A,$);S.lineTo(i,K);S.lineTo(h,F);
S.closePath();S.fill()}var N=S.getImageData(R,J,Z,E).data;for(var q=0;q<E;q++)for(var Q=0;Q<Z;Q++){var C=q*Z+Q,iQ=N[C*4+3],jB=(J+q)*P+R+Q;
if(iQ!=0)y[jB]+=iQ*z}S.clearRect(R,J,Z,E)}var ab=j[1].color,f_=Math.pow(ab.o/255,k),fc=Math.pow(ab.z/255,k),g8=Math.pow(ab.S/255,k),bH=new bU(0,0,P,o),cR=L.B(P*o*4);
for(var q=0;q<o;q++)for(var Q=0;Q<P;Q++){var C=q*P+Q,V=C*4,X=y[C]*(1/255);cR[V]=x(f_,X);cR[V+1]=x(fc,X);
cR[V+2]=x(g8,X);cR[V+3]=Math.min(255,X*255)}L.a.$P("norm",cR,bH,G,bH,bH,1)}var l=new Uint8Array(2e3);
for(var C=0;C<2e3;C++)l[C]=255*Math.min(1,Math.log(C/700+1));function x(a,P){return l[Math.min(1500,~~(a*P*1e3))]}return m}();
L.AC={a4G:function(s,m){var C=s.length;s.push(m);var l=C>>>1;while(l!=0&&s[C][0]<s[l][0]){var x=s[C];
s[C]=s[l];s[l]=x;C=l;l=C>>>1}},aiz:function(s){if(s.length==2)return s.pop();var top=s[1],C=1;s[1]=s.pop();
var m=s.length;while(!0){var l=C<<1,x=l+1,a=C;if(l<m&&s[l][0]<s[a][0])a=l;if(x<m&&s[x][0]<s[a][0])a=x;
if(a==C)break;var P=s[C];s[C]=s[a];s[a]=P;C=a}return top},a2V:function(s){for(var C=1;C<s.length;C++){var m=C,l=1e9;
while(m!=0){var x=s[m][0];if(x>l){console.log(C);throw"e"}l=x;m=m>>>1}}}};L.a={};L.a.lZ=new Float64Array(256);
L.a.Qs=new Uint8Array(256*256);L.a.hT=new Uint8Array(256*256);(function(){for(var C=0;C<256;C++)L.a.lZ[C]=255/C;
for(var C=0;C<256;C++)for(var s=0;s<256;s++)L.a.Qs[C*256+s]=C==0?0:Math.round(s*255/C);for(var C=0;C<256;
C++)for(var s=0;s<256;s++)L.a.hT[C*256+s]=Math.round(C*(255-s)/255)}());L.a.$P=function(s,m,l,x,a,P,o,G){if(G==null)G=jo.gg();
if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(s)==-1){o=o*G.fill;G.fill=1;G.style=!1}var _="norm,dark,mul ,idiv,lbrn,lite,scrn,div ,lddg,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv".split(","),j="dkCl,lgCl,hue ,sat ,colr,lum ".split(","),U=L.a[s+"F"];
if(G.sk==null&&s=="norm")L.a.a4D(m,l,x,a,P,o,U,G.yz?1:0);else if(s=="diss")L.a.alN(m,l,x,a,P,o,U,G.yz?1:0);
else if(_.indexOf(s)!=-1)L.a.ai1(m,l,x,a,P,o,U,G);else if(j.indexOf(s)!=-1)L.a.a3b(m,l,x,a,P,o,U,G)};
L.a.a0k=function(s,m,l){var x=s*l+1-l;return x<.001?0:1-Math.min(1,(1-m)/x)};L.a.acC=function(s,m,l){return s*l==1?1:Math.min(1,m/(1-s*l))};
L.a.PX=function(s){return s<=.25?((16*s-12)*s+4)*s:Math.sqrt(s)};L.a.normF=function(s,m,l){return s};
L.a.darkF=function(s,m,l){return Math.min(s,m)};L.a["mul F"]=function(s,m,l){return s*m};L.a.idivF=function(s,m,l){var x=s*l+1-l;
return m==1?1:1-m>=x?0:1-(1-m)/x};L.a.lbrnF=function(s,m,l){return Math.max(0,s*l+m-l)};L.a.dkClF=function(s,m,l){var x=L.cG(s)<L.cG(m)?s:m;
l.o=x.o;l.z=x.z;l.S=x.S;return l};L.a.liteF=function(s,m,l){return Math.max(s,m)};L.a.scrnF=function(s,m,l){return m+s-m*s};
L.a["div F"]=function(s,m,l){s*=l;return m==0?0:m>=1-s?1:m/(1-s)};L.a.lddgF=function(s,m,l){s*=l;return Math.min(1,s+m)};
L.a.lgClF=function(s,m,l){var x=L.cG(s)>L.cG(m)?s:m;l.o=x.o;l.z=x.z;l.S=x.S;return l};L.a.overF=function(s,m,l){return L.a.hLitF(m,s,l)};
L.a.sLitF=function(s,m,l){return s<=.5?m-(1-2*s)*m*(1-m):m+(2*s-1)*(L.a.PX(m)-m)};L.a.hLitF=function(s,m,l){return s<=.5?L.a["mul F"](2*s,m,l):L.a.scrnF(2*s-1,m,l)};
L.a.vLitF=function(s,m,l){return s<=.5?L.a.a0k(2*s,m,l):L.a.acC(2*s-1,m,l)};L.a.lLitF=function(s,m,l){return s<=.5?L.a.lbrnF(2*s,m,l):L.a.lddgF(2*s-1,m,l)};
L.a.pLitF=function(s,m,l){return s<=.5?L.a.darkF(2*s,m,l):L.a.liteF(2*s-1,m,l)};L.a.hMixF=function(s,m,l){if(l>.99)return s+m<1?0:1;
return Math.min(1,Math.max(0,(m+s*l-l)/(1-l+1e-6)))};L.a.diffF=function(s,m,l){s*=l;return Math.abs(s-m)};
L.a.smudF=function(s,m,l){return s+m-2*s*m};L.a.fsubF=function(s,m,l){return Math.max(m-s,0)};L.a.fdivF=function(s,m,l){return Math.min(m/s,1)};
L.a["hue F"]=function(s,m,l){L.a.Ki(s,L.ZV(m),l);L.a.nt(l,L.cG(m),l)};L.a["sat F"]=function(s,m,l){L.a.Ki(m,L.ZV(s),l);
L.a.nt(l,L.cG(m),l)};L.a.colrF=function(s,m,l){L.a.nt(s,L.cG(m),l)};L.a["lum F"]=function(s,m,l){L.a.nt(m,L.cG(s),l)};
L.a.nt=function(s,m,l){var x=m-L.cG(s);l.o=s.o+x;l.z=s.z+x;l.S=s.S+x;L.a.a83(l)};L.a.a83=function(s){var m=s.o,l=s.z,x=s.S,a=L.js(m,l,x),cE=Math.min(m,l,x),P=Math.max(m,l,x);
if(cE<0){var o=a/(a-cE);m=a+(m-a)*o;l=a+(l-a)*o;x=a+(x-a)*o}if(P>1){var o=(1-a)/(P-a);m=a+(m-a)*o;l=a+(l-a)*o;
x=a+(x-a)*o}s.o=m;s.z=l;s.S=x};L.a.Ki=function(s,m,l){var x=L.a.ap8,a=s.o,P=s.z,o=s.S;if(a==P&&P==o){l.o=l.z=l.S=0}else if(a>P){if(a>o){if(P>o){l.o=m;
l.z=x(a,P,o,m);l.S=0}else{l.o=m;l.S=x(a,o,P,m);l.z=0}}else{l.S=m;l.o=x(o,a,P,m);l.z=0}}else{if(a<o){if(P>o){l.z=m;
l.S=x(P,o,a,m);l.o=0}else{l.S=m;l.z=x(o,P,a,m);l.o=0}}else{l.z=m;l.o=x(P,a,o,m);l.S=0}}};L.a.ap8=function(s,m,l,x){return(m-l)*x/(s-l)};
L.a.a4D=function(s,m,l,x,a,P,o,G){var _=m.pF(x).pF(a),j=Math.max(0,_.x-m.x),U=Math.max(0,_.x-x.x),S=Math.max(0,_.y-m.y),X=Math.max(0,_.y-x.y),c=_.e,y=_.l,O=m.e,p=x.e,D=L.a.Qs,f=L.a.hT,T=new Uint32Array(s.buffer),I=new Uint32Array(l.buffer);
for(var C=0;C<y;C++){var H=(S+C)*O+j,b=(X+C)*p+U;for(var R=0;R<c;R++){var W=T[H+R],V=1;if(W>>>24==0)continue;
if(W>>>24==255&&P==1&&G==0){I[b+R]=T[H+R];continue}var J=I[b+R],u=W&255,e=W>>>8&255,Q=W>>>16&255,q=J&255,Z=J>>>8&255,E=J>>>16&255,z=P,Y=(J>>>24)*(1/255);
if(G==0){z=(W>>>24)*P*(1/255);V=Y}var d=V*(1-z),w=z+d,A=1/w;I[b+R]=~~(.5+(G*Y+(1-G)*w)*255)<<24|~~(.5+(Q*z+E*d)*A)<<16|~~(.5+(e*z+Z*d)*A)<<8|~~(.5+(u*z+q*d)*A)}}};
L.a.a4O=function(s,m,l,x,a,P){var o=m.pF(x).pF(a),G=Math.max(0,o.x-m.x),_=Math.max(0,o.x-x.x),j=Math.max(0,o.y-m.y),U=Math.max(0,o.y-x.y),S=o.e,X=o.l,c=m.e,y=x.e,O=L.a.Qs,p=L.a.hT,D=new Uint32Array(s.buffer),f=new Uint32Array(l.buffer),T=Math.floor(Math.random()*16777215),I=0;
for(var C=0;C<X;C++){var H=(j+C)*c+G,b=(U+C)*y+_;for(var R=0;R<S;R++){var W=D[H+R];if(W>>>24==0)continue;
if(W>>24==255&&P==1){f[b+R]=W;continue}var J=f[b+R],u=(W>>>24)*P*(1/255),e=(J>>>24)*(1/255),Q=e*(1-u),q=u+Q,Z=W&255,E=W>>>8&255,z=W>>>16&255,V=J&255,Y=J>>>8&255,d=J>>>16&255;
I>>>=8;if((R&3)==0)I=L.a.IX(b+R+T);var w=q==0?0:1/q,A=Math.floor(q*(256*255))+(I&255)>>>8,$=Math.floor((z*u+d*Q)*w+.5),i=Math.floor((E*u+Y*Q)*w+.5),K=Math.floor((Z*u+V*Q)*w+.5);
f[b+R]=A<<24|$<<16|i<<8|K}}};L.a.VS=function(s,m,l,x,a,P,o,G){var _=L.js(s,m,l),j=L.js(x,a,P),U=Math.min,S=L.a.a7D,X=S(_,G,0);
X=U(X,S(s,G,8));X=U(X,S(m,G,16));X=U(X,S(l,G,24));var c=S(j,G,4);c=U(c,S(x,G,12));c=U(c,S(a,G,20));c=U(c,S(P,G,28));
c=Math.max(c,1-o);var y=Math.min(X,c);return y<0?0:y>1?1:y};L.a.a7D=function(s,m,C){return Math.min((s-m[C])*m[C+1],(s-m[C+3])*m[C+2])};
L.a.ai1=function(s,m,l,x,a,P,o,G){var _=1/255,j=_*P,U=G.yz?1:0,S=G.fill,X=G.style,c=m.pF(x).pF(a),y=Math.max(0,c.x-m.x),O=Math.max(0,c.x-x.x),p=Math.max(0,c.y-m.y),D=Math.max(0,c.y-x.y),f=c.e,T=c.l,I=m.e,H=x.e,b=new Uint32Array(s.buffer),R=new Uint32Array(l.buffer);
for(var C=0;C<T;C++){var W=(p+C)*I+y,J=(D+C)*H+O;for(var u=0;u<f;u++,W++,J++){var e=b[W],w=1;if(e>>>24==0)continue;
var Q=R[J],q=(e&255)*_,Z=(e>>>8&255)*_,E=(e>>>16&255)*_,z=(Q&255)*_,V=(Q>>>8&255)*_,Y=(Q>>>16&255)*_,d=P;
if(U==0){d=(e>>>24)*j;w=(Q>>>24)*_}if(G.sk)d*=L.a.VS(q,Z,E,z,V,Y,w,G.sk);var A=w*(1-d),$=d+A,i=$==0?0:255/$,K=X?1:d,h=((1-w)*d*q+(1-K)*w*z+K*w*o(q,z,(1+d-K)*S))*i,F=((1-w)*d*Z+(1-K)*w*V+K*w*o(Z,V,(1+d-K)*S))*i,N=((1-w)*d*E+(1-K)*w*Y+K*w*o(E,Y,(1+d-K)*S))*i;
$=d*S+w*(1-d*S);var iQ=~~($*255+.5);R[J]=U*(Q>>>24)+(1-U)*iQ<<24|N<<16|F<<8|h}}};L.a.a3b=function(s,m,l,x,a,P,o,G){var _=1/255,j=_*P,U=G.yz?1:0,S=m.pF(x).pF(a),X=Math.max(0,S.x-m.x),c=Math.max(0,S.x-x.x),y=Math.max(0,S.y-m.y),O=Math.max(0,S.y-x.y),p=S.e,D=S.l,f=new Uint32Array(s.buffer),T=new Uint32Array(l.buffer),I={o:0,z:0,S:0},H={o:0,z:0,S:0},b={o:0,z:0,S:0};
for(var C=0;C<D;C++){var R=(y+C)*m.e+X,W=(O+C)*x.e+c;for(var J=0;J<p;J++,R++,W++){var u=f[R],e=T[W],Q=(u&255)*_,q=(u>>>8&255)*_,Z=(u>>>16&255)*_,E=(e&255)*_,z=(e>>>8&255)*_,V=(e>>>16&255)*_,Y=P,d=1;
if(U==0){Y=(u>>>24)*j;d=(e>>>24)*_}if(G.sk)Y*=L.a.VS(Q,q,Z,E,z,V,d,G.sk);var w=d*(1-Y),A=Y+w,$=255/A;
I.o=Q;I.z=q;I.S=Z;H.o=E;H.z=z;H.S=V;o(I,H,b);var i=(((1-d)*Q+d*b.o)*Y+E*w)*$,K=(((1-d)*q+d*b.z)*Y+z*w)*$,h=(((1-d)*Z+d*b.S)*Y+V*w)*$,F=U*(e>>>24)+(1-U)*Math.round(A*255);
T[W]=F<<24|h<<16|K<<8|i}}};L.a.a8=function(s){s=s^61^s>>>16;s=s+(s<<3);s=s^s>>>4;s=s*668265261;s=s^s>>15;
return(s&16777215)*(1/16777215)};L.a.IX=function(s){s=s^61^s>>>16;s=s+(s<<3);s=s^s>>>4;s=s*668265261;
s=s^s>>>15;return s};L.a.eT=function(s){this.O$=s};L.a.eT.prototype.get=function(){var s=this.O$=L.a.IX(this.O$);
return(s&16777215)*(1/16777215)};L.a.alN=function(s,m,l,x,a,P,o,G){var _=1/255,j=_*P,U=Math.round(P*(256*256*256/255)),S=m.pF(x).pF(a),X=Math.max(0,S.x-m.x),c=Math.max(0,S.x-x.x),y=Math.max(0,S.y-m.y),O=Math.max(0,S.y-x.y),p=S.e,D=S.l,f=new Uint32Array(s.buffer),T=new Uint32Array(l.buffer);
for(var C=0;C<D;C++){var I=(y+C)*m.e+X,H=(O+C)*x.e+c;for(var b=0;b<p;b++,I++,H++){var R=f[I],W=T[H],J=G*255+(1-G)*(R>>>24);
if((L.a.IX(I)&16777215)>=J*U)continue;T[H]=R&16777215|G*(W>>>24)+(1-G)*255<<24}}};L.a.aos=function(s,m,l){for(var C=0;
C<s.length;C+=4){var x=l[C>>>2];if(x==0)continue;var a=x*(1/255),P=1/a,o=m[C],G=m[C+1],_=m[C+2],j=s[C],U=s[C+1],S=s[C+2];
m[C]=Math.min(255,Math.max(0,Math.round((o-(1-a)*j)*P)));m[C+1]=Math.min(255,Math.max(0,Math.round((G-(1-a)*U)*P)));
m[C+2]=Math.min(255,Math.max(0,Math.round((_-(1-a)*S)*P)));m[C+3]=255}};L.a.HZ=function(s,m,l,x,a,P,o,G,_,j,U){if(j==null)j=!1;
if(U==null)U=[1,1,1];var S=255<<24|U[2]*16711680|U[1]*65280|U[0]*255,X=~S;if(a&&!m.yb(P)){var c=L.B(m.k()*4);
c.fill(o);L.kV(a,P,c,m);a=c;P=m}if(j){if(a==null)L.a.ata(s,m,l,x,a,G,_,S,X);else L.a.apf(s,m,l,x,a,G,_)}else{if(a==null)L.a.a8D(s,m,l,x,a,G,_,S,X);
else L.a.a3C(s,m,l,x,a,G,_)}};L.a.a8D=function(s,m,l,x,a,P,o,G,_){var j=1/255,U=m.pF(x).pF(P),S=Math.max(0,U.x-m.x),X=Math.max(0,U.x-x.x),c=Math.max(0,U.y-m.y),y=Math.max(0,U.y-x.y),O=U.e,p=U.l,D=new Uint32Array(s.buffer),f=new Uint32Array(l.buffer),T=L.a.Qs,I=o*255&255;
for(var C=0;C<p;C++){var H=(c+C)*m.e+S,b=(y+C)*x.e+X;for(var R=0;R<O;R++,H++,b++){var W=D[H],J=f[b],u=W>>>24,e=J>>>24,Q=L.Dh(I*u+(255-I)*e),q=L.Dh(u*I),Z=L.Dh(e*(255-I)),E=W&255,z=W>>>8&255,V=W>>>16&255,Y=J&255,d=J>>>8&255,w=J>>>16&255,A=q*E+Y*Z,$=q*z+d*Z,i=q*V+w*Z;
A=T[Q<<8|L.Dh(A)];$=T[Q<<8|L.Dh($)];i=T[Q<<8|L.Dh(i)];var K=Q<<24|i<<16|$<<8|A;f[b]=_&J|G&K}}};L.a.ata=function(s,m,l,x,a,P,o,G,_){var j=1/255,U=m.pF(x).pF(P),S=Math.max(0,U.x-m.x),X=Math.max(0,U.x-x.x),c=Math.max(0,U.y-m.y),y=Math.max(0,U.y-x.y),O=U.e,p=U.l,D=new Uint32Array(s.buffer),f=new Uint32Array(l.buffer),T=L.a.Qs,I=o*16777215&16777215;
for(var C=0;C<p;C++){var H=(c+C)*m.e+S,b=(y+C)*x.e+X;for(var R=0;R<O;R++,H++,b++){if((L.a.IX(H)&16777215)<I){f[b]=_&f[b]|G&D[H]}}}};
L.a.a3C=function(s,m,l,x,a,P,o){var G=1/255,_=m.pF(x).pF(P),j=Math.max(0,_.x-m.x),U=Math.max(0,_.x-x.x),S=Math.max(0,_.y-m.y),X=Math.max(0,_.y-x.y),c=_.e,y=_.l,O=new Uint32Array(s.buffer),p=new Uint32Array(l.buffer),D=L.a.Qs;
for(var C=0;C<y;C++){var f=(S+C)*m.e+j,T=(X+C)*x.e+U;for(var I=0;I<c;I++,f++,T++){var H=a[f]*o&255;if(H==0)continue;
if(H==255){p[T]=O[f];continue}var b=O[f],R=p[T],W=b>>>24,J=R>>>24,u=L.Dh(H*W+(255-H)*J),e=L.Dh(W*H),Q=L.Dh(J*(255-H)),q=b&255,Z=b>>>8&255,E=b>>>16&255,z=R&255,V=R>>>8&255,Y=R>>>16&255,d=D[u<<8|L.Dh(e*q+z*Q)],w=D[u<<8|L.Dh(e*Z+V*Q)],A=D[u<<8|L.Dh(e*E+Y*Q)];
p[T]=u<<24|A<<16|w<<8|d}}};L.a.apf=function(s,m,l,x,a,P,o){var G=1/255,_=m.pF(x).pF(P),j=Math.max(0,_.x-m.x),U=Math.max(0,_.x-x.x),S=Math.max(0,_.y-m.y),X=Math.max(0,_.y-x.y),c=_.e,y=_.l,O=new Uint32Array(s.buffer),p=new Uint32Array(l.buffer),D=L.a.Qs,f=Math.round(o*257);
for(var C=0;C<y;C++){var T=(S+C)*m.e+j,I=(X+C)*x.e+U;for(var H=0;H<c;H++,T++,I++){var b=a[T]*f;if((L.a.IX(T)&65535)<b)p[I]=O[T]}}};
L.a.pd=function(s,m,l,x,a,P,o){var G=1/255,_=m.pF(x).pF(P),j=Math.max(0,_.x-m.x),U=Math.max(0,_.x-x.x),S=Math.max(0,_.y-m.y),X=Math.max(0,_.y-x.y),c=_.e,y=_.l,O=new Uint32Array(s.buffer),p=new Uint32Array(l.buffer),D=Math.floor(Math.random()*x.k()),f=L.a.aqT;
for(var C=0;C<y;C++){var T=(S+C)*m.e+j,I=(X+C)*x.e+U;for(var H=0;H<c;H++){var b=a[T+H]*o;if(b==0)continue;
if(b==255){p[I+H]=O[T+H];continue}var R=O[T+H],W=p[I+H],J=R>>>24,u=W>>>24,e=J*b*(1/255),Q=u*(255-b)*(1/255),q=R&255,Z=R>>>8&255,E=R>>>16&255,z=W&255,V=W>>>8&255,Y=W>>>16&255,d=L.a.IX(I+H+D),w=Math.floor((e+Q)*256+.5)+(d>>>0&255)>>>8,A=w==0?0:256/(e+Q),$=q*e+z*Q,i=Z*e+V*Q,K=E*e+Y*Q,h=Math.floor($*A+.5)+(d>>>8&255)>>>8,F=Math.floor(i*A+.5)+(d>>>16&255)>>>8,N=Math.floor(K*A+.5)+(d>>>24&255)>>>8;
p[I+H]=w<<24|N<<16|F<<8|h}}};L.a.aqT=function(s){return Math.floor(s+Math.random())};L.a.qL=function(s,m,l,x,a,P,o){var G=1/255,_=m.pF(x).pF(P),j=Math.max(0,_.x-m.x),U=Math.max(0,_.x-x.x),S=Math.max(0,_.y-m.y),X=Math.max(0,_.y-x.y),c=_.e,y=_.l;
for(var C=0;C<y;C++){var O=(S+C)*m.e+j,p=(X+C)*x.e+U;for(var D=0;D<c;D++,O++,p++){var f=o*a[O]*G;if(f==0)continue;
if(f==1){l[p]=s[O];continue}l[p]=s[O]*f+l[p]*(1-f)}}};L.wN={};L.wN.ass=function(s,m,l,x,a,P){L.wN.Ve(s,m,l,x,a,P,null,0)};
L.wN.a9n=function(s,m,l,x,a){L.wN.Ve(s,m,l,x,a,null,null,0)};L.wN.a8z=function(s,m,l,x,a,P,o){L.wN.Ve(s,m,l,x,a,null,P,o*.5)};
L.wN.Ve=function(s,m,l,x,a,P,o,G){var _=0,Q=0,q=1e9,Z=0,E=1e9,z=0,V=1e9,Y=0,d=0,w=0,A=0;if(P){_=a*.5;
a=3+Math.round((a-3)*.75)}if(o){a=Math.round(a*2.2)}var j=1/a,U=Math.floor(m*j)+1,S=Math.floor(l*j)+1,X=[],c=new Uint8Array(U*S*4),y=o?.5:1,O=P?64:0;
for(var p=0;p<S;p++){var D=o?.5*(p&1):0;for(var f=0;f<U;f++){var T=(f+Math.random()*y+D)*a,I=(p+Math.random()*y)*a;
X.push(T,I);var H=Math.min(m-1,Math.floor(T)),b=Math.min(l-1,Math.floor(I)),R=(b*m+H)*4,W=(p*U+f)*4;
for(var C=0;C<4;C++)c[W+C]=Math.max(0,Math.min(255,Math.floor(s[R+C]+(Math.random()-.5)*O)))}}var J=P?P:o?o:[0,0,0],u=U*S*2,e=[-U-1,-U,-U+1,-1,0,1,U-1,U,U+1];
for(var p=0;p<l;p++){w=0;for(var f=0;f<m;f++){var $=f+.5,i=p+.5,K=Math.floor(i*j),h=Math.floor($*j),F=K*U+h,jB=0,k=0;
if(w>1+G){q=L.wN.kC(X,Q,$,i);Y=Math.sqrt(q);w--;A++}else{q=E=V=1e9;for(var C=0;C<e.length;C++){var N=(F+e[C])*2;
if(N<0||N>=u)continue;var iQ=L.wN.kC(X,N,$,i);if(iQ<V){if(iQ<E){if(iQ<q){z=Z;V=E;Z=Q;E=q;Q=N;q=iQ}else{z=Z;
V=E;Z=N;E=iQ}}else{z=N;V=iQ}}}Y=Math.sqrt(q);d=Math.sqrt(E);w=d-(Y+d)*.5}if(o==null){var ab=(Y+d)*.5,f_=P?Math.max(0,ab-_):0;
jB=Math.max(0,Math.min(1,.5+ab-Y-f_));k=Math.max(0,Math.min(1,1-(.5+ab-Y)-f_))}else{var fc=Math.min(L.wN.co(X,Q,Z,$,i),L.wN.co(X,Q,z,$,i));
jB=Math.max(0,Math.min(1,fc-G*.5));if($<G||m-G<$||i<G||l-G<i)jB=0;k=0}var g8=1-k-jB,W=p*m+f<<2,bH=Q<<1,cR=Z<<1;
x[W+0]=Math.floor(.5+jB*c[bH+0]+k*c[cR+0]+g8*J[0]);x[W+1]=Math.floor(.5+jB*c[bH+1]+k*c[cR+1]+g8*J[1]);
x[W+2]=Math.floor(.5+jB*c[bH+2]+k*c[cR+2]+g8*J[2]);x[W+3]=s[W+3]}}};L.wN.kC=function(s,m,l,x){var a=l-s[m],P=x-s[m+1];
return a*a+P*P};L.wN.co=function(s,m,l,x,a){var P=s[m],o=s[m+1],G=s[l],_=s[l+1],j=(P+G)*.5,U=(o+_)*.5,S=j+(_-o),X=U-(G-P),c=X-U,y=S-j;
return Math.abs(c*x-y*a+S*U-X*j)/Math.sqrt(y*y+c*c)};L.yf={};L.yf.GW=function(s){if(L.yf.DL.length<s)L.yf.DL=L.B(s);
return L.yf.DL};L.yf.DL=L.B(0);L.yf.ub=function(s){if(L.yf.LY.length<s)L.yf.LY=new Float32Array(s);return L.yf.LY};
L.yf.LY=new Float32Array(0);L.yf.FS=function(s,m,l,x){var a=l.e,P=l.l;L.yf.amv(s,m,a,P,x)};L.yf.iC=function(s,m,l,x){var a=l.e,P=l.l;
L.yf.att(s,m,a,P,x)};L.yf.ag7=function(s,m,l){var x=m.e,a=m.l;L.yf.a0u(s,x,a,l)};L.yf.kH=function(s,m,l,x,a){var P=l.e,o=l.l;
L.yf.akI(s,m,P,o,x,a)};L.yf.GV=function(s,m,l,x){var a=l.e,P=l.l;x=Math.round(x);var o=L.yf.GW(a*P);
L.qv(s,m);L.yf.nN(m,o,a,P,x)};L.yf._Z=function(s,m,l){var x=m.e,a=m.l;l=Math.round(l);var P=L.yf.GW(x*a*4);
L.yf.dv(s,P,x,a,l)};L.yf._r=function(s,m,l,x){var a=l.e,P=l.l;x=Math.round(x);var o=L.yf.ub(a*P);L.qv(s,m);
L.yf.hH(m,o,a,P,x)};L.yf.Ly=function(s,m,l){var x=m.e,a=m.l;l=Math.round(l);var P=L.yf.GW(x*a*4);L.yf.Hg(s,P,x,a,l);
L.qv(P,s)};L.yf.Z1=function(s,cE){var m=Math.sqrt(12*s*s/cE+1),l=Math.floor(m);if(l%2==0)l--;var x=l+2,a=(12*s*s-cE*l*l-4*cE*l-3*cE)/(-4*l-4),P=Math.round(a),o=[];
for(var C=0;C<cE;C++)o.push(C<P?l:x);return o};L.yf.amv=function(s,m,l,x,a){var P=L.yf.Z1(a,3),o=L.yf.GW(l*x);
L.qv(s,m);L.yf.nN(m,o,l,x,P[0]-1>>1);L.yf.nN(m,o,l,x,P[1]-1>>1);L.yf.nN(m,o,l,x,P[2]-1>>1)};L.yf.att=function(s,m,l,x,a){var P=L.yf.Z1(a,2),o=L.yf.GW(l*x);
L.qv(s,m);L.yf.nN(m,o,l,x,P[0]-1>>1);L.yf.nN(m,o,l,x,P[1]-1>>1)};L.yf.a0u=function(s,m,l,x){var a=L.yf.Z1(x,3),P=L.yf.GW(m*l*4);
L.yf.dv(s,P,m,l,a[0]-1>>1);L.yf.dv(s,P,m,l,a[1]-1>>1);L.yf.dv(s,P,m,l,a[2]-1>>1)};L.yf.akI=function(s,m,l,x,a,P){if(P==null)P=3;
var o=L.yf.Z1(a,P),G=L.yf.ub(l*x);L.qv(s,m);for(var C=0;C<P;C++)L.yf.hH(m,G,l,x,(o[C]-1)/2)};L.yf.nN=function(s,m,l,x,a){L.yf.atk(s,m,l,x,a);
L.yf.anH(m,s,l,x,a)};L.yf.dv=function(s,m,l,x,a){L.yf.Hg(s,m,l,x,a);L.yf.aed(m,s,l,x,a)};L.yf.hH=function(s,m,l,x,a){L.yf.a8Z(s,m,l,x,a);
L.yf.aha(m,s,l,x,a)};L.yf.KQ=[];L.yf.jJ=function(s){if(L.yf.KQ[s])return L.yf.KQ[s];var m=1/(s+s+1),l=(s+s+1)*256,x=L.B(l);
for(var C=0;C<l;C++)x[C]=Math.round(C*m);L.yf.KQ[s]=x;return x};L.yf.atk=function(s,m,l,x,a){var P=1/(a+a+1),o=l-a-a-1,G=L.yf.jJ(a);
for(var C=0;C<x;C++){var _=C*l,j=_,U=_+a,S=s[_],X=s[_+l-1],c=(a+1)*S;for(var y=0;y<a;y++)c+=s[_+y];for(var y=0;
y<=a;y++){c+=s[U+y]-S;m[_+y]=G[c]}U+=a+1;_+=a+1;for(var y=0;y<o;y++){c+=s[U+y]-s[j+y];m[_+y]=G[c]}U+=o;
j+=o;_+=o;for(var y=l-a;y<l;y++){c+=X-s[j++];m[_++]=G[c]}}};L.yf.Hg=function(s,m,l,x,a){var P=l<<2,o=a<<2,G=1/(a+a+1),_=l-a-a-1,j=_<<2,U=L.yf.jJ(a);
for(var C=0;C<x;C++){var S=C*P,X=S,c=S+o,y=S+P,O=s[S],p=s[S+1],D=s[S+2],f=s[S+3],T=(a+1)*O,I=(a+1)*p,H=(a+1)*D,b=(a+1)*f;
for(var R=0;R<o;R+=4){T+=s[S+R];I+=s[S+R+1];H+=s[S+R+2];b+=s[S+R+3]}for(var R=0;R<=o;R+=4){T+=s[c]-O;
m[S]=U[T];I+=s[c+1]-p;m[S+1]=U[I];H+=s[c+2]-D;m[S+2]=U[H];b+=s[c+3]-f;m[S+3]=U[b];c+=4;S+=4}for(var R=0;
R<j;R+=4){T+=s[c+R]-s[X+R];m[S+R]=U[T];I+=s[c+R+1]-s[X+R+1];m[S+R+1]=U[I];H+=s[c+R+2]-s[X+R+2];m[S+R+2]=U[H];
b+=s[c+R+3]-s[X+R+3];m[S+R+3]=U[b]}c+=j;X+=j;S+=j;O=s[y-4];p=s[y-3];D=s[y-2];f=s[y-1];for(var R=l-a;
R<l;R++){T+=O-s[X];m[S]=U[T];I+=p-s[X+1];m[S+1]=U[I];H+=D-s[X+2];m[S+2]=U[H];b+=f-s[X+3];m[S+3]=U[b];
X+=4;S+=4}}};L.yf.a8Z=function(s,m,l,x,a){var P=1/(a+a+1),o=l-a-a-1;for(var C=0;C<x;C++){var G=C*l,_=G,j=G+a,U=s[G],S=s[G+l-1],X=(a+1)*U;
for(var c=0;c<a;c++)X+=s[G+c];for(var c=0;c<=a;c++){X+=s[j+c]-U;m[G+c]=X*P}j+=a+1;G+=a+1;for(var c=0;
c<o;c++){X+=s[j+c]-s[_+c];m[G+c]=X*P}j+=o;_+=o;G+=o;for(var c=l-a;c<l;c++){X+=S-s[_++];m[G++]=X*P}}};
L.yf.anH=function(s,m,l,x,a){var P=1/(a+a+1),o=x-a-a-1,G=L.yf.jJ(a);for(var C=0;C<l;C++){var _=C,j=_,U=_+a*l,S=s[_],X=s[_+l*(x-1)],c=(a+1)*S;
for(var y=0;y<a;y++)c+=s[_+y*l];for(var y=0;y<=a;y++){c+=s[U]-S;m[_]=G[c];U+=l;_+=l}for(var y=0;y<o;
y++){var O=y*l;c+=s[U+O]-s[j+O];m[_+O]=G[c]}j+=o*l;U+=o*l;_+=o*l;for(var y=x-a;y<x;y++){c+=X-s[j];m[_]=G[c];
j+=l;_+=l}}};L.yf.aed=function(s,m,l,x,a){var P=l<<2,o=a<<2,G=1/(a+a+1),_=x-a-a-1,j=_<<2,U=L.yf.jJ(a);
for(var C=0;C<l;C++){var S=C<<2,X=S,c=S+a*P,y=S+P*(x-1),O=s[S],p=s[S+1],D=s[S+2],f=s[S+3],T=(a+1)*O,I=(a+1)*p,H=(a+1)*D,b=(a+1)*f;
for(var R=0;R<a;R++){var W=S+R*P;T+=s[W];I+=s[W+1];H+=s[W+2];b+=s[W+3]}for(var R=0;R<=a;R++){T+=s[c]-O;
m[S]=U[T];I+=s[c+1]-p;m[S+1]=U[I];H+=s[c+2]-D;m[S+2]=U[H];b+=s[c+3]-f;m[S+3]=U[b];c+=P;S+=P}for(var R=0;
R<_;R++){var J=R*P;T+=s[c+J]-s[X+J];m[S+J]=U[T];I+=s[c+J+1]-s[X+J+1];m[S+J+1]=U[I];H+=s[c+J+2]-s[X+J+2];
m[S+J+2]=U[H];b+=s[c+J+3]-s[X+J+3];m[S+J+3]=U[b]}X+=_*P;c+=_*P;S+=_*P;O=s[y];p=s[y+1];D=s[y+2];f=s[y+3];
for(var R=x-a;R<x;R++){T+=O-s[X];m[S]=U[T];I+=p-s[X+1];m[S+1]=U[I];H+=D-s[X+2];m[S+2]=U[H];b+=f-s[X+3];
m[S+3]=U[b];X+=P;S+=P}}};L.yf.aha=function(s,m,l,x,a){var P=1/(a+a+1),o=x-a-a-1;for(var C=0;C<l;C++){var G=C,_=G,j=G+a*l,U=s[G],S=s[G+l*(x-1)],X=(a+1)*U;
for(var c=0;c<a;c++)X+=s[G+c*l];for(var c=0;c<=a;c++){X+=s[j]-U;m[G]=X*P;j+=l;G+=l}for(var c=0;c<o;c++){var y=c*l;
X+=s[j+y]-s[_+y];m[G+y]=X*P}_+=o*l;j+=o*l;G+=o*l;for(var c=x-a;c<x;c++){X+=S-s[_];m[G]=X*P;_+=l;G+=l}}};
L.k9={};L.k9.B=function(s,m,l,x){var a=[];for(var P=0;P<4;P++)for(var o=0;o<4;o++)a.push(s+l*o/3,m+x*P/3);
return a};L.k9.nD=function(s,m){var l=s.slice(0);for(var C=0;C<4;C++)for(var x=0;x<4;x++){var a=2*(C*4+x),P=2*(x*4+(3-C));
if(m){var o=a;a=P;P=o}l[P]=s[a];l[P+1]=s[a+1]}return l};L.k9.Jw=L.B(0);L.k9.drawImage=function(s,m,l,x,a,P,o){var G=!1,_=Date.now(),j=2,U=l+2*j,S=x+2*j,X=new bU(j,j,l,x),c=X.clone(),f=50;
c.yD(j,j);var y=L.k9.Jw;if(y.length!=c.k()*4)y=L.k9.Jw=L.B(c.k()*4);else y.fill(0);L.yx(m,X,y,c);if(G)console.log(Date.now()-_,"copy rect");
_=Date.now();L.t1(y);if(G)console.log(Date.now()-_,"multiply alpha");_=Date.now();var O=[],p=[],D=[];
for(var T=0;T<f+1;T++)for(var I=0;I<f+1;I++){var H=I/f,b=T/f;O.push(U*H,S*b);if(I<f&&T<f){var R=T*(f+1)+I,W=R+1,J=R+f+1,u=J+1;
p.push(R,W,J);p.push(J,W,u)}var e=L.k9.a4I(s,H,b);D.push(-e)}var Q=O.slice(0);L.k9.A(s,Q,new bU(j,j,l,x));
L.H.A(Q,new ae(1,0,0,1,-P.x,-P.y),Q);if(G)console.log(Date.now()-_,"mesh built");_=Date.now();var q=P.e,Z=P.l;
L.aw.in(y,U,S,a,q,Z,O,Q,D,p);if(G)console.log(Date.now()-_,"rendered");_=Date.now();L.z8(a);if(G)console.log(Date.now()-_,"divided");
_=Date.now()};L.k9.bw=new Array(10);L.k9.am2=function(s,m){var l=200,x=0,a=0,P=1e9,o=L.k9.bw;for(var G=0;
G<l+1;G++)for(var _=0;_<l+1;_++){var j=_/l,U=G/l;L.k9.wS(s,j,U,o);var S=o[8]-m.x,X=o[9]-m.y,c=S*S+X*X;
if(c<P){P=c;x=j;a=U}}return[x,a]};L.k9.A=function(s,m,l){var x=l.x,a=l.y,P=1/l.e,o=1/l.l,G=L.k9.bw;for(var _=0;
_<m.length;_+=2){var j=(m[_]-x)*P,U=(m[_+1]-a)*o;L.k9.wS(s,j,U,G);m[_]=G[8];m[_+1]=G[9]}};L.k9.a4I=function(s,m,l){var x,a,P,o,G=L.k9.bw;
L.k9.apO(s,m,l,G);x=G[8];a=G[9];L.k9.aeV(s,m,l,G);P=G[8];o=G[9];return x*o-a*P};L.k9.wS=function(s,m,l,x){L.k9.yR(x,0,l);
L.k9.yR(x,4,m);L.k9.Wk(s,x)};L.k9.apO=function(s,m,l,x){L.k9.yR(x,0,l);L.k9.Lx(x,4,m);L.k9.Wk(s,x)};
L.k9.aeV=function(s,m,l,x){L.k9.Lx(x,0,l);L.k9.yR(x,4,m);L.k9.Wk(s,x)};L.k9.Lx=function(s,C,m){var l=1-m;
s[C]=-3*(l*l);s[C+1]=3*(l*l)-6*(m*l);s[C+2]=6*(m*l)-3*(m*m);s[C+3]=3*(m*m)};L.k9.yR=function(s,C,m){var l=1-m;
s[C]=l*(l*l);s[C+1]=3*m*(l*l);s[C+2]=3*(m*m)*l;s[C+3]=m*m*m};L.k9.Wk=function(s,m){var l=0,x=0,a=0,P=m[0],o=m[1],G=m[2],_=m[3],j=m[4],U=m[5],S=m[6],X=m[7];
a=P*j;l+=s[0]*a;x+=s[1]*a;a=P*U;l+=s[2]*a;x+=s[3]*a;a=P*S;l+=s[4]*a;x+=s[5]*a;a=P*X;l+=s[6]*a;x+=s[7]*a;
a=o*j;l+=s[8]*a;x+=s[9]*a;a=o*U;l+=s[10]*a;x+=s[11]*a;a=o*S;l+=s[12]*a;x+=s[13]*a;a=o*X;l+=s[14]*a;x+=s[15]*a;
a=G*j;l+=s[16]*a;x+=s[17]*a;a=G*U;l+=s[18]*a;x+=s[19]*a;a=G*S;l+=s[20]*a;x+=s[21]*a;a=G*X;l+=s[22]*a;
x+=s[23]*a;a=_*j;l+=s[24]*a;x+=s[25]*a;a=_*U;l+=s[26]*a;x+=s[27]*a;a=_*S;l+=s[28]*a;x+=s[29]*a;a=_*X;
l+=s[30]*a;x+=s[31]*a;m[8]=l;m[9]=x};L.f5={};L.f5.a35=function(s,m,l){var x=Date.now(),a=new ArrayBuffer(m*l*16),P=L.f5.afq(s,m,l,a),o=L.f5.a2v(m,l,a);
return{Vx:o,b_:P}};L.f5.a1D=function(s,m,l){var x=Math.round(s.length/8),a=new Uint32Array(x),P=new Uint8Array(x),o=new Uint32Array(x);
L.MP(a,4294967295,0);a[l]=0;var G=new jI(x);G.push(l,a[l]);var _={Vx:s,b_:m,c4:a,oN:P,an:o,J5:G,a1O:l};
return _};L.f5.mv=function(s,m){var l=s.Vx,x=s.b_,a=s.c4,P=s.oN,o=s.an,G=s.J5;while(!G.Xh()&&(m==null||P[m]==0)){var _=G.pop();
P[_]=1;for(var C=0;C<8;C++){var j=l[8*_+C],U=_+j;if(j==0||P[U])continue;var S=a[_]+x[8*_+C];if(G.contains(U)&&S<a[U])G.remove(U,a[U]);
if(!G.contains(U)){a[U]=S;o[U]=_;G.push(U,a[U])}}}};function jI(s){this.Od=new Uint32Array(s);this.list=[];
this.yM=0;this.uL=4294967295}jI.prototype.Xh=function(){return this.yM==0};jI.prototype.push=function(s,m){var l=this.list;
if(l[m]==null)l[m]=[];l[m].push(s);this.yM++;this.Od[s]=l[m].length-1+1;this.uL=Math.min(this.uL,m)};
jI.prototype.pop=function(){this.yM--;var s=this.list,m=this.uL,l=s[m].pop();if(s[m].length==0)s[m]=null;
this.Qo();this.Od[l]=0;return l};jI.prototype.contains=function(s){return this.Od[s]!=0};jI.prototype.remove=function(s,m){this.yM--;
var l=this.list,C=this.Od[s]-1;if(C==l[m].length-1)l[m].pop();else{var x=l[m].pop();l[m][C]=x;this.Od[x]=C+1}if(l[m].length==0)l[m]=null;
this.Od[s]=0;this.Qo()};jI.prototype.Qo=function(){if(this.yM==0){this.uL=4294967295;return}var s=this.uL,m=this.list;
while(m[s]==null)s++;this.uL=s};L.f5.aht=function(s,m,l,x){var a=new Int16Array(x);for(var P=0;P<l;P++)for(var o=0;
o<m;o++){var C=P*m+o,G=0;if(1<o&&o<m-2&&1<P&&P<l-2){G+=s[C-m-m];G+=s[C-m-1]+2*s[C-m]+s[C-m+1];G+=s[C-2]+2*s[C-1]-16*s[C]+2*s[C+1]+s[C+2];
G+=s[C+m-1]+2*s[C+m]+s[C+m+1];G+=s[C+m+m]}else G=-16*s[C];a[C]=G}return a};L.f5.a4L=function(s,m,l,x){if(x==null)x=128;
var a=new Uint8Array(m*l);for(var P=1;P<l-1;P++)for(var o=1;o<m-1;o++){var C=P*m+o;a[C]=L.f5.a0P(s[C],s[C-1],s[C+1],s[C-m],s[C+m],x)}return a};
L.f5.a0P=function(s,m,l,x,a,P){var o=Math.abs(s);return s*m<0&&o<Math.abs(m)&&Math.abs(m-s)>P||s*l<0&&o<Math.abs(l)&&Math.abs(l-s)>P||s*x<0&&o<Math.abs(x)&&Math.abs(x-s)>P||s*a<0&&o<Math.abs(a)&&Math.abs(a-s)>P?1:0};
L.f5.a5M=function(s,m,l,x){var a=new Float32Array(x),P=0;new Uint32Array(x).fill(0);for(var o=0;o<l;
o++)for(var G=0;G<m;G++){var _=0,j=0,C=o*m+G,U=C*3;if(0<G&&G<m-1)_=s[C+1]-s[C-1];if(0<o&&o<l-1)j=s[C+m]-s[C-m];
var S=a[U+2]=Math.sqrt(_*_+j*j);if(S!=0){var X=1/S;a[U]=_*X;a[U+1]=j*X}if(S>P)P=S}var c=m*l,y=P==0?0:1/P;
for(var C=0;C<c;C++)a[C*3+2]=1-a[C*3+2]*y;return a};L.f5.a81=function(s,m,l){return l[~~((.5+.5*s)*255)]+l[~~((.5+.5*m)*255)]};
L.f5.afq=function(s,m,l,x){var a=Date.now(),P=L.f5.aht(s,m,l,x),o=L.f5.a4L(P,m,l),G=L.f5.a5M(s,m,l,x),_=new Float32Array(256);
for(var C=0;C<256;C++)_[C]=Math.acos(-1+2*C/255)*(.95/Math.PI);var j=[-1,0,1,1,1,0,-1,-1],U=[-1,-1,-1,0,1,1,1,0];
for(var C=0;C<8;C++){var S=1/Math.sqrt(j[C]*j[C]+U[C]*U[C]);j[C]*=S;U[C]*=S}var X=[j[0],U[0],j[1],U[1],j[2],U[2],j[3],U[3]],c=[-m-1,-m,-m+1,1],y=new Uint8Array(m*l*8);
new Uint32Array(y.buffer).fill(4294967295);var O=m*l;for(var p=1;p<l-1;p++)for(var D=1;D<m-1;D++){var f=p*m+D,T=1-o[f],I=G[f*3+2],H=G[3*f+1],b=-G[3*f];
for(var R=0;R<4;R++){var W=f+c[R];L.f5.aoR(f,W,R,y,o,G,T,I,H,b,X,_)}}return y};L.f5.aoR=function(s,m,l,x,a,P,o,G,_,j,U,S){var X=1-a[m],c=(l&1)==0?1:Math.SQRT1_2,y=P[m*3+2]*c,O=P[3*m+1],p=-P[3*m],D=G*c,f=U[l+l],T=U[l+l+1],I=_*f+j*T,H=O*f+p*T;
if(I+H<0){I=-I;H=-H}var b=L.f5.a81(I,H,S);x[(s<<3)+l]=L.f5.vj(X,b,y);x[(m<<3)+l+4]=L.f5.vj(o,b,D)};L.f5.vj=function(s,m,l){return 1+~~(.5+20*(.43*s+.43*m+.14*l))};
L.f5.a2v=function(s,m,l){var x=new Int16Array(l),a=x,C=0,P=0;new Uint32Array(l).fill(0);for(var o=0;
o<m;o++)for(var G=0;G<s;G++){if(o>0&&G>0)a[P+0]=-s-1;if(o>0)a[P+1]=-s;if(o>0&&G<s-1)a[P+2]=-s+1;if(G<s-1)a[P+3]=1;
if(o<m-1&&G<s-1)a[P+4]=s+1;if(o<m-1)a[P+5]=s;if(o<m-1&&G>0)a[P+6]=s-1;if(G>0)a[P+7]=-1;C++;P+=8}return x};
L.Rv={};L.Rv.UR=function(s){var m=s.slice(0),l=0;for(var C=0;C<s.length;C++)l+=s[C];for(var C=0;C<s.length;
C++)m[C]/=l;return m};L.Rv.kJ=[L.Rv.UR([1,2,1,2,16,2,1,2,1]),L.Rv.UR([1,2,1,2,4,2,1,2,1]),L.Rv.UR([0,-1,0,-1,8,-1,0,-1,0]),L.Rv.UR([-.7,-1,-.7,-1,10,-1,-.7,-1,-.7]),[-1,0,1,-2,0,2,-1,0,1],[1,2,1,0,0,0,-1,-2,-1]];
L.Rv.cz=function(s,m,l,x,a,P,o,G){if(o==null)o=!1;if(G==null)G=!1;var _=Math.floor(Math.sqrt(a.length)),j=_-1>>>1,U=new Uint32Array(s.buffer),m=new Uint8ClampedArray(m.buffer);
for(var C=0;C<x;C++)for(var S=0;S<l;S++){var X=0,c=0,y=0,O=0;for(var p=0;p<_;p++)for(var D=0;D<_;D++){var f=a[p*_+D];
if(f==0)continue;var T=S-j+D,I=C-j+p;if(T<0)T=0;else if(T>l-1)T=l-1;if(I<0)I=0;else if(I>x-1)I=x-1;if(G&&U[I*l+T]>>>24==0){I=C;
T=S}var H=U[I*l+T];X+=(H&255)*f;c+=(H>>>8&255)*f;y+=(H>>>16&255)*f;O+=(H>>>24&255)*f}if(o){if(X<0)X=-X;
if(c<0)c=-c;if(y<0)y=-y;if(O<0)O=-O}if(G){X=Math.max(0,Math.min(255,X));c=Math.max(0,Math.min(255,c));
y=Math.max(0,Math.min(255,y));O=Math.max(0,Math.min(255,O))}var b=C*l+S<<2;m[b]=~~(.5+X);m[b+1]=~~(.5+c);
m[b+2]=~~(.5+y);m[b+3]=255-P&m[b+3]|P&~~(.5+O)}};L.Rv.Id=function(s,m,l,x){var a=s.length,P=new Uint8Array(a);
L.Rv.cz(s,m,l,x,L.Rv.kJ[4],0,!0);L.Rv.cz(s,P,l,x,L.Rv.kJ[5],0,!0);for(var C=0;C<a;C+=4){var o=m[C],G=m[C+1],_=m[C+2],j=m[C+3],U=P[C],S=P[C+1],X=P[C+2],c=P[C+3];
m[C]=255-Math.max(0,Math.min(255,Math.sqrt(o*o+U*U)));m[C+1]=255-Math.max(0,Math.min(255,Math.sqrt(G*G+S*S)));
m[C+2]=255-Math.max(0,Math.min(255,Math.sqrt(_*_+X*X)))}};L.Rv.T3=function(s,m,l,x){var a=s.length,P=new Uint8Array(a);
L.Rv.Mj(s,m,l,x,L.Rv.kJ[4],!0);L.Rv.Mj(s,P,l,x,L.Rv.kJ[5],!0);for(var C=0;C<a;C++){var o=m[C],G=P[C];
m[C]=255-Math.max(0,Math.min(255,Math.sqrt(o*o+G*G)))}};L.Rv.Mj=function(s,m,l,x,a,P){m=new Uint8ClampedArray(m.buffer);
var o=[-l-1,-l,-l+1,-1,0,1,l-1,l,l+1],G=x-1,_=l-1;for(var C=1;C<G;C++)for(var j=1;j<_;j++){var U=C*l+j,S=L.Rv.lK(s,U,l,a);
if(P){if(S<0)S=-S}m[U]=~~(S+.5)}};L.Rv.lK=function(s,m,l,x){return s[m-l-1]*x[0]+s[m-l]*x[1]+s[m-l+1]*x[2]+s[m-1]*x[3]+s[m]*x[4]+s[m+1]*x[5]+s[m+l-1]*x[6]+s[m+l]*x[7]+s[m+l+1]*x[8]};
L.Rv.lt=function(s,m,l,x,a){var P=[-l-1,-l,-l+1,-1,0,1,l-1,l,l+1],o=x-1,G=l-1;for(var C=1;C<o;C++)for(var _=1;
_<G;_++){var j=C*l+_;m[j]=L.Rv.acm(s,j,l,a)}};L.Rv.acm=function(s,m,l,x){return s[m-l-1]*x[0]+s[m-l]*x[1]+s[m-l+1]*x[2]+s[m-1]*x[3]+s[m]*x[4]+s[m+1]*x[5]+s[m+l-1]*x[6]+s[m+l]*x[7]+s[m+l+1]*x[8]};
L.Du={};L.Du.iL=function(){function s(o,G,_,j,U,S,X){if(U==0){G.set(o);return}var c=L.B(_*j),y=L.B(_*j);
if(L.pl(o)){m(o,G,_,j,U,S,X);var O=[L.Du.YB,L.Du.R1],p=O.indexOf(S),D=p!=-1?O[1-p]:S;L.hy(o,c,3);L.Du.vJ(c,y,_,j,U,D,X);
L._Y(y,G,3)}else{for(var C=0;C<3;C++){L.hy(o,c,C);L.Du.vJ(c,y,_,j,U,S,X);L._Y(y,G,C)}}}function m(o,G,_,j,U,S,X){var c=0,y=new ArrayBuffer(512*4*3),O=[new Int32Array(y,0),new Int32Array(y,2048),new Int32Array(y,2*2048)],p=1+2*Math.round(Math.sqrt(U)),D=p>>>1,f=new Array(p),T=new Array(p);
for(var C=0;C<p;C++){var y=new ArrayBuffer(512*4*3);f[C]=[new Int32Array(y,0),new Int32Array(y,2048),new Int32Array(y,2*2048)];
T[C]=f[C][0]}var I=S[0],H=S[1],b=O[0];for(var R=0;R<_;R++)if(R<U||R>_-U-p-1){b.fill(0);var W=Math.max(R-U,0),J=Math.min(_,R+U+1),u=J-W;
for(var e=0;e<U;e++)x(b,o,e*_+W,e*_+J,1);for(var e=0;e<j;e++){var Q=e-U-1,q=e+U;if(q<j)x(b,o,q*_+W,q*_+J,1);
if(Q>=0)x(b,o,Q*_+W,Q*_+J,-1);var Z=e*_+R<<2;c=b[300];if(c!=0)for(var C=0;C<3;C++)G[Z+C]=I(O[C],o[Z+C],c,X)}}else{for(var C=0;
C<p;C++)T[C].fill(0);var W=R-U+D,J=R+U+1+D;for(var e=0;e<U;e++)l(T,o,e*_+W,e*_+J,1,D);for(var e=0;e<j;
e++){var Q=e-U-1,q=e+U;if(Q>=0)l(T,o,Q*_+W,Q*_+J,-1,D);if(q<j)l(T,o,q*_+W,q*_+J,1,D);var E=f[D];c=E[0][300];
for(var C=0;C<D;C++){var z=D-1-C,V=D+1+C,Y=f[z],d=f[V],w=c+Y[0][300],A=c+d[0][300],$=e*_+R+z<<2,i=e*_+R+V<<2;
if(w!=0)for(var K=0;K<3;K++)G[$+K]=H(E[K],Y[K],o[$+K],w,X);if(A!=0)for(var K=0;K<3;K++)G[i+K]=H(E[K],d[K],o[i+K],A,X)}var Z=e*_+R+D<<2;
if(c!=0)for(var K=0;K<3;K++)G[Z+K]=I(E[K],o[Z+K],c,X)}R+=p-1}}function l(o,G,_,j,U,S){var X=a,c=_<<2,y=j<<2;
X(o[S-1],G,_-1<<2,U);X(o[S-1],G,j-1<<2,-U);X(o[S+1],G,j<<2,U);X(o[S+1],G,_<<2,-U);for(var C=1;C<S;C++){var O=o[S-C-1],p=o[S+C+1];
for(var D=0;D<=C;D++){var f=D<<2;X(O,G,_-1-D<<2,U);X(O,G,j-1-D<<2,-U);X(p,G,j+D<<2,U);X(p,G,_+D<<2,-U)}}x(o[S],G,_,j,U)}function x(o,G,C,_,j){var U=C<<2,S=_<<2;
while(U<S){a(o,G,U,j);U+=4}}function a(o,G,_,j){var U=j*G[_+3];o[300]+=U;P(o,G[_],0,U);P(o,G[_+1],512,U);
P(o,G[_+2],1024,U)}function P(o,G,_,j){o[_|G]+=j;o[_|256|G>>>4]+=j}return s}();L.Du.vJ=function(){function s(S,X,c,y,O,p,D){if(O==0){X.set(S);
return}if(O<=80)m(S,X,c,y,O,p,D);else P(S,X,c,y,O,p,D)}function m(S,X,c,y,O,p,D){var f=0,T=new Int32Array(512),I=1+2*Math.round(Math.sqrt(O)),H=I>>>1,b=new Array(I);
for(var C=0;C<I;C++)b[C]=new Int32Array(512);var R=p[0],W=p[1];for(var J=0;J<c;J++)if(J<O||J>c-O-I-1){T.fill(0);
f=0;var u=Math.max(J-O,0),e=Math.min(c,J+O+1),Q=e-u;for(var q=0;q<O;q++){f+=Q;x(T,S,q*c+u,q*c+e,1)}for(var q=0;
q<y;q++){var Z=q-O-1,E=q+O;if(Z>=0){f-=Q;x(T,S,Z*c+u,Z*c+e,-1)}if(E<y){f+=Q;x(T,S,E*c+u,E*c+e,1)}var z=R(T,S[q*c+J],f,D);
X[q*c+J]=z}}else{for(var C=0;C<I;C++)b[C].fill(0);f=0;var u=J-O+H,e=J+O+1+H,Q=e-u;for(var q=0;q<O;q++){f+=Q;
l(b,S,q*c+u,q*c+e,1,H)}for(var q=0;q<y;q++){var Z=q-O-1,E=q+O;if(Z>=0){f-=Q;l(b,S,Z*c+u,Z*c+e,-1,H)}if(E<y){f+=Q;
l(b,S,E*c+u,E*c+e,1,H)}for(var C=0;C<H;C++){var V=H-1-C,Y=H+1+C;X[q*c+J+V]=W(b[H],b[V],S[q*c+J+V],f,D);
X[q*c+J+Y]=W(b[H],b[Y],S[q*c+J+Y],f,D)}X[q*c+J+H]=R(b[H],S[q*c+J+H],f,D)}J+=I-1}}function l(S,X,c,y,O,p){var D=a;
D(S[p-1],X[c-1],0,O);D(S[p-1],X[y-1],0,-O);D(S[p+1],X[y],0,O);D(S[p+1],X[c],0,-O);for(var C=1;C<p;C++){var f=S[p-C-1],T=S[p+C+1];
for(var I=0;I<=C;I++){D(f,X[c-1-I],0,O);D(f,X[y-1-I],0,-O);D(T,X[y+I],0,O);D(T,X[c+I],0,-O)}}x(S[p],X,c,y,O)}function x(S,X,C,c,y){while(C<c)a(S,X[C++],0,y)}function a(S,X,c,y){S[c|X]+=y;
S[c|256|X>>>4]+=y}function P(S,X,c,y,O,p,D){var f=0,T=new Int32Array(512),I=new Int32Array(1*c),H=new Int32Array(512*c),b=Math.min(O,c),R=Math.min(O,y),W=p[0];
for(var J=0;J<R;J++)o(H,I,S,c,J,1);for(var J=0;J<y;J++){if(J+O<y)o(H,I,S,c,J+O,1);if(J-O-1>=0)o(H,I,S,c,J-O-1,-1);
T.fill(0);f=0;for(var u=0;u<b;u++){f+=I[u];G(T,H,u)}for(var u=0;u<c;u++){var e=u-O-1,Q=u+O;if(e>=0&&I[e]!=0){f-=I[e];
_(T,H,e)}if(Q<c&&I[Q]!=0){f+=I[Q];G(T,H,Q)}var q=f==0?0:W(T,S[J*c+u],f,D);X[J*c+u]=q}}}function o(S,X,c,y,O,p){var C=O*y;
for(var D=0;D<y;D++){a(S,c[C+D],D<<9,p);X[D]+=p}}function G(S,X,c){for(var C=0;C<16;C++){var y=X[c<<9|256|C];
if(y==0)continue;S[256|C]+=y;var O=C<<4,p=c<<9|O;j(S,X,O,p);j(S,X,O+4,p+4);j(S,X,O+8,p+8);j(S,X,O+12,p+12)}}function _(S,X,c){for(var C=0;
C<16;C++){var y=X[c<<9|256|C];if(y==0)continue;S[256|C]-=y;var O=C<<4,p=c<<9|O;U(S,X,O,p);U(S,X,O+4,p+4);
U(S,X,O+8,p+8);U(S,X,O+12,p+12)}}function j(S,X,c,y){S[c]+=X[y];S[c+1]+=X[y+1];S[c+2]+=X[y+2];S[c+3]+=X[y+3]}function U(S,X,c,y){S[c]-=X[y];
S[c+1]-=X[y+1];S[c+2]-=X[y+2];S[c+3]-=X[y+3]}return s}();L.Du.R1=[function(s,m,l,x){var C=15;while(s[256|C]==0&&C>0)C--;
C=(C<<4)+15;while(s[C]==0&&C>0)C--;return C},function(s,m,l,x,a){var C=15;while(s[256|C]+m[256|C]==0&&C>0)C--;
C=(C<<4)+15;while(s[C]+m[C]==0&&C>0)C--;return C}];L.Du.YB=[function(s,m,l,x){var C=0;while(s[256|C]==0&&C<15)C++;
C=C<<4;while(s[C]==0&&C<255)C++;return C},function(s,m,l,x,a){var C=0;while(s[256|C]+m[256|C]==0&&C<15)C++;
C=C<<4;while(s[C]+m[C]==0&&C<255)C++;return C}];L.Du.Qp=.5;L.Du.CQ=[function(s,m,l,x){var a=~~(.5+L.Du.Qp*l),P=0,C=256;
while(P+s[C]<=a)P+=s[C++];C=C-256<<4;while(P<=a)P+=s[C++];return C-1},function(s,m,l,x,a){var P=~~(.5+L.Du.Qp*x),o=0,C=256;
while(o+s[C]+m[C]<=P){o+=s[C]+m[C];C++}C=C-256<<4;while(o<=P){o+=s[C]+m[C];C++}return C-1}];L.Du.qH=[function(s,m,l,x){var a=x[0],P=0,o=0,C=Math.max(0,m-a),G=Math.min(256,m+a+1);
while(C<G){var _=s[C];P+=C*_;o+=_;C++}return o==0?0:P/o},function(s,m,l,x,a){var P=a[0],o=0,G=0,C=Math.max(0,l-P),_=Math.min(256,l+P+1);
while(C<_){var j=s[C]+m[C];o+=C*j;G+=j;C++}return G==0?0:o/G}];L.V={};L.V.wi=function(s){var m=r.Q.qN(s.Trnf),l=s.Sz.v,x=L.V.CX(m,new bU(0,0,l.Wdth.v,l.Hght.v));
return L.V.wU(x)};L.V.CX=function(s,m){var l=s[0],x=s[1],a=s[2],P=s[3],o=s[6],G=s[7],_=s[4],j=s[5],U=0,S=0,X=1,c=0,y=0,O=1,p=1,D=1;
if(m){U=m.x;S=m.y;X=m.x+m.e;c=m.y;y=m.x;O=m.y+m.l;p=m.x+m.e;D=m.y+m.l}return L.V.Bd(s,[U,S,X,c,p,D,y,O])};
L.V.Bd=function(s,m){var l=s[0],x=s[1],a=s[2],P=s[3],o=s[6],G=s[7],_=s[4],j=s[5],U=m[0],S=m[1],X=m[2],c=m[3],y=m[6],O=m[7],p=m[4],D=m[5],f=[[U,S,1,0,0,0,-U*l,-S*l,l],[0,0,0,U,S,1,-U*x,-S*x,x],[X,c,1,0,0,0,-X*a,-c*a,a],[0,0,0,X,c,1,-X*P,-c*P,P],[y,O,1,0,0,0,-y*o,-O*o,o],[0,0,0,y,O,1,-y*G,-O*G,G],[p,D,1,0,0,0,-p*_,-D*_,_],[0,0,0,p,D,1,-p*j,-D*j,j]],T=[0,0,0,0,0,0,0,0],I=L.pc.J1(f,T);
if(I!=0)T=[0,0,0,0,0,0,0,0];return T};L.V.Yj=function(s){return Math.abs(s[6])<1e-10&&Math.abs(s[7])<1e-10};
L.V.wU=function(s){return new ae(s[0],s[3],s[1],s[4],s[2],s[5])};L.V.$D=function(s){return[s.lz,s.In,s.sI,s.S,s.Am,s.bW,0,0]};
L.V.A=function(s,m){var l=new Float64Array(2);for(var x=0;x<m.length;x+=2){var a=m[x],P=m[x+1];L.V.bQ(a,P,s,l);
m[x]=l[0];m[x+1]=l[1]}};L.V.bQ=function(s,m,l,x){var a=1/(l[6]*s+l[7]*m+1);x[0]=(l[0]*s+l[1]*m+l[2])*a;
x[1]=(l[3]*s+l[4]*m+l[5])*a};L.V.Rs=function(s,m){var l=new Float64Array(2);L.V.bQ(m.x,m.y,s,l);return new fz(l[0],l[1])};
L.V.mP=function(s,m,l,x){s=new Uint32Array(s.buffer);m=new Uint32Array(m.buffer);for(var a=0;a<x;a++){for(var P=0;
P<l;P++){m[P*x+a]=s[a*l+P]}}};L.V.abe=function(s,m,l,x){s=new Uint32Array(s.buffer);m=new Uint32Array(m.buffer);
for(var a=0;a<x;a++){for(var P=0;P<l;P++){m[a*l+P]=s[a*l+l-1-P]}}};L.V.A0=function(s){return Math.abs(s[6])<1e-9&&Math.abs(s[7])<1e-9};
L.V.XZ=function(s){return Math.abs(s[0])<1e-9&&Math.abs(s[4])<1e-9||Math.abs(s[1])<1e-9&&Math.abs(s[3])<1e-9};
L.V.drawImage=function(s,m,l,x,a,P,o,G,_){if(o==null)o=!1;if(G==null)G=!1;var j=L.V.ms(s),U=!0,S=0;for(var C=0;
C<8;C++){var X=Math.round(s[C]);if(C!=2&&C!=5)S+=Math.abs(X);if(Math.abs(X-s[C])>1e-9)U=!1}var c=L.V.A0(s),y=L.V.XZ(s)&&c,O=y?1:0;
if(o||U&&S==l+x&&c){L.V.aaJ(j,m,l,x,a,P,G,c,_);return}var p=P.e,D=P.l,f=new Float64Array(2);a=new Uint32Array(a.buffer);
m=new Uint32Array(m.buffer);for(var T=0;T<D;T++)for(var I=0;I<p;I++){var H=T*p+I,b,R,W,J,w=0,A=0,$=0,i=0;
a[H]=0;var u=I+P.x+.5,e=T+P.y+.5;b=u;R=e;W=j;var Q=W[0]*b+W[1]*R+W[2],q=W[3]*b+W[4]*R+W[5];if(!c){J=1/(W[6]*b+W[7]*R+1);
Q*=J;q*=J}var Z=Q*l,E=q*x,z=Z<-1||Z>l+1||E<-1||E>x+1;if(G){Z=Math.max(.001,Math.min(l-1,Z));E=Math.max(.001,Math.min(x-1,E))}else if(z)continue;
var V=L.V.a2f(s,l,x,u,e,Q,q),Y=Math.round(V*2.3);if(V<1.1){L.V.zw(Z,E,m,l,x,a,H,O);continue}if(!G&&(Z<.6||Z>l-.6||E<.6||E>x-.6)){Y=Math.max(Y,5)}if(G&&z)Y=1;
var d=1/Y,K=P.x+I,h=P.y+T;W=j;for(var C=0;C<Y;C++)for(var F=0;F<Y;F++){b=K+(C+.5)*d;R=h+(F+.5)*d;var Z=W[0]*b+W[1]*R+W[2],E=W[3]*b+W[4]*R+W[5];
if(!c){J=1/(W[6]*b+W[7]*R+1);Z*=J;E*=J}if(G){Z=Math.max(.001,Math.min(.999,Z));E=Math.max(.001,Math.min(.999,E))}else if(Z<0||Z>=1||E<0||E>=1)continue;
Z=Math.floor(Z*l);E=Math.floor(E*x);var N=E*l+Z,iQ=m[N],jB=iQ>>>24;w+=(iQ&255)*jB;A+=(iQ>>>8&255)*jB;
$+=(iQ>>>16&255)*jB;i+=jB}if(i!=0){var k=1/i;w=~~(w*k+.5);A=~~(A*k+.5);$=~~($*k+.5);i=~~(i*d*d+.5);a[H]=i<<24|$<<16|A<<8|w}}};
L.V.a2f=function(s,m,l,x,a,P,o){var G=L.V.dt(s,x,a,P+1/m,o),_=L.V.dt(s,x,a,P,o+1/l);return 1/Math.sqrt(Math.max(G,_))};
L.V.dt=function(s,m,l,x,a){var P=1/(s[6]*x+s[7]*a+1),o=(s[0]*x+s[1]*a+s[2])*P-m,G=(s[3]*x+s[4]*a+s[5])*P-l;
return o*o+G*G};L.V.aaJ=function(s,m,l,x,a,P,o,G,_){if(G&&!o&&P.k()>4e6&&_){L.V.a0Q(s,m,l,x,a,P,o,G,_);
return}var j=P.x+P.e,U=P.y+P.l,S=0,X=new Uint32Array(a.buffer),c=new Uint32Array(m.buffer),y=s[0]*l,O=s[1]*l,p=s[2]*l,D=s[3]*x,f=s[4]*x,T=s[5]*x,I=s[6],H=s[7];
if(G&&!o)for(var b=P.y+.5;b<U;b++)for(var R=P.x+.5;R<j;R++){var W=y*R+O*b+p,J=D*R+f*b+T;if(0<W&&W<l&&0<J&&J<x){var u=~~J*l+~~W;
X[S]=c[u]}else X[S]=0;S++}else for(var b=P.y+.5;b<U;b++)for(var R=P.x+.5;R<j;R++){var e=1/(I*R+H*b+1),W=(y*R+O*b+p)*e,J=(D*R+f*b+T)*e;
if(o){W=Math.max(.001,Math.min(l-1,W));J=Math.max(.001,Math.min(x-1,J))}if(0<W&&W<l&&0<J&&J<x){var u=Math.floor(J)*l+Math.floor(W);
X[S]=c[u]}else X[S]=0;S++}};L.V.a0Q=function(s,m,l,x,a,P,o,G,_){var j=new Uint32Array(a.buffer),U=new Uint32Array(m.buffer),H=0;
if(_&&(P.e&3)!=0)throw"e";var S=s[0]*l,X=s[1]*l,c=s[2]*l,y=s[3]*x,O=s[4]*x,p=s[5]*x,D=s[6],f=s[7],T=P.e,I=P.l,b=P.x+.5,R=P.y+.5,W=(T>>>2<<2)-1e-9,J=-.1+(I>>>1<<1)-1e-9,u=~~l,e=S==0?0:1/S,Q=y==0?0:1/y;
for(var q=0;q<I;q++){var Z=b*S+X*(q+R)+c,E=b*y+O*(q+R)+p,z=0,V=T;if(S==0){}else if(e>0){z=Math.max(z,-Z*e);
V=Math.min(V,(l-Z)*e)}else{V=Math.min(V,-Z*e);z=Math.max(z,(l-Z)*e)}if(y==0){}else if(Q>0){z=Math.max(z,-E*Q);
V=Math.min(V,(x-E)*Q)}else{V=Math.min(V,-E*Q);z=Math.max(z,(x-E)*Q)}if(V<0)V=0;if(z>V)z=V;z=Math.ceil(z);
V=~~V;H=~~(q*T);for(var Y=0;Y<z;Y++)j[H++]=0;for(var Y=z;Y<V;Y+=4){var d=S*Y+Z,w=y*Y+E,A=~~w*u+~~d;j[H++]=j[H++]=j[H++]=j[H++]=U[A]}for(var Y=V;
Y<T;Y++)j[H++]=0}};L.V.ms=function(s){var m=s[4]-s[5]*s[7],l=s[2]*s[7]-s[1],x=s[1]*s[5]-s[2]*s[4],a=s[5]*s[6]-s[3],P=s[0]-s[2]*s[6],o=s[3]*s[2]-s[0]*s[5],G=s[3]*s[7]-s[4]*s[6],_=s[1]*s[6]-s[0]*s[7],j=1/(s[0]*s[4]-s[1]*s[3]);
return[m*j,l*j,x*j,a*j,P*j,o*j,G*j,_*j]};L.V.fH=function(s,m){var l=s[0],x=s[1],a=s[2],P=s[3],o=s[4],G=s[5],_=s[6],j=s[7],U=m[0],X=m[1],c=m[2],y=m[3],O=m[4],p=m[5],D=m[6],f=m[7],T=[l*U+x*y+a*D,l*X+x*O+a*f,l*c+x*p+a,P*U+o*y+G*D,P*X+o*O+G*f,P*c+o*p+G,_*U+j*y+D,_*X+j*O+f],I=1/(_*c+j*p+1);
for(var C=0;C<8;C++)T[C]*=I;return T};L.V.zw=function(s,m,l,x,a,P,o,G){var _=s,j=m,X=0,c=0,y=0,O=0;s-=.499999;
m-=.499999;var U=Math.floor(s),S=Math.floor(m);if(G==0){var C=S*x+U,p=U>=0&&U<x,D=U+1>=0&&U+1<x,f=S>=0&&S<a,T=S+1>=0&&S+1<a;
if(p&&f)X=l[C];if(D&&f)c=l[C+1];if(p&&T)y=l[C+x];if(D&&T)O=l[C+x+1]}else if(G==1){var I=U<0?0:U>x-1?x-1:U,H=U<-1?0:U>x-2?x-1:U+1,b=S<0?0:S>a-1?a-1:S,R=S<-1?0:S>a-2?a-1:S+1;
X=l[b*x+I];c=l[b*x+H];y=l[R*x+I];O=l[R*x+H]}else{var I=(U+50*x)%x,H=(U+50*x)%x,b=(S+50*a)%a,R=(S+50*a)%a;
X=l[b*x+I];c=l[b*x+H];y=l[R*x+I];O=l[R*x+H]}var W=s-U,J=m-S,u=(1-J)*(1-W)*(X>>>24),e=(1-J)*W*(c>>>24),Q=J*(1-W)*(y>>>24),q=J*W*(O>>>24),Z=u+e+Q+q,E=u*(X&255)+e*(c&255)+Q*(y&255)+q*(O&255),z=u*(X>>>8&255)+e*(c>>>8&255)+Q*(y>>>8&255)+q*(O>>>8&255),V=u*(X>>>16&255)+e*(c>>>16&255)+Q*(y>>>16&255)+q*(O>>>16&255);
if(Z==0)P[o]=0;else{var Y=1/Z;E=~~(E*Y+.5);z=~~(z*Y+.5);V=~~(V*Y+.5);Z=~~(Z+.5);P[o]=Z<<24|V<<16|z<<8|E}};
L.V.h1=function(s,m,l,x,a,P){var o=s-.499999,G=m-.499999,_=~~o,j=~~G,U=o-_,S=G-j,X=(1-S)*(1-U),c=(1-S)*U,y=S*(1-U),O=S*U,p=j*x+_<<2,D=(j+1)*x+_<<2,f=X*l[p]+c*l[p+4]+y*l[D]+O*l[D+4],T=X*l[p+1]+c*l[p+5]+y*l[D+1]+O*l[D+5],I=X*l[p+2]+c*l[p+6]+y*l[D+2]+O*l[D+6],H=X*l[p+3]+c*l[p+7]+y*l[D+3]+O*l[D+7];
P[0]=f;P[1]=T;P[2]=I;P[3]=H};L.V.C4=function(s,m,l,x,a){s-=.499999;m-=.499999;var P=Math.floor(s),o=Math.floor(m),G=s-P,_=m-o,j=(1-_)*(1-G),U=(1-_)*G,S=_*(1-G),X=_*G,c=(P+50*x)%x,y=(P+1+50*x)%x,O=(o+50*a)%a,p=(o+1+50*a)%a,D=l[O*x+c],f=l[O*x+y],T=l[p*x+c],I=l[p*x+y];
if(D==null||I==null)throw"e";return j*D+U*f+S*T+X*I};L.V.I8=function(s,m,l,x,a,P,o,G,_,j,U,S){var X=new Uint32Array(s.buffer),c=new Uint32Array(x.buffer),y=(1+2*j)/a,O=[],p=[];
for(var D=0;D<a;D++){var f=-.25+j-D*y;O.push(Math.cos(2*Math.PI*f)*S/U);O.push(Math.sin(2*Math.PI*f)/U)}o*=m;
G*=l;for(var T=0;T<P;T++){var I=Math.pow(T/P,_)*P;for(var D=0;D<a;D++){var H=o+O[D<<1]*I,b=G+O[(D<<1)+1]*I,R=~~(.5+(H<0?0:H>m-1?m-1:H)),W=~~(.5+(b<0?0:b>l-1?l-1:b));
c[T*a+D]=X[W*m+R]}}};L.V.cV=function(s,m,l,x,a,P,o,G,_,j,U,S){var X=new Uint32Array(s.buffer),c=new Uint32Array(x.buffer),y=1/S,O=[],p=l*4,D=1/p;
for(var f=0;f<p+10;f++)O.push(Math.pow(f*D,1/_)*l*U);o*=a;G*=P;for(var f=0;f<P;f++)for(var T=0;T<a;T++){var I=y*(T-o),H=f-G,b=1.75-Math.atan2(H,I)*(1/(2*Math.PI));
b=b-~~b;b=(b+j)*(1/(1+2*j));var R=Math.sqrt(I*I+H*H);R=O[~~(R*4)];L.V.zw(b*m+.5,R+.5,X,m,l,c,f*a+T,1)}};
L.V.yK=function(s,m,l,x,a){var P=a[0],o=a[1];for(var G=0;G<o;G++)for(var _=0;_<P;_++){var j=a[2]*_+a[3]*G+a[4],U=a[5]*_+a[6]*G+a[7],S=G*P+_<<2,X=U*m+j<<2;
x[S]=s[X+0];x[S+1]=s[X+1];x[S+2]=s[X+2];x[S+3]=s[X+3]}};L.K={ZY:function(s,m){var l=~~(.499+s*m);return l<0?0:l>m?m:l},ajL:function(s,m,l,x,a,P,o,G){var _=l[0],j=l[1],U=l[2],S=l[3],X=x.e,c=x.l,y=new Float64Array(X*4+8),O=new Float64Array(X*4+8);
for(var p=0,C=0;p<c;p++){var D=y;y=O;O=D;O.fill(0);for(var f=0;f<X;f++,C++){var T=f+a,I=p+P,H=_*T+j*I,b=U*T+S*I,R=0,u=0;
if(G==0)R=H+.5;else if(G==1)R=2*Math.sqrt(H*H+b*b);else if(G==2)R=(Math.PI+Math.atan2(-b,-H))/(2*Math.PI);
else if(G==3)R=Math.abs(H*2);else if(G==4)R=2*(Math.abs(H)+Math.abs(b));var W=L.K.ZY(R,o)*4,J=f*4;for(var e=0;
e<4;e++){var Q=Math.max(0,Math.min(254.999,m[W+e]+y[J+4+e])),q=Math.floor(Q);if(Math.random()<Q-q)q++;
var Z=Q-q;y[J+8+e]=Z*(7/16);O[J+0+e]=Z*(3/16);O[J+4+e]=Z*(5/16);O[J+8+e]=Z*(1/16);u|=q<<e*8}s[C]=u}}},GM:[function(s,m,l,x,a,P,o){var G=l[0],_=l[1],j=l[2],U=l[3],S=x.e,X=x.l;
for(var c=0,C=0;c<X;c++)for(var y=0;y<S;y++,C++){var O=y+a,p=c+P,D=G*O+_*p,f=j*O+U*p,T=D+.5;s[C]=m[L.K.ZY(T,o)]}},function(s,m,l,x,a,P,o){var G=l[0],_=l[1],j=l[2],U=l[3],S=x.e,X=x.l;
for(var c=0,C=0;c<X;c++)for(var y=0;y<S;y++,C++){var O=y+a,p=c+P,D=G*O+_*p,f=j*O+U*p,T=2*Math.sqrt(D*D+f*f);
s[C]=m[L.K.ZY(T,o)]}},function(s,m,l,x,a,P,o){var G=l[0],_=l[1],j=l[2],U=l[3],S=x.e,X=x.l;for(var c=0,C=0;
c<X;c++)for(var y=0;y<S;y++,C++){var O=y+a,p=c+P,D=G*O+_*p,f=j*O+U*p,T=(Math.PI+Math.atan2(-f,-D))/(2*Math.PI);
s[C]=m[L.K.ZY(T,o)]}},function(s,m,l,x,a,P,o){var G=l[0],_=l[1],j=l[2],U=l[3],S=x.e,X=x.l;for(var c=0,C=0;
c<X;c++)for(var y=0;y<S;y++,C++){var O=y+a,p=c+P,D=G*O+_*p,f=j*O+U*p,T=Math.abs(D*2);s[C]=m[L.K.ZY(T,o)]}},function(s,m,l,x,a,P,o){var G=l[0],_=l[1],j=l[2],U=l[3],S=x.e,X=x.l;
for(var c=0,C=0;c<X;c++)for(var y=0;y<S;y++,C++){var O=y+a,p=c+P,D=G*O+_*p,f=j*O+U*p,T=2*(Math.abs(D)+Math.abs(f));
s[C]=m[L.K.ZY(T,o)]}}]};L.K.a7j=function(s,m){return s+.5};L.K.a6T=function(s,m){return 2*Math.sqrt(s*s+m*m)};
L.K.adT=function(s,m){return(Math.PI+Math.atan2(-m,-s))/(2*Math.PI)};L.K.acL=function(s,m){return Math.abs(s*2)};
L.K.a5w=function(s,m){return 2*(Math.abs(s)+Math.abs(m))};L.K.Wv=function(s,m,l,x,a,P,o,G,_,j,U,S){var X=s.Clrs,c=new Uint32Array(m.buffer),y=1023,O=X?L.K.G2(X.v,_,j):null;
if(S&&X){var p=L.K.aem(s,O,y+1,o);L.K.ajL(c,p,x,l,l.x-a,l.y-P,y,G)}else{var D=X?L.K.Oj(s,O,y+1,o):L.K.cF(s,y+1,o);
if(G<5){L.K.GM[G](c,D,x,l,l.x-a,l.y-P,y)}else{var f=new Uint8Array(D.buffer),T=l.e,I=l.l,H=U.e2-U.CE,b=1/H,R=U.t8.e-l.e>>1,W=U.t8.l-l.l>>1,J=U.t8.e,u=-.6*b,e=(-.6+.4)*b,Q=(-.6+2*.4)*b,q=(-.6+3*.4)*b;
for(var Z=0,C=0;Z<I;Z++)for(var E=0;E<T;E++,C+=4){var z=0,V=0,Y=0,d=0,w=(Z+W)*J+E+R,A=(U.gD[w]-U.CE)*b,$=0;
if(A<=0||A>=1){$=(A<=0?0:y)<<2;m[C]=f[$];m[C+1]=f[$+1];m[C+2]=f[$+2];m[C+3]=f[$+3];continue}$=Math.max(0,Math.min(y-1,Math.round((A+u)*y)))<<2;
V+=f[$];Y+=f[$+1];d+=f[$+2];z+=f[$+3];$=Math.max(0,Math.min(y-1,Math.round((A+e)*y)))<<2;V+=f[$];Y+=f[$+1];
d+=f[$+2];z+=f[$+3];$=Math.max(0,Math.min(y-1,Math.round((A+Q)*y)))<<2;V+=f[$];Y+=f[$+1];d+=f[$+2];z+=f[$+3];
$=Math.max(0,Math.min(y-1,Math.round((A+q)*y)))<<2;V+=f[$];Y+=f[$+1];d+=f[$+2];z+=f[$+3];m[C]=V>>>2;
m[C+1]=Y>>>2;m[C+2]=d>>>2;m[C+3]=z>>>2}}}};L.K.G2=function(s,m,l){var x=[];for(var C=0;C<s.length;C++){var a,P=s[C].v,o=P.Type.v.Clry;
if(o=="FrgC")a={o:m>>16&255,z:m>>8&255,S:m&255};else if(o=="BckC")a={o:l>>16&255,z:l>>8&255,S:l&255};
else a=L.K.Qv(P.Clr.v);x.push(a)}return x};L.K.Qv=function(s){var m,l=s.classID;if(l=="RGBC"){if(s.Rd)m={o:s.Rd.v,z:s.Grn.v,S:s.Bl.v};
else m={o:s.redFloat.v*255,z:s.greenFloat.v*255,S:s.blueFloat.v*255}}else if(l=="HSBC"){m=L.B7(s.H.v.val/360,s.Strt.v/100,s.Brgh.v/100);
m.o*=255;m.z*=255;m.S*=255}else if(l=="CMYC"){var x=100-s.Cyn.v,a=100-s.Mgnt.v,P=100-s.Ylw.v,o=100-s.Blck.v,G=255*x*o*1e-4,_=255*(.2*x+.8*a)*o*1e-4,j=255*(.2*a+.8*P)*o*1e-4;
m={o:G,z:_,S:j}}else if(l=="Grsc")m={o:255-s.Gry.v,z:255-s.Gry.v,S:255-s.Gry.v};else if(l=="LbCl"){m=L.LZ(s.Lmnc.v,s.A.v,s.B.v)}else console.log(s);
if(isNaN(m.o))m.o=m.z=m.S=0;return m};L.K.cF=function(s,m,l){var x=new Uint32Array(m),a=new Uint8Array(x.buffer);
x.fill(4278190080);var P=[],o=[],G=s.RndS.v,_=s.Smth.v/4096;for(var C=0;C<4;C++){P[C]=~~(s.Mnm.v[C].v*255/100);
o[C]=~~(s.Mxm.v[C].v*255/100)}var j=L.B(m*4),U=L.B(m);for(var S=0;S<3;S++){L.I.Pm(null,m,1,j,[1+Math.round(_*_*_*60),22,G*(2+S)]);
L.hy(j,U,0);L._Y(U,a,S);var X=P[S],c=o[S];for(var C=0;C<m;C++)a[4*C+S]=Math.max(X,Math.min(c,a[4*C+S]))}if(l)for(var C=0;
C<m/2;C++){var y=x[C];x[C]=x[m-1-C];x[m-1-C]=y}return x};L.K.gc=function(s){return{classID:"RGBC",Rd:{t:"doub",v:s.o},Grn:{t:"doub",v:s.z},Bl:{t:"doub",v:s.S}}};
L.K.aem=function(s,m,l,x){var a=[],P=1/(l-0);for(var C=0;C<l;C++){var o=C*4,G=L.K.g1(s,m,(x?l-1-C:C)*P);
a[o]=G[0];a[o+1]=G[1];a[o+2]=G[2];a[o+3]=G[3]}return a};L.K.Oj=function(s,m,l,x){var a=new Uint32Array(l),P=1/(l-0);
for(var C=0;C<l;C++)a[C]=L.K.D$(s,m,(x?l-1-C:C)*P);return a};L.K.g1=function(s,m,l){var x=4096,a=1/4096,P=s.Intr.v*a,o=s.Clrs.v,G=s.Trns.v,_=o.length-1,j=G.length-1,C=-1,U=0,S=0,X=0,c=0;
while(C<j&&G[C+1].v.Lctn.v<=l*x)C++;if(C==-1){U=G[0].v.Opct.v.val*(255/100)}else if(C==j){U=G[C].v.Opct.v.val*(255/100)}else{var y=L.K.QN(G,a,C,l,P);
U=(y*G[C].v.Opct.v.val+(1-y)*G[C+1].v.Opct.v.val)*(255/100)}C=-1;while(C<_&&o[C+1].v.Lctn.v<=l*x)C++;
if(C==-1){var O=m[0];S=O.o;X=O.z;c=O.S}else if(C==_){var O=m[C];S=O.o;X=O.z;c=O.S}else{var p=m[C],D=m[C+1],f=L.K.QN(o,a,C,l,P);
S=f*p.o+(1-f)*D.o;X=f*p.z+(1-f)*D.z;c=f*p.S+(1-f)*D.S}return[S,X,c,U]};L.K.D$=function(s,m,l){var x=L.K.g1(s,m,l),a=~~(.5+x[0]),P=~~(.5+x[1]),o=~~(.5+x[2]),G=~~(.5+x[3]);
return G<<24|o<<16|P<<8|a};L.K.QN=function(s,m,C,l,x){if(s.length==2)x*=.5;var a=s[C].v.Lctn.v*m,P=s[C+1].v.Lctn.v*m,o=a+s[C+1].v.Mdpn.v*.01*(P-a),G;
if(l<o)G=.5*(l-a)/(o-a);else G=.5+.5*(l-o)/(P-o);G=.5+.5*(x*Math.cos(Math.PI*G)+(1-x)*(1-2*G));return G};
L.K.s8=function(s,m){var l=Math.PI*s.Angl.v.val/180,x=s.Scl.v.val/100,a=s.Ofst.v,P=a.Hrzn.v.val/100,o=a.Vrtc.v.val/100,G=Math.cos(l),_=-Math.sin(l),j=.5*m.l,U=j*(G/_),S=Math.sqrt(j*j+U*U),X=.5*m.e,c=X*(_/G),y=Math.sqrt(X*X+c*c),O=Math.min(S,y)*x,p=m.x+m.e/2+P*m.e,D=m.y+m.l/2+o*m.l;
return[new fz(p,D),new fz(p+G*O,D+_*O)]};L.K.jk=function(s,m,l,x){var a=m.x-s.x,P=-(m.y-s.y),o=Math.sqrt(a*a+P*P),G=Math.atan2(P,a),_=Math.cos(G),j=-Math.sin(G),U=.5*l.l,S=U*(_/j),X=Math.sqrt(U*U+S*S),c=.5*l.e,y=c*(j/_),O=Math.sqrt(c*c+y*y),p=o/Math.min(X,O),D=(s.x-l.x-l.e/2)/l.e,f=(s.y-l.y-l.l/2)/l.l;
x.Angl.v.val=180*G/Math.PI;x.Scl.v.val=p*100;var T=x.Ofst.v;T.Hrzn.v.val=D*100;T.Vrtc.v.val=f*100};L.K.GC=function(s,m){for(var C=0;
C<s.length;C++){var l=s[C],x=Math.round(l[0]*4096),a=l[1],P=l[2],o=l[3];if(P==null)P=1;if(o==null)o=.5;
var G=L.K.gc({o:a[0]*255,z:a[1]*255,S:a[2]*255});m.Clrs.v[C]={t:"Objc",v:{classID:"Clrt",Lctn:{t:"long",v:x},Mdpn:{t:"long",v:Math.round(o*100)},Clr:{t:"Objc",v:G},Type:{t:"enum",v:{Clry:"UsrS"}}}};
m.Trns.v[C]={t:"Objc",v:{classID:"TrnS",Lctn:{t:"long",v:x},Mdpn:{t:"long",v:Math.round(o*100)},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(P*100)}}}}}};
L.BS={};L.BS.aa1=function(s,m,l,x,a,P,o,G,_,j,U,S){var X,c,y,O=Date.now(),p=!1,D=o,f=j,T,I,H,b,R=P*255,W=255-_*255,J=1+a*6,u=1+G*6,e=1+S*4,Q=(e-1)/7,q=0,Z=255-0,E,z,V,Y,d,w,A,$,i,K,h,F,N,iQ=0,jB=1,k,ab,f_,fc,g8,bH,cR,hr,h$,gE,d8=1+U,hG,f7=L.B(l*x),hX=L.B(l*x),fB=L.B(l*x),e5=L.B(l*x),g9=255/R,cL=255/(255-W);
for(c=0;c<x;c++){for(X=0;X<l;X++){var C=c*l+X,bf=C<<2;k=L.js(s[bf],s[bf+1],s[bf+2]);e5[C]=k;if(k<R)f7[C]=255-k*g9;
if(k>W)hX[C]=255-(255-k)*cL}}if(p)console.log("init",Date.now()-O);O=Date.now();if(a*D>0){fB.set(f7);
L.yf.iC(fB,f7,new bU(0,0,l,x),D)}if(G*f>0){fB.set(hX);L.yf.iC(fB,hX,new bU(0,0,l,x),f)}if(p)console.log("blur",Date.now()-O);
O=Date.now();var gF=L.B(256),iC=L.B(256);for(var C=0;C<256;C++){var ax=C*(1/255),e7=0;e7=(1-Math.pow(1-ax,J))*255;
gF[C]=Math.max(0,Math.min(255,~~(e7+.5)));e7=Math.pow(ax,u)*255;iC[C]=Math.max(0,Math.min(255,~~(e7+.5)))}var dO=new Uint8ClampedArray(m.buffer),h1=new Float32Array(32768);
for(var C=0;C<32768;C++){hG=Math.sqrt(C)*(1/128);if(d8>1)hG=(1-hG)*(d8-1)+1;else hG=hG*(d8-1)+1;h1[C]=hG}for(c=0;
c<x;c++){for(X=0;X<l;X++){var C=c*l+X,bf=C<<2,e7=e5[C],hL=f7[C]*(1/255),jl=hX[C]*(1/255);e7=(1-hL)*e7+hL*gF[~~e7];
e7=(1-jl)*e7+jl*iC[~~e7];k=e7;var gT=s[bf],hZ=s[bf+1],j6=s[bf+2];ab=-gT*.168736-hZ*.331264+j6*.5;f_=gT*.5-hZ*.418688-j6*.081312;
hG=h1[~~(.5+ab*ab+f_*f_)];fc=ab*hG;bH=f_*hG;jB=1-Math.min(2-(hL+jl),1);ab=jB*ab+(1-jB)*fc;f_=jB*f_+(1-jB)*bH;
hr=k+1.402*f_;h$=k-.34414*ab-.71414*f_;gE=k+1.772*ab;dO[bf]=~~(.5+hr);dO[bf+1]=~~(.5+h$);dO[bf+2]=~~(.5+gE)}}if(p)console.log("apply masks",Date.now()-O);
O=Date.now()};L.ux={};L.ux.n6=function(s,m,l,x,a){var P=!1,y=1,Z=0,E=0,i=0,d8=0;if(!m.kq(a)){var o=m.if(a),G=L.B(o.k()*4);
L.yx(s,m,G,o);s=G;m=o}var _=L.B(m.k());L.kV(l,a,_,m);L.round(_);a=a.pF(m);var j=a.e,U=a.l,S=j*3<U?2:1,X=U*3<j?2:1;
if(a.k()*(S*2+1)*(X*2+1)<m.k()){var o=new bU(a.x-j*S,a.y-U*S,j*(S*2+1),U*(X*2+1)).pF(m),G=L.B(o.k()*4);
L.yx(s,m,G,o);var c=L.B(o.k());L.kV(_,m,c,o);m=o;s=G;_=c}while((m.e+m.l)/2/y>400)y++;var O=s,p=m,D=_,f=Math.floor(p.e/y),T=Math.floor(p.l/y);
s=L.B(f*T*4);L.scale.Kn(O,p.e,p.l,s,f,T,1/y);_=L.B(f*T);L.scale.yK(D,p.e,p.l,_,f,T,1/y);L.round(_,1);
var I=L.zQ(_,new bU(0,0,f,T));if(I.Xh())return 1;var H=Math.round((I.e+I.l)/2/15),b=Date.now(),R=L.B(f*T*4);
L.abv(s,R);var W=Int16Array,J=new W(f*T*24),u=new W(64),e=new W(64),Q=new W(64),q=new W(64);for(var z=3;
z<T-4;z++)for(var V=3;V<f-4;V++){var Y=z*f+V;if(_[Y]==255)continue;if(L.ux.aoD(R,_,V,z,f,T,u,e,Q)!=0)continue;
L.ux.We(u,q);J[Z]=V;J[Z+1]=z;L.ux.qv(u,J,Z+4,12);Z+=16;L.ux.We(e,q);L.ux.qv(e,J,Z,4);Z+=4;L.ux.We(Q,q);
L.ux.qv(Q,J,Z,4);Z+=4;var d=J[Z-24+5],w=J[Z-24+6];J[Z-24+5]=J[Z-24+20];J[Z-24+6]=J[Z-24+16];J[Z-24+16]=d;
J[Z-24+20]=w;E++}if(E==0)return 2;if(P)console.log(Date.now()-b,"FWHT computed");b=Date.now();var A=[];
L.ux.xS(0,E-1,A,J,new W(2*24));if(P)console.log(Date.now()-b,"KD tree computed");b=Date.now();var $=new Float32Array(f*T*4);
for(var C=0;C<E;C++){var K=C,h=L.ux.abd(K,J,A,H);if(h==-1)continue;var F=K*24,jB=h*24,k=J[F],ab=J[F+1],f_=J[jB],fc=J[jB+1];
i+=L.ux.getError(jB,F,J,1e99);var g8=f_-k,bH=fc-ab;$[(T+bH)*2*f+(f+g8)]+=1}if(P)console.log(Date.now()-b,"NN found");
b=Date.now();var cR=[],hr=1/(2*f);for(var C=0;C<$.length;C++){if($[C]>0){var z=Math.floor(C*hr),V=C-z*2*f;
cR.push({x:V-f,y:z-T,Z:$[C],EZ:-1})}}cR.sort(function(jl,gT){return gT.Z-jl.Z});var h$=new Int32Array(f*T),gE=[];
for(var C=0;C<f*T;C++){if(_[C]==255){h$[C]=d8;gE.push(C%f,Math.floor(C/f));d8++}else if(s[(C<<2)+3]<200){h$[C]=-2}else{h$[C]=-1}}var hG=L.ux.adk(f,T,cR,h$,gE,d8);
if(hG==null){return 3}var f7=hG.Oe,top=hG.top;f7=L.ux.alL(f7,s,f,T,top,h$,gE,d8);if(P)console.log(Date.now()-b,"optimal labeling found");
b=Date.now();var o=a.clone();o.yD(1,1);o=o.pF(p);var hX=L.B(o.k()*4),fB=L.B(o.k());L.yx(O,p,hX,o);var e5=p.e,g9=p.l;
for(var z=0;z<g9;z++)for(var V=0;V<e5;V++){if(D[z*e5+V]==0)continue;var cL=Math.min(Math.floor(V/y),f-1),bf=Math.min(Math.floor(z/y),T-1),gF=h$[bf*f+cL];
if(gF==-1)continue;var iC=f7[gF],ax=top[iC],e7=V+ax.x*y,dO=z+ax.y*y,h1=dO*e5+e7<<2,hL=(z-o.y+p.y)*o.e+(V-o.x+p.x)<<2;
hX[hL]=O[h1];hX[hL+1]=O[h1+1];hX[hL+2]=O[h1+2];hX[hL+3]=O[h1+3];hX[hL+3]=O[h1+3];fB[hL>>2]=iC+1}if(P)console.log(Date.now()-b,"copied back");
b=Date.now();L.SO.n6(hX,fB,o,null,1e3);if(P)console.log(Date.now()-b,"poisson smooth");b=Date.now();
L.yx(hX,o,x,a);return 0};L.ux.lC=function(s,m,l,x,a,P){return L.ux.mo(s+a.x,m+a.y,l,x)&&P[(m+a.y)*l+(s+a.x)]==-1?0:1e9};
L.ux.alL=function(s,m,l,x,top,a,P,o){var G=Date.now(),_=[-1,0,0,-1,1,0,0,1],j=1e99,U=[],S=[],X=2*(o*2*3+o*2),c=null,y=0,O=0,p=0,D=1e99;
while(!0&&Date.now()<G+12e3){p++;var f=null,T=j;for(var I=0;I<top.length;I++){var H=top[I],b=0,R=o+2,W=0;
for(var C=0;C<o;C++){var J=P[C*2],u=P[C*2+1],e=top[s[C]],Q=L.ux.lC(J,u,l,x,H,a),q=s[C]==I?1e9:L.ux.lC(J,u,l,x,e,a);
for(var cE=0;cE<4;cE++){if(cE==0&&J==0||cE==1&&u==0||cE==2&&J==l-1||cE==3&&u==x-1)continue;var Z=_[2*cE],E=_[2*cE+1],z=J+Z,V=u+E,Y=a[V*l+z];
if(Y==-2){}else if(Y==-1){Q+=3*L.ux.gs(z+H.x,V+H.y,z,V,l,x,m,a);Q+=2*L.ux.gs(z+H.x+Z,V+H.y+E,z+Z,V+E,l,x,m,a);
q+=3*L.ux.gs(z+e.x,V+e.y,z,V,l,x,m,a);q+=2*L.ux.gs(z+e.x+Z,V+e.y+E,z+Z,V+E,l,x,m,a)}else if(cE>1){if(s[C]==s[Y]){var d=0;
d+=L.ux.gs(J+e.x,u+e.y,J+H.x,u+H.y,l,x,m,a);d+=L.ux.gs(z+e.x,V+e.y,z+H.x,V+H.y,l,x,m,a);U[b]=C;U[b+1]=Y;
S[b]=d;S[b+1]=d;b+=2}else{var w=top[s[Y]],A=R,$=0,i=0,K=0;R++;$+=L.ux.gs(J+e.x,u+e.y,J+H.x,u+H.y,l,x,m,a);
$+=L.ux.gs(z+e.x,V+e.y,z+H.x,V+H.y,l,x,m,a);i+=L.ux.gs(J+w.x,u+w.y,J+H.x,u+H.y,l,x,m,a);i+=L.ux.gs(z+w.x,V+w.y,z+H.x,V+H.y,l,x,m,a);
K+=L.ux.gs(J+w.x,u+w.y,J+e.x,u+e.y,l,x,m,a);K+=L.ux.gs(z+w.x,V+w.y,z+e.x,V+e.y,l,x,m,a);U[b]=C;U[b+1]=A;
S[b]=$;S[b+1]=$;b+=2;U[b]=Y;U[b+1]=A;S[b]=i;S[b+1]=i;b+=2;U[b]=A;U[b+1]=o+1;S[b]=K;S[b+1]=0;b+=2}}}U[b]=o;
U[b+1]=C;S[b]=Q;S[b+1]=0;b+=2;U[b]=C;U[b+1]=o+1;S[b]=q;S[b+1]=0;b+=2;W+=Math.min(Q,q)}if(W>T)continue;
var h=L.qq.J1(R,b,o,o+1,U,S,T);if(h.c4<T){T=h.c4;var F=s.slice(0);L.ux.asH(F,b,U,h.ui,I,o);f=F}}if(T*1>=j){break}j=T;
s=f;if((p&3)==0){if(T*1.03>=D)break;D=T}if((p&3)==0){var N=0*top.length;for(var C=0;C<top.length&&top.length>N;
C++){if(s.indexOf(C)!=-1)continue;top.splice(C,1);for(var Y=0;Y<s.length;Y++)if(s[Y]>C)s[Y]--;C--}}}return s};
L.ux.asH=function(s,m,l,x,a,P){for(var C=0;C<x.length;C++){var o=x[C]<<1,G=0,_=0;if(o<m){G=l[o];_=l[o+1]}else{_=l[o];
G=l[o+1]}if(G==P&&s[_]!=a)s[_]=a}};L.ux.eg=function(top,s,m,l,x,a,P,o,G){for(var C=0;C<m.length;C++){var _=m[C],j=!0;
if(o!=null&&!(L.ux.mo(o+_.x,G+_.y,a,P)&&l[a*(G+_.y)+o+_.x]==-1))continue;if(_.EZ==-1)_.EZ=L.ux.a9a(_,l,x,a,P);
if(_.EZ<=0)continue;for(var U=0;U<top.length;U++){var S=top[U],X=_.x-S.x,c=_.y-S.y;if(X*X+c*c<s){j=!1;
break}}if(j)return _}return null};L.ux.a9a=function(s,m,l,x,a){var P=0;for(var C=0;C<l.length;C+=2){var o=l[C]+s.x,G=l[C+1]+s.y;
if(L.ux.mo(o,G,x,a)&&m[x*G+o]==-1)P++}return P/(l.length>>1)};L.ux.adk=function(s,m,l,x,a,P){var top=[];
for(var C=0;C<60;C++){var o=L.ux.eg(top,25,l,x,a,s,m);if(o==null)break;else top.push(o)}if(top.length==0)return null;
var G=[];for(var C=0;C<P;C++){var _=a[C*2],j=a[C*2+1],U=-1,S=0;while(!0){S++;var X=Math.random();U=Math.floor(X*.99999*top.length);
var c=top[U],y=_+c.x,O=j+c.y;if(L.ux.mo(y,O,s,m)&&x[O*s+y]==-1)break;if(S>100){var o;o=L.ux.eg(top,0,l,x,a,s,m,_,j);
if(o==null)return null;top.push(o);S=0}}G.push(U)}return{top:top,Oe:G}};L.ux.gs=function(s,m,l,x,a,P,o,G){if(s==l&&m==x)return 0;
if(s<0||m<0||s>=a||m>=P||l<0||x<0||l>=a||x>=P||G[m*a+s]!=-1||G[x*a+l]!=-1)return 1e7;var _=m*a+s<<2,j=x*a+l<<2,U=o[_]-o[j],S=o[_+1]-o[j+1],X=o[_+2]-o[j+2];
return 1+(U*U+S*S+X*X)};L.ux.mo=function(s,m,l,x){return s>=0&&s<l&&m>=0&&m<x};L.ux.abd=function(s,m,l,x){var a=24*s,P=m[a],o=m[a+1],G=x*x,_=0,X=1e9;
while(l[_]!=99)if(m[a+l[_]]<l[_+1])_=l[_+2];else _=l[_+3];var j=l[_+1],U=l[_+2],S=-1;for(var C=j;C<=U;
C++){var _=C,c=_*24,y=m[c],O=m[c+1];if((y-P)*(y-P)+(O-o)*(O-o)<G)continue;var p=L.ux.getError(c,a,m,X);
if(p<X){X=p;S=_}}return S};L.ux.getError=function(s,m,l,x){var a=0;for(var P=4;P<24;P+=4){var o=l[m+P]-l[s+P],G=l[m+P+1]-l[s+P+1],_=l[m+P+2]-l[s+P+2],j=l[m+P+3]-l[s+P+3];
a+=o*o+G*G+_*_+j*j;if(a>=x)return a+1}return a};L.ux.xS=function(s,m,l,x,a){var P=16,X=0;if(m-s<=P){l.push(99,s,m);
return}L.ux.ge(s,m,x,a);var o=-1,G=-1;for(var C=4;C<24;C++){var _=a[2*C+1]-a[2*C];if(_>G){G=_;o=C}}var j=s+m>>1,U=L.ux.ato(j,s,m,x,o),S=-1;
for(var C=s;C<=m;C++)if(x[24*C+o]==U){if(S==-1)S=C;X=C}if(s+8<S&&S-s>m-X)j=S;else if(X+1<m-8)j=X+1;else if(m-s<64){l.push(99,s,m);
return}else j=j;var c=l.length;l.push(o,U,0,0);l[c+2]=c+4;L.ux.xS(s,j-1,l,x,a);l[c+3]=l.length;L.ux.xS(j,m,l,x,a)};
L.ux.ge=function(s,m,l,x){for(var C=0;C<48;C+=4){x[C]=3e4;x[C+1]=-3e4;x[C+2]=3e4;x[C+3]=-3e4}for(var C=s;
C<=m;C++){var a=C*24;for(var P=0;P<24;P++){var o=l[a+P],G=x[P<<1],_=x[(P<<1)+1];if(o<G)x[P<<1]=o;if(o>_)x[(P<<1)+1]=o}}};
L.ux.Ti=function(s,m,l){var x=0,C=0;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;
C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;
C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;
C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;
C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;
C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;
C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;
C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;
C++;x=l[s+C];l[s+C]=l[m+C];l[m+C]=x;C++};L.ux.GB=function(s,m,l,x){var a=l+x>>>1,P=s[24*a+m];while(l<=x){while(s[24*l+m]<P)l++;
while(s[24*x+m]>P)x--;if(l<=x){if(s[24*l+m]!=s[24*x+m])L.ux.Ti(l*24,x*24,s);l++;x--}}return l};L.ux.ato=function(s,m,l,x,a){var P=0;
while(m!=l){P=L.ux.GB(x,a,m,l);if(s<P)l=P-1;else m=P}return x[s*24+a]};L.ux.qv=function(s,m,l,x){for(var C=0;
C<x;C++)m[l+C]=s[C]};L.ux.aoD=function(s,m,l,x,a,P,o,G,_){var j=(x-3)*a+(l-3),U=j<<2;for(var S=0;S<8;
S++){if(m[j]+m[j+1]+m[j+2]+m[j+3]+m[j+4]+m[j+5]+m[j+6]+m[j+7]!=0||s[U+3]<200||s[U+7]<200||s[U+11]<200||s[U+15]<200||s[U+19]<200||s[U+23]<200||s[U+27]<200||s[U+31]<200)return 1;
var C=S<<3;o[C+0]=s[U+0];G[C+0]=s[U+1];_[C+0]=s[U+2];o[C+1]=s[U+4];G[C+1]=s[U+5];_[C+1]=s[U+6];o[C+2]=s[U+8];
G[C+2]=s[U+9];_[C+2]=s[U+10];o[C+3]=s[U+12];G[C+3]=s[U+13];_[C+3]=s[U+14];o[C+4]=s[U+16];G[C+4]=s[U+17];
_[C+4]=s[U+18];o[C+5]=s[U+20];G[C+5]=s[U+21];_[C+5]=s[U+22];o[C+6]=s[U+24];G[C+6]=s[U+25];_[C+6]=s[U+26];
o[C+7]=s[U+28];G[C+7]=s[U+29];_[C+7]=s[U+30];U+=a<<2;j+=a}return 0};L.ux.We=function(s,m){m[0]=s[32]+s[0];
m[1]=s[33]+s[1];m[2]=s[34]+s[2];m[3]=s[35]+s[3];m[4]=s[36]+s[4];m[5]=s[37]+s[5];m[6]=s[38]+s[6];m[7]=s[39]+s[7];
m[8]=s[40]+s[8];m[9]=s[41]+s[9];m[10]=s[42]+s[10];m[11]=s[43]+s[11];m[12]=s[44]+s[12];m[13]=s[45]+s[13];
m[14]=s[46]+s[14];m[15]=s[47]+s[15];m[16]=s[48]+s[16];m[17]=s[49]+s[17];m[18]=s[50]+s[18];m[19]=s[51]+s[19];
m[20]=s[52]+s[20];m[21]=s[53]+s[21];m[22]=s[54]+s[22];m[23]=s[55]+s[23];m[24]=s[56]+s[24];m[25]=s[57]+s[25];
m[26]=s[58]+s[26];m[27]=s[59]+s[27];m[28]=s[60]+s[28];m[29]=s[61]+s[29];m[30]=s[62]+s[30];m[31]=s[63]+s[31];
m[32]=s[0]-s[32];m[33]=s[1]-s[33];m[34]=s[2]-s[34];m[35]=s[3]-s[35];m[36]=s[4]-s[36];m[37]=s[5]-s[37];
m[38]=s[6]-s[38];m[39]=s[7]-s[39];m[40]=s[8]-s[40];m[41]=s[9]-s[41];m[42]=s[10]-s[42];m[43]=s[11]-s[43];
m[44]=s[12]-s[44];m[45]=s[13]-s[45];m[46]=s[14]-s[46];m[47]=s[15]-s[47];m[48]=s[16]-s[48];m[49]=s[17]-s[49];
m[50]=s[18]-s[50];m[51]=s[19]-s[51];m[52]=s[20]-s[52];m[53]=s[21]-s[53];m[54]=s[22]-s[54];m[55]=s[23]-s[55];
m[56]=s[24]-s[56];m[57]=s[25]-s[57];m[58]=s[26]-s[58];m[59]=s[27]-s[59];m[60]=s[28]-s[60];m[61]=s[29]-s[61];
m[62]=s[30]-s[62];m[63]=s[31]-s[63];s[0]=m[16]+m[0];s[1]=m[17]+m[1];s[2]=m[18]+m[2];s[3]=m[19]+m[3];
s[4]=m[20]+m[4];s[5]=m[21]+m[5];s[6]=m[22]+m[6];s[7]=m[23]+m[7];s[8]=m[24]+m[8];s[9]=m[25]+m[9];s[10]=m[26]+m[10];
s[11]=m[27]+m[11];s[12]=m[28]+m[12];s[13]=m[29]+m[13];s[14]=m[30]+m[14];s[15]=m[31]+m[15];s[16]=m[0]-m[16];
s[17]=m[1]-m[17];s[18]=m[2]-m[18];s[19]=m[3]-m[19];s[20]=m[4]-m[20];s[21]=m[5]-m[21];s[22]=m[6]-m[22];
s[23]=m[7]-m[23];s[24]=m[8]-m[24];s[25]=m[9]-m[25];s[26]=m[10]-m[26];s[27]=m[11]-m[27];s[28]=m[12]-m[28];
s[29]=m[13]-m[29];s[30]=m[14]-m[30];s[31]=m[15]-m[31];m[0]=s[8]+s[0];m[1]=s[9]+s[1];m[2]=s[10]+s[2];
m[3]=s[11]+s[3];m[4]=s[12]+s[4];m[5]=s[13]+s[5];m[6]=s[14]+s[6];m[7]=s[15]+s[7];m[8]=s[0]-s[8];m[9]=s[1]-s[9];
m[10]=s[2]-s[10];m[11]=s[3]-s[11];m[12]=s[4]-s[12];m[13]=s[5]-s[13];m[14]=s[6]-s[14];m[15]=s[7]-s[15];
s[0]=m[4]+m[0];s[1]=m[5]+m[1];s[2]=m[6]+m[2];s[3]=m[7]+m[3];s[4]=m[0]-m[4];s[5]=m[1]-m[5];s[6]=m[2]-m[6];
s[7]=m[3]-m[7];s[8]=m[12]+m[8];s[9]=m[13]+m[9];s[10]=m[14]+m[10];s[11]=m[15]+m[11];s[12]=m[8]-m[12];
s[13]=m[9]-m[13];s[14]=m[10]-m[14];s[15]=m[11]-m[15];m[0]=s[2]+s[0];m[1]=s[3]+s[1];m[2]=s[0]-s[2];m[3]=s[1]-s[3];
m[4]=s[6]+s[4];m[5]=s[7]+s[5];m[6]=s[4]-s[6];m[7]=s[5]-s[7];m[8]=s[10]+s[8];m[9]=s[11]+s[9];m[10]=s[8]-s[10];
m[11]=s[9]-s[11];m[12]=s[14]+s[12];m[13]=s[15]+s[13];m[14]=s[12]-s[14];m[15]=s[13]-s[15];s[0]=m[1]+m[0];
s[1]=m[0]-m[1];s[2]=m[3]+m[2];s[3]=m[2]-m[3];s[4]=m[5]+m[4];s[5]=m[4]-m[5];s[6]=m[7]+m[6];s[7]=m[6]-m[7];
s[8]=m[9]+m[8];s[9]=m[8]-m[9];s[10]=m[11]+m[10];s[11]=m[10]-m[11];s[12]=m[13]+m[12];s[13]=m[12]-m[13];
s[14]=m[15]+m[14];s[15]=m[14]-m[15]};L.ux.ajV=function(){var s="",cE=64,m="v",l="t",x="a",a=5,C,P,o;
for(C=cE>>1;C>0;C>>=1,a--){for(P=0;P<cE;P++){o=(P>>a&1)!=0;if(o){s+=l+"["+P+"] = "+m+"["+(-C+P)+"] - "+m+"["+P+"]; "}else{s+=l+"["+P+"] = "+m+"["+(C+P)+"] + "+m+"["+P+"]; "}}x=m;
m=l;l=x;s+="\n"}console.log(s)};L.ux.adu=function(cE,s,m){var l=s,x=m,a=l,P=0,C,G,_;while(cE>>P!=2)P++;
var o=P;for(C=cE>>1;C>0;C>>=1,P--){for(G=0;G<cE;G++){_=(G>>P&1)!=0;if(_)x[G]=l[-C+G]-l[G];else x[G]=l[C+G]+l[G]}a=l;
l=x;x=a}if((o&1)==1)for(C=0;C<cE;C++)m[C]=l[C]};L.Mq={};L.Mq.sb=function(s,m,l,x,a,P,o,G,_){var j=Date.now(),U=new Uint32Array(s.buffer),S=new Uint32Array(m.buffer),X=o/l,c=G/x,y=1/X,O=1/c,p=new Float64Array(2),D=3,f=1/D,T=1/(D*D),I=0,H=0,b=l,R=x;
if(a){I=a.x;H=a.y;b=a.e;R=a.l}for(var W=0;W<R;W++)for(var J=0;J<b;J++){var u=I+J,e=H+W,C=e*l+u,Q=C<<1,q=C<<2;
L.Mq.abR(P,o,G,(u+.5)*X,(e+.5)*c,p);var Z=p[0]*y,E=p[1]*O;if(Z==0&&E==0)S[C]=U[C];else{L.V.zw(u+Z+.5,e+E+.5,U,l,x,S,C,_)}}};
L.Mq.abR=function(s,m,l,x,a,P){x-=.499999;a-=.499999;var o=~~x,G=~~a,_=x-o,j=a-G,U=(1-j)*(1-_),S=(1-j)*_,X=j*(1-_),c=j*_,y=o<m-1?o+1:o,O=G<l-1?G+1:G,p=G*m+o<<1,D=G*m+y<<1,f=O*m+o<<1,T=O*m+y<<1;
P[0]=U*s[p]+S*s[D]+X*s[f]+c*s[T];P[1]=U*s[p+1]+S*s[D+1]+X*s[f+1]+c*s[T+1]};L.Mq.a4t=function(s,m,l,x,a){var P=1/s,o=[-1,1,-s,s],G=x.length;
for(var _=0;_<G;_++){var C=x[_],j=C<<1,U=_<<1,S=~~(C*P),X=C-s*S,c=l[j],y=l[j+1],O=0,p=0;if(X!=0&&X!=s-1){var D=C-1<<1,f=C+1<<1,T=l[D],I=l[f],H=l[D+1],b=l[f+1],R=c-(T+I)*.5,W=y-(H+b)*.5;
O-=R*a;p-=W*a}if(S!=0&&S!=m-1){var D=C-s<<1,f=C+s<<1,T=l[D],I=l[f],H=l[D+1],b=l[f+1],R=c-(T+I)*.5,W=y-(H+b)*.5;
O-=R*a;p-=W*a}l[j]=c+O;l[j+1]=y+p}};L.Mq.a17=function(s,m){var l=s+","+m;if(L.Mq.kn==l)return L.Mq.XV;
var x=L.Mq.XV=[];L.Mq.kn=l;for(var C=0;C<=1e3;C++){var a=C*.001,P=Math.sqrt(a),o=Math.exp(-4*P),G=.96*(1-P*P),_=m*((1-s)*o+s*G);
x[C]=_}return x};L.Mq.kn="";L.Mq.XV=[];L.Mq.amw=function(s,m,l,x,a,P,o,G,_,j,U,S,X){var c=Math.max(0,Math.floor(a-o-1)),y=Math.min(m,Math.ceil(a+o+1)),O=Math.max(0,Math.floor(P-o-1)),p=Math.min(l,Math.ceil(P+o+1)),D=2*m,f=o*o,T=1/o,I=0;
if(X&&(x==3||x==6))_=-_;var H=L.Mq.a17(G,_);for(var b=O;b<p;b++)for(var R=c;R<y;R++){var C=b*m+R,W=C<<1,J=(a-R)*T,u=(P-b)*T,e=J*J+u*u;
if(e<1){S[I]=C;var Q=H[~~(e*1e3)];if(x==1){s[W]=s[W]*(1-Q*.05);s[W+1]=s[W+1]*(1-Q*.05)}else{var q=0,Z=0,V,Y,d,w;
if(x==0){q=j*Q;Z=U*Q}else if(x==2){}else if(x==3){q=Q*u;Z=-Q*J}else if(x==4){q=Q*J;Z=Q*u}else if(x==5){q=-Q*J;
Z=-Q*u}else if(x==6){q=U*Q;Z=-j*Q}var E=s[W],z=s[W+1];if(R==0||R!=m-1&&q<0){V=1+s[W+2]-E;d=s[W+3]-z}else{V=E-s[W-2]+1;
d=z-s[W-1]}if(b==0||b!=l-1&&Z<0){Y=s[W+D]-E;w=1+s[W+D+1]-z}else{Y=E-s[W-D];w=z-s[W-D+1]+1}s[W]=-(V*q+Y*Z-E);
s[W+1]=-(d*q+w*Z-z)}I++}}};L.Mq.a4X=function(s){var m=s[0],l=s[0],x=s[1],a=s[1];for(var C=0;C<s.length;
C+=2){var P=s[C],o=s[C+1];if(P<m)m=P;else if(P>l)l=P;if(o<x)x=o;else if(o>a)a=o}return[m,x,l,a]};L.akD=function(s,m,l,x,a){function P(k,ab,f_,fc){return Math.sqrt((k-f_)*(k-f_)+(ab-fc)*(ab-fc))}function o(k,ab){return k>=0&&k<m&&ab>=0&&ab<l}function G(k){if(k<0)return 0;
if(k>=m)return m-1;return k}function _(k){if(k<0)return 0;if(k>=l)return l-1;return k}function j(C,k){var ab=k[3]*(1/255),f_=x[C]+k[0]*ab;
if(f_>255)f_=255;x[C]=f_;f_=x[C+1]+k[1]*ab;if(f_>255)f_=255;x[C+1]=f_;f_=x[C+2]+k[2]*ab;if(f_>255)f_=255;
x[C+2]=f_}function U(k,ab,f_){if(!A(k,ab))return;if(f_[3]<0)f_[3]=0;j((ab*m+k)*4,f_)}function S(k){var ab=k.slice(0,3);
ab[3]=0;return ab}var X=m/800;function c(k){return Math.round(k*X)}function y(){for(var C=0;C<=300;C++){i[C]=O(C)}}function O(l){var k=.8,ab=.2,f_=k*ab,fc=l/60%2-1,g8=f_*(1-fc*fc),bH=ab-f_,cR;
if(l<60){cR=[f_+bH,g8,0]}else if(l<120){cR=[g8,f_,0]}else if(l<180){cR=[0,f_,g8]}else if(l<240){cR=[0,g8,f_]}else if(l<300){cR=[g8,0,f_]}else{cR=[f_,0,g8]}return[(cR[0]+bH)*255,(cR[1]+bH)*255,(cR[2]+bH)*255]}function p(l){return i[~~l]}function D(k){return 1-f(k)}function f(k){return k-~~k}function T(k,ab,f_,fc){d(k,ab,f_,0,ab+1,1,fc)}function I(k,ab,f_,fc,g8,bH){d(k,ab,f_,0,fc,1,g8,bH)}function H(k){for(var C=0;
C<x.length;C+=4){j(C,k)}}function b(k,ab,f_,fc,g8,bH,cR,hr){R(k,ab,f_,fc,g8,1,bH,cR,hr)}function R(k,ab,f_,fc,g8,bH,cR,hr,h$){if(bH==null)bH=.5;
if(cR==null)cR=0;if(hr==null)hr=0;if(h$==null)h$=!1;var gE=k.x,d8=k.y,hG=f_.slice(0),f7=~~(f_[3]*h);
fc=fc*h;if(!h$){ab=w(ab);g8=w(g8);cR=w(cR);hr=w(hr)}var hX=G(gE-ab),fB=G(gE+ab);for(var e5=hX;e5<=fB;
e5++){var g9=e5-gE,cL=Math.floor(Math.sqrt(ab*ab-g9*g9)),bf=_(d8-cL),gF=_(d8);for(var iC=bf;iC<=gF;iC++){var ax=P(e5,iC,gE,d8);
if(ax>ab||ax<=ab-g8)break;var e7=(ax-ab+g8)/g8;hG[3]=f7-fc*(bH==1?e7:Math.pow(e7,bH));j((iC*m+e5)*4,hG)}bf=_(d8+cL);
for(var iC=bf;iC>gF;iC--){var ax=P(e5,iC,gE,d8);if(ax>ab||ax<=ab-g8)break;var e7=(ax-ab+g8)/g8;hG[3]=f7-fc*(bH==1?e7:Math.pow(e7,bH));
j((iC*m+e5)*4,hG)}}if(cR>0){d(k,ab+cR,hG,hG[3],cR,1,0,0,!0)}if(hr>0){d(k,ab-g8,$(f_),-f_[3],hr,1,0,0,!0)}}function W(k,ab,f_,fc,g8,bH){d(k,ab,f_,f_[3],ab+1,1,fc,g8,bH)}function J(k,ab,f_,fc,g8){if(g8==null)g8=!1;
var bH=k.x,cR=k.y;fc*=h;if(!g8){ab=w(ab);f_=w(f_)}var hr=G(bH-ab),h$=G(bH+ab);for(var gE=hr;gE<h$;gE++){var d8=gE-bH,hG=~~Math.sqrt(ab*ab-d8*d8),f7=_(cR-hG),hX=_(cR);
for(var fB=f7;fB<=hX;fB++){var e5=P(gE,fB,bH,cR);if(e5>ab||e5<=ab-f_)break;var g9=(ab-e5)/f_,cL=p(300*g9);
cL[3]=fc;j((fB*m+gE)*4,cL)}f7=_(cR+hG);for(var fB=f7;fB>hX;fB--){var e5=P(gE,fB,bH,cR);if(e5>ab||e5<=ab-f_)break;
var g9=(ab-e5)/f_,cL=p(300*g9);cL[3]=fc;j((fB*m+gE)*4,cL)}}}function u(K,k){var ab=K.iT,f_=K.Df,fc=k.slice(0),g8=k[3]*h,bH=Math.abs(f_.y-ab.y)>Math.abs(f_.x-ab.x);
if(bH){var cR=ab.x;ab.x=ab.y;ab.y=cR;cR=f_.x;f_.x=f_.y;f_.y=cR}if(ab.x>f_.x){var cR=ab;ab=f_;f_=cR}var hr=f_.x-ab.x,h$=f_.y-ab.y,gE=hr==0?1:h$/hr,d8=Math.round(ab.x),hG=ab.y+gE*(d8-ab.x),f7=D(ab.x+.5),hX=d8,fB=~~hG;
if(bH){fc[3]=g8*D(hG)*f7;U(fB,hX,fc);fc[3]=g8*f(hG)*f7;U(fB+1,hX,fc)}else{fc[3]=g8*D(hG)*f7;U(hX,fB,fc);
fc[3]=g8*f(hG)*f7;U(hX,fB+1,fc)}var e5=hG-gE;d8=Math.round(f_.x);hG=f_.y+gE*(d8-f_.x);f7=f(f_.x+.5);
var g9=d8,cL=~~hG;if(bH){fc[3]=g8*D(hG)*f7;U(cL,g9,fc);fc[3]=g8*f(hG)*f7;U(cL+1,g9,fc)}else{fc[3]=g8*D(hG)*f7;
U(g9,cL,fc);fc[3]=g8*f(hG)*f7;U(g9,cL+1,fc)}if(bH){for(var bf=hX+1;bf<=g9-1;bf++){fc[3]=g8*D(e5);U(~~e5,bf,fc);
fc[3]=g8*f(e5);U(~~e5+1,bf,fc);e5+=gE}}else{for(var bf=hX+1;bf<=g9-1;bf++){fc[3]=g8*D(e5);U(bf,~~e5,fc);
fc[3]=g8*f(e5);U(bf,~~e5+1,fc);e5+=gE}}}function e(k,ab,f_,fc){for(var C=0;C<4;C++){var g8=k.Js(ab+1.3*C,f_);
u(g8,fc,1)}}function fz(k,ab){this.x=Math.round(k);this.y=Math.round(ab)}var Q=Math.PI/180;fz.prototype.Js=function(k,ab){k=k*Q;
var f_=this.x+ab*Math.cos(k),fc=this.y+ab*Math.sin(k);return new q(this.x,this.y,f_,fc)};fz.prototype.agO=function(k,ab){k=k*Q;
var f_=this.mj+ab*Math.cos(k),fc=this.als+ab*Math.sin(k);return new fz(f_,fc)};function q(k,ab,f_,fc){this.iT=new fz(k,ab);
this.Df=new fz(f_,fc)}q.prototype.zh=function(k){var ab=k*this.iT.x+(1-k)*this.Df.x,f_=k*this.iT.y+(1-k)*this.Df.y;
return new fz(ab,f_)};var Z=b,E=W,z=T,V=I,Y=J,d=R,w=c,A=o,$=S,i=[];y();for(var C=0;C<s.length;C++){x[C]=s[C]}var K=new q(m*a[2],l*a[3],m/2,l/2),h=a[1],F=[];
F[0]=function N(){var k=[80,40,15,60],f_=0,fc=0;z(K.zh(1.4),260,k,10);z(K.zh(1),100,[240,50,50,30],30);
E(K.zh(1),60,[255,40,0,40]);var ab=[255,255,255,255];d(K.zh(1),70,ab,ab[3],58,.5);z(K.zh(1),12,ab);ab[3]=40;
Z(K.zh(1),150,ab,ab[3],150);for(var C=0;C<40;C++){f_+=Math.random()*25;fc=Math.random()*w(300)+w(100);
var g8=K.zh(1).Js(f_,fc);u(K.zh(1).Js(f_,fc),[110,110,110,30])}E(K.zh(1),130,[255,255,255,8]);var bH=[170,30,23,70];
V(K.zh(1),70,bH,1,3,3);var cR=[60,60,130,40];z(K.zh(.47),44,cR,5);z(K.zh(.43),22,cR,3);cR[3]=16;z(K.zh(.53),15,cR,2);
var hr=[138,94,42,100];z(K.zh(.2),16,hr,2);var h$=[130,255,170,180];E(K.zh(0),4,h$);E(K.zh(-.25),5,h$);
hr=[150,90,0,50];Z(K.zh(-.45),55,$(hr),-hr[3],40,2);z(K.zh(-.42),35,hr,2);z(K.zh(-.5),15,hr,2);Y(K.zh(-1.28),145,11,70);
var gE=p(0);gE[3]=50;Z(K.zh(-1.28),149,gE,gE[3],4);gE=p(300);gE[3]=50;Z(K.zh(-1.28),155-1,$(gE),-gE[3],3);
var d8=[130,130,10,50];V(K.zh(-1),73,d8,3,2);var hG=[40,130,70,40];Z(K.zh(-1),70,$(hG),-hG[3],35);hG=[40,170,60,50];
z(K.zh(-.7),25,hG,4);var hG=[70,110,50,60];Z(K.zh(1.3),30,$(hG),-hG[3],11,3);cR=[0,50,210,80];E(K.zh(-.72),20,cR)};
F[1]=function iQ(){E(K.zh(1),150,[240,70,70,60]);z(K.zh(1),100,[200,60,60,40],30);var k=[255,255,255,255],ab=0,f_=0;
d(K.zh(1),75,k,k[3],63);z(K.zh(1),12,k);E(K.zh(1),270,[200,200,200,20],10);for(var C=0;C<10;C++){ab+=10+Math.random()*40;
f_=Math.random()*w(250)+w(80);var fc=K.zh(1).Js(ab,f_);u(fc,[110,110,110,35])}ab=5;f_=100;for(var C=0;
C<12;C++){ab+=30;e(K.zh(1),ab,f_,[90,90,90,40])}var g8=[150,40,23,100];V(K.zh(1),70,g8,1,3,3);var bH=[30,100,60,40];
E(K.zh(-.9),180,[255,255,255,20]);z(K.zh(-.9),140,bH,15);var cR=[170,80,25,15];V(K.zh(-.9),120,cR,1,4,4);
var hr=[110,240,190,200];E(K.zh(-.6),3,hr);hr[3]=100;E(K.zh(-.6),7,hr);var h$=[230,120,40,85];E(K.zh(-.73),9,h$);
var gE=[60,60,190,50];z(K.zh(.3),28,gE,6);gE[3]=25;z(K.zh(.34),20,gE,3)};F[2]=function jB(){var k=[255,255,255,255],f_=0,fc=0;
z(K.zh(1),13,k);d(K.zh(1),150,k,k[3],137);var ab=[120,80,35,20];z(K.zh(1.4),260,ab,10);for(var C=0;C<40;
C++){f_+=5+Math.random()*30;fc=Math.random()*w(300);u(K.zh(1).Js(f_,fc),[110,110,110,20])}var g8=[10,30,255,30];
z(K.zh(1),70,g8,50);var bH=[15,90,170,15];z(K.zh(1.5),60,bH);var cR=[220,220,20,50];z(K.zh(-1.15),8,cR,2);
var k=[255,255,255,40];E(K.zh(-1.18),6,k);E(K.zh(-1.18),4,k);cR=[110,110,10,8];Z(K.zh(-1.2),32,$(cR),-cR[3],20,3);
var hr=[5,0,16,255];for(var C=0;C<4;C++){z(K.zh(-1.36),10,hr,3)}var h$=[90,200,150,20],gE=h$.slice(0);
gE[3]*=2;z(K.zh(-1.32),7,gE,3);z(K.zh(-1.36),7,gE,3);z(K.zh(-1.4),7,gE,3);var k=[230,230,230,100];E(K.zh(-1.36),2,k);
k[3]=3;z(K.zh(-.55),10,k);cR=[120,100,10,18];z(K.zh(-.55),160,cR,8);z(K.zh(-.55),80,cR,4);h$[3]=3;gE[3]=6;
Z(K.zh(-.49),13,$(gE),-gE[3],13,2);Z(K.zh(-.55),13,$(gE),-gE[3],13,2);h$[3]=20;z(K.zh(.15),25,h$,3);
cR[3]=100;E(K.zh(-.52),3,cR);cR=[200,200,50,40];z(K.zh(.27),1,cR,4);var d8=[150,40,23,30];Z(K.zh(1),80,$(d8),-d8[3],2,1)};
return F[a[0]]()};L.pc={};L.pc.mP=function(s){var m=s.length,cE=s[0].length,l=new Array(cE);for(var C=0;
C<cE;C++)l[C]=new Array(m);for(var C=0;C<cE;C++)for(var x=0;x<m;x++)l[C][x]=s[x][C];return l};L.pc.fy=function(s,m){var l=s.length,cE=s[0].length,x=new Array(l);
for(var C=0;C<l;C++)x[C]=new Array(cE);for(var C=0;C<l;C++)for(var a=0;a<cE;a++)x[C][a]=s[C][a]-m[C][a];
return x};L.pc.add=function(s,m){var l=s.length,cE=s[0].length,x=new Array(l);for(var C=0;C<l;C++)x[C]=new Array(cE);
for(var C=0;C<l;C++)for(var a=0;a<cE;a++)x[C][a]=s[C][a]+m[C][a];return x};L.pc.multiply=function(s,m){var l=s.length,x=s[0].length,cE=m[0].length;
if(x!=m.length)throw"e";var a=new Array(l);for(var C=0;C<l;C++)a[C]=new Array(cE);if((x&1)!=0)for(var C=0;
C<l;C++){var P=s[C],o=a[C];for(var G=0;G<cE;G++){var _=0;for(var j=0;j<x;j++)_+=P[j]*m[j][G];o[G]=_}}else for(var C=0;
C<l;C++){var P=s[C],o=a[C];for(var G=0;G<cE;G++){var _=0;for(var j=0;j<x;j+=2)_+=P[j]*m[j][G]+P[j+1]*m[j+1][G];
o[G]=_}}return a};L.pc._R=function(s,m){var l=s.length,cE=s[0].length,x=new Array(l);for(var C=0;C<l;
C++){var a=0;for(var P=0;P<cE;P++)a+=s[C][P]*m[P];x[C]=a}return x};L.pc.ol=function(s,m){var l=[];for(var C=0;
C<s;C++){l.push([]);for(var x=0;x<m;x++)l[C].push(0)}return l};L.pc.atG=function(s){for(var C=0;C<s.length;
C++)console.log(JSON.stringify(s[C]))};L.pc.ala=function(s){var m=[];for(var C=0;C<s.length;C++)m.push(s[C].join(","));
return"["+m.join(";")+"]"};L.pc.J1=function(s,m){var l=s.length;for(var x=0;x<l;x++){var a=0,P=Number.NEGATIVE_INFINITY;
for(var C=x;C<l;C++)if(Math.abs(s[C][x])>P){a=C;P=Math.abs(s[C][x])}L.pc.alT(s,x,a);for(var C=x+1;C<l;
C++){if(s[x][x]==0)return 1;var o=s[C][x]/s[x][x];for(var G=x;G<l+1;G++)s[C][G]-=s[x][G]*o}}for(var C=l-1;
C>=0;C--){if(s[C][C]==0)return 1;var _=s[C][l]/s[C][C];m[C]=_;for(var G=C-1;G>=0;G--){s[G][l]-=s[G][C]*_;
s[G][C]=0}}return 0};L.pc.alT=function(s,m,l){var x=s[m];s[m]=s[l];s[l]=x};L.pc.aqf=function(s){var m=s.length,l=L.pc.ol(m,m);
for(var C=0;C<m;C++)l[C][C]=s[C];return l};L.pc.ap3=function(s){var m=s.length,l=s[0].length,x=new Array(m);
for(var C=0;C<m;C++){x[C]=0;for(var a=0;a<l;a++)x[C]+=s[C][a];x[C]/=l}return x};L.pc.ov=function(s){var m=0;
for(var C=0;C<s.length;C++)m+=s[C]*s[C];return Math.sqrt(m)};L.G0={};L.G0.dW=function(s){var m=~~(s+.5);
return m<0?0:m>255?255:m};L.G0.transform=function(s,m,l){var x=L.G0.dW,a=s.o.length;for(var C=0;C<a;
C++){var P=s.o[C],o=s.z[C],G=s.S[C];m.o[C]=x(l[0]*P+l[1]*o+l[2]*G+l[3]*255);m.z[C]=x(l[4]*P+l[5]*o+l[6]*G+l[7]*255);
m.S[C]=x(l[8]*P+l[9]*o+l[10]*G+l[11]*255)}};L.G0.IR=function(s,m,l){var x=L.G0.dW,a=s.length;for(var C=0;
C<a;C+=4){var P=s[C],o=s[C+1],G=s[C+2];m[C]=x(l[0]*P+l[1]*o+l[2]*G+l[3]*255);m[C+1]=x(l[4]*P+l[5]*o+l[6]*G+l[7]*255);
m[C+2]=x(l[8]*P+l[9]*o+l[10]*G+l[11]*255)}};L.G0.VF=function(s){var m=s[0]+s[1]+s[2],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1];
if(m==1){var x=s.indexOf(1);l[x]=l[x+4]=l[x+8]=1}else{l[0]=s[0];l[5]=s[1];l[10]=s[2]}return l};L.G0.NY=function(s,m,l){return[1,0,0,s,0,1,0,m,0,0,1,l,0,0,0,1]};
L.G0.C2=function(s,m,l){return[s,0,0,0,0,m,0,0,0,0,l,0,0,0,0,1]};L.G0.a1G=function(s){return[s[0],s[1],s[2],s[4],s[5],s[6],s[8],s[9],s[10]]};
L.G0.XS=function(s){return[s[0],s[1],s[2],0,s[3],s[4],s[5],0,s[6],s[7],s[8],0,0,0,0,1]};L.G0.mC=function(s,m){return[s[0]*m[0]+s[1]*m[1]+s[2]*m[2]+s[3]*m[3],s[4]*m[0]+s[5]*m[1]+s[6]*m[2]+s[7]*m[3],s[8]*m[0]+s[9]*m[1]+s[10]*m[2]+s[11]*m[3],s[12]*m[0]+s[13]*m[1]+s[14]*m[2]+s[15]*m[3]]};
L.G0.mP=function(s){var m=[];m[0]=s[0];m[1]=s[4];m[2]=s[8];m[3]=s[12];m[4]=s[1];m[5]=s[5];m[6]=s[9];
m[7]=s[13];m[8]=s[2];m[9]=s[6];m[10]=s[10];m[11]=s[14];m[12]=s[3];m[13]=s[7];m[14]=s[11];m[15]=s[15];
return m};L.G0.add=function(s,m){var l=s.slice(0);for(var C=0;C<16;C++)l[C]+=m[C];return l};L.G0.multiply=function(s,m){var l=[];
l[0]=s[0]*m[0]+s[1]*m[4]+s[2]*m[8]+s[3]*m[12];l[1]=s[0]*m[1]+s[1]*m[5]+s[2]*m[9]+s[3]*m[13];l[2]=s[0]*m[2]+s[1]*m[6]+s[2]*m[10]+s[3]*m[14];
l[3]=s[0]*m[3]+s[1]*m[7]+s[2]*m[11]+s[3]*m[15];l[4]=s[4]*m[0]+s[5]*m[4]+s[6]*m[8]+s[7]*m[12];l[5]=s[4]*m[1]+s[5]*m[5]+s[6]*m[9]+s[7]*m[13];
l[6]=s[4]*m[2]+s[5]*m[6]+s[6]*m[10]+s[7]*m[14];l[7]=s[4]*m[3]+s[5]*m[7]+s[6]*m[11]+s[7]*m[15];l[8]=s[8]*m[0]+s[9]*m[4]+s[10]*m[8]+s[11]*m[12];
l[9]=s[8]*m[1]+s[9]*m[5]+s[10]*m[9]+s[11]*m[13];l[10]=s[8]*m[2]+s[9]*m[6]+s[10]*m[10]+s[11]*m[14];l[11]=s[8]*m[3]+s[9]*m[7]+s[10]*m[11]+s[11]*m[15];
l[12]=s[12]*m[0]+s[13]*m[4]+s[14]*m[8]+s[15]*m[12];l[13]=s[12]*m[1]+s[13]*m[5]+s[14]*m[9]+s[15]*m[13];
l[14]=s[12]*m[2]+s[13]*m[6]+s[14]*m[10]+s[15]*m[14];l[15]=s[12]*m[3]+s[13]*m[7]+s[14]*m[11]+s[15]*m[15];
return l};L.G0.ms=function(s){var m=[];m[0]=s[5]*s[10]*s[15]-s[5]*s[14]*s[11]-s[6]*s[9]*s[15]+s[6]*s[13]*s[11]+s[7]*s[9]*s[14]-s[7]*s[13]*s[10];
m[1]=-s[1]*s[10]*s[15]+s[1]*s[14]*s[11]+s[2]*s[9]*s[15]-s[2]*s[13]*s[11]-s[3]*s[9]*s[14]+s[3]*s[13]*s[10];
m[2]=s[1]*s[6]*s[15]-s[1]*s[14]*s[7]-s[2]*s[5]*s[15]+s[2]*s[13]*s[7]+s[3]*s[5]*s[14]-s[3]*s[13]*s[6];
m[3]=-s[1]*s[6]*s[11]+s[1]*s[10]*s[7]+s[2]*s[5]*s[11]-s[2]*s[9]*s[7]-s[3]*s[5]*s[10]+s[3]*s[9]*s[6];
m[4]=-s[4]*s[10]*s[15]+s[4]*s[14]*s[11]+s[6]*s[8]*s[15]-s[6]*s[12]*s[11]-s[7]*s[8]*s[14]+s[7]*s[12]*s[10];
m[5]=s[0]*s[10]*s[15]-s[0]*s[14]*s[11]-s[2]*s[8]*s[15]+s[2]*s[12]*s[11]+s[3]*s[8]*s[14]-s[3]*s[12]*s[10];
m[6]=-s[0]*s[6]*s[15]+s[0]*s[14]*s[7]+s[2]*s[4]*s[15]-s[2]*s[12]*s[7]-s[3]*s[4]*s[14]+s[3]*s[12]*s[6];
m[7]=s[0]*s[6]*s[11]-s[0]*s[10]*s[7]-s[2]*s[4]*s[11]+s[2]*s[8]*s[7]+s[3]*s[4]*s[10]-s[3]*s[8]*s[6];m[8]=s[4]*s[9]*s[15]-s[4]*s[13]*s[11]-s[5]*s[8]*s[15]+s[5]*s[12]*s[11]+s[7]*s[8]*s[13]-s[7]*s[12]*s[9];
m[9]=-s[0]*s[9]*s[15]+s[0]*s[13]*s[11]+s[1]*s[8]*s[15]-s[1]*s[12]*s[11]-s[3]*s[8]*s[13]+s[3]*s[12]*s[9];
m[10]=s[0]*s[5]*s[15]-s[0]*s[13]*s[7]-s[1]*s[4]*s[15]+s[1]*s[12]*s[7]+s[3]*s[4]*s[13]-s[3]*s[12]*s[5];
m[11]=-s[0]*s[5]*s[11]+s[0]*s[9]*s[7]+s[1]*s[4]*s[11]-s[1]*s[8]*s[7]-s[3]*s[4]*s[9]+s[3]*s[8]*s[5];m[12]=-s[4]*s[9]*s[14]+s[4]*s[13]*s[10]+s[5]*s[8]*s[14]-s[5]*s[12]*s[10]-s[6]*s[8]*s[13]+s[6]*s[12]*s[9];
m[13]=s[0]*s[9]*s[14]-s[0]*s[13]*s[10]-s[1]*s[8]*s[14]+s[1]*s[12]*s[10]+s[2]*s[8]*s[13]-s[2]*s[12]*s[9];
m[14]=-s[0]*s[5]*s[14]+s[0]*s[13]*s[6]+s[1]*s[4]*s[14]-s[1]*s[12]*s[6]-s[2]*s[4]*s[13]+s[2]*s[12]*s[5];
m[15]=s[0]*s[5]*s[10]-s[0]*s[9]*s[6]-s[1]*s[4]*s[10]+s[1]*s[8]*s[6]+s[2]*s[4]*s[9]-s[2]*s[8]*s[5];var l=s[0]*m[0]+s[1]*m[4]+s[2]*m[8]+s[3]*m[12];
for(var C=0;C<16;C++)m[C]/=l;return m};L.G0.afj=function(s){var m=[],l=s[5]*s[10]*s[15]-s[5]*s[14]*s[11]-s[6]*s[9]*s[15]+s[6]*s[13]*s[11]+s[7]*s[9]*s[14]-s[7]*s[13]*s[10],x=-s[4]*s[10]*s[15]+s[4]*s[14]*s[11]+s[6]*s[8]*s[15]-s[6]*s[12]*s[11]-s[7]*s[8]*s[14]+s[7]*s[12]*s[10],a=s[4]*s[9]*s[15]-s[4]*s[13]*s[11]-s[5]*s[8]*s[15]+s[5]*s[12]*s[11]+s[7]*s[8]*s[13]-s[7]*s[12]*s[9],P=-s[4]*s[9]*s[14]+s[4]*s[13]*s[10]+s[5]*s[8]*s[14]-s[5]*s[12]*s[10]-s[6]*s[8]*s[13]+s[6]*s[12]*s[9];
return s[0]*l+s[1]*x+s[2]*a+s[3]*P};L.G0.sx=L.G0.XS([3.1338561,-1.6168667,-.4906146,-.9787684,1.9161415,.033454,.0719453,-.2289914,1.4052427]);
L.G0.aob=L.G0.XS([1.9624274,-.6105343,-.3413404,-.9787684,1.9161415,.033454,.0286869,-.1406752,1.3487655]);
L.G0.ai6=L.G0.ms(L.G0.sx);L.qq={};L.qq.CO=new Uint32Array(1);L.qq.fY=function(s,m,l,x,a,P){var o=new Uint32Array(s),G=0,_=L.qq.CO;
if(_.length<m*4)L.qq.CO=_=new Uint32Array(m*4);var j=new Float64Array(_.buffer);for(var C=0;C<m;C+=2){var U=a[C],S=a[C+1],X=P[C],c=P[C+1];
_[G]=S;j[G+2>>1]=X;_[G+1]=o[U];o[U]=G+1;G+=4;_[G]=U;j[G+2>>1]=c;_[G+1]=o[S];o[S]=G+1;G+=4}return{oN:_,asi:j,a6g:o}};
L.qq.J1=function(s,m,l,x,a,P,o){var G=1,_=L.qq.fY(s,m,l,x,a,P),j=_.oN,U=_.asi,S=_.a6g,X=new Uint32Array(s),c=new L.qq.NP(s),O=1,I=0;
c.push(l);c.push(x);var y=new L.qq.NP(s),p=new Uint8Array(s),D=new Uint32Array(s);p[l]=1;p[x]=2;var f=new Uint32Array(s),T=new Uint32Array(s);
T[l]=T[x]=0;f[l]=f[x]=1;while(!0){var H=-1,Q=0,z=1e30;while(!c.U5()&&H==-1){var b=c.top(),R=p[b],W=S[b]-1;
while(W!=-1){var J=j[W],u=p[J],e=W^R-1<<2;if(U[e+2>>1]!=0){if(u==0){L.qq.JG(b,W,J,p,D,T,f);c.push(J)}else if(u==R&&f[J]<=f[b]&&T[J]>T[b])L.qq.JG(b,W,J,p,D,T,f);
else if(u!=R){H=e}}W=j[W+1]-1}if(H!=-1)break;c.pop()}if(H==-1){break}O++;var q=H;while(q!=-1){X[Q]=q;
Q++;q=D[j[q^4]]-1}var Z=Q>>1;for(var C=0;C<Z;C++){var E=X[C];X[C]=X[Q-C-1];X[Q-C-1]=E}q=D[j[H]]-1;while(q!=-1){X[Q]=q^4;
Q++;q=D[j[q^4]]-1}for(var C=0;C<Q;C++)z=Math.min(z,U[X[C]+2>>1]);I+=z;if(I>=o)return{ui:null,c4:I};for(var C=0;
C<Q;C++){var V=X[C],Y=V^4,b=j[Y],J=j[V];U[V+2>>1]-=z;U[Y+2>>1]+=z;if(U[V+2>>1]==0&&p[b]==p[J]){if(p[b]==1){D[J]=0;
y.push(J)}if(p[b]==2){D[b]=0;y.push(b)}}}while(!y.U5()){var b=y.pop(),R=p[b],W=S[b]-1,d=R==1?4:0,w=0,A=0,$=1e9;
while(W!=-1){var J=j[W],i=W^4,e=W^d;if(p[J]==R&&U[e+2>>1]>0&&L.qq.a21(J,l,x,D,j,O,f,T)+1<$){w=J;A=i;
$=T[J]+1}W=j[W+1]-1}if(A!=0){L.qq.JG(w,A,b,p,D,T,f);continue}W=S[b]-1;while(W!=-1){var J=j[W],e=W^d;
if(p[J]==R){if(U[e+2>>1]>0){c.push(J)}if(D[J]==W+1){D[J]=0;y.push(J)}}W=j[W+1]-1}p[b]=0;c.remove(b)}}var K=[];
for(var C=0;C<m;C+=2){var b=a[C],J=a[C+1];if(p[b]==1&&p[J]!=1){K.push(C>>1)}if(p[J]==1&&p[b]!=1){K.push(m+C>>1)}}return{ui:K,c4:I}};
L.qq.JG=function(s,m,l,x,a,P,o){x[l]=x[s];a[l]=m+1;P[l]=P[s]+1;o[l]=o[s]};L.qq.a21=function(s,m,l,x,a,P,o,G){var _=s,j=x[s]-1,U=0;
while(j!=-1&&o[s]!=P){s=a[j^4];j=x[s]-1;U++}if(j==-1&&s!=m&&s!=l)return 1e9;var S=G[s]+U;U=0;j=x[_]-1;
while(_!=s){G[_]=S-U;U++;o[_]=P;_=a[j^4];j=x[_]-1}return S};L.qq.aik=function(s,m,l,x,a,P){var o=L.qq.fY(s,m,l,x,a,P),G=o.oN,_=o.asi,j=o.a6g,U=0,S=0,X=new Uint32Array(s*2),c=new L.qq.i0(s),y=0;
while(!0){c.reset();c.push(l);for(var C=0;C<s;C++)X[C<<1]=0;while(!c.U5()){var O=c.pop(),p=j[O]-1;while(p!=-1){y=G[p];
if(X[y<<1]==0&&_[p+2>>1]>0&&y!=l){X[y<<1]=O+1;X[(y<<1)+1]=p;c.push(y)}p=G[p+1]-1}if(X[x<<1]!=0){break}}if(X[x<<1]==0){break}var D=1e30;
y=x;while(!0){var f=X[y<<1]-1;if(f==-1)break;var T=X[(y<<1)+1];D=Math.min(D,_[T+2>>1]);y=f}y=x;while(!0){var f=X[y<<1]-1;
if(f==-1)break;var T=X[(y<<1)+1],I=T^4;_[T+2>>1]-=D;_[I+2>>1]+=D;y=f}U+=D}var H=[];for(var C=0;C<m;C+=2){var f=a[C],y=a[C+1];
if((X[f<<1]!=0||f==l)&&X[y<<1]==0&&y!=l){H.push(C>>1)}if((X[y<<1]!=0||y==l)&&X[f<<1]==0&&f!=l){H.push(m+C>>1)}}return{ui:H,c4:U}};
L.qq.i0=function(s){s|=s>>1;s|=s>>2;s|=s>>4;s|=s>>8;s|=s>>16;this.bf=new Uint32Array(s+1);this.fh=s;
this.U_=0;this.e9=0};L.qq.i0.prototype={push:function(s){var m=this.e9;this.bf[m]=s;this.e9=m+1&this.fh},pop:function(){var s=this.U_,m=this.bf[s];
this.U_=s+1&this.fh;return m},U5:function(){return this.U_==this.e9},reset:function(){this.U_=0;this.e9=0}};
L.qq.NP=function(s){s|=s>>1;s|=s>>2;s|=s>>4;s|=s>>8;s|=s>>16;this.bf=new Uint32Array(s+1);this.X6=new Uint32Array(s+1);
this.fh=s;this.U_=0;this.e9=0};L.qq.NP.prototype={top:function(){return this.bf[this.U_]},ag3:function(){return this.bf[this.e9]},push:function(s){if(this.X6[s]!=0)return;
this.X6[s]=this.e9+1;var m=this.e9;this.bf[m]=s;this.e9=m+1&this.fh},pop:function(){var s=this.U_,m=this.bf[s];
this.X6[m]=0;this.U_=s+1&this.fh;return m},U5:function(){return this.U_==this.e9},remove:function(s){var m=this.X6[s]-1;
if(m==-1)return;this.X6[s]=0;if(m==this.U_){this.pop();return}var l=this.pop();this.bf[m]=l;this.X6[l]=m+1},AD:function(C){return C+this.fh+1&this.fh}};
L.qq.Zd=function(s,m,l){var x=L.qq.GB(s,m,l);if(m<x-1)L.qq.Zd(s,m,x-1);if(x<l)L.qq.Zd(s,x,l)};L.qq.GB=function(s,m,l){var x=s[m+l>>>1];
while(m<=l){while(s[m]<x)m++;while(s[l]>x)l--;if(m<=l){L.qq.Ti(s,m,l);m++;l--}}return m};L.qq.Ti=function(s,m,l){var x=s[m];
s[m]=s[l];s[l]=x};L.R2={};L.R2.as6=function(s){for(var C=0;C<s.length;C++)L.R2.NN(s,C)};L.R2.NN=function(s,C){s[C].v.keyShapeInvalidated={t:"bool",v:!0}};
L.R2.a6m=function(s){for(var C=0;C<s.length;C++)s[C].v.keyOriginIndex.v=C};L.R2.dV=function(){return{t:"Objc",v:{classID:"null",keyOriginIndex:{t:"long",v:0},keyShapeInvalidated:{t:"bool",v:!0}}}};
L.R2.hN=function(s){s=s.v;var m={Rctn:2,Ln:4,Elps:5},l=m[s.classID],x=s.topLeft?L.R2.Ib(s):null,a=null,P=0;
if(l==4){var o=s.Strt.v,G=s.End.v;a=[o.Hrzn.v.val,o.Vrtc.v.val,G.Hrzn.v.val,G.Vrtc.v.val];P=s.Wdth.v.val}if(l==null)return null;
return L.R2.Ai(l,l==4?null:L.R2.K4(s),x,a,P)};L.R2.xF=function(s,m,l,x,a,P){var o={classID:s,unitValueQuadVersion:{t:"long",v:1}};
if(m)L.R2.CG(o,["Left","Top","Rght","Btom"],m);if(l)L.R2.CG(o,["topLeft","topRight","bottomRight","bottomLeft"],l);
if(s=="Ln"){o.Strt={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:x[0]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:x[1]}}}},o.End={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:x[2]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:x[3]}}}},o.Wdth={t:"UntF",v:{type:"#Pxl",val:a}}}if(P)o.Nm={t:"TEXT",v:P};
return{t:"Objc",v:o}};L.R2.N7=function(s,m){var l=L.R2.YX(s),x=s[2]-s[0],a=s[3]-s[1],P=Math.sqrt(x*x+a*a),o=[0,0,P,0,P,m,0,m],G=new ae;
G.rotate(-l);G.translate(s[0],s[1]);L.H.A(o,G,o);return o};L.R2.Ai=function(s,m,l,x,a){var P=L.R2.dV(),o=P.v,G;
delete o.keyShapeInvalidated;o.keyOriginType={t:"long",v:s};o.keyOriginResolution={t:"doub",v:75};if(s==4){o.keyOriginLineStart={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:x[0]},Vrtc:{t:"doub",v:x[1]}}};
o.keyOriginLineEnd={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:x[2]},Vrtc:{t:"doub",v:x[3]}}};G=L.R2.N7(x,a);
var _=L.H.ge(G);m=[_.x,_.y,_.x+_.e,_.y+_.l];o.keyOriginLineWeight={t:"doub",v:a},o.keyOriginLineArrowSt={t:"bool",v:!1};
o.keyOriginLineArrowEnd={t:"bool",v:!1};o.keyOriginLineArrWdth={t:"doub",v:0};o.keyOriginLineArrLngth={t:"doub",v:0};
o.keyOriginLineArrConc={t:"long",v:0}}else G=[m[0],m[1],m[2],m[1],m[2],m[3],m[0],m[3]];o.keyOriginBoxCorners={t:"Objc",v:{classID:"null"}};
L.R2.Sa(o,"keyOriginBoxCorners",G);var j={classID:"unitRect",unitValueQuadVersion:{t:"long",v:1}};o.keyOriginShapeBBox={t:"Objc",v:j};
L.R2.gb(o,m);if(l!=null){var U={classID:"radii",unitValueQuadVersion:{t:"long",v:1}};o.keyOriginRRectRadii={t:"Objc",v:U};
L.R2.OA(o,l)}return P};L.R2.A=function(s,m,l,x){var a=L.V.XZ(m),P=L.V.A0(m);for(var C=0;C<s.length;C++){var o=s[C].v;
if(!L.R2.mz(o))continue;if(l.length!=0&&l.indexOf(C)==-1)continue;var G=o.keyOriginType.v,_=["keyOriginPolyTrueRectCorners","keyOriginBoxCorners"];
for(var j=0;j<_.length;j++){var U=L.R2.Wz(o,_[j]);if(U==null)continue;L.V.A(m,U);L.R2.Sa(o,_[j],U);var S=L.H.ge(U);
L.R2.gb(o,[S.x,S.y,S.x+S.e,S.y+S.l]);var X=new ae;X.rotate(-L.R2.YX(U));var c={classID:"Trnf"};o.Trnf={t:"Objc",v:c};
var y="xx xy yx yy tx ty".split(" "),O=[X.lz,X.S,X.In,X.Am,X.sI,X.bW];for(var p=0;p<6;p++)c[y[p]]={t:"doub",v:O[p]}}var U=L.R2.Wz(o,"keyOriginBoxCorners"),D=U[2]-U[0],f=U[3]-U[1],T=Math.sqrt(D*D+f*f);
D/=T;f/=T;var I=U[6]-U[0],H=U[7]-U[1],b=Math.sqrt(I*I+H*H);I/=b;H/=b;if(G==4){o.keyOriginLineWeight.v=b;
var R=L.R2.Nm(o);L.V.A(m,R);L.R2.adP(o,R)}var W=D*I+f*H;if(Math.abs(W)>.001){L.R2.NN(s,C)}}};L.R2.mz=function(s){var m=s.keyShapeInvalidated,l=s.keyOriginType;
return(m==null||!m.v)&&l!=null&&l.v!=9};L.R2.a0g=function(s){var m=s.keyOriginType.v,l=L.R2.yE(s),x=l[0],a=l[1],P=l[2],o=l[3],G=new ae,_=s.keyOriginPolyCornerRadius,c;
_=_?_.v:0;var j=L.R2.Wz(s,m==7||m==8?"keyOriginPolyTrueRectCorners":"keyOriginBoxCorners"),U=L.R2.R6(j),S=U[2],X=U[3];
x=-S/2;P=S/2;a=-X/2;o=X/2;G.rotate(-L.R2.YX(j));G.sI=U[0];G.bW=U[1];if(m==1||m==2){var y=m==1?0:L.R2.VZ(s);
c=L.j.sh.Rect(x,a,P-x,o-a,y)}else if(m==4){var O=L.R2.Nm(s);G=new ae;c=L.j.sh.bn(O[0],O[1],O[2],O[3],s.keyOriginLineWeight.v)}else if(m==5){c=L.j.sh.$d(x,a,P-x,o-a)}else if(m==7||m==8){var p=m==7?3:s.keyOriginPolySides.v;
c=L.j.sh.T_(0,0,100,Math.PI/p-Math.PI/2,p,_,P,o)}L.j.G9(c,G);return c};L.R2.x3=function(s,m){var l=m.T;
for(var C=0;C<s.length;C++){var x=s[C].v;if(!L.R2.mz(x))continue;var a=L.R2.a0g(x),P=L.j.Po(l,C),o=L.j.D5(l,C);
a[2].aZ=l[P].aZ;var G=l;l=l.slice(0,P);for(var _=2;_<a.length;_++)l.push(a[_]);for(var _=P+o;_<G.length;
_++)l.push(G[_])}m.T=l;m.A$=!0};L.R2.CX=function(s){var m=1e9,l=-m,x=1e9,a=-x,P=[],o=s.S4(),G=o[0],_=o[1];
for(var j=0;j<_.length;j++){var U=G[_[j]],S=U.add.vogk;if(S==null)continue;var X=U.add.vmsk.N;for(var c=0;
c<S.length;c++){var y=S[c].v,D=0;if(!L.R2.mz(y))continue;if(_.length==1&&X.length!=0&&X.indexOf(c)==-1)continue;
var O=y.keyOriginType.v;if(O==9)continue;var p=L.R2.yE(y);m=Math.min(m,p[0]);x=Math.min(x,p[1]);l=Math.max(l,p[2]);
a=Math.max(a,p[3]);var f=L.R2.Wz(y,"keyOriginBoxCorners");if(f){var T=L.R2.R6(f),I=T[2],H=T[3];p[2]=p[0]+I;
p[3]=p[1]+H;D=L.R2.YX(f)}var b=[O,p,D];P.push(b);if(O==2)b.push(L.R2.VZ(y));if(O==7||O==8)b.push(y.keyOriginPolyCornerRadius.v);
if(O==8)b.push(y.keyOriginPolySides.v)}}return P.length==1?P[0]:[0,m<l?[m,x,l,a]:null,0]};L.R2.YX=function(s){var m=s[2]-s[0],l=s[3]-s[1];
return-Math.atan2(-l,m)};L.R2.akv=function(s,m){var l=L.R2.CX(s),x=-1;for(var C=0;C<m.length;C++)if(JSON.stringify(m[C])!=JSON.stringify(l[C]))x=C;
if(x==1||x==2){}var a=s.S4(),P=a[0],o=a[1];for(var G=0;G<o.length;G++){var _=P[o[G]],j=_.add.vogk;if(j==null)continue;
var U=_.add.vmsk.N;for(var S=0;S<j.length;S++){var X=j[S].v;if(!L.R2.mz(X))continue;if(o.length==1&&U.length!=0&&U.indexOf(S)==-1)continue;
var c=X.keyOriginType.v;if(x==1||x==2){L.R2.A(j,L.R2.amG(x,X,l,m),U,!1);break}if(x==3)if(c==2)L.R2.OA(X,m[3]);
else X.keyOriginPolyCornerRadius.v=m[3];if(x==4)X.keyOriginPolySides.v=m[4]}}};L.R2.amG=function(s,m,l,x){var a=x[1],P=l[1],o=(a[2]-a[0])/(P[2]-P[0]),G=(a[3]-a[1])/(P[3]-P[1]),_=new ae;
if(s==1){if(Math.max(Math.abs(o-1),Math.abs(G-1))>1e-8){var j=a[0],U=a[1];if(x[0]!=0){var S=L.R2.Wz(m,"keyOriginBoxCorners");
j=S[0];U=S[1]}_.translate(-j,-U);_.rotate(x[2]);_.scale(o,G);_.rotate(-x[2]);_.translate(j,U)}else{_.translate(-P[0],-P[1]);
_.translate(a[0],a[1])}}else{if(x[0]!=0)a=L.R2.yE(m);var j=(a[0]+a[2])/2,U=(a[1]+a[3])/2;_.translate(-j,-U);
if(l[0]!=0)_.rotate(l[2]);_.rotate(-x[2]);_.translate(j,U)}return L.V.$D(_)};L.R2.R6=function(s){var m=s[0],l=s[1],x=s[2],a=s[3],P=s[4],o=s[5],G=s[6],_=s[7],j=x-m,U=a-l,S=Math.sqrt(j*j+U*U),j=P-x,U=o-a,X=Math.sqrt(j*j+U*U);
return[(m+P)/2,(l+o)/2,S,X]};L.R2.Wz=function(s,m){var l=s[m];if(l==null)return null;var x=[];l=l.v;
for(var a=0;a<4;a++){var P=l["rectangleCorner"+["A","B","C","D"][a]].v;x.push(P.Hrzn.v,P.Vrtc.v)}return x};
L.R2.Sa=function(s,m,l){var x=s[m];if(x==null)return null;x=x.v;for(var a=0;a<4;a++){var P="rectangleCorner"+["A","B","C","D"][a];
x[P]={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:l[2*a]},Vrtc:{t:"doub",v:l[2*a+1]}}}}};L.R2.yE=function(s){return L.R2.K4(s.keyOriginShapeBBox.v)};
L.R2.K4=function(s){var m=s.classID,l=s.Left.v,x=s.Rght.v,a=s.Top.v,P=s.Btom.v;if(m=="unitRect"||m=="radii"||m=="Rctn"){l=l.val;
x=x.val;a=a.val;P=P.val}return[l,a,x,P]};L.R2.gb=function(s,m){L.R2.CG(s.keyOriginShapeBBox.v,["Left","Top","Rght","Btom"],m)};
L.R2.VZ=function(s){return L.R2.Ib(s.keyOriginRRectRadii.v)};L.R2.Ib=function(s){var m=[],l=["topLeft","topRight","bottomRight","bottomLeft"];
for(var x=0;x<4;x++)m.push(s[l[x]].v.val);return m};L.R2.OA=function(s,m){L.R2.CG(s.keyOriginRRectRadii.v,["topLeft","topRight","bottomRight","bottomLeft"],m)};
L.R2.CG=function(s,m,l){var x=s.classID;if(x=="unitRect"||x=="radii"||x=="Rctn"){for(var C=0;C<4;C++)if(l[C]!=null)s[m[C]]={t:"UntF",v:{type:"#Pxl",val:l[C]}}}else{for(var C=0;
C<4;C++)if(l[C]!=null)s[m[C]]={t:"doub",v:l[C]}}};L.R2.Nm=function(s){var m=s.keyOriginLineStart.v,l=s.keyOriginLineEnd.v;
return[m.Hrzn.v,m.Vrtc.v,l.Hrzn.v,l.Vrtc.v]};L.R2.adP=function(s,m){var l=s.keyOriginLineStart.v,x=s.keyOriginLineEnd.v;
l.Hrzn.v=m[0];l.Vrtc.v=m[1];x.Hrzn.v=m[2];x.Vrtc.v=m[3]};L.H={};L.H.clone=function(s){return{r:s.r.slice(0),s:s.s.slice(0)}};
L.H.k6=function(s){if(s.length<6)return!0;var m=s.length-4;for(var C=0;C<m;C+=2)if(!L.H.Xu(s[C],s[C+1],s[C+2],s[C+3],s[C+4],s[C+5]))return!1;
if(!L.H.Xu(s[m],s[m+1],s[m+2],s[m+3],s[0],s[1]))return!1;if(!L.H.Xu(s[m+2],s[m+3],s[0],s[1],s[2],s[3]))return!1;
return!0};L.H.Xu=function(s,m,l,x,a,P){return(m-x)*(a-l)+(l-s)*(P-x)>=0};L.H.FP=function(s){var m={},l=null,x=0,a={M:2,L:2,Q:4,C:6};
for(var C=0;C<s.r.length;C++){var P=s.r[C];if(P.charAt(0)=="#"){if(m[P]==null)m[P]={s:[],r:[]};l=m[P]}else if(P!="X"){l.r.push(P);
var o=a[P];if(o==null)o=0;for(var G=0;G<o;G++)l.s.push(s.s[x+G]);x+=o}}return m};L.H.vP=function(s,m,l){s=L.H.An(s);
var x=s.s,a=s.r,P=0,o=[],G=null;for(var C=0;C<a.length;C++){var _=a[C];if(_=="M"){G={HX:P,xD:0,rg:!1};
o.push(G);P+=2}if(_=="C"){G.xD++;P+=6}if(_=="Z"&&G!=null){G.rg=!0}}var j=[];for(var C=0;C<o.length;C++)if(o[C].xD!=0)j.push(o[C]);
o=j;for(var C=0;C<o.length;C++){var U=o[C],S=U.HX,X=S+2+U.xD*6,y=0;U.Fd=L.H.ge(x,S,X);var c=x[S]==x[X-2]&&x[S+1]==x[X-1];
for(var O=0;O<U.xD;O++){var p=S+O*6,D=p+6;y+=(x[D]-x[p])*(x[D+1]+x[p+1])}if(U.xD==2){var f=function(h,F,N){var iQ=1-N;
return iQ*iQ*iQ*h[F]+3*iQ*iQ*N*h[F+2]+3*iQ*N*N*h[F+4]+N*N*N*h[F+6]},T=x[S],I=x[S+1],H=x[S+6],b=x[S+7],R=x[S+6],W=x[S+7],J=f(x,S,.5),u=f(x,S+1,.5),e=f(x,S+6,.5),Q=f(x,S+7,.5);
y=(J-T)*(u-I)+(H-J)*(b-u)+(e-H)*(Q-b)+(R-e)*(W-Q)}if(!c)y+=(x[S]-x[X-2])*(x[S+1]+x[X-1]);U.lG=y<=0}for(var C=0;
C<o.length-1;C++)for(var p=C+1;p<o.length;p++){var q=o[C],Z=o[p];if(Z.Fd.kq(q.Fd)){o[C]=Z;o[p]=q}}var E=o.length==0?!0:o[0].lG,z=[{type:6},{type:8,all:0}];
for(var C=0;C<o.length;C++){var U=o[C],S=U.HX,X=S+2+U.xD*6,c=x[S]==x[X-2]&&x[S+1]==x[X-1],V=U.rg||c?0:3,Y=U.lG==E&&!m?1:0;
if(!m&&C!=0){if(o[C-1].Fd.kq(U.Fd)&&o[C-1].lG!=U.lG)Y=0;for(var p=0;p<o.length;p++)if(p!=C&&o[p].Fd.kq(U.Fd))Y=0}z.push({type:V,length:U.xD+(c?0:1),aZ:l?1:Y,pe:2});
for(var p=0;p<U.xD;p++){var P=S+p*6,d=new fz(x[P],x[P+1]),w=new fz(x[P+2],x[P+3]),A;if(p==0){if(c)A=new fz(x[X-4],x[X-3]);
else A=d.clone()}else A=new fz(x[P-2],x[P-1]);z.push({type:V+2,o3:A,R:d,Ux:w})}if(!c){var $=new fz(x[X-2],x[X-1]);
z.push({type:V+2,o3:new fz(x[X-4],x[X-3]),R:$,Ux:$.clone()})}}for(var p=0;p<z.length;p++){var i=z[p];
if(i.type>5||i.type==0||i.type==3)continue;var K=i.o3.yb(i.R)||i.Ux.yb(i.Ux);if(!K){var q=i.o3.x*(i.R.y-i.Ux.y)+i.R.x*(i.Ux.y-i.o3.y)+i.Ux.x*(i.o3.y-i.R.y);
if(Math.abs(q)<1e-6)K=!0}if(K)i.type--}return z};L.H.wl=function(s,m){var l=L.j.Y7(s),x=!1;for(var C=2;
C<s.length;C++){var a=s[C].aZ;if(a!=null){if(a==2||a==0||a==3)x=!0}}if((x||m)&&s.length<15e3&&l>1)s=L.j.CH(s);
var P=L.H.vt(s);return{sY:P,Im:x?1:0}};L.H.vt=function(){function s(x,a,P,o){if(!o&&x.Ux.yb(x.R)&&a.o3.yb(a.R)){P.s.push(a.R.x,a.R.y);
P.r.push("L")}else{P.s.push(x.Ux.x,x.Ux.y,a.o3.x,a.o3.y,a.R.x,a.R.y);P.r.push("C")}}function m(x,a,C,P,o,G){var _=a[C];
x.s.push(_.R.x,_.R.y);x.r.push("M");for(var j=C;j<C+P-1;j++)s(a[j],a[j+1],x,G);if(!o)s(a[j],a[C],x,G)}function l(x,a){if(a==null)a=!1;
var P={s:[],r:[]};for(var C=0;C<x.length;C++){if(x[C].type>5)continue;var o=x[C].length;if(o==0)continue;
if(C==x.length-1)break;var G=x[C].type==3;m(P,x,C+1,o,G,a);if(!G)P.r.push("Z");C+=o}return P}return l}();
L.H.a4n=function(s){var m=s.s,l=[],x,a=0;for(var C=0;C<s.r.length;C++){var P=s.r[C];if(P=="C"){x.push(m[a++],m[a++],m[a++],m[a++],m[a++],m[a++])}else if(P=="Z"){}else{x=[];
if(P!="M"){x.push(P);C++}x.push(m[a++],m[a++]);l.push(x)}}return l};L.H.Zc=function(s,m,l,x){if(x==null)x=1e9;
var a=1e9,P=0;for(var C=0;C<s.length;C+=2){var o=m-s[C],G=l-s[C+1],_=o*o+G*G;if(_<a){a=_;P=C>>>1}}return a<x*x?P:-1};
L.H.Wm=function(s,m,l,x){for(var C=0;C<s.length;C+=2){var a=s[C],P=s[C+1],o=m[C],G=m[C+1];l[C]=a+(o-a)*x;
l[C+1]=P+(G-P)*x}};L.H.A=function(s,m,l){for(var C=0;C<s.length;C+=2){var x=s[C],a=s[C+1];l[C]=x*m.lz+a*m.In+m.sI;
l[C+1]=x*m.S+a*m.Am+m.bW}};L.H.ge=function(s,m,l){if(m==null)m=0;if(l==null)l=s.length;var x=99999999999,a=-x,P=99999999999,o=-P;
for(var C=m;C<l;C+=2){var G=s[C],_=s[C+1];x=Math.min(x,G);P=Math.min(P,_);a=Math.max(a,G);o=Math.max(o,_)}return new bU(x,P,a-x,o-P)};
L.H.r1=function(s,m){var l=Math.max(m.x,Math.min(m.x+m.e,s.x)),x=Math.max(m.y,Math.min(m.y+m.l,s.y)),a=s.x-l,P=s.y-x;
return Math.sqrt(a*a+P*P)};L.H.LU=function(s){if(s.Xh())return new bU(Math.floor(s.x),Math.floor(s.y),Math.ceil(s.e),Math.ceil(s.l));
var m=Math.floor(s.x),l=Math.ceil(s.x+s.e),x=Math.floor(s.y),a=Math.ceil(s.y+s.l);return new bU(m,x,l-m,a-x)};
L.H.QS=function(s){return L.H.LU(L.H.ge(s))};L.H.$$=function(s){var m=s.x,l=s.y,x=s.x+s.e,a=s.y+s.l;
return{r:["M","L","L","L","Z"],s:[m,l,x,l,x,a,m,a]}};L.H.concat=function(s,m,l){if(l==null)l=new ae;
for(var C=0;C<m.s.length;C+=2){var x=m.s[C],a=m.s[C+1];s.s.push(x*l.lz+a*l.In+l.sI);s.s.push(x*l.S+a*l.Am+l.bW)}for(var C=0;
C<m.r.length;C++)s.r.push(m.r[C])};L.H.An=function(s){var m=s.s,l=[],x=[],a=0,P=0,o=0,G=0,_=0,j=0,U=0,S=0,X=0;
for(var C=0;C<s.r.length;C++){var c=s.r[C];if(c=="M"){P=m[a];o=m[a+1];a+=2;x.push(c);l.push(P,o)}else if(c=="C"){G=m[a];
_=m[a+1];j=m[a+2];U=m[a+3];S=m[a+4];X=m[a+5];a+=6;x.push(c);l.push(G,_,j,U,S,X);P=S;o=X}else if(c=="Q"){G=m[a];
_=m[a+1];j=m[a+2];U=m[a+3];a+=4;var y=G-P,O=_-o,p=j-G,D=U-_;x.push("C");l.push(P+2/3*y,o+2/3*O,G+1/3*p,_+1/3*D,j,U);
P=j;o=U}else if(c=="L"){G=m[a];_=m[a+1];a+=2;var f=G-P,T=_-o;x.push("C");l.push(P,o,G,_,G,_);P=G;o=_}else x.push(c)}return{r:x,s:l}};
L.H.aco=function(s){var m=s.s,l=[],x=[],a=0;for(var C=0;C<s.r.length;C++){var P=s.r[C];if(P=="Q"){var o=m[a-2],G=m[a-1],_=m[a],j=m[a+1],U=m[a+2],S=m[a+3];
a+=4;var X=_-o,c=j-G,y=U-_,O=S-j;x.push("C");l.push(o+2/3*X,G+2/3*c,_+1/3*y,j+1/3*O,U,S)}else{var p=0;
if(P=="M"||P=="L")p=2;else if(P=="C")p=6;for(var D=0;D<p;D++)l.push(m[a+D]);a+=p;x.push(P)}}return{r:x,s:l}};
L.H.PC=function(s,m){var l=s.s,x=[],a=[],P=0,o=0,G=0,_=0,j=0,U=0,S=0,X=0,c=0;for(var C=0;C<s.r.length;
C++){var y=s.r[C];if(y=="M"){o=l[P];G=l[P+1];P+=2;a.push(y);x.push(o,G)}else if(y=="C"){_=l[P];j=l[P+1];
U=l[P+2];S=l[P+3];X=l[P+4];c=l[P+5];P+=6;L.H.rZ(o,G,_,j,U,S,X,c,m,a,x,0);o=X;G=c}else a.push(y)}return{r:a,s:x}};
L.H.rZ=function(s,m,l,x,a,P,o,G,_,j,U,S){var X=Math.sqrt((o-s)*(o-s)+(G-m)*(G-m)),c=Math.sqrt((o-a)*(o-a)+(G-P)*(G-P))+Math.sqrt((a-l)*(a-l)+(P-x)*(P-x))+Math.sqrt((l-s)*(l-s)+(x-m)*(x-m)),y=(X+c)/2;
if(y<=_){j.push("C");U.push(l,x,a,P,o,G)}else{var O=0,p=0,D=0,f=0,T=0,I=0,H=0,b=0,R=0,W=0,J=0,u=0,e=0;
p=(s+l)/2;D=(m+x)/2;f=(l+a)/2;T=(x+P)/2;I=(a+o)/2;H=(P+G)/2;b=(p+f)/2;R=(D+T)/2;W=(f+I)/2;J=(T+H)/2;
u=(b+W)/2;e=(R+J)/2;L.H.rZ(s,m,p,D,b,R,u,e,_,j,U,S+1);L.H.rZ(u,e,W,J,I,H,o,G,_,j,U,S+1)}};L.H.Zo=function(s,m,l,x,a){var P=Date.now(),o=L.H.alU(s,m,l);
if(a){console.log("trace polygons",Date.now()-P);P=Date.now()}var G=[];for(var C=0;C<o.length;C++){var _=o[C],j=_[0],U=["M"],S=s[j[1]*m+j[0]];
if(j.length>8)j=L.H.nv(j,x,_[1]);if(j.length<=4)continue;for(var X=2;X<j.length;X+=2)U.push("L");U.push("Z");
G.push({path:{s:j,r:U},color:S,parent:-1,Fd:L.H.ge(j)})}if(a){console.log("simplify polygons",Date.now()-P);
P=Date.now()}for(var C=1;C<G.length;C++){var c=G[C].Fd;for(var X=C-1;X>=0;X--)if(G[X].Fd.kq(c)){G[C].parent=X;
break}}if(a){console.log("checking parents",Date.now()-P);P=Date.now()}return G};L.H.alU=function(s,m,l){var x=m*l,a=new Uint16Array(m*l),o=0;
for(var C=0;C<x;C++)a[C]=s[C];var P=new Uint8Array(m*l);P[1*m+1]=P[(l-1)*m+1]=P[1*m+m-1]=P[(l-1)*m+m-1]=1;
for(var G=1;G<l;G++)for(var _=1;_<m;_++){var C=G*m+_,j=a[C-m-1],U=a[C-m],S=a[C-1],X=a[C],c=j==X&&U==S&&j!=U,y=0;
if(X<S){o=X;X=S;S=o}if(S<U){o=S;S=U;U=o}if(U<j){o=U;U=j;j=o}if(X<S){o=X;X=S;S=o}if(S<U){o=S;S=U;U=o}if(X<S){o=X;
X=S;S=o}if(j!=U)y++;if(U!=S)y++;if(S!=X)y++;if(X!=j)y++;if(y>=3||c)P[C]=1}var O=[];for(var G=1;G<l;G++)for(var _=1;
_<m;_++){var C=G*m+_;if(a[C]!=a[C-1]){var p=L.H.ank(a,m,l,_,G),D=[];for(var f=0;f<p.length;f+=2)if(P[p[f+1]*m+p[f]]==1)D.push(f>>>1);
O.push([p,D]);L.H.EI(a,m,l,_,G)}}return O};L.H.EI=function(s,m,l,x,a){var P=[a*m+x],o=s[a*m+x];s[a*m+x]=65535;
while(P.length!=0){var C=P.pop();s[C]=0;if(s[C+m]==o){P.push(C+m);s[C+m]=65535}if(s[C-m]==o){P.push(C-m);
s[C-m]=65535}if(s[C-1]==o){P.push(C-1);s[C-1]=65535}if(s[C+1]==o){P.push(C+1);s[C+1]=65535}}};L.H.ank=function(s,m,l,x,a){var P=[0,-1,1,0,0,1,-1,0],U=1;
function o(X,c,U){var C=j*m+_,y=0;if(U==0)y=C-m;else if(U==1)y=C;else if(U==2)y=C-1;else if(U==3)y=C-m-1;
return s[y]}var G=[],_=x,j=a,S=o(_,j,U);do{G.push(_,j);_+=P[U*2];j+=P[U*2+1];if(o(_,j,U)!=S)U=U+1&3;
else if(o(_,j,U+3&3)!=S)U=U;else if(o(_,j,U+2&3)!=S)U=U+3&3}while(_!=x||j!=a);return G};L.H.nv=function(s,m,l){var x=s.length-2;
if(l&&l.length!=0){var a=l[0]*2,P=l[l.length-1]*2,o=a==0?x:a-2,G=s.slice(P);for(var C=0;C<a;C++)G.push(s[C]);
if(a==P)G.push(.9*s[a]+.1*s[o],.9*s[a+1]+.1*s[o+1]);else G.push(s[a],s[a+1]);G=L.H.Wb(G,m);G.pop();G.pop();
for(var C=0;C<l.length-1;C++){var _=s.slice(l[C]*2,l[C+1]*2+2);_=L.H.Wb(_,m);for(var j=0;j<_.length-2;
j++)G.push(_[j])}return G}var U=s.slice(0);U.push(.9*s[0]+.1*s[x],.9*s[1]+.1*s[x+1]);U=L.H.Wb(U,m);U.pop();
U.pop();return U};L.H.Wb=function(s,m){var l=s.length-2,x=s[0],a=s[1],P=s[l],o=s[l+1],G=P-x,_=o-a,j=1/Math.sqrt(G*G+_*_),U=P*a-o*x,S=-1,X=-1,c=0;
for(var C=2;C<l;C+=2){var y=s[C],O=s[C+1],p=O*O*1e6+y*y,D=Math.abs(_*y-G*O+U)*j;if(D>X||D==X&&p>c){X=D;
S=C;c=p}}if(X<m)return[x,a,P,o];var f=L.H.Wb(s.slice(0,S+2),m),T=L.H.Wb(s.slice(S),m);for(var C=2;C<T.length;
C++)f.push(T[C]);return f};L.H.a30=function(){var s=function(x,a,P,o,G,_){return(a-o)*(G-P)+(P-x)*(_-o)>=0},m=function(x,a,P,o,G,_,j,U){var S=j-P,X=U-o,c=G-P,y=_-o,O=x-P,p=a-o,D=S*S+X*X,f=S*c+X*y,T=S*O+X*p,I=c*c+y*y,H=c*O+y*p,b=1/(D*I-f*f),R=(I*T-f*H)*b,W=(D*H-f*T)*b;
return R>=0&&W>=0&&R+W<1},l=function(x){var cE=x.length>>>1,C=0;if(cE<3)return[];var a=[],P=[];for(var C=0;
C<cE;C++)P.push(C);var o=cE;while(o>3){var G=P[(C+0)%o],_=P[(C+1)%o],j=P[(C+2)%o],U=x[2*G],S=x[2*G+1],X=x[2*_],c=x[2*_+1],y=x[2*j],O=x[2*j+1],p=!1;
if(s(U,S,X,c,y,O)){p=!0;for(var D=0;D<o;D++){var f=P[D];if(f==G||f==_||f==j)continue;if(m(x[2*f],x[2*f+1],U,S,X,c,y,O)){p=!1;
break}}}if(p){a.push(G,_,j);P.splice((C+1)%o,1);o--;C=0}else if(C++>3*o)break}a.push(P[0],P[1],P[2]);
return a};return l}();L.H.an0=function(s,m){var l={},x={r:[],s:[]};for(var C=0;C<m.length;C+=3){var a=m[C]*2,P=m[C+1]*2,o=m[C+2]*2;
L.H.rX(s,a,P,x,l);L.H.rX(s,a,o,x,l);L.H.rX(s,P,o,x,l)}return x};L.H.rX=function(s,m,l,x,a){if(m>l){var P=l;
l=m;m=P}if(a[m+","+l])return;a[m+","+l]=!0;x.r.push("M","L");x.s.push(s[m],s[m+1],s[l],s[l+1])};L.H.rN=function(s,m){var l=[],x=s.length;
for(var C=0;C<x;C+=2){var a=s[C],P=s[C+1],o=s[(C+2)%x],G=s[(C+3)%x];if(G<P){var _=P;P=G;G=_}if(P<m&&m<G){var j=(m-P)/(G-P);
l.push(a+j*(o-a))}}l.sort(function(U,S){return U-S});return l};L.H.rA=function(s,m,l,x,a,P,o){var G=s-l,_=m-x,j=a-l,U=P-x,S=1/Math.sqrt(G*G+_*_),X=1/Math.sqrt(j*j+U*U),c=G*S,y=_*S,O=j*X,p=U*X,D=y*o,f=-c*o,T=-p*o,I=O*o,H=L.H.I$(D,f,c,y,T,I,O,p),b=D+c*H,R=f+y*H,H=L.H.I$(0,0,c,y,b,R,-y,c),W=c*H,J=y*H;
return[Math.sqrt(W*W+J*J),c,y,O,p]};L.H.TC=function(s,m,l,x,a,P,o){var G=L.H.rA(s,m,l,x,a,P,o),_=G[0],j=G[1],U=G[2],S=G[3],X=G[4],c=Math.atan2(j*X-U*S,j*S+U*X);
if(c<0){c=c*-1}var y=Math.PI-c,O=4/3*Math.tan(y/4),p=l+_*j,D=x+_*U,f=l+_*S,T=x+_*X,I=p+O*o*-j,H=D+O*o*-U,b=f+O*o*-S,R=T+O*o*-X;
return[0,0,p,D,I,H,b,R,f,T]};L.H.I$=function(s,m,l,x,a,P,o,G){var _=o*(m-P)-G*(s-a),j=G*l-o*x;if(j==0)return 0;
return _/j};L.H.TC(0,50,0,0,30,30,10);L.SO=function(){};L.SO.n6=function(s,m,l,x,a){var P=l.e,o=l.l,G=P*o,_=new Int32Array(G),cE=0;
for(var C=0;C<G;C++)if(m[C]!=0){_[C]=cE;cE++}else if(s[(C<<2)+3]<200){_[C]=-2}else _[C]=-1;if(cE==0)return;
var j=new L.Kx(cE,cE),U=new Array(3*cE),S=new Array(3*cE);for(var C=0;C<S.length;C++)S[C]=U[C]=0;var X=1/255,c=[-P,-1,1,P],y=[],O=[];
for(var p=0;p<o;p++)for(var D=0;D<P;D++){var f=p*P+D,T=f<<2,C=_[f],I=C*3,H=0,b=0,R=0;if(C==-1||C==-2)continue;
for(var W=0;W<4;W++){if(W==2){b=R;y[R]=0;O[R]=C;R++}var J=f+c[W],u=J<<2,e=_[J];if(W==0&&p==0||W==1&&D==0||W==2&&D==P-1||W==3&&p==o-1||e==-2)continue;
H++;if(e==-1){U[I+0]+=s[u+0];U[I+1]+=s[u+1];U[I+2]+=s[u+2]}else{y[R]=-1;O[R]=e;R++;if(m[f]==m[J]){U[I+0]+=s[T+0]-s[u+0];
U[I+1]+=s[T+1]-s[u+1];U[I+2]+=s[T+2]-s[u+2]}}}y[b]=H;j.s_(y,O,R)}for(var C=0;C<G;C++)if(_[C]!=-1){var Q=C<<2,q=_[C],Z=q*3;
S[Z]=s[Q+0];S[Z+1]=s[Q+1];S[Z+2]=s[Q+2]}var E=Date.now();j.aqS(S,U,x,a);console.log(Date.now()-E);for(var C=0;
C<G;C++){var q=_[C],z=q*3,Q=C<<2;if(q==-1||s[Q+3]!=255)continue;s[Q+0]=~~(.5+Math.max(0,Math.min(255,S[z+0])));
s[Q+1]=~~(.5+Math.max(0,Math.min(255,S[z+1])));s[Q+2]=~~(.5+Math.max(0,Math.min(255,S[z+2])))}};L.rect={};
L.rect.Xy=function(s,m){var l=[s],x=[];for(var C=0;C<m.length;C++){var a=m[C],P=!1;for(var o=C+1;o<m.length;
o++){var G=m[o];if(G[0]<=a[0]&&G[1]<=a[1]&&a[2]<=G[2]&&a[3]<=G[3]){P=!0;break}}if(!P)x.push(a)}m=x;for(var C=0;
C<m.length;C++){var a=m[C];for(var o=0;o<l.length;o++){var G=l[o],_=Math.max(a[0],G[0]),j=Math.min(a[2],G[2]),U=Math.max(a[1],G[1]),S=Math.min(a[3],G[3]);
if(_<j&&U<S){var X=[];if(G[1]<a[1]){var c=G.slice(0);c[3]=a[1];X.push(c)}if(G[0]<a[0]){var y=G.slice(0);
y[1]=U;y[2]=a[0];X.push(y)}if(a[2]<G[2]){var O=G.slice(0);O[1]=U;O[0]=a[2];X.push(O)}if(a[3]<G[3]){var p=[_,S,j,G[3]];
X.push(p)}if(X.length!=0){l[o]=X[0];for(var D=1;D<X.length;D++)l.push(X[D])}}}l.push(a);l=L.rect.ahU(l)}l.sort(function(a,G){return a[1]!=G[1]?a[1]-G[1]:a[0]-G[0]});
for(var C=1;C<l.length;C++){var a=l[C-1],G=l[C];if(a[0]==G[0]&&a[1]==G[1]&&a[2]==G[2]&&a[3]==G[3]){l.splice(a[4]==null?C-1:C,1);
C--}}return l};L.rect.ahU=function(s){s=s.slice(0);for(var C=0;C<s.length;C++){var m=s[C],l=null;if(m[4]!=null)continue;
for(var x=0;x<s.length;x++){var a=s[x];if(C==x||a[4]!=null)continue;var P=m[0]==a[0],o=m[1]==a[1],G=m[2]==a[2],_=m[3]==a[3];
if(o&&_&&(m[2]==a[0]||m[0]==a[2])){l=[Math.min(m[0],a[0]),m[1],Math.max(m[2],a[2]),m[3]]}if(P&&G&&(m[3]==a[1]||m[1]==a[3])){l=[m[0],Math.min(m[1],a[1]),m[2],Math.max(m[3],a[3])]}if(l){s[C]=l;
s.splice(x,1);break}}if(l){C--}}return s};L.rect.EV=function(s){var m=new bU;for(var C=0;C<s.length;
C++)m=m.if(s[C]);return m};L.rect.alW=function(s,m){var l=L.rect.EV,x=new UnionFind(s.length),b=1e3,R=1e3;
for(var C=0;C<s.length;C++)for(var a=C+1;a<s.length;a++){if(!m)continue;var P=s[C],o=s[a],S=1e9,X=1e9;
if(P.Hx(o)){x.link(C,a);continue}var G=P.x+P.e,_=P.y+P.l,j=o.x+o.e,U=o.y+o.l;if((G<o.x||j<P.x)&&(_<o.y||U<P.y))continue;
if(!(_<o.y||U<P.y))S=Math.min(Math.abs(G-o.x),Math.abs(P.x-j));if(!(G<o.x||j<P.x))X=Math.min(Math.abs(_-o.y),Math.abs(P.y-U));
var c=Math.min(S,X),y=Math.min(P.e,P.l,o.e,o.l);if(c<.3*y)x.link(C,a)}var O=[],p={};for(var C=0;C<s.length;
C++){var D=x.find(C),f=s[C];if(p[D]==null){p[D]=O.length;O.push([])}O[p[D]].push(f)}var T=[],I=[];for(var C=0;
C<O.length;C++){T.push(l(O[C]));var H=l(O[C]);H.AD=C;I.push(H)}I.sort(function(V,Y){return Math.max(Y.l,Y.e)-Math.max(V.l,V.e)});
var W=new NETXUS.RectanglePacker(b,R);while(!0){var J=!1;W.reset(b,R);for(var C=0;C<I.length;C++){var u=W.findCoords(I[C].e,I[C].l);
if(u){I[C].x=u.x;I[C].y=u.y}else{b=Math.floor(b*1.1);R=Math.floor(R*1.1);J=!0;break}}if(J)continue;break}for(var C=0;
C<O.length;C++){var e=I[C],Q=e.AD,q=T[Q],Z=O[Q],E=e.x-q.x,z=e.y-q.y;for(var a=0;a<Z.length;a++)Z[a].offset(E,z)}};
L.pE=function(){};L.pE.Xb=Math.floor(16*window.devicePixelRatio);L.pE.IT={};L.pE.Ks=0;L.pE.Mx=[[12,76,2],[12,76,3],[12,76,4],[12,76,5],[12,76,6]];
L.pE.aez=["px","in","cm","mm","%"];L.pE.Hc=function(s,m,l,x){var a=[1,m,m/2.54,m/25.4,l/100][x];return s*a};
L.pE.amr=function(s,m,l,x){var a=[1,m,m/2.54,m/25.4,l/100][x];return s/a};L.pE.YC=function(s,m,l,x,a){var P=l.HD.jq,o=[1,m,m/2.54,m/25.4,x/100][P],G=[2,3,2,1,2][P];
s=s/o;var _=Math.round(s),j=P==0&&Math.abs(s-_)<1e-6?_+"":s.toFixed(G);if(a)j+=" "+L.pE.aez[P];return j};
L.pE.afC=function(s,m,l,x){var a=l.HD.jq,P=[1,m,m/2.54,m/25.4,x/100][a];s=parseFloat(s)*P;return s};
L.pE.a5s=function(s,m){var l=s+","+m;if(L.pE.IT.clr==l)return;var x=Math.round(L.pE.Xb*.5);L.pE.Ks=x;
var a=document.createElement("canvas");a.width=a.height=x;var P=a.getContext("2d");P.font=x*1.5+"px monospace";
var o="0 1 2 3 4 5 6 7 8 9 -".split(" ");for(var C=0;C<o.length;C++){P.fillStyle="#"+L.eZ(m);P.fillRect(0,0,x,x);
P.fillStyle="#"+L.eZ(s);P.fillText(o[C],0,x);L.pE.IT[o[C]]=P.getImageData(0,0,x,x).data}L.pE.IT.clr=l};
L.pE.aho=function(s,m,l){var x=0,a=0,P=4*L.pE.Xb;for(var C=9;C>=0;C--){var o=Math.pow(10,C);if(5*o*s<=P){x=5*o;
a=10;break}if(2*o*s<=P){x=2*o;a=4;break}if(1*o*s<=P){x=1*o;a=10;break}}if(x==0){x=1;a=10}var G=Math.ceil(x*s),_=L.B(G*L.pE.Xb*4);
L.MP(_,4278190080|l);for(var C=0;C<L.pE.Xb;C++)L.pE.qU(_,4*C*G,m);for(var C=0;C<G;C++)L.pE.qU(_,4*((L.pE.Xb-1)*G+C),m);
if(x==2)a=2;if(x==5)a=5;if(x>1||x==1&&G>20)for(var C=1;C<a;C++)L.pE.a6w(_,C*(G/a),G,(C&1)==1?.8:.7,m);
return{CI:_,step:x}};L.pE.a6w=function(s,m,l,x,a){var m=Math.round(m);for(var P=Math.round(L.pE.Xb*x);
P<L.pE.Xb-1;P++)L.pE.qU(s,4*(P*l+m),a)};L.pE.qU=function(s,m,l){s[m+0]=l>>16&255;s[m+1]=l>>8&255;s[m+2]=l&255};
L.pE.a3D=function(s,m,l,x,a,P,o){var G=s.tH.e,_=s.tH.l,j=L.pE.Xb,U=m&255,S=m>>8&255,X=m>>16&255;m=Math.round(U*.6)<<16|Math.round(S*.6)<<8|Math.round(X*.6);
L.pE.a5s(Math.round(U*.8)<<16|Math.round(S*.8)<<8|Math.round(X*.8),l);var c=s.O,y=s.X,O=s.xe;for(var p=0;
p<2;p++){var D=p==0?P:o;s.O=D[0];s.X=D[1];s.xe=0;var f=this.aho(s.O,m,l),T=s.cr(0,0),I=s.cr(G,_),H=Math.floor(T.x/f.step)*f.step,b=Math.ceil(I.x/f.step)*f.step,R=Math.floor(T.y/f.step)*f.step,W=Math.ceil(I.y/f.step)*f.step,J=s.fU(H,R),u=s.fU(b,R),e=f.step*s.O,Q=Math.ceil(e);
if(p==1){var q=f.CI;f.CI=L.B(q.length*4);L.V.mP(q,f.CI,Q,j)}var Z=p==0?s.xb.data:s.ex.data,E=new bU(0,0,[G,j][p],[j,_][p]),z=new bU(0,0,[Q,j][p],[j,Q][p]),V=new bU([0,Math.round(j*.2)][p],[Math.round(j*.08),0][p],L.pE.Ks,L.pE.Ks),Y=(p==0?b-H:W-R)/f.step;
for(var C=0;C<Y;C++){if(p==0)z.x=Math.round(J.x+C*e);else z.y=Math.round(J.y+C*e);L.yx(f.CI,z,Z,E,z);
var d=(p==0?H+C*f.step:Math.abs(R+C*f.step)).toString(10);for(var w=0;w<d.length;w++){if(p==0)V.x=z.x+3+w*Math.round(L.pE.Ks*.8);
else V.y=z.y+3+w*Math.round(L.pE.Ks*1.15);var A=L.pE.IT[d[w]];L.yx(A,V,Z,E,V)}}}s.O=c;s.X=y;s.xe=O;var $=Math.floor(j*.6),i=new Uint32Array(s.xb.data.buffer),K=new Uint32Array(s.ex.data.buffer),h=U<128?4278190080:4294967295;
if(0<x&&x<G)for(var C=0;C<$;C++)i[C*G+x]=h;if(0<a&&a<_)for(var C=0;C<$;C++)K[a*j+C]=h};L.scale={};L.scale.w=document.createElement("canvas");
L.scale.og=L.scale.w.getContext("2d");L.scale.dL=document.createElement("canvas");L.scale._8=L.scale.dL.getContext("2d");
L.scale.Op=function(s,m,l){var x=L.scale.w,a=L.scale.og;x.width=m;x.height=l;var P=new ImageData(new Uint8ClampedArray(s.buffer),m,l);
a.putImageData(P,0,0);return a.createPattern(x,"repeat")};L.scale.aP=function(s,m,l,x,a,P,o,G,_){var j=L.scale.a0F(s,l,x,a,P,o,G,_).data;
if(m)L.qv(j,m);return new Uint8Array(j.buffer)};L.scale.a0F=function(s,m,l,x,a,P,o,G){var _=L.scale.w,j=L.scale.og;
_.width=m;_.height=l;j.rect(0,0,m,l);j.translate(P,o);j.scale(x,a);if(G!=null)j.rotate(-G);j.fillStyle=s;
j.fill();return j.getImageData(0,0,m,l)};L.scale.A=function(s,m,l,x,a){var P=l.clone();P.ms();var o=a.e,G=a.l,_=L.H.$$(m).s;
L.H.A(_,P,_);var j=L.H.QS(_).pF(a),U=j.x,S=j.y,X=U+j.e,c=S+j.l,y=~~m.x,O=~~m.y,p=~~m.e,D=~~m.l;for(var f=S;
f<c;f++)for(var T=U;T<X;T++){var I=T+.5,H=f+.5,b=l.lz*I+l.In*H+l.sI-y,R=l.S*I+l.Am*H+l.bW-O;if(0<=b&&0<=R&&b<p&&R<D)x[f*o+T]=s[~~R*p+~~b]}};
L.scale.c1=function(s,m,l,x,a){var P=new Uint32Array(s.buffer),o=new Uint32Array(x.buffer),G=l.clone();
G.ms();var _=a.e,j=a.l,U=L.H.$$(m).s;L.H.A(U,G,U);var S=L.H.QS(U).pF(a),X=S.x,c=S.y,y=X+S.e,O=c+S.l,p=~~m.x,D=~~m.y,f=~~m.e,T=~~m.l;
for(var I=c;I<O;I++)for(var H=X;H<y;H++){var b=H+.5,R=I+.5,W=l.lz*b+l.In*R+l.sI-p,J=l.S*b+l.Am*R+l.bW-D;
if(0<=W&&0<=J&&W<f&&J<T)o[I*_+H]=P[~~J*f+~~W]}};L.scale.yK=function(s,m,l,x,a,P,o){if(o<1)L.scale.af2(s,m,l,x,a,P,Math.round(1/o));
else L.scale.a12(s,m,l,x,a,P,o)};L.scale.Kn=function(s,m,l,x,a,P,o,G){if(G)G=G.pF(new bU(0,0,m,l));s=new Uint32Array(s.buffer);
x=new Uint32Array(x.buffer);if(o<1)L.scale.a1M(s,m,l,x,a,P,Math.round(1/o),G);else L.scale.amS(s,m,l,x,a,P,o)};
L.scale.a12=function(s,m,l,x,a,P,o){for(var G=0;G<l;G++)for(var _=0;_<m;_++){var j=s[G*m+_],U=Math.min(o,a-_*o),S=Math.min(o,P-G*o);
for(var C=0;C<S;C++)for(var X=0;X<U;X++)x[(o*G+C)*a+o*_+X]=j}};L.scale.af2=function(s,m,l,x,a,P,o){for(var G=0;
G<P;G++)for(var _=0;_<a;_++){var j=0,U=Math.min(o,m-_*o),S=Math.min(o,l-G*o);for(var C=0;C<S;C++)for(var X=0;
X<U;X++)j+=s[(o*G+C)*m+(o*_+X)];x[G*a+_]=Math.round(j/(U*S))}};L.scale.amS=function(s,m,l,x,a,P,o){for(var G=0;
G<l;G++)for(var _=0;_<m;_++){var j=s[G*m+_],U=Math.min(o,a-_*o),S=Math.min(o,P-G*o);for(var C=0;C<S;
C++)for(var X=0;X<U;X++)x[(o*G+C)*a+o*_+X]=j}};L.scale.agG=function(s,m,l){return(s>>>l&255)+(m>>>l&255)>>>1};
L.scale.SJ=function(s,m){var l=L.scale.agG;return l(s,m,24)<<24|l(s,m,16)<<16|l(s,m,8)<<8|l(s,m,0)};
L.scale.aax=function(s,m,l,x,a,P){var o=new Uint32Array(s.buffer),G=new Uint32Array(x.buffer);for(var _=0;
_<l;_++){for(var j=0;j<m;j++){var U=_*m+j,S=o[U],X=S,c=S,y=S;if(j<m-1)X=L.scale.SJ(S,o[U+1]);if(_<l-1)c=L.scale.SJ(S,o[U+m]);
if(j<m-1&&_<l-1)y=L.scale.SJ(S,o[U+m+1]);var O=(_*a+j)*2;G[O]=S;G[O+1]=X;G[O+a]=c;G[O+a+1]=y}}if((a&1)==1)for(var _=0;
_<P;_++)G[_*a+a-1]=G[_*a+a-2];var p=a*(P-1);if((P&1)==1)for(var j=0;j<a;j++)G[p+j]=G[p-a+j]};L.scale.a1M=function(s,m,l,x,a,P,o,G){var _=0,j=a,U=0,S=P;
if(G){_=Math.floor(G.x/o);j=Math.ceil((G.x+G.e)/o);U=Math.floor(G.y/o);S=Math.ceil((G.y+G.l)/o)}for(var X=U;
X<S;X++)for(var c=_;c<j;c++){var y=0,O=0,p=0,D=0,f=Math.min(o,m-c*o),T=Math.min(o,l-X*o);for(var C=0;
C<T;C++)for(var I=0;I<f;I++){var H=s[(o*X+C)*m+o*c+I],b=H>>>24;y+=b;O+=b*(H>>>16&255);p+=b*(H>>>8&255);
D+=b*(H&255)}if(y!=0){var R=1/y;x[X*a+c]=y/(f*T)<<24|O*R<<16|p*R<<8|D*R}else x[X*a+c]=0}};L.q={};L.q.adr=function(s,m,l){var x=128,C=0,a=l.e,P=l.l;
for(var o=0;o<P;o++)for(var G=0;G<a;G++){if(s[C]>=x&&(G==0||s[C-1]<x||(G==a-1||s[C+1]<x)||(o==0||s[C-a]<x)||(o==P-1||s[C+a]<x)))m[C]=255;
C++}};L.q.ahI=function(s,m,l,x){var a=new Uint32Array([4278190080,4294967295]),P=l.e,o=l.l,G=0,_=0,j=P,U=o;
if(x){G=x.x-l.x;_=x.y-l.y;j=G+x.e;U=_+x.l}var S=new Uint8Array(m.buffer),X=new Uint32Array(m.buffer);
for(var c=_;c<U;c++)for(var y=G;y<j;y++){var C=c*P+y;if((s[C]&128)!=0&&(c==0||(s[C-P]&128)==0||y==0||(s[C-1]&128)==0||y==P-1||(s[C+1]&128)==0||c==o-1||(s[C+P]&128)==0)){X[C]=a[(y+c&4)>>>2]}}};
L.q.a8Q=function(s,m,l,x,a,P){var o=l.e,G=l.l,_=0,j=0,U=o,S=G;if(x){_=x.x-l.x;j=x.y-l.y;U=_+x.e;S=j+x.l}var X=new Uint8Array(m.buffer),c=new Uint32Array(m.buffer);
for(var y=j;y<S;y++)for(var O=_;O<U;O++){var C=y*o+O,p=s[C];if(a==1)c[C]=255-p>>>1<<24|255;else c[C]=255<<24|(p<<16|p<<8|p)}};
L.e1={};L.e1.a2=function(s,m,l){var x,a;if(l==0){x=s.rect.clone();a=L.e1.alM}if(l==1){x=s.rect.if(m.rect);
a=L.e1.if}if(l==2){x=m.rect.clone();a=L.e1.a3e}if(l==3){x=s.rect.pF(m.rect);a=L.e1.pF}if(l==4){x=s.rect.if(m.rect);
a=L.e1.a3w}if(x.Xh())return null;var P=L.B(x.k());L.kV(m.channel,m.rect,P,x);var o=L.B(x.k());L.kV(s.channel,s.rect,o,x);
a(o,P,P);var G=L.zQ(P,x);if(G.Xh())return null;if(!G.yb(x)){var _=L.B(G.k());L.kV(P,x,_,G);P=_;x=G}return{channel:P,rect:x}};
L.e1.alM=function(s,m,l){for(var C=0;C<s.length;C++)l[C]=s[C]};L.e1.if=function(s,m,l){for(var C=0;C<s.length;
C++)l[C]=Math.min(s[C]+m[C],255)};L.e1.a3e=function(s,m,l){for(var C=0;C<s.length;C++)l[C]=Math.max(m[C]-s[C],0)};
L.e1.pF=function(s,m,l){var x=1/255;for(var C=0;C<s.length;C++)l[C]=s[C]*m[C]*x};L.e1.a3w=function(s,m,l){var x=1/255;
for(var C=0;C<s.length;C++)l[C]=Math.min(s[C]+m[C],255)-s[C]*m[C]*x};L.Kx=function(s,m){this.J=[];this.aF=[0];
this.VU=[];this.dX=[];this.qw=[0];this.NA=[];this.Sp=[];this.rows=s;this.cols=m};L.Kx.prototype.clone=function(){var s=this,m=s.rows,l=s.cols,x=new L.Kx(m,l);
x.J=s.J.slice(0);x.aF=s.aF.slice(0);x.VU=s.VU.slice(0);x.dX=s.dX.slice(0);x.qw=s.qw.slice(0);x.NA=s.NA.slice(0);
x.Sp=s.Sp.slice(0);return x};L.Kx.prototype.s_=function(s,m,l){var x=this.aF.length-1;for(var C=0;C<l;
C++){var a=s[C],P=m[C];this.J.push(a);this.VU.push(P);if(P==x){this.Sp.push(a==0?0:1/a)}else{this.dX.push(a);
this.NA.push(P)}}this.aF.push(this.J.length);this.qw.push(this.dX.length)};L.Kx.prototype._R=function(s,m){var l=this,x=l.rows,a=l.J,P=l.VU;
if(m==null)m=new Array(x);for(var C=0;C<x;C++){var o=l.aF[C],G=l.aF[C+1],_=0;while((G-o&3)!=0){_+=a[o]*s[P[o]];
o++}for(var j=o;j<G;j+=4)_+=a[j]*s[P[j]]+a[j+1]*s[P[j+1]]+a[j+2]*s[P[j+2]]+a[j+3]*s[P[j+3]];m[C]=_}return m};
L.Kx.prototype.multiply=function(s){return this.Gn(s.mP())};L.Kx.prototype.Gn=function(s){var m=this,l=m.rows,x=m.cols,a=s.rows,P=new L.Kx(l,a),o=m.VU,G=s.VU;
for(var C=0;C<l;C++){var _=[],j=[],U=m.aF[C],S=m.aF[C+1];for(var X=0;X<a;X++){var c=s.aF[X],y=s.aF[X+1],O=0,p=U,D=c;
while(p<S&&D<y){var f=Math.max(o[p],G[D]);while(p<S&&o[p]<f)p++;while(D<y&&G[D]<f)D++;if(p<S&&D<y&&o[p]==G[D])O+=m.J[p++]*s.J[D++]}if(O!=0){_.push(O);
j.push(X)}}P.s_(_,j,_.length)}return P};L.Kx.prototype.mP=function(){var s=this.rows,m=this.cols,l=[];
for(var C=0;C<m;C++)l.push([[],[]]);var x=this.J,a=this.aF,P=this.VU;for(var C=0;C<s;C++){var o=a[C],G=a[C+1];
for(var _=o;_<G;_++){var j=l[P[_]];j[0].push(x[_]);j[1].push(C)}}var U=new L.Kx(m,s);for(var C=0;C<m;
C++)U.s_(l[C][0],l[C][1],l[C][1].length);return U};L.Kx.prototype.$s=function(){var s=this.rows,m=this.cols,l=new Array(s),x=this.J,a=this.aF,P=this.VU;
for(var C=0;C<s;C++){var o=l[C]=new Array(m);for(var G=0;G<m;G++)o[G]=0;var _=a[C],j=a[C+1];for(var U=_;
U<j;U++)o[P[U]]=x[U]}return l};L.Kx.prototype.ow=function(s,m,l,x,a){function P(R,m,W,J){var u=R.length;
for(var C=0;C<u;C++)J[C]=R[C]-m[C]*W}function o(R,m,W,J){var u=R.length,e=0;while((u-e&3)!=0){J[e]=R[e]+m[e]*W;
e++}for(var C=e;C<u;C+=4){J[C]=R[C]+m[C]*W;J[C+1]=R[C+1]+m[C+1]*W;J[C+2]=R[C+2]+m[C+2]*W;J[C+3]=R[C+3]+m[C+3]*W}}function G(R,m,W){var J=R.length;
for(var C=0;C<J;C++)W[C]=R[C]*m[C]}function _(R,m){var W=R.length,J=0,u=0;while((W-J&3)!=0){u+=R[J]*m[J];
J++}for(var C=J;C<W;C+=4)u+=R[C]*m[C]+R[C+1]*m[C+1]+R[C+2]*m[C+2]+R[C+3]*m[C+3];return u}var j=x!=null?2:1,U=Date.now(),S=0,X=this,c=s.slice(0),y=s.slice(0);
X._R(s,y);P(m,y,1,c);var O=this.Sp;if(j==0){O=c.slice(0);O.fill(1)}var p=c.slice(0);G(O,c,p);var D=p.slice(0),f=_(c,p);
while(!0){X._R(D,y);var T=f/_(D,y);o(s,D,T,s);P(c,y,T,c);if((S&7)==0&&Math.sqrt(_(c,c))<l)break;if(j<=1)G(O,c,p);
else{var I=c.slice(0);x.aeL(I,c);a.a73(p,I)}var H=_(c,p),b=H/f;o(p,D,b,D);f=H;S++}};L.Kx.prototype.aaH=function(s,m,l,x){var a=Date.now(),P=1.96,G=0;
if(l==null)l=5e-6;if(x==null)x=1e9;var o=1-P,cE=this.rows,_=this.dX,j=this.qw,U=this.NA,S=this.Sp;while(!0){var X=0;
for(var C=0;C<cE;C++){var c=m[C],y=j[C],O=j[C+1];if(O-y==4)c-=_[y]*s[U[y]]+_[y+1]*s[U[y+1]]+_[y+2]*s[U[y+2]]+_[y+3]*s[U[y+3]];
else for(var p=y;p<O;p++)c-=_[p]*s[U[p]];var D=s[C]*o+S[C]*c*P,f=D-s[C];X+=f*f;s[C]=D}if(X/cE<l||Date.now()>a+x)break}};
L.Kx.prototype.aqS=function(s,m,l,x){var a=Date.now(),P=1.96,G=0;if(l==null)l=5e-5;if(x==null)x=1e9;
var o=1-P,cE=this.rows,_=this.dX,j=this.qw,U=this.NA,S=this.Sp;while(!0){var X=0;for(var C=0;C<cE;C++){var c=C*3,y=m[c],O=m[c+1],p=m[c+2],D=j[C],f=j[C+1];
for(var T=D;T<f;T++){var I=_[T],H=U[T]*3;y-=I*s[H+0];O-=I*s[H+1];p-=I*s[H+2]}var b=S[C]*P,R=s[c+0]*o+y*b,W=s[c+1]*o+O*b,J=s[c+2]*o+p*b,u=R-s[c+0],e=W-s[c+1],Q=J-s[c+2];
X+=.4*u*u+.5*e*e+.1*Q*Q;s[c+0]=R;s[c+1]=W;s[c+2]=J}if(X/cE<l||Date.now()>a+x)break}};L.so={};L.so.L4=function(s,m,l){return{t:"Objc",v:{classID:"CrPt",Hrzn:{t:"doub",v:s},Vrtc:{t:"doub",v:m},Cnty:{t:"bool",v:l}}}};
L.so.A=function(s,m){for(var C=0;C<s.length;C++){var l=s[C].v,x=m.oG(new fz(l.Hrzn.v,l.Vrtc.v));l.Hrzn.v=Math.round(x.x);
l.Vrtc.v=Math.round(x.y)}};L.so.Sq=function(s,m,l){var cE=s.length-1,x=L.pc.ol(cE+1,cE+2);for(var C=1;
C<cE;C++){x[C][C-1]=1/(s[C]-s[C-1]);x[C][C]=2*(1/(s[C]-s[C-1])+1/(s[C+1]-s[C]));x[C][C+1]=1/(s[C+1]-s[C]);
x[C][cE+1]=3*((m[C]-m[C-1])/((s[C]-s[C-1])*(s[C]-s[C-1]))+(m[C+1]-m[C])/((s[C+1]-s[C])*(s[C+1]-s[C])))}x[0][0]=2/(s[1]-s[0]);
x[0][1]=1/(s[1]-s[0]);x[0][cE+1]=3*(m[1]-m[0])/((s[1]-s[0])*(s[1]-s[0]));x[cE][cE-1]=1/(s[cE]-s[cE-1]);
x[cE][cE]=2/(s[cE]-s[cE-1]);x[cE][cE+1]=3*(m[cE]-m[cE-1])/((s[cE]-s[cE-1])*(s[cE]-s[cE-1]));L.pc.J1(x,l)};
L.so.amI=function(s,m,l,x){if(s<=m[0])return l[0];if(s>=m[m.length-1])return l[m.length-1];var C=1;while(m[C]<s)C++;
var a=m[C],P=m[C-1],o=l[C],G=l[C-1],_=(s-P)/(a-P),j=x[C-1]*(a-P)-(o-G),U=-x[C]*(a-P)+(o-G),S=(1-_)*G+_*o+_*(1-_)*(j*(1-_)+U*_);
return S};L.so.sC=function(s,m,l,x){var a={vi:[s[0]],cy:[m[0]],ng:[]};x[0]=a;for(var C=1;C<s.length-1;
C++){a.vi.push(s[C]);a.cy.push(m[C]);if(l[C]==!1){L.so.Sq(a.vi,a.cy,a.ng);a={vi:[s[C]],cy:[m[C]],ng:[]}}x[C]=a}a.vi.push(s[C]);
a.cy.push(m[C]);L.so.Sq(a.vi,a.cy,a.ng);x[C]=a};L.so.Ob=function(s,m,l,x){if(s<=m[0])return l[0];if(s>=m[m.length-1])return l[m.length-1];
var C=1;while(m[C]<s)C++;var a=x[C-1];return L.so.amI(s,a.vi,a.cy,a.ng)};L.so.I4=function(s){var m={vi:[],cy:[],uH:[]};
for(var C=0;C<s.length;C++){m.vi[C]=s[C].v.Hrzn.v;m.cy[C]=s[C].v.Vrtc.v;m.uH[C]=s[C].v.Cnty?s[C].v.Cnty.v:!0}return m};
L.so.IS=function(s,cE,m){var l=0,x=255;if(m){l=-1e9;x=1e9}var a=L.so.I4(s),P=[];L.so.sC(a.vi,a.cy,a.uH,P);
var o=[];for(var C=0;C<cE;C++)o[C]=1/255*Math.max(l,Math.min(x,L.so.Ob(C*(255/(cE-1)),a.vi,a.cy,P)));
return o};L.so.af0=function(s,cE,m){var l=Math.round(s.length/20),x=cE-s.length,a=m?(s[l]-s[0])/l:0,P=m?s[0]-x*a:s[s.length-1],o=[];
for(var C=0;C<x;C++)o.push(P+C*a);return m?o.concat(s):s.concat(o)};L.so.nn=function(s,cE,m){var l=L.so.I4(s),x=[];
L.so.sC(l.vi,l.cy,l.uH,x);var a=new Uint8Array(cE),P=cE/256;for(var C=0;C<cE;C++)a[C]=Math.max(0,Math.min(cE-1,L.so.Ob(C*P,l.vi,l.cy,x)));
if(m){a[0]=0;if(a[1]>100)a[1]=.4*a[1];if(a[2]>150)a[1]=.7*a[2]}return a};L.so.r6=function(s,m){var l=new Uint8Array(s.length);
for(var C=0;C<s.length;C++)l[C]=m[s[C]];return l};L.so.jj=function(s,m,l){var x=document.createElement("canvas");
x.width=m;x.height=l;var a=x.getContext("2d"),P=L.so.nn(s,256);a.scale(m/255,l/255);a.fillStyle="#fff";
a.fillRect(0,0,255,255);a.fillStyle="#333";a.beginPath();a.moveTo(0,255);for(var C=0;C<P.length;C++)a.lineTo(C,255-P[C]);
a.lineTo(255,255);a.closePath();a.fill();return x.toDataURL()};L.style={};L.style.stroke=function(s,m,l,x){var a=l.e,P=l.l,o=new Float64Array(a*P);
L.style.xh(s,o,a,P);L.style.YJ(m,l,o,l,x)};L.style.YJ=function(s,m,l,x,a){var P=m.pF(x),o=P.e,G=P.l;
a+=.5;var _=P.x-m.x,j=P.y-m.y,U=m.e,S=P.x-x.x,X=P.y-x.y,c=x.e;for(var y=0;y<G;y++){var O=(y+X)*c+S,p=(y+j)*U+_;
for(var D=0;D<o;D++){var f=Math.max(0,Math.min(1,a-l[O+D]));s[p+D]=Math.round(f*255)}}};L.style.abo=function(s,m,l,x){for(var a=0;
a<l;a++)for(var P=0;P<m;P++){var o=a*m+P,G=0,_=0,j=s[o];if(P==0||a==0){G=s[o+1]-j;_=s[o+m]-j}else if(P==l-1||a==m-1){G=j-s[o-1];
_=j-s[o-m]}else{G=s[o+1]-s[o-1];_=s[o+m]-s[o-m]}if(G!=0||_!=0){var U=1/Math.sqrt(G*G+_*_);G*=U;_*=U}x[o+o]=G;
x[o+o+1]=_}};L.style.xh=function(s,m,l,x){var a=0,P=l*x;for(var C=0;C<P;C++)a|=s[C];if(a==0){m.fill(1e9);
return}var o=L.style.mr(s,l,x);for(var G=0;G<x;G++)for(var _=0;_<l;_++){var C=G*l+_,j=o[C*2],U=o[C*2+1],S=(G+U)*l+_+j;
if(j==0&&U==0){m[C]=0;continue}var X=Math.sqrt(j*j+U*U),c=s[S]*(1/255),y=1/X,O=Math.abs(j)*y,p=Math.abs(U)*y;
if(p>O){var D=p;p=O;O=D}m[C]=X+L.style.alc(O,p,c)}};L.style.alc=function(s,m,l){return(.5-l)*s};L.style.mr=function(s,m,l,x){var a=new Int16Array(m*l*2);
L.style.agL(s,a,m,l,128);return a};L.style.agL=function(s,m,l,x,a){var P=new Int32Array(l*x);L.style.aqL(s,P,l,x,a);
L.style.a0f(P,m,l,x)};L.style.aqL=function(s,m,l,x,a){var P=new Int32Array(x);for(var o=0;o<l;o++){var G=l+x;
for(var _=x-1;_>=0;_--){if(s[_*l+o]>a)G=0;else G++;P[_]=G}G=l+x;for(var _=0;_<x;_++){if(s[_*l+o]>a)G=0;
else G++;m[_*l+o]=G<P[_]?-G:P[_]}}};L.style.a0f=function(s,m,l,x){var a=(l+x)*(l+x),P=new Float64Array(l),o=new Uint16Array(l);
for(var G=0;G<x;G++){var _=G*l,j=0;o[0]=0;P[0]=-a;P[1]=+a;for(var U=1;U<l;U++){var S=s[U+_]*s[U+_]+U*U,X=(S-(s[o[j]+_]*s[o[j]+_]+o[j]*o[j]))/(2*U-2*o[j]);
while(X<=P[j]){j--;X=(S-(s[o[j]+_]*s[o[j]+_]+o[j]*o[j]))/(2*U-2*o[j])}j++;o[j]=U;P[j]=X;P[j+1]=a}j=0;
for(var U=0;U<l;U++){while(P[j+1]<U)j++;var c=o[j]-U,y=s[o[j]+_],C=G*l+U<<1;m[C]=c;m[C+1]=y}}};L.style.eF=function(s,m,l){if(l)for(var C=0;
C<s.length;C++){var x=s[C];if(x>0)s[C]=Math.max(0,Math.min(255,x+m*2*(L.style.a8(C)-128)))}else for(var C=0;
C<s.length;C++){var x=s[C];if(x>0)s[C]=Math.max(0,Math.min(255,x+Math.min(x*3,m*2*(L.style.a8(C)-128))))}};
L.style.a8=function(s){s=s^61^s>>16;s=s+(s<<3);s=s^s>>4;s=s*668265261;s=s^s>>15;return s&255};L.Ia={};
L.Ia.ml=function(s,m,l){var x=s.canvas;if(x.width!=m||x.height!=l){x.width=m;x.height=l}};L.Ia.gm=function(s,m,l,x,a,P){L.Ia.ml(s,m,l);
if(P==null)P=!1;var o=a.channel,G=a.rect,_=!a.isEnabled;if(m*l==0)return;var j=s.createImageData(m,l),U=j.data,S=1/m,X=1/l;
for(var C=0;C<l;C++)for(var c=0;c<m;c++){var y=C*m+c,O=y*4,p=Math.round(x.x+c*S*x.e),D=Math.round(x.y+C*X*x.l),f=0;
if(p<G.x||p>=G.x+G.e||D<G.y||D>=G.y+G.l)f=a.color;else f=o[(D-G.y)*G.e+(p-G.x)];f=255*(255-a.X5)+f*a.X5>>>8;
if(P)f=170+Math.round(.4*(f-170));U[O]=f;U[O+1]=f;U[O+2]=f;U[O+3]=255}s.putImageData(j,0,0);if(_)L.Ia.oE(s,m,l)};
L.Ia.EH=[];L.Ia.aaL=function(s,m,l,x){var a,P,o;a=Math.ceil(Math.max(m,l)*.35);P=m-a;o=l-a;var G=L.Ia.EH[a];
if(G==null){var _=L.Uv(a,a);_.fillStyle="#eeeeee";_.fillRect(0,0,a,a);var j=Math.round(a*.27),U=_.lineWidth=Math.max(1,Math.round(a*.12)),S=U/2;
_.strokeRect(1+S,1+S,a-U-2,a-U-2);_.strokeRect(j+S,j+S,a-j-j-U,a-j-j-U);G=L.Ia.EH[a]=_.getImageData(0,0,a,a)}s.putImageData(G,P,o)};
L.Ia.oC=[];L.Ia.acc=function(s,m,l){var x,a,P;x=Math.ceil(Math.max(m,l)*.35);a=m-x;P=l-x;var o=L.Ia.oC[x];
if(o==null){var G=L.Uv(x,x);G.fillStyle="#eeeeee";G.fillRect(0,0,x,x);G.lineWidth=1;G.strokeRect(2.5,2.5,x-5,x-5);
var _=G.createImageData(3,3);L.MP(_.data,4278190080);_.data[4*4]=_.data[4*4+1]=_.data[4*4+2]=238;G.putImageData(_,1,1);
G.putImageData(_,x-4,1);G.putImageData(_,1,x-4);G.putImageData(_,x-4,x-4);o=L.Ia.oC[x]=G.getImageData(0,0,x,x)}s.putImageData(o,a,P)};
L.Ia.a4$=function(s,m,l,x,a){L.Ia.ml(s,m,l);var P=m/x.e;if(m*l==0)return;s.fillStyle="#999999";s.setTransform(1,0,0,1,0,0);
s.clearRect(0,0,m,l);var o=L.Ia.WK;if(o==null){o=L.Ia.WK=JSON.parse(JSON.stringify(i4.Ah.default));o.strokeEnabled.v=!0}o.strokeStyleLineWidth.v.val=1/P;
s.fillStyle="#ffffff";s.scale(P,P);L.j.cK(a.T,s,0,0);L.j.cK(a.T,s,0,0,o)};L.Ia.PM=null;L.Ia.jw=function(s,m,l,x,a,P,o,G){L.Ia.ml(s,m,l);
if(m*l==0)return;var _=Math.max(m,l),j=L.Ia.PM;if(j==null||j.width<_||j.height<_){L.Ia.PM=j=s.createImageData(_,_)}_=j.width;
var U=j.data,S=x.e/m,X=x.l/l,c=P.x,y=P.x+P.e,O=P.y,p=P.y+P.l;for(var C=0;C<l;C++)for(var D=0;D<m;D++){var f=C*_+D,T=f*4,I=~~(x.x+D*S),H=~~(x.y+C*X),b=L.HA(C,D,2);
if(I<c||I>=y||H<O||H>=p){U[T]=b;U[T+1]=b;U[T+2]=b;U[T+3]=255}else{var R=(H-P.y)*P.e+(I-P.x)<<2,W=a[R+3]*(1/255);
U[T]=a[R+0]*W+b*(1-W);U[T+1]=a[R+1]*W+b*(1-W);U[T+2]=a[R+2]*W+b*(1-W);U[T+3]=255}}if(G!=null)for(var C=0;
C<U.length;C+=4)U[C]=U[C+1]=U[C+2]=U[C+G];s.putImageData(j,0,0);if(o)L.Ia.oE(s,m,l)};L.Ia.akL=function(s,m,l,x){L.Ia.ml(s,m,l);
s.fillStyle=L.Ia.Qv(x.Clr.v);s.fillRect(0,0,m,l);L.Ia.YG(s,m,l)};L.Ia.kc=null;L.Ia.arV=function(s,m,l,x){L.Ia.ml(s,m,l);
var a=s.canvas.width,P=s.canvas.height,o=L.Ia.kc;if(o==null||o.width!=a||o.height!=P){s.fillStyle="#ffffff";
s.fillRect(0,0,m,l);s.fillStyle="#000000";s.font=""+l*.7+"px serif";s.fillText("T",(m-l*.43)/2,l*.75);
s.fillText("T",(m-l*.43)/2,l*.75);L.Ia.kc=s.getImageData(0,0,a,P)}else s.putImageData(o,0,0)};L.Ia.ajs=function(s,m,l){L.Ia.ml(s,m,l);
s.clearRect(0,0,m,l);s.font=l*.7+"px serif";s.fillText(":(",(m-l*.43)/2,l*.7)};L.Ia.afA=function(s,m,l,x){L.Ia.ml(s,m,l);
var a=eb.get(x),P=s.canvas.width,o=L.Ia.fJ[P+a];if(o==null){var G=PIMG["adj/"+a],_=iO.HM(G),j=UPNG.decode(_.buffer),U=new Uint8Array(UPNG.toRGBA8(j)[0]),S=new bU(0,0,160,160),X=0,c=P-X*2,y=r.Q.ea([U,S],new ae(c/160,0,0,c/160,0,0)),O=new bU(0,0,P,P),p=L.B(O.k()*4);
L.a.$P("norm",y.buffer,y.rect,p,O,y.rect,1);o=L.Ia.fJ[P+a]=new ImageData(new Uint8ClampedArray(p.buffer),P,P)}s.putImageData(o,0,0)};
L.Ia.fJ={};L.Ia.a6E=function(s,m,l,x){L.Ia.ml(s,m,l);var a=s.canvas.width,P=s.canvas.height,o=s.getImageData(0,0,a,P);
L.K.Wv(x.Grad.v,new Uint8Array(o.data.buffer),new bU(0,0,a,P),[1/a,0,0,1/P],a/2,P/2,!1,0,16711680,65280);
s.putImageData(o,0,0);L.Ia.YG(s,m,l)};L.Ia.anx=function(s,m,l,x,a){L.Ia.ml(s,m,l);var P=s,o=jo.Ic(x.Ptrn.v,a.add.Patt);
if(o==null)return;var G=o.DH[1];L.Ia.jw(s,m,l,G,o.DH[0],G,!1);L.Ia.YG(P,m,l)};L.Ia.oE=function(s,m,l){s.strokeStyle="#bb0000";
s.lineWidth=3;s.beginPath();s.moveTo(m*.15,l*.15);s.lineTo(m*.85,l*.85);s.moveTo(m*.85,l*.15);s.lineTo(m*.15,l*.85);
s.closePath();s.stroke()};L.Ia.YG=function(s,m,l){s.fillStyle="#eeeeee";s.fillRect(0,l*.75,m,l*.25);
s.beginPath();s.moveTo(0,l*.75);s.lineTo(m,l*.75);s.moveTo(m*.1,l*.875);s.lineTo(m*.9,l*.875);s.moveTo(m*.65,l*.825);
s.lineTo(m*.65,l*.95);s.closePath();s.stroke()};L.Ia.Qv=function(s){var m=L.K.Qv(s),l=Math.round(m.o)<<16|Math.round(m.z)<<8|Math.round(m.S);
return"#"+L.eZ(l)};L.j={};L.j.Cc=function(s,m,l){var x=[],a=-1;for(var C=0;C<s.length;C++){var P=s[C];
if((P.type==0||P.type==3)&&P.aZ!=-1)a++;if(P.type>5||P.type==0||P.type==3)continue;if(m!=null&&m.indexOf(a)==-1)continue;
if(l!=null&&l.indexOf(C)==-1)continue;x.push(P.o3.x);x.push(P.o3.y);x.push(P.R.x);x.push(P.R.y);x.push(P.Ux.x);
x.push(P.Ux.y)}return x};L.j.OZ=function(s,m,l,x){var a=0,P=-1;for(var C=0;C<m.length;C++){var o=m[C];
if((o.type==0||o.type==3)&&o.aZ!=-1)P++;if(o.type>5||o.type==0||o.type==3)continue;if(l!=null&&l.indexOf(P)==-1)continue;
if(x!=null&&x.indexOf(C)==-1)continue;o.o3.Qk(s[a],s[a+1]);o.R.Qk(s[a+2],s[a+3]);o.Ux.Qk(s[a+4],s[a+5]);
a+=6}};L.j.G9=function(s,m,l,x){var a=L.j.Cc(s,l,x);L.H.A(a,m,a);L.j.OZ(a,s,l,x)};L.j.a84=function(s,m,l,x){var a=L.j.Cc(s,l,x);
L.V.A(m,a);L.j.OZ(a,s,l,x)};L.j.ajA=function(s,m,l,x){if(l==null&&x==null){var a=L.j.ast(s,40);for(var C=0;
C<a.length;C++)s[C]=a[C]}var P=L.j.Cc(s,l,x);L.k9.A(m,P,L.H.ge(P));L.j.OZ(P,s,l,x)};L.j.ast=function(s,m){var l=[];
for(var C=0;C<s.length;C++){var x=s[C];if(x.type>5){l.push(JSON.parse(JSON.stringify(x)));continue}var a=L.j.anf(s,C+1,x.length);
a=L.H.PC(a,m);var P=L.j.aoU(a);C+=x.length;x=JSON.parse(JSON.stringify(x));x.length=P.length;l.push(x);
for(var o=0;o<P.length;o++)l.push(P[o])}return l};L.j.anf=function(s,m,l){var x={r:["M"],s:[]},a=s[m],P=s[m+l-1];
x.s.push(a.R.x,a.R.y);for(var C=1;C<l;C++){var o=s[m+C-1],G=s[m+C];x.r.push("C");x.s.push(o.Ux.x,o.Ux.y,G.o3.x,G.o3.y,G.R.x,G.R.y)}x.r.push("C");
x.s.push(P.Ux.x,P.Ux.y,a.o3.x,a.o3.y,a.R.x,a.R.y);return x};L.j.aoU=function(s){var m=[],l=s.r,x=s.s,a=0,cE=x.length;
m.push({type:2,o3:new fz(x[cE-4],x[cE-3]),R:new fz(x[0],x[1]),Ux:new fz(x[2],x[3])});for(var C=0;C<l.length-2;
C++){var P=C*6+4;m.push({type:2,o3:new fz(x[P],x[P+1]),R:new fz(x[P+2],x[P+3]),Ux:new fz(x[P+4],x[P+5])})}return m};
L.j.ag$=function(s){for(var C=0;C<s.length;C++){if(s[C].type>5)continue;var m=s[C].length;if(!(m==4||m==6||m==8)){C+=m;
continue}for(var l=0;l<m;l++){var x=s[C+1+l],a=s[C+1+(l+1)%m],P=Math.min(x.R.x,a.R.x),o=Math.min(x.R.y,a.R.y),G=0,_=0;
if(x.R.x<a.R.x){G=x.R.y-o;_=G-(a.R.x-P)}else{G=a.R.y-o;_=G-(x.R.x-P)}if(Math.abs(_)<.2*G)return G}}return-1};
L.j.dj=function(s,m,l){function x(X,c){var y=Math.min(X.x,c.x),O=Math.min(X.y,c.y),p=Math.max(X.x+X.e,c.x+c.e),D=Math.max(X.y+X.l,c.y+c.l);
return new bU(y,O,p-y,D-O)}var a=null,P=-1,o=!L.j.LD(s);for(var C=0;C<s.length;C++){var G=s[C];if(G.type>5)continue;
if((G.type==0||G.type==3)&&G.aZ!=-1)P++;if(m!=null&&m.indexOf(P)==-1)continue;if(C==s.length-1)break;
var _=G.type==3,j=G.length,U=G.aZ,S=L.j.aom(s,C+1,j,_);if(a==null)a=S;else if(l)a=x(a,S);else if(o){if(m!=null||U==0||U==-1||U==2)a=x(a,S);
else if(U==1)a=a;else if(U==3){a=S;o=!1}}else{if(m!=null||U==0||U==-1||U==1)a=x(a,S);else if(U==2)a=a;
else if(U==3)a=a.pF(S)}C+=j}if(a==null||a.e<0||a.l<0)a=new bU(0,0,0,0);return a};L.j.akT=new Float64Array(4);
L.j.aom=function(s,C,m,l){var x=L.j.akT;x[0]=1e30;x[1]=1e30;x[2]=-1e30;x[3]=-1e30;var a=s[C+m-1];if(!l)L.j.Z3(a.R.x,a.R.y,a.Ux.x,a.Ux.y,s[C].o3.x,s[C].o3.y,s[C].R.x,s[C].R.y,x);
for(var P=C;P<C+m-1;P++){var o=s[P],G=s[P+1];L.j.Z3(o.R.x,o.R.y,o.Ux.x,o.Ux.y,G.o3.x,G.o3.y,G.R.x,G.R.y,x)}return new bU(x[0],x[1],x[2]-x[0],x[3]-x[1])};
L.j.Z3=function(s,m,l,x,a,P,o,G,_){if(s==l&&m==x&&a==o&&P==G){_[0]=Math.min(_[0],Math.min(s,o));_[1]=Math.min(_[1],Math.min(m,G));
_[2]=Math.max(_[2],Math.max(s,o));_[3]=Math.max(_[3],Math.max(m,G));return}var j=s,U=m,S=s,X=m,c=40,y=1/(c-1);
for(var O=0;O<c;O++){var p=O*y,D=1-p,f=D*D*D,T=3*D*D*p,I=3*D*p*p,H=p*p*p,b=f*s+T*l+I*a+H*o,R=f*m+T*x+I*P+H*G;
if(b<j)j=b;else if(b>S)S=b;if(R<U)U=R;else if(R>X)X=R}if(j<_[0])_[0]=j;if(U<_[1])_[1]=U;if(S>_[2])_[2]=S;
if(X>_[3])_[3]=X};L.j.GQ=function(s,m){var l=s.length-3,x=m%l,a=Math.floor(x);if(m<0||a>=l)return null;
var P=s[3+a],o=s[3+(a+1)%l],G=P.R,_=P.Ux,j=o.o3,U=o.R,S=x-a,X=1-S,c=X*X*X*G.x+3*X*X*S*_.x+3*X*S*S*j.x+S*S*S*U.x,y=X*X*X*G.y+3*X*X*S*_.y+3*X*S*S*j.y+S*S*S*U.y;
return new fz(c,y)};L.j.E_=function(s){var m=L.H.wl(s),l=m.sY;m.sY=Typr.U.pathToSVG({crds:l.s,cmds:l.r},2);
return m};L.j.CH=function(s){L.j.u7();var m,l=L.j.bz(s),x=[];for(var C=0;C<l.length;C++){var a=l[C][0],P=l[C][1];
if(Math.abs(a.area)<1e-5)x.push(a);else if(m==null)m=a;else{if(!a.closed)a.closed=!0;m=m[P](a);m.remove()}}if(m==null)m=new paper.CompoundPath(x);
else{if(m.segments)m=new paper.CompoundPath(m);for(var C=0;C<x.length;C++){m.addChild(x[C])}}var o=s.slice(0,2);
o=o.concat(L.j.zF(m));if(o[2])o[2].aZ=1;for(var C=3;C<o.length;C++)if(o[C].aZ!=null)o[C].aZ=-1;return o};
L.j.u7=function(){if(L.j.a3T==null){var s=document.createElement("canvas");paper.setup(s);L.j.a3T=!0}};
L.j.aa0=function(s,m){L.j.u7();var l=[],x=L.j.bz(s),a=new paper.Path.Rectangle(new paper.Rectangle(m.x,m.y,m.e,m.l));
a.remove();a.fillColor=new paper.Color(1,0,0);for(var C=0;C<x.length;C++){if(a.intersects(x[C][0])||a.contains(x[C][0].children[0].segments[0].point))l.push(C)}return l};
L.j.qi=function(s,m,l,x){L.j.u7();var a=l?{curves:!0,tolerance:x}:null,P=new paper.Point(m.x,m.y),o=L.j.bz(s);
for(var C=o.length-1;C>=0;C--){var G=o[C][0],_=G.hitTest(P,a);if(_!=null)return{jV:C,CJ:l?_.location.index:null}}return{jV:-1}};
L.j.Pl=function(s,m,l){var x=[[],[],[]];for(var C=0;C<s.length;C++){var a=s[C];if(a.type>5||a.type==0||a.type==3)continue;
var P=l==null?!0:l.indexOf(C)!=-1;if(m.j_(a.R))x[0].push(C);if(m.j_(a.o3)&&P)x[1].push(C);if(m.j_(a.Ux)&&P)x[2].push(C)}return x};
L.j.a9j=function(s,m,l){var x=l.slice(0),a=[null,null],P=-1,G=null;for(var C=2;C<s.length;C++){if((s[C].type==0||s[C].type==3)&&s[C].aZ!=-1)P++;
a[C]=l[P]}l=a;var o=s.slice(0,2);a=l.slice(0,2);for(var C=2;C<s.length;C++){if(s[C].type==0||s[C].type==3){G=s[C];
o.push(G);a.push(l[C])}else{if(m.indexOf(C)==-1){o.push(s[C]);a.push(l[C])}else{G.length--;L.R2.NN(l,C)}}}for(var C=2;
C<o.length;C++){var _=o[C];if(_.type!=0&&_.type!=3)continue;if(_.length==0){if(o[C+1]&&o[C+1].aZ==-1){o[C+1].aZ=_.aZ}a.splice(C,1);
o.splice(C,1);C--}}for(var C=0;C<x.length;C++)if(a.indexOf(x[C])==-1){x.splice(C,1);C--}return o};L.j.a8r=function(s,m){var l=s.slice(0,2),x=-1;
for(var C=2;C<s.length;C++){if((s[C].type==0||s[C].type==3)&&s[C].aZ!=-1)x++;if(m.indexOf(x)==-1)l.push(s[C])}return l};
L.j.asb=function(s,m){var l=s.slice(0,2),x=-1;for(var C=2;C<s.length;C++){if((s[C].type==0||s[C].type==3)&&s[C].aZ!=-1)x++;
if(m.indexOf(x)!=-1)l.push(s[C])}return l};L.j.a6O=function(s){var m=0;for(var C=0;C<s.length;C++)if(s[C].type==0||s[C].type==3)m=C;
return s[m]};L.j.Y7=function(s){var m=-1;for(var C=0;C<s.length;C++)if((s[C].type==0||s[C].type==3)&&s[C].aZ!=-1)m++;
return m+1};L.j.Po=function(s,m,l){var x=-1;for(var C=0;C<s.length;C++)if((s[C].type==0||s[C].type==3)&&(l||s[C].aZ!=-1)){x++;
if(x==m)return C}return-1};L.j.pa=function(s,m,l){var x=-1;for(var C=0;C<s.length;C++)if((s[C].type==0||s[C].type==3)&&(l||s[C].aZ!=-1)){if(C>=m)return x;
x++}return x};L.j.D5=function(s,m){var l=-1,x=0;for(var C=0;C<s.length;C++){if((s[C].type==0||s[C].type==3)&&s[C].aZ!=-1)l++;
if(l==m)x++}return x};L.j.aeS=function(s){var m=180;for(var C=0;C<s.length;C++){if(s[C].type!=0&&s[C].type!=3)continue;
var l=s[C].length;if(l<3)continue;for(var x=0;x<l;x++){var a=s[C+1+(x-1+l)%l],P=s[C+1+x],o=s[C+1+(x+1)%l],G=P.R,_=P.o3.yb(G)?a.Ux:P.o3,j=P.Ux.yb(G)?o.o3:P.Ux;
if(G.yb(_)||G.yb(j))continue;var U=_.x-G.x,S=_.y-G.y,X=j.x-G.x,c=j.y-G.y,_=Math.atan2(_.y-G.y,_.x-G.x)*180/Math.PI,j=Math.atan2(j.y-G.y,j.x-G.x)*180/Math.PI,y=Math.abs(j-_)%360,O=y>180?360-y:y;
if(O<m)m=O}}return m*Math.PI/180};L.j.zF=function(s){var m=s.segments?[s]:s.children,l=[];for(var C=0;
C<m.length;C++){var x=m[C],a=x.segments,P=x.closed?0:3,o=l.length,G=null;if(a.length<=1)continue;l.push({type:P,length:a.length,aZ:0,pe:2});
for(var _=0;_<a.length;_++){var j=a[_],U=new fz(j.handleIn.x,j.handleIn.y),S=new fz(j.handleOut.x,j.handleOut.y),X=new fz(j.point.x,j.point.y),c={type:P+1,o3:X.add(U),R:X,Ux:X.add(S)};
if(G==null)G=c;l.push(c);if(_+1==a.length&&fz.rv(G.R,c.R)<1e-5){l.pop();l[o].length--;G.o3=c.o3;if(P==3)for(var y=o;
y<l.length;y++)l[y].type-=3}}}return l};L.j.bz=function(s){L.j.u7();var m=[],l,x=new paper.Color(1,0,0);
function a(c,G){c.remove();c.closed=!G;c.fillRule="evenodd"}for(var C=0;C<s.length;C++){if(s[C].type>5)continue;
var P=s[C].length,o;if(C==s.length-1)break;var G=s[C].type==3;if(C==2){if(!L.j.hO(s))o="subtract";else o="unite"}else{if(s[C].aZ==0)o="exclude";
if(s[C].aZ==1)o="unite";if(s[C].aZ==2)o="subtract";if(s[C].aZ==3)o="intersect"}if(s[C].aZ!=-1){l=new paper.CompoundPath;
m.push([l,o]);l.fillRule="evenodd";l.fillColor=x}var _=[];for(var j=0;j<P;j++){var U=s[C+1+j],S=U.o3.fy(U.R),X=U.Ux.fy(U.R);
_.push([[U.R.x,U.R.y],[S.x,S.y],[X.x,X.y]])}var c=new paper.Path(_);a(c,G);l.addChild(c);C+=P}return m};
L.j.$0=function(s){for(var C=0;C<s.length;C++){var m=s[C];if(m.R==null)continue;if(!m.R.yb(m.o3)||!m.R.yb(m.Ux))return!1}return!0};
L.j.a70=function(s){if(s.length<=5)return 0;var m=0,l=s.length-3-1;for(var C=0;C<l;C++){var x=s[3+C],a=s[3+C+1];
if(x.type==0||a.type==0)return 0;m+=(a.R.x-x.R.x)*(x.R.y+a.R.y)}m+=(s[3].R.x-s[3+l].R.x)*(s[3+l].R.y+s[3+1].R.y);
return-m*.5};L.j.LD=function(s){var m=s[2],l=!1;if(s.length==2)l=s[1].all==0;else if(s[1].all==1){if(m.aZ==1||m.aZ==3)l=!0;
else l=!1}else{if(m.aZ==1||m.aZ==3||m.aZ==0)l=!0;else l=!1}return l};L.j.hO=function(s){var m=L.j.LD(s);
for(var C=3;C<s.length;C++)if(s[C].aZ==3)m=!0;return m};L.j.aa6=0;L.j.R$=0;L.j.apP=0;L.j.a3h=function(s,m,l,x){if(l.Xh())return;
var a=l.k(),D=16384;L.j.aa6+=a;if(a>L.j.R$){L.j.R$=a}var P=l.e,o=l.l;if(x==null&&L.j.$0(s)){var G=!0;
for(var C=2;C<s.length;)if(s[C].length==2)C+=3;else{G=!1;break}if(G){return}if(L.j.kQ(s)){m.fill(255);
var _=L.j.dj(s);if(_.k()!=a){var j=1-(_.x-l.x),U=1-(_.y-l.y),S=1-(l.x+l.e-(_.x+_.e)),X=1-(l.x+l.l-(_.x+_.l)),c=~~(j*255),y=~~(S*255),O=~~(U*255),p=~~(X*255);
m.fill(O,0,P);m[0]=~~(j*U*255);m[P-1]=~~(S*U*255);for(var C=P;C<a;C+=P){m[C]=c;m[C+P-1]=y}m.fill(p,(o-1)*P,o*P);
m[a-P]=~~(j*X*255);m[a-1]=~~(S*X*255)}return}}var f=Math.ceil(P/D),T=Math.ceil(o/D),I=Math.ceil(P/f),H=Math.ceil(o/T),b=Date.now();
for(var R=0;R<T;R++)for(var W=0;W<f;W++){var J=W*I,u=R*H,e=I,Q=H,q=L.Uv(e,Q);if(!L.j.LD(s))q.fillRect(0,0,e,Q);
L.j.cK(s,q,-l.x-J,-l.y-u,x);var Z=new Uint8Array(q.getImageData(0,0,e,Q).data.buffer);if(e==P&&Q==o)L.hy(Z,m,3);
else L.Pw(Z,new bU(J,u,e,Q),m,new bU(0,0,P,o))}};L.j.cK=function(s,m,l,x,a){if(a!=null){var P=!1,o=!1,G=0,_=!1;
for(var C=0;C<s.length;C++){var j=s[C].aZ;if(j!=null){G++;if(j==-1)P=!0;if(j>0)o=!0;if(s[C].type==0)_=!0}}if(!P&&G<20&&(a==null||_))s=L.j.CH(s)}for(var C=0;
C<s.length;C++){if(s[C].type>5)continue;var U=s[C].length;if(U==0)continue;if(C==s.length-1)break;var S=s[C].type==3,j=s[C].aZ;
if(j!=-1&&a==null){var X=["xor","source-over","destination-out","source-in"][j];m.globalCompositeOperation=X}if(s[C].aZ!=-1){m.beginPath();
if(a){var c=a.strokeStyleLineWidth.v.val,y=a.strokeStyleLineAlignment.v.strokeStyleLineAlignment,O=a.strokeStyleLineCapType.v.strokeStyleLineCapType,p=a.strokeStyleLineJoinType.v.strokeStyleLineJoinType,D=a.strokeStyleMiterLimit.v,f=[],T=a.strokeStyleLineDashSet.v;
for(var I=0;I<T.length;I++)f.push(T[I].v.val*c);m.setLineDash(f);m.lineCap=["butt","round","square"][i4.Ah.S5.indexOf(O)];
m.lineJoin=["miter","round","bevel"][i4.Ah.join.indexOf(p)];m.lineWidth=i4.Ah.Es.indexOf(y)==1?c:c*=2;
m.miterLimit=D}}L.j.a4q(m,s,C+1,U,l,x,S);if(S){}else m.closePath();if(s[C+1+U]==null||s[C+1+U].aZ!=-1){if(a)m.stroke();
else m.fill("evenodd")}C+=U}m.globalCompositeOperation="source-over"};L.j.a4q=function(s,m,C,l,x,a,P){var o=m[C],G=null;
s.moveTo(o.R.x+x,o.R.y+a);for(var _=C;_<C+l-1;_++){o=m[_];G=m[_+1];s.bezierCurveTo(o.Ux.x+x,o.Ux.y+a,G.o3.x+x,G.o3.y+a,G.R.x+x,G.R.y+a)}if(!P){o=m[_];
G=m[C];s.bezierCurveTo(o.Ux.x+x,o.Ux.y+a,G.o3.x+x,G.o3.y+a,G.R.x+x,G.R.y+a)}};L.j.apJ=function(s,m){var l=[],x=m?4:1;
for(var C=0;C<s.length;C+=2){var a=new fz(s[C],s[C+1]);l.push({type:x,o3:a.clone(),R:a.clone(),Ux:a.clone()})}return l};
L.j.fm=function(s,m){L.j.u7();var l=new paper.Path;l.remove();var x=s.length-1,a=Math.sqrt((s[x-1]-s[0])*(s[x-1]-s[0])+(s[x]-s[1])*(s[x]-s[1]))<3;
l.closed=a;for(var C=0;C<s.length;C+=2)l.add(new paper.Point(s[C],s[C+1]));l.simplify(m);var P=[{type:6},{type:8,all:0}];
P=P.concat(L.j.zF(l));return P};L.j.Kz=function(s,m,l){var x=s[m].length,a=s[m].type,P=0,o=s.slice(m+1,m+1+x);
for(var C=0;C<x;C++){var G=l[(C-1+x)%x],_=l[(C+1+x)%x],j=l[C];if(j!=0){var U=o[(C-1+x)%x].R,S=o[(C+0+x)%x].R,X=o[(C+1+x)%x].R,c=fz.rv(S,U),y=fz.rv(S,X),O=L.H.rA(U.x,U.y,S.x,S.y,X.x,X.y,j)[0],p=Math.min(O,G==0?c:c/2,_==0?y:y/2);
j*=p/O;var D=L.H.TC(U.x,U.y,S.x,S.y,X.x,X.y,j),f={type:a+1,o3:new fz(D[2],D[3]),R:new fz(D[2],D[3]),Ux:new fz(D[4],D[5])},T={type:a+1,o3:new fz(D[6],D[7]),R:new fz(D[8],D[9]),Ux:new fz(D[8],D[9])};
s.splice(m+P+1,1,f,T);P++;s[m].length++}P++}};L.j.$0=function(s){for(var C=0;C<s.length;C++){var m=s[C],l=m.type;
if(l==1||l==2||l==4||l==5)if(!m.R.yb(m.o3)||!m.R.yb(m.Ux))return!1}return!0};L.j.kQ=function(s){if(s.length!=7||!L.j.$0(s))return!1;
for(var C=0;C<4;C++){var m=!0;for(var l=0;l<4;l++){var x=s[3+(C+l&3)],a=s[3+(C+l+1&3)];if(x.R.x!=a.R.x&&x.R.y!=a.R.y)m=!1}if(m)return!0}return!1};
L.j.sh={};L.j.sh.Qa=function(s,m,l){var x=[{type:6},{type:8,all:0}],a=null;x.push({type:l?3:0,aZ:1,length:0,Xc:0,BG:0,pe:1});
if(m==0)a==null;else if(m instanceof Array)a=m;else{a=[];for(var C=0;C<s.length;C+=2)a.push(m)}x=x.concat(L.j.apJ(s,l));
x[2].length=x.length-3;if(a)L.j.Kz(x,2,a);return x};L.j.sh.a6F=function(s,m,l,x,a){var P=[],o=[],G=.553,_=1,j=-1;
P.push({type:1,o3:new fz(0,G),R:new fz(0,0),Ux:new fz(0,-G)});a+=2;for(var C=0;C<a;C++){var U={type:1};
if(C==0){U.R=new fz(1,-1);U.o3=new fz(1-G,-1);U.Ux=new fz(1+G,-1)}else{var S=-(C+2)*Math.PI/2,X=1+((C&1)==1?C-1:C),c=Math.sin(S),y=Math.cos(S);
_+=X*(c-y);j+=X*(y+c);U.R=new fz(_,j);U.o3=new fz(_+X*y*G,j-X*c*G);if((C&1)==1)X+=2;U.Ux=new fz(_-X*y*G,j+X*c*G)}var O={type:1,o3:new fz(-U.Ux.x,-U.Ux.y),R:new fz(-U.R.x,-U.R.y),Ux:new fz(-U.o3.x,-U.o3.y)};
P.push(U);if(C<a-2)o.push(O)}o.reverse();P=P.concat(o);var p=[{type:6},{type:8,all:0}];p.push({type:0,aZ:1,length:P.length,Xc:0,BG:0,pe:1});
p=p.concat(P);var D=new ae(l/a,0,0,l/a,0,0);D.rotate(x);D.translate(s,m);L.j.G9(p,D);return p};L.j.sh.Rect=function(s,m,l,x,a){var P=[s,m,s+l,m,s+l,m+x,s,m+x];
return L.j.sh.Qa(P,a)};L.j.sh.T_=function(s,m,l,x,a,P,o,G){var _=[],j=2*Math.PI/a;for(var C=0;C<a;C++)_.push(Math.cos(C*j-x),Math.sin(C*j-x));
if(o!=null){var U=L.H.ge(_),S=U.e,X=U.l,c=o/(S/2),y=G/(X/2);for(var C=0;C<_.length;C+=2){_[C]=(_[C]-(U.x+S/2))*c;
_[C+1]=(_[C+1]-(U.y+X/2))*y}l=1}var O=new ae(l,0,0,l,0,0);O.translate(s,m);L.H.A(_,O,_);return L.j.sh.Qa(_,P)};
L.j.sh.J7=function(s,m,l,x,a,P,o){var G=[],_=Math.PI/a;for(var C=0;C<a*2;C++){var j=(C&1)==0?1:o;G.push(j*Math.cos(C*_),j*Math.sin(C*_))}var U=new ae(l,0,0,l,0,0);
U.rotate(x);U.translate(s,m);L.H.A(G,U,G);return L.j.sh.Qa(G,P)};L.j.sh.bn=function(s,m,l,x,a){return L.j.sh.iD(0,s,m,l,x,a)};
L.j.sh.alJ=function(s,m,l,x,a,P){return L.j.sh.iD(1,s,m,l,x,a,P)};L.j.sh.iD=function(s,m,l,x,a,P,o){var G=Math.sqrt((x-m)*(x-m)+(a-l)*(a-l)),_;
P/=2;if(s==0)_=[-P,0,P,0,P,G,-P,G];else{var j=P*2*o*1.3/1.5,U=P*o;_=[-P,0,P,0,P,G-j,U,G-j,0,G,-U,G-j,-P,G-j]}var S=new ae(1,0,0,1,0,0);
S.rotate(Math.atan2(-a+l,x-m)+Math.PI/2);S.translate(m,l);L.H.A(_,S,_);return L.j.sh.Qa(_,0)};L.j.sh.$d=function(s,m,l,x){var a=[{type:6},{type:8,all:0}],S=.553;
a.push({type:0,aZ:1,length:4,Xc:0,BG:0,pe:1});var P=s,o=m,G=s+l,_=m+x,s=(P+G)/2,m=(o+_)/2,j=(P-G)/2,U=(o-_)/2;
a.push({type:1,o3:new fz(s-S*j,m-U),R:new fz(s,m-U),Ux:new fz(s+S*j,m-U)});a.push({type:1,o3:new fz(s+j,m-S*U),R:new fz(s+j,m),Ux:new fz(s+j,m+S*U)});
a.push({type:1,o3:new fz(s+S*j,m+U),R:new fz(s,m+U),Ux:new fz(s-S*j,m+U)});a.push({type:1,o3:new fz(s-j,m+S*U),R:new fz(s-j,m),Ux:new fz(s-j,m-S*U)});
return a};L.j.sh.aq3=function(s,m,l,x,a){var P=[{type:6},{type:8,all:0}];P.push({type:3,aZ:1,length:5,Xc:0,BG:0,pe:1});
var o=(a-x)/4;for(var C=0;C<5;C++){var G=C*o,_=Math.cos(G),j=Math.sin(G),U=.553*(o/(Math.PI/2)),S=j*U,X=-_*U,c=new fz(_,j);
P.push({type:4,o3:C==0?c.clone():new fz(_+S,j+X),R:c,Ux:C==4?c.clone():new fz(_-S,j-X)})}var y=new ae;
y.rotate(-x);y.scale(l,l);y.translate(s,m);L.j.G9(P,y);return P};L.Lv={};L.Lv.type={warpNone:[22,5,0],warpCustom:[22,5,16],warpArc:[22,5,1],warpArcLower:[22,5,2],warpArcUpper:[22,5,3],warpArch:[22,5,4],warpBulge:[22,5,5],warpShellLower:[22,5,6],warpShellUpper:[22,5,7],warpFlag:[22,5,8],warpWave:[22,5,9],warpFish:[22,5,10],warpRise:[22,5,11],warpFisheye:[22,5,12],warpInflate:[22,5,13],warpSqueeze:[22,5,14],warpTwist:[22,5,15]};
L.Lv.AY=function(s){var m=s.warpStyle.v.warpStyle;if(m=="warpNone")return!0;else if(m=="warpCustom"){var l=!1,x=s.customEnvelopeWarp.v.meshPoints.v.arr,a=x[0].arr,P=x[1].arr;
for(var C=0;C<4;C++)for(var o=0;o<4;o++){if(Math.abs(a[C]-a[o*4+C])>1||Math.abs(P[C*4]-P[C*4+o])>1)l=!0}return!l}else return s.warpValue.v==0&&s.warpPerspective.v==0&&s.warpPerspectiveOther.v==0};
L.Lv.B=function(s){var m={classID:"warp",warpStyle:{t:"enum",v:{warpStyle:"warpNone"}},warpValue:{t:"doub",v:0},warpPerspective:{t:"doub",v:0},warpPerspectiveOther:{t:"doub",v:0},warpRotate:{t:"enum",v:{Ornt:"Hrzn"}}};
if(s){m.bounds={t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:s.y}},Left:{t:"UntF",v:{type:"#Pxl",val:s.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:s.y+s.l}},Rght:{t:"UntF",v:{type:"#Pxl",val:s.x+s.e}}}};
m.uOrder={t:"long",v:4};m.vOrder={t:"long",v:4}}return m};L.Lv.a4R=function(s,m,l,x){for(var C=0;C<s.length;
C+=2){var a=s[C],P=s[C+1],o=(a-m.x)/m.e,G=(P-m.y)/m.l,_=(1-l)/2,j=1-_,U=_+o*(j-_);G=.5+(G-.5)*U*2;var S=(1-x)/2,X=1-S,c=S+G*(X-S);
o=.5+(o-.5)*c*2;a=m.x+o*m.e;P=m.y+G*m.l;s[C]=a;s[C+1]=P}};L.Lv._u=function(s,m){var l=[],x=[];for(var C=0;
C<s.length;C+=2){l.push(s[C]);x.push(s[C+1])}var a=[];a.push({id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:l});
a.push({id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:x});m.warpStyle.v.warpStyle="warpCustom";m.customEnvelopeWarp={t:"Objc",v:{classID:"customEnvelopeWarp",meshPoints:{t:"ObAr",v:{classID:"rationalPoint",arr:a}}}}};
L.Lv.Y4=function(s,m){if(m==null){var l=s.bounds.v,x=l.Left.v.val,a=l.Rght.v.val,P=l.Top.v.val,o=l.Btom.v.val;
m=new bU(x,P,a-x,o-P)}if(m.Xh())m.e=m.l=1;var G=[],_=s.warpStyle.v.warpStyle;if(_=="warpCustom"){var j=s.customEnvelopeWarp.v.meshPoints.v.arr,U=j[0].arr,S=j[1].arr;
for(var C=0;C<16;C++)G.push(U[C],S[C])}else G=L.Lv.Lv(m,_,s.warpRotate.v.Ornt=="Hrzn",s.warpValue.v/100,s.warpPerspective.v/100,s.warpPerspectiveOther.v/100);
return G};L.Lv.Lv=function(s,m,l,x,a,P){var o=L.k9.B(s.x,s.y,s.e,s.l);if(m=="warpNone")return o;var G=JSON.parse(JSON.stringify(s)),_=new ae;
if(!l){_.translate(-s.x,-s.y);_.rotate(-Math.PI/2);_.translate(s.l,0);L.H.A(o,_,o);s=new bU(0,0,s.l,s.e);
o=L.k9.nD(o,!1)}L.Lv.aoh(o,s,m,x,a,P);if(!l){o=L.k9.nD(o,!0);s=G;_.ms();L.H.A(o,_,o)}if(x==0)L.Lv.a4R(o,s,a,P);
else{var _=new ae(1/s.e,0,0,1/s.l,-s.x,-s.y);_.translate(-.5,-.5);L.H.A(o,_,o);L.Lv.ako(o,P,a);_.ms();
L.H.A(o,_,o)}return o};L.Lv.aoh=function(s,m,l,x,a,P){for(var C=0;C<4;C++){for(var o=0;o<4;o++){var G=2*(4*C+o),_=s[G]-m.x,j=s[G+1]-m.y,U=_,S=j;
if(x!=0){var X=m.e/2,c=m.l/2;U-=X;S-=c;var y=U,O=U,p=-c,D=c,f=Math.abs(x),T=Math.tan((1-f)*Math.PI/2),I=Math.sqrt(T*T+1),H=Math.atan2(1,T),b=U/X*H,R=X*I,W=X*I+m.l,J=Math.cos(H),u=Math.sin(H),e=L.Lv.afg(J,u),Q=L.Lv.as7(J,u),q=-T*X+e*R;
if(l=="warpArc"){y=Math.sin(b)*W;p=T*X-Math.cos(H)*W+c;O=Math.sin(b)*R;D=T*X-Math.cos(H)*R+c;if(o==1||o==2){y=o==1?-Q*W:Q*W;
O=o==1?-Q*R:Q*R;p=T*X+c-e*W;D=T*X+c-e*R}if(x<0){var Z=y;y=O;O=Z;Z=p;p=-D;D=-Z}}if(l=="warpArcLower"){if(o==1||o==2){O=o==1?-Q*R:Q*R;
D=x<0?c-q:c+q}}if(l=="warpArcUpper"||l=="warpArch"||l=="warpBulge"){if(o==1||o==2){y=o==1?-Q*R:Q*R;p=x<0?-c+q:-c-q}if(l=="warpArch"){O=y;
D=p+2*c}if(l=="warpBulge"){O=y;D=-p}}if(l=="warpFish"||l=="warpFlag"||l=="warpWave"){if(o==1){p-=x*4*c;
D+=x*4*c}if(o==2){p+=x*4*c;D-=x*4*c}if(l=="warpFlag"||l=="warpWave")p=D-2*c}if(l=="warpRise"){if(o<2)p=-c+x*c*4;
D=p+2*c}var E=(S+c)/m.l;U=y+E*(O-y);S=p+E*(D-p);if(l=="warpWave"){if(C==0)S=-c;if(C==3)S=c;if(C==1||C==2)S=2*c*(C/3-.5)*(1/3)+S*(2/3)}if(l=="warpFisheye"){if((C==1||C==2)&&(o==1||o==2)){U=U+4*U*x;
S=S+4*S*x}}if(l=="warpInflate"){var z=2/3;if((C==1||C==2)&&(o==1||o==2)){U=U+.5*U*x;S=S+.5*S*x}else if(C==1||C==2)U=U+z*U*x;
else if(o==1||o==2)S=S+z*S*x}if(l=="warpSqueeze"){var z=2/3;if((C==1||C==2)&&(o==1||o==2)){if(x>0)U=U-z*U*x;
else S=S+z*S*x}else if(C==1||C==2)U=U-z*U*x;else if(o==1||o==2)S=S+z*S*x}if(l=="warpTwist"){if((C==1||C==2)&&(o==1||o==2)){var V=x*Math.PI/2,I=1+Math.abs(x)*2,Y=U*Math.cos(V)-S*Math.sin(V),d=U*Math.sin(V)+S*Math.cos(V);
U=Y*I;S=d*I}}if(l=="warpShellLower"||l=="warpShellUpper"){if(l=="warpShellUpper"){C=3-C;S=-S}if(C>2||C==2&&(o==0||o==3)){if(x>0){var w=R+C/3*2*c;
U=Math.sin(b)*w;S=-T*X-c+Math.cos(b)*w;if(o==1||o==2){U=o==1?-Q*w:Q*w;S=-T*X-c+e*w}}else{if((o==1||o==2)&&C==3){U=o==1?-Q*R:Q*R;
S=T*X-e*R+c}else if(C==2){S=c-c*(2/3)*Math.cos(b);U=U+c*(2/3)*Math.sin(b)}}}if(l=="warpShellUpper"){C=3-C;
S=-S}}U+=X;S+=c}_=U,j=S;s[G]=_+m.x;s[G+1]=j+m.y}}};L.Lv.ako=function(s,m,l){var x=[];for(var a=0;a<4;
a++)x.push(1-l+a/3*2*l);var P=[];for(var a=0;a<4;a++)P.push(1-m+a/3*2*m);var o=[0,0,0,0],G=[0,0,0,0];
for(var C=0;C<4;C++)for(var a=0;a<4;a++){var _=2*(4*C+a),j=s[_],U=s[_+1];o[a]+=j/4;G[a]+=U/4}for(var C=0;
C<4;C++)for(var a=0;a<4;a++){var S=x[a],_=2*(4*C+a),j=s[_],U=s[_+1],X=o[a],c=G[a];s[_]=X+S*(j-X);s[_+1]=c+S*(U-c)}var y=s.slice(0);
for(var C=0;C<4;C++)for(var a=1;a<3;a++){var _=2*(4*C+a),j=s[_],U=s[_+1],O=_+(a==1?-2:2),p=s[O],D=s[O+1];
s[_]=j-p;s[_+1]=U-D}var f=s[0],T=s[1],I=s[8],H=s[9],b=s[16],R=s[17],W=s[24],J=s[25],u=s[6],e=s[7],Q=s[14],q=s[15],Z=s[22],E=s[23],z=s[30],V=s[31],Y=u-f,d=e-T,w=Q-I,A=q-H,$=Z-b,i=E-R,K=z-W,h=V-J;
for(var C=0;C<4;C++){var F=2*C*4,N=0,iQ=0,jB=C==1?.33:.66,k=1-jB;if(C==0){N=Y;iQ=d}if(C==1){N=k*Y+jB*-K;
iQ=k*d+jB*-h}if(C==2){N=k*Y+jB*-K;iQ=k*d+jB*-h}if(C==3){N=-K;iQ=-h}s[F]=s[F]+N/2;s[F+1]=s[F+1]+iQ/2;
s[F+6]=s[F+6]-N/2;s[F+7]=s[F+7]-iQ/2}for(var C=0;C<4;C++)for(var a=1;a<3;a++){var _=2*(4*C+a),j=s[_],U=s[_+1],O=_+(a==1?-2:2),p=s[O],D=s[O+1],S=2*C/3;
s[_]=p+S*j;s[_+1]=D+S*U}for(var C=1;C<3;C++)for(var a=1;a<3;a++){var _=2*(4*C+a),j=s[_],U=s[_+1],ab=C==1?-8:-16,f_=C==1?16:8,fc=s[_+ab],g8=s[_+ab+1],bH=s[_+f_],cR=s[_+f_+1],S=C/3;
j=(1-S)*fc+S*bH;U=(1-S)*g8+S*cR;s[_]=j;s[_+1]=U}L.H.Wm(y,s,s,m)};L.Lv.afg=function(s,m){return(4-s)*(1/3)};
L.Lv.as7=function(s,m){return(1-s)*(3-s)/(3*m)};L.on={};L.on.a5n=function(s,m,l,x,a,P,o,G,_,j){for(var U=0;
U<G;U++)for(var S=0;S<o;S++){var X=3*(U*o+S),c=U+P,y=S+a,O=s[c*m+y];x[X]=O;x[X+1]=O;x[X+2]=O}};L.on.yK=function(s,m,l,x,a,P,o,G,_,j){var U=[0,1,1/2,1/3,1/4,1/5,1/6,1/7,1/8,1/9],S=1/_,X=[-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1],c=new Uint32Array(6);
for(var y=0;y<G;y++){for(var O=0;O<o;O++){var p=3*(y*o+O),D=y+P,f=O+a;c[0]=0;c[1]=0;c[2]=0;c[3]=0;c[4]=0;
c[5]=0;for(var C=0;C<16;C+=2){var T=f+X[C],I=D+X[C+1],H=T-_*~~(T*S),b=I-_*~~(I*S),R=j[b*_+H];c[R]+=s[I*m+T];
c[R+3]++}var T=f,I=D,H=T-_*~~(T*S),b=I-_*~~(I*S),R=j[b*_+H];c[R]=s[D*m+f];c[R+3]=1;x[p]=c[0]*U[c[3]];
x[p+1]=c[1]*U[c[4]];x[p+2]=c[2]*U[c[5]]}}};L.on.qx=function(s,m,l){for(var C=0;C<l;C+=2)s[m+C]=s[m+C+1];
m=m+l;for(var C=0;C<l;C+=2)s[m+C+1]=s[m+C]};L.on._W=function(s,m,l,x){for(var C=0;C<x;C+=2){var a=m+C*l;
s[a]=s[a+l];s[a+l+1]=s[a+1]}};L.on.Kv=function(s,m,l,x,a,P){var o=x[a],G=x[a+1],_=x[P],j=x[P+1],U=G+_>>>1;
s[m]=s[m+3]=s[l]=s[l+3]=o;s[m+1]=U;s[m+4]=G;s[l+1]=_;s[l+4]=U;s[m+2]=s[m+5]=s[l+2]=s[l+5]=j};L.on.adB=function(s,m,l,x,a,P){var o=P*3;
for(var C=0;C<P;C+=2){var G=m+C,_=a+C*3;L.on.Kv(x,_,_+o,s,G,G+l)}};L.on.aiI=function(s,m,l,x,a,P,o){var G=P*3;
for(var C=0;C<o;C+=2){var _=m+C*l,j=a+C*P*3;L.on.Kv(x,j,j+G,s,_,_+l)}};L.on.sT=function(s,C,m){var l=s[C-m-m],x=s[C-m],a=s[C-2],P=s[C-1],o=s[C],G=s[C+1],_=s[C+2],j=s[C+m],U=s[C+m+m],S=Math.abs(x-j),X=Math.abs(P-G),c=Math.abs(o-l)*2+S,y=Math.abs(o-_)*2+X,O=Math.abs(o-a)*2+X,p=Math.abs(o-U)*2+S,D=Math.min(c,Math.min(y,Math.min(O,p)));
if(D==c)return x*3+j+o-l>>2;if(D==y)return G*3+P+o-_>>2;if(D==O)return P*3+G+o-a>>2;return j*3+x+o-U>>2};
L.on.ES=function(s,m,l,x,a){if(s<m&&m<l||s>m&&m>l)return~~(.5+x+(a-x)*(m-s)/(l-s));else return(x+a>>1)+(m+m-s-l>>2)};
L.on.np=function(s,m,C,l){var x=m[C-l-1],a=m[C-l+1],P=m[C],o=m[C+l-1],G=m[C+l+1],_=s[C-l-1],j=s[C-l+1],U=s[C],S=s[C+l-1],X=s[C+l+1],c=Math.abs(j-S)+Math.abs(s[C-l-l+2]-U)+Math.abs(U-s[C+l+l-2])+Math.abs(a-P)+Math.abs(P-o),y=Math.abs(_-X)+Math.abs(s[C-l-l-2]-U)+Math.abs(U-s[C+l+l+2])+Math.abs(x-P)+Math.abs(P-G);
if(c<y)return L.on.ES(a,P,o,j,S);else return L.on.ES(x,P,G,_,X)};L.on.Cq=function(s,m,l,x,a,P){s[m+0]=l[a];
s[m+1]=x[a];s[m+2]=L.on.np(l,x,a,P)};L.on.uw=function(s,m,l,x,a,P){var o=x[a];s[m+0]=L.on.ES(x[a-1],o,x[a+1],l[a-1],l[a+1]);
s[m+1]=o;s[m+2]=L.on.ES(x[a-P],o,x[a+P],l[a-P],l[a+P])};L.on.f3=function(s,m,l,x,a,P){var o=x[a];s[m+0]=L.on.ES(x[a-P],o,x[a+P],l[a-P],l[a+P]);
s[m+1]=o;s[m+2]=L.on.ES(x[a-1],o,x[a+1],l[a-1],l[a+1])};L.on._c=function(s,m,l,x,a,P){s[m+0]=L.on.np(l,x,a,P);
s[m+1]=x[a];s[m+2]=l[a]};L.on.aqp=function(s,m,l,x,a,P,o,G,_){var j=Date.now(),U=2,S=m-2,X=2;if((a&1)==1){U++;
S--}var c=l-2;if((P&1)==1){X++;c--}if(_==1||_==3){U++;S--}var y=s.slice(0);L.on.qx(y,0,m);L.on._W(y,0,m,l);
L.on._W(y,m-2,m,l);L.on.qx(y,(l-2)*m,m);for(var O=X;O<c;O+=2)for(var p=U;p<S;p+=2){var C=O*m+p,D=L.on.sT(y,C,m),f=L.on.sT(y,C+m+1,m);
y[C]=Math.max(0,D);y[C+m+1]=Math.max(0,f)}var T=o,I=G;if(P+G==l){I-=2;L.on.adB(s,(l-2)*m+a,m,x,(G-2)*o*3,o)}if(a+o==m){T-=2;
L.on.aiI(s,P*m+a+o-2,m,x,(o-2)*3,o,G)}if(_==0)for(var O=0;O<I;O+=2)for(var p=0;p<T;p+=2){var H=(O+P)*m+p+a,b=(O*o+p)*3;
L.on.Cq(x,b,s,y,H,m);L.on.uw(x,b+3,s,y,H+1,m);H+=m;b+=3*o;L.on.f3(x,b,s,y,H,m);L.on._c(x,b+3,s,y,H+1,m)}else if(_==1)for(var O=0;
O<I;O+=2)for(var p=0;p<T;p+=2){var H=(O+P)*m+p+a,b=(O*o+p)*3;L.on.uw(x,b,s,y,H,m);L.on.Cq(x,b+3,s,y,H+1,m);
H+=m;b+=3*o;L.on._c(x,b,s,y,H,m);L.on.f3(x,b+3,s,y,H+1,m)}else if(_==2)for(var O=0;O<I;O+=2)for(var p=0;
p<T;p+=2){var H=(O+P)*m+p+a,b=(O*o+p)*3;L.on._c(x,b,s,y,H,m);L.on.f3(x,b+3,s,y,H+1,m);H+=m;b+=3*o;L.on.uw(x,b,s,y,H,m);
L.on.Cq(x,b+3,s,y,H+1,m)}else if(_==3)for(var O=0;O<I;O+=2)for(var p=0;p<T;p+=2){var H=(O+P)*m+p+a,b=(O*o+p)*3;
L.on.f3(x,b,s,y,H,m);L.on._c(x,b+3,s,y,H+1,m);H+=m;b+=3*o;L.on.Cq(x,b,s,y,H,m);L.on.uw(x,b+3,s,y,H+1,m)}};
L.raw={};L.raw.apb=function(s){var m=Date.now(),l=s.width,x=s.height,a=0,P=0,o=l,G=x;if(s.t50829){var _=s.t50829;
a=_[1];P=_[0];o=_[3];G=_[2]}if(s.t50719){var j=s.t50719;a+=j[0]>>1<<1;P+=j[1]>>1<<1}if(s.t50720){var U=s.t50720;
o=a+U[0];G=P+U[1]}var S=o-a,X=G-P,c=L.raw.ajh(s),y=s.t33422,O=s.t33421;if(O){var U=O[0],p=y.slice(0);
for(var D=0;D<U;D++)for(var f=0;f<U;f++){var T=(f+(a&1))%U,I=(D+(P&1))%U;p[D*U+f]=y[I*U+T]}y=p}if(s.t277[0]==1)L.raw.ajQ(c,l,x,s,y);
L.raw.xH(2,s,c,l,x);var H=new Float32Array(S*X*3);if(s.t277[0]==1){if(O==null){L.on.a5n(c,l,x,H,a,P,S,X)}else if(O.length!=2||O[0]!=2||O[1]!=2){console.log("Unknown CFA pattern size",O);
L.on.yK(c,l,x,H,a,P,S,X,O[0],y)}else{var b=s.t33422.join(","),R=0;if(b=="0,1,1,2")R=0;else if(b=="1,0,2,1")R=1;
else if(b=="2,1,1,0")R=2;else if(b=="1,2,0,1")R=3;else throw"Unknown CFA pattern "+b;if((S&1)!=0||(X&1)!=0)throw"e";
L.on.aqp(c,l,x,H,a,P,S,X,R)}}else{for(var D=0;D<X;D++)for(var f=0;f<S;f++){var W=((D+P)*l+f+a)*3,J=(D*S+f)*3;
H[J+0]=c[W+0];H[J+1]=c[W+1];H[J+2]=c[W+2]}}var u=H,e=H.length,Q=L.raw.lv(s),q=1/Q;for(var C=0;C<e;C+=3){H[C]=u[C]*q;
H[C+1]=u[C+1]*q;H[C+2]=u[C+2]*q}L.raw.xH(3,s,H,S,X);var Z=s.BX,E=S,z=X;if(Z==1||Z==9){}else{var V=L.raw.PN(Z,S,X),J=0;
E=V[0];z=V[1];var Y=H.slice(0);for(var D=0;D<z;D++)for(var f=0;f<E;f++){var d=V[2]*f+V[3]*D+V[4],w=V[5]*f+V[6]*D+V[7],W=(w*S+d)*3;
H[J]=Y[W];H[J+1]=Y[W+1];H[J+2]=Y[W+2];J+=3}}return{du:H,p9:E,Km:z}};L.raw.PN=function(s,m,l){var x=m,a=l;
if(!1){}else if(s==2)return[m,l,-1,0,m-1,0,1,0];else if(s==3)return[m,l,-1,0,m-1,0,-1,l-1];else if(s==4)return[m,l,1,0,0,0,-1,l-1];
else if(s==5)return[l,m,0,1,0,1,0,0];else if(s==6)return[l,m,0,1,0,-1,0,l-1];else if(s==7)return[l,m,0,-1,m-1,-1,0,l-1];
else if(s==8)return[l,m,0,-1,m-1,1,0,0];else throw"unknown orientation "+s};L.raw.ajQ=function(s,m,l,x,a){var P=Date.now(),q=0,z=0;
if(L.raw.lv(x)>4e4){for(var C=0;C<s.length;C++)s[C]>>=1;var o=["t50714","t50715","t50712","t50717"];
for(var C=0;C<o.length;C++){var G=x[o[C]];if(G)for(var _=0;_<G.length;_++)G[_]>>>=1}console.log("remapping to lower bit depth")}var j=~~Math.sqrt(a.length),U=[-1,-1,0,-1,0,1,-1,0,0,0,1,0,-1,1,0,1,1,1],S=[];
for(var X=0;X<j;X++)for(var c=0;c<j;c++){var C=X*j+c,y=a[C],O=4,p=4,D=8,f=0,T=0;for(var _=0;_<18;_+=2){var I=(j+c+U[_])%j,H=(j+X+U[_+1])%j,b=a[H*j+I];
if(b==y){}else if(O==4){O=b;f=_}else if(p==4&&b!=O){p=b;T=_;break}}if(p<O){var R=p;p=O;O=R;R=T;T=f;f=R}if(O<y){var R=O;
O=y;y=R;R=f;f=D;D=R}if(p<O){var R=p;p=O;O=R;R=T;T=f;f=R}S[C*3]=U[D+1]*m+U[D];S[C*3+1]=U[f+1]*m+U[f];
S[C*3+2]=U[T+1]*m+U[T]}var W=~~(.996*L.raw.lv(x)),J=~~(.992*L.raw.lv(x)),u=x.t50728,e=[],Q=[0,0,0];for(var X=1;
X<l-1;X++)for(var c=1;c<m-1;c++){var C=X*m+c,Z=X%j*j+c%j,y=s[C+S[Z*3+0]],O=s[C+S[Z*3+1]],p=s[C+S[Z*3+2]],E=Math.max(y,O,p);
if(E>W)e.push(C);else if(E>J){Q[0]+=y;Q[1]+=O;Q[2]+=p;q++}}if(e.length==0)return;if(q/(m*l)<1e-5){console.log("not enough semi-saturated pixels",q);
Q=u}if(Q[1]<Q[z])z=1;if(Q[2]<Q[z])z=2;var V=[Q[0]/Q[z],Q[1]/Q[z],Q[2]/Q[z]],Y=s.slice(0);for(var d=0;
d<e.length;d++){var C=e[d],X=~~(C/m),c=C-X*m,Z=X%j*j+c%j,w=Math.min(65535,~~(s[C+S[Z*3+z]]*V[a[Z]]));
if(w>Y[C])Y[C]=w}s.set(Y)};L.raw.SB=function(s,m,l,x){var a=s.du,P=Math.round(a.length/3),o=a.slice(0);
L.raw.xB(a,o,l,x);var G=Math.pow(2,x[2]),_=new Uint8Array(4e3);for(var C=0;C<4e3;C++){var j=C*(1/1e3);
j=L.pK(j);j*=G;j=L.WF(j);j=Math.max(0,Math.min(1,j));j=L.raw.nF.ao6(j,x[3]/100);_[C]=~~(.5+255*j)}for(var C=0;
C<P;C++){var U=C<<2,S=U-C;m[U]=_[~~(o[S]*1e3)];m[U+1]=_[~~(o[S+1]*1e3)];m[U+2]=_[~~(o[S+2]*1e3)]}};L.raw.xB=function(s,m,l,x){var a=Math.round(s.length/3),P=cx.ahz(x[0],x[1]),o=L.raw.aas(l,P),G=L.G0.multiply(L.G0.sx,o),_=Math.pow(2,l.t50730?l.t50730[0]:0);
G=L.G0.multiply(G,L.G0.C2(_,_,_));var j=L.raw.xB.ac6;if(j==null){j=L.raw.xB.ac6=new Float64Array(8e3);
for(var C=0;C<8e3;C++)j[C]=L.WF(C*(1/1e3))}for(var C=0;C<a;C++){var U=C<<2,S=U-C,X=s[S],c=s[S+1],y=s[S+2],O=G[0]*X+G[1]*c+G[2]*y,p=G[4]*X+G[5]*c+G[6]*y,D=G[8]*X+G[9]*c+G[10]*y;
if(O<0)O=0;if(p<0)p=0;if(D<0)D=0;m[S]=j[~~(O*1e3)];m[S+1]=j[~~(p*1e3)];m[S+2]=j[~~(D*1e3)]}};L.raw.nF={ao6:function(s,m){var l=.5-.5*Math.cos(s*3.2),x=0;
if(m>0){var a=s*.2;x=a*s+(1-a)*l}else{var P=Math.pow(s,.33);x=(1-P)*P+P*(s+(s-l)*.63)}var o=Math.abs(m);
return o*x+(1-o)*s},ajg:function(s,m){var l=0;if(m>0){var x=s*1.47,a=Math.pow(s,2.4);l=Math.min(1,a*s+(1-a)*x)}else{var x=s*.68,a=Math.pow(s,3);
l=a*s*.5+(1-a)*x}var P=Math.abs(m);return P*l+(1-P)*s},anR:function(s,m){var l=0;if(m>0){var x=Math.pow(s,.3),a=s;
l=(1-s)*x+s*a}else{var x=Math.pow(s,2.5),P=s,a=s;l=Math.min(1,(1-P)*x+P*a)}var o=Math.abs(m);return o*l+(1-o)*s}};
L.raw.ajh=function(s){var m=s.width,l=s.height,x=m*l*s.t277,a=new Uint16Array(x),P=null,o=0;L.raw.ac2(s,a);
L.raw.xH(1,s,a,m,l);if(s.t50712){P=s.t50712;o=P.length-1;if(P[o]>65535)throw"too big values"}var G=L.raw.Ae(s),_=L.raw.T9(s);
if(P==null)for(var C=0;C<x;C++)a[C]=Math.max(0,a[C]-G);else for(var C=0;C<x;C++){var j=a[C];if(j>o)j=o;
j=P[j];a[C]=Math.max(0,j-G)}return a};L.raw.Ae=function(s){var m=s.t50714,l=m?m[0]:0,x=s.t50715,a=s.t50716;
if(x)l+=x[0][0]/x[0][1];if(a)l+=a[0][0]/a[0][1];return Math.round(l)};L.raw.T9=function(s){var m=null,l=0;
if(s.t50712){m=s.t50712;l=m.length-1}var x=s.t50717?s.t50717[0]:(1<<s.t258[0])-1;if(m)x=Math.min(x,m[l]);
return x};L.raw.lv=function(s){var m=L.raw.Ae(s),l=L.raw.T9(s);return l-m};L.raw.ac2=function(s,m){var l=m.length,x=s.data,a=s.t258[0];
if(a!=16&&a!=14&&a!=12&&a!=10&&a!=8)throw"Unsupported Bits Per Sample:"+a;a=Math.round(x.length*8/l);
if(a==16&&s.isLE){L.qv(x,m);return}for(var C=0;C<l;C+=2){var P=0,o=0,G=0;if(a==16){P=C<<1;o=x[P]<<8|x[P+1];
G=x[P+2]<<8|x[P+3]}else if(a==14){var _=C*14,j=_>>>3,U=x[j]<<24|x[j+1]<<16|x[j+2]<<8|x[j+3];if((_&7)==0){o=U>>>18;
G=U>>>4&16383}else{o=U>>>14&16383;G=U&16383}}else if(a==12){P=C+(C>>>1);o=x[P]<<4|x[P+1]>>4;G=(x[P+1]&15)<<8|x[P+2]}else if(a==10){var _=C*10,j=_>>>3;
if((_&7)==0){o=(x[j]<<2|x[j+1]>>6)&1023;G=(x[j+1]<<4|x[j+2]>>4)&1023}else{o=(x[j]<<6|x[j+1]>>2)&1023;
G=(x[j+1]<<8|x[j+2]>>0)&1023}}else if(a==8){P=C;o=x[P];G=x[P+1]}m[C]=o;m[C+1]=G}};L.raw.xH=function(s,m,l,x,a){var P=m["t"+[51008,51009,51022][s-1]],U=0;
if(P==null)return;var o=x*a,G=g.n,_=g.XR,j=new Uint8Array(P),dF=g.n(j,U);U+=4;for(var S=0;S<dF;S++){var X=G(j,U);
U+=4;var c=G(j,U);U+=4;var y=G(j,U);U+=4;var O=G(j,U);U+=4;if(!1){}else if(X==1&&s==3){var p=U,D=G(j,p);
p+=4;var f=_(j,p);p+=8;var T=_(j,p);p+=8;var I=_(j,p);p+=8;var H=_(j,p);p+=8;var b=_(j,p);p+=8;var R=_(j,p);
p+=8;p+=(D-1)*8*6;var W=_(j,p);p+=8;var J=_(j,p);p+=8;var u=W*x,e=J*a,Q=Math.max(u,x-u),q=Math.max(e,a-e),Z=Math.sqrt(Q*Q+q*q),E=1/Z,z=l.slice(0);
for(var V=0;V<a;V++)for(var Y=0;Y<x;Y++){var d=(Y+.5-u)*E,w=(V+.5-e)*E,A=d*d+w*w,$=f+T*A+I*(A*A)+H*(A*A)*A,i=b*(2*d*w)+R*(A+2*d*d),K=R*(2*d*w)+b*(A+2*w*w),h=~~(u+Z*($*d+i)),F=~~(e+Z*($*w+K)),N=(F*x+h)*3,iQ=(V*x+Y)*3;
l[iQ]=z[N];l[iQ+1]=z[N+1];l[iQ+2]=z[N+2]}}else if(X==3&&s==3){var p=U,jB=_(j,p);p+=8;var k=_(j,p);p+=8;
var ab=_(j,p);p+=8;var f_=_(j,p);p+=8;var fc=_(j,p);p+=8;var W=_(j,p);p+=8;var J=_(j,p);p+=8;var u=W*x,e=J*a,Q=Math.max(u,x-u),q=Math.max(e,a-e),Z=Math.sqrt(Q*Q+q*q),E=1/Z;
for(var V=0;V<a;V++)for(var Y=0;Y<x;Y++){var d=(Y+.5-u)*E,w=(V+.5-e)*E,A=d*d+w*w,g8=1+(jB+(k+(ab+(f_+fc*A)*A)*A)*A)*A,iQ=(V*x+Y)*3;
l[iQ]=g8*l[iQ];l[iQ+1]=g8*l[iQ+1];l[iQ+2]=g8*l[iQ+2]}}else if(X==4&&s==1){var p=U,bH=G(j,p);p+=4;var cR=G(j,p);
p+=4;for(var C=0;C<o;C++)if(l[C]==bH)l[C]=l[C-2]+l[C+2]>>1}else if(X==5&&s==1){var p=U,hr=G(j,p);p+=4;
var h$=G(j,p);p+=4;var gE=G(j,p);p+=4;for(var C=0;C<h$;C++){var d8=G(j,p);p+=4;var hG=G(j,p);p+=4;var C=d8*x+hG;
l[C]=l[C-2]+l[C+2]>>1}}else if(X==7&&s==1){var p=U,f7=g.T8(j,p);p+=16;var hX=G(j,p);p+=4;var fB=G(j,p);
p+=4;var e5=G(j,p),g9=G(j,p+4);p+=8;var cL=G(j,p);p+=4;var bf=new Uint16Array(cL);for(var C=0;C<cL;C++)bf[C]=g.hi(j,p+2*C);
var gF=f7.e,iC=f7.l;for(var V=0;V<iC;V+=e5)for(var Y=0;Y<gF;Y+=g9){var C=(f7.y+V)*x+(f7.x+Y);l[C]=bf[l[C]]}}else if(X==8&&s==2){var p=U,f7=g.T8(j,p);
p+=16;var hX=G(j,p);p+=4;var fB=G(j,p);p+=4;var e5=G(j,p),g9=G(j,p+4);p+=8;var ax=G(j,p);p+=4;var e7=[];
for(var C=0;C<=ax;C++)e7[C]=g.XR(j,p+C*8);var dO=f7.x,h1=f7.x+f7.e,hL=f7.y,jl=f7.y+f7.l,gT=m.t50717[0],hZ=1/gT;
for(var j6=0;j6<fB;j6++)for(var V=hL;V<jl;V+=e5){var iQ=3*V*x+hX+j6;for(var Y=dO;Y<h1;Y+=g9){var C=iQ+3*Y,aP=l[C]*hZ,h7=e7[ax];
for(var fa=ax;fa>0;fa--)h7=h7*aP+e7[fa-1];l[C]=Math.max(0,Math.min(65535,~~(h7*gT)))}}}else if(X==9&&s==2){var p=U,f7=g.T8(j,p),j4=!0;
p+=16;var hX=G(j,p);p+=4;var fB=G(j,p);p+=4;var e5=G(j,p),g9=G(j,p+4);p+=8;var h4=G(j,p),cA=G(j,p+4);
p+=8;var jg=_(j,p),cS=_(j,p+8);p+=16;var iT=_(j,p),cf=_(j,p+8);p+=16;var ir=G(j,p);p+=4;if(ir!=1)throw"more than one map plane";
var bl=h4*cA,gp=new Float32Array(bl);for(var fa=0;fa<bl;fa++)gp[fa]=g.gq(j,p+fa*4);for(var fa=0;fa<bl;
fa++)if(gp[fa]!=1)j4=!1;if(!j4){var gF=f7.e,iC=f7.l,ey=.9999*(cA-1)/gF,ca=.9999*(h4-1)/iC;for(var V=0;
V<iC;V+=e5)for(var Y=0;Y<gF;Y+=g9){var C=(f7.y+V)*x+(f7.x+Y),iu=Y*ey,jv=V*ca,g$=Math.floor(iu),cy=Math.floor(jv),cK=iu-g$,cN=jv-cy,iQ=cy*cA+g$,cJ=gp[iQ]*(1-cK)+gp[iQ+1]*cK,fb=gp[iQ+cA]*(1-cK)+gp[iQ+1+cA]*cK,cd=cJ*(1-cN)+fb*cN;
l[C]=Math.max(0,Math.min(65535,~~(l[C]*cd+.5)))}}}else console.log("Unknown opcode "+X+" in OpcodeList"+s+". Length: "+O);
U+=O}};L.raw.aas=function(s,m){var l=cx.hK(m),x=L.raw.nk(s,m),a=L.G0.ms(x),P=cx.ai4(l,cx.hK(cx.ags)),o=L.G0.multiply(P,a);
return o};L.raw.ak5=function(s){var m=(s.t50728?s.t50728:[1,1,1]).slice(0),x=1;m.push(0);var l={x:.34567,y:.3585};
do{var a=L.G0.ms(L.raw.nk(s,l)),P=L.G0.mC(a,m),o=cx.acB(P);x=Math.abs(l.x-o.x)+Math.abs(l.y-o.y);l=o}while(x>1e-7);
return l};L.raw.nk=function(s,m){var l=cx.B3(m),x=L.raw.anD,a=s.t50778?s.t50778[0]:0,P=s.t50779?s.t50779[0]:0,o=x(s.t50721,s.t50722,a,P,l.Zx),G=x(s.t50723,s.t50724,a,P,l.Zx);
o=o||[1,0,0,0,1,0,0,0,1];G=G||[1,0,0,0,1,0,0,0,1];var _=s.t50727?[s.t50727[0],0,0,0,s.t50727[1],0,0,0,s.t50727[2]]:[1,0,0,0,1,0,0,0,1];
return L.G0.multiply(L.G0.XS(_),L.G0.multiply(L.G0.XS(G),L.G0.XS(o)))};L.raw.anD=function(s,m,l,x,a){if(!s&&!m){return null}else if(s&&!m){return s}else if(a<l){return s}else if(a>x){return m}else{var P=(1/a-1/x)/(1/l-1/x),o=1-P,G=[];
for(var C=0;C<9;C++)G[C]=s[C]*P+m[C]*o;return G}};var cx={};cx.ags={x:.34567,y:.3585};cx.U$=[{o:0,BN:.18006,yt:.26352,gN:-.24341},{o:10,BN:.18066,yt:.26589,gN:-.25479},{o:20,BN:.18133,yt:.26846,gN:-.26876},{o:30,BN:.18208,yt:.27119,gN:-.28539},{o:40,BN:.18293,yt:.27407,gN:-.3047},{o:50,BN:.18388,yt:.27709,gN:-.32675},{o:60,BN:.18494,yt:.28021,gN:-.35156},{o:70,BN:.18611,yt:.28342,gN:-.37915},{o:80,BN:.1874,yt:.28668,gN:-.40955},{o:90,BN:.1888,yt:.28997,gN:-.44278},{o:100,BN:.19032,yt:.29326,gN:-.47888},{o:125,BN:.19462,yt:.30141,gN:-.58204},{o:150,BN:.19962,yt:.30921,gN:-.70471},{o:175,BN:.20525,yt:.31647,gN:-.84901},{o:200,BN:.21142,yt:.32312,gN:-1.0182},{o:225,BN:.21807,yt:.32909,gN:-1.2168},{o:250,BN:.22511,yt:.33439,gN:-1.4512},{o:275,BN:.23247,yt:.33904,gN:-1.7298},{o:300,BN:.2401,yt:.34308,gN:-2.0637},{o:325,BN:.24792,yt:.34655,gN:-2.4681},{o:350,BN:.25591,yt:.34951,gN:-2.9641},{o:375,BN:.264,yt:.352,gN:-3.5814},{o:400,BN:.27218,yt:.35407,gN:-4.3633},{o:425,BN:.28039,yt:.35577,gN:-5.3762},{o:450,BN:.28863,yt:.35714,gN:-6.7262},{o:475,BN:.29685,yt:.35823,gN:-8.5955},{o:500,BN:.30505,yt:.35907,gN:-11.324},{o:525,BN:.3132,yt:.35968,gN:-15.628},{o:550,BN:.32129,yt:.36011,gN:-23.325},{o:575,BN:.32931,yt:.36038,gN:-40.77},{o:600,BN:.33724,yt:.36051,gN:-116.45}];
cx.B3=function(s){var m=cx.U$,l=2*s.x/(1.5-s.x+6*s.y),x=3*s.y/(1.5-s.x+6*s.y),a=0,P=0,o=0;for(;o<31;
o++){a=x-m[o].yt-m[o].gN*(l-m[o].BN);if(o>0&&a<0){break}P=a}while(o>=m.length)o--;a/=Math.sqrt(1+m[o].gN*m[o].gN);
P/=Math.sqrt(1+m[o-1].gN*m[o-1].gN);var G=P/(P-a),_=1e6/((m[o].o-m[o-1].o)*G+m[o-1].o),j=l-((m[o].BN-m[o-1].BN)*G+m[o-1].BN),U=x-((m[o].yt-m[o-1].yt)*G+m[o-1].yt),S=Math.sqrt(1+m[o].gN*m[o].gN),X=1/S,c=m[o].gN/S,y=Math.sqrt(1+m[o-1].gN*m[o-1].gN),O=1/y,p=m[o-1].gN/y,D=(X-O)*G+O,f=(c-p)*G+p,T=Math.sqrt(D*D+f*f);
D/=T;f/=T;var I=(j*D+U*f)*-3e3;return{Zx:_,ce:I}};cx.ahz=function(s,m){var l=cx.U$,x=1e6/s,a=1;for(;
a<31;a++){if(x<l[a].o){break}}var P=(l[a].o-x)/(l[a].o-l[a-1].o),o=(l[a-1].BN-l[a].BN)*P+l[a].BN,G=(l[a-1].yt-l[a].yt)*P+l[a].yt,_=Math.sqrt(1+l[a].gN*l[a].gN),j=1/_,U=l[a].gN/_,S=Math.sqrt(1+l[a-1].gN*l[a-1].gN),X=1/S,c=l[a-1].gN/S,y=(X-j)*P+j,O=(c-U)*P+U,p=Math.sqrt(y*y+O*O);
y/=p;O/=p;o+=y*m/-3e3;G+=O*m/-3e3;return{x:1.5*o/(o-4*G+2),y:G/(o-4*G+2)}};cx.acB=function(s){var m=s[0]+s[1]+s[2];
return{x:s[0]/m,y:s[1]/m}};cx.hK=function(s){return{x:s.x/s.y,y:1,DX:(1-s.x-s.y)/s.y}};cx.ai4=function(s,m){var l=L.G0.XS([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),x=[s.x,s.y,s.DX,0],a=[m.x,m.y,m.DX,0];
x=L.G0.mC(l,x);a=L.G0.mC(l,a);var P=a[0]/x[0],o=a[1]/x[1],G=a[2]/x[2],_=L.G0.XS([P,0,0,0,o,0,0,0,G]),j=L.G0.ms(l);
return L.G0.multiply(L.G0.multiply(j,_),l)};L.raw.ov={};L.raw.Z9=function(s){s*=8;var m=[8,10,12,14,16];
for(var l in CAMS){var x=CAMS[l];if(x.length==4)continue;var a=x[4],P=x[5];for(var C=0;C<m.length;C++)if(a*P*m[C]==s)return[l,m[C]]}var o=[[4e3,3e3]];
for(var C=0;C<o.length;C++){var x=o[C],a=x[0],P=x[1];for(var C=0;C<m.length;C++)if(a*P*m[C]==s)return[x,m[C]]}return null};
L.raw.aoO=function(s){var s=new Uint8Array(s);for(var C=0;C<s.length;C+=2){var m=s[C];s[C]=s[C+1];s[C+1]=m}var l=L.raw.Z9(s.length),x=CAMS[l[0]];
if(x==null)x=[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],0,1e3,64383,l[0][0],l[0][1]];var a=x[4],P=x[5],o=Math.max(x[2],116),G={data:s,BX:1,width:a,height:P,t256:[a],t257:[P],t258:[l[1]],t277:[1],t33421:[2,2],t33422:L.raw.vn[x[1]],t50706:[1,2,0,0],t50714:[o,o,o,o],t50717:[x[3]],t50721:x[0].slice(0),t50723:[1,0,0,0,1,0,0,0,1],t50728:[.64,1,.46],t50778:[17]};
for(var C=0;C<9;C++)G.t50721[C]/=1e4;return G};L.raw.l3=function(s){if(s==null||s.length==0||typeof s[0]=="number")return s;
var m=[];for(var C=0;C<s.length;C++)m[C]=s[C][1]==0?0:s[C][0]/s[C][1];return m};L.raw.vn=[[2,1,1,0],[0,1,1,2],[1,0,2,1],[1,2,0,1]];
L.raw.normalize=function(s,m){if(s.t50706!=null||s.t271[0].startsWith("Hasselblad")){var l=[50714,50718,50719,50720,50721,50722,50723,50724,50727,50728,50730,50731,50732,50734,50736,50738,50739,50780,50964,50965];
for(var C=0;C<l.length;C++)if(s["t"+l[C]]!=null)s["t"+l[C]]=L.raw.l3(s["t"+l[C]]);if(s.t271&&s.t271[0].startsWith("Hasselblad")){s.t50706=[1,2,0,0];
s.t33422=L.raw.vn[1];s.t50723=[1,0,0,0,1,0,0,0,1];s.t50778=[17];if(!s.isLE)for(var C=0;C<s.data.length;
C+=2){var x=s.data[C];s.data[C]=s.data[C+1];s.data[C+1]=x}}return}var a=s.t258[0],P=s.exifIFD,m=new Uint8Array(m);
s.t50706=[1,2,0,0];var o=s.t272[0].trim();if(o.indexOf(" ")==-1)o=s.t271[0].trim()+" "+o;if(s.t50708==null)s.t50708=[o];
var G=o.toLowerCase(),_=CAMS,j=_[G];if(j==null)for(var U in _)if(G.startsWith(U))j=_[U];if(j==null)alert("Unknown camera:"+o);
else{var S=j[2];s.t50714=[S,S,S,S];s.t50717=[j[3]];s.t50721=j[0].slice(0);for(var C=0;C<9;C++)s.t50721[C]=s.t50721[C]*(1/1e4)}s.t50723=[1,0,0,0,1,0,0,0,1];
if(s.t50728==null)s.t50728=[.35,1,.6];s.t50778=[17];if(s.t271[0].startsWith("SONY")){var X=UTIF["_bin"+(s.isLE?"LE":"BE")],c=s.t28688,I;
if(JSON.stringify(c)!="[8000,10400,12900,14100]")console.log(c);if(c){var y=[0,0,0,0,0,4095],O=new Uint16Array(16385);
for(var C=0;C<4;C++){var p=c[C]>>>2;y[C+1]=p;if(p>4095)throw"e"}for(var C=0;C<16385;C++)O[C]=C;for(var C=0;
C<5;C++)for(var D=y[C]+1;D<=y[C+1];D++)O[D]=O[D-1]+(1<<C);var f=m.length*8<s.width*s.height*a;if(f)s.t50712=O}else console.log("no curve");
var T=s.dngPrvt;if(T){var H=T.t29184[0],b=T.t29185[0],R=(s.isLE?g.Cu:g.n)(T.t29217,0),W=new Uint32Array(m.slice(H,H+(b&4294967292)).buffer),J=new Uint32Array(b>>>2);
L.raw.af6(W,J,b>>>2,R);var u=new Uint8Array(H+b);u.set(new Uint8Array(J.buffer),H);var e=[];UTIF._readIFD(X,u,H,e,0,!1);
var Q=e.pop(),q=Q.t29458;s.t50728=[q[1]/q[0],1,q[1]/q[3]];s.t50730=[.5];var Z=Q.t29891;s.t50829=[Z[1],Z[0],Z[3],Z[2]]}else if(P.makerNote&&P.makerNote.t8208){var I=P.makerNote,E=I.t8208,z=E.length,V=0,Y=new Uint8Array(256);
for(var C=249;C<256;C++)Y[C]=C;for(var C=0;C<249;C++)Y[C*C*C%249]=C;for(var C=0;C<z;C++)E[C]=Y[E[C]];
if(z==6604)V=612;else throw"e";var q=[];for(var C=0;C<3;C++)q.push(g.B6(E,V+C*2));console.log(q);s.t50728=[q[1]/q[0],1,q[1]/q[2]]}else console.log("no white balance");
if(s.width*s.height*1.5==s.t279[0]){S=S>>>2;s.t50714=[S,S,S,S];s.t50717=[j[3]>>>2]}}else if(s.t271[0].startsWith("Canon")){var m=s.data,d=m.slice(0),w=s.t50752,A=[],i=0;
if(w==null||w[0]==0&&w[1]==0)A.push(s.width);else{for(var C=0;C<w[0];C++)A.push(w[1]);A.push(w[2])}var $=s.width*2;
for(var K=0;K<A.length;K++){var h=A[K],F=2*i,N=2*h;for(var iQ=0;iQ<s.height;iQ+=2){var jB=iQ*$+F,k=s.height*F+(iQ>>1)*N*2;
for(var C=0;C<N;C++){m[jB+C]=d[k+C];m[jB+C+$]=d[k+C+N]}}i+=h}var I=P.makerNote;if(I.t16385){var ab=I.t224,g8=0;
if(ab){s.t50719=[ab[5],ab[6]];s.t50720=[ab[7]+1-ab[5],ab[8]+1-ab[6]]}var f_=I.t16385,fc=f_.length;if(fc==582)g8=1;
else if(fc==653)g8=2;else if(fc==796)g8=3;else if([692,674,702,1227,1250,1251,1337,1338,1346].indexOf(fc)!=-1)g8=4;
else if(fc==5120){g8=5;f_=new Int16Array(f_.slice(0).buffer)}else if(fc==1273||fc==1275)g8=6;else if([1312,1313,1316,1506].indexOf(fc)!=-1)g8=7;
else if([1560,1592,1353,1602].indexOf(fc)!=-1)g8=8;else throw"e"+fc;var bH=f_[0],cR=[null,[25,166],[34,286],[63,196],[63],[71,bH==-4?333:264],[63,251],[63,bH==10?504:728],[63,326]],V=cR[g8][0],hr=cR[g8][1];
if(g8==4){if(f_[0]==2)hr=231;else if(f_[0]==3)hr=231;else if(f_[0]==4)hr=231;else if(f_[0]==5)hr=231;
else if(f_[0]==6)hr=231;else if(f_[0]==7)hr=231;else if(f_[0]==9)hr=231;else throw"e"}s.t50728=[f_[V+1]/f_[V],1,f_[V+1]/f_[V+3]];
var S=hr==null?1024:f_[hr];if(g8!=4)s.t50714=[S,S,S,S]}else{s.t50728=[.4,1,.6]}}else if(s.t271[0].startsWith("NIKON")){var I=P.makerNote,h$=s.isLE?g.B6:g._$,fB=0,e5=0,gF,jl=0;
if(I.t61){var gE=I.t61,d8=[];for(var C=0;C<4;C++)d8[C]=gE[C]/Math.pow(2,14-a);s.t50714=d8}if(I.t3585){var hG=I.t3585,C=0,H=22;
while(H<hG.length&&C!=-4){var f7=g.Cu(hG,H);H+=4;H+=14;C=g.Cu(hG,H)-4;H+=4;if(f7==1990472198){if(hG[H]!=0)throw"Flip"}if(f7==1990472199){var hX=g.B6(hG,H);
if(hX==0)s.BX=1;else if(hX==270)s.BX=8;else throw"e "+hX}H+=C}}if(I.t183){var g9=I.t183,cL=[];for(var C=0;
C<6;C++)cL.push(h$(g9,16+C*2));fB=cL[0];e5=cL[1]}if(I.t3614){var bf=I.t3614;fB=g.Cu(bf,8);e5=g.Cu(bf,12)}if(fB!=0){if(fB<e5){var x=fB;
fB=e5;e5=x}var i=s.width-fB>>>1,iQ=s.height-e5>>>1;s.t50829=[iQ,i,iQ+e5,i+fB]}if(I.t12){var iC=L.raw.l3(I.t12);
gF=[1/iC[0],1,1/iC[1]]}else if(I.t151){var ax=L.raw.aqi(I,151),e7=ax[0],aZ=ax[1],dO=ax[2];if(e7=="0100"&&aZ>=80)throw"e";
else if(e7=="0102"){var h1=[];for(var C=0;C<4;C++)h1.push(h$(dO,6+C*2));gF=[h1[1]/h1[0],1,h1[1]/h1[3]]}else if(e7=="0103"&&aZ>=26){var h1=[];
for(var C=0;C<4;C++)h1.push(h$(dO,16+C*2));gF=[h1[1]/h1[0],1,h1[3]/h1[2]]}else if(e7=="0204"&&aZ>=564||e7=="0205"&&aZ>=284){var H=e7=="0204"?6:14,h1=[];
for(var C=0;C<4;C++)h1.push(h$(dO,H+C*2));gF=[h1[1]/h1[0],1,h1[1]/h1[3]]}else throw"e"}else console.log("no white balance info");
if(o=="NIKON D1")gF=[1,1,1];if(gF)s.t50728=gF;var hL=I.t150?I.t150:I.t140;if(hL){var gT=hL[jl++],hZ=hL[jl++],h7;
if(gT==73||hZ==88)jl+=2110;jl+=8;var j6=1<<a&32767,aP=h$(hL,jl);jl+=2;var O=[];if(aP>1)h7=Math.floor(j6/(aP-1));
if(gT==68&&hZ==32&&h7>0){for(C=0;C<aP;C++){O[C*h7]=h$(hL,jl);jl+=2}for(C=0;C<j6;C++)O[C]=Math.floor((O[C-C%h7]*(h7-C%h7)+O[C-C%h7+h7]*(C%h7))/h7)}else if(gT!=70&&aP<=16385){j6=aP;
for(var C=0;C<aP;C++)O[C]=h$(hL,jl+2*C);jl+=2*aP}if(O.length!=0)s.t50712=new Uint16Array(O);else if(s.t272[0]=="NIKON D750")s.t50717[0]*=4}}else if(o.startsWith("FujiFilm")){}else alert("Unknown camera "+o)};
L.raw.af6=function(s,m,l,x){if(0==l)return;var a=new Uint32Array(128),P=new Uint8Array(a.buffer),o=127,G=0,_=0;
for(var o=0;o<4;o++)a[o]=x=(x*15625>>>0)*3125+1>>>0;a[3]=a[3]<<1|(a[0]^a[2])>>>31;for(var o=4;o<127;
o++)a[o]=(a[o-4]^a[o-2])<<1|(a[o-3]^a[o-1])>>>31;for(var o=0;o<127;o++)a[o]=g.n(P,o*4);for(;l>0;l--){a[o&127]=a[o+1&127]^a[o+1+64&127];
var j=a[o&127],U=s[G];U^=j;m[_]=U;G++;_++;o++}};L.raw.ar8=function(s,m){var l=g.cS(m,0,4),x=L.raw.aj8;
for(var C=0;C<x.length;C++)if(x[C][0]==s&&l.startsWith(x[C][1])&&(x[C][2]==0||x[C][2]==m.length))return x[C];
throw"e"};L.raw.aey=function(s){if(s.t29==null)return[];var m=L.raw.aoK,l=L.raw.arG,x=s.t29[0],a=0,o=0;
for(var C=0;C<x.length;C++){var P=x.charCodeAt(C);a=a*10+(48<=P&&P<=57?P-48:P%10)}var aZ=s.t167[0];for(var C=0;
C<4;C++)o^=aZ>>>(C<<3)&255;var G=m[a&255],_=l[o&255];return[G,_,96]};L.raw.aqi=function(s,m){var l=s["t"+m],aZ=l.length,x=L.raw.ar8(m,l),a=g.cS(l,0,4),P,o=x[4];
if(o==null)P=l.slice(4);else{P=new Uint8Array(aZ-o);var G=L.raw.aey(s),_=G[0],j=G[1],U=G[2];for(var C=0;
C<P.length;C++){j=j+_*U++&255;P[C]=l[o++]^j}}return[a,aZ,P]};L.raw.aj8=[[145,"0208",0,0,4],[145,"0209",0,1,4],[145,"0210",5291,2,4],[145,"0210",5303,3,4],[145,"02",0,4,4],[145,"01",0,5,null],[151,"0100",0,0,null],[151,"0102",0,1,null],[151,"0103",0,4,null],[151,"0204",0,3,284],[151,"0205",0,2,4],[151,"0206",0,3,284],[151,"0207",0,3,284],[151,"0208",0,3,284],[151,"0209",0,5,284],[151,"02",0,3,284],[152,"0100",0,0,null],[152,"0101",0,1,null],[152,"0201",0,1,4],[152,"0202",0,1,4],[152,"0203",0,1,4],[152,"0204",0,2,4],[168,"0100",0,0,null],[168,"0101",0,0,null],[168,"0102",0,1,null],[168,"0103",0,2,null]];
L.raw.aoK=[193,191,109,13,89,197,19,157,131,97,107,79,199,127,61,61,83,89,227,199,233,47,149,167,149,31,223,127,43,41,199,13,223,7,239,113,137,61,19,61,59,19,251,13,137,193,101,31,179,13,107,41,227,251,239,163,107,71,127,149,53,167,71,79,199,241,89,149,53,17,41,97,241,61,179,43,13,67,137,193,157,157,137,101,241,233,223,191,61,127,83,151,229,233,149,23,29,61,139,251,199,227,103,167,7,241,113,167,83,181,41,137,229,43,167,23,41,233,79,197,101,109,107,239,13,137,73,47,179,67,83,101,29,73,163,19,137,89,239,107,239,101,29,11,89,19,227,79,157,179,41,67,43,7,29,149,89,89,71,251,229,233,97,71,47,53,127,23,127,239,127,149,149,113,211,163,11,113,163,173,11,59,181,251,163,191,79,131,29,173,233,47,113,101,163,229,7,53,61,13,181,233,229,71,59,157,239,53,163,191,179,223,83,211,151,83,73,113,7,53,97,113,47,67,47,17,223,23,151,251,149,59,127,107,211,37,191,173,199,197,197,181,139,239,47,211,7,107,37,73,149,37,73,109,113,199];
L.raw.arG=[167,188,201,173,145,223,133,229,212,120,213,23,70,124,41,76,77,3,233,37,104,17,134,179,189,247,111,97,34,162,38,52,42,190,30,70,20,104,157,68,24,194,64,244,126,95,27,173,11,148,182,103,180,11,225,234,149,156,102,220,231,93,108,5,218,213,223,122,239,246,219,31,130,76,192,104,71,161,189,238,57,80,86,74,221,223,165,248,198,218,202,144,202,1,66,157,139,12,115,67,117,5,148,222,36,179,128,52,229,44,220,155,63,202,51,69,208,219,95,245,82,195,33,218,226,34,114,107,62,208,91,168,135,140,6,93,15,221,9,25,147,208,185,252,139,15,132,96,51,28,155,69,241,240,163,148,58,18,119,51,77,68,120,40,60,158,253,101,87,22,148,107,251,89,208,200,34,54,219,210,99,152,67,161,4,135,134,247,166,38,187,214,89,77,191,106,46,170,43,239,230,120,182,78,224,47,220,124,190,87,25,50,126,42,208,184,186,41,0,60,82,125,168,73,59,45,235,37,73,250,163,170,57,167,197,167,80,17,54,251,198,103,74,245,165,18,101,126,176,223,175,78,179,97,127,47];
L.dI={};L.dI.dI=function(s,m,l,x,a){if(x==null)x=3;if(a==null)a=!0;var P=s.e,o=s.l,G=1/P,_=P*o,j=Date.now(),U=!1,S=L.dI.OE(l,P,o,255,128),X=L.dI.OE(l,P,o,0,128),jB=0;
if(U)console.log("extract contours",Date.now()-j);j=Date.now();var c=function(h7,fa){var h4=h7<<2,cA=fa<<2;
return m[h4]+m[h4+1]+m[h4+2]-(m[cA]+m[cA+1]+m[cA+2])};S.sort(c);X.sort(c);var y=L.B(_),O=L.B(_),p=[],D=new Uint32Array(P*o);
D.fill(4294967295);for(var C=0;C<_;C++)if(l[C]==0)O[C]=255;else if(l[C]==255)y[C]=255;else{D[C]=p.length;
p.push(C)}var f=S.length,T=X.length,I=p.length;function H(h7,fa,h4,cA){var jg=h7.length,cS=new Array(jg*2);
for(var C=0;C<jg;C++){var V=h7[C],Y=~~(V*cA),d=V-Y*h4,jl=V<<2;cS[C*2]=d<<16|Y;cS[C*2+1]=fa[jl]<<16|fa[jl+1]<<8|fa[jl+2]}return cS}var b=H(S,m,P,G),R=H(X,m,P,G),W=H(p,m,P,G);
if(U)console.log("Itemize",Date.now()-j,"Unknown:",I,f,T);j=Date.now();var J=L.style.mr(y,P,o,!0),u=L.style.mr(O,P,o,!0),e=new Array(I),Q=new Array(I),q=new Array(I),Z=new Array(I),E=new Array(I);
if(U)console.log("Dist transform",Date.now()-j);j=Date.now();var z=L.dI.c4;for(var C=0;C<I;C++){var V=p[C],Y=~~(V*G),d=V-Y*P,w=J[V<<1],A=J[(V<<1)+1],$=Math.sqrt(w*w+A*A),i=u[V<<1],K=u[(V<<1)+1],h=Math.sqrt(i*i+K*K);
e[C]=1/$;Q[C]=1/h;var F=Math.floor(L.a.a8(V*17)*f),N=Math.floor(L.a.a8(V*19)*T);q[C]=F;Z[C]=N;E[C]=z(W[C*2],W[C*2+1],b[F*2],b[F*2+1],R[N*2],R[N*2+1],e[C],Q[C],1e9)}var iQ=[-P-1,-P,-P+1,-1,1,P-1,P,P+1];
while(Math.floor(Math.max(f,T)*Math.pow(.5,jB))>1)jB++;for(var k=0;k<x;k++){var ab=0;for(var C=0;C<I;
C++){var V=p[C],Y=~~(V*G),d=V-Y*P,f_=e[C],fc=Q[C],g8=W[C*2],bH=W[C*2+1],cR=E[C],F=q[C],N=Z[C],f7=1;if(Y!=0&&d!=0&&d!=P-1&&Y!=o-1)for(var hr=0;
hr<8;hr++){var h$=D[V+iQ[hr]];if(h$==4294967295)continue;var gE=q[h$],d8=Z[h$];if(gE==F&&d8==N)continue;
var hG=z(g8,bH,b[gE*2],b[gE*2+1],R[d8*2],R[d8*2+1],f_,fc,cR);if(hG<cR){cR=hG;F=gE;N=d8}}for(var hX=0;
hX<jB;hX++){var fB=~~(f*f7),e5=~~(T*f7);f7*=.5;var g9=L.a.a8(V+k*17+hX*31),cL=L.a.a8(V+k*29+hX*63),bf=Math.max(0,F-fB),gF=Math.min(F+fB,f-1),iC=Math.max(0,N-e5),ax=Math.min(N+e5,T-1),gE=bf+~~(g9*(gF-bf)),d8=iC+~~(cL*(ax-iC)),hG=z(g8,bH,b[gE*2],b[gE*2+1],R[d8*2],R[d8*2+1],f_,fc,cR);
if(hG<cR){cR=hG;F=gE;N=d8}}E[C]=cR;q[C]=F;Z[C]=N;ab+=cR}}if(U)console.log(ab);if(U)console.log("iterations",Date.now()-j);
j=Date.now();var e7=l.slice(0);for(var C=0;C<I;C++){var dO=L.dI.alpha(W[C*2+1],b[q[C]*2+1],R[Z[C]*2+1]);
e7[p[C]]=~~(.5+255*dO)}e7=L.pu.a4H(e7,m,new bU(0,0,P,o),16,.01*.01);if(U)console.log("guided filter",Date.now()-j);
j=Date.now();if(a)for(var C=0;C<_;C++)if(l[C]==255||l[C]==0)e7[C]=l[C];var h1=m.slice(0);for(var C=0;
C<I;C++){var hL=p[C],F=S[q[C]],cR=E[C],jl=hL<<2,gT=e7[hL],aP=(gT>=250?hL:F)<<2;h1[jl]=m[aP];h1[jl+1]=m[aP+1];
h1[jl+2]=m[aP+2]}L._Y(e7,h1,3);if(U)console.log(Date.now()-j);j=Date.now();return h1};L.dI.c4=function(s,m,l,x,a,P,o,G,_){var j=s>>>16,U=s&65535,S=j-(l>>>16),X=U-(l&65535),c=j-(a>>>16),y=U-(a&65535),O=Math.sqrt(S*S+X*X)*o,p=Math.sqrt(c*c+y*y)*G;
if(O+p>=_)return 1e9;var D=L.dI.ac1(m,x,P);return D+O+p};L.dI.ac1=function(s,m,l){var x=s>>>16,a=s>>>8&255,P=s&255,o=m>>>16,G=m>>>8&255,_=m&255,j=l>>>16,U=l>>>8&255,S=l&255,X=L.dI.alpha(s,m,l),c=x-(X*o+(1-X)*j),y=a-(X*G+(1-X)*U),O=P-(X*_+(1-X)*S);
return Math.sqrt(c*c+y*y+O*O)};L.dI.alpha=function(s,m,l){var x=s>>>16,a=s>>>8&255,P=s&255,o=m>>>16,G=m>>>8&255,_=m&255,j=l>>>16,U=l>>>8&255,S=l&255,X=o-j,c=G-U,y=_-S,O=x-j,p=a-U,D=P-S,f=X*X+c*c+y*y,T=f==0?.5:(O*X+p*c+D*y)/f;
return Math.max(0,Math.min(1,T))};L.dI.ada=function(s){};L.dI.OE=function(s,m,l,x,a){var P=[],o=m-1,G=l-1;
for(var _=1;_<G;_++)for(var j=1;j<o;j++){var C=_*m+j;if(s[C]==x&&(s[C-m-1]==a||s[C-m]==a||s[C-m+1]==a||(s[C-1]==a||s[C+1]==a)||(s[C+m-1]==a||s[C+m]==a||s[C+m+1]==a)))P.push(C)}return P};
L.pu={};L.pu.anr=function(s,m,l,x,a){var P=l.e,o=l.l,G=P*o,_=L.pu.Np,j=L.B(G*4),U;L.MP(j,4294967295);
var S=l,X=s,c=m,y=x;L._Y(s,j,0);U=L.$T(j,l);U=L.$T(U.du,U.rect);S=U.rect;y=x>>>2;console.log(S,y);X=L.B(S.k());
L.hy(U.du,X,0);L._Y(m,j,0);U=L.$T(j,l);U=L.$T(U.du,U.rect);c=L.B(S.k());L.hy(U.du,c,0);var O=L.pu.a3G(X,c,S,y,a),p=O[0],D=O[1],f=new bU(0,0,S.e*2,S.l*2);
p=_(p,S,f,!0);p=_(p,f,l,!0);D=_(D,S,f,!0);D=_(D,f,l,!0);var T=L.B(G);for(var C=0;C<G;C++)T[C]=Math.max(0,Math.min(255,Math.floor(.5+(p[C]*m[C]+255*D[C]))));
return T};L.pu.Np=function(s,m,l,x){var a=l.e,P=l.l,o=m.e,G=m.l,_=L.pu.zw,j=new Float32Array(a*P);for(var U=0;
U<G;U++){var S=(U+U)*a;for(var X=0;X<o;X++){if(!0||X==0||U==0||X==o-1||U==G-1)j[S]=j[S+1]=j[S+a]=j[S+a+1]=s[U*o+X];
else{j[S]=_(X+.25,U+.25,s,o,G);j[S+1]=_(X+.75,U+.25,s,o,G);j[S+a]=_(X+.25,U+.75,s,o,G);j[S+a+1]=_(X+.75,U+.75,s,o,G)}S+=2}}return j};
L.pu.zw=function(s,m,l,x,a){s-=.499999;m-=.499999;var P=Math.floor(s),o=Math.floor(m),G=o*x+P,_=s-P,j=m-o,U=(1-j)*(1-_),S=(1-j)*_,X=j*(1-_),c=j*_;
if(l[G]==null||l[G+x+1]==null){console.log(s,m,x,a);throw"e"}return U*l[G+0]+S*l[G+1]+X*l[G+x+0]+c*l[G+x+1]};
L.pu.a3G=function(s,m,l,x,a){var P=l.e,o=l.l,G=P*o,_=L.pu.zl,j=L.pu.B,U=L.yf._r,S=L.pu.Kt,m=_(m),s=_(s),X=j(G);
U(m,X,l,x);var c=j(G);U(s,c,l,x);var y=j(G);S(m,m,y);U(y,y,l,x);var O=j(G);S(m,s,O);U(O,O,l,x);var p=j(G),D=j(G);
for(var C=0;C<G;C++){var f=X[C],T=c[C],I=y[C]-f*f,H=O[C]-f*T,b=H/(I+a),R=T-b*f;p[C]=b;D[C]=R}var W=j(G);
U(p,W,l,x);var J=j(G);U(D,J,l,x);return[W,J]};L.pu.a4H=function(s,m,l,x,a){var P=l.e,o=l.l,G=P*o,_=L.pu.Np,j=Date.now(),U=!1,S=l,X=s,c=m,y=x;
S=new bU(0,0,P>>>2,o>>>2);y=x>>>2;X=L.pu.ajt(s,P,o);c=L.pu.aeq(m,P,o);if(U)console.log(Date.now()-j);
j=Date.now();var O=L.pu.a79(X,c,S,y,a),p=O[0],D=O[1],f=O[2],T=O[3];if(U)console.log(Date.now()-j);j=Date.now();
var I=L.B(G);for(var H=0;H<o;H++)for(var b=0;b<P;b++){var C=H*P+b,R=(H>>>2)*(P>>>2)+(b>>>2),W=C<<2,J=p[R]*m[W]+D[R]*m[W+1]+f[R]*m[W+2]+T[R]*255;
I[C]=Math.max(0,Math.min(255,~~(.5+J)))}if(U)console.log(Date.now()-j);j=Date.now();return I};L.pu.ajt=function(s,m,l){var x=m>>>2,a=l>>>2,P=L.B(m*l);
for(var o=0;o<a;o++)for(var G=0;G<x;G++)P[o*x+G]=s[o*m+G<<2];return P};L.pu.aeq=function(s,m,l){var x=m>>>2,a=l>>>2,P=L.B(m*l*4);
for(var o=0;o<a;o++)for(var G=0;G<x;G++){var _=o*x+G<<2,j=o*m+G<<4;P[_]=s[j];P[_+1]=s[j+1];P[_+2]=s[j+2];
P[_+3]=s[j+3]}return P};L.pu.a79=function(s,m,l,x,a){var P=l.e,o=l.l,G=P*o,_=L.pu.zl,j=L.pu.B,U=L.yf._r,S=L.pu.Kt,s=_(s),X=new L.KY(P*o);
L.ZI(m,X);var m=[_(X.o),_(X.z),_(X.S)],c=L.pu.amP(s,m,l,x,a),y=j(G);U(s,y,l,x);var O=j(G);S(m[0],s,O);
U(O,O,l,x);var p=j(G);S(m[1],s,p);U(p,p,l,x);var D=j(G);S(m[2],s,D);U(D,D,l,x);var f=j(G),T=j(G),I=j(G),H=j(G);
for(var C=0;C<G;C++){var b=y[C],R=c.Nj[C],W=c.xG[C],J=c.Aw[C],u=O[C]-R*b,e=p[C]-W*b,Q=D[C]-J*b;f[C]=c.aiO[C]*u+c.Gx[C]*e+c.kz[C]*Q;
T[C]=c.Gx[C]*u+c.a4Y[C]*e+c.xg[C]*Q;I[C]=c.kz[C]*u+c.xg[C]*e+c.a0o[C]*Q;H[C]=b-f[C]*R-T[C]*W-I[C]*J}U(f,f,l,x);
U(T,T,l,x);U(I,I,l,x);U(H,H,l,x);return[f,T,I,H]};L.pu.amP=function(s,m,l,x,a){var P=l.e,o=l.l,G=P*o,_=L.pu.B,j=L.yf._r,U=L.pu.Kt,S={};
S.Nj=_(G);j(m[0],S.Nj,l,x);S.xG=_(G);j(m[1],S.xG,l,x);S.Aw=_(G);j(m[2],S.Aw,l,x);var X=_(G);U(m[0],m[0],X);
j(X,X,l,x);var c=_(G);U(m[0],m[1],c);j(c,c,l,x);var y=_(G);U(m[0],m[2],y);j(y,y,l,x);var O=_(G);U(m[1],m[1],O);
j(O,O,l,x);var p=_(G);U(m[1],m[2],p);j(p,p,l,x);var D=_(G);U(m[2],m[2],D);j(D,D,l,x);S.aiO=X;S.Gx=c;
S.kz=y;S.a4Y=O;S.xg=p;S.a0o=D;for(var C=0;C<G;C++){var f=S.Nj[C],T=S.xG[C],I=S.Aw[C],H=X[C]-f*f+a,b=c[C]-f*T,R=y[C]-f*I,W=O[C]-T*T+a,J=p[C]-T*I,u=D[C]-I*I+a,e=W*u-J*J,Q=J*R-b*u,q=b*J-W*R,Z=H*u-R*R,E=R*b-H*J,z=H*W-b*b,V=e*H+Q*b+q*R,Y=1/V;
S.aiO[C]=e*Y;S.Gx[C]=Q*Y;S.kz[C]=q*Y;S.a4Y[C]=Z*Y;S.xg[C]=E*Y;S.a0o[C]=z*Y}return S};L.pu.B=function(s){return new Float32Array(s)};
L.pu.zl=function(s){var m=s.length,l=new Float32Array(m);for(var C=0;C<m;C++)l[C]=s[C]*(1/255);return l};
L.pu.Kt=function(s,m,l){for(var C=0;C<s.length;C++)l[C]=s[C]*m[C]};L.ni={};L.ni.JT=function(s,m,l,x){var a=s[m]-l[x],P=s[m+1]-l[x+1],o=s[m+2]-l[x+2];
return Math.sqrt(a*a+P*P+o*o)*(1/441.7)};L.ni.getSelection=function(s,m,l){var x=m*l,a=L.B(x),P=!1,o=Math.round(l*.7),G=1,_=new Uint32Array(12),j=L.B(12);
for(var U=0;U<o;U++)for(var S=0;S<m;S++){if(S<G||U<G||S>m-G-1||U>l-G-1){var C=U*m+S,X=C<<2,c=0;if(U<G)c=4;
else if(S>m-G-1)c=8;_[c]+=s[X];_[c+1]+=s[X+1];_[c+2]+=s[X+2];_[c+3]++;a[C]=255}}for(var C=0;C<12;C+=4)for(var y=0;
y<3;y++)j[C+y]=_[C+y]/_[C+3];var O=new Float32Array(x);for(var C=0;C<x;C++){var X=C*4,p=L.ni.JT(s,X,j,0),D=L.ni.JT(s,X,j,4),f=L.ni.JT(s,X,j,8),T=Math.max(p,Math.max(D,f));
O[C]=p+D+f-T}L.ni.tN(O);var I=Date.now(),H=new Float32Array(x),b=[],R=L.B(x);for(var C=0;C<3;C++){L.hy(s,R,C);
var W=new Uint16Array(x);b.push(W);L.ni.a1f(R,a,m,l,W)}if(P)console.log("MBD",Date.now()-I);I=Date.now();
for(var C=0;C<x;C++)H[C]=b[0][C]+b[1][C]+b[2][C];L.ni.tN(H);for(var C=0;C<x;C++)H[C]+=.4*O[C];var J=m>>>1,o=l>>>1,u=1/Math.sqrt(J*J+o*o);
for(var U=0;U<l;U++)for(var S=0;S<m;S++){var e=S-J,Q=U-o,q=1-Math.sqrt(e*e+Q*Q)*u;H[U*m+S]*=q}if(P)console.log("Centeredness",Date.now()-I);
I=Date.now();for(var C=0;C<x;C++)a[C]=H[C]*255;var Z=Math.round(m/120),E=Math.round(Z*.8);if(P)console.log(Z,E);
L.Du.vJ(a,R,m,l,Z,L.Du.YB,[]);a.set(R);if(P)console.log("erosion",Date.now()-I);I=Date.now();for(var C=0;
C<x;C++)H[C]=a[C];L.ni.tN(H);var z=L.B(256);for(var C=0;C<256;C++)z[C]=256/(1+Math.exp(-20*(C/255-.5)));
for(var C=0;C<x;C++){var V=~~(H[C]*255+.5);a[C]=z[V]}if(P)console.log("Simoid",Date.now()-I);I=Date.now();
return a};L.ni.tN=function(s){var m=s.length,l=0;for(var C=0;C<m;C++)l=Math.max(l,s[C]);var x=1/l;for(var C=0;
C<m;C++)s[C]=s[C]*x};L.ni.a1f=function(s,m,l,x,a){var P=l*x,o=s.slice(0),G=s.slice(0);for(var C=0;C<P;
C++)a[C]=m[C]==255?0:65535;L.ni.vs(s,G,o,a,l,x);L.ni.fP(s,G,o,a,l,x);L.ni.vs(s,G,o,a,l,x);L.ni.fP(s,G,o,a,l,x);
return a};L.ni.vs=function(s,m,l,x,a,P){for(var o=1;o<a;o++)L.ni.TH(o,-1,s,m,l,x);for(var G=1;G<P;G++){L.ni.TH(G*a,-a,s,m,l,x);
for(var o=1;o<a;o++){var C=G*a+o;L.ni.TH(C,-1,s,m,l,x);L.ni.TH(C,-a,s,m,l,x)}}};L.ni.fP=function(s,m,l,x,a,P){for(var o=a-2;
o>=0;o--)L.ni.TH(a*P-a+o,1,s,m,l,x);for(var G=P-2;G>=0;G--){L.ni.TH(G*a+a-1,a,s,m,l,x);for(var o=a-2;
o>=0;o--){var C=G*a+o;L.ni.TH(C,1,s,m,l,x);L.ni.TH(C,a,s,m,l,x)}}};L.ni.TH=function(C,s,m,l,x,a){var P=C+s,o=m[C],G=l[P],_=x[P];
if(G<o)G=o;else if(o<_)_=o;var j=G-_;if(a[P]!=65535&&j<a[C]){a[C]=j;l[C]=G;x[C]=_}};L.bF={};L.bF.filter=function(s,m,l,x){var a=m.e,P=m.l,o=a*P,G=x[0],_=x[1],j=x[2],U=x[3],S=x[4],X=x[5],c=x[6],y=Date.now(),O=new Float32Array(a*P*4);
L.bF.adS(s,a,P,O);var p=Math.ceil(G*Math.sqrt(-2*Math.log(.1))),D=new ArrayBuffer(o*4),f=new Float32Array(D),T=new Float32Array(o),I=new Float32Array(o);
for(var C=0;C<o;C++){var H=C*4;f[C]=O[H];T[C]=O[H+1];I[C]=O[H+2]}L.yf.kH(f,f,m,p*1/2.4,2);L.yf.kH(T,T,m,p*1/2.4,2);
L.yf.kH(I,I,m,p*1/2.4,2);for(var C=0;C<o;C++){var H=C*4;O[H]=f[C];O[H+1]=T[C];O[H+2]=I[C]}var b=new Uint8Array(D);
for(var C=0;C<o;C++){var H=C*4,R=C*4,f=O[H],T=O[H+1],I=O[H+2],W=Math.sqrt((f-I)*(f-I)+4*T*T),J=(f+I+W)*.5,u=(f+I-W)*.5,e=u-I,Q=T,q=e*e+Q*Q;
if(q!=0){var Z=Math.sqrt(q),E=1/Z;e*=E;Q*=E}b[R]=128+127*e;b[R+1]=128+127*Q}var z=1.3*_+2,V=U*(2/10),Y=s.slice();
if(M.wR){var d=new Float32Array([1/a,1/P]),w=M.OI(0,a,P);w.set(Y);var A=M.OI(1,a,P);A.set(b);M.C8(w,m);
if(S){w._y(m);M.filter.Pu({type:M.filter.a6Q,Wl:d,ak6:1/j,a78:V},w.qQ)}w._y(m);M.filter.Pu({type:M.filter._j,wz:A.Vh,Wl:d,atN:z,a2_:2},w.qQ);
if(S){w._y(m);M.filter.Pu({type:M.filter.alx,Wl:d,a8e:new Float32Array(c),a8k:X},w.qQ)}w.get(l)}else{if(S)L.bF.eF(1/j,V,Y,a,P);
L.bF._j(Y,l,b,a,P,z);if(S)L.bF.acE(a,P,l,c,X)}var $=o*4;for(var C=3;C<$;C+=4)l[C]=s[C]};L.bF._j=function(s,m,l,x,a,P){var o=Math.ceil(2*P),G=-1/(2*P*P),_=[],j=1;
for(var C=0;C<o+20;C++)_[C]=Math.exp(C*C*G);var U=[0,0,0,0];for(var S=0;S<a;S++){for(var X=0;X<x;X++){var c=S*x+X,y=c*4,O=1,p=s[y],D=s[y+1],f=s[y+2],T=s[y+3],I=(l[y]-128)*(1/127),H=(l[y+1]-128)*(1/127),b=I,R=H,W=X==0?.51:.49,J=S==0?.51:.49;
for(var C=0;C<2;C++){var u=X+W,e=S+J,Q=0;while(Q<o){if(u<.5||x-.5<u||e<.5||a-.5<e)break;var q=~~u,Z=~~e,E=Z*x+q,z=E*4,V=(l[z]-128)*(1/127),Y=(l[z+1]-128)*(1/127);
if(V*b+Y*R<0){V=-V;Y=-Y}b=V;R=Y;u+=j*V;e+=j*Y;if(u<.5||x-.5<u||e<.5||a-.5<e)break;var d=~~u,w=~~e,A=w*x+d<<2;
Q+=j;var $=_[~~Q];L.V.h1(u,e,s,x,a,U);p+=U[0]*$;D+=U[1]*$;f+=U[2]*$;T+=U[3]*$;O+=$}b=-I;R=-H}var i=1/O;
m[y]=~~(.5+p*i);m[y+1]=~~(.5+D*i);m[y+2]=~~(.5+f*i);m[y+3]=~~(.5+T*i)}}};L.bF.acE=function(s,m,l,x,a){for(var P=0;
P<m;P++)for(var o=0;o<s;o++){var G=P*s+o<<2,_=1+L.bF.ali(o,P,l,s,m,x)*a;l[G]=Math.max(0,Math.min(255,l[G]*_));
l[G+1]=Math.max(0,Math.min(255,l[G+1]*_));l[G+2]=Math.max(0,Math.min(255,l[G+2]*_))}};L.bF.ali=function(s,m,l,x,a,P){var o=l[(m*x+Math.max(0,s-1))*4+3],G=l[(m*x+Math.min(x-1,s+1))*4+3],_=l[(Math.max(0,m-1)*x+s)*4+3],j=l[(Math.min(a-1,m+1)*x+s)*4+3],U=.7,S=(G-o)*(1/255),X=.7,c=(j-_)*(1/255),y=-S*X,O=-U*c,p=U*X,D=Math.sqrt(y*y+O*O+p*p),f=1/D,T=y*f,I=O*f,H=p*f,b=P[0]*T+P[1]*I+P[2]*H;
return b};L.bF.eF=function(s,m,l,x,a){function P(G,j,U){return Math.max(j,Math.min(U,G))}for(var o=0;
o<a;o++)for(var G=0;G<x;G++){var _=L.bF.aeo(G+.5,o+.5,s,m);l[(o*x+G)*4+3]=Math.max(0,Math.min(255,_*255))}};
L.bF.aeo=function(s,m,l,x){function a(R,W,J){return(1-J)*R+J*W}var P=(s+613)*l,o=(m+117)*l,G=~~P,_=~~o,j=P-G,U=o-_,S=Math.sin(11),X=Math.cos(G)*S,c=Math.cos(G+1)*S,y=Math.cos(_)*S,O=Math.cos(_+1)*S,cE=L.bF.hash(X,y),p=L.bF.hash(c,y),D=L.bF.hash(X,O),f=L.bF.hash(c,O),T=a(cE,p,j),I=a(D,f,j),H=a(T,I,U);
H=H<.5?0:1;var b=H+x*L.bF.hash(Math.cos(P)*S,Math.cos(o)*S);return b*(1/3)};L.bF.hash=function(s,m){var l=Math.sin(s*11.697096+m*73.32456)*12157.47691;
return l-Math.floor(l)};L.bF.adS=function(s,m,l,x){var a=[-1,0,1,-2,0,2,-1,0,1],P=[-1,-2,-1,0,0,0,1,2,1],o=m-1,G=l-1,_=m*4;
for(var j=1;j<G;j++)for(var U=1;U<o;U++){var C=j*m+U,S=C*4,X=L.bF.lK(s,S,_,a),c=L.bF.lK(s,S,_,P),y=L.bF.lK(s,S+1,_,a),O=L.bF.lK(s,S+1,_,P),p=L.bF.lK(s,S+2,_,a),D=L.bF.lK(s,S+2,_,P);
x[S]=X*X+y*y+p*p;x[S+1]=X*c+y*O+p*D;x[S+2]=c*c+O*O+D*D}L.bF.ads(x,m,l)};L.bF.lK=function(s,m,l,x){return s[m-l-4]*x[0]+s[m-l]*x[1]+s[m-l+4]*x[2]+s[m-4]*x[3]+s[m]*x[4]+s[m+4]*x[5]+s[m+l-4]*x[6]+s[m+l]*x[7]+s[m+l+4]*x[8]};
L.bF.ads=function(s,m,l){function x(_,C,j){var U=C*4,S=j*4;_[S]=_[U];_[S+1]=_[U+1];_[S+2]=_[U+2]}var a=m-1,P=l-1;
x(s,m+1,0);x(s,2*m-2,m-1);for(var o=1;o<a;o++)x(s,m+o,o);for(var G=1;G<P;G++){x(s,G*m+1,G*m);x(s,G*m+m-2,G*m+m-1)}for(var o=1;
o<a;o++)x(s,(l-2)*m+o,(l-1)*m+o);x(s,(G-2)*m+1,(G-1)*m);x(s,(G-1)*m-2,G*m-1)};L.Cb={};L.Cb.i_=function(s,m,l,x){var a=s[m*2],P=s[m*2+1],o=s[l*2],G=s[l*2+1],_=s[x*2],j=s[x*2+1];
return a*G+o*j+_*P-_*G-o*P-a*j};L.Cb.NW=function(s,m){var l=[],x=[],a=[],P={};for(var C=0;C<m.length;
C+=3){var o=~~(C*(1/3)),G=m[C+0],_=m[C+1],j=m[C+2],U=L.Cb.i_(s,G,_,j);if(U>0){var S=_;_=j;j=S}var X=P[j+"-"+_],c=P[_+"-"+G],y=P[G+"-"+j],O=[j,X,o,null],p=[_,c,o,O],D=[G,y,o,p];
O[3]=D;if(X)X[1]=O;if(c)c[1]=p;if(y)y[1]=D;P[j+"-"+G]=D;P[G+"-"+_]=p;P[_+"-"+j]=O;l[G]=p;a[C]=p;l[_]=O;
a[C+1]=O;l[j]=D;a[C+2]=D;x[o]=p}return{aq:l,Ol:x,uo:a}};L.Cb.ah3=function(s){var m=[],l=s.Ol;for(var C=0;
C<l.length;C++){var x=l[C];m.push(x[0]);x=x[3];m.push(x[0]);x=x[3];m.push(x[0])}return m};L.Cb.a4v=function(s,m,l,x){var a=s[m*2],P=s[m*2+1],o=s[l*2],G=s[l*2+1],_=s[x*2],j=s[x*2+1],U=o-a,S=G-P,X=_-a,c=j-P,y=U*(a+o)+S*(P+G),O=X*(a+_)+c*(P+j),p=2*(U*(j-G)-S*(_-o));
if(Math.abs(p)<1e-5){var D=Math.min(a,o,_),f=Math.min(P,G,j),T=(Math.max(a,o,_)-D)*.5,I=(Math.max(P,G,j)-f)*.5;
return[D+T,f+I,T*T+I*I,1]}var H=(c*y-S*O)/p,b=(U*O-X*y)/p,T=H-a,I=b-P;return[H,b,T*T+I*I,0]};L.Cb.ark=function(s,m,l){var x=l[1],a=l[3],P=a[3],o=x[3],G=o[3],_=l[2],j=x[2],U=l[0],S=x[0],X=a[0],c=o[0],y=L.Cb.a4v(s,S,c,X),O=s[U*2]-y[0],p=s[U*2+1]-y[1],D=O*O+p*p>y[2]&&y[3]==0&&L.Cb.i_(s,c,U,X)<0&&L.Cb.i_(s,X,S,c)<0;
if(D){l[0]=X;x[0]=c;l[3]=P;P[3]=o;o[3]=l;x[3]=G;G[3]=a;a[3]=x;a[2]=j;o[2]=_;m.Ol[j]=G;m.Ol[_]=P;m.aq[S]=o;
m.aq[U]=a}return D};L.Cb.arg=function(s,m,l){var x=s[m*2]-s[l*2],a=s[m*2+1]-s[l*2+1];return Math.sqrt(x*x+a*a)};
L.Cb.ag4=function(s,m,l){var x=l[1],a=l[3],P=a[3],o,G,_=l[2],j,U=l[0],S=P[0],X=a[0],c;if(x){o=x[3];G=o[3];
j=x[2];c=o[0]}var y=s.length>>>1;s[2*y]=(s[2*S]+s[2*U])*.5;s[2*y+1]=(s[2*S+1]+s[2*U+1])*.5;if(!0){var O=_,p=l,D=m.Ol.length,f=[y,null,O,p],T=[X,f,D,P];
f[1]=T;var I=[y,null,D,T];a[3]=f;P[3]=I;P[2]=D;m.Ol[O]=a;m.Ol[D]=I;m.aq[U]=a;m.aq[X]=P;m.uo.push(f,T,I)}if(x){var H=j,b=x,R=D+1;
I[1]=b,b[1]=I;var W=[y,null,H,b],J=[c,W,R,G];W[1]=J;var u=[y,p,R,J];p[1]=u;o[3]=W;G[3]=u;G[2]=R;m.Ol[H]=o;
m.Ol[R]=G;m.aq[S]=o;m.aq[c]=G;m.uo.push(W,J,u)}m.aq[y]=p};L.Cb.G4=function(s,m){var l=0;while(!0){var x=l;
for(var C=0;C<m.uo.length;C++){var a=m.uo[C];if(a[1]==null)continue;var P=L.Cb.ark(s,m,a);if(P){l++;
break}}if(x==l)break}return l!=0};L.Cb.aaf=function(s,m,l,x){var a=0;for(var C=0;C<x;C++){var P=null,o=0;
for(var G=0;G<m.uo.length;G++){var _=m.uo[G],j=L.Cb.arg(s,_[0],_[3][3][0])*(_[1]?1:2);if(j>o){P=_;o=j}}if(o>l){L.Cb.ag4(s,m,P);
a++}}return a!=0};L.Cb.a5r=function(s,m){var l=[],X=0;for(var C=0;C<s.length;C++)l.push(0);for(var C=0;
C<m.uo.length;C++){var x=m.uo[C],a=x[0],P=x[3][3][0],o=s[a*2],G=s[a*2+1],_=s[P*2],j=s[P*2+1],U=o-_,S=G-j;
l[a*2]+=-U;l[a*2+1]+=-S;l[P*2]+=U;l[P*2+1]+=S}for(var C=0;C<s.length;C+=2){var c=C>>>1,y=m.aq[c],x=y,O=!0;
do{if(x[1]==null){O=!1;break}x=x[1][3]}while(x!=y);if(O){var p=.02;s[C]+=p*l[C];s[C+1]+=p*l[C+1];X+=p*(l[C]*l[C]+l[C+1]*l[C+1])}}return X};
L.Cb.apj=function(s,m,l){var x=L.H.ge(s),a=L.Cb.NW(s,m);L.Cb.G4(s,a);for(var P=0;P<300;P++){var o=!1,G=!1;
o=L.Cb.aaf(s,a,l,5);if(o)G=L.Cb.G4(s,a);var _=L.Cb.a5r(s,a);if(!o&&!G&&_<1e-4){break}}return L.Cb.ah3(a)};
L.aw={};L.aw.VA=function(s){var m=s.Zm,l=s.CZ,x=s.QL,a=s.od,P=s.aA,o=s.gz,G=s.o0,_=L.pc._R,f,T,I=0;function j(cE){var fc=new Array(cE);
for(var C=0;C<cE;C++)fc[C]=0;return fc}var U=l.length>>>1,S=j(m.j5*2),X=j(m.j5),c=j(m.j5),y=Date.now();
for(var C=0;C<s.zj.length;C++){var O=m.a5Y+C,p=m.h_*(o[C*2]+G[C*2]),D=m.h_*(o[C*2+1]+G[C*2+1]);S[O*2]=p;
S[O*2+1]=D;X[O]=p;c[O]=D}m.a1F.ow(a,m.amz._R(S),.01,f,T);for(var C=0;C<m.af9.uo.length;C++){var H=m.af9.uo[C],b=H[3][3][0],W=H[0],J=H[3][0],u=H[1]?H[1][3][0]:J;
if(H[1]&&b>W)continue;var e=l[b*2],q=l[b*2+1],Z=l[W*2],E=l[W*2+1],z=a[b*2],V=a[b*2+1],Y=a[W*2],d=a[W*2+1],w=a[J*2],A=a[J*2+1],$=a[u*2],i=a[u*2+1],K=[z,V,Y,d,w,A];
if(H[1])K.push($,i);var h=_(m.aor[I],K),F=h[0],N=h[1],iQ=1/Math.sqrt(F*F+N*N);F*=iQ;N*=iQ;var jB=Z-e,k=E-q;
X[I]=F*jB+N*k;c[I]=-N*jB+F*k;I++}var ab=new Array(U),f_=new Array(U);for(var C=0;C<U;C++){ab[C]=P[C*2];
f_[C]=P[C*2+1]}m.a2F.ow(ab,m.a5g._R(X),.5);m.a2F.ow(f_,m.a5g._R(c),.5);for(var C=0;C<U;C++){P[C*2]=ab[C];
P[C*2+1]=f_[C]}};L.aw.Ni=function(s){var m=s.CZ,l=s.QL,x=s.zj,a=L.pc.multiply,P=Date.now(),o=L.Cb.NW(m,l),G=m.length>>>1,_=0,y=0,N=1e3;
for(var C=0;C<o.uo.length;C++)_+=o.uo[C][1]?.5:1;var j=_+x.length,U=[],S=new L.Kx(j*2,G*2),X=new L.Kx(j,G),c=[[[-1,0,1,0,0,0],[0,-1,0,1,0,0]],[[-1,0,1,0,0,0,0,0],[0,-1,0,1,0,0,0,0]]],O=[],p=[];
for(var C=0;C<o.uo.length;C++){var D=o.uo[C],f=D[3][3][0],T=D[0],I=D[3][0],H=D[1]?D[1][3][0]:I;if(D[1]&&f>T)continue;
var b=m[f*2],W=m[f*2+1],J=m[T*2],u=m[T*2+1],e=m[I*2],q=m[I*2+1],Z=m[H*2],E=m[H*2+1],z=[[b,W,1,0],[W,-b,0,1],[J,u,1,0],[u,-J,0,1],[e,q,1,0],[q,-e,0,1]];
if(D[1])z.push([Z,E,1,0],[E,-Z,0,1]);var V=L.pc.mP(z),Y=a(linear.invert(a(V,z)),V);Y.pop();Y.pop();U.push(Y);
var d=J-b,w=u-W,A=c[D[1]?1:0];A=L.pc.fy(A,a([[d,w],[w,-d]],Y));var $=[f*2,f*2+1,T*2,T*2+1,I*2,I*2+1,H*2,H*2+1],i=D[1]?8:6,K=[];
for(var h=0;h<i;h++)K.push([$[h],A[0][h],A[1][h]]);K.sort(function(fc,g8){return fc[0]-g8[0]});for(var F=0;
F<2;F++){for(var h=0;h<i;h++){O[h]=K[h][0];p[h]=K[h][1+F]}S.s_(p,O,i)}if(f<T)X.s_([-1,1],[f,T],2);else X.s_([1,-1],[T,f],2);
y++}for(var C=0;C<x.length;C++){var iQ=x[C];S.s_([N],[iQ*2],1);S.s_([N],[iQ*2+1],1);X.s_([N],[iQ],1)}var jB=S.mP(),k=jB.Gn(jB),ab=X.mP(),f_=ab.Gn(ab);
return{a5Y:_,j5:j,amz:jB,a1F:k,a5g:ab,a2F:f_,af9:o,aor:U,h_:N}};L.aw.agH=function(s,m,l,x,a){var P=new bU(0,0,m,l),o=L.B(P.k());
L.hy(s,o,3);L.round(o,70);var G=L.zQ(o,P),_=[.1,.065,.035][x]*Math.max(G.e,G.l),j=a+1,U=m+j*2,S=l+j*2,X=new bU(-j,-j,U,S),c=L.B(X.k());
L.kV(o,P,c,X);var y=c.slice(0);for(var O=0;O<a;O++){for(var p=1;p<S-1;p++){for(var D=1;D<U-1;D++){var C=p*U+D;
y[C]=c[C-U]|c[C-1]|c[C]|c[C+1]|c[C+U]}}var f=y;y=c;c=f}var T=a4.mE(c,U,S,Math.round(G.k()*5e-4)),I=a4.S4(T),H=new ae(1,0,0,1,-j,-j);
for(var C=0;C<I.length;C++){var b=I[C];L.H.A(b.path.s,H,b.path.s);b.CZ=L.aw.a6q(b.path);b.QL=L.H.a30(b.CZ);
b.QL=L.Cb.apj(b.CZ,b.QL,_)}return I};L.aw.a6q=function(s){var m=[],l=s.s,x=s.r.length-1,a=0,P=0;for(var o=0;
o<x;o++){var C=o*6,G=l[C+6]-l[C+0],_=l[C+7]-l[C+1],j=Math.ceil(Math.sqrt(G*G+_*_));for(var U=0;U<j;U++){var S=U/j,X=1-S,c=X*X*X*l[C+0]+3*X*X*S*l[C+2]+3*X*S*S*l[C+4]+S*S*S*l[C+6],y=X*X*X*l[C+1]+3*X*X*S*l[C+3]+3*X*S*S*l[C+5]+S*S*S*l[C+7];
m.push(c,y);a=c;P=y}}m=L.H.nv(m,1);var O=[],p=m.length;for(var C=0;C<p;C+=2){var y=m.pop(),c=m.pop();
O.push(c,y)}return O};L.aw.a7i=function(s,m,l,x){function a(W,J,u,e,Q){var q=Q[W*2]-Q[J*2],Z=Q[W*2+1]-Q[J*2+1],E=Math.sqrt(q*q+Z*Z);
if(u[W].indexOf(J)==-1){u[W].push(J);e[W].push(E)}if(u[J].indexOf(W)==-1){u[J].push(W);e[J].push(E)}}var P=s.length>>>1,o=new Array(P);
if(l.length==0){o.fill(0);return o}var G=new Array(P),_=new Array(P);for(var C=0;C<P;C++){G[C]=[];_[C]=[]}for(var C=0;
C<m.length;C+=3){a(m[C],m[C+1],G,_,s);a(m[C],m[C+2],G,_,s);a(m[C+1],m[C+2],G,_,s)}var j=new Float64Array(P*2),U=new Uint32Array(P*2);
j.fill(1e9);var S=new Uint8Array(P);for(var X=0;X<l.length;X++){S.fill(0);var c=["---",[0,l[X]]];while(c.length!=1){var y=L.AC.aiz(c),O=y[0],p=y[1];
if(S[p]==1)continue;var D=p<<1;if(O<j[D]){j[D+1]=j[D];U[D+1]=U[D];j[D]=O;U[D]=X}else if(O<j[D+1]){j[D+1]=O;
U[D+1]=X}S[p]=1;var f=G[p],T=_[p];for(var C=0;C<f.length;C++){var I=f[C];if(S[I]!=1){L.AC.a4G(c,[O+T[C],I])}}}}for(var C=0;
C<P;C++){var D=C<<1,H=j[D],b=j[D+1],R=1/(H+b);o[C]=(1-H*R)*x[U[D]]+(1-b*R)*x[U[D+1]]}return o};L.aw.aq$=function(s){var m={r:[],s:[]},l=[s];
while(l.length!=0){var x=l.pop(),a=x.Fd;if(x.asp instanceof Array||x.aox instanceof Array){m.r.push("M","L","L","L","Z");
m.s.push(a[0],a[1],a[2],a[1],a[2],a[3],a[0],a[3])}else l.push(x.asp,x.aox)}return m};L.aw.in=function(s,m,l,x,a,P,o,G,_,j){var U=Math.round(j.length/3),S=new Array(U);
for(var C=0;C<U;C++)S[C]=C;S.sort(function(c,y){return _[j[c*3]]-_[j[y*3]]});for(var C=0;C<U;C++){var X=S[C]*3;
L.aw.atX(j[X]*2,j[X+1]*2,j[X+2]*2,o,G,s,m,l,x,a,P)}};L.aw.atX=function(s,m,l,x,a,P,o,G,_,j,U){var S=L.aw.Zr,X=[s,m,l,1.2,1.2,1.2,0],c=[0,0,0,0],y=a[s],O=a[s+1],p=a[m],D=a[m+1],f=a[l],T=a[l+1],I=Math.max(0,Math.min(o-1,x[s])),H=Math.max(0,Math.min(o-1,x[m])),b=Math.max(0,Math.min(o-1,x[l])),R=Math.max(0,Math.min(G-1,x[s+1])),W=Math.max(0,Math.min(G-1,x[m+1])),J=Math.max(0,Math.min(G-1,x[l+1])),u=p-y,e=D-O,Q=f-y,q=T-O,Z=1/(u*q-Q*e+1e-9),E=Math.max(0,Math.floor(Math.min(y,p,f))),z=Math.min(j,Math.ceil(Math.max(y,p,f))),V=Math.max(0,Math.floor(Math.min(O,D,T))),Y=Math.min(U,Math.ceil(Math.max(O,D,T)));
for(var d=V;d<Y;d++)for(var w=E;w<z;w++){var A=w+.5-y,$=d+.5-O,i=(A*q-Q*$)*Z,K=(u*$-A*e)*Z;if(i>=0&&K>=0&&i+K<=1){var h=1-i-K,F=I*h+H*i+b*K,N=R*h+W*i+J*K;
L.V.h1(F,N,P,o,G,c);L.aw.a0s(c,_,d*j+w<<2)}}};L.aw.a0s=function(s,m,l){var x=m[l],a=m[l+1],P=m[l+2],o=m[l+3],G=1-s[3]*(1/255);
m[l]=~~(.5+s[0]+x*G);m[l+1]=~~(.5+s[1]+a*G);m[l+2]=~~(.5+s[2]+P*G);m[l+3]=~~(.5+s[3]+o*G)};L.aw.Zr=function(){var s=function(l,x,a,P){var o=P[0],G=P[1],_=P[2],j=l[o+0],U=l[o+1],S=l[G+0],X=l[G+1],c=l[_+0],y=l[_+1],O=S-j,p=X-U,D=c-j,f=y-U,T=x-j,I=a-U,H=O*f-D*p,b=1/(H+1e-9),R=(T*f-D*I)*b,W=(O*I-T*p)*b;
if(R>=0&&W>=0&&R+W<=1){P[3]=1-R-W;P[4]=R;P[5]=W;return 1}return 0},m=function(l,x,a,P){var o=[0,0,0,0,0,0];
for(var C=0;C<x.length;C+=3){o[0]=x[C]*2;o[1]=x[C+1]*2;o[2]=x[C+2]*2;if(s(l,a,P,o)==1)return!0}return!1};
return{a4m:s,apy:m}}();L.jO={};L.jO.a9b=function(s,m,l){var x=L.B(m*l*4),a=!1;L.V.yK(s,m,l,x,[l,m,0,1,0,1,0,0]);
return[L.jO.Bn(s,m,l,a),L.jO.Bn(x,l,m,a)]};L.jO.A=function(s,m){var l=!1,x=s[0],a=s[1],P=x[1],o=x[2],G=x[3],_=m.e,j=m.l;
if(o==_&&G==j)P=P.slice(0);else if(G!=j){var U=L.B(o*j*4);L.jO.Ff(a,j,U,l);P=L.B(o*j*4);L.V.yK(U,j,o,P,[o,j,0,1,0,1,0,0]);
if(o!=_){x=L.jO.Bn(P,o,j,l);P=L.B(_*j*4);L.jO.Ff(x,_,P,l)}}else if(o!=_){P=L.B(_*G*4);L.jO.Ff(x,_,P,l)}return P};
L.jO.Bn=function(s,m,l,x){var a=Date.now(),P=new Uint16Array(m*l),o=1;L.jO.a2i(s,m,l,P);var G=Math.ceil(m/o),_=new Uint32Array(o),j=new Uint32Array(o),G=Math.floor(m/o);
for(var U=0;U<o;U++)j[U]=U<o-1?G:m-(o-1)*G;for(var S=0;S<l;S++){var C=S*m;for(var U=0;U<o;U++){var G=j[U];
for(var X=0;X<G;X++)_[U]+=P[C+X];C+=G}}if(x){console.log(Date.now()-a,"cost");a=Date.now()}var c=new Uint32Array(m),y=new Uint32Array(m),O=new Uint32Array(m*l);
for(var X=0;X<m;X++){O[(l-1)*m+X]=P[(l-1)*m+X]}for(var S=l-2;S>=0;S--){var p=S*m;for(var U=0;U<o;U++){var G=j[U];
O[p]=P[p]+Math.min(O[p+m],O[p+m+1]);for(var X=1;X<G-1;X++){var C=p+X;O[C]=P[C]+Math.min(O[C+m-1],Math.min(O[C+m],O[C+m+1]))}p+=G-1;
O[p]=P[p]+Math.min(O[p+m-1],O[p+m]);p++}}if(x){console.log(Date.now()-a,"Building M");a=Date.now()}function D(e,Q){return e<Q?e:Q}function f(C,e){var Q=y[C],q=O[e],Z=~~(Q*q*1e-4);
return Z}var T=new Uint8Array(m*l),I=new Uint32Array(m);for(var C=0;C<m;C++){c[C]=C;y[C]=P[C]}for(var S=1;
S<l;S++){var H=0,p=S*m;for(var U=0;U<o;U++){var G=j[U],C=p;I[H]=f(H,C);var b=I[H]+f(H+1,C+1),R=f(H,C+1)+f(H+1,C);
I[H+1]=D(b,R);for(var X=2;X<G;X++){var C=p+X,W=I[H+X-1]+f(H+X-1,C-1),J=I[H+X-2]+f(H+X-1,C-2)+f(H+X-2,C-1);
I[H+X]=D(W,J)}var X=G-1;while(X>=2){var C=p+X,W=I[H+X-1]+f(H+X-1,C-1),J=I[H+X-2]+f(H+X-1,C-2)+f(H+X-2,C-1);
if(I[H+X]==W){T[C-m]=1;X-=1}else{T[C-m]=0;T[C-m-1]=2;X-=2}}var C=p;if(X==0){T[C-m]=1}else{if(I[H+1]==b){T[C+1-m]=1;
T[C-m]=1}else{T[C+1-m]=0;T[C-m]=2}}p+=G;H+=G}L.jO.a7p(S,m,T,P,c,y,!0,a)}if(x){console.log(Date.now()-a,"Matching");
a=Date.now()}var u=P;return[UZIP.adler(s,0,s.length),s,m,l,o,j,_,c,y,T,u]};L.jO.Ff=function(s,m,l,x){var a=s.slice(0),P=a.shift(),o=a.shift(),G=a.shift(),_=a.shift(),j=a.shift(),U=a.shift(),S=a.shift(),X=a.shift(),c=a.shift().slice(0),y=a.shift(),O=a.shift(),p=Date.now(),D=Math.abs(G-m),f=Math.floor(D/j),T=new Uint32Array(j),H=0,b=1e9,W=0,J=0,u=0;
for(var I=0;I<j;I++)T[I]=I<j-1?f:D-(j-1)*f;O.fill(0);for(var R=0;R<G;R++){H=Math.max(H,c[R]);b=Math.min(b,c[R])}for(var I=0;
I<j;I++){var e=U[I],f=T[I];for(var Q=0;Q<f;Q++){var q=0,Z=1e9;for(var R=0;R<e;R++)if(c[J+R]<Z){Z=c[J+R];
q=J+R}if(m<G)c[q]=1e9;else c[q]*=1.2;if(u<G/3)W+=Z;var E=X[q],z=O[E],V=z<65280?65280:z+1;if(V<65280)throw"e";
for(var Y=0;Y<_;Y++){var C=Y*G+E;O[C]=V;E+=y[C]-1}u++}J+=e}if(x){console.log(Date.now()-p,"Removing best seams");
p=Date.now()}function d(C,A){var $=C<<2,i=A<<2;l[$]=o[i];l[$+1]=o[i+1];l[$+2]=o[i+2];l[$+3]=o[i+3]}for(var Y=0;
Y<_;Y++){var w=0,C=Y*G;for(var R=0;R<m;R++,w++){if(m<G){while(O[C+w]==65280)w++;d(Y*m+R,Y*G+w)}else{d(Y*m+R,Y*G+w);
while(O[C+w]>=65280){O[C+w]--;R++;d(Y*m+R,Y*G+w)}}}}if(x){console.log(Date.now()-p,"Shifting image pixels");
p=Date.now()}};L.jO.a7p=function(s,m,l,x,a,P){var o=0,C=s*m;while(o<m){if(l[C-m]==1){P[o]=P[o]+x[C];
o++;C++}else{var G=a[o];a[o]=a[o+1];a[o+1]=G;var _=P[o];P[o]=P[o+1]+x[C];P[o+1]=_+x[C+1];o+=2;C+=2}}};
L.jO.a2i=function(s,m,l,x){function a(s,C,_){var S=C<<2,X=_<<2,c=s[S]-s[X],y=s[S+1]-s[X+1],O=s[S+2]-s[X+2];
return Math.abs(c)+Math.abs(y)+Math.abs(O)}for(var P=1;P<m;P++){var o=a(s,P,P-1);x[P-1]+=o;x[P]+=o}for(var G=1;
G<l;G++){var _=G*m,o=a(s,_,_-m);x[_]+=o;x[_-m]+=o;for(var P=1;P<m;P++){var C=G*m+P,j=a(s,C,C-1),U=a(s,C,C-m);
x[C-m]+=U;x[C-1]+=j;x[C]+=U+j}}for(var G=0;G<l;G++){x[G*m]*=2;x[G*m+m-1]*=2}for(var C=0;C<x.length;C++)if(x[C]==0)x[C]=1};
L.uO=function(){var s=0,m=0,x=15,P=256;function l(U,S,X,c,y,O){var p=(y-1)*S,D=O*S;return U[D+c]-U[D+X-1]-U[p+c]+U[p+X-1]}var a=Math.round(x/8),o=[];
function G(U,S){for(var X=0;X<S.length;X++){var c=S[X],y=0,O=0,p=U[c.gX],D=p.Jv,f=p.h_,T=p.Cm;for(var I=-x;
I<=x;I++)for(var H=-x;H<=x;H++){var b=H+c.a5F,R=I+c.aqx;if(H*H+I*I>x*x||b<0||R<0||b>=f||R>=f)continue;
var W=D[R*f+b];y+=H*W;O+=I*W}c.yu=Math.atan2(O,y)}}function _(U,S,X,c,y){var O=~~(U+.5),p=~~(S+.5);return l(X,c,O-a,O+a,p-a,p+a)}function j(U,S,X,c,y){s=c;
m=y;if(o.length==0){var O=new L.a.eT(16200817),T=8,I=0;function p(ab){var u=ab[0]-ab[2],e=ab[1]-ab[3];
return u*u+e*e}function D(){var ab=0,f_=0;while(ab===0)ab=O.get();while(f_===0)f_=O.get();return Math.sqrt(-2*Math.log(ab))*Math.cos(2*Math.PI*f_)}var f=D,H=[];
while(I!=P){var b=Math.max(-x,Math.min(x,f()*T)),R=Math.max(-x,Math.min(x,f()*T)),W=Math.max(-x,Math.min(x,f()*T)),J=Math.max(-x,Math.min(x,f()*T)),u=b-W,e=R-J,Q=Math.sqrt(u*u+e*e);
if(Q<3||Q>12)continue;o.push(b,R,W,J);I++}}var q=20;for(var Z=0;Z<S.length;Z++){var E=S[Z],z=U[E.gX],V=z.yO,X=z.Jv,c=z.h_,y=z.Cm,Y=E.a5F,d=E.aqx,w=E.yu,A=Math.cos(w),$=Math.sin(w),i=new Uint8Array(P>>>3);
E.WA=i;for(var C=0;C<P;C++){var K=C*4,b=o[K+0],R=o[K+1],W=o[K+2],J=o[K+3],h=A*b-$*R,F=$*b+A*R,N=A*W-$*J,iQ=$*W+A*J,jB=_(Y+h,d+F,V,c,y),k=_(Y+N,d+iQ,V,c,y);
i[C>>>3]|=(jB<k?0:1)<<(C&7)}}}return{ai0:G,amx:j}}();L.arH=function(){function s(m,l){var x=[[9]],a=Date.now(),P=[];
for(var o=0;o<m.length;o++){var G=m[o],_=G.yO,j=G.h_,U=G.Cm,c=9,T=1,E=24;if(_==null)continue;var S=new Float32Array(j*U),X=new Uint8Array(j*U),y=c>>>1,O=y>>>1,p=Math.round(c/3);
if(p!=c/3)throw"e";var D=1/(c*c),f=1.2*(c/9);for(var I=y+1;I<U-y;I+=T)for(var H=y+1;H<j-y;H+=T){var b=L.rx(_,j,H-O,H+O,I-y,I+y)-3*L.rx(_,j,H-O,H+O,I-y+p,I+y-p),R=L.rx(_,j,H-y,H+y,I-O,I+O)-3*L.rx(_,j,H-y+p,H+y-p,I-O,I+O),W=H-y+1,J=H+y-1,u=I-y+1,e=I+y-1,Q=L.rx(_,j,W,H-1,u,I-1)+L.rx(_,j,H+1,J,I+1,e)-L.rx(_,j,H+1,J,u,I-1)-L.rx(_,j,W,H-1,I+1,e),q=(R*b-.9*Q*(.9*Q))*(D*D);
S[I*j+H]=Math.abs(q);X[I*j+H]=q<0?0:1}var Z=j*T;for(var I=E;I<U-E;I+=T)for(var H=E;H<j-E;H+=T){var C=I*j+H,z=S[C];
if(z<16)continue;if(S[C-T]>=z||S[C+T]>=z)continue;if(S[C-Z-T]>=z||S[C-Z]>=z||S[C-Z+T]>=z)continue;if(S[C+Z-T]>=z||S[C+Z]>=z||S[C+Z+T]>=z)continue;
P.push({x:~~(H*G.CT+.5),y:~~(I*G.CT+.5),a5F:H,aqx:I,gX:o,Z:z,a96:X[C],zd:f})}}if(l!=null){P.sort(function(K,h){return h.Z-K.Z});
P=P.slice(0,l)}return P;var V=[];for(var C=0;C<P.length;C++){var Y=!0,d=P[C];for(var w=0;w<P.length;
w++){var A=P[w];if(w!=C&&A.Z>d.Z&&(A.gX==d.gX+1||A.gX==d.gX-1)){var $=d.x-A.x,i=d.y-A.y;if($*$+i*i<5){Y=!1;
break}}}if(Y)V.push(d)}console.log(P.length,V.length);return V}return{aeX:s}}();L.GY={};L.GY.a9O=function(s){var m=s.length,l=L.GY.C7(s,!1),a=0,P=1;
throw"e";var x=[];for(var C=0;C<m;C++)x[C]=L.GY.hC(l[C]);var o=s[0][1],G=L.GY.match(l[a],l[P],x[P]);
console.log(G.length);var _=Math.max(Math.min(G.length,40),G.length*.54);_=Math.min(_,200);var j=G.slice(0,_),U=L.Kh.au0(l[a],l[P],j,o.e,o.l),S=L.Kh.aj5(U,[0,0,0],1),X=o.e/2,c=o.l/2,y=1/Math.max(X,c);
for(var C=0;C<1;C++){var O=j[C],p=l[a][O[0]],D=l[P][O[1]],f=L.Kh.ajT(S,y*(p.x-X),y*(p.y-c),y*(D.x-X),y*(D.y-c))}var T=L.Kh.adY(U,o),I=[];
for(var C=0;C<2;C++){var H=T[C],b=[H[0][0],H[0][1],H[0][2],H[1][0],H[1][1],H[1][2],H[2][0],H[2][1]],R=r.Q._i(s[C],null,b);
I.push([R.buffer,R.rect])}return[L.GY.a7u(I[0],I[1],l[a],l[P],j,U,T,o)]};L.GY.qC=function(s,m){var l=s.length,x=!1,a=Date.now(),P=L.GY.C7(s,!1,1e4);
if(x)console.log("Descriptors ready",Date.now()-a);a=Date.now();for(var C=0;C<l;C++){var o=s[C][1];for(var G=0;
G<P[C].length;G++){P[C][G].x+=o.x;P[C][G].y+=o.y}}if(x)console.log("shifted",Date.now()-a);a=Date.now();
var _=[];for(var C=0;C<l;C++)_[C]=L.GY.hC(P[C]);if(x)console.log("trees built",Date.now()-a);a=Date.now();
var j=[];for(var C=0;C<l-1;C++)for(var G=C+1;G<l;G++){var U=L.GY.match(P[C],P[G],_[G]);if(x)console.log("Matches found",C,G,U.length);
U=U.slice(0,U.length>>>1);if(U.length<10)return null;var S=L.GY.alq(P[C],P[G],U,2);j.push([C,G,U,S])}j.sort(function(u,e){return e[2].length-u[2].length});
if(x)console.log("Matches found",Date.now()-a);a=Date.now();var X=[],c=new UnionFind(l);for(var C=0;
C<j.length;C++){var y=j[C],O=c.find(y[0]),p=c.find(y[1]);if(O!=p){X.push(y);c.link(O,p)}}var D=[];for(var C=0;
C<l;C++)D[C]=[1,0,0,0,1,0,0,0];var f=[0],T=new Uint8Array(l);T[f[0]]=1;while(f.length!=0){var p=f.pop(),S=D[p],I=[];
for(var C=0;C<X.length;C++){var y=X[C],H=y[0],b=y[1];if(H==p&&T[b]==0){D[b]=L.V.fH(S,y[3]);f.push(b);
T[b]=1}if(b==p&&T[H]==0){D[H]=L.V.fH(S,L.V.ms(y[3]));f.push(H);T[H]=1}}}if(m==null){var W=[];for(var C=0;
C<l;C++)W.push([D[C][2],C]);W.sort(function(u,e){return u[0]-e[0]});m=W[W.length>>>1][1]}var J=L.V.ms(D[m]);
for(var C=0;C<l;C++)D[C]=L.V.fH(D[C],J);if(x)console.log("Transforms reordered",Date.now()-a);a=Date.now();
return D};L.GY.C7=function(s,m,l){var x=[],a=!1;for(var C=0;C<s.length;C++){var P=s[C][0],o=s[C][1],G=o.e,_=o.l,j=L.B(o.k());
L.A1(P,j);var U=Date.now(),S=L.GY.am7(j,o,!0);if(a)console.log("Pyramid built ---------------",Date.now()-U);
U=Date.now();var X=L.arH.aeX(S,l);if(a)console.log("SURF Generation",Date.now()-U);U=Date.now();if(!m){L.uO.ai0(S,X);
if(a)console.log("ORB Orientations",Date.now()-U);U=Date.now();L.uO.amx(S,X,j,G,_);if(a)console.log("ORB Descriptors",Date.now()-U);
U=Date.now()}x.push(X)}return x};L.GY.am7=function(s,m,l){var x=[],a=[s,m];L.lx(a);if(l){var P=L.ah(s,m),o=P.rect,G=[P.du,o];
L.lx(G)}for(var C=0;C<a.length;C++){var _=a[2*C],j=a[2*C+1],U=j.e,S=j.l,X=Math.min(U,S);if(X<30)break;
if(X<1600)x.push({Jv:_,h_:U,Cm:S,CT:1<<C,yO:L.c$(_,U,S)});if(!l)continue;var _=G[2*C],j=G[2*C+1],U=j.e,S=j.l,X=Math.min(U,S);
if(X<30)break;if(X<1600)x.push({Jv:_,h_:U,Cm:S,CT:(1<<C)*3/2,yO:L.c$(_,U,S)})}return x};L.GY.alq=function(s,m,l,x){var a=Date.now(),P,o=0,G=0,_=l.length,j=new Float64Array(2);
for(var U=0;U<3e3;U++){var S=~~(Math.random()*_),X=~~(Math.random()*_),c=~~(Math.random()*_),y=~~(Math.random()*_),Z=0,E=0;
if(S==X||S==c||S==y||X==c||X==y||c==y)continue;var O=l[S],p=l[X],D=l[c],f=l[y],T=s[O[0]],I=m[O[1]],H=s[p[0]],b=m[p[1]],R=s[D[0]],W=m[D[1]],J=s[f[0]],u=m[f[1]],e=[T.x,T.y,H.x,H.y,R.x,R.y,J.x,J.y],Q=[I.x,I.y,b.x,b.y,W.x,W.y,u.x,u.y],q=L.V.Bd(e,Q);
if(q[0]==0&&q[1]==0&&q[3]==0&&q[4]==0)continue;var z=_-o+2;for(var C=0;C<_&&C-Z<z;C++){var V=s[l[C][0]],Y=m[l[C][1]];
L.V.bQ(Y.x,Y.y,q,j);var d=j[0]-V.x,w=j[1]-V.y,A=d*d+w*w;if(A<x){Z++;E+=A}}if(Z>o||Z==o&&E<G){P=q;o=Z;
G=E}}return P};var dF=new Uint8Array(256);for(var C=0;C<256;C++){var aZ=0,cE=C;while(cE!=0){cE=cE&cE-1;
aZ++}dF[C]=aZ}L.GY.aap=function(s,m,l){var x=0,a=s.length;for(var C=0;C<a&&x<l;C++)x+=dF[s[C]^m[C]];
return x};L.GY.a8d=function(s,m,l,top,x){if(x[l]==1)return;var a=L.GY.aap(s.WA,m.WA,top[0]);if(a<top[0]){if(a<top[2]){top[0]=top[2];
top[1]=top[3];top[2]=a;top[3]=l}else{top[0]=a;top[1]=l}}x[l]=1};L.GY.hC=function(s){var m=[],l=[],x=[[],[]],a=4;
for(var C=0;C<s.length;C++)(s[C].a96==0?m:l).push(C);for(var P=0;P<2;P++){var o=new Array(a),G=[],_=P==0?m:l,j=_.length/256,U=[];
for(var S=0;S<32;S++){var X=new Array(256),O=0;for(var c=0;c<256;c++)X[c]=[];for(var c=0;c<_.length;
c++){var y=_[c];X[s[y].WA[S]].push(y)}for(var c=0;c<256;c++)O+=Math.abs(X[c].length-j);U.push([O,S,X])}U.sort(function(p,D){return p[0]-D[0]});
var G=[],o=[];x[P]=[G,o];for(var C=0;C<a;C++){G.push(U[C][1]);o.push(U[C][2])}}return x};L.GY.match=function(s,m,l){var x=[],a=new Uint16Array(m.length);
a.fill(65535);var P=new Uint8Array(m.length),top=new Uint32Array(4),o=[];for(var G=0;G<s.length;G++){var _=s[G],j=_.WA;
top.fill(1e6);P.fill(0);var U=l[_.a96];for(var S=0;S<U[1].length;S++){var X=U[1][S][j[U[0][S]]];for(var c=0;
c<X.length;c++){var y=X[c];L.GY.a8d(_,m[y],y,top,P)}}if(top[2]<50&&top[2]<top[0]*.5){var O=a[top[3]];
if(O==65535){a[top[3]]=x.length;x.push([G,top[3],top[2]])}else if(top[2]<x[O][2]){x[O]=[G,top[3],top[2]]}}}x.sort(function(p,D){return p[2]-D[2]});
return x};L.GY.a8n=function(s){var m=new bU;for(var C=0;C<s.length;C++)m=m.if(s[C][1]);var l=L.B(m.k()*4);
for(var C=0;C<s.length;C++)L.a.$P("norm",s[C][0],s[C][1],l,m,m,1);return[l,m]};L.GY.a7u=function(s,m,l,x,a,P,o,G){var _=s[1].clone(),j=_.clone();
_.x=_.y=0;var U=m[1].clone(),S=U.clone();U.x=U.y=0;U.x=_.e;var X=_.if(U),c=S.y-j.y,y=L.B(X.k()*4);L.yx(s[0],_,y,X);
L.yx(m[0],new bU(U.x,U.y+c,U.e,U.l),y,X);var O=document.createElement("canvas");O.width=X.e;O.height=X.l;
var p=O.getContext("2d");p.lineWidth=.5;p.putImageData(new ImageData(new Uint8ClampedArray(y.buffer),X.e,X.l),0,0);
if(P){var D=P[0],f=L.pc.mP(D),T=_.e,I=G.e;for(var C=0;C<a.length;C++){var H=a[C],s=l[H[0]],m=x[H[1]];
p.strokeStyle="#"+"ff0000";p.beginPath();var b=L.Kh.a5e(f,o[0],m,0,I),R=L.Kh.a5e(D,o[1],s,0,I);p.moveTo(-j.x+b[0],-j.y+b[1]);
p.lineTo(-j.x+b[2],-j.y+b[3]);p.moveTo(T-S.x+R[0],-S.y+c+R[1]);p.lineTo(T-S.x+R[2],-S.y+c+R[3]);p.stroke()}}if(a){var W=a.length;
for(var C=0;C<W;C++){var H=a[C],s=l[H[0]],m=x[H[1]];p.strokeStyle="#"+"ffff00"}}var J=new Uint8Array(p.getImageData(0,0,X.e,X.l).data.buffer);
if(!1){for(var u=0;u<2;u++){var e=u==0?l:x,Q=u*_.e;for(var C=0;C<e.length;C++){var q=e[C],Z=~~q.x,E=~~q.y,z=(E*X.e+Z+Q)*4;
J[z+1]=J[z+2]=q.a8a*60;J[z+0]=0;J[z+3]=255}}}return[J,X]};L.stack={};L.stack.stack=function(s,m,l){var x=s.length,a=m.length;
if(x==1){m.set(s[0]);return}if(l=="avrg"||l=="stdv"||l=="summ"||l=="vari"){var P=1/x;for(var C=0;C<a;
C++){var o=0;for(var G=0;G<x;G++)o+=s[G][C];var _=~~(o*P+.5);if(l=="avrg"||(C&3)==3)m[C]=_;else if(l=="summ")m[C]=255*Math.pow(Math.min(255,o)*(1/255),1/2.4);
else{var j=0;for(var G=0;G<x;G++){var U=s[G][C]-_;j+=U*U}var S=Math.sqrt(j*P)*(1/255);if(l=="stdv")m[C]=255*Math.pow(S,1/2.4);
else m[C]=255*Math.pow(S*S,1/2.4)}}}else if(l=="maxx"){for(var C=0;C<a;C++){var X=0;for(var G=0;G<x;
G++)X=Math.max(X,s[G][C]);m[C]=X}}else if(l=="minn"){for(var C=0;C<a;C++){var X=255;for(var G=0;G<x;
G++)X=Math.min(X,s[G][C]);m[C]=X}}else if(l=="medn"||l=="rang"){var c=function(D,f){return D-f},y=new Array(x),O=0,p=0;
if(x%1==0){p=x>>>1;O=p-1}else{O=p=x>>>1}for(var C=0;C<a;C++){for(var G=0;G<x;G++)y[G]=s[G][C];y.sort(c);
if(l=="medn")m[C]=y[O]+y[p]>>>1;else m[C]=(C&3)==3?y[x-1]:y[x-1]-y[0]}}else console.log(l)};L.Nt={};
L.Nt.a6B=function(s,m,l,x){var a=Date.now(),P=new Uint32Array(m*l),o=new Uint8Array(m*l);while(!0){o.fill(0);
P.fill(0);var G=[],_=0;for(var j=0;j<l;j++){for(var U=0;U<m;U++){var C=j*m+U;if(o[C]==0){var S=G.length,X=L.Nt.EI(s,m,l,U,j,o,P,S);
G.push([S,U,j,X[0],X[1],s[C]]);if(X[0]<x)_++}}}if(_==0)break;var c=G.length,y=new UnionFind(c),O=[];
for(var C=0;C<c;C++)O.push([]);for(var C=0;C<c;C++){var X=G[C],p=X[4],D=0,f=0;if(X[3]>=x)continue;var S=X[0];
for(var T=0;T<p.length;T+=2){var I=P[p[T+1]*m+p[T]],H=G[I];if(H[3]>f){f=H[3];D=I}}if(y.find(S)!=y.find(D)){y.link(S,D);
O[S].push(D);O[D].push(S)}}var b=new Uint32Array(c);b.fill(4294967295);var R=new Uint32Array(c);for(var C=0;
C<c;C++){if(b[C]!=4294967295||O[C].length==0)continue;var W=[C],J=[C],u=C,e=G[C][3];while(J.length!=0){var Q=J.pop(),q=O[Q];
for(var T=0;T<q.length;T++){var Z=q[T];if(W.indexOf(Z)==-1){W.push(Z);J.push(Z);var E=G[Z];if(E[3]>e){e=E[3];
u=Z}}}}for(var T=0;T<W.length;T++){b[W[T]]=u;var z=G[u];R[W[T]]=s[z[2]*m+z[1]]}}for(var j=0;j<l;j++)for(var U=0;
U<m;U++){var C=j*m+U,V=b[P[C]];if(V!=4294967295)s[C]=R[V]}}};L.Nt.EI=function(s,m,l,x,a,P,o,G){var _=[x,a],j=s[a*m+x],U=0,S=[];
P[a*m+x]=1;while(_.length!=0){var X=_.pop(),c=_.pop(),C=X*m+c;o[C]=G;U++;if(X!=l-1)if(s[C+m]==j){if(P[C+m]==0){_.push(c,X+1);
P[C+m]=1}}else S.push(c,X+1);if(X!=0)if(s[C-m]==j){if(P[C-m]==0){_.push(c,X-1);P[C-m]=1}}else S.push(c,X-1);
if(c!=m-1)if(s[C+1]==j){if(P[C+1]==0){_.push(c+1,X);P[C+1]=1}}else S.push(c+1,X);if(c!=0)if(s[C-1]==j){if(P[C-1]==0){_.push(c-1,X);
P[C-1]=1}}else S.push(c-1,X)}return[U,S]};L.Nt.ao$=function(s,m,l,x,a){var P=L.Nt.Li(s.buffer,m,l).qO,o=Date.now(),G=[];
for(var C=0;C<P.length;C++){var _=P[C],j=1;for(var U=0;U<j;U++)G.push(_.In)}var S=new Uint32Array(G),X=UPNG.quantize.getKDtree(new Uint8Array(S.buffer),x),c=[m,1,-m,-1,m+1,-m+1,-m-1,m-1,m+m,2,-m-m,-2,m+m-1,m+m+1,m+2,-m+2,-m-m+1,-m-m-1,-m-2,m-2,m+m+2,-m-m+2-m-m-2,m+m-2],y=new Uint8Array(m*l),O=s;
for(var p=0;p<l;p++)for(var D=0;D<m;D++){var C=p*m+D<<2,f=O[C]*(1/255),T=O[C+1]*(1/255),I=O[C+2]*(1/255),H=O[C+3]*(1/255),b=L.Nt.Iw(X,f,T,I,H,a);
if(b==null){var R=[],W=0;while(W<20){var J=p*m+D+c[W]<<2,u=O[J]*(1/255),e=O[J+1]*(1/255),Q=O[J+2]*(1/255),q=O[J+3]*(1/255),Z=L.Nt.Iw(X,u,e,Q,q,.005);
if(Z!=null){if(R.indexOf(Z)==-1){R.push(Z);Z.RQ=1}else Z.RQ++}W++}R.sort(function(H,I){return I.RQ-H.RQ});
while(R.length!=0&&R[R.length-1].RQ<3)R.pop();if(R.length==0)b=L.Nt.Iw(X,f,T,I,H,100);else if(R.length==1)b=R[0];
else if(R.length==2){var E=R[0],z=R[1],V=E.est.q,Y=z.est.q,d=Y[0]-V[0],w=Y[1]-V[1],A=Y[2]-V[2],$=Y[3]-V[3],i=f-V[0],K=T-V[1],h=I-V[2],F=H-V[3],N=d*d+w*w+A*A+$*$,iQ=i*i+K*K+h*h+F*F,jB=(i*d+K*w+h*A+F*$)/N,k=iQ-jB*jB*N;
if(k<.5)b=jB<.5?E:z;else{b=L.Nt.Iw(X,f,T,I,H,100)}}else{var E=R[0],z=R[1],ab=R[2],V=E.est.q,Y=z.est.q,f_=ab.est.q,fc=V[0]-f_[0],g8=V[1]-f_[1],bH=V[2]-f_[2],cR=V[3]-f_[3],hr=Y[0]-f_[0],h$=Y[1]-f_[1],gE=Y[2]-f_[2],d8=Y[3]-f_[3],hG=f_[0]-f,f7=f_[1]-T,hX=f_[2]-I,fB=f_[3]-H,e5=fc*fc+g8*g8+bH*bH+cR*cR,g9=fc*hr+g8*h$+bH*gE+cR*d8,cL=hG*fc+f7*g8+hX*bH+fB*cR,bf=fc*hr+g8*h$+bH*gE+cR*d8,gF=hr*hr+h$*h$+gE*gE+d8*d8,iC=hG*hr+f7*h$+hX*gE+fB*d8,ax=1/(g9*bf-e5*gF),jB=(gF*cL-iC*g9)*ax,e7=(iC*e5-cL*bf)*ax,dO=1-jB-e7,h1=Math.max(jB,e7,dO);
if(h1==jB)b=E;else if(h1==e7)b=z;else b=ab}}y[C>>2]=b.ind}return{QL:y,qO:X[1]}};L.Nt.Li=function(s,m,l){var x=[],a={},P=m-1,o=l-1,G=0,_=new Uint32Array(s),j=[-m-1,-m,-m+1,-1,1,m-1,m,m+1,m+m,2,-m-m,-2,m+m-1,m+m+1,m+2,-m+2,-m-m+1,-m-m-1,-m-2,m-2,m+m+2,-m-m+2-m-m-2,m+m-2];
for(var U=1;U<o;U++)for(var S=1;S<P;S++){var X=U*m+S,c=_[X],y=!0;for(var C=0;C<8;C++)y=y&&_[X+j[C]]==c;
if(y){G++;var O=a[c];if(O==null){a[c]=x.length;x.push({In:c,Vx:1})}else x[O].Vx++}}return{qO:x,aiS:G}};
L.Nt.Iw=function(s,m,l,x,a,P){var o=UPNG.quantize.getNearest(s[0],m,l,x,a);return L.Nt.anS(o,m,l,x,a)<P?o:null};
L.Nt.anS=function(s,m,l,x,a){var P=s.est.q,o=m-P[0],G=l-P[1],_=x-P[2],j=a-P[3];return o*o+G*G+_*_+j*j};
L.Nt.Bw=function(){function s(D,f,T,I,H,b){var R=[],W=b,J=b,u=b>>>2;for(var e=0;e<H;e++)for(var Q=0;
Q<I;Q++){var q=~~((Q+.5)*W),Z=~~((e+.5)*J),E=1e9,z=Math.max(0,q-u),V=Math.min(f,q+u+1),Y=Math.max(0,Z-u),d=Math.min(T,Z+u+1);
for(var w=Y;w<d;w++)for(var A=z;A<V;A++){var $=m(D,f,A,w);if($<E){q=A;Z=w;E=$}}var i=(Z*f+q)*4;R.push(q,Z)}return R}function m(D,f,T,I){var H=(I*f+T)*4,b=f*4,R=l(D,H-4,H)+l(D,H,H+4),W=l(D,H-b,H)+l(D,H,H+b);
return R+W}function l(D,f,T){var I=D[f]-D[T],H=D[f+1]-D[T+1],b=D[f+2]-D[T+2];return I*I+H*H+b*b}var x=0,a=0;
function P(D,f,T,I){a++;if(I<x)x=I;D[I].push(f,T)}function o(D){a--;while(D[x].length==0)x++}function G(D,f,T,I,H){x=0;
a=0;var b=f*T,R=Math.round(Math.min(f,T)/(I?I:50)),z=0,V=16;if(R==0)R=1;var W=(H?H:30)/R,J=Math.floor(f/R),u=Math.floor(T/R),e=new Uint16Array(b);
for(var C=0;C<b;C++)e[C]=65535;var Q=s(D,f,T,J,u,R),q=Q.length>>>1;if(q>65535)throw q;var Z=[];for(var C=0;
C<1e3+T;C++)Z.push([]);var E=[0,1,0,-1,-1,0,1,0],Y=Math.min(u,5),d=new Uint32Array(q*6);for(var w=0;
w<u;w+=Y){var A=Math.min(w+Y+1,u);for(var $=w;$<A;$++)for(var i=0;i<J;i++){var C=$*J+i,K=C*2,h=Q[K+1]<<16|Q[K];
P(Z,h,C,Q[K+1]>>>V)}var F=Math.min(T,A*R);if(w+Y>=u)F=T;while(a!=0){o(Z);var N=Z[x].pop(),iQ=Z[x].pop(),jB=iQ>>>16,k=iQ&65535,C=jB*f+k;
if(e[C]==65535){var ab=N*6,f_=C<<2;e[C]=N;d[ab]+=D[f_];d[ab+1]+=D[f_+1];d[ab+2]+=D[f_+2];d[ab+3]+=k;
d[ab+4]+=jB;d[ab+5]++;var fc=jB>>>V;if(jB!=F-1&&e[C+f]==65535)P(Z,jB+1<<16|k,N,_(D,f,W,k,jB+1,d,ab)+fc);
if(jB!=0&&e[C-f]==65535)P(Z,jB-1<<16|k,N,_(D,f,W,k,jB-1,d,ab)+fc);if(k!=0&&e[C-1]==65535)P(Z,jB<<16|k-1,N,_(D,f,W,k-1,jB,d,ab)+fc);
if(k!=f-1&&e[C+1]==65535)P(Z,jB<<16|k+1,N,_(D,f,W,k+1,jB,d,ab)+fc)}}if(F!=jB){var g8=(w+Y)*J;d.fill(0,g8*6,(g8+J)*6);
for(var jB=(w+Y-2)*R;jB<F;jB++)for(var k=0;k<f;k++){var C=jB*f+k;if(e[C]>=g8){e[C]=65535}}}}return{QL:e,OV:q,Hf:d}}L.Nt.fm=function(D,f,T,I,H){var b=D.OV,R=f*T,W=D.Hf,J=D.QL,u=c(I,J,b,R),e=new UnionFind(b),V=0;
for(var Q=1;Q<T;Q++)for(var q=1;q<f;q++){var C=Q*f+q,Z=J[C],E=0;if((E=J[C-1])!=Z&&u[E]==u[Z]&&j(W,0,Z*6,E*6)<H)e.link(Z,E);
if((E=J[C-f])!=Z&&u[E]==u[Z]&&j(W,0,Z*6,E*6)<H)e.link(Z,E)}var z=new Uint16Array(b);z.fill(65535);var Y=new Uint16Array(b);
for(var C=0;C<b;C++){var d=e.find(C);if(z[d]==65535)z[d]=V++;Y[C]=z[d]}var w=new Uint16Array(R);for(var C=0;
C<R;C++)w[C]=Y[J[C]];return{QL:w,OV:V}};L.Nt.ae0=function(D,f,T,I){var H=L.B(T),b=f.length,R=0;for(var C=0;
C<b&&R!=3;C++){var W=I[C];if(W==0||W==255){var J=f[C],u=2-(W>>>7);H[J]=R=H[J]|u}}return R!=3};function _(D,f,T,I,H,b,R){var W=(H*f+I)*4,J=b[R+5],u=1/J,e=D[W]*J-b[R],Q=D[W+1]*J-b[R+1],q=D[W+2]*J-b[R+2],Z=I*J-b[R+3],E=H*J-b[R+4],z=Math.sqrt(e*e+Q*Q+q*q),V=Math.sqrt(Z*Z+E*E);
return~~((z+T*V)*u+.5)}function j(D,f,T,I){var H=1/D[T+5],b=1/D[I+5],R=D[T]*H-D[I]*b,W=D[T+1]*H-D[I+1]*b,J=D[T+2]*H-D[I+2]*b,u=D[T+3]*H-D[I+3]*b,e=D[T+4]*H-D[I+4]*b,Q=Math.sqrt(R*R+W*W+J*J),q=Math.sqrt(u*u+e*e);
return~~(Q+f*q+.5)}function U(D,f,T){var I=L.pH(D,new bU(0,0,f,T)),H=I.rect.e,b=I.rect.l,R=G(I.du,H,b),W=R.QL,J=Date.now(),u=new Uint16Array(f*T);
u.fill(65535);for(var e=0;e<b;e++){for(var Q=0;Q<H;Q++){var q=e*H+Q,C=(e<<1)*f+(Q<<1),Z=W[q];if(W[q-H]!=Z||W[q-1]!=Z||W[q+1]!=Z||W[q+H]!=Z)Z=65535;
u[C]=Z;u[C+1]=Z;u[C+f]=Z;u[C+f+1]=Z}}R.QL=u;return R}function S(D,f){var C=0,T=D.length;while(C!=T&&D[C]!=f)C+=2;
return C==T?-1:C}function X(D,C){if(C==D.length-2){D.pop();D.pop()}else{D[C+1]=D.pop();D[C]=D.pop()}}L.Nt.agw=function(D,f,T,I,H){var b=new Uint32Array(H*4400),m=[];
for(var C=0;C<H;C++)m.push([]);for(var R=0;R<T;R++)for(var W=0;W<f;W++){var C=R*f+W,J=C<<2,u=I[C],e=0,Q=D[J]>>>4,q=D[J+1]>>>4,Z=D[J+2]>>>4;
b[u*4400+(Q<<8|q<<4|Z)]++;b[u*4400+4096]++;b[u*4400+4100+(Q<<4|q)]++;b[u*4400+4360+Q]++;if(W!=0&&(e=I[C-1])!=u&&S(m[u],e)==-1){m[u].push(e,0);
m[e].push(u,0)}if(R!=0&&(e=I[C-f])!=u&&S(m[u],e)==-1){m[u].push(e,0);m[e].push(u,0)}}for(var C=0;C<H;
C++){var Z=m[C];for(var E=0;E<Z.length;E+=2)Z[E+1]=p(b,C,Z[E])}return[b,m]};function c(D,f,T,I){var H=L.B(T);
for(var C=0;C<I;C++){var b=D[C];if(b==0||b==255)H[f[C]]=2-(b>>>7)}return H}L.Nt.agv=function(D,f,T,I,H,b,R){var W=f*T,J=R[0],m=R[1],u=new UnionFind(I),e=c(H,D,I,W),Q=-1,q=!0,Z=0;
for(var C=0;C<I;C++)if(e[C]==1){if(Q==-1)Q=C;else u.link(C,Q)}if(Q==-1){for(var C=0;C<W;C++)b[C]=H[C]==255?255:0;
return}while(q){while(q){q=!1;for(var C=0;C<I;C++){if(e[C]==0){var E=y(m[C]);if(e[E]==1){e[C]=e[E];q=!0;
u.link(C,E)}}}}q=!0;Z=0;while(q){q=!1;for(var C=0;C<I;C++){if(e[C]==0){var E=y(m[C]);if(e[E]==0){var z=C*4400,V=E*4400;
for(var Y=0;Y<4400;Y+=2){J[z+Y]+=J[V+Y];J[z+Y+1]+=J[V+Y+1]}O(m,J,C,E);Z++;e[E]=3;q=!0;u.link(C,E)}}}}q=Z!=0}var d=u.find(Q);
for(var C=0;C<I;C++)e[C]=u.find(C)==d?255:0;for(var C=0;C<W;C++){b[C]=e[D[C]]}for(var C=0;C<W;C++){var E=H[C];
if(E==0||E==255)b[C]=E}};function y(D){var f=0,T=0,I=D.length;for(var H=0;H<I;H+=2){var b=D[H+1];if(b>T){T=b;
f=H}}return D[f]}function O(m,D,f,T){var I=m[f],H=m[T];X(I,S(I,T));X(H,S(H,f));for(var C=0;C<H.length;
C+=2){var b=H[C],R=m[b];X(R,S(R,T));if(S(R,f)==-1){R.push(f,0);I.push(b,0)}}for(var C=0;C<I.length;C+=2){var b=I[C],R=m[b],W=p(D,f,b);
I[C+1]=W;R[S(R,f)+1]=W}}function p(D,f,T){var I=0,H=4096,b=f*4400,R=T*4400;for(var W=0;W<16;W++){if(D[b+4360+W]==0||D[R+4360+W]==0)continue;
for(var J=0;J<16;J++){var u=W<<4|J;if(D[b+4100+u]==0||D[R+4100+u]==0)continue;var e=b+(u<<4),Q=R+(u<<4);
for(var C=0;C<16;C++)I+=Math.sqrt(D[e+C]*D[Q+C])}}var q=I/Math.sqrt(D[b+H]*D[R+H]);return~~(999.99999*q)}return G}();
L.xv={};L.xv.aqA=function(){var s=11,m=7,l=s>>>1,cE=m>>>1,x=2,a=2e3/x,P=[],G=null,_="";function o(U,S,X){var c=(U[S+0]-U[X+0])*(1/255),y=(U[S+1]-U[X+1])*(1/255),O=(U[S+2]-U[X+2])*(1/255),p=(U[S+3]-U[X+3])*(1/255),D=c*c*.125+y*y*.25+O*O*.5+p*p;
return P[~~(D*a)]}function j(U,S,X,c,y,O){var p=Date.now(),D=L.B(S*X);L.A1(U,D);var f=UZIP.adler(D,0,S*X);
if(f!=_){var T=L.c$(D,S,X);G=L.B(S*X*4);_=f;var I=[1,1/9,1/25,1/49,1/81];for(var H=0;H<X;H++)for(var b=0;
b<S;b++)for(var C=0;C<4;C++){var R=Math.max(1,b-C),W=Math.min(S-1,b+C),J=Math.max(1,H-C),u=Math.min(X-1,H+C),e=L.rx(T,S,R,W,J,u);
if(isNaN(e))throw b+","+H+","+C+","+e;G[(H*S+b)*4+C]=e*I[C]}}if(M.wR){var Q=M.OI(0,S,X);Q.set(U);var q=M.OI(1,S,X);
q.set(G);var Z=M.OI(2,S,X);M.C8(Z);M.filter.Pu({type:M.filter.abt,Wl:new Float32Array([1/S,1/X]),aiR:q.Vh,a0l:y,afk:O},Q.Vh);
Z.get(c)}else{for(var C=0;C<2e3;C++)P[C]=Math.exp(-(C/2e3)*x*(100+(1-y)*(1-y)*1e4));var E=cE+2;for(var H=E;
H<X-E;H++)for(var b=E;b<S-E;b++){var z=0,V=0,Y=0,d=0;for(var w=0;w<s;w++)for(var A=0;A<s;A++){var $=b+A-l,i=H+w-l;
if($==b&&i==H||$<E||i<E||$>=S-E||i>=X-E)continue;var K=o(G,(H*S+b)*4,(i*S+$)*4),h=i*S+$<<2;z+=K*U[h+0];
V+=K*U[h+1];Y+=K*U[h+2];d+=K}if(d==0){continue}var F=1/d,N=(H*S+b)*4;c[N+0]=~~((1-O)*F*z+O*c[N+0]);c[N+1]=~~((1-O)*F*V+O*c[N+1]);
c[N+2]=~~((1-O)*F*Y+O*c[N+2])}}}return j}();var a4=function(){function s(){this.k=0;this.xD=0;this.UP={};
this.wu=[];this.Rd=1e5;this.hU=1e5;this.rj=-1;this.E8=-1;this.color=0}function m(cE){this.vQ=cE;this.HU=new Array(cE);
this.In=new Array(cE*6);this.atD=0;this.$x=new Array(cE*2);this.alpha=new Array(cE);this.c_=new Array(cE);
this.qj=new Array(cE)}function l(a,P,o,G){function _(p,D,a,P){return a[P*D+p]}function j(C){var R=a.length;
while(C<R&&a[C]==0)C++;return C<R?C:-1}function U(p,D,R){for(var C=2;C<5;C++){var W=0;for(var J=-C+1;
J<=C-1;J++){W+=_(p+J,D+C-1,a,P)==R?1:-1;W+=_(p+C-1,D+J-1,a,P)==R?1:-1;W+=_(p+J-1,D-C,a,P)==R?1:-1;W+=_(p-C,D+J,a,P)==R?1:-1}if(W>0)return 1;
else if(W<0)return 0}return 0}function S(R,y){var O=new s,p=R,D=y,W=0,J=1,u;O.color=a[y*P+R];O.sign=_(R,y,a,P)==O.color?"+":"-";
while(1){O.wu.push(p,D);if(p>O.rj)O.rj=p;if(p<O.Rd)O.Rd=p;if(D>O.E8)O.E8=D;if(D<O.hU)O.hU=D;O.xD++;p+=W;
D+=J;O.k-=p*J;if(p==R&&D==y)break;var e=_(p+(W+J-1>>1),D+(J-W-1>>1),a,P)==O.color,Q=_(p+(W-J-1>>1),D+(J+W-1>>1),a,P)==O.color;
if(Q&&!e){if(G.OC=="right"||G.OC=="black"&&O.sign=="+"||G.OC=="white"&&O.sign=="-"||G.OC=="majority"&&U(p,D,O.color)||G.OC=="minority"&&!U(p,D,O.color)){u=W;
W=-J;J=u}else{u=W;W=J;J=-u}}else if(Q){u=W;W=-J;J=u}else if(!e){u=W;W=J;J=-u}}return O}var X=0,c=[];
while(!0){var X=j(X);if(X==-1)break;var y=Math.floor(X/P),O=S(X-y*P,y);for(var C=0;C<O.wu.length-2;C+=2){var p=O.wu[C],D=O.wu[C+1],f=D*P+p;
if(p==O.wu[C+2]&&D+1==O.wu[C+3]&&a[f]!=0)a4.fill(f,a,P,0)}if(O.k>G.aru)c.push(O)}for(var C=0;C<c.length;
C++)c[C].parent=-1;var T=Date.now();for(var C=1;C<c.length;C++){var I=c[C];for(var H=C-1;H>=0;H--){var b=c[H];
if(I.Rd<b.Rd||I.rj>b.rj||I.hU<b.hU||I.E8>b.E8)continue;if(!a4.aeI(b.wu,I.wu[0]+.5,I.wu[1]+.5))continue;
I.parent=H;break}}return c}function x(a,P){function o(W,J,u,e,Q){this.x=W;this.y=J;this.ns=u;this.t5=e;
this.q0=Q}function G(W,cE){return(cE+W)%cE}function _(W,J,u,e){return W*e-u*J}function j(W,J,u,e){return W*u+J*e}function U(W,J,u){if(W<=u)return W<=J&&J<u;
else return W<=J||J<u}function S(W,J,u){var e=0;e+=J*W[0]*J;e+=J*W[1]*u;e+=J*W[2];e+=u*W[3]*J;e+=u*W[4]*u;
e+=u*W[5];e+=W[6]*J;e+=W[7]*u;e+=W[8];return e}function X(W,J,u){return J+W*(u-J)}function c(W,J,u,e){var Q=Math.sign(u-W),q=-Math.sign(e-J);
return Q*(u-W)-q*(e-J)}function y(W,J){return Math.sqrt(W*W+J*J)}function O(W,J,u,e,Q){var q=1-W;return q*q*q*J+3*(q*q*W)*u+3*(W*W*q)*e+W*W*W*Q}function p(W,J,u,e,Q,q,Z,E){var z=_(W,J,Z,E),V=_(u,e,Z,E),Y=_(Q,q,Z,E),d=z-2*V+Y,w=-2*z+2*V,A=z,$=w*w-4*d*A;
if(d==0||$<0)return-1;var i=Math.sqrt($),K=(-w+i)/(2*d),h=(-w-i)/(2*d);if(K>=0&&K<=1)return K;else if(h>=0&&h<=1)return h;
else return-1}function D(R){var C,W,J;R.uz=R.wu[0];R.ad0=R.wu[1];R.O4=[];var u=R.O4;u.push(new o(0,0,0,0,0));
for(C=0;C<R.xD;C++){W=R.wu[C<<1]-R.uz;J=R.wu[(C<<1)+1]-R.ad0;u.push(new o(u[C].x+W,u[C].y+J,u[C].ns+W*J,u[C].t5+W*W,u[C].q0+J*J))}}function f(R){var cE=R.xD,W=R.wu,J,u=new Array(cE),e=new Array(cE),Q=new Array(4),q,Z,E,z,V,Y,d,w,A,$,i,C,K,h,F,N,iQ,jB,k=0;
R.ju=new Array(cE);for(C=cE-1;C>=0;C--){if(W[C<<1]!=W[k<<1]&&W[(C<<1)+1]!=W[(k<<1)+1])k=C+1;e[C]=k}for(C=cE-1;
C>=0;C--){var ab=G(C+1,cE)<<1;Q[0]=Q[1]=Q[2]=Q[3]=0;J=(3+3*(W[ab]-W[C<<1])+(W[ab+1]-W[(C<<1)+1]))/2;
Q[J]++;q=0;Z=0;E=0;z=0;k=e[C];h=C;while(1){i=0;J=(3+3*Math.sign(W[k*2]-W[h*2])+Math.sign(W[k*2+1]-W[h*2+1]))/2;
Q[J]++;if(Q[0]&&Q[1]&&Q[2]&&Q[3]){u[C]=h;i=1;break}A=W[k*2]-W[C*2];$=W[k*2+1]-W[C*2+1];if(_(q,Z,A,$)<0||_(E,z,A,$)>0){break}if(Math.abs(A)<=1&&Math.abs($)<=1){}else{V=A+($>=0&&($>0||A<0)?1:-1);
Y=$+(A<=0&&(A<0||$<0)?1:-1);if(_(q,Z,V,Y)>=0){q=V;Z=Y}V=A+($<=0&&($<0||A<0)?1:-1);Y=$+(A>=0&&(A>0||$<0)?1:-1);
if(_(E,z,V,Y)<=0){E=V;z=Y}}h=k;k=e[h];if(!U(k,C,h)){break}}if(i==0){d=Math.sign(W[k*2]-W[h*2]);w=Math.sign(W[k*2+1]-W[h*2+1]);
A=W[h*2]-W[C*2];$=W[h*2+1]-W[C*2+1];F=_(q,Z,A,$);N=_(q,Z,d,w);iQ=_(E,z,A,$);jB=_(E,z,d,w);K=1e7;if(N<0){K=Math.floor(F/-N)}if(jB>0){K=Math.min(K,Math.floor(-iQ/jB))}u[C]=G(h+K,cE)}}K=u[cE-1];
R.ju[cE-1]=K;for(C=cE-2;C>=0;C--){if(U(C+1,u[C],K)){K=u[C]}R.ju[C]=K}for(C=cE-1;U(G(C+1,cE),K,R.ju[C]);
C--){R.ju[C]=K}}function T(R){function W(R,C,J){var cE=R.xD,A=R.wu,$=R.O4,i,K,h,F,N,e,iQ,jB,w,k,ab,f_,fc,g8,bH=0;
if(J>=cE){J-=cE;bH=1}if(bH==0){i=$[J+1].x-$[C].x;K=$[J+1].y-$[C].y;F=$[J+1].t5-$[C].t5;h=$[J+1].ns-$[C].ns;
N=$[J+1].q0-$[C].q0;e=J+1-C}else{i=$[J+1].x-$[C].x+$[cE].x;K=$[J+1].y-$[C].y+$[cE].y;F=$[J+1].t5-$[C].t5+$[cE].t5;
h=$[J+1].ns-$[C].ns+$[cE].ns;N=$[J+1].q0-$[C].q0+$[cE].q0;e=J+1-C+cE}ab=(A[C<<1]+A[J<<1])/2-A[0];f_=(A[(C<<1)+1]+A[(J<<1)+1])/2-A[1];
g8=A[J<<1]-A[C<<1];fc=-(A[(J<<1)+1]-A[(C<<1)+1]);iQ=(F-2*i*ab)/e+ab*ab;jB=(h-i*f_-K*ab)/e+ab*f_;w=(N-2*K*f_)/e+f_*f_;
k=fc*fc*iQ+2*fc*g8*jB+g8*g8*w;return Math.sqrt(k)}var C,J,u,e,cE=R.xD,Q=new Array(cE+1),q=new Array(cE+1),Z=new Array(cE),E=new Array(cE+1),z=new Array(cE+1),V=new Array(cE+1),Y,d,w;
for(C=0;C<cE;C++){w=G(R.ju[G(C-1,cE)]-1,cE);if(w==C){w=G(C+1,cE)}if(w<C){Z[C]=cE}else{Z[C]=w}}J=1;for(C=0;
C<cE;C++){while(J<=Z[C]){E[J]=C;J++}}C=0;for(J=0;C<cE;J++){z[J]=C;C=Z[C]}z[J]=cE;u=J;C=cE;for(J=u;J>0;
J--){V[J]=C;C=E[C]}V[0]=0;Q[0]=0;for(J=1;J<=u;J++){for(C=V[J];C<=z[J];C++){d=-1;for(e=z[J-1];e>=E[C];
e--){Y=W(R,e,C)+Q[e];if(d<0||Y<d){q[C]=e;d=Y}}Q[C]=d}}R.apN=u;R.ar3=new Array(u);for(C=cE,J=u-1;C>0;
J--){C=q[C];R.ar3[J]=C}}function I(R){function W(R,C,Y,Z,E,cR){var cE=R.xD,hr=R.O4,h$=0,w;while(Y>=cE){Y-=cE;
h$+=1}while(C>=cE){C-=cE;h$-=1}while(Y<0){Y+=cE;h$-=1}while(C<0){C+=cE;h$+=1}var gE=hr[Y+1].x-hr[C].x+h$*hr[cE].x,d8=hr[Y+1].y-hr[C].y+h$*hr[cE].y,hG=hr[Y+1].t5-hr[C].t5+h$*hr[cE].t5,f7=hr[Y+1].ns-hr[C].ns+h$*hr[cE].ns,hX=hr[Y+1].q0-hr[C].q0+h$*hr[cE].q0,d=Y+1-C+h$*cE;
Z[cR]=gE/d;Z[cR+1]=d8/d;var fB=(hG-gE*gE/d)/d,e5=(f7-gE*d8/d)/d,g9=(hX-d8*d8/d)/d,cL=(fB+g9+Math.sqrt((fB-g9)*(fB-g9)+4*e5*e5))/2;
fB-=cL;g9-=cL;if(Math.abs(fB)>=Math.abs(g9)){w=Math.sqrt(fB*fB+e5*e5);if(w!=0){E[cR]=-e5/w;E[cR+1]=fB/w}}else{w=Math.sqrt(g9*g9+e5*e5);
if(w!=0){E[cR]=-g9/w;E[cR+1]=e5/w}}if(w==0){E[cR]=E[cR+1]=0}}var J=R.apN,u=R.ar3,cE=R.xD,e=R.wu,Q=R.uz,q=R.ad0,Z=new Array(J*2),E=new Array(J*2),z=new Array(J),V=new Array(3),C,Y,d,w,K,h,F,N,iQ,jB,k;
R.UP=new m(J);for(C=0;C<J;C++){Y=u[G(C+1,J)];Y=G(Y-u[C],cE)+u[C];Z[C<<1]=0;Z[(C<<1)+1]=0;E[C<<1]=0;E[(C<<1)+1]=0;
W(R,u[C],Y,Z,E,C<<1)}for(C=0;C<J;C++){z[C]=[0,0,0,0,0,0,0,0,0];var A=E[C<<1]*E[C<<1]+E[(C<<1)+1]*E[(C<<1)+1],$=1/A;
if(A!=0){V[0]=E[(C<<1)+1];V[1]=-E[C<<1];V[2]=-V[1]*Z[(C<<1)+1]-V[0]*Z[C<<1];for(w=0;w<3;w++){z[C][w*3+0]=V[w]*V[0]*$;
z[C][w*3+1]=V[w]*V[1]*$;z[C][w*3+2]=V[w]*V[2]*$}}}var i=[0,0,0,0,0,0,0,0,0];for(C=0;C<J;C++){i[0]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=0;
var ab=e[u[C]<<1]-Q,f_=e[(u[C]<<1)+1]-q,fc=0,g8=0;Y=G(C-1,J);for(w=0;w<9;w+=3){i[w+0]=z[Y][w+0]+z[C][w+0];
i[w+1]=z[Y][w+1]+z[C][w+1];i[w+2]=z[Y][w+2]+z[C][w+2]}while(1){var bH=i[0]*i[4]-i[1]*i[3];if(bH!=0){fc=(-i[2]*i[4]+i[5]*i[0])/bH;
g8=(i[2]*i[3]-i[5]*i[0])/bH;break}if(i[0]>i[4]){V[0]=-i[1];V[1]=i[0]}else if(i[4]){V[0]=-i[4];V[1]=i[3]}else{V[0]=1;
V[1]=0}var A=V[0]*V[0]+V[1]*V[1],$=1/A;V[2]=-V[1]*f_-V[0]*ab;for(w=0;w<3;w++){i[w*3+0]+=V[w]*V[0]*$;
i[w*3+1]+=V[w]*V[1]*$;i[w*3+2]+=V[w]*V[2]*$}}K=Math.abs(fc-ab);h=Math.abs(g8-f_);if(K<=.5&&h<=.5){R.UP.$x[C<<1]=fc+Q;
R.UP.$x[(C<<1)+1]=g8+q;continue}F=S(i,ab,f_);iQ=ab;jB=f_;if(i[0]!=0){for(k=0;k<2;k++){g8=f_-.5+k;fc=-(i[1]*g8+i[2])/i[0];
K=Math.abs(fc-ab);N=S(i,fc,g8);if(K<=.5&&N<F){F=N;iQ=fc;jB=g8}}}if(i[4]!=0){for(k=0;k<2;k++){fc=ab-.5+k;
g8=-(i[3]*fc+i[5])/i[4];h=Math.abs(g8-f_);N=S(i,fc,g8);if(h<=.5&&N<F){F=N;iQ=fc;jB=g8}}}for(w=0;w<2;
w++){for(d=0;d<2;d++){fc=ab-.5+w;g8=f_-.5+d;N=S(i,fc,g8);if(N<F){F=N;iQ=fc;jB=g8}}}R.UP.$x[C<<1]=iQ+Q;
R.UP.$x[(C<<1)+1]=jB+q}}function H(R){var W=R.UP.vQ,J=R.UP,C,u,e,Q,q,Z,E,z,V;for(C=0;C<W;C++){u=G(C+1,W);
e=G(C+2,W);var Y=J.$x[C<<1],d=J.$x[(C<<1)+1],w=J.$x[e<<1],A=J.$x[(e<<1)+1],$=J.$x[u<<1],i=J.$x[(u<<1)+1],K=X(.5,w,$),h=X(.5,A,i);
q=c(Y,d,w,A);if(q!=0){Q=_($-Y,i-d,w-Y,A-d)/q;Q=Math.abs(Q);Z=Q>1?1-1/Q:0;Z=Z*(1/.75)}else{Z=4/3}J.c_[u]=Z;
var F=3*u<<1;if(Z>=P.a2H){J.HU[u]=0;J.In[F+0]=J.In[F+1]=0;J.In[F+2]=$;J.In[F+3]=i;J.In[F+4]=K;J.In[F+5]=h}else{if(Z<.55){Z=.55}else if(Z>1){Z=1}var N=.5+.5*Z;
J.HU[u]=1;J.In[F]=X(N,Y,$);J.In[F+1]=X(N,d,i);J.In[F+2]=X(N,w,$);J.In[F+3]=X(N,A,i);J.In[F+4]=K;J.In[F+5]=h}J.alpha[u]=Z;
J.qj[u]=.5}J.aot=1}function b(R){function W(){this.GP=0;this.BJ=0;this.ed=0;this.Su=0;this.QF=0;this.gN=0;
this.zd=0;this.alpha=0}function J(R,C,Y,gF,iC,iQ,jB){var e=R.UP.vQ,ax=R.UP.In,e7=R.UP.$x;if(C==Y)return 1;
var dO=C,$=G(C+1,e),h1=G(dO+1,e),f7=e7[C<<1],hX=e7[(C<<1)+1],hL=e7[$<<1],jl=e7[($<<1)+1],gT=iQ[h1];if(gT==0)return 1;
var hZ=y(f7-hL,hX-jl);for(dO=h1;dO!=Y;dO=h1){var h1=G(dO+1,e),j6=G(dO+2,e),aP=e7[h1<<1],h7=e7[(h1<<1)+1],fa=e7[j6<<1],h4=e7[(j6<<1)+1];
if(iQ[h1]!=gT)return 1;if(Math.sign(_(hL-f7,jl-hX,fa-aP,h4-h7))!=gT)return 1;if(j(hL-f7,jl-hX,fa-aP,h4-h7)<hZ*y(aP-fa,h7-h4)*-.999847695156)return 1}var cA=G(C,e)*3+2<<1,jg=G(C+1,e)<<1,cS=G(Y,e)<<1,iT=G(Y,e)*3+2<<1,cR=ax[cA],hr=ax[cA+1],cf=e7[jg],ir=e7[jg+1],bl=e7[cS],gp=e7[cS+1],j4=ax[iT],ey=ax[iT+1],k=e7[0],ab=e7[1];
cA=Y*3+2<<1;var ca=ax[cA],iu=ax[cA+1],i=jB[Y]-jB[C];i-=_(ca-k,iu-ab,ca-k,iu-ab)/2;if(C>=Y){i+=jB[e]}var jv=cf-cR,g$=ir-hr,cy=bl-cR,cK=gp-hr,cN=j4-cR,cJ=ey-hr,fb=_(jv,g$,cy,cK),cd=_(jv,g$,cN,cJ),em=_(cy,cK,cN,cJ),eq=fb+em-cd;
if(cd==fb)return 1;var N=em/(em-eq),F=cd/(cd-fb),ie=cd*N/2;if(ie==0)return 1;var jf=i/ie,K=2-Math.sqrt(4-jf/.3);
gF.BJ=X(N*K,cR,cf);gF.ed=X(N*K,hr,ir);gF.Su=X(F*K,j4,bl);gF.QF=X(F*K,ey,gp);gF.alpha=K;gF.gN=N;gF.zd=F;
cf=gF.BJ;ir=gF.ed;bl=gF.Su;gp=gF.QF;gF.GP=0;for(dO=G(C+1,e);dO!=Y;dO=h1){h1=G(dO+1,e);var i3=e7[dO<<1],j9=e7[(dO<<1)+1],aP=e7[h1<<1],h7=e7[(h1<<1)+1];
N=p(cf-cR,ir-hr,bl-cf,gp-ir,j4-bl,ey-gp,aP-i3,h7-j9);if(N<-.5)return 1;var dm=O(N,cR,cf,bl,j4),jy=O(N,hr,ir,gp,ey),hZ=y(aP-i3,h7-j9);
if(hZ==0)return 1;var eg=_(aP-i3,h7-j9,dm-i3,jy-j9)/hZ;if(Math.abs(eg)>iC)return 1;if(j(aP-i3,h7-j9,dm-i3,jy-j9)<0||j(i3-aP,j9-h7,dm-aP,jy-h7)<0){return 1}gF.GP+=eg*eg}for(dO=C;
dO!=Y;dO=h1){h1=G(dO+1,e);var cA=dO*3+2<<1,jg=h1*3+2<<1,a$=ax[cA],cg=ax[cA+1],gt=ax[jg],i2=ax[jg+1];
N=p(cf-cR,ir-hr,bl-cf,gp-ir,j4-bl,ey-gp,gt-a$,i2-cg);if(N<-.5)return 1;var dm=O(N,cR,cf,bl,j4),jy=O(N,hr,ir,gp,ey),hZ=y(gt-a$,i2-cg);
if(hZ==0)return 1;var eg=_(gt-a$,i2-cg,dm-a$,jy-cg)/hZ,cZ=_(gt-a$,i2-cg,e7[h1<<1]-a$,e7[(h1<<1)+1]-cg)/hZ;
cZ*=.75*R.UP.alpha[h1];if(cZ<0){eg=-eg;cZ=-cZ}if(eg<cZ-iC)return 1;if(eg<cZ){gF.GP+=(eg-cZ)*(eg-cZ)}}return 0}var u=R.UP,e=u.vQ,Q=u.$x,q=new Array(e+1),Z=new Array(e+1),E=new Array(e+1),z=new Array(e+1),V,C,Y,d,w=new W,A,$,i,K,h,F,N,iQ=new Array(e),jB=new Array(e+1);
for(C=0;C<e;C++){if(u.HU[C]=="CURVE"){var k=Q[G(C-1,e)<<1],ab=Q[(G(C-1,e)<<1)+1],f_=Q[C<<1],fc=Q[(C<<1)+1],g8=Q[G(C+1,e)<<1],bH=Q[(G(C+1,e)<<1)+1];
iQ[C]=Math.sign(_(f_-k,fc-ab,g8-f_,bH-fc))}else{iQ[C]=0}}i=0;jB[0]=0;var cR=u.$x[0],hr=u.$x[1];for(C=0;
C<e;C++){$=G(C+1,e);if(u.HU[$]=="CURVE"){K=u.alpha[$];var h$=C*3+2<<1,gE=$*3+2<<1,d8=u.In[h$],hG=u.In[h$+1],f7=Q[$<<1],hX=Q[($<<1)+1],fB=u.In[gE],e5=u.In[gE+1];
i+=.3*K*(4-K)*_(f7-d8,hX-hG,fB-d8,e5-hG)/2;i+=_(d8-cR,hG-hr,fB-cR,e5-hr)/2}jB[C+1]=i}q[0]=-1;Z[0]=0;
E[0]=0;for(Y=1;Y<=e;Y++){q[Y]=Y-1;Z[Y]=Z[Y-1];E[Y]=E[Y-1]+1;for(C=Y-2;C>=0;C--){d=J(R,C,G(Y,e),w,P.a63,iQ,jB);
if(d){break}if(E[Y]>E[C]+1||E[Y]==E[C]+1&&Z[Y]>Z[C]+w.GP){q[Y]=C;Z[Y]=Z[C]+w.GP;E[Y]=E[C]+1;z[Y]=w;w=new W}}}V=E[e];
h=new m(V);F=new Array(V);N=new Array(V);Y=e;for(C=V-1;C>=0;C--){var g9=G(Y,e),cL=C*3+0<<1,bf=g9*3+0<<1;
if(q[Y]==Y-1){h.HU[C]=u.HU[g9];h.In[cL]=u.In[bf];h.In[cL+1]=u.In[bf+1];h.In[cL+2]=u.In[bf+2];h.In[cL+3]=u.In[bf+3];
h.In[cL+4]=u.In[bf+4];h.In[cL+5]=u.In[bf+5];h.$x[C<<1]=u.$x[g9<<1];h.$x[(C<<1)+1]=u.$x[(g9<<1)+1];h.alpha[C]=u.alpha[g9];
h.c_[C]=u.c_[g9];h.qj[C]=u.qj[g9];F[C]=N[C]=1}else{h.HU[C]="CURVE";h.In[cL]=z[Y].BJ;h.In[cL+1]=z[Y].ed;
h.In[cL+2]=z[Y].Su;h.In[cL+3]=z[Y].QF;h.In[cL+4]=u.In[bf+4];h.In[cL+5]=u.In[bf+5];h.$x[C<<1]=X(z[Y].zd,u.In[bf+4],Q[g9<<1]);
h.$x[(C<<1)+1]=X(z[Y].zd,u.In[bf+5],Q[(g9<<1)+1]);h.alpha[C]=z[Y].alpha;h.c_[C]=z[Y].alpha;F[C]=z[Y].zd;
N[C]=z[Y].gN}Y=q[Y]}for(C=0;C<V;C++){$=G(C+1,V);h.qj[C]=F[C]/(F[C]+N[$])}h.aot=1;R.UP=h}for(var C=0;
C<a.length;C++){var R=a[C];D(R);f(R);T(R);I(R);H(R);if(P.a0x)b(R)}}return{as3:l,a9T:x}}();a4.mE=function(s,m,l,x){var a={OC:"minority",aru:x,a0x:!0,a2H:1,a63:.2},P=a4.as3(s,m,l,a);
a4.a9T(P,a);return P};a4.S4=function(s){var m=[];for(var C=0;C<s.length;C++){var l=s[C],x=l.UP,a=["M"],P=[x.In[(x.vQ-1)*6+4],x.In[(x.vQ-1)*6+5]];
for(var o=0;o<x.vQ;o++){var G=o*6;if(x.HU[o]==1){a.push("C");for(var _=0;_<6;_++)P.push(x.In[G+_])}else if(x.HU[o]==0){a.push("L");
for(var _=2;_<4;_++)P.push(x.In[G+_])}}a.push("Z");m.push({parent:l.parent,color:l.color,path:{s:P,r:a}})}return m};
a4.a5i=function(s,m,l,x,a){function P(y){function O(C){var c="C "+(y.In[C*3+0<<1]*m).toFixed(1)+" "+(y.In[(C*3+0<<1)+1]*m).toFixed(1)+",";
c+=(y.In[C*3+1<<1]*m).toFixed(1)+" "+(y.In[(C*3+1<<1)+1]*m).toFixed(1)+",";c+=(y.In[C*3+2<<1]*m).toFixed(1)+" "+(y.In[(C*3+2<<1)+1]*m).toFixed(1)+" ";
return c}function p(C){var f="L "+(y.In[C*3+1<<1]*m).toFixed(1)+" "+(y.In[(C*3+1<<1)+1]*m).toFixed(1)+" ";
f+=(y.In[C*3+2<<1]*m).toFixed(1)+" "+(y.In[(C*3+2<<1)+1]*m).toFixed(1)+" ";return f}var cE=y.vQ,C,D="M"+(y.In[(cE-1)*3+2<<1]*m).toFixed(1)+" "+(y.In[((cE-1)*3+2<<1)+1]*m).toFixed(1)+" ";
for(C=0;C<cE;C++){if(y.HU[C]==1){D+=O(C)}else if(y.HU[C]==0){D+=p(C)}}return D}var l=l*m,x=x*m,o=s.length,G=[];
for(var C=0;C<256;C++)G.push("rgb("+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+")");
var _="<svg id=\"svg\" version=\"1.1\" width=\""+l+"\" height=\""+x+"\" xmlns=\"http://www.w3.org/2000/svg\">";
for(var C=0;C<o;C++){var j=a[s[C].color-1].aeR.Nq;if((j>>>24&255)==0)continue;_+="<path d=\"";var U=s[C].UP;
_+=P(U);var S=j>>0&255,X=j>>8&255,c=j>>16&255,j="rgb("+S+","+X+","+c+")";_+="\" fill=\""+j+"\" fill-rule=\"evenodd\"/>"}_+="</svg>";
return _};a4.aeI=function(s,m,l){var cE=s.length>>1,x,a=s[2*cE-3]-l,P=s[2*cE-2]-m,o=s[2*cE-1]-l,G=o>a,_=0;
for(var C=0;C<cE;C++){x=P;a=o;P=s[2*C]-m;o=s[2*C+1]-l;if(a==o)continue;G=o>a}for(var C=0;C<cE;C++){x=P;
a=o;P=s[2*C]-m;o=s[2*C+1]-l;if(a<0&&o<0)continue;if(a>0&&o>0)continue;if(x<0&&P<0)continue;if(a==o&&Math.min(x,P)<=0)return!0;
if(a==o)continue;var j=x+(P-x)*-a/(o-a);if(j==0)return!0;if(j>0)_++;if(a==0&&G&&o>a)_--;if(a==0&&!G&&o<a)_--;
G=o>a}return(_&1)==1};a4.fill=function(s,m,l,x){var a=m[s],P=[s],o=0;while(o<P.length){var G=P[o];o++;
m[G]=x;if(m[G-l]==a){P.push(G-l);m[G-l]=254}if(m[G-1]==a){P.push(G-1);m[G-1]=254}if(m[G+1]==a){P.push(G+1);
m[G+1]=254}if(m[G+l]==a){P.push(G+l);m[G+l]=254}}};function gI(){}gI.st=function(s){var m=new Uint8Array(s),l=0,x={NG:[],vw:[],list:[]},a=g.hi(m,l);
l+=2;if(a<=2){return gI.a3p(m)}var P=g.hi(m,l);l+=2;var o=g.cS(m,l,8);l+=8;var G=g.n(m,l);l+=4;if(G>0)x.NG=gI._l(m,l,G,P,a);
l+=G;var _=g.cS(m,l,8);l+=8;var j=g.n(m,l);l+=4;if(j>0)x.vw=gQ.jc(m,l,j);l+=j;var U=g.cS(m,l,8);l+=8;
var S=g.n(m,l);l+=4;if(S>0){var X={};aN.EK(m,X,l+4);x.list=X.Brsh.v}l+=S;var c=x.list;for(var C=0;C<c.length;
C++){fd.ov.check(c[C].v)}return x};gI.DO=function(s,m){s.v.Nm.v=m};gI.a3p=function(s){var m={NG:[],vw:[],list:[]},l=0,x=g.hi(s,l);
l+=2;var a=g.hi(s,l);l+=2;for(var C=0;C<a;C++){var P=g.hi(s,l);l+=2;var o=g.n(s,l);l+=4;var G=l;if(P==2){var _={};
m.NG.push(_);var j=g.n(s,G);G+=4;var U=g.hi(s,G);G+=2;if(x==2){var S=g.GO(s,G);G+=4+S.length*2+2}_.id=jF.wd()+"-d71c-11e5-b1ae-a548a96e5f9f";
G++;G+=8;_.Bv=g.T8(s,G);G+=16;var X=g.hi(s,G);G+=2;var c=s[G];G++;var y=iA.Dd(!1,X,s,_.Bv.e,_.Bv.l,G,c);
gI.Ze(_,y);var O=fd.Sw(_.id),p=O.Brsh.v;p.Dmtr.v.val=_.Bv.e;p.Spcn.v.val=U;m.list.push({t:"Objc",v:O})}l+=o}return m};
gI.v1=function(s){var m=new bm,l=0,x=0;g.h8(m,l,6);l+=2;g.h8(m,l,2);l+=2;g.Gj(m,l,"8BIMsamp");l+=8;l+=4;
x=l;l=gI.OM(m,l,s.NG);g.DU(m,x-4,l-x);g.Gj(m,l,"8BIMpatt");l+=8;l+=4;x=l;l=gQ.Zw(m,l,s.vw);g.DU(m,x-4,l-x);
var a={classID:"null",Brsh:{t:"VlLs",v:s.list}};g.Gj(m,l,"8BIMdesc");l+=8;l+=4;x=l;g.DU(m,l,16);l+=4;
l+=aN.$V(m,a,l);g.DU(m,x-4,l-x);return m.data.slice(0,l).buffer};gI._l=function(s,m,l,x,a){var P=g.n,o=g.T8,G=m+l,_=[];
while(m<G){var j={};_.push(j);var U=P(s,m);m+=4;var S=m,X=g.rK(s,m);m+=X.length;j.id=X.sp;if(x==1){m+=9;
j.Bv=o(s,m);m+=16}else{m+=7;var c=P(s,m);m+=4;j.Bv=o(s,m);m+=16;var y=P(s,m);m+=4;m+=y*4;var O=P(s,m);
m+=4;var p=P(s,m);m+=4;var D=o(s,m);m+=16}var f=g.hi(s,m);m+=2;var T=s[m];m+=1;var I=iA.Dd(!1,f,s,j.Bv.e,j.Bv.l,m,T);
gI.Ze(j,I);if(U%4!=0)U+=4-U%4;m=S+U}return _};gI.Ze=function(s,m){var l=s.Bv.clone(),x=L.B(l.k()*4);
L._Y(m,x,3);l.x=l.y=0;s.DH=[x,l]};gI.OM=function(s,m,l){var x=g.DU,a=g.Cg;for(var C=0;C<l.length;C++){var P=l[C],o=m+4,_=56,U=1;
m+=4;g.PV(s,m,P.id);m+=P.id.length+2;s.bY(m,1);s.data[m]=1;m+=3;x(s,m,3);m+=4;var G=m;m+=4;a(s,m,P.Bv);
m+=16;x(s,m,_);m+=4;m+=_*4;x(s,m-4,1);var j=m;m+=4;x(s,m,8);m+=4;a(s,m,P.Bv);m+=16;g.h8(s,m,8);m+=2;
s.bY(m,1);s.data[m]=U;m++;var S=L.B(P.Bv.k());L.hy(P.DH[0],S,3);s.bY(m,P.Bv.k()*2);m=iA.Bk(!1,S,s.data,P.Bv.e,P.Bv.l,m,U);
s.bY(m,8);m+=8;var X=m-o;x(s,o-4,X);x(s,G,X-49);x(s,j,X-305);if(X%4!=0)m+=4-X%4}return m};function fx(){}fx.st=function(s){var m=new Uint8Array(s),l=[],x=0,a=g.hi(m,x);
x+=2;if(a!=4){throw"Unknown version of curves: "+a}var P=g.hi(m,x);x+=2;for(var C=0;C<P;C++){var o=fx.As(m,x);
x+=2+2*o.length;l.push(o)}if(x==m.length)return l;var G=g.cS(m,x,4);x+=4;var _=g.hi(m,x);x+=2;var j=g.hi(m,x);
x+=2;if(j!=0)throw"extra curves for channels";return l};fx.p7=function(s,m,l){var x=m,a=[],P=s[m];m+=3;
var o=g.n(s,m);m+=4;for(var C=0;C<4;C++){var G=o>>>C&1;if(G){if(P==0){var _=fx.As(s,m);m+=2+2*_.length}else{var _=fx.asn(s,m);
m+=256}a.push(_)}else a.push(P==0?[0,0,255,255]:fx.ajn())}var j=ib.Xi("curv");for(var C=0;C<4;C++){if(P==0){var U=a[C],S=[];
for(var X=0;X<U.length;X+=2)S.push(L.so.L4(U[X],U[X+1],!0));fx.r3(j,C,S)}else fx.r3(j,C,a[C])}return j};
fx.ajn=function(){var s=[];for(var C=0;C<256;C++)s.push(C);return s};fx.r3=function(s,m,l){var x=gy.LA("CrvA",m);
if(l.length<256)x.Crv={t:"VlLs",v:l};else{x.Mpng={t:"VlLs",v:[]};for(var C=0;C<256;C++)x.Mpng.v[C]={t:"long",v:l[C]}}x={t:"Objc",v:x};
var a=s.Adjs.v,P=gy.DW(a,m);if(P==-1)a.push(x);else a[P]=x};fx.qG=function(s,m){var l=s.Adjs.v,x=gy.DW(l,m);
if(x==-1){if(l.length==0||l[0].v.Crv)return[L.so.L4(0,0,!0),L.so.L4(255,255,!0)];var a=[];for(var C=0;
C<256;C++)a.push(C);return a}var P=l[x].v,o=P.Crv;if(o)return o.v;var a=[];for(var C=0;C<256;C++)a.push(P.Mpng.v[C].v);
return a};fx.As=function(s,m){var l=[],x=g.hi(s,m);m+=2;for(var a=0;a<x;a++){var P=g.hi(s,m);m+=2;var o=g.hi(s,m);
m+=2;l.push(o,P)}return l};fx.ahB=function(s,m,l){var x=l.length/2;g.h8(s,m,x);m+=2;for(var a=0;a<x;
a++){g.h8(s,m,l[a*2+1]);m+=2;g.h8(s,m,l[a*2+0]);m+=2}};fx.asn=function(s,m){var l=[];for(var C=0;C<256;
C++)l.push(s[m+C]);return l};fx.arN=function(s,m,l){s.bY(m,256);for(var C=0;C<256;C++)s.data[m+C]=l[C]};
fx.ez=function(s,m,l){var x=[];for(var C=0;C<4;C++){var a=fx.qG(l,C);if(a.length==256)x.push(a);else{var P=[];
for(var o=0;o<a.length;o++)P.push(a[o].v.Hrzn.v,a[o].v.Vrtc.v);x.push(P)}}var G=m,_=x[0].length==256?1:0;
s.bY(m,3);s.data[m]=_;s.data[m+1]=0;s.data[m+2]=1;m+=3;g.DU(s,m,15);m+=4;for(var C=0;C<4;C++){var j=x[C];
if(_==0){fx.ahB(s,m,j);m+=2+2*j.length}else{fx.arN(s,m,j);m+=256}}return m-G};function aX(){}aX.p7=function(s,m,l){var x={},a=g.hi(s,m);
m+=2;x.et=s[m]==1;m++;m++;x.Je=[g._$(s,m),g._$(s,m+2),g._$(s,m+4)];m+=6;x.$F=[g._$(s,m),g._$(s,m+2),g._$(s,m+4)];
m+=6;x.Tp=[];for(var C=0;C<6;C++){var P={};P.J8=[g._$(s,m),g._$(s,m+2),g._$(s,m+4),g._$(s,m+6)];m+=8;
P.Ta=[g._$(s,m),g._$(s,m+2),g._$(s,m+4)];m+=6;x.Tp.push(P)}var o=ib.Xi("hue2"),G=x;if(o.Clrz==null)o.Clrz={t:"bool",v:!1};
o.Clrz.v=G.et;for(var C=0;C<7;C++){var _=C==0?G.et?G.Je:G.$F:G.Tp[C-1];aX.r3(o,C,_)}return o};aX.akQ=function(s){return{classID:"Hst2",H:{t:"long",v:s[0]},Strt:{t:"long",v:s[1]},Lght:{t:"long",v:s[2]}}};
aX.DW=function(s,m){for(var C=0;C<s.length;C++){var l=s[C].v.LclR;if(m==0&&l==null||l!=null&&l.v==m)return C}return-1};
aX.r3=function(s,m,l){var x=m==0?l:l.Ta,a=aX.akQ(x);if(m!=0){var P=l.J8;a.LclR={t:"long",v:m},a.BgnR={t:"long",v:P[0]};
a.BgnS={t:"long",v:P[1]};a.EndS={t:"long",v:P[2]};a.EndR={t:"long",v:P[3]}}a={t:"Objc",v:a};var o=s.Adjs.v,G=aX.DW(o,m);
if(G==-1)o.push(a);else o[G]=a};aX.qG=function(s,m){var l=s.Adjs.v,x=aX.DW(l,m);if(x==-1){if(m==0)return[0,0,0];
else return[{J8:[315,345,15,45],Ta:[0,0,0]},{J8:[15,45,75,105],Ta:[0,0,0]},{J8:[75,105,135,165],Ta:[0,0,0]},{J8:[135,165,195,225],Ta:[0,0,0]},{J8:[195,225,255,285],Ta:[0,0,0]},{J8:[255,285,315,345],Ta:[0,0,0]}][m-1]}var a=l[x].v,P=[a.H.v,a.Strt.v,a.Lght.v];
if(m==0)return P;return{Ta:P,J8:[a.BgnR.v,a.BgnS.v,a.EndS.v,a.EndR.v]}};aX.ez=function(s,m,l){var x={et:l.Clrz?l.Clrz.v:!1,Tp:[]};
x.Je=x.$F=aX.qG(l,0);for(var C=1;C<7;C++)x.Tp.push(aX.qG(l,C));var a=2+2+12+6*14,P=s.data;s.bY(m,a);
g.yG(P,m,2);m+=2;P[m]=x.et?1:0;m++;m++;g.UQ(P,m+0,x.Je[0]);g.UQ(P,m+2,x.Je[1]);g.UQ(P,m+4,x.Je[2]);m+=6;
g.UQ(P,m+0,x.$F[0]);g.UQ(P,m+2,x.$F[1]);g.UQ(P,m+4,x.$F[2]);m+=6;for(var C=0;C<6;C++){var o=x.Tp[C].J8,G=x.Tp[C].Ta;
g.UQ(P,m+0,o[0]);g.UQ(P,m+2,o[1]);g.UQ(P,m+4,o[2]);g.UQ(P,m+6,o[3]);m+=8;g.UQ(P,m+0,G[0]);g.UQ(P,m+2,G[1]);
g.UQ(P,m+4,G[2]);m+=6}return a};function gy(){}gy.st=function(s){var m=new Uint8Array(s),l=2,x=[];for(var C=0;
C<29;C++){var a=[];x.push(a);for(var P=0;P<5;P++)a.push(g.hi(m,l+C*10+P*2))}l+=29*10;if(l<m.length){var o=g.cS(m,l,4);
l+=4;var G=g.hi(m,l);l+=2;var _=g.hi(m,l);l+=2;var j=_-29;for(var C=0;C<j;C++){var a=[];x.push(a);for(var P=0;
P<5;P++)a.push(g.hi(m,l+C*10+P*2))}}var U=ib.Xi("levl");for(var C=0;C<4;C++)gy.r3(U,C,x[C]);return U};
gy.LA=function(s,C){var m=["Cmps","Rd","Grn","Bl"],l={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:m[C]}}]};
return{classID:s,Chnl:l}};gy.DW=function(s,m){var l={Cmps:0,Rd:1,Grn:2,Bl:3};for(var C=0;C<s.length;
C++){var x=s[C].v,a=l[x.Chnl.v[0].v.enum];if(a==m)return C}return-1};gy.r3=function(s,m,l){var x=gy.LA("LvlA",m);
x.Inpt={t:"VlLs",v:[{t:"long",v:l[0]},{t:"long",v:l[1]}]};x.Otpt={t:"VlLs",v:[{t:"long",v:l[2]},{t:"long",v:l[3]}]};
x.Gmm={t:"doub",v:l[4]/100};x={t:"Objc",v:x};var a=s.Adjs.v,P=gy.DW(a,m);if(P==-1)a.push(x);else a[P]=x};
gy.qG=function(s,m){var l=[0,255,0,255,100],x=s.Adjs.v,a=gy.DW(x,m);if(a==-1)return l;var P=x[a].v;if(P.Inpt){l[0]=P.Inpt.v[0].v;
l[1]=P.Inpt.v[1].v}if(P.Otpt){l[2]=P.Otpt.v[0].v;l[3]=P.Otpt.v[1].v}if(P.Gmm){l[4]=Math.round(P.Gmm.v*100)}return l};
gy.v1=function(s,m){var l=[],x=0;for(var C=0;C<4;C++)l.push(gy.qG(m,C));while(l.length<29)l.push([0,255,0,255,100]);
s.bY(0,2+10*29);g.yG(s.data,x,2);x+=2;for(var C=0;C<29;C++){var a=l[C];for(var P=0;P<5;P++)g.yG(s.data,x+C*10+P*2,a[P])}x+=29*10;
if(l.length==29)return x;s.bY(x,8+10*(l.length-29));g.bG(s.data,x,"Lvls");x+=4;g.yG(s.data,x,3);x+=2;
g.yG(s.data,x,l.length);x+=2;var o=l.length-29;for(var C=0;C<o;C++){var a=l[29+C];for(var P=0;P<5;P++)g.yG(s.data,x+C*10+P*2,a[P])}x+=10*o;
return x};function he(){}he.st=function(s){var m=new Uint8Array(s),l=2,x={r4:[],ei:[]},a=g.cS(m,l,4);
l+=4;var P=g.hi(m,l);l+=2;var o=g.n(m,l);l+=4;x.r4=gQ.jc(m,l,o);l+=o;var G=g.n(m,l);l+=4;for(var C=0;
C<G;C++){var _=g.n(m,l);l+=4;var j=l,U={On:{},tI:{}};x.ei.push(U);l+=4;l+=aN.EK(m,U.On,l);l+=4;l+=aN.EK(m,U.tI,l);
l=j+_;var S=U.tI.blendOptions,X=U.tI.Lefx;if(S&&Object.keys(S.v).length>1){}if(X){if(X.v.masterFXSwitch==null)X.v.masterFXSwitch={t:"bool",v:!0};
c2.xo(X.v)}}return x};he.DO=function(s,m){s.On.Nm.v=m};he.v1=function(s){var m=new bm,l=0;g.h8(m,l,2);
l+=2;g.Gj(m,l,"8BSL");l+=4;g.h8(m,l,3);l+=2;var x=l;l+=4;l=gQ.Zw(m,l,s.r4);g.DU(m,x,l-x-4);var a=s.ei.length;
g.DU(m,l,a);l+=4;for(var C=0;C<a;C++){l+=4;var P=l,o=s.ei[C];g.DU(m,l,16);l+=4;l+=aN.$V(m,o.On,l);var G=o.tI.Lefx;
if(G){o.tI.Lefx=JSON.parse(JSON.stringify(G));c2.VQ(o.tI.Lefx.v)}g.DU(m,l,16);l+=4;l+=aN.$V(m,o.tI,l);
if(G)o.tI.Lefx=G;g.DU(m,P-4,l-P)}return m.data.slice(0,l).buffer};function b7(){}b7.p7=function(s,m,l){var x=g.hi(s,m);
m+=2;var a={};a.Lg=g.hi(s,m)==1;m+=2;a._w=[];for(var C=0;C<10;C++){var P=[];a._w.push(P);for(var o=0;
o<4;o++)P.push(g._$(s,m+o*2));m+=8}var G=ib.Xi("selc");G.Mthd.v.CrcM=a.Lg?"Absl":"Rltv";for(var C=1;
C<10;C++)b7.r3(G,C-1,a._w[C]);return G};b7.kX="Rds Ylws Grns Cyns Bls Mgnt Whts Ntrl Blks".split(" ");
b7.LA=function(s,C){var m=["Cmps","Rd","Grn","Bl"],l={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:m[C]}}]};
return{classID:s,Chnl:l}};b7.DW=function(s,m){var l=b7.kX;for(var C=0;C<s.length;C++){var x=s[C].v,a=l.indexOf(x.Clrs.v.Clrs);
if(a==m)return C}return-1};b7.r3=function(s,m,l){var x=["Cyn","Mgnt","Ylw","Blck"],a={classID:"ClrC",Clrs:{t:"enum",v:{Clrs:b7.kX[m]}}};
for(var P=0;P<4;P++)a[x[P]]={t:"UntF",v:{type:"#Prc",val:l[P]}};a={t:"Objc",v:a};var o=s.ClrC.v,G=b7.DW(o,m);
if(G==-1)o.push(a);else o[G]=a};b7.qG=function(s,m){var l=[0,0,0,0],x=s.ClrC.v,a=b7.DW(x,m);if(a==-1)return l;
var P=["Cyn","Mgnt","Ylw","Blck"];for(var C=0;C<4;C++)if(x[a].v[P[C]])l[C]=x[a].v[P[C]].v.val;return l};
b7.ez=function(s,m,l){var x={Lg:l.Mthd.v.CrcM=="Absl",_w:[[0,0,0,0]]};for(var C=0;C<9;C++)x._w.push(b7.qG(l,C));
s.bY(m,84);g.yG(s.data,m,1);m+=2;g.yG(s.data,m,x.Lg?1:0);m+=2;for(var C=0;C<10;C++){var a=x._w[C];for(var P=0;
P<4;P++)g.UQ(s.data,m+P*2,a[P]);m+=8}return 84};function b_(){}b_.Xi=function(){return{Fd:new bU(0,0,50,50),On:"",uk:"play",T:L.j.sh.Qa([.1,.1,.9,.5,.1,.9],0)}};
b_.st=function(s){s=new Uint8Array(s);var m=0,l=[],x=Date.now(),a=g.cS(s,0,4);m+=4;var P=g.n(s,m);m+=4;
var o=g.n(s,m);m+=4;for(var C=0;C<o;C++){var G=g.GO(s,m);m+=G.length*2+4+2;if((G.length&1)==0)m+=2;m=b_.Qn(s,m,G,l)}return l};
b_.Qn=function(s,m,l,x){var a=g.n(s,m);m+=4;var P=g.n(s,m);m+=4;var o=m,G=g.rK(s,o).sp;o+=G.length+1;
var _=g.T8(s,o);o+=16;var j=b_.kx(s,o,P-(o-m)),U=L.j.Cc(j),S=L.H.ge(U),X=1/S.e,c=1/S.l;L.j.G9(j,new ae(X,0,0,c,-S.x*X,-S.y*c));
x.push({uk:l,On:G,T:j,Fd:_});m+=P;return m};b_.DO=function(s,m){s.uk=m};b_.v1=function(s){var m=new bm,l=0;
g.Gj(m,l,"cush");l+=4;g.DU(m,l,2);l+=4;g.DU(m,l,s.length);l+=4;for(var C=0;C<s.length;C++){var x=s[C],a=x.uk+"\0";
g.Qe(m,l,a);l+=4+a.length*2;if((a.length&1)==1)l+=2;g.DU(m,l,1);l+=4;l+=4;var P=l;g.PV(m,l,x.On);l+=x.On.length+1;
g.Cg(m,l,x.Fd);l+=16;m.bY(l,x.T.length*26);b_.Uk(m.data,l,x.T,1,1);l+=x.T.length*26;var o=l-P;if((o&3)!=0)o+=4-(o&3);
g.DU(m,P-4,o);l=P+o}return m.data.slice(0,l).buffer};b_.aku=function(s){var m=[];for(var C=0;C<s.length;
C++){var l=s[C],x=l.type,a={type:x};m.push(a);if(x==6){}else if(x==8)a.all=l.all;else if(x==0||x==3){a.length=l.length;
a.frule=l.aZ;a.third=l.pe;a.prmA=l.Xc;a.prmB=l.BG}else{a.c=[l.o3.x,l.o3.y,l.R.x,l.R.y,l.Ux.x,l.Ux.y]}}return m};
b_.a9q=function(s){var m=[];for(var C=0;C<s.length;C++){var l=s[C],x=l.type,a={type:x};m.push(a);if(x==6){}else if(x==8)a.all=l.all;
else if(x==0||x==3){a.length=l.length;a.aZ=l.frule;a.pe=l.third;a.Xc=l.prmA;a.BG=l.prmB}else{var P=l.c;
a.o3=new fz(P[0],P[1]);a.R=new fz(P[2],P[3]);a.Ux=new fz(P[4],P[5])}}return m};b_.kx=function(s,m,l,x,a){if(x==null)x=1;
if(a==null)a=1;function P(O,p,D){var f=g.arK(O,p)*D,T=Math.round(f);return Math.abs(f-T)<1e-6?T:f}var o=g._$,G=[],_=Math.floor(l/26);
for(var C=0;C<_;C++){var j=m+C*26,U={},S=0;G.push(U);U.type=o(s,j);j+=2;if(U.type==6){S=24}if(U.type==8){U.all=o(s,j);
j+=2;S=22}if(U.type==0||U.type==3){U.length=o(s,j);j+=2;U.aZ=o(s,j);j+=2;U.pe=o(s,j);j+=2;U.Xc=g.n(s,j);
j+=4;U.BG=g.n(s,j);j+=4;S=10}if(U.type==1||U.type==2||U.type==4||U.type==5){var X,c;c=P(s,j,a);j+=4;
X=P(s,j,x);j+=4;U.o3=new fz(X,c);c=P(s,j,a);j+=4;X=P(s,j,x);j+=4;U.R=new fz(X,c);c=P(s,j,a);j+=4;X=P(s,j,x);
j+=4;U.Ux=new fz(X,c);S=0}for(var y=0;y<S;y++)if(s[j+y]!=0){console.log("Unexpected non-zero byte!",U,y,s[j+y])}}return G};
b_.Uk=function(s,m,l,x,a){var P=g.UQ,o=g.ZZ,G=l.length;for(var C=0;C<G;C++){var _=m+C*26,j=l[C];P(s,_,j.type);
_+=2;if(j.type==6){}if(j.type==8)P(s,_,j.all);if(j.type==0||j.type==3){P(s,_,j.length);_+=2;P(s,_,j.aZ);
_+=2;P(s,_,j.pe);_+=2}if(j.type==1||j.type==2||j.type==4||j.type==5){o(s,_,j.o3.y/a);_+=4;o(s,_,j.o3.x/x);
_+=4;o(s,_,j.R.y/a);_+=4;o(s,_,j.R.x/x);_+=4;o(s,_,j.Ux.y/a);_+=4;o(s,_,j.Ux.x/x);_+=4}}};function dr(){}dr.st=function(s){var m=new Uint8Array(s),l=[],x=0;
x=dr.SU(m,x,l);if(x+3<m.length){l=[];x=dr.SU(m,x,l)}return l};dr.SU=function(s,m,l){var x=g.hi,a=g._$,P=x(s,m);
m+=2;var o=x(s,m);m+=2;for(var C=0;C<o;C++){var G=dr.Eq(s,m);m+=10;if(P==2){G.ii=g.GO(s,m);m+=4+G.ii.length*2+2}l.push(G)}return m};
dr.Eq=function(s,m){var l=g.hi,x=g._$,a=l(s,m),c=null;m+=2;var P=l(s,m);m+=2;var o=l(s,m);m+=2;var G=l(s,m);
m+=2;var _=l(s,m);m+=2;var j=1/65535,U=255/65535,S=100/65535,X=255/1e4;if(a==0)c={o:P*U,z:o*U,S:G*U};
else if(a==1){c=L.B7(P*j,o*j,G*j);c.o*=255;c.z*=255;c.S*=255}else if(a==2)c=L.K.Qv({classID:"CMYC",Cyn:{t:"doub",v:100-P*S},Mgnt:{t:"doub",v:100-o*S},Ylw:{t:"doub",v:100-G*S},Blck:{t:"doub",v:100-_*S}});
else if(a==7){var y=L.LZ(P/100,x(s,m-6)/100,x(s,m-4)/100);c=y}else if(a==8){c={o:255-P*X,z:255-o*X,S:255-G*X}}else throw"e "+a+", ";
return c};dr.v1=function(s){var m=new bm,l=0,x=g.h8;x(m,l,2);l+=2;x(m,l,s.length);l+=2;for(var C=0;C<s.length;
C++){var a=s[C];m.bY(l,10);dr.Qd(m.data,l,a);l+=10;var P=(a.ii?a.ii:"")+"\0";g.Qe(m,l,P);l+=4+P.length*2}return m.data.slice(0,l).buffer};
dr.DO=function(s,m){s.ii=m};dr.Qd=function(s,m,l){var x=65535/255,a=g.yG;a(s,m,0);a(s,m+2,Math.round(l.o*x));
a(s,m+4,Math.round(l.z*x));a(s,m+6,Math.round(l.S*x));a(s,m+8,0)};function gz(){}gz.st=function(s){var m=new Uint8Array(s),l=4,x={};
x.YH=g.GO(m,l);l+=4+x.YH.length*2+2;x.exp=m[l++]==1;x.tH=[];var a=g.n(m,l);l+=4;for(var C=0;C<a;C++){var P={};
x.tH.push(P);P.jV=g.hi(m,l);l+=2;P.shift=m[l++]==1;P.a6K=m[l++]==1;P.color=g.hi(m,l);l+=2;P.YH=g.GO(m,l);
l+=4+P.YH.length*2+2;P.exp=m[l++]==1;P.tH=[];var o=g.n(m,l);l+=4;for(var G=0;G<o;G++){var _={};P.tH.push(_);
_.exp=m[l++]==1;_.P=m[l++]==1;_.acJ=m[l++]==1;_.anT=m[l++];var j=g.cS(m,l,4);l+=4;if(j=="TEXT"){_.YF=gz.BD(m,l);
l+=4+_.YF.length}else if(j=="long"){_.YF=g.cS(m,l,4);l+=4}else throw"e";_.nw=gz.BD(m,l);l+=4+_.nw.length;
var U=g.Ji(m,l);l+=4;if(U==-1){_.WA={};var S=aN.EK(m,_.WA,l);l+=S}}}console.log(x);var X=new Uint8Array(gz.v1(x));
for(var C=0;C<X.length;C++)if(X[C]!=m[C]){console.log(m.length,X.length);var c=4*(C>>>2)-16;console.log(g.jp(m,c,64));
console.log(g.jp(X,c,64));console.log(m.slice(c,c+64));console.log(X.slice(c,c+64));throw C}return[x]};
gz.BD=function(s,m){var l=g.n(s,m);return g.cS(s,m+4,l)};gz.T0=function(s,m,l){g.DU(s,m,l.length);g.Gj(s,m+4,l)};
gz.v1=function(s){var m=new bm,l=0;g.DU(m,l,16);l+=4;g.Qe(m,l,s.YH+"\0");l+=4+s.YH.length*2+2;m.bY(l,1);
m.data[l++]=s.exp?1:0;var x=s.tH.length;g.DU(m,l,x);l+=4;for(var C=0;C<x;C++){var a=s.tH[C];g.h8(m,l,a.jV);
l+=2;m.bY(l,2);m.data[l++]=a.shift?1:0;m.data[l++]=a.a6K?1:0;g.h8(m,l,a.color);l+=2;g.Qe(m,l,a.YH+"\0");
l+=4+a.YH.length*2+2;m.bY(l,1);m.data[l++]=a.exp?1:0;var P=a.tH.length;g.DU(m,l,P);l+=4;for(var o=0;
o<P;o++){var G=a.tH[o];m.bY(l,4);m.data[l++]=G.exp?1:0;m.data[l++]=G.P?1:0;m.data[l++]=G.acJ?1:0;m.data[l++]=G.anT;
var _="LqFy Avrg GEfc PbPl Fbrs Bokh LnCr".split(" ").indexOf(G.YF)!=-1;g.Gj(m,l,_?"long":"TEXT");l+=4;
if(!_){gz.T0(m,l,G.YF);l+=4+G.YF.length}else{g.Gj(m,l,G.YF);l+=4}gz.T0(m,l,G.nw);l+=4+G.nw.length;g.Tc(m,l,G.WA?-1:0);
l+=4;if(G.WA){var j=aN.$V(m,G.WA,l);l+=j}}}return m.data.slice(0,l).buffer};function hh(){}hh.st=function(s){var m=new Uint8Array(s),l=0,x=g.n(m,l),_;
l+=4;var a=g.cS(m,l,8);l+=8;var P=g.Cu(m,l);l+=4;var o=g.Cu(m,l);l+=4;var G=g.Cu(m,l);l+=4;if(x==2){_=new Float32Array(s,32,s.byteLength-32>>>2)}else if(x==3||x==4){_=new Float32Array(o*G*2);
var j=0,U=0,S=!0;l=x==3?32:16+8+40;while(l<m.length){var X=g.Cu(m,l);l+=4;if(S)U+=X;else{for(var C=0;
C<X;C++){_[j+U+C<<1]=g.w3(m,l);_[(j+U+C<<1)+1]=g.w3(m,l+4);l+=8}U+=X}S=!S;if(X!=0&&U==o){j+=o;U=0;S=!0;
if(j==o*G)break}}}else throw"unknown Mesh version: "+x;return{h_:o,Cm:G,map:_}};hh.cs=function(s){var m=s.h_,l=s.Cm,x=s.map,a=new Uint8Array(32+l*m*8+l*8),P=0,o=0;
g.ML(a,P,3);P+=4;g.bG(a,P,"yfqLhseM");P+=8;g.oT(a,P,2);P+=4;g.oT(a,P,m);P+=4;g.oT(a,P,l);P+=4;g.oT(a,P,0);
P+=4;g.oT(a,P,1);P+=4;for(var G=0;G<l;G++){g.oT(a,P,0);P+=4;g.oT(a,P,m);P+=4;for(var _=0;_<m;_++){g.i8(a,P,x[o]);
g.i8(a,P+4,x[o+1]);o+=2;P+=8}}return a.buffer};function hg(){}hg.st=function(s){var m=new Uint8Array(s),l=0,x=g.cS(m,l,4);
l+=4;var a=g.hi(m,l);l+=2;var P=g.n(m,l);l+=4;var o=[];for(var C=0;C<P;C++){var G=g.n(m,l);l+=4;var _={classID:"ShpC",Nm:{t:"TEXT",v:""},Crv:{t:"VlLs",v:[]}};
o.push(_);var j=g.GO(m,l);_.Nm.v=j;l+=4+j.length*2+2;var U=g.hi(m,l);l+=2;var S=g.hi(m,l);l+=2;for(var X=0;
X<S;X++){var c=L.so.L4(0,0,!0);c.v.Vrtc.v=g.hi(m,l);l+=2;c.v.Hrzn.v=g.hi(m,l);l+=2;_.Crv.v.push(c)}if(G==1){}else if(G==2){for(var X=0;
X<S;X++){_.Crv.v[X].v.Cnty.v=m[l]==1;l+=1}}else throw"error";var y=g.n(m,l);l+=4;var O=g.n(m,l);l+=4}return o};
hg.DO=function(s,m){s.Nm.v=m};hg.v1=function(s){var m=new bm,l=0;g.Gj(m,l,"8BFS");l+=4;g.h8(m,l,1);l+=2;
g.DU(m,l,s.length);l+=4;for(var C=0;C<s.length;C++){g.DU(m,l,2);l+=4;var x=s[C];g.Qe(m,l,x.Nm.v+"\0");
l+=4+x.Nm.v.length*2+2;g.h8(m,l,2);l+=2;var a=x.Crv.v.length;g.h8(m,l,a);l+=2;for(var P=0;P<a;P++){var o=x.Crv.v[P];
g.h8(m,l,o.v.Vrtc.v);l+=2;g.h8(m,l,o.v.Hrzn.v);l+=2}m.bY(l,a);for(var P=0;P<a;P++){m.data[l]=x.Crv.v[P].v.Cnty.v;
l++}g.DU(m,l,0);l+=4;g.DU(m,l,0);l+=4}return m.data.slice(0,l).buffer};function gQ(){}gQ.st=function(s){var m=new Uint8Array(s),l=4,x=g.hi(m,l);
l+=2;var a=g.n(m,l);l+=4;var P=[];for(var C=0;C<a;C++){var o={};P.push(o);l=gQ.fM(m,l,o)}return P};gQ.DO=function(s,m){s.name=m};
gQ.v1=function(s){var m=new bm,l=0;g.Gj(m,l,"8BPT");l+=4;g.h8(m,l,1);l+=2;g.DU(m,l,s.length);l+=4;for(var C=0;
C<s.length;C++){l=gQ.it(m,l,s[C])}return m.data.slice(0,l).buffer};gQ.jc=function(s,m,l){var x=m+l,a=[];
while(m<x){var P={},o=g.n(s,m);m+=4;var G=m;m=gQ.fM(s,m,P);if(!P.DH[1].Xh())a.push(P);if(o%4!=0)o+=4-o%4;
m=G+o}return a};gQ.Zw=function(s,m,l){for(var C=0;C<l.length;C++){var x=l[C];m+=4;var a=m;m=gQ.it(s,m,x);
var P=m-a;g.DU(s,a-4,P);if(P%4!=0)a+=4-P%4;m=a+P}return m};gQ.fM=function(s,m,l){var x=g.n(s,m);m+=4;
if(x!=1)alert("Unknown version of pattern");var a=g.n(s,m);m+=4;if(a!=1&&a!=2&&a!=3)console.log("Unsupported mode of pattern: "+a);
var P=g.hi(s,m);m+=2;var o=g.hi(s,m);m+=2;var G=new bU(0,0,o,P);l.name=g.GO(s,m);m+=4+2*l.name.length+2;
var _=s[m];m++;l.id=g.cS(s,m,_);m+=l.id.length;var j=-1;if(a==2){j=m;m+=3*256+4}var U=new L.KY(o*P);
m=gQ.arh(s,m,U);if(a==2){for(var C=0;C<U.o.length;C++){var S=3*U.o[C];U.o[C]=s[j+S+0];U.z[C]=s[j+S+1];
U.S[C]=s[j+S+2]}}var X=L.B(G.k()*4);L.aC(U,X);l.DH=[X,G];return m};gQ.it=function(s,m,l){var x=l.DH[0],a=l.DH[1];
g.DU(s,m,1);m+=4;g.DU(s,m,3);m+=4;g.h8(s,m,a.l);m+=2;g.h8(s,m,a.e);m+=2;g.Qe(s,m,l.name+"\0");m+=4+2*l.name.length+2;
g.mS(s,m,l.id.length);m++;g.Gj(s,m,l.id);m+=l.id.length;var P=new L.KY(a.k());L.ZI(x,P);m=gQ.a7s(s,m,P,a);
return m};gQ.arh=function(s,m,l){var x=m,a={Bv:null,OL:[],arB:null,um:null},P=g.n(s,m);m+=4;var o=g.n(s,m);
m+=4;a.Bv=g.T8(s,m);m+=16;var G=g.n(s,m);m+=4;for(var C=0;C<G+2;C++){var _=g.n(s,m);m+=4;if(_==0)continue;
var j=g.n(s,m);m+=4;if(j==0)continue;var U=g.n(s,m);m+=4;var S=g.T8(s,m);m+=16;var X=g.hi(s,m);m+=2;
var c=s[m];m++;var y=iA.Dd(!1,U,s,S.e,S.l,m,c);if(C<G)a.OL.push(y);if(C==G)a.arB=y;if(C==G+1)a.um=y;
m+=j-23}if(!a.Bv.Xh()){if(a.OL[0])l.o=a.OL[0];if(a.OL[1])l.z=a.OL[1];else l.z=a.OL[0].slice(0);if(a.OL[2])l.S=a.OL[2];
else l.S=a.OL[0].slice(0);if(a.um)l.lz=a.um;else l.lz.fill(255)}return m};gQ.a7s=function(s,m,l,x){var a=m,P={Bv:x,OL:[l.o,l.z,l.S],arB:null,um:l.lz};
g.DU(s,m,3);m+=4;g.DU(s,m,0);m+=4;g.Cg(s,m,x);m+=16;g.DU(s,m,24);m+=4;for(var C=0;C<24+2;C++){var o=m,G=C<3||C==25?1:0;
g.DU(s,m,G);m+=4;if(G==0)continue;g.DU(s,m,0);m+=4;g.DU(s,m,8);m+=4;g.Cg(s,m,x);m+=16;g.h8(s,m,8);m+=2;
g.mS(s,m,1,1);m++;var _=C<3?P.OL[C]:P.um;s.bY(m,x.k()+2);m=iA.Bk(!1,_,s.data,x.e,x.l,m,1);g.DU(s,o+4,m-o-8)}g.DU(s,a+4,m-a-8);
return m};function f8(){}f8.st=function(s){var m=new Uint8Array(s),l=0,x=g.cS(m,l,4);l+=4;var a=g.hi(m,l);
l+=2;var P=[];if(a<=3){var o=g.hi(m,l);l+=2;for(var C=0;C<o;C++){var G=m[l++],_=g.cS(m,l,G);l+=G;var j=f8.Cz(m,l,_),U=j[0];
l=j[1];P.push(U)}}else{var j={},S=aN.EK(m,j,l+4),X=j.GrdL.v;for(var C=0;C<X.length;C++)P[C]=X[C].v.Grad.v}return P};
f8.DO=function(s,m){s.Nm.v=m};f8.v1=function(s){var m=new bm,l=0;g.Gj(m,l,"8BGR");l+=4;g.h8(m,l,5);l+=2;
g.DU(m,l,16);l+=4;var x={classID:"null",GrdL:{t:"VlLs",v:[]}},a=x.GrdL.v;for(var C=0;C<s.length;C++)a[C]={t:"Objc",v:{classID:"Grdn",__name:"Gradient ",Grad:{t:"Objc",v:s[C]}}};
l+=aN.$V(m,x,l);return m.data.slice(0,l).buffer};f8.Cz=function(s,m,l){var x={classID:"Grdn",Clrs:{t:"VlLs",v:[]},GrdF:{t:"enum",v:{GrdF:"CstS"}},Intr:{t:"doub",v:4096},Nm:{t:"TEXT",v:l},Trns:{t:"VlLs",v:[]}},a=g.hi(s,m);
m+=2;if(a==0)throw"e";for(var C=0;C<a;C++){var P=g.n(s,m),o=g.n(s,m+4),G=dr.Eq(s,m+8),_={t:"Objc",v:{classID:"Clrt",Clr:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:G.o},Grn:{t:"doub",v:G.z},Bl:{t:"doub",v:G.S}}},Type:{t:"enum",v:{Clry:"UsrS"}},Lctn:{t:"long",v:P},Mdpn:{t:"long",v:o}}};
x.Clrs.v.push(_);m+=20}var j=g.hi(s,m);m+=2;for(var C=0;C<j;C++){var P=g.n(s,m),o=g.n(s,m+4),U=g.hi(s,m+8),_={t:"Objc",v:{classID:"TrnS",Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(100*U/255)}},Lctn:{t:"long",v:P},Mdpn:{t:"long",v:o}}};
x.Trns.v.push(_);m+=10}var S=g.hi(s,m);m+=2;if(S!=2)throw S;x.Intr.v=g.hi(s,m);m+=2;var X=g.hi(s,m);
m+=2;if(X!=32)throw"e";return[x,m]};f8.akX=function(s,m,l){var x=l.Clrs.v.length;g.h8(s,m,x);m+=2;for(var C=0;
C<x;C++){var a=l.Clrs.v[C];g.DU(s,m,a.v.Lctn.v);g.DU(s,m+4,a.v.Mdpn.v);g.h8(s,m+8,0);var P=L.K.gc(L.K.Qv(a.v.Clr.v)),o=[P.Rd.v,P.Grn.v,P.Bl.v,0];
for(var G=0;G<4;G++)g.h8(s,m+10+G*2,Math.round(65535*(o[G]/255)));m+=20}var _=l.Trns.v.length;g.h8(s,m,_);
m+=2;for(var C=0;C<_;C++){var a=l.Trns.v[C];g.DU(s,m,a.v.Lctn.v);g.DU(s,m+4,a.v.Mdpn.v);g.h8(s,m+8,Math.round(255*a.v.Opct.v.val/100));
m+=10}g.h8(s,m,2);m+=2;g.h8(s,m,l.Intr.v);m+=2;g.h8(s,m,32);m+=2;return m};function iP(){}iP.st=function(s){var m=new Uint8Array(s),l=[],x=[],a=[],P=[],o=[],G=0,_=g.cS(m,G,4);
G+=4;var j=g.n(m,G);G+=4;var U=g.n(m,G);G+=4;while(G<m.length){var S=g.cS(m,G,4);G+=4;var X=g.cS(m,G,4);
G+=4;var c=g.n(m,G);G+=4;if(X=="tppa"){x=gQ.jc(m,G,c);G+=c}else if(X=="tpbd"){a=gI._l(m,G,c,1,1);G+=c}else if(X=="tptp"){var y=g.n(m,G);
G+=4;for(var C=0;C<y;C++){var O=g.GO(m,G);G+=6+O.length*2;G+=4;var p={};G+=aN.EK(m,p,G);l.push([O,p])}while((G&3)!=0)G++}else if(X=="tpsh"){var D=G,f=m.slice(G,G+c);
while(G<D+c){var T=g.n(m,G);G+=4;G=b_.Qn(m,G,"Shape",P)}G=D+c}else if(X=="tpst"){var D=G;G+=4;while(G<D+c){var I=g.n(m,G);
G+=4;var H=G,b=g.n(m,G);G+=4;var p={On:{},tI:{}};o.push(p);G+=4;G+=aN.EK(m,p.On,G);G+=4;G+=aN.EK(m,p.tI,G);
G=H+I;var R=p.tI.Lefx;if(R){if(R.v.masterFXSwitch==null)R.v.masterFXSwitch={t:"bool",v:!0};c2.xo(R.v)}}G=D+c}else{console.log(m.slice(G-8,G+64));
console.log(g.cS(m,G-8,64));throw X}}return{NG:a,vw:x,list:l,atn:P,ei:o}};iP.DO=function(s,m){s[0]=m};
iP.v1=function(s){var m=new bm,l=0;g.Gj(m,l,"8BTP");l+=4;g.DU(m,l,3);l+=4;g.DU(m,l,1);l+=4;var x=[s.vw,s.NG,s.list];
for(var C=0;C<3;C++){if(x[C].length==0)continue;g.Gj(m,l,"8BIM");l+=4;var a=["tppa","tpbd","tptp"][C];
g.Gj(m,l,a);l+=4;var P=l;l+=4;if(a=="tppa"){l=gQ.Zw(m,l,s.vw)}else if(a=="tpbd"){l=gI.OM(m,l,s.NG)}else if(a=="tptp"){g.DU(m,l,s.list.length);
l+=4;for(var o=0;o<s.list.length;o++){var G=s.list[o];g.Qe(m,l,G[0]+"\0");l+=6+G[0].length*2;g.DU(m,l,16);
l+=4;l+=aN.$V(m,G[1],l)}}g.DU(m,P,l-P-4);while((l&3)!=0)l++;m.bY(l,0)}return m.data.slice(0,l).buffer};
function aO(){}aO.st=function(s,m){var l=new Uint8Array(s),x;if(g.n(l,0)==l.length)x="icc";else if(l[0]=="<".charCodeAt(0))x="look";
else if(g.FA(l,"LUT_3D_SIZE")!=-1)x="cube";else x="3DL";if(x!="icc"){var a=aO.a4u(l,x),P=aO.a2s(a[0],a[1]);
l=P}var o=[];for(var C=0;C<l.length;C++)o.push(l[C]);return[{classID:"null",Dthr:{t:"bool",v:!0},Nm:{t:"TEXT",v:m?m:"file.icc"},lookupType:{t:"enum",v:{colorLookupType:"abstractProfile"}},profile:{t:"tdta",v:o}}]};
aO.v1=function(s){var m=s[0],l=new Uint8Array(m.profile.v);return l.buffer};aO.DO=function(s,m){s.Nm.v=m};
aO.a2s=function(s,m){var l=new bm,x=128;l.bY(0,128);var a=[0,0,14,204,65,68,66,69,4,0,0,0,108,105,110,107,82,71,66,32,82,71,66,32,7,227,0,7,0,27,0,8,0,6,0,49,97,99,115,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,214,0,1,0,0,0,0,211,45,65,68,66,69,219,126,245,21,206,223,186,23,165,212,201,219,250,10,33,62];
for(var C=0;C<a.length;C++)l.data[C]=a[C];var P=["desc","A2B0"],o=P.length,G=128+4+o*12;g.DU(l,x,o);
x+=4;for(var _=0;_<o;_++){var j=P[_];g.Gj(l,x,j);x+=4;g.DU(l,x,G);x+=4;var U=G;if(j=="desc"){g.Gj(l,U,"mluc");
U+=4;U+=4;g.DU(l,U,1);U+=4;g.DU(l,U,12);U+=4;g.Gj(l,U,"enUS");U+=4;var S="ICC by Photopea\0",X=S.length*2+2;
g.DU(l,U,X);U+=4;g.DU(l,U,28);U+=4;l.bY(U,X);for(var C=0;C<S.length;C++)l.data[U+C*2+1]=S.charCodeAt(C);
U+=X}if(j=="A2B0"){g.Gj(l,U,"mAB ");U+=4;U+=4;l.bY(U,4);l.data[U]=3;l.data[U+1]=3;U+=4;l.bY(U,4*5);U+=4*3;
g.DU(l,U,U+8-G);U+=4;U+=4;l.bY(U,20);l.data[U]=s;l.data[U+1]=s;l.data[U+2]=s;U+=16;l.data[U]=2;U+=4;
var c=s*s*s*3;l.bY(U,c*2);for(var C=0;C<c;C++)g.yG(l.data,U+C*2,Math.max(0,Math.min(65535,Math.round(m[C]*65535))));
U+=c*2}var y=U-G;while((y&3)!=0)y++;g.DU(l,x,y);x+=4;G+=y}g.DU(l,0,G);return l.data.slice(0,G)};aO.a4u=function(s,m){m="LUTFormat"+m.toUpperCase();
var l=[],x=0,a=g.V_(s,0,s.length),P="";for(var C=0;C<s.length&&P=="";C++){if(s[C]==10)P="\n";else if(s[C]==13){P="\r";
if(s[C+1]==10)P+="\n"}}if(m=="LUTFormatCUBE"){var o=a.split(P);for(var C=0;C<o.length;C++){if(o[C]==""||o[C][0]=="#")continue;
var G=o[C].split(" "),_=G[0];if(_=="LUT_3D_SIZE"){x=parseInt(G[1]);continue}if(["TITLE","DOMAIN_MIN","DOMAIN_MAX"].indexOf(_)!=-1)continue;
l.push(parseFloat(G[0]),parseFloat(G[1]),parseFloat(G[2]))}l=aO.dl(x,l)}else if(m=="LUTFormat3DL"){var o=a.split(P),j=1/4095;
for(var C=0;C<o.length;C++){var U=o[C];if(U==""||U=="3DMESH"||U.startsWith("Mesh")||U[0]=="#")continue;
var G=U.split(" "),_=G[0];if(x==0){x=G.length;continue}l.push(parseFloat(G[0])*j,parseFloat(G[1])*j,parseFloat(G[2])*j)}}else if(m=="LUTFormatLOOK"){var S=new DOMParser,X=S.parseFromString(a,"text/xml"),c=X.getElementsByTagName("LUT")[0],y=c.children[0].textContent;
x=parseInt(JSON.parse(y));var O=c.children[1].textContent;O=O.replace(/"/g,"").replace(/\s/g,"");var p=3*x*x*x,D=p*4,f=new Uint8Array(D);for(var C=0;C<D;C++){var T=O.charCodeAt(C*2),I=O.charCodeAt(C*2+1),H=T<58?T-48:T-55,b=I<58?I-48:I-55;f[C]=(H<<4)+b}for(var C=0;C<p;C++)l.push(g.w3(f,C<<2));l=aO.dl(x,l)}else throw m;return[x,l]};aO.ak8=function(s,m,l){var x=["#Created by www.Photopea.com","TITLE \""+l+"\"","","#LUT size","LUT_3D_SIZE "+m,"","#data domain","DOMAIN_MIN 0.0 0.0 0.0","DOMAIN_MAX 1.0 1.0 1.0","","#LUT data points"],a=6;
for(var C=0;C<s.length;C+=3){x.push(s[C].toFixed(a)+" "+s[C+1].toFixed(a)+" "+s[C+2].toFixed(a))}x.push("");
return g.iG(x.join("\n")).buffer};aO.dl=function(s,m){var l=[],x=s*s*s;for(var C=0;C<x;C++)l.push(0,0,0);
for(var a=0;a<s;a++)for(var P=0;P<s;P++)for(var o=0;o<s;o++){var C=3*(o+P*s+a*s*s),G=3*(a+P*s+o*s*s);
l[G]=m[C];l[G+1]=m[C+1];l[G+2]=m[C+2]}return l};function aN(){}aN.EK=function(s,m,l,x,a){var P=l,o;if(a==null)a=0;
var G=g.n(s,l);if(G==0){o="";l+=4}else{o=g.GO(s,l);l+=4+2*o.length+2}if(o!="")m.__name=o;m.classID=aN.Mt(s,l);
if(x)console.log("\t".repeat(a),"- reading descriptor",m.classID,l);l+=aN.jb(s,l);var _=g.Ji(s,l);l+=4;
for(var C=0;C<_;C++){var j=aN.Mt(s,l);l+=aN.jb(s,l);var U=aN.w4(s,l,x,a);m[j]=U;l+=U.size;delete U.size}return l-P};
aN.$V=function(s,m,l,x){var a=l,P=m.__name;if(P==null)P="";P+="\0";g.Qe(s,l,P);l+=4+2*P.length;aN.La(s,l,m.classID);
l+=aN.jb(s.data,l);g.Tc(s,l,Object.keys(m).length-1-(m.__name==null?0:1));l+=4;for(var o in m){if(o=="classID")continue;
if(o=="__name")continue;aN.La(s,l,o);l+=aN.jb(s.data,l);l+=aN.Ad(s,l,m[o])}return l-a};aN.w4=function(s,m,l,x){var a=m,P=g.cS(s,m,4);
m+=4;var o={size:0,t:P,v:null};if(l)console.log("\t".repeat(x),"reading key",P,a);switch(P){case"obj ":case"VlLs":o.v=[];
var G=g.n(s,m);m+=4;for(var C=0;C<G;C++){var _=aN.w4(s,m,l,x+1);m+=_.size;delete _.size;o.v.push(_)}break;
case"UntF":o.v={type:g.cS(s,m,4),val:g.XR(s,m+4)};m+=12;break;case"doub":o.v=g.XR(s,m);m+=8;break;case"bool":o.v=s[m]==1;
m+=1;break;case"long":o.v=g.Ji(s,m);m+=4;break;case"comp":o.v=g.Ji(s,m+4);m+=8;break;case"Objc":o.v={};
var j=aN.EK(s,o.v,m,l,x+1);m+=j;break;case"TEXT":var U=g.n(s,m);if(U==0){o.v="";m+=4}else{o.v=g.GO(s,m);
m+=4+o.v.length*2+2}break;case"enum":var S=aN.Mt(s,m);m+=aN.jb(s,m);var X=aN.Mt(s,m);m+=aN.jb(s,m);o.v={};
o.v[S]=X;break;case"tdta":var c=g.Ji(s,m);m+=4;o.v=[];for(var C=0;C<c;C++)o.v.push(s[m+C]);m+=c;break;
case"ObAr":var y=g.n(s,m);m+=4;var O=g.GO(s,m);m+=4+2*O.length+2;if(O!="")throw O;var p=aN.Mt(s,m);m+=4+Math.max(4,p.length);
o.v={classID:p,arr:[]};var D=g.n(s,m);m+=4;for(var C=0;C<D;C++){var p=aN.Mt(s,m);m+=4+Math.max(4,p.length);
var S=g.cS(s,m,4);m+=4;var f=g.cS(s,m,4);m+=4;var T={id:p,type:S,uID:f,arr:[]};o.v.arr.push(T);var I=g.n(s,m,4);
m+=4;for(var H=0;H<I;H++){var b=g.XR(s,m);m+=8;T.arr.push(b)}}break;case"Pth ":var R=m,c=g.n(s,m);m+=4;
var W=g.cS(s,m,4);m+=4;var J=g.Cu(s,m);m+=4;var u=g.aqK(s,m);m+=4+u.length*2;o.v={sig:W,pth:u};break;
case"Clss":case"type":case"rele":var u=g.GO(s,m);m+=4+u.length*2+2;var e=aN.Mt(s,m);m+=4+Math.max(4,e.length);
o.v={classID:e};if(u!="")o.v.__name=u;if(P=="rele"){o.v.val=g.Ji(s,m);m+=4}break;case"prop":case"Enmr":case"indx":case"name":var Q=aN.QJ[P],u=g.GO(s,m);
m+=4+u.length*2+2;if(u.length!=0){console.log(P,u);throw"e"}o.v={};for(var C=0;C<Q.length;C++){var e=aN.Mt(s,m);
m+=4+Math.max(4,e.length);o.v[Q[C]]=e}if(P=="name"){var u=g.GO(s,m);m+=4+u.length*2+2;o.v.val=u}if(P=="indx"){o.v.val=g.n(s,m);
m+=4}break;case"alis":var c=g.n(s,m);m+=4;o.v=g.cS(s,m,c);m+=c;break;default:{console.log("unknown oskey: "+P+", "+a);
throw"e";return o}}if(l){console.log("\t".repeat(x),o.v);console.log("\t".repeat(x),"======",m)}o.size=m-a;
return o};aN.QJ={name:["classID"],prop:["classID","keyID"],Enmr:["classID","typeID","enum"],indx:["classID"]};
aN.Ad=function(s,m,l){var x=m,a=l.t;l=l.v;g.Gj(s,m,a);m+=4;switch(a){case"obj ":case"VlLs":g.Tc(s,m,l.length);
m+=4;for(var P=0;P<l.length;P++){var o=aN.Ad(s,m,l[P]);m+=o}break;case"UntF":g.Gj(s,m,l.type);g.hq(s,m+4,l.val);
m+=12;break;case"doub":g.hq(s,m,l);m+=8;break;case"bool":g.mS(s,m,l?1:0,1);m+=1;break;case"long":g.Tc(s,m,l);
m+=4;break;case"comp":g.Tc(s,m+4,l);m+=8;break;case"Objc":var o=aN.$V(s,l,m);m+=o;break;case"TEXT":g.Qe(s,m,l+"\0");
m+=4+l.length*2+2;break;case"enum":var G=Object.keys(l)[0],_=l[G];aN.La(s,m,G);m+=aN.jb(s.data,m);aN.La(s,m,_);
m+=aN.jb(s.data,m);break;case"tdta":g.DU(s,m,l.length);m+=4;g.rp(s,m,l);m+=l.length;break;case"ObAr":g.DU(s,m,l.arr[0].arr.length);
m+=4;g.Qe(s,m,"\0");m+=6;aN.La(s,m,l.classID);m+=4+Math.max(4,l.classID.length);g.DU(s,m,l.arr.length);
m+=4;for(var C=0;C<l.arr.length;C++){var j=l.arr[C];aN.La(s,m,j.id);m+=4+Math.max(4,j.id.length);g.Gj(s,m,j.type);
m+=4;g.Gj(s,m,j.uID);m+=4;g.DU(s,m,j.arr.length);m+=4;for(var P=0;P<j.arr.length;P++){g.hq(s,m,j.arr[P]);
m+=8}}break;case"Pth ":var U=l.pth.length*2+4+8;g.DU(s,m,U);m+=4;g.Gj(s,m,l.sig);m+=4;g.FH(s,m,U);m+=4;
g.ajd(s,m,l.pth);m+=l.pth.length*2+4;break;case"Clss":case"type":case"rele":var S=l.__name;if(S==null)S="";
g.Qe(s,m,S+"\0");m+=4+S.length*2+2;var X=l.classID;aN.La(s,m,X);m+=4+Math.max(4,X.length);if(a=="rele"){g.Tc(s,m,l.val);
m+=4}break;case"prop":case"Enmr":case"indx":case"name":var c=aN.QJ[a];g.DU(s,m,1);m+=6;for(var C=0;C<c.length;
C++){var X=l[c[C]];aN.La(s,m,X);m+=4+Math.max(4,X.length)}if(a=="name"){g.Qe(s,m,l.val+"\0");m+=4+l.val.length*2+2}if(a=="indx"){g.DU(s,m,l.val);
m+=4}break;case"alis":var U=l.length;g.DU(s,m,U);m+=4;g.Gj(s,m,l);m+=U;break;default:console.log("unknown oskey: "+a);
m=x;break}return m-x};aN.Mt=function(s,m){var l=g.Ji(s,m);if(l>1e3)throw"e";if(l==0)l=4;return g.cS(s,m+4,l).trim()};
aN.jb=function(s,m){var l=g.Ji(s,m);return l==0?8:4+l};aN.La=function(s,m,l){var x="warp list Comp xx xy yx yy tx ty PinP PnRt PnOv PnDp xor PuX0 PuX1 PuX2 PuX3 PuY0 PuY1 PuY2 PuY3 base kana ruby box flow trim then else".split(" "),a=4<l.length||x.indexOf(l)!=-1;
g.Tc(s,m,a?l.length:0);g.Gj(s,m+4,l);if(l.length<4&&!a){var P="";for(var C=l.length;C<4;C++)P+=" ";g.Gj(s,m+4+l.length,P)}};
aN.aqE=function(s){var m={};for(var l in s){if(l=="classID")m[l]=s[l];else if(l=="__name")m[l]=s[l];
else m[l]=aN.Xa(s[l])}return m};aN.Xa=function(s){if(s.gN=="Objc")return aN.aqE(s.v);else if(s.gN=="VlLs"){var m=[];
for(var C=0;C<s.v.length;C++)m.push(aN.Xa(s.v[C]));return m}else if(s.gN=="UntF")return s.v.val;else return s.v};
function c2(){}c2.Ed=function(s,m,l,x,a,P){while(m<l){var o=g.cS(s,m,4);m+=4;if(o!="8BIM"&&o!="8B64"){console.log("layer information signature error! "+o,"PSB = "+a);
alert("Error in PSD file: wrong signature.");return l}var G=g.cS(s,m,4);m+=4;var _=g.n(s,m);m+=4;var j=a&&"LMsk Lr16 Lr32 Layr Mt16 Mt32 Mtrn Alph FMsk lnk2 lnkE FEid FXid PxSD extn cinf artd pths".split(" ").indexOf(G)!=-1;
if(j){_=_<<32|g.Ji(s,m);m+=4}var U=["lrFX","PlLd"];if(U.indexOf(G)!=-1){if(_%4!=0)_+=4-_%4;m+=_;continue}switch(G){case"iOpa":x[G]=s[m];
break;case"brst":x[G]=[1,1,1];for(var C=0;C<_;C+=4)x[G][g.n(s,m+C)]=0;break;case"knko":x[G]=s[m];break;
case"infx":x[G]=s[m];break;case"clbl":x[G]=s[m];break;case"lmgm":x[G]=s[m];break;case"vmgm":x[G]=s[m];
break;case"lyid":x[G]=g.n(s,m);break;case"lsct":x[G]={type:g.n(s,m)};if(_>=12)x[G].TR=g.cS(s,m+8,4);
break;case"lsdk":x.lsct={type:g.n(s,m)};break;case"lyvr":x[G]=g.n(s,m);break;case"lnsr":var S={artb:1,bgnd:1,cont:1,layr:1,lset:1,rend:1,shap:1,user:1,____:null};
x[G]=g.cS(s,m,4);break;case"lspf":x[G]=g.n(s,m);break;case"lclr":x[G]=g.hi(s,m);break;case"luni":x[G]=g.ep(s,m);
break;case"fxrp":x[G]=new fz(g.XR(s,m),g.XR(s,m+8));break;case"artb":case"artd":x[G]={};aN.EK(s,x[G],m+4);
break;case"SoCo":x[G]={};aN.EK(s,x[G],m+4);break;case"GdFl":x[G]={};aN.EK(s,x[G],m+4);c2.QD(x[G],G);
break;case"PtFl":x[G]={};aN.EK(s,x[G],m+4);c2.QD(x[G],G);break;case"CgEd":var X=x.brit=ib.Xi("brit"),c={};
aN.EK(s,c,m+4);X.Brgh.v=c.Brgh?c.Brgh.v:0;X.Cntr.v=c.Cntr?c.Cntr.v:0;X.useLegacy.v=c.useLegacy?c.useLegacy.v:0;
break;case"brit":if(x.brit==null){var X=x.brit=ib.Xi("brit"),c={};X.Brgh.v=g._$(s,m);X.Cntr.v=g._$(s,m+2);
X.useLegacy.v=!1}break;case"levl":var y=s.buffer.slice(m,m+_);x[G]=gy.st(y);break;case"curv":x[G]=fx.p7(s,m,_);
break;case"expA":var O=g.hi(s,m),p=x[G]=ib.Xi("expA");p.Exps.v=g.gq(s,m+2);p.Ofst.v=g.gq(s,m+6);p.gammaCorrection.v=g.gq(s,m+10);
break;case"vibA":x[G]={};aN.EK(s,x[G],m+4);break;case"hue2":x[G]=aX.p7(s,m,_);break;case"blnc":var p=x[G]=ib.Xi(G);
p.PrsL.v=s[m+18]==1;var D=["ShdL","MdtL","HghL"];for(var C=0;C<3;C++)for(var f=0;f<3;f++)p[D[C]].v[f].v=g._$(s,m+C*6+f*2);
break;case"blwh":var T={};aN.EK(s,T,m+4);var p=ib.Xi(G),I="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" ");
for(var C=0;C<I.length;C++){p[I[C]]=T[I[C]];delete T[I[C]]}x[G]=p;break;case"phfl":var p=x[G]=ib.Xi(G),H=p.Clr.v,O=g.hi(s,m);
if(O==3){var b=[g.n(s,m+2),g.n(s,m+6),g.n(s,m+10)],R=32768,W=L.th(b[0]/R,b[1]/R,b[2]/R);H.Lmnc.v=W.J5;
H.A.v=W.lz;H.B.v=W.S}if(O==2){var J=g.hi(s,m+2);if(J!=7)throw"e";H.Lmnc.v=g._$(s,m+4)/100;H.A.v=g._$(s,m+6)/100;
H.B.v=g._$(s,m+8)/100}var u=m+2+(O==3?12:10);p.Dnst.v=g.n(s,u);u+=4;p.PrsL.v=s[u]==1;break;case"mixr":var e={_Q:g.hi(s,m+2)==1,Z:[]};
for(var C=0;C<20;C++)e.Z.push(g._$(s,m+4+C*2));x[G]=eb.dr(e);break;case"clrL":case"rplc":x[G]={};aN.EK(s,x[G],m+6);
break;case"nvrt":x[G]={};break;case"post":x[G]=ib.Xi("post");x[G].Lvls.v=g.hi(s,m);break;case"thrs":x[G]=ib.Xi("thrs");
x[G].Lvl.v=g.hi(s,m);break;case"grdm":var Q=m,q=s[m+2]==1,Z=s[m+3]==1;Q+=4;var E=g.ep(s,Q);Q+=4+E.length*2;
var z=f8.Cz(s,Q,E),V=z[0];Q=z[1];var Y=g.hi(s,Q);Q+=2;var d=g.n(s,Q);Q+=4;var w=g.hi(s,Q)==1;Q+=2;var A=g.hi(s,Q)==1;
Q+=2;var $=g.n(s,Q);Q+=4;var i=g.hi(s,Q);Q+=2;var K=[],h=[];for(var C=0;C<4;C++){K.push({t:"long",v:~~(g.hi(s,Q+C*2)*100/32768)});
h.push({t:"long",v:~~(g.hi(s,Q+C*2+8)*100/32768)})}Q+=16;var F=g.hi(s,Q);Q+=2;if(Y==1)V={classID:"Grdn",Nm:{t:"TEXT",v:E},GrdF:{t:"enum",v:{GrdF:"ClNs"}},ShTr:{t:"bool",v:w},VctC:{t:"bool",v:A},ClrS:{t:"enum",v:{ClrS:"RGBC"}},RndS:{t:"long",v:d},Smth:{t:"long",v:$},Mnm:{t:"VlLs",v:K},Mxm:{t:"VlLs",v:h}};
var N=ib.Xi("grdm");N.Rvrs.v=q;N.Grad.v=V;x[G]=N;break;case"selc":x[G]=b7.p7(s,m,_);break;case"vmsk":case"vsms":var iQ=x.vmsk=new t.sD,jB=g.Ji(s,m+4),k=(jB>>0&1)==1;
iQ.FT=(jB>>1&1)==0;iQ.isEnabled=(jB>>2&1)==0;iQ.T=b_.kx(s,m+8,_-8,P.e,P.l);break;case"shmd":x[G]={};
var ab=g.n(s,m),u=m+4;for(var C=0;C<ab;C++){var o=g.cS(s,u,4);u+=4;var f_=g.cS(s,u,4);u+=4;var fc=s[u];
u++;if(Math.max(s[u],s[u+1],s[u+2])!=0)throw"e";u+=3;var g8=g.n(s,u);u+=4;if(f_=="cust"||f_=="cmls"||f_=="extn"||f_=="mlst"){var bH=g.n(s,u);
if(bH!=16)u+=4;if(g.n(s,u)==16){var T={};aN.EK(s,T,u+4,!1);x[G][f_]=T;if(f_=="cmls")r.fW.adi(x[G][f_])}}else{console.log("unknown shmd key: "+f_+", size: "+g8)}u+=g8}break;
case"shpa":var O=g.n(s,m),cR=g.n(s,m+4);if(cR!=0)console.log("some patterns present!");break;case"TySh":var hr=x[G]={},O=g.hi(s,m);
hr.A=g.r7(s,m+2);var h$=g.hi(s,m+2+48);hr.jW={};var gE=aN.EK(s,hr.jW,m+56),d8=ex.a5D();for(var hG in d8)if(hr.jW[hG]==null)hr.jW[hG]=d8[hG];
hr.hG={};var f7=aN.EK(s,hr.hG,m+56+gE+6);hr.fn=g.ak3(s,m+56+gE+6+f7);hr.x5=el.st(hr.jW.EngineData.v);
ex.abU(hr.x5.EngineDict.StyleRun.RunArray);if(hr.x5.ResourceDict==null)hr.x5.ResourceDict=JSON.parse(JSON.stringify(hr.x5.DocumentResources));
delete hr.jW.EngineData;break;case"lfx2":case"lmfx":case"lfxs":var hX=g.n(s,m),fB=g.n(s,m+4);x.lmfx={};
var gE=aN.EK(s,x.lmfx,m+8);c2.xo(x.lmfx);break;case"FMsk":x[G]=g.MO(s,m,_);break;case"Txt2":x[G]={};
x[G].raw=g.MO(s,m,_);x[G].bA=a_.st(x[G].raw);break;case"Patt":x[G]=gQ.jc(s,m,_);break;case"SoLd":var e5=g.cS(s,m,4),g9=g.n(s,m+4),cL=g.n(s,m+8);
x[G]={};var bf=aN.EK(s,x[G],m+12);if(x[G].nonAffineTransform==null)x[G].nonAffineTransform=JSON.parse(JSON.stringify(x[G].Trnf));
if(x[G].Impr==null)x[G].Impr={t:"Objc",v:{__name:"None",classID:"none"}};break;case"vstk":case"pths":var g9=g.n(s,m);
x[G]={};var bf=aN.EK(s,x[G],m+4);break;case"vscg":var f_=g.cS(s,m,4),g9=g.n(s,m+4);x[f_]={};var bf=aN.EK(s,x[f_],m+8);
c2.QD(x[f_],f_);break;case"vogk":var gF=g.n(s,m),g9=g.n(s,m+4);x[G]={};var bf=aN.EK(s,x[G],m+8);x[G]=x[G].keyDescriptorList.v;
for(var C=0;C<x[G].length;C++){var iC=x[G][C].v;if(!L.R2.mz(iC))continue;if(iC.keyOriginBoxCorners==null){var ax=L.R2.yE(iC);
iC.keyOriginBoxCorners={t:"Objc",v:{classID:"null"}};var e7=[ax[0],ax[1],ax[2],ax[1],ax[2],ax[3],ax[0],ax[3]];
if(iC.keyOriginType.v==4)e7=L.R2.N7(L.R2.Nm(iC),iC.keyOriginLineWeight.v);L.R2.Sa(iC,"keyOriginBoxCorners",e7)}}break;
case"lnk2":case"lnkD__":case"lnk3__":x[G]=[];var Q=m;while(Q<m+_){var dO=new t.bd;x[G].push(dO);var h1=g.Z4(s,Q);
Q+=8;var hL=Q;dO.type=g.cS(s,Q,4);Q+=4;if(dO.type!="liFD"){alert("Unknown Linked Layer type: "+dO.type);
break;throw dO.type}dO.iy=g.n(s,Q);Q+=4;var jl=g.rK(s,Q);Q+=1+jl.sp.length;dO.te=jl.sp;dO.zA=g.GO(s,Q);
Q+=4+dO.zA.length*2+2;dO.pC=g.cS(s,Q,4);Q+=4;dO.Br=g.cS(s,Q,4);Q+=4;var gT=g.Z4(s,Q);Q+=8;dO.open=s[Q];
Q+=1;if(dO.open!=0){var hZ={},gE=aN.EK(s,hZ,Q+4);if(gE%4!=0)gE+=4-gE%4;console.log(hZ);Q+=gE+4}dO.open=0;
dO.raw=g.MO(s,Q,gT);Q=hL+h1;if(h1%4!=0)Q+=4-h1%4}break;case"FEid":var Q=m;x[G]=[];var j6=Q+_,O=g.n(s,Q);
Q+=4;while(Q<j6){Q+=4;var h1=g.n(s,Q);Q+=4;var z={};x[G].push(z);z.id=g.rK(s,Q).sp;Q+=z.id.length+1;
var O=g.n(s,Q);Q+=4;Q+=4;var aP=g.n(s,Q);Q+=4;z.rect=g.T8(s,Q);Q+=16;var h7=g.n(s,Q);Q+=4;var fa=g.n(s,Q);
Q+=4;var h4=new L.KY(0);for(var C=0;C<fa+2;C++){var cA=g.n(s,Q);Q+=4;if(cA!=0){Q+=4;var jg=g.n(s,Q),cS=null;
Q+=4;if(C<3||C==25)cS=iA.L_(!0,h7,s,z.rect.e,z.rect.l,Q,jg);if(C==0)h4.o=cS;if(C==1)h4.z=cS;if(C==2)h4.S=cS;
if(C==25)h4.lz=cS;Q+=jg}}z.buffer=L.B(z.rect.k()*4);L.aC(h4,z.buffer);L.vb(z);var iT=s[Q];Q++;if(iT!=0){z.v=new t.K0;
z.v.rect=g.T8(s,Q);Q+=16;Q+=4;var cf=g.n(s,Q);Q+=4;z.v.channel=iA.L_(!0,h7,s,z.v.rect.e,z.v.rect.l,Q,cf);
z.v.color=255;z.v.zr();Q+=cf}if(h1%4!=0)Q+=4-h1%4}break;case"Lr16":gv.iV(P,s,m);break;default:break}var ir="Lr16 LMsk Txt2 artd extd luni pths extn tySh lfx2 cinf".split(" ");
if(ir.indexOf(G)==-1)if(_%4!=0)console.log("size not multiple of 4!!!",G);if(G!="luni"&&G!="TySh"&&G!="tySh"&&G!="lfx2")if(_%4!=0)_+=4-_%4;
m+=_}var bl=[];for(var C=0;C<bl.length;C++)delete x[bl[C]];return m};c2.be=function(s,m,l,x,a){for(var P in l)if(l[P]==null){alert("A bug occured (see console).");
console.log("Please, report a bug, that \""+P+"\" tag was present with a null value.");delete l[P]}for(var P in l){var o=x&&"LMsk Lr16 Lr32 Layr Mt16 Mt32 Mtrn Alph FMsk lnk2 lnkE FEid FXid PxSD extn cinf artd pths".split(" ").indexOf(P)!=-1,_=0;
g.Gj(s,m,o?"8B64":"8BIM");m+=4;var G=m;g.Gj(s,m,P);m+=4;g.Tc(s,m,0);m+=o?8:4;switch(P){case"iOpa":g.mS(s,m,l[P],1);
_=4;break;case"brst":_=0;for(var C=0;C<3;C++)if(l[P][C]==0){g.DU(s,m+_,C);_+=4}break;case"knko":g.mS(s,m,l[P],1);
_=4;break;case"infx":g.mS(s,m,l[P],1);_=4;break;case"clbl":g.mS(s,m,l[P],1);_=4;break;case"lmgm":g.mS(s,m,l[P],1);
_=4;break;case"vmgm":g.mS(s,m,l[P],1);_=4;break;case"lyid":g.DU(s,m,l[P]);_=4;break;case"lsct":g.DU(s,m,l[P].type);
_=4;if(l[P].TR){g.Gj(s,m+4,"8BIM");g.Gj(s,m+8,l[P].TR);_=12}break;case"lyvr":g.DU(s,m,l[P]);_=4;break;
case"lnsr":g.Gj(s,m,l[P]);_=4;break;case"lspf":g.DU(s,m,l[P]);_=4;break;case"lclr":g.h8(s,m,l[P]);_=8;
break;case"luni":g.Qe(s,m,l[P]);_=4+2*l[P].length;break;case"fxrp":g.hq(s,m,l[P].x);g.hq(s,m+8,l[P].y);
_=16;break;case"artb":case"artd":g.DU(s,m,16);_=aN.$V(s,l[P],m+4)+4;break;case"SoCo":g.DU(s,m,16);_=aN.$V(s,l[P],m+4)+4;
break;case"GdFl":g.DU(s,m,16);_=aN.$V(s,l[P],m+4)+4;break;case"PtFl":g.DU(s,m,16);_=aN.$V(s,l[P],m+4)+4;
break;case"CgEd":var j={classID:"null",Vrsn:{t:"long",v:1},Brgh:{t:"long",v:24},Cntr:{t:"long",v:54},means:{t:"long",v:127},Lab:{t:"bool",v:!1},useLegacy:{t:"bool",v:!1},Auto:{t:"bool",v:!0}},U=j,S=l[P];
U.Brgh.v=S.Brgh.v;U.Cntr.v=S.Cntr.v;U.useLegacy.v=S.useLegacy.v;g.DU(s,m,16);_=aN.$V(s,j,m+4)+4;break;
case"brit":s.bY(m,8);_=8;break;case"levl":var X=new bm;_=gy.v1(X,l[P]);g.rp(s,m,X.data);break;case"curv":_=fx.ez(s,m,l[P]);
break;case"expA":_=14;s.bY(m,14);g.yG(s.data,m,1);g.o1(s.data,m+2,l[P].Exps?l[P].Exps.v:0);g.o1(s.data,m+6,l[P].Ofst?l[P].Ofst.v:0);
g.o1(s.data,m+10,l[P].gammaCorrection?l[P].gammaCorrection.v:1);break;case"vibA":g.DU(s,m,16);_=aN.$V(s,l[P],m+4)+4;
break;case"hue2":_=aX.ez(s,m,l[P]);break;case"blnc":_=19;s.bY(m,_);var c=["ShdL","MdtL","HghL"];for(var C=0;
C<3;C++){var y=l[P][c[C]].v;for(var O=0;O<3;O++)y.push(g.UQ(s.data,m+C*6+O*2,y[O].v))}s.data[m+18]=l[P].PrsL.v?1:0;
break;case"blwh":var j={classID:"null",bwPresetKind:{t:"long",v:1},blackAndWhitePresetFileName:{t:"TEXT",v:""}},p="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" ");
for(var C=0;C<p.length;C++){j[p[C]]=l[P][p[C]]}g.DU(s,m,16);_=aN.$V(s,j,m+4)+4;break;case"phfl":g.h8(s,m,2);
var D=l[P].Clr.v;g.h8(s,m+2,7);g.h8(s,m+4,Math.round(D.Lmnc.v*100));g.h8(s,m+6,Math.round(D.A.v*100));
g.h8(s,m+8,Math.round(D.B.v*100));g.h8(s,m+10,0);var f=m+2+10;s.bY(f,5);g.ML(s.data,f,l[P].Dnst.v);f+=4;
s.data[f]=l[P].PrsL.v?1:0;f++;_=f-m;break;case"mixr":_=44;s.bY(m,_);var T=eb.Aj(l[P]);g.yG(s.data,m,1);
g.yG(s.data,m+2,T._Q?1:0);for(var C=0;C<20;C++)g.UQ(s.data,m+4+C*2,T.Z[C]);break;case"clrL":case"rplc":g.h8(s,m,1);
g.DU(s,m+2,16);_=aN.$V(s,l[P],m+6)+6;break;case"nvrt":_=0;break;case"post":g.h8(s,m,l[P].Lvls.v);_=2;
break;case"thrs":g.h8(s,m,l[P].Lvl.v);_=2;break;case"grdm":var I=l[P].Rvrs?l[P].Rvrs.v:!1,H=!1,b=867527939,R=!1,W=!1,J=2048,u=[0,0,0,0],e=[32768,32768,32768,32768],Q=l[P].Grad.v,q,Z,E=Q.Clrs==null?1:0;
if(E==0){q=Q;Z=JSON.parse(i4.Cw.a3).v}else{q=ib.Xi("grdm").Grad.v;Z=Q}s.bY(m,4);g.yG(s.data,m,1);s.data[m+2]=I?1:0;
s.data[m+3]=H?1:0;var z=m+4;g.Qe(s,z,Q.Nm.v);z+=4+Q.Nm.v.length*2;z=f8.akX(s,z,q);g.h8(s,z,E);z+=2;g.DU(s,z,Z.RndS.v);
z+=4;g.h8(s,z,Z.ShTr.v?1:0);z+=2;g.h8(s,z,Z.VctC.v?1:0);z+=2;g.DU(s,z,Z.Smth.v);z+=4;g.h8(s,z,3);z+=2;
for(var C=0;C<4;C++)g.h8(s,z+C*2,u[C]);z+=8;for(var C=0;C<4;C++)g.h8(s,z+C*2,e[C]);z+=8;z+=2;_=z-m;break;
case"selc":_=b7.ez(s,m,l[P]);break;case"FMsk":g.rp(s,m,l[P]);_=l[P].length;break;case"Txt2":var V=new bm,Y=a_.cs(l[P].bA,V),d=L.B(Y,!0);
for(var C=0;C<Y;C++)d[C]=V.data[C];g.rp(s,m,d);_=d.length;break;case"vmsk":var w=l[P],A=0;g.DU(s,m,3);
if(!w.FT)A+=1<<1;if(!w.isEnabled)A+=1<<2;g.DU(s,m+4,A);_=8;var $=w.T.length;s.bY(m+8,$*26);b_.Uk(s.data,m+8,w.T,a.e,a.l);
_+=$*26;break;case"shmd":g.DU(s,m,Object.keys(l[P]).length);var f=m+4;for(var i in l[P]){g.Gj(s,f,"8BIM");
f+=4;g.Gj(s,f,i);f+=4;g.DU(s,f,0);f+=4;g.DU(s,f,0);f+=4;g.DU(s,f,16);f+=4;var K=aN.$V(s,l[P][i],f);if(K%4!=0)K+=4-K%4;
g.DU(s,f-8,K+4);f+=K}_=f-m;break;case"TySh":var f=m;g.Zt(s,f,1);f+=2;var h=l[P],V=new bm;h.x5.DocumentResources=JSON.parse(JSON.stringify(h.x5.ResourceDict));
var Y=el.cs(h.x5,V),d=L.B(Y,!0);for(var C=0;C<Y;C++)d[C]=V.data[C];h.jW.EngineData={t:"tdta",v:d};var F=h.x5.EngineDict.Editor.Text;
h.jW.Txt.v=F.substring(0,F.length-1);g.a6$(s,f,h.A);f+=48;g.Zt(s,f,50);f+=2;g.DU(s,f,16);f+=4;f+=aN.$V(s,h.jW,f);
g.Zt(s,f,1);f+=2;g.DU(s,f,16);f+=4;f+=aN.$V(s,h.hG,f);g.a1x(s,f,h.fn);f+=16;_=f-m;break;case"lmfx":g.DU(s,m,0);
g.DU(s,m+4,16);var j=JSON.parse(JSON.stringify(l[P])),N=!1;c2.VQ(j);for(var C=0;C<i4.rm.length;C++)if(j[i4.rm[C]]!=null)N=!0;
g.Gj(s,G,N?"lmfx":"lfx2");_=aN.$V(s,j,m+8)+8;break;case"Patt":var f=gQ.Zw(s,m,l[P]);_=f-m;break;case"SoLd":g.Gj(s,m,"soLD");
g.DU(s,m+4,4);g.DU(s,m+8,16);_=aN.$V(s,l[P],m+12)+12;break;case"vstk":case"pths":g.DU(s,m,16);_=aN.$V(s,l[P],m+4)+4;
break;case"vscg__":g.Gj(s,m,l[P].key);g.DU(s,m+4,16);_=aN.$V(s,l[P].Z,m+8)+8;break;case"vogk":g.DU(s,m,1);
g.DU(s,m+4,16);L.R2.a6m(l[P]);for(var C=0;C<l[P].length;C++){var iQ=l[P][C].v.keyOriginResolution;if(iQ)iQ.v=a.sz}var jB={classID:"null",keyDescriptorList:{t:"VlLs",v:l[P]}};
_=aN.$V(s,jB,m+8)+8;break;case"lnkD":case"lnk2":case"lnk3":var z=m;for(var C=0;C<l[P].length;C++){var k=l[P][C],ab=z;
g.tt(s,z,0);z+=8;g.Gj(s,z,k.type);z+=4;g.DU(s,z,k.iy);z+=4;s.bY(z,1);s.data[z]=k.te.length;z++;g.Gj(s,z,k.te);
z+=k.te.length;g.Qe(s,z,k.zA+"\0");z+=4+k.zA.length*2+2;g.Gj(s,z,k.pC);z+=4;g.Gj(s,z,k.Br);z+=4;g.tt(s,z,k.raw.length);
z+=8;s.bY(z,1);s.data[z]=k.open;z++;g.rp(s,z,k.raw);z+=k.raw.length;g.DU(s,z,1);z+=4;z+=11;var f_=z-ab-8;
g.tt(s,ab,f_);if(f_%4!=0){s.bY(z,4-f_%4);z+=4-f_%4}}_=z-m;break;case"FEid":var z=m;g.DU(s,z,3);z+=4;
for(var fc=0;fc<l[P].length;fc++){var g8=l[P][fc];z+=4;var bH=z;z+=4;g.PV(s,z,g8.id);z+=g8.id.length+1;
g.DU(s,z,1);z+=4;var cR=L.B(g8.rect.k()),hr=g8.rect.if(new bU(0,0,a.e,a.l)),h$=L.B(hr.k());z+=4;var gE=z;
z+=4;g.Cg(s,z,hr);z+=16;g.DU(s,z,8);z+=4;g.DU(s,z,24);z+=4;for(var C=0;C<24+2;C++){var d8=-1;if(C==0)d8=0;
if(C==1)d8=1;if(C==2)d8=2;if(C==25)d8=3;g.DU(s,z,d8!=-1?1:0);z+=4;if(d8!=-1){L.hy(g8.buffer,cR,d8);L.kV(cR,g8.rect,h$,hr);
z+=4;var hG=z;z+=4;s.bY(z,hr.k()+2);z=iA.GN(!0,h$,s.data,hr.e,hr.l,z,3);g.DU(s,hG,z-(hG+4))}}g.DU(s,gE,z-(gE+4));
s.bY(z,1);s.data[z]=g8.v?1:0;z++;if(g8.v!=null){var f7=hr,hX=L.B(f7.k());hX.fill(g8.v.color);L.kV(g8.v.channel,g8.v.rect,hX,f7);
g.Cg(s,z,f7);z+=16;z+=4;var fB=z;z+=4;s.bY(z,f7.k()+2);z=iA.GN(!0,hX,s.data,f7.e,f7.l,z,3);g.DU(s,fB,z-(fB+4))}var f_=z-(bH+4);
g.DU(s,bH,f_);if(f_%4!=0)z+=4-f_%4}_=z-m;break;default:console.log("unknown layer tag: "+P+", size: "+_);
m-=12;continue}var e5=["Txt2","artd","extd","pths"];if(e5.indexOf(P)==-1)if(_%4!=0)_+=4-_%4;if(o)g.tt(s,m-8,_);
else g.DU(s,m-4,_);if(P!="luni"&&P!="TySh")if(_%4!=0)_+=4-_%4;m+=_}return m};c2.xo=function(s){for(var C=0;
C<i4.order.length;C++){var m=i4.order[C],l=i4.rm[C];if(s[l]==null)s[l]={t:"VlLs",v:[]};if(s[m]!=null){s[l].v.push(s[m]);
delete s[m]}var x=[];for(var a=0;a<s[l].v.length;a++){var P=s[l].v[a];if(P.v.present==null||P.v.present.v==!0)x.push(P)}s[l].v=x}};
c2.VQ=function(s){for(var C=0;C<i4.order.length;C++){var m=i4.order[C],l=i4.rm[C],x=s[l].v.length;if(x==0){delete s[l];
continue}if(x==1){s[m]=s[l].v[0];delete s[l];continue}}};c2.QD=function(s,m){if(m=="GdFl"){if(s.Angl==null)s.Angl={v:{type:"#Ang",val:0},t:"UntF"};
if(s.Algn==null)s.Algn={v:!0,t:"bool"};if(s.Scl==null)s.Scl={v:{type:"#Prc",val:100},t:"UntF"};if(s.Ofst==null)s.Ofst={v:{classID:"Pnt",Hrzn:{v:{type:"#Prc",val:0},t:"UntF"},Vrtc:{v:{type:"#Prc",val:0},t:"UntF"}},t:"Objc"};
if(s.Rvrs==null)s.Rvrs={v:!1,t:"bool"};if(s.Dthr==null)s.Dthr={v:!1,t:"bool"}}if(m=="PtFl"){if(s.Algn==null)s.Algn={v:!0,t:"bool"};
if(s.Angl==null)s.Angl={v:{type:"#Ang",val:0},t:"UntF"};if(s.Scl==null)s.Scl={v:{type:"#Prc",val:100},t:"UntF"};
if(s.phase==null)s.phase={v:{classID:"Pnt",Hrzn:{v:0,t:"doub"},Vrtc:{v:0,t:"doub"}},t:"Objc"}}};c2.clone=function(s,m){var l={};
if(s=="TySh"){l.A=m.A.clone();l.jW=JSON.parse(JSON.stringify(m.jW));l.hG=JSON.parse(JSON.stringify(m.hG));
l.fn=m.fn.clone();l.x5=JSON.parse(JSON.stringify(m.x5));if(m.add)l.add={vmsk:m.add.vmsk.clone(),vogk:JSON.parse(JSON.stringify(m.add.vogk))};
return l}else if(s=="fxrp")return m.clone();else if(s=="vmsk")return m.clone();else return JSON.parse(JSON.stringify(m))};
function iW(s,m){}iW.st=function(s,m,l,x){x=iW.ahW(s,m,l,x);return x};iW.cs=function(s,m,l,x,a){x=iW.apI(s,m,l,x,a);
return x};iW.ahW=function(s,m,l,x){var a=x;s.rect=g.T8(l,x);x+=16;var P=g.hi(l,x);x+=2;s.o_=[];var o=m.Vy;
for(var C=0;C<P;C++){s.o_[C]={id:g._$(l,x),length:(o?g.Z4:g.n)(l,x+2)};x+=o?10:6}var G=g.cS(l,x,4);x+=4;
if(G!="8BIM"){console.log("Invalid Blend mode signature: "+G);alert("Error in Photoshop file: wrong signature.");
throw"e"}s.TR=g.cS(l,x,4);x+=4;s.opacity=l[x];x+=1;s.uK=l[x]==1;x+=1;s.Yy=l[x];x+=1;if(l[x]!=0)console.log("error in filler!");
x+=1;var _=g.n(l,x);x+=4;var j=x;x=iW.agP(s,l,x);x=iW.atc(s,l,x);var U=g.rK(l,x);s.name=U.sp;x+=U.length;
if(U.length%4!=0)x+=4-U.length%4;x=c2.Ed(l,x,j+_,s.add,o,m);if(s.add.lsct){if(s.add.lsct.TR)s.TR=s.add.lsct.TR;
s.add.lsct=s.add.lsct.type}return x};iW.apI=function(s,m,l,x,a){var P=x;g.Cg(l,x,s.rect);x+=16;var o=s.fK();
g.h8(l,x,o.length);x+=2;var G=m.Vy;a.push(x);for(var C=0;C<o.length;C++){g.Zt(l,x,o[C]);if(G)g.tt(l,x+2,0);
else g.DU(l,x+2,0);x+=G?10:6}g.Gj(l,x,"8BIM");x+=4;g.Gj(l,x,s.TR);x+=4;g.mS(l,x,s.opacity,1);x+=1;g.mS(l,x,s.uK?1:0,1);
x+=1;g.mS(l,x,s.Yy,1);x+=1;g.mS(l,x,0,1);x+=1;var _=x;g.DU(l,x,0);x+=4;var j=x;x=iW.acN(s,l,x);x=iW.aim(s,l,x);
var U=g.PV(l,x,s.name.slice(0,255));x+=U;if(U%4!=0)x+=4-U%4;if(s.add.lsct){s.add.lsct={type:s.add.lsct};
if(s.TR=="pass"){s.add.lsct.TR="pass";s.TR="norm"}}if(s.TR=="pass")s.add.lsct={type:s.add.lsct,TR:"pass"};
if(s.add.brit)s.add.CgEd=s.add.brit;x=c2.be(l,x,s.add,G,m);delete s.add.CgEd;if(s.add.lsct){if(s.add.lsct.TR)s.TR=s.add.lsct.TR;
s.add.lsct=s.add.lsct.type}var S=x-j;g.DU(l,_,S);return x};iW.agP=function(s,m,l){var x=g.n(m,l);l+=4;
if(x==0)return l;var a=l;s.v=new t.K0;s.v.rect=g.T8(m,l);l+=16;s.v.color=m[l];l+=1;var P=iW.Cy(s.v,m,l);
l+=1;if(P){var o=!1,G=255,_=0,j=255,U=0;for(var C=0;C<s.o_.length;C++)if(s.o_[C].id==-3)o=!0;if(o){s.GR=iW.PA(m,l);
l+=18}var S=l,X=m[l];l++;if(X>>0&1){G=m[l];l++}if(X>>1&1){_=g.XR(m,l);l+=8}if(X>>2&1){j=m[l];l++}if(X>>3&1){U=g.XR(m,l);
l+=8}if((l-S&1)==1)l++;s.pf=[G,_,j,U]}else{if(x==20)l+=2;else{s.GR=iW.PA(m,l);l+=18}}return a+x};iW.acN=function(s,m,l){g.DU(m,l,0);
l+=4;if(s.v==null)return l;var x=s.SE(),a=s.add.vmsk,P=l,o=!0;g.DU(m,l,0);g.Cg(m,l,s.v.rect);l+=16;g.mS(m,l,s.v.color);
l+=1;iW.OK(s.v,m,l,o);l+=1;if(o){if(s.GR){iW.a59(m,l,s.GR);l+=18}g.mS(m,l,15);l+=1;g.mS(m,l,x?x.X5:255);
l+=1;g.hq(m,l,x?x.l2:0);l+=8;g.mS(m,l,a?a.X5:255);l+=1;g.hq(m,l,a?a.l2:0);l+=8;l++}g.DU(m,P-4,l-P);return l};
iW.PA=function(s,m){var l=new t.K0;iW.Cy(l,s,m);m+=1;l.color=s[m];m+=1;l.rect=g.T8(s,m);m+=16;return l};
iW.a59=function(s,m,l){iW.OK(l,s,m,!1);m+=1;g.mS(s,m,l.color);m+=1;g.Cg(s,m,l.rect);m+=16};iW.Cy=function(s,m,l){var x=m[l];
s.FT=(x>>0&1)==0;s.isEnabled=(x>>1&1)==0;s.e3=(x>>3&1)==1;return x>>4&1};iW.OK=function(s,m,l,x){var a=0;
if(!s.FT)a+=1<<0;if(!s.isEnabled)a+=1<<1;if(s.e3)a+=1<<3;if(x)a+=1<<4;g.mS(m,l,a)};iW.atc=function(s,m,l){var x=g.n(m,l);
l+=4;for(var C=0;C<x;C++)s.kt[C]=m[l+C];return l+x};iW.aim=function(s,m,l){g.DU(m,l,s.kt.length);l+=4;
m.bY(l,40);for(var C=0;C<40;C++){m.data[l+C]=s.kt[C]}return l+40};function iA(){}iA.st=function(s,m,l,x){x=iA.a44(m.Vy,m.Um,m.jt,s,l,x);
return x};iA.v1=function(s,m,l,x,a,P){x=iA.aqn(s,m,l,x,a,P);return x};iA.a44=function(s,m,l,x,a,P){var o=x.o_,G={},_=P;
for(var C=0;C<o.length;C++){var j=o[C],U=j.id,S=j.length,X;if(U==-3)X=x.GR.rect;else if(U==-2)X=x.v.rect;
else X=x.rect;var c=iA.L_(s,m,a,X.e,X.l,P,S);P+=S;if(U==-3)x.GR.channel=c;else if(U==-2)x.v.channel=c;
else G["c"+U]=c}var y=new L.KY(0);y.lz=null;if(l==3){y.o=G.c0;y.z=G.c1;y.S=G.c2;y.lz=G["c-1"]}else if(l==1){y.o=G.c0;
y.z=G.c0;y.S=G.c0;y.lz=G["c-1"]}else if(l==4){var O=G.c0,p=G.c1,D=G.c2,f=G.c3,T=O.length,I=1/255;for(var C=0;
C<T;C++){var H=O[C],b=p[C],R=D[C],W=f[C]*I;O[C]=Math.round(H*W);p[C]=Math.round((.2*H+.8*b)*W);D[C]=Math.round((.2*b+.8*R)*W)}y.o=O;
y.z=p;y.S=D;y.lz=G["c-1"];console.log("converting from CMYK to RGB")}if(y.o==null)y.o=L.B(0);if(y.lz==null&&y.o!=null){y.lz=y.o.slice(0);
y.lz.fill(255)}if(y.z==null)y.z=y.o.slice(0);if(y.S==null)y.S=y.o.slice(0);x.buffer=L.B(Math.max(0,x.rect.k()*4));
L.aC(y,x.buffer);return P};iA.aqn=function(s,m,l,x,a,P){var o=m.fK(),G=new L.KY(m.rect.k());L.ZI(m.buffer,G);
for(var C=0;C<o.length;C++){var _=o[C],j,U;if(_==-3)j=m.GR.rect;else if(_==-2)j=m.v.rect;else j=m.rect;
if(_==-3)U=m.GR.channel;if(_==-2)U=m.v.channel;if(_==-1)U=G.lz;if(_==0)U=G.o;if(_==1)U=G.z;if(_==2)U=G.S;
l.bY(x,j.k()*3+4);var S=x;x=iA.GN(s,U,l.data,j.e,j.l,x,P[1]?3:1);var X=x-S;if(s)g.ST(l.data,a+C*10+2,X);
else g.ML(l.data,a+C*6+2,X)}return x};iA.L_=function(s,m,l,x,a,P,o){var G=g.hi(l,P);P+=2;return iA.Dd(s,m,l,x,a,P,G,o-2)};
iA.GN=function(s,m,l,x,a,P,o){g.UQ(l,P,o);P+=2;P=iA.Bk(s,m,l,x,a,P,o);return P};iA.Dd=function(s,m,l,x,a,P,o,G){var _,j=x*a*(m>>>3),U=j&3,S=j+(U==0?0:4-U);
if(G<=0){return L.B(S)}if(o>3){console.log("unknown compression: "+o,x,a,x*a,G);o=0}if(o==0){if(P+S<=l.length)_=l.slice(P,P+S);
else{_=L.B(j);for(var C=0;C<j;C++)_[C]=l[P+C]}P+=j}else if(o==1){_=L.B(j);var X=s?4:2,c=iA.NM(l,_,x,a,P,P+X*a,X);
P+=X*a+c}else if(o==2||o==3){var y=new Uint8Array(l.buffer,P+2,G-6),O=pako.inflateRaw(y);if(o==3){if(m==8)for(var p=0;
p<a;p++){var D=p*x+1,f=D+x-1,T=O[D-1];for(var I=D;I<f;I++){T+=O[I];O[I]=T&255}}else for(var p=0;p<a;
p++){var D=p*x+1,f=D+x-1,T=O[2*D-2]<<8|O[2*D-1];for(var I=D;I<f;I++){var H=I<<1;T+=O[H]<<8|O[H+1];O[H]=T>>>8;
O[H+1]=T&255}}}if(O.length==S)_=O;else{_=L.B(S);for(var C=0;C<O.length;C++)_[C]=O[C]}}if(m==16){var b=L.B(x*a);
for(var C=0;C<j;C+=2)b[C>>>1]=_[C];_=b}return _};iA.Bk=function(s,m,l,x,a,P,o){var G=x*a;if(o==0)for(var C=0;
C<G;C++)l[P++]=m[C];else if(o==1){var _=s?4:2,j=iA.fg(m,l,x,a,P,P+_*a,_);P+=_*a+j}else if(o==2||o==3){if(o==3){var U=new Uint8Array(m.length);
for(var S=0;S<a;S++){var X=S*x+1,c=X+x-1,y=m[X-1];U[X-1]=y;for(var O=X;O<c;O++){U[O]=m[O]+(256-y)&255;
y=m[O]}}m=U}l[P]=120;l[P+1]=156;P+=2;var p=pako.deflateRaw(m,{a3Z:4});g.OX(l,P,p);P+=p.length+4}else console.log("Unknown compression: "+o);
return P};iA.NM=function(s,m,l,x,a,P,o){if(!(s instanceof Uint8Array)||!(m instanceof Uint8Array))throw"e";
var G=P,_=x|0;if(o==2)for(var C=0;C<_;C++){var j=g.hi(s,a+(C<<1));iA.Y3(s,P,j,m,C*l,l);P+=j}else for(var C=0;
C<_;C++){var j=g.n(s,a+(C<<2));iA.Y3(s,P,j,m,C*l,l);P+=j}return P-G};iA.fg=function(s,m,l,x,a,P,o){var G=P;
if(o==2)for(var C=0;C<x;C++){var _=iA.cc(s,C*l,l,m,P);g.yG(m,a+C*2,_);P+=_}else for(var C=0;C<x;C++){var _=iA.cc(s,C*l,l,m,P);
g.ML(m,a+C*4,_);P+=_}return P-G};iA.cc=function(s,m,cE,l,x){var a,P,o,G,_,aZ,j;G=m+cE;for(o=m,P=x;cE>0;
o=a,cE-=aZ){j=cE<128?cE:128;if(o<=G-3&&s[o+1]==s[o+0]&&s[o+2]==s[o+0]){for(a=o+3;a<o+j&&s[a]==s[o+0];
)++a;aZ=a-o;l[P++]=1+256-aZ;l[P++]=s[o+0]}else{for(a=o;a<o+j;)if(a<=G-3&&s[a+1]==s[a+0]&&s[a+2]==s[a+0])break;
else++a;aZ=a-o;l[P++]=aZ-1;for(var C=0;C<aZ;C++)l[P+C]=s[o+C];P+=aZ}}return P-x};iA.Y3=function(s,m,l,x,a,P){for(var o=0;
o<l;){var cE=s[m++];if(cE>=128){var G=s[m++],_=a+(257-cE);x.fill(G,a,_);a=_;o+=2}else{for(var C=0;C<=cE;
C++)x[a+C]=s[m+C];m+=cE+1;a+=cE+1;o+=1+1+cE}}};function gv(){}gv.B9=function(s,m,l){return;var x="",a=m;
while(a!=0){var P=a%1e3+"";while(P.length<3)P="0"+P;x=(x==""?P:P+" ")+x;a=Math.floor(a/1e3)}while(x.startsWith("0")&&x!="0")x=x.slice(1);
while(x.length<11)x=" "+x;console.log("===",x,"\t".repeat(s),": "+l)};gv.st=function(s,m){m.Vy=!1;m.Um=8;
var l=new Uint8Array(s),x=0,a=0,K,fc=!1,g8=!0,bH=!1,cR=0,cK=0;a=gv.x0(m,l,x);gv.B9(0,a-x,"PSD Header");
x=a;a=gv.a0O(m,l,x);gv.B9(0,a-x,"Color Mode Data");x=a;a=gv.ahw(m,l,x);gv.B9(0,a-x,"Image Resources");
x=a;a=gv.asa(m,l,x);gv.B9(0,a-x,"Layer And Mask Info");x=a;a=gv.a7z(m,l,x);gv.B9(0,a-x,"Merged Image");
x=a;if(m.G.length==0){var P=m.d2();P.qW("Background");m.G.push(P);P.buffer=m.buffer.slice(0);P.rect=new bU(0,0,m.e,m.l)}if(m.wD.r1005){m.sz=g.a6R(m.wD.r1005,0)}if(m.wD.r1026){var l=m.wD.r1026;
for(var C=0;C<l.length;C+=2){var a=m.G[C>>>1];if(a)a.FX=g.hi(l,C)}}if(m.wD.r1072){var l=m.wD.r1072;for(var C=0;
C<l.length;C++){var a=m.G[C];if(a)a.KV=l[C]==1}}if(m.wD.r1032){var l=m.wD.r1032,o=g.n(l,12);for(var C=0;
C<o;C++){var G=l[16+C*5+4],_=g.Ji(l,16+C*5)/32;m.ff.push([G,_])}}delete m.wD.r1036;delete m.wD.r1039;
if(m.wD.r1050){var j=g.n,U=m.wD.r1050,S=g.n(U,0);if(S==6){var X=4,c=g.T8(U,X);X+=16;var y=g.ep(U,X);
X+=4+y.length*2;var O=j(U,X);X+=4;var p=m.YA;for(var C=0;C<O;C++){var D=r.NT.as(),T;p.push(D);D=D.v;
D.sliceID.v=j(U,X);X+=4;D.groupID.v=j(U,X);X+=4;var f=j(U,X);X+=4;if(f==1){T=j(U,X);X+=4}var y=g.ep(U,X);
X+=4+y.length*2;var I=j(U,X);X+=4;var H=[j(U,X),j(U,X+4),j(U,X+8),j(U,X+12)];X+=16;r.NT.QB(p,p.length-1,H);
var b=D.url.v=g.ep(U,X);X+=4+b.length*2;var R=D.null.v=g.ep(U,X);X+=4+R.length*2;var W=D.Msge.v=g.ep(U,X);
X+=4+W.length*2;var J=D.altTag.v=g.ep(U,X);X+=4+J.length*2;D.cellTextIsHTML.v=U[X]==1;X++;var u=D.cellText.v=g.ep(U,X);
X+=4+u.length*2;var e=j(U,X);X+=4;var Q=j(U,X);X+=4;var q=U.slice(X,X+4);X+=4;if(f!=2)p.pop()}}else if(S==8){var Z={};
aN.EK(U,Z,8,!1);var U=m.YA=Z.slices.v;for(var C=0;C<U.length;C++){if(U[C].v.origin.v.ESliceOrigin!="userGenerated"){U.splice(C,1);
C--}}}}if(m.wD.r1058){var E=m.wD.r1058,z=UTIF.decode(E.buffer,{parseMN:!1,debug:!1});bs.pD(z[0],m.l1);
delete m.wD.r1058}if(m.wD.r1060){var V=g.V_(m.wD.r1060);bs.afM(V,m.l1);delete m.wD.r1060}if(m.wD.r1065){var l=m.wD.r1065;
m.xW={};aN.EK(l,m.xW,4,!1)}if(m.wD.r1069){var l=m.wD.r1069,Y=[];for(var C=2;C<l.length;C+=4){var T=g.n(l,C);
for(var d=0;d<m.G.length;d++){var a=m.G[d];if(a.add.lyid==T&&a.add.lsct!=3)Y.push(d)}}m.N=Y}if(m.wD.r1025){var w=m.wD.r1025;
delete m.wD.r1025;var A=b_.kx(w,0,w.length,m.e,m.l),$=new t.sD;$.T=A;m.sj[0]=jF.Fu("Working Path",{vmsk:$})}var i=m.add.pths;
delete m.add.pths;var h=m.wD.r3000;if(h){K={};aN.EK(h,K,4,!1);delete m.wD.r3000}for(var F=0;F<=997;F++){var N="r"+(2e3+F),w=m.wD[N];
if(w==null)break;var A=b_.kx(w,0,w.length,m.e,m.l),iQ=i?i.pathList.v[F].v.pathUnicodeName.v:"Path "+F,jB=K?K.keyRootDescriptorList.v[F].v.keyDescriptorList.v:t.GK(A),$=new t.sD;
$.T=A;m.sj[F+1]=jF.Fu(iQ,{vmsk:$,vogk:jB});delete m.wD[N]}delete m.Vy;var k=new bU(0,0,m.e,m.l),ab=m.add.Txt2,f_=ab;
if(f_){f_=f_.bA;if(f_._DocumentResources==null)f_=bG.aaW(f_)}for(var C=0;C<m.G.length;C++){var a=m.G[C],hr=a.add.lsct,h$=a.add.vmsk,gE=a.SE();
if(hr==hN.k_){cR++;a.add.lspf=0}else if(hr==hN.yF||hr==hN.fs)cR--;if(a.name==""){a.name="Layer "+(C+1);
bH=!0}if(bH&&a.gu()&&a.TR=="norm")a.TR="pass";if(a.UI()&&a.Ao(m).v){var d8=a.Ao(m);d8.v.isEnabled=a.add.SoLd.filterFX.v.filterMaskEnable.v}if(h$&&a.Ee()){var hG=i4.Ah.default;
if(a.add.vstk==null)a.add.vstk=JSON.parse(JSON.stringify(hG));else{var f7="strokeStyleLineDashSet";if(a.add.vstk[f7]==null)a.add.vstk[f7]=JSON.parse(JSON.stringify(hG[f7]))}a.add.vstk.strokeStyleResolution.v=m.sz}if(h$&&(a.add.vogk==null||L.j.Y7(h$.T)!=a.add.vogk.length))a.GK();
if(a.add.SoLd&&a.rect.Xh()){console.log("redrawing smart instance");a.y2(m)}if(gE==null&&a.v!=null){if(a.v.e3==!1){a.v.e3=!0;
a.GR=a.v.clone()}}gE=a.SE();if(a.pf){var hG=a.pf,$=h$;if(gE){gE.X5=hG[0];gE.l2=hG[1]}if($){$.X5=hG[2];
$.l2=hG[3]}a.pf=null}if(gE!=null&&h$!=null&&(gE.l2+h$.l2!=0||gE.X5+h$.X5!=2*255))a.sN(m);else if(h$!=null&&!a.Ee())a.sN();
var hX=a.add.artb;if(hX&&hX.artboardBackgroundType==null)hX.artboardBackgroundType={t:"long",v:1};if(hX&&cR!=0)delete a.add.artb;
var fB=a.add.vstk;if(a.Ee()&&(a.rect.Xh()||h$&&h$.l2!=0||fB&&!fB.fillEnabled.v&&(!fB.strokeEnabled.v||fB.strokeStyleLineWidth.v.val==0)))a.N6(m);
if(a.add.TySh){fc=!0;if(!a.rect.Xh())g8=!1}if(a.add.TySh&&f_){var e5=a.add.TySh.jW.TextIndex.v;if(e5==-1)continue;
var g9=a.add.TySh.x5,cL=ex.vc(g9),bf=f_._DocumentObjects._TextObjects;if(bf.length<=e5){console.log("Txt2 incomplete");
continue}var gF=bf[e5]._Model,iC=gF._StyleRun?gF._StyleRun._RunArray:[],ax=g9.EngineDict.StyleRun.RunArray;
for(var e7=0;e7<ax.length;e7++){var dO=ax[e7].StyleSheet.StyleSheetData;if(iC[e7]==null)continue;var h1=iC[e7]._RunData._StyleSheet._Features;
if(h1&&h1._BaselineDirection)dO.BaselineDirection=parseInt(h1._BaselineDirection.slice(1));if(h1&&h1._FillBackgroundFlag)dO._FillBackgroundFlag=h1._FillBackgroundFlag;
if(h1&&h1._FillBackgroundColor){var hL=h1._FillBackgroundColor,jl=hL._Color._Values.slice(0);for(var d=0;
d<4;d++)jl[d]=parseFloat(jl[d].slice(1));dO._FillBackgroundColor={Type:1,Values:jl}}if(h1&&h1._LineWidth)dO._LineWidth=parseFloat(h1._LineWidth.slice(1))}var gT=g9.EngineDict.ParagraphRun.RunArray,hZ=gF._ParagraphRun._RunArray;
if(hZ==null)hZ=[];var j6=Math.min(hZ.length,gT.length);for(var d=0;d<j6;d++){var aP=gT[d].ParagraphSheet.Properties,h7=f_._DocumentResources._ParagraphSheetSet._Resources,fa=hZ[d]._RunData._ParagraphSheet;
if(typeof fa=="string")fa=h7[parseInt(fa.slice(1))]._Resource;var h4=fa._Parent==null?fa:h7[parseInt(fa._Parent.slice(1))]._Resource;
fa=fa._Features;h4=h4._Features;var cA=fa._ParagraphDirection;if(cA==null)cA=h4._ParagraphDirection;
if(cA)aP._Direction=parseInt(cA.slice(1));if(fa._ComposerEngine)aP._ComposerEngine=parseInt(fa._ComposerEngine.slice(1))}if(gF._AlternateGlyphRun){var hZ=gF._AlternateGlyphRun._RunArray,j6=hZ.length,jg=g9.EngineDict.AlternateGlyphRun=ex.a48();
for(var d=0;d<j6;d++){var fa=hZ[d],cS={},iT=fa._RunData._AlternateGlyphSheet;if(iT)cS.Glyph=parseInt(iT._Glyph.slice(1));
jg.RunArray.push(cS);jg.RunLengthArray.push(parseInt(fa._Length.slice(1)))}}var cf=f_._DocumentResources,ir=cf._TextFrameSet._Resources,bl=ir[e5]._Resource,gp=bl._Data,j4=new ae(1,0,0,1,0,0);
if(bl._0){var ey=parseFloat(bl._0[0].slice(1)),ca=parseFloat(bl._0[1].slice(1));j4.translate(ey,ca)}if(cL){j4.translate(cL[0],cL[1]);
ex.rI(g9,[0,0,cL[2]-cL[0],cL[3]-cL[1]])}else{if(bl._Bezier&&bl._Bezier._Points){var A=bl._Bezier._Points,ey=parseFloat(A[0].slice(1)),ca=parseFloat(A[1].slice(1));
if(ey!=0||ca!=0){j4.translate(ey,ca)}}}if(bl._Data&&bl._Data._FrameMatrix){var iu=bl._Data._FrameMatrix;
iu=iu.map(function(fb){return parseFloat(fb.slice(1))});j4.concat(new ae(iu[0],iu[1],iu[2],iu[3],iu[4],iu[5]))}j4.concat(a.add.TySh.A);
a.add.TySh.A=j4;var I=gp._Type?parseInt(gp._Type.slice(1)):0;if(I==2||I==1&&gp._PathData&&gp._PathData._Spacing=="i-3"){var jv=function(fb){return parseFloat(fb.slice(1))},A=bl._Bezier._Points.map(jv);
if(cL)L.H.A(A,new ae(1,0,0,1,-cL[0],-cL[1]),A);var g$=gp._PathData?gp._PathData._Reversed:!1;g9.Curve={Points:A,TextOnPathTRange:gp._TextOnPathTRange.map(jv),Reversed:g$==null?!1:g$};
a.add.TySh.add={vmsk:new t.sD,vogk:null};ex.S$(a.add.TySh)}if(gp._LineOrientation=="i2")g9._LineOrientation=2}}r.fW.Bp(m,!0);
var cy={},cN=[];for(var C=0;C<m.G.length;C++){var cJ=m.G[C].add.lyid;if(cJ==null)continue;var cK=Math.max(cK,cJ);
if(cy[cJ]!=null)cN.push(C);else cy[cJ]=!0}for(var C=0;C<cN.length;C++)m.G[cN[C]].add.lyid=cK+1+C};gv.cs=function(s,m,l){r.fW.Uu(s);
r.fW.Bp(s,!1);s.Vy=l[3]==!0;var x=[],a=[],y=0,p=1,b=16,F=0;for(var C=0;C<s.G.length;C++){var P=s.G[C];
if(P.UI()&&P.Ao(s).v){P.add.SoLd.filterFX.v.filterMaskEnable.v=P.Ao(s).v.isEnabled}if(P.add.TySh){var o=P.add.TySh.x5,G=ex.$i(o);
P.add.TySh.jW.TextIndex={t:"long",v:x.length};x.push(o);if(G==2)ex._b(P.add.TySh)}var _=P.add.vstk;if(_)_.strokeStyleResolution.v=s.sz;
if(P.Ee()||l[2]&&P.add.SoLd){a[C]=[P.rect,P.buffer];P.rect=new bU;P.buffer=L.B(0);if(P.add.SoLd){var j=P.Ao(s);
if(j!=null){a[C].push(j.buffer);j.buffer=L.B(j.buffer.length)}}}}if(x.length>0){var U=s.add.Txt2?s.add.Txt2.bA:null;
if(s.add.Txt2==null)s.add.Txt2={};s.add.Txt2.bA=eG.a6S(x,null,U)}var S=[s.add.lnk2,s.add.FEid,s.add.Patt],X=s.a2E(s.G);
s.pi(X);s.wD.r1005=new Uint8Array([0,0,0,0,0,1,0,2,0,0,0,0,0,1,0,2]);g.U8(s.wD.r1005,0,s.sz);g.U8(s.wD.r1005,8,s.sz);
if(s.R4()){s.wD.r1022=new Uint8Array([0,3+s.$_.length-1,0])}else delete s.wD.r1022;var c=new Uint8Array(s.G.length*2),O=new Uint8Array(s.G.length);
for(var C=0;C<s.G.length;C++){var P=s.G[C],D=P.FX,f=P.KV?1:0;g.yG(c,C*2,D);O[C]=f;if(D>y)y=D;if(f==0)p=0}if(y>0)s.wD.r1026=c;
if(p<1)s.wD.r1072=O;var T=s.ff,I=T.length,H=s.wD.r1032=L.B(16+5*I,!0);g.ML(H,0,1);g.ML(H,4,576);g.ML(H,8,576);
g.ML(H,12,I);for(var C=0;C<I;C++){g.lV(H,b,Math.round(T[C][1]*32));H[b+4]=T[C][0];b+=5}var W=L.pl(s.buffer),J=[];
if(W)J.push({name:"Transparency",wI:{o:255,z:0,S:0},iu:100,_z:1});J=J.concat(s.$_);delete s.wD.r1045;
delete s.wD.r1006;delete s.wD.r1077;var u=new bm;b=0;var e=new Uint8Array(4+J.length*13);e[3]=1;for(var C=0;
C<J.length;C++){var Q=J[C],q=Q.name+"\0";g.Qe(u,b,q);b+=4+q.length*2;var Z=4+C*13;dr.Qd(e,Z,Q.wI);e[Z+11]=Q.iu;
e[Z+12]=Q._z}s.wD.r1045=u.data.slice(0,b);s.wD.r1077=e;for(var C=0;C<s.YA.length;C++)s.YA[s.YA.length-C-1].v.sliceID.v=2+C*3;
var E={classID:"null",baseName:{t:"TEXT",v:"User"},bounds:{t:"Objc",v:{classID:"Rct1",Top:{t:"long",v:0},Left:{t:"long",v:0},Btom:{t:"long",v:0},Rght:{t:"long",v:0}}},slices:{t:"VlLs",v:s.YA}},u=new bm;
g.DU(u,0,8);g.DU(u,4,16);var z=aN.$V(u,E,8);s.wD.r1050=u.data.slice(0,z+8);var u=new bm;g.DU(u,0,16);
var z=aN.$V(u,s.xW,4);s.wD.r1065=u.data.slice(0,z+4);var V=s.N;H=s.wD.r1069=L.B(2+V.length*4,!0);g.yG(H,0,V.length);
for(var C=0;C<V.length;C++)g.ML(H,2+4*C,s.G[V[C]].add.lyid);delete s.wD.r1058;delete s.wD.r1060;if(Object.keys(s.l1).length!=0){var Y=[{t274:[1],t282:[[72,1]],t283:[[72,1]],t296:[2]},{t259:[6],t282:[[72,1]],t283:[[72,1]],t296:[2],t513:[302],t514:[0]}];
bs.Eu(s.l1,Y[0],l[0]&&l[1]);s.wD.r1058=new Uint8Array(UTIF.encode(Y));var d=bs.al4(s.l1);s.wD.r1060=g.iG(d)}var w=[],A=[];
for(var C=0;C<s.sj.length;C++){var $=s.sj[C],i=$.add.vmsk.T;if(C==0&&i.length==2)continue;var K=L.B(i.length*26);
b_.Uk(K,0,i,s.e,s.l);var h=C==0?1025:2e3+C-1;s.wD["r"+h]=K;if(C!=0){w.push({t:"Objc",v:{classID:"pathInfoClass",pathUnicodeName:{t:"TEXT",v:$.name}}});
A.push({t:"Objc",v:{classID:"null",keyDescriptorList:{t:"VlLs",v:$.add.vogk}}})}}if(w.length!=0){s.add.pths={classID:"pathsDataClass",pathList:{t:"VlLs",v:w}};
A={classID:"null",keyRootDescriptorList:{t:"VlLs",v:A}};var u=new bm;g.DU(u,0,16);var z=aN.$V(u,A,4);
s.wD.r3000=u.data.slice(0,z+4)}else{delete s.add.pths;delete s.wD.r3000}F=gv.afp(s,m,F,3+J.length);F=gv.asP(s,m,F);
F=gv.ag9(s,m,F);F=gv.a5v(s,m,F,l,W);F=gv.af3(s,m,F,l[0],W);var N=[1025,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016];
for(var C=0;C<N.length;C++)delete s.wD["r"+N[C]];for(var C=0;C<s.G.length;C++){var P=s.G[C];if(P.Ee()||l[2]&&P.add.SoLd){P.rect=a[C][0];
P.buffer=a[C][1];if(a[C][2]){var j=P.Ao(s);a[C].push(j.buffer);j.buffer=a[C][2]}}}s.pi(S);r.fW.Bp(s,!0);
delete s.Vy;return F};gv.x0=function(s,m,l){var x=g.cS(m,l,4);l+=4;if(x!="8BPS")alert("invalid header signature: "+x);
var a=g.hi(m,l);l+=2;s.Vy=a==2;if(a!=1&&a!=2)alert("invalid version: "+a);l+=6;s.Pa=g.hi(m,l);l+=2;s.l=g.Ji(m,l);
l+=4;s.e=g.Ji(m,l);l+=4;s.Um=g.hi(m,l);l+=2;s.jt=g.hi(m,l);l+=2;return l};gv.afp=function(s,m,l,x){m.bY(0,64);
g.bG(m.data,l,"8BPS");l+=4;g.yG(m.data,l,s.Vy?2:1);l+=2;g.ML(m.data,l,0);l+=4;g.yG(m.data,l,0);l+=2;
g.yG(m.data,l,x);l+=2;g.lV(m.data,l,s.l);l+=4;g.lV(m.data,l,s.e);l+=4;g.yG(m.data,l,8);l+=2;g.yG(m.data,l,3);
l+=2;return l};gv.a0O=function(s,m,l){var x=g.Ji(m,l);l+=4;if(x!=0)s.YL=m.slice(l,l+x);l+=x;return l};
gv.asP=function(s,m,l){g.Tc(m,l,0);l+=4;return l};gv.ahw=function(s,m,l){var x=g.n(m,l),a=0;l+=4;var P=[];
while(a<x){var o=g.cS(m,l+a,4);a+=4;var G=g.hi(m,l+a);a+=2;var _=g.rK(m,l+a);a+=_.length;if(o!="8BIM"){P.push(G);
console.log("Unknown Image Resources signature: "+o+", ID: "+G)}var j=g.n(m,l+a);a+=4;if(s.wD["r"+G]!=null)console.log("--- two resources with same ID");
s.wD["r"+G]=g.MO(m,l+a,j);a+=j+(j&1)}for(var C=0;C<P.length;C++)delete s.wD["r"+P[C]];return l+x};gv.ag9=function(s,m,l){var x=l,o=0;
l+=4;var a=[];for(var P in s.wD){a.push(parseInt(P.slice(1)))}a.sort(function(S,X){return S-X});for(var C=0;
C<a.length;C++){g.Gj(m,l+o,"8BIM");o+=4;var G=a[C];g.h8(m,l+o,G);o+=2;var _=g.PV(m,l+o,"");o+=_;var j=s.wD["r"+G],U=j.length;
g.DU(m,l+o,U);o+=4;g.rp(m,l+o,j);o+=U;if(U%2==1)o++}g.DU(m,x,o);return l+o};gv.asa=function(s,m,l){var x=l,a,P,o=s.Vy?8:4;
if(s.Vy)a=g.Z4(m,l);else a=g.n(m,l);l+=o;if(a==0)return x+o;P=gv.agS(s,m,l);gv.B9(1,P-l,"Layer Info");
l=P;P=gv.a7_(s,m,l);gv.B9(1,P-l,"Global Layer Mask Info");l=P;P=c2.Ed(m,l,x+o+a,s.add,s.Vy,s);gv.B9(1,P-l,"Project Add Info");
l=P;return x+o+a};gv.a5v=function(s,m,l,x,a){var P=l;g.DU(m,l,0);l+=4;if(s.Vy){g.DU(m,l,0);l+=4}l=gv.akN(s,m,l,x,a);
l=gv.a0V(s,m,l);l=c2.be(m,l,s.add,s.Vy,s);if(s.Vy)g.tt(m,P,l-P-8);else g.DU(m,P,l-P-4);return l};gv.agS=function(s,m,l){var x,a=s.Vy?8:4;
if(s.Vy)x=g.Z4(m,l);else x=g.n(m,l);l+=a;if(x!=0)gv.iV(s,m,l);return l+x};gv.iV=function(s,m,l){var x=g._$(m,l);
l+=2;var a=Math.abs(x);for(var C=0;C<a;C++){var P=new t;l=iW.st(P,s,m,l);s.G[C]=P}var o=new bU(0,0,s.e,s.l);
for(var C=0;C<a;C++){var G=s.G[C],_=G.SE(),j=iA.st(G,s,m,l);if(j-l>8)gv.B9(2,j-l,"Lay: "+G.getName());
l=j;gv.zV(G,o);if(_)gv.zV(_,o)}};gv.zV=function(s,m){var l=s.rect.k(),x=s.rect.pF(m),a=x.k()/l;if(l>2e3*3e3&&a<.5){if(s.buffer){var P=L.B(x.k()*4);
L.yx(s.buffer,s.rect,P,x);s.buffer=P;s.rect=x}else{var P=L.B(x.k());L.kV(s.channel,s.rect,P,x);s.channel=P;
s.rect=x}alert("Removing hidden parts of layers")}};gv.akN=function(s,m,l,x,a){var P=l,o=s.Vy;l+=o?8:4;
l=gv.Fp(s,m,l,x,a);var G=l-P-(o?8:4);if(G%2!=0)G++;if(o)g.tt(m,P,G);else g.DU(m,P,G);return P+G+(o?8:4)};
gv.Fp=function(s,m,l,x,a){var P=s.G.length;g.Zt(m,l,a?-P:P);l+=2;var o=[];for(var C=0;C<P;C++)l=iW.cs(s.G[C],s,m,l,o);
for(var C=0;C<P;C++)l=iA.v1(s.Vy,s.G[C],m,l,o[C],x);return l};gv.a7_=function(s,m,l){var x=g.n(m,l);
l+=4;l+=x;return l};gv.a0V=function(s,m,l){var x=g.DU(m,l,0);l+=4;return l};gv.a7z=function(s,m,l){var x=s.jt,a="Bitmap Grayscale Indexed RGB CMYK Multichannel Duotone Lab".split(" "),P=[1,1,1,3,4,1,1,3],o,O;
if(x!=3){if(x==1||x==2||x==4)alert("Project will be converted from "+a[x]+" to "+a[3]+" mode.");else{alert("Color mode "+a[x]+" is not supported yet :(")}}if(s.wD.r1045){o=[];
var G=s.wD.r1045,_=0;while(_<G.length){var j=g.GO(G,_);o.push(j);_+=4+2+j.length*2}}var U=P[x]+(o==null||o[0]=="Transparency"?1:0),S=s.e,X=s.l,c=S*X,y=g.hi(m,l);
l+=2;s.buffer=L.B(c*4);L.MP(s.buffer,4278190080);var p=l;for(var D=0;D<s.Pa;D++){if(y==0){O=iA.Dd(s.Vy,s.Um,m,S,X,l,y);
l+=c*(s.Um>>>3)}else if(y==1){O=L.B(c);var f=s.Vy?4:2;if(D==0)l+=s.Pa*X*f;l+=iA.NM(m,O,S,X,p+D*X*f,l,f)}else{console.log("unknown compression of image data: ",y);
return}if(D<U){L._Y(O,s.buffer,D);if(s.Pa==1&&D==0){L._Y(O,s.buffer,1);L._Y(O,s.buffer,2)}}else{var T=new t.K0,I=D-U,H=D-P[s.jt];
T.name=o?o[H]:"Alpha";if(T.name=="Quick Mask"){T.IU=!0;s.Be.push(I)}T.rect=new bU(0,0,S,X);T.channel=O;
T.color=0;T.zr();s.$_[I]=T;if(s.wD.r1077){var G=s.wD.r1077.slice(4+H*13);T.wI=dr.Eq(G,0);T.iu=G[11];
T._z=G[12];if(T._z==2)T.IU=!0}}}s.Pa=4;if(s.jt==2)for(var C=0;C<c;C++){var b=C*4,R=s.buffer[b];s.buffer[b]=s.YL[0+R];
s.buffer[b+1]=s.YL[256+R];s.buffer[b+2]=s.YL[512+R]}return l};gv.af3=function(s,m,l,x,a){var P=1,o=16,G=s.e,_=s.l,U,S;
g.h8(m,l,P);l+=2;var j=G*_;if(!x){S=new L.KY(G*_);L.ZI(s.buffer,S);var X=S.o,c=S.z,y=S.S,O=S.lz;for(var C=0;
C<j;C++){var p=O[C]*(1/255);X[C]=~~(X[C]*p+255*(1-p));c[C]=~~(c[C]*p+255*(1-p));y[C]=~~(y[C]*p+255*(1-p))}}else U=L.B(j);
var D=[U,U,U];if(!x)D=[S.o,S.z,S.S];if(a)D.push(x?U:S.lz);for(var C=0;C<s.$_.length;C++){D.push(s.$_[C].dG(new bU(0,0,s.e,s.l)))}var f=l;
for(var T=0;T<D.length;T++){m.bY(l,G*_+4);U=D[T];if(P==0||P==2||P==3)l=iA.Bk(s.Vy,U,m.data,G,_,l,P);
else{var I=s.Vy?4:2;if(T==0)l+=D.length*_*I;var H=l;l+=iA.fg(U,m.data,G,_,f+T*_*I,l,I)}}return l};function el(){}el.st=function(s){var m={};
el.GI(s,m,0,0);return m};el.cs=function(s,m){var l=0;l=el.XB(s,m,l,0);return l};el.GI=function(s,m,l,x){while(s[l]!="<".charCodeAt(0))l++;
l+=2;while(!0){if(s[l]=="/".charCodeAt(0)){l++;var a=g.indexOf(s," ".charCodeAt(0),l,l+50),P=g.indexOf(s,"\n".charCodeAt(0),l,l+50);
if(P==-1)P=Infinity;if(a==-1)a=Infinity;var o=Math.min(P,a),G=g.cS(s,l,o-l),_=el.ua(s,o+1,x+1,G);m[G]=_.Z;
l=o+1;l+=_.size}else if(s[l]==">".charCodeAt(0)){l+=2;break}else{var j=s[l];if(j==10||j==9||j==32)l++;
else{console.log("unknown byte: "+j+", char: "+String.fromCharCode(j),l);l++}}}return l};el.XB=function(s,m,l,x){g.Gj(m,l,"<<\n");
l+=3;var a=el.a98;for(var P in s){g.mS(m,l,"\t".charCodeAt(0),x+1);l+=x+1;g.Gj(m,l,"/"+P);l+=1+P.length;
if(a(s[P])||s[P]instanceof Array){g.Gj(m,l," ");l++}else{g.Gj(m,l,"\n");l++;g.mS(m,l,"\t".charCodeAt(0),x+1);
l+=x+1}l=el.HS(s[P],m,l,x+1);g.Gj(m,l,"\n");l++}g.mS(m,l,"\t".charCodeAt(0),x);l+=x;g.Gj(m,l,">>");l+=2;
return l};el.ua=function(s,m,l,x){var a=m,P={size:0,Z:0};while(!0){while(s[m]==" ".charCodeAt(0)||s[m]=="\t".charCodeAt(0)||s[m]=="\n".charCodeAt(0))m++;
if(s[m]=="<".charCodeAt(0)){P.Z={};m=el.GI(s,P.Z,m,l+1);break}else if(s[m]=="(".charCodeAt(0)){m+=3;
var o=m;while(!0){if(s[o-1]!="\\".charCodeAt(0)&&s[o]==")".charCodeAt(0)&&(s[o+1]=="\n".charCodeAt(0)||s[o+1]==" ".charCodeAt(0)))break;
else o++}P.Z=g.iH(s,m,o);m=o+2;break}else if(s[m]=="[".charCodeAt(0)){m++;P.Z=[];while(s[m]==" ".charCodeAt(0)||s[m]=="\t".charCodeAt(0)||s[m]=="\n".charCodeAt(0))m++;
while(s[m]!="]".charCodeAt(0)){var G=el.ua(s,m,l+1,x);P.Z.push(G.Z);m+=G.size;while(s[m]==" ".charCodeAt(0)||s[m]=="\t".charCodeAt(0)||s[m]=="\n".charCodeAt(0))m++}m++;
break}else{var _=g.indexOf(s," ".charCodeAt(0),m,m+50),j=g.indexOf(s,"\n".charCodeAt(0),m,m+50);if(j==-1)j=Infinity;
if(_==-1)_=Infinity;var U=g.cS(s,m,Math.min(_,j)-m).trim(),S=parseFloat(U);if(!isNaN(S)){P.Z=parseFloat(U);
m=Math.min(_,j)+1;break}else if(U=="true"||U=="false"){P.Z=U=="true";m=Math.min(_,j)+1;break}else if(U=="null"||U=="NaN"||U=="undefined"){P.Z=0;
m=Math.min(_,j)+1;break}else{console.log("unknown identifier: "+U);throw"e"}m=Math.min(_,j)+1}}P.size=m-a;
return P};el.HS=function(s,m,l,x){if(s instanceof Array){var a=s.length==0||typeof s[0]=="number";if(a){g.Gj(m,l,"[ ");
l+=2;for(var C=0;C<s.length;C++){var P=s[C]+" ";g.Gj(m,l,P);l+=P.length}g.Gj(m,l,"]");l+=1}else{g.Gj(m,l,"[\n");
l+=2;for(var C=0;C<s.length;C++){g.mS(m,l,"\t".charCodeAt(0),x);l+=x;l=el.HS(s[C],m,l,x);g.Gj(m,l,"\n");
l++}g.mS(m,l,"\t".charCodeAt(0),x);l+=x;g.Gj(m,l,"]");l+=1}}else if(s instanceof Object){l=el.XB(s,m,l,x)}else if(typeof s=="string"){g.Gj(m,l,"(");
l++;g.mS(m,l,254);l++;g.mS(m,l,255);l++;l=g.y4(m,l,s);g.Gj(m,l,")");l+=1}else{var P=s+"";g.Gj(m,l,P);
l+=P.length}return l};el.a98=function(s){var m=typeof s;return m=="string"||m=="number"||m=="boolean"};
function a_(){}a_.st=function(s){var m={};a_.yr(s,m,0,0);return m};a_.cs=function(s,m){var l=0;g.Gj(m,l," ");
l++;l=a_.Lq(s,m,l,0);l--;m.bY(l,2);m.data[l]=m.data[l+1]=0;l+=2;return l};a_.GI=function(s,m,l,x){while(s[l]!="<".charCodeAt(0)){l++;
console.log("\u0161ipka")}l+=2;l=a_.yr(s,m,l,x);return l};a_.XB=function(s,m,l,x){g.Gj(m,l,"<< ");l+=3;
l=a_.Lq(s,m,l,x);g.Gj(m,l,">>");l+=2;return l};a_.vv=function(s){return s==9||s==10||s==32};a_.yr=function(s,m,l,x){while(!0){while(a_.vv(s[l])||s[l]==0)l++;
if(l>=s.length)break;if(s[l]=="/".charCodeAt(0)){l++;var a=l;while(!a_.vv(s[a]))a++;var P=g.cS(s,l,a-l);
l=a+1;var o=a_.ua(s,l,x,P);m["_"+P]=o.Z;l+=o.size}else if(s[l]==">".charCodeAt(0)){l+=2;break}else{var G=s[l];
console.log(g.cS(s,l,l+100));console.log("unknown byte: "+G+", char: "+String.fromCharCode(G)+", offset: "+l);
l++;throw"e";return-1}}return l};a_.Lq=function(s,m,l,x){for(var a in s){var P=a.substring(1,a.length);
g.Gj(m,l,"/"+P);l+=1+P.length;g.Gj(m,l," ");l++;l=a_.HS(s[a],m,l,x+1);g.Gj(m,l," ");l++}return l};a_.ua=function(s,m,l,x){var a=m,P={type:"",size:0,Z:0};
while(a_.vv(s[m]))m++;if(s[m]=="<".charCodeAt(0)){P.type="Object";P.Z={};m=a_.GI(s,P.Z,m,l+1)}else if(s[m]=="(".charCodeAt(0)){P.type="String";
m++;if(s[m]==")".charCodeAt(0)){P.Z="e";m++}else{m+=2;var o=m,G=0;while(!0){if(s[o]==")".charCodeAt(0)&&s[o-1]!="\\".charCodeAt(0))break;
else o+=1}P.Z="s"+g.iH(s,m,o);m=o+2}}else if(s[m]=="[".charCodeAt(0)){m++;P.Z=[];P.type="Array";while(a_.vv(s[m]))m++;
while(s[m]!="]".charCodeAt(0)){var _=a_.ua(s,m,l+1,x);if(_==-1)return-1;P.Z.push(_.Z);m+=_.size;delete _.size;
while(a_.vv(s[m]))m++}m++}else{var j=m;while(!a_.vv(s[j]))j++;var U=g.cS(s,m,j-m),S=parseFloat(U);if(!isNaN(S)&&U.indexOf(".")!=-1){P.type="Float";
var X=parseFloat(U);P.Z="f"+X}else if(!isNaN(S)&&U.indexOf(".")==-1){P.type="Integer";P.Z="i"+parseInt(U)}else if(U=="true"||U=="false"){P.type="Boolean";
P.Z=U=="true"}else if(U.charAt(0)=="/"){P.type="BString";P.Z=U}else if(U=="NaN"){P.type="Float";P.Z="f0"}else{console.log("unknown value",JSON.stringify(U));
throw"e"}m=j+1}P.size=m-a;return P};a_.aqj=function(s){if(s==Math.round(s))return s+".0";var m=s.toFixed(5);
while(m.endsWith("0")&&m[m.length-2]!=".")m=m.slice(0,m.length-1);if(0<s&&s<1)m=m.slice(1);if(-1<s&&s<0)m="-"+m.slice(2);
return m};a_.HS=function(s,m,l,x){var a=typeof s=="string"?s.charAt(0):"";if(s instanceof Array){g.Gj(m,l,"[ ");
l+=2;for(var C=0;C<s.length;C++){l=a_.HS(s[C],m,l,x);g.Gj(m,l," ");l++}g.Gj(m,l,"]");l+=1}else if(s instanceof Object){l=a_.XB(s,m,l,x)}else if(a=="e"){g.Gj(m,l,"()");
l+=2}else if(a=="s"){g.Gj(m,l,"(");l++;g.mS(m,l,254);l++;g.mS(m,l,255);l++;l=g.y4(m,l,s.substring(1));
g.Gj(m,l,")");l++}else if(a=="/"){g.Gj(m,l,s);l+=s.length}else if(a=="f"){var P=parseFloat(s.substring(1)),o=a_.aqj(P);
g.Gj(m,l,o);l+=o.length}else if(a=="i"){g.Gj(m,l,s.substring(1));l+=s.length-1}else{var o=s+"";g.Gj(m,l,o);
l+=o.length}return l};function g(){}g.apz=function(cE){var s="";for(var C=3;C>=0;C--)s+=String.fromCharCode(cE>>C*8&255);
return s};g.a3g=function(s){var cE=0;for(var C=s.length-1;C>=0;C--)cE|=s.charCodeAt(C)<<(3-C)*8;return cE};
g.indexOf=function(s,m,l,x){if(l==null)l=0;if(x==null)x=s.length;x=Math.min(x,s.length);for(var C=l;
C<x;C++)if(s[C]==m)return C;return-1};g.FA=function(s,m,l){if(l==null)l=0;var x=m.length,a=s.length-x;
if(typeof m=="string"){var P=[];for(var C=0;C<x;C++)P.push(m.charCodeAt(C));m=P}if(m.length>0){var o=m[0];
for(var C=l;C<a;C++)if(s[C]==o){var G=!0;for(var _=1;_<x;_++)if(m[_]!=s[C+_]){G=!1;break}if(G)return C}}return-1};
g.iH=function(s,m,l){var x=[],P="";while(m<l){var a=s[m++];if(a=="\\".charCodeAt(0))x.push(s[m++]);else x.push(a)}for(var C=0;
C<x.length;C+=2)P+=String.fromCharCode(x[C]<<8|x[C+1]);return P};g.a9p=function(s,m,l){var x=new Uint8Array(2);
for(var C=0;C<l.length;C++){g.yG(x,0,l.charCodeAt(C));if(x[0]==")".charCodeAt(0)||x[0]=="(".charCodeAt(0)||x[0]=="\\".charCodeAt(0)){s[m]="\\".charCodeAt(0);
m++}s[m]=x[0];m++;if(x[1]==")".charCodeAt(0)||x[1]=="(".charCodeAt(0)||x[1]=="\\".charCodeAt(0)){s[m]="\\".charCodeAt(0);
m++}s[m]=x[1];m++}return m};g.y4=function(s,m,l){s.bY(m,4*l.length);return g.a9p(s.data,m,l)};g.Wi=function(s,m,l){var x="";
for(var C=0;C<l;C++){var a=s[m++]|s[m++]<<8;x+=String.fromCharCode(a)}return x};g.gp=function(s,m,l){var x="";
for(var C=0;C<l;C++){var a=s[m++]<<8|s[m++];x+=String.fromCharCode(a)}return x};g.afd=function(s,m,l){for(var C=0;
C<l.length;C++){var x=l.charCodeAt(C);g.FL(s,m+2*C,x)}};g.dJ=function(s,m,l){for(var C=0;C<l.length;
C++){var x=l.charCodeAt(C);g.yG(s,m+2*C,x)}};g.a4P=function(s,m,l){s.bY(m,2*l.length);g.dJ(s.data,m,l)};
g.aav=function(s,C,m){var l=[],x=0,a=0;m+=C;while(C<m){x=s[C++];if((x&128)==0)a=x;else if((x&224)==192){a=(x&31)<<6;
x=s[C++];a|=x&63}else if((x&240)==224){a=(x&15)<<12;x=s[C++];a|=(x&63)<<6;x=s[C++];a|=x&63}else if((x&248)==240){a=(x&7)<<18;
x=s[C++];a|=(x&63)<<12;x=s[C++];a|=(x&63)<<6;x=s[C++];a|=x&63}else throw"e";l.push(a)}return l};g.V2=window.TextDecoder?new window.TextDecoder("utf8"):null;
g.V_=function(s,m,l){if(m==null)m=0;if(l==null)l=s.length;if(g.V2&&m==0&&l==s.length)return g.V2.decode(s);
var x=g.aav(s,m,l),a=x.length;for(var C=0;C<a;C++)x[C]=String.fromCharCode(x[C]);return x.join("")};
g.oV=window.TextEncoder?new window.TextEncoder("utf8"):null;g.iG=function(s){if(g.oV)return g.oV.encode(s);
var m=new Uint8Array(s.length*4),l=g.v_(s,m,0);return m.slice(0,l)};g.v_=function(s,m,l){var x=s.length,C=0;
for(var a=0;a<x;a++){var P=s.charCodeAt(a);if((P&4294967295-(1<<7)+1)==0){m[l+C]=P;C++}else if((P&4294967295-(1<<11)+1)==0){m[l+C]=192|P>>6;
m[l+C+1]=128|P>>0&63;C+=2}else if((P&4294967295-(1<<16)+1)==0){m[l+C]=224|P>>12;m[l+C+1]=128|P>>6&63;
m[l+C+2]=128|P>>0&63;C+=3}else if((P&4294967295-(1<<21)+1)==0){m[l+C]=240|P>>18;m[l+C+1]=128|P>>12&63;
m[l+C+2]=128|P>>6&63;m[l+C+3]=128|P>>0&63;C+=4}else throw"e"}return C};g.iU=function(s,m){var l=g.n(s,m),x=g.V_(s,m+4,l-1);
return{zd:x,b_:4+l}};g.aqK=function(s,m){var l=g.Cu(s,m),x=g.Wi(s,m+4,l);return x};g.ep=function(s,m){var l=g.n(s,m),x=g.gp(s,m+4,l);
return x};g.GO=function(s,m){var l=g.n(s,m),x=g.gp(s,m+4,l-1);return x};g.alQ=function(s,m,l){g.oT(s,m,l.length);
m+=4;g.afd(s,m,l)};g.ahj=function(s,m,l){g.ML(s,m,l.length);m+=4;g.dJ(s,m,l)};g.Qe=function(s,m,l){s.bY(m,4+2*l.length);
g.ahj(s.data,m,l)};g.ajd=function(s,m,l){s.bY(m,4+2*l.length);g.alQ(s.data,m,l)};g.jp=function(s,m,l){var x=[];
for(var C=0;C<l;C++)x.push(String.fromCharCode(s[m+C]));return x};g.ao4=function(s,m,l){var x=!1,a=s.length-l.length;
for(var C=m;C<a;C++){for(var P=0;P<l.length;P++){if(s[C+P]!=l.charCodeAt(P))break;if(P==l.length-1)return C}}};
g.cS=function(s,m,l){var x="";for(var C=0;C<l;C++)x+=String.fromCharCode(s[m+C]);return x};g.bG=function(s,m,l){for(var C=0;
C<l.length;C++)s[m+C]=l.charCodeAt(C)};g.Gj=function(s,m,l){s.bY(m,l.length);g.bG(s.data,m,l)};g.alm=function(s,m,l){var x="";
for(var C=0;C<l;C++){var a=s[m+C];if(a<10)x+=" ";else if(a<100)x+=" ";x+=a+", "}return x};g.hi=function(s,m){return s[m]<<8|s[m+1]};
g.yG=function(s,m,cE){s[m]=cE>>8&255;s[m+1]=cE&255};g.h8=function(s,m,cE){s.bY(m,4);g.yG(s.data,m,cE)};
g.a6R=function(s,m){var l=g.hi(s,m),x=g.hi(s,m+2);return l+x*(1/65536)};g.U8=function(s,m,cE){var l=Math.floor(cE),x=Math.floor((cE-l)*65536);
g.yG(s,m,l);g.yG(s,m+2,x)};g.CP=function(s,m){return s[m+1]<<8|s[m]};g.FL=function(s,m,cE){s[m+1]=cE>>8&255;
s[m]=cE&255};g.K2=function(s,m,cE){s.bY(m,4);g.FL(s.data,m,cE)};g._$=function(s,m){g.Vu[0]=s[m+1];g.Vu[1]=s[m];
return g.z2[0]};g.B6=function(s,m){g.Vu[0]=s[m];g.Vu[1]=s[m+1];return g.z2[0]};g.UQ=g.yG;g.Zt=g.h8;g.Ji=function(s,m){g.LR[0]=s[m+3];
g.LR[1]=s[m+2];g.LR[2]=s[m+1];g.LR[3]=s[m];return g.Zz[0]};g.lV=function(s,m,cE){g.Zz[0]=cE;s[m+3]=g.LR[0];
s[m+2]=g.LR[1];s[m+1]=g.LR[2];s[m+0]=g.LR[3]};g.Tc=function(s,m,cE){s.bY(m,4);g.lV(s.data,m,cE)};g.LK=function(s,m,l,x){l[x+0]=s[m+0];
l[x+1]=s[m+1];l[x+2]=s[m+2];l[x+3]=s[m+3]};g.Cu=function(s,m){g.LK(s,m,g.LR,0);return g.X1[0]};g.oT=function(s,m,cE){g.X1[0]=cE;
g.LK(g.LR,0,s,m)};g.FH=function(s,m,cE){s.bY(m,4);g.oT(s.data,m,cE)};g.sf=function(s,m){g.LK(s,m,g.LR,0);
return g.Zz[0]};g.asx=function(s,m,cE){g.Zz[0]=cE;g.LK(g.LR,0,s,m)};g.a7k=function(s,m,cE){s.bY(m,4);
g.asx(s.data,m,cE)};g.n=function(s,m){var l=s[m]*(256*256*256)+(s[m+1]<<16|s[m+2]<<8|s[m+3]);return l};
g.ML=function(s,m,cE){s[m]=cE>>24&255;s[m+1]=cE>>16&255;s[m+2]=cE>>8&255;s[m+3]=cE>>0&255};g.DU=function(s,m,cE){s.bY(m,4);
g.ML(s.data,m,cE)};g.Z4=function(s,m){return g.n(s,m)<<32|g.n(s,m+4)};g.ST=function(s,m,cE){g.ML(s,m,cE>>16>>16);
g.ML(s,m+4,cE&4294967295)};g.tt=function(s,m,cE){s.bY(m,8);g.ST(s.data,m,cE)};g.XR=function(s,m){var l=new Uint8Array(8);
for(var C=0;C<8;C++)l[C]=s[m+7-C];var x=new Float64Array(l.buffer);return x[0]};g.PF=function(s,m){var l=new Uint8Array(8);
for(var C=0;C<8;C++)l[C]=s[m+C];var x=new Float64Array(l.buffer);return x[0]};g.TL=function(s,m,cE){var l=new Float64Array(1);
l[0]=cE;var x=new Uint8Array(l.buffer);for(var C=0;C<4;C++){var a=x[C];x[C]=x[7-C];x[7-C]=a}for(var C=0;
C<8;C++)s[m+C]=x[C]};g.hq=function(s,m,cE){s.bY(m,8);g.TL(s.data,m,cE)};g.gq=function(s,m){g.LR[0]=s[m+3];
g.LR[1]=s[m+2];g.LR[2]=s[m+1];g.LR[3]=s[m+0];return g._F[0]};g.w3=function(s,m){g.LR[0]=s[m+0];g.LR[1]=s[m+1];
g.LR[2]=s[m+2];g.LR[3]=s[m+3];return g._F[0]};g.o1=function(s,m,cE){g._F[0]=cE;s[m+0]=g.LR[3];s[m+1]=g.LR[2];
s[m+2]=g.LR[1];s[m+3]=g.LR[0]};g.a8R=function(s,m,cE){s.bY(m,4);g.o1(s.data,m,cE)};g.i8=function(s,m,cE){g._F[0]=cE;
s[m+0]=g.LR[0];s[m+1]=g.LR[1];s[m+2]=g.LR[2];s[m+3]=g.LR[3]};g.a7$=function(s,m,cE){s.bY(m,4);g.i8(s.data,m,cE)};
g.arK=function(s,m){var l=g.Ji(s,m),x=l*(1/(1<<24));return x};g.ZZ=function(s,m,l){var x=Math.floor(l*(1<<24));
g.lV(s,m,x)};g.ady=function(s,m,l){s.bY(m,4);g.ZZ(s.data,m,l)};g.rK=function(s,m){var l=s[m],x=g.cS(s,m+1,l);
l+=1-l%2;return{sp:x,length:l+1}};g.a2$=function(s,m,l){var x=l.length;s[m]=x;g.bG(s,m+1,l);if(x%2==0){s[m+1+x]=0;
++x}return x+1};g.PV=function(s,m,l){s.bY(m,l.length+2);return g.a2$(s.data,m,l)};g.r7=function(s,m){var l=new ae;
l.lz=g.XR(s,m+0*8);l.S=g.XR(s,m+1*8);l.In=g.XR(s,m+2*8);l.Am=g.XR(s,m+3*8);l.sI=g.XR(s,m+4*8);l.bW=g.XR(s,m+5*8);
return l};g.n2=function(s,m,l){g.TL(s,m+0*8,l.lz);g.TL(s,m+1*8,l.S);g.TL(s,m+2*8,l.In);g.TL(s,m+3*8,l.Am);
g.TL(s,m+4*8,l.sI);g.TL(s,m+5*8,l.bW)};g.a6$=function(s,m,l){s.bY(m,48);g.n2(s.data,m,l)};g.ak3=function(s,m){var l=g.gq(s,m),x=g.gq(s,m+4),a=g.gq(s,m+8),P=g.gq(s,m+12);
return new bU(l,x,a-l,P-x)};g.aq7=function(s,m,l){g.o1(s,m,l.x);g.o1(s,m+4,l.y);g.o1(s,m+8,l.x+l.e);
g.o1(s,m+12,l.y+l.l)};g.a1x=function(s,m,l){s.bY(m,16);g.aq7(s.data,m,l)};g.T8=function(s,m){var l=g.Ji(s,m),x=g.Ji(s,m+4),a=g.Ji(s,m+8),P=g.Ji(s,m+12);
return new bU(x,l,P-x,a-l)};g.nH=function(s,m,l){g.lV(s,m,l.y);g.lV(s,m+4,l.x);g.lV(s,m+8,l.y+l.l);g.lV(s,m+12,l.x+l.e)};
g.Cg=function(s,m,l){s.bY(m,16);g.nH(s.data,m,l)};g.MO=function(s,m,l){var x=new Uint8Array(l);for(var C=0;
C<l;C++)x[C]=s[m+C];return x};g.OX=function(s,m,l){s.set(l,m)};g.rp=function(s,m,l){s.bY(m,l.length);
g.OX(s.data,m,l)};g.asG=function(s,m,l,cE){if(!cE)cE=1;for(var C=0;C<cE;C++)s[m+C]=l};g.mS=function(s,m,l,cE){if(!cE)cE=1;
s.bY(m,cE);g.asG(s.data,m,l,cE)};g.z2=new Int16Array(1);g.Vu=new Uint8Array(g.z2.buffer);g.Zz=new Int32Array(1);
g.X1=new Uint32Array(g.Zz.buffer);g.LR=new Uint8Array(g.Zz.buffer);g._F=new Float32Array(g.Zz.buffer);
function gG(){}gG.st=function(s,m){var l=new Uint8Array(s),x=0,a=g.cS(l,x,9),G=4,_=100;x+=9;var P=g.cS(l,x,4);
x+=4;x++;m.e=g.n(l,x);x+=4;m.l=g.n(l,x);x+=4;var o=g.n(l,x);x+=4;if(o!=0)alert("Unsupported image format, not RGB!");
if(["file","v001","v002","v003"].indexOf(P)==-1){_=g.n(l,x);x+=4;if(parseInt(P.slice(1))>=7){_=_}else alert("Unknown XCF version: "+P);
G=8}var j={};x=gG.vG(l,x,j);var U=[];x=gG.cC(l,x,U,G);var S=[];x=gG.cC(l,x,S,G);m.Fn=0;for(var C=0;C<U.length;
C++)gG.anW(l,U[C],m,j,G,_);while(m.Fn>0){m.G.push(m.b8());m.Fn--}m.G.reverse();delete m.Fn;m.buffer=L.B(m.e*m.l*4);
if(m.G.length==0)console.log("No layers!!!");for(var C=0;C<S.length;C++){var X=gG.ZU(l,S[C],j,G,_);if(X.L1[ed.aoj])m.q={channel:X.Jv,rect:new bU(0,0,m.e,m.l)}}};
gG.anW=function(s,m,l,x,a,P){var o=l.d2(),G=g.n(s,m),S=0;m+=4;var _=g.n(s,m);m+=4;o.rect=new bU(0,0,G,_);
var j=g.n(s,m);m+=4;var U=g.iU(s,m);m+=U.b_;o.qW(U.zd);var X={};m=gG.vG(s,m,X);if(X[ed.yc]){var c=X[ed.yc];
S=c.length/4-1}if(X[ed.fp]){o.rect.x=g.Ji(X[ed.fp],0);o.rect.y=g.Ji(X[ed.fp],4)}if(X[ed.V4]){o.opacity=g.n(X[ed.V4],0)}if(X[ed.alK]){o.add.lsct=hN.yF;
o.rect=new bU(0,0,0,0);o.buffer=L.B(0);o.Yy=24}if(X[ed.Fs]){var y=g.n(X[ed.Fs],0);o.TR=ed.aoy[y];if(o.gu()&&o.TR=="norm")o.TR="pass"}if(X[ed.NL]){if(g.n(X[ed.NL],0)==0)o.Yy+=2}if(X[ed.jA]){var O=g.n(X[ed.jA],0);
o.add.lsct=O&1==1?hN.yF:hN.fs}if(X[ed.V8]){var p=X[ed.V8];for(var D in p){var f=p[D];if(D=="gimp-text-layer"){var T=gG.a3$(f),I=T.text,H=T.font,b=T.color,R=T["font-size"];
if(I==null&&T.markup){var W=new DOMParser,J=W.parseFromString(T.markup,"image/svg+xml");while(J.firstChild!=null&&J.firstChild.tagName!=null){J=J.firstChild;
var u=J.getAttribute("font"),e=J.getAttribute("foreground"),Q=J.getAttribute("size");if(u!=null)H=u;
if(e!=null){e=CSS.Eq(e);b=[1,e.o/255,e.z/255,e.S/255]}if(Q!=null){R=""+parseFloat(Q)/245}}I=J.textContent}o.add.lnsr="rend";
o.add.TySh=ex.mA(0,0);o.add.TySh.fn=new bU(0,0,100,100);o.add.TySh.A=new ae(1,0,0,1,o.rect.x,o.rect.y);
var q=o.add.TySh.x5;ex.A6(q,0,I);var Z=ex.f9(q,0,0),E=T.justify,z=T["line-spacing"];if(b)Z.m$.FillColor={Type:1,Values:[1,parseFloat(b[1]),parseFloat(b[2]),parseFloat(b[3])]};
if(R){R=Math.round(parseFloat(R));Z.m$.FontSize=R;o.add.TySh.A.bW+=Math.min(17,R*.17)}if(z){z=Math.round(parseFloat(z)+Z.m$.FontSize*1.2);
Z.m$.Leading=z;Z.m$.AutoLeading=!1}if(E)Z.AO.Justification=["left","right","center","fill"].indexOf(E);
if(H&&H!="Sans-serif"){var V=H.toLowerCase(),Y="bold italic semi extra regular condensed light".split(" "),d=V.length;
for(var C=0;C<Y.length;C++){var w=V.indexOf(Y[C]);if(w!=-1&&w<d&&V[w-1]==" ")d=w}if(d!=V.length)H=H.slice(0,d-1).split(" ").join("")+"-"+H.slice(d).split(" ").join("");
ex.Cl(Z,H)}ex.j3(q,0,I.length,Z);var A=T["box-width"],$=T["box-height"],i=A?parseFloat(A):o.rect.e,K=$?parseFloat($):o.rect.l;
ex.c8(q,1);ex.rI(q,[0,0,Math.ceil(i),Math.ceil(K)])}else console.log("Unknown property "+D)}}while(l.Fn>S){l.G.push(l.b8());
l.Fn--}l.Fn=S;if(o.add.lsct==hN.yF||o.add.lsct==hN.fs)l.Fn++;var h=a==4?g.n:g.Z4;if(o.Kg()){o.buffer=L.B(o.rect.k()*4);
var F=new L.KY(o.rect.k()),N=h(s,m);m+=a;var iQ=h(s,m);m+=a;gG.Jc(s,N,F,x,a,P);L.aC(F,o.buffer);if(iQ!=0){o.v=new t.K0;
o.v.color=0;o.v.rect=o.rect.clone();o.v.channel=gG.ZU(s,iQ,x,a,P).Jv;if(X[ed.kZ])o.v.isEnabled=g.n(X[ed.kZ],0)==1}}l.G.push(o)};
gG.a3$=function(s){var m="("+g.V_(s,0,s.length-1)+")",l=[],x={};gG.mk(m,1,l);gG.aqP(l,x);return x};gG.aqP=function(s,m){for(var C=0;
C<s.length;C++){var l=s[C],x=l[0];if(l.length==2)m[x]=l[1];else m[x]=l.slice(1)}};gG.mk=function(s,m,l){while(!0){if(m>=s.length)throw"e";
var x=s.charAt(m);m++;if(x=="("){var a=[];m=gG.mk(s,m,a);l.push(a)}else if(x==" "||x=="\n"||x=="\r"){}else if(x==")")return m;
else if(x=="\""){var P=m;while(!0){var o=s[m];m++;if(o=="\"")break;if(o=="\\")m++}l.push(JSON.parse(s.slice(P-1,m)))}else{var P=m-1;
while(s[m]!=" "&&s[m]!=")")m++;l.push(s.slice(P,m))}}};gG.ZU=function(s,m,l,x,a){var P=g.n(s,m);m+=4;
var o=g.n(s,m);m+=4;var G=g.iU(s,m);m+=G.b_;var _={};m=gG.vG(s,m,_);var j=new L.KY(P*o),U=x==4?g.n:g.Z4,S=U(s,m);
m+=x;gG.Jc(s,S,j,l,x,a);return{Jv:j.o,L1:_}};gG.Jc=function(s,m,l,x,a,P){var o=g.n(s,m);m+=4;var G=g.n(s,m);
m+=4;var _=g.n(s,m);m+=4;var j=a==4?g.n:g.Z4,U=j(s,m);m+=a;gG.aks(s,U,l,x,_,a,P)};gG.aks=function(s,m,l,x,a,P,o){var G=g.n(s,m),U=0,C=0;
m+=4;var _=g.n(s,m);m+=4;var j=new bU(0,0,G,_);if(o==100||o==150)U=1;else if(o==200||o==250)U=2;else if(o==300||o==350)U=4;
else if(o==500||o==550)U=2;else if(o==600||o==650)U=4;else if(o==700||o==750)U=8;else{alert("unsupported bit depth "+o);
throw"e"}var S=a/U,U=Math.round(a/S),X=[];m=gG.cC(s,m,X,P);var c=new L.KY(64*64*U),y=new bU,O=x[ed.ani][0],p=[c.o,c.z,c.S,c.lz];
if(S==3)c.lz.fill(255);var D=Date.now();for(var f=0;f<_;f+=64)for(var T=0;T<G;T+=64){var I=Math.min(G-T,64),H=Math.min(_-f,64),b=I*H;
y.Qk(T,f,I,H);gG.adV(s,X[C++],b*U,O,S,p);if(o==100||o==150){}else if(o==250){for(var R=0;R<S;R++){var W=p[R];
for(var J=0;J<b;J++){var u=W[J]<<8|W[b+J];W[J]=Math.min(u>>>8,255)}}}else if(o==600){var e=gG.akm(),Q=new Uint32Array(1),q=new Float32Array(Q.buffer);
for(var R=0;R<S;R++){var W=p[R];for(var J=0;J<b;J++){Q[0]=W[J]<<24|W[b+J]<<16|W[(b<<1)+J]<<8|W[(b<<1)+b+J]<<0;
var Z=q[0];if(Z<0)Z=0;else if(Z>1)Z=1;W[J]=e[~~(.5+Z*1e3)]}}}else console.log("unknown data format",o);
L.Ld(c,y,l,j)}};gG.akm=function(){var s=gG.at$;if(s!=null)return s;s=gG.at$=new Uint8Array(1001);for(var C=0;
C<1001;C++)s[C]=~~(.49+255*L.WF(C*.001));return s};gG.adV=function(s,m,l,x,a,P){if(x==1){for(var o=0;
o<a;o++){var G=P[o],_=0;while(_<l){var cE=s[m];m++;if(cE<127){var j=s[m];m++;cE++;for(var C=0;C<cE;C++)G[_+C]=j}else if(cE==127){var U=s[m];
m++;var S=s[m];m++;var j=s[m];m++;cE=U<<8|S;for(var C=0;C<cE;C++)G[_+C]=j}else if(cE==128){var U=s[m];
m++;var S=s[m];m++;cE=U<<8|S;for(var C=0;C<cE;C++)G[_+C]=s[m+C];m+=cE}else{cE=256-cE;for(var C=0;C<cE;
C++)G[_+C]=s[m+C];m+=cE}_+=cE}}}else if(x==2){var X=pako.inflate(s.slice(m)),c=Math.round(X.length/l);
for(var C=0;C<l;C++){var y=C*c;P[0][C]=X[y];P[1][C]=X[y+1];P[2][C]=X[y+2];P[3][C]=c==3?255:X[y+3]}}else alert("Unknown compression "+x)};
gG.cC=function(s,m,l,x){var a=x==4?g.n:g.Z4;while(!0){var P=a(s,m);m+=x;if(P==0)break;else l.push(P)}return m};
gG.vG=function(s,m,l){while(!0){var x=g.n(s,m);m+=4;var a=g.n(s,m);m+=4;if(x==ed.anK)break;else if(x==ed.V8)l[x]=gG.a8J(s,m,m+a);
else l[x]=g.MO(s,m,a);m+=a}return m};gG.a8J=function(s,m,l){var x={};while(m<l){var a=g.iU(s,m);m+=a.b_;
var P=g.n(s,m);m+=4;if(P!=1)console.log("unknown flags",P);var o=g.n(s,m);m+=4;x[a.zd]=g.MO(s,m,o);m+=o}return x};
var ed={anK:0,aeK:1,afy:2,aa4:3,aoj:4,aqQ:5,V4:6,Fs:7,NL:8,a2Q:9,afG:10,kZ:11,aph:12,a1y:13,ao2:14,fp:15,a8B:16,ani:17,akg:18,a7H:19,au2:20,V8:21,afK:22,ams:23,aoT:24,a3l:25,ame:26,apc:27,alG:28,alK:29,yc:30,jA:31,ahg:32,arL:33,abx:34,ae9:35,a9f:36,agy:37,akO:38,at8:0,ahu:1,adn:2,aeH:3,arx:1,ajY:2,a34:0,a2x:1,a5U:1};
ed.aoy="norm,diss,norm,mul ,scrn,over,diff,lddg,fsub,dark,lite,hue ,sat ,colr,lum ,fdiv,lddg,idiv,hLit,sLit,fdiv,pLit,norm,over,hue ,hue ,colr,lite,norm,norm,mul ,scrn,diff,lddg,fsub,dark,lite,hue ,sat ,colr,lum ,fdiv,lddg,idiv,hLit,sLit,fdiv,pLit,vLit,pLit,lLit,hMix,smud,lbrn,lum ,lum ,lum ,lum ,norm,norm,norm,pass".split(",");
var ah=function(){var s=!1,m,l,T;function x(){var b=g.cS(m,l,4);l+=4;return b[3]+b[2]+b[1]+b[0]}function a(){var b=g.cS(m,l,4);
l+=4;return b}function P(){var b=m[l];l+=1;return b}function o(){var b=g.CP(m,l);l+=2;return b}function G(){var b=g.Cu(m,l);
l+=4;return b}function _(){var b=g.sf(m,l);l+=4;return b}function j(){var b=g.Cu(m,l);l+=8;return b}function U(){var b=g.w3(m,l);
l+=4;return b}function S(){var b=g.PF(m,l);l+=8;return b}function X(){var b=g.CP(m,l),R=g.V_(m,l+2,b);
l+=2+b;return R}function c(){var b=g.Cu(m,l),R=g.V_(m,l+4,b);l+=4+b;return R}function y(b){l=b;var R=[];
while(l!=0){var W=a();if(W!="#FT4"&&W!="#FT3"&&W!="#FT2")throw W;var J=j(),u=j(),e=j(),Q=j(),q=j(),Z=G(),E=G(),z=G(),V=o(),Y=P(),d={};
R.push(d);for(var C=0;C<Z;C++){var w=G(),A=P();if(A!=0&&A!=1&&A!=2)throw A;var $=[];if(A==0||A==1){var i=j(),K=j(),h=j(),F=G(),N=P(),iQ=G(),jB=W!="#FT4"?0:G(),k=null;
if(W=="#FAT"||W=="#FT2"){switch(N){case 1:N=1;break;case 2:N=65;break;case 3:N=129;break;case 4:N=193;
break;default:N=0;break}}if(A==0)k=X();$=[i,K,h,N,k]}d["i"+w]=[A,$]}for(var C=0;C<V;C++){var ab=o(),f_=o(),fc=j(),g8=g.cS(m,l,ab);
l+=ab}l=J}R.reverse();for(var bH=1;bH<R.length;bH++){var d=R[bH],cR=R[bH]=JSON.parse(JSON.stringify(R[bH-1]));
for(var hr in d){var h$=d[hr];if(h$[0]==0)cR[hr]=h$;else if(h$[0]==1){h$[1][4]=cR[hr][1][4];cR[hr]=h$}else if(h$[0]==2)delete cR[hr]}}var gE=R.pop(),d8=[];
for(var hr in gE)d8.push(gE[hr][1]);d8.sort(function(hG,f7){return hG[0]-f7[0]});return d8}function O(b,R,W,J){while(l<m.length){var u=P(),Z=null;
if(u==0){if(J){var e=P();if(e!=2){var Q=x()}if(e==0)l+=4;J=!1;continue}else{break}}var q=x();if(s)console.log(" ".repeat(R),u,u&127,q,b._type);
if(u>127)Z=p(u,R,W);else Z=D(u,R,W);b[q]=Z}}function p(b,R,W){var J=[];b=b&127;if(b==43)l+=4;var u=G();
if(b==50){var e=x(),Q=o();if(Q!=1)throw"e";for(var C=0;C<u;C++){var q={_status:"NotShared",_type:e};
J.push(q);var Z=P();if(Z!=1)throw Z;O(q,R+1,W)}}else for(var C=0;C<u;C++){J.push(D(b,R,W));if(b==42)b=2}return J}function D(b,R,W){var J=null;
if(b==49){J={};var u=P();if(u!=0){var e=G();if(W==null){J._id=e;J._status=["Shared","Link"][u-1]}if(W&&u==2)J=W[e];
if(u==1){if(W)W[e]=J;var Q=P(),q=!1;if(Q>1)throw Q;J._type=x();if(s)console.log(" ".repeat(R),"new",J._type,Q,l);
if(Q==0){while(!0){var Z=o();if(Z!=0&&Z!=1&&Z!=2&&Z!=4)throw Z;if(m[l]!=0){q=!0;break}var E=o();if(E==512)break;
var z=x();if(E==256)break}}O(J,R+1,W,q)}}}else if(b==50){J={_status:"NotShared"};if(P()==1){J._type=x();
l+=2;O(J,R+1,W)}}else if(b==1)J={type:"byte",value:P()};else if(b==2)J={type:"uint16",value:o()};else if(b==3)J={type:"uint32",value:G()};
else if(b==4)J={type:"uint64",value:j()};else if(b==7)J={type:"int32",value:_()};else if(b==8)J={type:"int64",value:j()};
else if(b==9)J={type:"float32",value:U()};else if(b==10)J={type:"float64",value:S()};else if(b==21)J={type:"Vec2i",value:[G(),G()]};
else if(b==23)J={type:"Vec4i",value:[G(),G(),G(),G()]};else if(b==33)J={type:"Vec4f",value:[U(),U(),U(),U()]};
else if(b==36)J={type:"Vec2",value:[S(),S()]};else if(b==38)J={type:"Vec4",value:[S(),S(),S(),S()]};
else if(b==40)J={type:"Vec6",value:[S(),S(),S(),S(),S(),S()]};else if(b==41)J={type:"bool",value:P()!=0};
else if(b==42)J={type:"Enum",value:G()};else if(b==43)J={type:"string",value:c()};else if(b==44){var V=o();
J={type:"curv16",value:[S(),V==12?[P(),P(),P(),P()]:[G(),G()]]}}else if(b==45){var V=G();J={type:"buff",value:m.slice(l,l+V)};
l+=V}else if(b==47){J={type:"uint32",value:G()}}else if(b==48){var Y=[],d=o();if(d!=1)throw d;if(m[l]==135){var w=p(P(),R+1,W),A=p(P(),R+1,W),$=p(P(),R+1,W);
Y=[w,A,$]}else{var i=1;if(m[l]==3){P();i=G()}for(var C=0;C<i;C++){if(P()!=41)throw"e";var e=P();if(e!=0&&e!=1)throw e;
if(P()!=172)throw"e";var K=G(),h=o(),F=[];Y.push(F);if(h!=18)throw h;if(K>2e3)throw K;for(var N=0;N<K;
N++)F.push([S(),S(),P(),P()])}}l++;J={type:"curve",value:Y}}else if(b==51){J={type:"EmbeddedData"};J[x()]=c()}else if(b==52)J={type:"uint32",value:G()};
else if(b==56)J={type:"Color32",value:[P(),P(),P(),P()]};else if(b==68)J={type:"ColorRGBA",value:[U(),U(),U(),U()]};
else if(b==72)J={type:"ColorCMYK",value:[U(),U(),U(),U(),U()]};else{throw b}return b==49||b==50||b==51?J:J.value}function f(b){var R=0,W=b.length;
for(var C=0;C<W;C++)b[C]=R=R+b[C]&255}function I(b){m=b;l=4;var R=G(),W=a();if(W!="nsrP")throw W;var W=a();
if(W!="#Inf")throw W;var J=j();T=j();var u=j(),e=j(),Q=j(),q=G(),Z=G(),W=a();if(W!="Prot")throw W;var q=G(),E=y(J),z={},V=Date.now();
for(var Y=0;Y<E.length;Y++){var d=E[Y],w=d[3],h=null;l=d[0];var W=a();if(W!="#Fil")throw W;var A=w>>>5&1,$=w&3,i=w&192;
switch(i){case 64:i=1;A=0;break;case 128:i=2;break;case 192:i=3;break;default:i=0;A=0}var K=new Uint8Array(m.buffer,l,d[2]);
if($==0)h=K;else if($==1)h=pako.inflate(K);else if($==2)h=iO.Ua.XX(K,d[1]);else throw $;if(A==0){if(i==1)f(h);
if(i==2)throw"e"}else throw A;z[d[4]]=h}return z}function H(b){var R=I(new Uint8Array(b));m=R["doc.dat"];
l=16;var W={};O(W,0,[]);return[R,W,T]}return{af8:H}}();function gs(){}gs.st=function(){function s(c,y){var O=Date.now(),p=ah.af8(c),D=p[0],f=p[1],T=p[2],I=f.DocR,H=I.DfSz,b=I.Chld;
if(b.length!=1)throw"e";var R=b[0],W=R.SprB;b=R.Chld;y.e=~~W[2];y.l=~~W[3];y.buffer=L.B(y.e*y.l*4);var J=[0,{}];
for(var C=0;C<b.length;C++)a(b[C],y,D,new ae,J);y.Gp(J[0]);console.log(Date.now()-O,"Document created");
O=Date.now()}function m(c){return new ae(c[0],c[3],c[1],c[4],c[2],c[5])}function l(c,y){var O=y.Xfrm;
O=O?m(O):new ae;O.concat(c);return O}function x(c){var y={0:"norm",1:"dark",2:"mul ",3:"idiv",196613:"lbrn",65538:"dkCl",4:"lite",5:"scrn",6:"div ",7:"lddg",65542:"lgCl",8:"over",9:"sLit",10:"hLit",11:"vLit",65551:"lLit",12:"pLit",13:"hMix",14:"diff",15:"smud",16:"fsub",262165:"fdiv",17:"hue ",18:"sat ",20:"colr",19:"lum "}[c];
return y?y:"norm"}function a(c,y,O,p,D){var f=c._type,T=c.Chld,I=y.d2();I.qW(c.Desc==null||c.Desc==""?f=="Grup"?"Folder":"Layer":c.Desc);
I.tG(c.Visi);I.opacity=Math.round(255*c.Opac);if(c.FOpc!=1)I.add.iOpa=Math.round(255*c.FOpc);var H=c.Blnd;
if(H!=null)I.TR=x(H);var b=l(p,c),R=f=="ShpN"||f=="PCrv";if(T){y.G.push(y.b8());I.add.lsct=hN.yF;I.TR="pass";
I.Yy=24;if(f=="ShpN"){var W=c.ShpB;I.Kp(new bU(W[0]+b.sI,W[1]+b.bW,W[2]-W[0],W[3]-W[1]));D[0]++;I.add.artb.Clr={t:"Objc",v:L.K.gc({o:255,z:255,S:255})}}for(var C=0;
C<T.length;C++)a(T[C],y,O,b,D)}else if(f=="Rstr"||f=="ImgN"||f=="MRst"){var J=c.Bitm,u=J.Bckg,e=Date.now(),Q;
if(u==null){Q=j(J,O,D[1]);I.rect=Q[2].clone();I.buffer=Q[1].slice(0);I.rect.x+=b.sI;I.rect.y+=b.bW}if(u||b.LL()!=1){var q,Z=0,E=0;
if(u){var z=O[u.Data],V=g.FA(z,"ataD")+4,Y=g.Cu(z,V);V+=4;q=z.slice(V,V+Y)}else{Z=I.rect.x-b.sI;E=I.rect.y-b.bW;
if(Q[3]==null)Q[3]=new Uint8Array(iO.ln("PNG").yd([[I.buffer.buffer]],I.rect.e,I.rect.l));q=Q[3].slice(0)}var d=y.PZ(q,I.getName(),0,0);
d.Yy=I.Yy;d.opacity=I.opacity;I=d;var w=new ae;w.translate(Z,E);w.concat(b);var A=I.rect.clone();A.x=A.y=0;
var $=L.H.$$(A).s;L.H.A($,w,$);I.add.SoLd.Trnf=r.Q.ZG($);I.add.SoLd.nonAffineTransform=r.Q.ZG($);I.y2(y,!1)}}else if(f=="TxtA"||f=="TxtF"){I.add.lnsr="rend";
I.add.TySh=ex.mA(0,0);I.add.TySh.fn=new bU(0,0,100,100);var i=c.TxtH.FrmB,K=new ae,iQ=0;K.translate(i[0],i[1]);
K.concat(b);I.add.TySh.A=K;var h=I.add.TySh.x5,F=c.StSt,N=F.Blok;if(N.length!=1)throw"e";for(var jB=0;
jB<N.length;jB++){var k=N[jB],ab=iQ,f_=0,fc=k.Glyp.Utf8;fc=fc.replace(/\u2028/g,"\n");fc=fc.replace(/\u2029/g,"\n");
fc=fc.slice(0,fc.length-1);ex.A6(h,iQ,fc);iQ+=fc.length;var g8=k.GAtt.Runs,bH=k.PAtt.Runs[0],cR=bH.Item.Ints[0];
for(var hr=0;hr<g8.length;hr++){var h$=g8[hr],gE=h$.Indx,d8=h$.Item,hG=d8.Objs,f7=ex.f9(h,ab,1);f7.AO.Justification=cR==0?0:cR==1?2:1;
ex.Cl(f7,d8.DFnt.Post);f7.m$.FontSize=d8.Doub[0];for(var C=0;C<hG.length;C++){var hX=hG[C];if(hX._type=="FDsc"){var fB=hX.FDeF;
if(fB._type=="FilS"){var e5=_(fB.Colr);f7.m$.FillColor={Type:1,Values:[1,e5[0],e5[1],e5[2]]}}}}ex.j3(h,ab+f_,ab+Math.min(gE,fc.length),f7);
f_=gE}}ex.c8(h,1);ex.rI(h,[0,0,Math.round(i[2]-i[0]),Math.round((i[3]-i[1])*1.2)]);y.VK=!0}else if(R){I.Yy|=16;
var g9=I.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));I.add.vstk.strokeEnabled.v=!1;I.add.vogk=[];
var cL=I.add.vmsk=P(c);L.j.G9(cL.T,b);if(c.BFFl){var bf=c.BFFl[0].FDeF,gF=bf._type;if(gF=="FilS")I.add.SoCo={classID:"null",Clr:G(bf.Colr)};
else if(gF=="FilG"){var iC=I.add.GdFl=JSON.parse(i4.Ej[i4.order.indexOf("GrFl")]);o(bf,iC)}else if(gF=="FilN"){I.add.SoCo={classID:"null",Clr:{t:"Objc",v:L.K.gc({o:0,z:0,S:0})}};
g9.fillEnabled.v=!1}else console.log(gF)}if(c.LILn){var ax=c.LILn[0].LDeL,e7=ax.Wght;if(e7!=0){g9.strokeEnabled.v=!0;
g9.strokeStyleLineWidth.v.val=e7;var bf=c.LIFl[0].FDeF,gF=bf._type;if(gF=="FilS")g9.strokeStyleContent.v.Clr=G(bf.Colr);
else if(gF=="FilN")g9.strokeEnabled.v=!1}}I.sN(y)}else console.log(f);var dO=c.AdCh,h1=[];if(dO)for(var C=0;
C<dO.length;C++){var hL=dO[C],jl=hL._type;if(jl=="ShpN"||jl=="PCrv"){var cL=I.add.vmsk=P(hL),gT=l(b,hL);
L.j.G9(cL.T,gT);I.sN(y)}else if(hL.AdjP){var hZ=hL.AdjP,j6=hZ._type,aP={LevP:"levl",WhBP:"levl",SHiP:"curv",HSSP:"hue2",RecP:"hue2","B&WP":"blwh","B&CP":"brit",PosP:"post",VibP:"vibA",ExpP:"expA",ThrP:"thrs",CrvP:"curv"}[j6];
if(aP==null){console.log(hZ);continue}var h7=ib.k$(aP,{});h1.push(h7);var fa=h7.v.Fltr.v;if(j6=="LevP"){var h4=gy.qG(fa,0);
h4[0]=hZ.OutB*255;h4[1]=hZ.OutW*255;gy.r3(fa,0,h4)}else if(j6=="WhBP"){var h4=gy.qG(fa,2);h4[4]=100+hZ.WBTi*20;
gy.r3(fa,2,h4);var h4=gy.qG(fa,3);h4[4]=100+hZ.WBTi*200;gy.r3(fa,3,h4)}else if(j6=="HSSP"){var h4=aX.qG(fa,0);
h4[0]=Math.round(hZ.HueA*256);h4[1]=Math.round(hZ.SatA*256);h4[2]=Math.round(hZ.LumA*256);aX.r3(fa,0,h4)}else if(j6=="RecP"){fa.Clrz.v=!0;
var h4=aX.qG(fa,0);h4[0]=Math.round(hZ.RecH*100);h4[1]=Math.round(hZ.RecS*100);h4[2]=Math.round(hZ.RecL*100);
aX.r3(fa,0,h4)}else if(j6=="B&CP"){fa.Brgh.v=Math.round(hZ.Brig*100);fa.Cntr.v=Math.round(hZ.Ctrs*100-100)}else if(j6=="PosP"){fa.Lvls.v=hZ.Post}else if(j6=="VibP"){fa.vibrance.v=hZ.Vibr-100;
fa.Strt.v=Math.round(hZ.Satu*100)}else if(j6=="ExpP"){fa.Exps.v=hZ.Expo;fa.gammaCorrection.v=hZ.Gamm/2.2}else if(j6=="ThrP"){fa.Lvl.v=Math.round(hZ.Thre*255)}else if(j6=="CrvP"){var cA=hZ.Mast["Cnt "],jg=hZ.Mast.Vals,h4=fx.qG(fa,0),cS=h4[0];
for(var iT=0;iT<cA;iT++){var cf=h4[iT]=JSON.parse(JSON.stringify(cS));cf.v.Hrzn.v=Math.round(jg[iT]*255);
cf.v.Vrtc.v=Math.round(jg[4+iT]*255)}fx.r3(fa,0,h4)}}else console.log(hL)}if(h1.length!=0){I.add.SoLd.filterFX=ib.yo();
y.Vi({id:I.add.SoLd.placed.v,rect:new bU,buffer:L.B(1),v:new t.K0});I.add.SoLd.filterFX.v.filterFXList.v=h1;
I.y2(y,!1)}var ir=c.FiEf;if(ir&&ir.length!=0){var bl=I.add.lmfx=JSON.parse(i4.default);for(var C=0;C<i4.order.length;
C++)bl[i4.rm[C]]={t:"VlLs",v:[]};for(var gp=0;gp<ir.length;gp++){var j4=ir[gp],ey=j4._type,ca={ColO:"SoFi",GrdO:"GrFl",Shad:"DrSh",InnS:"IrSh",OutG:"OrGl",InnG:"IrGl",Strk:"FrFX",PhgB:"ebbl",BevE:"ebbl"}[ey],iC=ca?JSON.parse(i4.Ej[i4.order.indexOf(ca)]):null;
if(ey=="ColO"){iC.Clr=G(j4.Colr)}else if(ey=="GrdO"){o(j4.GrFl.FDeF,iC)}else if(ey=="Shad"||ey=="InnS"||ey=="OutG"||ey=="InnG"){iC.Clr=G(j4.Colr);
iC.blur.v.val=Math.round(j4.Radi/2.4);if(j4.Offs!=null){iC.Dstn.v.val=j4.Offs;iC.lagl.v.val=Math.round(180-j4.Angl*180/Math.PI);
iC.uglg.v=!1}}else if(ey=="Strk"){iC.Clr=G(j4.Colr);iC.Sz.v.val=Math.round(j4.Radi)}else if(ey=="PhgB"||ey=="BevE"){iC.blur.v.val=Math.round(j4.Radi);
if(ey=="BevE")iC.bvlS.v.BESl="PlEb"}else if(ey=="Gaus"){if(R&&j4.Enab){I.add.vmsk.l2=j4.Radi/2.4;I.add.vmsk.A$=!0;
I.sN(y)}}if(ca){iC.enab.v=j4.Enab;if(iC.Md&&j4.BlnM!=null)iC.Md.v.BlnM=aA.bH(x(j4.BlnM));if(iC.Opct&&j4.Opac!=null)iC.Opct.v.val=Math.round(j4.Opac*100);
var iu=i4.rm[i4.order.indexOf(ca)];bl[iu].v.unshift({t:"Objc",v:iC})}}}y.G.push(I)}function P(c){var y=new t.sD,O=c._type;
if(O=="PCrv"){var p=c.Crvs.Data,D=[],f=[];for(var C=0;C<p.length;C++){var T=p[C];if(T.length%3!=1){T=T.slice(1,T.length-1)}for(var I=0;
I<T.length;I++){var H=T[I],b=H[2];if(b!=0)D.push(I==0?"M":"C");f.push(H[0],H[1])}}y.T=L.H.vP({s:f,r:D},!0)}else{var R=c.ShpB,W=c.Shpe,J=W._type,u=R[2]-R[0];
if(J=="ShpE"){y.T=L.j.sh.$d(R[0],R[1],R[2]-R[0],R[3]-R[1])}else if(J=="ShNR"){var e=[0,0,0,0];if(W.CTyp){e=W.ShCR.slice(0);
for(var C=0;C<4;C++)e[C]*=R[2]-R[0]}y.T=L.j.sh.Rect(R[0],R[1],R[2]-R[0],R[3]-R[1],e)}else if(J=="ShpT"){y.T=L.H.vP({r:["M","L","L","Z"],s:[R[0],R[3],R[2],R[3],R[0]+u*.5,R[1]]},!0)}else if(J=="ShTz"){y.T=L.H.vP({r:["M","L","L","L","Z"],s:[R[0]+u*W.PosL,R[1],R[0]+u*W.PosR,R[1],R[2],R[3],R[0],R[3]]},!0)}else{console.log("--",J);
y.T=L.j.sh.Rect(R[0],R[1],R[2]-R[0],R[3]-R[1],[0,0,0,0])}}return y}function o(c,y){var O=c.Grad,p=O.Cols;
y.Type.v.GrdT=c.Type==0?"Lnr":"Rdl";var D=[];for(var C=0;C<p.length;C++){var f=_(p[C]);D.push([O.Posn[C][0],f])}y.Grad.v.Intr.v=0;
L.K.GC(D,y.Grad.v);var T=O.Posn,I=new fz(T[0][0],T[0][1]),H=new fz(T[1][0],T[1][1]);if(c.Type==0)I=new fz((I.x+H.x)/2,(I.y+H.y)/2);
L.K.jk(I,H,new bU(0,0,1,1),y)}function G(c){var y=_(c);return{t:"Objc",v:L.K.gc({o:y[0]*255,z:y[1]*255,S:y[2]*255})}}function _(c){var y=c._col,O=c._type;
if(O=="HSLA"){var p=L.ZS(y[0],y[1],y[2]);return[p.o,p.z,p.S,y[3]]}else if(O=="RGBA")return y;else if(O=="CMYK"){var D=1-y[3];
return[(1-y[0])*D,(1-y[1])*D,(1-y[2])*D]}else{console.log(y);throw O}}function j(c,y,O){var p=c.Frmt,e="";
if(p!=0&&p!=6)throw p;var D=c.BmpW,f=c.BmpH,T=p==0?4:1,I=Math.ceil(D/256),H=Math.ceil(f/256),b=new bU(0,0,I,H),R=new bU;
for(var C=0;C<T;C++){var W=new Uint8Array(c["Sta"+(C+1)]),J=L.zQ(W,b);R=R.if(J)}var u=[];for(var C=0;
C<T;C++){var W=new Uint8Array(c["Sta"+(C+1)]),Q=L.B(R.k());L.kV(W,b,Q,R);u[C]=[];for(var q=0;q<Q.length;
q++)u[C][q]=Q[q];e+=JSON.stringify(u[C])+","+JSON.stringify(c["Idx"+(C+1)])+","}if(O[e]==null){var Z=R.e*256,E=R.l*256,z=new Array(T);
for(var C=0;C<T;C++){var W=z[C]=new Uint8Array(Z*E);U(W,c["Idx"+(C+1)],u[C],y,Z,E)}var V=L.B(Z*E*4);
if(p==0)L.aC({o:z[0],z:z[1],S:z[2],lz:z[3]},V);else{V.fill(255);L.s2(z[0],V)}var Y=new bU(0,0,Z,E),d={buffer:V,rect:Y};
L.vb(d);O[e]=[d.rect,d.buffer]}var J=O[e][2]=O[e][0].clone();J.x+=R.x*256;J.y+=R.y*256;return O[e]}function U(c,y,O,p,D,f){var T=0,I=D>>>8,H=f>>>8;
for(var b=0;b<H;b++)for(var R=0;R<I;R++){var W=R*256,J=b*256,u=b*I+R,e=J*D+W,Q=O[u];if(Q<=1)S(c,e,0,D,256,256);
else if(Q==2)S(c,e,4294967295,D,256,256);else if(Q==4){var q=y[T];T++;var Z=p[q.Data.DatI],E=q.Rect;
if(E==null)E=[0,0,256,256];S(c,e,0,D,256,256);X(c,(J+E[1])*D+W+E[0],Z,E[1]*256+E[0],D,256,E[2]-E[0],E[3]-E[1])}else console.log(Q)}}function S(c,y,O,p,D,f){var T=y+p*f;
for(;y<T;y+=p){var I=y+D;for(var H=y;H<I;H++){c[H]=O}}}function X(c,y,O,p,D,f,T,I){var H=y+D*I,b=p+f*I;
for(;y<H&&p<b;y+=D,p+=f){for(var C=0;C<T;C++)c[y+C]=O[p+C]}}return s}();function an(){}an.st=function(s,m){var l=an,x=c3.parse(s),P=0;
if(x.pages.length>1)console.log(x.pages.length,"pages");var a=[],o=new bU;for(var G=0;G<x.pages.length;
G++){var _=x.pages[G],j=_.layers,U=l.ge(j,G),X=!1;if(U.k()>8e3*8e3||U.e>3e4||U.l>3e4){l.br(j,!0);var S=l.ge(j,G);
if(S.k()>=U.k())l.br(j,!1)}U=l.ge(j,G);for(var c=0;c<j.length;c++){var y=j[c];if(l.bq(y)=="artboard")X=!0}if(!X){console.log("no artboard");
var O={};for(var p in _)O[p]=_[p];O._class="group";_.layers=[O]}a.push(U.clone());if(U.Xh())continue;
U.x=0;U.y=P;P+=U.l+200;o=o.if(U)}var D={};if(x.foreignSymbols)for(var C=0;C<x.foreignSymbols.length;
C++){var f=x.foreignSymbols[C].symbolMaster;D[f.symbolID]={YI:f}}l.rV(x.pages,D,m);for(var T in D){var y=D[T].YI,I=l.rM(y.layers)}var H=an.gk(o,8192*8192);
m.VK=!0;m.e=Math.round(o.e/H);m.l=Math.round(o.l/H);m.buffer=L.B(m.e*m.l*4);m.Gp(x.pages[0].layers.length);
m.W6={};m.S2=[];P=0;for(var G=0;G<x.pages.length;G++){var b=x.pages[G],U=a[G],R=new ae(H,0,0,H,U.x,U.y-P);
l.Fz(b.layers,m,R,x,D,{},[]);P+=U.l+200}delete m.W6;delete m.S2;if(H!=1)alert("File scaled down "+H+"x");
m.asl()};an.alX=0;an.bq=function(s){return s._class?s._class:s.$class};an.gk=function(s,m){var l=1;while(Math.round(s.e/l)*Math.round(s.l/l)>m||Math.max(Math.round(s.e/l),Math.round(s.l/l))>3e4)l++;
if(l!=1&&!window.confirm("Your image is quite large ("+s.e+" x "+s.l+" px).\n"+"Press OK to scale it down "+l+"x, or Cancel to keep the size."))l=1;
return l};an.ge=function(s,m){var l=[],x=an;for(var a=0;a<s.length;a++){var P=s[a],o=x.T8(P.frame);if(m==0||x.bq(P)=="artboard")l.push(o)}return L.rect.EV(l)};
an.br=function(s,m){var l=[],x=an;for(var a=0;a<s.length;a++){var P=s[a],o=x.T8(P.frame);o.e+=150;o.l+=150;
l.push(o)}var G=L.rect.EV(l);L.rect.alW(l,m);var _=L.rect.EV(l);if(_.k()*1.5<G.k()||G.e>3e4&&_.e<=3e4||G.l>3e4&&_.l<=3e4){alert("Re-arranging artboards");
for(var a=0;a<s.length;a++){var j=l[a],P=s[a],U=P.frame;U.x=j.x;U.y=j.y}}};an.rV=function(s,m,l){var x=an;
for(var a=0;a<s.length;a++){var P=s[a],o=x.bq(P);if(["page","artboard","group"].indexOf(o)!=-1)x.rV(P.layers,m,l);
else if(o=="symbolMaster")m[P.symbolID]={YI:P}}};an.rM=function(s){var m=an;for(var l=0;l<s.length;l++){var x=s[l],a=m.bq(x),P=null;
if(["page","artboard","group"].indexOf(a)!=-1)P=m.rM(x.layers);if(a=="symbolMaster"||a=="symbolInstance")P=x;
if(P!=null)return P}return null};an.Fz=function(s,m,l,x,a,P,o){var G=an,_=[];for(var j=0;j<s.length;
j++){var U=s[j],S=U.frame?G.T8(U.frame):null,X=U.style,D="",R=null,W=!1;if(X==null){console.log("no styles")}var c=G.Wd(U,l),y=G.bq(U),O=y=="shapeGroup"||y=="shapePath"||y=="rectangle"||y=="oval"||y=="triangle"||y=="polygon",p=["page","artboard","group"].indexOf(y)!=-1;
if(y=="shapeGroup"){for(var C=0;C<U.layers.length;C++)if(G.bq(U.layers[C])=="shapeGroup")p=!0}var f=U.exportOptions;
if(f){var T=f.exportFormats;if(T==null)T=f.sizes;if(y!="artboard"&&(T&&T.length!=0)){var I=T[0].scale}}var H=m.d2();
H.tG(U.isVisible);var b=U.name;if(!(typeof b=="string"))b=y;H.qW(D+b.slice(0,250));if(X!=null)R=G.ao3(x,m,X,S,c,H.getName(),O||y=="artboard"||p);
if(y=="rectangle"&&X&&X.fills&&X.fills[0]){var J=X.fills[0];if(J.fillType==4&&J.patternFillType>1&&J.image!=null)W=!0}if(U.shouldBreakMaskChain){while(_.length!=0)G.Za(_.pop(),m)}if(p){H.add.lsct=U.layerListExpandedType==2?hN.yF:hN.fs;
H.TR="pass";H.Yy=24;H.tG(U.isVisible);m.G.push(m.b8());if(y=="artboard"){var u=S.clone(),e=c.LL();u.x=-Math.floor(c.sI/e);
u.y=-Math.floor(c.bW/e);u.e=Math.floor(u.e/e);u.l=Math.floor(u.l/e);H.Kp(u);var Q=U.backgroundColor,q=Q?{o:255*Q.red,z:255*Q.green,S:255*Q.blue}:{o:255,z:255,S:255};
H.add.artb.Clr={t:"Objc",v:L.K.gc(q)};H.add.artb.artboardBackgroundType={t:"long",v:4}}G.Fz(U.layers,m,c,x,a,P,o)}else if(O&&!W){H.add.vmsk=new t.sD;
H.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));H.add.vstk.strokeEnabled.v=!1;H.add.vogk=[];var Z=R!=null&&R.frameFXMulti.v.length==1,E=X?X.fills:null,z=X?G.tW(x,E,S,c,H.getName(),m,G.Qj(o,U.do_objectID+"_image")):[];
if(z.length==0){if(Z)H.add.vstk.fillEnabled.v=!1;else H.add.iOpa=0;H.add.SoCo={classID:"null",Clr:{t:"Objc",v:L.K.gc({o:0,z:0,S:0})}}}else{var V=z[0],Y=null,d=null;
if(V.type=="SoFi"){Y="SoCo";d=i4.Rc}if(V.type=="GrFl"){Y="GdFl";d=i4.Ql}if(V.type=="patternFill"){Y="PtFl";
d=i4._6}if(Y!=null){H.add[Y]={classID:"null"};for(var C=0;C<d.length;C++){var w=d[C];H.add[Y][w]=V.Z.v[w]}var A=V.Z.v.Opct.v.val;
if(Z&&A==0)H.add.vstk.fillEnabled.v=!1;else H.add.iOpa=Math.round(255*A/100)}}H.Yy|=16;H.add.vmsk.T=G.m1(U.layers?U.layers:[U],U.layers?c:l,H.add.vogk);
var $=X?X.blur:null;if($&&$.isEnabled&&$.type<=1)H.add.vmsk.l2=$.radius;if(H.add.vmsk.T.length==2){console.log("shape with no content:",H.getName())}if(Z){var i=R.frameFXMulti.v[0].v,K=H.add.vstk,h=X.borders[0];
R.frameFXMulti.v=[];jo.aif(i,K);var F=X.borderOptions,N=X.miterLimit;if(F){var iQ=F.dashPattern;K.strokeStyleLineCapType.v.strokeStyleLineCapType=i4.Ah.S5[F.lineCapStyle];
K.strokeStyleLineJoinType.v.strokeStyleLineJoinType=i4.Ah.join[F.lineJoinStyle];if(iQ)K.strokeStyleLineDashSet.v=jo.Xj(iQ,1/i.Sz.v.val);
if(N!=null)K.strokeStyleMiterLimit.v=N}}H.sN(m)}else if(y=="bitmap"||W){if(!W&&U.image==null)continue;
var jB=W?X.fills[0]:null,k=W?jB.image.bdata:U.image.bdata,ab=m.PZ(k,H.getName(),0,0);ab.Yy=H.Yy;H=ab;
var $=X?X.blur:null,f_=X?X.colorControls:null;if($||f_){H.add.SoLd.filterFX=ib.yo();m.Vi({id:H.add.SoLd.placed.v,rect:new bU,buffer:L.B(1),v:new t.K0});
var E=H.add.SoLd.filterFX.v.filterFXList.v;if($){var fc=ib.k$("GsnB",{});fc.v.enab.v=$.isEnabled;fc.v.Fltr.v.Rds.v.val=$.radius;
E.push(fc)}if(f_){var g8=f_.brightness,bH=f_.contrast,cR=f_.hue,hr=f_.saturation;if(cR!=0||hr!=1){var fc=ib.k$("hue2",{});
fc.v.enab.v=f_.isEnabled;aX.r3(fc.v.Fltr.v,0,[Math.round(cR*180/Math.PI),Math.round((hr-1)*100),0]);
E.push(fc)}if(g8!=0||bH!=1){var fc=ib.k$("brit",{});fc.v.enab.v=f_.isEnabled;bH=bH-1;if(bH>0)bH/=2;var h$=fc.v.Fltr.v;
h$.Brgh.v=Math.round(g8*255);h$.Cntr.v=Math.round(bH*255);h$.useLegacy.v=!0;E.push(fc)}}}if(W){var gE=jB.patternFillType;
if(gE==3){var d8=H.rect.e/H.rect.l,hG=S.e/S.l;if(d8<hG){c.translate(-(S.e*(1-d8/hG))/2,0);c.scale(hG/d8,1)}else{c.translate(0,-(S.l*(1-hG/d8))/2);
c.scale(1,d8/hG)}}}S.x=S.y=0;var f7=L.H.$$(S).s;c.ms();L.H.A(f7,c,f7);H.add.SoLd.Trnf=r.Q.ZG(f7);H.add.SoLd.nonAffineTransform=r.Q.ZG(f7);
H.y2(m,!1)}else if(y=="text"){if(U.attributedString==null)continue;var hX=c.clone(),fB,e5,iC=0;hX.ms();
hX.lz=hX.Am=Math.min(hX.lz,hX.Am);H.add.lnsr="rend";H.add.TySh=ex.mA(0,0);H.add.TySh.fn=new bU(0,0,S.e,S.l);
H.add.TySh.A=hX;var g9=U.attributedString;if(g9.archivedAttributedString)g9=g9.archivedAttributedString;
var cL=g9.NSString;if(cL==null)cL=g9.string;if(cL==null)cL="";if(cL["NS.string"])cL=cL["NS.string"];
if(P[U.do_objectID]!=null)cL=P[U.do_objectID];var bf=G.Qj(o,U.do_objectID+"_stringValue");if(bf)cL=bf.value;
if(g9.attributes!=null){fB=[];e5=[];var gF=g9.attributes;for(var C=0;C<gF.length;C++){fB.push(gF[C].length,C);
e5.push(gF[C].attributes)}}else if(g9.NSAttributeInfo==null){fB=[cL.length,0];e5=[g9.NSAttributes]}else{fB=g9.NSAttributeInfo["NS.data"];
e5=g9.NSAttributes;fB=an.a2D(fB,e5)}for(var C=0;C<fB.length;C+=2)iC+=fB[C];if(iC!=cL.length){while(iC>cL.length){fB[fB.length-2]--;
iC--;if(fB[fB.length-2]==0){fB.pop();fB.pop()}}fB[fB.length-2]+=cL.length-iC}cL=cL.replace(/\u2028/g,"\n");
cL=cL.replace(/\u2029/g,"\n");cL=cL.replace(/\r/g,"\n");var ax=H.add.TySh.x5;ex.A6(ax,0,cL);if(cL!=""){var e7=U.textBehaviour,dO=X.textStyle,h1=dO?dO.verticalAlignment:0,hL=G.ap5(ax,fB,e5,cL),e=hX.LL(),jl=ex.f9(ax,0,1),j6=0;
if(jl.m$.Font){var gT=jl.dN[jl.m$.Font].Name;if(gT=="FontAwesome"||gT=="Ionicons")hL*=.87}var hZ=jl.m$.AutoLeading?0:jl.m$.Leading*.6,aP=Math.max(hL,hZ)*e,h7=S.e,fa=S.l;
if(e7==0){ex.c8(ax,0);var h4=ex.U6(jl.AO);if(h4==1)j6=h7*e;if(h4==2)j6=h7*e*.5;if(h1==0)aP*=1;else aP*=.9}else{ex.c8(ax,1);
ex.rI(ax,[0,0,Math.round(h7),Math.round(fa)]);if(e7==2&&h1==0)aP=aP*.2;else if(e7==2&&h1==1){aP=e*.5*(fa-jl.m$.FontSize)}else if(e7==1&&h1==0)aP=aP*.2;
else aP=aP*.35}H.add.TySh.A.translate(j6,aP)}}else if(y=="symbolInstance"||y=="symbolMaster"){var cA=U.symbolID;
if(P[U.do_objectID])cA=P[U.do_objectID].symbolID;var jg=G.Qj(o,U.do_objectID+"_symbolID");if(jg)cA=jg.value;
if(cA=="")continue;var cS={};for(var w in P)cS[w]=P[w];if(U.overrides)for(var w in U.overrides)cS[w]=U.overrides[w];
var iT=o.slice(0);if(U.overrideValues)iT=iT.concat(U.overrideValues);var cf=a[cA];if(cf==null){console.log("Unknown master master",U.symbolID);
continue}var ir=an.T8(cf.YI.frame),bl=ir.e/S.e,gp=ir.l/S.l,j4=c.clone();j4.scale(bl,gp);H.add.lsct=hN.fs;
H.TR="pass";H.Yy=24;H.tG(U.isVisible);m.G.push(m.b8());var ey=cf.YI;if(m.S2.indexOf(ey)==-1){m.S2.push(ey);
G.Fz(ey.layers,m,j4,x,a,cS,iT);m.S2.pop()}}else if(y=="slice"){console.log("slice layers are ignored by now");
continue}else{console.log("unknown layer type: "+y,U);continue}if(X&&X.contextSettings){var ca=X.contextSettings,iu=ca.blendMode;
if(iu<G.VJ.length){H.TR=aA.EB[aA.Bo.indexOf(G.VJ[iu])];if(p&&H.TR=="norm")H.TR="pass"}H.opacity=Math.round(H.opacity*ca.opacity)}if(R!=null){H.add.lmfx=R}m.G.push(H);
if(U.hasClippingMask&&s.length>1){_.push(H);m.G.push(m.b8())}}while(_.length!=0)G.Za(_.pop(),m)};an.Qj=function(s,m){for(var C=0;
C<s.length;C++)if(s[C].overrideName.startsWith(m))return s[C]};an.a2D=function(s,m){var l=0,x=[];while(l+1<s.length){var a=s[l];
l++;if(a>127){a+=128*(s[l]-1);l++;if(s[l-1]>127){a+=128*(s[l]-1);l++}}var P=s[l];l++;x.push(a,P)}return x};
an.ap5=function(s,m,l,x){var a=an,P=0,U=0,S=0;for(var C=0;C<x.length;C++){var o=x.charCodeAt(C),G=1473<=o&&o<=1479||1488<=o&&o<=1514||1520<=o&&o<=1524,_=1569<=o&&o<=1594||1600<=o&&o<=1749;
if(G||_)P++}var j=P>x.length/2;for(var C=0;C<m.length;C+=2){var X=m[C],H=14,b="DejaVuSans";if(X==0)continue;
var c=m[C+1],y=l[c],O=ex.f9(s,U,U+X-1),p=y.NSColor;if(p==null){var p=y.MSAttributedStringColorDictionaryAttribute;
if(p==null)p=y.MSAttributedStringColorAttribute;if(p==null)p="0 0 0";else p=[p.red,p.green,p.blue].join(" ")}else if(a.bq(p)=="MSArchivedColor")p=p.dr+" "+p.dg+" "+p.db;
else if(p.NSRGB){p=p.NSRGB;p=g.cS(p,0,p.length-1)}else if(p.NSCMYK){p=p.NSCMYK;p=g.cS(p,0,p.length-1);
p=p.split(" ").map(parseFloat);var D=1-p[0],f=1-p[1],T=1-p[2],I=1-p[3];p=D*I+" "+f*I+" "+T*I}else if(p.NSWhite){p="1 1 1"}p=p.split(" ");
O.m$.FillColor={Type:1,Values:[1,parseFloat(p[0]),parseFloat(p[1]),parseFloat(p[2])]};var W=y.MSAttributedStringFontAttribute;
if(y.NSFont){H=y.NSFont.NSSize;b=y.NSFont.NSName}else if(W){if(W.attributes){W=W.attributes;H=W.size;
b=W.name}else{var J=W.NSFontDescriptorAttributes;if(J==null)J=W.UIFontDescriptorAttributes;W=J;H=W.NSFontSizeAttribute;
b=W.NSFontNameAttribute}if(b==null)b="DejaVuSans"}var S=Math.max(S,H);O.m$.FontSize=Math.round(H);ex.Cl(O,b);
var u=y.NSKern;if(u==null)u=y.kerning;if(u!=null)O.m$.Tracking=Math.round(1e3*u/H);if(y.NSUnderline!=null)O.m$.Underline=y.NSUnderline>0;
var e=y.NSStrikethrough;if(e==null)e=y.strikethroughStyle;if(e!=null)O.m$.Strikethrough=e>0;if(y.MSAttributedStringTextTransformAttribute==1)O.m$.FontCaps=2;
var Q=y.NSParagraphStyle;if(Q==null)Q=y.paragraphStyle;if(Q){var q=Q.paragraphSpacing;if(q!=null){O.AO.SpaceAfter=q}var Z=Q.NSAlignment;
if(Z==null)Z=Q.alignment;if(Z!=null){var E=0;if(!1){}else if(Z==1)E=1;else if(Z==2)E=2;else if(Z==4)E=0;
else{E=Z;console.log("unknown align",Z)}if(j&&E<2)E=1-E;O.AO.Justification=E}var z=Q.NSMinLineHeight;
if(z==null)z=Q.minimumLineHeight;if(z!=null){O.m$.AutoLeading=!1;O.m$.Leading=z}}O.AO._Direction=j?1:0;
ex.j3(s,U,U+X,O);U+=X}return S};an.ao3=function(s,m,l,x,a,P,o){var G=an,_=JSON.parse(i4.default),j=!1;
for(var C=0;C<i4.order.length;C++)_[i4.rm[C]]={t:"VlLs",v:[]};var U=l.fills,S=G.tW(s,U,x,a,P,m);for(var X=0;
X<2;X++){var c=l[["shadows","innerShadows"][X]];if(c==null)continue;var y=["DrSh","IrSh"][X],O=i4.rm[i4.order.indexOf(y)];
for(var C=0;C<c.length;C++){var p=c[C];if(!p.isEnabled)continue;if(p.contextSettings.opacity==0||p.color.alpha==0)continue;
var D=JSON.parse(i4.Ej[i4.order.indexOf(y)]);_[O].v.unshift({t:"Objc",v:D});j=!0;D.Clr.v=G.Eq(p.color);
D.blur.v.val=Math.round(p.blurRadius/a.LL());var f=a.clone();f.sI=f.bW=0;f.ms();var T=f.oG(new fz(p.offsetX,p.offsetY)),I=Math.sqrt(T.x*T.x+T.y*T.y);
D.Dstn.v.val=Math.round(I);D.lagl.v.val=Math.round(Math.atan2(T.y,-T.x)*(180/Math.PI));if(D.layerConceals)D.layerConceals.v=S.length!=0;
G.Ry(p,D)}}var H=l.borders;if(H!=null&&(S.length==0||l.blur==null||!l.blur.isEnabled))for(var C=0;C<H.length;
C++){var b=H[C];if(!b.isEnabled)continue;var D=JSON.parse(i4.Ej[i4.order.indexOf("FrFX")]),O=i4.rm[i4.order.indexOf("FrFX")];
_[O].v.unshift({t:"Objc",v:D});j=!0;D.Clr.v=G.Eq(b.color);if(b.fillType!=0&&b.gradient){var R=G.Dz(b.gradient,x,a,P),W=["Type","Angl","Ofst","Scl"];
for(var C=0;C<W.length;C++)D[W[C]]=R[W[C]];D.Grad.v=R.Grad.v;D.PntT.v.FrFl="GrFl"}D.Sz.v.val=b.thickness/a.LL();
D.Styl.v.FStl=["CtrF","InsF","OutF"][b.position];G.Ry(b,D)}for(var C=o?1:0;C<S.length;C++){var J=S[C],O=i4.rm[i4.order.indexOf(J.type)];
_[O].v.unshift(J.Z);j=!0}return j?_:null};an.tW=function(s,m,l,x,a,P,o){if(m==null)return[];var G=an,_=[];
for(var C=0;C<m.length;C++)if(m[C].isEnabled)_.push(m[C]);m=_;var j=[];for(var C=0;C<m.length;C++){var U=m[C],S=null,X=null;
if(U.fillType==0){S="SoFi";var c=JSON.parse(i4.Ej[i4.order.indexOf("SoFi")]);X={t:"Objc",v:c};X.v.Clr.v=G.Eq(U.color)}else if(U.fillType==1){S="GrFl";
X={t:"Objc",v:G.Dz(U.gradient,l,x,a)}}else if(U.fillType==4&&U.image!=null){var y=U.image;if(o)y=o.value;
var O=iO.D1(y.bdata.buffer);if(O!=null&&O!="pdf"&&O!="eps"){var p,b=0,R=0,W=0;if(P.W6[y.key])p=P.W6[y.key];
else{var D=iO.ln(O).Gs(y.bdata)[0],f=D.Sb.clone();p={};p.id=jF.wd()+"-d71c-11e5-b1ae-a548a96e5f9f";p.name="someImage";
p.DH=[new Uint8Array(D.data),f];P.FF(p);P.W6[y.key]=p}var T=p.DH[1],c=JSON.parse(i4.Ej[i4.order.indexOf("patternFill")]);
S="patternFill";X={t:"Objc",v:c};var I=U.patternFillType,H=U.patternTileScale;c.Algn.v=!0;c.Ptrn.v.Idnt.v=p.id;
if(I==0){b=H*T.e/Math.min(T.e,T.l);R=-x.sI;W=-x.bW}else{b=Math.max(l.e/T.e,l.l/T.l);R=-x.sI-(T.e*b-l.e)/2;
W=-x.bW-(T.l*b-l.l)/2}c.Scl.v.val=100*b*(1/x.LL());c.phase.v.Hrzn.v=Math.round(R/x.LL());c.phase.v.Vrtc.v=Math.round(W/x.LL())}}else if(U.fillType==5){console.log("fill type Noise not supported yet")}else console.log("unknown fill type",U.fillType);
if(S!=null){G.Ry(U,X.v);j.push({type:S,Z:X})}}return j};an.a3u=function(s){var m=an,l=new bU(0,0,1,1);
s=s.slice(0);while(!0){var x=!1;for(var C=0;C<s.length-1;C++){var a=s[C],P=s[C+1],o=null,G=a.contextSettings;
if(a.fillType==0&&(G==null||G.opacity==1&&G.blendMode==0)&&a.color.alpha==1){var _="norm",j=1,G=P.contextSettings;
if(G){j=G.opacity;_=aA.wq(m.VJ[G.blendMode])}if(P.fillType==0){o=JSON.parse(JSON.stringify(P));m.J_(o.color,a.color,o.color,l,_,j)}if(P.fillType==1){o=JSON.parse(JSON.stringify(P));
var U=o.gradient.stops;for(var S=0;S<U.length;S++)m.J_(U[S].color,a.color,U[S].color,l,_,j)}if(o!=null&&o.contextSettings){var G=o.contextSettings;
G.opacity=1;G.blendMode=0}}if(o!=null){s.splice(C,0,o);x=!0;break}}if(!x||s.length<2)break}return s};
an.J_=function(s,m,l,x,a,P){var o=an,G=L.B(4);o.UL(s,G);var _=L.B(4);o.UL(m,_);L.a.$P(a,G,x,_,x,x,P);
o.a7C(_,l)};an.UL=function(s,m){m[0]=255*s.red;m[1]=255*s.green;m[2]=255*s.blue;m[3]=255*s.alpha};an.a7C=function(s,m){m.red=s[0]/255;
m.green=s[1]/255;m.blue=s[2]/255;m.alpha=s[3]/255};an.Za=function(s,m){s=s.clone();s.Yy=24;s.qW("Mask by "+s.getName());
m.G.push(s);s.add.lsct=hN.yF;s.add.lyid=m.yQ();delete s.add.lmfx;delete s.add.SoCo;delete s.add.GdFl;
delete s.add.PtFl;delete s.add.iOpa;if(s.add.vmsk)s.add.vmsk.A$=!0;s.sN(m);if((s.Yy&16)==16)s.Yy-=16;
if((s.Yy&2)==2)s.Yy-=2;s.TR="pass";s.opacity=255};an.VJ="Nrml Drkn Mltp CBrn Lghn Scrn CDdg Ovrl SftL HrdL Dfrn Xclu H Strt Clr Lmns linearBurn linearDodge".split(" ");
an.Dz=function(s,m,l,x){l=l.clone();l.ms();l.sI=l.bW=0;var a=l.LL(),X=0,c=0;l.scale(1/a,1/a);var P=an,o=JSON.parse(i4.Ej[i4.order.indexOf("GrFl")]),G=o.Grad.v;
G.Intr.v=0;if(s==null)return o;var _=s.gradientType,j=P.Nv(s.from),U=P.Nv(s.to);j.offset(-.5,-.5);U.offset(-.5,-.5);
j=l.oG(j);U=l.oG(U);var S=Math.atan2(-(U.y-j.y),U.x-j.x);o.Type.v.GrdT=["Lnr","Rdl","Angl"][_];o.Scl.v.val=100*fz.rv(j,U);
if(_==0){o.Angl.v.val=180/Math.PI*S;o.Scl.v.val=100*fz.rv(j,U);X=(j.x+U.x)/2;c=(j.y+U.y)/2}if(_==1){o.Scl.v.val=200*fz.rv(j,U);
X=j.x;c=j.y}if(_==2){o.Angl.v.val=180/Math.PI*(S-Math.PI/2)}var y=o.Ofst.v;y.Hrzn.v.val=X*100;y.Vrtc.v.val=c*100;
var O=[];for(var C=0;C<s.stops.length;C++){var p=s.stops[C],D=p.color;O.push([p.position,D?[D.red,D.green,D.blue]:[0,0,0],D.alpha])}L.K.GC(O,G);
return o};an.Ry=function(s,m){var l=an,x=1,a=s.contextSettings;if(a!=null){m.Md.v.BlnM=l.VJ[a.blendMode];
x*=a.opacity}else m.Md.v.BlnM=l.VJ[0];m.enab.v=s.isEnabled;if(m.uglg!=null)m.uglg.v=!1;if(s.color!=null)x*=s.color.alpha;
m.Opct.v.val=Math.round(x*100)};an.Eq=function(s){return L.K.gc(s?{o:s.red*255,z:s.green*255,S:s.blue*255}:{o:0,z:0,S:0})};
an.m1=function(s,m,l){var x=an,a=[{type:6},{type:8,all:0}];for(var P=0;P<s.length;P++){var o=s[P],G=o.booleanOperation,_=0,j=o._class,O=!1;
if(j=="group"||j=="text"||j=="symbolInstance"||j=="slice"){console.log(j+" inside ShapeGroup");continue}if(G==-1)_=0;
else if(G==0)_=1;else if(G==1)_=2;else if(G==2)_=3;else if(G==3)_=0;if(P==0)_=1;var U=an.T8(o.frame),S=x.Wd(o,m),X=o.path?o.path:o,c=[{type:0,length:0,aZ:_,pe:2,Xc:0,BG:0}],y=X.points;
for(var C=0;C<y.length;C++){var p=y[C],D=x.Nv(p.curveTo),f=x.Nv(p.point),T=x.Nv(p.curveFrom);O=O||p.hasCurveFrom&&!T.yb(f)||p.hasCurveTo&&!D.yb(f)}var I=[];
if(!O){var H=[],cE=y.length;if(cE==0)continue;for(var C=0;C<cE;C++){I[C]=y[C].cornerRadius;var p=x.Nv(y[C].point);
H.push(p.x,p.y)}S.scale(1/U.e,1/U.l);S.ms();L.H.A(H,S,H);c=L.j.sh.Qa(H,I).slice(2)}else{var b=y.length;
c[0].length=b;for(var C=0;C<b;C++){var p=y[C],R=p.curveMode,W=x.Nv(p.point);c[1+C]={type:R==2||R==4?1:2,o3:p.hasCurveTo?x.Nv(p.curveTo):W.clone(),R:W,Ux:p.hasCurveFrom?x.Nv(p.curveFrom):W.clone()}}S.scale(1/U.e,1/U.l);
S.ms();L.j.G9(c,S);var I=[];for(var C=0;C<b;C++){var p=y[C],R=p.curveMode,J=p.cornerRadius;if(R==1&&J!=0)I.push(J);
else I.push(0)}}if(!X.isClosed)for(var C=0;C<c.length;C++)c[C].type+=3;a=a.concat(c);var u=L.R2.dV(),e=x.bq(o);
if(S.S==0&&S.In==0){var Q=S.sI,q=S.bW,Z=Q+S.lz,E=q+S.Am,z=[Q,q,Z,E];if(e=="rectangle"&&I.length==4)u=L.R2.Ai(2,z,I);
if(e=="oval")u=L.R2.Ai(5,z)}l.push(u)}return a};an.Wd=function(s,m){var l=m.clone(),x=s.frame?an.T8(s.frame):null;
if(x)l.translate(-x.x-x.e/2,-x.y-x.l/2);if(s.isFlippedHorizontal)l.scale(-1,1);if(s.isFlippedVertical)l.scale(1,-1);
l.rotate(-s.rotation*(Math.PI/180));if(x)l.translate(x.e/2,x.l/2);return l};an.Nv=function(s){s=s.slice(1,s.length-1).split(",");
return new fz(parseFloat(s[0]),parseFloat(s[1]))};an.T8=function(s){return new bU(s.x,s.y,s.width,s.height)};
an.nH=function(s){return{_class:"rect",constrainProportions:!1,x:s.x,y:s.y,width:s.e,height:s.l}};function dw(){}dw.st=function(s,m){var l=Date.now(),x=dw,a=UZIP.parse(s),P=JSON.parse(g.V_(a.manifest)),o=JSON.parse(g.V_(a["resources/graphics/graphicContent.agc"])).resources,G=[],_=P.children;
for(var C=0;C<_.length;C++){var j=_[C];if(j.name=="artwork"){var U=j.children;for(var S=0;S<U.length;
S++)if(U[S]["uxdesign#bounds"]){var X=U[S],c=JSON.parse(g.V_(a["artwork/"+X.path+"/graphics/graphicContent.agc"]));
if(c.children.length!=1)throw"e";X._node=c.children[0];G.push(X)}}}var y=[],O=new bU;for(var C=0;C<G.length;
C++){var X=G[C],p=an.T8(X["uxdesign#bounds"]);y.push(p);O=O.if(p)}var D=an.gk(O,8192*8192);m.VK=!0;m.e=Math.round(O.e/D);
m.l=Math.round(O.l/D);m.buffer=L.B(m.e*m.l*4);m.Gp(G.length);var f=new ae(D,0,0,D,O.x,O.y);m.W6={};for(var C=0;
C<G.length;C++){var X=G[C],p=an.T8(X["uxdesign#bounds"]),T=X._node,I=f.clone(),H=p.clone(),b=I.LL();
I.translate(-p.x,-p.y);H.x=-Math.floor(I.sI/b);H.y=-Math.floor(I.bW/b);H.e=Math.floor(H.e/b);H.l=Math.floor(H.l/b);
I.translate(p.x,p.y);dw.QT(T,m,I,o,a,H);var R=m.G[m.G.length-1];R.qW(X.name);R.Kp(H);if(C!=G.length-1)R.add.lsct=hN.fs}delete m.W6};
dw.r7=function(s){if(s==null)return new ae;return new ae(s.a,s.b,s.c,s.d,s.tx,s.ty)};dw.QT=function(s,m,l,x,a,P){var o=dw,G=s.type,_=s[G],j=s.style,U=o.r7(s.transform),y,O="none",p,D="none",f,T;
U.ms();var S=l.clone();S.concat(U);var X=m.d2(),c=s.name;X.qW(c?c.slice(0,250):"Layer");if(s.visible!=null)X.tG(s.visible);
if(j){y=j.stroke;O=y?y.type:"none";p=j.fill;D=p?p.type:"none";f=j.filters;T=j.clipPath;if(T&&x.clipPaths[T.ref])T=x.clipPaths[T.ref].children;
else T=null;if(j.opacity)X.opacity=Math.round(255*j.opacity);if(D=="solid"&&p.color.alpha)X.opacity=Math.round(X.opacity*p.color.alpha);
if(f){X.add.lmfx=o.aal(f);for(var C=0;C<f.length;C++)if(f[C].type=="uxdesign#blur"){var I=f[C],H=I.params,b=H.brightnessAmount;
if(b==null)b=0;b=Math.abs(b/100);if((I.visible==null||I.visible==!0)&&H.backgroundEffect)X.opacity=Math.round(X.opacity*(b+(1-b)*H.fillOpacity))}}if(D=="pattern"&&p.pattern.meta.ux.uid=="")D="none"}if(T==null&&s.meta&&s.meta.ux&&s.meta.ux.clipPathResources)T=s.meta.ux.clipPathResources.children;
if(G=="artboard"||G=="group"){if(T){var R=T[0],W=R.shape,J=W!=null&&W.type=="rect"&&W.width*W.height>1e6;
if(R.type!="text"&&!J){if(W){var U=o.r7(R.transform);U.ms();var u=S.clone();u.concat(U);X.add.vmsk=new t.sD;
X.add.vmsk.T=o.m1(W);u=u.clone();u.ms();L.j.G9(X.add.vmsk.T,u);X.sN(m)}}else if(!J)alert("Clipping by text has been ignored")}X.add.lsct=hN.yF;
X.TR="pass";X.Yy=24;if(s.visible!=null)X.tG(s.visible);m.G.push(m.b8());var e=_.children,Q=p;if(Q)Q=Q.color;
if(Q)Q=Q.value;if(p){if(G=="artboard"&&D=="solid"){X.Kp(new bU(0,0,10,10));X.add.artb.Clr={t:"Objc",v:L.K.gc({o:Q.r,z:Q.g,S:Q.b})};
X.add.artb.artboardBackgroundType={t:"long",v:4}}else{var q=m.d2();q.qW("BACKGROUND");q.Yy|=16;q.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));
q.add.vmsk=new t.sD;q.add.vmsk.T=o.m1({type:"rect",x:P.x,y:P.y,width:P.e,height:P.l});o.DG(p,D,S,P,P,q,m,x,a);
q.sN(m);m.G.push(q)}}for(var C=0;C<e.length;C++){dw.QT(e[C],m,S,x,a,P)}}else if(G=="shape"&&s.shape.type=="rect"&&(s.shape.r==null||s.shape.r==0)&&D=="pattern"&&Math.abs(s.shape.width/s.shape.height-p.pattern.width/p.pattern.height)<.01){var Z=p.pattern,E=Z.meta.ux,z=E.uid,V=a["resources/"+z];
if(V==null){console.log(Z);return}var Y=m.PZ(V,X.getName(),0,0);Y.Yy=X.Yy;Y.opacity=X.opacity;X=Y;var d=L.H.$$(new bU(0,0,Z.width,Z.height)).s,w=new ae;
w.scale(Z.width/s.shape.width,Z.height/s.shape.height);if(E.offsetX)w.translate(-E.offsetX*Z.width,0);
if(E.offsetY)w.translate(0,-E.offsetY*Z.height);S.concat(w);S.ms();L.H.A(d,S,d);X.add.SoLd.Trnf=r.Q.ZG(d);
X.add.SoLd.nonAffineTransform=r.Q.ZG(d);X.y2(m,!1)}else if(G=="shape"){X.Yy|=16;X.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));
X.add.vmsk=new t.sD;X.add.vmsk.T=o.m1(_);var A=L.j.dj(X.add.vmsk.T,null),u=S.clone();u.ms();L.j.G9(X.add.vmsk.T,u);
var $=L.j.dj(X.add.vmsk.T,null);if(O=="none"){}else{var i=y.color.value,K,h;K="SoFi";var F=JSON.parse(i4.Ej[i4.order.indexOf("SoFi")]);
h={t:"Objc",v:F};h.v.Clr.v=L.K.gc({o:i.r,z:i.g,S:i.b});var N=y.align,iQ=y.cap;if(N==null)N="center";
var jB=X.add.vstk;jB.strokeEnabled.v=!0;jB.strokeStyleLineWidth.v.val=y.width;if(N)jB.strokeStyleLineAlignment.v.strokeStyleLineAlignment=i4.Ah.Es[["inside","center","outside"].indexOf(N)];
if(iQ)jB.strokeStyleLineCapType.v.strokeStyleLineCapType=i4.Ah.S5[["butt","round","square"].indexOf(iQ)];
var k=["SoFi","GrFl","patternFill"].indexOf(K),ab=[i4.Rc,i4.Ql,i4._6][k];jB.strokeStyleContent.v={classID:i4.Ah.Lk[0]};
var f_=jB.strokeStyleContent.v={classID:i4.Ah.Lk[k]};for(var C=0;C<ab.length;C++)f_[ab[C]]=h.v[ab[C]]}if(f)for(var C=0;
C<f.length;C++)if(f[C].type=="uxdesign#blur"&&f[C].visible){var fc=f[C];X.add.vmsk.l2=fc.params.blurAmount}o.DG(p,D,S,A,$,X,m,x,a);
X.sN(m)}else if(G=="text"&&s.text){var g8=s.text,bH=g8.frame,cR=j.font,hr=j.textAttributes,U=S.clone(),hX=0;
U.ms();X.add.lnsr="rend";X.add.TySh=ex.mA(0,0);X.add.TySh.fn=new bU(0,0,100,100);X.add.TySh.A=U;var h$=X.add.TySh.x5,gE=g8.rawText.replace(/\r/g,"\n").replace(/\u000b/g,"\n");
ex.A6(h$,0,gE);if(gE!=""){var d8=ex.f9(h$,0,1),hG=cR.postscriptName;if(hG==null)hG=cR.family;ex.Cl(d8,hG);
d8.m$.FontSize=Math.round(cR.size);if(p){var i=p.color.value;d8.m$.FillColor={Type:1,Values:[1,i.r/255,i.g/255,i.b/255]}}if(hr){if(hr.paragraphAlign)d8.AO.Justification=["left","right","center"].indexOf(hr.paragraphAlign);
if(hr.letterSpacing)d8.m$.Tracking=Math.round(hr.letterSpacing);if(hr.lineHeight){d8.m$.AutoLeading=!1;
d8.m$.Leading=Math.round(hr.lineHeight)}}ex.j3(h$,0,gE.length,d8)}var f7=s.meta.ux.rangedStyles;if(f7)for(var C=0;
C<f7.length;C++){var _=f7[C],fB=Math.min(_.length,gE.length-hX),d8=ex.f9(h$,hX,hX+fB),hG=_.postscriptName;
if(hG==null)hG=_.family;if(hG!=null)ex.Cl(d8,hG);var e5=_.textScript,g9=_.underline,cL=_.fontSize,I=_.fill,bf=_.textTransform;
if(e5&&e5!="none")d8.m$.FontBaseline=e5=="superscript"?1:2;if(g9!=null)d8.m$.Underline=g9;if(cL!=null)d8.m$.FontSize=Math.round(cL);
if(bf!=null)d8.m$.FontCaps=bf=="uppercase"?2:0;if(I!=null){var gF=I.value;d8.m$.FillColor={Type:1,Values:[1,(gF>>>16&255)/255,(gF>>>8&255)/255,(gF>>>0&255)/255]}}ex.j3(h$,hX,hX+fB,d8);
hX+=fB}if(bH.type=="area"||bH.type=="autoHeight"){var iC=bH.width,ax=bH.height;ex.c8(h$,1);ex.rI(h$,[0,0,iC,ax!=null?ax:iC*2])}}else console.log(G,s);
m.G.push(X)};dw.m1=function(s){var m=s.type,l=[{type:6},{type:8,all:0}];if(m=="rect"){var x=s.r,a=s.x,P=s.y,o=s.width,G=s.height;
l=L.j.sh.Rect(a,P,o,G,x?x:0)}else if(m=="circle"){var x=s.r;l=L.j.sh.$d(s.cx-x,s.cy-x,2*x,2*x)}else if(m=="ellipse"){var _=s.rx,j=s.ry;
l=L.j.sh.$d(s.cx-_,s.cy-j,2*_,2*j)}else if(m=="path"||m=="compound"){var U=Typr.U.SVGToPath(s.path);
l=L.H.vP({r:U.cmds,s:U.crds},!1)}else if(m=="line"){var S=s.x1,X=s.x2,c=s.y1,y=s.y2;l=L.j.sh.Qa([S,c,X,y],0,!0)}else if(m=="polygon"){var O=s.points,p=[];
for(var C=0;C<O.length;C++)p.push(O[C].x,O[C].y);l=l.concat(L.j.sh.Qa(p,0,!1).slice(2))}else console.log(m,s);
return l};dw.aal=function(s){var m=JSON.parse(i4.default);for(var C=0;C<i4.order.length;C++)m[i4.rm[C]]={t:"VlLs",v:[]};
for(var C=0;C<s.length;C++){var l=s[C],x=l.type,a=l.params,P=l.visible;if(x=="dropShadow"){var o=i4.rm[i4.order.indexOf("DrSh")],G=JSON.parse(i4.Ej[i4.order.indexOf("DrSh")]);
m[o].v.unshift({t:"Objc",v:G});var _=a.dropShadows;if(_.length!=1)throw"e";var j=_[C],U=j.color,S=U.value,X=j.dx,c=j.dy;
G.Clr.v=L.K.gc({o:S.r,z:S.g,S:S.b});G.Opct.v.val=Math.round((U.alpha!=null?U.alpha:1)*100);G.uglg.v=!1;
G.enab.v=P!=null?P:!0;G.lagl.v.val=Math.round(180/Math.PI*Math.atan2(c,-X));G.Dstn.v.val=Math.round(Math.sqrt(X*X+c*c));
G.blur.v.val=Math.round(j.r*2.3)}}return m};dw.DG=function(s,m,l,x,a,P,o,G,_){var j=dw;if(m=="none"){P.add.vstk.fillEnabled.v=!1;
P.add.SoCo={classID:"null",Clr:{t:"Objc",v:L.K.gc({o:0,z:0,S:0})}}}else{var U,S,X;if(m=="solid"){var c=s.color.value;
U="SoCo";S=i4.Rc;var y=JSON.parse(i4.Ej[i4.order.indexOf("SoFi")]);X={t:"Objc",v:y};X.v.Clr.v=L.K.gc({o:c.r,z:c.g,S:c.b})}else if(m=="gradient"){U="GdFl";
S=i4.Ql;var y=JSON.parse(i4.Ej[i4.order.indexOf("GrFl")]),O=y.Grad.v,I,H,b;O.Intr.v=0;var p=s[m],D=p.ref?G.gradients[p.ref]:p.meta.ux.gradientResources,f=["linear","radial"].indexOf(D.type),T=D.stops;
y.Type.v.GrdT=["Lnr","Rdl","Angl"][f];if(f==0){var I=new fz(p.x1,p.y1),H=new fz(p.x2,p.y2);I.x=H.x+.5*(I.x-H.x);
I.y=H.y+.5*(I.y-H.y)}else{var I=new fz(p.cx,p.cy),H=new fz(p.cx+p.r,p.cy)}b=a;if(p.units=="objectBoundingBox"){var R=new ae(x.e,0,0,x.l,x.x,x.y);
I=R.oG(I);H=R.oG(H)}var R=j.r7(p.transform);I=R.oG(I);H=R.oG(H);R=l.clone();R.ms();I=R.oG(I);H=R.oG(H);
L.K.jk(I,H,b,y);var W=[];for(var C=0;C<T.length;C++){var J=T[C],u=J.color,c=u.value,e=u.alpha;if(e==null)e=1;
W.push([J.offset,[c.r/255,c.g/255,c.b/255],e])}L.K.GC(W,O);X={t:"Objc",v:y}}else if(m=="pattern"){U="PtFl";
S=i4._6;var y=JSON.parse(i4.Ej[i4.order.indexOf("patternFill")]),V,i=1,K=0,h=0,F=1;X={t:"Objc",v:y};
var Q=s[m],q=Q.meta.ux,Z=q.uid,E=_["resources/"+Z].buffer,z=iO.D1(E);if(o.W6[Z])V=o.W6[Z];else{var Y=new bU(0,0,Q.width,Q.height),d;
if(Y.Xh()){Y=new bU(0,0,1,1);d=new ArrayBuffer(4)}else{var w=iO.ln(z);if(w.Kw){var A=new jF;w.Gs(E,A);
d=A.cf().buffer}else{var $=w.Gs(E)[0];d=$.data;Y=$.Sb}}V={};V.id=jF.wd()+"-d71c-11e5-b1ae-a548a96e5f9f";
V.name="someImage";V.DH=[new Uint8Array(d),Y];o.FF(V);o.W6[Z]=V}var Y=V.DH[1];y.Algn.v=!0;y.Ptrn.v.Idnt.v=V.id;
if(q.scaleBehavior=="cover"){i=F*Math.max(a.e/Y.e,a.l/Y.l);var N=i;if(q.scale!=null)i*=q.scale;K=a.x-(Y.e*i-a.e)/2;
h=a.y-(Y.l*i-a.l)/2;if(q.offsetX!=null)K+=q.offsetX*Y.e*N;if(q.offsetY!=null)h+=q.offsetY*Y.l*N}else if(q.scaleBehavior=="fill"){i=F*Math.min(a.e,a.l)/Math.max(Y.e,Y.l);
K=a.x-(Y.e*i-a.e)/2;h=a.y-(Y.l*i-a.l)/2}else throw"Unknown scale behaviour";y.Scl.v.val=100*i;y.phase.v.Hrzn.v=Math.round(K);
y.phase.v.Vrtc.v=Math.round(h)}else console.log(m);if(U!=null){P.add[U]={classID:"null"};for(var C=0;
C<S.length;C++){var iQ=S[C];P.add[U][iQ]=X.v[iQ]}}}};function by(){}by.st=function(s,m,l){s=new Uint8Array(s);
var x=g.V_(s,0,s.length),a=new DOMParser,P=a.parseFromString(x,"image/svg+xml"),o=P.getElementsByTagName("style")[0],c=1;
if(o)o=Typr.U.SVG.cssMap(o.textContent);else o={};var G=P.firstChild;while(G.tagName!="svg")G=G.nextSibling;
var _=new bU(0,0,100,100),j=G.getAttribute("viewBox"),U=G.getAttribute("width"),S=G.getAttribute("height");
if(j){var X=by.S7(j);_.x=X[0];_.y=X[1];_.e=X[2];_.l=X[3]}else if(U!=null||S!=null){_.e=U!=null?parseFloat(U):parseFloat(S);
_.l=S!=null?parseFloat(S):parseFloat(U)}_=L.H.LU(_);while(l&&Math.max(_.e*c,_.l*c)<Math.max(l[0],l[1]))c++;
while(l==null&&Math.max(_.e,_.l)*c>8192)c*=.5;m.VK=!0;m.e=~~(_.e*c);m.l=~~(_.l*c);m.buffer=L.B(m.e*m.l*4);
var y=new ae(c,0,0,c,-_.x*c,-_.y*c),O={tI:by.sJ(G),aqZ:o};by.iV(P,G.children,m,y,O,new ae,0);if(m.G.length==0){var p=m.d2();
p.qW("Layer");m.G.push(p)}};by.S7=function(s){var m=" ";if(s.indexOf(",")!=-1)m=",";return s.split(m).map(parseFloat)};
by.iV=function(s,m,l,x,a,P,o){var G=by,_=["display","opacity","fill-opacity"];for(var j=0;j<m.length;
j++){var U=m[j],S=U.tagName,X=U.getAttribute("id"),c=G.sJ(U,a.aqZ),O=13,I=1,R="clip-path",W=null;for(var y in a.tI)if(_.indexOf(y)==-1&&c[y]==null)c[y]=a.tI[y];
if(c["font-size"])O=G.nG(c["font-size"],O);if(U.getAttribute("dx"))x.sI+=G.nG(U.getAttribute("dx"),O);
if(U.getAttribute("dy"))x.bW+=G.nG(U.getAttribute("dy"),O);var p=G.BH(U);p.concat(x);var D=U.getAttribute("visibility"),f=c.display,T=l.d2();
if(D=="hidden"||f=="none")T.tG(!1);T.qW(X!=null?X.split(":::")[0]:"Layer");if(c.opacity)I*=parseFloat(c.opacity);
if(c["fill-opacity"]){var H=parseFloat(c["fill-opacity"]);if(H!=0)I*=H}T.opacity=Math.round(255*I);if(c["mix-blend-mode"]){var b=aA.jT.indexOf(c["mix-blend-mode"]);
if(b!=-1)T.TR=aA.EB[b]}if(U.getAttribute(R)==null)R="mask";if(U.getAttribute(R)!=null){var J=U.getAttribute(R);
J=J.slice(4,J.length-1);var u=s.getElementById(J.slice(1));if(u){var e=u.children;W=l.d2();W.qW("Clip-Path"+(X?": "+X:""));
W.add.lsct=o<2?hN.yF:hN.fs;W.TR="pass";W.Yy=24;var Q=W.add.vmsk=new t.sD;l.G.push(l.b8());var q=[];if(u.getAttribute(R)){var J=u.getAttribute(R);
J=J.slice(4,J.length-1);q=s.getElementById(J.slice(1)).children}for(var C=0;C<e.length;C++){var Z=G.BH(e[C]);
Z.concat(p);var E=G.m1(s,e[C],!1).slice(2);L.j.G9(E,Z);Q.T=Q.T.concat(E)}for(var C=0;C<q.length;C++){var Z=G.BH(e[C]);
Z.concat(p);var E=G.m1(s,q[C],!1).slice(2);for(var z=0;z<E.length;z++)if(E[C].aZ!=null)E[C].aZ=3;L.j.G9(E,Z);
Q.T=Q.T.concat(E)}W.GK();W.sN();o++}}if(S=="g"||S=="a"||S=="svg"||S=="switch"||(S=="text"||S=="textPath")&&U.children.length>0){if(S=="text")P=G.mO(U,P);
var V=U.getAttribute("viewBox"),Y=U.getAttribute("width"),d=U.getAttribute("height");if(V&&Y&&d){var w=by.S7(V),A=G.mO(U),$=new ae;
$.translate(-w[0],-w[1]);$.scale(parseFloat(Y)/w[2],parseFloat(d)/w[3]);$.translate(A.sI,A.bW);$.concat(p);
p=$}var i=U.children.length,K=a.tI;a.tI=c;var h=S!="text"&&S!="textPath"||i>1;if(h){var F=T.p$();T.add.lsct=o<2&&F&&(X==null||!X.endsWith(":::"))?hN.yF:hN.fs;
T.TR="pass";T.Yy=24;T.tG(F);l.G.push(l.b8())}G.iV(s,U.children,l,p,a,P,o+1);if(h)l.G.push(T);else{var N=l.G[l.G.length-1];
N.opacity=T.opacity;N.TR=T.TR}a.tI=K}else if(S=="use"){var $=G.mO(U);$.concat(p);var iQ=G.lQ(U),jB=s.getElementById(iQ.slice(1)),K=a.tI;
a.tI=c;G.iV(s,[jB],l,$,a,P,o+1);a.tI=K}else if(S=="path"||S=="rect"||S=="circle"||S=="ellipse"||S=="polygon"||S=="polyline"||S=="line"){T.Yy|=16;
T.add.vmsk=new t.sD;T.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));T.add.vstk.strokeEnabled.v=!1;
var k=T.add.vstk,Q=T.add.vmsk,ab=c.fill,f_=ab=="none"||c["fill-opacity"]&&parseFloat(c["fill-opacity"])==0;
Q.T=G.m1(s,U,c["fill-rule"]=="evenodd",f_);L.j.G9(Q.T,p);var fc=L.j.dj(Q.T),g8=c.stroke,bH=c["stroke-width"],cR=c["stroke-dasharray"],hr=c["stroke-linejoin"],h$=c["stroke-linecap"],gE=c["paint-order"];
if(g8==null||g8=="none"||g8=="null"){}else{var d8=G.Zy(s,g8,p,fc),hG=["SoFi","GrFl","patternFill"].indexOf(d8.type),f7=d8.Z.v.Opct.v,e5=1;
if(f7.val!=100){T.opacity=Math.round(T.opacity*f7.val/100);f7.val=100}var hX=[i4.Rc,i4.Ql,i4._6][hG],fB=k.strokeStyleContent.v={classID:i4.Ah.Lk[hG]};
for(var C=0;C<hX.length;C++)fB[hX[C]]=d8.Z.v[hX[C]];bH=bH?parseFloat(bH):1;if(gE&&gE.replace(/\s\s+/g," ").slice(0,11)=="stroke fill"){e5=2;
bH/=2}k.strokeEnabled.v=!0;if(hr)k.strokeStyleLineJoinType.v.strokeStyleLineJoinType=i4.Ah.join[["miter","round","bevel"].indexOf(hr)];
if(h$)k.strokeStyleLineCapType.v.strokeStyleLineCapType=i4.Ah.S5[["butt","round","square"].indexOf(h$)];
k.strokeStyleLineWidth.v.val=bH*r.Q.LL(p);k.strokeStyleLineAlignment.v.strokeStyleLineAlignment=i4.Ah.Es[e5];
k.strokeStyleOpacity.v.val=100*(c["stroke-opacity"]?parseFloat(c["stroke-opacity"]):1);if(cR!=null&&cR!="none")k.strokeStyleLineDashSet.v=jo.Xj(cR.split(",").map(parseFloat),1/bH)}if(f_){T.add.vstk.fillEnabled.v=!1;
T.add.SoCo={classID:"null",Clr:{t:"Objc",v:L.K.gc({o:0,z:0,S:0})}}}else{var d8=G.Zy(s,ab,p,fc),g9=null,cL=null;
if(d8.type=="SoFi"){g9="SoCo";cL=i4.Rc}if(d8.type=="GrFl"){g9="GdFl";cL=i4.Ql}if(d8.type=="patternFill"){g9="PtFl";
cL=i4._6}if(g9!=null){var f7=d8.Z.v.Opct.v;if(f7.val!=100){T.opacity=Math.round(T.opacity*f7.val/100);
f7.val=100}T.add[g9]={classID:"null"};for(var C=0;C<cL.length;C++){var y=cL[C];T.add[g9][y]=d8.Z.v[y]}}}if(c.filter&&c.filter!="none"){var bf=c.filter;
bf=bf.slice(5,bf.length-1);if(s.getElementById(bf)){var gF=s.getElementById(bf).children[0];if(gF.tagName=="feGaussianBlur"){T.add.vmsk.l2=parseFloat(gF.getAttribute("stdDeviation"))*r.Q.LL(p)}}}T.GK();
T.sN(l);l.G.push(T)}else if((S=="text"||S=="tspan")&&U.textContent!=""){P=G.mO(U,P);var $=P.clone(),hZ=0;
$.concat(p);if(U.children.length>0){var iC=G.sJ(U.children[0],a.aqZ);for(var y in iC)if(_.indexOf(y)==-1)c[y]=iC[y]}var ax=c["xml:space"],e7=U.textContent;
if(ax=="preserve")e7=e7.replace(/\t/g," ").replace(/\n/g," ");if(X==null)T.qW(e7);T.add.lnsr="rend";
T.add.TySh=ex.mA(0,0);T.add.TySh.fn=new bU(0,0,100,100);T.add.TySh.A=$.clone();var dO=T.add.TySh.x5;
ex.A6(dO,0,e7);var ab=c.fill,h1=c["font-weight"],hL=c["font-family"],jl=c["text-decoration"],g8=c.stroke,bH=c["stroke-width"],gT=c["dominant-baseline"];
if(gT=="text-before-edge")hZ=O;else if(gT=="middle")hZ=O/2;else if(gT=="hanging")hZ=O;if(hZ!=0)T.add.TySh.A.translate(0,hZ);
var j6=ex.f9(dO,0,1);if(ab&&ab!="none"){var aP=CSS.Eq(ab);j6.m$.FillColor={Type:1,Values:[1,aP.o/255,aP.z/255,aP.S/255]}}if(jl=="underline")j6.m$.Underline=!0;
j6.m$.FontSize=Math.round(O);ex.Cl(j6,"LiberationSans");if(h1=="bold")ex.Cl(j6,"LiberationSans-Bold");
if(hL){hL=hL.split(",")[0].trim();if(hL[0]=="\"")hL=hL.slice(1);if(hL[hL.length-1]=="\"")hL=hL.slice(0,hL.length-1);
var h7=hL+":"+(h1?h1:"normal"),fa={"'DejaVu Sans':normal":"DejaVuSans","'DejaVu Sans':bold":"DejaVuSans-Bold","'Nimbus Sans L':normal":"NimbusSanL-Reg","'Nimbus Sans L':bold":"NimbusSanL-Bol","Libre Franklin:300":"LibreFranklin-Light","Libre Franklin:400":"LibreFranklin-Regular","Libre Franklin:500":"LibreFranklin-Medium","Libre Franklin:600":"LibreFranklin-SemiBold","Libre Franklin:700":"LibreFranklin-Bold"};
if(fa[h7])ex.Cl(j6,fa[h7]);else ex.Cl(j6,hL)}if(c["text-anchor"])j6.AO.Justification=["start","end","middle"].indexOf(c["text-anchor"]);
ex.j3(dO,0,e7.length,j6);if(g8==null||g8=="none"){}else{var h4=JSON.parse(i4.Ej[i4.order.indexOf("FrFX")]);
h4.Clr.v=L.K.gc(CSS.Eq(g8));h4.Sz.v.val=Math.round(parseFloat(bH)*r.Q.LL($));var cA=JSON.parse(i4.default);
for(var C=0;C<i4.order.length;C++)cA[i4.rm[C]]={t:"VlLs",v:[]};cA.frameFXMulti.v.push({t:"Objc",v:h4});
T.add.lmfx=cA}l.G.push(T)}else if(S=="image"){var iQ=G.lQ(U);if(iQ.slice(0,4)=="data"){var jg=iO.HM(iQ),cS=jg,iT=l.PZ(cS,T.getName(),0,0);
iT.Yy=T.Yy;T=iT;var cf=T.rect.clone();cf.x=cf.y=0;var ir=U.getAttribute("width"),bl=U.getAttribute("height");
if(ir)cf.e=parseFloat(ir);if(bl)cf.l=parseFloat(bl);var gp=G.mO(U);gp.concat(p);var j4=L.H.$$(cf).s;
L.H.A(j4,gp,j4);T.add.SoLd.Trnf=r.Q.ZG(j4);T.add.SoLd.nonAffineTransform=r.Q.ZG(j4);T.y2(l,!1);l.G.push(T)}}else console.log("unknown tag: "+S,U.children.length,U.textContent.length);
if(W!=null){l.G.push(W);o--}}};by.m1=function(s,m,l,x){var a=by,P=[{type:6},{type:8,all:0}],o=m.tagName;
if(o=="use"){var G=a.lQ(m),_=s.getElementById(G.slice(1)),j=new ae;if(_.tagName!="rect")j=a.mO(_);j.concat(a.BH(_));
P=a.m1(s,_,l,x);L.j.G9(P,j)}else if(o=="path"){var U=m.getAttribute("d");if(U==null)return P;var S=Typr.U.SVGToPath(U);
P=L.H.vP({s:S.crds,r:S.cmds},l,x)}else if(o=="rect"){var X=m.getAttribute("rx"),c=a.mO(m);P=L.j.sh.Rect(c.sI,c.bW,parseFloat(m.getAttribute("width")),parseFloat(m.getAttribute("height")),X?parseFloat(X):0)}else if(o=="circle"||o=="ellipse"){var y=[0,0,0,0],O=["cx","cy","rx","ry","r"];
for(var C=0;C<5;C++){var p=m.getAttribute(O[C]);if(p){p=parseFloat(p);if(C<4)y[C]=p;else y[2]=y[3]=p}}P=L.j.sh.$d(y[0]-y[2],y[1]-y[3],2*y[2],2*y[3])}else if(o=="polygon"||o=="polyline"||o=="line"){var D;
if(o=="line")D=[m.getAttribute("x1"),m.getAttribute("y1"),m.getAttribute("x2"),m.getAttribute("y2")].map(parseFloat);
else D=m.getAttribute("points").trim().replace(/\s\s+/g," ").split(",").join(" ").split(" ").map(parseFloat);
P=L.j.sh.Qa(D,0,o!="polygon")}return P};by.nG=function(s,m){if(s.charAt(s.length-1)=="m")return m*parseFloat(s.slice(0,s.length-2));
else return parseFloat(s)};by.Zy=function(s,m,l,x){var a,P,o=by,G=JSON.parse(i4.Ej[i4.order.indexOf("SoFi")]),_=m!=null?m.indexOf("("):-1;
if(_!=-1){var j=m.indexOf(")"),U=m.slice(0,_).trim(),S=m.slice(_+1,j).trim();if(S.charAt(0)=="'")S=S.slice(1,S.length-1);
if(U=="url"){if(S.charAt(0)=="#"){var X=s.getElementById(S.slice(1));if(X&&X.tagName.toLowerCase().endsWith("gradient")){var c=o.Dz(s,X,l,x);
a="GrFl";P={t:"Objc",v:c}}else{a="SoFi";P={t:"Objc",v:G}}}else console.log("unknown url",S)}else if(U=="rgb"||U=="rgba"){a="SoFi";
P={t:"Objc",v:G};P.v.Clr.v=L.K.gc(CSS.Eq(m));if(U=="rgba")P.v.Opct.v.val=Math.round(100*parseFloat(m.split(",").pop()))}else console.log("unknown fill",m)}else{a="SoFi";
P={t:"Objc",v:G};P.v.Clr.v=L.K.gc(CSS.Eq(m))}return{type:a,Z:P}};by.BH=function(s){var m=new ae,l=s.getAttribute("transform");
if(l)m=by.R5(l);var x=s.getAttribute("style");if(x!=null){var a={};by.uI(a,x,["transform"]);x=a.transform;
if(x)m.concat(by.R5(x))}return m};by.mO=function(s,m){var l=new ae,x=s.getAttribute("x"),a=s.getAttribute("y");
if(x)l.sI=parseFloat(x);else if(m)l.sI=m.sI;if(a)l.bW=parseFloat(a);else if(m)l.bW=m.bW;return l};by.R5=function(s){var m=Typr.U.SVG.readTrnf(s);
return new ae(m[0],m[1],m[2],m[3],m[4],m[5])};by.sJ=function(s,m){var l={},x="fill-rule fill stroke stroke-width stroke-dasharray stroke-opacity stroke-linejoin stroke-linecap font-size font-weight font-family text-decoration text-anchor dominant-baseline stop-color stop-opacity filter display opacity fill-opacity paint-order mix-blend-mode xml:space".split(" ");
for(var C=0;C<x.length;C++){var a=s.getAttribute(x[C]);if(a!=null&&a!="inherit")l[x[C]]=a}var P=s.getAttribute("class");
if(m!=null&&P!=null&&m["."+P]!=null)by.uI(l,m["."+P],x);var o=s.getAttribute("id");if(m!=null&&o!=null&&m["#"+o]!=null)by.uI(l,m["#"+o],x);
var G=s.getAttribute("style");if(G!=null)by.uI(l,G,x);return l};by.uI=function(s,m,l){m=m.trim().split(";");
for(var C=0;C<m.length;C++){var x=m[C].split(":"),a=x[0]?x[0].trim():"",P=x[1]?x[1].trim():"";for(var o=0;
o<l.length;o++)if(a==l[o]&&P!="inherit")s[l[o]]=P}};by.lQ=function(s){var m=s.getAttribute("xlink:href");
if(m==null)m=s.getAttribute("href");if(m==null)m=s.getAttribute("xl:href");return m};by.Dz=function(s,m,l,x){var a=by;
function P(W,J,u){var e=m.getAttribute(W);if(e==null)return;var Q=parseFloat(e);if(e.endsWith("%"))Q*=(u?x.e:x.l)/100;
if(u)J.x=Q;else J.y=Q}var o=new ae,G=m.getAttribute("gradientTransform");if(G)o=a.R5(G);o.concat(l);
var _=JSON.parse(i4.Ej[i4.order.indexOf("GrFl")]),j=_.Grad.v;j.Intr.v=0;var U=m.tagName,S=new fz(0,0),X=new fz(x.e,0);
if(U=="linearGradient"){_.Type.v.GrdT="Lnr";P("x1",S,!0);P("y1",S,!1);P("x2",X,!0);P("y2",X,!1);S.x=X.x+.5*(S.x-X.x);
S.y=X.y+.5*(S.y-X.y)}if(U=="radialGradient"){_.Type.v.GrdT="Rdl";if(m.getAttribute("cx"))S.x=parseFloat(m.getAttribute("cx"));
if(m.getAttribute("cy"))S.y=parseFloat(m.getAttribute("cy"));X.Qk(S.x,S.y);if(m.getAttribute("r"))X.x+=parseFloat(m.getAttribute("r"))}if(m.getAttribute("gradientUnits")=="userSpaceOnUse"){S=o.oG(S);
X=o.oG(X)}else{S.x=x.x+S.x*x.e;S.y=x.y+S.y*x.l;X.x=x.x+X.x*x.e;X.y=x.y+X.y*x.l}L.K.jk(S,X,x,_);var c=m.children;
if(c.length==0){var y=a.lQ(m);if(y==null)throw"gradient has no stops";var O=s.getElementById(y.slice(1));
if(O==null){console.log(y.slice(1));throw"e"}var p=a.Dz(s,O,o,x);_.Grad=p.Grad}else{var D=[];for(var C=0;
C<c.length;C++){var f=c[C],T=a.sJ(f),I=T["stop-color"],H=T["stop-opacity"],b=f.getAttribute("offset");
if(I==null)I="#000000";if(H==null)H="1";var R=b?parseFloat(b):0;I=CSS.Eq(I);D.push([R,[I.o/255,I.z/255,I.S/255],parseFloat(H)])}L.K.GC(D,j)}return _};
by.v1=function(s,m,l){var x=[],a=by;a.fc=m.ae4?"\t":"";var P=m.agz,o=m.aoc;x.push("<svg version=\"1.2\" baseProfile=\"tiny-ps\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 "+s.e+" "+s.l+"\" width=\""+P+"\" height=\""+o+"\">");
x.push(a.Io(1)+"<title>"+by.sp(s.name.split(".")[0])+"</title>");var G={rt:[],tH:[],g8:0,MT:0,A9:0,Yi:{},J3:{},es:0,ei:{},aL:{},HV:0,dC:[]};
by.Fp(s,G,s.root.children,1,m,l);if(G.rt.length!=0){x.push(a.Io(1)+"<defs>");x=x.concat(G.rt);x.push(a.Io(1)+"</defs>")}x.push(a.Io(1)+"<style>");
x.push(a.Io(2)+"tspan { white-space:pre }");for(var _ in G.ei)x.push(a.Io(2)+"."+_+" { "+G.ei[_]+" } ");
x.push(a.Io(1)+"</style>");x=x.concat(G.tH);x.push("</svg>");x=x.join(m.ae4?"\n":"");if(a.mQ){console.log(a.mQ);
var j="SVGParser.gen.db = [\n";for(var C=0;C<a.mQ.length;C++){var U=a.mQ[C];j+="{\n\tnam: \""+U.aR+"\",\n\tpts: [\n";
for(var S=0;S<U.DF.length;S++){var X=U.DF[S];j+="\t\t[\""+X[0]+"\", { cmds: "+JSON.stringify(X[1].r)+", crds:"+JSON.stringify(X[1].s)+" } ]"+(S==U.DF.length-1?"":",")+"\n"}j+="\t]\n}"+(C==a.mQ.length-1?"":",")+"\n"}j+="]\n";
console.log(j)}return g.iG(x)};by.fc="";by.Io=function(cE){var s="";for(var C=0;C<cE;C++)s+=by.fc;return s};
by.YO=function(cE){return""+parseFloat(cE.toFixed(3))};by.Fp=function(s,m,l,x,a,P){var o=by;function G(U,e5){var W=U.add.lmfx;
if(W)W=W[e5].v[0];if(W)W=W.v;if(W&&!W.enab.v)W=null;return W}function _(U,O){var aP=G(U,"frameFXMulti");
if(aP){var h7=aP.Sz.v.val;if(aP.Styl.v.FStl=="OutF"){O.push("paint-order:stroke fill markers");h7*=2}O.push("stroke: "+CSS.mf(aP.Clr.v));
O.push("stroke-width: "+h7);O.push("stroke-linejoin: round;")}}for(var j=0;j<l.length;j++){var U=l[j].i,S=U.add.lsct,X=U.add.vmsk,c=U.add.vstk,y=U.add.TySh;
if(X&&!X.isEnabled)X=c=null;var O=[];if(!a.hidden&&!U.p$())continue;var p=U.opacity/255,D=U.add.iOpa?U.add.iOpa/255:1;
if(p!=1)O.push("opacity: "+o.YO(p));if(D!=1)O.push("fill-opacity: "+o.YO(D));if(U.TR!="norm"){var f=aA.jT[aA.EB.indexOf(U.TR)];
if(f!=null)O.push("mix-blend-mode: "+f)}if(!U.p$())O.push("display: none");var T=[],I=[],H=U.getName(),b=H.indexOf(" .");
if(b!=-1){I.push(H.slice(b+2));H=H.slice(0,b)}if(a.names)T.push("id=\""+o.sp(H)+"\"");var R=jo.pL(U.add.lmfx,U.add),W=R[0],J=R[1];
if(U.gu()){var u=l[j].children;if(!(u.length==1&&u[0].i.add.SoLd&&!a.XG)){if(o.mQ&&U.getName().split("-").length==3){o.mQ.push({aR:U.getName(),xD:0,DF:[]})}by.I3(U,X,m,T);
if(O.length!=0)T.push("style=\""+O.join(";")+"\"");m.tH.push(o.Io(x)+"<g "+o.Yx(T,I)+">");o.Fp(s,m,u,x+1,a,P);
m.tH.push(o.Io(x)+"</g>")}}else if(U.Ee()&&X==null){var e=new bU(0,0,s.e,s.l);o.cm(O,U.add,m,e);if(O.length!=0)T.push("style=\""+O.join(";")+"\"");
m.tH.push(o.Io(x)+"<rect width=\""+s.e+"\" height=\""+s.l+"\" "+o.Yx(T,I)+" />")}else if(X&&U.add.SoLd==null){var e=L.j.dj(X.T,null,!0),Q=L.j.E_(X.T);
if(Q.Im!=0){T.push("fill-rule=\"evenodd\"")}var q=Q.sY;o.cm(O,U.add,m,e);if(O.length!=0){var Z=O.join(";"),E=m.aL[Z];
if(E==null){E="shp"+m.HV;m.HV++;m.aL[Z]=E;m.ei[E]=Z}I.push(E)}m.tH.push(o.Io(x)+"<path "+o.Yx(T,I)+" d=\""+q+"\" />");
if(o.mQ&&o.mQ[o.mQ.length-1]){var z=L.H.vt(X.T);z.s=z.s.map(Math.round);var V=o.mQ[o.mQ.length-1];V.xD+=JSON.stringify(z).length;
V.DF.push([O[0].split("#").pop(),z])}}else if(y&&a.a7d){var Y=y.x5,d=new hJ(Y,P),w=null;if(W)w=CSS.mf(W.Clr.v);
if(J){var e=U.rect.clone();o.m2(J,m,e);w=" url(#grd"+m.g8+")"}if(w)T.push("fill=\""+w+"\"");_(U,O);if(O.length!=0)T.push("style=\""+O.join(";")+"\"");
var A=b3.y8(d,y),$=L.H.FP(A);for(var i in $){if(w==null)T.push("fill=\""+i+"\"");var K=$[i],q=Typr.U.pathToSVG({crds:K.s,cmds:K.r},2);
m.tH.push(o.Io(x)+"<path "+o.Yx(T,I)+" "+o.lq(y)+" d=\""+q+"\" />");if(w==null)T.pop()}}else if(y&&!a.alf){var Y=y.x5,h=y.A.clone(),w=null,fc=0,g8=0;
if(ex.$i(Y)==1){var F=ex.f9(Y,0,0).AO.Justification,N=0,iQ=ex.vc(Y)[2];if(F==2)N=iQ/2;if(F==1)N=iQ;h.translate(N,0)}O.push("transform: "+o.n2(h));
var jB=ex.Ep(Y),k=Y.EngineDict.ParagraphRun,ab=k.RunArray,f_=k.RunLengthArray;_(U,O);if(O.length!=0)T.push("style=\""+O.join(";")+"\"");
m.tH.push(o.Io(x)+"<text "+o.Yx(T,I)+" >");if(W)w=CSS.mf(W.Clr.v);if(J){var e=U.rect.clone();e.x-=h.sI;
e.y-=h.bW;o.m2(J,m,e);w=" url(#grd"+m.g8+")"}for(var C=0;C<ab.length;C++){var bH=[],cR=f_[C],hr=jB.slice(fc,fc+cR-1),h$=ex.f9(Y,fc,fc),gE=h$.dN[h$.m$.Font].Name;
if(m.dC.indexOf(gE)==-1)m.dC.push(gE);CSS.a2O(bH,h$,y.A,!0,!0,w);var d8=h$.m$.FontSize*1.12;if(C==0)d8=ex.$i(Y)==0?0:h$.m$.FontSize;
g8+=d8;if(hr!=""){var Z=bH.join(";"),E=m.aL[Z],f7="";if(E==null){E="txt"+m.HV;m.HV++;m.aL[Z]=E;m.ei[E]=Z}var hG=h$.m$.Tracking;
if(hG!=null&&hG!=0){hG=Math.round(hG*h$.m$.FontSize/1e3);f7=" dx=\"0";for(var hX=1;hX<hr.length;hX++)f7+=" "+hG;
f7+="\" "}m.tH.push(o.Io(x+1)+"<tspan x=\"0\" y=\""+o.YO(g8)+"\" class=\""+E+"\""+f7+">"+o.sp(hr)+"</tspan>")}fc+=cR}m.tH.push(o.Io(x)+"</text>")}else if(U.add.SoLd&&a.XG){var fB=U.add.SoLd,e5=fB.Idnt.v,g9=0,cL=fB.Crop?fB.Crop.v:null;
if(m.J3[e5]!=null)g9=m.J3[e5];else{m.es++;g9=m.es;m.J3[e5]=m.es;var bf=s.WN(e5,cL),ax="";if(bf==null)return;
var gF=bf.H6,iC=iO.D1(bf.raw.buffer);if(iC=="pdf"){var e7=new jF("h");iO.ln("PDF").Gs(bf.raw.buffer,e7);
e7.Bi();e7.qn();e7.F();e7.nZ();if(fB.Crop&&fB.Crop.v==1){r.Bs.sc(e7,e7.root.E2(e7,!0))}var dO=iO.ln("SVG").yd(e7,e7.e,e7.l,null,{dC:P});
ax="data:image/svg+xml;base64,"+iO.pB(dO)}else if(iC=="jpg"||iC=="png"||iC=="gif"||iC=="svg"){var h1={jpg:"image/jpg",png:"image/png",jpg:"image/jpg",svg:"image/svg+xml"};
ax="data:"+h1[iC]+";base64,"+iO.pB(bf.raw.buffer)}else{ax=iO.kI(gF[0].buffer,gF[1].e,gF[1].l)}m.rt.push(o.Io(2)+"<image width=\""+gF[1].e+"\" height=\""+gF[1].l+"\" id=\"img"+g9+"\" href=\""+ax+"\"/>")}var hL=L.V.wi(fB),jl=[];
by.I3(U,X,m,jl);if(jl.length!=0)m.tH.push(o.Io(x)+"<g "+o.Yx(jl,I)+">");if(O.length!=0)T.push("style=\""+O.join(";")+"\"");
var gT=o.Yx(T,I);m.tH.push(o.Io(x)+"<use "+gT+" href=\"#img"+g9+"\" transform=\""+o.n2(hL)+"\"/>");if(jl.length!=0)m.tH.push(o.Io(x)+"</g>")}else if(!U.rect.Xh()&&(a.XG||y)){if(O.length!=0)T.push("style=\""+O.join(";")+"\"");
var gT=o.Yx(T,I),hZ=U.buffer;if(W)hZ=jo.rG(hZ,W,U.rect);var j6=U.rect;m.es++;var ax=iO.kI(hZ.buffer,j6.e,j6.l,"png",null,!0);
m.rt.push(o.Io(2)+"<image "+o.lq(y)+" width=\""+U.rect.e+"\" height=\""+U.rect.l+"\" id=\"img"+m.es+"\" href=\""+ax+"\"/>");
m.tH.push(o.Io(x)+"<use "+gT+" href=\"#img"+m.es+"\" x=\""+j6.x+"\" y=\""+j6.y+"\" />")}}};by.lq=function(s){if(s==null)return"";
var m=s.x5,l=ex.Ep(m);l=by.sp(l.slice(0,l.length-1));return"aria-label=\""+l+"\" "};by.Yx=function(s,m){if(m.length!=0)s.push("class=\""+m.join(" ")+"\"");
return s.join(" ")};by.sp=function(s){return String(s).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u0022/g,"&quot;")};
by.n2=function(s){var m=[s.lz,s.S,s.In,s.Am,s.sI,s.bW].map(by.YO);return"matrix("+m.join(",")+")"};by.I3=function(s,m,l,x){var a=by;
if(m||s.add.artb){var P;if(m)P=L.j.E_(m.T).sY;else{var o=s.wy(),G=L.H.$$(o);P=Typr.U.pathToSVG({crds:G.s,cmds:G.r},2)}l.A9++;
x.push("clip-path=\"url(#cp"+l.A9+")\"");l.rt.push(a.Io(2)+"<clipPath clipPathUnits=\"userSpaceOnUse\" id=\"cp"+l.A9+"\">");
l.rt.push(a.Io(3)+"<path d=\""+P+"\" />");l.rt.push(a.Io(2)+"</clipPath>")}};by.cm=function(s,m,l,x){var a=by,P=m.vstk,o=m.vmsk,G=m.lmfx;
if(o&&o.l2!=0){var _=a.YO(o.l2);if(l.Yi[_]==null){l.MT++;l.Yi[_]=l.MT;l.rt.push(a.Io(2)+"<filter x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" id=\"flt"+l.MT+"\"> <feGaussianBlur stdDeviation=\""+_+"\" /> </filter>")}s.push("filter: url(#flt"+l.Yi[_]+")")}var j=jo.pL(G,m),U=j[0],S=j[1];
if(P&&!P.fillEnabled.v)s.push("fill: none");else if(U){var X=CSS.mf(U.Clr.v);s.push("fill: "+X)}else if(S){a.m2(S,l,x);
s.push("fill: url(#grd"+l.g8+")")}if(P==null||!P.strokeEnabled.v)P=jo.eE(G);if(P&&P.strokeEnabled.v){var c=P.strokeStyleContent.v,y=c.classID;
if(y=="solidColorLayer")s.push("stroke: "+CSS.mf(c.Clr.v));else{a.m2(c,l,x);s.push("stroke: url(#grd"+l.g8+")")}var O=i4.Ah.S5.indexOf(P.strokeStyleLineCapType.v.strokeStyleLineCapType),p=i4.Ah.join.indexOf(P.strokeStyleLineJoinType.v.strokeStyleLineJoinType),D=P.strokeStyleOpacity.v.val/100,f=P.strokeStyleLineWidth.v.val,T=i4.Ah.Es.indexOf(P.strokeStyleLineAlignment.v.strokeStyleLineAlignment);
if(T==2){f*=2;s.push("paint-order:stroke fill markers")}var I=P.strokeStyleLineDashSet.v,H=[];for(var C=0;
C<I.length;C++)H.push(Math.round(I[C].v.val*f));if(O!=0)s.push("stroke-linecap:"+["butt","round","square"][O]);
if(p!=0)s.push("stroke-linejoin:"+["miter","round","bevel"][p]);if(D!=1)s.push("stroke-opacity:"+a.YO(D));
if(f!=1)s.push("stroke-width: "+a.YO(f));if(H.length!=0)s.push("stroke-dasharray: "+H.join(","))}};by.m2=function(s,m,l){m.g8++;
var x=by,a=s.Grad.v,P=JSON.parse(JSON.stringify(a.Clrs.v)),o=JSON.parse(JSON.stringify(a.Trns.v)),G=s.Ofst.v,_=s.Type.v.GrdT,j=_=="Rdl"?1:0,U=(j==1?"radial":"linear")+"Gradient",S=L.K.s8(s,l);
if(j==0){S[0].x=S[1].x+2*(S[0].x-S[1].x);S[0].y=S[1].y+2*(S[0].y-S[1].y)}var X=x.Io(2)+"<"+U+" id=\"grd"+m.g8+"\" gradientUnits=\"userSpaceOnUse\" ";
if(j==0)m.rt.push(X+" x1=\""+x.YO(S[0].x)+"\" y1=\""+x.YO(S[0].y)+"\" x2=\""+x.YO(S[1].x)+"\" y2=\""+x.YO(S[1].y)+"\">");
if(j==1)m.rt.push(X+" cx=\""+x.YO(S[0].x)+"\" cy=\""+x.YO(S[0].y)+"\" r=\""+x.YO(fz.rv(S[0],S[1]))+"\">");
if(_=="Rflc"){for(var c=0;c<2;c++){var y=c==0?P:o;for(var C=y.length-1;C>=0;C--){var O=y[C];O.v.Lctn.v=2048+(O.v.Lctn.v>>>1);
var p=JSON.parse(JSON.stringify(O));p.v.Lctn.v=4096-p.v.Lctn.v;y.push(p)}y.sort(function(H,b){return H.v.Lctn.v-b.v.Lctn.v})}}var D=s.Rvrs.v;
if(D){P.reverse();o.reverse()}for(var C=0;C<P.length;C++){var f=P[C].v,T=C<o.length?o[C].v.Opct.v.val/100:1,T=T==1?"":"stop-opacity=\""+x.YO(T)+"\"",I=f.Lctn.v/4096;
if(D)I=1-I;m.rt.push(x.Io(3)+"<stop offset=\""+x.YO(I)+"\" stop-color=\""+CSS.mf(f.Clr.v)+"\" "+T+" />")}m.rt.push(x.Io(2)+"</"+U+">")};
by.sh=function(s,m,l,x,a){var P=[],o=by.sh,G=!1,_={h_:s,Cm:m,ae:[!0,!0,!0],yv:!1,O$:l,aqy:0};_.Nk=Math.round(Math.max(s,m)*(.02+o.i1(_)*.03));
_.J6=o.aoz(_);_.cI=o.afU(_.J6,(o.i1(_)<.5?-1:1)*(.2+o.i1(_)*.3));if(o.i1(_)<.5){var j=_.J6;_.J6=_.cI;
_.cI=j}_.a9U=o.i1(_)<.4&&o.ahE(_.cI,{o:1,z:1,S:1})>.3;_.amh=o.i1(_)<.5?0:1;P.push("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 "+s+" "+m+"\" width=\""+s+"\" height=\""+m+"\">");
_.Vn=x[Math.floor(o.PO(_)*x.length)];_.zN=x[Math.floor(o.PO(_)*x.length)];P.push("<style>");P.push("@font-face { font-family: "+_.Vn[2]+"; src: url(rsrc/fonts/"+_.Vn[5]+"); }");
P.push("@font-face { font-family: "+_.zN[2]+"; src: url(rsrc/fonts/"+_.zN[5]+"); }");P.push("</style>");
var U=[0,0,s,m],S=U;if(a==null)P.push("<path style=\"fill: "+o.hn(_.J6)+"\" d=\""+o.Rect(U[0],U[1],U[2]-U[0],U[3]-U[1])+"\" id=\"Background\" />");
else{_.yv=!0;o.ON(_,U,P,a)}if(o.i1(_)<.25&&!_.yv){_.ae[0]=_.ae[2]=!1;o.a20(U,_,P);S=U}else if(o.i1(_)<.25||_.yv)S=U;
else{var X=.52+o.i1(_)*.2;if(o.i1(_)<.5)X=1-X;var c=U.slice(0),y=U.slice(0);if(o.i1(_)<.5)c[2]=y[0]=Math.round(X*s);
else c[3]=y[1]=Math.round(X*m);if(o.i1(_)<.5){var j=c;c=y;y=j}S=c;o.a0w(_,y,P,a)}o.a0C(_,S,P);P.push("</svg>");
P=P.join("\n");var O=L.B(Math.round(P.length*1.5)),p=g.v_(P,O,0);return[O.buffer.slice(0,p),_.CI]};by.sh.a20=function(s,m,l){var x=by.sh,a=s[2]-s[0],P=s[3]-s[1];
if(x.i1(m)<.5){l.push("<path id=\"Border\" style=\"fill: "+x.hn(m.cI)+"\" d=\""+x.aoS(s[0],s[1],s[2]-s[0],s[3]-s[1],m.Nk)+"\" />")}else if(x.i1(m)<-.4){x.ail(m,s,l)}else{var o=x.i1(m)<.5?0:1,G=(o==0?P:a)/4,_=x.Dq(m,o,s,l,G,!0),_=x.Dq(m,o+2,s,l,G,!0,_)}};
by.sh.a0C=function(s,m,l){var x=by.sh,a="Hello World!-What a beautiful day.-What Is Love?-Baby, don't hurt me.-Is This a Real Life?-Is this a fantasy?-Wake Me Up!-Before you go go.-I Saw The Sign.-And it opened up my mind!".split("-"),P=2*Math.floor(x.i1(s)*a.length/2),o=m[2]-m[0],G=m[3]-m[1],j=0,S=0;
s.nF=(s.h_+o)*.5*(.04+x.i1(s)*.05);s.nF=Math.min(s.nF,G*.4,o*.12);s.nF=Math.round(s.nF);var _=Math.min(s.nF*a[P].length*(.35+.3*x.i1(s)),o*.9),U=(m[1]+m[3])/2,X=L.cG(s.J6)<.85?{o:1,z:1,S:1}:{o:.1,z:.1,S:.1};
if(x.i1(s)<.25&&s.ae[0]){S=0;j=m[0]+s.Nk}else if(x.i1(s)<.33&&s.ae[2]){S=2;j=m[2]-s.Nk}else{S=1;j=(m[0]+m[2])/2}var c=X.o==1?"0,0,0":"255,255,255",y=s.yv&&x.i1(s)<1;
if(y){var O=m[0],p=o,D=U-s.nF*1.1,f=s.nF*2.2,T=.7;if(S==1&&x.i1(s)<.5){O=D=.2*Math.min(o,G);p=o-2*D;
f=G-D-D}else if(x.i1(s)<.7){O=D=0;p=o;f=G;T=.25}l.push("<path id=\"Strip\" style=\"fill: rgb("+c+"); opacity: "+T+"\" d=\""+x.Rect(O,D,p,f)+"\" />")}if(x.i1(s)<.4){var I=s.nF*.07;
I*=1.5+x.i1(s)*1;if(S==-1&&o/G<3&&!y){l.push("<path id=\"Bar-bottom\" style=\"fill: "+x.hn(X)+"\" d=\""+x.Rect(j-_/2,U+s.nF*1.1-I/2,_,I)+"\" />");
l.push("<path id=\"Bar-top\" style=\"fill: "+x.hn(X)+"\" d=\""+x.Rect(j-_/2,U-s.nF*1.1-I/2,_,I)+"\" />")}if(S!=1){l.push("<path id=\"Bar\" style=\"fill: "+x.hn(X)+"\" d=\""+x.Rect(j-I/2,U-s.nF*.8,I,s.nF*.8*2)+"\" />");
j+=(S==0?1:-1)*s.nF/3}}var H=s.nF*.4;l.push(x.nh(a[P+1],j,U+H*1.6,H,X,S,s.zN));l.push(x.nh(a[P],j,U+s.nF*.04,s.nF,X,S,s.Vn))};
by.sh.a0w=function(s,m,l,x){var a=m[2]-m[0],P=m[3]-m[1],o=Math.max(a,P),G=Math.min(a,P),_=by.sh;if(o/G<5&&!s.yv&&!1){_.ON(s,m,l,x)}else if(_.i1(s)<0)l.push("<path style=\"fill: "+_.hn(s.cI)+"\" d=\""+_.Rect(m[0],m[1],a,P)+"\" />");
else{var j=0;if(m[3]!=s.Cm)j=0;if(m[2]!=s.h_)j=3;if(m[0]!=0)j=1;if(m[1]!=0)j=2;var U=j+2&3;if(o/G<3){var S=_.alE(U),X=S[Math.round(_.i1(s)*(S.length-1))],c=X.aR.slice(0,4),y=c.indexOf(1);
X=JSON.parse(JSON.stringify(X));var O=-1;if(c!="0000"){var p=new ae;if(X.aR[5]=="0"){if(y==3&&j==1){O=1;
p.scale(-1,1)}else O=y}else{var D=U;while(D==U)D=Math.floor(_.i1(s)*4)&3;p.rotate((-y+D)*Math.PI/2)}_.A(X,p)}var f=_.ge(X),T=a-2*s.Nk,I=P-2*s.Nk;
if(O!=-1){if((O&1)==0)I-=s.Nk;else T-=s.Nk}var H=Math.min(T/f.e,I/f.l),b=new ae;b.translate(-f.x,-f.y);
b.scale(H,H);var R=(a-f.e*H)/2,W=(P-f.l*H)/2;if(O!=-1){if(O==3)R=0;if(O==0)W=0;if(O==1)R=a-f.e*H;if(O==2)W=P-f.l*H}b.translate(m[0]+R,m[1]+W);
_.c9(s,X,b,s.cI,l)}else{_.Dq(s,j,m,l,1e9)}}};by.sh.ON=function(s,m,l,x){var a=m[2]-m[0],P=m[3]-m[1],o=Math.max(a,P),G=Math.min(a,P),_=by.sh,j=_.PO(s),U,S,X,c=x[0]instanceof ArrayBuffer;
if(c){U="data:image/jpg;base64,"+d4.zO(x[0]);S=x[1];X=x[2]}else{var y=Math.floor(j*x.length),O=x[y];
s.CI=O;U=O.webformatURL;S=O.webformatWidth;X=O.webformatHeight}var p=m[0],D=m[1],f=a,T=P;if(a/P>S/X){T=f*X/S;
D=D-(T-P)/2}else{f=T*S/X;p=p-(f-a)/2}if(c){l.push("<defs>");l.push("<image width=\""+S+"\" height=\""+X+"\" id=\"Background\" href=\""+U+"\" />");
l.push("</defs>");var I=f/S;l.push("<use href=\"#Background\" transform=\""+by.n2(new ae(I,0,0,I,p,D))+"\" />")}else{var H="cp"+Math.random();
l.push("<clipPath id=\""+H+"\">");l.push("<path style=\"fill: "+_.hn(s.cI)+"\" d=\""+_.Rect(m[0],m[1],a,P)+"\" />");
l.push("</clipPath>");l.push("<image clip-path=\"url(#"+H+")\" xlink:href=\""+U+"\" x=\""+p+"\" y=\""+D+"\" width=\""+f+"\" height=\""+T+"\" />")}};
by.sh.nh=function(s,m,l,x,a,P,o){var G=by.sh;return"<text x=\""+m+"\" y=\""+l+"\" style=\"fill:"+G.hn(a)+"; font-size:"+x+"px; text-anchor:"+["start","middle","end"][P]+"; font-family:"+o[2]+";\"><tspan>"+s+"</tspan></text>"};
by.sh.c9=function(s,m,l,x,a){var P=by.sh,o=[];for(var C=0;C<m.DF.length;C++){o.push(x);if(s.a9U){x=(C&1)==s.amh?{o:1,z:1,S:1}:o[0]}}a.push("<g id=\""+m.aR.split("-")[2]+":::\" style=\"transform: "+by.n2(l)+";\" >");
for(var C=0;C<m.DF.length;C++){var G=m.DF[C];x=o.pop();a.push("<path style=\"fill: "+(x?P.hn(x):"#"+G[0])+"\" d=\""+Typr.U.pathToSVG({crds:G[1].s,cmds:G[1].r})+"\" />")}a.push("</g>")};
by.sh.ail=function(s,m,l){var x=by.sh,a=by.sh.Ip,P=[];for(var C=0;C<a.length;C++){var o=a[C],G=o.aR.slice(0,4);
if(G!="1001")continue;P.push(o)}var o=P[Math.floor(x.i1(s)*P.length)];if(x.i1(s)<.5)x.A(o,new ae(0,1,1,0,0,0));
var _=m[3]-m[1],j=m[2]-m[0],U=x.ge(o),S=.7*Math.min(j,_,.5*Math.max(j,_))/Math.max(U.e,U.l),X=new ae;
X.scale(S,S);if(x.i1(s)<.5){X.scale(1,-1);X.translate(0,_)}x.c9(s,o,X,s.cI,l);X.rotate(Math.PI);X.translate(j,_);
x.c9(s,o,X,s.cI,l)};by.sh.alE=function(s){var m=by.sh.Ip,l=[];for(var C=0;C<m.length;C++){var x=m[C],a=x.aR.slice(0,4);
if(a=="0000"){l.push(x);continue}if(["1000","0100","0010","0001"].indexOf(a)==-1)continue;var P=a.indexOf("1");
if(x.aR[5]=="0"&&s==P&&P!=3)continue;l.push(x)}return l};by.sh.Dq=function(s,m,l,x,a,P,o){var G=by.sh.Ip,_=by.sh,j=[],f,T;
for(var C=0;C<G.length;C++){var U=G[C],S=U.aR.slice(0,4);if(["1110","1101","1011","0111"].indexOf(S)==-1)continue;
var X=S.indexOf("0")+2&3;if(U.aR[5]=="0")if(P==!0||m!=X&&!(m==1&&X==3))continue;j.push(U)}var c=o!=null?o:Math.floor(_.i1(s)*j.length),U=j[c],U=JSON.parse(JSON.stringify(U)),S=U.aR.slice(0,4),X=S.indexOf("0")+2&3;
if(X==3&&m==1)L.A(U,new ae(1,0,0,-1,0,1e3));var y=new ae;y.translate(-500,-500);y.rotate(-X*Math.PI/2);
y.translate(500,500);_.A(U,y);var O=l[3]-l[1],p=l[2]-l[0],D=_.ge(U);if(D.y<0){D.l+=D.y;D.y=0}if(D.y>0){D.l+=D.y;
D.y=0}if((m&1)==0){T=O;f=p}else{f=O;T=p}var I=Math.min(Math.min(.5+.5*_.i1(s))*Math.min(p,O),a)/D.l,H=Math.ceil(f/(1e3*I)),b=new ae,R=new ae;
R.scale(I,I);if(m==0||m==2){R.translate(-(p/2),-(O/2));R.rotate(-m*Math.PI/2);R.translate(p/2+l[0],O/2+l[1])}else{R.rotate(Math.PI/2);
R.scale(1,-1);R.translate(l[0],l[1]);if(m==1){R.scale(-1,1);R.translate(p,0)}}x.push("<g id=\"Border-"+["top","right","bottom","left"][m]+":::\">");
for(var C=0;C<H;C++){var W=b.clone();W.concat(R);_.c9(s,U,W,s.cI,x);b.translate(1e3-2,0)}x.push("</g>");
return c};by.sh.Rect=function(s,m,l,x){return Typr.U.pathToSVG({crds:[s,m,s+l,m,s+l,m+x,s,m+x],cmds:["M","L","L","L","Z"]})};
by.sh.aoS=function(s,m,l,x,a){var P=[s,m,s+l,m,s+l,m+x,s,m+x];s+=a;m+=a;l-=2*a;x-=2*a;P.push(s,m,s,m+x,s+l,m+x,s+l,m);
return Typr.U.pathToSVG({crds:P,cmds:"M L L L Z M L L L Z".split(" ")})};by.sh.afU=function(s,m){var l=L.AR(s.o,s.z,s.S);
l.b_=Math.max(.1,Math.min(.9,l.b_+m));return L.ZS(l.Cm,l.zd,l.b_)};by.sh.a92=function(s,m){var l=L.AR(s.o,s.z,s.S);
l.Cm+=m;return L.ZS(l.Cm,l.zd,l.b_)};by.sh.au8=function(s){var m=L.AR(s.o,s.z,s.S);m.b_=1-m.b_;return L.ZS(m.Cm,m.zd,m.b_)};
by.sh.ahE=function(s,m){var l=s.o-m.o,x=s.z-m.z,a=s.S-m.S;return Math.sqrt(l*l+x*x+a*a)};by.sh.aoz=function(s){var m=by.sh;
return{o:m.i1(s),z:m.i1(s),S:m.i1(s)}};by.sh.hn=function(s){return CSS.Qd({o:s.o*255,z:s.z*255,S:s.S*255})};
by.sh.ge=function(s){var m=s.DF,l=new bU;for(var C=0;C<m.length;C++)l=l.if(L.H.ge(m[C][1].s));return l};
by.sh.A=function(s,m){var l=s.DF;for(var C=0;C<l.length;C++)L.H.A(l[C][1].s,m,l[C][1].s)};by.sh.i1=function(s){s.aqy++;
var m=s.aqy&3;if(m==0)s.O$=by.sh.IX(s.O$);var l=s.O$>>>8*m&255;return l*(.99999999/255)};by.sh.PO=function(s){var m=by.sh.IX(s.O$);
s.O$=by.sh.IX(m);return m*(1/4294967295)};by.sh.IX=function(s){s=(s^61^s>>>16)>>>0;s=s+(s<<3)>>>0;s=(s^s>>>4)>>>0;
s=s*668265261>>>0;s=(s^s>>>15)>>>0;return s};by.sh.Ip=[{aR:"0001-0-bird",DF:[["4b3c34",{r:"M C L C C L Z M C C L C C L Z M C L C L Z M C L C C L Z".split(" "),s:[208,16,253,5,247,86,228,104,218,108,253,60,235,12,211,18,210,18,209,17,208,16,208,16,187,140,238,125,326,133,319,189,318,198,307,210,299,207,297,205,307,208,316,195,317,188,320,126,208,137,174,149,187,140,137,75,156,79,177,94,164,157,173,147,177,101,165,79,142,75,137,75,368,59,165,59,182,233,0,210,0,225,161,250,194,61,364,63,367,61,368,59,368,59,368,59]}],["3c7040",{r:"M C C C C C L Z M C C C C L Z M C C C C L Z M C C C C L Z M C C C C C L Z M C C C C L Z M C C C C Z".split(" "),s:[345,123,324,113,331,70,284,80,287,79,310,89,314,103,314,104,306,90,284,82,281,81,270,85,268,86,274,117,335,119,345,123,345,123,270,0,283,29,282,58,244,66,258,62,265,40,269,27,265,37,256,56,249,58,242,31,263,18,270,0,270,0,89,100,81,136,47,182,101,196,90,189,92,157,91,145,94,160,93,191,109,195,148,158,96,129,89,100,89,100,230,187,201,240,160,226,133,198,150,191,172,197,187,198,166,193,153,190,134,193,159,162,207,194,230,187,230,187,126,177,131,159,129,150,119,139,122,122,145,112,147,97,166,128,164,155,134,168,139,154,146,142,145,131,143,145,133,159,126,177,126,177,209,86,195,86,166,91,173,109,177,102,181,97,191,96,180,99,174,113,175,113,194,114,200,96,209,86,209,86,278,175,254,167,235,168,231,143,245,143,248,151,256,158,252,147,243,144,240,142,276,147,265,171,278,175]}],["b588c1",{r:"M C C C C C C C C C C C C L Z".split(" "),s:[189,40,188,42,186,44,184,47,184,52,183,55,181,59,175,70,160,78,147,79,142,79,131,78,127,75,118,74,95,71,93,70,89,70,88,70,69,72,74,66,82,68,93,65,78,64,83,62,95,59,128,50,128,33,155,29,162,16,180,13,189,31,193,31,196,34,198,37,197,37,193,39,189,40,189,40]}]]},{aR:"0001-0-bird2",DF:[["ff7f2a",{r:"M L L L Z M L L L Z".split(" "),s:[296,0,296,62,335,62,296,0,357,0,357,62,318,62,357,0]}],["b588c1",{r:"M C C C C C C C C C C C L Z".split(" "),s:[321,48,344,48,379,67,396,121,408,176,396,230,337,255,303,265,265,268,217,235,191,217,170,188,186,180,195,177,199,187,205,192,203,185,199,178,207,172,217,165,224,178,225,182,227,196,231,203,250,206,273,205,290,196,292,165,289,133,269,118,268,101,267,77,288,49,321,48,321,48]}],["74439e",{r:"M C C C C C C L Z M C C Z".split(" "),s:[337,187,329,202,317,204,304,204,293,204,284,205,293,224,286,216,278,209,268,214,257,220,262,237,269,243,284,258,310,256,323,243,337,227,339,208,337,187,337,187,340,77,310,78,287,81,315,96,269,83,309,75,340,77]}],["000000",{r:"M L L L Z M L L L Z".split(" "),s:[326,258,334,315,323,316,326,258,298,262,296,318,286,317,298,262]}],["4b3c34",{r:"M L C C C C C C C C L Z".split(" "),s:[0,272,0,336,63,296,119,296,175,320,205,330,229,339,278,338,322,337,354,322,405,325,443,329,482,332,501,377,501,366,502,348,474,328,464,320,440,312,384,309,296,309,300,333,186,293,118,264,54,250,0,272,0,272]}],["3c7040",{r:"M C C C Z M C C C Z M C C C L Z M C C C L Z M C C C L Z M C C C Z".split(" "),s:[58,260,44,247,27,239,20,208,15,188,32,182,43,198,59,227,56,242,58,260,181,323,167,336,150,345,143,375,138,396,155,401,166,385,182,356,179,342,181,323,60,260,79,249,100,243,113,214,122,194,102,186,86,200,62,227,65,242,60,260,60,260,499,378,479,377,462,372,435,388,417,399,425,415,444,411,476,403,484,390,499,378,499,378,501,379,494,397,482,411,488,442,491,463,511,461,514,442,520,410,508,397,501,379,501,379,503,378,513,390,516,402,531,413,546,421,557,412,548,401,534,382,519,379,503,378]}]]},{aR:"0000-1-flower",DF:[["7a59a2",{r:"M C C C C C C C Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z".split(" "),s:[468,470,411,473,371,480,351,495,332,509,322,536,325,581,325,601,328,621,325,637,346,634,371,638,397,637,427,636,456,626,465,611,478,596,485,553,489,490,477,489,470,483,468,470,445,563,435,583,425,591,415,590,401,588,401,572,410,549,388,558,375,557,369,546,366,533,374,524,390,517,416,506,441,498,465,495,463,519,455,542,445,563,445,563,489,450,486,392,480,352,465,332,451,313,425,302,380,305,360,305,340,307,324,304,327,324,322,350,323,376,323,406,332,435,347,444,362,457,405,465,468,470,469,458,476,451,489,450,489,450,395,424,376,415,368,405,369,394,371,380,387,380,410,390,402,368,403,355,414,349,427,346,436,355,443,370,454,397,460,422,463,446,439,443,417,435,395,424,395,424,508,470,566,468,606,462,626,447,645,433,656,407,654,362,654,342,652,322,655,306,634,309,609,304,583,305,553,305,524,314,514,329,501,344,493,387,488,449,500,451,507,457,508,470,508,470,534,377,544,357,554,350,564,351,578,353,578,369,568,392,590,384,604,385,609,396,612,409,603,418,588,425,561,435,536,442,512,445,515,421,523,399,534,377,534,377,488,490,492,547,499,587,514,607,528,626,554,636,600,633,619,632,640,630,656,633,652,612,656,587,655,560,655,531,645,502,629,493,614,480,571,473,508,469,507,481,501,488,488,490,488,490,582,513,602,523,610,533,609,543,607,557,591,557,568,548,577,570,576,583,565,589,552,592,542,584,535,568,524,542,517,517,514,493,538,495,560,503,582,513,582,513]}]]},{aR:"0000-1-flower",DF:[["d13777",{r:"M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z".split(" "),s:[474,503,457,528,452,530,450,528,450,523,469,498,464,493,388,522,332,552,314,585,297,628,322,660,372,639,361,698,421,709,450,665,467,649,477,596,482,505,474,503,474,503,439,563,431,563,424,556,424,548,424,539,431,532,439,532,447,532,454,539,454,548,454,556,447,563,439,563,462,475,432,467,429,463,430,460,435,458,465,469,468,463,417,399,371,356,335,348,288,345,265,379,300,420,241,428,249,488,301,503,321,513,374,507,462,483,462,475,462,475,394,460,391,452,396,444,404,441,412,438,420,443,423,451,426,459,421,467,413,470,405,473,396,468,394,460,484,455,483,424,486,419,489,420,492,424,492,456,498,457,543,389,570,332,566,294,554,249,515,238,487,284,461,231,406,256,408,310,405,333,427,381,477,458,484,455,484,455,477,385,484,380,494,382,499,389,504,396,502,405,496,410,489,415,479,414,474,407,469,400,471,390,477,385,511,470,539,459,545,461,545,463,542,467,512,477,513,483,592,505,654,513,688,497,728,472,726,432,674,419,717,378,675,334,625,353,602,356,563,393,506,464,511,470,511,470,575,442,581,447,583,456,578,463,573,470,563,472,557,467,550,462,548,452,553,445,558,438,568,437,575,442,505,499,524,523,524,529,521,531,517,529,498,503,492,506,496,588,508,650,533,677,570,707,607,693,603,639,656,667,685,614,651,572,641,551,594,525,509,493,505,499,505,499,551,552,548,560,540,564,532,561,524,559,519,550,522,542,524,534,533,530,541,532,549,535,554,543,551,552]}]]},{aR:"0000-1-flower",DF:[["ffac42",{r:"M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C Z M C C C C Z".split(" "),s:[646,471,646,446,626,426,601,426,599,426,597,426,595,427,596,426,598,424,599,423,616,406,616,378,599,360,581,343,553,343,536,360,534,361,533,363,532,364,532,363,532,361,532,359,532,335,512,315,488,315,463,315,443,335,443,359,443,361,443,363,443,365,442,364,441,363,440,362,422,344,394,344,377,362,359,379,359,407,377,425,378,426,380,427,381,429,379,428,378,428,376,428,351,428,331,448,331,473,331,498,351,518,376,518,378,518,380,517,382,517,381,518,379,519,378,521,361,538,361,566,378,584,396,601,424,601,441,584,443,582,444,581,445,579,445,581,445,583,445,584,445,609,465,629,490,629,514,629,534,609,534,584,534,582,534,580,534,579,535,580,536,581,537,582,555,600,583,600,600,582,618,565,618,537,600,519,599,518,597,516,596,515,598,515,599,516,601,516,626,516,646,496,646,471,489,552,444,552,409,516,409,472,409,428,444,392,489,392,533,392,569,428,569,472,569,516,533,552,489,552]}]]},{aR:"0000-1-flower",DF:[["d04040",{r:"M C C L L C C C C L L C C L L C C C C L C C C C L Z M C C C Z M C C C L Z M C C C L Z".split(" "),s:[691,424,690,369,680,330,660,303,634,320,601,361,568,406,568,406,568,327,578,326,585,317,585,306,585,294,576,284,564,284,552,284,542,294,542,306,542,317,550,326,560,327,560,406,559,406,540,359,522,311,501,291,475,319,453,360,433,407,431,406,431,327,441,326,448,317,448,306,448,294,439,284,427,284,415,284,405,294,405,306,405,317,412,326,423,327,423,404,390,363,360,326,341,308,296,401,299,489,360,567,396,613,443,639,500,638,624,636,694,524,692,424,691,424,389,543,370,514,379,498,399,504,439,518,470,564,488,613,455,600,414,580,389,543,481,480,488,445,505,441,515,459,533,497,524,552,501,599,487,567,472,523,481,480,481,480,624,523,610,563,565,595,515,613,528,580,548,538,585,514,614,494,629,503,624,523,624,523]}]]},{aR:"0000-1-flower",DF:[["ec7272",{r:"M C C C C Z M C C C C Z M C C C C L Z M C C C C L Z M C C C C Z M C C C C L Z".split(" "),s:[447,475,452,450,452,438,437,423,422,407,407,412,390,383,398,418,421,415,433,434,445,453,446,474,447,475,495,446,520,439,529,433,535,412,542,390,529,380,546,351,520,376,533,394,523,414,513,434,495,445,495,446,545,473,564,490,574,495,595,490,617,485,620,469,653,468,619,459,610,479,587,480,565,482,546,472,545,473,545,473,549,533,543,558,543,569,559,585,574,601,589,596,606,624,597,590,575,592,563,573,551,555,550,534,549,533,549,533,504,562,480,570,470,575,464,596,458,618,470,628,454,657,479,632,466,614,476,594,486,575,504,563,504,562,459,536,440,519,430,513,409,518,387,524,384,539,351,540,385,549,394,529,417,528,439,527,457,536,459,536,459,536]}],["333333",{r:"M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z".split(" "),s:[534,455,584,415,579,358,577,335,574,315,585,304,585,304,585,304,568,308,561,312,554,316,520,333,500,363,479,392,493,437,486,456,479,476,452,485,452,485,452,485,471,474,475,454,479,434,460,402,482,365,505,328,565,292,597,294,612,295,591,298,587,316,583,333,593,373,584,404,574,440,533,456,534,455,534,455,559,506,619,530,666,497,685,483,701,471,716,475,716,475,716,475,704,463,697,459,690,454,657,434,622,431,587,428,554,462,534,465,513,469,492,451,492,451,492,451,511,461,530,455,549,448,568,416,611,417,654,418,716,452,730,481,737,495,724,478,706,483,689,489,660,516,628,524,592,534,558,506,559,506,559,506,524,552,534,615,586,640,607,649,625,657,629,672,629,672,629,672,634,655,634,647,634,639,636,601,621,569,606,537,560,525,547,509,534,494,539,466,539,466,539,466,539,488,554,501,569,514,607,514,627,552,648,590,650,660,632,687,623,700,631,680,617,667,605,656,566,644,543,621,517,594,524,551,524,552,524,552,467,546,417,585,421,643,424,665,426,686,415,697,415,697,415,697,432,693,439,689,446,684,481,667,501,638,521,609,508,563,515,544,522,524,548,515,548,515,548,515,530,527,526,546,522,566,540,598,518,635,496,672,436,709,404,706,388,705,409,702,413,684,417,667,408,628,417,596,426,561,467,544,467,546,467,546,442,495,383,472,336,504,317,518,301,530,286,526,286,526,286,526,298,539,305,543,312,547,344,568,380,571,415,574,448,539,468,536,488,532,510,551,510,551,510,551,490,540,471,547,452,553,434,585,391,584,348,583,286,550,272,521,265,507,278,524,296,518,313,513,342,485,373,477,409,468,444,495,442,495,442,495,476,449,467,386,415,361,394,352,375,344,371,329,371,329,371,329,366,346,366,354,366,362,364,400,379,433,394,465,440,476,453,492,467,508,462,535,462,535,462,535,461,513,446,500,431,487,394,487,373,449,352,411,350,341,368,314,377,301,369,321,383,334,396,345,434,357,457,380,483,407,477,450,476,449,476,449]}]]},{aR:"0000-0-hearts",DF:[["d17070",{r:"M C C C C C C C C C L Z".split(" "),s:[415,584,413,585,411,586,409,587,392,596,389,620,395,633,401,647,414,663,450,668,485,674,487,681,494,690,491,679,487,673,507,643,527,613,524,593,518,579,512,566,493,552,475,558,467,561,451,566,448,586,435,578,423,581,415,584,415,584]}],["6bcc6b",{r:"M C C C C C C C C C L Z".split(" "),s:[595,451,593,449,590,448,588,448,563,439,537,457,529,475,521,493,516,520,542,560,568,601,563,609,559,623,568,611,571,602,618,595,666,589,684,567,692,550,700,532,697,501,674,488,665,482,645,472,622,486,619,465,606,456,595,451,595,451]}],["5c5cc2",{r:"M C C C C C C C C C L Z".split(" "),s:[341,362,338,364,335,366,332,368,304,385,301,424,312,446,323,468,345,494,405,501,465,508,468,520,480,534,475,516,468,506,499,455,531,404,524,370,514,348,503,325,470,304,440,315,427,320,401,331,397,364,374,351,355,356,341,362,341,362]}]]},{aR:"0000-0-anchor",DF:[["2a3b66",{r:"M C C C C L Z M C C C C C C C C C C C C C C L C C C C C C C C C C C C C L C C C C C C C C C C C C C L Z".split(" "),s:[495,315,490,315,488,318,489,323,491,328,502,326,502,320,502,317,501,316,497,315,496,315,496,315,495,315,495,315,496,303,509,303,521,320,514,327,511,330,513,345,517,348,519,350,531,352,546,354,570,357,572,357,578,354,588,347,592,351,592,369,592,385,588,390,580,385,576,383,570,383,552,384,524,387,519,389,517,397,515,404,517,515,520,554,522,583,525,599,530,606,534,610,555,617,565,617,584,616,607,602,635,572,639,568,641,566,644,563,633,559,616,557,616,557,675,533,675,533,671,605,669,609,667,611,664,591,658,577,657,579,657,580,656,582,628,638,603,660,565,664,545,666,521,672,514,675,512,677,507,682,504,688,501,693,497,698,496,698,494,698,490,693,487,688,484,682,480,677,477,675,471,672,447,666,427,664,391,660,367,640,340,591,335,604,332,621,331,619,329,615,325,544,325,544,384,568,384,568,368,569,357,573,385,602,408,616,426,617,437,617,458,610,461,606,466,599,470,583,472,554,474,515,476,404,475,397,473,389,468,387,440,384,422,383,416,383,412,385,403,390,400,385,400,369,400,351,403,347,414,354,419,357,421,357,446,354,460,352,473,350,475,348,478,345,481,330,478,327,470,320,483,303,496,303,496,303]}]]},{aR:"0000-1-leaf",DF:[["fbb600",{r:"M L L L L L L C L L C L C L C C C C C L C C C C C C C C C L C C C C C C C C C C C C C L L L L Z".split(" "),s:[642,726,633,723,632,707,591,631,570,582,526,521,537,547,535,579,517,598,501,619,486,602,414,634,412,606,379,609,346,611,394,557,406,547,401,539,386,532,319,519,337,508,332,493,320,478,326,464,302,450,287,436,303,436,324,441,330,432,346,434,359,434,359,415,377,428,397,431,417,432,442,440,437,418,417,416,406,372,401,370,395,367,389,355,417,363,408,339,406,323,416,312,427,303,417,276,433,295,444,297,452,294,479,321,490,313,496,294,503,322,510,329,517,338,522,353,530,371,530,379,546,402,551,389,555,378,578,333,606,333,628,304,652,280,646,306,644,327,657,329,649,356,658,374,679,384,666,392,656,415,645,432,627,457,653,451,661,457,692,460,698,473,715,481,697,485,678,488,669,509,656,523,655,533,666,539,659,537,659,542,643,531,630,535,613,543,608,539,598,535,594,542,590,553,590,566,594,564,596,569,568,575,551,543,531,519,575,577,597,628,639,708,642,726]}]]},{aR:"0000-1-acorn",DF:[["a05a2c",{r:"M C C C C C C C L Z".split(" "),s:[506,453,450,426,413,422,398,444,374,480,374,533,384,573,391,602,407,625,430,645,451,658,487,654,509,647,554,633,587,605,612,565,635,527,591,500,565,482,557,476,515,457,506,453,506,453]}],["502d16",{r:"M C C C C C C C C C C C Z".split(" "),s:[640,524,639,539,623,540,623,540,627,522,607,504,583,488,547,465,507,445,470,434,439,426,412,417,400,437,400,437,391,424,400,414,434,370,498,356,551,376,555,349,583,317,597,321,612,326,621,346,620,350,619,354,594,352,584,368,580,375,577,382,575,387,619,412,649,460,640,524]}]]},{aR:"0000-0-skull",DF:[["808080",{r:"M C L C C L C L C C C C C C C L C L C C C C C C C C L C C L C L C C C C C C C L C L C L C C C C C C Z M C C C C Z M C C C C Z M L L L Z".split(" "),s:[396,410,398,415,398,420,398,424,420,437,433,404,465,382,501,382,538,382,569,404,582,435,602,424,602,419,603,415,604,410,604,410,609,392,622,379,633,382,643,384,648,402,643,420,643,421,642,421,642,422,643,422,643,422,644,422,662,427,675,440,672,450,669,461,652,465,633,460,628,459,624,457,620,455,589,473,588,491,582,507,572,520,607,540,611,538,615,536,620,535,639,530,656,535,659,545,662,556,649,568,630,573,630,574,629,574,629,574,629,574,629,575,629,575,634,594,630,611,619,614,609,617,596,604,591,585,590,580,589,576,589,571,565,557,564,592,536,619,501,619,466,619,438,591,437,557,412,572,411,576,411,580,410,585,410,585,405,604,392,617,381,614,371,611,366,593,371,575,371,574,371,574,372,574,371,573,371,573,370,573,352,568,339,556,342,545,345,534,362,530,381,535,385,536,390,538,394,540,430,519,421,507,415,491,414,475,380,455,376,457,372,459,367,460,367,460,349,465,331,461,328,450,326,440,338,427,357,422,357,422,358,422,358,422,358,421,358,421,358,420,353,402,357,384,368,381,379,379,391,391,396,410,463,439,445,439,431,453,431,470,431,488,445,502,463,502,480,502,494,488,494,470,494,453,480,439,463,439,540,439,522,439,508,453,508,470,508,488,522,502,540,502,557,502,571,488,571,470,571,453,557,439,540,439,483,528,518,528,500,503,483,528]}]]},{aR:"0000-0-ghost",DF:[["e6e6e6",{r:"M C C C C C C C C C C L Z M C C C C C C C C Z M C C Z".split(" "),s:[653,486,653,574,689,597,689,638,689,661,640,644,620,656,601,666,609,682,583,692,563,700,538,666,512,666,490,666,451,695,433,686,415,677,416,646,388,644,367,641,313,671,313,648,313,619,346,588,346,486,346,388,415,308,500,308,584,308,653,388,653,486,653,486,449,396,428,396,412,415,412,439,412,462,428,482,449,482,465,482,478,470,484,454,489,470,503,482,519,482,539,482,556,462,556,439,556,415,539,396,519,396,503,396,489,407,484,423,478,407,465,396,449,396,482,505,441,505,465,560,482,560,503,560,524,505,482,505]}],["000000",{r:"M C C C C Z M C C C C Z".split(" "),s:[526,446,526,455,519,462,510,462,501,462,494,455,494,446,494,437,501,430,510,430,519,430,526,437,526,446,475,446,475,455,468,462,459,462,450,462,442,455,442,446,442,437,450,430,459,430,468,430,475,437,475,446]}]]},{aR:"1001-1-rose",DF:[["9e1460",{r:"M C C C C C C C C C Z M C C C C C C C C C Z".split(" "),s:[568,83,558,83,548,88,539,96,538,98,536,99,535,101,522,115,513,134,517,149,522,172,561,200,592,207,604,210,611,215,615,221,622,234,611,258,611,258,613,260,615,264,618,264,627,266,638,241,640,236,660,188,614,83,568,83,526,125,527,97,567,68,593,75,616,81,642,121,649,152,651,165,656,172,662,176,675,183,698,173,698,173,698,173,698,173,698,173,704,176,705,179,705,180,706,189,681,199,678,200,678,200,677,201,677,201,627,220,524,170,526,125]}],["020304",{r:"M C C C C C Z M C C C C C Z M C C C C C Z M C C C C Z".split(" "),s:[60,151,60,151,37,125,60,98,83,72,95,91,115,66,134,42,117,26,120,30,123,34,146,83,132,114,114,154,60,151,60,151,280,70,280,70,258,97,283,122,308,147,318,127,339,150,361,173,344,190,347,186,350,182,370,132,354,101,333,62,280,70,280,70,61,150,61,150,27,143,30,108,33,73,54,81,55,50,57,19,33,16,38,17,43,19,91,44,98,78,107,121,61,150,61,150,-27,185,184,158,222,43,352,32,444,24,538,97,538,97,538,97,453,45,354,48,241,51,185,170,-27,185]}]]},{aR:"1001-1-curls",DF:[["53a7ab",{r:"M C C C C C C C C C C C C C C C C L Z M C C C C C C C C C C C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C L Z".split(" "),s:[68,114,121,103,159,110,183,135,212,169,211,204,189,237,162,277,124,291,86,276,52,263,38,236,47,202,55,168,79,151,121,156,147,162,165,177,160,205,155,228,135,241,113,237,97,234,92,221,96,205,98,195,105,194,115,200,124,205,133,204,135,197,139,183,122,167,95,171,68,176,54,193,68,220,84,252,131,261,165,238,201,202,199,164,158,136,118,113,52,122,-23,151,2,134,33,122,68,114,68,114,71,83,119,75,163,79,198,107,226,129,247,174,271,207,291,229,316,241,342,232,370,222,394,206,418,209,443,212,461,238,485,258,500,272,522,276,543,271,543,271,524,279,518,281,500,287,483,277,466,256,453,243,441,230,427,223,413,217,392,220,372,229,372,230,371,230,370,230,354,241,337,251,315,250,283,248,253,222,229,172,209,133,178,106,137,94,103,84,52,94,-30,133,-3,108,30,91,71,83,71,83,83,54,122,46,166,49,195,67,219,82,250,122,290,168,308,186,330,194,355,192,393,183,400,145,383,118,372,101,355,91,328,91,313,92,303,98,300,109,298,116,299,125,304,131,315,147,327,152,340,149,349,149,354,132,343,131,330,131,326,129,328,120,332,97,355,100,365,114,381,137,367,165,343,168,321,170,289,150,288,117,290,77,319,58,352,64,388,74,405,104,404,141,403,177,382,202,345,207,312,211,284,191,260,161,245,141,229,122,213,106,196,84,166,73,129,67,80,62,28,79,-26,108,10,79,46,63,83,54,83,54]}],["bbdc54",{r:"M C C C C C L Z M C C C C C L Z M C C C C L Z M C C C C L Z M C C C C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C L Z".split(" "),s:[321,315,287,324,252,312,211,219,217,284,239,326,279,341,324,352,362,329,398,291,316,305,258,269,217,196,238,284,274,319,321,315,321,315,211,261,223,300,234,345,252,374,220,378,194,367,193,324,194,306,198,288,206,270,197,315,204,340,221,351,206,327,202,297,211,261,211,261,206,246,193,301,170,317,138,297,162,281,184,254,205,222,201,246,191,267,174,283,186,279,197,267,206,246,206,246,378,233,370,286,337,299,294,270,312,277,330,276,347,267,294,278,259,252,234,203,280,259,327,278,378,233,378,233,626,217,604,273,555,313,511,315,484,316,438,289,432,232,450,253,488,296,511,291,532,286,551,277,566,261,527,269,498,263,480,243,478,241,478,237,480,235,486,230,504,220,519,226,537,233,551,242,567,241,591,236,611,228,626,217,626,217,411,192,432,183,439,166,420,136,443,144,460,158,466,182,470,165,456,149,430,133,459,136,485,145,505,165,503,143,463,133,434,128,486,127,526,124,539,118,505,123,470,124,435,122,461,111,483,96,500,76,475,95,450,110,424,118,450,96,465,72,466,48,458,75,440,98,419,112,424,106,428,99,428,91,429,68,413,57,393,51,419,70,426,92,411,110,408,77,385,58,343,52,383,26,422,25,445,62,458,47,465,29,467,8,477,27,479,51,475,76,497,64,515,49,528,29,524,57,515,82,496,103,521,113,549,111,579,99,560,122,535,136,502,137,518,149,521,173,514,205,505,181,492,166,476,158,483,188,470,205,447,216,456,183,451,166,438,157,444,193,426,211,379,207,403,193,416,172,416,140,434,156,428,173,411,192,411,192]}]]},{aR:"0111-0-pines",DF:[["e9e9e9",{r:"M C C C C C C C C L L L Z".split(" "),s:[0,946,0,946,54,960,99,944,149,927,182,954,205,956,245,960,298,940,382,974,435,995,478,957,538,956,571,955,597,969,631,968,663,967,701,938,749,944,805,950,851,960,893,946,950,928,1e3,946,1e3,946,1e3,1e3,0,1e3,0,946]}],["437a26",{r:"M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z".split(" "),s:[119,801,120,801,148,859,148,859,137,853,137,853,155,890,155,891,156,892,138,887,140,888,141,888,171,925,171,925,126,924,125,943,125,943,105,944,106,944,107,944,106,924,106,924,61,925,93,886,77,891,100,854,89,860,89,860,119,801,119,801,286,871,286,871,303,905,303,905,296,902,296,902,307,924,307,924,307,925,297,922,297,922,298,922,316,944,316,944,289,944,289,955,289,955,277,956,278,956,278,956,278,944,278,944,251,944,270,921,260,924,274,902,268,906,268,906,285,871,286,871,526,863,526,863,546,903,546,903,538,899,538,899,550,924,550,925,550,926,539,922,540,922,540,922,561,948,561,948,530,947,529,960,529,960,516,961,517,961,518,961,517,947,517,947,486,948,508,921,497,925,513,899,505,903,505,903,526,863,526,863,731,841,731,841,752,883,752,883,744,879,744,879,757,907,757,908,758,908,745,905,746,905,747,905,769,932,769,932,736,932,735,946,735,946,721,946,721,946,722,947,721,932,721,932,688,932,712,903,700,908,717,880,709,884,709,884,731,841,731,841,889,826,889,826,914,876,914,876,904,871,904,871,920,904,920,905,920,906,906,901,907,902,908,902,934,934,934,934,894,933,894,950,894,950,877,951,878,951,879,951,878,933,878,933,838,934,866,900,852,905,872,872,862,877,862,877,889,826,889,826]}]]},{aR:"0111-0-flowers",DF:[["8cae40",{r:"M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z".split(" "),s:[182,866,160,879,146,903,135,929,135,844,177,842,228,831,230,796,231,770,207,765,182,779,160,792,146,816,135,843,135,713,135,711,134,710,132,710,130,710,128,711,128,713,128,841,117,815,103,791,82,779,57,764,33,769,34,795,36,830,86,841,128,844,128,930,117,903,103,880,82,867,57,853,33,858,34,884,36,919,86,930,128,932,128,1009,128,1010,130,1012,132,1012,134,1012,135,1010,135,1009,135,931,177,928,228,918,230,882,231,856,207,851,182,866,182,866,447,904,430,898,412,904,394,916,394,861,413,873,431,879,447,873,458,868,458,852,447,848,430,841,412,848,394,859,394,788,394,787,393,786,391,786,389,786,388,787,388,788,388,859,370,847,352,841,336,848,325,852,325,868,336,873,352,879,370,873,388,862,388,915,370,904,352,898,336,904,325,909,325,925,336,929,352,936,370,930,388,918,388,1009,388,1010,389,1011,391,1011,393,1011,394,1010,394,1009,394,918,413,930,431,936,447,929,458,925,458,909,447,904,447,904,662,943,650,954,641,972,634,993,634,914,659,907,680,895,692,873,707,846,686,836,662,859,650,870,641,888,634,909,634,818,634,816,632,815,631,815,629,815,628,816,628,818,628,908,621,887,612,870,600,859,576,836,555,846,570,873,582,895,603,907,628,914,628,992,621,971,612,954,600,943,576,920,555,930,570,957,582,978,603,990,628,998,628,1009,628,1010,629,1011,631,1011,632,1011,634,1010,634,1009,634,998,659,991,680,978,692,957,707,930,686,920,662,943,662,943,892,842,875,857,862,882,850,912,850,822,874,817,896,805,908,778,919,755,896,751,877,769,866,779,857,796,850,815,850,737,850,736,848,735,847,735,845,735,844,736,844,737,844,815,836,795,828,779,817,769,798,751,775,755,785,777,797,804,820,817,844,822,844,912,832,882,818,857,801,842,772,816,737,822,753,854,772,894,806,911,844,918,844,1009,844,1010,845,1011,847,1011,848,1011,850,1010,850,1009,850,918,887,911,922,894,941,854,957,822,922,816,892,842,892,842]}],["d13777",{r:"M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M C C C C C C C Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C Z M C C C C Z M C C L L C C C C L L C C L L C C C C L C C C C L Z M C C C Z M C C C L Z M C C C L Z".split(" "),s:[125,603,115,617,112,619,110,618,111,615,122,600,119,597,75,614,43,631,32,650,22,675,36,694,65,682,59,716,94,722,111,696,120,687,126,657,129,604,125,603,125,603,104,638,99,638,95,634,95,629,95,624,99,620,104,620,109,620,113,624,113,629,113,634,109,638,104,638,117,587,100,582,98,579,99,578,102,577,119,583,121,580,92,543,65,517,44,513,17,512,4,531,24,555,-10,560,-6,594,24,603,36,609,67,605,118,591,118,587,117,587,78,578,77,573,79,568,84,567,88,565,93,568,95,573,96,577,94,582,89,584,85,585,80,583,78,578,130,575,130,557,131,554,133,555,135,557,135,575,138,576,164,537,180,504,177,482,171,456,148,449,132,476,117,445,85,460,86,491,84,504,97,532,126,577,130,575,130,575,126,535,130,532,136,533,139,537,142,541,141,546,137,549,133,552,127,551,125,547,122,543,122,538,126,535,146,584,162,577,165,578,166,580,164,582,146,588,147,591,193,604,229,609,249,600,271,585,271,562,240,554,265,530,241,505,212,516,199,518,176,539,143,580,146,584,146,584,183,567,187,570,187,576,185,580,182,584,176,585,172,582,168,579,167,573,170,569,173,565,179,565,183,567,142,601,153,615,153,618,152,619,149,618,138,603,135,605,137,652,144,688,159,704,180,721,202,713,199,681,230,698,246,667,227,643,221,631,194,616,145,597,142,601,142,601,169,631,167,636,162,638,158,637,153,635,151,630,152,625,154,621,159,618,163,620,168,621,170,626,169,631,376,691,343,693,320,697,309,706,297,714,291,729,294,756,294,767,295,779,294,788,305,786,320,788,335,788,353,787,369,782,375,773,382,764,386,739,388,703,381,702,377,699,376,691,363,745,357,757,351,761,345,761,337,760,337,751,343,737,330,742,322,742,319,735,317,728,322,723,331,718,346,712,360,708,374,706,373,720,369,733,363,745,363,745,388,680,387,646,383,623,375,612,366,600,351,594,325,596,314,596,302,597,293,595,295,607,292,622,292,637,292,654,298,671,306,676,315,684,340,689,376,692,377,684,381,680,388,680,388,680,334,665,323,659,318,654,319,648,320,639,329,640,343,645,338,632,339,625,345,621,352,620,358,625,362,634,368,649,372,664,373,677,360,676,347,671,334,665,334,665,399,691,433,690,456,686,467,678,479,670,485,655,484,629,484,617,482,606,484,597,472,598,458,595,442,596,425,596,409,601,403,610,395,618,391,643,388,679,395,680,399,684,399,691,399,691,414,638,420,626,426,622,432,622,440,624,440,633,434,646,447,641,455,642,458,648,459,656,454,661,445,665,430,671,416,675,402,677,403,663,408,650,414,638,414,638,388,703,390,736,394,759,403,770,411,782,426,788,452,785,464,785,475,784,485,785,483,774,485,759,485,744,484,726,479,710,470,704,461,697,436,693,400,691,399,698,395,702,388,703,388,703,442,716,453,722,458,728,458,734,456,742,447,742,434,736,439,749,438,757,432,760,425,762,419,757,415,748,409,733,404,719,403,705,416,706,429,710,442,716,442,716,722,716,722,701,710,690,696,690,695,690,694,690,693,690,693,689,694,689,695,688,705,678,705,662,695,651,685,641,668,641,658,651,658,652,657,653,656,654,656,653,656,652,656,651,656,637,645,625,630,625,616,625,605,637,605,651,605,652,605,653,605,654,604,654,604,653,603,652,593,642,576,642,566,652,556,662,556,679,566,689,567,690,568,690,569,691,568,691,567,691,566,691,552,691,540,702,540,717,540,731,552,743,566,743,567,743,568,743,569,742,569,743,568,744,567,744,557,754,557,771,567,781,577,791,594,791,604,781,605,780,605,779,606,778,606,779,606,780,606,781,606,795,617,807,632,807,646,807,657,795,657,781,657,780,657,779,657,778,658,779,658,779,659,780,669,790,686,790,696,780,706,770,706,754,696,743,695,743,694,742,693,741,694,741,695,741,696,741,710,741,722,730,722,716,631,762,605,762,585,742,585,716,585,691,605,670,631,670,657,670,677,691,677,716,677,742,657,762,631,762,958,602,957,570,951,547,940,532,925,541,905,565,887,591,886,591,886,546,892,545,897,540,897,533,897,527,891,521,884,521,877,521,872,527,872,533,872,540,876,545,882,546,882,591,882,591,870,564,860,536,848,525,833,541,820,565,808,592,807,592,807,546,813,545,817,540,817,533,817,527,812,521,805,521,798,521,792,527,792,533,792,540,797,545,802,546,802,590,784,567,766,545,755,534,729,588,731,639,766,684,787,711,814,726,847,725,919,724,960,659,958,602,958,602,783,671,772,653,777,645,789,648,812,656,830,682,840,711,821,704,797,692,783,671,836,634,840,614,850,612,856,622,867,644,861,676,848,703,840,684,831,659,836,634,836,634,919,659,911,682,885,701,856,711,863,692,875,668,896,654,913,642,922,647,919,659,919,659]}]]},{aR:"1101-1-confetti",DF:[["e789ff",{r:"M C C C C C Z M C C C C C C C Z M C C C C C C C Z M C C C C C Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),s:[170,439,169,438,59,370,108,300,152,238,298,276,318,337,338,398,265,380,285,358,312,328,185,247,121,307,72,353,171,440,170,439,318,338,336,399,262,408,184,346,138,309,73,237,112,174,167,88,345,115,377,222,393,276,296,260,335,236,375,212,236,111,155,183,73,254,265,380,285,358,312,328,318,338,318,338,377,222,394,276,318,288,243,236,187,197,146,120,201,56,254,-5,365,26,407,68,407,68,414,94,378,71,344,50,258,31,221,89,178,154,297,260,336,235,374,211,377,222,377,222,406,70,452,115,432,189,324,115,214,39,323,-85,322,-85,320,-85,229,38,331,100,439,166,413,95,377,72,343,51,364,28,406,70,346,405,369,418,356,441,333,428,346,405,513,298,536,311,523,334,500,321,513,298,891,91,914,104,901,127,878,114,891,91,24,123,47,136,34,159,11,146,24,123,664,33,687,46,674,69,651,56,664,33,910,482,933,495,920,518,897,505,910,482]}],["666666",{r:"M C C C C C Z M C C C C C C C Z M C C C C C C C Z M C C C C C Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),s:[919,442,917,443,802,510,764,432,730,364,837,250,901,261,965,272,913,329,903,301,889,262,755,338,777,424,794,490,920,442,919,442,901,261,964,274,936,345,842,386,787,410,690,435,654,370,604,279,716,132,827,153,883,164,821,244,819,197,817,150,659,228,682,335,706,443,913,329,903,301,889,262,901,261,901,261,827,153,884,163,857,238,774,281,711,313,622,313,593,233,564,157,647,71,705,54,705,54,732,60,694,82,658,102,599,170,632,231,669,301,822,244,819,197,816,150,827,153,827,153,706,54,769,34,825,87,706,149,583,213,527,56,526,57,526,59,590,200,696,137,807,70,732,60,694,82,658,102,648,73,706,54,362,328,383,340,371,361,350,349,362,328,52,189,73,201,61,222,40,210,52,189,509,119,530,131,517,152,496,140,509,119,912,16,933,28,921,49,900,37,912,16,629,380,650,392,638,413,617,401,629,380,77,414,98,426,86,447,65,435,77,414,240,76,261,88,249,109,228,97,240,76]}]]},{aR:"1101-1-branch",DF:[["7f500b",{r:"M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z".split(" "),s:[144,-14,144,-14,149,-12,150,-12,150,-12,106,22,86,75,63,137,93,193,69,238,64,236,89,174,53,146,80,72,99,19,144,-14,144,-14,280,-18,281,-18,276,-20,276,-20,276,-20,282,23,264,64,244,113,196,129,185,168,189,170,209,120,244,123,269,66,288,25,280,-18,280,-18,429,-5,429,-5,434,-4,434,-4,435,-4,405,28,396,72,386,124,415,164,402,203,398,202,410,150,379,132,391,70,399,26,429,-5,429,-5,514,-7,514,-7,519,-12,519,-12,520,-12,532,50,577,96,630,151,703,150,738,197,733,201,681,144,635,166,571,101,526,54,514,-7,514,-7,666,-67,666,-68,663,-65,662,-64,662,-64,704,-52,734,-18,768,22,763,72,793,99,796,96,760,57,778,26,737,-22,708,-56,666,-67,666,-67,936,-8,936,-8,932,-9,931,-9,931,-9,947,32,938,76,927,127,884,154,881,194,886,195,895,142,930,138,943,76,952,32,936,-8,936,-8]}],["5c7f0b",{r:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),s:[119,6,121,16,113,31,81,33,58,34,27,27,27,27,27,27,53,5,70,-1,93,-9,117,-4,119,6,124,8,132,1,151,12,165,33,179,54,180,87,180,87,180,87,153,75,139,60,122,41,115,14,124,8,78,74,82,83,76,97,48,103,27,108,-2,105,-2,105,-2,105,19,81,33,74,53,64,75,65,78,74,83,75,90,68,108,76,124,93,139,110,144,140,144,140,144,140,117,132,104,121,85,105,76,83,83,75,72,152,75,159,72,172,48,179,30,185,6,185,6,185,6,185,22,163,33,156,49,145,68,145,72,152,76,153,81,146,98,151,112,165,126,178,133,203,133,203,133,203,110,199,97,190,80,178,70,160,76,153,73,206,75,213,71,224,49,228,34,232,12,230,12,230,12,230,28,212,39,206,53,199,70,200,73,206,76,207,81,202,95,207,107,220,118,233,122,255,122,255,122,255,102,250,92,241,78,230,71,213,76,207,70,232,78,236,76,252,66,269,56,286,33,297,33,297,33,297,33,274,39,260,46,241,62,228,70,232,285,3,278,8,274,21,291,39,304,52,325,63,325,63,325,63,323,36,316,24,308,7,291,-2,285,3,281,1,280,-7,263,-10,244,-5,224,1,205,20,205,20,205,20,228,27,244,25,264,22,283,10,281,1,270,65,264,69,259,80,272,99,281,112,299,125,299,125,299,125,300,100,296,88,290,72,277,61,270,65,267,64,267,56,252,51,234,53,216,56,197,71,197,71,197,71,216,80,230,80,249,80,267,72,267,64,231,116,225,119,220,128,230,145,237,157,251,170,251,170,251,170,254,148,251,138,248,123,237,113,231,116,228,114,229,108,217,102,201,103,186,103,168,115,168,115,168,115,184,124,196,126,212,127,228,121,228,114,201,148,196,151,192,160,202,174,209,184,222,194,222,194,222,194,223,175,220,166,216,154,206,145,201,148,198,147,198,141,187,137,174,139,160,141,145,152,145,152,145,152,160,159,171,159,185,160,198,153,198,147,188,165,182,163,173,174,170,190,167,205,173,224,173,224,173,224,186,210,191,198,197,183,195,166,188,165,415,10,417,18,413,31,389,36,371,39,347,37,347,37,347,37,364,16,377,9,393,0,412,2,415,10,418,11,424,4,440,11,453,27,466,43,470,69,470,69,470,69,448,62,436,52,420,38,412,17,418,11,391,69,394,76,392,89,371,96,355,102,333,103,333,103,333,103,346,81,357,74,371,64,388,63,391,69,395,70,399,63,414,68,428,80,441,92,448,116,448,116,448,116,427,113,415,105,400,94,390,77,395,70,395,133,398,139,397,150,379,158,367,164,348,167,348,167,348,167,358,148,366,140,377,130,391,128,395,133,398,134,401,128,414,130,427,140,439,149,447,169,447,169,447,169,429,167,418,162,404,154,394,140,398,134,401,177,404,182,402,192,386,198,374,202,358,203,358,203,358,203,368,187,375,181,386,173,399,172,401,177,404,178,408,173,419,176,429,185,439,194,445,212,445,212,445,212,429,210,420,204,408,196,401,183,404,178,402,198,408,201,409,214,403,229,397,244,381,255,381,255,381,255,378,236,381,224,385,208,396,196,402,198,519,23,531,26,543,42,528,75,518,99,495,125,495,125,495,125,485,87,487,67,490,40,508,19,519,23,523,19,521,7,542,-6,571,-8,600,-10,636,6,636,6,636,6,609,27,586,32,557,39,526,32,523,19,570,100,581,102,594,115,585,147,579,170,562,197,562,197,562,197,548,163,547,145,547,120,560,98,570,100,574,97,570,86,587,72,613,66,639,60,673,71,673,71,673,71,652,93,632,101,607,110,578,107,574,97,649,149,659,150,670,160,666,188,662,208,650,232,650,232,650,232,635,205,633,189,631,168,640,149,649,149,652,146,648,137,662,123,683,116,705,109,734,116,734,116,734,116,718,137,702,145,681,155,657,155,652,146,707,178,715,179,724,189,718,213,714,230,701,250,701,250,701,250,690,225,690,211,689,193,699,177,707,178,710,175,707,167,720,156,739,151,759,147,784,155,784,155,784,155,768,172,753,177,734,185,713,183,710,175,732,194,740,189,757,199,770,218,782,237,783,266,783,266,783,266,758,254,746,240,730,223,724,199,732,194,687,-62,688,-54,699,-45,722,-53,739,-59,759,-73,759,-73,759,-73,733,-82,719,-82,701,-81,685,-71,687,-62,684,-60,676,-62,666,-48,662,-28,659,-9,669,17,669,17,669,17,684,-1,689,-16,696,-35,692,-57,684,-60,737,-23,738,-15,746,-5,768,-9,784,-12,804,-23,804,-23,804,-23,782,-34,769,-36,752,-38,736,-30,737,-23,734,-20,727,-24,716,-13,711,5,705,22,711,46,711,46,711,46,727,33,734,20,742,3,742,-17,734,-20,766,35,766,41,772,50,792,48,806,47,823,40,823,40,823,40,805,28,795,26,780,23,766,28,766,35,763,37,758,33,747,42,741,56,735,70,738,91,738,91,738,91,753,81,760,71,768,57,769,40,763,37,782,76,783,82,789,89,806,86,818,84,832,76,832,76,832,76,816,67,806,66,794,65,782,70,782,76,780,78,775,75,766,84,762,97,758,110,762,128,762,128,762,128,775,118,779,108,786,95,785,80,780,78,792,94,788,100,794,112,807,122,819,131,839,133,839,133,839,133,832,116,823,107,812,95,796,89,792,94,945,11,939,18,938,31,959,45,974,55,997,62,997,62,997,62,989,36,980,25,968,11,950,5,945,11,941,11,938,3,921,3,903,13,885,22,871,45,871,45,871,45,894,47,909,42,929,35,944,19,941,11,944,75,938,80,935,93,952,108,964,119,984,128,984,128,984,128,980,104,974,93,965,78,949,70,944,75,940,75,938,67,923,65,906,71,889,77,873,96,873,96,873,96,894,101,908,99,926,95,942,82,940,75,916,133,911,137,907,147,920,162,930,172,946,182,946,182,946,182,944,160,940,151,933,137,921,129,916,133,913,132,912,125,899,123,884,127,869,130,854,145,854,145,854,145,871,151,883,150,899,148,913,139,913,132,893,171,888,175,887,184,899,196,908,204,923,211,923,211,923,211,920,193,915,184,909,173,897,167,893,171,890,170,889,165,877,163,864,168,851,172,839,187,839,187,839,187,855,190,865,188,879,186,891,176,890,170,884,190,877,190,871,202,871,218,871,234,881,251,881,251,881,251,891,234,893,222,896,206,890,190,884,190]}]]},{aR:"1101-1-sticks",DF:[["ec7272",{r:"M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),s:[260,148,297,180,286,192,249,160,260,148,114,31,161,47,155,63,109,47,114,31,931,91,902,52,915,42,945,81,931,91,711,19,746,-15,758,-3,723,31,711,19,812,161,782,122,795,112,825,151,812,161,389,34,424,0,436,12,401,46,389,34,431,209,465,175,477,186,442,221,431,209,282,90,282,41,299,41,299,90,282,90,58,233,29,194,42,184,72,223,58,233,574,58,621,74,615,90,569,74,574,58]}],["0000ff",{r:"M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),s:[722,208,733,161,717,157,706,205,722,208,843,12,797,28,802,44,849,28,843,12,31,74,60,35,47,25,18,64,31,74,220,21,185,-13,173,-1,208,33,220,21,140,166,170,127,157,117,127,156,140,166,558,148,523,114,511,126,546,160,558,148,562,9,516,25,521,41,568,25,562,9,697,105,726,66,713,56,684,95,697,105,961,180,990,141,977,131,948,170,961,180,399,97,353,113,358,129,405,113,399,97]}]]},{aR:"1101-1-dots",DF:[["ec7272",{r:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),s:[154,47,144,47,136,39,136,29,136,19,144,11,154,11,164,11,172,19,172,29,172,39,164,47,154,47,272,164,262,164,254,156,254,146,254,136,262,128,272,128,282,128,290,136,290,146,290,156,282,164,272,164,529,48,519,48,511,40,511,30,511,20,519,12,529,12,539,12,547,20,547,30,547,40,539,48,529,48,696,101,686,101,678,93,678,83,678,73,686,65,696,65,706,65,714,73,714,83,714,93,706,101,696,101,929,91,919,91,911,83,911,73,911,63,919,55,929,55,939,55,947,63,947,73,947,83,939,91,929,91]}],["0000ff",{r:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),s:[66,122,56,122,48,114,48,104,48,94,56,86,66,86,76,86,84,94,84,104,84,114,76,122,66,122,309,55,299,55,291,47,291,37,291,27,299,19,309,19,319,19,327,27,327,37,327,47,319,55,309,55,785,180,775,180,767,172,767,162,767,152,775,144,785,144,795,144,803,152,803,162,803,172,795,180,785,180,459,147,449,147,441,139,441,129,441,119,449,111,459,111,469,111,477,119,477,129,477,139,469,147,459,147,811,48,801,48,793,40,793,30,793,20,801,12,811,12,821,12,829,20,829,30,829,40,821,48,811,48]}],["88a500",{r:["M","C","C","Z"],s:[389,224,389,224,410,230,410,230,410,230,389,224,389,224]}]]},{aR:"1101-1-strips",DF:[["ffc88c",{r:"M L L L L Z M L L L L Z M L L L L Z".split(" "),s:[-40,0,44,0,137,99,53,99,-40,0,296,0,380,0,473,99,389,99,296,0,632,0,716,0,809,99,725,99,632,0]}],["88a500",{r:"M L L L L Z M L L L L Z M L L L L Z".split(" "),s:[128,0,212,0,305,99,221,99,128,0,464,0,548,0,641,99,557,99,464,0,800,0,884,0,977,99,893,99,800,0]}],["88a500",{r:["M","C","C","Z"],s:[407,217,407,217,428,223,428,223,428,223,407,217,407,217]}]]},{aR:"1101-1-circs",DF:[["ec7272",{r:"M C C C C Z M C C C C Z".split(" "),s:[61,209,27,209,0,181,0,147,0,113,27,86,61,86,96,86,123,113,123,147,123,181,96,209,61,209,551,209,517,209,489,181,489,147,489,113,517,86,551,86,585,86,612,113,612,147,612,181,585,209,551,209]}],["217995",{r:"M C C C C Z M C C C C Z".split(" "),s:[303,209,269,209,241,181,241,147,241,113,269,86,303,86,337,86,364,113,364,147,364,181,337,209,303,209,799,209,765,209,738,181,738,147,738,113,765,86,799,86,834,86,861,113,861,147,861,181,834,209,799,209]}],["88a500",{r:["M","C","C","Z"],s:[530,273,530,273,551,279,551,279,551,279,530,273,530,273]}]]},{aR:"1101-1-squares",DF:[["014ea7",{r:"M L L L L Z M L L L L Z".split(" "),s:[0,120,124,120,124,244,0,244,0,120,497,120,621,120,621,244,497,244,497,120]}],["fc54ff",{r:"M L L L L Z M L L L L Z".split(" "),s:[249,120,373,120,373,244,249,244,249,120,746,120,870,120,870,244,746,244,746,120]}],["88a500",{r:["M","C","C","Z"],s:[389,354,389,354,410,360,410,360,410,360,389,354,389,354]}]]},{aR:"1101-0-christmas",DF:[["014ea7",{r:"M C C C C Z M C C C C Z M L L L L Z".split(" "),s:[255,480,178,480,116,418,116,341,116,264,178,202,255,202,332,202,394,264,394,341,394,418,332,480,255,480,255,232,236,232,221,217,221,198,221,179,236,164,255,164,274,164,289,179,289,198,289,217,274,232,255,232,251,-152,260,-152,260,248,251,248,251,-152]}],["ff9518",{r:"M C C C C Z M C C C C Z M L L L L Z".split(" "),s:[746,623,669,623,607,561,607,484,607,407,669,345,746,345,823,345,885,407,885,484,885,561,823,623,746,623,747,376,728,376,713,361,713,342,713,323,728,308,747,308,766,308,781,323,781,342,781,361,766,376,747,376,742,-8,751,-8,751,392,742,392,742,-8]}]]}];
var c3={};c3.parse=function(s){var m=new Uint8Array(s),l=null;if(m[0]==80&&m[1]==75){var x=Date.now(),a=UZIP.parse(m.buffer),l=a["document.json"];
l=JSON.parse(g.V_(l,0,l.length));c3.PJ(l,a)}else{var P=aj.parse(s);l=c3.UO(P[2][0][1])}return l};c3.PJ=function(s,m){var l=typeof s;
if(l=="string"||l=="number"||l=="boolean")return s;if(s instanceof Array){for(var C=0;C<s.length;C++)s[C]=c3.PJ(s[C],m);
return s}var x=s._class;if(x==null)return s;if(x=="MSJSONFileReference"){var a=s._ref;if(!1){}else if(m[a+".json"]!=null){var P=m[a+".json"],o=P.length;
for(var C=0;C<o;C++)if(P[C]==11||P[C]==3)P[C]=32;var G=g.V_(P,0,o);s=JSON.parse(G)}else if(m[a+".png"]!=null)return{key:a.split("/").pop(),bdata:m[a+".png"]};
else if(m[a+".jpg"]!=null)return{key:a.split("/").pop(),bdata:m[a+".jpg"]};else if(m[a+".pdf"]!=null)return{key:a.split("/").pop(),bdata:m[a+".pdf"]};
else if(m[a]!=null)return{key:a.split("/").pop(),bdata:m[a]};else{console.log(s,m);return}}else if(x=="MSAttributedString"){var G=atob(s.archivedAttributedString._archive),_=G.length-1,j=new Uint8Array(_);
for(var C=0;C<_;C++)j[C]=G.charCodeAt(C);s.archivedAttributedString=c3.UO(j)}for(var U in s)s[U]=c3.PJ(s[U],m);
return s};c3.yl=function(s,m,l,x){if(s instanceof Uint8Array)return null;if(x.indexOf(s)!=-1)return null;
x.push(s);if(s==m)return l;for(var a in s){l.push(a);var P=c3.yl(s[a],m,l,x);if(P){console.log(s,P);
throw"e"}l.pop()}};c3.UO=function(s){var m=hV.parse(s,0),l=m.$objects,x=new Uint8Array(l.length),a=c3.WE(l,x,m.$top.root);
for(var C=0;C<l.length;C++)if(x[C]==0&&C!=0){console.log(C,l[C]);c3.yl(a,C,[],[])}for(var C=0;C<l.length;
C++){var P=l[C];if(P._class&&(P._class=="bitmap"||P._class=="fill"&&P.fillType==4&&(P.image||P.imageSHA))){var o=P.image,G=P.imageSHA,_=null,j=null;
if(o=="$null")o=null;if(G=="$null")G=null;if(o&&o.data){j=o.sha1["NS.bytes"];j=btoa(g.cS(j,0,j.length));
_=o.data instanceof Uint8Array?o.data:o.data["NS.bytes"]}else if(o==null&&G==null){var U=iO.ln("PNG").yd([[L.B(4).buffer]],1,1);
_=new Uint8Array(U)}else{var S=(a.assets?a.assets.imageCollection:a.images).images;if(G)j=G instanceof Uint8Array?G:G["NS.bytes"];
else j=o.sha1["NS.bytes"];j=btoa(g.cS(j,0,j.length));var _=S[j].data;if(_["NS.bytes"])_=_["NS.bytes"]}_=new Uint8Array(_.buffer.slice(_.byteOffset,_.byteOffset+_.length));
delete P.imageSHA;P.image={key:j,bdata:_}}}return a};c3.apM=function(s){return s.slice(0,11)=="MSImmutable"?"MS"+s.slice(11):s};
c3.WE=function(s,m,l){var x=s[l];if(m[l]==1){return x}m[l]=1;if(typeof x=="string")return x;if(typeof x=="number")return x;
if(typeof x=="boolean")return x;if(x instanceof Array)return x;if(x instanceof Uint8Array){return x}if(s[x.$class]==null){if(x.$class==null&&x["NS.data"]!=null)return x;
console.log(l,x);throw"e"}var a=s[x.$class],P=c3.apM(a.$classname);m[x.$class]=1;x.$class=P;if(c3.wj[P]){delete x.$class;
x._class=c3.wj[P]}var o=c3.WE;if(P=="NSMutableArray"||P=="NSArray"){var G=[];if(x["NS.objects"]!=null)for(var C=0;
C<x["NS.objects"].length;C++)G.push(o(s,m,x["NS.objects"][C]));else for(var C=0;x["NS.object."+C]!=null;
C++)G.push(o(s,m,x["NS.object."+C]));s[l]=G;return G}if(P=="NSDictionary"||P=="NSMutableDictionary"){var _={$class:P};
if(x["NS.keys"]!=null)for(var C=0;C<x["NS.keys"].length;C++){var j=o(s,m,x["NS.keys"][C]);if(j instanceof Uint8Array)j=btoa(c3.Gf.cS(j,0,j.length));
else if(typeof j!="string"&&typeof j!="number")j=btoa(c3.Gf.cS(j["NS.bytes"],0,j["NS.bytes"].length));
_[j]=o(s,m,x["NS.objects"][C])}else for(var C=0;x["NS.key."+C]!=null;C++){var j=o(s,m,x["NS.key."+C]);
if(j instanceof Uint8Array)j=btoa(c3.Gf.cS(j,0,j.length));else if(typeof j!="string"&&typeof j!="number")j=btoa(c3.Gf.cS(j["NS.bytes"],0,j["NS.bytes"].length));
_[j]=o(s,m,x["NS.object."+C])}for(var U in x)delete x[U];for(var U in _)x[U]=_[U];return x}if(P=="NSURL")return{$class:P,base:o(s,m,x["NS.base"]),relative:o(s,m,x["NS.relative"])};
if(c3.aa8.indexOf(P)!=-1){s[l]=o(s,m,x.array_do);return s[l]}if(x.do_objectID!=null)x.do_objectID=o(s,m,x.do_objectID);
if(c3.ard.indexOf(P)!=-1)return x;var S=c3.a0m[P];if(S==null){console.log(s,x);throw"unknown class "+P}for(var C=0;
C<S.length;C++)if(x[S[C]]!=null)x[S[C]]=o(s,m,x[S[C]]);if(P=="MSTextLayer"){var X=x,c,y,O,p;if(X.attributedString)c=X.attributedString.archivedAttributedString;
else c=X.storage;p=c.NSString;if(typeof p!="string")p=g.V_(p["NS.bytes"],0,p["NS.bytes"].length);if(c.NSAttributeInfo)y=c.NSAttributeInfo["NS.bytes"];
else{var D=p.length,f=[];while(D>0){var T=Math.min(100,D);f.push(T,0);D-=T}y=new Uint8Array(f)}O=c.NSAttributes instanceof Array?c.NSAttributes:[c.NSAttributes];
var I={$class:"NSAttributedString",NSString:p,NSAttributes:O};X.attributedString={_class:"MSAttributedString",archivedAttributedString:I};
I.NSAttributeInfo={$class:"NSMutableData","NS.data":y};delete X.storage}return x};c3.Gf={hi:function(s,m){return s[m+1]<<8|s[m]},n:function(s,m){return s[m+3]<<24|s[m+2]<<16|s[m+1]<<8|s[m]},cS:function(s,m,l){var x="";
for(var C=0;C<l;C++)x+=String.fromCharCode(s[m+C]);return x}};c3.wj={MSPage:"page",MSArtboardGroup:"artboard",MSShapeGroup:"shapeGroup",MSLayerGroup:"group",MSBitmapLayer:"bitmap",MSTextLayer:"text",MSSliceLayer:"slice",MSSymbolMaster:"symbolMaster",MSSymbolInstance:"symbolInstance",MSStyleFill:"fill",MSShapePathLayer:"shapePath",MSRectangleShape:"rectangle",MSOvalShape:"oval",MSTriangleShape:"triangle"};
c3.aa8=["MSArray","MSFillStyleCollection","MSBorderStyleCollection","MSShadowStyleCollection","MSInnerShadowStyleCollection"];
c3.ard="MSArchivedColor MSLayoutGrid MSSimpleGrid MSColor MSRect MSStyleColorControls MSGraphicsContextSettings NSMutableString NSMutableData NSDecimalNumberPlaceholder MSStyleReflection".split(" ");
c3.a0m={MSAssetCollection:["gradients","colors","imageCollection","images"],MSImageCollection:["images"],MSSharedStyleContainer:["objects"],MSSharedTextStyleContainer:["objects"],MSSharedLayerStyleContainer:["objects"],MSSharedLayerTextStyleContainer:["objects"],MSSharedLayerContainer:["objects"],MSSymbolContainer:["objects"],MSGradient:["stops","from","to","points"],MSGradientStop:["color"],MSStyleFill:["color","gradient","contextSettings","image","imageSHA"],MSExportFormat:["fileFormat","name"],MSExportOptions:["exportFormats","includedLayerIds","sizes"],MSRulerData:["guides"],MSStyle:"textStyle fills contextSettings sharedObjectID borders blur shadows innerShadows borderOptions colorControls reflection".split(" "),MSSharedStyle:["name","value"],MSSymbol:["name","value"],MSAttributedString:["archivedAttributedString"],MSSharedLayerStyle:["name","value","instances"],MSSharedLayer:["name","value","instances"],MSDocumentData:"assets layerStyles pages layerTextStyles layerSymbols images userInfo".split(" "),MSShapePathLayer:"exportOptions frame name userInfo path originalObjectID".split(" "),MSOvalShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSRectangleShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSPolygonShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSTriangleShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSStarShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSBitmapLayer:"exportOptions frame name userInfo style imageSHA nineSliceCenterRect nineSliceScale image clippingMask originalObjectID".split(" "),MSTextLayer:"exportOptions frame name userInfo style originalObjectID attributedString glyphBounds storage".split(" "),MSShapeGroup:"exportOptions frame name userInfo style originalObjectID layers".split(" "),MSLayerGroup:"exportOptions frame name userInfo style originalObjectID layers sharedObjectID".split(" "),MSArtboardGroup:"exportOptions frame name userInfo style layers horizontalRulerData verticalRulerData layout grid backgroundColor".split(" "),MSPage:"exportOptions frame name userInfo style layers horizontalRulerData verticalRulerData layout grid scrollOrigin".split(" "),MSSymbolMaster:"exportOptions frame name userInfo style layers horizontalRulerData verticalRulerData layout grid originalObjectID symbolID backgroundColor".split(" "),MSSymbolInstance:"exportOptions frame name userInfo style symbolID overrides masterInfluenceBounds originalObjectID".split(" "),MSSliceLayer:["exportOptions","frame","name","userInfo","backgroundColor"],MSTextStyle:["attributes","encodedAttributes"],MSShapePath:["points"],MSPointArray:["points"],MSImageData:["data","sha1","name"],MSCurvePoint:["curveFrom","curveTo","point"],MSImageProxy:["sha1"],MSStyleBorder:["color","gradient","contextSettings"],MSStyleBlur:["center"],MSStyleShadow:["color","contextSettings"],MSStyleInnerShadow:["color","contextSettings"],MSExportSize:["format","name"],MSStyleBorderOptions:["dashPattern"],NSFont:["NSName","NSDescriptor"],NSColor:["NSCustomColorSpace"],NSFontDescriptor:["NSFontDescriptorAttributes"],NSMutableParagraphStyle:["NSTextBlocks","NSTabStops","NSTextLists"],NSAttributedString:["NSAttributes","NSString","NSAttributeInfo"],NSTextStorage:["NSAttributeInfo","NSAttributes","NSString"],NSColorSpace:["NSICC"],NSParagraphStyle:["NSTabStops","NSTextBlocks","NSTextLists"],NSTextList:["NSMarkerFormat"],NSTextTab:["NSTabOptions"],UIFontDescriptor:["UIFontDescriptorAttributes"]};
var hV={};hV.parse=function(s,m){var l=g.cS(s,m,8);m+=8;var x=hV.parse.ahZ(s,s.length-31),a=[];if(x.Gv==1){var m=s.length-31-x.Gv*x.pt;
for(var C=0;C<x.pt;C++)a.push(s[m+C])}else if(x.Gv==2){var m=s.length-31-x.Gv*x.pt;for(var C=0;C<x.pt;
C++)a.push(g.hi(s,m+C*2))}else if(x.Gv==4){var m=s.length-31-x.Gv*x.pt;for(var C=0;C<x.pt;C++)a.push(g.n(s,m+C*4))}else{throw"e"}var P=hV.parse.WE(s,a,x.root,x);
return P};hV.parse.WE=function(s,m,l,x){var a=hV.Gf,P=x.ahv,o=P==4?a.n:P==2?a.hi:a.a4A,G=hV.parse,_=m[l],j=s[_],U=j>>4,S=j&15,c=null;
_+=1;if([4,5,6,10,12,13].indexOf(U)!=-1&&S==15){var X=G.Ji(s,_);_+=X.xD;S=X.Z}if(!1){}else if(U==0)c=S==8?!1:S==9?!0:null;
else if(U==1)c=G.Ji(s,_-1).Z;else if(U==2)c=1<<S==4?g.gq(s,_):g.XR(s,_);else if(U==3)c=g.XR(s,_);else if(U==4)c=new Uint8Array(s.buffer,_,S);
else if(U==5)c=g.cS(s,_,S);else if(U==6)c=g.gp(s,_,S);else if(U==8){c=0;for(var C=0;C<S+1;C++)c=c<<8|s[_+C]}else if(U==10){c=[];
for(var C=0;C<S;C++)c.push(G.WE(s,m,o(s,_+P*C),x))}else if(U==12){c=[];for(var C=0;C<S;C++)c.push(G.WE(s,m,o(s,_+P*C),x))}else if(U==13){c={};
for(var C=0;C<S;C++){var y=G.WE(s,m,o(s,_+P*C),x),O=G.WE(s,m,o(s,_+P*(S+C)),x);c[y]=O}}else throw"unknown mask "+U;
return c};hV.parse.Ji=function(s,m){var l=1<<(s[m]&15),x=0;for(var C=0;C<l;C++)x=x<<8|s[m+1+C];return{Z:x,xD:l+1}};
hV.parse.ahZ=function(s,m){var l={};m+=6;l.Gv=s[m];m++;l.ahv=s[m];m++;m+=4;l.pt=g.n(s,m);m+=4;m+=4;l.root=g.n(s,m);
m+=4;m+=4;l.anF=g.n(s,m);m+=4;return l};hV.Gf={a4A:function(s,m){return s[m]},hi:function(s,m){return s[m]<<8|s[m+1]},n:function(s,m){return s[m]<<24|s[m+1]<<16|s[m+2]<<8|s[m+3]},cS:function(s,m,l){var x="";
for(var C=0;C<l;C++)x+=String.fromCharCode(s[m+C]);return x}};var aj={parse:function(s){var m=new Uint8Array(s),l=aj.x0(m),x=[],a=new Uint8Array(m.length),P=[];
x.push(P);aj.Jk(m,l,1,a,P);for(var C=0;C<P.length;C++){var o=[];x.push(o);aj.Jk(m,l,P[C][3],a,o);P[C][3]=C+1}return x},Jk:function(s,m,l,x,a){l--;
var P=l*m.Y5+(l==0?100:0),o=s[P],G=aj.hi(s,P+1);if(G!=0)throw"free block in a page";var _=aj.hi(s,P+3),j=aj.hi(s,P+5);
if(j==0)j=65536;var U=s[P+7],S=aj.hi(s,P+8);if(o==2||o==5)P+=4;else S=0;for(var X=0;X<_;X++){var c=l*m.Y5+aj.hi(s,P+8+2*X),y=-1,O=0,p=0,D=0;
if(o==2||o==5){y=aj.n(s,c);c+=4}if(o==2||o==10||o==13){O=aj.S1(s,c);c+=O.xD}if(o==5||o==13){p=aj.S1(s,c);
c+=p.xD}if(o==5){aj.Jk(s,m,y,x,a);continue}var f=m.Y5-(l==0?100:0),T=O.yt,I=o==13?f-35:Math.floor((f-12)*64/255)-23,H=Math.floor((f-12)*32/255)-23,b=H+(T-H)%(f-4);
if(T<=I){aj.qv(s,c,x,0,T)}else{var R=b<=I?b:H,W=0;aj.qv(s,c,x,0,R);W+=R;D=aj.n(s,c+R);while(D!=0){var J=(D-1)*m.Y5;
D=aj.n(s,J);var u=Math.min(m.Y5-4,T-W);aj.qv(s,J+4,x,W,u);W+=u}}a.push(aj.afF(x,T))}},afF:function(s,m){var l=0,x=aj.S1(s,l);
l+=x.xD;var a=[],P=[];while(l<x.yt){var o=aj.S1(s,l);l+=o.xD;a.push(o.yt)}if(l!=x.yt)throw"e";for(var C=0;
C<a.length;C++){var o=a[C];if(!1){}else if(o==0)P.push(null);else if(o==1){P.push(aj.amJ(s,l));l+=1}else if(o==2){P.push(aj._$(s,l));
l+=2}else if(o==3){P.push(aj.a5m(s,l));l+=3}else if(o==4){P.push(aj.Ji(s,l));l+=4}else if(o==7){P.push(aj.ahx(s,l));
l+=16}else if(o==8)P.push(0);else if(o==9)P.push(1);else if(o>=12&&(o&1)==0){var G=o-13>>1,_=new Uint8Array(G);
aj.qv(s,l,_,0,G);P.push(_);l+=G}else if(o>=13&&(o&1)==1){var G=o-12>>1;P.push(aj.V_(s,l,G));l+=G}else throw"unknonw type "+o}return P},x0:function(s){if(!(s[18]==1&&s[19]==1&&s[20]==0&&s[21]==64&&s[22]==32&&s[23]==32))throw"unexpected SQL3 header";
var m={E0:aj.cS(s,0,15),Y5:aj.hi(s,16),atP:aj.n(s,24),size:aj.n(s,28),a9h:aj.n(s,32),at7:aj.n(s,36),ahY:aj.n(s,40),alY:aj.n(s,44),anu:aj.n(s,48),akf:aj.n(s,52),anC:aj.n(s,56),a65:aj.n(s,60),a55:aj.n(s,64)!=0,a4U:aj.n(s,68),a4l:aj.n(s,92),a0p:aj.n(s,96)};
if(m.Y5==1)m.Y5=65536;if(m.anC!=1)throw"unsupported text encoding "+m.anC;return m},ap2:function(s,m){return s[m]<<16|s[m+1]<<8|s[m+2]},a5m:function(s,m){var l=aj.ap2(s,m),x=l&8388608;
return x?-(16777215-l+1):l},amJ:function(s,m){aj.p_[0]=s[m];return aj.adg[0]},Ji:function(s,m){var l=aj.p_;
for(var C=0;C<4;C++)l[C]=s[m+3-C];return aj.a56[0]},_$:function(s,m){var l=aj.p_;l[0]=s[m+1];l[1]=s[m];
return aj.agN[0]},hi:function(s,m){return s[m]<<8|s[m+1]},n:function(s,m){return s[m]<<24|s[m+1]<<16|s[m+2]<<8|s[m+3]},ahx:function(s,m){var l=aj.p_;
for(var C=0;C<8;C++)l[C]=s[m+7-C];return aj.agq[0]},S1:function(s,m){var l=m,cE=0;while(!0){var x=s[m];
m++;cE=cE*128+(x&127);if(x<128)break}return{yt:cE,xD:m-l}},cS:function(s,m,l){var x="";for(var C=0;C<l;
C++)x+=String.fromCharCode(s[m+C]);return x},V_:function(s,m,l){var x="";for(var C=0;C<l;C++)x+="%"+aj.a5u(s[m+C].toString(16));
return decodeURIComponent(x)},qv:function(s,m,l,x,a){if(s[m+a-1]==null||l[x+a-1]==null){console.log(m,x,a);
throw"e"}for(var C=0;C<a;C++)l[x+C]=s[m+C]},a5u:function(cE){return cE.length<2?"0"+cE:cE}};aj.p_=new Uint8Array(8);
aj.adg=new Int8Array(aj.p_.buffer);aj.agN=new Int16Array(aj.p_.buffer);aj.a56=new Int32Array(aj.p_.buffer);
aj.agq=new Float64Array(aj.p_.buffer);function ap(s,m,l){this.aT=s;this.Nr=m;this.anV=l;this.UJ=new fz(0,0);
this.di=-1;this.E3=0;this.Hu=0;this.L3=new bU;this.Xp=[];this.zn=null;this.afI=null;this.bV=null;this.YT=null;
this.Vo=null;this.apY=null}ap.prototype.StartPage=function(s,m,l,x,a){var P=this.Nr,o=P.LL(),G=1,_=(l-s)*(x-m);
if(a!=null)_=a;while(_*o*o/(G*G)>2*8192*8192)G++;P.scale(1/G,1/G);this.afI=[s,m,l,x];var G=P.LL();s=Math.round(s*G);
m=Math.round(m*G);l=Math.round(l*G);x=Math.round(x*G);var j=this.aT,U=this.bV;if(U==null){P.sI=-s}else{var S=U[2]-U[0]+30,X=Math.round(l-s)+30;
if(this.UJ.x+S+X>8192){P.sI=-s;this.UJ.x=0;this.UJ.y+=this.Hu+120;this.Hu=0}else{P.sI+=S;this.UJ.x+=S}}P.bW=this.UJ.y+(this.anV?x:-m);
this.Hu=Math.max(this.Hu,Math.round(x-m));this.bV=[s,m,l,x];j.G.push(j.b8())};ap.prototype.Ag=function(){var s=this.aT,m=s.G[s.G.length-1];
return m};ap.prototype.PU=function(){var s=JSON.parse(JSON.stringify(i4.Ah.default));s.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter";
s.strokeEnabled.v=!1;s.fillEnabled.v=!1;return s};ap.prototype.oy=function(){var s=this.aT,m=s.d2();
m.qW("Path "+s.G.length);this.aT.G.push(m);m.Yy|=16;m.add.SoCo={classID:"null",Clr:{t:"Objc",v:L.K.gc({o:0,z:0,S:0})}};
m.add.vmsk=new t.sD;m.add.vstk=this.PU();return m};ap.prototype.en=function(s){var m={s:s.crds,r:s.cmds},l=L.H.vP(m,!1);
L.j.G9(l,this.Nr);return l};ap.at5=function(s,m){for(var C=0;C<s.length;C++)if(s[C].aZ!=null)s[C].aZ=m};
ap.abW=function(s){return Math.sqrt(Math.abs(s[0]*s[3]-s[1]*s[2]))};ap.xq=function(s){return L.K.gc({o:s[0]*255,z:s[1]*255,S:s[2]*255})};
ap.lF=function(s){return new ae(s[0],s[1],s[2],s[3],s[4],s[5])};ap.prototype.Stroke=function(s){if(this.di!=-1&&this.di!=this.E3)return;
if(s.pth.cmds.length<=1)return;var m=this.en(s.pth);if(m.length<=2)return;this.Nl(s);ap.at5(m,-1);m[2].aZ=1;
var l=ap.xq(s.COLR),x=this.Ag(),a=this.PU();ap.Mo(a,s,this.Nr.LL(),l);var P=x!=null&&x.add.vmsk!=null&&!x.gu(),o=P&&!x.add.vstk.strokeEnabled.v&&t.sD.adw(x.add.vmsk.T,m,!0),G=P&&!x.add.vstk.fillEnabled.v&&JSON.stringify(a)==JSON.stringify(x.add.vstk);
if(G){x.add.vmsk.T=x.add.vmsk.T.concat(m.slice(2))}else if(o){x.add.vstk=a;a.fillEnabled.v=!0}else{x=this.oy();
x.add.vmsk.T=m;x.add.vstk=a}};ap.Mo=function(s,m,l,x){s.strokeEnabled.v=!0;s.strokeStyleMiterLimit.v=m.mlimit;
s.strokeStyleLineDashSet.v=jo.Xj(m.dash,1/m.lwidth);s.strokeStyleLineDashOffset.v.val=m.doff;s.strokeStyleLineJoinType.v.strokeStyleLineJoinType=i4.Ah.join[m.ljoin];
s.strokeStyleLineCapType.v.strokeStyleLineCapType=i4.Ah.S5[m.lcap];s.strokeStyleLineWidth.v.val=Math.max(.4,m.lwidth*ap.abW(m.ctm)*l);
s.strokeStyleContent.v.Clr.v=x};ap.prototype.Fill=function(s,m){if(this.di!=-1&&this.di!=this.E3)return;
if(s.ca==0)return;var l=s.pth.cmds;if(l.length==0)return;if(l.length==2&&JSON.stringify(l)=="[\"M\",\"L\"]")return;
var x=L.H.ge(s.pth.crds),a=L.H.ge(s.cpth.crds);if(x.pF(a).Xh())return;var P=s.pth,o=UDOC.G.isBox(P,[x.x,x.y,x.x+x.e,x.y+x.l]),G=s.cpth,_=UDOC.G.isBox(G,[a.x,a.y,a.x+a.e,a.y+a.l]);
if(o&&_&&x.k()>a.k()*2){var j=x.pF(a),U=j.x,S=j.y,X=U+j.e,c=S+j.l;P={cmds:["M","L","L","L","Z"],crds:[U,S,X,S,X,c,U,c]};
x=j}else if(this.YT==null&&UDOC.G.isBox(P,[x.x,x.y,x.x+x.e,x.y+x.l])&&x.kq(a)){P=G;x=a}else this.Nl(s);
var y=this.en(P),O=L.H.$$(x);L.H.A(O.s,this.Nr,O.s);x=L.H.ge(O.s);var p=ap.V0(s.colr,this.Nr,x),D=this.Ag(),f=D!=null&&D.opacity==Math.round(255*s.ca)&&D.add.vstk!=null&&!D.add.vstk.strokeEnabled.v&&D.add.SoCo&&p.type=="SoFi"&&JSON.stringify(D.add.SoCo.Clr.v)==JSON.stringify(p.Z.v.Clr.v);
if(f){var T=!1;for(var C=0;C<y.length;C++){if(y[C].aZ==0||y[C].aZ==2)T=!0}if(T){var I=L.H.ge(L.j.Cc(D.add.vmsk.T)),H=L.H.ge(L.j.Cc(y));
f=I.pF(H).Xh()}}if(f){var b=D.add.vmsk.T;for(var C=2;C<y.length;C++)b.push(y[C])}else{D=this.oy();delete D.add.SoCo;
D.add.vmsk.T=t.sD.Ps(y);ap.DG(s.colr,D,this.Nr,x);ap.U2(s,D)}};ap.DG=function(s,m,l,x){var a=ap.V0(s,l,x),P=null,o=null;
m.add.vstk.fillEnabled.v=!0;if(a.type=="SoFi"){P="SoCo";o=i4.Rc}if(a.type=="GrFl"){P="GdFl";o=i4.Ql}if(a.type=="patternFill"){P="PtFl";
o=i4._6}if(P!=null){m.add[P]={classID:"null"};for(var C=0;C<o.length;C++){var G=o[C];m.add[P][G]=a.Z.v[G]}}};
ap.prototype.Nl=function(s){var m=this.aT,l=s.cpth,x=l.cmds.join(""),a=l.crds,P=x+" "+a.join(","),o=UDOC.G.isBox(l,this.afI);
if(o&&this.YT==null)return;if(P==this.YT)return;this.Y8();if(!o){this.YT=P;m.G.push(m.b8());var G=m.d2();
G.qW("Mask");G.add.lsct=hN.fs;G.TR="pass";G.Yy=24;var _=G.add.vmsk=new t.sD;_.T=this.en(s.cpth);if(UDOC.G.isBox(l)){this.Vo=L.j.dj(_.T);
this.Vo.yD(3,3)}else this.Vo=null;this.apY=G}};ap.prototype.Y8=function(){var s=this.aT;if(this.YT!=null){var m=s.G.length-1,C=m,l=!1;
while(C>=0&&s.G[C].add.lsct!=hN.k_)C--;var x=this.Vo;if(x){var a=new bU,P=m;while(P>C){a=s.G[P].NK(this.aT,!1,!0);
P--}l=x.kq(a)}if(l){this.Xp.splice(C,1);s.G.splice(C,1)}else{s.G.push(this.apY)}this.YT=null}};ap.V0=function(s,m,l){var x,a;
if(s.length!=null){x="SoFi";var P=JSON.parse(i4.Ej[i4.order.indexOf("SoFi")]);a={t:"Objc",v:P};a.v.Clr.v=ap.xq(s)}else{var o=ap.a66(s,m,l);
x="GrFl";a={t:"Objc",v:o}}return{type:x,Z:a}};ap.a66=function(s,m,l){var x=JSON.parse(i4.Ej[i4.order.indexOf("GrFl")]),a=x.Grad.v;
a.Intr.v=0;var P=ap.lF(s.mat);P.concat(m);var o=new fz(0,0),G=new fz(l.e,0),_=s.crds;if(s.typ=="rad"){x.Type.v.GrdT="Rdl";
var j=.7;o.x=(1-j)*_[0]+j*_[3];o.y=(1-j)*_[1]+j*_[4];G.x=o.x;G.y=o.y;G.x+=Math.max(_[2],_[5])}else{x.Type.v.GrdT="Lnr";
o.x=_[0];o.y=_[1];G.x=_[2];G.y=_[3];o.x=G.x+.5*(o.x-G.x);o.y=G.y+.5*(o.y-G.y)}o=P.oG(o);G=P.oG(G);L.K.jk(o,G,l,x);
var U=s.grad;L.K.GC(U,a);return x};ap.prototype.PutText=function(s,m,l,x){var a=m.charCodeAt(0),X=null;
if(this.di!=-1&&this.di!=this.E3)return;if(m.length==0||m.length==1&&(a==0||a==8203))return;this.Nl(s);
var P=this.aT,o=s.font,G=ap.lF(s.ctm);G.concat(this.Nr);var _=ap.lF(o.Tm);_.concat(G);var j=r.Q.LL(_),U=new ae(1/j,0,0,-1/j,0,0);
U.concat(_);var S=o.Tfs*j,c=P.G.length-1;while(c>=0&&P.G[c].add.TySh==null)c--;if(U.S*U.S+U.In*U.In<.001&&x==null&&c>=0&&P.G[c].add.TySh&&P.G[c].opacity==Math.round(255*s.ca)){var y=P.G[c],O=this.Xp[c],p=y.add.TySh.A,D=(p.sI+O.eP-U.sI)/S,f=Math.abs(D),T=m.indexOf(" ")==-1,I=p.lz==U.lz&&p.S==U.S&&p.In==U.In&&p.Am==U.Am,H=I&&Math.abs(O.TV-U.bW)<1e-5&&f<.6,b=U.bW-O.TV;
if(H){X=y;O.eP=U.sI-p.sI;if(D>.2&&T&&[".",",","?",":","!"].indexOf(m)==-1)m=" "+m}else if(I&&Math.abs(U.sI-p.sI)<1e-5&&0<b&&b<S*1.7&&O.acH==S){X=y;
this.nB(O);O.TV=U.bW;m="\n"+m}}if(X==null){c=P.G.length;this.Xp[c]={lS:[],eP:0,TV:U.bW,vf:"",acH:S};
X=P.d2();P.G.push(X);X.add.lnsr="rend";X.add.TySh=ex.mA(0,0);X.add.TySh.A=U}var O=this.Xp[c];O.eP+=l*S;
O.vf+=m;var R=X.add.TySh.x5,W=ex.Ep(R);if(x){ex.c8(R,1);var J=[0,0,Math.ceil(x[0]*j),Math.ceil(x[1]*j)];
ex.rI(R,J)}var u=W.length-1,e=u+m.length;ex.A6(R,u,m);if(this.zn==null)this.zn=ex.f9(R,u,u);var Q=this.zn;
Q.m$.FontSize=Math.round(S);Q.m$.Tracking=Math.round(o.Tc*100);Q.m$.Underline=o.Tun==1;Q.m$.FillColor={Type:1,Values:[1,s.colr[0],s.colr[1],s.colr[2]]};
if(o.Tal!=null)Q.AO.Justification=o.Tal;if(O.lS.length!=0){Q.m$.AutoLeading=!1;Q.m$.Leading=O.TV-O.lS[O.lS.length-1].y}var q=o.Tf;
q=q.replace(/#2B/g,"+");q=q.replace(/#2C/g,"-");q=q.split("+").pop();var Z={"NimbusRomNo9L-Medi":"NimbusRomNo9L-Med","NimbusRomNo9L-Regu":"NimbusRomNo9L-Reg","NimbusRomNo9L-MediItal":"NimbusRomNo9L-MedIta","NimbusRomNo9L-ReguItal":"NimbusRomNo9L-RegIta",CMTT9:"NimbusMono-Regular",Arial:"ArialMT","BebasNeue-Regular":"BebasNeueRegular"};
if(Z[q])q=Z[q];ex.Cl(Q,q);ex.j3(R,u,e-1,Q);X.No();X.opacity=Math.round(255*s.ca)};ap.prototype.nB=function(s){s.lS.push({h_:s.eP,gN:s.vf.slice(s.lS.length==0?0:1)+"\n",y:s.TV,zd:s.acH});
s.eP=0;s.vf=""};ap.prototype.db=function(s,m,l){return new Uint8Array(iO.ln("PNG").yd([[s.buffer,0]],m,l))};
ap.prototype.PutImage=function(s,m,l,x,a,P,o){if(this.di!=-1&&this.di!=this.E3)return;var G=this.aT,_=s.font.Tmode;
if(_==7&&G.G[G.G.length-1].add.TySh){return}this.Nl(s);var j=ap.lF(s.ctm);j.concat(this.Nr);var U=new ae(1/l,0,0,-1/x,0,1);
U.concat(j);j=U;m=ap.RO(m,l,x,P,!1);if(a)a=ap.RO(a,l,x,o,!0);if(a==null){if(m.length==l*x*4)m=this.db(m,l,x)}else{m=this.ZF(m,l,x,P,!1);
a=this.ZF(a,l,x,o,!0);var S=L.B(l*x);L.hy(a,S,0);L._Y(S,m,3);m=this.db(m,l,x)}var X=G.PZ(m,"Bitmap",0,0),c=X.rect.clone();
c.x=c.y=0;var y=L.H.$$(c).s;L.H.A(y,j,y);X.add.SoLd.Trnf=r.Q.ZG(y);X.add.SoLd.nonAffineTransform=r.Q.ZG(y);
X.y2(G,!1);ap.U2(s,X);G.G.push(X)};ap.U2=function(s,m){m.opacity=Math.round(255*s.ca);var l=ap.qP[s.bmode];
if(l==null)console.log("Unknown blend mode",l);else m.TR=l};ap.qP={"/Normal":"norm","/Multiply":"mul ","/Screen":"scrn","/Overlay":"over","/Darken":"dark","/Lighten":"lite","/ColorDodge":"div ","/ColorBurn":"idiv","/HardLight":"hLit","/SoftLight":"sLit","/Difference":"diff","/Exclusion":"smud","/Hue":"hue ","/Saturation":"sat ","/Color":"colr","/Luminosity":"lum "};
ap.ik=function(s){for(var m in ap.qP)if(ap.qP[m]==s)return m};ap.RO=function(s,m,l,x,a){var P=iO.D1(s.buffer);
if(P=="jpg"){try{s=new Uint8Array(iO.ln("JPG").an9(s.buffer))}catch(iX){s=new Uint8Array(m*l*4)}}else if(P=="jb2"){s=new Uint8Array(iO.ln("JPG").Gs(s.buffer,x,a)[0].data)}else if(s.length!=m*l*4){var o=new Uint8Array(m*l*4),G=Math.ceil(m/8),_=new Uint8Array(l*G);
UTIF.decode._decodeG4(s,0,s.length,_,0,m,1);var j=_[0]==(a?255:0);for(var U=0;U<l;U++){var S=G*U;for(var X=0;
X<m;X++){var C=U*m+X,c=C*4,y=(_[S+(X>>3)]>>7-(X&7)&1)*255;if(j)y=255-y;o[c]=y;o[c+1]=y;o[c+2]=y;o[c+3]=255}}s=o}return s};
ap.prototype.ZF=function(s,m,l,x,a){if(s.length!=m*l*4){var P=iO.D1(s.buffer);if(P=="jb2")throw"e";var o=iO.ln(P);
if(o==null||P=="tga")o=iO.ln("jpg");s=new Uint8Array(o.Gs(s,x,a)[0].data)}return s};ap.prototype.ShowPage=function(){var s=this.aT;
this.E3++;var m=this.bV;this.Y8();var l=s.d2();s.G.push(l);var x=new bU(Math.round(this.UJ.x),Math.round(this.UJ.y),Math.round(m[2]-m[0]),Math.round(m[3]-m[1]));
if(x.Xh())x.e=x.l=2e3;this.L3=this.L3.if(x);l.Kp(x);l.add.artb.artboardBackgroundType.v=3;l.qW("Page "+this.E3);
l.add.lsct=hN.fs;l.TR="pass";l.Yy=24};ap.prototype.Print=function(s){console.log("Print:",s)};ap.prototype.Done=function(){var s=this.aT;
if(this.E3==1)s.G[s.G.length-1].add.lsct=hN.yF;s.Gp(this.E3);for(var C=0;C<s.G.length;C++){var m=s.G[C],l=m.add.vmsk,x=m.add.TySh,a=this.Xp[C];
m.GK();if(l){var P=!1;for(var o=0;o<l.T.length;o++){var G=l.T[o];if((G.type==0||G.type==3)&&G.length>32767)P=!0}if(P){s.G.splice(C,1);
C--;continue}}m.sN(s);if(x&&a.lS.length!=0){this.nB(a);var _=x.x5,j=a.lS.length,U=a.lS[0],S=0,X=0;for(var o=0;
o<j;o++)S=Math.max(S,a.lS[o].h_);ex.c8(_,1);x.A.bW-=U.zd*.7;ex.rI(_,[0,0,Math.ceil(S*1.1),Math.ceil(a.lS[j-1].y-U.y+U.zd*2)])}if(x){var _=x.x5;
ex.acI(_);var c=ex.Ep(_).split("\n");for(var o=0;o<c.length-1;o++){var y=c[o],O=0;for(var p=0;p<y.length;
p++){var D=y.charCodeAt(p);if(1473<=D&&D<=1524)O++}if(O>y.length/2){c[o]=y.split("").reverse().join("");
var f=_.EngineDict.ParagraphRun.RunArray[o].ParagraphSheet.Properties;f._Direction=1;f.Justification=ex.U6(f)}}ex.nJ(_,c.join("\n"))}}s.VK=!0;
s.e=this.L3.e;s.l=this.L3.l;s.buffer=L.B(this.L3.k()*4)};var cz={};cz.v1=function(s,m,l,x,a,P){if(a==null)a=s.e;
if(P==null)P=s.l;var o=!1,G=[s.root],_=s.root.children;if(s.add.artd){o=!0;for(var C=0;C<_.length;C++)if(_[C].i.add.artb==null)o=!1;
if(o)G=_}var j=new bU(0,0,s.e,s.l),U=m[0];U=U.replace(/,/g," ").replace(/\-/g," - ").replace(/ +/g," ").trim();
U=U.split(" ");var S=[];for(var C=0;C<U.length;C++){var X=U[C];if(X=="-"){var c=S.pop(),y=parseInt(U[C+1]);
while(c<y){S.push(c);c++}}else S.push(parseInt(X))}U=S;for(var C=0;C<U.length;C++)if(isNaN(U[C])||U[C]<1||U[C]>G.length){U.splice(C,1);
C--}var O=a/s.e,p=P/s.l,D=O*72/s.sz,f=p*72/s.sz,T=72*m[5],I=72*m[5];for(var C=0;C<G.length;C++){if(U.length!=0&&U.indexOf(C+1)==-1)continue;
var H=G[C],b=o?H.i.wy():j,R=Math.round(b.e*D+2*T),W=Math.round(b.l*f+2*I);l.StartPage(0,0,R,W);var J=UDOC.getState([[0,0,R,W]]),u=new ae;
u.translate(-b.x,-b.y-b.l);u.scale(D,-f);u.translate(T,I);if(m[2]){var e=s.cf();if(!j.yb(b)){e=L.B(b.k()*4);
L.yx(s.cf(),j,e,b)}if(m[1]!=100){var Q=iO.ln("JPG").yd([[e.buffer]],b.e,b.l,[m[1]]);e=new Uint8Array(Q)}var q=new ae;
q.translate(b.x,b.y);cz.CB(J,l,e,b,q,u)}else cz.DD(s,H,J,l,u,m,x);l.ShowPage()}l.Done()};cz.w1=function(s){s=L.K.Qv(s);
return[s.o/255,s.z/255,s.S/255]};cz.DD=function(s,m,l,x,a,P,o){var G=m.i,_=G.add.lsct,j=G.add.lmfx,U=G.add.vmsk,S=G.add.vstk,X=G.add.TySh,p,D;
if(!G.p$())return;var c=G.opacity/255,y=G.add.iOpa!=null?G.add.iOpa/255:1;l.bmode=ap.ik(G.TR);l.ca=l.CA=c*y;
var O=j;if(O)O=O.solidFillMulti.v[0];if(O)O=O.v;if(O&&!O.enab.v)O=null;var f=G.rect;if(G.ox()&&(!G.gu()||G.GM&&G.GM.vO)){if(G.gu){p=G.GM.vO;
f=G.GM.aa7}else{p=L.B(G.rect.k());L.hy(G.buffer,p,3)}D=jo.kA(j,null,p,f,s,f).type;var T=["DrSh","OrGl"];
if(y!=1||S&&!S.fillEnabled.v){var I=p.slice(0);L.ms(I);for(var C=0;C<T.length;C++){var H=D[T[C]];for(var b=0;
b<H.length;b++){var R=H[b],W=R.DC.clone();W.x+=f.x;W.y+=f.y;L.Iq(I,f,R.du,W)}}}}if(D)cz.Bc(G,p,f,D,l,x,a,P,!0);
if(G.gu()){for(var C=0;C<m.children.length;C++)cz.DD(s,m.children[C],l,x,a,P,o)}else if(U&&G.Ee()){var J=U.T,u=L.j.dj(J),e=!1,Q=!1,q=!1;
if(S.fillEnabled.v){var Z=jo.pL(j,G.add),E=Z[0],z=Z[1];l.colr=cz.Af(E?E:z,a,u);e=!0}var V=jo.eE(j);if(!S.strokeEnabled.v&&V)S=V;
if(S.strokeEnabled.v){var Y=S.strokeStyleContent.v,d=S.strokeStyleLineDashSet.v,w=i4.Ah.Es.indexOf(S.strokeStyleLineAlignment.v.strokeStyleLineAlignment);
l.COLR=cz.Af(Y,a,u);l.lwidth=S.strokeStyleLineWidth.v.val*(w==2?2:1)*a.LL();l.mlimit=S.strokeStyleMiterLimit.v;
l.doff=S.strokeStyleLineDashOffset.v.val;l.ljoin=i4.Ah.join.indexOf(S.strokeStyleLineJoinType.v.strokeStyleLineJoinType);
l.lcap=i4.Ah.S5.indexOf(S.strokeStyleLineCapType.v.strokeStyleLineCapType);l.dash=[];for(var C=0;C<d.length;
C++)l.dash.push(d[C].v.val*l.lwidth);if(l.dash.length==1&&l.dash[0]==0)l.dash=[];Q=!0;if(w==2)q=!0}var A=L.H.wl(J,Q).sY;
L.H.A(A.s,a,A.s);l.pth={cmds:A.r,crds:A.s};if(e&&!q)x.Fill(l);if(Q)x.Stroke(l);if(e&&q)x.Fill(l)}else if(X&&P[4]){var $=X.x5,i=new hJ($,o),A=b3.y8(i,X),K=L.H.FP(A);
for(var h in K){var F=parseInt(h.slice(1),16);l.colr=O?cz.w1(O.Clr.v):[(F>>>16&255)/255,(F>>>8&255)/255,(F&255)/255];
var N=K[h];L.H.A(N.s,a,N.s);N=L.H.aco(N);l.pth={cmds:N.r,crds:N.s};x.Fill(l)}}else if(X&&P[3]==!1){var $=X.x5,iQ=X.A.clone(),jB=new ae(1,0,0,-1,0,0);
jB.concat(iQ);jB.concat(a);var k=ex.Ep($),i=new hJ($,o);for(var C=0;C<i.AO.length;C++){var ab=i.AO[C];
if(ab.Hj.length==1&&ab.Hj[0].eH)continue;for(var b=0;b<ab.Ox.length;b++){var f_=ab.Ox[b],fc=ab.Y1.y+f_.Y1.y,g8=ab.Hj[f_.start].start,bH=ab.Hj[f_.end-1].end,cR=ex.afW($,g8,bH);
for(var hr=0;hr<cR.length;hr++){var h$=i.c5(g8),gE=cR[hr],d8=ex.f9($,g8,g8),hG=d8.dN[d8.m$.Font].Name;
l.font.Tf=hG;var h=ex.Qv(d8.m$.FillColor);l.colr=O?cz.w1(O.Clr.v):[h.o/255,h.z/255,h.S/255];l.font.Tfs=Math.round(d8.m$.FontSize);
var f7=k.slice(g8,g8+gE);if(d8.m$.FontCaps==2)f7=f7.toUpperCase();var hX=new ae;hX.translate(h$.Bv.x,-fc);
hX.concat(jB);l.ctm=[hX.lz,hX.S,hX.In,hX.Am,hX.sI,hX.bW];x.PutText(l,f7,0);l.ctm=[1,0,0,1,0,0];g8+=gE}}}}else if(!G.rect.Xh()){var fB,e5,g9=!1,cL=new ae;
if(G.add.SoLd){var bf=G.add.SoLd,gF=bf.Idnt.v,iC=s.WN(gF,bf.Crop?bf.Crop.v:null),dO="";if(iC==null)return;
var ax=iC.H6,e7=iO.D1(iC.raw.buffer);if(P[6].indexOf(e7)!=-1){fB=iC.raw;g9=!0}else fB=ax[0];e5=ax[1];
cL=L.V.wi(bf)}else{fB=G.buffer;e5=G.rect;cL.translate(e5.x,e5.y)}if(O&&!g9)fB=jo.rG(fB,O,e5);cz.CB(l,x,fB,e5,cL,a);
if(O&&g9){var h1=[0,0,e5.e,0,e5.e,e5.l,0,e5.l];L.H.A(h1,cL,h1);L.H.A(h1,a,h1);var hL=JSON.parse(JSON.stringify(l));
hL.ca=O.Opct.v.val/100;hL.pth={cmds:["M","L","L","L","Z"],crds:h1};hL.colr=cz.w1(O.Clr.v);x.Fill(hL)}}if(D)cz.Bc(G,p,f,D,l,x,a,P,!1)};
cz.Af=function(s,m,l){if(s.Clr)return cz.w1(s.Clr.v);var x=s,a=x.Rvrs?x.Rvrs.v:!1,P=[],o,G=x.Type.v.GrdT=="Rdl"?"rad":"lin",_=L.K.s8(x,l),j=m.oG(_[0]),U=m.oG(_[1]);
if(G=="rad")o=[j.x,j.y,0,j.x,j.y,fz.rv(j,U)];else{j.Qk(U.x+(j.x-U.x)*2,U.y+(j.y-U.y)*2);o=[j.x,j.y,U.x,U.y]}var S=x.Grad.v.Clrs.v;
for(var C=0;C<S.length;C++){var X=S[C].v,c=X.Lctn.v/4096;P.push([a?1-c:c,cz.w1(X.Clr.v)])}if(a)P.reverse();
return{typ:G,mat:[1,0,0,1,0,0],grad:P,crds:o}};cz.Bc=function(s,m,l,x,a,P,o,G,_){var j=l.clone(),U=m;
if(s.add.TySh&&!G[3]&&!G[4])return;var S=a.ca,X=a.bmode;for(var C=i4.order.length-1;C>=0;C--){var c=i4.order[C];
if(c=="GrFl"||c=="SoFi")continue;if(s.add.vmsk&&c=="FrFX")continue;var y=x[c],O=C>7||c=="FrFX";if(O!=_)continue;
for(var p=0;p<y.length;p++){var D=y[p];console.log(O,c,D);if(D.DC==null)D=D.ba?D.ba:D.SM;var f=D.DC.clone();
f.offset(j.x,j.y);if(!O){if(!j.kq(f)){var T=j.if(f),I=L.B(T.k());L.kV(U,j,I,T);U=I;j=T}L.Iq(U,j,D.du,f)}if(O&&c=="FrFX"&&D.Qc)L.Iq(D.Qc,f,D.du,f);
var H=new ae;H.translate(f.x,f.y);a.ca=D.PK;a.bmode=ap.ik(D.My);cz.CB(a,P,D.du,f,H,o)}}a.ca=S;a.bmode=X};
cz.CB=function(s,m,l,x,a,P){var o=new ae;o.scale(x.e,-x.l);o.translate(0,x.l);o.concat(a);o.concat(P);
s.ctm=[o.lz,o.S,o.In,o.Am,o.sI,o.bW];m.PutImage(s,l,x.e,x.l);s.ctm=[1,0,0,1,0,0]};var hx={};hx.st=function(s){var m=new Uint8Array(s);
return hx.iS(m,0)};hx.iS=function(s,m){var l=g.n,x=g.cS,a={te:x(s,m,4),X:m+8,size:l(s,m+4)},P=a.te=="FORM"||a.te=="LIST"||a.te=="CAT ";
if(P)a.Lk=x(s,m+8,4);if(a.size<0||a.X+a.size>s.length)throw"e";if(P){a.sub=[];m+=12;var o=a.X+a.size;
while(m<o){var G=hx.iS(s,m);a.sub.push(G);m+=8+G.size+(G.size&1)}}return a};var di={};di.st=function(s,m){var l=new Uint8Array(s);
return di.iS(l,0,m)};di.iS=function(s,m,l){var x=g.Cu,a=g.cS,P={te:a(s,m,4),X:m+8,size:x(s,m+4)};if(l&&l[P.size]!=null)P.size=l[P.size];
if(P.te=="RIFF"||P.te=="LIST"){P.Lk=a(s,m+8,4)}if(P.size<0||P.X+P.size>s.length)throw"e";if(P.te=="RIFF"||P.te=="LIST"&&(P.Lk!="cmpr"&&P.Lk!="stlt")){P.sub=[];
m+=12;var o=P.X+P.size;while(m<o){var G=di.iS(s,m,l);P.sub.push(G);m+=8+G.size+(G.size&1)}}return P};
function dG(){}dG.st=function(s,m){var l=new Uint8Array(s);m.VK=!0;var x=g.cS(l,0,2);if(x=="WL"){alert("Unsupported CDR version")}else{var a=dG.hp,P=di.st(l.buffer),o={data:l,X:0,Ak:dG.alg(l[11])},G,_,y=300;
o.Uw=o.Ak<600?16:32;dG._e(o,P.sub,m,0);if(a(P,"cmpr")==null){G=a(P,"page");_=G}else{var j=a(P,"cmpr").sub;
G=j[0];_=j.slice(1)[1];var U=a(G,"filt").sub,S=a(G,"otlt").sub;G.M9={};for(var C=0;C<U.length;C++)G.M9[U[C].sub[0].Z.id]=U[C].sub[0].Z;
G.NU={};for(var C=0;C<S.length;C++)G.NU[S[C].Z.id]=S[C].Z}var X=a(G,"mcfg").Z,c=X.a7Z;y/=an.gk(new bU(0,0,Math.round(c.x*y),Math.round(c.y*y)),8192*8192);
var O=Math.round(c.x*y),p=Math.round(c.y*y);m.e=O;m.l=p;m.buffer=L.B(m.e*m.l*4);var D=new ae(y,0,0,-y,c.x*y/2,c.y*y/2);
dG.QT(_,G,m,D);m.Gp(1);m.G[m.G.length-1].Kp(new bU(0,0,O,p))}};dG.hp=function(s,m){var l=null;for(var C=0;
C<s.sub.length;C++){var x=s.sub[C];if(x.te==m||x.Lk==m)l=x}return l};dG.QT=function(s,m,l,x){var a=dG.hp,P=s.Lk?s.Lk:s.te,o=a(s,"lgob"),G=a(s,"txsm"),_,j;
if(o){_=a(o,"trfl");j=a(o,"loda")}else if(a(s,"lobj"))j=a(s,"lobj");var U=_?_.sub[0].pc.clone():new ae;
U.concat(x);var S=l.d2();if(P=="page"||P=="layr"||P=="grp "){S.qW((P=="page"?"Page":"Group")+" "+l.G.length);
S.add.lsct=hN.yF;S.TR="pass";S.Yy=24;var X=[];if(P=="page")X=a(s,"gobj").sub;if(P=="layr")X=s.sub.slice(2);
if(P=="grp ")X=s.sub.slice(4);if(X.length==0)return;l.G.push(l.b8());for(var C=X.length-1;C>=0;C--)dG.QT(X[C],m,l,x)}else if(P=="obj "&&j.Z&&j.Z.path){S.qW("Object "+l.G.length);
var c,y;if(m.M9){c=m.M9[j.Z.abb];y=m.NU[j.Z.aiU]}var O=S.getName(),p=c&&c.type!=0,D=p&&c.Z!=null?c.Z:[0,0,0];
S.Yy|=16;S.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));var f=S.add.vstk;f.strokeEnabled.v=!1;
S.add.vmsk=new t.sD;if(y&&y.aiX!=1){f.strokeEnabled.v=!0;f.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter";
f.strokeStyleLineWidth.v.val=y.lineWidth*x.LL();var T=y.color;f.strokeStyleContent.v.Clr.v=L.K.gc({o:T[0]*255,z:T[1]*255,S:T[2]*255})}var I=j.Z.path;
S.add.vmsk.T=L.H.vP(I,!1);L.j.G9(S.add.vmsk.T,U);ap.DG(D,S,U,L.j.dj(S.add.vmsk.T));f.fillEnabled.v=p;
S.GK();S.sN(l)}else if(P=="obj "&&G){var H=j.Z.aqt,b=j.Z.ajG,J="";S.add.TySh=ex.mA(0,0);var R=U.LL();
S.add.TySh.A.translate(U.sI,U.bW);var W=S.add.TySh.x5,u=G.Z.a5S;for(var C=0;C<u.length;C++){var e=u[C],Q=J.length;
J+=e.text+"\n";ex.A6(W,Q,e.text+"\n");var q=dG.aan(e.a1s,m),Z=ex.f9(W,Q,J.length);if(q.align==3)Z.AO.Justification=1;
else Z.AO.Justification=0;var E=q.fill.Z;Z.m$.FillColor={Type:1,Values:[1,E[0],E[1],E[2]]};Z.m$.FontSize=Math.round(q.a6o.fontSize*U.LL());
ex.j3(W,Q,J.length-1,Z)}if(b){ex.c8(W,0)}else{ex.c8(W,1);ex.rI(W,[0,0,Math.round(H.x*U.lz),Math.round(-H.y*U.Am)])}S.qW(J.slice(0,10))}else{S=null}if(S)l.G.push(S)};
dG.aan=function(s,m){var l=dG.hp(m,"stlt").Z,x=JSON.parse(JSON.stringify(l.vN[s]));if(x.Ri!=0){var a=l.vN[x.Ri];
for(var P in a)if(x[P]==null||x[P]==0)x[P]=a[P];delete x.Ri}x.align=l.a2m[x.amk];x.fill=m.M9[l.a0I[x.aq6]];
x.aih=m.NU[l.a9M[x.ahl]];x.a6o=l.a1l[x.aeZ];return x};dG.ao7=function(C){var cE=C.data[C.X];C.X+=1;return cE};
dG.zT=function(C){var cE=g.CP(C.data,C.X);C.X+=2;return cE};dG.Qf=function(C){var cE=g.Cu(C.data,C.X);
C.X+=4;return cE};dG.as$=function(C){var cE=g.Cu(C.data,C.X);C.X+=8;return cE};dG.HE=function(C){var cE=g.B6(C.data,C.X);
C.X+=2;return cE};dG.l9=function(C){var cE=g.sf(C.data,C.X);C.X+=4;return cE};dG.XR=function(C){var cE=g.PF(C.data,C.X);
C.X+=8;return cE};dG.BD=function(C){if(C.X>=C.data.length)throw"e";var s=0;while(C.data[C.X+s]!=0)s++;
var m=g.cS(C.data,C.X,s);C.X+=s+1;return m};dG.amm=function(s){if(s.Ak<600)return Math.PI*dG.HE(s)/1800;
return Math.PI*dG.l9(s)/18e7};dG.alZ=function(s){if(s.Ak<1500)return dG.K$(s);else return dG.XR(s)/254e3};
dG.K$=function(s){if(s.Ak<600)return dG.HE(s)/1e3;else return dG.l9(s)/254e3};dG.a8b=function(s){if(s.Ak<600)return dG.zT(s);
else return dG.Qf(s)};dG.a0K=function(s){if(s.Ak<600)return CRDParser.HE(s);else return dG.l9(s)};dG._e=function(s,m,l,x){var a=dG,P=a.ao7,o=a.zT,G=a.Qf,_=a.as$,j=a.HE,U=a.l9,S=a.XR,X=a.K$,c=a.alZ,y=a.amm,O=a.a8b,p=a.a0K;
for(var D=0;D<m.length;D++){var f=s.Ak,T=m[D];s.X=T.X+(T.te=="LIST"?4:0);if(T.te=="vrsn"){var I=o(s);
s.Ak=I;console.log("Version",I);s.Uw=I<600?16:32}else if(T.te=="DISP"){}else if(T.te=="LIST"&&T.Lk=="cmpr"){var H=G(s),b=G(s),R=G(s),W=G(s),J=new Uint8Array(s.data.buffer,s.X+8+2,H-6-8),u=pako.inflateRaw(J),Z=0;
s.X+=H;J=new Uint8Array(s.data.buffer,s.X+8+2);var e=pako.inflateRaw(J),Q=[];for(var q=0;q<e.length;
q+=4)Q.push(g.Cu(e,q));T.sub=[];while(Z<u.length){var E=di.iS(u,Z,Q);Z=E.X+E.size;T.sub.push(E)}var z={data:u,X:0,Ak:f,Uw:s.Uw};
dG._e(z,T.sub,l,x+1)}else if(T.te=="LIST"&&T.Lk=="stlt"){var V=s.X,f_=32;T.Z={};var Y=G(s);if(Y==0)return;
T.Z.a0I=dG.ji(s,f>=1300);T.Z.a9M=dG.ji(s);T.Z.a1l={};var d=G(s);for(var C=0;C<d;C++){var w=G(s);s.X+=f<1e3?12:20;
var A=o(s),$=o(s);s.X+=8;var i=X(s);s.X+=f<1e3?12:20;T.Z.a1l[w]={aps:A,a2b:$,fontSize:i}}T.Z.a2m=dG.ji(s);
var K=G(s);s.X+=52*K;var h=G(s);s.X+=152*h;var F=G(s);s.X+=784*F;var N=G(s);for(var C=0;C<N;C++){s.X+=40;
if(f>1300)s.X+=4;if(f>=1300){if(G(s))s.X+=68;else s.X+=12}else{s.X+=20;if(f>=1e3)s.X+=8;if(G(s))s.X+=8;
s.X+=8}}var iQ=G(s);T.Z.ais={};for(var C=0;C<iQ;C++){var jB=G(s),k={};s.X+=12;k.right=X(s);k.akK=X(s);
k.left=X(s);T.Z.ais[jB]=k}var ab=G(s);if(f>=1300)f_+=4;s.X+=f_*ab;var fc=G(s);s.X+=28*fc;if(f>800){var g8=G(s);
s.X+=12*g8}T.Z.vN={};for(var C=0;C<Y;C++){var bH=G(s),cR=G(s),hr={};hr.Ri=G(s);s.X+=8;var h$=G(s);if(f>=1200)h$*=2;
s.X+=h$;hr.aq6=G(s);hr.ahl=G(s);if(bH>1){hr.aeZ=G(s);hr.amk=G(s);hr.aeG=G(s);hr.aqD=G(s);if(f>800)hr.aj_=G(s)}if(bH>2){hr.a9t=G(s);
hr.adA=G(s);hr.a1w=G(s);hr.a9_=G(s);hr.acy=G(s)}T.Z.vN[cR]=hr}}else if(T.te=="LIST")dG._e(s,T.sub,l,x+1);
else if(T.te=="txsm"){T.Z={};if(f<600)throw"e";if(f<700)throw"e";if(f>=1600)throw"e";if(f>=1500)s.X+=37;
else s.X+=36;if(G(s)){if(f<800)s.X+=32}if(f<800)s.X+=4;T.Z.afo=G(s);T.Z.a5S=[];s.X+=48;if(f>=800){if(G(s)){s.X+=32;
if(f>=1300)s.X+=8}}if(f>=1500)s.X+=12;var bH=G(s),gE=1,d8=!1;if(!bH){if(f>=800)s.X+=4;if(f>800)s.X+=2;
if(f>=1400)s.X+=2;s.X+=24;if(f<800)s.X+=8;gE=G(s)}for(var q=0;q<gE;q++){var hG=G(s),C=0;if(f>=1300&&bH)s.X++;
s.X++;var Y=G(s),f7=[];for(C=0;C<Y;C++){var hX=P(s),e5=0;P(s);var fB=P(s);if(f>=800)e5=P(s);var hr={};
if(fB&1){hr.aps=o(s);var g9=o(s);if(g9)hr.ah6=g9}if(fB&2)s.X+=4;if(fB&4)hr.amV=X(s);if(fB&8)s.X+=4;if(fB&16)s.X+=4;
if(fB&32)s.X+=4;if(fB&64){hr.aq6=G(s);if(f>=1500)s.X+=48}if(fB&128){hr.ahl=G(s)}if(e5&8){if(f>=1300){var cL=G(s);
if(s.X+cL*2>=s.data.length){d8=!0;break}s.X+=cL*2}else s.X+=4}if(e5&32){var bf=P(s);if(bf)s.X+=52}if(hX==2)if(f>=1300)s.X+=48;
f7.push(hr)}if(d8){break}var gF=G(s);if(s.X+gF*4>s.data.length)break;var iC=[];for(C=0;C<gF;C++){var ax=0;
if(f>=1200)ax=_(s)&4294967295;else ax=G(s);iC[C]=ax>>16|ax&1}var e7=gF;if(f>=1200)e7=G(s);var dO=dG.BD(s);
T.Z.a5S.push({a1s:hG,text:dO,vN:f7})}}else if(T.te=="font"){var h1=o(s),hL=o(s);s.X+=14;var jl=dG.BD(s);
T.Z={id:h1,agM:hL,name:jl}}else if(["IKEY","ICMT","pfrd","bcfg"].indexOf(T.te)!=-1){}else if(T.te=="flgs")T.Z=G(s);
else if(T.te=="bbox"){var gT=X(s),hZ=X(s),j6=X(s),aP=X(s);T.Z=new bU(gT,hZ,j6-gT,aP-hZ)}else if(T.te=="fild"){var h7=G(s),fa=0,cA;
if(f>=1300){s.X+=4;fa=o(s);s.X+=2}var h4=o(s);if(h4==0){}else if(h4==1){s.X+=f>=1300?13:2;cA=dG.Eq(s)}else if(h4==2){s.X+=f>=1300?8:2;
var jg=P(s),cS=0;if(f>=1300){s.X+=17;cS=j(s)}else if(f>=600){s.X+=19;cS=U(s)}else{s.X+=11;cS=j(s)}var iT=y(s),cf=.5+p(s),ir=.5+p(s)-.5;
if(f>=600)s.X+=2;var bl=O(s)&255,gp=P(s)/100;s.X++;var j4=O(s)&65535;if(f>=1300)s.X+=3;var ey=[];for(var C=0;
C<j4;C++){var ca=dG.Eq(s);if(f>=1300){if(fa==158||f>=1600&&fa==150)s.X+=26;else s.X+=5}var iu=O(s)/100;
if(f>=1300)s.X+=3;ey.push([iu,ca])}cA={typ:jg==1?"lin":"rad",crds:[cf-Math.cos(iT)/2,ir-Math.sin(iT)/2,cf,ir],grad:ey,mat:[1,0,0,1,0,0]}}else console.log("Unknown fill type",h4);
T.Z={id:h7,type:h4,Z:cA}}else if(T.te=="outl"){var jv=G(s);if(f>=1300){var g$=0,cy=0;while(g$!=1){s.X+=cy;
g$=G(s);cy=G(s)}}var cK=o(s),cN=o(s),cJ=o(s);if(f<1300&&f>=600)s.X+=2;var fb=X(s),cd=o(s)/100;if(f>=600)s.X+=2;
var em=y(s);if(f>=1300)s.X+=46;else if(f>=600)s.X+=52;var cA=dG.Eq(s,jv==270963208||jv==276198e3,jv);
T.Z={id:jv,aiX:cK,a82:cN,atH:cJ,lineWidth:fb,color:cA}}else if(T.te=="mcfg"){if(1300<=f)s.X+=12;else if(900<=f)s.X+=4;
else if(600<=f&&f<700)s.X+=28;var eq=0,ie=0;if(f<400){s.X+=2;var gT=X(s),hZ=X(s),j6=X(s),aP=X(s);eq=Math.abs(j6-gT);
ie=Math.abs(aP-hZ)}else{eq=X(s);ie=X(s)}T.Z={a7Z:new fz(eq,ie)}}else if(T.te=="loda"||T.te=="lobj"){var V=s.X,jf=O(s),i3=O(s),j9=O(s),dm=O(s),jy=O(s),eg=[],a$=[];
s.X=V+j9;for(var C=0;C<i3;C++)eg[C]=O(s);s.X=V+dm;for(var C=i3-1;C>=0;C--)a$[C]=O(s);T.Z={};for(var C=0;
C<i3;C++){s.X=V+eg[C];var cg=a$[C];if(cg==10)T.Z.aiU=G(s);else if(cg==20)T.Z.abb=G(s);else if(cg==200)T.Z.aaQ=O(s);
else if(cg==30){if(f<400)jy--;if(jy==1){var gT=c(s),hZ=c(s),gt=0,i2=0,cZ=0,g5=0;if(f<1500){g5=c(s);cZ=f<900?g5:c(s);
i2=f<900?g5:c(s);gt=f<900?g5:c(s)}else throw"e";T.Z.path=L.H.vt(L.j.sh.Rect(0,0,gT,hZ,gt))}else if(jy==2){var ip=X(s),db=X(s),eS=y(s),a1=y(s),im=Math.abs(ip),e3=Math.abs(db);
T.Z.path=L.H.vt(L.j.sh.$d(0,0,im,-e3))}else if(jy==3){T.Z.path=dG.aib(s)}else if(jy==4){T.Z.ajG=dG.aqW(s)}else if(jy==6){T.Z.aqt=dG.ae5(s)}else if(jy==37){T.Z.path=dG.S$(s)}else console.log(jy)}}}else if(T.te=="trfd"){var V=s.X,jf=O(s),i3=O(s),j9=O(s);
s.X=V+j9;var eg=[];for(var C=0;C<i3;C++)eg[C]=O(s);for(var C=0;C<i3;C++){s.X=V+eg[C];if(f>=1300)s.X+=8;
var gu=o(s);if(gu==8){var f3,jw,gT,dE,d9,hZ;if(f>=600)s.X+=6;if(f>=500){f3=S(s);jw=S(s);gT=S(s)/(f<600?1e3:254e3);
dE=S(s);d9=S(s);hZ=S(s)/(f<600?1e3:254e3)}else throw"e";T.pc=new ae(f3,dE,jw,d9,gT,hZ)}else console.log(gu)}}else if(!1){console.log(T);
var iz=Math.min(T.size,32);console.log(g.jp(data,T.X,iz));console.log(g.alm(data,T.X,iz))}}};dG.ji=function(s,m){var l=dG.Qf,x={},a=l(s);
for(var C=0;C<a;C++){var P=l(s);s.X+=4;var o=l(s);x[P]=o;if(m)s.X+=48}return x};dG.aqW=function(s){var m=dG,l=m.K$,x=l(s),a=l(s);
return new fz(x,a)};dG.ae5=function(s){var m=dG,l=m.K$;s.X+=4;var x=l(s),a=l(s);return new fz(x,a)};
dG.S$=function(s){var m=dG,l=m.Qf,x=m.zT,a=m.K$;s.X+=4;var P=x(s)+x(s);s.X+=16;var o=dG.BV(s,P);return o};
dG.aib=function(s){var m=dG.zT(s);s.X+=2;return dG.BV(s,m)};dG.BV=function(s,m){var l=dG,x=l.K$,a=s.Ak<600?2:4,P=s.X,o={s:[],r:[]},G=0,_=0,j=0;
for(var C=0;C<m;C++){var G=x(s),_=x(s),U=s.data[P+m*a*2+C];if(!(U&64)&&!(U&128)){o.s.push(G,_);o.r.push("M");
j+=2}else if(U&64&&!(U&128)){o.s.push(G,_);o.r.push("L");j+=2}else if(!(U&64)&&U&128){o.s.push(G,_);
o.r.push("C");j+=6}else if(U&64&&U&128){o.s.push(G,_)}}if(j!=o.s.length)throw"e";return o};dG.a5b=function(s,m){var l=g.Cu;
m+=8;var x=l(s,m);m+=4;var a=l(s,m);m+=4;m+=4*7;var P=m,o=L.B(x*a*4);m+=1024;for(var G=0;G<a;G++)for(var _=0;
_<x;_++){var C=G*x+_,j=(a-G-1)*x+_,U=s[m+C]<<2,S=j<<2;o[S+0]=s[P+U+2];o[S+1]=s[P+U+1];o[S+2]=s[P+U+0];
o[S+3]=255}return{du:o,rect:new bU(0,0,x,a)}};dG.alg=function(s){if(s==32)return 300;else if(s<49)return 0;
else if(s<58)return 100*(s-48);else if(s<65)return 0;return 100*(s-55)};dG.Eq=function(s,m,l){var x=dG.zT,a=dG.Qf,P=s.Ak,o=0,G=0;
if(P>=500){o=x(s);if(o==1&&P>=1300)o=25;if(o==25||o==30){var _=0;if(o==30){o=25;_=30}else{_=x(s);s.X+=4}var j=x(s),U=x(s)}else if(o==14)throw"e";
else{s.X+=6;G=a(s)}}else throw"e";var S=[];if(o==2||o==9||o==17){var X=[G>>>0&255,G>>>8&255,G>>>16&255,G>>>24&255];
if(o==2)for(var C=0;C<4;C++)X[C]=Math.round(255*X[C]/100);for(var C=0;C<4;C++)X[C]/=255;S=UDOC.C.cmykToRgb(X)}else if(o==1||o==5){S=[G>>>0&255,G>>>8&255,G>>>16&255];
for(var C=0;C<3;C++)S[C]=S[C]/255}else console.log("Unknown color model "+o,G,G.toString(16));return S};
var a6=function(){var s,m,l=new ArrayBuffer(4),x=new Uint8Array(l),a=new Uint32Array(l),P=new Float32Array(l);
function o(X,c){for(var y=0;y<X.length;y++)if(X[y][0]==c)return X[y]}function G(){var X=0,c=0,y=0;do{y=s[m++];
X|=(y&127)<<c;c+=7}while(y&128&&c<35);return X>>>0}function _(X,c,y,O,p){s=X;m=c;var D=O[0]=="mesg",f=O[2],T={},I=1,H=D?1e9:f.length;
while(I<=H){var b=I;if(D){b=G();if(b==0)break}var R=o(f,b),W=R[2],J=R[1]==1,u=J?G():1,e=new Array(u);
if(W==3){if(!J)throw"e";e=s.slice(m,m+u);m+=u}else for(var C=0;C<u;C++){var Q;if((W&1)==1){if(W==1)Q=s[m++]==1;
else if(W==3)Q=s[m++];else if(W==5){var q=G();Q=q&1?~(q>>>1):q>>>1}else if(W==7)Q=G();else if(W==9){if(s[m]==0){Q=0;
m++}else{x[0]=s[m];x[1]=s[m+1];x[2]=s[m+2];x[3]=s[m+3];var Z=a[0];a[0]=Z<<23|Z>>>9;Q=P[0];m+=4}}else if(W==11){var E=j(s,m);
Q=E[0];m+=E[1]+1}else throw W}else{var z=y[W>>>1];if(z[0]=="enum"){var V=s[m++];if(V>127)throw"e";Q=z[2][V]}else{var Y=_(s,m,y,z,p+1);
Q=Y[0];m=Y[1]}}e[C]=Q}T[R[3]]=J?e:e[0];I++}return[T,m]}function j(X,c){var y=c;while(X[y]!=0)y++;return[g.V_(X,c,y-c),y-c]}function U(X,c){var y=c;
while(X[y]!=0)y++;for(var C=c;C<y;C++)if(X[C]>127)throw"e";return g.cS(X,c,y-c)}function S(X){s=X;m=1;
var c=[];while(m<X.length){var y=m,O=c.length,p=U(X,m);m+=p.length+1;var D=G();if(D>2)throw"e";var f=G(),T=[];
for(var C=0;C<f;C++){var I=U(X,m);m+=I.length+1;var H=G(),b=G(),R=G();T.push(D==0?I:[R,b,H,I])}c.push([["enum","strc","mesg"][D],p,T])}return c}return{a5E:S,ajO:_}}();
function bY(){}bY.st=function(s,m){var l=new Uint8Array(s),x=8,a=g.Cu(l,x),j=0,z=0;x+=4;var P=[];while(x<l.length){var o=g.Cu(l,x);
x+=4;var G=l.slice(x,x+o);if(l[x]==137&&l[x+1]==80){}else G=UZIP.inflateRaw(G);P.push(G);x+=o}var _=a6.a5E(P[0]);
for(var C=0;C<_.length;C++)if(_[C][1]=="Message")j=C;var U=a6.ajO(P[1],0,_,_[j],0)[0],S={CJ:{},qs:{},a9Z:{}},X=U.nodeChanges;
for(var c=0;c<X.length;c++){var y=X[c],O=y.guid;S.qs[O.sessionID+","+O.localID]=y}for(var c=0;c<X.length;
c++){var y=X[c],O=y.parentIndex;if(O){var p=bY.$r(S.qs,O.guid);if(p.children==null)p.children=[];p.children.push(y)}}var D=X[0],f=D.children,T=new bU,I=[],H=[];
for(var O=0;O<f.length;O++){var b=f[O],R=b.children;if(b.name=="Internal Only Canvas"||R==null)continue;
var W=new bU;for(var C=0;C<R.length;C++){var J=R[C],u=J.transform,e=J.size;if(u.m00==1&&u.m10==0&&u.m01==0&&u.m11==1){var Q=new bU(u.m02,u.m12,e.x,e.y);
W=W.if(Q)}}var q=T.l==0?0:T.l+100,Z=W.clone();Z.x=0;Z.y=q;T=T.if(Z);I[O]=W;H[O]=q}var E=an.gk(new bU(0,0,T.e,T.l),8192*8192);
m.e=Math.round(T.e/E);m.l=Math.round(T.l/E);m.buffer=L.B(m.e*m.l*4);for(var O=0;O<f.length;O++){var b=f[O],R=b.children;
if(b.name=="Internal Only Canvas"||R==null)continue;R.sort(bY.gf);var V=new ae(1,0,0,1,-I[O].x,H[O]-I[O].y);
V.scale(1/E,1/E);for(var C=0;C<R.length;C++){var J=R[C];bY.QT(J,[],V,U.blobs,m,0,S);z++}}m.Gp(z);m.VK=!0;
if(E!=1)alert("File scaled down "+E+"x")};bY.QT=function(s,m,l,x,a,P,o){var G=bY,J=!1,u,e,q,Z,E;for(var C=0;
C<m.length;C++){var _=m[C],j=_.guidPath.guids[0];if(G.a8g(j,s.guid)){var U={};for(var S in s)U[S]=_[S]!=null?_[S]:s[S];
s=U}}var X=s.type,c=s.children,y=s.size,O=s.effects,p=a.d2();p.qW(s.name);p.tG(s.visible);p.opacity=Math.round(s.opacity*255);
var D=G.r7(s.transform),f=D.clone();f.concat(l);var T=new bU(Math.round(f.sI),Math.round(f.bW),Math.round(y.x*f.LL()),Math.round(y.y*f.LL())),I=s.fillPaints,H=s.inheritFillStyleID;
if(H){var U=G.$r(o.qs,H);if(U)I=U.fillPaints}if(I==null)I=[];var I=G.Nw(I),b=I[0],R=s.strokePaints,H=s.inheritFillStyleIDForStroke;
if(H){var U=G.$r(o.qs,H);if(U)R=U.fillPaints}if(R==null)R=[];var R=G.Nw(R),W="BOOLEAN_OPERATION LINE RECTANGLE ROUNDED_RECTANGLE ELLIPSE VECTOR REGULAR_POLYGON STAR".split(" ").indexOf(X)!=-1;
if(W||X=="FRAME"){u=new t.sD;e=[];G.gy(s,x,u,e);J=L.j.kQ(u.T);L.j.G9(u.T,f);T=L.H.LU(L.j.dj(u.T));if(o.CJ.Vz&&b){var Q=t.sD.Ps(o.CJ.Vz.T);
for(var C=2;C<Q.length;C++)if(Q[C].aZ!=null)Q[C].aZ=3;u.T=u.T.concat(Q.slice(2));e=e.concat(JSON.parse(JSON.stringify(o.CJ.R2)))}}if(b&&b.type=="IMAGE"){E=b.imageScaleMode;
q=G.cf(x,b.image.dataBlob);var z=q.Sb.e/q.Sb.l,V=y.x/y.y;Z=Math.abs(z-V)}if(X=="FRAME"){}else if(W&&J&&q&&(E=="FIT"||E=="FILL"&&Z<=.05)){var Y=x[b.image.dataBlob].bytes,d=a.PZ(Y,p.getName(),0,0);
d.Yy=p.Yy;d.opacity=p.opacity;p=d;var w=new bU(0,0,y.x,y.y);if(E=="FIT"){var A=q.Sb.e,$=q.Sb.l,i=Math.min(y.x/A,y.y/$),K=A*i,h=$*i;
w=new bU(w.x+(w.e-K)/2,w.y+(w.l-h)/2,K,h)}var F=L.H.$$(w).s;L.H.A(F,f,F);p.add.SoLd.Trnf=r.Q.ZG(F);p.add.SoLd.nonAffineTransform=r.Q.ZG(F);
var N=[],O=s.effects,iQ=b.paintFilter;if(O)for(var C=0;C<O.length;C++)if(O[C].type=="FOREGROUND_BLUR"){var jB=O[C],k=ib.k$("GsnB",{});
N.push(k);k.v.enab.v=jB.visible;k.v.Fltr.v.Rds.v.val=jB.radius/2.4}if(iQ&&iQ.exposure!=0){var k=ib.k$("brit",{});
N.push(k);k.v.Fltr.v.Brgh.v=Math.round(iQ.exposure*160);k.v.Fltr.v.useLegacy.v=!0}if(iQ&&iQ.vibrance!=0){var k=ib.k$("vibA",{});
N.push(k);console.log(k);k.v.Fltr.v.Strt.v=Math.round(Math.round(iQ.vibrance*100))}if(N.length!=0){p.add.SoLd.filterFX=ib.yo();
a.Vi({id:p.add.SoLd.placed.v,rect:new bU,buffer:L.B(1),v:new t.K0});p.add.SoLd.filterFX.v.filterFXList.v=N}p.y2(a,!1);
G.QK(o,p,a)}else if(W){G.E5(p,e,u,s,b,f,T,x,a,o);var ab=G.rr(s,R[0],f,T,x,a,o);if(ab[0]!="None"){var f_=p.add.vstk;
f_.strokeEnabled.v=!0;f_.strokeStyleLineWidth.v.val=s.strokeWeight*f.LL();f_.strokeStyleLineAlignment.v.strokeStyleLineAlignment=i4.Ah.Es[["INSIDE","CENTER","OUTSIDE"].indexOf(s.strokeAlign)];
var fc={SoCo:"SoFi",GdFl:"GrFl"}[ab[0]],g8=["SoFi","GrFl","patternFill"].indexOf(fc),bH=[i4.Rc,i4.Ql,i4._6][g8];
f_.strokeStyleContent.v={classID:i4.Ah.Lk[0]};var cR=s.dashPattern;if(cR)f_.strokeStyleLineDashSet.v=jo.Xj(cR,1/s.strokeWeight);
var hr=f_.strokeStyleContent.v={classID:i4.Ah.Lk[g8]};for(var C=0;C<bH.length;C++)hr[bH[C]]=ab[1][bH[C]];
if(!f_.fillEnabled.v)G.Sj(ab,p)}if(O)for(var C=0;C<O.length;C++){var jB=O[C];if(jB.type!="FOREGROUND_BLUR")continue;
u.l2=jB.radius/2.4}p.sN(a)}else if(X=="TEXT"){var h$=s.textData,gE=h$.layoutSize,d8=["LEFT","RIGHT","CENTER"].indexOf(s.textAlignHorizontal);
p.add.lnsr="rend";p.add.TySh=ex.mA(0,0);p.add.TySh.fn=new bU(0,0,100,100);var hG=f.clone();p.add.TySh.A=hG;
var f7=p.add.TySh.x5,hX=h$.characters;if(s.textCase=="TITLE"){for(var C=0;C<hX.length;C++)if(C==0||hX[C-1]==" "){var fB=hX.slice(0,C),e5=hX.slice(C+1);
hX=fB+hX[C].toUpperCase()+e5}}hX=hX.replace(/\u2028/g,"\n");hX=hX.replace(/\u2029/g,"\n");hX=hX.replace(/\r\n/g," \n");
ex.A6(f7,0,hX);var g9=s.textAutoResize,cL=h$.baselines;if(g9=="WIDTH_AND_HEIGHT"){var bf=d8==0?0:d8==1?gE.x:gE.x/2,gF=cL?cL[0].position.y:0;
hG.translate(bf*f.LL(),gF*f.LL());ex.c8(f7,0)}else if(g9=="HEIGHT"||g9=="NONE"||g9==null){var gF=cL?cL[0].position.y-s.fontSize*.7:0;
hG.translate(0,gF*f.LL());ex.c8(f7,1);ex.rI(f7,[0,0,Math.round(gE.x),Math.round((g9=="NONE"?1.8:1)*gE.y)])}else throw g9;
if(hX!=""){var iC=ex.f9(f7,0,1);G.eS(s,f,y,iC,p,x,a,o);ex.j3(f7,0,hX.length,iC);var ax=h$.characterStyleIDs,e7=h$.styleOverrideTable;
if(ax){ax=ax.slice(0);for(var C=0;C<ax.length;C++)if(hX[C]=="\n")ax[C]=-C-1;var dO=[0],h1=0,hL=0;for(var C=0;
C<ax.length;C++){hL++;var jl=ax[C];if(C==0||jl==ax[C-1]){}else{dO.push(hL-1,C);hL=1}}dO.push(hL);for(var C=0;
C<dO.length;C+=2){var gT=dO[C],hZ=dO[C+1];if(hX[gT]=="\n")continue;var jl=ax[gT];if(jl!=0){var j6;for(var aP=0;
aP<e7.length;aP++)if(e7[aP].styleID==jl)j6=e7[aP];var iC=ex.f9(f7,gT,gT+1);G.eS(j6,f,y,iC,p,x,a,o);ex.j3(f7,gT,gT+hZ-1,iC)}}}}}else if(X=="SYMBOL"){}else if(X=="INSTANCE"){var h7=s.symbolData,fa=h7.symbolOverrides,U=G.$r(o.qs,h7.symbolID);
if(U)c=U.children;else console.log(s.name,"symbol not found",h7.symbolID);m=m.slice(0);for(var C=0;C<fa.length;
C++)m.push(fa[C])}else console.log(X);if(!1){}else if(c&&!W){a.G.push(a.b8());var h4=!1,cA=P==0&&X!="SYMBOL"&&X!="INSTANCE";
if(cA)p.Kp(T);b=I[I.length-1];if(cA&&b&&b.type=="SOLID"){var jg=b.color;p.add.artb.artboardBackgroundType.v=4;
p.add.artb.Clr=G.Eq(jg)}else if(b&&u){var cS=a.d2();cS.qW("Background");G.E5(cS,e,u,s,b,f,T,x,a,o);cS.sN(a);
a.G.push(cS);h4=!0}c.sort(G.gf);var iT=o.CJ;o.CJ={};for(var cf=0;cf<c.length;cf++)G.QT(c[cf],m,f,x,a,P+1,o);
o.CJ=iT;p.add.lsct=!1?hN.yF:hN.fs;p.TR="pass";var ir=p.p$();p.Yy=24;p.tG(ir);var bl=P!=0&&I.length!=0&&!s.frameMaskDisabled&&s.containerSupportsFillStrokeAndCorners;
if(!h4&&bl&&u){p.add.vmsk=u;p.add.vogk=e;p.sN(a)}else G.QK(o,p,a);a.G.push(p)}else if(s.mask){if(u){o.CJ.Vz=u;
o.CJ.R2=e}}else{var gp=[],cy=1;if(O)for(var j4=0;j4<O.length;j4++){var jB=O[j4],ey=jB.color,ca=jB.type,iu=["DROP_SHADOW","INNER_SHADOW"].indexOf(ca);
if(iu!=-1){var jv=["DrSh","IrSh"][iu],g$=JSON.parse(i4.Ej[i4.order.indexOf(jv)]);gp.push([jv,g$]);g$.enab.v=jB.visible;
g$.Md.v.BlnM=aA.bH(G.ac_(jB.blendMode));g$.Opct.v.val=Math.round(100*ey.a);g$.blur.v.val=Math.round(jB.radius*f.LL());
g$.Clr=G.Eq(ey);var bf=jB.offset.x,gF=jB.offset.y;g$.uglg.v=!1;g$.lagl.v.val=Math.round(180/Math.PI*Math.atan2(gF,-bf));
g$.Dstn.v.val=Math.round(Math.sqrt(bf*bf+gF*gF)*f.LL())}}if(X=="TEXT"&&I[0]&&I[0].type!="SOLID")cy=0;
for(var C=cy;C<I.length;C++){var cK=I[C],cN=G.rr(s,cK,f,T,x,a,o);if(cN[0]=="GdFl")gp.push(["GrFl",cN[1]]);
else if(cN[0]=="SoCo")gp.push(["SoFi",cN[1]]);else if(cN[0]=="PtFl")gp.push(["patternFill",cN[1]]);else throw cN}if(!W)for(var C=0;
C<R.length;C++){var cK=R[C],cN=G.rr(s,cK,f,T,x,a,o);if(cN[0]=="SoCo"){var g$=JSON.parse(i4.Ej[i4.order.indexOf("FrFX")]);
gp.push(["FrFX",g$]);g$.enab=cN[1].enab;g$.Opct=cN[1].Opct;g$.Md=cN[1].Md;g$.Clr=cN[1].Clr;g$.Sz.v.val=s.strokeWeight}}if(gp.length!=0){var cJ=JSON.parse(i4.default);
for(var C=0;C<i4.order.length;C++)cJ[i4.rm[C]]={t:"VlLs",v:[]};for(var C=0;C<gp.length;C++){var fb=gp[C],jv=i4.rm[i4.order.indexOf(fb[0])];
cJ[jv].v.unshift({t:"Objc",v:fb[1]})}if(c==null)p.add.lmfx=cJ}a.G.push(p)}};bY.E5=function(s,m,l,x,a,P,o,G,_,j){var U=bY;
s.Yy|=16;s.add.vogk=m;s.add.vmsk=l;var S=s.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default)),X=U.rr(x,a,P,o,G,_,j);
if(X[0]=="None"){S.fillEnabled.v=!1;s.add.SoCo=X[1]}else{U.Sj(X,s);s.add[X[0]]=X[1]}};bY.Sj=function(s,m){var l=s[1].Opct.v.val;
if(l!=100)m.opacity=Math.round(m.opacity/255*(l/100)*255)};bY.gf=function(s,m){var l=s.parentIndex.position,x=m.parentIndex.position;
return l>x?1:-1};bY.Nw=function(s){for(var C=1;C<s.length;C++){var m=s[C];if(m.type=="IMAGE"&&m.opacity==1){s=s.slice(C);
break}}for(var C=0;C<s.length;C++){var m=s[C],l=m.imageThumbnail;if(m.type=="IMAGE"&&(m.image==null||m.image.dataBlob==null)&&l&&l.dataBlob)m.image=l;
if(!m.visible||m.type=="IMAGE"&&m.image.dataBlob==null){s.splice(C,1);C--}}return s};bY.QK=function(s,m,l){if(s.CJ.Vz){m.add.vmsk=s.CJ.Vz.clone();
m.add.vogk=JSON.parse(JSON.stringify(s.CJ.R2));m.sN(l)}};bY.eS=function(s,m,l,x,a,P,o,G){var _=s.fontSize,j=s.lineHeight,U=s.fontName,S=s.textAlignHorizontal,X=s.textTracking,c=s.textCase,y=s.textDecoration;
if(_==null)_=x.m$.FontSize;if(U)ex.Cl(x,U.postscript);if(_!=null)x.m$.FontSize=Math.round(_);if(y=="UNDERLINE")x.m$.Underline=!0;
if(X)x.m$.Tracking=Math.round(X*1e3);if(c)x.m$.FontCaps=c=="UPPER"?2:0;if(j&&(j.units!="PERCENT"||j.value!=100)){if(_==null)_=15;
var O=j.value;if(j.units=="PERCENT")O=1*_*O/100;if(j.units=="RAW")O=1*_*O;x.m$.AutoLeading=!1;x.m$.Leading=Math.round(O)}if(S)x.AO.Justification=["LEFT","RIGHT","CENTER"].indexOf(S);
var p=s.fillPaints,D=s.inheritFillStyleID;if(D){var f=bY.$r(G.qs,D);if(f)p=f.fillPaints}if(p&&p[0]){var T=bY.rr(s,p[0],m,l,P,o,G);
if(T[0]=="SoCo"){var I=L.K.Qv(T[1].Clr.v);x.m$.FillColor={Type:1,Values:[1,I.o/255,I.z/255,I.S/255]};
bY.Sj(T,a)}}};bY.rr=function(s,m,l,x,a,P,o){var G=bY,_,j,U=s.size;if(m){var S=m.type,X=["GRADIENT_LINEAR","GRADIENT_RADIAL","GRADIENT_DIAMOND","GRADIENT_ANGULAR"].indexOf(S);
if(S=="SOLID"){_="SoCo";var c=m.color;j=JSON.parse(i4.Ej[i4.order.indexOf("SoFi")]);j.Clr=G.Eq(c)}else if(X!=-1){var y=JSON.parse(i4.Ej[i4.order.indexOf("GrFl")]),O=y.Grad.v;
O.Intr.v=0;y.Type.v.GrdT=["Lnr","Rdl","Dmnd","Angl"][X];var p=[],D=m.stops;for(var C=0;C<D.length;C++){var f=D[C],T=f.color;
p.push([f.position,[T.r,T.g,T.b],T.a])}L.K.GC(p,O);var I=G.r7(m.transform);I.ms();var H=I.clone();if(U)H.scale(U.x,U.y);
H.concat(l);var b=new fz(0,.5),R=new fz(1,.5);b=H.oG(b);R=H.oG(R);if(!0){b.x=R.x+.5*(b.x-R.x);b.y=R.y+.5*(b.y-R.y)}L.K.jk(b,R,x,y);
if(X==3){if(H.lz*H.Am-H.S*H.In<0)y.Rvrs.v=!y.Rvrs.v}_="GdFl";j=y}else if(S=="IMAGE"){var y=JSON.parse(i4.Ej[i4.order.indexOf("patternFill")]),W=y.phase.v,J=m.image.dataBlob,u=o.a9Z[J],d=1;
if(u==null){var e=G.cf(a,J);u=o.a9Z[J]={};u.id=jF.wd()+"-d71c-11e5-b1ae-a548a96e5f9f";u.DH=[new Uint8Array(e.data),e.Sb];
u.name="someImage";P.FF(u)}y.Algn.v=!0;y.Ptrn.v.Idnt.v=u.id;var Q=l.sI,q=l.bW,Z=m.imageScaleMode,I=G.r7(m.transform);
I.ms();var E=x.e,z=x.l,V=u.DH[1].e,Y=u.DH[1].l;if(Z=="FILL"){d=Math.max(E/V,z/Y);d=Math.round(d*100)/100}else if(Z=="FIT"){d=Math.min(E/V,z/Y);
d=Math.round(d*100)/100}else if(Z=="STRETCH"){var w=E*I.lz,A=z*I.Am;d=.5*(w/V+A/Y);d=Math.round(d*100)/100;
Q+=(w-E)/2+I.sI*E;q+=(A-z)/2+I.bW*z}else if(Z=="TILE"){d=m.scale;d=Math.round(d*100)/100;Q+=(w-E)/2;
q+=(A-z)/2}var $=d*V,i=d*Y;Q+=-($-E)/2;q+=-(i-z)/2;y.Scl.v.val=Math.round(100*d);W.Hrzn.v=Math.round(Q);
W.Vrtc.v=Math.round(q);_="PtFl";j=y}else throw S;if(j)j.Opct={t:"UntF",v:{type:"#Prc",val:Math.round(m.opacity*100)}}}else{_="None";
j={classID:"null",Clr:{t:"Objc",v:L.K.gc({o:0,z:0,S:0})}}}return[_,j]};bY.cf=function(s,m){var l=s[m];
if(l.rslt)return l.rslt;var x=l.bytes.buffer,a=iO.D1(x),P=iO.ln(a);try{l.rslt=P.Gs(x)[0]}catch(iX){l.rslt={data:L.B(4),Sb:new bU(0,0,1,1)}}return l.rslt};
bY.gy=function(s,m,l,x){var a=s.type,P=s.size,o=s.cornerRadius,S;if(o==null)o=0;var G=L.R2.dV(),_=P.x,j=P.y,U=[o,o,o,o],X=["rectangleTopLeftCornerRadius","rectangleTopRightCornerRadius","rectangleBottomRightCornerRadius","rectangleBottomLeftCornerRadius"];
for(var C=0;C<4;C++)if(s[X[C]]!=null)U[C]=s[X[C]];if(a=="RECTANGLE"||a=="ROUNDED_RECTANGLE"||a=="FRAME"){S=L.j.sh.Rect(0,0,_,j,U)}else if(a=="ELLIPSE"){var c=s.arcData,y=c?c.startingAngle:0,O=c?c.endingAngle:2*Math.PI,p=c?c.innerRadius:0;
if(y==0&&O>1.999*Math.PI)S=L.j.sh.$d(0,0,_,j,0);else S=L.j.sh.aq3(_/2,j/2,j/2,y,O);if(p!=0&&p!=1){var D=t.sD.Ps(S).slice(3);
D.reverse();for(var C=0;C<D.length;C++){var f=D[C],T=f.o3;f.o3=f.Ux;f.Ux=T}var H=new ae;H.translate(-_/2,-j/2);
H.scale(p,p);H.translate(_/2,j/2);L.j.G9(D,H);S=S.concat(D);S[2].length*=2}}else if(a=="LINE"){S=L.j.sh.Rect(0,0,_,j,0);
S.pop();S.pop();S[2].length=2}else if(a=="STAR"){S=L.j.sh.J7(_/2,j/2,_/2,2*Math.PI*(1/4),5,0,s.starInnerScale)}else if(a=="REGULAR_POLYGON"){S=L.j.sh.T_(.5,.5,.5,Math.PI/2,s.count,0);
var b=new ae;b.scale(_,j);L.j.G9(S,b)}else if(a=="BOOLEAN_OPERATION"){S=[{type:6},{type:8,all:0}];var R=s.children,W=["XOR","UNION","SUBTRACT","INTERSECT"].indexOf(s.booleanOperation);
if(W==-1)throw s;if(R==null)R=[];for(var C=0;C<R.length;C++){var J=R[C],u=new t.sD,e=[],Q=bY.gy(J,m,u,e);
if(u.T==null)continue;L.j.G9(u.T,bY.r7(J.transform));S=S.concat(u.T.slice(2));for(var q=0;q<e.length;
q++)x.push(e[q])}for(var C=3;C<S.length;C++)if(S[C].aZ!=null)S[C].aZ=W;G=null}else if(a=="VECTOR"){var Z,E,F=3;
if(!0){var z=s.vectorData;Z=z.normalizedSize;E=z.vectorNetworkBlob}var V=m[E].bytes,Y=new Uint32Array(V.buffer),d=new Float32Array(V.buffer),w=Y[0],A=Y[1],$=Y[2],i=[],K=[],h=[],N=F+w*3,iQ=N+A*7;
for(var C=0;C<w;C++){var jB=F+C*3,k=new fz(d[jB+1],d[jB+2]);i.push(k)}for(var C=0;C<A;C++){var ab=N+C*7;
K.push([Y[ab+0],Y[ab+1],d[ab+2],d[ab+3],Y[ab+4],d[ab+5],d[ab+6]])}for(var C=0;C<$;C++){var f_=Y[iQ+1],fc=h[C]=[];
iQ+=2;for(var q=0;q<f_;q++){var g8=Y[iQ++],bH=fc[q]=[];for(var cR=0;cR<g8;cR++)bH[cR]=Y[iQ+cR];iQ+=g8}}if(iQ!=Y.length)throw"e";
if($==0){var hr=-1;for(var C=0;C<A;C++){if(hr==-1){}else{var h$=-1;for(var q=C;q<A;q++)if(K[q][4]==hr)h$=q;
for(var q=C;q<A;q++)if(K[q][1]==hr)h$=q;if(h$!=-1){var gE=0,T=K[h$];K[h$]=K[C];K[C]=T;if(T[1]!=hr){gE=T[1];
T[1]=T[4];T[4]=gE;gE=T[2];T[2]=T[5];T[5]=gE;gE=T[3];T[3]=T[6];T[6]=gE}}}hr=K[C][4]}h.push([[]]);for(var C=0;
C<A;C++)h[0][0].push(C)}var d8=[],hG=[];for(var f7=0;f7<h.length;f7++){for(var hX=0;hX<h[f7].length;
hX++){var fB=h[f7][hX],e5=0;if(fB.length>1){var g9=K[fB[0]],cL=K[fB[1]];e5=g9[4]==cL[1]?1:0}for(var C=0;
C<fB.length;C++){var bf=K[fB[C]],gF=1,iC=4;if(e5==0){gF=4;iC=1}var ax=i[bf[gF]],e7=i[bf[iC]];if(C==0){hG.push("M");
d8.push(ax.x,ax.y)}hG.push("C");d8.push(ax.x+bf[gF+1],ax.y+bf[gF+2],e7.x+bf[iC+1],e7.y+bf[iC+2],e7.x,e7.y)}}}S=L.H.vP({s:d8,r:hG},!1);
if(o!=0){var U=[],dO=S[2].length;for(var C=0;C<dO;C++)U.push(o);if(L.j.$0(S))L.j.Kz(S,2,U)}var h1=new ae;
h1.scale(Z.x==0?1:P.x/Z.x,Z.y==0?1:P.y/Z.y);L.j.G9(S,h1)}l.T=S;if(G)x.push(G)};bY.$r=function(s,m){return s[m.sessionID+","+m.localID]};
bY.a8g=function(s,m){return s.sessionID==m.sessionID&&s.localID==m.localID};bY.ac_=function(s){var m={NORMAL:"norm",MULTIPLY:"mul ",SCREEN:"scrn",COLOR_DODGE:"div ",DARKEN:"dark",LUMINOSITY:"lum "}[s];
if(m==null)throw s;return m};bY.Eq=function(s){return{t:"Objc",v:L.K.gc({o:s.r*255,z:s.g*255,S:s.b*255})}};
bY.r7=function(s){var m=[s.m00,s.m10,s.m01,s.m11,s.m02,s.m12];for(var C=0;C<6;C++)if(Math.abs(m[C])<1e-20)m[C]=0;
return new ae(m[0],m[1],m[2],m[3],m[4],m[5])};function d0(){}d0.st=function(){var s=g.cS;function m(c,y,O,p){var D=p?[]:{};
while(y<c.length-1&&c[y]!=125){var f=s(c,y,3),T=s(c,y+3,1),I;y+=4;y++;if(T=="v"){var H=m(c,y,O+1,f=="ELM"||f=="TIL");
I=H.Z;y=H.X}else if(T=="i"||T=="f"){var b=y;while(c[b]!=125)b++;var R=s(c,y,b-y);I=T=="i"?parseInt(R,16):parseFloat(R);
y=b+1}else if(T=="s"){var W=g.hi(c,y),R="";y+=2;for(var C=0;C<W;C++)R+=String.fromCharCode(c[y+2*C+1]);
I=R;y=y+2*W+1}else if(T=="b"){I=c[y]==49;y=y+2}else throw"e";if(p)D.push([f,I]);else if(D[f]==null)D[f]=I;
else{if(!(D[f]instanceof Array))D[f]=[D[f]];D[f].push(I)}}y++;return{Z:D,X:y}}function l(c,y){var O=x(c).slice(1),c=y.Clr.v;
c.Rd.v=O[0]*255;c.Grn.v=O[1]*255;c.Bl.v=O[2]*255}function x(c){return[(c>>>24&255)/255,(c>>>16&255)/255,(c>>>8&255)/255,(c>>>0&255)/255]}function a(c,y){var O=y&4278190080|(y&255)<<16|(y>>>8&255)<<8|y>>>16&255;
new Uint32Array(c.buffer).fill(O)}function P(c,y){var O=c.TSZ,p=c.WPX,D=c.HPX,f=c.TIL,T=new bU(0,0,p,D),I=L.B(p*D*4),H=0;
for(var b=0;b<D;b+=O)for(var R=0;R<p;R+=O){var W=new bU(R,b,O,O),J,u=f[H];if(u[0]=="TMC"){J=L.B(W.k()*4);
a(J,u[1])}else if(u[0]=="TID"){J=y[u[1]]}L.yx(J,W,I,T);H++}return[I,T]}function o(c,y){c=new Uint8Array(c);
var O=8,p,D={},z=0;while(O<c.length){var f=g.n(c,O);O+=4;var T=s(c,O,4);O+=4;if(T=="mkTS"){var I=pako.inflate(c.slice(O,O+f)),H=m(I,0,0);
p=H.Z}else if(T=="mkBT"){var b=g.n(c,O+4),R=g.n(c,O+8),I=pako.inflate(c.slice(O+76,O+f));if(R==0)for(var C=0;
C<I.length;C+=4){var W=I[C],J=I[C+1],u=I[C+2],e=I[C+3];I[C+3]=W;I[C+2]=e;I[C+1]=u;I[C]=J}else{var Q=L.B(I.length*4);
Q.fill(255);L.s2(I,Q);I=Q}D[b]=I}O+=f+4}var q=p.PDC,Z=q?q instanceof Array?q:[q]:[p.MKB],E=new bU;for(var C=0;
C<Z.length;C++){var V=Z[C];E=E.if(new bU(0,z,V.WID,V.HIT));z+=V.HIT+100}y.e=E.e;y.l=E.l;y.buffer=L.B(E.k()*4);
y.Gp(Z.length);z=0;for(var Y=0;Y<Z.length;Y++){y.G.push(y.b8());var V=Z[Y],d=V.WID,w=V.HIT,A=V.BGC,$=(V.LYL?V:p).LYL.LAY,h=3;
for(var C=0;C<$.length;C++)_($[C],y,null,D,new ae(1,0,0,1,0,z));var i=y.d2();y.G.push(i);var K=new bU(0,z,d,w);
z+=w+100;i.Kp(K);if(A>>>24!=0){var F=L.K.gc({o:A>>>16&255,z:A>>>8&255,S:A>>>0&255});i.add.artb.Clr={t:"Objc",v:F};
h=4}i.add.artb.artboardBackgroundType.v=h;i.qW(V.PGN?V.PGN:"Page "+(Y+1));i.add.lsct=hN.fs;i.TR="pass";
i.Yy=24}}function G(c,y,O){var p=c[y];return p instanceof Array?p[O]:p}function _(c,y,O,p,D){var f=y.d2();
if(c.VIS!=null)f.tG(c.VIS);if(c.VIF!=null)f.tG(c.VIF.VIS);if(c.OPA!=null)f.opacity=Math.round(255*c.OPA/1e3);
f.TR=c.CLL||O=="GRP"?"pass":"norm";if(c.BLD!=null){var T=c.BLD,I={"0":"norm","2":"mul ","4":"over","5":"scrn","7":"diss","9":"dark","10":"lite","37":"idiv","30":"norm","39":"lbrn","41":"vLit"}[T+""];
if(I==null)console.log(c.OBN,T);else f.TR=I;if(T==30)f.opacity>>>=1}if(c.CLL){f.qW(c.LNM);y.G.push(y.b8());
var H=c.CLL.CEL;if(H.length==null)H=[H];for(var b=H.length-1;b>=0;b--){var R=H[b].ELM;for(var C=R.length-1;
C>=0;C--)_(R[C][1],y,R[C][0],p,D)}f.add.lsct=c.DIS?hN.yF:hN.fs;f.Yy|=24}else if(O=="GRP"){var W=f.add.lmfx=U(c.EFL),J;
y.G.push(y.b8());var R=c.ELM;if(c.MNA){J=R[0][1];R=R.slice(1)}f.qW("Group: "+R.length+" objects");for(var C=R.length-1;
C>=0;C--)_(R[C][1],y,R[C][0],p,D);if(J){if(c.MRX){var u=P(J,p),e=f.v=new t.K0;e.rect=u[1].clone();e.rect.x=J.XLC;
e.rect.y=J.YLC+D.bW;e.channel=L.B(e.rect.k());L.hy(u[0],e.channel,0);L.ms(e.channel)}else{j(f,J,D);f.sN(y)}}f.add.lsct=hN.fs;
f.Yy|=24}else if(O=="IMG"){f.qW(c.OBN?c.OBN:"Bitmap");var u=P(c,p);f.rect=u[1].clone();f.rect.x=c.XLC;
f.rect.y=c.YLC+D.bW;f.buffer=u[0]}else if(O=="TXT"){var Q=c.TFS,q=Q.TRN instanceof Array?Q.TRN.length:1,V="";
f.add.lnsr="rend";f.add.TySh=ex.mA(0,0);f.add.TySh.fn=new bU(0,0,100,100);var Z=new ae(1,0,0,1,c.LFT,c.TOP);
if(c.MTX){var E=c.MTX,e=new ae(E.M00,E.M01,E.M10,E.M11,E.M20,E.M21);Z.concat(e)}Z.concat(D);f.add.TySh.A=Z;
var z=f.add.TySh.x5;for(var C=0;C<q;C++){var Y=G(Q,"TRN",C);ex.A6(z,V.length,Y);var d=ex.f9(z,0,1);ex.Cl(d,G(Q,"FON",C));
d.m$.FontSize=Math.round(G(Q,"PTS",C));var w=G(Q,"FCL",C);d.m$.FillColor={Type:1,Values:x(w)};ex.j3(z,V.length,V.length+Y.length,d);
V+=Y}f.qW(V.slice(0,255));var A=c.RIT-c.LFT,$=c.BOT-c.TOP;if(c.IMG){_(c.IMG,y,"IMG",p,D);var i=y.G.pop();
f.buffer=i.buffer;f.rect=i.rect.clone()}ex.c8(z,1);ex.rI(z,[0,0,A,$])}else if(O=="PTH"){f.qW(c.OBN?c.OBN:"Path");
f.Yy|=16;var K=!1;j(f,c,D);var h=f.add.vmsk,F=f.add.vstk,N=L.j.dj(h.T),iQ=c.PAT,jB=iQ.BPL,k=iQ.FPL,ab=iQ.TXF;
if(k&&k.FEF)h.l2+=k.FEF/2.4;if(jB){var f_=jB.CAT;F.strokeEnabled.v=!0;F.strokeStyleLineWidth.v.val=jB.BDI;
F.strokeStyleLineAlignment.v.strokeStyleLineAlignment=i4.Ah.Es[c.BRP];l(iQ.BCL,F.strokeStyleContent.v);
if(f_!="bc_Basic"&&f_!="bc_Pencil")K=!0}if(k==null){F.fillEnabled.v=!1;f.add.SoCo=JSON.parse(i4.Ej[i4.order.indexOf("SoFi")]);
l(0,f.add.SoCo)}else if(k.CAT=="fc_Solid"){f.add.SoCo=JSON.parse(i4.Ej[i4.order.indexOf("SoFi")]);l(c.PAT.FCL,f.add.SoCo)}else if(k.CAT=="fc_Linear"||k.CAT=="fc_Circular"||k.CAT=="fc_Elliptical"){var fc=k.CAT=="fc_Linear",g8=f.add.GdFl=JSON.parse(i4.Ej[i4.order.indexOf("GrFl")]),bH=g8.Grad.v,cR=[],hr=k.FGL.FGY,h$=hr.FG0.FGI,gE=hr.FG1.FGI;
for(var C=0;C<h$.length;C++){var d8=h$[C],hG=x(d8.FGC),f7=1;if(gE.length==h$.length)f7=x(gE[C].FGC)[0];
cR.push([d8.FGP,hG.slice(1),f7])}g8.Type.v.GrdT=fc?"Lnr":"Rdl";L.K.GC(cR,bH);bH.Intr.v=0;var hX=c.PRI?c.PRI:c,fB=new fz(hX.PSX,hX.PSY),e5=new fz(hX.PEX,hX.PEY);
if(k.CAT=="fc_Elliptical"&&hX.PFX!=null){var g9=new fz(hX.PFX,hX.PFY),cL=fz.rv(fB,e5),bf=fz.rv(fB,g9);
if(bf<cL){var gF=cL;cL=bf;bf=gF}e5=new fz(fB.x+(cL+bf)/2,fB.y);if(cL/bf<.5)K=!0}if(fc){fB.x=(fB.x+e5.x)/2;
fB.y=(fB.y+e5.y)/2}L.K.jk(fB,e5,N,g8)}else console.log(k.CAT);var W=f.add.lmfx=U(c.EFL,h);if(k&&k.FTB!=0){var u=P(ab.MSK,p),iC={};
iC.id=jF.wd()+"-d71c-11e5-b1ae-a548a96e5f9f";iC.name="someImage";iC.DH=u;y.FF(iC);var ax=u[0];for(var C=0;
C<ax.length;C+=4){ax[C+3]=255-ax[C];ax[C]=ax[C+1]=ax[C+2]=255}var g8=JSON.parse(i4.Ej[i4.order.indexOf("patternFill")]);
g8.Opct.v.val=Math.round(k.FTB/10);g8.Algn.v=!0;g8.Ptrn.v.Idnt.v=iC.id;W.patternFillMulti.v.unshift({t:"Objc",v:g8})}if(K&&c.IMG){_(c.IMG,y,"IMG",p,D);
var e7=y.G[y.G.length-1];e7.opacity=f.opacity;return}f.sN(y)}else if(O=="URL")return;else console.log("unknown layer type",O,c);
y.G.push(f)}function j(c,y,O){if(y.PBL==null)return;var p=c.add.vmsk=new t.sD,D=c.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default)),f=y.PBL.PBP;
if(!(f instanceof Array))f=[f];for(var T=0;T<f.length;T++){var I=f[T].PBT,H=f[T].ISC?0:3;p.T.push({type:H,length:I.length,aZ:0,pe:2,Xc:0,BG:0});
for(var C=0;C<I.length;C++){var b=I[C],R=b.XLC,W=b.YLC,J=[R,W,R,W,R,W],u="XPC YPC XLC YLC XSC YSC".split(" ");
for(var e=0;e<6;e++){var Q=u[e],q=b[Q];if(q!=null)J[e]=q}p.T.push({type:H+2,R:new fz(R,W),o3:new fz(J[0],J[1]),Ux:new fz(J[4],J[5])})}}L.j.G9(p.T,O);
c.GK()}function U(c,y){var O=JSON.parse(i4.default);for(var C=0;C<i4.order.length;C++)O[i4.rm[C]]={t:"VlLs",v:[]};
if(c==null)return O;var p=c.EPS;if(!(p instanceof Array))p=[p];for(var C=0;C<p.length;C++){var D=p[C].DCE,f={};
for(var T=0;T<D.length;T++)f[D[T].DCK]=D[T].DCV;if(f.EffectIsVisible=="false")continue;var I=f.mkbFile_WriteOnly_TemporaryEffectUiName;
if(I=="Gaussian Blur..."&&y){y.l2+=parseFloat(f.gaussian_blur_radius);continue}var H=["Drop Shadow","Inner Bevel","Inner Glow","Glow"].indexOf(I);
if(H==-1){continue}var b=["DrSh","ebbl","IrGl","OrGl"][H],R=i4.rm[i4.order.indexOf(b)],W=JSON.parse(i4.Ej[i4.order.indexOf(b)]);
O[R].v.unshift({t:"Objc",v:W});if(b=="DrSh"){W.uglg.v=!1;S(f,"ShadowDistance",W,"Dstn");S(f,"ShadowBlur",W,"blur");
S(f,"ShadowAngle",W,"lagl",180);W.Opct.v.val=100;X(f,"ShadowColor",W,"Clr")}if(b=="IrGl"){W.Md.v.BlnM="Nrml";
var J=f.MaskSoftness,u=f.GlowWidth;if(J&&u){J=parseInt(J);u=parseInt(u);W.blur.v.val=u+J;W.Ckmt.v.val=Math.round(100*u/(u+J))}S(f,"BevelContrast",W,"Opct");
X(f,"OuterBevelColor",W,"Clr")}if(b=="OrGl"){W.Md.v.BlnM="Nrml";var J=f.MaskSoftness,u=f.GlowWidth;if(J&&u){J=parseInt(J);
u=parseInt(u);W.blur.v.val=u+J}S(f,"BevelContrast",W,"Opct");X(f,"OuterBevelColor",W,"Clr")}if(b=="ebbl"){W.uglg.v=!1;
S(f,"BevelWidth",W,"blur");S(f,"AngleSoftness",W,"Sftn");S(f,"BevelContrast",W,"srgR");S(f,"LightAngle",W,"lagl")}}return O}function S(c,y,O,p,D){var f=c[y];
if(D==null)D=0;if(f)O[p].v.val=parseInt(f)+D}function X(c,y,O,p){var D=c[y];if(D){D=D.slice(1);if(D.length==6)D=D+"ff";
if(D.length!=8)throw"e";var f=x(parseInt(D,16)),T=O[p].v;T.Rd.v=f[0]*255;T.Grn.v=f[1]*255;T.Bl.v=f[2]*255;
O.Opct.v.val=Math.round(O.Opct.v.val/100*f[3]*100)}}return o}();function dp(){}dp.st=function(){function s(J,u){var e=!1,Q=Date.now(),q=f(J,e),fc=1;
if(e)console.log("part found",Date.now()-Q);Q=Date.now();var Z=D(q),E=Z.Layer,z=Z.Header;if(e)console.log(Z);
var V=E[0];V=Z.Layer[0];if(e)console.log("document parsed",Date.now()-Q);Q=Date.now();Z.Setup.Gradient=p(Z.Setup.Gradient,q);
if(e)console.log("grads loaded",Date.now()-Q);Q=Date.now();Z.Setup.Pattern=O(Z.Setup.Pattern,q);if(e)console.log("patts loaded",Date.now()-Q);
Q=Date.now();Z.Setup.DocumentData=y(Z.Setup.DocumentData,q).pop();if(e)console.log("docdata loaded",Date.now()-Q);
Q=Date.now();Z.Setup.SVGFilter=y(Z.Setup.SVGFilter,q);if(e)console.log("svgfilter loaded",Date.now()-Q);
Q=Date.now();var Y=z.Cropmarks,d=z.BoundingBox.split(" ").map(parseFloat),w=z.ArtSize?z.ArtSize.split(" ").map(parseFloat):[d[2]-d[0],d[3]-d[1]];
u.e=Math.round(w[0]);u.l=Math.round(w[1]);var A=[1,0,0,1,-d[0]+(u.e-(d[2]-d[0]))/2,-d[1]+(u.l-(d[3]-d[1]))/2];
A[3]=-1;A[5]=u.l-A[5];if(Y){Y=Y.split(" ").map(parseFloat);u.e=Math.round(Y[2]-Y[0]);u.l=Math.round(Y[3]-Y[1]);
A=[1,0,0,-1,-Y[0],u.l+Y[1]]}var $=Z.Setup.DocumentData;if($&&$[0]&&$[0].ArtboardArray){var i=$[0].ArtboardArray;
if(i.length!=1)console.log(i.length,"artboards");var K=new bU;for(var C=0;C<i.length;C++){var h=i[C],F=h.PositionPoint1,N=h.PositionPoint2,iQ=F[0],jB=Math.min(F[1],N[1]),k=N[0],ab=Math.max(F[1],N[1]);
K=K.if(new bU(iQ,jB,k-iQ,ab-jB))}u.e=Math.round(K.e);u.l=Math.round(K.l);A[4]=-K.x;A[5]=K.y+u.l}var f_=Math.max(u.e,u.l);
while(f_*fc<1200)fc++;while(f_*fc>6e3)fc*=.5;u.e=Math.round(u.e*fc);u.l=Math.round(u.l*fc);u.sz=Math.round(72*fc);
u.buffer=L.B(u.e*u.l*4);for(var C=0;C<6;C++)A[C]*=fc;for(var g8=0;g8<E.length;g8++){var bH=E[g8];bH.Raster=m(bH);
var cR=X(q,bH);l(u,cR,A,Z,bH,q)}if(e)console.log("layers created",Date.now()-Q);Q=Date.now()}function m(J){var u=J.Layer,e=J.Raster;
if(e==null)e=[];if(u){for(var C=0;C<u.length;C++){var Q=u[C],q=Q.Raster=m(Q);e=e.concat(q)}e.sort(function(Z,E){return Z._begin-E._begin})}return e}function l(J,u,e,Q,q,Z){var E="",z=0,V="",Y=UDOC.G,d=UDOC.getState(),w="norm",A=1,$="SoCo",h=!1,F=0,iQ=null,jB=!1,k=0,ab=null,f_,fc,g8,bH=0,cR=0,hr=0;
d.ctm=e;var i=[0,0,0],K=[0,0,0],N=[],h$=[],gE=[];for(var d8=0;d8<u.length;d8++){var hG=u[d8];if(hG[0]=="%"){if(hG=="%_/ArtDictionary :"&&k==0)iQ=[hG.slice(2)];
else if(iQ!=null){if(hG=="%_"&&k==0){var f7=H(iQ)[0],hX=f7.AI10_ArtUID;if(hX&&!hX.startsWith("XMLID"))J.G[J.G.length-1].qW(R(hX));
iQ=null}else{iQ.push(hG.slice(jB?1:2));if(hG=="%_X=")k++;if(hG=="%_X+")k--;if(hG=="%_/Binary : /ASCII85Decode ,")jB=!0;
if(jB&&hG.endsWith("~>"))jB=!1}}else if(ab){f_+=(f_==""?"":" ")+hG.slice(2);if(f_.endsWith("X#")){ab.push(f_.slice(0,f_.length-3));
f_=""}}continue}else if(hG=="/Mesh X!"){ab=[];f_="";continue}else if(hG=="/End X!"){x(ab,d,J);ab=null;
continue}hG=hG.trim();var fB=hG.split(" "),e5=fB[fB.length-1],g9=e5.toLowerCase(),cL=fB.map(parseFloat);
if(e5=="m")Y.moveTo(d,cL[0],cL[1]);else if(e5=="L"||e5=="l")Y.lineTo(d,cL[0],cL[1]);else if(e5=="V"||e5=="v"||e5=="Y"||e5=="y")Y.quadCurveTo(d,cL[0],cL[1],cL[2],cL[3]);
else if(e5=="C"||e5=="c")Y.curveTo(d,cL[0],cL[1],cL[2],cL[3],cL[4],cL[5]);else if(e5=="H"||e5=="h"){if(e5==g9)Y.closePath(d);
N.push(JSON.parse(JSON.stringify(d.pth)))}else if(e5=="Xy"){w=["norm","mul ","scrn","over","sLit"][cL[0]];
A=cL[1];if(w==null){w="norm";console.log("unknown blend mode",cL[0])}}else if(e5=="Xd"){var bf=J.G[J.G.length-1];
bf.opacity=Math.round(255*A);bf.TR=bf.gu()&&w=="norm"?"pass":w}else if(e5=="AE")bH=cL[0];else if(e5=="Ae")cR=cL[0];
else if(e5=="Xw")hr=cL[0];else if(e5=="*"){var gF=d.pth.crds,iC=d.ctm,ax=gF[0]==gF[2]?0:1;J.ff.push([ax,gF[ax]]);
Y.newPath(d)}else if(e5=="Xh")fc=cL;else if(e5=="XN")g8=hG.split(" ")[0];else if(e5=="XI"){if(fc==null)continue;
var e7=q.Raster;if(e7==null||e7.length==0){console.log("no Raster");continue}var dO=e7[z++].Data,h1=dO._begin,hL=dO._end;
while(Z[h1]!=88)h1++;h1+=3;var jl=Z.slice(h1,hL),gT=fc[8],hZ=fc[9],j6=gT*hZ,aP=L.B(j6*4);aP.fill(255);
var h7=u[d8-2];h7=h7.slice(h7.indexOf("]")+2).split(" ").map(parseFloat);var fa=h7[7],h4=h7[8],cA=h7[6],jg=Math.ceil(gT*fa*cA/8);
if(fa==1){if(cA==8)for(var C=0;C<j6;C++)for(var cS=0;cS<3;cS++)aP[4*C+cS]=jl[C];else if(cA==1)for(var iT=0;
iT<hZ;iT++)for(var cf=0;cf<gT;cf++)for(var cS=0;cS<3;cS++)aP[4*(iT*gT+cf)+cS]=255*(jl[iT*jg+(cf>>>3)]>>>7-(cf&7)&1);
else throw cA}else if(fa==3)for(var C=0;C<j6;C++)for(var cS=0;cS<3;cS++)aP[4*C+cS]=jl[3*C+cS];else if(fa==4||fa==5)for(var C=0;
C<j6;C++){var ir=j([jl[fa*C+0]/255,jl[fa*C+1]/255,jl[fa*C+2]/255,jl[fa*C+3]/255]);aP[4*C+0]=ir[0]*255;
aP[4*C+1]=ir[1]*255;aP[4*C+2]=ir[2]*255}else throw g8;if(h4==1){var bl=hZ*jg;for(var C=0;C<j6;C++)aP[4*C+3]=jl[bl+C]}var gp=L.Gg(aP,gT,hZ)?"JPG":"PNG";
if(gT*hZ<700*700)gp="PNG";var j4=iO.ln(gp).yd([[aP.buffer]],gT,hZ),ey=J.PZ(new Uint8Array(j4),"<Image>",0,0);
J.G.push(ey);ey.TR=w;ey.opacity=Math.round(255*A);ey.tG(hr==0);var e=new ae;e.scale(1,-1);e.concat(_(fc.slice(1)));
e.concat(_(d.ctm));var ca=ey.rect.clone();ca.x=ca.y=0;var fB=L.H.$$(ca).s;L.H.A(fB,e,fB);ey.add.SoLd.Trnf=r.Q.ZG(fB);
ey.add.SoLd.nonAffineTransform=r.Q.ZG(fB);ey.y2(J,!1)}else if(e5=="Ln"){E=P(hG)}else if(e5=="u"||e5=="q"||e5=="Lb"){h$.push(cR==1);
gE.push((e5=="Lb"?1-cL[0]:hr)==0);if(h)continue;J.G.push(J.b8())}else if(e5=="U"||e5=="Q"||e5=="LB"){if(h$.length==0||gE.length==0)throw d8;
var iu=h$.pop(),jv=gE.pop();if(e5=="LB")iu=bH==1;if(h)continue;var ey=J.d2();ey.qW((e5=="U"?"<Group>":"<Clip Group>")+V);
if(e5=="LB")ey.qW(E);if(e5=="Q"&&N.length!=0){var g$=N.pop(),cy=UDOC.G.isBox(g$,[0,0,J.e,J.l]);if(!cy)U(ey,g$,J)}ey.add.lsct=iu?hN.yF:hN.fs;
ey.TR="pass";ey.Yy=24;ey.tG(jv);J.G.push(ey)}else if(e5=="Bb"||e5=="Bh"||e5=="BB"){}else if(e5=="Bg"){var cK=Q.Setup.Gradient[P(hG)];
$="GdFl";i=a(cK._z,cK.aow)}else if(e5=="Bm"||e5=="Xm"){var cN=i.Type.v.GrdT;if(cN=="Lnr"&&e5!="Xm"||cN=="Rdl"&&e5!="Bm")continue;
var cJ=L.H.ge(d.pth.crds),fb=new fz(0,0),cd=new fz(1,0),em=new ae;em.concat(_(cL));em.concat(_(d.ctm));
fb=em.oG(fb);cd=em.oG(cd);if(cN=="Lnr"){fb.x=(fb.x+cd.x)/2;fb.y=(fb.y+cd.y)/2}L.K.jk(fb,cd,cJ,i)}else if(e5=="p"){var ie=P(hG),jf=Q.Setup.Pattern[ie];
if(jf.raw==null){var cJ=jf.Fd,gT=Math.round(cJ[2]-cJ[0]),hZ=Math.round(cJ[3]-cJ[1]),f7=new jF;f7.e=gT;
f7.l=hZ;f7.buffer=L.B(gT*hZ*4);l(f7,jf.lS,[1,0,0,-1,-jf.Fd[0],hZ+jf.Fd[1]],Q,q,Z);jf.raw=new Uint8Array(iO.ln("PSD").yd(f7))}var i3=hG.slice(hG.indexOf(")")+2),j9=i3.slice(0,i3.indexOf("[")-1).split(" ").map(parseFloat),dm=i3.slice(i3.indexOf("[")+1,i3.indexOf("]")).split(" ").map(parseFloat);
$="patt";i=[ie,j9,dm]}else if(e5=="J"||e5=="j"||e5=="w"||e5=="M"||e5=="d"){for(var C=1;C<fB.length;C++){var jy=fB[C],eg=cL[C-1];
if(jy=="w")d.lwidth=eg;if(jy=="j")d.ljoin=eg;if(jy=="J")d.lcap=eg;if(jy=="d"){var a$=hG.slice(hG.indexOf("[")+1,hG.indexOf("]")).trim();
if(a$.length!=0){var cg=a$.split(" ").map(parseFloat);d.dash=cg}}}}else if(g9=="xa"||g9=="xx"){var gt=[cL[4],cL[5],cL[6]];
$="SoCo";if(e5=="Xa"||e5=="Xx")i=gt;else K=gt}else if(g9=="xk"){var gt,i2=cL[cL.length-2],cZ=cL[cL.length-3];
if(i2==0)gt=j(cL);else if(i2==1){gt=[cL[4],cL[5],cL[6]];for(var C=0;C<3;C++)gt[C]=cZ*1+(1-cZ)*gt[C]}else throw hG;
$="SoCo";if(e5=="Xk")i=gt;else K=gt}else if(g9=="k"||g9=="x"){if(g9=="x"){cL.pop();var g5=1-cL.pop();
for(var C=0;C<4;C++)cL[C]*=g5}var gt=j(cL);$="SoCo";if(e5==g9)i=gt;else K=gt}else if(g9=="g"){var gt=[cL[0],cL[0],cL[0]];
$="SoCo";if(e5==g9)i=gt;else K=gt}else if(g9=="n")Y.newPath(d);else if(e5=="*u"){h=!0;F=0}else if(e5=="*U"||g9=="s"||g9=="f"||g9=="b"){if(e5!="*U"&&h){if(g9=="f"||g9=="b")F|=1;
if(g9=="s"||g9=="b")F|=2;continue}if(e5==g9)Y.closePath(d);if(e5=="*U"){h=!1}var ey;if($=="patt"){var jf=Q.Setup.Pattern[i[0]];
ey=J.PZ(jf.raw,"<Pattern>",0,0);var ca=ey.rect.clone();ca.x=ca.y=0;var fB=L.H.$$(ca).s,dm=_(i[2]);dm.sI=dm.bW=0;
L.H.A(fB,dm,fB);ey.add.SoLd.Trnf=r.Q.ZG(fB);ey.add.SoLd.nonAffineTransform=r.Q.ZG(fB);ey.y2(J,!1)}else{ey=J.d2();
ey.Yy|=16;var ip=ey.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));ip.strokeEnabled.v=ip.fillEnabled.v=!1;
if($=="SoCo"){ey.add.SoCo=JSON.parse(i4.Ej[i4.order.indexOf("SoFi")]);var db=ey.add.SoCo.Clr.v;o(db,i)}if($=="GdFl")ey.add.GdFl=i;
if(g9=="f"||g9=="b"||e5=="*U"&&F&1)ip.fillEnabled.v=!0;if(g9=="s"||g9=="b"||e5=="*U"&&F&2)ap.Mo(ip,d,1,ap.xq(K))}ey.qW("<"+(e5=="*U"?"Compound ":"")+"Path>"+V);
ey.TR=w;ey.opacity=Math.round(255*A);ey.tG(hr==0);U(ey,d.pth,J);J.G.push(ey);Y.newPath(d)}else if(e5==","&&fB[1]=="/StoryIndex"){var eS=Q.Setup.TextDocument,dE=null;
if(!(eS instanceof Array))eS=Q.Setup.TextDocument=c(eS,Z);var a1=eS[0],im=eS[2];if(a1._DocumentResources)a1=eS[0]=bG.aes(a1);
else bG.aaW(a1);var ey=J.d2();ey.add.lnsr="rend";ey.add.TySh=ex.mA(0,0);var e3=eG.a6I(a1),gu=ey.add.TySh.x5=e3[cL[0]];
if(gu==null){console.log("text not found");continue}ey.qW(ex.Ep(gu).slice(0,50));ey.TR=w;ey.opacity=Math.round(255*A);
ey.tG(hr==0);var g5=a1._1._1[cL[0]]._1._0[0]._0;g5=parseInt(g5.slice(1));var f3=a1._0._8._0,jw=f3[g5]._0;
if(jw._0)dE=G(jw._0);else if(jw._1)dE=G(jw._1._0);else dE=G(jw._2._2).slice(3);if(dE.length!=2){var cJ=L.H.ge(dE);
dE=[cJ.x,cJ.y];if(cJ.k()!=0){ex.c8(gu,1);ex.rI(gu,[0,0,Math.round(cJ.e),Math.round(cJ.l)])}}var d9=new ae,iz=new ae(1,0,0,1,dE[0],dE[1]),jE=new ae(1,0,0,1,-im[0],-im[1]),dS=_(d.ctm),c9=new ae;
if(jw._2&&jw._2._2){var e=G(jw._2._2);c9=new ae(e[0],e[1],e[2],e[3],e[4],e[5])}d9.concat(iz);d9.concat(c9);
d9.concat(jE);d9.scale(1,-1);d9.concat(dS);ey.add.TySh.A=d9;J.G.push(ey);J.VK=!0}}}function x(J,u,e){var Q=UDOC.G,q=[],Z=[],E="/DeviceGray",z,V=[],Y=1,gF=0,iC=0,ax=0;
for(var d=0;d<J.length;d++){var w=J[d];if(w.endsWith(" /CS")){var A=w.indexOf("/NChannel"),$=w.indexOf("/Process");
if(w.startsWith("/DeviceRGB")){E="/DeviceRGB";z=3}else if(w.startsWith("/DeviceGray")){E="/DeviceGray";
z=1}else if(w.startsWith("/DeviceCMYK")){E="/DeviceCMYK";z=4;V=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]}else if(A!=-1){E="/DeviceCMYK";
z=parseInt(w.slice(A-2,A-1));var i=1;for(var C=0;C<z;C++){i=w.indexOf("[",i);V[z-1-C]=w.slice(i+1,i+8).split(" ").map(parseFloat);
i++}}else if($){E="/DeviceGray";z=1}else throw w}else if(w[0]=="["){var K=w.indexOf("]"),h=w.slice(1,K).split(" ").map(parseFloat),F=w.slice(K+2),N,iQ,jB,k,ab,f_;
if(F=="/Size"||F=="/P"||F=="/R")continue;if(F=="/S"||F=="/A"){N=h[0];iQ=h[1];jB=h[2];k=h[3];ab=h[4];
f_=h[5]}else if(F=="/N"){var fc=z+(Y==1?0:1),g8;N=h[fc+0];iQ=h[fc+1];jB=h[fc+2];k=h[fc+3];ab=h[fc+5];
f_=h[fc+6];if(E=="/DeviceRGB")g8=h.slice(0,3);else if(E=="/DeviceGray")g8=[h[0],h[0],h[0]];else if(E=="/DeviceCMYK"){var bH=[0,0,0,0];
for(var C=0;C<z;C++){var cR=h[C],hr=V[C];bH[0]+=cR*hr[0];bH[1]+=cR*hr[1];bH[2]+=cR*hr[2];bH[3]+=cR*hr[3]}g8=j(bH)}else throw g8;
g8.push(h[z]);Z.push([g8,N,iQ])}else throw F;q.push([F,ab,f_,N,iQ,jB,k])}else if(w=="/E"){var h$=q.slice(0),gE=0;
for(var C=0;C<q.length;C++){var d8=q[C][0];if(d8=="/N"){gE++;continue}var hG=C,f7=C+1;while(q[f7][0]!="/N"&&f7<q.length)f7++;
if(gE==0||gE==3){for(var hX=0;hX<f7-hG;hX++)h$[hG+hX]=q[f7-1-hX]}else for(var hX=hG;hX<f7;hX++){var fB=h$[hX],e5=fB[1];
fB[1]=fB[5];fB[5]=e5;e5=fB[2];fB[2]=fB[6];fB[6]=e5}C=f7-1}q=[];for(var C=0;C<h$.length;C++){var fB=h$[C];
q.push(fB[1],fB[2],fB[3],fB[4],fB[5],fB[6])}var g9=q.length;Q.moveTo(u,q[2],q[3]);for(var C=0;C<g9;C+=6){var jB=q[(C+4)%g9],k=q[(C+5)%g9],ab=q[(C+6)%g9],f_=q[(C+7)%g9],N=q[(C+8)%g9],iQ=q[(C+9)%g9];
Q.curveTo(u,jB,k,ab,f_,N,iQ)}Q.closePath(u);q=[]}else if(w.endsWith("/Version"))Y=parseFloat(w[0])}var cL=e.d2();
cL.Yy|=16;cL.qW("<Mesh>");var bf=cL.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));bf.strokeEnabled.v=!1;
for(var C=0;C<Z.length;C++)for(var hX=C+1;hX<Z.length;hX++){var e7=Z[C][0],dO=Z[hX][0],h1=e7[0]-dO[0],hL=e7[1]-dO[1],jl=e7[2]-dO[2],gT=Math.sqrt(h1*h1+hL*hL+jl*jl);
if(gT>ax){ax=gT;gF=C;iC=hX}}var hZ=Z[gF],j6=Z[iC],aP=cL.add.GdFl=a(0,[[0,hZ[0]],[1,j6[0]]]),h7=_(u.ctm),fa=h7.oG(new fz(hZ[1],hZ[2])),h4=h7.oG(new fz(j6[1],j6[2])),cA=L.H.ge(u.pth.crds);
fa.x=(fa.x+h4.x)/2;fa.y=(fa.y+h4.y)/2;L.K.jk(fa,h4,cA,aP);U(cL,u.pth,e);e.G.push(cL);Q.newPath(u)}function a(J,u){var e=JSON.parse(i4.Ej[i4.order.indexOf("GrFl")]),Q=e.Grad.v;
Q.Intr.v=0;e.Type.v.GrdT=["Lnr","Rdl"][J];L.K.GC(u,Q);return e}function P(J){return J.slice(J.indexOf("(")+1,J.indexOf(")"))}function o(J,u){J.Rd.v=u[0]*255;
J.Grn.v=u[1]*255;J.Bl.v=u[2]*255}function G(J){var u=[];for(var C=0;C<J.length;C++)u[C]=parseFloat(J[C].slice(1));
return u}function _(J){return new ae(J[0],J[1],J[2],J[3],J[4],J[5])}function j(J){return UDOC.C.cmykToRgb(J)}function U(J,u,e){J.add.vmsk=new t.sD;
if(u.crds.length!=0)J.add.vmsk.T=S(u);J.GK();J.sN(e)}function S(J){var u={s:J.crds,r:J.cmds},e=L.H.vP(u,!1);
return e}function X(J,u){var e=[u._begin],Q=u._end-u._begin,q=Q,Z=u.Raster,d=0;if(Z){for(var C=0;C<Z.length;
C++){var E=Z[C].Data,z=E._begin+32,V=E._end;if(z>V)z=V;e.push(z,V);q-=V-z}}e.push(u._end);var Y=new Uint8Array(q);
for(var C=0;C<e.length;C+=2){var z=e[C],w=e[C+1]-z;Y.set(new Uint8Array(J.buffer,z,w),d);d+=w}return g.V_(Y).split(/\r\n|\r|\n/)}function c(J,u){if(J==null)return[];
var e=X(u,J),Q="",q="",Z=0,E;for(var C=2;C<e.length;C++){var z=e[C];if(z[0]=="%"){if(Z==0)Q+=z.slice(1);
else q+=z.slice(1)}else if(z==";")Z++;else if(z.endsWith("/RulerOrigin ,"))E=z.split(" ").slice(0,2).map(parseFloat)}var V=[Q,q],Y=[];
for(var C=0;C<2;C++){var d=V[C],w=new Uint8Array(d.length);g.bG(w,0,d);var A=FromPS.F.ASCII85Decode({buff:w,off:0}),$=a_.st(A);
Y.push($)}Y.push(E);return Y}function y(J,u){if(J==null)return[];var e=X(u,J);e=e.slice(1);for(var C=0;
C<e.length;C++){var Q=e[C];if(Q[0]=="%")e[C]=Q.slice(Q[1]=="_"?2:1)}var q=H(e);return q}function O(J,u){var e={};
if(J==null)return e;for(var C=0;C<J.length;C++){var Q=X(u,J[C]),q=Q[1],Z=P(q),E=q.slice(q.indexOf(")")+2).split(" ").map(parseFloat),z=[];
for(var V=2;V<Q.length;V++)z.push(Q[V].slice(2));e[Z]={Fd:E,lS:z}}return e}function p(J,u){var e={},Q,q;
if(J==null)return e;var Z=[];for(var C=0;C<J.length;C++){var E=X(u,J[C]);for(var z=0;z<E.length;z++){var V=E[z];
if(V[0]=="("){var Y=V.split(")");Q=Y[0].slice(1);var d=Y[1].split(" ");q=parseInt(d[1])}else if(V.endsWith("%_BS")){var Y=V.split(" "),i,K=1;
Y.pop();Y=Y.map(parseFloat);var w=Y.pop(),A=Y.pop(),$=Y.pop();if($==0)i=[Y[0],Y[0],Y[0]];else if($==2||$==4)i=[Y[4],Y[5],Y[6]];
else if($==1||$==3)i=j(Y);else if($==6){if(Y.length==3)i=[Y[0],Y[0],Y[0]];else i=j(Y);K=Y.pop()}else{throw $}Z.push([w/100,i,K,A/100])}else if(V=="BD"){for(var h=0;
h<Z.length-1;h++)Z[h][3]=Z[h+1][3];Z.sort(function(F,N){return F[0]-N[0]});e[Q]={_z:q,aow:Z};Z=[]}}}return e}function D(J){var u="Gradient PluginObject Symbol Pattern PatternLayer BrushPattern Encoding Raster Layer Resource Place".split(" "),e=Date.now(),Q=0,q=[],Z={Header:{}},E=[Z],z=J.length;
while(Q<z){var V=Q;while(V!=z&&J[V]!=13&&J[V]!=10){V++}if(J[Q]==37&&J[Q+1]==95&&J[Q+2]==37)Q+=2;if(J[Q]==37&&(J[Q+1]==37||J[Q+1]==65)){var Y=g.cS(J,Q,V-Q);
if(Y=="%%EndComments"||Y=="%EndComments"||Y=="%AI5_Begin_NonPrinting"||Y=="%AI5_End_NonPrinting--"||Y.startsWith("%AI17_Begin_Content_if_version_gt")||Y=="%AI17_End_Versioned_Content"){}else{var d=Y.indexOf("Begin"),w=Math.max(Y.indexOf("_End"),Y.indexOf("%End"));
if(d!=-1){var A=Y.slice(d+5).split(":")[0],$={_begin:Q,_end:Q},i=E[E.length-1];if(u.indexOf(A)!=-1){if(i[A]==null)i[A]=[];
i[A].push($)}else{if(i[A]!=null){console.log(E);throw Y}i[A]=$}E.push($);if(Y.startsWith("%%BeginData")){V=g.FA(J,"%%EndData",Q)}else if(Y=="%AI9_BeginDocumentData")V=g.FA(J,"%AI9_EndDocumentData",V);
else if(Y=="%AI11_BeginTextDocument")V=g.FA(J,"%AI11_EndTextDocument",V)}else if(w!=-1){E.pop()._end=Q}else if(E.length==1&&(Y.startsWith("%AI")||Y.startsWith("%%")&&Y.indexOf(" ")!=-1)){var K=1;
if(Y.startsWith("%AI"))while(Y[K]!="_"&&K<Y.length)K++;var h=Y.indexOf(":");if(h==-1)h=Y.indexOf(" ");
var F=Y.slice(K+1,h),N=Y.slice(h+1).trim();Z.Header[F]=N}}}Q=V;if(J[Q]==13)Q++;if(J[Q]==10)Q++}return Z}function f(J,u){var e=Date.now(),Q=new Uint8Array(J),q,Z=Q[2]==68;
if(u)console.log(!Z?"EPS":"PDF");if(Z){var E=g.FA(Q,"/AIMetaData "),k=!1,ab=!1;while(Q[E]!=60)E--;E--;
var z=g.FA(Q,">>",E),V=g.cS(Q,E+2,z-E-2).split("/"),Y=[];for(var C=0;C<V.length;C++){var d=V[C],w=d.startsWith("AIPrivateData"),A=d.startsWith("AIPDFPrivateData");
if(!w&&!A)continue;var $=d.trim().split(/\s+/),i=parseInt($[1]),K=parseInt($[0].slice(w?13:16));Y.push([K,i])}if(u)console.log("--- map made",Date.now()-e);
e=Date.now();var h=FromPDF.indexOfXref(Q),F=[],N=FromPDF.readXrefTrail(Q,h,F),iQ={buff:Q,off:0},jB=new Array(Y.length),f_=E;
for(var C=0;C<Y.length;C++){var K=Y[C][0],i=Y[C][1],fc=FromPDF.getIndirect(i,0,iQ,F),g8=fc.buff,bH=fc["/Filter"],cR=0;
if(bH!=null&&typeof bH=="string")bH=[bH];var hr=g.cS(g8,cR,cR+20);if(hr=="%AI12_CompressedData"){cR+=20;
k=!0}else if(hr=="%AI24_ZStandard_Data"){cR+=20;ab=!0}g8=new Uint8Array(g8.buffer,g8.byteOffset+cR,g8.length-cR);
if(bH)for(var h$=0;h$<bH.length;h$++){var gE=bH[h$];if(gE=="/FlateDecode")g8=pako.inflate(g8);else if(gE=="/ASCIIHexDecode")g8=FromPS.F.HexDecode({buff:g8,off:0});
else if(gE=="/ASCII85Decode")g8=FromPS.F.ASCII85Decode({buff:g8,off:0});else throw gE}jB[K-1]=g8}if(u)console.log("--- arrays found",Date.now()-e);
e=Date.now();var d8=g.cS(jB[0],0,13);if(d8=="%%BoundingBox"||d8=="%AI7_Thumbnai")jB=jB.slice(1);if(d8=="%AI24_ZStanda"){jB[0]=jB[0].slice(20);
ab=!0}q=T(jB);if(u)console.log("--- concatenated",Date.now()-e);e=Date.now();if(k)q=UZIP.inflate(q);
if(ab)q=iO.Ua.XX(q);if(u)console.log("--- inflated",Date.now()-e);e=Date.now()}else{var hG=g.V_(Q);if(hG.indexOf("%AI5_BeginLayer")!=-1){q=Q}else{var f7=hG.split(/[\n\r]+/),hX=[],fB=!1;
for(var e5=0;e5<f7.length;e5++){var g9=f7[e5].trim();if(g9=="%AI9_PrivateDataEnd"){fB=!1;break}else if(g9=="%AI9_DataStream"||g9=="%AI24_DataStream"){fB=!0}else if(fB)hX.push(g9.slice(1))}var cL=g.iG(hX.join("")),bf=FromPS.F.ASCII85Decode({buff:cL,off:0});
if(bf[0]==120&&bf[1]==156)q=UZIP.inflate(bf);else q=iO.Ua.XX(bf)}}return q}function T(J){var u=0,Q=0;
for(var C=0;C<J.length;C++)u+=J[C].length;var e=new Uint8Array(u);for(var C=0;C<J.length;C++){var q=J[C];
e.set(q,Q);Q+=q.length}return e}function I(J,u){for(var C=0;C<u.length;C++)if(J.startsWith(u[C]))return!0;
return!1}function H(J){var u=[],e=[],top=-1,Q,q=null,Z=null,E=0;for(var z=0;z<J.length;z++){var V=J[z];
if(Q){V=Q+V;Q=null}var Y="\t".repeat(u.length);if(q!=null){q.push(V);if(V.endsWith("~>")){var d=g.iG(q.join("")),w=FromPS.F.ASCII85Decode({off:0,buff:d});
u.push(w);e.push(!1);top++;q=null}}else if(Z!=null){if(V=="X+"){if(E==1){u.push(Z);e.push(!1);top++;
Z=null}else E--}else if(V=="X=")E++;else Z.push(V)}else if(V=="/Binary : /ASCII85Decode ,"){q=[]}else if(V=="X="){Z=[];
E++}else if(V=="/SVGFilter :"||V=="; /Def ;")continue;else if(V.startsWith("/")&&V[1].toUpperCase()!=V[1].toLowerCase()){if(V.startsWith("/XMLUID")){var A=b(V);
if(e[top])throw"e";u[top][A[4]]=A[2]}if(V.startsWith("/GObjRef")){var A=b(V);if(!e[top])throw"e";u[top].push(A[2])}else{var $=V.startsWith("/Array")||V.startsWith("/Document");
u.push($?[]:{});e.push($);top++}}else if(V.endsWith(",")){var i,K,A=b(V);A.pop();if(A[0]==";"||A.length==1){K=u.pop();
e.pop();top--;i=e[top]?null:A.pop()}else{i=e[top]?null:A.pop();var h=A.pop(),F=A[0];if(h=="/Int")K=parseInt(F);
else if(h=="/Real")K=parseFloat(F);else if(h=="/Bool")K=F=="1";else if(h=="/String"||h=="/UnicodeString")K=A.join("");
else if(h=="/RealMatrix"||h=="/RealPoint"||h=="/RealPointRelToROrigin")K=A.map(parseFloat);else throw h}if(e[top])u[top].push(K);
else u[top][i]=K}else if(V==";"){}else if(V==""){}else{if(V.indexOf("/RealPoint")!=-1){}else if(V.startsWith("(")&&V.endsWith(")")){}else if(V.endsWith("/RealMatrix")){}else throw V;
Q=Q?Q+V:V}}return u}function b(J){var u=0,e=[];while(u<J.length){var Q=J[u],q=Q.charCodeAt(0);if(Q==" ")u++;
else if(Q==","||Q==";"||Q==":"){e.push(Q);u++}else if(Q=="("){var Z=u+1;while(!(J[Z]==")"&&J[Z-1]!="\\"))Z++;
var E=J.slice(u+1,Z);e.push(E);u=Z+1}else if(Q=="/"||Q=="-"||48<=q&&q<=57){var Z=u;while(J[Z]!=" ")Z++;
e.push(J.slice(u,Z));u=Z}else throw Q}return e}function R(J){var u="";for(var C=0;C<J.length;C++){if(J[C]=="_"&&J[C+1]=="x"){var cE=parseInt(J.slice(C+2,C+4),16);
u+=String.fromCharCode(cE);C+=4}else if(J[C]=="_")u+=" ";else u+=J[C]}return u}function W(J){var u="xmlnode-nodename",e="xmlnode-nodevalue",Q="xmlnode-attributes",q="xmlnode-children",Z=J[u],E=J[Q],z=J[q],V={_nam:Z};
for(var Y in E){var d=E[Y];if(Object.keys(d[Q]).length!=0||d[q].length!=0)throw"e";if(d[u]!=Y)throw"e";
V[Y]=d[e]}if(z.length==0)return V;var w=V.cln=[];for(var C=0;C<z.length;C++)w.push(W(z[C]));return V}return s}();
var r={};r.W=function(s){return window.devicePixelRatio||1};r.gF=function(s,m){return(m.aiF=="touch"?12:4)*r.W()/s.t.O};
r.xO=function(s,m,l){this.name=s;this.id=m;this.OU=null;if(l!=null)this.SY=l};r.xO.prototype.Pk=function(s,m,l,x,a){};
r.xO.prototype.enable=function(s,m,l,x,a,P){var o=new h9(v.E.g,!0);o.data={d:v.J.GL,Cr:"default"};m.Y(o)};
r.xO.prototype.disable=function(s,m,l,x,a){};r.xO.prototype.T1=function(s,m,l,x,a){return!1};r.xO.prototype.s1=function(s,m,l,x,a){};
r.xO.prototype.Mr=function(s,m,l,x,a){};r.xO.prototype.zk=function(s,m,l,x,a){};r.xO.prototype.I6=function(s,m,l,x,a,P){};
r.xO.prototype.bI=function(s,m,l,x,a){};r.xO.prototype.NZ=function(s,m,l,x){};r.xO.prototype.nQ=function(s,m,l,x){};
r.xO.prototype.mH=function(s,m){};r.xO.prototype.V1=function(s,m){};r.xO.prototype.MZ=function(s,m,l,x,a){};
r.xO.prototype.L8=function(s,m){};r.xO.prototype.sO=function(s,m){return!1};r.xO.prototype.Xg=function(s,m){return!1};
r.xO.prototype.hl=function(){return!1};r.xO.prototype.XW=function(s,m){return!0};r.xO.prototype.Dj=function(){return null};
r.xO.prototype.cl=function(s,m,l){};r.xO.prototype.oM=function(){return!1};r.xO.prototype.qY=function(s,m,l,x){};
r.xO.prototype.track=function(s){var m=new h9(v.E.b4,!0);m.data=s;s.sQ=!0;this.OU.Y(m)};r.xO.G$=function(s,m,l,x){var a=10*r.W()*(s.aiF=="touch"?2:1),P=s.x+a,o=s.y-a;
r.xO.Fi(P,o,[iX.get([12,41]).charAt(0)+": "+L.pE.YC(m.e,l.sz,x,l.e,!0),iX.get([12,42]).charAt(0)+": "+L.pE.YC(m.l,l.sz,x,l.l,!0)],l)};
r.xO.Fi=function(s,m,l,x){var a=r.W(),P=Math.round,o=P(11*a),G=P(100*a),_=P((l.length*14+5)*a),j=new bU(s,m-_,G,_),U=r.xO.g$;
if(U==null)U=r.xO.g$=document.createElement("canvas");U.width=G;U.height=_;var S=U.getContext("2d");
S.fillStyle="rgba(0,0,1,1)";S.fillRect(0,0,G,_);S.font=o+"px monospace";S.fillStyle="rgba(255,255,255,1)";
for(var C=0;C<l.length;C++)S.fillText(l[C],P(4*a),P((C+1)*13*a));var X=[S.getImageData(0,0,G,_).data,j.clone()];
if(x)x.D.va=[X];return X};r.xO.g$=null;r.G1="0";r.r$="1";r.ag1="2";r.as_="3";r.JN="5";r.aqk="6";r.am$="7";
r.N9="8";r.dS="9";r.wX="10";r.K5="11";r.iR="12";r.le="13";r.ev="14";r.KF="16";r.Uq="18";r.Fx="19";r.UA="20";
r.jU="21";r.y7="22";r.Fe="23";r.Rh="24";r.K1="25";r.tz="27";r.kB="31";r.akV="32";r.a6u="34";r.afR="35";
r.vS="36";r.mK="37";r.Qr="38";r.fC="39";r.Zf="40";r.k1="41";r.Ce="42";r.W8="43";r.sX="47";r.Yg="48";
r.MA="51";r.j0="52";r.RJ="54";r.Ha="55";r.IO="56";r.Tj="57";r.KN="58";r.Ex="59";r.akG="60";r.Zq="61";
r.FN="70";r.mx="100";r.Mg="101";r.XE="102";r.e5="103";r.tn="120";r.P4="230";r.asU="231";r.rs="232";r.ay="233";
r.Dk="234";r.LI="235";r.zH="236";r._S=function(s){var m=r.MM,l=null;for(var x in m)if(m[x][1].indexOf(s[1].classID)!=-1)l=x;
return l};r.MM={};r.MM[r.Fe]=["tools/brush",["PbTl"]];r.MM[r.Rh]=["tools/pencil",["PcTl"]];r.MM[r.kB]=["tools/eraser",["ErTl"]];
r.fZ=function(s,m,l){r.xO.call(this,s,m,l);this.fG={brush:s?fd.Sw():null,bmode:"norm",opacity:1,flow:1,smth:0,samp:0,prsr:[!1,!1],emode:0,wconf:[40,!0,!0],sall:!1,algnd:!1,sfrom:0,alt:[!1],expo:.5,rng:1,strn:.5,pdetail:!0,smode:1,qsmode:0,setop:0,patch:0};
this.bR=null;this.kW=null;this.IF=null;this.tV=null;this.Ek=null;this.fN=null;this.Zj=null;this.oS=null;
this.q7=null;this.X4=null;this.uh=null;this.M6=null;this.MW=null;this.Jx=1;this.E7=!1;this.Wh=null;this.caller=null};
r.fZ.prototype=new r.xO;r.fZ.prototype.Xg=function(s,m){return s.t0&&m.$(dV.Ht)};r.fZ.prototype.Mr=function(s,m,l,x,a){if(x.$(dV.Il)){this.fN=new fz(a.x,a.y);
var P=this.fG.brush.Brsh.v,o=P.Dmtr.v.val,G=P.Hrdn!=null?P.Hrdn.v.val:-1;this.Zj=[o,G,!0,JSON.parse(JSON.stringify(this.fG.brush)),a];
this.jQ(l)}};r.fZ.prototype.Ns=function(s,m,l){var x=this.Zj,a=s.t.O,P=l.x-x[4].x,o=l.y-x[4].y,G=x[0],_=x[1],j=Math.abs(P)>Math.abs(o);
if(j&&x[2]){var U=Math.round(2*P/a);G+=U;l.x-=P-.5*U*a}if(!j&&!x[2]&&_!=-1){var U=Math.round(.25*o);
_+=U;l.y-=o-4*U}G=Math.max(1,G);_=x[1]==-1?-1:Math.max(0,Math.min(100,_));var S=x[3];S.Brsh.v.Dmtr.v.val=G;
if(_!=-1)S.Brsh.v.Hrdn.v.val=_;this.Zj=[G,_,j,S,l];var X=br.YQ(S,m.If.NG,a),c=X[1];c.x=Math.round(this.fN.x-c.e/2);
c.y=Math.round(this.fN.y-c.l/2);s.D.n$=[X];var y=s.t.cr(this.fN.x,this.fN.y);s.D.Zp={zs:[],oc:[y.x-G/2,y.y,y.x+G/2,y.y]};
if(_!=-1)s.D.Zp.oc.push(y.x+50/a,y.y-_/2,y.x+50/a,y.y+_/2);s.R8=!0};r.fZ.prototype.bI=function(s,m,l,x,a){if(this.id==r.UA||this.id==r.jU)return;
if(this.fN){this.fN=null;this.Ut(JSON.parse(JSON.stringify(this.Zj[3])));s.D.n$=[];s.D.Zp=null;s.R8=!0;
return}var P=new h9(v.E.g,!0);P.data={d:v.J.AL,c:this.id,aqM:"showBrushOpts",rQ:new fz(a.QO+4,a.rF)};
m.Y(P)};r.fZ.prototype.Ut=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.xw,AV:gN.L$,WR:s};this.caller.Y(m)};
r.fZ.VG=function(s,m,l,x,a,P){if(s==null)s="FrgC";if(m==null)m="norm";if(l==null)l=1;if(a==null)a=!1;
var o={classID:"Fl",Usng:{t:"enum",v:{FlCn:s}},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(l*100)}},PrsT:{t:"bool",v:a},Md:{t:"enum",v:{BlnM:aA.bH(m)}}};
if(s=="Clr")o.Clr={t:"Objc",v:x};if(s=="contentAware")o.contentAwareColorAdaptationFill={t:"bool",v:!0};
if(s=="Ptrn")o.Ptrn={t:"Objc",v:P};return{YF:"fill",WA:o}};r.fZ.prototype.Pk=function(s,m,l,x,a){this.OU=m;
var P=l.Be.length;if(P==0&&!l.z6())return;var o=P!=0?-1-l.Be[0]:l.N[0],G=l.G[o];if(s.d=="fromAction"){var _=s.qb,j=_.WA;
if(j&&j.null&&j.null.v[0]&&j.null.v[0].v.classID=="Path"){var U=l.S4(),S=U[0],X=U[1],c=S[X.length==0?0:X[0]].add.vmsk;
if(_.YF=="fill"){var y=c.SE(),O=a.zU,p=this.fG,D=O>>16&255,f=O>>8&255,T=O>>0&255;this.Tl(l,G,y,D,f,T,Math.round(p.opacity*255),p.bmode,"Fill Path")}else{for(var I=0;
I<1e3;I++){var H=L.j.Po(c.T,I,!0);if(H==-1){this.I6(l,m,a,x,null);break}var b=c.T[H],R=c.T.slice(H,H+1+b.length),W=L.H.vt(R,!0).s,J=W.slice(0,8);
for(var u=8;u<W.length;u+=6)J.push(W[u-2],W[u-1],W[u],W[u+1],W[u+2],W[u+3],W[u+4],W[u+5]);var e={};e.Points=J;
e.TextOnPathTRange=c.DF.slice(0);var e=hJ.QZ(e,2),Q=e[0];if(I==0)this.s1(l,m,a,x,l.t.fU(Q[0],Q[1]));
else this.kW.moveTo(Q[0],Q[1]);for(var C=2;C<Q.length;C+=2){var q=l.t.fU(Q[C],Q[C+1]);q.t0=!0;this.zk(l,m,a,x,q,this.fG.flow)}}}}else if(_.YF=="fill"){var Z=j.PrsT?j.PrsT.v:!1,E=G?G.add.lspf:0;
if(Z&&G){G.add.lspf=E==null?1:E|1}var z=(j.Opct?j.Opct.v.val:100)/100,V=j.Md?aA.wq(j.Md.v.BlnM):"norm",Y=j.Usng.v.FlCn;
if(Y=="contentAware"){if(l.q==null){alert("Select an area to heal first.");return}if(!l.z6())return;
this._D(l);this.v8(l,0);var d=l.q,w=L.B(d.rect.k()*4);L._Y(d.channel,w,3);this.JC(l,"sheal",w,d.rect,d.rect);
this.F(l,d.rect);this.finish(l,d.rect)}else if(Y=="Ptrn"){var A=a.yZ,$=l.q?l.q.rect.clone():new bU(0,0,l.e,l.l),i=L.B($.k()*4);
jo.Op(j,i,$,A,new fz(0,0));this.Vw(l,G,l.q,i,"norm",[6,48,0,2])}else{var O;if(Y=="FrgC")O=a.zU;else if(Y=="BckC")O=a.Pi;
else if(Y=="Blck")O=0;else if(Y=="Wht")O=16777215;else if(Y=="Gry")O=8421504;else if(Y=="Clr"){var K=L.K.Qv(j.Clr.v);
O=K.o<<16|K.z<<8|K.S}var D=O>>16&255,f=O>>8&255,T=O>>0&255;this.Tl(l,G,l.q,D,f,T,Math.round(255*z),V,[2,3])}if(Z&&G){G.add.lspf=E==null?0:E}}else if(_.YF=="delete"){var h=o<0?1:G.Ar,d=l.q,jB;
if(d==null)return;var F=o<0?l.$_[-o-1]:h<=0?null:h==1?G.SE():G.Ao(l).v,$=h<=0?G.rect:F.rect,N=h<=0?d.rect.pF($):d.rect.clone();
if(N.Xh())return;var iQ=N.k();if(h<=0){jB=L.B(iQ*4);L.yx(G.buffer,G.rect,jB,N)}else{jB=L.B(iQ);F.extend(N);
L.kV(F.channel,F.rect,jB,N)}if(0<=o&&G.hY(l,d)){if(h<=0){L.MP(jB,0);L.yx(G.Bl.Fd,G.Bl.OY,jB,N)}else{jB.fill(255);
L.kV(G.Bl.Fd,G.Bl.OY,jB,N)}}else{if(h<=0){var k=L.B(jB.length>>2);L.hy(jB,k,3);L.a.qL(L.dV(d.rect.k()),d.rect,k,N,d.channel,N,1);
L._Y(k,jB,3)}else{var ab=L.B(d.rect.k()),D=a.Pi>>>16&255,f=a.Pi>>8&255,T=a.Pi>>0&255;ab.fill(Math.round(L.js(D,f,T)));
L.a.qL(ab,d.rect,jB,N,d.channel,N,1)}}this.z4(l,!0,[2,2],o,h,N,jB)}}if(s.d=="stroke"){var f_=s.a1I,d=l.q;
if(d==null){d={rect:G.rect.clone(),channel:L.B(G.rect.k())};L.hy(G.buffer,d.channel,3)}var fc=jo.MY(f_),g8=r.bJ.i$(d,Math.ceil(fc[0]),Math.ceil(fc[1])),O=L.K.Qv(f_.Clr.v),D=Math.round(O.o),f=Math.round(O.z),T=Math.round(O.S);
this.Tl(l,G,g8,D,f,T,Math.round(255*f_.Opct.v.val/100),aA.wq(f_.Md.v.BlnM),[14,9])}if(s.d=="fillBMP"){this.Vw(l,G,l.q,s.Xx,s.My,s.YH)}if(s.d=="draw"){var bH=s.lo,cR=bH.rect;
this._D(l);var hr=l.G[l.N[0]];if(s.adM&&hr&&hr.Ar<=0&&l.Be.length==0){cR=r.EM.tO(bH,l);hr.buffer=bH.buffer.slice(0);
hr.rect=cR.clone()}else{var h$=this.fG.bmode;this.fG.bmode="norm";this.JC(l,"draw",bH.buffer,cR,cR.pF(new bU(0,0,l.e,l.l)));
this.fG.bmode=h$}this.F(l,cR);l.CR=!0;this.finish(l,cR,s.YH,s.adM)}};r.fZ.prototype.Tl=function(s,m,l,x,a,P,o,G,_){var j=l==null?new bU(0,0,s.e,s.l):l.rect,U=o<<24|P<<16|a<<8|x<<0,S=L.B(j.k()*4);
L.MP(S,U);this.Vw(s,m,l,S,G,_)};r.fZ.prototype.Vw=function(s,m,l,x,a,P){var o=s.Be.length!=0?-1-s.Be[0]:s.N[0],G=o<0?1:m.Ar,_=o<0?s.$_[-1-o]:G<=0?null:G==1?m.SE():m.Ao(s).v,j=G<=0?m.rect:_.rect,U=l==null?new bU(0,0,s.e,s.l):l.rect,S=l==null?L.$s(s.e*s.l):l.channel,X=U.k(),c,y=null;
if(G<=0){c=L.B(X*4);L.yx(m.buffer,m.rect,c,U)}else{c=L.B(X);_.extend(U);L.kV(_.channel,_.rect,c,U)}if(l!=null)L.$n(S,x);
if(G>0){y=L.B(X);L.A1(x,y)}if(0<=o&&l&&m.hY(s,l)){var O=m.Bl.q6,p=m.Bl.q6.slice(0);if(G<=0)L.qv(x,p);
else L.qv(y,p);var D=new aU([2,3],this);D.data={d:"drawtemp",i:s.N[0],ou:G,ajS:O,ajl:p};s.eN(D);this.mH(D.data,s)}else{if(G<=0){var f;
if(m.Xz(0)){f=L.B(U.k());L.hy(c,f,3)}L.a.$P(a,x,U,c,U,U,1);if(m.Xz(0))L._Y(f,c,3)}else L.a.qL(y,U,c,U,S,U,1);
this.z4(s,!0,P,o,G,U,c)}};r.fZ.prototype.sO=function(s){if(dV.wF.indexOf(s)!=-1)return!0;return!1};r.fZ.prototype.NZ=function(s,m,l,x){var a=this.fG.brush,P=x.$(dV.Il),o=P!=this.E7,G=r.fZ.uY(a,x);
if(G!=null)this.Ut(G);if(!x.$(dV.bt)&&x.dQ()!=-1){var _=dV.pW(Math.round(this.fG.opacity*100),x.dQ())/100;
this.FI({opacity:_},m)}if(this.id==r.N9&&o&&s!=null){var j=this.fG.qsmode;if(j==2)j=s.q==null?0:1;else j=2;
this.FI({qsmode:j},m)}this.E7=P;if(o){if(s)this.Jx=s.t.O;this.jQ(l,x)}};r.fZ.uY=function(s,m){var l=s.Brsh.v.Dmtr.v.val,x=s.Brsh.v.Hrdn!=null?s.Brsh.v.Hrdn.v.val:-1,a=l,P=x,o=m.$(dV.Ht);
if(m.$(dV.Z8)){if(o)x=25*Math.floor((x-1)/25);else{if(l<=10)l--;else if(l<=50)l=5*Math.floor((l-1)/5);
else if(l<=100)l=10*Math.floor((l-1)/10);else if(l<=200)l=25*Math.floor((l-1)/25);else if(l<=400)l=50*Math.floor((l-1)/50);
else l=100*Math.floor((l-1)/100)}}if(m.$(dV.Zu)){if(o)x=25*Math.ceil((x+1)/25);else{if(l<10)l++;else if(l<50)l=5*Math.ceil((l+1)/5);
else if(l<100)l=10*Math.ceil((l+1)/10);else if(l<200)l=25*Math.ceil((l+1)/25);else if(l<400)l=50*Math.ceil((l+1)/50);
else l=100*Math.ceil((l+1)/100)}}l=Math.max(1,l);x=Math.max(0,Math.min(100,x));if(P==-1)x=-1;if(l!=a||x!=P){var G=JSON.parse(JSON.stringify(s));
G.Brsh.v.Dmtr.v.val=l;if(P!=-1)G.Brsh.v.Hrdn.v.val=x;return G}return null};r.fZ.prototype.jQ=function(s,m,l,x){if(s.If.list.length==0)return;
var a=this.id,P;if((a==r.tz||a==r.Fx||a==r.Fe||a==r.Rh)&&(m!=null&&m.$(dV.Il)||this.fG.alt[0]))P="crosshair";
else{var o=this.Jx,G=this.fG.brush;if((a==r.tz||a==r.Fx)&&l&&this.M6&&this.M6.length==this.uh.k()*4){var _=l.t.cr(x.x,x.y),j=this.$Q(_),U=this.M6,S=this.uh,X=new bU(S.x+j.x,S.y+j.y,S.e,S.l),c=br.YQ(G,s.If.NG,o),y=c[0],O=c[1],p=Math.ceil(O.e/o),D=new bU(Math.round(_.x-p/2),Math.round(_.y-p/2),p,p),f=L.B(D.k()*4),T,I;
L.yx(U,X,f,D);if(o==1){T=f;I=D}else{var H=new ae(o,0,0,o,0,0),b=r.Q.ea([f,D],H,!0);I=O.clone();I.x=b.rect.x;
I.y=b.rect.y;if(I.yb(b.rect))T=b.buffer;else{T=L.B(I.k()*4);L.yx(b.buffer,b.rect,T,I)}}var R=this.fG.opacity/255;
for(var C=0;C<T.length;C+=4)T[C+3]=R*(y[C+3]*T[C+3]);br.a9B(new Uint32Array(T.buffer),I,4278190080,4294967295);
P={CI:T,Bv:I,R_:new fz(I.e/2,I.l/2)}}else P=br.E$(G,s.If.NG,o,a==r.K1)}var W=new h9(v.E.g,!0);W.data={d:v.J.GL,Cr:P};
if(this.caller)this.caller.Y(W)};r.fZ.prototype.enable=function(s,m,l,x){this.bR=l;this.caller=m;this.Ut(JSON.parse(JSON.stringify(this.fG.brush)));
if(s&&s.t.O!=0)this.Jx=s.t.O;this.jQ(l,x)};r.fZ.prototype.L8=function(s,m){if(m==gN.L$){this.fG.brush=s.If.eh;
this.jQ(s)}};r.fZ.prototype.MZ=function(s,m,l,x,a){for(var P in s)this.fG[P]=s[P];if(this.fG.alt[0])this.jQ(a,x,l)};
r.fZ.prototype.K3=function(s){var m=s.Be.length!=0?-1-s.Be[0]:s.N[0],l=s.G[m],x=m<0?1:l.Ar,a=m<0?s.$_[-m-1]:x<=0?null:x==1?l.SE():l.Ao(s).v,P=a?a.channel:l.buffer,o=(a?a.rect:l.rect).clone();
return[l,x,a,P,o]};r.fZ.prototype._D=function(s,m){this.MW=s.q==null?null:{rect:s.q.rect.clone(),channel:s.q.channel.slice(0)};
var l=this.K3(s),x=l[0],a=l[1],P=l[2];this.X4=l[3];this.q7=l[4];var o=new bU(0,0,s.e,s.l),G=o.if(this.q7);
if((this.Jp()&&a<=0||G.yb(this.q7))&&m!=!0)this.X4=this.X4.slice(0);else{if(P)P.extend(G);else x.extend(G)}};
r.fZ.prototype.v8=function(s,m){var l=this.K3(s),x=l[1],a=l[3],P=l[4],o=[a,P],G=m!=null?m:this.fG.sfrom;
if(x<=0&&G!=0){o[1]=new bU(0,0,s.e,s.l);o[0]=s.cf(G==1&&s.N[0]!=s.G.length-1?s.N[0]:null).slice(0)}this.uh=o[1].clone();
this.M6=o[0].slice(0)};r.fZ.prototype.bm=function(s,m,l){if(s.$(dV.Il)){var x=new h9(v.E.u,!0);x.c=r.ev;
x.data={d:"pickhere",aep:l};m.Y(x);return!0}return!1};r.fZ.prototype.GU=function(s,m,l,x,a,P){if(this.id!=r.N9&&!s.z6(this.caller)){this.kW=null;
return}this._D(s);var o=new bU(0,0,s.e,s.l),G=null;if(P!=null){var _=s.Be.length!=0?-1-s.Be[0]:s.N[0],j=s.G[_],U=_<0?s.$_[-_-1]:j.Ar<=0?null:j.Ar==1?j.SE():j.Ao(s).v;
G=L.B(o.k()*4);if(U)r.fZ.y$(this.X4,this.q7,U.color,G,o);else L.yx(this.X4,this.q7,G,o)}var S=this.fG;
if(this.kW&&this.id==r.N9&&S.qsmode!=0&&s.q!=null){}else{var X=m.zU,c=m.Pi;if(this.Wh=="erase"){var y=X;
X=c;c=y}var O=this.id==r.N9?this.q7:o;this.kW=new br(S.brush,m.If.NG,m.If.vw,{Dv:a,QI:P,ac8:S.smth*50/s.t.O,hJ:this.id==r.Rh||S.emode==1,sV:S.prsr},X,c,O,G)}if(this.id==r.N9){this.kW.a3J(S.brush,S.qsmode==2?0:16777215)}var p=s.t.cr(x.x,x.y);
if(l.$(dV.Ht)&&this.IF){var D=this.IF;this.kW.moveTo(D.x,D.y,x.Eg);this.kW.lineTo(.001*D.x+.999*p.x,.001*D.y+.999*p.y,x.Eg);
this.kW.lineTo(p.x,p.y,x.Eg)}else this.kW.moveTo(p.x,p.y,x.Eg);this.IF=p;this.tV=p.clone();this.Ek=new iw(p,s.t.xe)};
r.fZ.prototype.Ym=function(s,m,l){if(s&&s.t.O!=0&&s.t.O!=this.Jx){this.Jx=s.t.O;this.jQ(l)}};r.fZ.prototype.V6=function(s,m,l,x){if(this.kW==null)return;
var a=s.G[s.N[0]],P=s.t.cr(x.x,x.y),o=this.Ek.Hz(P,l);if(o.yb(this.IF))return 1;this.kW.lineTo(o.x,o.y,x.Eg);
this.IF=o;if(this.id==r.tz||this.id==r.Fx){var G=this.YR(),_=11;G=s.t.fU(P.x-G.x,P.y-G.y);var j=_>>>1,U=new bU(Math.round(G.x)-j,Math.round(G.y)-j,_,_),S=L.B(U.k()*4);
L.MP(16777215);for(var C=0;C<_;C++)S[(C*_+j)*4+3]=S[(_*j+C)*4+3]=255;s.D.va=[[S,U]];s.R8=!0}};r.fZ.prototype.nQ=function(s,m,l,x){if(l.hu!=this.id)return;
if(this.id!=r.N9||s==null)return;if(s.q==null||s.N[0]!=this.ahk){this.ahk=s.N[0];this.FI({qsmode:0},m)}};
r.fZ.prototype.F=function(s,m){if(s.Be.length!=0){s.R8=!0;return}var l=s.G[s.N[0]];if(m==null){m=this.kW.cj();
if(this.Jp()&&l.Ar<=0)m=m.pF(this.q7)}if(m.Xh())return;if(l.Ar<=0){l.F(m)}if(l.Ar==1){l.SE().A$=!0;l.sN(s)}if(l.Ar==3){l.F()}s.F(s.root.iX(m,s,s.N[0],!0))};
r.fZ.prototype.I6=function(s,m,l,x,a){if(this.kW==null)return;this.kW.finish();if(this.id!=r.Uq&&this.id!=r.Fx&&this.id!=r.N9)this.kl(s);
if(this.id==r.tz||this.id==r.Fx){s.D.va=[];s.R8=!0}if(this.id==r.N9){var P=s.q;s.q=this.MW;var o=new h9(v.E.u,!0);
o.data={d:"setsel",YH:this.name,q:P};o.c=r.r$;m.Y(o);if(this.fG.qsmode==0)this.FI({qsmode:1},m)}else{this.finish(s,this.kW.pJ());
this.kW=null;this.oS=null}this.dir=0};r.fZ.prototype.FI=function(s,m){for(var l in s)this.fG[l]=s[l];
var x=new h9(v.E.g,!0);x.data={d:v.J.AL,c:this.id,sm:s};m.Y(x)};r.fZ.prototype.Jp=function(){var s=this.id;
return s==r.N9||s==r.kB||s==r.fC||s==r.Zf||s==r.k1||s==r.y7};r.fZ.prototype.finish=function(s,m,l,x,a){var P=s.Be.length!=0?-1-s.Be[0]:s.N[0],o=s.G[P],G=P<0?1:o.Ar,_=P<0?s.$_[-P-1]:G<=0?null:G==1?o.SE():o.Ao(s).v,j=_?_.rect:o.rect,X;
if(this.Jp()||!j.yb(this.q7)){if(_==null){if(this.Jp())o.zr();else{var U=m.if(this.q7),S=L.B(U.k()*4);
L.yx(o.buffer,o.rect,S,U);o.buffer=S;o.rect=U}}else _.zr();this.F(s,j)}if(G<=0){X=L.B(m.k()*4);L.yx(this.X4,this.q7,X,m)}else{X=L.B(m.k());
X.fill(_.color);L.kV(this.X4,this.q7,X,m)}this.z4(s,!1,l?l:this.name,P,G,m,X,x,a)};r.fZ.prototype.z4=function(s,m,l,x,a,P,o,G,_){var j=o;
if(a>0){j=L.B(P.k()*4);r.fZ.y$(o,P,0,j,P)}var U=new aU(l,this);U.data=[{i:x,ou:a,Bv:P,uN:j}];if(G)U.data.C9=[s.q,null];
if(_)U.data.C9=[this.MW,s.q];s.eN(U);if(m)this.mH(U.data,s);else if(G)s.q=null;r.uf.ka(s,U.data)};r.fZ.prototype.V1=function(s,m){this.kj(s,m,!1)};
r.fZ.prototype.mH=function(s,m){this.kj(s,m,!0)};r.fZ.prototype.kj=function(s,m,l){if(s.d=="drawtemp"){var x=l?s.ajl:s.ajS,a=m.G[s.i];
a.Bl.q6=x;a.UH(m,0,0,m.q);a.F();m.CR=!0}else{r.uf.si(m,s);if(s.C9){m.q=s.C9[l?1:0];m.g_=!0}}m.F()};r.fZ.prototype.kl=function(s){this.JC(s,this.Wh,this.kW.oo(),this.kW.E2(),this.kW.cj());
this.F(s)};r.fZ.prototype.JC=function(s,m,l,x,a){var P=this.fG,o=s.G[s.N[0]],G=s.Be.length!=0?s.$_[s.Be[0]]:o.Ar<=0?null:o.Ar==1?o.SE():o.Ao(s).v,_=L.B(a.k()*4),j,U=o.Xz(0);
if(G==null){if(this.id==r.jU&&m=="heal")L.yx(o.buffer,o.rect,_,a);else L.yx(this.X4,this.q7,_,a);if(U){j=L.B(a.k());
L.hy(_,j,3)}}else{r.fZ.y$(this.X4,this.q7,G.color,_,a)}if(s.q&&m!="qselect"){var S=a.pF(s.q.rect),X=L.B(S.k()*4);
if(m=="copy"){var c=L.B(S.k());L.kV(s.q.channel,s.q.rect,c,S);L.yx(_,a,X,S);L.a.HZ(l,x,X,S,c,S,0,S,1,!1)}else{L.yx(l,x,X,S);
L.Iq(s.q.channel,s.q.rect,X,S)}l=X;x=S}function y(D,gE){var hG=Math.max(gE.x,Math.min(gE.x+gE.e-1,D.x)),f7=Math.max(gE.y,Math.min(gE.y+gE.l-1,D.y));
return new fz(hG,f7)}if(m=="idraw"||m=="ierase"){if(this.oS==null)this.oS=L.B(this.q7.k());var O=this.fG.samp,p=this.bR.Pi,D=y(this.IF,a),f=O==0?D:this.tV,T=f.x,I=f.y,H=r.kN.Sz(this.X4,this.q7,[f,new fz(T-2,I),new fz(T+2,I),new fz(T,I-2),new fz(T,I+2)]);
if(O==2)H=[[p>>>16&255,p>>>8&255,p>>>0&255,255]];var b=r.kN.VO(_,a,D,H,this.fG.wconf),R=L.B(a.k());L.kV(this.oS,this.q7,R,a);
L.e1.if(b,R,R);L.kV(R,a,this.oS,this.q7);L.Iq(R,a,l,x);m=m.slice(1)}if(m=="erase"&&(r.uf.Bu(s)!=16777215||G))m="draw";
if(m=="draw")L.a.$P(P.bmode,l,x,_,a,a,P.opacity);else if(m=="erase"){var W=L.B(a.k()*4);L.yx(l,x,W,a);
if(G==null){var J=L.B(a.k());L.hy(W,J,3);L.EU(J,P.opacity);L.ms(J);L.Iq(J,a,_,a)}else{L.MP(W,0,4278190080);
L.a.$P("norm",W,a,_,a,a,P.opacity)}}else if(m=="clone"||m=="heal"){var u=this.YR(),e=this.uh.clone();
e.offset(u.x,u.y);var Q=a.clone();Q.yD(1,1);var q=L.B(Q.k()*4),Z=L.B(Q.k());L.yx(l,x,q,Q);L.hy(q,Z,3);
L.MP(q,0);if(G==null){L.yx(this.M6,e,q,Q);var E=L.B(Q.k());L.hy(q,E,3);L.Sf(E,Z)}else r.fZ.y$(this.M6,e,G.color,q,Q);
if(m=="clone"){L._Y(Z,q,3);L.a.$P(P.bmode,q,Q,_,a,a,P.opacity)}if(m=="heal"){var z=Z.slice(0);L.round(z,20);
var V=L.B(Q.k()*4);if(G==null)L.yx(this.X4,this.q7,V,Q);else r.fZ.y$(this.X4,this.q7,G.color,V,Q);L.a.HZ(q,Q,V,Q,z,Q,0,Q,1,!1);
L.SO.n6(V,z,Q);L.a.HZ(V,Q,_,a,Z,Q,0,a,1,!1)}}else if(m=="dodge"||m=="burn"){var q=L.B(a.k()*4),w=1,A=0,$=0,i=0;
L.yx(l,x,q,a);var Y=a.k()*4,d=r.fZ.x7;if(this.E7){if(m=="dodge")m="burn";else m="dodge"}var K=P.rng;
if(m=="dodge"){A=[1-w/2,1,1+w][K];$=[1,1/(1+w),1][K];i=[w/2,0,0][K]}if(m=="burn"){A=[1/(1-w/2),1,1-w/2][K];
$=[1,1+w,1][K];i=[-(w/2)/(1-w/2),0,0][K]}for(var C=0;C<Y;C+=4){var h=q[C+3];_[C+0]=d(_[C+0],A,$,i,h);
_[C+1]=d(_[C+1],A,$,i,h);_[C+2]=d(_[C+2],A,$,i,h)}}else if(m=="sponge"||m=="redeye"){var q=L.B(a.k()*4),Z=L.B(a.k());
L.yx(l,x,q,a);L.hy(q,Z,3);L.qv(_,q);var F=P.smode;if(this.E7)F=1-F;var iQ=ib.Xi("hue2");if(m=="sponge")aX.r3(iQ,0,[0,[-50,46][F],[6,5][F]]);
else aX.r3(iQ,1,{J8:[265,305,25,55],Ta:[0,-90,-70]});var jB=eb.vC("hue2",iQ);eb._E(jB,q,q,a);L.a.HZ(q,a,_,a,Z,a,0,a,1,!1)}else if(m=="copy")L.yx(l,x,_,a);
else if(m=="sheal"){var q=L.B(a.k()*4),Z=L.B(a.k());L.yx(l,x,q,a);L.hy(q,Z,3);q.fill(0);var k=this.M6,ab=this.uh;
if(G){k=L.B(ab.k()*4);r.fZ.y$(this.M6,ab,0,k,ab)}var f_=L.ux.n6(k,ab,Z,q,a);if(f_!=0)L.yx(k,ab,q,a);
if(this.fG.sfrom==0)L.yx(q,a,_,a);else{L.yx(this.X4,this.q7,_,a);L._Y(Z,q,3);L.a.$P("norm",q,a,_,a,a,1)}}else if(m=="qselect"){var fc=this.q7,g8=fc.e,bH=fc.l,cR=g8*bH,hr=this.kW.oo(),H=this.X4,h$=r.bJ.Zg,Z=h$.rE;
Z.fill(128);for(var C=0;C<cR;C++){var gE=hr[C<<2],d8=hr[(C<<2)+3];if(d8==255&&(gE==0||gE==255))Z[C]=gE}Z[0]=Z[g8-1]=0;
Z[(bH>>>1)*g8]=Z[(bH>>>1)*g8+g8-1]=0;r.JJ.ty(h$,!0);s.q={rect:fc,channel:h$.q.slice(0)};s.g_=!0}if(G==null){if(U)L._Y(j,_,3);
L.yx(_,a,o.buffer,o.rect)}else r.fZ.X_(_,a,G)};r.fZ.YR=function(){return null};r.fZ.x7=function(s,m,l,x,a){var P=s*(1/255),o=x+m*Math.pow(P,l),G=Math.round(o*a+P*(255-a));
return Math.max(0,Math.min(255,G))};r.fZ.y$=function(s,m,l,x,a){var P=L.B(a.k());P.fill(l);L.kV(s,m,P,a);
x.fill(255);L.s2(P,x)};r.fZ.X_=function(s,m,l){var x=L.B(m.k());L.A1(s,x);L.kV(x,m,l.channel,l.rect)};
r.bJ=function(s,m,l){r.xO.call(this,s,m,l);this.fG={binop:0,feat:0,cstr:{gN:0,x:3,y:2},wconf:[16,!0,!0],anta:!0,sall:!1};
this.GS=new fz(-1,-1);this.BM=new fz(-1,-1);this.Ke="default";this.OU=null;this.a2K=!0;this.bU=!1;this.N3=new iE;
this.j4=!1;this.O1=null;this.YV=null;this.mL=!1;this.I1=!1};r.bJ.prototype=new r.xO;r.bJ.prototype.a5o=function(){var s=this.fG,m=[s.binop,s.feat];
if(this.id==r.dS)m.push(s.wconf);return m};r.bJ.prototype.a3t=function(s,m,l){var x=this.fG;x.binop=s[0];
x.feat=s[1];x.wconf=s[2];var a=new h9(v.E.g,!0);a.data={d:v.J.AL,c:this.id,fG:x};l.Y(a)};r.bJ.Zg={key:""};
r.bJ.kP=function(s,m,l){var x={YF:s,WA:{classID:"setd",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}};
if(m)x.WA.T=m;if(l!=null)x.WA.AntA={t:"bool",v:l};return x};r.bJ.or=function(s,m,l){return r.bJ.kP("set",{t:"Objc",v:{classID:s,Top:{t:"UntF",v:{type:"#Pxl",val:m.y}},Left:{t:"UntF",v:{type:"#Pxl",val:m.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:m.y+m.l}},Rght:{t:"UntF",v:{type:"#Pxl",val:m.x+m.e}}}},l)};
r.bJ.u_=function(s,m,l){var x=[],a=[],o="set";for(var C=0;C<s.length;C+=2){x.push(s[C]);a.push(s[C+1])}var P={t:"Objc",v:{classID:"Plgn",Pts:{t:"ObAr",v:{classID:"Pnt",arr:[{id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:x},{id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:a}]}}}};
if(m)o=["set","addTo","subtractFrom","interfaceWhite"][m];return r.bJ.kP(o,P,l)};r.bJ.aag=function(s,m,l){var x={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:s.x}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:s.y}}}},a=r.bJ.kP("set",x);
a.WA.Tlrn={t:"long",v:m[0]};a.WA.AntA={t:"bool",v:m[1]};a.WA.Cntg={t:"bool",v:m[2]};if(l==!0)a.WA.Mrgd={t:"bool",v:l};
return a};r.bJ.d9=function(s){return r.bJ.kP("set",{t:"enum",v:{Ordn:s?"Al":"None"}})};r.bJ.a3M=function(s,m,l){var x={classID:"null"};
if(s!="border")x.selectionModifyEffectAtCanvasBounds={t:"bool",v:l};var a={e:"By",c:"By",b:"Wdth",f:"Rds",s:"Rds"}[s[0]];
x[a]={t:"UntF",v:{type:"#Pxl",val:m}};return{YF:s,WA:x}};r.bJ.AE=function(s,m,l){var x={t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]},a={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:m}}]};
if(l)a.v.push({t:"name",v:{classID:"Lyr",val:l}});var P=[{classID:"null",null:x,T:a},{classID:"null",null:a,T:x},{classID:"null",null:a,From:x},{classID:"null",null:a,With:x}],o=["set","add","subtract","interfaceIconFrameDimmed"];
return{YF:o[s],WA:P[s]}};r.bJ.K_=function(s,m){var l=new h9(v.E.g,!0);l.data={d:v.J.xw,AV:gN.pM};if(!m.DQ)s.Y(l);
l.data={d:v.J.xw,AV:gN.Ii};if(!m.HD.Rz)s.Y(l)};r.bJ.prototype.Pk=function(s,m,l,x,a){r.bJ.K_(m,a);this.OU=m;
var P=s.d,o,G,_=new bU(0,0,l.e,l.l),gF=!1,iC,ax,e7,dO;if(P=="fromAction"){var j=s.qb,U=j.YF,S=j.WA,X=S?S.selectionModifyEffectAtCanvasBounds:null,c=X&&X.v;
if(U=="colorRange"){if(S.Clrs){var y=S.Clrs.v.Clrs,O=0,p=255,D={Shdw:"shadows",Mdtn:"midtones",Hghl:"highlights"}[y],f=S[D+"LowerLimit"],T=S[D+"UpperLimit"];
if(f)O=f.v;if(T)p=T.v;var I=S[D+"Fuzziness"].v/100;o=r.bJ.cX(l,O,p,I,!0)}else{var O=S.Mnm.v,p=S.Mxm.v,I;
O={J5:O.Lmnc.v,lz:O.A.v,S:O.B.v};p={J5:p.Lmnc.v,lz:p.A.v,S:p.B.v};I=S.Fzns.v/200;o=r.bJ.cX(l,O,p,I)}G=[7,8]}else if(U=="inverse"){if(l.q==null){alert("No selection!");
return}o={channel:L.B(_.k()),rect:_};L.kV(l.q.channel,l.q.rect,o.channel,o.rect);L.ms(o.channel);G=[7,2]}else if(U=="expand"){var H=S.By.v.val,b=l.q.rect.clone();
b.yD(H,H);var R=L.B(b.k()),W=L.B(b.k());L.kV(l.q.channel,l.q.rect,W,b);L.style.stroke(W,R,b,H);o={channel:R,rect:b};
G=[7,4]}else if(U=="contract"){var H=S.By.v.val,J=l.q.rect.clone();J.yD(1,1);if(!c)J=J.pF(_);var W=L.B(J.k()),u=L.B(W.length);
L.kV(l.q.channel,l.q.rect,W,J);L.ms(W);L.style.stroke(W,u,J,H);L.ms(u);o={channel:u,rect:J};L.zr(o);
G=[7,5]}else if(U=="border"){var H=S.Wdth.v.val;o=r.bJ.i$(l.q,H/2,H/2);G=[7,9]}else if(U=="feather"||U=="smoothness"){var H=S.Rds.v.val;
o=r.bJ.V$(l.q,H,U=="smoothness",_,c);G=U=="feather"?[7,6]:[19,3,0]}else{var e=S.null.v,Q=S.AntA!=null&&S.AntA.v;
function q(iT){var cf=iT.Top.v.val,gT=iT.Left.v.val;return new bU(gT,cf,iT.Rght.v.val-gT,iT.Btom.v.val-cf)}function Z(iT){var cf=iT[0].arr,ir=iT[1].arr,bl={s:[],r:[]};
for(var C=0;C<cf.length;C++){bl.r.push(C==0?"M":"L");bl.s.push(cf[C],ir[C])}bl.r.push("Z");return bl}var E=["set","addTo","subtractFrom","interfaceWhite"].indexOf(U),z=S.T?S.T.v:null;
if(z&&z.classID=="Elps"){o=this.SQ(r.Gu._T(q(z)));G=[10,4]}else if(z&&z.classID=="Rctn"){var V=q(z);
o={channel:L.B(V.k()),rect:V.clone()};o.channel.fill(255);G=[10,15]}else if(z&&z.classID=="ObSl"){var V=q(z),Y=r.bJ.Zg,d=Y.rect,w=Y.rE,A=d.e,$=d.l,i=V.x-d.x,K=i+V.e-1,h=Math.max(i,Math.min(K,i+K>>>1)),F=V.y-d.y,N=F+V.l-1,iQ=Math.max(F,Math.min(N,F+N>>>1)),jB=Math.max(i,0),k=Math.min(K,A),ab=Math.max(F,0),f_=Math.min(N,$);
w.fill(128);if(0<=F)for(var fc=jB;fc<k;fc++)w[F*A+fc]=0;if(N<$)for(var fc=jB;fc<k;fc++)w[N*A+fc]=0;if(0<=i)for(var g8=ab;
g8<f_;g8++)w[g8*A+i]=0;if(K<A)for(var g8=ab;g8<f_;g8++)w[g8*A+K]=0;var bH=r._H.B2,cR=Math.round(V.e*bH),hr=Math.round(V.l*bH);
for(var fc=Math.max(0,h-cR);fc<Math.min(A,h+cR);fc++)w[iQ*A+fc]=255;for(var g8=Math.max(0,iQ-hr);g8<Math.min($,iQ+hr);
g8++)w[g8*A+h]=255;r.JJ.ty(Y,!0);o={channel:Y.q.slice(0),rect:d.clone()};G=[10,44]}else if(z&&z.classID=="Plgn"){o=this.SQ(Z(z.Pts.v.arr));
G=[10,9]}else if(z&&z.classID=="Pnt"){o=r.kN.Jd(l,new fz(z.Hrzn.v.val,z.Vrtc.v.val),[S.Tlrn.v,Q,S.Cntg==null||S.Cntg.v],S.Mrgd?S.Mrgd.v:!1);
G=[10,12]}else if(z&&z.Ordn=="None"){o=null;G=[7,1]}else if(z&&z.Ordn=="Al"){var h$=_;if(l.N.length!=0){var gE=l.root.Wp(l.N[0]);
while(gE.parent&&gE.parent.parent)gE=gE.parent;if(gE.i.add.artb)h$=gE.i.wy()}o={channel:L.B(h$.k()),rect:h$};
o.channel.fill(255);G=[7,0]}else if(z&&z[0]&&z[0].v.keyID=="WrPt"){var d8={d:"frompath",KA:[-1,0,0]};
this.Pk(d8,m,l,x,a);return}else{var hG=["set","add","subtract","interfaceIconFrameDimmed"].indexOf(U),f7=U=="set"?z:e,hX=f7[0].v.enum,d8;
if(hX=="Trsp"||hX=="Msk"||hX=="vectorMask"||hX=="Trgt"){var fB=l.N[0];if(f7.length==2)fB=e6.$h(l,f7[1]);
var e5=["Trsp","Msk","vectorMask"].indexOf(hX);if(hX=="Trgt"&&l.G[fB].Ar==1)e5=1;d8={d:"fromlayer",KA:[fB,e5,hG]}}else{if(f7[0].t=="name"){var fB=0;
for(var C=0;C<l.$_.length;C++)if(l.$_[C].name==f7[0].v.val)fB=C;d8={d:"fromchannel",KA:[-5-fB,0,hG]}}else{var g9=["RGB","Rd","Grn","Bl"].indexOf(hX);
d8={d:"fromchannel",KA:[-1-g9,0,hG]}}}this.Pk(d8,m,l,x,a);return}if(!Q&&o)L.round(o.channel);if(S.Fthr)o=r.bJ.V$(o,S.Fthr.v.val,!1);
if(U!="set"&&l.q!=null)o=L.e1.a2(o,l.q,E)}if(U=="expand"||U=="contract")if(!c&&!_.contains(o.rect)){var cL=o.rect.pF(_),bf=L.B(cL.k());
L.kV(o.channel,o.rect,bf,cL);o.channel=bf;o.rect=cL}}if(P=="qmask"){gF=!0;var h1=l.R4(),hL=new bU(0,0,l.e,l.l);
if(h1){o=h1.rect.yb(hL)&&L.D_(h1.channel,255)?null:{rect:h1.rect.clone(),channel:h1.channel.slice(0)};
iC=h1}else{o=null;ax=new t.K0;ax.color=0;ax.name="Quick Mask";ax.IU=!0;if(l.q){ax.rect=l.q.rect.clone();
ax.channel=l.q.channel.slice(0)}else{ax.rect=hL;ax.channel=L.B(ax.rect.k());ax.channel.fill(255)}}G=[6,6,1]}if(P=="setsel"){o=s.q;
G=s.YH}if(P=="crange"){var O=s.ap,p=s.Ot;o=r.bJ.cX(l,O,p,s.nS);G=[7,8]}if(P=="fromlayer"||P=="fromchannel"||P=="frompath"){var jl=s.KA[0],e5=s.KA[1],E=s.KA[2];
if(P=="fromlayer"){if(jl==null)jl=l.N[0];var gT=l.G[jl];if(e5==0){var hZ=gT.rect,j6=gT.buffer;if(hZ.Xh())return;
var aP=L.B(j6.length>>>2);L.hy(j6,aP,3);o={channel:aP,rect:hZ.clone()}}else{if(gT.v==null)gT.sN(l);var h7=e5==1?gT.SE():gT.v;
o=r.bJ.U9(h7,_)}this.track(r.bJ.AE(E,["Trsp","Msk"][e5],gT.getName()))}else if(P=="frompath"){var fa=l.S4(),h4=fa[1],fa=fa[0];
if(jl==null)if(fa.length==0||h4.length==0)return;var cA=fa[h4[0]];if(jl!=null)for(var C=0;C<fa.length;
C++)if(fa[C].jV==jl)cA=fa[C];var h7=cA.add.vmsk.SE(),jg=h7.E2();if(jg.k()==0)return;var aP=h7.$k();if(s.KA[3]!=null)this.a2K=s.KA[3];
if(this.a2K){aP=aP.slice(0);L.round(aP)}e7=[JSON.stringify(l.FZ),JSON.stringify(l.QR)];dO=["[]","[]"];
l.FZ=[];l.QR=[];o={channel:aP,rect:jg}}else{if(jl==null)jl=r.bJ.XL(l);o=r.bJ.S_(l,jl)}if(E!=0&&l.q)o=L.e1.a2(o,l.q,E);
G=[14,11]}if(o!=null&&L.D_(o.channel,0)){o=null;G=[7,1]}if(o)L.zr(o);var cS=new aU(G,this);cS.data={d:"changesel",MW:l.q,Q$:o,R4:gF,aoH:iC,amn:ax,A3:e7,ajN:dO};
l.eN(cS);this.mH(cS.data,l)};r.bJ.XL=function(s){var m=0;if(s.Be.length!=0)m=-5-s.Be[0];else if(JSON.stringify(s.t.OL)=="[1,1,1]")m=-1;
else m=-2-s.t.OL.indexOf(1);return m};r.bJ.S_=function(s,m){var l,x=new bU(0,0,s.e,s.l);if(-5<m&m<0){var a=-m-1,P=s.cf(),o=L.B(x.k());
if(a==0)L.A1(P,o);else L.hy(P,o,a-1);l={channel:o,rect:x.clone()}}if(m<-4){l=r.bJ.U9(s.$_[-m-5],x)}return l};
r.bJ.U9=function(s,m){var l,x;if(s.Qv()==0){x=s.E2().clone();if(x.k()==0)return;l=s.$k()}else{x=m;l=L.B(x.k());
s.dG(x,l)}return{channel:l,rect:x}};r.bJ.prototype.Xg=function(s){return this.j4||s.t0&&this.id!=r.JN};
r.bJ.prototype.u3=function(s,m,l){var x=new h9(m,!0);x.data=l;s.Y(x)};r.bJ.prototype.zI=function(s,m){var l=new h9(v.E.g,!0);
l.data={d:v.J.GL,Cr:m};s.Y(l)};r.bJ.prototype.E2=function(s,m,l){m=s.q==null||this.N3.zf(1)||this.N3.Vc(1)?m:null;
var x=this.GS,a=this.BM;if(l){x.x=Math.max(0,Math.min(s.e,x.x));x.y=Math.max(0,Math.min(s.l,x.y));a.x=Math.max(0,Math.min(s.e,a.x));
a.y=Math.max(0,Math.min(s.l,a.y))}var P=r.c9.WG(x,a,m,!0,this.fG.cstr),o=P[0].x,G=P[0].y;return new bU(o,G,P[1].x-o,P[1].y-G)};
r.bJ.prototype.s1=function(s,m,l,x,a){this.I1=!0;if(this.FG())return;this.OU=m;this.bU=!1;this.N3.s1(x);
this.GS=s.t.cr(a.x,a.y);this.GS=r.PL.ZX(s,this.GS,l);if(this.ZE(s,this.GS,x)){this.j4=!0;this.O1=s.q.rect.clone();
return}this._N(s,l,x,a);s.t.Bm=new bU};r.bJ.prototype.ZE=function(s,m,l){var x=l.$(dV.Ht),a=l.$(dV.Il);
if(s.q&&!x&&!a&&this.fG.binop==0)return L.qi(m,s.q.channel,s.q.rect);return!1};r.bJ.prototype.zk=function(s,m,l,x,a){this.OU=m;
if(this.mL)return;var P=s.t.cr(a.x,a.y);if(fz.rv(this.GS,P)*s.t.O>5){this.bU=!0;this.N3.zk()}if(x.$(dV.td)){if(this.YV==null)this.YV=new fz(P.x-this.GS.x,P.y-this.GS.y);
this.GS.x=P.x-this.YV.x;this.GS.y=P.y-this.YV.y}else this.YV=null;this.BM=P;if(!this.j4)this.BM=r.PL.ZX(s,this.BM,l);
if(this.ZE(s,this.BM,x))this.zI(m,"move");else this.zI(m,this.Ke);if(this.j4){var o=this.O1.clone();
o.x+=this.BM.x-this.GS.x;o.y+=this.BM.y-this.GS.y;var G=r.PL.nM(s,o,l);s.q.rect.x=Math.round(this.BM.x-this.GS.x+this.O1.x+G[0]);
s.q.rect.y=Math.round(this.BM.y-this.GS.y+this.O1.y+G[1]);s.g_=!0;r.PL.za(s,o,G);return}this.xi(s,l,x,a);
if(s.t.Bm)s.t.Bm=this.E2(s,x)};r.bJ.prototype.FG=function(){return!1};r.bJ.prototype.I6=function(s,m,l,x,a,P){var o=this.I1;
this.I1=!1;if(P||!o)return;s.t.Bm=null;this.BM=s.t.cr(a.x,a.y);this.BM=r.PL.ZX(s,this.BM,l);if(this.j4){this.j4=!1;
if(s!=null&&s.D.p3){s.D.p3=null;s.R8=!0}if(this.BM.yb(this.GS)&&this.JM()==0){this.u3(m,v.E.b4,r.bJ.d9());
return}this.vm(s,this.O1,s.q.rect.clone());return}this.tU(s,l,x,a);r.bJ.K_(m,l);this.N3.I6();this.lk(m)};
r.bJ.prototype.vm=function(s,m,l){var x=s.b1();if(x!=null&&x.c==this&&x.data.d=="movesel"){}else{x=new aU([7,7],this);
x.data={d:"movesel",sW:m};s.eN(x)}x.data.Q6=l;this.mH(x.data,s)};r.bJ.prototype.Mr=function(s,m,l,x,a){this.mL=!0};
r.bJ.prototype.bI=function(s,m,l,x,a){var P=new h9(v.E.g,!0);P.data={d:v.J.AL,c:this.id,mW:a,aT:s,pX:l};
m.Y(P);this.mL=!1};r.bJ.prototype.NZ=function(s,m,l,x){this.N3.NZ(x);if(s!=null&&s.q!=null){var a=x.jv();
if(a.x!=0||a.y!=0){var P=s.q.rect.clone();P.x+=a.x;P.y+=a.y;this.vm(s,s.q.rect.clone(),P)}}this.lk(m)};
r.bJ.prototype.lk=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.AL,c:this.id,PK:this.JM()};s.Y(m)};
r.bJ.prototype.JM=function(){var s=this.N3.zf(0),m=this.N3.Vc(0);return r.bJ.af(this.fG.binop,s,m)};
r.bJ.af=function(s,m,l){if(m)s=1;if(l)s=2;if(m&&l)s=3;return s};r.bJ.prototype.finish=function(s,m,l,x){var a=s.q,P=this.getSelection(s,m,l,x);
if(P==null)P=r.bJ.d9();else{var o=this.fG.feat,G=this.JM();if(o!=0)P.WA.Fthr={t:"UntF",v:{type:"#Pxl",val:o}};
if(G!=0&&G!=4)P.YF=["","addTo","subtractFrom","interfaceWhite",""][G]}this.u3(this.OU,v.E.b4,P);this.GS.Qk(-1,-1);
this.BM.Qk(-1,-1)};r.bJ.prototype.getSelection=function(s,m,l,x){return null};r.bJ.prototype._N=function(s,m,l,x){};
r.bJ.prototype.xi=function(s,m,l,x){};r.bJ.prototype.tU=function(s,m,l,x){};r.bJ.prototype.V1=function(s,m){var l=s.d;
if(l=="changesel")m.q=s.MW;if(l=="movesel")m.q.rect=s.sW;if(s.R4){if(s.aoH){m.Be=[m.$_.length];m.$_.push(s.aoH)}else{m.$_.pop();
m.Be=[]}}if(s.A3){m.FZ=JSON.parse(s.A3[0]);m.QR=JSON.parse(s.A3[1])}m.g_=!0};r.bJ.prototype.mH=function(s,m){var l=s.d;
if(l=="changesel")m.q=s.Q$;if(l=="movesel")m.q.rect=s.Q6;if(s.R4){if(s.amn){m.Be=[m.$_.length];m.$_.push(s.amn)}else{m.$_.pop();
m.Be=[]}}if(s.A3){m.FZ=JSON.parse(s.ajN[0]);m.QR=JSON.parse(s.ajN[1])}m.g_=!0};r.bJ.prototype.MZ=function(s){this.fG=s.fG};
r.bJ.prototype.SQ=function(s){var m=L.H.QS(s.s);if(m.Xh())return null;var l=L.Uv(m.e,m.l);l.save();l.beginPath();
l.translate(-m.x,-m.y);Typr.U.pathToContext({cmds:s.r,crds:s.s},l);l.closePath();l.fill();l.restore();
var x=L.B(m.k()),a=l.getImageData(0,0,m.e,m.l);L.hy(a.data,x,3);return{rect:m,channel:x}};r.bJ.V$=function(s,m,l,x,a){if(l)m=Math.round(m*.7);
var P=Math.ceil(2.6*m),o=s.rect.clone();o.yD(P,P);if(x&&!a)o=o.pF(x);var G=L.B(o.k()),_=L.B(G.length);
L.kV(s.channel,s.rect,_,o);L.yf.FS(_,G,o,m);if(l){var j=G.length;for(var C=0;C<j;C++){var U=(G[C]-128)*m*2.5;
G[C]=Math.max(0,Math.min(255,Math.round(128+U)))}}return{channel:G,rect:o}};r.bJ.i$=function(s,m,l){var x=Math.max(1,Math.ceil(l)),a=s.rect.clone();
a.yD(x,x);var P=a.k(),o={channel:L.B(P),rect:a},G=L.B(P);L.kV(s.channel,s.rect,G,o.rect);if(l!=0)L.style.stroke(G,o.channel,o.rect,l);
else L.qv(G,o.channel);var _=L.B(P);L.ms(G);if(m!=0)L.style.stroke(G,_,o.rect,m);else L.qv(G,_);L.e1.pF(o.channel,_,o.channel);
return o};r.bJ.cX=function(s,m,l,x,a){var P=new bU(0,0,s.e,s.l),o=s.cf();if(s.q){var G=s.q.rect.pF(P),_=L.B(G.k()*4);
L.yx(o,P,_,G);P=G;o=_}var j=P.k(),U=L.B(j),S=1/x;if(a){if(m>=l)m=l-1;var X=m*(1-x),c=m,y=l,O=l+(255-l)*x,p=X==c?0:1/(c-X),D=y==O?0:1/(O-y);
for(var C=0;C<j;C++){var f=C<<2,T=L.js(o[f],o[f+1],o[f+2]),I=0;if(T<X)I=0;else if(T<c)I=(T-X)*p;else if(T<=y)I=1;
else if(T<=O)I=1-(T-y)*D;else I=0;U[C]=o[f+3]*I*I}}else for(var C=0;C<j;C++){var f=C<<2,H=L._g(o[f],o[f+1],o[f+2]),I=L.ll(H,m,l,x,S);
U[C]=o[f+3]*I}return{rect:P,channel:U}};r.ut=function(){r.fZ.call(this,[10,18],r.vS,"tools/blur");this.Wh="copy"};
r.ut.prototype=new r.fZ;r.ut.prototype.s1=function(s,m,l,x,a){var P=x.$(dV.Il)?br.ZW:br.vS;this.GU(s,l,x,a,this.fG.strn,P);
if(this.kW==null)return;this.kl(s)};r.ut.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);if(this.fN)this.Ns(s,l,a);
if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.WB=function(){r.fZ.call(this,[10,0],r.Fe,"tools/brush");
this.Wh="draw"};r.WB.prototype=new r.fZ;r.WB.prototype.s1=function(s,m,l,x,a){if(this.bm(x,m,a))return;
this.GU(s,l,x,a,this.fG.flow);if(this.kW==null)return;this.kl(s)};r.WB.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);
if(this.fN)this.Ns(s,l,a);if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.Xq=function(){r.fZ.call(this,[10,42],r.K1,"tools/crepl");
this.Wh="idraw";this.fG.bmode="hue "};r.Xq.prototype=new r.fZ;r.Xq.prototype.s1=function(s,m,l,x,a){if(this.bm(x,m,a))return;
this.GU(s,l,x,a,this.fG.flow);if(this.kW==null)return;this.kl(s)};r.Xq.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);
if(this.fN)this.Ns(s,l,a);if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.xf=function(){r.fZ.call(this,[10,43],r.y7,"tools/redeye");
this.fG.smode=0;this.Wh="redeye"};r.xf.prototype=new r.fZ;r.xf.prototype.s1=function(s,m,l,x,a){this.GU(s,l,x,a,this.fG.flow);
if(this.kW==null)return;this.kl(s)};r.xf.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);if(this.fN)this.Ns(s,l,a);
if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.BA=function(){r.fZ.call(this,[10,38],r.Rh,"tools/pencil");
this.Wh="draw"};r.BA.prototype=new r.fZ;r.BA.prototype.s1=function(s,m,l,x,a){if(this.bm(x,m,a))return;
this.GU(s,l,x,a,this.fG.flow);if(this.kW==null)return;this.kl(s)};r.BA.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);
if(this.fN)this.Ns(s,l,a);if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.nz=function(){r.fZ.call(this,[10,22],r.Zf,"tools/burn");
this.Wh="burn"};r.nz.prototype=new r.fZ;r.nz.prototype.s1=function(s,m,l,x,a){this.GU(s,l,x,a,this.fG.expo/Math.E);
if(this.kW==null)return;this.kl(s)};r.nz.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);if(this.fN)this.Ns(s,l,a);
if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.fr=function(s,m,l){r.fZ.call(this,s==""?null:s?s:[10,1],m?m:r.tz,l?l:"tools/clone");
this.Wh="clone";this.$L=null;this.X=null};r.fr.prototype=new r.fZ;r.fr.prototype.s1=function(s,m,l,x,a){var P=this.fG,o=P.alt[0];
if(x.$(dV.Il)||x.$(dV.OV)||o){this.$L=s.t.cr(a.x,a.y);this.X=null;if(o)this.FI({alt:[!1]},m);this.v8(s);
this.jQ(l,x,s,a);return}if(this.$L==null){alert(iX.get([15,7,0]));return}this.jQ(l,x);this.GU(s,l,x,a,this.fG.flow);
if(this.kW==null)return;this.X=this.$Q(s.t.cr(a.x,a.y));this.kl(s)};r.fr.prototype.$Q=function(s){var m=this.X;
if(m==null||!this.fG.algnd)m=new fz(Math.round(s.x-this.$L.x),Math.round(s.y-this.$L.y));return m};r.fr.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);
if(this.fN)this.Ns(s,l,a);if(this.kW==null){if(this.$L!=null)this.jQ(l,x,s,a);return}if(!a.t0||this.$L==null)return;
this.V6(s,l,x,a);this.kl(s)};r.fr.prototype.YR=function(){return this.X};r.Bs=function(s,m,l){r.xO.call(this,s,m,l);
this.MX={ZB:{gN:0,x:0,y:0},sc:!1};this.gi=!1;this.Hy=null;this.cursor=null;this.aeP=0;this.NC=null;this.GS=null;
this.dc=null;this.Q0=!1};r.Bs.prototype=new r.xO;r.Bs.prototype.hl=function(){return this.Hy!=null};
r.Bs.prototype.Xg=function(s){return this.GS!=null||this.Hy&&this.Hy.HO()};r.Bs.prototype.s1=function(s,m,l,x,a){this.NC=a;
var P=s.t.cr(a.x,a.y);P.x=Math.round(P.x);P.y=Math.round(P.y);var o=this.MX.ZB,G=o.gN!=0?o.x/o.y:null,_=this.Q0;
this.Q0=!1;if(this.Hy){var j=this.Hy.l8(P,s.t.O);if(_&&j==null){this.Hy.clear(s);this.Hy=null}else{this.Hy.s1(s,l,x,P,G,!1,a);
return}}this.GS=r.PL.ZX(s,P,l)};r.Bs.prototype.nf=function(s,m,l){if(l==null)l=[s.x,s.y,s.x+s.e,s.y,s.x+s.e,s.y+s.l,s.x,s.y+s.l];
return new hF(l,!0,!1,this.id==r.K5,!0,m,this.id==r.K5?2:0,this.id==r.K5?4:3)};r.Bs.prototype.jQ=function(s){var m=new h9(v.E.g,!0);
m.data={d:v.J.GL,Cr:this.cursor};s.Y(m)};r.Bs.prototype.enable=function(s,m,l,x){this.OU=m;this.cursor="crosshair";
this.jQ(m);if(s!=null){var a=s.q?{Iu:"cropby",a0H:3}:{Iu:"config",MX:this.MX,afu:!0};this.MZ(a,m,s,x,l);
if(s.q==null&&this.MX.ZB.gN==0)this.Q0=!0}};r.Bs.prototype.zk=function(s,m,l,x,a){this.NC=a;var P=s.t.cr(a.x,a.y);
if(!a.t0){var o="crosshair";if(this.Hy){var G=this.Hy.l8(P,s.t.O,null,a);if(G)o=G;else o="default"}if(o!=this.cursor){this.cursor=o;
this.jQ(m)}}if(this.Hy)this.Hy.zk(s,l,x,P);else if(this.GS){if(this.gi){s.D.NJ={r:["M","L"],s:[this.GS.x,this.GS.y,P.x,P.y]}}else{var _=r.c9.WG(this.GS,r.PL.ZX(s,P,l),x,!0,this.MX.ZB),j=_[0].x,U=_[0].y,S=this.dc=new bU(j,U,_[1].x-j,_[1].y-U);
s.D.NJ=L.H.$$(S);r.xO.G$(a,S,s,l)}s.R8=!0}};r.Bs.a2X=function(s,m,l){var x,a,G,_;if(m<=l){x=m;a=l}else{x=l;
a=m}var P=s-Math.floor((s+Math.PI)/(2*Math.PI))*2*Math.PI;P=Math.abs(P);if(P>Math.PI/2)P=Math.PI-P;var o=x/(a*Math.sin(P)+x*Math.cos(P));
if(m<=l){G=x*o;_=a*o}else{G=a*o;_=x*o}return{h_:G,Cm:_}};r.Bs.prototype.I6=function(s,m,l,x,a){this.NC=a;
var P=s.t.cr(a.x,a.y);if(this.Hy==null){var o=this.dc;if(this.GS&&(o||this.gi)){if(this.gi){var G=this.GS,_=P;
if(G.x>_.x){var j=G;G=_;_=j}var G=Math.atan2(-(_.y-G.y),_.x-G.x),U=r.Bs.a2X(G,s.e,s.l),S=[0,0,U.h_,0,U.h_,U.Cm,0,U.Cm],X=new ae;
X.translate(-U.h_/2,-U.Cm/2);X.rotate(G);X.translate(s.e/2,s.l/2);L.H.A(S,X,S);this.Hy=this.nf(o,!1,S);
s.D.NJ=null;this.gi=!1}else{var c=this.MX.ZB;this.Hy=this.nf(o,c.gN!=0)}this.Hy.Yk(s,l);this.dc=null;
this.u3(m,v.E.g,{d:v.J.AL,c:this.id,Tb:!0});this.GS=null;s.D.va=[];s.R8=!0}return}this.Hy.I6(s,l,x,P);
this.u3(m,v.E.g,{d:v.J.AL,c:this.id,Tb:!0});var S=this.Hy.D7();if(Math.abs(S[0]-S[4])<2&&Math.abs(S[1]-S[5])<2){this.disable(s,m,null,x);
return}if(Date.now()-this.aeP<200&&this.Hy.w2(P)){this.wV(s,l);this.disable(s,m,l,x);return}this.aeP=Date.now()};
r.Bs.prototype.NZ=function(s,m,l,x){var a=this.Hy;if(a==null||this.NC&&this.NC.t0)return;if(x.$(dV.z3)){this.wV(s,l);
this.disable(s,m,l,x)}else if(x.$(dV.Pt)){this.disable(s,m,l,x)}else a.NZ(s,l,x)};r.Bs.Zv=function(s,m,l){var x={classID:"null",T:{t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:s[1]}},Left:{t:"UntF",v:{type:"#Pxl",val:s[0]}},Btom:{t:"UntF",v:{type:"#Pxl",val:s[1]+s[3]}},Rght:{t:"UntF",v:{type:"#Pxl",val:s[0]+s[2]}}}},Angl:{t:"UntF",v:{type:"#Ang",val:m!=null?m:0}},Dlt:{t:"bool",v:l!=null?l:!0},cropAspectRatioModeKey:{t:"enum",v:{cropAspectRatioModeClass:"pureAspectRatio"}},CnsP:{t:"bool",v:!1}};
return{YF:"crop",WA:x}};r.Bs.gM=function(s,m){if(m==null)m=[!0,!0,!0,!0];var l={classID:"trim",trimBasedOn:{t:"enum",v:{trimBasedOn:["topLeftPixelColor","bottomRightPixelColor","Trns"][s]}}},x=["Top","Left","Btom","Rght"];
for(var C=0;C<4;C++)l[x[C]]={t:"bool",v:m[C]};return{YF:"trim",WA:l}};r.Bs.Tk=function(s,m,l,x){var a={classID:"null"};
if(x!=null){a.Wdth={t:"UntF",v:{type:"#Pxl",val:s}};a.Hght={t:"UntF",v:{type:"#Pxl",val:m}};a.Intr={t:"enum",v:{Intp:["Nrst","Blnr","bicubicSharper"][x]}}}if(l!=null)a.Rslt={t:"UntF",v:{type:"#Rsl",val:l}};
return{YF:"imageSize",WA:a}};r.Bs.qg=function(s,m,l){if(l==null)l=4;var x=Math.floor(l/3),a=l%3;return{YF:"canvasSize",WA:{classID:"null",Wdth:{t:"UntF",v:{type:"#Pxl",val:s}},Hght:{t:"UntF",v:{type:"#Pxl",val:m}},Hrzn:{t:"enum",v:{HrzL:["Left","Cntr","Rght"][a]}},Vrtc:{t:"enum",v:{VrtL:["Top","Cntr","Btom"][x]}}}}};
r.Bs.prototype.Pk=function(s,m,l,x,a){var P=new bU(0,0,l.e,l.l),o=[11,3],G=l.sz,_=l.e/2,j=l.l/2,U=1,h,F;
if(s.d=="fromAction"){var S=s.qb,X=S.YF,c=S.WA,y=l.e/l.l,O=c.Wdth?c.Wdth.v.val:-1,p=c.Hght?c.Hght.v.val:-1,G=c.Rslt?c.Rslt.v.val:null,D=c.Wdth?c.Wdth.v.type:c.Hght?c.Hght.v.type:-1,f=1,T;
if(D=="#Prc"){if(O!=-1)O=Math.round(l.e*O/100);if(p!=-1)p=Math.round(l.l*p/100)}if(X=="imageSize"){if(c.Intr){if(c.Intr.v.Intp=="Nrst")f=0;
if(c.Intr.v.Intp=="bicubicSharper")f=2;if(O==-1&&p==-1){var I=G/l.sz;O=Math.round(l.e*I);p=Math.round(l.l*I)}if(c.CnsP&&c.CnsP.v){if(O==-1)O=Math.round(p*y);
if(p==-1)p=Math.round(O/y)}}else{if(D=="#Prc")G=Math.round(l.sz*(l.e/O));else if(D==-1)G=Math.round(G);
else throw"e";O=l.e;p=l.l}T={d:"imgsize",nj:O,m9:p,d0:G,RF:f}}else if(X=="canvasSize"){if(O==-1)O=l.e;
if(p==-1)p=l.l;if(c.Rltv&&c.Rltv.v==!0){if(c.Wdth)O+=l.e;if(c.Hght)p+=l.l}var H=c.Vrtc?c.Vrtc.v.VrtL:"Cntr",b=c.Hrzn?c.Hrzn.v.HrzL:"Cntr";
T={d:"canvsize",nj:O,m9:p,Ac:3*["Top","Cntr","Btom"].indexOf(H)+["Left","Cntr","Rght"].indexOf(b)}}else if(X=="revealAll"){T={d:"revealAll"}}else if(X=="trim"){var R={topLeftPixelColor:0,bottomRightPixelColor:1,Trns:2}[c.trimBasedOn.v.trimBasedOn];
if(R==null)throw"e";var W=["Top","Left","Btom","Rght"],J=[!0,!0,!0,!0];for(var C=0;C<4;C++)if(c[W[C]])J[C]=c[W[C]].v;
T={d:"trim",a2S:R,$a:J}}else if(X=="crop"){var u,e,Q,q;if(c.T){var Z=c.T.v,u=Math.round(Z.Left.v.val),e=Math.round(Z.Top.v.val),Q=Math.round(Z.Rght.v.val)-u,q=Math.round(Z.Btom.v.val)-e}else{var E=l.G[l.N[0]],z=E.rect;
z=z.pF(new bU(0,0,l.e,l.l));u=z.x;e=z.y;Q=z.e;q=z.l}T={d:"canvsize",nj:Q,m9:q,X:new fz(u,e),amf:c.Dlt!=null&&c.Dlt.v}}else console.log(S);
if(T)this.Pk(T,m,l,x,a);return}else if(s.d=="imgsize"){P=new bU(0,0,s.nj,s.m9);if(s.d0)G=s.d0;U=s.RF}else if(s.d=="canvsize"){var V=s.Ac!=null?s.Ac:0;
P=new bU(0,0,s.nj,s.m9);var Y=l.e-s.nj,d=l.l-s.m9,w=Math.round(Y/2),A=Math.round(d/2);if(V==1||V==4||V==7)P.x=w;
if(V==2||V==5||V==8)P.x=Y;if(V==3||V==4||V==5)P.y=A;if(V==6||V==7||V==8)P.y=d;if(s.X){P.x=s.X.x;P.y=s.X.y}}else if(s.d=="rot"&&(s.Z+2*Math.PI)%(Math.PI/2)!=0){var $=L.H.$$(P).s,i=new ae;
i.translate(-_,-j);i.rotate(s.Z);i.translate(_,j);L.H.A($,i,$);P=L.H.QS($)}else if(s.d=="rot"&&s.Z!=Math.PI&&s.Z!=-Math.PI){P=new bU(_-l.l/2,j-l.e/2,l.l,l.e);
if((l.e+l.l&1)==1){_=Math.floor(_);j=Math.floor(j);P=new bU(_-Math.floor(l.l/2),j-Math.floor(l.e/2),l.l,l.e);
if((l.e&1)==1&&s.Z!=-Math.PI/2)P.y--;if((l.l&1)==1&&s.Z==-Math.PI/2)P.x--}}else if(s.d=="trim"){o=[11,12,0];
var K=l.cf(),z=new bU(0,0,l.e,l.l);P=L.XA(K,z,s.a2S,s.$a);if(P.Xh())P=z}else if(s.d=="cropbysel"){o=[11,12,1];
P=l.q.rect.clone()}else if(s.d=="revealAll"){o=[11,12,2];P=l.root.E2(l,!0)}var N=s.d=="canvsize"&&s.amf;
if(s.d=="imgsize"||s.d=="rot"||s.d=="scl"||N){var iQ=new ae;if(s.d=="imgsize"){o=[11,10];iQ.scale(s.nj/l.e,s.m9/l.l)}else if(N){}else{iQ.translate(-_,-j);
if(s.d=="rot")iQ.rotate(s.Z);if(s.d=="scl")iQ.scale(s.Z.x,s.Z.y);iQ.translate(_,j);o=s.YH}F=L.V.$D(iQ);
h=this.O0(l,a,!0,F,U,N?P:null)}else if(s.d=="auto-align"){if(l.N.length<2){alert("Select two or more layers.");
return}var jB=[];for(var C=0;C<l.N.length;C++){var E=l.G[l.N[C]];if(!E.Kg()&&E.add.SoLd==null){alert("Unsupported layer selected.");
return}if(E.rect.Xh()){alert("Empty layer selected.");return}jB.push([E.buffer,E.rect])}var k=L.GY.qC(jB,0);
if(k==null){alert("No similarity found.");return}F=k[1];var ab=l.N;l.N=l.N.slice(1);h=this.O0(l,a,!1,k.slice(1),U);
l.N=ab;P=l.root.E2(l,!0);o=[2,10,1]}var f_=new bU(0,0,l.e,l.l);if(!P.Xh()&&(!P.yb(f_)||h!=null)){var fc=new aU(o,this);
fc.data={aqr:l.sz,d0:G,hP:h,fq:F,g7:r.Bs.Jt(l,P,f_,h!=null)};r.Bs.Rt(l,fc.data,P);l.eN(fc);this.mH(fc.data,l)}};
r.Bs.Jt=function(s,m,l,x){if(s.YA.length==0)return null;var a=JSON.stringify(s.YA),P=JSON.parse(a);r.NT.ati(P,m,l,x);
P=JSON.stringify(P);return[a,P]};r.Bs.prototype.O0=function(s,m,l,x,a,P){var o={G:[],mu:null,JR:null};
if(l){for(var C=0;C<s.G.length;C++)o.G.push(C);for(var C=0;C<s.sj.length;C++)o.G.push(-1-C);for(var C=0;
C<s.$_.length;C++)o.G.push(-1e3-C)}else o.G=s.N.slice(0);o.mu=r.Q.CS(s,o.G,!0);r.Q.By(s,m,o.G,o.mu,a,x,null,!0,P);
o.JR=r.Q.CS(s,o.G,!0);return o};r.Bs.prototype.mH=function(s,m){if(s.d0)m.sz=s.d0;if(s.g7)m.YA=JSON.parse(s.g7[1]);
if(s.hP){r.Bs.QX(m,L.V.wU(s.fq));r.Q.uC(m,s.hP.G,s.hP.JR)}r.Bs.w7(m,s)};r.Bs.prototype.V1=function(s,m){if(s.aqr)m.sz=s.aqr;
if(s.g7)m.YA=JSON.parse(s.g7[0]);r.Bs.gY(m,s);if(s.p2)m.t.X.dw(s.p2);m.QY();if(s.hP){var l=L.V.wU(s.fq).clone();
l.ms();r.Bs.QX(m,l);r.Q.uC(m,s.hP.G,s.hP.mu)}};r.Bs.QX=function(s,m){for(var C=0;C<s.G.length;C++){var l=s.G[C];
if(l.add.artb==null)continue;var x=L.H.$$(l.wy()).s;L.H.A(x,m,x);var a=L.H.QS(x);l.Kp(a)}};r.Bs.Eo=function(s){var m=new bU,l=0,x=s.root.children.length;
for(var C=0;C<x;C++){var a=s.root.children[C].i;if(a.add.artb==null)continue;m=m.if(a.wy());l++}var P=new bU(0,0,s.e,s.l);
if(!m.Xh()&&!P.yb(m)&&x==l)return m;return null};r.Bs.ra=function(s){var m=r.Bs.Eo(s);if(m)r.Bs.sc(s,m,!0);
return m};r.Bs.sc=function(s,m,l){var x=s.e,a=s.l,P=m.e,o=m.l,G=m.x==0&&m.y==0;if(G&&x==P&&a==o)return;
s.e=P;s.l=o;var _=[];for(var C=0;C<s.G.length;C++)_.push(C);if(!G)r.PL.Ng(s,_,null,-m.x,-m.y);for(var C=0;
C<s.G.length;C++){s.G[C].sN(s)}s.QY();if(l){var j=s.t.X,U=s.t.O;j.x+=Math.round((m.x+(P-x)/2)*U);j.y+=Math.round((m.y+(o-a)/2)*U)}else s.t.X.Qk(0,0);
if(s.q)s.q.rect.offset(-m.x,-m.y);var S=s.Ls();for(var X=0;X<S[0].length;X++)if(S[1][X]==-1){var c=s.ff[X];
c[1]-=c[0]==0?m.x:m.y}for(var C=0;C<s.$_.length;C++)s.$_[C].rect.offset(-m.x,-m.y)};r.Bs.prototype.MZ=function(s,m,l,x,a){if(s.Iu=="commit"){this.wV(l,a);
this.disable(l,m,null,x)}else if(s.Iu=="cancel"){this.disable(l,m,null,x)}var P=null,o=new bU(0,0,l.e,l.l),G=this.MX.ZB;
if(s.Iu=="config"){this.MX=s.MX;G=this.MX.ZB;if(l==null||!s.afu)return;P=o;if(G.gN==1){var _=G.x/G.y;
if(P.e/_<P.l)P.l=Math.round(P.e/_);else P.e=Math.round(P.l*_)}if(G.gN==2){P.e=G.x;P.l=G.y}P.x=Math.round((l.e-P.e)/2);
P.y=Math.round((l.l-P.l)/2)}if(s.Iu=="straighten"){alert("Draw a line in the image.");this.gi=!0}if(s.Iu=="cropby"){if(l==null)return;
var j=s.a0H,P;if(j==0)P=l.root.E2(l,!0);if(j==1){if(l.N.length==0)alert("No layer is selected.");else{var U=l.root.Wp(l.N[0]);
P=U.E2(l,!0)}}if(j==2){if(l.N.length==0)alert("No layer is selected.");else{P=L.XA(l.cf(),o,0);if(P.Xh())P=o.clone()}}if(j==3){if(l.q!=null)P=l.q.rect;
else alert("There is no selection.")}if(j==4){P=new bU(0,0,l.e,l.l)}}if(P&&P.Xh())P=null;if(P!=null){this.Hy=this.nf(P,G.gN!=0);
this.Hy.Yk(l,a);this.u3(m,v.E.g,{d:v.J.AL,c:this.id,Tb:!0})}};r.Bs.prototype.wV=function(s,m){var l=this.Hy.D7(),x=L.H.QS(l),a=this.asN(s,l),P=!1,o=this.MX.ZB,G=this.MX.sc,_=o.x,j=o.y,X;
if(this.id==r.wX&&o.gN==2&&a.k()!=_*j){a=new bU(a.x,a.y,_,j);P=!0}var U=L.V.CX(l,a);U=L.V.ms(U);var S=L.V.Yj(U),c=Math.atan2(U[3],U[0]);
if(Math.abs(c)>1e-9||!S||P||G)X=this.O0(s,m,!0,U,1,x);var y=new aU(this.name,this),O=new bU(0,0,s.e,s.l);
y.data={hP:X,fq:U,p2:s.t.X.clone(),g7:r.Bs.Jt(s,a,O,!1)};r.Bs.Rt(s,y.data,a);s.eN(y);this.mH(y.data,s);
this.track(r.Bs.Zv([x.x,x.y,x.e,x.l],null,G))};r.Bs.Rt=function(s,m,l){if(l==null)return;m.sW=new bU(0,0,s.e,s.l);
m.Q6=l};r.Bs.w7=function(s,m){if(m.Q6==null)return;r.Bs.sc(s,m.Q6)};r.Bs.gY=function(s,m){if(m.Q6==null)return;
var l=m.sW.clone();l.offset(-m.Q6.x,-m.Q6.y);r.Bs.sc(s,l)};r.Bs.prototype.asN=function(s,m){var l=L.V.CX(m),x=L.V.Yj(l),a=L.V.wU(l),P=a.sI,o=a.bW,G=Math.atan2(a.S,a.lz);
a.rotate(G);var _=new bU(P,o,a.lz,a.Am);if(!x){function j(T,C,I){var H=T[C]-T[I],b=T[C+1]-T[I+1];return Math.sqrt(H*H+b*b)}var U=j(m,0,2),S=j(m,4,6),X=Math.max(U,S),c=j(m,2,4),y=j(m,6,0),O=Math.max(c,y),p=r.Bs.am_(m,s.e/2,s.l/2),D,f;
if(isNaN(p)||p==Infinity||p==-Infinity||Math.min(p,1/p)<.1)p=(U+S)/(c+y);if(X/O>p){D=X*1;f=D/p}else{f=O*1;
D=f*p}_.e=D;_.l=f}_.x=Math.round(_.x);_.y=Math.round(_.y);_.e=Math.round(_.e);_.l=Math.round(_.l);return _};
r.Bs.am_=function(s,m,l){var x=s[0]-m,a=s[1]-l,P=s[2]-m,o=s[3]-l,G=s[6]-m,_=s[7]-l,j=s[4]-m,U=s[5]-l,S=((a-U)*G-(x-j)*_+x*U-a*j)/((o-U)*G-(P-j)*_+P*U-o*j),X=((a-U)*P-(x-j)*o+x*U-a*j)/((_-U)*P-(G-j)*o+G*U-_*j),c=-((X*_-a)*(S*o-a)+(X*G-x)*(S*P-x))/((X-1)*(S-1));
function y(p){return p*p}var O=Math.sqrt((y(S-1)+y(S*o-a)/c+y(S*P-x)/c)/(y(X-1)+y(X*_-a)/c+y(X*G-x)/c));
if(S==1&&X==1)O=Math.sqrt((y(o-a)+y(P-x))/(y(_-a)+y(G-x)));return O};r.Bs.prototype.disable=function(s,m,l,x){if(s==null)return;
if(this.Hy)this.Hy.clear(s);this.Hy=null;this.u3(m,v.E.g,{d:v.J.AL,c:this.id,Tb:!1})};r.Bs.prototype.u3=function(s,m,l,x){var a=new h9(m,!0);
a.data=l;if(x)a.c=x;s.Y(a)};r.$b=function(){r.Bs.call(this,[10,2],r.wX,"tools/rcrop")};r.$b.prototype=new r.Bs;
r.gS=function(){r.Bs.call(this,[10,39],r.K5,"tools/pcrop")};r.gS.prototype=new r.Bs;r.s6=function(){r.fZ.call(this,[10,21],r.fC,"tools/dodge");
this.Wh="dodge"};r.s6.prototype=new r.fZ;r.s6.prototype.s1=function(s,m,l,x,a){this.GU(s,l,x,a,this.fG.expo/Math.PI);
if(this.kW==null)return;this.kl(s)};r.s6.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);if(this.fN)this.Ns(s,l,a);
if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.h7=function(){r.fZ.call(this,[10,3],r.kB,"tools/eraser");
this.Wh="erase"};r.h7.prototype=new r.fZ;r.h7.prototype.s1=function(s,m,l,x,a){this.GU(s,l,x,a,this.fG.flow);
if(this.kW==null)return;this.kl(s)};r.h7.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);if(this.fN)this.Ns(s,l,a);
if(this.kW==null)return;if(!a.t0)return;var P=this.V6(s,l,x,a);this.kl(s)};r.IA=function(){r.fZ.call(this,[10,45],r.akV,"tools/beraser");
this.Wh="ierase"};r.IA.prototype=new r.fZ;r.IA.prototype.s1=function(s,m,l,x,a){if(this.bm(x,m,a))return;
this.GU(s,l,x,a,this.fG.flow);if(this.kW==null)return;this.kl(s)};r.IA.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);
if(this.fN)this.Ns(s,l,a);if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.Yh=function(){r.bJ.call(this,[10,15],r.r$,"tools/rselect");
this.Ke="crosshair"};r.Yh.prototype=new r.bJ;r.Yh.prototype.xi=function(s,m,l,x){if(!x.t0||!this.bU)return;
var a=this.E2(s,l,!0);s.D.NJ=L.H.$$(a);s.R8=!0;r.xO.G$(x,a,s,m)};r.Yh.prototype.tU=function(s,m,l,x){s.D.NJ=null;
s.D.va=[];s.R8=!0;this.finish(s,m,l,x)};r.Yh.prototype.getSelection=function(s,m,l,x){if(this.GS.yb(this.BM)||!this.bU)return null;
var a=this.E2(s,l,!0);if(a.Xh())return null;return r.bJ.or("Rctn",a,this.fG.anta)};r.Gu=function(){r.bJ.call(this,[10,4],r.ag1,"tools/eselect");
this.Ke="crosshair"};r.Gu.prototype=new r.bJ;r.Gu.prototype.xi=function(s,m,l,x){if(!x.t0||!this.bU)return;
var a=this.E2(s,l);s.D.NJ=r.Gu._T(a);s.R8=!0;r.xO.G$(x,a,s,m)};r.Gu.prototype.tU=function(s,m,l,x){s.D.NJ=null;
s.D.va=[];s.R8=!0;this.finish(s,m,l,x)};r.Gu.prototype.getSelection=function(s,m,l,x){if(this.GS.yb(this.BM)||!this.bU)return null;
var a=this.E2(s,l);if(!a.Hx(new bU(0,0,s.e,s.l)))return null;return r.bJ.or("Elps",a,this.fG.anta)};
r.Gu._T=function(s){var m=s.x,l=s.y,x=s.x+s.e,a=s.y+s.l,P=(m+x)/2,o=(l+a)/2,G=(m-x)/2,_=(l-a)/2,j=.5522848,U={s:[P,o-_],r:["M","C","C","C","C"]};
U.s.push(P+j*G,o-_,P+G,o-j*_,P+G,o);U.s.push(P+G,o+j*_,P+j*G,o+_,P,o+_);U.s.push(P-j*G,o+_,P-G,o+j*_,P-G,o);
U.s.push(P-G,o-j*_,P-j*G,o-_,P,o-_);return U};r.n4=function(s){r.xO.call(this,[10,5],s?r.e5:r.ev,"tools/eyedropper");
this.KL=null;this.j1=0;this.XN=null;this.dZ=1;this.Rr=2;this.aqq=!0;this.PS=!1};r.n4.prototype=new r.xO;
r.n4.prototype.Xg=function(s){return s.t0};r.n4.prototype.Pk=function(s,m,l,x,a){if(s.d=="pickhere")this.RR(l,m,a,null,s.aep);
if(s.d=="supertool")this.KL=s.c};r.n4.prototype.s1=function(s,m,l,x,a){var P=this.KL;if(P){P.s1(s,m,l,x,a);
return}this.j1=l.zU;this.XN=a;var o=this.RR(s,null,l,x,a);this.jQ(s,m,o,a)};r.n4.prototype.zk=function(s,m,l,x,a){var P=this.KL;
if(P){P.zk(s,m,l,x,a);return}var o=this.XN;if(o){var G=a.x-o.x,_=a.y-o.y,j=1,U=new fz(o.x+G*j,o.y+_*j),S=this.RR(s,null,l,x,U);
this.jQ(s,m,S,U,new fz(G*(1-j),_*(1-j)))}};r.n4.prototype.jQ=function(s,m,l,x,a){var P=this.aqq,o=this.PS,j=12,U=11;
if(s.t.O>4)o=!1;if(!o&&!P)return;if(a==null)a=new fz(0,0);var G=new bU(0,0,s.e,s.l),_=s.cf(),S=(j*2+1)*U,X=new fz(S/2,S/2),c=new bU(0,0,S,S),y=L.B(c.k()*4),O=s.t.cr(x.x,x.y),p=Math.floor(O.x),D=Math.floor(O.y),f=new ae;
f.scale(1/U,1/U);f.translate(p-j,D-j);if(o)L.scale.c1(_,G,f,y,c);var T=(j-3.4)*U,I=(j-1.7)*U,H=j*U;for(var b=0;
b<S;b++)for(var R=0;R<S;R++){var W=fz.rv(new fz(R,b),X);if(W>T){if(P){var J=Math.max(0,T-W+1),u=(b*S+R)*4,e=y[u+3]<<24|y[u]<<16|y[u+1]<<8|y[u+2],Q=255<<24|(b<H+U*.5?l:this.j1);
if(W>I){J=Math.max(0,I-W+1);e=Q;Q=4286611584}else if(!o){e=Q&16777215}y[u+0]=(1-J)*(Q>>>16&255)+J*(e>>>16&255);
y[u+1]=(1-J)*(Q>>>8&255)+J*(e>>>8&255);y[u+2]=(1-J)*(Q>>>0&255)+J*(e>>>0&255);y[u+3]=(1-J)*(Q>>>24&255)+J*(e>>>24&255)}if(W>H){y[(b*S+R)*4+3]=Math.max(0,255*(H-W+1))}}}function q(C){var F=C<<2;
y[F]=0;y[F+1]=0;y[F+2]=0;y[F+3]=255}function Z(C){var F=C<<2;y[F]=255;y[F+1]=255;y[F+2]=255;y[F+3]=255}var E=this.dZ*U+2,z=S-E>>>1,V=z+E-1;
if(o&&E<S)for(var C=0;C<E;C++){var Y=z*S+z+C,d=V*S+z+C,w=(z+C)*S+z,A=(z+C)*S+V;q(Y);q(d);q(w);q(A);if(C!=0&&C!=E-1){Z(Y+S);
Z(d-S);Z(w+1);Z(A-1)}}if(!o)for(var C=-9;C<=9;C++){if(-3<C&&C<3)continue;var $=S>>>1,R=$*S+$+C,b=($+C)*S+$;
Z(R-S);q(R);Z(R+S);Z(b-1);q(b);Z(b+1)}var i=r.xO.Fi(0,0,["#"+L.eZ(l),"RGB "+(l>>>16&255)+","+(l>>>8&255)+","+(l>>>0&255)]),G=i[1];
G.y=0;G.x=S-G.e>>>1;L.yx(i[0],G,y,c);var K={CI:y,Bv:c,R_:new fz(X.x+a.x,X.y+a.y)},h=new h9(v.E.g,!0);
h.data={d:v.J.GL,Cr:K};m.Y(h)};r.n4.prototype.I6=function(s,m,l,x,a,P){this.RR(s,m,l,x,a);var o=this.KL;
if(o){o.I6(s,m,l,x,a);return}if(this.XN){this.XN=null;if(P)this.RR(s,m,l,x,a,this.j1);var G=new h9(v.E.g,!0);
G.data={d:v.J.GL,Cr:"default"};m.Y(G)}};r.n4.prototype.RR=function(s,m,l,x,a,P){if(P==null)P=r.n4.xl(s,a,this.dZ,this.Rr);
var o=new h9(v.E.g);o.data={d:v.J.xw,AV:gN.WV,R7:x&&x.$(dV.Il)?1:0,Z:P};if(m)m.Y(o);return P};r.n4.xl=function(s,m,l,x){if(x==null)x=2;
var a=s.t.cr(m.x,m.y),P,o,G=s.N.length==1&&s.G[s.N[0]].Ar>0,_=s.Be.length!=0,I=0,H=0,b=0;if(G||_){var j;
if(_)j=s.$_[s.Be[0]];else{var U=s.G[s.N[0]];j=U.Ar==1?U.SE():U.aa9()}o=j.E2();if(!o.j_(a))return j.color==0?0:16777215;
P=L.B(o.k()*4);P.fill(255);var S=j.$k();L.s2(S,P)}else if(x==0&&s.N.length!=0){var U=s.G[s.N[0]];P=U.buffer;
o=U.rect}else{P=x==2?s.cf():s.cf(s.N[0]);o=new bU(0,0,s.e,s.l)}var X=Math.floor(a.x)-o.x,c=Math.floor(a.y)-o.y,y=(l-1)/2,O=Math.max(0,X-y),p=Math.max(0,c-y),D=Math.min(o.e,X+y+1),f=Math.min(o.l,c+y+1),T=(D-O)*(f-p);
for(var X=O;X<D;X++)for(var c=p;c<f;c++){var C=4*(c*o.e+X);I+=P[C];H+=P[C+1];b+=P[C+2]}I=Math.round(I/T);
H=Math.round(H/T);b=Math.round(b/T);return I<<16|H<<8|b};r.n4.prototype.MZ=function(s){var m=s.fG;this.dZ=[1,3,5,11,31][m[0]];
this.Rr=m[1];this.aqq=m[2];this.PS=m[3]};r.W0=function(){r.xO.call(this,[10,6],r.a6u,"tools/gradient");
this.fG={K:JSON.parse(i4.Cw.OD).v,tI:"Lnr",vF:!1,a0j:!1,a9Y:"norm",Dv:1};this.rc=!1;this.W2=null};r.W0.prototype=new r.xO;
r.W0.prototype.enable=function(s,m,l,x){var a=new h9(v.E.g,!0);a.data={d:v.J.GL,Cr:"default"};m.Y(a)};
r.W0.prototype.MZ=function(s){this.fG=s.AV};r.W0.prototype.s1=function(s,m,l,x,a){if(!s.z6())return;
this.W2=s.t.cr(a.x,a.y);this.W2=r.PL.ZX(s,this.W2,l);this.rc=!0};r.W0.prototype.zk=function(s,m,l,x,a){if(!this.rc)return;
var P=s.t.cr(a.x,a.y);P=r.PL.ZX(s,P,l);if(x.$(dV.Ht))P=r.W0.m4(this.W2,P);s.D.NJ={s:[this.W2.x,this.W2.y,P.x,P.y],r:["M","L"]};
s.D.Sk=[this.W2.x,this.W2.y,P.x,P.y];s.R8=!0};r.W0.prototype.I6=function(s,m,l,x,a){if(!this.rc)return;
var P=s.G[s.N[0]],o=s.t.cr(a.x,a.y);o=r.PL.ZX(s,o,l);if(x.$(dV.Ht))o=r.W0.m4(this.W2,o);var G=o.fy(this.W2),_=fz.Wm(this.W2,o,.5),j=Math.atan2(G.y,G.x),U=fz.rv(this.W2,o),S=Math.sin(j),X=Math.cos(j);
if(U>2){var c;if(s.q)c=s.q.rect;else c=new bU(0,0,s.e,s.l);var y=L.B(c.k()*4),O=this.fG,p=O.tI;if(p!="Lnr"){U*=2;
_=this.W2}L.K.Wv(O.K,y,c,[X*1/U,S*1/U,-S*1/U,X*1/U],_.x,_.y,O.vF,i4.K.types.indexOf(p),l.zU,l.Pi,null,O.a0j);
var D=Math.round(O.Dv*256),f=y.length;if(D!=256)for(var C=0;C<f;C+=4)y[C+3]=y[C+3]*D>>>8;var T=new h9(v.E.u);
T.c=r.kB;T.data={d:"fillBMP",Xx:y,My:O.a9Y,YH:this.name};m.Y(T)}s.D.NJ=null;s.D.Sk=[];s.R8=!0;this.rc=!1};
r.W0.m4=function(s,m){if(s.yb(m))return s;var l=m.x-s.x,x=m.y-s.y,a=Math.abs(l),P=Math.abs(x);if(a>P)P=a/2>P?0:a;
if(P>a)a=P/2>a?0:P;a=l>0?a:-a;P=x>0?P:-P;var o=Math.sqrt(l*l+x*x)/Math.sqrt(a*a+P*P);return new fz(s.x+a*o,s.y+P*o)};
r.W0.jj=function(s,m,l,x,a,P,o){if(o==null)o=document.createElement("canvas");var G=o.getContext("2d");
o.width=m;o.height=l;var _=new bU(0,0,m,l),j=L.B(m*l*4);L.Oy(j,m,l,4);var U=Math.sin(x),S=Math.cos(x),X=L.B(m*l*4);
L.K.Wv(s,X,_,[S*1/m,U*1/m,-U*1/l,S*1/l],m/2,l/2,!1,0,a,P);L.a.$P("norm",X,_,j,_,_,1);var c=G.getImageData(0,0,m,l);
L.qv(j,c.data);G.putImageData(c,0,0);return o.toDataURL()};r.W0.aae=function(s,m,l){var x=JSON.parse(JSON.stringify(s));
if(x.Clrs)for(var C=0;C<x.Clrs.v.length;C++){var a=x.Clrs.v[C].v,P=a.Type.v.Clry;if(P=="UsrS")continue;
var o=P=="FrgC"?m:l;a.Type.v.Clry="UsrS";a.Clr={t:"Objc",v:L.K.gc({o:o>>16&255,z:o>>8&255,S:o&255})}}return x};
r.Bj=function(){r.xO.call(this,[10,7],r.Ex,"tools/hand");this.XN=new fz(0,0);this.EX=null;this.W_=0};
r.Bj.prototype=new r.xO;r.Bj.prototype.Pk=function(s,m,l,x,a){var P=s.d;if(P=="setcls"){l.t.OL=s.OL;
l.R8=!0;l.Gq=!0}if(P=="scroll"&&!x.$(dV.Il)){if(x.$(dV.bt))r.Bj.CV(l,l.t.X.x-s.Fr.y,l.t.X.y-s.Fr.x);
else r.Bj.CV(l,l.t.X.x-s.Fr.x,l.t.X.y-s.Fr.y)}};r.Bj.prototype.enable=function(s,m,l,x){this.EX=null;
var a=new h9(v.E.g,!0);a.data={d:v.J.GL,Cr:"grab"};m.Y(a);if(s&&Date.now()-this.W_<300){a.type=v.E.u;
a.c=r.Zq;a.data={d:"adapt",Z:"fitscr"};m.Y(a)}this.W_=Date.now()};r.Bj.prototype.s1=function(s,m,l,x,a){this.EX=s.t.X.clone();
this.XN.Qk(a.x,a.y)};r.Bj.prototype.zk=function(s,m,l,x,a){if(!a.t0)return;if(this.EX==null)this.s1(s,m,l,x,a);
r.Bj.CV(s,this.EX.x+(a.x-this.XN.x),this.EX.y+(a.y-this.XN.y))};r.Bj.prototype.I6=function(s,m,l,x,a){this.EX=null};
r.Bj.CV=function(s,m,l){var x=s.t.O,a=s.t.tH,P=a.e,o=a.l,G=s.e*x,_=s.l*x,j=G<P&&_<o,U=P/2+G/2-64,S=o/2+_/2-64;
s.t.X.Qk(Math.max(-U,Math.min(U,m)),Math.max(-S,Math.min(S,l)));s.Gq=!0};r.az=function(){r.xO.call(this,[10,47],r.akG,"tools/rview");
this.XN=new fz(0,0);this.IF=null;this.amX=null;this.W_=0};r.az.prototype=new r.xO;r.az.prototype.enable=function(s,m,l,x){this.EX=null;
var a=new h9(v.E.g,!0);a.data={d:v.J.GL,Cr:"grab"};m.Y(a);if(s&&Date.now()-this.W_<300&&s.t.xe!=0){s.t.xe=0;
s.R8=!0}this.W_=Date.now();if(s)this.W9(s,m)};r.az.prototype.disable=function(s,m,l,x,a){if(s)this.W9(s,m)};
r.az.prototype.qY=function(s,m,l,x){if(s)this.W9(s,m)};r.az.prototype.s1=function(s,m,l,x,a){this.XN.Qk(a.x,a.y);
var P=s.t;this.IF=P.cr(P.tH.e/2,P.tH.l/2);this.amX=P.oX()};r.az.prototype.zk=function(s,m,l,x,a){if(!a.t0)return;
var P=s.t,o=this.IF,G=this.XN,_=new fz(P.tH.e/2,P.tH.l/2),j=Math.atan2(a.y-_.y,a.x-_.x),U=Math.atan2(G.y-_.y,G.x-_.x);
this.JI(s,m,this.amX.clone(),o,j-U)};r.az.prototype.MZ=function(s,m,l,x){this.JI(l,m,null,null,s.yu-l.t.xe);
l.t.xe=s.yu};r.az.prototype.JI=function(s,m,l,x,a){var P=s.t;if(l==null)l=P.oX();if(x==null)x=P.cr(P.tH.e/2,P.tH.l/2);
l.translate(-x.x,-x.y);l.rotate(a);l.translate(x.x,x.y);P.XJ(l);if(s.e*P.O<P.tH.e&&s.l*P.O<P.tH.l)P.X.Qk(0,0);
s.R8=!0;this.W9(s,m)};r.az.prototype.W9=function(s,m){var l=new h9(v.E.g,!0);l.data={d:v.J.AL,c:this.id,yu:s.t.xe};
m.Y(l)};r.Na=function(){r.fr.call(this,[10,25],r.Fx,"tools/hbrush")};r.Na.prototype=new r.fr("");r.Na.prototype.I6=function(s,m,l,x,a){if(this.kW==null)return;
this.JC(s,"heal",this.kW.oo(),this.kW.E2(),this.kW.pJ());this.F(s,this.kW.pJ());r.fZ.prototype.I6.call(this,s,m,l,x,a);
if(!this.fG.algnd)this.X=null};r.CD=function(s){r.xO.call(this,s?["VAR0 VAR1",[22,4,1],[10,8]]:[10,8],s?r.Yg:r.sX,s?"tools/vtype":"tools/htype");
this.oH=[];this.u0=null;this.pX=null;this.caller=null;this.nK=1;this.fE=null;this.aqO=0;this.Rf=0;this.a45=null;
this.Uj=null;this.Hp=null;this.sl=null;this.Fw=null;this.Zl=null;this.asr=null;this.b7=null;this.Hy=null;
this.ya=null;this.asc=null;this.JA=!1;this.cN=!1;this.H3=!1;this.xt=null;this.Gc=null;this.afL=null;
this.uV=!1;this.V5=!1;this.Y9=-1;this.Gr=-1;this.ZL=document.createElement("textarea");this.ZL.setAttribute("style","font-family:Arial; font-size:14px; z-index:-1; "+" position:absolute; top:0px; left:0px; pointer-events: none; opacity:0; width:"+(window.innerWidth-10)+"px; height:150px;");
this.ZL.addEventListener("input",this.ZQ.bind(this),!1);this.ZL.addEventListener("keydown",this.a1R.bind(this),!1);
this.ZL.addEventListener("keyup",this.a5W.bind(this),!1);var m=function(l){l.stopPropagation()};this.ZL.addEventListener("keydown",m,!1);
this.ZL.addEventListener("keyup",m,!1)};r.CD.prototype=new r.xO;r.CD.prototype.Xg=function(s){return s.t0};
r.CD.prototype.nQ=function(s,m,l,x){if(this.Hp!=null||this.id==r.Yg)return;this.caller=m;this.u0=s;var a=this.xy(s);
if(a.length!=0){var P=null,o=[],G=[];for(var C=0;C<a.length;C++){var _=s.G[a[C]],j=_.add.TySh,U=0,S=ex.Ep(j.x5).length-2,X=ex.f9(j.x5,U,S);
ex.Nn(X,r.Q.LL(j.A));if(X.m$.Font!=null)X.m$.Font=X.dN[X.m$.Font].Name;P=X.dN;o.push(X.m$);G.push(X.AO)}var X={dN:P,m$:ex.fH(o),AO:ex.fH(G)};
if(X.m$.Font!=null)ex.Cl(X,X.m$.Font);this.b3(m,X,j)}};r.CD.prototype.xy=function(s){var m=[];for(var C=0;
C<s.N.length;C++)if(s.G[s.N[C]]&&s.G[s.N[C]].add.TySh)m.push(s.N[C]);return m};r.CD.prototype.Pk=function(s,m,l,x,a){var P=s.d=="insertGlyph";
if((P||s.d=="insertText")&&this.Hp){var o=P?String.fromCharCode(65533):s.Z,G=this.ZL,_=G.value,j=G.selectionStart,U=G.selectionEnd;
G.value=_.slice(0,j)+o+_.slice(U);G.selectionStart=G.selectionEnd=j+o.length;this.ZQ(null,P?s.Z:null);
G.focus()}if(s.d=="updateStyles"){if(this.Hp==null){var S=this.xy(l),X=!1;if(S.length!=0){this.e0(l,m,a,S);
for(var C=0;C<S.length;C++){var c=l.G[S[C]],y=c.add.TySh;ex.eB(y,this.nK);this.Hp=c;var O=ex.Ep(y.x5);
this.Y9=0;this.Gr=O.length-1;ex.j3(y.x5,this.Y9,this.Gr,this.SL(a,y));var p=this.Bq(l,a);if(p==!1)X=!0}if(X){this.uV=!0;
return}this.uE(l,m)}return}this._n(a)}if(s.d.startsWith("warp")){var D=this.V5;if(s.d=="warp"||s.d=="warpCancel"){if(this.Hp==null)return;
if(s.d=="warp")this.Hp.add.TySh.hG=s.Lv;else this.Hp.add.TySh.hG=this.asr;var l=this.u0;this.Bq(l,a);
if(!D)this.Px(l)}if(s.d!="warp")this.ZL.focus();if((s.d=="warpConfirm"||s.d=="warpCancel")&&D){this.V5=!1;
if(s.d=="warpConfirm")this.uE(l,m);else this.uj(l,m)}}if(s.d=="editCurr"){if(a.hu!=r.sX){this.fE=a.hu;
var f=new h9(v.E.g,!0);f.data={d:v.J._I,c:r.sX};m.Y(f)}if(this.Hp!=null)this.disable(l,m,a,x);this.u0=l;
this.pX=a;this.caller=m;this.e0(l,m,a,[s.m6]);var O=ex.Ep(this.Hp.add.TySh.x5);this.Y9=0;this.Gr=O.length-1;
this.Px(l);this.Q8();this.ZL.focus()}if(s.d=="switchPntPrgr"){if(this.Hp)return;var c=l.G[l.N[0]],y=c.add.TySh,T=y.A.LL(),I=JSON.parse(JSON.stringify(y.x5)),H=ex.$i(I),b=H==1?ex.vc(I):[0,0,Math.round(c.rect.e*1.05/T),Math.round(c.rect.l*1.25/T)],R=ex.f9(I,0,0),W=R.dN[R.m$.Font].Name,J=a.dC.JD(W),u=[0,b[2],b[2]/2][R.AO.Justification%3],e=J?hJ.w5(J,W,R.m$):R.m$.FontSize*.8;
ex.c8(I,1-H);if(H==0){u=-u;e=-e;ex.rI(I,[0,0,b[2],b[3]])}var Q=new ae(1,0,0,1,u,e);Q.concat(y.A);this.Pk({eu:l.N[0],d:"newED",ld:I,A:Q,ar$:[16,3,H==1?0:1]},m,l,x,a)}if(s.d=="newED"){var c=l.G[s.eu],y=c.add.TySh,q=this.rw(l,[s.eu]);
y.x5=s.ld;if(s.A)y.A=s.A;var Z=new hJ(y.x5,a.dC),E=b3.in(Z,y);c.rect=E.Bv;c.buffer=E.du;c.F();l.F();
var z=new aU(s.ar$?s.ar$:this.name,this);z.data={Cj:q,hA:this.rw(l,[s.eu])};l.eN(z)}if(s.d=="fromAction"){var V=s.qb.WA.Usng.v,Y=V.TxtC.v,d=[];
for(var C=0;C<2;C++){var w=Y[C==0?"Hrzn":"Vrtc"].v,o=w.val;if(w.type=="#Prc")o=(C==0?l.e:l.l)*(o/100);
d[C]=o}this.Ct(l,m,a,x,l.t.fU(d[0],d[1]));var c=l.G[l.N[0]],y=c.add.TySh,A=y.x5,_=ex.Ep(A);ex.eU(A,0,_.length-1);
ex.A6(A,0,V.Txt.v.replace(/\r/g,"\n"));_=ex.Ep(A);for(var H=0;H<2;H++){var $=V[H==0?"Txtt":"paragraphStyleRange"].v;
for(var C=0;C<$.length;C++){var i=$[C].v,j=i.From.v,U=Math.min(i.T.v-1,_.length-1);i=i[H==0?"TxtS":"paragraphStyle"].v;
var K=ex.f9(A,j,U),h=H==0?K.m$:K.AO;for(var F in i){var N=i[F].v;if(F=="Sz")h.FontSize=Math.round(N.val);
else if(F=="fontPostScriptName")ex.Cl(K,N);else if(F=="Algn")h.Justification={Left:1,Cntr:2}[N.Alg];
else if(F=="leading")h.Leading=i[F].v.val;else if(F=="baselineShift")h.BaselineShift=i[F].v.val;else if(F=="autoLeading")h.AutoLeading=i[F].v;
else if(F=="syntheticBold")h.FauxBold=i[F].v;else if(F=="syntheticItalic")h.FauxItalic=i[F].v;else if(F=="Trck")h.Tracking=i[F].v;
else if(F=="verticalScale")h.VerticalScale=i[F].v/100;else if(F=="horizontalScale")h.HorizontalScale=i[F].v/100;
else if(F=="Clr")h.FillColor={Type:1,Values:[1,N.Rd.v/255,N.Grn.v/255,N.Bl.v/255]}}ex.j3(A,j,U,K)}}var Z=new hJ(y.x5,a.dC),E=b3.in(Z,y);
c.rect=E.Bv;c.buffer=E.du;c.F();l.F();this.uE(l,m)}};r.CD.prototype._n=function(s){var m=Math.min(this.Y9,this.Gr),l=Math.max(this.Y9,this.Gr),x=this.Hp.add.TySh;
ex.eB(x,this.nK);ex.j3(x.x5,m,l-1,this.SL(s,x));var a=this.u0,P=this.Bq(a,s);if(P)this.Px(a);if(document.activeElement.tagName.toLowerCase()!="input")this.ZL.focus()};
r.CD.prototype.sO=function(s){return this.oH.indexOf(s)!=-1};r.CD.prototype.enable=function(s,m,l,x){var a=this.ZL;
m.m.appendChild(a);this.b7="default";this.jQ(m)};r.CD.prototype.hl=function(){return this.Hp!=null};
r.CD.tS=function(s,m){for(var C=s.G.length-1;C>=0;C--){var l=s.G[C];if(l.add.TySh&&l.rect.j_(m)&&s.W1(C)){var x=l.Xz(2)||l.Xz(31);
return x?-2:C}}return-1};r.CD.prototype.s1=function(s,m,l,x,a){this.u0=s;this.pX=l;this.caller=m;var P=s.t.cr(a.x,a.y),o=this.Hp==null;
if(o){var G=r.CD.tS(s,P);if(G==-2){alert(iX.get([6,57,0]));return}if(G>=0&&!x.$(dV.Ht)){if(!b3.zm(s.G[G].add.TySh,l.dC,m)){alert("Fonts not loaded yet");
return}this.e0(s,m,l,[G])}else{this.H3=!0;this.xt=a;return}}var _=o?-1:ex.$i(this.Hp.add.TySh.x5),j=this.ya?this.ya:this.Hy;
if(j&&j.s1(s,l,x,P,null,null,a)&&L.Lv.AY(this.Hp.add.TySh.hG)||!o&&L.H.r1(P,this.Hp.rect)>20/s.t.O&&(_==0||_==1)){this.JA=!0;
this.Gc=P;this.afL=this.Hp.add.TySh.A.clone();if(this.Y9==-1&&this.Gr==-1)this.Y9=this.Gr=this.YZ(P)}else{if(this.Fw==null){alert("Fonts not loaded yet");
return}this.cN=!0;this.Y9=this.Gr=this.YZ(P);var U=Date.now();if(U-this.aqO>300)this.Rf=0;this.Rf++;
this.aqO=U;if(this.Rf==2)this.a47();if(this.Rf==3)this.a08();if(this.Rf>1){this.cN=!1}}this.Q8();this.Px(s)};
r.CD.prototype.e0=function(s,m,l,x){var a=s.G[x[0]];this.Hp=a;this.u3(m,v.E.g,{d:v.J.AL,c:this.id,Iu:"showactive"});
this.sl=x;s.N=x.slice(0);s.dH();s.jn=!0;this.Zl=this.rw(s,x);this.kF(a.add.TySh);this.Bq(s,l)};r.CD.prototype.kF=function(s){if(ex.$i(s.x5)!=1)return;
var m=ex.vc(s.x5);m=new bU(0,0,m[2]-m[0],m[3]-m[1]);var l=[m.x,m.y,m.x+m.e,m.y,m.x+m.e,m.y+m.l,m.x,m.y+m.l];
L.H.A(l,s.A,l);this.Hy=new hF(l,!1,!1,!1,!0)};r.CD.prototype.a47=function(){var s=ex.Ep(this.Hp.add.TySh.x5);
this.Y9=this.bX(s,this.Y9);this.Gr=this.ib(s,this.Y9)};r.CD.prototype.bX=function(s,m){var l=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",x=[];
for(var C=0;C<l.length;C++)x.push(l.charAt(C));var a=x.indexOf(s[m])==-1?!0:!1;for(var C=m-1;C>=0;C--)if(x.indexOf(s.charAt(C))!=-1==a)return C+1;
return 0};r.CD.prototype.ib=function(s,m){var l=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",x=[];for(var C=0;
C<l.length;C++)x.push(l.charAt(C));var a=x.indexOf(s[m])==-1?!0:!1;for(var C=m+1;C<s.length;C++)if(x.indexOf(s.charAt(C))!=-1==a)return C;
return s.length-1};r.CD.prototype.a08=function(){var s=this.Fw.a2c(this.Y9);this.Y9=s[0];this.Gr=s[1]};
r.CD.prototype.jQ=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.GL,Cr:this.b7};s.Y(m)};r.CD.prototype.zk=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y),o=this.Hp;
if(!a.t0){var G="default",_=this.Hy,j=this.ya?this.ya:_;if(j&&L.Lv.AY(o.add.TySh.hG)){var U=j.l8(P,s.t.O,null,a);
if(U)G=U;else if(j==_&&_.w2(P))G="text"}else if(o&&L.H.r1(P,o.rect)>20/s.t.O)G="move";else if(r.CD.tS(s,P)>=0)G="text";
if(G!=this.b7){this.b7=G;this.jQ(m)}}var S=this.xt;if(this.H3&&Math.min(a.x-S.x,a.y-S.y)>4/s.t.O){this.H3=!1;
this.Ct(s,m,l,x,a);o=this.Hp;this.JA=!0;this.Hy=new hF(null,!1,!1,!1,!0);var X=s.t.cr(this.xt.x,this.xt.y);
X.x=Math.round(X.x);X.y=Math.round(X.y);this.Hy.s1(s,l,x,X,null,null,a)}if(this.JA){var c=o.add.TySh;
if(this.ya){this.ya.zk(s,l,x,P);var y=L.V.wU(L.V.CX(this.ya.D7(),this.asc));c.A=y;this.Bq(s,l);ex.S$(c)}else if(this.Hy){this.Hy.zk(s,l,x,P);
var O=c.A.clone(),p=Math.atan2(O.S,O.lz);O.rotate(p);var y=L.V.wU(L.V.CX(this.Hy.D7())),D=Math.atan2(y.S,y.lz);
y.rotate(D);if(!isNaN(y.lz)&&y.lz*y.Am-y.S*y.In!=0){var f=new bU(0,0,y.lz/O.lz,y.Am/O.Am),T=Math.round(f.e),I=Math.round(f.l),H=c.x5.Curve;
if(H){var b=ex.vc(c.x5),R=new ae(T/b[2],0,0,I/b[3],0,0);L.H.A(H.Points,R,H.Points);ex.S$(c)}ex.rI(c.x5,[0,0,T,I]);
c.A=L.V.wU(L.V.CX(this.Hy.D7(),f));this.Bq(s,l);ex.S$(c)}}else{var W=P.x-this.Gc.x,J=P.y-this.Gc.y;c.A=this.afL.clone();
var u=new fz(c.A.sI+W,c.A.bW+J);u=r.PL.ZX(s,u,l);c.A.sI=u.x;c.A.bW=u.y;this.Bq(s,l)}}if(this.cN)this.Gr=this.YZ(P);
if(this.JA||this.cN)this.Px(s)};r.CD.prototype.Ct=function(s,m,l,x,a){var P=s.S4(),o=P[0],G=P[1],_=s.d2();
_.add.lnsr="rend";var j=s.G.slice(0);_.qW("Text layer "+j.length);this.Hp=_;var U=s.N.length==0?s.G.length-1:s.N[s.N.length-1],S=U+1;
if(j[U].add.lsct==hN.yF)S--;this.Zl={i2:j.slice(0),MW:s.N.slice(0)};j.splice(S,0,_);s.N=[S];this.Y9=this.Gr=0;
s.B0(j);this.Zl.vz=j.slice(0);this.Zl.Q$=s.N.slice(0);this.u3(m,v.E.g,{d:v.J.AL,c:this.id,Iu:"showactive"});
var X=s.t.cr(a.x,a.y),c=l.ME;console.log(c);if(this.id==r.Yg){c=JSON.parse(JSON.stringify(c));c.m$.BaselineDirection=1}_.add.TySh=ex.mA(X.x,X.y,c);
var y=_.add.TySh,O=y.x5;if(this.id==r.Yg)O._LineOrientation=2;ex.eB(y,this.nK);if(a.t0)ex.c8(O,1);else{ex.c8(O,0);
var p=o[G.pop()],D=p?p.add.vmsk:null;if(D&&!x.$(dV.Ht)){D=D.clone();var f=D.T,I,H;for(var C=0;C<f.length;
C++)if(f[C].aZ!=null)f[C].aZ=0;var T=5/s.t.O;I=L.j.qi(D.T,X,!0,T);if(I.jV==-1)I=L.j.qi(D.T,X);if(I.jV!=-1){ex.c8(O,1);
var b=L.j.Po(f,I.jV),W=L.j.D5(f,I.jV)-1;f=D.T=f.slice(0,2).concat(f.slice(b,b+W+1));D.N=[];y.add={vmsk:D,vogk:t.GK(f)};
O.Curve={};ex._b(y);if(I.CJ!=null){var J=hJ.QZ(O.Curve);L.H.A(J[0],y.A,J[0]);var u=L.H.Zc(J[0],X.x,X.y),e=l.ME.AO.Justification;
if(e==2||e==5){var Q=(J[2][u]+J[3]*.5)%J[3];u=hJ.Ik(Q,J[2])}var q=J[1][u];q=q%W;D.DF=[q,q];ex._b(y)}else this.kF(y)}}}return _};
r.CD.prototype.I6=function(s,m,l,x,a,P){if(P){this.H3=!1;return}if(this.Hp==null&&!this.H3)return;var o=s.t.cr(a.x,a.y),G=this.H3;
if(this.H3){this.H3=!1;this.Ct(s,m,l,x,a);this.cN=!0}if(this.JA||this.cN){this.Px(s);this.Q8();if(G)this._n(l)}if(this.JA&&this.Hy)this.Hy.I6(s,l,x,o);
this.JA=this.cN=!1;this.ZL.focus()};r.CD.prototype.Q8=function(){var s=this.Hp.add.TySh,m=Math.min(this.Y9,this.Gr),l=Math.max(this.Y9,this.Gr),x,a;
if(m==l){var P=ex.Ep(s.x5);if(m==0||P.charAt(m-1)=="\n")x=a=m;else x=a=m-1}else{x=m;a=l-1}var o=ex.f9(s.x5,x,a);
ex.Nn(o,r.Q.LL(s.A));this.b3(this.caller,o,s)};r.CD.prototype.b3=function(s,m,l){this.u3(s,v.E.g,{d:v.J.xw,AV:gN.dz,ME:m});
var x=this.nK=ex.un(l);this.u3(this.caller,v.E.g,{d:v.J.AL,c:this.id,Iu:"changeAA",Ur:x})};r.CD.prototype.CC=function(){var s=this.Hp;
if(s&&!this.JA&&this.ya!=null){this.ya.I6(this.u0,this.pX,null,null);this.ya=null;this.kF(s.add.TySh);
this.Px(this.u0)}};r.CD.prototype.disable=function(s,m,l,x){var a=this.Hp;this.uE(s,m)};r.CD.prototype.MZ=function(s,m,l,x,a){if(this.V5)return;
if(s.Iu=="commit")this.uE(l,m);if(s.Iu=="cancel")this.uj(l,m);if(s.Iu=="changeAA"){this.nK=s.Ur;if(l!=null)this.Pk({d:"updateStyles"},m,l,x,a)}if(s.Iu=="showwarp"){if(l==null)return;
if(this.Hp==null){var P=l.G[l.N[0]],o=P.add.TySh;if(o==null)return;this.e0(l,m,a,[l.N[0]]);this.ZL.focus();
this.V5=!0}this.asr=this.Hp.add.TySh.hG;var G=new h9(v.E.g,!0);G.data={d:v.J.Qm,It:"textwarp"};m.Y(G)}};
r.CD.prototype.L8=function(s,m){if(m!=gN.$W)return;if(this.uV){this.uV=!1;var l=this.u0,x=this.sl;for(var C=0;
C<x.length;C++){this.Hp=l.G[x[C]];this.Bq(l,s)}this.uE(l,this.caller);return}if(this.Hp)this._n(s)};
r.CD.prototype.SL=function(s,m){var l=JSON.parse(JSON.stringify(s.ME));ex.Nn(l,1/r.Q.LL(m.A));return l};
r.CD.prototype.mH=function(s,m){if(s.Cj!=null)this.B4(m,s.hA);else this.aD(m,s.vz,s.Q$)};r.CD.prototype.V1=function(s,m){if(s.Cj!=null)this.B4(m,s.Cj);
else this.aD(m,s.i2,s.MW)};r.CD.prototype.B4=function(s,m){for(var C=0;C<m.length;C++){var l=m[C],x=l.eu,a=s.G[x];
a.buffer=l.uN;a.rect=l.Bv.clone();a.F();var P=a.add.TySh;P.hG=l.Lv;P.fn=l.fn.clone();P.A=l.A.clone();
P.x5=JSON.parse(JSON.stringify(l.x5));a.No()}s.F()};r.CD.prototype.rw=function(s,m){var l=[];for(var C=0;
C<m.length;C++){var x=m[C],a=s.G[x],P=a.add.TySh;l.push({eu:x,A:P.A.clone(),Lv:JSON.parse(JSON.stringify(P.hG)),fn:P.fn.clone(),x5:JSON.parse(JSON.stringify(P.x5)),uN:a.buffer.slice(0),Bv:a.rect.clone()})}return l};
r.CD.prototype.aD=function(s,m,l){s.N=l;s.B0(m);s.F();s.CR=!0};r.CD.prototype.Bq=function(s,m,l){if(l==null)l=!1;
var x=this.Hp.add.TySh;if(!b3.zm(x,m.dC,this.caller))return!1;this.Fw=new hJ(x.x5,m.dC);if(!l){var a=ex.Ep(x.x5);
this.ZL.value=a.slice(0,a.length-1)}var P=b3.in(this.Fw,x);if(L.Lv.AY(x.hG))x.fn=new bU;else{if(ex.$i(x.x5)==1){var o=ex.vc(x.x5),cE=P.fn.y;
x.fn=new bU(0,cE,o[2]-o[0],o[3]-o[1]-cE)}else{x.fn=P.fn}}var G=this.Hp.rect;this.Hp.rect=P.Bv;this.Hp.buffer=P.du;
this.Hp.F();s.Bi();s.F(s.root.iX(P.Bv.if(G),s,s.G.indexOf(this.Hp)));return!0};r.CD.prototype.ZQ=function(s,m){if(this.Hp==null||this.V5)return;
var l=this.ZL.selectionStart,x=this.Hp.add.TySh,a=ex.Ep(x.x5),P=this.ZL.value+"\n",o=Math.min(this.Y9,this.Gr),G=Math.max(this.Y9,this.Gr),X=!1;
this.Y9=Math.min(l,o);if(P.length-l<a.length-this.Gr)this.Gr=a.length-P.length+l;if(a!=P){while(this.Y9>0&&a.charAt(this.Y9-1)!=P.charAt(this.Y9-1))this.Y9--}var _=a.substring(0,this.Y9),j=a.substring(this.Gr,a.length),U=P.substring(this.Y9,P.length-j.length);
ex.eU(x.x5,this.Y9,this.Gr);ex.A6(x.x5,this.Y9,U);if(m!=null)ex.a51(x.x5,this.Y9,m);var S=this.SL(this.pX,x),c=-1,y=Array.from(U);
for(var C=0;C<y.length;C++)c=Math.max(c,y[C].codePointAt(0));if(c!=-1&&c>128&&c!=65533&&S.m$.Font!=null){var O=S.dN[S.m$.Font].Name,p=this.pX.dC.yB(c,O,S.dN);
if(O!=p){ex.Cl(S,p);X=!0}}if(this.Uj!=null&&U==this.Uj){var D=JSON.parse(this.a45);S.m$=D.m$;S.dN=D.dN;
X=!0}ex.j3(x.x5,this.Y9,this.Y9+U.length-1,S);this.Y9=this.Gr=_.length+U.length;var f=this.u0,T=this.Bq(f,this.pX,!0);
if(T)this.Px(f,!0);if(X)this.Q8()};r.CD.prototype.a5W=function(s){if(!s.ctrlKey)this.CC()};r.CD.prototype.a1R=function(s){if(this.Hp==null||this.V5)return;
if(this.Hp==null)return;if(this.ya==null&&s.ctrlKey){var m=this.Hp.add.TySh,l=ex.$i(m.x5),x;if(l==1){x=ex.vc(m.x5);
x=new bU(0,0,x[2]-x[0],x[3]-x[1])}else x=this.Fw.eJ();var a=[x.x,x.y,x.x+x.e,x.y,x.x+x.e,x.y+x.l,x.x,x.y+x.l];
L.H.A(a,m.A,a);this.ya=new hF(a,!0,!0,!1,!1);this.asc=x;this.Px(this.u0)}var P=dV,o=0,G=0,I=!1;if(P.Ij(s.code,P.oJ))o=1;
if(P.Ij(s.code,P.io))o=-1;if(P.Ij(s.code,P.Lu))G=-1;if(P.Ij(s.code,P.pV))G=1;var _=s.ctrlKey||s.metaKey,j=P.Ij(s.code,dV.a0b),U=P.Ij(s.code,dV.atY);
if(P.Ij(s.code,dV.z3)&&_){this.uE(this.u0,this.caller);return}if(P.Ij(s.code,dV.Pt)){this.uj(this.u0,this.caller);
return}if(P.Ij(s.code,dV.U1)){s.preventDefault();var S=this.ZL,X=S.value,c=S.selectionStart,y=S.selectionEnd;
S.value=X.substring(0,c)+"\t"+X.substring(y);S.selectionStart=S.selectionEnd=c+1;this.ZQ(null);return}if((P.Ij(s.code,P._a)||P.Ij(s.code,P.mj))&&_){var O=this.Y9,p=this.Gr;
if(O>p){var D=O;O=p;p=D}var m=this.Hp.add.TySh,f=ex.Ep(m.x5);if(O!=p){this.Uj=f.slice(O,p);this.a45=JSON.stringify(this.pX.ME)}}var T=ex.Ep(this.Hp.add.TySh.x5);
if(o!=0||G!=0||j||U){s.preventDefault();var H=this.Y9;if(o!=0){if(_&&o==-1)H=this.bX(T,this.Y9-1);else if(_&&o==1)H=this.ib(T,this.Y9);
else{var S=this.ZL,X=S.value;H=this.Y9+o;if(H!=0&&X.codePointAt(H-1)>65535)H+=o}}else if(G!=0){var b=this.Fw.c5(this.Y9);
if(G==-1&&b.pN==0)H=0;else if(G==1&&b.pN==this.Fw.a0Y()-1)H=99999999999;else H=this.Fw.a5K(new fz(b.Bv.x+b.Bv.e/2,0),b.pN+G)}else if(j){var R=this.Y9-1;
while(R>0&&T.charCodeAt(R)!=10)R--;H=R==0?0:R+1}else if(U){var R=this.Y9;while(R<T.length-1&&T.charCodeAt(R)!=10)R++;
H=R}H=Math.max(0,Math.min(T.length-1,H));if(s.shiftKey)this.Y9=H;else this.Y9=this.Gr=H;I=!0}if(P.Ij(s.code,dV.J)&&_){this.Y9=0;
this.Gr=T.length-1;I=!0}if(I){this.Q8();this.Px(this.u0)}};r.CD.ahh=function(s,m){var l=s.length;if(l!=m.length)return!1;
for(var C=0;C<l;C++)if(s[C].eu!=m[C].eu)return!1;return!0};r.CD.prototype.uE=function(s,m){if(this.Hp==null)return;
this.Hp.No();var l=this.Zl;if(l instanceof Array){var x=this.rw(s,this.sl),a=s.b1();if(a!=null&&a.c==this&&a.data.Cj&&r.CD.ahh(a.data.Cj,l))a.data.hA=x;
else{var P=new aU(this.name,this);P.data={Cj:l,hA:x};s.eN(P)}}else{var P=new aU(this.name,this);P.data={i2:l.i2,vz:l.vz,MW:l.MW,Q$:l.Q$};
s.eN(P)}this.escape(s,m)};r.CD.prototype.uj=function(s,m){if(this.Hp==null)return;if(this.Zl instanceof Array){this.B4(s,this.Zl);
if(this.Hp)ex.S$(this.Hp.add.TySh)}else{s.N=this.Zl.MW;s.B0(this.Zl.i2)}s.F();this.escape(s,m)};r.CD.prototype.escape=function(s,m){this.CC();
this.Hp=null;this.sl=null;this.Fw=null;this.Hy=null;this.ZL.blur();s.D.NJ=null;s.D.XY=null;s.D.Sk=[];
s.R8=!0;this.JA=!1;this.cN=!1;this.Y9=this.Gr=-1;this.u3(m,v.E.g,{d:v.J.AL,c:this.id,Iu:"hideactive"});
if(this.fE){var l=new h9(v.E.g,!0);l.data={d:v.J._I,c:this.fE};m.Y(l);this.fE=null}};r.CD.prototype.u3=function(s,m,l,x){var a=new h9(m,!0);
a.data=l;if(x)a.c=x;s.Y(a)};r.CD.prototype.YZ=function(s){var m=this.Hp.add.TySh,l=this.Fw,x=m.A.clone();
x.ms();var a=x.oG(s),P=ex.E2(m,l),o=L.Lv.Y4(m.hG,P),G=L.k9.am2(o,a);if(G==null)G=new Float64Array(2);
a=new fz(P.x+G[0]*P.e,P.y+G[1]*P.l);if(l.qp){var _=l.qp.clone();_.ms();a=_.oG(a)}var j=l.a5K(a);return j};
r.CD.prototype.Px=function(s,m){if(m==null)m=!1;var l=this.Hp.add.TySh,x=ex.$i(l.x5),a=this.Fw,P=a?ex.E2(l,a):null;
s.D.Sk=[];s.D.NJ=null;s.D.XY=null;var o=this.ya?this.ya:this.Hy;if(o){o.Yk(s,this.pX,!L.Lv.AY(l.hG));
var G=l.A.clone();G.ms();if(a&&a.qp&&a._z==1){var _=a.qp.clone();_.ms();G.concat(_)}L.H.A(s.D.Sk,G,s.D.Sk);
L.H.A(s.D.NJ.s,G,s.D.NJ.s);if(a&&a.qp==null&&a.a4z()){var j=P.e-20,U=P.l+8;s.D.NJ.s.push(j,U,j+10,U,j+5,U-5,j+5,U+5);
s.D.NJ.r.push("M","L","M","L")}}else if(x==0)this.an2(s,l,a);else s.D.NJ={s:[],r:[]};var S=Math.min(this.Y9,this.Gr),X=Math.max(this.Y9,this.Gr);
if(!m){this.ZL.selectionStart=S;this.ZL.selectionEnd=X}if(a!=null){var c=function(o,I){var H=o.x,b=o.y+o.l,R=new ae;
R.translate(-H,-b);R.rotate(-I);R.translate(H,b);o.y+=o.l*.27;var T=L.H.$$(o);L.H.A(T.s,R,T.s);return T};
if(S==X){S=Math.max(S,0);var y=a.c5(S);if(y){var O=y.Bv,p=this.pX.ME.m$.FontSize;if(p!=null&&p!=0){p/=l.A.LL();
O.y+=O.l-p;O.l=p}var D=a.au9(S);if(D!=null&&D.pk==1)O.x+=O.e;var f=c(O,y.xe).s;s.D.NJ.r.push("M","L");
s.D.NJ.s.push(f[0],f[1]-1,f[6],f[7]-1)}}else{s.D.XY={s:[],r:[]};for(var C=S;C<X;C++){var y=a.c5(C),T=c(y.Bv,y.xe);
L.H.concat(s.D.XY,T)}}}s.D.NJ=b3.sS(s.D.NJ,l,a);s.D.XY=b3.sS(s.D.XY,l,a);s.D.Sk=b3.sS({s:s.D.Sk},l,a).s;
s.R8=!0};r.CD.prototype.an2=function(s,m,l){if(l==null)return;s.D.Sk.push(0,0);if(s.D.NJ==null)s.D.NJ={r:[],s:[]};
for(var C=0;C<l.AO.length;C++){var x=l.AO[C];for(var a=0;a<x.Ox.length;a++){var P=x.Ox[a],o=x.Y1.x+P.Y1.x+P.Bv.x,G=x.Y1.y+P.Y1.y+P.Bv.y+P.Bv.l;
s.D.NJ.r.push("M","L");s.D.NJ.s.push(o,G,o+P.Bv.e,G)}}s.R8=!0};r.aj=function(){r.CD.call(this,!0)};r.aj.prototype=new r.CD;
r.d1=function(){r.bJ.call(this,[10,9],r.JN,"tools/lasso");this.Ke="crosshair";this.WJ=null;this.RE=null;
this.Gc=null};r.d1.prototype=new r.bJ;r.d1.prototype._N=function(s,m,l,x){this.WJ=this.GS;this.RE={s:[this.WJ.x,this.WJ.y],r:["M"]}};
r.d1.prototype.xi=function(s,m,l,x){this.Gc=x;var a=this.RE;if(a==null)return;if(!x.t0){if(this.RE!=null&&this.pn>1&&l.$(dV.Il)){a.s.pop();
a.s.pop();a.s.push(this.BM.x,this.BM.y);s.D.NJ=a;s.R8=!0}return}a.r.push("L");a.s.push(this.BM.x,this.BM.y);
this.WJ=this.BM;if(this.bU){s.D.NJ=a;s.R8=!0}};r.d1.prototype.hl=function(){return this.RE!=null};r.d1.prototype.FG=function(){return this.RE!=null};
r.d1.prototype.NZ=function(s,m,l,x){r.bJ.prototype.NZ.call(this,s,m,l,x);if(this.RE&&this.pn>1&&this.Gc&&!this.Gc.t0&&!x.$(dV.Il))this.lL(s,l,x)};
r.d1.prototype.tU=function(s,m,l,x){this.Gc=x;var a=this.RE;if(a==null)return;if(this.pn>1&&l.$(dV.Il)){a.r.push("L");
a.s.push(this.BM.x,this.BM.y);return}this.lL(s,m,l)};r.d1.prototype.lL=function(s,m,l){this.finish(s,m,l,this.Gc);
this.RE=null;s.D.NJ=null;s.R8=!0};r.d1.prototype.getSelection=function(s,m,l,x){if(this.GS.yb(this.BM)||!this.bU)return null;
return r.bJ.u_(this.RE.s,null,this.fG.anta)};r.PL=function(){r.xO.call(this,[10,11],r.G1,"tools/move");
this.xn=new fz(0,0);this.zS=new fz(0,0);this.jR=null;this.Ek=null;this.p0=new fz(0,0);this.QA=null;this.bR=null;
this.OU=null;this.W_=0;this.RX=null;this.cb=[];this.SA=null;this.LS=null;this.rc=!1;this.d=0;this.xY=null;
this.l4=null;this.KE=null;this.uT=!1;this.fG={DY:!1,cY:!1,Zp:!1};this.agY=!1;this.a9z=!1;this.Hy=null;
this.Ue=null;this.a9D=null;var s=[];for(var C=0;C<L.pE.Mx.length;C++)s.push({name:L.pE.Mx[C],P:function(m,l,x){return{FB:l.HD.jq==x}}});
this.gL=new aC(s);this.gL.h("select",this.wc,this)};r.PL.prototype=new r.xO;r.xO.prototype.Xg=function(s){return this.rc&&this.d!=2};
r.PL.prototype.oM=function(){return this.rc&&this.d==0};r.PL.prototype.qY=function(s,m,l,x){this.P9(s,-this.p0.x,-this.p0.y);
this.p0.Qk(0,0);this.Py(s,null,l);this.rL(s)};r.PL.prototype.Dj=function(){var s=this.fG;return[s.DY?1:0,s.cY?1:0,s.Zp?1:0]};
r.PL.prototype.cl=function(s,m,l){var x=this.fG;if(s&&s[0]!=null)x.DY=s[0]==1;if(s&&s[1]!=null)x.cY=s[1]==1;
if(s&&s[2]!=null)x.Zp=s[2]==1;var a=new h9(v.E.g,!0);a.data={d:v.J.AL,c:this.id,P1:x,a7y:m};l.Y(a)};
r.PL._P=function(s,m,l,x,a,P,o){if(o==null)o=[!1,!0];var G=s.cT(null,a,!0),_,j;if(s.add.artd&&s.N.length==1&&s.G[s.N[0]].add.artb){var U=s.G[s.N[0]].wy();
_=s.M7(G,U,U)[0]}else{var S=new bU(0,0,s.e,s.l),_=s.M7(G,o[0]?S:null,o[1]?null:S)[0],j=_.add.artd;if(j){for(var C=0;
C<_.G.length;C++)delete _.G[C].add.artb;delete _.add.artd}if(o[1]){var X=L.XA(_.cf(),new bU(0,0,_.e,_.l),2);
r.Bs.sc(_,X)}}if(l!=1){var c=new bU(0,0,Math.round(_.e*l),Math.round(_.l*l));r.Bs.sc(_,c);var y=[];for(var C=0;
C<_.G.length;C++)y.push(C);var O=r.Q.CS(_,y,!0);r.Bs.QX(_,new ae(l,0,0,l,0,0));r.Q.By(_,x,y,O,1,L.V.$D(new ae(l,0,0,l,0,0)),null,!0);
_.nZ()}else if(j){_.F();_.nZ()}var p=[];for(var C=0;C<m.length;C++)if(_.e*_.l!=0)p.push(iO.rJ(_,m[C].toUpperCase(),null,null,P?P[C]:null,x));
return p};r.PL.prototype.Iv=function(s,m,l,x,a){if(s==null||s.N.length==0)return;var P=r.PL._P(s,[m],l,x,null)[0],o=new h9(v.E.g,!0);
o.data={d:v.J.V7,data:P,name:s.G[s.N[0]].getName()+(l==1?"":"@"+l+"x")+"."+m};a.Y(o)};r.PL.prototype.MZ=function(s,m,l,x,a){if(s.R7=="getPNG"){this.Iv(l,"png",s.CT,a,m)}else if(s.R7=="getSVG"){this.Iv(l,"svg",s.CT,a,m)}if(s.R7=="prms"){this.fG=s;
this.rL(l)}};r.PL.a77=function(s){var cE=s.length,l=0;s.sort(function(P,o){return P[0]+P[1]/2-(o[0]+o[1]/2)});
var m=s[cE-1][0]+s[cE-1][1]-s[0][0];for(var C=0;C<cE;C++)l+=s[C][1];var x=Math.round((m-l)/(cE-1)),a=s[0][0];
for(var C=0;C<cE;C++){s[C][0]=a;a+=s[C][1]+x}};r.PL.prototype.Pk=function(s,m,l,x,a){var P=s.d;if(P=="trsl"){var o=Math.round(s.a8j),G=Math.round(s.ahR);
this.p0.Qk(o,G);this.eO(l,m,x,a,!1,s.i);this.P9(l,o,G);this.Py(l,null,a)}else if(P=="lockguides"){if(l)l.Xs=!l.Xs}else if(P=="gids"||P=="gidsFromLayer"){var _=s.l4,j,U;
if(_==null)_=l.Ls();if(P=="gids"){j=s.uP;var S=_[0].length,X=j[0].length;U=S==X?[23,2]:S>X?[23,3]:[23,4];
if(X==0)U=[11,15,0]}else if(P=="gidsFromLayer"){var c=[],y=[],O=l.SV();for(var C=0;C<l.N.length;C++){var p=l.G[l.N[C]].rect;
if(p.Xh())continue;c.push([0,p.x],[1,p.y],[0,p.x+p.e],[1,p.y+p.l]);y.push(O,O,O,O)}U=[11,15,1];j=l.Ls();
r.PL.Fj(j,[c,y])}if(JSON.stringify(_)==JSON.stringify(j))return;var P=new aU(U,this);P.data={d:2,l4:_,uP:j};
l.eN(P);this.mH(P.data,l)}else if(P=="algn"){var D=s.Z;if(l==null)return;if(l.N.length<2&&!(l.q!=null&&D!=3&&D!=7)){alert(iX.get([15,7,5]));
return}var f=l.q;l.q=null;var p=f?f.rect:r.Q.E2(l);this.eO(l,m,x,a,!1);if(!this.rc)return;var T=this.RX,I={},H=[],b=[],R=[];
for(var C=0;C<T.length;C++){var W=T[C];while(l.G[W].getName()=="</Layer group>")W++;var J=l.root.Wp(W),u=J;
while(J.parent!=null){J=J.parent;if(T.indexOf(J.index)!=-1)u=J}var e=b.indexOf(u.index);if(e==-1){e=b.length;
b.push(u.index)}H[C]=e}var Q=[],q=[],Z=[];for(var C=0;C<b.length;C++){var E=r.Q.E2(l,l.cT(!0,b[C]));
Z.push(E);var z=D==3?[E.y,E.l]:[E.x,E.e];Q[C]=z;q.push(z)}r.PL.a77(q);for(var C=0;C<b.length;C++){var E=Z[C],V=E.x,Y=E.y;
if(D==0)V=p.x;if(D==1)V=p.x+(p.e-E.e)/2;if(D==2)V=p.x+(p.e-E.e);if(D==3)Y=Q[C][0];if(D==4)Y=p.y;if(D==5)Y=p.y+(p.l-E.l)/2;
if(D==6)Y=p.y+(p.l-E.l);if(D==7)V=Q[C][0];R.push(Math.round(V-E.x),Math.round(Y-E.y))}var d=[];for(var C=0;
C<T.length;C++){var w=H[C];d[2*C]=R[2*w];d[2*C+1]=R[2*w+1]}this.P9(l,0,0,null,d);var A=D==3||D==7?[20,4,6]:[20,4,D<3?D:D-1];
this.Py(l,null,a,d,A);l.q=f}else if(P=="disabAuto"){this.cl([!1],null,m)}};r.PL.Fj=function(s,m){for(var C=0;
C<m[0].length;C++){var l=m[0][C],x=m[1][C],a=!1;for(var P=0;P<s[0].length;P++){var o=s[0][P],G=s[1][P];
if(l[0]==o[0]&&l[1]==o[1]&&x==G)a=!0}if(!a){s[0].push(l.slice(0));s[1].push(x)}}};r.PL.prototype.enable=function(s,m,l,x,a){this.bR=l;
this.OU=m;this.uT=a?!0:!1;this.rL(s);this.jQ("default",m)};r.PL.prototype.disable=function(s,m,l,x){this.au(s)};
r.PL.prototype.au=function(s){if(s==null)return;if(this.Hy){this.Hy.clear(s);this.Hy=null}if(s.D.Zp){s.D.Zp=null;
s.R8=!0}if(s.D.p3){s.D.p3=null;s.R8=!0}if(s.D.Ub[this.id]){delete s.D.Ub[this.id];s.R8=!0}if(s.D.va.length!=0){s.D.va=[];
s.R8=!0}};r.PL.prototype.nQ=function(s,m,l,x){if(l.hu!=this.id)return;this.rL(s)};r.PL.prototype.rL=function(s,m){if(s==null)return;
var l=this.fG;this.au(s);if(!this.uT){var x;if(l.cY||l.Zp)x=L.H.LU(r.Q.E2(s));if(l.cY&&!x.Xh()){this.Hy=new hF([x.x,x.y,x.x+x.e,x.y,x.x+x.e,x.y+x.l,x.x,x.y+x.l],!0);
this.Hy.Yk(s,this.bR)}if(l.Zp){var a=null,U=null,S=!1;if(s.SV()!=-1)a=s.G[s.SV()].wy();else a=new bU(0,0,s.e,s.l);
s.D.Zp={zs:[x],oc:[]};var P=s.D.Zp.oc,o=x.x+x.e,G=x.y+x.l,_=x.x+Math.floor(x.e/2),j=x.y+Math.floor(x.l/2);
if(m){var X=s.root.qi(new fz(Math.floor(m.x),Math.floor(m.y)));if(X){U=L.H.LU(X.i.NK(s));if(U.Hx(x)){S=(U.kq(x)||x.kq(U))&&!x.yb(U);
if(!S)U=null}}}this.Bg(x,P);if(U!=null){s.D.Zp.zs.push(U);var c=U.x+U.e,y=U.y+U.l,O=U.x+Math.floor(U.e/2),p=U.y+Math.floor(U.l/2);
if(S){var D=_,f=j;if(x.kq(U)){D=O;f=p}P.push(x.x,f,U.x,f);P.push(o,f,c,f);P.push(D,x.y,D,U.y);P.push(D,G,D,y)}else{this.Bg(U,P);
var T=G<U.y||y<x.y,I=o<U.x||c<x.x;if(o<U.x)P.push(o,j,U.x,j);if(c<x.x)P.push(c,j,x.x,j);if(G<U.y)P.push(_,G,_,U.y);
if(y<x.y)P.push(_,y,_,x.y);if(T&&!I){if(x.x<U.x)P.push(x.x,p,U.x,p);if(U.x<x.x)P.push(U.x,j,x.x,j)}}}else{if(x.y>a.y)P.push(_,a.y,_,x.y);
if(G<a.y+a.l)P.push(_,G,_,a.y+a.l);if(x.x>a.x)P.push(a.x,j,x.x,j);if(o<a.x+a.e)P.push(o,j,a.x+a.e,j)}s.R8=!0}}if(this.d==2&&this.rc){var H=new bU(0,0,s.e,s.l),b=s.SV();
if(b!=-1){var R=s.Ls(),W=R[1][this.RX];if(W==-1)W=b;H=s.G[W].wy()}var J=s.ff[this.RX],u=J[0],e=(u==0?"X":"Y")+": "+L.pE.YC(J[1]-(u==0?H.x:H.y),s.sz,this.bR,u==0?H.e:H.l,!0);
r.xO.Fi(Math.round(this.jR.x)+10,Math.round(this.jR.y)-10,[e],s);s.R8=!0}if(this.d==3&&this.rc){var Q=L.H.$$(this.xY);
s.D.Ub[this.id]={NJ:Q};s.R8=!0}};r.PL.prototype.Bg=function(s,m){var l=s.e,x=s.l,a=s.x+Math.floor(l*.2),P=s.y+Math.floor(x*.2);
m.push(a,s.y,a,s.y+x);m.push(s.x,P,s.x+l,P)};r.PL.prototype.jQ=function(s,m){var l={d:v.J.GL,Cr:s},x=new h9(v.E.g,!0);
x.data=l;m.Y(x)};r.PL.prototype.yS=function(s){var m=this.Ue.gW()[0],l=this.QA,x=this.a9D[m];this.ct(l,x)};
r.PL.prototype.wc=function(s){var m=JSON.parse(JSON.stringify(this.bR.HD));m.jq=this.gL.gW()[0];var l=new h9(v.E.g,!0);
l.data={d:v.J.xw,AV:gN.iY,Ur:m};this.OU.Y(l)};r.PL.prototype.bI=function(s,m,l,x,a){if(this.rc)this.I6(s,m,l,x,a);
this.QA=s;this.bR=l;this.OU=m;var P=s.t.cr(a.x,a.y),o;if(r.PL.qI(l,a,s.t)){o=this.gL}else{if(this.Ue)this.Ue.removeEventListener("select",this.yS);
var G=[];s.root.qi(P,G);if(G.length==0)return;var _=[];this.a9D=G;for(var C=0;C<G.length;C++)_.push({name:s.G[G[C]].getName()});
o=this.Ue=new aC(_);o.h("select",this.yS,this)}o.parent=m;o.U();o.update(s,l);var j=new h9(v.E.g,!0);
j.data={d:v.J.Jm,UK:o,x:a.QO+2,y:a.rF+1};m.Y(j)};r.PL.prototype.T1=function(s,m,l,x,a){var P=r.PL.hV(s,a);
return P!=-1||r.PL.qI(l,a,s.t)};r.PL.hV=function(s,m){if(s==null||s.add.artd==null)return-1;var l=s.t.cr(m.x,m.y),x=12*r.W()/s.t.O;
for(var C=0;C<s.G.length;C++){var a=s.G[C];if(!a.p$()||a.add.artb==null)continue;var P=a.wy(),o=new bU(P.x,P.y-1.7*x,x*a.getName().length*.5,x);
if(o.j_(l))return C}return-1};r.PL.prototype.s1=function(s,m,l,x,a){var P=r.PL.hV(s,a);if(P!=-1){s.N=[P];
if(l.hu==r.G1){var o=new h9(v.E.g);o.data={d:v.J._I,c:r.FN};m.Y(o)}return}this.jR=a;this.xn.Qk(a.x,a.y);
this.zS=s.t.cr(a.x,a.y);this.Ek=new iw(this.zS);this.eO(s,m,x,l,!0)};r.PL.qI=function(s,m,l,x){var a=L.pE.Xb,P=l.tH.l;
return s.no&&(0<m.x&&m.x<a||0<m.y&&m.y<a||x&&0<m.x&&m.x<4*a&&P-a<m.y&&m.y<P)};r.PL.prototype.eO=function(s,m,l,x,a,P){var o,G=this.zS,_=!1;
if(a){var j=x.DQ&&x.HD.ff;if(r.PL.qI(x,this.xn,s.t)){o=s.Ls();var U=s.Ls(),S=null;if(this.xn.x<L.pE.Xb){S=[0,G.x]}if(this.xn.y<L.pE.Xb){S=[1,G.y]}U[0].push(S);
U[1].push(s.SV());s.Bb(U);if(!j){var X=new h9(v.E.g);if(!x.HD.ff){X.data={d:v.J.xw,AV:gN.h0};m.Y(X)}if(!x.DQ){X.data={d:v.J.xw,AV:gN.pM};
m.Y(X)}j=!0}}var c=this.Tq(s,G);if(j&&c!=null&&!s.Xs){this.d=2;this.l4=o?o:s.Ls();this.RX=c;this.rc=!0;
this.LS=r.Q.E2(s);return}if(s.Be.length!=0){this.d=4;this.LS=s.$_[s.Be[0]].rect.clone();this.rc=!0;return}if(this.Hy&&this.Hy.l8(G,s.t.O,!0,this.jR)!=null){var X=new h9(v.E.g);
X.data={d:v.J._I,c:r.mx,a23:!0};m.Y(X);return}if(s.q&&s.q.rect.j_(G)){var y=Math.round(G.x),O=Math.round(G.y),p=s.q.rect;
_=s.q.channel[(O-p.y)*p.e+y-p.x]>128}if(!_&&(!this.uT&&this.fG.DY||this.uT&&this.fG.DY&&(l.$(dV.Ht)||s.N.length<2))){var D=this.a3i(s,G,l);
if(!D){s.N=[];s.QR=null;s.CR=s.bN=!0;this.d=3;this.xY=new bU;this.rc=!0;return}}if(l.$(dV.Il)&&!_){var f=new h9(v.E.u);
f.c=r.ay;f.data={d:t.Rk,a6x:!0};m.Y(f)}}if(s.Be.length!=0){this.d=4;this.LS=s.$_[s.Be[0]].rect.clone();
this.rc=!0;return}this.RX=s.cT(P==null,P,null,!0);for(var C=0;C<this.RX.length;C++){var T=s.G[this.RX[C]];
if(T.Xz(2)||T.Xz(31)){alert(iX.get([6,57,0]));return}}if(s.add.artd&&a){var I=this.RX,H=!1;for(var C=0;
C<I.length;C++)if(s.G[I[C]].add.artb)H=!0;if(!H){this.SA=[s,s.G.slice(0),s.N.slice(0),-1];this.RX.sort(function(q,Z){return q-Z})}}this.cb=r.PL.aiD(s,this.RX);
this.d=0;if(s.q&&(!a||_)&&s.N.length==1&&s.z6(!1)){if(!s.ZD()){this.rc=!1;return}var b=s.G[s.N[0]],R=l.$(dV.Il);
this.d=1;var W=s.history[s.gH];if(W.c==this&&W.data.d==1&&W.data.i==s.N[0]&&b.Ar==b.Bl.Ar&&!R){this.KE=W}else{var J=b.Bl,u=!1,e;
if(!b.hY(s,s.q)||R){u=!0;b.Hh(s,s.q,R)}if(b.Bl.Ar<=0){e=L.B(b.Bl.q6.length>>2);L.hy(b.Bl.q6,e,3)}else e=s.q.channel.slice(0);
var Q={rect:b.Bl.Im.clone(),channel:e};this.KE=new aU(R?[12,53]:[12,54],this);this.KE.data={d:1,i:s.N[0],Bl:b.Bl,B5:J,VC:u,MW:s.q,Q$:Q,Am:new fz(0,0)};
s.eN(this.KE);s.q=Q;s.g_=!0}}this.rc=!0;this.LS=r.Q.E2(s)};r.PL.prototype.a3i=function(s,m,l){var x=s.root.qi(new fz(Math.floor(m.x),Math.floor(m.y)));
if(x){if(x.i.add.vmsk)s.R8=!0;var a=s.G.indexOf(x.i);if(l.$(dV.Ht)){var P=s.N.indexOf(a);if(P==-1)s.N.push(a);
else if(s.N.length>1)s.N.splice(P,1)}else if(s.N.indexOf(a)==-1){this.ct(s,a)}}return x!=null};r.PL.prototype.ct=function(s,m){s.G[m].Ar=0;
s.N=[m];s.QR=null;s.dH();s.jn=!0;s.CR=!0};r.PL.prototype.zk=function(s,m,l,x,a){this.jR=a;var P=s.t.cr(a.x,a.y),c,y;
if(this.Ek&&this.d<2)P=this.Ek.Hz(P,x);if(!this.rc){if(l.DQ&&l.HD.ff&&s&&!s.Xs){var o=this.Tq(s,P),G="default",_=r.PL.hV(s,a);
if(o!=null)G=["col-resize","row-resize"][s.ff[o][0]];else if(this.Hy){var j=this.Hy.l8(P,s.t.O,null,a);
if(j)G=j}else if(_!=-1){G="pointer"}this.jQ(G,m)}this.rL(s,P);return}var U=this.zS,S=Math.round(P.x-U.x)-this.p0.x,X=Math.round(P.y-U.y)-this.p0.y;
if(this.LS){if(this.d==2){P=r.PL.ZX(s,P,l,[!1,s.q?s.q.rect:this.LS,!0])}else{y=this.LS.clone();y.offset(this.p0.x+S,this.p0.y+X);
c=r.PL.nM(s,y,l);S+=Math.round(c[0]);X+=Math.round(c[1])}}this.p0.x+=S;this.p0.y+=X;var O=this.SA;if(O&&s==O[0]){s.B0(O[1]);
s.N=O[2].slice(0);O[3]=-1}this.P9(s,S,X,P,null,x.$(dV.Ht));if(O&&s==O[0]){var p=this.LS.clone();p.offset(this.p0.x,this.p0.y);
var D=new fz(p.x+p.e/2,p.y+p.l/2),_=s.SV(),f=-1;for(var C=0;C<s.G.length;C++){var T=s.G[C];if(!T.p$()||T.add.artb==null)continue;
var I=T.wy();if(I.j_(D))f=C}if(f!=-1&&f!=_){var H=r.EM.aM(s,this.RX,f,!0,null,!1);s.B0(H[0]);s.N=H[1];
O[3]=f}}this.rL(s,P);if(c)r.PL.za(s,y,c)};r.PL.prototype.Tq=function(s,m){var l=r.gF(s,this.jR);m=[m.x,m.y];
var x=s.Ls(),a=s.SV();for(var C=0;C<x[0].length;C++){var P=x[0][C],o=x[1][C];if(o!=-1&&o!=a)continue;
if(Math.abs(P[1]-m[P[0]])<l)return C}return null};r.PL.prototype.P9=function(s,m,l,x,a,P){if(this.d==0){if(a)r.PL.nr(s,this.RX,this.cb,a);
else r.PL.Ng(s,this.RX,this.cb,m,l)}else if(this.d==1){var o=this.KE.data;o.Am.offset(m,l);r.PL.ue(s,o.i,m,l)}else if(this.d==2){var G=1e-5;
if(P)G=s.t.O<=1?10:1;else if(s.t.O<=1)G=1;var _=G*Math.round(x.x/G),j=G*Math.round(x.y/G),U=[_,j],S=s.ff[this.RX];
S[1]=U[S[0]]}else if(this.d==3){var X=this.zS,c=L.H.QS([X.x,X.y,x.x,x.y]);this.xY=c;var y=[];s.root.fS(c,y);
if(JSON.stringify(s.N)!=JSON.stringify(y)){s.N=y;s.CR=s.bN=!0}}else if(this.d==4){for(var C=0;C<s.Be.length;
C++)s.$_[s.Be[C]].rect.offset(m,l);s.R8=!0}};r.PL.ue=function(s,m,l,x){var a=s.G[m];s.q.rect.offset(l,x);
a.UH(s,l,x,s.q);s.g_=!0;s.F()};r.PL.prototype.I6=function(s,m,l,x,a,P){this.Py(s,a,l);this.rL(s);if(Date.now()-this.W_<300&&!P){var o=r.CD.tS(s,s.t.cr(a.x,a.y));
if(r.PL.qI(l,a,s.t,!0)){var G=new h9(v.E.g);if(a.y>s.t.tH.l-20){G.data={d:v.J.Qm,It:"doczoom",nA:s.t.O*100,pb:{b:v.E.u,c:r.Zq,M:{d:"pzoom"}}}}else{G.data={d:v.J.Qm,It:"preferences"}}m.Y(G)}else if(o>=0){var _=new h9(v.E.u,!0);
_.c=r.sX;_.data={d:"editCurr",m6:o};m.Y(_)}}this.W_=Date.now();r.Bs.ra(s)};r.PL.prototype.Py=function(s,m,l,x,a){if(!this.rc)return;
this.rc=!1;if(this.d==0){if(x){this.oW(s,null,x,a)}else{if(this.p0.x==0&&this.p0.y==0)return;this.oW(s,this.p0.clone())}s.Gq=!0}else if(this.d==2){var P=0;
m=[m.x,m.y];var o=this.RX,G=s.ff[o],dF=this.l4[0].length,_=s.ff.length;if(l.no&&m[G[0]]<L.pE.Xb){var j=s.Ls();
j[0].splice(o,1);j[1].splice(o,1);s.Bb(j);P=1;if(dF==_-1)return}if(dF<_)P=2;var U=new aU([[23,2],[23,3],[23,4]][P],this);
U.data={d:2,l4:this.l4,uP:s.Ls()};s.eN(U)}else if(this.d==4){var U=new aU([12,54],this);U.data={d:4,N:s.Be.slice(0),X:this.p0.clone()};
s.eN(U)}this.p0.Qk(0,0)};r.PL.prototype.NZ=function(s,m,l,x){var a=x.jv();if(s!=null&&(a.x!=0||a.y!=0)){if(x.$(dV.Il)&&s.q==null){var P=new h9(v.E.u);
P.c=r.ay;P.data={d:t.Rk,a6x:!0};m.Y(P)}this.p0.Qk(a.x,a.y);this.eO(s,m,x,l,!1);if(!this.rc)return;this.P9(s,a.x,a.y);
this.Py(s,null,l);this.rL(s)}var o=x.$(dV.bt);if(!this.uT&&this.a9z!=o){if(o){this.agY=this.fG.DY;this.fG.DY=!0}else{this.fG.DY=this.agY}this.a9z=o;
var G=new h9(v.E.g,!0);G.data={d:v.J.AL,c:this.id,P1:this.fG};m.Y(G)}};r.PL.prototype.V1=function(s,m){if(s.d==0){var l=s.T2;
if(l){m.B0(l.i2);m.N=l.us.slice(0);m.F();m.CR=!0}r.PL.nr(m,s.N,s.QQ,s.X7,!0);r.Bs.ra(m)}else if(s.d==2){m.Bb(s.l4);
m.R8=!0}else if(s.d==4){for(var C=0;C<s.N.length;C++)m.$_[s.N[C]].rect.offset(-s.X.x,-s.X.y);m.R8=!0}else{var x=m.G[s.i];
if(s.VC){x.Yq(m,s.B5);m.q=s.MW;m.g_=!0;m.F();x.F()}else{r.PL.ue(m,s.i,-s.Am.x,-s.Am.y)}}};r.PL.prototype.mH=function(s,m){if(s.d==0){r.PL.nr(m,s.N,s.QQ,s.X7);
var l=s.T2;if(l){m.B0(l.vz);m.N=l.jF.slice(0);m.F();m.CR=!0}r.Bs.ra(m)}else if(s.d==2){m.Bb(s.uP);m.R8=!0}else if(s.d==4){for(var C=0;
C<s.N.length;C++)m.$_[s.N[C]].rect.offset(s.X.x,s.X.y);m.R8=!0}else{var x=m.G[s.i];if(s.VC){x.Bl=s.Bl;
m.q=s.Q$;r.PL.ue(m,s.i,0,0);x.F()}else{r.PL.ue(m,s.i,s.Am.x,s.Am.y)}}};r.PL.prototype.oW=function(s,m,l,x){if(l){var a=!0;
for(var C=0;C<l.length;C++)if(l[C]!=0)a=!1;if(a)return}var P=s.history[s.gH],o=this.SA,G=o!=null&&o[3]!=-1&&o[0]==s;
if(!G&&l==null&&P.data&&P.c==this&&P.data.d==0&&JSON.stringify(P.data.N)==JSON.stringify(this.RX)&&JSON.stringify(P.data.QQ)==JSON.stringify(this.cb)){var _=P.data.X7,j=P.data.anO.WA.T.v;
j.Hrzn.v.val+=m.x;j.Vrtc.v.val+=m.y;for(var C=0;C<_.length;C+=2){_[C]+=m.x;_[C+1]+=m.y}}else{if(m==null)m=new fz(l[0],l[1]);
var U={YF:"move",WA:{classID:"null",null:e6.Yr("Lyr",!0),T:{t:"Objc",v:{classID:"Ofst",Hrzn:{t:"UntF",v:{type:"#Rlt",val:m.x}},Vrtc:{t:"UntF",v:{type:"#Rlt",val:m.y}}}}}},S=null;
if(G)S={i2:o[1],us:o[2],vz:s.G.slice(0),jF:s.N.slice(0)};this.SA=null;var X=new aU(x?x:[12,54],this);
if(l)X.data={d:0,N:this.RX,QQ:this.cb,T2:S,X7:l};else X.data={d:0,N:this.RX,QQ:this.cb,T2:S,X7:r.PL.Ew(this.RX,m.x,m.y)};
X.data.anO=U;s.eN(X);this.track(U)}};r.PL.Ew=function(s,m,l){var x=[];for(var C=0;C<s.length;C++)x.push(m,l);
return x};r.PL.Ng=function(s,m,l,x,a){r.PL.nr(s,m,l,r.PL.Ew(m,x,a))};r.PL.nr=function(s,m,l,x,a){if(m.length==0)return;
if(l==null){l=[];for(var C=0;C<m.length;C++){l.push(s.G[m[C]].q5(s,!0))}}var P=new bU,o=new bU(0,0,s.e,s.l);
for(var C=0;C<m.length;C++){var G=x[2*C],_=x[2*C+1];if(a){G=-G;_=-_}var j=s.G[m[C]],U=l[C];if(j.add.fxrp&&(U.indexOf(0)!=-1||j.Ee()))j.add.fxrp.offset(G,_);
for(var S=0;S<U.length;S++){var X=U[S];if(X==0){j.rect.offset(G,_);if(j.UI()&&j.Ao(s))j.Ao(s).rect.offset(G,_);
if(j.add.artb){var c=j.wy();c.offset(G,_);j.Kp(c);var y=j.add.artb.guideIndeces;y=y?y.v:[];for(var O=0;
O<y.length;O++){var p=s.ff[y[O].v];p[1]+=p[0]==0?G:_}}if(j.add.TySh){j.add.TySh.A.translate(G,_);if(j.add.TySh.add){j.add.TySh.add.vmsk.offset(G,_)}}if(j.add.SoLd){var D=new ae(1,0,0,1,G,_),f=j.add.SoLd,T=r.Q.qN(f.Trnf),I=r.Q.qN(f.nonAffineTransform);
L.H.A(T,D,T);L.H.A(I,D,I);f.Trnf=r.Q.ZG(T);f.nonAffineTransform=r.Q.ZG(I);r.Q.oL(f,D)}}if(X==1)j.SE().rect.offset(G,_);
if(X==2){j.add.vmsk.offset(G,_);if(j.add.vogk)L.R2.A(j.add.vogk,[1,0,G,0,1,_,0,0],[])}if(X==3){j.Ao(s).v.rect.offset(G,_);
if(U.length==1)j.F()}}if(U.length>0){var H=j.add.GdFl;if(H==null)H=j.add.PtFl;if(j.Ee()&&!j.RS()&&j.add.vmsk!=null&&L.j.hO(j.add.vmsk.T)&&j.add.vmsk.X5==255&&(H==null||H.Algn&&H.Algn.v)){j.rect.offset(G,_)}else j.sN(s);
var b=s.root.iX(j.NK(s),s,m[C]);if(j.add.artb)b=b.if(j.wy());P=P.if(b);b.offset(-G,-_);P=P.if(b);if(j.ox()&&j.v&&j.v.color==255)P=P.if(o);
j.yU()}}s.F(L.H.LU(P))};r.PL.aiD=function(s,m){var l=[];for(var C=0;C<m.length;C++){var x=s.G[m[C]];
l.push(x.q5(s))}return l};r.PL.za=function(s,m,l){var x=s.D.p3={s:[],r:[]},a=m.x+l[0],P=m.y+l[1];if(l[2]!=1e9){x.r.push("M","L");
x.s.push(l[2],P,l[2],P+m.l)}if(l[3]!=1e9){x.r.push("M","L");x.s.push(a,l[3],a+m.e,l[3])}s.R8=!0};r.PL.ZX=function(s,m,l,x){var a=r.PL.yW(s,[[m.x],[m.y]],l,x);
return new fz(m.x+a[0],m.y+a[1])};r.PL.nM=function(s,m,l,x,a){var P=a==!0?1:.5,o=r.PL.yW(s,[[m.x,m.x+Math.round(m.e*P),m.x+m.e],[m.y,m.y+Math.round(m.l*P),m.y+m.l]],l,x);
return o};r.PL.yW=function(s,m,l,x){if(x==null)x=[!0,null,!0];var a=[0,0,1e9,1e9];if(!l.WD)return a;
var P=JSON.parse(JSON.stringify(m));for(var o=0;o<2;o++){var G=1e9,_=m[o],j=0;for(var U=0;U<_.length;
U++){var S=r.PL.as2(s,_[U],P[1-o][U],o,l,x);if(S!=1e9)P[o][U]=S;if(S!=1e9&&Math.abs(S-_[U])<Math.abs(G)){G=S-_[U];
j=S}}if(G!=1e9){a[o]=G;a[o+2]=j}}return a};r.PL.as2=function(s,m,l,x,a,P){var o=1e9,G=a.Vd,_=a.HD,j=[s.root];
while(j.length!=0&&G[2]){var U=j.pop(),S=U.i,X=S.rect;if(!S.p$())continue;if(U.children)for(var C=0;
C<U.children.length;C++)j.push(U.children[C]);if(s.N.indexOf(U.index)!=-1||X.Xh())continue;if(x==0){var c=X.e,y=c>>>1;
if(Math.abs(X.x-m)<Math.abs(o-m))o=X.x;if(Math.abs(X.x+y-m)<Math.abs(o-m))o=X.x+y;if(Math.abs(X.x+c-m)<Math.abs(o-m))o=X.x+c}else{var O=X.l,p=O>>>1;
if(Math.abs(X.y-m)<Math.abs(o-m))o=X.y;if(Math.abs(X.y+p-m)<Math.abs(o-m))o=X.y+p;if(Math.abs(X.y+O-m)<Math.abs(o-m))o=X.y+O}}if(P[0]&&G[0]&&_.ff&&a.DQ){var D=s.Ls(),f=D[0],T=D[1],I=s.SV();
for(var C=0;C<f.length;C++)if((T[C]==-1||T[C]==I)&&f[C][0]==x&&Math.abs(f[C][1]-m)<Math.abs(o-m))o=f[C][1]}if(G[1]&&_.ry&&a.DQ){var H=Math.round(L.pE.Hc(_.M$,s.sz,s.e,_.D9));
if(x==1&&_.Pg==1){var b=l*.5*Math.sqrt(4/3),R;H*=Math.sqrt(4/3);R=Math.round((m-b)/H)*H+b;if(Math.abs(R-m)<Math.abs(o-m))o=R;
R=Math.round((m+b)/H)*H-b;if(Math.abs(R-m)<Math.abs(o-m))o=R}else{var R=Math.round(m/H)*H;if(Math.abs(R-m)<Math.abs(o-m))o=R}}var W=s.YA;
if(G[3]&&_.YA&&a.DQ&&W.length!=0){for(var C=0;C<W.length;C++){if(!P[2]&&s.tq.indexOf(C)!=-1)continue;
var J=r.NT.Yc(W,C);for(var u=0;u<3;u+=2)if(J[u+x]!=m&&Math.abs(J[u+x]-m)<Math.abs(o-m))o=J[u+x]}}if(P[1]){var X=P[1],c=X.e,O=X.l,e=[X.x,X.y,X.x+(c>>>1),X.y+(O>>>1),X.x+c,X.y+O];
for(var C=0;C<6;C+=2)if(Math.abs(e[C+x]-m)<Math.abs(o-m))o=e[C+x]}if(G[4]){var X=new bU(0,0,s.e,s.l),I=s.SV();
if(I!=-1)X=s.G[I].wy();var c=X.e,O=X.l,e=[X.x,X.y,X.x+(c>>>1),X.y+(O>>>1),X.x+c,X.y+O];for(var C=0;C<6;
C+=2)if(Math.abs(e[C+x]-m)<Math.abs(o-m))o=e[C+x]}var Q=Math.abs(o-m)<=4*r.W()/s.t.O?o:1e9;return Q};
r.kN=function(){r.bJ.call(this,[10,12],r.dS,"tools/mwand")};r.kN.prototype=new r.bJ;r.kN.prototype.Dj=r.bJ.prototype.a5o;
r.kN.prototype.cl=r.bJ.prototype.a3t;r.kN.prototype._N=function(s,m,l,x){this.finish(s,m,l,x)};r.kN.prototype.getSelection=function(s,m,l,x){var a=this.BM,P=r.bJ.aag(new fz(Math.floor(a.x),Math.floor(a.y)),this.fG.wconf,this.fG.sall);
return P};r.kN.Jd=function(s,m,l,x,a){if(s.N.length!=1){alert("More than one layer selected.");return null}var P=s.G[s.N[0]],o=null,G;
if(a)o=P.Ar<=0?null:P.Ar==1?P.SE():P.Ao(s).v;if(o==null&&P.add.lsct!=null&&P.add.lsct!=hN.Ru){alert("No layer selected.");
return null}if(m.x<0||m.x>s.e||m.y<0||m.y>s.l)return null;var _=new bU(0,0,s.e,s.l);if(x){G=s.cf()}else if(o==null&&_.yb(P.rect))G=P.buffer;
else{G=L.B(_.k()*4);if(o==null)L.yx(P.buffer,P.rect,G,_);else r.fZ.y$(o.channel,o.rect,o.color,G,_)}var j=r.kN.VO(G,_,m,null,l),U=L.zQ(j,_),S=L.B(U.k());
L.kV(j,_,S,U);return{rect:U,channel:S}};r.kN.Sz=function(s,m,l){var x=m.e,a=m.l,o=0,G=0,_=0,j=0;s=new Uint32Array(s.buffer);
var P=[],U=l.length;for(var C=0;C<U;C++){var S=l[C],X=Math.round(S.x-.5-m.x),c=Math.round(S.y-.5-m.y);
X=Math.max(0,Math.min(x-1,X));c=Math.max(0,Math.min(a-1,c));var y=c*x+X,O=s[y];P.push([O&255,O>>8&255,O>>16&255,O>>>24])}return P};
r.kN.VO=function(s,m,l,x,a){s=new Uint32Array(s.buffer);var P=m.e,o=m.l,G=P*o;if(x==null)x=r.kN.Sz(s,m,[l]);
var _=Math.round(l.x-.5-m.x),j=Math.round(l.y-.5-m.y),U=j*P+_,S=Date.now(),X=L.B(P*o),c=a[0],y=1/c,O=a[1]&&c>0?255:0;
if(a[2]){var p=L.B(X.length),D=new Uint32Array(G),f=1;D[0]=_<<16|j;p[U]=1;while(f>0){var T=D[f-1];f--;
var I=T>>>16,H=T&65535,C=H*P+I,b=r.kN.rl(s[C],x);if(b>c){var R=O*(1-Math.max(0,Math.min(1,(b-c)*y)));
X[C]=~~R}else{X[C]=255;if(H!=o-1&&p[C+P]==0){D[f++]=I<<16|H+1;p[C+P]=1}if(H!=0&&p[C-P]==0){D[f++]=I<<16|H-1;
p[C-P]=1}if(I!=P-1&&p[C+1]==0){D[f++]=I+1<<16|H;p[C+1]=1}if(I!=0&&p[C-1]==0){D[f++]=I-1<<16|H;p[C-1]=1}}}}else{for(var C=0;
C<G;C++){var b=r.kN.rl(s[C],x);if(b<=c)X[C]=255}for(var H=0;H<o;H++)for(var I=0;I<P;I++){var C=H*P+I;
if(X[C]==0&&(I>0&&(X[C-1]==255||H>0&&X[C-P-1]==255||H<o-1&&X[C+P-1]==255)||I<P-1&&(X[C+1]==255||H>0&&X[C-P+1]==255||H<o-1&&X[C+P+1]==255)||H>0&&X[C-P]==255||H<o-1&&X[C+P]==255)){var b=r.kN.rl(s[C],x),R=O*(1-Math.max(0,Math.min(1,(b-c)*y)));
X[C]=~~R}}}return X};r.kN.rl=function(s,m){var l=m.length,x=r.kN.b6(s,m[0]),C=1;while(C!=l){x=Math.min(x,r.kN.b6(s,m[C]));
C++}return x};r.kN.b6=function(s,m){var l=s&255,x=s>>>8&255,a=s>>>16&255,P=s>>>24&255;if(m[3]==0)return P<5?0:255;
var o=Math.max(Math.abs(l-m[0]),Math.max(Math.abs(x-m[1]),Math.abs(a-m[2])));return P==0?255:o};r.dD=function(s,m){if(m)r.fZ.call(this);
else if(s)r.fZ.call(this,[10,49],r.jU,"tools/camove");else r.fZ.call(this,[10,26],r.UA,"tools/patch");
this.WJ=null;this.RE=null;this.X=null;this.Y1=null;this.qo=new fz;this.oR=null;this.YM=null};r.dD.prototype=new r.fZ;
r.dD.prototype.s1=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y);if(s.q&&L.qi(P,s.q.channel,s.q.rect)){var o=new bU(0,0,s.e,s.l),G=o.pF(s.q.rect);
if(!s.z6()||G.Xh())return;if(!0){var _=L.B(G.k());L.kV(s.q.channel,s.q.rect,_,G);s.q={channel:_,rect:G}}this._D(s);
this.v8(s);this.Y1=P;this.qo=new fz(P.x-s.q.rect.x,P.y-s.q.rect.y);this.YM=L.B(s.q.rect.k()*4);this.YM.fill(255);
if(this.fG.patch==1){var j=s.G[s.N[0]];j.Hh(s,s.q,!0);if(j.Bl==null)this.Y1=null}this.oR=s.q.rect.clone()}else{this.RE={s:[P.x,P.y],r:["M"]};
this.WJ=P}};r.dD.prototype.zk=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y);if(this.Y1){if(this.fG.patch==1){if(s.Be.length==0){var o=s.G[s.N[0]].Bl,G=P.x-this.qo.x,_=P.y-this.qo.y;
r.PL.ue(s,s.N[0],Math.round(G-o.Im.x),Math.round(_-o.Im.y))}}else this.I9(s,P,"clone")}if(this.WJ){this.RE.r.push("L");
this.RE.s.push(P.x,P.y);this.WJ=P;s.D.NJ=this.RE;s.R8=!0}};r.dD.prototype.I6=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y);
if(this.Y1){var o=s.q.rect.clone();if(this.id==r.jU){var G=s.G[s.N[0]];G.Yq(s,G.Bl);s.q.rect=this.oR.clone();
var _=L.B(s.q.rect.k()*4);L._Y(s.q.channel,_,3);this.JC(s,"sheal",_,s.q.rect,s.q.rect);s.q.rect=o;o=o.if(this.oR)}this.I9(s,P,"heal");
this.finish(s,o,null,null,!0);s.F(o);this.Y1=null}if(this.WJ){var j=r.bJ.af(this.fG.setop,x.$(dV.Ht),x.$(dV.Il)),U=new h9(v.E.b4,!0);
if(this.RE.s.length<=4)U.data=r.bJ.d9();else U.data=r.bJ.u_(this.RE.s,j);m.Y(U);this.WJ=null;s.D.NJ=null;
s.R8=!0}};r.dD.prototype.YR=function(){return this.X};r.dD.prototype.MZ=function(s,m,l,x,a){r.fZ.prototype.MZ.call(this,s,m,l,x,a);
this.jQ(a,x)};r.dD.prototype.jQ=function(s,m){var l="auto;";if(m!=null&&m.$(dV.Ht)&&!m.$(dV.Il)||this.fG.setop=="union")l="copy";
var x=new h9(v.E.g,!0);x.data={d:v.J.GL,Cr:l};if(this.caller)this.caller.Y(x)};r.dD.prototype.I9=function(s,m,l){var x=new fz(Math.round(this.Y1.x-m.x),Math.round(this.Y1.y-m.y));
if(this.fG.patch==1)x.Qk(-x.x,-x.y);this.X=x;this.JC(s,l,this.YM,s.q.rect,s.q.rect);this.F(s,s.q.rect)};
r.tj=function(){r.dD.call(this,!0);this.fG.patch=1};r.tj.prototype=new r.dD(!0,!0);r.tv=function(){r.fZ.call(this,[10,13],r.afR,"tools/pbucket");
this.Aa=!1};r.tv.prototype=new r.fZ;r.tv.prototype.enable=function(s,m,l,x){var a=new h9(v.E.g,!0);a.data={d:v.J.GL,Cr:"default"};
m.Y(a)};r.tv.prototype.L8=function(s,m){};r.tv.prototype.s1=function(s,m,l,x,a){this.Aa=!0};r.tv.prototype.I6=function(s,m,l,x,a,P){var o=this.Aa;
this.Aa=!1;if(!o||P)return;if(this.bm(x,m,a))return;if(!s.z6())return;var G=s.t.cr(a.x,a.y),_=r.kN.Jd(s,G,this.fG.wconf,this.fG.sall,!0);
if(_==null)return;var j=L.B(_.rect.k()*4);L.MP(j,(l.zU&255)<<16|(l.zU>>8&255)<<8|(l.zU>>16&255)<<0);
L._Y(_.channel,j,3);this._D(s);this.JC(s,"draw",j,_.rect,_.rect);this.F(s,_.rect);this.finish(s,_.rect)};
r.O3=function(){r.bJ.call(this,[10,14],r.aqk,"tools/plasso");this.Ke="crosshair";this.oH=[];this.FD=null;
this.RE=null;this.am0=0};r.O3.prototype=new r.bJ;r.O3.prototype.disable=function(s,m,l,x){this.kL(s)};
r.O3.prototype._N=function(s,m,l,x){this.oH=[dV.vR,dV.H8]};r.O3.prototype.sO=function(s){return this.oH.indexOf(s)!=-1};
r.O3.prototype.Xg=function(s){return this.RE!=null};r.O3.prototype.FG=function(){return this.RE!=null};
r.O3.prototype.hl=function(){return this.RE!=null};r.O3.prototype.xi=function(s,m,l,x){if(this.RE==null)return;
var a=this.RE,P=a.s,o=P.length-2,G=this.BM;if(this.N3.Vc(1)&&l.$(dV.Il)&&x.t0){P.push(0,0);a.r.push("L");
o+=2}else if(l.$(dV.Ht))G=r.W0.m4(new fz(P[o-2],P[o-1]),G);P[o]=G.x;P[o+1]=G.y;s.D.NJ=a;s.R8=!0};r.O3.prototype.tU=function(s,m,l,x){var a=Date.now();
if(this.RE==null)this.RE={s:[this.BM.x,this.BM.y,this.BM.x,this.BM.y],r:["M","L"]};else{this.xi(s,m,l,x);
if(a-this.am0<250||fz.rv(this.BM,new fz(this.RE.s[0],this.RE.s[1]))<r.gF(s,x)){this.FD=this.RE;this.finish(s,m,l,x);
this.kL(s);return}this.RE.r.push("L");this.RE.s.push(this.BM.x,this.BM.y)}this.am0=a;s.D.NJ=this.RE};
r.O3.prototype.kL=function(s){this.RE=null;this.oH=[];if(s!=null){s.D.NJ=null;s.R8=!0}};r.O3.prototype.NZ=function(s,m,l,x){r.bJ.prototype.NZ.call(this,s,m,l,x);
if(x.$(dV.Pt)&&this.RE==null&&this.FD&&s.q!=null){var a=new h9(v.E.u);a.c=r.rs;a.data={d:"h_stepbck"};
m.Y(a);this._N(s,l,x,null);this.RE=this.FD;return}if(this.RE==null)return;if(x.$(dV.vR)||x.$(dV.H8)){this.RE.s.pop();
this.RE.s.pop();this.RE.r.pop();this.xi(s,l,x)}if(x.$(dV.z3)){if(this.RE.s.length>4){this.FD=this.RE;
this.finish(s,l,x)}this.RE=null}if(x.$(dV.Pt)){this.RE=null}s.D.NJ=this.RE;s.R8=!0};r.O3.prototype.getSelection=function(s,m,l,x){return r.bJ.u_(this.RE.s,null,this.fG.anta)};
r.$M=function(){r.bJ.call(this,[10,10],r.am$,"tools/mlasso");this.Ke="crosshair";this.oH=[];this.T=[];
this.IC=[];this.Ox=[];this.ht=null;this.F0=null;this.wr=null;this.W_=0;this.HY=0};r.$M.prototype=new r.bJ;
r.$M.prototype.disable=function(s,m,l,x){this.clear(s)};r.$M.prototype.Xg=function(s){return this.T.length!=0};
r.$M.prototype.hl=function(){return this.T.length!=0};r.$M.prototype.sO=function(s){return this.oH.indexOf(s)!=-1};
r.$M.prototype._N=function(s,m,l,x){this.oH=[dV.vR,dV.H8];var a=this.DB(this.GS,s);if(this.T.length!=0&&(fz.rv(a,this.T[0])<r.gF(s,x)||Date.now()-this.W_<300)){this.yY(s,this.T[0]);
this.finish(s,m,l);this.clear(s);return}this.W_=Date.now();if(this.T.length!=0)a=this.vX(a,s);else{var P=s.e,o=s.l,G=L.B(P*o),_=s.cf(),j=P*o*4;
for(var C=0;C<j;C+=4)G[C>>>2]=~~(.5+L.js(_[C],_[C+1],_[C+2])*(_[C+3]*(1/255)));this.ht=L.f5.a35(G,P,o);
this.wr=new Uint16Array(G.length)}this.yY(s,a);this.HY=l.$(dV.Il)?1:0;this.Pf(s)};r.$M.prototype.yY=function(s,m){var l=this.T;
this.IC[l.length]=this.Ox.length;if(l.length!=0){L.f5.mv(this.F0,m.y*s.e+m.x);var x=this.xM(s,m);x.reverse();
var a=r.$M.mZ(s,x);this.Ox=this.Ox.concat(a)}l.push(m);this.o9(s)};r.$M.prototype.o9=function(s){var m=this.T[this.T.length-1],l=m.y*s.e+m.x;
this.F0=L.f5.a1D(this.ht.Vx,this.ht.b_,l);this.wr.fill(0)};r.$M.prototype.DB=function(s,m){return new fz(Math.floor(Math.max(0,Math.min(m.e-1,s.x))),Math.floor(Math.max(0,Math.min(m.l-1,s.y))))};
r.$M.prototype.clear=function(s){this.Ox=[];this.T=[];this.IC=[];this.ht=null;this.F0=null;this.wr=null;
if(s!=null){s.D.NJ=null;s.D.Sk=[];s.R8=!0}this.oH=[]};r.$M.prototype.xi=function(s,m,l,x){var a=this.T,P=a.length;
if(P==0)return;var o=this.vX(this.DB(this.BM,s),s),G=this.xM(s,o);for(var C=0;C<G.length;C++){var _=G[C],j=new fz(_%s.e,Math.floor(_/s.e));
if(this.wr[_]>30&&fz.rv(j,a[P-1])>20){this.yY(s,j);return}this.wr[_]++}if(this.HY==1&&x.t0)this.yY(s,o);
this.Pf(s)};r.$M.prototype.Pf=function(s){var m=this.T;if(m.length!=0){var l=this.vX(this.DB(this.BM,s),s),x=this.xM(s,l);
x.reverse();var a=r.$M.mZ(s,x),P=this.Ox.concat(a),o=s.D.NJ={s:P,r:["M"]};for(var C=2;C<P.length;C+=2)o.r.push("L")}s.D.Sk=[];
for(var C=0;C<m.length;C++)s.D.Sk.push(m[C].x+.5,m[C].y+.5);s.R8=!0};r.$M.prototype.tU=function(s,m,l,x){};
r.$M.prototype.NZ=function(s,m,l,x){if(this.T.length==0)return;if(x.$(dV.vR)||x.$(dV.H8)){this.T.pop();
this.Ox=this.Ox.slice(0,this.IC[this.T.length]);this.IC.pop();if(this.T.length==0)this.clear(s);else this.o9(s);
this.Pf(s)}if(x.$(dV.z3)){var a=this.DB(this.BM,s);this.yY(s,a);this.finish(s,l,x);this.clear(s)}if(x.$(dV.Pt)){this.clear(s)}};
r.$M.prototype.getSelection=function(s,m,l,x){return r.bJ.u_(this.Ox,null,this.fG.anta)};r.$M.prototype.xM=function(s,m){var l=this.T[this.T.length-1],x=l.y*s.e+l.x,a=m.y*s.e+m.x;
if(this.HY==1)return[a,x];var P=[a];while(a!=x){a=this.F0.an[a];P.push(a);if(P.length>5e3){console.log(P);
throw"e"}}return P};r.$M.mZ=function(s,m){var l=[],x=s.e;for(var C=0;C<m.length;C++){var a=m[C];l.push(a%x+.5,Math.floor(a/x)+.5)}return l};
r.$M.prototype.vX=function(s,m){var l=m.e,x=m.l,a=s.clone(),o=3;L.f5.mv(this.F0,s.y*l+s.x);var P=this.F0.c4[s.y*l+s.x];
for(var G=-o+1;G<o;G++)for(var _=-o+1;_<o;_++){var j=s.x+_,U=s.y+G;if(j<0||j>=l||U<0||U>=x)continue;
L.f5.mv(this.F0,U*l+j);if(this.F0.c4[U*l+j]<P)a.Qk(j,U)}return a};r.zu=function(){r.xO.call(this,[10,36],r.KF,"tools/ruler");
this.DF=null;this.WQ=null;this._B=null;this.HQ=null;this.DJ=null};r.zu.prototype=new r.xO;r.zu.prototype.Xg=function(s){return s.t0};
r.zu.prototype.enable=function(s,m,l,x){r.xO.prototype.enable.call(this,s,m,x,l);if(s)this.rL(s)};r.zu.prototype.disable=function(s,m,l,x){if(s)this.kL(s)};
r.zu.prototype.Pk=function(s,m,l,x,a){this.DF=this._B=null;this.rL(l)};r.zu.prototype.s1=function(s,m,l,x,a){var P=r.gF(s,a),o=s.t.cr(a.x,a.y);
o.x=Math.round(o.x);o.y=Math.round(o.y);var G=this.DF;this.WQ=G?G.slice(0):null;var _=G&&fz.rv(o,G[0])<P,j=G&&fz.rv(o,G[1])<P,U=G&&G[2]&&fz.rv(o,G[2])<P;
if(_||j||U){if(x.$(dV.Il)&&G.length==2){if(j){var S=G[0];G[0]=G[1];G[1]=S}G[2]=G[0].clone();this._B=[2]}else this._B=[_?0:j?1:2]}else if(G&&r.zu.adJ(G[0],G[1],o)<P&&Math.min(G[0].x,G[1].x)-5<=o.x&&o.x<=Math.max(G[0].x,G[1].x)+5&&Math.min(G[0].y,G[1].y)-5<=o.y&&o.y<=Math.max(G[0].y,G[1].y)+5){this._B=[];
this.DJ=[];for(var C=0;C<G.length;C++){this._B.push(C);this.DJ.push(G[C].clone())}this.HQ=o}else{this.DF=[o.clone(),o.clone()];
this._B=[1]}};r.zu.prototype.zk=function(s,m,l,x,a){if(this._B==null)return;var P=this.DF,o=this._B,G=s.t.cr(a.x,a.y);
G.x=Math.round(G.x);G.y=Math.round(G.y);if(o.length>1){var _=G.x-this.HQ.x,j=G.y-this.HQ.y;for(var C=0;
C<P.length;C++){P[C]=this.DJ[C].clone();P[C].offset(_,j)}}else{P[o[0]].Qk(G.x,G.y);if(x.$(dV.Ht)){P[o[0]]=r.W0.m4(P[1-o[0]],P[o[0]])}}this.rL(s);
this.u3(m,v.E.g,{d:v.J.AL,c:this.id,a1c:P[0],iT:P[1],Df:P[2],sz:s.sz,al1:s.e})};r.zu.prototype.I6=function(s,m,l,x,a,P){this._B=null;
if(P){this.DF=this.WQ.slice(0);this.rL(s)}};r.zu.prototype.u3=function(s,m,l){var x=new h9(m,!0);x.data=l;
s.Y(x)};r.zu.prototype.rL=function(s){var m=this.DF;if(m==null)this.kL(s);else{var l=[m[1].x,m[1].y,m[0].x,m[0].y],x=["M","L"];
if(m.length>2){l.push(m[2].x,m[2].y);x.push("L")}s.D.NJ={r:x,s:l};s.D.Sk=l}s.R8=!0};r.zu.prototype.kL=function(s){s.D.NJ=null;
s.D.Sk=[]};r.zu.adJ=function(s,m,l){var x=m.x-s.x,a=m.y-s.y,P=Math.abs(a*l.x-x*l.y+m.x*s.y-m.y*s.x),o=Math.sqrt(x*x+a*a);
return o==0?0:P/o};r.vr=function(){r.fZ.call(this,[10,19],r.mK,"tools/sharpen");this.Wh="copy"};r.vr.prototype=new r.fZ;
r.vr.prototype.s1=function(s,m,l,x,a){var P=this.fG.pdetail?br.ZW:br.mK;if(x.$(dV.Il))P=br.vS;this.GU(s,l,x,a,this.fG.strn,P);
if(this.kW==null)return;this.kl(s)};r.vr.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);if(this.fN)this.Ns(s,l,a);
if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.NS=function(){r.fZ.call(this,[10,24],r.Uq,"tools/shbrush");
this.Wh="draw";this.fG.opacity=.5};r.NS.prototype=new r.fZ;r.NS.prototype.s1=function(s,m,l,x,a){this.GU(s,l,x,a,1);
if(this.kW==null)return;this.v8(s);this.kl(s)};r.NS.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);
if(this.fN)this.Ns(s,l,a);if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.NS.prototype.I6=function(s,m,l,x,a){if(this.kW==null)return;
this.JC(s,"sheal",this.kW.oo(),this.kW.E2(),this.kW.pJ(),null);this.F(s,this.kW.pJ());r.fZ.prototype.I6.call(this,s,m,l,x,a)};
r.UY=function(){r.fZ.call(this,[10,20],r.Qr,"tools/smudge");this.Wh="copy"};r.UY.prototype=new r.fZ;
r.UY.prototype.s1=function(s,m,l,x,a){this.GU(s,l,x,a,this.fG.strn,br.Qr);if(this.kW==null)return;this.kl(s)};
r.UY.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);if(this.fN)this.Ns(s,l,a);if(this.kW==null)return;
if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.Ec=function(){r.fZ.call(this,[10,23],r.k1,"tools/sponge");
this.Wh="sponge"};r.Ec.prototype=new r.fZ;r.Ec.prototype.s1=function(s,m,l,x,a){this.GU(s,l,x,a,this.fG.flow);
if(this.kW==null)return;this.kl(s)};r.Ec.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);if(this.fN)this.Ns(s,l,a);
if(this.kW==null)return;if(!a.t0)return;this.V6(s,l,x,a);this.kl(s)};r.D3=function(){r.xO.call(this,[10,17],r.Zq,"tools/zoom");
this.ms=!1;this.SF=!0;this.CF=0;this.xk=null;this.W2=null;this.TU=0;this.p2=null;this.Ny=0;this.gL=new aC([{name:[8,0],lA:"Ctrl + +"},{name:[8,1],lA:"Ctrl + -",Bx:!0},{name:[20,3],lA:"Ctrl + 0"},{name:["VAR0: 100%",[20,2]],lA:"Ctrl + 1"}],[{b:v.E.u,c:r.Zq,M:{d:"zoom",SF:!0}},{b:v.E.u,c:r.Zq,M:{d:"zoom",SF:!1}},{b:v.E.u,c:r.Zq,M:{d:"adapt",Z:"fitscr"}},{b:v.E.u,c:r.Zq,M:{d:"adapt",Z:"pixel"}}])};
r.D3.prototype=new r.xO;r.D3.prototype.bI=function(s,m,l,x,a){var P=this.gL;P.U();P.parent=m;P.update(s,l);
var o=new h9(v.E.g,!0);o.data={d:v.J.Jm,UK:P,x:a.QO+2,y:a.rF+1};m.Y(o)};r.D3.prototype.enable=function(s,m,l,x){this.Vq(m,x);
if(s&&Date.now()-this.CF<300)this.Pk({d:"adapt",Z:"pixel"},m,s,x,l);this.CF=Date.now()};r.D3.prototype.s1=function(s,m,l,x,a){this.W2=new fz(a.x,a.y);
this.TU=s.t.O;this.p2=s.t.X.clone()};r.D3.prototype.zk=function(s,m,l,x,a){if(this.W2==null)return;var P=Math.exp(Math.log(this.TU)+(a.x-this.W2.x)/64);
P=Math.max(.02,Math.min(r.D3.OQ[0],P));s.t.O=this.TU;s.t.X=this.p2.clone();this.Pk({d:"zoom",O:P,jR:this.W2},m,s,x,l)};
r.D3.prototype.I6=function(s,m,l,x,a){if(fz.rv(this.W2,a)<4){var P=this.PD(x);this.Pk({d:"zoom",SF:P,jR:a},m,s,x,l)}this.W2=null};
r.D3.OQ=[64,32,16,12,8,6,5,4,3,2,1,2/3,1/2,1/2*(2/3),1/4,1/4*(2/3),1/8,1/8*(2/3),1/16,1/16*(2/3),1/32,1/32*(2/3),1/64];
r.D3.qE=function(s,m,l,x){var a=1;while(s*a*1/2>l||m*a*1/2>x)a*=1/2;if(s*a*2/3>l||m*a*2/3>x)a*=1/2;else if(s*a>l||m*a>x)a*=2/3;
return a};r.D3.WZ=function(s,m){var l=r.D3.ap_(s);if(m&&l==0)return s;if(!m&&l==r.D3.OQ.length-1)return s;
return r.D3.OQ[m?l-1:l+1]};r.D3.ap_=function(s){var m=0;while(r.D3.OQ[m]>s)m++;return m};r.D3.Is=function(s,m,l,x){var a=s.u0;
if(x==0||x==null){x=r.D3.WZ(s.O,l);if(x==s.O)return}var P=s.cr(m.x,m.y);if(a.e*x<=s.tH.e&&a.l*x<=s.tH.l){s.X.Qk(0,0);
s.O=x}else{var o=s.oX(),G=s.O/x;o.translate(-P.x,-P.y);o.scale(G,G);o.translate(P.x,P.y);s.XJ(o)}};r.D3.prototype.Pk=function(s,m,l,x,a){if(s.d=="pzoom"){if(typeof s.Z=="string")return;
s={d:"zoom",O:s.Z/100}}var P=0,o=!1,G=null;if(s.d=="adapt"){var _=0;if(s.Z=="pixel")_=1;if(s.Z=="fitscr"){var _=0,j=l.t.tH.e,U=l.t.tH.l,S=a.no?L.pE.Xb+4:8;
_=Math.min((j-S*2)/l.e,(U-S*2)/l.l)}G=new fz(Math.round(l.t.tH.e/2),Math.round(l.t.tH.l/2));P=_;r.D3.Is(l.t,G,o,P);
l.Gq=!0}if(s.d.startsWith("multi")){function X(R){var W=R[0].x-R[1].x,J=R[0].y-R[1].y;return Math.sqrt(W*W+J*J)}function c(R){return new fz((R[0].x+R[1].x)/2,(R[0].y+R[1].y)/2)}var y=s.ZK,O=c(y);
if(s.d=="multidown"){this.xk=[y,l.t.O,l.t.cr(O.x,O.y)]}else{var p=r.D3.OQ;P=this.xk[1]*X(y)/X(this.xk[0]);
P=Math.max(p[p.length-1],Math.min(p[0],P));if(P!=l.t.O)r.D3.Is(l.t,O,o,P);var D=this.xk[2],f=l.t.fU(D.x,D.y),T=l.t.X;
T.x=Math.round(T.x+O.x-f.x);T.y=Math.round(T.y+O.y-f.y);l.Gq=!0}}if(s.d=="scroll"){G=s.jR;this.Ny+=s.Fr.y;
var I=14;if(this.Ny<-I){o=!0;this.Ny=Math.max(this.Ny+I,-(I-1))}else if(this.Ny>I){o=!1;this.Ny=Math.min(this.Ny-I,I-1)}else return;
r.D3.Is(l.t,G,o,P);l.Gq=!0}if(s.d=="zoom"){G=s.jR?s.jR:new fz(Math.round(l.t.tH.e/2),Math.round(l.t.tH.l/2));
if(s.O!=null)P=s.O;else o=s.SF;r.D3.Is(l.t,G,o,P);l.Gq=!0}if(s.d=="mskView"){var H=l.G[l.N[0]];if(H.Ar<=0){H.Ar=1;
l.CR=!0}var b=H.Ar==3?H.Ao(l).v:H.SE();if(s.Z==0){l.t.OL=[1,1,1];b.IU=!1}if(s.Z==1){l.t.OL=[1,1,1];b.IU=!0}if(s.Z==2){l.t.OL=[0,0,0];
b.IU=!0}for(var C=0;C<l.$_.length;C++)l.$_[C].IU=!1;l.Be=[];l.R8=!0}};r.D3.prototype.NZ=function(s,m,l,x){if(this.ms!=x.$(dV.Il)){this.ms=x.$(dV.Il);
var a={d:v.J.AL,c:this.id,ms:this.ms},P=new h9(v.E.g,!0);P.data=a;m.Y(P);this.Vq(m,x)}};r.D3.prototype.Vq=function(s,m){var l=new h9(v.E.g,!0),x=this.PD(m);
l.data={d:v.J.GL,Cr:x?"zoom-in":"zoom-out"};s.Y(l)};r.D3.prototype.MZ=function(s,m,l,x){this.SF=s.SF;
this.Vq(m,x)};r.D3.prototype.PD=function(s){var m=this.SF;if(s.$(dV.td)&&s.$(dV.bt))m=!0;if(this.ms)m=!m;
return m};r.D3.lI=function(s,m){if(s.$(dV.ko)||s.$(dV.asX)){m.c=r.Zq;m.data={d:"zoom",SF:!0}}if(s.$(dV.xa)){m.c=r.Zq;
m.data={d:"zoom",SF:!1}}if(s.$(dV.py)){m.c=r.Zq;m.data={d:"adapt",Z:"fitscr"}}if(s.$(dV.$w)){m.c=r.Zq;
m.data={d:"adapt",Z:"pixel"}}};r.ar=function(s,m,l){r.xO.call(this,s,m,l);this.qu=null;this.bR=null;
this.OU=null;this.adq=0};r.ar.prototype=new r.xO;r.ar.prototype.enable=function(s,m,l,x,a){this.bR=l;
var P=new h9(v.E.g,!0);P.data={d:v.J.GL,Cr:"default"};m.Y(P)};r.ar.prototype.bI=function(s,m,l,x,a){var P=s.S4(),o=P[0],G=P[1];
if(G.length==0)return;var _=o[G[0]],j=_.add.vmsk,U=s.t.cr(a.x,a.y),S=4*r.W()/s.t.O,X=new bU(U.x-S,U.y-S,S*2,S*2),c=L.j.Pl(j.T,X)[0];
if(c.length!=0){j.ds=c;s.R8=!0}var y=L.j.qi(j.T,U).jV;if(y!=-1){j.N=[y];s.R8=!0}var O=new h9(v.E.g,!0);
O.data={d:v.J.AL,c:this.id,mW:a,aT:s,pX:l};m.Y(O)};r.ar.prototype.g5=function(s,m){var l=new h9(v.E.g,!0);
l.data={d:v.J.xw,AV:gN.pM};if(!m.DQ)s.Y(l);l.data={d:v.J.xw,AV:gN.JK};if(!m.HD.sj)s.Y(l)};r.ar.prototype.nQ=function(s,m,l,x){if(l.hu!=this.id)return;
if(s.N.length==0)return;var a=s.G[s.N[0]],P=a.add.vmsk,o=a.add.vstk,G=r.ar.vM(s,s.N[0]);this.qu=s;this.OU=m;
if(a.Ee()&&P!=null&&(JSON.stringify(o)!=JSON.stringify(l.Vt)||JSON.stringify(G)!=JSON.stringify(l.Lf))){this.adq=Date.now();
var _=new h9(v.E.g,!0);_.data={d:v.J.xw,AV:gN.gO,Z:G};m.Y(_);_.data={d:v.J.xw,AV:gN.ks,Z:o};m.Y(_)}};
r.ar.prototype.L8=function(s,m){if(this.qu==null)return;if(m==gN.ki||m==gN.gO||m==gN.ks){if(Date.now()-this.adq<50)return;
var l=m==gN.gO,x=this.qu,a=l?s.Lf:s.Vt,P=[],o=x.N;for(var C=0;C<o.length;C++){var G=o[C],_=x.G[G];if(!_.Ee()||_.add.vmsk==null)continue;
P.push(G)}var j=new h9(v.E.u,!0);j.c=r.ay;j.data={d:t.L2,tP:P,EY:l,Z:a};if(P.length!=0)this.OU.Y(j)}};
r.ar.prototype.atZ=function(s){if(typeof s=="number"){var m=new h9(v.E.b4,!0);m.data=r.c9.VG(0);m.data.WA.Usng.v.Type.v.Clr.v=L.K.gc({o:s>>>16&255,z:s>>>8&255,S:s>>>0&255});
this.OU.Y(m)}};r.ar.prototype.Pk=function(s,m,l,x,a){this.OU=m;if(s.d=="newfill"){if(s._z==0){var P=new h9(v.E.g,!0);
P.data={d:v.J.Qm,It:"colorpicker",wI:a.zU,QW:this.atZ.bind(this)};m.Y(P)}}else if(s.d=="pathedit"){var o=s.R7,G="",_=l.sj.slice(0),j=l.FZ.slice(0),U=l.sj.slice(0),S=l.FZ.slice(0);
if(o=="rnm"){var X=-1-s.jV,c=_[X],y=jF.Fu(s.name,c.add);if(X!=0)U[X]=y;else{S=[U.length];U.push(y);U[0]=jF.Fu("Work Path")}G="Rename"}else if(o=="new"){var y=jF.Fu("Path "+_.length);
if(s.a6s){var O=l.S4(),p=O[0],D=O[1],f=p[D[0]];y.add.vmsk=f.add.vmsk.clone();y.add.vogk=JSON.parse(JSON.stringify(f.add.vogk));
if(f.jV==-1){var T=U[S[0]]=jF.Fu("Path "+_.length);T.name=f.name;T.jV=f.jV}}U.push(y);S=[U.length-1];
G="New"}else if(o=="del"){if(S.length==0)return;S.sort(function(q,A){return q-A});if(S[0]==0){U[0]=jF.Fu(_[0].name);
S=S.slice(1)}var I=0;while(S.length!=0){U.splice(S[0]-I,1);S=S.slice(1);I++}G="Delete"}else if(o=="fromsel"){var H=U[0]=jF.Fu("Work Path");
S=[0];if(l.q==null)return;var b=l.q.channel.slice(0);for(var C=0;C<b.length;C++)b[C]=b[C]>128?2:1;var R=l.q.rect.clone();
R.yD(1,1);var W=L.B(R.k());L.kV(b,l.q.rect,W,R);var J=a4.mE(W,R.e,R.l,Math.round(R.k()*5e-4)),p=a4.S4(J),u=new ae(1,0,0,1,-1+l.q.rect.x,-1+l.q.rect.y);
for(var C=0;C<p.length;C++)L.H.A(p[C].path.s,u,p[C].path.s);for(var C=0;C<p.length;C++){var e=p[C];if(e.color==1&&e.parent==-1)continue;
var Q=L.H.vP(p[C].path,!1);H.add.vmsk.T=H.add.vmsk.T.concat(Q.slice(2))}H.add.vogk=t.GK(H.add.vmsk.T);
G="Selection to"}var q=new aU(G+" Path",this);q.data={WQ:_,EA:j,ap9:U,Pd:S};if(o=="fromsel"){q.data.MW=l.q;
q.data.Q$=null}l.eN(q);this.mH(q.data,l)}else{var Z=s.YH,O=l.S4(s.d=="append"),p=O[0],D=O[1],H=p[D[0]],E=H.add.vmsk,z=H.add.vogk,V=E.clone(),Y=E.clone(),d=JSON.stringify(z);
if(s.d=="remove"){if(s.c7&&Y.ds.length!=0){Y.T=L.j.a9j(Y.T,Y.ds,z);var w=L.j.Y7(Y.T);for(var C=0;C<Y.N.length;
C++)if(Y.N[C]>=w){Y.N.splice(C,1);C--}Y.ds=[];Z="Delete Anchors"}else{if(Y.N.length==0)return;var I=0;
for(var C=0;C<Y.N.length;C++){z.splice(Y.N[C]+I,1);I--}Y.T=L.j.a8r(Y.T,Y.N);Y.N=[];Y.ds=[];if(Z==null)Z="Delete Paths"}}if(s.d=="append"){r.ar.bC(s.a0D,Y,z)}this._K(l,H.jV,Y,z);
this.i7(l,Z,H.jV,V,Y.clone(),null,d,JSON.stringify(z))}};r.ar.RV=function(s,m){var l=L.j.asb(s.T,s.N),x=[];
for(var C=0;C<s.N.length;C++)x.push(JSON.parse(JSON.stringify(m[s.N[C]])));return[l,x]};r.ar.bC=function(s,m,l){var x=L.j.Y7(m.T),a=L.j.Y7(s[0]);
m.T=m.T.concat(s[0].slice(2));m.N=[];for(var C=0;C<a;C++)m.N.push(x+C);for(var C=0;C<a;C++)l.push(JSON.parse(JSON.stringify(s[1][C])))};
r.ar.prototype.sO=function(s,m){if(m==null)return!1;var l=m.S4(),x=l[0],a=l[1];if(a.length==0)return!1;
var P=x[a[0]],o=P.add.vmsk;if(o&&o.N.length+o.ds.length!=0)return[dV.vR,dV.H8].indexOf(s)!=-1};r.ar.prototype.NZ=function(s,m,l,x){if(s==null)return;
var a=s.S4(),P=a[0],o=a[1];if(o.length==0)return;var G=P[o[0]],_=G.add.vmsk;if(x.$(dV.Pt)||x.$(dV.z3)){_.ds=[];
s.R8=!0}if(_.N.length!=0){var j=x.jv();if(j.x!=0||j.y!=0){var U=_.clone(),S=_.clone(),X=new ae(1,0,0,1,j.x,j.y),c=G.add.vogk,y=JSON.stringify(c);
L.j.G9(S.T,X,S.N);L.R2.A(c,L.V.$D(X),S.N);this._K(s,G.jV,S,c);this.i7(s,"Move Paths",G.jV,U,S.clone(),!0,y,JSON.stringify(c))}if(x.$(dV.vR)||x.$(dV.H8))this.Pk({d:"remove",c7:this.id==r.Ce},m,s,x,l)}};
r.ar.prototype.i7=function(s,m,l,x,a,P,o,G){var _=new aU(m,this);_.data={oB:l,m7:x,ie:a,aca:P,aaI:o,$A:G};
s.eN(_)};r.ar.prototype.mH=function(s,m){if(s.oB!=null)this._K(m,s.oB,s.ie.clone(),JSON.parse(s.$A));
else{m.sj=s.ap9.slice(0);m.FZ=s.Pd.slice(0);m.R8=m.CR=!0}if(s.MW||s.Q$){m.q=s.Q$;m.g_=!0}};r.ar.prototype.V1=function(s,m){if(s.oB!=null)this._K(m,s.oB,s.m7.clone(),JSON.parse(s.aaI));
else{m.sj=s.WQ.slice(0);m.FZ=s.EA.slice(0);m.R8=m.CR=!0}if(s.MW||s.Q$){m.q=s.MW;m.g_=!0}};r.ar.prototype._K=function(s,m,l,x){var a=m<0?s.sj[-1-m]:m<1e6?s.G[m]:s.G[m-1e6].add.TySh,P=a.add.vmsk;
P.channel=null;P.A$=!0;if(P.GR){P.GR.channel=null;P.GR.A$=!0}a.add.vmsk=l;a.add.vogk=x;if(1e6<=m){ex._b(a);
var o=s.G[m-1e6],G=a,_=this.bR,j=new hJ(G.x5,_.dC),U=b3.in(j,G);o.rect=U.Bv;o.buffer=U.du;o.F();s.F()}else if(0<=m){l.A$=!0;
a.sN(s);s.F()}s.R8=s.CR=!0};r.ar.vM=function(s,m){var l=s.G[m],x=l.add.vstk,a=null;if(x&&!x.fillEnabled.v)a={pC:0};
else if(l.add.SoCo)a={pC:1,ts:l.add.SoCo};else if(l.add.GdFl)a={pC:2,ts:l.add.GdFl};else if(l.add.PtFl)a={pC:3,ts:l.add.PtFl};
return a};r.ar.ad=function(s,m){var l=s.add.vmsk,x=s.add.vstk,a=m.pC;if(x)x.fillEnabled.v=a!=0;if(a>0){var P=["SoCo","GdFl","PtFl"][a-1];
for(var C=0;C<3;C++)delete s.add[["SoCo","GdFl","PtFl"][C]];s.add[P]=m.ts}};r.c9=function(s,m,l,x){r.ar.call(this,s,m,l);
this.fG={shape:b_.Xi(),pshape:0,binop:0,crad:0,irad:40,length:4,sides:5,width:5,tolr:5,tsiz:300,cstr:{gN:0},anta:!0};
this.apr=x;this.Z2=null;this.Vs=null;this.TP=null;this.N3=new iE};r.c9.prototype=new r.ar;r.c9.prototype.Xg=function(s){return s.t0&&this.id!=r.W8};
r.c9.prototype.enable=function(s,m,l,x,a){this.bR=l;var P=new h9(v.E.g,!0);P.data={d:v.J.GL,Cr:"crosshair"};
m.Y(P)};r.c9.prototype.NZ=function(s,m,l,x){r.ar.prototype.NZ.call(this,s,m,l,x);this.N3.NZ(x);this.lk(m,l)};
r.c9.prototype.lk=function(s,m){var l=new h9(v.E.g,!0);l.data={d:v.J.AL,c:this.id,PK:this.JM(m)};s.Y(l)};
r.c9.prototype.JM=function(s){var m=this.N3.zf(0),l=this.N3.Vc(0),x=r.bJ.af(this.fG.binop,m,l);if(s.mR==1&&x==0)x=1;
return x};r.c9.prototype.Ai=function(s,m,l,x){};r.c9.prototype.s1=function(s,m,l,x,a){var P=l.mR;if(P!=2)this.g5(m,l);
if(P==2&&!s.z6())return;var o=s.t.cr(a.x,a.y);o=r.PL.ZX(s,o,l);this.TP=[o.x,o.y];this.Z2=o;this.Vs=new fz(0,0);
this.N3.s1(x)};r.c9.prototype.dR=function(s,m,l){var x=[this.Z2.clone(),m.clone()];l=this.N3.zf(1)||this.N3.Vc(1)?l:null;
if(this.apr)x=r.c9.WG(x[0],x[1],l,!0,this.fG.cstr);if(s)s.t.Bm=new bU(x[0].x,x[0].y,x[1].x-x[0].x,x[1].y-x[0].y);
return this.Ai(x[0],x[1],this.N3.zf(1),this.TP)};r.c9.prototype.zE=function(s,m,l){var x=s.t.cr(m.x,m.y),a=this.fG.cstr;
if(a.gN==2){var P=new bU(x.x-a.x,x.y-a.y,a.x,a.y),o=r.PL.nM(s,P,l);x.x+=o[0];x.y+=o[1];r.PL.za(s,P,o)}else x=r.PL.ZX(s,x,l);
return x};r.c9.prototype.zk=function(s,m,l,x,a){if(this.Z2==null)return;var P=this.TP,o=P.length,G=a?this.zE(s,a,l):new fz(P[o-2],P[o-1]);
if(x.$(dV.td))this.Z2=G.fy(this.Vs);else this.Vs=G.fy(this.Z2);P.push(G.x,G.y);if(this.fG.shape==null)this.fG.shape=l.Pb[0];
var _=this.dR(s,G,x)[0],j=L.H.vt(_);s.D.NJ=j;if(this.id!=r.W8&&this.id!=r.IO&&this.id!=r.Tj)r.xO.G$(a,s.t.Bm,s,l);
s.R8=!0;this.N3.zk()};r.c9.prototype.a4C=function(s,m,l,x){var a=s[4].clone();if(x){a.x-=m/2;a.y-=l/2}var P=this.Ai(a,new fz(a.x+m,a.y+l),!1,this.TP);
this.E6(s[0],s[1],s[2],P)};r.c9.prototype.E6=function(s,m,l,x){var a=new h9(v.E.b4,!0);a.data=r.c9.X$(x[1],l);
m.Y(a);if(x[1].v.classID=="customShape"&&x[1].v.Nm.v.startsWith("--")){var P=s.S4(),o=P[0],G=P[1],_=o[G.pop()],j=_.add.vmsk,U=_.add.vogk,S=j.clone();
S.T=x[0];this._K(s,_.jV,S,U)}};r.c9.prototype.I6=function(s,m,l,x,a,P){if(this.Z2==null)return;var o=this.zE(s,a,l),G=this.JM(l),_=l.mR,j=this.TP,U=j.length;
if(this.id==r.W8&&U<=4){}else if(U<=4){o.x=Math.round(o.x);o.y=Math.round(o.y);var S=new h9(v.E.g);S.data={d:v.J.Qm,It:"createshape",aj9:this.a4C.bind(this),adb:this.name,ad3:[s,m,l,x,o]};
if(!P)m.Y(S)}else if(U!=2){var X=this.dR(s,o,x),c=X[0],y=s.S4(!0),O=y[0],p=y[1],D=p.length-1;if(_==1&&c.length>2||_==0&&G!=0&&D!=-1&&O[p[D]].jV>=0){c[2].aZ=[1,2,3,0][G-1];
var f=O[p.pop()],T=f.add.vmsk,I=f.add.vogk,H=T.clone(),b=T.clone(),R=JSON.stringify(I);b.T=b.T.concat(c.slice(2));
b.N=[L.j.Y7(b.T)-1];var W=L.R2.hN(X[1]);I.push(W?W:L.R2.dV());this._K(s,f.jV,b,I);this.i7(s,this.name,f.jV,H,b,null,R,JSON.stringify(I))}else if(_==0){this.E6(s,m,l,X)}else if(_==2){var b=new t.sD;
b.T=b.T.concat(c.slice(2));var J=b.SE();if(!this.fG.anta)L.round(J.channel);var u=L.B(J.rect.k()*4);
L.MP(u,(l.zU&255)<<16|(l.zU>>8&255)<<8|(l.zU>>16&255)<<0);L._Y(J.channel,u,3);var e=new h9(v.E.u,!0);
e.c=r.Fe;e.data={d:"draw",lo:{buffer:u,rect:J.rect.clone()},YH:this.name};m.Y(e)}}this.Z2=null;s.D.NJ=null;
s.D.p3=null;s.D.va=[];s.t.Bm=null;s.R8=!0;this.N3.I6();this.lk(m,l)};r.c9.prototype.MZ=function(s,m,l,x,a){for(var l in s)this.fG[l]=s[l]};
r.c9.WG=function(s,m,l,x,a){var P=s.x,o=s.y,G=m.x,_=m.y;if(a&&a.gN==2){if(x){G=Math.round(G);_=Math.round(_)}P=G-a.x;
o=_-a.y}else{var j=0;if(a&&a.gN==1)j=a.y/a.x;else if(l&&l.$(dV.Ht))j=1;if(j!=0){if(x){if(P<G)P=Math.floor(P);
else P=Math.ceil(P);if(o<_)o=Math.floor(o);else o=Math.ceil(o)}var U=Math.abs(G-P),S=Math.abs(_-o),X=U;
if(S/U<j)X*=S/U/j;G=G>P?P+X:P-X;_=_>o?o+X*j:o-X*j}if(l&&l.$(dV.Il)){P-=G-P;o-=_-o}}var s=new fz(P,o),m=new fz(G,_);
if(x)r.c9.a4Z(s,m);return[s,m]};r.c9.a4Z=function(s,m){if(s.x>m.x){var l=s.x;s.x=m.x;m.x=l}if(s.y>m.y){var l=s.y;
s.y=m.y;m.y=l}s.x=Math.floor(s.x);s.y=Math.floor(s.y);m.x=Math.ceil(m.x);m.y=Math.ceil(m.y)};r.c9.aso=function(){return{classID:"Mk",null:{t:"obj ",v:[{t:"Clss",v:{classID:"contentLayer"}}]},Usng:{t:"Objc",v:{classID:"contentLayer",Type:{t:"Objc",v:{}}}}}};
r.c9.VG=function(s,m){var l=r.c9.aso();if(m==null)m=JSON.parse(JSON.stringify(i4.Om[s]));r.EM.PR(m,l.Usng.v.Type.v,s);
return{YF:"make",WA:l}};r.c9.X$=function(s,m){var l=m.Lf,x=JSON.parse(JSON.stringify(m.Vt));if(l.pC==0)x.fillEnabled.v=!1;
var a=r.c9.VG(Math.max(0,l.pC-1),l.ts);a.WA.Usng.v.Shp=s;a.WA.Usng.v.strokeStyle={t:"Objc",v:x};return a};
r.Dc=function(){r.ar.call(this,[10,29],r.Ce,"tools/pen");this.fk=null;this.w6=null;this.Hl=null;this.aei=0;
this._9=null;this.yy=!1;this.T5=!1;this.QM=!1;this.v$=!1};r.Dc.prototype=new r.ar;r.Dc.prototype.Xg=function(s){return this.w6!=null};
r.Dc.prototype.NZ=function(s,m,l,x){r.ar.prototype.NZ.call(this,s,m,l,x);if(!x.$(dV.Il))this.QM=!1};
r.Dc.prototype.s1=function(s,m,l,x,a){this.fk=a;this.g5(m,l);var P=s.t.cr(a.x,a.y),O,p;P.x=Math.round(P.x);
P.y=Math.round(P.y);var o=r.PL.ZX(s,P,l),G=l.mR,_=this.aei;if(G==2)G=0;var j=s.S4(G==1),U=j[0],S=j[1],X=U[S.pop()],c=X?X.add.vmsk:null;
if(G==0&&_!=0&&X&&X.jV>=0)G=1;var y=r.gF(s,a);if(c)O=L.j.qi(c.T,P,!0,y);var D=x.$(dV.Il);if(G==0&&(c==null||c.ds.length==0&&O.jV==-1)){var f=new h9(v.E.b4,!0),T=L.R2.xF("customShape",[0,0,1,1],null,null,null,"--");
f.data=r.c9.X$(T,l);m.Y(f);this.v$=!0;j=s.S4(!0);U=j[0];S=j[1];X=U[S.pop()];c=X.add.vmsk;c.T=c.T.slice(0,2)}var I=X.add.vogk;
this.w6=c.clone();this.Hl=JSON.stringify(I);var H=c.T,b=L.j.Y7(H);p=L.j.Pl(c.T,new bU(P.x-y,P.y-y,y*2,y*2),c.ds);
O=L.j.qi(c.T,P,!0,y);var R=p[0].length+p[1].length+p[2].length;if(O.jV!=-1&&p[0].length==0){var W=L.j.Po(H,O.jV);
while(H[W].length<=O.CJ){O.CJ-=H[W].length;W+=H[W].length+1}H[W].length++;H.splice(W+2+O.CJ,0,{type:4,o3:o.clone(),R:o.clone(),Ux:o.clone()});
c.ds=[W+2+O.CJ]}else if(R!=0&&D){var J=0;for(var C=0;C<3;C++)if(p[C].length!=0){J=p[C][0];this.T5=C==1;
break}if(p[0].length!=0){var u=c.T.length-1,e=c.T[J];e.Ux=e.R.clone();var Q=e.type>=3?3:0;if(J!=u){e.o3=e.R.clone();
e.type=Q+1;this.QM=!0}else e.type=Q+2}c.ds=[J]}else if(p[0].length==1&&H[p[0][0]-1]&&H[p[0][0]-1].aZ==null){var J=p[0][0],W=L.j.pa(H,J);
W=L.j.Po(H,W);var q=W+H[W].length;if(J!=q){H[W].length--;H.splice(J,1);q--}c.ds=[q]}else{var Z=0;if(c.ds.length!=1){c.N=[b];
H.push({type:3,length:1,aZ:[1,2,3,0][Math.max(0,_-1)],pe:0,Xc:0,BG:0});Z=H.length;I.push(L.R2.dV())}else{var E=c.ds[0],z=L.j.pa(H,E),W=L.j.Po(H,z);
E=W+H[W].length;if(fz.rv(P,H[W+1].R)<y){H[W].type=0;c.ds=[W+1];this._9=o;this.yy=!0;this._K(s,X.jV,c,I);
s.R8=!0;return}H[W].length++;Z=E+1;if(E==W+1&&H[W].length!=2)Z=W+1}if(x.$(dV.Ht)&&H[Z-1]&&H[Z-1].R)o=r.W0.m4(H[Z-1].R,o);
H.splice(Z,0,{type:4,o3:o.clone(),R:o.clone(),Ux:o.clone()});c.ds=[Z];this._9=o}this._K(s,X.jV,c,I);
s.R8=!0};r.Dc.prototype.zk=function(s,m,l,x,a){if(this.w6==null)return;var P=this.fk;if(P&&fz.rv(P,a)<r.gF({t:{O:1}},a))return;
this.fk=null;var o=s.t.cr(a.x,a.y),G=r.PL.ZX(s,o,l),_=s.S4(l.mR==1),j=_[0],U=_[1],S=j[U.pop()],X=S.add.vmsk,c=X.T,y=c[X.ds[0]];
if(x.$(dV.td)){if(x.$(dV.Ht))G=r.W0.m4(this._9,G);var O=y.R.fy(y.Ux),p=y.o3.fy(y.R);y.Ux=G;y.R=G.add(O);
y.o3=y.R.add(p)}else{if(x.$(dV.Ht))G=r.W0.m4(y.R,G);if(this.T5){var D=y.o3;y.o3=y.Ux;y.Ux=D}if(this.yy){var f=fz.rv(y.R,G),T=f==0?0:fz.rv(y.R,y.Ux)/f;
y.Ux.x=y.R.x+T*(G.x-y.R.x);y.Ux.y=y.R.y+T*(G.y-y.R.y)}else y.Ux=G;if(x.$(dV.Il)&&!this.QM)y.type=5;else{y.type=4;
y.o3=y.R.add(y.R.fy(G))}this._9=G;if(this.T5){var D=y.o3;y.o3=y.Ux;y.Ux=D}}this._K(s,S.jV,X,S.add.vogk);
s.R8=!0};r.Dc.prototype.I6=function(s,m,l,x,a){if(this.w6==null)return;var P=s.S4(l.mR==1),o=P[0],G=P[1],_=o[G.pop()],j=_.add.vmsk,U=_.add.vogk;
if(this.yy){j.ds=[];this._K(s,_.jV,j,_.add.vogk)}var S=this.w6.T.length,X=j.T.length;if(!this.v$)this.i7(s,this.yy?"Close Path":(S==X?"Move":S<X?"Add":"Delete")+" Anchor Point",_.jV,this.w6,j.clone(),null,this.Hl,JSON.stringify(U));
this.v$=!1;this.yy=!1;this.T5=!1;this.QM=!1;this.w6=null};r.Dc.prototype.MZ=function(s,m,l,x,a){this.aei=s.binop};
r.O7=function(){r.c9.call(this,[10,30],r.W8,"tools/fpen",!1)};r.O7.prototype=new r.c9;r.O7.prototype.Ai=function(s,m,l,x){return[L.j.fm(x,this.fG.tolr),L.R2.xF("customShape",[0,0,1,1],null,null,null,"--")]};
r.II=function(){r.ar.call(this,[10,27],r.MA,"tools/pselect");this.dm=null;this.jg=!1;this.RE=null;this.w6=null;
this.v5=null;this.Hl=null;this.i9=null;this.LS=null;this.CY=null;this.Ek=null};r.II.prototype=new r.ar;
r.II.prototype.Xg=function(s){return s.t0};r.II.prototype.s1=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y),o=s.S4(),G=o[0],_=o[1],j,U;
for(var C=0;C<_.length;C++){var S=G[_[C]],X=S.add.vmsk,c=L.j.qi(X.T,P).jV;if(c!=-1){this.RE=j=S;U=c}for(var y=0;
y<X.DF.length;y++){var O=L.j.GQ(X.T,X.DF[y]);if(O==null)continue;var p=fz.rv(O,P);if(p<4*r.W()/s.t.O){var D=s.G[S.jV-1e6].add.TySh,f=D.x5.Curve,T=D.A,I=f.Reversed;
f.Reversed=!1;var f=hJ.QZ(D.x5.Curve);f.Reversed=I;L.H.A(f[0],T,f[0]);this.CY=[f,y,T.lz*T.Am-T.S*T.In];
this.RE=j=S;U=0}}if(this.CY)break}if(j!=null){var X=j.add.vmsk;X.ds=[];var H=X.N.indexOf(U);if(x.$(dV.Ht)){if(H==-1){X.N.push(U);
this.jg=!0}else X.N.splice(H,1)}else{if(H==-1)X.N=[U];this.jg=!0}this.LS=L.j.dj(X.T,X.N)}this.dm=P;this.Ek=new iw(P);
s.CR=!0;s.R8=!0};r.II.prototype.zk=function(s,m,l,x,a){if(this.dm==null)return;var P=s.t.cr(a.x,a.y);
if(this.jg){P=this.Ek.Hz(P,x);var o=this.RE;if(this.w6==null){this.w6=this.v5=o.add.vmsk.clone();this.Hl=this.i9=JSON.stringify(o.add.vogk);
if(x.$(dV.Il)){var G=this.w6.clone(),_=JSON.parse(this.Hl),j=r.ar.RV(G,_);r.ar.bC(j,G,_);this.v5=G;this.i9=JSON.stringify(_)}}var G=this.v5.clone(),_=JSON.parse(this.i9);
if(this.CY){var U=this.CY,S=U[0][0],X=L.H.Zc(S,P.x,P.y);G.DF[U[1]]=U[0][1][X];var c=S[X*2],y=S[X*2+1],O=(S[X*2+2]-c)*(P.y-y)-(S[X*2+3]-y)*(P.x-c);
if(U[2]<0)O=-O;G.vF=O>0}else{var p=this.LS.clone(),D=p.x,f=p.y;p.offset(P.x-this.dm.x,P.y-this.dm.y);
p.x=Math.round(p.x);p.y=Math.round(p.y);var T=r.PL.nM(s,p,l),I=new ae(1,0,0,1,p.x-D+T[0],p.y-f+T[1]);
L.j.G9(G.T,I,G.N);L.R2.A(_,L.V.$D(I),G.N);r.PL.za(s,p,T)}this._K(s,o.jV,G,_)}else{var H=this.dm;s.D.NJ=L.H.$$(new bU(H.x,H.y,P.x-H.x,P.y-H.y));
s.R8=!0}};r.II.prototype.I6=function(s,m,l,x,a){if(this.dm==null)return;var P=s.t.cr(a.x,a.y),o=this.RE,G=o?o.add.vmsk:null;
if(this.jg){var _=JSON.stringify(o.add.vogk);if(!this.dm.yb(P))this.i7(s,"Move Paths",o.jV,this.w6,G,null,this.Hl,_);
if(s!=null&&s.D.p3){s.D.p3=null;s.R8=!0}}else{if(G){var j=this.dm,U=new bU(j.x,j.y,P.x-j.x,P.y-j.y),S=L.j.aa0(G.T,U);
if(x.$(dV.Ht)){for(var C=0;C<S.length;C++)if(G.N.indexOf(S[C])==-1)G.N.push(S[C])}else G.N=S}s.D.NJ=null;
s.R8=!0}this.dm=null;this.w6=null;this.CY=null;this.jg=!1;this.Ek=null};r.II.prototype.nQ=function(s,m,l,x){r.ar.prototype.nQ.call(this,s,m,l,x);
if(l.hu!=this.id)return;if(s.N.length==0)return;var a=s.S4(),P=a[0],o=a[1];if(o.length==0)return;var G=P[o[0]],_=G.add.vmsk,j=G.add.vstk,U=G.add.vogk,S=new h9(v.E.g,!0);
S.data={d:v.J.AL,c:this.id,Iu:"main",Vz:_?_:null,R2:U};m.Y(S)};r.II.prototype.MZ=function(s,m,l,x,a){var P=s.KA;
if(P.Vz){var o=l.S4(),G=o[0],_=o[1];if(_.length==0)return;var j=G[_[0]],U=j.add.vmsk.clone(),S=JSON.stringify(j.add.vogk),X=P.Vz;
this._K(l,j.jV,X,P.R2);var c=[18,5];if(U.T.length==X.T.length)c=U.N[0]==X.N[0]?"Fill Rule":"Path Order";
this.i7(l,c,j.jV,U,X,null,S,JSON.stringify(P.R2))}};r.dB=function(){r.ar.call(this,[10,28],r.j0,"tools/dselect");
this.xT=-1;this.vx=-1;this.kR=null;this.dm=null;this.RE=null;this.w6=null;this.Hl=null;this.qu=null;
this.W_=0;this.atQ={psnap:!1};this.Ek=null};r.dB.prototype=new r.ar;r.dB.prototype.Xg=function(s){return s.t0};
r.dB.prototype.MZ=function(s){this.atQ=s};r.dB.prototype.Pk=function(s,m,l,x,a){if(s.d=="crnr"){if(l==null)return;
var P=l.S4(),o=P[0],G=P[1];if(G.length==0){alert("No paths selected");return}var _=o[G[0]],j=_.add.vmsk;
if(j.ds.length==0){alert("No corners selected");return}for(var C=0;C<j.ds.length;C++){var U=j.T[j.ds[C]];
if(!U.R.yb(U.Ux)||!U.R.yb(U.o3)){alert("Only sharp corners can be rounded");return}}if(this.w6==null){this.w6=_.add.vmsk.clone();
this.Hl=JSON.stringify(_.add.vogk);this.RE=_;this.qu=l}var S=new h9(v.E.g,!0);S.data={d:v.J.Qm,It:"cornerradius",nA:5,Uo:this.akq.bind(this)};
m.Y(S)}else r.ar.prototype.Pk.call(this,s,m,l,x,a)};r.dB.prototype.akq=function(s){if(s=="confirm"){var m=this.qu,l=this.RE,x=l.add.vmsk,a=l.add.vogk;
this.i7(m,[12,94,0],l.jV,this.w6,x,null,this.Hl,JSON.stringify(a));this.kL();return}var x=this.w6.clone(),a=JSON.parse(this.Hl),P=x.ds;
if(s=="cancel"){}else{var o=[];for(var C=0;C<P.length;C++){var G=P[C],_=L.j.pa(x.T,G,!0),S=0;if(o.indexOf(_)!=-1)continue;
o.push(_);var j=L.j.Po(x.T,_,!0),U=x.T[j].length,X=[];for(var c=0;c<U;c++){var y=x.ds.indexOf(j+c+1)==-1?0:s;
X.push(y);if(y!=0)S++}L.j.Kz(x.T,j,X);for(var c=0;c<P.length;c++)if(P[c]>j+U)P[c]+=S}this.$f(x,a);x.ds=[]}this._K(this.qu,this.RE.jV,x,a);
if(s=="cancel")this.kL()};r.dB.prototype.disable=function(s,m,l,x){this.Ys(s)};r.dB.prototype.s1=function(s,m,l,x,a){this.Ys(s);
var P=s.t.cr(a.x,a.y),S,X,c;this.kR=P.clone();var o=s.S4(),G=o[0],_=o[1];if(_.length==0)return;var j=r.gF(s,a),U=new bU(P.x-j,P.y-j,j*2,j*2);
for(var y=0;y<_.length;y++){S=this.RE=G[_[y]];X=S.add.vmsk;c=L.j.Pl(X.T,U);if(c[0].length+c[1].length+c[2].length!=0)break}var O=[!1,!1,!1];
for(var C=0;C<3;C++){for(var p=0;p<c[C].length;p++){var D=c[C][p];if(X.ds.indexOf(D)!=-1||C==1&&X.ds.indexOf(D-1)!=-1||C==2&&X.ds.indexOf(D+1)!=-1){c[C]=[D];
O[C]=!0;break}}}if(c[0].length!=0&&(O[0]||!O[1]&&!O[2])){var f=c[0][0],T=X.ds.indexOf(f);if(x.$(dV.Ht)){if(T==-1)X.ds.push(f);
else{X.ds.splice(T,1);s.R8=!0;return}}else if(T==-1)X.ds=[f];this.xT=f;this.vx=0}else if(c[1].length!=0&&O[1]){this.xT=c[1][0];
this.vx=1}else if(c[2].length!=0&&O[2]){this.xT=c[2][0];this.vx=2}else{var I=L.j.qi(X.T,P,!0,j);if(I.jV==-1)this.dm=P;
else{X.N=[I.jV];X.ds=[]}}if(this.w6==null){this.w6=S.add.vmsk.clone();this.Hl=JSON.stringify(S.add.vogk)}this.Ek=new iw(P);
s.R8=!0};r.dB.prototype.zk=function(s,m,l,x,a){if(s==null)return;var P=s.t.cr(a.x,a.y),o=this.RE;if(this.xT!=-1){var G=this.w6.clone(),_=o.add.vogk,j=G.T[this.xT];
j=[j.R,j.o3,j.Ux][this.vx];if(x.$(dV.Ht)){if(this.vx==0){P=this.Ek.Hz(P,x);P.x+=j.x-this.kR.x;P.y+=j.y-this.kR.y}else P=r.W0.m4(G.T[this.xT].R,P)}else{if(this.atQ.psnap){P.x=Math.round(P.x);
P.y=Math.round(P.y)}P=r.PL.ZX(s,P,l)}if(this.vx==0){var U=new ae(1,0,0,1,P.x-j.x,P.y-j.y);L.j.G9(G.T,U,null,G.ds)}else{var S=G.T[this.xT],X=S.o3,c=S.Ux;
if(this.vx==2){X=S.Ux;c=S.o3}if(x.$(dV.Il)&&(S.type==1||S.type==4))S.type++;X.Qk(P.x,P.y);if(S.type==1||S.type==4){var y=fz.rv(X,S.R),O=fz.rv(c,S.R);
if(O!=0){c.x=S.R.x-(X.x-S.R.x)*(O/y);c.y=S.R.y-(X.y-S.R.y)*(O/y)}}}this.$f(G,_);this._K(s,o.jV,G,_)}else if(this.dm!=null){var p=this.dm;
s.D.NJ=L.H.$$(new bU(p.x,p.y,P.x-p.x,P.y-p.y));s.R8=!0}else{var D=s.S4(),f=D[0],T=D[1],o,G,b;if(T.length==0)return;
var I=r.gF(s,a),H=new bU(P.x-I,P.y-I,I*2,I*2);for(var R=0;R<T.length;R++){o=f[T[R]];G=o.add.vmsk;b=L.j.Pl(G.T,H);
if(b[0].length+b[1].length+b[2].length!=0)break}this.Ys(s);for(var C=0;C<3;C++){for(var W=0;W<b[C].length;
W++){var J=b[C][W],u=G.T[J];u=C==0?u.R:C==1?u.o3:u.Ux;s.D.om.push(s.D.sB.length>>>1);s.D.sB.push(u.x,u.y);
s.R8=!0}}}};r.dB.prototype.Ys=function(s){if(s&&s.D.sB.length!=0){s.D.sB=[];s.D.om=[];s.R8=!0}};r.dB.prototype.I6=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y),o=this.RE,G=o?o.add.vmsk:null,_=o?o.add.vogk:null;
if(this.xT!=-1){if(Date.now()-this.W_<300){var j=G.T[this.xT],U=this.vx,S=null;if(U==0){var X=j.o3.yb(j.R),c=j.Ux.yb(j.R);
if(!X&&!c){S="Anchor Type";if(j.type==1||j.type==4)j.type++;else{j.type--;j.Ux=j.R.add(j.R.fy(j.o3))}}else{S="Add Handles";
if(X&&c){j.o3.x-=30;j.Ux.x+=30}else if(X)j.o3=j.R.add(j.R.fy(j.Ux));else if(c)j.Ux=j.R.add(j.R.fy(j.o3))}}else{S="Remove Handle";
if(U==1)j.o3.dw(j.R);else j.Ux.dw(j.R)}this.$f(G,_);this._K(s,o.jV,G,_);this.i7(s,S,o.jV,this.w6,G,null,this.Hl,JSON.stringify(_))}else if(!this.kR.yb(P)){this.i7(s,"Drag Anchors",o.jV,this.w6,G,null,this.Hl,JSON.stringify(_))}this.W_=Date.now()}else if(this.dm!=null){var y=this.dm,O=new bU(y.x,y.y,P.x-y.x,P.y-y.y);
if(O.e<0)O.x+=O.e;if(O.l<0)O.y+=O.l;O.e=Math.abs(O.e);O.l=Math.abs(O.l);var p=L.j.Pl(G.T,O);G.ds=p[0].concat(x.$(dV.Ht)?G.ds:[]);
s.D.NJ=null}this.kL();s.R8=!0};r.dB.prototype.kL=function(){this.RE=null;this.w6=null;this.dm=null;this.xT=this.vx=-1;
this.Ek=null};r.dB.prototype.$f=function(s,m){for(var C=0;C<s.ds.length;C++){var l=L.j.pa(s.T,s.ds[C]);
L.R2.NN(m,l)}};r.dB.prototype.NZ=function(s,m,l,x){if(s==null)return;var a=s.S4(),P=a[0],o=a[1];if(o.length==0)return;
var G=P[o[0]],_=G.add.vmsk;if(_==null||_.ds.length==0)return;var j=G.add.vogk,U=JSON.stringify(j),S=x.jv();
if(S.x!=0||S.y!=0){var X=_.clone(),c=_.clone(),y=new ae(1,0,0,1,S.x,S.y);L.j.G9(c.T,y,null,c.ds);this.$f(c,j);
this._K(s,G.jV,c,j);this.i7(s,"Move Anchors",s.N[0],X,c.clone(),!0,U,JSON.stringify(j))}if(x.$(dV.vR)||x.$(dV.H8))this.Pk({d:"remove",c7:!0},m,s,x,l)};
r.dB.prototype.i7=function(s,m,l,x,a,P,o,G){var _=s.b1();if(P&&_!=null&&_.c==this&&_.data.aca&&_.data.oB==l&&JSON.stringify(_.data.m7.ds)==JSON.stringify(x.ds)){_.data.ie=a;
_.data.$A=G}else{var _=new aU(m,this);_.data={oB:l,m7:x,ie:a,aca:P,aaI:o,$A:G};s.eN(_)}};r.Rect=function(){r.c9.call(this,[10,32],r.RJ,"tools/rect",!0)};
r.Rect.prototype=new r.c9;r.Rect.prototype.Ai=function(s,m,l){var x=this.fG.crad,a=m.x-s.x,P=m.y-s.y;
return[L.j.sh.Rect(s.x,s.y,a,P,x),L.R2.xF("Rctn",[s.x,s.y,m.x,m.y],[x,x,x,x])]};r.$d=function(){r.c9.call(this,[10,33],r.Ha,"tools/ellipse",!0)};
r.$d.prototype=new r.c9;r.$d.prototype.Ai=function(s,m,l){var x=m.x-s.x,a=m.y-s.y;return[L.j.sh.$d(s.x,s.y,x,a),L.R2.xF("Elps",[s.x,s.y,m.x,m.y])]};
r.RG=function(){r.c9.call(this,[10,34],r.IO,"tools/pshape",!1)};r.RG.prototype=new r.c9;r.RG.prototype.Ai=function(s,m,l){var x=this.fG.pshape,a=this.fG.crad,P=this.fG.irad/100,o=this.fG.sides,G=this.fG.width,_=this.fG.tsiz,j=this.fG.length,p;
m=m.clone();if(l){if(Math.abs(m.x-s.x)<Math.abs(m.y-s.y))m.x=s.x;else m.y=s.y}var U=s.x,S=s.y,X=m.x,c=m.y,y=Math.sqrt((X-U)*(X-U)+(c-S)*(c-S)),O=Math.atan2(-c+S,X-U);
if(x==0)p=L.j.sh.T_(U,S,y,O,o,a);if(x==1)p=L.j.sh.J7(U,S,y,O,o,a,P);if(x==2)p=L.j.sh.alJ(s.x,s.y,m.x,m.y,G,_/100);
if(x==3)p=L.j.sh.a6F(U,S,y,O,j);return[p,L.R2.xF("customShape",[s.x,s.y,m.x,m.y],null,null,null,"--")]};
r.RG.prototype.NZ=function(s,m,l,x){var a=x.jv(),P=this.fG,o,G;if(a.y!=0){var _=-a.y,j=P.pshape;if(j<2){o="sides";
G=Math.max(3,Math.min(100,P.sides+_))}else if(j==2){o="width";G=Math.max(1,Math.min(100,P.width+_))}else if(j==3){o="length";
G=Math.max(4,Math.min(40,P.length+_))}}if(a.x!=0){o="pshape";G=Math.max(0,Math.min(3,P.pshape+a.x))}if(o){var U=new h9(v.E.g,!0),S={};
S[o]=G;P[o]=G;U.data={d:v.J.AL,c:this.id,R7:"vals",am6:S};m.Y(U);this.zk(s,m,l,x)}};r.bn=function(){r.c9.call(this,[10,35],r.Tj,"tools/line",!1)};
r.bn.prototype=new r.c9;r.bn.prototype.Ai=function(s,m,l){var x=this.fG.width;m=m.clone();if(l){m=r.W0.m4(s,m)}return[L.j.sh.bn(s.x,s.y,m.x,m.y,x),L.R2.xF("Ln",null,null,[s.x,s.y,m.x,m.y],x)]};
r.h2=function(){r.c9.call(this,[10,31],r.KN,"tools/cshape",!0)};r.h2.prototype=new r.c9;r.h2.prototype.Ai=function(s,m,l){var x=this.fG.shape,a=x.Fd.e/x.Fd.l,P=t.sD.Ps(x.T);
m=m.clone();if(l){m.y=s.y+(m.x-s.x)/a}var o=m.x-s.x,G=m.y-s.y;L.j.G9(P,new ae(o,0,0,G,s.x,s.y));return[P,L.R2.xF("customShape",[s.x,s.y,m.x,m.y],null,null,null,x.uk)]};
r.Q=function(s,m,l){r.xO.call(this,s,m,l);this.V3=0;this.G=null;this.Tm=null;this.pX=null;this.RF=1;
this.$X=!1;this.cursor=null;this.B5=null;this.MW=null;this.VC=!1;this.mu=null;this.aqc=0;this.e6=null;
this.HY=0;this.sW=null;this.Hy=null;this.c3=null;this.Ja=null;this.al3=null;this.nC=null};r.Q.prototype=new r.xO;
r.Q.pU=function(s,m){var l={classID:"null",null:e6.Yr("Dcmn",!0)};if(s)l.Angl={t:"UntF",v:{type:"#Ang",val:m}};
else l.Axis={t:"enum",v:{Ornt:m}};return{YF:s?"rotateEventEnum":"flip",WA:l}};r.Q.prototype.bI=function(s,m,l,x,a){var P=new h9(v.E.g,!0);
P.data={d:v.J.AL,c:this.id,mW:a,aT:s,pX:l};m.Y(P);this.mL=!1};r.Q.prototype.Xg=function(s){return this.Hy&&this.Hy.HO()};
r.Q.prototype.Pk=function(s,m,l,x,a){this.pX=a;if(s.d=="again"&&this.e6==null)return;if(!this.XW(l,a))return;
if(this.Hy){this.hw(s,this.Hy.rY());this.G3(l,a,0,!0);this.f6(l);return}this.ee(l,s.i==null,s.i);this.SW(l);
this.hw(s);this.uE(l,m,s.YH,!1)};r.Q.prototype.hw=function(s,m){var l=this.sW;if(m==null){var x=s.Ac!=null?s.Ac:4;
m=this.Hy.a4w()[x]}var a=m.x,P=m.y;if(s.d=="rot"&&s.Z!=Math.PI&&(l.e+l.l&1)==1){a=Math.floor(a);P=Math.floor(P)}var o=new ae;
o.translate(-a,-P);if(s.d=="rot")o.rotate(s.Z);if(s.d=="scl")o.scale(s.Z.x,s.Z.y);if(s.d=="mat")o.concat(s.Z);
o.translate(a,P);if(s.d=="again")o=this.e6;var G=this.Hy.D7();L.H.A(G,o,G);this.Hy.xp(G)};r.Q.prototype.hl=function(){return!0};
r.Q.prototype.XW=function(s,m){if(s==null)return!1;if(this.id==r.Mg)return s.q!=null;var l=s.cT(!0,null,null,!0);
if(this.id==r.XE&&s.G[l[0]].rect.Xh()){alert("Layer is empty.");return!1}for(var C=0;C<l.length;C++){var x=s.G[l[C]];
if(x.Xz(2)||x.Xz(31)){alert(iX.get([6,57,0]));return!1}if(x.add.artb){alert("You can not transform the whole artboard");
return!1}if(x.add.TySh)if(!b3.zm(x.add.TySh,m.dC))return!1;if(x.add.SoLd){if(l.length==1&&!L.Lv.AY(x.add.SoLd.warp.v)&&(x.SE()&&x.SE().FT||x.add.vmsk&&x.add.vmsk.FT)){alert("Unlink masks before transforming Smart Object");
return!1}if(!s.a4M(x.add.SoLd.Idnt.v)){alert("Unsupported format of the smart object ("+s.a7(x.add.SoLd.Idnt.v).zA+")");
return!1}}}if(s.q==null)return!0;if(!s.z6())return!1;return s.ZD()};r.Q.prototype.s1=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y);
if(this.HY==1){var o=L.V.ms(L.V.CX(this.Hy.D7(),this.sW));P=L.V.Rs(o,P)}var G=this.HY==0?this.Hy:this.c3;
this.$X=G.s1(s,l,x,P,null,null,a);if(this.$X&&G.w2(P)){if(Date.now()-this.aqc<250)this.uE(s,m,null,!0);
this.aqc=Date.now()}};r.Q.prototype.jQ=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.GL,Cr:this.cursor};
s.Y(m)};r.Q.prototype.zk=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y);if(this.HY==1){var o=L.V.ms(L.V.CX(this.Hy.D7(),this.sW));
P=L.V.Rs(o,P)}var G=this.HY==0?this.Hy:this.c3;if(!a.t0){var _="default";if(G){var j=G.l8(P,s.t.O,null,a);
if(j)_=j}if(_!=this.cursor){this.cursor=_;this.jQ(m)}}if(!this.$X)return;G.zk(s,l,x,P);this.G3(s,l,0,!0);
this.f6(s);this.CL(m)};r.Q.prototype.I6=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y);this.Hy.I6(s,l,x,P);
this.$X=!1};r.Q.prototype.NZ=function(s,m,l,x){if(x.$(dV.z3))this.uE(s,m,null,!0);else if(x.$(dV.Pt))this.uj(s,m);
else{var a=this.Hy.NZ(s,l,x);if(a){this.G3(s,l,0,!0);this.CL(m)}}};r.Q.prototype.MZ=function(s,m,l,x){if(s.Iu=="commit")this.uE(l,m,null,!0);
else if(s.Iu=="cancel")this.uj(l,m);else if(s.Iu=="switchWarp"){this.HY=1-this.HY;this.acM();this.f6(l);
this.CL(m)}else if(s.Iu=="wrp"){this.c3.md(s.fD);this.f6(l);this.G3(l,this.pX,0,!0)}else if(s.Iu=="ctyp"){this.Hy.apG(s.v7);
this.f6(l);this.CL(m)}else if(s.Iu=="cen"){this.Hy.aro(s.R_);this.f6(l);this.G3(l,this.pX,0,!0);this.CL(m)}else if(s.Iu=="trn"){var a=L.V.$D(s.Yz),P=this.sW,o=L.V.CX(this.Hy.D7(),this.sW);
a[6]=o[6],a[7]=o[7];var G=[P.x,P.y,P.x+P.e,P.y,P.x+P.e,P.y+P.l,P.x,P.y+P.l];L.V.A(a,G);this.RF=s.RF;
this.Hy.xp(G);this.f6(l);this.G3(l,this.pX,0,!0)}};r.Q.prototype.f6=function(s){if(this.HY==0)this.Hy.Yk(s,this.pX);
else{this.c3.Yk(s);var m=L.V.CX(this.Hy.D7(),this.sW);L.V.A(m,s.D.NJ.s);L.V.A(m,s.D.Sk)}};r.Q.prototype.uE=function(s,m,l,x){this.G3(s,this.pX,this.RF);
var a=new aU(l?l:this.name,this);if(this.V3==0)a.data={type:this.V3,G:this.G,mu:this.Tm,JR:r.Q.CS(s,this.G)};
else if(this.V3==1){var P=s.G[this.G[0]],o;if(P.Bl.Ar<=0){o=L.B(P.Bl.Im.k());L.hy(P.Bl.q6,o,3)}else o=s.q.channel;
var G={rect:P.Bl.Im.clone(),channel:o};a.data={type:this.V3,i:this.G[0],MW:this.MW,Q$:G,B5:this.B5,VC:this.VC,Bl:P.Bl,mu:this.mu,JR:{Bv:P.Bl.Im,uN:P.Bl.q6}}}else if(this.V3==2){a.data={type:this.V3,MW:this.MW,Q$:{rect:s.q.rect.clone(),channel:s.q.channel.slice(0)}}}s.eN(a);
var _=this.sW,j=new fz(_.x+_.e/2,_.y+_.l/2),U=L.V.CX(this.Hy.D7(),_),S=L.V.wU(U),X=new ae;X.translate(j.x,j.y);
X.concat(S);X.translate(-j.x,-j.y);S=X.clone();var c=-Math.atan2(-S.S,S.lz),y=new ae;y.rotate(c);S.concat(y);
function O(f,T){return{t:"UntF",v:{type:["#Pxl","#Prc","#Ang"][T],val:f}}}var p=e6.Yr("Lyr",!0);if(this.id==r.Mg)p.v[0]={t:"prop",v:{classID:"Chnl",keyID:"fsel"}};
var D={classID:"null",null:p,FTcs:{t:"enum",v:{QCSt:"Qcsa"}},Intr:{t:"enum",v:{Intp:"Bcbc"}},Ofst:{t:"Objc",v:{__name:"Offset",classID:"Ofst",Hrzn:O(X.sI,0),Vrtc:O(X.bW,0)}},Skew:{t:"Objc",v:{classID:"Pnt",Hrzn:O(Math.atan(S.In)*180/Math.PI,2),Vrtc:O(0,2)}},Wdth:O(S.lz*100,1),Hght:O(S.Am*100,1),Angl:O(c*180/Math.PI,2)};
this.OU=m;this.track({YF:"transform",WA:D});this.escape(s,m,x)};r.Q.prototype.uj=function(s,m){if(this.V3==0)r.Q.uC(s,this.G,this.Tm);
else if(this.V3==1){var l=s.G[this.G[0]];s.q=this.MW;if(!this.VC){l.Bl.Im=this.mu.Bv;l.Bl.q6=this.mu.uN;
l.UH(s,0,0,s.q)}else{l.Yq(s,this.B5)}s.F();s.g_=!0}else if(this.V3==2){s.q=this.MW;s.g_=!0}this.escape(s,m,!0)};
r.Q.prototype.escape=function(s,m,l){this.Hy.clear(s);this.Hy=null;this.c3=null;this.nC=null;this.HY=0;
if(l)this.u3(m,v.E.g,{d:v.J.P_})};r.Q.prototype.mH=function(s,m){if(s.type==0)r.Q.uC(m,s.G,s.JR);else{if(s.type==1){var l=m.G[s.i];
if(s.VC){l.Bl=s.Bl}else{l.Bl.Im=s.JR.Bv;l.Bl.q6=s.JR.uN}l.UH(m,0,0,m.q);m.F()}m.q={rect:s.Q$.rect.clone(),channel:s.Q$.channel.slice(0)};
m.g_=!0}};r.Q.prototype.V1=function(s,m){if(s.type==0)r.Q.uC(m,s.G,s.mu);else{if(s.type==1){var l=m.G[s.i];
if(s.VC){l.Yq(m,s.B5)}else{l.Bl.Im=s.mu.Bv;l.Bl.q6=s.mu.uN;l.UH(m,0,0,m.q)}m.F()}m.q=s.MW;m.g_=!0}};
r.Q.prototype.ee=function(s,m,l){s.S4();var x=[];if(l==null)for(var C=0;C<s.FZ.length;C++)if(s.sj[s.FZ[C]].add.vmsk.T.length>2)x.push(-1-s.FZ[C]);
var a=[],P=s.t.OL;if(P[0]+P[1]+P[2]==3)if(l!=null||x.length==0||s.QR!=null&&s.QR.length!=0)a=s.cT(m,l,null,!0);
a=a.concat(x);for(var C=0;C<s.Be.length;C++)a.push(-1e3-s.Be[C]);this.G=a};r.Q.prototype.enable=function(s,m,l,x,a,P,o){if(this.cursor==null)this.cursor="default";
this.jQ(m);if(this.Hy)return;this.pX=l;this.ee(s,!0);this.SW(s,P&&P.ur!=null&&P.ur!=-1?P.ur:null,o);
this.CL(m);this.f6(s);if(P&&P.ur==-1)this.MZ({Iu:"switchWarp"},m,s,x)};r.Q.prototype.CL=function(s){var m={d:v.J.AL,c:this.id};
if(this.HY==0){var l=L.V.CX(this.Hy.D7(),this.sW),x=L.V.wU(l);m.Yz={pc:x,v7:this.Hy.akt(),R_:this.Hy.rY(),Bv:this.sW.clone()}}else{m.fD=this.c3.ew()}m.a1$=this.c3!=null;
this.u3(s,v.E.g,m)};r.Q.prototype.SW=function(s,m,l){var x=this.id==r.Mg,a=!0,P=this.G[0],o=s.G[P],_=null,j=null;
if(x){this.V3=2;this.MW=s.q}else if(s.q&&this.G.length==1&&P>=0&&!o.rect.Xh()){this.V3=1;this.MW=s.q;
this.B5=o.Bl;this.VC=!1;if(!o.hY(s,s.q)){this.VC=!0;o.Hh(s,s.q,!1)}this.mu={uN:o.Bl.q6,Bv:o.Bl.Im}}else{this.V3=0;
this.Tm=r.Q.CS(s,this.G,null,l);for(var C=0;C<this.Tm.length;C++)if(this.Tm[C][3]!=null)a=!1}var G=this.V3==1;
if(this.Tm&&this.Tm.length==1){var U=this.Tm[0];if(U[2]!=null&&U[2].R2){var S=U[2].Vz.N;if(S.length<2){j=U[2].R2[S.length==0?0:S[0]].v;
if(!L.R2.mz(j))j=null}}if(U[3]==null)G=!0;if(U[4]!=null){_=s.G[this.G[0]].add.SoLd;if(U[1]||U[2])G=!1}}var X=x?s.q.rect.clone():r.Q.E2(s,this.G,l);
this.sW=X;if(!x&&_){var c=r.Q.qN(_.nonAffineTransform);this.sW=L.H.ge(L.Lv.Y4(_.warp.v));if(G)this.c3=new fA(_.warp.v);
this.Ja=L.V.CX(c,this.sW);this.Hy=new hF(c,!0,!0,a,!1,!1,m)}else{if(G||x)this.c3=new fA(L.Lv.B(this.sW));
this.Ja=[1,0,0,0,1,0,0,0];if(this.id==r.XE)m=3;this.Hy=new hF([X.x,X.y,X.x+X.e,X.y,X.x+X.e,X.y+X.l,X.x,X.y+X.l],!0,!0,a,!1,!1,m)}this.al3=[1,0,0,0,1,0,0,0];
if(this.id==r.XE){var y,O;if(this.Tm){var p=this.Tm[0][0],D=p.eX;y=D[0];O=D[1]}else if(this.mu){y=this.mu.uN;
O=this.mu.Bv}this.nC=L.jO.a9b(y,O.e,O.l)}};r.Q.E2=function(s,m,l){if(m==null)m=s.cT(!0,null,null,!0);
var x=new bU,a=new bU;if(s.q&&m.length==1&&m[0]>=0)x=s.q.rect.clone();else for(var C=0;C<m.length;C++){var P=m[C],o=0<=P?s.G[P]:-1e3<P?s.sj[-1-P]:s.$_[-1e3-P],G=o.add?o.add.vmsk:null,_=0<=P?o.NK(s,m.length==1,!1,l,!0):-1e3<P?L.j.dj(G.T,m.length==1&&G.N.length!=0?G.N:null):o.rect.clone();
x=x.if(_);if(P>0&&o.add.artb)a=a.if(o.wy())}return!a.Xh()?a:x};r.Q.prototype.u3=function(s,m,l,x){var a=new h9(m,!0);
a.data=l;if(x)a.c=x;s.Y(a)};r.Q.CS=function(s,m,l,x){var a=[];for(var C=0;C<m.length;C++){var P=m[C],o,G;
if(P>=0){o=s.G[P];G=o.q5(s,l,x)}else if(P>-1e3){o=s.sj[-1-P];G=[2]}else{a.push([null,null,null,null,null,null,null,s.$_[-1e3-P].clone()]);
continue}var _=[];if(G.indexOf(0)!=-1){var j={eX:[o.buffer.slice(0),o.rect.clone()]};_.push(j);if(o.UI()){var U=o.Ao(s);
j.atF=U.buffer.slice(0);j.ah8=U.rect.clone()}}else _.push(null);if(G.indexOf(1)!=-1)_.push(o.SE().clone());
else _.push(null);if(G.indexOf(2)!=-1)_.push({Vz:o.add.vmsk.clone(),Ah:o.add.vstk?JSON.parse(JSON.stringify(o.add.vstk)):null,ts:o.add.vstk?r.ar.vM(s,P):null,R2:o.add.vogk?JSON.parse(JSON.stringify(o.add.vogk)):null});
else _.push(null);if(o.add.TySh&&_[0]){ex._b(o.add.TySh);_.push(o.add.TySh.A.clone())}else _.push(null);
if(o.add.SoLd&&_[0])_.push(JSON.parse(JSON.stringify(o.add.SoLd)));else _.push(null);if(G.indexOf(3)!=-1)_.push(o.Ao(s).v.clone());
else _.push(null);if(o.add.lmfx)_.push(JSON.stringify(o.add.lmfx));else _.push(null);a.push(_)}return a};
r.Q.uC=function(s,m,l){for(var C=0;C<m.length;C++){var x=m[C],a=0<=x?s.G[x]:-1e3<x?s.sj[-1-x]:s.$_[-1e3-x],P=l[C];
if(P[0]){a.rect=P[0].eX[1].clone();a.buffer=P[0].eX[0].slice(0);if(a.UI()){var o=a.Ao(s);o.buffer=P[0].atF.slice(0);
o.rect=P[0].ah8.clone()}}if(P[1]){a.SE().channel=P[1].channel.slice(0);a.SE().rect=P[1].rect.clone();
a.SE().A$=!0}if(P[2]){a.add.vmsk=P[2].Vz.clone();if(P[2].ts)r.ar.ad(a,P[2].ts);if(P[2].Ah)a.add.vstk=JSON.parse(JSON.stringify(P[2].Ah));
if(P[2].R2)a.add.vogk=JSON.parse(JSON.stringify(P[2].R2))}if(P[3]){a.add.TySh.A=P[3].clone();ex.S$(a.add.TySh)}if(P[4]){a.add.SoLd=JSON.parse(JSON.stringify(P[4]))}if(P[5]){var G=a.Ao(s).v;
G.channel=P[5].channel.slice(0);G.rect=P[5].rect.clone()}if(P[6]){a.add.lmfx=JSON.parse(P[6])}if(P[7]){a.channel=P[7].channel.slice(0);
a.rect=P[7].rect.clone();a.A$=!0}if(0<=x){a.sN(s);a.F()}}s.F()};r.Q.LL=function(s){var m=s.clone(),l=Math.atan2(-m.S,m.lz),x=new ae;
x.rotate(-l);m.concat(x);return(Math.abs(m.lz)+Math.abs(m.Am))/2};r.Q.By=function(s,m,l,x,a,P,o,G,_,j){if(typeof P[0]=="number"){var U=[];
for(var C=0;C<l.length;C++)U[C]=P;P=U}for(var C=0;C<l.length;C++){var S=P[C],X=L.V.wU(S),c=r.Q.LL(X),y=l[C],O=0<=y?s.G[y]:-1e3<y?s.sj[-1-y]:s.$_[-1e3-y],p=x[C];
if(p[0]&&O.add.lmfx&&G)jo.Mi(O.add.lmfx,c);if(p[0]&&!p[3]&&!p[4]&&!p[5]){var D=p[0].eX;if(_){var f=_.clone(),T=L.B(f.k()*4);
L.yx(D[0],D[1],T,f);D=[T,f]}var I=r.Q._i(D,a,S,o,a==0?O.buffer.buffer:null,null,null,j);if(I){O.rect=I.rect;
O.buffer=I.buffer}}if(p[1]){var H=O.SE();r.Q.Q4(s,p[1],H,a,S,o);if(_){var f=O.rect.pF(_),b=L.B(f.k());
L.kV(H.channel,H.rect,b,f);H.channel=b;H.rect=f}}if(p[2]){var R=o&&!L.Lv.AY(o),W=p[2].Vz.clone(),J=l.length==1&&W.N.length!=0,u=l.length==1&&W.ds.length>1;
if(u)J=!1;var e=J?W.N:null,Q=u?W.ds:null;if(R){var q=L.Lv.Y4(o);L.V.A(S,q);L.j.ajA(W.T,q,e,Q)}else L.j.a84(W.T,S,e,Q);
if(O.add.vstk&&G){O.add.vstk.strokeStyleLineWidth.v.val=p[2].Ah.strokeStyleLineWidth.v.val*c;var Z=p[2].ts;
if(Z&&Z.pC==3){Z=JSON.parse(JSON.stringify(Z));var E=Z.ts.phase.v;Z.ts.Scl.v.val=Math.round(Z.ts.Scl.v.val*c);
E.Hrzn.v=Math.round(E.Hrzn.v*c);E.Vrtc.v=Math.round(E.Vrtc.v*c);r.ar.ad(O,Z)}}if(O.add.vogk){O.add.vogk=JSON.parse(JSON.stringify(p[2].R2));
if(R||u)L.R2.as6(O.add.vogk);else L.R2.A(O.add.vogk,S,l.length>1?[]:W.N,G)}W.l2*=c;O.add.vmsk=W;if(O.add.vogk)L.R2.x3(O.add.vogk,O.add.vmsk)}if(p[3]){var z=p[3].clone();
z.concat(X);O.add.TySh.A=z;ex.S$(O.add.TySh);var V=new hJ(O.add.TySh.x5,m.dC),Y=b3.in(V,O.add.TySh);
O.rect=Y.Bv;O.buffer=Y.du}if(p[4]){var d=O.add.SoLd,w=r.Q.qN(p[4].nonAffineTransform);L.V.A(S,w);var A=L.H.QS(w);
if(hF.Jf(w)){if(o){var $=L.H.ge(L.Lv.Y4(p[4].warp.v)),b=L.V.CX(w,$),i=L.H.ge(L.Lv.Y4(o));w=[i.x,i.y,i.x+i.e,i.y,i.x+i.e,i.y+i.l,i.x,i.y+i.l];
L.V.A(b,w);d.warp.v=o}var K=L.V.CX(w),h=w;if(!L.V.Yj(K)){K[6]=K[7]=0;h=[0,0,1,0,1,1,0,1];L.V.A(K,h)}d.Trnf=r.Q.ZG(h);
d.nonAffineTransform=r.Q.ZG(w);if(d.filterFX)d.filterFX=JSON.parse(JSON.stringify(p[4].filterFX));r.Q.oL(d,X);
O.y2(s,a==0)}}if(p[5])r.Q.Q4(s,p[5],O.Ao(s).v,a,S,o);if(p[7])r.Q.Q4(s,p[7],O,a,S,o);if(0<=y){if(a!=0)O.zr();
O.sN(s);O.F()}}s.F()};r.Q.ea=function(s,m,l,x,a,P){if(l==null)l=!1;return r.Q._i(s,l?0:1,L.V.$D(m),null,x,a,P,l)};
r.Q._i=function(s,m,l,x,a,P,o,G){if(G==null)G=!1;if(G&&o)throw"e";var _={},X=0,c=.3;if(x&&!L.Lv.AY(x)){var j=L.Lv.Y4(x);
L.V.A(l,j);_.rect=L.H.QS(j);_.buffer=L.B(_.rect.k()*4);L.k9.drawImage(j,s[0],s[1].e,s[1].l,_.buffer,_.rect,m==0);
return _}L.$c(s);var U=s[0],S=s[1],y=S.k()*r.Q.LL(L.V.wU(l));if(G&&y>4e6)c=y>8e6?2.2:1.2;while(X+3<s.length&&s[X+3].k()>16&&L.V.Yj(l)&&r.Q.LL(L.V.wU(l))<c){X+=2;
var O=s[X],p=s[X+1],D=S.e/p.e,f=S.l/p.l;l=L.V.fH(l,[1,0,S.x,0,1,S.y,0,0]);l=L.V.fH(l,[D,0,0,0,f,0,0,0]);
l=L.V.fH(l,[1,0,-S.x,0,1,-S.y,0,0]);S=p;U=O}var T=L.V.fH(l,L.V.$D(new ae(S.e,0,0,S.l,S.x,S.y))),I=[0,0,1,0,1,1,0,1];
L.V.A(T,I);_.rect=L.H.QS(I);if(o)_.rect=_.rect.pF(o);if(G){while((_.rect.e&3)!=0)_.rect.e++;while((_.rect.l&3)!=0)_.rect.l++}if(!hF.Jf(I)||_.rect.e>1e5||_.rect.l>1e5||_.rect.k()>3e4*3e4)return null;
var H=_.rect.k()*4;if(a&&a.byteLength>=H&&H>=a.byteLength>>2){_.buffer=new Uint8Array(a)}else{_.buffer=L.B(H)}L.V.drawImage(T,U,S.e,S.l,_.buffer,_.rect,m==0,P,G);
if(m==2&&_.buffer){var b=_.rect.e,R=_.rect.l,W;W=[0,-1,0,-1,16,-1,0,-1,0];W=L.Rv.UR(W);var J=_.buffer.slice(0);
L.Rv.cz(J,_.buffer,b,R,W,255,!1,!0)}if(_.buffer)return _};r.Q.Q4=function(s,m,l,x,a,P){if(m.color==255)L.ms(m.channel);
var o=m.rect,G=L.B(o.k()*4);L._Y(m.channel,G,3);var _=r.Q._i([G,o],x,a,P);if(_){l.rect=_.rect;l.channel=L.B(_.rect.k());
L.hy(_.buffer,l.channel,3);l.A$=!0}if(m.color==255){L.ms(m.channel);if(_)L.ms(l.channel)}};r.Q.oL=function(s,m){var l=s.filterFX;
if(l)l=l.v.filterFXList;if(l)l=l.v;if(l)for(var x=0;x<l.length;x++){var a=l[x].v.Fltr;if(a==null||a.v.classID!="rigidTransform")continue;
a=a.v;console.log(a);var P=[];for(var o=0;o<4;o++)P.push(a["PuX"+o].v,a["PuY"+o].v);L.H.A(P,m,P);for(var o=0;
o<4;o++){a["PuX"+o].v=P[o*2];a["PuY"+o].v=P[o*2+1]}var G=["PinP","posFinalPins"],_=["originalVertexArray","deformedVertexArray"],j=a.puppetShapeList.v;
for(var U=0;U<j.length;U++){var S=j[U].v;for(var X=0;X<G.length;X++){var c=r.Q.qN(S[G[X]]);L.H.A(c,m,c);
S[G[X]]=r.Q.ZG(c);var y=new Uint8Array(S[_[X]].v),O=new Float32Array(y.buffer);L.H.A(O,m,O);var p=[];
for(var D=0;D<y.length;D++)p[D]=y[D];S[_[X]].v=p}}}};r.Q.qN=function(s){var m=[],l=s.v.length;for(var C=0;
C<l;C++)m.push(s.v[C].v);return m};r.Q.ZG=function(s){var m={t:"VlLs",v:[]},l=s.length;for(var C=0;C<l;
C++)m.v.push({t:"doub",v:s[C]});return m};r.Q.prototype.acM=function(){var s=L.H.ge(L.Lv.Y4(this.c3.ew())),m=L.V.CX(this.Hy.D7(),this.sW),l=[s.x,s.y,s.x+s.e,s.y,s.x+s.e,s.y+s.l,s.x,s.y+s.l];
L.V.A(m,l);this.Hy.xp(l);this.sW=s};r.Q.prototype.G3=function(s,m,l,x){var a=L.V.CX(this.Hy.D7(),this.sW);
a=L.V.fH(a,L.V.ms(this.Ja));var P=this.c3?this.c3.ew():null;if(this.V3==0){var o=this.e6=L.V.wU(a);if(this.id==r.XE){var G=this.Tm[0][0],_=G.eX,j=_[1],U=~~(j.e*Math.max(0,o.lz)),S=~~(j.l*Math.max(0,o.Am)),X=new bU(Math.round(o.lz*j.x+o.sI),Math.round(o.Am*j.y+o.bW),U,S),c=L.jO.A(this.nC,X),y=s.G[this.G[0]];
y.buffer=c;y.rect=X;y.F();s.F()}else r.Q.By(s,m,this.G,this.Tm,l,a,P,null,null,x)}else if(this.V3==1){var O=s.G[this.G[0]],j=this.mu.Bv;
if(O.Ar<=0){var p=this.mu.uN,D=this.MW,f=null;if(P&&!L.Lv.AY(P)&&!D.rect.yb(j)){var c=L.B(D.rect.k()*4);
L.yx(p,j,c,D.rect);p=c;j=D.rect}if(this.id==r.XE){var o=this.e6=L.V.wU(a),U=~~(j.e*Math.max(0,o.lz)),S=~~(j.l*Math.max(0,o.Am)),X=new bU(Math.round(o.lz*j.x+o.sI),Math.round(o.Am*j.y+o.bW),U,S),c=L.jO.A(this.nC,X);
f={buffer:c,rect:X}}else f=r.Q._i([p,j],l,a,P);if(f){O.Bl.q6=f.buffer;O.Bl.Im=f.rect;var T=L.B(f.rect.k());
L.hy(O.Bl.q6,T,3);s.q={channel:T,rect:O.Bl.Im.clone()}}}else{var I=L.B(j.k()*4);L._Y(this.mu.uN,I,3);
var f=r.Q._i([I,j],l,a,P);if(f){O.Bl.q6=L.B(f.rect.k());L.hy(f.buffer,O.Bl.q6,3);O.Bl.Im=f.rect}this.mq(s,l,a,P)}O.UH(s,0,0,s.q);
if(l!=0){O.zr();L.zr(s.q)}s.g_=!0;s.F()}else if(this.V3==2)this.mq(s,l,a,P)};r.Q.prototype.mq=function(s,m,l,x){var a=this.MW.rect,P=L.B(a.k()*4);
L._Y(this.MW.channel,P,3);var o=r.Q._i([P,a],m,l,x),G=L.B(o.rect.k());L.hy(o.buffer,G,3);s.q={channel:G,rect:o.rect};
s.g_=!0};r.Q.prototype.disable=function(s,m,l,x){if(this.Hy)this.uE(s,m,null,!0)};r.cW=function(){r.Q.call(this,[10,16],r.mx,"tools/transform")};
r.cW.prototype=new r.Q;r.BI=function(){r.Q.call(this,[7,10],r.Mg,"tools/transform")};r.BI.prototype=new r.Q;
r.oj=function(){r.Q.call(this,[10,48],r.XE,"tools/transform")};r.oj.prototype=new r.Q;r.X8=function(s,m,l){r.xO.call(this,[10,46],r.tn,"tools/transform");
this.q4=[1,1,2,!0];this.HU="rigidTransform";this.Cn=null;this.acZ=null;this.O5=null;this.fV=null;this.Gc=null;
this.fw=null;this.he=[]};r.X8.prototype=new r.xO;r.X8.prototype.hl=function(){return!0};r.X8.Jj=function(s){if(s==null)return!1;
if(s.N.length!=1)return!1;var m=s.G[s.N[0]];return m.add.SoLd||s.z6(!1)};r.X8.prototype.XW=function(s,m){return r.X8.Jj(s)};
r.X8.prototype.enable=function(s,m,l,x,a,P,o){this.acZ=P.X3;var G=P.X3,_,O=null;if(G){var j=s.G[G.i];
if(j.add.SoLd.filterFX!=null){var U=j.add.SoLd.filterFX.v.filterFXList.v;if(U[G.index])_=JSON.parse(JSON.stringify(U[G.index].v.Fltr.v))}}var S=_==null,j=s.G[s.N[0]],X=j.buffer,c=j.rect,y=j.add.SoLd;
if(y){var p=y.nonAffineTransform.v;O=[];for(var C=0;C<4;C++)O.push(p[C*2].v,p[C*2+1].v);if(S)this.iB("edit",m);
var D=j.Ao(s);X=D.buffer;c=D.rect}this.Cn={buffer:X.slice(0),rect:c.clone(),acw:O};if(S)_=r.X8.me(this.Cn,this.q4);
this.O5=_;this.fV=r.X8.uQ(this.O5,this.q4);this.B$();this.rL(s);if(S)this.ZJ(m);var f=new h9(v.E.g,!0);
f.data={d:v.J.AL,c:this.id,AV:this.q4};m.Y(f);f.data={d:v.J.GL,Cr:"default"};m.Y(f)};r.X8.prototype.disable=function(s,m,l,x){if(this.fV)this.uE(s,m,!0)};
r.X8.prototype.B$=function(s){var m=this.fV;this.he=[];for(var C=0;C<m.length;C++){var l=m[C];for(var x=0;
x<l.N.length;x++)this.he.push([C,l.N[C]]);l.Zm=L.aw.Ni(l);if(s)L.aw.VA(l)}};r.X8.prototype.MZ=function(s,m,l,x){if(s.Iu=="commit")this.uE(l,m,!0);
else if(s.Iu=="cancel")this.uj(l,m,!0);else if(s.Iu=="prm"){var a=!1;for(var C=0;C<3;C++)if(this.q4[C]!=s.AV[C])a=!0;
this.q4=s.AV;if(a){this.O5=r.X8.me(this.Cn,this.q4,this.O5);this.fV=r.X8.uQ(this.O5,this.q4);this.B$(!0);
this.ZJ(m)}this.rL(l)}else if(s.Iu=="moveDepth"){var P=this.fV;for(var o=0;o<P.length;o++){var G=P[o];
for(var C=0;C<G.N.length;C++){var _=G.N[C];G.f0[_]+=s.asA?1:-1}}this.ZJ(m)}};r.X8.prototype.sO=function(s,m){return s==dV.vR||s==dV.H8};
r.X8.prototype.NZ=function(s,m,l,x){var a=x.jv();if(x.$(dV.z3))this.uE(s,m,!0);else if(x.$(dV.Pt))this.uj(s,m,!0);
else if(x.$(dV.vR)||x.$(dV.H8)){var P=this.fV;for(var o=0;o<P.length;o++){var G=P[o];G.N.sort(function(U,S){return S-U});
for(var C=0;C<G.N.length;C++){var _=G.N[C],j=_*2;G.f0.splice(_,1);G.Fq.splice(_,1);G.sM.splice(_,1);
G.zj.splice(_,1);G.o0.splice(j,2);G.gz.splice(j,2)}G.N=[];if(G.zj.length==0){G.od=G.CZ.slice(0);G.aA=G.CZ.slice(0)}}this.B$(!0);
this.ZJ(m);this.rL(s)}else if(a.x!=0||a.y!=0){this.t7(s,a.x,a.y,m);this.J2=null}};r.X8.prototype.uE=function(s,m,l){this.iB("confirm",m);
this.escape(s,m,l)};r.X8.prototype.uj=function(s,m,l){this.iB("cancel",m);this.escape(s,m,l)};r.X8.prototype.escape=function(s,m,l){s.D.NJ=null;
s.D.sB=[];s.R8=!0;this.fV=null;var x=new h9(v.E.g,!0);x.data={d:v.J.P_};if(l)m.Y(x)};r.X8.prototype.s1=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y),o=P.x,G=P.y,_=this.fV,j=null,U=[0,2,4,1.2,1.2,1.2],S=-1,X=r.gF(s,a);
for(var C=0;C<_.length;C++){var c=_[C],y=L.H.Zc(c.gz,o,G,X);if(y!=-1)j=[C,y];if(S==-1&&L.aw.Zr.apy(c.aA,c.QL,o,G))S=C}if(j==null&&S!=-1){var c=_[S];
r.X8.OF(c,o,G,o,G,0);j=[S,c.zj.length-1];c.Zm=L.aw.Ni(c)}this.Gc=P;if(j){var O=_[j[0]].N.indexOf(j[1])!=-1;
if(x.$(dV.Ht)&&!O){_[j[0]].N.push(j[1]);this.he.push(j)}else if(!O){_[j[0]].N=[j[1]];this.he=[j]}}this.rL(s)};
r.X8.OF=function(s,m,l,x,a,P){var o=L.H.Zc(s.aA,m,l);s.zj.push(o);s.gz.push(x,a);s.o0.push(s.aA[o*2]-m,s.aA[o*2+1]-l);
s.sM.push(0);s.Fq.push(!1);s.f0.push(P)};r.X8.prototype.zk=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y),o=this.Gc;
if(o)this.t7(s,P.x-o.x,P.y-o.y,m)};r.X8.prototype.t7=function(s,m,l,x){var a={},P=this.he,o=this.fV;
if(this.J2==null){this.J2=[];for(var C=0;C<o.length;C++)this.J2.push(o[C].gz.slice(0))}for(var C=0;C<P.length;
C++){var G=this.he[C],_=G[0],j=o[G[0]],U=G[1]*2;j.gz[U+0]=this.J2[_][U+0]+m;j.gz[U+1]=this.J2[_][U+1]+l;
a[_]=_}for(var _ in a)L.aw.VA(this.fV[a[_]]);this.rL(s);this.ZJ(x)};r.X8.prototype.iB=function(s,m){var l=new h9(v.E.u,!0);
l.c=r.LI;l.data={d:s,X3:this.acZ,HU:this.HU,yt:this.O5};m.Y(l)};r.X8.prototype.I6=function(s,m,l,x,a){this.Gc=null;
this.J2=null};r.X8.prototype.ZJ=function(s){r.X8.lD(this.fV,this.q4,this.O5);this.iB("edit",s)};r.X8.prototype.rL=function(s){var m=this.fV,l=this.O5;
s.D.NJ={s:[],r:[]};s.D.sB=[];s.D.om=[];for(var C=0;C<m.length;C++){var x=m[C];for(var a=0;a<x.N.length;
a++)s.D.om.push((s.D.sB.length>>>1)+x.N[a]);s.D.sB=s.D.sB.concat(x.gz);if(this.q4[3])L.H.concat(s.D.NJ,L.H.an0(x.aA,x.QL))}s.R8=!0};
r.X8.me=function(s,m,l){var x=s.buffer,a=s.rect,P=s.acw,o=ib.Xi("rigidTransform");if(P)for(var C=0;C<4;
C++){o["PuX"+C].v=P[C*2];o["PuY"+C].v=P[C*2+1]}var G=o.puppetShapeList.v,_=L.aw.agH(x,a.e,a.l,m[1],m[2]),j=[];
for(var U=0;U<_.length;U++){var S={classID:"puppetShape",rigidType:{t:"bool",v:!0},VrsM:{t:"long",v:1},VrsN:{t:"long",v:0},originalVertexArray:{t:"tdta",v:[]},deformedVertexArray:{t:"tdta",v:[]},indexArray:{t:"tdta",v:[]},pinOffsets:{t:"VlLs",v:[]},posFinalPins:{t:"VlLs",v:[]},pinVertexIndices:{t:"VlLs",v:[]},PinP:{t:"VlLs",v:[]},PnRt:{t:"VlLs",v:[]},PnOv:{t:"VlLs",v:[]},PnDp:{t:"VlLs",v:[]},meshQuality:{t:"long",v:2},meshExpansion:{t:"long",v:2},meshRigidity:{t:"long",v:2},imageResolution:{t:"doub",v:72},selectedPin:{t:"VlLs",v:[]}};
S.meshBoundaryPath={t:"Objc",v:{classID:"pathClass",pathComponents:{t:"VlLs",v:[{t:"Objc",v:{classID:"PaCm",shapeOperation:{t:"enum",v:{shapeOperation:"xor"}},SbpL:{t:"VlLs",v:[{t:"Objc",v:{classID:"Sbpl",Clsp:{t:"bool",v:!0},Pts:{t:"VlLs",v:[]}}}]}}}]}}};
var X=_[U];G.push({t:"Objc",v:S});var c=X.CZ.slice(0);L.H.A(c,new ae(1,0,0,1,a.x,a.y),c);var y=X.QL;
for(var C=0;C<y.length;C+=3){var O=y[C+1];y[C+1]=y[C+2];y[C+2]=O}j.push({QL:y,CZ:c,od:c,aA:c,zj:[],o0:[],gz:[],Zm:null,N:[],sM:[],Fq:[],f0:[]})}if(l){var p=r.X8.uQ(l,[]),D=j[0];
for(var C=0;C<p.length;C++){var f=p[C];for(var T=0;T<f.N.length;T++)D.N.push((D.gz.length>>>1)+f.N[T]);
for(var T=0;T<f.zj.length;T++){var I=f.zj[T]*2,H=f.CZ[I]-f.o0[T*2],b=f.CZ[I+1]-f.o0[T*2+1];r.X8.OF(D,H,b,f.gz[T*2],f.gz[T*2+1],f.f0[T])}}}r.X8.lD(j,m,o);
return o};r.X8.uQ=function(s,m){var l=r.Q.qN,x=s.puppetShapeList.v,a=[];for(var P=0;P<x.length;P++){var o=x[P].v;
m[0]=o.meshRigidity.v-1;m[1]=o.meshQuality.v-1;m[2]=o.meshExpansion.v;var G=o.pinVertexIndices.v.length,_=o.meshBoundaryPath.v.pathComponents.v;
if(_.length!=0){var j=_[0].v.SbpL.v[0].v.Pts;j.v=[]}var U=new Uint32Array(new Uint8Array(o.indexArray.v).buffer),S=new Float32Array(new Uint8Array(o.originalVertexArray.v).buffer),X=new Float32Array(new Uint8Array(o.deformedVertexArray.v).buffer),c=[],y=[],O=[];
for(var C=0;C<U.length;C++)c.push(U[C]);for(var C=0;C<S.length;C++){y.push(S[C]);O.push(X[C])}var p=l(o.pinVertexIndices),D=l(o.pinOffsets),f=l(o.posFinalPins),T=l(o.PnRt),I=l(o.PnOv),H=l(o.PnDp),b=l(o.selectedPin);
a.push({QL:c,CZ:y,od:O.slice(0),aA:O,zj:p,o0:D,gz:f,Zm:null,sM:T,Fq:I,f0:H,N:b})}return a};r.X8.lD=function(s,m,l){function x(X,c){var y=[];
for(var C=0;C<X.length;C++)y.push({t:c,v:X[C]});return y}function a(X,c,y){var O=new(y?Uint32Array:Float32Array)(X),p=new Uint8Array(O.buffer);
for(var C=0;C<p.length;C++)c[C]=p[C]}var P=l.puppetShapeList.v;for(var o=0;o<P.length;o++){var G=s[o],_=P[o].v;
_.meshRigidity.v=m[0]+1;_.meshQuality.v=m[1]+1;_.meshExpansion.v=m[2];a(G.QL,_.indexArray.v,!0);a(G.CZ,_.originalVertexArray.v);
a(G.aA,_.deformedVertexArray.v);var j=[];for(var C=0;C<G.zj.length;C++){var U=G.zj[C]*2,S=C*2;j[S]=G.CZ[U]-G.o0[S];
j[S+1]=G.CZ[U+1]-G.o0[S+1]}_.PinP.v=x(j,"doub");_.pinVertexIndices.v=x(G.zj,"long");_.pinOffsets.v=x(G.o0,"doub");
_.posFinalPins.v=x(G.gz,"doub");_.PnRt.v=x(G.sM,"long");_.PnOv.v=x(G.Fq,"bool");_.PnDp.v=x(G.f0,"doub");
_.selectedPin.v=x(G.N,"long")}};r.NT=function(s,m,l){r.xO.call(this,s?s:[10,40],m?m:r.iR,l?l:"tools/slice");
this.zx=null;this.OU=null;this.uW=null;this.aej=null;this.H0=null;this.gL=null};r.NT.prototype=new r.xO;
r.NT.qi=function(s,m){var l=-1;for(var C=0;C<s.length;C++){var x=r.NT.Yc(s,C);if(x[0]<=m.x&&m.x<=x[2]&&x[1]<=m.y&&m.y<=x[3]){l=C;
break}}return l};r.NT.prototype.Pk=function(s,m,l,x,a){if(l==null)return;this.oh(l);if(s.d=="fromAction"){var P=l.Ls(),o=l.SV(),G=o==-1?new bU(0,0,l.e,l.l):l.G[o].wy(),_=[G.x,G.x+G.e],j=[G.y,G.y+G.l];
for(var C=0;C<P[0].length;C++){var U=P[0][C],S=Math.round(U[1]),X=P[1][C];if(X!=-1&&X!=o)continue;if(U[0]==0&&_.indexOf(S)==-1)_.push(S);
if(U[0]==1&&j.indexOf(S)==-1)j.push(S)}_.sort(function(R,W){return R-W});j.sort(function(R,W){return R-W});
for(var c=1;c<j.length;c++)for(var y=1;y<_.length;y++){l.YA.push(r.NT.as());r.NT.QB(l.YA,l.YA.length-1,[_[y-1],j[c-1],_[y],j[c]]);
l.R8=!0}}else if(s.d=="reorder"){if(l.tq.length==0)return;var O=l.YA,p=l.tq;p.sort(function(R,W){return R-W});
console.log(p);var D=O.slice(0),f=[],T=[];for(var C=0;C<p.length;C++){var I=p[C],H=O[I];T.push(H);D.splice(D.indexOf(H),1)}var b=Math.max(0,Math.min(D.length,p[0]-s.dir));
for(var C=0;C<T.length;C++){D.splice(b+C,0,T[C]);f.push(b+C)}l.YA=D;l.tq=f}else if(s.d=="delete"){var O=l.YA.slice(0);
for(var C=0;C<l.tq.length;C++)l.YA.splice(l.YA.indexOf(O[l.tq[C]]),1);l.tq=[]}else if(s.d=="deleteAll"){l.YA=[];
l.tq=[]}else{l.YA[l.tq[0]].v=s;l.R8=!0}this.ak(l)};r.NT.prototype.enable=function(s,m,l,x,a,P){r.xO.prototype.enable.call(this,s,m,l,x,a,P);
if(!l.HD.YA){var o=new h9(v.E.g,!0);o.data={d:v.J.xw,AV:gN.Xk};m.Y(o)}};r.NT.prototype.disable=function(){this.zx=null;
this.OU=null};r.NT.prototype.bI=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y),o=r.NT.qi(s.YA,P);if(o==-1)return;
this.zx=s;this.OU=m;s.tq=[o];s.R8=!0;if(this.gL==null){this.gL=new aC([{name:[5,4]},{name:[8,11,1],$q:!0}]);
this.gL.h("select",this.wc,this)}var G=this.gL;G.parent=m;G.U();G.update(s,l);var _=new h9(v.E.g,!0);
_.data={d:v.J.Jm,UK:G,x:a.QO+2,y:a.rF+1};m.Y(_)};r.NT.prototype.wc=function(s){var m=this.gL.gW()[0],l=this.zx;
if(m==0){this.oh(l);l.YA.splice(l.tq[0],1);l.tq=[];l.R8=!0;this.ak(l)}if(m==1){var x=new h9(v.E.g,!0);
x.data={d:v.J.Qm,It:"soptions",Z:l.YA[l.tq[0]].v};this.OU.Y(x)}};r.NT.prototype.s1=function(s,m,l,x,a){if(s==null)return;
this.oh(s);var P=s.t.cr(a.x,a.y);P=r.PL.ZX(s,P,l,[!0,null,!1]);P.x=Math.round(P.x);P.y=Math.round(P.y);
this.H0=P;s.YA.unshift(r.NT.as());s.tq=[0];r.NT.QB(s.YA,0,[P.x,P.y,P.x+20,P.y+20]);s.R8=!0};r.NT.prototype.zk=function(s,m,l,x,a){if(this.uW==null)return;
var P=s.t.cr(a.x,a.y),o=this.H0;P=r.PL.ZX(s,P,l,[!0,null,!1]);P.x=Math.round(P.x);P.y=Math.round(P.y);
var G=[o.x,o.y,P.x,P.y];r.NT.lg(G);r.NT.QB(s.YA,0,G);s.R8=!0};r.NT.prototype.I6=function(s,m,l,x,a){this.ak(s);
this.H0=null};r.NT.prototype.oh=function(s){this.uW=JSON.stringify(s.YA);this.aej=JSON.stringify(s.tq)};
r.NT.prototype.ak=function(s){var m=JSON.stringify(s.YA);if(m!=this.uW){var l=new aU(this.name,this);
l.data={mu:this.uW,JR:m,ar7:this.aej,abz:JSON.stringify(s.tq)};s.eN(l)}this.uW=null};r.NT.prototype.V1=function(s,m){m.YA=JSON.parse(s.mu);
m.tq=JSON.parse(s.ar7);m.R8=!0};r.NT.prototype.mH=function(s,m){m.YA=JSON.parse(s.JR);m.tq=JSON.parse(s.abz);
m.R8=!0};r.NT.prototype.sO=function(s,m){return m!=null&&m.tq.length!=0&&(s==dV.vR||s==dV.H8)};r.NT.prototype.NZ=function(s,m,l,x){if(s==null)return;
if(x.$(dV.vR)||x.$(dV.H8))this.Pk({d:"delete"},m,s,x,l);var a=x.jv();if(a.x!=0||a.y!=0){this.oh(s);r.NT.cN(s,a);
this.ak(s)}};r.NT.prototype.MZ=function(s,m,l,x,a){};r.NT.ati=function(s,m,l,x){var a=new fz(-m.x,-m.y),P=m.e/l.e,o=m.l/l.l,G=[0,0,m.e,m.l];
for(var C=0;C<s.length;C++){var _=r.NT.Yc(s,C);if(x){_[0]=Math.round(_[0]*P);_[1]=Math.round(_[1]*o);
_[2]=Math.round(_[2]*P);_[3]=Math.round(_[3]*o)}else{r.NT.HJ(_,a);r.NT.alI(_,G)}if(_[0]>=_[2]||_[1]>=_[3]){s.splice(C,1);
C--;continue}r.NT.QB(s,C,_)}};r.NT.cN=function(s,m){var l=s.YA;for(var C=0;C<s.tq.length;C++){var x=r.NT.Yc(l,s.tq[C]);
r.NT.HJ(x,m);r.NT.QB(l,s.tq[C],x)}};r.NT.alI=function(s,m){if(s[0]<m[0])s[0]=m[0];if(s[1]<m[1])s[1]=m[1];
if(m[2]<s[2])s[2]=m[2];if(m[3]<s[3])s[3]=m[3]};r.NT.HJ=function(s,m){s[0]=Math.round(s[0]+m.x);s[2]=Math.round(s[2]+m.x);
s[1]=Math.round(s[1]+m.y);s[3]=Math.round(s[3]+m.y)};r.NT.QB=function(s,C,m){var l=s[C].v.bounds.v;l.Left.v=m[0];
l.Top.v=m[1];l.Rght.v=m[2];l.Btom.v=m[3]};r.NT.Yc=function(s,C){var m=s[C].v.bounds.v;return[m.Left.v,m.Top.v,m.Rght.v,m.Btom.v,C]};
r.NT.lg=function(s){if(s[2]<s[0]){var m=s[0];s[0]=s[2];s[2]=m}if(s[2]==s[0])s[2]++;if(s[3]<s[1]){var m=s[1];
s[1]=s[3];s[3]=m}if(s[3]==s[1])s[3]++};r.NT.ge=function(s,m){var l=1e9,x=-1e9,a=1e9,P=-1e9;for(var C=0;
C<m.length;C++){var o=r.NT.Yc(s,m[C]);l=Math.min(l,o[0]);a=Math.min(a,o[1]);x=Math.max(x,o[2]);P=Math.max(P,o[3])}return[l,a,x,P]};
r.NT.as=function(){return{t:"Objc",v:{classID:"slice",sliceID:{t:"long",v:0},groupID:{t:"long",v:0},origin:{t:"enum",v:{ESliceOrigin:"userGenerated"}},Type:{t:"enum",v:{ESliceType:"Img"}},bounds:{t:"Objc",v:{classID:"Rct1",Top:{t:"long",v:0},Left:{t:"long",v:0},Btom:{t:"long",v:0},Rght:{t:"long",v:0}}},url:{t:"TEXT",v:""},null:{t:"TEXT",v:""},Msge:{t:"TEXT",v:""},altTag:{t:"TEXT",v:""},cellTextIsHTML:{t:"bool",v:!0},cellText:{t:"TEXT",v:""},horzAlign:{t:"enum",v:{ESliceHorzAlign:"default"}},vertAlign:{t:"enum",v:{ESliceVertAlign:"default"}},bgColorType:{t:"enum",v:{ESliceBGColorType:"None"}},topOutset:{t:"long",v:0},leftOutset:{t:"long",v:0},bottomOutset:{t:"long",v:0},rightOutset:{t:"long",v:0}}}};
r.Mw=function(){r.NT.call(this,[10,41],r.le,"tools/sselect");this.H0=null;this.Td=null;this.CO=null;
this.fw=null;this.p1=!1};r.Mw.prototype=new r.NT;r.Mw.prototype.s1=function(s,m,l,x,a){if(s==null)return;
var P=s.t.cr(a.x,a.y),o=r.Mw.KZ(P,4/s.t.O,s.YA,s.tq);o.pop();if(o.length!=0){this.H0=P;this.CO=o;this.oh(s);
return}var G=s.YA,_=r.NT.qi(G,P);if(_==-1)s.tq=[];else{var j=s.tq.indexOf(_);if(x.$(dV.Ht)){if(j==-1)s.tq.push(_);
else s.tq.splice(j,1)}else{s.tq.sort(function(O,p){return O-p});if(j==-1)s.tq=[_];this.H0=P;this.oh(s);
this.Td=r.NT.ge(G,s.tq);this.fw=[];for(var C=0;C<s.tq.length;C++)this.fw.push(r.NT.Yc(G,s.tq[C]));if(x.$(dV.Il)){var U=G.slice(0),S=s.tq,X=[];
for(var C=0;C<S.length;C++){var _=S[C],c=U[_],y=G.indexOf(c);X.push(y);G.splice(y,0,JSON.parse(JSON.stringify(c)))}s.tq=X}}}s.R8=!0};
r.Mw.prototype.zk=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y);if(this.H0==null){var o=r.Mw.KZ(P,4/s.t.O,s.YA,s.tq),G=o.pop(),_=o.length==0?"default":["ew","nwse","ns","nesw"][G]+"-resize",j=new h9(v.E.g,!0);
j.data={d:v.J.GL,Cr:_};m.Y(j);return}if(!this.p1&&P.yb(this.H0))return;this.p1=!0;var U=s.YA,o=this.CO;
if(o){P=r.PL.ZX(s,P,l,[!0,null,!1]);var S=Math.round(P.x),X=Math.round(P.y);for(var C=0;C<o.length;C+=2){var c=r.NT.Yc(U,o[C]),y=o[C+1];
c[y]=(y&1)==0?S:X;r.NT.lg(c);r.NT.QB(U,o[C],c)}}else{var O=P.fy(this.H0),p=this.Td.slice(0);r.NT.HJ(p,O);
var D=new bU(p[0],p[1],p[2]-p[0],p[3]-p[1]),f=r.PL.nM(s,D,l,[!0,null,!1],!0);r.PL.za(s,D,f);O.x+=f[0];
O.y+=f[1];for(var C=0;C<s.tq.length;C++)r.NT.QB(U,s.tq[C],this.fw[C]);r.NT.cN(s,O)}s.R8=!0};r.Mw.prototype.I6=function(s,m,l,x,a){if(this.H0==null)return;
this.ak(s);s.D.p3=null;s.R8=!0;this.H0=null;this.CO=null;this.fw=null;this.p1=!1};r.Mw.KZ=function(s,m,l,x){var a=s.x,P=s.y,o=[],G=-1,_=[];
for(var C=0;C<x.length;C++){var j=x[C],U=r.NT.Yc(l,j),S=U[0],X=U[1],c=U[2],y=U[3];if(a<S-m||c+m<a||P<X-m||y+m<P)continue;
var O=[a<S+m,P<X+m,c-m<a,y-m<P],p=-1;for(var D=0;D<4;D++){if(O[D]&&O[D+1&3])p=1+2*(D&1);if(O[D])o.push(j,D)}if(p==-1){if(O[0]||O[2])p=0;
if(O[1]||O[3])p=2}if(p!=-1){G=p;_.push(j)}}var f=o.length;for(var C=0;C<f;C+=2){var j=o[C],T=o[C+1],I=r.NT.Yc(l,j)[T];
for(var D=0;D<x.length;D++){var H=x[D];if(_.indexOf(H)!=-1)continue;var U=r.NT.Yc(l,H);if(U[T&1]==I)o.push(H,T&1);
if(U[2+(T&1)]==I)o.push(H,2+(T&1))}}o.push(G);return o};r._H=function(){r.bJ.call(this,[10,44],r.as_,"tools/oselect");
this.Ke="crosshair";this.acQ=0};r._H.prototype=new r.bJ;r._H.prototype._N=function(s,m,l,x){if(Math.random()<1/(1+this.acQ)){alert("The cross should be fully inside the object.",3500);
this.acQ++}};r._H.prototype.xi=function(s,m,l,x){r.JJ.$I(s,r.bJ.Zg,this.OU);if(!x.t0||!this.bU)return;
var a=this.E2(s,l,!1),P=a.e,o=a.l,G=a.x,_=a.y,j=a.x+P,U=a.y+o,S=G+P/2,X=_+o/2,c=r._H.B2;s.D.NJ={s:[G,_,j,_,j,U,G,U,S-P*c,X,S+P*c,X,S,X-o*c,S,X+o*c],r:"M L L L Z M L M L".split(" ")};
s.R8=!0};r._H.B2=.12;r._H.prototype.tU=function(s,m,l,x){s.D.NJ=null;s.R8=!0;this.finish(s,m,l,x)};r._H.prototype.getSelection=function(s,m,l,x){if(this.GS.yb(this.BM)||!this.bU)return null;
var a=this.E2(s,l,!1),P=s.G[s.N[0]];if(a.Xh()||!a.Hx(P.rect))return null;return r.bJ.or("ObSl",a)};r.JJ=function(){r.fZ.call(this,[10,37],r.N9,"tools/qselect");
this.Wh="qselect"};r.JJ.prototype=new r.fZ;r.JJ.prototype.s1=function(s,m,l,x,a){this.GU(s,l,x,a,1);
if(this.kW==null)return;this.kl(s)};r.JJ.prototype.zk=function(s,m,l,x,a){this.Ym(s,m,l);r.JJ.$I(s,r.bJ.Zg,m);
if(this.fN)this.Ns(s,l,a);if(this.kW==null)return;if(!a.t0)return;var P=this.V6(s,l,x,a);if(P!=1)this.kl(s)};
r.JJ.$I=function(s,m,l){if(s&&m.key!=r.JJ.h9(s)){m.key=r.JJ.h9(s);var x=s.G[s.N[0]].rect.k(),P="Image Analysis ...";
if(x==0)return;var a=x>1e6,o=new h9(v.E.g,!0);o.data={d:v.J.nU,lU:P};if(a)l.Y(o);setTimeout(function(){var G=r.JJ.WC(s);
for(var _ in G)m[_]=G[_];var o=new h9(v.E.g,!0);o.data={d:v.J.K7,lU:P};if(a)l.Y(o)},30)}};r.JJ.h9=function(s){var m=s.N[0],l=s.G[m],x=l.rect,a=x.e,P=x.l,o=a*P,G=l.buffer;
return[m,x.x,x.y,a,P,G[0],G[1],G[2],G[3]].join(",")};r.JJ.WC=function(s){var m=s.N[0],l=s.G[m],x=l.rect,a=x.e,P=x.l,o=a*P,G=l.buffer,_=Date.now(),j=L.B(o);
j.fill(128);var U=L.Nt.Bw(G,a,P);console.log(Date.now()-_);var S={key:r.JJ.h9(s),Nq:G,rect:x.clone(),h_:a,Cm:P,nS:12,a0z:!1,rE:j,cH:U,q:L.B(o),qO:null,vH:null,Ix:null};
r.JJ.ty(S);return S};r.JJ.ty=function(s,m){var l=s.h_,x=s.Cm,a=0,P=0,o=Date.now(),G=s.qO!=null&&L.Nt.ae0(s.cH.QL,s.qO.QL,s.qO.OV,s.rE);
a=Date.now()-o;o=Date.now();if(!G&&!s.a0z){s.qO=L.Nt.fm(s.cH,l,x,s.rE,s.nS);if(!L.Nt.ae0(s.cH.QL,s.qO.QL,s.qO.OV,s.rE)){s.a0z=!0;
console.log("conflict")}s.vH=L.Nt.agw(s.Nq,l,x,s.qO.QL,s.qO.OV);s.Ix=[s.vH[0].slice(0),[]];P=Date.now()-o;
o=Date.now()}var o=Date.now();if(m){s.Ix[0].set(s.vH[0]);var _=s.vH[1],j=s.Ix[1];for(var U=0;U<_.length;
U++)j[U]=_[U].slice(0);L.Nt.agv(s.qO.QL,l,x,s.qO.OV,s.rE,s.q,s.Ix)}};r.jS=function(){r.xO.call(this,[10,50],r.FN,"tools/artb");
this.hc=null;this.art=!1;this.Hy=null;this.r8=!1;this.ai9=null;this.gD=100;this.p4=null;this.W_=0};r.jS.prototype=new r.xO;
r.jS.Wf=function(s,m){var l=s[0],x=0,a=0;if(l==0)a=-1;else if(l==1)x=1;else if(l==2)a=1;else x=-1;return[20/m.we,s[1]+x*60/m.we,s[2]+a*60/m.we]};
r.jS.prototype.MZ=function(s,m,l,x,a){this.hc=s.AV;this.W_=Date.now()};r.jS.prototype.nQ=function(s,m,l,x){if(l.hu!=this.id)return;
if(s==null||s.N.length!=1){this.kL(s);return}var a=s.N[0],P=s.G[a],o=P.add.artb;if(o==null){this.kL(s);
return}if(this.r8)return;if(Date.now()-this.W_>50){this.hc={};var G=["artboardBackgroundType","Clr"];
for(var C=0;C<G.length;C++)if(o[G[C]])this.hc[G[C]]=JSON.parse(JSON.stringify(o[G[C]]));var _=new h9(v.E.g,!0);
_.data={d:v.J.AL,c:this.id,P1:this.hc};m.Y(_)}var j=P.wy(),U=L.H.$$(j).s,S=this.Hy=new hF(U,!0,!1,!1,!0,!1,3,!1);
S.Yk(s,l,!1);var X={s:[1,0],r:["M"]};for(var C=1;C<30;C++){var c=Math.PI*2*C/30;X.s.push(Math.cos(c),Math.sin(c));
X.r.push("L")}X.r.push("Z","M","L","M","L");X.s.push(-.5,0,.5,0,0,-.5,0,.5);var y=j.x+j.e/2,O=j.y+j.l/2,p=this.gD*1.1,D=this.ai9=[y,j.y,j.x+j.e,O,y,j.y+j.l,j.x,O],f=[0,-p,p,0,0,p,-p,0],T=s.root.children;
s.D.$O=[];for(var C=0;C<4;C++){var I=new fz(D[C*2]+f[C*2],D[C*2+1]+f[C*2+1]),H=!1;for(var b=0;b<T.length;
b++){var P=T[b].i;if(P.add.artb==null)continue;var j=P.wy();if(j.j_(I))H=!0}if(H){D[C*2]=1e9;continue}s.D.$O.push([C,D[C*2],D[C*2+1]])}};
r.jS.prototype.disable=function(s,m,l,x,a){this.kL(s)};r.jS.prototype.kL=function(s){if(this.Hy){this.Hy.clear(s);
this.Hy=null;s.D.$O=null}};r.jS.prototype.s1=function(s,m,l,x,a){this.W_=Date.now();var P=s.t.cr(a.x,a.y),o=this.Hy;
if(o){var G=new h9(v.E.u),_=o.ath(null,P,s,a);if(_<9){this.r8=o.s1(s,l,x,P,null,!0,a);return}else if(o.w2(P)){G.c=r.G1;
G.data={d:"disabAuto"};m.Y(G);var j=new h9(v.E.g);j.data={d:v.J._I,c:r.G1,a23:!0};m.Y(j);return}else{var U=-1,S=s.D.$O;
for(var C=0;C<S.length;C++){var X=r.jS.Wf(S[C],s.t);if(fz.rv(P,new fz(X[1],X[2]))<X[0])U=S[C][0]}if(U!=-1){var c=s.G[s.N[0]].wy(),y=c.clone(),O=(U==0||U==2?c.l:c.e)+this.gD;
if(U==0||U==3)O=-O;if(U==0||U==2)c.y+=O;else c.x+=O;if(x.$(dV.Il)){G.c=r.ay;G.data={d:t.Rk};m.Y(G);r.PL.Ng(s,s.cT(null,s.N[0],null,!0),null,c.x-y.x,c.y-y.y);
r.Bs.ra(s)}else this.mN(s,c,m);return}}}this.p4=r.PL.ZX(s,P,l)};r.jS.prototype.mN=function(s,m,l){var x=s.G.slice(0),a=[s.G.length+1],P=s.d2();
P.qW("Artboard "+(s.root.children.length+1));P.add.lsct=hN.yF;P.Kp(m);if(this.hc){var o=P.add.artb,G=this.hc;
for(var _ in G)o[_]=G[_]}P.TR="pass";P.Yy=24;if(s.add.artd||m.pF(new bU(0,0,s.e,s.l)).Xh())x.push(s.b8());
else x.unshift(s.b8());x.push(P);var j=new h9(v.E.u);j.c=r.ay;j.data={d:t.Jb,vz:x,Q$:a,YH:"New Artboard"};
l.Y(j)};r.jS.prototype.zk=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y),o=this.Hy,G=this.p4;if(o){if(this.r8){o.zk(s,l,x,P)}else{var _=o.l8(P,s.t.O,null,a);
if(_==null)_="default";var j=new h9(v.E.g,!0);j.data={d:v.J.GL,Cr:_};m.Y(j)}}if(G){var U=this.Yc(s,P,x,l);
s.D.NJ=L.H.$$(U);s.R8=!0;r.xO.G$(a,U,s,l)}};r.jS.prototype.I6=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y),o=this.p4;
if(this.r8){this.Hy.I6(s,l,x,P);this.r8=!1;var G=L.H.QS(this.Hy.D7()),_=t.JE(G),j=s.G[s.N[0]],U=JSON.parse(JSON.stringify(j.add.artb));
U.artboardRect.v=_;var S=new h9(v.E.u,!0);S.c=r.ay;S.data={d:t.Md,kO:U};m.Y(S)}if(o){var X=this.Yc(s,P,x,l);
if(X.k()>20)this.mN(s,X,m);s.D.NJ=null;s.R8=!0;this.p4=null;s.D.va=[]}};r.jS.prototype.Yc=function(s,m,l,x){var a=this.p4,P=r.PL.ZX(s,m,x),o=r.c9.WG(a,P,l,!0);
a=o[0];P=o[1];return L.H.QS([a.x,a.y,P.x,P.y])};function hF(s,m,l,x,a,P,o,G){this.WQ=null;this.DF=s?s.slice(0):null;
this.yN=4;this.BM=null;this.Qz=null;this.pR=null;this.Ez=-1;this.JO=null;this.an6=!1;this.ar6=[];for(var C=0;
C<8;C++)this.ar6.push(iO.a7B(0,PIMG.rotate,-.5,-.5,-45-C*45));this.a09=m;this.a3o=l;this.aqN=x;this.aeB=a;
this.De=P;this.ur=o;this.aad=G==null?1:G}hF.prototype.HO=function(){return this.Ez!=-1};hF.prototype.D7=function(){return this.DF.slice(0)};
hF.prototype.xp=function(s){this.DF=s};hF.prototype.a4w=function(){return this.A4(this.DF)};hF.prototype.akt=function(){return this.yN};
hF.prototype.apG=function(s){this.yN=s};hF.prototype.rY=function(s){if(s==null)s=this.DF;if(this.yN==9)return this.BM;
else return this.A4(s)[this.yN]};hF.prototype.aro=function(s){if(this.yN==9)this.BM=s.clone();else{var m=this.rY(),l=new ae(1,0,0,1,s.x-m.x,s.y-m.y);
L.H.A(this.DF,l,this.DF)}};hF.prototype.l8=function(s,m,l,x){var a=this.t4(null,s,m,x),P;if(a==9)return"default";
if(a==10){if(l)return null;return!this.a09?"move":null}if(a==-1||a==4)return null;if(a==11){var o=this.rY().fy(s);
P=90-Math.atan2(o.y,o.x)*180/Math.PI;var G=Math.round(8*(P/360));G=(G+8)%8;return this.ar6[G]}else{var _=this.Dm(s,this.DF);
P=[135,90,45,180,0,0,225,270,315][a];var j=L.V.CX(this.DF);P+=Math.atan2(-j[3],j[0])*180/Math.PI;var U="ew nesw ns nwse ew nesw ns nwse".split(" "),G=Math.round(8*(P/360));
G=(G+8)%8;return U[G]+"-resize"}};hF.prototype.Dm=function(s,m){var l=L.V.ms(L.V.CX(m)),x=new Float64Array(2);
L.V.bQ(s.x,s.y,l,x);return new fz(x[0],x[1])};hF.prototype.w2=function(s){var m=this.Dm(s,this.DF);return 0<=m.x&&m.x<=1&&0<=m.y&&m.y<=1};
hF.prototype.s1=function(s,m,l,x,a,P,o){this.an6=P;this.JO=x;var G=s.t.O,_;if(this.DF==null)x=r.PL.ZX(s,x,m);
this.pR=x.clone();if(this.DF==null){this.pR.offset(1,1);var j=a==null?1:1/a;this.DF=[x.x,x.y,x.x+1,x.y,x.x+1,x.y+j,x.x,x.y+j];
_=8}else{_=this.t4(l,x,G,o);if(0<=_&&_<=8)this.pR=this.A4(this.DF)[_];if(_==9){this.yN=9;this.BM=x.clone()}}this.WQ=this.DF.slice(0);
this.Ez=_;this.Yk(s,m);this.Qz=this.rY();return _!=-1};hF.prototype.ath=function(s,m,l,x){return this.t4(s,m,l.t.O,x)};
hF.prototype.t4=function(s,m,l,x){var a=-1,P=this.A4(),o=x?r.gF({t:{O:l}},x):6*r.W()/l;if(a==-1)if(fz.rv(this.rY(),m)<o)a=9;
if(a==-1)for(var C=0;C<P.length;C++)if(C!=4&&fz.rv(P[C],m)<o)a=C;if(a==-1&&s&&s.$(dV.Il))a=9;if(a==-1||this.ur==4){if(this.w2(m)){if(this.a09)a=10}else{var G=this.Dm(m,this.DF),_=new bU(0,0,1,1);
_.yD(.2,.2);a=_.j_(G)&&this.ur!=3?11:10}}return a};hF.prototype.zk=function(s,m,l,x){if(this.Ez==-1)return;
this.JO=x;var a=l.$(dV.Ht),P=l.$(dV.Il),o=l.$(dV.bt),G=s.t.O,_=this.pR,j=this.Ez,U=this.A4(),S=r.PL.ZX(s,_,m),X=r.PL.ZX(s,x,m),c,y;
if(j==9){var U=this.A4(),O=-1;for(var C=0;C<U.length;C++)if(fz.rv(U[C],X)*G<10)O=C;this.yN=O==-1?9:O;
this.BM=a?r.W0.m4(S,X):X.clone()}else if(j==10){y=L.H.ge(this.WQ);var p=y.x,D=y.y;y.offset(x.x-_.x,x.y-_.y);
if(this.lM()){y.x=Math.round(y.x);y.y=Math.round(y.y)}c=r.PL.nM(s,y,m);var f=new ae(1,0,0,1,y.x-p+c[0],y.y-D+c[1]);
L.H.A(this.WQ,f,this.DF)}else if(j==11){var T=this.rY(this.WQ),I=T.fy(x),H=T.fy(_),b=Math.atan2(I.y,I.x),R=Math.atan2(H.y,H.x),f=new ae(1,0,0,1,-T.x,-T.y),W=Math.PI/12;
if(a)f.rotate(Math.round((R-b)/W)*W);else f.rotate(R-b);f.translate(T.x,T.y);L.H.A(this.WQ,f,this.DF)}else{var J,u=this.WQ,e=j==0||j==2||j==6||j==8;
if(this.ur==1){if(e)a=P=o=!0}else if(this.ur==2&&e&&this.an6!=!0)o=!0;if(this.ur==3)o=!1;if(this.aqN&&e&&o){var C=[0,0,2,0,0,0,6,0,4,0][j],Q=-1,q=X.x,Z=X.y;
if(a){var E=C+6&7,z=C+10&7,V=hF.Hb(u[C],u[C+1],u[E],u[E+1],X.x,X.y),Y=hF.Hb(u[C],u[C+1],u[z],u[z+1],X.x,X.y),d=V[2]<Y[2]?V:Y;
q=d[0];Z=d[1];if(P)Q=V[2]<Y[2]?E:z}else if(P)Q=C+4&7;J=u.slice(0);if(Q!=-1){var w=u[Q],A=u[Q+1],$=(u[C]+w)/2,i=(u[C+1]+A)/2;
J[Q]=$-(q-$);J[Q+1]=i-(Z-i)}J[C]=q;J[C+1]=Z}else if(e&&P){var T=this.Qz,K=T.x,h=T.y,F=S.x-K,N=S.y-h,iQ=1,jB=1;
if(Math.abs(F)>=1)iQ=(X.x-K)/F;if(Math.abs(N)>=1)jB=(X.y-h)/N;if(a||this.De)iQ=jB=(iQ+jB)/2;var f=new ae;
f.translate(-K,-h);f.scale(iQ,jB);f.translate(K,h);J=u.slice(0);L.H.A(J,f,J)}else{if(this.lM()){X.x=Math.round(X.x);
X.y=Math.round(X.y)}var k=[0,1,2,5,8,7,6,3],ab=k[(k.indexOf(j)+4)%8],f_=[];for(var C=0;C<3;C++)for(var Q=0;
Q<3;Q++)f_.push(new fz(Q/2,C/2));var T=this.Qz,fc=this.Dm(X,u),g8=this.Dm(_,u),bH=P&&(this.yN==4||this.yN==9)?this.Dm(T,u):f_[ab],cR=new ae,hr=new ae,iQ=(fc.x-bH.x)/(g8.x-bH.x);
if(iQ==0)iQ=1e-4;var jB=(fc.y-bH.y)/(g8.y-bH.y);if(jB==0)jB=1e-4;if(this.aeB){iQ=Math.max(iQ,0);jB=Math.max(jB,0)}if(j==0||j==2||j==6||j==8){if(a||this.De)cR.scale(iQ,iQ);
else cR.scale(iQ,jB)}if(j==1||j==3||j==5||j==7){var h$=this.De;if(j==1||j==7)cR.scale(h$?jB:1,jB);else cR.scale(iQ,h$?iQ:1);
if(this.a3o&&o){if(j==1||j==7)hr.In=(fc.x-bH.x)/(fc.y-bH.y);else hr.S=(fc.y-bH.y)/(fc.x-bH.x)}}var f=new ae;
f.translate(-bH.x,-bH.y);f.concat(cR);f.concat(hr);f.translate(bH.x,bH.y);J=[0,0,1,0,1,1,0,1];L.H.A(J,f,J);
var d=L.V.CX(u);L.V.A(d,J)}if(hF.Jf(J))this.DF=J}this.Yk(s,m);if(c)r.PL.za(s,y,c)};hF.Hb=function(s,m,l,x,a,P){var o=l-s,G=x-m,_=a-s,j=P-m,U=o*o+G*G,S=_*o+j*G,X=S/U,c=s+X*o,y=m+X*G,O=a-c,p=P-y;
return[c,y,Math.sqrt(O*O+p*p)]};hF.prototype.lM=function(){var s=this.DF;return Math.abs(s[1]-s[3])<1e-6&&Math.abs(s[2]-s[4])<1e-6||Math.abs(s[0]-s[2])<1e-6&&Math.abs(s[3]-s[5])<1e-6};
hF.Jf=function(s){return L.H.k6(s)||L.H.k6([s[6],s[7],s[4],s[5],s[2],s[3],s[0],s[1]])};hF.prototype.I6=function(s,m,l,x){this.Ez=-1;
this.JO=null;s.D.p3=null;s.D.va=[];s.R8=!0};hF.prototype.NZ=function(s,m,l){var x=l.jv();if(x.x||x.y){var a=new ae(1,0,0,1,x.x,x.y);
L.H.A(this.DF,a,this.DF);this.Yk(s,m);return!0}return!1};hF.prototype.A4=function(s){if(s==null)s=this.DF;
var m=s[6]-s[0],l=s[7]-s[1],x=s[4]-s[2],a=s[5]-s[3],P=[s[0],s[1],s[2],s[3],s[0]+m/2,s[1]+l/2,s[2]+x/2,s[3]+a/2,s[6],s[7],s[4],s[5]],o=[];
for(var C=0;C<3;C++){var G=C*4,_=P[G+0],j=P[G+1],U=P[G+2],S=P[G+3];o.push(new fz(_,j));o.push(new fz(_+(U-_)/2,j+(S-j)/2));
o.push(new fz(U,S))}return o};hF.prototype.Yk=function(s,m,l){if(l==null)l=!1;var x=this.A4(),a=x[0],P=x[2],o=x[6],G=x[8];
s.D.NJ={r:[],s:[]};s.D.NJ.r.push("M","L","L","L","Z");s.D.NJ.s.push(a.x,a.y,P.x,P.y,G.x,G.y,o.x,o.y);
var _=this.aad;if(_>1){var j=P.fy(a),U=o.fy(a),S=G.fy(P),X=G.fy(o);for(var C=1;C<_;C++){s.D.NJ.r.push("M","L","M","L");
var c=C/_;s.D.NJ.s.push(a.x+j.x*c,a.y+j.y*c,o.x+X.x*c,o.y+X.y*c);s.D.NJ.s.push(a.x+U.x*c,a.y+U.y*c,P.x+S.x*c,P.y+S.y*c)}}s.t.Bm=new bU(0,0,fz.rv(x[0],x[2]),fz.rv(x[0],x[6]));
if(this.Ez!=-1&&this.Ez<9&&this.JO){var y=s.t.fU(this.JO.x,this.JO.y);r.xO.G$(y,s.t.Bm,s,m)}if(!l){s.D.Sk=[];
for(var C=0;C<x.length;C++)if(C!=4)s.D.Sk.push(x[C].x,x[C].y);var O=this.rY();s.D.Sk.push(O.x,O.y)}s.R8=!0};
hF.prototype.clear=function(s){s.t.Bm=null;s.D.p3=null;s.D.NJ=null;s.D.Sk=[];s.R8=!0};function fA(s,m){this.Lv=null;
this.Ez=-1;this.md(s)}fA.prototype.ew=function(){return JSON.parse(JSON.stringify(this.Lv))};fA.prototype.md=function(s){this.Lv=JSON.parse(JSON.stringify(s))};
fA.prototype.w2=function(s){return!0};fA.prototype.l8=function(s,m,l,x){var a=this.t4(s,m,x);if(a==-1)return"default";
return"pointer"};fA.prototype.s1=function(s,m,l,x,a,P,o){this.Ez=this.t4(x,s.t.O,o);return this.Ez!=-1};
fA.prototype.t4=function(s,m,l){var x=this.$N(),a=-1,P=1e6;for(var C=0;C<x.length;C++){var o=fz.rv(x[C],s);
if(o<P){a=C;P=o}}return P<(l?r.gF({t:{O:m}},l)*2:20*r.W()/m)?a:-1};fA.prototype.zk=function(s,m,l,x){if(this.Ez==-1)return;
var a=s.t.O,P=this.Ez,o=L.Lv.Y4(this.Lv);o[P*2]=x.x;o[P*2+1]=x.y;L.Lv._u(o,this.Lv)};fA.prototype.I6=function(s,m,l,x){this.Ez=-1;
s.R8=!0};fA.prototype.NZ=function(s,m,l){var x=l.jv();if(x.x||x.y){var a=new ae(1,0,0,1,x.x,x.y);L.H.A(this.DF,a,this.DF);
this.Yk(s)}};fA.prototype.$N=function(s){var m=L.Lv.Y4(this.Lv),l=[];for(var C=0;C<m.length;C+=2)l.push(new fz(m[C],m[C+1]));
return l};fA.prototype.Yk=function(s){var m=this.$N();s.D.NJ={r:[],s:[]};s.D.NJ.r.push("M","C","C","C","C");
var l=[0,1,2,3,7,11,15,14,13,12,8,4,0];for(var C=0;C<l.length;C++)s.D.NJ.s.push(m[l[C]].x,m[l[C]].y);
s.D.NJ.r.push("M","L","L","M","L","L","M","L","L","M","L","L");l=[4,0,1,2,3,7,11,15,14,13,12,8];for(var C=0;
C<l.length;C++)s.D.NJ.s.push(m[l[C]].x,m[l[C]].y);s.D.Sk=[];for(var C=0;C<m.length;C++)s.D.Sk.push(m[C].x,m[C].y);
s.R8=!0};fA.prototype.clear=function(s){s.D.NJ=null;s.D.Sk=[];s.R8=!0};function iE(){this.EL=!1;this.qe=!1;
this.a1S=!1;this.aeU=!1;this.sL=!1;this.E7=!1;this.AX=0;this.pn=0}iE.prototype.s1=function(s){this.EL=!0;
this.qe=!1;this.sL=s.$(dV.Ht);this.E7=s.$(dV.Il);this.AX=this.sL?0:1;this.pn=this.E7?0:1};iE.prototype.NZ=function(s){var m=this.aeU=s.$(dV.Ht),l=this.a1S=s.$(dV.Il);
if(this.qe){if(this.AX==0&&!m)this.AX++;if(this.AX==1&&m)this.AX++;if(this.pn==0&&!l)this.pn++;if(this.pn==1&&l)this.pn++}};
iE.prototype.zk=function(){this.qe=!0};iE.prototype.I6=function(){this.EL=!1};iE.prototype.Vc=function(C){if(C==0)return this.EL?this.E7:this.a1S;
if(C==1)return this.qe?this.pn==2:!1};iE.prototype.zf=function(C){if(C==0)return this.EL?this.sL:this.aeU;
if(C==1)return this.qe?this.AX==2:!1};r.History=function(){r.xO.call(this,"History",r.rs);this.Tw=!0;
this.amL=0};r.History.prototype=new r.xO;r.History.prototype.Pk=function(s,m,l,x){l.Gq=!0;if(s.d=="h_itemchange"){if(s.index<l.gH)for(var C=l.gH;
C>s.index;C--)this.Mc(l);if(s.index>l.gH)for(var C=l.gH;C<s.index;C++)this.Gw(l)}if(s.d=="h_stepfwd")this.Gw(l);
if(s.d=="h_stepbck")this.Mc(l);if(s.d=="h_undoredo"){var a=this.Tw||this.amL!=l.gH;if(a){this.Mc(l);
a=!1}else{this.Gw(l);a=!0}this.Tw=a;this.amL=l.gH}else this.Tw=!0};r.History.prototype.Mc=function(s){if(s.gH==0)return;
var m=s.history[s.gH];m.c.V1(m.data,s);s.gH--};r.History.prototype.Gw=function(s){if(s.gH==s.history.length-1)return;
var m=s.history[s.gH+1];m.c.mH(m.data,s);s.gH++};r.EM=function(){r.xO.call(this,"Layers",r.ay);this.OU=null};
r.EM.prototype=new r.xO;r.EM.prototype.Pk=function(s,m,l,x,a){this.OU=m;var P=s.d,o=s.i!=null?s.i:l.N.length!=0?l.N[0]:l.G.length-1,G=l.G[o];
l.CR=!0;var _=x.$(dV.Il),j=x.$(dV.Ht),U=x.$(dV.bt);if(P==t.ER&&l.q==null&&(l.N.length>1||!l.z6(!1)))P=t.Rk;
if(P==t.fL){var S=new aU([6,33],this),X=G.gu()?["pass"].concat(aA.EB):aA.EB,c=X[s.Ur],y=s.i!=null?[s.i]:l.N,O=JSON.stringify(y),p=[];
for(var C=0;C<y.length;C++)p.push(l.G[y[C]].TR);S.data={d:P,tP:O,_A:p,Ur:c};l.eN(S);this.mH(S.data,l);
this.track(e6.$Z("Md",{t:"enum",v:{BlnM:aA.bH(c)}}))}if(P==t.j$){var S,D=l.b1(),y=s.i!=null?[s.i]:l.N,O=JSON.stringify(y);
if(D&&D.data&&D.data.d==P&&D.data.tP==O)S=D;else{var f=e6.$Z("Opct",{t:"UntF",v:{type:"#Prc",val:0}});
this.track(f);var p=[];for(var C=0;C<y.length;C++)p.push(l.G[y[C]].opacity);S=new aU([6,32],this);S.data={d:P,tP:O,_A:p,Ur:s.Ur,TJ:f.WA};
l.eN(S)}S.data.Ur=s.Ur;S.data.TJ.T.v.Opct.v.val=Math.round(s.Ur*100/255);this.mH(S.data,l)}if(P==t._o){if(G.add.iOpa==null)G.add.iOpa=255;
var S,D=l.b1();if(D&&D.data&&D.data.d==P&&D.data.i==o)S=D;else{S=new aU("Fill Opacity Change",this);
S.data={d:P,i:o,_A:G.add.iOpa,Ur:s.Ur};l.eN(S)}S.data.Ur=s.Ur;this.mH(S.data,l)}if(P==t.wx){var T=s.Ur,I=s.i!=null?[s.i]:l.N.slice(0),H=[],b=[],S;
for(var R=0;R<I.length;R++){var W=l.G[I[R]];if(W.add.lspf==null)W.add.lspf=0;var p=W.add.lspf,c=p;for(var C=0;
C<T[0].length;C++){var J=T[1][C],u=1<<J;if((c&u)==0&&T[0][C])c^=u;else if((c&u)!=0&&!T[0][C])c^=u}H.push(p);
b.push(c)}var D=l.b1(),y=JSON.stringify(I);if(D&&D.data&&D.data.d==P&&JSON.stringify(D.data.tP)==y){S=D;
S.data.Ur=b}else{var S=new aU([6,57,1],this);S.data={d:P,tP:y,_A:H,Ur:b};l.eN(S)}this.mH(S.data,l)}if(P==t.up){var e="----",Q=s.Kb,c=null;
for(var C=0;C<iy.u5.Ko.length;C++)if(G.add[iy.u5.Ko[C]])e=iy.u5.Ko[C];var q=G.add[e];if(Q=="TySh")c=ex.mA(50,50,a.ME);
var S=new aU("Layer Type",this);S.data={d:P,i:o,a91:[e,q],Kb:[Q,c]};l.eN(S);this.mH(S.data,l)}if(P==t.Fm){var I=[];
if(_){var Z=l.b1(),E=Z?Z.data:null;if(Z!=null&&Z.c==this&&E.d==t.Fm&&E.tP.length!=1){var z=new h9(v.E.u);
z.c=r.rs;z.data={d:"h_stepbck"};m.Y(z);if(E.i==o)return}var V=l.root.Wp(o),Y=l.cT(null,o);while(V.parent!=l.root){Y.push(V.parent.index);
V=V.parent}for(var C=0;C<l.G.length;C++){var d=l.G[C],w=d.p$(),A=Y.indexOf(C)!=-1;if(!A&&w)I.push(C);
if(C==o&&!w)I.push(C)}}else{I.push(o);var w=l.G[o].p$(),f={YF:w?"hide":"show",WA:{classID:w?"Hd":"Shw",null:{t:"VlLs",v:[e6.Yr("Lyr",!0)]}}};
this.track(f)}var S=new aU("Layer visibility",this,!0);S.data={d:P,tP:I,i:o};l.eN(S);this.mH(S.data,l)}if(P==t.dk){var $=s.abQ,i=s.GF,N,escape=!1,ab=!1;
if(s.a2a){if(U&&(i==0||i==1||i==2)){var K=0;if(j)K++;if(_)K+=2;var F=new h9(v.E.u,!0);F.c=r.r$;F.data={d:"fromlayer",KA:[s.i,i,K]};
m.Y(F);return}}var f={YF:"select",WA:{classID:"null",MkVs:{t:"bool",v:!1}}};if(l.t.OL.join("")!="111"){l.t.OL=[1,1,1];
l.R8=!0}for(var C=0;C<l.G.length;C++){var d=l.G[C],iQ=d.add.vmsk;if(d.UI()){var jB=d.Ao(l);if(jB&&jB.v&&jB.v.IU){jB.v.IU=!1;
l.R8=!0}}var k=d.SE();if(k&&k.IU){k.IU=!1;l.R8=!0}if(iQ){if(iQ.N.length!=0)iQ.N=[];if(iQ.ds.length!=0)iQ.ds=[]}}if(x.$(dV.bt)||s.arl==0){var f_=l.N.indexOf(o);
if(f_==-1)l.N.push(o);else if(l.N.length>1)l.N.splice(f_,1);l.N.sort(function(S,cB){return S-cB});f.WA.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelection"}};
N=o}else if(j&&!_&&i>0){P=i==1?t.mD:i==2?t.Kl:t.EW;escape=!0}else if((j||s.arl==1)&&l.N.length>0){var fc=Math.min(o,l.N[0]),g8=Math.max(o,l.N[l.N.length-1]);
l.N=[];for(var C=fc;C<=g8;C++)if(l.G[C].add.lsct!=hN.k_)l.N.push(C);f.WA.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelectionContinuous"}};
N=o}else{N=o;if(o>=l.G.length)return;var d=l.G[o];if(d&&d.gu()&&s.anN)d.add.lsct=hN.yF;else if(l.N.length==1&&l.N[0]==o&&i==d.Ar){ab=!0}if(!ab){l.N=[o];
l.dH()}}if(!ab){if(N!=null&&N<l.G.length){f.WA.null={t:"obj ",v:[{t:"name",v:{classID:"Lyr",val:l.G[N].getName()}}]},this.track(f)}if(!escape){console.log("no escape");
if(l.N.length==1){var bH=l.N[0];for(var C=0;C<l.G.length;C++){if(C==bH)continue;var W=l.G[C];W.Ar=0;
W.UB=!1}var G=l.G[bH];if(i==2){G.UB=!G.UB;l.FZ=[]}else if(G){G.Ar=i<=0?0:i}}else for(var C=0;C<l.G.length;
C++){var W=l.G[C];W.Ar=0;W.UB=!1}l.QR=null;l.Gq=!0}}if(s.a2a&&_){if((i==1||i==3)&&$!=null){var F=new h9(v.E.u,!0);
F.c=r.Zq;F.data={d:"mskView",Z:$!=0?0:j?1:2};m.Y(F)}else{this.Pk({d:t.VD,i:s.i},m,l,x,a)}}}if(P==t.mD||P==t.EW){var cR=P==t.mD,hr=cR?G.SE():G.Ao(l).v;
if(hr==null)return;var S=new aU(hr.isEnabled?cR?[6,15]:[6,42]:cR?[6,14]:[6,41],this);S.data={d:P,i:o};
l.eN(S);this.mH(S.data,l)}if(P==t.Kl){var hr=G.add.vmsk;if(hr==null)return;var S=new aU(hr.isEnabled?[6,17]:[6,16],this);
S.data={d:P,i:o};l.eN(S);this.mH(S.data,l)}if(P==t.bT){var h$=G.add.lsct==hN.yF?hN.fs:hN.yF;if(x.$(dV.bt)){var gE=l.root.Wp(l.G.indexOf(G)).parent;
for(var C=0;C<gE.children.length;C++){var d8=gE.children[C].i;if(d8.gu())d8.add.lsct=h$}}else G.add.lsct=h$;
l.Gq=!0}if(P==t.VD){if(!l.oD(o))return;var S=new aU(G.uK?[6,19]:[6,18],this);S.data={d:P,i:o};l.eN(S);
if(s.Ur==null||s.Ur!=G.uK)this.mH(S.data,l)}if(P==t.hf){if(G.nE())G.Yy-=32;else G.Yy+=32;l.Gq=!0}if(P==t.Q7||P==t.gh){var S;
if(P==t.Q7)S=new aU(G.add.lmfx.masterFXSwitch.v?[6,30]:[6,29],this);if(P==t.gh)S=new aU(G.add.SoLd.filterFX.v.enab.v?[6,44]:[6,43],this);
S.data={d:P,i:o};l.eN(S);this.mH(S.data,l)}if(P==t.vI||P==t.Uc){var bH=s.index,S;if(P==t.vI)S=new aU(G.add.lmfx[i4.rm[bH[0]]].v[bH[1]].v.enab.v?[6,30]:[6,29],this);
if(P==t.Uc)S=new aU(G.add.SoLd.filterFX.v.filterFXList.v[bH].v.enab.v?[6,44]:[6,43],this);S.data={d:P,i:o,index:s.index};
l.eN(S);this.mH(S.data,l)}if(P==t.KB){if(s.src==s.B1)return;var hG=l.G[s.src],f7=l.G[s.B1],hX=hG.add.lmfx?JSON.stringify(hG.add.lmfx):"",fB=f7.add.lmfx?JSON.stringify(f7.add.lmfx):"";
if(f7.add.lmfx==null){f7.add.lmfx=JSON.parse(i4.default);for(var C=0;C<i4.order.length;C++)f7.add.lmfx[i4.rm[C]]={t:"VlLs",v:[]}}if(s.o8==null){f7.add.lmfx=JSON.parse(hX);
if(!_)delete hG.add.lmfx}else{var e5=s.o8[0],g9=i4.rm[e5];if(i4.X2.indexOf(i4.order[e5])==-1)f7.add.lmfx[g9].v=[];
f7.add.lmfx[g9].v.push(hG.add.lmfx[g9].v[s.o8[1]]);if(!_)hG.add.lmfx[g9].v.splice(s.o8[1],1)}var cL=hG.add.lmfx?JSON.stringify(hG.add.lmfx):"",bf=f7.add.lmfx?JSON.stringify(f7.add.lmfx):"";
if(!f7.nE())f7.Yy+=32;var S=new aU("Move Layer Styles",this);S.data={d:P,HI:s.src,KI:s.B1,ajK:hX,aj2:fB,a2w:cL,afh:bf};
l.eN(S);this.mH(S.data,l)}if(P==t.RC){if(s.src!=null)o=s.src;var W=l.G[o],gF=JSON.stringify(W.add.SoLd),iC=JSON.parse(gF),ax=iC.filterFX.v.filterFXList.v;
ax.splice(s.o8,1);var S=new aU([6,53],this);S.data={d:t.RD,QQ:[{oB:o,BU:[gF,JSON.stringify(iC)]}]};l.eN(S);
this.mH(S.data,l)}if(P==t.yA){var e7=_,hG=l.G[s.src],f7=l.G[s.B1],dO=[];if(hG!=f7&&f7.add.SoLd==null){alert("Target layer is not a smart object!");
return}if(hG==f7&&!e7&&(s.o8==s.RH||s.o8==-1))return;var h1=hG.Ao(l),gF=JSON.stringify(hG.add.SoLd),iC=JSON.parse(gF),ax=iC.filterFX.v.filterFXList.v;
if(hG==f7){ax.splice(s.RH,0,ax[s.o8]);if(!e7)ax.splice(s.o8+(s.o8<s.RH?0:1),1);dO.push({oB:s.src,BU:[gF,JSON.stringify(iC)]})}else if(s.o8==-1){var hL=iC.filterFX;
if(!e7){delete iC.filterFX;dO.push({oB:s.src,BU:[gF,JSON.stringify(iC)],ac:[h1,null]})}var jl=f7.UI()?f7.Ao(l):null,gT=jF.bZ(h1),hZ=JSON.stringify(f7.add.SoLd),j6=JSON.parse(hZ);
j6.placed.v=gT.id;j6.filterFX=hL;dO.push({oB:s.B1,BU:[hZ,JSON.stringify(j6)],ac:[jl,gT]})}else{var aP=ax[s.o8];
if(!e7){ax.splice(s.o8,1);dO.push({oB:s.src,BU:[gF,JSON.stringify(iC)]})}var hZ=JSON.stringify(f7.add.SoLd),j6=JSON.parse(hZ);
if(j6.filterFX==null)j6.filterFX=ib.yo();var h7=j6.filterFX.v.filterFXList.v;h7.splice(s.RH,0,aP);var fa={oB:s.B1,BU:[hZ,JSON.stringify(j6)]};
if(!f7.UI()){var gT=jF.y3(f7.add.SoLd.placed.v);fa.ac=[null,gT]}dO.push(fa)}var S=new aU([6,52],this);
S.data={d:t.RD,QQ:dO};l.eN(S);this.mH(S.data,l)}if(P==t.VW){var hr=G.SE(),S=new aU(hr.FT?[6,26]:[6,25],this);
S.data={d:P,i:o};l.eN(S);this.mH(S.data,l);this.track({YF:"set",WA:{classID:"setd",null:{t:"obj ",v:[e6.Yr("Lyr",!0)]},T:{t:"Objc",v:{classID:"Lyr",Usrs:{t:"bool",v:hr.FT}}}}})}if(P==t.TK){var hr=G.add.vmsk,S=new aU(hr.FT?[6,28]:[6,27],this);
S.data={d:P,i:o};l.eN(S);this.mH(S.data,l)}if(P==t.KX){var h4=[],S;for(var C=0;C<l.N.length;C++){var R=l.N[C],d=l.G[R];
if(d.add.vogk)h4.push(R,JSON.stringify(d.add.vogk))}for(var C=0;C<l.FZ.length;C++){var R=l.FZ[C],d=l.sj[R];
if(d.add.vogk)h4.push(-1-R,JSON.stringify(d.add.vogk))}L.R2.akv(l,s.Z);var cA=[];for(var C=0;C<l.N.length;
C++){var R=l.N[C],d=l.G[R];if(d.add.vogk)cA.push(R,JSON.stringify(d.add.vogk))}for(var C=0;C<l.FZ.length;
C++){var R=l.FZ[C],d=l.sj[R];if(d.add.vogk)cA.push(-1-R,JSON.stringify(d.add.vogk))}var D=l.b1();if(D&&D.data&&D.data.d==P){var jg=!0;
for(var C=0;C<h4.length;C+=2)if(h4[C]!=D.data.Db[C])jg=!1;if(jg){S=D;S.data.sm=cA}}if(S==null){var S=new aU([12,91,1],this);
S.data={d:P,Db:h4,sm:cA};l.eN(S)}this.mH(S.data,l)}if(P==t.Md){var cS=JSON.stringify(G.add.artb),iT=JSON.stringify(s.kO),S;
l.G[o].add.artb=JSON.parse(iT);var cf=new bU(0,0,l.e,l.l),ir=r.Bs.Eo(l),D=l.b1();if(D&&D.data&&D.data.d==P&&D.data.i==o){S=D;
S.data.kO=iT}if(S==null){var S=new aU("Editing Artboard",this);S.data={d:P,i:o,at2:cS,kO:iT,sW:cf};l.eN(S)}S.Q6=ir;
this.mH(S.data,l)}if(P==t.iq){var cA=l.$_.slice(0),bl=l.Be.slice(0),gp=l.q,j4=l.q;if(s.R7=="fromAction"){var ey=s.Z.YF,ca=s.Z.WA;
if(ey=="make"||ey=="duplicate"){var iu=cA.length,g$=!1,cy=!1;if(l.R4())iu--;var jv=new t.K0;jv.name="Alpha "+(iu+1);
if(ey=="make"){var cK=ca.Nw.v;jv.color=255;bl=[iu];jv.IU=!0;jv.iu=cK.Opct.v;if(cK.Nm)jv.name=cK.Nm.v;
if(cK.classID=="SCch"){g$=!0;j4=null;jv._z=1}}else{var cN=ca.null.v[0].v;if(cN.keyID=="fsel")g$=!0;else{var cJ=r.bJ.XL(l);
j4=r.bJ.S_(l,cJ);jv.color=0;jv.rect=j4.rect;jv.channel=j4.channel}}if(g$){jv.color=0;if(l.q){jv.rect=l.q.rect.clone();
jv.channel=l.q.channel.slice(0)}if(cy){jv.color=255-jv.color;L.ms(jv.channel)}}cA.splice(iu,0,jv)}else if(ey=="delete"){if(G&&G.SE()&&G.Ar==1){this.Pk({d:t.aG},m,l,x,a);
return}var Y=l.Be;Y.sort(function(S,cB){return cB-S});if(Y.length==0)return;for(var C=0;C<Y.length;C++)cA.splice(Y[C],1);
bl=[]}else if(ey=="hide"){cA[bl[0]]=cA[bl[0]].clone();cA[bl[0]].IU=!1}}if(s.R7=="rnm"){cA[s.jV]=cA[s.jV].clone();
cA[s.jV].name=s.name}var S=new aU("Channel Edit",this);S.data={d:P,Db:l.$_.slice(0),EA:l.Be.slice(0),sm:cA,Pd:bl,MW:gp,Q$:j4};
this.mH(S.data,l);l.eN(S)}if(P==t.Jb){var fb=new bU(0,0,l.e,l.l),S=new aU(s.YH,this);S.data={d:t.Jb,i2:l.G.slice(0),vz:s.vz,us:l.N.slice(0),jF:s.Q$};
l.eN(S);this.mH(S.data,l);var cd=r.Bs.ra(l);if(cd){S.data.sW=fb;S.data.Q6=cd}}if(P==t.q_){var em=l.cT(null,s.i),ie=1e10;
if(em.length==0)return;if(l.G.length==em.length){alert("Project must have at least 1 layer");return}var eq=[];
for(var C=0;C<l.G.length;C++)if(em.indexOf(C)==-1)eq.push(l.G[C]);for(var C=0;C<em.length;C++)ie=Math.min(ie,em[C]);
ie=Math.max(ie-1,0);while(eq[ie].name=="</Layer group>")ie++;this.track({YF:"delete",WA:{classID:"Dlt",null:e6.Yr("Lyr",!0)}});
var S=new aU([6,31],this);S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:[ie]};l.eN(S);this.mH(S.data,l)}if(P==t.ZA){if(!x.$(dV.Ht))return;
var S=new aU("Switch Layer Link",this);S.data={d:P,i:s.i};l.eN(S);this.mH(S.data,l)}if(P==t.xV){var Y=s.apx?s.apx:l.N,i3=0,jy=!1;
if(Y.length==0)return;if(Y.length==1&&l.G[Y[0]].FX==0){alert(iX.get([15,7,5]));return}var j9=[];for(var C=0;
C<l.G.length;C++){var dm=l.G[C].FX;j9.push(dm);i3=Math.max(i3,dm)}var eg=-1,a$=-1;for(var C=0;C<Y.length;
C++){var dm=l.G[Y[C]].FX;if(dm==0)jy=!0;else if(eg==-1||eg==dm)eg=dm;else a$=dm}if(!jy)for(var C=0;C<Y.length;
C++)l.G[Y[C]].FX=0;else if(eg!=-1&&a$==-1)for(var C=0;C<Y.length;C++)l.G[Y[C]].FX=eg;else for(var C=0;
C<Y.length;C++)l.G[Y[C]].FX=i3+1;var cg=[];for(var C=0;C<l.G.length;C++){var dm=l.G[C].FX;if(cg[dm]==null)cg[dm]=0;
cg[dm]++}for(var C=0;C<l.G.length;C++){var dm=l.G[C].FX;if(cg[dm]==1)l.G[C].FX=0}var gt=j9;j9=[];for(var C=0;
C<l.G.length;C++){var dm=l.G[C].FX;j9.push(dm);i3=Math.max(i3,dm)}var S=new aU(jy?[6,54,0]:[6,54,1],this);
S.data={d:t.xV,a9i:gt,a8V:j9};l.eN(S);this.mH(S.data,l)}if(P==t.Rk&&(s.i!=null||l.N.length!=0)||P==t.LW){var i2=l.qJ(P==t.Rk?s.i:o,null,s.a6x),cZ;
if(P==t.LW){var W=i2[0],ey=W.add.SoLd.Idnt.v,g5=l.a7(ey).clone();W.add.SoLd.Idnt.v=g5.te=jF.wd()+ey.slice(8);
l.add.lnk2.push(g5)}if(P==t.Rk){var ip={YF:"duplicate",WA:{classID:"null",null:e6.Yr("Lyr",!0)}};if(s.Q_){i2[0].qW(s.Q_);
ip.Nm={t:"TEXT",v:s.Q_}}this.track(ip);s.a9Q=s.i}P=t.mg;s.G=i2;s.Pr=l;s.XT=l}if(P==t.mg){var db,eS,a1=s.Pr,im=s.XT,dE=0,d9=0,aF=!1,jd=0,cv=0;
if(a1!=im){console.log("ADDLAYERS different projs");var db=new bU(0,0,a1.e,a1.l),eS=new bU(0,0,im.e,im.l),e3=[],gu=[];
for(var C=0;C<s.G.length;C++){var W=s.G[C];if(W.add.SoLd==null)continue;var ey=W.add.SoLd.Idnt.v;if(e3.indexOf(ey)==-1){e3.push(ey);
gu.push(jF.wd()+ey.slice(8))}W.add.SoLd.Idnt.v=gu[e3.indexOf(ey)];var h1=W.Ao(a1);if(h1){a1.Nu(h1);im.Vi(h1)}}if(e3.length>0){if(im.add.lnk2==null)im.add.lnk2=[];
for(var C=0;C<e3.length;C++){var f3=a1.a7(e3[C]),g5=f3.clone();g5.te=gu[C];im.add.lnk2.push(g5)}}}var gp=im.N.slice(0);
gp.sort(function(S,cB){return S-cB});var eq=im.G.slice(0),j4=[],jw=-1;for(var C=0;C<gp.length;C++)jw=Math.max(jw,gp[C]);
if(s.a9Q!=null)jw=s.a9Q;var iz=a1.SV();if(s.tc){jw=s.tc-1;var jE=im.G[s.tc].wy();dE+=jE.x;d9+=jE.y}if(iz!=-1&&(a1!=im||s.tc)){var dS=a1.G[iz].wy();
dE-=dS.x;d9-=dS.y}var c9=im.Ls();jw++;for(var C=0;C<s.G.length;C++){var d=s.G[C],au=d.add.artb;eq.splice(jw,0,d);
j4.push(jw);jw++;if(au){var cc=au.guideIndeces;if(cc){cc=cc.v;console.log(cc);for(var bN=0;bN<cc.length;
bN++){c9[0].push(a1.ff[cc[bN].v].slice(0));c9[1].push(eq.indexOf(d));aF=!0}}}}for(var C=0;C<s.G.length;
C++){var d=s.G[C];if(d.name=="</Layer group>"){if(jd==0)cv++;jd++}else if(d.gu())jd--}if(cv==1)j4=[jw-1];
var S=new aU([6,0],this);S.data={d:t.Jb,i2:im.G.slice(0),vz:eq,us:gp,jF:j4};if(aF){S.data.pO=[im.Ls(),c9]}im.eN(S);
this.mH(S.data,im);if(dE!=0||d9!=0)r.PL.Ng(im,im.cT(),null,dE,d9)}if(P==t.aN){var iK=s.i!=null?[s.i]:l.cT(),eq=l.G.slice(0);
for(var C=0;C<iK.length;C++){var d=l.G[iK[C]].clone();d.ud(l);eq.splice(iK[C],1,d)}var S=new aU([6,8],this);
S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:l.N.slice(0)};l.eN(S);this.mH(S.data,l)}if(P==t.Av){var eq=l.G.slice(0),d=eq[l.N[0]]=eq[l.N[0]].clone(),e_=d.add.lmfx,cP=0;
delete d.add.lmfx;var d7=L.B(d.rect.k());L.hy(d.buffer,d7,3);var ha=jo.kA(e_,null,d7,d.rect,l,d.rect).type;
for(var C=0;C<i4.order.length;C++){var hu=i4.order[C],hA=ha[hu],e4=C>7;for(var bN=0;bN<hA.length;bN++){var fI=hA[bN],y=l.d2();
y.TR=fI.My;y.opacity=Math.round(255*fI.PK);y.uK=!e4;y.buffer=fI.du;y.rect=fI.DC;y.rect.offset(d.rect.x,d.rect.y);
y.qW(d.getName()+"'s "+iX.get(i4.names[C]));eq.splice(l.N[0]+(e4?0:1),0,y);if(e4)cP++}}var S=new aU("Styles to Layers",this);
S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:[l.N[0]+cP]};l.eN(S);this.mH(S.data,l)}if(P==t.Tt){var iK=l.cT(),eq=l.G.slice(0),jj=new bU(0,0,l.e,l.l);
for(var C=0;C<iK.length;C++){var cD=l.G[iK[C]],cG=cD.p$();cD.tG(!0);var gL=l.root.Wp(iK[C]);if(cD.gu())continue;
if(gL==null)continue;var d=cD.clone();d.ud(l);var gc=gL.E2(l,!0),h3=l.G;l.B0([cD]);l.F();l.nZ();d.buffer=L.B(gc.k()*4);
L.yx(l.cf(),jj,d.buffer,gc);d.rect=gc;d.opacity=255;d.add.iOpa=255;d.TR="norm";d.F();d.GM.qZ=!0;l.B0(h3);
if(d.add.lmfx)delete d.add.lmfx;d.v=d.GR=null;eq.splice(iK[C],1,d);d.tG(cG);cD.tG(cG)}var S=new aU([6,34],this);
S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:l.N.slice(0)};l.eN(S);this.mH(S.data,l)}if(P==t.Vb){var iK=l.cT(),eq=l.G.slice(0);
for(var C=0;C<iK.length;C++){var d=l.G[iK[C]],bb=d.add.TySh;if(bb==null)continue;var W=new hJ(bb.x5,a.dC),fO=L.H.FP(b3.y8(W,bb));
for(var eR in fO){var eM=fO[eR],d8=d.clone();delete d8.add.TySh;d8.Yy=d8.Yy|1<<4;d8.add.SoCo=JSON.parse(JSON.stringify(i4.Om[0]));
var ig=d8.add.SoCo.Clr.v;ig.Rd.v=parseInt(eR.slice(1,3),16);ig.Grn.v=parseInt(eR.slice(3,5),16);ig.Bl.v=parseInt(eR.slice(5,7),16);
var hE=new t.sD;hE.T=L.H.vP(eM,!1);if(d8.add.vmsk!=null){d8.add.vmsk.aa2();hE.concat(d8.add.vmsk)}d8.add.vmsk=hE;
d8.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));d8.GK();d8.sN(l);eq.splice(eq.indexOf(d),0,d8)}eq.splice(eq.indexOf(d),1)}var j4=l.N.slice(0);
for(var C=j4.length-1;C>=0;C--)if(j4[C]>=eq.length)j4.splice(C,1);var S=new aU([6,40],this);S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:j4};
l.eN(S);this.mH(S.data,l)}if(P==t.Dt){var j8=l.N.length;if(j8<2){alert("Select two or more layers.");
return}if(!l.cn())return;var d8=l.G[l.N[0]].clone(),eq=[];for(var C=0;C<l.G.length;C++)if(l.N.indexOf(C)==-1)eq.push(l.G[C]);
eq.splice(l.N[0],0,d8);for(var C=1;C<j8;C++)if(l.G[l.N[C]].rect.k()>2e6){alert("Blended areas are too large.");
return}for(var C=1;C<j8;C++){var d=l.G[l.N[C]],gR=d.rect.clone();gR.yD(1,1);var cB=L.B(gR.k()*4);L.yx(d.buffer,d.rect,cB,gR);
d8.extend(gR);var iV=L.B(gR.k()*4);L.yx(d8.buffer,d8.rect,iV,gR);var S=L.B(gR.k());L.hy(cB,S,3);L.round(S,200);
L._Y(S,cB,3);L.a.$P("norm",cB,gR,iV,gR,gR,1);L.SO.n6(iV,S,gR);L.yx(iV,gR,d8.buffer,d8.rect)}var S=new aU([2,10,0],this);
S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:[l.N[0]]};l.eN(S);this.mH(S.data,l)}if(P==t.f_){var eq=l.G.slice(0),bl=l.N.slice(0);
for(var C=0;C<eq.length;C++){var d=eq[C],iQ=d.add.vmsk;if(d.Ee()&&iQ&&d.add.vstk.strokeEnabled.v&&!d.add.vstk.fillEnabled.v){var cq=iQ.T,fe=0,dj=-1;
for(var bN=0;bN<cq.length;bN++){if((cq[bN].type==0||cq[bN].type==3)&&cq[bN].aZ!=-1){fe++;if(cq[bN].type==3&&dj==-1){cq[bN].pe=cq[bN].aZ=1;
dj=bN}}}if(fe>1&&dj!=-1){console.log("separating an open path into a new layer");d=d.clone();iQ=d.add.vmsk;
cq=iQ.T;var y=cq[dj].length,cn=d.clone();cn.add.lyid=l.yQ();iQ.T=cq.slice(0,2).concat(cq.slice(dj,dj+y+1));
iQ.N=[];d.sN(l);d.F();var aQ=cn.add.vmsk.T;cn.add.vmsk.T=aQ.slice(0,dj).concat(aQ.slice(dj+y+1,aQ.length));
cn.add.vmsk.N=[];cn.sN(l);eq[C]=d;eq.splice(C+1,0,cn);for(var bN=0;bN<bl.length;bN++)if(bl[bN]>C)bl[bN]++;
var fp=bl.indexOf(C);if(fp!=-1){bl.splice(fp+1,0,C+1)}}}}if(eq.length!=l.G.length){var S=new aU("Splitting open paths",this);
S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:bl};l.eN(S);this.mH(S.data,l)}}if(P==t.IN){this.Pk({d:t.f_},m,l,x,a);
var gp=l.N.slice(0),h3=l.G.slice(0),iK=l.cT();if(iK.length==0)return;l.WI(iK,!1,s.pG);var S=new aU([6,36,0],this);
S.data={d:t.Jb,i2:h3,vz:l.G.slice(),us:gp,jF:l.N.slice(0)};l.eN(S);this.mH(S.data,l)}if(P==t.x1){var gF=G.add.SoLd;
if(gF==null)return;var ey=gF.Idnt.v,eZ=l.a7(ey);eZ.cf(!1);var hQ=eZ.H6[0],gR=eZ.H6[1];if(L.pl(hQ)){alert("The smart object contains transparency.");
return}var cI=iO.ln("jpg").yd([[hQ.buffer]],gR.e,gR.l,[90]);this.Pk({d:t.W3,u0:l,data:new Uint8Array(cI),id:ey,pG:"jpg"},m,l,x,a);
console.log(l.add);return}if(P==t.W3){var f3=s.u0.a7(s.id),g5=f3.clone();g5.raw=s.data;if(s.zA)g5.zA=s.zA;
if(s.pG){g5.Br=" ";g5.pC=" ";g5.zA=g5.zA+"."+s.pG}else{g5.Br="8BIM";g5.pC="8BPB";g5.zA=g5.zA+".psd"}g5.cf(!1);
f3.cf(!1);var S=new aU([6,36,1],this);S.data={d:t.W3,id:s.id,Mz:f3,rb:g5};s.u0.eN(S);this.mH(S.data,s.u0)}if(P==t.Me){var S=new aU([6,36,4],this);
S.data={d:P,i:o,nA:G.add.SoLd.Impr.v.classID,Ur:s.Ur};l.eN(S);this.mH(S.data,l)}if(P==t.gP){var f4,jh;
if(s.zY){f4=s.u0;jh=s.zY}else{s.u0.Bi();s.u0.qn();s.u0.F();s.u0.nZ();s.u0.cf();f4=iO.ln("PSD").yd(s.u0,0,0,[!0,!0]);
jh=s.u0.name}if(!(f4 instanceof ArrayBuffer))throw"e";f4=new Uint8Array(f4);var f_=s.m6;if(f_==null){if(l.N.length==0)f_=l.N.length;
else{var cM=l.N[l.N.length-1],y=l.G[cM];f_=y.gu()?cM:cM+1}}var e8=new bU(0,0,l.e,l.l),dq=l.SV();if(dq!=-1)e8=l.G[dq].wy();
var bh=l.PZ(f4,jh,0,0,e8),eq=l.G.slice(0);eq.splice(f_,0,bh);var S=new aU([6,36,2],this);S.data={d:t.Jb,i2:l.G.slice(),vz:eq,us:l.N.slice(0),jF:[eq.indexOf(bh)]};
l.eN(S);this.mH(S.data,l)}if(P==t._7&&s.R7=="merge"){var hC=[],ic=l.root.children,eC=0;for(var C=0;C<ic.length;
C++){var V=ic[C],d=V.i,hq=V.children,bS=!0;if(!d.gu()||hq.length==0)continue;for(var bN=0;bN<hq.length;
bN++)if(!hq[bN].i.getName().startsWith("_a_")){bS=!1;break}if(bS)hC.push(l.G.indexOf(d))}var aB=[];for(var C=0;
C<hC.length;C++)if(l.N.indexOf(hC[C])!=-1)aB.push(hC[C]);if(aB.length>=2)hC=aB;if(hC.length<2){alert("At least two animation folders needed (whose layers start with \"_a_\").",3500);
return}var fk=[];for(var C=0;C<hC.length;C++)fk.push(l.G[hC[C]].getName());var hA=[];for(var hb=0;hb<hC.length;
hb++){var V=l.root.Wp(hC[hb]),fa=[[],[],0,hb];hA.push(fa);for(var C=0;C<V.children.length;C++){var R=V.children[C].index,d=V.children[C].i,jv=d.getName(),jM=20,bO=jv.split(",");
if(bO.length>1){var gP=parseInt(bO.pop());if(!isNaN(gP)&&gP!=0)jM=gP}fa[0].push(d);fa[1].push(jM);fa[2]+=jM}}hA.sort(function(S,cB){return cB[2]-S[2]});
var f$=hA[0],bJ=f$[2];for(var fl=1;fl<hA.length;fl++){var fa=hA[fl],i_=1,gb=fa[1].slice(0),fu=0;while((i_+1)*fa[2]<=f$[2]){i_++;
gb=gb.concat(fa[1])}fa[1]=gb;fa[2]*=i_;var fy=f$[2]/fa[2];for(var C=0;C<fa[1].length;C++){var dT=Math.floor(fa[1][C]*fy);
fa[1][C]=dT;fu+=dT}while(fu<bJ){fu++;fa[1][fa[1].length-1]++}fa[2]=fu}var jr=[],af=[],dT=[];for(var C=0;
C<hA.length;C++){jr.push(0);af.push(0)}while(eC<bJ){var b9=1e9,iu=-1;for(var C=0;C<hA.length;C++){var gS=hA[C][1],ar=jr[C];
if(ar!=gS.length&&af[C]+gS[ar]<eC+b9){iu=C;b9=af[C]+gS[ar]-eC}}af[iu]+=hA[iu][1][jr[iu]];jr[iu]++;if(b9!=0){dT.push(b9);
eC+=b9}}for(var C=1;C<dT.length;C++){var hy=dT[C];if(hy<16&&(dT[C-1]<16||C<dT.length-1&&16<=dT[C+1])){dT[C-1]+=hy;
dT.splice(C,1);C--}}var cG=[],jj=new bU(0,0,l.e,l.l);for(var C=0;C<l.G.length;C++){cG[C]=l.G[C].p$();
l.G[C].tG(!1)}var a5=l.N.slice(0);l.N=hC;var em=l.cT();em.sort(function(S,cB){return S-cB});var eq=[];
for(var C=0;C<l.G.length;C++){if(em.indexOf(C)==-1)eq.push(l.G[C])}hA.sort(function(S,cB){return S[3]-cB[3]});
function dY(gS,gr){var C=0,f0=0;while(f0+gS[C]<=gr){f0+=gS[C];C++}return C}eC=0;eq.splice(em[0],0,l.b8());
for(var hi=0;hi<dT.length;hi++){var I=[];for(var C=0;C<hA.length;C++){var ar=dY(hA[C][1],eC)%hA[C][0].length,d=hA[C][0][ar];
I.push(d)}var d=l.d2();for(var C=0;C<hA.length;C++){var e9=I[C],gE=l.G[hC[C]];e9.tG(!0);gE.tG(!0)}l.F();
l.nZ();var hQ=l.cf();d.rect=L.XA(hQ,jj,2);d.buffer=L.B(d.rect.k()*4);L.yx(hQ,jj,d.buffer,d.rect);for(var C=0;
C<hA.length;C++){var e9=I[C],gE=l.G[hC[C]];e9.tG(!1);gE.tG(!1)}d.tG(hi==0);d.qW("_a_frm"+hi+","+dT[hi]);
eq.splice(em[0]+1+hi,0,d);eC+=dT[hi]}var d=l.d2();d.qW(fk.join(" + "));d.TR="pass";d.add.lsct=hN.fs;
d.Yy=24;eq.splice(em[0]+1+dT.length,0,d);for(var C=0;C<l.G.length;C++)l.G[C].tG(cG[C]);var S=new aU([6,12,0],this);
S.data={d:t.Jb,i2:l.G,vz:eq,us:a5,jF:[em[0]+1+dT.length]};l.eN(S);this.mH(S.data,l)}if(P==t.MN||P==t.cg||P==t.Xr){var h3=l.G.slice(0),gp=l.N.slice(0),hK=!0,bh,j4;
if(P==t.MN)l.N=[o,o-1];if(P==t.Xr){l.N=[];for(var C=0;C<l.G.length;C++)if(l.G[C].p$())l.N.push(C)}var iK=l.cT();
iK.sort(function(S,cB){return S-cB});var bT=new bU,jj=new bU(0,0,l.e,l.l);for(var C=0;C<iK.length;C++){var R=iK[C],d=l.G[R];
hK=hK&&d.Ee()&&d.add.vmsk!=null;bT=bT.if(l.root.Wp(R).E2(l,!0))}if(hK){bh=l.G[iK[0]].clone();var iQ=bh.add.vmsk;
for(var C=1;C<iK.length;C++){var y=l.G[iK[C]],aQ=t.sD.Ps(y.add.vmsk.T);iQ.T=iQ.T.concat(aQ.slice(2));
bh.add.vogk=bh.add.vogk.concat(JSON.parse(JSON.stringify(y.add.vogk)))}bh.add.vmsk.A$=!0;bh.sN(l)}else if(jj.kq(bT)){bh=l.d2();
bh.qW(l.G[iK[iK.length-1]].getName());bh.rect=bT;bh.buffer=L.B(bT.k()*4);var ij=l.cf(iK);L.yx(ij,jj,bh.buffer,bT);
bh.zr();bh.F()}else{l.WI(iK,!0);bh=l.G[l.N[0]];l.G.splice(l.N[0],1);var bL=l.a7(bh.add.SoLd.Idnt.v);
l.add.lnk2.splice(l.add.lnk2.indexOf(bL),1);delete bh.add.SoLd}var gd=_,c6=-1;if(s.WA&&s.WA.Dplc&&s.WA.Dplc.v)gd=!0;
if(gd&&P==t.Xr&&l.G[gp[0]].Kg()&&l.G[gp[0]].rect.Xh()){c6=gp[0]}if(c6!=-1||P==t.MN){var f1=l.G[c6!=-1?c6:o-1];
bh.qW(f1.getName());bh.add.lclr=f1.add.lclr}var eq=[];for(var C=0;C<l.G.length;C++)if(gd||iK.indexOf(C)==-1)if(C!=c6)eq.push(l.G[C]);
var i8=iK[iK.length-1],ho=i8==l.G.length-1?null:l.G[i8+1],jN=ho?eq.indexOf(ho):eq.length;eq.splice(jN,0,bh);
j4=[jN];var S=new aU([6,12,0],this);S.data={d:t.Jb,i2:h3,vz:eq,us:gp,jF:j4};l.eN(S);this.mH(S.data,l)}if(P==t.iv){var d8=l.d2();
d8.rect=new bU(0,0,l.e,l.l);d8.buffer=L.B(d8.rect.k()*4);L.MP(d8.buffer,4294967295);L.a.$P("norm",l.cf(),d8.rect,d8.buffer,d8.rect,d8.rect,1);
d8.qW("Background");d8.add.lspf=1<<2;var S=new aU([6,12,1],this);S.data={d:t.Jb,i2:l.G.slice(),vz:[d8],us:l.N.slice(0),jF:[0]};
l.eN(S);this.mH(S.data,l)}if(P==t.Yb||P==t.Z$||P==t.Yw||P==t.jz||P==t.ER){var d=P==t.ER?l.qJ()[0]:l.d2(),hI=iX.get([0,3]),cw=s.Q_,a2=!1,gi,i1;
if(P==t.Yw)hI=iX.get([12,76,1]);if(P==t.ER){if(l.q){var cD=l.G[l.N[0]],hP=cD.Ml(l,l.q);if(hP==null){alert("Copied area is empty");
return}d.rect=hP.rect;d.buffer=hP.uN;d.ud(l)}else cw=d.getName();d.add.lspf=0;d.uK=!1;if((d.Yy&1)!=0)d.Yy--}if(P==t.jz){d.rect=r.EM.tO(s.lo,l);
d.buffer=s.lo.buffer.slice(0);if(s.N_&&l.q){d.v=new t.K0;d.v.rect=l.q.rect;d.v.color=0;d.v.channel=l.q.channel.slice(0)}}if(P==t.Yb){this.track({YF:"make",WA:{classID:"Mk",null:e6.Yr("Lyr")}})}if(P==t.Z$){d.Yy|=16;
var f9=s.WA.Usng.v,jq=f9.Type.v,h2=eb.at[jq.classID];hI=iX.get(eb.names[h2]);if(f9.Nm)cw=f9.Nm.v;d.add[h2]=ib.Xi(h2);
if(d.add[h2]==null)d.add[h2]={};for(var gx in jq)d.add[h2][gx]=JSON.parse(JSON.stringify(jq[gx]));d.v=r.EM.Ws(l)}if(P==t.Yw){d.Yy|=16;
var ca=s.WA,f9=ca.Usng.v,aS=f9.Type.v,bA=f9.Shp;if(f9.Nm)cw=f9.Nm.v;if(bA==null){var c$=l.S4(),fO=c$[0],hs=c$[1];
if(hs.length!=0){var jn=fO[hs[0]].add;d.add.vmsk=jn.vmsk.clone();d.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));
d.add.vogk=JSON.parse(JSON.stringify(jn.vogk));l.FZ=[]}else d.v=r.EM.Ws(l)}else{console.log(f9);d.add.vmsk=new t.sD;
d.add.vstk=JSON.parse(JSON.stringify(f9.strokeStyle?f9.strokeStyle.v:i4.Ah.default));d.add.vogk=[];if(bA){var iL=L.R2.hN(bA);
if(iL){d.add.vogk=[iL];d.add.vmsk.T.push({type:0,aZ:1,length:0});L.R2.x3(d.add.vogk,d.add.vmsk)}else{bA=bA.v;
var a8=bA.classID;if(a8=="Plgn"){var ao=bA.Cntr.v,dS=bA.corner.v;ao=new fz(ao.Hrzn.v.val,ao.Vrtc.v.val);
dS=new fz(dS.Hrzn.v.val,dS.Vrtc.v.val);d.add.vmsk.T=L.j.sh.T_(ao.x,ao.y,Math.sqrt(dS.x*dS.x+dS.y*dS.y),Math.atan2(dS.y,dS.x),bA.sides.v,0)}else if(a8=="customShape"){var dn=L.R2.K4(bA),bd=dn[2]-dn[0],fK=dn[3]-dn[1],dQ=a.Pb,eK,cH;
for(var C=0;C<dQ.length;C++)if(dQ[C].uk==bA.Nm.v)eK=dQ[C];if(eK){cH=t.sD.Ps(eK.T);L.j.G9(cH,new ae(bd,0,0,fK,dn[0],dn[1]))}else cH=L.j.sh.Rect(dn[0],dn[1],bd,fK,0);
d.add.vmsk.T=cH}d.GK()}}}var cX={solidColorLayer:0,gradientLayer:1,patternLayer:2}[aS.classID],bn=["SoCo","GdFl","PtFl"][cX];
d.add[bn]=JSON.parse(JSON.stringify(i4.Om[cX]));r.EM.PR(aS,d.add[bn],cX);if(bA==null)hI=iX.get([6,48,0,cX]);
if(bn=="PtFl"){var aY=d.add[bn].Ptrn.v,bO=jo.Ic(aY,a.yZ);aY.Idnt.v=bO.id;l.FF(bO)}d.sN(l)}var j8=r.EM.T$(l,hI+" ");
d.qW(hI+" "+(j8+1));if(cw)d.qW(cw);var bc=l.N.length==0?l.G.length-1:l.N[l.N.length-1],fn=l.G[bc];if(P==t.Yw&&fn.Kg()&&fn.rect.Xh()){a2=!0;
d.qW(fn.getName());gi=bc}else{gi=bc+(P==t.Yb&&U&&!j?0:1);if(fn&&fn.add.lsct==hN.yF)gi--}if(s.atB)gi=Math.max(0,gi-1);
var eq=l.G.slice(0);eq.splice(gi,a2?1:0,d);var az=[5,2];if(P==t.Yb)az=[6,13];if(P==t.Z$)az=[6,1];if(P==t.Yw){az=[6,48,1];
var bA=s.WA.Usng.v.Shp;if(bA){var hY={Rctn:[10,32],Ln:[10,35],Elps:[10,33],Plgn:[12,93,0],customShape:[10,31]}[bA.v.classID];
if(hY)az=hY}}if(P==t.ER){az=[6,49]}if(P==t.ER||P==t.Yw||P==t.jz)if(l.q)i1=[l.q,null];var S=new aU(az,this);
S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:[gi],Dg:i1};l.eN(S);this.mH(S.data,l);if(P==t.Yw&&bA==null&&cX!=0||P==t.Z$){var cu=new h9(v.E.g);
cu.data={d:v.J.OO,It:g1.E4.VP};m.Y(cu)}}if(P==t.R3){var d=l.d2(),hI=iX.get([0,4]),j8=r.EM.T$(l,hI+" ");
d.qW(hI+" "+(j8+1));d.TR="pass";d.add.lsct=hN.yF;d.Yy=24;if(s.Q_)d.qW(s.Q_);if(s.xQ!=null)d.add.lclr=s.xQ;
var io=l.b8(),bc=o,gi=bc+(U?0:1),eq=l.G.slice(0);eq.splice(gi,0,io,d);var S=new aU([6,20],this);S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:[gi+1]};
l.eN(S);this.mH(S.data,l)}if(P==t.i6||P==t.qT){var aT=P==t.i6?s.source:l.N[0],ds,iF,dg=l.N.indexOf(aT)!=-1,fg=_|s.apn,gw,b9=null;
if(dg)gw=l.cT();else gw=l.bo(aT);gw.sort(function(S,cB){return S-cB});if(P==t.i6){ds=s.target;iF=s.mJ>.5}else if(s.target!=null){ds=Math.min(s.target,l.G.length-1);
iF=s.target<l.G.length;l.jn=!0}else{var fL=s.R7;iF=fL>1;if(fL==0){ds=l.G.length-1}if(fL==1){ds=gw[gw.length-1]+1;
var y=l.bo(ds);if(y.indexOf(aT)==-1)ds+=y.length-1}if(fL==2){ds=gw[0]-1;var y=l.bo(ds);if(y.indexOf(aT)==-1)ds-=y.length-1}if(fL==3){ds=0}if(ds<0||ds>l.G.length-1)return;
l.jn=!0}if(gw.indexOf(ds)!=-1&&!fg)return;var e1=r.EM.aM(l,gw,ds,iF,fg?l.qJ(dg?null:aT):null,P==t.i6&&s.mJ>.8),fj=e1.pop(),bl=e1.pop(),eq=e1.pop(),bW=l.N;
l.N=[aT];var iz=l.SV();l.N=[ds];var ej=l.SV();if(ej==ds&&!iF)ej=-1;l.N=bW;if(aT==iz){}else if(iz!=ej){var b9=new fz(0,0);
if(iz!=-1){var gR=l.G[iz].wy();b9.x-=gR.x;b9.y-=gR.y}if(ej!=-1){var gR=l.G[ej].wy();b9.x+=gR.x;b9.y+=gR.y}}var S=new aU(fg?[6,0]:[6,35],this);
S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:bl,tl:b9};l.eN(S);this.mH(S.data,l);var ca={classID:"move",null:e6.Yr("Lyr",!0),T:{t:"obj ",v:[{t:"indx",v:{classID:"Lyr",val:fj+(iF?0:1)}}]},Adjs:{t:"bool",v:!1},Vrsn:{t:"long",v:5},Dplc:{t:"long",v:fg}};
this.track({YF:"move",WA:ca})}if(P==t.a4){if(s.lZ){if(G==null||!G.gu())return;var V=l.root.Wp(o),hp=l.G.indexOf(V.an3),eq=l.G.slice(0);
eq.splice(o,1);eq.splice(hp,1);var bl=[];for(var C=hp;C<o-1;C++)bl.push(C);var S=new aU("Ungroup Layers",this);
S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:bl};l.eN(S);this.mH(S.data,l)}else{var d=l.d2(),jc=iX.get([0,4])+" ";
d.qW(jc+(r.EM.T$(l,jc)+1));d.TR="pass";if(s.Q_)d.qW(s.Q_);if(s.xQ!=null)d.add.lclr=s.xQ;d.add.lsct=l.N.length==1?hN.yF:hN.fs;
d.Yy=24;var io=l.b8(),gw=l.cT();if(gw.length==0)return;gw.sort(function(S,cB){return S-cB});var eq=[];
for(var C=0;C<l.G.length;C++)if(gw.indexOf(C)==-1)eq.push(l.G[C]);var bc=l.N[l.N.length-1]-gw.length;
eq.splice(bc+1,0,io);for(var C=0;C<gw.length;C++)eq.splice(bc+2+C,0,l.G[gw[C]]);eq.splice(bc+2+gw.length,0,d);
var S=new aU([6,9],this);S.data={d:t.Jb,i2:l.G.slice(0),vz:eq,us:l.N.slice(0),jF:[eq.indexOf(d)]};l.eN(S);
this.mH(S.data,l);var f={YF:"make",sQ:!0};f.WA={classID:"Mk",null:e6.Yr("layerSection"),From:e6.Yr("Lyr",!0),Usng:{t:"Objc",v:{classID:"layerSection",Nm:{t:"TEXT",v:d.getName()}}}};
this.track(f)}}if(P==t.iA){if(l.N.length!=1)return;var f_=l.N[0],ai=_;if(l.G[f_].SE()==null&&!x.$(dV.bt)){P=t.Da;
s.ur=l.q?!ai?"RvlS":"HdSl":!ai?"RvlA":"HdAl"}else{P=t.I5;s.a57=!0}}if(P==t.Da){if(l.N.length!=1)return;
var f_=l.N[0],d=l.G[f_];if(d.add.vmsk&&d.v==null)d.sN(l);var bx=d.SE();if(bx==null||s.ajv){var S=new aU([6,21],this),g4=new t.K0,ji=s.ur,cr=ji=="RvlS"||ji=="HdSl";
if(ji=="RvlS"||ji=="HdAl"||ji=="Trns")g4.color=0;if(cr){g4.channel=l.q.channel.slice(0);g4.rect=l.q.rect.clone();
if(ji=="HdSl")L.ms(g4.channel)}if(ji=="Trns"){g4.rect=d.rect.clone();g4.channel=L.B(d.rect.k());L.hy(d.buffer,g4.channel,3)}S.data={d:t.ZO,ij:[f_,bx,g4],Dg:cr?[l.q,null]:null};
l.eN(S);this.mH(S.data,l);l.G[f_].Ar=1;this.track({YF:"make",WA:{__name:"Make",classID:"Mk",Nw:{t:"type",v:{classID:"Chnl"}},At:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:"Msk"}}]},Usng:{t:"enum",v:{UsrM:ji}}}})}}else if(P==t.k4){var hG=l.G[s.src],f7=l.G[s.B1],S=new aU([6,21],this),g0=hG.SE(),iB=f7.SE(),hr=[s.src,g0,null,s.B1,iB,g0];
if(_||j){var jv=g0.clone();if(_)hr=[s.B1,iB,jv];else hr[5]=jv;if(j){L.ms(jv.channel);jv.color=255-jv.color}}S.data={d:t.ZO,ij:hr};
l.eN(S);this.mH(S.data,l)}if(P==t.aG){if(l.N.length!=1)return;var f_=o,cj=l.G[f_].SE();if(cj!=null){var S=new aU([6,22],this);
S.data={d:t.ZO,ij:[o,cj,null]};l.eN(S);this.mH(S.data,l)}}if(P==t.LX){var h3=l.G.slice(0),d8=G.clone(),k=d8.SE();
L.Iq(k.dG(d8.rect),d8.rect,d8.buffer,d8.rect);r.EM.by(l,d8);d8.zr();l.G[l.N[0]]=d8;var S=new aU([5,8],this);
S.data={d:t.Jb,i2:h3,vz:l.G.slice(),us:l.N.slice(0),jF:l.N.slice(0)};l.eN(S);this.mH(S.data,l)}if(P==t.Mm){if(l.N.length!=1)return;
var f_=l.N[0];if(l.G[f_].Ao(l).v==null){var S=new aU([6,45],this);S.data={d:P,i:f_,v:new t.K0};l.eN(S);
this.mH(S.data,l)}}if(P==t.wL){if(l.N.length!=1)return;var f_=l.N[0];if(l.G[f_].Ao(l).v!=null){var S=new aU([6,46],this);
S.data={d:P,i:f_,v:l.G[f_].Ao(l).v};l.eN(S);this.mH(S.data,l)}}if(P==t.u8){if(s.src==null&&l.N.length!=1)return;
if(s.src!=null)o=s.src;if(l.G[o].UI()){var S=new aU([6,47],this),gF=JSON.stringify(l.G[o].add.SoLd),iC=JSON.parse(gF);
delete iC.filterFX;S.data={d:t.RD,QQ:[{oB:o,BU:[gF,JSON.stringify(iC)],ac:[l.G[o].Ao(l),null]}]};l.eN(S);
this.mH(S.data,l)}}if(P==t.I5){if(l.N.length!=1)return;if(G.add.vmsk==null){var S=new aU([6,23],this),cq=l.S4(),Y=cq[1],cq=cq[0],g4,iL;
if(s.a57&&Y.length!=0){var jn=cq[Y[0]].add;g4=jn.vmsk.clone();iL=jn.vogk}else{g4=new t.sD;iL=[];g4.T[1].all=s.a9H?0:1}S.data={d:P,i:o,KW:!0,v:g4,R2:JSON.stringify(iL),Ah:null};
if(G.Ee()){S.data.Ah=JSON.stringify(i4.Ah.default)}l.eN(S);this.mH(S.data,l)}}if(P==t.p5){var hG=l.G[s.src],f7=l.G[s.B1];
if(f7.add.vmsk)return;var S=new aU([6,23],this),iQ=hG.add.vmsk;S.data={i:s.B1,KW:hG.UB,v:iQ.clone(),R2:JSON.stringify(hG.add.vogk),Ah:hG.add.vstk?JSON.stringify(hG.add.vstk):null};
if(_){S.data.d=t.I5}else{S.data.d=P;S.data.src=s.src;S.data.B1=s.B1}l.eN(S);this.mH(S.data,l)}if(P==t.RA||P==t.nI){if(l.N.length!=1)return;
var d=l.G[o],iQ=d.add.vmsk;if(iQ!=null){var hf=P==t.nI,S=new aU(hf?[6,8]:[6,24],this);S.data={d:t.RA,i:o,KW:d.UB,v:iQ,R2:JSON.stringify(d.add.vogk),Ah:d.add.vstk?JSON.stringify(d.add.vstk):null};
if(hf){S.data.GR=iQ.SE(d.add.vstk)}l.eN(S);this.mH(S.data,l)}}if(P==t.jr){var S=new aU("Metadata",this);
S.data={d:P,mu:JSON.stringify(l.l1),JR:JSON.stringify(s.JR)};l.eN(S);this.mH(S.data,l)}if(P==t.Ba){var iI=s.B1?s.B1:l,fq=iI.name,cw=s.Z+".psd";
if(fq==cw)return;var S=new aU([6,37],this);S.data={d:P,a3W:fq,Q_:cw};if(s.ar5!=!0)iI.eN(S);this.mH(S.data,iI)}if(P==t._7&&s.R7.endsWith("makeframes")){var hc=[],i6=s.R7.startsWith("make");
for(var C=0;C<l.N.length;C++){var R=l.N[C],d=l.G[R],dt=d.getName(),hU=dt.startsWith("_a_");if(i6==hU||d.add.lsct==hN.k_)continue;
var dA=i6?"_a_"+dt:dt.slice(3);hc.push([R,dt,dA,d.add.lnsr,null])}var S=new aU([6,37],this);S.data={d:t.eQ,AV:hc};
l.eN(S);this.mH(S.data,l)}if(P==t.eQ){var fq=G.getName(),cw=s.name.substring(0,255);if(fq==cw)return;
var S=new aU([6,37],this);S.data={d:P,AV:[[o,fq,cw,G.add.lnsr,null]]};l.eN(S);this.mH(S.data,l);this.track(e6.$Z("Nm",{t:"TEXT",v:cw}))}if(P==t.Us){var cF=l.cT(),dW=[],fW=[];
for(var C=0;C<cF.length;C++){dW.push(l.G[cF[C]].add.lclr);fW.push(s.afV)}var S=new aU([6,38],this);S.data={d:P,G:cF,amE:dW,xQ:fW};
l.eN(S);this.mH(S.data,l)}if(P==t.e_){var S=l.history[l.gH];if(S!=null&&S.c==this&&S.data.d==P&&S.data.i==s.wo&&S.data.Ur.MJ==s.oA.MJ)S.data.Ur=s.oA;
else{S=new aU("Mask Density / Feather",this);S.data={d:P,i:s.wo,nA:l.G[s.wo].ss(s.oA.MJ),Ur:s.oA};l.eN(S)}this.mH(S.data,l)}if(P==t.L2){var hM=JSON.stringify(s.Z),cY=JSON.parse(hM),S=l.history[l.gH];
if(S!=null&&S.c==this&&S.data.d==P&&S.data.EY==s.EY&&S.data.tP.join(",")==s.tP.join(",")){for(var C=0;
C<s.tP.length;C++)S.data.YK[C]=cY;if(S.data.WA&&cY.pC!=0)r.EM.PR(cY.ts,S.data.WA.T.v,cY.pC-1)}else{S=new aU([11,6],this);
S.data={d:P,tP:s.tP,EY:s.EY,aig:[],YK:[]};var er=!1;for(var C=0;C<s.tP.length;C++){var R=s.tP[C],d=l.G[R],c0=s.EY?r.ar.vM(l,R):JSON.parse(JSON.stringify(d.add.vstk));
S.data.aig.push(c0);S.data.YK.push(cY);if(JSON.stringify(c0)!=hM)er=!0}if(!er)return;l.eN(S);if(s.EY&&cY.pC>0){var ca=S.data.WA={classID:"setd",null:e6.Yr("contentLayer",!0),T:{t:"Objc",v:{}}},bn=["SoCo","GdFl","PtFl"][cY.pC-1];
r.EM.PR(cY.ts,ca.T.v,cY.pC-1);this.track({YF:"set",WA:ca})}}if(s.EY&&cY.pC==3)l.FF(jo.Ic(cY.ts.Ptrn.v,a.yZ));
if(!s.EY){var bi=cY.strokeStyleContent.v;if(bi.classID==i4.Ah.Lk[2])l.FF(jo.Ic(bi.Ptrn.v,a.yZ))}this.mH(S.data,l)}};
r.EM.aM=function(s,m,l,x,a,P){var o=s.G[l],G=[];if(a)G=s.G.slice(0);else for(var C=0;C<s.G.length;C++)if(m.indexOf(C)==-1)G.push(s.G[C]);
var _=G.indexOf(o);if(P&&o.gu()&&o.add.lsct==hN.fs)_-=s.bo(l).length-1;var j=[];for(var C=0;C<m.length;
C++){var U=_+(x?0:1)+C,S=a?a[C]:s.G[m[C]];G.splice(U,0,S);j.push(U)}return[G,j,_]};r.EM.PR=function(s,m,l){var x=[i4.Rc,i4.Ql,i4._6][l];
if(m.classID==null)m.classID=["solidColorLayer","gradientLayer","patternLayer"][l];for(var C=0;C<x.length;
C++)if(s[x[C]])m[x[C]]=JSON.parse(JSON.stringify(s[x[C]]))};r.EM.Ws=function(s){var m=new t.K0;if(s.q!=null){m.color=0;
m.channel=s.q.channel.slice(0);m.rect=s.q.rect.clone()}return m};r.EM.Rn=function(s,m,l,x){var a=x.e/l.e,P=x.l/l.l,o=x.e/2,G=x.l/2,_=L.H.$$(x).s;
for(var C=0;C<s.G.length;C++){var j=s.G[C],U=j.add.SoLd;if(U==null||U.Idnt.v!=m)continue;if(a!=1||P!=1){var S=r.Q.qN(U.nonAffineTransform),X=L.V.CX(S,x),c=new ae;
c.translate(-o,-G);c.scale(a,P);c.translate(o,G);var y=L.V.fH(X,L.V.$D(c)),O=_.slice(0);L.V.A(y,O);U.Trnf=r.Q.ZG(O);
U.nonAffineTransform=r.Q.ZG(O)}j.y2(s)}s.F()};r.EM.al5=function(s,m,l){m.color=255-m.color;L.ms(m.channel);
m.A$=!0;s.sN(l);l.F()};r.EM.prototype.V1=function(s,m){var l=s.d,x=m.G[s.i];m.CR=!0;if(l==t.W3){m.add.lnk2.splice(m.add.lnk2.indexOf(s.rb),1,s.Mz);
r.EM.Rn(m,s.id,s.rb.H6[1],s.Mz.H6[1])}if(l==t.Me){x.add.SoLd.Impr.v.classID=s.nA;x.y2(m)}if(l==t.fL){var a=JSON.parse(s.tP);
for(var C=0;C<a.length;C++)m.G[a[C]].TR=s._A[C];m.F()}if(l==t.j$){var a=JSON.parse(s.tP);for(var C=0;
C<a.length;C++)m.G[a[C]].opacity=s._A[C];m.F()}if(l==t.wx){var a=JSON.parse(s.tP);for(var C=0;C<a.length;
C++)if(m.G[a[C]].add.lsct!=hN.k_)m.G[a[C]].add.lspf=s._A[C]}if(l==t.up){var P=s.Kb,o=s.a91;delete x.add[P[0]];
if(o[0]!="----")x.add[o[0]]=o[1]}if(l==t._o){x.add.iOpa=s._A;m.F()}if(l==t.Fm){for(var C=0;C<s.tP.length;
C++){var G=m.G[s.tP[C]];G.tG(!G.p$())}m.F()}if(l==t.mD){var _=x.SE();_.isEnabled=!_.isEnabled;x.sN(m);
m.F()}if(l==t.EW){var _=x.Ao(m).v;_.isEnabled=!_.isEnabled;x.F();m.F()}if(l==t.Kl){var _=x.add.vmsk;
_.isEnabled=!_.isEnabled;if(!_.isEnabled){if(x.GR){x.v=x.GR;x.GR=null}else x.v=null}else if(x.v){x.GR=x.v;
x.v=null}x.sN(m);m.F()}if(l==t.VD){x.uK=!x.uK;m.F()}if(l==t.Q7){x.add.lmfx.masterFXSwitch.v=!x.add.lmfx.masterFXSwitch.v;
x.GM.qZ=!0;m.F()}if(l==t.gh){x.add.SoLd.filterFX.v.enab.v=!x.add.SoLd.filterFX.v.enab.v;x.zp(m);m.F()}if(l==t.vI){var j=s.index,U=x.add.lmfx[i4.rm[j[0]]].v[j[1]].v;
U.enab.v=!U.enab.v;x.GM.qZ=!0;m.F()}if(l==t.KB){var S=m.G[s.HI],X=m.G[s.KI],c=s.ajK,y=s.aj2;if(c=="")delete S.add.lmfx;
else S.add.lmfx=JSON.parse(c);if(y=="")delete X.add.lmfx;else X.add.lmfx=JSON.parse(y);S.GM.qZ=!0;X.GM.qZ=!0;
m.F()}if(l==t.Uc){var O=x.add.SoLd.filterFX.v.filterFXList.v[s.index].v;O.enab.v=!O.enab.v;x.zp(m);m.F()}if(l==t.BQ){x.add.SoLd.filterFX.v=JSON.parse(JSON.stringify(s.a6W));
x.zp(m);m.F()}if(l==t.VW){var _=x.SE();_.FT=!_.FT}if(l==t.TK){var _=x.add.vmsk;_.FT=!_.FT}if(l==t.KX){var p=s.Db;
for(var C=0;C<p.length;C+=2){var D=p[C],G=D>=0?m.G[D]:m.sj[-1-D];G.add.vogk=JSON.parse(p[C+1]);L.R2.x3(G.add.vogk,G.add.vmsk);
if(D>=0)G.sN(m)}m.F()}if(l==t.Md){x.add.artb=JSON.parse(s.at2);m.F();r.Bs.gY(m,s)}if(l==t.iq){m.q=s.MW;
m.$_=s.Db.slice(0);m.Be=s.EA.slice(0);m.R8=m.Gq=!0}if(l==t.ZA){x.KV=!x.KV}if(l==t.xV){var f=s.a9i;for(var C=0;
C<f.length;C++)m.G[C].FX=f[C]}if(l==t.Jb){if(s.tl)r.PL.Ng(m,m.N,null,-s.tl.x,-s.tl.y);if(s.us)m.N=s.us;
if(s.Dg)m.q=s.Dg[0];m.QR=null;m.F();m.B0(s.i2);r.Bs.gY(m,s);if(s.pO)m.Bb(s.pO[0])}if(l==t.ZO){for(var C=0;
C<s.ij.length;C+=3)r.EM.by(m,m.G[s.ij[C]],s.ij[C+1]);if(s.Dg){var T=s.Dg[0];if(T==null)delete m.q;else m.q=T}}if(l==t.Mm){x.Ao(m).v=null;
x.F();m.F()}if(l==t.wL){x.Ao(m).v=s.v;x.F();m.F()}if(l==t.RD){r.EM.LV(m,s.QQ,0)}if(l==t.I5){r.EM.H1(m,x,!0)}if(l==t.p5){r.EM.H1(m,m.G[s.B1],s.v.isEnabled);
r.EM.la(m,m.G[s.src],s)}if(l==t.RA){if(s.GR)r.EM.by(m,x,null);r.EM.la(m,x,s)}if(l==t.jr){m.l1=JSON.parse(s.mu)}if(l==t.Ba){m.name=s.a3W}if(l==t.eQ){for(var C=0;
C<s.AV.length;C++){var I=s.AV[C],G=m.G[I[0]];G.qW(I[1]);if(I[3])G.add.lnsr=I[3];else delete G.add.lnsr}}if(l==t.Us){for(var C=0;
C<s.G.length;C++)m.G[s.G[C]].add.lclr=s.amE[C]}if(l==t.L2){var H=s.aig;for(var C=0;C<s.tP.length;C++){var G=m.G[s.tP[C]],b=H[C];
if(!s.EY)G.add.vstk=JSON.parse(JSON.stringify(b));else r.ar.ad(G,JSON.parse(JSON.stringify(b)));G.N6(m)}m.F()}if(l==t.e_){x.a$(s.nA);
x.sN(m);m.F()}m.Gq=!0};r.EM.prototype.mH=function(s,m){var l=s.d,x=m.G[s.i];m.CR=!0;if(l==t.W3){m.add.lnk2.splice(m.add.lnk2.indexOf(s.Mz),1,s.rb);
r.EM.Rn(m,s.id,s.Mz.H6[1],s.rb.H6[1])}if(l==t.Me){x.add.SoLd.Impr.v.classID=s.Ur;x.y2(m)}if(l==t.fL){var a=JSON.parse(s.tP);
for(var C=0;C<a.length;C++)m.G[a[C]].TR=s.Ur;m.F()}if(l==t.j$){var a=JSON.parse(s.tP);for(var C=0;C<a.length;
C++)m.G[a[C]].opacity=s.Ur;m.F()}if(l==t.wx){var a=JSON.parse(s.tP);for(var C=0;C<a.length;C++)if(m.G[a[C]].add.lsct!=hN.k_)m.G[a[C]].add.lspf=s.Ur[C]}if(l==t.up){var P=s.a91,o=s.Kb;
delete x.add[P[0]];if(o[0]!="----")x.add[o[0]]=o[1]}if(l==t._o){x.add.iOpa=s.Ur;m.F()}if(l==t.Fm){for(var C=0;
C<s.tP.length;C++){var G=m.G[s.tP[C]];G.tG(!G.p$())}m.F()}if(l==t.mD){var _=x.SE();_.isEnabled=!_.isEnabled;
x.sN(m);m.F()}if(l==t.EW){var _=x.Ao(m).v;_.isEnabled=!_.isEnabled;x.F();m.F()}if(l==t.Kl){var _=x.add.vmsk;
_.isEnabled=!_.isEnabled;if(!_.isEnabled){if(x.GR){x.v=x.GR;x.GR=null}else x.v=null}else if(x.v){x.GR=x.v;
x.v=null}x.sN(m);m.F()}if(l==t.VD){x.uK=!x.uK;m.F()}if(l==t.Q7){x.add.lmfx.masterFXSwitch.v=!x.add.lmfx.masterFXSwitch.v;
x.GM.qZ=!0;m.F()}if(l==t.gh){x.add.SoLd.filterFX.v.enab.v=!x.add.SoLd.filterFX.v.enab.v;x.zp(m);m.F()}if(l==t.vI){var j=s.index,U=x.add.lmfx[i4.rm[j[0]]].v[j[1]].v;
U.enab.v=!U.enab.v;x.GM.qZ=!0;m.F()}if(l==t.KB){var S=m.G[s.HI],X=m.G[s.KI],c=s.a2w,y=s.afh;if(c=="")delete S.add.lmfx;
else S.add.lmfx=JSON.parse(c);if(y=="")delete X.add.lmfx;else X.add.lmfx=JSON.parse(y);S.GM.qZ=!0;X.GM.qZ=!0;
m.F()}if(l==t.Uc){var O=x.add.SoLd.filterFX.v.filterFXList.v[s.index].v;O.enab.v=!O.enab.v;x.zp(m);m.F()}if(l==t.BQ){x.add.SoLd.filterFX.v=JSON.parse(JSON.stringify(s.aaT));
x.zp(m);m.F()}if(l==t.VW){var _=x.SE();_.FT=!_.FT}if(l==t.TK){var _=x.add.vmsk;_.FT=!_.FT}if(l==t.KX){var p=s.sm;
for(var C=0;C<p.length;C+=2){var D=p[C],G=D>=0?m.G[D]:m.sj[-1-D];G.add.vogk=JSON.parse(p[C+1]);L.R2.x3(G.add.vogk,G.add.vmsk);
if(D>=0)G.sN(m)}m.F()}if(l==t.Md){x.add.artb=JSON.parse(s.kO);m.F();r.Bs.w7(m,s)}if(l==t.iq){m.q=s.Q$;
m.$_=s.sm.slice(0);m.Be=s.Pd.slice(0);m.R8=m.Gq=!0}if(l==t.ZA){x.KV=!x.KV}if(l==t.xV){var f=s.a8V;for(var C=0;
C<f.length;C++)m.G[C].FX=f[C]}if(l==t.Jb){var T=s.vz,I=0,H;for(var C=0;C<T.length;C++){var G=T[C],b=G.add.lsct;
if(b==hN.k_)I++;else if(b==hN.yF||b==hN.fs)I--;if(G.add.artb&&I!=0)H="Artboards can not be inside folders."}if(H){m.history.pop();
m.gH--;alert(H);return}r.Bs.w7(m,s);if(s.jF)m.N=s.jF;if(s.Dg)m.q=s.Dg[1];m.QR=null;m.F();m.B0(s.vz);
if(s.tl)r.PL.Ng(m,m.N,null,s.tl.x,s.tl.y);if(s.pO)m.Bb(s.pO[1])}if(l==t.ZO){for(var C=0;C<s.ij.length;
C+=3)r.EM.by(m,m.G[s.ij[C]],s.ij[C+2]);if(s.Dg){var R=s.Dg[1];if(R==null)delete m.q;else m.q=R}}if(l==t.Mm){x.Ao(m).v=s.v;
x.Ar=0;x.F();m.F()}if(l==t.wL){x.Ao(m).v=null;x.Ar=0;x.F();m.F()}if(l==t.RD){r.EM.LV(m,s.QQ,1)}if(l==t.I5){r.EM.la(m,x,s)}if(l==t.p5){r.EM.H1(m,m.G[s.src],s.v.isEnabled);
r.EM.la(m,m.G[s.B1],s)}if(l==t.RA){r.EM.H1(m,x,s.v.isEnabled);if(s.GR)r.EM.by(m,x,s.GR)}if(l==t.jr){m.l1=JSON.parse(s.JR)}if(l==t.Ba){m.name=s.Q_}if(l==t.eQ){for(var C=0;
C<s.AV.length;C++){var W=s.AV[C],G=m.G[W[0]];G.qW(W[2]);if(W[4])G.add.lnsr=W[4];else delete G.add.lnsr}}if(l==t.Us){for(var C=0;
C<s.G.length;C++)m.G[s.G[C]].add.lclr=s.xQ[C]}if(l==t.L2){var J=s.YK;for(var C=0;C<s.tP.length;C++){var G=m.G[s.tP[C]],u=J[C];
if(!s.EY)G.add.vstk=JSON.parse(JSON.stringify(u));else r.ar.ad(G,JSON.parse(JSON.stringify(u)));G.N6(m)}m.F()}if(l==t.e_){x.a$(s.Ur);
x.sN(m);m.F()}m.Gq=!0};r.EM.T$=function(s,m){var l=0;for(var C=0;C<s.G.length;C++){var x=s.G[C].getName();
if(x.startsWith(m)){var a=x.slice(m.length).trim(),P=parseInt(a);if(!isNaN(P)&&P+""==a&&P>l)l=P}}return l};
r.EM.LV=function(s,m,l){for(var C=0;C<m.length;C++){var x=m[C],a=s.G[x.oB];if(x.BU){a.add.SoLd=JSON.parse(x.BU[l])}if(x.ac){if(x.ac[1-l]!=null)s.Nu(x.ac[1-l]);
if(x.ac[l]!=null)s.Vi(x.ac[l]);else a.Ar=0}a.y2(s)}};r.EM.tO=function(s,m){var l=s.q7,x=s.rect.clone();
if(l!=null&&(l.x!=m.e||l.y!=m.l)){x.x=Math.floor((m.e-x.e)/2);x.y=Math.floor((m.l-x.l)/2)}return x};
r.EM.adR=function(s,m){if(m.GR)m.GR=null;else m.v=null;m.sN(s);s.F();m.Ar=0};r.EM.by=function(s,m,l){var x=m.SE();
if(x==null&&l==null)return;if(x)r.EM.adR(s,m);if(l==null)return;if(m.v)m.GR=l;else m.v=l;m.sN(s);s.F()};
r.EM.H1=function(s,m,l){if(m.GR&&l){m.v=m.GR;m.GR=null}else if(m.v&&l){m.v=null}delete m.add.vogk;delete m.add.vstk;
delete m.add.vmsk;m.sN(s);m.UB=!1;s.QR=[];s.F()};r.EM.la=function(s,m,l){m.add.vogk=JSON.parse(l.R2);
if(l.Ah)m.add.vstk=JSON.parse(l.Ah);else delete m.add.vstk;m.add.vmsk=l.v.clone();if(m.v&&m.add.vmsk.isEnabled)m.GR=m.v;
m.sN(s);m.UB=l.KW;s.QR=[s.G.indexOf(m)];s.FZ=[];s.F()};r.bM=function(){r.xO.call(this,"Layer Styles",r.Dk);
this.hR=null;this.y6=null;this.kM=null;this.Ej=[];this.S0=null};r.bM.prototype=new r.xO;r.bM.prototype.Pk=function(s,m,l,x,a){var P=s.i;
if(P==null)P=l.N[0];var o=l.G[P],G=s.jV;if(this.hR==null){this.kM=r.bM.Xf(l,o);this.hR=JSON.stringify(this.kM);
if(o.add.lmfx)this.y6=JSON.stringify(o.add.lmfx)}if(o.add.lmfx==null){o.add.lmfx=JSON.parse(i4.default);
for(var C=0;C<i4.order.length;C++)o.add.lmfx[i4.rm[C]]={t:"VlLs",v:[]}}if(s.d=="scaleeffects"){if(s.Z=="confirm"||s.Z=="cancel"){this.Pk({d:s.Z},m,l,x,a);
return}o.add.lmfx=JSON.parse(this.y6);jo.Mi(o.add.lmfx,s.Z/100)}else if(s.d=="changeprop"){var _=null;
if(G!=0){var j=this.Ej[G[0]];if(j==null)j=i4.Ej[G[0]];j=JSON.parse(j);var U=o.add.lmfx[i4.rm[G[0]]].v;
if(U[G[1]]==null)U[G[1]]={t:"Objc",v:j};_=U[G[1]].v;for(var S in j)if(_[S]==null)_[S]=j[S]}if(s.d=="changeprop"){if(G==0){this.kM[s.L1].v=s.Z;
r.bM.SK(l,o,this.kM)}else if(s.L1=="lagl"){if(_.uglg&&_.uglg.v){l.gx(s.Z.val);this.kM.abG=l.Q1()}else _[s.L1].v=s.Z}else if(s.L1=="Lald"){if(_.uglg.v){l.qt(s.Z.val);
this.kM.a8l=l.Zn()}else _[s.L1].v=s.Z}else if((G[0]==3||G[0]==8)&&(s.L1=="Clr"||s.L1=="Grad")){if(s.L1=="Clr"){_.Clr={t:"Objc",v:s.Z};
delete _.Grad}if(s.L1=="Grad"){_.Grad={t:"Objc",v:s.Z};delete _.Clr}}else{_[s.L1].v=s.Z}if(G!=0)this.Ej[G[0]]=JSON.stringify(_)}if(G!=0)if(_.Ptrn)l.FF(jo.Ic(_.Ptrn.v,a.yZ))}else if(s.d=="setstl"){var X=s.Z.Lefx;
if(X)jo.Ts(X,l,a.yZ);jo.akM(s.Z,o);this.kM=r.bM.Xf(l,o)}else if(s.d=="st_dupsingle"){var c=o.add.lmfx[i4.rm[s.AD[0]]].v;
if(c[s.AD[1]]==null)return;var y=JSON.parse(JSON.stringify(c[s.AD[1]]));c.splice(s.AD[1],0,y)}else if(s.d=="st_movsingle"){var O=s.AD[1],c=o.add.lmfx[i4.rm[s.AD[0]]].v;
if(c[s.AD[1]]==null)return;var p=Math.max(0,Math.min(c.length-1,O+s.au5)),D=c[p];c[p]=c[O];c[O]=D}else if(s.d=="cancel"){if(this.y6==null)delete o.add.lmfx;
else o.add.lmfx=JSON.parse(this.y6);r.bM.SK(l,o,JSON.parse(this.hR));this.hR=null;this.y6=null}else if(s.d=="confirm"){var f=JSON.stringify(o.add.lmfx),T=new aU([11,6],this);
T.data={G:[P],Lc:[this.y6],PH:[f],Un:[this.hR],Jl:[JSON.stringify(this.kM)]};l.eN(T);this.hR=null;this.y6=null;
if(f!=null){var I=JSON.parse(f);c2.VQ(I);I.classID="Lefx";delete I.masterFXSwitch;var H=new h9(v.E.b4);
H.zZ=!0;H.data={YF:"set",sQ:!0};var b=e6.Yr("Lyr",!0);b.v.splice(0,0,{t:"prop",v:{classID:"Prpr",keyID:"Lefx"}});
H.data.WA={__name:"Set",classID:"setd",null:b,T:{t:"Objc",v:I}};m.Y(H)}}else if(s.d=="st_copy"){this.S0=[this.hR,this.y6];
this.hR=null;this.y6=null}else if(s.d=="st_paste"||s.d=="st_clear"){if(s.d=="st_paste"&&this.S0==null)return;
var R=s.i!=null?[s.i]:l.N.slice(0),W=[],J=[],u=[],e=[];for(var C=0;C<R.length;C++){var o=l.G[R[C]],Q=r.bM.Xf(l,o);
W.push(o.add.lmfx?JSON.stringify(o.add.lmfx):null);u.push(JSON.stringify(Q));if(s.d=="st_paste"){J.push(this.S0[1]);
e.push(this.S0[0])}else{J.push(null);Q.lrMd.v=0;Q.Opct.v.val=100;Q.iOpa.v.val=100;Q.blIf={v:[]};for(var q=0;
q<10;q++)Q.blIf.v.push(0,0,255,255);e.push(JSON.stringify(Q))}}var T=new aU([11,6],this);T.data={G:R,Lc:W,PH:J,Un:u,Jl:e};
this.mH(T.data,l);l.eN(T);this.hR=null;this.y6=null}else{var Z=this.kM,I=null;if(s.d=="st_delsingle"){I=JSON.parse(this.y6);
I[i4.rm[s.AD[0]]].v.splice(s.AD[1],1);I=JSON.stringify(I)}if(I==null)delete o.add.lmfx;else o.add.lmfx=JSON.parse(I);
if(Z!=null)r.bM.SK(l,o,Z);var T=new aU([11,6],this);T.data={G:[s.i],Lc:[this.y6],PH:[I],Un:[this.hR],Jl:[JSON.stringify(Z)]};
l.eN(T);this.hR=null;this.y6=null}o.GM.qZ=!0;l.CR=!0;l.F()};r.bM.Xf=function(s,m){if(m.add.iOpa==null)m.add.iOpa=255;
if(m.add.brst==null)m.add.brst=[1,1,1];var l=m.gu()?["pass"].concat(aA.EB):aA.EB;return{lrMd:{v:l.indexOf(m.TR)},Opct:{v:{type:"#Prc",val:Math.round(m.opacity*100/255)},t:"UntF"},iOpa:{v:{type:"#Prc",val:Math.round(m.add.iOpa*100/255)},t:"UntF"},blIf:{v:m.kt.slice(0)},brst:{v:m.add.brst},abG:s.Q1(),a8l:s.Zn(),gu:m.gu()}};
r.bM.SK=function(s,m,l){var x=m.gu()?["pass"].concat(aA.EB):aA.EB;m.TR=x[l.lrMd.v];m.opacity=Math.round(l.Opct.v.val*255/100);
m.add.iOpa=Math.round(l.iOpa.v.val*255/100);m.kt=l.blIf.v.slice(0);m.add.brst=l.brst.v.slice(0);s.gx(l.abG);
s.qt(l.a8l)};r.bM.prototype.V1=function(s,m){for(var C=0;C<s.G.length;C++){var l=m.G[s.G[C]],x=s.Lc[C];
if(x==null)delete l.add.lmfx;else l.add.lmfx=JSON.parse(x);r.bM.SK(m,l,JSON.parse(s.Un[C]));l.GM.qZ=!0}m.CR=!0;
m.F()};r.bM.prototype.mH=function(s,m){for(var C=0;C<s.G.length;C++){var l=m.G[s.G[C]],x=s.PH[C];if(x==null)delete l.add.lmfx;
else l.add.lmfx=JSON.parse(x);r.bM.SK(m,l,JSON.parse(s.Jl[C]));l.GM.qZ=!0}m.CR=!0;m.F()};r.fW=function(){r.xO.call(this,"Layer Comps",r.zH)};
r.fW.prototype=new r.xO;r.fW.prototype.Pk=function(s,m,l,x){var a=JSON.parse(JSON.stringify(l.xW)),P=JSON.parse(JSON.stringify(l.xW)),o=null,G=null,_=null,j=-1,U=!1;
if(s.d=="delLC"){var S=r.fW.Kj(l.xW,s.jV),X=l.xW.lastAppliedComp?l.xW.lastAppliedComp.v:0;P.list.v.splice(S,1);
if(X==s.jV)delete P.lastAppliedComp;o="Delete Layer Comp"}if(s.d=="editLC"){var S=r.fW.Kj(l.xW,s.jV),c=P.list.v[S].v;
if(s.Q_!=null)c.Nm.v=s.Q_;if(s.amY!=null){var y=s.amY,O=c.capturedInfo.v,p=O&(1<<y)-1;O=O>>y;if((O&1)==1)O--;
else O++;c.capturedInfo.v=(O<<y)+p}o="Layer Comp properties"}if(s.d=="setLC"){r.fW.Uu(l);if(s.jV==0)delete P.lastAppliedComp;
else P.lastAppliedComp={t:"long",v:s.jV};o="Switch Layer Comp";U=!0}if(s.d=="updLC"){r.fW.Uu(l);G=r.fW.an8(l,s.jV);
_=r.fW.H5(l,s.jV);P.lastAppliedComp={t:"long",v:s.jV};o="Update Layer Comp";j=s.jV;U=!0}if(s.d=="addLC"){r.fW.Uu(l);
var D=1;for(var C=0;C<P.list.v.length;C++)D=Math.max(D,P.list.v[C].v.compID.v)+1;D+=Math.floor(Math.random()*1e4);
var f={t:"Objc",v:{classID:"Comp",Nm:{t:"TEXT",v:"New Comp "+(P.list.v.length+1)},compID:{t:"long",v:D},capturedInfo:{t:"long",v:7}}};
P.list.v.push(f);P.lastAppliedComp={t:"long",v:D};o="New Layer Comp";var T=r.fW.H5(l,D);r.fW.y0(l,T,D)}var I=new aU(o,this);
I.data={aeF:a,agh:P,akR:G,a8_:_,jV:j,Pf:U};this.mH(I.data,l);l.eN(I)};r.fW.prototype.mH=function(s,m){m.xW=s.agh;
m.CR=!0;if(s.a8_)r.fW.y0(m,s.a8_,s.jV);if(s.Pf){var l=m.xW.lastAppliedComp?m.xW.lastAppliedComp.v:0,x=r.fW.Kj(m.xW,l),a=x==-1?null:m.xW.list.v[x].v,P=a?a.capturedInfo.v:7;
r.fW.lf(m,l,P);m.F()}};r.fW.prototype.V1=function(s,m){m.xW=s.aeF;m.CR=!0;if(s.akR)r.fW.y0(m,s.akR,s.jV);
if(s.Pf){var l=m.xW.lastAppliedComp?m.xW.lastAppliedComp.v:0,x=r.fW.Kj(m.xW,l),a=x==-1?null:m.xW.list.v[x].v,P=a?a.capturedInfo.v:7;
r.fW.lf(m,l,P);m.F()}};r.fW.Uu=function(s){if(s.xW.lastAppliedComp!=null||!s.d6)return;var m=r.fW.H5(s,0);
r.fW.y0(s,m,0);s.d6=!1};r.fW.tM=function(s,m,l){s.v.Hrzn.v+=m;s.v.Vrtc.v+=l};r.fW.Kj=function(s,m){var l=s.list.v;
for(var C=0;C<l.length;C++)if(l[C].v.compID.v==m)return C;return-1};r.fW.adi=function(s){var m=s.layerSettings.v,a=null;
if(m.length==0)return;var l="compList enab Ofst blendOptions Lefx FXRefPoint imageMask vectorMask layerSpecific".split(" "),x=m[0].v;
if(x.enab==null)x.enab={t:"bool",v:!0};if(x.Ofst==null)x.Ofst={t:"Objc",v:{classID:"null",Hrzn:{t:"long",v:0},Vrtc:{t:"long",v:0}}};
for(var C=0;C<m.length;C++){var P=m[C].v;if(a==null)a=JSON.parse(JSON.stringify(P));else for(var o=0;
o<l.length;o++){var G=l[o];if(P[G])a[G]=JSON.parse(JSON.stringify(P[G]))}m[C].v=JSON.parse(JSON.stringify(a))}};
r.fW.L9=function(s,m){var l=s.add.shmd.cmls,x=l.layerSettings.v;for(var a=0;a<x.length;a++){var P=x[a].v,o=P.compList.v[0].v;
if(o==m)return a}return-1};r.fW.oF=function(s,m){var l=r.fW.L9(s,m);return l==-1?null:s.add.shmd.cmls.layerSettings.v[l].v};
r.fW.lf=function(s,m,l){for(var C=0;C<s.G.length;C++){var x=s.G[C],a=x.add.shmd.cmls;if(a==null)continue;
var P=a.layerSettings.v,o=r.fW.oF(x,m);if(o==null){x.tG(!1);continue}if((l&1)!=0){if(o.enab)x.tG(o.enab.v);
else x.tG(!0)}if((l&2)!=0){if(o.Ofst){var G=o.Ofst.v,_=x.NK(s),j=Math.round(G.Hrzn.v-_.x),U=Math.round(G.Vrtc.v-_.y);
if(j!=0||U!=0)r.PL.Ng(s,[C],null,j,U)}}if((l&4)!=0){if(o.Lefx){var S=JSON.parse(JSON.stringify(o.Lefx.v));
c2.xo(S);if(JSON.stringify(S)!=JSON.stringify(x.add.lmfx)){x.add.lmfx=S;x.GM.qZ=!0}}else delete x.add.lmfx;
if(o.blendOptions){var X=o.blendOptions.v;if(X.Opct)x.opacity=Math.round(255*X.Opct.v.val/100);if(X.fillOpacity)x.add.iOpa=Math.round(255*X.fillOpacity.v.val/100);
if(X.Md)x.TR=x.add.lsct==hN.k_?"norm":aA.wq(X.Md.v.BlnM)}else{x.opacity=255;x.TR=x.gu()?"pass":"norm";
x.add.iOpa=255}}}};r.fW.an8=function(s,m){var l={};for(var C=0;C<s.G.length;C++){var x=s.G[C];if(x.add.shmd==null||x.add.shmd.cmls==null)continue;
l["l"+x.add.lyid]=JSON.parse(JSON.stringify(r.fW.oF(x,m)))}return l};r.fW.H5=function(s,m){var l={};
for(var C=0;C<s.G.length;C++){var x=s.G[C],a=x.add.lyid;l["l"+a]=r.fW.kK(s,x,m)}return l};r.fW.kK=function(s,m,l){var x=m.add.shmd?m.add.shmd.cmls:null,a={classID:"null"},P=m.NK(s),o={t:"Objc",v:{classID:"null",Hrzn:{t:"long",v:P.x},Vrtc:{t:"long",v:P.y}}};
a.compList={t:"VlLs",v:[{t:"long",v:l}]};a.enab={t:"bool",v:m.p$()};a.Ofst=JSON.parse(JSON.stringify(o));
a.FXRefPoint=JSON.parse(JSON.stringify(x&&x.origFXRefPoint?x.origFXRefPoint:o));a.blendOptions={t:"Objc",v:{classID:"null",Md:{t:"enum",v:{BlnM:aA.bH(m.TR)}},Opct:{t:"UntF",v:{type:"#Prc",val:100*m.opacity/255}},fillOpacity:{t:"UntF",v:{type:"#Prc",val:m.add.iOpa!=null?100*m.add.iOpa/255:100}}}};
if(m.add.vmsk){a.vectorMask={t:"Objc",v:{classID:"null"}};a.vectorMask.v.Ofst=JSON.parse(JSON.stringify(o))}if(m.add.lmfx){a.Lefx={t:"Objc",v:JSON.parse(JSON.stringify(m.add.lmfx))};
c2.VQ(a.Lefx.v)}return a};r.fW.a43=function(s,m){var l=m.add.lyid;if(m.add.shmd==null)m.add.shmd={};
if(m.add.shmd.cmls==null){m.add.shmd.cmls={classID:"null",LyrI:{t:"long",v:l},layerSettings:{t:"VlLs",v:[{t:"Objc",v:r.fW.kK(s,m,0)}]}}}};
r.fW.y0=function(s,m,l){for(var C=0;C<s.G.length;C++){var x=s.G[C],a=x.add.lyid;r.fW.a43(s,x);var P=x.add.shmd.cmls,o=P.layerSettings.v,G=m["l"+a];
if(G!=null)G={t:"Objc",v:JSON.parse(JSON.stringify(G))};var _=r.fW.L9(x,l);if(_==-1){if(G==null)continue;
else o.push(G)}else{if(G==null)o.splice(_,1);else o[_]=G}}};r.fW.Bp=function(s,m){for(var C=0;C<s.G.length;
C++){var l=s.G[C],x=l.add.lyid;if(l.add.shmd==null||l.add.shmd.cmls==null)continue;var a=l.NK(s),P=Math.round(a.x),o=Math.round(a.y);
if(!m){P=-P;o=-o}var G=l.add.shmd.cmls,_=G.layerSettings.v;if(G.origFXRefPoint)r.fW.tM(G.origFXRefPoint,-P,-o);
for(var j=0;j<_.length;j++){var U=_[j].v;r.fW.tM(U.Ofst,P,o);var S=U.imageMask,X=U.vectorMask;if(S&&S.v.Ofst)r.fW.tM(S.v.Ofst,P,o);
if(X&&X.v.Ofst)r.fW.tM(X.v.Ofst,P,o)}}};r.uf=function(){r.xO.call(this,"Adjust Edit",r.P4);this.JR=null;
this.$R=null};r.uf.prototype=new r.xO;r.uf.d$=function(s,m,l,x){if(x)m/=4;var a=0,P=0,o=255,G=0,_=0,j=255;
while(P+s[a]<m){P+=s[a];a++}while(G+s[o]<m){G+=s[o];o--}if(x){a-=Math.round(s[a]/(l/32));o+=Math.round(s[o]/(l/32));
if(a<0)_=Math.round(-a*255/(o-a));if(o>255)j=255-Math.round((o-255)*255/(o-a))}return[Math.max(a,0),Math.min(o,255),_,j,100]};
r.uf.prototype.Pk=function(s,m,l,x,a){var P=s.d;if(P=="auto"){var o=s.yk,G=r.uf.getData(l);for(var C=0;
C<G.length;C++){var _=G[C],j;if(o<3){}else{var U=ib.Xi("hue2");aX.r3(U,0,[0,-100,0]);j=eb.vC("hue2",U)}eb._E(j,_.uN,_.Ul,_.Bv)}r.uf.Ay(l,G);
r.uf.AS(l,G,o<3?[4,16,o]:[19,7,0],this);l.F()}if(P=="edit_layer")this.aeW(s,m,l,x);if(P=="edit"||P=="confirm"||P=="cancel")this.PY(s,m,l,a,!0);
if(P=="start"){if(l.N.length==0)return;var S=l.G[l.N[0]];if(S.add.SoLd&&S.Ar<=0&&l.Be.length==0){var X=new h9(v.E.u,!0);
X.c=r.LI;X.data={d:"start",HU:s.AK,yt:s.yt};m.Y(X);return}if(!l.cn(m,null,!0))return;if(B[s.AK]&&s.yt==null){if(l.N.length!=1)alert("Will be applied to "+l.N.length+" layers.");
var X=new h9(v.E.g,!0);X.data={d:v.J.Qm,It:"afw_"+s.AK};m.Y(X)}else{this.PY({d:"edit",yt:s.yt,HU:s.AK},m,l,a);
this.PY({d:"confirm",HU:s.AK},m,l,a)}}};r.uf.prototype.aeW=function(s,m,l,x){var a=s.d,P=l.N[0],o=l.G[P],G=eb.get(o.add),_=JSON.parse(JSON.stringify(o.add[G])),X;
for(var j in s.Z)_[j]=s.Z[j];var U=JSON.parse(JSON.stringify(_));for(var j in eb.at)if(eb.at[j]==G)U.classID=j;
var S=l.history[l.gH];if(S&&S.c==this&&S.data.nA!=null&&S.data.i==P)X=S;else{var c=new h9(v.E.b4,!0),y={classID:"setd",null:e6.Yr("AdjL",!0),T:{t:"Objc",v:U}};
c.data={sQ:!0,YF:"set",WA:y};m.Y(c);var X=new aU([6,39],this);X.data={i:P,nA:o.add[G],Ur:_,TJ:y};l.eN(X)}X.data.Ur=_;
X.data.TJ.T.v=U;this.mH(X.data,l)};r.uf.getData=function(s,m,l){var x=[],a=new bU(0,0,s.e,s.l),P=s.Be.length!=0?[-1-s.Be[0]]:s.N;
for(var C=0;C<P.length;C++){var o=P[C],G=o<0?null:s.G[o],_={i:o,ou:o<0?1:G.Ar};x.push(_);var j=s.$_[-1-o];
if(0<=o)j=G.Ar<=0?null:G.Ar==1?G.SE():G.Ao(s).v;var U=j?j.rect:G.rect;if(s.q)_.Bv=j!=null?s.q.rect.pF(a):s.q.rect.pF(U);
else _.Bv=m||j!=null?U.if(a):U.clone();if(l)_.Bv=l[C].Bv.clone();var S=_.Bv.k();_.uN=L.B(S*4);if(j)r.fZ.y$(j.channel,j.rect,j.color,_.uN,_.Bv);
else L.yx(G.buffer,U,_.uN,_.Bv);_.Ul=_.uN.slice(0);if(s.q){_.ij=L.B(S);L.kV(s.q.channel,s.q.rect,_.ij,_.Bv)}}return x};
r.uf.aof=function(s,m,l){if(m==null)return m;var x=eb.FJ(s,m),P;if(x==-1)return m;var a=l.length>>>2,o=L.XU(l),G=.001*a;
if(x==0||x==2)P=[[0,255,0,255,100],r.uf.d$(o[1],G,a,x==2),r.uf.d$(o[2],G,a,x==2),r.uf.d$(o[3],G,a,x==2)];
if(x==1)P=[r.uf.d$(o[0],G*.33,a,!1),[0,255,0,255,100],[0,255,0,255,100],[0,255,0,255,100]];var _=ib.Xi("levl");
for(var C=0;C<4;C++)gy.r3(_,C,P[C]);return _};r.uf.prototype.PY=function(s,m,l,x){if(this.JR==null){if(s.HU=="aply")l.G[l.N[0]].extend(new bU(0,0,l.e,l.l));
this.JR=r.uf.getData(l,null,s.HU=="fade"?l.b1().data:null);if(s.HU=="aply")this.JR[0].CI=l.cf()}if(s.d=="edit"){this.$R=[s.HU,s.yt];
var a=this.JR[0],P=r.uf.aof(s.HU,s.yt,a.uN),o=eb.vC(s.HU,P);if(s.HU=="fade"||s.HU=="aply")o=s.yt;if(o!=null){for(var C=0;
C<this.JR.length;C++){var G=this.JR[C];if(s.t6)L.qv(G.uN,G.Ul);else if(s.HU=="fade"){var _=aA.wq(s.yt.Md.v.BlnM),j=s.yt.Opct.v.val/100,U=l.b1().data[C];
L.qv(U.uN,G.Ul);if(_=="norm")L.a.HZ(G.uN,G.Bv,G.Ul,G.Bv,null,null,null,G.Bv,j);else{var S=jo.gg();S.yz=!0;
for(var C=0;C<U.uN.length;C+=4)if(U.uN[C+3]!=G.uN[C+3]){S=null;break}L.a.$P(_,G.uN,G.Bv,G.Ul,G.Bv,G.Bv,j,S)}}else if(s.HU=="aply"){o=o.With.v;
var X=o.T.v,c,y;if(X[1].t=="name"){var O=0;for(var p=0;p<l.G.length;p++)if(l.G[p].getName()==X[1].v.val)O=p;
if(O==G.i){c=G.uN;y=G.Bv}else{var D=l.G[O];c=D.buffer;y=D.rect}}else{y=new bU(0,0,l.e,l.l);c=G.CI}var f=o.Clcl?o.Clcl.v.Clcn:null,_=f?aA.wq(f):"norm",j=o.Opct?o.Opct.v.val/100:1,T=["RGB","Rd","Grn","Bl","Trsp"].indexOf(X[0].v.enum),P=o.Invr&&o.Invr.v;
if(P||T!=0){c=c.slice(0);if(P)L.aoZ(c);if(T!=0){var I=L.B(y.k());L.hy(c,I,T-1);if(T==4)L.ms(I);for(var p=0;
p<3;p++)L._Y(I,c,p)}}if(f=="Add"||f=="Sbtr"){var H=1/o.Scl.v,b=o.Ofst.v,R=f=="Add"?1:-1,W=new Uint8ClampedArray(G.Ul.buffer);
for(var C=0;C<c.length;C+=4){W[C]=(G.uN[C]+R*c[C])*H+b;W[C+1]=(G.uN[C+1]+R*c[C+1])*H+b;W[C+2]=(G.uN[C+2]+R*c[C+2])*H+b}}else{var S=jo.gg();
S.yz=o.PrsT&&o.PrsT.v;G.Ul.fill(0);G.Ul.set(G.uN);L.a.$P(_,c,y,G.Ul,G.Bv,G.Bv,j,S)}}else eb._E(o,G.uN,G.Ul,G.Bv)}r.uf.Ay(l,this.JR)}}if(s.d=="cancel"){r.uf.Pe(l,this.JR);
this.JR=null}if(s.d=="confirm"){var J=s.HU=="fade"?[2,11]:s.HU=="aply"?[2,12]:eb.names[s.HU],u=eb.FJ(s.HU,this.$R[1]);
if(u!=-1)J=[4,16,u];r.uf.AS(l,this.JR,J,this);this.JR=null;if(u==-1)r.uf.Ya(m,this.$R)}l.F()};r.uf.Ya=function(s,m){var l=m[0],x=m[1],a,P;
if(eb.Tg[l]){a=eb.Tg[l];if(B[l])P=x}if(ib.Tg[l]){a=ib.Tg[l];if(B[l])P=x}if(l=="fade"){a="fade";P=x}if(l=="aply"){a="applyImageEvent";
P=x}if(a==null)return;var o=new h9(v.E.b4,!0);o.data={sQ:!0,YF:a};if(P){P=JSON.parse(JSON.stringify(P));
P.classID="null";delete P.__name;o.data.WA=P}s.Y(o)};r.uf.Pe=function(s,m){r.uf.si(s,m)};r.uf.AS=function(s,m,l,x){for(var C=0;
C<m.length;C++){var a=m[C],P=s.G[a.i],o=a.i<0?s.$_[-1-a.i]:a.ou<=0?null:a.ou==1?P.SE():P.Ao(s).v;if(o){o.zr();
o.A$=!0;if(P)P.sN(s)}else{P.zr();P.F()}delete a.Ul;delete a.ij}var G=new aU(l,x);G.data=m;s.eN(G);s.CR=!0};
r.uf.Ay=function(s,m,l){for(var C=0;C<m.length;C++){var x=m[C],a=s.G[x.i],P=l?x.uN:x.Ul,o=x.Bv;if(x.ou==0){a.extend(o);
if(x.ij){L.yx(x.uN,o,a.buffer,a.rect);L.a.HZ(P,o,a.buffer,a.rect,x.ij,o,0,o,1)}else L.yx(P,o,a.buffer,a.rect)}else{var G=x.i<0?s.$_[-1-x.i]:x.ou==1?a.SE():a.Ao(s).v;
G.extend(o);if(x.ij){var _=L.B(o.k()*4);L.qv(x.uN,_);L.a.HZ(P,o,_,o,x.ij,o,0,o,1);r.fZ.X_(_,o,G)}else r.fZ.X_(P,o,G);
G.A$=!0;if(a)a.sN(s)}if(a)a.F()}if(!l)r.uf.ka(s,m)};r.uf.si=function(s,m){for(var C=0;C<m.length;C++){var l=m[C],x=s.G[l.i],a=l.Bv,P=L.B(a.k()*4);
if(l.ou==0){L.yx(x.buffer,x.rect,P,a);x.extend(a);L.yx(l.uN,a,x.buffer,x.rect);x.zr()}else{var o=l.i<0?s.$_[-1-l.i]:l.ou==1?x.SE():x.Ao(s).v;
r.fZ.y$(o.channel,o.rect,o.color,P,a);o.extend(a);r.fZ.X_(l.uN,a,o);o.zr();o.A$=!0;if(x)x.sN(s)}l.uN=P;
if(x)x.F()}s.CR=!0};r.uf.ka=function(s,m){var l=r.uf.Bu(s),x=~l;if(l==16777215)return;for(var C=0;C<m.length;
C++){var a=m[C],P=s.G[a.i],o=a.Bv;if(a.ou!=0)continue;P.extend(o);var G=o.x-P.rect.x,_=o.y-P.rect.y,j=P.rect.e,U=new Uint32Array(a.uN.buffer),S=new Uint32Array(P.buffer.buffer);
for(var X=0;X<o.l;X++)for(var c=0;c<o.e;c++){var y=X*o.e+c,O=(X+_)*j+(c+G);S[O]=S[O]&l|U[y]&x}P.zr();
P.F()}s.F()};r.uf.Bu=function(s){var m=s.t.OL;return m[2]*16711680|m[1]*65280|m[0]*255};r.uf.prototype.V1=function(s,m){var l=m.G[s.i];
if(s.nA!=null)l.add[eb.get(l.add)]=s.nA;else r.uf.si(m,s);m.F()};r.uf.prototype.mH=function(s,m){var l=m.G[s.i];
if(s.nA!=null)l.add[eb.get(l.add)]=s.Ur;else r.uf.si(m,s);m.F()};r.Yo=function(){r.xO.call(this,"Filter Edit",r.LI);
this.JR=null;this.$o=null;this.d=null;this.$R=null};r.Yo.prototype=new r.xO;r.Yo.prototype.Pk=function(s,m,l,x,a){if(s.d=="start"){if(l.N.length==0)return;
var P=l.G[l.N[0]];if(P.add.SoLd&&P.Ar<=0&&l.Be.length==0){}else if(!l.cn(m,null,!0))return;var o=s.HU;
if((B[o]||ib.C[o])&&s.yt==null){if(l.N.length!=1)alert("Will be applied to "+l.N.length+" layers.");
var G=new h9(v.E.g,!0);G.data=r.Yo.Pn(o,this.YW(l,o));m.Y(G)}else{var _={d:"edit",HU:o,yt:s.yt,X3:this.YW(l)};
this.Pk(_,m,l,x,a);_.d="confirm";delete _.yt;this.Pk(_,m,l,x,a)}}if(s.d=="edit"||s.d=="cancel"||s.d=="confirm"){if(s.d=="edit")this.$R=[s.HU,s.yt];
if(s.X3)this.arQ(s,l,a);else this.alB(s,m,l,a)}if(s.d=="applylast"&&this.$R!=null){var _={d:"edit",HU:this.$R[0],yt:this.$R[1],X3:this.YW(l)};
this.Pk(_,m,l,x,a);_.d="confirm";delete _.yt;this.Pk(_,m,l,x,a)}};r.Yo.Pn=function(s,m){var l=ib.C[s];
if(l)return{d:v.J._I,c:l,P1:{X3:m}};else return{d:v.J.Qm,It:"afw_"+s,X3:m}};r.Yo.prototype.YW=function(s,m){var l=s.G[s.N[0]],x;
if(l.add.SoLd&&l.Ar<=0&&s.Be.length==0){x={i:s.N[0],index:0};if(l.add.SoLd.filterFX!=null){var a=l.add.SoLd.filterFX.v.filterFXList.v;
x.index=a.length;for(var C=0;C<a.length;C++)if(ib.HK(a[C].v)==m&&ib.C[m])x.index=C}}return x};r.Yo.prototype.arQ=function(s,m,l){var x=m.G[s.X3.i],a=s.HU;
if(s.d=="edit"){if(this.d==null){var P=ib.names[a];if(P==null)P=eb.names[a];if(a=="blendOptions")P=[14,10];
this.d=new aU(P,this);this.d.data={X3:s.X3,adO:JSON.parse(JSON.stringify(x.add.SoLd))}}if(!x.UI()){x.add.SoLd.filterFX=ib.yo();
this.d.data.ac=jF.y3(x.add.SoLd.placed.v);m.Vi(this.d.data.ac);x.y2(m)}var o=x.add.SoLd.filterFX.v.filterFXList.v;
if(o[s.X3.index]==null){o.push(ib.k$(a,l))}if(s.yt){o[s.X3.index].v.enab.v=s.t6!=!0;if(a=="blendOptions")o[s.X3.index].v.blendOptions.v=s.yt;
else o[s.X3.index].v.Fltr.v=s.yt}this.d.data.a1Z=JSON.parse(JSON.stringify(x.add.SoLd));this.mH(this.d.data,m)}if(s.d=="cancel"){if(this.d)this.V1(this.d.data,m);
this.d=null}if(s.d=="confirm"){if(this.d)m.eN(this.d);this.d=null}};r.Yo.prototype._a=function(s){return{o:s>>>16,z:s>>>8&255,S:s&255}};
r.Yo.prototype.alB=function(s,m,l,x){if(this.JR==null){var a=ib.Te(s.HU,s.yt);this.JR=r.uf.getData(l,a.x!=0||a.y!=0)}if(s.d=="edit"){var P=JSON.stringify(s.yt);
if((s.yt==null||P!=this.$o)&&s.t6!=!0)for(var C=0;C<this.JR.length;C++){var o=this.JR[C],G={rect:o.Bv,buffer:o.uN},_={rect:o.Bv,buffer:o.Ul};
if(s.HU=="Avrg"&&o.ij){G.buffer=o.uN.slice(0);L.$n(o.ij,G.buffer)}ib._E(s.HU,G,s.yt,this._a(x.zU),this._a(x.Pi),_,[l.add.lnk2?l.add.lnk2:[],l.G[l.N[0]].SE(),l.$_,l.S4()]);
if(s.HU=="Avrg"&&o.ij){var j=o.uN.length;for(var C=0;C<j;C+=4)o.Ul[C+3]=o.uN[C+3]}this.$o=P}r.uf.Ay(l,this.JR,s.t6)}if(s.d=="cancel"){r.uf.Pe(l,this.JR);
this.JR=null;this.$o=null}if(s.d=="confirm"){r.uf.AS(l,this.JR,ib.names[s.HU],this);this.JR=null;this.$o=null;
r.uf.Ya(m,this.$R)}l.F();l.CR=!0};r.Yo.prototype.V1=function(s,m){if(s.X3){var l=m.G[s.X3.i];if(s.ac)m.Nu(s.ac);
l.add.SoLd=JSON.parse(JSON.stringify(s.adO));if(l.UI())l.zp(m);else{l.y2(m);l.Ar=0}}else r.uf.si(m,s);
m.F();m.CR=!0};r.Yo.prototype.mH=function(s,m){if(s.X3){var l=m.G[s.X3.i];if(s.ac)m.Vi(s.ac);l.add.SoLd=JSON.parse(JSON.stringify(s.a1Z));
if(l.UI())l.zp(m);else l.y2(m);if(!l.nE())l.Yy+=32}else r.uf.si(m,s);m.F();m.CR=!0};var gN={ki:"0",Fe:"1",ir:"2",eV:"3",uZ:"4",_L:"5",t3:"6",Sm:"7",u:"8",jo:"8.5",o4:"8.8",y1:"9",$W:"10",dz:"11",gO:"12",ks:"13",L$:"14",OB:"15",Qg:"16",WV:"21",eR:"22",pM:"23",iY:"23.0",h0:"23.1",BZ:"23.2",JK:"23.3",bO:"23.4",Xk:"23.5",Ii:"23.6",Ev:"30",n5:"31",e7:"40",cv:"41",_t:"42"};
gN.FW={};gN.FW[gN.Fe]=["abr","brushes",gI,[9,3]];gN.FW[gN.ir]=["grd","gradients",f8,[12,37]];gN.FW[gN.eV]=["shc","contours",hg,[12,21]];
gN.FW[gN.uZ]=["asl","styles",he,[12,22]];gN.FW[gN._L]=["pat","patterns",gQ,[12,62]];gN.FW[gN.t3]=["csh","shapes",b_,[12,77]];
gN.FW[gN.Sm]=["aco","swatches",dr,[9,8]];gN.FW[gN.u]=["atn","actions",gz,[9,9]];gN.FW[gN.jo]=["tpl","tpresets",iP,[9,12]];
gN.FW[gN.o4]=["icc","profiles",aO,"ICCs"];function aU(s,m,l){if(l==null)l=!1;this.name=s;this.c=m;this.wO=l;
this.data=null;this.a2U=Date.now()}var e6={};e6.Yr=function(s,m){var l={t:"Clss",v:{classID:s}};if(m)l={t:"Enmr",v:{classID:s,typeID:"Ordn",enum:"Trgt"}};
return{t:"obj ",v:[l]}};e6.$Z=function(s,m){var l={classID:"Lyr"};l[s]=m;return{YF:"set",WA:{classID:"null",null:e6.Yr("Lyr",!0),T:{t:"Objc",v:l}}}};
e6.aaA=function(s,m,l,x,a){var P=new h9(v.E.b4,!0),o=[],C=0,G=e6.kT(m,l,x,o);while(o.length!=0){var _=o.pop();
C++;if(!_.P)continue;console.log(C-1);if(_.YF=="conditional"){var j=s.G[s.N[0]],U=_.WA.null.v.Cndt,S=!1;
if(U=="Bckg")S=!1;else if(U=="Pxel"&&s.z6(!1))S=!0;else if(U=="Adjs"&&eb.get(j.add))S=!0;else if(U=="Shp"&&j.add.vogk)S=!0;
else if(U=="Grup"&&j.gu())S=!0;else if(U=="Opn"&&s!=null)S=!0;else if(U=="32Bt")S=!1;else if(U=="RGB")S=!0;
var X=_.WA.then,c=_.WA.else;if(S&&X)e6.kT(m,X.v[0].v.val,X.v[1].v.val,o);if(!S&&c)e6.kT(m,c.v[0].v.val,c.v[1].v.val,o)}else if(_.YF=="stop"){if(_.WA.Cntn&&_.WA.Cntn.v==!0)window.confirm(_.WA.Msge.v);
else{alert(_.WA.Msge.v);break}}else if(_.YF=="play"){var y=_.WA.null.v,O=new h9(v.E.g,!0);O.data={d:v.J.Lh,KA:[y[0].v.val,y[1].v.val]};
a.Y(O)}else{P.data={YF:_.YF,WA:_.WA};a.Y(P)}}};e6.kT=function(s,m,l,x){var a;for(var C=0;C<s.length;
C++){if(s[C].YH!=l)continue;var P=s[C].tH;for(var o=0;o<P.length;o++){if(P[o].YH!=m)continue;a=P[o].tH}}var G=a.length;
for(var C=0;C<G;C++)x.push(a[G-1-C])};e6.abX=function(s){var m=s.YF,l=s.WA,x,o,G,_,j;if(l&&l.null)x=l.null.v[0];
if(l&&x==null&&l.At)x=l.At.v[0];if(x&&x.t=="obj ")x=x.v[0];var a=x?x.v.classID:null,P=["purge"];if(P.indexOf(m)!=-1)return m[0].toUpperCase()+m.slice(1);
if(m=="GEfc")return ew.names[l.GEfk.v.GEft][1];j=eb.Tg;for(o in j)if(j[o]==m)G=o;j=ib.Tg;for(o in j)if(j[o]==m)_=o;
if(G){var U=eb.FJ(G,l);if(U!=-1)return[4,16,U];return eb.names[G]}if(_)return ib.names[_];var S=e6.ia;
if(m=="make"){if(x){if(a=="AdjL")return[6,1];else if(a=="layerSection")return l.From?[6,9]:[6,20];else if(a=="Lyr")return[6,13];
else if(a=="Chnl"&&x.v.enum=="Msk")return[6,2];else if(a=="contentLayer")return[6,48,1];else if(a=="BckL")return"Make Background Layer";
else if(a=="Path")return"Make Path";else if(a=="TxLr")return"Make Text Layer";else if(a=="slice")return"Make Slices"}if(l.Nw){a=l.Nw.v.classID;
if(a=="Dcmn")return[11,7];else if(a=="Chnl"||a=="SCch")return"New Channel"}}else if(m=="deselect"){if(a=="Path")return"Deselect current path";
else throw a}else if(m=="select"){if(a=="Chnl")return"Select "+(x.v.enum=="Msk"?"Mask ":"")+"Channel";
else if(a=="Mn")return"Select Panel \""+x.v.enum+"\"";else if(a=="Lyr"){if(x.t=="Enmr")return"Select "+{Bckw:"Backward",Frwr:"Forward"}[x.v.enum]+" Layer";
return"Select Layer \""+x.v.val+"\""}else if(a=="Path")return"Select Path";else if(a=="Brsh")return"Select Brush";
else if(a=="Dcmn")return"Select Document"}else if(S[m]&&a=="Chnl"){var X=x.v.keyID=="fsel";return S[m]+" "+(X?"Selection":"Channel")}else if(m=="set"){if(a=="Lyr")return"Set Current Layer";
else if(a=="AdjL")return[6,39];else if(a=="contentLayer")return[6,48,2];else if(a=="Prpr")return[11,6];
else if(a=="Clr")return"Set "+(x.v.keyID=="FrgC"?"Foreground":"Background")+" color";else if(a=="Brsh")return"Set Brush";
else console.log(a)}else if(m=="move"){if(a=="Lyr")return"Move Layer"}else if(m=="show"||m=="hide"){var c="";
if(a=="Lyr")+"Layer";if(a=="Chnl")+"Channel";return(m=="show"?"Show":"Hide")+" "+c}else if(m=="reset"){if(a=="Clr")return"Reset Colors"}else if(m=="exchange"){if(a=="Clr")return[22,7,0]}else if(m=="rotateEventEnum")return[2,5];
else if(m=="flip"){var y=l.Axis.v.Ornt=="Hrzn";return[[2,6],[22,4,y?2:3]]}if(a=="Chnl"){if(m=="duplicate"){if(x.v.keyID=="fsel")return"Selection to Channel";
else return"Duplicate Channel"}if(m=="delete")return"Delete Channel"}if(m=="transform")return x&&x.v.keyID=="fsel"?[7,10]:[10,16];
var O={cut:[5,0],copyEvent:[5,1],copyToLayer:[6,49],copyMerged:[5,7],paste:[5,2],close:[1,12,0],save:[1,2],groupEvent:[6,18],ungroup:[6,19],duplicate:[6,0],mergeLayersNew:[6,12,0],mergeVisible:"Merge Visible",flattenImage:[6,12,1],updatePlacedLayer:[6,36,1],fade:[2,11],applyImageEvent:[2,12],fill:[2,3],colorRange:[7,8],desaturate:[19,7,0],delete:l?[6,31]:[2,2],align:[20,4,0],applyLocking:[6,57,1],crop:[11,12,1],placedLayerEditContents:"Edit Contents",convertMode:"Convert Mode",newPlacedLayer:[6,7,0],canvasSize:[11,3],imageSize:[11,10],rasterizeLayer:[6,8],revealAll:[11,12,2],conditional:"If"},p=O[m];
if(p==null)p=e6.qB[m];if(p)return p;return m};e6.qB={border:[7,9],smoothness:[19,3,0],expand:[7,4],contract:[7,5],feather:[7,6],inverse:[7,2]};
e6.ia={set:"Set",add:"Add Transparency",addTo:"Add To",subtract:"Subtract Transparency",subtractFrom:"Subtract From",interfaceIconFrameDimmed:"Intersect Transparency",interfaceWhite:"Intersect With"};
e6.a9R=function(s,m,l,x){var a=s.YF,P=s.WA,o=new h9(v.E.u,!0),j,U,S,X,y;o.c=r.ay;var G=new h9(v.E.g,!0),_=["purge","updatePlacedLayer","convertMode"];
if(_.indexOf(a)!=-1)return;X=eb.Tg;for(j in X)if(X[j]==a)U=j;X=ib.Tg;for(j in X)if(X[j]==a)S=j;if(a=="fade")U=a;
if(a=="applyImageEvent")U="aply";if(U){o.c=r.P4;o.data={d:"start",AK:U,yt:P}}else if(S){o.c=r.LI;o.data={d:"start",HU:S,yt:P}}else if(a=="GEfc"){o.c=r.LI;
o.data={d:"start",HU:"GEfc",yt:P}}else if(a=="imageSize"||a=="canvasSize"||a=="revealAll"||a=="trim"||a=="crop"){o.c=r.wX;
o.data={d:"fromAction",qb:s}}else if(a=="fill"||a=="stroke"||a=="delete"&&P==null){o.c=r.Fe;o.data={d:"fromAction",qb:s}}else if(a=="colorRange"){o.c=r.r$;
o.data={d:"fromAction",qb:s}}else if(e6.qB[a]||e6.ia[a]&&(!1||P.With&&P.With.v[0].v.keyID=="fsel"||P.From&&P.From.v[0].v.keyID=="fsel"||P.null&&P.null.v[0].v.keyID=="fsel"||P.T.v[0]&&P.T.v[0].v.keyID=="fsel")){o.c=r.r$;
o.data={d:"fromAction",qb:s}}var c={copyToLayer:t.ER,mergeLayersNew:x&&x.N.length==1?t.MN:t.cg,rasterizeLayer:t.aN,mergeVisible:t.Xr,flattenImage:t.iv,newPlacedLayer:t.IN};
if(c[a])o.data={d:c[a],WA:P};if(o.data){m.Y(o);return}if(a=="desaturate"){o.c=r.P4;o.data={d:"auto",yk:3};
if(x&&x.G[x.N[0]].add.SoLd==null)m.Y(o);return}if(a=="close"){if(P.Svng.v.YsN=="Ys"){G.data={d:v.J.Sl};
m.Y(G)}G.data={d:v.J.TA,EC:x};m.Y(G);return}if(a=="save"){G.data={d:v.J.Sl};m.Y(G);return}if(a=="copyMerged"){G.data={d:v.J.xZ,Oo:!0,SC:!0};
m.Y(G);return}var c={placedLayerEditContents:v.J.atR,copyEvent:v.J.xZ,paste:v.J.iI};if(c[a])G.data={d:c[a],SC:!0};
if(G.data){m.Y(G);return}if(P.null||P.At)y=(P.null?P.null:P.At).v;else y=[{t:"----",v:P}];if(y[0].t=="obj "){if(y.length!=1)throw"e";
y=y[0].v}for(var O=0;O<y.length;O++){var p=y[O],D=p.v.classID;o.data=null;if(a=="make"){if(P.null==null&&P.Nw)D=P.Nw.v.classID;
if(D=="AdjL"){o.data={d:t.Z$,WA:P}}else if(D=="layerSection"){o.data=P.From?{d:t.a4}:{d:t.R3};if(P.Usng){var f=P.Usng.v;
if(f.Nm)o.data.Q_=f.Nm.v;if(f.Clr)o.data.xQ=e6.tp(f)}}else if(D=="Lyr"){if(P.Usng&&P.Usng.v.length==2)o.data={d:t.Av};
else{o.data={d:t.Yb};if(P.Usng)o.data.Q_=P.Usng.v.Nm.v;if(P.below&&P.below.v)o.data.atB=!0}}else if(D=="Chnl"&&p.v.enum=="Msk"){o.data={d:t.Da,ur:P.Usng.v.UsrM}}else if(D=="Chnl"||D=="SCch"){o.data={d:t.iq,R7:"fromAction",Z:s}}else if(D=="contentLayer"){o.data={d:t.Yw,WA:P}}else if(D=="BckL"){x.G[x.N[0]].a0a();
continue}else if(D=="Dcmn"){var T=P.Nw.v;G.data={d:v.J.Ig,u0:jF.adf(T,l)}}else if(D=="Ptrn")G.data={d:v.J.wv,AV:0};
else if(D=="Path"){o.c=r.MA;o.data={d:"pathedit",R7:"fromsel"}}else if(D=="TxLr"){o.c=r.sX;o.data={d:"fromAction",qb:s}}else if(D=="slice"){o.c=r.iR;
o.data={d:"fromAction",qb:s}}else if(D=="SnpS"){continue}else{console.log(a,D,P);throw"e"}}else if(a=="deselect"){if(D=="Path"){x.FZ=[];
x.Gq=x.R8=!0;continue}else throw D}else if(a=="select"){var I={PcTl:r.Rh,PbTl:r.Fe,magicWandTool:r.dS};
if(D=="Lyr"){var H=P.selectionModifier,b=H?H.v.selectionModifierType:null,R=e6.$h(x,p);if(R==-1){alert("Layer "+p.v.val+" does not exist.");
throw"e"}o.data={d:t.dk,i:R,arl:b?["addToSelection","addToSelectionContinuous"].indexOf(b):null,GF:0,anN:!0}}else if(D=="Path"){if(p.v.keyID=="WrPt"){x.FZ=[0];
x.Gq=x.R8=!0;continue}else throw p}else if(D=="Chnl"){o.data={d:t.dk,i:R,GF:1}}else if(D=="Dcmn"){if(m.UF.length<2)return;
G.data={d:v.J.ab2,dir:P.null.v[0].v.val}}else if(D=="Brsh"){var W=l.If.list,J;for(var C=0;C<W.length;
C++){if(W[C].v.Nm.v==p.v.val)J=W[C].v}G.data={d:v.J.xw,AV:gN.L$,WR:J}}else if(I[D]){G.data={d:v.J._I,c:I[D]}}else throw D}else if((a=="set"||a=="reset"||a=="exchange")&&D=="Clr"){G.data={d:v.J.xw,AV:gN.WV,R7:a=="reset"?3:2};
if(a=="set"){G.data.R7=p.v.keyID=="FrgC"?0:1;var u=L.K.Qv(P.T.v);G.data.Z=u.o<<16|u.z<<8|u.S}}else if(a=="set"){if(D=="AdjL"){var e=P.T.v.classID;
e=eb.at[e];o.c=r.P4;if(e)o.data={d:"edit_layer",Z:P.T.v}}else if(D=="Lyr"){var Q=P.T.v,R=e6.$h(x,p);
if(Q.Nm)o.data={d:t.eQ,name:Q.Nm.v};else if(Q.Opct)o.data={d:t.j$,Ur:Math.round(Q.Opct.v.val*255/100)};
else if(Q.fillOpacity)o.data={d:t._o,Ur:Math.round(Q.fillOpacity.v.val*255/100)};else if(Q.Md)o.data={d:t.fL,Ur:aA.Bo.indexOf(Q.Md.v.BlnM)+(x.G[R].gu()?1:0)};
else if(Q.Usrs)o.data={d:t.VW,i:R};else if(Q.Blnd){o.c=r.Dk;o.data={d:"setstl",i:R,Z:{blendOptions:{t:"objc",v:Q}}};
m.Y(o);o.data={d:"confirm",i:R}}else if(Q.userMaskFeather||Q.userMaskDensity){var q=Q.userMaskFeather,Z=Q.userMaskDensity;
o.c=r.ay;var R=x.N[0],E=x.G[R].ss(0);if(q)E.h$=q.v.val;if(Z)E.Gl=Z.v.val;o.data={d:t.e_,wo:R,oA:E}}else if(Q.Clr){var z=e6.tp(Q);
o.data={d:t.Us,afV:z}}else if(y[0].t=="prop")continue;else{console.log(P);throw"e"}var V=x.G[R];V.a5O()}else if(D=="Prpr"){var Q=JSON.parse(JSON.stringify(P.T.v));
if(p.v.keyID=="TxtS"){var R=e6.$h(x,P.null.v[1]),V=x.G[R],Y=V.add.TySh,d=JSON.parse(JSON.stringify(Y.x5)),w=ex.Ep(d),A=ex.f9(d,0,w.length-2);
if(Q.Undl&&Q.Undl.v.Undl=="underlineOnLeftInVertical")A.m$.Underline=!0;ex.j3(d,0,w.length-1,A);o.c=r.sX;
o.data={d:"newED",eu:R,ld:d};O=1e9}else{for(var $ in Q)if(Q[$].v){if($=="Scl")Q[$].v.val=100;if(Q[$].v.TrnS&&Q[$].v.TrnS.v.Crv==null){Q[$].v.TrnS=JSON.parse(i4.Ej[9]).TrnS}}c2.xo(Q);
if(Q.masterFXSwitch==null)Q.masterFXSwitch={t:"bool",v:!0};var R=e6.$h(x,P.null.v[1]);o.c=r.Dk;o.data={d:"setstl",i:R,Z:{Lefx:{t:"objc",v:Q}}};
m.Y(o);o.data={d:"confirm",i:R}}}else if(D=="contentLayer"){var R=e6.$h(x,p),Q=P.T.v;if(Q.classID=="shapeStyle")Q=Q.FlCn.v;
var i={solidColorLayer:0,gradientLayer:1,patternLayer:2}[Q.classID],K=r.ar.vM(x,R),S=K.pC==i+1?K.ts:i4.Om[i];
S=JSON.parse(JSON.stringify(S));r.EM.PR(Q,S,i);o.data={d:t.L2,tP:[R],EY:!0,Z:{pC:i+1,ts:S}}}else if(D=="Brsh"){var J=JSON.parse(JSON.stringify(l.If.eh)),F=P.T.v;
if(F.masterDiameter)J.Brsh.v.Dmtr.v.val=F.masterDiameter.v.val;else console.log("unknown brush parameters");
G.data={d:v.J.xw,AV:gN.L$,WR:J}}else{console.log(p,P);throw D}}else if(a=="move"){if(D=="Lyr"){var Q=P.T.v;
if(Q.classID=="Ofst"){o.data={d:"trsl",a8j:Q.Hrzn.v.val,ahR:Q.Vrtc.v.val};o.c=r.G1}else{var N,iQ;if(Q[0].t=="Enmr"){if(Q[0].v.enum=="Frnt")iQ=0;
else if(Q[0].v.enum=="Nxt")iQ=1;else if(Q[0].v.enum=="Prvs")iQ=2;else if(Q[0].v.enum=="Back")iQ=3;else throw"e"}else N=Q[0].v.val;
o.data={d:t.qT,target:N,R7:iQ,apn:P.Dplc?P.Dplc.v:!1}}}}else if(a=="groupEvent"||a=="ungroup")o.data={d:t.VD};
else if(a=="show"||a=="hide"){if(D=="Lyr"){var R=e6.$h(x,p);if(R==-1)continue;var jB=x.G[R].p$();if(a=="show"&&jB||a=="hide"&&!jB)continue;
o.data={d:t.Fm,i:R}}else if(D=="Chnl"){o.data={d:t.iq,R7:"fromAction",Z:s}}else if(D=="filterFX"){if(p.v.val!=null)o.data={d:t.Uc,index:p.v.val-1};
o.data={d:t.gh};y=[y[0]]}}else if(a=="rotateEventEnum"){o.c=r.wX;var k=P.Angl.v.val;o.data={d:"rot",YH:[2,5],Z:-k*Math.PI/180}}else if(a=="flip"){o.c=r.wX;
var ab=P.Axis.v.Ornt=="Hrzn",f_=ab?new fz(-1,1):new fz(1,-1);o.data={d:"scl",YH:[[2,6],[22,4,ab?2:3]],Z:f_}}else if(a=="transform"){var fc=1,g8=1,bH=0,cR=0,hr=0,h$=0,gE=0;
if(P.Wdth)fc=P.Wdth.v.val/100;if(P.Hght)g8=P.Hght.v.val/100;if(P.Skew){var d8=P.Skew.v;bH=d8.Hrzn.v.val;
cR=d8.Vrtc.v.val}if(P.Ofst){var hG=P.Ofst.v;h$=hG.Hrzn.v.val;gE=hG.Vrtc.v.val}if(P.Angl)hr=P.Angl.v.val;
var f7=new ae;f7.concat(new ae(fc,fc*Math.tan(cR*Math.PI/180),g8*Math.tan(bH*Math.PI/180),g8,0,0));f7.rotate(-hr*Math.PI/180);
f7.translate(h$,gE);var hX={Qcsa:4,Qcs0:0,Qcs1:2,Qcs2:8,Qcs3:6,Qcs4:1,Qcs5:5,Qcs6:7,Qcs7:3}[P.FTcs.v.QCSt];
if(hX==null)throw P.FTcs.v.QCSt;var p=P.null;if(p&&p.v instanceof Array)p=p.v[0];var R=p?e6.$h(x,p):null;
if(R==-1)R=null;o.c=p&&p.v.keyID=="fsel"?r.Mg:r.mx;o.data={d:"mat",Ac:hX,Z:f7}}else if(D=="Chnl"){o.data={d:t.iq,R7:"fromAction",Z:s}}else if(a=="duplicate")o.data={d:t.Rk,Q_:P.Nm?P.Nm.v:null};
else if(a=="delete"){if(D=="filterFX"){if(p.v.val!=null)o.data={d:t.RC,o8:p.v.val-1};else o.data={d:t.u8}}else o.data={d:t.q_};
y=[y[0]]}else if(a=="align"){if(P.Aply&&P.Aply.v.projection=="Auto"){o.c=r.wX;o.data={d:"auto-align"}}else{o.c=r.G1;
var fB=P.Usng.v.ADSt,U={AdLf:0,AdCH:1,AdRg:2,AdTp:4,AdCV:5,AdBt:6}[fB];if(U==null)throw fB;o.data={d:"algn",Z:U}}}else if(a=="applyLocking"){var e5=P.layerLocking.v,g9;
if(e5.protectTransparency)g9=[[e5.protectTransparency.v],[0]];else if(e5.protectNone)g9=[[!1,!1,!1,!1],[0,1,2,31]];
else{console.log(e5);throw"e"}o.data={d:t.wx,Ur:g9}}if(o.data)m.Y(o);else if(G.data)m.Y(G);else{console.log(s);
alert("Unknown action \""+a+"\"");throw"e"}}};e6.tp=function(s){var m={None:0,Rd:1,Orng:2,Ylw:3,Grn:4,Bl:5,Vlt:6,Gry:7}[s.Clr.v.Clr];
if(m==null)throw s.Clr.v.Clr;return m};e6.$h=function(s,m){var l=1e6,x=0;for(var C=0;C<s.N.length;C++){l=Math.min(l,s.N[C]);
x=Math.max(x,s.N[C])}var a=m.t,P=-1;if(a=="name"){var o=m.v.val,P=-1;for(var C=0;C<s.G.length;C++)if(s.G[C].getName()==o){P=C;
break}}if(a=="Enmr"&&s.N.length!=0)P=s.N[0];if(a=="Enmr"&&m.v.enum=="Frwr")P=x+1;if(a=="Enmr"&&m.v.enum=="Bckw")P=l-1;
if(a=="prop"){if(m.v.keyID=="Bckg")P=0}return P};var eb={};eb.names={brit:[4,0],levl:[4,1],curv:[4,2],expA:[4,3],vibA:[4,4],hue2:[4,5],blnc:[4,6],blwh:[4,7],phfl:[4,8],mixr:[4,9],clrL:[4,10],nvrt:[4,11],post:[4,12],thrs:[4,13],grdm:[4,14],selc:[4,15],rplc:[4,17]};
eb.eo=["expA","clrL","selc"];eb.uy=[[13,1,1],[13,1,3],[13,1,4],[13,1,11],[13,1,5],[13,1,12]];eb.abF=[[13,1,11],[13,1,12],[13,1,3],[13,1,10]];
eb.cP=[[13,1,1],[13,1,4],[13,1,5]];eb.v9={BrgC:"brit",Lvls:"levl",Crvs:"curv",Exps:"expA",vibrance:"vibA",HStr:"hue2",ClrB:"blnc",BanW:"blwh",photoFilter:"phfl",Invr:"nvrt",Pstr:"post",Thrs:"thrs",GrMp:"grdm",SlcC:"selc",ChnM:"mixr",colorLookup:"clrL",rplc:"rplc"};
eb.at=function(){var s=JSON.parse(JSON.stringify(eb.v9));delete s.GrMp;s.GdMp="grdm";return s}();eb.Tg={brit:"brightnessEvent",levl:"levels",curv:"curves",expA:"exposure",vibA:"vibrance",hue2:"hueSaturation",blnc:"colorBalance",blwh:"blackAndWhite",phfl:"photoFilter",mixr:"channelMixer",clrL:"colorLookup",nvrt:"invert",post:"posterization",thrs:"thresholdClassEvent",grdm:"gradientMapEvent",selc:"selectiveColor",rplc:"replaceColor"};
eb.keys={levl:[dV.bt,dV.J5],curv:[dV.bt,dV.Nk],hue2:[dV.bt,dV.sv],nvrt:[dV.bt,dV.ai],blnc:[dV.bt,dV.oz]};
eb.dr=function(s){var m=ib.Xi("mixr");m.Mnch={t:"bool",v:s._Q};function l(x,C){var a={classID:"ChMx"},P={Rd:0,Grn:1,Bl:2,Cnst:4};
for(var o in P)a[o]={t:"UntF",v:{type:"#Prc",val:x[C+P[o]]}};return{t:"Objc",v:a}}if(s._Q)m.Gry=l(s.Z,0);
else{m.Rd=l(s.Z,0);m.Grn=l(s.Z,5);m.Bl=l(s.Z,10)}return m};eb.Aj=function(s){function m(x,a,C){var P={Rd:0,Grn:1,Bl:2,Cnst:4};
for(var o in P)if(x[o])a[C+P[o]]=x[o].v.val}var l={_Q:!1,Z:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]};
if(s.Mnch&&s.Mnch.v)l._Q=!0;if(l._Q)m(s.Gry.v,l.Z,0);else{m(s.Rd.v,l.Z,0);m(s.Grn.v,l.Z,5);m(s.Bl.v,l.Z,10)}return l};
eb.get=function(s){for(var m in eb.names)if(s[m]!=null)return m;return null};eb.vC=function(s,m){var l=eb.Fg,x;
if(s=="brit"){var a=m.Brgh?m.Brgh.v:0,P=m.Cntr?m.Cntr.v:0,o=m.useLegacy?m.useLegacy.v:!1;if(o){var G=a/255,_=1+P/100;
if(_>1)_=1+Math.tan(Math.PI/2*P/101);var j=(1-_)/2,U=L.G0.NY(G,G,G),S=[_,0,0,j,0,_,0,j,0,0,_,j,0,0,0,1],X=L.G0.multiply(U,S),c=new L.KY(256);
for(var C=0;C<256;C++)c.o[C]=C;L.G0.transform(c,c,X);x={type:l.LQ,qp:c.o,O6:c.o,My:c.o,Ka:!1,$K:!1}}else{var y=1024,O=-30+60*(P+100)/200,p=[];
for(var C=0;C<4;C++)p.push(L.so.L4(C/3*255,C/3*255,!0));p[1].v.Hrzn.v=64;p[1].v.Vrtc.v=64-O;p[2].v.Hrzn.v=128+64;
p[2].v.Vrtc.v=128+64+O;p.sort(function(iz,jE){return iz.v.Hrzn.v-jE.v.Hrzn.v});var D=L.so.IS(p,y);function f(iz,y){var p=[],cE=3;
for(var C=0;C<cE+1;C++)p.push(L.so.L4(C/cE*255,C/cE*255,!0));p[1].v.Hrzn.v=130-iz*26;p[1].v.Vrtc.v=130+iz*51;
p[2].v.Hrzn.v=233-iz*48;p[2].v.Vrtc.v=233+iz*10;return L.so.IS(p,y)}var T=f(Math.abs(a)/100,y);if(a<0){var I=[],H=1/y;
for(var C=0;C<y;C++){var b=C*H,R=C;while(T[R]>b&&R>1)R--;I[C]=R*H}T=I}var W=new Uint8Array(y);for(var C=0;
C<y;C++){var J=Math.round((y-1)*T[C]);W[C]=Math.round(255*D[J])}x={type:l.LQ,qp:W,O6:W,My:W,Ka:!1,$K:!1}}}if(s=="levl"){var u=[],e,Q,U,q,Z,E;
for(var C=0;C<4;C++)u.push(gy.qG(m,C));e=-u[0][0]/255;Q=1/(u[0][1]/255-u[0][0]/255);U=L.G0.multiply(L.G0.C2(Q,Q,Q),L.G0.NY(e,e,e));
q=L.G0.C2(1/(u[1][1]/255-u[1][0]/255),1/(u[2][1]/255-u[2][0]/255),1/(u[3][1]/255-u[3][0]/255));Z=L.G0.NY(-u[1][0]/255,-u[2][0]/255,-u[3][0]/255);
E=L.G0.multiply(q,Z);var W=new L.KY(256);for(var C=0;C<256;C++)W.o[C]=W.z[C]=W.S[C]=C;var z=1/(u[0][4]/100),V=1/(u[1][4]/100),Y=1/(u[2][4]/100),d=1/(u[3][4]/100);
L.G0.transform(W,W,E);for(var C=0;C<256;C++){W.o[C]=Math.round(Math.max(0,Math.min(255,255*Math.pow(W.o[C]/255,V))));
W.z[C]=Math.round(Math.max(0,Math.min(255,255*Math.pow(W.z[C]/255,Y))));W.S[C]=Math.round(Math.max(0,Math.min(255,255*Math.pow(W.S[C]/255,d))))}L.G0.transform(W,W,U);
for(var C=0;C<256;C++){W.o[C]=Math.round(Math.max(0,Math.min(255,255*Math.pow(W.o[C]/255,z))));W.z[C]=Math.round(Math.max(0,Math.min(255,255*Math.pow(W.z[C]/255,z))));
W.S[C]=Math.round(Math.max(0,Math.min(255,255*Math.pow(W.S[C]/255,z))))}e=u[0][2]/255;Q=u[0][3]/255-u[0][2]/255;
U=L.G0.multiply(L.G0.NY(e,e,e),L.G0.C2(Q,Q,Q));q=L.G0.C2(u[1][3]/255-u[1][2]/255,u[2][3]/255-u[2][2]/255,u[3][3]/255-u[3][2]/255);
Z=L.G0.NY(u[1][2]/255,u[2][2]/255,u[3][2]/255);E=L.G0.multiply(Z,q);L.G0.transform(W,W,L.G0.multiply(U,E));
x={type:l.LQ,qp:W.o,O6:W.z,My:W.S,Ka:!1,$K:!1}}if(s=="curv"){var w=fx.qG(m,0).length==256?1:0,$=[];if(w==0){var i=L.so.nn(fx.qG(m,0),256);
for(var C=1;C<4;C++){var K=L.so.nn(fx.qG(m,C),256);$.push(L.so.r6(K,i))}}else{var h=[];for(var C=0;C<4;
C++){var F=new Uint8Array(256);h.push(F);var N=fx.qG(m,C);for(var R=0;R<256;R++)F[R]=N[R]}for(var C=1;
C<4;C++)$.push(L.so.r6(h[C],h[0]))}x={type:l.LQ,qp:$[0],O6:$[1],My:$[2],Ka:!1,$K:!1}}if(s=="expA"){var iQ=m.Exps,jB=m.Ofst,k=m.gammaCorrection,ab=iQ?iQ.v:0,f_=jB?jB.v:0,fc=k?k.v:1,W=new Uint8Array(256);
for(var C=0;C<256;C++){var m=C/255,g8=Math.pow(Math.abs(f_),1/(Math.PI/2));if(f_>0){m=Math.max(f_/Math.E,m);
m=m*Math.exp(f_/1.75+ab/Math.PI);m=(1-g8)*m+g8*1}else{m=m*Math.exp(-f_*1.75+ab/Math.PI);m=m+-g8*1.14}m=Math.pow(m,1/fc);
m=Math.max(0,Math.min(1,m));W[C]=Math.round(m*255)}x={type:l.LQ,qp:W,O6:W,My:W,Ka:!1,$K:!1}}if(s=="vibA"){var bH=(m.vibrance?m.vibrance.v:0)/100,cR=(m.Strt?m.Strt.v:0)/100,g8=1+bH*(bH>0?.25:.5),hr=.8+.2/g8;
x={type:l.FY,AV:[bH,cR,hr,g8]}}if(s=="hue2"){var h$=[],gE=[],d8=[],hG=m.Clrz?m.Clrz.v:!1;for(var C=0;
C<256;C++){h$[C]=C/255;gE[C]=0;d8[C]=0}var f7=aX.qG(m,0),hX=eb.wp(f7[1]/100);if(hG){var fB=f7[0]/360;
for(var C=0;C<256;C++){h$[C]=fB;gE[C]=hX}}else{for(var C=0;C<256;C++){var e5=h$[C],g9=gE[C];h$[C]+=f7[0]/360;
for(var R=0;R<6;R++){var cL=aX.qG(m,R+1),bf=cL.Ta,gF=cL.J8,g8=0;for(var iC=1;iC<4;iC++)if(gF[iC]<gF[0])gF[iC]+=360;
var ax=gF[0],e7=gF[1],dO=gF[2],h1=gF[3],hL=e5*360;if(hL<gF[0])hL+=360;var jl=(hL-ax)/(e7-ax),gT=(hL-dO)/(h1-dO);
if(jl<0)g8=0;else if(jl<1)g8=jl;else if(gT<0)g8=1;else if(gT<1)g8=1-gT;else g8=0;var _=eb.wp(bf[1]/100);
h$[C]+=g8*bf[0]/360;gE[C]+=g8*_;d8[C]+=g8*bf[2]/100}}for(var C=0;C<256;C++){gE[C]=(1+gE[C])*(1+hX)-1;
d8[C]=Math.max(-1,Math.min(1,d8[C]))}}var hZ=new Uint8Array(256),j6=new Uint8Array(256),aP=new Uint8Array(256);
for(var C=0;C<256;C++){var h7=h$[C],cR=gE[C],fa=d8[C];if(h7>1)h7--;if(h7<0)h7++;cR=eb.a0G(cR);cR=(1+cR)*.5;
fa=(1+fa)*.5;hZ[C]=Math.round(255*h7);j6[C]=Math.round(255*cR);aP[C]=Math.round(255*fa)}var h4=f7[2]/100,cA=h4<0?-h4:h4,jg=h4<0?0:1;
x={type:l.Hq,anq:hZ,uH:j6,a3a:aP,atW:cA*jg,gE:1-cA,a3k:f7[2]/100,a8P:hG?1:0}}if(s=="nvrt"){var W=new Uint8Array(256);
for(var C=0;C<256;C++)W[C]=255-C;x={type:l.LQ,qp:W,O6:W,My:W,Ka:!1,$K:!1}}if(s=="post"){var cS=m.Lvls.v,W=new Uint8Array(256),g8=cS/255.001,iT=255/(cS-1);
for(var C=0;C<256;C++)W[C]=Math.floor(C*g8)*iT;x={type:l.LQ,qp:W,O6:W,My:W,Ka:!1,$K:!1}}if(s=="grdm"){var cf=m.Grad.v,ir=m.Rvrs,y=1024,bl;
if(cf.Clrs){var gp=L.K.G2(cf.Clrs.v,0,0);bl=L.K.Oj(cf,gp,y,ir?ir.v:!1)}else{bl=L.K.cF(cf,y,ir?ir.v:!1)}var j4=L.B(y),ey=L.B(y),ca=L.B(y);
L.hy(bl,j4,0);L.hy(bl,ey,1);L.hy(bl,ca,2);x={type:l.LQ,qp:j4,O6:ey,My:ca,Ka:!0,$K:!1}}if(s=="selc"){var iu=new Float32Array(9*3*2),jv=m._w,g$=m.Mthd?m.Mthd.v.CrcM=="Absl":!1;
for(var R=0;R<9;R++){var cy=R*6,cK=b7.qG(m,R),cN=cK[0]/100,cJ=cK[1]/100,fb=cK[2]/100,cd=cK[3]/100;if(g$){iu[cy]=iu[cy+1]=iu[cy+2]=1;
iu[cy+3]=cN*(1+cd)+cd;iu[cy+4]=cJ*(1+cd)+cd;iu[cy+5]=fb*(1+cd)+cd}else{iu[cy+0]=(1+cN)*(1+cd);iu[cy+1]=(1+cJ)*(1+cd);
iu[cy+2]=(1+fb)*(1+cd)}}x={type:l.tR,agt:iu}}if(s=="blwh"){var em="Rd Yllw Grn Cyn Bl Mgnt".split(" "),x=[],j9=0,dm=0;
for(var C=0;C<6;C++)x.push(m[em[C]].v);x.push(m.useTint.v,m.tintColor.v);var eq=[];for(var C=0;C<6;C++)eq.push((x[C]-50)/50);
var ie=L.K.Qv(x[7]);ie.o/=255;ie.z/=255;ie.S/=255;var jf=L.Az(ie.o,ie.z,ie.S),fa=L.cG(L.ZS(jf.Cm,1,.5)),i3=jf.zd*jf.yt;
if(fa==.5)j9=dm=.5;else{j9=i3*(.5-fa)/(.5/fa-1);dm=1-i3*(.5-fa)-1/(2*(1-fa));dm/=1-1/(2*(1-fa))}x={type:l.Oc,asT:eq,ce:x[6]?1:0,a7K:jf.Cm,cG:fa,ao8:i3,uz:j9,a8E:dm}}if(s=="blnc"){var u=[],jy=["ShdL","MdtL","HghL"];
for(var C=0;C<3;C++){if(m[jy[C]]==null){u[C]=[0,0,0];continue}var cS=m[jy[C]].v,eg=cS[0].v/100,a$=cS[1].v/100,cg=cS[2].v/100,gt=m.PrsL==null||m.PrsL.v?(Math.min(eg,a$,cg)+Math.max(eg,a$,cg))/2:0;
u[C]=[eg-gt,a$-gt,cg-gt]}var $=[L.B(256),L.B(256),L.B(256)];for(var R=0;R<3;R++)for(var C=0;C<256;C++){var b=C*(1/255),i2=0,O=0,cZ=0;
O=u[2][R];cZ=Math.abs(O);if(O<0)i2=Math.pow(b,Math.SQRT2);else i2=1.63*(Math.pow(b+.04,.5)-.2);b=cZ*i2+(1-cZ)*b;
O=u[1][R];cZ=Math.abs(O);if(O<0)i2=Math.pow(b,2);else i2=Math.min(2.35*(Math.pow(b+.09,.5)-.3),Math.pow(b,1/2));
b=cZ*i2+(1-cZ)*b;O=u[0][R];cZ=Math.abs(O);if(O<0)i2=b<.4?0:Math.pow((b-.4)/.6,Math.SQRT2);else i2=Math.pow(b,Math.SQRT2/2);
b=cZ*i2+(1-cZ)*b;b=Math.max(0,Math.min(1,b));$[R][C]=Math.round(b*255)}x={type:l.LQ,qp:$[0],O6:$[1],My:$[2],Ka:!1,$K:!1}}if(s=="phfl"){var g5=L.K.Qv(m.Clr.v),ip=[g5.o/255,g5.z/255,g5.S/255],db=m.Dnst.v/100,$=[L.B(256),L.B(256),L.B(256)];
for(var R=0;R<3;R++)for(var C=0;C<256;C++){var b=C*(1/255),eS=b*ip[R];eS=Math.max(0,Math.min(1,eS));
b=db*eS+(1-db)*b;$[R][C]=Math.round(b*255)}x={type:l.LQ,qp:$[0],O6:$[1],My:$[2],Ka:!1,$K:m.PrsL.v}}if(s=="thrs"){var W=L.B(256);
for(var C=m.Lvl.v;C<256;C++)W[C]=255;x={type:l.LQ,qp:W,O6:W,My:W,Ka:!0,$K:!1}}if(s=="mixr"){var a1=eb.Aj(m),X=[];
for(var C=0;C<a1.Z.length;C++)if(C%5!=3)X.push(a1.Z[C]/100);if(a1._Q){for(var im=1;im<3;im++)for(var b=0;
b<4;b++)X[im*4+b]=X[b]}x={type:l.qM,pc:X}}if(s=="rplc"){var e3=m.Mnm.v,gu=m.Mxm.v;x={type:l.mF,ap:[e3.Lmnc.v,e3.A.v,e3.B.v],Ot:[gu.Lmnc.v,gu.A.v,gu.B.v],shift:[m.H.v/360,m.Strt.v/100,m.Lght.v/100],nS:m.Fzns.v/150}}if(s=="clrL"&&m.profile){var f3=new Uint8Array(m.profile.v),jw=ICC.R(f3.buffer),dE=[],d9=17,dE=ICC.U.sampleLUT(jw,d9);
x={type:l.Eh,uN:ICC.U.rgba8LUT(dE,d9),ajU:dE,Vx:d9}}return x};eb.FJ=function(s,m){var l=-1;if(s!="levl"||m==null)l=-1;
else if(m.Auto)l=0;else if(m.AuCo)l=1;else if(m.autoBlackWhite)l=2;return l};eb.Fg={LQ:0,Hq:1,FY:2,tR:3,Oc:4,qM:5,mF:6,Eh:7};
eb.wp=function(s){if(s<0)return s;return Math.pow(Math.tan(Math.PI/2*s),1.3)};eb.a0G=function(s){if(s<0)return s;
s=Math.pow(s,1/1.3);return Math.atan2(s,1)/(Math.PI/2)};eb._E=function(s,m,l,x){var a=eb.Fg,P=Date.now();
if(M.wR&&x.k()>300*300&&s.type!=a.LQ&&s.type!=a.Eh){x=x.clone();x.x=x.y=0;var o=M.OI(0,x.e,x.l);o.set(m);
M.C8(o,x);o._y(x);eb.Pu(s,o.qQ,x);o.get(l);return}if(s.type==a.Eh){var G=s.ajU,_=s.Vx;ICC.U.applyLUT(G,_,m,l);
var j=m.length;for(var C=0;C<j;C+=4)l[C+3]=m[C+3]}if(s.type==a.qM)L.G0.IR(m,l,s.pc);if(s.type==a.Oc){var U=s.ao8,S=s.cG,X=s.uz,c=s.a8E,j=m.length;
for(var C=0;C<j;C+=4){var x=m[C]*(1/255),y=m[C+1]*(1/255),O=m[C+2]*(1/255),p=L.AR(x,y,O),D=0;for(var f=0;
f<6;f++)D+=Math.min(1,1.7*(1-p.b_))*p.zd*s.asT[f]*eb.C3(p.Cm,f*(1/6));var T=Math.max(0,Math.min(1,p.b_*(1+D)));
if(s.ce==1){var I=0;if(T<X)I=T*(.5/S);else if(T<c)I=T+U*(.5-S);else I=1-(1-T)*.5/(1-S);p.Cm=s.a7K;p.zd=Math.min(1,U+3*U*Math.abs(T-.5*(X+c)));
p.b_=I}else{p.Cm=0;p.zd=0;p.b_=T}var H=L.ZS(p.Cm,p.zd,p.b_);l[C]=Math.round(H.o*255);l[C+1]=Math.round(H.z*255);
l[C+2]=Math.round(H.S*255)}}if(s.type==a.tR){var b=s.agt,j=m.length,R=1/255;for(var C=0;C<j;C+=4){var x=m[C]*R,y=m[C+1]*R,O=m[C+2]*R,p=L.AR(x,y,O),W=Math.max(x,Math.max(y,O)),J=Math.min(x,Math.min(y,O)),u=1-x,e=1-y,Q=1-O,q=0,Z=0,E=0;
for(var f=0;f<9;f++){var z=f*6,w=0;if(b[z]==1&&b[z+1]==1&&b[z+2]==1&&b[z+3]==0&&b[z+4]==0&&b[z+5]==0)continue;
var V=u*b[z]+b[z+3],Y=e*b[z+1]+b[z+4],d=Q*b[z+2]+b[z+5];if(f<6)w=eb.C3(p.Cm,f*(1/6))*p.zd*2*Math.min(p.b_,1-p.b_);
else if(f==6)w=Math.max(0,J-.5)*2;else if(f==7)w=1-(Math.abs(W-.5)+Math.abs(J-.5));else w=Math.max(0,.5-W)*2;
q+=(Math.max(0,Math.min(1,V))-u)*w;Z+=(Math.max(0,Math.min(1,Y))-e)*w;E+=(Math.max(0,Math.min(1,d))-Q)*w}u=Math.max(0,Math.min(1,u+q));
e=Math.max(0,Math.min(1,e+Z));Q=Math.max(0,Math.min(1,Q+E));x=1-u;y=1-e;O=1-Q;l[C]=Math.round(x*255);
l[C+1]=Math.round(y*255);l[C+2]=Math.round(O*255)}}if(s.type==a.LQ){L.a8C(m,l,s.qp,s.O6,s.My,s.Ka,s.$K)}if(s.type==a.Hq){var A=new Uint32Array(m.buffer),$=new Uint32Array(l.buffer),j=A.length;
if(eb.$G==null){eb.$G=new Float64Array(256);for(var C=0;C<256;C++)eb.$G[C]=eb.wp(-1+2*C/255)}var i=eb.$G;
for(var C=0;C<j;C++){var K=A[C],x=(K&255)*(1/255),y=(K>>>8&255)*(1/255),O=(K>>>16&255)*(1/255),h=K>>>24,F=Math.min(x,y,O),N=Math.max(x,y,O),iQ=0,jB=0,k=0;
iQ=L.AR(x,y,O).Cm;var ab=~~(iQ*255+.5),f_=s.anq[ab]*(1/255),fc=s.uH[ab]*(1/255)*2-1,g8=s.a3a[ab]*(1/255)*2-1,D=-g8,bH=F;
if(0<g8){D=g8;bH=N}var cR=s.atW+s.gE*D*bH,hr=s.gE*(1-D);x=cR+hr*x;y=cR+hr*y;O=cR+hr*O;N=Math.max(x,y,O);
F=Math.min(x,y,O);k=(N+F)*.5;if(N!=F){var h$=N-F;jB=k>.5?h$/(2-(N+F)):h$/(N+F)}var gE=fc;if(s.a8P==0){fc=i[Math.floor((1+fc)*127.5)];
gE=Math.min(jB*(1+fc),1)}var H=L.ZS(f_,gE,k);x=H.o;y=H.z;O=H.S;$[C]=h<<24|O*255<<16|y*255<<8|x*255}}if(s.type==a.mF){L.qv(m,l);
var A=new Uint32Array(m.buffer),$=new Uint32Array(l.buffer),j=A.length,d8=s.nS,hG=1/d8,f7={J5:s.ap[0],lz:s.ap[1],S:s.ap[2]},hX={J5:s.Ot[0],lz:s.Ot[1],S:s.Ot[2]};
for(var C=0;C<j;C++){var K=A[C],fB=K&255,e5=K>>>8&255,g9=K>>>16&255,x=fB*(1/255),y=e5*(1/255),O=g9*(1/255),h=K>>>24,cL=L._g(fB,e5,g9),bf=L.ll(cL,f7,hX,d8,hG);
if(bf==0)continue;var p=L.AR(x,y,O),f_=2+p.Cm+s.shift[0];p.Cm=f_-~~f_;p.zd=Math.max(0,Math.min(1,p.zd+s.shift[1]));
p.b_=Math.max(0,Math.min(1,p.b_+s.shift[2]));var H=L.ZS(p.Cm,p.zd,p.b_);x=(1-bf)*x+bf*H.o;y=(1-bf)*y+bf*H.z;
O=(1-bf)*O+bf*H.S;$[C]=h<<24|O*255<<16|y*255<<8|x*255}}if(s.type==a.FY){var A=new Uint32Array(m.buffer),$=new Uint32Array(l.buffer),j=A.length,gF=s.AV[0],iC=s.AV[1],ax=s.AV[2],D=s.AV[3],e7=L.G0.XS([.299,.587,.114,-.147,-.289,.436,.615,-.515,-.1]),dO=L.G0.ms(e7),h1=2.4;
console.log(dO);function _(j6){return Math.max(0,Math.min(1,j6))}function hL(j6){return Math.pow(j6,h1)}function jl(j6){return Math.pow(j6,1/h1)}function gT(x,y,O,j6){x=hL(x);
y=hL(y);O=hL(O);var aP=L.G0.mC(e7,[x,y,O,1]);aP[0]*=ax;aP[1]*=D;aP[2]*=D;var H=L.G0.mC(dO,aP);H[0]=jl(_(H[0]));
H[1]=jl(_(H[1]));H[2]=jl(_(H[2]));return H}for(var C=0;C<j;C++){var K=A[C],x=(K&255)*(1/255),y=(K>>>8&255)*(1/255),O=(K>>>16&255)*(1/255),h=K>>>24,H=gT(x,y,O,gF);
x=H[0];y=H[1];O=H[2];var hZ=L.AR(x,y,O);hZ.zd=Math.max(0,Math.min(1,hZ.zd*(1+iC)));H=L.ZS(hZ.Cm,hZ.zd,hZ.b_);
x=H.o;y=H.z;O=H.S;$[C]=h<<24|O*255<<16|y*255<<8|x*255}}};eb.Pu=function(s,m,l){M.AK.Pu(s,m)};eb.C3=function(s,m){var l=L.NO(m,s)*6;
return Math.max(0,Math.min(1,l<0?1+l:1-l))};var ib={};ib.HK=function(s){var m=s.filterID.v;return m>16777215?g.apz(m):s.Fltr.v.classID};
ib.ta=[{ts:"GEfc"},{ts:"LnCr"},{ts:"LqFy",Bx:!0},{ii:"3D",Oh:["lightFilterGradient"]},{ii:[24,2],Oh:"Avrg,Blr ,BlrM,boxblur,GsnB,Bokh,MtnB,RdlB,surfaceBlur".split(",")},{ii:[24,4],Oh:"Dspl,Pnch,Plr ,Rple,Shr ,Sphr,Twrl,Wave,ZgZg".split(",")},{ii:[24,6],Oh:["AdNs","Dspc","DstS","Mdn ","denoise"]},{ii:[24,8],Oh:"ClrH,Crst,Frgm,Mztn,Msc ,Pntl".split(",")},{ii:[24,10],Oh:["Flam","Clds","DfrC","Fbrs","LnsF"]},{ii:[24,12],Oh:["Shrp","ShrE","ShrM","smartSharpen","UnsM"]},{ii:[24,14],Oh:"Dfs ,Embs,FndE,oilPaint,Slrz,TrcC,Wnd ".split(",")},{ii:[24,16],Oh:"HghP,HsbP,Mxm ,Mnm ,Ofst,Rept,Ctoa,Dthr".split(",")},{ii:"Fourier",Oh:["dDFT","iDFT"]}];
ib.Tg={LqFy:"LqFy",Avrg:"Avrg","Blr ":"blurEvent",BlrM:"blurMethod",boxblur:"boxblur",GsnB:"gaussianBlur",MtnB:"motionBlur",RdlB:"radialBlur",surfaceBlur:"surfaceBlur",lightFilterGradient:"lightFilterGradient",adaptCorrect:"adaptCorrect",Pnch:"pinch","Plr ":"polar",Rple:"ripple","Shr ":"shear",Sphr:"spherize",Twrl:"twirl",Wave:"wave",AdNs:"addNoise",DstS:"dustAndScratches","Mdn ":"median",ClrH:"colorHalftone",Crst:"",Frgm:"",Mztn:"mezzotint","Msc ":"mosaic",Pntl:"",Flam:"",Clds:"clouds",DfrC:"differenceClouds",LnsF:"LnsF",Shrp:"sharpen",ShrM:"sharpenMore",smartSharpen:"smartSharpen",UnsM:"unsharpMask",FndE:"findEdges",oilPaint:"oilPaint",HghP:"highPass","Mxm ":"maximum","Mnm ":"minimum",Ofst:"offset"};
ib.VT={AddNoise:"AdNs",Average:"Avrg",Blur:"Blr ",BlurMore:"BlrM",Clouds:"Clds",DifferenceClouds:"DfrC",DustAndScratches:"DstS",GaussianBlur:"GsnB",HighPass:"HghP",Maximum:"Mxm ",Minimum:"Mnm ",MotionBlur:"MtnB",Offset:"Ofst",Pinch:"Pnch",PolarCoordinates:"Plr ",Ripple:"Rple",Sharpen:"Shrp",SharpenMore:"ShrM",Twirl:"Twrl",UnsharpMask:"UnsM"};
ib.C={rigidTransform:r.tn};ib.names={lightFilterGradient:"Normal Map",rigidTransform:[10,46],LnCr:[24,1,1,0],LqFy:[24,1,0,0],GEfc:[24,0],Avrg:[24,3,0],"Blr ":[24,3,1],BlrM:[24,3,2],boxblur:[24,3,3],GsnB:[24,3,4],Bokh:[24,3,5],MtnB:[24,3,6],RdlB:[24,3,7],surfaceBlur:[24,3,10],Dspl:[24,5,0],Pnch:[24,5,1],"Plr ":[24,5,2],Rple:[24,5,3],"Shr ":[24,5,4],Sphr:[24,5,5],Twrl:[24,1,0,1,3],Wave:[24,5,6],ZgZg:"ZigZag",AdNs:[24,7,0],Dspc:[24,7,1],DstS:[24,7,2],"Mdn ":[24,7,3],denoise:"Reduce Noise",ClrH:[24,9,0],Crst:[24,9,1],Frgm:[24,9,3],Mztn:[24,9,4],"Msc ":[24,9,5],Pntl:[24,9,6],Flam:"Flame",Clds:[24,11,0],DfrC:[24,11,1],Fbrs:"Fibers",LnsF:[24,11,2],Shrp:[24,13,0],ShrE:[24,13,1],ShrM:[24,13,2],smartSharpen:[24,13,3],UnsM:[24,13,4],"Dfs ":[24,15,0],Embs:[24,15,1],FndE:[24,15,3],oilPaint:[24,15,4],Slrz:"Solarize",TrcC:"Trace Contour","Wnd ":"Wind",HghP:[24,17,1],HsbP:"HSB/HSL","Mxm ":[24,17,2],"Mnm ":[24,17,3],Ofst:[24,17,4],Rept:[24,17,5],Ctoa:"Color to Alpha",Dthr:[12,23,3],dDFT:"Fourier Transform",iDFT:"Inverse Fourier Transform",adaptCorrect:["VAR0/VAR1",[19,6,0],[19,6,2]]};
ib.Xi=function(s){var m=null;if(s=="GEfc")m={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:ew.Xi("GlwE")}]}};
if(s=="LqFy"){var l={h_:5,Cm:5,map:new Float32Array(5*5*2)},x=new Uint8Array(hh.cs(l)),a=[];for(var C=0;
C<x.length;C++)a.push(x[C]);m={__name:"Liquify",classID:"LqFy",LqMe:{t:"tdta",v:a}}}if(s=="rigidTransform"){m={__name:"Puppet Warp",classID:"rigidTransform",null:{t:"obj ",v:[{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Trgt"}}]},rigidType:{t:"bool",v:!0},puppetShapeList:{t:"VlLs",v:[]},PuX0:{t:"doub",v:0},PuX1:{t:"doub",v:1e3},PuX2:{t:"doub",v:1e3},PuX3:{t:"doub",v:0},PuY0:{t:"doub",v:0},PuY1:{t:"doub",v:0},PuY2:{t:"doub",v:1e3},PuY3:{t:"doub",v:1e3}}}if(s=="LnCr")m={__name:"Lens Correction",classID:"LnCr",LnAg:{t:"bool",v:!0},LnAc:{t:"bool",v:!1},LnAv:{t:"bool",v:!1},LnAs:{t:"bool",v:!1},LnIp:{t:"bool",v:!1},LnFo:{t:"doub",v:0},LnPr:{t:"TEXT",v:""},LnIa:{t:"doub",v:0},LnI0:{t:"doub",v:0},LnI1:{t:"doub",v:0},LnI2:{t:"doub",v:0},LnI3:{t:"doub",v:1},LnRa:{t:"doub",v:0},LnVp:{t:"doub",v:0},LnHp:{t:"doub",v:0},LnSi:{t:"doub",v:100},LnFt:{t:"long",v:2},LnSb:{t:"doub",v:0},LnSt:{t:"long",v:50},LnRc:{t:"doub",v:0},LnGm:{t:"doub",v:0},LnBy:{t:"doub",v:0},LnNa:{t:"long",v:64},LnIh:{t:"long",v:0},LnIv:{t:"long",v:0},LnIs:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:127},Grn:{t:"doub",v:127},Bl:{t:"doub",v:127}}},LnNm:{t:"bool",v:!1}};
if(s=="adaptCorrect")m={__name:"Shadow/Highlight",classID:"adaptCorrect",sdwM:{t:"Objc",v:{__name:"Parameters",classID:"adaptCorrectTones",Amnt:{t:"UntF",v:{type:"#Prc",val:50}},Wdth:{t:"UntF",v:{type:"#Prc",val:25}},Rds:{t:"long",v:12}}},hglM:{t:"Objc",v:{__name:"Parameters",classID:"adaptCorrectTones",Amnt:{t:"UntF",v:{type:"#Prc",val:0}},Wdth:{t:"UntF",v:{type:"#Prc",val:0}},Rds:{t:"long",v:0}}},BlcC:{t:"doub",v:0},WhtC:{t:"doub",v:0},Cntr:{t:"long",v:0},ClrC:{t:"long",v:0}};
if(s=="Dfs ")m={__name:"Diffuse",classID:"Dfs",Md:{t:"enum",v:{DfsM:"Nrml"}},FlRs:{t:"long",v:14061024}};
if(s=="Fbrs")m={__name:"Fibers",classID:"Fbrs",Vrnc:{t:"long",v:10},Strg:{t:"long",v:1},RndS:{t:"long",v:8438429}};
if(s=="Embs")m={__name:"Emboss",classID:"Embs",Angl:{t:"long",v:45},Hght:{t:"long",v:5},Amnt:{t:"long",v:100}};
if(s=="oilPaint")m={__name:"Oil Paint",classID:"oilPaint",lightingOn:{t:"bool",v:!0},stylization:{t:"doub",v:3},brushScale:{t:"doub",v:1},microBrush:{t:"doub",v:0},LghD:{t:"long",v:45},specularity:{t:"doub",v:1},cleanliness:{t:"doub",v:2}};
if(s=="TrcC")m={__name:"Trace Contour",classID:"TrcC",Lvl:{t:"long",v:128},Edg:{t:"enum",v:{CntE:"Lwr"}}};
if(s=="Wnd ")m={__name:"Wind",classID:"Wnd",WndM:{t:"enum",v:{WndM:"Wnd"}},Drct:{t:"enum",v:{Drct:"Rght"}}};
if(s=="lightFilterGradient")m={__name:"Generate Normals",classID:"lightFilterGradient",blur:{t:"doub",v:0},textureScale:{t:"doub",v:1},Scl:{t:"doub",v:1},Dtl:{t:"VlLs",v:[{t:"doub",v:1},{t:"doub",v:1},{t:"doub",v:1}]}};
if(s=="boxblur")m={__name:"Box Blur",classID:"boxblur",Rds:{t:"UntF",v:{type:"#Pxl",val:15}}};if(s=="GsnB")m={__name:"Gaussian Blur",classID:"GsnB",Rds:{t:"UntF",v:{type:"#Pxl",val:7.2}}};
if(s=="Bokh")m={__name:"Lens Blur",classID:"Bokh",BkDi:{t:"enum",v:{BtDi:"BeIn"}},BkDp:{t:"long",v:0},BkDs:{t:"bool",v:!1},BkIs:{t:"enum",v:{BtIs:"BeS6"}},BkIb:{t:"doub",v:30},BkIc:{t:"long",v:0},BkIr:{t:"long",v:0},BkSb:{t:"doub",v:0},BkSt:{t:"long",v:255},BkNa:{t:"long",v:0},BkNt:{t:"enum",v:{BtNt:"BeNu"}},BkNm:{t:"bool",v:!1}};
if(s=="MtnB")m={__name:"Motion Blur",classID:"MtnB",Angl:{t:"long",v:0},Dstn:{t:"UntF",v:{type:"#Pxl",val:4}}};
if(s=="RdlB")m={__name:"Radial Blur",classID:"RdlB",Amnt:{t:"long",v:10},BlrM:{t:"enum",v:{BlrM:"Spn"}},BlrQ:{t:"enum",v:{BlrQ:"Gd"}},Cntr:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:.5},Vrtc:{t:"doub",v:.5}}}};
if(s=="surfaceBlur")m={__name:"Surface Blur",classID:"surfaceBlur",Rds:{t:"UntF",v:{type:"#Pxl",val:15}},Thsh:{t:"long",v:15}};
if(s=="denoise")m={__name:"Reduce Noise",classID:"denoise",ClNs:{t:"UntF",v:{type:"#Prc",val:29}},Shrp:{t:"UntF",v:{type:"#Prc",val:0}},removeJPEGArtifact:{t:"bool",v:!1},channelDenoise:{t:"VlLs",v:[{t:"Objc",v:{classID:"channelDenoiseParams",Chnl:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:"Cmps"}}]},Amnt:{t:"long",v:5},EdgF:{t:"long",v:0}}},{t:"Objc",v:{classID:"channelDenoiseParams",Chnl:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:"Rd"}}]},Amnt:{t:"long",v:0}}},{t:"Objc",v:{classID:"channelDenoiseParams",Chnl:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:"Grn"}}]},Amnt:{t:"long",v:0}}},{t:"Objc",v:{classID:"channelDenoiseParams",Chnl:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:"Bl"}}]},Amnt:{t:"long",v:0}}}]},preset:{t:"TEXT",v:"Default"}};
if(s=="Dspl")m={__name:"Displace",classID:"Dspl",HrzS:{t:"long",v:10},VrtS:{t:"long",v:10},DspM:{t:"enum",v:{DspM:"StrF"}},UndA:{t:"enum",v:{UndA:"RptE"}},DspF:{t:"Pth ",v:{sig:"txtu",pth:"file.psd\0"}}};
if(s=="Pnch")m={__name:"Pinch",classID:"Pnch",Amnt:{t:"long",v:-100}};if(s=="Plr ")m={__name:"Polar Coordinates",classID:"Plr",Cnvr:{t:"enum",v:{Cnvr:"RctP"}}};
if(s=="Rple")m={__name:"Ripple",classID:"Rple",Amnt:{t:"long",v:999},RplS:{t:"enum",v:{RplS:"Mdm"}}};
if(s=="Shr ")m={__name:"Shear",classID:"Shr",ShrP:{t:"VlLs",v:[{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:0},Vrtc:{t:"doub",v:1}}},{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:0},Vrtc:{t:"doub",v:128}}}]},UndA:{t:"enum",v:{UndA:"WrpA"}},ShrS:{t:"long",v:0},ShrE:{t:"long",v:1}};
if(s=="Sphr")m={__name:"Spherize",classID:"Sphr",Amnt:{t:"long",v:100},SphM:{t:"enum",v:{SphM:"Nrml"}}};
if(s=="Twrl")m={__name:"Twirl",classID:"Twrl",Angl:{t:"long",v:90}};if(s=="Wave")m={__name:"Wave",classID:"Wave",Wvtp:{t:"enum",v:{Wvtp:"WvSn"}},NmbG:{t:"long",v:1},WLMn:{t:"long",v:101},WLMx:{t:"long",v:102},AmMn:{t:"long",v:36},AmMx:{t:"long",v:37},SclH:{t:"long",v:100},SclV:{t:"long",v:100},UndA:{t:"enum",v:{UndA:"WrpA"}},RndS:{t:"long",v:743887}};
if(s=="ZgZg")m={__name:"ZigZag",classID:"ZgZg",Amnt:{t:"long",v:50},NmbR:{t:"long",v:10},ZZTy:{t:"enum",v:{ZZTy:"ArnC"}}};
if(s=="AdNs")m={__name:"Add Noise",classID:"AdNs",Dstr:{t:"enum",v:{Dstr:"Unfr"}},Nose:{t:"UntF",v:{type:"#Prc",val:20}},Mnch:{t:"bool",v:!1},FlRs:{t:"long",v:100691320}};
if(s=="DstS")m={__name:"Dust & Scratches",classID:"DstS",Rds:{t:"long",v:2},Thsh:{t:"long",v:26}};if(s=="Mdn ")m={__name:"Median",classID:"Mdn",Rds:{t:"UntF",v:{type:"#Pxl",val:7}}};
if(s=="ClrH")m={__name:"Color Halftone",classID:"ClrH",Rds:{t:"long",v:8},Ang1:{t:"long",v:10},Ang2:{t:"long",v:40},Ang3:{t:"long",v:70},Ang4:{t:"long",v:80}};
if(s=="Crst")m={__name:"Crystallize",classID:"Crst",ClSz:{t:"long",v:10},FlRs:{t:"long",v:1554929224}};
if(s=="Mztn")m={__name:"Mezzotint",classID:"Mztn",MztT:{t:"enum",v:{MztT:"FnDt"}},FlRs:{t:"long",v:204994187}};
if(s=="Msc ")m={__name:"Mosaic",classID:"Msc",ClSz:{t:"UntF",v:{type:"#Pxl",val:12}}};if(s=="Pntl")m={__name:"Pointillize",classID:"Pntl",ClSz:{t:"long",v:10},FlRs:{t:"long",v:1554929236}};
if(s=="LnsF")m={__name:"Lens Flare",classID:"LnsF",Brgh:{t:"long",v:100},FlrC:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:.19140625},Vrtc:{t:"doub",v:.185628741979599}}},Lns:{t:"enum",v:{Lns:"Zm"}}};
if(s=="Dthr")m={__name:"Dither",classID:"Dthr",Plte:{t:"long",v:0}};if(s=="Adobe Camera Raw Filter")m={__name:"Camera Raw Filter",classID:"Adobe Camera Raw Filter",CMod:{t:"TEXT",v:"Filter"},Sett:{t:"enum",v:{Sett:"Cst"}},WBal:{t:"enum",v:{WBal:"AsSh"}},Temp:{t:"long",v:0},Tint:{t:"long",v:0},CtoG:{t:"bool",v:!1},Strt:{t:"long",v:0},Shrp:{t:"long",v:0},LNR:{t:"long",v:0},CNR:{t:"long",v:0},VigA:{t:"long",v:0},BlkB:{t:"long",v:0},RHue:{t:"long",v:0},RSat:{t:"long",v:0},GHue:{t:"long",v:0},GSat:{t:"long",v:0},BHue:{t:"long",v:0},BSat:{t:"long",v:0},Vibr:{t:"long",v:0},HA_R:{t:"long",v:0},HA_O:{t:"long",v:0},HA_Y:{t:"long",v:0},HA_G:{t:"long",v:0},HA_A:{t:"long",v:0},HA_B:{t:"long",v:0},HA_P:{t:"long",v:0},HA_M:{t:"long",v:0},SA_R:{t:"long",v:0},SA_O:{t:"long",v:0},SA_Y:{t:"long",v:0},SA_G:{t:"long",v:0},SA_A:{t:"long",v:0},SA_B:{t:"long",v:0},SA_P:{t:"long",v:0},SA_M:{t:"long",v:0},LA_R:{t:"long",v:0},LA_O:{t:"long",v:0},LA_Y:{t:"long",v:0},LA_G:{t:"long",v:0},LA_A:{t:"long",v:0},LA_B:{t:"long",v:0},LA_P:{t:"long",v:0},LA_M:{t:"long",v:0},STSH:{t:"long",v:0},STSS:{t:"long",v:0},STHH:{t:"long",v:0},STHS:{t:"long",v:0},STB:{t:"long",v:0},PC_S:{t:"long",v:0},PC_D:{t:"long",v:0},PC_L:{t:"long",v:0},PC_H:{t:"long",v:0},PC_1:{t:"long",v:25},PC_2:{t:"long",v:50},PC_3:{t:"long",v:75},ShpR:{t:"doub",v:1},ShpD:{t:"long",v:25},ShpM:{t:"long",v:0},PCVA:{t:"long",v:0},GRNA:{t:"long",v:0},LPEn:{t:"long",v:0},MDis:{t:"long",v:0},PerV:{t:"long",v:0},PerH:{t:"long",v:0},PerR:{t:"doub",v:0},PerS:{t:"long",v:100},PerA:{t:"long",v:0},PerU:{t:"long",v:0},PerX:{t:"doub",v:0},PerY:{t:"doub",v:0},AuCA:{t:"long",v:0},Ex12:{t:"doub",v:0},Cr12:{t:"long",v:0},Hi12:{t:"long",v:0},Sh12:{t:"long",v:0},Wh12:{t:"long",v:0},Bk12:{t:"long",v:0},Cl12:{t:"long",v:0},DfPA:{t:"long",v:0},DPHL:{t:"long",v:30},DPHH:{t:"long",v:70},DfGA:{t:"long",v:0},DPGL:{t:"long",v:40},DPGH:{t:"long",v:60},Dhze:{t:"long",v:0},TMMs:{t:"long",v:0},Crv:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:255},{t:"long",v:255}]},CrvR:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:255},{t:"long",v:255}]},CrvG:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:255},{t:"long",v:255}]},CrvB:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:255},{t:"long",v:255}]},CamP:{t:"TEXT",v:"Embedded"},CP_D:{t:"TEXT",v:"54650A341B5B5CCAE8442D0B43A92BCE"},PrVe:{t:"long",v:184549376},Rtch:{t:"TEXT",v:""},REye:{t:"TEXT",v:""},LCs:{t:"TEXT",v:""},Look:{t:"TEXT",v:""},Pset:{t:"TEXT",v:""}};
if(s=="smartSharpen")m={__name:"Smart Sharpen",classID:"smartSharpen",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},useLegacy:{t:"bool",v:!1},Amnt:{t:"UntF",v:{type:"#Prc",val:150}},Rds:{t:"UntF",v:{type:"#Pxl",val:1}},noiseReduction:{t:"UntF",v:{type:"#Prc",val:0}},blur:{t:"enum",v:{blurType:"GsnB"}}};
if(s=="UnsM")m={__name:"Unsharp Mask",classID:"UnsM",Amnt:{t:"UntF",v:{type:"#Prc",val:142}},Rds:{t:"UntF",v:{type:"#Pxl",val:4.5}},Thsh:{t:"long",v:0}};
if(s=="HghP")m={__name:"High Pass",classID:"HghP",Rds:{t:"UntF",v:{type:"#Pxl",val:3}}};if(s=="HsbP")m={__name:"HSB/HSL",classID:"HsbP",Inpt:{t:"enum",v:{ClrS:"RGBC"}},Otpt:{t:"enum",v:{ClrS:"HSBl"}}};
if(s=="Mxm ")m={__name:"Maximum",classID:"Mxm",Rds:{t:"UntF",v:{type:"#Pxl",val:8}},preserveShape:{t:"enum",v:{preserveShape:"squareness"}}};
if(s=="Mnm ")m={__name:"Minimum",classID:"Mnm",Rds:{t:"UntF",v:{type:"#Pxl",val:8}},preserveShape:{t:"enum",v:{preserveShape:"squareness"}}};
if(s=="Ofst")m={__name:"Offset",classID:"Ofst",Hrzn:{t:"long",v:144},Vrtc:{t:"long",v:278},Fl:{t:"enum",v:{FlMd:"Wrp"}}};
if(s=="Rept")m={__name:"Repeat",classID:"Rept",Scl:{v:{type:"#Prc",val:100},t:"UntF"},Rsft:{v:{type:"#Prc",val:0},t:"UntF"},SpcX:{v:{type:"#Prc",val:0},t:"UntF"},SpcY:{v:{type:"#Prc",val:0},t:"UntF"},SpcC:{t:"bool",v:!1},Angl:{t:"long",v:0}};
if(s=="Flam")m={__name:"Repeat",classID:"Flam",Type:{t:"long",v:0},Leng:{t:"long",v:140},RndL:{t:"bool",v:!1},Widt:{t:"long",v:100},Angl:{t:"long",v:0},Intr:{t:"long",v:100},Adpt:{t:"bool",v:!1},Qual:{t:"long",v:1},Clr:{v:{classID:"RGBC",Rd:{v:255,t:"doub"},Grn:{v:110,t:"doub"},Bl:{v:28,t:"doub"}},t:"Objc"},Turb:{t:"long",v:50},Jag:{t:"long",v:0},Opct:{v:{type:"#Prc",val:25},t:"UntF"},Lins:{t:"long",v:10},Botm:{t:"long",v:30},Styl:{t:"long",v:0},Shap:{t:"long",v:0},RnSh:{t:"bool",v:!1},Arng:{t:"long",v:18}};
if(s=="Ctoa")m={__name:"Color to Alpha",classID:"Ctoa",Trsp:{v:{type:"#Prc",val:0},t:"UntF"},Opct:{v:{type:"#Prc",val:100},t:"UntF"},Clr:{v:{classID:"RGBC",Rd:{v:0,t:"doub"},Grn:{v:0,t:"doub"},Bl:{v:0,t:"doub"}},t:"Objc"}};
if(s=="brit")m={__name:"Brightness/Contrast",classID:"BrgC",Brgh:{t:"long",v:0},Cntr:{t:"long",v:0},useLegacy:{t:"bool",v:!1}};
if(s=="levl")m={__name:"Levels",classID:"Lvls",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Adjs:{t:"VlLs",v:[]}};
if(s=="curv")m={__name:"Curves",classID:"Crvs",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Adjs:{t:"VlLs",v:[]}};
if(s=="expA")m={__name:"Exposure",classID:"Exps",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Exps:{t:"doub",v:0},Ofst:{t:"doub",v:0},gammaCorrection:{t:"doub",v:1}};
if(s=="vibA")m={__name:"Vibrance",classID:"vibrance",vibrance:{t:"long",v:0},Strt:{t:"long",v:0}};if(s=="hue2")m={__name:"Hue/Saturation",classID:"HStr",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Clrz:{t:"bool",v:!1},Adjs:{t:"VlLs",v:[]}};
if(s=="blnc")m={__name:"Color Balance",classID:"ClrB",ShdL:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:0}]},MdtL:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:0}]},HghL:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:0}]},PrsL:{t:"bool",v:!0}};
if(s=="blwh")m={__name:"Black & White",classID:"BanW",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Rd:{t:"long",v:40},Yllw:{t:"long",v:85},Grn:{t:"long",v:204},Cyn:{t:"long",v:60},Bl:{t:"long",v:20},Mgnt:{t:"long",v:80},useTint:{t:"bool",v:!0},tintColor:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:0},Grn:{t:"doub",v:0},Bl:{t:"doub",v:0}}}};
if(s=="phfl")m={__name:"Photo Filter",classID:"photoFilter",Clr:{t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:67.06},A:{t:"doub",v:32},B:{t:"doub",v:120}}},Dnst:{t:"long",v:80},PrsL:{t:"bool",v:!0}};
if(s=="grdm")m={__name:"Gradient Map",classID:"GrMp",Rvrs:{t:"bool",v:!1},Grad:JSON.parse(i4.Ej[6]).Grad};
if(s=="selc")m={__name:"Selective Color",classID:"SlcC",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Mthd:{t:"enum",v:{CrcM:"Rltv"}},ClrC:{t:"VlLs",v:[]}};
if(s=="thrs")m={__name:"Threshold",classID:"Thrs",Lvl:{t:"long",v:128}};if(s=="mixr")m={__name:"Channel Mixer",classID:"ChnM",presetKind:{t:"enum",v:{presetKindType:"presetKindDefault"}},Rd:{t:"Objc",v:{classID:"ChMx",Rd:{t:"UntF",v:{type:"#Prc",val:100}}}},Grn:{t:"Objc",v:{classID:"ChMx",Grn:{t:"UntF",v:{type:"#Prc",val:100}}}},Bl:{t:"Objc",v:{classID:"ChMx",Bl:{t:"UntF",v:{type:"#Prc",val:100}}}}};
if(s=="clrL")m={__name:"Color Lookup",classID:"colorLookup"};if(s=="post")m={__name:"Posterize",classID:"Pstr",Lvls:{t:"long",v:3}};
if(s=="rplc")m={__name:"Replace Color",classID:"RplC",Fzns:{t:"long",v:55},Mnm:{t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:73.1},A:{t:"doub",v:23.95},B:{t:"doub",v:8.03}}},Mxm:{t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:73},A:{t:"doub",v:23},B:{t:"doub",v:8}}},H:{t:"long",v:-22},Strt:{t:"long",v:0},Lght:{t:"long",v:0}};
if(s=="fade")m={__name:"Fade",classID:"fade",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}};
if(s=="aply")m={classID:"null",With:{t:"Objc",v:{classID:"Clcl",T:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:"RGB"}},{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Mrgd"}}]},Invr:{t:"bool",v:!1},Clcl:{t:"enum",v:{Clcn:"Nrml"}},Opct:{t:"UntF",v:{type:"#Prc",val:100}},Ofst:{t:"long",v:128},Scl:{t:"doub",v:1},PrsT:{t:"bool",v:!1}}}};
if(s=="blendOptions")m={classID:"blendOptions",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}};
return m};ib.yV={sFlam:function(s,m){m[0]=s.Type.v;m[1]=s.Leng.v;m[2]=s.RndL.v;m[3]=s.Widt.v;m[4]=s.Angl.v;
m[5]=s.Intr.v;m[6]=s.Adpt.v;m[7]=s.Clr.v;m[8]=s.Qual.v;m[9]=s.Turb.v;m[10]=s.Jag.v;m[11]=s.Opct.v.val;
m[12]=s.Lins.v;m[13]=s.Botm.v;m[14]=s.Styl.v;m[15]=s.Shap.v;m[16]=s.RnSh.v;m[17]=s.Arng.v},gFlam:function(s,m){s.Type.v=m[0];
s.Leng.v=m[1];s.RndL.v=m[2];s.Widt.v=m[3];s.Angl.v=m[4];s.Intr.v=m[5];s.Adpt.v=m[6];s.Clr.v=m[7];s.Qual.v=m[8];
s.Turb.v=m[9];s.Jag.v=m[10];s.Opct.v.val=m[11];s.Lins.v=m[12];s.Botm.v=m[13];s.Styl.v=m[14];s.Shap.v=m[15];
s.RnSh.v=m[16];s.Arng.v=m[17]},sAdNs:function(s,m){m[0]=s.Nose.v.val;m[1]=["Gsn","Unfr"].indexOf(s.Dstr.v.Dstr);
m[2]=s.Mnch.v},gAdNs:function(s,m){s.Nose.v.val=m[0];s.Dstr.v.Dstr=["Gsn","Unfr"][m[1]];s.Mnch.v=m[2]},sDstS:function(s,m){m[0]=s.Rds.v;
m[1]=s.Thsh.v},gDstS:function(s,m){s.Rds.v=m[0];s.Thsh.v=m[1]},sGsnB:function(s,m){m[0]=s.Rds.v.val},gGsnB:function(s,m){s.Rds.v.val=m[0]},sHghP:function(s,m){m[0]=s.Rds.v.val},gHghP:function(s,m){s.Rds.v.val=m[0]},sHsbP:function(s,m){var l=["RGBC","HSBl","HSLC"];
m[0]=l.indexOf(s.Inpt.v.ClrS);m[1]=l.indexOf(s.Otpt.v.ClrS)},gHsbP:function(s,m){var l=["RGBC","HSBl","HSLC"];
s.Inpt.v.ClrS=l[m[0]];s.Otpt.v.ClrS=l[m[1]]},"sMxm ":function(s,m){var l="preserveShape";m[0]=s.Rds.v.val;
m[1]=s[l]?["squareness","Rndn"].indexOf(s[l].v[l]):0},"gMxm ":function(s,m){var l="preserveShape";s.Rds.v.val=m[0];
s[l]={t:"enum",v:{preserveShape:["squareness","Rndn"][m[1]]}}},"sMnm ":function(s,m){var l="preserveShape";
m[0]=s.Rds.v.val;m[1]=s[l]?["squareness","Rndn"].indexOf(s[l].v[l]):0},"gMnm ":function(s,m){var l="preserveShape";
s.Rds.v.val=m[0];s[l]={t:"enum",v:{preserveShape:["squareness","Rndn"][m[1]]}}},sMtnB:function(s,m){m[0]=[s.Angl.v];
m[1]=s.Dstn.v.val;console.log(m)},gMtnB:function(s,m){s.Angl.v=typeof m[0]=="number"?m[0]:m[0][0];s.Dstn.v.val=m[1]},sOfst:function(s,m){m[0]=s.Hrzn.v;
m[1]=s.Vrtc.v;m[2]=["Rpt","Bckg","Wrp"].indexOf(s.Fl.v.FlMd)},gOfst:function(s,m){s.Hrzn.v=m[0];s.Vrtc.v=m[1];
s.Fl.v.FlMd=["Rpt","Bckg","Wrp"][m[2]]},sPnch:function(s,m){m[0]=s.Amnt.v},gPnch:function(s,m){s.Amnt.v=m[0]},"sPlr ":function(s,m){m[0]=["RctP","PlrR"].indexOf(s.Cnvr.v.Cnvr)},"gPlr ":function(s,m){s.Cnvr.v.Cnvr=["RctP","PlrR"][m[0]]},sRple:function(s,m){m[0]=s.Amnt.v;
m[1]=["Sml","Mdm","Lrg"].indexOf(s.RplS.v.RplS)},gRple:function(s,m){s.Amnt.v=m[0];s.RplS.v.RplS=["Sml","Mdm","Lrg"][m[1]]},sTwrl:function(s,m){m[0]=s.Angl.v},gTwrl:function(s,m){s.Angl.v=m[0]},sZgZg:function(s,m){m[0]=s.Amnt.v;
m[1]=s.NmbR.v;m[2]=["ArnC","OtFr","PndR"].indexOf(s.ZZTy.v.ZZTy)},gZgZg:function(s,m){s.Amnt.v=m[0];
s.NmbR.v=m[1];s.ZZTy.v.ZZTy=["ArnC","OtFr","PndR"][m[2]]},sUnsM:function(s,m){m[0]=s.Amnt.v.val;m[1]=s.Rds.v.val;
m[2]=s.Thsh.v},gUnsM:function(s,m){s.Amnt.v.val=m[0];s.Rds.v.val=m[1];s.Thsh.v=m[2]}};ib.a3n=function(s){var m=new fz(0,0);
if(s.enab.v==!1)return m;var l=s.filterFXList.v;for(var C=0;C<l.length;C++){var x=l[C].v;if(x.enab.v==!1)continue;
var a=ib.HK(x),P=ib.Te(a,x.Fltr?x.Fltr.v:null);if(P.x>m.x)m.x=P.x;if(P.y>m.y)m.y=P.y}return m};ib.Te=function(s,m){var l=0,x=0;
if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(s)!=-1){var a=m.Rds.v.val;l=x=a*2.57}if(s=="MtnB")l=x=m.Dstn.v.val;
if("Ofst,Rept,LqFy,Dspl,Pnch,Rple,Shr ,Sphr,Twrl,ZgZg,Wave,RdlB,Clds,DfrC,Plr ,LnCr,Wnd ,lightFilterGradient,rigidTransform,Frgm,Flam".split(",").indexOf(s)!=-1){l=x=1e4}if(s=="GEfc")return ew.Te(m);
return new fz(Math.ceil(l),Math.ceil(x))};ib.yo=function(){return{t:"Objc",v:{classID:"filterFXStyle",enab:{t:"bool",v:!0},validAtPosition:{t:"bool",v:!0},filterMaskEnable:{t:"bool",v:!0},filterMaskLinked:{t:"bool",v:!0},filterMaskExtendWithWhite:{t:"bool",v:!0},filterFXList:{t:"VlLs",v:[]}}}};
ib.k$=function(s,m){var l={o:m.zU>>16,z:m.zU>>8&255,S:m.zU&255},x={o:m.Pi>>16,z:m.Pi>>8&255,S:m.Pi&255},a=ib.names[s];
if(a==null)a=eb.names[s];var P=s;for(var o in eb.v9)if(eb.v9[o]==s)P=o;var G={t:"Objc",v:{classID:"filterFX",Nm:{t:"TEXT",v:iX.get(a)},blendOptions:{t:"Objc",v:{classID:"blendOptions",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}}},enab:{t:"bool",v:!0},hasoptions:{t:"bool",v:!0},FrgC:{t:"Objc",v:L.K.gc(l)},BckC:{t:"Objc",v:L.K.gc(x)},filterID:{t:"long",v:P.length==4?g.a3g(P):777}}},_=ib.Xi(s);
if(_)G.v.Fltr={t:"Objc",v:_};return G};ib.hL=function(s,m,l,x){var a=Date.now();if(s<1){var P=Math.round(s*5),o=[1,2,1,2,[40,26,13,6,4,2][P],2,1,2,1];
o=L.Rv.UR(o);if(!M.wR){L.t1(l);var G=l.slice(0);L.Rv.cz(G,l,x.e,x.l,o,255);L.z8(l)}else{var _=x.e,j=x.l,U=M.OI(0,_,j);
U.set(l);var S=M.OI(1,_,j),X=new Float32Array([1/_,1/j]);M.C8(S);M.filter.Pu({type:M.filter.a8N,Wl:X,a6z:new Float32Array(o)},U.Vh);
S.get(l)}}else{var c=m==L.yf._Z?0:1,y=[];while(s*[1,2.4][c]>20&&y.length<4){var O=L.$T(l,x);y.push(l,x);
l=O.du;x=O.rect;s/=2}var _=x.e,j=x.l;if(!M.wR){L.t1(l);m(l,x,s);L.z8(l)}else{var U=M.OI(0,_,j);U.set(l);
var S=M.OI(1,_,j),X=new Float32Array([1/_,1/j]);if(c==0){var p=1;while(p<s)p<<=1;M.C8(S);M.filter.Pu({type:M.filter.vS,Wl:X,_s:s,P1:[0,0,p]},U.Vh);
M.C8(U);M.filter.Pu({type:M.filter.vS,Wl:X,_s:s,P1:[0,1,p]},S.Vh)}else{var D=3,f=L.yf.Z1(s,D);for(var C=0;
C<D;C++){var T=f[C]>>>1,I=1;while(I<T)I<<=1;if(T==0)continue;M.C8(S);M.filter.Pu({type:M.filter.vS,Wl:X,_s:T,P1:[0,0,I]},U.Vh);
M.C8(U);M.filter.Pu({type:M.filter.vS,Wl:X,_s:T,P1:[0,1,I]},S.Vh)}}U.get(l)}var H=Date.now();while(y.length!=0){var b=y.pop(),R=y.pop();
L.scale.aax(l,x.e,x.l,R,b.e,b.l);l=R;x=b}}};ib.aqs=function(s,m,l,x){for(var C=0;C<s.length;C++){l[C]=s[C]*(1/255);
x[C]=0}FFT.fft2d(l,x);var a=m>>>1,P=16384,o=128,_=100;while(o<m){o<<=1;P<<=2}var G=255/Math.log(P),j=-100;
for(var U=0;U<m;U++)for(var S=0;S<a;S++){var X=m+a+U&m-1,c=l[X*m+S],y=x[X*m+S],O=Math.sqrt(c*c+y*y),p=Math.atan2(y,c);
s[U*m+S]=Math.round(G*Math.log(O+1));s[U*m+a+S]=Math.round((Math.PI+p)*(255*.5/Math.PI))}};ib.aaD=function(s,m,l,x){l.fill(0);
x.fill(0);var a=m>>>1,P=16384,o=128;while(o<m){o<<=1;P<<=2}var G=255/Math.log(P),_=[],j=[],U=[];for(var C=0;
C<256;C++){_[C]=Math.exp(C/G)-1;var S=C*(2*Math.PI/255)-Math.PI;j[C]=Math.sin(S);U[C]=Math.cos(S)}for(var X=0;
X<m;X++)for(var c=0;c<a;c++){var y=m+a+X&m-1,O=_[s[X*m+c]],S=s[X*m+a+c],p=O*U[S],D=O*j[S];l[y*m+c]=p;
x[y*m+c]=D;if(c!=0){var f=y==0?y*m+m-c:(m-y)*m+(m-c);l[f]=p;x[f]=-D}}FFT.ifft2d(l,x);for(var C=0;C<s.length;
C++){s[C]=Math.max(0,Math.min(255,~~(.5+255*l[C])))}};ib.xL=new ArrayBuffer(512);ib.amU=function(s){var m=ib.xL,l=s.length;
if(m.byteLength<l)ib.xL=m=new ArrayBuffer(l);var x=new Uint8Array(m);for(var C=0;C<l;C+=4){x[C]=s[C];
x[C+1]=s[C+1];x[C+2]=s[C+2];x[C+3]=s[C+3]}return m};ib._E=function(s,m,l,x,a,P,o){if(P==null)P={buffer:L.B(m.buffer.length),rect:m.rect.clone()};
L.qv(m.buffer,P.buffer);var G=l&&l.RndS?l.RndS.v>>>1:0;if(s=="GEfc"){var _=[];if(l.GEfs){var j=l.GEfs.v;
for(var C=0;C<j.length;C++){var U=j[C].v;if(U.GELv&&U.GELv.v==!1)continue;_.push(U)}}else _=[l];for(var C=0;
C<_.length;C++){var S;if(C==0)ew._E(s,m,_[C],x,a,P,o);else{if(S==null)S={buffer:L.B(m.buffer.length),rect:m.rect.clone()};
L.qv(P.buffer,S.buffer);ew._E(s,S,_[C],x,a,P,o)}}}if(s=="Adobe Camera Raw Filter"){var X=m.rect,c=X.e,y=X.l,O=c*y,p=O*4,D=O*3,f=new Float32Array(c*y*3),T=m.buffer;
for(var C=0;C<O;C++){var I=C*3,H=C*4;f[I]=T[H]*(1/255);f[I+1]=T[H+1]*(1/255);f[I+2]=T[H+2]*(1/255)}var b=JSON.parse(JSON.stringify(l));
delete b.Upri;delete b.GuUr;var R=f.slice(0);f=R;T=P.buffer;for(var C=0;C<O;C++){var I=C*3,H=C*4;T[H]=255*Math.max(0,Math.min(1,f[I]));
T[H+1]=255*Math.max(0,Math.min(1,f[I+1]));T[H+2]=255*Math.max(0,Math.min(1,f[I+2]))}}if(s=="adaptCorrect"){var X=m.rect,c=X.e,y=X.l,O=c*y,p=O*4,W=l.sdwM.v,u=W.Amnt.v.val/100,e=W.Wdth.v.val/100,Q=W.Rds.v,q=l.hglM.v,Z=q.Amnt.v.val/100,E=q.Wdth.v.val/100,z=q.Rds.v;
L.BS.aa1(m.buffer,P.buffer,c,y,u,e,Q,Z,E,z,l.ClrC.v/100,l.Cntr.v/100)}if(s=="denoise"){var X=m.rect,c=X.e,y=X.l,V=l.channelDenoise.v[0].v;
L.xv.aqA(m.buffer,c,y,P.buffer,V.Amnt.v/10,V.EdgF.v/100)}if(s=="HsbP"){var Y=l.Inpt.v.ClrS,d=l.Otpt.v.ClrS,X=m.rect,c=X.e,y=X.l,O=c*y;
for(var C=0;C<O;C++){var H=C*4,w=m.buffer[H]*(1/255),A=m.buffer[H+1]*(1/255),$=m.buffer[H+2]*(1/255);
if(Y=="RGBC"){}else if(Y=="HSLC"){var R=L.ZS(w,A,$);w=R.o;A=R.z;$=R.S}else if(Y=="HSBl"){var R=L.a0q(w,A,$);
w=R.o;A=R.z;$=R.S}var i=w,K=A,h=$;if(d=="RGBC"){}else if(d=="HSLC"){var R=L.AR(w,A,$);i=R.Cm;K=R.zd;
h=R.b_}else if(d=="HSBl"){var R=L.a74(w,A,$);i=R.Cm;K=R.zd;h=R.S}P.buffer[H]=~~(255*i);P.buffer[H+1]=~~(255*K);
P.buffer[H+2]=~~(255*h)}}if(s=="Fbrs"){var X=m.rect,c=X.e,y=X.l;L.I.Pm(m.buffer,c,y,P.buffer,[l.Vrnc.v,l.Strg.v,G]);
var F=L.B(c*y);L.hy(P.buffer,F,0);L.ms(F);ew.ne(F,P.buffer,x,a)}if(s=="Frgm"){var X=m.rect,c=X.e,y=X.l,N=m.buffer.slice(0);
L.t1(N);L.I.amN(N,c,y,P.buffer);L.z8(P.buffer)}if(s=="Flam"){var X=m.rect,c=X.e,y=X.l,iQ=l.Clr.v,jB={type:l.Type.v+1,length:l.Leng.v,a0c:l.RndL.v,rC:l.Widt.v,ac5:l.Angl.v,alh:l.Intr.v,aaq:l.Adpt.v,color:{o:iQ.Rd.v,z:iQ.Grn.v,S:iQ.Bl.v},kD:l.Qual.v+1,ix:l.Turb.v,Rq:l.Jag.v,opacity:l.Opct.v.val,px:l.Lins.v,abm:l.Botm.v,style:l.Styl.v+1,shape:l.Shap.v+1,ap0:l.RnSh.v,aoi:l.Arng.v,aaM:!1},k=o[3],ab=k[0],f_=k[1],fc=ab[f_.length!=0?f_[0]:0];
if(fc==null){alert("Make a path first");return}var g8=fc.add.vmsk.T,bH=L.j.Y7(g8),cR=[];for(var hr=0;
hr<bH;hr++){var h$=L.j.Po(g8,hr),gE=g8[h$];if(gE.length<2)continue;var d8=[];cR.push(d8);var hG=gE.length-(gE.type==3?1:0);
for(var f7=0;f7<hG;f7++){var hX=g8[h$+1+f7],fB=f7==gE.length-1?g8[h$+1]:g8[h$+1+f7+1],e5=hX.R,g9=hX.Ux,cL=fB.o3,bf=fB.R,gF=Math.round(fz.rv(e5,bf)/5);
for(var iC=0;iC<gF;iC++){var ax=iC/gF,e7=1-ax,dO=e7*e7*e7*e5.x+3*e7*e7*ax*g9.x+3*e7*ax*ax*cL.x+ax*ax*ax*bf.x,h1=e7*e7*e7*e5.y+3*e7*e7*ax*g9.y+3*e7*ax*ax*cL.y+ax*ax*ax*bf.y;
d8.push(dO,h1)}}}var hL=[cR,jB],jl=Date.now(),gT=fQ(hL);b8(m.buffer,c,y,P.buffer,gT,hL)}if(s=="Dfs "){var X=m.rect,c=X.e,y=X.l,hZ=["Nrml","DrkO","LghO","anisotropic"].indexOf(l.Md.v.DfsM);
if(hZ<3)L.I.aov(m.buffer,c,y,P.buffer,[hZ]);else{var hL=[1.4,1.6,1,4,!1,2,[0,0,.001]],X=m.rect.clone();
X.x=X.y=0;L.bF.filter(m.buffer,X,P.buffer,hL)}}if(s=="TrcC"){var X=m.rect,c=X.e,j6=c<<2,y=X.l,aP=l.Lvl.v,h7=l.Edg.v.CntE=="Lwr",fa=m.buffer,h4=P.buffer;
L.MP(h4,16777215,4278190080);function cA(bA,c$){cS(bA,c$);cS(bA+1,c$+1);cS(bA+2,c$+2)}function jg(bA,c$){iT(bA,c$);
iT(bA+1,c$+1);iT(bA+2,c$+2)}function cS(bA,c$){var i=fa[bA],K=fa[c$];if(i>=aP&&K<aP)h4[bA]=0;if(i<aP&&K>=aP)h4[c$]=0}function iT(bA,c$){var i=fa[bA],K=fa[c$];
if(i>aP&&K<=aP)h4[c$]=0;if(i<=aP&&K>aP)h4[bA]=0}if(h7)for(var h1=1;h1<y;h1++)for(var dO=1;dO<c;dO++){var H=h1*c+dO<<2;
cA(H,H-4);cA(H,H-j6)}else for(var h1=1;h1<y;h1++)for(var dO=1;dO<c;dO++){var H=h1*c+dO<<2;jg(H,H-4);
jg(H,H-j6)}}if(s=="Embs"){var X=m.rect,c=X.e,y=X.l,cf=-l.Angl.v*Math.PI/180,ir=l.Hght.v,gp=l.Amnt.v/100;
ir/=2;var j4=Math.cos(cf)*ir,ey=Math.sin(cf)*ir,fa=m.buffer,h4=P.buffer;h4.fill(0);var ca=new Uint32Array(fa.buffer),R=new Uint8Array(4),iu=new Uint32Array(R.buffer);
for(var h1=0;h1<y;h1++)for(var dO=0;dO<c;dO++){var jv=0,g$=0,cy=0;if(0<=dO+j4&&dO+j4<c&&0<=h1+ey&&h1+ey<y){L.V.zw(dO+j4+.5,h1+ey+.5,ca,c,y,iu,0,0);
jv+=R[0]-128;g$+=R[1]-128;cy+=R[2]-128}if(0<=dO-j4&&dO-j4<c&&0<=h1-ey&&h1-ey<y){L.V.zw(dO-j4+.5,h1-ey+.5,ca,c,y,iu,0,0);
jv-=R[0]-128;g$-=R[1]-128;cy-=R[2]-128}var H=h1*c+dO<<2;h4[H]=Math.max(0,Math.min(255,jv*gp+128));h4[H+1]=Math.max(0,Math.min(255,g$*gp+128));
h4[H+2]=Math.max(0,Math.min(255,cy*gp+128));h4[H+3]=fa[H+3]}}if(s=="ShrE"){var X=m.rect,c=X.e,y=X.l;
L.I.a6V(m.buffer,c,y,P.buffer)}if(s=="Dspc"){var X=m.rect,c=X.e,y=X.l;L.I.ahD(m.buffer,c,y,P.buffer)}if(s=="Slrz"){var cK=P.buffer,cN=128;
for(var C=0;C<cK.length;C+=4){if(cK[C]>cN)cK[C]=255-cK[C];if(cK[C+1]>cN)cK[C+1]=255-cK[C+1];if(cK[C+2]>cN)cK[C+2]=255-cK[C+2]}}if(s=="Wnd "){var X=m.rect,c=X.e,y=X.l,cJ=["Wnd","Blst","Stgr"],fb=l.WndM.v.WndM;
L.I.It(m.buffer,c,y,P.buffer,[cJ.indexOf(fb),l.Drct.v.Drct!="Left"])}if(s=="Bokh"){var X=m.rect,c=X.e,y=X.l,O=c*y,p=O*4,cd=m.buffer.slice(0),em=l.BkDi.v.BtDi,eq=l.BkDc,ie=l.BkDs.v,jf=l.BkDp.v/255;
if(em=="BeIn")jf=0;var i3=57*(.3+.7*((c+y)/2)/1750)*(l.BkIb.v/100)*(1+.2*Math.pow(jf,.1)),cE=parseInt(l.BkIs.v.BtIs.slice(3)),j9=-l.BkIr.v*Math.PI/180,dm=[];
for(var C=0;C<8;C++){var jy=j9+C*(Math.PI*2/cE),eg=j9+(C+1)*(Math.PI*2/cE),a$=Math.cos(jy),cg=Math.sin(jy),gt=Math.cos(eg),i2=Math.sin(eg),cZ=[0,0,0];
L.pc.J1([[a$,cg,1,0],[gt,i2,1,0],[1,1,1,1]],cZ);if(cZ[2]>0){cZ[0]*=-1;cZ[1]*=-1;cZ[2]*=-1}dm.push(cZ[0],cZ[1],cZ[2],0)}if(em=="BeIn"){L.MP(cd,0,16777215);
jf=1}else if(em=="BeIt"&&eq.v.BtDc=="BeCt"){}else{var g5;if(em=="BeIt"&&eq.v.BtDc=="BeCm")g5=o[1];else if(em=="BeIa")g5=o[2][eq.v];
if(g5==null){L.MP(cd,0,16777215)}else{var ip;if(g5.rect.yb(X))ip=g5.channel;else ip=g5.dG(X);L._Y(ip,cd,3)}}if(ie)for(var C=0;
C<p;C+=4)cd[C+3]=255-cd[C+3];if(M.wR){var db=cd,eS=c,a1=y,im=1,e3=(l.BkSb.v==0||l.BkSt.v==255)&&em=="BeIn";
if(!e3){var gu=0;for(var C=0;C<p;C+=4)gu+=Math.abs(jf-cd[C+3]*(1/255));gu=gu/O*i3;var f3=3.14*gu*gu*c*y/3e6;
if(f3>2e3){alert("too large radius");return}}while(e3&&3*(i3/im)*(i3/im)*c*y>500*2e3*2e3){var jw=L.pH(cd,new bU(0,0,eS,a1));
cd=jw.du;eS=jw.rect.e;a1=jw.rect.l;im*=2}var jl=Date.now(),dE=M.OI(0,eS,a1);dE.set(cd);var d9=M.OI(1,c,y);
M.C8(d9);M.filter.Pu({type:M.filter.adl,Wl:new Float32Array([1/eS,1/a1]),a9y:jf,hs:i3/im,a3H:new Float32Array([l.BkSb.v/100,l.BkSt.v/255]),agR:new Float32Array([l.BkNa.v/100,l.BkNt.v.BtNt=="BeNu"?0:1,l.BkNm.v?1:0]),a38:new Float32Array(dm.slice(0,16)),a1r:new Float32Array(dm.slice(16))},dE.Vh);
d9.get(P.buffer);var iz=P.buffer;for(var C=0;C<p;C+=4)iz[C+3]=m.buffer[C+3]}}if(s=="rigidTransform"){var jl=Date.now(),jE=ib.amU,dE=m.buffer.slice(0),bN=0,jd=0;
L.t1(dE);L.MP(P.buffer,0);var c=m.rect.e,y=m.rect.l,dS=l.puppetShapeList.v,c9=[],aF=[],au=[],cc=[];for(var f7=0;
f7<dS.length;f7++){var cv=dS[f7].v,iK=bN*2,I=jd*3,e_=cv.originalVertexArray.v.length>>>2,d7=cv.indexArray.v.length>>>2,ha=new Float32Array(jE(cv.originalVertexArray.v));
for(var C=0;C<e_;C++)c9[iK+C]=ha[C];var cP=new Float32Array(jE(cv.deformedVertexArray.v));for(var C=0;
C<e_;C++)aF[iK+C]=cP[C];var hu=new Uint32Array(jE(cv.indexArray.v));for(var C=0;C<d7;C++)au[I+C]=bN+hu[C];
var hA=[],e4=[],fI=cv.PnDp.v;for(var C=0;C<fI.length;C++){hA.push(cv.pinVertexIndices.v[C].v);e4.push(fI[C].v)}var jj=L.aw.a7i(ha,hu,hA,e4);
for(var C=0;C<jj.length;C++)cc[bN+C]=jj[C];bN+=e_>>>1;jd+=~~(d7/3)}var w=m.rect,c=w.e,y=w.l;L.aw.in(dE,c,y,P.buffer,c,y,c9,aF,cc,au);
L.z8(P.buffer)}if(s=="lightFilterGradient"){function cD(e5){var dc=1/Math.sqrt(e5[0]*e5[0]+e5[1]*e5[1]+e5[2]*e5[2]);
e5[0]*=dc;e5[1]*=dc;e5[2]*=dc}var c=m.rect.e,y=m.rect.l,O=c*y,jl=Date.now(),cG=L.B(O),K=.3,h=.7;L.A1(P.buffer,cG);
var gL=L.B(O);L.yf.FS(cG,gL,P.rect,16);var gc=L.B(O);L.yf.FS(cG,gc,P.rect,8);var h3=cG,bb=new Float32Array(O),fO=l.Dtl.v,eR=fO[2].v,eM=fO[1].v,ig=fO[0].v,hE=l.Scl.v*40*l.textureScale.v/(eR+eM+ig);
eR*=hE;eM*=hE;ig*=hE;for(var C=0;C<O;C++){var j8=gL[C]*(1/255),gR=gc[C]*(1/255),cB=h3[C]*(1/255);cB=cB*cB;
bb[C]=eR*j8+eM*gR+ig*cB}var iV=l.blur.v;if(iV!=0){var cq=bb.slice(0);L.yf.kH(cq,bb,P.rect,iV)}var fe=c-1,dj=y-1;
for(var h1=1;h1<dj;h1++)for(var dO=1;dO<fe;dO++){var C=h1*c+dO,H=C*4,cn=bb[C],j4=K*(bb[C+1]-cn)+h*(cn-bb[C-1]),ey=K*(bb[C+c]-cn)+h*(cn-bb[C-c]),e5=[1,0,j4],g9=[0,1,ey];
cD(e5);cD(g9);var eg=e5[0],b0=e5[2],aQ=g9[1],fp=g9[2],eZ=-b0*aQ,hQ=-eg*fp,cI=eg*aQ;P.buffer[H]=~~(127.5+eZ*127.5);
P.buffer[H+1]=~~(127.5+hQ*127.5);P.buffer[H+2]=~~(127.5+cI*127.5)}}if(s=="dDFT"||s=="iDFT"){function f4(cE){if(cE==0)return 1;
cE--;cE|=cE>>1;cE|=cE>>2;cE|=cE>>4;cE|=cE>>8;cE|=cE>>16;return cE+1}var c=m.rect.e,y=m.rect.l,jh=f4(Math.max(c,y)),cM=jh>>>1,e8=new bU(0,0,jh,jh),dq=new bU(0,0,c,y);
dq.y=jh-y>>>1;var bh=c>>>1,hC=new bU(0,dq.y,bh,y),ic=new L.KY(c*y);L.ZI(m.buffer,ic);var hq=new Float64Array(jh*jh),bS=new Float64Array(jh*jh),ip=L.B(jh*jh);
FFT.init(jh);var aB=[ic.o,ic.z,ic.S];for(var C=0;C<3;C++){var fk=aB[C];ip.fill(0);if(s=="dDFT"){L.kV(fk,dq,ip,e8);
ib.aqs(ip,jh,hq,bS);L.kV(ip,e8,fk,dq,hC);hC.x+=bh;e8.x-=cM-bh;L.kV(ip,e8,fk,dq,hC);hC.x-=bh;e8.x+=cM-bh}else{L.kV(fk,dq,ip,e8,hC);
hC.x+=cM;dq.x+=cM-bh;L.kV(fk,dq,ip,e8,hC);hC.x-=cM;dq.x-=cM-bh;ib.aaD(ip,jh,hq,bS);L.kV(ip,e8,fk,dq)}}L.aC(ic,P.buffer)}if(s=="Avrg"){var hb=0,jM=0,bO=0,gP=0,f$=1;
for(var C=0;C<m.buffer.length;C+=4){var bJ=m.buffer[C+3];bO+=m.buffer[C]*bJ;jM+=m.buffer[C+1]*bJ;hb+=m.buffer[C+2]*bJ;
gP+=bJ}var fl=1/gP;hb=Math.round(f$*(hb*fl)+(1-f$)*255);jM=Math.round(f$*(jM*fl)+(1-f$)*255);bO=Math.round(f$*(bO*fl)+(1-f$)*255);
L.MP(P.buffer,hb<<16|jM<<8|bO,4278190080)}if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(s)!=-1){var i_=l.Rds.v.val,gb=s=="boxblur"?L.yf._Z:L.yf.ag7;
ib.hL(i_,gb,P.buffer,P.rect);if(s=="UnsM"||s=="smartSharpen"){var gp=l.Amnt.v.val/100,fy=0;if(s=="UnsM")fy=l.Thsh.v;
else gp*=.75;for(var C=0;C<m.buffer.length;C++){if((C&3)==3){P.buffer[C]=m.buffer[C];continue}var fu=m.buffer[C],dT=P.buffer[C],eC=gp*(fu-dT);
if(eC>0)eC=Math.max(0,eC-fy);else eC=Math.min(0,eC+fy);P.buffer[C]=Math.max(0,Math.min(255,fu+eC))}}if(s=="HghP")for(var C=0;
C<m.buffer.length;C++){if((C&3)==3){P.buffer[C]=m.buffer[C];continue}var fu=m.buffer[C],dT=P.buffer[C];
P.buffer[C]=Math.max(0,Math.min(255,128+fu-dT))}}if(s=="AdNs"){var jr=new Uint8ClampedArray(P.buffer.buffer),af=255*l.Nose.v.val/100,b9;
if(l.Dstr.v.Dstr=="Gsn")b9=function(){return(Math.random()+Math.random()+Math.random()+Math.random()-2)*2};
else b9=function(){return Math.random()*2-1};for(var C=0;C<jr.length;C+=4){var w=jr[C],A=jr[C+1],$=jr[C+2],gS,ar,hy;
if(l.Mnch.v){gS=ar=hy=b9()}else{gS=b9();ar=b9();hy=b9()}w+=af*gS;A+=af*ar;$+=af*hy;jr[C]=w;jr[C+1]=A;
jr[C+2]=$}}var jl=Date.now();if(s=="Mdn "||s=="DstS"||s=="Mxm "||s=="Mnm "||s=="surfaceBlur"){var w=0,a5=l.Thsh,cv=0;
if(a5)a5=a5.v;else a5=0;if(s=="Mdn "||s=="Mxm "||s=="Mnm "||s=="surfaceBlur")w=l.Rds.v.val;else w=l.Rds.v;
var dY=l.preserveShape;if(dY&&dY.v.preserveShape=="Rndn")cv=1;var c=m.rect.e,y=m.rect.l,hi=["Mnm ","Mxm ","surfaceBlur"].indexOf(s),e9=(cv==0?1:.75)*[.73,.73,1][hi]*(c*y*w*w)/1722387,hK=[.73,.9,1.4][hi]*(c*y*Math.sqrt(w))/6500;
if(M.wR&&hi!=-1&&(e9<hK||cv==1)&&e9<1500){var dE=M.OI(0,c,y);dE.set(m.buffer);var S=M.OI(1,c,y);M.C8(S);
M.filter.Pu({type:M.filter.a5R,Wl:new Float32Array([1/c,1/y]),hs:w,ap4:a5/255,P1:[cv,hi,10*Math.ceil(w/10)]},dE.Vh);
S.get(P.buffer)}else{w=Math.round(w);L.Du.Qp=.5;var gb=L.Du.CQ;if(s=="Mxm ")gb=L.Du.R1;if(s=="Mnm ")gb=L.Du.YB;
if(s=="surfaceBlur")gb=L.Du.qH;L.Du.iL(m.buffer,P.buffer,c,y,w,gb,[a5]);if(s=="DstS")for(var C=0;C<c*y*4;
C++){var bT=Math.abs(m.buffer[C]-P.buffer[C]);if(bT<=a5)P.buffer[C]=m.buffer[C]}}}if(s=="ClrH"){var hC=m.rect.clone();
hC.x=hC.y=0;var w=l.Rds.v;w=Math.round(w*Math.sqrt(2));var c=hC.e,y=hC.l,ic=new L.KY(c*y);L.ZI(m.buffer,ic);
L.ms(ic.o);L.ms(ic.z);L.ms(ic.S);var ij=L.Uv(c,y),iz=L.B(c*y*4);for(var bL=0;bL<3;bL++){var ip=bL==0?ic.o:bL==1?ic.z:ic.S,cf=Math.PI*l["Ang"+(bL+1)].v/180,gd=new ae(1/w,0,0,1/w,0,0);
gd.rotate(cf);L._Y(ip,iz,3);var R=r.Q.ea([iz,hC],gd,!0),dq=R.rect;ij.clearRect(0,0,c,y);var c6=Math.sin(cf),f1=Math.cos(cf);
for(var C=0;C<dq.l;C++)for(var iC=0;iC<dq.e;iC++){var dO=(iC+dq.x+.5)*w,h1=(C+dq.y+.5)*w,i8=dO,ho=h1;
dO=f1*i8-c6*ho;h1=c6*i8+f1*ho;var O=R.buffer[(C*dq.e+iC<<2)+3]*(1/255),i_=w*Math.sqrt(O*(1/Math.PI));
ij.beginPath();ij.arc(dO,h1,i_,0,2*Math.PI);ij.fill()}var jN=ij.getImageData(0,0,c,y);L.hy(jN.data,ip,3)}L.ms(ic.o);
L.ms(ic.z);L.ms(ic.S);L.aC(ic,P.buffer)}if(s=="Crst"||s=="Pntl"){var c=m.rect.e,y=m.rect.l,gb=s=="Crst"?L.wN.a9n:L.wN.ass;
gb(m.buffer,c,y,P.buffer,l.ClSz.v,[Math.round(a.o),Math.round(a.z),Math.round(a.S)])}if(s=="Mztn"){var c=m.rect.e,y=m.rect.l,O=c*y,ic=new L.KY(O),hI=[ic.o,ic.z,ic.S];
L.ZI(m.buffer,ic);var fb=l.MztT.v.MztT,cw={FnDt:[.1,0,.3,1.4],MdmD:[.9,0,.1,1.4],GrnD:[3,0,.2,1.4],CrsD:[7,0,.1,1.4],ShrL:[0,10,.16,3],MdmL:[0,22,.06,3],LngL:[0,25,.01,4.5],ShSt:[3,10,.05,4.4],MdmS:[4,25,.15,4],LngS:[4,30,.05,4]}[fb],jl=Date.now(),hP=[];
for(var C=0;C<O;C++){hP[C]=Math.random()}var O=c*y,jq=Math.round(O*cw[0]),h2=O-c-1;for(var C=0;C<jq;
C++){var gx=Math.random(),aS=1;if(gx<.5){aS=c;gx*=2}else gx=2*(gx-.5);var bA=Math.floor(gx*h2),c$=bA+aS;
hP[bA]=hP[c$]}var hs=Math.round(c*cw[1]);for(var h1=0;h1<y;h1++)for(var C=0;C<hs;C++){var gx=L.a.a8(h1*O+C),bA=h1*c+Math.floor(gx*(c-1));
hP[bA]=hP[bA+1]}var jn=new Float64Array(256);for(var C=0;C<256;C++){var iL=C/255,a8=2*(iL<.5?iL:1-iL);
a8=cw[2]+Math.pow(a8,cw[3])*(1-cw[2]);iL=iL<.5?a8*.5:1-a8*.5;jn[C]=iL}for(var dn=0;dn<3;dn++){var ip=hI[dn];
for(var h1=0;h1<y;h1++){for(var dO=0;dO<c;dO++){var C=h1*c+dO,bd=ip[C],iL=jn[bd],gx=hP[C];ip[C]=gx>iL?0:255}}}L.aC(ic,P.buffer)}if(s=="Msc "){var bH=l.ClSz.v.val,c=m.rect.e,y=m.rect.l,fK=Math.ceil(c/bH),dQ=Math.ceil(y/bH),eK=L.B(fK*dQ*4);
L.scale.Kn(m.buffer,c,y,eK,fK,dQ,1/bH);L.scale.Kn(eK,fK,dQ,P.buffer,c,y,bH)}if(s=="Clds"||s=="DfrC"){var c=P.rect.e,y=P.rect.l,O=c*y,cH=L.B(O);
if(s=="Clds")L.MP(P.buffer,4278190080);var cX=L.B(256*4);for(var C=0;C<256;C++){var H=C<<2,bn=C/255,hu=1-bn;
cX[H]=Math.round(bn*x.o+hu*a.o);cX[H+1]=Math.round(bn*x.z+hu*a.z);cX[H+2]=Math.round(bn*x.S+hu*a.S)}L.I.a7m(m.buffer,c,y,cH);
var aY=P.buffer;for(var C=0;C<O;C++){var H=C<<2,dn=cH[C]<<2,w=cX[dn],A=cX[dn+1],$=cX[dn+2];if(s=="Clds"){aY[H]=w;
aY[H+1]=A;aY[H+2]=$}else{aY[H]=Math.abs(aY[4*C]-w);aY[H+1]=Math.abs(aY[4*C+1]-A);aY[H+2]=Math.abs(aY[4*C+2]-$)}}}if(s=="LnsF"){var c=m.rect.e,y=m.rect.l,fb=["Zm","Nkn","Nkn1","PnVs"].indexOf(l.Lns.v.Lns),bc=l.FlrC.v,fn=[Math.min(fb,2),l.Brgh.v/100,bc.Hrzn.v,bc.Vrtc.v],jl=Date.now();
L.akD(m.buffer,c,y,P.buffer,fn)}var a2=["Blr ","BlrM","Shrp","ShrM"].indexOf(s);if(a2!=-1){var gi=a2>1,c=m.rect.e,y=m.rect.l,az=L.Rv.kJ[a2],i1=m.buffer.slice(0);
if(!gi)L.t1(i1);L.Rv.cz(i1,P.buffer,c,y,az,255,!1,gi);if(!gi)L.z8(P.buffer)}if(s=="MtnB"){var hY=-l.Angl.v*Math.PI/180,cu=l.Dstn.v.val/2,jl=Date.now(),c=m.rect.e,y=m.rect.l,X=m.rect.clone();
X.x=X.y=0;if(M.wR){var jl=Date.now(),io=P.buffer;io.set(m.buffer);L.t1(io);var aT=M.OI(0,c,y);aT.set(io);
var fa=L.B(4);fa[0]=Math.round(128+127*Math.cos(hY));fa[1]=Math.round(128+127*Math.sin(hY));new Uint32Array(io.buffer).fill(new Uint32Array(fa.buffer)[0]);
var ds=M.OI(1,c,y);ds.set(io);M.C8(aT,X);aT._y(X);M.filter.Pu({type:M.filter._j,wz:ds.Vh,Wl:new Float32Array([1/c,1/y]),atN:cu/2,a2_:1},aT.qQ);
aT.get(io);L.z8(io)}else{var gd=new ae;gd.rotate(hY);var R=r.Q.ea([m.buffer,m.rect],gd,!1,null,!0);ib.hL(cu,L.yf.Ly,R.buffer,R.rect);
gd.ms();R=r.Q.ea([R.buffer,R.rect],gd,!1,P.buffer.buffer,!0,P.rect)}console.log(Date.now()-jl)}if(s=="RdlB"){var c=m.rect.e,y=m.rect.l,gp=l.Amnt.v,iF=l.BlrM.v.BlrM=="Zm",bL=l.Cntr.v,dg=bL.Hrzn.v,fg=bL.Vrtc.v,j4=Math.max(dg,1-dg)*c,ey=Math.max(fg,1-fg)*y,i_=Math.sqrt(j4*j4+ey*ey),gw=2*Math.PI*i_*1.5,e1=Math.round(gw),bW=Math.round(i_),hC=new bU(0,0,e1,bW),ej=L.B(e1*bW*4),hp=iF?4:1,jc=iF?.6:8*((c+y)/2)/1400,ai=.1,im=1,bx=1;
L.V.I8(m.buffer,c,y,ej,e1,bW,dg,fg,hp,ai,im,bx);var g4=iF?L.B(e1*bW*4):null;if(iF){L.V.mP(ej,g4,e1,bW);
var ax=g4;g4=ej;ej=ax;hC.e=bW;hC.l=e1}ib.hL(jc*gp,L.yf.Ly,ej,hC);if(iF){L.V.mP(ej,g4,bW,e1);var ax=g4;
g4=ej;ej=ax;hC.e=e1;hC.l=bW}L.V.cV(ej,e1,bW,P.buffer,c,y,dg,fg,hp,ai,im,bx)}if(s=="Plr "){var c=m.rect.e,y=m.rect.l;
if(l.Cnvr.v.Cnvr=="RctP")L.V.cV(m.buffer,c,y,P.buffer,c,y,.5,.5,1,0,2,c/y);else L.V.I8(m.buffer,c,y,P.buffer,c,y,.5,.5,1,0,2,c/y)}if(s=="FndE"){var c=m.rect.e,y=m.rect.l;
L.Rv.Id(m.buffer,P.buffer,c,y)}if(s=="oilPaint"){var cf=l.LghD.v*Math.PI/180,ji=[Math.cos(cf),Math.sin(cf),.001],hL=[l.stylization.v,l.cleanliness.v,l.brushScale.v,l.microBrush.v,l.lightingOn.v,l.specularity.v,ji],X=m.rect.clone();
X.x=X.y=0;L.bF.filter(m.buffer,X,P.buffer,hL)}if(s=="Ofst"){var c=m.rect.e,y=m.rect.l,g0=new Uint32Array(m.buffer.buffer),iB=new Uint32Array(P.buffer.buffer),i8=l.Hrzn.v,ho=l.Vrtc.v,cj=l.Fl.v.FlMd;
L.MP(iB,0);if(cj=="Bckg"||cj=="Rpt"){var hC=m.rect.clone();hC.offset(i8,ho);L.yx(g0,hC,iB,P.rect)}if(cj=="Rpt"){var a$,cg,gt,i2,hf;
i8=Math.max(-c,Math.min(c,i8));ho=Math.max(-y,Math.min(y,ho));a$=i8>0?i8:0;gt=i8>0?c:c+i8;cg=ho>0?0:ho+y;
i2=ho>0?ho:y;hf=ho>0?0:c*(y-1);for(var h1=cg;h1<i2;h1++)for(var dO=a$;dO<gt;dO++)iB[h1*c+dO]=g0[hf+dO-i8];
a$=i8>0?0:c+i8;gt=i8>0?i8:c;cg=ho>0?ho:0;i2=ho>0?y:y+ho;hf=i8>0?0:c-1;for(var h1=cg;h1<i2;h1++)for(var dO=a$;
dO<gt;dO++)iB[h1*c+dO]=g0[hf+c*(h1-ho)];if(i8>=0&&ho>=0){a$=0;gt=i8;cg=0;i2=ho;hf=0}if(i8>=0&&ho<0){a$=0;
gt=i8;cg=y+ho;i2=y;hf=c*(y-1)}if(i8<0&&ho>=0){a$=c+i8;gt=c;cg=0;i2=ho;hf=c-1}if(i8<0&&ho<0){a$=c+i8;
gt=c;cg=y+ho;i2=y;hf=c*y-1}for(var h1=cg;h1<i2;h1++)for(var dO=a$;dO<gt;dO++)iB[h1*c+dO]=g0[hf]}if(cj=="Wrp"){i8=(i8+100*c)%c;
ho=(ho+100*y)%y;var hC=new bU(i8-c,ho-y,c,y);L.yx(g0,hC,iB,P.rect);hC.offset(c,0);L.yx(g0,hC,iB,P.rect);
hC.offset(0,y);L.yx(g0,hC,iB,P.rect);hC.offset(-c,0);L.yx(g0,hC,iB,P.rect)}}if(s=="Rept"){var iI=l.Rsft.v.val/100,fq=l.SpcX.v.val/100;
fq=Math.max(fq,-.99);var hc=l.SpcY.v.val/100;hc=Math.max(hc,-.99);var im=l.Scl.v.val/100,gd=new ae;gd.rotate(l.Angl.v*Math.PI/180);
gd.scale(im,im);var i6={buffer:m.buffer,rect:m.rect};L.vb(i6);if(i6.rect.Xh()){i6.buffer=m.buffer;i6.rect=m.rect}var aY=i6.buffer,hC=i6.rect,dA=L.XA(aY,hC,0),h6=new Uint32Array(aY.buffer)[0];
if(!dA.Xh()&&!dA.yb(hC)){var cF=L.B(dA.k()*4);L.yx(aY,hC,cF,dA);aY=cF;hC=dA}hC.x=hC.y=0;h6=fq==0&&hc==0||l.SpcC.v?h6:0;
function dW(dO){return dO<0?Math.ceil(dO):Math.floor(dO)}var fW=gd.oG(new fz(hC.e,0));fW.x=dW(fW.x);
fW.y=dW(fW.y);var hM=gd.oG(new fz(0,hC.l));hM.x=dW(hM.x);hM.y=dW(hM.y);var R=r.Q.ea([aY,hC],gd,!1),dq=R.rect,h4=R.buffer,cY=Math.round(dq.x),er=Math.round(dq.y),c0=Math.max(P.rect.e,P.rect.l)/Math.min(hC.e*im*(1+fq),hC.l*im*(1+hc));
c0=Math.ceil(c0*1.7);L.MP(P.buffer,h6);for(var h1=-c0;h1<c0;h1++){for(var dO=-c0;dO<c0;dO++){var gr=(dO+h1*iI)*(1+fq),f0=h1*(1+hc);
dq.x=cY+Math.round(gr*fW.x+f0*hM.x);dq.y=er+Math.round(gr*fW.y+f0*hM.y);if(dq.Hx(P.rect))L.a.$P("norm",h4,dq,P.buffer,P.rect,dq,1)}}}if(s=="Ctoa"){var a=L.K.Qv(l.Clr.v),a5=l.Trsp.v.val/100,at=l.Opct.v.val/100;
a5=at==0?0:a5/at;var c=m.rect.e,y=m.rect.l,bv=~~a.o,gm=~~a.z,a9=~~a.S,hf=m.buffer,iZ=P.buffer;for(var h1=0;
h1<y;h1++)for(var dO=0;dO<c;dO++){var C=h1*c+dO,H=C<<2,hC=hf[H],bQ=hf[H+1],aY=hf[H+2],ag=Math.abs(bv-hC),hm=Math.abs(gm-bQ),bD=Math.abs(a9-aY),eB=Math.max(ag,hm,bD)*(1/255);
eB=Math.max(0,Math.min(1,eB/at));var cC=eB==0?0:1/eB,eD=a5==1?1:Math.max(0,Math.min(1,(eB-a5)/(1-a5)));
iZ[H]=Math.max(0,Math.min(255,(hC-bv*(1-eB))*cC));iZ[H+1]=Math.max(0,Math.min(255,(bQ-gm*(1-eB))*cC));
iZ[H+2]=Math.max(0,Math.min(255,(aY-a9*(1-eB))*cC));iZ[H+3]=~~(.5+eD*255)}}if(s=="Dthr"){function df(dO){return~~(.5+255*L.pK(dO/255))}var f7=l.Plte.v,aw;
if(f7==0)aw=[4278190080,4294967295];else{var ad=[[1,1,1],[2,2,2],[3,3,2]][f7-1],d6=[1<<ad[0],1<<ad[1],1<<ad[2]],gM=[~~(255/(d6[0]-1)),~~(255/(d6[1]-1)),~~(255/(d6[2]-1))];
aw=[];for(var w=0;w<d6[0];w++)for(var A=0;A<d6[1];A++)for(var $=0;$<d6[2];$++)aw.push(255<<24|df($*gM[2])<<16|df(A*gM[1])<<8|df(w*gM[0]))}var c=m.rect.e,y=m.rect.l,O=c*y,d$=O*4,cy=m.buffer.slice(0),bo=P.buffer;
for(var C=0;C<d$;C++)cy[C]=~~(.5+255*L.pK(cy[C]/255));var fS=L.B(c*y);UPNG.encode.dither(cy,c,y,aw,bo,fS);
for(var C=0;C<d$;C++)bo[C]=~~(.5+255*L.WF(bo[C]/255))}if("LqFy,Dspl,Pnch,Sphr,Twrl,Rple,Shr ,Wave,LnCr,ZgZg".split(",").indexOf(s)!=-1){var ih=o[0],c=m.rect.e,y=m.rect.l,jn,fJ=0;
if(s=="LqFy")jn=hh.st(new Uint8Array(l.LqMe.v).buffer);else{var gA=3;jn={h_:Math.floor(c/gA),Cm:Math.floor(y/gA)};
jn.map=new Float32Array(jn.h_*jn.Cm*2);if(s=="LnCr"){var dg=.5*(jn.h_-1),fg=.5*(jn.Cm-1),eJ=Math.max(Math.abs(0-dg),Math.abs(1-dg)),eF=Math.max(Math.abs(0-fg),Math.abs(1-fg)),bg=Math.sqrt(eJ*eJ+eF*eF),h0=0,hn=0,eP=-1,gl=2,im=l.LnSi.v/100,iF=1/im,bK=l.LnIa.v/100,cb=bK==0?1e-6:bK*4.6,bk=iF/bg;
for(var h1=0;h1<jn.Cm;h1++){for(var dO=0;dO<jn.h_;dO++){var j4=(dO-dg)*bk,ey=(h1-fg)*bk,w=Math.sqrt(j4*j4+ey*ey)*cb,g6=Math.atan(w),gD=bK>0?g6/w:w/g6,bx=dg+bg*gD*j4,fZ=fg+bg*gD*ey,C=h1*jn.h_+dO<<1;
jn.map[C]=bx-dO;jn.map[C+1]=fZ-h1}}}else if(s=="Dspl"&&ih.length!=0){fJ=l.UndA.v.UndA=="WrpA"?2:1;var bI=l.DspF.v.pth,eA;
for(var C=0;C<ih.length;C++)if(ih[C].te==bI)eA=ih[C];if(eA==null)eA=ih[0];eA.cf();var ag=eA.H6[1],gU=L.B(ag.k());
L.A1(eA.H6[0],gU);var av=ag.e,b2=ag.l;jn={h_:av,Cm:b2};jn.map=new Float32Array(jn.h_*jn.Cm*2);var fV=2.54*l.HrzS.v*av/c,iM=2.54*l.VrtS.v*b2/y;
for(var h1=0;h1<jn.Cm;h1++){for(var dO=0;dO<jn.h_;dO++){var bT=-.5+gU[h1*av+dO]*(1/255),C=h1*jn.h_+dO<<1;
jn.map[C]=bT*fV;jn.map[C+1]=bT*iM}}}else if(s=="Pnch"||s=="Twrl"||s=="Sphr"||s=="ZgZg"){var gp=1,hY=Math.PI,cO=0,c8=1,ba=0,bL=3,bH=1.53,gD=1;
if(s=="Pnch"||s=="Sphr"||s=="ZgZg")gp=l.Amnt.v/100;if(s=="ZgZg"){c8=l.NmbR.v;ba=["ArnC","OtFr","PndR"].indexOf(l.ZZTy.v.ZZTy)}if(s=="Twrl")hY=l.Angl.v*Math.PI/180;
if(s=="Sphr")cO=["Nrml","HrzO","VrtO"].indexOf(l.SphM.v.SphM);function gb(dO){dO=Math.pow(dO,1-dO*.3-dO*dO*(dO*dO)*.5);
return-.225*Math.sin(dO*Math.PI)}function bP(y,dc,w,a$,cg,gt,i2,gD){var j4=gt-a$,ey=i2-cg,hd=a$-y,jt=cg-dc,bn=j4*j4+ey*ey,$=2*(j4*hd+ey*jt),bL=hd*hd+jt*jt-w*w,ci=Math.sqrt($*$-4*bn*bL),iD=gD/(2*bn),ju=(-$+ci)*iD,fD=(-$-ci)*iD;
return gD*Math.min(ju,fD)}var fK=jn.h_,dQ=jn.Cm,dH=jn.h_/2,dj=jn.Cm/2,dd=1/dH,w=Math.sqrt(bL*bL+1)/bL,fk=bL+Math.sqrt(1/(bL*bL));
if(gp<0){bL=1.72;w=1;fk=bL;bH=-1;gD=-1}for(var h1=0;h1<dQ;h1++){var ey=(h1-dj)/dj;for(var dO=0;dO<fK;
dO++){var j4=(dO-dH)*dd;if(cO==1)ey=0;else if(cO==2)j4=0;var iY=Math.sqrt(j4*j4+ey*ey);if(iY<1&&iY!=0){var C=h1*jn.h_+dO<<1;
if(s=="Pnch"){var fw=-gp*gb(iY)/iY;jn.map[C]=j4*fw*dH;jn.map[C+1]=ey*fw*dj}else if(s=="Sphr"){var ax=bP(0,fk,w,0,0,iY,bL,gD),fT=bH*gp*(ax-1);
jn.map[C]=j4*fT*dH;jn.map[C+1]=ey*fT*dj}else if(s=="Twrl"){var cf=Math.atan2(ey,j4)-hY*(1-iY)*(1-iY),gX=Math.cos(cf),dk=Math.sin(cf);
jn.map[C]=(iY*gX-j4)*dH;jn.map[C+1]=(iY*dk-ey)*dj}else if(s=="ZgZg"){var gX=0,dk=0,aW=gp*(.5-.5*Math.cos(iY*c8*2*Math.PI))*(1-iY);
if(ba==0){var cf=Math.atan2(ey,j4)-3.5*aW;gX=iY*Math.cos(cf);dk=iY*Math.sin(cf)}if(ba==1){aW=100/c*aW/iY;
gX=(1-aW)*j4;dk=(1-aW)*ey}if(ba==2){var be=512/c*aW*Math.PI/4;gX=be+j4;dk=be+ey}jn.map[C]=(gX-j4)*dH;
jn.map[C+1]=(dk-ey)*dj}}}}}else if(s=="Shr "){var g8=JSON.parse(JSON.stringify(l.ShrP.v));L.so.A(g8,new ae(0,255/127,255/127,0,-2,0));
var d_=L.so.IS(g8,jn.Cm,!0);fJ=l.UndA.v.UndA=="WrpA"?2:1;for(var h1=0;h1<jn.Cm;h1++){var j4=-d_[h1]*jn.h_;
for(var dO=0;dO<jn.h_;dO++){var C=h1*jn.h_+dO<<1;jn.map[C]=j4}}}else if(s=="Wave"){var iG=l.NmbG.v,eN=l.WLMn.v,e0=l.WLMx.v,et=l.AmMn.v*(Math.PI/4),iN=l.AmMx.v*(Math.PI/4),hD=l.SclH.v/100,eO=l.SclV.v/100,fb=l.Wvtp.v.Wvtp,aW=Math.sin;
if(fb=="WvTr")aW=function(dO){dO*=2/Math.PI;return-.5+Math.abs(dO%2-1)};if(fb=="WvSq")aW=function(dO){dO*=2/Math.PI;
return 1+2*Math.floor(dO%2-1)};var j1=[],bZ=new L.a.eT(l.RndS.v);for(var C=0;C<iG;C++){j1.push(bZ.get()*10);
j1.push(Math.PI*gA/(eN+bZ.get()*(e0-eN)));j1.push(hD*(et+bZ.get()*(iN-et))/gA);j1.push(bZ.get()*10);
j1.push(Math.PI*gA/(eN+bZ.get()*(e0-eN)));j1.push(eO*(et+bZ.get()*(iN-et))/gA)}var eo=[],ea=[],c5=Math.max(jn.h_,jn.Cm);
for(var C=0;C<c5;C++){var j4=0,ey=0;for(var iC=0;iC<iG;iC++){var aM=iC*6;j4+=j1[aM+2]*aW(j1[aM]+C*j1[aM+1]);
ey+=j1[aM+5]*aW(j1[aM+3]+C*j1[aM+4])}eo[C]=ey;ea[C]=j4}for(var h1=0;h1<jn.Cm;h1++){for(var dO=0;dO<jn.h_;
dO++){var C=h1*jn.h_+dO<<1;jn.map[C]=ea[h1];jn.map[C+1]=eo[dO]}}fJ=l.UndA.v.UndA=="WrpA"?2:1}else if(s=="Rple"){fJ=1;
var gp=l.Amnt.v/100,fi=4,gO=[0,-.19,-.29,-.32,.92,.37,.93,.54,-.54,.42,-.29,-.58,-.67,.85,0,.64],c_=1,iq=1,hd=0,hH=["Sml","Mdm","Lrg"].indexOf(l.RplS.v.RplS);
if(hH==0){c_=1;iq=.2;hd=3}if(hH==2){c_=1;iq=2;hd=-1;gO=gO.reverse()}var eE=function(dO,h1){var bL=Math.cos,hE=0;
for(var C=0;C<fi;C++)for(var iC=0;iC<fi;iC++)hE+=gO[C*fi+iC]*bL(dO*(C+hd)-h1*(iC+hd));return hE},go=Math.floor(50/gA),eV=new Float32Array(go*go*2),gC=iq*gp*.5/gA;
for(var h1=0;h1<go;h1++)for(var dO=0;dO<go;dO++){var dg=c_*dO*2*Math.PI/go,fg=c_*h1*2*Math.PI/go,h5=eE(dg,fg),j4=(eE(dg+.01,fg)-h5)*100,ey=(eE(dg,fg+.01)-h5)*100,C=(h1*go+dO)*2;
eV[C]=j4*gC;eV[C+1]=ey*gC}for(var h1=0;h1<jn.Cm;h1++)for(var dO=0;dO<jn.h_;dO++){var dk=h1%go,gX=dO%go,C=h1*jn.h_+dO<<1,ga=dk*go+gX<<1;
jn.map[C]=eV[ga];jn.map[C+1]=eV[ga+1]}}}L.Mq.sb(m.buffer,P.buffer,c,y,null,jn.map,jn.h_,jn.Cm,fJ)}return P};
var ew={};ew.vV="BrSm BrsL BrDR BrsW BrbW BrSp".split(" ");ew.Ms="LDBt LDBL LDLf LDTL LDTp LDTR LDRg LDBR".split(" ");
ew.U3=["ScrC","ScrD","ScrL"];ew.N1=["SDRD","SDHz","SDLD","SDVt"];ew.OR="TxBl TxCa TxFr TxTL TxBr TxBu TxSt".split(" ");
ew.h3="LPBt LPBL LPLf LPTL LPTp LPTR LPRg LPBR".split(" ");ew.o7="GrnR GrSf GrSr GrnC GrCn GrnE GrSt GrnH GrnV GrSp".split(" ");
ew.ta=["Artistic","Brush Strokes",[24,4],"Sketch",[24,14],[12,67]];ew.names={ClrP:[0,"Colored Pencil"],Ct:[0,"Cutout"],DryB:[0,"Dry Brush"],FlmG:[0,"Film Grain"],Frsc:[0,"Fresco"],NGlw:[0,"Neon Glow"],PntD:[0,"Paint Daubs"],PltK:[0,"Palette Knife"],PlsW:[0,"Plastic Wrap"],PstE:[0,"Poster Edges"],RghP:[0,"Rough Pastels"],SmdS:[0,"Smudge Stick"],Spng:[0,"Sponge"],Undr:[0,"Underpainting"],Wtrc:[0,"Watercolor"],AccE:[1,"Accented Edges"],AngS:[1,"Angled Strokes"],Crsh:[1,"Crosshatch"],DrkS:[1,"Dark Strokes"],InkO:[1,"Ink Outlines"],Spt:[1,"Spatter"],SprS:[1,"Sprayed Strokes"],Smie:[1,"Sumi-e"],DfsG:[2,"Diffuse Glow"],Gls:[2,"Glass"],OcnR:[2,"Ocean Ripple"],BsRl:[3,"Bas Relief"],ChlC:[3,"Chalk & Charcoal"],Chrc:[3,"Charcoal"],Chrm:[3,"Chrome"],CntC:[3,"Cont\xE9 Crayon"],GraP:[3,"Graphic Pen"],HlfS:[3,"Halftone Pattern"],NtPr:[3,"Note Paper"],Phtc:[3,"Photocopy"],Plst:[3,"Plaster"],Rtcl:[3,"Reticulation"],Stmp:[3,"Stamp"],TrnE:[3,"Torn Edges"],WtrP:[3,"Water Paper"],GlwE:[4,"Glowing Edges"],Crql:[5,"Craquelure"],Grn:[5,"Grain"],MscT:[5,"Mosaic Tiles"],Ptch:[5,"Patchwork"],StnG:[5,"Stained Glass"],Txtz:[5,"Texturizer"]};
ew.Xi=function(s){var m;if(s=="ClrP")m={Pncl:{t:"long",v:4},StrP:{t:"long",v:8},PprB:{t:"long",v:25}};
if(s=="Ct")m={NmbL:{t:"long",v:4},EdgS:{t:"long",v:3},EdgF:{t:"long",v:1}};if(s=="DryB")m={BrsS:{t:"long",v:4},BrsD:{t:"long",v:4},Txtr:{t:"long",v:2}};
if(s=="FlmG")m={Grn:{t:"long",v:4},HghA:{t:"long",v:0},Intn:{t:"long",v:10},FlRs:{t:"long",v:23068185}};
if(s=="Frsc")m={BrsS:{t:"long",v:2},BrsD:{t:"long",v:8},Txtr:{t:"long",v:1}};if(s=="NGlw")m={Sz:{t:"long",v:5},Brgh:{t:"long",v:15},Clr:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:0},Grn:{t:"doub",v:0},Bl:{t:"doub",v:255}}}};
if(s=="PntD")m={Sz:{t:"long",v:10},Shrp:{t:"long",v:10},BrsT:{t:"enum",v:{BrsT:"BrSm"}}};if(s=="PltK")m={StrS:{t:"long",v:25},StDt:{t:"long",v:3},Sftn:{t:"long",v:2}};
if(s=="PlsW")m={HghS:{t:"long",v:20},Dtl:{t:"long",v:4},Smth:{t:"long",v:5}};if(s=="PstE")m={EdgT:{t:"long",v:2},EdgI:{t:"long",v:1},Pstr:{t:"long",v:2}};
if(s=="RghP")m={StrL:{t:"long",v:6},StDt:{t:"long",v:4},TxtT:{t:"enum",v:{TxtT:"TxCa"}},Scln:{t:"long",v:100},Rlf:{t:"long",v:20},LghD:{t:"enum",v:{LghD:"LDBt"}},InvT:{t:"bool",v:!1}};
if(s=="SmdS")m={StrL:{t:"long",v:2},HghA:{t:"long",v:0},Intn:{t:"long",v:10},FlRs:{t:"long",v:6399750}};
if(s=="Spng")m={BrsS:{t:"long",v:2},Dfnt:{t:"long",v:12},Smth:{t:"long",v:5},FlRs:{t:"long",v:218877241}};
if(s=="Undr")m={BrsS:{t:"long",v:6},TxtC:{t:"long",v:16},TxtT:{t:"enum",v:{TxtT:"TxCa"}},Scln:{t:"long",v:100},Rlf:{t:"long",v:4},LghD:{t:"enum",v:{LghD:"LDTp"}},InvT:{t:"bool",v:!1}};
if(s=="Wtrc")m={BrsD:{t:"long",v:9},ShdI:{t:"long",v:1},Txtr:{t:"long",v:3}};if(s=="AccE")m={EdgW:{t:"long",v:2},EdgB:{t:"long",v:38},Smth:{t:"long",v:5}};
if(s=="AngS")m={DrcB:{t:"long",v:50},StrL:{t:"long",v:15},Shrp:{t:"long",v:3}};if(s=="Crsh")m={StrL:{t:"long",v:9},Shrp:{t:"long",v:6},Strg:{t:"long",v:1}};
if(s=="DrkS")m={Blnc:{t:"long",v:5},BlcI:{t:"long",v:6},WhtI:{t:"long",v:2}};if(s=="InkO")m={StrL:{t:"long",v:4},DrkI:{t:"long",v:20},LghI:{t:"long",v:10}};
if(s=="Smie")m={StrW:{t:"long",v:10},StrP:{t:"long",v:5},Cntr:{t:"long",v:16}};if(s=="Spt")m={SprR:{t:"long",v:10},Smth:{t:"long",v:5},FlRs:{t:"long",v:10738420}};
if(s=="SprS")m={StrL:{t:"long",v:12},SprR:{t:"long",v:7},SDir:{t:"enum",v:{StrD:"SDRD"}},FlRs:{t:"long",v:893120664}};
if(s=="DfsG")m={Grns:{t:"long",v:6},GlwA:{t:"long",v:10},ClrA:{t:"long",v:15},FlRs:{t:"long",v:325892160}};
if(s=="Gls")m={Dstr:{t:"long",v:3},Smth:{t:"long",v:1},TxtT:{t:"enum",v:{TxtT:"TxTL"}},Scln:{t:"long",v:100},InvT:{t:"bool",v:!1}};
if(s=="OcnR")m={RplS:{t:"long",v:5},RplM:{t:"long",v:15},FlRs:{t:"long",v:64008840}};if(s=="BsRl")m={Dtl:{t:"long",v:11},Smth:{t:"long",v:7},LghD:{t:"enum",v:{LghD:"LDBt"}}};
if(s=="ChlC")m={ChrA:{t:"long",v:6},ChlA:{t:"long",v:6},StrP:{t:"long",v:1},FlRs:{t:"long",v:314004633}};
if(s=="Chrc")m={ChAm:{t:"long",v:1},Dtl:{t:"long",v:5},LgDr:{t:"long",v:50},GELv:{t:"bool",v:!0}};if(s=="Chrm")m={Dtl:{t:"long",v:4},Smth:{t:"long",v:4}};
if(s=="CntC")m={FrgL:{t:"long",v:11},BckL:{t:"long",v:7},TxtT:{t:"enum",v:{TxtT:"TxCa"}},Scln:{t:"long",v:100},Rlf:{t:"long",v:4},LghD:{t:"enum",v:{LghD:"LDTp"}},InvT:{t:"bool",v:!1}};
if(s=="GraP")m={StrL:{t:"long",v:7},LgDr:{t:"long",v:50},SDir:{t:"enum",v:{StrD:"SDRD"}},FlRs:{t:"long",v:55993248}};
if(s=="HlfS")m={HlSz:{t:"long",v:1},Cntr:{t:"long",v:5},ScrT:{t:"enum",v:{ScrT:"ScrD"}}};if(s=="NtPr")m={ImgB:{t:"long",v:25},Grns:{t:"long",v:10},Rlf:{t:"long",v:11},FlRs:{t:"long",v:52642770}};
if(s=="Phtc")m={Dtl:{t:"long",v:10},Drkn:{t:"long",v:4}};if(s=="Plst")m={ImgB:{t:"long",v:20},Smth:{t:"long",v:2},LghP:{t:"enum",v:{LghP:"LPTp"}}};
if(s=="Rtcl")m={Dnst:{t:"long",v:12},BlcL:{t:"long",v:40},WhtL:{t:"long",v:5},FlRs:{t:"long",v:301835400}};
if(s=="Stmp")m={LgDr:{t:"long",v:25},Smth:{t:"long",v:4}};if(s=="TrnE")m={ImgB:{t:"long",v:25},Smth:{t:"long",v:11},Cntr:{t:"long",v:17},FlRs:{t:"long",v:461109340}};
if(s=="WtrP")m={FbrL:{t:"long",v:15},Brgh:{t:"long",v:60},Cntr:{t:"long",v:80},FlRs:{t:"long",v:83852682}};
if(s=="GlwE")m={EdgW:{t:"long",v:1},EdgB:{t:"long",v:10},Smth:{t:"long",v:1}};if(s=="Crql")m={CrcS:{t:"long",v:15},CrcD:{t:"long",v:6},CrcB:{t:"long",v:9},FlRs:{t:"long",v:495615720}};
if(s=="Grn")m={Intn:{t:"long",v:40},Cntr:{t:"long",v:50},Grnt:{t:"enum",v:{Grnt:"GrnR"}},FlRs:{t:"long",v:217582197}};
if(s=="MscT")m={TlSz:{t:"long",v:12},GrtW:{t:"long",v:3},LghG:{t:"long",v:9},FlRs:{t:"long",v:25445584}};
if(s=="Ptch")m={SqrS:{t:"long",v:4},Rlf:{t:"long",v:8},FlRs:{t:"long",v:383529723}};if(s=="StnG")m={ClSz:{t:"long",v:10},BrdT:{t:"long",v:4},LghI:{t:"long",v:0},FlRs:{t:"long",v:319935998}};
if(s=="Txtz")m={TxtT:{t:"enum",v:{TxtT:"TxBr"}},Scln:{t:"long",v:100},Rlf:{t:"long",v:10},LghD:{t:"enum",v:{LghD:"LDBL"}},InvT:{t:"bool",v:!1}};
m.__name="Filter Gallery";m.classID="GEfc";m.GEfk={t:"enum",v:{GEft:s}};m.GELv={t:"bool",v:!0};return m};
ew.Ka=function(s,m){for(var C=0;C<m.length;C++)~~(m[C]=(s[4*C]+s[4*C+1]+s[4*C+2])*(1/3))};ew.Ga=function(s,m,l,x){var a=UPNG.quantize(s,m);
a={QL:a.inds,qO:a.plte};var P=Math.floor((l+x)*.015);if(P!=0)L.Nt.a6B(a.QL,l,x,P);return a};ew._E=function(s,m,l,x,a,P,o){s=l.GEfk.v.GEft;
var G=m.rect,_=G.e,j=G.l,U=_*j,S=l.FlRs?l.FlRs.v>>>1:0;function X(H){return H.o<<24|H.z<<16|H.S<<8|255}if(s=="ClrP")L.I.aoL(m.buffer,_,j,P.buffer,[l.Pncl.v,l.StrP.v,l.PprB.v]);
if(s=="Ct"){var c=l.NmbL.v,y=l.EdgS.v,O=ew.Ga(m.buffer.buffer,c*2,_,j);for(var C=0;C<O.QL.length;C++)O.QL[C]++;
var p=new Uint8Array((_+2)*(j+2));L.kV(O.QL,new bU(1,1,_,j),p,new bU(0,0,_+2,j+2));var D=L.H.Zo(p,_+2,j+2,y,!1),f=new ae(1,0,0,1,-1,-1);
for(var C=0;C<D.length;C++)L.H.A(D[C].path.s,f,D[C].path.s);var T=[],I=O.qO;for(var C=0;C<I.length;C++){var H=I[C].est.q;
T.push({o:Math.round(255*H[0]),z:Math.round(255*H[1]),S:Math.round(255*H[2]),lz:Math.round(255*H[3])})}var b=L.Uv(_,j);
for(var C=0;C<D.length;C++){var R=D[C],H=T[R.color-1];if(H.lz==0)continue;b.fillStyle="rgba("+H.o+","+H.z+","+H.S+","+H.lz/255+")";
b.beginPath();Typr.U.pathToContext({crds:R.path.s,cmds:R.path.r},b);b.fill()}if(!G.Xh()){var W=b.getImageData(0,0,_,j);
L.qv(W.data,P.buffer)}}if(s=="DryB")L.I.ate(m.buffer,_,j,P.buffer,[l.BrsS.v,l.BrsD.v,l.Txtr.v]);if(s=="FlmG")L.I.a7W(m.buffer,_,j,P.buffer,[l.Grn.v,l.HghA.v,l.Intn.v,S]);
if(s=="Frsc")L.I.a2l(m.buffer,_,j,P.buffer,[l.BrsS.v,l.BrsD.v,l.Txtr.v]);if(s=="NGlw")L.I.aeY(m.buffer,_,j,P.buffer,[l.Sz.v,l.Brgh.v,X(L.K.Qv(l.Clr.v)),X(x),X(a)]);
if(s=="PltK")L.I.a9e(m.buffer,_,j,P.buffer,[l.StrS.v,l.StDt.v,l.Sftn.v]);if(s=="PstE")L.I.ar2(m.buffer,_,j,P.buffer,[l.EdgT.v,l.EdgI.v,l.Pstr.v]);
if(s=="RghP")L.I.anb(m.buffer,_,j,P.buffer,[l.StrL.v,l.StDt.v,ew.OR.indexOf(l.TxtT.v.TxtT),l.Scln.v,l.Rlf.v,ew.Ms.indexOf(l.LghD.v.LghD),l.InvT.v]);
if(s=="SmdS")L.I.asB(m.buffer,_,j,P.buffer,[l.StrL.v,l.HghA.v,l.Intn.v,l.FlRs.v,S]);if(s=="Spng")L.I.at6(m.buffer,_,j,P.buffer,[l.BrsS.v,l.Dfnt.v,l.Smth.v,l.FlRs.v,S]);
if(s=="Undr")L.I.a0E(m.buffer,_,j,P.buffer,[l.BrsS.v,l.TxtC.v,ew.OR.indexOf(l.TxtT.v.TxtT),l.Scln.v,l.Rlf.v,ew.Ms.indexOf(l.LghD.v.LghD),l.InvT.v]);
if(s=="Wtrc")L.I.a1d(m.buffer,_,j,P.buffer,[l.BrsD.v,l.ShdI.v,l.Txtr.v]);if(s=="AccE")L.I.agr(m.buffer,_,j,P.buffer,[l.EdgW.v,l.EdgB.v,l.Smth.v]);
if(s=="AngS")L.I.aiC(m.buffer,_,j,P.buffer,[l.DrcB.v,l.StrL.v,l.Shrp.v]);if(s=="Crsh")L.I.a6f(m.buffer,_,j,P.buffer,[l.StrL.v,l.Shrp.v,l.Strg.v]);
if(s=="DrkS")L.I.a3f(m.buffer,_,j,P.buffer,[l.Blnc.v,l.BlcI.v,l.WhtI.v]);if(s=="InkO")L.I.a01(m.buffer,_,j,P.buffer,[l.StrL.v,l.DrkI.v,l.LghI.v]);
if(s=="Smie")L.I.a3X(m.buffer,_,j,P.buffer,[l.StrW.v,l.StrP.v,l.Cntr.v]);if(s=="DfsG")L.I.aja(m.buffer,_,j,P.buffer,[l.Grns.v,l.GlwA.v,l.ClrA.v,X(a),S]);
if(s=="CntC")L.I.a9J(m.buffer,_,j,P.buffer,[l.FrgL.v,l.BckL.v,ew.OR.indexOf(l.TxtT.v.TxtT),l.Scln.v,l.Rlf.v,ew.Ms.indexOf(l.LghD.v.LghD),l.InvT.v,X(a),X(x)]);
if(s=="ChlC")L.I.a6y(m.buffer,_,j,P.buffer,[l.ChrA.v,l.ChlA.v,l.StrP.v,S,X(a),X(x)]);var J=s=="GraP"||s=="Chrc"||s=="Plst"||s=="Rtcl"||s=="Stmp"||s=="TrnE";
if(J){var u=L.B(_*j);if(s=="GraP")L.I.ado(m.buffer,_,j,P.buffer,[l.StrL.v,l.LgDr.v,ew.N1.indexOf(l.SDir.v.StrD),S]);
if(s=="Chrc")L.I.ak7(m.buffer,_,j,P.buffer,[l.ChAm.v,l.Dtl.v,l.LgDr.v]);if(s=="Plst")L.I.ah1(m.buffer,_,j,P.buffer,[l.ImgB.v,ew.h3.indexOf(l.LghP.v.LghP),l.Smth.v]);
if(s=="Rtcl")L.I.aqo(m.buffer,_,j,P.buffer,[l.Dnst.v,l.BlcL.v,l.WhtL.v,S]);if(s=="Stmp")L.I.aft(m.buffer,_,j,P.buffer,[l.LgDr.v,l.Smth.v]);
if(s=="TrnE")L.I.af4(m.buffer,_,j,P.buffer,[l.ImgB.v,l.Smth.v,l.Cntr.v,S]);L.hy(P.buffer,u,0);ew.ne(u,P.buffer,x,a)}if(s=="NtPr")L.I.arX(m.buffer,_,j,P.buffer,[l.ImgB.v,l.Grns.v,l.Rlf.v,X(x),X(a),S]);
if(s=="WtrP")L.I.aci(m.buffer,_,j,P.buffer,[l.FbrL.v,l.Brgh.v,l.Cntr.v,S>>>1]);if(s=="Crql")L.I.acS(m.buffer,_,j,P.buffer,[l.CrcS.v,l.CrcD.v,l.CrcB.v,S]);
if(s=="Grn")L.I.ahq(m.buffer,_,j,P.buffer,[l.Intn.v,ew.o7.indexOf(l.Grnt.v.Grnt),l.Cntr.v,X(x),X(a),S]);
if(s=="MscT")L.I.ajZ(m.buffer,_,j,P.buffer,[l.TlSz.v,l.GrtW.v,l.LghG.v,S]);if(s=="Ptch")L.I.acg(m.buffer,_,j,P.buffer,[l.SqrS.v,l.Rlf.v,S]);
if(s=="Phtc"){function e(cA,jg,G,cg){L.yf.iC(cA,jg,G,cg);for(var C=0;C<U;C++)jg[C]=Math.max(0,Math.min(255,128+cA[C]-jg[C]))}var Q=l.Dtl.v,q=l.Drkn.v,Z=L.B(U);
L.A1(m.buffer,Z);var E=L.B(U);e(Z,E,G,1);if(Q==1){Q=2;q=Math.round(q/4)}var z=L.B(U);e(Z,z,G,Q);for(var C=0;
C<U;C++)Z[C]=Math.max(0,Math.min(255,255-(E[C]-z[C])*q));ew.ne(Z,P.buffer,x,a)}if(s=="Spt"||s=="SprS"){var V,Y=1,d=1;
V={h_:Math.floor(_/d),Cm:Math.floor(j/d)};V.map=new Float32Array(V.h_*V.Cm*2);var w=new L.a.eT(l.FlRs.v),A=new Float32Array(8192),$=l.SprR.v,i=$<20?.018*$:.36+($-20)*.128;
if(s=="SprS"){i=.07+[0,.02,.04,.06,.08,.1,.12,.14,.16,.18,.2,.22,.24,.26,.28,.3,.34,.38,.5,.65,.75,.85,1,1.5,2.2,3][$]}for(var C=0;
C<8192;C++)A[C]=(-1+2*w.get())*i*70;for(var K=0;K<j;K++)for(var h=0;h<_;h++){var F=K*_+h<<1;V.map[F]=A[F%7919];
V.map[F+1]=A[(F+1)%7919]}var N=V.map.slice(0),iQ=s=="Spt"?l.Smth.v-1:1;if(s=="Spt"&&iQ!=0){ew.G8(V.map,N,_,j,iQ);
ew.pI(N,V.map,_,j,iQ)}if(s=="SprS"){var jB=l.StrL.v>>>1,k=jB==0?2:1;ew.G8(V.map,N,_,j,k);ew.pI(N,V.map,_,j,k);
if(jB!=0){var ab=ew.N1.indexOf(l.SDir.v.StrD),f_=[1,1,1,0][ab],fc=[-1,0,1,1][ab],g8=2*jB+1,bH=1/g8;for(var K=0;
K<j;K++)for(var h=0;h<_;h++){var F=K*_+h<<1,cR=0,hr=0;for(var C=0;C<g8;C++){var h$=Math.max(0,Math.min(_-1,h-(jB+C)*f_)),gE=Math.max(0,Math.min(j-1,K-(jB+C)*fc)),d8=gE*_+h$<<1;
cR+=V.map[d8];hr+=V.map[d8+1]}N[F]=cR*bH;N[F+1]=hr*bH}V.map=N}}L.Mq.sb(m.buffer,P.buffer,_,j,null,V.map,V.h_,V.Cm,Y)}if(s=="BsRl"||s=="PlsW"||s=="Chrm"){var hG=Date.now(),f7=L.B(U),hX=f7.slice(0);
L.A1(m.buffer,f7);var Q=l.Dtl.v,fB=l.Smth.v;if(Q!=15){L.yf.FS(f7,hX,G,Math.round((15-Q)*.5));L.qv(hX,f7)}var e5=1.4/_,g9=1.4/j,cL=new Float32Array(U),bf=new Float32Array(U),gF=new Float32Array(P.buffer.buffer);
for(var K=0;K<j;K++)for(var h=0;h<_;h++){var C=K*_+h,f_=h==_-1?f7[C]-f7[C-1]:f7[C+1]-f7[C],fc=K==j-1?f7[C]-f7[C-_]:f7[C+_]-f7[C],iC=h*e5-.7,ax=K*g9-.7;
cL[C]=f_==0?iC:f_*.4;bf[C]=fc==0?ax:fc*.4}if(s=="BsRl"){var e7=(2+ew.Ms.indexOf(l.LghD.v.LghD))*Math.PI*.25,cR=Math.cos(e7);
if(Math.abs(cR)<.1)cR=0;cR=Math.sign(cR);var hr=Math.sin(e7);if(Math.abs(hr)<.1)hr=0;hr=Math.sign(hr);
var dO=1/(cR*cR+hr*hr);for(var K=0;K<j;K++)for(var h=0;h<_;h++){var C=K*_+h,h1=Math.max(-1,Math.min(1,cR*cL[C])),hL=Math.max(-1,Math.min(1,hr*bf[C]));
hX[C]=128+127*(h1+hL)*dO}if(fB!=1){L.yf.FS(hX,f7,G,Math.round((fB-1)*.5));L.qv(f7,hX)}ew.ne(hX,P.buffer,x,a)}else{if(s=="Chrm")fB=5+fB;
if(fB>1)ew.hL(cL,bf,gF,G,fB-1);if(s=="PlsW"){var jl=new Uint8Array(cL.buffer);for(var C=0;C<U;C++){var gT=C<<2,f_=cL[C],fc=bf[C],hZ=1/(Math.sqrt(1+f_*f_)*Math.sqrt(1+fc*fc)),j6=hZ*hZ,aP=j6*j6,H=~~(255*(aP*aP*j6));
jl[gT+0]=H;jl[gT+1]=H;jl[gT+2]=H;jl[gT+3]=H}P.buffer.set(m.buffer);L.a.$P("norm",jl,G,P.buffer,G,G,l.HghS.v/20)}else if(s=="Chrm"){var h7=P.buffer,fa=_>>>1,h4=j>>>1;
for(var C=0;C<U;C++){var gT=C<<2,f_=cL[C],fc=bf[C],cA={x:1,y:0,DX:f_};jo.ov(cA);var jg={x:0,y:1,DX:fc};
jo.ov(jg);var cS=jo.wb(cA,jg),iT=1/cS.DX,cf=~~Math.max(0,Math.min(_-1,fa-cS.x*iT*fa)),ir=~~Math.max(0,Math.min(j-1,h4-cS.y*iT*h4)),H=f7[ir*_+cf];
h7[gT+0]=H;h7[gT+1]=H;h7[gT+2]=H}}}}if(s=="Gls"||s=="OcnR"||s=="Txtz"){var gp=s=="OcnR"?2:ew.OR.indexOf(l.TxtT.v.TxtT),j4=ew.K9(gp),ey=j4[0],f7=j4[1],ca=ey.e,iu=ey.l,g8=24,em=0,eq,ie;
function jv(e_,d7,ha){return~~(g$*(e_+d7)+8192)&127}var cL=new Float32Array(U),bf=new Float32Array(U),gF=new Float32Array(P.buffer.buffer),g$=s=="OcnR"?1/(1+(l.RplS.v-1)*.1):100/l.Scln.v;
if(gp==3)g$*=32/22.2;var hG=Date.now(),cy=g$,e5=1.4/_,g9=1.4/j;if(s=="Txtz"){cy*=1/255;g8=256}for(var K=0;
K<j;K++){var cK=jv(K,G.y,iu),gE=cK+1&127;for(var h=0;h<_;h++){var C=K*_+h,cN=jv(h,G.x,ca),h$=cN+1&127,cJ=0,fb=0,cd=0;
if(s=="Txtz"){cJ=L.V.C4(g$*h,g$*K,f7,128,128);fb=L.V.C4(g$*h,g$*K+1,f7,128,128);cd=L.V.C4(g$*h+1,g$*K,f7,128,128)}else{cJ=f7[cK*ca+cN];
fb=f7[gE*ca+cN];cd=f7[cK*ca+h$]}cL[C]=Math.max(-g8,Math.min((cd-cJ)*cy,g8));bf[C]=Math.max(-g8,Math.min((fb-cJ)*cy,g8))}}if(s=="Txtz")ew.Fl(cL,bf,gF,G,6);
else ew.hL(cL,bf,gF,G,s=="Txtz"?1:s=="OcnR"?3.5/g$:l.Smth.v);if(s=="Txtz")em=l.InvT.v?-1:1;else if(s=="Gls"){em=[1,.4,.5,.5][gp]*(Math.exp(l.Dstr.v*.155)-1);
if(l.InvT.v)em=-em}else{em=.5*(Math.exp(l.RplM.v*.155)-1)}var h7=P.buffer;if(s=="Txtz"){var e7=(2+ew.Ms.indexOf(l.LghD.v.LghD))*Math.PI*.25,cR=Math.cos(e7),hr=Math.sin(e7);
eq={x:cR,y:hr,DX:0};jo.ov(eq);ie=l.Rlf.v;ie=ie/4+Math.max(0,(ie-35)*2)}function jf(cA,jg,j9){var eS=L.a.overF(jg,cA,1),e_=(1-j9)*cA+j9*(j9*jg+(1-j9)*eS);
return e_*255}for(var K=0;K<j;K++)for(var h=0;h<_;h++){var C=K*_+h,gT=C<<2,f_=cL[C],fc=bf[C],cA={x:1,y:0,DX:f_};
jo.ov(cA);var jg={x:0,y:1,DX:fc};jo.ov(jg);var cS=jo.wb(cA,jg);if(s=="Txtz"){var i3=jo.at4(cS,eq)*em,j9=1,H=1;
if(i3<0){H=0;i3=-i3}j9=Math.min(1,i3*ie);h7[gT+0]=~~jf(m.buffer[gT]*(1/255),H,j9);h7[gT+1]=~~jf(m.buffer[gT+1]*(1/255),H,j9);
h7[gT+2]=~~jf(m.buffer[gT+2]*(1/255),H,j9)}else{var iT=em/cS.DX,cf=~~Math.max(0,Math.min(_-1,h-cS.x*iT)),ir=~~Math.max(0,Math.min(j-1,K-cS.y*iT)),dm=ir*_+cf<<2;
h7[gT+0]=m.buffer[dm];h7[gT+1]=m.buffer[dm+1];h7[gT+2]=m.buffer[dm+2]}}}if(s=="PntD"){var jy=l.Shrp.v*.4,eg=l.BrsT.v.BrsT,a$={BrSm:[.75],BrsL:[.85],BrDR:[.68],BrsW:[.75],BrbW:[.78],BrSp:[.62]}[eg],cg=Math.round(l.Sz.v*.5);
L.Du.Qp=a$[0];var gt=L.Du.CQ;L.Du.iL(m.buffer,P.buffer,_,j,cg,gt,[]);var i2=[-.7,-1,-.7,-1,10,-1,-.7,-1,-.7];
i2=L.Rv.UR(i2);var cZ=P.buffer.slice(0);L.Rv.cz(cZ,P.buffer,_,j,i2,0);for(var C=0;C<m.buffer.length;
C++){var g5=P.buffer[C]-cZ[C];P.buffer[C]=Math.max(0,Math.min(255,cZ[C]+jy*g5))}}if(s=="GlwE"){var ip=P.buffer.slice(0);
L.Du.Qp=.5;var gt=L.Du.CQ;L.Du.iL(m.buffer,ip,_,j,l.Smth.v>>>1,gt,[]);L.Rv.Id(ip,P.buffer,_,j);L.qv(P.buffer,ip);
L.ms(ip);L.MP(ip,4278190080,16777215);L.Du.iL(ip,P.buffer,_,j,l.EdgW.v>>>1,L.Du.R1,[]);var db=l.EdgB.v/10;
for(var C=0;C<ip.length;C++){if((C&3)==3)continue;var eS=P.buffer[C];P.buffer[C]=Math.max(0,Math.min(255,eS*db))}}if(s=="StnG"){L.wN.a8z(m.buffer,_,j,P.buffer,l.ClSz.v,[Math.round(x.o),Math.round(x.z),Math.round(x.S)],l.BrdT.v)}if(s=="HlfS"){var a1=l.HlSz.v,im=a1*2+1,e3=l.Cntr.v,gu=ew.U3.indexOf(l.ScrT.v.ScrT),U=_*j,f3=U*4,jw=L.B(U),dE=m.buffer,c9=0,aF=0;
ew.Ka(dE,jw);var d9=jw.slice(0);L.yf.GV(d9,jw,G,a1);var iz=Math.PI/im,jE=new Float64Array(_),cR=new Float64Array(_),dS=new Float64Array(2*_);
for(var h=0;h<_;h++){var cN=(h-(_>>>1))*iz;jE[h]=cN*cN;cR[h]=Math.cos(cN);var f_=h<<1;dS[f_]=Math.sin(f_*(1/4.5));
dS[f_+1]=Math.sin((f_+1)*(1/4.5))}for(var K=0;K<j;K++){var cK=(K-(j>>>1))*iz,hr=Math.cos(cK),au=cK*cK;
for(var h=0;h<_;h++){var H=hr;if(gu==0){var cc=.5+Math.sqrt(jE[h]+au)*4.5;H=dS[~~cc]}else if(gu==1){H=cR[h]*hr}var C=K*_+h,bN=jw[C]*(.75+.25*H),j9=dE[(C<<2)+3]*(1/255),jd=Math.max(0,Math.min(255,~~bN));
c9+=jd*j9,aF+=j9;jw[C]=jd}}c9/=aF;var cv=128+1.26*(c9-128),db=.08+.25*Math.abs((128-c9)/128),iK=1+db*e3;
for(var C=0;C<U;C++){var bN=cv+(jw[C]-cv)*iK;jw[C]=Math.max(0,Math.min(255,~~bN))}if(e3>46)L.round(jw);
ew.ne(jw,P.buffer,x,a)}for(var C=0;C<m.buffer.length;C+=4)P.buffer[C+3]=m.buffer[C+3]};ew.ne=function(s,m,l,x){var a=s.length,P=l.o,o=l.z,G=l.S,_=x.o,j=x.z,U=x.S;
for(var C=0;C<a;C++){var S=s[C]*(1/255),X=1-S,c=C<<2;m[c]=~~(P*X+_*S);m[c+1]=~~(o*X+j*S);m[c+2]=~~(G*X+U*S)}};
ew.K9=function(s){if(s==6)s=2;var m="blocks canvas frosted tinylens brick burlap".split(" ")[s];if(ew._X==null)ew._X=[];
if(ew._X[s]==null){var l,x;if(s==2){x=new bU(0,0,128,128);var a=ib.Xi("AdNs");a.Mnch.v=!0;a.Dstr.v.Dstr="Gsn";
a.Nose.v.val=50;var l=L.B(x.k()*4),P=l.slice(0);new Uint32Array(P.buffer).fill(4286611584);ib._E("AdNs",{buffer:P,rect:x},a,0,0,{buffer:l,rect:x})}else{var o=iO.L0.get("tex/"+m,!0)[0];
x=o.Sb;l=new Uint8Array(o.data)}var G=L.B(x.k());L.hy(l,G,0);ew._X[s]=[x,G]}return ew._X[s]};ew.hL=function(s,m,l,x,a){if(a<=1){a=Math.round(a);
ew.Fl(s,m,l,x,[1,16,4][a]);return}var G=a*.42;if(s){L.yf.kH(s,l,x,G,3);s.set(l)}if(m){L.yf.kH(m,l,x,G,3);
m.set(l)}};ew.Fl=function(s,m,l,x,a){var G=L.Rv.UR([1,2,1,2,a,2,1,2,1]);if(s){l.set(s);L.Rv.lt(s,l,x.e,x.l,G);
s.set(l)}if(m){l.set(m);L.Rv.lt(m,l,x.e,x.l,G);m.set(l)}};ew.Te=function(s){if(s==null)return new fz(0,0);
var m=0,l=s.GEfs?s.GEfs.v:[{v:s}];for(var C=0;C<l.length;C++){var x=l[C].v,P=1e4;if(x.GELv&&!x.GELv.v)continue;
var a=x.GEfk.v.GEft;if(a=="GlwE"||a=="Phtc"||a=="BsRl"||a=="PlsW"||a=="Chrm"||a=="Gls"||a=="OcnR")P=0;
m=Math.max(m,P)}return new fz(m,m)};ew.zb=function(s){var m=[0,0,0,0,0,0,0,0,0,0,0,0,0],l=[0,.6,.7,.8,1,1.2,1.4,1.6,1.8,2,2.2,2.6,3,4,5][s];
for(var C=0;C<13;C++){var x=C-6;m[C]=1/(l*Math.sqrt(2*Math.PI))*Math.exp(-.5*(x/l)*(x/l))}return m};
ew.G8=function(s,m,l,x,a){var P=ew.zb(a),o=6,G=13;for(var _=0;_<x;_++)for(var j=0;j<l;j++){var U=_*l+j<<1,S=0,X=0;
for(var C=0;C<G;C++){var c=j+C-o,y=c<0?0:c>=l?l-1:c,O=(_*l+y)*2,p=P[C];S+=p*s[O];X+=p*s[O+1]}m[U]=S;
m[U+1]=X}};ew.pI=function(s,m,l,x,a){var P=ew.zb(a),o=6,G=13;for(var _=0;_<x;_++)for(var j=0;j<l;j++){var U=_*l+j<<1,S=0,X=0;
for(var C=0;C<G;C++){var c=_+C-o,y=c<0?0:c>=x?x-1:c,O=(y*l+j)*2,p=P[C];S+=p*s[O];X+=p*s[O+1]}m[U]=S;
m[U+1]=X}};function aA(){}aA.Nx=[2,5,5,7,4,4];aA.EB="norm,diss,dark,mul ,idiv,lbrn,dkCl,lite,scrn,div ,lddg,lgCl,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv,hue ,sat ,colr,lum ".split(",");
aA.Bo="Nrml Dslv Drkn Mltp CBrn linearBurn darkerColor Lghn Scrn CDdg linearDodge lighterColor Ovrl SftL HrdL vividLight linearLight pinLight hardMix Dfrn Xclu blendSubtraction blendDivide H Strt Clr Lmns".split(" ");
aA.dP=[[15,10,0],[15,10,1],[15,10,2],[15,10,3],[15,10,4],[15,10,5],[15,10,6],[15,10,7],[15,10,8],[15,10,9],[15,10,10],[15,10,11],[15,10,12],[15,10,13],[15,10,14],[15,10,15],[15,10,16],[15,10,17],[15,10,18],[15,10,19],[15,10,20],[15,10,21],[15,10,22],[15,10,23],[15,10,24],[15,10,25],[15,10,26]];
aA.jT=["normal",null,"darken","multiply","color-burn",null,null,"lighten","screen","color-dodge",null,null,"overlay","soft-light","hard-light",null,null,null,null,"difference","exclusion",null,null,"hue","saturation","color","luminosity"];
aA.wq=function(s){if(s=="passThrough")return"pass";return aA.EB[aA.Bo.indexOf(s)]};aA.bH=function(s){if(s=="pass")return"passThrough";
return aA.Bo[aA.EB.indexOf(s)]};aA.getName=function(s){return aA.dP[aA.EB.indexOf(s)]};function t(){this.rect=null;
this.buffer=null;this.TR="norm";this.opacity=255;this.uK=!1;this.Yy=0;this.FX=0;this.KV=!0;this.kt=[];
for(var C=0;C<10;C++)this.kt.push(0,0,255,255);this.name=null;this.add={};this.o_=null;this.pf=null;
this.v=null;this.GR=null;this.aec=30;this.cw=t.Ap();this.ad$=t.Ap();this.ahQ=t.Ap();this.a6l=t.Ap();
this.Ar=0;this.UB=!1;this.Bl=null;this.GM=new t.Cf}t.Ap=function(){var s=document.createElement("canvas");
s.width=s.height=30;return s.getContext("2d")};t.Cf=function(){this.fo=!0;this.qZ=!0;this.vO=L.B(0);
this.aj7=L.B(0);this.mn=null;this.vN={};this.ab0=null;this.w8=null;this.Xd=null;this.N2=null;this.Cd=null;
this.my=null;this.tb=null;this.Y_=null;this.bP=null;this.ab=null;this.JZ=null;this.L5=null;this.v6=!1};
t.Cf.prototype.jL=function(){this.fo=!1;this.qZ=!1;this.mn=null;this.v6=M.wR};t.Cf.prototype.a8A=function(){jo.Xw(this.vN);
this.vO=L.B(0);this.aj7=L.B(0);if(this.N2)this.N2.delete();if(this.Cd)this.Cd.delete();this.N2=null;
this.Cd=null;var s=[this.my,this.tb,this.Y_,this.bP,this.ab,this.JZ];for(var C=0;C<6;C++)if(s[C]!=null&&s[C]instanceof M.KY)s[C].delete();
this.my=null;this.tb=null;this.Y_=null;this.bP=null;this.ab=null;this.JZ=null};t.prototype.F=function(s){if(s==null)s=this.rect.clone();
if(this.GM.mn==null)this.GM.mn=s;else this.GM.mn=this.GM.mn.if(s)};t.prototype.gu=function(){return this.add.lsct==hN.yF||this.add.lsct==hN.fs};
t.prototype.Ee=function(){var s=this.add;return s.SoCo!=null||s.GdFl!=null||s.PtFl!=null};t.prototype.yU=function(){var s=this.add.lmfx;
if(s==null)return;var m=["GrFl","patternFill"];for(var C=0;C<m.length;C++){var l=i4.rm[i4.order.indexOf(m[C])],x=s[l].v;
if(x.length==0)continue;for(var a=0;a<x.length;a++){var P=x[a].v;if(P.enab.v&&(P.Algn==null||!P.Algn.v))this.GM.qZ=!0}}};
t.prototype.OH=function(){var s=this.v;if(this.Ee())s=this.SE();if(!M.wR)return s.$k();if(this.GM.Cd==null||this.GM.fo||M.wR!=this.GM.v6){if(this.GM.Cd)this.GM.Cd.delete();
this.GM.Cd=new M.t$(s.E2().e,s.E2().l);this.GM.Cd.set(s.$k())}return this.GM.Cd};t.prototype.kk=function(s){var m=this.rect,l=this.buffer;
if(!M.wR){var x=this.MR(s,l,m);if(x){l=x.du;m=x.rect}return l}if(this.GM.mn!=null||M.wR!=this.GM.v6){var x=this.MR(s,l,m);
if(x){l=x.du;m=x.rect}var a=m;if(M.wR!=this.GM.v6||this.GM.N2==null||this.GM.N2.e!=a.e||this.GM.N2.l!=a.l){if(this.GM.N2)this.GM.N2.delete();
this.GM.N2=new M.KY(a.e,a.l);this.GM.N2.set(l)}else{var P=this.GM.mn.clone();P.offset(-m.x,-m.y);this.GM.N2.set(l,P)}}return this.GM.N2};
t.prototype.RS=function(){var s=this.v;if(this.Ee())s=this.SE();return s!=null&&s.isEnabled&&(!s.rect.Xh()||s.Qv()!=255)};
t.prototype.MR=function(s,m,l){if(this.UI()){var x=this.Ao(s);if(x.v&&x.v.isEnabled&&(!x.v.rect.Xh()||x.v.color==0)){var a=this.add.SoLd.filterFX.v;
x.v.X5=a.filterMaskDensity?a.filterMaskDensity.v:255;x.v.l2=a.filterMaskFeather?a.filterMaskFeather.v:0;
var P=x.buffer,o=x.rect;if(o.k()<l.k()){o=l;P=L.B(o.k()*4);L.yx(x.buffer,x.rect,P,o)}var G=x.v.dG(l);
L.ms(G);m=m.slice(0);L.a.HZ(P,o,m,l,G,l,0,l,1);return{du:m,rect:l}}}};t.prototype.abL=function(){var s={AQ:!1,rn:!1,O9:0,Oa:0};
if(this.add.vmsk&&this.add.vmsk.isEnabled)s.rn=!0;if(this.SE()&&this.SE().isEnabled)s.AQ=!0;if(s.AQ&&s.rn){s.O9=this.SE().rect.x-this.add.vmsk.SE().rect.x;
s.Oa=this.SE().rect.y-this.add.vmsk.SE().rect.y}return s};t.prototype.sN=function(s){if(this.add.lsct==hN.k_)return;
var m=this,l=this.SE()!=null&&this.SE().A$,x=this.add.vmsk!=null&&this.add.vmsk.A$,a=this.abL(),P=JSON.stringify(a)!=this.GM.ab0||a.AQ&&l||a.rn&&x;
if(P){if(a.rn){var o=this.add.vmsk.SE();if(a.AQ){this.v=this.SE().fH(o);this.GM.w8=new fz(this.v.rect.x-this.SE().rect.x,this.v.rect.y-this.SE().rect.y)}else this.v=o}if(this.v)this.GM.fo=!0;
if(this.v)this.GM.Xd=new fz(this.rect.x-this.v.rect.x,this.rect.y-this.v.rect.y);if(a.AQ)this.SE().A$=!1;
if(a.rn)this.add.vmsk.A$=!1;this.F()}else{if(a.AQ&&a.rn){this.v.rect.x=this.SE().rect.x+this.GM.w8.x;
this.v.rect.y=this.SE().rect.y+this.GM.w8.y}}if(m.Ee()){this.N6(s)}if(m.Kg()){var G;if(this.v)G=new fz(this.rect.x-this.v.rect.x,this.rect.y-this.v.rect.y);
if(this.v&&this.v.isEnabled&&(this.GM.Xd==null||!G.yb(this.GM.Xd))){this.GM.Xd=G;this.F();this.GM.fo=!0}}if(eb.get(m.add)!=null)this.GM.fo=!0;
this.GM.ab0=JSON.stringify(a)};t.prototype.N6=function(s){var m=this,l=m.add.vstk,x=new bU(0,0,s.e,s.l),a,P=m.add.vmsk?this.add.vmsk.SE():null,_=!0;
if(P&&P.isEnabled&&P.Qv()==0)a=P.E2().clone();else a=x;var o=m.SE();if(o&&o.isEnabled&&o.Qv()==0)a=a.pF(m.v.E2());
var G=P&&l;if(l&&(!l.strokeEnabled.v||l.strokeStyleLineWidth.v.val==0))G=!1;if(l&&!l.fillEnabled.v&&G)_=!1;
var j=L.B(a.k()*4);if(_){if(m.add.SoCo)jo.k2(j,m.add.SoCo.Clr.v);if(m.add.GdFl){var U=P&&P.color==0?L.j.dj(m.add.vmsk.T,null,!0):null;
jo.NF(m.add.GdFl,j,a,s,null,U)}if(m.add.PtFl)jo.Op(m.add.PtFl,j,a,s.add.Patt,m.add.fxrp)}if(P){var S=P.X5;
if(G)P.X5=255;var X=L.B(a.k());if(P.Qv()!=0)X.fill(Math.round(P.Qv()));if(P&&P.isEnabled){var c=P.E2(),y=P.$k();
if(c.yb(a))L.qv(y,X);else L.kV(y,c,X,a)}if(m.add.SoCo&&_){L._Y(X,j,3)}else L.Iq(X,a,j,a);if(G)P.X5=S}m.buffer=j;
m.rect=a;if(G){var O=i4.Ah.Es.indexOf(l.strokeStyleLineAlignment.v.strokeStyleLineAlignment),p=l.strokeStyleContent.v,D=i4.Ah.Lk.indexOf(p.classID),f=this.add.vmsk.SE(l);
if(m.rect.yb(x))m.rect=m.rect;else if(O!=0){var T=m.rect.if(f.E2()),I=L.B(T.k()*4);L.yx(m.buffer,m.rect,I,T);
m.buffer=I;m.rect=T}var S=f.X5;f.X5=255;var H=f.dG(m.rect);f.X5=S;if(f.color==255)L.ms(H);var b=L.B(m.rect.k()*4);
if(D==0)jo.k2(b,p.Clr.v);if(D==1)jo.NF(p,b,m.rect,s,null,P.color==0?P.rect:null);if(D==2)jo.Op(p,b,m.rect,s.add.Patt,m.add.fxrp);
var R=l.strokeStyleOpacity.v.val/100;if(R!=1)L.EU(H,R);if(f.color==255)O=2-O;if(O<2){L.a.HZ(b,m.rect,m.buffer,m.rect,H,m.rect,255,m.rect,1,!1);
if(O==0)L.$n(X,m.buffer)}if(O==2){L.$n(H,b);L.ms(X);L.a.HZ(b,m.rect,m.buffer,m.rect,X,a,255,m.rect,1,!1);
L.ms(X)}if(f.X5!=255){var W=b.slice(0);L.MP(W,4278190080,16777215);L.a.$P("norm",W,m.rect,m.buffer,m.rect,m.rect,1-f.X5/255)}S=P.X5;
P.X5=255;this.aj7=P.dG(m.rect);P.X5=S}this.F()};t.prototype.y2=function(s,m){var l=this,x=l.add.SoLd.Idnt.v,a=l.add.SoLd,P=L.H.ge(r.Q.qN(a.nonAffineTransform)),o=s.WN(x,a.Crop?a.Crop.v:null,[P.e,P.l],a.Impr.v.classID);
if(o==null)return;var G=o.H6;a.Sz.v.Wdth.v=G[1].e;a.Sz.v.Hght.v=G[1].l;var _=a.warp.v,j=r.Q.qN(a.nonAffineTransform),U=L.V.CX(j,G[1]);
if(_&&!L.Lv.AY(_)){var P=L.H.ge(L.Lv.Y4(_)),S=P.x,X=P.y,c=1/P.e,y=1/P.l;U=L.V.CX(j);U=L.V.fH(U,[c,0,-S*c,0,y,-X*y,0,0])}var O=r.Q._i(G,m?0:1,U,_,null,null,null,m);
if(O==null){l.buffer=L.B();l.rect=new bU}else if(l.UI()){var p=l.Ao(s);p.buffer=O.buffer;p.rect=O.rect.clone();
this.zp(s,m)}else{l.buffer=O.buffer;l.rect=O.rect}l.sN(s);l.F();s.F()};t.prototype.zp=function(s,m){if(m==null)m=!1;
var l=this.Ao(s),x=this.add.SoLd.filterFX.v,a=ib.a3n(x),P=new bU(0,0,s.e,s.l),o=l.rect.if(P),G=l.rect.clone();
G.yD(a.x,a.y);var _={buffer:null,rect:o.pF(G)};_.buffer=L.B(_.rect.k()*4);L.yx(l.buffer,l.rect,_.buffer,_.rect);
if(x.enab.v&&m==!1){var j=x.filterFXList.v;for(var C=0;C<j.length;C++){var U=j[C].v;if(U.enab.v==!1)continue;
var S=U.blendOptions.v,X=aA.wq(S.Md.v.BlnM),c=S.Opct.v.val/100,y=L.K.Qv(U.FrgC.v),O=L.K.Qv(U.BckC.v),p=ib.HK(U),D={buffer:L.B(_.buffer.length),rect:_.rect.clone()},f=U.Fltr?U.Fltr.v:null;
if(eb.v9[p]!=null){var T=eb.v9[p],I=eb.vC(T,f);if(I)eb._E(I,_.buffer,D.buffer,_.rect)}else ib._E(p,_,f,y,O,D,[s.add.lnk2?s.add.lnk2:[],this.SE(),s.$_]);
if(X=="norm"&&c==1)_=D;else if(X=="norm"){L.a.HZ(D.buffer,D.rect,_.buffer,_.rect,null,null,null,_.rect,c)}else{L.a.$P(X,D.buffer,D.rect,_.buffer,_.rect,_.rect,c)}}}this.rect=_.rect;
this.buffer=_.buffer;this.zr();this.F();s.F()};t.prototype.Hh=function(s,m,l){this.Bl=this.x2(s,m,l)};
t.prototype.Ml=function(s,m){var l=this.x2(s,m,!0);if(l==null)return null;var x={GF:l.Ar,uN:l.q6,rect:l.Im};
if(x.GF==1||x.GF==3){var a=x.rect,P=L.B(a.e*a.l*4);L._Y(x.uN,P,0);L._Y(x.uN,P,1);L._Y(x.uN,P,2);L.oK(s.q.channel,s.q.rect,P,a);
x.uN=P}return x};t.prototype.x2=function(s,m,l){var x,a,P,o,G,_,j;if(this.Ar<=0){var U=L.B(this.rect.k());
L.hy(this.buffer,U,3);x=L.e1.a2(m,{channel:U,rect:this.rect},3);if(x==null)return null;var S=L.zQ(x.channel,x.rect);
o=x.rect.clone();G=this.rect.clone();a=L.B(o.k()*4);L.yx(this.buffer,G,a,o);L._Y(x.channel,a,3);P=this.buffer.slice(0);
if(!l){var X=m.channel.slice(0);L.ms(X);L.Iq(X,m.rect,P,G)}_=this.buffer.slice(0);j=this.rect.clone()}if(this.Ar==1||this.Ar==3){var c=this.Ar==1?this.SE():this.Ao(s).v;
o=m.rect.clone();G=c.rect.clone();a=c.gB(o);var P=c.channel.slice(0);if(!l)L.a.qL(c.color==255?L.$s(o.k()):L.dV(o.k()),o,P,G,m.channel,o,1);
_=c.channel.slice(0);j=c.rect.clone()}return{Ar:this.Ar,q6:a,Im:o,Fd:P,OY:G,Hr:_,xP:j}};t.prototype.Yq=function(s,m){var l=this.Bl;
if(l.Ar==0){this.rect=l.xP;this.buffer=l.Hr;this.F()}if(l.Ar==1||l.Ar==3){var x=l.Ar==1?this.SE():this.Ao(s).v;
x.channel=l.Hr;x.rect=l.xP;if(this.Ar==1){x.A$=!0;this.sN(s)}if(this.Ar==3)this.F()}this.Bl=m};t.prototype.hY=function(s,m){if(this.Ar<=0&&m.rect.yb(this.rect)){var l=L.B(this.rect.k());
L.hy(this.buffer,l,3);if(L.yb(s.q.channel,l)){var x=this.rect,a=this.buffer;this.Bl={Ar:this.Ar,q6:a.slice(0),Im:x.clone(),Fd:L.B(0),OY:new bU,Hr:L.B(0),xP:new bU};
return!0}}var P=this.Bl;if(P==null)return!1;if(P.Ar!=this.Ar)return!1;if(!m.rect.yb(P.Im))return!1;var o=P.OY.if(P.Im);
if(P.Ar<=0){if(!o.yb(this.rect))return!1;var G=L.B(P.q6.length>>2);L.hy(P.q6,G,3);if(!L.yb(m.channel,G))return!1;
var _=L.B(o.e*o.l*4);L.yx(P.Fd,P.OY,_,o);L.a.$P("norm",P.q6,P.Im,_,o,o,1);return L.yb(_,this.buffer)}if(P.Ar==1||P.Ar==3){var j=P.Ar==1?this.SE():this.Ao(s).v;
if(!o.yb(j.rect))return!1;var U=L.B(o.k());U.fill(j.color);L.kV(P.Fd,P.OY,U,o);L.a.qL(P.q6,P.Im,U,o,m.channel,o,1);
return L.yb(U,j.channel)}};t.prototype.UH=function(s,m,l,x){var a=this.Bl;a.Im.offset(m,l);var P=a.OY.if(a.Im);
if(a.Ar<=0){var o=L.B(P.k()*4);L.yx(a.Fd,a.OY,o,P);L.a.$P("norm",a.q6,a.Im,o,P,P,1);this.buffer=o;this.rect=P;
this.F()}else{var G=this.Ar==1?this.SE():this.Ao(s).v,_=L.B(P.k());_.fill(G.color);L.kV(a.Fd,a.OY,_,P);
L.a.qL(a.q6,a.Im,_,P,x.channel,P,1);G.channel=_;G.rect=P.clone();if(this.Ar==1){G.A$=!0;this.sN(s)}if(this.Ar==3)this.F()}};
t.prototype.fK=function(){var s=[-1,0,1,2];if(this.v)s.push(-2);if(this.GR)s.push(-3);return s};t.prototype.getName=function(){return this.add.luni?this.add.luni:this.name};
t.prototype.qW=function(cE){this.add.luni=this.name=cE};t.prototype.No=function(s){var m=this.add.lnsr,l=this.add.TySh;
if(m=="rend"&&l)this.qW(ex.Ep(l.x5).replace(/(?:\r\n|\r|\n)/g," ").slice(0,32))};t.prototype.p$=function(){return(this.Yy&1<<1)==0};
t.prototype.Kg=function(){return(this.Yy&1<<4)==0};t.prototype.nE=function(){return(this.Yy&1<<5)!=0};
t.prototype.a0a=function(){var s=this;if(s.add.lnsr!="bgnd"){s.add.lnsr="bgnd";s.qW("Background");s.add.lspf=1<<2}};
t.prototype.a5O=function(){var s=this;if(s.add.lnsr=="bgnd"){delete s.add.lnsr;s.qW("Layer 0");s.add.lspf=0}};
t.prototype.Xz=function(s){var m=this.add.lspf;return m==null?!1:(m>>s&1)!=0};t.prototype.tG=function(s){if(s&&!this.p$())this.Yy-=2;
if(!s&&this.p$())this.Yy+=2};t.prototype.A8=function(){var s=this.add.lmfx;if(s==null)return!1;for(var m in s){if(m=="masterFXSwitch")continue;
if(m=="Scl")continue;if(m=="classID")continue;if(s[m].v.length>0)return!0}return!1};t.prototype.UI=function(){return this.add.SoLd!=null&&this.add.SoLd.filterFX!=null};
t.prototype.ox=function(){var s=this.add.lmfx;if(s==null)return!1;if(!s.masterFXSwitch.v)return!1;for(var m in s){if(m=="masterFXSwitch")continue;
if(m=="Scl")continue;if(m=="classID")continue;var l=s[m].v;for(var C=0;C<l.length;C++)if(l[C].v.enab.v)return!0}return!1};
t.prototype.NK=function(s,m,l,x,a){var P=new bU,o=this.q5(s,l,x);if(o.indexOf(0)!=-1)P=P.if(this.rect);
if(o.indexOf(1)!=-1){var G=this.SE(),_=G.E2();P=l&&G.Qv()==0?P.Xh()?_:P.pF(_):P.if(_)}if(o.indexOf(2)!=-1){var j=this.add.vmsk,U=this.add.vstk,S;
if(m){if(j.ds.length>1){var X=L.j.Cc(j.T,null,j.ds);S=L.H.ge(X)}else S=L.j.dj(j.T,j.N.length!=0?j.N:null)}else S=L.j.dj(j.T);
if(!a&&U&&U.strokeEnabled.v){var c=U.strokeStyleLineAlignment.v.strokeStyleLineAlignment,y=U.strokeStyleLineJoinType.v.strokeStyleLineJoinType;
if(c!="strokeStyleAlignInside"){var O=U.strokeStyleLineWidth.v.val;if(y=="strokeStyleMiterJoin")S=new bU(0,0,s.e,s.l);
else S.yD(O,O)}}P=P.if(S)}if(o.indexOf(3)!=-1)P=P.if(this.Ao(s).v.E2());if(o.length==0&&this.Ee())P=a?new bU(0,0,0,0):new bU(0,0,s.e,s.l);
return P};t.prototype.Qi=function(){var s=this.add.artb,m=s.artboardBackgroundType.v,l=0;if(m==1)l=4294967295;
else if(m==2)l=4278190080;else if(m==3)l=0;else if(m==4){l=s.Clr.v;l=255<<24|l.Bl.v<<16|l.Grn.v<<8|l.Rd.v}else throw m;
return l};t.prototype.wy=function(){var s=this.add.artb.artboardRect.v,m=s.Btom.v,l=s.Left.v,x=s.Rght.v,top=s.Top.v;
return new bU(l,top,x-l,m-top)};t.prototype.Kp=function(s){var m=t.JE(s);if(this.add.artb==null)this.add.artb={classID:"artboard",artboardRect:{t:"Objc",v:null},artboardBackgroundType:{t:"long",v:1}};
this.add.artb.artboardRect.v=m};t.JE=function(s){var m={classID:"classFloatRect",Top:{t:"doub",v:0},Left:{t:"doub",v:0},Btom:{t:"doub",v:0},Rght:{t:"doub",v:0}};
m.Btom.v=s.y+s.l;m.Left.v=s.x;m.Rght.v=s.x+s.e;m.Top.v=s.y;return m};t.prototype.q5=function(s,m,l){var x=[],a=this,P=this.UB;
if(!m&&a.UB&&l){x.push(2)}else if(a.Ar<=0||m){if(a.Kg())if(!this.rect.Xh())x.push(0);if(a.SE()&&!a.SE().rect.Xh())if(a.SE().FT||m)x.push(1);
if(a.add.vmsk)if(a.add.vmsk.FT||m)x.push(2);if(a.UI()&&a.Ao(s).v&&!a.Ao(s).v.rect.Xh())x.push(3)}else if(a.Ar==1){x.push(1);
if(a.SE().FT&&!a.SE().rect.Xh()){if(a.Kg())if(!this.rect.Xh())x.push(0);if(a.add.vmsk)if(a.add.vmsk.FT)x.push(2)}}else if(a.Ar==3&&!a.Ao(s).v.rect.Xh())x.push(3);
if(a.add.artb&&x.indexOf(0)==-1)x.push(0);x.sort();return x};t.prototype.SE=function(){var s=this;return s.GR?s.GR:s.add.vmsk&&s.add.vmsk.isEnabled?null:s.v};
t.prototype.Ao=function(s){var m=this.add.SoLd.placed.v,l=s.add.FEid;if(l==null)return null;for(var C=0;
C<l.length;C++)if(l[C].id==m)return l[C];return null};t.prototype.extend=function(s){L.asV(this,s)};
t.prototype.fI=function(s,m,l){var x=s.clone();if(this.ox()){var a=this.add.lmfx,P=m.root.Wp(m.G.indexOf(this)),o=a.gradientFillMulti.v,G=!1;
for(var C=0;C<o.length;C++)if(o[C].v.enab.v&&o[C].v.Algn.v)G=!0;if(G)x=x.if(P.E2(m,!1));var _=jo.afb(this.add.lmfx,m,l);
x.offset(_.x,_.y);x.e+=_.e;x.l+=_.l}return x};t.prototype.zr=function(){if(this.Kg())L.vb(this);var s=this.SE();
if(s)s.zr()};t.prototype.clone=function(){var s=new t;s.rect=this.rect.clone();s.buffer=this.buffer.slice(0);
s.TR=this.TR;s.opacity=this.opacity;s.uK=this.uK;s.Yy=this.Yy;s.name=this.name;s.kt=this.kt.slice(0);
if(this.v)s.v=this.v.clone();if(this.GR)s.GR=this.GR.clone();for(var m in this.add)s.add[m]=c2.clone(m,this.add[m]);
return s};t.prototype.ud=function(s){var m=this;if(m.add.TySh)delete m.add.TySh;if(m.add.SoLd){var l=this.MR(s,this.buffer,this.rect);
if(l){this.buffer=l.du;this.rect=l.rect;this.F()}delete m.add.SoLd}if(m.add.SoCo||m.add.GdFl||m.add.PtFl){if(m.add.vogk)delete m.add.vogk;
if(m.add.SoCo)delete m.add.SoCo;if(m.add.GdFl)delete m.add.GdFl;if(m.add.PtFl)delete m.add.PtFl;if(m.add.vmsk){console.log(m.GR,m.v);
delete m.add.vmsk;if(m.GR==null&&m.v)delete m.v;else if(m.GR!=null&&m.v!=null){m.v=m.GR;delete m.GR}}}if(!m.gu()&&eb.get(m.add)==null&&!this.Kg())this.Yy-=16};
t.prototype.ss=function(s){var m=255,l=0;if(s==2){var x=this.add.SoLd.filterFX.v;if(x.filterMaskDensity)m=x.filterMaskDensity.v;
if(x.filterMaskFeather)l=x.filterMaskFeather.v}else{var a=s==0?this.SE():this.add.vmsk;m=a.X5;l=a.l2}return{MJ:s,Gl:m,h$:l}};
t.prototype.a$=function(s){if(s.MJ==2){var m=this.add.SoLd.filterFX.v;if(s.Gl==255)delete m.filterMaskDensity;
else m.filterMaskDensity={t:"long",v:s.Gl};if(s.h$==0)delete m.filterMaskFeather;else m.filterMaskFeather={t:"doub",v:s.h$};
this.F()}else{var l=s.MJ==0?this.SE():this.add.vmsk;l.X5=s.Gl;l.l2=s.h$;l.A$=!0}};t.prototype.GK=function(){var s=this,m=s.add.vmsk;
if(m==null)return;s.add.vogk=t.GK(m.T)};t.GK=function(s){var m=[],l=L.j.Y7(s);for(var x=0;x<l;x++)m.push(L.R2.dV());
return m};var hN={Ru:0,yF:1,fs:2,k_:3};t.K0=function(){this.name="Mask";this.IU=!1;this.wI={o:255,z:0,S:0};
this.iu=50;this._z=0;this.color=255;this.FT=!0;this.isEnabled=!0;this.e3=!1;this.X5=255;this.l2=0;this.rect=new bU;
this.channel=L.B(0);this.ya=null;this.a36=null;this.A$=!0};t.K0.prototype.fH=function(s){if(!this.isEnabled)return s;
var m=new t.K0;m.color=Math.round(this.Qv()*s.Qv()/255);if(this.Qv()==0&&s.Qv()==0)m.rect=this.E2().pF(s.E2());
else if(s.Qv()==0)m.rect=s.E2().clone();else if(this.Qv()==0)m.rect=this.E2().clone();else m.rect=this.E2().if(s.E2());
m.channel=this.dG(m.rect);m.X5=255;m.l2=0;var l=s.dG(m.rect);L.arT(l,m.rect,m.channel,m.rect);return m};
t.K0.prototype.E2=function(){if(this.l2==0)return this.rect;var s=Math.ceil(this.l2*2.2),m=this.rect.clone();
if(m.y==0){if(m.x==0)m.e+=s;else m.yD(s,0);m.l+=s}else m.yD(s,s);return m};t.K0.prototype.$k=function(){if(this.l2==0&&this.X5==255)return this.channel;
if(this.l2==0){var s=this.channel.slice(0);L.ms(s);L.EU(s,this.X5/255);L.ms(s);return s}var m=this.E2(),l=this.gB(m),s=L.B(m.k());
L.yf.FS(l,s,m,this.l2);if(this.X5!=255){L.ms(s);L.EU(s,this.X5/255);L.ms(s)}return s};t.K0.prototype.Qv=function(){return Math.round(255-(255-this.color)*(this.X5/255))};
t.K0.prototype.extend=function(s){L.extend(this,s,this.color)};t.K0.prototype.zr=function(){if(this.color==255)L.ms(this.channel);
L.zr(this);if(this.color==255)L.ms(this.channel)};t.K0.prototype.clone=function(){var s=new t.K0;s.name=this.name;
s.IU=this.IU;s.wI=this.wI;s.iu=this.iu;s._z=this._z;s.color=this.color;s.FT=this.FT;s.isEnabled=this.isEnabled;
s.e3=this.e3;s.X5=this.X5;s.l2=this.l2;s.rect=this.rect.clone();s.channel=this.channel.slice(0);return s};
t.K0.prototype.gB=function(s,m){if(m==null)m=L.B(s.k());m.fill(this.color);L.kV(this.channel,this.rect,m,s);
return m};t.K0.prototype.dG=function(s,m){var l=this.E2(),x=this.$k();if(m==null)m=L.B(s.k());m.fill(this.Qv());
L.kV(x,l,m,s);return m};t.sD=function(){this.FT=!0;this.isEnabled=!0;this.X5=255;this.l2=0;this.T=[{type:6},{type:8,all:0}];
this.DF=[-3,-3];this.vF=!1;this.GR=null;this.A$=!0;this.N=[];this.ds=[]};t.sD.prototype.offset=function(s,m){this.GR=this.SE();
L.j.G9(this.T,new ae(1,0,0,1,s,m));this.GR.rect.offset(s,m)};t.sD.prototype.SE=function(s){if(!this.A$&&this.GR&&s==null){this.GR.isEnabled=this.isEnabled;
return this.GR}var m=L.j.dj(this.T),l="strokeStyleLineAlignment",x="strokeStyleLineJoinType";if(m.k()>3e4*3e4)m=new bU(0,0,100,100);
if(s&&s[l].v[l]!="strokeStyleAlignInside"){var a=1;if(s[x].v[x]=="strokeStyleMiterJoin"){var P=L.j.aeS(this.T),o=P/2,G=Math.sin(o),_=Math.cos(o);
_/=G;G=1;var a=Math.sqrt(_*_+G*G);if(isNaN(a)||a<1)a=1}a*=s[l].v[l]=="strokeStyleAlignOutside"?1:.5;
var j=Math.ceil(s.strokeStyleLineWidth.v.val*a);j=Math.min(j,600);m.yD(j,j)}m=L.H.LU(m);var U=new t.K0;
U.color=L.j.hO(this.T)?0:255;U.FT=this.FT;U.isEnabled=this.isEnabled;U.e3=!0;U.rect=m;U.X5=this.X5;U.l2=this.l2;
U.channel=L.B(U.rect.k());if(!m.Xh())L.j.a3h(this.T,U.channel,U.rect,s);if(s==null){this.GR=U;this.A$=!1}return U};
t.sD.prototype.clone=function(){var s=new t.sD;s.FT=this.FT;s.isEnabled=this.isEnabled;s.X5=this.X5;
s.l2=this.l2;s.T=t.sD.Ps(this.T);s.DF=this.DF.slice(0);s.vF=this.vF;s.N=this.N.slice(0);s.ds=this.ds.slice(0);
return s};t.sD.prototype.concat=function(s){var m=s.T.slice(2);if(m.length==0)return;m[0].aZ=3;this.T=this.T.concat(m)};
t.sD.Ps=function(s){var m=[];for(var C=0;C<s.length;C++){var l=s[C];if(l.type>5||l.type==0||l.type==3)m.push(JSON.parse(JSON.stringify(l)));
else m.push({type:l.type,o3:l.o3.clone(),R:l.R.clone(),Ux:l.Ux.clone()})}return m};t.sD.adw=function(s,m,l){if(s.length!=m.length)return!1;
for(var C=2;C<s.length;C++){var x=s[C],a=m[C];if(x.type!=a.type)return!1;if(x.type==0||x.type==3){if(x.length!=a.length||!l&&x.aZ!=a.aZ)return!1}else if(!x.o3.yb(a.o3)||!x.R.yb(a.R)||!x.Ux.yb(a.Ux))return!1}return!0};
t.sD.prototype.aa2=function(){var s=this.T;for(var C=3;C<s.length;C++)if(s[C].type==0||s[C].type==3)s[C].aZ=-1};
t.bd=function(){this.type=null;this.iy=2;this.te=null;this.zA="";this.pC="";this.Br="";this.open=0;this.raw=null;
this.H6=null;this.abO=""};t.bd.prototype.clone=function(){var s=new t.bd;s.type=this.type;s.iy=this.iy;
s.te=this.te;s.zA=this.zA;s.pC=this.pC;s.Br=this.Br;s.open=this.open;s.raw=new Uint8Array(this.raw.buffer.slice(0));
return s};t.bd.prototype.cf=function(s,m,l){if(l==null)l="none";var x=this,a=iO.D1(x.raw.buffer),P=a=="svg"||a=="pdf";
if(x.H6){var o=m&&P&&Math.max(x.H6[1].e,x.H6[1].l)<Math.max(m[0],m[1]);if(!o&&l==this.abO)return}this.abO=l;
if(!P)s=0;if(a==null){alert("Unsupported format: "+g.cS(x.raw,0,4));return null}var G=iO.ln(a);if(G.Kw){var _=new jF(name+(a=="psd"?"":"-"+a)+".psd"),j;
G.Gs(x.raw.buffer,_,m);var U=new bU(0,0,_.e,_.l);if("avrg maxx medn minn rang stdv summ vari".split(" ").indexOf(l)!=-1){var S=[];
for(var C=0;C<_.G.length;C++){var X=_.G[C],c=X.buffer;if(!X.rect.yb(U)){c=L.B(U.k()*4);L.yx(X.buffer,X.rect,c,U);
console.log("resizing")}S.push(c)}j=L.B(U.k()*4);L.stack.stack(S,j,l)}else{for(var C=0;C<_.G.length;
C++)if(_.G[C].Ee())_.G[C].sN(_);_.Bi();_.F();_.nZ();j=_.cf()}x.H6=[j,U]}else if(G){var y=G.Gs(x.raw.buffer)[0];
x.H6=[new Uint8Array(y.data),y.Sb]}if(x.H6){if(s==1){var c=x.H6[0],O=x.H6[1],p=L.B(O.k());L.hy(c,p,3);
var D=L.zQ(p,O),f=L.B(D.k()*4);L.yx(c,O,f,D);x.H6=[f,D]}L.$c(x.H6)}};t.Rk="0";t.q_="2";t.xV="2.5";t.ZA="2.6";
t.IN="3";t.W3="4";t.Me="4.5";t.x1="4.6";t.gP="5";t.LW="5.5";t.aN="6";t.Tt="7";t.Av="7.5";t.MN="8";t.cg="9";
t.Xr="9.3";t.iv="9.5";t._7="9.6";t.mD="10";t.Kl="11";t.EW="12";t.Da="13";t.aG="13.1";t.k4="13.2";t.LX="13.3";
t.ZO="13.4";t.I5="14";t.RA="14.1";t.p5="14.2";t.nI="14.3";t.VW="17";t.TK="18";t.iA="19";t.KX="19.5";
t.iq="19.6";t.Md="19.7";t.fL="20";t.j$="21";t.wx="21.5";t._o="22";t.up="22.5";t.Fm="23";t.a9A="24";t.dk="25";
t.bT="26";t.hf="27";t.Q7="28";t.vI="29";t.mg="30";t.VD="31";t.Yb="32";t.R3="33";t.Z$="34";t.jz="35";
t.i6="36";t.KB="36.5";t.a4="37";t.qT="37.5";t.acW="37.6";t.eQ="38";t.Ba="38.5";t.jr="38.6";t.Jb="39";
t.Us="40";t.Vb="41";t.Dt="42";t.gh="50";t.Uc="51";t.Mm="52";t.wL="53";t.u8="54";t.yA="54.5";t.RC="54.6";
t.BQ="54.7";t.RD="54.8";t.L2="55";t.Yw="56";t.ER="57";t.e_="58";t.f_="59";function d5(){this.depth=0;
this.index=-1;this.i=null;this.an3=null;this.ot=-1;this.children=null;this.parent=null;this.qA=null}d5.prototype.tL=function(s,m){if(this.depth!=0)s.push(this.i.getName());
if(this.children)for(var C=0;C<this.children.length;C++)this.children[C].tL(s,m);if(s.length>m.yt.length)m.yt=s.slice(0);
if(this.depth!=0)s.pop()};d5.prototype.a4x=function(){var s=0;if(this.i.gu()){for(var C=0;C<this.children.length;
C++)s+=this.children[C].a4x()}else if(this.i.buffer)s+=this.i.buffer.length;return s};d5.prototype.Wp=function(s){var m=this.qA[s];
return this.qA[s]};d5.prototype.fS=function(s,m){var l=this.i;if(!l.p$()||l.Xz(2)||l.Xz(31))return null;
if(l.RS()){var x=l.v.rect.Hx(s);if(!x&&l.v.color==0)return}if(l.gu()){for(var C=0;C<this.children.length;
C++){var cE=this.children[C];cE.fS(s,m)}}else if(l.rect.Hx(s))m.push(this.index)};d5.prototype.qi=function(s,m){var l=this.i;
if(!l.p$()||l.Xz(2)||l.Xz(31))return null;if(l.RS()){if(l.v.rect.j_(s)){if(!L.qi(s,l.v.channel,l.v.rect))return null}else if(l.v.color==0)return null}if(l.gu()){if(l.add.artb&&!l.wy().j_(s))return null;
for(var C=this.children.length-1;C>=0;C--){var cE=this.children[C],x=cE.qi(s,m);if(x&&m==null)return x}return null}else if(l.add.TySh&&l.rect.j_(s)||L.afQ(s,l.buffer,l.rect)){if(m==null)return this;
else m.push(this.index)}return null};d5.prototype.ajI=function(s){var m=this.i;if(!m.p$()||m.Xz(2)||m.Xz(31))return null;
var l=m.add.vmsk;if(l&&l.isEnabled){var x=L.j.qi(l.T,s).jV;if(x!=-1)return{aoB:this,aeA:x}}if(m.gu()){if(m.add.artb&&!m.wy().j_(s))return null;
for(var C=this.children.length-1;C>=0;C--){var cE=this.children[C],a=cE.ajI(s);if(a)return a}return null}return null};
d5.prototype.H_=function(s,m){s.push(this.index);if(this.i.gu()){s.push(this.ot);if(m)if(this.i.Ar==1&&this.i.SE().FT==!1)return;
for(var C=0;C<this.children.length;C++)this.children[C].H_(s)}};d5.prototype.jj=function(s,m,l){var x=this.i,a,P;
if(x.gu()&&x.add.artb!=null)m=x.wy();if(m.e>m.l){a=l;P=Math.floor(l*(m.l/m.e))}else{a=Math.floor(l*(m.e/m.l));
P=l}if(x.Ee()&&x.add.vmsk==null||x.add.TySh)a=P=Math.max(P,16);else{a=Math.max(a,6);P=Math.max(P,6)}var o=P,G=x.Ee()&&x.add.vmsk;
if(G){var _=x.rect.clone(),S,X;if(_.Xh())_=new bU(0,0,20,20);var j=_.e,U=_.l;if(j>U){S=l;X=Math.floor(l*(U/j))}else{S=Math.floor(l*(j/U));
X=l}if(S*X==0)S=X=16;L.Ia.jw(x.cw,S,X,_,x.buffer,x.rect,!1);L.Ia.acc(x.cw,S,X);o=X}else if(x.add.TySh){L.Ia.arV(x.cw,o,o,x.add.TySh)}else if(x.add.SoCo){o=Math.max(16,Math.min(a,P));
L.Ia.akL(x.cw,o,o,x.add.SoCo)}else if(x.add.GdFl){L.Ia.a6E(x.cw,o,o,x.add.GdFl)}else if(x.add.PtFl){L.Ia.anx(x.cw,o,o,x.add.PtFl,s)}else if(eb.get(x.add)!=null){L.Ia.afA(x.cw,o,o,x.add)}else if(x.add.SoLd){L.Ia.jw(x.cw,a,P,m,x.buffer,x.rect,!1);
L.Ia.aaL(x.cw,a,P,x.add.SoLd)}else if(x.gu()){o=16}else{if(x.Kg())L.Ia.jw(x.cw,a,P,m,x.buffer,x.rect,!1);
else{L.Ia.ajs(x.cw,o,o)}}var c=x.SE();if(c)L.Ia.gm(x.ad$,a,P,m,c);if(x.UI()&&x.Ao(s)&&x.Ao(s).v){var y=x.Ao(s).v;
L.Ia.gm(x.a6l,a,P,m,y)}if(!G&&x.add.vmsk){L.Ia.gm(x.ahQ,a,P,m,x.add.vmsk.SE(),!0)}if(x.add.vmsk||c)o=Math.max(o,P);
x.aec=Math.max(o,16);if(x.gu()&&x.add.lsct==hN.yF)for(var C=0;C<this.children.length;C++)this.children[C].jj(s,m,l)};
d5.prototype.LN=function(s,m,l,x){this.depth=l;var a=s[m];if(x==null)x=[];this.qA=x;if(a.add.lsct==hN.k_){this.an3=a;
this.ot=m-1;this.children=[];var C=m+1;while(!0){var P=s[C];if(P==null)console.log(C,s.length);if(P.add.lsct==hN.yF||P.add.lsct==hN.fs){if(a.add.lyid==P.add.lyid)a.add.lyid+=16777215;
this.i=P;this.index=C-1;x[this.index]=this;x[m-1]=this;break}var o=new d5;o.parent=this;C=o.LN(s,C,l+1,x);
this.children.push(o)}return C+1}else{this.i=a;this.index=m-1;x[this.index]=this;return m+1}};d5.prototype.iX=function(s,m,l,x){var a=this.Wp(l),P=s;
while(a.parent!=null){P=a.i.fI(P,m,x);a=a.parent}return P};d5.prototype.E2=function(s,m){var l=this.i,x=new bU;
if(!l.p$())return x;var a=l.SE();if(l.gu())for(var C=0;C<this.children.length;C++){var P=this.children[C].E2(s,!0);
x=x.if(P)}else if(eb.get(l.add)!=null)x=l.RS()&&l.v.color==0?l.v.E2().clone():new bU(0,0,s.e,s.l);else if(l.Ee()&&l.add.vmsk&&l.add.vmsk.isEnabled&&l.add.vstk){x=l.rect.clone()}else if(l.Ee()&&a&&a.isEnabled&&a.Qv()!=0)x=new bU(0,0,s.e,s.l);
else{x=l.NK(s,!1,!0);if(l.add.vmsk)x=L.H.LU(x)}return m?l.fI(x,s):x};d5.sv={delete:function(s){if(s&&s.e)s.delete()},B:function(s,m){return M.wR?new M.KY(s,m):L.B(s*m*4)},fb:function(s,m,l){if(M.wR){if(s==null||s.e!=m||s.l!=l){d5.sv.delete(s);
return new M.KY(m,l)}}else{if(s==null||!(s instanceof Uint8Array)||s.length!=m*l*4){d5.sv.delete(s);
return L.B(m*l*4)}}return s},kV:function(s,m,l,x,a){(M.wR?M.Ld:L.yx)(s,m,l,x,a)},HZ:function(s,m,l,x,a,P,o,G,C,_,j){(M.wR?M.a.KP:L.a.HZ)(s,m,l,x,a,P,o,G,C,_,j)},$P:function(s,m,l,x,a,P,o,G){if(M.wR)M.a.J9(s,m,l,x,a,P,o,G);
else L.a.$P(s,m,l,x,a,P,o,G)},MP:function(s,m,l){if(M.wR){M.C8(s);M.MV(m,l)}else L.MP(s,m,l)},a2n:function(s,m,l,x,a){if(M.wR){M.a.KP(null,null,x,a,s,m,l,a,1,!1)}else{if(l==255)L.Iq(s,m,x,a);
else{var P=L.B(m.k());L.Pw(x,a,P,m);L.Sf(s,P);L.MP(x,0,16777215);L.oK(P,m,x,a)}}},nW:function(s,m,l,x){if(M.wR)M.a.KP(null,null,l,x,s,m,0,x,1,!1);
else L.nW(s,m,l,x)}};d5.prototype.x$=function(s,m,l,x,a,P){var o=typeof P=="number";if(!this.i.gu()&&(o&&this.index>P||!o&&P.indexOf(this.index)==-1)){return}var G=this.i,_=jo.Xf(G),j=d5.sv,U=G.Ee()?G.SE():G.v;
if(!G.p$())return;if(G.RS()&&U.rect.Xh()&&U.Qv()==0){return}if(G.add.vstk==null&&this.E2(x,!1).Xh()){return}var S=this.E2(x,!0).pF(l);
if(!m.yb(l)&&!l.Hx(S))return;if(G.gu()&&G.add.artb){var X=G.wy();l=l.pF(X)}var c=d5.Pj(G,a,_);if(!c){this.g4(s,m,l,x,a,P);
return}G.GM.my=j.fb(G.GM.my,S.e,S.l);j.kV(s,m,G.GM.my,S,l);this.g4(G.GM.my,S,l,x,a,P);j.HZ(G.GM.my,S,s,m,null,null,0,l,G.opacity/255,G.TR=="diss",_.cQ)};
d5.Pj=function(s,m,l){if(l.cQ[0]*l.cQ[1]*l.cQ[2]==0)return!0;return s.opacity!=255&&(m.length!=0||s.gu()||s.ox())};
d5.aoX={GM:{}};d5.prototype.g4=function(s,m,l,x,a,P){var o=this.i,G=jo.Xf(o),_=eb.get(o.add)!=null,j=d5.sv,U=d5.Pj(o,a,G),S=U?1:o.opacity/255,X=o.Ee()?o.SE():o.v,c=o.gu()&&(o.TR=="pass"||o.add.artb)&&!(a.length>0||G.fill!=1||o.ox()),y=!o.gu()&&!_&&!o.ox()&&a.length==0,O=_&&!o.ox()&&a.length==0,H=null,b=null,R=null,Q;
if(c||y||O){var p=s,D=m;if(o.RS()){D=this.E2(x,!1);p=o.GM.bP=j.fb(o.GM.bP,D.e,D.l);j.kV(s,m,o.GM.bP,D)}if(c)this.YP(p,D,l,x,P);
if(y)j.$P(o.TR,o.kk(x),o.rect,p,D,l,S,G);if(O){var f=o.RS()&&X.Qv()==0?X.E2().clone():D.clone(),T=o.GM;
if(f.yb(new bU(0,0,x.e,x.l)))T=d5.aoX;T.Y_=this.Og(p,D,T.Y_,f,o.add);G.yz=!0;j.$P(o.TR,T.Y_,f,p,D,l,S,G)}if(o.RS())j.HZ(p,D,s,m,o.OH(),X.E2(),X.Qv(),l,1,o.TR=="diss");
o.GM.jL();return}var I=o.gu()&&o.TR=="pass"&&(a.length>0||G.fill!=1||o.ox()),f=o.rect;if(o.gu()){f=this.E2(x,!1);
R=o.GM.Y_=j.fb(o.GM.Y_,f.e,f.l);j.MP(R,0);this.YP(R,f,f,x,P);b=j.fb(o.GM.tb,f.e,f.l);j.kV(R,f,b,f)}else if(_){f=o.RS()&&X.Qv()==0?X.E2().clone():m.clone();
b=j.fb(o.GM.tb,f.e,f.l);j.MP(b,4294967295)}else{f=o.rect;H=o.kk(x);b=j.fb(o.GM.tb,f.e,f.l);j.kV(H,f,b,f)}o.GM.tb=b;
if(o.RS())j.a2n(o.OH(),X.E2(),X.Qv(),b,f);if(o.ox())if(o.GM.mn||o.GM.qZ||o.GM.v6!=M.wR||o.GM.fo||o.gu()){var W=o.add.vmsk,J=L.B(f.k());
if(jo.l7(o.add.lmfx)){if(M.wR){if(!o.gu()&&o.SE()==null&&o.rect.yb(f)&&W==null)L.hy(o.buffer,J,3);else{var u=L.B(f.k()*4);
b.get(u);L.hy(u,J,3)}}else L.hy(b,J,3)}if(o.GM.qZ||o.GM.v6!=M.wR||!L.yb(J,o.GM.vO)){var e=null;if(o.Ee()&&W&&W.isEnabled&&W.SE().color==0)e=W.SE().rect;
jo.Xw(o.GM.vN);o.GM.vN=jo.a8O(J,f,o.add.lmfx,o.add.fxrp,x,e);o.GM.vO=J;o.GM.aa7=f}}if(o.ox())jo.a54(o.add.lmfx,o.GM.vN,f,s,m,l);
if(o.gu()){H=j.fb(o.GM.bP,f.e,f.l);j.MP(H,0);if(o.TR=="pass")j.kV(s,m,H,f);if(I)j.nW(R,f,H,f);this.YP(H,f,l,x,P);
o.GM.bP=H}if(_){H=o.GM.bP=this.Og(s,m,o.GM.bP,f,o.add)}if(o.gu()||_)Q=H;else{Q=j.fb(o.GM.bP,f.e,f.l);
j.kV(H,f,Q,f,l);o.GM.bP=Q}j.MP(Q,4278190080,16777215);for(var C=0;C<a.length;C++)a[C].x$(Q,f,l,x,[],P);
var q=o.GM.ab=j.fb(o.GM.ab,f.e,f.l);j.kV(s,m,q,f,l);if(_)G.yz=!0;j.$P(o.TR=="pass"?"norm":o.TR,Q,f,q,f,l,1,G);
if(o.ox()){var Z=o.GM.vN.type.FrFX,E=null;if(Z.length!=0){E=Z[0];for(var C=0;C<Z.length;C++)if(Z[C].uc.e>E.uc.e)E=Z[C];
o.GM.JZ=j.fb(o.GM.JZ,E.uc.e,E.uc.l);j.kV(s,m,o.GM.JZ,E.uc,l);o.GM.L5=j.fb(o.GM.L5,E.uc.e,E.uc.l)}jo.aiV(o.add.lmfx,o.GM.vN,f,s,m,l,q,o.GM.JZ,o.GM.L5,E?E.uc:null)}if(!M.wR){var z=L.B(f.k());
L.hy(b,z,3);b=z}j.HZ(q,f,s,m,b,f,0,l,1,o.TR=="diss");o.GM.jL()};d5.prototype.Og=function(s,m,l,x,a){var P=eb.get(a),o;
if(P)o=eb.vC(P,a[P]);var G=d5.sv;l=G.fb(l,x.e,x.l);if(!(M.wR&&m.yb(x)))G.kV(s,m,l,x);if(o){if(M.wR){var _=x.clone();
_.x=_.y=0;if(m.yb(x)){M.C8(l,_);eb.Pu(o,s.Vh,_)}else{M.C8(l,x);l._y(x);eb.Pu(o,l.qQ,_)}}else eb._E(o,l,l,x)}return l};
d5.prototype.YP=function(s,m,l,x,a){var P=this.children;for(var C=0;C<P.length;C++){var o=[];for(var G=C+1;
G<P.length;G++)if(P[G].i.uK)o.push(P[G]);else break;P[C].x$(s,m,l,x,o,a);C+=o.length}};function jF(s){this.rf="psd";
this.k3=!1;this.name=s;this.jt=-1;this.s5=null;this.e8=null;this.Em=null;this.H4=null;this.e=0;this.l=0;
this.buffer=null;this.G=[];this.wD={};this.add={};this.Pa=4;this.YL=null;this.sz=72;this.l1={};this.N=[];
this.ff=[];this.Xs=!1;this.YA=[];this.tq=[];this.sj=[jF.Fu("Work Path")];this.FZ=[];this.QR=null;this.xW={classID:"CompList",list:{t:"VlLs",v:[]}};
this.root=null;this.UM=null;this.VK=!1;this.a9P=!1;this.aje=!1;this.d6=!1;this.g_=!1;this.R8=!1;this.Gq=!1;
this.CR=!1;this.bN=!1;this.jn=!1;this.mn=null;this.EJ=null;this.q=null;this.$_=[];this.Be=[];this.D={Ub:{},Sk:[],a4F:[],sB:[],om:[],NJ:null,XY:null,p3:null,Zp:null,n$:[],va:[],$O:null};
this.history=[new aU([1,0],null)];this.gH=0;this.wm=0;this.t=new gH(this)}jF.prototype.Ls=function(){var s=this.ff,m=[];
for(var C=0;C<s.length;C++)m[C]=-1;var l=this.root.children;for(var C=0;C<l.length;C++){var x=l[C],a=x.i.add.artb;
if(a==null)continue;var P=a.guideIndeces;P=P?P.v:[];for(var o=0;o<P.length;o++)m[P[o].v]=x.index}return[JSON.parse(JSON.stringify(s)),m]};
jF.prototype.Bb=function(s){this.ff=JSON.parse(JSON.stringify(s[0]));var m=s[1],l=this.root.children;
for(var C=0;C<l.length;C++){var x=l[C],a=x.i.add.artb;if(a==null)continue;a.guideIndeces={t:"VlLs",v:[]}}for(var C=0;
C<m.length;C++)if(m[C]!=-1)this.G[m[C]].add.artb.guideIndeces.v.push({t:"long",v:C})};jF.prototype.pi=function(s){var m=this;
if(s[0])m.add.lnk2=s[0];else delete m.add.lnk2;if(s[1])m.add.FEid=s[1];else delete m.add.FEid;if(s[2])m.add.Patt=s[2];
else delete m.add.Patt};jF.prototype.a2E=function(s){var m=this,l=[],x=[],a=[],y=null,O=null,p=null;
for(var C=0;C<s.length;C++){var P=s[C];if(P.add.SoLd){l.push(P.add.SoLd.Idnt.v);x.push(P.add.SoLd.placed.v)}if(P.add.PtFl)a.push(P.add.PtFl.Ptrn.v.Idnt.v);
if(P.add.lmfx){for(var o=0;o<i4.rm.length;o++){var G=P.add.lmfx[i4.rm[o]].v;for(var _=0;_<G.length;_++)if(G[_].v.Ptrn){var j=G[_].v;
if(j.classID=="FrFX"&&j.PntT.v.FrFl!="Ptrn")continue;a.push(j.Ptrn.v.Idnt.v)}}}var U=P.add.vstk;if(U&&U.strokeStyleContent.v.classID=="patternLayer"){a.push(U.strokeStyleContent.v.Ptrn.v.Idnt.v)}}var S=m.add.lnk2,X=m.add.FEid,c=m.add.Patt;
if(S){y=[];for(var C=0;C<S.length;C++)if(l.indexOf(S[C].te)!=-1)y.push(S[C]);if(y.length==0)y=null}if(X){O=[];
for(var C=0;C<X.length;C++)if(x.indexOf(X[C].id)!=-1)O.push(X[C]);if(O.length==0)O=null}if(c){p=[];for(var C=0;
C<c.length;C++)if(a.indexOf(c[C].id)!=-1)p.push(c[C]);if(p.length==0)p=null}return[y,O,p]};jF.prototype.R4=function(){var s=this.$_,m=this.$_.length;
if(m!=0&&s[m-1].name=="Quick Mask")return s[m-1]};jF.prototype.pS=function(){return this.rf==ia.lp("% |/!)")||this.rf==ia.jd("gP")};
jF.prototype.Gp=function(s){var m=this.add.artd;if(s!=0)this.add.artd={classID:"null",Cnt:{t:"long",v:s},autoExpandOffset:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:0},Vrtc:{t:"doub",v:0}}},origin:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:0},Vrtc:{t:"doub",v:0}}},autoExpandEnabled:{t:"bool",v:!0},autoNestEnabled:{t:"bool",v:!0},autoPositionEnabled:{t:"bool",v:!0}};
else delete this.add.artd};jF.prototype.Vi=function(s){if(this.add.FEid==null)this.add.FEid=[];if(this.add.FEid.indexOf(s)==-1)this.add.FEid.push(s)};
jF.prototype.Nu=function(s){var m=this.add.FEid.indexOf(s);this.add.FEid.splice(m,1);if(this.add.FEid.length==0)delete this.add.FEid};
jF.prototype.F=function(s){if(s==null)s=new bU(0,0,this.e,this.l);if(this.mn==null)this.mn=s;else this.mn=this.mn.if(s)};
jF.prototype.al0=function(s){return this.mn!=null};jF.prototype.oD=function(s){var m=this.G[s],l=this.root.Wp(s);
if(l==null)return!1;if(m.gu()||l.parent.children.indexOf(l)==0)return!1;return!0};jF.asY=function(s){if(s.add.lnk2)for(var C=0;
C<s.add.lnk2.length;C++){var m=s.add.lnk2[C].te;s.add.lnk2[C].te=jF.wd()+m.slice(8);for(var l=0;l<s.G.length;
l++){var x=s.G[l].add.SoLd;if(x&&x.Idnt.v==m)x.Idnt.v=s.add.lnk2[C].te}}};jF.prototype.M7=function(s,m,l){s.sort(function(S,X){return S-X});
var top=s[s.length-1],x=this.G.slice(0),a=this.N.slice(0),P=[],o=[];for(var C=0;C<this.G.length;C++){if(s.indexOf(C)!=-1)o.push(this.G[C]);
else P.push(this.G[C])}this.B0(o);this.N=[];var G=this.root.E2(this,!0);if(m)G=G.pF(m);if(l)G=G.if(l);
if(G.Xh())G=new bU(0,0,100,100);var _=new bU(-G.x,-G.y,this.e,this.l),j=new Uint8Array(iO.ln("PSD").yd(this,0,0,[!0,!1]));
this.B0(x);this.N=a;var U=new jF(this.G[top].getName());iO.ln("PSD").Gs(j.buffer,U);delete U.add.artd;
U.YA=[];U.B0(U.G);U.Bb([[],[]]);jF.asY(U);r.Bs.sc(U,G);U.F();U.nZ();U.cf();return[U,G,P,top]};jF.prototype.WI=function(s,m,l){var x=this.M7(s),a=x[0],P=x[1],o=x[2],top=x[3],G;
if(l=="jpg")G=new Uint8Array(iO.ln("JPG").yd([[a.cf().buffer]],a.e,a.l,[80]));else G=new Uint8Array(iO.ln("PSD").yd(a,null,null,[!0,!1]));
if(m)o=this.G.slice(0);var _=this.PZ(G,a.name,P.x,P.y);if(top==this.G.length-1)o.push(_);else o.splice(m?top+1:top-s.length+1,0,_);
this.B0(o);this.N=[o.indexOf(_)]};jF.wd=function(s){if(s==null)s="";var m="";while(m==s){m="";for(var C=0;
C<8;C++)m+=Math.floor(Math.random()*16).toString(16)}return m};jF.prototype.FF=function(s){if(s==null)return;
if(this.add.Patt==null)this.add.Patt=[];var m=this.add.Patt;for(var C=0;C<m.length;C++)if(m[C].id==s.id)return;
m.push(s)};jF.prototype.PZ=function(s,m,l,x,a){if(this.add.lnk2==null)this.add.lnk2=[];var P=null,S=!1;
for(var C=0;C<this.add.lnk2.length;C++)if(L.yb(s,this.add.lnk2[C].raw)){P=this.add.lnk2[C].te;break}if(P==null){var o=iO.D1(s.buffer);
P=jF.wd()+"-d71c-11e5-b1ae-a548a96e5f9f";var G=new t.bd;G.te=P;G.Br=o=="psd"?"8BIM":" ";G.zA=m+"."+o;
G.pC=o=="psd"?"8BPB":" ";G.open=0;G.raw=s;G.type="liFD";G.iy=2;this.add.lnk2.push(G)}var _=this.WN(P),j=jF.wd()+"-d71c-11e5-b1ae-a548a96e5f9f",U=this.d2();
U.qW(m);if(_!=null){var X=0,c=0,y=this.e,O=this.l;if(a){X=a.x;c=a.y;y=a.e;O=a.l}var p=U.rect=_.H6[1].clone();
p.offset(X+l,c+x);var D=Math.max(p.e/y,p.l/O),S=a!=null&&D>1.0001;if(S){p.e=Math.round(p.e/D);p.l=Math.round(p.l/D);
p.x=Math.round(X+(y-p.e)/2);p.y=Math.round(c+(O-p.l)/2)}else if(a!=null&&iO.D1(s.buffer)=="pdf"&&this.sz!=144){var D=144/this.sz;
p.e=Math.round(p.e/D);p.l=Math.round(p.l/D);S=!0}U.buffer=L.B(p.k()*4);if(!S)L.qv(_.H6[0],U.buffer)}U.add.SoLd={classID:"null",Idnt:{t:"TEXT",v:P},Impr:{t:"Objc",v:{__name:"None",classID:"none"}},placed:{t:"TEXT",v:j},PgNm:{t:"long",v:1},totalPages:{t:"long",v:1},frameStep:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},duration:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},frameCount:{t:"long",v:1},Annt:{t:"long",v:16},Type:{t:"long",v:2},Trnf:null,nonAffineTransform:null,warp:{t:"Objc",v:L.Lv.B(_?_.H6[1]:U.rect)},Sz:{t:"Objc",v:{classID:"Pnt",Wdth:{t:"doub",v:U.rect.e},Hght:{t:"doub",v:U.rect.l}}},Rslt:{t:"UntF",v:{type:"#Rsl",val:72}}};
var f=L.H.$$(U.rect).s;U.add.SoLd.Trnf=r.Q.ZG(f);U.add.SoLd.nonAffineTransform=r.Q.ZG(f);if(S)U.y2(this,!1);
return U};jF.prototype.cf=function(s){if(s!=null){this.F();this.nZ(s);var m=this.buffer;if(M.wR)this.UM.get(m);
else m=m.slice(0);this.F();this.nZ();return m}if(this.mn){this.nZ();this.mn=null}if(M.wR&&this.EJ){this.UM.get(this.buffer);
this.EJ=null;this.Gq=!0}return this.buffer};jF.prototype.QY=function(){for(var C=0;C<this.G.length;C++)this.G[C].yU();
this.F()};jF.prototype.bx=function(){for(var C=0;C<this.G.length;C++)if(this.G[C].add.lmfx)this.G[C].GM.qZ=!0};
jF.prototype.yQ=function(){var s=this.wD.r1044;if(s==null){s=this.wD.r1044=new Uint8Array(4);var m=0;
for(var C=0;C<this.G.length;C++)m=Math.max(m,this.G[C].add.lyid);g.ML(s,0,m)}var l=g.n(s,0);g.ML(s,0,l+1);
return l+1};jF.prototype.z6=function(s,m,l){if(s==null)s=!0;var x=this;if(x.Be.length!=0)return!0;if(x.N.length!=1){if(s)alert(x.N.length==0?"Select a layer first.":"More than one layer selected.");
return!1}return this.cn(s,m,l)};jF.prototype.cn=function(s,m,l){if(s==null)s=!0;if(m==null)m=!1;var x=this;
if(x.Be.length!=0)return!0;for(var C=0;C<x.N.length;C++){var a=x.G[x.N[C]],P=m||a.Ar<=0;if(a.add.lsct!=null&&a.add.lsct!=hN.Ru&&a.Ar!=1){if(s)alert(iX.get([15,7,2]));
return!1}if(P&&!a.Kg()){if(s)alert(iX.get([15,7,2]));return!1}if(P&&a.add.TySh){return this.Rw(s,[15,7,3],l)}if(P&&a.add.SoLd){return this.Rw(s,[15,7,4],l)}if(a.Xz(1)||a.Xz(31)){if(s)alert(iX.get([6,57,0]));
return!1}}return!0};jF.prototype.Rw=function(s,m,l){if(s&&typeof s=="object"){var x=window.confirm(iX.get(m)+". "+iX.get([6,8])+"?");
if(x){var a=new h9(v.E.b4,!0);a.data={YF:"rasterizeLayer",WA:{classID:"rasterizeLayer",null:e6.Yr("Lyr",!0)}};
s.Y(a)}return l?x:!1}if(s)alert(iX.get(m));return!1};jF.prototype.W1=function(s){var m=this.root.Wp(s);
if(m.parent)return m.i.p$()&&this.W1(m.parent.index);else return m.i.p$()};jF.prototype.SV=function(){var s=this;
if(s.add.artd&&s.N.length!=0){var m=s.root.Wp(s.N[0]);while(m.parent.parent)m=m.parent;if(m.i.add.artb)return m.index}return-1};
jF.prototype.ZD=function(){var s=this.G[this.N[0]];if(s.Ar<=0&&!s.rect.Hx(this.q.rect)){alert("Selected area is empty.");
return!1}if(this.N.length==1&&this.q){var m=L.B(this.q.channel.length);L.Pw(s.buffer,s.rect,m,this.q.rect);
L.Sf(this.q.channel,m);if(L.D_(m,0)){alert("Selected area is empty.");return!1}}return!0};jF.prototype.Q1=function(){if(this.wD["r"+1037]==null)this.gx(30);
return g.Ji(this.wD["r"+1037],0)};jF.prototype.gx=function(s){if(this.wD["r"+1037]==null)this.wD["r"+1037]=new Uint8Array(4);
if(g.Ji(this.wD["r"+1037],0)==s)return;g.lV(this.wD["r"+1037],0,s);this.bx()};jF.prototype.Zn=function(){if(this.wD["r"+1049]==null)this.qt(30);
return g.Ji(this.wD["r"+1049],0)};jF.prototype.qt=function(s){if(this.wD["r"+1049]==null)this.wD["r"+1049]=new Uint8Array(4);
if(g.Ji(this.wD["r"+1049],0)==s)return;g.lV(this.wD["r"+1049],0,s);this.bx()};jF.prototype.a7=function(s){if(this.add.lnk2==null)return null;
for(var C=0;C<this.add.lnk2.length;C++)if(this.add.lnk2[C].te==s)return this.add.lnk2[C];return null};
jF.prototype.a4M=function(s){var m=this.a7(s);if(m==null)return!1;var l=iO.D1(m.raw.buffer);if(l==null)return!1;
if(iO.ln(l)!=null||l=="psd")return!0;return!1};jF.prototype.WN=function(s,m,l,x){var a=this.a7(s);if(a==null)return null;
a.cf(m,l,x);if(a.H6)return a};jF.prototype.Yn=function(){var s=this.e,m=this.l;if(M.wR&&this.UM==null)this.UM=new M.KY(s,m,!0);
if(this.buffer==null||this.buffer.length!=s*m*4||M.wR&&(this.UM.e!=s||this.UM.l!=m)){this.buffer=L.B(s*m*4);
if(this.UM)this.UM.delete();if(M.wR)this.UM=new M.KY(s,m,!0)}};jF.prototype.a5J=function(){this.Yn();
if(M.wR){this.UM.set(this.buffer)}};jF.prototype.nZ=function(s){var m=this.e,l=this.l,x=new bU(0,0,m,l),a=x.pF(this.mn);
this.Yn();if(a.Xh())return;if(!a.yb(x)){if(!M.wR){var P=L.dV(a.k()*4);L.yx(P,a,this.buffer,x)}if(M.wR){M.C8(this.UM,a);
M.MV(0)}}else{if(M.wR){this.UM.set(null)}else{this.buffer.fill(0)}}var o=Date.now(),G=M.wR?this.UM:this.buffer;
if(s==null)s=1e9;var _=this.root.children;for(var C=0;C<_.length;C++){var j=_[C].i;if(j.p$()&&j.add.artb){var U=j.wy(),S=a.pF(U),X=j.Qi();
if(X!=0){if(M.wR){M.C8(G,S);M.MV(X);M.MV(X)}else L.afr(G,x,S,X)}}}this.root.x$(G,x,a,this,[],s);this.EJ=this.mn.clone()};
jF.prototype.d2=function(s){var m=new t;m.rect=new bU(0,0,0,0);m.buffer=L.B(1);m.add.luni=new fz(0,0);
if(s!=!0)m.add.lyid=this.yQ();m.add.lsct=hN.Ru;m.add.lclr=0;m.add.fxrp=new fz(0,0);return m};jF.prototype.b8=function(s){var m=this.d2(s);
m.qW("</Layer group>");m.add.lsct=hN.k_;m.Yy=24;return m};jF.prototype.m3=function(){return this.gH!=this.wm};
jF.prototype.eN=function(s){while(this.history.length>this.gH+1)this.history.pop();if(this.wm>this.gH)this.wm=-1;
if(s.c.id!=r.zH){this.d6=!0;if(this.xW.lastAppliedComp){delete this.xW.lastAppliedComp;this.Gq=!0}}this.history.push(s);
this.gH++;this.Gq=!0;var m=fr.vU()?60:30,l=0;for(var C=this.history.length-1;C>=0;C--){var x=this.history[C];
if(x.wO)continue;l++;if(l==m){this.gH-=C;this.history=this.history.slice(C);break}}};jF.prototype.b1=function(){if(this.gH!=this.history.length-1)return null;
return this.history[this.history.length-1]};jF.prototype.cT=function(s,m,l,x){if(s==null)s=!1;var a=m!=null?[m]:this.N.slice(0);
if(x){var P=[];for(var C=0;C<a.length;C++){var o=this.G[a[C]],G=o.FX;if(o.KV&&G!=0&&P.indexOf(G)==-1)P.push(G)}if(P.length!=0)for(var C=0;
C<this.G.length;C++){var o=this.G[C],G=o.FX;if(o.KV&&G!=0&&P.indexOf(G)!=-1&&a.indexOf(C)==-1)a.push(C)}}var _=[];
for(var C=0;C<a.length;C++){var j=this.bo(a[C],s);for(var U=0;U<j.length;U++)if(_.indexOf(j[U])==-1)_.push(j[U]);
if(l){var cE=this.root.Wp(a[C]);while(cE.parent!=null&&cE.parent.parent!=null){cE=cE.parent;if(_.indexOf(cE.index)==-1){_.push(cE.index,cE.ot)}}}}return _};
jF.prototype.qJ=function(s,m,l){var x=this,a=x.cT(!1,s,null,l);a.sort(function(T,I){return T-I});var P={};
for(var o=0;o<x.G.length;o++){var G=x.G[o].getName();P[G]=!0}var _=[];for(var C=0;C<a.length;C++){var j=x.G[a[C]].clone(),p,D;
j.add.lyid=x.yQ();j.add.lspf=0;if(j.UI()){var U=j.Ao(x),S=jF.bZ(U);x.Vi(S);j.add.SoLd.placed.v=S.id}else if(j.add.SoLd){var X=j.add.SoLd.placed.v;
j.add.SoLd.placed.v=jF.wd(X.slice(0,8))+X.slice(8)}j.sN(x);var c=j.getName(),y=c.length;while(48<=c.charCodeAt(y-1)&&c.charCodeAt(y-1)<=57)y--;
var O=parseInt(c.slice(y));if(isNaN(O)){if(c.endsWith(" copy")){O=1;p=c.slice(0,c.length-5)}else{O=0;
p=c}}else if(c.slice(0,y).endsWith(" copy ")){O=O;p=c.slice(0,y-6)}else{O=0;p=c}O++;while(!0){D=p+" copy"+(O==1?"":" "+O);
if(P[D]==null)break;O++}var f=a.indexOf(this.root.Wp(a[C]).parent.index)!=-1;if(c=="Background"&&x.G.length==1)D="Layer 1";
if(m!=!0&&!f)j.qW(D);P[D]=!0;_.push(j)}return _};jF.bZ=function(s){return{id:jF.wd(s.id.slice(0,8))+s.id.slice(8),buffer:s.buffer.slice(0),rect:s.rect.clone(),v:s.v?s.v.clone():null}};
jF.y3=function(s){return{id:s,rect:new bU,buffer:L.B(1),v:new t.K0}};jF.Fu=function(s,m){if(m==null)m={vmsk:new t.sD};
if(m.vogk==null){m.vogk=[];var l=L.j.Y7(m.vmsk.T);for(var x=0;x<l;x++)m.vogk.push(L.R2.dV())}return{name:s,jV:0,add:m}};
jF.prototype.S4=function(s){var m=[],l=[],x=this,P=0;for(var C=1;C<x.sj.length;C++){var a=x.sj[C];a.jV=-1-C;
m.push(a);if(x.FZ.indexOf(C)!=-1)l.push(m.length-1)}if(x.sj[0].add.vmsk.T.length>2){var a=x.sj[0];a.jV=-1;
m.push(a);if(x.FZ.indexOf(0)!=-1)l.push(m.length-1)}var o=x.QR==null;if(o)x.QR=[];for(var C=x.N.length-1;
C>=0;C--){var G=x.G[x.N[C]],_=G.add.TySh;if(G.add.vmsk!=null&&(G.UB||G.Ee())){var a=jF.Fu("\""+G.getName()+"\" Shape Path",G.add);
a.jV=x.N[C];m.push(a);if(o)x.QR.push(P);if(x.QR.indexOf(P)!=-1)l.push(m.length-1);P++}if(s!=!0&&_&&_.add&&L.Lv.AY(_.hG)){var a=jF.Fu("\""+G.getName().slice(0,10)+"..\" Text Path",_.add);
a.jV=1e6+x.N[C];m.push(a);l.push(m.length-1);P++}}if(l.length==0&&s){x.sj[0].jV=-1;x.FZ=[0];l.push(m.length);
m.push(x.sj[0])}return[m,l]};jF.prototype.bo=function(C,s){var m=[],cE=this.root.Wp(C);if(cE)cE.H_(m,s);
return m};jF.prototype.qn=function(){this.root.jj(this,new bU(0,0,this.e,this.l),32*r.W())};jF.prototype.B0=function(s){for(var C=0;
C<this.G.length;C++){var m=this.G[C];if(s.indexOf(m)==-1){m.GM.a8A();m.F()}}var l=0;for(var C=0;C<s.length;
C++)if(s[C].add.artb)l++;this.Gp(l);this.G=s.slice(0);this.Bi()};jF.prototype.Bi=function(){var s=this.G,m=s.length;
this.root=new d5;var l=this.d2(!0);l.TR="pass";l.add.lsct=hN.yF;var x=this.b8(!0),a=[x];for(var C=0;
C<m;C++)a.push(s[C]);a.push(l);this.root.LN(a,0,0);if(this.N.length==0)this.N=[m-1]};jF.prototype.dH=function(){if(this.N.length!=1)return;
var s=this.root.Wp(this.N[0]);while(s.parent!=null){var m=s.parent.i;m.add.lsct=hN.yF;s=s.parent}this.R8=this.a8p=!0};
jF.prototype.asl=function(){this.Bi();var s=[this.root],dF=0;while(s.length!=0){var top=s.pop();dF++;
if(top.i.add.lsct==hN.yF)for(var C=0;C<top.children.length;C++)s.push(top.children[C])}if(dF>1e3){var m=this.root.children;
for(var C=0;C<m.length;C++)if(m[C].i.add.lsct==hN.yF)m[C].i.add.lsct=hN.fs}};jF.oI=function(s,m,l,x,a,P,o){var G={__name:"Make",classID:"Mk",Nw:{t:"Objc",v:{classID:"Dcmn",Nm:{t:"TEXT",v:x},artboard:{t:"bool",v:P},Md:{t:"type",v:{classID:"RGBM"}},Wdth:{t:"UntF",v:{type:"#Rlt",val:s}},Hght:{t:"UntF",v:{type:"#Rlt",val:m}},Rslt:{t:"UntF",v:{type:"#Rsl",val:l}},pixelScaleFactor:{t:"doub",v:1},Fl:{t:"enum",v:{Fl:a}},Dpth:{t:"long",v:8},profile:{t:"TEXT",v:"sRGB IEC61966-2.1"}}}};
if(a=="Clr")G.Nw.v.FlCl={t:"Objc",v:o};return{YF:"make",WA:G}};jF.adf=function(s,m){var l=0,x=0,a=72,P=m.aq_,o=s.preset&&s.preset.v=="Clipboard";
if(o){l=P.e;x=P.l}else{l=s.Wdth.v.val;x=s.Hght.v.val;a=s.Rslt.v.val}var G=new jF((s.Nm?s.Nm.v:iX.get([11,7]))+".psd");
G.e=l;G.l=x;G.sz=a;var _=s.Fl?s.Fl.v.Fl:"Wht";if(s.artboard&&s.artboard.v){var j=G.d2();j.qW("Artboard 1");
j.add.lsct=hN.yF;j.Kp(new bU(0,0,l,x));j.add.artb.artboardBackgroundType={t:"long",v:{Wht:1,Blck:2,Trns:3,BckC:1,Clr:4}[_]};
if(_=="Clr")j.add.artb.Clr={t:"Objc",v:L.K.gc(L.K.Qv(s.FlCl.v))};j.TR="pass";j.Yy=24;G.B0([G.b8(),j]);
G.Gp(1)}else{var U=G.d2(),S=0;U.qW("Background");G.B0([U]);U.add.lspf=1<<2;if(_=="Clr"){S=L.K.Qv(s.FlCl.v);
S=255<<24|Math.round(S.S)<<16|Math.round(S.z)<<8|Math.round(S.o)}else{var X=m.Pi;X=(X&255)<<16|(X>>>8&255)<<8|X>>>16;
S={Trns:0,Wht:4294967295,Blck:4278190080,BckC:255<<24|X}[_]}U.rect=new bU(0,0,l,x);U.buffer=L.B(l*x*4);
L.MP(U.buffer,S)}G.buffer=L.B(l*x*4);return G};function gH(s){this.u0=s;this.O=0;this.we=1;this.X=new fz(0,0);
this.Ho=new fz(0,0);this.xe=0;this.OL=[1,1,1];this.tH=new bU(0,0,1,1);this.abI=new bU(0,0,s.e,s.l);this.Bm=null;
this.Sc=null;this.df=new Uint32Array(0);this.xb=null;this.ex=null;this.P8=L.B(0);this.HP=null;this.mY=null}gH.prototype.oX=function(s){var m=new ae,l=this.tH,x=this.u0,a=s?this.we:this.O,P=s?this.Ho:this.X,o=Math.round((l.e-x.e*a)/2+P.x),G=Math.round((l.l-x.l*a)/2+P.y);
m.translate(-o,-G);m.scale(1/a,1/a);var _=x.e/2,j=x.l/2;m.translate(-_,-j);m.rotate(this.xe);m.translate(_,j);
return m};gH.prototype.XJ=function(s){var m=this.tH,l=this.u0,x=Math.atan2(-s.S,s.lz),a=l.e/2,P=l.l/2;
s.translate(-a,-P);s.rotate(-x);s.translate(a,P);var o=1/s.LL();s.scale(o,o);var G=-s.sI,_=-s.bW,j=Math.round(G-(m.e-l.e*o)/2),U=Math.round(_-(m.l-l.l*o)/2);
if(Math.abs(o-Math.round(o))<1e-6)o=Math.round(o);this.xe=x;this.O=o;this.X=new fz(j,U)};gH.prototype.cr=function(s,m){var l=this.oX();
return l.oG(new fz(s,m))};gH.prototype.fU=function(s,m){var l=this.oX();l.ms();return l.oG(new fz(s,m))};
function i4(){}i4.order="ebbl FrFX IrSh IrGl ChFX SoFi GrFl patternFill OrGl DrSh".split(" ");i4.rm="ebblMulti frameFXMulti innerShadowMulti IrGlMulti ChFXMulti solidFillMulti gradientFillMulti patternFillMulti OrGlMulti dropShadowMulti".split(" ");
i4.names=[[14,4],[14,9],[14,1],[14,3],[14,8],[14,5],[14,6],[14,7],[14,2],[14,0]];i4.X2=["DrSh","IrSh","SoFi","GrFl","FrFX"];
i4.Rc=["Clr"];i4.Ql="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");i4._6=["Ptrn","Angl","Scl","Algn","phase"];
i4.Cw={Uy:"{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}}}",Hn:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Grdn\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"Two Color\" },\"GrdF\":{\"t\":\"enum\",\"v\":{\"GrdF\":\"CstS\"}},\"Intr\":{\"t\":\"doub\",\"v\":4096},\"Clrs\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"Clrt\",\"Type\":{\"t\":\"enum\",\"v\":{\"Clry\":\"UsrS\"}},\"Lctn\":{\"t\":\"long\",\"v\":0},\"Mdpn\":{\"t\":\"long\",\"v\":50},\"Clr\":{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"t\":\"doub\",\"v\":0},\"Grn\":{\"t\":\"doub\",\"v\":0},\"Bl\":{\"t\":\"doub\",\"v\":0}}}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"Clrt\",\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":255,\"t\":\"doub\"},\"Bl\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"},\"Type\":{\"v\":{\"Clry\":\"UsrS\"},\"t\":\"enum\"},\"Lctn\":{\"v\":4096,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"}]},\"Trns\":{\"v\":[{\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Lctn\":{\"v\":0,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Lctn\":{\"v\":4096,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}}}",OD:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Grdn\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"Foreground to Background\"},\"GrdF\":{\"t\":\"enum\",\"v\":{\"GrdF\":\"CstS\"}},\"Intr\":{\"t\":\"doub\",\"v\":4096},\"Clrs\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"Clrt\",\"Type\":{\"t\":\"enum\",\"v\":{\"Clry\":\"FrgC\"}},\"Lctn\":{\"t\":\"long\",\"v\":0},\"Mdpn\":{\"t\":\"long\",\"v\":50}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"Clrt\",\"Type\":{\"t\":\"enum\",\"v\":{\"Clry\":\"BckC\"}},\"Lctn\":{\"t\":\"long\",\"v\":4096},\"Mdpn\":{\"t\":\"long\",\"v\":50}}}]},\"Trns\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"Lctn\":{\"t\":\"long\",\"v\":0},\"Mdpn\":{\"t\":\"long\",\"v\":50}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"Lctn\":{\"t\":\"long\",\"v\":4096},\"Mdpn\":{\"t\":\"long\",\"v\":50}}}]}}}",a3:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Grdn\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"Custom\" },\"GrdF\":{\"t\":\"enum\",\"v\":{\"GrdF\":\"ClNs\"}},\"ShTr\":{\"t\":\"bool\",\"v\":false},\"VctC\":{\"t\":\"bool\",\"v\":false},\"ClrS\":{\"t\":\"enum\",\"v\":{\"ClrS\":\"RGBC\"}},\"RndS\":{\"t\":\"long\",\"v\":1466092501},\"Smth\":{\"t\":\"long\",\"v\":2048},\"Mnm\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"long\",\"v\":0},{\"t\":\"long\",\"v\":0},{\"t\":\"long\",\"v\":0},{\"t\":\"long\",\"v\":0}]},\"Mxm\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"long\",\"v\":100},{\"t\":\"long\",\"v\":100},{\"t\":\"long\",\"v\":100},{\"t\":\"long\",\"v\":100}]}}}",Oi:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"v\":\"orangeslices\",\"t\":\"TEXT\"},\"Idnt\":{\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\",\"t\":\"TEXT\"}}}"};
i4.Cw.Uy="\"Clr\": "+i4.Cw.Uy;i4.Cw.K="\"Grad\":"+i4.Cw.Hn+",\"Scl\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Algn\":{\"v\":true,\"t\":\"bool\"},\"Angl\":{\"v\":{\"type\":\"#Ang\",\"val\":90},\"t\":\"UntF\"},\"Rvrs\":{\"v\":false,\"t\":\"bool\"},\"Type\":{\"v\":{\"GrdT\":\"Lnr\"},\"t\":\"enum\"},\"Ofst\":{\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"Vrtc\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"}},\"t\":\"Objc\"},\"Dthr\":{\"v\":false,\"t\":\"bool\"}";
i4.Cw.Oi="\"Ptrn\":"+i4.Cw.Oi+",\"Scl\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Algn\":{\"v\":true,\"t\":\"bool\"},\"Angl\":{\"v\":{\"type\":\"#Ang\",\"val\": 0},\"t\":\"UntF\"},\"phase\":{\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"}";
i4.default="{ \"classID\": \"null\", \"Scl\": {\"t\": \"UntF\", \"v\": { \"type\": \"#Prc\",\"val\": 100} }, \"masterFXSwitch\": {\"t\": \"bool\",\"v\": true} }";
i4.Ej=["{\"classID\":\"ebbl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"hglM\":{\"t\":\"enum\",\"v\":{\"BlnM\":\"Scrn\"}},\"hglC\":{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"t\":\"doub\",\"v\":255},\"Grn\":{\"t\":\"doub\",\"v\":255},\"Bl\":{\"t\":\"doub\",\"v\":255}}},\"hglO\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":75}},\"sdwM\":{\"t\":\"enum\",\"v\":{\"BlnM\":\"Mltp\"}},\"sdwC\":{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"t\":\"doub\",\"v\":0},\"Grn\":{\"t\":\"doub\",\"v\":0},\"Bl\":{\"t\":\"doub\",\"v\":0}}},\"sdwO\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":75}},\"bvlT\":{\"t\":\"enum\",\"v\":{\"bvlT\":\"SfBL\"}},\"bvlS\":{\"t\":\"enum\",\"v\":{\"BESl\":\"InrB\"}},\"uglg\":{\"t\":\"bool\",\"v\":true},\"lagl\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Ang\",\"val\":120}},\"Lald\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Ang\",\"val\":30}},\"srgR\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"blur\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Pxl\",\"val\":5}},\"bvlD\":{\"t\":\"enum\",\"v\":{\"BESs\":\"In\"}},\"TrnS\":{\"t\":\"Objc\",\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"Linear\"},\"Crv\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":0},\"Vrtc\":{\"t\":\"doub\",\"v\":0}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":255},\"Vrtc\":{\"t\":\"doub\",\"v\":255}}}]}}},\"antialiasGloss\":{\"t\":\"bool\",\"v\":false},\"Sftn\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Pxl\",\"val\":0}},\"useShape\":{\"t\":\"bool\",\"v\":false},\"MpgS\":{\"t\":\"Objc\",\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"Linear\"},\"Crv\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":0},\"Vrtc\":{\"t\":\"doub\",\"v\":0}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":255},\"Vrtc\":{\"t\":\"doub\",\"v\":255}}}]}}},\"AntA\":{\"t\":\"bool\",\"v\":false},\"Inpr\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":28}},\"useTexture\":{\"t\":\"bool\",\"v\":false},\"InvT\":{\"t\":\"bool\",\"v\":false},\"Algn\":{\"t\":\"bool\",\"v\":true},\"Scl\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"textureDepth\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"Ptrn\":{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"orangeslices\"},\"Idnt\":{\"t\":\"TEXT\",\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\"}}},\"phase\":{\"t\":\"Objc\",\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"t\":\"doub\",\"v\":0},\"Vrtc\":{\"t\":\"doub\",\"v\":0}}}}","{\"classID\":\"FrFX\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Styl\":{\"v\":{\"FStl\":\"OutF\"},\"t\":\"enum\"},\"PntT\":{\"v\":{\"FrFl\":\"SClr\"},\"t\":\"enum\"},\"Sz\":{\"v\":{\"type\":\"#Pxl\",\"val\":3},\"t\":\"UntF\"},"+i4.Cw.Uy+","+i4.Cw.K+","+i4.Cw.Oi+"}","{\"classID\":\"IrSh\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Mltp\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 75},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"uglg\":{\"v\":true,\"t\":\"bool\"},\"lagl\":{\"v\":{\"type\":\"#Ang\",\"val\":120},\"t\":\"UntF\"},\"Dstn\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Linear\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"}}","{\"classID\":\"IrGl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Scrn\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 75},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":255,\"t\":\"doub\"},\"Bl\":{\"v\":189.99710083007812,\"t\":\"doub\"}},\"t\":\"Objc\"},\"GlwT\":{\"v\":{\"BETE\":\"SfBL\"},\"t\":\"enum\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"ShdN\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"glwS\":{\"v\":{\"IGSr\":\"SrcE\"},\"t\":\"enum\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Linear\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"},\"Inpr\":{\"v\":{\"type\":\"#Prc\",\"val\":50},\"t\":\"UntF\"}}","{\"classID\":\"ChFX\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Mltp\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 50},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"Invr\":{\"v\":true,\"t\":\"bool\"},\"lagl\":{\"v\":{\"type\":\"#Ang\",\"val\":19},\"t\":\"UntF\"},\"Dstn\":{\"v\":{\"type\":\"#Pxl\",\"val\":11},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":14},\"t\":\"UntF\"},\"MpgS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Gaussian\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":32,\"t\":\"doub\"},\"Vrtc\":{\"v\":7,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":64,\"t\":\"doub\"},\"Vrtc\":{\"v\":38,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":96,\"t\":\"doub\"},\"Vrtc\":{\"v\":101,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":128,\"t\":\"doub\"},\"Vrtc\":{\"v\":166,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":159,\"t\":\"doub\"},\"Vrtc\":{\"v\":209,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":191,\"t\":\"doub\"},\"Vrtc\":{\"v\":235,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":223,\"t\":\"doub\"},\"Vrtc\":{\"v\":248,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"}}","{\"classID\":\"SoFi\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+i4.Cw.Uy+"}","{\"classID\":\"GrFl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+i4.Cw.K+"}","{\"classID\":\"patternFill\",\"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+i4.Cw.Oi+"}","{\"classID\":\"OrGl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Scrn\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 75},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":255,\"t\":\"doub\"},\"Bl\":{\"v\":189.99710083007812,\"t\":\"doub\"}},\"t\":\"Objc\"},\"GlwT\":{\"v\":{\"BETE\":\"SfBL\"},\"t\":\"enum\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"ShdN\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Linear\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"},\"Inpr\":{\"v\":{\"type\":\"#Prc\",\"val\":50},\"t\":\"UntF\"}}","{\"classID\":\"DrSh\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Mltp\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 57},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"uglg\":{\"v\":true,\"t\":\"bool\"},\"lagl\":{\"v\":{\"type\":\"#Ang\",\"val\":120},\"t\":\"UntF\"},\"Dstn\":{\"v\":{\"type\":\"#Pxl\",\"val\":27},\"t\":\"UntF\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":13},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Line\xE1rn\xED\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"},\"layerConceals\":{\"v\":true,\"t\":\"bool\"}}"];
i4.K={types:"Lnr Rdl Angl Rflc Dmnd shapeburst".split(" "),names:[[19,0,0],[19,0,1],[19,0,2],[19,0,3],[19,0,4],[19,0,5]]};
i4.stroke={types:["InsF","CtrF","OutF"],names:[[19,5,2],[19,5,1],[19,5,0]],kh:["SClr","GrFl","Ptrn"],a4a:[[13,0],[12,37],[12,62]]};
i4.Ou={types:["SfBL","PrBL"],names:[[19,1,0],[19,1,1]],yL:["SrcC","SrcE"],anU:[[19,5,1],[12,69]]};i4.bb={types:["OtrB","InrB","Embs","PlEb","strokeEmboss"],style:[[19,2,0],[19,2,1],[19,2,2],[19,2,3],[19,2,4]],xc:["SfBL","PrBL","Slmt"],ahn:[[19,3,0],[19,3,1],[19,3,2]],dir:[[19,4,0],[19,4,1]]};
i4.Ah={S5:["strokeStyleButtCap","strokeStyleRoundCap","strokeStyleSquareCap"],Es:["strokeStyleAlignInside","strokeStyleAlignCenter","strokeStyleAlignOutside"],join:["strokeStyleMiterJoin","strokeStyleRoundJoin","strokeStyleBevelJoin"],Lk:["solidColorLayer","gradientLayer","patternLayer"],default:{classID:"strokeStyle",strokeStyleVersion:{t:"long",v:2},strokeEnabled:{t:"bool",v:!1},fillEnabled:{t:"bool",v:!0},strokeStyleLineWidth:{t:"UntF",v:{type:"#Pnt",val:4.38}},strokeStyleLineDashOffset:{t:"UntF",v:{type:"#Pnt",val:0}},strokeStyleMiterLimit:{t:"doub",v:100},strokeStyleLineCapType:{t:"enum",v:{strokeStyleLineCapType:"strokeStyleButtCap"}},strokeStyleLineJoinType:{t:"enum",v:{strokeStyleLineJoinType:"strokeStyleMiterJoin"}},strokeStyleLineAlignment:{t:"enum",v:{strokeStyleLineAlignment:"strokeStyleAlignCenter"}},strokeStyleScaleLock:{t:"bool",v:!1},strokeStyleStrokeAdjust:{t:"bool",v:!1},strokeStyleLineDashSet:{t:"VlLs",v:[]},strokeStyleBlendMode:{t:"enum",v:{BlnM:"Nrml"}},strokeStyleOpacity:{t:"UntF",v:{type:"#Prc",val:100}},strokeStyleContent:{t:"Objc",v:JSON.parse("{\"classID\":\"solidColorLayer\","+i4.Cw.Uy+"}")},strokeStyleResolution:{t:"doub",v:72}}};
i4.Om=[{classID:"null",Clr:JSON.parse(i4.Ej[5]).Clr},{classID:"null",Grad:JSON.parse(i4.Ej[6]).Grad,Dthr:{t:"bool",v:!1},Rvrs:{t:"bool",v:!1},Angl:{t:"UntF",v:{type:"#Ang",val:0}},Type:{t:"enum",v:{GrdT:"Lnr"}},Algn:{t:"bool",v:!0},Scl:{t:"UntF",v:{type:"#Prc",val:100}},Ofst:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:0}},Vrtc:{t:"UntF",v:{type:"#Prc",val:0}}}}},{classID:"null",Ptrn:JSON.parse(i4.Ej[7]).Ptrn,Algn:{v:!0,t:"bool"},Scl:{v:{type:"#Prc",val:100},t:"UntF"},Angl:{v:{type:"#Ang",val:0},t:"UntF"},phase:{v:{classID:"Pnt",Hrzn:{v:0,t:"doub"},Vrtc:{v:0,t:"doub"}},t:"Objc"}}];
var jo={};jo.pL=function(s,m){function l(s,X){if(s==null)return null;var c=s[X].v,y;if(c.length!=0){y=c[0].v;
if(!y.enab.v)y=null}return y}var x=m.SoCo,a=m.GdFl,P=l(s,"solidFillMulti"),o=l(s,"gradientFillMulti");
if(P==null&&o==null)return[x,a];var G=jo.alP;if(x&&P&&o==null){var _=JSON.parse(JSON.stringify(x));_.Clr.v=G(P.Clr.v,x.Clr.v,P);
return[_,null]}if(a&&P&&o==null){var j=JSON.parse(JSON.stringify(a)),U=j.Grad.v.Clrs.v;for(var C=0;C<U.length;
C++){var S=U[C].v.Clr;S.v=G(P.Clr.v,S.v,P)}return[null,j]}if(x&&o){var j=JSON.parse(JSON.stringify(o)),U=j.Grad.v.Clrs.v;
for(var C=0;C<U.length;C++){var S=U[C].v.Clr;S.v=G(S.v,x.Clr.v,o)}return[null,j]}return[P,o]};jo.a7R={A2:L.B(4),fz:L.B(4),o:new bU(0,0,1,1)};
jo.alP=function(s,m,l){var x=aA.wq(l.Md.v.BlnM),a=l.Opct.v.val/100,P=jo.a7R;s=L.K.Qv(s);m=L.K.Qv(m);
P.A2[0]=s.o;P.A2[1]=s.z;P.A2[2]=s.S;P.A2[3]=255;P.fz[0]=m.o;P.fz[1]=m.z;P.fz[2]=m.S;P.fz[3]=255;L.a.$P(x,P.A2,P.o,P.fz,P.o,P.o,a);
return{classID:"RGBC",Rd:{t:"doub",v:P.fz[0]},Grn:{t:"doub",v:P.fz[1]},Bl:{t:"doub",v:P.fz[2]}}};jo.rG=function(s,m,l){var x=s;
s=s.slice(0);var a=aA.EB[aA.Bo.indexOf(m.Md.v.BlnM)],P=L.K.Qv(m.Clr.v),o=4278190080|Math.round(P.S)<<16|Math.round(P.z)<<8|Math.round(P.o),G=L.B(l.k()*4);
L.MP(G,o);L.a.$P(a,G,l,s,l,l,m.Opct.v.val/100);for(var C=0;C<s.length;C+=4)s[C+3]=x[C+3];return s};jo.Mi=function(s,m){var l=["Sz","blur","Sftn","Dstn"];
for(var C=0;C<i4.order.length;C++){var x=i4.order[C],a=s[i4.rm[C]].v;for(var P=0;P<a.length;P++){var o=a[P].v;
for(var G=0;G<l.length;G++){var _=o[l[G]];if(_){var j=_.v.val,U=j;U=Math.max(j==0?0:1,U*m);if(x=="ChFX")U=Math.min(U,250);
if(x=="ebbl"){if(l[G]=="blur")U=Math.min(U,250);if(l[G]=="Sftn")U=Math.min(U,16)}_.v.val=Math.round(U)}}if(x=="ebbl"||x=="patternFill"||x=="FrFX")if(o.Ptrn&&o.Scl)o.Scl.v.val=Math.max(1,Math.min(1e3,o.Scl.v.val*m))}}};
jo.afb=function(s,m,l){var x=new bU(-.5,-.5,1,1);for(var C=0;C<i4.order.length;C++){var a=i4.order[C],P=s[i4.rm[C]].v;
for(var o=0;o<P.length;o++){var G=P[o].v,S;if(!G.enab.v)continue;var _=G.blur?G.blur.v.val+1:0,j=G.Ckmt?G.Ckmt.v.val/100:0,U=Math.round(_*j);
if(a=="DrSh"||a=="IrSh"&&l){S=new bU(-.5,-.5,1,1);S.yD(_,_);jo.pz(S,G,m,0)}if(a=="OrGl"||a=="IrGl"&&l){S=new bU(-.5,-.5,1,1);
S.yD(_,_)}if(a=="FrFX"){var X=jo.MY(G),c=X[1];if(l)c=Math.max(X[0],c);S=new bU(-.5,-.5,1,1);S.yD(Math.ceil(c),Math.ceil(c))}if(a=="ebbl"){var _=G.blur.v.val,y=G.bvlS.v.BESl;
if(y=="Embs"||y=="PlEb")_/=2;var O=["OtrB","InrB","Embs","PlEb","strokeEmboss"],p=["SfBL","PrBL","Slmt"],D=["In","Out"],f=G.bvlT.v.bvlT!="SfBL"?_:_*.43,T=Math.round(_);
S=new bU(-T-1,-T-1,2*T+2,2*T+2)}if(l&&a=="ChFX"){S=new bU(-.5,-.5,1,1);S.yD(_,_);var I=S.clone();jo.pz(S,G,m,0);
jo.pz(I,G,m,Math.PI);S=S.if(I)}if(S)x=x.if(S)}}if(x.x!=Math.ceil(x.x)){x.x=Math.ceil(x.x);x.e-=1}if(x.y!=Math.ceil(x.y)){x.y=Math.ceil(x.y);
x.l-=1}x.e=Math.floor(x.e);x.l=Math.floor(x.l);return x};jo.MY=function(s){var m=0,l=0,x=s.Styl.v.FStl,a=s.Sz.v.val;
if(x=="OutF")l=a;if(x=="InsF")m=a;if(x=="CtrF")m=l=a/2;return[m,l]};jo.a7A=function(s){if(M.wR&&s.nl==null){s.nl=new M.KY(s.DC.e,s.DC.l);
s.nl.set(s.du);delete s.du;if(s.yX){s.o6=new M.t$(s.DC.e,s.DC.l);s.o6.set(s.yX);delete s.yX}if(s.Qc){s.l6=new M.t$(s.DC.e,s.DC.l);
s.l6.set(s.Qc);delete s.Qc}}};jo.arp=function(s){if(s.nl)s.nl.delete();if(s.o6)s.o6.delete();if(s.l6)s.l6.delete()};
jo.Xw=function(s){if(s.all==null)return;for(var C=0;C<s.all.length;C++){jo.arp(s.all[C])}};jo.a8O=function(s,m,l,x,a,P){var o=jo.kA(l,x,s,m,a,P);
for(var C=0;C<o.all.length;C++)jo.a7A(o.all[C]);return o};jo.l7=function(s){for(var C=0;C<i4.order.length;
C++){var m=i4.order[C],l=i4.rm[C],x=s[l].v;for(var a=0;a<x.length;a++){var P=x[a].v;if(P.enab.v&&["patternFill","GrFl","SoFi"].indexOf(m)==-1)return!0}}return!1};
jo.kA=function(s,m,l,x,a,P){if(P==null)P=x;var o=0,G=0;for(var C=0;C<i4.order.length;C++){var _=i4.order[C],j=i4.rm[C],U=s[j].v;
for(var S=0;S<U.length;S++){var X=U[S].v;if(_=="DrSh"&&X.enab.v&&X.Ckmt.v.val>0&&X.blur.v.val>0)o=Math.max(o,Math.ceil(X.Ckmt.v.val*X.blur.v.val/100));
if(_=="OrGl"&&X.enab.v&&X.Ckmt.v.val>0&&X.blur.v.val>0&&X.GlwT.v.BETE=="SfBL")o=Math.max(o,Math.ceil(X.Ckmt.v.val*X.blur.v.val/100));
if(_=="OrGl"&&X.enab.v&&X.blur.v.val>0&&X.GlwT.v.BETE=="PrBL")o=Math.max(o,X.blur.v.val);if(_=="FrFX"&&X.enab.v&&X.Sz.v.val>0){if(X.Styl.v.FStl=="OutF")o=Math.max(o,X.Sz.v.val);
if(X.Styl.v.FStl=="CtrF")o=Math.max(o,Math.ceil(X.Sz.v.val/2));G=Math.max(G,jo.MY(X)[1])}}}var c=new jo.uu(l,x,o,jo.l7(s)),y=-x.x,O=-x.y,p={type:{},all:[]};
for(var D=0;D<i4.order.length;D++){var _=i4.order[D],j=i4.rm[D];p.type[_]=[];for(var f=s[j].v.length-1;
f>=0;f--){var T=s[j].v[f].v,R;if(!T.enab.v)continue;var I=T.blur?T.blur.v.val:0,H=T.Ckmt?T.Ckmt.v.val/100:0,b=I*H;
if(_=="DrSh"){var W=c.SN(b,I-b,!0),J=W.Jv,u=W.Bv;u.offset(y,O);jo.tg(J,T,!1);jo.pz(u,T,a,0);var e=L.B(u.k()*4);
jo.k2(e,T.Clr.v);L._Y(J,e,3);R={du:e,DC:u,a8Y:T.layerConceals.v}}else if(_=="IrSh"){var W=c.SN(b,I-b,!1);
jo.pz(W.Bv,T,a,0);var u=c.rect().clone(),J=L.B(u.k());J.fill(255);L.kV(W.Jv,W.Bv,J,u);jo.tg(J,T,!0);
var e=L.B(u.k()*4);jo.k2(e,T.Clr.v);L._Y(J,e,3);u.offset(y,O);R={du:e,DC:u}}else if(_=="GrFl"){var e=L.B(c.rect().k()*4);
jo.NF(T,e,c.rect(),a,null,P);var u=c.rect().clone();u.offset(y,O);R={du:e,DC:u}}else if(_=="SoFi"){var e=L.B(c.Jv().length*4);
jo.k2(e,T.Clr.v);var u=c.rect().clone();u.offset(y,O);R={du:e,DC:u}}else if(_=="ebbl"){var q=!1;if(q)console.log(T);
var Z=Date.now(),E=T.bvlS.v.BESl;if(E=="strokeEmboss"){var z=s.frameFXMulti.v;if(z.length==0)continue;
z=z[0].v;if(!z.enab.v)continue;var V=z.Styl.v.FStl;if(V=="OutF")E="OtrB";if(V=="CtrF")E="Embs";if(V=="InsF")E="InrB"}var I=T.blur.v.val;
if(I==0)I=.7;if(E=="Embs"||E=="PlEb")I/=2;var Y=["OtrB","InrB","Embs","PlEb","strokeEmboss"],d=["SfBL","PrBL","Slmt"],w=["In","Out"],A=T.bvlT.v.bvlT!="SfBL"?I:I*.45,$=Math.round(I),i=c.rect().clone(),K=i.clone();
K.yD($,$);var h=K.e,F=K.l,N=h*F,iQ=L.B(N);L.kV(c.Jv(),i,iQ,K);var jB=new Float64Array(N),k=new Float64Array(N);
L.style.xh(iQ,jB,h,F);L.ms(iQ);L.style.xh(iQ,k,h,F);if(q)console.log("distTransform computed",Date.now()-Z);
for(var C=0;C<N;C++)k[C]=k[C]-jB[C];for(var C=0;C<N;C++){var ab=k[C];if(ab<-A)k[C]=-A;else if(ab>A)k[C]=A}if(q)console.log("summing + cropping",Date.now()-Z);
if(T.bvlT.v.bvlT=="SfBL"){var f_=Math.pow(I*.21,1.22);if(!0)f_=Math.max(f_,2);var fc=L.yf.Z1(f_,2);L.yf._r(k,jB,K,fc[0]>>>1);
L.yf._r(jB,k,K,fc[1]>>>1)}if(q)console.log("blurring",Date.now()-Z);var g8=k,bH=g8.slice(0);if(T.useShape.v){var cR=Math.min(100,T.Inpr.v.val+1)/100;
if(E!="OtrB"&&E!="InrB")cR=1;var hr=L.so.IS(T.MpgS.v.Crv.v,2e3),h$=Math.round(2e3/cR);hr=L.so.af0(hr,h$,E=="InrB");
var gE=.5/A;for(var C=0;C<N;C++){var d8=g8[C],hG=.99999*(d8+A)*gE;g8[C]=-A+2*A*hr[~~(hG*(h$-1))]}if(q)console.log("applying shape",Date.now()-Z)}if(T.useTexture.v){var f7=L.B(h*F*4);
jo.Op(T,f7,K,a.add.Patt,m);var hX=L.B(h*F);L.A1(f7,hX);var fB=L.B(h*F);L.yf.GV(hX,fB,K,1);hX=fB;var e5=I*T.textureDepth.v.val*(1/100)*(1/255);
if(T.InvT.v)e5=-e5;for(var C=0;C<N;C++)g8[C]+=-e5*hX[C];if(q)console.log("applying texture",Date.now()-Z)}var g9=(T.bvlT.v.bvlT=="SfBL"?1:.5)*(T.bvlD.v.BESs=="In"?1:-1)*T.srgR.v.val/100;
for(var C=0;C<N;C++)g8[C]*=g9;if(q)console.log("scaling",Date.now()-Z);var cL=T.uglg&&T.uglg.v?a.Q1():T.lagl.v.val;
cL=cL*(Math.PI/180);var bf=T.uglg&&T.uglg.v?a.Zn():T.Lald.v.val;bf=bf*(Math.PI/180);var gF=Math.cos(cL)*Math.cos(bf),iC=-Math.sin(cL)*Math.cos(bf),ax=Math.sin(bf),e7=new Float64Array(N),dO=new Float64Array(N),h1=E=="PlEb";
for(var hL=0;hL<F;hL++)for(var jl=0;jl<h;jl++){var C=hL*h+jl,gT=0,hZ=0,j6=1;if(hL!=0&&hL!=F-1&&jl!=0&&jl!=h-1){var aP=g8[C-h-1],h7=g8[C-h+1],fa=g8[C+h-1],h4=g8[C+h+1];
gT=-.125*(h7+2*g8[C+1]+h4-(aP+2*g8[C-1]+fa));hZ=-.125*(fa+2*g8[C+h]+h4-(aP+2*g8[C-h]+h7))}else{var cA=g8[C];
hZ=-(hL==0?g8[C+h]-cA:hL==F-1?cA-g8[C-h]:.5*(g8[C+h]-g8[C-h]));gT=-(jl==0?g8[C+1]-cA:jl==h-1?cA-g8[C-1]:.5*(g8[C+1]-g8[C-1]))}var jg=1/Math.sqrt(gT*gT+hZ*hZ+1);
gT*=jg;hZ*=jg;j6*=jg;var cS=gT*gF+hZ*iC+j6*ax,iT=cS;if(h1)iT=-gT*gF-hZ*iC+j6*ax;if(cS>0)e7[C]=cS;if(iT>0)dO[C]=iT}if(q)console.log("raycasting",Date.now()-Z);
if(T.Sftn.v.val!=0){L.yf.kH(e7,jB,K,T.Sftn.v.val*.43);var cf=jB,jB=e7,e7=cf;if(h1){L.yf.kH(dO,jB,K,T.Sftn.v.val*.43);
var cf=jB,jB=dO,dO=cf}else L.qv(e7,dO)}if(q)console.log("softening",Date.now()-Z);var hr=L.so.IS(T.TrnS.v.Crv.v,1024);
for(var C=0;C<N;C++){e7[C]=hr[~~(e7[C]*1024)];dO[C]=hr[~~(dO[C]*1024)]}if(q)console.log("contour remap",Date.now()-Z);
h=Math.round(h);F=Math.round(F);var ir=L.B(h*F*4);jo.k2(ir,T.hglC.v);var bl=L.B(h*F*4);jo.k2(bl,T.sdwC.v);
var gp=L.B(h*F*4);jo.k2(gp,T.hglC.v);var j4=L.B(h*F*4);jo.k2(j4,T.sdwC.v);var ey=1/ax,ca=1/(1-ax),gE=1/A,iu=new Float64Array(1e3);
for(var C=0;C<1e3;C++)iu[C]=Math.pow(C*.001,.2);for(var hL=0;hL<F;hL++)for(var jl=0;jl<h;jl++){var C=hL*h+jl,jv=4*C+3,g$=0,cy=0;
g$=e7[C];cy=dO[C];var cK=Math.max(0,Math.min(.9999,(bH[C]+A*.993)*gE));cK=iu[Math.floor(cK*1e3)];var cN=cK*(1-Math.min(1,g$*ey)),cJ=cK*(1-Math.min(1,(1-g$)*ca)),fb=cK*(1-Math.min(1,cy*ey)),cd=cK*(1-Math.min(1,(1-cy)*ca));
bl[jv]=Math.round(255*cN);ir[jv]=Math.round(255*cJ);j4[jv]=Math.round(255*fb);gp[jv]=Math.round(255*cd)}if(q)console.log("baking textures",Date.now()-Z);
K=c.rect().clone();K.yD($,$);K.offset(y,O);R={apH:T.bvlS.v.BESl=="strokeEmboss"};var em=aA.wq(T.hglM.v.BlnM),eq=T.hglO.v.val/100,ie=aA.wq(T.sdwM.v.BlnM),jf=T.sdwO.v.val/100;
if(["InrB","Embs","PlEb"].indexOf(E)!=-1){R.ba={du:ir,DC:K,My:em,PK:eq};R.SM={du:bl,DC:K,My:ie,PK:jf}}if(["OtrB","Embs","PlEb"].indexOf(E)!=-1){R.xx={du:gp,DC:K,My:em,PK:eq};
R.nq={du:j4,DC:K,My:ie,PK:jf}}if(q)console.log(Date.now()-Z)}else if(_=="patternFill"){var i3=c.rect(),e=L.B(i3.k()*4);
jo.Op(T,e,i3,a.add.Patt,m);var u=i3.clone();u.offset(y,O);R={du:e,DC:u}}else if(_=="ChFX"){var e=L.B(c.Jv().length*4);
jo.k2(e,T.Clr.v);var I=T.blur.v.val,j9=c.rect().clone();j9.yD(I,I);var dm=L.B(j9.k()),jy=L.B(j9.k());
L.kV(c.Jv(),c.rect(),jy,j9);L.yf.FS(jy,dm,j9,I*.43);var eg=L.so.nn(T.MpgS.v.Crv.v,256,!0);L.bK(dm,eg);
var a$=L.B(c.Jv().length),cg=L.B(c.Jv().length),gt=c.rect().clone();jo.pz(gt,T,a,0);L.kV(dm,j9,a$,gt);
gt=c.rect().clone();jo.pz(gt,T,a,Math.PI);L.kV(dm,j9,cg,gt);var i2=a$.length;for(var C=0;C<i2;C++)e[4*C+3]=Math.abs(a$[C]-cg[C]);
if(T.Invr.v)for(var C=0;C<i2;C++)e[4*C+3]=255-e[4*C+3];var u=c.rect().clone();u.offset(y,O);R={du:e,DC:u}}else if(_=="OrGl"){var W;
if(T.GlwT.v.BETE=="SfBL")W=c.SN(b,I-b,!0);else W=c.ag_(I,H,!0);var J=W.Jv,u=W.Bv,cZ=J.slice(0);jo.amd(J,T);
var e=L.B(u.k()*4);if(T.Grad==null){jo.k2(e,T.Clr.v);jo.tg(J,T,!1)}else{jo.tg(J,T,null);var g5={gD:J,CE:255,e2:0,t8:u};
jo.NF(T,e,u,a,g5);var ip=T.Nose.v.val/100,db=u.e;for(var C=0;C<cZ.length;C++){var eS=255,a1=cZ[C];if(a1<32){var im=(a1+cZ[C-1]+cZ[C+1]+cZ[C-db]+cZ[C+db])*.2-1;
eS=Math.min(255,Math.round(Math.max(0,im)*8))}J[C]=eS}jo.c2(J,T)}L._Y(J,e,3);u.offset(y,O);R={du:e,DC:u}}else if(_=="IrGl"){var W;
if(T.GlwT.v.BETE=="SfBL")W=c.SN(b,I-b,!1);else W=c.ag_(I,H,!1);var J=W.Jv,u=W.Bv;jo.amd(J,T);if(T.glwS.v.IGSr=="SrcC")L.ms(J);
var e=L.B(u.k()*4);if(T.Grad==null){jo.k2(e,T.Clr.v);jo.tg(J,T,!0)}else{jo.tg(J,T,null);var g5={gD:J,CE:255,e2:0,t8:u};
jo.NF(T,e,u,a,g5);J.fill(255);jo.c2(J,T)}L._Y(J,e,3);u.offset(y,O);R={du:e,DC:u}}else if(_=="FrFX"){var e3=jo.MY(T),gu=e3[0],f3=e3[1],u=c.rect().clone(),jw=null,dE=null;
u.yD(Math.ceil(G),Math.ceil(G));if(f3>0){var W=c.SN(f3,0,!0);dE=W.Jv;if(dE.length<u.k()){dE=L.B(u.k());
L.kV(W.Jv,W.Bv,dE,u)}}if(gu>0){var W=c.SN(gu,0,!1);jw=L.B(u.k());jw.fill(255);L.kV(W.Jv,W.Bv,jw,u)}u.offset(y,O);
var e=L.B(u.k()*4),d9=T.PntT.v.FrFl;if(d9=="SClr")jo.k2(e,T.Clr.v);if(d9=="GrFl")jo.NF(T,e,u,a,c.a95(gu,f3));
if(d9=="Ptrn")jo.Op(T,e,u,a.add.Patt,m);R={du:e,DC:u,Qc:dE,yX:jw}}p.type[_].push(R);if(_=="ebbl"){if(R.ba)p.all.push(R.ba,R.SM);
if(R.xx)p.all.push(R.xx,R.nq)}else{R.My=aA.wq(T.Md.v.BlnM);R.PK=T.Opct.v.val/100,p.all.push(R)}}}return p};
jo.ov=function(s){var m=1/Math.sqrt(s.x*s.x+s.y*s.y+s.DX*s.DX);s.x*=m;s.y*=m;s.DX*=m};jo.wb=function(s,m){return{x:s.y*m.DX-s.DX*m.y,y:s.DX*m.x-s.x*m.DX,DX:s.x*m.y-s.y*m.x}};
jo.at4=function(s,m){return s.x*m.x+s.y*m.y+s.DX*m.DX};jo.c2=function(s,m){var l=m.Nose.v.val/100;if(l>0)for(var C=0;
C<s.length;C++){var x=s[C];x=Math.min(510-(1+l)*L.style.a8(C),x);s[C]=x}};jo.Xf=function(s){var m=jo.gg(),l=s.kt,x=!1;
for(var C=0;C<32;C+=8)if(l[C]+l[C+1]+l[C+4]+l[C+5]!=0||l[C+2]+l[C+3]+l[C+6]+l[C+7]!=1020)x=!0;if(x){l=l.slice(0);
for(var C=0;C<40;C+=4){var a=l[C]/255,P=l[C+1]/255,o=l[C+2]/255,G=l[C+3]/255;l[C]=a-.001;l[C+1]=a==P?1e6:1/(P-a);
l[C+2]=o==G?-1e6:1/(o-G);l[C+3]=G+.001}}var _=s.add.iOpa!=null?s.add.iOpa/255:m.fill,j=s.add.vstk;if(j&&!j.fillEnabled.v&&(!j.strokeEnabled.v||j.strokeStyleLineWidth.v.val==0))_=0;
return{fill:_,sk:x?l:null,cQ:s.add.brst!=null?s.add.brst:m.cQ,ab9:s.add.knko!=null?s.add.knko:m.ab9,style:!1,yz:!1}};
jo.gg=function(){return{fill:1,sk:null,cQ:[1,1,1],ab9:0,style:!1,yz:!1}};jo.Ic=function(s,m){if(m==null)return null;
var l=s.Idnt.v,x=s.Nm.v;for(var C=0;C<m.length;C++)if(m[C].id==l)return m[C];for(var C=0;C<m.length;
C++)if(m[C].name==x)return m[C];return null};jo.Ts=function(s,m,l){var x=["patternFillMulti","ebblMulti","frameFXMulti"];
for(var C=0;C<x.length;C++){var a=s.v[x[C]].v;for(var P=0;P<a.length;P++)if(a[P].v.Ptrn)m.FF(jo.Ic(a[P].v.Ptrn.v,l))}};
jo.akk=function(s,m,l){var x=["patternFillMulti","ebblMulti","frameFXMulti"];for(var C=0;C<x.length;
C++){var a=s.v[x[C]].v;for(var P=0;P<a.length;P++)if(a[P].v.Ptrn){var o=a[P].v.Ptrn.v,G=jo.Ic(o,l),_=jo.Ic(o,m.add.Patt);
if(G==null&&_)l.push(_)}}};jo.Op=function(s,m,l,x,a){var P=jo.Ic(s.Ptrn.v,x);if(P!=null&&!l.Xh()){var o=P.DH,G=o[0],_=o[1],j=0;
L.$c(o);var U=(s.Scl?s.Scl.v.val:100)/100;while((U<.3||U==.5)&&o[j+2]){U*=_.e/o[j+3].e;j+=2;G=o[j];_=o[j+1]}var S=L.scale.Op(G,_.e,_.l),X=s.phase?s.phase.v:{Hrzn:{v:0},Vrtc:{v:0}},c=s.Angl?s.Angl.v.val:0,y=-l.x+X.Hrzn.v-1,O=-l.y+X.Vrtc.v-1;
if(s.Algn!=null&&!s.Algn.v){}else{y+=a.x;O+=a.y}L.scale.aP(S,m,l.e,l.l,U,U,y+1,O+1,c*Math.PI/180)}};
jo.NF=function(s,m,l,x,a,P){if(P==null)P=l;var o=s.Type?s.Type.v.GrdT:"shapeburst",G=s.Algn&&s.Algn.v?P:new bU(0,0,x.e,x.l),_=s.Angl?L.K.s8(s,G):[new fz(0,0),new fz(100,0)],j=_[0].x,U=_[0].y,S=_[1].x-j,X=_[1].y-U,c=Math.sqrt(S*S+X*X);
c=1/(2*c*c);var y=[S*c,X*c,-X*c,S*c],O=s.Rvrs?s.Rvrs.v:!1,p=s.Dthr?s.Dthr.v:!1;L.K.Wv(s.Grad.v,m,l,y,j,U,O,i4.K.types.indexOf(o),0,0,a,p)};
jo.apT=function(s,m,l){for(var C=0;C<s.all.length;C++){var x=s.all[C];x.uc=x.DC.clone();x.uc.offset(m,l)}};
jo.a54=function(s,m,l,x,a,P){var o=M.wR?jo.a9x:jo.$S;jo.apT(m,l.x,l.y);var G=m.type.DrSh;for(var C=0;
C<G.length;C++)if(!G[C].a8Y)o(G[C],x,a,P)};jo.aiV=function(s,m,l,x,a,P,o,G,_,j){var U=l,S=M.wR?jo.a9x:jo.$S,X=M.wR?M.a.KP:L.a.HZ,c;
c=m.type.DrSh;for(var C=0;C<c.length;C++)if(c[C].a8Y)S(c[C],x,a,P);c=m.type.OrGl;for(var C=0;C<c.length;
C++)S(c[C],x,a,P);var y="patternFill GrFl SoFi ChFX IrGl IrSh".split(" ");for(var O=0;O<y.length;O++){var c=m.type[y[O]];
for(var C=0;C<c.length;C++)S(c[C],o,U,P)}var p=m.type.ebbl[0],D=p!=null&&p.apH;c=m.type.FrFX;for(var C=0;
C<c.length;C++){var f=c[C];d5.sv.kV(G,j,_,j,P);S(f,_,j,P);if(D&&C==c.length-1){if(p.nq)S(p.nq,_,j,P);
if(p.xx)S(p.xx,_,j,P);if(p.SM)S(p.SM,_,j,P);if(p.ba)S(p.ba,_,j,P)}if(f.yX||f.o6)X(_,j,o,U,M.wR?f.o6:f.yX,f.uc,0,P,1);
if(f.Qc||f.l6)X(_,j,x,a,M.wR?f.l6:f.Qc,f.uc,0,P,1)}if(!D&&p!=null){if(p.nq)S(p.nq,x,a,P);if(p.xx)S(p.xx,x,a,P);
if(p.SM)S(p.SM,o,U,P);if(p.ba)S(p.ba,o,U,P)}};jo.$S=function(s,m,l,x){var a=jo.gg();a.fill=s.PK;a.style=!0;
L.a.$P(s.My,s.du,s.uc,m,l,x,1,a)};jo.a9x=function(s,m,l,x){var a=jo.gg();a.fill=s.PK;a.style=!0;M.a.J9(s.My,s.nl,s.uc,m,l,x,1,a)};
jo.amd=function(s,m){var l=1-m.Inpr.v.val/100,x=1+Math.tan(l*(Math.PI/2)),a=s.length;for(var C=0;C<a;
C++)s[C]=Math.min(255,Math.round(s[C]*x))};jo.tg=function(s,m,l){var x=m.blur.v.val,a=Math.round(x*(m.Ckmt.v.val/100));
if(x>a){var P=L.so.nn(m.TrnS.v.Crv.v,256,!0);L.bK(s,P)}if(l!=null&&m.Nose.v.val>0)L.style.eF(s,m.Nose.v.val/100,l)};
jo.k2=function(s,m,l){if(l==null)l=255;var x=L.K.Qv(m),a=l<<24|x.S<<16|x.z<<8|x.o,P=new Uint32Array(s.buffer);
P.fill(a)};jo.pz=function(s,m,l,x){var a=m.uglg&&m.uglg.v?l.Q1():m.lagl.v.val;a=a*Math.PI/180+x;var P=Math.cos(a)*m.Dstn.v.val,o=Math.sin(a)*m.Dstn.v.val;
s.x-=Math.round(P);s.y+=Math.round(o)};jo.eE=function(s){if(s==null)return null;var m=s.frameFXMulti.v;
if(m.length==0)return null;m=m[0].v;var l=JSON.parse(JSON.stringify(i4.Ah.default));jo.aif(m,l);return l};
jo.aif=function(s,m){var l=i4.stroke.kh.indexOf(s.PntT.v.FrFl),x=[i4.Rc,i4.Ql,i4._6][l],a=m.strokeStyleContent.v={classID:i4.Ah.Lk[l]};
for(var C=0;C<x.length;C++)a[x[C]]=s[x[C]];m.strokeEnabled=s.enab;m.strokeStyleLineWidth=s.Sz;m.strokeStyleLineAlignment.v.strokeStyleLineAlignment=i4.Ah.Es[i4.stroke.types.indexOf(s.Styl.v.FStl)];
m.strokeStyleOpacity=s.Opct;m.strokeStyleBlendMode=s.Md};jo.Xj=function(s,m){var l=[];for(var C=0;C<s.length;
C++)l.push({t:"UntF",v:{type:"#Nne",val:Math.round(s[C]*m)}});return l};jo.uu=function(s,m,l,x){this.RZ=m.clone();
this.aod=m.clone();this.aod.yD(l,l);if(x){this.RZ.yD(1,1);this.Yl=L.B(this.RZ.k());L.kV(s,m,this.Yl,this.RZ)}else this.Yl=s;
this._J=null;this.SR=null;this.cp=null};jo.uu.prototype.Jv=function(){return this.Yl};jo.uu.prototype.rect=function(){return this.RZ};
jo.uu.prototype.wt=function(){return this.aod};jo.uu.prototype.lZ=function(){if(this._J)return this._J;
this._J=this.Jv().slice(0);L.ms(this._J);return this._J};jo.uu.prototype.Vf=function(){if(this.SR)return this.SR;
this.SR=new Float64Array(this.rect().k());L.style.xh(this.lZ(),this.SR,this.rect().e,this.rect().l);
return this.SR};jo.uu.prototype.P$=function(){if(this.cp)return this.cp;var s=this.wt(),m=L.B(s.k());
L.kV(this.Jv(),this.rect(),m,s);this.cp=new Float64Array(s.k());L.style.xh(m,this.cp,s.e,s.l);return this.cp};
jo.uu.prototype.a95=function(s,m){var l={CE:-m,e2:s,t8:null,gD:null};if(m==0){l.t8=this.rect();l.gD=this.Vf();
return l}var x=this.P$().slice(0),a=this.wt();l.t8=a;l.gD=x;for(var C=0;C<x.length;C++)x[C]=-x[C];if(s==0)return l;
var P=this.Vf(),o=this.rect();for(var G=0;G<o.l;G++)for(var _=0;_<o.e;_++){var j=G*o.e+_,U=(G+o.y-a.y)*a.e+_+o.x-a.x;
x[U]+=P[j]}return l};jo.uu.prototype.SN=function(s,m,l){var x=Math.ceil(s+m),a={Bv:this.rect().clone(),Jv:null};
a.Bv.yD(x,x);a.Jv=L.B(a.Bv.k());if(s==0&&m==0)L.qv(l?this.Jv():this.lZ(),a.Jv);else{var P=L.B(a.Bv.k());
L.kV(this.Jv(),this.rect(),P,a.Bv);if(!l)L.ms(P);if(s!=0){if(l)L.style.YJ(P,a.Bv,this.P$(),this.wt(),s);
else L.style.YJ(P,a.Bv,this.Vf(),this.rect(),s)}if(m!=0)L.yf.FS(P,a.Jv,a.Bv,Math.max(1,m*.43));else a.Jv=P}return a};
jo.uu.prototype.ag_=function(s,m,l){var x=s*(m-.5),a={Bv:this.rect().clone(),Jv:null};if(l)a.Bv.yD(s,s);
a.Jv=L.B(a.Bv.k());var P=a.Bv.e,o=a.Bv.l,G=l?this.P$():this.Vf(),_=l?this.wt():this.rect(),j=a.Bv,U=j.pF(_),P=U.e,o=U.l,S=U.x-j.x,X=U.y-j.y,c=U.x-_.x,y=U.y-_.y,O=1-m*2;
for(var p=0;p<o;p++)for(var D=0;D<P;D++){var f=G[(p+y)*_.e+D+c],T=f/s;a.Jv[(p+X)*j.e+D+S]=Math.max(0,Math.min(255,255-255*((T+O)/(1+O))))}return a};
jo.akM=function(s,m,l){var x=s.Lefx,a=s.blendOptions;if(x){var P=m.add.lmfx;if(l==null)l=P?P.Scl.v.val:100;
m.add.lmfx=JSON.parse(JSON.stringify(x.v));if(m.add.lmfx.Scl==null)m.add.lmfx.Scl={t:"UntF",v:{type:"#Prc",val:100}};
jo.Mi(m.add.lmfx,l/m.add.lmfx.Scl.v.val);if(P)m.add.lmfx.Scl.v.val=P.Scl.v.val}else delete m.add.lmfx;
if(a){a=a.v;if(a.Md)m.TR=aA.wq(a.Md.v.BlnM);if(a.Opct)m.opacity=Math.round(a.Opct.v.val*255/100);if(a.fillOpacity)m.add.iOpa=Math.round(a.fillOpacity.v.val*255/100);
if(a.Blnd){var o=[];for(var C=0;C<10;C++)o.push(0,0,255,255);var G=a.Blnd.v,_="SrcB Srcl SrcW Srcm DstB Dstl DstW Dstt".split(" ");
for(var C=0;C<G.length;C++){var j=G[C].v,U=8*["Gry","Rd","Grn","Bl"].indexOf(j.Chnl.v[0].v.enum);for(var S=0;
S<8;S++){o[U+S]=j[_[S]].v}}m.kt=o}}};jo.aml=function(s){var m="SrcB Srcl SrcW Srcm DstB Dstl DstW Dstt".split(" "),l=[],x=s.kt;
for(var C=0;C<4;C++){var a=C*8;if(x[a]+x[a+1]+x[a+4]+x[a+5]==0&&x[a+2]+x[a+3]+x[a+6]+x[a+7]==4*255)continue;
var P={t:"Objc",v:{classID:"Blnd",Chnl:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:["Gry","Rd","Grn","Bl"][C]}}]}}};
l.push(P);for(var o=0;o<8;o++)P.v[m[o]]={t:"long",v:x[C*8+o]}}var G={classID:"blendOptions"};if(s.TR!="norm")G.Md={t:"enum",v:{BlnM:aA.bH(s.TR)}};
if(s.opacity!=255)G.Opct={t:"UntF",v:{type:"#Prc",val:Math.round(s.opacity*100/255)}};if(s.add.iOpa!=null)G.fillOpacity={t:"UntF",v:{type:"#Prc",val:Math.round(s.add.iOpa*100/255)}};
if(l.length!=0)G.Blnd={t:"VlLs",v:l};var _={On:{classID:"null",Idnt:{t:"TEXT",v:jF.wd()+"-bd9f-11d5-b8ba-b73f8571793d"},Nm:{t:"TEXT",v:"Custom Style"}},tI:{classID:"Styl",blendOptions:{t:"Objc",v:G}}},j=s.add.lmfx;
if(j)_.tI.Lefx={t:"Objc",v:j};return _};function fd(){}fd.PG=function(s){return JSON.parse(JSON.stringify(s))};
fd.Sw=function(s){var m=fd.PG(fd.afB),l=m.Brsh.v;if(s!=null){delete l.Hrdn;l.classID="sampledBrush";
l.Nm={t:"TEXT",v:"layer.png"},l.sampledData={t:"TEXT",v:s}}return m};fd.afB={classID:"brushPreset",Nm:{t:"TEXT",v:"Custom Brush"},Brsh:{t:"Objc",v:{classID:"computedBrush",Dmtr:{t:"UntF",v:{type:"#Pxl",val:15}},Hrdn:{t:"UntF",v:{type:"#Prc",val:100}},Angl:{t:"UntF",v:{type:"#Ang",val:0}},Rndn:{t:"UntF",v:{type:"#Prc",val:100}},Spcn:{t:"UntF",v:{type:"#Prc",val:25}},Intr:{t:"bool",v:!0},flipX:{t:"bool",v:!1},flipY:{t:"bool",v:!1}}},useTipDynamics:{t:"bool",v:!1},useScatter:{t:"bool",v:!1},dualBrush:{t:"Objc",v:{classID:"dualBrush",useDualBrush:{t:"bool",v:!1}}},brushGroup:{t:"Objc",v:{classID:"brushGroup",useBrushGroup:{t:"bool",v:!1}}},useTexture:{t:"bool",v:!1},usePaintDynamics:{t:"bool",v:!1},useColorDynamics:{t:"bool",v:!1},Wtdg:{t:"bool",v:!1},Nose:{t:"bool",v:!1},Rpt:{t:"bool",v:!1}};
fd.ov={};fd.ov.check=function(s){var m=fd.ov.KR;for(var C=0;C<m.length;C++)if(s[m[C]]==null)s[m[C]]=JSON.parse(fd.ov.YD[m[C]]);
var l=[];for(var C=0;C<m.length;C++)l.push(m[C]);var x=fd.ov.a2J;for(var C=0;C<x.length;C++){var a=x[C][0],P=x[C][1],o=!0;
for(var G=0;G<a.length;G++)o=o&&s[a[G]].v==!0;if(o)for(var G=0;G<P.length;G++){if(s[P[G]]==null)console.log("Missing conditional parameter "+P[G]);
else l.push(P[G])}}for(var _ in s)if(l.indexOf(_)==-1)console.log("Extra parameter "+_);s=s.Brsh.v;m=fd.ov.WR.KR;
for(var C=0;C<m.length;C++)if(s[m[C]]==null)s[m[C]]=JSON.parse(fd.ov.WR.YD[m[C]]);l=[];for(var C=0;C<m.length;
C++)if(s[m[C]])l.push(m[C]);else console.log("Missing default parameter "+m[C]);x=fd.ov.WR.a6r[s.classID];
for(var C=0;C<x.length;C++)if(s[x[C]]==null&&x[C]!="dtipsGridSize"&&x[C]!="dtipsErodibleTipHeightMap"&&s.aiq!=1)console.log("Missing conditional parameter "+x[C]);
else l.push(x[C]);for(var _ in s)if(l.indexOf(_)==-1)console.log("Extra parameter "+_)};fd.ov.kf=function(s){var m=fd.ov.a2J;
for(var C=0;C<m.length;C++){var l=m[C][0],x=m[C][1],a=!0;for(var P=0;P<l.length;P++)a=a&&s[l[P]]&&s[l[P]].v==!0;
if(a){for(var P=0;P<x.length;P++)if(s[x[P]]==null){s[x[P]]=JSON.parse(fd.ov.YD[x[P]])}}else for(var P=0;
P<x.length;P++)if(s[x[P]]!=null){delete s[x[P]]}}};fd.ov.WR={};fd.ov.WR.KR="classID Dmtr Angl Spcn Intr flipX flipY".split(" ");
fd.ov.WR.YD={flipX:"{\"t\":\"bool\",\"v\":false}",flipY:"{\"t\":\"bool\",\"v\":false}"};fd.ov.WR.a6r={computedBrush:["Hrdn","Rndn"],sampledBrush:["Nm","Rndn","sampledData"],dBrush:"Shp Dnst Lngt clumping thickness stiffness physics".split(" "),dTips:"dtipsType Shp dtipsLengthRatio dtipsHardness dtipsGridSize dtipsErodibleTipHeightMap physics dtipsAirbrushCutoffAngle dtipsAirbrushGranularity dtipsAirbrushStreakiness dtipsAirbrushSplatSize dtipsAirbrushSplatCount".split(" ")};
fd.ov.a2J=[[["useTipDynamics"],"flipX flipY brushProjection minimumDiameter minimumRoundness tiltScale szVr angleDynamics roundnessDynamics".split(" ")],[["usePaintDynamics"],["prVr","opVr","wtVr","mxVr"]],[["useBrushPose"],"overridePoseAngle overridePoseTiltX overridePoseTiltY overridePosePressure brushPosePressure brushPoseTiltX brushPoseTiltY brushPoseAngle".split(" ")],[["useTexture"],"TxtC interpretation textureBlendMode textureDepth minimumDepth textureDepthDynamics Txtr textureScale InvT textureBrightness textureContrast".split(" ")],[["useColorDynamics"],"clVr H Strt Brgh purity colorDynamicsPerTip".split(" ")],[["useScatter"],["Cnt","countDynamics","bothAxes","scatterDynamics"]],[["useScatter","bothAxes"],["Spcn"]]];
fd.ov.KR="classID Nm Brsh useTipDynamics usePaintDynamics useColorDynamics useScatter useTexture useBrushSize useBrushPose Wtdg Nose Rpt dualBrush brushGroup".split(" ");
fd.ov.YD={useBrushSize:"{\"t\":\"bool\",\"v\":false}",useBrushPose:"{\"t\":\"bool\",\"v\":false}",brushGroup:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brushGroup\",\"useBrushGroup\":{\"t\":\"bool\",\"v\":false}}}",flipX:"{\"t\":\"bool\",\"v\":false}",flipY:"{\"t\":\"bool\",\"v\":false}",brushProjection:"{\"t\":\"bool\",\"v\":false}",minimumDiameter:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}",minimumRoundness:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":25}}",tiltScale:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":200}}",szVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":2},\"fStp\":{\"t\":\"long\",\"v\":1},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",angleDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",roundnessDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",prVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":2},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",opVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",wtVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",mxVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",overridePoseAngle:"{\"t\":\"bool\",\"v\":false}",overridePoseTiltX:"{\"t\":\"bool\",\"v\":true}",overridePoseTiltY:"{\"t\":\"bool\",\"v\":true}",overridePosePressure:"{\"t\":\"bool\",\"v\":true}",brushPosePressure:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":9}}",brushPoseTiltX:"{\"t\":\"long\",\"v\":0}",brushPoseTiltY:"{\"t\":\"long\",\"v\":0}",brushPoseAngle:"{\"t\":\"long\",\"v\":0}",TxtC:"{\"t\":\"bool\",\"v\":false}",interpretation:"{\"t\":\"bool\",\"v\":true}",textureBlendMode:"{\"t\":\"enum\",\"v\":{\"BlnM\":\"CBrn\"}}",textureDepth:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":37}}",minimumDepth:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":97}}",textureDepthDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",Txtr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"$$$/Presets/Patterns/Patterns_pat/Laidhorizontal=Laid-horizontal\"},\"Idnt\":{\"t\":\"TEXT\",\"v\":\"52a93427-f5d6-1172-a989-8dc82a43aa51\"}}}",textureScale:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":99}}",InvT:"{\"t\":\"bool\",\"v\":false}",textureBrightness:"{\"t\":\"long\",\"v\":14}",textureContrast:"{\"t\":\"long\",\"v\":100}",Cnt:"{\"t\":\"doub\",\"v\":4}",countDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":1},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":98}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",bothAxes:"{\"t\":\"bool\",\"v\":false}",scatterDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":1},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":56}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",clVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",H:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}",Strt:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}",Brgh:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":36}}",purity:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}",colorDynamicsPerTip:"{\"t\":\"bool\",\"v\":false}"};
function iw(s,m){this.a5l=s;this.xe=m==null?0:m;this.dir=0}iw.prototype.Hz=function(s,m){var l=this.a5l,x=new fz(s.x-l.x,s.y-l.y),a=new ae;
a.rotate(-this.xe);x=a.oG(x);if(this.dir==0&&!l.yb(s))this.dir=Math.abs(x.x)<Math.abs(x.y)?1:2;if(m.$(dV.Ht)){if(this.dir==1)x.x=0;
if(this.dir==2)x.y=0}a.ms();x=a.oG(x);var P=new fz(l.x+x.x,l.y+x.y);return P};var ek=function(){function s(){this.aeO={}}s.aaa=function(m,l){var x=m.clone();
x.sI-=Math.floor(x.sI);x.bW-=Math.floor(x.bW);var a=new fz(l,0),P=new fz(0,l),o=x.oG(a),G=x.oG(P),_=new fz(x.sI,x.bW);
return[o,G,_]};s.a2W=function(m,l){var x=fz.rv;return x(m[0],l[0])+x(m[1],l[1])+x(m[2],l[2]);return dsum};
s.prototype.arz=function(m){var l=this.aeO,x=l[m];if(x==null)x=l[m]={qm:[],Nb:0,k:0,a1Q:0,acn:0};x.Nb=Date.now();
while(Object.keys(l).length>3){var a="",P=Date.now();for(var o in l){var G=l[o].Nb;if(G<P){P=G;a=o}}delete l[a]}return x};
s.prototype.a8U=function(m,l){var x=m.qm,a,P=1e6;for(var C=0;C<x.length;C++){var o=x[C],G=s.a2W(o.l2,l);
if(G<P){a=o;P=G}}return a};s.prototype.a4b=function(m,l){var x=m.qm;x.push(l);m.k+=l.rect.k();if(x.length>1e3||m.k>100*100*1600){console.log("pruning",m.k,x.length);
x.sort(function(P,o){return o.Nb-P.Nb});while(x.length>500||m.k>100*100*800){var a=x.pop();m.k-=a.rect.k()}}};
return s}();function br(s,m,l,x,a,P,o,G,_){this.NG=m;this.vw=l;this.Pi=P;this.KA=x;if(x.sV==null)x.sV=[!1,!0];
this.tV=null;this.IF=null;this.gw=0;this.amy=0;this.anj=0;this.t2=0;this.O$=_==null?Math.floor(Math.random()*16777215):_;
this.aop=_==null?Math.floor(Math.random()*16777215):_;this.Sb=new bU;this.cA=new bU;if(G!=null){this.du=G}else{var j=br.aj4;
if(j.length!=o.k()*4)j=L.B(o.k()*4);else j.fill(0);this.du=br.aj4=j}this.rect=o.clone();this.xR=[];this.Xv=[];
this.BM=null;this.zU=0;this.S=null;this.apw="";this.Jr=null;this.a3J(s,a)}br.aj4=L.B(16);br.prototype.a3J=function(s,m){this.zU=m;
this.S=s;this.apw=JSON.stringify(s)+JSON.stringify(this.KA.hJ);this.Jr=br.agQ(s,this.NG,this.vw)};br.prototype.moveTo=function(s,m,l){l=this.adQ(l);
this.gw=l;var x=new fz(s,m),a=this.S.Brsh.v.Dmtr.v.val;this.tV=x.clone();this.IF=x.clone();this.BM=x.clone();
this.xR=[s,m];this.Xv=[l];var P=this.KA.sV;if(this.KA.QI!=br.Qr){var o=this.S.angleDynamics,G=o?o.v.bVTy.v==6:!1;
this.vD(G?new bU:this.a10(x,this.aby()*(P[1]?l:1),this.KA.Dv*(P[0]?l*.5:1),new fz(0,0)))}this.t2=x.clone()};
br.prototype.lineTo=function(s,m,l){l=this.adQ(l);var x=this.xR,a=x.length,P=x[a-2],o=x[a-1];if(s==P&&m==o)return;
var G=this.S.Brsh.v.Dmtr.v.val,_=Math.ceil(G)+1,j=new bU(Math.round(P),Math.round(o),0,0);j.yD(_,_);
var U=new bU(Math.round(s),Math.round(m),0,0);U.yD(_,_);this.xR.push(s,m);this.Xv.push(l);a+=2;if(a>=6)this.vD(this.aga(a))};
br.prototype.adQ=function(s){if(s==null)s=1;s=Math.max(.05,Math.min(5,s));if(isNaN(s)){alert("Pressure is not a number");
throw"e"}return s};br.prototype.vD=function(s){this.Sb=s;this.cA=this.cA.if(s)};br.prototype.finish=function(){var s=this.xR,m=s.length,l;
if(m==4)l=this.a37(s[m-2],s[m-1],this.Xv[(m>>1)-1],!0);if(m>4)l=this.aga(m+2);if(l)this.vD(l)};br.prototype.E2=function(){return this.rect.clone()};
br.prototype.cj=function(){return this.Sb.pF(this.rect)};br.prototype.pJ=function(){return this.cA.pF(this.rect)};
br.prototype.oo=function(){return this.du};br.prototype.aga=function(s){var m=this.xR,l=this.Xv,x=m[s-6],a=m[s-5],P=m[s-4],o=m[s-3],G=l[(s>>1)-3],_=l[(s>>1)-2],j=new fz(0,0),U=new fz(0,0);
if(8<=s)j=br.alr(m[s-8],m[s-7],x,a,P,o);if(s<=m.length)U=br.alr(m[s-2],m[s-1],P,o,x,a);var S=x+j.x,X=a+j.y,c=P+U.x,y=o+U.y,O=new bU;
for(var C=0;C<10;C++){var p=(C+1)*.1,D=1-p,f=D*D*D*x+3*p*D*D*S+3*p*p*D*c+p*p*p*P,T=D*D*D*a+3*p*D*D*X+3*p*p*D*y+p*p*p*o,I=this.a37(f,T,G+p*(_-G));
O=O.if(I)}return O};br.alr=function(s,m,l,x,a,P){var o=s-l,G=m-x,_=a-l,j=P-x,U=Math.sqrt(o*o+G*G),S=Math.sqrt(_*_+j*j),X=Math.acos((o*_+G*j)/(U*S))/Math.PI,c=.35,y=.1;
X=y+X*(c-y);var O=a-s,p=P-m,D=Math.sqrt(O*O+p*p),f=X*S/D;return new fz(O*f,p*f)};br.prototype.a37=function(s,m,l,x){var a=new bU,P=this.KA.ac8;
if(P==null)P=0;if(P==0||x){a=this.a6b(s,m,l);return a}var o=this.BM,G=s-o.x,_=m-o.y,j=Math.sqrt(G*G+_*_);
G/=j;_/=j;if(j>P){var U=o.x+G*(j-P),S=o.y+_*(j-P);a=this.a6b(U,S,l);this.BM.Qk(U,S)}return a};br.prototype.a6b=function(s,m,l){var x=new bU,a=new fz(s,m),P=this.S.Brsh.v.Dmtr.v.val,o=this.KA.QI,G=a.fy(this.IF);
G.normalize(1);var _=fz.rv(this.IF,a),j=-this.amy,U=this.IF.clone(),S=this.KA.sV;while(!0){var X=this.gw+(l-this.gw)*(Math.max(0,j)/_),c=this.aby()*(S[1]?X:1),y=this.an5()*(c+this.anj)/2*this.Jr.ad7;
if(o==br.Qr)y=1;if(j+y<_){j+=y;var O=new fz(this.IF.x+G.x*j,this.IF.y+G.y*j),f=1;if(o==br.Qr){var p=U.clone();
p.x+=G.x>0?1:-1;var D=U.clone();D.y+=G.y>0?1:-1;if(fz.rv(p,O)<fz.rv(D,O))O=p;else O=D;j=fz.rv(O,this.IF)}if(this.S.useScatter.v==!0){f=this.S.Cnt.v;
var T=this.S.countDynamics.v.jitter.v.val/100,I=T*(-1+2*this.i1());f+=Math.round(f*I)}for(var C=0;C<f;
C++){var H=this.a10(O,c,this.KA.Dv*(S[0]?X*.5:1),G);x=x.if(H)}U=O}else break}this.amy=_-j;this.IF=a;
this.gw=l;return x};br.prototype.an5=function(){var s=this.S.Brsh.v,m=s.Spcn.v.val,l=Math.max(5,s.Rndn.v.val);
return l/100*(m/100)};br.prototype.aby=function(){var s=this.S,m=s.Brsh.v.Dmtr.v.val;if(s.useTipDynamics.v){var l=m*(s.minimumDiameter.v.val/100);
m=l+(m-l)*(1-this.i1(this.aop)*(s.szVr.v.jitter.v.val/100))}return m};br.prototype.a10=function(s,m,l,x){l=Math.min(1,l);
var a=this.S,P=this.S.Brsh.v,o=P.Dmtr.v.val,G=this.KA,_=G.QI,j=G.ann,U=this.Jr.DH[1],S=new ae;S.translate(-U.e/2,-U.l/2);
S.scale(1/this.Jr.adX,1/this.Jr.adX);S.scale(m/o,m/o);S.scale(1,Math.max(5,P.Rndn.v.val)/100);if(a.useTipDynamics.v){var X=a.angleDynamics.v,c=a.minimumRoundness.v.val/100;
S.scale(1,c+(1-c)*Math.round(100-this.i1()*a.roundnessDynamics.v.jitter.v.val)/100);S.rotate((-.5+this.i1())*4*Math.PI*(X.jitter.v.val/100));
if(X.bVTy.v==6)S.rotate(Math.atan2(-x.y,x.x))}S.rotate(P.Angl.v.val*(Math.PI/180));if(a.useScatter.v){var y=(-1+2*this.i1())*a.scatterDynamics.v.jitter.v.val/100;
S.translate(-y*m*x.y,y*m*x.x)}S.translate(s.x,s.y);var O=this.anp(S,s,m),p=O.rect.clone();if(_==null){var D=this.tp(a);
L.MP(O.iE,Math.round(D.S*255)<<16|Math.round(D.z*255)<<8|Math.round(D.o*255)<<0,4278190080);if(this.cA.Xh()&&this.rect.yb(O.rect)&&l==1)this.du=O.iE.slice(0);
else L.a.a4O(O.iE,O.rect,this.du,this.rect,O.rect,l)}if(_==br.Qr){var f=new fz(O.rect.x+O.rect.e/2,O.rect.y+O.rect.l/2),T=Math.round(f.x-this.t2.x),I=Math.round(f.y-this.t2.y),H=O.rect.clone();
H.offset(-T,-I);var b=H.pF(this.rect);b.offset(T,I);L.yx(this.du,this.rect,O.iE,H);L.a.pd(O.iE,O.rect,this.du,this.rect,O.rE,O.rect,l)}if(_==br.vS||_==br.mK||_==br.ZW){var R=O.rect.pF(this.rect),W;
if(R.yb(O.rect))W=O.rE;else{W=L.B(R.k());L.kV(O.rE,O.rect,W,R)}var J=L.B(R.k()*4);L.yx(this.du,this.rect,J,R);
if(_==br.mK){var u=J.slice(0),e=L.Rv.UR([-1,-1,-1,-1,25,-1,-1,-1,-1]);L.Rv.cz(J,u,R.e,R.l,e,0);L.qv(u,J)}else if(_==br.ZW){var Q=ib.Xi("UnsM");
Q.Amnt.v.val=15;Q.Thsh.v=0;Q.Rds.v.val=5;var u=L.B(J.length);ib._E("UnsM",{buffer:J,rect:R},Q,0,0,{buffer:u,rect:R});
L.qv(u,J)}else{ib.hL(1,L.yf._Z,J,R)}L.a.pd(J,R,this.du,this.rect,W,R,l)}this.anj=m;this.t2=f;this.aop++;
return p};br.prototype.tp=function(s){var m=br.arS(this.zU);if(s.useColorDynamics&&s.useColorDynamics.v){var l=1-this.i1()*s.clVr.v.jitter.v.val/100,x=br.arS(this.Pi);
m.o=l*m.o+(1-l)*x.o;m.z=l*m.z+(1-l)*x.z;m.S=l*m.S+(1-l)*x.S;var a=(-.5+this.i1())*s.H.v.val/100,P=(-1+2*this.i1())*s.Strt.v.val/100,o=(-1+2*this.i1())*s.Brgh.v.val/100,G=L.Az(m.o,m.z,m.S);
G.Cm=(G.Cm+a+1)%1;G.zd=G.zd+P;if(G.zd<0)G.zd=-G.zd;if(G.zd>1)G.zd=1-(G.zd-1);G.yt=G.yt+o;if(G.yt<0)G.yt=-G.yt;
if(G.yt>1)G.yt=1-(G.yt-1);m=L.B7(G.Cm,G.zd,G.yt)}return m};br.prototype.ov=function(s){return Math.max(0,Math.min(1,s))};
br.prototype.i1=function(s){if(s==null){s=this.O$++}return br.hash(s)};br.arS=function(s){return{o:(s>>16&255)/255,z:(s>>8&255)/255,S:(s>>0&255)/255}};
br.hash=function(s){s=s^61^s>>16;s=s+(s<<3);s=s^s>>4;s=s*668265261;s=s^s>>15;return(s&16777215)/16777215};
br.akW=new ek;br.prototype.anp=function(s,m,l){var x=Math.sqrt(this.Jr.DH[1].k()),a=x*s.LL(),P=a<10?1:a<50?1.5:a<200?3:8,o=br.akW,G=o.arz(this.apw),_=this.KA.hJ;
if(_){s=s.clone();s.sI=Math.floor(s.sI);s.bW=Math.floor(s.bW)}var j=ek.aaa(s,x),U=o.a8U(G,j);if(U&&ek.a2W(U.l2,j)>P)U=null;
if(U){U.rect.x=Math.round(U.atA.x+s.sI);U.rect.y=Math.round(U.atA.y+s.bW);if(_){U.rect.x=Math.round(m.x-U.rect.e/2);
U.rect.y=Math.round(m.y-U.rect.l/2)}U.Nb=Date.now()}else{var S=Math.round(this.S.Brsh.v.Dmtr.v.val),X;
if(_&&S<=3){X={buffer:L.B(S*S*4),rect:new bU(Math.round(m.x-S/2),Math.round(m.y-S/2),S,S)};L.MP(X.buffer,4278190080)}else if(s.lz==1&&s.S==0&&s.In==0&&s.Am==1){X={buffer:this.Jr.DH[0],rect:this.Jr.DH[1].clone()};
X.rect.x=Math.round(s.sI);X.rect.y=Math.round(s.bW)}else X=r.Q.ea(this.Jr.DH,s);if(_){for(var C=0;C<X.buffer.length;
C++)X.buffer[C]=X.buffer[C]>127?255:0}if(X==null)X={buffer:L.B(0),rect:new bU};U={iE:X.buffer,rE:L.B(X.rect.k()),rect:X.rect,atA:new fz(X.rect.x-s.sI,X.rect.y-s.bW),l2:j,Nb:Date.now()};
L.hy(U.iE,U.rE,3);if(G)o.a4b(G,U)}return U};br.agQ=function(s,m,l){var x,a,P,o=s.Brsh.v.Dmtr.v.val;if(s.Brsh.v.classID=="computedBrush"){var G=s.Brsh.v.Hrdn.v.val/100,_=1+.55*(1-G);
a=o<100?1.2:1;P=1;var j=Math.round(a*o*_),U=new bU(0,0,j,j),S=L.B(j*j*4),X=new Uint32Array(S.buffer);
x=[S,U];var c=j/2,y=_/c,O=Date.now(),p=br.Sz(G),D=Math.round(8e3/c),m=p[0],f=p[1]-D,T=p[2]+D,I=Math.min(j,(j>>>1)+1);
for(var C=0;C<I;C++){var H=y*(C-c+.25);H*=H;var b=y*(C-c+.75);b*=b;var R=C*j,W=(j-1-C)*j;for(var J=0;
J<I;J++){var u=y*(J-c+.25),e=Math.floor(Math.sqrt(u*u+H)*(4e3/1.55));if(T<e)continue;else if(e<f){var Q=4278190080;
while(J<I){var q=j-1-J;X[R+J]=Q;X[R+q]=Q;X[W+J]=Q;X[W+q]=Q;J++}break}else{var Z=y*(J-c+.75),E=Math.floor(Math.sqrt(Z*Z+H)*(4e3/1.55)),z=Math.floor(Math.sqrt(u*u+b)*(4e3/1.55)),V=Math.floor(Math.sqrt(Z*Z+b)*(4e3/1.55)),Q=~~(.5+255*.25*(m[e]+m[E]+m[z]+m[V]))<<24,q=j-1-J;
X[R+J]=Q;X[R+q]=Q;X[W+J]=Q;X[W+q]=Q}}}}if(s.Brsh.v.classID=="sampledBrush"){var Y;for(var C=0;C<m.length;
C++)if(m[C].id==s.Brsh.v.sampledData.v)Y=m[C];x=Y.DH;var U=x[1];a=Math.max(U.e,U.l)/o;P=Math.min(U.e,U.l)/Math.max(U.e,U.l)}return{adX:a,ad7:P,DH:x}};
br.jG=[];br.Sz=function(s){if(br.jG[s])return br.jG[s];var m=Math.pow(s,.55),l=new Float64Array(8e3),x=0,a=8e3;
for(var C=0;C<8e3;C++){var P=br.ahf(C*(1.55/4e3),m);if(P>=1)x=C;else if(P<=0&&a==8e3)a=C;l[C]=P}var o=[l,x,a];
br.jG[s]=o;return o};br.ahf=function(s,m){var l=s<m?1:br.al6((s-m)/Math.pow(1.001-m,.86));return l};
br.al6=function(s){var m=s*.85;return Math.exp(-(m*m)*(1/(2*.4*.4)))*(1/(.4*Math.sqrt(2*Math.PI)))};
br.w=null;br.og=null;br.jj=function(s,m,l,x,a,P){var o=br.w,G=br.og;if(o==null){br.w=o=document.createElement("canvas");
br.og=G=o.getContext("2d")}if(P==null)P=x;if(o.width!=P||o.height!=a){o.width=P;o.height=a}else G.clearRect(0,0,P,a);
G.fillStyle="#000000";G.font=Math.floor(10*r.W())+"px sans-serif";var _=s.Brsh.v.Dmtr.v.val,j=""+_,U=G.measureText(j);
G.fillText(j,(x-U.width)/2,a-2);var S=x,X=a-10*r.W(),c=Math.min(S,X),y=s.Brsh.v.classID;if(y=="computedBrush"){G.translate(S/2,X/2);
G.rotate(-s.Brsh.v.Angl.v.val*Math.PI/180);G.scale(1,.1+.9*s.Brsh.v.Rndn.v.val/100);var O=Math.min(.95*c/2,_/2)+.5,p=.9*s.Brsh.v.Hrdn.v.val/100,D=G.createRadialGradient(0,0,0,0,0,O);
D.addColorStop(p,"rgba(0,0,0,1)");D.addColorStop((.5+p)/1.5,"rgba(0,0,0,.5)");D.addColorStop(1,"rgba(0,0,0,0)");
G.fillStyle=D;G.fillRect(-O,-O,2*O,2*O);G.setTransform(1,0,0,1,0,0)}else if(y=="sampledBrush"){var f,R=0;
for(var C=0;C<m.length;C++)if(m[C].id==s.Brsh.v.sampledData.v)f=m[C];var T=f.DH;L.$c(T);var I=T[0],H=T[1].e,b=T[1].l;
while((H>S||b>X)&&T[R+2]){R+=2;I=T[R];H=T[R+1].e;b=T[R+1].l}if(H*b!=0){var W=new ImageData(new Uint8ClampedArray(I.buffer),H,b);
G.putImageData(W,Math.round((S-H)/2),Math.round((X-b)/2))}}else{}return o.toDataURL()};br.YQ=function(s,m,l,x){if(l==0)l=1;
var a=s.Brsh.v,P=a.Dmtr.v.val,o=a.Dmtr.v.val=Math.min(x!=null?Math.round(x*2.6):3e3,P*l),G=a.Hrdn?a.Hrdn.v.val/100:1,_=x!=null?x:Math.round(o*(1+.55*(1-G)))+4,S;
_=Math.max(15,Math.min(_,3e3));var j=new bU(0,0,_,_),U=new br(s,m,null,{Dv:1},16711712,0,j);a.Dmtr.v.val=P;
U.moveTo(j.e/2,j.l/2);var X=U.oo(),c=U.E2();if(j.yb(c))S=X;else{S=L.B(j.k()*4);L.yx(X,c,S,j)}return[S,j,o]};
br.a9B=function(s,m,l,x){var a=m.e,P=a>>>1;for(var C=0;C<4;C++){var o=6-C;s[a*(P-o)+P-1]=x;s[a*(P-o)+P]=l;
s[a*(P-o)+P+1]=x;s[a*(P+o)+P-1]=x;s[a*(P+o)+P]=l;s[a*(P+o)+P+1]=x;s[a*(P-1)+P-o]=x;s[a*P+P-o]=l;s[a*(P+1)+P-o]=x;
s[a*(P-1)+P+o]=x;s[a*P+P+o]=l;s[a*(P+1)+P+o]=x}};br.E$=function(s,m,l,x){var a=br.YQ(s,m,l),P=a[0].slice(0),o=a[1],G=a[2],_=o.k(),j=L.B(_);
L.hy(P,j,3);var U=L.B(_);L.q.adr(j,U,o);if(G<3||L.D_(U,0)||x&&G>12){br.a9B(U,o,255,0)}var S=[1,2,1,2,8,2,1,2,1];
S=L.Rv.UR(S);L.Rv.Mj(U,j,o.e,o.l,S);L.MP(P,4294967295);L._Y(j,P,3);for(var C=0;C<_;C++)if(U[C]==255){P[C<<2]=P[(C<<2)+1]=P[(C<<2)+2]=0;
P[(C<<2)+3]=255}return{CI:P,Bv:o,R_:new fz(o.e/2,o.l/2)}};br.Qr="0";br.vS="1";br.mK="2";br.ZW="3";var b3={};
b3.in=function(s,m){var l=s.eJ(),o=0,j;if(l.x==Infinity||l.Xh())return{du:L.B(0),Bv:new bU,fn:new bU};
var x=s.eJ(),a=b3.y8(s,m),P=L.H.QS(a.s);for(var C=0;C<s.m$.length;C++){var G=s.m$[C].Aq;if(G.StrokeFlag&&G._LineWidth)o=Math.max(o,Math.ceil(G._LineWidth/2))}P.yD(o,o);
if(P.Xh())return{du:L.B(0),Bv:new bU,fn:new bU};var _=L.Uv(P.e,P.l);_.translate(-P.x,-P.y);b3.a0U(a,_);
if(s.m$.length!=0){var U=ex.un(m),S=_.getImageData(0,0,P.e,P.l);j=new Uint8Array(S.data.buffer);if(U==0)for(var C=0;
C<j.length;C+=4)j[C+3]=j[C+3]>80?255:0;if(U==3)for(var C=0;C<j.length;C+=4)j[C+3]=Math.min(255,j[C+3]*1.5)}else j=L.B(P.k()*4);
_.resetTransform();_.beginPath();return{du:j,Bv:P,fn:x}};b3.y8=function(s,m){var l=m.A,x=m.x5,a=ex.un(m),P=Math.max(l.S*l.S,l.In*l.In)<1e-9?l:null;
if(a==3||a==4)P=null;var o={r:[],s:[]};b3.acK(s,o,P,!0);b3.acK(s,o,P,!1);o=b3.sS(o,m,s);return o};b3.sS=function(s,m,l){if(s==null)return s;
if(l&&l.qp)L.H.A(s.s,l.qp,s.s);if(l&&!L.Lv.AY(m.hG)){var x=ex.E2(m,l);if(!x.Xh()){if(s.r){s=L.H.An(s);
var a=Math.min(x.e,x.l)/8;if(a<1)a=1;s=L.H.PC(s,a)}var P=L.Lv.Y4(m.hG,x);L.k9.A(P,s.s,x)}}var o=m.A;
L.H.A(s.s,o,s.s);return s};b3.a0U=function(s,m){m.save();m.miterLimit=2;Typr.U.pathToContext({crds:s.s,cmds:s.r},m);
m.restore()};b3.zm=function(s,m,l){if(!hJ.a1z(l))return;var x=s.x5,a=x.ResourceDict.FontSet,P=x.ResourceDict.StyleSheetSet[0].StyleSheetData,o=x.EngineDict.StyleRun.RunLengthArray,G=x.EngineDict.StyleRun.RunArray,_=ex.Ep(x),j=!0,U={},S=0;
for(var C=0;C<G.length;C++){var X=G[C].StyleSheet.StyleSheetData.Font;if(X==null)X=P.Font;for(var c=0;
c<o[C];c++){var y=_.charCodeAt(S+c),O=X+","+(y>128?y:-1);if(U[O]==null){U[O]=1;if(m.JD(a[X].Name,y)==null)j=!1}}S+=o[C]}return j};
b3.acK=function(s,m,l,x){var a=new ae;for(var C=0;C<s.AO.length;C++)b3.a4g(s.m$,s.AO[C],m,a,l,x)};b3.a4g=function(s,m,l,x,a,P){x.translate(m.Y1.x,m.Y1.y);
for(var C=0;C<m.Ox.length;C++){var o={},G=m.Ox[C];if(!G.QG)break;var _=x.clone();_.translate(G.Y1.x,G.Y1.y);
if(a){var j=a.bW+_.bW*a.Am;_.bW=(Math.round(j)-a.bW)/a.Am}for(var U=G.start;U<G.end;U++)b3.arw(s,m.Hj[U],m,o,l,_,P)}x.translate(-m.Y1.x,-m.Y1.y)};
b3.a8S="()<>[]{}\xAB\xBB\u0F3A\u0F3B\u0F3C\u0F3D\u169B\u169C\u2039\u203A\u2045\u2046\u207D\u207E\u208D\u208E\u2208\u2209\u220A\u220B\u220C\u220D\u2215\u223C\u223D\u2243\u2252\u2253\u2254\u2255\u2264\u2265\u2266\u2267\u2268\u2269\u226A\u226B\u226E\u226F\u2270\u2271\u2272\u2273\u2274\u2275\u2276\u2277\u2278\u2279\u227A\u227B\u227C\u227D\u227E\u227F\u2280\u2281\u2282\u2283\u2284\u2285\u2286\u2287\u2288\u2289\u228A\u228B\u228F\u2290\u2291\u2292\u2298\u22A2\u22A3\u22A6\u22A8\u22A9\u22AB\u22B0\u22B1\u22B2\u22B3\u22B4\u22B5\u22B6\u22B7\u22C9\u22CA\u22CB\u22CC\u22CD\u22D0\u22D1\u22D6\u22D7\u22D8\u22D9\u22DA\u22DB\u22DC\u22DD\u22DE\u22DF\u22E0\u22E1\u22E2\u22E3\u22E4\u22E5\u22E6\u22E7\u22E8\u22E9\u22EA\u22EB\u22EC\u22ED\u22F0\u22F1\u22F2\u22F3\u22F4\u22F6\u22F7\u22FA\u22FB\u22FC\u22FD\u22FE\u2308\u2309\u230A\u230B\u2329\u232A\u2768\u2769\u276A\u276B\u276C\u276D\u276E\u276F\u2770\u2771\u2772\u2773\u2774\u2775\u27C3\u27C4\u27C5\u27C6\u27C8\u27C9\u27CB\u27CD\u27D5\u27D6\u27DD\u27DE\u27E2\u27E3\u27E4\u27E5\u27E6\u27E7\u27E8\u27E9\u27EA\u27EB\u27EC\u27ED\u27EE\u27EF\u2983\u2984\u2985\u2986\u2987\u2988\u2989\u298A\u298B\u298C\u298D\u298E\u298F\u2990\u2991\u2992\u2993\u2994\u2995\u2996\u2997\u2998\u29B8\u29C0\u29C1\u29C4\u29C5\u29CF\u29D0\u29D1\u29D2\u29D4\u29D5\u29D8\u29D9\u29DA\u29DB\u29F5\u29F8\u29F9\u29FC\u29FD\u2A2B\u2A2C\u2A2D\u2A2E\u2A34\u2A35\u2A3C\u2A3D\u2A64\u2A65\u2A79\u2A7A\u2A7D\u2A7E\u2A7F\u2A80\u2A81\u2A82\u2A83\u2A84\u2A8B\u2A8C\u2A91\u2A92\u2A93\u2A94\u2A95\u2A96\u2A97\u2A98\u2A99\u2A9A\u2A9B\u2A9C\u2AA1\u2AA2\u2AA6\u2AA7\u2AA8\u2AA9\u2AAA\u2AAB\u2AAC\u2AAD\u2AAF\u2AB0\u2AB3\u2AB4\u2ABB\u2ABC\u2ABD\u2ABE\u2ABF\u2AC0\u2AC1\u2AC2\u2AC3\u2AC4\u2AC5\u2AC6\u2ACD\u2ACE\u2ACF\u2AD0\u2AD1\u2AD2\u2AD3\u2AD4\u2AD5\u2AD6\u2ADE\u2AE3\u2AE4\u2AE5\u2AEC\u2AED\u2AF7\u2AF8\u2AF9\u2AFA\u2E02\u2E03\u2E04\u2E05\u2E09\u2E0A\u2E0C\u2E0D\u2E1C\u2E1D\u2E20\u2E21\u2E22\u2E23\u2E24\u2E25\u2E26\u2E27\u2E28\u2E29\u3008\u3009\u300A\u300B\u300C\u300D\u300E\u300F\u3010\u3011\u3014\u3015\u3016\u3017\u3018\u3019\u301A\u301B\uFE59\uFE5A\uFE5B\uFE5C\uFE5D\uFE5E\uFE64\uFE65\uFF08\uFF09\uFF1C\uFF1E\uFF3B\uFF3D\uFF5B\uFF5D\uFF5F\uFF60\uFF62\uFF63";
b3.arw=function(s,m,l,x,a,P,o){P.translate(m.Y1.x,m.Y1.y);for(var G=m.IP;G<=m.fA;G++){var _=l.BK[G],j=_.Bv.e,U=s[l.ajb+_.z_],S=U.Aq._FillBackgroundFlag;
if(U.ky=="\n"||o&&!S)continue;var X=U.Aq.FontSize/U.s4.head.unitsPerEm,c=P.clone();c.translate(_.Y1.x+_.O9*X,_.Y1.y-_.Oa*X);
var y=new ae;y.scale(X,-X);if(U.pk==1&&b3.a8S.indexOf(U.ky)!=-1)y.concat(new ae(-1,0,0,1,j,0));if(U.Aq.FauxItalic)y.concat(new ae(1,0,-Math.tan(.18),1,0,0));
y.translate(0,U.DP);y.scale(U.scale.x,U.scale.y);if(U.Aq.BaselineShift!=null)y.translate(0,-U.Aq.BaselineShift);
if(_.xe!=0){y.rotate(-_.xe)}y.concat(c);var O=U.Aq._LineWidth?U.Aq._LineWidth:1;if(o){a.r.push(b3.tp(U.Aq._FillBackgroundColor));
var p=1.005*_.Bv.l/X,D=new bU(-_.O9,-p*.27,1.03*_.Bv.e/X,p);if(U.Aq.StrokeFlag)D.yD(O/X,O/X);L.H.concat(a,L.H.$$(D),y);
a.r.push("X");continue}if(U.Aq.FillFlag)a.r.push(b3.tp(U.Aq.FillColor));if(U.Aq.StrokeFlag)a.r.push("O-"+b3.tp(U.Aq.StrokeColor)+"-"+O);
if(_.path.r.length!=0&&U.ky!="\t"){if(U.Aq.FauxBold){var f=U.Aq.FontSize/2048*27*U.scale.x;y.sI+=f;L.H.concat(a,_.path,y);
y.sI-=f+f;L.H.concat(a,_.path,y)}else L.H.concat(a,_.path,y)}if(U.ky!="\n"){if(U.Aq.Underline){if(x.kv==null)x.kv=U.s4.post.underlineThickness;
if(x.a2I==null)x.a2I=U.s4.post.underlinePosition;var T=0,I=x.a2I-x.kv/2,H=_.QO*1.05,b=-x.kv;L.H.concat(a,{r:["M","L","L","L","Z"],s:[T,I,T+H,I,T+H,I+b,T,I+b]},y)}if(U.Aq.Strikethrough){var R=U.s4["OS/2"].yStrikeoutSize,W=U.s4["OS/2"].yStrikeoutPosition,T=0,I=W+R/2,H=_.QO*1.05,b=-R;
L.H.concat(a,{r:["M","L","L","L","Z"],s:[T,I,T+H,I,T+H,I+b,T,I+b]},y)}}if(U.Aq.FillFlag)a.r.push("X");
if(U.Aq.StrokeFlag)a.r.push("OX")}P.translate(-m.Y1.x,-m.Y1.y)};b3.tp=function(s){var m=ex.Qv(s),l=(Math.round(m.o)<<16)+(Math.round(m.z)<<8)+Math.round(m.S);
return"#"+L.eZ(l)};function hJ(s,m){var l=ex.$i(s),x,a,P=ex.vc(s),o=s._LineOrientation==2?new ae:null,U;
if(s.Curve)a=hJ.QZ(s.Curve);if(l!=0){x=new bU(P[0],P[1],P[2],P[3]);if(o){var G=x.e;x.e=x.l;x.l=G;o.translate(0,-P[2])}if(l==2){x.e=a[5]-a[4];
x.l=9999}}this.AO=[];this.m$=[];this._z=l;this.qp=o;var _=this.abu=ex.Ep(s),j=-1;for(var C=0;C<_.length;
C++){var S=U,X=ex.a61(s,C);if(X!=j){j=X;S=U=ex.amO(s,C)}var c={ky:_.charAt(C),Aq:S,s4:null,nu:-1,yH:ex.aa$(s,C),DP:0,scale:new fz(0,0),w5:0,lineHeight:0,pk:0},y=s.ResourceDict.FontSet[S.Font].Name,O=c.s4=m.JD(y,_.charCodeAt(C));
c.scale.x=S.HorizontalScale==null?1:S.HorizontalScale;c.scale.y=S.VerticalScale==null?1:S.VerticalScale;
var p=O["OS/2"],D=O.hhea;if(S.FontCaps==1&&c.ky!=c.ky.toUpperCase()){var f=p.sxHeight?p.sxHeight/p.sTypoAscender:.76;
c.scale.x*=f;c.scale.y*=f}var T=1/O.head.unitsPerEm*S.FontSize;if(S.FontBaseline==1){var f=s.ResourceDict.SuperscriptSize;
c.scale.x*=f;c.scale.y*=f;c.DP-=s.ResourceDict.SuperscriptPosition*S.FontSize}if(S.FontBaseline==2){var f=s.ResourceDict.SubscriptSize;
c.scale.x*=f;c.scale.y*=f;c.DP+=s.ResourceDict.SubscriptPosition*S.FontSize}c.w5=hJ.w5(O,y,S);c.lineHeight=S.FontSize*1.2;
if(S.AutoLeading==!1)c.lineHeight=S.Leading;if(c.lineHeight==0)c.lineHeight=.01;this.m$.push(c)}var I=this.AO,H=[0];
for(var C=0;C<s.EngineDict.ParagraphRun.RunLengthArray.length;C++){var b=new hJ.Qq(s,m,this.m$,C,x,H,l==1?a:null);
I.push(b)}if(o){if(l==0)o.translate(0,I[0].Hj[0].w5/2);o.rotate(-Math.PI/2)}if(l==2){var W=s.Curve.Points,J=a[0],u=a[1],e=a[2],Q=a[3],q=a[4],Z=a[5];
for(var C=0;C<I.length;C++)for(var E=0;E<I[C].Ox.length;E++)if(!(C==0&&E==0))I[C].Ox[E].QG=!1;var b=I[0],z=b.Ox[0];
b.Y1.Qk(0,0);z.Y1.Qk(0,0);for(var E=z.start;E<z.end;E++){var V=b.Hj[E],Y=V.Y1.x;V.Y1.x=0;for(var d=V.IP;
d<=V.fA;d++){var w=b.BK[d],A=w.Bv.e/2;w.Y1.x+=Y;var $=hJ.a7a(J,(q+w.Y1.x+A)%Q);w.Y1.x=$[0]-A*$[2];w.Y1.y=$[1]-A*$[3];
w.xe=Math.atan2($[3],$[2])}}}}hJ.w5=function(s,m,l){var x=s["OS/2"],a=s.hhea,P=0,P=0,o=[];o.push(x&&x.sxHeight&&m.toLowerCase().indexOf("capitals")!=-1?x.sxHeight:0);
o.push(x&&x.sCapHeight?x.sCapHeight:0);o.push(x&&x.sTypoAscender?x.sTypoAscender:0);o.push(a.ascender?a.ascender:0);
for(var G=0;G<o.length;G++)if(o[G]!=0){P=o[G];break}var _=1/s.head.unitsPerEm*l.FontSize;P=P*_;if(P<l.FontSize*.6)P=l.FontSize*.75;
return P};hJ.prototype.a4z=function(){return!this.abn(0)};hJ.prototype.a0Y=function(){return this.abn(1)};
hJ.prototype.abn=function(s){var m=this.AO,l=!0,x=0;for(var C=0;C<m.length;C++){var a=m[C].Ox,P=a.length;
x+=P;for(var o=0;o<P;o++)l&=a[o].QG}return[l,x][s]};hJ.QZ=function(s,m){if(m==null)m=.25;var l=s.Points,x=l.length,a=x>>>3,P=s.TextOnPathTRange,o=s.Reversed,S=0,X=0;
if(o){var G=l.slice(0);for(var C=0;C<x;C+=2){G[C]=l[x-2-C];G[C+1]=l[x-1-C]}l=G;P=[a-P[1]%a,a-P[0]%a]}var _=[],j=[0],U=[0];
for(var C=0;C<x;C+=8){var c=l[C+6]-l[C+0],y=l[C+7]-l[C+1],O=Math.round(1/m*Math.sqrt(c*c+y*y));for(var p=0;
p<O;p++){var D=p/O,f=1-D,T=f*f*f*l[C+0]+3*f*f*D*l[C+2]+3*f*D*D*l[C+4]+D*D*D*l[C+6],I=f*f*f*l[C+1]+3*f*f*D*l[C+3]+3*f*D*D*l[C+5]+D*D*D*l[C+7];
_.push(T,I);if(C+p!=0){var c=T-S,y=I-X;U.push(U[U.length-1]+Math.sqrt(c*c+y*y));j.push((C>>>3)+D)}S=T;
X=I}}var m=U.length,H=U[m-1],b=hJ.Ik(P[0]%a,j),R=hJ.Ik(P[1]%a,j),W=U[b%m],J=U[R%m];if(W>=J)J+=H;return[_,j,U,H,W,J]};
hJ.Ik=function(s,m){var C=0;while(m[C]<s)C++;return C};hJ.a7a=function(s,m){var l=0,C=0,x,a,P;while(l<m){x=s[C+2]-s[C];
a=s[C+3]-s[C+1];P=Math.sqrt(x*x+a*a);l+=P;C+=2}return[s[C],s[C+1],x/P,a/P]};hJ.prototype.au9=function(s){return this.m$[s]};
hJ.prototype.a2c=function(s){for(var m=0;m<this.AO.length;m++){var l=this.AO[m];for(var x=0;x<l.Ox.length;
x++){var a=l.Ox[x],P=l.Hj[a.start].start,o=l.Hj[a.end-1].end;if(P<s&&s<o)return[P,o-1]}}return[0,1]};
hJ.prototype.a5K=function(s,m){var l=-1,x=this.AO;if(this._z==2){var a=1e9,P=0,o=x[0],G=o.Ox[0];for(var _=G.start;
_<G.end;_++){var j=o.Hj[_];for(var U=j.IP;U<=j.fA;U++){var S=o.BK[U],X=S.Bv.e,c=s.x-S.Y1.x,y=s.y-S.Y1.y,O=c*c+y*y;
if(O<a){a=O;P=S.z_}}}if(P!=0&&this.abu.codePointAt(P-1)>65535)P--;return P}for(var p=0;p<x.length;p++){var o=x[p];
for(var D=0;D<o.Ox.length;D++){l++;var G=o.Ox[D],f=o.Ox[D+1];if(f==null&&p<x.length-1)f=x[p+1].Ox[0];
if(m!=null){if(l!=m)continue}else{if(f!=null&&o.Y1.y+G.Y1.y<s.y)continue}for(var _=G.start;_<G.end;_++){var j=o.Hj[_];
for(var U=j.IP;U<=j.fA;U++){var S=o.BK[U],X=S.Bv.e,T=o.Y1.x+G.Y1.x+j.Y1.x,I=T+S.Y1.x,H=T+(U<j.fA?o.BK[U+1].Y1.x:S.Y1.x+X);
if(s.x<=H||_+1==G.end&&U==j.fA){var b=o.ajb+S.z_,R=this.m$[b],W=R.pk&1;if(R.ky!="\n"&&(W==0&&s.x>I+X/2||W==1&&s.x<I+X/2))b+=this.abu.codePointAt(b)>65535?2:1;
return b}}}}}};hJ.prototype.c5=function(s){var m={Bv:new bU,pN:0},l=0;for(var x=0;x<this.AO.length;x++){var a=this.AO[x];
for(var P=0;P<a.Ox.length;P++){var o=a.Ox[P];m.pN=l;l++;for(var G=o.start;G<o.end;G++){var _=a.Hj[G];
for(var j=_.start;j<_.end;j++){if(j==s){var U=this.m$[j],S=U.nu,X=a.BK[S].z_,c=1;while(a.BK[S]!=null&&a.BK[S].z_==X){var y=a.BK[S],O=a.Y1.x+o.Y1.x+_.Y1.x+y.Y1.x,p=a.Y1.y+o.Y1.y+_.Y1.y+y.Y1.y;
m.Bv=m.Bv.if(new bU(O,p-U.lineHeight,y.Bv.e,U.lineHeight));m.xe=y.xe;S+=c}return m}}}}}};hJ.prototype.eJ=function(){var s=Infinity,m=Infinity,l=-Infinity,x=-Infinity;
for(var C=0;C<this.AO.length;C++){var a=this.AO[C];for(var P=0;P<a.Ox.length;P++){var o=a.Ox[P];if(!o.QG)break;
for(var G=o.start;G<o.end;G++){var _=a.Hj[G];for(var j=_.IP;j<=_.fA;j++){var U=a.BK[j],S=U.Bv,X=a.Y1.x+o.Y1.x+_.Y1.x+U.Y1.x,c=a.Y1.y+o.Y1.y+_.Y1.y+U.Y1.y;
s=Math.min(s,X+S.x);m=Math.min(m,c+S.y);l=Math.max(l,X+S.x+S.e);x=Math.max(x,c+S.y+S.l)}}}}return new bU(s,m,l-s,x-m)};
hJ.G6=function(s){return 19968<=s&&s<=40959||12288<=s&&s<=12543};hJ.atw=function(s,m,l,x,a,P,o){var G=[P],_=0;
for(var C=P;C<o;C++){if(l[C]==null)console.log(C,P,o,l);var j=l[C].ky,U=j.charCodeAt(0);if(U==32||U==9){G.push(_,C,1,C+1);
_=0}else if(U==3851){G.push(_+1,C+1);_=0}else if(hJ.G6(U)){G.push(_,C);_=1}else if(C!=P&&l[C].pk!=l[C-1].pk){G.push(_,C);
_=1}else _++}G.push(_);var S=[];for(var C=0;C<G.length;C+=2){var X=G[C],c=G[C+1];if(c==0)continue;S.push(new hJ.agF(s,m,l,x,a,X,c))}return S};
hJ.ag0=function(s,m,l,x,a,P,o){var G=[0,m?m.e:1e9],_=[];if(x){var j=s[P].w5,U=a+(a==0?j:s[P].lineHeight),S=U-j*.9,X=L.H.rN(x[0],S),c=X.length,y=L.H.rN(x[0],U),O=y.length;
if(c!=0&&O!=0){var p=0,D=0;G=[];while(p<c&&D<O){var f=Math.max(X[p],y[D]),T=X[p+1],I=y[D+1],H=Math.min(T,I);
if(f<H)G.push(f,H);if(T<I)p+=2;else D+=2}}}for(var b=0;b<G.length;b+=2){var R=G[b+1]-G[b],W=0,J=P,u=m?R-l.StartIndent-l.EndIndent-(P==0?l.FirstLineIndent:0):Infinity;
while(P!=s.length){var e=s[P],Q=W==0||(e.uS||e.eH)||W+e.Bv.e<u;if(!Q)break;W+=e.Bv.e;P++}_.push(P-J)}o[0]=_;
o[1]=G;o[2]=P};hJ.a5X=function(s,m){var l=s.length,x=new Uint32Array(l),a=new Uint8Array(l),P=0;for(var C=0;
C<l;C++){a[C]=0;var o=s.charCodeAt(C);x[C]=o;if(o>P)P=o}if(P>1424)a=hJ.ahH(x,m);return a};hJ.Qq=function(s,m,l,x,a,P,o){this.Hj=[];
this.Ox=[];this.Y1=new fz(0,0);this.BK=null;this.Hj=null;this.Aq=ex.amC(s,x);var G=this.Aq,S=0,y="",T=0,I=1,K=0;
if(x!=0){var _=G.SpaceBefore;if(_!=null)P[0]+=_}var j=s.EngineDict.ParagraphRun.RunLengthArray,U=j[x];
for(var C=0;C<x;C++)S+=j[C];var X=G._Direction?G._Direction:0;this.ajb=S;var c=ex.Ep(s).slice(S,S+U);
for(var O=0;O<c.length;O++){var p=c.charAt(O);y+=l[S+O].Aq.FontCaps==0?p:p.toUpperCase()}c=y;var D=hJ.a5X(c,X),f=[],H=D[C]&1,b=l[S].s4;
l[S].pk=D[0];for(var C=1;C<c.length;C++){var p=l[S+C],W=D[C];p.pk=W;if(W!=H||p.s4!=b){f.push(T,I);T=C;
I=1;H=W;b=p.s4}else I++}f.push(T,I);var J=this.BK=[];for(var C=0;C<f.length;C+=2){var u=f[C],e=f[C+1],Q=(l[S+u].pk&1)==0,q=c.slice(u,u+e),Z=Typr.U.shapeHB(l[S+u].s4,q,Q),E=[],Y=0;
for(var O=0;O<Z.length;O++){var z=Z[O];E.push({z:z.g,z_:z.cl,QO:z.ax,rF:z.ay,O9:z.dx,Oa:z.dy})}Z=E;var V=Z.slice(0);
if(!Q)V.reverse();for(var O=0;O<q.length;O++){while(Y+1<V.length&&V[Y+1].z_<=O){Y++}while(Y>0&&V[Y-1].z_==O)Y--;
l[S+u+O].nu=J.length+(Q?Y:V.length-Y-1)}for(var O=0;O<Z.length;O++){J.push(Z[O]);Z[O].z_+=u;var p=l[S+Z[O].z_];
if(p.yH!=-1){Z[O].z=p.yH;var d=p.s4.hmtx;if(d){var w=Object.keys(d)[0];Z[O].QO=d[w][p.yH]}}if(p.ky=="\n")Z[O].QO=0;
if(p.ky=="\t")Z[O].QO=p.s4.head.unitsPerEm*36/p.Aq.FontSize}}var A=ex.U6(G),$=this.Hj=hJ.atw(s,m,l,S,J,S,S+U),i=this.Ox,h=-1,y=[null,null,0];
while(K<$.length){hJ.ag0($,a,G,o,P[0],K,y);h++;var F={start:K,end:0,Bv:new bU,Y1:new fz(0,0),QG:!0},f7=0,hX=0;
i.push(F);F.end=y[2];var N=F.end==$.length;function iQ(V,u,g9){var cL=g9-u>>>1;for(var C=0;C<cL;C++){var bf=V[u+C];
V[u+C]=V[g9-1-C];V[g9-1-C]=bf}}for(var jB=1;jB<5;jB++){var k=-1;for(var C=F.start;C<F.end;C++){var W=l[$[C].start].pk;
if(k==-1&&W>=jB)k=C;else if(k!=-1&&W<jB){iQ($,k,C);k=-1}}var ab=F.end;if(X==0&&$[ab-1].uS)ab--;if(k!=-1)iQ($,k,ab)}var f_=y[0],fc=y[1],k=K,g8=K;
for(var bH=0;bH<f_.length;bH++){var cR=fc[bH*2+1]-fc[bH*2],hr=0;k=g8;g8+=f_[bH];var h$=this.amq(k,g8,$,X,a!=null);
if(a){if(A==1||N&&A==4)hr=h$[1]+(cR-h$[0]);if(A==2||N&&A==5)hr=h$[1]+(cR-h$[0])/2;if(h==0)hr+=G.FirstLineIndent;
hr+=G.StartIndent}else{if(A==0)hr=G.StartIndent+G.FirstLineIndent;if(A==1)hr=-h$[0]-G.EndIndent;if(A==2)hr=-h$[0]/2}hr+=fc[bH*2];
if(a&&A>2&&(A==6||!N))this.arP(k,g8,$,cR,X,hr);else{var gE=hr;for(var C=k;C<g8;C++){var d8=$[C],hG=d8.Bv.e;
d8.Y1.x=gE;if(d8.sp=="\t")hG=Math.ceil((gE+4)/36)*36-gE;gE+=hG}}}K=F.end;for(var C=F.start;C<F.end;C++){var fB=$[C].Bv.clone();
fB.kS($[C].Y1);F.Bv=F.Bv.if(fB);f7=Math.max(f7,$[C].w5);hX=Math.max(hX,$[C].lineHeight)}F.Y1.y=h==0?0:i[h-1].Y1.y+hX;
if(h==0){if(x==0&&a)P[0]+=f7;if(x!=0)P[0]+=hX;this.Y1.y=P[0]}else P[0]+=hX;if(a)F.QG=this.Y1.y+F.Y1.y<a.y+a.l}var e5=G.SpaceAfter;
if(e5!=null)P[0]+=e5};hJ.Qq.prototype.amq=function(s,m,l,x,a){var P=0,o=0;for(var C=s;C<m;C++)P+=l[C].Bv.e;
if(a){if(x==0)for(var C=m-1;C>=s;C--)if(l[C].uS||l[C].eH)P-=l[C].Bv.e;else break;if(x==1)for(var C=s;
C<m;C++)if(l[C].uS||l[C].eH){var G=l[C].Bv.e;P-=G;o-=G}else break}return[P,o]};hJ.Qq.prototype.arP=function(s,m,l,x,a,P){var o=0,G=0,_=0,j=0;
for(var C=s;C<m;C++)if(l[C].uS)_++;else{o+=l[C].Bv.e;G++}if(a==0)for(var C=m-1;C>=s;C--)if(l[C].uS||l[C].eH){if(l[C].uS){_--}}else break;
if(a==1)for(var C=s;C<m;C++)if(l[C].uS||l[C].eH){if(l[C].uS){_--;j++}}else break;if(G<=1||_==0){if(G==1)l[s].Y1.x=P;
return}var U=(x-o)/_,S=-j*U;for(var C=s;C<m;C++){if(l[C].uS)this.BK[l[C].IP].Bv.e=l[C].Bv.e=U;l[C].Y1.x=P+S;
S+=l[C].Bv.e}};hJ.agF=function(s,m,l,x,a,P,o){this.sp="";for(var C=0;C<o;C++)this.sp+=l[P+C].ky;this.uS=o==1&&(l[P].ky==" "||l[P].ky=="\t");
this.eH=o==1&&l[P].ky=="\n";this.start=P;this.end=P+o;this.Bv=new bU;this.Y1=new fz(0,0);this.w5=0;this.lineHeight=0;
var G=0,_=0;if(o==0){this.lineHeight=l[P].lineHeight;this.w5=l[P].w5;this.Bv=new bU(0,-l[P].lineHeight,0,l[P].lineHeight)}var j=l[P].nu,U=l[P+o-1].nu;
if(U<j){var S=j;j=U;U=S}while(U+1<a.length&&a[U].z_==a[U+1].z_){U++}this.IP=j;this.fA=U;for(var X=j;
X<=U;X++){var c=a[X],y=l[x+c.z_],O=s._LineOrientation==2&&(y.Aq.BaselineDirection!=2||hJ.G6(y.ky.charCodeAt(0))),p=Typr.U.glyphToPath(y.s4,c.z),H=0;
c.path={r:p.cmds,s:p.crds};var D=y.Aq.FontSize,f=1/y.s4.head.unitsPerEm*D;if(!y.Aq.AutoKerning)G+=y.Aq.Kerning*2*f*y.scale.x;
c.Y1=new fz(G,0);c.xe=0;if(O&&c.path.s.length>0){c.xe=-Math.PI/2;c.Y1.x+=D*.83;c.Y1.y=-D*.3+c.QO*f/2;
c.QO=D/f}var T=c.QO*f*y.scale.x;c.Bv=new bU(0,-y.lineHeight,T,y.lineHeight);var I=c.Bv.clone();I.kS(c.Y1);
if(y.Aq.Tracking!=null)H=y.Aq.Tracking*.001*D;if(y.Aq.FauxBold==!0)H+=.027*D;G+=T+H;if(o==1&&y.ky==" ")I.e+=2*H;
else if(o==1&&y.ky!=null&&hJ.G6(y.ky.charCodeAt(0)))I.e+=H;this.Bv=this.Bv.if(I);this.w5=Math.max(this.w5,y.w5);
this.lineHeight=Math.max(this.lineHeight,y.lineHeight)}};hJ.eW=0;hJ.a1z=function(s){if(hJ.eW==2)return!0;
if(hJ.eW==1)return!1;hJ.eW=1;function m(){fetch("code/ext/fribidi.wasm").then(function(l){return l.arrayBuffer()}).then(function(l){return WebAssembly.instantiate(l)}).then(function(l){var x=l.instance.exports,a=x.memory,P=16,o=256,G=1,_=P|o,j=P|o|G;
hJ.ahH=function(S,X){var c=S.length,y=c*4+4+c*4+c*4+c;iO.wC(x,y+c+1e7);var O=new Uint8Array(a.buffer),p=new Uint32Array(a.buffer),D=x.calloc(y,1),f=D+c*4,T=f+4,I=T+c*4,H=I+c*4;
p.set(S,D>>>2);p[f>>>2]=X==0?_:j;x.fribidi_get_bidi_types(D,c,T);x.fribidi_get_bracket_types(D,c,T,I);
x.fribidi_get_par_embedding_levels_ex(T,I,c,f,H);var b=O.slice(H,H+c);x.free(D);return b};hJ.eW=2;var U=new h9(v.E.g,!0);
U.data={d:v.J.xw,s5:"add",AV:gN.$W,bp:null};s.Y(U)})}Typr.U.initHB("code/ext/hb.wasm",m);return!1};function ex(){}ex.PG=function(s){return JSON.parse(JSON.stringify(s))};
ex.sU=function(s,m){for(var l in m)s[l]=m[l]};ex.mA=function(s,m,l){var x=ex.aaz();if(l)ex.j3(x,0,0,l);
var a={A:new ae(1,0,0,1,Math.round(s),Math.round(m)),x5:x};a.jW=ex.a5D();a.hG=L.Lv.B();a.fn=new bU;return a};
ex.a3q=function(s){var m=["CharacterDirection",0];for(var C=0;C<m.length;C+=2){if(s[m[C]]!=null&&s[m[C]]!=m[C+1]){throw"e";
console.log(m[C],s[m[C]])}}if(s instanceof Array)for(var C=0;C<s.length;C++)ex.a3q(s[C]);else if(s instanceof Object)for(var l in s)ex.a3q(s[l])};
ex.U6=function(s,m){if(m==null)m=s.Justification;var l=s._Direction?s._Direction:0;if(l==1){if(m==0||m==3)m++;
else if(m==1||m==4)m--}return m};ex._b=function(s){if(s.add==null)return;var m=s.x5,l=m.Curve,x=s.add.vmsk,a=x.T,P=L.H.vt(a,!0).s,o=s.A.clone();
o.ms();L.H.A(P,o,P);var G=P.slice(0,8);for(var _=8;_<P.length;_+=6)G.push(P[_-2],P[_-1],P[_],P[_+1],P[_+2],P[_+3],P[_+4],P[_+5]);
l.Points=G;l.TextOnPathTRange=x.DF.slice(0);l.Reversed=x.vF;if(ex.$i(m)==1){var l=hJ.QZ(m.Curve),j=L.H.ge(l[0]);
ex.rI(m,[0,0,j.e,j.l].map(Math.round));for(var C=0;C<G.length;C+=2){G[C]-=j.x;G[C+1]-=j.y}var U=new ae(1,0,0,1,j.x,j.y);
U.concat(s.A);s.A=U}};ex.S$=function(s){if(s.add==null)return;var m=s.add.vmsk,l=s.x5.Curve,x=l.Points,a={r:["M"],s:[x[0],x[1]]};
for(var C=0;C<x.length;C+=8){a.r.push("C");a.s.push(x[C+2],x[C+3],x[C+4],x[C+5],x[C+6],x[C+7])}L.H.A(a.s,s.A,a.s);
var P=L.H.vP(a,!0);m.T=P;m.vF=l.Reversed;m.DF=l.TextOnPathTRange.slice(0);s.add.vogk=t.GK(P)};ex.Qv=function(s){var m={o:0,z:0,S:0};
if(s){var l=s.Values;if(s.Type==1)m={o:l[1]*255,z:l[2]*255,S:l[3]*255};else if(s.Type==2){var x={classID:"CMYC",Cyn:{t:"doub",v:l[1]*100},Mgnt:{t:"doub",v:l[2]*100},Ylw:{t:"doub",v:l[3]*100},Blck:{t:"doub",v:l[4]*100}};
m=L.K.Qv(x)}else console.log("Unknown color type")}return m};ex.abU=function(s){for(var C=0;C<s.length;
C++){var m=s[C].StyleSheet.StyleSheetData,l=m.FillColor;if(l&&l.Type==2){var x=ex.Qv(l);l.Type=1;l.Values=[1,x.o/255,x.z/255,x.S/255]}}};
ex.E2=function(s,m){var l;if(ex.$i(s.x5)==1){var x=ex.vc(s.x5);l=new bU(0,0,x[2]-x[0],x[3]-x[1])}else{l=m.eJ();
if(m.qp){var a=m.qp.clone(),P=L.H.$$(l);L.H.A(P.s,a,P.s);l=L.H.ge(P.s)}}return l};ex.fH=function(s){var m=s[0];
for(var C=0;C<s.length;C++)m=ex.a9I(m,s[C]);return m};ex.a9I=function(s,m){var l={};for(var x in s)if(JSON.stringify(s[x])==JSON.stringify(m[x]))l[x]=s[x];
return l};ex.Cl=function(s,m){var l=s.dN,x=-1;for(var C=0;C<l.length;C++)if(l[C].Name==m)x=C;if(x==-1){x=l.length;
l.push({FontType:1,Name:m,Script:0,Synthetic:0})}s.m$.Font=x};ex.Ep=function(s){return s.EngineDict.Editor.Text.replace(/\r/g,"\n").replace(/\u0003/g,"\n")};
ex.nJ=function(s,m){s.EngineDict.Editor.Text=m.replace(/\n/g,"\r")};ex.$i=function(s){return s.Curve&&s.Curve.TextOnPathTRange[0]>=0?2:s.EngineDict.Rendered.Shapes.Children[0].ShapeType};
ex.c8=function(s,m){var l=s.EngineDict.Rendered.Shapes.Children[0];l.ShapeType=m;var x=l.Cookie.Photoshop;
x.ShapeType=m;x.Base.ShapeType=m;if(m==0){delete x.BoxBounds;x.PointBase=[0,0]}if(m==1){delete x.PointBase;
x.BoxBounds=[0,0,1,1]}};ex.vc=function(s){return s.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds};
ex.rI=function(s,m){s.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds=m};ex.aa$=function(s,m){var l=s.EngineDict.AlternateGlyphRun;
if(l==null)return-1;var x=ex.tw(l.RunLengthArray,m).A_,a=l.RunArray[x].Glyph;return a==null?-1:a};ex.a51=function(s,m,l){var x=s.EngineDict.AlternateGlyphRun;
if(x==null){x=s.EngineDict.AlternateGlyphRun=ex.a48();x.RunArray.push({});x.RunLengthArray.push(ex.Ep(s).length)}var a=ex.tw(x.RunLengthArray,m),P=a.A_,o=m-a.kU,G=x.RunArray[P],_=JSON.stringify(G),j=x.RunLengthArray[P];
if(o!=0){x.RunArray.splice(P,0,JSON.parse(_));x.RunLengthArray.splice(P,0,o);x.RunLengthArray[P+1]-=o;
P++;j-=o;o=0}if(j!=1){x.RunArray.splice(P+1,0,JSON.parse(_));x.RunLengthArray.splice(P+1,0,j-1);x.RunLengthArray[P]=1;
j=1}G.Glyph=l};ex.amO=function(s,m){return ex.ap7(s,ex.a61(s,m))};ex.a61=function(s,m){var l=s.EngineDict.StyleRun.RunLengthArray;
return ex.tw(l,m).A_};ex.ap7=function(s,m){var l=s.ResourceDict.StyleSheetSet[0].StyleSheetData,x={};
for(var a in l)x[a]=l[a];var P=s.EngineDict.StyleRun.RunArray[m].StyleSheet.StyleSheetData;ex.sU(x,P);
return x};ex.amC=function(s,m){var l=s.ResourceDict.ParagraphSheetSet[0].Properties,x={};for(var a in l)x[a]=l[a];
var P=s.EngineDict.ParagraphRun.RunArray[m].ParagraphSheet.Properties;ex.sU(x,P);var o=["StartIndent","EndIndent","FirstLineIndent"];
for(var C=0;C<3;C++)if(x[o[C]]==null)x[o[C]]=0;return x};ex.A6=function(s,m,l){if(l=="")return;var x=ex.Ep(s);
ex.nJ(s,x.substring(0,m)+l+x.substring(m,x.length));var a=s.EngineDict.StyleRun,P=a.RunLengthArray,o=ex.tw(P,m-1);
P[o.A_]+=l.length;var G=s.EngineDict.AlternateGlyphRun;if(G){var P=G.RunLengthArray,o=ex.tw(P,m-1);P[o.A_]+=l.length}var _=s.EngineDict.ParagraphRun,P=_.RunLengthArray,j=ex.tw(P,m),U=l.split("\n");
if(U.length==1){P[j.A_]+=l.length;return}P.splice(j.A_+1,0,P[j.A_]-(m-j.kU));_.RunArray.splice(j.A_+1,0,ex.PG(_.RunArray[j.A_]));
P[j.A_]-=P[j.A_+1];P[j.A_]+=U[0].length+1;for(var C=1;C<U.length-1;C++){_.RunArray.splice(j.A_+C,0,ex.PG(_.RunArray[j.A_+C-1]));
_.RunLengthArray.splice(j.A_+C,0,U[C].length+1)}P[j.A_+U.length-1]+=U[U.length-1].length};ex.eU=function(s,m,l){var x=ex.Ep(s);
ex.nJ(s,x.substring(0,m)+x.substring(l,x.length));ex.yi(s.EngineDict.ParagraphRun,m,l,!0);ex.yi(s.EngineDict.StyleRun,m,l,!1);
var a=s.EngineDict.AlternateGlyphRun;if(a)ex.yi(a,m,l,!1)};ex.yi=function(s,m,l,x){var a=s.RunLengthArray,P=ex.tw(a,m),o=ex.tw(a,l),G=[];
for(var C=0;C<a.length;C++)for(var _=0;_<a[C];_++)G.push(C);G.splice(m,l-m);var j=[];for(var C=0;C<a.length;
C++)j.push(0);for(var C=0;C<G.length;C++)j[G[C]]++;for(var C=0;C<a.length;C++){if(j[C]==0){j.splice(C,1);
a.splice(C,1);s.RunArray.splice(C,1);C--}else if(j[C]<a[C])a[C]=j[C]}if(x&&P.A_!=o.A_&&P.kU!=m){a[P.A_]+=a[P.A_+1];
a.splice(P.A_+1,1);s.RunArray.splice(P.A_+1,1)}};ex.j3=function(s,m,l,x){var a=s.EngineDict.Editor.Text.length;
if(l==a-2)l++;if(x.m$.Font!=null)s.ResourceDict.FontSet=x.dN.slice(0);if(m<=l)ex.a1P(s.EngineDict.StyleRun,x.m$,m,l,!0);
ex.a1P(s.EngineDict.ParagraphRun,x.AO,m,l,!1)};ex.f9=function(s,m,l){var x={dN:s.ResourceDict.FontSet.slice(0),m$:[],AO:[]},a=s.EngineDict.StyleRun.RunLengthArray,P=ex.tw(a,m).A_,o=ex.tw(a,l).A_;
for(var C=P;C<=o;C++){var G=ex.PG(s.ResourceDict.StyleSheetSet[0].StyleSheetData),_=s.EngineDict.StyleRun.RunArray;
if(_.length==0)continue;var j=_[C].StyleSheet.StyleSheetData;ex.sU(G,j);x.m$.push(G)}var U=s.EngineDict.ParagraphRun.RunLengthArray,S=ex.tw(U,m).A_,X=ex.tw(U,l).A_;
for(var C=S;C<=X;C++){var c=s.EngineDict.ParagraphRun.RunArray;if(c.length==0)continue;x.AO.push(ex.PG(c[C].ParagraphSheet.Properties))}x.m$=x.m$.length==0?{}:ex.fH(x.m$);
x.AO=x.AO.length==0?{}:ex.fH(x.AO);return x};ex.a1P=function(s,m,l,x,a){var P=s.RunLengthArray;if(a){var o=ex.tw(P,l);
if(o.kU!=l){var G=P[o.A_];P.splice(o.A_,0,l-o.kU);P[o.A_+1]=G-P[o.A_];s.RunArray.splice(o.A_+1,0,ex.PG(s.RunArray[o.A_]))}var _=ex.tw(P,x);
if(_.kU+P[_.A_]-1!=x){var G=P[_.A_];P.splice(_.A_,0,x-_.kU+1);P[_.A_+1]=G-P[_.A_];s.RunArray.splice(_.A_+1,0,ex.PG(s.RunArray[_.A_]))}}var o=ex.tw(P,l),_=ex.tw(P,x);
if(a)for(var C=o.A_;C<=_.A_;C++)ex.sU(s.RunArray[C].StyleSheet.StyleSheetData,m);else for(var C=o.A_;
C<=_.A_;C++)ex.sU(s.RunArray[C].ParagraphSheet.Properties,m)};ex.afW=function(s,m,l){var x=s.EngineDict.StyleRun.RunLengthArray,a=[],P=0;
for(var C=0;C<x.length;C++){var o=x[C];for(var G=0;G<o;G++)if(m<=P+G&&P+G<l)a.push(C);P+=o}var _=a[0],j=[];
for(var C=0;C<a.length;C++){var U=a[C]-_;if(U==j.length)j.push(0);j[U]++}return j};ex.acI=function(s){var m=s.EngineDict.StyleRun,l=m.RunArray,x=m.RunLengthArray;
for(var C=0;C<x.length-1;C++){var a=l[C].StyleSheet.StyleSheetData,P=l[C+1].StyleSheet.StyleSheetData;
if(JSON.stringify(a)==JSON.stringify(P)){l.splice(C+1,1);x[C]+=x[C+1];x.splice(C+1,1);C--}}};ex.un=function(s){var m=s.jW.AntA.v.Annt;
m=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"].indexOf(m);if(m==-1)m=1;return m};ex.eB=function(s,m){s.jW.AntA.v.Annt=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"][m]};
ex.Nn=function(s,m){var l,x;l=["FontSize","Leading","BaselineShift"];x=s.m$;for(var C=0;C<l.length;C++)if(x[l[C]]!=null)x[l[C]]*=m;
l=["StartIndent","EndIndent","FirstLineIndent","SpaceBefore","SpaceAfter"];x=s.AO;for(var C=0;C<l.length;
C++)if(x[l[C]]!=null)x[l[C]]*=m};ex.adt=function(){return ex.f9(ex.a8y,0,0)};ex.a5D=function(){return{classID:"TxLr",Txt:{t:"TEXT",v:"\0"},textGridding:{t:"enum",v:{textGridding:"None"}},Ornt:{t:"enum",v:{Ornt:"Hrzn"}},AntA:{t:"enum",v:{Annt:"antiAliasSharp"}},TextIndex:{t:"long",v:0}}};
ex.tw=function(s,m){var l=0,C=0;while(l+s[C]<=m){l+=s[C];C++}return{A_:C,kU:l}};ex.aaz=function(){var s=ex.PG(this.a8y);
return s};ex.ahb={Justification:0,FirstLineIndent:0,StartIndent:0,EndIndent:0,SpaceBefore:0,SpaceAfter:0,AutoHyphenate:!1,HyphenatedWordSize:6,PreHyphen:2,PostHyphen:2,ConsecutiveHyphens:8,Zone:36,WordSpacing:[.8,1,1.33],LetterSpacing:[0,0,0],GlyphSpacing:[1,1,1],AutoLeading:1.2,LeadingType:0,Hanging:!1,Burasagari:!1,KinsokuOrder:0,EveryLineComposer:!1,_Direction:0,_ComposerEngine:1};
ex.a1T={Font:0,FontSize:12,FauxBold:!1,FauxItalic:!1,AutoLeading:!0,Leading:0,HorizontalScale:1,VerticalScale:1,Tracking:0,AutoKerning:!0,Kerning:0,BaselineShift:0,FontCaps:0,FontBaseline:0,Underline:!1,Strikethrough:!1,Ligatures:!0,DLigatures:!1,BaselineDirection:2,Tsume:0,StyleRunAlignment:2,Language:0,NoBreak:!1,FillColor:{Type:1,Values:[1,0,0,0]},StrokeColor:{Type:1,Values:[1,0,0,0]},_FillBackgroundColor:{Type:1,Values:[1,0,0,0]},FillFlag:!0,StrokeFlag:!1,_LineWidth:1,_FillBackgroundFlag:!1,FillFirst:!0,YUnderline:1,OutlineWidth:1,CharacterDirection:0,HindiNumbers:!1,Kashida:1,DiacriticPos:2};
ex.a48=function(){return{RunArray:[],RunLengthArray:[],IsJoinable:2}};ex.a8y={EngineDict:{Editor:{Text:"\n"},ParagraphRun:{DefaultRunData:{ParagraphSheet:{DefaultStyleSheet:0,Properties:{}},Adjustments:{Axis:[1,0,1],XY:[0,0]}},RunArray:[{ParagraphSheet:{DefaultStyleSheet:0,Properties:JSON.parse(JSON.stringify(ex.ahb))},Adjustments:{Axis:[1,0,1],XY:[0,0]}}],RunLengthArray:[1],IsJoinable:1},StyleRun:{DefaultRunData:{StyleSheet:{StyleSheetData:{}}},RunArray:[{StyleSheet:{StyleSheetData:{Font:0,FontSize:24,AutoKerning:!0,Kerning:0}}}],RunLengthArray:[1],IsJoinable:2},GridInfo:{GridIsOn:!1,ShowGrid:!1,GridSize:18,GridLeading:22,GridColor:{Type:1,Values:[0,0,0,1]},GridLeadingFillColor:{Type:1,Values:[0,0,0,1]},AlignLineHeightToGridFlags:!1},AntiAlias:4,UseFractionalGlyphWidths:!0,Rendered:{Version:1,Shapes:{WritingDirection:0,Children:[{ShapeType:0,Procession:0,Lines:{WritingDirection:0,Children:[]},Cookie:{Photoshop:{ShapeType:0,PointBase:[0,0],Base:{ShapeType:0,TransformPoint0:[1,0],TransformPoint1:[0,1],TransformPoint2:[0,0]}}}}]}}},ResourceDict:{KinsokuSet:[{Name:"PhotoshopKinsokuHard",NoStart:"\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u30FC\u2015\u2019\u201D\uFF09\u3015\uFF3D\uFF5D\u3009\u300B\u300D\u300F\u3011\u30FD\u30FE\u309D\u309E\u3005\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u309B\u309C?!)]},.:;\u2103\u2109\xA2\uFF05\u2030",NoEnd:"\u2018\u201C\uFF08\u3014\uFF3B\uFF5B\u3008\u300A\u300C\u300E\u3010([{\uFFE5\uFF04\xA3\uFF20\xA7\u3012\uFF03",Keep:"\u2015\u2025",Hanging:"\u3001\u3002.,"},{Name:"PhotoshopKinsokuSoft",NoStart:"\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u2019\u201D\uFF09\u3015\uFF3D\uFF5D\u3009\u300B\u300D\u300F\u3011\u30FD\u30FE\u309D\u309E\u3005",NoEnd:"\u2018\u201C\uFF08\u3014\uFF3B\uFF5B\u3008\u300A\u300C\u300E\u3010",Keep:"\u2015\u2025",Hanging:"\u3001\u3002.,"}],MojiKumiSet:[{InternalName:"Photoshop6MojiKumiSet1"},{InternalName:"Photoshop6MojiKumiSet2"},{InternalName:"Photoshop6MojiKumiSet3"},{InternalName:"Photoshop6MojiKumiSet4"}],TheNormalStyleSheet:0,TheNormalParagraphSheet:0,ParagraphSheetSet:[{Name:"Normal RGB",DefaultStyleSheet:0,Properties:JSON.parse(JSON.stringify(ex.ahb))}],StyleSheetSet:[{Name:"Normal RGB",StyleSheetData:JSON.parse(JSON.stringify(ex.a1T))}],FontSet:[{Name:"DejaVuSans",Script:0,FontType:1,Synthetic:0},{Name:"AdobeInvisFont",Script:0,FontType:0,Synthetic:0},{Name:"MyriadHebrew-Regular",Script:6,FontType:0,Synthetic:0}],SuperscriptSize:.583,SuperscriptPosition:.333,SubscriptSize:.583,SubscriptPosition:.333,SmallCapSize:.7}};
var eG={};eG.a6I=function(s){var m=eG.a88(s._0,s._1);eG.aua(m,s._0);return m};eG.a6S=function(s,m,l){var x={};
x._98={_0:"i7"};x._0=eG.alC(s,m,l?l._0:null);x._1=eG.a3A(s,m,x._0,l?l._1:null);return x};eG.alC=function(s,m,l){var x={};
x._1=eG.a5x(s,l?l._1:null);x._2={_0:[{_0:{_0:"s"}}],_1:[{_0:"i0"}]};x._3=JSON.parse(JSON.stringify(eG.a4y));
x._4=JSON.parse(JSON.stringify(eG.a89));x._5=eG.agd(s,x._1._0,l?l._5:null);x._6=eG.aaj(s,l?l._6:null);
x._8=eG.aij(s,m,l?l._8:null);x._9=eG.ajB;return x};eG.aua=function(s,m){eG.aol(s,m._5,m._1._0)};eG.a5x=function(s,m){var l=[],x=[];
for(var C=0;C<s.length;C++){var a=s[C].ResourceDict.FontSet;for(var P=0;P<a.length;P++){var o=a[P];if(x.indexOf(o.Name)!=-1)continue;
l.push(o);x.push(o.Name)}}var G={_0:[]};for(var C=0;C<l.length;C++){var _=l[C],j={_0:{_99:"/CoolTypeFont",_0:{_0:"s"+_.Name,_1:"i"+_.Script,_2:"i"+_.FontType}}};
if(_.Script==0)delete j._0._0._1;G._0.push(j)}return G};eG.agd=function(s,m,l){var x={_0:[],_1:[]},a={_0:JSON.parse(JSON.stringify(eG.a9S))};
eG.a8i(a._0,s[0].ResourceDict.StyleSheetSet[0],m,s[0].ResourceDict.FontSet);x._0.push(a);x._1.push({_0:"i0"});
x._0.push({_0:{_0:"sNone",_5:"i0",_6:{}}});x._1.push({_0:"i1"});return x};eG.aol=function(s,m,l){var x=m._0[0];
for(var C=0;C<s.length;C++)eG.abi(x._0,s[C].ResourceDict.StyleSheetSet[0],l,s[C].ResourceDict.FontSet)};
eG.aaj=function(s,m){var l={_0:[],_1:[]},x={_0:JSON.parse(JSON.stringify(eG.dq))};eG.pj(x._0,s[0].ResourceDict.ParagraphSheetSet[0]);
l._0.push(x);l._1.push({_0:"i0"});x={_0:JSON.parse(JSON.stringify(eG.dq))};eG.pj(x._0,s[0].ResourceDict.ParagraphSheetSet[0]);
x._0._0="sBasic Paragraph";x._0._6="i0";l._0.push(x);l._1.push({_0:"i1"});return l};eG.aij=function(s,m,l){var x={_0:[]};
for(var C=0;C<s.length;C++){var a=s[C].Curve,P={};x._0.push({_0:P});var o=ex.$i(s[C]);P._2={};P._2._0="i"+o;
if(s[C]._LineOrientation==2)P._2._1="i2";if(o==0){P._2._6=["f-1","f-1"];P._2._11={_4:"i-1",_7:!1}}else if(o==1&&a==null){var G=ex.vc(s[C]),_=G[2],j=G[3];
P._1={_0:eG.nT("f",[0,0,0,0,_,0,_,0,_,0,_,0,_,j,_,j,_,j,_,j,0,j,0,j,0,j,0,j,0,0,0,0])};P._2._6=["f-2","f-2"];
P._2._11={_4:"i-2",_7:!1}}else if(o==1){var G=ex.vc(s[C]),_=G[2],j=G[3];P._1={_0:eG.nT("f",a.Points)};
P._2._6=["f-3","f-3"];P._2._11={_4:"i-3",_7:!1}}else if(o==2){P._1={_0:eG.nT("f",a.Points)};P._2._6=eG.nT("f",a.TextOnPathTRange);
P._2._11={_0:a.Reversed,_3:"i0",_5:"f0",_7:!1}}}return x};eG.a3A=function(s,m,l,x){var a={};a._0=JSON.parse(JSON.stringify(eG.aoM));
a._1=eG.a1V(s,m,l,x?x._1:null);a._2=JSON.parse(JSON.stringify(eG.a9S._6));a._3=JSON.parse(JSON.stringify(eG.dq._5));
return a};eG.a88=function(s,m){return eG.a3y(s,m._1)};eG.a1V=function(s,m,l,x){var a=[],P=l._1._0;for(var C=0;
C<s.length;C++){var o=s[C],G={_0:{}};a.push(G);G._0._0="s"+o.EngineDict.Editor.Text;G._0._0=G._0._0;
var _=G._0._5={_0:[]},j=o.EngineDict.ParagraphRun;for(var U=0;U<j.RunArray.length;U++){var S={_0:{}};
_._0.push(S);S._0._0={_0:"s",_5:{},_6:"i1"};eG.pj(S._0._0,j.RunArray[U].ParagraphSheet);S._1="i"+j.RunLengthArray[U]}var X=G._0._6={_0:[]};
j=o.EngineDict.StyleRun;for(var U=0;U<j.RunArray.length;U++){var c={_0:{}};X._0.push(c);c._0._0={_0:"s",_5:"i1",_6:{}};
eG.a8i(c._0._0,j.RunArray[U].StyleSheet,P,o.ResourceDict.FontSet);c._1="i"+j.RunLengthArray[U]}j=o.EngineDict.AlternateGlyphRun;
if(j){var y=G._0._9={_0:[]};for(var U=0;U<j.RunArray.length;U++){var O={_0:{}};y._0.push(O);var p=j.RunArray[U];
if(p.Glyph!=null){O._0._0={_0:"i"+p.Glyph,_1:"e"}}O._1="i"+j.RunLengthArray[U]}}G._0._10={_0:"i4",_2:!0};
G._1=eG.view.ahp(o,null,C,null)}return a};eG.a3y=function(s,m){var l=[],x=s._1._0;for(var C=0;C<m.length;
C++){var a=ex.aaz();l.push(a);var P=m[C];a.EngineDict.Editor.Text=P._0._0.slice(1);var o=a.EngineDict.ParagraphRun.RunArray[0],G=a.EngineDict.ParagraphRun,_=P._0._5;
if(_)for(var j=0;j<_._0.length;j++){var U=_._0[j];G.RunLengthArray[j]=parseInt(U._1.slice(1));G.RunArray[j]=JSON.parse(JSON.stringify(o));
eG.akY(U._0._0,G.RunArray[j].ParagraphSheet)}else{G.RunLengthArray[0]=ex.Ep(a).length}var S=P._0._6;
G=a.EngineDict.StyleRun;if(S)for(var j=0;j<S._0.length;j++){var X=S._0[j];G.RunLengthArray[j]=parseInt(X._1.slice(1));
G.RunArray[j]={StyleSheet:{StyleSheetData:{}}};eG.abi(X._0._0,G.RunArray[j].StyleSheet,x,a.ResourceDict.FontSet)}else{G.RunLengthArray[0]=ex.Ep(a).length;
G.RunArray[0]={StyleSheet:{StyleSheetData:{}}}}}return l};eG.a8i=function(s,m,l,x,a){s._0="s"+(m.Name?m.Name:"");
var P=s._6,o=a?a._6:null,G=m.StyleSheetData;if(G.Font==null)return;var _=x[G.Font].Name,j=-1;for(var C=0;
C<l.length;C++)if("s"+_==l[C]._0._0._0){j=C;break}P._0="i"+j;if(G.FontSize!=null)P._1="f"+G.FontSize;
if(G.FauxBold!=null)P._2=G.FauxBold;if(G.FauxItalic!=null)P._3=G.FauxItalic;if(G.AutoLeading!=null)P._4=G.AutoLeading;
if(G.Leading!=null)P._5="f"+G.Leading;if(G.HorizontalScale!=null)P._6="f"+G.HorizontalScale;if(G.VerticalScale!=null)P._7="f"+G.VerticalScale;
if(G.Tracking!=null)P._8="i"+G.Tracking;if(G.BaselineShift!=null)P._9="f"+G.BaselineShift;if(G.AutoKerning!=null)P._11="i"+(G.AutoKerning?1:0);
if(G.FontCaps!=null)P._12="i"+G.FontCaps;if(G.FontBaseline!=null)P._13="i"+G.FontBaseline;if(G.Strikethrough!=null)P._15="i"+(G.Strikethrough?1:0);
if(G.Underline!=null)P._16="i"+(G.Underline?2:0);if(G.Ligatures!=null)P._18=G.Ligatures;if(G.DLigatures!=null)P._19=G.DLigatures;
if(G.BaselineDirection!=null)P._35="i"+G.BaselineDirection;if(G.Language!=null)P._38="i"+G.Language;
if(G.FillColor!=null)P._53=eG.tp(G.FillColor);if(G.StrokeColor!=null)P._54=eG.tp(G.StrokeColor);if(G.FillFlag!=null)P._56=G.FillFlag;
if(G.StrokeFlag!=null)P._57=G.StrokeFlag;if(G._LineWidth!=null)P._63="f"+G._LineWidth;if(G._FillBackgroundColor!=null)P._79=eG.tp(G._FillBackgroundColor);
if(G._FillBackgroundFlag!=null)P._80=G._FillBackgroundFlag};eG.tp=function(s){return{_99:"/SimplePaint",_0:{_0:"i1",_1:eG.nT("f",s.Values)}}};
eG.abi=function(s,m,l,x){var a=s._6;if(a==null)return;var P=m.StyleSheetData;if(a._0){var o=parseInt(a._0.slice(1)),G=l[o]._0._0._0.slice(1);
ex.Cl({m$:P,dN:x},G)}if(a._1!=null)P.FontSize=parseFloat(a._1.slice(1));if(a._2!=null)P.FauxBold=a._2;
if(a._3!=null)P.FauxItalic=a._3;if(a._4!=null)P.AutoLeading=a._4;if(a._5!=null)P.Leading=parseFloat(a._5.slice(1));
if(a._6!=null)P.HorizontalScale=parseFloat(a._6.slice(1));if(a._7!=null)P.VerticalScale=parseFloat(a._7.slice(1));
if(a._8!=null)P.Tracking=parseFloat(a._8.slice(1));if(a._9!=null)P.BaselineShift=parseFloat(a._9.slice(1));
if(a._11!=null)P.AutoKerning=parseFloat(a._11.slice(1))==1;if(a._12!=null)P.FontCaps=parseFloat(a._12.slice(1));
if(a._13!=null)P.FontBaseline=parseFloat(a._13.slice(1));if(a._15!=null)P.Strikethrough=parseFloat(a._15.slice(1))==1;
if(a._16!=null)P.Underline=parseFloat(a._16.slice(1))==1;if(a._18!=null)P.Ligatures=a._18;if(a._19!=null)P.DLigatures=a._19;
if(a._35!=null)P.BaselineDirection=parseFloat(a._35.slice(1));if(a._38!=null)P.Language=parseFloat(a._38.slice(1));
if(a._53!=null)P.FillColor=eG.wZ(a._53);if(a._54!=null)P.StrokeColor=eG.wZ(a._54);if(a._56!=null)P.FillFlag=a._56;
if(a._57!=null)P.StrokeFlag=a._57;if(a._63!=null)P._LineWidth=parseFloat(a._63.slice(1));if(a._79!=null)P._FillBackgroundColor=eG.wZ(a._79);
if(a._80!=null)P._FillBackgroundFlag=a._80};eG.wZ=function(s){var m=s._0._0,l=s._0._1,x=[1,0,0,0],a=[];
for(var C=0;C<l.length;C++)a[C]=parseFloat(l[C].slice(1));if(m=="i0")x[1]=x[2]=x[3]=a[1];else if(m=="i1")x=a;
else if(m=="i2")x=[1].concat(UDOC.C.cmykToRgb(a.slice(1)));else console.log("unknown color type",m,a);
return{Type:1,Values:x}};eG.pj=function(s,m){s._0="s"+(m.Name?m.Name:"");var l=s._5,x=m.Properties;if(x.Justification!=null)l._0="i"+x.Justification;
if(x.FirstLineIndent!=null)l._1="f"+x.FirstLineIndent;if(x.StartIndent!=null)l._2="f"+x.StartIndent;
if(x.EndtIndent!=null)l._3="f"+x.EndtIndent;if(x.SpaceBefore!=null)l._4="f"+x.SpaceBefore;if(x.SpaceAfter!=null)l._5="f"+x.SpaceAfter;
if(x.AutoHyphenate!=null)l._9=x.AutoHyphenate;if(x._Direction!=null)l._33="i"+x._Direction;if(x._ComposerEngine!=null)l._35="i"+x._ComposerEngine};
eG.akY=function(s,m){var l=s._5;if(l==null)return;var x=m.Properties;if(l._0)x.Justification=parseInt(l._0.slice(1))};
eG.nT=function(s,m){var l=[];for(var C=0;C<m.length;C++)l.push(s+m[C]);return l};eG.a4y={_0:[{_0:{_0:"sPhotoshop6MojiKumiSet4",_5:{_0:"i0",_3:"i2"}}},{_0:{_0:"sPhotoshop6MojiKumiSet3",_5:{_0:"i0",_3:"i4"}}},{_0:{_0:"sPhotoshop6MojiKumiSet2",_5:{_0:"i0",_3:"i3"}}},{_0:{_0:"sPhotoshop6MojiKumiSet1",_5:{_0:"i0",_3:"i1"}}},{_0:{_0:"sYakumonoHankaku",_5:{_0:"i0",_3:"i1"}}},{_0:{_0:"sGyomatsuYakumonoHankaku",_5:{_0:"i0",_3:"i3"}}},{_0:{_0:"sGyomatsuYakumonoZenkaku",_5:{_0:"i0",_3:"i4"}}},{_0:{_0:"sYakumonoZenkaku",_5:{_0:"i0",_3:"i2"}}}],_1:[{_0:"i0"},{_0:"i1"},{_0:"i2"},{_0:"i3"},{_0:"i4"},{_0:"i5"},{_0:"i6"},{_0:"i7"}]};
eG.a89={_0:[{_0:{_0:"sNone",_5:{_0:"s",_1:"s",_2:"s",_3:"s",_4:"i0"}}},{_0:{_0:"sPhotoshopKinsokuHard",_5:{_0:"s!),.:;?]}\xA2\u2014\u2019\u201D\u2030\u2103\u2109\u3001\u3002\u3005\u3009\u300B\u300A\u300F\u3011\u3015\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u309B\u309C\u309D\u309E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u30FB\u30FC\u30FD\u30FE\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D",_1:"s([{\xA3\xA7\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3012\u3014\uFF03\uFF04\uFF08\uFF20\uFF3B\uFF5B\uFFE5",_2:"s\u2014\u2025\u2026",_3:"s\u3001\u3002\uFF0C\uFF0E",_4:"i1"}}},{_0:{_0:"sPhotoshopKinsokuSoft",_5:{_0:"s\u2019\u201D\u3001\u3002\u3005\u3009\u300B\u300A\u300F\u3011\u3015\u309D\u309E\u30FB\u30FD\u30FE\uFF01\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D",_1:"s\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B",_2:"s\u2014\u2025\u2026",_3:"s\u3001\u3002\uFF0C\uFF0E",_4:"i2"}}},{_0:{_0:"sHard",_5:{_0:"s!),.:;?]}\xA2\u2014\u2019\u201D\u2030\u2103\u2109\u3001\u3002\u3005\u3009\u300B\u300A\u300F\u3011\u3015\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u309B\u309C\u309D\u309E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u30FB\u30FC\u30FD\u30FE\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D",_1:"s([{\xA3\xA7\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3012\u3014\uFF03\uFF04\uFF08\uFF20\uFF3B\uFF5B\uFFE5",_2:"s\u2014\u2025\u2026",_3:"s\u3001\u3002\uFF0C\uFF0E",_4:"i1"}}},{_0:{_0:"sSoft",_5:{_0:"s\u2019\u201D\u3001\u3002\u3005\u3009\u300B\u300A\u300F\u3011\u3015\u309D\u309E\u30FB\u30FD\u30FE\uFF01\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D",_1:"s\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B",_2:"s\u2014\u2025\u2026",_3:"s\u3001\u3002\uFF0C\uFF0E",_4:"i2"}}}],_1:[{_0:"i0"},{_0:"i1"},{_0:"i2"},{_0:"i3"},{_0:"i4"}]};
eG.a9S={_0:"sNormal RGB",_6:{_0:"i0",_1:"f12",_2:!1,_3:!1,_4:!0,_5:"f0",_6:"f1",_7:"f1",_8:"i0",_9:"f0",_10:"f0",_11:"i1",_12:"i0",_13:"i0",_14:"i0",_15:"i0",_16:"i0",_17:"f0",_18:!0,_19:!1,_20:!1,_21:!1,_22:!1,_23:!1,_24:!1,_25:!1,_26:!1,_27:!1,_28:!1,_29:!1,_30:"i0",_31:!1,_32:!1,_33:!1,_34:!1,_35:"i2",_36:"f0",_37:"i2",_38:"i0",_39:"i0",_40:!1,_41:"i2",_42:"i0",_43:{_0:"f.5"},_44:"i2",_45:"i2",_46:"i7",_47:"i0",_48:"i0",_49:"f-1",_50:"f-1",_51:"i0",_52:!1,_53:{_99:"/SimplePaint",_0:{_0:"i1",_1:["f1","f0","f0","f0"]}},_54:{_99:"/SimplePaint",_0:{_0:"i1",_1:["f1","f0","f0","f0"]}},_55:{_99:"/SimpleBlender"},_56:!0,_57:!1,_58:!0,_59:!1,_60:!1,_61:"i0",_62:"i0",_63:"f1",_64:"f4",_65:"f0",_66:[],_67:[],_68:"i0",_69:"i0",_70:"i0",_71:"i4",_72:"f0",_73:"f0",_74:!1,_75:!1,_76:!1,_77:!0,_78:!0,_79:{_99:"/SimplePaint",_0:{_0:"i1",_1:["f1","f1","f1","f0"]}},_80:!1,_81:"i0",_82:"f3",_83:"f3",_84:!1,_85:"i0",_86:{_99:"/SimpleCustomFeature"},_87:"f100",_88:!0}};
eG.dq={_0:"sNormal RGB",_5:{_0:"i0",_1:"f0",_2:"f0",_3:"f0",_4:"f0",_5:"f0",_6:"i1",_7:"f1.2",_8:"i0",_9:!0,_10:"i6",_11:"i2",_12:"i2",_13:"i0",_14:"f36",_15:!0,_16:"f.5",_17:["f.8","f1","f1.33"],_18:["f0","f0","f0"],_19:["f1","f1","f1"],_20:"i6",_21:!1,_22:"i0",_23:!0,_24:"i0",_25:"i0",_27:"/nil",_26:!1,_28:"/nil",_29:!1,_30:{},_31:"f36",_32:{},_33:"i0",_34:"i7",_35:"i1",_36:"/nil",_37:"i0",_38:!1,_39:"i0",_40:"i2"}};
eG.ajB={_0:[{_0:{_0:"skPredefinedNumericListStyleTag",_6:"i1"}},{_0:{_0:"skPredefinedUppercaseAlphaListStyleTag",_6:"i2"}},{_0:{_0:"skPredefinedLowercaseAlphaListStyleTag",_6:"i3"}},{_0:{_0:"skPredefinedUppercaseRomanNumListStyleTag",_6:"i4"}},{_0:{_0:"skPredefinedLowercaseRomanNumListStyleTag",_6:"i5"}},{_0:{_0:"skPredefinedBulletListStyleTag",_6:"i6"}}],_1:[{_0:"i0"},{_0:"i1"},{_0:"i2"},{_0:"i3"},{_0:"i4"},{_0:"i5"}]};
eG.aoM={_0:{_0:"i1",_1:[{_0:"s ",_1:"s1"},{_0:"s\r",_1:"s6"},{_0:"s\t",_1:"s0"},{_0:"s\u2029",_1:"s5"},{_0:"s\x03",_1:"s5"},{_0:"s\u3000",_1:"s1"},{_0:"s\xAD",_1:"s3"}]},_1:"i0",_2:"i0",_3:"f.583",_4:"f.333",_5:"f.583",_6:"f.333",_7:"f.7",_8:!0,_9:[{_0:"i0",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i1",_1:"s\u201D",_2:"s\u201D",_3:"s\u2019",_4:"s\u2019"},{_0:"i2",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i3",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i4",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i5",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i6",_1:"s\xAB",_2:"s\xBB",_3:"s\u2039",_4:"s\u203A"},{_0:"i7",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i8",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i9",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i10",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i11",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i12",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i13",_1:"s\u201D",_2:"s\u201D",_3:"s\u2019",_4:"s\u2019"},{_0:"i14",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i15",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i16",_1:"s\u201D",_2:"s\u201D",_3:"s\u2019",_4:"s\u2019"},{_0:"i17",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i18",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i19",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i20",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i21",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i22",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i23",_1:"s\u201E",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i24",_1:"s\u201E",_2:"s\u201D",_3:"s\u201A",_4:"s\u2019"},{_0:"i25",_1:"s\xAB",_2:"s\xBB",_3:"s\u2039",_4:"s\u203A"},{_0:"i26",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i27",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i28",_1:"s\u201E",_2:"s\u201D",_3:"s\u2019",_4:"s\u2019"},{_0:"i29",_1:"s\u301D",_2:"s\u301E"},{_0:"i30",_1:"s\u300C",_2:"s\u300D"},{_0:"i31",_1:"s\u201E",_2:"s\u201C",_3:"s\u2018",_4:"s\u2019"},{_0:"i32",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i33",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i34",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i35",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i36",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i37",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i38",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i39",_1:"s\xAB",_2:"s\xBB",_3:"s<",_4:"s>"},{_0:"i40",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i41",_1:"s\xAB",_2:"s\xBB",_3:"s<",_4:"s>"},{_0:"i42",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i43",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i44",_1:"s\xAB",_2:"s\xBB",_3:"s\u2039",_4:"s\u203A"},{_0:"i45",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"}],_15:{_0:"sWinSoft"},_16:!1};
var bG={};bG.aaW=function(s){return bG.cL(s,bG.JU,0)};bG.aes=function(s){return bG.TN(s,bG.JU)};bG.cL=function(s,m,l){var x;
if(typeof s=="string")return s;if(s instanceof Array){x=[];for(var C=0;C<s.length;C++)x[C]=bG.cL(s[C],m,l+1)}else{x={};
var a={};for(var P in m){var o=m[P],G="_"+o[0];if(s[G]!=null){x[P]=o[1]?bG.cL(s[G],o[1],l+1):s[G];a[G]=!0}}for(var P in s){if(a[P]==null){if(P.length>3)continue;
console.log(m,a);console.log(P,s);throw"e"}}}return x};bG.TN=function(s,m){var l;if(typeof s=="string")return s;
else if(s instanceof Array){l=[];for(var C=0;C<s.length;C++)l[C]=bG.TN(s[C],m)}else{l={};var x={};for(var a in m){var P=m[a],o="_"+P[0];
if(s[a]!=null){l[o]=P[1]?bG.TN(s[a],P[1]):s[a];x[a]=!0}}for(var a in s){if(x[a]==null){console.log(m,x);
console.log(a,s);throw"e"}}}return l};bG.ET={_Color:[0,{_Type:[0],_Values:[1]}],_CAIKnownStyleID:[5],_StreamTag:[99]};
bG.Bo={_Font:[0],_FontSize:[1],_FauxBold:[2],_FauxItalic:[3],_AutoLeading:[4],_Leading:[5],_HorizontalScale:[6],_VerticalScale:[7],_Tracking:[8],_BaselineShift:[9],_CharacterRotation:[10],_AutoKern:[11],_FontCaps:[12],_FontBaseline:[13],_FontOTPosition:[14],_StrikethroughPosition:[15],_UnderlinePosition:[16],_UnderlineOffset:[17],_Ligatures:[18],_DiscretionaryLigatures:[19],_ContextualLigatures:[20],_AlternateLigatures:[21],_OldStyle:[22],_Fractions:[23],_Ordinals:[24],_Swash:[25],_Titling:[26],_ConnectionForms:[27],_StylisticAlternates:[28],_Ornaments:[29],_FigureStyle:[30],_ProportionalMetrics:[31],_Kana:[32],_Italics:[33],_Ruby:[34],_BaselineDirection:[35],_Tsume:[36],_StyleRunAlignment:[37],_Language:[38],_JapaneseAlternateFeature:[39],_EnableWariChu:[40],_WariChuLineCount:[41],_WariChuLineGap:[42],_WariChuSubLineAmount:[43,{_WariChuSubLineScale:[0]}],_WariChuWidowAmount:[44],_WariChuOrphanAmount:[45],_WariChuJustification:[46],_TCYUpDownAdjustment:[47],_TCYLeftRightAdjustment:[48],_LeftAki:[49],_RightAki:[50],_JiDori:[51],_NoBreak:[52],_FillColor:[53,bG.ET],_StrokeColor:[54,bG.ET],_Blend:[55,{_1:[1],_3:[3],_Knockout:[4],_StreamTag:[99]}],_FillFlag:[56],_StrokeFlag:[57],_FillFirst:[58],_FillOverPrint:[59],_StrokeOverPrint:[60],_LineCap:[61],_LineJoin:[62],_LineWidth:[63],_MiterLimit:[64],_LineDashOffset:[65],_LineDashArray:[66],_Type1EncodingNames:[67],_Kashidas:[68],_DirOverride:[69],_DigitSet:[70],_DiacVPos:[71],_DiacXOffset:[72],_DiacYOffset:[73],_OverlapSwash:[74],_JustificationAlternates:[75],_StretchedAlternates:[76],_FillVisibleFlag:[77],_StrokeVisibleFlag:[78],_FillBackgroundColor:[79,bG.ET],_FillBackgroundFlag:[80],_UnderlineStyle:[81],_DashedUnderlineGapLength:[82],_DashedUnderlineDashLength:[83],_SlashedZero:[84],_StylisticSets:[85],_CustomFeature:[86,{_StreamTag:[99]}],_MarkYDistFromBaseline:[87],_AutoMydfb:[88],_89:[89],_90:[90]};
bG.acs={_Justification:[0],_FirstLineIndent:[1],_StartIndent:[2],_EndIndent:[3],_SpaceBefore:[4],_SpaceAfter:[5],_DropCaps:[6],_AutoLeading:[7],_LeadingType:[8],_AutoHyphenate:[9],_HyphenatedWordSize:[10],_PreHyphen:[11],_PostHyphen:[12],_ConsecutiveHyphens:[13],_Zone:[14],_HyphenateCapitalized:[15],_HyphenationPreference:[16],_WordSpacing:[17],_LetterSpacing:[18],_GlyphSpacing:[19],_SingleWordJustification:[20],_Hanging:[21],_AutoTCY:[22],_KeepTogether:[23],_BurasagariType:[24],_KinsokuOrder:[25],_Kinsoku:[27],_KurikaeshiMojiShori:[26],_MojiKumiTable:[28],_EveryLineComposer:[29],_TabStops:[30],_DefaultTabWidth:[31],_DefaultStyle:[32,bG.Bo],_ParagraphDirection:[33],_JustificationMethod:[34],_ComposerEngine:[35],_ListStyle:[36],_ListTier:[37],_ListSkip:[38],_ListOffset:[39],_KashidaWidth:[40]};
bG.aau={_Name:[0],_Features:[5,bG.acs],_Parent:[6],_97:[97]};bG.a5c={_Name:[0],_Parent:[5],_Features:[6,bG.Bo],_97:[97]};
bG.JU={_98:[98,{_0:[0]}],_DocumentResources:[0,{_0:[0],_FontSet:[1,{_Resources:[0,{_Resource:[0,{_StreamTag:[99],_Identifier:[0,{_Name:[0],_ScriptType:[1],_Type:[2],_Synthetic:[3],_4:[4],_MMAxis:[5]}],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}],_MojiKumiCodeToClassSet:[2,{_Resources:[0,{_Resource:[0,{_Name:[0],_Members:[5],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}],_MojiKumiTableSet:[3,{_Resources:[0,{_Resource:[0,{_Name:[0],_Members:[5,{_CodeToClass:[0],_AutoTsume:[1,{_TsumeMappings:[0,{_Before:[0],_After:[1],_Code:[2]}]}],_Table:[2,{_DataArray:[0,{_SparseArray:[0,{_Index:[0],_Elements:[1,{_P:[0],_Data:[1,{_A:[0,{_R:[0],_P:[1]}],_B:[1,{_R:[0],_P:[1]}]}]}]}]}]}],_PredefinedTag:[3]}],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}],_KinsokuSet:[4,{_Resources:[0,{_Resource:[0,{_Name:[0],_Data:[5,{_NoStart:[0],_NoEnd:[1],_Keep:[2],_Hanging:[3],_PredefinedTag:[4]}],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}],_StyleSheetSet:[5,{_Resources:[0,{_Resource:[0,bG.a5c]}],_DisplayList:[1,{_Resource:[0]}]}],_ParagraphSheetSet:[6,{_Resources:[0,{_Resource:[0,bG.aau]}],_DisplayList:[1,{_Resource:[0]}]}],_TextFrameSet:[8,{_Resources:[0,{_Resource:[0,{_0:[0],_Bezier:[1,{_Points:[0]}],_Data:[2,{_Type:[0],_LineOrientation:[1],_FrameMatrix:[2],_TextOnPathTRange:[6],_RowGutter:[7],_ColumnGutter:[8],_9:[9],_FirstBaselineAlignment:[10,{_Flag:[0],_Min:[1]}],_PathData:[11,{_1:[1],_Reversed:[0],_2:[2],_3:[3],_Spacing:[4],_5:[5],_6:[6],_7:[7],_18:[18]}],_12:[12],_13:[13]}],_97:[97]}]}]}],_ListStyleSet:[9,{_Resources:[0,{_Resource:[0,{_Name:[0],_LevelStyle:[5,{_IndentUnits:[0],_TextIndent:[1],_LabelIndent:[2],_LabelAlignment:[3],_SequenceGenerator:[5,{_Prefix:[0],_Postfix:[1],_CaseType:[3],_Bullet:[9],_StreamTag:[99]}],_Font:[6]}],_PredefinedTag:[6],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}]}],_DocumentObjects:[1,{_DocumentSettings:[0,{_HiddenGlyphFont:[0,{_AlternateGlyphFont:[0],_WhitespaceCharacterMapping:[1,{_WhitespaceCharacter:[0],_AlternateCharacter:[1]}]}],_NormalStyleSheet:[1],_NormalParagraphSheet:[2],_SuperscriptSize:[3],_SuperscriptPosition:[4],_SubscriptSize:[5],_SubscriptPosition:[6],_SmallCapSize:[7],_UseSmartQuotes:[8],_SmartQuoteSets:[9,{_Language:[0],_OpenDoubleQuote:[1],_CloseDoubleQuote:[2],_OpenSingleQuote:[3],_CloseSingleQuote:[4]}],_10:[10],_11:[11],_LinguisticSettings:[15,{_PreferredProvider:[0],_LinguisticProviderInfo:[1]}],_UseSmartLists:[16],_DefaultStoryDir:[17],_18:[18],_GreekingSize:[20]}],_TextObjects:[1,{_Model:[0,{_Text:[0],_ParagraphRun:[5,{_RunArray:[0,{_RunData:[0,{_ParagraphSheet:[0,bG.aau]}],_Length:[1]}]}],_StyleRun:[6,{_RunArray:[0,{_RunData:[0,{_StyleSheet:[0,bG.a5c]}],_Length:[1]}]}],_FirstKern:[7],_8:[8],_AlternateGlyphRun:[9,{_RunArray:[0,{_RunData:[0,{_AlternateGlyphSheet:[0,{_Glyph:[0],_Name:[1],_2:[2]}]}],_Length:[1]}]}],_StorySheet:[10,{_AntiAlias:[0],_1:[1],_UseFractionalGlyphWidths:[2],_3:[3],_4:[4]}],_KernRun:[15],_HyperlinkRun:[16]}],_View:[1,{_Frames:[0,{_Resource:[0]}],_RenderedData:[1,{_RunArray:[0,{_RunData:[0,{_0:[0],_LineCount:[1]}],_Length:[1]}]}],_Strikes:[2]}],_OpticalAlignment:[2]}],_OriginalNormalStyleFeatures:[2,bG.Bo],_OriginalNormalParagraphFeatures:[3,bG.acs]}]};
eG.view={};eG.view.ahp=function(s,m,l,x){var a={},P=ex.$i(s);a._0=[{_0:"i"+l}];return a};function CSS(){}CSS.abV=function(s,m){var l=s.add,x=l.vmsk,a=l.vstk,P=l.lmfx,o=l.TySh,G=[],_=CSS.amB(P,l);
if(s.Ee()&&x){var j=L.j.dj(x.T);if(!j.Xh()){G.push("width: "+Math.round(j.e)+"px");G.push("height: "+Math.round(j.l)+"px")}var U=L.j.ag$(x.T);
if(U>0)G.push("border-radius: "+Math.round(U)+"px")}else if(o){var S=o.x5;if(ex.$i(S)==1){var j=ex.vc(S);
G.push("width: "+Math.round(j[2])+"px");G.push("height: "+Math.round(j[3])+"px")}CSS.a2O(G,ex.f9(S,0,0),o.A,!1,!1,_[0])}var X=[],c=P?P.dropShadowMulti.v:0;
for(var C=0;C<c.length;C++){var y=c[C].v;if(y.enab.v){var O=y.Dstn.v.val,p=y.lagl.v.val*Math.PI/180;
if(y.uglg&&y.uglg.v)p=m.Q1()*Math.PI/180;var D=O*Math.cos(p),f=O*Math.sin(p);X.push("drop-shadow("+(D==0?"0 ":CSS.YO(-D)+"px ")+(f==0?"0 ":CSS.YO(f)+"px ")+y.blur.v.val/2+"px "+CSS.mf(y.Clr.v,y.Opct.v.val/100)+")")}}if(X.length!=0)G.push("filter: "+X.join(" "));
if(o==null)CSS.abA(_,G);if(a==null||!a.strokeEnabled.v)a=jo.eE(P);if(a&&a.strokeEnabled.v){var T=a.strokeStyleContent.v,I=T.classID,H=i4.Ah.S5.indexOf(a.strokeStyleLineCapType.v.strokeStyleLineCapType),b=i4.Ah.join.indexOf(a.strokeStyleLineJoinType.v.strokeStyleLineJoinType),W=a.strokeStyleOpacity.v.val/100,J=a.strokeStyleLineWidth.v.val,u="";
if(I=="solidColorLayer")u=CSS.mf(T.Clr.v,W);G.push("border: "+J+"px solid "+u)}return G};CSS.amB=function(s,m){var l=jo.pL(s,m),x=l[0],a=l[1],P,o;
if(x){P=CSS.mf(x.Clr.v,m.iOpa!=null?m.iOpa/255:1)}else if(a){o=CSS.m2(a)}return[P,o]};CSS.abA=function(s,m){if(s[0])m.push("background-color: "+s[0]);
if(s[1])m.push("background-image: "+s[1])};CSS.kX={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};
CSS.YO=function(cE){return""+parseFloat(cE.toFixed(3))};CSS.Eq=function(s){if(s==null)return{o:0,z:0,S:0};
var m=s.indexOf("(");if(m!=-1){var l=s.slice(m+1,s.length-1).split(",");for(var C=0;C<l.length;C++){var x=l[C].trim();
l[C]=parseFloat(x)*(x.endsWith("%")?255/100:1)}return{o:l[0],z:l[1],S:l[2]}}if(s.charAt(0)!="#"){var a=CSS.kX;
if(a[s])s=a[s];else console.log("unknown color "+s)}s=s.slice(1);if(s.length==3)s=s[0]+s[0]+s[1]+s[1]+s[2]+s[2];
s=parseInt(s,16);return{o:s>>16&255,z:s>>8&255,S:s&255}};CSS.mf=function(s,m){return CSS.Qd(L.K.Qv(s),m)};
CSS.Qd=function(s,m){if(m==null)m=1;var l=Math.round(s.o),x=Math.round(s.z),a=Math.round(s.S),P=l<<16|x<<8|a;
return m==1?"#"+L.eZ(P):"rgba("+l+","+x+","+a+","+m+")"};CSS.m2=function(s){var m=s.Grad.v;if(m.Clrs==null)return"";
var l=m.Clrs.v.slice(0),x=m.Trns.v.slice(0),a=s.Ofst.v,P=s.Type.v.GrdT=="Rdl"?1:0,o=(P==1?"radial":"linear")+"-gradient",G=P==0?Math.round(-s.Angl.v.val+90)+"deg":"circle at center",_=s.Rvrs.v;
if(_){l.reverse();x.reverse()}for(var C=0;C<l.length;C++){var j=l[C].v,U=C<x.length?x[C].v.Opct.v.val/100:1,S=j.Lctn.v/4096;
if(_)S=1-S;G+=", "+CSS.mf(j.Clr.v,U)+" "+Math.round(S*100)+"%"}return o+"("+G+")"};CSS.a2O=function(s,m,l,x,a,P){var o=m.m$,G=x?1:r.Q.LL(l),_=Math.round(o.FontSize*G);
s.push("font-size: "+_+"px");var j=o.Tracking;if(!x&&j!=null&&j!=0)s.push("letter-spacing: "+Math.round(j*_/1e3)+"px");
if(!o.AutoLeading)s.push("line-height: "+Math.round(o.Leading*G)+"px");if(o.Strikethrough)s.push("text-decoration: line-through");
var U=ex.Qv(o.FillColor);U=[U.o,U.z,U.S].map(Math.round);s.push((x?"fill: ":"color: ")+(P?P:"#"+L.eZ(U[0]<<16|U[1]<<8|U[2])));
var S=m.dN[o.Font].Name;if(S){var X=cV.ys.JD(S),c="",y=null,O=null;if(X!=null&&S!=cV._V(X))X=null;if(a&&X)c+="\""+S+"\", ";
var p=S.toLowerCase();if(X){y=cV.TT(X)[0];if(X["OS/2"])O=X["OS/2"].usWeightClass}else{y=CSS.ah7(S);if(p.indexOf("light")!=-1)O=300;
else if(p.indexOf("medium")!=-1)O=500;else if(p.indexOf("black")!=-1||p.indexOf("extrabold")!=-1)O=800;
else if(p.indexOf("bold")!=-1)O="bold"}if(y!=null)c+="\""+y+"\"";if(O!=null)s.push("font-weight: "+O);
if(p.indexOf("italic")!=-1||p.indexOf("oblique")!=-1)s.push("font-style: italic");if(c)s.push("font-family: "+c)}var D=m.AO.Justification;
if(D!=null&&D!=0)if(x)s.push("text-anchor: "+["start","end","middle"][D%3]);else s.push("text-align: "+["left","right","center"][D%3])};
CSS.ah7=function(s){s=s.split("-")[0];while(s.endsWith("MT")||s.endsWith("PS"))s=s.slice(0,s.length-2);
var m=!0;for(var C=0;C<s.length;C++){var l=s.charAt(C);if(!m&&l.toLowerCase()!=l){s=s.slice(0,C)+" "+s.slice(C);
C++;m=!0}else m=!1}return s};function iy(){}iy.MB={document:!0,parent:!0,top:!0,eval:!0,postMessage:!0,UTIF:!0,PIMG:!0,LNG:!0,FNTS:!0};
iy.tK=function(s,m){var l=Date.now(),x;try{x=acorn.parse(s)}catch(iX){console.log(iX);return}var a=JSON.parse(JSON.stringify(iy.u5.y_));
a.__return=!1;a.__continue=!1;a.__break=!1;a.__throw=!1;a.__fs={};a.__window={};iy.eval(x,m,a);var P=a.__fs;
if(Object.keys(P).length!=0){var o=UZIP.encode(P);d4.save(o,"output.zip")}};iy.eval=function(s,m,l){var x=s.type;
if(!1){}else if(x=="Program"||x=="BlockStatement"){var a=s.body;for(var C=0;C<a.length;C++){var P=a[C].type;
if(P=="FunctionDeclaration")l[a[C].id.name]=a[C]}for(var C=0;C<a.length;C++){var P=a[C].type,o=iy.eval(a[C],m,l);
if(l.__continue){l.__continue=!1;return o}if(l.__return||l.__break||l.__throw)return o}}else if(x=="ReturnStatement"){l.__return=!0;
return s.argument?iy.D$(s.argument,m,l):null}else if(x=="BreakStatement"){l.__break=!0}else if(x=="ContinueStatement"){l.__continue=!0}else if(x=="VariableDeclaration"){var G=s.declarations;
for(var C=0;C<G.length;C++)iy.eval(G[C],m,l)}else if(x=="VariableDeclarator"){l[s.id.name]=s.init?iy.D$(s.init,m,l):null}else if(x=="FunctionDeclaration"){l[s.id.name]=s}else if(x=="MemberExpression"){var _=iy.D$(s.object,m,l),j=s.computed?iy.D$(s.property,m,l):iy.eval(s.property,m,l),o;
if(_.OL!=null)o=iy.u5.L1(_,j,m,l);else if(_==window&&iy.MB[j]){}else o=_[j];return o}else if(x=="ArrayExpression"){var U=[],S=s.elements;
for(var C=0;C<S.length;C++)U.push(iy.D$(S[C],m,l));return U}else if(x=="ObjectExpression"){var U={},S=s.properties;
for(var C=0;C<S.length;C++){var X=S[C],c=S[C].key.name?S[C].key.name:S[C].key.value;U[c]=iy.D$(S[C].value,m,l)}return U}else if(x=="ExpressionStatement"){return iy.eval(s.expression,m,l)}else if(x=="NewExpression"){var y=s.arguments,O=s.callee,p=O.type,D=[],U=null;
for(var C=0;C<y.length;C++)D.push(iy.D$(y[C],m,l));if(p=="Identifier")U=iy.u5.a8W(O.name,D,m,l);else throw"e";
if(U==null)throw"new "+O.name;return U}else if(x=="CallExpression"){var y=s.arguments,O=s.callee,p=O.type,f={};
for(var T in l)f[T]=l[T];var D=[];for(var C=0;C<y.length;C++)D.push(iy.D$(y[C],m,l));if(p=="Identifier"){var I=O.name,H=l[I];
if(H){if(H.params){var b=H.params;for(var C=0;C<b.length;C++)f[b[C].name]=D[C];return iy.eval(H.body,m,f)}else{return H.apply(null,D)}}else if(iy.u5.ahM.indexOf(I)!=-1)return iy.u5.x7({OL:"Application"},I,D,m,l);
else if(window[I]==null)console.log("Unknown function "+I);else if(iy.MB[I])alert(I+"() not available");
else{var R=window[I].apply(window,D);return R}}else if(p=="MemberExpression"){var _=iy.D$(O.object,m,l),j=O.computed?iy.D$(O.property,m,l):iy.eval(O.property,m,l);
if(_==window&&iy.MB[j])return;if(_.OL!=null)return iy.u5.x7(_,j,D,m,l);else return _[j].apply(_,D)}else if(p=="FunctionExpression"){return iy.eval(O.body,m,l)}else console.log(s)}else if(x=="AssignmentExpression"){var W=s.operator,J=s.left,u=J.type,e=iy.D$(J,m,l),q=iy.D$(s.right,m,l),o=null;
if(!1){}else if(W=="=")o=q;else if(W=="+=")o=e+q;else if(W=="-=")o=e-q;else if(W=="*=")o=e*q;else if(W=="/=")o=e/q;
else if(W=="%=")o=e%q;else if(W=="&=")o=e&q;else if(W=="|=")o=e|q;else if(W=="&&=")o=e&&q;else if(W=="||=")o=e||q;
else console.log(s);if(u=="Identifier"){var Z=J.name;if(l.hasOwnProperty(Z))l[Z]=o;else l.__window[Z]=o}else if(u=="MemberExpression"){var E=iy.eval(J.property,m,l),z=iy.D$(J.object,m,l);
if(z.OL!=null)iy.u5.a4h(z,E,o,m,l);else z[E]=o}else console.log(s)}else if(x=="Identifier")return s.name;
else if(x=="Literal")return s.value;else if(x=="UpdateExpression"){var W=s.operator,V=s.argument.name,U=iy.D$(s.argument,m,l),Y=l;
if(Y[V]==null)Y=l.__window;if(!1){}else if(W=="++"){Y[V]++;return s.prefix?Y[V]:Y[V]-1}else if(W=="--"){Y[V]--;
return s.prefix?Y[V]:Y[V]+1}else console.log(s)}else if(x=="UnaryExpression"){var W=s.operator,d=iy.D$(s.argument,m,l);
if(d.OL=="UnitValue"){if(W=="-")return-d.Z;else return iy.atM(d.Z,W)}else return iy.atM(d,W)}else if(x=="BinaryExpression"||x=="LogicalExpression"){var W=s.operator,J=iy.D$(s.left,m,l),d=iy.D$(s.right,m,l);
if(J==null||d==null)return iy.RL(J,d,W);else if(J.OL=="UnitValue"&&d.OL=="UnitValue")return iy.RL(J.Z,d.Z,W);
else if(J.OL=="UnitValue")return iy.RL(J.Z,d,W);else if(d.OL=="UnitValue"){if(W=="-")return-(J-d.Z);
else return iy.RL(J,d.Z,W)}else return iy.RL(J,d,W)}else if(x=="IfStatement"||x=="ConditionalExpression"){var w=iy.D$(s.test,m,l);
if(w)return iy.eval(s.consequent,m,l);else if(s.alternate)return iy.eval(s.alternate,m,l)}else if(x=="ForInStatement"){iy.eval(s.left,m,l);
var A=s.left.declarations[0].id.name,$=iy.D$(s.right,m,l);for(var T in $){l[A]=T;var i=iy.eval(s.body,m,l);
if(l.__break)break;if(l.__return)return i}l.__break=!1}else if(x=="ForStatement"){iy.eval(s.init,m,l);
while(iy.eval(s.test,m,l)){var i=iy.eval(s.body,m,l);if(l.__break)break;if(l.__return)return i;iy.eval(s.update,m,l)}l.__break=!1}else if(x=="DoWhileStatement"){do{var i=iy.eval(s.body,m,l);
if(l.__break)break;if(l.__return)return i}while(iy.eval(s.test,m,l));l.__break=!1}else if(x=="TryStatement"){iy.eval(s.block,m,l);
if(l.__throw){var K=s.handler;l[K.param.name]=l.__throw;l.__throw=!1;iy.eval(K.body,m,l);delete l[K.param.name]}}else if(x=="EmptyStatement"){}else console.log(s)};
iy.RL=function(s,m,l){if(l=="+")return s+m;else if(l=="-")return s-m;else if(l=="*")return s*m;else if(l=="/")return s/m;
else if(l=="%")return s%m;else if(l=="^")return s^m;else if(l=="&")return s&m;else if(l=="&&")return s&&m;
else if(l=="|")return s|m;else if(l=="||")return s||m;else if(l=="<")return s<m;else if(l==">")return s>m;
else if(l=="=="){if(s.OL&&m.OL)return s.Z==m.Z;return s==m}else if(l=="===")return s===m;else if(l=="<=")return s<=m;
else if(l==">=")return s>=m;else if(l=="!=")return s!=m;else if(l=="!==")return s!==m;else if(l=="<<")return s<<m;
else if(l==">>")return s>>m;else console.log(l)};iy.atM=function(s,m){if(m=="-")return-s;else if(m=="!")return!s;
else if(m=="~")return~s;else if(m=="+")return s;else console.log(obj)};iy.D$=function(s,m,l){var x=s.type;
if(x=="Identifier")return iy.abf(s.name,m,l);else return iy.eval(s,m,l)};iy.abf=function(s,m,l){if(s=="undefined")return undefined;
else if(l.hasOwnProperty(s))return l[s];else if(s=="app")return{OL:"Application"};else if(s=="$")return{OL:"$"};
else if(iy.u5.acd.indexOf(s)!=-1)return iy.u5.L1({OL:"Application"},s,m,l);else if(l.__window.hasOwnProperty(s))return l.__window[s];
else if(window[s]&&!iy.MB[s])return window[s];else{l[s]=null;return null}};iy.u5={};iy.u5.a8W=function(s,m,l,x){var a;
if(s=="SolidColor")a={OL:s,Z:[1,0,0,0]};if(s=="RGBColor")a={OL:s,Z:[1,0,0,0]};if(s=="Window")a={OL:s,Z:new ct(m[0],m[1],m[2])};
if(s=="ExportOptionsSaveForWeb")a={OL:s,Z:{pG:"png",oi:100}};if(s=="JPEGSaveOptions")a={OL:s,Z:{pG:"jpg",oi:100}};
if(s=="PDFSaveOptions")a={OL:s,Z:{pG:"pdf",app:""}};if(s=="File")a={OL:s,Z:m[0]};if(s=="ActionReference")a={OL:s,Z:[]};
if(s=="ActionDescriptor")a={OL:s,Z:{}};if(s=="ActionList")a={OL:s,Z:[]};if(s=="UnitValue")a={OL:s,Z:m.length==0?0:parseFloat(m[0])};
return a};iy.u5.acd="activeDocument documents fonts preferences displayDialogs foregroundColor backgroundColor".split(" ");
iy.u5.ahM=["charIDToTypeID","stringIDToTypeID","executeAction","executeActionGet","doAction"];iy.u5.L1=function(s,m,l,x){var a=l.$z,P=l.w0();
if(!1){}else if(m=="typename"){if(s.OL=="Layer")return s.Z.gu()?"LayerSet":"ArtLayer";else return s.OL}else if(["Document","Layer"].indexOf(s.OL)!=-1&&["layers","artLayers","layerSets"].indexOf(m)!=-1){var o=P.root,G={OL:"Layers",Io:m,Z:[]};
if(s.OL=="Layer")o=P.root.Wp(P.G.indexOf(s.Z));if(o.children==null)return null;for(var C=0;C<o.children.length;
C++){var _=o.children[C].i,j=_.gu();if(j&&m=="artLayers"||!j&&m=="layerSets")continue;G.Z.push({OL:"Layer",Z:_})}G.Z.reverse();
return G}else if(s.OL=="Documents"||s.OL=="Layers"||s.OL=="HistoryStates"||s.OL=="LayerComps"){if(!1){}else if(m=="length")return s.Z.length;
else if(Number.isInteger(m))return s.Z[m];else console.log(s.OL+": unknown property ",m)}else if(s.OL=="Application"){if(!1){}else if(m=="activeDocument")return{OL:"Document",Z:l.w0()};
else if(m=="documents"){var G={OL:"Documents",Z:[]};for(var C=0;C<l.UF.length;C++)G.Z.push({OL:"Document",Z:l.UF[C]});
return G}else if(m=="fonts")return{OL:"TextFonts"};else if(m=="preferences")return{OL:"Preferences"};
else if(m=="displayDialogs")return{OL:"DialogModes"};else if(m=="foregroundColor"||m=="backgroundColor"){var U=m[0]=="f"?a.zU:a.Pi;
return{OL:"SolidColor",Z:[1,(U>>>16&255)/255,(U>>>8&255)/255,(U>>>0&255)/255]}}else if(m=="UI")return{OL:"UI"};
else console.log(s,m)}else if(s.OL=="Document"){var P=s.Z;if(!1){}else if(m=="activeLayer"){var _=P.G[P.N[0]];
return{OL:"Layer",Z:_}}else if(m=="resolution")return P.sz;else if(m=="width")return P.e;else if(m=="height")return P.l;
else if(m=="name")return P.name;else if(m=="saved")return!P.m3();else if(m=="selection")return{OL:"Selection"};
else if(m=="activeHistoryState")return{OL:"HistoryState",jV:P.gH};else if(m=="source")return P.e8;else if(m=="layerComps"){var S=P.xW.list.v,X=[];
for(var C=0;C<S.length;C++)X.push({OL:"LayerComp",Z:C});return{OL:"LayerComps",Z:X}}else if(m=="historyStates"){var c=[];
for(var C=0;C<P.history.length;C++)c.push({OL:"HistoryState",jV:C});return{OL:"HistoryStates",Z:c}}else console.log(s,m)}else if(s.OL=="LayerComp"){if(m=="name")return P.xW.list.v[s.Z].v.Nm.v;
else throw m}else if(s.OL=="Layer"){var y={transparentPixelsLocked:0,pixelsLocked:1,positionLocked:2,allLocked:31},_=s.Z;
if(!1){}else if(m=="visible")return _.p$();else if(m=="selected")return P.N.indexOf(P.G.indexOf(_))!=-1;
else if(m=="grouped")return _.uK;else if(y[m]!=null)return _.Xz(y[m]);else if(m=="opacity")return _.opacity*100/255;
else if(m=="blendMode")return _.TR;else if(m=="name")return _.getName();else if(m=="textItem")return{OL:"TextItem",Z:_};
else if(m=="bounds"){var O=r.Q.E2(P,[P.G.indexOf(_)]);return iy.u5.a9u(O,P)}else if(m=="parent"){var p=l.UF;
for(var C=0;C<p.length;C++)if(p[C].G.indexOf(_)!=-1)return{OL:"Document",Z:p[C]}}else if(m=="kind"){var D=iy.u5.Ko;
for(var C=0;C<D.length;C++)if(_.add[D[C]]!=null)return C;return 0}else console.log(s,m)}else if(s.OL=="Selection"){if(!1){}else if(m=="bounds")return iy.u5.a9u(l.w0().q.rect,P);
else console.log(s,m)}else if(s.OL=="TextItem"){var f=s.Z.add.TySh,T=f.x5,I=ex.Ep(T),H=f.A.LL(),b=ex.f9(T,0,Math.max(0,I.length-2));
if(m=="contents")return I.slice(0,I.length-1).replace(/\n/g,"\r");else if(m=="font")return b.m$.Font!=null?b.dN[b.m$.Font].Name:null;
else if(m=="size")return iy.u5.MK(b.m$.FontSize*H,P);else if(m=="leading")return iy.u5.MK(b.m$.Leading*H,P);
else if(m=="tracking")return iy.u5.MK(b.m$.Tracking);else if(m=="baselineShift")return iy.u5.MK(b.m$.BaselineShift);
else if(m=="fauxBold")return b.m$.FauxBold;else if(m=="fauxItalic")return b.m$.FauxItalic;else if(m=="kind")return 1-ex.$i(T);
else if(m=="useAutoLeading")return b.AO.AutoLeading;else if(m=="hyphenation")return b.AO.AutoHyphenate;
else if(m=="justification")return iy.u5.MK(b.AO.Justification);else if(m=="color")return{OL:"SolidColor",Z:b.m$.FillColor.Values.slice(0)};
else if(m=="width"||m=="height"){var W=ex.vc(T),J=(W[2]-W[0])*H,u=(W[3]-W[1])*H;return iy.u5.MK(m=="width"?J:u,P)}else if(m=="position"){var e=f.A;
return iy.u5.apK([e.sI,e.bW],P)}else if(m=="horizontalScale"||m=="verticalScale"){var Q=m[0].toUpperCase()+m.slice(1);
return Math.round(b.m$[Q]*100)}else if(m=="antiAliasMethod")ex.un(f);else console.log(s,m)}else if(s.OL=="Preferences"){if(m=="rulerUnits")return a.HD.jq;
else console.log(s,m)}else if(s.OL=="SolidColor"){if(m=="rgb")return{OL:"RGBColor",Z:s.Z};else console.log(s,m)}else if(s.OL=="RGBColor"){var O=Math.round(255*s.Z[1]),q=Math.round(255*s.Z[2]),Z=Math.round(255*s.Z[3]);
if(!1){}else if(m=="red")return O;else if(m=="green")return q;else if(m=="blue")return Z;else if(m=="hexValue")return"#"+L.eZ(O<<16|q<<8|Z).toUpperCase();
else console.log(s,m)}else if(s.OL=="UnitValue"){if(m=="value")return s.Z;else throw"e"}else if(s.OL=="ExportOptionsSaveForWeb"){if(m=="format")return s.Z.pG;
else if(m=="PNG8"||m=="interlaced")return!1;else if(m=="quality")return s.Z.oi;else if(m=="transparency")return!0;
else throw m}else if(s.OL=="JPEGSaveOptions"||s.OL=="PDFSaveOptions"){return 0}else console.log(s,m)};
iy.u5.a9u=function(s,m){return iy.u5.apK([s.x,s.y,s.x+s.e,s.y+s.l],m)};iy.u5.apK=function(s,m){var l=[];
for(var C=0;C<s.length;C++)l.push(iy.u5.MK(s[C],m));return l};iy.u5.ar9=function(s){var m=[];for(var C=0;
C<s.length;C++)m.push(s[C].OL?s[C].Z:s[C]);return m};iy.u5.MK=function(s,m){return{OL:"UnitValue",Z:s}};
iy.u5.akA=function(s,m){if(s.OL=="UnitValue")return s.Z;return s};iy.u5.a4h=function(s,m,l,x,a){var P=new h9(v.E.u,!0),o=new h9(v.E.g,!0),G=x.w0(),_=x.$z;
if(!1){}else if(s.OL=="Application"){if(!1){}else if(m=="activeDocument"){o.data={d:v.J.Ig,u0:l.Z};x.Y(o)}else if(m=="displayDialogs"){}else console.log(s,m,l)}else if(s.OL=="Document"){var j=s.Z;
if(!1){}else if(m=="name"){P.c=r.ay;P.data={d:t.Ba,Z:l,ar5:!0,B1:j};G.Gq=!0}else if(m=="source")j.e8=l;
else if(m=="activeLayer"){j.N=[j.G.indexOf(l.Z)]}else if(m=="activeHistoryState"){P.c=r.rs;P.data={d:"h_itemchange",index:l.jV}}else console.log(s,m)}else if(s.OL=="Layer"){P.c=r.ay;
var U={transparentPixelsLocked:0,pixelsLocked:1,positionLocked:2,allLocked:31},S=s.Z,X=G.G.indexOf(S);
if(!1){}else if(m=="visible"){if(S.p$()!=l)P.data={d:t.Fm,i:X}}else if(m=="opacity"){P.data={d:t.j$,i:X,Ur:Math.round(255*l/100)}}else if(m=="blendMode"){P.data={d:t.fL,i:X,Ur:aA.EB.indexOf(l)}}else if(m=="name"){P.data={d:t.eQ,i:X,name:l}}else if(U[m]!=null){P.data={d:t.wx,i:X,Ur:[[l],[U[m]]]}}else if(m=="kind"){P.data={d:t.up,i:X,Kb:iy.u5.Ko[l]}}else if(m=="grouped"){P.data={d:t.VD,i:X,Ur:l}}else console.log(s,m,l)}else if(s.OL=="TextItem"){P.c=r.sX;
var S=s.Z,c=S.add.TySh,y=JSON.parse(JSON.stringify(c.x5)),O=c.A.clone(),p=c.A.LL(),D=ex.Ep(y),f=ex.f9(y,0,D.length-2),T=!1;
if(!1){}else if(m=="contents"){ex.eU(y,0,D.length-1);ex.A6(y,0,l.replace(/\r/g,"\n"))}else if(m=="size"){f.m$.FontSize=(l.Z!=null?l.Z:l)/p;
T=!0}else if(m=="leading"){f.m$.Leading=(l.Z!=null?l.Z:l)/p;T=!0}else if(m=="tracking"){f.m$.Tracking=l.Z!=null?l.Z:l;
T=!0}else if(m=="baselineShift"){f.m$.BaselineShift=l.Z!=null?l.Z:l;T=!0}else if(m=="fauxBold"){f.m$.FauxBold=l;
T=!0}else if(m=="fauxItalic"){f.m$.FauxItalic=l;T=!0}else if(m=="kind"){var I=ex.$i(y);if(I==1&&l==1){var H=new hJ(y,x.$z.dC).AO[0],b=H.Ox[0].end,W=H.Hj[b-1].end;
ex.eU(y,0,D.length-1);ex.A6(y,0,D.slice(0,W-1))}if(I==l)ex.c8(y,1-l)}else if(m=="useAutoLeading"){f.AO.AutoLeading=l;
T=!0}else if(m=="hyphenation"){f.AO.AutoHyphenate=l;T=!0}else if(m=="justification"){f.AO.Justification=l;
T=!0}else if(m=="font"){ex.Cl(f,l);T=!0}else if(m=="color"){f.m$.FillColor.Values=l.Z.slice(0);T=!0}else if(m=="width"||m=="height"){var J=ex.vc(y).slice(0),u=iy.u5.akA(l);
if(m=="width")J[2]=Math.round(J[0]+u/p);else J[3]=Math.round(J[1]+u/p);ex.rI(y,J)}else if(m=="position"){O.sI=l[0];
O.bW=l[1]}else if(m=="horizontalScale"||m=="verticalScale"){var e=m[0].toUpperCase()+m.slice(1);f.m$[e]=l/100;
T=!0}else if(m=="antiAliasMethod")ex.eB(c,l);else console.log(s,m,l);if(T)ex.j3(y,0,D.length-1,f);P.data={d:"newED",eu:G.G.indexOf(S),ld:y,A:O}}else if(s.OL=="Preferences"){if(!1){}else if(m=="rulerUnits"){var Q=JSON.parse(JSON.stringify(_.HD));
Q.jq=l;o.data={d:v.J.xw,AV:gN.iY,Ur:Q};x.Y(o)}else console.log(s,m,l)}else if(s.OL=="SolidColor"){if(m=="rgb")s.Z=l.Z;
else throw m}else if(s.OL=="RGBColor"){if(!1){}else if(m=="red")s.Z[1]=l/255;else if(m=="green")s.Z[2]=l/255;
else if(m=="blue")s.Z[3]=l/255;else if(m=="hexValue"){var q=L.j9(l.slice(1));s.Z[1]=(q>>>16&255)/255;
s.Z[2]=(q>>>8&255)/255;s.Z[3]=(q>>>0&255)/255}else console.log(s,m)}else if(s.OL=="ExportOptionsSaveForWeb"){if(m=="format")s.Z.pG=l;
else if(m=="PNG8"||m=="transparency"||m=="interlaced"){}else if(m=="quality")s.Z.oi=l;else throw m}else if(s.OL=="JPEGSaveOptions"){if(m=="quality")s.Z.oi=Math.round(100*l/12)}else if(s.OL=="PDFSaveOptions"){if(m=="preset")s.Z.app=l}else console.log(s,m,l);
if(P.data!=null)x.Y(P)};iy.u5.x7=function(s,m,l,x,a){var P=s.OL,o=null,G=new h9(v.E.u,!0),_=new h9(v.E.b4,!0),j=new h9(v.E.g,!0),U=x.w0(),S=x.UF;
if(!1){}else if(P=="Application"){if(!1){}else if(m=="charIDToTypeID"){var X=l[0].trim(),c={slct:"select",Dlt:"delete",Mk:"make"};
return c[X]?c[X]:X}else if(m=="stringIDToTypeID"){var y=l[0].trim(),c={red:"Rd",blue:"Bl",color:"Clr",RGBColor:"RGBC",type:"Type",using:"Usng"},O=c[y];
return O==null?y:O}else if(m=="executeAction"){console.log(l);var p;if(l[1]){p=l[1].Z;p.classID=l[0]}var D={setd:"set"},f=D[l[0]];
if(f==null)f=l[0];var T=eb.v9[l[0]];if(T&&eb.Tg[T])f=eb.Tg[T];_.data={YF:f,WA:p}}else if(m=="executeActionGet"){return{OL:"ActionDescriptor",Z:{classID:"null",null:{t:"obj ",v:l[0].Z}}}}else if(m=="doAction"){j.data={d:v.J.Lh,KA:[l[0],l[1]]}}else if(m=="open"){j.data={d:v.J.zy,AV:{url:l[0]}};
if(l[2]&&S.length!=0)j.data.AV.dg=S.indexOf(U)}else if(m=="echoToOE"){j.data={d:v.J.ly,AV:l[0]}}else console.log(m)}else if(P=="LayerComp"){if(m=="apply"){G.c=r.zH;
G.data={d:"setLC",jV:U.xW.list.v[s.Z].v.compID.v}}else throw m}else if(P=="Document"){var U=s.Z;if(!1){}else if(m=="crop"){_.data=r.Bs.Zv(l[0])}else if(m=="trim"){var I=[];
for(var C=0;C<4;C++)I.push(l[C+1]!=null?l[C+1]:!0);_.data=r.Bs.gM(l[0]!=null?l[0]:0,I)}else if(m=="suspendHistory"){var H=acorn.parse(l[1]);
iy.eval(H,x,a)}else if(m=="save"){j.data={d:v.J.Sl}}else if(m=="saveToOE"){j.data={d:v.J.Sl,agl:l}}else if(m=="rotateCanvas"){_.data=r.Q.pU(!0,l[0])}else if(m=="resizeImage"||m=="resizeCanvas"){var b=l[0],R=l[1];
if(typeof b!="number"){b=U.e*parseFloat(b.slice(0,b.length-1))/100;R=U.l*parseFloat(R.slice(0,R.length-1))/100}if(m=="resizeCanvas")_.data=r.Bs.qg(Math.round(b),Math.round(R),l[2]);
else _.data=r.Bs.Tk(Math.round(b),Math.round(R),null,1)}else if(m=="paste"){j.data={d:v.J.iI,N_:l.length!=0&&l[0],SC:!0}}else if(m=="close"){j.data={d:v.J.TA,EC:U}}else if(m=="exportDocument"||m=="saveAs"){var W=a.__fs,J=l[0].Z.replace(":","").replace("~/",""),u=m=="exportDocument"?l[2].Z:l[1].Z,e=iO.rJ(U,u.pG,null,null,u.pG=="pdf"?null:[u.oi],x.$z);
W[J]=new Uint8Array(e)}else console.log(s,m,l)}else if(P=="Layer"){var Q=s.Z,q=U.G.indexOf(Q);if(!1){}else if(m=="copy"){iy.u5.hM(U,x,0);
j.data={d:v.J.xZ,Oo:l[0],oB:q,SC:!0};x.Y(j);delete j.data;iy.u5.hM(U,x,1)}else if(m=="clear"){iy.u5.hM(U,x,0);
_.data={YF:"delete"};x.Y(_);delete _.data;iy.u5.hM(U,x,1)}else if(m=="duplicate"){if(l.length==0){G.data={d:t.Rk,i:q};
G.c=r.ay;x.Y(G);G.data=null;o={OL:"Layer",Z:U.G[U.N[0]]}}else if(l[0].OL=="Document"){G.data={d:t.mg,G:U.qJ(q),Pr:U,XT:l[0].Z};
G.c=r.ay}}else if(m=="merge"||m=="remove"){G.data={d:m=="merge"?t.MN:t.q_,i:q};G.c=r.ay;if(m!="remove")o={OL:"Layer",Z:U.G[U.N[0]]}}else if(m=="move"){G.data={d:t.i6,source:q,target:U.G.indexOf(l[0].Z),mJ:l[1]!=3?.6:.3};
G.c=r.ay}else if(m=="rasterize"){_.data={YF:"rasterizeLayer",WA:{classID:"rasterizeLayer",null:e6.Yr("Lyr",!0)}}}else if(m=="rotate"){G.data={d:"rot",YH:[2,5],Z:-l[0]*Math.PI/180,Ac:l[1],i:q};
G.c=r.mx}else if(m=="resize"){G.data={d:"scl",YH:[2,4],Z:new fz(l[0]/100,l[1]/100),Ac:l[2],i:q};G.c=r.mx}else if(m=="translate"){var Z=iy.u5.ar9(l);
G.data={d:"trsl",i:q,a8j:Z[0],ahR:Z[1]};G.c=r.G1}else if(m=="link"){G.data={d:t.xV,apx:[q,U.G.indexOf(l[0].Z)]};
G.c=r.ay}else if(m=="invert"){G.c=r.P4;G.data={d:"start",AK:"nvrt"}}else if(m.startsWith("apply")&&ib.VT[m.slice(5)]){var Z=iy.u5.ar9(l),E=ib.VT[m.slice(5)];
_.data={YF:ib.Tg[E]};var p=ib.Xi(E);if(p){ib.yV["g"+E](p,Z);_.data.WA=p}}else console.log(s,m,l)}else if(P=="Documents"){if(m=="getByName"){for(var C=0;
C<S.length;C++)if(S[C].name==l[0])return{OL:"Document",Z:S[C]};return null}else if(m=="add"){var z=l[5];
if(z==null)z=1;_.data=jF.oI(l[0],l[1],l[2],l[3],["Wht","Trns","BckC"][z],!1)}else throw"e"}else if(P=="Layers"){if(m=="getByName"){for(var C=0;
C<s.Z.length;C++)if(s.Z[C].Z.getName()==l[0]){o=s.Z[C];break}if(o==null)a.__throw={message:"No layer with a name "+l[0]}}else if(m=="add"){G.data={d:s.Io=="layerSets"?t.R3:t.Yb};
G.c=r.ay;x.Y(G);G.data=null;o={OL:"Layer",Z:U.G[U.N[0]]}}else console.log(s,m,l)}else if(s.OL=="Selection"){if(m=="select"){var V=l[0],d=[];
for(var C=0;C<V.length;C++)d.push(V[C][0],V[C][1]);_.data=r.bJ.u_(d)}else if(m=="selectAll"){_.data=r.bJ.d9(!0)}else if(m=="invert"){_.data={YF:"inverse"}}else if(m=="copy"){j.data={d:v.J.xZ}}else if(m=="deselect"){_.data=r.bJ.d9()}else if(m=="fill"){var w=l[0].Z;
w=L.K.gc({o:w[1]*255,z:w[2]*255,S:w[3]*255});_.data=r.fZ.VG("Clr",l[1],l[2]==null?1:l[2]/100,w)}else console.log(s,m,l)}else if(s.OL=="Window"){if(m=="show"){j.data={d:v.J.Qm,It:s.Z}}else throw"e"}else if(s.OL=="ActionReference"){if(m=="putProperty"){s.Z.push({t:"prop",v:{classID:l[0],keyID:l[1]}})}else if(m=="putClass"){s.Z.push({t:"Clss",v:{classID:l[0]}})}else if(m=="putEnumerated"){s.Z.push({t:"Enmr",v:{classID:l[0],typeID:l[1],enum:l[2]}})}else if(m=="putName"){s.Z.push({t:"name",v:{classID:l[0],val:l[1]}})}else console.log(m,l)}else if(s.OL=="ActionDescriptor"||s.OL=="ActionList"){if(m=="putReference"){s.Z[l[0]]={t:"obj ",v:l[1].Z}}else if(m=="putDouble"){s.Z[l[0]]={t:"doub",v:l[1]}}else if(m=="putUnitDouble"){s.Z[l[0]]={t:"UntF",v:{type:l[1],val:l[2]}}}else if(m=="putObject"){if(s.OL=="ActionList"){var A=l[1].Z;
A.classID=l[0];s.Z.push({t:"Objc",v:A})}else{var A=l[2].Z;A.classID=l[1];s.Z[l[0]]={t:"Objc",v:A}}}else if(m=="putList"){s.Z[l[0]]={t:"VlLs",v:l[1].Z}}else if(m=="putBoolean"){s.Z[l[0]]={t:"bool",v:l[1]}}else if(m=="putInteger"){s.Z[l[0]]={t:"long",v:l[1]}}else if(m=="putString"){s.Z[l[0]]={t:"TEXT",v:l[1]}}else if(m=="putEnumerated"){var $={};
$[l[1]]=l[2];s.Z[l[0]]={t:"enum",v:$}}else if(m=="hasKey"){var i=s.Z.null.v;for(var C=0;C<i.length;C++){if(i[C].v.keyID==l[0]){if(l[0]=="UsrM"){return U.G[U.N[0]].SE()!=null}else throw l}}}else console.log(m,l)}else if(s.OL=="$"){if(m=="writeln"){console.log(l[0])}else throw m}else if(s.OL=="UI"){var K;
if(m=="zoomIn"||m=="zoomOut"){K={d:"zoom",SF:m=="zoomIn"}}else if(m=="fitTheArea"){K={d:"adapt",Z:"fitscr"}}else if(m=="pixelToPixel"){K={d:"adapt",Z:"pixel"}}G.c=r.Zq;
G.data=K}else console.log(s,m,l);if(G.data)x.Y(G);if(_.data)x.Y(_);if(j.data)x.Y(j);return o};iy.u5.hM=function(s,m,l){var x=new h9(v.E.u,!0);
x.c=r.r$;var a=new h9(v.E.b4,!0);if(l==0){iy.u5.a9s=s.q;a.data=r.bJ.d9(!0)}else{var P=iy.u5.a9s;if(P)x.data={d:"setsel",YH:"Restore Selection",q:{rect:P.rect.clone(),channel:P.channel.slice(0)}};
else a.data=r.bJ.d9()}m.Y(x.data?x:a)};iy.u5.a9s=null;iy.u5.y_={AnchorPosition:{TOPLEFT:0,TOPCENTER:1,TOPRIGHT:2,MIDDLELEFT:3,MIDDLECENTER:4,MIDDLERIGHT:5,BOTTOMLEFT:6,BOTTOMCENTER:7,BOTTOMRIGHT:8},Units:{PIXELS:0,INCHES:1,CM:2,MM:3,PERCENT:4,PICAS:5,POINTS:6},ElementPlacement:{INSIDE:0,PLACEATBEGINNING:1,PLACEATEND:2,PLACEBEFORE:3,PLACEAFTER:4},LayerKind:{NORMAL:0,SMARTOBJECT:1,TEXT:2,SOLIDFILL:3,GRADIENTFILL:4,PATTERNFILL:5},RippleSize:{SMALL:0,MEDIUM:1,LARGE:2},PolarConversionType:{POLARTORECTANGULAR:1,RECTANGULARTOPOLAR:0},OffsetUndefinedAreas:{REPEATEDGEPIXELS:0,SETTOBACKGROUND:1,WRAPAROUND:2},NoiseDistribution:{GAUSSIAN:0,UNIFORM:1},TextType:{PARAGRAPHTEXT:0,POINTTEXT:1},DialogModes:{ALL:0,ERROR:1,NO:2},SaveOptions:{DONOTSAVECHANGES:0,PROMPTTOSAVECHANGES:1,SAVECHANGES:2},SaveDocumentType:{PNG:"png",JPEG:"jpg",COMPUSERVEGIF:"gif"},ExportType:{SAVEFORWEB:0},MatteType:{BACKGROUND:0,BLACK:1,FOREGROUND:2,NETSCAPE:3,NONE:4,SEMIGRAY:5,WHITE:6},FormatOptions:{OPTIMIZEDBASELINE:0,PROGRESSIVE:1,STANDARDBASELINE:3},DocumentMode:{RGB:0},NewDocumentMode:{RGB:0},DocumentFill:{WHITE:0,TRANSPARENT:1,BACKGROUNDCOLOR:2},TrimType:{TOPLEFT:0,BOTTOMRIGHT:1,TRANSPARENT:2},BlendMode:{NORMAL:"norm",DISSOLVE:"diss",DARKEN:"dark",MULTIPLY:"mul ",COLORBURN:"idiv",LINEARBURN:"lbrn",DARKERCOLOR:"dkCl",LIGHTEN:"lite",SCREEN:"scrn",COLORDODGE:"div ",LINEARDODGE:"lddg",LIGHTERCOLOR:"lgCl",OVERLAY:"over",SOFTLIGHT:"sLit",HARDLIGHT:"hLit",VIVIDLIGHT:"vLit",LINEARLIGHT:"lLit",PINLIGHT:"pLit",HARDMIX:"hMix",DIFFERENCE:"diff",EXCLUSION:"smud",SUBTRACT:"fsub",DIVIDE:"fdiv",HUE:"hue ",SATURATION:"sat ",COLOR:"colr",LUMINOSITY:"lum "},Justification:{LEFT:0,RIGHT:1,CENTER:2,LEFTJUSTIFIED:3,RIGHTJUSTIFIED:4,CENTERJUSTIFIED:5,FULLYJUSTIFIED:6},AntiAlias:{NONE:0,SHARP:1,CRISP:2,STRONG:3,SMOOTH:4}};
iy.u5.y_.ColorBlendMode=iy.u5.y_.BlendMode;iy.u5.Ko="---- SoLd TySh SoCo GdFl PtFl".split(" ");function bs(){}bs.MG={"dc:Title":["",null,"dc:title"],"tiff:Artist":["",315,"dc:creator"],"tiff:ImageDescription":["",270,"dc:description"],"dc:Keywords":["",null,"dc:subject"],"tiff:Copyright":["",33432],"tiff:Make":["",271],"tiff:Model":["",272],"exif:ExposureTime":[[1,200],33434],"exif:FNumber":[[16,1],33437],"exif:ExposureProgram":[1,34850],"exif:ISOSpeedRatings":[200,34855],"exif:DateTimeOriginal":["",36867],"exif:ShutterSpeedValue":[[1,1],37377],"exif:ApertureValue":[[8,1],37378],"exif:ExposureBiasValue":[[1,1],37380],"exif:MaxApertureValue":[[1,1],37381],"exif:MeteringMode":[5,37383],"exif:LightSource":[0,37384],"exif:Flash":[0,37385],"exif:FocalLength":[[60,1],37386],"exif:PixelXDimension":[1,40962],"exif:PixelYDimension":[1,40963],"exif:FocalPlaneXResolution":[[1,1],41486],"exif:FocalPlaneYResolution":[[1,1],41487],"exif:FocalPlaneResolutionUnit":[2,41488],"exif:DigitalZoomRatio":[[100,100],41988],"exif:FocalLengthIn35mmFilm":[1,41989],"exif:SceneCaptureType":[0,41990],"exif:LensInfo":["",42034],"exif:Lens":["",42036],"exif:LensSerialNumber":["",42037],"exif:SensitivityType":[2,34864],"exif:RecommendedExposureIndex":[100,34866],"exif:GPSVersionID":["2.3.0.0",0],"exif:GPSLatitude":["48,35,57.646N",2],"exif:GPSLongitude":["22,56,42.238E",4],"exif:GPSAltitudeRef":[0,5],"exif:GPSAltitude":[[1,1],6],"exif:GPSStatus":["A",9],"exif:GPSMapDatum":["",18]};
bs.fi={"5":"dc:Title","55":"exif:DateTimeOriginal","80":"tiff:Artist","120":"tiff:ImageDescription"};
bs.a5B=function(s,m){if(m==null)m={};var l=bs.fi,x=[];for(var C=0;C<s.length;C++){var a=s[C],P=l[a[0]+""];
if(m[P]==null)m[P]=a[1];else if(a[0]==25)x.push(a[1])}if(x.length!=0&&m["dc:Keywords"]==null)m["dc:Keywords"]=x.join(";");
return m};bs.a3S=function(s){var m=bs.fi,l=[];for(var x in m)if(s[m[x]])l.push([parseInt(x),s[m[x]]]);
if(s["dc:Keywords"]){var a=s["dc:Keywords"].split(";");for(var C=0;C<a.length;C++)l.push([25,a[C].trim()])}return l};
bs.afM=function(s,m){if(m==null)m={};var l=new DOMParser,x=l.parseFromString(s,"image/svg+xml"),a=x.getElementsByTagName("rdf:Description")[0];
if(a==null)return m;var P=bs.MG;for(var o in P){var G=P[o][2];if(G==null)continue;var _=a.getElementsByTagName(G)[0];
if(_==null)continue;var j=_.getElementsByTagName("rdf:li"),U=[];for(var C=0;C<j.length;C++)U.push(j[C].textContent);
m[o]=U.join("; ")}return m};bs.al4=function(s){var m=["<?xpacket begin=\"\uFEFF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>","<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"Adobe XMP Core 5.6-c145 79.163499, 2018/08/13-16:40:22\">","<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">","<rdf:Description rdf:about=\"\" xmlns:xmp=\"http://ns.adobe.com/xap/1.0/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:xmpMM=\"http://ns.adobe.com/xap/1.0/mm/\" xmlns:stEvt=\"http://ns.adobe.com/xap/1.0/sType/ResourceEvent#\" xmlns:stRef=\"http://ns.adobe.com/xap/1.0/sType/ResourceRef#\">"],l=bs.MG;
for(var x in l){var a=s[x],P=l[x][2],o="Seq",G="";if(a==null||P==null)continue;if(P=="dc:title"||P=="dc:description"){o="Alt";
G=" xml:lang=\"x-default\""}if(P=="dc:subject")o="Bag";m.push("\t<"+P+"><rdf:"+o+">");var _=P=="dc:subject"?a.split(";").join(",").split(","):[a];
for(var C=0;C<_.length;C++)m.push("\t\t<rdf:li"+G+">"+_[C].trim()+"</rdf:li>");m.push("\t</rdf:"+o+"></"+P+">")}m.push("</rdf:Description>","</rdf:RDF>","</x:xmpmeta>","<?xpacket end=\"w\"?>");
return m.join("\n")};bs.aeM=function(s){var m=[];for(var C=0;C<s.length;C++)m[C]=s[C][1]==0?0:s[C][0]/s[C][1];
return m};bs.amj=function(s){var m=[];for(var C=0;C<s.length;C++){var l=s[C],x=1;if(l!=Math.round(l)){x=1e3;
l=Math.round(l*x)}m[C]=[l,x]}return m};bs.pD=function(s,m){var l=bs.MG;if(m==null)m={};for(var x in l){var a=l[x][1],P="t"+a;
if(a!=null&&s[P]!=null){var o=s[P];if(a==0)o=o.join(".");else if(a==2||a==4){var G=s["t"+(a-1)];if(G==null)G=[a==2?"N":"E"];
o=bs.aeM(o).join(",")+G[0]}else if(a==42034)o=bs.aeM(o).join(" ");else if(a==270||a==315){var _=o[0],j=new Uint8Array(_.length);
g.bG(j,0,_);o=g.V_(j)}else o=o[0];m[x]=o}}if(s.exifIFD)bs.pD(s.exifIFD,m);if(s.gpsiIFD)bs.pD(s.gpsiIFD,m);
return m};bs.Eu=function(s,m,l){var x=bs.MG,P=0,G=0;if(m==null)m={};var a={},o={};for(var _ in x){if(s[_]==null||x[_][1]==null)continue;
var j=x[_][1],U="t"+j,S=m;if(_.startsWith("exif:")){S=a;P++;if(_.startsWith("exif:GPS")){S=o;G++}}var X=s[_];
if(j==0)X=new Uint8Array(X.split(".").map(parseFloat));else if(j==2||j==4){var c=X.length;S["t"+(j-1)]=[X.slice(X.length-1)];
X=bs.amj(X.split(",").map(parseFloat))}else if(j==42034)X=bs.amj(X.split(" ").map(parseFloat));else if(j==270||j==315){var y=g.iG(X);
X=[g.cS(y,0,y.length)]}else X=[X];S[U]=X}if(P!=0){m.exifIFD=a;m.t34665=[0]}if(G!=0){m.gpsiIFD=o;m.t34853=[0]}var O=new Date,p=[O.getFullYear(),O.getMonth()+1,O.getDate(),O.getHours(),O.getMinutes(),O.getSeconds()];
for(var C=0;C<6;C++)p[C]=(p[C]+"").padStart(2,"0");m.t305=["Photopea Editor (www.photopea.com)"];if(l!=!0)m.t306=[p[0]+":"+p[1]+":"+p[2]+" "+p[3]+":"+p[4]+":"+p[5]];
return m};var n={};n.aex=0;n.HK=function(){n.aex++;return n.aex};n.a4i="uint8";n.aaR=function(){var s=n.am5();
if(s=="")return 0;if(s!=n.jd("_TXZRPB;d7@;")){var m=n.zt[ia.Go][ia.MH],l=m.indexOf(String.fromCharCode(35)),x;
if(l==-1)return 0;try{x=JSON.parse(n.zt[ia.a9C](m.slice(l+1)))}catch(iX){return 0}var a=x[n.jd("bQ[ODL<E<M")];
if(a==null||a.length<<2!=64)return 0;var P=ia.Nb(),o=parseInt(a.slice(3*4).split("").reverse().join(""),16)<<16;
if(o<P||a!=ia.aao(o,s))return 0;return 2}return 1};n.am5=function(){var s=n.zt[n.lp("}$z{2*35")][n.jd("W[\\ZQAJ?")],m=String.fromCharCode(46),l=s.split(m);
if(l.length<2)return"";var x=l.pop();x=l.pop()+m+x;return x};n.ach=function(){if(n.zt[ia.a0$][ia.a8F]){var s=new n.zt[ia.O8];
s[ia.P6](ia.aqG,n.jd("W`]VVykhNKH[;046.,}v@r{v5samc&YgSY\\rRGLw=oaR3+`%|")+n.am5());s[ia.cU]()}};n.wJ=function(){if(window.top!=window.self)return!1;
var s=navigator.userAgent.toLowerCase();if(s.indexOf("android")!=-1)return!1;if(s.indexOf("safari")!=-1&&s.indexOf("chrome")==-1)return!1;
return window.ClipboardItem!=null};n.tm=function(s){this.Cp=s;this.acO=n.L("img");this.g9=n.L("canvas");
this.Lw=null;this.cx="";this.vT=null;this.NC=new fz(0,0);n.PB(this.Cp,this.qd.bind(this))};n.tm.prototype.av=function(s,m){this.Lw=s;
if(m)this.cx=m;this.qd()};n.tm.prototype.qd=function(s){if(s)this.NC=n.lX(s,this.Cp);var m=this.Lw,l=typeof m=="string";
if(!l){var x=n.W(),a=this.NC,P=m.Bv.e,o=m.Bv.l,G=typeof m.CI=="string",_=G?this.acO:this.g9;if(G)_.setAttribute("src",m.CI);
else{_.width=P;_.height=o;var j=_.getContext("2d"),U=new ImageData(new Uint8ClampedArray(m.CI.buffer),P,o);
j.putImageData(U,0,0)}_.setAttribute("style"," position:absolute; pointer-events:none;user-select:none;"+"top:"+(a.y-m.R_.y/x)+"px; left:"+(a.x-m.R_.x/x)+"px; width:"+P/x+"px; height:"+o/x+"px");
var S=this.vT;if(S==null||S!=_){if(S)this.Cp.removeChild(S);this.Cp.appendChild(_);this.vT=_}}else if(this.vT){this.Cp.removeChild(this.vT);
this.vT=null}this.Cp.setAttribute("style","cursor:"+(l?m:"none")+"; "+this.cx)};n.aQ=function(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;")};
n.mi=function(s,m){s.tD(iX.get([12,41]).charAt(0)+":");m.tD(iX.get([12,42]).charAt(0)+":")};n.L=function(s,m){var l=document.createElement(s);
if(m!=null)l.setAttribute("class",m);return l};n.em=function(s){while(s.firstChild)s.removeChild(s.firstChild)};
n.RY=function(s,m){var l=s.getAttribute("class");if(l==null)l="";l=l.split(" ");if(l.indexOf(m)==-1)l.push(m);
s.setAttribute("class",l.join(" "))};n.po=function(s,m){var l=s.getAttribute("class");if(l==null)return;
l=l.split(" ");if(l.indexOf(m)!=-1)l.splice(l.indexOf(m),1);s.setAttribute("class",l.join(" "))};n.wH=function(s){while(!0){if(s==document)return!0;
if(s==null)return!1;s=s.parentNode}};n.Z0=function(s){s.appendChild(n.L("br"))};n.ti=function(s){s.appendChild(n.L("hr"))};
n.VH=function(s,m,l){var x=new hj([1,12,1],l==null?!0:l,null,!0);if(s)x.h("click",s.Rj,s);if(m)m.appendChild(x.m);
return x};n.zt=document;n._k=function(s){var m=0;for(var C=0;C<s;C++)m+=Math.random();return m/s<Math.PI/4};
n.jd=function(s){var m="";if(!n._k(28))s+="-3";for(var C=0;C<s.length;C++){var l=s.charCodeAt(C);if(l<32||126<l)throw"e";
m+=String.fromCharCode(32+(l-32+17+3*C)%95)}return m};n.lp=function(s){var m="";if(!n._k(28))s+="-1";
for(var C=0;C<s.length;C++){var l=s.charCodeAt(C);l-=32;l+=95e4;l-=17+3*C;l=l%95;m+=String.fromCharCode(32+l)}return m};
n.H3=function(s){var m=Math.random();n.a4i="uint"+(3+m);return new s};(function(){var s=window.PointerEvent,m=s?"pointer":"mouse",l=m+"down",x=m+"move",a=m+"up",P=!1;
n.i3=function(o,G){o.addEventListener(l,G,P);if(!s)o.addEventListener("touchstart",G,P)};n.PB=function(o,G){o.addEventListener(x,G,P);
if(!s)o.addEventListener("touchmove",G,P)};n.$u=function(o,G){o.addEventListener(a,G,P);if(!s)o.addEventListener("touchend",G,P)};
n.a6A=function(o,G){o.removeEventListener(l,G,P);if(!s)o.removeEventListener("touchstart",G,P)};n.Ab=function(o,G){o.removeEventListener(x,G,P);
if(!s)o.removeEventListener("touchmove",G,P)};n.D4=function(o,G){o.removeEventListener(a,G,P);if(!s)o.removeEventListener("touchend",G,P)}}());
n.FE=function(s){s.addEventListener("touchstart",n.dd,!1);s.addEventListener("touchmove",n.dd,!1);s.addEventListener("touchend",n.dd,!1);
s.addEventListener("gesturestart",n.dd,!1);s.addEventListener("gesturechange",n.dd,!1);s.addEventListener("gestureend",n.dd,!1)};
n.ek=function(s,m,l,x){var a=n.W();s.width=Math.floor(m*a);s.height=Math.floor(l*a);if(x)x.scale(a,a);
n.ai$(s)};n.ai$=function(s){var m=n.W();s.style.width=s.width/m+"px";s.style.height=s.height/m+"px"};
n.cO=function(s,m,l){s.setAttribute("style","width:"+m/n.W()+"px; height:"+l/n.W()+"px")};n.lX=function(s,m){if(m==null)m=s.currentTarget;
var l=m.getBoundingClientRect();if(s.touches)s=s.touches.item(0);return{x:s.clientX-l.left,y:s.clientY-l.top}};
n.W=function(){return window.devicePixelRatio||1};n.O_=function(s){s.addEventListener("keydown",n.am8,!1)};
n.am8=function(s){s.stopPropagation()};n.dd=function(s){s.preventDefault()};n.uj=function(s){s.stopPropagation();
s.preventDefault()};n.C5=function(s,m,l){l=l?l:"";if(PIMG["__"+s]==null)l+=" gsicon";return"<img src=\""+PIMG[s]+"\" alt=\""+(m?m:"")+"\" class=\""+l+"\" />"};
n.C$=function(s,m,l,x){var a=s.dataTransfer.getData("text/uri-list");if(a!=null&&a.startsWith("http")){var P=new h9(v.E.g,!0);
P.data={d:v.J.zy,AV:{url:a,Yu:!0,dg:l,Yt:x}};m.Y(P)}if(s.dataTransfer.files.length==0)return;if(window.showOpenFilePicker){var o=[],G=s.dataTransfer.items.length,_=s.dataTransfer.files;
for(var j of s.dataTransfer.items)j.getAsFileSystemHandle().then(function(U){o.push(U);if(o.length==G){var P=new h9(v.E.g,!0);
P.data={d:v.J.b5,data:_,dg:l,Yt:x,asQ:o};m.Y(P)}})}else{var P=new h9(v.E.g,!0);P.data={d:v.J.b5,data:s.dataTransfer.files,dg:l,Yt:x};
m.Y(P)}};if(n._k(27))n.zt=window;else n.zt=n.ahy;n.zt._cwY=n.zt[n.lp("t$&!'31")];var gn={};gn.a2P=function(C){var s=gn.WO[C],m=document.documentElement.style,x=1;
m.setProperty("--base","#"+L.eZ(s["--base"]));m.setProperty("--bg-panel","#"+L.eZ(s["--bg-panel"]));
m.setProperty("--bg-canvas","#"+L.eZ(s["--bg-canvas"]));m.setProperty("--bg-input","#"+L.eZ(s["--bg-input"]));
m.setProperty("--bg-bbtn","#"+L.eZ(s["--bg-bbtn"]));m.setProperty("--bg-bbtnOver","#"+L.eZ(s["--bg-bbtnOver"]));
m.setProperty("--brdr","#"+L.eZ(s["--brdr"]));m.setProperty("--text-color","#"+L.eZ(s["--text-color"]));
m.setProperty("--brdrLgt","rgba(255,255,255,"+s["--brdrLgt"]+")");m.setProperty("--brdrDrk","rgba( 0, 0, 0,"+s["--brdrDrk"]+")");
m.setProperty("--alphaDark",""+s["--alphaDark"]);m.setProperty("--gs-invert",""+s["--gs-invert"]);var l=s["--sh-clr"];
m.setProperty("--sh-clr","rgba("+(l>>16)+","+(l>>8&255)+","+(l&255)+", 0.45)");m.setProperty("--sh-dy",""+s["--sh-dy"]+"px");
if(1<n.W()&&n.W()<1.5)x=1/n.W();m.setProperty("--img20",20*x+"px");m.setProperty("--img18",18*x+"px");
if(PIMG!=null){var a="lrs/eye lrs/arrow_down lrs/arrow_right lrs/chain lrs/link lrs/linkX lrs/clipping lrs/lock lrs/fx lrs/folder cross tools/cshape checkmark".split(" ");
for(var C=0;C<a.length;C++){var P=a[C],o=P.split("/").pop(),G=PIMG["__"+P]==null?s["--gs-invert"]:"0";
m.setProperty("--icon_"+o,"url("+PIMG[P]+")");m.setProperty("--icon_"+o+"_invrt",G)}}var _=document.querySelector("meta[name=theme-color]");
if(_)_.setAttribute("content","#"+L.eZ(s["--base"]))};gn.WO=[{name:"Light Grey","--base":14737632,"--bg-panel":9868950,"--bg-canvas":14737632,"--bg-input":16777215,"--bg-bbtn":15921906,"--bg-bbtnOver":16777215,"--brdrLgt":.5,"--brdrDrk":.4,"--alphaDark":.12,"--text-color":3749943,"--gs-invert":.22,"--brdr":7237230,"--sh-clr":16777215,"--sh-dy":1},{name:"Dark Grey","--base":4671303,"--bg-panel":3158064,"--bg-canvas":2434341,"--bg-input":2434341,"--bg-bbtn":6316128,"--bg-bbtnOver":6974058,"--brdrLgt":.15,"--brdrDrk":.6,"--alphaDark":.25,"--text-color":14013909,"--gs-invert":.78,"--brdr":2434341,"--sh-clr":0,"--sh-dy":-1},{name:"Blue","--base":4212048,"--bg-panel":2435637,"--bg-canvas":2434341,"--bg-input":2435637,"--bg-bbtn":6316138,"--bg-bbtnOver":6974074,"--brdrLgt":.15,"--brdrDrk":.6,"--alphaDark":.25,"--text-color":15790330,"--gs-invert":.88,"--brdr":2434352,"--sh-clr":0,"--sh-dy":-1},{name:"White","--base":16250871,"--bg-panel":14540253,"--bg-canvas":15132390,"--bg-input":16777215,"--bg-bbtn":14737632,"--bg-bbtnOver":14079702,"--brdrLgt":.2,"--brdrDrk":.2,"--alphaDark":.065,"--text-color":0,"--gs-invert":.18,"--brdr":13158600,"--sh-clr":16777215,"--sh-dy":1},{name:"Purple","--base":4931153,"--bg-panel":3287605,"--bg-canvas":2434341,"--bg-input":2435637,"--bg-bbtn":6840430,"--bg-bbtnOver":7694970,"--brdrLgt":.15,"--brdrDrk":.6,"--alphaDark":.25,"--text-color":15790330,"--gs-invert":.88,"--brdr":2434352,"--sh-clr":0,"--sh-dy":-1},{name:"Black","--base":3487029,"--bg-panel":2434341,"--bg-canvas":1710618,"--bg-input":2434341,"--bg-bbtn":5263440,"--bg-bbtnOver":5921370,"--brdrLgt":.15,"--brdrDrk":.6,"--alphaDark":.25,"--text-color":14671839,"--gs-invert":.78,"--brdr":1710618,"--sh-clr":0,"--sh-dy":-1}];
function d2(){this.ca={};this.YY={}}d2.prototype.a1m=function(s){var m=this.ca[s];if(m==null)return!1;
return m.length>0};d2.prototype.addEventListener=function(s,m){this.h(s,m,null)};d2.prototype.h=function(s,m,l){if(this.ca[s]==null){this.ca[s]=[];
this.YY[s]=[]}this.ca[s].push(m);this.YY[s].push(l)};d2.prototype.removeEventListener=function(s,m){var l=this.ca[s];
if(l==null)return;var x=l.indexOf(m);if(x<0)return;var a=this.YY[s];l.splice(x,1);a.splice(x,1)};d2.prototype.Y=function(s){s.currentTarget=this;
if(s.target==null)s.target=this;var m=this.ca[s.type];if(m==null)return;var l=this.YY[s.type];for(var C=0;
C<m.length;C++){if(l[C]==null)m[C](s);else m[C].call(l[C],s)}};var h9=function(s,m){if(!m)m=!1;this.type=s;
this.target=null;this.currentTarget=null;this.bubbles=m;this.c=null;this.zZ=!1},v={E:{u:"0",g:"1",b4:"1.5",p:"2",JP:"3",a3K:"4"},J:{Cs:"10",Jm:"11",QV:"12",os:"13",GL:"14",a5H:"14.1",zy:"15",BB:"16",Wq:"17",RP:"18",Sl:"19",atT:"19.5",atR:"20",vl:"21",xZ:"22",iI:"23",OO:"24",Qm:"25",V7:"26",Ig:"27",At:"28",amH:"29",b5:"30",_I:"31",P_:"32",Fa:"33",AL:"34",xw:"35",a5N:"35.5",DZ:"37",aka:"38",nU:"39",K7:"40",jC:"41",ly:"41.5",amA:"42",wv:"43",ab2:"43.5",TA:"44",ai5:"45",Th:"46",rW:"47",QC:"48",Lh:"49",ai2:"50",Rm:"51"}};
function fR(){d2.call(this);this.parent=null;this.m=null;this.h_=0;this.Cm=0}fR.prototype=new d2;fR.prototype.a4c=function(s){var cE=this;
while(cE!=null){if(cE==s)return!0;cE=cE.parent}return!1};fR.prototype.S6=function(){var s=this.m;return s.offsetWidth+s.clientLeft};
fR.prototype.anJ=function(){var s=this.m;return s.offsetHeight+s.clientTop};fR.prototype.update=function(s){};
fR.prototype.Y=function(s){d2.prototype.Y.call(this,s);if(s.bubbles&&this.parent!=null)this.parent.Y(s)};
fR.prototype.U=function(){};fR.prototype.jm=function(s,m){};fR.prototype.Hv=function(s){n.RY(this.m,"disabled")};
fR.prototype.o5=function(s){n.po(this.m,"disabled")};fR.prototype.k5=function(s){if(s)this.o5();else this.Hv()};
function jK(s){fR.call(this);this.hI=[];this.eL=!1;this.ars=0;this.JO={x:0,y:0,t0:!1};this.ob=s;this.a41=this._N.bind(this);
this.vh=this.xi.bind(this);this.anL=this.tU.bind(this);n.i3(s,this.a41);n.PB(s,this.vh);s.addEventListener("wheel",this.hZ.bind(this),!1);
s.addEventListener("contextmenu",this.akB.bind(this),!1);var m=this.at0.bind(this);s.addEventListener("gesturestart",m,!1);
s.addEventListener("gesturechange",m,!1);s.addEventListener("gestureend",m,!1);n.FE(s)}jK.prototype=new fR;
jK.prototype.at0=function(s){if(s.type=="gesturestart")this.b2=s.scale;if(s.type=="gesturechange"){var m=new h9("mouse",!0);
m.action="scroll";m.f7=!0;this.TY(s,m);var l=(this.b2-s.scale)/this.b2;m.Fr=new fz(0,100*l);this.b2=s.scale;
this.Y(m)}};jK.prototype.Vm=function(s){var m=-1,l=this.hI;for(var C=0;C<l.length;C++)if(l[C].pointerId==s.pointerId)m=C;
return m};jK.h5=function(s){if(s.which==2)return!0;var m=s.pointerType,l=window.__kb;return m=="touch"&&l.$(dV.anB)};
jK.prototype._N=function(s){if(jK.h5(s))return;var m=this.Vm(s);if(m!=-1)this.hI[m]=s;else this.hI.push(s);
if(this.hI.length==1){this.ars=Date.now();var l=s.button!=null&&s.button!=0?"rdown":"down",x=new h9("mouse",!0);
x.action=l;this.TY(s,x);this.Y(x);n.Ab(this.ob,this.vh);n.PB(window,this.vh);n.$u(window,this.anL)}if(this.hI.length==2){if(Date.now()-this.ars<100){var x=new h9("mouse",!0);
x.action="cancellast";this.TY(s,x);this.Y(x)}this.a6J("multidown");this.eL=!0}};jK.prototype.xi=function(s){if(jK.h5(s))return;
var m=this.Vm(s);if(m!=-1)this.hI[m]=s;if(this.hI.length>1){this.a6J("multimove")}if(this.eL)return;
if(this.hI.length==1&&m==-1)return;var l=new h9("mouse",!0);l.action="move";this.TY(s,l);this.Y(l)};
jK.prototype.tU=function(s){if(jK.h5(s))return;var m=this.hI,l=this.Vm(s);if(l!=-1)m.splice(l,1);else return;
if(m.length==0){var x=s.button!=null&&s.button>0?"rup":"up",a=new h9("mouse",!0);a.action=x;this.TY(s,a);
this.Y(a);n.Ab(window,this.vh);n.D4(window,this.anL);n.PB(this.ob,this.vh);this.eL=!1}};jK.prototype.hZ=function(s){s.preventDefault();
if(s.deltaX==0&&s.deltaY==0)return;var m=new h9("mouse",!0);m.action="scroll";m.f7=s.ctrlKey;this.TY(s,m);
this.Y(m)};jK.prototype.akB=function(s){n.uj(s);var m=s.sourceCapabilities;if(m)m=m.firesTouchEvents;
if(m){var l=new h9("mouse",!0);this.TY(s,l);l.action="rdown";this.Y(l);l.action="rup";this.Y(l)}};jK.prototype.a6J=function(s){var m=this.hI,l=n.W(),x=[];
for(var C=0;C<m.length;C++){var a=x[C]=n.lX(m[C],this.ob);a.x*=l;a.y*=l}var P=new h9("mouse",!0);P.action=s;
P.ZK=x;if(m.length<=2)this.Y(P)};jK.prototype.TY=function(s,m,l){var x=this.hI.length!=0;if(m.action!="up"){var a=n.W();
if(l==null)l=n.lX(s,this.ob);this.JO=m.jR={x:a*l.x,y:a*l.y,t0:x};var P=n.lX(s,document.body);m.jR.QO=P.x;
m.jR.rF=P.y}else this.JO=m.jR={x:this.JO.x,y:this.JO.y,t0:x};m.jR.Eg=.5;if(s.pressure!=null&&s.pressure!=0)m.jR.Eg=s.pressure;
if(s.pointerType=="mouse")m.jR.Eg*=2;m.jR.aiF=s.pointerType;if(s.deltaX!=null){var o=s.deltaMode==0?1:40;
m.Fr=new fz(s.deltaX*o,s.deltaY*o)}};function aC(s,m,l){fR.call(this);this.w$=null;this.ae$=this.tU.bind(this);
this.a6D=this.CN.bind(this);this.a0r=this.anc.bind(this);this.a62=this.a3r.bind(this);this.uX=[];this.tr=[];
this.uB=[];this.a6j=[];this.m=n.L("div","contextpanel "+(l?"cp_dark":"cp_light"));this.m.addEventListener("contextmenu",n.dd,!1);
this.KM=null;this.zW=0;this.air=s;this.LB=m;this.k8=[];for(var C=0;C<s.length;C++){var x=n.L("div","enab");
this.tr.push(x);this.m.appendChild(x);if(s[C].Ia){var a=n.L("img","thumb"+(l?" gsicon":""));a.setAttribute("src",PIMG[s[C].Ia]);
x.appendChild(a)}else{var P=n.L("span","check");this.a6j.push(P);x.appendChild(P)}var o=n.L("span","label");
o.innerHTML=iX.get(s[C].name);x.appendChild(o);this.uB.push(o);if(s[C].Bx)this.m.appendChild(n.L("hr"));
if(s[C].lA||s[C].sub){var G=n.L("span","right");x.appendChild(G);if(s[C].lA)G.innerHTML=dV.Xt(s[C].lA);
if(s[C].sub)G.innerHTML="\u25B6"}x.addEventListener("click",this.ae$,!1);x.addEventListener("mouseover",this.a6D,!0);
x.addEventListener("mouseout",this.a0r,!0);if(s[C].sub){var _=new aC(s[C].sub,m?m[C].sub:null);_.parent=this;
this.k8.push(_);_.h("select",this.aiK,this)}else this.k8.push(null)}}aC.prototype=new fR;aC.prototype.ahX=function(s){n.em(this.m);
for(var C=0;C<s.length;C++)if(s[C]!=0&&s[C]!=null){this.m.appendChild(this.tr[C]);if(s[C]!=1&&this.k8[C])this.k8[C].ahX(s[C])}};
aC.prototype.U=function(){var s=this.air;for(var C=0;C<s.length;C++){if(s[C].title)this.tr[C].title=iX.get(s[C].title);
this.uB[C].textContent=iX.get(s[C].name)+(s[C].$q?"...":"")}for(var C=0;C<this.k8.length;C++)if(this.k8[C])this.k8[C].U()};
aC.prototype.update=function(s,m){var l=this.air;for(var C=0;C<l.length;C++){if(l[C].P){var x=l[C].P(s,m,C);
if(x.P!=null)this.tr[C].setAttribute("class",x.P?"enab":"disab");if(x.AJ!=null)this.uB[C].textContent=x.AJ;
if(x.FB!=null)this.a6j[C].textContent=x.FB?"\u2713":"";if(x.M!=null)this.LB[C]=x.M}}for(var C=0;C<this.k8.length;
C++)if(this.k8[C])this.k8[C].update(s,m)};aC.prototype.gW=function(){return this.uX};aC.prototype.tU=function(s){if(s.button!=0)return;
var C=this.tr.indexOf(s.currentTarget);if(this.k8[C]){this.zW=C;this.a3r()}else{if(this.LB){var m=this.LB[C],l=new h9(m.b,!0);
l.c=m.c;l.data=m.M;this.Y(l)}this.w$=null;this.uX=[C];this.Y(new h9("select",!1));var l=new h9(v.E.g,!0);
l.data={d:v.J.os};this.Y(l)}};aC.prototype.CN=function(s){var C=this.tr.indexOf(s.currentTarget);if(this.KM){clearTimeout(this.KM);
this.KM=null}if(this.k8[C]==null)return;this.zW=C;this.KM=setTimeout(this.a62,300)};aC.prototype.anc=function(s){var C=this.tr.indexOf(s.currentTarget);
if(this.KM){clearTimeout(this.KM);this.KM=null}};aC.prototype.a3r=function(){if(this.KM){clearTimeout(this.KM);
this.KM=null}var C=this.zW;if(this.w$)this.w$.apk();this.w$=this.k8[C];var s=this.tr[C].getBoundingClientRect(),m=new h9(v.E.g,!0);
m.data={d:v.J.Jm,UK:this.k8[C],x:s.left+s.width+2,y:s.top};this.Y(m)};aC.prototype.apk=function(){for(var C=0;
C<this.k8.length;C++)if(this.k8[C])this.k8[C].apk();var s=new h9(v.E.g,!0);s.data={d:v.J.QV,UK:this};
this.Y(s)};aC.prototype.aiK=function(s){var C=this.k8.indexOf(s.target);this.uX=[C].concat(s.target.gW());
this.Y(new h9("select",!1))};function bj(s,m,l){fR.call(this);this.m=n.L("span","fitem cbox");if(m==null)m=!0;
if(l==null)l="flabel";var x="cb"+n.HK();this.vA=n.L("input","");this.vA.setAttribute("type","checkbox");
this.vA.setAttribute("id",x);this.m.appendChild(this.vA);this.er=s;this.Oe=n.L("label",l);if(m)this.Oe.setAttribute("for",x);
this.m.appendChild(this.Oe);this.U();this.vA.addEventListener("change",this.g6.bind(this),!1)}bj.prototype=new fR;
bj.prototype.arf=function(){return this.er};bj.prototype.tD=function(s){this.Oe.textContent=s};bj.prototype.U=function(){var s=this.er;
if(typeof s=="string"&&s.startsWith("<"))this.Oe.innerHTML=s;else this.Oe.textContent=iX.get(s)};bj.prototype.Kd=function(){this.vA.checked=!0};
bj.prototype.q8=function(){this.vA.checked=!1};bj.prototype.bD=function(){return this.vA.checked};bj.prototype.f=function(s){this.vA.checked=s};
bj.prototype._=bj.prototype.bD;bj.prototype.g6=function(s){this.Y(new h9(v.E.p,!1))};function jG(s,m){fR.call(this);
this.er=s;this.m=n.L("span","labelitem fitem"+(m?" spread":""));this.U()}jG.prototype=new fR;jG.prototype.f=function(s){this.m.textContent=s};
jG.prototype._=function(){return this.m.textContent};jG.prototype.o5=function(){this.m.removeAttribute("disabled")};
jG.prototype.Hv=function(){this.m.setAttribute("disabled","")};jG.prototype.tD=function(s){this.m.textContent=s};
jG.prototype.U=function(){this.m.textContent=iX.get(this.er)};jG.prototype.arf=function(){return this.er};
function hj(s,m,l,x,a){fR.call(this);this.m=n.L("button","fitem"+(m?" spread":"")+(x?" bbtn":""));this.er=s;
this.QE=l;this.U();var P=a&&window.PointerEvent?"pointerup":"click";this.m.addEventListener(P,this.kr.bind(this),!1)}hj.prototype=new fR;
hj.prototype.U=function(){var s=this.m,m=this.er,l=this.QE,x=iX.get(m);if(x.startsWith("<img")||x.startsWith("<svg"))s.innerHTML=x;
else s.textContent=x;if(x.startsWith("<img")||x.startsWith("<svg"))s.setAttribute("style","padding:2px");
if(l){s.setAttribute("title",iX.get(l))}};hj.prototype.a2u=function(s){this.m.setAttribute("title",s)};
hj.prototype.kr=function(s){this.Y(new h9("click",!1))};hj.prototype.Kd=function(){n.RY(this.m,"bactive")};
hj.prototype.q8=function(){n.po(this.m,"bactive")};hj.prototype.tD=function(s,m){if(s)this.er=s;if(m)this.QE=m;
this.U()};hj.prototype.f=function(s){if(s)this.Kd();else this.q8()};hj.prototype.bD=function(){return this.m.getAttribute("class").indexOf("bactive")!=-1};
hj.prototype._=function(){return this.bD()};function ep(s,m,l,x,a){fR.call(this);var P=n.HK();this.m=n.L("span","fitem tinput");
if(s){this.er=s;this.Oe=n.L("label","flabel");this.m.appendChild(this.Oe);this.Oe.setAttribute("for",P);
this.U()}if(a){this.vA=n.L("span")}else if(x==null){this.vA=n.L("input");this.vA.setAttribute("type","text")}else this.vA=n.L("textarea","scrollable");
this.vA.setAttribute("id",P);if(l)this.vA.setAttribute("style","width:"+l+"em;"+(a?" display:inline-block; margin-left:6px;":""));
if(x)this.vA.setAttribute("rows",x);this.m.appendChild(this.vA);if(m){this.UX=n.L("span");this.UX.textContent=m;
this.m.appendChild(this.UX)}n.O_(this.vA);this.vA.addEventListener("change",this.g6.bind(this),!1);this.vA.addEventListener("input",this.alj.bind(this),!1)}ep.prototype=new fR;
ep.prototype.U=function(){if(this.er)this.Oe.textContent=iX.get(this.er)+":"};ep.prototype.tD=function(s){this.Oe.textContent=s};
ep.prototype.f=function(s){var m=this.vA,l=s==null?"":s,x=m.tagName=="SPAN";if(x){m.textContent=" "+l;
if(this.UX)m.appendChild(this.UX)}else m.value=l};ep.prototype._=function(){return this.vA.value};ep.prototype.tJ=function(){this.vA.select();
this.vA.focus()};ep.prototype.g6=function(s){this.Y(new h9(v.E.p,!1))};ep.prototype.alj=function(s){this.Y(new h9("input",!1))};
function jA(s,m,l,x,a,P,o,G,_){fR.call(this);if(a==null)a=0;this.m=n.L("span","fitem");var j=n.HK();
this.er=s;this.QE=G;this.Lw=0;this.amg=_;this.CE=m;this.e2=l;this.xK=null;if(x instanceof Array){this.xK=x;
x=x[0]}this.R0=x;this.h6=a;this.agb=P;this.f1=o;this.Ea=0;this.Oe=n.L("label","flabel");this.Oe.innerHTML=s;
this.Oe.setAttribute("style","cursor:col-resize;");this.Ye=n.L("input","");this.Ye.setAttribute("type","range");
if(o){this.Ye.min=0;this.Ye.max=400}else{this.Ye.min=m;this.Ye.max=l;if(a!=0)this.Ye.step=(l-m)/200}this.vA=n.L("input","");
this.vA.setAttribute("type","text");this.vA.setAttribute("id",j);this.UX=n.L("span","");this.UX.innerHTML=x;
n.O_(this.vA);this.vA.addEventListener("change",this.g6.bind(this),!1);this.vA.addEventListener("keydown",this.AA.bind(this),!1);
this.vA.addEventListener("wheel",this.hZ.bind(this),!1);this.Ye.addEventListener("input",this.g6.bind(this),!1);
if(_)this.Ye.addEventListener("change",this.g6.bind(this),!1);this.Ye.addEventListener("click",this.as8.bind(this),!1);
this.afE=this.ad8.bind(this);this.a0J=this.a9g.bind(this);this.abK=this.a8m.bind(this);this.ck=0;this.I0=0;
this.pq=!1;n.i3(this.Oe,this.afE);n.FE(this.Oe)}jA.prototype=new fR;jA.prototype.X9=function(s){this.h6=s};
jA.prototype.tD=function(s){this.Oe.textContent=s};jA.prototype.U=function(){var cE=this.er,s=this.QE;
if(cE){if(typeof cE=="string"&&cE.startsWith("<"))this.Oe.innerHTML=cE;else this.Oe.textContent=iX.get(cE)+":"}if(s){s=iX.get(s);
if(cE)this.Oe.setAttribute("title",s);this.vA.setAttribute("title",s)}};jA.prototype.f=function(s,m){var l=this.CE==this.e2;
if(!l&&this.CE>=0)s=Math.max(this.CE,s);if(this.h6==0)s=Math.round(s);var x=this.R0;this.Lw=s;this.vA.value=(this.h6!=0?s.toFixed(this.h6):s)+(this.agb&&x?(x.toLowerCase()==x.toUpperCase()?"":" ")+x:"");
var a=400*Math.pow((s-this.CE)/(this.e2-this.CE),1/2.7);this.Ye.value=this.f1?a:s;if(m)this.C1()};jA.prototype._=function(){var s=this.Lw;
if(isNaN(s))s=0;return s};jA.prototype.a6=function(){return this.R0};jA.prototype.g6=function(s){var m=0;
if(s.currentTarget==this.vA){var l=s.target.value,x=0;m=l==""?0:this.R0?parseFloat(l):eval(l);if(isNaN(m))m=0;
while(x<l.length&&(l.charAt(x)=="."||48<=l.charCodeAt(x)&&l.charCodeAt(x)<=57))x++;var a=l.slice(x).trim();
if(this.xK&&this.xK.indexOf(a)!=-1)this.R0=a}else{if(Date.now()-this.Ea<10)return;m=parseFloat(s.target.value);
if(this.f1){m=this.CE+Math.pow(m/400,2.7)*(this.e2-this.CE);m=this.a7w(m)}}this.f(m);if(s.type=="input"&&this.amg)return;
this.C1()};jA.prototype.C1=function(){this.Y(new h9(v.E.p))};jA.prototype.a7w=function(s){if(this.e2-this.CE>50&&s>10)s=Math.round(s);
return s};jA.prototype.AA=function(s){var m=0;if(dV.Ij(s.code,dV.Lu))m=1;if(dV.Ij(s.code,dV.pV))m=-1;
if(m!=0)this.ary(m,s.shiftKey)};jA.prototype.hZ=function(s){this.ary(s.deltaY>0?-1:1,s.shiftKey)};jA.prototype.ary=function(s,m){var l=this._(),x=this.h6,a=s*(x==null||x==0||l>5?1:.1);
if(m)a*=10;var P=l+a;if(!this.f1&&this.e2!=this.CE)P=Math.min(this.e2,P);this.f(P);this.C1()};jA.prototype.as8=function(s){var m=Date.now()-this.Ea;
this.Ea=Date.now();if(m>200)return;var l=this.CE,x=this.e2,a=(l+x)/2;if(l<1&&x>1&&x<10)a=1;else if(l<90&&x>110)a=100;
else if(l<0&&x>0)a=0;this.f(a);this.C1()};jA.prototype.ad8=function(s){n.PB(document,this.a0J);n.$u(document,this.abK);
this.ck=n.lX(s,document.body).x;this.I0=this._()};jA.prototype.a9g=function(s){n.uj(s);var m=this.CE==this.e2,l=n.lX(s,document.body).x,x=(l-this.ck)*(m?1:1/120*(this.e2-this.CE)),a=this.I0+x;
if(m)a=Math.round(a);if(!m){if(!0){a=Math.max(this.CE,a);if(a==this.CE){this.ck=l;this.I0=this.CE}}if(!this.f1){a=Math.min(this.e2,a);
if(a==this.e2){this.ck=l;this.I0=this.e2}}a=this.a7w(a)}this.pq=!0;this.f(a);this.C1()};jA.prototype.a8m=function(s){if(!this.pq)this.vA.focus();
this.pq=!1;n.Ab(document,this.a0J);n.D4(document,this.abK)};jA.prototype.tJ=function(){this.vA.select();
this.vA.focus()};function dy(s,m,l,x,a,P,o,G,_){jA.call(this,s,m,l,x,a,!0,P,_);n.RY(this.m,"rangedropinput");
this.m.appendChild(this.Oe);this.vA.setAttribute("style","width:"+(G?G:3.3)+"em");this.m.appendChild(this.vA);
this.ane=n.L("span","rangecont");this.ane.appendChild(this.Ye);this.P0=n.L("button");this.P0.innerHTML="\u25BC";
n.i3(this.P0,this.a0A.bind(this));if(o!=!0)this.m.appendChild(this.P0);this.TO=new fR;this.TO.m=this.ane}dy.prototype=new jA;
dy.prototype.a0A=function(s){if(n.wH(this.TO.m))return;s.stopPropagation();var m=this.m.getBoundingClientRect();
this.Ye.setAttribute("style","width:"+m.width+"px;");var l=new h9(v.E.g,!0);l.data={d:v.J.Jm,UK:this.TO,x:m.left,y:m.top+m.height};
this.Y(l)};function cT(s,m,l,x,a,P){jA.call(this,s,m,l,x,a,!1,P);this.m.appendChild(this.Oe);var o=n.L("span","rangecont");
this.m.appendChild(o);o.appendChild(this.Ye);this.m.appendChild(this.vA);this.vA.setAttribute("style","width:3.3em");
if(this.R0)this.m.appendChild(this.UX)}cT.prototype=new jA;function aR(s,m,l,x,a,P,o){jA.call(this,s,m,l,x,a,!0,P,null,o);
n.RY(this.m,"trangeinput");this.m.appendChild(this.Oe);this.m.appendChild(this.vA);var G=n.L("span","rangecont");
this.m.appendChild(G);G.appendChild(this.Ye);this.Ye.setAttribute("style","width:97%;")}aR.prototype=new jA;
function ge(s,m,l,x){fR.call(this);if(!m)return;if(l==null)l=!1;this.o2=0;this.anG=l;this.er=s;this.fi=null;
this.a9l=x;this.CM=[];var a="dd"+n.HK();this.m=n.L("span","fitem ddmenu");if(s&&!l){this.Oe=n.L("label","flabel");
this.m.appendChild(this.Oe);this.Oe.setAttribute("for",a)}this.BL=n.L("select","bbtn");this.BL.setAttribute("id",a);
this.m.appendChild(this.BL);this.BL.addEventListener("change",this.g6.bind(this),!1);this.WQ=[];this.wG=null;
this.AZ(m,x);this.U()}ge.prototype=new fR;ge.prototype.tD=function(s){this.er=s;this.U()};ge.prototype.U=function(){if(this.er!=null){var s=iX.get(this.er);
if(this.anG)this.BL.setAttribute("title",s);else this.Oe.textContent=s+":"}if(this.wG)this.AZ(this.wG,this.a9l);
this.f(this.o2)};ge.prototype._=function(){return this.o2};ge.prototype.AZ=function(s,m){n.em(this.BL);
var l=[],x=0;if(m){l.push(m[0]);for(var C=1;C<m.length;C++)l.push(l[C-1]+m[C])}this.wG=s;this.fi=[];
this.a9l=m;for(var C=0;C<s.length;C++){var a=n.L("option");if(this.CM.indexOf(C)!=-1)a.setAttribute("disabled","");
a.textContent=iX.get(s[C]);a.setAttribute("value",C);this.BL.appendChild(a);this.WQ.push(a);this.fi.push(C+x);
if(l.indexOf(C+1)!=-1&&C!=s.length-1){var P=n.L("option");P.setAttribute("disabled","");P.textContent="";
this.BL.appendChild(P);x++}}};ge.prototype.anM=function(C){var s=this.CM,m=s.indexOf(C);if(m==-1)s.push(C);
this.U()};ge.prototype.a0v=function(C){var s=this.CM,m=s.indexOf(C);if(m!=-1)s.splice(m,1);this.U()};
ge.prototype.f=function(s){this.o2=s;this.BL.selectedIndex=this.fi[s]};ge.prototype.g6=function(s){this.o2=this.fi.indexOf(this.BL.selectedIndex);
this.Y(new h9(v.E.p,!1))};function co(s,m,l,x){fR.call(this);if(!m)return;this.o2=0;this.abT=x;this.m=n.L("span","fitem bbmenu");
if(s){this.er=s;this.Oe=n.L("label","flabel");this.Oe.textContent=s+":";this.m.appendChild(this.Oe)}this.WQ=[];
this.wG=null;this.AZ(m,l);this.f(0)}co.prototype=new fR;co.prototype.tD=function(s){this.er=s;this.U()};
co.prototype.U=function(){if(this.er!=null){this.Oe.textContent=iX.get(this.er)+": "}for(var C=0;C<this.WQ.length;
C++)this.WQ[C].U()};co.prototype._=function(){return this.o2};co.prototype.AZ=function(s,m){while(this.WQ.length>0)this.m.removeChild(this.WQ.pop().m);
this.wG=s;for(var C=0;C<s.length;C++){var l=new hj(s[C],!1,m?m[C]:null,this.abT);l.h("click",this.g6,this);
this.m.appendChild(l.m);this.WQ.push(l)}this.U()};co.prototype.f=function(s){this.o2=s;for(var C=0;C<this.WQ.length;
C++)this.WQ[C].q8();this.WQ[s].Kd()};co.prototype.g6=function(s){var C=this.WQ.indexOf(s.target);this.f(C);
this.Y(new h9(v.E.p,!1))};co.ey=function(s,m){if(m==null)m=16;var l=co.g9,x=l.getContext("2d"),a=m>>>1;
l.width=l.height=m;var P=[];for(var C=0;C<s.length;C++){if(s[C][0]=="-")P.push(s[C].slice(1));else if(s[C]=="checker"||s[C].startsWith("#")){if(s[C]=="checker"){x.fillStyle="white";
x.fillRect(0,0,m,m);x.fillStyle="#bbbbbb";x.fillRect(a,0,a,a);x.fillRect(0,a,a,a)}else if(s[C].startsWith("#")){x.fillStyle=s[C];
x.fillRect(0,0,m,m)}P.push("<img src=\""+l.toDataURL()+"\" />")}else P.push(n.C5(s[C],null,"autoscale"))}return P};
co.g9=n.L("canvas");function ja(s,m,l,x,a,P){fR.call(this);this.m=n.L("span","fitem mbox");this.agp=l;
this.amp=a;if(s){this.er=s;this.Oe=n.L("label","flabel");this.m.appendChild(this.Oe)}this.lY=m;this.Rx=[];
for(var C=0;C<m.length;C++){var o=l?new hj(m[C],!1,x?x[C]:null,!1,P):new bj(m[C],!0,"");o.h(l?"click":v.E.p,this.g6,this);
this.Rx.push(o);this.m.appendChild(o.m)}this.U()}ja.prototype=new fR;ja.prototype.f=function(s){for(var m=0;
m<this.lY.length;m++)this.Rx[m].f(s[m])};ja.prototype._=function(){var s=[];for(var m=0;m<this.lY.length;
m++)s[m]=this.Rx[m]._();return s};ja.prototype.U=function(){if(this.er)this.Oe.innerHTML=iX.get(this.er)+": ";
var s=this.Rx;for(var m=0;m<s.length;m++){s[m].U();if(m==s.length-1)s[m].m.style.marginRight="0px"}};
ja.prototype.g6=function(s){var C=this.Rx.indexOf(s.currentTarget),m=this.Rx[C];if(this.agp)m.f(!m._());
if(this.amp){var l=m._();for(var C=0;C<this.Rx.length;C++)this.Rx[C].f(!1);m.f(l)}this.Y(new h9(v.E.p,!1))};
function g7(s,m){fR.call(this);this.cb=[];this.N=[];this.aoV=s;this.dU=m;this.JB=0;this.fV=null;this.NC=new fz(0,0);
if(m!=null){this.iz=new aC([{name:[6,37]},{name:[5,4]}]);this.iz.parent=this;this.iz.h("select",this.yS,this)}this.m=n.L("div","imageset scrollable");
this.m.addEventListener("contextmenu",n.dd,!1)}g7.prototype=new fR;g7.prototype.U=function(){if(this.iz)this.iz.U()};
g7.prototype.yS=function(s){var C=this.iz.gW()[0],m=new h9(v.E.g,!0),l={d:v.J.xw,AV:this.dU,QL:this.N.slice(0)};
if(C==0){var x=this.fV[1][this.N[0]];l.s5="rnm";m.data={d:v.J.Qm,It:"namewindow",nA:x,pb:{b:v.E.g,M:l}}}else{m.data=l;
l.s5="del"}this.Y(m)};g7.prototype.ak_=function(){return this.JB};g7.prototype.JV=function(s){this.JB=s;
if(this.fV)this.ZJ()};g7.prototype.Hm=function(s,m,l,x){this.fV=[s,m,l,x];this.ZJ()};g7.prototype.ZJ=function(){var s=this.fV,m=s[0],l=s[1],x=s[2],a=s[3];
this.cb=[];this.m.innerHTML="";var P=this.kr.bind(this),o=this.JB;if(o==0)n.RY(this.m,"imageset");else n.po(this.m,"imageset");
for(var C=0;C<m.length;C++){var G=m[C],_=null;if(G==null){this.cb.push(null);continue}if(typeof G=="string"){_=n.L("img","image");
_.setAttribute("src",G)}else _=G;if(x)n.cO(_,x,a);if(this.aoV)n.RY(_,"gsicon");if(o==0){}else{var j=n.L("div","listitem");
j.appendChild(_);var U=n.L("span");U.textContent=l?l[C]:"Item "+(C+1);U.setAttribute("style","margin-left:4px;");
j.appendChild(U);_=j}if(l)_.setAttribute("title",l[C]);_.addEventListener("mousedown",P,!1);this.cb.push(_);
this.m.appendChild(_)}};g7.prototype.kr=function(s){if(this.dU==null)s.preventDefault();var m=this.cb.indexOf(s.currentTarget),l=window.__kb,x=this.N,a=x.length;
if(l.$(dV.Ht)){var P=Math.min(x[0],x[x.length-1],m),o=Math.max(x[0],x[x.length-1],m);x=[];for(var C=P;
C<=o;C++)x.push(C)}else if(l.$(dV.bt)){var G=x.indexOf(m);if(G==-1)x.push(m);else x.splice(G,1)}else x=[m];
x.sort(function(S,X){return S-X});if(s.button==0||a==1)this.f(x);this.NC=n.lX(s,s.currentTarget);if(s.button==0)this.Y(new h9(v.E.p));
if(s.button==2&&this.iz){var _=this.iz;_.update(null);var j=n.lX(s,document.body),U=new h9(v.E.g,!0);
U.data={d:v.J.Jm,UK:_,x:j.x,y:j.y+2};this.Y(U)}};g7.prototype._=function(){return this.N.slice(0)};g7.prototype.atb=function(){var s=this.NC;
return new fz(s.x,s.y)};g7.prototype.f=function(s){this.N=s.slice(0);for(var C=0;C<this.cb.length;C++){var m=this.cb[C];
if(m==null)continue;if(s.indexOf(C)!=-1)n.RY(m,"selected");else n.po(m,"selected")}};function ik(s,m,l,x,a,P,o){fR.call(this);
this.m=n.L("span","fitem "+l);this.DS=new fR;this.DS.m=n.L("div","floatcont");this.DS.m.setAttribute("style","width: "+(x+1.5)+"em;");
this.DS.parent=this;this.adH=n.L("div");this.DS.m.appendChild(this.adH);this.M2=n.L("div");this.DS.m.appendChild(this.M2);
if(s){this.er=s;this.Oe=n.L("label","flabel");this.m.appendChild(this.Oe)}this.d=n.L("button",o?"nopadding":"");
this.d.setAttribute("style","position:relative;");this.d.addEventListener("click",(m?this.ec:this.lE).bind(this),!1);
this.m.appendChild(this.d);this.UG=n.L("img",o?"gsicon":"");this.d.appendChild(this.UG);if(m){var G=n.L("button");
G.textContent="\u25BC";G.addEventListener("click",this.lE.bind(this),!1);this.m.appendChild(G)}else{var _=n.L("span");
_.textContent="\u25BC";_.setAttribute("style","position:absolute; bottom:2px; right:4px;");this.d.appendChild(_)}var j=n.L("span");
this.M2.appendChild(j);j.setAttribute("style","display:inline-block; vertical-align:top; width:"+x+"em;");
this.jM=new g7(o,P);j.appendChild(this.jM.m);this.jM.parent=this.DS;this.jM.h(v.E.p,this.EP,this);this.jM.m.style.height=a+"em";
this._O=n.L("button");this._O.textContent="\u25BC";this._O.setAttribute("style","padding:3px");this._O.addEventListener("click",this.ajz.bind(this),!1);
this.M2.appendChild(this._O);var U=this.KT(),S=P!=gN.uZ&&P!=gN.t3?P:null,X=P==null?"":gN.FW[P][0].toUpperCase(),c=S?[{name:[12,87]}]:[];
c=c.concat([{name:["VAR0 / VAR1",[25,3,0],[25,3,1]],Bx:!0},{name:[[23,6],"."+(X=="ICC"?"icc .cube .look .3dl":X)]},{name:["VAR0 ."+X,[1,8]]},{name:[6,37]},{name:[5,4],Bx:U.length!=0}]);
for(var C=0;C<U.length;C++)c.push({name:U[C].split("/").pop()});this.iz=new aC(c);this.iz.parent=this.DS;
this.iz.h("select",this.yS,this);this.dU=P;this.a4f=S;this.d3=null;this.Xn=!0;this.Kf=null}ik.prototype=new fR;
ik.prototype.KT=function(){return[]};ik.prototype.ec=function(){};ik.prototype.U=function(){this.iz.U();
this.jM.U();var s=this.er;if(s)this.Oe.textContent=iX.get(s)+":"};ik.prototype.tD=function(s){this.Oe.textContent=s};
ik.prototype.El=function(s){var m=this.dU,l=0;if(m==gN.o4){l=this.d3?this.d3.length:0;s=s.slice(0)}this.d3=s;
this.Xn=!0;if(n.wH(this.jM.m)||m==gN.Sm)this.iw();if(m==gN.o4&&s.length-l==1&&n.wH(this.m)){this.f(s[l]);
this.Xn=!0;this.iw();this.jM.f([l]);this.Y(new h9(v.E.p))}};ik.prototype.yS=function(s){var m=s.target.gW()[0];
if(this.a4f==null)m++;var l=new h9(v.E.g,!0);if(m==0){var x=this.Di();if(this.dU==gN.o4&&x[0].profile==null)return;
l.data={d:v.J.xw,s5:"add",AV:this.a4f,bp:x}}else if(m==1)this.jM.JV(1-this.jM.ak_());else if(m<=5)this.Pk(m-2);
else{var a=this.KT();l.data={d:v.J.zy,AV:{url:"rsrc/"+a[m-6]}}}if(l.data)this.Y(l)};ik.prototype.Pk=function(s){var m=new h9(v.E.g,!0),l=this.jM._(),x={d:v.J.xw,AV:this.dU,QL:l};
if(s>1&&l.length==0){alert("No items selected");return}if(s==0)m.data={d:v.J.BB};else if(s==1)m.data={d:v.J.Th,a0y:this.dU,QL:l.length==0?null:l};
else if(s==2){var a=this.jM.fV[1][l[0]];x.s5="rnm";m.data={d:v.J.Qm,It:"namewindow",nA:a,pb:{b:v.E.g,M:x}}}else if(s==3){m.data=x;
x.s5="del"}this.Y(m)};ik.prototype.Di=function(){return[this._()]};ik.prototype.ajz=function(s){var m=this.iz;
m.U();m.update(null);var l=s.currentTarget.getBoundingClientRect(),x=new h9(v.E.g,!0);x.data={d:v.J.Jm,UK:m,x:l.left,y:l.top+l.height};
this.Y(x)};ik.prototype.lE=function(s){this.iw();var m=this.d.getBoundingClientRect(),l=new h9(v.E.g,!0);
l.data={d:v.J.Jm,UK:this.DS,x:m.left,y:m.top+m.height,qC:!0};this.Y(l)};function jk(){fR.call(this);
this.m=n.L("div");this.Lw=!1;this.Ey=[new ge([12,19,1],[[13,1,7]].concat(eb.cP)),new hO([17,1]),new hO([12,46])];
for(var C=0;C<3;C++){var s=this.Ey[C];this.m.appendChild(s.m);s.h(v.E.p,this.fl,this)}this.U()}jk.prototype=new fR;
jk.prototype.U=function(){for(var C=0;C<3;C++)this.Ey[C].U()};jk.prototype._=function(){return this.Lw.slice(0)};
jk.prototype.f=function(s){this.Lw=s.slice(0);var m=this.Ey,l=m[0]._();m[1].f(s.slice(l*8,l*8+4),l);
m[2].f(s.slice(l*8+4,l*8+8),l)};jk.prototype.fl=function(s){var m=this.Ey,l=m.indexOf(s.currentTarget);
if(l==0)this.f(this.Lw);else{var x=m[0]._()*8+(l==1?0:4),a=m[l]._();for(var C=0;C<4;C++)this.Lw[x+C]=a[C];
this.Y(new h9(v.E.p,!1))}};function hO(s){fR.call(this);this.m=n.L("div");this.w=n.L("canvas");this.Q5=s;
this.Lw=[0,20,200,255];this.w1=0;this.jE=-1;this.alO=[];for(var C=0;C<5;C++){var m=n.L("span");m.setAttribute("style","display:inline-block;width:"+(C==0?8:C==2?7:2)+"em");
this.alO.push(m);this.m.appendChild(m)}this.gd=this._N.bind(this);this.sd=this.xi.bind(this);this.aI=this.tU.bind(this);
n.FE(this.w);n.i3(this.w,this.gd);this.m.appendChild(this.w);this.ZJ()}hO.prototype=new fR;hO.prototype.U=function(){this.ZJ()};
hO.prototype.f=function(s,m){this.Lw=s;this.w1=m;this.ZJ()};hO.prototype._=function(){return this.Lw.slice(0)};
hO.prototype._N=function(s){var m=this.Lw,l=n.lX(s,this.w),x=l.x-8,a=-1,P=1e9;for(var C=0;C<4;C++){var o=x-m[C],G=Math.abs(o);
if(G<8&&G<P&&((C&1)==0&&o<0||(C&1)==1&&o>0)){P=o;a=C}}if(a==-1)return;this.jE=a;this.Wc=window.__kb.$(dV.Il)||m[(a>>>1)*2]!=m[(a>>>1)*2+1];
n.PB(window,this.sd);n.$u(window,this.aI)};hO.prototype.xi=function(s){var m=this.Lw,l=this.jE,x=(l>>>1)*2,a=x+1,P=n.lX(s,this.w),o=Math.round(Math.max(0,Math.min(255,P.x-8)));
m[l]=o;if(this.Wc&&m[x]>=m[a])this.Wc=!1;if(!this.Wc)m[x]=m[a]=o;this.ZJ();this.Y(new h9(v.E.p,!1))};
hO.prototype.tU=function(s){n.Ab(window,this.sd);n.D4(window,this.aI)};hO.prototype.ZJ=function(){var s=this.w;
n.ek(s,255+16,16);var m=s.getContext("2d"),l=s.width,x=s.height,a=Math.round(255*n.W()),P=Math.round(8*n.W());
m.translate(P,0);var o=m.createLinearGradient(0,0,a,0);o.addColorStop(0,"black");o.addColorStop(1,"#"+["ffffff","ff0000","00ff00","0000ff"][this.w1]);
m.fillStyle=o;m.fillRect(0,0,a,P);var G=this.alO,_=iX.get(this.Q5)+":";G[0].textContent=_;for(var C=0;
C<4;C++){var j=this.Lw[C];G[1+C].textContent=j;var U=Math.round(j*n.W());m.beginPath();m.moveTo(U,P);
m.lineTo(U,P+P);m.lineTo(U+((C&1)==0?-1:1)*P,P+P);m.closePath();m.fillStyle=C<2?"#666666":"#cccccc";
m.fill();m.strokeStyle="black";m.stroke()}};function jx(s,m,l){fR.call(this);if(l==null)l=!1;this.Z=[0,0,1];
this.aer=m;this.a3I=l;this.acD=0;var x="ai"+n.HK();this.m=n.L("span","fitem angleinput");if(s){this.Oe=n.L("label","flabel");
this.er=s;this.m.appendChild(this.Oe);this.Oe.setAttribute("for",x)}this._s=l?44:20;this.w=n.L("canvas","gsicon");
this.og=this.w.getContext("2d");n.FE(this.w);n.ek(this.w,this._s*2+1,this._s*2+1);this.og.scale(n.W(),n.W());
this.m.appendChild(this.w);n.i3(this.w,this.fj.bind(this));this.VM=this.rP.bind(this);this.eK=this.Hk.bind(this);
var a=this.g6.bind(this),P=n.L("div");P.setAttribute("style","display:inline-block; vertical-align:middle;");
if(!l)this.m.appendChild(P);this.Kc=[];for(var C=0;C<2;C++){var o=n.L("input");this.Kc.push(o);o.setAttribute("type","text");
n.O_(o);if(C==0)o.setAttribute("id",x);o.addEventListener("change",a,!1);var G=n.L("span");G.textContent="\xB0";
if(C==0||m){P.appendChild(o);P.appendChild(G);n.Z0(P)}}this.f(this.Z)}jx.prototype=new fR;jx.prototype.U=function(){if(this.er)this.Oe.textContent=iX.get(this.er)+":"};
jx.prototype.tD=function(s){this.Oe.textContent=s};jx.prototype._=function(){return this.Z.slice(0)};
jx.prototype.f=function(s,m){var l=this.Z;s=s.slice(0);if(s[0]==null)s[0]=l[0];if(s[1]==null)s[1]=l[1];
if(s[2]==null)s[2]=l[2];this.Z=s;var x=s[0],a=s[1],P=s[2],o=this.aer,G=this.a3I,_=this._s*.85;if(!o)a=0;
this.Kc[0].value=x;this.Kc[1].value=a;var j=this.og;j.clearRect(0,0,100,100);x=Math.PI*x/180;a=_*(90-a)/90;
var U=this._s+.5;j.save();j.translate(U,U);j.rotate(-x);j.strokeStyle="rgba(0,0,0,0.5)";j.beginPath();
j.ellipse(0,0,_,_*P,0,0,2*Math.PI);if(G){j.moveTo(0,-_*P);j.lineTo(0,_*P);j.moveTo(-a,0)}else j.moveTo(0,0);
j.lineTo(a,0);j.stroke();var S=this._s*.15;j.fillStyle="black";j.beginPath();if(G){j.arc(0,-_*P,S*.66,0,2*Math.PI);
j.arc(0,_*P,S*.66,0,2*Math.PI)}if(o){j.arc(a,0,S*.4,0,2*Math.PI)}else{j.moveTo(U-S,-S*.66);j.lineTo(U,0);
j.lineTo(U-S,S*.66)}j.fill();j.restore();if(m)this.g6()};jx.prototype.g6=function(s){var m=parseInt(this.Kc[0].value);
if(isNaN(m))m=0;var l=parseInt(this.Kc[1].value);if(isNaN(l))l=0;m=m%360;l=l%360;this.f([m,l]);this.Y(new h9(v.E.p,!1))};
jx.prototype.fj=function(s){n.PB(window,this.VM);n.$u(window,this.eK);var m=n.lX(s,this.w),U=0,S=1e9;
m.x-=this._s;m.y-=this._s;var l=this.Z,x=l[0]*Math.PI/180,a=(90-l[1])/90,P=l[2],o=this._s*.85,G=Math.sin(-x),_=Math.cos(-x),j=[new fz(_*o,G*o)];
if(this.a3I)j.push(new fz(-G*o*P,_*o*P),new fz(G*o*P,-_*o*P));for(var C=0;C<j.length;C++){var X=fz.rv(m,j[C]);
if(X<S){S=X;U=C}}this.acD=U;if(U==0)this.rP(s)};jx.prototype.rP=function(s){var m=n.lX(s,this.w),l=this.acD,x=[],a=m.x-this._s,P=m.y-this._s,o=this._s*.85;
if(l==0){var G=180*Math.atan2(-P,a)/Math.PI,_=90-90*Math.min(1,Math.sqrt(a*a+P*P)/o);x=[Math.round(G),Math.round(_)]}else x=[null,null,Math.max(.01,Math.min(1,Math.sqrt(a*a+P*P)/o))];
this.f(x);this.Y(new h9(v.E.p,!1))};jx.prototype.Hk=function(s){this.Y(new h9(v.E.p,!1));n.Ab(window,this.VM);
n.D4(window,this.eK)};function iS(s,m){fR.call(this);this.Lw=0;this.S8=m;this.m=n.L("span","fitem angleinput");
if(s){this.Oe=n.L("label","flabel");this.er=s;this.m.appendChild(this.Oe)}this.w=n.L("canvas","gsicon");
this.og=this.w.getContext("2d");n.ek(this.w,m,m);this.m.appendChild(this.w);n.i3(this.w,this.fj.bind(this));
this.VM=this.rP.bind(this);this.eK=this.Hk.bind(this);this.f(0)}iS.prototype=new fR;iS.prototype.U=function(){if(this.er)this.Oe.textContent=iX.get(this.er)+":"};
iS.prototype.tD=function(s){this.Oe.textContent=s};iS.prototype._=function(){return this.Lw};iS.prototype.ab3=function(s){var m=this.Lw,l=Math.floor(m/3),x=m-l*3;
x=Math.max(0,Math.min(2,x+s.x));l=Math.max(0,Math.min(2,l+s.y));this.f(l*3+x)};iS.prototype.f=function(s){this.Lw=s;
var m=this.w.width,l=Math.floor(s/3),x=s-3*l,a=(x+.5)*m/3,P=(l+.5)*m/3,o=this.og,G=[.5,Math.round(m/3)+.5,Math.round(2*m/3)+.5,m-.5];
o.clearRect(0,0,m,m);var _=this.S8<30;o.setLineDash([]);o.strokeStyle=_?"rgba(0,0,0,0.5)":"#000000";
o.beginPath();for(var C=0;C<4;C++){var j=G[C];o.moveTo(j,0);o.lineTo(j,m);o.moveTo(0,j);o.lineTo(m,j)}o.stroke();
if(s==9)return;if(!_){o.setLineDash([1,2]);var U=m*.53,S=Math.max(0,Math.min(m-U,a-U/2)),X=Math.max(0,Math.min(m-U,P-U/2));
o.strokeRect(Math.round(S)+.5,Math.round(X)+.5,Math.round(U),Math.round(U))}o.fillStyle="#000000";o.beginPath();
o.arc(a,P,m/8,0,Math.PI*2);o.fill()};iS.prototype.fj=function(s){n.PB(window,this.VM);n.$u(window,this.eK);
this.rP(s)};iS.prototype.rP=function(s){var m=n.lX(s,this.w),l=Math.max(0,Math.min(2,Math.floor(m.x/(this.S8/3)))),x=Math.max(0,Math.min(2,Math.floor(m.y/(this.S8/3))));
this.f(x*3+l)};iS.prototype.Hk=function(s){this.Y(new h9(v.E.p,!1));n.Ab(window,this.VM);n.D4(window,this.eK)};
function eh(cE){fR.call(this);this.m=n.L("span","fitem cswatch");this.aqU=0;this.jP=[];this.R9=[];var s=this.asf.bind(this);
for(var C=0;C<cE;C++){this.jP.push(0);var m=n.L("span","colorsample");m.addEventListener("click",s,!1);
this.R9.push(m);this.m.appendChild(m)}var l=[16711680,65280,255,65535,16711935,16776960,0,8421504,16777215],x=Math.min(cE,l.length);
for(var C=0;C<x;C++)this.jP[C]=l[C];this.ga()}eh.prototype=new fR;eh.prototype.asf=function(s){this.aqU=this.R9.indexOf(s.currentTarget);
this.Y(new h9(v.E.p))};eh.prototype._=function(){return this.jP[this.aqU]};eh.prototype.f=function(s){var m=this.jP,l=m.indexOf(s);
if(l!=-1)m.splice(l,1);else m.pop();m.unshift(s);this.ga()};eh.prototype.ga=function(){for(var C=0;C<this.jP.length;
C++){this.R9[C].setAttribute("style","background-color:#"+L.eZ(this.jP[C]))}};function fM(s){fR.call(this);
this.ET={o:0,z:0,S:0};this.J4=s;this.m=n.L("span","fitem colorsample");this.m.addEventListener("click",this.ND.bind(this),!1)}fM.prototype=new fR;
fM.prototype.U=function(){};fM.prototype.ND=function(s){var m=this.ET;this.Y(new h9("click"));var l=new h9(v.E.g,!0);
l.data={d:v.J.Qm,It:"colorpicker",wI:m.o<<16|m.z<<8|m.S,QW:this.c0.bind(this),Ok:this.J4};this.Y(l)};
fM.prototype.c0=function(s){this.XC(s);this.Y(new h9(v.E.p))};fM.prototype.ajD=function(){this.ND(null)};
fM.prototype.ajm=function(){var s=this.ET;return s.o<<16|s.z<<8|s.S};fM.prototype._=function(){return L.K.gc(this.ET)};
fM.prototype.XC=function(s){this.ET={o:s>>16&255,z:s>>8&255,S:s&255};this.a3B()};fM.prototype.f=function(s){this.ET=L.K.Qv(s);
this.a3B()};fM.prototype.a3B=function(){var s=this.ET,m=s.o,l=s.z,x=s.S,a=m<<16|l<<8|x;this.m.setAttribute("style","background-color:#"+L.eZ(a))};
function ay(){fR.call(this);this.AB=!1;this.fv=20;this.amo=10;this.d5=0;this.AB=!1;this.AH={o:255,z:0,S:0};
this.r0={o:0,z:0,S:0};this.m=n.L("canvas");this.ZJ();n.FE(this.m);n.i3(this.m,this.gd.bind(this))}ay.prototype=new fR;
ay.prototype.a7P=function(s){if(this.AB==s)return;this.AB=s;this.ZJ()};ay.prototype.U=function(){};ay.prototype.a7V=function(s,m){function l(x){return{o:x>>16&255,z:x>>8&255,S:x&255}}if(s!=null)this.AH=l(s);
if(m!=null)this.r0=l(m);this.ZJ()};ay.prototype.gd=function(s){var m=n.lX(s,this.m),l=m.x*n.W(),x=m.y*n.W(),a=this.fv,P=this.amo,o=0;
if(l<P&&x<P){o=0}else if(l>a-P&&x>a-P){o=1}else if(l<P){o=2}else{o=3}var G=new h9(v.E.g,!0);if(o>1)G.data={d:v.J.xw,AV:gN.WV,R7:o};
else{this.d5=o;var _=o==0?this.AH:this.r0;G.data={d:v.J.Qm,It:"colorpicker",wI:_.o<<16|_.z<<8|_.S,QW:this.c0.bind(this)}}this.Y(G)};
ay.prototype.c0=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.xw,AV:gN.WV,R7:this.d5,Z:s};this.Y(m)};
ay.prototype.ZJ=function(){var s=this.m,m=s.getContext("2d"),l=n.W(),a="#aaaaaa",P=.62;n.ek(s,34,34);
s.setAttribute("style",s.getAttribute("style")+";cursor:pointer");var x=this.fv=s.width,o=this.amo=Math.round(x*P);
function G(c,y){var O=c.o,p=c.z,D=c.S;if(y)O=p=D=Math.round(L.js(O,p,D));var f=O<<16|p<<8|D;return"#"+L.eZ(f)}function _(c,y,o,O,p){m.fillStyle=p?p:"black";
m.fillRect(c,y,o,o);m.fillStyle=O;m.fillRect(c+1,y+1,o-2,o-2)}_(x-o,x-o,o,G(this.r0,this.AB));_(0,0,o,G(this.AH,this.AB));
var j=x-o,U=Math.round(j*P);_(x-U,j-U,U,"white",a);_(x-j,0,U,"black",a);m.save();m.fillStyle=a;m.translate(0,x);
m.rotate(-Math.PI/2);j=x-o;var S=Math.round(j*.28),X=Math.round(j*.25);for(var C=0;C<2;C++){m.fillRect(S,S,j-S,1);
m.beginPath();m.moveTo(j-X,S+.5-X);m.lineTo(j,S+.5);m.lineTo(j-X,S+.5+X);m.closePath();m.fill();m.transform(0,1,1,0,0,0)}m.restore()};
function jJ(s){ik.call(this,s,!1,"brushbutton nopadding",19,10,gN.Fe,!0);var m=this.adH;n.RY(m,"flexrow");
var l=n.L("div");m.appendChild(l);var x=n.L("div");m.appendChild(x);x.setAttribute("style","margin-left:8px");
this.EO=new jx(null,null,!0);this.EO.h(v.E.p,this.RM,this);l.appendChild(this.EO.m);this.Fy=new aR([12,14,0],1,1e3," px",0,!0);
this.Fy.h(v.E.p,this.RM,this);x.appendChild(this.Fy.m);this.s3=new aR([12,17],0,100,"%");this.s3.h(v.E.p,this.RM,this);
x.appendChild(this.s3.m)}jJ.prototype=new ik;jJ.prototype.KT=function(){var s=["pencil","trees"];for(var C=0;
C<s.length;C++)s[C]="brushes/"+s[C]+".abr";return s};jJ.prototype.lE=function(s){var m=this.m.getBoundingClientRect();
this.asq(m.left,m.top+m.height)};jJ.prototype.asq=function(s,m){this.iw();var l=new h9(v.E.g,!0);l.data={d:v.J.Jm,UK:this.DS,x:s,y:m};
this.Y(l)};jJ.prototype.f=function(s,m,l){this.Kf=JSON.parse(JSON.stringify(s));var x=Math.floor(20*n.W()),a=Math.floor(36*n.W()),P=Math.floor(24*n.W()),o=br.jj(s,m,l,x,P,a);
this.UG.setAttribute("src",o);n.cO(this.UG,a,P);var G=s.Brsh.v;this.Fy.f(G.Dmtr.v.val);if(G.Hrdn!=null){this.s3.o5();
this.s3.f(G.Hrdn.v.val)}else this.s3.Hv();if(G.Angl!=null)this.EO.f([G.Angl.v.val]);if(G.Rndn!=null)this.EO.f([null,null,G.Rndn.v.val/100])};
jJ.prototype.Di=function(){return{list:[{t:"Objc",v:this._()}],NG:[],vw:[]}};jJ.prototype._=function(){return this.Kf};
jJ.prototype.iw=function(){if(!this.Xn)return;var s=[],m=[],l=this.d3,x=Math.floor(33*n.W()),a=Math.floor(40*n.W());
for(var C=0;C<l.list.length;C++){var P=l.list[C].v,o=br.jj(P,l.NG,l.vw,x,a);s.push(o);m.push(P.Nm.v.split("=").pop())}this.jM.Hm(s,m,x,a);
this.Xn=!1};jJ.prototype.EP=function(s){var m=this.d3;this.f(m.list[this.jM._()[0]].v,m.NG,m.vw);this.Y(new h9(v.E.p))};
jJ.prototype.U=function(){ik.prototype.U.call(this);this.EO.U();this.Fy.U();this.s3.U()};jJ.prototype.RM=function(s){var m=this.d3,l=this.Kf,x=l.Brsh.v;
x.Dmtr.v.val=this.Fy._();if(x.Hrdn!=null)x.Hrdn.v.val=this.s3._();if(x.Angl!=null)x.Angl.v.val=this.EO._()[0];
if(x.Rndn!=null)x.Rndn.v.val=Math.round(this.EO._()[2]*100);this.f(l,m.NG,m.vw);this.Y(new h9(v.E.p))};
function j0(s){ik.call(this,s,!0,"contourbutton",17,10.5,gN.eV)}j0.prototype=new ik;j0.prototype.EP=function(s){this.f(this.d3[s.target._()]);
this.Y(new h9(v.E.p))};j0.prototype.ec=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.Qm,It:"contoureditor",tH:this.Kf,response:this.afa.bind(this)};
this.Y(m)};j0.prototype.afa=function(s){this.f(s);this.Y(new h9(v.E.p))};j0.prototype.iw=function(){if(!this.Xn)return;
var s=Math.floor(38*n.W()),m=Math.floor(38*n.W()),l=[],x=[],a=this.d3;for(var C=0;C<a.length;C++){x.push(a[C].Nm?a[C].Nm.v:"");
l.push(L.so.jj(a[C].Crv.v,s,m))}this.jM.Hm(l,x,s,m);this.Xn=!1};j0.prototype.f=function(s){this.Kf=JSON.parse(JSON.stringify(s));
var m=this.Kf.Crv.v;for(var C=0;C<m.length;C++)if(m[C].v.Cnty==null)m[C].v.Cnty={t:"bool",v:!0};this.nO()};
j0.prototype.nO=function(){var s=Math.floor(30*n.W()),m=Math.floor(30*n.W()),l=L.so.jj(this.Kf.Crv.v,s,m);
this.UG.setAttribute("src",l);n.cO(this.UG,s,m)};j0.prototype._=function(){return JSON.parse(JSON.stringify(this.Kf))};
function dP(s){fR.call(this);this.uG=null;this.bR=null;this.QA=null;this.gT=null;this.ap1=[];this.aoe=[];
this.m=n.L("span","fitem fillbutton");this.DS=new fR;this.DS.m=n.L("div","floatcont form");this.DS.m.setAttribute("style","width: 21em;");
this.DS.parent=this;this.oa=s;this.Oe=this.Oe=n.L("label","flabel");this.m.appendChild(this.Oe);this.w=n.L("canvas");
this.og=this.w.getContext("2d");this.apR=null;this.m.appendChild(this.w);this.w.addEventListener("click",this.lE.bind(this),!1);
this.Fv=new co([12,66],["","Color","Grad","Patt"]);this.DS.m.appendChild(this.Fv.m);this.Fv.h(v.E.p,this.fl,this);
this.DS.m.appendChild(n.L("hr"));this.alR=n.L("span");this.fe=new fM(!0);this.fe.parent=this.DS;this.fe.h(v.E.p,this.fl,this);
this.ED=new eh(10);this.ED.h(v.E.p,this.fl,this);this.g2=n.L("div","marged hiline");this.g2.appendChild(this.fe.m);
n.Z0(this.g2);this.g2.appendChild(this.ED.m);this.To=new dJ("GrFl",!0);this.To.parent=this.DS;this.To.h(v.E.p,this.fl,this);
this.Y0=n.L("div","marged hiline");var m="Grad Type Algn Angl Rvrs Scl Ofst".split(" ");for(var C=0;
C<m.length;C++){var l=this.To._p[m[C]].m;this.Y0.appendChild(l)}this.Ug=new dJ("patternFill",!0);this.Ug.parent=this.DS;
this.Ug.h(v.E.p,this.fl,this);this.z$=n.L("div","marged hiline");var m=["Ptrn","Angl","Scl","Algn","phase"];
for(var C=0;C<m.length;C++){var l=this.Ug._p[m[C]].m;this.z$.appendChild(l)}}dP.prototype=new fR;dP.prototype.L8=function(s,m){if(m==gN._L){this.ap1=[];
this.aoe=[];if(this.uG)this.f(this.QA,this._(),this.uG)}this.bR=s;this.To.L8(s,m);this.Ug.L8(s,m)};dP.prototype.U=function(){this.Oe.textContent=iX.get(this.oa)+": ";
this.Fv.U();this.fe.U();this.To.U();this.Ug.U()};dP.prototype.fl=function(s){var m=s.currentTarget;if(m==this.Fv){var l=this.Fv._(),x={pC:l,ts:this.uG[l]};
if(l>0&&x.ts==null)x.ts=JSON.parse(JSON.stringify(i4.Om[l-1]));if(this.uG)this.f(this.QA,x,this.uG)}if(m==this.ED)this.fe.XC(m._());
this.Y(new h9(v.E.p,!1))};dP.prototype.lE=function(s){var m=this.w.getBoundingClientRect(),l=new h9(v.E.g,!0);
l.data={d:v.J.Jm,UK:this.DS,x:m.left,y:m.top+m.height+4};this.Y(l);this.ED.f(this.fe.ajm())};dP.prototype.f=function(s,m,l){this.uG=l;
this.QA=s;var x=[[13,1,0],[13,0],[12,37],[12,62]],a=this.ap1,P=this.aoe,o=!1,U;for(var C=0;C<4;C++){var G={pC:C,ts:l[C]},_=dP.agU(G);
if(P[C]==_)continue;o=!0;var j=dP.as0(null,G,this.bR,this.QA,22,22,!1);a[C]="<img width=\"22\" height=\"22\" src=\""+j+"\" />";
P[C]=_}if(o)this.Fv.AZ(a,x);this.Fv.f(m.pC);var _=dP.agU(m);if(_!=this.apR)dP.as0(this.og,m,this.bR,this.QA,30,23,!0);
this.apR=_;var S=m.pC;if(S==0){U=this.alR}if(S==1){this.fe.f(m.ts.Clr.v);U=this.g2}if(S==2){this.To.update(s,m.ts);
U=this.Y0}if(S==3){this.Ug.update(s,m.ts);U=this.z$}if(U!=this.gT){if(this.gT!=null){this.DS.m.removeChild(this.gT)}this.DS.m.appendChild(U);
this.gT=U}};dP.prototype._=function(){var s={pC:this.Fv._()};if(s.pC==1){s.ts=JSON.parse(JSON.stringify(i4.Om[0]));
s.ts.Clr.v=this.fe._()}if(s.pC==2){s.ts=this.To._()}if(s.pC==3){s.ts=this.Ug._()}return s};dP.agU=function(s){var m=s.pC,l=s.ts,x="empty";
if(m==1){x=L.K.Qv(l.Clr.v);x=x.o+","+x.z+","+x.S}if(m==2)x=JSON.stringify(l.Grad.v);if(m==3)x=l.Ptrn.v.Idnt.v;
return x};dP.as0=function(s,m,l,x,a,P,o){if(s==null)s=dP.og;var G=Math.floor(a*n.W()),_=Math.floor(P*n.W()),j=s.canvas,U;
j.width=G;j.height=_;n.cO(j,G,_);var S=m.pC;if(S==0){s.fillStyle="#ffffff";s.fillRect(0,0,G,_);s.strokeStyle="#ff0000";
s.lineWidth=2;s.moveTo(0,0);s.lineTo(G,_);s.moveTo(0,_);s.lineTo(G,0);s.stroke()}if(S==1){var X=m.ts.Clr.v;
X=L.K.Qv(X);s.fillStyle="#"+L.eZ(X.o<<16|X.z<<8|X.S);s.fillRect(0,0,G,_)}if(S==2){r.W0.jj(m.ts.Grad.v,G,_,0,l.zU,l.Pi,j)}if(S==3){var c=m.ts.Ptrn.v,y;
if(x!=null)y=jo.Ic(c,x.add.Patt);if(y==null)y=jo.Ic(c,l.yZ);ez.jj(y,G,_,j)}if(o){s.beginPath();s.strokeStyle="#000000";
s.fillStyle="#ffffff";s.lineWidth=2;var O=G*.7,p=Math.floor(_*.7),D=7*n.W();s.moveTo(O,p);s.lineTo(O+D,p);
s.lineTo(O+D/2,p+D/2);s.closePath();s.stroke();s.fill()}if(s==dP.og)return j.toDataURL()};dP.og=n.L("canvas").getContext("2d");
function ez(s){ik.call(this,s,!1,"patternbutton",18,10,gN._L);this.Iz=null}ez.prototype=new ik;ez.prototype.EP=function(s){var m=this.d3[this.jM._()];
this.Kf={classID:"Ptrn",Nm:{t:"TEXT",v:m.name},Idnt:{t:"TEXT",v:m.id}};this.Y(new h9(v.E.p));this.nO()};
ez.am=!1;ez.prototype.iw=function(){if(!this.Xn)return;var s=this.d3;if(s==null||!ez.am){var m=new h9(v.E.g,!0);
m.data={d:v.J.zy,AV:{url:"rsrc/basic/basic.pat"}};this.Y(m);ez.am=!0;return}var l=Math.floor(34*n.W()),x=Math.floor(34*n.W()),a=[],P=[];
for(var C=0;C<s.length;C++){a.push(ez.jj(s[C],l,x));P.push(s[C].name)}this.jM.Hm(a,P,l,x);this.Xn=!1};
ez.prototype.f=function(s,m){if(this.Kf&&s.Idnt.v==this.Kf.Idnt.v)return;this.Kf=JSON.parse(JSON.stringify(s));
this.nO(m)};ez.prototype._=function(){return JSON.parse(JSON.stringify(this.Kf))};ez.prototype.Di=function(){return this.Iz?[this.Iz]:[]};
ez.prototype.nO=function(s){var m=Math.floor(50*n.W()),l=Math.floor(50*n.W()),x;if(s!=null)x=jo.Ic(this.Kf,s.add.Patt);
if(x==null)x=jo.Ic(this.Kf,this.d3);this.Iz=x;var a=ez.jj(x,m,l);this.UG.setAttribute("src",a);n.cO(this.UG,m,l)};
ez.w=n.L("canvas","");ez.jj=function(s,m,l,x){if(x==null)x=ez.w;var a=x.getContext("2d");x.width=m;x.height=l;
if(s){var P=s.DH[1],o=P.e,G=P.l,_=s.DH[0],j=Math.min(m/o,l/G),U=j;if(U*o<2)U=2/o;var S=j;if(S*G<2)S=2/G;
var X=r.Q.ea([_,P],new ae(U,0,0,S,0,0),U>2),c=X.rect.e,y=X.rect.l,O=a.createImageData(c,y);L.qv(X.buffer,O.data);
a.putImageData(O,Math.floor((m-c)/2),Math.floor((l-y)/2))}return x.toDataURL()};function a0(s){ik.call(this,s,!1,"patternbutton",24.2,17,gN.uZ);
this.ZB=""}a0.prototype=new ik;a0.prototype.EP=function(s){this.Kf=JSON.parse(JSON.stringify(this.d3[0][this.jM._()[0]]));
this.Y(new h9(v.E.p))};a0.prototype.iw=function(){var s=this.d3;if(s==null||!this.Xn)return;var m=Math.floor(50*n.W()),l=Math.floor(50*n.W()),x=[],a=[];
for(var C=0;C<s[0].length;C++){x.push(a0.jj(this.d3[0][C].tI,m,l,this.d3[1]));a.push(s[0][C].On.Nm.v.split("=").pop())}this.jM.Hm(x,a,m,l);
this.Xn=!1};a0.prototype.f=function(s,m,l,x){var a=JSON.stringify(s.tI)+","+l+","+x;if(this.ZB!=a){this.ZB=a;
this.Kf=JSON.parse(JSON.stringify(s));this.nO(m,l,x)}};a0.prototype._=function(){return JSON.parse(JSON.stringify(this.Kf))};
a0.prototype.nO=function(s,m,l){var x=Math.floor(68*n.W()),a=Math.floor(68*n.W()),P=a0.jj(this.Kf.tI,x,a,s?s:this.d3[1],m,l);
this.UG.setAttribute("src",P);n.cO(this.UG,x,a)};a0.jj=function(s,m,l,x,a,P){var o=new jF;o.e=m;o.l=l;
o.buffer=L.B(m*l*4);o.add.Patt=x;o.gx(a==null?90:a);o.qt(P==null?30:P);var G=new bU(0,0,Math.round(m*.5),Math.round(l*.5));
G.x=Math.round((m-G.e)/2);G.y=Math.round((l-G.l)/2);var _=o.d2();_.rect=G;_.buffer=L.B(G.k()*4);L.MP(_.buffer,4284045657);
jo.akM(s,_,.5*100);o.G.push(_);o.Bi();o.F();var j=M.wR;M.wR=!1;o.nZ();var U=o.cf();M.wR=j;var S=iO.kI(U.buffer,o.e,o.l);
return S};function aq(s){ik.call(this,null,!1,"tpresetbutton",18,24,gN.jo,!0);n.po(this.m,"fitem");this.jM.JV(1);
this.id=s;this.nO();this.gQ=new bj([15,7,9]);this.gQ.f(!0);this.gQ.h(v.E.p,this.a1v,this);this.M2.appendChild(this.gQ.m)}aq.prototype=new ik;
aq.prototype.a7x=function(s){if(this.id==s)return;this.id=s;this.El(this.d3)};aq.prototype.EP=function(s){var m=this.d3[this.jM._()],l=new h9(v.E.g,!0);
l.data={d:v.J.xw,s5:"set",AV:gN.jo,bp:m};this.Y(l)};aq.prototype.U=function(){ik.prototype.U.call(this);
this.gQ.U()};aq.prototype.a1v=function(){this.Xn=!0;this.iw()};aq.prototype.iw=function(){if(!this.Xn)return;
var s=Math.floor(16*n.W()),m=Math.floor(16*n.W()),l=[],x=[],a=this.d3,P=this.gQ._();for(var C=0;C<a.length;
C++){var o=r._S(a[C]);if(!P||o==this.id){x.push(a[C][0]?a[C][0].split("=").pop():"");l.push(o==-1?"":PIMG[r.MM[o][0]])}else{l.push(null);
x.push(null)}}this.jM.Hm(l,x,s,m);this.Xn=!1};aq.prototype.nO=function(){var s=this.UG;s.setAttribute("src",PIMG[r.MM[this.id][0]]);
n.RY(s,"toolicon")};aq.prototype.Di=function(){return null};aq.JU={};aq.jj=function(s,m,l){var x=aq.og,a=aq.JU,P=L.eZ(s.o<<16|s.z<<8|s.S);
if(a[P])return a[P];if(x==null){var o=n.L("canvas");x=aq.og=o.getContext("2d")}var o=x.canvas;o.width=m;
o.height=l;x.fillStyle="#"+P;x.fillRect(0,0,m,l);var G=a[P]=o.toDataURL();return G};function dD(s,m){fR.call(this);
this.m=n.L("span","fitem curveeditor");this.P7=null;this.a6Y=0;this.w1="";this.mode=0;this.vW=s;this.afZ=m;
this.UP=null;this.DK=null;this.aqm=0;this.ad6=0;this.IF=new fz;this.fR=this.rP.bind(this);this.TW=this.Hk.bind(this);
this.S8=256;this.w=n.L("canvas");this.og=this.w.getContext("2d");n.FE(this.w);this.m.appendChild(this.w);
this.jm(256,256);n.i3(this.w,this.fj.bind(this))}dD.prototype=new fR;dD.prototype.jm=function(s,m){this.S8=Math.round(s);
this.og.resetTransform();n.ek(this.w,this.S8,this.S8,this.og);this.og.scale(this.S8/256,this.S8/256);
if(this.UP)this.Pf()};dD.prototype.f=function(s,C){var m=JSON.stringify(s);if(m==JSON.stringify(this.UP))return;
this.mode=s.length==256?1:0;this.UP=JSON.parse(m);if(C!=null)this.DK=this.UP[C];this.Pf()};dD.prototype.AF=function(s,m,l){this.P7=s;
this.a6Y=m;this.w1=l;this.Pf()};dD.prototype._=function(){return JSON.parse(JSON.stringify(this.UP))};
dD.prototype.a1J=function(){return this.UP.indexOf(this.DK)};dD.prototype.fj=function(s){var m=256/this.S8,l=n.lX(s,this.w);
l.x*=m;l.y*=m;var x=l.x,a=256-l.y;if(this.vW){var P=x;x=256-a;a=P}this.IF.Qk(x,a);if(this.mode==0){var o=0,G=1e9,X;
for(var C=0;C<this.UP.length;C++){var _=this.UP[C].v,j=_.Hrzn.v-x,U=_.Vrtc.v-a,S=Math.sqrt(j*j+U*U);
if(S<G){G=S;o=C}}if(G<15)X=this.UP[o];else{X=L.so.L4(x,a,!0);this.UP.push(X);this.UP.sort(function(c,y){return c.v.Hrzn.v-y.v.Hrzn.v})}this.DK=X;
this.ad6=this.UP.slice(0)}n.PB(document.body,this.fR);n.$u(document.body,this.TW);this.rP(s)};dD.prototype.rP=function(s){var m=256/this.S8,l=n.lX(s,this.w);
l.x*=m;l.y*=m;var x=l.x,a=256-l.y;if(this.vW){var P=x;x=256-a;a=P}if(this.mode==0){var o=this.UP,G=this.DK,_=this.ad6,j=_.indexOf(G),U=o.indexOf(G)!=-1,S=_.length-1,X=x;
if(j==0){X=Math.max(0,Math.min(_[1].v.Hrzn.v-1,x))}else if(j==S){X=Math.min(255,Math.max(_[S-1].v.Hrzn.v+1,x))}else{var c=x<0||x>255||a<0||a>255;
if(x<=_[j-1].v.Hrzn.v||x>=_[j+1].v.Hrzn.v)c=!0;if(!c&&!U)o.splice(j,0,G);if(c&&U)o.splice(j,1)}if(!this.afZ)G.v.Hrzn.v=Math.round(X);
G.v.Vrtc.v=Math.max(0,Math.min(255,Math.round(a)))}else{x=Math.round(x);a=Math.round(a);x=Math.max(0,Math.min(255,x));
a=Math.max(0,Math.min(255,a));var y=this.IF.x,O=x,p=this.IF.y,D=a;if(x<this.IF.x){O=y;y=x;D=p;p=a}this.UP[x]=a;
if(y!=O)for(var f=y;f<=O;f++)this.UP[f]=Math.round(p+(f-y)*(D-p)/(O-y))}this.IF.Qk(x,a);this.Pf();this.Y(new h9(v.E.p))};
dD.prototype.Hk=function(s){n.Ab(document.body,this.fR);n.D4(document.body,this.TW);this.Y(new h9(v.E.p))};
dD.prototype.Pf=function(){var s=this.og,m=this.w;s.fillStyle="#ffffff";s.fillRect(0,0,256,256);var l=256/m.width;
if(this.P7){s.save();s.translate(0,256);s.scale(1,-1);cs.a1q(s,this.P7,5700/this.a6Y,this.w1);s.restore()}s.strokeStyle="#aaaaaa";
s.lineWidth=1*l;s.beginPath();for(var C=1;C<4;C++){var x=(Math.floor(64*C/l)+.5)*l;s.moveTo(0,x);s.lineTo(255,x);
s.moveTo(x,0);s.lineTo(x,255)}s.stroke();if(this.vW){s.save();s.transform(0,1,-1,0,256,0)}if(this.mode==0){var a=this.UP,P=L.so.nn(a,256);
s.strokeStyle="#000000";s.beginPath();s.moveTo(0,255.5-P[0]);for(var C=0;C<256;C++)s.lineTo(C,255.5-P[C]);
s.stroke();s.lineWidth=2*l;for(var C=0;C<a.length;C++){var o=a[C].v;s.fillStyle=this.DK==a[C]?"#333":"#fff";
s.beginPath();s.moveTo(o.Hrzn.v,255.5-o.Vrtc.v);s.arc(o.Hrzn.v,255.5-o.Vrtc.v,5*l,0,2*Math.PI);s.stroke();
s.fill()}}else{var P=this.UP;s.strokeStyle="#000000";s.beginPath();s.moveTo(0,255.5-P[0]);for(var C=0;
C<256;C++)s.lineTo(C,255.5-P[C]);s.stroke()}if(this.vW)s.restore()};function cs(s,m){fR.call(this);this.m=n.L("span","");
this.H9=new ge([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5],[12,82]]);this.H9.h(v.E.p,this.ZJ,this);this.m.appendChild(this.H9.m);
n.Z0(this.m);this.w=n.L("canvas");var l=this.w;this.m.appendChild(l);l.width=Math.round(s*n.W());l.height=Math.round(100*n.W());
n.cO(l,l.width,l.height);this.og=l.getContext("2d");this.P7=null;this.xq=0;this.aab=null;this.and=[];
this._2=[];var x=["Mean:","Pixels:"],a=this.m;for(var C=0;C<x.length;C++){var P=new jG(x[C]);this.and.push(P);
if(m)a.appendChild(P.m);var o=new jG("hi");this._2.push(o);if(m)a.appendChild(o.m);n.Z0(a)}}cs.prototype=new fR;
cs.prototype.U=function(){this.H9.U()};cs.prototype.JV=function(s){this.H9.f(s);this.ZJ()};cs.prototype.f=function(s,m){this.P7=s;
this.aab=m;this.ZJ()};cs.prototype.XC=function(s){if(s==this.xq)return;this.xq=s;this.ZJ()};cs.prototype.ZJ=function(){if(this.P7==null)return;
var s=this.w,m=this.og,l=this.P7,x=this.aab,a=this.H9._(),P=6e3/l[4],o="#"+L.eZ(this.xq),G=cs.a1q;s.width=s.width;
m.setTransform(s.width/256,0,0,-s.height/100,0,s.height);m.globalCompositeOperation="lighter";if(a==0)G(m,l[0],P/3,o);
else if(a<4)G(m,l[a],P,o);else{G(m,l[1],P,"#ff0000");G(m,l[2],P,"#00ff00");G(m,l[3],P,"#0000ff")}m.setTransform(1,0,0,1,0,0);
if(x!=null){var _=0;for(var C=0;C<256;C++)_+=C*l[a][C];if(a==0)_/=3;this._2[0].f((_/x).toFixed(1)+"");
this._2[1].f(x+"")}};cs.a1q=function(s,m,l,x){s.beginPath();s.moveTo(0,0);for(var a=0;a<256;a++)s.lineTo(a,m[a]*l);
s.lineTo(256,0);s.closePath();s.fillStyle=x;s.fill()};function gq(s){fR.call(this);this.ft={o:0,z:0,S:0};
if(Math.abs(s-256/n.W())<10)s=256/n.W();var m=this.m=n.L("div","flexrow");this.M4=new fz;this.rH=new fz;
this.VM=this.aiv.bind(this);this.eK=this.adL.bind(this);this.w=n.L("canvas","");this.og=this.w.getContext("2d");
this.w.width=this.w.height=256;this.a3U=this.og.getImageData(0,0,256,256);this.a9r=-1;n.FE(this.w);n.i3(this.w,this.amb.bind(this));
m.appendChild(this.w);this.aaC=this.a3R.bind(this);this.a2z=this.a0t.bind(this);this.dL=n.L("canvas","");
this._8=this.dL.getContext("2d");this.dL.width=20;this.dL.height=256;this.akj=this._8.getImageData(0,0,20,256);
gq.asj(this.akj.data,20,256);n.FE(this.dL);n.i3(this.dL,this.arZ.bind(this));m.appendChild(this.dL);
this.w.setAttribute("style","width:"+s+"px; height:"+s+"px");this.dL.setAttribute("style","width:16px; height:"+s+"px")}gq.prototype=new fR;
gq.prototype.jm=function(s,m){this.w.style.width=s-16+"px"};gq.prototype.f=function(s){this.ft=s;this.update()};
gq.prototype._=function(){return JSON.parse(JSON.stringify(this.ft))};gq.prototype.update=function(){var s=this.ft,m=L.Az(s.o,s.z,s.S);
if(m.yt==0)m.zd=this.M4.x/255;if(m.zd==0||m.yt==0)m.Cm=(255-this.ov(this.rH.y))/255;if(m.yt!=0)this.M4.x=m.zd*255;
this.M4.y=(1-m.yt)*255;this.rH.y=(1-m.Cm)*255;var l=this.a3U;if(Math.abs(m.Cm-this.a9r)>.002){this.abM(l.data,256,256,m.Cm);
this.a9r=m.Cm}var x=this.og;x.putImageData(l,0,0);x.strokeStyle="#000000";x.beginPath();x.arc(this.M4.x+1,this.M4.y+1,5,0,2*Math.PI);
x.stroke();x.strokeStyle="#ffffff";x.beginPath();x.arc(this.M4.x,this.M4.y,5,0,2*Math.PI);x.stroke();
l=this.akj;x=this._8;x.putImageData(l,0,0);x.strokeStyle="#ffffff";x.beginPath();x.moveTo(0,this.rH.y);
x.lineTo(20,this.rH.y);x.lineWidth=2;x.stroke()};gq.prototype.abM=function(s,m,l,x){var a=1/m,P=1/l;
for(var o=0;o<l;o++)for(var G=0;G<m;G++){var _=L.B7(x,G*a,(l-o-1)*P),C=o*m+G<<2;s[C+0]=~~(_.o*255);s[C+1]=~~(_.z*255);
s[C+2]=~~(_.S*255);s[C+3]=255}};gq.asj=function(s,m,l,x,a){if(x==null)x=1;if(a==null)a=0;var P=new Uint32Array(s.buffer);
for(var o=0;o<l;o++){var G=L.B7((1+x*(1-o/l)+a)%1,1,1),_=255<<24|G.S*255<<16|G.z*255<<8|G.o*255;for(var j=0;
j<m;j++)P[o*m+j]=_}};gq.prototype.amb=function(s){n.PB(window,this.VM);n.$u(window,this.eK);this.aiv(s)};
gq.prototype.adL=function(s){n.Ab(window,this.VM);n.D4(window,this.eK)};gq.prototype.aiv=function(s){var m=n.lX(s,this.w);
m.x=m.x*(256/parseFloat(this.w.style.width));m.y=m.y*(256/parseFloat(this.w.style.height));this.M4.Qk(this.ov(m.x),this.ov(m.y));
this.C1()};gq.prototype.C1=function(){this.ft=this.a50();this.Y(new h9(v.E.p))};gq.prototype.a50=function(){var s=L.B7((255-this.ov(this.rH.y))/255,this.BY(this.M4.x/255),this.BY(1-this.M4.y/255));
return{o:s.o,z:s.z,S:s.S}};gq.prototype.arZ=function(s){n.PB(window,this.aaC);n.$u(window,this.a2z);
this.a3R(s)};gq.prototype.a0t=function(s){n.Ab(window,this.aaC);n.D4(window,this.a2z)};gq.prototype.a3R=function(s){var m=n.lX(s,this.dL);
m.y=m.y*(256/parseFloat(this.dL.style.height));this.rH.Qk(this.ov(m.x),this.ov(m.y));this.C1()};gq.prototype.ov=function(s){return Math.max(0,Math.min(255,s))};
gq.prototype.BY=function(s){return Math.max(0,Math.min(1,s))};function dL(s,m,l,x){var a=co.ey(m,x);
co.call(this,s,a,l)}dL.prototype=new co;function j2(){fR.call(this);this.pX=null;this.Sy=new cp;this.Sy.h(v.E.p,this.abp,this);
this.Sy.parent=this;this.pg=new dy([12,14,0],1,150,"px",0,!0);this.pg.h(v.E.p,this.lj,this);this.pg.parent=this;
this.ul=new dy([16,0],.01,100,"px",2,!0,null,5);this.ul.h(v.E.p,this.lj,this);this.ul.parent=this;this.Q9=new bj("Auto");
this.Q9.h(v.E.p,this.lj,this);this.yP=new dy([16,1],-500,5e3,"%",0,!0);this.yP.h(v.E.p,this.lj,this);
this.yP.parent=this;this.bk=new dy("\u2B0D",1,300,"%",null,null,null,null,[[2,7],[22,4,3]]);this.bk.h(v.E.p,this.lj,this);
this.bk.parent=this;this.En=new dy("\u2B0C",1,300,"%",null,null,null,null,[[2,7],[22,4,2]]);this.En.h(v.E.p,this.lj,this);
this.En.parent=this;this.pY=new dy([16,2],-10,10,"px");this.pY.h(v.E.p,this.lj,this);this.pY.parent=this;
this.FC=new fM(!0);this.FC.h(v.E.p,this.Vr,this);this.FC.parent=this;this._G=new fM(!0);this._G.h(v.E.p,this.Vr,this);
this._G.parent=this;this.x_=new fM(!0);this.x_.h(v.E.p,this.Vr,this);this.x_.parent=this;this.rO=new fM(!0);
this.rO.h(v.E.p,this.Vr,this);this.rO.parent=this;this.Ky=new bj([2,3]);this.Ky.h(v.E.p,this.lj,this);
this.t9=new bj([14,9]);this.t9.h(v.E.p,this.lj,this);this.TS=new bj([12,46]);this.TS.h(v.E.p,this.lj,this);
this.z9=new hj("...",null,null,!0);this.z9.m.style.marginLeft="-8px";this.z9.h("click",this.aoC,this);
this.DS=new fR;var s=this.DS.m=n.L("div","floatcont form");this.DS.parent=this;this.m0=new dy([12,41],1,20,"px",0,!0,!0);
this.m0.m.style.marginLeft="16px";this.m0.h(v.E.p,this.lj,this);this.m0.parent=this.DS;s.appendChild(this._G.m);
s.appendChild(this.Ky.m);n.Z0(this.DS.m);s.appendChild(this.x_.m);s.appendChild(this.t9.m);s.appendChild(this.m0.m);
n.Z0(this.DS.m);s.appendChild(this.rO.m);s.appendChild(this.TS.m);this.RB=new hj("<img src=\""+PIMG["type/bold"]+"\" class=\"autoscale gsicon\" />");
this.vZ=new hj("<img src=\""+PIMG["type/italic"]+"\" class=\"autoscale gsicon\" />");this.o$=new hj("<img src=\""+PIMG["type/caps"]+"\" class=\"autoscale gsicon\" />");
this.tY=new hj("<img src=\""+PIMG["type/scaps"]+"\" class=\"autoscale gsicon\" />");this.$U=new hj("<img src=\""+PIMG["type/sub"]+"\" class=\"autoscale gsicon\" />");
this.Jh=new hj("<img src=\""+PIMG["type/sup"]+"\" class=\"autoscale gsicon\" />");this.OW=new hj("<img src=\""+PIMG["type/under"]+"\" class=\"autoscale gsicon\" />");
this.lN=new hj("<img src=\""+PIMG["type/strike"]+"\" class=\"autoscale gsicon\" />");var m=[this.RB,this.vZ,this.o$,this.tY,this.$U,this.Jh,this.OW,this.lN];
for(var C=0;C<m.length;C++)m[C].h("click",this.afv,this);this.Gk=new hj("<img src=\""+PIMG["par/left"]+"\" class=\"autoscale gsicon\" />");
this.s7=new hj("<img src=\""+PIMG["par/right"]+"\" class=\"autoscale gsicon\" />");this.SG=new hj("<img src=\""+PIMG["par/center"]+"\" class=\"autoscale gsicon\" />");
this.acf=new hj("<img src=\""+PIMG["par/jleft"]+"\" class=\"autoscale gsicon\" />");this.a3V=new hj("<img src=\""+PIMG["par/jright"]+"\" class=\"autoscale gsicon\" />");
this.anl=new hj("<img src=\""+PIMG["par/jcenter"]+"\" class=\"autoscale gsicon\" />");this.akn=new hj("<img src=\""+PIMG["par/jall"]+"\" class=\"autoscale gsicon\" />");
this.tE=[this.Gk,this.s7,this.SG,this.acf,this.a3V,this.anl,this.akn];for(var C=0;C<this.tE.length;C++)this.tE[C].h("click",this.lj,this);
var l=["lind","rind","flind","bind","aind"],x=[];for(var C=0;C<5;C++)x.push("<img src=\""+PIMG["par/"+l[C]]+"\" class=\"autoscale gsicon\" /> ");
this.KG=new dy(x[0],-20,20,"px");this.KG.h(v.E.p,this.lj,this);this.KG.parent=this;this._v=new dy(x[1],-20,20,"px");
this._v.h(v.E.p,this.lj,this);this._v.parent=this;this.Gt=new dy(x[2],-20,20,"px");this.Gt.h(v.E.p,this.lj,this);
this.Gt.parent=this;this.n1=new dy(x[3],-20,20,"px");this.n1.h(v.E.p,this.lj,this);this.n1.parent=this;
this.Wu=new dy(x[4],-20,20,"px");this.Wu.h(v.E.p,this.lj,this);this.Wu.parent=this;this.jD=new co([12,33],["Abc ...","... \u0623\u064A \u0628\u064A"]);
this.jD.h(v.E.p,this.lj,this);this.jD.parent=this}j2.prototype=new fR;j2.prototype.aoC=function(s){var m=this.z9.m.getBoundingClientRect(),l=new h9(v.E.g,!0);
l.data={d:v.J.Jm,UK:this.DS,x:m.left,y:m.top+m.height+4};this.Y(l)};j2.prototype.U=function(){this.Sy.U();
this.pg.U();this.ul.U();this.yP.U();this.pY.U();this.bk.U();this.En.U();this.Ky.U();this.t9.U();this.TS.U();
this.m0.U();this.jD.U()};j2.prototype.f=function(s,m,l){this.ME=JSON.parse(JSON.stringify(s));var x=this.ME,a=x.m$,P=x.AO;
this.RB.f(a.FauxBold!=null?a.FauxBold:!1);this.vZ.f(a.FauxItalic!=null?a.FauxItalic:!1);this.o$.f(a.FontCaps==2);
this.tY.f(a.FontCaps==1);this.Jh.f(a.FontBaseline==1);this.$U.f(a.FontBaseline==2);this.OW.f(a.Underline);
this.lN.f(a.Strikethrough);this.Sy.f(a.Font==null?null:x.dN[a.Font].Name,m,l);var o=a.FontSize==null?20:a.FontSize;
this.pg.f(o);var G=a.Tracking;this.yP.f(G==null?0:G);this.m0.f(a._LineWidth!=null?a._LineWidth:1);this.ul.f(a.Leading!=null&&a.Leading!=0?a.Leading:o);
this.Q9.f(a.AutoLeading);this.bk.f((a.VerticalScale!=null?a.VerticalScale:0)*100);this.En.f((a.HorizontalScale!=null?a.HorizontalScale:0)*100);
this.pY.f(a.BaselineShift!=null?a.BaselineShift:0);this.Ky.f(a.FillFlag!=null?a.FillFlag:!1);this.t9.f(a.StrokeFlag!=null?a.StrokeFlag:!1);
this.TS.f(a._FillBackgroundFlag!=null?a._FillBackgroundFlag:!1);this.GE(a.FillColor,this.FC);this.GE(a.FillColor,this._G);
this.GE(a.StrokeColor,this.x_);this.GE(a._FillBackgroundColor,this.rO);var _=P._Direction!=null?P._Direction:0,j=ex.U6(P);
for(var C=0;C<this.tE.length;C++)this.tE[C].f(j==C);this.jD.f(_);this.KG.f(P.StartIndent!=null?P.StartIndent:0);
this._v.f(P.EndIndent!=null?P.EndIndent:0);this.Gt.f(P.FirstLineIndent!=null?P.FirstLineIndent:0);this.n1.f(P.SpaceBefore!=null?P.SpaceBefore:0);
this.Wu.f(P.SpaceAfter!=null?P.SpaceAfter:0)};j2.prototype.GE=function(s,m){if(s){var l=ex.Qv(s);m.XC(Math.round(l.o)<<16|Math.round(l.z)<<8|Math.round(l.S))}else m.XC(0)};
j2.prototype.zi=function(){var s=new h9(v.E.g,!0);s.data={d:v.J.xw,AV:gN.dz,ME:this.ME};this.Y(s);var s=new h9(v.E.u,!0);
s.c=r.sX;s.data={d:"updateStyles"};this.Y(s)};j2.prototype.afv=function(s){var m=this.ME.m$,l=s.target,x=!l.bD();
if(l==this.RB)m.FauxBold=x;if(l==this.vZ)m.FauxItalic=x;if(l==this.o$)m.FontCaps=x?2:0;if(l==this.tY)m.FontCaps=x?1:0;
if(l==this.Jh)m.FontBaseline=x?1:0;if(l==this.$U)m.FontBaseline=x?2:0;if(l==this.OW)m.Underline=x;if(l==this.lN)m.Strikethrough=x;
this.zi()};j2.prototype.lj=function(s){var m=this.ME.m$,l=this.ME.AO,x=s.target;if(x==this.yP){var a=this.yP._();
m.Tracking=a}if(x==this.ul){m.AutoLeading=!1;m.Leading=this.ul._()}if(x==this.Q9){m.AutoLeading=this.Q9._()}if(x==this.m0)m._LineWidth=x._();
if(x==this.pg)m.FontSize=x._();if(x==this.bk)m.VerticalScale=x._()/100;if(x==this.En)m.HorizontalScale=x._()/100;
if(x==this.pY)m.BaselineShift=x._();if(x==this.Ky)m.FillFlag=x._();if(x==this.t9)m.StrokeFlag=x._();
if(x==this.TS)m._FillBackgroundFlag=x._();if(this.tE.indexOf(x)!=-1){l.Justification=ex.U6(l,this.tE.indexOf(x))}if(x==this.KG)l.StartIndent=x._();
if(x==this._v)l.EndIndent=x._();if(x==this.Gt)l.FirstLineIndent=x._();if(x==this.n1)l.SpaceBefore=x._();
if(x==this.Wu)l.SpaceAfter=x._();if(x==this.jD)l._Direction=x._();this.zi()};j2.prototype.abp=function(s){var m=this.ME,l=this.Sy._(),x=-1;
for(var C=0;C<m.dN.length;C++)if(m.dN[C].Name==l)x=C;if(x==-1){x=m.dN.length;var a=JSON.parse(JSON.stringify(m.dN[0]));
a.Name=l;m.dN.splice(x,0,a)}m.m$.Font=x;this.zi()};j2.prototype.Vr=function(s){var m=s.target,l=m.ajm(),x={Type:1,Values:[1,(l>>16&255)/255,(l>>8&255)/255,(l>>0&255)/255]};
for(var C=0;C<4;C++)x.Values[C]=Math.round(x.Values[C]*1e3)/1e3;var a=m==this.FC||m==this._G?0:m==this.x_?1:2;
this.ME.m$[["FillColor","StrokeColor","_FillBackgroundColor"][a]]=x;this.zi()};function cp(){fR.call(this);
this.m=n.L("span","fontinput");this.AU=null;this.uv=null;this.Sd=null;this.eD="";this.cb={};this.wB=[];
this.a2d={};this.gt=!1;this.ve=n.L("button","fitem");this.ve.setAttribute("style","width:9em;");this.ve.textContent="Family Name \u25BC";
this.m.appendChild(this.ve);n.i3(this.ve,this.arj.bind(this));this.GT=new fR;this.GT.parent=this;this.GT.m=n.L("div","floatcont");
this.GT.m.addEventListener("keyup",this.ahS.bind(this),!1);this.yp=new fC(6.8);this.GT.m.appendChild(this.yp.ae2());
this.yp.parent=this.GT;this.yp.h(v.E.p,this.GA,this);var s=n.L("div","form");this.GT.m.appendChild(s);
this.TE=new hj(n.C5("tools/cshape",null,"autoscale"),!1,"Show Favorites Only");this.TE.h("click",this.ar1,this);
s.appendChild(this.TE.m);this.a0=new ep([12,86],null,8.4);this.a0.h("input",this.w9,this);s.appendChild(this.a0.m);
var m=this.aiw=new hj([[23,6],[22,6,0]],!1,"Load OTF / TTF file from your computer",!0);m.h("click",this.alb,this);
m.m.style.marginLeft="1.5em";m.m.style.marginRight="0";s.appendChild(m.m);this.ku=n.L("span","fitem imageset scrollable");
this.ku.style.height="30em";this.GT.m.appendChild(this.ku);this.bL=n.L("button","fitem");this.bL.setAttribute("style","width:7em;");
this.bL.textContent="SubFamily Name \u25BC";this.m.appendChild(this.bL);n.i3(this.bL,this.arj.bind(this));
this.Ne=new fR;this.Ne.parent=this;this.Ne.m=n.L("div","floatcont");this.VI=n.L("span","fitem imageset scrollable marged");
this.Ne.m.appendChild(this.VI)}cp.prototype=new fR;cp.prototype.ahS=function(s){var m=0;if(dV.Ij(s.code,dV.Lu))m=-1;
if(dV.Ij(s.code,dV.pV))m=1;if(m!=0){var l=this.wB,x=l.length,a=this.AU.pr()[this.Sd];if(a==null&&x==0)return;
var P=l.indexOf(a[0]);if(P==-1)return;P=(P+m+x)%x;this.qa(l[P],null)}};cp.prototype.alb=function(){var s=new h9(v.E.g,!0);
s.data={d:v.J.BB,ahN:".otf,.ttf,.ttc"};this.Y(s)};cp.prototype.U=function(){this.yp.U();this.aiw.U();
this.TE.tD(n.C5("tools/cshape",null,"autoscale"))};cp.prototype.ar1=function(s){this.TE.f(!this.TE.bD());
this.GA()};cp.prototype.w9=function(s){this.eD=this.a0._().toLowerCase();this.GA()};cp.prototype.arj=function(s){n.uj(s);
var m=s.currentTarget,l=m.getBoundingClientRect(),x=m==this.ve,a=x?this.GT:this.Ne;if(n.wH(a.m)){this.aqI(a);
return}if(!x&&this.AU.pr()[this.Sd]==null)return;var P=new h9(v.E.g,!0);P.data={d:v.J.Jm,UK:a,x:l.left,y:l.top+l.height};
this.Y(P);if(x){this.GA()}};cp.prototype.a25=function(s){var m=s.currentTarget.firstChild.nextSibling.textContent;
if(s.target.tagName.toLowerCase()=="button"){var l=this.uv.slice(0),x=l.indexOf(m);if(x==-1){l=l.slice(Math.max(0,l.length-29));
l.push(m)}else l.splice(x,1);var a=new h9(v.E.g,!0);a.data={d:v.J.xw,AV:gN.OB,Ur:l};this.Y(a);this.gt=!0;
this.GA()}else{this.qa(m,null)}};cp.prototype.a0n=function(s){this.qa(null,s.currentTarget.firstChild.textContent)};
cp.prototype.qa=function(s,m){var l=s==null?this.Ne:this.GT,x=this.AU;if(s==null)s=x.pr()[this.Sd][0];
else{var a=x.qR(s),P=x.pr()[this.Sd];m=cV.BP(a,P?P[1]:"regular")}var o=x.Sh(s,m)[2];this.f(o,x);this.Y(new h9(v.E.p,!1));
this.aqI(l);this.GA()};cp.prototype.aqI=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.QV,UK:s};this.Y(m)};
cp.prototype._=function(){return this.Sd};cp.prototype.f=function(s,m,l){var x=this.AU;if(s!=null)this.Sd=s;
else s=this.Sd;this.AU=m;this.uv=l;if(s!=null){var a=m.pr()[s],P,o;if(a==null){P="- "+s;o="-------"}else{P=a[0];
o=a[1];var G=m.qR(P);G.sort(cV.a5p);var _=G.indexOf(o),j=this.a0n.bind(this);this.VI.textContent="";
for(var C=0;C<G.length;C++){var a=m.Sh(P,G[C]);if(!this.yp.yq(a))continue;var U=this.agJ(a,a[1],j,!1);
this.VI.appendChild(U)}}this.ve.textContent=P.substring(0,15)+" \u25BC";this.ve.setAttribute("title",P+", \""+s+"\"");
this.bL.textContent=o.substring(0,10)+" \u25BC";this.bL.setAttribute("title",o)}};cp.prototype.GA=function(){var s=this.AU.pr()[this.Sd],m=this.uv,l=null,x=this.AU.adU(),a=this.a25.bind(this);
this.wB=[];for(var P in x){var o=cV.BP(x[P],"regular"),G=this.AU.Sh(P,o),_=m.indexOf(P)!=-1,j=!0;if(this.eD.length>0&&G[0].toLowerCase().indexOf(this.eD)==-1)j=!1;
else if(!this.yp.yq(G))j=!1;else if(this.TE.bD()&&!_)j=!1;var U=this.cb[P];if(U==null){var U=this.agJ(G,P,a,!0);
this.cb[P]=U;this.ku.appendChild(U)}if(j)this.wB.push(P);var S=j?"":"display:none; ",X="opacity: "+(_?"1":"0.2");
if(s&&s[0]==P){S+="background-color:rgba(0,0,0,0.13);";l=U}if(this.a2d[P]!=S+X){U.setAttribute("style",S);
U.firstChild.setAttribute("style",X);this.a2d[P]=S+X}}if(l&&!this.gt)this.ku.scrollTop=l.offsetTop-210;
this.gt=!1};cp.prototype.agJ=function(s,m,l,x){var a=n.L("div","fontitem"),_="";a.addEventListener("click",l,!1);
if(x)a.appendChild(n.L("button","star"));var P=n.L("span","label");P.setAttribute("title",m);P.textContent=m;
a.appendChild(P);var o=n.W(),G=1/o,j=cV.ok*G,U=cV.Vl*G;if(1<o&&o<1.5)_="width:"+j+"px; height:"+U+"px;";
var S=n.L("span","thumb gsicon");if(s.agm){_+="background: url("+s.agm+");";if(1<o&&o<1.5)_+="background-size: "+j+"px "+U+"px;"}else{var X=Math.ceil(FNTS.list.length/cV.cols),c=Math.floor(s.jV/X),y=s.jV%X,O=c*cV.ok,p=y*cV.Vl;
if(1<o&&o<1.5){_+="background-size: "+cV.cols*j+"px "+X*U+"px;";O*=G;p*=G}_+="background-position:-"+O+"px -"+p+"px;"}S.setAttribute("style",_);
a.appendChild(S);return a};function fC(s){fR.call(this);this.m=n.L("button","fitem bbtn");this.m.addEventListener("click",this.ae1.bind(this),!1);
this.DS=new fR;this.DS.m=n.L("div","floatcont");this.DS.parent=this;this.MU=n.L("div","flexrow");this.DS.m.appendChild(this.MU);
this.ZP=[];this.KS=[];var m=this.MU,l=n.L("div",""),x=n.L("div","");m.appendChild(l);m.appendChild(x);
this.ta=[];for(var C=0;C<FNTS.cats.length;C++)this.ta.push({name:FNTS.cats[C],index:C,RQ:0});this.Ck=new bj([7,0]);
this.Ck.f(!0);this.Ck.h(v.E.p,this.aaP,this);l.appendChild(this.Ck.m);this.AG=n.L("div","vlist marged scrollable");
this.AG.setAttribute("style","width:10.3em; height:"+s+"em; ");l.appendChild(this.AG);this.IL=[];for(var C=0;
C<this.ta.length;C++){var a=this.ta[C],P=new bj(a.name);this.IL.push(P);P.h(v.E.p,this.au7,this);P.f(!0);
this.AG.appendChild(P.m);this.ZP.push(1)}this.aeJ=new bj([7,0]);this.aeJ.h(v.E.p,this.a6c,this);this.dO=n.L("div","vlist marged scrollable");
this.dO.setAttribute("style","width:8.6em; height:"+(s+1.5)+"em; ");x.appendChild(this.dO);this.sZ=[];
for(var C=0;C<FNTS.subsetNames.length;C++){var P=new bj(FNTS.subsetNames[C]);this.sZ.push(P);P.h(v.E.p,this.aoF,this);
P.f(!1);this.dO.appendChild(P.m);this.KS.push(0)}}fC.prototype=new fR;fC.prototype.ad_=function(s){var m=this.sZ;
for(var C=0;C<m.length;C++){var l=(s>>>C&1)==1;this.KS[C]=l;m[C].f(l)}};fC.prototype.ae2=function(){return this.MU};
fC.prototype.U=function(){this.m.textContent=iX.get([25,1,0])+" \u25BC";this.Ck.U();this.aeJ.U()};fC.prototype.ae1=function(s){var m=this.m.getBoundingClientRect(),l=new h9(v.E.g,!0);
l.data={d:v.J.Jm,UK:this.DS,x:m.left,y:m.top+m.height,qC:!1};this.Y(l)};fC.prototype.yq=function(s){if(this.ZP[s[4]]==0)return!1;
else for(var m=0;m<this.KS.length;m++)if(this.KS[m]==1&&(s[3]>>>m&1)==0)return!1;return!0};fC.prototype.aaP=function(s){var m=s.target._(),l=this.IL,x=this.ZP;
for(var C=0;C<l.length;C++){l[C].f(m);x[C]=m?1:0}this.Y(new h9(v.E.p,!1))};fC.prototype.a6c=function(s){var m=s.target._(),l=this.sZ,x=this.KS;
for(var C=0;C<l.length;C++){l[C].f(m);x[C]=m?1:0}this.Y(new h9(v.E.p,!1))};fC.prototype.au7=function(s){var C=this.IL.indexOf(s.target),m=this.ta[C].index;
this.ZP[m]=1-this.ZP[m];this.Y(new h9(v.E.p,!1))};fC.prototype.aoF=function(s){var C=this.sZ.indexOf(s.target);
this.KS[C]=1-this.KS[C];this.Y(new h9(v.E.p,!1))};function du(s,m,l){ik.call(this,m,!0,"gradientbutton",18,10,gN.ir);
this.zU=-1;this.Pi=-1;this.arD=null;this.agi=s;this.J4=l}du.prototype=new ik;du.prototype.EP=function(s){var m=this.d3;
this.f(m[this.jM._()]);this.Y(new h9(v.E.p))};du.prototype.ec=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.Qm,It:"gradienteditor",K:this.Kf,QW:this.a07.bind(this),Ok:this.J4};
this.Y(m)};du.prototype.a07=function(s){this.f(s);this.Y(new h9(v.E.p))};du.prototype.iw=function(){if(!this.Xn)return;
var s=Math.floor(36*n.W()),m=Math.floor(36*n.W()),l=[],x=[],a=this.d3;for(var C=0;C<a.length;C++){var P=a[C];
x.push(P.Nm?P.Nm.v.split("=").pop():"");var o=r.W0.jj(P,s,m,Math.PI/4,this.zU,this.Pi);l.push(o)}this.jM.Hm(l,x,s,m);
this.Xn=!1};du.prototype.Yp=function(s,m){this.a1N(this.Kf,s,m)};du.prototype.f=function(s){this.a1N(s,this.zU,this.Pi)};
du.prototype.a1N=function(s,m,l){this.zU=m;this.Pi=l;if(s==null)return;var x=JSON.stringify(s),a=x+m+","+l;
if(a==this.arD)return;this.arD=a;this.Kf=JSON.parse(x);var P=Math.floor(80*n.W()),o=Math.floor(16*n.W()),G=r.W0.jj(this.Kf,P,o,0,this.zU,this.Pi);
this.UG.setAttribute("src",G);n.cO(this.UG,P,o)};du.prototype._=function(){var s;if(this.agi)s=r.W0.aae(this.Kf,this.zU,this.Pi);
else s=JSON.parse(JSON.stringify(this.Kf));return s};function fG(s){ik.call(this,s,!1,"swatchbutton",16,8.75,gN.Sm)}fG.prototype=new ik;
fG.prototype.EP=function(s){this.f(this.d3[s.target._()]);this.Y(new h9(v.E.p))};fG.prototype.iw=function(){if(!this.Xn)return;
var s=Date.now(),m=Math.floor(10*n.W()),l=Math.floor(10*n.W()),x=[],a=[],P=this.d3;for(var C=0;C<P.length;
C++){a.push(P[C].ii?P[C].ii.split("=").pop():"");x.push(fG.jj(P[C],m,l))}this.jM.Hm(x,a,m,l);this.Xn=!1};
fG.prototype.f=function(s){this.Kf=JSON.parse(JSON.stringify(s));this.nO()};fG.prototype.nO=function(){var s=Math.floor(24*n.W()),m=Math.floor(20*n.W()),l=fG.jj(this.Kf,s,m);
this.UG.setAttribute("src",l);n.cO(this.UG,s,m)};fG.prototype._=function(){return JSON.parse(JSON.stringify(this.Kf))};
fG.JU={};fG.jj=function(s,m,l){var x=fG.og,a=fG.JU,P=L.eZ(s.o<<16|s.z<<8|s.S);if(a[P])return a[P];if(x==null){var o=n.L("canvas");
x=fG.og=o.getContext("2d")}var o=x.canvas;o.width=m;o.height=l;x.fillStyle="#"+P;x.fillRect(0,0,m,l);
var G=a[P]=o.toDataURL();return G};function bE(s,m,l,x,a){if(s==null)s=!1;if(m==null)m=!1;if(l==null)l=!1;
fR.call(this);this.O2=new fz;this.oA=new fz;this.XI=72;this.ax=72;this.ip=!0;this.m=n.L("span");this.US=new dy([12,41],0,0,null,0,!1,!0);
this.m.appendChild(this.US.m);this.US.h(v.E.p,this.fl,this);var P=["px","%"];if(s)P=P.concat(["mm","in"]);
if(a){P=[[12,76,2],[12,76,6]];if(s)P=P.concat([[12,76,5],[12,76,3]])}this.jY=new ge(null,P);this.m.appendChild(this.jY.m);
n.Z0(this.m);this.jY.h(v.E.p,this.fl,this);this.uR=new dy([12,42],0,0,null,0,!1,!0);this.m.appendChild(this.uR.m);
this.uR.h(v.E.p,this.fl,this);var o=new hj("\u21F5",!1,null,!0);o.h("click",this.ajC,this);this.Fo=new hj("<img src=\""+PIMG["lrs/chain"]+"\" class=\"autoscale gsicon\" />",!1,[12,51]);
this.Fo.h("click",this.fl,this);this.aam=new jG("");if(m){this.m.appendChild(this.Fo.m);this.m.appendChild(this.aam.m);
this.Fo.Kd()}else this.m.appendChild(o.m);this.u9=new dy("DPI",0,0,null,3,!1,!0,4);if(s&&x==null){n.Z0(this.m);
this.m.appendChild(this.u9.m)}this.u9.h(v.E.p,this.fl,this);this.WM=new bj([12,23,1]);this.WM.h(v.E.p,this.fl,this);
if(l){n.Z0(this.m);this.m.appendChild(this.WM.m)}n.Z0(this.m)}bE.prototype=new fR;bE.prototype.tJ=function(){this.US.tJ()};
bE.prototype.a5h=function(){this.ip=!1;if(this.jY._()==0){this.jY.f(3);this.Yf()}};bE.prototype.a8w=function(){this.ip=!0};
bE.prototype.ahi=function(s){this.Fo.f(s)};bE.prototype.U=function(){this.US.U();this.uR.U();this.u9.U();
this.Fo.U();this.WM.U();this.jY.U()};bE.prototype.ajC=function(s){var m=this.oA.x;this.oA.x=this.oA.y;
this.oA.y=m;this.Yf();this.Y(new h9(v.E.p,!1))};bE.prototype.fl=function(s){if(s.target==this.jY&&!this.ip&&this.jY._()==0)this.jY.f(3);
if(s.target==this.jY||s.target==this.WM){this.Yf();return}if(s.target==this.Fo)s.target.f(!s.target._());
var m=this.O2,l=parseFloat(this.US._());if(isNaN(l))l=1;var x=parseFloat(this.uR._());if(isNaN(x))x=1;
var a=this.jY._();if(this.ip){var P=this.ax;if(a==1){l=this.O2.x*(l/100);x=this.O2.y*(x/100)}var o=[1,1,25.4/P,1/P][a];
l/=o;x/=o;if(this.WM._()){l+=this.O2.x;x+=this.O2.y}if(s.target==this.u9){var G=this.u9._();if(!0){var _=G/P;
l*=_;x*=_}P=G}if(this.Fo._()){if(s.target==this.US)x=l*(m.y/m.x);else l=x*(m.x/m.y)}l=Math.max(Math.abs(l),1);
x=Math.max(Math.abs(x),1)}else{var P=this.XI;if(s.target==this.u9)P=this.u9._();else{if(this.Fo._()){if(s.target==this.US)x=l*(m.y/m.x);
else l=x*(m.x/m.y)}var o=[1,1,25.4/P,1/P][a],j=l/(a==1?100:m.x*o);P=P/j}l=m.x;x=m.y}this.oA=new fz(Math.round(l),Math.round(x));
this.ax=P;this.Yf();this.Y(new h9(v.E.p,!1))};bE.prototype.ah4=function(C){this.jY.f(C);this.Yf()};bE.prototype.f=function(s,m,l){if(l!=!0)this.O2=s.clone();
this.oA=s.clone();if(m!=null){this.XI=m;this.ax=m}this.Yf()};bE.prototype.Yf=function(){var s=this.oA.x,m=this.oA.y,l=this.ax,x=(s/m).toFixed(3);
while(x.charAt(x.length-1)=="0")x=x.substring(0,x.length-1);if(x.charAt(x.length-1)==".")x=x.substring(0,x.length-1);
var a=" "+x+" : 1",P=function(U,S){while(S!=0){var X=S;S=U%S;U=X}return U},o=P(s,m);if(Math.min(s,m)/o<10)a=" "+Math.round(s/o)+" : "+Math.round(m/o);
this.aam.f(a);if(this.WM._()){s-=this.O2.x;m-=this.O2.y}var G=this.jY._();if(G==1){if(this.ip){s=100*s/this.O2.x;
m=100*m/this.O2.y}else{s=m=100*this.XI/this.ax}}else{s=Math.round(s);m=Math.round(m)}var _=[1,1,25.4/l,1/l][G];
s*=_;m*=_;var j=G==1||G==3?2:0;this.US.X9(j);this.uR.X9(j);this.US.f(s);this.uR.f(m);this.u9.f(l)};bE.prototype._=function(){return this.oA.clone()};
bE.prototype.zP=function(){return this.ax};function b4(s,m){fR.call(this);var l=s==0?["W","X","H","Y"]:["\u250F","\u2513","\u2517","\u251B"];
this.HY=s;this.a53=m;this.wA=1;this.z5=[1,1,0];var x=this.m=n.L("div","numlist"),a=this.kG=[];for(var C=0;
C<4;C++){var P=new dy(l[C],0,0,null,2,!1,!0,4);P.h(v.E.p,this.fl,this);x.appendChild(P.m);a[C]=P;if(C==1||C==3)n.Z0(x)}a[4]=new bj(s==0?[12,51]:[12,91,2]);
a[4].f(!0);x.appendChild(a[4].m)}b4.prototype=new fR;b4.prototype.U=function(){var s=this.kG;for(var C=0;
C<5;C++)s[C].U();if(this.HY==0)n.mi(s[0],s[2])};b4.prototype.f=function(s,m,l){if(m)this.z5=m;m=this.z5;
var x=l?s:this.HY==0?[s[2],s[0],s[3],s[1]]:[s[0],s[1],s[3],s[2]];this.wA=x[0]/x[2];for(var C=0;C<4;C++){var a=this.kG[C];
a.X9(m[2]==0&&this.a53?0:2);a.f(L.pE.amr(x[C],m[0],m[1],m[2]))}};b4.prototype._=function(s){var m=[],l=this.z5;
for(var C=0;C<4;C++){var x=L.pE.Hc(this.kG[C]._(),l[0],l[1],l[2]);m[C]=this.a53?Math.round(x):x}return s?m:this.HY==0?[m[1],m[3],m[0],m[2]]:[m[0],m[1],m[3],m[2]]};
b4.prototype.fl=function(s){var m=this.HY,l=this.kG.indexOf(s.currentTarget),x=this._(!0),a=this.kG[4]._();
if(m==0){x[0]=Math.max(1,x[0]);x[2]=Math.max(1,x[2]);if(a&&l==0)x[2]=x[0]/this.wA;if(a&&l==2)x[0]=x[2]*this.wA}if(m==1){x[l]=Math.max(0,x[l]);
if(a)for(var C=0;C<4;C++)x[C]=x[l]}this.f(x,null,!0);this.Y(new h9(v.E.p,!1))};function ck(){fR.call(this);
this.MI=0;this._2=[0,0,1,1,100,100];this.m=n.L("span","fitem");this.X0=new ge(null,[[12,89,0],[12,89,1],[12,89,2]]);
this.m.appendChild(this.X0.m);this.X0.h(v.E.p,this.fl,this);this.US=new dy("W",0,0,null,0,!1,!0);this.m.appendChild(this.US.m);
this.US.h(v.E.p,this.fl,this);this.uR=new dy("H",0,0,null,0,!1,!0);this.m.appendChild(this.uR.m);this.uR.h(v.E.p,this.fl,this);
this.f({gN:0,x:0,y:0})}ck.prototype=new fR;ck.prototype.U=function(){n.mi(this.US,this.uR);this.X0.U()};
ck.prototype.fl=function(s){if(s.target==this.X0){var m=this._(),l=this._2;l[this.MI*2]=m.x;l[this.MI*2+1]=m.y;
this.MI=m.gN;this.f({gN:m.gN,x:l[m.gN*2],y:l[m.gN*2+1]})}if(this.US._()<1)this.US.f(1);if(this.uR._()<1)this.uR.f(1);
this.Y(new h9(v.E.p,!1))};ck.prototype.f=function(s){this.X0.f(s.gN);this.US.f(s.x);this.uR.f(s.y);if(s.gN==0){this.US.Hv();
this.uR.Hv()}else{this.US.o5();this.uR.o5()}};ck.prototype._=function(){return{gN:this.X0._(),x:this.US._(),y:this.uR._()}};
function i7(s){fR.call(this);this.m=n.L("span","");this.aqu=s;this.LM=new cT("Off X",-100,100,s?"%":"px",0,!1);
this.Ku=new cT("Off Y",-100,100,s?"%":"px",0,!1);this.LM.h(v.E.p,this.fl,this);this.Ku.h(v.E.p,this.fl,this);
this.m.appendChild(this.LM.m);this.m.appendChild(this.Ku.m)}i7.prototype=new fR;i7.prototype.U=function(){this.LM.U();
this.Ku.U()};i7.prototype.fl=function(s){this.Y(new h9(v.E.p,!1))};i7.prototype.aek=function(s){this.LM.f(s.x);
this.Ku.f(s.y)};i7.prototype.a2t=function(){return new fz(this.LM._(),this.Ku._())};i7.prototype.f=function(s,m){var l=s.Hrzn.v,x=s.Vrtc.v;
if(this.aqu){l=l.val;x=x.val}this.LM.f(l);this.Ku.f(x);if(m==!0)this.fl()};i7.prototype._=function(){var s=this.LM._(),m=this.Ku._();
if(this.aqu)return{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:s}},Vrtc:{t:"UntF",v:{type:"#Prc",val:m}}};
else return{classID:"Pnt",Hrzn:{v:s,t:"doub"},Vrtc:{v:m,t:"doub"}}};function bt(){fR.call(this);this.m=n.L("span","fitem strokebutton");
this.HL=[[null,null,null,""],[null,0,null,"4 2"],[1,1,null,"0 2"]];this.WK=JSON.parse(JSON.stringify(i4.Ah.default));
this.a1=n.L("button");this.m.appendChild(this.a1);this.a1.addEventListener("click",this.lE.bind(this),!1);
var s=n.L("canvas","gsicon");this.og=s.getContext("2d");this.a1.appendChild(s);var m=n.L("span");m.textContent=" \u25BC";
this.a1.appendChild(m);this.DS=new fR;this.DS.parent=this;this.DS.m=n.L("div","floatcont form");var l=this.DS.m;
l.setAttribute("style","width: 14em;");this.cb=[new ge([12,40],[[19,5,2],[19,5,1],[19,5,0]]),new co([19,9,0],["<img src=\""+PIMG["caps/butt"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["caps/round"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["caps/square"]+"\" class=\"autoscale gsicon\" />"]),new co([19,9,1],["<img src=\""+PIMG["joins/miter"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["joins/round"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["joins/bevel"]+"\" class=\"autoscale gsicon\" />"]),new ep([19,9,2])];
for(var C=0;C<this.cb.length;C++){var x=this.cb[C];l.appendChild(x.m);var a=C<4?v.E.p:"click";x.h(a,this.fl,this)}n.Z0(l);
this.R9=[];var P=this.aaG.bind(this);for(var C=0;C<this.HL.length;C++){var o=n.L("button","fitem");this.R9.push(o);
l.appendChild(o);o.addEventListener("click",P,!1);var s=n.L("canvas","gsicon"),G=s.getContext("2d");
o.appendChild(s);this.aqd(G,40,20,this.HL[C])}}bt.prototype=new fR;bt.prototype.lE=function(s){var m=this.a1.getBoundingClientRect(),l=new h9(v.E.g,!0);
l.data={d:v.J.Jm,UK:this.DS,x:m.left,y:m.top+m.height+4};this.Y(l)};bt.prototype.fl=function(s){var m=this.cb,l=m.indexOf(s.target),x=[];
for(var C=0;C<4;C++)x.push(m[C]._());this.WK=this.adp(x);this.Y(new h9(v.E.p,!1))};bt.prototype.aaG=function(s){var m=this.R9.indexOf(s.currentTarget);
this.f(this.adp(this.HL[m]));this.Y(new h9(v.E.p,!1))};bt.prototype.adp=function(s){var m=JSON.parse(JSON.stringify(this.WK)),l=s[0],x=s[1],a=s[2],P=s[3];
if(l!=null)m.strokeStyleLineAlignment.v.strokeStyleLineAlignment=i4.Ah.Es[l];if(x!=null)m.strokeStyleLineCapType.v.strokeStyleLineCapType=i4.Ah.S5[x];
if(a!=null)m.strokeStyleLineJoinType.v.strokeStyleLineJoinType=i4.Ah.join[a];var o=m.strokeStyleLineDashSet.v=[];
P=P.split(" ");while((P.length&1)!=0)P.pop();for(var C=0;C<P.length;C++)o.push({t:"UntF",v:{type:"#Nne",val:parseInt(P[C])}});
return m};bt.prototype.U=function(){for(var C=0;C<this.cb.length;C++)this.cb[C].U()};bt.prototype.f=function(s){this.WK=JSON.parse(JSON.stringify(s));
var m=i4.Ah.Es.indexOf(s.strokeStyleLineAlignment.v.strokeStyleLineAlignment),l=i4.Ah.S5.indexOf(s.strokeStyleLineCapType.v.strokeStyleLineCapType),x=i4.Ah.join.indexOf(s.strokeStyleLineJoinType.v.strokeStyleLineJoinType),a=[],P=s.strokeStyleLineDashSet.v;
for(var o=0;o<P.length;o++)a.push(P[o].v.val);var G=this.cb;G[0].f(m);G[1].f(l);G[2].f(x);G[3].f(a.join(" "));
var _=[];for(var C=0;C<4;C++)_.push(G[C]._());this.aqd(this.og,40,16,_)};bt.prototype._=function(){return JSON.parse(JSON.stringify(this.WK))};
bt.prototype.aqd=function(s,m,l,x){var a=x[0],P=x[1],o=x[2],G=x[3].split(" ").map(parseFloat);n.ek(s.canvas,m,l);
var _=Math.min(5,this.WK.strokeStyleLineWidth.v.val);for(var C=0;C<G.length;C++)G[C]*=_;s.clearRect(0,0,m,l);
s.setLineDash(G);s.lineCap=["butt","round","square"][P];s.lineJoin=["miter","round","bevel"][o];s.lineWidth=_;
s.beginPath();s.moveTo(0,l/2);s.lineTo(m*2,l/2);s.stroke()};function c1(s){ik.call(this,s,!1,"contourbutton",34,16,gN.t3,!0);
this.a0=new ep([12,86],null,16);this.a0.h("input",this.w9,this);this.DS.m.appendChild(this.a0.m);this.JQ=null;
this.eD="";this.wE=null;this.f(b_.Xi())}c1.prototype=new ik;c1.prototype.U=function(){ik.prototype.U.call(this);
this.a0.U()};c1.prototype.EP=function(s){this.f(this.JQ[s.target._()[0]]);this.Y(new h9(v.E.p))};c1.prototype.w9=function(s){this.eD=this.a0._().toLowerCase();
this.adz()};c1.am=!1;c1.prototype.iw=function(){if(!this.Xn)return;var s=this.d3;if(s==null||!c1.am){var m=new h9(v.E.g,!0);
m.data={d:v.J.zy,AV:{url:"rsrc/basic/fa_basic.csh"}};this.Y(m);c1.am=!0}else{var l=Math.floor(38*n.W()),x=Math.floor(38*n.W());
this.wE=[];for(var C=0;C<s.length;C++)this.wE.push(c1.ari(s[C],l,x));this.adz();this.Xn=!1}};c1.prototype.adz=function(){var s=Math.floor(38*n.W()),m=Math.floor(38*n.W());
this.JQ=[];var l=[],x=[],a=this.d3;for(var C=0;C<a.length;C++){if(a[C].uk.toLowerCase().indexOf(this.eD)==-1)continue;
this.JQ.push(a[C]);l.push(this.wE[C]);x.push(a[C].uk)}this.jM.Hm(l,x,s,m)};c1.prototype.f=function(s){this.Kf=c1.clone(s);
this.nO()};c1.prototype.nO=function(){var s=Math.floor(23*n.W()),m=Math.floor(23*n.W()),l=c1.ari(this.Kf,s,m);
this.UG.setAttribute("src",l);n.cO(this.UG,s,m)};c1.prototype._=function(){return c1.clone(this.Kf)};
c1.clone=function(s){return{uk:s.uk,On:s.On,T:t.sD.Ps(s.T),Fd:s.Fd.clone()}};c1.w=null;c1.LO=null;c1.ari=function(s,m,l){var x=t.sD.Ps(s.T),a=s.Fd,P=Math.min(m/a.e,l/a.l)*.9,o=new ae;
o.translate(-.5,-.5);o.scale(.95,.95);o.translate(.5,.5);o.scale(P*a.e,P*a.l);L.j.G9(x,o);var G=new t.sD;
G.T=x;var _=G.SE();_.rect.x=Math.floor((m-_.rect.e)/2);_.rect.y=Math.floor((l-_.rect.l)/2);var j=L.B(_.rect.k()*4);
L._Y(_.channel,j,3);var U=c1;if(U.w==null)U.w=n.L("canvas");var S=U.w,X=S.getContext("2d");if(S.width!=m||S.height!=l||U.LO==null){S.width=m;
S.height=l;U.LO=X.createImageData(m,l)}var c=U.LO;c.data.fill(0);L.yx(j,_.rect,c.data,new bU(0,0,m,l));
X.putImageData(c,0,0);return S.toDataURL()};function dB(s){ik.call(this,s,!1,"ICCButton",16,12,gN.o4,!0);
this.jM.JV(1)}dB.prototype=new ik;dB.prototype.KT=function(){var s="Arabica 12,Ava 614,Azrael 93,Bourbon 64,Byers 11,Clayton 33,Clouseau 54,Cobi 3,Contrail 35,Cubicle 99,Django 25,Domingo 145,Faded 47,Folger 50,Fusion 88,Hyla 68,Chemical 168,Korben 214,Lenox 340,Lucky 64,McKinnon 75,Milo 5,Neon 770,Paladin 1875,Pasadena 21,Pitaya 15,Reeve 38,Remy 24,Sprocket 231,Teigen 28,Trent 18,Tweed 71,Vireo 37,Zed 32,Zeke 39".split(",");
for(var C=0;C<s.length;C++)s[C]="luts/"+s[C]+".CUBE";return s};dB.prototype.EP=function(s){this.f(this.d3[s.target._()]);
this.Y(new h9(v.E.p))};dB.prototype.iw=function(){if(!this.Xn)return;var s=Math.floor(1*n.W()),m=Math.floor(1*n.W()),l=[],x=[],a=this.d3;
for(var C=0;C<a.length;C++){var P=a[C].Nm.v.split("\\").pop().split("/").pop();x.push(P);l.push(dB.jj(a[C],s,m))}this.jM.Hm(l,x,s,m);
this.Xn=!1};dB.prototype.f=function(s){this.Kf=JSON.parse(JSON.stringify(s));this.nO()};dB.jj=function(s,m,l){var x=n.L("canvas"),o="ICC / 3DL / look / cube";
x.width=m;x.height=l;var a=x.getContext("2d"),P=Math.floor(14*n.W());a.font=P+"px sans-serif";if(s.Nm)o=s.Nm.v.split("\\").pop().split("/").pop();
a.fillText(o,10,P);return x.toDataURL()};dB.prototype.nO=function(){var s=Math.floor(120*n.W()),m=Math.floor(20*n.W());
this.UG.setAttribute("src",dB.jj(this.Kf,s,m));n.cO(this.UG,s,m)};dB.prototype._=function(){return JSON.parse(JSON.stringify(this.Kf))};
function fX(){fR.call(this);this.ft=null;this.m=n.L("span","fitem");this.Co=new dP([14,9]);this.TZ=new dy(null,0,150,"px",1,!0,null,null,[19,2,5]);
this.aX=new bt;this.j7=[this.Co,this.TZ,this.aX];for(var C=0;C<this.j7.length;C++){var s=this.j7[C];
this.m.appendChild(s.m);s.parent=this;s.h(v.E.p,this.fl,this)}}fX.prototype=new fR;fX.prototype.U=function(){for(var C=0;
C<this.j7.length;C++)this.j7[C].U()};fX.prototype.L8=function(s,m){this.Co.L8(s,m)};fX.prototype.fl=function(s){var m=this.ft,l=this.Co._(),x=l.pC;
m.strokeEnabled.v=x!=0;if(x!=0){m.strokeStyleContent.v=l.ts;l.ts.classID=i4.Ah.Lk[x-1]}m.strokeStyleLineWidth.v.val=this.TZ._();
if(s.target==this.aX)m=this.aX._();this.ft=m;this.Y(new h9(v.E.p,!1))};fX.prototype.f=function(s,m,l){this.ft=JSON.parse(JSON.stringify(m));
var x=m.strokeEnabled.v,a=m.strokeStyleContent.v,P=x?{pC:1+i4.Ah.Lk.indexOf(a.classID),ts:a}:{pC:0};
this.Co.f(s,P,l);this.TZ.f(m.strokeStyleLineWidth.v.val);this.aX.f(m)};fX.prototype._=function(){return JSON.parse(JSON.stringify(this.ft))};
function cl(s){var m=[[18,0],[18,1],[18,2],[18,3]],l=co.ey(["set/front","set/union","set/difference","set/intersection"]);
co.call(this,s?[12,36]:null,l,m)}cl.prototype=new co;function gJ(){fR.call(this);this.fV=[16,!0,!0];
this.m=n.L("span","");this.Ey=[new dy([12,24],0,255),new bj([12,25,1]),new bj([12,25,0])];for(var C=0;
C<3;C++){var s=this.Ey[C];s.parent=this;s.f(this.fV[C]);this.m.appendChild(s.m);s.h(v.E.p,this.fl,this)}}gJ.prototype=new fR;
gJ.prototype.fl=function(){for(var C=0;C<3;C++)this.fV[C]=this.Ey[C]._();this.Y(new h9(v.E.p,!1))};gJ.prototype.f=function(s){this.fV=s.slice(0);
for(var C=0;C<3;C++)this.Ey[C].f(s[C])};gJ.prototype._=function(){return this.fV.slice(0)};gJ.prototype.U=function(){for(var C=0;
C<3;C++)this.Ey[C].U()};function ak(s,m){fR.call(this);if(m==null)m=!1;this.wE=[];this.eY=Math.floor(120*n.W());
this.ake=Math.floor(23*n.W());this.Ma=0;this.CK=[];this.dP=[];for(var l in L.Lv.type){if(l=="warpCustom"&&!m)continue;
this.CK.push(l);this.dP.push(L.Lv.type[l])}this.m=n.L("span","fitem warpbutton");this.DS=new fR;this.DS.m=n.L("div","floatcont");
if(s){this.IQ=s;this.Oe=n.L("label","flabel");this.m.appendChild(this.Oe)}this.d=n.L("button");this.m.appendChild(this.d);
this.d.addEventListener("click",this.lE.bind(this),!1);this.RN=new g7(!0);this.DS.m.appendChild(this.RN.m);
this.RN.h(v.E.p,this.ar4,this);this.DS.m.setAttribute("style","width:"+Math.floor(8+this.eY/n.W())+"px;");
this.U()}ak.prototype=new fR;ak.prototype.tD=function(s){this.Oe.textContent=s};ak.prototype.U=function(){if(this.IQ)this.Oe.innerHTML=iX.get(this.IQ)+":";
this.nO()};ak.aiH={};ak.a2G=function(s,m,l){var x=iX.get(L.Lv.type[s]),a=x+"-"+s+"-"+m+"-"+l,P=ak.aiH[a];
if(P)return P;var o=ak.og;if(G==null){var G=n.L("canvas");o=ak.og=G.getContext("2d")}var G=o.canvas;
if(G.width!=m||G.height!=l){G.width=m;G.height=l}o.font=Math.floor(13*n.W())+"px sans-serif";o.lineWidth=1;
o.strokeStyle="#000000";var _=Math.floor(16*n.W()),j=new bU(0,0,_,_);o.clearRect(0,0,G.width,G.height);
var U=L.Lv.Lv(j,s,!0,.3,0,0),S=L.H.$$(j);S.r.push("M","L","M","L");S.s.push(0,_/2,_,_/2);S.s.push(_/2,0,_/2,_);
S=L.H.An(S);S=L.H.PC(S,_/5);L.k9.A(U,S.s,j);L.H.A(S.s,new ae(1,0,0,1,Math.floor(8*n.W())+.5,Math.floor(3*n.W())+.5),S.s);
o.beginPath();Typr.U.pathToContext({cmds:S.r,crds:S.s},o);o.stroke();o.fillText(x,Math.floor(40*n.W()),Math.floor(16*n.W()));
P=ak.aiH[a]=G.toDataURL();return P};ak.prototype.lE=function(s){var m=this.eY,l=this.ake;for(var C=0;
C<this.CK.length;C++)this.wE[C]=ak.a2G(this.CK[C],m,l);this.RN.Hm(this.wE,null,m,l);var x=this.d.getBoundingClientRect(),a=new h9(v.E.g,!0);
a.data={d:v.J.Jm,UK:this.DS,x:x.left,y:x.top+x.height+4};this.Y(a)};ak.prototype.ar4=function(s){var m=new h9(v.E.g,!0);
m.data={d:v.J.QV,UK:this.DS};this.Y(m);this.Ma=s.target._()[0];this.nO();this.Y(new h9(v.E.p))};ak.prototype.nO=function(){var s=this.eY,m=this.ake;
this.RN.f([this.Ma]);this.d.innerHTML="<img src=\""+ak.a2G(this.CK[this.Ma],s,m)+"\" class=\"gsicon\" />";
n.cO(this.d.firstChild,s,m)};ak.prototype._=function(){return this.CK[this.Ma]};ak.prototype.f=function(s){this.Ma=this.CK.indexOf(s);
this.nO()};function eu(s,m,l){fR.call(this);if(s==null)s=!1;if(m==null)m=!1;if(l==null)l=!1;this.a9G=m;
this.Lv=null;this.Oz=new ak([12,22],l);this.Oz.parent=this;this.Oz.h(v.E.p,this.zi,this);this.T7=new ge([22,0],[[22,4,0],[22,4,1]]);
this.T7.h(v.E.p,this.zi,this);var x=s?dy:aR;this.Mp=new x([22,1],-100,100,"%");this.HC=new x("Horizontal Distortion:",-100,100,"%");
this.bg=new x("Vertical Distortion:",-100,100,"%");this.Mp.parent=this.HC.parent=this.bg.parent=this;
this.Mp.h(v.E.p,this.zi,this);this.HC.h(v.E.p,this.zi,this);this.bg.h(v.E.p,this.zi,this)}eu.prototype=new fR;
eu.prototype.U=function(){this.Oz.U();this.T7.U();this.Mp.U();var s=this.a9G?1:100;this.HC.tD(iX.get([22,2]).substring(0,s)+":");
this.bg.tD(iX.get([22,3]).substring(0,s)+":")};eu.prototype.zi=function(){var s=this.Lv,m=this.Oz._(),l=s.warpStyle.v.warpStyle;
if(m=="warpCustom")L.Lv._u(L.Lv.Y4(s),s);else delete s.customEnvelopeWarp;s.warpStyle.v.warpStyle=this.Oz._();
s.warpRotate.v.Ornt=["Hrzn","Vrtc"][this.T7._()];s.warpValue.v=this.Mp._();s.warpPerspective.v=this.HC._();
s.warpPerspectiveOther.v=this.bg._();if(m=="warpNone"||m=="warpCustom"){s.warpValue.v=0;s.warpPerspective.v=0;
s.warpPerspectiveOther.v=0}else if(l=="warpNone"||l=="warpCustom")s.warpValue.v=50;this.Y(new h9(v.E.p,!1));
this.f(s)};eu.prototype._=function(s){return JSON.parse(JSON.stringify(this.Lv))};eu.prototype.f=function(s){this.Lv=JSON.parse(JSON.stringify(s));
this.Oz.f(s.warpStyle.v.warpStyle);this.T7.f(s.warpRotate.v.Ornt=="Hrzn"?0:1);this.Mp.f(s.warpValue.v);
this.HC.f(s.warpPerspective.v);this.bg.f(s.warpPerspectiveOther.v);var m=s.warpStyle.v.warpStyle,l=m=="warpNone"||m=="warpCustom",x=[this.T7,this.Mp,this.HC,this.bg];
for(var C=0;C<x.length;C++)if(l)x[C].Hv();else x[C].o5()};function ef(s,m){fR.call(this);this.m=n.L("div");
this.E9=s;this.QU=null;this.NC=new fz(0,0);this.cx="position:relative;overflow:hidden;";this.b7=null;
this.iN=new n.tm(this.m);this.ao5=m;this.ho("grab");this.w=n.L("canvas","canv");this.m.appendChild(this.w);
this.og=this.w.getContext("2d");this.adF=null;this.$E=null;this.DA=null;this.uq=0;this.dK=0;this.$m=0;
this.a7S=this.ao0.bind(this);this.abD=null;this.t=new gH({e:1,l:1});this.pR=null;this.p2=null;this.hI=[];
this.amu=0;this.wY=0;this.a0h=this._N.bind(this);this.adZ=this.xi.bind(this);this.akc=this.tU.bind(this);
this.acp=this.hZ.bind(this);this.apU=0;this.mb=null;this.aen(this.w);this.JW(this)}ef.prototype=new fR;
ef.ag2=function(s){var m=new dV(!0);if(s>=0)m._h("Space");if(s>=1){m._h("ControlLeft");if(s==2)m._h("AltLeft")}return m};
ef.prototype.NZ=function(s){var m=this.b7,l=null;if(s.$(dV.td)){l="grab";if(s.$(dV.bt)){l="zoom-in";
if(s.$(dV.Il))l="zoom-out"}}this.QU=l;if(l)m=l;this.iN.av(m,this.cx);if(s.$(dV.bt)){var x=0;if(s.$(dV.ko))x=1;
if(s.$(dV.xa))x=-1;if(x!=0){this.dY(new fz(this.w.width/2,this.w.height/2),x==1)}}};ef.prototype.ho=function(s){this.b7=s;
if(this.QU)return;this.iN.av(s,this.cx)};ef.prototype.aen=function(s){n.i3(s,this.a0h);n.FE(s);s.addEventListener("wheel",this.acp,!1)};
ef.prototype.JW=function(s){s.h("viewchange",this.a11,this)};ef.prototype.a11=function(s){var m=this.t.O,l=s.currentTarget.Ax();
this.t.O=l.O;this.t.X=l.X.clone();if(m!=l.O)this.gC();this.Pf()};ef.prototype.Ax=function(){return{O:this.t.O,X:this.t.X}};
ef.prototype.f=function(s,m){var l=s[0].Sb;if(this.$E!=null&&this.$E[0].Sb.yb(l)){}else{this.t.u0={e:l.e,l:l.l};
this.t.X=new fz(0,0);this.t.O=1}this.$E=s;this.gC();this.mT();this.uq=0;this.dK=0;this.$m=m==null?0:m;
this.ao0()};ef.prototype.hZ=function(s){s.preventDefault();if(s.deltaY==0||Date.now()-this.apU<100)return;
var m=n.lX(s);m.x=n.W()*m.x;m.y=n.W()*m.y;this.apU=Date.now();this.dY(m,s.deltaY<0)};ef.prototype.dY=function(s,m){r.D3.Is(this.t,s,m);
this.asM()};ef.prototype.zG=function(){var s=this.t,m=s.u0;this.t.O=r.D3.qE(m.e,m.l,s.tH.e,s.tH.l);this.asM()};
ef.prototype.asM=function(){this.gC();this.Y(new h9("viewchange"));this.Y(new h9("zoom"))};ef.prototype.gC=function(){this.DA=[];
var s=this.t.O;if(this.$E==null)return;for(var C=0;C<this.$E.length;C++){var m=this.$E[C],l=new Uint8Array(m.data),x;
if(s>=1)x={du:l,rect:m.Sb};else x=L.ajM(l,m.Sb,s);this.DA.push(x)}};ef.prototype.mT=function(){clearTimeout(this.abD)};
ef.prototype.Pf=function(){if(this.$E==null||!n.wH(this.w))return;var s=this.adF,m=this.w.width,l=this.w.height,y,O;
if(s==null||s.width!=m||s.height!=l){s=this.adF=this.og.createImageData(m,l);console.log("creating image data")}var x=this.$E[this.uq],a=this.DA[this.uq],P=this.t,o=P.u0,G=P.tH,_=G.e,j=G.l,U=o.e*P.O,S=o.l*P.O,X=Math.round((_-U)/2+P.X.x),c=Math.round((j-S)/2+P.X.y);
if(P.O<=1){O=a.rect.clone();O.x=X;O.y=c;U=O.e;S=O.l;y=a.du}else{var p=1/P.O,D=new bU(Math.floor((G.x-X)*p),Math.floor((G.y-c)*p),Math.ceil(G.e*p)+1,Math.ceil(G.l*p)+1),f=new bU(0,0,D.e*P.O,D.l*P.O);
f.x=D.x*P.O+X;f.y=D.y*P.O+c;if(P.df==null||P.df.length!=D.k()*4){P.df=L.B(D.k()*4)}if(P.Sc==null||P.Sc.length!=f.k()*4){P.Sc=L.B(f.k()*4)}L.MP(P.df,0);
L.yx(a.du,a.rect,P.df,D);L.scale.Kn(P.df,D.e,D.l,P.Sc,f.e,f.l,P.O);y=P.Sc;O=f}var T=new Uint8Array(s.data.buffer);
L.Oy(T,_,j,8,-X,-c);L.a.$P("norm",y,O,T,G,G,1);var I=this.og;I.setTransform(1,0,0,1,0,0);I.putImageData(s,0,0);
I.clearRect(X-1e3,c,1e3,S);I.clearRect(X+U,c,1e3,S);I.clearRect(X-1e3,c-1e3,U+2e3,1e3);I.clearRect(X-1e3,c+S,U+2e3,1e3);
var H=ef.alz(P.O,"#ffffff",this.ao5);I.putImageData(H,0,P.tH.l-H.height)};ef.a5d={};ef.alz=function(s,m,l){if(l==null)l=!1;
var x="z"+s+","+m+","+l,a=ef.a5d[x];if(a)return a;var P=Math.round(50*n.W()),o=Math.round(18*n.W()),G=l?2*o:0,_=n.L("canvas"),j=_.getContext("2d");
_.width=P+G;_.height=o;j.fillStyle="rgba(1,1,1,1)";j.fillRect(0,0,P+G,o);j.font=Math.round(11*n.W())+"px monospace";
j.fillStyle=m;var U=s*100;if(U<100)U=U.toFixed(2);else U=Math.round(U);U=U+"%";var S=j.measureText(U).width;
j.fillText(U,G+(P-S)/2,Math.round(o*.7));a=ef.a5d[x]=j.getImageData(0,0,P+G,o);return a};ef.prototype.ao0=function(){var s=this.$E,m=s.length,l=this.uq,x=this.$E[l],a=(l+1)%m;
this.Pf();if(m!=1&&s[a].Sb.yb(x.Sb)){var P=x.lh?parseInt(x.lh.split(",").pop()):30;if(P==0)P=16;if(a==0)this.dK++;
if(this.$m==0||this.dK<this.$m)this.abD=setTimeout(this.a7S,P)}this.uq=a};ef.prototype.jm=function(s,m){if(s<=0||m<=0)return;
var l=Math.floor(s*n.W()),x=Math.floor(m*n.W());this.t.tH=new bU(0,0,l,x);this.w.width=l;this.w.height=x;
this.w.setAttribute("style","width:"+l/n.W()+"px; height:"+x/n.W()+"px; display:block;");this.Pf()};
ef.prototype.Vm=function(s){var m=-1,l=this.hI;for(var C=0;C<l.length;C++)if(l[C].pointerId==s.pointerId)m=C;
return m};ef.prototype._N=function(s){var m=this.Vm(s),l=this.hI;if(m!=-1)l[m]=s;else l.push(s);if(l.length==1){this.mb=s.target;
n.PB(window,this.adZ);n.$u(window,this.akc);this.pR=n.lX(s,this.w);this.pR.x*=n.W();this.pR.y*=n.W();
this.NC=this.pR;this.p2=this.t.X.clone();if(this.E9&&this.mb==this.w&&!this.QU)this.Y(new h9("mousedown"))}else this.amu=this.wY=fz.rv(n.lX(l[0],this.w),n.lX(l[1],this.w))};
ef.prototype.xi=function(s){var m=this.Vm(s),l=this.hI;if(m!=-1)l[m]=s;var x=this.t,a=this.QU,P=this.$E[this.uq].Sb.clone();
P.e*=x.O;P.l*=x.O;var o=n.lX(s,this.w);o.x*=n.W();o.y*=n.W();this.NC=o;if(this.E9&&this.mb==this.w&&!a)this.Y(new h9("mousemove"));
else if((a=="grab"||a==null)&&(l.length>1||!x.tH.kq(P))){if(l.length>1){var G=n.lX(l[0],this.w),_=n.lX(l[1],this.w),j=new fz(n.W()*(G.x+_.x)/2,n.W()*(G.y+_.y)/2),U=fz.rv(G,_),S=null;
if(U>this.wY+50){this.wY+=50;S=!0}if(U<this.wY-50){this.wY-=50;S=!1}if(S!=null)this.dY(j,S);return}else{var X=o.x-this.pR.x,c=o.y-this.pR.y;
x.X.x=this.p2.x+Math.round(X);x.X.y=this.p2.y+Math.round(c)}this.Y(new h9("viewchange"))}};ef.prototype.tU=function(s){var m=this.Vm(s),l=this.hI;
l.splice(m,1);if(l.length==0){n.Ab(window,this.adZ);n.D4(window,this.akc);var x=this.QU;if(s.detail>1){this.t.O=1;
this.t.X.Qk(0,0);this.Pf()}if(this.E9&&this.mb==this.w&&!this.QU)this.Y(new h9("mouseup"));else{if(x=="zoom-in"||x=="zoom-out")this.dY(this.NC,x=="zoom-in")}}else{var a=this.pR=n.lX(l[0],this.w);
a.x*=n.W();a.y*=n.W()}};ef.prototype.QH=function(){return this.t.cr(this.NC.x,this.NC.y)};function fN(){fR.call(this);
this.Qy=null;this.fv=null;this.Wy=null;this.Zh=null;this.a0_="";this.lw=[];this.Y6=0;this.Fc=[];this.CF=0;
this.bR=null;var s=this.m=n.L("div",""),m=this.a94=n.L("div","form");m.setAttribute("style","line-height:0; margin-bottom:0.5em;");
s.appendChild(m);var l=this.IQ=n.L("span");m.appendChild(l);l.setAttribute("style","font-size:1.2em; font-weight:bold; margin-right:3em;");
var x=this.a6h=new bj([25,2,0]);x.f(!0);m.appendChild(x.m);x.h(v.E.p,this.ga,this);var a=this.km=new bj([25,2,1]);
a.f(!0);m.appendChild(a.m);a.h(v.E.p,this.ga,this);var P=new jG(" ");m.appendChild(P.m);var o=this.Xo=new ep([25,1,1]);
m.appendChild(o.m);o.h(v.E.p,this.ga,this);this.yp=new fC(14);this.yp.ad_(3);m.appendChild(this.yp.m);
this.yp.parent=this;this.yp.h(v.E.p,this.a3j,this);var G=this.adE=new hj([25,1,2],null,null,!0);m.appendChild(G.m);
G.h("click",this.gZ,this);this.af7=this.a8H.bind(this);this.U0=n.L("div","svggallery scrollable");s.appendChild(this.U0);
this.U0.addEventListener("scroll",this.abJ.bind(this))}fN.prototype=new fR;fN.prototype.L8=function(s){this.anw=s};
fN.prototype.U=function(){this.IQ.textContent=iX.get([25,0]);this.yp.U();this.a6h.U();this.km.U();this.Xo.U();
this.adE.U()};fN.prototype.jm=function(s,m){this.Qy=new fz(s,m);this.a94.setAttribute("style","width:"+s+"px");
var l=this.a94.getBoundingClientRect();m-=l.height;this.U0.setAttribute("style","width:"+s+"px; height:"+m+"px");
if(n.wH(this.m))this.ga()};fN.prototype.f=function(s){this.fv=s;this.ga()};fN.prototype.abJ=function(s){var m=this.U0;
if(m.scrollTop+m.clientHeight+10>=m.scrollHeight){this.ga(!0)}};fN.prototype.a3j=function(s){this.Wy=null;
this.ga()};fN.prototype.a8H=function(s){if(Date.now()-this.CF<2e3)return;this.CF=Date.now();this.Y6=this.Fc.indexOf(s.currentTarget);
var m=this.CA(this.fv.x,this.fv.y);if(m[1]){var l=m[1].largeImageURL,x=new XMLHttpRequest;x.responseType="arraybuffer";
x.open("GET",l,!0);x.onload=this.af_.bind(this);x.send();return}this.arF(m)};fN.prototype.af_=function(s){var m=s.target.response,l=iO.D1(m),x=iO.ln(l),a=x.Gs(m),P=this.CA(this.fv.x,this.fv.y,[m,a[0].Sb.e,a[0].Sb.l]);
this.arF(P)};fN.prototype.arF=function(s){var m=s[0],l=iO.D1(m),x=iO.ln(l),a=new jF("template.psd");
x.Gs(m,a);var P=new h9("tempready",!0);P.data={u0:a};this.Y(P)};fN.prototype.gZ=function(s){var m=s.target;
this.lw=[];this.ga()};fN.prototype.amW=function(s){var m=JSON.parse(s.target.response);this.Zh=m.hits;
this.ga()};fN.prototype.ga=function(s){if(this.fv==null||this.Qy==null||this.anw==null)return;if(this.Qy.x<=0)return;
var m=this.fv.x,l=this.fv.y;if(Math.min(m,l)<50)return;if(s!=!0){this.Fc=[];n.em(this.U0);this.U0.scrollTop=0}if(this.Fc.length>300)return;
var x=Math.min(1,300/Math.max(m,l)),a=this.Qy.clone();a.x-=20;var P=Math.max(1,Math.floor(a.x/(m*x))),o=Math.max(1,Math.ceil(a.y/(l*x)));
x=a.x/P/m;var G=P*o;if(this.Wy==null){var _=this.anw.dC.pr();this.Wy=[];for(var j in _){var U=_[j],S=U[3];
if(!this.yp.yq(U))continue;if(U[5]==null||U[5].slice(0,2)=="gf")continue;this.Wy.push(U)}if(this.Wy.length==0)this.Wy.push(_.DejaVuSans)}var X=this.km._(),c=this.Xo._().trim();
this.Xo.k5(X);if(X&&(this.Zh==null||c!=this.a0_)){var y=new XMLHttpRequest,O="https://pixabay.com/api/?image_type=photo"+(c==""?"":"&q="+encodeURIComponent(c))+"&per_page=200&page=1&key=10554583-a5eacb61c2e61105fdfb6eb88";
if(c=="")O+="&safesearch=true";if(c=="")O="plugins/gallery.json";y.open("GET",O,!0);y.onload=this.amW.bind(this);
y.onerror=function(H){console.log(H.target.response)};y.send();this.a0_=c;return}x*=(m*x-5)/(m*x);var p=this.Fc.length;
for(var C=0;C<G;C++){var D=this.Y6=p+C;if(this.lw[D]==null)this.lw[D]=Math.floor(Math.random()*4294967295);
var f=this.CA(Math.round(m*x),Math.round(l*x)),T=f[0];T=g.V_(new Uint8Array(T));var I=n.L("span");I.innerHTML=T;
this.Fc.push(I);this.U0.appendChild(I);I.addEventListener("click",this.af7,!1)}};fN.prototype.CA=function(s,m,l){var x=this.km._(),a=this.a6h._(),P=x&&this.Zh.length!=0?this.Zh:null;
if(a&&!x)P=null;if(a&&x&&(this.Y6&1)==0)P=null;return by.sh(s,m,this.lw[this.Y6],this.Wy,l?l:P)};function ev(){fR.call(this);
this.m=n.L("div");this.ys=null;this.aiE=null;this.MS=-1;this.NB={JPG:[{_0:new aR([12,52,0],0,100,"%",null,null,!0),pP:70},{_0:new bj("attach metadata"),pP:!1}],TIFF:[{_0:new bj("attach metadata"),pP:!1}],WEBP:[{_0:new aR([12,52,0],0,100,"%",null,null,!0),pP:70}],GIF:[{_0:new aR([12,52,0],0,100,"%",null,null,!0),pP:100},{_0:new bj([12,23,3]),pP:!1}],PNG:[{_0:new aR([12,52,0],0,100,"%",null,null,!0),pP:100},{_0:new bj("don't use palettes"),pP:!1}],PDF:[{_0:new ep([12,52,1]),pP:""},{_0:new aR([12,52,0],0,100,"%",null,null,!0),pP:100},{_0:new bj("rasterize all"),pP:!1},{_0:new bj("rasterize text"),pP:!1},{_0:new bj("vectorize text"),pP:!1},{_0:new aR("Add Margin",0,5,"in",2),pP:0}],EMF:[{_0:new ep([12,52,1]),pP:""},{_0:new bj("rasterize all"),pP:!1},{_0:new bj("rasterize text"),pP:!1},{_0:new bj("vectorize text"),pP:!1}],SVG:[{_0:new bj("add raster graphics"),pP:!0},{_0:new bj("add hidden layers"),pP:!1},{_0:new bj("vectorize text"),pP:!1},{_0:new bj("rasterize text"),pP:!1},{_0:new bj("add layer names"),pP:!0},{_0:new bj("pretty-print"),pP:!0}],RAW:[{_0:new co([12,72],["1","3","4"]),pP:2},{_0:new co([12,34],["8 Bits","16 Bits"]),pP:0},{_0:new co("Byte Order",["12-34","34-12"]),pP:0}],DDS:[{_0:new bj("Add Mipmaps"),pP:!0},{_0:new bj("Compression"),pP:!0}],anim:[{_0:new aR("Speed",10,800,"%",null,!0,!0),pP:100},{_0:new dy("Repeat (0 = Forever)",0,10," \xD7",0,!1,!0),pP:0},{_0:new bj("reverse frames"),pP:!1},{_0:new bj("boomerang"),pP:!1}],slcs:[{_0:new bj("As Slices"),pP:!0}],artb:[{_0:new bj("As Artboards"),pP:!0}]};
for(var s in this.NB){var m=this.NB[s];for(var C=0;C<m.length;C++){m[C]._0.f(m[C].pP);m[C]._0.h(v.E.p,this.ym,this)}}}ev.prototype=new fR;
ev.prototype.a5t=function(){this.MS=-1};ev.prototype.U=function(){for(var s in this.NB)for(var C=0;C<this.NB[s].length;
C++)this.NB[s][C]._0.U()};ev.prototype.ym=function(){this.ga();this.Y(new h9(v.E.p,!1))};ev.prototype.ga=function(){var s=this.ys,m=s[0],l=s[1],x=s[2],a=s[3],P=this.NB[m];
if(P==null)P=[];else P=P.slice(0);if(l)P=P.concat(this.NB.anim);if(["GIF","PNG","JPG"].indexOf(m)!=-1&&x)P=P.concat(this.NB.slcs);
else if(["GIF","PNG","JPG"].indexOf(m)!=-1&&a)P=P.concat(this.NB.artb);if(m+" "+l+" "+a!=this.MS){this.MS=m+" "+l+" "+a;
n.em(this.m);for(var C=0;C<P.length;C++){if(m=="PDF"&&!a&&C==0)continue;this.m.appendChild(P[C]._0.m);
n.Z0(this.m)}}var o=this.aiE=[];for(var C=0;C<P.length;C++)o.push(P[C]._0._())};ev.prototype.a6d=function(s,m,l,x){this.ys=[s,m,l,x];
this.ga()};ev.prototype._=function(){return this.aiE.slice(0)};function dl(){fR.call(this);this.m=n.L("span","fitem");
this.Lw=!1;this.p6=new hj("No",!1,"Cancel");this.aH=new hj("Yes",!1,"Confirm");this.m.appendChild(this.p6.m);
this.m.appendChild(this.aH.m);this.p6.h("click",this.Le,this);this.aH.h("click",this.Le,this);this.U()}dl.prototype=new fR;
dl.prototype.U=function(){this.p6.tD(n.C5("cross",null,"autoscale"));this.aH.tD(n.C5("checkmark",null,"autoscale"))};
dl.prototype.Le=function(s){this.Lw=s.target==this.aH;this.Y(new UIEvent("click"))};dl.prototype._=function(){return this.Lw};
function gZ(){fR.call(this);var s=this.m=n.L("div","fitem");this.FK=new ge([12,46],[[13,1,8],[13,1,10],[13,1,9],[12,47]]);
this.FK.h(v.E.p,this.fl,this);s.appendChild(this.FK.m);this.Qt=new fM(!1);this.Qt.parent=this;this.Qt.XC(16777215);
this.Qt.h(v.E.p,this.fl,this);s.appendChild(this.Qt.m)}gZ.prototype=new fR;gZ.prototype.U=function(){this.FK.U();
this.Qt.U()};gZ.prototype.al$=function(s){var m=[s.artboardBackgroundType.v-1];if(s.Clr)m.push(s.Clr.v);
this.f(m)};gZ.prototype.aeT=function(){var s=this._();return{classID:"artboard",Clr:{t:"Objc",v:s[1]},artboardBackgroundType:{t:"long",v:s[0]+1}}};
gZ.prototype.f=function(s){this.FK.f(s[0]);if(s[1])this.Qt.f(s[1])};gZ.prototype._=function(){return[this.FK._(),this.Qt._()]};
gZ.prototype.fl=function(s){if(s.target==this.Qt)this.FK.f(3);this.Y(new h9(v.E.p,!1))};function B(s){fR.call(this);
this.bj=s;this.m=n.L("div","");this.jH=[];this.N0=null;this.acb=[]}B.prototype=new fR;B.prototype.W$=function(s){};
B.prototype.Dl=function(){return!1};B.prototype.jm=function(s,m){};B.prototype.L8=function(s,m){};B.prototype.AF=function(s){};
B.prototype.f=function(s,m,l,x,a,P){var o=[],G=this.jH,_=0,j=ib.yV["s"+this.bj];j?j(s,o,P):this.S3(s,o,P);
for(var C=0;C<G.length;C++)if(!(G[C]instanceof jG))G[C].f(o[_++]);if(s.RndS)this.N0=s.RndS.v};B.prototype._=function(){var s=ib.Xi(this.bj),m=[],l=this.jH,x=0;
for(var C=0;C<l.length;C++)if(!(l[C]instanceof jG))m[x++]=l[C]._();var a=ib.yV["g"+this.bj];a?a(s,m):this.TM(s,m);
if(s.RndS)s.RndS.v=this.N0;return s};B.prototype.NZ=function(s){};B.prototype.zi=function(s){if(s&&s.target instanceof hj){this.N0=Math.floor(Math.random()*4294967295)}var m=this.acb;
for(var C=0;C<m.length;C+=2){var l=this.jH[m[C]],x=this.jH[m[C+1]],a=l._(),P=x._();if(s.target==l)x.f(Math.max(a,P));
else l.f(Math.min(a,P))}this.Y(new h9(v.E.p))};B.prototype.U=function(){for(var C=0;C<this.jH.length;
C++)this.jH[C].U();var s=this.arM;if(s)s.U()};B.prototype.D2=function(s){n.RY(this.m,"form");var m=this.jH;
for(var C=0;C<m.length;C++){var l=m[C];l.parent=this;l.h(v.E.p,this.zi,this);this.m.appendChild(l.m);
if(l instanceof bj&&m[C+1]instanceof fM)continue;if(s&&s.indexOf(C)!=-1)n.ti(this.m);else n.Z0(this.m)}var x=ib.Xi(this.bj);
if(x.RndS){var a=this.arM=new hj([25,1,2],null,null,!0);this.m.appendChild(a.m);a.h("click",this.zi,this)}};
B.prototype.aO=function(){return!1};B.prototype.s1=function(s,m,l,x,a){};B.prototype.zk=function(s,m,l,x,a){};
B.prototype.I6=function(s,m,l,x,a){};B.prototype.TM=function(s,m){};B.prototype.S3=function(s,m){};B.prototype.J$=function(s){var m=s.target._().indexOf(!0)!=-1,l=new h9(v.E.g,!0);
l.zZ=!0;l.data={d:m?v.J._I:v.J.P_,c:r.e5};this.Y(l);l=new h9(v.E.u,!0);l.c=r.e5;l.zZ=!0;l.data={d:"supertool",c:m?this:null};
this.Y(l)};B.ajq=function(s){s.aO=function(){return!0};s.s1=function(m,l,x,a,P){this.EL=!0;this.aaN(m,P)};
s.zk=function(m,l,x,a,P){if(!this.EL)return;this.aaN(m,P)};s.I6=function(m,l,x,a,P){this.EL=!1};s.aaN=function(m,l){var x=m.t.cr(l.x,l.y);
function a(P,o){return Math.round(Math.max(0,Math.min(100,100*P/o)))}this.jH[2].f(a(x.x,m.e));this.jH[3].f(a(x.y,m.l));
this.zi()}};B.Bokh=function(){B.call(this,"Bokh");this.jH=[new ge("Depth Map",["A","b"]),new aR("Focal Distance",0,255),new bj([4,11]),new ge([12,76,1],["Triangle (3)",["VAR0 (4)",[12,93,3]],"Pentagon (5)","Hexagon (6)","Heptagon (7)","Octagon (8)"]),new aR([12,56],0,100),new aR([12,15],0,360),new aR([12,2],0,100),new aR([4,13],0,255),new aR([24,6],0,100),new co([12,58],[[12,59,0],[12,59,1]]),new bj([12,60])];
this.D2([4,6])};B.Bokh.prototype=new B;B.Bokh.prototype.S3=function(s,m,l){var x=[[22,5,0],[6,5,3],[6,2]],a=s.BkDi.v.BtDi,P=s.BkDc,o=0;
if(a=="BeIn")o=0;else if(a=="BeIt"&&P.v.BtDc=="BeCt")o=1;else if(a=="BeIt"&&P.v.BtDc=="BeCm")o=2;else o=3+P.v;
for(var C=0;C<l[1].length;C++)x.push(l[1][C].name);this.jH[0].AZ(x,[3]);m[0]=o;m[1]=s.BkDp.v;m[2]=s.BkDs.v;
m[3]=parseInt(s.BkIs.v.BtIs.slice(3))-3;m[4]=s.BkIb.v;m[5]=s.BkIr.v;m[6]=s.BkSb.v;m[7]=s.BkSt.v;m[8]=s.BkNa.v;
m[9]=s.BkNt.v.BtNt=="BeNu"?0:1;m[10]=s.BkNm.v};B.Bokh.prototype.TM=function(s,m){var l;if(m[0]==0){l="BeIn";
delete s.BkDc}else if(m[0]<3){l="BeIt";s.BkDc={t:"enum",v:{BtDc:["BeCt","BeCm"][m[0]-1]}}}else{l="BeIa";
s.BkDc={t:"long",v:m[0]-3}}s.BkDi.v.BtDi=l;s.BkDp.v=m[1];s.BkDs.v=m[2];s.BkIs.v.BtIs="BeS"+(3+m[3]);
s.BkIb.v=m[4];s.BkIr.v=m[5];s.BkSb.v=m[6];s.BkSt.v=m[7];s.BkNa.v=m[8];s.BkNt.v.BtNt=["BeNu","BeNg"][m[9]];
s.BkNm.v=m[10]};B.oilPaint=function(){B.call(this,"oilPaint");this.jH=[new aR([12,56],.1,10,"px",!0),new aR("Cleanliness",0,10,"px",!0),new aR([12,38],.1,10,null,!0),new aR("Bristle Detail",0,10,null,!0),new bj("Lighting"),new aR("Shine",0,10,null,!0),new jx([12,15])];
this.D2()};B.oilPaint.prototype=new B;B.oilPaint.prototype.S3=function(s,m){var l="stylization cleanliness brushScale microBrush lightingOn specularity".split(" ");
for(var C=0;C<l.length;C++)m[C]=s[l[C]].v;m[6]=[s.LghD.v]};B.oilPaint.prototype.TM=function(s,m){var l="stylization cleanliness brushScale microBrush lightingOn specularity".split(" ");
for(var C=0;C<l.length;C++)s[l[C]].v=m[C];s.LghD.v=m[6][0]};B.TrcC=function(){B.call(this,"TrcC");this.jH=[new aR("Level",0,255),new co([12,69],[[19,4,1],[19,4,0]])];
this.D2()};B.TrcC.prototype=new B;B.TrcC.prototype.S3=function(s,m){m[0]=s.Lvl.v;m[1]=["Lwr","Upr"].indexOf(s.Edg.v.CntE)};
B.TrcC.prototype.TM=function(s,m){s.Lvl.v=m[0];s.Edg.v.CntE=["Lwr","Upr"][m[1]]};B["Dfs "]=function(){B.call(this,"Dfs ");
this.jH=[new co([12,36],[[15,10,0],[15,10,6],[15,10,11],"Anisotropic"])];this.D2()};B["Dfs "].prototype=new B;
B["Dfs "].prototype.S3=function(s,m){m[0]=["Nrml","DrkO","LghO","anisotropic"].indexOf(s.Md.v.DfsM)};
B["Dfs "].prototype.TM=function(s,m){s.Md.v.DfsM=["Nrml","DrkO","LghO","anisotropic"][m[0]]};B.Embs=function(){B.call(this,"Embs");
this.jH=[new jx([12,15]),new aR([12,42],1,100,"px"),new aR([12,57],1,500,"%")];this.D2()};B.Embs.prototype=new B;
B.Embs.prototype.S3=function(s,m){m[0]=[s.Angl.v];m[1]=s.Hght.v;m[2]=s.Amnt.v};B.Embs.prototype.TM=function(s,m){s.Angl.v=m[0][0];
s.Hght.v=m[1];s.Amnt.v=m[2]};B["Wnd "]=function(){B.call(this,"Wnd ");this.jH=[new co([12,32],["Wind","Blast","Stagger"]),new co([12,33],["From the Right","From the Left"])];
this.D2()};B["Wnd "].prototype=new B;B["Wnd "].prototype.S3=function(s,m){m[0]=["Wnd","Blst","Stgr"].indexOf(s.WndM.v.WndM);
m[1]=["Left","Rght"].indexOf(s.Drct.v.Drct)};B["Wnd "].prototype.TM=function(s,m){s.WndM.v.WndM=["Wnd","Blst","Stgr"][m[0]];
s.Drct.v.Drct=["Left","Rght"][m[1]]};B.denoise=function(){B.call(this,"denoise");this.jH=[new aR([12,64],0,10),new aR([12,65],0,100,"%")];
this.D2()};B.denoise.prototype=new B;B.denoise.prototype.S3=function(s,m){var l=s.channelDenoise.v[0].v;
m[0]=l.Amnt.v;m[1]=l.EdgF.v};B.denoise.prototype.TM=function(s,m){var l=s.channelDenoise.v[0].v;l.Amnt.v=m[0];
l.EdgF.v=m[1]};B.lightFilterGradient=function(){B.call(this,"lightFilterGradient");this.jH=[new aR([24,3,1],0,100,"px",1,!0),new aR([12,38],0,200,"%"),new bj([4,11]),new aR("High",0,100,"%"),new aR("Medium",0,100,"%"),new aR("Low",0,100,"%")];
this.D2()};B.lightFilterGradient.prototype=new B;B.lightFilterGradient.prototype.S3=function(s,m){m[0]=s.blur.v;
m[1]=s.textureScale.v*100;m[2]=s.Scl.v==-1;var l=s.Dtl.v;m[3]=l[0].v*100;m[4]=l[1].v*100;m[5]=l[2].v*100};
B.lightFilterGradient.prototype.TM=function(s,m){s.blur.v=m[0];s.textureScale.v=m[1]/100;s.Scl.v=m[2]?-1:1;
var l=s.Dtl.v;l[0].v=m[3]/100;l[1].v=m[4]/100;l[2].v=m[5]/100};B.Fbrs=function(){B.call(this,"Fbrs");
this.jH=[new aR("Variance",1,64),new aR([12,64],1,64)];this.D2()};B.Fbrs.prototype=new B;B.Fbrs.prototype.S3=function(s,m){m[0]=s.Vrnc.v;
m[1]=s.Strg.v};B.Fbrs.prototype.TM=function(s,m){s.Vrnc.v=m[0];s.Strg.v=m[1]};B.LnsF=function(){B.call(this,"LnsF");
this.jH=[new aR([12,2],10,300,"%"),new co([12,44],["Lens 1","Lens 2","Lens 3","Lens 4"]),new aR("Position X",0,100,"%"),new aR("Position Y",0,100,"%")];
this.D2()};B.LnsF.prototype=new B;B.LnsF.prototype.S3=function(s,m){m[0]=s.Brgh.v;m[1]=["Zm","Nkn","Nkn1","PnVs"].indexOf(s.Lns.v.Lns);
var l=s.FlrC.v;m[2]=Math.round(l.Hrzn.v*100);m[3]=Math.round(l.Vrtc.v*100)};B.LnsF.prototype.TM=function(s,m){s.Brgh.v=m[0];
s.Lns.v.Lns=["Zm","Nkn","Nkn1","PnVs"][m[1]];var l=s.FlrC.v;l.Hrzn.v=m[2]/100;l.Vrtc.v=m[3]/100};B.ajq(B.LnsF.prototype);
B.blendOptions=function(){B.call(this,"blendOptions");this.jH.push(new ge([12,19,0],aA.dP,!1,aA.Nx));
this.jH.push(new aR([12,0],0,100,"%"));this.D2()};B.blendOptions.prototype=new B;B.blendOptions.prototype.S3=function(s,m){m[0]=aA.Bo.indexOf(s.Md.v.BlnM);
m[1]=s.Opct.v.val};B.blendOptions.prototype.TM=function(s,m){s.Md.v.BlnM=aA.Bo[m[0]];s.Opct.v.val=m[1]};
B.LnCr=function(){B.call(this,"LnCr");this.jH=[new aR([12,57],-100,100),new aR([12,38],10,150,"%")];
this.D2()};B.LnCr.prototype=new B;B.LnCr.prototype.S3=function(s,m){m[0]=s.LnIa.v;m[1]=s.LnSi.v};B.LnCr.prototype.TM=function(s,m){s.LnIa.v=m[0];
s.LnSi.v=m[1]};B.adaptCorrect=function(){B.call(this,"adaptCorrect");var s=cT;this.jH=[new jG([19,6,0]),new s([12,57],0,100,"%"),new s("Tone",0,100,"%"),new s([12,56],0,200,"px"),new jG([19,6,2]),new s([12,57],0,100,"%"),new s("Tone",0,100,"%"),new s([12,56],0,200,"px"),new jG([3]),new s([13,0],-100,100)];
this.D2([3,7])};B.adaptCorrect.prototype=new B;B.adaptCorrect.prototype.S3=function(s,m){var l=s.sdwM.v;
m[0]=l.Amnt.v.val;m[1]=l.Wdth.v.val;m[2]=l.Rds.v;var l=s.hglM.v;m[3]=l.Amnt.v.val;m[4]=l.Wdth.v.val;
m[5]=l.Rds.v;m[6]=s.ClrC.v};B.adaptCorrect.prototype.TM=function(s,m){var l=s.sdwM.v;l.Amnt.v.val=m[0];
l.Wdth.v.val=m[1];l.Rds.v=m[2];var l=s.hglM.v;l.Amnt.v.val=m[3];l.Wdth.v.val=m[4];l.Rds.v=m[5];s.ClrC.v=m[6]};
B.Flam=function(){B.call(this,"Flam");var s=this.jH=[new ge([12,44],"One Flame Along Path,Multiple Flames Along Path,Multiple Flames One Direction,Multiple Flames Path Directed,Multiple Flames Various Angle,Candle Light".split(",")),new aR([12,80,0],20,1e3,"px"),new bj("Randomize Length"),new aR([12,41],5,600,"px"),new aR([12,15],0,360,"\xB0"),new aR("Interval",10,200,"px"),new bj("Adapt Interval for Loops"),new fM(!1),new ge([12,52,0],["1: Draft","2: Low","3: Medium","4: High","5: Fine"]),new aR("Turbulent",0,100),new aR("Jag",0,100),new aR([12,0],0,100),new aR("Lines",2,30),new aR("Bottom",0,100),new ge([12,22],["Normal","Violent","Flat"]),new ge([12,76,1],["Parallel","To the center","Spread","Oval","Pointing"]),new bj("Randomize Shape"),new aR("Random Seed",0,100)];
this.D2();var m=this.m;n.em(m);var l=new co(null,["Basic","Advanced"]);l.h(v.E.p,this.au1,this);m.appendChild(l.m);
n.ti(m);var x=n.L("div"),a=n.L("div");this.acU=[x,a];m.appendChild(x);for(var C=0;C<s.length;C++){(C<9?x:a).appendChild(s[C].m);
if(C==6)n.Z0(x)}s[0].h(v.E.p,this.aia,this);this.aia()};B.Flam.prototype=new B;B.Flam.prototype.aia=function(s){var m=this.jH,C=m[0]._();
m[1].k5(C!=0&&C!=5);m[2].k5(C!=0&&C!=5);m[4].k5(C!=0&&C!=5&&C!=1);m[5].k5(C!=0&&C!=5);m[6].k5(C!=0&&C!=5)};
B.Flam.prototype.au1=function(s){var C=s.target._(),m=this.acU,l=this.m;l.removeChild(m[1-C]);l.appendChild(m[C])};
B.boxblur=function(){B.call(this,"boxblur");this.jH=[new aR([12,56],1,200," px")];this.D2()};B.boxblur.prototype=new B;
B.boxblur.prototype.S3=function(s,m){m[0]=s.Rds.v.val};B.boxblur.prototype.TM=function(s,m){s.Rds.v.val=m[0]};
B.GsnB=function(){B.call(this,"GsnB");this.jH=[new aR([12,56],.1,400,"px",1,!0)];this.D2()};B.GsnB.prototype=new B;
B.MtnB=function(){B.call(this,"MtnB");this.jH=[new jx([12,15]),new aR([12,28],1,100," px")];this.D2()};
B.MtnB.prototype=new B;B.RdlB=function(){B.call(this,"RdlB");this.jH=[new aR([12,57],1,100),new co([12,36],["Spin","Zoom"]),new aR("Position X",0,100,"%"),new aR("Position Y",0,100,"%")];
this.D2()};B.RdlB.prototype=new B;B.RdlB.prototype.S3=function(s,m){m[0]=s.Amnt.v;m[1]=["Spn","Zm"].indexOf(s.BlrM.v.BlrM);
m[2]=s.Cntr.v.Hrzn.v*100;m[3]=s.Cntr.v.Vrtc.v*100};B.RdlB.prototype.TM=function(s,m){s.Amnt.v=m[0];s.BlrM.v.BlrM=["Spn","Zm"][m[1]];
s.Cntr.v.Hrzn.v=m[2]/100;s.Cntr.v.Vrtc.v=m[3]/100};B.ajq(B.RdlB.prototype);B.Dspl=function(){B.call(this,"Dspl");
this.jH=[new ge([6,36,3],["a","b"]),new aR([22,4,0],-100,100,"px"),new aR([22,4,1],-100,100,"px"),new ge([24,18,0],[[24,18,3],[24,18,2]])];
this.D2()};B.Dspl.prototype=new B;B.Dspl.prototype.S3=function(s,m,l){this.anZ=[];this.KH=[];var x=-1,a=l?l[0]:null;
if(a==null)a=this.a93;else this.a93=a;if(a)for(var C=0;C<a.length;C++){var P=a[C];this.anZ.push(P.zA.trim());
this.KH.push(P.te);if(P.te==s.DspF.v.pth)x=C}this.jH[0].AZ(this.anZ);m[0]=x==-1?0:x;m[1]=s.HrzS.v;m[2]=s.VrtS.v;
m[3]=["WrpA","RptE"].indexOf(s.UndA.v.UndA)};B.Dspl.prototype.TM=function(s,m){if(this.KH.length==0)return;
s.DspF.v.pth=this.KH[m[0]];s.HrzS.v=m[1];s.VrtS.v=m[2];s.UndA.v.UndA=["WrpA","RptE"][m[3]]};B.Pnch=function(){B.call(this,"Pnch");
this.jH=[new aR([12,57],-100,100,"%")];this.D2()};B.Pnch.prototype=new B;B["Plr "]=function(){B.call(this,"Plr ");
this.jH=[new co(null,["Rect to Polar","Polar to Rect"])];this.D2()};B["Plr "].prototype=new B;B.Rple=function(){B.call(this,"Rple");
this.jH=[new aR([12,57],-999,999),new ge([12,14,0],[[19,8,0],[19,8,1],[19,8,2]])];this.D2()};B.Rple.prototype=new B;
B["Shr "]=function(){B.call(this,"Shr ");this.jH=[new dD(!0,!0),new ge([24,18,0],[[24,18,3],[24,18,2]])];
this.D2()};B["Shr "].prototype=new B;B["Shr "].prototype.S3=function(s,m){var l=new ae(0,255/127,255/127,0,-2,128),x=JSON.parse(JSON.stringify(s.ShrP.v));
L.so.A(x,l);m[0]=x;m[1]=["WrpA","RptE"].indexOf(s.UndA.v.UndA)};B["Shr "].prototype.TM=function(s,m){var l=new ae(0,255/127,255/127,0,-2,128);
l.ms();L.so.A(m[0],l);s.ShrP.v=m[0];s.ShrE.v=m[0].length-1;s.UndA.v.UndA=["WrpA","RptE"][m[1]]};B.Sphr=function(){B.call(this,"Sphr");
this.jH=[new aR([12,57],-100,100),new ge([12,36],[[15,10,0],[22,4,0],[22,4,1]])];this.D2()};B.Sphr.prototype=new B;
B.Sphr.prototype.S3=function(s,m){m[0]=s.Amnt.v;m[1]=["Nrml","HrzO","VrtO"].indexOf(s.SphM.v.SphM)};
B.Sphr.prototype.TM=function(s,m){s.Amnt.v=m[0];s.SphM.v.SphM=["Nrml","HrzO","VrtO"][m[1]]};B.Dthr=function(){B.call(this,"Dthr");
this.jH=[new ge("Palette",[[4,7],"RGB 2x2x2","RGB 4x4x4","RGB 8x8x4"])];this.D2()};B.Dthr.prototype=new B;
B.Dthr.prototype.S3=function(s,m){m[0]=s.Plte.v};B.Dthr.prototype.TM=function(s,m){s.Plte.v=m[0]};B.Twrl=function(){B.call(this,"Twrl");
this.jH=[new aR([12,15],-999,999)];this.D2()};B.Twrl.prototype=new B;B.Wave=function(){B.call(this,"Wave");
this.acb=[1,2,3,4];this.jH=[new aR("Number of Generators",1,100),new cT("Min Length",1,999),new cT("Max Length",1,999),new cT("Min Ampl.",1,999),new cT("Max Ampl.",1,999),new cT("Scale X",1,100,"%"),new cT("Scale Y",1,100,"%"),new co([12,44],["Sine","Triangle",[12,93,3]]),new ge([24,18,0],[[24,18,3],[24,18,2]]),new ep("Randomizer Seed")];
this.D2()};B.Wave.prototype=new B;B.Wave.prototype.S3=function(s,m){m[0]=s.NmbG.v;m[1]=s.WLMn.v;m[2]=s.WLMx.v;
m[3]=s.AmMn.v;m[4]=s.AmMx.v;m[5]=s.SclH.v;m[6]=s.SclV.v;m[7]=["WvSn","WvTr","WvSq"].indexOf(s.Wvtp.v.Wvtp);
m[8]=["WrpA","RptE"].indexOf(s.UndA.v.UndA);m[9]=s.RndS.v};B.Wave.prototype.TM=function(s,m){s.NmbG.v=m[0];
s.WLMn.v=m[1];s.WLMx.v=m[2];s.AmMn.v=m[3];s.AmMx.v=m[4];s.SclH.v=m[5];s.SclV.v=m[6];s.Wvtp.v.Wvtp=["WvSn","WvTr","WvSq"][m[7]];
s.UndA.v.UndA=["WrpA","RptE"][m[8]];var l=parseInt(m[9]);if(isNaN(l))l=248325464;l=Math.max(0,Math.min(268435455,l));
s.RndS.v=l;this.jH[9].f(l)};B.ZgZg=function(){B.call(this,"ZgZg");this.jH=[new aR([12,57],-100,100),new aR("Ridges",0,20),new ge([12,22],["Around Center","Out From Center","Pond Ripples"])];
this.D2()};B.ZgZg.prototype=new B;B.surfaceBlur=function(){B.call(this,"surfaceBlur");this.jH=[new aR([12,56],1,200," px"),new aR([4,13],1,255," px")];
this.D2()};B.surfaceBlur.prototype=new B;B.surfaceBlur.prototype.S3=function(s,m){m[0]=s.Rds.v.val;m[1]=s.Thsh.v};
B.surfaceBlur.prototype.TM=function(s,m){s.Rds.v.val=m[0];s.Thsh.v=m[1]};B.AdNs=function(){B.call(this,"AdNs");
this.jH=[new aR([12,57],0,200," %"),new ge([12,58],[[12,59,1],[12,59,0]]),new bj([12,60])];this.D2()};
B.AdNs.prototype=new B;B.DstS=function(){B.call(this,"DstS");this.jH=[new aR([12,56],1,200," px"),new aR([4,13],1,255," px")];
this.D2()};B.DstS.prototype=new B;B["Mdn "]=function(){B.call(this,"Mdn ");this.jH=[new aR([12,56],1,200," px")];
this.D2()};B["Mdn "].prototype=new B;B["Mdn "].prototype.S3=function(s,m){m[0]=s.Rds.v.val};B["Mdn "].prototype.TM=function(s,m){s.Rds.v.val=m[0]};
B.ClrH=function(){B.call(this,"ClrH");this.jH=[new aR([12,56],4,100," px")];for(var C=1;C<4;C++)this.jH.push(new aR("Angle "+C,0,90," \xB0"));
this.D2()};B.ClrH.prototype=new B;B.ClrH.prototype.S3=function(s,m){m[0]=s.Rds.v;for(var C=1;C<4;C++)m[C]=s["Ang"+C].v};
B.ClrH.prototype.TM=function(s,m){s.Rds.v=m[0];for(var C=1;C<4;C++)s["Ang"+C].v=m[C]};B.ClrH.prototype.U=function(){var s=this.jH;
s[0].U();for(var C=1;C<4;C++)s[C].tD(iX.get([12,15])+" "+C)};B.Crst=function(){B.call(this,"Crst");this.jH=[new aR([12,61],3,100," px")];
this.D2()};B.Crst.prototype=new B;B.Crst.prototype.S3=function(s,m){m[0]=s.ClSz.v};B.Crst.prototype.TM=function(s,m){s.ClSz.v=m[0]};
B.Mztn=function(){B.call(this,"Mztn");this.jH.push(new ge([12,44],"Fine Dots,Medium Dots,Grainy Dots,Coarse Dots,Short Lines,Medium Lines,Long Lines,Short Strokes,Medium Strokes,Long Strokes".split(","),null,[4,3,3]));
this.KH="FnDt MdmD GrnD CrsD ShrL MdmL LngL ShSt MdmS LngS".split(" ");this.D2()};B.Mztn.prototype=new B;
B.Mztn.prototype.S3=function(s,m){m[0]=this.KH.indexOf(s.MztT.v.MztT)};B.Mztn.prototype.TM=function(s,m){s.MztT.v.MztT=this.KH[m[0]]};
B["Msc "]=function(){B.call(this,"Msc ");this.jH=[new aR([12,61],2,200," px")];this.D2()};B["Msc "].prototype=new B;
B["Msc "].prototype.S3=function(s,m){m[0]=s.ClSz.v.val};B["Msc "].prototype.TM=function(s,m){s.ClSz.v.val=m[0]};
B.Pntl=function(){B.call(this,"Pntl");this.jH=[new aR([12,61],3,100," px")];this.D2()};B.Pntl.prototype=new B;
B.Pntl.prototype.S3=function(s,m){m[0]=s.ClSz.v};B.Pntl.prototype.TM=function(s,m){s.ClSz.v=m[0]};B.smartSharpen=function(){B.call(this,"smartSharpen");
this.jH=[new aR([12,57],1,200,"%"),new aR([12,56],0,200,"px",1,!0)];this.D2()};B.smartSharpen.prototype=new B;
B.smartSharpen.prototype.S3=function(s,m){m[0]=s.Amnt.v.val;m[1]=s.Rds.v.val};B.smartSharpen.prototype.TM=function(s,m){s.Amnt.v.val=m[0];
s.Rds.v.val=m[1]};B.UnsM=function(){B.call(this,"UnsM");this.jH=[new aR([12,57],1,200," %"),new aR([12,56],.1,400,"px",1,!0),new aR([4,13],0,255," ")];
this.D2()};B.UnsM.prototype=new B;B.HghP=function(){B.call(this,"HghP");this.jH=[new aR([12,56],.1,400,"px",1,!0)];
this.D2()};B.HghP.prototype=new B;B.HsbP=function(){B.call(this,"HsbP");this.jH=[new co("Input",["RGB","HSB","HSL"]),new co("Output",["RGB","HSB","HSL"])];
this.D2()};B.HsbP.prototype=new B;B["Mxm "]=function(){B.call(this,"Mxm ");this.jH=[new aR([12,56],.1,200," px",1,!0),new ge([12,76,1],[[12,93,3],"Circle"])];
this.D2()};B["Mxm "].prototype=new B;B["Mnm "]=function(){B.call(this,"Mnm ");this.jH=[new aR([12,56],.1,200," px",1,!0),new ge([12,76,1],[[12,93,3],"Circle"])];
this.D2()};B["Mnm "].prototype=new B;B.Ofst=function(){B.call(this,"Ofst");this.jH=[new aR([22,4,0],-1024,1024," px"),new aR([22,4,1],-1024,1024," px"),new ge([24,18,0],[[24,18,2],[24,18,1],[24,18,3]])];
this.D2()};B.Ofst.prototype=new B;B.Rept=function(){B.call(this,"Rept");this.jH=[new cT([12,38],1,300," %"),new cT("Row Shift",-50,50," %"),new cT("Space X",-99,200," %"),new cT("Space Y",-99,200," %"),new bj([4,16,2]),new jx([12,15])];
this.D2()};B.Rept.prototype=new B;B.Rept.prototype.S3=function(s,m){m[0]=s.Scl.v.val;m[1]=s.Rsft.v.val;
m[2]=s.SpcX.v.val;m[3]=s.SpcY.v.val;m[4]=s.SpcC.v;m[5]=[s.Angl.v]};B.Rept.prototype.TM=function(s,m){s.Scl.v.val=m[0];
s.Rsft.v.val=m[1];s.SpcX.v.val=m[2];s.SpcY.v.val=m[3];s.SpcC.v=m[4];s.Angl.v=m[5][0];return s};B.Ctoa=function(){B.call(this,"Ctoa");
this.jH=[new jG([13,0]),new fM(!0),new aR(["VAR0 VAR1","Transparency",[4,13]],0,100," %"),new aR(["VAR0 VAR1",[12,0],[4,13]],0,100," %")];
this.D2()};B.Ctoa.prototype=new B;B.Ctoa.prototype.S3=function(s,m){m[0]=s.Clr.v;m[1]=s.Trsp.v.val;m[2]=s.Opct.v.val};
B.Ctoa.prototype.TM=function(s,m){s.Clr.v=m[0];s.Trsp.v.val=m[1];s.Opct.v.val=m[2]};B.LqFy=function(){B.call(this,"LqFy");
this.E7=!1;this.Aa=!1;this.JO=null;this.ahJ=null;this.c=0;this.C={Dx:[[{c:{id:0,name:[24,1,0,1,0],SY:"liq/smudge"}}],[{c:{id:1,name:[24,1,0,1,1],SY:"liq/reconstruct"}}],[{c:{id:2,name:[24,1,0,1,2],SY:"liq/smooth"}}],[{c:{id:3,name:[24,1,0,1,3],SY:"liq/twirl"}}],[{c:{id:4,name:[24,1,0,1,4],SY:"liq/shrink"}}],[{c:{id:5,name:[24,1,0,1,5],SY:"liq/blow"}}],[{c:{id:6,name:[24,1,0,1,6],SY:"liq/pleft"}}],[{c:{id:7,name:"Hand",SY:"tools/hand"}}],[{c:{id:8,name:"Zoom In",SY:"zoomIn"}}],[{c:{id:9,name:"Zoom Out",SY:"zoomOut"}}]],keys:[]};
this.tX=new ht(this.C,!1);this.tX.s$(0);this.tX.h(v.E.g,this.amD,this);this.IK=fd.Sw();this.JU=null;
this.Lj=[];this.q3=-1;this.t8=null;this.a4Q=null;this.Jw=null;this.mX=null;this.NV=null;var s=n.L("div","flexrow");
this.Cp=s;this.m.appendChild(s);s.appendChild(this.tX.m);this.view=new ef(!0);this.view.jm(100,100);
this.view.h("mousedown",this._N,this);this.view.h("mousemove",this.xi,this);this.view.h("mouseup",this.tU,this);
this.view.h("zoom",this.jQ,this);s.appendChild(this.view.m);var m=n.L("div","form");s.appendChild(m);
this.WX=m;m.style.width="230px";this.Rx=[new aR([12,14,0],0,1e3,null,!1,!0),new aR([12,74],0,100,null,!1,!1),new aR([12,84],0,100,null,!1,!1),new bj([12,46]),new aR([12,0],0,100,null,!1,!1),new bj([24,18,5])];
var l=this.IK.Brsh.v;l.Dmtr.v.val=100;var x=[100,50,100,!1,100,!0];for(var C=0;C<this.Rx.length;C++){var a=this.Rx[C];
a.f(x[C]);if(C==4)a.Hv();a.h(v.E.p,this.afP,this);m.appendChild(a.m)}var P=this.atr=new hj([1,12,2],!0,null,!0);
P.h("click",this.gZ,this);m.appendChild(P.m);this.are=this.Of.bind(this);this.jZ=new fR;this.jZ.m=n.L("div","floatcont");
this.qy=new hj("Menu",!1,null,!0);this.qy.h("click",this.aiJ,this);var o=this.qy.m;o.setAttribute("style","position:absolute; right:13px; top:47px")};
B.LqFy.prototype=new B;B.LqFy.prototype.Dl=function(){return!0};B.LqFy.prototype.W$=function(s){this.WX.appendChild(s)};
B.LqFy.prototype.aiJ=function(s){var m=this.qy.m.getBoundingClientRect();this.jZ.m.appendChild(this.WX);
var l=new h9(v.E.g,!0);l.data={d:v.J.Jm,UK:this.jZ,x:m.right+m.width-290,y:m.top+m.height};this.Y(l)};
B.LqFy.prototype.NZ=function(s){this.E7=s.$(dV.Il);var m=r.fZ.uY(this.IK,s);if(m!=null){this.IK=m;this.jQ();
this.Rx[0].f(m.Brsh.v.Dmtr.v.val)}else if(s.$(dV.bt)&&s.$(dV.$j)){var l=this.Lj;if(s.$(dV.Ht)){if(this.q3+1<l.length)this.q3++}else if(this.q3>0)this.q3--;
this.JU.map=l[this.q3].slice(0);this.ZJ(null)}else this.view.NZ(s)};B.LqFy.prototype.amD=function(s){if(s.data.d==v.J._I){var m=this.c=s.data.c;
this.tX.s$(this.c);this.view.NZ(m>6?ef.ag2(m-7):new dV)}};B.LqFy.prototype.afP=function(s){var m=s.currentTarget,C=this.Rx.indexOf(m),l=this.IK.Brsh.v;
if(C==0){l.Dmtr.v.val=m._();this.jQ()}this.Rx[4].k5(this.Rx[3]._());if(C>2)this.ZJ(null)};B.LqFy.prototype.Jy=function(){var s=this.Lj;
this.q3++;s[this.q3]=this.JU.map.slice(0);while(s.length>this.q3+1)s.pop();while(s.length>50){s=s.slice(1);
this.q3--}};B.LqFy.prototype._N=function(s){this.JO=this.view.QH();this.ahJ=new fz(0,0);this.Aa=!0;window.requestAnimationFrame(this.are)};
B.LqFy.prototype.xi=function(s){var m=this.view.QH(),l=new fz(m.x-this.JO.x,m.y-this.JO.y);if(this.c==0||this.c==6)this.a32(l);
this.JO=m};B.LqFy.prototype.tU=function(s){this.Jy();this.Aa=!1};B.LqFy.prototype.Of=function(s){if(this.c!=0&&this.c!=6)this.a32(new fz(0,0));
if(this.Aa)window.requestAnimationFrame(this.are)};B.LqFy.prototype.a32=function(s){var m=this.JU,l=m.h_/this.t8.e,x=this.JO,a=this.IK.Brsh.v,P=a.Dmtr.v.val,o=Date.now(),G=m.h_,_=m.Cm,j=Math.sqrt(s.x*s.x+s.y*s.y),U=Math.max(1,Math.ceil(j/2)),S=s.x/U,X=s.y/U,c=x.clone(),y=this.c,O=this.Rx[1]._()/100,p=this.Rx[2]._()/100,D=[.005,.015,0,0,.2,.2,.01,.01,.05,.35,.1,.1,.005,.015],f=D[y*2],T=D[y*2+1],I=(1-O)*f+O*T,H=P*l/2;
for(var C=0;C<U;C++){var b=[];c.x+=S;c.y+=X;L.Mq.amw(m.map,G,_,y,c.x*l,c.y*l,H,O,p,S*l,X*l,b,this.E7);
L.Mq.a4t(G,_,m.map,b,2*I*p)}var R=new bU(0,0,G,_),W=new bU(x.x*l,x.y*l,0,0);W.yD(P*l*.5,P*l*.5);var J=W.clone();
J.offset(s.x*l,s.y*l);W=W.if(J);var u=new bU(W.x/l,W.y/l,W.e/l,W.l/l);u=L.H.LU(u).pF(this.t8);this.Rx[5].f(!0);
this.ZJ(u)};B.LqFy.prototype.jQ=function(){var s=br.E$(this.IK,null,this.view.Ax().O);this.view.ho(s)};
B.LqFy.prototype.f=function(s,m,l,x,a){l=l.clone();if(m==null)return;if(!x.yb(l)){var P=l.if(x),o=L.B(P.k()*4);
L.yx(m,l,o,P);m=o;l=P;var G=L.B(P.k()*4);L.yx(a,x,G,P);a=G}l.x=l.y=0;this.Jw=m;this.a4Q=a;this.NV=m.slice(0);
this.mX=m.slice(0);this.t8=l;this.JU=hh.st(new Uint8Array(s.LqMe.v).buffer);var _=l.e,j=l.l;if(this.JU.h_/_<.22){this.JU={h_:Math.floor(_/4),Cm:Math.floor(j/4)};
this.JU.map=new Float32Array(this.JU.h_*this.JU.Cm*2)}this.Lj=[];this.q3=-1;this.Jy();this.ZJ(null);
this.view.zG();this.jQ()};B.LqFy.prototype._=function(){var s=ib.Xi("LqFy"),m=new Uint8Array(hh.cs(this.JU)),l=[];
for(var C=0;C<m.length;C++)l.push(m[C]);s.LqMe.v=l;return s};B.LqFy.prototype.jm=function(s,m){this.tX.jm(s,m);
var l=this.qy.m,x=this.WX;this.Cp.appendChild(x);this.Cp.appendChild(l);if(s>450&&s-m>200){x.style.marginLeft="1em";
this.Cp.removeChild(l);this.view.jm(s-238-45,m)}else{x.style.marginLeft="";this.Cp.removeChild(x);this.view.jm(s-40,m)}};
B.LqFy.prototype.U=function(){this.tX.U();this.atr.U();for(var C=0;C<this.Rx.length;C++)this.Rx[C].U()};
B.LqFy.prototype.gZ=function(){this.JU.map.fill(0);this.Jy();this.ZJ(null)};B.LqFy.prototype.ZJ=function(s){var m=this.t8,l=this.Jw,x=this.NV,a=this.JU;
if(this.Rx[5]._())L.Mq.sb(l,this.mX,m.e,m.l,s,a.map,a.h_,a.Cm,0);else this.mX.set(l);if(this.Rx[3].bD()){L.yx(this.a4Q,m,x,m,s?s:m);
L.a.$P("norm",this.mX,m,x,m,s?s:m,this.Rx[4]._()/100)}else L.qv(this.mX,x);this.view.f([{Sb:m,data:x.buffer}])};
B.GEfc=function(){B.call(this,"GEfc");this.LP=0;this.vp=0;this.Jw=null;this.NV=null;this.t8=null;this.bR=null;
this.oA=null;this.BR=0;var s=n.L("div","flexrow");this.Cp=s;this.m.appendChild(s);this.view=new ef(null);
this.view.jm(100,100);s.appendChild(this.view.m);this.Vv="";this.GH=270;var m=this.AP=n.L("div","form scrollable");
s.appendChild(m);m.setAttribute("style","width:"+this.GH+"px; margin-left:10px");var l=this.ls=n.L("div","form");
s.appendChild(l);l.setAttribute("style","width:230px; margin-left:1em");this.lP={};for(var x in ew.names){var a=new B.GEfc.wM(x);
a.parent=this;this.lP[x]=a;a.h(v.E.p,this.a16,this)}this.Hs=!0;this.qy=new hj("Menu",null,null,!0);this.qy.h("click",this.aqe,this);
s.appendChild(this.qy.m);this.$p=new hj(">>",null,null,!0);this.$p.h("click",this.acv,this);l.appendChild(this.$p.m);
this.yT=n.L("div");this.yT.setAttribute("style","margin-bottom:1.5em; display:inline-block; width:calc(100% - 40px);");
l.appendChild(this.yT);this.rD=n.L("div");this.rD.style.minHeight="14em";this.rD.style.marginBottom="1em";
l.appendChild(this.rD);this.xX=n.L("div","lpbody scrollable");this.hS=n.L("div","lpfoot");l.appendChild(this.xX);
l.appendChild(this.hS);this.h("click",this.ab1,this);this.xz=[];dh.qD([[5,3],[5,4]],this.xz,this.hS,this.Sn.bind(this))};
B.GEfc.prototype=new B;B.GEfc.prototype.Dl=function(){return!0};B.GEfc.prototype.W$=function(s){this.yT.appendChild(s)};
B.GEfc.prototype.L8=function(s,m){this.bR=s};B.GEfc.prototype.acv=function(s){var m=this.AP.style.display!="none";
this.AP.style.display=m?"none":"";this.$p.tD(m?"<<":">>");this.jm()};B.GEfc.prototype.aqe=function(s){this.Hs=!this.Hs;
this.jm()};B.GEfc.prototype.jm=function(s,m){var l=this.AP.style.display!="none";if(s!=null){this.LP=s;
this.vp=m;if(s<1e3&&l||s>=1e3&&!l){this.acv();l=!l}this.Hs=s>600}else{s=this.LP;m=this.vp}var x=this.Hs?240+(l?this.GH+10:0):0;
if(n.wH(this.ls)&&!this.Hs){this.Cp.removeChild(this.AP);this.Cp.removeChild(this.ls)}if(!n.wH(this.ls)&&this.Hs){this.Cp.appendChild(this.AP);
this.Cp.appendChild(this.ls)}this.AP.style.height=m+"px";this.view.jm(s-x,m);this.xX.style.height=m-this.rD.getBoundingClientRect().height-96+"px";
this.qy.m.setAttribute("style","position:absolute; top:46px; right:"+(x+16)+"px")};B.GEfc.prototype.afx=function(){var s=iO.L0.get("img/beach",!0)[0],m=s.Sb,l=this.AP,x=Math.floor(n.W()*(this.GH-40)/3),a=~~(x*.7),P=new bU(0,0,x,a),o=L.B(x*a*4),G=o.slice(0),_=Math.round(10*n.W()),j=new ImageData(new Uint8ClampedArray(G.buffer),x,a);
L.yx(new Uint8Array(s.data),m,o,new bU(Math.round((m.e-x)/2),Math.round((m.l-a)/2),x,a));var U=n.L("canvas"),S=U.getContext("2d");
U.width=x;U.height=a+Math.round(_*1.5);S.font=_+"px sans-serif";this.L6={};var X=this.a4T.bind(this);
for(var C=0;C<ew.ta.length;C++){var c=ew.ta[C],y=n.L("div");l.appendChild(y);y.setAttribute("style","background-color:rgba(0,0,0,0.2); padding:0px 8px; margin-bottom:8px");
y.textContent=iX.get(c);for(var O in ew.names){var p=ew.names[O];if(p[0]!=C)continue;ew._E(O,{rect:P,buffer:o},ew.Xi(O),{o:0,z:0,S:0},{o:255,z:255,S:255},{rect:P,buffer:G},{});
S.fillStyle="black";S.fillRect(0,0,500,500);S.putImageData(j,0,0);var D=iX.get(p[1]);S.fillStyle="white";
S.fillText(D,(x-S.measureText(D).width)/2,a+Math.round(_*1.1));var f=n.L("div");l.appendChild(f);f.setAttribute("style","display:inline-block; cursor:pointer; padding: 5px 5px 0 5px; margin-bottom:5px");
f.addEventListener("click",X,!1);var y=n.L("img");f.appendChild(y);y.setAttribute("src",U.toDataURL());
y.setAttribute("style","width:"+x/n.W()+"px; margin-bottom:0px;");this.L6[O]=f}}};B.GEfc.prototype.a4T=function(s){var m;
for(var l in this.L6)if(this.L6[l]==s.currentTarget)this.Vv=l;this.a16()};B.GEfc.prototype.Sn=function(s){var m=dh.wh(this.xz,s),l=this.oA.GEfs.v,x=l[this.BR].v;
if(m==0){l.push(JSON.parse(JSON.stringify(l[this.BR])));this.BR=l.length-1}else if(l.length>1){l.splice(this.BR,1);
if(this.BR==l.length)this.BR--}this.d7();this.ZJ()};B.GEfc.prototype.a16=function(s){var m=this.Vv,l;
if(s==null)l=ew.Xi(m);else l=this.lP[m]._();this.oA.GEfs.v[this.BR].v=l;this.d7();this.ZJ()};B.GEfc.prototype.f=function(s,m,l,x,a){if(this.L6==null)this.afx();
s=this.oA=JSON.parse(JSON.stringify(s));if(s.GEfs==null)s=this.oA={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:s}]}};
var P=s.GEfs.v;for(var C=0;C<P.length;C++)if(P[C].v.GELv==null)P[C].v.GELv={t:"bool",v:!0};this.BR=P.length-1;
this.d7();l=l.clone();if(m==null)return;if(!x.yb(l)&&ew.Te(s).x!=0){var o=l.if(x),G=L.B(o.k()*4);L.yx(m,l,G,o);
m=G;l=o}l.x=l.y=0;this.Jw=m;this.NV=m.slice(0);this.t8=l;this.ZJ();this.view.zG()};B.GEfc.prototype.ab1=function(s){var m=s.data,C=m.jV,l=this.oA.GEfs.v;
if(m.Gm){l[C].v.GELv.v=!l[C].v.GELv.v;this.ZJ()}else this.BR=C;this.d7()};B.GEfc.prototype.d7=function(){var s=this.oA.GEfs.v,m=s[this.BR].v,l=m.GEfk.v.GEft,x=this.rD;
if(ew.names[l]==null){alert("Unsupported gallery filter");n.em(x)}else{this.Vv=l;for(var a in this.L6)n.po(this.L6[a],"selected");
n.RY(this.L6[l],"selected");var P=this.lP[l];P.f(m);if(x.firstChild!=P.m){n.em(x);x.appendChild(P.m)}}var o=[];
for(var C=0;C<s.length;C++){var G=s[C].v,_=ew.names[G.GEfk.v.GEft],j=new c7(C,!0,!0,null,_?_[1]:"Filter",C==this.BR,G.GELv.v);
j.parent=this;o.push(j.m)}n.em(this.xX);o.reverse();for(var C=0;C<o.length;C++)this.xX.appendChild(o[C]);
this.jm()};B.GEfc.prototype._=function(){return JSON.parse(JSON.stringify(this.oA))};B.GEfc.prototype.ZJ=function(s){var m=this.t8,l=this.Jw,x=this.NV,a=this.Vv,P=this.oA,o=this.bR;
function G(_){return{o:_>>>16,z:_>>>8&255,S:_&255}}ib._E("GEfc",{rect:this.t8,buffer:this.Jw},P,G(o.zU),G(o.Pi),{rect:this.t8,buffer:this.NV},null);
this.view.f([{Sb:m,data:x.buffer}])};B.GEfc.prototype.U=function(){for(var s in this.lP)this.lP[s].U();
dh.WH(this.xz,["lrs/newlayer","lrs/bin"])};B.GEfc.wM=function(s){fR.call(this);this.Lk=s;this.m=n.L("div");
this.Nc={};var m=ew.Xi(s);for(var l in m){var x=null;if(l=="__name"||l=="classID"||l=="GEfk"||l=="GELv"||["FlRs"].indexOf(l)!=-1)continue;
else if(l=="EdgW")x=new aR("Edge Width",1,14);else if(l=="EdgB")x=new aR("Edge Brightness",0,s=="AccE"?50:20);
else if(l=="Smth")x=new aR([19,3,3],1,s=="Stmp"?50:15);else if(l=="ClSz")x=new aR([12,61],3,100);else if(l=="BrdT")x=new aR([7,9],1,20);
else if(l=="HghS")x=new aR([12,64],0,20);else if(l=="HlSz")x=new aR([12,14,0],1,15);else if(l=="Cntr")x=new aR([12,3,0],0,s=="WtrP"?100:50);
else if(l=="Shrp")x=new aR("Sharpness",0,40);else if(l=="SprR")x=new aR("Spray Radius",0,25);else if(l=="LgDr")x=new aR("Light/Dark Balance",0,s=="Stmp"?50:100);
else if(l=="Drkn")x=new aR("Darkness",1,50);else if(l=="Dstr")x=new aR("Distortion",0,20);else if(l=="Scln")x=new aR([12,38],50,200);
else if(l=="Rlf")x=new aR("Relief",0,s=="Ptch"||s=="NtPr"?25:50);else if(l=="ChAm")x=new aR("Thickness",1,7);
else if(l=="Pncl")x=new aR([19,2,5],1,30);else if(l=="StrP")x=new aR("Stroke Pressure",0,15);else if(l=="PprB")x=new aR("Paper Brightness",0,50);
else if(l=="BrsS")x=new aR("Brush Size",0,10);else if(l=="BrsD")x=new aR("Brush Detail",0,10);else if(l=="Txtr")x=new aR([12,67],1,3);
else if(l=="Grn")x=new aR("Grain",0,20);else if(l=="HghA")x=new aR("Highlight Area",0,20);else if(l=="Intn")x=new aR("Intensity",0,10);
else if(l=="Brgh")x=new aR("Glow Brightness",0,s=="WtrP"?100:50);else if(l=="StrS")x=new aR("Stroke Size",1,50);
else if(l=="StDt")x=new aR("Stroke Detail",1,3);else if(l=="Sftn")x=new aR("Softness",0,10);else if(l=="EdgT")x=new aR("Edge Thickness",0,10);
else if(l=="EdgI")x=new aR("Edge Intensity",0,10);else if(l=="Pstr")x=new aR("Posterization",0,6);else if(l=="Dfnt")x=new aR("Definition",0,25);
else if(l=="TxtC")x=new aR("Texture Coverage",0,50);else if(l=="ShdI")x=new aR("Shadow Intensity",0,10);
else if(l=="DrcB")x=new aR("Direction Balance",0,100);else if(l=="Strg")x=new aR([12,64],1,3);else if(l=="Blnc")x=new aR("Balance",0,10);
else if(l=="BlcI")x=new aR("Black Intensity",0,10);else if(l=="WhtI")x=new aR("White Intensity",0,10);
else if(l=="DrkI")x=new aR("Dark Intensity",0,50);else if(l=="LghI")x=new aR("Light Intensity",0,50);
else if(l=="StrW")x=new aR("Stroke Width",3,15);else if(l=="Grns")x=new aR("Graininess",0,s=="NtPr"?20:10);
else if(l=="GlwA")x=new aR("Glow Amount",0,20);else if(l=="ClrA")x=new aR("Clear Amount",0,20);else if(l=="ChrA")x=new aR("Charcoal Area",0,20);
else if(l=="ChlA")x=new aR("Chalk Area",0,20);else if(l=="FrgL")x=new aR("Foreground Level",1,15);else if(l=="BckL")x=new aR("Background Level",1,15);
else if(l=="WhtL")x=new aR("Background Level",0,50);else if(l=="BlcL")x=new aR("Foreground Level",0,50);
else if(l=="ImgB")x=new aR("Image Balance",0,50);else if(l=="Dnst")x=new aR([12,74],0,50);else if(l=="FbrL")x=new aR("Fiber Length",3,50);
else if(l=="CrcS")x=new aR("Crack Sapcing",2,100);else if(l=="CrcD")x=new aR("Crack Depth",0,10);else if(l=="CrcB")x=new aR("Crack Brightness",0,10);
else if(l=="TlSz")x=new aR("Tile Size",2,100);else if(l=="GrtW")x=new aR("Grout Width",1,15);else if(l=="LghG")x=new aR("Lighten Grout",0,10);
else if(l=="SqrS")x=new aR("Square Size",0,10);else if(l=="RplS")x=new aR("Ripple Size",1,15);else if(l=="RplM")x=new aR("Ripple Magnitude",0,20);
else if(l=="NmbL")x=new aR("Number of Levels",2,8);else if(l=="EdgS")x=new aR("Edge Simplicity",0,10);
else if(l=="EdgF")x=new aR("Edge Fidelity",1,3);else if(l=="Sz")x=s=="NGlw"?new aR("Glow Size",-24,24):new aR("Brush Size",1,50);
else if(l=="Dtl")x=s=="Chrc"?new aR("Detail",0,5):new aR("Detail",1,15);else if(l=="StrL")x=s=="InkO"?new aR("Stroke Length",1,50):new aR("Stroke Length",0,20);
else if(l=="TxtT")x=new ge([12,67],"Blocks,Canvas,Frosted,Tiny Lens,Bricks,Burlap,Sandstone".split(","));
else if(l=="BrsT")x=new ge("Brush Type","Simple,Light Rough,Dark Rough,Wide Sharp,Wide Blurry,Sparkle".split(","));
else if(l=="Grnt")x=new ge("Grain Type","Regular Soft Sprinkles Clumped Contrasty Enlarged Stippled Horizontal Vertical Speckle".split(" "));
else if(l=="SDir")x=new ge([12,33],["Right Diagonal","Horizontal","Left Diagonal","Vertical"]);else if(l=="ScrT")x=new ge([12,62],["Circle","Dot",[10,35]]);
else if(l=="LghD"||l=="LghP")x=new ge("Light","Bottom,Bottom Left,Left,Top Left,Top,Top Right,Right,Bottom Right".split(","));
else if(l=="Clr")x=new fM("Glow Color");else if(l=="InvT")x=new bj([4,11]);else console.log(l);x.h(v.E.p,this.C1,this);
x.parent=this;this.Nc[l]=x;this.m.appendChild(x.m)}};B.GEfc.wM.prototype=new fR;B.GEfc.wM.prototype.C1=function(s){this.Y(new h9(v.E.p,!1))};
B.GEfc.a3O="Sz Dtl Shrp EdgW EdgB Smth ClSz BrdT HghS HlSz Cntr SprR StrL LgDr Drkn Dstr Scln Rlf ChAm InvT RplS RplM Pncl StrP PprB BrsS BrsD Txtr Grn HghA Intn Brgh Clr StrS StDt Sftn EdgT EdgI Pstr Dfnt TxtC ShdI DrcB Strg Blnc BlcI WhtI DrkI LghI StrW Grns GlwA ClrA ChrA ChlA FrgL BckL WhtL BlcL ImgB Dnst FbrL CrcS CrcD CrcB TlSz GrtW LghG SqrS NmbL EdgS EdgF".split(" ");
B.GEfc.wM.prototype.f=function(s){for(var m in this.Nc){var l;if(B.GEfc.a3O.indexOf(m)!=-1)l=s[m].v;
else if(m=="TxtT")l=ew.OR.indexOf(s[m].v[m]);else if(m=="BrsT")l=ew.vV.indexOf(s[m].v[m]);else if(m=="LghD")l=ew.Ms.indexOf(s[m].v[m]);
else if(m=="LghP")l=ew.h3.indexOf(s[m].v[m]);else if(m=="Grnt")l=ew.o7.indexOf(s[m].v[m]);else if(m=="ScrT")l=ew.U3.indexOf(s[m].v[m]);
else if(m=="SDir")l=ew.N1.indexOf(s[m].v.StrD);this.Nc[m].f(l)}};B.GEfc.wM.prototype._=function(){var s=ew.Xi(this.Lk);
for(var m in this.Nc){var l=this.Nc[m]._();if(B.GEfc.a3O.indexOf(m)!=-1)s[m].v=l;else if(m=="TxtT")s[m].v[m]=ew.OR[l];
else if(m=="BrsT")s[m].v[m]=ew.vV[l];else if(m=="LghD")s[m].v[m]=ew.Ms[l];else if(m=="LghP")s[m].v[m]=ew.h3[l];
else if(m=="Grnt")s[m].v[m]=ew.o7[l];else if(m=="ScrT")s[m].v[m]=ew.U3[l];else if(m=="SDir")s[m].v.StrD=ew.N1[l]}return s};
B.GEfc.wM.prototype.U=function(){for(var s in this.Nc)this.Nc[s].U()};B.blnc=function(){B.call(this);
var s=this.m;this.Lw=null;this.gj=new ge([12,12],[[19,6,0],[19,6,1],[19,6,2]]);this.gj.h(v.E.p,this.ZJ,this);
s.appendChild(this.gj.m);this.Ta=[];for(var C=0;C<3;C++){var m=new aR(eb.cP[C],-100,100);m.h(v.E.p,this.zi,this);
this.Ta.push(m);s.appendChild(m.m)}this.q9=new bj([13,4]);this.q9.h(v.E.p,this.zi,this);s.appendChild(this.q9.m)};
B.blnc.prototype=new B;B.blnc.prototype.U=function(){this.gj.U();for(var C=0;C<3;C++)this.Ta[C].U();
this.q9.U()};B.blnc.prototype.f=function(s){this.Lw=JSON.parse(JSON.stringify(s));this.ZJ()};B.blnc.prototype._=function(s){var m=["ShdL","MdtL","HghL"],l=this.Lw[m[this.gj._()]].v;
for(var C=0;C<3;C++)l[C].v=this.Ta[C]._();this.Lw.PrsL.v=this.q9._();return JSON.parse(JSON.stringify(this.Lw))};
B.blnc.prototype.ZJ=function(s){var m=["ShdL","MdtL","HghL"],l=this.Lw[m[this.gj._()]].v;for(var C=0;
C<3;C++)this.Ta[C].f(l[C].v);this.q9.f(this.Lw.PrsL.v)};B.brit=function(){B.call(this,"brit");this.jH.push(new aR([12,2],-150,150,""));
this.jH.push(new aR([12,3,0],-100,100,""));this.jH.push(new bj([12,3,1]));this.D2()};B.brit.prototype=new B;
B.brit.prototype.S3=function(s,m){m[0]=s.Brgh?s.Brgh.v:0;m[1]=s.Cntr?s.Cntr.v:0;m[2]=s.useLegacy?s.useLegacy.v:!1};
B.brit.prototype.TM=function(s,m){s.Brgh.v=m[0];s.Cntr.v=m[1];s.useLegacy.v=m[2]};B.curv=function(){B.call(this);
this.value=null;this.qm=null;var s=this.m;this.jK=new ge([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]);
this.jK.h(v.E.p,this.Pf,this);s.appendChild(this.jK.m);this.X0=new ge(null,["Spline","Sketch"]);this.X0.h(v.E.p,this.agT,this);
s.appendChild(this.X0.m);n.Z0(s);this.da=new dD;this.da.h(v.E.p,this.hg,this);s.appendChild(this.da.m);
this.Z6=null;this.aqh=0;this.cR=0;n.Z0(s);this.M0=new ja("Sample from image",co.ey(["-\u2195","#000000","#888888","#ffffff"]),!0,null,!0);
this.M0.h(v.E.p,this.J$,this);this.M0.m.style.marginRight="0";s.appendChild(this.M0.m)};B.curv.prototype=new B;
B.curv.prototype.jm=function(s,m){this.da.jm(s,m)};B.curv.prototype.U=function(){this.jK.U()};B.curv.prototype.agT=function(s){var m=fx.qG(this.value,0),l=m.length==256?1:0,x=this.X0._();
if(l==x)return;var a=ib.Xi("curv");if(x==1){var P=[];for(var C=0;C<256;C++)P.push(C);fx.r3(a,0,P)}this.f(a);
this.zi()};B.curv.prototype.hg=function(){fx.r3(this.value,this.jK._(),this.da._());this.zi()};B.curv.prototype.Pf=function(){var s=this.jK._(),m=fx.qG(this.value,s),l=m.length==256?1:0;
this.X0.f(l);if(this.qm)this.da.AF(this.qm[s],this.qm[4]*[1,.33,.33,.33][s],["#ccc","#fcc","#cfc","#ccf"][s]);
this.da.f(m)};B.curv.prototype.aO=function(){return!0};B.curv.prototype.s1=function(s,m,l,x,a){var P=this.value;
this.value=ib.Xi("curv");this.zi();var o=r.n4.xl(s,a,1),G=this.Z6=[o>>>16&255,o>>>8&255,o&255];this.aqh=a.y;
var _=this.M0._().indexOf(!0);if(_==0){var j=(G[0]+G[1]+G[2])/3,U=this.jK._(),S=fx.qG(P,U),X=U==0?j:G[U-1],c=-1;
for(var C=0;C<S.length;C++)if(S[C].v.Hrzn.v==X)c=C;if(c==-1){var y=JSON.parse(JSON.stringify(S[0]));
y.v.Hrzn.v=X;y.v.Vrtc.v=X;S.push(y);S.sort(function(O,p){return O.v.Hrzn.v-p.v.Hrzn.v});fx.r3(P,U,S);
this.cR=S.indexOf(y)}else this.cR=c}this.f(P);this.zi()};B.curv.prototype.zk=function(s,m,l,x,a){if(this.Z6==null)return;
if(this.M0._().indexOf(!0)==0){var P=this.value,o=this.jK._(),G=fx.qG(P,o),_=G[this.cR];_.v.Vrtc.v=Math.max(0,Math.min(255,Math.round(_.v.Hrzn.v+(this.aqh-a.y))));
fx.r3(P,o,G);this.f(P);this.zi()}};B.curv.prototype.I6=function(s,m,l,x,a){var P=this.value,o=this.Z6,G=(o[0]+o[1]+o[2])/3,_=this.M0._().indexOf(!0)-1;
if(_<=-1){}else for(var C=0;C<3;C++){var j=fx.qG(P,1+C);if(_==0)j[0].v.Hrzn.v=o[C];if(_==1){var U=Math.log(o[C]/255)/Math.log(G/255),S=Math.min(999,Math.max(10,Math.round(100*U)));
if(j.length==2)j.splice(1,0,JSON.parse(JSON.stringify(j[0])));j[1].v.Hrzn.v=127-Math.log(S/100)*127;
j[1].v.Vrtc.v=127}if(_==2)j[j.length-1].v.Hrzn.v=o[C];fx.r3(P,1+C,j)}this.f(P);this.zi();this.Z6=null};
B.curv.prototype.f=function(s){this.value=s;this.Pf()};B.curv.prototype.AF=function(s){this.qm=s;this.Pf()};
B.curv.prototype._=function(s){return JSON.parse(JSON.stringify(this.value))};B.expA=function(){B.call(this,"expA");
this.jH.push(new aR([12,5],-20,20,null,3));this.jH.push(new aR([12,6],-.5,.5,null,3));this.jH.push(new aR([12,7],.01,6.99,null,3));
this.D2()};B.expA.prototype=new B;B.expA.prototype.S3=function(s,m){m[0]=s.Exps.v;m[1]=s.Ofst?s.Ofst.v:0;
m[2]=s.gammaCorrection?s.gammaCorrection.v:1};B.expA.prototype.TM=function(s,m){s.Exps={t:"doub",v:m[0]};
s.Ofst={t:"doub",v:m[1]};s.gammaCorrection={t:"doub",v:m[2]}};B.grdm=function(){B.call(this,"grdm");
this.jH.push(new du(!0,null,!0));this.jH.push(new bj([12,23,0]));this.D2()};B.grdm.prototype=new B;B.grdm.prototype.S3=function(s,m){m[0]=s.Grad.v;
m[1]=s.Rvrs?s.Rvrs.v:!1};B.grdm.prototype.TM=function(s,m){s.Grad.v=m[0];s.Rvrs={t:"bool",v:m[1]}};B.grdm.prototype.L8=function(s,m){this.jH[0].Yp(s.zU,s.Pi);
if(m==gN.ki||m==gN.WV||m==gN.ir)this.jH[0].El(s.eb)};B.selc=function(){B.call(this);var s=this.m;this.kw=[];
this.PE=null;this.gj=new ge([12,82],eb.uy.concat([[13,1,8],[13,1,13],[13,1,10]]));this.gj.h(v.E.p,this.C1,this);
s.appendChild(this.gj.m);n.Z0(s);for(var C=0;C<4;C++){var m=new aR(eb.abF[C],-100,100,"%");m.h(v.E.p,this.C1,this);
this.kw.push(m);s.appendChild(m.m)}this.tA=new bj([13,3]);s.appendChild(this.tA.m);this.tA.h(v.E.p,this.C1,this)};
B.selc.prototype=new B;B.selc.prototype.U=function(){this.gj.U();this.tA.U();for(var C=0;C<4;C++)this.kw[C].U()};
B.selc.prototype.f=function(s){this.PE=JSON.parse(JSON.stringify(s));this.ZJ()};B.selc.prototype._=function(s){return JSON.parse(JSON.stringify(this.PE))};
B.selc.prototype.C1=function(s){if(s.target!=this.gj){var m=this.PE,l=[];for(var C=0;C<4;C++)l[C]=this.kw[C]._();
b7.r3(m,this.gj._(),l);m.Mthd={t:"enum",v:{CrcM:this.tA._()?"Absl":"Rltv"}}}this.ZJ();this.zi()};B.selc.prototype.ZJ=function(){var s=this.PE,m=b7.qG(s,this.gj._());
for(var C=0;C<4;C++)this.kw[C].f(m[C]);this.tA.f(s.Mthd?s.Mthd.v.CrcM=="Absl":!1)};B.blwh=function(){B.call(this,"blwh");
this.jH.push(new bj([12,11]));this.jH.push(new fM(!0));for(var C=0;C<6;C++)this.jH.push(new aR(eb.uy[C],-200,300));
this.D2()};B.blwh.prototype=new B;B.blwh.prototype.S3=function(s,m){m[0]=s.useTint.v;m[1]=s.tintColor.v;
var l="Rd Yllw Grn Cyn Bl Mgnt".split(" ");for(var C=0;C<6;C++)m[2+C]=s[l[C]].v};B.blwh.prototype.TM=function(s,m){s.useTint.v=m[0];
s.tintColor.v=m[1];var l="Rd Yllw Grn Cyn Bl Mgnt".split(" ");for(var C=0;C<6;C++)s[l[C]].v=m[2+C]};
B.hue2=function(){B.call(this);this.value=null;this.LM=null;this.akh=null;this.nb=[[0,0,0],[0,50,0]];
var s=this.m;this.M0=new ja(null,["\u2194"],!0,["Click and drag in image to change saturation"],!0);
this.M0.h(v.E.p,this.a8K,this);this.M0.h(v.E.p,this.J$,this);s.appendChild(this.M0.m);this.gj=new ge([12,12],["Master"].concat(eb.uy));
this.gj.h(v.E.p,this.Pf,this);s.appendChild(this.gj.m);this.xu=new aR([12,8],-180,180);this.xu.h(v.E.p,this.Et,this);
s.appendChild(this.xu.m);this.$v=new aR([12,9],-100,100);this.$v.h(v.E.p,this.Et,this);s.appendChild(this.$v.m);
this.zB=new aR([12,10],-100,100);this.zB.h(v.E.p,this.Et,this);s.appendChild(this.zB.m);this.LT=new bj([12,11]);
this.LT.h(v.E.p,this.Et,this);s.appendChild(this.LT.m);this.Yv=new ja("Sample Hue",["<img src=\""+PIMG["tools/eyedropper"]+"\" class=\"autoscale gsicon\" />","+","-"],!0,null,!0);
this.Yv.h(v.E.p,this.a8K,this);this.Yv.h(v.E.p,this.J$,this);this.Yv.m.style.marginLeft="20px";s.appendChild(this.Yv.m);
this.RU=n.L("div");s.appendChild(this.RU);this.fR=this.rP.bind(this);this.TW=this.Hk.bind(this);this.w=n.L("canvas");
this.og=this.w.getContext("2d");this.jE=null;n.FE(this.w);n.ek(this.w,282,18);s.appendChild(this.w);
n.i3(this.w,this.fj.bind(this))};B.hue2.prototype=new B;B.hue2.prototype.a8K=function(s){var m=s.target._().indexOf(!0);
if(m==-1)return;if(s.target==this.M0)this.Yv.f([!1,!1,!1]);else this.M0.f([!1,!1,!1])};B.hue2.prototype.fj=function(s){if(this.gj._()==0||this.LT._())return;
var m=n.lX(s,this.w).x/(this.w.width/n.W()),P=1e6;function l(S,X,c){return S<X&&X<c||c<S&&(S<X||X<c)}var x=this.mB(),a=-1;
for(var C=0;C<4;C++){var o=Math.abs(m-(x[C]+C*1e-5));if(o<P){P=o;a=C}}if(P>.025){a=-1;var G=x[0],_=x[1],j=x[2],U=x[3];
if(l(G,m,_))a=4;if(l(_,m,j))a=5;if(l(j,m,U))a=6}if(a==-1)return;this.jE=a;n.PB(document.body,this.fR);
n.$u(document.body,this.TW)};B.hue2.prototype.rP=function(s){var m=n.lX(s,this.w).x/(this.w.width/n.W()),l=this.mB(),x=this.jE;
for(var C=1;C<4;C++)if(l[C]<l[C-1]){l[C]+=1}if(x<4){var a=1e6,P=0;for(var C=-20;C<20;C++){var o=Math.abs(l[x]-(m+C));
if(o<a){a=o;P=C}}m+=P;l[x]=m;for(var C=x+1;C<4;C++)if(l[C]<l[C-1]){l[C]=l[C-1]}for(var C=x-1;C>=0;C--)if(l[C]>l[C+1]){l[C]=l[C+1]}}else{var G=m-(l[x-4]+l[x-3])/2;
if(G<-.5)G+=1;if(x==4){l[0]+=G;l[1]+=G;l[2]=Math.max(l[1],l[2]);l[3]=Math.max(l[1],l[3])}if(x==5)for(var C=0;
C<4;C++)l[C]+=G;if(x==6){l[2]+=G;l[3]+=G;l[0]=Math.min(l[0],l[2]);l[1]=Math.min(l[1],l[2])}}for(var C=1;
C<4;C++)if(l[C]<l[C-1])throw"e";this.a4k(l);this.Pf();this.zi()};B.hue2.prototype.Hk=function(s){n.Ab(document.body,this.fR);
n.D4(document.body,this.TW)};B.hue2.prototype.U=function(){this.xu.U();this.$v.U();this.zB.U();this.LT.U();
this.gj.U()};B.hue2.prototype.Et=function(s){var m=this.value.Clrz.v=this.LT._();if(m)this.gj.f(0);if(s&&s.target==this.LT){var l=m?1:0;
this.nb[1-l]=aX.qG(this.value,0);var x=this.nb[l];aX.r3(this.value,0,x);if(this.gj._()==0){this.xu.f(x[0]);
this.$v.f(x[1]);this.zB.f(x[2])}}var a=this.gj._(),P=aX.qG(this.value,a),x=a==0?P:P.Ta;x[0]=this.xu._();
var o=this.$v._();x[1]=m?Math.max(0,o):o;x[2]=this.zB._();aX.r3(this.value,a,P);this.Pf();this.zi()};
B.hue2.prototype.Pf=function(){var s=this.gj._(),m=this.value.Clrz?this.value.Clrz.v:!1;this.LT.f(m);
this.gj.k5(!m);this.Yv.k5(!m&&s!=0);var l=aX.qG(this.value,s),x=s==0?l:l.Ta;this.xu.f(x[0]);this.$v.f(x[1]);
this.zB.f(x[2]);var a=this.w.width,P=this.w.height,o=this.og;o.clearRect(0,0,a,P);if(m||s==0){this.RU.innerHTML="";
return}var G=l.J8;this.RU.innerHTML=G[0]+"\xB0 / "+G[1]+"\xB0<span style=\"float:right\">"+G[2]+"\xB0 \\ "+G[3]+"\xB0</span>";
var _=L.B(a*4);gq.asj(_,1,a,-1,.5);var j=new ImageData(new Uint8ClampedArray(_.buffer),a,1),U=Math.round(a/64);
for(var C=0;C<U;C++)o.putImageData(j,0,C);function S(D,f,T){o.fillStyle=T;var I=U*2;if(D<=f)o.fillRect(D*a,I,(f-D)*a,U);
else{o.fillRect(0,I,f*a,U);o.fillRect(D*a,I,(1-D)*a,U)}}var X=this.mB();S(X[0],X[1],"#888888");S(X[1],X[2],"#cccccc");
S(X[2],X[3],"#888888");o.fillStyle="#ffffff";o.lineWidth=1;o.beginPath();var c=U+.5,y=4*U+.5;for(var C=0;
C<4;C++){var O=Math.floor(a*X[C])+.5,p=(C<2?-1:1)*U*(C==1||C==2?1:2);o.moveTo(O,c);o.lineTo(O,y);o.lineTo(O+p,y);
o.lineTo(O+p,U+U+.5);o.closePath()}o.fill();o.stroke()};B.hue2.prototype.mB=function(){var s=this.gj._(),m=aX.qG(this.value,s).J8;
for(var C=0;C<4;C++)m[C]=(1000.5+m[C]/360)%1;return m};B.hue2.prototype.a4k=function(s){var m=this.gj._(),l=aX.qG(this.value,m);
for(var C=0;C<4;C++)l.J8[C]=Math.round(36e3+(s[C]-.5)*360)%360;aX.r3(this.value,m,l)};B.hue2.prototype.aO=function(){return!0};
B.hue2.prototype.asv=function(){var s=this.M0._().indexOf(!0),m=this.Yv._().indexOf(!0);return s!=-1?s:m!=-1?m+1:-1};
B.hue2.prototype.s1=function(s,m,l,x,a){var P=this.asv();if(P==-1)return;var o=this.value;this.value=ib.Xi("hue2");
this.zi();var G=r.n4.xl(s,a,1);this.f(o);var _=[G>>>16&255,G>>>8&255,G&255],j=L.Az(_[0]/255,_[1]/255,_[2]/255);
if(P==0){this.gj.f(1+Math.round(j.Cm*6)%6)}else{var U=this.mB(),S=.5+j.Cm,X=1/12,c=U[1],y=U[2];if(y<c){y++;
if(S<c&&S+1-y<c-S)S++}var O=c<=S&&S<=y;if(P==1){c=S-X/2;y=S+X/2}else if(P==2&&!O){c=Math.min(S,c);y=Math.max(S,y)}else if(P==3&&O){if(S-c<y-S)c=S;
else y=S}U=[c-X,c,y,y+X];this.a4k(U)}this.zi();this.LM=a.x;this.akh=this.$v._()};B.hue2.prototype.zk=function(s,m,l,x,a){var P=this.asv();
if(P==-1)return;if(P==0){if(this.LM!=null){var o=a.x-this.LM;o=Math.max(-100,Math.min(100,this.akh+.5*o));
this.$v.f(o);this.Et()}}};B.hue2.prototype.I6=function(s,m,l,x,a){this.LM=null};B.hue2.prototype.f=function(s){this.value=JSON.parse(JSON.stringify(s));
var m=this.value.Clrz?this.value.Clrz.v:!1;this.nb[m?1:0]=aX.qG(this.value,0);this.Pf()};B.hue2.prototype._=function(s){return JSON.parse(JSON.stringify(this.value))};
B.levl=function(){function s(){B.call(this);this.value=null;this.qm=null;this.WJ=[new fz(0,0),new fz(0,0),new fz(0,0),new fz(0,0),new fz(0,0)];
this.QP=-1;this.fR=this.rP.bind(this);this.TW=this.Hk.bind(this);var m=this.m;this.jK=new ge([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]);
this.jK.h(v.E.p,this.Pf,this);m.appendChild(this.jK.m);var l=n.L("div","");m.appendChild(l);var x=n.L("div","");
m.appendChild(x);this.w=n.L("canvas");l.appendChild(this.w);this.og=this.w.getContext("2d");this.IW=new fz(256,120);
this.w.setAttribute("style","display:block");n.ek(this.w,this.IW.x,this.IW.y,this.og);n.FE(this.w);n.i3(this.w,this.fj.bind(this));
this.dL=n.L("canvas","");x.appendChild(this.dL);this._8=this.dL.getContext("2d");this.DR=new fz(this.IW.x,40);
this.dL.setAttribute("style","display:block");n.ek(this.dL,this.DR.x,this.DR.y,this._8);n.FE(this.dL);
n.i3(this.dL,this.ac$.bind(this));var a=this.a7U=[];for(var C=0;C<5;C++){var P=new ep(null,null,3);a.push(P);
P.h(v.E.p,this.amc,this);(C<2||C==4?l:x).appendChild(P.m)}l.appendChild(a[1].m);a[4].m.setAttribute("style","margin: 0 4.7em");
a[3].m.setAttribute("style","margin:0 0 0 13em");this.M0=new ja("Sample from image",co.ey(["#000000","#888888","#ffffff"]),!0,null,!0);
this.M0.h(v.E.p,this.J$,this);m.appendChild(this.M0.m)}s.prototype=new B;s.prototype.U=function(){this.jK.U()};
s.prototype.amc=function(m){var l=[];for(var C=0;C<5;C++){var x=255,a=1;if(C==4){x=999;a=100}var P=parseFloat(this.a7U[C]._());
l[C]=Math.max(0,Math.min(x,P*a))}gy.r3(this.value,this.jK._(),l);this.Pf();this.zi()};s.prototype.Pf=function(m){var l=this.IW.x,x=this.IW.y,a=this.jK._(),P=this.og;
P.clearRect(0,0,l,x);P.fillStyle="#cccccc";P.fillRect(8,8,l-16,x-16-8);if(this.qm){if(a==0){this.qm[0].fill(0);
var o=JSON.parse(JSON.stringify(this.value));gy.r3(o,0,[0,255,0,255,100]);var G=eb.vC("levl",o),_=[G.qp,G.O6,G.My];
for(var j=0;j<3;j++){var U=this.qm[1+j],S=_[j];for(var C=0;C<256;C++)this.qm[0][S[C]]+=U[C]}}var X=this.qm[a],c=0;
for(var C=0;C<X.length;C++)c+=X[C];P.fillStyle="#333333";P.beginPath();P.moveTo(8,x-16);for(var C=0;
C<256;C++){var y=55*X[C]/c;P.lineTo(8+C/256*(l-16),Math.max(8,x-16-x*y))}P.lineTo(l-8,x-16);P.closePath();
P.fill()}var O=gy.qG(this.value,a);for(var C=0;C<5;C++)this.a7U[C].f(O[C]/(C==4?100:1));this.WJ[0].Qk(8+O[0]/255*(l-16),x-14);
this.WJ[1].Qk(8+O[1]/255*(l-16),x-14);var p=Math.log(O[4]/100)/Math.log(9.99);p=.5-p/2;this.WJ[4].Qk(this.WJ[0].x+p*(this.WJ[1].x-this.WJ[0].x),x-14);
this.fF(P,this.WJ[0],"#000000");this.fF(P,this.WJ[1],"#ffffff");this.fF(P,this.WJ[4],"#777777");var l=this.DR.x,x=this.DR.y;
P=this._8;P.clearRect(0,0,l,x);var D=P.createLinearGradient(0,0,l-16,0);D.addColorStop(0,"black");D.addColorStop(1,"white");
P.fillStyle=D;P.fillRect(8,8,l-16,16);this.WJ[2].Qk(8+O[2]/255*(l-16),x-14);this.WJ[3].Qk(8+O[3]/255*(l-16),x-14);
this.fF(P,this.WJ[2],"#000000");this.fF(P,this.WJ[3],"#ffffff")};s.prototype.fF=function(m,l,x){m.fillStyle=x;
m.fillRect(l.x-5,l.y,10,10)};s.prototype.fj=function(m){var l=n.lX(m,this.w),x=this.agj([0,1,4],l);if(x!=-1)this.QP=x;
this.a5_()};s.prototype.ac$=function(m){var l=n.lX(m,this.dL),x=this.agj([2,3],l);if(x!=-1)this.QP=x;
this.a5_()};s.prototype.agj=function(m,l){var x=-1,a=1e9;for(var C=0;C<m.length;C++){var P=Math.abs(this.WJ[m[C]].x-l.x);
if(P<a){a=P;x=m[C]}}return a<16?x:-1};s.prototype.a5_=function(m){if(this.QP==-1)return;n.PB(document.body,this.fR);
n.$u(document.body,this.TW)};s.prototype.rP=function(m){var l=gy.qG(this.value,this.jK._()),x=n.lX(m,this.QP==2&&this.QP==3?this.dL:this.w),a=255*(x.x-8)/(this.IW.x-16);
a=Math.max(0,Math.min(255,a));if(this.QP==0)a=Math.min(a,l[1]-2);if(this.QP==1)a=Math.max(a,l[0]+2);
if(this.QP!=4)l[this.QP]=Math.round(a);else{var P=(a-l[0])/(l[1]-l[0]);P=1-2*P;P=Math.pow(9.99,P);l[4]=Math.min(999,Math.max(10,Math.round(P*100)))}gy.r3(this.value,this.jK._(),l);
this.Pf();this.zi()};s.prototype.Hk=function(m){n.Ab(document.body,this.fR);n.D4(document.body,this.TW);
this.QP=-1};s.prototype.aO=function(){return!0};s.prototype.I6=function(m,l,x,a,P){var o=this.value,G=this.M0._().indexOf(!0);
if(G==-1)return;this.value=ib.Xi("levl");this.zi();var _=r.n4.xl(m,P,1),j=[_>>>16&255,_>>>8&255,_&255];
for(var C=0;C<3;C++){var U=gy.qG(o,1+C);if(G==0)U[0]=j[C];if(G==1){var S=Math.log(j[C]/255)/Math.log((j[0]+j[1]+j[2])*.333/255);
U[4]=Math.min(999,Math.max(10,Math.round(100*S)))}if(G==2)U[1]=j[C];gy.r3(o,1+C,U)}this.f(o);this.zi()};
s.prototype.f=function(m){this.value=m;this.Pf()};s.prototype.AF=function(m){this.qm=m;this.Pf()};s.prototype._=function(m){return JSON.parse(JSON.stringify(this.value))};
return s}();B.phfl=function(){B.call(this,"phfl");this.jH.push(new fM);this.jH.push(new aR([12,74],0,100,"%"));
this.jH.push(new bj([13,4]));this.D2()};B.phfl.prototype=new B;B.phfl.prototype.S3=function(s,m){m[0]=s.Clr.v;
m[1]=s.Dnst.v;m[2]=s.PrsL.v};B.phfl.prototype.TM=function(s,m){var l=L.K.Qv(m[0]),x=s.Clr.v,a=L._g(l.o,l.z,l.S);
x.Lmnc.v=a.J5;x.A.v=a.lz;x.B.v=a.S;s.Dnst.v=m[1];s.PrsL.v=m[2]};B.vibA=function(){B.call(this,"vibA");
this.jH.push(new aR([12,13],-100,100,null));this.jH.push(new aR([12,9],-100,100,null));this.D2()};B.vibA.prototype=new B;
B.vibA.prototype.S3=function(s,m){m[0]=s.vibrance?s.vibrance.v:0;m[1]=s.Strt?s.Strt.v:0};B.vibA.prototype.TM=function(s,m){s.vibrance.v=m[0];
s.Strt.v=m[1]};B.thrs=function(){B.call(this,"thrs");this.jH.push(new aR([4,13],1,255,null));this.D2()};
B.thrs.prototype=new B;B.thrs.prototype.S3=function(s,m){m[0]=s.Lvl.v};B.thrs.prototype.TM=function(s,m){s.Lvl.v=m[0]};
B.mixr=function(){B.call(this);var s=this.m;this.kw=[];this.PE=null;this.gj=new ge([12,4],[[13,1,1],[13,1,4],[13,1,5]]);
this.gj.h(v.E.p,this.C1,this);s.appendChild(this.gj.m);n.Z0(s);this._Q=new bj([12,60]);s.appendChild(this._Q.m);
this._Q.h(v.E.p,this.C1,this);for(var C=0;C<4;C++){var m=new aR([[13,1,1],[13,1,4],[13,1,5],[13,2]][C],-200,200,"%");
m.h(v.E.p,this.C1,this);this.kw.push(m);s.appendChild(m.m)}};B.mixr.prototype=new B;B.mixr.prototype.U=function(){this.gj.U();
this._Q.U();for(var C=0;C<4;C++)this.kw[C].U()};B.mixr.prototype.f=function(s){this.PE=JSON.parse(JSON.stringify(s));
this.ZJ()};B.mixr.prototype._=function(s){return JSON.parse(JSON.stringify(this.PE))};B.mixr.prototype.C1=function(s){if(s.target!=this.gj){var m=eb.Aj(this.PE);
if(s.target==this._Q){m._Q=this._Q._();if(m._Q)m.Z=[40,40,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];else m.Z=[100,0,0,0,0,0,100,0,0,0,0,0,100,0,0,0,0,0,0,0]}else{var l=(m._Q?0:this.gj._())*5,C=this.kw.indexOf(s.target);
m.Z[l+(C<3?C:4)]=s.target._()}this.PE=eb.dr(m)}this.ZJ();this.zi()};B.mixr.prototype.ZJ=function(){var s=eb.Aj(this.PE);
this._Q.f(s._Q);var m=(s._Q?0:this.gj._())*5;for(var C=0;C<4;C++)this.kw[C].f(s.Z[m+(C<3?C:4)])};B.post=function(){B.call(this,"post");
this.jH.push(new aR([4,1],2,255,null));this.D2()};B.post.prototype=new B;B.post.prototype.S3=function(s,m){m[0]=s.Lvls.v};
B.post.prototype.TM=function(s,m){s.Lvls.v=m[0]};B.clrL=function(){B.call(this,"clrL");this.jH.push(new dB("LUTs"));
this.D2()};B.clrL.prototype=new B;B.clrL.prototype.S3=function(s,m){m[0]=s};B.clrL.prototype.TM=function(s,m){var l=m[0];
for(var x in l)s[x]=l[x]};B.clrL.prototype.L8=function(s,m){if(m==gN.ki||m==gN.o4)this.jH[0].El(s.apl)};
B.rplc=function(){B.call(this,"rplc");this.jH.push(new aR([12,92],0,200));this.jH.push(new fM);this.jH.push(new aR([12,8],-180,180));
this.jH.push(new aR([12,9],-100,100));this.jH.push(new aR([12,10],-100,100));this.D2()};B.rplc.prototype=new B;
B.rplc.prototype.S3=function(s,m){m[0]=s.Fzns.v;m[1]=s.Mxm.v;m[2]=s.H.v;m[3]=s.Strt.v;m[4]=s.Lght.v};
B.rplc.prototype.TM=function(s,m){function l(a,P){P.Lmnc.v=a.J5;P.A.v=a.lz;P.B.v=a.S}s.Fzns.v=m[0];s.H.v=m[2];
s.Strt.v=m[3];s.Lght.v=m[4];var x=L.K.Qv(m[1]),a=L._g(x.o,x.z,x.S);l(a,s.Mnm.v);l(a,s.Mxm.v)};B.fade=function(){B.call(this,"fade");
this.jH.push(new aR([12,0],0,100,"%"));this.jH.push(new ge([12,19,0],aA.dP,!1,aA.Nx));this.D2()};B.fade.prototype=new B;
B.fade.prototype.S3=function(s,m){m[0]=s.Opct.v.val;m[1]=aA.Bo.indexOf(s.Md.v.BlnM)};B.fade.prototype.TM=function(s,m){s.Opct.v.val=m[0];
s.Md.v.BlnM=aA.Bo[m[1]]};B.aply=function(){var s=aA.Bo.concat(["Add","Sbtr"]);s.splice(21,1);var m=aA.dP.concat(["Add",[15,10,21]]);
m.splice(21,1);var l=aA.Nx.slice(0);l[4]--;function x(){B.call(this,"aply");this.jH.push(new ge([0,3],[]));
this.jH.push(new ge([12,4],["RGB"].concat(eb.cP).concat(["Transparency"])));this.jH.push(new bj([4,11]));
this.jH.push(new ge([12,19,0],m,!1,l));this.jH.push(new aR([12,0],0,100,"%"));this.jH.push(new dy([12,38],1,2,null,2));
this.jH.push(new dy([12,6],-255,255));this.jH.push(new bj("Preserve Transparency"));this.D2([2]);this.x6=null}x.prototype=new B;
x.prototype.S3=function(a,P,o){if(o){var G=o[2].G,_=this.x6=[];for(var C=0;C<G.length;C++)_.push(G[C].getName());
_.reverse();this.jH[0].AZ([[5,7]].concat(_),[1,_.length])}else var _=this.x6;a=a.With.v;var j=a.T.v;
P[0]=j[1].t=="name"?1+_.indexOf(j[1].v.val):0;P[1]=["RGB","Rd","Grn","Bl","Trsp"].indexOf(j[0].v.enum);
P[2]=a.Invr.v;var U=a.Clcl.v.Clcn;P[3]=s.indexOf(U);P[4]=a.Opct.v.val;P[5]=a.Scl.v;P[6]=a.Ofst.v;P[7]=a.PrsT.v};
x.prototype.TM=function(a,P){a=a.With.v;var o=a.T.v;if(P[0]==0)o[1]={t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Mrgd"}};
else o[1]={t:"name",v:{classID:"Lyr",val:this.x6[this.x6.length-P[0]]}};o[0].v.enum=["RGB","Rd","Grn","Bl","Trsp"][P[1]];
a.Invr.v=P[2];var G=a.Clcl.v.Clcn=s[P[3]];a.Opct.v.val=P[4];a.Scl.v=P[5];a.Ofst.v=P[6];a.PrsT.v=P[7];
var _=G=="Add"||G=="Sbtr";this.jH[5].k5(_);this.jH[6].k5(_)};return x}();function c4(s,m){fR.call(this);
if(s==null)return;this.id=m;this.bi=s;this.I2=null;this.m=n.L("div","window "+m);this.ajH=null;this.lm=n.L("div","whead");
this.a1i=n.L("span","wname");this.lm.appendChild(this.a1i);this.m.appendChild(this.lm);this.gd=this.ajy.bind(this);
this.sd=this.aeu.bind(this);this.aI=this.apZ.bind(this);n.FE(this.lm);n.i3(this.lm,this.gd);this.wP=n.L("span","cross");
this.lm.appendChild(this.wP);c4.prototype.U.call(this);n.$u(this.wP,this.a2N.bind(this));this.body=n.L("div","body");
this.m.appendChild(this.body)}c4.prototype=new fR;c4.prototype.hl=function(){return!1};c4.prototype.aO=function(){return!1};
c4.prototype.U=function(){if(this.bi==null)return;this.a1i.textContent=iX.get(this.bi);var s=PIMG.__cross==null?"filter:invert(1);":"";
this.wP.setAttribute("style","background-image:url("+PIMG.cross+");"+s)};c4.prototype.s1=function(s,m,l,x,a){};
c4.prototype.Mr=function(s,m,l,x,a){};c4.prototype.zk=function(s,m,l,x,a){};c4.prototype.I6=function(s,m,l,x,a){};
c4.prototype.bI=function(s,m,l,x,a){};c4.prototype.NZ=function(s,m,l,x){if(x.$(dV.z3)&&this.Rj)this.Rj();
if(x.$(dV.bt)){var a=new h9(v.E.u);a.zZ=!0;r.D3.lI(x,a);if(a.data)m.Y(a)}};c4.prototype.sO=function(s){return!1};
c4.prototype.UW=function(s,m){return!0};c4.prototype.av=function(s,m,l,x){};c4.prototype.L8=function(s,m){};
c4.prototype.u1=function(s,m){return null};c4.prototype.aj0=function(s){return this.ajH};c4.prototype.jm=function(){};
c4.prototype.close=function(){this.Y(new h9(v.E.JP))};c4.prototype.ajy=function(s){this.I2=n.lX(s,this.m);
n.PB(window,this.sd);n.$u(window,this.aI)};c4.prototype.aeu=function(s){var m=this.m.parentNode,l=n.lX(s,m),x=Math.round(l.x-this.I2.x),a=m.offsetTop+Math.max(0,Math.min(window.innerHeight-36,Math.round(l.y-this.I2.y)));
this.ajH=new fz(x,a);this.m.style.left=x+"px";this.m.style.top=a+"px"};c4.prototype.apZ=function(s){n.Ab(window,this.sd);
n.D4(window,this.aI)};c4.prototype.a2N=function(s){this.Y(new h9("closebtn"));this.close()};function hW(){c4.call(this,"About Photopea","aboutpp");
var s=n.L("div","flexrow");this.body.appendChild(s);var m=this.akJ=n.L("img");s.appendChild(m);this.body.setAttribute("style","margin:0; padding:0");
var l=this.a7I=n.L("div");l.innerHTML=hW.WU;s.appendChild(l);var x=this.Q5=n.L("span");x.innerHTML="<big style=\"text-shadow: 2px 2px 3px #000000;\">Ivan holding Photopea in Prague</big>";
this.body.appendChild(x)}hW.prototype=new c4;hW.prototype.u1=function(s,m){return new fz(0,0)};hW.prototype.jm=function(s,m){var l=this.akJ,x=this.a7I,a=this.Q5,P=(s+m-42-42)/110;
P=Math.sqrt((s-42)*(m-42))/50;l.setAttribute("style","width:"+s/2+"px; height:"+m+"px; display:block; object-fit:cover;");
x.setAttribute("style","width:"+(s/2-42)+"px; height:"+(m-42)+"px; padding:20px; font-size:"+P+"px;");
a.setAttribute("style","position:absolute; bottom:10px; right:"+(s/2+10)+"px")};hW.prototype.U=function(){};
hW.prototype.av=function(s,m,l,x){this.akJ.setAttribute("src","promo/ivan_pp.webp")};hW.WU="\t<h1>Hi There!</h1>\t<p>My name is <b>Ivan Kutskir</b> and I'm the creator of Photopea.</p>\t<p>I'm a 30-year-old computer programmer. I was born in Ukraine, but I live in the Czech Republic most of my life (in <b>Prague</b> since 2009).</p>\t<p>I started developing Photopea back in 2012. I intended to call it <b>Photo Hammer</b>, \tbut I didn't register the .com domain right away, and when I tried to do so six months later, it was already taken.</p>\t\t<p>My friends and my family did not know about Photopea during the first four years of development.\tI was spending a lot of time building it, without making any money or learning new skills. So nothing to be proud of, \tbut the project was fun and I enjoyed working on it.\t</p>\t<p>\tNow, it's heartwarming to know that millions around the world use Photopea as their creative medium. \tTo this day I work on Photopea, driven by the positive impact of my creation.\t</p>\t\t<!--<p>You can not be completely sure if something is a good or a bad idea, until you actually try to do it.</p>-->\t\t<p style=\"text-align:right;\"><i><big>Ivan Kutskir</big><br/>support@photopea.com</i></p>\t";
function ft(){c4.call(this,[0,13,0],"account");this.WL=n.L("div","form scrollable");this.body.appendChild(this.WL);
this.body.style.padding="0";this.WT=[new ft.Ir,new ft.Ch("::privacy.html"),new ft.Ch(ft.aac)];for(var C=0;
C<this.WT.length;C++)this.WT[C].parent=this;this.h("showpage",this.a1j,this)}ft.prototype=new c4;ft.prototype.jm=function(s,m){this.WL.setAttribute("style","width:"+Math.min(s-40,600)+"px; height:"+(m-38)+"px; padding:1.5em;");
this.WT[0].jm(s,m)};ft.prototype.u1=function(s,m){return new fz(Math.max(0,Math.min(150,(s-600)/2)),Math.max(0,Math.min(100,(m-500)/2)))};
ft.prototype.a1j=function(s){n.em(this.WL);this.WL.scrollTop=0;this.WL.appendChild(this.WT[s.data.jV].m)};
ft.prototype.U=function(){c4.prototype.U.call(this);for(var C=0;C<this.WT.length;C++)this.WT[C].U()};
ft.prototype.av=function(s,m,l){n.em(this.WL);var x=this.WT[0];this.WL.appendChild(x.m);x.av();this.U()};
ft.prototype.L8=function(s,m){this.av(null,null,null)};ft.Ir=function(){fR.call(this);this.m=n.L("div");
var s=this.m,m,l,x="background-color: #00aa00; text-shadow:none; padding:3px 7px; font-size:1.2em; font-weight:bold; color:#ffffff; cursor:pointer; margin:4px 0;";
this.aB=n.L("div");s.appendChild(this.aB);this.d8=new hj([0,11],!1,null,!0);this.d8.m.setAttribute("style","background-color: rgba(200,0,0,1); color:#ffffff; margin:4px 6px 4px 0;");
this.d8.h("click",this.Gb,this);s.appendChild(this.d8.m);this.Ft=new hj([0,13,1],!1,null,!0);this.Ft.h("click",this.a7q,this);
s.appendChild(this.Ft.m);this.SS=new hj("Business Terms",!1,null,!0);this.SS.h("click",this.a8u,this);
s.appendChild(this.SS.m);m=n.L("h2");m.innerHTML="Account types";s.appendChild(m);l=n.L("table");l.innerHTML="\t\t\t<table>\t\t\t\t<tr> <th class=\"left\"></th><th>Free</th><th>Premium</th> </tr>\t\t\t\t<tr> <td class=\"left\">All Features</td><td class=\"yes\">\u2713</td><td class=\"yes\">\u2713</td> </tr>\t\t\t\t<tr> <td class=\"left\">No Ads</td><td class=\"no\"> </td><td class=\"yes\">\u2713</td> </tr>\t\t\t\t<tr> <td class=\"left\">Steps in History</td><td class=\"no\" style=\"font-size:1.3em\">30</td><td class=\"yes\">60</td> </tr>\t\t\t\t<!--<tr class=\"lastrow\"> <td class=\"left\">Cost</td><td>Free</td><td><big>$5</big> per month</td> </tr>-->\t\t\t</table>\t\t";
s.appendChild(l);var a=this.aq2=[[9,30,1],[10,90,1],[40,365,1],[15,30,5],[30,90,5],[120,365,5],[50,30,20],[100,90,20],[400,365,20],[40,30,1e3],[80,90,1e3],[300,365,1e3],[100,30,5e3],[200,90,5e3],[700,365,5e3],[200,30,2e4],[400,90,2e4],[1400,365,2e4]];
this.j6=[];for(var C=0;C<a.length;C++)this.j6.push(new hj("Buy: $"+a[C][0],!1,null,!0));for(var C=0;
C<this.j6.length;C++){this.j6[C].m.setAttribute("style",x);this.j6[C].h("click",this.ad5,this)}m=n.L("h2");
m.innerHTML="Go Premium";s.appendChild(m);this.VL=new hj("...",!0);this.VL.m.setAttribute("style",x);
s.appendChild(this.VL.m);l=this.atf(3,["Single user",this.j6[0],this.j6[1],this.j6[2],"Team of 5",this.j6[3],this.j6[4],this.j6[5],"Team of 20",this.j6[6],this.j6[7],this.j6[8]]);
s.appendChild(l);this.ao_=new bj("I accept",!0,"");s.appendChild(this.ao_.m);this.v0=new hj([0,13,1],!1,null,!0);
this.v0.h("click",this.a7q,this);s.appendChild(this.v0.m);this.Gi=new hj("I have a key",!1,null,!0);
this.Gi.m.setAttribute("style",x+" float:right;");this.Gi.h("click",this.ad5,this);s.appendChild(this.Gi.m);
m=n.L("h2");m.textContent="Team Settings";s.appendChild(m);this.Gy=new bj("Join a team");s.appendChild(this.Gy.m);
this.Gy.h(v.E.p,this.akF,this);this.lr=new ep("Email of a leader",null,14);s.appendChild(this.lr.m);
n.Z0(s);this.x8=new bj("Start a team");s.appendChild(this.x8.m);this.x8.h(v.E.p,this.akF,this);var P=new jG("Emails of other members:");
s.appendChild(P.m);n.Z0(s);this.S9=n.L("textarea");n.O_(this.S9);this.S9.setAttribute("rows",3);this.S9.setAttribute("style","display:block;tab-size:4; width:100%");
s.appendChild(this.S9);var o=new hj("Save Team Settings",!1,null,!0);s.appendChild(o.m);o.h("click",this.apq,this);
var G=this.akb=new hj("More about Teams",!1,null,!0);s.appendChild(G.m);G.h("click",this.amK,this);m=n.L("h2");
m.innerHTML="Distributor Account";s.appendChild(m);this.Iy=new hj("...",!0);this.Iy.m.setAttribute("style",x);
s.appendChild(this.Iy.m);l=this.atf(3,["1000 views/ month",this.j6[9],this.j6[10],this.j6[11],"5000 views/ month",this.j6[12],this.j6[13],this.j6[14],"20000 views/ month",this.j6[15],this.j6[16],this.j6[17]]);
s.appendChild(l);this.j2=new ep("Domain name (e.g. domain.com)",null,14);s.appendChild(this.j2.m);n.Z0(s);
var o=new hj("Save Domain Settings",!1,null,!0);o.Kd();s.appendChild(o.m);o.h("click",this.a6a,this);
var G=new hj("More about Distributors",!1,null,!0);s.appendChild(G.m);G.h("click",this.amK,this)};ft.Ir.prototype=new fR;
ft.Ir.prototype.jm=function(s,m){var l=s<500?"$":"Buy: $",x=this.aq2;for(var C=0;C<x.length;C++)this.j6[C].tD(l+x[C][0])};
ft.Ir.prototype.a7q=function(s){var m=new h9("showpage",!0);m.data={jV:1};this.Y(m)};ft.Ir.prototype.a8u=function(s){var m=new h9("showpage",!0);
m.data={jV:2};this.Y(m)};ft.Ir.prototype.U=function(){this.d8.tD(fr.ao()?iX.get([0,11]):iX.get([0,10]));
this.v0.U();this.Ft.U();this.SS.U()};ft.Ir.prototype.amK=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.DZ,link:"https://www.photopea.com/api/accounts#"+(s.target==this.akb?"teams":"distributors")};
this.Y(m)};ft.Ir.prototype.akF=function(s){var m=s.currentTarget==this.Gy;this.Gy.f(m);this.x8.f(!m)};
ft.Ir.prototype.apq=function(s){var m=this.Gy._(),l=this.lr._().trim(),x=this.S9.value.trim();if(l.length>60){alert("Too long email address");
return}if(x.length>600){alert("Too many team members");return}x=x.split(",").join(" ").trim();x=x.replace(/\s+/g," ");
if(x=="")x=[];else x=x.split(" ");var a=fr.aV();if(a==null)a={};if(a.acc==null)a.acc={};a.acc.team={jin:m,ldr:l,mmb:x};
fr.ze(a,this.WS.bind(this));alert("Saved!");this.av()};ft.Ir.prototype.a6a=function(s){var m=this.j2._().trim();
if(!fr.ao()){alert("You have to log in first.");return}if(fr.r_().distrib=="0"){alert("Order a distributor account first.");
return}var l=fr.aV();if(l==null)l={};if(l.acc==null)l.acc={};if(m=="")delete l.acc.dname;else l.acc.dname=m;
fr.ze(l,this.WS.bind(this));alert("Saved!");this.av()};ft.Ir.prototype.av=function(){if(fr.ao()){var s=fr.r_();
if(s==null)return;this.aB.innerHTML="<span style=\"font-size:1.5em; margin-right:0.7em;\">"+s.name+"</span> "+s.email+" <br/>"}else{}var m=fr.ao()&&fr.vU();
this.VL.m.style.display=m?"block":"none";if(m){var l=parseInt(s[n.jd("_^NSLUJ")])-Date.now()*(1/1e3),x=parseInt(s.ptype),a;
if(x==-1)a="member of a team";else if(x==1)a="Single user";else a="Team of "+x;this.VL.tD("Premium active for "+Math.round(l/(60*60*24))+" more days! ("+a+")")}var P=fr.ao()&&s.distrib*1e3>Date.now();
this.Iy.m.style.display=P?"block":"none";if(P){var l=parseInt(s.distrib)-Date.now()/1e3,x=parseInt(s.ptype);
this.Iy.tD("Distributor active for "+Math.round(l/(60*60*24))+" more days! ("+x+" visitos)")}var o=fr.aV();
if(o&&o.acc&&o.acc.team){var G=o.acc.team;this.Gy.f(G.jin);this.x8.f(!G.jin);this.lr.f(G.ldr);this.S9.value=G.mmb.join(", ")}else{this.Gy.f(!0);
this.x8.f(!1);this.lr.f("");this.S9.value=""}if(o&&o.acc&&o.acc.dname)this.j2.f(o.acc.dname);else this.j2.f("")};
ft.Ir.prototype.atf=function(s,m){var l=n.L("table");l.innerHTML="\t\t\t\t<table>\t\t\t\t\t<tr> <th class=\"left\"></th><th>30 days</th><th>90 days</th> "+(s==3?"<th>365 days</th>":"")+" </tr>\t\t\t\t</table>\t\t\t";
for(var C=0;C<m.length;C+=s+1){var x=n.L("tr"),a;l.appendChild(x);a=n.L("td","left");x.appendChild(a);
a.innerHTML="<b>"+m[C]+"</b>";for(var P=0;P<s;P++){a=n.L("td");x.appendChild(a);a.appendChild(m[C+1+P].m)}}return l};
ft.Ir.prototype.ad5=function(s){var m=this.j6.indexOf(s.currentTarget),x=30,a=1;if(!fr.ao()){alert("You must log in before buying Premium");
return}if(this.ao_._()==!1&&m<9){alert("You must accept Terms of Service");return}var l=fr.ao()&&fr.vU();
if(m!=-1){var P=this.aq2[m];x=P[1];a=P[2]}if(l&&a<1e3){alert("You already have premium.");return}if(m==-1){var o=prompt("Please enter your key");
if(o!=null){fr.afn(o,this.WS.bind(this));this.k7()}return}if(x==30&&a==1){var G=confirm("You can have a 90 days version for $10. Do you still want a 30 days version for $9?");
if(!G)return}fr.order(x,a,this.WS.bind(this));this.k7()};ft.Ir.prototype.WS=function(s){if(fr.ao()&&fr.r_().msg)alert(fr.r_().msg);
this.av();this.k7()};ft.Ir.prototype.Gb=function(s){if(fr.ao()){fr.eG();this.k7();this.av(null,null,null)}else fr.Gb(this.aiZ.bind(this))};
ft.Ir.prototype.aiZ=function(){var s=new h9(v.E.g,!0);s.data={d:v.J.akH};this.Y(s)};ft.Ir.prototype.k7=function(){var s=new h9(v.E.g,!0);
s.data={d:v.J.aka};this.Y(s)};ft.Ch=function(s){fR.call(this);this.m=n.L("div");var m=this.m,l=this.a1H=new hj([0,13,2],!1,null,!0),x;
l.h("click",this.a9X,this);m.appendChild(l.m);if(s.startsWith("::")){x=n.L("iframe");x.setAttribute("style","width:100%;height:1700px; background-color:white;");
x.setAttribute("src",s.slice(2))}else{x=n.L("div");x.innerHTML=s}m.appendChild(x)};ft.Ch.prototype=new fR;
ft.Ch.prototype.a9X=function(s){var m=new h9("showpage",!0);m.data={jV:0};this.Y(m)};ft.Ch.prototype.U=function(){this.a1H.U()};
ft.aac="\t\t<h1>Contact</h1>\t\t<p>Photopea.com is operated by Ivan Kuckir (I\u010C 04498411, Tax ID CZ9011014309).</p>\t\t<ul>\t\t\t<li><b>Address</b>: H\xE1lkova 483, 517 41 Kostelec nad Orlic\xED, Czech Republic</li>\t\t\t<li><b>E-mail</b>: support@photopea.com, <b>Phone number</b>: +420 604 592 737</li>\t\t</ul>\t\t<h1>Refund Policy</h1>\t\t<p>You can ask for a refund by writing us an email to support@photopea.com and. \t\tWe offer only one kind of service, and if you have been refunded in the past, you can not get another refund.\t\t</p>\t\t<h1>Terms of Delivery</h1>\t\t<p>You can pay with a debit or a credit card. Payments are processed instantly, your Premium account will be activated instantly.</p>\t\t<h1>Payment Provider</h1>\t\t<p>Payments are provided by <a style=\"color:white\" href=\"https://www.comgate.cz/cz/platebni-brana\">ComGate pamyments, a.s</a>.</p>\t\t<ul>\t\t\t<li>ComGate Payments, a.s.</li>\t\t\t<li>Go\u010D\xE1rova t\u0159\xEDda 1754 / 48b, Hradec Kr\xE1lov\xE9</li>\t\t\t<li>E-mail: platby-podpora@comgate.cz, Tel: +420 228 224 267</li>\t\t</ul>\t\t<img src=\"https://www.comgate.cz/files/platebni-brana-comgate-paticka-e-shopu.png\" />\t";
function jb(){c4.call(this,[11,14],"addguides");this.zx;this.bR={HD:{jq:0}};this.FV=null;var s=n.L("div","form");
this.body.appendChild(s);this.uR=new ep([22,4,0],null,16);this.uR.h(v.E.p,this.vk,this);this.v4=new ep([22,4,1],null,16);
this.v4.h(v.E.p,this.vk,this);this.BE=new ge(null,L.pE.Mx);this.BE.h(v.E.p,this.vk,this);s.appendChild(this.uR.m);
s.appendChild(this.BE.m);n.Z0(s);s.appendChild(this.v4.m);this.aH=n.VH(this,s);this.h("closebtn",this.a6k,this)}jb.prototype=new c4;
jb.prototype.UW=function(s,m){return s!=null};jb.prototype.hl=function(){return!0};jb.prototype.U=function(){c4.prototype.U.call(this);
this.uR.U();this.v4.U();this.BE.U();this.aH.U()};jb.prototype.L8=function(s,m){var l=s.HD.jq;this.bR.HD.jq=l;
this.BE.f(l)};jb.prototype.av=function(s,m){this.zx=s;this.FV=JSON.stringify(s.Ls());this.ga()};jb.prototype.ga=function(){var s=this.zx,m=s.ff,l=function(x,a,s,P,o){var G=[];
for(var C=0;C<x.length;C++)if(x[C][0]==a)G.push(L.pE.YC(x[C][1],s.sz,P,o));return G.join(", ")};this.uR.f(l(m,0,s,this.bR,s.e));
this.v4.f(l(m,1,s,this.bR,s.l))};jb.prototype.vk=function(s){if(s&&s.currentTarget==this.BE)this.bR.HD.jq=this.BE._();
else{var m=this.aou(),l=this.zx;l.Bb(m);l.R8=!0}this.ga()};jb.prototype.aou=function(){var s=[],m=[];
for(var l=0;l<2;l++){var x=l==0?this.uR:this.v4,a=l==0?this.zx.e:this.zx.l,P=x._().replace(/,/g," ").replace(/ +/g," ").trim(),o=P==""?[]:P.split(" ");
for(var C=0;C<o.length;C++){s.push([l,L.pE.afC(o[C],this.zx.sz,this.bR,a)]);m.push(-1)}}return[s,m]};
jb.prototype.a6k=function(s){var m=this.zx;m.Bb(JSON.parse(this.FV));m.R8=!0;this.zx=null};jb.prototype.Rj=function(s){this.vk(s);
var m=new h9(v.E.u,!0);m.c=r.G1;m.data={d:"gids",l4:JSON.parse(this.FV),uP:this.zx.Ls()};this.zx=null;
this.close();this.Y(m)};function bX(s){var m=ib.names[s];if(m==null)m=eb.names[s];if(s=="aply")m=[2,12];
if(s=="fade")m=[2,11];if(s=="blendOptions")m=[14,10];c4.call(this,m,"afw_"+s);this.HU=s;this.X3=null;
this.mU=null;this.da=new B[s];this.da.h(v.E.p,this.zi,this);this.da.parent=this;this.body.appendChild(this.da.m);
this.an=new bj([24,18,5]);this.an.f(!0);this.an.h(v.E.p,this.zi,this);this.KO=new hj([1,12,2],!0,null,!0);
this.KO.h("click",this.gZ,this);this.aH=n.VH(this);if(this.Si())this.da.W$(this.aH.m);else{n.RY(this.da.m,"form");
n.RY(this.body,"flexrow");this.da.m.setAttribute("style","width:312px");var l=n.L("div");this.body.appendChild(l);
l.setAttribute("style","width:8em; margin-left:1em; line-height:2.3em");l.appendChild(this.aH.m);l.appendChild(this.KO.m);
l.appendChild(this.an.m)}this.h("closebtn",this.tx,this)}bX.prototype=new c4;bX.prototype.hl=function(){return!0};
bX.prototype.Si=function(){return this.da!=null&&this.da.Dl()};bX.prototype.u1=function(){return this.Si()?new fz(0,0):c4.prototype.u1()};
bX.prototype.aO=function(){return this.da.aO()};bX.prototype.s1=function(s,m,l,x,a){this.da.s1(s,m,l,x,a)};
bX.prototype.zk=function(s,m,l,x,a){this.da.zk(s,m,l,x,a)};bX.prototype.I6=function(s,m,l,x,a){this.da.I6(s,m,l,x,a)};
bX.prototype.UW=function(s,m){if(this.HU=="fade")return bX.a5y(s);return!0};bX.prototype.gZ=function(s){this.da.f(ib.Xi(this.HU));
this.zi()};bX.prototype.zi=function(s){this.ru({d:"edit",yt:this.da._(),t6:!this.an._()})};bX.prototype.tx=function(s){this.ru({d:"cancel"})};
bX.prototype.Rj=function(s){if(!this.an._()){this.an.f(!0);this.zi()}this.mU=this.da._();if(this.Si())this.zi();
this.ru({d:"confirm"});this.close()};bX.prototype.U=function(){c4.prototype.U.call(this);this.an.U();
if(this.da)this.da.U();this.aH.U()};bX.prototype.L8=function(s,m){if(this.da)this.da.L8(s,m)};bX.prototype.NZ=function(s,m,l,x){if(this.Si())this.da.NZ(x);
else c4.prototype.NZ.call(this,s,m,l,x)};bX.prototype.av=function(s,m,l,x){this.X3=m.X3;var a=s.add.lnk2?s.add.lnk2:[],P,o,G=new bU(0,0,s.e,s.l),_=s.G[s.N[0]],j=null;
P=_.buffer;o=_.rect;if(this.Si())j=s.cf(s.N[0]-1);var U=ib.Xi(this.HU),S=[a,s.$_,s];if(m.X3==null){this.da.f(U,P,o,G,j,S);
if(eb.names[this.HU]){if(x.$(dV.Il)&&this.mU)this.da.f(this.mU);var X=r.uf.getData(s),c=L.XU(X[0].uN);
this.da.AF(c)}}else{var y=!1,_=s.G[this.X3.i];if(_.UI()){var O=_.Ao(s);P=O.buffer;o=O.rect;var p=_.add.SoLd.filterFX.v.filterFXList.v;
if(p[this.X3.index]){var D=p[this.X3.index].v;this.da.f(this.HU=="blendOptions"?D.blendOptions.v:D.Fltr.v,P,o,G,j,S);
this.da.AF(L.XU(P));y=!0}}if(!y){this.da.f(U,P,o,G,j,S);this.da.AF(L.XU(P))}}if(!this.Si())this.zi()};
bX.prototype.ru=function(s){var m=new h9(v.E.u,!0);s.HU=this.HU;s.X3=this.X3;m.data=s;m.c=ib.names[this.HU]||this.X3?r.LI:r.P4;
m.zZ=!0;this.Y(m)};bX.prototype.jm=function(s,m){if(!this.da.Dl()){}else{this.body.style.padding="0";
this.da.jm(s,m)}};bX.a5y=function(s){if(s==null)return!1;var m=s.b1();if(m==null||!(m.data instanceof Array)||m.data.length!=s.N.length)return!1;
for(var C=0;C<m.data.length;C++){var l=m.data[C];if(l.i<0&&s.$_[-1-l.i])return!0;if(l.i==null||s.G[l.i]==null||s.G[l.i].Ar!=l.ou)return!1;
if(s.N.indexOf(l.i)==-1)return!1}return!0};function hv(){c4.call(this,[11,0],"camera");this.data=null;
this.MC=new fz(1,1);this.a5Q=[];var s=n.L("div","form hbar");this.body.appendChild(s);this.aak=new ge(null,[]);
this.dy=new ge([21,0],[[21,2],[21,1]]);s.appendChild(this.dy.m);this.tZ=new ge(null,[]);this.tZ.h(v.E.p,this.a49,this);
s.appendChild(this.tZ.m);this.Nz=new hj([11,0],!1,null,!0);this.Nz.h("click",this.atv,this);s.appendChild(this.Nz.m);
this.hx=new jG("");s.appendChild(this.hx.m);this.stream=null;this.dF=n.L("video","");this.dF.setAttribute("autoplay","true");
this.body.appendChild(this.dF);this.a1E=this.ait.bind(this);this.a6C=this.adv.bind(this);this.ag5=this.ajw.bind(this);
this.h("closebtn",this.apS,this)}hv.prototype=new c4;hv.prototype.U=function(){c4.prototype.U.call(this);
this.dy.U();this.Nz.U();this.jm(this.h_,this.Cm)};hv.prototype.cf=function(){var s=this.dF.videoWidth,m=this.dF.videoHeight,l=n.L("canvas","");
l.width=s;l.height=m;var x=l.getContext("2d");x.drawImage(this.dF,0,0,s,m);var a=x.getImageData(0,0,s,m);
return{Sb:new bU(0,0,s,m),data:a.data.buffer}};hv.prototype.atv=function(s){if(this.dy._()==0)this.ae8();
else this.atp()};hv.prototype.atp=function(){var s=this.cf(),m={buffer:new Uint8Array(s.data),rect:s.Sb},l=new h9(v.E.u,!0);
l.zZ=!0;l.c=r.ay;l.data={d:t.jz,lo:m};this.Y(l);alert(iX.get([21,4]))};hv.prototype.ae8=function(){var s=this.cf(),m=iO.mt("camera",[s]),l=new h9(v.E.g,!0);
l.data={d:v.J.Ig,u0:m};this.Y(l);alert(iX.get([21,5]))};hv.prototype.av=function(s,m,l){navigator.mediaDevices.enumerateDevices().then(this.a04.bind(this))};
hv.prototype.a04=function(s){var m=this.a5Q=[],l=[];for(var C=0;C<s.length;C++)if(s[C].kind=="videoinput"){m.push(s[C]);
l.push("Camera "+m.length)}this.tZ.AZ(l);this.tZ.f(0);this.a49()};hv.prototype.a49=function(s){this.apS();
var m={video:{deviceId:this.a5Q[this.tZ._()].deviceId,width:{ideal:8e3},height:{ideal:8e3}}};if(navigator.mediaDevices.getUserMedia)navigator.mediaDevices.getUserMedia(m).then(this.a1E).catch(this.a6C);
else navigator.webkitGetUserMedia(m,this.a1E,this.a6C)};hv.prototype.ait=function(s){this.stream=s;this.dF.srcObject=s;
this.dF.addEventListener("loadedmetadata",this.ag5,!1)};hv.prototype.ajw=function(s){this.dF.play();
this.jm(this.h_,this.Cm)};hv.prototype.u1=function(s,m){return new fz(0,0)};hv.prototype.jm=function(s,m){var l=this.dF.videoWidth,x=this.dF.videoHeight;
this.hx.f(l+" x "+x+" px");this.hx.m.setAttribute("style","position:absolute; left:14px; bottom:10px; z-index:1;");
this.MC.Qk(l,x);this.h_=s;this.Cm=m;var a=s-28,P=m-28-30,o=this.MC.x/this.MC.y;if(a/P>o)a=P*o;else P=a/o;
this.dF.setAttribute("style","display: block; width: "+Math.round(a)+"px; height:"+Math.round(P)+"px;")};
hv.prototype.adv=function(s){console.log("error",s);alert(iX.get([21,6]));this.close()};hv.prototype.apS=function(s){if(this.stream!=null){var m=this.stream.getTracks();
for(var C=0;C<m.length;C++)m[C].stop();this.stream=null}};function jC(){c4.call(this,[7,8],"crange");
this.zx=null;this.je={J5:73,lz:4.45,S:4};this.rz={J5:73,lz:4.45,S:4};this.body.style.width="20em";this.HY=new ge([0,5],["Sampled Colors",[19,6,0],[19,6,1],[19,6,2]]);
this.HY.h(v.E.p,this.a1W,this);this.body.appendChild(this.HY.m);this.WU=n.L("div","form");this.body.appendChild(this.WU);
var s=this.a2r=2,m=this.Ey=[new aR([12,92],0,200),new co([12,36],[[18,0],"\uFF0B","\u2014"]),new aR([12,92],0,100,"%"),new dy("Min",0,255),new dy("Max",0,255)];
m[0].f(40);m[s].f(40);for(var C=0;C<m.length;C++){m[C].h(v.E.p,this.ZJ,this);m[C].parent=this}this.w=n.L("canvas");
this.body.appendChild(this.w);this.aH=n.VH(this,this.body)}jC.prototype=new c4;jC.prototype.UW=function(s,m){return s!=null};
jC.prototype.aO=function(){return!0};jC.prototype.hl=function(){return!0};jC.prototype.a1W=function(s){var m=this.HY._(),l=this.Ey,x=this.WU,a=0,P=l.length,o=this.a2r;
if(m==0)P=o;else{a=o;l[a+1].f([0,100,190][m-1]);l[a+1].k5(m!=1);l[a+2].f([60,150,255][m-1]);l[a+2].k5(m!=3)}n.em(x);
for(var C=a;C<P;C++){x.appendChild(l[C].m)}this.ZJ()};jC.prototype.U=function(){c4.prototype.U.call(this);
this.aH.U();this.HY.U();for(var C=0;C<this.Ey.length;C++)this.Ey[C].U()};jC.prototype.s1=function(s,m,l,x,a){var P=s.t.cr(a.x,a.y);
this.ajR(P.x,P.y)};jC.prototype.ajR=function(s,m){var l=Math.min,x=Math.max,a=this.zx,P=x(0,l(a.e-1,Math.floor(s))),o=x(0,l(a.l-1,Math.floor(m))),G=a.cf(),_=(o*a.e+P)*4,j=G[_],U=G[_+1],S=G[_+2],X=L._g(j,U,S),c=this.Ey[1]._(),y=this.je,O=this.rz;
if(c==0){this.je=JSON.parse(JSON.stringify(X));this.rz=X}else if(c==1){y.J5=l(y.J5,X.J5);y.lz=l(y.lz,X.lz);
y.S=l(y.S,X.S);O.J5=x(O.J5,X.J5);O.lz=x(O.lz,X.lz);O.S=x(O.S,X.S)}else if(c==2){var p=(y.J5+O.J5)/2,D=(y.lz+O.lz)/2,f=(y.S+O.S)/2;
if(X.J5<p)y.J5=x(y.J5,X.J5+10);else O.J5=l(O.J5,X.J5-10);if(X.lz<D)y.lz=x(y.lz,X.lz+1);else O.lz=l(O.lz,X.lz-1);
if(X.S<f)y.S=x(y.S,X.S+1);else O.S=l(O.S,X.S-1)}this.ZJ()};jC.prototype.Rj=function(s){var m=this.HY._(),l=this.Ey,x={__name:"Color Range",classID:"ClrR",colorModel:{t:"long",v:0}};
if(m==0){var a=this.je,P=this.rz;x.Mnm={t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:a.J5},A:{t:"doub",v:a.lz},B:{t:"doub",v:a.S}}};
x.Mxm={t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:P.J5},A:{t:"doub",v:P.lz},B:{t:"doub",v:P.S}}};x.Fzns={t:"long",v:l[0]._()}}else{m--;
var o=["shadows","midtones","highlights"][m];x.Clrs={t:"enum",v:{Clrs:["Shdw","Mdtn","Hghl"][m]}};if(0<m)x[o+"LowerLimit"]={t:"long",v:l[3]._()};
if(m<2)x[o+"UpperLimit"]={t:"long",v:l[4]._()};x[o+"Fuzziness"]={t:"long",v:l[2]._()}}this.close();var G=new h9(v.E.b4,!0);
G.data={YF:"colorRange",WA:x};this.Y(G)};jC.prototype.av=function(s,m){this.zx=s;this.ajR(0,0);this.a1W()};
jC.prototype.ZJ=function(){var s=this.zx,m=this.HY._(),l=this.je,x=this.rz,a=this.Ey,P=a[0]._()/200,o=!1;
if(m>0){l=a[3]._();x=a[4]._();if(l>=x)l=x-1;o=!0;P=a[2]._()/100}var G=r.bJ.cX(s,l,x,P,o),_=G.rect,j=G.channel,U=this.w,S=U.getContext("2d"),X=Math.floor(230*n.W()),c=Math.floor(X*(_.l/_.e));
U.width=X;U.height=c;n.cO(U,X,c);var y=L.B(j.length*4);L.MP(y,4294967295);for(var C=0;C<3;C++)L._Y(j,y,C);
var O=r.Q.ea([y,_],new ae(X/_.e,0,0,c/_.l,0,0)),p=O.rect,D=new ImageData(new Uint8ClampedArray(O.buffer.buffer),p.e,p.l);
S.putImageData(D,0,0)};function eY(){c4.call(this,[12,76,1],"createshape");this.fV=null;var s=n.L("div","form");
s.setAttribute("style","width:20em");this.body.appendChild(s);this.US=new dy([12,41],0,0,null,0,!1,!0);
s.appendChild(this.US.m);n.Z0(s);this.uR=new dy([12,42],0,0,null,0,!1,!0);s.appendChild(this.uR.m);n.Z0(s);
this.Q3=new bj([19,5,3]);s.appendChild(this.Q3.m);this.US.f(100);this.uR.f(100);this.aH=n.VH(this,s)}eY.prototype=new c4;
eY.prototype.Rj=function(s){this.fV.aj9(this.fV.ad3,this.US._(),this.uR._(),this.Q3._());this.close()};
eY.prototype.U=function(){if(this.fV)this.bi=iX.get([5,3])+": "+iX.get(this.fV.adb);c4.prototype.U.call(this);
this.aH.U();this.US.U();this.uR.U();this.Q3.U()};eY.prototype.av=function(s,m){this.fV=m;this.U()};function aV(){c4.call(this,[11,1],"colorpicker");
this.g0=null;this.ft=null;this.tC=null;this.t_=!1;this.J4=!1;var s=n.L("div","flexrow"),P,o;this.body.appendChild(s);
this.vg=new gq(256);this.vg.h(v.E.p,this.Ju,this);s.appendChild(this.vg.m);var m=n.L("div","form");m.setAttribute("style","width:14.5em; margin-left:1em;");
s.appendChild(m);this.a6v=n.L("div","full");m.appendChild(this.a6v);this.a7l=n.L("div","full");m.appendChild(this.a7l);
var l=n.L("div","flexrow");m.appendChild(l);var x=n.L("div"),a=n.L("div");l.appendChild(x);l.appendChild(a);
P=["R","G","B"];o=x;this.sK=[];for(var C=0;C<3;C++){var G=new dy(P[C]+":",0,255,null,0,!1,!0);this.sK.push(G);
G.h(v.E.p,this.ad2,this);o.appendChild(G.m)}P=["H","S","B"];o=a;this.HW=[];for(var C=0;C<3;C++){var _=0,j=360,U="\xB0";
if(C!=0){j=100;U="%"}var G=new dy(P[C]+":",_,j,U,0,!1,!0);this.HW.push(G);G.h(v.E.p,this.afm,this);o.appendChild(G.m)}this.uR=new ep("Hex",null,6);
this.uR.h(v.E.p,this.nx,this);m.appendChild(this.uR.m);this.OT=n.L("input","fitem");this.OT.setAttribute("type","color");
this.OT.setAttribute("style","width:50px");this.OT.addEventListener("change",this.nx.bind(this),!1);
m.appendChild(this.OT);this.aa=new eh(9);this.aa.h(v.E.p,this.nx,this);m.appendChild(this.aa.m);this.aH=n.VH(this,m);
this.h("closebtn",this.tx,this);this.Ww=!1}aV.prototype=new c4;aV.prototype.aO=function(){return!0};
aV.prototype.u1=function(s,m){return new fz(Math.max(0,Math.min(150,(s-484)/2)),Math.max(0,Math.min(150,(m-316)/2)))};
aV.prototype.jm=function(s,m){this.vg.jm(Math.min(256,s-226),m)};aV.prototype.U=function(s,m){c4.prototype.U.call(this);
this.aH.U()};aV.prototype.Ju=function(s){this.ft=this.vg._();this.update()};aV.prototype.s1=function(s,m,l,x,a){this.Ww=!0;
this.aqC(s,a)};aV.prototype.zk=function(s,m,l,x,a){if(!this.Ww)return;this.aqC(s,a)};aV.prototype.I6=function(s,m,l,x,a){this.Ww=!1};
aV.prototype.aqC=function(s,m){var l=r.n4.xl(s,m,1),x=l&255,a=l>>8&255,P=l>>16&255;this.ft={o:P/255,z:a/255,S:x/255};
this.update()};aV.prototype.ad2=function(s){var m=this.sK,l=this.ov(parseInt(m[0]._())),x=this.ov(parseInt(m[1]._())),a=this.ov(parseInt(m[2]._()));
this.ft={o:l/255,z:x/255,S:a/255};this.update()};aV.prototype.afm=function(s){var m=this.HW,l=this.BY(parseInt(m[0]._())/360),x=this.BY(parseInt(m[1]._())/100),a=this.BY(parseInt(m[2]._())/100);
this.ft=L.B7(l,x,a);this.update()};aV.prototype.nx=function(s){var m;if(s.currentTarget==this.aa)m=this.aa._();
else{m=s.currentTarget==this.uR?this.uR._():this.OT.value;if(m.charAt(0)=="#")m=m.slice(1);if(m.length==3)m=m[0]+m[0]+m[1]+m[1]+m[2]+m[2];
m=L.j9(m)}this.ft={o:(m>>16&255)/255,z:(m>>8&255)/255,S:(m&255)/255};this.update()};aV.prototype.lO=function(s){var m=s.o,l=s.z,x=s.S;
return Math.round(m*255)<<16|Math.round(l*255)<<8|Math.round(x*255)};aV.prototype.Rj=function(s){this.aog();
var m=this.lO(this.ft);this.tC(m);this.close();this.J4=!1;this.ft=null};aV.prototype.tx=function(s){this.aog();
if(this.t_)this.tC(this.lO(this.g0));this.J4=!1;this.ft=null};aV.prototype.aog=function(s){var m=new h9(v.E.g,!0);
m.data={d:v.J.a5H};this.Y(m)};aV.prototype.L8=function(s,m){if(m!=gN.WV)return;var l=s.zU;this.aa.f(l);
if(this.ft!=null){this.ft={o:(l>>16&255)/255,z:(l>>8&255)/255,S:(l>>0&255)/255};this.update()}};aV.prototype.av=function(s,m){var l=m.wI,x={o:(l>>16&255)/255,z:(l>>8&255)/255,S:(l>>0&255)/255};
if(this.ft==null){var a=new h9(v.E.g,!0);a.data={d:v.J.GL,Cr:"crosshair",push:!0};this.Y(a);this.Ww=!1;
this.tC=m.QW;this.t_=!1;this.J4=m.Ok;this.g0=JSON.parse(JSON.stringify(x));this.a7l.setAttribute("style","height:3em;background-color:#"+L.eZ(l)+";")}this.ft=x;
this.update()};aV.prototype.update=function(){var s=this.ft,m=this.lO(s),l=this.sK;l[0].f(Math.round(s.o*255));
l[1].f(Math.round(s.z*255));l[2].f(Math.round(s.S*255));this.uR.f(L.eZ(m));this.OT.value="#"+L.eZ(m);
this.a6v.setAttribute("style","height:3em;background-color:#"+L.eZ(m)+";");var x=L.Az(s.o,s.z,s.S);l=this.HW;
l[0].f(Math.round(x.Cm*360));l[1].f(Math.round(x.zd*100));l[2].f(Math.round(x.yt*100));this.vg.f(s);
if(this.J4){this.tC(this.lO(this.ft));this.t_=!0}};aV.prototype.ov=function(s){return Math.max(0,Math.min(255,s))};
aV.prototype.BY=function(s){return Math.max(0,Math.min(1,s))};function hl(){c4.call(this,[11,2],"contoureditor");
this.a3_=null;this.f5=null;this.response=null;this.wg=n.L("div","cell");this.body.appendChild(this.wg);
this.gL=n.L("div","cell padded");this.body.appendChild(this.gL);var s=n.L("div","bordered padded vmargin");
this.wg.appendChild(s);this.da=new dD;this.da.h(v.E.p,this.hg,this);s.appendChild(this.da.m);this.aH=n.VH(this,this.gL);
this.coords=n.L("div","");this.coords.setAttribute("style","width:250px");this.wg.appendChild(this.coords);
this.$C=new ep("X (in)","%",4);this.eA=new ep("Y (out)","%",4);this.Oq=new bj([19,3,0]);this.$C.h(v.E.p,this.sn,this);
this.eA.h(v.E.p,this.sn,this);this.Oq.h(v.E.p,this.sn,this);this.coords.appendChild(this.$C.m);this.coords.appendChild(this.Oq.m);
this.coords.appendChild(this.eA.m);this.h("closebtn",this.uj,this)}hl.prototype=new c4;hl.prototype.Rj=function(){this.close()};
hl.prototype.U=function(){c4.prototype.U.call(this);this.aH.U();this.Oq.U()};hl.prototype.hg=function(s){this.f5.Crv.v=this.da._();
this.response(this.f5);this.iW()};hl.prototype.uj=function(s){this.response(this.a3_)};hl.prototype.av=function(s,m){this.a3_=JSON.parse(JSON.stringify(m.tH));
this.f5=m.tH;this.response=m.response;this.da.f(this.f5.Crv.v);this.iW()};hl.prototype.iW=function(){var C=this.da.a1J();
this.coords.setAttribute("class",C==-1?"disabled":"");if(C==-1)return;var s=this.f5.Crv.v[C].v;this.$C.f(Math.round(s.Hrzn.v*(100/255)));
this.eA.f(Math.round(s.Vrtc.v*(100/255)));this.Oq.f(s.Cnty.v)};hl.prototype.sn=function(s){var C=this.da.a1J(),m=this.f5.Crv.v[C];
m.v.Hrzn.v=parseFloat(this.$C._())*(255/100);m.v.Vrtc.v=parseFloat(this.eA._())*(255/100);m.v.Cnty.v=this.Oq._();
this.f5.Crv.v.sort(function(l,x){return l.v.Hrzn.v-x.v.Hrzn.v});this.da.f(this.f5.Crv.v,this.f5.Crv.v.indexOf(m));
this.iW();this.response(this.f5)};function jL(){c4.call(this,[11,3],"csize");this.AT=0;this.WL=n.L("div","form");
this.WL.setAttribute("style","width:22em");this.body.appendChild(this.WL);this._5=new bE(!0,!0,!0,!0,!0);
this._5.ahi(!1);this.WL.appendChild(this._5.m);this.gG=new co("Align with",[[8,7],[12,6]]);this.gG.h(v.E.p,this.a3E,this);
this.V9=new iS([12,23,2],41);this.WL.appendChild(this.V9.m);this.V9.f(4);this.Jn=new i7(!1);this.Jn.aek(new fz(0,0));
this.aH=n.VH(this,this.body)}jL.prototype=new c4;jL.prototype.UW=function(s,m){return s!=null};jL.prototype.hl=function(){return!0};
jL.prototype.sO=function(s){return[dV.io,dV.oJ,dV.Lu,dV.pV].indexOf(s)!=-1};jL.prototype.NZ=function(s,m,l,x){this.V9.ab3(x.jv())};
jL.prototype.a3E=function(){var s=[this.V9.m,this.Jn.m];this.WL.removeChild(s[this.AT]);this.AT=this.gG._();
this.WL.appendChild(s[this.AT])};jL.prototype.U=function(){c4.prototype.U.call(this);this._5.U();this.gG.U();
this.V9.U();this.Jn.U();this.aH.U()};jL.prototype.Rj=function(s){var m=this._5._(),l=m.x,x=m.y,a=new h9(v.E.b4,!0);
a.data=r.Bs.qg(l,x,this.V9._());this.close();this.Y(a)};jL.prototype.av=function(s,m){this._5.f(new fz(s.e,s.l),s.sz);
this._5.tJ()};function ee(){c4.call(this,[11,4],"duplinto");this.EC=null;this.cu=null;this.mc=null;var s=n.L("div","form");
s.setAttribute("style","max-width:26em");this.body.appendChild(s);this.Os=new ge([12,43],["abc","def"]);
this.Os.h(v.E.p,this.C1,this);s.appendChild(this.Os.m);n.Z0(s);this.nY=new ge("Artboard",["abc","def"]);
this.nY.h(v.E.p,this.C1,this);s.appendChild(this.nY.m);n.Z0(s);this.zc=new ep([12,48],null,14);s.appendChild(this.zc.m);
this.aH=n.VH(this,s)}ee.prototype=new c4;ee.prototype.hl=function(){return!0};ee.prototype.U=function(){c4.prototype.U.call(this);
this.aH.U();this.Os.U();this.zc.U()};ee.prototype.C1=function(s){if(s&&s.target==this.nY)return;var m=this.Os._(),l=this.cu[m],x=this.EC,a=l!=null&&l.add.artd!=null;
for(var C=0;C<x.N.length;C++)if(x.G[x.N[C]].add.artb)a=!1;this.zc.k5(m==this.cu.length);this.nY.k5(a);
if(a){var P=l.root.children,o=[],G=this.mc=[];for(var C=0;C<P.length;C++){var _=P[C].i;if(_.add.artb)o.push(_.getName());
G.push(P[C].index)}this.nY.AZ(o);this.nY.f(0)}else this.mc=null};ee.prototype.av=function(s,m,l){this.EC=s;
this.cu=l;this.zc.f(s.N.length==0?"Layer":s.G[s.N[0]].getName());var x=[];for(var C=0;C<l.length;C++)x.push(l[C].name);
x.push([11,7]);this.Os.AZ(x);this.Os.f(l.indexOf(s));this.C1(null)};ee.prototype.Rj=function(s){var m=this.Os._();
if(m==this.cu.length){var l=new jF(this.zc._()+".psd"),x=this.EC.e,a=this.EC.l,P=this.EC.SV();if(P!=-1){var o=this.EC.G[P].wy();
x=o.e;a=o.l}l.e=x;l.l=a;l.buffer=L.B(l.e*l.l*4);var G=l.d2();G.qW("Background");l.B0([G]);var _=new h9(v.E.g,!0);
_.zZ=!0;_.data={d:v.J.Ig,u0:l};this.Y(_)}var j=this.EC.qJ(null,this.EC!=this.cu[m]),_=new h9(v.E.u,!0);
_.data={d:t.mg,G:j,Pr:this.EC,XT:this.cu[m]};if(this.mc)_.data.tc=this.mc[this.nY._()];_.c=r.ay;_.zZ=!0;
this.Y(_);this.close()};function bM(){c4.call(this,[1,9],"eassets");this.bR=null;this.qu=null;var s=n.L("div","form");
s.setAttribute("style","width:32em");this.body.appendChild(s);this.lU=n.L("span");s.appendChild(this.lU);
n.Z0(s);this.J2=[new bj("Only layers / folders, whose name starts with \"-e-\""),new bj("Remove parts outside the canvas"),new bj("Trim transparent parts")];
for(var C=0;C<3;C++){var m=this.J2[C];m.f(!0);m.h(v.E.p,this.ga,this);s.appendChild(m.m);n.Z0(s)}this.A7=new ja([12,14,0],["1x","2x","3x","4x"]);
this.A7.f([!0,!1,!1,!1]);s.appendChild(this.A7.m);n.ti(s);this.f$=["PNG","JPG","SVG"];this.ZN=new ge([12,50],this.f$);
this.ZN.h(v.E.p,this.aqX,this);s.appendChild(this.ZN.m);this.fB=new ev;s.appendChild(this.fB.m);this.aH=new hj([1,9],!0,null,!0);
this.aH.h("click",this.Rj,this);s.appendChild(this.aH.m);this.h("closebtn",this.l$,this)}bM.prototype=new c4;
bM.prototype.aqX=function(s){this.fB.a6d(this.f$[this.ZN._()])};bM.prototype.l$=function(s){this.qu=null};
bM.prototype.U=function(){c4.prototype.U.call(this);this.ZN.U();this.A7.U();this.aH.U();this.fB.U()};
bM.prototype.av=function(s,m,l){this.qu=s;this.ga()};bM.prototype.ga=function(s){var m=this.acq(),l="- - - "+m.length+" exportable layers";
this.lU.textContent=l;this.aqX(null)};bM.prototype.acq=function(){var s=this.J2[0]._(),m=[],l=this.qu;
for(var C=0;C<l.G.length;C++){var x=l.G[C],a=x.getName();if(!s&&!x.gu()&&!x.rect.Xh()||a.startsWith("-e"))m.push(C)}return m};
bM.prototype.L8=function(s,m){this.bR=s};bM.prototype.Rj=function(s){var m=this.qu,l=[this.f$[this.ZN._()]],x=[this.fB._()],a=this.A7._(),P={},o={},G=this.acq();
if(G.length==0){alert("No layers to export.");return}var _=[this.J2[1]._(),this.J2[2]._()];for(var C=0;
C<G.length;C++){var j=G[C],U=m.G[j],S=U.getName();if(o[S]!=null){o[S]++;S+=" "+o[S]}else o[S]=1;var X=U.p$();
U.tG(!0);for(var c=0;c<a.length;c++){if(!a[c])continue;var y=c+1,O=r.PL._P(m,l,y,this.bR,j,x,_);for(var p=0;
p<l.length;p++){var D=l[p],f=S.slice(S.startsWith("-e-")?3:0)+(y==1?"":"-"+y+"x")+"."+D.toLowerCase();
if(O[p])P[f]=new Uint8Array(O[p])}}U.tG(X)}var T=UZIP.encode(P),I=new h9(v.E.g,!0);I.data={d:v.J.V7,data:T,name:"assets.zip"};
this.Y(I)};function bC(){c4.call(this,"Export Color Lookup Tables","exlut");this.bR=null;this.qu=null;
var s=n.L("div","form");s.setAttribute("style","width:20em");this.body.appendChild(s);this.J2=[new dy("Grid Points",1,256),new co([12,50],[".CUBE"])];
var m=[16,0];for(var C=0;C<this.J2.length;C++){var l=this.J2[C];l.f(m[C]);l.parent=this;l.h(v.E.p,this.ga,this);
s.appendChild(l.m);n.Z0(s)}this.aH=n.VH(this,s);this.h("closebtn",this.l$,this)}bC.prototype=new c4;
bC.prototype.UW=function(s,m){if(Math.min(s.e,s.l)<16){alert("The document must be at least 16 x 16 pixels.",3200);
return!1}if(s.G.length<2){alert("There must be a background layer and some adjustment layers.",3200);
return!1}return!0};bC.prototype.l$=function(s){this.qu=null};bC.prototype.L8=function(s,m){this.bR=s};
bC.prototype.av=function(s,m,l){this.qu=s};bC.prototype.Rj=function(){var s=this.qu,m=this.J2[0]._(),l=[],x=new bU(0,0,s.e,s.l),a=L.B(m*m*4),P=a.slice(0),o=new bU(s.e-m>>>1,s.l-m>>>1,m,m),G=s.G[0],_=G.buffer,j=G.rect;
G.rect=o;G.buffer=a;for(var U=0;U<m;U++){this.ac3(m,U,a);G.F(o);s.F(o);var S=s.cf();L.yx(S,x,P,o);for(var X=0;
X<m;X++)for(var c=0;c<m;c++){var y=X*m+c<<2;l.push(P[y]/255,P[y+1]/255,P[y+2]/255)}}var O=aO.ak8(l,m,s.name);
d4.save(O,s.name.split(".")[0]+".CUBE");G.buffer=_;G.rect=j;G.F();s.F()};bC.prototype.ac3=function(s,m,l){var x=255/(s-1),a=Math.round(m*x);
for(var P=0;P<s;P++)for(var o=0;o<s;o++){var G=P*s+o<<2;l[G]=Math.round(o*x);l[G+1]=Math.round(P*x);
l[G+2]=a;l[G+3]=255}};bC.prototype.U=function(){c4.prototype.U.call(this);for(var C=0;C<this.J2.length;
C++)this.J2[C].U();this.aH.U()};function dv(){c4.call(this,[1,14],"finfo");this.l_=null;this.JU=null;
this.IV=null;this.WL=n.L("div","form scrollable label12");this.WL.setAttribute("style","width:35em; height:38em; margin-bottom:8px");
this.body.appendChild(this.WL);var s=n.L("div","form");this.body.appendChild(s);this.hv=new ge(null,["Hello"]);
s.appendChild(this.hv.m);this.aaS=new hj("Add Parameter",!1,null,!0);s.appendChild(this.aaS.m);this.aaS.h("click",this.FK,this);
this.zR=new hj("=== S A V E ===",!1,null,!0);s.appendChild(this.zR.m);this.zR.h("click",this.rT,this);
this.adm=""}dv.prototype=new c4;dv.prototype.u1=function(s,m){return s<450||m<450?new fz(0,0):new fz(150,100)};
dv.prototype.FK=function(s){if(this.IV.length==0)return;var m=this.IV[this.hv._()],l=this.UN();l[m]=bs.MG[m][0];
this.kd(l);this.JU[m].m.scrollIntoView();this.JU[m].tJ()};dv.prototype.yC=function(s){var m=this.UN();
delete m[s.currentTarget.a60];this.kd(m)};dv.prototype.rT=function(s){var m=this.UN(),l=this.l_,x=!0;
for(var a in l)if(JSON.stringify(l[a])!=JSON.stringify(m[a]))x=!1;for(var a in m)if(JSON.stringify(l[a])!=JSON.stringify(m[a]))x=!1;
if(x)return;var P=new h9(v.E.u,!0);P.c=r.ay;P.data={d:t.jr,JR:m};this.Y(P);this.l_=m;this.kd(m)};dv.apD=function(s){function m(a){var P=a.toLowerCase();
return a==P}var l=s.split(":").pop();for(var x=1;x<l.length-1;x++){if(l[x]==l[x].toUpperCase()&&(m(l[x+1])||m(l[x-1]))){l=l.slice(0,x)+" "+l.slice(x);
x++}}return l};dv.prototype.av=function(s,m){this.l_=s.l1;this.kd(s.l1)};dv.prototype.kd=function(s){var m=this.WL,a=0;
n.em(m);var l=this.JU={},x=["tiff","exif","exif:GPS"],P=this.IV=[],o=[];for(var G in bs.MG){var _=dv.apD(G),j=0,U=15,S=null;
if(s[G]==null){P.push(G);o.push(_);continue}for(var C=0;C<x.length;C++)if(G.startsWith(x[C]))j=C;if(j!=a){n.ti(m);
a=j}if(G=="tiff:ImageDescription"||G=="dc:Keywords"){U=18.5;S=3}var X=new ep(_,null,U,S);l[G]=X;var c=s[G];
if(c instanceof Array)c=c[1]==0?"---":c[0]+"/"+c[1];var y=new hj("\u2716",null,iX.get([5,4]));m.appendChild(y.m);
y.h("click",this.yC,this);y.a60=G;X.f(c);m.appendChild(X.m);n.Z0(m);if(G=="exif:GPSLongitude"&&s["exif:GPSLatitude"]){this.adm=dv.a00(s["exif:GPSLatitude"])+","+dv.a00(s["exif:GPSLongitude"]);
var O=new hj("Show on map",!1,null,!0);m.appendChild(O.m);n.Z0(m);O.h("click",this.alH,this)}}this.hv.AZ(o);
this.hv.f(0)};dv.prototype.UN=function(){var s=this.JU,m=bs.MG,l={};for(var x in m){var a=m[x][0],P=typeof a;
if(a==null||s[x]==null)continue;var o=s[x]._(),G="The value of \""+dv.apD(x)+"\" must ";if(P=="number"){o=parseFloat(o);
if(isNaN(o)){alert(G+"be a number.");o=a}}else if(a instanceof Array&&a.length==2){if(o.indexOf("/")==-1){alert(G+"be a fraction.");
o=a.slice(0)}else{o=o.split("/").map(parseFloat);if(isNaN(o[0])||isNaN(o[1])){o=a.slice(0)}}}l[x]=o}return l};
dv.a00=function(s){var m=s.length,l=s.slice(0,m-1).split(",").map(parseFloat),x=s.slice(m-1),a=l[0]+l[1]/60+l[2]/3600;
if(x!="N"&&x!="E")a=-a;return a};dv.prototype.alH=function(s){window.open("https://maps.google.com?q="+this.adm,"Map")};
function fU(){c4.call(this,[11,5],"gradienteditor");this.g0=null;this.ft=null;this.$e=null;this.tC=null;
this.t_=!1;this.J4=!1;this.DM=null;this.LC=null;this.zg=-1;this.mG=-1;this.Ea=0;this.fR=this.rP.bind(this);
this.TW=this.Hk.bind(this);this.w=n.L("canvas");this.og=this.w.getContext("2d");this.w.setAttribute("style","display:block");
this.ih=null;n.FE(this.w);n.i3(this.w,this.fj.bind(this));this.DV=n.L("div","form");this.aq1=n.L("div");
this.I7=n.L("div","form");this.a4K=n.L("div");this.ny=new ge([12,44],[[15,10,0],[24,6]]);this.ny.h(v.E.p,this.l5,this);
this.body.appendChild(this.ny.m);n.ti(this.body);var s=this.DV;this.nV=new dy([19,3,3],0,100,"%");this.nV.h(v.E.p,this.l5,this);
this.nV.parent=this;s.appendChild(this.nV.m);n.Z0(s);this.eq=new jG([12,0]);s.appendChild(this.eq.m);
this.TD=n.L("div","bordered padded noalign");s.appendChild(this.TD);this.Dv=new dy([12,0],0,100,"%");
this.Dv.parent=this;this.Dv.h(v.E.p,this.l5,this);this.TD.appendChild(this.Dv.m);this.Ih=new dy([12,40],0,100,"%");
this.Ih.parent=this;this.Ih.h(v.E.p,this.l5,this);this.TD.appendChild(this.Ih.m);this.Mf=new hj([5,4],!1,null,!0);
this.Mf.h("click",this.atq,this);this.TD.appendChild(this.Mf.m);s.appendChild(this.aq1);this.a1g=new jG([13,0]);
s.appendChild(this.a1g.m);this.oq=n.L("div","bordered padded noalign");s.appendChild(this.oq);this.yN=new ge([12,44],[[12,45],[12,46],[12,47]]);
this.yN.h(v.E.p,this.l5,this);this.oq.appendChild(this.yN.m);this.Tr=new fM(!0);this.Tr.parent=this;
this.Tr.h(v.E.p,this.l5,this);this.oq.appendChild(this.Tr.m);this.ri=new dy([12,40],0,100,"%");this.ri.parent=this;
this.ri.h(v.E.p,this.l5,this);this.oq.appendChild(this.ri.m);this.Wg=new hj([5,4],!1,null,!0);this.Wg.h("click",this.a5z,this);
this.oq.appendChild(this.Wg.m);var s=this.I7;this.KK=new dy("Roughness",0,100,"%");this.KK.h(v.E.p,this.l5,this);
this.KK.parent=this;s.appendChild(this.KK.m);s.appendChild(this.a4K);this.i1=new hj([25,1,2],!1,null,!0);
this.i1.h("click",this.l5,this);s.appendChild(this.i1.m);this.aH=n.VH(this);this.h("closebtn",this.tx,this)}fU.prototype=new c4;
fU.prototype.tx=function(s){if(this.t_)this.tC(this.g0)};fU.prototype.U=function(){c4.prototype.U.call(this);
this.aH.U();this.nV.U();this.eq.U();this.a1g.U();this.Mf.U();this.Wg.U();this.Dv.U();this.Ih.U();this.yN.U();
this.ri.U();this.i1.U()};fU.prototype.L8=function(s,m){this.$e=s};fU.prototype.av=function(s,m){this.ft=JSON.parse(JSON.stringify(m.K));
this.g0=JSON.parse(JSON.stringify(m.K));this.DM=this.LC=null;this.tC=m.QW;this.t_=!1;this.J4=m.Ok;this.Pf();
this.gn()};fU.prototype.Rj=function(s){var m=this.ft;this.tC(m);this.close()};fU.prototype.sO=function(s){return s==dV.vR||s==dV.H8};
fU.prototype.NZ=function(s,m,l,x){if(x.$(dV.vR)||x.$(dV.H8)){if(this.LC)this.atq();if(this.DM)this.a5z()}};
fU.prototype.atq=function(s){var m=this.ft.Trns.v;if(this.LC==null||m.length==1)return;m.splice(m.indexOf(this.LC),1);
this.LC=null;this.Pf();this.gn()};fU.prototype.a5z=function(s){var m=this.ft.Clrs.v;if(this.DM==null||m.length==1)return;
m.splice(m.indexOf(this.DM),1);this.DM=null;this.Pf();this.gn()};fU.prototype.Pf=function(){var s=this.w,m=this.og,l=n.W();
s.width=Math.floor(410*l);s.height=Math.floor(70*l);n.cO(s,s.width,s.height);s.style.marginTop="8px";
this.ih=new bU(0,0,Math.floor(380*l),Math.floor(32*l));this.ih.x=Math.floor((s.width-this.ih.e)/2);this.ih.y=Math.floor((s.height-this.ih.l)/2);
var x=this.ih,a=x.e,P=x.l,o=x.x,G=x.y,_=new bU(0,0,a,P),j=m.getImageData(0,0,a,P),U=new Uint8Array(j.data.buffer);
L.Oy(U,a,P,8);var S=L.B(a*P*4);L.K.Wv(this.ft,S,_,[1/a,0,0,1/P],a/2,P/2,!1,0,this.$e.zU,this.$e.Pi);
L.a.$P("norm",S,x,U,x,x,1);m.clearRect(0,0,s.width,s.height);m.putImageData(j,o,G);var X=this.ft;if(X.Clrs){var c=X.Trns.v,y=X.Clrs.v,O=L.K.G2(y,this.$e.zU,this.$e.Pi),p=Math.round(6*n.W()),D=Math.round(14*n.W()),f=this.LC?this.LC.v:null,T=this.DM?this.DM.v:null;
for(var C=0;C<c.length;C++){var I=c[C].v,H=Math.round(255-255*I.Opct.v.val/100);if((I==f||c[C-1]&&c[C-1].v==f||C==this.mG)&&C!=0){m.fillStyle="#000000";
m.fillRect(o-3+a*(c[C-1].v.Lctn.v+(I.Lctn.v-c[C-1].v.Lctn.v)*I.Mdpn.v/100)/4096,G-6-2,6,6)}if(I==f){m.fillStyle="#ffffff";
m.fillRect(o-p+a*(I.Lctn.v/4096)-2,G-2-D-2,2*p+4,D+4)}m.fillStyle="rgb("+H+","+H+","+H+")";m.fillRect(o-p+a*(I.Lctn.v/4096),G-2-D,2*p,D)}for(var C=0;
C<y.length;C++){var b=y[C].v,R=O[C];if((b==T||y[C-1]&&y[C-1].v==T||C==this.zg)&&C!=0){m.fillStyle="#000000";
m.fillRect(o-3+a*(y[C-1].v.Lctn.v+(b.Lctn.v-y[C-1].v.Lctn.v)*b.Mdpn.v/100)/4096,G+P+2,6,6)}if(b==T){m.fillStyle="#ffffff";
m.fillRect(o-p+a*(b.Lctn.v/4096)-2,G+P+2-2,2*p+4,D+4)}m.fillStyle="rgb("+Math.round(R.o)+", "+Math.round(R.z)+","+Math.round(R.S)+")";
m.fillRect(o-p+a*(b.Lctn.v/4096),G+P+2,2*p,D)}}if(this.J4){this.tC(this.ft);this.t_=!0}};fU.prototype.gn=function(){var s=this.ft,m=s.Clrs?0:1;
this.ny.f(m);if(n.wH(this.DV))this.body.removeChild(this.DV);if(n.wH(this.I7))this.body.removeChild(this.I7);
(m==0?this.aq1:this.a4K).appendChild(this.w);if(m==0){this.body.appendChild(this.DV);this.nV.f(Math.round(100*s.Intr.v/4096));
var l=s.Trns.v,x=s.Clrs.v,a=this.LC!=null,P=this.mG!=-1;this.Dv.k5(a);this.Ih.k5(a||P);this.Mf.k5(a);
if(a){this.TD.setAttribute("style","");var o=this.LC.v;this.Ih.f(Math.round(100*o.Lctn.v/4096));this.Dv.f(o.Opct.v.val)}if(P)this.Ih.f(l[this.mG].v.Mdpn.v);
var a=this.DM!=null,P=this.zg!=-1;this.yN.k5(a);this.Tr.k5(a);this.ri.k5(a||P);this.Wg.k5(a);if(a){this.oq.setAttribute("style","");
var G=this.DM.v;this.ri.f(Math.round(100*G.Lctn.v/4096));var _=G.Type.v.Clry;this.yN.f(["FrgC","BckC","UsrS"].indexOf(_));
if(_=="FrgC")this.Tr.XC(this.$e.zU);if(_=="BckC")this.Tr.XC(this.$e.Pi);if(_=="UsrS")this.Tr.f(G.Clr.v)}if(P)this.ri.f(x[this.zg].v.Mdpn.v)}else{this.body.appendChild(this.I7);
this.KK.f(Math.round(100*s.Smth.v/4096))}this.body.appendChild(this.aH.m)};fU.prototype.l5=function(s){var m=this.ft,l=m.Clrs?0:1;
if(s.target==this.ny){var x=l==0?JSON.parse(i4.Cw.a3).v:ib.Xi("grdm").Grad.v;this.ft=x;this.gn();this.Pf();
return}if(l==0){m.Intr.v=Math.round(4096*this.nV._()/100);var a=m.Trns.v,P=m.Clrs.v;if(this.LC!=null){var o=this.LC.v;
o.Lctn.v=Math.round(4096*(this.Ih._()/100));o.Opct.v.val=this.Dv._()}if(this.DM!=null){var G=this.DM.v;
G.Lctn.v=Math.round(4096*(this.ri._()/100));if(s.target==this.Tr)this.yN.f(2);var _=this.yN._();G.Type.v.Clry=["FrgC","BckC","UsrS"][_];
if(_==2)G.Clr={t:"Objc",v:this.Tr._()};else if(G.Clr)delete G.Clr}if(this.mG!=-1)a[this.mG].v.Mdpn.v=this.Ih._();
if(this.zg!=-1)P[this.zg].v.Mdpn.v=this.ri._()}else{m.Smth.v=Math.round(4096*this.KK._()/100);if(s.target==this.i1)m.RndS.v=Math.floor(Math.random()*4294967295)}this.Pf()};
fU.prototype.fj=function(s){var m=n.lX(s,this.w),l=this.ih,x=(m.x*n.W()-l.x)/l.e,a=(m.y*n.W()-l.y)/l.l,P=this.ft.Trns.v,o=this.ft.Clrs.v,G=null,_=null,j=-1,U=-1;
if(a<1)for(var C=0;C<P.length;C++){var S=P[C].v;if(Math.abs(S.Lctn.v/4096-x)<.02)G=P[C];if(C>0)if(Math.abs((P[C-1].v.Lctn.v+(S.Lctn.v-P[C-1].v.Lctn.v)*S.Mdpn.v/100)/4096-x)<.01)j=C}if(a>0)for(var C=0;
C<o.length;C++){var X=o[C].v;if(Math.abs(X.Lctn.v/4096-x)<.02)_=o[C];if(C>0)if(Math.abs((o[C-1].v.Lctn.v+(X.Lctn.v-o[C-1].v.Lctn.v)*X.Mdpn.v/100)/4096-x)<.01)U=C}if(_==null&&G==null&&j==-1&&U==-1){if(a<0){var S={t:"Objc",v:{classID:"TrnS",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}};
S.v.Lctn.v=Math.round(x*4096);P.push(S);P.sort(this.$t);G=S}if(a>1){var o=this.ft.Clrs.v,c=L.K.G2(o,this.$e.zU,this.$e.Pi),y=L.K.D$(this.ft,c,x),X={t:"Objc",v:{classID:"Clrt",Clr:{t:"Objc",v:L.K.gc({o:y&255,z:y>>8&255,S:y>>16&255})},Type:{t:"enum",v:{Clry:"UsrS"}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}};
X.v.Lctn.v=Math.round(x*4096);o.push(X);o.sort(this.$t);_=X}}if(_!=null)U=-1;if(G!=null)j=-1;if(_!=null||G!=null||j>-1||U>-1){this.LC=G;
this.DM=_;this.mG=j;this.zg=U;this.gn();this.Pf();n.PB(window,this.fR);n.$u(window,this.TW)}};fU.prototype.rP=function(s){var m=n.lX(s,this.w),l=this.ih,x=(m.x*n.W()-l.x)/l.e,a=(m.y*n.W()-l.y)/l.l;
x=Math.max(0,Math.min(1,x));var P=this.ft.Trns.v,o=this.ft.Clrs.v;if(this.LC!=null){var G=this.LC.v;
G.Lctn.v=Math.round(4096*x);var _=P.indexOf(this.LC);if(_!=-1&&a<-1&&P.length>1)P.splice(_,1);if(_==-1&&a>-1)P.push(this.LC);
P.sort(this.$t)}if(this.DM!=null){var j=this.DM.v;j.Lctn.v=Math.round(4096*x);var U=o.indexOf(this.DM);
if(U!=-1&&a>2&&o.length>1)o.splice(U,1);if(U==-1&&a<2)o.push(this.DM);o.sort(this.$t)}if(this.mG>-1){var G=P[this.mG].v;
G.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*(x*4096-P[this.mG-1].v.Lctn.v)/(G.Lctn.v-P[this.mG-1].v.Lctn.v))))}if(this.zg>-1){var j=o[this.zg].v;
j.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*(x*4096-o[this.zg-1].v.Lctn.v)/(j.Lctn.v-o[this.zg-1].v.Lctn.v))))}if(this.LC!=null||this.DM!=null||this.mG>-1||this.zg>-1){this.gn();
this.Pf()}};fU.prototype.Hk=function(s){n.Ab(window,this.fR);n.D4(window,this.TW);if(Date.now()-this.Ea<300){if(this.zg!=-1||this.mG!=-1){var m=(this.zg!=-1?this.ft.Clrs.v[this.zg]:this.ft.Trns.v[this.mG]).v;
m.Mdpn.v=50;this.gn();this.Pf()}else if(this.DM!=null)this.Tr.ajD()}this.Ea=Date.now()};fU.prototype.$t=function(s,m){return s.v.Lctn.v-m.v.Lctn.v};
function cU(){c4.call(this,[11,10],"isize");this.WL=n.L("div","form");this.WL.setAttribute("style","width:20em");
this.body.appendChild(this.WL);this._5=new bE(!0,!0,null,null,!0);this.WL.appendChild(this._5.m);this.$g=new bj("Resample");
this.$g.f(!0);this.WL.appendChild(this.$g.m);this.$g.h(v.E.p,this.a5j,this);this.X0=new ge([12,14,1],[[12,14,2],[12,14,3],"Bicubic Sharper"]);
this.X0.f(1);this.WL.appendChild(this.X0.m);this.aH=n.VH(this,this.body)}cU.prototype=new c4;cU.prototype.UW=function(s,m){return s!=null};
cU.prototype.hl=function(){return!0};cU.prototype.a5j=function(s){var m=this.$g._(),l=this._5,x=this.X0;
if(m)x.o5();else x.Hv();if(m)l.a8w();else l.a5h()};cU.prototype.U=function(){c4.prototype.U.call(this);
this.aH.U();this.X0.U();this._5.U()};cU.prototype.Rj=function(s){this.close();var m=this._5._(),l=m.x,x=m.y,a=this.X0._();
if(!this.$g._())a=null;var P=new h9(v.E.b4,!0);P.data=r.Bs.Tk(l,x,this._5.zP(),a);this.Y(P)};cU.prototype.av=function(s,m){this._5.f(new fz(s.e,s.l),s.sz);
this._5.tJ()};function fm(){c4.call(this,"Import RAW","importraw");var s=n.L("div","flexrow"),m=n.L("div");
m.setAttribute("style","margin-bottom: 1em");this.body.appendChild(s);this.body.appendChild(m);var l=n.L("div","form");
l.setAttribute("style","width:18em");s.appendChild(l);var x=n.L("div","form");x.setAttribute("style","width:15em");
s.appendChild(x);this.fV=null;this.au4=null;this.UG=null;this._f=null;this.ae_=[];var a=[];for(var C=0;
C<fm.hj.length;C++)a.push(fm.hj[C]+" Bits");var P=this.q4=[new bE(!0,null,null,!0),new dy([12,72],1,8),new bj("Last one is Transparency"),new co([12,34],a),new co("Byte Order",["12-34","34-12"]),new ge("Guesses",[])];
for(var C=0;C<P.length;C++){var o=P[C];o.parent=this;o.h(v.E.p,C==5?this.ade:this.C1,this);var G=C==0?l:C==5?m:x;
G.appendChild(o.m)}this.w=n.L("canvas");this.og=this.w.getContext("2d");this.body.appendChild(this.w);
this.aH=n.VH(this,this.body)}fm.prototype=new c4;fm.prototype.U=function(){c4.prototype.U.call(this);
var s=this.q4;this.aH.U();for(var C=0;C<s.length;C++)s[C].U()};fm.prototype.Rj=function(s){this.close();
var m=this.q4[0]._(),l=iO.mt(this.au4,[{data:this.UG,Sb:new bU(0,0,m.x,m.y)}]);if(this._f)l.$_=this._f;
var x=new h9(v.E.g,!0);x.data={d:!0?v.J.Ig:v.J.At,u0:l};this.Y(x)};fm.hj=[8,16];fm.prototype.av=function(s,m){this.fV=new Uint8Array(m.Qu);
this.au4=m.zA;var l=this.fV.length,x=[1,3,4],a=0,P=0,o=1,G=1,_=this.ae_=[];for(var j=0;j<3;j++){for(var U=0;
U<2;U++){var S=fm.hj[U],X=x[j],c=X*S,y=Math.round(l*8/c);if(y!=l*8/c)continue;for(var O=0;O<=4e3;O++)for(var p=0;
p<=4e3;p++)if(O*p==y){var D=0;if(O==p)D+=64;if(Math.round(O/100)==O/100&&Math.round(p/100)==p/100)D+=32;
if(Math.round(O/10)==O/10&&Math.round(p/10)==p/10)D+=16;if(Math.round(O/2)==O/2&&Math.round(p/2)==p/2)D+=8;
_.push([O,p,X,S,D])}}}var f=function(b,R){if(R[4]!=b[4])return R[4]-b[4];var W=Math.max(b[0],b[1])/Math.min(b[0],b[1]),J=Math.max(R[0],R[1])/Math.min(R[0],R[1]);
if(W!=J)return W-J;return R[0]-b[0]};_.sort(f);var T=this.q4,I=[];for(var C=0;C<_.length;C++){var H=_[C];
I.push(H[0]+" x "+H[1]+", "+H[2]+"ch, "+H[3]+"-bit")}T[5].AZ(I);T[5].f(0);this.ade(null)};fm.prototype.ade=function(s){var m=this.q4,l=this.ae_[this.q4[5]._()];
m[0].f(new fz(l[0],l[1]),72);m[1].f(l[2]);m[3].f(fm.hj.indexOf(l[3]));this.C1()};fm.prototype.C1=function(s){var m=this.q4,l=m[0]._(),x=l.x,a=l.y,P=fm.hj[m[3]._()],o=this.fV;
if(P==16&&m[4]._()==1){o=o.slice(0);for(var C=0;C<o.length;C+=2){var G=o[C];o[C]=o[C+1];o[C+1]=G}}var _=this.UG=this.Gs(o,x,a,m[1]._(),P,m[2]._()),j=this.w,U=this.og,S=[_,new bU(0,0,x,a)];
L.$c(S);for(var C=0;C<S.length;C+=2)if(S[C+1].l<300){_=S[C];x=S[C+1].e;a=S[C+1].l;break}j.width=x;j.height=a;
n.cO(j,x,a);var X=new ImageData(new Uint8ClampedArray(_.buffer),x,a);U.putImageData(X,0,0)};fm.prototype.Gs=function(s,m,l,x,a,P){this._f=null;
var o=[],G=m*l;for(var _=0;_<x;_++){var j=L.B(G);o.push(j);if(a==8)for(var C=0;C<G;C++)j[C]=s[C*x+_];
else if(a==16)for(var C=0;C<G;C++)j[C]=Math.round((s[(C*x+_)*2]<<8|s[(C*x+_)*2+1])*(255/65535))}var U=L.B(G*4);
new Uint32Array(U.buffer).fill(4278190080);if(P){L._Y(o.pop(),U,3);x--}if(x==0){}else if(x==1)L.s2(o[0],U);
else{L._Y(o[0],U,0);L._Y(o[1],U,1);if(x>2){L._Y(o[2],U,2);if(x>3){this._f=[];for(var C=3;C<x;C++){var S=new t.K0;
S.name="Alpha "+(C-2);S.rect=new bU(0,0,m,l);S.channel=o[C];this._f.push(S)}}}}return U};function dJ(s,m,l){fR.call(this);
this.m=n.L("div","");this.Bo=s;this._p=null;this.BO=m==null?!1:m;this.$H=null;this.yJ=l;this.Sg=[];this.$y=[];
this.HN=[];this.cb=[];this.Kk=0;this._p=this.a9F(dJ.cb[s]);this.D2();this.fk=null;this.atS;this.a24}dJ.prototype=new fR;
dJ.prototype.s1=function(s,m,l,x,a){this.fk=a;this.atS=JSON.parse(JSON.stringify(this.$H));if(this._p.lagl)this.a24=this._p.lagl._()[0]};
dJ.prototype.zk=function(s,m,l,x,a){var P=this.fk,o=this.Bo,G=this.atS;if(P==null)return;var _=(a.x-P.x)/s.t.O,j=(a.y-P.y)/s.t.O;
if(o=="GrFl"){var U=JSON.parse(JSON.stringify(G.Ofst.v));U.Hrzn.v.val+=_*.5;U.Vrtc.v.val+=j*.5;this._p.Ofst.f(U,!0)}if(o=="patternFill"){var U=JSON.parse(JSON.stringify(G.phase.v));
U.Hrzn.v+=_;U.Vrtc.v+=j;this._p.phase.f(U,!0)}if(o=="DrSh"||o=="IrSh"||o=="ChFX"){var S=G.Dstn.v.val,X=this.a24*Math.PI/180,c=-Math.cos(X)*S+_,y=Math.sin(X)*S+j;
this._p.Dstn.f(Math.sqrt(c*c+y*y),!0);this._p.lagl.f([Math.atan2(y,-c)*180/Math.PI],!0)}};dJ.prototype.I6=function(s,m,l,x,a){this.fk=null};
dJ.prototype.a87=function(){for(var C=0;C<this.cb.length;C++){n.po(this.cb[C],"selected");if(this.HN[C]instanceof bj)this.HN[C].f(!1)}};
dJ.prototype.a8o=function(s){var m=this.anI.bind(this);for(var C=0;C<this.HN.length;C++){var l=n.L("div","listitem");
this.cb.push(l);if(C>0)l.textContent="\u2003";l.appendChild(this.HN[C].m);if(i4.X2.indexOf(this.Bo)!=-1){var x=new hj("+");
x.Kd();x.m.style.float="right";l.appendChild(x.m);var a=new hj("\u2B0D");a.Kd();a.m.style.float="right";
a.m.style["margin-right"]="2px";l.appendChild(a.m)}l.addEventListener("click",m,!1);s.appendChild(l)}};
dJ.LF=function(s,m){var l=m.getBoundingClientRect();return(s.clientY-l.top)/l.height};dJ.prototype.anI=function(s){var m=s.target.tagName.toLowerCase();
if(m=="input"){return}if(m=="button"){var l=new h9(v.E.u,!0),x=s.target.textContent=="+",a=x?0:dJ.LF(s,s.target)<.5?-1:1;
if(x)l.data={d:"st_dupsingle",i:this.parent.data.i,AD:this.yJ};else l.data={d:"st_movsingle",i:this.parent.data.i,AD:this.yJ,au5:a};
l.c=r.Dk;l.zZ=!0;this.Y(l);l=new h9("redrawall",!0);l.data={au5:a};this.Y(l);return}n.uj(s);this.gK();
this.Kk=this.cb.indexOf(s.currentTarget);this.Y(new h9("showme"))};dJ.prototype.gK=function(){if(this._p.enab&&this._p.enab._()==!1)this.ru({L1:"enab",Z:!0})};
dJ.prototype.aeg=function(){var s=this.cb[this.Kk];if(s)n.RY(s,"selected");return this.$y[this.Kk]};
dJ.prototype.a9F=function(s){var m={};for(var C=0;C<s.length;C++){var l=s[C],x=null;if(l=="----")x={m:n.L("hr")};
if(l=="\n")x={m:n.L("br")};if(l=="blOptions")x=new jG([14,10]);if(l=="brst")x=new ja([12,72],["R","G","B"]);
if(l=="knko")x=new ge("Knockout",[[13,1,0],"Shallow","Deep"]);if(l=="enab")x=new bj(i4.names[i4.order.indexOf(this.Bo)]);
if(l=="lrMd"||l=="Md")x=new ge([12,19,0],aA.dP,!1,aA.Nx);if(l=="Opct")x=new cT([12,0],0,100,"%");if(l=="iOpa")x=new cT([12,26],0,100,"%");
if(l=="blIf")x=new jk;if(l=="ShdN")x=new cT([12,68],0,100,"%");if(l=="lagl"||l=="Angl")x=new jx([12,15],this.Bo=="ebbl");
if(l=="uglg")x=new bj([12,27]);if(l=="Dstn")x=new cT([12,28],0,200,"px");if(l=="Ckmt")x=new cT([12,29],0,100,"%");
if(l=="blur")x=new cT([12,14,0],0,200,"px");if(l=="TrnS"||l=="MpgS")x=new j0([12,21]);if(l=="Nose")x=new cT([12,30],0,100,"%");
if(l=="layerConceals")x=new bj([12,31]);if(l=="AntA"||l=="antialiasGloss")x=new bj([12,25,1]);if(l=="GlwT")x=new ge([12,32],i4.Ou.names);
if(l=="glwS")x=new ge([12,70],i4.Ou.anU);if(l=="Inpr")x=new cT([12,12],1,100,"%");if(l=="bvlS")x=new ge([12,22],i4.bb.style);
if(l=="bvlT")x=new ge([12,32],i4.bb.ahn);if(l=="bvlD")x=new ge(null,i4.bb.dir);if(l=="srgR")x=new cT([12,34],0,1e3,"%");
if(l=="Sftn")x=new cT([12,35],0,20,"px");if(l=="Lald")x=m.lagl;if(l=="hglM"||l=="sdwM")x=new ge([12,36],aA.dP,!1,aA.Nx);
if(l=="hglC"||l=="sdwC")x=new fM;if(l=="hglO"||l=="sdwO")x=new cT([12,0],0,100,"%");if(l=="Invr"||l=="InvT")x=new bj([4,11]);
if(l=="Sz")x=new cT([12,14,0],1,200,"px");if(l=="Styl")x=new ge([12,40],i4.stroke.names);if(l=="PntT")x=new ge([12,66],i4.stroke.a4a);
if(l=="Clr")x=new fM(!0);if(l=="Grad"){x=new du(!0,[12,37],!0);x.f(JSON.parse(i4.Cw.Hn).v)}if(l=="Rvrs")x=new bj([12,23,0]);
if(l=="Dthr")x=new bj([12,23,3]);if(l=="Type")x=new ge([12,22],i4.K.names.slice(0,this.Bo=="FrFX"?6:5));
if(l=="Ptrn")x=new ez([12,62]);if(l=="Scl")x=new cT([12,38],10,500,"%",0,!0);if(l=="Algn")x=new bj([12,39]);
if(l=="Ofst")x=new i7(!0);if(l=="phase")x=new i7(!1);if(l=="useShape")x=new bj([12,21]);if(l=="useTexture")x=new bj([12,67]);
if(l=="textureDepth")x=new cT([12,34],-300,300,"%");var a=l=="----"||l=="\n"?l+C:l;if(x!=null)m[a]=x}return m};
dJ.prototype.aaX=function(s){var m=this.$y[this.Kk];for(var C=0;C<s.length;C++){var l=this._p[s[C]];
if(l&&m.contains(l.m))m.removeChild(l.m)}};dJ.prototype.a3P=function(s){var m=this.$y[this.Kk];for(var C=0;
C<s.length;C++){var l=this._p[s[C]];if(l&&!m.contains(l.m))m.appendChild(l.m)}};dJ.prototype.L8=function(s,m){if(this._p==null)return;
var l=m==gN.ki;if(this._p.Grad){this._p.Grad.Yp(s.zU,s.Pi);if(l||m==gN.WV||m==gN.ir)this._p.Grad.El(s.eb)}if(this._p.Ptrn){if(l||m==gN._L)this._p.Ptrn.El(s.yZ)}if(this._p.TrnS){if(l||m==gN.eV)this._p.TrnS.El(s.Ef)}if(this._p.MpgS){if(l||m==gN.eV)this._p.MpgS.El(s.Ef)}};
dJ.prototype.U=function(){for(var C=0;C<this.Sg.length;C++)this.Sg[C].U();for(var s in this._p)if(this._p[s]instanceof fR)this._p[s].U()};
dJ.prototype.D2=function(){for(var s in this._p){var m=this._p[s];m.parent=this;if(m instanceof fR)m.h(v.E.p,this.af$,this);
if(this.$y.length==0||s=="useShape"||s=="useTexture"){var l=new jG(m.arf()),x=n.L("div","bordered padded");
if(this.BO==!1){x.appendChild(l.m);x.appendChild(n.L("hr",""))}this.Sg.push(l);this.$y.push(x);this.HN.push(m)}else this.$y[this.$y.length-1].appendChild(m.m)}};
dJ.prototype.update=function(s,m){if(this._p==null)return;this.$H=JSON.parse(JSON.stringify(m));for(var l in m){if("Opct iOpa hglO sdwO Dstn Ckmt blur Nose Scl Sz Inpr srgR Sftn textureDepth ShdN".split(" ").indexOf(l)!=-1)this._p[l].f(m[l].v.val);
if("enab brst knko Clr hglC sdwC uglg Grad TrnS MpgS Rvrs Dthr Algn Invr InvT Ptrn layerConceals useShape useTexture Ofst phase blIf".split(" ").indexOf(l)!=-1){this._p[l].f(m[l].v,s)}if(["Md","hglM","sdwM"].indexOf(l)!=-1)this._p[l].f(aA.Bo.indexOf(m[l].v.BlnM));
if(l=="lrMd"){var x=(m.gu?[[15,10,27]]:[]).concat(aA.dP),a=(m.gu?[1]:[]).concat(aA.Nx);this._p[l].AZ(x,a);
this._p[l].f(m[l].v)}if(l=="Angl")this._p[l].f([m[l].v.val]);if(l=="lagl"){var P=m.uglg&&m.uglg.v?s.Q1():m.lagl.v.val;
this._p[l].f([P])}if(l=="Lald"){var P=m.uglg&&m.uglg.v?s.Zn():m.Lald.v.val;this._p[l].f([null,P])}if(l=="Type")this._p[l].f(i4.K.types.indexOf(m.Type.v.GrdT));
if(l=="Styl")this._p[l].f(i4.stroke.types.indexOf(m.Styl.v.FStl));if(l=="PntT"){var o=i4.stroke.kh.indexOf(m.PntT.v.FrFl);
this._p[l].f(o);if(!this.BO){this.aaX(i4.Rc.concat(i4.Ql.concat(i4._6)));this.a3P([i4.Rc,i4.Ql,i4._6][o])}}if(l=="GlwT")this._p[l].f(i4.Ou.types.indexOf(m.GlwT.v.BETE));
if(l=="glwS")this._p[l].f(i4.Ou.yL.indexOf(m.glwS.v.IGSr));if(l=="bvlS")this._p[l].f(i4.bb.types.indexOf(m.bvlS.v.BESl));
if(l=="bvlT")this._p[l].f(i4.bb.xc.indexOf(m.bvlT.v.bvlT));if(l=="bvlD")this._p[l].f(["In","Out"].indexOf(m.bvlD.v.BESs))}};
dJ.prototype.af$=function(s){for(var m in this._p){if(this._p[m]!=s.target)continue;var l=null,x=!1;
if("Opct iOpa hglO Nose Scl sdwO Inpr srgR textureDepth ShdN".split(" ").indexOf(m)!=-1)l={type:"#Prc",val:s.target._()};
if(["Dstn","Ckmt","blur","Sz","Sftn"].indexOf(m)!=-1)l={type:"#Pxl",val:s.target._()};if(["Angl","lagl"].indexOf(m)!=-1)l={type:"#Ang",val:s.target._()[0]};
if("enab brst knko Clr hglC sdwC Grad TrnS MpgS Rvrs Dthr Algn Invr InvT Ptrn layerConceals lrMd useShape useTexture AntA antialiasGloss Ofst phase blIf".split(" ").indexOf(m)!=-1)l=s.target._();
if(["Md","hglM","sdwM"].indexOf(m)!=-1)l={BlnM:aA.Bo[s.target._()]};if(m=="uglg"){l=s.target._();x=!0}if(m=="PntT"){l={FrFl:i4.stroke.kh[s.target._()]};
x=!0}if(m=="Lald")l={type:"#Ang",val:s.target._()[1]};if(m=="Type")l={GrdT:i4.K.types[s.target._()]};
if(m=="Styl")l={FStl:i4.stroke.types[s.target._()]};if(m=="GlwT")l={BETE:i4.Ou.types[s.target._()]};
if(m=="glwS")l={IGSr:i4.Ou.yL[s.target._()]};if(m=="bvlS")l={BESl:i4.bb.types[s.target._()]};if(m=="bvlT")l={bvlT:i4.bb.xc[s.target._()]};
if(m=="bvlD")l={BESs:["In","Out"][s.target._()]};this.ru({L1:m,Z:l});if(x){if(this.BO)this.update(null,this.$H);
else{var a=this.parent,P=a.u0,o=this.yJ,G=P.G[a.data.i].add.lmfx[i4.rm[o[0]]].v[o[1]].v;this.update(P,G)}}}};
dJ.prototype.ru=function(s){if(this.$H&&this.$H[s.L1])this.$H[s.L1].v=s.Z;if(this.BO){this.Y(new h9(v.E.p))}else{s.d="changeprop";
s.i=this.parent.data.i;s.jV=this.yJ;var m=new h9(v.E.u,!0);m.data=s;m.c=r.Dk;m.zZ=!0;this.Y(m);this.Y(new h9("afterchange",!0))}};
dJ.prototype._=function(){return JSON.parse(JSON.stringify(this.$H))};dJ.cb={bops:"blOptions lrMd Opct ---- iOpa brst ---- blIf".split(" "),DrSh:"enab Md Clr Opct lagl uglg Dstn Ckmt blur TrnS Nose layerConceals".split(" "),IrSh:"enab Md Clr Opct lagl uglg Dstn Ckmt blur TrnS Nose".split(" "),OrGl:["enab","Md","Opct","Nose","\n","Clr","Grad","----","GlwT","Ckmt","blur","TrnS","Inpr","ShdN"],IrGl:["enab","Md","Opct","Nose","\n","Clr","Grad","----","GlwT","glwS","Ckmt","blur","TrnS","Inpr","ShdN"],ebbl:["enab","bvlS","bvlT","bvlD","srgR","blur","Sftn","----","lagl","Lald","uglg","TrnS","\n","hglM","hglC","hglO","sdwM","sdwC","sdwO","useShape","MpgS","Inpr","useTexture","Ptrn","Scl","textureDepth","InvT","Algn","phase"],SoFi:["enab","Md","Opct"].concat(i4.Rc),GrFl:["enab","Md","Opct"].concat(i4.Ql),patternFill:["enab","Md","Opct"].concat(i4._6),ChFX:"enab Md Clr Opct lagl Dstn blur MpgS Invr".split(" "),FrFX:["enab","Sz","Styl","\n","Md","Opct","PntT","\n"].concat(i4.Rc.concat(i4.Ql.concat(i4._6)))};
function jz(){c4.call(this,[11,6],"layerstyle");this.ack=-1;this.data={};this.u0=null;this.bR=null;this.Qh=[];
this.zv=[];n.RY(this.body,"flexrow");this.wg=n.L("div","bordered");this.wg.setAttribute("style","min-width:13em;");
this.body.appendChild(this.wg);this.Ue=n.L("div","");this.Ue.setAttribute("style","width:25em; padding-left: 1em;");
this.body.appendChild(this.Ue);this.gL=n.L("div","form");this.gL.setAttribute("style","padding-left: 1em; width:7em;");
this.body.appendChild(this.gL);this.aH=n.VH(this,this.gL);this.Gd=new hj([12,87],!0,null,!0);this.Gd.h("click",this.a4S,this);
this.gL.appendChild(this.Gd.m);this.sF=new a0;this.sF.parent=this;this.sF.h(v.E.p,this.al2,this);this.gL.appendChild(this.sF.m);
this.h("closebtn",this.tx,this);this.h("redrawall",this.aba,this)}jz.prototype=new c4;jz.prototype.hl=function(){return!0};
jz.prototype.aO=function(){return!0};jz.prototype.s1=function(s,m,l,x,a){var P=this.ro();if(P)P.s1(s,m,l,x,a)};
jz.prototype.zk=function(s,m,l,x,a){var P=this.ro();if(P)P.zk(s,m,l,x,a)};jz.prototype.I6=function(s,m,l,x,a){var P=this.ro();
if(P)P.I6(s,m,l,x,a)};jz.prototype.ro=function(s){if(s==null)s=this.data.index;return s==null?null:s==0?this.Qh[0]:this.zv[s[0]][s[1]]};
jz.prototype.al2=function(s){var m=this.sF._();this.ru({d:"setstl",Z:m.tI});this.aba(null)};jz.prototype.a4S=function(s){var m=this.u0,l=this.data.i;
if(l==null)l=m.N[0];var x=this.u0.G[l],a=jo.aml(x),P=new h9(v.E.g,!0);P.data={d:v.J.xw,s5:"add",AV:gN.uZ,bp:[JSON.parse(JSON.stringify(a))]};
this.Y(P)};jz.prototype.asC=function(s){this.data.index=s.currentTarget.yJ;this.IZ(s.currentTarget.yJ)};
jz.prototype.aba=function(s){this.av(this.u0,this.data)};jz.prototype.IZ=function(s,m){n.em(this.Ue);
for(var C=0;C<this.Qh.length;C++)this.Qh[C].a87();var l=this.ro(s);this.Ue.appendChild(l.aeg());if(m)l.gK();
var x=this.u0;if(x){var a=x.G[this.data.i];this.Qh[0].update(x,r.bM.Xf(x,a));var P=a.add.lmfx;if(P==null)return;
for(var C=0;C<i4.order.length;C++){var o=P[i4.rm[C]].v;for(var G=0;G<o.length;G++)this.zv[C][G].update(x,o[G].v)}}if(m)l.gK()};
jz.prototype.U=function(){c4.prototype.U.call(this);this.Gd.U();this.sF.U();this.aH.U();for(var C=0;
C<this.Qh.length;C++)this.Qh[C].U()};jz.prototype.av=function(s,m){var l=m.i==null;this.data.i=m.i;this.data.index=m.index;
m=this.data;this.u0=s;if(l)m.i=s.N.length==0?s.G.length-1:s.N[0];n.em(this.wg);var x=s.G[m.i].add.lmfx;
this.pm();this.Qh=[new dJ("bops",!1,0)];this.zv=[];for(var C=0;C<i4.order.length;C++){this.zv.push([]);
var a=x==null?[]:x[i4.rm[C]].v;for(var P=0;P<a.length;P++){var o=new dJ(i4.order[C],!1,[C,P]);this.Qh.push(o);
this.zv[C].push(o)}if(a.length==0){var o=new dJ(i4.order[C],!1,[C,0]);this.Qh.push(o);this.zv[C].push(o)}}this.U();
this.at_(this.bR,gN.ki);for(var C=0;C<this.Qh.length;C++){this.Qh[C].parent=this;this.Qh[C].a8o(this.wg);
this.Qh[C].h("showme",this.asC,this)}if(m.index==null||m.index==0||!l&&x[i4.rm[m.index[0]]].v.length==0){this.IZ(0)}else this.IZ(m.index,l);
this.h("afterchange",this.pm,this)};jz.prototype.pm=function(s){var m=this.u0,l=this.data.i;if(l==null)l=m.N[0];
var x=this.u0.G[l],a=jo.aml(x);this.sF.f(a,m.add.Patt?m.add.Patt:[],m.Q1(),m.Zn())};jz.prototype.L8=function(s,m){this.bR=s;
this.at_(s,m);if(m==gN.uZ||m==gN.ki){this.sF.El([s.vN,s.yZ])}if(m==gN.t3){}};jz.prototype.at_=function(s,m){for(var C=0;
C<this.Qh.length;C++)this.Qh[C].L8(s,m)};jz.prototype.tx=function(s){this.ru({d:"cancel"})};jz.prototype.Rj=function(s){this.ru({d:"confirm"});
this.close()};jz.prototype.ru=function(s){s.i=this.data.i;var m=new h9(v.E.u,!0);m.data=s;m.c=r.Dk;m.zZ=!0;
this.Y(m);this.pm()};jz.aY=function(s){var m=[{name:[14,10],Bx:!0}];for(var C=0;C<i4.names.length;C++)m.push({name:i4.names[C]});
if(s){m[m.length-1].Bx=!0;m.push({name:"Scale Effects",P:function(l){return{P:l!=null&&l.N.length!=0&&l.G[l.N[0]].A8()}}});
m.push({name:["VAR0 VAR1",[12,49],[9,1]],P:function(l){return{P:l!=null&&l.N.length!=0&&l.G[l.N[0]].add.lmfx!=null}}})}return m};
jz.y5=function(s){var m=[{b:v.E.g,M:{d:v.J.Qm,It:"layerstyle"}}];for(var C=0;C<i4.names.length;C++)m.push({b:v.E.g,M:{d:v.J.Qm,It:"layerstyle",index:[C,0]}});
if(s){m.push({b:v.E.g,M:{d:v.J.Qm,It:"scaleeffects",nA:100,pb:{b:v.E.u,c:r.Dk,M:{d:"scaleeffects"}}}});
var l={classID:"Mk",null:e6.Yr("Lyr"),Usng:{t:"obj ",v:[{t:"prop",v:{classID:"Prpr",keyID:"Lefx"}},{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Trgt"}}]}};
m.push({b:v.E.b4,M:{YF:"make",WA:l}})}return m};jz.afS=function(s){var m=[];if(s)m.push({name:[6,48,0,0],$q:!0},{name:[6,48,0,1],$q:!0},{name:[6,48,0,2],$q:!0,Bx:!0});
for(var l in eb.names)m.push({name:eb.names[l],Bx:eb.eo.indexOf(l)!=-1,$q:B[l]!=null});return m};jz.H$=function(s){var m=[];
if(s){m.push({b:v.E.u,c:r.RJ,M:{d:"newfill",_z:0}});for(var C=1;C<3;C++)m.push({b:v.E.b4,M:r.c9.VG(C)})}for(var l in eb.names){var x=ib.Xi(l);
if(x==null)x={};for(var a in eb.at)if(eb.at[a]==l)x.classID=a;var P={YF:"make",WA:{classID:"Mk",null:e6.Yr("AdjL"),Usng:{t:"Objc",v:{classID:"AdjL",Type:{t:"Objc",v:x}}}}};
m.push({b:v.E.b4,M:P})}return m};function gB(){c4.call(this,"Merge Channels","mergechannels");this.__=null;
var s=n.L("div","form");this.body.appendChild(s);this.q4=[];for(var C=0;C<3;C++){var m=new ge(eb.cP[C],[]);
this.q4.push(m);s.appendChild(m.m);n.Z0(s)}this.aH=n.VH(this,s)}gB.prototype=new c4;gB.prototype.U=function(){c4.prototype.U.call(this);
this.aH.U();for(var C=0;C<3;C++)this.q4[C].U()};gB.prototype.av=function(s,m,l,x){this.__=l;var a=[];
for(var C=0;C<l.length;C++)a.push(l[C].name);for(var C=0;C<3;C++){var P=this.q4[C];P.AZ(a);P.f(Math.min(C,l.length-1))}};
gB.prototype.Rj=function(s){var m=this.__,l=m[0],x=new h9(v.E.b4,!0);x.data=jF.oI(l.e,l.l,l.sz,"Merged Document","Wht",!1);
this.Y(x);var a=[];for(var C=0;C<3;C++)a.push(m[this.q4[C]._()].cf());var l=m[m.length-1],P=l.G[0],o=P.buffer;
for(var C=0;C<o.length;C+=4){o[C]=a[0][C];o[C+1]=a[1][C];o[C+2]=a[2][C]}P.F();l.F();this.close()};function ac(){c4.call(this,[1,10],"script");
var s=n.L("div","form");s.setAttribute("style","width:44em");this.body.appendChild(s);this.bR=null;this.R9=[];
this.Gh=[];this.ami;var m=this.zR=new hj([1,2],!1,null,!0);m.h("click",this.rT,this);s.appendChild(m.m);
var l=new hj("JS Reference",!1,null,!0);l.h("click",this.abj,this);s.appendChild(l.m);s.appendChild(new jG("Demos:").m);
this.api=[];var x=ac.Fh;for(var C=0;C<x.length;C++){var a=new hj(x[C].ie,!1,null,!0);this.api.push(a);
s.appendChild(a.m);a.h("click",this.a9m,this)}this.S9=n.L("textarea");n.O_(this.S9);this.S9.setAttribute("rows",16);
this.S9.setAttribute("style","display:block;tab-size:4; font-family:monospace;width:100%;");s.appendChild(this.S9);
var P=new hj("Run",!0,null,!0);P.h("click",this.Rj,this);s.appendChild(P.m);this.afN=n.L("div");s.appendChild(this.afN)}ac.prototype=new c4;
ac.prototype.U=function(){this.zR.U()};ac.prototype.rT=function(){var s=this.ami;if(s==null)s="script.jsx";
var m=new h9(v.E.g,!0);m.data={d:v.J.Qm,It:"namewindow",nA:s.slice(0,s.length-4),Uo:this.ak0.bind(this)};
this.Y(m)};ac.prototype.ak0=function(s){var m=this.S9.value,l=g.iG(m),x=new h9(v.E.g,!0);x.data={d:v.J.rW,Qu:l.buffer,aR:s+".jsx",atd:!0};
this.Y(x)};ac.prototype.akZ=function(s){var C=this.R9.indexOf(s.target),m=this.ami=this.Gh[C],l=this.bR.iF.OG[m],x=new Uint8Array(l),a=g.V_(x,0,x.length);
this.S9.value=a};ac.prototype.av=function(s,m,l){this.S9.value=ac.Fh[0].x4;this.acA()};ac.prototype.acA=function(){var s=this.bR.iF,m=this.afN;
n.em(m);this.R9=[];this.Gh=[];m.textContent="Saved scripts: ";for(var l in s.OG){if(l.endsWith(".jsx")){var x=new hj(l,!1,null,!0);
this.R9.push(x);this.Gh.push(l);x.h("click",this.akZ,this);m.appendChild(x.m)}}};ac.prototype.L8=function(s,m){this.bR=s;
if(m==gN._t)this.acA()};ac.prototype.abj=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.DZ,link:"https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-cc-javascript-ref-2019.pdf"};
this.Y(m)};ac.prototype.Rj=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.jC,Ei:this.S9.value};this.Y(m)};
ac.prototype.a9m=function(s){var m=this.api.indexOf(s.currentTarget);this.S9.value=ac.Fh[m].x4};ac.Fh=[{ie:"Hello",x4:"\nalert(\"Hello Photopea!\");\n"},{ie:"Process Layers",x4:"\nvar lays = app.activeDocument.layers;\n\nfor(var i=0; i<lays.length; i++)\n{\n"+"\t//lays[i].visible = false;\n"+"\t//lays[i].opacity = 50;\n"+"\tlays[i].name = \"My Layer \"+i;\n}"},{ie:"Clone Layers",x4:"\nvar orig = app.activeDocument.activeLayer;\n"+"var cnt = 12;\n"+"var angle = Math.floor(360 / cnt);\n"+"\n"+"for(var i=1; i<cnt; i++)\n"+"{\n"+"\tvar nlay = orig.duplicate();\n"+"\t//nlay.translate(30*i, 20*i);\n"+"\tnlay.rotate(angle * i, AnchorPosition.BOTTOMCENTER);\n"+"}"}];
function dM(){c4.call(this,[11,7],"newproject");this.data=null;this.__=null;var s=n.L("div","flexrow");
this.WU=s;this.body.appendChild(s);var m=n.L("div","form");this.WL=m;s.appendChild(m);this.zc=new ep([12,48],null,10);
m.appendChild(this.zc.m);n.Z0(m);this._5=new bE(!0,null,null,null,!0);this._5.f(new fz(1280,720),72);
this._5.h(v.E.p,this.Y2,this);m.appendChild(this._5.m);this.YS=new gZ;this.YS.parent=this;m.appendChild(this.YS.m);
this.x9=new bj("Artboards");m.appendChild(this.x9.m);this.aH=new hj([12,49],!0,null,!0);this.aH.h("click",this.Rj,this);
m.appendChild(this.aH.m);var l=dM.fV,x=[];for(var C=0;C<l.length;C++)x.push(l[C].name);this.fa=new co(null,x);
this.fa.h(v.E.p,this.aeQ,this);m.appendChild(this.fa.m);this.fa.m.style["margin-top"]="1em";this.Au=new g7(!0);
this.Au.h(v.E.p,this.a5C,this);m.appendChild(this.Au.m);this.aeQ();this.m8=new fN;this.m8.parent=this;
this.m8.m.setAttribute("style","margin-left:1em");this.m8.h("tempready",this.a0X,this)}dM.prototype=new c4;
dM.prototype.L8=function(s,m){this.m8.L8(s)};dM.prototype.u1=function(s,m){return new fz(Math.max(0,Math.min(70,(s-690)/2)),s>m?Math.max(0,Math.min(50,(m-400)/2)):0)};
dM.prototype.jm=function(s,m){this.WL.setAttribute("style","width:"+Math.min(s-24,338)+"px");this.Au.m.style.height=m-248+"px";
var l=this.m8.m,x=l.parentNode;if(s<500){if(x!=null)this.WU.removeChild(l)}else{if(x==null)this.WU.appendChild(l);
this.m8.jm(s-378,m-28)}};dM.prototype.Y2=function(){this.m8.f(this._5._())};dM.prototype.a5C=function(s){var m=this.Au._()[0],l=dM.fV[this.fa._()].Ta[m],x=l[4];
if(x==0)x=72;var a=l[1],P=l[2],o=["px","%","mm","in"].indexOf(l[3]),G=[1,1,25.4/x,1/x][o];a/=G;P/=G;
this._5.f(new fz(Math.round(a),Math.round(P)),x);this._5.ah4(o);this.Y2()};dM.prototype.aeQ=function(s){var m=dM.fV[this.fa._()].Ta,l=[],x=[],a=Math.round(106*n.W()),P=Math.round(106*n.W()),o=0;
for(var C=0;C<m.length;C++)o=Math.max(o,m[C][1],m[C][2]);for(var C=0;C<m.length;C++){var G=m[C],_=G[1]+" x "+G[2]+" "+G[3];
if(G[3]=="in")_=(G[1]*25.4).toFixed(0)+" x "+(G[2]*25.4).toFixed(0)+" mm";if(G[3]=="mm")_=(G[1]/25.4).toFixed(1)+" x "+(G[2]/25.4).toFixed(1)+" in";
if(G[4])_=_+" @ "+G[4]+" ppi";x.push(_);l.push(dM.jj(G,a,P,o))}this.Au.Hm(l,x,a,P)};dM.jj=function(s,m,l,x){var a=n.L("canvas",""),P=a.getContext("2d");
a.width=m;a.height=l;var o=Math.round(m/8),G=Math.floor(11*n.W()),_=s[1],j=s[2];P.fillStyle="#000000";
P.font=Math.round(G*.9)+"px \"Open Sans\", Sans-Serif";var U=_+" x "+j+" "+s[3],S=P.measureText(U);P.fillText(U,Math.round((m-S.width)/2),l-Math.round(o/2));
if(s[0]!=null){P.font="bold "+G+"px \"Open Sans\", Sans-Serif";var U=s[0],S=P.measureText(U);P.fillText(U,Math.round((m-S.width)/2),l-Math.round(o/2)-Math.round(G*1.3))}l-=Math.round(2.5*G);
var X=Math.min((m-o)/_,(l-o)/j);X*=.5+.5*(Math.max(_,j)/x);var c=(m-_*X)/2,y=(l-j*X)/2;P.strokeRect(Math.round(c)+.5,Math.round(y)+.5,Math.round(_*X),Math.round(j*X));
return a.toDataURL()};dM.prototype.U=function(){c4.prototype.U.call(this);this._5.U();this.zc.U();this.YS.U();
this.aH.U();this.zc.f(iX.get([11,7]));this.fa.U();this.x9.U();this.m8.U()};dM.prototype.Rj=function(s){var m=this._5._(),l=m.x,x=m.y;
this.close();var a=this.YS._(),P=new h9(v.E.b4,!0);P.data=jF.oI(l,x,this._5.zP(),this.zc._(),["Wht","Blck","Trns","Clr"][a[0]],this.x9._(),a[1]);
this.Y(P);this.a1b()};dM.prototype.a0X=function(s){var m=s.data.u0;m.sz=this._5.zP();var l=new h9(v.E.g,!0);
l.data={d:v.J.Ig,u0:m};this.Y(l);this.close();this.a1b()};dM.prototype.a1b=function(){var s=this.__[this.__.length-1],m=this.data.a15;
if(m)iU.Ie(function(){var l=new XMLHttpRequest,x="https://www.googleapis.com/drive/v3/files?"+iU.Va();
l.open("POST",x,!0);l.setRequestHeader("Content-Type","application/json");l.addEventListener("load",function(a){var P=JSON.parse(a.target.response);
s.H4={file:P,yg:"psd"};alert(s.name+" created in Google Drive")});l.send(JSON.stringify({name:s.name,ajE:[m]}))})};
dM.prototype.av=function(s,m,l,x){this.__=l;if(s!=null&&s.q!=null){var a=new bU(0,0,s.e,s.l).pF(s.q.rect);
this._5.f(new fz(a.e,a.l))}this.data=m;this.Y2();if(n.wJ())d4.a9E(this.a3z.bind(this))};dM.prototype.a3z=function(s){if(s=="granted")d4.kE(this,this.ak9.bind(this))};
dM.prototype.ak9=function(s,m){this._5.f(new fz(m.e,m.l))};dM.fV=[{name:"Social",Ta:[["FB Page Cover",1640,664,"px",0],["FB Shared Image",1200,630,"px",0],["FB Event Image",1920,1080,"px",0],["FB Group Header",1640,856,"px",0],["Instagram",1080,1080,"px",0],["Insta Story",1080,1920,"px",0],["Youtube Profile",800,800,"px",0],["Youtube Cover",2560,1440,"px",0],["Twitter Profile",400,400,"px",0],["Twitter Header",1500,500,"px",0]]},{name:[12,88,4],Ta:[["A3",297,420,"mm",300],["A4",210,297,"mm",300],["A5",148,210,"mm",300],["B3",353,500,"mm",300],["B4",250,353,"mm",300],["B5",176,250,"mm",300],["Letter",8.5,11,"in",300],["Ledger",11,17,"in",300],["Business Card",3.5,2,"in",300]]},{name:[12,88,0],Ta:[["Wallet",2,3,"in",300],["Enprint",3.5,5,"in",300],[null,5,7,"in",300],[null,8,12,"in",300],[null,12,18,"in",300],[null,16,24,"in",300],[null,20,30,"in",300],[null,24,36,"in",300]]},{name:[12,88,1],Ta:[["VGA",640,480,"px",0],["XGA",1024,768,"px",0],["HD",1280,720,"px",0],[null,1366,768,"px",0],[null,1600,900,"px",0],["Full HD",1920,1080,"px",0],["2K",2048,1080,"px",0],["UHD",3840,2160,"px",0],["4K",4096,2160,"px",0]]},{name:[12,88,2],Ta:[["iPhone 4",640,900,"px",326],["iPhone 5",640,1136,"px",326],["iPhone 6 7 8",750,1334,"px",326],["iPhone 6+ 7+ 8+",1080,1920,"px",401],["iPhone X",1125,2436,"px",458],["Samsung A5",720,1280,"px",0],["Samsung S5",1080,1920,"px",0],["Samsung S6",1440,2560,"px",0],["Samsung S8+",1440,2560,"px",0],["Google Pixel",1080,1920,"px",0],["iPad Mini 4",1536,2048,"px",0],["iPad Air 2",1536,2048,"px",0],["iPad Pro 9.7\"",1536,2048,"px",0],["iPad Pro 10.5\"",1668,2224,"px",0],["iPad Pro 12.9\"",2048,2732,"px",0]]},{name:[12,88,3],Ta:[["Small Square",200,200,"px",0],["Square",250,250,"px",0],["Medium Rect",300,250,"px",0],["Large Rect",336,280,"px",0],["Mobile Leaderboard",320,50,"px",0],["Large Mobile",320,100,"px",0],["Banner",468,60,"px",0],["Leaderboard",728,90,"px",0],["Large Leaderboard",970,90,"px",0],["Billboard",970,250,"px",0],["Vertical Rect",240,400,"px",0],["Skyscraper",120,600,"px",0],["Wide Skyscraper",160,600,"px",0],["Half Page",300,600,"px",0],["Portrait",300,1050,"px",0]]},{name:"2\u1D3A",Ta:[[null,16,16,"px",0],[null,32,32,"px",0],[null,64,64,"px",0],[null,128,128,"px",0],[null,256,256,"px",0],[null,512,512,"px",0],[null,1024,1024,"px",0],[null,2048,2048,"px",0],[null,4096,4096,"px",0]]}];
function gW(s,m,l){c4.call(this,m,"sel_"+s);this.d=s;var x=n.L("div","form");this.body.appendChild(x);
this.zc=new dy(m,0,255,null,0,!1,!0);x.appendChild(this.zc.m);this.zc.f(1);var a=n.L("span");a.textContent=l;
x.appendChild(a);n.Z0(x);this.aqw=new bj("Apply at canvas bounds");if(s!="border")x.appendChild(this.aqw.m);
this.aH=n.VH(this,x)}gW.prototype=new c4;gW.prototype.UW=function(s,m){if(s==null)return;if(s.q==null)alert("No selection!");
return s.q!=null};gW.prototype.Rj=function(s){var m=new h9(v.E.b4,!0);m.data=r.bJ.a3M(this.d,this.zc._(),this.aqw._());
m.zZ=!0;this.Y(m);this.close()};gW.prototype.U=function(){c4.prototype.U.call(this);this.aH.U();if(this.zc)this.zc.U()};
gW.prototype.av=function(s,m){};function jD(s,m,l,x,a,P){c4.call(this,l,m);this.aoW=P;this.J4=a;this.fV=null;
this.WL=n.L("div","form");this.body.appendChild(this.WL);this.zc=s==0?new ep(l,null,10):new cT(l,0,500,x,1);
this.zc.h(v.E.p,this.ym,this);this.WL.appendChild(this.zc.m);this.aH=n.VH(this,this.WL);this.h("closebtn",this.tx,this)}jD.prototype=new c4;
jD.prototype.hl=function(){return this.aoW};jD.prototype.ym=function(s){var m=this.zc._();if(this.J4)this.Jo(m)};
jD.prototype.tx=function(s){if(this.J4)this.Jo("cancel")};jD.prototype.Rj=function(s){if(this.J4)this.Jo("confirm");
else this.Jo(this.zc._());this.close()};jD.prototype.Jo=function(s){if(this.fV.Uo)this.fV.Uo(s);else if(this.fV.pb){var m=this.fV.pb,l=new h9(m.b,!0);
l.c=m.c;l.data=m.M;l.data.Z=s;l.zZ=!0;this.Y(l)}};jD.prototype.U=function(){c4.prototype.U.call(this);
this.aH.U();if(this.zc)this.zc.U()};jD.prototype.av=function(s,m){this.fV=m;this.zc.f(m.nA);this.zc.tJ();
this.ym(null)};function eX(){c4.call(this,[1,5],"open_from_url");this.dg=null;var s=n.L("div","form");
this.body.appendChild(s);this.H2=new ep("URL",null,22);s.appendChild(this.H2.m);n.Z0(s);this.L7=new co([21,0],[[21,2],[21,1]]);
s.appendChild(this.L7.m);this.aH=n.VH(this,s)}eX.prototype=new c4;eX.prototype.U=function(){c4.prototype.U.call(this);
this.aH.U();this.L7.U()};eX.prototype.av=function(s,m,l){this.H2.tJ();this.dg=null;if(s&&l.indexOf(s)!=-1)this.dg=l.indexOf(s)};
eX.prototype.Rj=function(s){var m=new h9(v.E.g,!0),l=this.H2._();m.data={d:v.J.zy,AV:{url:l,Yu:!0,dg:this.L7._()==1?this.dg:null}};
this.Y(m);this.close()};function is(){c4.call(this,[12,79],"preferences");this.bR=null;var s=n.L("div","form");
this.body.appendChild(s);this.cb=[new bj([8,2]),new bj([8,4]),new ge([12,80,3],[[12,93,3],[12,80,4]]),new cT([12,80,5],1,100,null,2),new ge(null,L.pE.Mx),new ge([12,80,6],L.pE.Mx)];
for(var C=0;C<this.cb.length;C++){var m=this.cb[C];s.appendChild(m.m);if(C!=3)n.Z0(s);m.h(v.E.p,this.vk,this)}}is.prototype=new c4;
is.prototype.U=function(){c4.prototype.U.call(this);for(var C=0;C<this.cb.length;C++)this.cb[C].U()};
is.prototype.av=function(s,m,l){};is.prototype.L8=function(s,m){this.bR=s;this.cb[0].f(s.HD.ff);this.cb[1].f(s.HD.ry);
this.cb[2].f(s.HD.Pg);this.cb[3].f(s.HD.M$);this.cb[4].f(s.HD.D9);this.cb[5].f(s.HD.jq)};is.prototype.vk=function(s){var m=this.cb,l=JSON.parse(JSON.stringify(this.bR.HD));
l.ff=m[0]._();l.ry=m[1]._();l.Pg=m[2]._();l.M$=m[3]._();l.D9=m[4]._();l.jq=m[5]._();if(l.D9!=4)l.M$=Math.round(l.M$);
var x=new h9(v.E.g,!0);x.data={d:v.J.xw,AV:gN.iY,Ur:l};this.Y(x)};function hw(){c4.call(this,[11,8],"saveforweb");
this.ano="";this.h("closebtn",function(){this.Dn.mT()},this);this.S8=new fz(512,512);this.u0=null;this.K8=null;
this.apa=null;this.bR=null;n.RY(this.body,"flexrow");var s=n.L("div"),m=n.L("div");this.body.appendChild(s);
this.body.appendChild(m);this.oq=n.L("div","imgcont");s.appendChild(this.oq);this.Dn=new ef;this.Dn.jm(this.S8.x,this.S8.y);
this.E0=n.L("span");s.appendChild(this.E0);this.WL=n.L("div","form cell");this.WL.setAttribute("style","width:15em; padding-left:1em;");
m.appendChild(this.WL);this.ID=new ge([12,50],iO.m_());this.WL.appendChild(this.ID.m);this.ID.h(v.E.p,this.ga,this);
this._5=new bE(!0,!0,!1,!0);this._5.h(v.E.p,this.ga,this);this.WL.appendChild(this._5.m);this.fB=new ev;
this.fB.h(v.E.p,this.ga,this);this.WL.appendChild(this.fB.m);this.Ll=new hj([1,2],!0,null,!0);this.Ll.h("click",this.Rj,this);
this.WL.appendChild(this.Ll.m)}hw.prototype=new c4;hw.prototype.UW=function(s,m){return s!=null};hw.prototype.U=function(){c4.prototype.U.call(this);
this._5.U();this.ID.U();this.fB.U();this.Ll.U()};hw.prototype.Rj=function(s){var m=this.u0.name,l=m.lastIndexOf("."),m=l==-1?m:m.slice(0,l),x=iO.m_()[this.ID._()],a=x=="JPG"||x=="PNG"||x=="GIF",P=iO.ln(x),o="."+x.toLowerCase(),G=this.K8,_=m+o,j=this.u0,U=j.YA;
if(U.length!=0&&a&&this.fB._().pop()){var S="<!DOCTYPE html>\n<html>\n<style>div {position:absolute;}</style>\n<head></head>\n<body>\n",X=[],c={},y=new bU(0,0,j.e,j.l),O=j.cf();
for(var C=0;C<U.length;C++)X.push(r.NT.Yc(U,C));X.reverse();var p=L.rect.Xy([0,0,j.e,j.l],X);for(var C=0;
C<p.length;C++){var D=p[C],f=new bU(D[0],D[1],D[2]-D[0],D[3]-D[1]),T=D.length==5?U[D[4]].v:null,I=L.B(f.k()*4);
L.yx(O,y,I,f);var H="img/img"+(C+1)+o;c[H]=new Uint8Array(P.yd([[I.buffer,0]],f.e,f.l,this.fB._()));
S+="<div style=\"background-image:url('"+H+"'); left:"+f.x+"px; top:"+f.y+"px; width:"+f.e+"px; height:"+f.l+"px\">";
if(T&&T.url.v!="")S+="\n\t<a href=\""+T.url.v+"\" target=\""+T.null.v+"\" style=\"display:block;width:100%;height:100%;\"></a>\n";
S+="</div>\n"}S+="</body>\n</html>\n";var b=L.B(Math.round(S.length*1.5)),R=g.v_(S,b,0);c["index.html"]=b.slice(0,R);
G=UZIP.encode(c);_=m+".zip"}else if(j.add.artd&&j.add.artd.Cnt.v>1&&a&&this.fB._().pop()){var c={},y=new bU(0,0,j.e,j.l),O=j.cf(),W=j.root.children;
for(var C=0;C<W.length;C++){var J=W[C].i;if(J.add.artb==null||!J.p$())continue;var u=J.wy(),e=L.B(u.k()*4);
L.yx(O,y,e,u);c[J.getName()+o]=new Uint8Array(P.yd([[e.buffer,0]],u.e,u.l,this.fB._()))}G=UZIP.encode(c);
_=m+".zip"}if(j.k3){var Q=new XMLHttpRequest;Q.open("GET","/papi/img/update.php?act=1&id="+j.k3+"&rnd="+Math.random());
Q.send()}var q=new h9(v.E.g,!0);q.data={d:v.J.V7,data:G,name:_};this.Y(q);this.Dn.mT();this.close()};
hw.prototype.av=function(s,m){if(m.pG!=null)this.ID.f(m.pG);this.u0=s;var l=s.e+","+s.l;if(l!=this.ano){this.ano=l;
this._5.f(new fz(s.e,s.l),s.sz)}this.fB.a5t();if(m.an7){this._5.ah4(3);this.fB.NB.PDF[2]._0.f(!0)}this.ga(null,!0)};
hw.prototype.u1=function(s,m){return new fz(Math.max(0,Math.min(150,(s-770)/2)),Math.max(0,Math.min(150,(m-590)/2)))};
hw.prototype.jm=function(s,m){this.h_=s;this.Cm=m;this.S8.x=Math.min(512,s-26-214);this.S8.y=Math.min(512,m-45);
if(this.u0==null)return;var l=this._5._(),s=l.x,m=l.y,x=iO.m_()[this.ID._()],a=iO.ln(x),S="<span style=\"width:",X="display:inline-block; text-align:right;\">";
if(a.Kw){var P=s,o=m,G;if(x=="PDF"||a.t6){P=this.S8.x;o=this.S8.y}else{P=Math.min(s+20,this.S8.x);o=Math.min(m+20,this.S8.y)}this.oq.firstChild.setAttribute("style","display:block; width:"+P+"px; height:"+o+"px;")}else{if(a.t6){P=this.S8.x;
o=this.S8.y}else{var _=this.apa,j=_[0].Sb,P=j.e,o=j.l;this.Dn.jm(Math.max(50,Math.min(P/n.W(),this.S8.x)),Math.max(50,Math.min(o/n.W(),this.S8.y)))}}var U=this.K8.byteLength,c=x+":"+S+64+"px;"+X+hw.Ln(U)+"</span>";
if(this.S8.x>200)c+=S+90+"px; opacity:"+.5+";"+X+U.toLocaleString()+" B</span>";this.E0.innerHTML=c};
hw.Ln=function(s){var m=s.toString(2),l=0;while(l+10<m.length)l+=10;var x=(s/Math.pow(2,l)).toFixed(1),a="B KB MB GB TB PB".split(" ")[Math.floor(l/10)];
return x+" "+a};hw.prototype.L8=function(s,m){this.bR=s};hw.prototype.ga=function(s,m){var l=this.u0,x=this._5._(),a=x.x,P=x.y,o=this.ID._(),G=iO.m_()[o],_=iO.H7(l)[0].length,j=["GIF","PNG","WEBP"].indexOf(G)!=-1&&_>1,O="";
if(j&&m&&(_>4&&a*P>1024*1024||a*P*_>800*800*50)){var U=1;while(Math.max(a>>>U,P>>>U)>800)U++;var S=window.confirm("Your animation is large ("+a+" x "+P+" px). Press \"OK\" to scale it to "+(100>>>U)+"%. Press \"Cancel\" to keep the size.");
if(S){this._5.f(new fz(a>>>U,P>>>U),null,!0);a=a>>>U;P=P>>>U}}var X=l.add.artd,c=X!=null&&X.Cnt.v>1;
this.fB.a6d(G,j,l.YA.length!=0,c);var y=this.fB._();this.K8=iO.rJ(l,G,a,P,y,this.bR);if(this.K8==null){this.u0=null;
return}n.em(this.oq);this.Dn.mT();var p=iO.ln(G);if(p.t6){this.oq.innerHTML="<div></div>";O+="width:0px"}else if(p.Kw){var D=a,f=P,T;
if(G=="PDF"){T=URL.createObjectURL(new Blob([this.K8],{type:"application/pdf"}))}else{T=URL.createObjectURL(new Blob([this.K8],{type:"image/svg+xml"}))}this.oq.innerHTML="<iframe src=\""+T+"\"></iframe>"}else{var I=this.apa=p.Gs(this.K8),H=I[0].Sb,D=H.e,f=H.l;
this.Dn.f(I,I.length>1?y[y.length-3]:0);this.oq.appendChild(this.Dn.m);O="background: rgba(0,0,0,0);"}this.oq.setAttribute("style","display:block; background-size:"+16/n.W()+"px;"+O);
this.jm(this.h_,this.Cm)};function hR(){c4.call(this,[11,13],"shortcuts");var s=this.WU=n.L("div","scrollable");
s.setAttribute("style","min-width:700px; max-height:500px; padding:1.5em");this.body.appendChild(s);
this.aj6()}hR.prototype=new c4;hR.prototype.U=function(){c4.prototype.U.call(this);this.aj6()};hR.prototype.aj6=function(){var s="<div style=\"line-height:1.4em; column-count:3; column-gap:3em; column-rule-width:1px;\" class=\"\">",m="",l=dV,x=l.bt,a=l.Ht,P=l.Il;
m+="<h2 style=\"margin-top:0;\">Main Menu</h2>";m+=s;m+=this.oY([[0,0],"---",[1,0],[x,l.W5],[1,2],[x,l.iJ],[1,3],[a,x,l.iJ],[1,8],[P,a,x,l.iJ],[0,1],"---",[2,0],[a,x,l.$j],[2,1],[x,l.$j],[5,0],[x,l.mj],[5,1],[x,l._a],[5,2],[x,l.BF],[2,2],"Delete",[2,3],[P,l.H8],[10,16],[P,x,l.GM],[12,79],[x,l.OV],[3],"---",[4,1],[x,l.J5],[4,2],[x,l.Nk],[4,5],[x,l.sv],[4,11],[x,l.ai],[0,3],"---",[6,0],[x,l.bc],[6,6,0],[P,x,l.e4],[6,9],[x,l.e4],[6,10],[x,l.E],[0,5],"---",[7,0],[x,l.J],[7,1],[x,l.PX],[7,2],[a,x,l.ai],[0,7],"---",[8,0],[x,l.ko],[8,1],[x,l.xa],[8,3],[x,l.E4],[8,2],[x,l.Xe],[8,4],[x,l.fT],[11,13],"?"]);
m+="</div>";m+="<h2 style=\"margin-top:1.5em;\">Navigation</h2>";m+=s;m+=this.oY(["Vertical scroll","Wheel","Horizontal scroll",[x,"Wheel"],"Zooming",[P,"Wheel"]]);
m+="</div>";m+="<h2 style=\"margin-top:1.5em;\">Quick tools (press to enable, release to disable)</h2>";
m+=s;m+=this.oY([[10,11],[x],[10,7],"Space",[10,17],[x,l.td]]);m+="</div>";m+="<h2 style=\"margin-top:1.5em;\">Tools</h2>";
m+=s;var o=hR.C,G=[];for(var C=0;C<o.length;C+=3)if(o[C+1])G.push(o[C],o[C+1]);G=G.concat([[24,16],"---",[22,7,1],"D",[22,7,0],"X",[6,6,1],"Q","Decrease Brush Size","[","Increase Brush Size","]","Decrease Hardness","{","Increase Hardness","}"]);
m+=this.oY(G);m+="</div>";this.WU.innerHTML=m};hR.prototype.oY=function(s){var m="",l=!0;for(var C=0;
C<s.length;C+=2){var x=s[C],a=dV.Xt(s[C+1]);if(a==null){l=!1;continue}var P=n.aQ(iX.get(x));if(a=="---"){if(!l)m+="<br/>";
m+="<div style=\"font-weight:bold; border-bottom: 1px solid;\">"+P+"</div>"}else m+="<div>"+P+" <span style=\"float:right; font-weight:bold;\">"+a+"</span> </div>";
l=!1}return m};hR.C=[[10,11],"V",0,[10,50],"V",70,[10,15],"M",1,[10,4],"M",2,[10,9],"L",5,[10,14],"L",6,[10,10],"L",7,[10,44],"W",3,[10,37],"W",8,[10,12],"W",9,[10,2],"C",10,[10,39],"C",11,[10,40],"C",12,[10,41],"C",13,[10,5],"I",14,[10,36],"I",16,[10,24],"J",18,[10,25],"J",19,[10,26],"J",20,[10,43],"J",22,[10,0],"B",23,[10,38],"B",24,[10,42],"B",25,[10,1],"S",27,[10,3],"E",31,[10,45],"E",32,[10,6],"G",34,[10,13],"G",35,[10,18],null,36,[10,19],null,37,[10,20],null,38,[10,21],"O",39,[10,22],"O",40,[10,23],"O",41,[10,8],"T",47,[10,29],"P",42,[10,30],"P",43,[10,27],"A",51,[10,28],"A",52,[10,32],"U",54,[10,33],"U",55,[10,35],"U",57,[10,34],"U",56,[10,31],"U",58,[10,7],"H",59,[10,17],"Z",61];
function eQ(){c4.call(this,[8,11,1],"soptions");this.oA=null;var s=n.L("div","form");s.style.width="20em";
this.body.appendChild(s);this.B8={Nm:[12,48],url:"URL",null:[12,71]};this.cb={};for(var m in this.B8){var l=new ep(this.B8[m],null,15);
this.cb[m]=l;s.appendChild(l.m)}this.aH=n.VH(this,s)}eQ.prototype=new c4;eQ.prototype.av=function(s,m,l){var x=m.Z;
this.oA=JSON.stringify(x);for(var a in this.B8){if(x[a])this.cb[a].f(x[a].v)}};eQ.prototype.Rj=function(s){var m=JSON.parse(this.oA);
for(var l in this.B8){var x=this.cb[l]._();m[l]={t:"TEXT",v:x}}var a=new h9(v.E.u,!0);a.c=r.iR;a.data=m;
a.zZ=!0;this.Y(a);this.close()};eQ.prototype.U=function(){c4.prototype.U.call(this);this.aH.U()};function hk(){c4.call(this,[2,3],"fill");
this.bR=null;this.zx=null;var s=n.L("div","form padded");s.style.width="22em";this.body.appendChild(s);
this.QJ="FrgC BckC Clr Blck Gry Wht contentAware Ptrn".split(" ");this.Fv=new ge([2,3],[[12,45],[12,46],[12,47],[13,1,10],[13,1,7],[13,1,8],[6,48,0,3],[12,62]],null,[3,3,2]);
this.Fv.h(v.E.p,this.akw,this);s.appendChild(this.Fv.m);this.oq=n.L("span");s.appendChild(this.oq);this.Uy=new fM;
this.Uy.parent=this;this.Uy.XC(0);this.vw=new ez;this.vw.parent=this;this.Wj=new ge([12,19,0],aA.dP,!1,aA.Nx);
s.appendChild(this.Wj.m);this.U4=new cT([12,0],0,100,"%",0,!1);this.U4.f(100);s.appendChild(this.U4.m);
this.B_=new bj("Preserve Transparency");this.B_.f(!1);s.appendChild(this.B_.m);this.aH=n.VH(this,this.body)}hk.prototype=new c4;
hk.prototype.UW=function(s,m){return s!=null};hk.prototype.hl=function(){return!0};hk.prototype.akw=function(){var s=this.Fv._(),m=this.Uy.m,l=this.vw.m,x=this.oq;
if(s==2)x.appendChild(m);else if(x.contains(m))x.removeChild(m);if(s==7)x.appendChild(l);else if(x.contains(l))x.removeChild(l)};
hk.prototype.U=function(){c4.prototype.U.call(this);this.Fv.U();this.Wj.U();this.U4.U();this.aH.U()};
hk.prototype.Rj=function(s){if(!this.zx.z6())return;var m=new h9(v.E.b4,!0),l=this.Fv._();m.data=r.fZ.VG(this.QJ[l],aA.EB[this.Wj._()],this.U4._()/100,this.Uy._(),this.B_._(),this.vw._());
this.close();this.Y(m)};hk.prototype.av=function(s,m){this.zx=s};hk.prototype.L8=function(s,m){this.bR=s;
if(m==gN.ki||m==gN._L){this.vw.El(s.yZ);this.vw.f({classID:"Ptrn",Nm:{v:"orangeslices",t:"TEXT"},Idnt:{v:"c7acb22a-47a6-11de-919a-bf574370eaaf",t:"TEXT"}})}};
function eI(){c4.call(this,[14,9],"stroke");this.bR=null;this.WL=n.L("div","form");this.WL.setAttribute("style","width:24em");
this.body.appendChild(this.WL);this.aX=new dJ("FrFX",!0);this.aX.parent=this;var s=["Sz","Styl","Md","Opct"].concat(i4.Rc);
for(var C=0;C<s.length;C++){var m=this.aX._p[s[C]].m;this.WL.appendChild(m)}this.dE=!1;this.aH=n.VH(this,this.body)}eI.prototype=new c4;
eI.prototype.UW=function(s,m){return s!=null};eI.prototype.hl=function(){return!0};eI.prototype.U=function(){c4.prototype.U.call(this);
this.aH.U();this.aX.U()};eI.prototype.Rj=function(s){var m=new h9(v.E.u,!0);m.c=r.kB;m.data={d:"stroke",a1I:this.aX._()};
this.close();this.Y(m)};eI.prototype.av=function(s,m){if(!this.dE){var l=i4.Ej[i4.order.indexOf("FrFX")];
l=JSON.parse(l);this.aX.update(s,l);this.dE=!0}var l=this.aX._(),x=this.bR.zU;l.Clr.v=L.K.gc({o:x>>16&255,z:x>>8&255,S:x&255});
this.aX.update(s,l)};eI.prototype.L8=function(s,m){this.bR=s};function fY(){c4.call(this,[11,9],"textwarp");
this.cb=new eu;this.cb.h(v.E.p,this.zi,this);this.cb.parent=this;this.WL=n.L("div","form");this.WL.setAttribute("style","width:20em");
this.body.appendChild(this.WL);this.WL.appendChild(this.cb.Oz.m);this.WL.appendChild(this.cb.T7.m);this.WL.appendChild(this.cb.Mp.m);
this.WL.appendChild(this.cb.HC.m);this.WL.appendChild(this.cb.bg.m);this.aH=n.VH(this,this.WL);this.h("closebtn",this.tx,this)}fY.prototype=new c4;
fY.prototype.hl=function(){return!0};fY.prototype.U=function(){c4.prototype.U.call(this);this.aH.U();
this.cb.U()};fY.prototype.zi=function(s){var m=this.cb._();this.Jo({d:"warp",Lv:m})};fY.prototype.Jo=function(s){var m=new h9(v.E.u,!0);
m.c=r.sX;m.data=s;m.zZ=!0;this.Y(m)};fY.prototype.tx=function(s){this.Jo({d:"warpCancel"})};fY.prototype.Rj=function(s){this.Jo({d:"warpConfirm"});
this.close()};fY.prototype.av=function(s,m){var l=s.G[s.N[0]];this.cb.f(l.add.TySh.hG)};function fv(){c4.call(this,[11,12,0],"trim");
var s=this.WL=n.L("div","form");this.WL.setAttribute("style","width:22em");this.body.appendChild(this.WL);
var m=new jG("Color To Trim:");s.appendChild(m.m);this.HY=new ja(null,["Top Left Pixel Color","Bottom Right Pixel Color",[13,1,9]],null,null,!0);
this.HY.f([!0]);this.WL.appendChild(this.HY.m);var m=new jG("Sides:");s.appendChild(m.m);this.cq=new ja(null,["Top","Left","Bottom","Right"]);
this.cq.f([!0,!0,!0,!0]);this.WL.appendChild(this.cq.m);this.aH=n.VH(this,this.body)}fv.prototype=new c4;
fv.prototype.UW=function(s,m){return s!=null};fv.prototype.hl=function(){return!0};fv.prototype.U=function(){c4.prototype.U.call(this);
this.HY.U();this.cq.U();this.aH.U()};fv.prototype.Rj=function(s){var m=this.HY._().indexOf(!0),l=this.cq._(),x=new h9(v.E.b4,!0);
x.data=r.Bs.gM(m,l);this.close();this.Y(x)};function gK(){c4.call(this,"Raw Photopea","rawpea");this.UG=null;
this.Rp=null;this.n7=null;this.b2=0;this.Rb=null;this.PM=null;this.al9=500;this.apm=500;this.a9V=0;this.h("closebtn",this.kL,this);
n.RY(this.body,"flexrow");var s=n.L("div"),m=n.L("div"),x="<svg class=\"autoscale gsicon\" viewBox=\"0 0 14 18\" width=\"14\" height=\"18\" fill=\"black\"><path d=\"M14,6 L10,6 L10,0 L4,0 L4,6 L0,6 L7,13 L14,6 L14,6 Z M0,14 L0,16 L14,16 L14,14 Z\" /></svg>";
m.setAttribute("style","padding-left: 1em");this.body.appendChild(s);this.body.appendChild(m);this.w=n.L("canvas");
s.appendChild(this.w);this.P7=new cs(225);this.P7.JV(4);m.appendChild(this.P7.m);this.WL=n.L("div");
this.WL.setAttribute("style","width:18em;");m.appendChild(this.WL);this.asu=new jG("Hi",!0);this.WL.appendChild(this.asu.m);
this.Nc=[new aR("Temperature",2e3,13e3),new aR("Tint",-150,150),new aR([4,3],-4,4,null,!0),new aR([12,3,0],-100,100)];
for(var C=0;C<this.Nc.length;C++){var l=this.Nc[C];l.f(0);l.h(v.E.p,this.ZJ,this);this.WL.appendChild(l.m);
if(C==1)this.WL.appendChild(n.L("hr"))}this.aH=new hj([1,0],!0,null,!0);this.aH.h("click",this.Rj,this);
this.WL.appendChild(this.aH.m);this.gA=new hj(x+" JPG",!0,null,!0);this.gA.h("click",this.aql,this);
this.WL.appendChild(this.gA.m);this.gA.m.style.marginTop="6px"}gK.prototype=new c4;gK.prototype.u1=function(){return new fz(0,0)};
gK.prototype.jm=function(s,m){this.al9=s-274;this.apm=m-32;if(this.UG)this.a0N()};gK.prototype.U=function(){c4.prototype.U.call(this);
this.aH.U();for(var C=0;C<this.Nc.length;C++)this.Nc[C].U()};gK.prototype.aql=function(s){var m=this.UG,l=this.Rp,x=L.B(m.width*m.height*4);
L.MP(x,4294967295);L.raw.SB(l,x,m,this.CX());var a=iO.ln("JPG").yd([[x.buffer]],l.p9,l.Km,[85]),P=new h9(v.E.g,!0);
P.data={d:v.J.V7,data:a,name:"photo.jpg"};this.Y(P)};gK.prototype.Rj=function(s){var m=this.UG,l=this.Rp,x=L.B(m.width*m.height*4);
L.MP(x,4294967295);L.raw.SB(l,x,m,this.CX());var a=bs.pD(m),m={Sb:new bU(0,0,l.p9,l.Km),data:x.buffer,l1:a},P=iO.mt("Raw Photo",[m]),o=new h9(v.E.g,!0);
o.data={d:v.J.Ig,u0:P};this.Y(o);this.kL();this.close()};gK.prototype.kL=function(){this.UG=null;this.Rp=null;
this.Rb=null;this.PM=null};gK.prototype.av=function(s,m,l,x){this.UG=m.CI;this.Rp=L.raw.apb(this.UG);
var a=this.Rp;this.asu.f(a.p9+" x "+a.Km+", "+(a.p9*a.Km/1e6).toFixed(1)+" MPx");var P=L.raw.ak5(m.CI);
this.n7=cx.B3(P);this.Nc[0].f(this.n7.Zx);this.Nc[1].f(this.n7.ce);for(var C=2;C<this.Nc.length;C++)this.Nc[C].f(0);
this.a0N()};gK.prototype.L8=function(s,m){this.P7.XC(gn.WO[s.li]["--text-color"])};gK.prototype.a0N=function(){var s=this.Rp,m=s.p9,l=s.Km,x=1;
while(m/x>this.al9*n.W()||l/x>this.apm*n.W())x++;if(this.a9V==x&&this.Rb)return;this.a9V=x;var a=Math.floor(m/x),P=Math.floor(l/x);
this.Rb={du:new Float32Array(a*P*3),p9:a,Km:P};var o=this.w.getContext("2d");this.PM=L.B(a*P*4);L.MP(this.PM,4294967295);
var G=1/(x*x);for(var _=0;_<P;_++)for(var j=0;j<a;j++){var U=0,S=0,X=0,c=(j+1)*x,y=(_+1)*x;for(var O=_*x;
O<y;O++)for(var p=j*x;p<c;p++){var D=(O*m+p)*3;U+=this.Rp.du[D];S+=this.Rp.du[D+1];X+=this.Rp.du[D+2]}var f=(_*a+j)*3;
this.Rb.du[f]=U*G;this.Rb.du[f+1]=S*G;this.Rb.du[f+2]=X*G}this.ZJ()};gK.prototype.ZJ=function(){var s=this.UG,m=this.Rb.p9,l=this.Rb.Km,x=m*l,a=this.w,P=a.getContext("2d");
a.width=m;a.height=l;n.cO(a,m,l);L.raw.SB(this.Rb,this.PM,s,this.CX());P.putImageData(new ImageData(new Uint8ClampedArray(this.PM.buffer),m,l),0,0);
var o=L.XU(this.PM);for(var C=0;C<4;C++)for(var G=1;G<256;G++)if(o[C][G]==0)o[C][G]=o[C][G-1];for(var C=0;
C<4;C++)for(var G=1;G<256;G++)if(o[C][G]==0)o[C][G]=o[C][G-1];this.P7.f(o)};gK.prototype.CX=function(){var s=[];
for(var C=0;C<this.Nc.length;C++)s.push(this.Nc[C]._());return s};function fE(s){c4.call(this,s?[11,11]:"Reduce Colors",s?"vbitmap":"rcolors");
this.fV=null;this.el=null;this.vd=null;this.Lb=null;this._U=null;this.a0M=null;this.qu=null;this.q4="";
this.ef=s;this.rh=this.Pf.bind(this);this.body.style.padding="0";this.WL=n.L("div","form hbar padded");
this.body.appendChild(this.WL);var m=this.Kc={cnum:new dy([12,82],2,50,null),nois:new bj([12,81]),mode:new ge(null,["Cartoon","Photo"]),segm:new bj("Segmentize"),poly:new bj("Polygon"),polE:new dy("Roughness",2,30,null),ok:n.VH(this,null,!1)},P=16;
for(var l in m){var x=m[l];x.parent=this;if(l!="ok")x.h(v.E.p,this.Pf,this)}var a=this.zq=n.L("div","flexrow");
this.body.appendChild(a);this.pw=new ef;this.pw.h("viewchange",this.cD,this);this.SD=new ef;this.w=n.L("canvas");
this.w.setAttribute("style","margin:0 0 0 1px; padding:0; cursor:grab;");this.og=this.w.getContext("2d");
var o=L.B(16*16*4);L.Oy(o,P,P,8);this.Kq=L.scale.Op(o,P,P);this.pw.aen(this.w);this.pw.JW(this.SD);this.SD.JW(this.pw);
a.appendChild(this.pw.m);if(s)a.appendChild(this.w);else a.appendChild(this.SD.m)}fE.prototype=new c4;
fE.prototype.u1=function(){return new fz(0,0)};fE.prototype.hl=function(){return!0};fE.prototype.jm=function(s,m){this.h_=s;
this.Cm=m;m=m-44;if(s<600)m-=29;if(this.fV==null)return;var l=this.fV.Sb,x=il.aaK(s,m,l.e,l.l);if(x==1)m-=3;
if(x==0){s=Math.floor(s/2);n.RY(this.zq,"flexrow")}else{m=Math.floor(m/2);n.po(this.zq,"flexrow")}n.ek(this.w,s,m);
this.pw.jm(s,m);if(this.ef)this.cD();else this.SD.jm(s,m)};fE.prototype.NZ=function(s,m,l,x){this.pw.NZ(x)};
fE.prototype.U=function(){c4.prototype.U.call(this);for(var s in this.Kc)this.Kc[s].U()};fE.prototype.av=function(s,m){this.qu=s;
this._U=null;var l=s.G[s.N[0]],x=L.Nt.Li(l.buffer.buffer,l.rect.e,l.rect.l).aiS,a=x/((l.rect.e-2)*(l.rect.l-2)),P=this.Kc;
P.cnum.f(20);P.nois.f(a<.75);P.mode.f(a<.75?1:0);P.segm.f(!1);P.poly.f(!1);P.polE.f(1);var o=l.rect.clone();
o.x=o.y=0;this.fV={Sb:o,data:l.buffer.buffer.slice(0)};this.el=null;this.jm(this.h_,this.Cm);this.pw.f([this.fV]);
this.pw.zG();setTimeout(this.rh,20)};fE.prototype.Pf=function(){var s=!0,m=Date.now(),l=this.fV,x=this.Kc,a=x.cnum._(),P=x.nois._(),o=x.mode._(),G=x.segm._(),_=x.poly._(),j=x.polE._(),R=null;
if(o==0)G=_=!1;var U=["cnum","nois","mode"];if(o==1){U.push("segm");if(this.ef){U.push("poly");if(_)U.push("polE")}}U.push("ok");
n.em(this.WL);for(var C=0;C<U.length;C++)this.WL.appendChild(x[U[C]].m);if(s)console.log("---------------------------------------");
var S=P||G,X=P+","+G;if(S&&(this.el==null||this.q4!=X)){this.q4=X;var c=new Uint8Array(l.data),y=l.Sb.e,O=l.Sb.l;
if(P){if(this._U==null){this._U=c.slice(0);L.Du.iL(this._U,this._U,y,O,15,L.Du.qH,[35]);if(s){console.log("denoise",Date.now()-m);
m=Date.now()}}c=this._U.slice(0)}else c=c.slice(0);if(G){var p=L.Nt.Bw(c,y,O,40,10),D=p.OV,f=new Uint8Array(D*4);
for(var C=0;C<D;C++){var T=C*4,I=C*6,H=1/p.Hf[I+5];f[T]=p.Hf[I]*H;f[T+1]=p.Hf[I+1]*H;f[T+2]=p.Hf[I+2]*H}for(var C=0;
C<c.length;C+=4){var b=p.QL[C>>>2]*4;c[C]=f[b];c[C+1]=f[b+1];c[C+2]=f[b+2]}if(s){console.log("segm",Date.now()-m);
m=Date.now()}}this.el={Sb:l.Sb.clone(),data:c.buffer}}if(S)l=this.el;var c=new Uint8Array(l.data),y=l.Sb.e,O=l.Sb.l;
for(var C=0;C<c.length;C+=4){if(c[C+3]<10)c[C]=c[C+1]=c[C+2]=c[C+3]=0}if(o==0){R=L.Nt.ao$(c,y,O,a,S?.1:2e-4);
if(s){console.log("quantize",Date.now()-m);m=Date.now()}}else{R=ew.Ga(c.buffer,a,y,O)}if(this.ef){var W=R.QL.slice(0);
for(var C=0;C<W.length;C++)W[C]++;var J=new Uint8Array((y+2)*(O+2));L.kV(W,new bU(1,1,y,O),J,new bU(0,0,y+2,O+2));
if(!_){var u=Math.round((y+2)*(O+2)/1e4),e=a4.mE(J.slice(0),y+2,O+2,Math.min(12,u)),Q=a4.S4(e);if(s){console.log("trace smooth",Date.now()-m);
m=Date.now()}}else{var Q=L.H.Zo(J,y+2,O+2,j,s)}var q=Q.length,Z=new ae(1,0,0,1,-1,-1);for(var C=0;C<q;
C++)L.H.A(Q[C].path.s,Z,Q[C].path.s);this.Lb=Q;this.vd=R;for(var C=0;C<q;C++){var E=Q[C];for(var z=C+1;
z<q;z++){var V=Q[z];if(V.parent==C&&R.qO[V.color-1].est.q[3]<.05){var Y=V.path.r.slice(1);Y.reverse();
Y=["M"].concat(Y);var d=[],e=V.path.s.length;for(var w=0;w<e;w+=2){d[w]=V.path.s[e-2-w];d[w+1]=V.path.s[e-2-w+1]}L.H.concat(E.path,{s:d,r:Y})}}}if(s){console.log("finding holes",Date.now()-m);
m=Date.now()}for(var C=0;C<Q.length;C++){var E=Q[C],A=R.qO[E.color-1].est.q;if(A[3]<=.05){Q.splice(C,1);
C--;continue}}for(var C=1;C<Q.length;C++){var $=Q[C-1],E=Q[C];if($.color==E.color){L.H.concat($.path,E.path);
Q.splice(C,1);C--;continue}}this.cD()}else{var i=new Uint32Array(y*O),K=y*O;for(var C=0;C<K;C++){var h=R.qO[R.QL[C]];
i[C]=h.est.rgba}this.a0M=new Uint8Array(i.buffer);this.SD.f([{Sb:l.Sb,data:i.buffer}])}};fE.prototype.cD=function(s){if(this.Lb==null)return;
var m=this.fV.Sb.e,l=this.fV.Sb.l,x=this.Lb,a=this.vd.qO,P=this.w,o=this.og,G=this.pw.Ax();o.setTransform(1,0,0,1,0,0);
o.clearRect(0,0,P.width,P.height);o.translate(P.width/2,P.height/2);o.scale(G.O,G.O);o.translate(G.X.x/G.O-m/2,G.X.y/G.O-l/2);
o.scale(1/G.O,1/G.O);o.fillStyle=this.Kq;o.fillRect(0,0,m*G.O,l*G.O);o.scale(G.O,G.O);var _=[];for(var C=0;
C<a.length;C++){var j=a[C].est.q;_.push({o:Math.round(255*j[0]),z:Math.round(255*j[1]),S:Math.round(255*j[2]),lz:Math.round(255*j[3])})}for(var C=0;
C<x.length;C++){var U=x[C],j=_[U.color-1];if(j.lz==0)continue;o.fillStyle="rgba("+j.o+","+j.z+","+j.S+","+j.lz/255+")";
o.beginPath();Typr.U.pathToContext({crds:U.path.s,cmds:U.path.r},o);o.fill()}};fE.prototype.Rj=function(s){var m=this.qu,l=m.N[0],x=m.G[l],a=new h9(v.E.u,!0);
a.zZ=!0;a.c=r.ay;if(this.ef){var P=this.Lb,o=P.length==1,G=m.G.slice(0,l);if(!o)G.push(m.b8());for(var C=0;
C<P.length;C++){var _=P[C],j=this.vd.qO[_.color-1].est.q;L.H.A(_.path.s,new ae(1,0,0,1,x.rect.x,x.rect.y),_.path.s);
var U=m.d2();U.qW("Path "+C);G.push(U);U.opacity=Math.round(j[3]*255);U.Yy|=16;U.add.SoCo={classID:"null",Clr:{t:"Objc",v:L.K.gc({o:255*j[0],z:255*j[1],S:255*j[2]})}};
U.add.vmsk=new t.sD;U.add.vstk=JSON.parse(JSON.stringify(i4.Ah.default));U.add.vmsk.T=L.H.vP(_.path,!1);
U.add.vogk=[];U.GK();U.sN(m)}var S=G[G.length-1];if(!o){var U=m.d2();U.qW(x.getName());U.add.lsct=hN.yF;
U.TR="pass";U.Yy=24;G.push(U);S=U}var X=x.add.lmfx;if(X)S.add.lmfx=JSON.parse(JSON.stringify(X));for(var C=l+1;
C<m.G.length;C++)G.push(m.G[C]);a.data={d:t.Jb,vz:G,Q$:[l+P.length+(o?-1:1)],YH:[11,11]}}else{var G=m.G.slice(0),U=m.d2();
U.qW(x.getName());G.splice(m.N[0]+1,0,U);U.rect=x.rect.clone();U.buffer=this.a0M;U.F();a.data={d:t.Jb,vz:G,Q$:[m.N[0]+1],YH:"Reduce Colors"}}this.Y(a);
this.close()};function il(s){c4.call(this,[[7,11],[7,13]][s],["redge","magiccut"][s]);this.HY=s;this.fV={};
this.kW=null;this.pX=null;this.qu=null;this.sG=null;this.Gc=null;this.body.style.padding="0";this.Lj=[];
this.q3=-1;this.WL=n.L("div","form hbar padded");this.body.appendChild(this.WL);this.Td=new jJ;this.Td.parent=this;
this.Td.h(v.E.p,this.jQ,this);this.WL.appendChild(this.Td.m);var m=s==0?["#ffffff","#888888","#000000"]:["#00dd00","#888888","#ff0000"];
m=m.concat("tools/hand","zoomIn","zoomOut");var l=s==0?[[12,45],"Unknown",[12,46]]:[[12,45],"Erase",[12,46]];
this.Vg=new dL(null,m,l,28);this.Vg.h(v.E.p,this.NZ,this);this.WL.appendChild(this.Vg.m);this.zC=new dy([7,9],0,50,null);
this.zC.parent=this;this.zC.h(v.E.p,[this.asI,this.Pf][s],this);this.WL.appendChild(this.zC.m);var x=this.acP=new hj([2,2],!1,null,!0);
x.h("click",this.kL,this);this.WL.appendChild(x.m);var a=this.ajj=n.L("span","form");this.WL.appendChild(a);
var P=this.ask=new hj([12,90],!1,null,!0);P.h("click",function(_){alert(s==0?iX.get([15,7,1]):"Mark the object with Green, background with Red. Two colors should never touch.",5e3)},this);
a.appendChild(P.m);var o=new hj("Tutorial",!1,null,!0);o.h("click",this.ah_,this);a.appendChild(o.m);
this.pA=new dL([12,46],["checker","#ffffff","#000000"]);this.pA.h(v.E.p,this.a1A,this);a.appendChild(this.pA.m);
this.BC=new ge(null,[[6,13],[6,2],[17,2]]);a.appendChild(this.BC.m);this.aH=n.VH(this,a,!1);var G=this.zq=n.L("div","flexrow");
this.body.appendChild(G);this.kb=new ef(!0);this.gl=new ef;this.kb.JW(this.gl);this.gl.JW(this.kb);this.kb.h("mousedown",this._N,this);
this.kb.h("mousemove",this.xi,this);this.kb.h("mouseup",this.tU,this);this.kb.h("zoom",this.jQ,this);
this.gl.h("zoom",this.jQ,this);G.appendChild(this.kb.m);G.appendChild(this.gl.m)}il.prototype=new c4;
il.prototype.UW=function(s,m){var l=s!=null&&!s.G[s.N[0]].rect.Xh();if(!l)alert("The layer is empty.");
return l};il.prototype.u1=function(){return new fz(0,0)};il.prototype.hl=function(){return!0};il.prototype.jm=function(s,m){this.h_=s;
this.Cm=m;m=m-12-33;if(s<900){this.ajj.setAttribute("style","display:block; text-align:right;");m-=29}else{this.ajj.setAttribute("style","position:absolute; right:0px")}var l=this.fV.rect;
if(l){var x=il.aaK(s,m,l.e,l.l);if(x==0){s=Math.floor(s/2);n.RY(this.zq,"flexrow")}else{m=Math.floor(m/2);
n.po(this.zq,"flexrow")}this.kb.jm(s,m);this.gl.jm(s,m)}};il.aaK=function(s,m,l,x){var a=s/2,P=m/2,o=Math.min(a/l,m/x),G=Math.min(s/l,P/x);
return o>G?0:1};il.prototype.U=function(){c4.prototype.U.call(this);this.Td.U();this.zC.U();this.aH.U();
this.pA.U();this.BC.U();this.acP.U();this.ask.U()};il.prototype.ah_=function(s){window.open("//www.photopea.com/"+["learn/refine-edge","tuts/magic-cut-remove-image-background-online"][this.HY],"_blank")};
il.prototype.L8=function(s,m){this.pX=s;if(m==gN.Fe||m==gN.ki){this.Td.El(s.If);this.Td.f(fd.Sw(),s.If.NG,s.If.vw)}};
il.prototype.NZ=function(s,m,l,x){var a=this.Vg._();if(x==null){this.kb.NZ(ef.ag2(a-3));return}this.sG=x;
var P=r.fZ.uY(this.Td._(),x);if(P!=null){this.Td.f(P);this.jQ()}else if(x.$(dV.bt)&&x.$(dV.$j)){var o=this.Lj,G=0;
if(x.$(dV.Ht)){if(this.q3+1<o.length)G=1}else if(this.q3>0)G=-1;if(G!=0){this.q3+=G;var _=this.q3,j=this.fV;
if(G==1)L.yx(o[_][2],o[_][0],j.CU,j.rect);else L.yx(o[_+1][1],o[_+1][0],j.CU,j.rect);j.xd=j.rect;this.Pf()}}else if(a<3)this.kb.NZ(x)};
il.prototype.Jy=function(s){var m=this.fV,l=this.Lj,x=L.B(s.k()*4);L.yx(m.EG,m.rect,x,s);m.EG=null;var a=L.B(s.k()*4);
L.yx(m.CU,m.rect,a,s);this.q3++;l[this.q3]=[s.clone(),x,a];while(l.length>this.q3+1)l.pop();while(l.length>50){l=l.slice(1);
this.q3--}};il.prototype.jQ=function(){var s=this.pX,m=br.E$(this.Td._(),s.If.NG,this.kb.Ax().O);this.kb.ho(m)};
il.prototype._N=function(s){var m=this.pX,l=this.fV,x=this.sG,a=this.Td._(),P=this.kb.QH(),o=[16777215,8421504,0][this.Vg._()];
this.kW=new br(a,m.If.NG,m.If.vw,{Dv:1,hJ:!0},o,m.Pi,l.rect);l.EG=l.CU.slice(0);if(x!=null&&x.$(dV.Ht)&&this.Gc){this.kW.moveTo(this.Gc.x,this.Gc.y);
this.kW.lineTo(P.x,P.y)}else this.kW.moveTo(P.x,P.y);this.afs()};il.prototype.xi=function(s){var m=this.fV,l=this.kb.QH();
this.kW.lineTo(l.x,l.y);this.afs()};il.prototype.tU=function(s){this.Gc=this.kb.QH();this.Jy(this.kW.pJ());
this.Pf()};il.prototype.afs=function(){var s=this.fV,m=this.kW,l=m.cj();if(l.Xh())return;s.xd=l;L.a.$P("norm",m.oo(),m.E2(),s.CU,s.rect,l,1);
this.asg()};il.prototype.kL=function(s){var m=this.fV;m.EG=m.CU.slice(0);m.xd=m.rect;L.MP(m.CU,[4278190080,4292730333][this.HY]);
this.Jy(m.rect);this.Pf()};il.prototype.av=function(s,m){this.qu=s;var l=s.G[s.N[0]],x=l.rect.clone(),a=x.e,P=x.l;
this.zC.f(this.HY==0?3:a*P<3e6?3:0);this.Vg.f(s.q==null?0:1);this.zC.Hv();if(this.HY==0&&s.q!=null||this.HY==1)this.zC.o5();
var o=this.HY,G=L.B(x.k()),_=new Float32Array(x.k());if(o==0&&s.q){L.kV(s.q.channel,s.q.rect,G,x);var j=L.B(x.k());
for(var U=0;U<P;U++)for(var S=0;S<a;S++){var C=U*a+S,X=G[C];if(S>0&&G[C-1]!=X||S<a-1&&G[C+1]!=X||U>0&&G[C-a]!=X||U<P-1&&G[C+a]!=X)j[C]=255}L.style.xh(j,_,a,P)}else _.fill(1e9);
x.x=x.y=0;this.fV={rect:x,du:l.buffer,MW:G,Zp:_,my:L.B(x.k()*4),tb:L.B(x.k()*4),CU:L.B(x.k()*4),EG:null,ha:null,xd:x,asO:{}};
if(o==0)this.asI();else{this.fV.asO=r.JJ.WC(s);var c=this.fV.CU;L.MP(c,4287137928);var y=L.ni.getSelection(l.buffer,a,P),O=Math.round(a/60),p=Math.round(.7*P);
for(var U=0;U<P;U++)for(var S=0;S<a;S++){var D=(U*a+S)*4,f=y[D>>>2];f=f>128?255:128;if(U<O||U<p&&(S<O||S>a-1-O))f=0;
c[D]=c[D+1]=c[D+2]=f}this.Pf()}this.Lj=[1];this.q3=0;var T=this.Td._();T.Brsh.v.Dmtr.v.val=Math.round(x.e/(o==0?10:20));
this.Td.f(T);this.jQ();this.jm(this.h_,this.Cm);this.kb.zG()};il.prototype.asI=function(){var s=this.fV,m=s.rect.k(),l=this.zC._(),x=s.MW.slice(0);
for(var C=0;C<m;C++)if(s.Zp[C]<l)x[C]=128;L.MP(s.CU,4294967295);L._Y(x,s.CU,0);L._Y(x,s.CU,1);L._Y(x,s.CU,2);
s.xd=s.rect;this.Pf()};il.prototype.Pf=function(){var s=this.fV,a,G,_=0,j=0,U=0;this.asg();var m=s.rect,l=m.e,x=m.l,P=L.B(m.k()),o=s.du;
L.hy(s.CU,P,0);for(var C=0;C<P.length;C++){if(o[(C<<2)+3]!=255)continue;var S=P[C];if(S==0)_++;else if(S==255)j++;
else U++}if(_*j*U!=0){if(this.HY==0)G=L.dI.dI(m,o,P);else{var X=this.Vg._();for(var c=1;c<x;c++)for(var y=1;
y<l;y++){var C=c*l+y,O=P[C],p=P[C-1];if(O==0&&p==255||O==255&&p==0){a="The Red and Green should never touch! Erase it with Grey.";
break}}var D=Date.now(),f=this.fV.asO;L.qv(P,f.rE);r.JJ.ty(f,!0);var T=Math.ceil(this.zC._()/2);if(T==0){G=o.slice(0);
L._Y(f.q,G,3)}else{var I=f.q.slice(0),H=f.q.slice(0);for(var b=0;b<T;b++){for(var c=1;c<x-1;c++)for(var y=1;
y<l-1;y++){var C=c*m.e+y,R=I[C];if(I[C-l]!=R||I[C-1]!=R||I[C+1]!=R||I[C+l]!=R)H[C]=128;else H[C]=R}var W=I;
I=H;H=W}G=L.dI.dI(m,o,I,20,!1)}}}else{G=o.slice(0);L._Y(P,G,3)}for(var C=3;C<G.length;C+=4)if(G[C]>o[C])G[C]=o[C];
if(m.yb(s.rect))s.ha=G;else L.yx(G,m,s.ha,s.rect);this.a1A();if(a)alert(a,4e3)};il.prototype.asg=function(s){var m=this.fV,l=m.xd;
L.yx(m.du,m.rect,m.my,m.rect,l,!0);var x=m.CU;if(this.HY==1){var a=new Uint32Array(256);a[0]=4278190335;
a[255]=4278255360;var P=m.rect.k();x=x.slice(0);var o=new Uint32Array(x.buffer);for(var C=0;C<P;C+=2){o[C]=a[o[C]&255];
o[C+1]=a[o[C+1]&255]}}L.a.$P("norm",x,m.rect,m.my,m.rect,l,.3);this.kb.f([{Sb:m.rect,data:m.my.buffer}])};
il.prototype.a1A=function(s){var m=this.fV;L.MP(m.tb,[0,4294967295,4278190080][this.pA._()]);L.a.$P("norm",m.ha,m.rect,m.tb,m.rect,m.rect,1);
this.gl.f([{Sb:m.rect,data:m.tb.buffer}])};il.prototype.Rj=function(s){var m=this.qu,l=this.fV,x=this.BC._(),a=m.G[m.N[0]],P=new h9(v.E.u,!0);
P.zZ=!0;var o=a.rect.clone();if(x==0&&a.p$()||x!=0&&!a.p$()){P.c=r.ay;P.data={d:t.Fm,i:m.N[0]};this.Y(P)}if(m.q!=null){P.c=r.r$;
P.data={d:"fromAction",qb:r.bJ.d9()};this.Y(P)}if(x==0){var G=m.G.slice(0),_=m.d2();_.qW(a.getName());
G.splice(m.N[0]+1,0,_);_.rect=o;_.buffer=l.ha;_.F();P.c=r.ay;P.data={d:t.Jb,vz:G,Q$:[m.N[0]+1],YH:[7,11]};
this.Y(P)}if(x==1){var j=a.SE();P.c=r.ay;P.data={d:t.Da,ajv:!0};this.Y(P);var U=a.SE();U.channel=L.B(o.k());
U.rect=o;U.color=0;U.A$=!0;L.hy(l.ha,U.channel,3);if(j){var S=U.fH(j);U.rect=S.rect;U.channel=S.channel;
U.color=S.color}U.zr();a.sN()}if(x==2){var X={rect:o,channel:L.B(o.k())};L.hy(l.ha,X.channel,3);P.c=r.r$;
P.data={d:"setsel",q:X,YH:this.bi};this.Y(P)}this.close()};function f6(){c4.call(this,[1,13],"locstor");
this.bR=null;this.CK=[];var s=this.body,m=n.L("p");m.textContent="These files are loaded every time you start Photopea.";
s.appendChild(m);this.a13=0;this.wQ=n.L("span");s.appendChild(this.wQ);this.wQ.setAttribute("style","display:inline-block; width:12em; font-weight:bold;");
var l=n.L("span","form");s.appendChild(l);this.yC=new hj([5,4],!1,null,!0);this.yC.h("click",this.an_,this);
l.appendChild(this.yC.m);this.ahd=new hj("Get all as ZIP",!1,null,!0);this.ahd.h("click",this.rT,this);
l.appendChild(this.ahd.m);this.zK=new g7(!0);this.zK.parent=this;this.zK.JV(1);s.appendChild(this.zK.m);
this.zK.m.setAttribute("style","width: 40em; height: 25em")}f6.prototype=new c4;f6.prototype.U=function(){c4.prototype.U.call(this);
this.wQ.textContent=iX.get([13,2])+": "+hw.Ln(this.a13);this.yC.U()};f6.prototype.L8=function(s,m){this.bR=s;
if(m==gN._t)this.av()};f6.prototype.av=function(s,m){var l=this.bR.iF.OG,_=0;this.CK=[];for(var x in l)this.CK.push(x);
this.CK.sort(function(U,S){U=U.split(".");S=S.split(".");return U[1]==S[1]?U[0]<S[0]?-1:1:U[1]<S[1]?-1:1});
var a=Math.floor(100*n.W()),P=Math.floor(16*n.W()),o=[],G=[];for(var C=0;C<this.CK.length;C++){var x=this.CK[C],j=f6.jj(x,l[x],a,P);
o.push(j);G.push(x);_+=l[x].byteLength}this.zK.Hm(o,G,a,P);this.a13=_;this.U()};f6.prototype.an_=function(s){var m=this.zK._();
if(m.length==0){alert("Select a file first.");return}this.zK.f([]);var l=this.bR.iF.OG;for(var C=0;C<m.length;
C++)delete l[this.CK[m[C]]];var x=new h9(v.E.g,!0);x.data={d:v.J.xw,AV:gN._t};this.Y(x)};f6.prototype.rT=function(s){var m=this.bR.iF.OG,l={};
for(var x in m)l[x]=new Uint8Array(m[x]);var a=UZIP.encode(l);d4.save(a,"resources.zip")};f6.jj=function(s,m,l,x){var a=n.L("canvas"),G=0;
a.width=l;a.height=x;var P=a.getContext("2d"),o=s.split(".").pop().toLowerCase();for(var C=0;C<o.length;
C++)G+=o.charCodeAt(C)*613<<8*C;P.fillStyle="#"+L.eZ(G&16777215);P.fillRect(0,0,20,x);var _=Math.floor(14*n.W());
P.fillStyle="#000000";P.font="bold "+_+"px sans-serif";var j=(x-_)/2,U=hw.Ln(m.byteLength),S=P.measureText(U);
P.fillText(U,l-12-S.width,x-j);return a.toDataURL()};function dN(){c4.call(this,"Preset Manager","pmanager");
this.bR=null;this.H9=new ge([12,44],[[9,3],[12,37],[12,62],[11,6],[12,77],[12,21]]);this.H9.h(v.E.p,this.av,this);
this.body.appendChild(this.H9.m);var s=n.L("div","flexrow");this.body.appendChild(s);var m=this.a6e=n.L("div");
s.appendChild(m);var l=n.L("div","form");s.appendChild(l);l.setAttribute("style","width:140px; margin-left:12px");
this.agg=[gN.Fe,gN.ir,gN._L,gN.uZ,gN.t3,gN.eV];this.R9=[new jJ,new du,new ez,new a0,new c1,new j0];for(var C=0;
C<this.R9.length;C++)this.R9[C].parent=this;this.re=[];for(var C=0;C<4;C++){var x=new hj("Hello",!0,null,!0);
x.h("click",this.Se,this);this.re.push(x);l.appendChild(x.m)}this.av()}dN.prototype=new c4;dN.prototype.sO=function(s){return s==dV.vR||s==dV.H8};
dN.prototype.Se=function(s){var C=this.re.indexOf(s.target);this.R9[this.H9._()].Pk(C)};dN.prototype.U=function(){c4.prototype.U.call(this);
this.H9.U();for(var C=0;C<this.R9.length;C++)this.R9[C].U();var s=this.re,m=this.H9._(),l=gN.FW[this.agg[m]],x=l[0].toUpperCase();
s[0].tD([[23,6],"."+x]);s[1].tD(["VAR0 ."+x,[1,8]]);s[2].tD([6,37]);s[3].tD([5,4])};dN.prototype.L8=function(s,m){this.bR=s;
this.av()};dN.prototype.av=function(s,m){if(!n.wH(this.m))return;this.U();n.em(this.a6e);this.a6e.appendChild(this.R9[this.H9._()].M2);
var l=this.R9,x=this.bR;if(x==null)return;l[0].El(x.If);l[1].Yp(x.zU,x.Pi);l[1].El(x.eb);l[2].El(x.yZ);
l[3].El([x.vN,x.yZ]);l[4].El(x.Pb);l[5].El(x.Ef)};function ct(s,m,l){c4.call(this,m,"cwindow");this.ajJ=new fz(l[0],l[1]-33);
this.WL=n.L("div","form");this.WL.setAttribute("style","width:"+(l[2]-l[0])+"px; height:"+(l[3]-l[1])+"px");
this.body.appendChild(this.WL)}ct.prototype=new c4;ct.prototype.u1=function(s,m){return this.ajJ.clone()};
function dK(){c4.call(this,["PSD VAR0",[25,0]],"templates");this.aew=null;this.U0=null;this.xC=0;this.U7=null;
this.body.setAttribute("style","padding:0");this.u$=new hj("Add Templates",null,null,!0);this.body.appendChild(this.u$.m);
this.u$.h("click",this.a33,this);this.u$.m.setAttribute("style","position:absolute; margin-top: -28px; margin-left:150px");
this.a7c=new hj("New Template",null,null,!0);this.a7c.h("click",this.abS,this);this.arC=new hj("Upload Current Document as a Template",null,null,!0);
this.arC.h("click",this.arJ,this);this.lH=n.L("iframe","scrollable");this.lH.setAttribute("style","border:none; margin:0; padding:0;");
this.W4=n.L("div","form scrollable padded");this.da=n.L("div","form scrollable padded label12");var s=[],m=dK.ta;
this.Q2=[];for(var l in m){var x=parseInt(l.slice(1)),a=x%10==0?"":"\u2800\u2800- ";s.push(a+m[l]);this.Q2.push(x)}this.hE=[new ep("Name",null,30),new ep("Description",null,30,4),new ep("File"," www.Photopea.com#i...",17),new ep("Thumbnail URL","* Use Imgur.com etc., ratio 3:2",17),new ge("Category",s),new hj("<< Back",null,null,!0),new hj("Save",null,null,!0),new jG("Publish your PSD: File - Publish Online - PSD. Use that URL as \"File\"."),new jG("Get a Thumbnail URL: File - Publish Online - JPG. At Imgur.com, right-click your image and choose \"Copy Image Address\".")];
for(var C=0;C<this.hE.length;C++){var P=this.hE[C];this.da.appendChild(P.m);P.parent=this;if(C!=5)n.Z0(this.da);
if(P instanceof hj)P.h("click",this.a28,this)}this.body.appendChild(this.lH)}dK.prototype=new c4;dK.prototype.u1=function(s,m){return new fz(0,0)};
dK.prototype.jm=function(s,m){this.h_=s;this.Cm=m;this.zx=null;m=m-4;s=s;var l=this.W4;l.style.width=s-12+"px";
l.style.height=m-12+"px";var l=this.da;l.style.width=s-12+"px";l.style.height=m-12+"px";var l=this.lH;
l.style.width=s+"px";l.style.height=m+"px";this.Cv()};dK.prototype.U=function(){c4.prototype.U.call(this)};
dK.prototype.av=function(s,m,l,x){this.zx=s;this.a33(null,!1)};dK.prototype.a33=function(s,m){var l=m!=null?m:n.wH(this.lH);
if(l){if(!fr.ao()){alert("You need to log in first!");return}var x=fr.aV();this.U0=x.tpl?x.tpl.list:[];
this.Cv()}else{this.lH.setAttribute("src","");this.lH.setAttribute("src","plugins/tpls")}this.body.removeChild(this.body.children[this.body.children.length-1]);
this.body.appendChild(l?this.W4:this.lH);this.u$.tD(l?"All Templates":"Add Templates")};dK.prototype.Cv=function(){var s=this.U0,a=450;
if(s==null)return;var m=this.W4;n.em(m);var l=n.L("h1");l.textContent="Share your PSD templates with the world!";
var x=n.L("h3");x.textContent="Users won't be able to download a PSD, they can only export a JPG or a PNG after editing.";
m.appendChild(l);m.appendChild(x);m.appendChild(this.a7c.m);m.appendChild(this.arC.m);n.Z0(m);a=(this.h_-20)/Math.max(1,Math.floor(this.h_/a))-42;
var P="display:inline-block; width:"+a+"px; height:140px; overflow:hidden; background-color:rgba(255,255,255,0.2); margin:10px 20px 0px 0; line-height:1.5em; padding:10px;";
for(var C=s.length-1;C>=0;C--){var o=s[C],G=n.L("div");m.appendChild(G);G.setAttribute("style",P);var _=n.L("img");
G.appendChild(_);_.setAttribute("src",o.thmb);_.setAttribute("style","float:left; height:10em; width:10em; object-fit: contain; margin-right: 1em; margin-bottom:1em;");
var j=n.L("h3");G.appendChild(j);j.textContent=o.name;j.setAttribute("style","margin:0 0 10px 0");var U=n.L("p");
G.appendChild(U);U.textContent=o.desc;U.setAttribute("style","height:76px; overflow:hidden; margin-bottom: 6px;");
for(var S=0;S<2;S++){var X=new hj(S==0?"Edit":"Delete",null,null,!0);X.ahO=C;X.vy=S==0;X.h("click",this.a85,this);
G.appendChild(X.m)}}};dK.prototype.arJ=function(s){if(this.zx==null){alert("No document opened.");return}var m=confirm("Your document will be uploaded to Photopea.com and a preview to Imgur.com. Proceed?");
if(!m)return;var l=new h9(v.E.g,!0);l.data={d:v.J.RP,pG:"psd",NR:this.a8x.bind(this)};this.Y(l)};dK.prototype.a8x=function(s){this.aew=s;
var m=new h9(v.E.g,!0);m.data={d:v.J.RP,pG:"jpg",NR:this.a1X.bind(this)};this.Y(m)};dK.prototype.a1X=function(s){this.U7={catg:0,desc:"",file:this.aew.split("#i").pop(),name:this.zx.name.split(".")[0],thmb:s,utme:""};
this.vy()};dK.prototype.abS=function(s){this.U7={catg:0,desc:"",file:"",name:"",thmb:"",utme:""};this.vy()};
dK.prototype.a85=function(s){this.xC=s.target.ahO;if(!s.target.vy){this.U0.splice(this.xC,1);this.rT();
this.Cv();return}this.vy()};dK.prototype.vy=function(){this.body.removeChild(this.W4);this.body.appendChild(this.da);
var s=["name","desc","file","thmb"],m=this.U7?this.U7:this.U0[this.xC];for(var C=0;C<4;C++){var l=m[s[C]];
if(l!=""&&C==2)l="https://photopea.com#i"+l;this.hE[C].f(l)}this.hE[4].f(this.Q2.indexOf(m.catg))};dK.prototype.a28=function(s){if(this.hE.indexOf(s.target)==6){var m=this.hE[3]._().trim(),l=m.startsWith("http")&&(m.endsWith(".jpeg")||m.endsWith(".jpg")||m.endsWith(".png"));
if(!l){alert("Thumbnail URL is incorrect.");return}var x=new XMLHttpRequest,a="mirror.php?url="+encodeURIComponent(m);
x.open("GET",a);x.responseType="arraybuffer";x.onload=this.abE.bind(this);x.send()}else this.kL()};dK.prototype.abE=function(s){var m=s.target.response,l=m.byteLength;
if(l>2e5){alert("Thumbnail is too large ("+hw.Ln(l)+"). Make it under 200 kB.");return}var x=["name","desc","file","thmb"],a=this.U7?this.U7:this.U0[this.xC];
for(var C=0;C<4;C++){var P=this.hE[C]._().trim();if(P.length==0){alert("One of values is empty.");return}if(C==2){var o=P.split("#i");
if(o.length!=2||o[1].length!=8){alert("File ID is incorrect.");return}P=o.pop()}a[x[C]]=P}a.catg=this.Q2[this.hE[4]._()];
if(a.utme.length==0)a.utme=""+Math.round(Date.now()/1e3);if(this.U7)this.U0.push(this.U7);this.rT();
this.kL()};dK.prototype.kL=function(){this.U7=null;this.body.removeChild(this.da);this.body.appendChild(this.W4);
this.Cv()};dK.prototype.rT=function(){var s=fr.aV();if(this.U0.length==0)delete s.tpl;else s.tpl={list:JSON.parse(JSON.stringify(this.U0))};
fr.ze(s,function(){alert("Saved.")})};dK.ta={c0:"Mockups",c1:"Mobile & Web",c2:"Print",c3:"Product",c10:"Social Media",c11:"Youtube",c12:"Instagram",c13:"Facebook",c14:"Memes",c15:"Signs",c20:"Print",c21:"Cards",c22:"Invitations",c23:"Brochures",c30:"Mobile",c40:"Websites",c50:"Presentations",c60:"Other"};
function dU(){c4.call(this,"Make Selection","makesel");this.bR=null;var s=n.L("div","form");this.body.appendChild(s);
this.SH=new bj([12,25,1]);this.SH.f(!0);s.appendChild(this.SH.m);n.Z0(s);this.cd=new cl(!0);s.appendChild(this.cd.m);
this.aH=n.VH(this,this.body)}dU.prototype=new c4;dU.prototype.U=function(){c4.prototype.U.call(this);
this.cd.U();this.SH.U();this.aH.U()};dU.prototype.Rj=function(s){var m=new h9(v.E.u,!0);m.c=r.r$;m.data={d:"frompath",KA:[null,0,this.cd._(),!this.SH._()]};
this.close();this.Y(m)};function de(){c4.call(this,["VAR0 PSD/PSB",[1,2]],"savepsb");this.zx=null;this.Cw=null;
this.G_=null;var s=this.a42=n.L("div","form");s.setAttribute("style","width:20em");this.body.appendChild(s);
this.qk=new co([12,50],["PSD","PSB"]);this.qk.h(v.E.p,this.ga,this);s.appendChild(this.qk.m);n.ti(s);
var m=new jG("Minify the file");s.appendChild(m.m);n.Z0(s);var l=["Blank preview image","ZIP for pixel data","Remove Smart Object pixels","Put the file into ZIP"];
this.Ow=[];for(var C=0;C<l.length;C++){var x=new bj(l[C]);this.Ow.push(x);s.appendChild(x.m);x.h(v.E.p,this.ga,this)}n.ti(s);
this.HI=new jG("aa.psd");this.KI=new jG("10 kB");s.appendChild(this.KI.m);this.am4=new jG("1000 B");
s.appendChild(this.am4.m);this.aH=new hj([1,2],!0,null,!0);this.aH.h("click",this.Rj,this);s.appendChild(this.aH.m);
this.qK=new hj(["VAR0 (Google Drive)",[1,2]],!0,null,!0);this.qK.h("click",this.Rj,this);s.appendChild(this.qK.m);
this.h("closebtn",this.tx,this)}de.prototype=new c4;de.prototype.av=function(s,m,l,x){var a=n.wH(this.qK.m),P=s.H4!=null&&s.H4.yg=="psd";
if(P&&!a)this.a42.appendChild(this.qK.m);if(!P&&a)this.a42.removeChild(this.qK.m);for(var C=0;C<this.Ow.length;
C++)this.Ow[C].f(!1);this.zx=s;this.ga()};de.prototype.Rj=function(s){if(s.target==this.aH)d4.save(this.Cw,this.G_);
else{if(this.Ow[3]._()){alert("You should not save a ZIP as a PSD to Google Drive.");return}aG.a4s(this.zx,this.Cw)}};
de.prototype.tx=function(){this.zx=null;this.Cw=null};de.prototype.ga=function(){var s=this.zx,m=[!1,!1,!1,!1];
for(var C=0;C<3;C++)m[C]=this.Ow[C]._();var l=this.Ow[3]._(),x=m[3]=this.qk._()==1,a=s.name.slice(0,s.name.length-3),P=this.Cw=iO.ln("PSD").yd(s,0,0,m),cE=this.G_=a+"ps"+(x?"b":"d");
if(l){var o={};o[cE]=new Uint8Array(P);P=this.Cw=UZIP.encode(o);cE=this.G_=a+"zip"}this.HI.f(cE);this.KI.f(hw.Ln(P.byteLength));
this.KI.m.style["font-size"]="2em";this.am4.f(" \u2001 "+P.byteLength+" B");this.aH.tD(iX.get([1,2])+" \""+cE+"\"")};
de.prototype.U=function(){c4.prototype.U.call(this);this.aH.U();this.qK.U()};function g1(s,m,l,x){fR.call(this);
this.name=s;this.aip=l;this.tf=x;this.NI=n.L("div","");this.NI.setAttribute("draggable","true");this.IM=n.L("div","pbody");
this.GZ=new hj("",!1,"");this.GZ.parent=this;this.a3v=n.L("span","cross");this.oa=n.L("span","label");
var a=this.aqY.bind(this);this.NI.addEventListener("mousedown",this.aqB.bind(this),!1);this.NI.addEventListener("contextmenu",a,!1);
this.GZ.m.addEventListener("contextmenu",a,!1);this.a3v.addEventListener("mousedown",this.l$.bind(this),!1);
this.NI.appendChild(this.oa);if(m)this.NI.appendChild(this.a3v);this.o2=!1;this.Kr=new aC([{name:[1,12,0]}]);
this.Kr.h("select",this.l$,this);this.oa.textContent=s}g1.prototype=new fR;g1.prototype.mI=function(){return null};
g1.prototype.U=function(){var s=iX.get(this.name),m=this.h_==0?22:Math.round(2+this.h_/50),l=s.length>m;
this.oa.textContent=l?s.slice(0,m-2):s;if(l)for(var x=0;x<2;x++){var a=n.L("span");a.textContent=s.charAt(m-2+x);
a.setAttribute("style","opacity:"+(.6-x*.4));this.oa.appendChild(a)}var P=s.split(" "),o=P.length==2?P[0].substring(0,2)+P[1][0]:s.substring(0,3);
if(o.charCodeAt(0)>=11776)o=o.substring(0,1);var G=this.aip;if(G==null)this.GZ.tD(o,s);else{var _;if(G.startsWith("---"))_="<img src=\""+PIMG[G.slice(3)]+"\" class=\"autoscale gsicon\" style=\"margin:2px 4px;\"/>";
else if(G.indexOf("\"")==-1)_="<img src=\""+G+"\" alt=\""+s+"\" height=\"18\" width=\"18\" loading=\"lazy\" style=\"margin:1px 3px;\" />";
this.GZ.tD(_,s)}};g1.prototype.enable=function(){this.IM.setAttribute("class","pbody")};g1.prototype.disable=function(){this.IM.setAttribute("class","pbody disabled")};
g1.prototype.L8=function(s,m){};g1.prototype.av=function(s,m,l){};g1.prototype.to=function(s){};g1.prototype.jm=function(s,m){};
g1.prototype.DO=function(s){this.name=s;this.U()};g1.prototype.tu=function(){};g1.prototype.aqB=function(s){if(s.button==0)this.Y(new h9("select",!1))};
g1.prototype.aqY=function(s){n.uj(s);if(this.tf!=null&&isNaN(this.tf))return;var m=n.lX(s,document.body),l=this.Kr;
l.update(null);l.U();l.parent=this;var x=new h9(v.E.g,!0);x.data={d:v.J.Jm,UK:l,x:m.x+1,y:m.y+1};this.Y(x)};
g1.prototype.RT=function(){this.l$({})};g1.prototype.l$=function(s){if(s.stopPropagation)s.stopPropagation();
if(this.tf!=null&&!isNaN(this.tf)){var m=new h9(v.E.g,!0);m.data={d:v.J.QV,UK:this.Kr};this.Y(m);m.data={d:v.J.xw,AV:gN.y1,Z:parseFloat(this.tf),s5:"del"};
this.Y(m)}else if(this.a3c())this.Y(new h9(v.E.JP,!1))};g1.prototype.a3c=function(s){return!0};g1.prototype.s1=function(s,m,l,x,a){};
g1.prototype.zk=function(s,m,l,x,a){};g1.prototype.I6=function(s,m,l,x,a){};g1.gr=function(s,m){if(s.childElementCount!=0)return;
var l=s.textContent;this.Z7=this.aeD.bind(this);this.a46=this.a6L.bind(this);this.vo=m;this.ob=s;this.aic=l;
var x=n.L("input","");x.setAttribute("type","text");x.setAttribute("size","10");x.setAttribute("value",l);
n.em(s);s.appendChild(x);x.select();x.focus();n.O_(s);s.addEventListener("keyup",this.Z7,!1);document.body.addEventListener("mousedown",this.a46,!1)};
g1.gr.prototype.aeD=function(s){var m=dV.Ij,l=m(s.code,dV.z3);if(m(s.code,dV.Pt)||l)this.a0T(l)};g1.gr.prototype.a6L=function(s){var m=s.target;
if(m.tagName&&m.tagName.toLowerCase()=="input")return;this.a0T(!0)};g1.gr.prototype.a0T=function(s){var m=this.ob,l=m.firstChild.value;
m.removeEventListener("keyup",this.Z7);document.body.removeEventListener("mousedown",this.a46);if(s&&l!=""){this.vo(l)}else{n.em(m);
m.textContent=this.aic}};g1.E4={rs:"0",atj:"1",ay:"2",aiu:"3",anX:"4",VP:"5",CSS:"6",Fe:"7",a29:"8",a7t:"9",a6n:"10",ai8:"11",ae3:"12",WV:"13",jo:"14",ap6:"15",a64:"16",JK:"17",a1L:"18",ao1:"19",a9N:"20"};
function i$(){g1.call(this,[9,9],!1,"---panels/actions",g1.E4.ai8);this.bR=null;this.VX=[0,0];this.ys=n.L("div","padded scrollable");
this.ys.setAttribute("style","width:260px; height:260px");this.IM.appendChild(this.ys);this.h(v.E.p,this.ym,this);
this.hS=n.L("div","lpfoot");this.IM.appendChild(this.hS);this.R9=[];var s="<svg class=\"gsicon\" viewBox=\"0 0 14 18\" width=\"14\" height=\"18\" fill=\"black\">",m="</svg>",l=s+"<path d=\"M14,6 L10,6 L10,0 L4,0 L4,6 L0,6 L7,13 L14,6 L14,6 Z M0,14 L0,16 L14,16 L14,14 Z\" />"+m,x=s+"<path d=\"M0,2 L14,9 L0,16 Z\" />"+m;
this.anQ=s+"<circle cx=\"7\" cy=\"9\" r=\"6\" />"+m;this.ah$=s+"<path d=\"M2,4 L12,4 L12,14 L2,14 Z\" />"+m;
var a=[this.anQ,x,"lrs/folder","lrs/newlayer","lrs/bin",l],P=[[15,8,0],[5,8],[15,8,1],[15,8,2],[5,4],[1,2]];
for(var C=0;C<a.length;C++){var o=a[C];if(1<C&&C!=a.length-1)o="<img src=\""+PIMG[a[C]]+"\" class=\"gsicon\" />";
var G=new hj(o,!1,P[C]);G.h("click",this.acr,this);this.hS.appendChild(G.m);this.R9.push(G)}}i$.prototype=new g1("");
i$.prototype.U=function(){g1.prototype.U.call(this);for(var C=0;C<this.R9.length;C++)this.R9[C].U()};
i$.prototype.acr=function(s){var C=this.R9.indexOf(s.currentTarget),m=this.VX,l=this.bR,x=l.r2;if(C==0){var a,P=l.b$;
if(x.length==0){alert("Create an Action Set first.");return}if(m.length<2){alert("Select a target action first.");
return}if(P==null){a=this.ah$;P=this.VX}else{a=this.anQ;P=null}this.R9[0].tD(a);l.b$=P}else if(C==1)this.agC();
else if(C==2||C==3){var o={YH:"Action Set "+x.length,tH:[],exp:!0};if(C==2||x.length==0){m=[x.length];
x.push(o)}if(C==3){var G=x[m[0]].tH;m=[m[0],G.length];G.push({YH:"Action "+G.length,color:0,tH:[],a6K:!1,shift:!1,exp:!0,jV:G.length})}this.VX=m;
this.ZJ()}else if(C==4){var _;if(m.length==1)_=x;else if(m.length==2)_=x[m[0]].tH;else _=x[m[0]].tH[m[1]].tH;
var j=m.length-1;_.splice(m[j],1);if(_.length==0)m.pop();else while(m[j]>=_.length)m[j]--;if(m.length==0)m.push(0);
this.ZJ()}else if(C==5){if(x.length==0){alert("No Actions Present.");return}var U=new h9(v.E.g,!0);U.data={d:v.J.Th,a0y:gN.u,AD:m[0]};
this.Y(U)}};i$.prototype.ym=function(s){var m=this.bR.r2,l=s.data.d,x=s.data.Dy;if(l=="sel")this.VX=x;
if(l=="fold"){if(x.length==1)m[x[0]].exp=!m[x[0]].exp;else m[x[0]].tH[x[1]].exp=!m[x[0]].tH[x[1]].exp}if(l=="enab"){var a=m[x[0]].tH[x[1]].tH[x[2]];
a.P=!a.P}if(l=="nchange"){if(x.length==1)m[x[0]].YH=s.data.Q_;else m[x[0]].tH[x[1]].YH=s.data.Q_}this.ZJ()};
i$.prototype.L8=function(s,m){this.bR=s;if(m==gN.u||m==gN.ki)this.ZJ()};i$.prototype.ZJ=function(){if(this.bR==null)return;
n.em(this.ys);var s=this.bR.r2;if(s.length==0)return;var m=JSON.stringify(this.VX);for(var C=0;C<s.length;
C++){var l=s[C],x=new i$.xr([C],m,l.exp,l.YH.split("=").pop());x.parent=this;this.ys.appendChild(x.m);
if(!l.exp)continue;for(var a=0;a<l.tH.length;a++){var P=l.tH[a],x=new i$.xr([C,a],m,P.exp,P.YH.split("=").pop());
x.parent=this;this.ys.appendChild(x.m);if(!P.exp)continue;for(var o=0;o<P.tH.length;o++){var G=P.tH[o],x=new i$.xr([C,a,o],m,null,iX.get(e6.abX(G)),G.P);
x.parent=this;this.ys.appendChild(x.m)}}}};i$.prototype.agC=function(){var s=this.bR.r2,m=this.VX;if(s.length==0){alert("No Actions Present");
return}if(m.length==1){alert("Select an Action first");return}if(this.bR.b$!=null){alert("You can not apply actions while recording actions");
return}if(m.length==1)m.push(0);var l=s[m[0]],x=l.tH[m[1]],a=new h9(v.E.g,!0);a.data={d:v.J.Lh,KA:[x.YH,l.YH]};
this.Y(a)};i$.xr=function(s,m,l,x,a){fR.call(this);this.Dy=s;var P=this.Dy.length-1;this.m=n.L("div","layeritem"+(JSON.stringify(s)==m?" selected":""));
this.lm=n.L("div","head");this.m.appendChild(this.lm);this.lm.setAttribute("style","height:24px");this.Mn=n.L("div","headL");
this.lm.appendChild(this.Mn);if(P!=0){var o=n.L("div");o.style.width=P*20+"px";this.Mn.appendChild(o)}if(l!=null){var G=this.akS=n.L("div",l?"open":"closed");
this.Mn.appendChild(G)}else{var _=this.aaY=n.L("div","cmark");_.setAttribute("style","background-size:12px 12px; opacity:"+(a?1:.3));
this.Mn.appendChild(_)}if(P==0){var j=n.L("div","folder");this.Mn.appendChild(j)}var U=this.oa=n.L("div","label");
U.textContent=x;this.Mn.appendChild(U);this.m.addEventListener("mouseup",this.zL.bind(this),!1)};i$.xr.prototype=new fR;
i$.xr.prototype.zL=function(s){if(s.detail==1&&s.target.tagName.toLowerCase()!="input"){var m="sel";
if(s.target==this.akS)m="fold";if(s.target==this.aaY)m="enab";var l=new h9(v.E.p,!0);l.data={d:m,Dy:this.Dy};
this.Y(l)}else if(this.Dy.length<3)var x=new g1.gr(this.oa,this.vo.bind(this))};i$.xr.prototype.vo=function(s){var m=new h9(v.E.p,!0);
m.data={d:"nchange",Q_:s,Dy:this.Dy};this.Y(m)};function ix(){g1.call(this,[3],!1,"---lrs/adj",g1.E4.a1L);
this.IM.setAttribute("style","text-align:center; padding:6px; min-width:220px");this.R9=[];var C=0;
for(var s in eb.names){var m=new hj("<img src=\""+PIMG["adj/"+s]+"\" class=\"autoscale gsicon\" style=\"margin:4px 4px;\"/>",!1,eb.names[s]);
m.h("click",this.ao9,this);this.R9.push(m);this.IM.appendChild(m.m);if(C==4||C==10)n.Z0(this.IM);C++}}ix.prototype=new g1("");
ix.prototype.U=function(){g1.prototype.U.call(this);for(var C=0;C<this.R9.length;C++)this.R9[C].U()};
ix.prototype.ao9=function(s){var m=this.R9.indexOf(s.target),l=jz.H$()[m],x=new h9(l.b,!0);x.data=l.M;
this.Y(x)};var aa=function(){function s(){g1.call(this,[9,3],!1,"---panels/brush",g1.E4.Fe);this.d3=null;
this.WR=null;this.bR=null}s.prototype=new g1("");s.prototype.XF=function(){var o=n.L("div","");this.IM.appendChild(o);
this.wg=n.L("div","bordered cell");this.wg.setAttribute("style","width:10em; height:28.5em;");o.appendChild(this.wg);
this.cb=[];this.n8=null;this.Qx=[];var G=this.abH.bind(this);this.Qh=[new l,new x,new a,new P];for(var C=0;
C<this.Qh.length;C++){var _=n.L("div","listitem"),j=this.Qh[C].zY,U=null;if(C==0){this.n8=new jG(j);
_.appendChild(this.n8.m)}else{U=new bj(j,!1);U.h(v.E.p,this.atx,this);_.appendChild(U.m)}this.Qx.push(U);
this.wg.appendChild(_);this.cb.push(_);_.addEventListener("click",G,!1)}this.Ue=n.L("div","cell padded");
o.appendChild(this.Ue);for(var C=0;C<this.Qh.length;C++)this.Qh[C].h("brushchange",this.aii,this);this.setItem(0);
this.w=n.L("canvas");this.w.height=10;o.appendChild(this.w);this.og=this.w.getContext("2d");this.Pf()};
s.prototype.jm=function(o,G){if(this.h_==o)return;this.h_=o;this.Cm=G;this.Pf()};s.prototype.tu=function(){if(!n.wH(this.IM))return;
if(this.wg){this.Pf();return}this.XF();this.U();this.L8(this.bR,gN.ki)};s.prototype.U=function(){g1.prototype.U.call(this);
if(this.wg==null)return;this.n8.U();for(var C=1;C<this.Qx.length;C++)this.Qx[C].U();for(var C=0;C<this.Qh.length;
C++)this.Qh[C].U()};s.prototype.aii=function(o){var G=this.Qh.indexOf(o.currentTarget),_=JSON.parse(JSON.stringify(this.Qh[G].WR)),j=new h9(v.E.g,!0);
j.data={d:v.J.xw,AV:gN.L$,WR:_};this.Y(j)};s.prototype.atx=function(o){this.aln(this.Qx.indexOf(o.currentTarget),o.currentTarget.bD())};
s.prototype.abH=function(o){var C=this.cb.indexOf(o.currentTarget);if(o.target.tagName.toLowerCase()=="input")return;
if(this.Qx[C]&&!this.Qx[C].bD()){this.Qx[C].Kd();this.aln(C,!0)}this.setItem(C)};s.prototype.aln=function(o,G){this.Qh[o].e$(G)};
s.prototype.setItem=function(o){for(var C=0;C<this.Qh.length;C++)this.cb[C].setAttribute("class","listitem");
if(this.Ue.firstChild)this.Ue.removeChild(this.Ue.firstChild);this.cb[o].setAttribute("class","listitem selected");
this.Ue.appendChild(this.Qh[o].m)};s.prototype.L8=function(o,G){this.bR=o;if(this.wg==null)return;if(G==gN.Fe||G==gN.ki){this.d3=o.If;
for(var C=0;C<this.Qh.length;C++)this.Qh[C].El(this.d3)}if(G==gN.L$||G==gN.ki){this.WR=o.If.eh;this.Pf()}if(G==gN.WV)this.Pf()};
s.prototype.Pf=function(){if(this.WR)this.enable();else{this.disable();return}if(!n.wH(this.IM))return;
var o=this.bR;for(var C=0;C<this.Qh.length;C++){this.Qh[C].f(this.WR);if(this.Qx[C])this.Qx[C].f(this.Qh[C].bD())}var G=JSON.parse(JSON.stringify(this.WR));
G.Brsh.v.Dmtr.v.val=Math.min(G.Brsh.v.Dmtr.v.val,50);n.ek(this.w,this.h_,80);var _=new bU(0,0,this.w.width,this.w.height),j=new br(G,this.d3?this.d3.NG:null,this.d3?this.d3.vw:null,{Dv:1},o.zU,o.Pi,_,null,0),U=_.l/2,S=_.e-U*2;
j.moveTo(U,U);for(var C=0;C<=S;C+=10)j.lineTo(U+C,U+20*Math.sin(2*Math.PI*C/S));j.finish();var X=this.og.createImageData(_.e,_.l);
L.yx(j.oo(),j.E2(),X.data,_);this.og.putImageData(X,0,0)};function m(o){fR.call(this);this.zY=o;this.m=n.L("div","");
this.WR=null}m.prototype=new fR;m.prototype.El=function(o){};m.prototype.f=function(o){this.WR=JSON.parse(JSON.stringify(o));
this.m.setAttribute("class",this.bD()?"":"disabled");this.Pf()};m.prototype.e$=function(o){};m.prototype.bD=function(){return!1};
m.prototype.U=function(){};m.prototype.Pf=function(){};m.prototype.He=function(){this.Y(new h9("brushchange"))};
function l(){m.call(this,[15,0]);this.d3=null;this.a2e=null;this.Er=new g7(!0);this.m.appendChild(this.Er.m);
this.Er.h(v.E.p,this.aoo,this);this.Er.m.style.height="10.7em";this.JH=new aR([12,14,0],1,1e3," px",0,!0);
this.JH.h(v.E.p,this.a2R,this);this.dM=new aR([12,15],0,359," \xB0");this.dM.h(v.E.p,this.ase,this);
this.oZ=new aR([12,16],0,100," %");this.oZ.h(v.E.p,this.aeh,this);this.jf=new aR([12,17],0,100," %");
this.jf.h(v.E.p,this.acR,this);this.Mv=new aR([12,18],1,300," %");this.Mv.h(v.E.p,this.adK,this);this.cb=[this.JH,this.dM,this.oZ,this.jf,this.Mv]}l.prototype=new m;
l.prototype.U=function(){this.JH.U();this.dM.U();this.oZ.U();this.jf.U();this.Mv.U()};l.prototype.bD=function(){return!0};
l.prototype.El=function(o){this.d3=o;var G=[],_=Math.floor(30*n.W()),j=Math.floor(40*n.W());for(var C=0;
C<o.list.length;C++){var U=o.list[C].v,S=br.jj(U,o.NG,o.vw,_,j);G.push(S)}this.Er.Hm(G,null,_,j)};l.prototype.Pf=function(){var o=this.WR.Brsh.v,G=o.classID!=this.a2e;
this.a2e=o.classID;if(G)for(var C=0;C<this.cb.length;C++)if(this.m.contains(this.cb[C].m))this.m.removeChild(this.cb[C].m);
this.JH.f(o.Dmtr.v.val);if(G)this.m.appendChild(this.JH.m);this.dM.f(o.Angl.v.val);if(G)this.m.appendChild(this.dM.m);
if(o.classID=="computedBrush"||o.classID=="sampledBrush"){this.oZ.f(o.Rndn.v.val);if(G)this.m.appendChild(this.oZ.m)}if(o.classID=="computedBrush"){this.jf.f(o.Hrdn.v.val);
if(G)this.m.appendChild(this.jf.m)}this.Mv.f(o.Spcn.v.val);if(G)this.m.appendChild(this.Mv.m)};l.prototype.aoo=function(o){this.WR=this.d3.list[this.Er._()[0]].v;
this.He()};l.prototype.a2R=function(o){this.WR.Brsh.v.Dmtr.v.val=o.target._();this.He()};l.prototype.ase=function(o){this.WR.Brsh.v.Angl.v.val=o.target._();
this.He()};l.prototype.aeh=function(o){this.WR.Brsh.v.Rndn.v.val=o.target._();this.He()};l.prototype.acR=function(o){this.WR.Brsh.v.Hrdn.v.val=o.target._();
this.He()};l.prototype.adK=function(o){this.WR.Brsh.v.Spcn.v.val=o.target._();this.He()};function x(){m.call(this,[15,1]);
this.Pq=new aR([15,4,0],0,100,"%");this.Pq.h(v.E.p,this.adI,this);this.m.appendChild(this.Pq.m);this.b0=new aR([15,4,1],0,100,"%");
this.b0.h(v.E.p,this.a40,this);this.m.appendChild(this.b0.m);this.gv=new aR([15,4,2],0,100,"%");this.gv.h(v.E.p,this.anA,this);
this.m.appendChild(this.gv.m);this.VE=new ge("Control",["Off","Direction"]);this.VE.h(v.E.p,this.ale,this);
this.m.appendChild(this.VE.m);this.xE=new aR([15,4,3],0,100,"%");this.xE.h(v.E.p,this.arn,this);this.m.appendChild(this.xE.m);
this.J0=new aR([15,4,4],1,100,"%");this.J0.h(v.E.p,this.a1K,this);this.m.appendChild(this.J0.m)}x.prototype=new m;
x.prototype.U=function(){this.Pq.U();this.b0.U();this.gv.U();this.xE.U();this.J0.U()};x.prototype.bD=function(){return this.WR.useTipDynamics.v};
x.prototype.e$=function(o){this.WR.useTipDynamics.v=o;fd.ov.kf(this.WR);this.He()};x.prototype.Pf=function(){var o=this.WR;
if(o.useTipDynamics.v==!1)return;this.Pq.f(o.szVr.v.jitter.v.val);this.b0.f(o.minimumDiameter.v.val);
this.gv.f(o.angleDynamics.v.jitter.v.val);this.VE.f(o.angleDynamics.v.bVTy.v==0?0:1);this.xE.f(o.roundnessDynamics.v.jitter.v.val);
this.J0.f(o.minimumRoundness.v.val)};x.prototype.adI=function(o){this.WR.szVr.v.jitter.v.val=o.target._();
this.He()};x.prototype.a40=function(o){this.WR.minimumDiameter.v.val=o.target._();this.He()};x.prototype.anA=function(o){this.WR.angleDynamics.v.jitter.v.val=o.target._();
this.He()};x.prototype.ale=function(o){this.WR.angleDynamics.v.bVTy.v=o.target._()==0?0:6;this.He()};
x.prototype.arn=function(o){this.WR.roundnessDynamics.v.jitter.v.val=o.target._();this.He()};x.prototype.a1K=function(o){this.WR.minimumRoundness.v.val=o.target._();
this.He()};function a(){m.call(this,[15,2]);this.ig=new aR([15,5,0],0,1e3," %");this.ig.h(v.E.p,this.a4W,this);
this.m.appendChild(this.ig.m);this.na=new aR([15,5,1],1,20);this.na.h(v.E.p,this.a2j,this);this.m.appendChild(this.na.m);
this.hW=new aR([15,5,2],0,100," %");this.hW.h(v.E.p,this.ae6,this);this.m.appendChild(this.hW.m)}a.prototype=new m;
a.prototype.U=function(){this.ig.U();this.na.U();this.hW.U()};a.prototype.bD=function(){return this.WR.useScatter.v};
a.prototype.e$=function(o){this.WR.useScatter.v=o;fd.ov.kf(this.WR);this.He()};a.prototype.Pf=function(){var o=this.WR;
if(o.useScatter.v==!1)return;this.ig.f(o.scatterDynamics.v.jitter.v.val);this.na.f(o.Cnt.v);this.hW.f(o.countDynamics.v.jitter.v.val)};
a.prototype.a4W=function(o){this.WR.scatterDynamics.v.jitter.v.val=o.target._();this.He()};a.prototype.a2j=function(o){this.WR.Cnt.v=o.target._();
this.He()};a.prototype.ae6=function(o){this.WR.countDynamics.v.jitter.v.val=o.target._();this.He()};
function P(){m.call(this,[15,3]);this.UD=new aR([15,6,0],0,100," %");this.UD.h(v.E.p,this.a9k,this);
this.m.appendChild(this.UD.m);this.xu=new aR([15,6,1],0,100," %");this.xu.h(v.E.p,this.a0L,this);this.m.appendChild(this.xu.m);
this.M8=new aR([15,6,2],0,100," %");this.M8.h(v.E.p,this.apu,this);this.m.appendChild(this.M8.m);this.yn=new aR([15,6,3],0,100," %");
this.yn.h(v.E.p,this.am9,this);this.m.appendChild(this.yn.m)}P.prototype=new m;P.prototype.U=function(){this.UD.U();
this.xu.U();this.M8.U();this.yn.U()};P.prototype.bD=function(){return this.WR.useColorDynamics.v};P.prototype.e$=function(o){this.WR.useColorDynamics.v=o;
fd.ov.kf(this.WR);this.He()};P.prototype.Pf=function(){var o=this.WR;if(o.useColorDynamics.v==!1)return;
this.UD.f(o.clVr.v.jitter.v.val);this.xu.f(o.H.v.val);this.M8.f(o.Strt.v.val);this.yn.f(o.Brgh.v.val)};
P.prototype.a9k=function(o){this.WR.clVr.v.jitter.v.val=o.target._();this.He()};P.prototype.a0L=function(o){this.WR.H.v.val=o.target._();
this.He()};P.prototype.apu=function(o){this.WR.Strt.v.val=o.target._();this.He()};P.prototype.am9=function(o){this.WR.Brgh.v.val=o.target._();
this.He()};return s}();function d3(){g1.call(this,[9,0],!1,null,g1.E4.rs);this.IM.setAttribute("style","min-width:200px;");
this.Cp=n.L("div","hpbody scrollable");this.Cp.style.height="160px";this.IM.appendChild(this.Cp);this.a7r=-1;
this.Ro=[];this.a8=""}d3.prototype=new g1("");d3.prototype.av=function(s){if(s==null){n.em(this.Cp);
this.a8="";return}n.em(this.Cp);var m=0;for(var C=0;C<s.history.length;C++)if(C<=s.gH&&!s.history[C].wO)m=C;
for(var C=0;C<s.history.length;C++){var l=s.history[C];if(l.wO)continue;var x=new ei(l,C,m);x.parent=this;
this.Cp.appendChild(x.m);this.Ro.push(x)}if(s.gH==s.history.length-1)this.tu()};d3.prototype.tu=function(){this.Cp.scrollTop=this.Cp.scrollHeight};
d3.prototype.U=function(){g1.prototype.U.call(this);for(var C=0;C<this.Ro.length;C++)this.Ro[C].U()};
function ei(s,C,m){fR.call(this);this.index=C;this.m=n.L("div",C==m?"listitem selected":"listitem");
this.er=s.name;this.U();if(C>m)this.m.style.opacity=.4;this.m.addEventListener("click",this.s1.bind(this),!1)}ei.prototype=new fR;
ei.prototype.U=function(){this.m.textContent=iX.get(this.er)};ei.prototype.s1=function(s){if(this.index==this.parent.a7r)return;
this.ru({d:"h_itemchange",index:this.index})};ei.prototype.ru=function(s){var m=new h9(v.E.u,!0);m.data=s;
m.c=r.rs;this.Y(m)};function i9(){g1.call(this,[9,10],!1,"---panels/histogram",g1.E4.anX);var s=n.L("div","padded");
this.IM.appendChild(s);this.P7=new cs(256,!0);s.appendChild(this.P7.m);this.zx=null}i9.prototype=new g1("");
i9.prototype.av=function(s){this.zx=s;this.ZJ()};i9.prototype.ZJ=function(){var s=this.zx;if(!n.wH(this.IM))return;
if(s==null||s.N.length==0){this.P7.f(L.XU(L.B(4)));return}var m=s.cf(),l=new bU(0,0,s.e,s.l),x=l.k();
if(s.q){var a=s.q.rect,P=L.B(a.k()*4);L.yx(m,l,P,a);L.$n(s.q.channel,P);m=P;l=a;var o=s.q.channel;x=0;
for(var C=0;C<o.length;C++)x+=o[C];x=Math.round(x/255)}var G=L.XU(m);G[0][255]+=3*(x-G[5]);for(var C=1;
C<4;C++)G[C][255]+=x-G[5];this.P7.f(G,x)};i9.prototype.L8=function(s,m){this.P7.XC(gn.WO[s.li]["--text-color"])};
i9.prototype.U=function(){g1.prototype.U.call(this);this.P7.U()};i9.prototype.tu=function(){this.ZJ()};
function cm(){g1.call(this,[9,8],!1,null,g1.E4.atj);this.ys=n.L("div","padded");this.IM.appendChild(this.ys);
this.$R=new eh(10);this.ys.appendChild(this.$R.m);this.ys.appendChild(n.L("hr"));this.dT=new fG;this.dT.parent=this;
this.ys.appendChild(this.dT.M2);this.$R.h(v.E.p,this.a7G,this);this.dT.h(v.E.p,this.a7G,this)}cm.prototype=new g1("");
cm.prototype.a7G=function(s){var m;if(s.target==this.$R)m=this.$R._();else{var l=this.dT._();m=Math.round(l.o)<<16|Math.round(l.z)<<8|Math.round(l.S)}var x=new h9(v.E.g,!0);
x.data={d:v.J.xw,AV:gN.WV,R7:0,Z:m};this.Y(x)};cm.prototype.L8=function(s,m){var l=s.zU,x=m==gN.ki;if(m==gN.WV||x){this.$R.f(l);
this.dT.f({o:l>>>16&255,z:l>>>8&255,S:l>>>0&255,ii:"Color #"+L.eZ(l)})}if(m==gN.Sm||x){var a=s.aiy;this.dT.El(a)}};
function dh(){g1.call(this,[12,72],!1,"---adj/mixr",g1.E4.a64);this.E1=null;this.QA=null;this.Cp=n.L("div","lpbody scrollable");
this.hS=n.L("div","lpfoot");this.IM.appendChild(this.Cp);this.IM.appendChild(this.hS);this.qf=[];this.h("click",this.GD,this);
this.xz=[];dh.qD([[17,2],"Save Selection as Channel",[5,3],[5,4]],this.xz,this.hS,this.Sn.bind(this),this.zo.bind(this));
this.wn=new aC([{name:"Merge Channels",$q:!0}]);this.wn.h("select",this.yS,this)}dh.prototype=new g1("");
dh.prototype.yS=function(s){if(this.QA==null)return;var m=new h9(v.E.g,!0);m.data={d:v.J.Qm,It:"mergechannels"};
this.Y(m)};dh.prototype.mI=function(){return this.wn};dh.qD=function(s,m,l,x,a){for(var C=0;C<s.length;
C++){var P=new hj("W",!1,s[C]);m.push(P);n.i3(P.m,x);l.appendChild(P.m);var o=P.m;o.addEventListener("drop",a,!1);
o.addEventListener("dragover",function(G){G.preventDefault()},!1);o.addEventListener("dragenter",n.uj,!1)}};
dh.wh=function(s,m){for(var C=0;C<s.length;C++)if(s[C].m==m.currentTarget)return C};dh.prototype.Sn=function(s){var m=dh.wh(this.xz,s);
if(m==0)this.Y(c7.Lt(!0,null,s));else{m--;var l=new h9(v.E.b4,!0),x={classID:"null"};if(m==0)x.null={t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]};
else if(m==1)x.Nw={t:"Objc",v:{classID:"Chnl",ClrI:{t:"enum",v:{MskI:"SlcA"}},Opct:{t:"long",v:50}}};
else x.null=e6.Yr("Chnl",!0);l.data={YF:["duplicate","make","delete"][m],WA:x};this.Y(l)}};dh.prototype.zo=function(s){var m=dh.wh(this.xz,s);
if(m==2){var l=new h9(v.E.b4,!0),x={classID:"null"};x.null=e6.Yr("Chnl",!0);l.data={YF:"duplicate",WA:x};
this.Y(l)}else this.Sn(s)};dh.prototype.Ap=function(C){var s=this.qf,m=s[C];if(m==null){var l=n.L("canvas");
m=l.getContext("2d");s.push(m)}return m};dh.prototype.GD=function(s){var m=this.E1.slice(0),l=s.data.jV,x=m[0]+m[1]+m[2],a=this.QA;
if(-5<l&&l<0){var P=-l-1;if(s.data.Gm){if(P==0)m=x==3?[0,0,0]:[1,1,1];else{if(m[P-1]==0)m[P-1]=1;else if(!0)m[P-1]=0}}else{if(P==0)m=[1,1,1];
else{m=[0,0,0];m[P-1]=1}a.Be=[]}var o=new h9(v.E.u,!0);o.c=r.Ex;o.data={d:"setcls",OL:m};this.Y(o);return}if(-1<l){var G=a.G[l],_=G.Ar==1?G.SE():G.Ao(a).v;
if(s.data.Gm)_.IU=!_.IU;else{for(var C=0;C<a.$_.length;C++)a.$_[C].IU=!1;a.Be=[]}}else{var j=-l-5,_=a.$_[j];
if(s.data.Gm)_.IU=!_.IU;else{for(var C=0;C<a.$_.length;C++)a.$_[C].IU=!1;_.IU=!0;a.Be=[j]}}a.R8=a.Gq=!0};
dh.prototype.tu=function(){this.ga()};dh.prototype.av=function(s){this.QA=s;this.ga()};dh.prototype.ga=function(){var s=this.QA,m=this.Cp,G=34,_=34,c=4;
n.em(m);if(s==null||!n.wH(m))return;var l=s.e,x=s.l,a=new bU(0,0,l,x),P=this.E1=s.t.OL.slice(0),o=P[0]+P[1]+P[2];
if(l>x)_=Math.round(_*x/l);else G=Math.round(G*l/x);var j=["RGB"].concat(eb.cP);for(var C=0;C<4;C++){var U=this.Ap(C);
L.Ia.jw(U,G,_,a,s.cf(),a,!1,C==0?null:C-1);var S=C==0?o==3:P[C-1]==1,X=new c7(-1-C,!0,!0,U,j[C],S,S);
X.parent=this;m.appendChild(X.m)}for(var C=0;C<s.N.length;C++){var y=s.G[s.N[C]],O=y.Ar;if(O!=1&&O!=3)continue;
var p=O==1?y.SE():y.Ao(s).v,U=this.Ap(c+C);c++;L.Ia.gm(U,G,_,a,p);var X=new c7(s.N[C],!0,!0,U,y.getName()+(O==1?"":" Filter")+" Mask",!0,p.IU);
X.parent=this;m.appendChild(X.m)}for(var C=0;C<s.$_.length;C++){var p=s.$_[C],U=this.Ap(c+C);L.Ia.gm(U,G,_,a,p);
var X=new c7(-5-C,!0,p.name=="Quick Mask",U,p.name,s.Be.indexOf(C)!=-1,p.IU,r.ay,{d:t.iq,R7:"rnm",jV:C});
X.parent=this;m.appendChild(X.m)}};dh.prototype.jm=function(s,m){this.Cp.style.height=m-9-26+"px";this.Cp.style.width=s+"px"};
dh.prototype.U=function(){g1.prototype.U.call(this);this.ga();dh.WH(this.xz,["lrs/makesel","lrs/mask","lrs/newlayer","lrs/bin"])};
dh.WH=function(s,m){var m=co.ey(m);for(var C=0;C<s.length;C++)s[C].tD(m[C])};function c7(s,m,l,x,a,P,o,G,_){fR.call(this);
this.m=n.L("div","layeritem");this.am3=s;this.asZ=m;this.og=x;this.a72=G;this.anY=_;this.lm=n.L("div",P?"head selected":"head");
this.lm.setAttribute("style","height: "+40+"px");var j=n.L("div","headL"),U=n.L("div","headR"),S=15;
this.m.appendChild(this.lm);this.lm.appendChild(j);this.lm.appendChild(U);this.xN=n.L("div","eye");if(1<n.W()&&n.W()<1.5)S=S/n.W();
this.xN.setAttribute("style","background-size: "+S+"px "+S+"px;");this.xN.style.opacity=o?1:.2;if(m)j.appendChild(this.xN);
this.N5=n.L("div","thumb");if(x)this.N5.appendChild(x.canvas);j.appendChild(this.N5);this.XM=n.L("div","label");
if(l)this.XM.style.fontStyle="italic";this.XM.textContent=iX.get(a);j.appendChild(this.XM);var X=this.lm;
X.setAttribute("draggable","true");this.lm.addEventListener("mousedown",this.a19.bind(this),!1);if(!l)this.lm.addEventListener("mouseup",this.a1u.bind(this),!1)}c7.prototype=new fR;
c7.prototype.vo=function(s){var m=new h9(v.E.u,!0);m.c=this.a72;m.data=this.anY;m.data.name=s;this.Y(m)};
c7.prototype.a19=function(s){var m=s.ctrlKey||s.metaKey,l=this.am3;if(m&&s.target==this.og.canvas){this.Y(c7.Lt(this.asZ,l,s))}else{var x=new h9("click",!0);
x.data={jV:l,Gm:s.target==this.xN,f7:m};this.Y(x)}};c7.prototype.a1u=function(s){if(s.detail==2&&s.target==this.XM){var m=new g1.gr(this.XM,this.vo.bind(this))}};
c7.Lt=function(s,m,l){var x=0;if(l.shiftKey)x++;if(l.altKey)x+=2;var a=new h9(v.E.u,!0);a.c=r.r$;if(s){if(-5<m&&m<0){a=new h9(v.E.b4,!0);
a.data=r.bJ.AE(x,["RGB","Rd","Grn","Bl"][-1-m])}else a.data={d:"fromchannel",KA:[m,0,x]}}else a.data={d:"frompath",KA:[m,0,x]};
return a};function i5(){g1.call(this,[8,9],!1,"---panels/paths",g1.E4.JK);this.E1=null;this.QA=null;
this.Cp=n.L("div","lpbody scrollable");this.hS=n.L("div","lpfoot");this.IM.appendChild(this.Cp);this.IM.appendChild(this.hS);
this.IM.addEventListener("click",this.asJ.bind(this),!1);this.qf=[];this.h("click",this.GD,this);this.xz=[];
dh.qD(["Fill Path","Stroke Path with Brush",[17,2],"Selection to Path",[5,3],[5,4]],this.xz,this.hS,this.Sn.bind(this),this.zo.bind(this))}i5.prototype=new g1("");
i5.prototype.Sn=function(s,m){var l=dh.wh(this.xz,s),x;if(l<2){var a={t:"obj ",v:[{t:"prop",v:{classID:"Path",keyID:"WrPt"}}]},P=l==0?{classID:"null",null:a,WhPt:{t:"bool",v:!0}}:{classID:"Strk",null:a,Usng:{t:"type",v:{classID:"PbTl"}},__name:"Stroke"};
x=new h9(v.E.b4,!0);x.data={YF:l==0?"fill":"stroke",WA:P}}else if(l==2)x=c7.Lt(!1,null,s);else if(l==3){x=new h9(v.E.b4,!0);
x.data={YF:"make",WA:{classID:"null",null:{t:"obj ",v:[{t:"Clss",v:{classID:"Path"}}]},From:{t:"obj ",v:[{t:"prop",v:{classID:"csel",keyID:"fsel"}}]},Tlrn:{t:"UntF",v:{type:"#Pxl",val:2}}}}}else if(l>3){var x=new h9(v.E.u,!0);
x.c=r.MA;x.data={d:"pathedit",R7:["new","del"][l-4],a6s:m}}this.Y(x)};i5.prototype.zo=function(s){this.Sn(s,!0)};
i5.prototype.Ap=function(C){var s=this.qf,m=s[C];if(m==null){var l=n.L("canvas");m=l.getContext("2d");
s.push(m)}return m};i5.prototype.asJ=function(s){if(s.target==this.Cp){var m=this.QA;m.FZ=[];m.QR=[];
m.Gq=!0;m.R8=!0}};i5.prototype.GD=function(s){var m=s.data.jV,l=this.QA,x=s.data.f7,a=0,P,o;if(m<0){a=-1-m;
P=l.FZ;o=l.QR}else{var G=l.S4()[0];for(var C=0;C<G.length;C++){var _=G[C].jV;if(_==m)break;if(_>=0)a++}P=l.QR;
o=l.FZ}if(x){var j=P.indexOf(a);if(j==-1)P.push(a);else P.splice(j,1)}else{while(P.length!=0)P.pop();
while(o.length!=0)o.pop();P.push(a)}l.Gq=!0;l.R8=!0};i5.prototype.tu=function(){this.ga()};i5.prototype.av=function(s){this.QA=s;
this.ga()};i5.prototype.ga=function(){var s=this.QA,m=this.Cp,G=34,_=34;n.em(m);if(s==null||!n.wH(m))return;
var l=s.e,x=s.l,a=new bU(0,0,l,x),P=this.E1=s.t.OL.slice(0),o=P[0]+P[1]+P[2];if(l>x)_=Math.round(_*x/l);
else G=Math.round(G*l/x);var j=s.S4(),U=j[0];for(var C=0;C<U.length;C++){var S=U[C],X=this.Ap(C);L.Ia.a4$(X,G,_,a,S.add.vmsk);
var c=new c7(S.jV,!1,S.jV>=0,X,S.name,j[1].indexOf(C)!=-1,!1,r.MA,{d:"pathedit",R7:"rnm",jV:S.jV});c.parent=this;
m.appendChild(c.m)}};i5.prototype.jm=function(s,m){this.Cp.style.height=m-9-26+"px";this.Cp.style.width=s+"px"};
i5.prototype.U=function(){g1.prototype.U.call(this);this.ga();dh.WH(this.xz,"-\u2B24 -\u25EF lrs/makesel lrs/makepath lrs/newlayer lrs/bin".split(" "))};
function dz(s){g1.call(this,[9,s?4:5],!1,"---panels/"+(s?"character":"paragraph"),s?g1.E4.a7t:g1.E4.a6n);
this.IM.setAttribute("style","min-width:240px;");this.a90=s;this.nL=null;this.bR=null}dz.prototype=new g1("");
dz.prototype.XF=function(){this.nL=new j2;var s=this.nL,m=this.IM;s.parent=this;if(this.a90){var l=n.L("div","marged");
m.appendChild(l);l.appendChild(s.Sy.m);m.appendChild(n.L("hr"));var x=n.L("div","marged");m.appendChild(x);
x.appendChild(s.pg.m);x.appendChild(s.yP.m);var a=n.L("div","marged");m.appendChild(a);a.appendChild(s.ul.m);
a.appendChild(s.Q9.m);m.appendChild(n.L("hr"));var P=n.L("div","marged");m.appendChild(P);P.appendChild(s.bk.m);
P.appendChild(s.En.m);var o=n.L("div","marged");m.appendChild(o);o.appendChild(s.pY.m);o.appendChild(s.FC.m);
o.appendChild(s.z9.m);m.appendChild(n.L("hr"));var G=n.L("div","marged");m.appendChild(G);G.appendChild(s.RB.m);
G.appendChild(s.vZ.m);G.appendChild(s.o$.m);G.appendChild(s.tY.m);G.appendChild(s.Jh.m);G.appendChild(s.$U.m);
G.appendChild(s.OW.m);G.appendChild(s.lN.m)}else{var l=n.L("div","marged");m.appendChild(l);l.appendChild(s.Gk.m);
l.appendChild(s.SG.m);l.appendChild(s.s7.m);l.appendChild(s.acf.m);l.appendChild(s.anl.m);l.appendChild(s.a3V.m);
l.appendChild(s.akn.m);m.appendChild(n.L("hr"));var x=n.L("div","marged");m.appendChild(x);x.appendChild(s.KG.m);
x.appendChild(s._v.m);x.appendChild(s.Gt.m);m.appendChild(n.L("hr"));var a=n.L("div","marged");m.appendChild(a);
a.appendChild(s.n1.m);a.appendChild(s.Wu.m);a.appendChild(s.jD.m)}};dz.prototype.tu=function(){if(!n.wH(this.IM))return;
if(this.nL==null){this.XF();var s=this.bR;if(s)this.nL.f(s.ME,s.dC,s.KJ);this.nL.U()}};dz.prototype.U=function(){g1.prototype.U.call(this);
if(this.nL)this.nL.U()};dz.prototype.L8=function(s,m){this.bR=s;if(m!=gN.ki&&m!=gN.dz&&m!=gN.$W&&m!=gN.OB)return;
if(this.nL)this.nL.f(s.ME,s.dC,s.KJ)};function am(){g1.call(this,[9,13],!1,"---panels/glyphs",g1.E4.ao1);
this.nL=new j2;this.nL.parent=this;this.bR=null;this.aa5=null;this.a4r=null;this.uF=null;this.ash=null;
this.Z_=Math.round(290*n.W());this.v3=45;this.aky=4;this.acT=this.ZJ.bind(this);this.a6i=0;this.Y$=new ge(null,["Hi","Hello"]);
this.Y$.h(v.E.p,this.ZJ,this);var s=this.CE=new hj("-",null,null,!0);s.h("click",this.adh,this);var m=this.a26=new hj("+",null,null,!0);
m.h("click",this.adh,this);this.jM=new g7(!1);this.jM.h(v.E.p,this.ND,this);this.jM.m.style.height=250+"px";
var l=this.N3=n.L("div","form padded");this.IM.appendChild(l);l.appendChild(this.nL.Sy.m);n.Z0(l);l.appendChild(this.Y$.m);
l.appendChild(s.m);l.appendChild(m.m);this.IM.appendChild(this.jM.m)}am.prototype=new g1("");am.prototype.jm=function(s,m){if(this.h_==s)return;
this.h_=s;this.Z_=Math.floor((s-13)*n.W());this.N3.setAttribute("style","width:"+this.Z_/n.W()+"px;");
this.jM.m.style.height=m-73+"px";this.ZJ()};am.prototype.ND=function(s){var m=this.agA(),l=Math.round(this.Z_/m);
m/=n.W();var x=this.jM._()[0]*l*this.aky,a=this.jM.atb();x+=Math.floor(a.y/m)*l;x+=Math.floor(a.x/m);
var P=this.uF[this.Y$._()];if(x>=P.length)return;var o=P[x],G=this.ash[o],_=new h9(v.E.u,!0);_.c=r.sX;
if(G.ZM.length==0)_.data={d:"insertGlyph",Z:x+1};else _.data={d:"insertText",Z:String.fromCodePoint(G.ZM[0])};
this.Y(_)};am.prototype.adh=function(s){var m=1.2;if(s.target==this.CE){if(this.v3>20)this.v3/=m}else{if(this.v3<100)this.v3*=m}this.ZJ()};
am.prototype.tu=function(){this.L8(this.bR)};am.prototype.L8=function(s,m){this.bR=s;if(!n.wH(this.IM))return;
this.nL.f(s.ME,s.dC,s.KJ);var l=s.ME,x=l.m$.Font,_=0;if(x==null)return;var a=l.dN[x].Name;if(this.aa5==a)return;
var x=s.dC.JD(a);if(x==null)return;var P=x.maxp.numGlyphs,o=this.ash=new Array(P);for(var C=0;C<P;C++)o[C]={ZM:[]};
var G=Date.now(),j=new Uint8Array(1048575);for(var C=0;C<1048575;C++){var U=Typr.U.codeToGlyph(x,C);
if(U!=0&&U<P){j[C]=1;if(o[U].ZM.length==0)_++;o[U].ZM.push(C)}}var S=am.ta,X=[];for(var C=0;C<S.length;
C++)X.push([]);for(var U=1;U<P;U++){X[0].push(U);var c=o[U].ZM[0];if(c==null){continue}for(var y=1;y<S.length;
y++){var O=S[y].YU;for(var C=0;C<O.length;C+=2)if(O[C]<=c&&c<=O[C+1]){X[y].push(U);break}}}this.uF=X;
var p=[];for(var C=0;C<S.length;C++)p.push(S[C].ie+" ("+X[C].length+")");var D=this.Y$._();this.Y$.AZ(p);
this.Y$.f(D);this.aa5=a;this.a4r=x;this.ZJ()};am.prototype.agA=function(s){var m=Math.floor(this.Z_/this.v3);
return Math.floor(this.Z_/m)};am.prototype.ZJ=function(s){if(!n.wH(this.IM)||this.uF==null)return;var m=this.uF[this.Y$._()],l=m.length,x=this.a4r,a=Typr.U,P=this.agA(),o=P,G=o*.8,_=o*.8/x.head.unitsPerEm,j=[],U=Math.floor(this.Z_/P),S=Math.ceil(l/U),X=this.aky,c=Date.now();
for(var y=0;y<S;y+=X){var O=n.L("canvas"),p=O.getContext("2d");O.width=P*U;O.height=o*X;p.strokeStyle="rgba(0,0,0,0.3)";
p.fillStyle="white";p.fillRect(0,0,U*P,o*X);for(var D=0;D<X;D++){for(var f=0;f<U;f++){var C=m[(y+D)*U+f];
if(C==null)break;var T=a.glyphToPath(x,C),I=L.H.ge(T.crds);if(!I.Xh()){p.fillStyle="#252525";p.beginPath();
var H=f*P+(P-I.e*_)*.5-I.x*_,b=D*o+G;p.translate(H,b);p.scale(_,-_);a.pathToContext(T,p);p.scale(1/_,-1/_);
p.translate(-H,-b);p.fill()}}}p.beginPath();for(var f=0;f<U;f++){var R=f*P+P+.5;p.moveTo(R,0);p.lineTo(R,o*X)}for(var D=0;
D<X;D++){var W=D*o+o+.5;p.moveTo(0,W);p.lineTo(U*P,W)}p.stroke();j.push(O)}this.jM.Hm(j,null,P*U,o*X)};
am.ta=[{ie:"All Glyphs"},{ie:"Basic Latin, Latin 1",YU:[0,127,128,143]},{ie:"Latin Extended-A",YU:[256,383]},{ie:"Latin Extended-B",YU:[384,591]},{ie:"Punctuations",YU:[33,35,37,39,42,42,44,44,46,47,58,59,63,63,64,64,92,92,161,161,167,167,182,183,191,191,894,894,903,903,1370,1375,1417,1417,8192,8303,11776,11903]},{ie:"Greek",YU:[880,1023]},{ie:"Cyrillic",YU:[1024,1279]},{ie:"Hebrew",YU:[1424,1535]},{ie:"Arabic",YU:[1536,1791]},{ie:"Emoji",YU:[9728,10095,127744,129535]}];
function jm(){g1.call(this,[13,0],!1,null,g1.E4.WV);this.ag=0;this.ahA=0;this.bR=null;var s=n.L("div","flexrow padded");
this.IM.appendChild(s);var m=n.L("div");s.appendChild(m);this.gI=[];for(var C=0;C<2;C++){var l=new fM;
this.gI.push(l);l.h("click",this.anE,this);m.appendChild(l.m)}this.vg=new gq(192);this.vg.h(v.E.p,this.Ju,this);
s.appendChild(this.vg.m)}jm.prototype=new g1("");jm.prototype.anE=function(s){this.ag=this.gI.indexOf(s.currentTarget);
this.ZJ()};jm.prototype.Ju=function(s){var m=this.vg._();this.vg.f(m);var l=Math.round(m.o*255)<<16|Math.round(m.z*255)<<8|Math.round(m.S*255),x=new h9(v.E.g,!0);
x.data={d:v.J.xw,AV:gN.WV,R7:this.ag,Z:l};this.Y(x);this.ahA=Date.now()};jm.prototype.ZJ=function(){var s=this.bR,m=this.ag,l=[s.zU,s.Pi];
for(var C=0;C<2;C++){var x=this.gI[C],a=x.m.style;x.XC(l[C]);if(C==m)a.filter="drop-shadow(0 0 1px #000000)"}var P=l[m];
if(Date.now()-this.ahA>100)this.vg.f({o:(P>>>16)/255,z:(P>>>8&255)/255,S:(P&255)/255})};jm.prototype.L8=function(s,m){this.bR=s;
if(m==gN.ki||m==gN.WV)this.ZJ()};jm.prototype.tu=function(){this.ZJ()};function js(){g1.call(this,"CSS",!1,"---panels/css",g1.E4.CSS);
this.zx=null;var s=n.L("div","padded");this.IM.appendChild(s);this.S9=n.L("textarea");n.O_(this.S9);
s.appendChild(this.S9)}js.prototype=new g1("");js.prototype.jm=function(s,m){if(this.h_==s)return;this.h_=s;
this.S9.setAttribute("style","display:block;tab-size:4; margin:0; font-family:monospace; width:"+(s-10)+"px; height:"+(m-10)+"px")};
js.prototype.av=function(s){this.zx=s;this.ZJ()};js.prototype.L8=function(s,m){if(m==gN.$W)this.ZJ()};
js.prototype.ZJ=function(){var s=this.zx;if(s==null||s.N.length==0)return;if(!n.wH(this.IM))return;var m=s.G[s.N[0]],l=CSS.abV(m,s);
if(l.length!=0)this.S9.value=l.join(";\n")+";";else this.S9.value=""};js.prototype.tu=function(){this.ZJ()};
function gh(){g1.call(this,[9,6],!1,"---panels/info",g1.E4.aiu);this.IM.setAttribute("style","min-width:240px;");
this.zx=null;this.bR=null;var s=n.L("div","marged row");this.IM.appendChild(s);var m=n.L("div","cell");
m.setAttribute("style","width:10em");s.appendChild(m);var l=n.L("div","cell");l.setAttribute("style","width:10em");
s.appendChild(l);this.a2Y=[];for(var C=0;C<4;C++){var x=new jG("");this.a2Y.push(x);m.appendChild(x.m);
n.Z0(m)}this.IM.appendChild(n.L("hr",""));var a=n.L("div","marged row");this.IM.appendChild(a);var m=n.L("div","cell");
m.setAttribute("style","width:10em");var l=n.L("div","cell");l.setAttribute("style","width:10em");a.appendChild(m);
a.appendChild(l);this.$C=new jG("");m.appendChild(this.$C.m);n.Z0(m);this.eA=new jG("");m.appendChild(this.eA.m);
this.US=new jG("");l.appendChild(this.US.m);n.Z0(l);this.uR=new jG("");l.appendChild(this.uR.m);this.$C.f("X: 100 px");
this.eA.f("Y: 100 px");this.US.f("W: 0");this.uR.f("H: 0")}gh.prototype=new g1("");gh.prototype.zk=function(s,m,l,x,a){if(!n.wH(this.IM)||s==null)return;
var P=s.t.cr(a.x,a.y),o=new fz(Math.floor(P.x),Math.floor(P.y));if(!a.t0){var G=0,_=0,j=0,U=0,S=this.a2Y;
if(!a.t0&&!s.al0()&&new bU(0,0,s.e-1,s.l-1).j_(o)){var X=s.cf(),C=s.e*o.y+o.x<<2;G=X[C+0];_=X[C+1];j=X[C+2];
U=X[C+3]}S[0].f("R: "+G);S[1].f("G: "+_);S[2].f("B: "+j);S[3].f("A: "+U)}this.$C.f("X: "+L.pE.YC(o.x,s.sz,l,s.e));
this.eA.f("Y: "+L.pE.YC(o.y,s.sz,l,s.l));this.z0()};gh.prototype.z0=function(){var s=this.zx,m=this.bR,l=0,x=0;
if(s&&m){if(s.t.Bm){l=s.t.Bm.e;x=s.t.Bm.l}else if(s.q){l=s.q.rect.e;x=s.q.rect.l}l=L.pE.YC(Math.abs(l),s.sz,m,s.e);
x=L.pE.YC(Math.abs(x),s.sz,m,s.l)}this.US.f(iX.get([12,41]).charAt(0)+": "+l);this.uR.f(iX.get([12,42]).charAt(0)+": "+x)};
gh.prototype.U=function(){g1.prototype.U.call(this);this.z0()};gh.prototype.av=function(s,m,l){this.zx=s;
this.bR=l;this.z0()};function f2(){g1.call(this,[9,1],!1,"---panels/layers",g1.E4.ay);this.TX=null;this.u0=null;
this.cu=null;this.lm=n.L("div","lphead");this.Cp=n.L("div","lpbody scrollable");this.hS=n.L("div","lpfoot");
this.NH=new ge(null,aA.dP,!1,aA.Nx);this.NH.h(v.E.p,this.aev,this);this.lm.appendChild(this.NH.m);this.p8=new dy([12,0],0,100,"%",0);
this.p8.h(v.E.p,this.a5P,this);this.p8.parent=this;this.lm.appendChild(this.p8.m);this.UC=new ja([6,57,2],["<img src=\""+PIMG.trsp3+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["tools/brush"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.pos+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["lrs/lock"]+"\" class=\"autoscale gsicon\" />"],!0,["Transparency",[12,76,2],[12,40],[7,0]]);
this.UC.h(v.E.p,this.a69,this);this.lm.appendChild(this.UC.m);this.XH=new dy([12,26],0,100,"%",0);this.XH.h(v.E.p,this.a6M,this);
this.XH.parent=this;this.lm.appendChild(this.XH.m);this.xz=[];this.qD();this.IM.appendChild(this.lm);
this.IM.appendChild(this.Cp);this.Cp.addEventListener("dragover",function(l){l.preventDefault()},!1);
this.Cp.addEventListener("dragenter",n.uj,!1);this.Cp.addEventListener("drop",this.atU.bind(this),!1);
this.IM.appendChild(this.hS);this.IM.addEventListener("contextmenu",n.uj,!1);var s=jz.aY(!0),m=jz.y5(!0);
this.aeE=new aC(s,m);var s=[{name:[14,10]},{name:[14,11],Bx:!0},{name:[6,0]},{name:[11,4]},{name:[5,4],Bx:!0},{name:[6,7,0]},{name:"New Smart Obj. via Copy",P:function(l){return{P:l.G[l.N[0]].add.SoLd!=null}},Bx:!0},{name:[6,8],P:f2.a7O},{name:[6,34],P:function(l){var x=l.G[l.N[0]];
return{P:x.add.lmfx!=null&&!x.gu()}}},{name:[6,40],Bx:!0,P:function(l){var x=l.G[l.N[0]];return{P:x.add.TySh!=null}}},{name:"",Bx:!0,P:function(l){var x=l.G[l.N[0]],a=x.add.TySh,P=a?a.x5:null;
return{P:a!=null&&P.Curve==null,AJ:iX.get(a&&ex.$i(P)==0?[16,3,1]:[16,3,0])}}},f2.ahs(!1),{name:[11,6],Bx:!0,sub:[{name:[5,1],P:function(l){var x=l.G[l.N[0]];
return{P:x.add.lmfx!=null}}},{name:[5,2]},{name:[2,2],P:function(l){var x=l.G[l.N[0]];return{P:x.add.lmfx!=null}}}]},{name:[6,10],P:function(l){return{P:l.N.length==1&&l.N[0]!=0&&!l.G[l.N[0]].gu()}}},{name:[6,12,0],P:function(l){return{P:l.N.length>1||l.G[l.N[0]].gu()}}},{name:[6,12,1],Bx:!0},{name:[13,0],sub:function(){var l=[[13,1,0],[13,1,1],[13,1,2],[13,1,3],[13,1,4],[13,1,5],[13,1,6],[13,1,7]],x=[];
for(var C=0;C<l.length;C++)x.push({name:l[C]});return x}()}],m=[{b:v.E.g,M:{d:v.J.Qm,It:"layerstyle"}},{b:v.E.u,c:r.r$,M:{d:"fromlayer",KA:[null,0,0]}},{b:v.E.u,c:r.ay,M:{d:t.Rk}},{b:v.E.g,M:{d:v.J.Qm,It:"duplinto"}},{b:v.E.u,c:r.ay,M:{d:t.q_}},{b:v.E.b4,M:{YF:"newPlacedLayer"}},{b:v.E.u,c:r.ay,M:{d:t.LW}},{b:v.E.b4,M:{YF:"rasterizeLayer",WA:{classID:"rasterizeLayer",null:e6.Yr("Lyr",!0)}}},{b:v.E.u,c:r.ay,M:{d:t.Tt}},{b:v.E.u,c:r.ay,M:{d:t.Vb}},{b:v.E.u,c:r.sX,M:{d:"switchPntPrgr"}},{b:v.E.u,c:r.ay,M:{d:t.VD}},{sub:[{b:v.E.u,c:r.Dk,M:{d:"st_copy"}},{b:v.E.u,c:r.Dk,M:{d:"st_paste"}},{b:v.E.u,c:r.Dk,M:{d:"st_clear"}}]},{b:v.E.u,c:r.ay,M:{d:t.MN}},{b:v.E.u,c:r.ay,M:{d:t.cg}},{b:v.E.u,c:r.ay,M:{d:t.iv}},{sub:function(){var l=[];
for(var C=0;C<8;C++)l.push({b:v.E.u,c:r.ay,M:{d:t.Us,afV:C}});return l}()}];this.Ue=new aC(s,m);var s=[{name:[6,45],P:function(l){var x=l.G[l.N[0]];
return{P:x.Ao(l).v==null}}},{name:[6,47]}],m=[{b:v.E.u,c:r.ay,M:{d:t.Mm}},{b:v.E.u,c:r.ay,M:{d:t.u8}}];
this.aoJ=new aC(s,m);var s=[{name:"enab/disab",P:function(l){return{AJ:iX.get(l.G[l.N[0]].SE().isEnabled?[6,15]:[6,14])}}},{name:[6,22]},{name:[5,8],P:function(l){return{P:l.z6(!1,!0)}}}],m=[{b:v.E.u,c:r.ay,M:{d:t.mD}},{b:v.E.u,c:r.ay,M:{d:t.aG}},{b:v.E.u,c:r.ay,M:{d:t.LX}}];
this.a4J=new aC(s,m);var s=[{name:"enab/disab",P:function(l){return{AJ:iX.get(l.G[l.N[0]].Ao(l).v.isEnabled?[6,42]:[6,41])}}},{name:[6,46]}],m=[{b:v.E.u,c:r.ay,M:{d:t.EW}},{b:v.E.u,c:r.ay,M:{d:t.wL}}];
this.a86=new aC(s,m);var s=[{name:"enab/disab",P:function(l){return{AJ:iX.get(l.G[l.N[0]].add.vmsk.isEnabled?[6,17]:[6,16])}}},{name:[6,24]},{name:[6,8]}],m=[{b:v.E.u,c:r.ay,M:{d:t.Kl}},{b:v.E.u,c:r.ay,M:{d:t.RA}},{b:v.E.u,c:r.ay,M:{d:t.nI}}];
this.aaZ=new aC(s,m);this.apW=new aC(jz.afS(!0),jz.H$(!0));this.a03=new aC(jz.aY(),jz.y5());this.h("rclick",this.a0d,this)}f2.prototype=new g1("");
f2.ahs=function(s){var m=function(x){var a=x!=null&&x.N.length!=0&&x.G[x.N[0]].uK;return{FB:a,P:x!=null&&x.oD(x.N[0]),M:{b:v.E.b4,M:{YF:a?"ungroup":"groupEvent",WA:{classID:a?"Ungr":"GrpL",null:e6.Yr("Lyr",!0)}}}}},l={name:[6,6,0],Bx:!0,P:m};
if(s)l.lA=[dV.Il,dV.bt,dV.e4];return l};f2.a7O=function(s,m){if(s)for(var C=0;C<s.N.length;C++){var l=s.G[s.N[C]];
if(l.add.TySh||l.add.SoLd||l.add.SoCo||l.add.GdFl||l.add.PtFl)return{P:!0}}return{P:!1}};f2.prototype.atU=function(s){n.uj(s);
var m=s.dataTransfer.getData("Text"),l=1,x=0;if(m==""){n.C$(s,this,this.cu.indexOf(this.u0),x+(l>.5?0:1))}else if(m!="--panel"){var m=JSON.parse(m),a=m._z;
if(a=="l")this.ru({d:t.i6,source:m.AD,target:x,mJ:l})}};f2.prototype.a0d=function(s){var m=this.u0,l=s.data,a;
if(m.N.indexOf(l.i)==-1){var x={d:t.dk,i:s.target.ob.index,GF:l.Ar};this.ru(x)}if(m.N.indexOf(l.i)==-1)return;
if(l.Ar==1){a=this.a4J}else if(l.Ar==2){a=this.aaZ}else if(l.Ar==3){a=this.a86}else if(l.Ar==4){a=this.aoJ}else if(l.Ar==5){a=this.aeE}else{a=this.Ue}a.U();
a.update(m);a.parent=this;var P=new h9(v.E.g,!0);P.data={d:v.J.Jm,UK:a,x:l.rQ.x+1,y:l.rQ.y+1};this.Y(P)};
f2.prototype.U=function(){g1.prototype.U.call(this);this.NH.U();this.p8.U();this.UC.U();this.XH.U();
if(this.u0)this.av(this.u0);var s="lrs/link lrs/fx lrs/adj lrs/mask lrs/folder lrs/newlayer lrs/bin".split(" ");
for(var C=0;C<this.xz.length;C++){var m=this.xz[C];m.tD(n.C5(s[C]))}};f2.prototype.av=function(s,m){if(s&&!s.CR)return;
if(s==null)n.RY(this.IM,"disabled");else n.po(this.IM,"disabled");this.u0=s;this.cu=m;if(this.TX!=null){this.Cp.removeChild(this.TX.Cp);
this.TX=null}if(s==null)return;this.TX=new fh(s.root,this,s,{wI:0});this.Cp.appendChild(this.TX.Cp);
if(s.N.length==0||s.G[s.N[0]]==null)n.RY(this.lm,"disabled");else{n.po(this.lm,"disabled");if(s.N.length==1&&s.jn)this.TX.ana(s.N);
var l=s.G[s.N[0]];if(l.gu()){this.NH.AZ([[15,10,27]].concat(aA.dP),[1].concat(aA.Nx));var x=aA.EB.indexOf(l.TR);
this.NH.f(x+1)}else{this.NH.AZ(aA.dP,aA.Nx);var x=aA.EB.indexOf(l.TR);this.NH.f(x)}this.p8.f(Math.round(100*l.opacity/255));
this.UC.f([l.Xz(0),l.Xz(1),l.Xz(2),l.Xz(31)]);this.XH.f(Math.round(100*(l.add.iOpa!=null?l.add.iOpa/255:1)))}};
f2.prototype.jm=function(s,m){var l=this.lm.getBoundingClientRect().height,x=59;if(l>70)x=84;if(l>100)x=108;
var a=m-(x+37);this.Cp.style.height=a+"px";this.Cp.style.width=s+"px"};f2.prototype.aev=function(s){this.ru({d:t.fL,Ur:this.NH._()})};
f2.prototype.a5P=function(s){this.ru({d:t.j$,Ur:Math.round(255*this.p8._()/100)})};f2.prototype.a69=function(s){this.ru({d:t.wx,Ur:[this.UC._(),[0,1,2,31]]})};
f2.prototype.a6M=function(s){this.ru({d:t._o,Ur:Math.round(255*this.XH._()/100)})};f2.prototype.arv=function(s){this.a6Z(s,this.apW)};
f2.prototype.aaE=function(s){this.a6Z(s,this.a03)};f2.prototype.a6Z=function(s,m){var l=s.currentTarget;
if(n.wH(m.m))return;s.stopPropagation();var x=l.getBoundingClientRect();m.U();m.update(this.u0);m.parent=this;
var a=new h9(v.E.g,!0);a.data={d:v.J.Jm,UK:m,x:x.left,y:x.top,aoY:!0};this.Y(a)};f2.prototype.acX=function(s){this.ru({d:t.iA})};
f2.prototype.anh=function(s){this.ru({d:this.u0.N.length>1?t.a4:t.R3})};f2.prototype.a27=function(s){this.ru({d:t.Yb})};
f2.prototype.ago=function(s){var m=this.u0;if(m.N.length==0)return;var l=m.G[m.N[0]],x=l.Ar;this.ru({d:x<=0?l.UB?t.RA:t.q_:x==3?t.wL:t.aG})};
f2.prototype.ara=function(s){this.ru({d:t.xV})};f2.prototype.ru=function(s){var m=new h9(v.E.u,!0);m.data=s;
m.c=r.ay;this.Y(m)};f2.prototype.qD=function(){var s=[[6,54,0],[11,6],[6,1],[6,21],[6,20],[6,13],[5,4]],m=[this.ara,this.aaE,this.arv,this.acX,this.anh,this.a27,this.ago],l=this.afw.bind(this);
for(var C=0;C<s.length;C++){var x=new hj("W",!1,s[C]);this.xz.push(x);n.i3(x.m,m[C].bind(this));this.hS.appendChild(x.m);
if(C>=s.length-3){var a=x.m;a.addEventListener("drop",l,!1);a.addEventListener("dragover",function(P){P.preventDefault()},!1);
a.addEventListener("dragenter",n.uj,!1)}}};f2.prototype.afw=function(s){n.uj(s);var m=0,l=this.xz;while(l[m].m!=s.currentTarget)m++;
l[m].q8();var x=s.dataTransfer.getData("Text");if(x=="")return;var x=JSON.parse(x);if(x._z=="l"){var a={d:[t.a4,t.Rk,t.q_][m-4]};
if(this.u0.N.indexOf(x.AD)==-1)a.i=x.AD;this.ru(a)}if(m!=6)return;if(x._z=="sm"||x._z=="s"){var P=new h9(v.E.u,!0);
P.c=r.Dk;P.data={d:x._z=="sm"?"st_clear":"st_delsingle",i:x.AD,AD:x.o8};this.Y(P)}if(x._z=="fm"||x._z=="f"){this.ru({d:x._z=="fm"?t.u8:t.RC,src:x.AD,o8:x.o8})}if(x._z=="m"||x._z=="vm"){this.ru({d:x._z=="m"?t.aG:t.RA,i:x.AD})}};
function fh(s,m,l,x){fR.call(this);this.parent=m;this.ob=s;this.oU=[];this.m=n.L("div","layeritem");
var a=s.i,f=15,i=!1;this.lm=n.L("div",l.N.indexOf(s.index)!=-1?"head selected":"head");if(s.i.add.artb!=null)n.RY(this.lm,"artb");
this.lm.setAttribute("style","height: "+(a.gu()?26:Math.floor(10+a.aec/n.W()))+"px");var P=n.L("div","headL"),o=n.L("div","headR"),G=n.L("div","lpineck");
this.Cp=n.L("div","lpibody");this.m.appendChild(this.lm);this.lm.appendChild(P);this.lm.appendChild(o);
if(a.A8()||a.UI())if(a.nE())this.m.appendChild(G);var _=this.lm;_.setAttribute("draggable","true");_.addEventListener("dragstart",this.pv.bind(this),!1);
_.addEventListener("drop",this.TO.bind(this),!1);_.addEventListener("dragover",this.Dw.bind(this),!1);
_.addEventListener("dragenter",n.uj,!1);_.addEventListener("dragleave",this.RI.bind(this),!1);var j=[],U=[null,null,null,null],S=n.L("div");
this.xN=n.L("div","eye");S.appendChild(this.xN);var X=n.L("div","space");this.XM=n.L("div","label");
this.XM.setAttribute("style","max-width:calc(100% - "+(96+s.depth*20)+"px)");this.XM.textContent=a.getName();
this.OJ=n.L("div","lock");this.a80=n.L("div","lrfx");this.C0=n.L("div","arfx");var c=this.a1n.bind(this),y=this.a0B.bind(this);
this.lm.addEventListener("click",y,!1);this.lm.addEventListener("contextmenu",c,!1);var O=[0,16711680,16748544,16763904,4513024,22015,11141375,7829367],p=a.add.lclr==null?0:O[a.add.lclr];
if(p==0)p=x.wI;var D=[p>>16,p>>8&255,p&255];for(var C=0;C<3;C++){D[C]=Math.round(.5*D[C]+.5*220)}if(1<n.W()&&n.W()<1.5)f=f/n.W();
S.setAttribute("style","background-color:rgba("+D.join(",")+","+(p==0?0:1)+");");this.xN.setAttribute("style","background-size: "+f+"px "+f+"px;");
var T=this.aaV.bind(this);S.addEventListener("mousedown",T,!1);S.addEventListener("mouseover",T,!1);
this.XM.addEventListener("pointerup",this.aqv.bind(this),!1);this.C0.addEventListener("click",this.asm.bind(this),!1);
j[0]=S;j[1]=X;j[10]=this.XM;function I(N,iQ,_){var jB=iQ.canvas;n.ai$(jB);if(_)N.setAttribute("draggable","true");
N.appendChild(jB);jB.setAttribute("style",jB.getAttribute("style")+"; pointer-events:none")}if(a.gu()){var H=n.L("div","arrow"),b=n.L("div","folder");
H.addEventListener("click",this.aie.bind(this),!1);j[2]=H;j[3]=b;if(a.add.lsct==hN.yF){for(var C=s.children.length-1;
C>=0;C--){var R=new fh(s.children[C],m,l,{wI:p});this.oU.push(R);this.Cp.appendChild(R.m)}this.m.appendChild(this.Cp)}H.setAttribute("class",a.add.lsct==hN.yF?"open":"closed")}else{this.N5=n.L("div","thumb");
j[5]=this.N5;I(this.N5,a.cw);if(eb.get(a.add))n.RY(a.cw.canvas,"gsicon")}var W=a.SE();if(W){this.Dr=n.L("div","chain");
this.gU=n.L("div","thumb");I(this.gU,s.i.ad$,!0);this.Dr.style.opacity=W.FT?1:0;this.Dr.addEventListener("click",this.ahT.bind(this),!1)}var J=a.Ee()&&a.add.vmsk;
if(a.add.vmsk&&!J){this.vK=n.L("div","chain");this.EF=n.L("div","thumb");I(this.EF,s.i.ahQ,!0);this.vK.style.opacity=a.add.vmsk.FT?1:0;
this.vK.addEventListener("click",this.ak4.bind(this),!1)}if(a.UI()&&a.Ao(l).v){this.bS=n.L("div","thumb");
I(this.bS,s.i.a6l,!1);this.bS.addEventListener("click",y,!1);this.bS.addEventListener("contextmenu",c,!1)}if(a.A8()){this.ajF=G;
G.addEventListener("contextmenu",c,!1);var u=new f2.Vp(iX.get([12,1]),"sm","layerstyle",s.depth,0,null);
u.parent=this;G.appendChild(u.m);var e=a.add.lmfx,Q=e.masterFXSwitch.v;u.tG(Q);for(var C=0;C<i4.order.length;
C++){var q=e[i4.rm[C]].v;if(q.length==0)continue;for(var Z=0;Z<q.length;Z++){var u=new f2.Vp(iX.get(i4.names[C]),"s","layerstyle",s.depth,1,[C,Z]);
u.tG(Q&&q[Z].v.enab.v);u.parent=this;G.appendChild(u.m)}}}if(a.UI()){var u=new f2.Vp(iX.get([12,55]),"fm",null,s.depth,0,-1,a.Ao(l).v?this.bS:null);
u.parent=this;G.appendChild(u.m);this.aji=u.m;this.aji.addEventListener("contextmenu",c,!1);var e=a.add.SoLd.filterFX.v,E=e.filterFXList.v,Q=e.enab.v;
u.tG(Q);for(var C=E.length-1;C>=0;C--){var z=E[C].v,V=ib.HK(z);if(eb.v9[V])V=eb.v9[V];var Y=z.Nm.v;if(ib.names[V])Y=iX.get(ib.names[V]);
if(eb.names[V])Y=iX.get(eb.names[V]);var d="afw_"+V,u=new f2.Vp(Y,"f",d,s.depth,1,C);u.tG(Q&&z.enab.v);
u.parent=this;G.appendChild(u.m)}}if(l.G.indexOf(a)==l.N[0]){var w=a.Ar,A;if(w<=0)A=this.N5;else if(w==1)A=this.gU;
else if(w==3)A=this.bS;if(A)A.setAttribute("class","thumb active");if(a.UB&&this.EF)this.EF.setAttribute("class","thumb active")}S.style.opacity=a.p$()?1:.25;
X.setAttribute("style","width:"+Math.max(0,s.depth-1)*18+"px");var $=a.add.lspf!=null&&a.add.lspf!=0;
this.OJ.style.opacity=a.Xz(31)?1:.5;j[4]=a.uK?n.L("div","clipp"):null;j[6]=W?this.Dr:null;j[7]=W?this.gU:null;
j[8]=a.add.vmsk&&!J?this.vK:null;j[9]=a.add.vmsk&&!J?this.EF:null;var K=a.FX,h=l.N;if(K!=0)for(var C=0;
C<h.length;C++)if(l.G[h[C]].FX==K){i=!0;break}if(i){U[0]=n.L("div",a.KV?"link":"linkX");U[0].addEventListener("click",this.a1o.bind(this),!1)}U[1]=$?this.OJ:null;
U[2]=a.A8()?this.a80:null;U[3]=a.A8()||a.UI()?this.C0:null;this.C0.setAttribute("class",a.nE()?"arfx open gsicon":"arfx closed gsicon");
var F=j;for(var C=0;C<F.length;C++)if(F[C])P.appendChild(F[C]);F=U;for(var C=0;C<F.length;C++)if(F[C])o.appendChild(F[C])}fh.prototype=new fR;
fh.prototype.ana=function(s){var m=this.ob.index;if(s.indexOf(m)!=-1){if(this.m.scrollIntoView)this.m.scrollIntoView({block:"nearest"})}for(var C=0;
C<this.oU.length;C++)this.oU[C].ana(s)};fh.LF=function(s,m){var l=m.getBoundingClientRect();return(s.clientY-l.top)/l.height};
fh.prototype.pv=function(s){s.stopPropagation();var m=s.target==this.gU?"m":s.target==this.EF?"vm":"l";
s.dataTransfer.setData("Text",JSON.stringify({_z:m,AD:this.ob.index}))};fh.prototype.RI=function(s){n.uj(s);
this.Eb()};fh.prototype.TO=function(s){n.uj(s);this.Eb();var m=s.dataTransfer.getData("Text"),l=this.parent.u0,x=fh.LF(s,this.lm),a=this.ob.index;
if(x>.8){var P=!0,o=l.root.Wp(a);while(o.parent!=null){var G=o.parent,_=G.children;if(_.indexOf(o)!=0)P=!1;
o=o.parent}if(P){a=0;x=1}}if(m==""){n.C$(s,this,this.parent.cu.indexOf(l),a+(x>.5?0:1))}else if(m!="--panel"){var m=JSON.parse(m),j=m._z;
if(j=="l")this.ru({d:t.i6,source:m.AD,target:a,mJ:x});else if(j=="m"||j=="vm")this.ru({d:j=="m"?t.k4:t.p5,src:m.AD,B1:a});
else fh.a7v(s,m,this)}};fh.a7v=function(s,m,l,x){var a=m._z,P=l.ob.index,o=m.AD;if(a=="s"||a=="sm")l.ru({d:t.KB,src:o,B1:P,o8:m.o8});
if(a=="f"||a=="fm")l.ru({d:t.yA,src:o,B1:P,o8:m.o8,RH:x==null?0:x})};fh.prototype.Dw=function(s){n.uj(s);
var m=fh.LF(s,this.lm),l=this.ob.i.gu()&&.5<m&&m<.8;this.Eb();var x="inset 0 "+(l?0:m>.5?-3:3)+"px "+(l?"5px black":"0 rgba(0,0,0,0.5)");
this.lm.style.boxShadow=x};fh.prototype.Eb=function(s){this.lm.style.boxShadow=""};fh.apQ=-1;fh.WY=!1;
fh.apX=function(s){fh.WY=!1;document.body.removeEventListener("mouseup",fh.apX)};fh.prototype.aaV=function(s){if(s.button!=0)return;
if(s.type=="mousedown"){fh.WY=!0;document.body.addEventListener("mouseup",fh.apX,!1)}if(s.type=="mouseover"&&(!fh.WY||fh.apQ==this.ob.index))return;
n.uj(s);this.ru({d:t.Fm,i:this.ob.index});fh.apQ=this.ob.index};fh.prototype.aie=function(s){n.uj(s);
this.ru({d:t.bT,i:this.ob.index})};fh.prototype.ahT=function(s){this.ru({d:t.VW,i:this.ob.index})};fh.prototype.ak4=function(s){this.ru({d:t.TK,i:this.ob.index})};
fh.CF=0;fh.prototype.aqv=function(s){var m=fh.CF;fh.CF=Date.now();if(Date.now()-m>300)return;s.preventDefault();
s.stopPropagation();this.lm.setAttribute("draggable","false");var l=new g1.gr(this.XM,this.vo.bind(this))};
fh.prototype.vo=function(s){this.ru({d:t.eQ,i:this.ob.index,name:s})};fh.prototype.asm=function(s){this.ru({d:t.hf,i:this.ob.index})};
fh.prototype.a1o=function(s){this.ru({d:t.ZA,i:this.ob.index})};fh.prototype.a1n=function(s){var m=s.sourceCapabilities;
if(m)m=m.firesTouchEvents;if(s.button!=2&&m!=!0)return;var l=this.Ar(s);if(l!=3&&s.currentTarget==this.aji)l=4;
if(s.target==this.a80||s.currentTarget==this.ajF)l=5;var x=new h9("rclick",!0);x.data={i:this.ob.index,Ar:l,rQ:n.lX(s,document.body)};
this.Y(x)};fh.prototype.Ar=function(s){var m=s.target,l=m;return l==this.EF?2:l==this.gU?1:l==this.N5?0:l==this.bS?3:-1};
fh.prototype.a0B=function(s){var m=s.target,U;if(m==this.xN||m==this.C0||m==this.Dr||m==this.vK||m.tagName&&m.tagName.toLowerCase()=="input")return;
var l=this.Ar(s),x=this.parent.u0,a=this.ob.index,P=x.G[a];if(m==this.OJ){this.ru({d:t.wx,i:a,Ur:[[!1,!1,!1,!1,!1],[0,1,2,3,31]]});
return}if(s.button==0&&s.detail==2){if(m==this.XM)return;var o=new h9(v.E.u,!0),G=new h9(v.E.g,!0),_=new h9(v.E.b4,!0);
if(l==0&&P.add.SoCo){var j=L.K.Qv(P.add.SoCo.Clr.v);G.data={d:v.J.Qm,It:"colorpicker",wI:j.o<<16|j.z<<8|j.S,QW:function(c){var y=L.K.gc({S:c&255,z:c>>>8&255,o:c>>16&255});
y={classID:"null",Clr:{t:"Objc",v:y}};var O=new h9(v.E.u,!0);O.c=r.ay;O.data={d:t.L2,tP:[a],EY:!0,Z:{pC:1,ts:y}};
this.Y(O)}.bind(this),Ok:!0}}else if(l==0&&(eb.get(P.add)||P.add.SoCo||P.add.GdFl||P.add.PtFl))G.data={d:v.J.OO,It:g1.E4.VP};
else if(l!=0&&l!=-1)G.data={d:v.J.OO,It:g1.E4.VP};else if(l==0&&P.add.SoLd)_.data={YF:"placedLayerEditContents",WA:{classID:"placedLayerEditContents"}};
else if(l==0&&P.add.TySh){o.c=r.sX;o.data={d:"editCurr",m6:a}}else G.data={d:v.J.Qm,It:"layerstyle",i:a};
this.Y(_.data?_:G.data?G:o);return}if(s.button!=0)return;if(l==1||l==3){var S=l==3?P.Ao(x).v:P.SE();
U=S.IU?x.t.OL.join("")=="111"?1:2:0}var X={d:t.dk,i:a,GF:l,abQ:U,a2a:!0};this.ru(X)};fh.prototype.ru=function(s){var m=new h9(v.E.u,!0);
m.data=s;m.c=r.ay;this.Y(m)};f2.Vp=function(s,m,l,x,a,P,o){fR.call(this);this.a6X=m;this.TF=l;this.index=P;
this.m=n.L("div","styleitem");this.lm=n.L("div","head");this.ajx=null;if(m=="f"){var G=this.ajx=n.L("div","headR");
G.textContent="\u2699";this.lm.appendChild(G)}this.IB=n.L("div","eye gsicon");this.XM=n.L("div","label");
this.m.appendChild(this.lm);this.lm.appendChild(this.IB);if(o){this.gU=o;this.lm.appendChild(this.gU);
this.lm.setAttribute("style","height: "+(o.firstChild.height/n.W()+10)+"px")}this.XM.innerHTML=s;this.m.setAttribute("style","margin-left: "+(24+x*16+a*22)+"px");
this.lm.appendChild(this.XM);this.IB.addEventListener("click",this.a3Q.bind(this),!1);var _=this.m;_.setAttribute("draggable","true");
_.addEventListener("dragstart",this.pv.bind(this),!1);if(!0){_.addEventListener("drop",this.TO.bind(this),!1);
_.addEventListener("dragover",this.Dw.bind(this),!1);_.addEventListener("dragenter",n.uj,!1);_.addEventListener("dragleave",this.RI.bind(this),!1)}this.m.addEventListener("click",this.I6.bind(this),!1)};
f2.Vp.prototype=new fR;f2.Vp.prototype.pv=function(s){s.stopPropagation();s.dataTransfer.setData("Text",JSON.stringify({_z:this.a6X,AD:this.parent.ob.index,o8:this.index}))};
f2.Vp.prototype.RI=function(s){n.uj(s);this.Eb()};f2.Vp.prototype.TO=function(s){n.uj(s);this.Eb();var m=s.dataTransfer.getData("Text");
if(m=="")return;var m=JSON.parse(m);fh.a7v(s,m,this.parent,this.index+(fh.LF(s,this.lm)>.5?0:1))};f2.Vp.prototype.Dw=function(s){n.uj(s);
var m=fh.LF(s,this.lm)>.5;this.Eb();var l="border-"+(m?"bottom":"top");this.lm.style[l]="0.2em solid rgba(0,0,0,0.5)"};
f2.Vp.prototype.Eb=function(s){this.lm.style.border="none"};f2.Vp.prototype.tG=function(s){var m=15;
if(1<n.W()&&n.W()<1.5)m=m/n.W();this.IB.setAttribute("style","background-size: "+m+"px "+m+"px;");this.IB.style.opacity=s?1:.2};
f2.Vp.prototype.I6=function(s){if(s.target==this.IB)return;var m=this.parent.ob.index;if(s.detail!=1&&this.TF!=null){var m=this.parent.ob.index,l=new h9(v.E.g,!0);
if(this.TF.indexOf("afw_")==0){var x=this.TF.slice(4),a=B[x]||ib.C[x],P=s.target==this.ajx;if(!P&&!a)return;
l.data=r.Yo.Pn(P?"blendOptions":x,{i:m,index:this.index})}else l.data={d:v.J.Qm,It:this.TF,i:m,index:this.index};
this.Y(l)}else{if(s.target.getAttribute("class")!="thumb")this.parent.ru({d:t.dk,i:m,GF:0})}};f2.Vp.prototype.a3Q=function(s){var m={fm:t.gh,f:t.Uc,sm:t.Q7,s:t.vI}[this.a6X];
this.parent.ru({d:m,i:this.parent.ob.index,index:this.index})};function bB(){g1.call(this,"Guide Guy",!1,"---panels/guideguy",g1.E4.ap6);
this.zx=null;this.Rx=[];var s=n.L("div","form padded");this.IM.appendChild(s);s.setAttribute("style","width:200px");
this.IM.appendChild(s);var m=n.L("canvas"),l=m.getContext("2d");m.width=m.height=160;var x=[32,0,16,160,0,32,160,16,0,112,160,16],a="Margin Left,Margin Top,Margin Right,Margin Bottom,Column Count,Row Count,Column Width,Row Height,Column Gap,Row Gap".split(","),P=[0,0,0,0,0,0,0,0,0,0];
for(var C=0;C<10;C++){l.clearRect(0,0,160,160);l.setTransform(1,0,0,1,80,80);l.rotate((C&3)*Math.PI/2);
l.translate(-80,-80);l.fillStyle="rgba(0,0,0,0.3)";if(C<4){for(var o=0;o<12;o+=4){l.fillStyle=o==0?"#000000":"rgba(0,0,0,0.3)";
l.fillRect(x[o],x[o+1],x[o+2],x[o+3])}}else if(C<6){var G=8*6;l.fillRect(0,0,G,160);l.fillRect(8*7,0,G,160);
l.fillStyle="#000000";l.fillRect(8*14,0,G,160)}else if(C<8){l.fillRect(0,0,16,160);l.fillRect(160-16,0,16,160);
l.fillRect(32,0,160-64,160);l.fillStyle="#000000";l.fillRect(32,80-8,160-64,8*1)}else{l.fillRect(0,0,8*7,160);
l.fillRect(8*13,0,160,160);l.fillStyle="#000000";l.fillRect(8*7,80-8,8*6,8*1)}var _="<img src=\""+m.toDataURL()+"\" class=\"autoscale gsicon\" /> ",j=new dy(_,0,200,C==4||C==5?null:"px",null,null,null,4,a[C]);
j.parent=this;j.h(v.E.p,this.a8M,this);j.f(P[C]);j.U();this.Rx.push(j);s.appendChild(j.m)}var U=[[11,14],[11,15,0]];
this.R9=[];for(var C=0;C<U.length;C++){var S=new hj(U[C],!0,null,!0);this.R9.push(S);S.h("click",this.Se,this);
s.appendChild(S.m)}for(var C=0;C<6;C++){l.setTransform(1,0,0,1,80,80);l.rotate(Math.floor(C/3)*Math.PI/2);
l.translate(-80,-80);l.clearRect(0,0,160,160);l.fillStyle="rgba(0,0,0,0.3)";l.fillRect(0,0,160,160);
l.clearRect(16,16,128,128);l.fillStyle="#000000";var X=C%3;l.fillRect([0,9,18][X]*8,0,16,160);var _="<img src=\""+m.toDataURL()+"\" class=\"autoscale gsicon\" /> ",S=new hj(_,!1,null,!1);
this.R9.push(S);S.h("click",this.Se,this);s.appendChild(S.m)}}bB.prototype=new g1("");bB.prototype.U=function(){g1.prototype.U.call(this);
for(var C=0;C<this.R9.length;C++)this.R9[C].U()};bB.prototype.a8M=function(s){var m=this.Rx,l=m.indexOf(s.target),x=Math.floor(l/2),a=l&1,P=[];
for(var C=0;C<4;C++)P.push(m[2*C+a]._());var o=-1;if(x==2&&P[2]!=0&&P[3]!=0&&P[4]!=0)o=4;if(x==3&&P[3]!=0&&P[2]!=0&&P[4]!=0)o=4;
if(x==4&&P[4]!=0&&P[2]!=0&&P[3]!=0)o=3;if(o!=-1)m[2*o+a].f(0)};bB.prototype.Se=function(s){var m=this.zx,l=this.R9.indexOf(s.target),x=[[],[]];
if(m==null)return;var a=m.q?m.q.rect:new bU(0,0,m.e,m.l),P=a.e,o=a.l;if(l==0){var G=[[],[]];for(var C=0;
C<this.Rx.length;C++)G[C&1].push(this.Rx[C]._());var _=[bB.aqz(G[0],a.x,a.x+P),bB.aqz(G[1],a.y,a.y+o)];
x=bB.ae7(_);r.PL.Fj(x,m.Ls())}else if(l==1){}else{l-=2;var j=Math.floor(l/3),_=[[],[]];_[j].push([a.x,a.x+P/2,a.x+P,a.y,a.y+o/2,a.y+o][l]);
x=bB.ae7(_);r.PL.Fj(x,m.Ls())}this.an4(x)};bB.ae7=function(s){var m=[],l=[];for(var x=0;x<2;x++)for(var C=0;
C<s[x].length;C++){m.push([x,s[x][C]]);l.push(-1)}return[m,l]};bB.prototype.aiM=function(s){var m=this.aaB.indexOf(s.target)};
bB.prototype.an4=function(s){var m=new h9(v.E.u,!0);m.c=r.G1;m.data={d:"gids",uP:s};this.Y(m)};bB.aqz=function(s,m,l){var x=[],a=s[2],P=s[3],o=s[4],G=0;
if(a==0)G++;if(P==0)G++;if(o==0)G++;if(G>1&&a==0&&P==0){if(s[0]!=0)x.push(m+s[0]);if(s[1]!=0)x.push(l-s[1]);
return x}var _=l-m-s[0]-s[1];if(a==0){if(o==0){a=Math.floor(_/P);o=(_-a*P)/(a-1)}else{a=1;while(P*a+o*(a-1)+P+o<=_)a++}}else if(a!=0&&P!=0){if(a*P>_)a=Math.floor(_/P);
o=(_-a*P)/(a-1)}x.push(m+s[0],l-s[1]);var P=(_-o*(a-1))/a;for(var C=1;C<a;C++){if(o==0)x.push(m+s[0]+C*P);
else x.push(m+s[0]+C*P+(C-1)*o,m+s[0]+C*P+C*o)}return x};bB.prototype.av=function(s){this.zx=s};function gV(){g1.call(this,[9,2],!1,"---panels/properties",g1.E4.VP);
this.a8h=null;this.qu=null;this.bR=null;this.aaF=-1;this.ys=null}gV.prototype=new g1("");gV.prototype.jm=function(s,m){this.h_=s;
this.Cm=m;s=Math.min(s-16,286);m=m-12;var l=this.ys;if(l){l.style.width=s+"px";l.style.height=m+"px";
for(var C=0;C<3;C++)this.JY[C].jm(s-12,m)}};gV.prototype.XF=function(){this.ys=n.L("div","padded scrollable");
this.IM.appendChild(this.ys);var s=n.L("span");this.ys.appendChild(s);this.oO=[new hj([0,3]),new hj([12,73]),new hj([12,91,0])];
for(var C=0;C<this.oO.length;C++){var m=this.oO[C];m.h("click",this.alv,this);s.appendChild(m.m);if(C==2)m.m.style.marginRight="0"}this.ys.appendChild(n.L("hr"));
this.iZ=new gV.ye;this.iZ.parent=this;this.St=new gV.M3;this.St.parent=this;this.JF=new gV.dA;this.JF.parent=this;
this.JY=[this.iZ,this.St,this.JF];this.ys.appendChild(this.iZ.m);this.jm(this.h_,this.Cm)};gV.prototype.alv=function(s){var C=this.oO.indexOf(s.currentTarget);
this.vE(C);this.ac4(C==1?this.St.jN:-1)};gV.prototype.vE=function(s){for(var C=0;C<3;C++){this.oO[C].q8();
var m=this.JY[C].m;if(m.parentNode==this.ys&&C!=s)this.ys.removeChild(m);if(m.parentNode!=this.ys&&C==s)this.ys.appendChild(m)}this.oO[s].Kd()};
gV.prototype.ac4=function(s){var m=this.qu.N[0],l=this.qu.G[m],x=s+1;if(s==1&&l.UB)return;var a=new h9(v.E.u,!0);
a.c=r.ay;if(s!=1&&l.UB){a.data={d:t.dk,i:m,GF:2};this.Y(a)}a.data={d:t.dk,i:m,GF:x};this.Y(a)};gV.prototype.U=function(){g1.prototype.U.call(this);
if(this.ys==null)return;this.av(this.qu);for(var C=0;C<3;C++){this.oO[C].U();this.JY[C].U()}};gV.prototype.tu=function(){if(!n.wH(this.IM))return;
if(this.ys==null){this.XF();this.L8(this.bR,gN.ki);this.av(this.a8h);this.U()}};gV.prototype.av=function(s){this.a8h=s;
if(this.ys==null)return;this.iZ.av(s);this.St.av(s);this.JF.av(s);if(s==null||s.N.length==0||s.G[s.N[0]]==null){n.RY(this.IM,"disabled");
this.qu=null;return}else n.po(this.IM,"disabled");var m=s.N[0],l=s.G[m],x=s.S4(),a=x[0],P=x[1];if(P.length!=0){var o=a[P[0]],G=o.add.vogk,_=!1;
if(G)for(var C=0;C<G.length;C++){var j=G[C].v;if(!L.R2.mz(j))continue;_=!0;m=o.jV}}m+=","+_;if(s!=this.qu||this.aaF!=m){this.qu=s;
this.aaF=m;if(_)this.vE(2);else if(l.Ar<1&&!l.UB)this.vE(0);else this.vE(1)}this.oO[1].k5(this.St.jN!=-1);
this.oO[2].k5(_)};gV.prototype.L8=function(s,m){this.bR=s;if(this.iZ)this.iZ.L8(s,m);if(this.JF)this.JF.L8(s,m)};
gV.ye=function(){fR.call(this);this.m=n.L("div","form");this.a7N=new jG("Hello");this.KO=new hj([1,12,2],null,null,!0);
this.KO.m.style.a6N="right";this.KO.h("click",this.gZ,this);this.m.appendChild(this.a7N.m);this.m.appendChild(this.KO.m);
this.Jq=null;this.xm=null;this.qu=null;this.bR=null;this.akP=-1;this.aiQ=null;this.fe=new fM(!0);this.fe.parent=this;
this.fe.h(v.E.p,this.adC,this);this.g2=n.L("div","marged hiline");this.g2.appendChild(this.fe.m);this.To=new dJ("GrFl",!0);
this.To.parent=this;this.To.h(v.E.p,this.ab6,this);this.Y0=n.L("div","marged hiline");var s="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");
for(var C=0;C<s.length;C++){var m=this.To._p[s[C]].m;this.Y0.appendChild(m)}this.Ug=new dJ("patternFill",!0);
this.Ug.parent=this;this.Ug.h(v.E.p,this.aj$,this);this.z$=n.L("div","marged hiline");var s=["Ptrn","Angl","Scl","Algn","phase"];
for(var C=0;C<s.length;C++){var m=this.Ug._p[s[C]].m;this.z$.appendChild(m)}this.uJ={};for(var l in eb.names){if(B[l]==null)continue;
this.uJ[l]=new B[l];this.uJ[l].h(v.E.p,this.aq0,this);this.uJ[l].parent=this}var x=this.adG=n.L("div","marged hiline");
this.qz=new b4(0,!0);x.appendChild(this.qz.m);this.qz.h(v.E.p,this.sa,this);this.Qt=new gZ;this.Qt.parent=this;
this.Qt.h(v.E.p,this.sa,this);x.appendChild(this.Qt.m)};gV.ye.prototype=new fR;gV.ye.prototype.jm=function(s,m){var l=this.uJ;
for(var x in l)l[x].jm(s,m)};gV.ye.prototype.gZ=function(s){var m=this.qu,l=m.G[m.N[0]],x=eb.get(l.add);
this.xm.f(ib.Xi(x));this.aq0()};gV.ye.prototype.U=function(){for(var s in this.uJ)this.uJ[s].U();this.To.U();
this.Ug.U();this.Qt.U();this.qz.U();this.KO.U()};gV.ye.prototype.sa=function(s){var m=this.qz._(),l=t.JE(new bU(m[0],m[1],m[2],m[3])),x=this.Qt.aeT();
x.artboardRect={t:"Objc",v:l};var a=new h9(v.E.u,!0);a.c=r.ay;a.data={d:t.Md,kO:x};this.Y(a)};gV.ye.prototype.adC=function(s){var m=this.qu,l=m.N[0];
if(m.G[l].add.SoCo==null)return;var x=JSON.parse(JSON.stringify(m.G[l].add.SoCo));x.Clr.v=this.fe._();
this.Mk({pC:1,ts:x})};gV.ye.prototype.ab6=function(s){var m=this.qu,l=m.N[0];if(m.G[l].add.GdFl==null)return;
this.Mk({pC:2,ts:this.To._()})};gV.ye.prototype.aj$=function(s){this.Mk({pC:3,ts:this.Ug._()})};gV.ye.prototype.Mk=function(s){this.a7T(r.ay,{d:t.L2,tP:[this.qu.N[0]],EY:!0,Z:s})};
gV.ye.prototype.aq0=function(s){this.a7T(r.P4,{d:"edit_layer",Z:this.xm._()})};gV.ye.prototype.a7T=function(s,m){var l=new h9(v.E.u,!0);
l.c=s;l.data=m;this.Y(l)};gV.ye.prototype.av=function(s,m){var l=iX.get([0,3]),x=!1,a=null;this.qu=s;
if(s&&s.G.length>0&&s.N.length!=0&&s.G[s.N[0]]){var P=s.G[s.N[0]],o=eb.get(P.add);if(o!=null&&this.uJ[o]!=null){a=this.uJ[o].m;
this.xm=this.uJ[o];this.uJ[o].f(JSON.parse(JSON.stringify(P.add[o])));if(s.N[0]!=this.akP){var G=s.cf(s.N[0]-1);
this.aiQ=L.XU(G)}this.uJ[o].AF(this.aiQ);l=iX.get(eb.names[o]);x=!0}if(P.add.SoCo){a=this.g2;this.fe.f(P.add.SoCo.Clr.v);
l=iX.get([6,48,0,0])}if(P.add.GdFl){a=this.Y0;this.To.update(s,P.add.GdFl);l=iX.get([6,48,0,1])}if(P.add.PtFl){a=this.z$;
this.Ug.update(s,P.add.PtFl);l=iX.get([6,48,0,2])}if(P.add.artb){var _=P.add.artb,j=P.wy();a=this.adG;
this.Qt.al$(_);this.qz.f([j.x,j.y,j.e,j.l],[s.sz,s.e,this.bR.HD.jq]);l="Artboard"}this.akP=s.N[0]}if(a!=this.Jq){if(this.Jq)this.m.removeChild(this.Jq);
if(a!=null)this.m.appendChild(a);this.Jq=a}this.a7N.f(l);this.KO.m.style.display=x?"":"none"};gV.ye.prototype.L8=function(s,m){this.bR=s;
this.To.L8(s,m);this.Ug.L8(s,m);if(m==gN.iY)this.av(this.qu,s);for(var l in this.uJ)this.uJ[l].L8(s,m)};
gV.M3=function(){fR.call(this);this.m=n.L("div","form");this.qu=null;this.jN=0;var s=n.L("span","fitem");
this.m.appendChild(s);this.oO=[new hj([6,2]),new hj([6,3]),new hj([6,50])];for(var C=0;C<this.oO.length;
C++){var m=this.oO[C];m.h("click",this.ab_,this);s.appendChild(m.m)}this.Gl=new aR([12,74],0,255);this.Gl.h(v.E.p,this.C1,this);
this.m.appendChild(this.Gl.m);this.h$=new aR([7,6],0,500,"px",2,!0);this.h$.h(v.E.p,this.C1,this);this.m.appendChild(this.h$.m);
this.sE=new hj([4,11],null,null,!0);this.sE.h("click",this.amR,this)};gV.M3.prototype=new fR;gV.M3.prototype.amR=function(){var s=new h9(v.E.u,!0);
s.c=r.P4;s.data={d:"start",AK:"nvrt"};this.Y(s)};gV.M3.prototype.C1=function(s){var m=this.Gl._(),l=this.h$._(),x=new h9(v.E.u,!0);
x.c=r.ay;x.data={d:t.e_,wo:this.qu.N[0],oA:{MJ:this.jN,Gl:m,h$:l}};this.Y(x)};gV.M3.prototype.U=function(){for(var C=0;
C<this.oO.length;C++)this.oO[C].U();this.Gl.U();this.h$.U();this.sE.U()};gV.M3.prototype.av=function(s){this.qu=s;
this.ga()};gV.M3.prototype.ab_=function(s){this.ga(this.oO.indexOf(s.currentTarget));this.parent.ac4(this.jN)};
gV.M3.prototype.ga=function(s){var m=this.qu,l=this.oO;for(var C=0;C<3;C++){var x=l[C];x.q8();x.Hv()}if(m==null||m.G.length==0||m.N.length==0||m.G[m.N[0]]==null)return;
var a=-1,P=m.G[m.N[0]];if(P.UI()&&P.Ao(m).v!=null){l[2].o5();a=2}if(P.add.vmsk){l[1].o5();a=1}if(P.SE()){l[0].o5();
a=0}if(s!=null)a=s;else if(P.UB)a=1;else if(P.Ar==3)a=2;else if(P.Ar==1)a=0;this.jN=a;if(a==-1){this.Gl.Hv();
this.h$.Hv();return}var o=P.ss(a);this.Gl.o5();this.h$.o5();this.Gl.f(o.Gl);this.h$.f(o.h$);l[a].Kd();
var G=this.sE.m;if(a==0)this.m.appendChild(G);else if(G.parentNode==this.m)this.m.removeChild(G)};gV.dA=function(){fR.call(this);
this.m=n.L("div","form");this.zx=null;this.bR=null;this.$R=-1;this.Td=new b4(0,!1);this.zD=new aR([12,15],-180,180,"\xB0",2);
this.de=new b4(1,!0);this.Ci=new aR([12,94,0],0,100,null,2);this.Uh=new aR([12,78],3,30);this.Td.h(v.E.p,this.jy,this);
this.zD.h(v.E.p,this.jy,this);this.de.h(v.E.p,this.jy,this);this.Ci.h(v.E.p,this.jy,this);this.Uh.h(v.E.p,this.jy,this)};
gV.dA.prototype=new fR;gV.dA.prototype.U=function(){this.Td.U();this.zD.U();this.de.U();this.Ci.U();
this.Uh.U()};gV.dA.prototype.jy=function(s){var m=this.zx,l=L.R2.CX(m),x=s.target._(),a=[this.Td,this.zD,this.de,this.Ci,this.Uh].indexOf(s.target);
if(a==0){var P=[];P[0]=x[0];P[1]=x[1];P[2]=P[0]+x[2];P[3]=P[1]+x[3];x=P}if(a==1)x=x*Math.PI/180;var o={0:1,1:2,2:3,3:3,4:4}[a];
l[o]=x;var G=new h9(v.E.u,!0);G.c=r.ay;G.data={d:t.KX,Z:l};this.Y(G)};gV.dA.prototype.av=function(s){var m=this.m;
this.zx=s;if(s==null)return;var l=this.bR,x=[s.sz,s.e,l.HD.jq],a=L.R2.CX(s),P=a[0],o=a[1];if(o==null)return;
var G=P!=this.$R;this.$R=P;if(G)n.em(m);if(G)m.appendChild(this.Td.m);if(G)m.appendChild(this.zD.m);
this.Td.f([o[0],o[1],o[2]-o[0],o[3]-o[1]],x);this.zD.f(a[2]*180/Math.PI);if(P==2){if(G)m.appendChild(this.de.m);
var _=a[3];this.de.f(_,x)}if(P==7||P==8){if(G)m.appendChild(this.Ci.m);this.Ci.f(a[3])}if(P==8){if(G)m.appendChild(this.Uh.m);
this.Uh.f(a[4])}};gV.dA.prototype.L8=function(s,m){this.bR=s;this.av(this.zx)};function aL(s){g1.call(this,s.name,!0);
this.u0=s;this.pX=null;this.u4=document.createElement("canvas");this.s0=this.u4.getContext("2d");this.pQ=document.createElement("canvas");
this.tH=this.pQ.getContext("2d");var m=16,l=L.B(16*16*4);L.Oy(l,m,m,8);this.Kq=L.scale.Op(l,m,m);this.f2=new jK(this.IM);
this.f2.parent=this;this.Jx=0;this.aaw="";this.v6=4}aL.prototype=new g1;aL.prototype.a3c=function(){if(this.u0.m3())return window.confirm(iX.get([22,6,3])+" "+this.u0.name+". "+iX.get([22,6,4]));
return!0};aL.prototype.L8=function(s,m){this.pX=s};aL.prototype.av=function(s){this.tu();this.ZJ()};
aL.prototype.jm=function(s,m){if(s<=0||m<=0)return;this.h_=s;this.Cm=m;var l=this.u0,x=n.W();l.t.tH.e=Math.floor(s*x);
l.t.tH.l=Math.floor(m*x);n.ek(this.pQ,s,m);n.ek(this.u4,s,m);n.ek(M.Uv(),s,m);if(l.t.O==0)l.t.O=r.D3.qE(l.e,l.l,s*x,m*x);
this.ZJ()};aL.prototype.tu=function(){var s=this.IM.firstChild;if(!M.wR&&s==M.Uv()||M.wR&&s==this.pQ)this.IM.removeChild(s);
var m=M.wR?M.Uv():this.pQ;if(!n.wH(m))this.IM.appendChild(m)};aL.prototype.ZJ=function(){if(M.wR!=this.v6){this.Jx=0;
this.aaw=""}this.v6=M.wR;if(this.pX==null)return;if(M.wR)this.abP();else this.rh();var s=this.u0;this.Jx=s.t.O;
this.aaw=JSON.stringify(s.t.OL)};aL.prototype.abP=function(){if(M.wR&&aL.at3==null)aL.at3=new aL.lJ(!1);
if(M.wR&&aL.a3L==null)aL.a3L=[new aL.lJ(!0,2),new aL.lJ(!0,8),new aL.lJ(!0,32),new aL.lJ(!0,128)];var s=this.u0,j,X=0;
if(s.UM==null)return;var m=s.t,l=m.tH.e,x=m.tH.l,a=M.og;this.tH.clearRect(0,0,l,x);var P=this.abY(s);
if(m.mY==null)m.mY=new M.KY(l,x);if(P)m.mY.set(this.pQ);else{M.C8(m.mY);M.MV(1)}var o=m.fU(0,0),G=new ae;
G.scale(l,x);G.concat(m.oX(!0));G.scale(1/s.e,1/s.l);var _=[G.lz,G.S,0,G.In,G.Am,0,G.sI,G.bW,1];if(aL.asW==null)aL.asW=new Float32Array(4*1024);
var U=[0,0,0,0],S=aL.asW;if(s.add.artd){S.fill(0);U=aL.hk(s);var c=s.e,y=s.l,f=0;for(var C=0;C<s.G.length;
C++){var O=s.G[C],p=O.add.artb;if(p==null||!O.p$())continue;var D=O.wy();S[X]=D.x/c;S[X+1]=D.y/y;S[X+2]=D.e/c;
S[X+3]=D.l/y;X+=4;if(X==S.length)break}if(X>2*4)f++;if(X>8*4)f++;if(X>32*4)f++;j=aL.a3L[f];S=new Float32Array(S.buffer,0,[2,8,32,128][f]*4)}else j=aL.at3;
M.fd(l,x);M.MV(0);M.fd(l,x);j.rR();j.sw(m.mY.Vh,s.UM.Vh,new Float32Array(_),new Float32Array([l/8,x/8,o.x/l,o.y/x]),s.e,s.l,1/s.t.O,l,x,new Float32Array(U),S,new Float32Array(L.G0.mP(L.G0.VF(m.OL))));
a.drawArrays(a.TRIANGLES,0,6)};aL.hk=function(s){return[0,0,0,0]};aL.a4p=function(s){var m=L.K.Qv(s.v),l=[m.o/255,m.z/255,m.S/255,1];
for(var C=0;C<4;C++)l[C]=Math.min(1,l[C]);return l};aL.Nq=function(s,m){var l=s[2]*255;if(M.wR)l=m?0:Math.max(1,l);
return"rgba("+s[0]*255+","+s[1]*255+","+l+","+s[3]+")"};aL.eI=function(s){if(M.wR)for(var C=0;C<s.length;
C+=4){if(s[C+2]==0)s[C+2]=3}};aL.prototype.rh=function(){var s=this.u0;if(s.buffer==null)return;var m=s.t,l=m.tH,x=l.e,a=l.l,P=new bU(0,0,s.e,s.l);
this.s0.clearRect(0,0,x,a);this.tH.clearRect(0,0,x,a);var o=m.oX(!0),G=o.clone();G.ms();if(s.add.artd==null){this.tH.save();
var _=G.oG(new fz(0,0));G.translate(-_.x,-_.y);this.tH.translate(Math.round(_.x),Math.round(_.y));this.tH.fillStyle=this.Kq;
this.ws(L.H.$$(P),G,this.tH);this.tH.fill();this.tH.restore()}else{this.tH.fillStyle=aL.Nq(aL.hk(s));
this.tH.fillRect(0,0,x,a);this.tH.save();this.tH.setTransform(G.lz,G.S,G.In,G.Am,G.sI,G.bW);var j=s.root.children;
for(var C=0;C<j.length;C++){var U=j[C].i;if(U.add.artb==null||!U.p$())continue;var S=U.wy(),X=U.Qi();
if(X!=0)continue;this.tH.fillStyle=this.Kq;this.tH.save();this.tH.scale(1/m.O,1/m.O);this.tH.fillRect(m.O*S.x,m.O*S.y,S.e*m.O,S.l*m.O);
this.tH.restore()}this.tH.restore()}if(m.P8.length!=l.k()){m.P8=L.B(l.k());m.HP=L.B(l.k()*4)}m.HP.fill(0);
L.scale.c1(s.buffer,P,o,m.HP,l);if(m.OL[0]+m.OL[1]+m.OL[2]!=3)L.G0.IR(m.HP,m.HP,L.G0.VF(m.OL));this.s0.putImageData(new ImageData(new Uint8ClampedArray(m.HP.buffer),l.e,l.l),0,0);
this.tH.drawImage(this.u4,0,0);this.tH.getImageData(0,0,1,1);this.abY(s)};aL.prototype.abY=function(s){var m=s.t,l=m.OL[0]+m.OL[1]+m.OL[2],x=!1,a=[];
for(var C=0;C<s.N.length;C++){var P=s.G[s.N[C]];if(P==null)continue;var o=P.Ar;if(o!=1&&o!=3)continue;
var G=o==1?P.SE():P.Ao(s).v;if(G.IU)a.push(G)}for(var C=0;C<s.$_.length;C++)if(s.$_[C].IU)a.push(s.$_[C]);
for(var C=0;C<a.length;C++){var G=a[C];this.aoP(G,m,a.length==1&&l==0?2:1,G.color,G.wI);x=!0}var _=this.pX;
x=this.a99(s,this.tH,m)||x;if(s.q&&_.DQ&&_.HD.Rz){this.aoP(s.q,m,0,0,null);x=!0}return x};aL.prototype.aoP=function(s,m,l,x,a){var P=0,X,c;
if(a)P=Math.round(a.S)<<16|Math.round(a.z)<<8|Math.round(a.o);var o=m.oX(!0),G=m.tH,_=new bU(0,0,m.u0.e,m.u0.l);
if(m.P8.length!=G.k()){m.P8=L.B(G.k());m.HP=L.B(G.k()*4)}m.P8.fill(x);m.HP.fill(0);var j=s.channel,U=s.rect;
L.scale.A(j,U,o,m.P8,G);if(l==0)L.q.ahI(m.P8,m.HP,G,G);else L.q.a8Q(m.P8,m.HP,G,G,l,P);aL.eI(m.HP);var S=new ImageData(new Uint8ClampedArray(m.HP.buffer),G.e,G.l);
this.s0.putImageData(S,0,0);this.tH.save();if(l==0){X=G.clone();X.yD(-1,-1);c=new ae}else{X=new bU(0,0,_.e,_.l);
c=o.clone();c.ms()}this.ws(L.H.$$(X),c,this.tH);this.tH.clip();this.tH.drawImage(this.u4,0,0);this.tH.restore()};
aL.prototype.a99=function(s,m,l){var x=s.D.XY!=null||s.D.NJ!=null||s.D.p3!=null||s.D.n$.length!=0||s.D.va.length!=0,a=this.pX,P=a.HD,o=gn.WO[a.li],G=Math.round(12*n.W()),_=G/s.t.O,j=l.oX(!0);
j.ms();m.save();m.setTransform(j.lz,j.S,j.In,j.Am,j.sI,j.bW);if(s.add.artd){var U=aL.hk(s)[0];U=U<.5?U+.5:U-.5;
U=""+Math.round(U*255).toString(16);while(U.length<2)U="0"+U;m.fillStyle="#"+U+U+U;m.font=_+"px sans-serif";
for(var C=0;C<s.G.length;C++){var S=s.G[C];if(S.add.artb==null||!S.p$())continue;var X=S.wy();m.fillText(S.getName(),X.x+2,X.y-_*.7);
x=!0}}function c(ca){return ca==1||ca==2||ca==4||ca==5}var y=aL.Nq([.1,.5,1,1]),O=aL.Nq([1,1,1,1]);if(a.DQ&&P.sj){m.fillStyle=m.strokeStyle=y;
m.lineWidth=1.5/l.O;var p=s.S4(),D=p[0],f=p[1];for(var T=0;T<f.length;T++){var S=D[f[T]],I=S.add.vmsk,H=I.T,b=L.H.vt(H);
this.ws(b,null,m);m.stroke();x=!0;var R=3*n.W()/l.O,W=H.length-3;for(var C=0;C<I.DF.length;C++){var J=L.j.GQ(H,I.DF[C]);
if(J==null)continue;var u=J.x,e=J.y;m.beginPath();var Q=C==0;if(I.vF)Q=!Q;if(Q){m.moveTo(u-R,e-R);m.lineTo(u+R,e+R);
m.moveTo(u-R,e+R);m.lineTo(u+R,e-R);m.stroke()}else{m.arc(u,e,R*1,0,2*Math.PI);m.fill()}x=!0}if(s.N.length!=1)continue;
var q=-1;for(var C=0;C<H.length;C++){if(H[C].type>5)continue;if(H[C].type==0||H[C].type==3){if(H[C].aZ!=-1)q++;
continue}if(I.N.indexOf(q)!=-1){var u=H[C].R.x,e=H[C].R.y;m.fillRect(u-R*.8,e-R*.8,2*R*.8,2*R*.8)}if(I.ds.indexOf(C)!=-1){var Z=H[C],E=[Z.R];
m.beginPath();m.moveTo(Z.o3.x,Z.o3.y);m.lineTo(Z.R.x,Z.R.y);m.lineTo(Z.Ux.x,Z.Ux.y);var z=H[C-1],V=H[C+1];
if(z&&c(z.type)&&I.ds.indexOf(C-1)==-1){m.moveTo(z.R.x,z.R.y);m.lineTo(z.Ux.x,z.Ux.y);E.push(z.Ux)}if(V&&c(V.type)&&I.ds.indexOf(C+1)==-1){m.moveTo(V.R.x,V.R.y);
m.lineTo(V.o3.x,V.o3.y);E.push(V.o3)}m.stroke();if(!Z.R.yb(Z.o3))E.push(Z.o3);if(!Z.R.yb(Z.Ux))E.push(Z.Ux);
for(var Y=0;Y<E.length;Y++){var J=E[Y],u=J.x,e=J.y;if(Y==0&&(Z.type==2||Z.type==5))m.fillRect(u-1.2*R,e-1.2*R,2.4*R,2.4*R);
else{m.beginPath();m.arc(u,e,R*1.2,0,2*Math.PI);m.fill();if(Y!=0)m.fillStyle=O;m.beginPath();m.arc(u,e,R*.8,0,2*Math.PI);
m.fill();m.fillStyle=y}}}x=!0}}}m.lineWidth=1/l.O;if(s.D.$O){m.fillStyle=m.strokeStyle=y;var V={s:[],r:[]},w=aL.a4E;
if(w==null){w=aL.a4E={s:[1,0],r:["M"]};for(var C=1;C<30;C++){var A=Math.PI*2*C/30;w.s.push(Math.cos(A),Math.sin(A));
w.r.push("L")}w.r.push("Z","M","L","M","L");w.s.push(-.5,0,.5,0,0,-.5,0,.5)}for(var C=0;C<s.D.$O.length;
C++){var z=r.jS.Wf(s.D.$O[C],l),$=new ae(z[0],0,0,z[0],z[1],z[2]);L.H.concat(V,w,$)}this.ws(V,null,m);
m.stroke();x=!0}m.fillStyle=m.strokeStyle=aL.Nq([0,0,0,1],!0);var i=new ae(1,0,0,1,.5/l.O,.5/l.O);if(s.D.XY){this.ws(s.D.XY,null,m);
m.fill()}if(s.D.NJ){this.ws(s.D.NJ,i,m);m.stroke()}for(var K in s.D.Ub)if(s.D.Ub[K].NJ){this.ws(s.D.Ub[K].NJ,null,m);
m.stroke();x=!0}m.beginPath();var R=(4*n.W()+.5)/l.O,h=s.D.Sk;for(var C=0;C<h.length;C+=2){x=!0;var u=h[C],e=h[C+1];
m.rect(u-R,e-R,2*R,2*R)}m.stroke();var h=s.D.a4F;m.beginPath();var R=4*n.W()/l.O;for(var C=0;C<h.length;
C+=2){x=!0;var u=h[C],e=h[C+1];m.moveTo(u+R,e);m.arc(u,e,R,0,2*Math.PI)}m.fill();var h=s.D.sB;m.fillStyle=aL.Nq([1,1,1,1]);
m.beginPath();var R=6*n.W()/l.O;for(var C=0;C<h.length;C+=2){x=!0;var u=h[C],e=h[C+1];m.moveTo(u+R,e);
m.arc(u,e,R,0,2*Math.PI)}m.fill();var R=4*n.W()/l.O;for(var C=0;C<h.length;C+=2){x=!0;var u=h[C],e=h[C+1];
m.fillStyle=aL.Nq(s.D.om.indexOf(C>>>1)!=-1?[0,.6,1,1]:[.7,.7,.7,1]);m.beginPath();m.moveTo(u+R,e);m.arc(u,e,R,0,2*Math.PI);
m.fill()}if(s.D.n$.length!=0){for(var C=0;C<s.D.n$.length;C++){var F=s.D.n$[C],N=F[1];m.putImageData(new ImageData(new Uint8ClampedArray(F[0].buffer),N.e,N.l),N.x,N.y)}}var iQ=.5/l.O;
m.lineWidth=1/l.O;if(s.D.Zp){x=!0;var jB=s.D.Zp,k=jB.oc,b={r:[],s:[]};for(var C=0;C<jB.zs.length;C++)L.H.concat(b,L.H.$$(jB.zs[C]));
b.s=b.s.concat(k);for(var C=0;C<k.length;C+=4){b.r.push("M","L")}for(var C=0;C<b.s.length;C++){b.s[C]+=iQ}m.strokeStyle=aL.Nq([.9,.2,.2,1]);
this.ws(b,null,m);m.stroke();var ab=n.W(),f_=2/l.O;m.font=_*.9+"px sans-serif";for(var C=0;C<k.length;
C+=4){var u=k[C],e=k[C+1],fc=k[C+2],g8=k[C+3],bH=Math.sqrt((g8-e)*(g8-e)+(fc-u)*(fc-u));bH=L.pE.YC(bH,s.sz,a,e==g8?s.e:s.l);
var cR=new fz((u+fc)/2,(e+g8)/2);m.fillStyle=aL.Nq([.9,.2,.2,1]);var hr=m.measureText(bH).width;m.fillRect(cR.x-hr/2-f_*ab,cR.y-3.5*f_*ab,hr+2*f_*ab,7*f_*ab);
m.fillStyle=aL.Nq([1,1,1,1]);m.save();m.translate(cR.x-hr/2,cR.y+2*f_*ab);m.scale(.1,.1);m.font=_*9+"px sans-serif";
m.fillText(bH,0,0);m.restore()}}if(a.DQ){if(P.ry){var h$=L.pE.Hc(P.M$,s.sz,s.e,P.D9),gE=h$;if(P.D9==4)gE*=s.l/s.e;
this.Oy(s,m,h$,gE,1,P.Pg);x=!0}if(P.Ge&&s.t.O>7){this.Oy(s,m,1,1,.5,P.Pg);x=!0}if(P.ff){var d8=s.Ls(),hG=s.SV(),f7=Math.max(s.t.tH.e,s.t.tH.l)/s.t.O;
f7=Math.max(Math.max(s.e,s.l)*2,f7);m.beginPath();m.strokeStyle=aL.Nq([0,1,1,1]);for(var C=0;C<d8[0].length;
C++){var hX=d8[0][C],fB=d8[1][C];if(fB!=-1&&fB!=hG)continue;var e5=l.fU(hX[1],hX[1]),g9=l.cr(Math.floor(e5.x)+.5,Math.floor(e5.y)+.5);
if(hX[0]==0){var cL=g9.x;m.moveTo(cL,-f7);m.lineTo(cL,f7)}else{var bf=g9.x;m.moveTo(-f7,bf);m.lineTo(f7,bf)}x=!0}m.stroke()}var gF=s.YA;
if(P.YA&&gF.length!=0){m.font=_*.8+"px sans-serif";var iC=[],ax=[];for(var C=0;C<gF.length;C++){var e7=r.NT.Yc(gF,C);
iC.push(e7);if(s.tq.indexOf(C)!=-1)ax.push(e7)}iC.reverse();var dO=Date.now();iC=L.rect.Xy([0,0,s.e,s.l],iC);
for(var Y=0;Y<2;Y++)for(var C=0;C<iC.length;C++){var h1=iC[C],q=h1[4],hL=q!=null?gF[q]:null;if(hL&&Y==0||hL==null&&Y==1)continue;
var u=Math.round(h1[0]),e=Math.round(h1[1]),fc=Math.round(h1[2]),g8=Math.round(h1[3]);m.strokeStyle=m.fillStyle=aL.Nq(hL?[0,.7,.7,1]:[.8,.8,.8,1]);
m.strokeRect(u+iQ,e+iQ,fc-u,g8-e);var jl=C+1,gT=m.measureText(jl),hr=gT.width;m.fillRect(u,e,hr+_/2,_);
m.fillStyle=aL.Nq([1,1,1,1]);m.fillText(jl,u+_/4,e+_*.8)}var f_=2/s.t.O,hZ=2*f_;for(var C=0;C<ax.length;
C++){var h1=ax[C],u=Math.round(h1[0]),e=Math.round(h1[1]),fc=Math.round(h1[2]),g8=Math.round(h1[3]);
m.strokeStyle=m.fillStyle=aL.Nq([1,.6,0,1]);m.strokeRect(u+iQ,e+iQ,fc-u,g8-e);var j6=[u,e,fc,e,fc,g8,u,g8];
for(var aP=0;aP<j6.length;aP+=2){var cL=j6[aP],bf=j6[aP+1],h7=j6[aP+2&7],fa=j6[aP+3&7];m.fillRect(cL-f_,bf-f_,hZ,hZ);
m.fillRect(Math.round((cL+h7)/2)-f_,Math.round((bf+fa)/2)-f_,hZ,hZ)}}x=!0}}m.strokeStyle=aL.Nq([1,0,0,1]);
if(s.D.p3){this.ws(s.D.p3,i,m);m.stroke()}m.restore();if(a.no){if(s.t.xb==null||s.t.xb.width!=s.t.tH.e||s.t.ex.height!=s.t.tH.l){s.t.xb=m.createImageData(s.t.tH.e,L.pE.Xb);
s.t.ex=m.createImageData(L.pE.Xb,s.t.tH.l)}var o=gn.WO[a.li],h4=0,cA=0,jg=s.e,cS=s.l;if(s.SV()!=-1){var X=s.G[s.SV()].wy();
h4=X.x;cA=X.y;jg=X.e;cS=X.l}h4*=l.O;cA*=l.O;var l=s.t,iT=[1,s.sz,s.sz/2.54,s.sz/25.4,jg/100][P.jq],cf=l.O*s.e/2,ir=l.O*s.l/2,bl=[l.O*iT,new fz(l.X.x+(h4+cf*iT-cf),l.X.y+(cA+ir*iT-ir))];
if(P.jq==4)iT*=cS/jg;var gp=[l.O*iT,new fz(l.X.x+(h4+cf*iT-cf),l.X.y+(cA+ir*iT-ir))],j4=this.f2.JO;L.pE.a3D(l,o["--text-color"],o["--bg-input"],Math.floor(j4.x),Math.floor(j4.y),bl,gp);
var ey=ef.alz(l.O,aL.Nq([1,1,1,1]));aL.eI(s.t.ex.data);aL.eI(s.t.xb.data);m.putImageData(s.t.ex,0,0);
m.putImageData(s.t.xb,0,0);m.putImageData(ey,0,s.t.tH.l-ey.height)}if(s.D.va.length!=0){for(var C=0;
C<s.D.va.length;C++){var F=s.D.va[C],N=F[1];m.putImageData(new ImageData(new Uint8ClampedArray(F[0].buffer),N.e,N.l),N.x,N.y)}}return x||a.no};
aL.prototype.Oy=function(s,m,l,x,a,P){while(l*s.t.O<4){l*=2;x*=2}var o=s.e,G=s.l,_=.5/s.t.O;m.strokeStyle=aL.Nq([.5,.5,.5,a],!0);
m.save();m.rect(0,0,o,G);m.clip();m.beginPath();for(var j=0;j<=o;j+=l){m.moveTo(j+_,0);m.lineTo(j+_,G)}if(P==0){for(var U=0;
U<=G;U+=x){m.moveTo(0,U+_);m.lineTo(o,U+_)}}else{x*=Math.sqrt(4/3);var S=x*Math.floor(o/x),X=o*(x/(2*l));
for(var U=-S;U<=G+S;U+=x){m.moveTo(0,U);m.lineTo(o,U-X);m.moveTo(0,U);m.lineTo(o,U+X)}}m.stroke();m.restore()};
aL.prototype.ws=function(s,m,l){l.beginPath();var x=L.H.clone(s);if(m)L.H.A(x.s,m,x.s);Typr.U.pathToContext({cmds:x.r,crds:x.s},l)};
aL.lJ=function(s,m){M.lW.call(this);this.a05=s;var l="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform vec3 contSizeZoom;\t\t\tuniform vec2 cnvSize;\t\t\tuniform mat4 ctrn; \t\t\t"+(s?"uniform vec4 bgClr; uniform vec4 ars["+m+"]; ":"")+"\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 gCoord;\t\t\t\t\t\t/* This approximates the error function, needed for the gaussian integral */ \t\t\tvec4 erf(vec4 x) { \t\t\t vec4 s = sign(x), a = abs(x);\t\t\t x = 1.0 + (0.278393 + (0.230389 + 0.078108 * (a * a)) * a) * a;\t\t\t x *= x; \t\t\t return s - s / (x * x); \t\t\t} \t\t\t/* Return the mask for the shadow of a box from lower to upper */ \t\t\tfloat boxShadow(vec2 lower, vec2 upper, vec2 point, float sigma) { \t\t\t vec4 query = vec4(point - lower, point-upper); \t\t\t vec4 integral = 0.5 + 0.5 * erf(query * (sqrt(0.5) / sigma)); \t\t\t return (integral.z - integral.x) * (integral.w - integral.y); \t\t\t} \t\t\t\t\t\tvec4 simpleBlend(vec4 src, vec4 tgt) {\t\t\t\tfloat na = src.w + tgt.w*(1.0-src.w);\t\t\t\t/* avoid division by zero */ \t\t\t\treturn na==0.0 ? vec4(0,0,0,0) : vec4( (src.xyz*src.w + tgt.w*tgt.xyz*(1.0-src.w))*(1.0/na), na);\t\t\t} \t\t\t\t\t\t"+M.xJ.JS+"\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 src = texture2D(source, tCoord); \t\t\t\tvec4 tgt = ctrn*texture2D(target, sCoord); "+(s?"\t\t\t\t\tbool inr = false; vec4 BG = bgClr; \t\t\t\t\tfor(int i=0; i<"+m+"; i++) { \t\t\t\t\t\tvec4 ar = ars[i]; \t\t\t\t\t\tvec2 nsc = sCoord - ar.xy; \t\t\t\t\t\tif( ar.z!=0.0 && in01(nsc/ar.zw) ){\t\t\t\t\t\tinr=true; BG=mod(floor(gCoord.x) + floor(gCoord.y), 2.0)==1.0 ? vec4(0.784,0.784,0.784,1) : vec4(1,1,1,1); }\t\t\t\t\t}\t\t\t\t":"\t\t\t\t\tfloat shdw = 0.3*boxShadow(vec2(0,0),contSizeZoom.xy, sCoord*contSizeZoom.xy+vec2(0.0,-6.0*contSizeZoom.z) , 10.0*contSizeZoom.z);\t\t\t\t\tvec4 grid = mod(floor(gCoord.x) + floor(gCoord.y), 2.0)==1.0 ? vec4(0.784,0.784,0.784,1) : vec4(1,1,1,1);\t\t\t\t\tvec4 BG = in01(sCoord) ? grid : vec4(0.0,0.0,0.0,shdw); \t\t\t\t")+"\t\t\t\tvec4 outc = in01(sCoord) ? simpleBlend(tgt,BG) : BG ; \t\t\t\tif(src.b == 0.0 && src.a >0.5) gl_FragColor = mix(outc, vec4(vec3(1,1,1)-outc.rgb,1.0), src.w); \t\t\t\telse gl_FragColor = simpleBlend(src,outc); \t\t\t\t\t\t\t}",x="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 gCoord;\t\t\t\t\t\tuniform mat3 tmat;\t\t\tuniform vec4 gsize;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (tmat*vec3(verPos,1.0)).xy;\t\t\t\tgCoord = (verPos-gsize.zw) * gsize.xy ; \t\t\t\tgl_Position = vec4(vec2(-1.0, 1.0) + 2.0*vec2(verPos.x,-verPos.y), 0.0, 1.0);\t\t\t}";
this.D2(l,x)};aL.lJ.prototype=new M.lW;aL.lJ.prototype.sw=function(s,m,l,x,a,P,o,G,_,j,U,S){this.LG("tmat gsize source target contSizeZoom cnvSize bgClr ars ctrn".split(" "));
var X=M.og,c=this.sv;X.uniformMatrix3fv(c.tmat,!1,l);X.uniform4fv(c.gsize,x);X.uniform3f(c.contSizeZoom,a,P,o);
X.uniform2f(c.cnvSize,G,_);X.uniformMatrix4fv(c.ctrn,!1,S);if(this.a05){X.uniform4fv(c.ars,U);X.uniform4fv(c.bgClr,j)}X.uniform1i(c.source,0);
X.uniform1i(c.target,1);X.activeTexture(X.TEXTURE0);X.bindTexture(X.TEXTURE_2D,s);X.activeTexture(X.TEXTURE1);
X.bindTexture(X.TEXTURE_2D,m);X.activeTexture(X.TEXTURE0)};function g2(){g1.call(this,[9,7],!1,"---panels/layercomps",g1.E4.a29);
this.IM.setAttribute("style","min-width:240px;");this.qu=null;this.qF=-1;this.a5A=[];this.Cp=n.L("div","scrollable");
this.Cp.style.height="160px";this.IM.appendChild(this.Cp);this.hS=n.L("div","lpfoot");this.IM.appendChild(this.hS);
this.R9=[];var s=["reload","lrs/newlayer","lrs/bin"],m=[[5,10],[5,3],[5,4]];for(var C=0;C<s.length;C++){var l=new hj("<img src=\""+PIMG[s[C]]+"\" class=\"gsicon\" />",!1,m[C]);
l.h("click",this.a1k,this);this.hS.appendChild(l.m);this.R9.push(l)}}g2.prototype=new g1("");g2.prototype.jm=function(s,m){this.IM.setAttribute("style","width:"+(s-2)+"px;");
this.Cp.style.height=m-28+"px"};g2.prototype.ru=function(s){var m=new h9(v.E.u,!0);m.data=s;m.c=r.zH;
this.Y(m)};g2.prototype.a1k=function(s){var C=this.R9.indexOf(s.currentTarget);if(C!=1)if(this.qF==-1)return;
this.ru({d:["updLC","addLC","delLC"][C],jV:this.qF});if(C==2)this.qF=-1};g2.prototype.U=function(){g1.prototype.U.call(this);
for(var C=0;C<this.R9.length;C++)this.R9[C].U()};g2.prototype.av=function(s){if(s==null)n.RY(this.IM,"disabled");
else n.po(this.IM,"disabled");this.qu=s;n.em(this.Cp);if(s==null)return;var m=s.xW.lastAppliedComp?s.xW.lastAppliedComp.v:0,l=s.xW.list.v.slice(0);
l.unshift({v:{Nm:{v:"Last Document State"},compID:{v:0},capturedInfo:{v:0}}});for(var C=0;C<l.length;
C++){var x=l[C].v,a=new en(x.Nm.v,x.compID.v,x.capturedInfo.v,m,this.qF);a.h("activate",this.zL,this);
a.parent=this;this.Cp.appendChild(a.m);this.a5A.push(a)}};g2.prototype.zL=function(s){this.qF=s.currentTarget.jV;
this.av(this.qu)};function en(s,C,m,l,x){fR.call(this);this.jV=C;this.m=n.L("div","head listitem"+(C==x?" selected":""));
var a=C==l,P=new hj(a?"\u2713":"\u2014");if(a)P.Kd();this.m.appendChild(P.m);P.h("click",this.lf,this);
var o=this.oa=n.L("span");o.textContent=s;this.m.appendChild(o);this.R9=[];if(C!=0){this.m.addEventListener("mouseup",this.zL.bind(this),!1);
this.ak$=n.L("span","headR");this.m.appendChild(this.ak$);var G=["lrs/eye","pos","lrs/fx"],_=["Visibility","Position","Appearance"];
for(var j=0;j<G.length;j++){var U=new hj("<img src=\""+PIMG[G[j]]+"\" class=\"autoscale gsicon\" />",!1,_[j]);
if((m>>j&1)==0)U.m.setAttribute("style","opacity:0.3");U.h("click",this.agD,this);this.ak$.appendChild(U.m);
this.R9.push(U)}}}en.prototype=new fR;en.prototype.zL=function(s){if(s.target!=this.oa&&s.target!=this.m)return;
if(s.detail==1)this.Y(new h9("activate",!1));else{var m=new g1.gr(this.oa,this.vo.bind(this))}};en.prototype.agD=function(s){var C=this.R9.indexOf(s.currentTarget);
this.ru({d:"editLC",amY:C,jV:this.jV})};en.prototype.vo=function(s){this.ru({d:"editLC",Q_:s,jV:this.jV})};
en.prototype.lf=function(s){this.ru({d:"setLC",jV:this.jV})};en.prototype.ru=function(s){var m=new h9(v.E.u,!0);
m.data=s;m.c=r.zH;this.Y(m)};function e$(){g1.call(this,[9,11],!1,"---panels/navigator",g1.E4.ae3);var s=n.L("div","padded");
s.setAttribute("style","min-width:15em");this.IM.appendChild(s);var m=n.L("div");s.appendChild(m);m.setAttribute("style","cursor:grab;");
this.w=n.L("canvas");this.w.width=100;m.appendChild(this.w);n.FE(this.w);n.i3(this.w,this.gd.bind(this));
this.PS=new cT(null,2,6400,"%",null,!0);this.PS.h(v.E.p,this.agk,this);s.appendChild(this.PS.m);this.apt=this.sd.bind(this);
this.a2q=this.aI.bind(this);this.zx=null}e$.prototype=new g1("");e$.prototype.jm=function(s,m){this.ZJ()};
e$.prototype.agk=function(s){var m=this.PS._(),l=this.zx,x=m/100;if(.8<x&&x<1.2)x=1;else if(1.8<x)x=Math.round(x);
var a=new h9(v.E.u,!0);a.c=r.Zq;a.data={d:"zoom",O:x};this.Y(a)};e$.prototype.gd=function(s){if(this.zx==null)return;
n.PB(window,this.apt);n.$u(window,this.a2q)};e$.prototype.sd=function(s){var m=n.lX(s,this.w),l=this.zx,x=this.w.width,a=this.w.height,P=(m.x*n.W()-x/2)/x,o=(m.y*n.W()-a/2)/a,G=n.W()*l.t.O,_=Math.round(-l.t.O*l.e*P),j=Math.round(-l.t.O*l.l*o);
r.Bj.CV(l,_,j)};e$.prototype.aI=function(s){n.Ab(window,this.apt);n.D4(window,this.a2q)};e$.prototype.av=function(s){if(s==null&&this.zx!=null)this.w.width=100;
this.zx=s;this.ZJ()};e$.prototype.ZJ=function(){var s=this.zx,x=0;if(s==null||s.t.O==0)return;var m=s.t;
if(!n.wH(this.IM))return;this.PS.f(m.O*100);var l=300*n.W(),a=[s.cf(),new bU(0,0,s.e,s.l)];L.$c(a);while(Math.max(a[x+1].e,a[x+1].l)>l){x+=2}var P=a[x],o=a[x+1],G=o.e,_=o.l,j=this.w;
j.width=G;j.height=_;n.cO(j,G,_);var U=j.getContext("2d"),S=U.createImageData(G,_);L.qv(P,S.data);U.putImageData(S,0,0);
var X=m.tH,c=m.cr(X.x,X.y),y=m.cr(X.x+X.e,X.y+X.l),O=G/s.e;U.scale(O,O);U.lineWidth=4/O;U.strokeStyle="#ff0000";
U.strokeRect(c.x,c.y,y.x-c.x,y.y-c.y)};e$.prototype.L8=function(s,m){};e$.prototype.tu=function(){this.ZJ()};
function bu(s,m){if(s==null){g1.call(this);return}g1.call(this,s.name,!1,s.icon,m);var l=this.lc=n.L("iframe");
l.setAttribute("src",s.url);l.setAttribute("style","width:"+s.width+"px; height:"+s.height+"px");this.IM.appendChild(l)}bu.prototype=new g1("");
bu.prototype.to=function(s){if(n.wH(this.lc))this.lc.contentWindow.postMessage(s,"*")};bu.prototype.jm=function(s,m){this.lc.setAttribute("style","width:"+s+"px; height:"+m+"px")};
function es(){g1.call(this,[9,12],!1,"---panels/tpreset",g1.E4.jo);this.bR=null;this.zJ=new aq(r.Fe);
this.zJ.parent=this;var s=n.L("div","padded");s.setAttribute("style","width:20em");this.IM.appendChild(s);
s.appendChild(this.zJ.M2)}es.prototype=new g1("");es.prototype.tu=function(){this.zJ.El(this.bR.nX)};
es.prototype.L8=function(s,m){this.bR=s;if(m==gN.ki||m==gN.jo)this.zJ.El(s.nX)};es.prototype.jm=function(s,m){this.zJ.a7x(this.bR.hu)};
es.prototype.U=function(){g1.prototype.U.call(this);this.zJ.U()};var g3=function(){var s=[],m=null,l=null,x=null,a=[[100,180,255],[100,255,100],[255,200,100],[200,100,255],[255,100,200]];
function P(){g1.call(this,"Memory",!1,null,g1.E4.a9N);var X=n.L("div","padded");this.IM.appendChild(X);
l=new hj(["<< VAR0",[0,13,2]],!1,null,!0);l.addEventListener("click",function(c){s.pop();G()});X.appendChild(l.m);
m=n.L("div","scrollable");m.setAttribute("style","width:20em; height:26em; margin-top:8px;");X.appendChild(m)}P.prototype=new g1("");
P.prototype.av=function(X,c,y){x=c;this.tu()};P.prototype.tu=function(){l.k5(!1);if(!n.wH(m))return;
var X={aR:"Total:",hz:[]};for(var C=0;C<x.length;C++)X.hz.push(j(x[C]));S(X);s=[X];G()};P.prototype.U=function(){g1.prototype.U.call(this);
l.U()};function o(X){var c=X.currentTarget,C=0;while((c=c.previousSibling)!=null)C++;s.push(s[s.length-1].hz[C-1]);
G()}function G(){l.k5(s.length>1);var X=s[s.length-1];n.em(m);_(X,m,0);X.hz.sort(function(c,y){return y.BW[0]-c.BW[0]});
for(var C=0;C<X.hz.length;C++)_(X.hz[C],m,1)}function _(X,c,y){var O=hw.Ln,p=y!=0&&X.hz,D="margin-left:"+y*10+"px; margin-bottom:8px; padding:3px 5px;";
if(p)D+="cursor:pointer;";if(X._z!=null)D+="background-color:rgba("+a[X._z].join(",")+",0.2);";var f=n.L("div");
c.appendChild(f);f.setAttribute("style",D);f.innerHTML=n.aQ(X.aR)+"<br />"+"RAM: <b>"+O(X.BW[0])+"</b>\u2001GPU: <b>"+O(X.BW[1])+"</b>";
if(p)f.addEventListener("click",o,!1)}function j(X){var c={aR:X.name,hz:[],_z:0},y=M.wR?1:0,O=1-y,p={aR:"Final Image",BW:[X.e*X.l*4,y*X.e*X.l*4],_z:2};
c.hz.push(p);for(var C=0;C<X.G.length;C++){var D=U(X.G[C]);if(D.hz.length!=0)c.hz.push(D)}var f=X.add.lnk2;
if(f)for(var C=0;C<f.length;C++){var D=f[C],T={aR:D.zA,hz:[],_z:4},I=0;T.hz.push({aR:"Raw file",BW:[D.raw.length,0]});
if(D.H6)for(var H=0;H<D.H6.length;H+=2)I+=D.H6[H].length;if(I!=0)T.hz.push({aR:"Decoded pixels",BW:[I,0]});
S(T);c.hz.push(T)}S(c);return c}function U(X){var c={aR:X.getName(),hz:[],_z:1},y=M.wR?1:0,O=1-y,p=X.rect.k();
if(p!=0)c.hz.push({aR:"Layer pixels",BW:[p*4,y*p*4]});if(X.add.lmfx&&X.GM.vN.type){var D=X.GM.vN.type,H=0;
for(var f in D){var T=0;for(var I=0;I<D[f].length;I++)if(f=="ebbl"){if(D[f][I].ba)T+=D[f][I].ba.DC.k();
if(D[f][I].SM)T+=D[f][I].SM.DC.k();if(D[f][I].xx)T+=D[f][I].xx.DC.k();if(D[f][I].nq)T+=D[f][I].nq.DC.k()}else T+=D[f][I].DC.k();
if(T!=0)c.hz.push({aR:iX.get(i4.names[i4.order.indexOf(f)]),BW:[O*T*4,y*T*4],_z:3})}if(X.GM.my)H+=p;
if(X.GM.tb)H+=p;if(X.GM.Y_)H+=p;if(X.GM.Y_)H+=p;if(X.GM.bP)H+=p;if(X.GM.ab)H+=p;var b=X.GM.vO?X.GM.vO.length:0;
if(H+b!=0)c.hz.push({aR:"Additional Blending Data",BW:[O*H*4+b,y*H*4]})}var R=X.SE(),W=R?R.rect.k():0;
if(W!=0){c.hz.push({aR:"Raster Mask",BW:[W,0]})}var R=X.add.vmsk,W=R&&R.GR?R.GR.rect.k():0;if(W!=0){c.hz.push({aR:"Vector Mask",BW:[W,0]})}S(c);
return c}function S(X){X.BW=[0,0];for(var C=0;C<X.hz.length;C++){X.BW[0]+=X.hz[C].BW[0];X.BW[1]+=X.hz[C].BW[1]}}return P}();
function as(){fR.call(this);this.c=0;this.SY=null;this.m=n.L("div","toolconf");this.zJ=null;this.DI=null;
this.body=new n.L("div","body")}as.prototype=new fR;as.prototype.aqg=function(s,m){this.c=s;this.SY=m;
if(r.MM[s]){var l=this.zJ=new aq(s);this.m.appendChild(l.m);l.parent=this}else{this.DI=n.L("div");this.m.appendChild(this.DI)}this.m.appendChild(this.body);
this.U()};as.prototype.anv=function(s,m){};as.prototype.aju=function(s){};as.prototype.L8=function(s,m){if(m==gN.ki||m==gN.jo)if(this.zJ)this.zJ.El(s.nX)};
as.prototype.aK=function(s){};as.prototype.U=function(){if(this.zJ)this.zJ.U();else this.DI.innerHTML=n.C5(this.SY,null,"toolicon");
this.nc()};as.prototype.nc=function(){};function ii(){as.call(this);this.Qt=new gZ;this.Qt.h(v.E.p,this.sa,this);
this.body.appendChild(this.Qt.m)}ii.prototype=new as;ii.prototype.nc=function(){this.Qt.U()};ii.prototype.sa=function(s){var m=new h9(v.E.g,!0);
m.data={d:v.J.Fa,c:this.c,AV:this.Qt.aeT()};this.Y(m)};ii.prototype.aK=function(s){this.Qt.al$(s.P1)};
function dZ(s){as.call(this);if(s==null)return;this.bR=null;this.Rx={};for(var C=0;C<s.length;C++){var m=s[C],l=null;
if(m=="brush"){l=new jJ}if(m=="bmode"){l=new ge([12,19,0],aA.dP,!1,aA.Nx)}if(m=="bmode0"){l=new ge([12,19,0],aA.dP.slice(23),!1)}if(m=="emode"){l=new ge([12,36],[[9,3],[10,38]])}if(m=="opacity"){l=new dy([12,0],0,100,"%");
l.f(100)}if(m=="flow"){l=new dy([12,63],0,100,"%");l.f(100)}if(m=="smth"){l=new dy([19,3,0],0,100,"%");
l.f(0)}if(m=="samp"){l=new ge("Sampling",["Brush Center","Start of Stroke","Background Color"])}if(m=="wconf"){l=new gJ;
l.f([40,!0,!0])}if(m=="sall"){l=new bj([12,25,2])}if(m=="strn"){l=new dy([12,64],1,100,"%");l.f(50)}if(m=="smode"){l=new ge([12,36],[[19,7,0],[19,7,1]]);
l.f(1)}if(m=="pdetail"){l=new bj([12,65]);l.Kd()}if(m=="rng"){l=new ge([12,12],[[19,6,0],[19,6,1],[19,6,2]]);
l.f(1)}if(m=="expo"){l=new dy([12,5],0,100,"%");l.f(50)}if(m=="algnd"){l=new bj([12,75]);l.f(!1)}if(m=="sfrom"){l=new ge([12,70],[[17,1],[17,3],[17,0]])}if(m=="alt"){l=new ja(null,["Alt"],!0,["Select Source"])}if(m=="qsmode"){l=new co([12,36],["<img src=\""+PIMG["set/front"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.zoomIn+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.zoomOut+"\" class=\"autoscale gsicon\" />"],[[5,3],[18,1],[18,2]])}if(m=="redge"){l=new hj([7,11],!1,null,!0)}if(m=="setop"){l=new cl}if(m=="patch"){l=new co(null,[[12,70],[12,71]])}if(m=="prsr"){l=new ja(null,["<img src=\""+PIMG.prsO+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.prsS+"\" class=\"autoscale gsicon\" />"],!0,[[15,9,0],[15,9,1]]);
l.f([!1,!1])}l.parent=this;this.body.appendChild(l.m);this.Rx[m]=l;if(m=="brush")l.h(v.E.p,this.akl,this);
else if(m=="redge")l.h("click",this.XQ,this);else l.h(v.E.p,this.VV,this)}}dZ.prototype=new as;dZ.prototype.anv=function(s,m){s=s[1];
var l=this.Rx;if(s.Md)l.bmode.f(aA.Bo.indexOf(s.Md.v.BlnM));if(s.Opct)l.opacity.f(s.Opct.v);if(s.flow)l.flow.f(s.flow.v);
if(s.Brsh)l.brush.f(s,m.If.NG,m.If.vw);if(s.FrgC){var x=L.K.Qv(s.FrgC.v),a=new h9(v.E.g,!0);a.data={d:v.J.xw,AV:gN.WV,R7:0,Z:x.o<<16|x.z<<8|x.S};
this.Y(a)}this.akl();this.VV()};dZ.prototype.aju=function(){if(r.MM[this.c]==null)return null;var s=this.Rx,m=JSON.parse(JSON.stringify(s.brush._()));
m.classID=r.MM[this.c][1][0];if(s.bmode)m.Md={t:"enum",v:{BlnM:aA.Bo[s.bmode._()]}};if(s.opacity)m.Opct={t:"long",v:s.opacity._()};
if(s.flow)m.flow={t:"long",v:s.flow._()};var l=this.bR.zU;l={o:l>>>16,z:l>>>8&255,S:l&255};m.FrgC={t:"Objc",v:L.K.gc(l)};
return["Brush Preset "+m.Brsh.v.Dmtr.v.val,m]};dZ.prototype.XQ=function(){var s=new h9(v.E.g,!0);s.data={d:v.J.Qm,It:"redge"};
this.Y(s)};dZ.prototype.nc=function(){for(var s in this.Rx)this.Rx[s].U()};dZ.prototype.aK=function(s){if(s.aqM=="showBrushOpts"){this.Rx.brush.asq(s.rQ.x,s.rQ.y)}for(var m in s.sm){var l=s.sm[m];
if(m!="qsmode")l*=100;if(this.Rx[m])this.Rx[m].f(l)}};dZ.prototype.L8=function(s,m){as.prototype.L8.call(this,s,m);
this.bR=s;var l=this.Rx.brush;if(l==null)return;if(m==gN.ki||m==gN.Fe)l.El(s.If);if(m==gN.L$){l.f(s.If.eh,s.If.NG,s.If.vw)}};
dZ.prototype.akl=function(){var s=new h9(v.E.g,!0);s.data={d:v.J.xw,AV:gN.L$,WR:this.Rx.brush._()};this.Y(s)};
dZ.prototype.VV=function(){var s=new h9(v.E.g,!0);s.data={d:v.J.Fa,c:this.c};for(var m in this.Rx){if(m=="brush"||m=="redge")continue;
var l=this.Rx[m]._();if(["opacity","flow","smth","strn","expo"].indexOf(m)!=-1)s.data[m]=l/100;else if(m=="bmode")s.data.bmode=aA.EB[l];
else if(m=="bmode0")s.data.bmode=aA.EB[23+l];else s.data[m]=l}this.Y(s)};function bR(s,m){as.call(this);
if(s)return;this.Rx={};for(var C=0;C<m.length;C++){var l=m[C],x=null;if(l=="binop")x=new cl;if(l=="feat"){x=new dy([7,6],0,100,"px");
x.f(0)}if(l=="redge")x=new hj([7,11],!1,null,!0);if(l=="wconf")x=new gJ;if(l=="cstr")x=new ck;if(l=="anta"){x=new bj([12,25,1]);
x.f(!0)}if(l=="sall")x=new bj([12,25,2]);if(l=="redge")x.h("click",this.XQ,this);else x.h(v.E.p,this.VV,this);
x.parent=this;this.body.appendChild(x.m);this.Rx[l]=x}}bR.prototype=new as;bR.prototype.aK=function(s){if(s.PK!=null)this.Rx.binop.f(s.PK);
else if(s.fG){for(var m in s.fG)if(this.Rx[m])this.Rx[m].f(s.fG[m])}else{var l=bR.Re;if(l==null){var x=al.ajX(!0);
l=bR.Re=new aC(x.items,x.TQ)}l.U();l.parent=this;l.update(s.aT,s.pX);var a=new h9(v.E.g,!0);a.data={d:v.J.Jm,UK:l,x:s.mW.QO+2,y:s.mW.rF+1};
this.Y(a)}};bR.prototype.nc=function(){for(var s in this.Rx)this.Rx[s].U()};bR.prototype.XQ=function(){var s=new h9(v.E.g,!0);
s.data={d:v.J.Qm,It:"redge"};this.Y(s)};bR.prototype.VV=function(){var s=new h9(v.E.g,!0);s.data={d:v.J.Fa,c:this.c,fG:{}};
for(var m in this.Rx)s.data.fG[m]=this.Rx[m]._();this.Y(s)};function eH(){dZ.call(this,["brush","strn"])}eH.prototype=new dZ;
function bw(){dZ.call(this,"brush bmode opacity flow smth prsr".split(" "))}bw.prototype=new dZ;function h_(){dZ.call(this,["brush","bmode0","samp","wconf"])}h_.prototype=new dZ;
function dx(){dZ.call(this,["brush"])}dx.prototype=new dZ;function id(){dZ.call(this,["brush","bmode","opacity","smth","prsr"])}id.prototype=new dZ;
function aI(){dZ.call(this,["brush","rng","expo"])}aI.prototype=new dZ;function j3(){dZ.call(this,"brush bmode opacity algnd sfrom alt".split(" "))}j3.prototype=new dZ;
function jH(s){as.call(this);if(s==null)return;var m=n.L("span","fitem");this.body.appendChild(m);var l=[[17,0],[17,1],[11,12,0],[17,2]];
this.oO=[];for(var C=0;C<l.length;C++){var x=new hj(l[C],!1,null,!0);this.oO.push(x);x.h("click",this.aly,this);
if(!s||C==1)m.appendChild(x.m)}this.$a=new ck;this.$a.h(v.E.p,this.a5I,this);if(!s)this.body.appendChild(this.$a.m);
this.HX=new hj([15,7,6],!1,null,!0);this.HX.h("click",this.aly,this);if(!s)this.body.appendChild(this.HX.m);
this.jl=new bj([15,7,10]);this.jl.h(v.E.p,this.a5I,this);if(!s)this.body.appendChild(this.jl.m);this.bv=new dl;
this.bv.h("click",this.Le,this)}jH.prototype=new as;jH.prototype.nc=function(){this.bv.U();for(var C=0;
C<this.oO.length;C++)this.oO[C].U();this.$a.U();this.jl.U();this.HX.U()};jH.prototype.aK=function(s){var m=this.bv.m;
if(s.Tb)this.body.appendChild(m);else if(this.body.contains(m))this.body.removeChild(m);if(s.$a)this.$a.f(s.$a)};
jH.prototype.Le=function(s){var m={d:v.J.Fa,c:this.c,Iu:this.bv._()?"commit":"cancel"},l=new h9(v.E.g,!0);
l.data=m;this.Y(l)};jH.prototype.aly=function(s){s.target.m.blur();var m={d:v.J.Fa,c:this.c,Iu:"cropby",a0H:this.oO.indexOf(s.target)};
if(s.target==this.HX)m.Iu="straighten";var l=new h9(v.E.g,!0);l.data=m;this.Y(l)};jH.prototype.a5I=function(s){var m={d:v.J.Fa,c:this.c,Iu:"config",MX:{ZB:this.$a._(),sc:this.jl._()},afu:s.target==this.$a},l=new h9(v.E.g,!0);
l.data=m;this.Y(l)};function aE(){jH.call(this,!1)}aE.prototype=new jH;function bq(){jH.call(this,!0)}bq.prototype=new jH;
function da(){dZ.call(this,["brush","rng","expo"])}da.prototype=new dZ;function ec(){dZ.call(this,"brush emode opacity flow smth prsr".split(" "))}ec.prototype=new dZ;
function jO(){dZ.call(this,["brush","samp","wconf"])}jO.prototype=new dZ;function bV(){bR.call(this,!1,["binop","feat","anta","redge","cstr"])}bV.prototype=new bR(!0);
function g_(){as.call(this);var s=this.Rx=[new ge([12,20],["1x1","3x3","5x5","11x11","31x31"]),new ge([12,70],[[17,1],[17,3],[17,0]]),new bj("Sampling Ring"),new bj("Zoom")];
s[1].f(2);s[2].f(!0);for(var C=0;C<s.length;C++){var m=s[C];m.h(v.E.p,this.VV,this);this.body.appendChild(m.m)}}g_.prototype=new as;
g_.prototype.VV=function(s){var m=this.Rx,l=[];for(var C=0;C<m.length;C++)l[C]=m[C]._();var x=new h9(v.E.g,!0);
x.data={d:v.J.Fa,c:this.c,fG:l};this.Y(x)};g_.prototype.nc=function(){for(var C=0;C<this.Rx.length;C++)this.Rx[C].U()};
function fs(){as.call(this);this.hD=new du(!1);this.hD.parent=this;this.hD.h(v.E.p,this.C1,this);this.body.appendChild(this.hD.m);
this.hD.f(JSON.parse(i4.Cw.OD).v);this._4=new ge(null,i4.K.names.slice(0,5));this._4.h(v.E.p,this.C1,this);
this.body.appendChild(this._4.m);this.fx=new ge([12,19,0],aA.dP,null,aA.Nx);this.fx.h(v.E.p,this.C1,this);
this.body.appendChild(this.fx.m);this.eq=new dy([12,0],0,100,"%");this.eq.parent=this;this.eq.h(v.E.p,this.C1,this);
this.body.appendChild(this.eq.m);this.eq.f(100);this.fX=new bj([12,23,0]);this.fX.h(v.E.p,this.C1,this);
this.body.appendChild(this.fX.m);this.Pp=new bj([12,23,3]);this.Pp.h(v.E.p,this.C1,this);this.body.appendChild(this.Pp.m)}fs.prototype=new as;
fs.prototype.nc=function(){this._4.U();this.fx.U();this.eq.U();this.fX.U();this.Pp.U()};fs.prototype.L8=function(s,m){as.prototype.L8.call(this,s,m);
var l=m==gN.WV;this.hD.Yp(s.zU,s.Pi);if(l||m==gN.ir||m==gN.ki)this.hD.El(s.eb)};fs.prototype.C1=function(){var s=new h9(v.E.g,!0);
s.data={d:v.J.Fa,c:this.c};s.data.AV={K:this.hD._(),tI:i4.K.types[this._4._()],vF:this.fX.bD(),a0j:this.Pp.bD(),a9Y:aA.EB[this.fx._()],Dv:this.eq._()/100};
this.Y(s)};function b1(){as.call(this)}b1.prototype=new as;function bz(){as.call(this);var s=n.L("span","fitem");
this.body.appendChild(s);this.qr=[new dy([12,15],-180,180,"\xB0"),new hj([1,12,2],null,null,!0)];for(var C=0;
C<this.qr.length;C++){var m=this.qr[C];m.parent=this;s.appendChild(m.m);m.h(C==1?"click":v.E.p,this.ym,this)}}bz.prototype=new as;
bz.prototype.nc=function(){for(var C=0;C<this.qr.length;C++)this.qr[C].U()};bz.prototype.aK=function(s){this.qr[0].f(s.yu*180/Math.PI)};
bz.prototype.ym=function(s){var m=this.qr.indexOf(s.target),l=new h9(v.E.g,!0);l.data={d:v.J.Fa,c:this.c,yu:m==1?0:s.target._()*Math.PI/180};
this.Y(l)};function aJ(){dZ.call(this,["brush","algnd","sfrom","alt"])}aJ.prototype=new dZ;function eT(){as.call(this);
this.EQ=new j2;this.EQ.parent=this;this.body.appendChild(this.EQ.Sy.m);this.body.appendChild(this.EQ.pg.m);
this.body.appendChild(this.EQ.FC.m);this.body.appendChild(this.EQ.z9.m);var s=n.L("span","fitem");this.body.appendChild(s);
s.appendChild(this.EQ.Gk.m);s.appendChild(this.EQ.SG.m);s.appendChild(this.EQ.s7.m);this.TB=new ge("Aa",[[22,5,0],"Sharp","Crisp","Strong","Smooth"]);
this.TB.h(v.E.p,this.Le,this);this.body.appendChild(this.TB.m);this.Sr=new hj([11,9],!1,null,!0);this.Sr.h("click",this.apd,this);
this.body.appendChild(this.Sr.m);this.bv=new dl;this.bv.h("click",this.Le,this)}eT.prototype=new as;
eT.prototype.nc=function(){this.bv.U();this.EQ.U();this.Sr.U()};eT.prototype.apd=function(s){var m={d:v.J.Fa,c:this.c,Iu:"showwarp"},l=new h9(v.E.g,!0);
l.data=m;this.Y(l)};eT.prototype.aK=function(s){if(s.Iu=="showactive")this.body.appendChild(this.bv.m);
if(s.Iu=="hideactive")this.body.removeChild(this.bv.m);if(s.Iu=="changeAA")this.TB.f(s.Ur)};eT.prototype.L8=function(s,m){as.prototype.L8.call(this,s,m);
if(m!=gN.ki&&m!=gN.dz&&m!=gN.$W&&m!=gN.OB)return;this.EQ.f(s.ME,s.dC,s.KJ)};eT.prototype.Le=function(s){var m={d:v.J.Fa,c:this.c,Iu:this.bv._()?"commit":"cancel"};
if(s.target==this.TB){m.Iu="changeAA";m.Ur=this.TB._()}var l=new h9(v.E.g,!0);l.data=m;this.Y(l)};function bF(){bR.call(this,!1,["binop","feat","anta","redge"])}bF.prototype=new bR(!0);
function jP(){as.call(this);var s=[],l="<svg class=\"autoscale gsicon\" viewBox=\"0 0 14 18\" width=\"14\" height=\"18\" fill=\"black\"><path d=\"M14,6 L10,6 L10,0 L4,0 L4,6 L0,6 L7,13 L14,6 L14,6 Z M0,14 L0,16 L14,16 L14,14 Z\" /></svg>";
this.RK=new bj([12,85]);this.RK.h(v.E.p,this.VV,this);s.push(this.RK.m);this.$l=new bj([20,1]);this.$l.h(v.E.p,this.VV,this);
s.push(this.$l.m);this.Lz=new bj([12,83]);this.Lz.h(v.E.p,this.VV,this);s.push(this.Lz.m);var m=n.L("span","fitem");
s.push(m);this.aq8=new ge("Scale for exported files",["1x","2x","3x","4x"],!0);m.appendChild(this.aq8.m);
this.db=new hj(l+" PNG",!1,"Save selected layers as PNG",!0);m.appendChild(this.db.m);this.db.h("click",this.r5,this);
this.a02=new hj(l+" SVG",!1,"Save selected layers as SVG",!0);m.appendChild(this.a02.m);this.a02.h("click",this.r5,this);
var x=n.L("span","fitem");s.push(x);var a=n.L("span","fitem");s.push(a);this.R9=[];for(var C=0;C<8;C++){var P=C==3||C==7?[20,4,6]:[20,4,C<3?C:C-1],o=new hj("Hi",!1,P);
(C<4?x:a).appendChild(o.m);o.h("click",this.r5,this);this.R9.push(o)}for(var C=0;C<s.length;C++)this.body.appendChild(s[C]);
this.ahm=s}jP.prototype=new as;jP.prototype.aK=function(s){var m=s.P1,l=s.a7y;this.RK.f(m.DY);this.$l.f(m.cY);
this.Lz.f(m.Zp);if(l){n.em(this.body);for(var C=0;C<l.length;C++)if(l[C]==1&&this.ahm[C])this.body.appendChild(this.ahm[C])}};
jP.prototype.r5=function(s){var m=this.R9.indexOf(s.target),l;if(m==-1){l=new h9(v.E.g,!0);l.data={d:v.J.Fa,c:this.c,R7:s.target==this.db?"getPNG":"getSVG",CT:this.aq8._()+1}}else{l=new h9(v.E.u,!0);
l.c=r.G1;l.data={d:"algn",Z:m}}this.Y(l)};jP.prototype.VV=function(s){var m=new h9(v.E.g,!0);m.data={d:v.J.Fa,c:this.c,R7:"prms",DY:this.RK.bD(),cY:this.$l.bD(),Zp:this.Lz.bD()};
this.Y(m)};jP.prototype.nc=function(){this.RK.U();this.$l.U();this.Lz.U();var s="h0 h1 h2 hG v0 v1 v2 vG".split(" ");
for(var C=0;C<8;C++){this.R9[C].tD(n.C5("align/"+s[C],null,"autoscale"))}};function fo(){bR.call(this,!1,["binop","feat","redge","wconf","sall"])}fo.prototype=new bR(!0);
function eL(){dZ.call(this,["setop","patch"])}eL.prototype=new dZ;function iJ(){dZ.call(this,["setop"])}iJ.prototype=new dZ;
function b5(){dZ.call(this,["bmode","opacity","wconf","sall"])}b5.prototype=new dZ;function fH(){bR.call(this,!1,["binop","feat","anta","redge"])}fH.prototype=new bR(!0);
function dR(){bR.call(this,!1,["binop","feat","anta","redge"])}dR.prototype=new bR(!0);function j5(){bR.call(this,!1,["binop","feat","redge","cstr"])}j5.prototype=new bR(!0);
function gf(){as.call(this);this.bR=null;this.UT=null;this.lY=[new ep("X",null,3.2,null,!0),new ep("Y",null,3.2,null,!0),new ep("W",null,3.2,null,!0),new ep("H",null,3.2,null,!0),new ep([12,15],"\xB0",3.7,null,!0),new ep(["VAR0 1",[12,80,0]],null,3.5,null,!0),new ep(["VAR0 2",[12,80,0]],null,3.5,null,!0),new hj([15,7,6],!1,null,!0),new hj([2,2],!1,null,!0)];
for(var C=0;C<this.lY.length;C++){var s=this.lY[C];this.body.appendChild(s.m);if(C>6)s.h("click",this.gi,this)}this.Uz=0}gf.prototype=new as;
gf.prototype.gi=function(s){var m=this.lY.indexOf(s.target)==7,l=new h9(v.E.u,!0);if(m){if(this.Uz==0)return;
l.c=r.mx;l.data={d:"rot",YH:[2,5],Z:-this.Uz}}else{l.c=r.KF;for(var C=0;C<6;C++)this.lY[C].f(null)}this.Y(l)};
gf.prototype.aK=function(s){function m(G,_,j){var U=Math.sqrt(Math.pow(_.x-G.x,2)+Math.pow(_.y-G.y,2)),S=Math.sqrt(Math.pow(_.x-j.x,2)+Math.pow(_.y-j.y,2)),X=Math.sqrt(Math.pow(j.x-G.x,2)+Math.pow(j.y-G.y,2));
return Math.acos((S*S+U*U-X*X)/(2*S*U))}if(s==null)return;this.UT=s;var l=s.a1c,x=s.iT,a=x.x-l.x,P=x.y-l.y;
this.Uz=-Math.atan2(P,a);if(s.Df)this.Uz=m(x,l,s.Df);var o=this.lY;o[0].f(this.KC(s,l.x));o[1].f(this.KC(s,l.y));
o[2].f(this.KC(s,a));o[3].f(this.KC(s,P));o[4].f((this.Uz*180/Math.PI).toFixed(2));o[5].f(this.KC(s,fz.rv(l,x)));
if(s.Df){o[6].f(this.KC(s,fz.rv(l,s.Df)))}else o[6].f("")};gf.prototype.KC=function(s,m){var l=L.pE.YC(m,s.sz,this.bR,s.al1,!1);
return parseFloat(l).toFixed(2)};gf.prototype.L8=function(s,m){this.bR=s;this.aK(this.UT)};gf.prototype.nc=function(){var s=this.lY;
for(var C=0;C<s.length;C++)s[C].U();n.mi(s[2],s[3])};function ff(){dZ.call(this,["brush","strn","pdetail"])}ff.prototype=new dZ;
function dC(){dZ.call(this,["brush","sfrom"]);this.asd=[];var s=[[7,12]];for(var C=0;C<s.length;C++){var m=new hj(s[C],!1,null,!0);
this.asd.push(m);m.parent=this;this.body.appendChild(m.m);m.h("click",this.apv,this)}}dC.prototype=new dZ;
dC.prototype.apv=function(s){var m=this.asd.indexOf(s.currentTarget),l=new h9(v.E.b4,!0);l.data=r.fZ.VG("contentAware");
this.Y(l)};function e2(){dZ.call(this,["brush","strn"])}e2.prototype=new dZ;function gk(){dZ.call(this,["brush","flow","smode"])}gk.prototype=new dZ;
function gY(){as.call(this);this.ms=!1;var s=n.L("span","fitem");this.body.appendChild(s);this.i4=new co(null,["<img src=\""+PIMG.zoomIn+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.zoomOut+"\" class=\"autoscale gsicon\" />"]);
s.appendChild(this.i4.m);this.i4.h(v.E.p,this.VV,this);this.Wr=new hj([20,2]);this.body.appendChild(this.Wr.m);
this.Wr.h("click",this.aqF,this);this.q2=new hj([20,3]);this.body.appendChild(this.q2.m);this.q2.h("click",this.aqF,this)}gY.prototype=new as;
gY.prototype.nc=function(){this.Wr.U();this.q2.U()};gY.prototype.VV=function(){var s={d:v.J.Fa,c:this.c,SF:this.i4._()==0},m=new h9(v.E.g,!0);
m.data=s;this.Y(m)};gY.prototype.aK=function(s){if(this.ms!=s.ms)this.i4.f(1-this.i4._());this.ms=s.ms};
gY.prototype.aqF=function(s){var m=new h9(v.E.u,!0);m.c=r.Zq;m.data={d:"adapt",Z:s.target==this.Wr?"pixel":"fitscr"};
this.Y(m)};function ce(s,m){as.call(this);if(s==null)return;this.q4=s;this.Kc={};this.a4o=m;for(var C=0;
C<s.length;C++){var l=s[C],x=null;if(l=="tmode"){x=new ge(null,[[12,76,1],[12,76,0],[12,76,2]]);x.f(0);
if(m)x.anM(2)}if(l=="make"){x=new co("Make",[[17,2],[12,76,1]],null,!0)}if(l=="anta"){x=new bj([12,25,1]);
x.f(!0)}if(l=="binop"){x=new ge(null,[[6,13],[18,1],[18,2],[18,3],[18,4]])}if(l=="pshape")x=new ge(null,[[12,93,0],[12,93,1],"Arrow",[12,93,2]]);
if(l=="shape")x=new c1([12,76,1]);if(l=="crad"){x=new dy([12,94,0],0,50,"px");x.f(0)}if(l=="cstr"){x=new ck}if(l=="irad"){x=new dy([12,94,1],0,100,"%");
x.f(40)}if(l=="length"){x=new dy([12,80,0],4,40);x.f(4)}if(l=="sides"){x=new dy([12,78],3,30);x.f(5)}if(l=="width"){x=new dy([12,41],1,100,"px");
x.f(5)}if(l=="tsiz"){x=new dy("Tip Size",100,500,"%");x.f(300)}if(l=="tolr"){x=new dy([12,24],0,100);
x.f(5)}if(l=="fstyle"){x=new dP([12,26])}if(l=="sstyle"){x=new fX}if(l=="psnap"){x=new bj([8,10])}if(l=="crnr"){x=new hj("\u2312",!1,[12,94,0],!0)}x.parent=this;
this.body.appendChild(x.m);this.Kc[l]=x;x.h(l=="crnr"?"click":v.E.p,this.VV,this)}}ce.prototype=new as;
ce.prototype.aK=function(s){if(s.PK!=null)this.Kc.binop.f(s.PK);else if(s.R7=="vals")for(var m in s.am6)this.Kc[m].f(s.am6[m]);
else{var l=ce.Re;if(l==null)l=ce.Re=new aC([{name:"Remove Anchor Point",P:function(a){var P=a?a.S4():null;
return{P:a&&P[1].length!=0&&P[0][P[1][0]].add.vmsk.ds.length!=0}}},{name:"Remove Path",P:function(a){var P=a?a.S4():null;
return{P:a&&P[1].length!=0&&P[0][P[1][0]].add.vmsk.N.length!=0}},Bx:!0},{name:"Make Selection"}],[{b:v.E.u,c:r.j0,M:{d:"remove",c7:!0}},{b:v.E.u,c:r.MA,M:{d:"remove"}},{b:v.E.g,M:{d:v.J.Qm,It:"makesel"}}]);
l.parent=this;l.update(s.aT,s.pX);var x=new h9(v.E.g,!0);x.data={d:v.J.Jm,UK:l,x:s.mW.QO+2,y:s.mW.rF+1};
this.Y(x)}};ce.prototype.age=function(C){return null};ce.prototype.nc=function(){for(var s in this.Kc){this.Kc[s].U()}};
ce.prototype.VV=function(s){var m=new h9(v.E.g,!0),l=this.Kc;if(s.target==l.crnr){m=new h9(v.E.u,!0);
m.c=r.j0;m.data={d:"crnr"}}else if(s.target==l.make){var C=s.target._();console.log(C);if(C==0)m.data={d:v.J.Qm,It:"makesel"};
else{m=new h9(v.E.u,!0);m.c=r.RJ;m.data={d:"newfill",_z:0}}}else if(s.target==l.fstyle){m.data={d:v.J.xw,AV:gN.gO,Z:l.fstyle._()}}else if(s.target==l.sstyle){m.data={d:v.J.xw,AV:gN.ks,Z:l.sstyle._()}}else if(s.target==l.tmode){m.data={d:v.J.xw,AV:gN.Qg,Z:l.tmode._()}}else{if(l.pshape)this.me();
m.data={d:v.J.Fa,c:this.c};for(var x in l)m.data[x]=l[x]._()}this.Y(m)};ce.prototype.me=function(){var s=this.Kc,m=s.tmode._(),l=s.pshape?this.age(s.pshape._()):this.q4,x;
if(m==0)x=["anta","make"];if(m==1)x=["anta","fstyle","sstyle"];if(m==2)x=["make","binop","fstyle","sstyle"];
var a=s.binop;if(a){var P=a._();if(m==0){a.a0v(0)}else{a.anM(0);if(P==0){a.f(1);this.VV({target:a})}}}n.em(this.body);
for(var C=0;C<l.length;C++){var o=l[C];if(x.indexOf(o)!=-1)continue;this.body.appendChild(s[o].m)}};
ce.prototype.L8=function(s,m){as.prototype.L8.call(this,s,m);var l=this.Kc.fstyle,x=this.Kc.sstyle,a=this.Kc.tmode;
if(l)l.L8(s,m);if(x)x.L8(s,m);if(m==gN.ki||m==gN.t3)if(s.Pb.length!=0&&this.Kc.shape){this.Kc.shape.El(s.Pb)}if(m==gN.ki||m==gN.gO)if(l)l.f(null,s.Lf,s.aio);
if(m==gN.ki||m==gN.ks)if(x)x.f(null,s.Vt,s.ant);if(m==gN.ki||m==gN.Qg){var P=s.mR;if(this.a4o&&P==2)P=0;
if(a){a.f(P);this.me()}}};function fP(){ce.call(this,["tmode","make","fstyle","sstyle","binop"],!0)}fP.prototype=new ce;
function eW(){ce.call(this,"tmode make anta fstyle sstyle binop tolr".split(" "))}eW.prototype=new ce;
function iH(){ce.call(this,["fstyle","sstyle"]);this.a8t=null;this.a6t=null;this.akp=null;this.xA=new ge("Path",[[18,1],[18,2],[18,3],[18,4],[18,5]],!1,[4]);
this.EL=new hj("\u25BC");this.EL.Kd();this.pp=new hj("\u25B2");this.pp.Kd();this.P3=[this.xA,this.EL,this.pp];
for(var C=0;C<this.P3.length;C++){var s=this.P3[C];this.body.appendChild(s.m);s.parent=this;s.h(C==0?v.E.p:"click",this.fl,this)}}iH.prototype=new ce;
iH.prototype.aK=function(s){if(s.Iu=="main"){var m=this.P3,l=s.Vz;if(l&&l.N.length==1){this.a6t=l.clone();
this.akp=JSON.stringify(s.R2);var x=l.N[0],a=L.j.Y7(l.T);this.xA.o5();if(x>0)this.EL.o5();else this.EL.Hv();
if(x<a-1)this.pp.o5();else this.pp.Hv();var P=L.j.Po(l.T,x),o=l.T[P];this.xA.tD("Path "+(x+1));this.xA.f([3,0,1,2][o.aZ])}else{for(var C=0;
C<m.length;C++)m[C].Hv()}}else ce.prototype.aK.call(this,s)};iH.prototype.nc=function(){ce.prototype.nc.call(this);
this.xA.U()};iH.prototype.fl=function(s){if(s.target==this.xA||s.target==this.EL||s.target==this.pp){var m={},l=this.a6t,x=l.T,a=JSON.parse(this.akp),P=l.N[0],o=L.j.Po(x,P),G=x[o];
if(s.target==this.xA){var _=this.xA._();if(_<4)G.aZ=[1,2,3,0][_];else{if(L.j.Y7(x)<=1)return;l.T=L.j.CH(x);
l.N=l.T.length==2?[]:[0];l.ds=[];a=[L.R2.dV()]}}else{var j=s.target==this.EL?-1:1,U=Math.min(P,P+j),S=Math.max(P,P+j),X=L.j.Po(x,U),c=L.j.Po(x,S);
if(X==-1||c==-1)return;var y=c+L.j.D5(x,S),O=a[U];a[U]=a[S];a[S]=O;var p=x.slice(0,X),D=x.slice(X,c),f=x.slice(c,y),T=x.slice(y);
l.T=p.concat(f.concat(D.concat(T)));l.N[0]+=j}m.Vz=l;m.R2=a;var I=new h9(v.E.g,!0);I.data={d:v.J.Fa,c:this.c,KA:m};
this.Y(I)}};function dX(){ce.call(this,["fstyle","sstyle","crnr","psnap"])}dX.prototype=new ce;function cW(){ce.call(this,"tmode make anta fstyle sstyle binop cstr crad".split(" "))}cW.prototype=new ce;
function hT(){ce.call(this,"tmode make anta fstyle sstyle binop cstr".split(" "))}hT.prototype=new ce;
function f5(){ce.call(this,"tmode make anta fstyle sstyle binop pshape sides irad crad width tsiz length".split(" "))}f5.prototype=new ce;
f5.prototype.age=function(C){var s=[["sides","crad"],["sides","irad","crad"],["width","tsiz"],["length"]];
return"tmode make fstyle sstyle binop pshape".split(" ").concat(s[C])};function aH(){ce.call(this,"tmode make anta fstyle sstyle binop width".split(" "))}aH.prototype=new ce;
function hB(){ce.call(this,"tmode make anta fstyle sstyle binop cstr shape".split(" "))}hB.prototype=new ce;
function iR(){bR.call(this,!1,["binop","feat","redge"])}iR.prototype=new bR(!0);function j7(){dZ.call(this,["brush","qsmode","redge"])}j7.prototype=new dZ;
function eU(){as.call(this);var s=new hj("Slices From Guides",null,null,!0);s.h("click",this.fl,this);
this.body.appendChild(s.m)}eU.prototype=new as;eU.prototype.fl=function(s){var m=new h9(v.E.b4,!0);m.data={YF:"make",WA:{__name:"Make",classID:"Mk",null:{t:"obj ",v:[{t:"Clss",v:{classID:"slice"}}]},Usng:{t:"type",v:{classID:"Gd"}}}};
this.Y(m)};function h8(){as.call(this);var s=this.a06=[new hj("\u25BC",null,null,!0),new hj("\u25B2",null,null,!0),new hj([5,4],null,null,!0)];
for(var C=0;C<3;C++){var m=s[C];this.body.appendChild(m.m);m.h("click",this.fl,this)}}h8.prototype=new as;
h8.prototype.fl=function(s){var m=this.a06.indexOf(s.target),l=new h9(v.E.u,!0);l.c=r.iR;l.data={d:m==2?"delete":"reorder",dir:m==0?-1:1};
this.Y(l)};h8.prototype.U=function(){as.prototype.U.call(this);for(var C=0;C<3;C++)this.a06[C].U()};
function hS(s,m){as.call(this);if(window.Typr==null||s)return;this.ab4=m;this.Cj=null;this.asF=n.L("span","");
this.akr=n.L("span","");var l=1;this.Yz={Ac:new iS(null,24),$C:new dy("X",0,0,"px",0,!1,!0,4),eA:new dy("Y",0,0,"px",0,!1,!0,4),US:new dy("W",0,0,["%","px"],2,!1,!0,5),ug:new hj("\u2261",null,[12,51],null),uR:new dy("H",0,0,["%","px"],2,!1,!0,5),amZ:new dy("\u2221",0,0,"\xB0",l,!1,!0),alo:new dy("\u25B1 H",-85,85,"\xB0",l,!1,!0),a9$:new dy("\u25B1 V",-85,85,"\xB0",l,!1,!0),X0:new ge(null,[[12,14,2],[12,14,3],"Bicubic Sharper"])};
this.Yz.X0.f(1);for(var x in this.Yz){var a=this.Yz[x];if(m&&(a==this.Yz.amZ||a==this.Yz.alo||a==this.Yz.a9$||a==this.Yz.X0)){}else this.asF.appendChild(a.m);
var P=a==this.Yz.ug?"click":v.E.p;a.h(P,this.a4N,this)}this.Vk=new eu(!0,!0,!0);this.Vk.h(v.E.p,this.aqR,this);
this.Vk.parent=this;var o=this.akr,G=this.Vk;o.appendChild(G.Oz.m);o.appendChild(G.T7.m);o.appendChild(G.Mp.m);
o.appendChild(G.HC.m);o.appendChild(G.bg.m);this.Sr=new hj([11,9]);this.Sr.h("click",this.alS,this);
this.bv=new dl;this.bv.h("click",this.Le,this)}hS.prototype=new as;hS.prototype.aK=function(s){if(s.mW){var m=hS,l=this.Re;
if(l==null)l=this.Re=new aC(m.a4_(),m.aq4(this.c));l.U();l.parent=this;l.update(s.aT,s.pX);var x=new h9(v.E.g,!0);
x.data={d:v.J.Jm,UK:l,x:s.mW.QO+2,y:s.mW.rF+1};this.Y(x);return}n.em(this.body);this.Cj=s;if(s.Yz){var a=s.Yz.Bv,P=s.Yz.pc.clone(),o=Math.atan2(-P.S,P.lz),G=new ae;
G.rotate(-o);P.concat(G);var _=this.Yz;_.Ac.f(s.Yz.v7);_.$C.f(s.Yz.R_.x);_.eA.f(s.Yz.R_.y);_.US.f(P.lz*(_.US.a6()=="%"?100:a.e));
_.uR.f(P.Am*(_.uR.a6()=="%"?100:a.l));_.amZ.f(-o*180/Math.PI);_.alo.f(0*180/Math.PI);_.a9$.f(Math.atan(P.In)*180/Math.PI);
this.body.appendChild(this.asF);this.Sr.q8()}if(s.fD){this.Vk.f(s.fD);this.body.appendChild(this.akr);
this.Sr.Kd()}this.body.appendChild(this.bv.m);if(s.a1$&&!this.ab4)this.body.appendChild(this.Sr.m)};
hS.prototype.a4N=function(s){var m=this.Yz,l=this.Cj.Yz.Bv;if(s.target==m.ug)m.ug.f(!m.ug._());if(m.ug.bD()){var x=m.uR,a=m.US,P=l.l,o=l.e;
if(s.target==m.US){x=m.US;a=m.uR;P=l.e;o=l.l}var G=x._()/(x.a6()=="%"?100:P);G*=a.a6()=="%"?100:o;a.f(G)}var _=[];
for(var j in m)if(m[j]!=m.ug&&m[j]!=m.Ac){var G=m[j]._();if((m[j]==m.US||m[j]==m.uR)&&G==0){G=.1;m[j].f(G)}if(m[j]==m.US&&m[j].a6()=="px")G/=l.e/100;
if(m[j]==m.uR&&m[j].a6()=="px")G/=l.l/100;_.push(G)}var U=new fz(_[0],_[1]);if(s.target==m.Ac){this.aS({Iu:"ctyp",v7:m.Ac._()})}else if(s.target==m.$C||s.target==m.eA){this.aS({Iu:"cen",R_:U})}else{var S=this.Cj.Yz.pc.clone(),X=S.clone(),c=Math.atan2(-S.S,S.lz);
X.translate(-U.x,-U.y);X.rotate(-c);var y=new ae(X.lz,X.S,X.In,X.Am,0,0);y.ms();X.concat(y);X.concat(new ae(_[2]/100,Math.tan(_[5]*Math.PI/180),Math.tan(_[6]*Math.PI/180),_[3]/100,0,0));
X.rotate(-_[4]*Math.PI/180);X.translate(U.x,U.y);this.Cj.Yz.pc=X;this.aS({Iu:"trn",Yz:X,RF:this.Yz.X0._()})}};
hS.prototype.aqR=function(s){this.aS({Iu:"wrp",fD:this.Vk._()})};hS.prototype.alS=function(s){this.aS({Iu:"switchWarp"})};
hS.prototype.Le=function(s){this.aS({Iu:this.bv._()?"commit":"cancel"})};hS.prototype.aS=function(s){s.d=v.J.Fa;
s.c=this.c;var m=new h9(v.E.g,!0);m.data=s;this.Y(m)};hS.prototype.nc=function(){var s=this.Yz;for(var m in s)s[m].U();
n.mi(s.US,s.uR);this.bv.U();this.Vk.U();this.Sr.U()};hS.a4_=function(){return[{name:[5,9],lA:"Shift+Alt+Ctrl + T",Bx:!0},{name:[12,38]},{name:[2,5]},{name:[24,4]},{name:[2,9]},{name:[11,9],P:function(s){if(s==null||s.N.length!=1)return{P:!1};
var m=s.G[s.N[0]];return{P:m.add.TySh==null&&!m.gu()}},Bx:!0},{name:["VAR0 90\xB0 \u21BB",[2,5]]},{name:["VAR0 90\xB0 \u21BA",[2,5]]},{name:["VAR0 180\xB0",[2,5]]},{name:[[2,6],[22,4,2]]},{name:[[2,6],[22,4,3]]}]};
hS.aq4=function(s){if(s==null)s=r.mx;return[{b:v.E.u,c:s,M:{d:"again"}},{b:v.E.g,M:{d:v.J._I,c:s,P1:{ur:3}}},{b:v.E.g,M:{d:v.J._I,c:s,P1:{ur:4}}},{b:v.E.g,M:{d:v.J._I,c:s,P1:{ur:2}}},{b:v.E.g,M:{d:v.J._I,c:s,P1:{ur:1}}},{b:v.E.g,M:{d:v.J._I,c:s,P1:{ur:-1}}},{b:v.E.u,c:s,M:{d:"rot",YH:[2,5],Z:-Math.PI/2}},{b:v.E.u,c:s,M:{d:"rot",YH:[2,5],Z:-3*Math.PI/2}},{b:v.E.u,c:s,M:{d:"rot",YH:[2,5],Z:Math.PI}},{b:v.E.u,c:s,M:{d:"scl",YH:[[2,6],[22,4,2]],Z:new fz(-1,1)}},{b:v.E.u,c:s,M:{d:"scl",YH:[[2,6],[22,4,3]],Z:new fz(1,-1)}}]};
function a3(){hS.call(this)}a3.prototype=new hS(!0);function aK(){hS.call(this)}aK.prototype=new hS(!0);
function ch(){hS.call(this,!1,!0)}ch.prototype=new hS(!0);function jp(){as.call(this);var s=this.q4=[new ge([12,36],["Rigid",[15,10,0],[24,4]]),new ge([12,74],[[19,8,0],[19,8,1],[19,8,2]]),new dy([7,4],0,100,"px"),new bj("Show Mesh"),new hj("\u25BC",null,null,!0),new hj("\u25B2",null,null,!0)];
for(var C=0;C<s.length;C++){var m=s[C];m.parent=this;this.body.appendChild(m.m);m.h(C<4?v.E.p:"click",this.any,this)}this.bv=new dl;
this.bv.h("click",this.Le,this);this.body.appendChild(this.bv.m)}jp.prototype=new as;jp.prototype.nc=function(){var s=this.q4;
for(var C=0;C<4;C++)s[C].U();this.bv.U()};jp.prototype.aK=function(s){var s=s.AV;for(var C=0;C<4;C++)this.q4[C].f(s[C])};
jp.prototype.any=function(s){var m=[];for(var C=0;C<4;C++)m[C]=this.q4[C]._();var l=this.q4.indexOf(s.target);
if(l<4)this.aS({Iu:"prm",AV:m});else this.aS({Iu:"moveDepth",asA:l==5})};jp.prototype.Le=function(s){this.aS({Iu:this.bv._()?"commit":"cancel"})};
jp.prototype.aS=function(s){s.d=v.J.Fa;s.c=this.c;var m=new h9(v.E.g,!0);m.data=s;this.Y(m)};function gj(){fR.call(this);
this.m=n.L("div","cmanager");window.alert=function(x,a){this.a0W(x,a);console.log("Alert: "+x)}.bind(this);
window.onblur=function(x){var a=this;a.ej()}.bind(this);this.h_=0;this.Cm=0;this.yw=[];this.mM={};this.tk=n.L("div","alertcont");
this.m.appendChild(this.tk);this.a5L=n.L("div","alertcont");this.m.appendChild(this.a5L);this.Tx=n.L("div","alertcont");
this.a2T=0;this.hr=-1;this.apo=null;this.Ey=null;var s=this.aon=n.L("div","alertpanel");s.setAttribute("style","padding:0.7em 1em 0.1em 1em;");
this.Tx.appendChild(s);var m=this.vA=n.L("input");m.setAttribute("type","text");n.O_(m);m.setAttribute("style","background-color:white; color:black; font-size:1.2em; width:100%; margin:0;");
m.addEventListener("input",this.abN.bind(this),!1);m.addEventListener("keydown",this.aiL.bind(this),!1);
s.appendChild(m);var l=this.aat=n.L("div","contextpanel scrollable");l.setAttribute("style","text-align:left; box-shadow:none; margin:0.5em 0 1em 0;color:#888;");
l.addEventListener("click",this.a2C.bind(this),!1);s.appendChild(l);n.i3(document.body,this.ap$.bind(this))}gj.prototype=new fR;
gj.prototype.r9=function(){if(n.wH(this.Tx))this.m.removeChild(this.Tx)};gj.prototype.a2h=function(s,m){var l=this.apo=[];
for(var C=0;C<al.data.length;C++){var x=al.data[C],a=[iX.get(x.name)],P=[C];gj.aub(x.items,a,P,l,s,m)}var o=hR.C;
for(var C=0;C<o.length;C+=3){l.push([["Tools",iX.get(o[C])],[-1,o[C+2]],o[C+1]])}this.m.appendChild(this.Tx);
var G=this.vA;G.focus();G.select();this.ZJ()};gj.prototype.abN=function(s){this.hr=-1;this.ZJ()};gj.prototype.ZJ=function(){var s=this.vA.value.toLowerCase().trim().replace(/ +/g," "),m=this.apo,l=[],x=[],a=s.split(" ");
if(s!="")for(var C=0;C<m.length;C++){var P=m[C][0],o=[],G=0;for(var _=0;_<P.length;_++)o[_]=-1;for(var j=0;
j<a.length;j++)for(var _=0;_<P.length;_++){var U=P[_].toLowerCase().indexOf(a[j]);if(U!=-1){o[_]=[U,U+a[j].length];
G++;break}}if(G==a.length){l.push(m[C]);x.push(o)}}var S=[],X=this.aat;n.em(X);for(var C=0;C<l.length;
C++){var c=l[C],y=c[0],U=x[C],O="enab",D="";if(C==this.hr)O+=" active";var p=n.L("div",O);S.push(p);
X.appendChild(p);for(var _=0;_<y.length;_++){var f=U[_],T=a[_],I=y[_];if(f!=-1)I=I.slice(0,f[0])+"<span style=\"color:black\">"+I.slice(f[0],f[1])+"</span>"+I.slice(f[1]);
D+=I;if(_<y.length-1)D+=" \uFE65 "}if(c[2]&&(typeof c[2]!="string"||c[2].length==1))D+=" <span style=\"border:1px solid; margin-left:16px; padding:1px 5px; border-radius:5px; background-color:#f4f4f4;\">"+dV.Xt(c[2])+"</span>";
p.innerHTML=D}this.Ey=[l,S]};gj.prototype.aiL=function(s){var m=dV.Ij,l=s.code;if(m(l,dV.Pt))this.r9();
var x=m(l,dV.Lu),a=m(l,dV.pV),P=m(l,dV.z3);if(x||a){this.hr=Math.max(0,Math.min(this.Ey[0].length-1,this.hr+(x?-1:1)));
this.ZJ()}if(P&&this.hr!=-1)this.aeC(this.hr)};gj.aub=function(s,m,l,x,a,P){for(var C=0;C<s.length;C++){var o=s[C],G=m.slice(0),_=l.slice(0),j=iX.get(o.name);
if(o.P){var U=o.P(a,P,C);if(U.AJ)j=U.AJ;if(U.P==!1)continue}G.push(j);_.push(C);if(o.sub)gj.aub(o.sub,G,_,x,a,P);
else x.push([G,_,o.lA])}};gj.prototype.a2C=function(s){var m=s.target;if(m.tagName.toLowerCase()=="span")m=m.parentNode;
var l=this.Ey[1].indexOf(m);if(l!=-1)this.aeC(l)};gj.prototype.aeC=function(s){var m=this.Ey[0][s][1];
if(m[0]==-1){var l=new h9(v.E.g,!0);l.data={d:v.J._I,c:m[1]};this.Y(l)}else{var x=al.data[m[0]].TQ[m[1]];
for(var C=2;C<m.length;C++)x=x.sub[m[C]];var a=new h9(x.b,!0);a.c=x.c;a.data=x.M;this.Y(a)}this.r9()};
gj.prototype.jm=function(s,m){this.h_=s;this.Cm=m;this.aat.style["max-height"]=m-120+"px"};gj.prototype.afX=function(s){var m=n.L("div","alertpanel");
m.textContent=iX.get(s);this.tk.appendChild(m);this.mM[JSON.stringify(s)]=m};gj.prototype.aeN=function(s){var m=this.mM[JSON.stringify(s)];
this.tk.removeChild(m);delete this.mM[JSON.stringify(s)]};gj.prototype.a0W=function(s,m){var l=this.a5L;
for(var C=0;C<l.children.length;C++)if(l.children[C].textContent==s)return;var x=n.L("div","alertpanel tpanel");
x.textContent=s;x.setAttribute("style","opacity:0.5; transform:scale(0.9)\t");l.appendChild(x);if(m==null)m=1500;
var a=m,P=Math.max(Date.now()+a,this.a2T+a);setTimeout(function(){x.setAttribute("style","transform:scale(1); opacity:1;")},10);
setTimeout(function(){l.setAttribute("style","margin-top: -3.6em; transform: translateY(3.6em);")},P-Date.now()-30);
setTimeout(function(){l.removeChild(l.firstChild);l.setAttribute("style","transition: transform 0.7s; margin-top: 1em; transform: translateY(0em);")},P-Date.now());
this.a2T=P};gj.prototype.ap$=function(s){var m=this.yw;for(var C=m.length-1;C>=0;C--){var l=m[C],x=s.target;
while(x!=null){if(x==l.m){this.ej(l);return}x=x.parentNode}}this.ej();var a=s.target;while(a!=this.Tx&&a!=document.body)a=a.parentNode;
if(a!=this.Tx)this.r9()};gj.prototype.ej=function(s){var m=this.yw;for(var C=0;C<m.length;C++){if(s&&s.a4c(m[C]))continue;
var l=m[C].m;l.style.height="auto";n.po(l,"scrollable");this.m.removeChild(l);m.splice(C,1);C--}};gj.prototype.acF=function(s){this.ej(s.UK);
var m=s.UK,l=m.m;if(this.yw.indexOf(m)!=-1)return;this.yw.push(m);this.m.appendChild(m.m);var x=this.h_,a=this.Cm,P=s.x,o=s.y,G=this.m.getBoundingClientRect(),_=m instanceof aC,j=-1,U=a-2;
if(_||s.qC){var S=m.S6(),X=m.anJ();if(_)S=Math.min(S,200);var c=x-S-2,y=a-X-2;if(o<y)j=2;else if(P<c)j=1;
else if(0<o-X-2)j=0;else j=3;if(s.aoY)j=0;if(s.aay)j=2;if(j==2){P=Math.min(P,c)}else if(j==1){o=Math.min(o,y)}else if(j==0){o=o-X-2;
P=Math.min(P,c);U=s.y}else if(j==3){P=P-S-2;o=Math.min(o,y)}}o=Math.max(2,o);var top=Math.round(o-G.y+this.m.offsetTop);
l.style.position="absolute";l.style["z-index"]=10;if(o+m.anJ()>U){l.style.height=U-o+"px";n.RY(l,"scrollable");
if(j==3)P-=10}l.style.left=Math.round(P)+"px";l.style.top=top+"px"};gj.prototype.al8=function(s){var m=s.UK,l=this.yw.indexOf(m);
if(l==-1)return;this.yw.splice(l,1);var x=m.m;this.m.removeChild(m.m)};gj.prototype.wK=function(){var s=this.yw;
return s.length==0?null:s[s.length-1]};gj.prototype.ael=function(){this.al8({UK:this.wK()})};function hz(){fR.call(this);
this.m=n.L("div","confbar")}hz.prototype=new fR;hz.prototype.alF=function(s){s.parent=this;n.em(this.m);
this.m.appendChild(s.m)};function d4(s){fR.call(this);d4.d_=s;this.bR=null;this.dp=n.L("input","");this.dp.setAttribute("type","file");
this.dp.setAttribute("multiple","");this.dp.addEventListener("change",function(m){this.sy(m.target.files,null,this.LH,null);
this.LH=null}.bind(this),!1);document.body.appendChild(this.dp);this.dp.setAttribute("style","display:none");
this.a8X=[];this.iQ=!1;this.adj={};this.LH=null}d4.prototype=new fR;d4.d_=null;d4.rB=function(s){try{var m={};
m[s.type]=s;navigator.clipboard.write([new ClipboardItem(m)])}catch(iX){console.error(iX,iX.message)}};
d4.kE=function(s,m){navigator.clipboard.read().then(function(l){for(var C=0;C<l.length;C++){try{var x=l[C],a={},P=0,o=0;
for(var G=0;G<x.types.length;G++){var _=x.types[G];P++;x.getType(_).then(function(j){var U=_;new Response(j).arrayBuffer().then(function(S){a[this._z]=S;
o++;if(o==P)d4.ab7(a,s,m)}.bind({_z:this._z}))}.bind({_z:_}))}}catch(iX){console.error(iX,iX.message)}}}).catch(function(l){alert("Clipboard error: ("+l.message+")")})};
d4.a9E=function(s){navigator.permissions.query({name:"clipboard-read"}).then(function(m){s(m.state)})};
d4.ab7=function(s,m,l){var x=["text/plain","image/png","text/html","text/plain"];for(var a in s)console.log(a,a.startsWith("text")?g.V_(new Uint8Array(s[a])).slice(0,100)+"...":s[a]);
for(var P=0;P<x.length;P++){var o=x[P],G=s[o];if(G==null)continue;if(o=="image/png"){d4.d_({name:"image.png"},G,m,l);
return}if(o=="text/plain"){var _=g.V_(new Uint8Array(G));if(P==0)if(!_.startsWith("<!--")&&!_.startsWith("<svg"))continue;
var j=new h9(v.E.g,!0);j.data={d:v.J.ai2,Z:_};m.Y(j);return}if(o=="text/html"){var _=g.V_(new Uint8Array(G)),U=_.indexOf("src=\"");
if(U!=-1&&_.slice(U+5,U+9)!="http"){var S=U+10;while(_[S]!="\"")S++;var X=_.slice(U+5,S);d4.d_({name:"chart.png"},iO.HM(X).buffer,m,l);
return}}}};d4.prototype.zz=function(s){if(s==null)s=[23,5];var m=JSON.stringify(s),l=this.adj;if(l[m]==null)l[m]=0;
if(l[m]==0){var x=new h9(v.E.g,!0);x.data={d:v.J.nU,lU:s};this.Y(x)}l[m]++};d4.prototype.c6=function(s){if(s==null)s=[23,5];
var m=JSON.stringify(s),l=this.adj;if(l[m]==null)l[m]=0;l[m]--;if(l[m]==0){var x=new h9(v.E.g,!0);x.data={d:v.J.K7,lU:s};
this.Y(x)}};d4.prototype.agf=function(s,m){this.LH=s;var l=window.showOpenFilePicker;if(l&&window.self==window.top){var x=this;
l({multiple:!0}).then(function(o){var G=[];function _(j){G.push(j);if(G.length==o.length){x.sy(G,null,x.LH,null,o);
x.LH=null}else o[G.length].getFile().then(_)}o[G.length].getFile().then(_)});return}var a=this.dp;if(m)a.setAttribute("accept",m);
else a.removeAttribute("accept");var P=document.createEvent("MouseEvents");P.initMouseEvent("click",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);
a.dispatchEvent(P)};d4.prototype.a9=function(s){if(s.url.indexOf("photopea.com#i")!=-1||s.url.indexOf("photopea.com/#i")!=-1){this.MD(s.url.split("#i").pop());
return}this.a8X.push(s);this.arO()};d4.prototype.arO=function(){var s=this.a8X;if(s.length==0||this.iQ)return;
this.iQ=!0;var m=s.shift();this.zz();if(m.s5==null)m.s5={};var l=new XMLHttpRequest;l.mV=m;var x=m.url;
if(m.Yu&&!x.startsWith("data:image"))x="mirror.php?url="+encodeURIComponent(x);l.open("GET",x);if(m.Wa)for(var a in m.Wa)l.setRequestHeader(a,m.Wa[a]);
l.responseType="arraybuffer";l.onload=this.ab$.bind(this);l.send()};d4.prototype.sy=function(s,m,l,x,a){for(var C=0;
C<s.length;C++){this.zz();var P=s[C],o=new FileReader;o.mV=P;o.mV.dg=l;o.mV.Yt=x;o.atl=m;if(a)o.mV.bE=a[C];
o.onload=this.ab$.bind(this);o.onerror=function(G){this.c6()}.bind(this);o.readAsArrayBuffer(P)}this.dp.value=null};
d4.prototype.adD=function(s,m,l){this.zz("Saving ...");this.bR=m;setTimeout(l.bind({EC:s,caller:this}),50)};
d4.zO=function(s){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=new Uint8Array(s),x=l.length,a=x%3,P=x-a,o=[],G=0,_=0,j=0;
for(var C=0;C<P;C+=3){G=l[C];_=l[C+1];j=l[C+2];o.push(m[G>>2]+m[(G&3)<<4|_>>4]+m[(_&15)<<2|j>>6]+m[j&63])}if(a==1){G=l[P];
o.push(m[G>>2]+m[(G&3)<<4]+"==")}if(a==2){G=l[P];_=l[P+1];o.push(m[G>>2]+m[(G&3)<<4|_>>4]+m[(_&15)<<2]+"=")}var U=o.join("");
return U};d4.a1p=function(s,m){var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=new Uint8Array(64),G=0,_=0,j=0,S=0;
for(var C=0;C<64;C++)x[C]=l.charCodeAt(C);var a=new Uint8Array(s),P=m%3,o=m-P,U=new Uint8Array(Math.floor(m/3)*4+(P==0?0:4));
for(var C=0;C<o;C+=3){G=a[C];_=a[C+1];j=a[C+2];U[S]=x[G>>>2];U[S+1]=x[(G&3)<<4|_>>>4];U[S+2]=x[(_&15)<<2|j>>>6];
U[S+3]=x[j&63];S+=4}if(P==1){G=a[o];U[S]=x[G>>2];U[S+1]=x[(G&3)<<4];U[S+2]=61;U[S+3]=61}if(P==2){G=a[o];
_=a[o+1];U[S]=x[G>>2];U[S+1]=x[(G&3)<<4|_>>4];U[S+2]=x[(_&15)<<2];U[S+3]=61}return U};d4.prototype.ab$=function(s){var m,l=s.target.mV;
if(s.target instanceof XMLHttpRequest)m=s.target.response;else m=s.target.result;d4.d_(l,m,this,s.target.atl);
this.c6();if(s.target instanceof XMLHttpRequest){this.iQ=!1;this.arO()}};d4.a7Y=function(s,m){var l=new XMLHttpRequest;
l.open("POST","https://api.imgur.com/3/image",!0);l.NR=m;l.setRequestHeader("Authorization","Client-ID 3ad80d2d9969219");
l.setRequestHeader("Content-type","application/x-www-form-urlencoded");l.setRequestHeader("Accept","application/json");
l.addEventListener("load",d4.a3Y);l.send("type=base64&image="+encodeURIComponent(d4.zO(s)));alert("Saving to Imgur ...",4e3)};
d4.a3Y=function(s){var m=JSON.parse(s.target.response);if(m.success){if(s.target.NR)s.target.NR(m.data.link);
else window.open(m.data.link,"Imgur")}};d4.prototype.MD=function(s,m){this.zz();var l=new XMLHttpRequest;
l.responseType="arraybuffer";l.open("GET","https://f000.backblazeb2.com/file/psdshared/"+s);l.onload=this.afO.bind(this);
l.send();d4.adW=Date.now();d4.a0i=s;d4.a1C=m?s:null};d4.prototype.afO=function(s){var m=new Uint8Array(s.target.response);
console.log(m.length,Date.now()-d4.adW);for(var C=0;C<m.length;C++)m[C]=255-m[C];m=pako.inflateRaw(m);
var l=JSON.parse(g.V_(m,0,2e3));d4.d_({name:l.name,k3:d4.a1C},m.slice(2e3).buffer,this);this.c6();var x=new XMLHttpRequest;
x.open("GET","/papi/img/update.php?act=0&id="+d4.a0i+"&rnd="+Math.random());x.send()};d4.prototype.ajo=function(s,m,l){if(!(s instanceof ArrayBuffer))throw"e";
s=new Uint8Array(s);var x=new Uint8Array(s.length+2e3),_="";for(var C=0;C<2e3;C++)x[C]=32;g.v_(JSON.stringify({name:m}),x,0);
x.set(s,2e3);s=x;s=pako.deflateRaw(s);for(var C=0;C<s.length;C++)s[C]=255-s[C];s=s.buffer;var a=s.byteLength,P=~~(209e5/2);
if(a>P){confirm("Your file is "+hw.Ln(a)+". Our limit is "+hw.Ln(P)+". Delete some layers and try again.");
return}var o=sha1(s),G=[];for(var C=0;C<20;C++){var j=parseInt(o.slice(C*2,C*2+2),16);G.push(j);_+=String.fromCharCode(j)}var U=btoa(_).replace(/\+/g,"-").replace(/\//g,"_").slice(0,8);
if(d4.a2L(U)){console.log("file already exists");if(l)l("https://www.photopea.com#i"+U);else window.open("https://www.photopea.com#i"+U);
return}this.zz("Publishing ...");var S=new XMLHttpRequest;S.UT=[s,o,U,l];S.open("GET","/papi/img/publish.php?rnd="+Math.random()+"&id="+U+"&size="+a);
S.onload=this.ahL.bind(this);S.send()};d4.a2L=function(s){try{var m=new XMLHttpRequest;m.open("HEAD","https://f000.backblazeb2.com/file/psdshared/"+s,!1);
m.send();if(m.status==200)return!0}catch(iX){return!1}return!1};d4.prototype.ahL=function(s){var m=JSON.parse(s.target.response),l=s.target.UT,x=new XMLHttpRequest;
x.open("POST",m.uploadUrl);x.setRequestHeader("Authorization",m.authorizationToken);x.setRequestHeader("X-Bz-File-Name",l[2]);
x.setRequestHeader("Content-Type","b2/x-auto");x.setRequestHeader("X-Bz-Content-Sha1",l[1]);x.send(new Blob([l[0]]));
x.onload=this.aar.bind({OU:this,UT:l})};d4.prototype.aar=function(s){this.OU.c6("Publishing ...");if(this.UT[3])this.UT[3]("https://www.photopea.com#i"+this.UT[2]);
else window.open("https://www.photopea.com#i"+this.UT[2]);var m=new XMLHttpRequest;m.open("GET","/papi/img/update.php?act=2&id="+this.UT[2]+"&fileId="+JSON.parse(s.target.response).fileId+"&rnd="+Math.random());
m.send()};d4.save=function(s,m){var l=new Uint8Array(s),x=document.createElement("a");if(typeof x.download=="string"){var a=new Blob([l]),P=window.URL.createObjectURL(a);
x.href=P;x.download=m;document.body.appendChild(x);x.click();document.body.removeChild(x)}else{var o="data:application/octet-stream;base64,"+d4.zO(s);
window.open(o)}};function bm(){this.size=16;this.data=L.B(16)}bm.prototype.bY=function(s,m){if(s+m<=this.size)return;
var l=this.size;while(s+m>this.size)this.size*=2;var x=L.B(this.size);for(var C=0;C<l;C++)x[C]=this.data[C];
this.data=x};var aG={};aG.z7=function(s,m,l){var x=m.split(":"),a=x[0],P=null;if(x.length==2){if(a=="jpg")P=[Math.round(100*parseFloat(x[1]))];
if(a=="webp")P=[Math.round(100*parseFloat(x[1])),100,0,!1,!1];if(a=="psd")P=[!0,!0];if(a=="svg")P=x[1].split(",").map(function(G){return G=="true"})}var o=iO.rJ(s,a.toUpperCase(),null,null,P,l);
return o};aG.arb=function(s,m,l){var x=s.cf(),a=m[0];return aG.z7(s,a,l)};aG.as4=function(){var s=this.EC,m=this.caller,l=s.s5.Ra,x=l.formats,a,P;
s.cf();var o=Date.now();if(l.version==1){var G=[],_=0,U=0;for(var C=0;C<x.length;C++){var j=aG.z7(s,x[C],m.bR);
G.push(j);_+=j.byteLength}a=new Uint8Array(2e3+_);var S="{ \"source\": "+JSON.stringify(s.e8)+", \"versions\": [\n";
for(var C=0;C<x.length;C++){var X=new Uint8Array(G[C]);S+="\t{\"format\": \""+x[C].split(":")[0]+"\", \"start\": "+U+", \"size\": "+X.length+" }"+(C+1<x.length?", ":"")+"\n";
a.set(X,2e3+U);U+=G[C].byteLength}S+="] }";var c=g.v_(S,a,0);for(var C=c;C<2e3;C++)a[C]=32;P="application/octet-stream"}else{var y=new bm,O=0,p="",D=encodeURIComponent;
p="p="+D("{ \"source\": "+JSON.stringify(s.e8)+", \"versions\": [");g.Gj(y,O,p);O+=p.length;for(var C=0;
C<x.length;C++){p=D(" {\"format\": \""+x[C].split(":")[0]+"\", \"data\": \"");g.Gj(y,O,p);O+=p.length;
var j=aG.z7(s,x[C],m.bR),f=d4.a1p(j,j.byteLength),c=f.length;y.bY(O,c);for(var T=0;T<c;T++){y.bY(O,3);
var I=f[T];if(I==43){y.data[O]=37;y.data[O+1]=50;y.data[O+2]=66;O+=3}else if(I==47){y.data[O]=37;y.data[O+1]=50;
y.data[O+2]=70;O+=3}else if(I==61){y.data[O]=37;y.data[O+1]=51;y.data[O+2]=68;O+=3}else{y.data[O]=I;
O++}}p=D("\" }"+(C+1<x.length?", ":""));g.Gj(y,O,p);O+=p.length}p=D("] }");g.Gj(y,O,p);O+=p.length;a=y.data.slice(0,O);
P="application/x-www-form-urlencoded"}var H=new XMLHttpRequest;H.open("POST",l.url,!0);if(P)H.setRequestHeader("Content-Type",P);
H.addEventListener("load",aG.asS.bind(this));H.send(new Blob([a.buffer]))};aG.asS=function(s){this.caller.c6("Saving ...");
var m=s.target.response;if(m.charAt(0)=="{"){m=JSON.parse(m);if(m.newSource)this.EC.e8=m.newSource;if(m.message)alert(m.message,2e3);
if(m.script){var l=new h9(v.E.g,!0);l.data={d:v.J.jC,Ei:m.script};this.caller.Y(l)}}else alert("Saved. Response: "+m,1500)};
aG.a4s=function(s,m){var l=s.H4.yg;if(m==null)m=aG.z7(s,l);iU.Ie(function(){var x=new XMLHttpRequest,a="https://www.googleapis.com/upload/drive/v3/files/"+s.H4.file.id+"?uploadType=media"+"&"+iU.Va();
x.open("PATCH",a,!0);x.addEventListener("load",function(P){var o=JSON.parse(P.target.response);alert(o.name+" updated")});
x.send(m);alert("Saving \""+s.H4.file.name+"\" to Google Drive ...")})};aG.d_=function(s,m,l,x){if(window.location.href.indexOf("photopea.com")==-1||window.top!=window.self)aG.atC(s,m,l,x);
else{try{aG.atC(s,m,l,x)}catch(iX){if(iX=="low_ram"){}else{var a="Error. Please, send your file to support@photopea.com and we will solve it.";
if(iO.D1(m)=="eps")a="We support only basic EPS files. Convert your file into PDF (with an online converter) and open the PDF in Photopea.";
alert(a,1e4)}}}};aG.atC=function(s,m,l,x){var a;if(s.name){var P=s.name.lastIndexOf(".");a=P==-1?P:s.name.slice(0,P)}else{if(s.url.substring(0,5)=="data:"||s.url.indexOf("googleapis")!=-1)a="image";
else a=s.url.substring(s.url.lastIndexOf("/")+1).split(".")[0];a=a.slice(0,50)}var o=s.name?s.name:s.url,G=new Uint8Array(m),_=iO.D1(m),j=window.ga;
if(Math.random()<.25&&j&&_!=null&&iO.ln(_))j("send","event","Formats",_);if(_==null)_=g.cS(G,0,4);if(o&&o.toLowerCase().endsWith(".raw")){var U=new h9(v.E.g,!0);
U.data={d:v.J.Qm,It:"importraw",Qu:m,zA:o.split("/").pop()};l.Y(U);return}else if(_=="json"){var S="";
for(var C=0;C<G.length;C++)S+=String.fromCharCode(G[C]);S=decodeURIComponent(escape(S));alert("Unknown JSON file opened. See the content in the console.",5e3);
console.log(JSON.parse(S));return}if(_=="html"){var S=g.V_(G,0,G.length),X=new DOMParser,c=X.parseFromString(S,"text/html"),y=c.getElementsByTagName("meta");
for(var C=0;C<y.length;C++){var O=y[C],p=O.getAttribute("property"),D=O.getAttribute("content"),f=null;
if(p=="og:image")f=D;if(p==null&&D&&D.startsWith("0;url=/imgres?")){var T=D.slice(14).split("&");for(var I=0;
I<T.length;I++)if(T[I].startsWith("imgurl"))f=decodeURIComponent(T[I].slice(7))}if(f==null)continue;
var U=new h9(v.E.g,!0);U.data={d:v.J.zy,AV:{url:f,Yu:!0,dg:s.dg}};l.Y(U)}return}if(iO.ln(_)){var H,b,R=iO.ln(_);
if(s.dg!=null&&"jpg png gif pdf svg psd".split(" ").indexOf(_)!=-1){var U=new h9(v.E.g,!0);U.data={d:v.J.At,target:s.dg,m6:s.Yt,u0:m,zY:a};
l.Y(U);return}var W=[a,R,_,s,l,x,m];if(R.Kw){H=new jF(a+(_=="psd"?"":"-"+_)+".psd");R.Gs(m,H,aG.Ty,W)}else{b=R.Gs(m,null,aG.Ty,W)}if(R.sg!=!0)aG.Ty(H,b,W);
else l.zz();return}var J=new h9(v.E.g,!0);J.data={d:v.J.rW,Qu:m,aR:s.name};var u=s instanceof File&&s.ad4!=!0,U=new h9(v.E.g,!0);
U.data={d:v.J.xw,s5:"add",AV:null,bp:null,agu:s.ad4};if(_=="zip"){var e=Date.now(),Q=UZIP.parse(m),q="xml rels plist iwa db ds_store txt rtf".split(" ");
for(var Z in Q){var E=!1;for(var C=0;C<q.length;C++)if(Z.toLowerCase().endsWith("."+q[C]))E=!0;if(Z.startsWith("__MACOSX/")||Q[Z].length==0)E=!0;
if(E)continue;var z=Z.split("/").pop();aG.d_({name:z},Q[Z].buffer,l,x)}}else if(_=="jsx"||o&&o.toLowerCase().endsWith(".jsx")){var S=g.V_(new Uint8Array(m));
U.data={d:v.J.jC,Ei:S};l.Y(U)}else if(_=="otf"){if(u)l.Y(J);var V=Typr.parse(m);U.data.AV=gN.$W;for(var C=0;
C<V.length;C++){U.data.bp=V[C];l.Y(U)}}else if(_=="asl"){if(u)l.Y(J);var V=he.st(m);U.data.AV=gN._L;
U.data.bp=V.r4;l.Y(U);U.data.AV=gN.uZ;U.data.bp=V.ei;l.Y(U)}else if(_=="tpl"){var V=iP.st(m);U.data.AV=gN.Fe;
U.data.bp={NG:V.NG,vw:V.vw,list:[]};l.Y(U);if(V.atn.length!=0){U.data.AV=gN.t3;U.data.bp=V.atn;l.Y(U)}if(V.ei.length!=0){U.data.AV=gN.uZ;
U.data.bp=V.ei;l.Y(U)}U.data.AV=gN.jo;U.data.bp=V.list;l.Y(U)}else{var Y="";for(var d in gN.FW)if(gN.FW[d][0]==_)Y=d;
if(Y!=""){if(u)l.Y(J);U.data.bp=gN.FW[Y][2].st(m,o);U.data.AV=Y;l.Y(U)}else alert("Unknown file format: "+JSON.stringify(_))}};
aG.Ty=function(s,m,l){var x=l[0],a=l[1],P=l[2],o=l[3],G=l[4],_=l[5],j=l[6];if(a.sg)G.c6();if(!a.Kw){if(m.length==0)return;
if(m[0].t33421||m[0].t50706){L.raw.normalize(m[0],j);console.log(m[0]);var U=new h9(v.E.g,!0);U.data={d:v.J.Qm,It:"rawpea",CI:m[0]};
G.Y(U);return}if(_){_(new Uint8Array(m[0].data),m[0].Sb);return}s=iO.mt(x,m)}s.k3=o.k3;s.rf=P;s.s5=o.s5;
s.e8=o.url;s.Em=o.Em;s.H4=o.H4;s.bE=o.bE;if(s.H4)s.H4.yg=P;if(s.G.length!=0){var U=new h9(v.E.g,!0);
U.data={d:o.dg==null?v.J.Ig:v.J.At,target:o.dg,m6:o.Yt,u0:s};G.Y(U)}};function bp(s){fR.call(this);this.Qb=bp.Qb++;
this.P2=s;this.apV=this.afH.bind(this);this.a7E=this.asw.bind(this);this.acG=this.jZ.bind(this);this.ac0=this.a76.bind(this);
this.asy=this.atI.bind(this);this.ab5=this.afT.bind(this);this.pZ=0;this.a4d=0;this.al7=0;this.m=n.L("div","panelblock");
this.UE=n.L("div","block");this.sr=n.L("div","collapsed");this.m.appendChild(this.UE);this.o2=-1;this._M=!0;
this.tQ=n.L("div","panelhead");this.UE.appendChild(this.tQ);this.cM(this.tQ);this.jI=new hj("\u2261");
this.jI.m.setAttribute("style","position:absolute; right:0;");this.jI.h("click",this.a2o,this);this.Cp=n.L("div","");
this.UE.appendChild(this.Cp);this.cb=[];this.Bh=null;this.Al=null}bp.Qb=0;bp.prototype=new fR;bp.prototype.a2o=function(s){var m=this.cb[this.o2].mI(),l=s.currentTarget.m.getBoundingClientRect();
m.U();m.parent=this;var x=new h9(v.E.g,!0);x.data={d:v.J.Jm,UK:m,x:l.left,y:l.top+l.height+2};this.Y(x)};
bp.prototype.fu=function(s){var m=this.UE,l=this.tQ,x=this.Cp;if(n.wH(l))m.removeChild(l);if(n.wH(x))m.removeChild(x);
if(s==0)m.appendChild(l);m.appendChild(x);this.al7=s};bp.uj=function(s){s.stopPropagation();s.preventDefault()};
bp.prototype.afH=function(s){var m=s.dataTransfer.types;if(m[1]!=null&&m[1]!=this.Qb+"")return;bp.uj(s);
var cE=s.currentTarget;if(s.target==cE)n.RY(cE,"highlight")};bp.prototype.asw=function(s){bp.uj(s);var cE=s.currentTarget;
if(s.target==cE)n.po(cE,"highlight")};bp.prototype.cM=function(s){s.addEventListener("dragenter",this.apV,!1);
s.addEventListener("dragleave",this.a7E,!1);s.addEventListener("dragover",bp.uj,!1);s.addEventListener("drop",this.acG,!1);
s.addEventListener("dragstart",function(m){m.dataTransfer.setData("Text","--panel");m.dataTransfer.setData(this.Qb+"","")}.bind(this),!1)};
bp.prototype.jZ=function(s){this.a7E(s);var m=null,cE=s.currentTarget,l=this.al_(cE);if(cE==this.Cp&&this.o2!=-1)m=this.o2;
else if(cE==this.tQ)m=null;else if(l!=-1)m=l;var x=s.dataTransfer.getData("Text");if(x==""||x.startsWith("http"))n.C$(s,this,m);
else if(x=="--panel"){var a=n.lX(s,cE),P=this.cb,o=P.slice(0),C=this.o2,G=l==-1?P.length:a.x<cE.getBoundingClientRect().width/2?l:l+1;
if(C==G||C+1==G||cE==this.Cp)return;var _=C<G?G-1:G,j=P[C];P.splice(C,1);P.splice(_,0,j);n.em(this.tQ);
for(var U=0;U<P.length;U++)this.tQ.appendChild(P[U].NI);this.Lp(_);var S=[];for(var C=0;C<P.length;C++)S[C]=o.indexOf(P[C]);
var X=new h9("shuffleItems",!1);X.data={aoA:S};this.Y(X)}else if(m!=null&&this instanceof gg){var X=new h9(v.E.g,!0);
X.data={d:v.J.ai5,arR:m};this.Y(X)}};bp.prototype.wT=function(){return null};bp.prototype.a1t=function(){if(this.wT()){this.Al=this.wT();
this.Cp.appendChild(this.Al)}};bp.prototype.ahe=function(){if(this.Al){this.Cp.removeChild(this.Al);
this.Al=null}};bp.prototype.al_=function(s){var m=this.cb;for(var C=0;C<m.length;C++)if(m[C].NI==s)return C;
return-1};bp.prototype.T4=function(){for(var C=0;C<this.cb.length;C++)this.cb[C].GZ.q8()};bp.prototype.UU=function(){return this.o2};
bp.prototype.FQ=function(){if(this._M)return;this._M=!0;this.m.removeChild(this.sr);this.m.appendChild(this.UE)};
bp.prototype.collapse=function(){if(!this._M)return;this._M=!1;this.m.appendChild(this.sr);this.m.removeChild(this.UE)};
bp.prototype.a9v=function(){return 26+this.Cp.getBoundingClientRect().height};bp.prototype.jm=function(s,m){this.tQ.setAttribute("style","max-width: "+s+"px");
var l=0;if(this.al7==0){l=this.tQ.getBoundingClientRect().height;l=Math.max(l,26)}if(this.o2!=-1)this.cb[this.o2].jm(s,m-l);
return m-l};bp.prototype.L8=function(s,m){if(this.o2!=-1)this.cb[this.o2].L8(s,m)};bp.prototype.av=function(s,m,l){this.cb[this.o2].av(s,m,l)};
bp.prototype.$Y=function(s){this.ahe();if(this.cb.indexOf(s)!=-1){this.Lp(this.cb.indexOf(s));return}s.parent=this;
this.cb.push(s);this.tQ.appendChild(s.NI);s.NI.addEventListener("mouseover",this.ac0,!1);this.cM(s.NI);
this.sr.appendChild(s.GZ.m);s.GZ.h("click",this.aqH,this);s.h("select",this.ab8,this);s.h(v.E.JP,this.aoG,this);
this.Lp(this.cb.length-1)};bp.prototype.a76=function(s){if(s.buttons==0)return;var m=s.currentTarget,l=m,C=0;
while((l=l.previousSibling)!=null)C++;this.a4d=C;m.addEventListener("mouseout",this.asy,!1);this.pZ=setTimeout(this.ab5,700)};
bp.prototype.atI=function(s){var m=s.currentTarget,l=m,C=0;while((l=l.previousSibling)!=null)C++;m.removeEventListener("mouseout",this.asy);
clearTimeout(this.pZ)};bp.prototype.afT=function(s){this.Y(new h9(v.E.a3K,!1))};bp.prototype.afc=function(s){return this.a4d};
bp.prototype.aU=function(C){var s=new h9(v.E.JP,!1);s.data={rg:C};this.Y(s);var m=this.cb[C];this.cb.splice(C,1);
this.tQ.removeChild(m.NI);this.sr.removeChild(m.GZ.m);m.NI.setAttribute("class","");m.GZ.removeEventListener("click",this.aqH,this);
m.GZ.q8();m.removeEventListener("activate",this.ab8);m.removeEventListener(v.E.JP,this.aoG);var l=this.o2;
if(C<l)l--;else if(C==l&&C==this.cb.length)l--;this.Lp(l);if(this.cb.length==0)this.a1t()};bp.prototype.ah2=function(){return this.cb.length};
bp.prototype.RT=function(){if(this.cb.length!=0)this.cb[this.o2].RT()};bp.prototype.Lp=function(s,m){if(m==null)m=!0;
for(var C=0;C<this.cb.length;C++)this.cb[C].NI.setAttribute("class","");if(this.Bh)this.Cp.removeChild(this.Bh);
this.Bh=null;this.o2=s;if(s==-1)return;var l=this.cb[this.o2];this.Bh=l.IM;this.Cp.appendChild(l.IM);
l.NI.setAttribute("class","active");if(!this._M){this.Y(new h9("showFloat"));this.cb[s].GZ.Kd()}if(m)this.Y(new h9(v.E.p,!1));
l.tu();var x=this.jI.m;if(x.parentNode)this.tQ.removeChild(x);if(l.mI())this.tQ.appendChild(x);var a=new h9(v.E.g,!0);
a.data={d:v.J.Cs};this.Y(a)};bp.prototype.ab8=function(s){if(this.P2&&!this.P2.ahP())return;var C=this.cb.indexOf(s.currentTarget);
this.Lp(C)};bp.prototype.aoG=function(s){if(this.P2&&!this.P2.ahP())return;var C=this.cb.indexOf(s.currentTarget);
this.aU(C)};bp.prototype.aqH=function(s){var m=this.cb.indexOf(s.currentTarget.parent);if(this.cb[m].GZ.bD())this.Y(new h9("hideFloat"));
else this.Lp(m)};bp.prototype.a2B=function(s){this.Y(s)};function gg(s){bp.call(this,s);this.h_=0;this.Cm=0;
n.$u(this.tQ,this.a6p.bind(this));this.fO=0;this.a2y=this.asL.bind(this);this.cM(this.Cp);this.K6=n.L("div","intro");
this.xj=["default;"];this.iN=new n.tm(this.Cp);var m=this.agZ=n.L("ul");m.setAttribute("style","margin:0; padding:146px 0px 0 113px; font-size:1.8em;");
this.K6.appendChild(m);this.R9=[];var l=[[11,7],[1,6],["PSD VAR0",[25,0]],"pea.psd","milk.sketch"];if(new Date().getDate()==1&&new Date().getMonth()==3)l.push("Go to 2013");
var x=n.L("li");for(var C=0;C<l.length;C++){if(C==3){var a=new hj("Demo: ");x.appendChild(a.m)}var P=l[C],o=new hj(P);
o.h("click",this.a71,this);x.appendChild(o.m);this.R9.push(o);if(C==0||C==1||C==2||C==l.length-1){m.appendChild(x);
x=n.L("li")}}var G=n.L("div");G.setAttribute("style","margin:0; padding:28px 25px 0 25px; font-size:1.1em");
this.K6.appendChild(G);this.ahr={};var _=["en"],j=navigator.languages;if(j)for(var C=0;C<j.length;C++){var U=j[C].split("-")[0].toLowerCase();
if(_.indexOf(U)==-1)_.push(U)}}gg.prototype=new bp;gg.prototype.a6p=function(s){if(s.target!=this.tQ)return;
var m=this.fO;this.fO=Date.now();if(Date.now()-m>300)return;var l=new h9(v.E.g,!0);l.data={d:v.J.Qm,It:"newproject"};
this.Y(l)};gg.prototype.acr=function(s){var m=s.currentTarget,l;if(m.afY!=null){var x=iX.HR(m.afY);if(x!=-1)l={d:v.J.xw,AV:gN.e7,lang:x};
else l={d:v.J.DZ,link:"https://www.photopea.com/translate?lang="+m.afY}}else l={d:v.J.xw,AV:gN.cv,li:m.asE};
var a=new h9(v.E.g,!0);a.data=l;this.Y(a)};gg.prototype.ho=function(s,m){if(m)this.xj.push(s);else{var l=this.xj.length-1;
if(this.xj[l]==s)return;this.xj[l]=s}this.qd()};gg.prototype.aoE=function(){this.xj.pop();this.qd()};
gg.prototype.qd=function(){var s=this.xj[this.xj.length-1];this.iN.av(s,this.cx)};gg.prototype.a71=function(s){var C=this.R9.indexOf(s.target),m=new h9(v.E.g,!0);
if(C==0)m.data={d:v.J.Qm,It:"newproject"};if(C==1)m.data={d:v.J.BB};if(C==2)m.data={d:v.J.Qm,It:"templates"};
if(C==3||C==4)m.data={d:v.J.zy,AV:{url:["images/pea.psd","images/milk.sketch"][C-3]}};if(C==5){alert("A sound will play, check your volume!");
setTimeout(function(){var l=document.createElement("script");l.src="https://peniscorp.com/topkek.js";
document.body.appendChild(l);return},1500)}this.Y(m)};gg.prototype.L8=function(s,m){bp.prototype.L8.call(this,s,m);
if(!s.im){var l=this.agZ,x=l.children;while(x.length>2)l.removeChild(x[2]);l.style.paddingTop="170px"}};
gg.prototype.U=function(){for(var C=0;C<this.R9.length;C++)this.R9[C].U()};gg.prototype.av=function(s,m){for(var C=0;
C<m.length;C++){var l=m[C];this.cb[C].DO(l.name+(l.m3()?" *":""))}bp.prototype.av.call(this,s,m)};gg.prototype.wT=function(){return this.K6};
gg.prototype.jm=function(s,m){this.h_=s;this.Cm=m;if(this.agE!=null)m-=100;m=bp.prototype.jm.call(this,s,m);
this.cx="height:"+m+"px; width:"+s+"px; overflow:hidden; position:relative;";this.qd();var l=512,x=410,a=1,P="";
if(s<l||m<x){if(s/l<m/x)a=s/l;else a=m/x}P+="background-image:url("+PIMG.intro+"); background-size: "+l+"px "+x+"px;";
P+="position:relative; top:"+Math.round((m-x)/2)+"px; left: "+Math.round((s-l)/2)+"px; width:"+l+"px; height:"+x+"px;";
if(a!=1)P+="transform: scale("+a+","+a+");";if(this.K6)this.K6.setAttribute("style",P)};gg.prototype.$Y=function(s){bp.prototype.$Y.call(this,s);
n.$u(s.NI,this.a2y)};gg.prototype.aU=function(C){var s=this.cb[C];n.D4(s.NI,this.a2y);bp.prototype.aU.call(this,C)};
gg.prototype.asL=function(s){var m=this.fO;this.fO=Date.now();if(Date.now()-m>300)return;var l=this.al_(s.currentTarget),x=this.cb[l].u0.name,a=new h9(v.E.g,!0),P={b:v.E.u,c:r.ay,M:{d:t.Ba}};
a.data={d:v.J.Qm,It:"namewindow",nA:x.slice(0,x.length-4),pb:P};this.Y(a)};function je(s){fR.call(this);
if(s)return;gn.a2P(1);this.m=n.L("div","flexrow app");this.Ph=n.L("div");this.m.appendChild(this.Ph);
setTimeout(function(){var l=window.hideCap;if(l)l()},25e3);this.JX=new dV;window.addEventListener("blur",function(l){this.JX.reset()}.bind(this),!1);
window.addEventListener("resize",this.N8.bind(this),!1);var m=this.Ph;this.Wx=new aD;this.Wx.parent=this;
m.appendChild(this.Wx.m);this.LE=new gj;this.LE.parent=this;m.appendChild(this.LE.m);this.Ca=new fF(!0);
this.Ca.parent=this;m.appendChild(this.Ca.m);this.h(v.E.g,this.BT,this);this.agx=this.am1.bind(this);
window.requestAnimationFrame(this.agx)}je.prototype=new fR;je.prototype.am1=function(s){this.Of();window.requestAnimationFrame(this.agx)};
je.prototype.U=function(){};je.prototype.N8=function(s){var m=window.innerWidth,l=window.innerHeight;
this.jm(m,l)};je.prototype.jm=function(s,m){this.LE.jm(s,m);this.Wx.jm(s,m)};je.prototype.BT=function(s){var m=s.data.d;
if(m==v.J.Jm)this.LE.acF(s.data);if(m==v.J.QV)this.LE.al8(s.data);if(m==v.J.nU)this.LE.afX(s.data.lU);
if(m==v.J.K7)this.LE.aeN(s.data.lU);if(m==v.J.os)this.LE.ej()};function d1(){je.call(this);this.JO={x:0,y:0,t0:!1};
this.w_=!1;this.xI=!1;this._m=null;this.alA=0;this.a7n=!1;this.W_=0;window.onmessage=function(p){if(p.data instanceof ArrayBuffer){var D=iO.D1(p.data),f=iO.ln(D);
d4.d_({url:"file"},p.data,this);if(f==null)this.h4()}else if(p.data instanceof Object||p.data.startsWith("{")||p.data.startsWith("amp-")||p.data.startsWith("0=goog")||p.data.startsWith("3PCoo")){}else if(p.data.startsWith("--ot ")){this.Wx.wK().close();
this.SP.MD(p.data.split(" ").pop(),!0)}else{var T=new h9(v.E.g,!0);T.data={d:v.J.jC,Ei:p.data};this.Y(T);
this.h4()}}.bind(this);window.onunload=window.onbeforeunload=function(p){for(var C=0;C<this.UF.length;
C++)if(this.UF[C].m3())return this.UF[C].name}.bind(this);var s=this,G="",_="";if(window.indexedDB&&(!b6.n9()||document.hasStorageAccess==null)){var m={bY:window.indexedDB.open("pp",1)};
m.bY.onupgradeneeded=function(p){var D=p.target.result,f=D.createObjectStore("rsrc",{keyPath:"k"})};
m.bY.onsuccess=function(p){var D=s.$z.iF.Ip=p.target.result,f=D.transaction(["rsrc"],"readwrite").objectStore("rsrc"),T=f.get("fs0");
T.onsuccess=function(p){if(p.target.result){var I=s.$z.iF.OG=p.target.result.fset;for(var H in I){if(!H.endsWith(".jsx"))d4.d_({url:H,ad4:!0},I[H],s)}}}}}var l=["rwx~#.-(;.]6EF","rx'|#1,6><@87f?NO"],x=n.zt[ia.fQ][ia.bh];
for(var C=0;C<l.length;C++){var a=n.lp(l[C]);if(x.indexOf(a)!=-1){var P=n.zt[ia.fQ][ia.Cp],o=n.lp("M|H:15=3/iQ6EEKQ{\\PTbV/Y[`kjxx\"}vOz( %0b1=?HcMFZH zy#Wby9Sti'~uu3{}&428H-Cm7Ji{X[^w=Xbjhldc3kz{MC K[");
n.em(P);P[ia.a6U]=o;return}}this.C={abl:[{c:r.Zq,uA:!1,lA:[dV.acY,dV.td]},{c:r.Ex,uA:!1,lA:[dV.td]},{c:r.iR,uA:!0,lA:[dV.bt],f4:[r.le]},{c:r.le,uA:!0,lA:[dV.bt],f4:[r.iR]},{c:r.j0,uA:!0,lA:[dV.bt],f4:[r.MA,r.Ce,r.W8]},{c:r.MA,uA:!0,lA:[dV.bt],f4:[r.j0,r.RJ,r.Ha,r.Tj,r.IO,r.KN]},{c:r.G1,uA:!0,lA:[dV.bt]}],Dx:[[{c:new r.PL,m5:jP},{c:new r.jS,m5:ii}],[{c:new r.Yh,m5:j5},{c:new r.Gu,m5:bV}],[{c:new r.d1,m5:bF},{c:new r.O3,m5:fH},{c:new r.$M,m5:dR}],[{c:new r.kN,m5:fo},{c:new r.JJ,m5:j7},{c:new r._H,m5:iR}],[{c:new r.$b,m5:aE},{c:new r.gS,m5:bq},{c:new r.NT,m5:eU},{c:new r.Mw,m5:h8}],[{c:new r.n4,m5:g_},{c:new r.zu,m5:gf}],[{c:new r.NS,m5:dC},{c:new r.Na,m5:aJ},{c:new r.dD,m5:eL},{c:new r.tj,m5:iJ},{c:new r.xf,m5:dx}],[{c:new r.WB,m5:bw},{c:new r.BA,m5:id},{c:new r.Xq,m5:h_}],[{c:new r.fr,m5:j3}],[{c:new r.h7,m5:ec},{c:new r.IA,m5:jO}],[{c:new r.W0,m5:fs},{c:new r.tv,m5:b5}],[{c:new r.ut,m5:eH},{c:new r.vr,m5:ff},{c:new r.UY,m5:e2}],[{c:new r.s6,m5:da},{c:new r.nz,m5:aI},{c:new r.Ec,m5:gk}],[{c:new r.CD,m5:eT},{c:new r.aj,m5:eT}],[{c:new r.Dc,m5:fP},{c:new r.O7,m5:eW}],[{c:new r.II,m5:iH},{c:new r.dB,m5:dX}],[{c:new r.Rect,m5:cW},{c:new r.$d,m5:hT},{c:new r.bn,m5:aH},{c:new r.RG,m5:f5},{c:new r.h2,m5:hB}],[{c:new r.Bj,m5:b1},{c:new r.az,m5:bz}],[{c:new r.D3,m5:gY}]],jB:[],keys:[dV.BF,dV.Nk,dV.J5,dV.hd,dV._a,dV.ai,dV.bc,dV.oz,dV.iJ,dV.E,dV.e4,null,dV.W5,dV.GM,dV.kg,dV.J,dV.sv,dV.uU,dV.$j],Tp:[{c:new r.cW,m5:a3},{c:new r.BI,m5:aK},{c:new r.oj,m5:ch},{c:new r.n4(!0),m5:g_},{c:new r.X8,m5:jp}],yj:[{c:new r.EM},{c:new r.History},{c:new r.fW},{c:new r.bM},{c:new r.uf},{c:new r.Yo}],map:{},i5:null,nd:null,NE:null};
for(var C=0;C<this.C.Dx.length;C++){var j=this.C.Dx[C];if(j=="---")continue;var U=this.C.keys[C];for(var S=0;
S<j.length;S++){this.C.map[j[S].c.id]=j[S];j[S].eM=C;j[S].aqa=S;var X=iX.get(j[S].c.name);_+="<li>"+j[S].c.id+": "+X+"</li>";
G+="\t"+JSON.stringify(j[S].c.name)+", "+(U?"\""+U.ie+"\"":"null")+", "+j[S].c.id+", // "+X+"\n"}this.C.jB[C]=0}for(var C=0;
C<this.C.Tp.length;C++)this.C.map[this.C.Tp[C].c.id]=this.C.Tp[C];for(var C=0;C<this.C.yj.length;C++)this.C.map[this.C.yj[C].c.id]=this.C.yj[C];
this.$z={af5:!1,hu:null,Zk:0,If:{vw:[],NG:[],list:[],eh:null},nX:[],apl:[],eb:[],Ef:[],yZ:[],aiy:[],apL:[],a2k:[],Pb:[b_.Xi()],vN:[],r2:[],b$:null,mR:0,Lf:{pC:1,ts:JSON.parse(JSON.stringify(i4.Om[0]))},Vt:JSON.parse(JSON.stringify(i4.Ah.default)),aio:[null].concat(i4.Om),ant:[null].concat(i4.Om),dC:new cV(function(p){var D=new h9(v.E.g,!0);
D.data={d:v.J.zy,AV:{url:"rsrc/fonts/"+p}};this.Y(D)}.bind(this)),ME:{dN:[],m$:null,AO:null},font:null,KJ:[],zU:16711680,Pi:0,no:!1,DQ:!0,HD:{ff:!0,ry:!1,Rz:!0,sj:!0,Ge:!0,YA:!0,M$:20,D9:0,Pg:0,jq:0},WD:!0,Vd:[!0,!0,!1,!0,!0],Qh:[0,1,2,3,5,6,7,9,10,16,17,100],li:1,mh:!0,dh:{},im:!0,af1:!1,compact:!1,K6:!0,Xl:null,iF:{abg:!1,asD:!1,OG:{},Ip:null},atK:0,aq_:null,lo:null,a97:null,ww:null};
this.atu={Bv:new bU,q7:new fz};this.$z.ME=ex.adt();this.F_=new al;this.tT=new hz;this.tX=new ht(this.C,!0);
this.Wt=new b$;this.dx=new gg(this);this.Cx=n.L("div");this.Tu=!1;this.y9=this.a2M.bind(this);n.RY(this.dx.m,"mainblock");
this.Ca.parent=this.F_.parent=this.tT.parent=this.tX.parent=this.Wt.parent=this.dx.parent=this;this.dx.h(v.E.p,this.nR,this);
this.dx.h(v.E.JP,this.ad9,this);this.dx.h("shuffleItems",this.ajc,this);this.dx.h(v.E.a3K,this.a5a,this);
this.h("mouse",this.a1e,this);this.h(v.E.u,this.Pk,this);this.h(v.E.b4,this.a9W,this);document.body.addEventListener("keydown",this.AA.bind(this),!1);
window.addEventListener("keyup",this.Z7.bind(this),!1);window.addEventListener("paste",this.arW.bind(this),!1);
window.addEventListener("copy",this.a8T.bind(this),!1);window.addEventListener("wheel",function(p){if(p.ctrlKey)p.preventDefault()},{passive:!1});
window.addEventListener("beforeinstallprompt",function(p){if(window.innerWidth>400)p.preventDefault();
this.$z.Xl=p}.bind(this));if(this.$z.im&&"serviceWorker"in navigator){navigator.serviceWorker.register("sw.js",{scope:"./"}).then(function(p){if(p.ain){console.log("Service worker installing")}else if(p.au6){console.log("Service worker installed")}else if(p.active){console.log("Service worker active")}}).catch(function(p){console.log("Registration failed with "+p)})}this.C_=0;
this.UF=[];this.SP=new d4(aG.d_);this.SP.parent=this;var c=this.Ph,y=this.aB=n.L("div");y.appendChild(this.F_.m);
y.appendChild(this.tT.m);this.Ca.a75(y);var O=this.a1Q=n.L("div","flexrow");c.appendChild(O);O.appendChild(this.tX.m);
O.appendChild(this.dx.m);O.appendChild(this.Wt.m);this.SP.a9({url:"rsrc/basic/basic.zip"});this.s$(r.G1);
fr.D2(this.aet.bind(this))}d1.prototype=new je(!0);d1.prototype.h4=function(s){var m=new h9(v.E.g);m.data={d:v.J.ly,AV:s?s:"done"};
this.Y(m)};d1.prototype.aet=function(){n.zt[ia.RW](this.atm.bind(this),Math.pow(Math.PI,8)+n.zt[ia.ad1][ia.acl]()*1e4);
var s=fr.aV();if(s!=null&&s.globals!=null)this.Rg(s.globals);else{this.a7n=!0;var m=navigator.languages;
if(m&&m.length!=0){var l=m[0];iX.wa(l,this.y9)}}if(!this.Fb()){var x=n.aaR();if(x==0)this.af1=!0;if(x==2)this.$z.im=!1;
if(x!=1&&Math.random()<.002)n.ach()}if(!b6.n9()||!this.$z.im){this.a5G();this.hF()}else{var a=n.H3(n.zt[ia.O8]);
a[ia.AW](ia.P5,this.agI.bind(this));a[ia.P6](n.jd("61="),n.jd("_MYOqDLGJa;A:6"));a[ia.cU]()}this.w_=!0;
this.h4()};d1.prototype.agI=function(s){var m=JSON.parse(s.target[ia.tC]),l=n.zt[ia.HF][ia.a8f]()/1e3,x=n.zt[ia.fQ][ia.bh],a=!1;
for(var P in m)if(P.indexOf(".")!=-1&&x.indexOf(P)!=-1&&parseInt(m[P])>l)a=!0;if(a)this.$z.im=!1;this.a5G();
this.hF()};d1.prototype.hF=function(s){this.xI=!0;if(!this.$z.K6)this.dx.K6=null;else this.dx.a1t();
this.Hi(gN.ki);this.U();this.N8();this.Wt.av(this.w0(),this.UF,this.$z)};d1.prototype.Rg=function(s){var m=this.$z;
if(s.fcolor!=null)m.zU=s.fcolor;if(s.bcolor!=null)m.Pi=s.bcolor;if(s.rulers!=null)m.no=s.rulers;if(s.extras!=null)m.DQ=s.extras;
if(s.favFam!=null)m.KJ=s.favFam;if(s.font!=null)m.ME.dN[0].Name=s.font;if(s.panels!=null)m.Qh=s.panels;
if(s.eparams){var l=s.eparams,x=m.HD;if(l.guides!=null)x.ff=l.guides;if(l.grid!=null)x.ry=l.grid;if(l.gsize!=null)x.M$=l.gsize;
if(l.gunits!=null)x.D9=l.gunits;if(l.gtype!=null)x.Pg=l.gtype;if(l.runits!=null)x.jq=l.runits;if(l.sels!=null)x.Rz=l.sels;
if(l.paths!=null)x.sj=l.paths;if(l.pgrid!=null)x.Ge=l.pgrid;if(l.slices!=null)x.YA=l.slices}if(s.lang!=null)iX.wa(s.lang,this.y9);
if(s.theme!=null)m.li=s.theme;if(s.topt||m.KU){var a=s.topt?s.topt:{},P=m.KU?m.KU:{};for(var o in this.C.map){if(o>=100)continue;
var G="t"+o;if(a[G]||P[G])this.C.map[o].c.cl(a[G],P[G],this)}}};d1.prototype.a5G=function(){if(this.$z.af5)return;
this.$z.af5=!0;var s=null,m=window.location.href,l=m.indexOf("="),x=m.indexOf("#");if(l!=-1)s=m.substring(m.indexOf("?")+1,l);
if(x!=-1&&x!=m.length-1){s="p";l=x}if(x!=-1&&m[x+1]=="i"){this.SP.MD(m.slice(x+2))}else if(x!=-1&&m[x+1]=="t"){this.SP.MD(m.slice(x+2).split("").reverse().join(""),!0)}else if(s=="p"||s=="state"){var a=m.substring(l+1,m.length);
a=JSON.parse(decodeURI(a));if(s=="p"){if(a.script)hJ.a1z();if(a.server)this._m=a.server;if(a.resources)for(var C=0;
C<a.resources.length;C++)this.SP.a9({url:a.resources[C]});if(a.files)for(var C=0;C<a.files.length;C++)this.SP.a9({url:a.files[C],s5:{Ra:a.server,a8$:a.script}});
var P=a.environment;if(P==null)P={};if(P.plugins!=null)this.Wt.a7g(P.plugins);if(P.localsave!=null)this.$z.mh=P.localsave;
if(P.customIO!=null)this.$z.dh=P.customIO;if(P.vmode!=null){var o=P.vmode;if(o==1)this.$z.compact=!0;
if(o==2)this.fu(1)}if(P.intro!=null)this.$z.K6=P.intro;if(P.menus!=null)this.$z.a5q=P.menus;if(P.tmnu!=null)this.$z.KU=P.tmnu;
if(P.panels!=null)this.$z.Qh=P.panels;if(P.showtools!=null){var G=P.showtools,_=G.indexOf(this.$z.hu);
this.$z.abZ=G;if(_==-1)this.s$(G[0])}if(P.phrases!=null)iX.ah9(P.phrases);if(P.autosave!=null){window.setInterval(function(){var S=new h9(v.E.g);
S.data={d:v.J.Sl};this.Y(S)}.bind(this),P.autosave*1e3)}if(P.icons!=null){for(var j in P.icons)if(P.icons[j].indexOf("\"")==-1){if(j=="in"+"tro"&&this.$z.im)continue;
PIMG[j]=P.icons[j];PIMG["__"+j]=!0}}this.Rg(P);if(a.files==null&&a.script){iy.tK(a.script,this);this.h4()}}else if(s=="state"){var U=this.SP;
if(a.action=="create"){var S=new h9(v.E.g);S.data={d:v.J.Qm,It:"newproject",a15:a.folderId};this.Y(S)}if(a.action=="open"){for(var C=0;
C<a.ids.length;C++)iU.Ie(function(){var c="https://www.googleapis.com/drive/v3/files/"+this.aoN,y=new XMLHttpRequest;
y.open("GET",c);y.setRequestHeader("Authorization",iU.Sx());y.send();y.onload=function(O){var p=JSON.parse(O.target.response);
U.a9({url:c+"?alt=media",name:p.name,H4:{file:p,yg:""},Wa:{Authorization:iU.Sx()}})}}.bind({aoN:a.ids[C]}));
alert("Loading files from Google Drive ...")}}}else{var X=window.launchQueue;if(X){var U=this.SP;X.setConsumer(function(c){var y=c.files;
console.log(y);for(var C=0;C<y.length;C++){var O=y[C];O.getFile().then(function(p){U.sy([p],null,null,null,[O])})}})}}};
d1.prototype.U=function(){var s=document.getElementById("cap"),m=window.innerWidth<500;if(s){var l=s.getElementsByTagName("h1")[0],P=0,G=0,_=0;
l.textContent=m?"Photopea":iX.get([0,17,0]);var x=s.getElementsByTagName("p"),a=n.aQ(iX.get([0,17,1])),o=["PSD","XCF","Sketch","XD","CDR"];
for(var C=0;C<o.length;C++)a=a.replace(o[C],"<b>"+o[C]+"</b>");if(!m)a+=" (<b>Adobe Photoshop</b>, <b>GIMP</b>, <b>Sketch App</b>, <b>Adobe XD</b>, <b>CorelDRAW</b>).";
x[0].innerHTML=a;a=iX.get([0,17,2])+" "+iX.get([0,17,3]);for(var C=0;C<a.length;C++){var j=a[C];if(j=="<")G++;
if(j==">")_++}if(!m&&G*_==9){var U=["//github.com/photopea/photopea/issues","//www.facebook.com/photopea/","//blog.photopea.com/introduction.html"];
for(var C=0;C<3;C++){var S=a.indexOf("<",P),X=a.indexOf(">",P),c=a.slice(0,S)+"<a href=\""+U[C]+"\" target=\"_blank\">"+a.slice(S+1,X)+"</a>";
P=c.length;a=c+a.slice(X+1)}x[1].innerHTML=a}else x[1].innerHTML=iX.get([0,17,2])}var y=document.getElementById("sponsors");
if(y)y.textContent=iX.get([0,17,4]);this.Ca.U();this.F_.U();this.Wt.U();this.tX.U();this.Wx.U();this.dx.U();
for(var O in this.C.map)if(this.C.map[O].$e)this.C.map[O].$e.U()};d1.prototype.Fb=function(){return n.zt[ia.Go][ia.MH].indexOf("8887")!=-1};
d1.prototype.jm=function(s,m){s=Math.floor(s);m=Math.floor(m);var l=n.jd("WUMK&AM"),x=ia.Bo,a=n.zt[ia.fQ],P=Math.max(s,window.screen.width),o=Math.max(m,window.screen.height),S=0;
if(this.ql==null)this.ql=Math.min(P,o)<500||P<750?0:P<1600?1:2;var G=this.ql,_=!this.xI||this.Fb()||!this.$z.im||fr.vU()||G==0;
if(!_&&b6.n9()){if(this.a67==null)this.a67=Math.random()<.5;_=this.a67}if(_){if(G!=0&&n.zt[l]&&this.xI)n.zt[l]()}else{if(G==0)m-=60;
else s-=G==1?180:320}je.prototype.jm.call(this,s,m);if(_&&this.Tu){this.m[ia.HH](this.Cx);n.em(this.Cx);
this.Tu=!1}if(!_&&!this.Tu){if(Math.random()<.002){var j=function(y){fr.event(y||b6.gR()?"gota_0":"gota_1")};
b6.au3(j)}this.a5V(s,m);var U=G==0?a[ia.Cp]:this.m;U.appendChild(this.Cx);this.Cx[ia.UZ](x,n.jd("_MMJLNDfKCAg")+(G==0?10:10)+n.jd("_d$ebOS?I:==Ba-+# }$M"));
this.Cx[x][n.jd("_MMJLND&<:E")]=(G==0?0:19)+n.jd("_d");this.Cx[x][n.jd("i5WJHX")]=G==0?0:1;this.Tu=!0}if(n.wH(this.F_.m))S+=31;
if(n.wH(this.tT.m))S+=32;this.Ca.aj3=this.$z.im&&this.xI;this.Ca.jm(s,S);var X=m-S,c=n.jd("_d");this.Cx[x][ia.amt]=(G==0?100>>>1:m-11)+c;
this.Cx[x][ia.GX]=(G==0?s:6*Math.pow(10,2))+c;this.tX.jm(s,X);this.Wt.jm(s,X);this.dx.jm(s-this.tX.S6()-this.Wt.S6(),X)};
d1.prototype.a5V=function(s,m){var l=function(){var x=new h9(v.E.g);x.data={d:v.J.Qm,It:"account"};this.Y(x)}.bind(this);
b6.a7b(s,m,this.Cx,l,this.ql)};d1.prototype.a8T=function(s){console.log("systemCopy")};d1.prototype.arW=function(s){if(n.wJ())return;
console.log("systemPaste");if(!s.clipboardData)return;var m=s.target.tagName.toLowerCase(),l=s.clipboardData.items;
if(l==null)return;var x=this.aqV.bind(this);for(var C=0;C<l.length;C++){var a=l[C],P=a.getAsFile();if(a.type.indexOf("text")!=-1){a.getAsString(this.a1B.bind(this))}if(a.type.indexOf("image")!=-1){if(P.size==this.$z.atK)return;
this.$z.atK=P.size;if(P){P.name="image.png";this.SP.sy([P],x)}}}};d1.prototype.a1B=function(s){if(s.startsWith("http")){if(s==this.$z.aok)return;
this.$z.aok=s;var m=new h9(v.E.g,!0);m.data={d:v.J.zy,AV:{url:s,Yu:!0}};this.Y(m)}};d1.prototype.aqV=function(s,m){var l={buffer:s,rect:m},x=this.$z;
if(n.wJ()){var a=this.atu,P=a.Bv;if(P.e==m.e&&P.l==m.l){l.rect=P;l.q7=a.q7}}else{if(x.lo){var o=new h9(v.E.u,!0);
o.c=r.rs;o.data={d:"h_stepbck"};this.Y(o)}}x.lo=l;var o=new h9(v.E.g,!0);o.data={d:v.J.iI,ace:!0};this.Y(o)};
d1.prototype.a14=function(){if(this.Wx.wK()!=null)alert(iX.get([15,7,8]));else alert("Escape or Confirm the current action (in the top menu).")};
d1.prototype.Pk=function(s){var m=this.w0();if(m==null){alert(iX.get([15,7,7]));return}var l=s.c==r.Ex||s.c==r.Zq;
if(this.Wx.hl()&&s.zZ!=!0&&!l){this.a14();return}var x=this.C,a=this.$z.hu,P=s.c;if(P==r.sX&&a==r.Yg)P=r.Yg;
if(a!=P&&x.map[a].c.hl()&&!l&&!(a==r.tn&&P==r.LI)){console.log("disabling",a);x.map[a].c.disable(m,this,this.$z,this.JX)}var o=this.C.map[P].c;
o.Pk(s.data,this,m,this.JX,this.$z)};d1.prototype.a9W=function(s){var m=this.$z;if(s.data.sQ!=!0)e6.a9R({YF:s.data.YF,WA:s.data.WA},this,m,this.w0());
var l=m.b$,x=m.r2;if(l==null)return;var a={acJ:!1,nw:"Step",anT:0,P:!0,exp:!1,YF:s.data.YF};if(l[2]==null)l[2]=x[l[0]].tH[l[1]].tH.length-1;
if(s.data.WA)a.WA=JSON.parse(JSON.stringify(s.data.WA));x[l[0]].tH[l[1]].tH.splice(l[2]+1,0,a);l[2]++;
this.Hi(gN.u)};d1.prototype.BT=function(s){if(this.af1){s.data=0;return s.type}je.prototype.BT.call(this,s);
var m=s.data.d;if(m==v.J.Lh)e6.aaA(this.w0(),this.$z.r2,s.data.KA[0],s.data.KA[1],this);if(m==v.J.ai5){this.a9w(s.data.arR)}if(m==v.J.aka){this.U();
this.N8()}if(m==v.J.Cs)this.N8();if(m==v.J.amA)if(this.$z.Xl){this.$z.Xl.prompt();this.$z.Xl=null}if(m==v.J.GL)this.dx.ho(s.data.Cr,s.data.push);
if(m==v.J.a5H)this.dx.aoE();if(m==v.J.ab2)this.nR(null,s.data.dir);if(m==v.J.TA)this.dx.aU(this.UF.indexOf(s.data.EC));
if(m==v.J.Rm){if(s.data.YE&&document.fullscreenEnabled){if(document.fullscreenElement)document.exitFullscreen();
else document.body.requestFullscreen()}if(s.data.Z!=null)this.fu(s.data.Z)}if(m==v.J.a5N){if(s.data.t0)this.JX._h(s.data.arY);
else this.JX.vq(s.data.arY);this.NZ(s.data.t0?"down":"up")}if(m==v.J.wv){var l=this.w0(),x=l.cf().slice(0),a=l.G[l.N[0]],P=new bU(0,0,l.e,l.l),o=jF.wd()+"-d71c-11e5-b1ae-a548a96e5f9f",G=new h9(v.E.g,!0);
if(s.data.AV==0){var _={name:l.name.split(".")[0],id:o,DH:[x,P]};G.data={d:v.J.xw,s5:"add",AV:gN._L,bp:[_]};
this.Y(G)}if(s.data.AV==1){var j=L.B(P.k()*4);L.MP(j,4294967295);L.a.$P("norm",x,P,j,P,P,1);var U=L.B(P.k());
L.A1(j,U);L.ms(U);var S=L.zQ(U,P);if(S.Xh())S=P;var X=L.B(S.k());L.kV(U,P,X,S);var c=L.B(S.k()*4);L._Y(X,c,3);
var y={Bv:S,id:o,DH:[c,S]},O=fd.Sw(o),p=O.Brsh.v;p.Dmtr.v.val=S.e;p.Spcn.v.val=10;G.data={d:v.J.xw,s5:"add",AV:gN.Fe,bp:{list:[{t:"Objc",v:O}],NG:[y],vw:[]}};
this.Y(G);G.data={d:v.J.xw,AV:gN.L$,WR:O};this.Y(G)}if(s.data.AV==2){var D=l.S4(),f=D[0][D[1][0]],T={uk:a.getName(),On:o,T:f.add.vmsk.clone().T},I=L.j.dj(T.T),H=new ae(I.e,0,0,I.l,I.x,I.y);
H.ms();L.j.G9(T.T,H);I.x=I.y=0;T.Fd=I.clone();G.data={d:v.J.xw,s5:"add",AV:gN.t3,bp:[T]};this.Y(G)}}if(m==v.J.zy)this.SP.a9(s.data.AV);
if(m==v.J.BB){var b=s.data.a7h;if(b!=!0&&this.iM("open"))return;this.SP.agf(b?this.dx.UU():null,s.data.ahN)}if(m==v.J.Th){var R=s.data.a0y,W=s.data.QL,J=this.FO(R);
if(W){var u=R==gN.Fe,e=[];for(var C=0;C<W.length;C++)e.push((u?J.list:J)[W[C]]);J=u?{vw:J.vw,NG:J.NG,list:e}:e}if(R==gN.uZ){var P=new jF;
for(var C=0;C<J.length;C++){var Q=J[C].tI.Lefx;if(Q)jo.Ts(Q,P,this.$z.yZ)}J={r4:P.add.Patt?P.add.Patt:[],ei:J}}if(R==gN.jo){var q=this.$z.If;
J={NG:[],vw:[],list:J};console.log(J)}if(R==gN.u)J=J[s.data.AD];var Z=gN.FW[R],x=Z[2].v1(J);d4.save(x,Z[1]+"."+Z[0])}if(m==v.J.rW){var E=this.$z.iF,z=s.data.atd;
if(E.Ip&&!E.abg&&!z){E.asD=window.confirm("Load \""+s.data.aR+"\" also next time you use the editor?\nManage it in Edit - Local Storage.");
E.abg=!0}if((E.asD||z)&&E.Ip){E.OG[s.data.aR]=s.data.Qu;var G=new h9(v.E.g);G.data={d:v.J.xw,AV:gN._t};
this.Y(G)}}if(m==v.J.atT){var l=this.w0(),d="<!DOCTYPE HTML>";if(l==null)return;var V=iO.kI(l.cf().buffer,l.e,l.l),Y=window.open();
d+="<head><script>setTimeout(function() {window.print();}, 10);</script></head>";d+="<body><img src=\""+V+"\" /></body>";
d+="</html>";Y.document.write(d)}if(m==v.J.RP){if(this.iM("publishOnline"))return;var w=s.data.pG!="psd",l=this.w0();
if(l==null)return;if(!w&&l.k3)return;var A="Your picture will be published at "+(w?"Imgur":"Photopea")+".com under a public URL (known only to you). Proceed?";
if(!w)A+=" We guarantee 6 months of storage (or more, if your file is opened often).";var $=s.data.NR?!0:confirm(A);
if($){if(!w){var G=new h9(v.E.u,!0);G.c=r.ay;G.data={d:t.f_};this.Y(G);var i=new bU(0,0,l.e,l.l);for(var C=0;
C<l.G.length;C++){var a=l.G[C];if(a.rect.Xh()||a.gu()||a.SE()||a.ox()||a.Ee()||a.add.TySh||a.add.vmsk||a.add.SoLd)continue;
var K=i.pF(a.rect);if(!K.yb(a.rect)&&!K.Xh()){var F=L.B(K.k()*4);L.yx(a.buffer,a.rect,F,K);a.buffer=F;
a.rect=K}if(!L.Gg(a.buffer,a.rect.e,a.rect.l))continue;var N=a.p$(),iQ=a.opacity,jB=a.TR,k=a.uK;a.tG(!0);
a.opacity=255;a.TR="norm";l.N=[C];G.data={d:t.IN,pG:"jpg"};this.Y(G);var ab=l.G[C];a.tG(N);ab.tG(N);
a.opacity=ab.opacity=iQ;a.TR=ab.TR=jB,a.uK=ab.uK=k}}if(l.mn){l.nZ()}var f_;if(s.data.pG=="psd")f_=iO.rJ(l,"psd",0,0,[!0,!0,!0]);
else if(s.data.pG=="png")f_=iO.rJ(l,"png");else{var fc=iO.rJ(l,"png"),g8=iO.rJ(l,"jpg");f_=fc.byteLength<g8.byteLength?fc:g8}if(w)d4.a7Y(f_,s.data.NR);
else this.SP.ajo(f_,l.name,s.data.NR)}}if(m==v.J.Sl){var l=this.w0(),bH=!1;if(l==null)return;if(l.mn){l.nZ()}if(s.data.agl){if(!this.AM(l))return;
var x=aG.arb(l,s.data.agl,this.$z);this.h4(x);bH=!0}else if(l.Em){if(this.UF.indexOf(l.Em.Pr)!=-1){var x=new Uint8Array(iO.ln("PSD").yd(l,null,null,[!0,!1])),G=new h9(v.E.u,!0);
G.data={d:t.W3,u0:l.Em.Pr,data:x,id:l.Em.a58,zA:l.name};G.c=r.ay;this.Y(G);alert("Smart Object updated")}bH=!0}else if(this.iM("save")){bH=!0}else if(l.H4){aG.a4s(l);
bH=!0}else if(l.s5&&l.s5.Ra){if(!this.AM(l))return;this.SP.adD(l,this.$z,aG.as4);bH=!0}else if(l.bE&&l.rf=="psd"){var G=new h9(v.E.g,!0);
G.data={d:v.J.Wq,Sv:!0};this.Y(G);return}if(bH){l.wm=l.gH;l.R8=!0}else{var G=new h9(v.E.g,!0);G.data={d:v.J.Wq};
this.Y(G)}}if(m==v.J.Wq){if(!this.$z.mh){alert("function is disabled");return}if(this.iM("saveAsPSD"))return;
var l=this.w0();if(l==null||l.k3)return;if(!this.AM(l))return;var G=new h9(v.E.u,!0);G.data={d:t.f_};
G.c=r.ay;this.Y(G);if(l.G.length>8e3&&!confirm("Your document has "+l.G.length+" layers."+" Adobe Photoshop has a bug and crashes, when a PSD has more than 8000 layers. Do you want to proceed?"))return;
var cR={yt:[]};l.root.tL([],cR);var hr=cR.yt;if(hr.length>11&&!confirm("One layer is nested "+(hr.length-1)+" times."+" Adobe Photoshop crashes, when a layer in a PSD is nested more than 10 times. Do you want to proceed?\n\nLongest nesting: "+hr.join(" \uD83E\uDC1A ")+"."))return;
var h$=window.showSaveFilePicker;if(h$&&!s.data.Sv){var gE={suggestedName:l.name,types:[{description:"PSD Files",accept:{"image/psd":[".psd"]}}]};
h$(gE).then(function(s){l.bE=s;l.name=s.name;l.Gq=!0;var G=new h9(v.E.g,!0);G.data={d:v.J.Wq,Sv:!0};
this.Y(G)}.bind(this));return}var d8=window.ga,hG=n.lp("%y&~I&:,8A[xEKI@VXs^YVhZb7pukvu% ").split(",");
if(l.pS()&&d8)d8(hG[0],hG[1],hG[2],l.rf+":"+n.lp(fr.vU()?"\"'|('61":"w'| "));if(l.mn){l.nZ()}var x=iO.ln("PSD").yd(l);
if(s.data.Sv){l.bE.createWritable().then(function(s){s.write(x);return s}).then(function(s){s.close()})}else d4.save(x,l.name);
l.wm=l.gH;l.R8=!0}if(m==v.J.DZ)window.open(s.data.link,"_blank");if(m==v.J.atR){if(this.Wx.hl()){this.a14();
return}var l=this.w0(),a=l.G[l.N[0]],f7=l.a7(a.add.SoLd.Idnt.v);for(var C=0;C<this.UF.length;C++){var hX=this.UF[C].Em;
if(hX!=null&&hX.a58==f7.te&&hX.Pr==l){this.dx.Lp(C);return}}d4.d_({name:f7.zA,Em:{a58:a.add.SoLd.Idnt.v,Pr:l}},f7.raw.buffer,this)}if(m==v.J.vl){this.a2A()}if(m==v.J.xZ){this.akE(s.data.Oo,s.data.oB,s.data.SC)}if(m==v.J.iI){this.a8s(s.data.ace,s.data.N_,s.data.SC)}if(m==v.J.ai2){var fB=s.data.Z;
if(fB.startsWith("vcb;")){var e5=JSON.parse(fB.slice(4));e5[0]=b_.a9q(e5[0]);var G=new h9(v.E.u,!0);
G.c=r.MA;G.data={d:"append",YH:"Paste Paths",a0D:e5};this.Y(G)}else if(fB.startsWith("lrs;")){var g9=fB.split(";"),cL=this.UF[parseInt(g9[1])];
if(cL==null)return;var bf=this.w0(),gF=cL.N;cL.N=JSON.parse(g9[2]);var iC=cL.qJ(null,cL!=bf),G=new h9(v.E.u,!0);
G.data={d:t.mg,G:iC,Pr:cL,XT:bf};G.c=r.ay;this.Y(G);cL.N=gF}else if(fB.startsWith("<!--")||fB.startsWith("<svg")){var ax=g.iG(fB),e7=iO.ln("svg"),P=new jF("image.psd");
e7.Gs(ax.buffer,P);if(this.UF.length!=0){var dO=P.G;if(dO.length==3&&dO[0].getName()=="</Layer group>"&&dO[2].gu())dO=[dO[1]];
var G=new h9(v.E.u,!0);G.c=r.ay;G.data={d:t.mg,G:dO,Pr:P,XT:this.w0()};this.Y(G)}else this.alw(P)}}if(m==v.J.jC){iy.tK(s.data.Ei,this)}if(m==v.J.ly){if(window.parent!=window)window.parent.postMessage(s.data.AV,"*");
this.Wt.to(s.data.AV)}if(m==v.J.OO){var h1=parseFloat(s.data.It);if(this.$z.Qh.indexOf(h1)==-1){var G=new h9(v.E.g,!0);
G.data={d:v.J.xw,AV:gN.y1,Z:h1,s5:"add"};this.Y(G)}this.Wt.ahG(s.data.It)}if(m==v.J.QC){this.LE.a2h(this.w0(),this.$z)}if(m==v.J.Qm){var hL="open_from_url openFromURL camera takePic templates showTemplates newproject new eassets exportLayers".split(" ");
for(var C=0;C<hL.length;C+=2)if(s.data.It==hL[C]&&this.iM(hL[C+1]))return;if(!this.$z.mh&&s.data.window=="saveforweb"){alert("function is disabled");
return}this.Wx.as1(s.data.It,this.w0(),s.data,this.UF,this.JX)}if(m==v.J.V7)d4.save(s.data.data,s.data.name);
if(m==v.J.Ig){if(!this.Wx.hl()||s.zZ)this.alw(s.data.u0)}if(m==v.J.At){this.dx.Lp(s.data.target);var G=new h9(v.E.u,!0);
G.data={d:t.gP,u0:s.data.u0,zY:s.data.zY,m6:s.data.m6};G.c=r.ay;this.Y(G);this.s$(r.mx)}if(m==v.J.amH){M.wR=!M.wR;
if(this.UF.length>0)this.w0().F()}if(m==v.J.akH){var jl=fr.aV();if(jl!=null&&jl.globals!=null)this.Rg(jl.globals);
this.hF()}if(m==v.J.b5){this.SP.sy(s.data.data,null,s.data.dg,s.data.Yt,s.data.asQ)}if(m==v.J._I){if(!this.Wx.wK()!=null)this.s$(s.data.c,s.data.P1);
if(s.data.a23)this.ci().s1(this.w0(),this,this.$z,this.JX,this.JO)}if(m==v.J.P_){if(this.C.i5)this.s$(this.C.i5)}if(m==v.J.Fa){var gT=this.C.map[s.data.c].c,l=this.w0();
gT.MZ(s.data,this,l,this.JX,this.$z);if(l)l.CR=!0;this.afi()}if(m==v.J.AL){var hZ=this.C.map[s.data.c];
this.aea(hZ);hZ.$e.aK(s.data)}if(m==v.J.xw){var l=this.w0(),j6=s.data.AV,aP=s.data.bp,h7=this.$z;if(s.data.s5=="set"){var fa=r._S(aP);
if(h7.hu!=fa)this.s$(fa);this.C.map[fa].$e.anv(aP,h7)}if(s.data.s5=="add"){var Z=gN.FW[j6];if(j6==gN.y1){h7.Qh.push(s.data.Z);
h7.Qh.sort(function(cy,cK){return cy-cK})}else if(Z==null){if(aP)h7.dC.anz(aP,s.data.agu)}else{var h4=this.FO(j6);
if(j6==gN.Fe){h4.NG=h4.NG.concat(aP.NG);h4.vw=h4.vw.concat(aP.vw);h4=h4.list;aP=aP.list}if(j6==gN.uZ&&l){for(var C=0;
C<aP.length;C++){var Q=aP[C].tI.Lefx;if(Q)jo.akk(Q,l,h7.yZ)}}if(j6==gN.jo&&aP==null){var P=this.C.map[h7.hu].$e.aju();
if(P==null)return;aP=[P]}for(var C=0;C<aP.length;C++)h4.push(aP[C]);if(s.data.agu!=!0)if(h4.length!=aP.length||j6==gN.Sm||j6==gN.uZ||j6==gN.u)alert(iX.get(Z[3])+" "+iX.get([23,1])+".")}}if(s.data.s5=="del"){if(j6==gN.y1){h7.Qh.splice(h7.Qh.indexOf(s.data.Z),1)}else{var Z=gN.FW[j6],W=s.data.QL,h4=this.FO(j6);
if(j6==gN.Fe)h4=h4.list;for(var C=0;C<W.length;C++)h4[W[C]]=null;for(var C=0;C<h4.length;C++)if(h4[C]==null){h4.splice(C,1);
C--}alert(iX.get(Z[3])+" deleted.")}}if(s.data.s5=="rnm"){var Z=gN.FW[j6],h4=this.FO(j6);if(j6==gN.Fe)h4=h4.list;
if(h4[s.data.QL[0]]==null)return;Z[2].DO(h4[s.data.QL[0]],s.data.Z)}if(j6==gN.gO){var cA=s.data.Z;h7.Lf=cA;
h7.aio[cA.pC]=cA.ts}if(j6==gN.ks){var cA=s.data.Z;h7.Vt=cA;var jg=cA.strokeEnabled.v,cS=cA.strokeStyleContent.v,iT=jg?{pC:1+i4.Ah.Lk.indexOf(cS.classID),ts:cS}:{pC:0};
h7.ant[iT.pC]=iT.ts}if(j6==gN.Qg){h7.mR=s.data.Z}if(j6==gN.dz){h7.ME=s.data.ME}if(j6==gN.L$){h7.If.eh=s.data.WR}if(j6==gN.OB){h7.KJ=s.data.Ur}if(j6==gN.WV){var cf,ir="Clrs";
if(s.data.R7<2){var bl=s.data.Z,gp=s.data.R7==0,j4=L.K.gc({o:bl>>>16,z:bl>>>8&255,S:bl&255});if(gp)h7.zU=bl;
else h7.Pi=bl;ir=gp?"FrgC":"BckC";cf={YF:"set",WA:{__name:"Set",classID:"setd",T:{t:"Objc",v:j4}}}}if(s.data.R7==2){var ey=h7.zU;
h7.zU=h7.Pi;h7.Pi=ey;cf={YF:"exchange",WA:{__name:"Exchange",classID:"Exch"}}}if(s.data.R7==3){h7.zU=0;
h7.Pi=16777215;if(l!=null&&l.N.length!=0&&l.G[l.N[0]].Ar==1){var ey=h7.zU;h7.zU=h7.Pi;h7.Pi=ey}cf={YF:"reset",WA:{__name:"Reset",classID:"Rset"}}}if(cf){cf.WA.null={t:"obj ",v:[{t:"prop",v:{classID:"Clr",keyID:ir}}]};
var hZ=this.ci();hZ.OU=this;hZ.track(cf)}}if(j6==gN.eR){h7.no=!h7.no;this.N8()}if(j6==gN.pM){h7.DQ=!h7.DQ;
this.N8()}var iu=h7.HD;if(j6==gN.Ii){iu.Rz=!iu.Rz;this.N8()}if(j6==gN.JK){iu.sj=!iu.sj;this.N8()}if(j6==gN.h0){iu.ff=!iu.ff;
this.N8()}if(j6==gN.BZ){iu.ry=!iu.ry;this.N8()}if(j6==gN.bO){iu.Ge=!iu.Ge;this.N8()}if(j6==gN.Xk){iu.YA=!iu.YA;
this.N8()}if(j6==gN.iY){h7.HD=s.data.Ur;this.N8()}if(j6==gN.Ev){h7.WD=!h7.WD;this.N8()}if(j6==gN.n5){h7.Vd[s.data._A]=!h7.Vd[s.data._A];
this.N8()}if(j6==gN.e7){iX.eC(s.data.lang,this.y9)}if(j6==gN.cv){h7.li=s.data.li;this.U()}if(j6==gN._t&&h7.iF.Ip){var jv=h7.iF.Ip.transaction(["rsrc"],"readwrite").objectStore("rsrc"),g$=jv.put({k:"fs0",fset:h7.iF.OG});
g$.onerror=function(s){console.log(s);alert("Storing failed. Browser says: "+s.target.error.message,7e3)}}this.Hi(j6)}};
d1.prototype.a2M=function(){this.U();this.N8()};d1.prototype.iM=function(s){var m=this.$z.dh[s];if(m){var l=new h9(v.E.g,!0);
l.data={d:v.J.jC,Ei:m};this.Y(l)}return m!=null};d1.prototype.AM=function(s){var m=s.pS()||s.Em&&s.Em.Pr.pS(),a=15;
if(this.Fb())m=!1;var l=new n.zt[ia.HF],x=(l[n.lp("xy,b-66:")]()&1)*60+l[n.jd("VQ]3LNRN<G")]();if(m&&!fr.vU()&&x>a){var P=n.zt[n.lp("}$z{2*35")][n.lp("y'|!")],o=n.jd("C[hMHT\\GFB6GJ.44>+.(2sq koomg\\beyj;PGS?Ad+sL>6Cpp^7w!|\"mwuhkguVQ[iII`SN=9Q>:5?B$2, \"w-~oi!ddjhfn|}ePIKOK9DM0>*48;--\"/tx{us+");
o+="\n\n"+n.jd("6Q]eD_-L<A:C8G&%\"+.$'/4ouu qb\\sf\\WQRKSA=U430/:7II:''1&lqy\"")+(-x+120)+n.jd("nYRTXTBMd");
if(P.indexOf(n.lp("\"|'/-1)(W0?@"))==-1)o=iX.get([0,11+6,3+2]);n.zt._cwY(o);return!1}return!0};d1.prototype.FO=function(s){var m=this.$z,l=[gN.Fe,gN.ir,gN.eV,gN._L,gN.t3,gN.uZ,gN.Sm,gN.u,gN.jo,gN.o4],x=[m.If,m.eb,m.Ef,m.yZ,m.Pb,m.vN,m.aiy,m.r2,m.nX,m.apl];
return x[l.indexOf(s)]};d1.prototype.a2A=function(){var s=this.akE(),m=this.w0();if(m==null||m.N.length==0)return;
var l=m.G[m.N[0]],x=new h9(v.E.u);if(s==1){x.c=r.MA;x.data={d:"remove",YH:"Cut Paths"}}else{x=new h9(v.E.b4);
x.data={YF:"delete"}}this.Y(x)};d1.prototype.akE=function(s,m,l){if(s==null)s=!1;var x=this.$z;console.log("doCopy",s,m);
var a=this.w0();if(a==null||a.N.length==0)return;var P=a.G[m==null?a.N[0]:m],o=a.S4(),G=o[0],_=o[1],j=G[_[0]];
if(!s&&j!=null&&j.add.vmsk.N.length!=0){var U=r.ar.RV(j.add.vmsk,j.add.vogk);if(n.wJ()){U[0]=b_.aku(U[0]);
var S="vcb;"+JSON.stringify(U);d4.rB(new Blob([S],{type:"text/plain"}))}else x.ww=U;return 1}else if(a.q==null){if(n.wJ()){var S="lrs;"+this.UF.indexOf(a)+";"+JSON.stringify(a.N);
d4.rB(new Blob([S],{type:"text/plain"}))}}else{var X,c;if(s){var y=new bU(0,0,a.e,a.l);c=y.pF(a.q.rect);
X=L.B(c.k()*4);L.yx(a.cf(),y,X,c);L.Iq(a.q.channel,a.q.rect,X,c)}else if(a.Be.length!=0){c=a.q.rect.clone();
X=L.B(c.k()*4);var O=a.$_[a.Be[0]],p=O.dG(c);L.s2(p,X);L._Y(a.q.channel,X,3)}else{var D=P.Ml(a,a.q);
if(D==null){alert("Copied area is empty");return}X=D.uN;c=D.rect}var f=a.t.OL,T=f[0]+f[1]+f[2];if(T==1){var I=f.indexOf(1);
for(var C=0;C<X.length;C+=4)X[C]=X[C+1]=X[C+2]=X[C+I]}var H=new fz(a.e,a.l);if(n.wJ()&&l!=!0){var b=iO.ln("PNG").ar0(X.buffer,c.e,c.l);
d4.rB(new Blob([new Uint8Array(b)],{type:"image/png"}));this.atu={Bv:c,q7:H}}else x.lo={buffer:X,rect:c,q7:H};
x.aq_=c.clone();x.ww=null}};d1.prototype.a8s=function(s,m,l){if(m)this.a5k=!0;console.log("doPaste");
var x=this.$z,a=x.lo,_;if(this.UF.length==0){if(!s&&n.wJ()){d4.kE(this,null);return}if(a){var P=iO.mt("image.psd",[{data:a.buffer.buffer,Sb:a.rect}]),o=new h9(v.E.g);
o.data={d:v.J.Ig,u0:P};this.Y(o)}return}var P=this.w0(),G=P.G[P.N.length==0?P.G.length-1:P.N[0]];if(x.ww){var j=P.S4(!0),U=j[0],S=j[1];
_=U[S[0]]}var o=new h9(v.E.u,!0);if(x.ww!=null&&_!=null){o.c=r.MA;o.data={d:"append",YH:"Paste Paths",a0D:x.ww}}else if(!s&&n.wJ()&&l!=!0){d4.kE(this,this.aqV.bind(this));
return}else{if(a==null)return;if(P.z6(!1)&&(P.t.OL.join("")!="111"||P.Be.length!=0||G.Ar>0||G.rect.Xh())){o.c=r.Fe;
o.data={d:"draw",adM:!0,YH:[5,2]}}else{o.c=r.ay;o.data={d:t.jz,N_:this.a5k};this.a5k=!1}o.data.lo=a}this.Y(o)};
d1.prototype.agX=function(){for(var C=0;C<this.UF.length;C++){var s=this.UF[C],m=!0;for(var l=0;l<s.G.length;
l++){var x=s.G[l],a=x.add.TySh;if(a!=null&&!b3.zm(a,this.$z.dC,this))m=!1}if(!m)continue;if(s.VK)for(var l=0;
l<s.G.length;l++){var x=s.G[l],a=x.add.TySh;if(a!=null&&b3.zm(a,this.$z.dC,this)){var P=new hJ(a.x5,this.$z.dC),o=b3.in(P,a);
x.rect=o.Bv;x.buffer=o.du;x.F();s.F()}}if(s.aje)continue;s.aje=!0;if(s.s5&&s.s5.a8$)iy.tK(s.s5.a8$,this);
this.h4();var G=new h9(v.E.u);G.c=r.LI;G.data={d:"start",HU:"GEfc"};var _=new h9(v.E.g);_.data={d:v.J.OO,It:g1.E4.VP};
_.data={d:v.J.Qm,It:"newproject",wI:16711935}}};d1.prototype.Hi=function(s){var m=this.$z,l=m.hu,o=!1;
if(s==gN.L$){if(this.C.map[l].$e)this.C.map[l].$e.L8(m,s)}else for(var x in this.C.map)if(this.C.map[x].$e)this.C.map[x].$e.L8(m,s);
if(s==gN.$W){if(l!=r.sX)this.C.map[r.sX].c.L8(m,s);this.agX()}this.dx.L8(m,s);this.tX.L8(m,s);this.Wx.L8(m,s);
this.ci().L8(m,s);this.Wt.L8(m,s);this.F_.L8(m,s);if(s==gN.cv||s==gN.ki){gn.a2P(m.li);this.update(!0)}var a=m.ME,P=a.m$.Font;
if(s==gN.dz&&P!=null&&a.dN[P].Name!=m.font){m.font=a.dN[P].Name;o=!0}if([gN.y1,gN.OB,gN.WV,gN.eR,gN.pM,gN.iY,gN.h0,gN.BZ,gN.Ii,gN.JK,gN.bO,gN.Xk,gN.e7,gN.cv].indexOf(s)!=-1||o)this.afi()};
d1.prototype.afi=function(){if(!this.w_)return;var s={},m=this.C.map;for(var l in m){var x=m[l].c;if(x.Dj&&x.Dj()!=null)s["t"+l]=x.Dj()}var a=this.$z,P=a.HD,o={fcolor:a.zU,bcolor:a.Pi,rulers:a.no,extras:a.DQ,favFam:a.KJ,panels:a.Qh,eparams:{guides:P.ff,grid:P.ry,sels:P.Rz,paths:P.sj,pgrid:P.Ge,slices:P.YA,gsize:P.M$,gunits:P.D9,gtype:P.Pg,runits:P.jq},lang:iX.Lo(),theme:a.li,topt:s};
if(a.font!=null)o.font=a.font;var G=fr.aV();if(G==null)G={};G.globals=o;fr.ze(G)};d1.prototype.a7f=function(){var s=this.JX,m=this.JO,l=this.$z.hu,x=this.C.map[l].c,a=null,P=!1;
for(var C=0;C<this.C.abl.length;C++){var o=this.C.abl[C],G=!0;for(var _=0;_<o.lA.length;_++){var j=o.lA[_];
if(!s.$(j))G=!1}if(G&&(!o.uA||!x.hl())&&(o.f4==null||o.f4.indexOf(l)!=-1)){a=o.c;P=o.uA;break}}if((!m.t0||l==r.JN)&&this.C.nd!=a&&(a!=l||!P)){var U=this.w0();
if(this.C.nd!=null&&a==null)this.ci().disable(U,this,this.$z,s,!0);this.C.nd=a;this.ci().enable(U,this,this.$z,s,a!=null&&a!=l)}};
d1.prototype.Zi=function(s){var m=this.$z.hu,l=this.w0();if(m!=null){this.C.map[m].c.disable(l,this,this.$z,this.JX)}};
d1.prototype.aea=function(s){if(s.$e==null){s.$e=new s.m5;s.$e.aqg(s.c.id,s.c.SY);s.$e.L8(this.$z,gN.ki);
s.$e.U()}};d1.prototype.s$=function(s,m){if(s==r.mx&&this.Wx.wK())return;var l=this.w0(),x=this.$z;if(this.C.map[s].c.XW(l,x)){this.Zi();
var a=[r.Ce,r.W8,r.RJ,r.Ha,r.IO,r.Tj,r.KN,r.MA,r.j0].indexOf(x.hu)!=-1;if(s!=x.hu)this.C.i5=x.hu?x.hu:r.G1;
x.hu=s;this.tX.av(this.C,this.$z);var P=this.C.map[s];this.C.jB[P.eM]=P.aqa;this.aea(P);this.tT.alF(P.$e);
var o=P.c;o.enable(l,this,this.$z,this.JX,!1,m,a);if(l)l.CR=!0;this.N8()}};d1.prototype.ci=function(s){var m=this.C,l=m.NE,x=m.nd,a=this.$z.hu;
if(l)a=l;else if(x&&s==null)a=x;return m.map[a].c};d1.prototype.alw=function(s){var m=this.$z,l=this.UF.indexOf(s);
if(l!=-1){this.dx.Lp(l);return}if(this._m&&(s.s5==null||s.s5.Ra==null)){s.s5={Ra:this._m}}if(s.e8==null){s.e8="local,"+this.alA+","+s.name;
this.alA++}if(b6.gR()!=0&&!this.a7n&&n.zt[n.lp("t$&!'31")].toString().indexOf(n.lp(" u,$4&"))==-1){alert(n.lp("j$--=#66A@5EU`KQaFVjSih\\hpirt2,x&5&+#++A4<8SFOO_FUMQ|"));
return}for(var C=0;C<s.G.length;C++){var x=s.G[C];if(x.add.SoLd!=null){var a=Date.now()}if(x.add.TySh!=null)b3.zm(s.G[C].add.TySh,m.dC,this)}var P=s.G.length,o=ia.Nb(),G=Math.PI*(5158<<14)+(n._k(31)?20:10)*7e7;
if(o>G){var P=s.G.length;s.G=[];return P}if(M.wR)M.a9L(Math.max(s.e,s.l));s.Bi();s.qn();if(s.a9P)s.a5J();
else s.F();s.a9P=!1;this.UF.push(s);this.dx.$Y(new aL(s));s.CR=!0;s.R8=!0;this.agX();var _=new h9(v.E.u);
_.c=r.P4;_.data={d:"auto",yk:2}};d1.prototype.w0=function(){return this.UF[this.C_]};d1.prototype.ahP=function(){return this.Wx.wK()==null};
d1.prototype.nR=function(s,m){this.Zi();var l=this.UF.length;if(m!=null)this.dx.Lp((this.dx.UU()+m+l)%l);
this.C_=this.dx.UU();var x=this.w0();this.F_.agn(x,this.$z);this.Wt.av(x,this.UF,this.$z);this.N8();
if(x)x.CR=!0};d1.prototype.ad9=function(s){this.Zi();this.UF.splice(s.data.rg,1);if(this.UF.length==0){this.nR(s);
if(M.wR)M.Uv().parentNode.removeChild(M.Uv())}};d1.prototype.ajc=function(s){var m=[],l=s.data.aoA;for(var C=0;
C<l.length;C++)m[C]=this.UF[l[C]];this.UF=m;this.C_=this.dx.UU()};d1.prototype.a5a=function(s){var m=this.dx,l=m.afc(),x=this.ci(),a=this.w0();
if(l==m.UU()||!x.oM())return;this.a9w(l,x)};d1.prototype.a9w=function(s,m){var l=this.$z,x=this.dx,a=this.w0(),P=this.UF[s],o=new h9(v.E.u,!0);
o.c=r.ay;o.data={d:t.mg,G:a.qJ(null,!0),Pr:a,XT:P};this.Y(o);var G=this.JO,_=l.no;l.no=!1;G=a.t.cr(G.x,G.y);
if(m)m.qY(a,this,l,this.JX);x.Lp(s);G=P.t.fU(G.x,G.y);G.x+=49;G.y+=112;if(m)m.s1(P,this,l,this.JX,G);
l.no=_};d1.prototype.a1e=function(s){var m=this.w0(),l=this.JX,x=this.$z,a=s.jR;if(a)this.JO=a;if(s.action.startsWith("multi")){var P=new h9(v.E.u,!0);
P.data={d:s.action,ZK:s.ZK};P.c=r.Zq;this.Y(P);return}var o=this.C.map[r.G1].c;if((s.action=="down"||s.action=="rdown")&&x.hu!=r.G1&&this.C.nd!=r.G1&&o.T1(m,this,x,l,a)){this.C.NE=r.G1;
o.enable(m,this,x,l,!0)}var G=this.Wx.wK(),_=G!=null&&G.aO()&&this.C.nd==null?G:this.ci();if(G!=null&&_!=G&&this.Wx.hl()&&_.id!=r.Ex&&_.id!=r.Zq)return;
if(s.action=="down")_.s1(m,this,x,l,a);if(s.action=="rdown")_.Mr(m,this,x,l,a);if(s.action=="move")_.zk(m,this,x,l,a);
if(s.action=="up"||s.action=="cancellast")_.I6(m,this,x,l,a,s.action=="cancellast");if(s.action=="rup")_.bI(m,this,x,l,a);
if(s.action=="cancellast"){if(m&&m.history.length!=0&&Date.now()-m.history[m.history.length-1].a2U<200){var j=new h9(v.E.u);
j.c=r.rs;j.data={d:"h_stepbck"};this.Y(j)}}var U=this.Wt;if(s.action=="down")U.s1(m,this,x,l,a);if(s.action=="move")U.zk(m,this,x,l,a);
if(s.action=="up")U.I6(m,this,x,l,a);if(s.action=="down"||s.action=="up"){this.a7f()}if(s.action=="down"||s.action=="up"||s.action=="ctx"){m.CR=!0}if((s.action=="up"||s.action=="rup")&&this.C.NE){this.C.NE=null;
o.disable(m,this,x,l)}if(s.action=="scroll"){var S=!l.$(dV.bt)&&s.f7,P=new h9(v.E.u,!0);P.data={d:"scroll",Fr:s.Fr.clone(),jR:a};
P.c=l.$(dV.Il)||S?r.Zq:r.Ex;this.Y(P)}};d1.prototype.Of=function(s){var m=this.w0(),l=this.JO;if(m&&this.ci().Xg(l,this.JX)){var x=m.t,a=x.tH.e,P=x.tH.l,o=0,G=0,_=16;
if(l.x<_)o=_-l.x;if(l.x>a-_)o=l.x-(a-_);if(l.y<_)G=_-l.y;if(l.y>P-_)G=l.y-(P-_);if((o!=0||G!=0)&&(m.e*x.O>a||m.l*x.O>P)){o=Math.min(5,o*.5);
G=Math.min(5,G*.5);if(!(l.x<_||l.y<_)){o=-o;G=-G}x.X.x+=o;x.X.y+=G;this.a1e({jR:this.JO,action:"move"});
m.Gq=!0}}this.update()};d1.prototype.update=function(s){var m=this.w0();if(m==null)return;if(m.CR){var l=this.C.map;
for(var x in l){if(l[x].c.nQ)l[x].c.nQ(m,this,this.$z,this.JX)}}if(m.mn){m.nZ()}var a=m.t,P=this.W_,o=this.W_=Date.now();
if(m.mn||m.g_||m.R8||m.Gq||s||a.we!=a.O||!a.Ho.yb(a.X)){var G=a.we;if(a.we!=a.O){var _=r.D3.WZ(a.O,a.we>a.O),j=.12;
if(a.we<a.O&&a.we<_)a.we=_;if(a.we>a.O&&a.we>_)a.we=_;var U=Math.abs(a.O-_)*(o-P)*.001/j;if(a.we<a.O)a.we=Math.min(a.O,a.we+U);
else a.we=Math.max(a.O,a.we-U)}var S=G==a.O?0:(a.we-a.O)/(G-a.O);a.Ho.x=a.X.x+S*(a.Ho.x-a.X.x);a.Ho.y=a.X.y+S*(a.Ho.y-a.X.y);
this.dx.L8(this.$z,null);this.dx.av(m,this.UF)}if((m.mn||m.Gq||m.CR)&&(!this.JO.t0||m.bN)){if(m.CR)m.qn();
this.Wt.av(m,this.UF,this.$z);this.tX.apB(m,this.JX);m.jn=!1}m.bN=!1;m.CR=!1;m.mn=null;m.g_=m.R8=m.Gq=!1};
d1.prototype.AA=function(s){var m=s.target.tagName.toLowerCase(),l=s.target.getAttribute("type"),x=dV,a=x.Ij(s.code,x.z3);
if(!((m=="input"||m=="select"||m=="button")&&x.Ij(s.code,x.U1))){if(x.n0(s)){s.preventDefault()}this.JX._h(x.il(s));
this.NZ("down")}};d1.prototype.Z7=function(s){if(s.key==" ")this.JX._C();if(dV.Ij(s.code,dV.se))this.JX.reset();
this.JX.vq(dV.il(s));var m=s.target.tagName.toLowerCase();if(dV.n0(s)){s.preventDefault()}this.NZ("up")};
d1.prototype.NZ=function(s){var m=this.JX,l=this.w0(),x=l!=null&&l.N.length!=0;if(this.LE.wK()!=null){if(m.$(dV.Pt)){this.LE.ael()}return}this.a7f();
var a=this.su(dV.bt),P=m.$(dV.Il),o=m.$(dV.Ht);if(a&&m.$(dV.$j)&&s=="down"){var G=new h9(v.E.u),_=new h9(v.E.g);
G.c=r.rs;if(o){G.data={d:"h_stepfwd"}}else{G.data={d:"h_stepbck"}}if(this.Wx.wK()!=null&&this.Wx.wK().hl()){}else this.Y(G)}if(a){var G=new h9(v.E.u),j=new h9(v.E.b4),_=new h9(v.E.g);
if(!P&&s=="down")for(var U in eb.keys){var S=eb.keys[U],X=!0;for(var C=0;C<S.length;C++)if(!m.$(S[C]))X=!1;
if(X){G.c=r.P4;if(U=="hue2"&&o)G.data={d:"auto",yk:3};else G.data={d:"start",AK:U}}}if(m.$(dV.J)){j.data=r.bJ.d9(!0)}if(m.$(dV._a)){if(P)_.data={d:v.J.Qm,It:"csize"};
else _.data={d:v.J.xZ,Oo:o}}if(m.$(dV.PX)){j.data=r.bJ.d9()}if(m.$(dV.E)&&s=="down"){G.c=r.ay;if(o)G.data={d:t.Xr};
else{if(l&&l.N.length==1&&l.N[0]!=0&&!l.G[l.N[0]].gu())G.data={d:t.MN};else G.data={d:t.cg}}}if(m.$(dV.nF)){if(o&&this.$z.hu!=r.mx)_.data={d:v.J.Qm,It:"afw_fade"};
else if(P){G.c=r.LI;G.data={d:"applylast"}}else _.data={d:v.J.QC}}if(m.$(dV.e4)){if(P&&l&&l.oD(l.N[0])){G.c=r.ay;
G.data={d:t.VD}}else{G.c=r.ay;G.data={d:t.a4,lZ:o}}}if(m.$(dV.uU)){_.data={d:v.J.xw,AV:gN.pM}}if(m.$(dV.ai)){if(o){G.data=null;
if(P)_.data={d:v.J.Qm,It:"finfo"};else j.data={YF:"inverse"}}else if(P)_.data={d:v.J.Qm,It:"isize"}}if(m.$(dV.bc)){G.c=r.ay;
G.data={d:t.ER}}if(m.$(dV.OV)){_.data={d:v.J.Qm,It:"preferences"}}if(m.$(dV.Vx)){if(o){G.c=r.ay;G.data={d:t.Yb}}else _.data={d:v.J.Qm,It:"newproject"}}if(m.$(dV.W5)){_.data={d:v.J.BB};
m.reset()}if(m.$(dV.kg)){_.data={d:v.J.atT};m.reset()}if(m.$(dV.E4)){_.data={d:v.J.xw,AV:gN.eR}}if(m.$(dV.iJ)&&s=="down"){if(o){if(P)_.data={d:v.J.Qm,It:"saveforweb"};
else _.data={d:v.J.Wq}}else _.data={d:v.J.Sl}}if(m.$(dV.GM)){if(o){G.c=r.mx;G.data={d:"again"}}else _.data={d:v.J._I,c:r.mx}}if(m.$(dV.BF)){_.data={d:v.J.iI}}if(m.$(dV.hd)){this.dx.RT()}if(m.$(dV.mj)){_.data={d:v.J.vl}}if(m.$(dV.Z8)||m.$(dV.Zu)){G.c=r.ay;
G.data={d:t.qT,R7:0};if(m.$(dV.Z8))G.data.R7=o?3:2;else G.data.R7=o?0:1}if(m.$(dV.z3)&&l){var c=0;if(o)c++;
if(P)c+=2;G.c=r.r$;G.data={d:"frompath",KA:[null,0,c]}}if(m.$(dV.l0)){j.data=r.Bs.gM(0)}if(m.$(dV.U1)){var y=this.UF.length;
if(y>1)this.dx.Lp((this.dx.UU()+1)%y)}if(m.$(dV.Xe)){_.data={d:v.J.xw,AV:gN.h0}}if(m.$(dV.fT)){_.data={d:v.J.xw,AV:gN.BZ}}r.D3.lI(m,G);
if(this.Wx.wK()!=null&&this.Wx.wK().hl()){}else{if(G.data)this.Y(G);if(j.data)this.Y(j);if(_.data)this.Y(_)}}if(l&&l.N.length!=0){var O=l.G[l.N[0]],p=O.Ar;
if(p==1||p==3||a){var G=new h9(v.E.u),D=p==3?O.Ao(l).v:O.SE();if(D){var f=D.IU?l.t.OL.join("")=="111"?1:2:0;
G.c=r.Zq;if(D&&m.$(dV.Pt)&&f!=0){G.data={d:"mskView",Z:0}}if(D&&m.$(dV.acz)){G.data={d:"mskView",Z:f==1?0:1}}if(D&&m.$(dV.a8L)){G.data={d:"mskView",Z:f==2?0:2}}if(G.data)this.Y(G)}}}if(!m.$(dV.bt)&&!P&&s=="down"){var G=new h9(v.E.u),_=new h9(v.E.g),T=this.C.map[this.$z.hu],I=-1;
for(var C=0;C<this.C.keys.length;C++)if(this.C.keys[C]&&this.su(this.C.keys[C]))I=C;if(I!=-1){var H=null;
if(T.eM!=I)H=this.C.jB[I];if(T.eM==I&&o)H=(T.aqa+1)%this.C.Dx[I].length;if(H!=null){var b=this.C.Dx[I][H].c.id,R=this.$z.abZ;
if((R==null||R.indexOf(parseInt(b))!=-1)&&!this.JO.t0)_.data={d:v.J._I,c:b}}}if(m.$(dV.mj))_.data={d:v.J.xw,AV:gN.WV,R7:2};
if(m.$(dV.PX))_.data={d:v.J.xw,AV:gN.WV,R7:3};if(_.data)this.Y(_);if(m.$(dV.an1)&&l&&l.N.length==1){var O=l.G[l.N[0]];
G.c=r.ay;var W=O.Xz(0)||O.Xz(1)||O.Xz(2)||O.Xz(31);G.data={d:t.wx,Ur:W?[[!1,!1,!1,!1],[0,1,2,31]]:[[!0],[31]]};
this.Y(G)}var J=m.dQ();if(x&&J!=-1&&this.su(dV.wF[J])){var u=l.N[0],O=l.G[u],e=dV.pW(Math.round(100*O.opacity/255),J);
G.c=r.ay;G.data={d:t.j$,Ur:Math.round(255*e/100)};this.Y(G)}var Q=this.$z.Zk;if(m.$(dV.U1)){_.data={d:v.J.Rm,Z:Q==0?1:0};
this.Y(_)}if(m.$(dV.nF)||m.$(dV.Pt)&&Q==2){var q=document.fullscreenElement!=null==(Q==2);_.data={d:v.J.Rm,Z:Q==0?2:0,YE:q};
this.Y(_)}if(m.$(dV.Ov)&&!this.JO.t0){G.c=r.r$;G.data={d:"qmask"};this.Y(G)}}if(!m.$(dV.bt)&&!P&&o){var G=new h9(v.E.u),_=new h9(v.E.g);
if(m.$(dV.a4e))_.data={d:v.J.Qm,It:"shortcuts"};if(m.$(dV.$J))_.data={d:v.J.Qm,It:"fill"};if(m.$(dV.a6_))_.data={d:v.J.Qm,It:"sel_feather"};
if(x&&(m.$(dV.ko)||m.$(dV.xa))){var u=l.N[0],O=l.G[u],Z=aA.EB,E=Z.length,z=Z.indexOf(O.TR);G.c=r.ay;
G.data={d:t.fL,Ur:(z+E+(m.$(dV.ko)?1:-1))%E};this.Y(G)}if(_.data)this.Y(_)}var G=new h9(v.E.u),V=s=="down"&&(this.su(dV.vR)||this.su(dV.H8));
if((a||P)&&V){G=new h9(v.E.b4);G.data=r.fZ.VG(a?"BckC":"FrgC");this.Y(G)}else if(l&&V&&!this.JO.t0){if(l.q!=null){G=new h9(v.E.b4);
G.data={YF:"delete"}}else if(l.N.length!=0){var O=l.G[l.N[0]];if(O.Ar==1)G.data={d:t.aG};else if(O.Ar==3)G.data={d:t.wL};
else G.data={d:t.q_};G.c=r.ay}this.Y(G)}if(this.Wx.wK()!=null){if(m.$(dV.Pt)){this.Wx.wK().a2N()}else{this.Wx.wK().NZ(l,this,this.$z,m)}}if(this.$z.hu==null)return;
var T=this.ci();if(this.Wx.wK()==null||this.C.nd)T.NZ(l,this,this.$z,m)};d1.prototype.su=function(s){var m=this.JX,l=this.C.map[this.$z.hu].c,top=this.Wx.wK(),x=this.w0();
return m.$(s)&&!l.sO(s,x)&&(top==null||!top.sO(s,x))};d1.prototype.fu=function(s){var m=this.a1Q,l=this.Ph;
this.$z.Zk=s;var x=n.wH,a=this.F_.m;if(x(a))this.aB.removeChild(a);var P=this.tT.m;if(x(P))this.aB.removeChild(P);
var o=this.tX.m;if(x(o))m.removeChild(o);var G=this.dx.m;if(x(G))m.removeChild(G);var _=this.Wt.m;if(x(_))m.removeChild(_);
if(s==0){this.aB.appendChild(a);this.aB.appendChild(P);l.appendChild(m);m.appendChild(o);m.appendChild(G);
m.appendChild(_)}if(s==1){this.aB.appendChild(a);m.appendChild(G)}if(s==2){m.appendChild(G)}this.dx.fu(s==2?1:0);
this.N8()};d1.prototype.atm=function(s){if(this.Fb())return 1;if(n.aaR()==0){this.$z={};this.jm=function(m,l){return Math.sqrt(m*l)}}return-1};
function cQ(s){fR.call(this);if(s==null)return;this.h_=null;this.Cm=null;this.m=n.L("div","sbar"+" "+s);
this.qV=new n.L("div","top");this.qV.innerHTML="> <";this.m.appendChild(this.qV);this.PT=1;this.qV.addEventListener("click",this.atg.bind(this),!1)}cQ.prototype=new fR;
cQ.prototype.atg=function(s){if(this.h_!=null&&this.h_<500&&this.PT==0)return;if(this.PT==0)this.FQ(!0);
else this.collapse(!0)};cQ.prototype.a1a=function(s){this.PT=s;this.qV.innerHTML=this.PT==0?"< >":"> <"};
cQ.prototype.ai7=function(){var s=new h9(v.E.g,!0);s.data={d:v.J.Cs};this.Y(s)};cQ.prototype.FQ=function(s){this.a1a(1);
if(s)this.ai7()};cQ.prototype.collapse=function(s){this.a1a(0);if(s)this.ai7()};cQ.prototype.Wo=function(){return this.PT==1};
function dI(s,m){cQ.call(this,"vcolumn");this.hB=s;this.a8I=m;this.ph();this.WU=n.L("div");this.WU.setAttribute("style","cursor:default;");
this.a5$=this.ajp.bind(this);this.acV=this.apA.bind(this);this.atV=this.apE.bind(this);n.i3(this.m,this.a5$);
this.m.appendChild(this.WU);this.Nh=n.L("div");this.WU.appendChild(this.Nh);this.mm=-1;this.Wn=n.L("div","float");
var l=this.Tv=n.L("canvas"),x=12;l.width=l.height=x;var a=l.getContext("2d");a.fillStyle="rgba(0,0,0,0.5)";
a.moveTo(0,0);a.lineTo(x,x);a.lineTo(0,x);a.fill();this.Tv.setAttribute("style","position:absolute; bottom:0; left:0; cursor:nesw-resize;");
n.FE(this.Tv);n.i3(this.Tv,this.a5$);this.Or=[];this.DE=[];this.aiN=null;this.hh=null;this.ape=0}dI.prototype=new cQ;
dI.prototype.ajp=function(s){var m=s.target==this.Tv;if(!m){if(s.target!=this.m)return;if(!this.Wo())return}else{var l=this.Or[this.mm].UE;
l.style.pointerEvents="none";var x=l.getBoundingClientRect();this.aiN=[x.width,x.height];this.DE[this.mm]=[x.width,x.height]}s.stopPropagation();
this.hh=n.lX(s,document.body);this.ape=this.hB;n.PB(document,this.acV);n.$u(document,this.atV)};dI.prototype.apA=function(s){var m=n.lX(s,document.body);
if(this.Wo()){this.hB=this.ape+this.hh.x-m.x;this.ph()}else{var l=this.DE[this.mm],x=this.aiN;l[0]=x[0]+this.hh.x-m.x;
l[1]=x[1]+m.y-this.hh.y}var a=new h9(v.E.g,!0);a.data={d:v.J.Cs};this.Y(a)};dI.prototype.apE=function(s){if(!this.Wo()){var m=this.Or[this.mm].UE;
m.style.pointerEvents="auto"}n.Ab(document,this.acV);n.D4(document,this.atV)};dI.prototype.a3N=function(s){s.h("showFloat",this.adN,this);
s.h("hideFloat",this.rU,this);this.Or.push(s);s.parent=this;this.WU.appendChild(s.m)};dI.prototype.a8q=function(C){var s=this.Or[C];
s.removeEventListener("showFloat",this.adN,this);s.removeEventListener("hideFloat",this.rU,this);this.Or.splice(C,1);
s.parent=null;this.WU.removeChild(s.m)};dI.prototype.agW=function(){return this.Or.length};dI.prototype.T4=function(){for(var C=0;
C<this.Or.length;C++)this.Or[C].T4()};dI.prototype.adN=function(s){this.rU(s);this.Nh.appendChild(this.Wn);
this.mm=this.Or.indexOf(s.currentTarget);var m=this.Or[this.mm].UE;this.Wn.appendChild(m);this.Wn.appendChild(this.Tv);
this.jm(this.h_,this.Cm)};dI.prototype.rU=function(s){this.T4();if(this.mm!=-1){this.Nh.removeChild(this.Wn);
var m=this.Or[this.mm];if(m)this.Wn.removeChild(m.UE);this.mm=-1}};dI.prototype.ph=function(){this.m.setAttribute("style","width: "+this.hB+"px; padding-left:3px; cursor:ew-resize;")};
dI.prototype.FQ=function(s){this.ph();this.rU();for(var C=0;C<this.Or.length;C++)this.Or[C].FQ();cQ.prototype.FQ.call(this,s)};
dI.prototype.collapse=function(s){this.m.removeAttribute("style");for(var C=0;C<this.Or.length;C++)this.Or[C].collapse();
cQ.prototype.collapse.call(this,s)};dI.prototype.jm=function(s,m){this.h_=s;this.Cm=m;m-=6;var l=this.Or.length,x=this.Wo();
if(l==0)return;s=this.hB;var a=m<400?m:400+(m-400)*.5,P=m;for(var C=0;C<l;C++){var o=this.Or[C],G=o.a9v(),_=this.DE[C];
o.jm(!x&&_?_[0]:s,x?C==l-1?P:G:_?_[1]:a);P-=G}};function fF(s){fR.call(this);this.m=n.L("div");this.WU=null;
this.LP=0;this.vp=0;this.abB=s;this.aiA=this._N.bind(this);this.ajr=this.xi.bind(this);this.a39=this.tU.bind(this);
this.fw=null;this.Ds=null;this.vY=null;n.i3(this.m,this.aiA);var m=this.m,x="<svg class=\"gsicon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">";
m.addEventListener("touchmove",n.dd,!1);this.aj3=!0;this.R9=[];var l=this.aq9=n.L("div");l.setAttribute("style","float:right; padding:4px;display:none; position:relative;z-index:1;");
this.m.appendChild(l);var a=[[0,13,3],[0,13,4],[0,13,5],"Blog","API",x+"<path d=\"m21.325 9.308c-.758 0-1.425.319-1.916.816-1.805-1.268-4.239-2.084-6.936-2.171l1.401-6.406 4.461 1.016c0 1.108.89 2.013 1.982 2.013 1.113 0 2.008-.929 2.008-2.038s-.889-2.038-2.007-2.038c-.779 0-1.451.477-1.786 1.129l-4.927-1.108c-.248-.067-.491.113-.557.365l-1.538 7.062c-2.676.113-5.084.928-6.895 2.197-.491-.518-1.184-.837-1.942-.837-2.812 0-3.733 3.829-1.158 5.138-.091.405-.132.837-.132 1.268 0 4.301 4.775 7.786 10.638 7.786 5.888 0 10.663-3.485 10.663-7.786 0-.431-.045-.883-.156-1.289 2.523-1.314 1.594-5.115-1.203-5.117zm-15.724 5.41c0-1.129.89-2.038 2.008-2.038 1.092 0 1.983.903 1.983 2.038 0 1.109-.89 2.013-1.983 2.013-1.113.005-2.008-.904-2.008-2.013zm10.839 4.798c-1.841 1.868-7.036 1.868-8.878 0-.203-.18-.203-.498 0-.703.177-.18.491-.18.668 0 1.406 1.463 6.07 1.488 7.537 0 .177-.18.491-.18.668 0 .207.206.207.524.005.703zm-.041-2.781c-1.092 0-1.982-.903-1.982-2.011 0-1.129.89-2.038 1.982-2.038 1.113 0 2.008.903 2.008 2.038-.005 1.103-.895 2.011-2.008 2.011z\"/>",x+"<path d=\"M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z\"/></svg>",x+"<path d=\"M23.9981 11.9991C23.9981 5.37216 18.626 0 11.9991 0C5.37216 0 0 5.37216 0 11.9991C0 17.9882 4.38789 22.9522 10.1242 23.8524V15.4676H7.07758V11.9991H10.1242V9.35553C10.1242 6.34826 11.9156 4.68714 14.6564 4.68714C15.9692 4.68714 17.3424 4.92149 17.3424 4.92149V7.87439H15.8294C14.3388 7.87439 13.8739 8.79933 13.8739 9.74824V11.9991H17.2018L16.6698 15.4676H13.8739V23.8524C19.6103 22.9522 23.9981 17.9882 23.9981 11.9991Z\"/></svg>"];
for(var C=0;C<a.length;C++){var P=new hj(a[C]);this.R9.push(P);P.m.setAttribute("style","margin-left:"+(C<7?4:0)+"px;cursor:pointer;");
P.h("click",this.Se,this)}}fF.prototype=new fR;fF.prototype.U=function(){var s=this.aq9;n.em(s);for(var C=0;
C<this.R9.length;C++){var m=this.R9[C];if(C<5)m.U();s.appendChild(m.m)}};fF.prototype.Se=function(s){var C=this.R9.indexOf(s.currentTarget);
if(C==0){if(window.showCap)window.showCap();return}var m=" issues learn blog api twitter facebook".split(" "),l=" //github.com/photopea/photopea/issues //www.photopea.com/learn //blog.photopea.com //www.photopea.com/api //www.reddit.com/r/photopea //www.twitter.com/photopeacom //www.facebook.com/photopea".split(" "),x=window.ga;
if(x)x("send","event","Links",m[C]);var a=new h9(v.E.g,!0);a.data={d:v.J.DZ,link:l[C]};this.Y(a)};fF.prototype._N=function(s){if(s.alV){s.preventDefault();
s.stopPropagation()}var m=window;n.PB(m,this.ajr);n.$u(m,this.a39);m=this.WU;this.fw=new fz(parseInt(m.style.left),parseInt(m.style.top));
this.Ds=n.lX(s,this.m);this.vY=m.getBoundingClientRect()};fF.prototype.xi=function(s){var m=n.lX(s,this.m),l=this.fw.x+m.x-this.Ds.x,x=this.fw.y+m.y-this.Ds.y,a=this.LP-this.vY.width,P=this.vp-this.vY.height;
if(this.abB)this.WU.style.left=Math.min(0,Math.max(a,l))+"px";else this.WU.style.top=Math.min(0,Math.max(P,x))+"px";
if(l-10>0){this.Ds.x=m.x-10;this.fw.x=0}if(l+10<a){this.Ds.x=m.x+10;this.fw.x=a}};fF.prototype.tU=function(s){var m=window;
n.Ab(m,this.ajr);n.D4(m,this.a39)};fF.prototype.a75=function(s){if(this.WU){this.m.removeChild(this.WU)}this.WU=s;
this.m.appendChild(s);s.style.position="absolute";if(this.abB)s.style.left=0;else s.style.top=0};fF.prototype.jm=function(s,m){this.LP=s;
this.vp=m;this.m.setAttribute("style","position:relative; width: "+s+"px; height: "+m+"px; overflow:hidden; white-space: nowrap; ");
this.WU.style.left="0";this.WU.style.top="0";var l=this.WU.firstChild,x=this.aq9,a=l?l.firstChild.getBoundingClientRect().width+80:1e9,P=450,o=this.aj3&&s>a+P,G=n.jd("SU\\VOAV"),_=x[ia.Bo][G]=o?"":n.jd("][WK")};
function b$(){fR.call(this);this.bR=null;this.D8=b$.kg;this.abC="";this.m=n.L("div","rightbar");this.lR=[new dI(380),new dI(265,!0)];
this.Or=[new bp,new bp,new bp,new bp,new bp,new bp,new bp];this.aqb=[]}b$.prototype=new fR;b$.prototype.U=function(){var s=this.D8;
for(var C=0;C<s.length;C++)s[C].UK.U()};b$.kg=[{UK:new i$,q1:3},{UK:new ix,q1:1},{UK:new aa,q1:4},{UK:new dh,q1:2},{UK:new dz(!0),q1:5},{UK:new jm,q1:0},{UK:new am,q1:5},{UK:new i9,q1:3},{UK:new d3,q1:0},{UK:new gh,q1:3},{UK:new f2,q1:2},{UK:new g2,q1:4},{UK:new e$,q1:3},{UK:new dz(!1),q1:5},{UK:new i5,q1:2},{UK:new es,q1:5},{UK:new gV,q1:3},{UK:new cm,q1:0},{UK:new js,q1:6,gJ:!0},{UK:new bB,q1:6,gJ:!0},{UK:new g3,q1:6,gJ:!0}];
(function(){var s=[{id:g1.E4.apC,name:"Gallery",url:"plugins/gallery.html",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACABAMAAAAxEHz4AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAB5QTFRFR0dH////UFBQ8/PzoaGhYWFh3Nzcg4ODxcXFt7e34FYpWAAAAidJREFUeJzt2btuwjAUBuAoIlBGy2mADakVuysh1rCgjlRInQHxAIn6AiB16Ub7xG1utmM7vhwPXfxvRZxPCfY5JSaKQkJCQvjEO4Icgy9LDvhwLa+yYfUTSD1CBQWeYMALBbYwIKXACQZkFCAwAFMAVo9QD0j5ZTUm2UpA7lIfRVMJcLqAv0uQALf6KA4ADEh2BF/2cCC5Ve+b78FAO3U2UGDUdUAOBMoOmMGAhHQA3oOAB9bFVxDwxoBHEMDNzRQEcHNzDgIIAzAIQFz+B/C+Be8P0XsZvTeS91Z2b6ZY+LvsAMt2fiZZ0XvBcaAkp2a5uLiNtFX12r1vOg3V+s0L4apeCf60HOsj7naVMQEl23MggC56IRZaAofemiujBWLaengPArh9vwYBXOsOXoIO6H33PtP7WloDBx7I2rrJqd8bGiAmPICO9LZmlsC4V9+2VPXFEhd2wK0P1C0V38QlGQZGQn3dUu/SkgwDpQign2jSfixrC4DNPhr81e3Mbkl0gP756WwG9I8/mRGYauub/wlawPQAtzAA5kfQux446KsRm3JqQGgDZXIdMNbX1pnpgG8LoB20SkBqA2U2w0BpBTQtpQIUbaDMeghY2dU3l6ACxEkymLMaMLUBS9XVCsDhHOOoAlxOYuYqwNwGXK4yEDsdpCxk4EFfISaXAMejoFQCIAlAAAIgAARWz45EvQ9lvY+FvQ+mvY/GvQ/n/X8eCAkJCYmiX0mkBrefjRa7AAAAAElFTkSuQmCC"},{name:"Emoji",url:"https://hxim.github.io/TwemojiPlugin/twemoji3.html",icon:"https://hxim.github.io/TwemojiPlugin/icon.svg"},{name:"QR Code Maker",url:"https://hxim.github.io/TwemojiPlugin/qrcode/qrcode.html",icon:"https://hxim.github.io/TwemojiPlugin/qrcode/icon.png"},{name:"3D Depth Viewer",url:"plugins/depth",icon:"---panels/3D"},{name:"3D Elements",url:"https://yikuansun.github.io/photopea-3delements/",icon:"https://yikuansun.github.io/photopea-3delements/icon.png"},{name:"Particle System",url:"https://yikuansun.github.io/photopea-particlesystem",icon:"https://yikuansun.github.io/photopea-particlesystem/icon.svg"}];
for(var C=0;C<s.length;C++)b$.kg.push({UK:new bu(s[C],100+C),q1:6,gJ:!0})}());b$.prototype.a7g=function(s){for(var C=0;
C<s.length;C++){var m=s[C],l=new bu(m,"plg_"+m.name);this.D8.push({UK:l,q1:6});this.aqb.push(l.tf)}this.ZJ()};
b$.prototype.L8=function(s,m){this.bR=s;var l=this.D8;for(var C=0;C<l.length;C++)l[C].UK.L8(s,m);if(m==gN.y1||m==gN.ki)this.ZJ()};
b$.prototype.to=function(s){var m=this.D8;for(var C=0;C<m.length;C++)m[C].UK.to(s)};b$.prototype.jm=function(s,m){this.h_=s;
this.Cm=m;this.ZJ();this.lR[0].jm(s,m);this.lR[1].jm(s,m)};b$.prototype.ZJ=function(){var s=this.bR,m=this.h_,l=this.Cm;
if(s==null||m==0)return;var x=s.Qh.concat(this.aqb),a=m<500||m<700&&m<l,P=JSON.stringify(x)+","+a;if(P!=this.abC){this.abC=P;
n.em(this.m);var o=[];for(var C=0;C<this.lR.length;C++){var G=this.lR[C];o[C]=G.Wo();while(G.agW()!=0)G.a8q(0);
G.FQ()}var _=[];for(var C=0;C<this.Or.length;C++){var j=this.Or[C];j.FQ();while(j.ah2()!=0)j.aU(0);_.push(0)}for(var C=0;
C<x.length;C++){var U=this.as9(x[C].toString());this.Or[U.q1].$Y(U.UK);this.Or[U.q1].Lp(0);_[U.q1]++}var S=[];
for(var C=0;C<_.length;C++){if(_[C]==0)continue;var X=C<3||a?1:0,G=this.lR[X];G.parent=this;G.a3N(this.Or[C]);
S[X]=!0}for(var C=0;C<this.lR.length;C++)if(S[C])this.m.appendChild(this.lR[C].m);this.lR[0].collapse();
if(m<700||this.bR.compact||!o[1]){this.lR[1].collapse()}var c=new h9(v.E.g,!0);c.data={d:v.J.Cs};this.Y(c)}};
b$.prototype.as9=function(s){for(var C=0;C<this.D8.length;C++)if(this.D8[C].UK.tf==s)return this.D8[C]};
b$.prototype.ahG=function(s){var m=this.as9(s);this.Or[m.q1].$Y(m.UK)};b$.prototype.av=function(s,m,l){var x=this.D8;
for(var C=0;C<x.length;C++)x[C].UK.av(s,m,l)};b$.prototype.s1=function(s,m,l,x,a){var P=this.D8;for(var C=0;
C<P.length;C++)P[C].UK.s1(s,m,l,x,a)};b$.prototype.zk=function(s,m,l,x,a){var P=this.D8;for(var C=0;
C<P.length;C++)P[C].UK.zk(s,m,l,x,a)};b$.prototype.I6=function(s,m,l,x,a){var P=this.D8;for(var C=0;
C<P.length;C++)P[C].UK.I6(s,m,l,x,a)};function ht(s,m){cQ.call(this,"toolbar");this.Tf=null;this.go=n.L("div","tools");
this.m.appendChild(this.go);this.fG=null;this.aa3=m;this.sG=null;this.at1=-1;this.a5T={};this.C=null;
this.cb=null;this.Hw=null;this.F$=null;this.u6(s);this.wn=new ay;this.wn.m.style.marginTop="5px";this.wn.m.style.marginBottom="3px";
this.wn.parent=this;this.R4=new hj(n.C5("lrs/mask"),!1,[6,6,1]);this.R4.h("click",function(P){var o=new h9(v.E.u,!0);
o.c=r.r$;o.data={d:"qmask"};this.Y(o)},this);var l=new ja(null,["Ctrl","Alt","Shift","No Touch"],!0,null,null,!0);
l.h(v.E.p,this.a3F,this);var x=n.L("span","rangecont form padded");x.appendChild(l.m);var a=document.body;
this.asR=[!1,!1,!1,!1];this.IJ=new hj("\u2328",!1,"Virtual Keys");this.IJ.h("click",function(P){var o=this.IJ.m.getBoundingClientRect();
x.setAttribute("style","position:absolute; top:"+(o.top-40)+"px; left: "+(o.left+o.width+4)+"px; width:120px; z-index:2; ");
if(n.wH(x))a.removeChild(x);else a.appendChild(x)},this)}ht.prototype=new cQ;ht.prototype.a3F=function(s){var m=s.target._();
this.IJ.f(m[0]||m[1]||m[2]||m[3]);var l=new h9(v.E.g,!0);for(var C=0;C<4;C++){if(m[C]!=this.asR[C]){l.data={d:v.J.a5N,t0:m[C],arY:["ControlLeft","AltLeft","ShiftLeft","NoTouch"][C]};
this.Y(l)}}this.asR=m.slice(0)};ht.prototype.apB=function(s,m){this.sG=m;if(s==null||s.N.length==0||s.G[s.N[0]]==null)return;
var l=s.R4()!=null,x=s.t.OL,a=s.G[s.N[0]].Ar,P=a==1||a==3||l||x[0]+x[1]+x[2]==1;this.wn.a7P(P);this.R4.f(l)};
ht.prototype.a3d=function(s,m){var l=s.length,x=[];for(var C=0;C<l;C++)x[C]=s[C].slice(0);s=x;var a=[1,2,4,5,7,8,7,9,11,12,14,15,14,16,10,11,1,3,17,18,7,6,13,14],P=Math.min(a.length/2,l-m);
for(var C=0;C<P;C++){var o=a[2*C],G=a[2*C+1];s[o]=s[o].concat(s[G]);s[G]=null}for(var C=0;C<s.length;
C++)if(s[C]==null){s.splice(C,1);C--}return s};ht.prototype.ak2=function(s,m){for(var C=0;C<m.length;
C++)for(var l=0;l<m[C].length;l++)if(m[C][l].c.id==s)return C};ht.prototype.u6=function(s,m){this.Tf=s;
this.cb=[];this.Hw=[];this.F$=[];this.C=[];var l=s.Dx;if(m!=null&&this.aa3)l=this.a3d(l,m);if(this.fG){var x=[],a=this.fG.abZ;
for(var C=0;C<l.length;C++){var P=[];for(var o=0;o<l[C].length;o++){var G=l[C][o];if(a==null||a.indexOf(parseInt(G.c.id))!=-1)P.push(G)}if(P.length>0)x.push(P)}l=x}for(var C=0;
C<l.length;C++){var _=[],j=this.cb.length,U=null,S=-1;for(var o=0;o<l[C].length;o++){var G=l[C][o].c,X=this.ak2(G.id,s.Dx),c=s.keys[X];
this.C.push(G);var y=new a7(G.name,c,G.SY,this.cb.length,C,l[C].length>1);this.cb.push(y);var O=this.a5T[G.id];
if(O==null)O=0;if(O>S){S=O;U=y}y.h(v.E.p,this.g6,this);y.h("mover",this.CN,this);_.push({name:G.name,Ia:G.SY,lA:c?c.ie:""})}this.Hw.push(U);
if(_.length==1)this.F$.push(null);else{var p=new aC(_,null,!0);p.arA=j;p.eM=C;this.F$.push(p);p.h("select",this.atJ,this);
p.parent=this}}};ht.prototype.jm=function(s,m){var l=this.Cm=m-11,x=32;if(1<n.W()&&n.W()<1.5)x=18+14*(1/n.W());
var a=39+23,P=Math.floor((l-a)/x),o=this.fG;if(o==null)return;if(P!=this.at1){this.at1=P;this.u6(this.Tf,P);
this.s$(o.hu)}var G=this.Hw.length*x+a,_=Math.min(1,l/G);if(.75<=_){this.go.setAttribute("style","width:34px; transform-origin: top left; transform: scale("+_+","+_+");");
this.m.setAttribute("style","height:"+(m-2)+"px; overflow:hidden;")}else{l-=4;this.go.setAttribute("style","height: "+l+"px; width:"+Math.ceil(G/l)*34+"px");
this.m.setAttribute("style","")}};ht.prototype.U=function(){for(var C=0;C<this.cb.length;C++)this.cb[C].U();
for(var C=0;C<this.F$.length;C++)if(this.F$[C])this.F$[C].U()};ht.prototype.g6=function(s){var m=new h9(v.E.g,!0);
m.data={d:v.J._I,c:this.C[s.id].id};this.Y(m)};ht.prototype.atJ=function(s){var m=s.target.arA+s.target.gW()[0];
this.cb[m].tU(null)};ht.prototype.CN=function(s){var m=this.sG,l=new h9(v.E.g,!0);l.data={d:v.J.os};
this.Y(l);var x=s.target,a=this.F$[x.eM];if(a==null)return;var P=x.m.getBoundingClientRect(),l=new h9(v.E.g,!0);
l.data={d:v.J.Jm,UK:a,x:P.left+P.width+8,y:P.top};if(m==null||!(m.$(dV.td)||m.$(dV.bt)))this.Y(l)};ht.prototype.s$=function(s){this.a5T[s]=Date.now();
var m=-1;for(var C=0;C<this.C.length;C++)if(this.C[C].id==s)m=C;for(var C=0;C<this.cb.length;C++){var l=this.cb[C];
l.a7e(m==C)}if(m==-1)return;this.Hw[this.cb[m].eM]=this.cb[m];n.em(this.go);var x=this.Hw;for(var C=0;
C<x.length;C++){this.go.appendChild(x[C].m)}if(!this.aa3)return;this.go.appendChild(this.wn.m);if(this.Cm>640)this.go.appendChild(this.R4.m);
this.go.appendChild(this.IJ.m)};ht.prototype.av=function(s,m){this.s$(m.hu)};ht.prototype.L8=function(s,m){this.fG=s;
if(m==gN.ki){this.u6(this.Tf);this.s$(s.hu)}this.wn.a7V(s.zU,s.Pi)};function a7(s,m,l,x,a,P){fR.call(this);
this.pZ=0;this.f2=this.ats.bind(this);this.eM=a;this.Dy=x;this.er=s;this.a2Z=m;this.a1_=P;this.SY=l;
this.m=n.L("button","");this.m.innerHTML=n.C5(this.SY);if(this.a1_){var o=n.L("img","gsicon");o.setAttribute("src",PIMG["tools/corner"]);
o.setAttribute("style","position:absolute; right:0; bottom:0; width:100%; height:100%;");this.m.appendChild(o)}this.U();
n.i3(this.m,this._N.bind(this));this.m.addEventListener("click",this.tU.bind(this),!1);this.m.addEventListener("contextmenu",a7.uj,!1)}a7.prototype=new fR;
a7.uj=function(s){s.stopPropagation();s.preventDefault();return!1};a7.prototype.U=function(){var s=this.a2Z?" ("+this.a2Z.ie+")":"";
this.m.setAttribute("title",iX.get(this.er)+s)};a7.prototype._N=function(s){this.pZ=setTimeout(this.f2,160)};
a7.prototype.tU=function(s){clearTimeout(this.pZ);var m=new h9(v.E.p,!1);m.target=this;m.id=this.Dy;
this.Y(m)};a7.prototype.ats=function(s){var m=new h9("mover",!1);m.target=this;m.id=this.Dy;this.Y(m)};
a7.prototype.a7e=function(s){this.m.setAttribute("class",s?"toolbtn active":"toolbtn")};function al(){fR.call(this);
this.m=n.L("div","topbar");this.z1=n.L("span","");this.a0Z=0;this.m.appendChild(this.z1);this.QA=null;
this.JL=null;this.tr=[];this.Qh=[];var s=this._N.bind(this);for(var C=0;C<al.data.length;C++){var m=n.L("button");
this.tr.push(m);this.z1.appendChild(m);m.addEventListener("mouseover",s,!1);n.i3(m,s)}this.GG=new hj([0,13,0],!1,null,!0);
this.GG.h("click",this.FU,this);this.m.appendChild(this.GG.m);this.cJ=new hj(n.C5("tools/zoom",null,"autoscale"),!1,[12,86]);
this.cJ.h("click",this.FU,this);this.m.appendChild(this.cJ.m);this.tB=new hj("<svg class=\"gsicon\" version=\"1.1\" width=\"20\" height=\"20\" viewBox=\"8 8 20 20\"><path d=\"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z\"></path><path d=\"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z\"></path><path d=\"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z\"></path><path d=\"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z\"></path></svg>",!1,"Fullscreen");
this.tB.h("click",this.FU,this);this.m.appendChild(this.tB.m)}al.prototype=new fR;al.prototype.ac9=function(){if(this.Qh.length!=0)return;
for(var C=0;C<al.data.length;C++){var s=al.data[C],m=new aC(s.items,s.TQ);m.parent=this;this.Qh.push(m)}this.U()};
al.prototype.U=function(){this.GG.U();this.cJ.U();this.tB.U();for(var C=0;C<this.tr.length;C++)this.tr[C].textContent=iX.get(al.data[C].name);
this.a3s();for(var C=0;C<this.Qh.length;C++)this.Qh[C].U()};al.prototype.FU=function(s){var m=new h9(v.E.g,!0);
if(s.target==this.GG)m.data={d:v.J.Qm,It:"account"};else if(s.target==this.cJ)m.data={d:v.J.QC};else m.data={d:v.J.Rm,YE:!0};
this.Y(m)};al.prototype.agn=function(s,m){this.QA=s;this.JL=m};al.prototype.L8=function(s,m){this.JL=s;
if(m==gN.ki){var l=s.a5q;n.em(this.z1);for(var C=0;C<this.tr.length;C++){if(l==null||l[C]==1||l[C]instanceof Array)this.z1.appendChild(this.tr[C]);
if(l!=null&&l[C]instanceof Array){this.ac9();this.Qh[C].ahX(l[C])}}this.m.removeChild(this.GG.m);this.m.removeChild(this.cJ.m);
this.m.removeChild(this.tB.m);if(s.im)this.m.appendChild(this.GG.m);this.m.appendChild(this.cJ.m);this.m.appendChild(this.tB.m)}this.a3s()};
al.prototype.a3s=function(s,m){var l=this.GG,x=12255232;if(fr.r_())x=fr.vU()?43520:16755200;l.m.setAttribute("style","color:#ffffff; background-color:#"+L.eZ(x))};
al.prototype._N=function(s){this.ac9();var C=this.tr.indexOf(s.currentTarget),m=this.Qh[C];if(s.type=="mouseover"&&!n.wH(this.Qh[this.a0Z].m))return;
if(n.wH(m.m))return;s.alV=!0;this.a0Z=C;for(var C=0;C<al.data.length;C++)this.Qh[C].update(this.QA,this.JL);
var l=s.target.getBoundingClientRect(),x=new h9(v.E.g,!0);x.data={d:v.J.Jm,UK:m,x:l.left,y:l.top+l.height+2,aay:!0};
this.Y(x)};al.ajX=function(s){var m=dV,l=m.bt,x=m.Ht,a=m.Il,P={name:[0,5],items:[{name:[7,0],lA:[l,m.J]},{name:[7,1],lA:[l,m.PX],P:function(G){return{P:G!=null&&G.q!=null}}},{name:[7,2],lA:[x,l,m.ai],P:function(G){return{P:G!=null&&G.q!=null}},Bx:!0},{name:[7,11],$q:!0,P:function(G){return{P:G!=null&&G.N.length!=0&&!G.G[G.N[0]].rect.Xh()}}},{name:[7,13],$q:!0,P:function(G){return{P:G!=null&&G.N.length!=0&&!G.G[G.N[0]].rect.Xh()}},Bx:!0},{name:[7,8],$q:!0},{name:[7,3],Bx:!0,sub:[{name:[7,9],$q:!0,P:function(G){return{P:G!=null&&G.q!=null}}},{name:[19,3,0],$q:!0,P:function(G){return{P:G!=null&&G.q!=null}}},{name:[7,4],$q:!0,P:function(G){return{P:G!=null&&G.q!=null}}},{name:[7,5],$q:!0,P:function(G){return{P:G!=null&&G.q!=null}}},{name:[7,6],$q:!0,P:function(G){return{P:G!=null&&G.q!=null}},lA:"Shift+F6"}]},{name:[7,10],P:function(G){return{P:G!=null&&G.q!=null}},Bx:!0},{name:[6,6,1],P:function(G){return{P:G!=null,FB:G!=null&&G.R4()!=null}},lA:[m.Ov],Bx:!0},{name:["VAR0 VAR1",[1,2],[17,2]]}],TQ:[{b:v.E.b4,M:r.bJ.d9(!0)},{b:v.E.b4,M:r.bJ.d9()},{b:v.E.b4,M:{YF:"inverse"}},{b:v.E.g,M:{d:v.J.Qm,It:"redge"}},{b:v.E.g,M:{d:v.J.Qm,It:"magiccut"}},{b:v.E.g,M:{d:v.J.Qm,It:"crange"}},{sub:[{b:v.E.g,M:{d:v.J.Qm,It:"sel_border"}},{b:v.E.g,M:{d:v.J.Qm,It:"sel_smoothness"}},{b:v.E.g,M:{d:v.J.Qm,It:"sel_expand"}},{b:v.E.g,M:{d:v.J.Qm,It:"sel_contract"}},{b:v.E.g,M:{d:v.J.Qm,It:"sel_feather"}}]},{b:v.E.g,M:{d:v.J._I,c:r.Mg}},{b:v.E.u,c:r.r$,M:{d:"qmask"}},{b:v.E.b4,M:{YF:"duplicate",WA:{classID:"null",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}}}]};
if(s){var o=P.items.length-1;P.items.splice(o-2,0,{name:[6,49],lA:[l,m.bc],Bx:!0});P.TQ.splice(o-2,0,{b:v.E.u,c:r.ay,M:{d:t.ER}});
P.items.splice(o-1,0,{name:[10,16],lA:[a,l,m.GM]});P.TQ.splice(o-1,0,{b:v.E.g,M:{d:v.J._I,c:r.mx}})}return P};
al.data=function(){var s=dV,m=s.bt,l=s.Ht,x=s.Il,a=function(U){return{P:U!=null&&U.N.length!=0}},P=function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].add.SoLd!=null}},o=[],G=[],_="none maxx avrg medn minn rang stdv summ vari".split(" "),j=[[22,5,0],[24,17,2],[24,3,0],[24,7,3],[24,17,3],[12,12],"Standard Deviation","Summation","Variance"];
for(var C=0;C<_.length;C++){o.push({name:j[C]});G.push({b:v.E.u,c:r.ay,M:{d:t.Me,Ur:_[C]}})}return[{name:[0,0],items:[{name:[5,3],lA:[x,m,s.Vx],title:[11,7],$q:!0},{name:[1,0],lA:[m,s.W5],$q:!0},{name:[1,11],$q:!0,P:function(U,S){return{P:U!=null}}},{name:["VAR0 VAR1",[1,0],[0,14]],Bx:!0,sub:[{name:[1,5],$q:!0},{name:[11,0],$q:!0},{name:["PSD VAR0",[25,0]],$q:!0}]},{name:[1,1],Bx:!0,sub:[{name:"PNG",lA:"Imgur.com",P:function(U,S){return{P:U!=null&&S.mh}}},{name:"JPG",lA:"Imgur.com",P:function(U,S){return{P:U!=null&&S.mh}}},{name:"PSD",lA:"Photopea.com",P:function(U,S){return{P:U!=null&&S.mh&&!U.k3}}}]},{name:"Save ...",lA:[m,s.iJ],P:function(U,S){var X=iX.get([1,2])+(U==null?"":U.Em?" ("+iX.get([6,7,1])+")":U.H4?" (Google Drive)":"");
return{P:U!=null&&(U.bE!=null&&U.rf=="psd"||U.Em!=null||U.s5!=null&&U.s5.Ra!=null||U.H4!=null||S.dh.save!=null),AJ:X}}},{name:[1,3],P:function(U,S){return{P:U!=null&&!U.k3&&S.mh}}},{name:["VAR0 PSD/PSB",[1,2]],$q:!0,P:function(U,S){return{P:U!=null&&!U.k3&&S.mh}}},{name:[1,8],sub:function(){var U=iO.m_(0),S=[];
for(var C=0;C<U.length;C++)S.push({name:U[C],lA:"."+U[C].toLowerCase()});S.push({name:[0,14],sub:function(){var U=iO.m_(1),S=[];
for(var C=0;C<U.length;C++)S.push({name:U[C],lA:"."+U[C].toLowerCase()});return S}()});return S}()},{name:[1,4],$q:!0,P:function(U,S){return{P:U!=null}},Bx:!0},{name:[1,9],$q:!0,P:function(U,S){return{P:U!=null}}},{name:"Export Color Lookup",$q:!0,P:function(U,S){return{P:U!=null}},Bx:!0},{name:[1,14],$q:!0,P:function(U,S){return{P:U!=null}},Bx:!0},{name:[1,10]}],TQ:[{b:v.E.g,M:{d:v.J.Qm,It:"newproject"}},{b:v.E.g,M:{d:v.J.BB}},{b:v.E.g,M:{d:v.J.BB,a7h:!0}},{sub:[{b:v.E.g,M:{d:v.J.Qm,It:"open_from_url"}},{b:v.E.g,M:{d:v.J.Qm,It:"camera"}},{b:v.E.g,M:{d:v.J.Qm,It:"templates"}}]},{sub:[{b:v.E.g,M:{d:v.J.RP,pG:"png"}},{b:v.E.g,M:{d:v.J.RP,pG:"jpg"}},{b:v.E.g,M:{d:v.J.RP,pG:"psd"}}]},{b:v.E.g,M:{d:v.J.Sl}},{b:v.E.g,M:{d:v.J.Wq}},{b:v.E.g,M:{d:v.J.Qm,It:"savepsb"}},{sub:function(){var U=iO.m_(0),S=[];
for(var C=0;C<U.length;C++)S.push({b:v.E.g,M:{d:v.J.Qm,It:"saveforweb",pG:C}});S.push({sub:function(){var X=iO.m_(0).length,U=iO.m_(1),S=[];
for(var C=0;C<U.length;C++)S.push({b:v.E.g,M:{d:v.J.Qm,It:"saveforweb",pG:X+C}});return S}()});return S}()},{b:v.E.g,M:{d:v.J.Qm,It:"saveforweb",pG:4,an7:!0}},{b:v.E.g,M:{d:v.J.Qm,It:"eassets"}},{b:v.E.g,M:{d:v.J.Qm,It:"exlut"}},{b:v.E.g,M:{d:v.J.Qm,It:"finfo"}},{b:v.E.g,M:{d:v.J.Qm,It:"script"}}]},{name:[0,1],items:[{name:[2,8]},{name:[2,0],lA:[l,m,s.$j]},{name:[2,1],lA:[m,s.$j],Bx:!0},{name:[2,11],lA:[l,m,s.nF],Bx:!0,$q:!0,P:function(U,S){return{P:bX.a5y(U)&&S.hu!=r.mx}}},{name:[5,0],lA:[m,s.mj]},{name:[5,1],lA:[m,s._a]},{name:[5,7],lA:[l,m,s._a]},{name:[5,2],lA:[m,s.BF],P:function(U,S){return{P:n.wJ()||S.lo!=null||S.ww!=null||S.aok!=null}}},{name:[2,2],P:function(U){return{P:U!=null&&U.q!=null}},lA:"Delete",Bx:!0},{name:[2,3],P:function(U){return{P:U!=null}},$q:!0,lA:[l,s.$J]},{name:[14,9],P:function(U){return{P:U!=null}},$q:!0,Bx:!0},{name:[10,48],P:function(U){return{P:U!=null&&U.z6(!1)}}},{name:[10,46],P:function(U){return{P:r.X8.Jj(U)}}},{name:[10,16],lA:[x,m,s.GM]},{name:[2,4],sub:hS.a4_()},{name:[2,10,1]},{name:[2,10,0],Bx:!0},{name:[12,87],sub:[{name:[12,62],P:function(U){return{P:U!=null}}},{name:[9,3],P:function(U){return{P:U!=null}}},{name:[10,31],P:function(U){return{P:U!=null&&U.S4()[1].length!=0}}}]},{name:"Preset Manager",$q:!0},{name:[12,79],$q:!0,lA:[m,s.OV]},{name:[1,13],$q:!0}],TQ:[{b:v.E.u,c:r.rs,M:{d:"h_undoredo"}},{b:v.E.u,c:r.rs,M:{d:"h_stepfwd"}},{b:v.E.u,c:r.rs,M:{d:"h_stepbck"}},{b:v.E.g,M:{d:v.J.Qm,It:"afw_fade"}},{b:v.E.g,M:{d:v.J.vl}},{b:v.E.g,M:{d:v.J.xZ}},{b:v.E.g,M:{d:v.J.xZ,Oo:!0}},{b:v.E.g,M:{d:v.J.iI}},{b:v.E.b4,M:{YF:"delete"}},{b:v.E.g,M:{d:v.J.Qm,It:"fill"}},{b:v.E.g,M:{d:v.J.Qm,It:"stroke"}},{b:v.E.g,M:{d:v.J._I,c:r.XE}},{b:v.E.u,c:r.LI,M:{d:"start",HU:"rigidTransform"}},{b:v.E.g,M:{d:v.J._I,c:r.mx}},{sub:hS.aq4()},{b:v.E.b4,M:{YF:"align",WA:{classID:"null",null:{t:"obj ",v:[{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Trgt"}}]},Usng:{t:"enum",v:{ADSt:"ADSContent"}},alignToCanvas:{t:"bool",v:!1},Aply:{t:"enum",v:{projection:"Auto"}},vignette:{t:"bool",v:!1},radialDistort:{t:"bool",v:!1}}}},{b:v.E.u,c:r.ay,M:{d:t.Dt}},{sub:[{b:v.E.g,M:{d:v.J.wv,AV:0}},{b:v.E.g,M:{d:v.J.wv,AV:1}},{b:v.E.g,M:{d:v.J.wv,AV:2}}]},{b:v.E.g,M:{d:v.J.Qm,It:"pmanager"}},{b:v.E.g,M:{d:v.J.Qm,It:"preferences"}},{b:v.E.g,M:{d:v.J.Qm,It:"locstor"}}]},{name:[0,2],items:[{name:[3],sub:function(){var U=[];
for(var S in eb.names){U.push({name:eb.names[S],$q:B[S]!=null,lA:eb.keys[S],Bx:eb.eo.indexOf(S)!=-1});
if(S=="selc"){U.push({name:["VAR0/VAR1",[19,6,0],[19,6,2]],$q:!0,Bx:!0});U.push({name:[19,7,0],lA:[m,l,s.sv],P:function(S){return{P:S&&S.N.length!=0&&S.G[S.N[0]].add.SoLd==null}}})}}return U}()},{name:[4,16,0],P:function(U){return{P:U!=null&&U.z6(!1)}}},{name:[4,16,1],P:function(U){return{P:U!=null&&U.z6(!1)}}},{name:[4,16,2],P:function(U){return{P:U!=null&&U.z6(!1)}},Bx:!0},{name:"Reduce Colors",P:function(U){return{P:U!=null&&U.z6(!1)}}},{name:[11,11],P:function(U){return{P:U!=null&&U.z6(!1)}},Bx:!0},{name:[11,3],$q:!0,lA:[x,m,s._a]},{name:[11,10],$q:!0,lA:[x,m,s.ai]},{name:[2,4],sub:[{name:["VAR0 90\xB0 \u21BB",[2,5]]},{name:["VAR0 90\xB0 \u21BA",[2,5]]},{name:["VAR0 180\xB0",[2,5]]},{name:[[2,6],[22,4,2]]},{name:[[2,6],[22,4,3]]}]},{name:[11,12,1],P:function(U){return{P:U!=null&&U.q!=null}}},{name:[11,12,0],P:function(U){return{P:U!=null}},lA:[m,s.l0],$q:!0},{name:[11,12,2],P:function(U){return{P:U!=null}},Bx:!0},{name:[2,12],P:function(U){return{P:U!=null&&U.z6(!1)}},$q:!0}],TQ:[{sub:function(){var U=[];
for(var S in eb.names){U.push({b:v.E.u,c:r.P4,M:{d:"start",AK:S}});if(S=="selc"){U.push({b:v.E.u,c:r.LI,M:{d:"start",HU:"adaptCorrect"}});
U.push({b:v.E.b4,M:{YF:"desaturate"}})}}return U}()},{b:v.E.b4,M:{YF:"levels",WA:{classID:"Lvls",Auto:{t:"bool",v:!0}}}},{b:v.E.b4,M:{YF:"levels",WA:{classID:"Lvls",AuCo:{t:"bool",v:!0}}}},{b:v.E.b4,M:{YF:"levels",WA:{classID:"Lvls",autoBlackWhite:{t:"bool",v:!0},autoNeutrals:{t:"bool",v:!0}}}},{b:v.E.g,M:{d:v.J.Qm,It:"rcolors"}},{b:v.E.g,M:{d:v.J.Qm,It:"vbitmap"}},{b:v.E.g,M:{d:v.J.Qm,It:"csize"}},{b:v.E.g,M:{d:v.J.Qm,It:"isize"}},{sub:[{b:v.E.b4,M:r.Q.pU(!0,90)},{b:v.E.b4,M:r.Q.pU(!0,-90)},{b:v.E.b4,M:r.Q.pU(!0,-180)},{b:v.E.b4,M:r.Q.pU(!1,"Hrzn")},{b:v.E.b4,M:r.Q.pU(!1,"Vrtc")}]},{b:v.E.u,c:r.wX,M:{d:"cropbysel",a2S:0}},{b:v.E.g,M:{d:v.J.Qm,It:"trim"}},{b:v.E.b4,M:{YF:"revealAll",WA:{classID:"RvlA"}}},{b:v.E.u,c:r.P4,M:{d:"start",AK:"aply"}}]},{name:[0,3],items:[{name:[5,3],sub:[{name:[0,3]},{name:[0,4]},{name:[6,49],lA:[m,s.bc]}]},{name:[6,0],P:a,lA:[m,s.bc]},{name:[11,4],P:a},{name:[5,4],P:a,Bx:!0},{name:[11,6],Bx:!0,P:a,sub:jz.aY(!0)},{name:[6,48,1],sub:[{name:[6,48,0,0]},{name:[6,48,0,1]},{name:[6,48,0,2]}]},{name:[6,1],Bx:!0,sub:jz.afS()},{name:[6,2],sub:[{name:[6,4],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].SE()==null}}},{name:[6,5,0],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].SE()==null}}},{name:[6,5,1],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].SE()==null&&U.q!=null}}},{name:[6,5,2],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].SE()==null&&U.q!=null}}},{name:[6,5,3],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].SE()==null}},Bx:!0},{name:[5,4],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].SE()!=null}}},{name:[5,8],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].SE()!=null&&U.z6(!1,!0)}}},{name:["VAR0/VAR1",[5,5],[5,6]],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].SE()!=null}}}]},{name:[6,3],sub:[{name:[6,4],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].add.vmsk==null}}},{name:[6,5,0],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].add.vmsk==null}}},{name:"Current Path",P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].add.vmsk==null}},Bx:!0},{name:[5,4],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].add.vmsk!=null}}},{name:["VAR0/VAR1",[5,5],[5,6]],P:function(U){return{P:U!=null&&U.N.length!=0&&U.G[U.N[0]].add.vmsk!=null}}}]},f2.ahs(!0),{name:[6,7,1],Bx:!0,sub:[{name:[6,7,0]},{name:[6,36,4],P:P,sub:o},{name:[1,0],P:P,Bx:!0},{name:"Turn into JPG"}]},{name:[6,8],P:f2.a7O},{name:[6,34],Bx:!0,P:function(U){if(U==null||U.N.length==0)return{P:!1};
var S=U.G[U.N[0]];return{P:S.add.lmfx!=null&&!S.gu()}}},{name:[6,9],Bx:!0,lA:[m,s.e4]},{name:[6,55],Bx:!0,sub:[{name:[6,56,0],lA:[l,m,s.Zu]},{name:[6,56,1],lA:[m,s.Zu]},{name:[6,56,2],lA:[m,s.Z8]},{name:[6,56,3],lA:[l,m,s.Z8]}]},{name:[6,58],sub:[{name:["Make Frames"]},{name:["Unmake Frames"]},{name:[18,5]}]},{name:[6,10],P:function(U){return{P:U!=null&&U.N.length==1&&U.N[0]!=0&&!U.G[U.N[0]].gu()}},lA:[m,s.E]},{name:[6,12,0],P:function(U){return{P:U!=null&&U.N.length!=0&&(U.N.length>1||U.G[U.N[0]].gu())}}},{name:[6,12,1]}],TQ:[{sub:[{b:v.E.u,c:r.ay,M:{d:t.Yb}},{b:v.E.u,c:r.ay,M:{d:t.R3}},{b:v.E.u,c:r.ay,M:{d:t.ER}}]},{b:v.E.u,c:r.ay,M:{d:t.Rk}},{b:v.E.g,M:{d:v.J.Qm,It:"duplinto"}},{b:v.E.u,c:r.ay,M:{d:t.q_}},{sub:jz.y5(!0)},{sub:[{b:v.E.u,c:r.RJ,M:{d:"newfill",_z:0}},{b:v.E.b4,M:r.c9.VG(1)},{b:v.E.b4,M:r.c9.VG(2)}]},{sub:jz.H$()},{sub:[{b:v.E.u,c:r.ay,M:{d:t.Da,ur:"RvlA"}},{b:v.E.u,c:r.ay,M:{d:t.Da,ur:"HdAl"}},{b:v.E.u,c:r.ay,M:{d:t.Da,ur:"RvlS"}},{b:v.E.u,c:r.ay,M:{d:t.Da,ur:"HdSl"}},{b:v.E.u,c:r.ay,M:{d:t.Da,ur:"Trns"}},{b:v.E.u,c:r.ay,M:{d:t.aG}},{b:v.E.u,c:r.ay,M:{d:t.LX}},{b:v.E.u,c:r.ay,M:{d:t.mD}}]},{sub:[{b:v.E.u,c:r.ay,M:{d:t.I5,a9H:!1}},{b:v.E.u,c:r.ay,M:{d:t.I5,a9H:!0}},{b:v.E.u,c:r.ay,M:{d:t.I5,a57:!0}},{b:v.E.u,c:r.ay,M:{d:t.RA}},{b:v.E.u,c:r.ay,M:{d:t.Kl}}]},{b:v.E.u,c:r.ay,M:{d:t.VD}},{sub:[{b:v.E.b4,M:{YF:"newPlacedLayer"}},{sub:G},{b:v.E.b4,M:{YF:"placedLayerEditContents",WA:{classID:"placedLayerEditContents"}}},{b:v.E.u,c:r.ay,M:{d:t.x1}}]},{b:v.E.b4,M:{YF:"rasterizeLayer",WA:{classID:"rasterizeLayer",null:e6.Yr("Lyr",!0)}}},{b:v.E.u,c:r.ay,M:{d:t.Tt}},{b:v.E.u,c:r.ay,M:{d:t.a4}},{sub:[{b:v.E.u,c:r.ay,M:{d:t.qT,R7:0}},{b:v.E.u,c:r.ay,M:{d:t.qT,R7:1}},{b:v.E.u,c:r.ay,M:{d:t.qT,R7:2}},{b:v.E.u,c:r.ay,M:{d:t.qT,R7:3}}]},{sub:[{b:v.E.u,c:r.ay,M:{d:t._7,R7:"makeframes"}},{b:v.E.u,c:r.ay,M:{d:t._7,R7:"unmakeframes"}},{b:v.E.u,c:r.ay,M:{d:t._7,R7:"merge"}}]},{b:v.E.u,c:r.ay,M:{d:t.MN}},{b:v.E.u,c:r.ay,M:{d:t.cg}},{b:v.E.b4,M:{YF:"flattenImage"}}]},al.ajX(!1),function(){var U={name:[0,6],items:[{name:[24,18,4],lA:[x,m,s.nF],Bx:!0}],TQ:[{b:v.E.u,c:r.LI,M:{d:"applylast"}}]};
for(var C=0;C<ib.ta.length;C++){var S=ib.ta[C];if(S.ts!=null){U.items.push({name:ib.names[S.ts],$q:!0,Bx:S.Bx});
U.TQ.push({b:v.E.u,c:r.LI,M:{d:"start",HU:S.ts}});continue}var X={name:S.ii,sub:[]};U.items.push(X);
var c={sub:[]};U.TQ.push(c);for(var y=0;y<S.Oh.length;y++){var O={name:ib.names[S.Oh[y]],$q:ib.Xi(S.Oh[y])!=null};
X.sub.push(O);var p={b:v.E.u,c:r.LI,M:{d:"start",HU:S.Oh[y]}};c.sub.push(p)}}return U}(),{name:[0,7],items:[{name:[8,0],lA:[m,s.ko]},{name:[8,1],lA:[m,s.xa]},{name:[20,3],lA:[m,s.py]},{name:[20,2],lA:[m,s.$w],Bx:!0},{name:"Screen Mode",Bx:!0,sub:[{name:"Fullscreen",P:function(U,S){return{FB:document.fullscreenElement!=null}},Bx:!0},{name:"Standard",P:function(U,S){return{FB:S.Zk==0}}},{name:"Menu Bar and Canvas",P:function(U,S){return{FB:S.Zk==1}}}]},{name:[8,13],lA:[m,s.uU],P:function(U,S){return{FB:S.DQ}}},{name:[8,12],Bx:!0,sub:[{name:[17,2],P:function(U,S){return{P:S.DQ,FB:S.HD.Rz}}},{name:[8,9],P:function(U,S){return{P:S.DQ,FB:S.HD.sj}}},{name:[8,2],P:function(U,S){return{P:S.DQ,FB:S.HD.ff}},lA:[m,s.Xe]},{name:[8,4],P:function(U,S){return{P:S.DQ,FB:S.HD.ry}},lA:[m,s.fT]},{name:[8,8],P:function(U,S){return{P:S.DQ,FB:S.HD.Ge}}},{name:[8,11,0],P:function(U,S){return{P:S.DQ,FB:S.HD.YA}}}]},{name:[8,3],P:function(U,S){return{FB:S.no}},lA:[m,s.E4],Bx:!0},{name:[8,5],P:function(U,S){return{FB:S.WD}}},{name:[8,6],Bx:!0,sub:[{name:[8,2],P:function(U,S){return{FB:S.Vd[0]}}},{name:[8,4],P:function(U,S){return{FB:S.Vd[1]}}},{name:[9,1],P:function(U,S){return{FB:S.Vd[2]}}},{name:[8,11,0],P:function(U,S){return{FB:S.Vd[3]}}},{name:[8,7],P:function(U,S){return{FB:S.Vd[4]}}}]},{name:[11,15,2],P:function(U,S){return{P:U!=null,FB:U!=null&&U.Xs}}},{name:[11,15,0],P:function(U,S){return{P:U!=null}}},{name:[11,14],P:function(U,S){return{P:U!=null}},$q:!0},{name:[11,15,1],P:function(U,S){return{P:U!=null&&U.N.length!=0}},Bx:!0},{name:[8,11,2],P:function(U,S){return{P:U!=null&&U.YA.length!=0}}}],TQ:[{b:v.E.u,c:r.Zq,M:{d:"zoom",SF:!0}},{b:v.E.u,c:r.Zq,M:{d:"zoom",SF:!1}},{b:v.E.u,c:r.Zq,M:{d:"adapt",Z:"fitscr"}},{b:v.E.u,c:r.Zq,M:{d:"adapt",Z:"pixel"}},{sub:[{b:v.E.g,M:{d:v.J.Rm,YE:!0}},{b:v.E.g,M:{d:v.J.Rm,Z:0}},{b:v.E.g,M:{d:v.J.Rm,Z:1}},{b:v.E.g,M:{d:v.J.Rm,Z:2}}]},{b:v.E.g,M:{d:v.J.xw,AV:gN.pM}},{sub:[{b:v.E.g,M:{d:v.J.xw,AV:gN.Ii}},{b:v.E.g,M:{d:v.J.xw,AV:gN.JK}},{b:v.E.g,M:{d:v.J.xw,AV:gN.h0}},{b:v.E.g,M:{d:v.J.xw,AV:gN.BZ}},{b:v.E.g,M:{d:v.J.xw,AV:gN.bO}},{b:v.E.g,M:{d:v.J.xw,AV:gN.Xk}}]},{b:v.E.g,M:{d:v.J.xw,AV:gN.eR}},{b:v.E.g,M:{d:v.J.xw,AV:gN.Ev}},{sub:[{b:v.E.g,M:{d:v.J.xw,AV:gN.n5,_A:0}},{b:v.E.g,M:{d:v.J.xw,AV:gN.n5,_A:1}},{b:v.E.g,M:{d:v.J.xw,AV:gN.n5,_A:2}},{b:v.E.g,M:{d:v.J.xw,AV:gN.n5,_A:3}},{b:v.E.g,M:{d:v.J.xw,AV:gN.n5,_A:4}}]},{b:v.E.u,c:r.G1,M:{d:"lockguides"}},{b:v.E.u,c:r.G1,M:{d:"gids",uP:[[],[]]}},{b:v.E.g,M:{d:v.J.Qm,It:"addguides"}},{b:v.E.u,c:r.G1,M:{d:"gidsFromLayer"}},{b:v.E.u,c:r.iR,M:{d:"deleteAll"}}]},function(){var U={name:[0,8],items:[{name:[0,14],Bx:!0,sub:[]}],TQ:[{sub:[]}]};
for(var C=0;C<b$.kg.length;C++){var S=b$.kg[C],X=function(){var c=S.UK.tf;return function(y,O){return{FB:O.Qh.indexOf(parseInt(c))!=-1}}}();
(S.gJ?U.items[0].sub:U.items).push({name:S.UK.name,P:X});(S.gJ?U.TQ[0].sub:U.TQ).push({b:v.E.g,M:{d:v.J.OO,It:S.UK.tf}})}return U}(),function(){var U={name:[0,14],items:[],TQ:[]},S={name:[0,9],sub:[]};
U.items.push(S);var X={sub:[]};U.TQ.push(X);var c=iX.ahV();for(var C=0;C<c.length;C++){var y=c[C],O=y.code,p=iX.HR(O);
S.sub.push({name:y.name,lA:O,P:function(D,f){return{FB:this.lA==iX.Lo()}}});X.sub.push({b:v.E.g,M:{d:v.J.xw,AV:gN.e7,lang:p}})}S.sub.push({name:[0,12]});
X.sub.push({b:v.E.g,M:{d:v.J.DZ,link:"https://www.photopea.com/translate/"}});var S={name:[0,15],sub:[]};
U.items.push(S);var X={sub:[]};U.TQ.push(X);for(var C=0;C<gn.WO.length;C++){S.sub.push({name:gn.WO[C].name,P:function(D,f){return{FB:this.name==gn.WO[f.li].name}}});
X.sub.push({b:v.E.g,M:{d:v.J.xw,AV:gN.cv,li:C}})}U.items.push({name:[0,17,6],P:function(D,f){return{P:f.Xl!=null}}});
U.TQ.push({b:v.E.g,M:{d:v.J.amA}});U.items.push({name:[11,13]});U.TQ.push({b:v.E.g,M:{d:v.J.Qm,It:"shortcuts"}});
U.items.push({name:[0,16],P:function(D){return{FB:M.wR,P:M.zM}},Bx:!0});U.TQ.push({b:v.E.g,M:{d:v.J.amH}});
U.items.push({name:"",P:function(D,f){return f.im?{AJ:"About Photopea",P:!0}:{AJ:"",P:!1}}});U.TQ.push({b:v.E.g,M:{d:v.J.Qm,It:"aboutpp"}});
return U}()]}();function aD(){fR.call(this);this.m=n.L("div","");this.LP=0;this.vp=0;this.bR=null;this.q1=n.L("div","");
this.q1.setAttribute("style","width:200em; height:100em; position:absolute;");this.vB=[];this._x=[];
this.dE={}}aD.prototype=new fR;aD.prototype.XF=function(s){var m=Date.now(),l=[];if(s=="-")l=[new ft,new jb,new dv,new gB,new hw,new eQ,new dM,new eX,new ac,new hv,new is,new hR,new aV,new fU,new hl,new jz,new jL,new cU,new fv,new fm,new ee,new fY,new jC,new gK,new hk,new eI,new fE(!1),new fE(!0),new il(0),new il(1),new bM,new bC,new eY,new f6,new dN,new dK,new dU,new de,new hW,new gW("border",[7,9],"px"),new gW("smoothness",[19,3,0],"px"),new gW("expand",[7,4],"px"),new gW("contract",[7,5],"px"),new gW("feather",[7,6],"px"),new jD(0,"namewindow",[12,48]),new jD(1,"cornerradius",[12,94,0],"px",!0,!0),new jD(1,"scaleeffects","Scale Effects","%",!0),new jD(1,"doczoom","Zoom","%",!0)];
else l=[new bX(s.slice(4))];this.alk(l);this.dE[s]=!0};aD.prototype.alk=function(s){var m=this.bR;for(var C=0;
C<s.length;C++){var l=s[C];l.parent=this;this._x.push(l);this.G5(l);l.U();if(m)l.L8(m,gN.ki);l.h(v.E.JP,this.Bt,this)}};
aD.prototype.jm=function(s,m){this.LP=s;this.vp=m;for(var C=0;C<this._x.length;C++)this.G5(this._x[C])};
aD.prototype.U=function(){for(var C=0;C<this._x.length;C++)this._x[C].U()};aD.prototype.wK=function(){return this.vB.length==0?null:this.vB[this.vB.length-1]};
aD.prototype.hl=function(){for(var C=0;C<this.vB.length;C++)if(this.vB[C].hl())return!0;return!1};aD.prototype.as1=function(s,m,l,x,a){var P=s.startsWith("afw_"),o=null;
if(!P&&!this.dE["-"])this.XF("-");if(P&&!this.dE[s])this.XF(s);if(typeof s=="object"){o=s;if(!o.a1m(v.E.JP,this.Bt))o.h(v.E.JP,this.Bt,this);
o.parent=this}else for(var C=0;C<this._x.length;C++)if(this._x[C].id==s)o=this._x[C];if(this.hl()&&o.hl()){alert("Finish the current action first");
return}if(!o.UW(m))return;if(this.vB.indexOf(o)!=-1){if(s=="colorpicker")o.av(m,l,x,a);return}var G=this.vB.length-1;
if(G>=0)n.RY(this.vB[G].m,"wdisabled");this.m.appendChild(o.m);this.vB.push(o);this.G5(o);o.av(m,l,x,a)};
aD.prototype.G5=function(s){var m=this.LP,l=this.vp,x=s.u1(m,l),a;if(x!=null){a=x}else{x=new fz(0,0);
a=s.aj0();if(a==null){var P=this.vB.indexOf(s)+1;if(m<450||l<450)a=new fz(0,0);else a=new fz(P*150,P*150)}}s.m.style.left=a.x+"px";
s.m.style.top=this.m.offsetTop+a.y+"px";s.jm(this.LP-x.x*2,this.vp-x.y*2-34)};aD.prototype.L8=function(s,m){this.bR=s;
for(var C=0;C<this._x.length;C++)this._x[C].L8(s,m)};aD.prototype.Bt=function(s){var m=this.vB.pop();
this.m.removeChild(m.m);var l=this.vB.length-1;if(l>=0)n.po(this.vB[l].m,"wdisabled");if(this.q1.parentNode==this.m)this.m.removeChild(this.q1)};
window.onload=function(){document.body.appendChild(new d1().m)}}())