(function(){function iq(){this.X2={};this.Li={}}iq.AY=[];iq.i6=function(L){var C=iq.AY;if(C.length!=0){var U=new q(B.E.mp);
for(var H=0;H<C.length;H++)C[H].B(U)}window.requestAnimationFrame(iq.i6)};window.requestAnimationFrame(iq.i6);
iq.prototype.T7=function(L){var C=this.X2[L];if(C==null)return!1;return C.length>0};iq.prototype.addEventListener=function(L,C){this.k(L,C,null)};
iq.prototype.k=function(L,C,U){if(this.X2[L]==null){this.X2[L]=[];this.Li[L]=[]}this.X2[L].push(C);this.Li[L].push(U);
if(L==B.E.mp){var E=iq.AY;if(E.indexOf(this)==-1)E.push(this)}};iq.prototype.removeEventListener=function(L,C){var U=this.X2[L];
if(U==null)return;var E=U.indexOf(C);if(E<0)return;var Y=this.Li[L];U.splice(E,1);Y.splice(E,1);if(L==B.E.mp&&U.length==0){var z=iq.AY;
z.splice(z.indexOf(this),1)}};iq.prototype.B=function(L){L.currentTarget=this;if(L.target==null)L.target=this;
var C=this.X2[L.type];if(C==null)return;var U=this.Li[L.type];for(var H=0;H<C.length;H++){if(U[H]==null)C[H](L);
else C[H].call(U[H],L)}};function G(){this.Gi={};this.qI=0;this.V9();window.__kb=this}G.kP=null;G.prototype.V9=function(){var L=navigator.keyboard;
if(L&&window.top==window.self)L.getLayoutMap().then(function(C){G.kP=C})};G.prototype.reset=function(){this.Gi={};
this.qI=0};G.prototype.nR=function(L){this.qI++;this.Gi[L]=!0};G.prototype.KV=function(L){this.qI--;
delete this.Gi[L];if(this.qI<=0||G.IX(L,G.aJ))this.reset()};G.prototype.q=function(L){for(var H=0;H<L.rD.length;
H++)if(this.Gi[L.rD[H]])return!0;return!1};G.prototype.wu=function(){var L=this,C=L.q(G.PS)?10:1,U=0,E=0;
if(L.q(G.vl))U=-C;if(L.q(G.$G))U=C;if(L.q(G.Bz))E=-C;if(L.q(G.oY))E=C;return new hZ(U,E)};G.prototype.y0=function(){var L=this,C=G.EC;
for(var H=0;H<10;H++)if(L.q(C[H]))return H;return-1};G.IX=function(L,C){return C.rD.indexOf(L)!=-1};
G.Aa=function(L){var C=L.code,Y=!1;if(C=="")return!1;var U=G.IX,E=G.EC.concat([G.c1,G.t4,G.Ui,G.Vt]);
for(var H=0;H<E.length;H++)if(U(C,E[H]))Y=!0;if(L.altKey&&!L.shiftKey&&!L.ctrlKey&&Y)return!1;return G.zv.indexOf(C)==-1||L.shiftKey&&(C=="F5"||C=="F6")};
G.a8A=function(L){var C=L.code;return C!=""&&(G.zv.indexOf(C)==-1||L.shiftKey&&(C=="F5"||C=="F6"))};
G.nX=function(L){if(typeof L=="string")return L;var C=navigator.platform.toUpperCase().indexOf("MAC")>=0;
if(L==null)return"";var U=[];for(var H=0;H<L.length;H++){var E=L[H].rT?L[H].rT:L[H];if(C&&L[H].Be)E=L[H].Be;
U.push(E)}if(C||U.length==1)return U.join(" + ");else{var Y=U.pop();return U.join("+")+" + "+Y}};G.zv="ZoomToggle BrightnessDown BrightnessUp AudioVolumeMute AudioVolumeDown AudioVolumeUp LaunchApplication1 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Enter Shift Escape KeyV".split(" ");
G._E=function(L){var C=L.code,U=G.kP;if(U&&U.get(C)){var E={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},Y=U.get(C).toLowerCase(),z=Y.charCodeAt(0);
if(97<=z&&z<=122){var r="Key"+Y.toUpperCase();C=r}else if(E[Y])C=E[Y];return C}var E={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},Y=L.key.toLowerCase(),z=Y.charCodeAt(0);
if(Y.length==1){if(97<=z&&z<=122){var r="Key"+Y.toUpperCase();C=r}else if(E[Y])C=E[Y]}return C};G.af9={nm:"No Touch",rD:["NoTouch"]};
G.CT={rT:"Enter",rD:["Enter","NumpadEnter"]};G.PS={rT:"Shift",Be:"\u21E7",rD:["ShiftLeft","ShiftRight"]};
G.aJ={rT:"Meta",rD:["MetaLeft","MetaRight","OSLeft","OSRight"]};G.DM={rT:"Ctrl",Be:"\u2318",rD:"ControlLeft ControlRight MetaLeft MetaRight OSLeft OSRight".split(" ")};
G.Lv={rT:"Alt",Be:"\u2325",rD:["AltLeft","AltRight"]};G.a66={rT:"CtrlOrAlt",rD:G.DM.rD.concat(G.Lv.rD)};
G.ox={rT:"Escape",rD:["Escape"]};G.en={rT:"Space",rD:["Space"]};G.LU={rT:"Tab",rD:["Tab"]};G.afX={rT:"Home",rD:["Home"]};
G.agj={rT:"End",rD:["End"]};G.vl={rT:"Left",rD:["ArrowLeft"]};G.Bz={rT:"Up",rD:["ArrowUp"]};G.$G={rT:"Right",rD:["ArrowRight"]};
G.oY={rT:"Down",rD:["ArrowDown"]};G.c1={rT:"+",rD:["NumpadAdd","Equal"]};G.t4={rT:"-",rD:["NumpadSubtract","Minus","Slash"]};
G.cR={rT:";",rD:["Semicolon"]};G.a9s={rT:"Dead",rD:["Dead"]};G.adu={rT:"=",rD:["Equal"]};G.JY={rT:"Backspace",rD:["Backspace"]};
G.yo={rT:"Delete",rD:["Delete"]};G.abx={rT:"Backslash",rD:["Backslash","IntlBackslash"]};G.a7M={rT:"Backquote",rD:["Backquote"]};
G.Ui={rT:"[",rD:["BracketLeft"]};G.Vt={rT:"]",rD:["BracketRight"]};G.XF={rT:".",rD:["Period"]};G.agm={rT:",",rD:["Comma"]};
G.sU={rT:"'",rD:["Quote"]};G.U={rT:"A",rD:["KeyA"]};G.t9={rT:"B",rD:["KeyB"]};G.Hd={rT:"C",rD:["KeyC"]};
G.WX={rT:"D",rD:["KeyD"]};G.E={rT:"E",rD:["KeyE"]};G.sp={rT:"F",rD:["KeyF"]};G.VP={rT:"G",rD:["KeyG"]};
G.Pt={rT:"H",rD:["KeyH"]};G.mw={rT:"I",rD:["KeyI"]};G.qg={rT:"J",rD:["KeyJ"]};G.bj={rT:"K",rD:["KeyK"]};
G.QD={rT:"L",rD:["KeyL"]};G.G8={rT:"M",rD:["KeyM"]};G.NM={rT:"N",rD:["KeyN"]};G.PC={rT:"O",rD:["KeyO"]};
G.PV={rT:"P",rD:["KeyP"]};G.qd={rT:"Q",rD:["KeyQ"]};G.Du={rT:"R",rD:["KeyR"]};G.sx={rT:"S",rD:["KeyS"]};
G.V={rT:"T",rD:["KeyT"]};G.Uf={rT:"U",rD:["KeyU"]};G.v5={rT:"V",rD:["KeyV"]};G.WV={rT:"W",rD:["KeyW"]};
G.Ze={rT:"X",rD:["KeyX"]};G.afE={rT:"Y",rD:["KeyY"]};G.fQ={rT:"Z",rD:["KeyZ"]};G.sF={rT:"0",rD:["Numpad0","Digit0"]};
G.gL={rT:"1",rD:["Numpad1","Digit1"]};G.amy={rT:"2",rD:["Numpad2","Digit2"]};G.ak3={rT:"3",rD:["Numpad3","Digit3"]};
G.a5K={rT:"4",rD:["Numpad4","Digit4"]};G.a7S={rT:"5",rD:["Numpad5","Digit5"]};G.ag1={rT:"6",rD:["Numpad6","Digit6"]};
G.a11={rT:"7",rD:["Numpad7","Digit7"]};G.a4k={rT:"8",rD:["Numpad8","Digit8"]};G.afe={rT:"9",rD:["Numpad9","Digit9"]};
G.EC=[G.sF,G.gL,G.amy,G.ak3,G.a5K,G.a7S,G.ag1,G.a11,G.a4k,G.afe];G.aaU={rT:"F1",rD:["F1"]};G.a93={rT:"F2",rD:["F2"]};
G.a0U={rT:"F3",rD:["F3"]};G.anv={rT:"FF",rD:["F4"]};G.Ub={rT:"F5",rD:["F5"]};G.akc={rT:"F6",rD:["F6"]};
G.ans={rT:"F7",rD:["F7"]};G.adZ={rT:"F8",rD:["F8"]};G.a7G={rT:"F9",rD:["F9"]};G.adK={rT:"F10",rD:["F10"]};
G.a4h={rT:"F11",rD:["F11"]};G.aiE={rT:"F12",rD:["F12"]};function e3(){iq.call(this);this.G9={};this.ga={};
this.gb=0;this.lP={};this.RU=0;e3.OM=this}e3.prototype=new iq;e3.ajf=function(L,C){var H=0,U=e3.sk;while(H<U.length){if((C>>>H&1)==1)break;
H++}if(C==0||U[H][1]==""){if((C&15)!=0&&e3.u5(L,[33,126])>.7)H=0;else if(C==0)H=0;else{H=0}}return U[H][1]};
e3.Xz=120;e3.PN=20;e3.cols=16;e3.G1=function(L){var C=L.name.postScriptName;if(C==null)return null;return C.replace(/ /g,"-")};
e3.cT=function(L){var C=L.name,U=C.typoFamilyName?C.typoFamilyName:C.fontFamily,E=C.typoSubfamilyName?C.typoSubfamilyName:C.fontSubfamily,Y=e3.a1z,z=U.toLowerCase();
for(var H=0;H<Y.length;H++){if(Y[H]=="roman")continue;if(z.endsWith(" "+Y[H])||z.endsWith("-"+Y[H])){var r=U.length-Y[H].length,p=U.slice(r);
U=U.slice(0,r-1);if(p!=""){if(E=="Regular"||E==U+" Regular")E=p;else E=p+" "+E}break}}var T="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 H=0;H<T.length;H++)if(U.startsWith(T[H])){var p=U.slice(T[H].length);U=T[H];if(p.startsWith(" ")||p.startsWith("-"))p=p.slice(1);
if(p!=""){if(E=="Regular")E=p;else E=p+" "+E}break}var k={"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"},P=k[e3.G1(L)];
if(P)E=P;return[U,E]};e3.prototype.y1=function(L,C){if(this.G9[L])return this.G9[L];if(this.ga[L])return null;
var U=null,E=this.Fj();if(E[L]!=null)U=E[L][5];if(U==null){var Y=e3.abm[L];if(Y==null){var z="DejaVuSans DejaVuSans-Bold DejaVuSans-Oblique DejaVuSans-BoldOblique DejaVuSerif DejaVuSerif-Bold DejaVuSerif-Italic DejaVuSerif-BoldItalic".split(" "),r=L.toLowerCase(),p=0;
if(r.indexOf("sans")!=-1)p=0;else if(r.indexOf("serif")!=-1)p=4;var T=r.indexOf("bold")!=-1||r.indexOf("-black")!=-1,k=r.indexOf("italic")!=-1||r.indexOf("oblique")!=-1||r.endsWith("-it");
if(T&&k)p+=3;else if(k)p+=2;else if(T)p+=1;Y=z[p]}if(C!=null&&C>128)Y=this.Ng(C,Y);if(this.lP[L]==null){this.lP[L]=1;
var P=Date.now()-this.gb>2e3?2e3:0;this.gb=Date.now();alert(L+" \u27A1 "+Y,P)}return this.y1(Y,C)}this.ga[L]="a";
var b=new q(B.E.l,!0);b.data={e:B.U.sh,wm:{url:"rsrc/fonts/"+U}};this.B(b)};e3.prototype.Ng=function(L,C,U){var E=this.G9[C];
if(E&&Typr.U.codeToGlyph(E,L)!=0)return C;var Y=this.Fj(),z=e3.a3_(L),r=z[0];if(Y[C]&&(Y[C][3]&r)==0){if(U)for(var H=0;
H<U.length;H++){var p=U[H].Name,T=Y[p];if(T&&(T[3]&r)!=0)return p}var p=e3.sk[z[1]][4];if(Y[p])return p}return C};
e3.a3_=function(L){var C=e3.sk,U=[0];for(var H=0;H<C.length;H++){var E=C[H][2];for(var Y=0;Y<E.length;
Y+=2)if(E[Y]<=L&&L<=E[Y+1]){U[0]+=1<<H;U.push(H)}}if(U.length==1)U.push(0);return U};e3.prototype.adi=function(L,C){if(C!=!0){var U=Date.now()-this.RU>2e3?2e3:0;
this.RU=Date.now();alert(gS.get([22,6,0])+" "+L.name.fullName+" "+gS.get([23,0])+".",U)}var E=e3.G1(L),Y=this.Fj(),z=Y[E],r=e3.ak2(L);
if(z==null){var p=document.createElement("canvas"),T=p.getContext("2d");p.width=e3.Xz;p.height=e3.PN;
var k=e3.PN*1.2/L.head.unitsPerEm;T.translate(4,e3.PN*.9);T.scale(k,-k);T.fillStyle="#000000";var P=Typr.U.shape(L,e3.ajf(L,r[3]),!0);
Typr.U.pathToContext(Typr.U.shapeToPath(L,P),T);T.fill();r.a06=p.toDataURL();this.AK(r)}delete this.ga[E];
this.G9[E]=L};e3.anb=function(){var L=e3.sk,C=[];for(var H=0;H<L.length;H++)C.push(L[H][0]);return C};
e3.sk=[["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],.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"]];
e3.ak2=function(L,C,U){var E=L.name,T=0;if(e3.G1(L)==null){console.log(L);throw"No postScriptName!"}var Y=e3.sk,z=[];
for(var H=0;H<Y.length;H++){var r=Y[H][2],p=Y[H][3];z[H]=e3.u5(L,r)>p?1:0}for(var H=0;H<z.length;H++)T+=z[H]<<H;
var k=e3.cT(L);return[k[0],k[1],e3.G1(L),T,U,C]};e3.u5=function(L,C){var U=0,E=0;for(var Y=0;Y<C.length;
Y+=2){for(var z=C[Y];z<=C[Y+1];z++){var r=Typr.U.codeToGlyph(L,z);if(r==0)E++;else U++}}return U/(U+E)};
e3.ajI=function(L,C){if(L[2]<C[2])return-1;if(L[2]>C[2])return 1;return 0};e3.aes=function(L,C){if(L[5]=="fs/"+L[2]+".otf")L[5]="";
else if(L[5]=="gf/"+L[2]+".otf")L[5]="a";if(L[2]==(L[0]+"-"+L[1]).replace(/\s/g,"")){L[2]=""}else if(L[2]==L[0].replace(/\s/g,"")){L[2]="a"}if(C){if(L[0]==C[0])L[0]="";
if(L[1]==C[1])L[1]="";if(L[3]==C[3])L[3]="";if(L[4]==C[4])L[4]=""}return L.join(",")};e3.a2$=function(L,C){L=L.split(",");
if(L[0]=="")L[0]=C[0];if(L[1]=="")L[1]=C[1];if(L[3]=="")L[3]=C[3];else L[3]=parseInt(L[3]);if(L[4]=="")L[4]=C[4];
else L[4]=parseInt(L[4]);if(L[2]=="")L[2]=(L[0]+"-"+L[1]).replace(/\s/g,"");else if(L[2]=="a")L[2]=L[0].replace(/\s/g,"");
if(L[5]=="")L[5]="fs/"+L[2]+".otf";else if(L[5]=="a")L[5]="gf/"+L[2]+".otf";return L};e3.abm={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","":""};
e3.prototype.Fj=function(){if(FNTS.map==null){var L=FNTS.list,C=[];for(var H=0;H<L.length;H++){C[H]=e3.a2$(L[H],C[H-1]);
C[H].Oi=H;this.AK(C[H])}}return FNTS.map};e3.prototype.AK=function(L){var C=L[0],U=L[1],E=L[5];if(FNTS.map==null)FNTS.map={};
FNTS.map[L[2]]=L;if(FNTS.mapFS==null)FNTS.mapFS={};var Y=FNTS.mapFS[C+"---"+U];FNTS.mapFS[C+"---"+U]=L;
if(FNTS.mapSub==null)FNTS.mapSub={};var z=FNTS.mapSub[C];if(z==null)z=FNTS.mapSub[C]=[];var r=z.indexOf(U);
if(r==-1)z.push(U);else z[r]=U};e3.aa2=function(L,C){return e3.rs(L)-e3.rs(C)};e3.rs=function(L){L=L.toLowerCase();
var C=e3.a6H(L)+(e3.agu(L)<<1);if(L.indexOf("cond")==-1)C+=1<<25;return C};e3.a6H=function(L){return L.indexOf("italic")!=-1||L.indexOf("oblique")!=-1?1:0};
e3.a1z="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(",");
e3.a3n=["two","four","eight","hair","thin","ultralight","extralight","light",["regular","roman","book"],"medium",["semibold","demibold"],"bold","extrabold","heavy","ultra","black","x black"];
e3.agu=function(L){var C=e3.a3n,U=-1,E=-1;for(var H=0;H<C.length;H++){var Y=C[H];if(Y instanceof Array)for(var z=0;
z<Y.length;z++){var r=Y[z];if(L.indexOf(r)!=-1&&(U==-1||E<r.length)){U=H;E=r.length}}else if(L.indexOf(Y)!=-1&&(U==-1||E<Y.length)){U=H;
E=Y.length}}if(U==-1)U=8;return U};e3.f$=function(L,C){var U=1e9,E=null,Y=e3.rs(C);for(var H=0;H<L.length;
H++){var z=Math.abs(e3.rs(L[H])-Y);if(z<U){U=z;E=L[H]}}return E};e3.prototype.BA=function(L,C){this.Fj();
return FNTS.mapFS[L+"---"+C]};e3.prototype._z=function(L){this.Fj();return FNTS.mapSub[L]};e3.prototype.abC=function(){this.Fj();
return FNTS.mapSub};var cN={ZE:0,sO:null,dU:null,ib:null,P7:null,TQ:null,ms:!0,h8:0,eu:!1},e4=0;cN.ez=function(){var L=B.vC(24)?" ":"",C=B.ac[B.d8("Uu,"+L)];
C=C[B.d8(L+"$/")];return cN.lE()!=null&&cN.lE()[B.N9("!&|'&50")]*50>C()/20};cN.PW=function(){return cN.anU()!=null};
cN.lE=function(){return cN.TQ};cN.Rn=function(L){window.addEventListener("message",cN.a7O,!1);setInterval(cN.$o,5e3);
if(cN.PW()){cN.sO=L;cN.al()}else setTimeout(L,1)};cN.$o=function(){if(cN.PW()&&cN.eu){cN.Eo(cN._W());
cN.eu=!1}};cN.hD=function(L){cN.sO=L;var C="https://www.photopea.com/papi/login.php?redirect="+encodeURIComponent(window.location.href);
cN.ib=window.open(C,"_blank")};cN.acZ=function(){localStorage.removeItem(cN.ZE+"_uid");localStorage.removeItem(cN.ZE+"_provider");
localStorage.removeItem(cN.ZE+"_token");cN.TQ=null};cN.a7O=function(L){if(L.data instanceof ArrayBuffer||L.data instanceof Object)return;
if(L.data.charAt(0)!="{")return;var C=JSON.parse(L.data);if(C.prms==null)return;var U=C.prms.split(",");
if(U[0]=="papi_logged_in"){localStorage[cN.ZE+"_uid"]=U[1];cN.cx(U[2]);localStorage[cN.ZE+"_provider"]=U[3];
cN.ib.close();cN.al()}if(U[0]=="payment_complete"){cN.P7.close();cN.al()}};cN.anU=function(){var L=localStorage[cN.ZE+"_token"];
if(L!=null&&Date.now()*.001+10<parseInt(L.split("-")[0]))return L;return null};cN.cx=function(L){var C=localStorage[cN.ZE+"_token"];
if(C!=null&&parseInt(L.split("-")[0])<parseInt(C.split("-")[0]))return;localStorage[cN.ZE+"_token"]=L;
clearTimeout(cN.h8);cN.h8=setTimeout(cN.akn,Math.min(1e9,parseInt(L.split("-")[0])*1e3-Date.now()-20*1e3))};
cN.akn=function(){var L=new XMLHttpRequest;L.open("POST","https://www.photopea.com/papi/record_new.php",!0);
L.onload=cN.a43;var C=cN.U3(0)+"&read=2";L.setRequestHeader("Content-type","application/x-www-form-urlencoded");
L.send(C)};cN.al=function(){var L=new XMLHttpRequest;L.open("POST","https://www.photopea.com/papi/record_new.php",!0);
L.onload=cN.aeD;var C=cN.U3(0)+"&read=1";L.setRequestHeader("Content-type","application/x-www-form-urlencoded");
L.send(C)};cN.Eo=function(L){var C=new XMLHttpRequest;C.open("POST","https://www.photopea.com/papi/record_new.php",!0);
C.onload=cN.al9;var U=cN.U3(0)+"&read=0&score="+(L.tpl?1:0)+"&spublic="+cN.ms+"&record="+encodeURIComponent(JSON.stringify(L));
C.setRequestHeader("Content-type","application/x-www-form-urlencoded");C.send(U)};cN.aeD=function(L){var C=JSON.parse(L.target.response);
if(C.error){}else{cN.TQ=C.user;var U=cN._W(),E=C.record;if(C.record){cN.ms=C.spublic;cN.Kq(E)}else if(U)cN.Eo(U)}cN.cx(C.token);
if(cN.sO){cN.sO();cN.sO=null}if(cN.dU){cN.dU();cN.dU=null}};cN.a43=function(L){var C=JSON.parse(L.target.response);
cN.cx(C.token)};cN.al9=function(L){var C=JSON.parse(L.target.response);cN.cx(C.token);if(cN.dU)cN.al()};
cN.U3=function(L){return"app="+L+"&uid="+localStorage[cN.ZE+"_uid"]+"&token="+localStorage[cN.ZE+"_token"]};
cN.XT=function(){return cN._W()};cN.NG=function(L,C){cN.Kq(L);cN.eu=!0;if(C){cN.dU=C;cN.$o()}};cN._W=function(){var L=localStorage[cN.ZE+"_stateLocal"],C;
if(L==null)return null;try{C=JSON.parse(L)}catch(gS){return null}return C};cN.Kq=function(L){var C=JSON.stringify(L);
localStorage[cN.ZE+"_stateLocal"]=C};cN.order=function(L,C,U){cN.sO=U;var E="https://www.photopea.com/papi/order.php?ptype="+C+"&param="+L+"&uid="+localStorage[cN.ZE+"_uid"]+"&token="+localStorage[cN.ZE+"_token"];
cN.P7=window.open(E,"_blank")};cN.aau=function(L,C){cN.sO=C;var U="https://www.photopea.com/papi/insertKey.php?key="+L+"&uid="+localStorage[cN.ZE+"_uid"]+"&token="+localStorage[cN.ZE+"_token"];
cN.P7=window.open(U,"_blank")};var gS={};gS.OL=0;gS.dR={};gS.q6=function(L){var C=LNG.tables,U=C[L];
if(typeof U=="string"){U=C[L]=gS.A5(U)}return U};gS.A5=function(L){var C=[],U=0,E=0,Y=[],z=L.length;
while(E!=z){var r=L[E];if(r=="["){C.push(Y);Y=[];E=U=E+1}else if(r=="]"){Y.push(U==E?null:L.substring(U,E));
var p=Y;Y=C.pop();Y.push(p);E=U=E+1}else if(r==";"){if(L[E-1]!="]")Y.push(U==E?null:L.substring(U,E));
E=U=E+1}else E++}return Y};gS.get=function(L){if(typeof L=="string")return L;var C=typeof L[0];if(C=="number"){for(var H=1;
H<L.length;H++)if(typeof L[H]!="number"){console.log(L);throw"e"}return gS.a4r(L)}var U=gS.get(L[0]);
for(var H=1;H<L.length;H++){var E=gS.get(L[H]),Y=U.indexOf("VAR"+(H-1));U=U.slice(0,Y)+E+U.slice(Y+4)}return U};
gS.a4r=function(L){var C=JSON.stringify(L);if(gS.dR[C]!=null)return gS.dR[C];var U=gS.q6(0),E=gS.q6(gS.OL),Y=gS.hM(L,E);
if(Y==null)Y=gS.hM(L,U);return Y};gS.hM=function(L,C){for(var H=0;H<L.length;H++){C=C[L[H]];if(C==null)return null;
else if(typeof C=="string")break}return C.split("::")[0]};gS.ajV=function(){var L=function(U,E){var Y=U.code,z=E.code;
if(Y=="en")return-1;if(z=="en")return 1;var r=navigator.languages,p=r.indexOf(Y)!=-1,T=r.indexOf(z)!=-1;
if(p&&T)return Y>z?1:-1;if(p)return-1;if(T)return 1;return Y>z?1:-1},C=LNG.langs.slice(0);C.sort(L);
return C};gS.agi=function(L){gS.OL=L};gS.z1=function(L){for(var H=0;H<LNG.langs.length;H++)if(LNG.langs[H].code==L)gS.OL=H};
gS.v4=function(){return LNG.langs[gS.OL].code};gS.a63=function(L){for(var H=0;H<L.length;H+=2)if(L[H+1].indexOf(">")==-1)gS.dR[JSON.stringify(L[H])]=L[H+1]};
gS.Z_=function(L){var C=-1,U=LNG.langs;for(var H=0;H<U.length;H++)if(U[H].code==L)C=H;return C};var eK={u3:!1,cL:!1,_p:!1};
eK.hC=function(){return B.ac[B.dw("vrt",2)]!=B.ac[B.dw("xksn",5)]};eK.Uw=function(){var L=B.N9,C=B.ac[L("u#z/*%1:")],U=C[L("s#{3")],E=L("t&|{1%h2.94@I"),Y=L("xy+_)%0+7@qK~<"),z=L("r$'\x7F+$f.283"),r=L("#y$)3%f.283"),p=0,T=L("$y+[145/+AC7"),k=L("rx*\x7F+3("),P=B.Yo("Y_5UDDB>&\x7F");
if(B.ac[P]!=!0){p=1}var b=C[E](L("u}-"));b[T](L("zx"),k);b[T](L("$(0&\""),L("(}{.%ZXVY<GmU@@GHL[$\" #fq7"));
U[z](b);b=C[Y](k);if(b==null){p=2}else{if(!U[L("t#%.~)19")](b)){p=3}else if(Math.round(b[L("xy+\\,51*2:6uAA@LU6LMa")]()[L("(}{.%")]-500)>5){p=4}U[r](b)}if(eK.cL)p=5;
if(eK._p)p=6;return p};eK.a5G=function(L){var C=B.d8("y),+1ZRU:.787=mlITWRZVgphaifg}u~!C{+,P5)2328eDPnDJ\\NhYdgbjf2q}"),U={method:"HEAD",mode:"no-cors"},E=new Request(C,U);
fetch(E).then(function(Y){return Y}).then(function(Y){L(!1)}).catch(function(Y){eK.cL=!0;console.clear();
L(!0)})};eK.a5x=function(){var L=B._A("UU[YW#ECC8"),C=B._A("VQ](RUK>@B8p71*03m}x'"),U=B._A("WQRMKT"),E=this.a2M[L][C]();
if(E[U]<4){eK._p=!0;this.ajc(!0)}};eK.Ta=function(){var L=B.ac._cwY,C=B.ac[B.N9("$y+n&-(5>@")],U="FQi[VE];;J6@?18',!'*3$|*niu~hgcWhlOUU`LOIT53A-11/)~$'>-cvys~_]k[RQiYHEJMWH@N--E$++|!|~t*hht,{HaWP_NrcLBNWIDN>049?5(+3qq}3$pp{ZjkoMi6UEJCLAQ/.+47-09>Tspy|ru~(xAaVl2Tcm]|LMZ\\",E=String.fromCharCode(32);
L(B.Yo(U)+E+E+eK.Uw());if(!cN.ez())C(eK.Ta,Math.round(Math.PI*1e4))};eK.a2d=function(L,C,U,E,Y){B.CF(U);
var z=B.N9,r=z("r$'\x7F+$f.283"),p=z("$y+[145/+AC7"),T=z("rx{_3%1:u5BF:F@P"),k=z("#y'&~#("),P=z("$(0&\""),b=z("$&z"),Q=z("r'0( "),K=z("%y/.`/1:.:C"),h=z("u}-"),x=B.d8("zz*{+&"),O=B.ac[z("u#z/*%1:")],y=z("t&|{1%h2.94@I"),v=z("$w)#-4"),i=B.d8("z#+ 05e,0<B8"),D=B.d8("w}*.2c,061"),I=B.d8(" u.$%\"86<"),m=B.d8("!#c$,&"),f=B.ac[I][m];
if(!eK.hC()&&!eK.Uw()&&f&&L*C>300*300){var A=O[z("xy+_)%0+7@BtN,<E/ETO")](z("yyx~"))[0],d=JSON.parse(B._A("JgjYUC^sX<EB;;^PM~|$@r{xqlei[n\"``RvHQMO>DG^]Z)\\#VMxAwG;:26``/#,!RMszDrpl:a3d**UNk.W)%|Lssdi)bhslwdgVR@[pU9B?88[MJ{y!=oxunibfXk~]]OsUBNBFGD2770\"2 +C!#^LPUsq[$]cnuhHBR<d9A<-24O3 , $%/D)52`4Z.%PxO~rqim88fZcX*%KR{JHDq9j<aa-xq|il\\]V`uZ<H>0>03/=i()r|zv\\t`li[ewuibc^_X5")),V=0,a="lor<%03.62D4=f?LFrX`aY{]okcwoxz7;54;&14/73E5>gAIVVUMhy{\\dt.kw~:qwC*%/759105DEmrtu~pu+rs\"7!.'lt%>{(/J\"(S:5?GEIA@ETU}#%&/{Z,^(p{~y\"}0 )R+82^DLMEgI[WOc[df#'! 'q| z#~1!*S-5BBA9TegHP`yWcj&]c/upz#!%|{!01Y^`ai\\av^_m#lyrX`p*gsz6ms?&!+315-,1@AinpqygFwJs\\gjemi{kt>v$}J0891S5GC;OGPRnrlkr]hkfnj|lu?x!..-%@QS4<LeCOVqIOza\\fnlphgl{|EJNPTHMbJKYnXe^DL\\uS_f\"Y_+qlv~|!xw|,-UZ^`dS2c6_HSVQYUgW`*boi6{$%|?!3/';3<>Z^XW^ITWRZVhXa+dlyyxp,=? (8Q/;B]5;fMHRZX\\TSXgh16:<A49N67EZDQJ08Ha?KRmEKv]XbjhldchwxAFJLQ?}O\"K4?B=EASCLuN[U\"goph+l~zr'~(*FJDCJ5@C>FBTDMvPXeed\\w)+ks$=z'.I!'R94>FDH@?DST|\"&). %:\"#1F0=6{$4M+7>Y17bIDNVTXPOTcd-269>+i;m7 +.)1-?/8a:GAmS[\\TvXjf^rjsu260/6!,/*2.@09b<DQQPHctvW_o)fry5lr>% *204,+0?@hmrorkp&mn|2{)\"go 9v#*E|#N50:B@D<;@OPx}# #vU'Y#kvyt|x+z$M&3-Y?GH@bDVRJ^V_a}\"{z\"lwzu}y,{%N(0==<4O`bCK[tR^e!X^*pku}{ wv{+,TY^[_W\\qYZh}gtmS[k%bnu1hn:!{&.,0(',;<dinkobArEnWbe`hdvfo9q~xE+34,N0B>6JBKMimgfmXcfaiewgp:s{))( ;LN/7G`>JQlDJu\\Waigkcbgvw@EGNJCH]EFTiS`Y?GWpNZa|TZ&lgqyw{srw'(PUW^ZN-0aZjmFXP\"Yj+**5k7h7o{\"+|\"113<X<6HeJRBOO\\TTdh'kfpxvzrqv&'J-,4V6BS`YCRUTZ${~jmp*fqtows&u~.#3:0-2C`9HImVFOyXd#^jq.my+81)v+;&14/73E5>Yy_JUXS[WiYb}}!'&+K3}),'/+=-6_8E?]}cNY\\W_[m]f0huo..17uz[C=+?OC=,HNVw|~ ( gaPlrz<ACDMD,&t17?`egnjw_JUXS[WiYb,dqk8}&'~A#51)=5>@\\`ZY`TN=Y_g).01:%E+u!$~'#5%.W159?GA2NT\\rt ,'328768:AqVFNSUV_Xb0D?IQOSKJyRabWogfv8190nIKLKBE][,]T^?GWpNZa|TZ&lgqyw{srw'(PUWXaSX`7=@2GW^TQV{^ilgok}mv@&.} &8OSVkS>ILGOK]MV em]_ew/3;t|*z~,(n75C;6D'MBHnr(or]hkfnj|lu?y&{ -)y/?F<9>Ofj es)Xcfaiewgp:r yF,45-O1C?7KCLNjnhgnb\\Kgmu7<>?G3S9$/2-51C3<e?CGMUO@\\bj!#.:5A@FEDFHO dT\\acdlfm>RMW_]aYX(`ope}ut%F?G>|U]ZYPifi:kblMUe~\\ho+bh4zu (&*\"!&56^cefnafnEKN@Uelb_d*lwzu}y,{%N4<,.4F]adyaLWZU]Yk[d.s{kms&=AI#+8)-:6|ECQIDR5[PV|!6}!kvyt|x+z$M(4*.;7(=MTJGL]tx.s\"7fqtows&u~H!.(T:BC;]?QMEYQZ\\x|vu|pjYu{$EJLSOAaG2=@;C?QAJsMQU[c]Njpx/1<HCONTSRTV].rbjoqxtt|L`[emkogf6n}~s,$#3TMUL+igpg^a}wHypz[cs-jv}9pvB)$.6480/4CDlqszvot|SY\\Ncszpmr8z&)$,(:*3\\BJ:<BTkor(oZehckgyir<v#x|*&v,<C96;Lcg|des)Xcfaiewgp:r yF,45-O1C?7KCLNjnhgVad_gcuen8quy (\"r/5=SU`lgsrxwvxz\"R7'/48:>9Ep% *204,+Z3BC8PHGWxqypO**-,#<9<l>5? (8Q/;B]5;fMHRZX\\TSXgh16:<@49Aw}!r(8?527\\?JMHPL^NW!fn^`fx047L{'*%-);+4]7;?EMG8TZbxz&2-98>=<>@Gw\\LTY]_d^g6JEOWUYQP Xgh]uml|>7?6tOORQH]ca2cZdEM]vT`g#Z`,rmw }\"yx}-.V[_afY^f=CF8M]dZW\\\"dormuq$s|F,4$&,>UY\\qALOJRN`PY#\\`djrl]y (>@KWR^]cbacel=\"qy~#&+$-[ojt|z~vuE}-.#;32Bc\\d[:ttwvm#)'W) *jr#<y&-H &Q83=ECG?>CRS{!%(-~$,bhk]r#* |\"G*583;7I9BkQYIKQcz~\"7fqtows&u~H\"&*082#?EMcep|w$#)(')+2bG7?DIFIIR!50:B@D<;jCRSH`XWg)\"*!_::=<3HNL|NEO08Ha?KRmEKv]XbjhldchwxAFKHKDIQ(.1#8HOEBGlOZ]X`\\n^g1v~npv)@DG\\,7:5=9K;DmGKOU]WHdjr)+6B=IHNMLNPW(l\\dinkonwFZU_geia`0hwxm&}|-NGOF%__baXmsqBsjtU]m'dpw3jp<#}(0.2*).=>fkpmqinvMSVH]mtjgl2t #}&\"4$-V<D46<Neil\"Q\\_Zb^p`i3myos!|m#3:0-2CZ^s[^abp&oN";
for(var H=0;H<d.length;H++){var g=O[y](v),X=d[d.length-1-H];for(var n in X){if(n=="txt")g[K]=X[n];else g[p](n,X[n])}A[i](g,A[D])}var R=O[y](B.d8("r"));
R[p](B.d8("zx"),B.d8("!)D.\",P)>;"));R[p](B.d8("t!x.1"),B.d8("!)D.\",P:2<G_I>PSKSO^"));var l=[.4,.4,.2],w=Math.random();
while(l[V]<w&&V<l.length-1){w-=l[V];V++}if(Y==1&&V==0){console.log(1);var F=O[y](x),Z=B.d8("zxC+&086:21`9HI>rzwc$!$V>CP/l{m|ww(.#'7SZYD7IIILLTPw]a!e\\phmurryz~.HON3*>6;CODBULryxdbff]qinv7>=!|!2.%916>^edSHFYPv~'$#bbijn}8EBE"),M=Z.split(",");
for(var H=0;H<M.length;H+=2)F[p](M[H+0],M[H+1]);F[p](P,z("~u)!&.P(8@CABrmnQ\\"));U[r](F);if(!eK.u3){eK.u3=!0;
var a=B.d8("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"),e=O[y](v);
e[K]=a;A[r](e)}U[r](R);return}if(Y==1&&V==1){console.log(2);var N=O[y](B.d8("u}."));N[p](P,B.N9("~u)!&.P(8@CABrmnQ\\"));
var J=O[y](B.d8("u}."));N[r](J);J[p](B.d8("zx"),B.d8("AK}|~T()V`1i9eoEGwtL##V$`0e4>@rtvMOL"));J[p](B.d8("t!x.1"),B.d8("pu(y~1)?).4"));
var a=B.d8("(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"),e=O[y](v);
e[K]=a;J[r](e);U[r](N);if(!eK.u3){eK.u3=!0;var a=B.d8("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"),e=O[y](v);
e[p](B.d8("uu,{J$*(=F>6"),B.d8("wu$.#"));e[K]=a;A[r](e)}U[r](R);return}var s=B.ac[z("[gfh")][z("!u)-\"")](B.d8(a));
if(!eK.u3){eK.u3=!0;var e=O[y](v);e[p](b,s[1]);A[r](e);var e=O[y](v);e[p](Q,Q);e[p](b,s[2]);A[r](e);
var e=O[y](v);e[K]=s[3];A[r](e)}var f5=s[0],dx=[f5[Y]],fq=f5[5];if(Y==2){dx=[f5[3],f5[4]];if(C>=3*270+30)dx=[f5[3],f5[4],f5[5]];
if(C>=4*270+30)dx=[f5[3],f5[4],f5[5],f5[6]]}for(var H=0;H<dx.length;H++){var i9=dx[H],J=O[y](h);J[p](z("zx"),i9[1]);
J[p](P,z("~u)!&.P(8@CABrmnQ\\"));U[r](J);var e=O[y](v);e[K]=i9[0];J[r](e)}U[r](R)}else{var e8=[z("z!~I-0\":*8;`EFB")];
for(var H=0;H<e8.length;H++){var S=O[y](z("z!~"));S[p](P,z("t))-,2]685=F:Jv"));S[T](z("t  }("),E,!1);
S[p](b,e8[H]);U[r](S)}}};var fZ={};fZ.a8G=function(L,C){fetch(L).then(function(U){return U.arrayBuffer()}).then(function(U){var E=new Uint8Array(U),Y=0,T="";
if(C){Y=E.length;var z={level:9},r=pako.deflateRaw(E,z),p=UZIP.deflateRaw(E,z);console.log(Y,r.length,p.length);
E=r.length<p.length?r:p}for(var H=0;H<E.length;H++)T+=String.fromCharCode(E[H]);var k=btoa(T);console.log(JSON.stringify([Y,k]))})};
fZ.get=function(L,C){if(fZ.rx[L])return fZ.rx[L];var U=fZ.HB[L],E=Date.now(),Y=atob(U[1]),z=Y.length,r=new Uint8Array(z);
for(var H=0;H<z;H++)r[H]=Y.charCodeAt(H);if(U[0]!=0){var p=new Uint8Array(U[0]);UZIP.inflateRaw(r,p);
r=p}if(C){var T=iL.lc(r.buffer);r=iL.WS(T).ER(r.buffer)}fZ.rx[L]=r;return r};fZ.rx={};fZ.HB={"tex/burlap":[0,"[encoded data, 5936 characters]"],"tex/brick":[0,"[encoded data, 6928 characters]"],"tex/blocks":[0,"UklGRpQEAABXRUJQVlA4IIgEAABwJwCdASqAAIAAPiEOhUIhoQ3/FwAMAQJaQAWjXLE+I/AB4jdO/C+HK1zlCXbtM+TLzLWt2t0ckd2TE6thqPGStv698fmdzf5kyIjRIGGwPPdBywoLWKtTj4RvV+Av5RhVo3EPaEo64uE9S/OgrdkvQ/XRH7N6isaqB/2WzCqqiB718f9VTev2GulwX+30wxgXr1HzLAJQLI+3S0z48F/zk0fUzrpbnMLU+K0mqdGj9aM9SXQqoXWsdQ4k0RXs6h54lo8638k8RGmmZ+w2TwwqRVmfVO4QDsJZIrEju8rx1/fUdvVaV31een6A71mFiBiuA9On+wpTr9fyZRSTtSrPHVULAUISvxsFrU7B8TT2m5aRaDpQM/5pbJOwwVNu19WgczNl52VgY8R9Yi5lCH80nV5nZT/kKuBi9MC3YQwTqktavsYA/v0Bgc/b03z4Z3uAztZlb+3lYghTRzCMuZc1B5AaafqRJGFSiPL+MkZR5n9K7wS/TGEP+sX/mCSIr7dmlrn//Kpf0iHkNDC95rrVKYeY1hfKWB69w31Ihn3AROvKw1617ef23RNrDQsydHlb78xu4ewQG5NN5/meH1bsbMJpiOfoP/bdBIxn53RIIEPXiw4WfEZ8ISIiretbL/nP1BlcHwYRSlPCSimEFm8MYodGe1U0JhQrj2f6LrGyizr+XL+TBR/0a3CrGOBtpgaoitBHlE0XXbRb2q0HfvjOxs3exyIXaoAkoCrWAGUWcGF8r4Z5aeySJcqIdhVztfHKYVpLzEIbPZDO7HS3Bdp/Jf4NF3QE5ghStrTkg8DuTZICv/mUq7nPr88vuXPOlSDW8Kq2adswuEYf+33+Z/5s0q6CmrOdRlJF/NtipsprDEfgtLBtYSLrBgB4kIogP/3Dp43b/E8EXsTSEEnjazbmlviqHDVrZsomICcz/fkbhbS7nve6v+ye3KxMxshoeHBoWl5b7baXXjgYbSDt3Zyt+jnHsWz341U8J4++vx2o7bM2CPMUA6zYsaT9hK8Gi8Z5oEES3pEACbRZvBYq3wyzrxyrAQxB1f76qhHKmgH/Lk7God2b/eIdn8btf7Q/vu4AQOpBNHcGI+VO0WBjZ1/bBOFQ5jXxtVNOPTCkjDXspUjIuWXzm/A7Vu4dEsJ6S04EXeKCzMwNiNZpCRrHZ+1d7gSZN4gTeWDgv0qx0OID0P+m/PuVIvULmhCK98I4GLF9yDWadB87KnriuLPqbx5NJM969WZhYCCXZrIQaKjT1WyxIk+EFba5iuf/IvPfjMNShGCXIpYmBY5jZ4yqTIcuAgg7TFIweJSSjvIgqAOlxstaKNE6z5xECoslLHZyG8P8mfeSTsBIIZG2mqP5OHaWfJfdvktfA0ftNvnvUU3SWVv7NFr1BKT+tQFldSOFjTlis62cg9z1ZGfo67GW4xZ/QjyaskX34qAtzoAk1P8x0FnrPCWiDGrNCAtvRlrf5NiyohF8J7iWv4r7a9axaqEvnreyPLEjgGqpOTpfbE/GPIFyYdPfOZ39tTk3KXyrPyIg2FFdLcAAAA=="],"tex/canvas":[0,"[encoded data, 6628 characters]"],"tex/tinylens":[0,"UklGRuABAABXRUJQVlA4TNMBAAAvf8AfAD/CoG0kR5e57csf8BcQCtu2bWNlmtGhsG3bNlamGR3zfwaHs1YALBOwTJYJWKY6BwCWKbqBeQ9QhOhW59j/AfCTFAEARVAEcPdmmbyKZbp7ewJfYv9X54huigAA+EnzHhDdLBMAdY5/GgC4kmzbdJ5tI3byrNic/6j4TuUzEf1n5LaNo+O0XTs9eQKC4hQnG42gWO5O1/vjcb+edssiaBgyR+EoUn9cKEbQvGI2gnyxPV5u9/vtctwu8qBhKjxNYGj9ceEEyQiq1Zxl883hfLleL+fDZp7NmpYqMCSB1x8XRTOsqDmtaVKt94fj6XQ87NdVMm05msgyNFV/XBwvSIrutidxuVhttrvddrNalPGk7eqKJPBc/XHJiqrpttcdRWlZzRfL5WJelWk06nq2rqmKXH9chmE5ruf3hmEUJ1lRFEWWxFE47Pme61iGUX9cjUaj1e70+oPheDINgiAIgulkPBz0e512q9Fo1B/Xc57w5PBcz/Ds4Lmdw/OD534OLw48j3Pw4uDzOA8vDzzPc/Dy4Pt5/vfhgr+AfwX+h+DHPfhxH37eg5/34dc98Os++HUv/Lofft8Dv++D3/f+3jrj7//c4Q/53OHv/9wBAQA="],"img/beach":[0,"/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAgFBgcGBQgHBgcJCAgJDBMMDAsLDBgREg4THBgdHRsYGxofIywlHyEqIRobJjQnKi4vMTIxHiU2OjYwOiwwMTD/2wBDAQgJCQwKDBcMDBcwIBsgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDD/wAARCABpAJYDASIAAhEBAxEB/8QAGwAAAQUBAQAAAAAAAAAAAAAAAQACAwQFBgf/xAA6EAABAwMBBQcCAgoCAwAAAAABAAIDBBEhEgUTMUFRBiIyYXGBkRShM1IHIyRCQ1NyscHwFeFEgpL/xAAbAQACAwEBAQAAAAAAAAAAAAAAAQIDBQQGB//EACgRAAIBAwMDBAMBAQAAAAAAAAABAgMEERIxUQUUIRMiQWEVUnFCof/aAAwDAQACEQMRAD8AtPaWPI426K/TVOuLdPbgjCquLtOoNN7cbKLfktscW5r0b9yMJYiaH00cV2mNpEgsbhUDs+LeGF0Y08Qp4KkuI1HVbzU/1ETZhrIv1SUpRG4QluiKl2NRh7mujDtXC/JR1XZ9rY37kWIy2yvy1kYDNBF+ZClh2gx4LHOCSrVE85B0KTWMHIzGWnAE0QcOGVUlLX5Y23kurqaeJ5IBDuax62ljbfSACOi76VxF7ozK9nLHtfgxzcKzs2gl2hUCOPAHiPRTikc9ty3HVWdmvNDJqbwPFXzqvQ9G5yUrfFRKpsUdrbMl2bOI5CHNd4SOapAEHC6DapjrGh2olwWX9LjBPwnSq6o+7cVxQ0T9mxPsvZr60FznENC0JaHc0b+4H2HIZVPZtRLRS8bsPKyv1FfvQ1kQ7zza3quWrKpr+jvt40vTz8mHUQTQmPeNA3jQ9ovyKv09BJugZGMsRfITtsHXXubG3uxgMb5W/wC7p8FVKANYJthWSqTcE0VU6VONSSbMusgfHKbtsOSr2HRa1T+0TC4x5qzBs9hHeDB6qyNbEVqKJ2jlN6NjBA8kl0RooG4JjSR3CF2UuQwVz44SCRZ2MqN9K2a797byUn0rbWFkm02gHmFnpJbGzqb3RDHROIdu5iLc1N9PLp0Pc0uTGva3U1rHeaDHve4SMiJ08CSpYZXqJY6V7fGLoOjayT9Z3QefBSsqZiMxj5TJnRzOBf4h0KXkeUPhEOoaHaifNKobGHaMB54YUe7jtxePRT79gaMHHMhHlBlMqmSQOEb4z/UAnijc8XvbyUxrG6hZtweaJqLkaRcc88FLVJEdMHuMbRMZmRwUb4YHD9W+xU5kbfvNPymOZATcAgoUn8g4x2SKk1G6Igl1wcqbZlOHVjCeDO8fZTma8RiflvI81HRMMENVJxdpDG3PU5RKo3FpijRSkmiIxyuc6XdAvcS4+anY95aA+mDB1RjdKBgNCOuQ3bI0EciouWSaikSGna7Nh7BQ6n77QIC8dUoqh7G2aNVjgFJ9RMJQ6OO3ul5H7SYwgOtJFoxfKSEu0JZQA8EEdAklmRPEDGFS3XqypRXC5xxWIBPyefhHTUfnPwr8wMZXmDabVBoIBwUxlSWYaSQsjRUHg93wlu6nnIfhGqAd59mx9UQ7U2wPNB9QXkEtb8LIEdR/Md8JwhqLfivRqgJ3i5NgVdha2Oica0kYwsXcTn+K9IU05/jSIzAO+XJtGrJFiB6pv1LgeRHosgUk5/jSfKX0U38+T5RmIu+jybP1hvlosk6rJGG2WY3ZE7oXSGrDbfumTJ9lCKCU/wDkSfKWY8EnfJbm9tPtZBSMYwUkDzpGC03vZU6TtY6a0baSEanWFm2BPqud2vRyzysjbfuN4nJd5q9sLYzpGuMk0YFi0Cxs7HLr9l4SvUrerJRk8ZePJ9z6faWbtYTqwWrCz4+cHS1u0XSRRAxMjfkmwsVT+plPF1gmdodlTNdSvBLS6IBzWXsCP85WX/xdQB4pPuvXWLSt4Z8s+SdcuY0+oVYRWEn4x/DZNS4i10BOQDk3WMNl1B5yfJSOzZmmznPHuuzK4MfvUbW/v4gPlJYooJW/vuST8cB36O4Z2PgaQZKpxHkLJ8vY+B4G4qHNceTshdjG2UaQ+m1Hq5iB1X70DdWQO7ZYKuam+T0n4u1xp0I4o9i5m/xQR1BUjexbiLuqAD0su0hMmnS6ma8DmAVJumvNtw8H7KSuqnJX+ItV/n/pwzuxz220yB/2skOyE3+ld1JStbYkPaP6Smtp7vs17rHmU+5qci/E2v6nFx9jpH/mv7InsZUB1mnHW67n6d4IAfY+fFPMM4d33s9Uu5qcg+k2n6nCs7FzONtTuubKV3YiRrdQcHjmu6jjeG5e0+YCsPZG2IuMhHMm6Xc1ORrpVqtoHAw9ii9pJdG31uq+1+zLNk7Mqa2Z0ZbCy+B7Bd6+njmbcSg+6ydv7JfW7OqoGytfvIy0MObnl90pXFRp4Z0UunWqqR1Q8ZR4fNWbOfWHe7y1we6AR/dbey9tbPpQ2Jr9TOIa4abenFcRtGJ0FdNE9pa5ji0gi1lGxxC807hrdH2OnY05QSy8Hs/Z+XZu3aoUx3je6XMDXA2OLrSq+yskcn6mYOYTgOvcBcf+iOlmqJZ6tztEULdIcep5D2uvR3b6+Kh1j5rbtK03STPnHX7Kgr2UUsvxkxj2XkcQ1srXdcWSl7JzMNmujctR7angyYk9bphFY3LpC4dALldaqz5MF2VHgyT2XquUbT6WSW5G7ejOtp87pKXqz5I9nR/Uu7x976j8p28eSDqKjJAxxSv7X5LMyzVwSCSQcHlLeSfnI9029gfJDnY8UZDA8yyHBeSPVNBfxuhfyR4oyAiXHJz6pa3W4u+Ur4wUuXBGRgLiTa5SLr4vdEfcoemUsiB5DCFgT/2nAc/smgAoyM4f9InYqm2nST7ToGmOuiYXuDRiUAZx1suD7F9jqrb203xVWqmpYBeV4GT0a3lde5yNDmOa7w2IKqbPpKWlEjKVgjvYuAP3yqnQpyzJ7mvQ6xd0KXowfjn5X8BszZNFsqijpKKLdxRjAvknqTzKsmMfmcPdP+cIWzxKtTwsIypNzblJ5bGlh5O+QEi08LM+E/lxQsbYKlrlyQ0oHD9xnyUkslJP1JchoQ69jkWvk2sk02GTbOUAbkcEg2/dN7EceCgSDqsLW4I6sXAJCFgAS4k2HPggNJODc+nNIBxIuNQHl6pF2fdIjIv90CDosTjra10wCHFwdYOFsKvXT1ccV6GnZUSdHyaAPexU5Fm4v7IkAAnhp6mwQBzEu0u1oBtsWmOf5gOP/oKqO1HaCA/tXZ6U5taMOP3APkuwtq02ymSubEG7x4bqIaLm1yeQTz9AciO3NWHhsuwalrjiwc6/xpT6Xty6aYMfseqY1xFiM46m4C608uY5o25EEnkjK4H4MSr2y+Wlk+ljc0ab6yRc+QCytjbUqYJG6oZNLbghxABHycj/ACuskijeDG+KMtdxa4Ahygj2Xs+LUYqCnYTx0xNF/spqcUsYK9LzuGi2jBWgiEm44tc21sqcPa7wuHO/NCFrWC0bGsHRrcf7lHS0AANFr8AFU/osCPzXuD54SJyAEDe/28kC0WJDbmwF0AJz2tJ1vDB1dgJJ2GjryykgQXZGkmw5XRa4AWdm3QIjgE0+NiYgg9zyOESc+Igf3TH8FK3gfRAAJLSDcWNsJWv5EZRd4Gpo8BSATiQNP3RGLtPePmly9k4eI+qYDOJN8u9OCHhALhg8bJ/M+qB5eiQxXIuQbpslnYBIIN8Y/wBCcfA71QPj/wDVAhveFrc0hnAB7vO6P7vuncygZE5lgLarDOSSjwdcWsf7pVH4R9FHD+E30QP4yPbYXdax1XuiXY9E5vAps34h/oP+ECGjS4AtGLelkkJfEkkSP//Z"],"wasm/webp":[89970,"[encoded data, 44564 characters]"],"wasm/jpg":[63156,"[encoded data, 23336 characters]"]};
var iA={zt:0,ef:{expires_at:0},SO:[]};iA.GH=function(L){if(L)iA.SO.splice(0,0,L);if(iA.zt==1)return;
if(iA.ef.expires_at>Date.now()*.001+30){while(iA.SO.length>0)iA.SO.pop()()}else{if(iA.zt==0)iA.zt=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:iA.zt==2?!1:!0},iA.acM)}};
iA.acM=function(L){if(L&&!L.error){iA.ef=L;iA.zt=!1;iA.GH()}else if(iA.zt==1){iA.zt=2;iA.GH()}else alert("Error: "+L.error)};
iA.XH=function(){return"access_token="+iA.ef.access_token+"&token_type="+iA.ef.token_type};iA.rF=function(){return iA.ef.token_type+" "+iA.ef.access_token};
function gT(){}gT.Vu=function(L){var C=new Uint8Array(L),U=0,E={sd:[],wY:[],list:[]},Y=$.lb(C,U);U+=2;
if(Y<=2){return gT.ahE(C)}var z=$.lb(C,U);U+=2;var r=$.ZA(C,U,8);U+=8;var p=$.i(C,U);U+=4;if(p>0)E.sd=gT.qn(C,U,p,z,Y);
U+=p;var T=$.ZA(C,U,8);U+=8;var k=$.i(C,U);U+=4;if(k>0)E.wY=ar.J4(C,U,k);U+=k;var P=$.ZA(C,U,8);U+=8;
var b=$.i(C,U);U+=4;if(b>0){var Q={};e6.Ql(C,Q,U+4);E.list=Q.Brsh.v}U+=b;var K=E.list;for(var H=0;H<K.length;
H++){fW.ds.check(K[H].v)}return E};gT.oz=function(L,C){L.v.Nm.v=C};gT.ahE=function(L){var C={sd:[],wY:[],list:[]},U=0,E=$.lb(L,U);
U+=2;var Y=$.lb(L,U);U+=2;for(var H=0;H<Y;H++){var z=$.lb(L,U);U+=2;var r=$.i(L,U);U+=4;var p=U;if(z==2){var T={};
C.sd.push(T);var k=$.i(L,p);p+=4;var P=$.lb(L,p);p+=2;if(E==2){var b=$.m6(L,p);p+=4+b.length*2+2}T.id=b7.o7()+"-d71c-11e5-b1ae-a548a96e5f9f";
p++;p+=8;T._=$.lD(L,p);p+=16;var Q=$.lb(L,p);p+=2;var K=L[p];p++;T.channel=b8.$n(!1,Q,L,T._.d,T._.v,p,K);
var h=fW.qR(T.id),x=h.Brsh.v;x.Dmtr.v.val=T._.d;x.Spcn.v.val=P;C.list.push({t:"Objc",v:h})}U+=r}return C};
gT.B0=function(L){var C=new d0,U=0,E=0;$._h(C,U,6);U+=2;$._h(C,U,2);U+=2;$.Jv(C,U,"8BIMsamp");U+=8;U+=4;
E=U;U=gT.wT(C,U,L.sd);$.KC(C,E-4,U-E);$.Jv(C,U,"8BIMpatt");U+=8;U+=4;E=U;U=ar.nT(C,U,L.wY);$.KC(C,E-4,U-E);
var Y={classID:"null",Brsh:{t:"VlLs",v:L.list}};$.Jv(C,U,"8BIMdesc");U+=8;U+=4;E=U;$.KC(C,U,16);U+=4;
U+=e6.GG(C,Y,U);$.KC(C,E-4,U-E);return C.data.slice(0,U).buffer};gT.qn=function(L,C,U,E,Y){var z=$.i,r=$.lD,p=C+U,T=[];
while(C<p){var k={};T.push(k);var P=z(L,C);C+=4;var b=C,Q=$.Q5(L,C);C+=Q.length;k.id=Q.oB;if(E==1){C+=9;
k._=r(L,C);C+=16}else{C+=7;var K=z(L,C);C+=4;k._=r(L,C);C+=16;var h=z(L,C);C+=4;C+=h*4;var x=z(L,C);
C+=4;var O=z(L,C);C+=4;var y=r(L,C);C+=16}var v=$.lb(L,C);C+=2;var i=L[C];C+=1;k.channel=b8.$n(!1,v,L,k._.d,k._.v,C,i);
if(P%4!=0)P+=4-P%4;C=b+P}return T};gT.wT=function(L,C,U){var E=$.KC,Y=$.Vk;for(var H=0;H<U.length;H++){var z=U[H],r=C+4,T=56,P=1;
C+=4;$.bq(L,C,z.id);C+=z.id.length+2;L.bF(C,1);L.data[C]=1;C+=3;E(L,C,3);C+=4;var p=C;C+=4;Y(L,C,z._);
C+=16;E(L,C,T);C+=4;C+=T*4;E(L,C-4,1);var k=C;C+=4;E(L,C,8);C+=4;Y(L,C,z._);C+=16;$._h(L,C,8);C+=2;L.bF(C,1);
L.data[C]=P;C++;L.bF(C,z._.X()*2);C=b8._P(z.channel,L.data,z._.d,z._.v,C,P);L.bF(C,8);C+=8;var b=C-r;
E(L,r-4,b);E(L,p,b-49);E(L,k,b-305);if(b%4!=0)C+=4-b%4}return C};function fh(){}fh.Vu=function(L){var C=new Uint8Array(L),U=[],E=0,Y=$.lb(C,E);
E+=2;if(Y!=4){throw"Unknown version of curves: "+Y}var z=$.lb(C,E);E+=2;for(var H=0;H<z;H++){var r=fh.UK(C,E);
E+=2+2*r.length;U.push(r)}if(E==C.length)return U;var p=$.ZA(C,E,4);E+=4;var T=$.lb(C,E);E+=2;var k=$.lb(C,E);
E+=2;if(k!=0)throw"extra curves for channels";return U};fh.Ou=function(L,C,U){var E=C,Y=[],z=L[C];C+=3;
var r=$.i(L,C);C+=4;for(var H=0;H<4;H++){var p=r>>>H&1;if(p){if(z==0){var T=fh.UK(L,C);C+=2+2*T.length}else{var T=fh.am$(L,C);
C+=256}Y.push(T)}else Y.push(z==0?[0,0,255,255]:fh.a98())}var k=hi.Q4("curv");for(var H=0;H<4;H++){if(z==0){var P=Y[H],b=[];
for(var Q=0;Q<P.length;Q+=2)b.push(c.Nn.kH(P[Q],P[Q+1],!0));fh.Sm(k,H,b)}else fh.Sm(k,H,Y[H])}return k};
fh.a98=function(){var L=[];for(var H=0;H<256;H++)L.push(H);return L};fh.Sm=function(L,C,U){var E=d5.Uq("CrvA",C);
if(U.length<256)E.Crv={t:"VlLs",v:U};else{E.Mpng={t:"VlLs",v:[]};for(var H=0;H<256;H++)E.Mpng.v[H]={t:"long",v:U[H]}}E={t:"Objc",v:E};
var Y=L.Adjs.v,z=d5.GJ(Y,C);if(z==-1)Y.push(E);else Y[z]=E};fh.El=function(L,C){var U=L.Adjs.v,E=d5.GJ(U,C);
if(E==-1){if(U.length==0||U[0].v.Crv)return[c.Nn.kH(0,0,!0),c.Nn.kH(255,255,!0)];var Y=[];for(var H=0;
H<256;H++)Y.push(H);return Y}var z=U[E].v,r=z.Crv;if(r)return r.v;var Y=[];for(var H=0;H<256;H++)Y.push(z.Mpng.v[H].v);
return Y};fh.UK=function(L,C){var U=[],E=$.lb(L,C);C+=2;for(var Y=0;Y<E;Y++){var z=$.lb(L,C);C+=2;var r=$.lb(L,C);
C+=2;U.push(r,z)}return U};fh.ao2=function(L,C,U){var E=U.length/2;$._h(L,C,E);C+=2;for(var Y=0;Y<E;
Y++){$._h(L,C,U[Y*2+1]);C+=2;$._h(L,C,U[Y*2+0]);C+=2}};fh.am$=function(L,C){var U=[];for(var H=0;H<256;
H++)U.push(L[C+H]);return U};fh.acd=function(L,C,U){L.bF(C,256);for(var H=0;H<256;H++)L.data[C+H]=U[H]};
fh.Rd=function(L,C,U){var E=[];for(var H=0;H<4;H++){var Y=fh.El(U,H);if(Y.length==256)E.push(Y);else{var z=[];
for(var r=0;r<Y.length;r++)z.push(Y[r].v.Hrzn.v,Y[r].v.Vrtc.v);E.push(z)}}var p=C,T=E[0].length==256?1:0;
L.bF(C,3);L.data[C]=T;L.data[C+1]=0;L.data[C+2]=1;C+=3;$.KC(L,C,15);C+=4;for(var H=0;H<4;H++){var k=E[H];
if(T==0){fh.ao2(L,C,k);C+=2+2*k.length}else{fh.acd(L,C,k);C+=256}}return C-p};function hK(){}hK.Ou=function(L,C,U){var E={},Y=$.lb(L,C);
C+=2;E.aW=L[C]==1;C++;C++;E.Ar=[$.sZ(L,C),$.sZ(L,C+2),$.sZ(L,C+4)];C+=6;E.tm=[$.sZ(L,C),$.sZ(L,C+2),$.sZ(L,C+4)];
C+=6;E.yl=[];for(var H=0;H<6;H++){var z={};z.tZ=[$.sZ(L,C),$.sZ(L,C+2),$.sZ(L,C+4),$.sZ(L,C+6)];C+=8;
z.K3=[$.sZ(L,C),$.sZ(L,C+2),$.sZ(L,C+4)];C+=6;E.yl.push(z)}var r=hi.Q4("hue2"),p=E;if(r.Clrz==null)r.Clrz={t:"bool",v:!1};
r.Clrz.v=p.aW;for(var H=0;H<7;H++){var T=H==0?p.aW?p.Ar:p.tm:p.yl[H-1];hK.Sm(r,H,T)}return r};hK.a2S=function(L){return{classID:"Hst2",H:{t:"long",v:L[0]},Strt:{t:"long",v:L[1]},Lght:{t:"long",v:L[2]}}};
hK.GJ=function(L,C){for(var H=0;H<L.length;H++){var U=L[H].v.LclR;if(C==0&&U==null||U!=null&&U.v==C)return H}return-1};
hK.Sm=function(L,C,U){var E=C==0?U:U.K3,Y=hK.a2S(E);if(C!=0){var z=U.tZ;Y.LclR={t:"long",v:C},Y.BgnR={t:"long",v:z[0]};
Y.BgnS={t:"long",v:z[1]};Y.EndS={t:"long",v:z[2]};Y.EndR={t:"long",v:z[3]}}Y={t:"Objc",v:Y};var r=L.Adjs.v,p=hK.GJ(r,C);
if(p==-1)r.push(Y);else r[p]=Y};hK.El=function(L,C){var U=L.Adjs.v,E=hK.GJ(U,C);if(E==-1){if(C==0)return[0,0,0];
else return[{tZ:[315,345,15,45],K3:[0,0,0]},{tZ:[15,45,75,105],K3:[0,0,0]},{tZ:[75,105,135,165],K3:[0,0,0]},{tZ:[135,165,195,225],K3:[0,0,0]},{tZ:[195,225,255,285],K3:[0,0,0]},{tZ:[255,285,315,345],K3:[0,0,0]}][C-1]}var Y=U[E].v,z=[Y.H.v,Y.Strt.v,Y.Lght.v];
if(C==0)return z;return{K3:z,tZ:[Y.BgnR.v,Y.BgnS.v,Y.EndS.v,Y.EndR.v]}};hK.Rd=function(L,C,U){var E={aW:U.Clrz.v,yl:[]};
E.Ar=E.tm=hK.El(U,0);for(var H=1;H<7;H++)E.yl.push(hK.El(U,H));var Y=2+2+12+6*14,z=L.data;L.bF(C,Y);
$.OH(z,C,2);C+=2;z[C]=E.aW?1:0;C++;C++;$.KX(z,C+0,E.Ar[0]);$.KX(z,C+2,E.Ar[1]);$.KX(z,C+4,E.Ar[2]);C+=6;
$.KX(z,C+0,E.tm[0]);$.KX(z,C+2,E.tm[1]);$.KX(z,C+4,E.tm[2]);C+=6;for(var H=0;H<6;H++){var r=E.yl[H].tZ,p=E.yl[H].K3;
$.KX(z,C+0,r[0]);$.KX(z,C+2,r[1]);$.KX(z,C+4,r[2]);$.KX(z,C+6,r[3]);C+=8;$.KX(z,C+0,p[0]);$.KX(z,C+2,p[1]);
$.KX(z,C+4,p[2]);C+=6}return Y};function d5(){}d5.Vu=function(L){var C=new Uint8Array(L),U=2,E=[];for(var H=0;
H<29;H++){var Y=[];E.push(Y);for(var z=0;z<5;z++)Y.push($.lb(C,U+H*10+z*2))}U+=29*10;if(U<C.length){var r=$.ZA(C,U,4);
U+=4;var p=$.lb(C,U);U+=2;var T=$.lb(C,U);U+=2;var k=T-29;for(var H=0;H<k;H++){var Y=[];E.push(Y);for(var z=0;
z<5;z++)Y.push($.lb(C,U+H*10+z*2))}}var P=hi.Q4("levl");for(var H=0;H<4;H++)d5.Sm(P,H,E[H]);return P};
d5.Uq=function(L,H){var C=["Cmps","Rd","Grn","Bl"],U={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:C[H]}}]};
return{classID:L,Chnl:U}};d5.GJ=function(L,C){var U={Cmps:0,Rd:1,Grn:2,Bl:3};for(var H=0;H<L.length;
H++){var E=L[H].v,Y=U[E.Chnl.v[0].v.enum];if(Y==C)return H}return-1};d5.Sm=function(L,C,U){var E=d5.Uq("LvlA",C);
E.Inpt={t:"VlLs",v:[{t:"long",v:U[0]},{t:"long",v:U[1]}]};E.Otpt={t:"VlLs",v:[{t:"long",v:U[2]},{t:"long",v:U[3]}]};
E.Gmm={t:"doub",v:U[4]/100};E={t:"Objc",v:E};var Y=L.Adjs.v,z=d5.GJ(Y,C);if(z==-1)Y.push(E);else Y[z]=E};
d5.El=function(L,C){var U=[0,255,0,255,100],E=L.Adjs.v,Y=d5.GJ(E,C);if(Y==-1)return U;var z=E[Y].v;if(z.Inpt){U[0]=z.Inpt.v[0].v;
U[1]=z.Inpt.v[1].v}if(z.Otpt){U[2]=z.Otpt.v[0].v;U[3]=z.Otpt.v[1].v}if(z.Gmm){U[4]=Math.round(z.Gmm.v*100)}return U};
d5.B0=function(L,C){var U=[],E=0;for(var H=0;H<4;H++)U.push(d5.El(C,H));while(U.length<29)U.push([0,255,0,255,100]);
L.bF(0,2+10*29);$.OH(L.data,E,2);E+=2;for(var H=0;H<29;H++){var Y=U[H];for(var z=0;z<5;z++)$.OH(L.data,E+H*10+z*2,Y[z])}E+=29*10;
if(U.length==29)return E;L.bF(E,8+10*(U.length-29));$.Ti(L.data,E,"Lvls");E+=4;$.OH(L.data,E,3);E+=2;
$.OH(L.data,E,U.length);E+=2;var r=U.length-29;for(var H=0;H<r;H++){var Y=U[29+H];for(var z=0;z<5;z++)$.OH(L.data,E+H*10+z*2,Y[z])}E+=10*r;
return E};function eC(){}eC.Vu=function(L){var C=new Uint8Array(L),U=2,E={At:[],$$:[]},Y=$.ZA(C,U,4);
U+=4;var z=$.lb(C,U);U+=2;var r=$.i(C,U);U+=4;E.At=ar.J4(C,U,r);U+=r;var p=$.i(C,U);U+=4;for(var H=0;
H<p;H++){var T=$.i(C,U);U+=4;var k=U,P={hB:{},mV:{}};E.$$.push(P);U+=4;U+=e6.Ql(C,P.hB,U);U+=4;U+=e6.Ql(C,P.mV,U);
U=k+T;var b=P.mV.blendOptions,Q=P.mV.Lefx;if(b&&Object.keys(b.v).length>1){}if(Q){if(Q.v.masterFXSwitch==null)Q.v.masterFXSwitch={t:"bool",v:!0};
eo.Ur(Q.v)}}return E};eC.oz=function(L,C){L.hB.Nm.v=C};eC.B0=function(L){var C=new d0,U=0;$._h(C,U,2);
U+=2;$.Jv(C,U,"8BSL");U+=4;$._h(C,U,3);U+=2;var E=U;U+=4;U=ar.nT(C,U,L.At);$.KC(C,E,U-E-4);var Y=L.$$.length;
$.KC(C,U,Y);U+=4;for(var H=0;H<Y;H++){U+=4;var z=U,r=L.$$[H];$.KC(C,U,16);U+=4;U+=e6.GG(C,r.hB,U);var p=r.mV.Lefx;
if(p){r.mV.Lefx=JSON.parse(JSON.stringify(p));eo.fK(r.mV.Lefx.v)}$.KC(C,U,16);U+=4;U+=e6.GG(C,r.mV,U);
if(p)r.mV.Lefx=p;$.KC(C,z-4,U-z)}return C.data.slice(0,U).buffer};function iQ(){}iQ.Ou=function(L,C,U){var E=$.lb(L,C);
C+=2;var Y={};Y.c0=$.lb(L,C)==1;C+=2;Y.Rm=[];for(var H=0;H<10;H++){var z=[];Y.Rm.push(z);for(var r=0;
r<4;r++)z.push($.sZ(L,C+r*2));C+=8}var p=hi.Q4("selc");p.Mthd.v.CrcM=Y.c0?"Absl":"Rltv";for(var H=1;
H<10;H++)iQ.Sm(p,H-1,Y.Rm[H]);return p};iQ.UP="Rds Ylws Grns Cyns Bls Mgnt Whts Ntrl Blks".split(" ");
iQ.Uq=function(L,H){var C=["Cmps","Rd","Grn","Bl"],U={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:C[H]}}]};
return{classID:L,Chnl:U}};iQ.GJ=function(L,C){var U=iQ.UP;for(var H=0;H<L.length;H++){var E=L[H].v,Y=U.indexOf(E.Clrs.v.Clrs);
if(Y==C)return H}return-1};iQ.Sm=function(L,C,U){var E=["Cyn","Mgnt","Ylw","Blck"],Y={classID:"ClrC",Clrs:{t:"enum",v:{Clrs:iQ.UP[C]}}};
for(var z=0;z<4;z++)Y[E[z]]={t:"UntF",v:{type:"#Prc",val:U[z]}};Y={t:"Objc",v:Y};var r=L.ClrC.v,p=iQ.GJ(r,C);
if(p==-1)r.push(Y);else r[p]=Y};iQ.El=function(L,C){var U=[0,0,0,0],E=L.ClrC.v,Y=iQ.GJ(E,C);if(Y==-1)return U;
var z=["Cyn","Mgnt","Ylw","Blck"];for(var H=0;H<4;H++)if(E[Y].v[z[H]])U[H]=E[Y].v[z[H]].v.val;return U};
iQ.Rd=function(L,C,U){var E={c0:U.Mthd.v.CrcM=="Absl",Rm:[[0,0,0,0]]};for(var H=0;H<9;H++)E.Rm.push(iQ.El(U,H));
L.bF(C,84);$.OH(L.data,C,1);C+=2;$.OH(L.data,C,E.c0?1:0);C+=2;for(var H=0;H<10;H++){var Y=E.Rm[H];for(var z=0;
z<4;z++)$.KX(L.data,C+z*2,Y[z]);C+=8}return 84};function fA(){}fA.Q4=function(){return{Ke:new _(0,0,50,50),hB:"",gf:"play",n:c.Y.tD.pz([.1,.1,.9,.5,.1,.9],0)}};
fA.Vu=function(L){L=new Uint8Array(L);var C=0,U=[],E=Date.now(),Y=$.ZA(L,0,4);C+=4;var z=$.i(L,C);C+=4;
var r=$.i(L,C);C+=4;for(var H=0;H<r;H++){var p=$.m6(L,C);C+=p.length*2+4+2;if((p.length&1)==0)C+=2;C=fA.od(L,C,p,U)}return U};
fA.od=function(L,C,U,E){var Y=$.i(L,C);C+=4;var z=$.i(L,C);C+=4;var r=C,p=$.Q5(L,r).oB;r+=p.length+1;
var T=$.lD(L,r);r+=16;var k=fA.LB(L,r,z-(r-C)),P=c.Y.GY(k),b=c.a.mE(P),Q=1/b.d,K=1/b.v;c.Y.IL(k,new c0(Q,0,0,K,-b.x*Q,-b.y*K));
E.push({gf:U,hB:p,n:k,Ke:T});C+=z;return C};fA.oz=function(L,C){L.gf=C};fA.B0=function(L){var C=new d0,U=0;
$.Jv(C,U,"cush");U+=4;$.KC(C,U,2);U+=4;$.KC(C,U,L.length);U+=4;for(var H=0;H<L.length;H++){var E=L[H],Y=E.gf+"\0";
$.jx(C,U,Y);U+=4+Y.length*2;if((Y.length&1)==1)U+=2;$.KC(C,U,1);U+=4;U+=4;var z=U;$.bq(C,U,E.hB);U+=E.hB.length+1;
$.Vk(C,U,E.Ke);U+=16;C.bF(U,E.n.length*26);fA.g7(C.data,U,E.n,1,1);U+=E.n.length*26;var r=U-z;if((r&3)!=0)r+=4-(r&3);
$.KC(C,z-4,r);U=z+r}return C.data.slice(0,U).buffer};fA.ajX=function(L){var C=[];for(var H=0;H<L.length;
H++){var U=L[H],E=U.type,Y={type:E};C.push(Y);if(E==6){}else if(E==8)Y.all=U.all;else if(E==0||E==3){Y.length=U.length;
Y.frule=U.ZZ;Y.third=U.A9;Y.prmA=U.Tn;Y.prmB=U.Jh}else{Y.c=[U.OT.x,U.OT.y,U.D.x,U.D.y,U.SC.x,U.SC.y]}}return C};
fA.a3g=function(L){var C=[];for(var H=0;H<L.length;H++){var U=L[H],E=U.type,Y={type:E};C.push(Y);if(E==6){}else if(E==8)Y.all=U.all;
else if(E==0||E==3){Y.length=U.length;Y.ZZ=U.frule;Y.A9=U.third;Y.Tn=U.prmA;Y.Jh=U.prmB}else{var z=U.c;
Y.OT=new hZ(z[0],z[1]);Y.D=new hZ(z[2],z[3]);Y.SC=new hZ(z[4],z[5])}}return C};fA.LB=function(L,C,U,E,Y){if(E==null)E=1;
if(Y==null)Y=1;function z(x,O,y){var v=$.a5l(x,O)*y,i=Math.round(v);return Math.abs(v-i)<1e-6?i:v}var r=$.sZ,p=[],T=Math.floor(U/26);
for(var H=0;H<T;H++){var k=C+H*26,P={},b=0;p.push(P);P.type=r(L,k);k+=2;if(P.type==6){b=24}if(P.type==8){P.all=r(L,k);
k+=2;b=22}if(P.type==0||P.type==3){P.length=r(L,k);k+=2;P.ZZ=r(L,k);k+=2;P.A9=r(L,k);k+=2;P.Tn=$.i(L,k);
k+=4;P.Jh=$.i(L,k);k+=4;b=10}if(P.type==1||P.type==2||P.type==4||P.type==5){var Q,K;K=z(L,k,Y);k+=4;
Q=z(L,k,E);k+=4;P.OT=new hZ(Q,K);K=z(L,k,Y);k+=4;Q=z(L,k,E);k+=4;P.D=new hZ(Q,K);K=z(L,k,Y);k+=4;Q=z(L,k,E);
k+=4;P.SC=new hZ(Q,K);b=0}for(var h=0;h<b;h++)if(L[k+h]!=0){console.log("Unexpected non-zero byte!",P,h,L[k+h])}}return p};
fA.g7=function(L,C,U,E,Y){var z=$.KX,r=$.KM,p=U.length;for(var H=0;H<p;H++){var T=C+H*26,k=U[H];z(L,T,k.type);
T+=2;if(k.type==6){}if(k.type==8)z(L,T,k.all);if(k.type==0||k.type==3){z(L,T,k.length);T+=2;z(L,T,k.ZZ);
T+=2;z(L,T,k.A9);T+=2}if(k.type==1||k.type==2||k.type==4||k.type==5){r(L,T,k.OT.y/Y);T+=4;r(L,T,k.OT.x/E);
T+=4;r(L,T,k.D.y/Y);T+=4;r(L,T,k.D.x/E);T+=4;r(L,T,k.SC.y/Y);T+=4;r(L,T,k.SC.x/E);T+=4}}};function eZ(){}eZ.Vu=function(L){var C=new Uint8Array(L),U=[],E=0;
E=eZ.Xc(C,E,U);if(E+3<C.length){U=[];E=eZ.Xc(C,E,U)}return U};eZ.Xc=function(L,C,U){var E=$.lb,Y=$.sZ,z=E(L,C);
C+=2;var r=E(L,C);C+=2;for(var H=0;H<r;H++){var p=eZ.FJ(L,C);C+=10;if(z==2){p.iF=$.m6(L,C);C+=4+p.iF.length*2+2}U.push(p)}return C};
eZ.FJ=function(L,C){var U=$.lb,E=$.sZ,Y=U(L,C),K=null;C+=2;var z=U(L,C);C+=2;var r=U(L,C);C+=2;var p=U(L,C);
C+=2;var T=U(L,C);C+=2;var k=1/65535,P=255/65535,b=100/65535,Q=255/1e4;if(Y==0)K={h:z*P,P:r*P,O:p*P};
else if(Y==1){K=c.D5(z*k,r*k,p*k);K.h*=255;K.P*=255;K.O*=255}else if(Y==2)K=c.W.Lt({classID:"CMYC",Cyn:{t:"doub",v:100-z*b},Mgnt:{t:"doub",v:100-r*b},Ylw:{t:"doub",v:100-p*b},Blck:{t:"doub",v:100-T*b}});
else if(Y==7){var h=c.BR(z/100,E(L,C-6)/100,E(L,C-4)/100);K=h}else if(Y==8){K={h:255-z*Q,P:255-r*Q,O:255-p*Q}}else throw"e "+Y+", ";
return K};eZ.B0=function(L){var C=new d0,U=0,E=$._h;E(C,U,2);U+=2;E(C,U,L.length);U+=2;for(var H=0;H<L.length;
H++){var Y=L[H];C.bF(U,10);eZ.ws(C.data,U,Y);U+=10;var z=(Y.iF?Y.iF:"")+"\0";$.jx(C,U,z);U+=4+z.length*2}return C.data.slice(0,U).buffer};
eZ.oz=function(L,C){L.iF=C};eZ.ws=function(L,C,U){var E=65535/255,Y=$.OH;Y(L,C,0);Y(L,C+2,Math.round(U.h*E));
Y(L,C+4,Math.round(U.P*E));Y(L,C+6,Math.round(U.O*E));Y(L,C+8,0)};function bB(){}bB.Vu=function(L){var C=new Uint8Array(L),U=4,E={};
E.z9=$.m6(C,U);U+=4+E.z9.length*2+2;E.exp=C[U++]==1;E.e4=[];var Y=$.i(C,U);U+=4;for(var H=0;H<Y;H++){var z={};
E.e4.push(z);z.Oi=$.lb(C,U);U+=2;z.shift=C[U++]==1;z.aiI=C[U++]==1;z.color=$.lb(C,U);U+=2;z.z9=$.m6(C,U);
U+=4+z.z9.length*2+2;z.exp=C[U++]==1;z.e4=[];var e4=$.i(C,U);U+=4;for(var r=0;r<e4;r++){var p={};z.e4.push(p);
p.exp=C[U++]==1;p.p=C[U++]==1;p.ajl=C[U++]==1;p.agq=C[U++];var T=$.ZA(C,U,4);U+=4;if(T=="TEXT"){p.xo=bB.NA(C,U);
U+=4+p.xo.length}else if(T=="long"){p.xo=$.ZA(C,U,4);U+=4}else throw"e";p.Gf=bB.NA(C,U);U+=4+p.Gf.length;
var k=$.xw(C,U);U+=4;if(k==-1){p.V5={};var P=e6.Ql(C,p.V5,U);U+=P}}}console.log(E);var b=new Uint8Array(bB.B0(E));
for(var H=0;H<b.length;H++)if(b[H]!=C[H]){console.log(C.length,b.length);var Q=4*(H>>>2)-16;console.log($.l9(C,Q,64));
console.log($.l9(b,Q,64));console.log(C.slice(Q,Q+64));console.log(b.slice(Q,Q+64));throw H}return[E]};
bB.NA=function(L,C){var U=$.i(L,C);return $.ZA(L,C+4,U)};bB.tr=function(L,C,U){$.KC(L,C,U.length);$.Jv(L,C+4,U)};
bB.B0=function(L){var C=new d0,U=0;$.KC(C,U,16);U+=4;$.jx(C,U,L.z9+"\0");U+=4+L.z9.length*2+2;C.bF(U,1);
C.data[U++]=L.exp?1:0;var E=L.e4.length;$.KC(C,U,E);U+=4;for(var H=0;H<E;H++){var Y=L.e4[H];$._h(C,U,Y.Oi);
U+=2;C.bF(U,2);C.data[U++]=Y.shift?1:0;C.data[U++]=Y.aiI?1:0;$._h(C,U,Y.color);U+=2;$.jx(C,U,Y.z9+"\0");
U+=4+Y.z9.length*2+2;C.bF(U,1);C.data[U++]=Y.exp?1:0;var e4=Y.e4.length;$.KC(C,U,e4);U+=4;for(var z=0;
z<e4;z++){var r=Y.e4[z];C.bF(U,4);C.data[U++]=r.exp?1:0;C.data[U++]=r.p?1:0;C.data[U++]=r.ajl?1:0;C.data[U++]=r.agq;
var p=r.xo=="LqFy"||r.xo=="Avrg"||r.xo=="GEfc"||r.xo=="PbPl"||r.xo=="Fbrs"||r.xo=="Bokh";$.Jv(C,U,p?"long":"TEXT");
U+=4;if(!p){bB.tr(C,U,r.xo);U+=4+r.xo.length}else{$.Jv(C,U,r.xo);U+=4}bB.tr(C,U,r.Gf);U+=4+r.Gf.length;
$.rb(C,U,r.V5?-1:0);U+=4;if(r.V5){var T=e6.GG(C,r.V5,U);U+=T}}}return C.data.slice(0,U).buffer};function gy(){}gy.Vu=function(L){var C=new Uint8Array(L),U=0,E=$.i(C,U),T;
U+=4;var Y=$.ZA(C,U,8);U+=8;var z=$.Nl(C,U);U+=4;var r=$.Nl(C,U);U+=4;var p=$.Nl(C,U);U+=4;if(E==2){T=new Float32Array(L,32,L.byteLength-32>>>2)}else if(E==3||E==4){T=new Float32Array(r*p*2);
var k=0,P=0,b=!0;U=E==3?32:16+8+40;while(U<C.length){var Q=$.Nl(C,U);U+=4;if(b)P+=Q;else{for(var H=0;
H<Q;H++){T[k+P+H<<1]=$.Aq(C,U);T[(k+P+H<<1)+1]=$.Aq(C,U+4);U+=8}P+=Q}b=!b;if(Q!=0&&P==r){k+=r;P=0;b=!0;
if(k==r*p)break}}}else throw"unknown Mesh version: "+E;return{aU:r,fg:p,map:T}};gy.cd=function(L){var C=L.aU,U=L.fg,E=L.map,Y=new Uint8Array(32+U*C*8+U*8),z=0,r=0;
$.Iy(Y,z,3);z+=4;$.Ti(Y,z,"yfqLhseM");z+=8;$.Zg(Y,z,2);z+=4;$.Zg(Y,z,C);z+=4;$.Zg(Y,z,U);z+=4;$.Zg(Y,z,0);
z+=4;$.Zg(Y,z,1);z+=4;for(var p=0;p<U;p++){$.Zg(Y,z,0);z+=4;$.Zg(Y,z,C);z+=4;for(var T=0;T<C;T++){$._R(Y,z,E[r]);
$._R(Y,z+4,E[r+1]);r+=2;z+=8}}return Y.buffer};function hg(){}hg.Vu=function(L){var C=new Uint8Array(L),U=0,E=$.ZA(C,U,4);
U+=4;var Y=$.lb(C,U);U+=2;var z=$.i(C,U);U+=4;var r=[];for(var H=0;H<z;H++){var p=$.i(C,U);U+=4;var T={classID:"ShpC",Nm:{t:"TEXT",v:""},Crv:{t:"VlLs",v:[]}};
r.push(T);var k=$.m6(C,U);T.Nm.v=k;U+=4+k.length*2+2;var P=$.lb(C,U);U+=2;var b=$.lb(C,U);U+=2;for(var Q=0;
Q<b;Q++){var K=c.Nn.kH(0,0,!0);K.v.Vrtc.v=$.lb(C,U);U+=2;K.v.Hrzn.v=$.lb(C,U);U+=2;T.Crv.v.push(K)}if(p==1){}else if(p==2){for(var Q=0;
Q<b;Q++){T.Crv.v[Q].v.Cnty.v=C[U]==1;U+=1}}else throw"error";var h=$.i(C,U);U+=4;var x=$.i(C,U);U+=4}return r};
hg.oz=function(L,C){L.Nm.v=C};hg.B0=function(L){var C=new d0,U=0;$.Jv(C,U,"8BFS");U+=4;$._h(C,U,1);U+=2;
$.KC(C,U,L.length);U+=4;for(var H=0;H<L.length;H++){$.KC(C,U,2);U+=4;var E=L[H];$.jx(C,U,E.Nm.v+"\0");
U+=4+E.Nm.v.length*2+2;$._h(C,U,2);U+=2;var Y=E.Crv.v.length;$._h(C,U,Y);U+=2;for(var z=0;z<Y;z++){var r=E.Crv.v[z];
$._h(C,U,r.v.Vrtc.v);U+=2;$._h(C,U,r.v.Hrzn.v);U+=2}C.bF(U,Y);for(var z=0;z<Y;z++){C.data[U]=E.Crv.v[z].v.Cnty.v;
U++}$.KC(C,U,0);U+=4;$.KC(C,U,0);U+=4}return C.data.slice(0,U).buffer};function ar(){}ar.Vu=function(L){var C=new Uint8Array(L),U=4,E=$.lb(C,U);
U+=2;var Y=$.i(C,U);U+=4;var z=[];for(var H=0;H<Y;H++){var r={};z.push(r);U=ar.ON(C,U,r)}return z};ar.oz=function(L,C){L.name=C};
ar.B0=function(L){var C=new d0,U=0;$.Jv(C,U,"8BPT");U+=4;$._h(C,U,1);U+=2;$.KC(C,U,L.length);U+=4;for(var H=0;
H<L.length;H++){U=ar._2(C,U,L[H])}return C.data.slice(0,U).buffer};ar.J4=function(L,C,U){var E=C+U,Y=[];
while(C<E){var z={},r=$.i(L,C);C+=4;var p=C;C=ar.ON(L,C,z);if(!z.Zq[1].ue())Y.push(z);if(r%4!=0)r+=4-r%4;
C=p+r}return Y};ar.nT=function(L,C,U){for(var H=0;H<U.length;H++){var E=U[H];C+=4;var Y=C;C=ar._2(L,C,E);
var z=C-Y;$.KC(L,Y-4,z);if(z%4!=0)Y+=4-z%4;C=Y+z}return C};ar.ON=function(L,C,U){var E=$.i(L,C);C+=4;
if(E!=1)alert("Unknown version of pattern");var Y=$.i(L,C);C+=4;if(Y!=1&&Y!=2&&Y!=3)console.log("Unsupported mode of pattern: "+Y);
var z=$.lb(L,C);C+=2;var r=$.lb(L,C);C+=2;var p=new _(0,0,r,z);U.name=$.m6(L,C);C+=4+2*U.name.length+2;
var T=L[C];C++;U.id=$.ZA(L,C,T);C+=U.id.length;var k=-1;if(Y==2){k=C;C+=3*256+4}var P=new c.Ry(r*z);
C=ar.agK(L,C,P);if(Y==2){for(var H=0;H<P.h.length;H++){var b=3*P.h[H];P.h[H]=L[k+b+0];P.P[H]=L[k+b+1];
P.O[H]=L[k+b+2]}}var Q=c.F(p.X()*4);c.qF(P,Q);U.Zq=[Q,p];return C};ar._2=function(L,C,U){var E=U.Zq[0],Y=U.Zq[1];
$.KC(L,C,1);C+=4;$.KC(L,C,3);C+=4;$._h(L,C,Y.v);C+=2;$._h(L,C,Y.d);C+=2;$.jx(L,C,U.name+"\0");C+=4+2*U.name.length+2;
$.tM(L,C,U.id.length);C++;$.Jv(L,C,U.id);C+=U.id.length;var z=new c.Ry(Y.X());c.df(E,z);C=ar.a2s(L,C,z,Y);
return C};ar.agK=function(L,C,U){var E=C,Y={_:null,NT:[],aeb:null,PK:null},z=$.i(L,C);C+=4;var r=$.i(L,C);
C+=4;Y._=$.lD(L,C);C+=16;var p=$.i(L,C);C+=4;for(var H=0;H<p+2;H++){var T=$.i(L,C);C+=4;if(T==0)continue;
var k=$.i(L,C);C+=4;if(k==0)continue;var P=$.i(L,C);C+=4;var b=$.lD(L,C);C+=16;var Q=$.lb(L,C);C+=2;
var K=L[C];C++;var h=b8.$n(!1,P,L,b.d,b.v,C,K);if(H<p)Y.NT.push(h);if(H==p)Y.aeb=h;if(H==p+1)Y.PK=h;
C+=k-23}if(!Y._.ue()){if(Y.NT[0])U.h=Y.NT[0];if(Y.NT[1])U.P=Y.NT[1];else U.P=Y.NT[0].slice(0);if(Y.NT[2])U.O=Y.NT[2];
else U.O=Y.NT[0].slice(0);if(Y.PK)U.R=Y.PK;else U.R.fill(255)}return C};ar.a2s=function(L,C,U,E){var Y=C,z={_:E,NT:[U.h,U.P,U.O],aeb:null,PK:U.R};
$.KC(L,C,3);C+=4;$.KC(L,C,0);C+=4;$.Vk(L,C,E);C+=16;$.KC(L,C,24);C+=4;for(var H=0;H<24+2;H++){var r=C,p=H<3||H==25?1:0;
$.KC(L,C,p);C+=4;if(p==0)continue;$.KC(L,C,0);C+=4;$.KC(L,C,8);C+=4;$.Vk(L,C,E);C+=16;$._h(L,C,8);C+=2;
$.tM(L,C,1,1);C++;var T=H<3?z.NT[H]:z.PK;L.bF(C,E.X()+2);C=b8._P(T,L.data,E.d,E.v,C,1);$.KC(L,r+4,C-r-8)}$.KC(L,Y+4,C-Y-8);
return C};function g9(){}g9.Vu=function(L){var C=new Uint8Array(L),U=0,E=$.ZA(C,U,4);U+=4;var Y=$.lb(C,U);
U+=2;var z=[];if(Y<=3){var r=$.lb(C,U);U+=2;for(var H=0;H<r;H++){var p=C[U++],T=$.ZA(C,U,p);U+=p;var k=g9.K_(C,U,T),P=k[0];
U=k[1];z.push(P);U+=6}}else{var k={},b=e6.Ql(C,k,U+4),Q=k.GrdL.v;for(var H=0;H<Q.length;H++)z[H]=Q[H].v.Grad.v}return z};
g9.oz=function(L,C){L.Nm.v=C};g9.B0=function(L){var C=new d0,U=0;$.Jv(C,U,"8BGR");U+=4;$._h(C,U,5);U+=2;
$.KC(C,U,16);U+=4;var E={classID:"null",GrdL:{t:"VlLs",v:[]}},Y=E.GrdL.v;for(var H=0;H<L.length;H++)Y[H]={t:"Objc",v:{classID:"Grdn",__name:"Gradient ",Grad:{t:"Objc",v:L[H]}}};
U+=e6.GG(C,E,U);return C.data.slice(0,U).buffer};g9.K_=function(L,C,U){var E={classID:"Grdn",Clrs:{t:"VlLs",v:[]},GrdF:{t:"enum",v:{GrdF:"CstS"}},Intr:{t:"doub",v:4096},Nm:{t:"TEXT",v:U},Trns:{t:"VlLs",v:[]}},Y=$.lb(L,C);
C+=2;if(Y==0)throw"e";for(var H=0;H<Y;H++){var z=$.i(L,C),r=$.i(L,C+4),p=eZ.FJ(L,C+8),T={t:"Objc",v:{classID:"Clrt",Clr:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:p.h},Grn:{t:"doub",v:p.P},Bl:{t:"doub",v:p.O}}},Type:{t:"enum",v:{Clry:"UsrS"}},Lctn:{t:"long",v:z},Mdpn:{t:"long",v:r}}};
E.Clrs.v.push(T);C+=20}var k=$.lb(L,C);C+=2;for(var H=0;H<k;H++){var z=$.i(L,C),r=$.i(L,C+4),P=$.lb(L,C+8),T={t:"Objc",v:{classID:"TrnS",Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(100*P/255)}},Lctn:{t:"long",v:z},Mdpn:{t:"long",v:r}}};
E.Trns.v.push(T);C+=10}return[E,C]};g9.ajn=function(L,C,U){var E=U.Clrs.v.length;$._h(L,C,E);C+=2;for(var H=0;
H<E;H++){var Y=U.Clrs.v[H];$.KC(L,C,Y.v.Lctn.v);$.KC(L,C+4,Y.v.Mdpn.v);$._h(L,C+8,0);var z=c.W._b(c.W.Lt(Y.v.Clr.v)),r=[z.Rd.v,z.Grn.v,z.Bl.v,0];
for(var p=0;p<4;p++)$._h(L,C+10+p*2,Math.round(65535*(r[p]/255)));C+=20}var T=U.Trns.v.length;$._h(L,C,T);
C+=2;for(var H=0;H<T;H++){var Y=U.Trns.v[H];$.KC(L,C,Y.v.Lctn.v);$.KC(L,C+4,Y.v.Mdpn.v);$._h(L,C+8,Math.round(255*Y.v.Opct.v.val/100));
C+=10}return C};function bJ(){}bJ.Vu=function(L){var C=new Uint8Array(L),U=[],E=[],Y=[],z=[],r=[],p=0,T=$.ZA(C,p,4);
p+=4;var k=$.i(C,p);p+=4;var P=$.i(C,p);p+=4;while(p<C.length){var b=$.ZA(C,p,4);p+=4;var Q=$.ZA(C,p,4);
p+=4;var K=$.i(C,p);p+=4;if(Q=="tppa"){E=ar.J4(C,p,K);p+=K}else if(Q=="tpbd"){Y=gT.qn(C,p,K,1,1);p+=K}else if(Q=="tptp"){var h=$.i(C,p);
p+=4;for(var H=0;H<h;H++){var x=$.m6(C,p);p+=6+x.length*2;p+=4;var O={};p+=e6.Ql(C,O,p);U.push([x,O])}while((p&3)!=0)p++}else if(Q=="tpsh"){var y=p,v=C.slice(p,p+K);
while(p<y+K){var i=$.i(C,p);p+=4;p=fA.od(C,p,"Shape",z)}p=y+K}else if(Q=="tpst"){var y=p;p+=4;while(p<y+K){var D=$.i(C,p);
p+=4;var I=p,m=$.i(C,p);p+=4;var O={hB:{},mV:{}};r.push(O);p+=4;p+=e6.Ql(C,O.hB,p);p+=4;p+=e6.Ql(C,O.mV,p);
p=I+D;var f=O.mV.Lefx;if(f){if(f.v.masterFXSwitch==null)f.v.masterFXSwitch={t:"bool",v:!0};eo.Ur(f.v)}}p=y+K}else{console.log(C.slice(p-8,p+64));
console.log($.ZA(C,p-8,64));throw Q}}return{sd:Y,wY:E,list:U,agQ:z,$$:r}};bJ.oz=function(L,C){L[0]=C};
bJ.B0=function(L){var C=new d0,U=0;$.Jv(C,U,"8BTP");U+=4;$.KC(C,U,3);U+=4;$.KC(C,U,1);U+=4;var E=[L.wY,L.sd,L.list];
for(var H=0;H<3;H++){if(E[H].length==0)continue;$.Jv(C,U,"8BIM");U+=4;var Y=["tppa","tpbd","tptp"][H];
$.Jv(C,U,Y);U+=4;var z=U;U+=4;if(Y=="tppa"){U=ar.nT(C,U,L.wY)}else if(Y=="tpbd"){U=gT.wT(C,U,L.sd)}else if(Y=="tptp"){$.KC(C,U,L.list.length);
U+=4;for(var r=0;r<L.list.length;r++){var p=L.list[r];$.jx(C,U,p[0]+"\0");U+=6+p[0].length*2;$.KC(C,U,16);
U+=4;U+=e6.GG(C,p[1],U)}}$.KC(C,z,U-z-4);while((U&3)!=0)U++;C.bF(U,0)}return C.data.slice(0,U).buffer};
function gI(){}gI.Vu=function(L,C){var U=new Uint8Array(L),E;if($.i(U,0)==U.length)E="icc";else if(U[0]=="<".charCodeAt(0))E="look";
else if($.r1(U,"LUT_3D_SIZE")!=-1)E="cube";else E="3DL";if(E!="icc"){var Y=gI.agG(U,E),z=gI.a28(Y[0],Y[1]);
U=z}var r=[];for(var H=0;H<U.length;H++)r.push(U[H]);return[{classID:"null",Dthr:{t:"bool",v:!0},Nm:{t:"TEXT",v:C?C:"file.icc"},lookupType:{t:"enum",v:{colorLookupType:"abstractProfile"}},profile:{t:"tdta",v:r}}]};
gI.B0=function(L){var C=L[0],U=new Uint8Array(C.profile.v);return U.buffer};gI.oz=function(L,C){L.Nm.v=C};
gI.a28=function(L,C){var U=new d0,E=128;U.bF(0,128);var Y=[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 H=0;H<Y.length;H++)U.data[H]=Y[H];var z=["desc","A2B0"],r=z.length,p=128+4+r*12;$.KC(U,E,r);
E+=4;for(var T=0;T<r;T++){var k=z[T];$.Jv(U,E,k);E+=4;$.KC(U,E,p);E+=4;var P=p;if(k=="desc"){$.Jv(U,P,"mluc");
P+=4;P+=4;$.KC(U,P,1);P+=4;$.KC(U,P,12);P+=4;$.Jv(U,P,"enUS");P+=4;var b="ICC by Photopea\0",Q=b.length*2+2;
$.KC(U,P,Q);P+=4;$.KC(U,P,28);P+=4;U.bF(P,Q);for(var H=0;H<b.length;H++)U.data[P+H*2+1]=b.charCodeAt(H);
P+=Q}if(k=="A2B0"){$.Jv(U,P,"mAB ");P+=4;P+=4;U.bF(P,4);U.data[P]=3;U.data[P+1]=3;P+=4;U.bF(P,4*5);P+=4*3;
$.KC(U,P,P+8-p);P+=4;P+=4;U.bF(P,20);U.data[P]=L;U.data[P+1]=L;U.data[P+2]=L;P+=16;U.data[P]=2;P+=4;
var K=L*L*L*3;U.bF(P,K*2);for(var H=0;H<K;H++)$.OH(U.data,P+H*2,Math.max(0,Math.min(65535,Math.round(C[H]*65535))));
P+=K*2}var h=P-p;while((h&3)!=0)h++;$.KC(U,E,h);E+=4;p+=h}$.KC(U,0,p);return U.data.slice(0,p)};gI.agG=function(L,C){C="LUTFormat"+C.toUpperCase();
var U=[],E=0,Y=$.IQ(L,0,L.length),z="";for(var H=0;H<L.length&&z=="";H++){if(L[H]==10)z="\n";else if(L[H]==13){z="\r";
if(L[H+1]==10)z+="\n"}}if(C=="LUTFormatCUBE"){var r=Y.split(z);for(var H=0;H<r.length;H++){if(r[H]==""||r[H][0]=="#")continue;
var p=r[H].split(" "),T=p[0];if(T=="LUT_3D_SIZE"){E=parseInt(p[1]);continue}if(["TITLE","DOMAIN_MIN","DOMAIN_MAX"].indexOf(T)!=-1)continue;
U.push(parseFloat(p[0]),parseFloat(p[1]),parseFloat(p[2]))}U=gI.OO(E,U)}else if(C=="LUTFormat3DL"){var r=Y.split(z),k=1/4095;
for(var H=0;H<r.length;H++){var P=r[H];if(P==""||P=="3DMESH"||P.startsWith("Mesh")||P[0]=="#")continue;
var p=P.split(" "),T=p[0];if(E==0){E=p.length;continue}U.push(parseFloat(p[0])*k,parseFloat(p[1])*k,parseFloat(p[2])*k)}}else if(C=="LUTFormatLOOK"){var b=new DOMParser,Q=b.parseFromString(Y,"text/xml"),K=Q.getElementsByTagName("LUT")[0],h=K.children[0].textContent;
E=parseInt(JSON.parse(h));var x=K.children[1].textContent;x=x.replace(/"/g,"").replace(/\s/g,"");var O=3*E*E*E,y=O*4,v=new Uint8Array(y);for(var H=0;H<y;H++){var i=x.charCodeAt(H*2),D=x.charCodeAt(H*2+1),I=i<58?i-48:i-55,m=D<58?D-48:D-55;v[H]=(I<<4)+m}for(var H=0;H<O;H++)U.push($.Aq(v,H<<2));U=gI.OO(E,U)}else throw C;return[E,U]};gI.a3B=function(L,C,U){var E=["#Created by www.Photopea.com","TITLE \""+U+"\"","","#LUT size","LUT_3D_SIZE "+C,"","#data domain","DOMAIN_MIN 0.0 0.0 0.0","DOMAIN_MAX 1.0 1.0 1.0","","#LUT data points"],Y=6;
for(var H=0;H<L.length;H+=3){E.push(L[H].toFixed(Y)+" "+L[H+1].toFixed(Y)+" "+L[H+2].toFixed(Y))}E.push("");
return $.RK(E.join("\n")).buffer};gI.OO=function(L,C){var U=[],E=L*L*L;for(var H=0;H<E;H++)U.push(0,0,0);
for(var Y=0;Y<L;Y++)for(var z=0;z<L;z++)for(var r=0;r<L;r++){var H=3*(r+z*L+Y*L*L),p=3*(Y+z*L+r*L*L);
U[p]=C[H];U[p+1]=C[H+1];U[p+2]=C[H+2]}return U};function e6(){}e6.Ql=function(L,C,U,E,Y){var z=U,r;if(Y==null)Y=0;
var p=$.i(L,U);if(p==0){r="";U+=4}else{r=$.m6(L,U);U+=4+2*r.length+2}if(r!="")C.__name=r;C.classID=e6.tU(L,U);
if(E)console.log("\t".repeat(Y),"- reading descriptor",C.classID,U);U+=e6.CS(L,U);var T=$.xw(L,U);U+=4;
for(var H=0;H<T;H++){var k=e6.tU(L,U);U+=e6.CS(L,U);var P=e6.FH(L,U,E,Y);C[k]=P;U+=P.size;delete P.size}return U-z};
e6.GG=function(L,C,U,E){var Y=U,z=C.__name;if(z==null)z="";z+="\0";$.jx(L,U,z);U+=4+2*z.length;e6.Zv(L,U,C.classID);
U+=e6.CS(L.data,U);$.rb(L,U,Object.keys(C).length-1-(C.__name==null?0:1));U+=4;for(var r in C){if(r=="classID")continue;
if(r=="__name")continue;e6.Zv(L,U,r);U+=e6.CS(L.data,U);U+=e6.Oo(L,U,C[r])}return U-Y};e6.FH=function(L,C,U,E){var Y=C,z=$.ZA(L,C,4);
C+=4;var r={size:0,t:z,v:null};if(U)console.log("\t".repeat(E),"reading key",z,Y);switch(z){case"obj ":case"VlLs":r.v=[];
var p=$.i(L,C);C+=4;for(var H=0;H<p;H++){var T=e6.FH(L,C,U,E+1);C+=T.size;delete T.size;r.v.push(T)}break;
case"UntF":r.v={type:$.ZA(L,C,4),val:$.HD(L,C+4)};C+=12;break;case"doub":r.v=$.HD(L,C);C+=8;break;case"bool":r.v=L[C]==1;
C+=1;break;case"long":r.v=$.xw(L,C);C+=4;break;case"comp":r.v=$.xw(L,C+4);C+=8;break;case"Objc":r.v={};
var k=e6.Ql(L,r.v,C,U,E+1);C+=k;break;case"TEXT":var P=$.i(L,C);if(P==0){r.v="";C+=4}else{r.v=$.m6(L,C);
C+=4+r.v.length*2+2}break;case"enum":var b=e6.tU(L,C);C+=e6.CS(L,C);var Q=e6.tU(L,C);C+=e6.CS(L,C);r.v={};
r.v[b]=Q;break;case"tdta":var K=$.xw(L,C);C+=4;r.v=[];for(var H=0;H<K;H++)r.v.push(L[C+H]);C+=K;break;
case"ObAr":var h=$.i(L,C);C+=4;var x=$.m6(L,C);C+=4+2*x.length+2;if(x!="")throw x;var O=e6.tU(L,C);C+=4+Math.max(4,O.length);
r.v={classID:O,arr:[]};var y=$.i(L,C);C+=4;for(var H=0;H<y;H++){var O=e6.tU(L,C);C+=4+Math.max(4,O.length);
var b=$.ZA(L,C,4);C+=4;var v=$.ZA(L,C,4);C+=4;var i={id:O,type:b,uID:v,arr:[]};r.v.arr.push(i);var D=$.i(L,C,4);
C+=4;for(var I=0;I<D;I++){var m=$.HD(L,C);C+=8;i.arr.push(m)}}break;case"Pth ":var f=C,K=$.i(L,C);C+=4;
var A=$.ZA(L,C,4);C+=4;var d=$.Nl(L,C);C+=4;var g=$.afU(L,C);C+=4+g.length*2;r.v={sig:A,pth:g};break;
case"Clss":case"type":case"rele":var g=$.m6(L,C);C+=4+g.length*2+2;var X=e6.tU(L,C);C+=4+Math.max(4,X.length);
r.v={classID:X};if(g!="")r.v.__name=g;if(z=="rele"){r.v.val=$.xw(L,C);C+=4}break;case"prop":case"Enmr":case"indx":case"name":var n=e6.t5[z],g=$.m6(L,C);
C+=4+g.length*2+2;if(g.length!=0){console.log(z,g);throw"e"}r.v={};for(var H=0;H<n.length;H++){var X=e6.tU(L,C);
C+=4+Math.max(4,X.length);r.v[n[H]]=X}if(z=="name"){var g=$.m6(L,C);C+=4+g.length*2+2;r.v.val=g}if(z=="indx"){r.v.val=$.i(L,C);
C+=4}break;case"alis":var K=$.i(L,C);C+=4;r.v=$.ZA(L,C,K);C+=K;break;default:{console.log("unknown oskey: "+z+", "+Y);
throw"e";return r}}if(U){console.log("\t".repeat(E),r.v);console.log("\t".repeat(E),"======",C)}r.size=C-Y;
return r};e6.t5={name:["classID"],prop:["classID","keyID"],Enmr:["classID","typeID","enum"],indx:["classID"]};
e6.Oo=function(L,C,U){var E=C,Y=U.t;U=U.v;$.Jv(L,C,Y);C+=4;switch(Y){case"obj ":case"VlLs":$.rb(L,C,U.length);
C+=4;for(var z=0;z<U.length;z++){var r=e6.Oo(L,C,U[z]);C+=r}break;case"UntF":$.Jv(L,C,U.type);$.ZN(L,C+4,U.val);
C+=12;break;case"doub":$.ZN(L,C,U);C+=8;break;case"bool":$.tM(L,C,U?1:0,1);C+=1;break;case"long":$.rb(L,C,U);
C+=4;break;case"comp":$.rb(L,C+4,U);C+=8;break;case"Objc":var r=e6.GG(L,U,C);C+=r;break;case"TEXT":$.jx(L,C,U+"\0");
C+=4+U.length*2+2;break;case"enum":var p=Object.keys(U)[0],T=U[p];e6.Zv(L,C,p);C+=e6.CS(L.data,C);e6.Zv(L,C,T);
C+=e6.CS(L.data,C);break;case"tdta":$.KC(L,C,U.length);C+=4;$.BC(L,C,U);C+=U.length;break;case"ObAr":$.KC(L,C,U.arr[0].arr.length);
C+=4;$.jx(L,C,"\0");C+=6;e6.Zv(L,C,U.classID);C+=4+Math.max(4,U.classID.length);$.KC(L,C,U.arr.length);
C+=4;for(var H=0;H<U.arr.length;H++){var k=U.arr[H];e6.Zv(L,C,k.id);C+=4+Math.max(4,k.id.length);$.Jv(L,C,k.type);
C+=4;$.Jv(L,C,k.uID);C+=4;$.KC(L,C,k.arr.length);C+=4;for(var z=0;z<k.arr.length;z++){$.ZN(L,C,k.arr[z]);
C+=8}}break;case"Pth ":var P=U.pth.length*2+4+8;$.KC(L,C,P);C+=4;$.Jv(L,C,U.sig);C+=4;$.kE(L,C,P);C+=4;
$.af8(L,C,U.pth);C+=U.pth.length*2+4;break;case"Clss":case"type":case"rele":var b=U.__name;if(b==null)b="";
$.jx(L,C,b+"\0");C+=4+b.length*2+2;var Q=U.classID;e6.Zv(L,C,Q);C+=4+Math.max(4,Q.length);if(Y=="rele"){$.rb(L,C,U.val);
C+=4}break;case"prop":case"Enmr":case"indx":case"name":var K=e6.t5[Y];$.KC(L,C,1);C+=6;for(var H=0;H<K.length;
H++){var Q=U[K[H]];e6.Zv(L,C,Q);C+=4+Math.max(4,Q.length)}if(Y=="name"){$.jx(L,C,U.val+"\0");C+=4+U.val.length*2+2}if(Y=="indx"){$.KC(L,C,U.val);
C+=4}break;case"alis":var P=U.length;$.KC(L,C,P);C+=4;$.Jv(L,C,U);C+=P;break;default:console.log("unknown oskey: "+Y);
C=E;break}return C-E};e6.tU=function(L,C){var U=$.xw(L,C);if(U>1e3)throw"e";if(U==0)U=4;return $.ZA(L,C+4,U).trim()};
e6.CS=function(L,C){var U=$.xw(L,C);return U==0?8:4+U};e6.Zv=function(L,C,U){var E="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 flow trim then else".split(" "),Y=4<U.length||E.indexOf(U)!=-1;
$.rb(L,C,Y?U.length:0);$.Jv(L,C+4,U);if(U.length<4&&!Y){var z="";for(var H=U.length;H<4;H++)z+=" ";$.Jv(L,C+4+U.length,z)}};
e6.aeW=function(L){var C={};for(var U in L){if(U=="classID")C[U]=L[U];else if(U=="__name")C[U]=L[U];
else C[U]=e6.gH(L[U])}return C};e6.gH=function(L){if(L.am=="Objc")return e6.aeW(L.v);else if(L.am=="VlLs"){var C=[];
for(var H=0;H<L.v.length;H++)C.push(e6.gH(L.v[H]));return C}else if(L.am=="UntF")return L.v.val;else return L.v};
function eo(){}eo.Td=function(L,C,U,E,Y,z){while(C<U){var r=$.ZA(L,C,4);C+=4;if(r!="8BIM"&&r!="8B64"){console.log("layer information signature error! "+r,"PSB = "+Y);
alert("Error in PSD file: wrong signature.");return U}var p=$.ZA(L,C,4);C+=4;var T=$.xw(L,C);C+=4;if(Y&&"LMsk Lr16 Lr32 Layr Mt16 Mt32 Mtrn Alph FMsk lnk2 lnkE FEid FXid PxSD extn cinf artd".split(" ").indexOf(p)!=-1){T=T<<32|$.xw(L,C);
C+=4}if(Y&&["pths"].indexOf(p)!=-1){T=T<<32|$.xw(L,C);C+=4}var k=["lrFX","PlLd"];if(k.indexOf(p)!=-1){if(T%4!=0)T+=4-T%4;
C+=T;continue}switch(p){case"iOpa":E[p]=L[C];break;case"brst":E[p]=[1,1,1];for(var H=0;H<T;H+=4)E[p][$.i(L,C+H)]=0;
break;case"knko":E[p]=L[C];break;case"infx":E[p]=L[C];break;case"clbl":E[p]=L[C];break;case"lmgm":E[p]=L[C];
break;case"vmgm":E[p]=L[C];break;case"lyid":E[p]=$.i(L,C);break;case"lsct":E[p]={type:$.i(L,C)};if(T>=12)E[p].B4=$.ZA(L,C+8,4);
break;case"lsdk":E.lsct={type:$.i(L,C)};break;case"lyvr":E[p]=$.i(L,C);break;case"lnsr":var P={artb:1,bgnd:1,cont:1,layr:1,lset:1,rend:1,shap:1,user:1,____:null};
E[p]=$.ZA(L,C,4);break;case"lspf":E[p]=$.i(L,C);break;case"lclr":E[p]=$.lb(L,C);break;case"luni":E[p]=$.jf(L,C);
break;case"fxrp":E[p]=new hZ($.HD(L,C),$.HD(L,C+8));break;case"artb":case"artd":E[p]={};e6.Ql(L,E[p],C+4);
break;case"SoCo":E[p]={};e6.Ql(L,E[p],C+4);break;case"GdFl":E[p]={};e6.Ql(L,E[p],C+4);eo.dn(E[p],p);
break;case"PtFl":E[p]={};e6.Ql(L,E[p],C+4);eo.dn(E[p],p);break;case"CgEd":var b=E.brit=hi.Q4("brit"),Q={};
e6.Ql(L,Q,C+4);b.Brgh.v=Q.Brgh?Q.Brgh.v:0;b.Cntr.v=Q.Cntr?Q.Cntr.v:0;b.useLegacy.v=Q.useLegacy?Q.useLegacy.v:0;
break;case"brit":if(E.brit==null){var b=E.brit=hi.Q4("brit"),Q={};b.Brgh.v=$.sZ(L,C);b.Cntr.v=$.sZ(L,C+2);
b.useLegacy.v=!1}break;case"levl":var K=L.buffer.slice(C,C+T);E[p]=d5.Vu(K);break;case"curv":E[p]=fh.Ou(L,C,T);
break;case"expA":var h=$.lb(L,C),x=E[p]=hi.Q4("expA");x.Exps.v=$.qV(L,C+2);x.Ofst.v=$.qV(L,C+6);x.gammaCorrection.v=$.qV(L,C+10);
break;case"vibA":E[p]={};e6.Ql(L,E[p],C+4);break;case"hue2":E[p]=hK.Ou(L,C,T);break;case"blnc":var x=E[p]=hi.Q4(p);
x.PrsL.v=L[C+18]==1;var O=["ShdL","MdtL","HghL"];for(var H=0;H<3;H++)for(var y=0;y<3;y++)x[O[H]].v[y].v=$.sZ(L,C+H*6+y*2);
break;case"blwh":var v={};e6.Ql(L,v,C+4);var x=hi.Q4(p),i="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" ");
for(var H=0;H<i.length;H++){x[i[H]]=v[i[H]];delete v[i[H]]}E[p]=x;break;case"phfl":var x=E[p]=hi.Q4(p),D=x.Clr.v,h=$.lb(L,C);
if(h==3){var I=[$.i(L,C+2),$.i(L,C+6),$.i(L,C+10)],m=32768,f=c.TP(I[0]/m,I[1]/m,I[2]/m);D.Lmnc.v=f.QD;
D.A.v=f.R;D.B.v=f.O}if(h==2){var A=$.lb(L,C+2);if(A!=7)throw"e";D.Lmnc.v=$.sZ(L,C+4)/100;D.A.v=$.sZ(L,C+6)/100;
D.B.v=$.sZ(L,C+8)/100}var d=C+2+(h==3?12:10);x.Dnst.v=$.i(L,d);d+=4;x.PrsL.v=L[d]==1;break;case"mixr":var g={Aw:$.lb(L,C+2)==1,G:[]};
for(var H=0;H<20;H++)g.G.push($.sZ(L,C+4+H*2));E[p]=eh.I$(g);break;case"clrL":case"rplc":E[p]={};e6.Ql(L,E[p],C+6);
break;case"nvrt":E[p]={};break;case"post":E[p]=hi.Q4("post");E[p].Lvls.v=$.lb(L,C);break;case"thrs":E[p]=hi.Q4("thrs");
E[p].Lvl.v=$.lb(L,C);break;case"grdm":var X={rev:L[C+2]==1,a3v:L[C+3]==1},n=C+4,R=$.jf(L,n);n+=4+R.length*2;
var l=g9.K_(L,n,R),w=l[0];n=l[1];var V=$.lb(L,n);n+=2;w.Intr.v=$.lb(L,n);n+=2;var F=$.lb(L,n);n+=2;X.mode=$.lb(L,n);
n+=2;X._B=$.i(L,n);n+=4;X.alC=$.lb(L,n)==1;n+=2;X.aa5=$.lb(L,n)==1;n+=2;X.akh=$.i(L,n);n+=4;X.aen=$.lb(L,n);
n+=2;X.mI=[];for(var H=0;H<4;H++)X.mI.push($.lb(L,n+H*2));n+=8;X.n6=[];for(var H=0;H<4;H++)X.n6.push($.lb(L,n+H*2));
n+=8;var Z=$.lb(L,n);n+=2;var M=hi.Q4("grdm");M.Rvrs.v=X.rev;M.Grad.v=w;E[p]=M;break;case"selc":E[p]=iQ.Ou(L,C,T);
break;case"vmsk":case"vsms":var a=E.vmsk=new o.mR,e=$.xw(L,C+4),N=(e>>0&1)==1;a.zF=(e>>1&1)==0;a.isEnabled=(e>>2&1)==0;
a.n=fA.LB(L,C+8,T-8,z.d,z.v);break;case"shmd":E[p]={};var s=$.i(L,C),d=C+4;for(var H=0;H<s;H++){var r=$.ZA(L,d,4);
d+=4;var f5=$.ZA(L,d,4);d+=4;var dx=L[d];d++;if(Math.max(L[d],L[d+1],L[d+2])!=0)throw"e";d+=3;var fq=$.i(L,d);
d+=4;if(f5=="cust"||f5=="cmls"||f5=="extn"||f5=="mlst"){var i9=$.i(L,d);if(i9!=16)d+=4;if($.i(L,d)==16){var v={};
e6.Ql(L,v,d+4,!1);E[p][f5]=v;if(f5=="cmls")hO.Ie.acH(E[p][f5])}}else{console.log("unknown shmd key: "+f5+", size: "+fq)}d+=fq}break;
case"shpa":var h=$.i(L,C),e8=$.i(L,C+4);if(e8!=0)console.log("some patterns present!");break;case"TySh":var S=E[p]={},h=$.lb(L,C);
S.J=$.RB(L,C+2);var fs=$.lb(L,C+2+48);S.Au={};var bz=e6.Ql(L,S.Au,C+56),g6=b5.vE();for(var al in g6)if(S.Au[al]==null)S.Au[al]=g6[al];
S.DN={};var bj=e6.Ql(L,S.DN,C+56+bz+6);S.uv=$.an_(L,C+56+bz+6+bj);S.Se=eB.Vu(S.Au.EngineData.v);b5.aaK(S.Se.EngineDict.StyleRun.RunArray);
if(S.Se.ResourceDict==null)S.Se.ResourceDict=JSON.parse(JSON.stringify(S.Se.DocumentResources));delete S.Au.EngineData;
break;case"lfx2":case"lmfx":case"lfxs":var bE=$.i(L,C),eN=$.i(L,C+4);E.lmfx={};var bz=e6.Ql(L,E.lmfx,C+8);
eo.Ur(E.lmfx);break;case"FMsk":E[p]=$.LH(L,C,T);break;case"Txt2":E[p]={};E[p].raw=$.LH(L,C,T);E[p].S3=a2.Vu(E[p].raw);
break;case"Patt":E[p]=ar.J4(L,C,T);break;case"SoLd":var dk=$.ZA(L,C,4),hj=$.i(L,C+4),iN=$.i(L,C+8);E[p]={};
var dK=e6.Ql(L,E[p],C+12);if(E[p].nonAffineTransform==null)E[p].nonAffineTransform=JSON.parse(JSON.stringify(E[p].Trnf));
if(E[p].Impr==null)E[p].Impr={t:"Objc",v:{__name:"None",classID:"none"}};break;case"vstk":case"pths":var hj=$.i(L,C);
E[p]={};var dK=e6.Ql(L,E[p],C+4);break;case"vscg":var f5=$.ZA(L,C,4),hj=$.i(L,C+4);E[f5]={};var dK=e6.Ql(L,E[f5],C+8);
eo.dn(E[f5],f5);break;case"vogk":var ch=$.i(L,C),hj=$.i(L,C+4);E[p]={};var dK=e6.Ql(L,E[p],C+8);E[p]=E[p].keyDescriptorList.v;
for(var H=0;H<E[p].length;H++){}break;case"lnk2":case"lnkD__":case"lnk3__":E[p]=[];var n=C;while(n<C+T){var hP=new o.wQ;
E[p].push(hP);var F=$.M_(L,n);n+=8;var d2=n;hP.type=$.ZA(L,n,4);n+=4;if(hP.type!="liFD"){alert("Unknown Linked Layer type: "+hP.type);
break;throw hP.type}hP.M6=$.i(L,n);n+=4;var hr=$.Q5(L,n);n+=1+hr.oB.length;hP.Ea=hr.oB;hP.GQ=$.m6(L,n);
n+=4+hP.GQ.length*2+2;hP.L$=$.ZA(L,n,4);n+=4;hP.YO=$.ZA(L,n,4);n+=4;var fv=$.M_(L,n);n+=8;hP.open=L[n];
n+=1;if(hP.open!=0){var f3={},bz=e6.Ql(L,f3,n+4);if(bz%4!=0)bz+=4-bz%4;console.log(f3);n+=bz+4}hP.open=0;
hP.raw=$.LH(L,n,fv);n=d2+F;if(F%4!=0)n+=4-F%4}break;case"FEid":var n=C;E[p]=[];var dp=n+T,h=$.i(L,n);
n+=4;while(n<dp){n+=4;var F=$.i(L,n);n+=4;var l={};E[p].push(l);l.id=$.Q5(L,n).oB;n+=l.id.length+1;var h=$.i(L,n);
n+=4;n+=4;var go=$.i(L,n);n+=4;l.rect=$.lD(L,n);n+=16;var d6=$.i(L,n);n+=4;var iB=$.i(L,n);n+=4;var hS=new c.Ry(0);
for(var H=0;H<iB+2;H++){var eF=$.i(L,n);n+=4;if(eF!=0){n+=4;var bQ=$.i(L,n),iP=null;n+=4;if(H<3||H==25)iP=b8.LJ(!0,d6,L,l.rect.d,l.rect.v,n,bQ);
if(H==0)hS.h=iP;if(H==1)hS.P=iP;if(H==2)hS.O=iP;if(H==25)hS.R=iP;n+=bQ}}l.buffer=c.F(l.rect.X()*4);c.qF(hS,l.buffer);
c.Xb(l);var d8=L[n];n++;if(d8!=0){l.r=new o.LF;l.r.rect=$.lD(L,n);n+=16;n+=4;var a6=$.i(L,n);n+=4;l.r.channel=b8.LJ(!0,d6,L,l.r.rect.d,l.r.rect.v,n,a6);
l.r.color=255;l.r.Jx();n+=a6}if(F%4!=0)n+=4-F%4}break;case"Lr16":f7.k4(z,L,C);break;default:console.log("unknown layer tag: "+p+", size: "+T);
break}var am="Lr16 LMsk Txt2 artd extd luni pths extn tySh lfx2".split(" ");if(am.indexOf(p)==-1)if(T%4!=0)console.log("size not multiple of 4!!!",p);
if(p!="luni"&&p!="TySh"&&p!="tySh"&&p!="lfx2")if(T%4!=0)T+=4-T%4;C+=T}var fj=[];for(var H=0;H<fj.length;
H++)delete E[fj[H]];return C};eo.vA=function(L,C,U,E){for(var Y in U)if(U[Y]==null){alert("A bug occured (see console).");
console.log("Please, report a bug, that \""+Y+"\" tag was present with a null value.");delete U[Y]}for(var Y in U){$.Jv(L,C,"8BIM");
C+=4;var z=C,r=0;$.Jv(L,C,Y);C+=4;$.rb(L,C,0);C+=4;switch(Y){case"iOpa":$.tM(L,C,U[Y],1);r=4;break;case"brst":r=0;
for(var H=0;H<3;H++)if(U[Y][H]==0){$.KC(L,C+r,H);r+=4}break;case"knko":$.tM(L,C,U[Y],1);r=4;break;case"infx":$.tM(L,C,U[Y],1);
r=4;break;case"clbl":$.tM(L,C,U[Y],1);r=4;break;case"lmgm":$.tM(L,C,U[Y],1);r=4;break;case"vmgm":$.tM(L,C,U[Y],1);
r=4;break;case"lyid":$.KC(L,C,U[Y]);r=4;break;case"lsct":$.KC(L,C,U[Y].type);r=4;if(U[Y].B4){$.Jv(L,C+4,"8BIM");
$.Jv(L,C+8,U[Y].B4);r=12}break;case"lyvr":$.KC(L,C,U[Y]);r=4;break;case"lnsr":$.Jv(L,C,U[Y]);r=4;break;
case"lspf":$.KC(L,C,U[Y]);r=4;break;case"lclr":$._h(L,C,U[Y]);r=8;break;case"luni":$.jx(L,C,U[Y]);r=4+2*U[Y].length;
break;case"fxrp":$.ZN(L,C,U[Y].x);$.ZN(L,C+8,U[Y].y);r=16;break;case"artb":case"artd":$.KC(L,C,16);r=e6.GG(L,U[Y],C+4)+4;
break;case"SoCo":$.KC(L,C,16);r=e6.GG(L,U[Y],C+4)+4;break;case"GdFl":$.KC(L,C,16);r=e6.GG(L,U[Y],C+4)+4;
break;case"PtFl":$.KC(L,C,16);r=e6.GG(L,U[Y],C+4)+4;break;case"CgEd":var p={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}},T=p,k=U[Y];
T.Brgh.v=k.Brgh.v;T.Cntr.v=k.Cntr.v;T.useLegacy.v=k.useLegacy.v;$.KC(L,C,16);r=e6.GG(L,p,C+4)+4;break;
case"brit":L.bF(C,8);r=8;break;case"levl":var P=new d0;r=d5.B0(P,U[Y]);$.BC(L,C,P.data);break;case"curv":r=fh.Rd(L,C,U[Y]);
break;case"expA":r=14;L.bF(C,14);$.OH(L.data,C,1);$.ZB(L.data,C+2,U[Y].Exps.v);$.ZB(L.data,C+6,U[Y].Ofst.v);
$.ZB(L.data,C+10,U[Y].gammaCorrection.v);break;case"vibA":$.KC(L,C,16);r=e6.GG(L,U[Y],C+4)+4;break;case"hue2":r=hK.Rd(L,C,U[Y]);
break;case"blnc":r=19;L.bF(C,r);var b=["ShdL","MdtL","HghL"];for(var H=0;H<3;H++){var Q=U[Y][b[H]].v;
for(var K=0;K<3;K++)Q.push($.KX(L.data,C+H*6+K*2,Q[K].v))}L.data[C+18]=U[Y].PrsL.v?1:0;break;case"blwh":var p={classID:"null",bwPresetKind:{t:"long",v:1},blackAndWhitePresetFileName:{t:"TEXT",v:""}},h="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" ");
for(var H=0;H<h.length;H++){p[h[H]]=U[Y][h[H]]}$.KC(L,C,16);r=e6.GG(L,p,C+4)+4;break;case"phfl":$._h(L,C,2);
var x=U[Y].Clr.v;$._h(L,C+2,7);$._h(L,C+4,Math.round(x.Lmnc.v*100));$._h(L,C+6,Math.round(x.A.v*100));
$._h(L,C+8,Math.round(x.B.v*100));$._h(L,C+10,0);var O=C+2+10;L.bF(O,5);$.Iy(L.data,O,U[Y].Dnst.v);O+=4;
L.data[O]=U[Y].PrsL.v?1:0;O++;r=O-C;break;case"mixr":r=44;L.bF(C,r);var y=eh.zu(U[Y]);$.OH(L.data,C,1);
$.OH(L.data,C+2,y.Aw?1:0);for(var H=0;H<20;H++)$.KX(L.data,C+4+H*2,y.G[H]);break;case"clrL":case"rplc":$._h(L,C,1);
$.KC(L,C+2,16);r=e6.GG(L,U[Y],C+6)+6;break;case"nvrt":r=0;break;case"post":$._h(L,C,U[Y].Lvls.v);r=2;
break;case"thrs":$._h(L,C,U[Y].Lvl.v);r=2;break;case"grdm":var v={rev:U[Y].Rvrs.v,a3v:!1,mode:0,_B:867527939,alC:!1,aa5:!0,akh:2048,aen:3,mI:[0,0,0,0],n6:[32768,32768,32768,32768]},i=U[Y].Grad.v;
L.bF(C,4);$.OH(L.data,C,1);L.data[C+2]=v.rev?1:0;L.data[C+3]=v.a3v?1:0;var D=C+4;$.jx(L,D,i.Nm.v);D+=4+i.Nm.v.length*2;
D=g9.ajn(L,D,i);$._h(L,D,2);D+=2;$._h(L,D,i.Intr.v);D+=2;$._h(L,D,32);D+=2;$._h(L,D,v.mode);D+=2;$.KC(L,D,v._B);
D+=4;$._h(L,D,v.alC?1:0);D+=2;$._h(L,D,v.aa5?1:0);D+=2;$.KC(L,D,v.akh);D+=4;$._h(L,D,v.aen);D+=2;for(var H=0;
H<4;H++)$._h(L,D+H*2,v.mI[H]);D+=8;for(var H=0;H<4;H++)$._h(L,D+H*2,v.n6[H]);D+=8;D+=2;r=D-C;break;case"selc":r=iQ.Rd(L,C,U[Y]);
break;case"FMsk":$.BC(L,C,U[Y]);r=U[Y].length;break;case"Txt2":var I=new d0,m=a2.cd(U[Y].S3,I),f=c.F(m,!0);
for(var H=0;H<m;H++)f[H]=I.data[H];$.BC(L,C,f);r=f.length;break;case"vmsk":var A=U[Y],d=0;$.KC(L,C,3);
if(!A.zF)d+=1<<1;if(!A.isEnabled)d+=1<<2;$.KC(L,C+4,d);r=8;var g=A.n.length;L.bF(C+8,g*26);fA.g7(L.data,C+8,A.n,E.d,E.v);
r+=g*26;break;case"shmd":$.KC(L,C,Object.keys(U[Y]).length);var O=C+4;for(var X in U[Y]){$.Jv(L,O,"8BIM");
O+=4;$.Jv(L,O,X);O+=4;$.KC(L,O,0);O+=4;$.KC(L,O,0);O+=4;$.KC(L,O,16);O+=4;var n=e6.GG(L,U[Y][X],O);if(n%4!=0)n+=4-n%4;
$.KC(L,O-8,n+4);O+=n}r=O-C;break;case"TySh":var O=C;$.lB(L,O,1);O+=2;var R=U[Y],I=new d0;R.Se.DocumentResources=JSON.parse(JSON.stringify(R.Se.ResourceDict));
var m=eB.cd(R.Se,I),f=c.F(m,!0);for(var H=0;H<m;H++)f[H]=I.data[H];R.Au.EngineData={t:"tdta",v:f};var l=R.Se.EngineDict.Editor.Text;
R.Au.Txt.v=l.substring(0,l.length-1);$.a9t(L,O,R.J);O+=48;$.lB(L,O,50);O+=2;$.KC(L,O,16);O+=4;O+=e6.GG(L,R.Au,O);
$.lB(L,O,1);O+=2;$.KC(L,O,16);O+=4;O+=e6.GG(L,R.DN,O);$.ab_(L,O,R.uv);O+=16;r=O-C;break;case"lmfx":$.KC(L,C,0);
$.KC(L,C+4,16);var p=JSON.parse(JSON.stringify(U[Y])),w=!1;eo.fK(p);for(var H=0;H<gM.cp.length;H++)if(p[gM.cp[H]]!=null)w=!0;
$.Jv(L,z,w?"lmfx":"lfx2");r=e6.GG(L,p,C+8)+8;break;case"Patt":var O=ar.nT(L,C,U[Y]);r=O-C;break;case"SoLd":$.Jv(L,C,"soLD");
$.KC(L,C+4,4);$.KC(L,C+8,16);r=e6.GG(L,U[Y],C+12)+12;break;case"vstk":case"pths":$.KC(L,C,16);r=e6.GG(L,U[Y],C+4)+4;
break;case"vscg__":$.Jv(L,C,U[Y].key);$.KC(L,C+4,16);r=e6.GG(L,U[Y].G,C+8)+8;break;case"vogk":$.KC(L,C,1);
$.KC(L,C+4,16);c.zf.a42(U[Y]);for(var H=0;H<U[Y].length;H++){var V=U[Y][H].v.keyOriginResolution;if(V)V.v=E._Q}var F={classID:"null",keyDescriptorList:{t:"VlLs",v:U[Y]}};
r=e6.GG(L,F,C+8)+8;break;case"lnkD":case"lnk2":case"lnk3":var D=C;for(var H=0;H<U[Y].length;H++){var Z=U[Y][H],M=D;
$.eH(L,D,0);D+=8;$.Jv(L,D,Z.type);D+=4;$.KC(L,D,Z.M6);D+=4;L.bF(D,1);L.data[D]=Z.Ea.length;D++;$.Jv(L,D,Z.Ea);
D+=Z.Ea.length;$.jx(L,D,Z.GQ+"\0");D+=4+Z.GQ.length*2+2;$.Jv(L,D,Z.L$);D+=4;$.Jv(L,D,Z.YO);D+=4;$.eH(L,D,Z.raw.length);
D+=8;L.bF(D,1);L.data[D]=Z.open;D++;$.BC(L,D,Z.raw);D+=Z.raw.length;$.KC(L,D,1);D+=4;D+=11;var a=D-M-8;
$.eH(L,M,a);if(a%4!=0){L.bF(D,4-a%4);D+=4-a%4}}r=D-C;break;case"FEid":var D=C;$.KC(L,D,3);D+=4;for(var e=0;
e<U[Y].length;e++){var N=U[Y][e];D+=4;var J=D;D+=4;$.bq(L,D,N.id);D+=N.id.length+1;$.KC(L,D,1);D+=4;
D+=4;var s=D;D+=4;$.Vk(L,D,N.rect);D+=16;$.KC(L,D,8);D+=4;$.KC(L,D,24);D+=4;var f5=new c.Ry(N.rect.X());
c.df(N.buffer,f5);for(var H=0;H<24+2;H++){var dx=null;if(H==0)dx=f5.h;if(H==1)dx=f5.P;if(H==2)dx=f5.O;
if(H==25)dx=f5.R;$.KC(L,D,dx!=null?1:0);D+=4;if(dx!=null){D+=4;var fq=D;D+=4;L.bF(D,N.rect.X()+2);D=b8.t1(dx,L.data,N.rect.d,N.rect.v,D,3);
$.KC(L,fq,D-(fq+4))}}$.KC(L,s,D-(s+4));L.bF(D,1);L.data[D]=N.r?1:0;D++;if(N.r!=null){var i9=N.r.rect,e8=N.r.channel;
i9=N.rect;e8=c.F(i9.X());e8.fill(N.r.color);c.zM(N.r.channel,N.r.rect,e8,i9);$.Vk(L,D,i9);D+=16;D+=4;
var S=D;D+=4;L.bF(D,i9.X()+2);D=b8.t1(e8,L.data,i9.d,i9.v,D,3);$.KC(L,S,D-(S+4))}var a=D-(J+4);$.KC(L,J,a);
if(a%4!=0)D+=4-a%4}r=D-C;break;default:console.log("unknown layer tag: "+Y+", size: "+r);C-=12;continue}var fs=["Txt2","artd","extd","luni","pths"];
if(fs.indexOf(Y)==-1)if(r%4!=0)r+=4-r%4;$.rb(L,C-4,r);if(Y!="luni"&&Y!="TySh")if(r%4!=0)r+=4-r%4;C+=r}return C};
eo.Ur=function(L){for(var H=0;H<gM.order.length;H++){var C=gM.order[H],U=gM.cp[H];if(L[U]==null)L[U]={t:"VlLs",v:[]};
if(L[C]!=null){L[U].v.push(L[C]);delete L[C]}var E=[];for(var Y=0;Y<L[U].v.length;Y++){var z=L[U].v[Y];
if(z.v.present==null||z.v.present.v==!0)E.push(z)}L[U].v=E}};eo.fK=function(L){for(var H=0;H<gM.order.length;
H++){var C=gM.order[H],U=gM.cp[H],E=L[U].v.length;if(E==0){delete L[U];continue}if(E==1){L[C]=L[U].v[0];
delete L[U];continue}}};eo.dn=function(L,C){if(C=="GdFl"){if(L.Angl==null)L.Angl={v:{type:"#Ang",val:0},t:"UntF"};
if(L.Algn==null)L.Algn={v:!0,t:"bool"};if(L.Scl==null)L.Scl={v:{type:"#Prc",val:100},t:"UntF"};if(L.Ofst==null)L.Ofst={v:{classID:"Pnt",Hrzn:{v:{type:"#Prc",val:0},t:"UntF"},Vrtc:{v:{type:"#Prc",val:0},t:"UntF"}},t:"Objc"};
if(L.Rvrs==null)L.Rvrs={v:!1,t:"bool"};if(L.Dthr==null)L.Dthr={v:!1,t:"bool"}}if(C=="PtFl"){if(L.Algn==null)L.Algn={v:!0,t:"bool"};
if(L.Scl==null)L.Scl={v:{type:"#Prc",val:100},t:"UntF"};if(L.phase==null)L.phase={v:{classID:"Pnt",Hrzn:{v:0,t:"doub"},Vrtc:{v:0,t:"doub"}},t:"Objc"}}};
eo.clone=function(L,C){var U={};if(L=="TySh"){U.J=C.J.clone();U.Au=JSON.parse(JSON.stringify(C.Au));
U.DN=JSON.parse(JSON.stringify(C.DN));U.uv=C.uv.clone();U.Se=JSON.parse(JSON.stringify(C.Se));if(C.add)U.add={vmsk:C.add.vmsk.clone(),vogk:JSON.parse(JSON.stringify(C.add.vogk))};
return U}else if(L=="fxrp")return C.clone();else if(L=="vmsk")return C.clone();else return JSON.parse(JSON.stringify(C))};
function cY(L,C){}cY.Vu=function(L,C,U,E){E=cY.a1_(L,C,U,E);return E};cY.cd=function(L,C,U,E,Y){E=cY.adB(L,C,U,E,Y);
return E};cY.a1_=function(L,C,U,E){var Y=E;L.rect=$.lD(U,E);E+=16;var z=$.lb(U,E);E+=2;L.Pl=[];var r=C.OV;
for(var H=0;H<z;H++){L.Pl[H]={id:$.sZ(U,E),length:(r?$.M_:$.i)(U,E+2)};E+=r?10:6}var p=$.ZA(U,E,4);E+=4;
if(p!="8BIM"){console.log("Invalid Blend mode signature: "+p);alert("Error in Photoshop file: wrong signature.");
throw"e"}L.B4=$.ZA(U,E,4);E+=4;L.opacity=U[E];E+=1;L.l$=U[E]==1;E+=1;L.bP=U[E];E+=1;if(U[E]!=0)console.log("error in filler!");
E+=1;var T=$.i(U,E);E+=4;var k=E;E=cY.abk(L,U,E);E=cY.a2f(L,U,E);var P=$.Q5(U,E);L.name=P.oB;E+=P.length;
if(P.length%4!=0)E+=4-P.length%4;E=eo.Td(U,E,k+T,L.add,r,C);if(L.OG){var b=L.OG;if(L.xV()){L.xV().Ve=b[0];
L.xV().hY=b[1]}if(L.add.vmsk){L.add.vmsk.Ve=b[2];L.add.vmsk.hY=b[3]}}if(L.add.lsct){if(L.add.lsct.B4)L.B4=L.add.lsct.B4;
L.add.lsct=L.add.lsct.type}return E};cY.adB=function(L,C,U,E,Y){var z=E;$.Vk(U,E,L.rect);E+=16;var r=L.mn();
$._h(U,E,r.length);E+=2;Y.push(E);for(var H=0;H<r.length;H++){$.lB(U,E,r[H]);$.KC(U,E+2,0);E+=6}$.Jv(U,E,"8BIM");
E+=4;$.Jv(U,E,L.B4);E+=4;$.tM(U,E,L.opacity,1);E+=1;$.tM(U,E,L.l$?1:0,1);E+=1;$.tM(U,E,L.bP,1);E+=1;
$.tM(U,E,0,1);E+=1;var p=E;$.KC(U,E,0);E+=4;var T=E;E=cY.a13(L,U,E);E=cY.a3f(L,U,E);var k=$.bq(U,E,L.name.slice(0,255));
E+=k;if(k%4!=0)E+=4-k%4;if(L.add.lsct){L.add.lsct={type:L.add.lsct};if(L.B4=="pass"){L.add.lsct.B4="pass";
L.B4="norm"}}if(L.B4=="pass")L.add.lsct={type:L.add.lsct,B4:"pass"};if(L.add.brit)L.add.CgEd=L.add.brit;
E=eo.vA(U,E,L.add,C);delete L.add.CgEd;if(L.add.lsct){if(L.add.lsct.B4)L.B4=L.add.lsct.B4;L.add.lsct=L.add.lsct.type}var P=E-T;
$.KC(U,p,P);return E};cY.abk=function(L,C,U){var E=$.i(C,U);U+=4;if(E==0)return U;var Y=U;L.r=new o.LF;
L.r.rect=$.lD(C,U);U+=16;L.r.color=C[U];U+=1;var z=cY.mY(L.r,C,U);U+=1;if(z){var r=!1,p=255,T=0,k=255,P=0;
for(var H=0;H<L.Pl.length;H++)if(L.Pl[H].id==-3)r=!0;if(r){L.Os=cY.Ro(C,U);U+=18}var b=U,Q=C[U];U++;
if(Q>>0&1){p=C[U];U++}if(Q>>1&1){T=$.HD(C,U);U+=8}if(Q>>2&1){k=C[U];U++}if(Q>>3&1){P=$.HD(C,U);U+=8}if((U-b&1)==1)U++;
L.OG=[p,T,k,P]}else{if(E==20)U+=2;else{L.Os=cY.Ro(C,U);U+=18}}return Y+E};cY.a13=function(L,C,U){$.KC(C,U,0);
U+=4;if(L.r==null)return U;var E=U,Y=!0;$.KC(C,U,0);$.Vk(C,U,L.r.rect);U+=16;$.tM(C,U,L.r.color);U+=1;
cY.xu(L.r,C,U,Y);U+=1;if(Y){if(L.Os){cY.a7d(C,U,L.Os);U+=18}$.tM(C,U,15);U+=1;var z=L.xV(),r=L.add.vmsk;
$.tM(C,U,z?z.Ve:255);U+=1;$.ZN(C,U,z?z.hY:0);U+=8;$.tM(C,U,r?r.Ve:255);U+=1;$.ZN(C,U,r?r.hY:0);U+=8;
U++;$.KC(C,E-4,U-E)}return U};cY.Ro=function(L,C){var U=new o.LF;cY.mY(U,L,C);C+=1;U.color=L[C];C+=1;
U.rect=$.lD(L,C);C+=16;return U};cY.a7d=function(L,C,U){cY.xu(U,L,C,!1);C+=1;$.tM(L,C,U.color);C+=1;
$.Vk(L,C,U.rect);C+=16};cY.mY=function(L,C,U){var E=C[U];L.zF=(E>>0&1)==0;L.isEnabled=(E>>1&1)==0;L.Yf=(E>>3&1)==1;
return E>>4&1};cY.xu=function(L,C,U,E){var Y=0;if(!L.zF)Y+=1<<0;if(!L.isEnabled)Y+=1<<1;if(L.Yf)Y+=1<<3;
if(E)Y+=1<<4;$.tM(C,U,Y)};cY.a2f=function(L,C,U){var E=$.i(C,U);U+=4;if(E==0)return U;if(E!=5*8)console.log("unexpected Layer Blending Ranges content, size:",E);
for(var H=0;H<E;H++)L.E7[H]=C[U+H];return U+40};cY.a3f=function(L,C,U){$.KC(C,U,L.E7.length);U+=4;C.bF(U,40);
for(var H=0;H<40;H++){C.data[U+H]=L.E7[H]}return U+40};function b8(){}b8.Vu=function(L,C,U,E){E=b8.a1l(C.OV,C.eF,C.cN,L,U,E);
return E};b8.B0=function(L,C,U,E,Y){U=b8.a3W(L,C,U,E,Y);return U};b8.a1l=function(L,C,U,E,Y,z){var r=E.Pl,p={},T=z;
for(var H=0;H<r.length;H++){var k=r[H],P=k.id,b=k.length,Q;if(P==-3)Q=E.Os.rect;else if(P==-2)Q=E.r.rect;
else Q=E.rect;var K=b8.LJ(L,C,Y,Q.d,Q.v,z,b);z+=b;if(P==-3)E.Os.channel=K;else if(P==-2)E.r.channel=K;
else p["c"+P]=K}var h=new c.Ry(0);h.R=null;if(U==3){h.h=p.c0;h.P=p.c1;h.O=p.c2;h.R=p["c-1"]}else if(U==1){h.h=p.c0;
h.P=p.c0;h.O=p.c0;h.R=p["c-1"]}else if(U==4){var x=p.c0,O=p.c1,y=p.c2,v=p.c3,i=x.length,D=1/255;for(var H=0;
H<i;H++){var I=x[H],m=O[H],f=y[H],A=v[H]*D;x[H]=Math.round(I*A);O[H]=Math.round((.2*I+.8*m)*A);y[H]=Math.round((.2*m+.8*f)*A)}h.h=x;
h.P=O;h.O=y;h.R=p["c-1"];console.log("converting from CMYK to RGB")}if(h.h==null)h.h=c.F(0);if(h.R==null&&h.h!=null){h.R=h.h.slice(0);
h.R.fill(255)}if(h.P==null)h.P=h.h.slice(0);if(h.O==null)h.O=h.h.slice(0);E.buffer=c.F(Math.max(0,E.rect.X()*4));
c.qF(h,E.buffer);return z};b8.a3W=function(L,C,U,E,Y){var z=L.mn(),r=new c.Ry(L.rect.X());c.df(L.buffer,r);
for(var H=0;H<z.length;H++){var p=z[H],T,k;if(p==-3)T=L.Os.rect;else if(p==-2)T=L.r.rect;else T=L.rect;
if(p==-3)k=L.Os.channel;if(p==-2)k=L.r.channel;if(p==-1)k=r.R;if(p==0)k=r.h;if(p==1)k=r.P;if(p==2)k=r.O;
C.bF(U,T.X()*3+4);var P=U;U=b8.t1(k,C.data,T.d,T.v,U,Y[1]?3:1);var b=U-P;if(b%2!=0){b+=b%2;U++}$.Iy(C.data,E+H*6+2,b)}return U};
b8.LJ=function(L,C,U,E,Y,z,r){var p=$.lb(U,z);z+=2;return b8.$n(L,C,U,E,Y,z,p,r-2)};b8.t1=function(L,C,U,E,Y,z){$.KX(C,Y,z);
Y+=2;Y=b8._P(L,C,U,E,Y,z);return Y};b8.$n=function(L,C,U,E,Y,z,r,p){var T,k=E*Y*(C>>>3),P=k&3,b=k+(P==0?0:4-P);
if(p<=0){return c.F(b)}if(r>3){console.log("unknown compression: "+r,E,Y,E*Y,p);r=0}if(r==0){if(z+b<=U.length)T=U.slice(z,z+b);
else{T=c.F(k);for(var H=0;H<k;H++)T[H]=U[z+H]}z+=k}else if(r==1){T=c.F(k);var Q=L?4:2,K=b8._T(U,T,E,Y,z,z+Q*Y,Q);
z+=Q*Y+K}else if(r==2||r==3){var h=new Uint8Array(U.buffer,z+2,p-6),x=pako.inflateRaw(h);if(r==3){if(C==8)for(var O=0;
O<Y;O++){var y=O*E+1,v=y+E-1,i=x[y-1];for(var D=y;D<v;D++){i+=x[D];x[D]=i&255}}else for(var O=0;O<Y;
O++){var y=O*E+1,v=y+E-1,i=x[2*y-2]<<8|x[2*y-1];for(var D=y;D<v;D++){var I=D<<1;i+=x[I]<<8|x[I+1];x[I]=i>>>8;
x[I+1]=i&255}}}if(x.length==b)T=x;else{T=c.F(b);for(var H=0;H<x.length;H++)T[H]=x[H]}}if(C==16){var m=c.F(E*Y);
for(var H=0;H<k;H+=2)m[H>>>1]=T[H];T=m}return T};b8._P=function(L,C,U,E,Y,z){var r=U*E;if(z==0)for(var H=0;
H<r;H++)C[Y++]=L[H];else if(z==1){var p=b8.K8(L,C,U,E,Y,Y+2*E);Y+=2*E+p}else if(z==2||z==3){if(z==3){var T=new Uint8Array(L.length);
for(var k=0;k<E;k++){var P=k*U+1,b=P+U-1,Q=L[P-1];T[P-1]=Q;for(var K=P;K<b;K++){T[K]=L[K]+(256-Q)&255;
Q=L[K]}}L=T}C[Y]=120;C[Y+1]=156;Y+=2;var h=pako.deflateRaw(L,{ae2:4});$.xR(C,Y,h);Y+=h.length+4}else console.log("Unknown compression: "+z);
return Y};b8._T=function(L,C,U,E,Y,z,r){var p=z,T=E|0;if(r==2)for(var H=0;H<T;H++){var k=$.lb(L,Y+(H<<1));
b8.d_(L,z,k,C,H*U,U);z+=k}else for(var H=0;H<T;H++){var k=$.i(L,Y+(H<<2));b8.d_(L,z,k,C,H*U,U);z+=k}return z-p};
b8.K8=function(L,C,U,E,Y,z){var r=z;for(var H=0;H<E;H++){var p=b8.alH(L,H*U,U,C,z);$.OH(C,Y+H*2,p);z+=p}return z-r};
b8.alH=function(L,C,u,U,E){var Y,z,r,p,T,hs,k;p=C+u;for(r=C,z=E;u>0;r=Y,u-=hs){k=u<128?u:128;if(r<=p-3&&L[r+1]==L[r+0]&&L[r+2]==L[r+0]){for(Y=r+3;
Y<r+k&&L[Y]==L[r+0];)++Y;hs=Y-r;U[z++]=1+256-hs;U[z++]=L[r+0]}else{for(Y=r;Y<r+k;)if(Y<=p-3&&L[Y+1]==L[Y+0]&&L[Y+2]==L[Y+0])break;
else++Y;hs=Y-r;U[z++]=hs-1;for(var H=0;H<hs;H++)U[z+H]=L[r+H];z+=hs}}return z-E};b8.d_=function(L,C,U,E,Y,z){for(var r=0;
r<U;){var u=L[C++];if(u>=128){var p=L[C++],T=Y+(257-u);while(Y+1<T){E[Y++]=E[Y++]=p}if(Y<T)E[Y++]=p;
r+=2}else{for(var H=0;H<=u;H++)E[Y+H]=L[C+H];C+=u+1;Y+=u+1;r+=1+1+u}}};function f7(){}f7.Vu=function(L,C){C.OV=!1;
C.eF=8;var U=new Uint8Array(L),E=0,Y=0,s,bj=!1,bE=!0,eN=!1,dk=0;Y=f7.nd(C,U,E);E=Y;Y=f7.agJ(C,U,E);E=Y;
Y=f7.akP(C,U,E);E=Y;Y=f7.anN(C,U,E);E=Y;Y=f7.aiL(C,U,E);E=Y;if(C.N.length==0){var z=C.wP();z.I_("Background");
C.N.push(z);z.buffer=C.buffer.slice(0);z.rect=new _(0,0,C.d,C.v)}if(C.d4.r1005){C._Q=$.a6Y(C.d4.r1005,0)}if(C.d4.r1026){var U=C.d4.r1026;
for(var H=0;H<U.length;H+=2){var Y=C.N[H>>>1];if(Y)Y.xi=$.lb(U,H)}}if(C.d4.r1032){var U=C.d4.r1032,r=$.i(U,12);
for(var H=0;H<r;H++){var p=U[16+H*5+4],T=$.xw(U,16+H*5)/32;C.Pr[p].push(T)}}delete C.d4.r1036;delete C.d4.r1039;
if(C.d4.r1050){var k=$.i,P=C.d4.r1050,b=$.i(P,0);if(b==6){var Q=4,K=$.lD(P,Q);Q+=16;var h=$.jf(P,Q);
Q+=4+h.length*2;var x=k(P,Q);Q+=4;var O=C.Oy;for(var H=0;H<x;H++){var y=W.l1.Mw(),i;O.push(y);y=y.v;
y.sliceID.v=k(P,Q);Q+=4;y.groupID.v=k(P,Q);Q+=4;var v=k(P,Q);Q+=4;if(v==1){i=k(P,Q);Q+=4}var h=$.jf(P,Q);
Q+=4+h.length*2;var D=k(P,Q);Q+=4;var I=[k(P,Q),k(P,Q+4),k(P,Q+8),k(P,Q+12)];Q+=16;W.l1.FL(O,O.length-1,I);
var m=y.url.v=$.jf(P,Q);Q+=4+m.length*2;var f=y.null.v=$.jf(P,Q);Q+=4+f.length*2;var A=y.Msge.v=$.jf(P,Q);
Q+=4+A.length*2;var d=y.altTag.v=$.jf(P,Q);Q+=4+d.length*2;y.cellTextIsHTML.v=P[Q]==1;Q++;var g=y.cellText.v=$.jf(P,Q);
Q+=4+g.length*2;var X=k(P,Q);Q+=4;var n=k(P,Q);Q+=4;var R=P.slice(Q,Q+4);Q+=4;if(v!=2)O.pop()}}else if(b==8){var l={};
e6.Ql(P,l,8,!1);var P=C.Oy=l.slices.v;for(var H=0;H<P.length;H++){if(P[H].v.origin.v.ESliceOrigin!="userGenerated"){P.splice(H,1);
H--}}}}if(C.d4.r1058){var w=C.d4.r1058,V=UTIF.decode(w.buffer,{parseMN:!1,debug:!1});bd.L7(V[0],C.Ii);
delete C.d4.r1058}if(C.d4.r1060){var F=$.IQ(C.d4.r1060);bd.QL(F,C.Ii);delete C.d4.r1060}if(C.d4.r1065){var U=C.d4.r1065;
C.Tv={};e6.Ql(U,C.Tv,4,!1)}if(C.d4.r1069){var U=C.d4.r1069,Z=[];for(var H=2;H<U.length;H+=4){var i=$.i(U,H);
for(var M=0;M<C.N.length;M++){var Y=C.N[M];if(Y.add.lyid==i&&Y.add.lsct!=3)Z.push(M)}}C.C=Z}if(C.d4.r1025){var a=C.d4.r1025;
delete C.d4.r1025;var e=fA.LB(a,0,a.length,C.d,C.v),N=new o.mR;N.n=e;C.Jd[0]=b7.YE("Working Path",{vmsk:N})}var J=C.add.pths;
delete C.add.pths;var f5=C.d4.r3000;if(f5){s={};e6.Ql(f5,s,4,!1);delete C.d4.r3000}for(var dx=0;dx<=997;
dx++){var fq="r"+(2e3+dx),a=C.d4[fq];if(a==null)break;var e=fA.LB(a,0,a.length,C.d,C.v),i9=J?J.pathList.v[dx].v.pathUnicodeName.v:"Path "+dx,e8=s?s.keyRootDescriptorList.v[dx].v.keyDescriptorList.v:o.Gg(e),N=new o.mR;
N.n=e;C.Jd[dx+1]=b7.YE(i9,{vmsk:N,vogk:e8});delete C.d4[fq]}delete C.OV;var S=new _(0,0,C.d,C.v),fs=C.add.Txt2,bz=fs;
if(bz){bz=bz.S3;if(bz._DocumentResources==null)bz=bD.a3K(bz)}if(fs&&fs.S3._DocumentResources!=null){var g6="_Type _FrameMatrix _TextOnPathTRange _PathData _FirstBaselineAlignment _LineOrientation _RowGutter _ColumnGutter".split(" "),al=fs.S3._DocumentResources._TextFrameSet._Resources;
for(var H=0;H<al.length;H++){}}for(var H=0;H<C.N.length;H++){var Y=C.N[H],hj=Y.add.lsct,iN=Y.add.vmsk,dK=Y.xV();
if(hj==fI.ya){dk++;Y.add.lspf=0}else if(hj==fI.Qr||hj==fI.z7)dk--;if(Y.name==""){Y.name="Layer "+(H+1);
eN=!0}if(eN&&Y.Jc()&&Y.B4=="norm")Y.B4="pass";if(Y.s7()&&Y.iC(C).r){var ch=Y.iC(C);ch.r.isEnabled=Y.add.SoLd.filterFX.v.filterMaskEnable.v}if(iN&&Y.G_()){var hP=gM.H0.default;
if(Y.add.vstk==null)Y.add.vstk=JSON.parse(JSON.stringify(hP));else{var d2="strokeStyleLineDashSet";if(Y.add.vstk[d2]==null)Y.add.vstk[d2]=JSON.parse(JSON.stringify(hP[d2]))}Y.add.vstk.strokeStyleResolution.v=C._Q}if(iN&&(Y.add.vogk==null||c.Y.ov(iN.n)!=Y.add.vogk.length))Y.Gg();
if(Y.add.SoLd&&Y.rect.ue()){console.log("redrawing smart instance");Y.RM(C)}if(dK==null&&Y.r!=null){if(Y.r.Yf==!1){Y.r.Yf=!0;
Y.Os=Y.r.clone()}else{iN.Os=Y.r;iN.st=!1;Y.r.hY=iN.hY;Y.r.Ve=iN.Ve}}if(dK!=null&&iN!=null&&(dK.hY+iN.hY!=0||dK.Ve+iN.Ve!=2*255))Y.cr(C);
var hr=Y.add.artb;if(hr&&hr.artboardBackgroundType==null)hr.artboardBackgroundType={t:"long",v:1};if(hr&&dk!=0)delete Y.add.artb;
var fv=Y.add.vstk;if(Y.G_()&&(Y.rect.ue()||iN&&iN.hY!=0||fv&&!fv.fillEnabled.v&&(!fv.strokeEnabled.v||fv.strokeStyleLineWidth.v.val==0)))Y.az(C);
if(Y.add.TySh){bj=!0;if(!Y.rect.ue())bE=!1}if(Y.add.TySh&&bz){var f3=Y.add.TySh.Au.TextIndex.v,dp=Y.add.TySh.Se,go=b5.qi(dp),d6=dp.ResourceDict.StyleSheetSet[0].StyleSheetData.FontSize;
if(d6==null)d6=12;var iB=dp.EngineDict.StyleRun.RunArray;for(var hS=0;hS<iB.length;hS++){var eF=iB[hS].StyleSheet.StyleSheetData;
if(eF.FontSize==null){if(eF.BaselineDirection==null)eF.FontSize=Math.round(d6*C._Q/72)}}var bQ=dp.EngineDict.ParagraphRun.RunArray,iP=bz._DocumentObjects._TextObjects;
if(iP.length<=f3){console.log("Txt2 incomplete");continue}iP=iP[f3]._Model._ParagraphRun._RunArray;if(iP==null)iP=[];
var d8=Math.min(iP.length,bQ.length);for(var M=0;M<d8;M++){var a6=bQ[M].ParagraphSheet.Properties,am=bz._DocumentResources._ParagraphSheetSet._Resources,fj=iP[M]._RunData._ParagraphSheet;
if(typeof fj=="string")fj=am[parseInt(fj.slice(1))]._Resource;var dX=fj._Parent==null?fj:am[parseInt(fj._Parent.slice(1))]._Resource,gc=fj._Features._ParagraphDirection;
if(gc==null)gc=dX._Features._ParagraphDirection;if(gc)a6._Direction=parseInt(gc.slice(1))}var dz=bz._DocumentResources,gE=dz._TextFrameSet._Resources,cQ=gE[f3]._Resource,fi=cQ._Data,dB=new c0(1,0,0,1,0,0);
if(cQ._0){var bp=parseFloat(cQ._0[0].slice(1)),ai=parseFloat(cQ._0[1].slice(1));dB.translate(bp,ai)}if(go){dB.translate(go[0],go[1]);
b5.If(dp,[0,0,go[2]-go[0],go[3]-go[1]])}else{if(cQ._Bezier&&cQ._Bezier._Points){var e=cQ._Bezier._Points,bp=parseFloat(e[0].slice(1)),ai=parseFloat(e[1].slice(1));
if(bp!=0||ai!=0){dB.translate(bp,ai)}}}if(cQ._Data&&cQ._Data._FrameMatrix){var hu=cQ._Data._FrameMatrix;
hu=hu.map(function(gQ){return parseFloat(gQ.slice(1))});dB.concat(new c0(hu[0],hu[1],hu[2],hu[3],hu[4],hu[5]))}dB.concat(Y.add.TySh.J);
Y.add.TySh.J=dB;var D=fi._Type?parseInt(fi._Type.slice(1)):0;if(D==2||D==1&&fi._PathData._Spacing=="i-3"){var bP=function(gQ){return parseFloat(gQ.slice(1))},e=cQ._Bezier._Points.map(bP);
if(go)c.a.J(e,new c0(1,0,0,1,-go[0],-go[1]),e);var hw=fi._PathData?fi._PathData._Reversed:!1;dp.Curve={Points:e,TextOnPathTRange:fi._TextOnPathTRange.map(bP),Reversed:hw==null?!1:hw};
Y.add.TySh.add={vmsk:new o.mR,vogk:null};b5.Dv(Y.add.TySh)}}}hO.Ie.fl(C,!0)};f7.cd=function(L,C,U){hO.Ie.gY(L);
hO.Ie.fl(L,!1);var E=[],Y=[],z=[],r=[],p=[],d=16,e8=0;for(var H=0;H<L.N.length;H++){var T=L.N[H];if(T.s7()&&T.iC(L).r){T.add.SoLd.filterFX.v.filterMaskEnable.v=T.iC(L).r.isEnabled}if(T.add.SoLd){Y.push(T.add.SoLd.Idnt.v);
z.push(T.add.SoLd.placed.v)}if(T.add.TySh){var k=T.add.TySh.Se,P=b5.S8(k);T.add.TySh.Au.TextIndex={t:"long",v:E.length};
E.push(k);if(P==2)b5.Zp(T.add.TySh)}if(T.add.PtFl)r.push(T.add.PtFl.Ptrn.v.Idnt.v);if(T.add.lmfx){for(var b=0;
b<gM.cp.length;b++){var Q=T.add.lmfx[gM.cp[b]].v;for(var K=0;K<Q.length;K++)if(Q[K].v.Ptrn)r.push(Q[K].v.Ptrn.v.Idnt.v)}}var h=T.add.vstk;
if(h&&h.strokeStyleContent.v.classID=="patternLayer"){r.push(h.strokeStyleContent.v.Ptrn.v.Idnt.v)}if(h)h.strokeStyleResolution.v=L._Q;
if(T.G_()||U[2]&&T.add.SoLd){p[H]=[T.rect,T.buffer];T.rect=new _;T.buffer=c.F(0)}}if(E.length>0){var x=L.add.Txt2?L.add.Txt2.S3:null;
L.add.Txt2={};L.add.Txt2.S3=f4.a05(E,null,x)}var O=L.add.lnk2;if(O){var y=L.add.lnk2=[];for(var H=0;
H<O.length;H++)if(Y.indexOf(O[H].Ea)!=-1)y.push(O[H]);if(y.length==0)delete L.add.lnk2}var v=L.add.FEid;
if(v){var i=L.add.FEid=[];for(var H=0;H<v.length;H++)if(z.indexOf(v[H].id)!=-1)i.push(v[H]);if(i.length==0)delete L.add.FEid}var D=L.add.Patt;
if(D){var I=L.add.Patt=[];for(var H=0;H<D.length;H++)if(r.indexOf(D[H].id)!=-1)I.push(D[H])}L.d4.r1005=new Uint8Array([0,0,0,0,0,1,0,2,0,0,0,0,0,1,0,2]);
$.fA(L.d4.r1005,0,L._Q);$.fA(L.d4.r1005,8,L._Q);if(L.$k()){L.d4.r1022=new Uint8Array([0,3+L.vI.length-1,0])}else delete L.d4.r1022;
L.d4.r1026=new Uint8Array(L.N.length*2);for(var H=0;H<L.N.length;H++)$.OH(L.d4.r1026,H*2,L.N[H].xi);
var m=L.Pr,f=m[0].length+m[1].length,A=L.d4.r1032=c.F(16+5*f,!0);$.Iy(A,0,1);$.Iy(A,4,576);$.Iy(A,8,576);
$.Iy(A,12,f);for(var H=0;H<2;H++)for(var K=0;K<m[H].length;K++){$.nv(A,d,Math.round(m[H][K]*32));A[d+4]=H;
d+=5}var g=c.Db(L.buffer),X=[];if(g)X.push({name:"Transparency",Cc:{h:255,P:0,O:0},hv:100,fD:1});X=X.concat(L.vI);
delete L.d4.r1045;delete L.d4.r1006;delete L.d4.r1077;var n=new d0;d=0;var R=new Uint8Array(4+X.length*13);
R[3]=1;for(var H=0;H<X.length;H++){var l=X[H],w=l.name+"\0";$.jx(n,d,w);d+=4+w.length*2;var V=4+H*13;
eZ.ws(R,V,l.Cc);R[V+11]=l.hv;R[V+12]=l.fD}L.d4.r1045=n.data.slice(0,d);L.d4.r1077=R;for(var H=0;H<L.Oy.length;
H++)L.Oy[L.Oy.length-H-1].v.sliceID.v=2+H*3;var F={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:L.Oy}},n=new d0;
$.KC(n,0,8);$.KC(n,4,16);var Z=e6.GG(n,F,8);L.d4.r1050=n.data.slice(0,Z+8);var n=new d0;$.KC(n,0,16);
var Z=e6.GG(n,L.Tv,4);L.d4.r1065=n.data.slice(0,Z+4);var M=L.C;A=L.d4.r1069=c.F(2+M.length*4,!0);$.OH(A,0,M.length);
for(var H=0;H<M.length;H++)$.Iy(A,2+4*H,L.N[M[H]].add.lyid);delete L.d4.r1058;delete L.d4.r1060;if(Object.keys(L.Ii).length!=0){var a=[{t274:[1],t282:[[72,1]],t283:[[72,1]],t296:[2]},{t259:[6],t282:[[72,1]],t283:[[72,1]],t296:[2],t513:[302],t514:[0]}];
bd.AQ(L.Ii,a[0],U[0]&&U[1]);L.d4.r1058=new Uint8Array(UTIF.encode(a));var e=bd.BV(L.Ii);L.d4.r1060=$.RK(e)}var N=[],J=[];
for(var H=0;H<L.Jd.length;H++){var f5=L.Jd[H],dx=f5.add.vmsk.n;if(H==0&&dx.length==2)continue;var fq=c.F(dx.length*26);
fA.g7(fq,0,dx,L.d,L.v);var i9=H==0?1025:2e3+H-1;L.d4["r"+i9]=fq;if(H!=0){N.push({t:"Objc",v:{classID:"pathInfoClass",pathUnicodeName:{t:"TEXT",v:f5.name}}});
J.push({t:"Objc",v:{classID:"null",keyDescriptorList:{t:"VlLs",v:f5.add.vogk}}})}}if(N.length!=0){L.add.pths={classID:"pathsDataClass",pathList:{t:"VlLs",v:N}};
J={classID:"null",keyRootDescriptorList:{t:"VlLs",v:J}};var n=new d0;$.KC(n,0,16);var Z=e6.GG(n,J,4);
L.d4.r3000=n.data.slice(0,Z+4)}else{delete L.add.pths;delete L.d4.r3000}e8=f7.acb(L,C,e8,3+X.length);
e8=f7.ahV(L,C,e8);e8=f7.ajP(L,C,e8);e8=f7.ajD(L,C,e8,U,g);e8=f7.aog(L,C,e8,U[0],g);var S=[1025,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016];
for(var H=0;H<S.length;H++)delete L.d4["r"+S[H]];for(var H=0;H<L.N.length;H++){var T=L.N[H];if(T.G_()||U[2]&&T.add.SoLd){T.rect=p[H][0];
T.buffer=p[H][1]}}if(O)L.add.lnk2=O;if(v)L.add.FEid=v;if(D)L.add.Patt=D;hO.Ie.fl(L,!0);return e8};f7.nd=function(L,C,U){var E=$.ZA(C,U,4);
U+=4;if(E!="8BPS")alert("invalid header signature: "+E);var Y=$.lb(C,U);U+=2;L.OV=Y==2;if(Y!=1&&Y!=2)alert("invalid version: "+Y);
U+=6;L.lO=$.lb(C,U);U+=2;L.v=$.xw(C,U);U+=4;L.d=$.xw(C,U);U+=4;L.eF=$.lb(C,U);U+=2;L.cN=$.lb(C,U);U+=2;
return U};f7.acb=function(L,C,U,E){C.bF(0,64);$.Ti(C.data,U,"8BPS");U+=4;$.OH(C.data,U,1);U+=2;$.Iy(C.data,U,0);
U+=4;$.OH(C.data,U,0);U+=2;$.OH(C.data,U,E);U+=2;$.nv(C.data,U,L.v);U+=4;$.nv(C.data,U,L.d);U+=4;$.OH(C.data,U,8);
U+=2;$.OH(C.data,U,3);U+=2;return U};f7.agJ=function(L,C,U){var E=$.xw(C,U);U+=4;if(E!=0)L.mo=C.slice(U,U+E);
U+=E;return U};f7.ahV=function(L,C,U){$.rb(C,U,0);U+=4;return U};f7.akP=function(L,C,U){var E=$.i(C,U),Y=0;
U+=4;var z=[];while(Y<E){var r=$.ZA(C,U+Y,4);Y+=4;var p=$.lb(C,U+Y);Y+=2;var T=$.Q5(C,U+Y);Y+=T.length;
if(r!="8BIM"){z.push(p);console.log("Unknown Image Resources signature: "+r+", ID: "+p)}var k=$.i(C,U+Y);
Y+=4;if(L.d4["r"+p]!=null)console.log("--- two resources with same ID");L.d4["r"+p]=$.LH(C,U+Y,k);Y+=k+(k&1)}for(var H=0;
H<z.length;H++)delete L.d4["r"+z[H]];return U+E};f7.ajP=function(L,C,U){var E=U,r=0;U+=4;var Y=[];for(var z in L.d4){Y.push(parseInt(z.slice(1)))}Y.sort(function(b,Q){return b-Q});
for(var H=0;H<Y.length;H++){$.Jv(C,U+r,"8BIM");r+=4;var p=Y[H];$._h(C,U+r,p);r+=2;var T=$.bq(C,U+r,"");
r+=T;var k=L.d4["r"+p],P=k.length;$.KC(C,U+r,P);r+=4;$.BC(C,U+r,k);r+=P;if(P%2==1)r++}$.KC(C,E,r);return U+r};
f7.anN=function(L,C,U){var E=U,Y,z=L.OV?8:4;if(L.OV)Y=$.M_(C,U);else Y=$.i(C,U);U+=z;if(Y==0)return E+z;
U=f7.anW(L,C,U);U=f7.a3C(L,C,U);U=eo.Td(C,U,E+z+Y,L.add,L.OV,L);return E+z+Y};f7.ajD=function(L,C,U,E,Y){var z=U;
$.KC(C,U,0);U+=4;U=f7.a8S(L,C,U,E,Y);U=f7.a5b(L,C,U);U=eo.vA(C,U,L.add,L);$.KC(C,z,U-z-4);return U};
f7.anW=function(L,C,U){var E,Y=L.OV?8:4;if(L.OV)E=$.M_(C,U);else E=$.i(C,U);U+=Y;if(E!=0)f7.k4(L,C,U);
return U+E};f7.k4=function(L,C,U){var E=$.sZ(C,U);U+=2;var Y=Math.abs(E);for(var H=0;H<Y;H++){var z=new o;
U=cY.Vu(z,L,C,U);L.N[H]=z}var r=new _(0,0,L.d,L.v);for(var H=0;H<Y;H++){var p=L.N[H],T=p.xV();U=b8.Vu(p,L,C,U);
f7.gw(p,r);if(T)f7.gw(T,r)}};f7.gw=function(L,C){var U=L.rect.X(),E=L.rect.eR(C),Y=E.X()/U;if(U>2e3*3e3&&Y<.5){if(L.buffer){var z=c.F(E.X()*4);
c.La(L.buffer,L.rect,z,E);L.buffer=z;L.rect=E}else{var z=c.F(E.X());c.zM(L.channel,L.rect,z,E);L.channel=z;
L.rect=E}alert("Removing hidden parts of layers")}};f7.a8S=function(L,C,U,E,Y){var z=U;$.KC(C,U,0);U+=4;
var r=L.N.length;$._h(C,U,Y?-r:r);U+=2;var p=[];for(var H=0;H<r;H++)U=cY.cd(L.N[H],L,C,U,p);for(var H=0;
H<r;H++)U=b8.B0(L.N[H],C,U,p[H],E);var T=U-z-4;if(T%2!=0)T++;$.KC(C,z,T);return z+T+4};f7.a3C=function(L,C,U){var E=$.i(C,U);
U+=4;U+=E;return U};f7.a5b=function(L,C,U){var E=$.KC(C,U,0);U+=4;return U};f7.aiL=function(L,C,U){var E=L.cN,Y="Bitmap Grayscale Indexed RGB CMYK Multichannel Duotone Lab".split(" "),z=[1,1,1,3,4,1,1,3],r,x;
if(E!=3){if(E==1||E==2||E==4)alert("Project will be converted from "+Y[E]+" to "+Y[3]+" mode.");else{alert("Color mode "+Y[E]+" is not supported yet :(")}}if(L.d4.r1045){r=[];
var p=L.d4.r1045,T=0;while(T<p.length){var k=$.m6(p,T);r.push(k);T+=4+2+k.length*2}}var P=z[E]+(r==null||r[0]=="Transparency"?1:0),b=L.d,Q=L.v,K=b*Q,h=$.lb(C,U);
U+=2;L.buffer=c.F(K*4);c.n0(L.buffer,4278190080);var O=U;for(var y=0;y<L.lO;y++){if(h==0){x=b8.$n(L.OV,L.eF,C,b,Q,U,h);
U+=K*(L.eF>>>3)}else if(h==1){x=c.F(K);var v=L.OV?4:2;if(y==0)U+=L.lO*Q*v;U+=b8._T(C,x,b,Q,O+y*Q*v,U,v)}else{console.log("unknown compression of image data: ",h);
return}if(y<P){c.Wn(x,L.buffer,y);if(L.lO==1&&y==0){c.Wn(x,L.buffer,1);c.Wn(x,L.buffer,2)}}else{var i=new o.LF,D=y-P,I=y-z[L.cN];
i.name=r?r[I]:"Alpha";if(i.name=="Quick Mask"){i.mM=!0;L.te.push(D)}i.rect=new _(0,0,b,Q);i.channel=x;
i.color=0;i.Jx();L.vI[D]=i;if(L.d4.r1077){var p=L.d4.r1077.slice(4+I*13);i.Cc=eZ.FJ(p,0);i.hv=p[11];
i.fD=p[12];if(i.fD==2)i.mM=!0}}}L.lO=4;if(L.cN==2)for(var H=0;H<K;H++){var m=H*4,f=L.buffer[m];L.buffer[m]=L.mo[0+f];
L.buffer[m+1]=L.mo[256+f];L.buffer[m+2]=L.mo[512+f]}return U};f7.aog=function(L,C,U,E,Y){var z=1,r=16,p=L.d,T=L.v,P,b;
$._h(C,U,z);U+=2;var k=p*T;if(!E){b=new c.Ry(p*T);c.df(L.buffer,b);var Q=b.h,K=b.P,h=b.O,x=b.R;for(var H=0;
H<k;H++){var O=x[H]*(1/255);Q[H]=~~(Q[H]*O+255*(1-O));K[H]=~~(K[H]*O+255*(1-O));h[H]=~~(h[H]*O+255*(1-O))}}else P=c.F(k);
var y=[P,P,P];if(!E)y=[b.h,b.P,b.O];if(Y)y.push(E?P:b.R);for(var H=0;H<L.vI.length;H++){y.push(L.vI[H].X8(new _(0,0,L.d,L.v)))}var v=U;
for(var i=0;i<y.length;i++){C.bF(U,p*T+4);P=y[i];if(z==0||z==2||z==3)U=b8._P(P,C.data,p,T,U,z);else{if(i==0)U+=y.length*T*2;
var D=U;U+=b8.K8(P,C.data,p,T,v+i*T*2,U)}}return U};function eB(){}eB.Vu=function(L){var C={};eB.Uo(L,C,0,0);
return C};eB.cd=function(L,C){var U=0;U=eB.DQ(L,C,U,0);return U};eB.Uo=function(L,C,U,E){while(L[U]!="<".charCodeAt(0))U++;
U+=2;while(!0){if(L[U]=="/".charCodeAt(0)){U++;var Y=$.indexOf(L," ".charCodeAt(0),U,U+50),z=$.indexOf(L,"\n".charCodeAt(0),U,U+50);
if(z==-1)z=Infinity;if(Y==-1)Y=Infinity;var r=Math.min(z,Y),p=$.ZA(L,U,r-U),T=eB.Ji(L,r+1,E+1,p);C[p]=T.G;
U=r+1;U+=T.size}else if(L[U]==">".charCodeAt(0)){U+=2;break}else{var k=L[U];if(k==10||k==9||k==32)U++;
else{console.log("unknown byte: "+k+", char: "+String.fromCharCode(k),U);U++}}}return U};eB.DQ=function(L,C,U,E){$.Jv(C,U,"<<\n");
U+=3;var Y=eB.amb;for(var z in L){$.tM(C,U,"\t".charCodeAt(0),E+1);U+=E+1;$.Jv(C,U,"/"+z);U+=1+z.length;
if(Y(L[z])||L[z]instanceof Array){$.Jv(C,U," ");U++}else{$.Jv(C,U,"\n");U++;$.tM(C,U,"\t".charCodeAt(0),E+1);
U+=E+1}U=eB.d5(L[z],C,U,E+1);$.Jv(C,U,"\n");U++}$.tM(C,U,"\t".charCodeAt(0),E);U+=E;$.Jv(C,U,">>");U+=2;
return U};eB.Ji=function(L,C,U,E){var Y=C,z={size:0,G:0};while(!0){while(L[C]==" ".charCodeAt(0)||L[C]=="\t".charCodeAt(0)||L[C]=="\n".charCodeAt(0))C++;
if(L[C]=="<".charCodeAt(0)){z.G={};C=eB.Uo(L,z.G,C,U+1);break}else if(L[C]=="(".charCodeAt(0)){C+=3;
var r=C;while(!0){if(L[r-1]!="\\".charCodeAt(0)&&L[r]==")".charCodeAt(0)&&(L[r+1]=="\n".charCodeAt(0)||L[r+1]==" ".charCodeAt(0)))break;
else r++}z.G=$.hc(L,C,r);C=r+2;break}else if(L[C]=="[".charCodeAt(0)){C++;z.G=[];while(L[C]==" ".charCodeAt(0)||L[C]=="\t".charCodeAt(0)||L[C]=="\n".charCodeAt(0))C++;
while(L[C]!="]".charCodeAt(0)){var p=eB.Ji(L,C,U+1,E);z.G.push(p.G);C+=p.size;while(L[C]==" ".charCodeAt(0)||L[C]=="\t".charCodeAt(0)||L[C]=="\n".charCodeAt(0))C++}C++;
break}else{var T=$.indexOf(L," ".charCodeAt(0),C,C+50),k=$.indexOf(L,"\n".charCodeAt(0),C,C+50);if(k==-1)k=Infinity;
if(T==-1)T=Infinity;var P=$.ZA(L,C,Math.min(T,k)-C).trim(),b=parseFloat(P);if(!isNaN(b)){z.G=parseFloat(P);
C=Math.min(T,k)+1;break}else if(P=="true"||P=="false"){z.G=P=="true";C=Math.min(T,k)+1;break}else if(P=="null"||P=="NaN"||P=="undefined"){z.G=0;
C=Math.min(T,k)+1;break}else{console.log("unknown identifier: "+P);throw"e"}C=Math.min(T,k)+1}}z.size=C-Y;
return z};eB.d5=function(L,C,U,E){if(L instanceof Array){var Y=L.length==0||typeof L[0]=="number";if(Y){$.Jv(C,U,"[ ");
U+=2;for(var H=0;H<L.length;H++){var z=L[H]+" ";$.Jv(C,U,z);U+=z.length}$.Jv(C,U,"]");U+=1}else{$.Jv(C,U,"[\n");
U+=2;for(var H=0;H<L.length;H++){$.tM(C,U,"\t".charCodeAt(0),E);U+=E;U=eB.d5(L[H],C,U,E);$.Jv(C,U,"\n");
U++}$.tM(C,U,"\t".charCodeAt(0),E);U+=E;$.Jv(C,U,"]");U+=1}}else if(L instanceof Object){U=eB.DQ(L,C,U,E)}else if(typeof L=="string"){$.Jv(C,U,"(");
U++;$.tM(C,U,254);U++;$.tM(C,U,255);U++;U=$.gI(C,U,L);$.Jv(C,U,")");U+=1}else{var z=L+"";$.Jv(C,U,z);
U+=z.length}return U};eB.amb=function(L){var C=typeof L;return C=="string"||C=="number"||C=="boolean"};
function a2(){}a2.Vu=function(L){var C={};a2.ZG(L,C,0,0);return C};a2.cd=function(L,C){var U=0;$.Jv(C,U," ");
U++;U=a2.Hn(L,C,U,0);U--;C.bF(U,2);C.data[U]=C.data[U+1]=0;U+=2;return U};a2.Uo=function(L,C,U,E){while(L[U]!="<".charCodeAt(0)){U++;
console.log("\u0161ipka")}U+=2;U=a2.ZG(L,C,U,E);return U};a2.DQ=function(L,C,U,E){$.Jv(C,U,"<< ");U+=3;
U=a2.Hn(L,C,U,E);$.Jv(C,U,">>");U+=2;return U};a2.YZ=function(L){return L==9||L==10||L==32};a2.ZG=function(L,C,U,E){while(!0){while(a2.YZ(L[U])||L[U]==0)U++;
if(U>=L.length)break;if(L[U]=="/".charCodeAt(0)){U++;var Y=U;while(!a2.YZ(L[Y]))Y++;var z=$.ZA(L,U,Y-U);
U=Y+1;var r=a2.Ji(L,U,E,z);C["_"+z]=r.G;U+=r.size}else if(L[U]==">".charCodeAt(0)){U+=2;break}else{var p=L[U];
console.log($.ZA(L,U,U+100));console.log("unknown byte: "+p+", char: "+String.fromCharCode(p)+", offset: "+U);
U++;throw"e";return-1}}return U};a2.Hn=function(L,C,U,E){for(var Y in L){var z=Y.substring(1,Y.length);
$.Jv(C,U,"/"+z);U+=1+z.length;$.Jv(C,U," ");U++;U=a2.d5(L[Y],C,U,E+1);$.Jv(C,U," ");U++}return U};a2.Ji=function(L,C,U,E){var Y=C,z={type:"",size:0,G:0};
while(a2.YZ(L[C]))C++;if(L[C]=="<".charCodeAt(0)){z.type="Object";z.G={};C=a2.Uo(L,z.G,C,U+1)}else if(L[C]=="(".charCodeAt(0)){z.type="String";
C++;if(L[C]==")".charCodeAt(0)){z.G="s";C++}else{C+=2;var r=C,e4=0;while(!0){if(L[r]==")".charCodeAt(0)&&L[r-1]!="\\".charCodeAt(0))break;
else r+=1}z.G="s"+$.hc(L,C,r);C=r+2}}else if(L[C]=="[".charCodeAt(0)){C++;z.G=[];z.type="Array";while(a2.YZ(L[C]))C++;
while(L[C]!="]".charCodeAt(0)){var p=a2.Ji(L,C,U+1,E);if(p==-1)return-1;z.G.push(p.G);C+=p.size;delete p.size;
while(a2.YZ(L[C]))C++}C++}else{var T=C;while(!a2.YZ(L[T]))T++;var k=$.ZA(L,C,T-C),P=parseFloat(k);if(!isNaN(P)&&k.indexOf(".")!=-1){z.type="Float";
var b=parseFloat(k);z.G="f"+b}else if(!isNaN(P)&&k.indexOf(".")==-1){z.type="Integer";z.G="i"+parseInt(k)}else if(k=="true"||k=="false"){z.type="Boolean";
z.G=k=="true"}else if(k.charAt(0)=="/"){z.type="BString";z.G=k}else if(k=="NaN"){z.type="Float";z.G="f0"}else{console.log("unknown value",JSON.stringify(k));
throw"e"}C=T+1}z.size=C-Y;return z};a2.ahI=function(L){if(L==Math.round(L))return L+".0";var C=L.toFixed(5);
if(0<L&&L<1)C=C.substring(1,C.length);if(-1<L&&L<0)C="-"+C.substring(2,C.length);return C};a2.d5=function(L,C,U,E){var Y=typeof L=="string"?L.charAt(0):"";
if(L instanceof Array){$.Jv(C,U,"[ ");U+=2;for(var H=0;H<L.length;H++){U=a2.d5(L[H],C,U,E);$.Jv(C,U," ");
U++}$.Jv(C,U,"]");U+=1}else if(L instanceof Object){U=a2.DQ(L,C,U,E)}else if(Y=="s"){$.Jv(C,U,"(");U++;
$.tM(C,U,254);U++;$.tM(C,U,255);U++;U=$.gI(C,U,L.substring(1));$.Jv(C,U,")");U++}else if(Y=="/"){$.Jv(C,U,L);
U+=L.length}else if(Y=="f"){var z=parseFloat(L.substring(1)),r=a2.ahI(z);$.Jv(C,U,r);U+=r.length}else if(Y=="i"){$.Jv(C,U,L.substring(1));
U+=L.length-1}else{var r=L+"";$.Jv(C,U,r);U+=r.length}return U};function hZ(L,C){if(!L)L=0;if(!C)C=0;
this.x=L;this.y=C}hZ.prototype.add=function(L){return new hZ(this.x+L.x,this.y+L.y)};hZ.prototype.clone=function(){return new hZ(this.x,this.y)};
hZ.prototype.mP=function(L){this.x=L.x;this.y=L.y};hZ.prototype.cg=function(L){return this.x==L.x&&this.y==L.y};
hZ.prototype.normalize=function(L){var C=Math.sqrt(this.x*this.x+this.y*this.y);this.x*=L/C;this.y*=L/C};
hZ.prototype.offset=function(L,C){this.x+=L;this.y+=C};hZ.prototype.U6=function(L,C){this.x=L;this.y=C};
hZ.prototype.AE=function(L){return new hZ(this.x-L.x,this.y-L.y)};hZ.sl=function(L,C){return hZ.agO(L.x,L.y,C.x,C.y)};
hZ.YK=function(L,C,U){return new hZ(L.x+U*(C.x-L.x),L.y+U*(C.y-L.y))};hZ.a5f=function(L,C){return new hZ(L*Math.cos(C),L*Math.sin(C))};
hZ.agO=function(L,C,U,E){return Math.sqrt((U-L)*(U-L)+(E-C)*(E-C))};hZ.zA={};hZ.un={};hZ.zA.create=function(){var L=new Float32Array(4);
return L};hZ.un.create=function(L){var C=new Float32Array(16);C[0]=C[5]=C[10]=C[15]=1;if(L)hZ.un.set(L,C);
return C};hZ.zA.add=function(L,C,U){U[0]=L[0]+C[0];U[1]=L[1]+C[1];U[2]=L[2]+C[2];U[3]=L[3]+C[3]};hZ.zA.set=function(L,C){C[0]=L[0];
C[1]=L[1];C[2]=L[2];C[3]=L[3]};hZ.un.set=function(L,C){C[0]=L[0];C[1]=L[1];C[2]=L[2];C[3]=L[3];C[4]=L[4];
C[5]=L[5];C[6]=L[6];C[7]=L[7];C[8]=L[8];C[9]=L[9];C[10]=L[10];C[11]=L[11];C[12]=L[12];C[13]=L[13];C[14]=L[14];
C[15]=L[15]};hZ.un.multiply=function(L,C,U){var E=L[0],Y=L[1],z=L[2],r=L[3],p=L[4],T=L[5],k=L[6],P=L[7],b=L[8],Q=L[9],K=L[10],h=L[11],x=L[12],O=L[13],y=L[14],v=L[15],i=C[0],D=C[1],I=C[2],m=C[3];
U[0]=i*E+D*p+I*b+m*x;U[1]=i*Y+D*T+I*Q+m*O;U[2]=i*z+D*k+I*K+m*y;U[3]=i*r+D*P+I*h+m*v;i=C[4];D=C[5];I=C[6];
m=C[7];U[4]=i*E+D*p+I*b+m*x;U[5]=i*Y+D*T+I*Q+m*O;U[6]=i*z+D*k+I*K+m*y;U[7]=i*r+D*P+I*h+m*v;i=C[8];D=C[9];
I=C[10];m=C[11];U[8]=i*E+D*p+I*b+m*x;U[9]=i*Y+D*T+I*Q+m*O;U[10]=i*z+D*k+I*K+m*y;U[11]=i*r+D*P+I*h+m*v;
i=C[12];D=C[13];I=C[14];m=C[15];U[12]=i*E+D*p+I*b+m*x;U[13]=i*Y+D*T+I*Q+m*O;U[14]=i*z+D*k+I*K+m*y;U[15]=i*r+D*P+I*h+m*v;
return U};hZ.un.inverse=function(L,C){var U=L[0],E=L[1],Y=L[2],z=L[3],r=L[4],p=L[5],T=L[6],k=L[7],P=L[8],b=L[9],Q=L[10],K=L[11],h=L[12],x=L[13],O=L[14],y=L[15],v=U*p-E*r,i=U*T-Y*r,D=U*k-z*r,I=E*T-Y*p,m=E*k-z*p,f=Y*k-z*T,A=P*x-b*h,d=P*O-Q*h,g=P*y-K*h,X=b*O-Q*x,n=b*y-K*x,R=Q*y-K*O,l=v*R-i*n+D*X+I*g-m*d+f*A;
if(!l){return null}l=1/l;C[0]=(p*R-T*n+k*X)*l;C[1]=(Y*n-E*R-z*X)*l;C[2]=(x*f-O*m+y*I)*l;C[3]=(Q*m-b*f-K*I)*l;
C[4]=(T*g-r*R-k*d)*l;C[5]=(U*R-Y*g+z*d)*l;C[6]=(O*D-h*f-y*i)*l;C[7]=(P*f-Q*D+K*i)*l;C[8]=(r*n-p*g+k*A)*l;
C[9]=(E*g-U*n-z*A)*l;C[10]=(h*m-x*D+y*v)*l;C[11]=(b*D-P*m-K*v)*l;C[12]=(p*d-r*X-T*A)*l;C[13]=(U*X-E*d+Y*A)*l;
C[14]=(x*i-h*I-O*v)*l;C[15]=(P*I-b*i+Q*v)*l;return C};hZ.un.a2O=function(L,C,U){var E=C[0],Y=C[1];U[0]=E*L[0]+Y*L[4]+L[12];
U[1]=E*L[1]+Y*L[5]+L[13]};hZ.un.alZ=function(L,C,U){var E=C[0],Y=C[1],z=C[2],r=C[3];U[0]=L[0]*E+L[4]*Y+L[8]*z+L[12]*r;
U[1]=L[1]*E+L[5]*Y+L[9]*z+L[13]*r;U[2]=L[2]*E+L[6]*Y+L[10]*z+L[14]*r;U[3]=L[3]*E+L[7]*Y+L[11]*z+L[15]*r};
function c0(L,C,U,E,Y,z){if(typeof L==="undefined"){L=1;C=0;U=0;E=1;Y=0;z=0}this.R=L;this.O=C;this.Z9=U;
this.J2=E;this.Yt=Y;this.rv=z}c0.prototype.ia=function(){return Math.sqrt(Math.abs(this.R*this.J2-this.O*this.Z9))};
c0.prototype.pL=function(){var L=this,C=function(U){return Math.abs(U)<1e-9?0:U};L.R=C(L.R);L.O=C(L.O);
L.Z9=C(L.Z9);L.J2=C(L.J2);L.Yt=C(L.Yt);L.rv=C(L.rv)};c0.prototype.Om=function(L){return new hZ(L.x*this.R+L.y*this.Z9+this.Yt,L.x*this.O+L.y*this.J2+this.rv)};
c0.prototype.translate=function(L,C){this.Yt+=L;this.rv+=C};c0.prototype.rotate=function(L){var C=new c0(Math.cos(L),-Math.sin(L),Math.sin(L),Math.cos(L),0,0);
this.concat(C)};c0.prototype.scale=function(L,C){var U=new c0(L,0,0,C,0,0);this.concat(U)};c0.prototype.concat=function(L){this.mP(new c0(this.R*L.R+this.O*L.Z9,this.R*L.O+this.O*L.J2,this.Z9*L.R+this.J2*L.Z9,this.Z9*L.O+this.J2*L.J2,this.Yt*L.R+this.rv*L.Z9+L.Yt,this.Yt*L.O+this.rv*L.J2+L.rv))};
c0.prototype.G$=function(){var L=this.R*this.J2-this.O*this.Z9;this.mP(new c0(this.J2/L,-this.O/L,-this.Z9/L,this.R/L,(this.Z9*this.rv-this.J2*this.Yt)/L,(this.O*this.Yt-this.R*this.rv)/L))};
c0.prototype.clone=function(){return new c0(this.R,this.O,this.Z9,this.J2,this.Yt,this.rv)};c0.prototype.mP=function(L){this.R=L.R;
this.O=L.O;this.Z9=L.Z9;this.J2=L.J2;this.Yt=L.Yt;this.rv=L.rv};function $(){}$.aap=function(u){var L="";
for(var H=3;H>=0;H--)L+=String.fromCharCode(u>>H*8&255);return L};$.a36=function(L){var u=0;for(var H=L.length-1;
H>=0;H--)u|=L.charCodeAt(H)<<(3-H)*8;return u};$.indexOf=function(L,C,U,E){if(U==null)U=0;if(E==null)E=L.length;
E=Math.min(E,L.length);for(var H=U;H<E;H++)if(L[H]==C)return H;return-1};$.r1=function(L,C,U){if(U==null)U=0;
if(typeof C=="string"){var E=[];for(var H=0;H<C.length;H++)E.push(C.charCodeAt(H));C=E}for(var H=U;H<L.length;
H++){var Y=!0;for(var z=0;z<C.length;z++)if(C[z]!=L[H+z]){Y=!1;break}if(Y)return H}return-1};$.hc=function(L,C,U){var E=[],z="";
while(C<U){var Y=L[C++];if(Y=="\\".charCodeAt(0))E.push(L[C++]);else E.push(Y)}for(var H=0;H<E.length;
H+=2)z+=String.fromCharCode(E[H]<<8|E[H+1]);return z};$.a6B=function(L,C,U){var E=new Uint8Array(2);
for(var H=0;H<U.length;H++){$.OH(E,0,U.charCodeAt(H));if(E[0]==")".charCodeAt(0)||E[0]=="(".charCodeAt(0)||E[0]=="\\".charCodeAt(0)){L[C]="\\".charCodeAt(0);
C++}L[C]=E[0];C++;if(E[1]==")".charCodeAt(0)||E[1]=="(".charCodeAt(0)||E[1]=="\\".charCodeAt(0)){L[C]="\\".charCodeAt(0);
C++}L[C]=E[1];C++}return C};$.gI=function(L,C,U){L.bF(C,4*U.length);return $.a6B(L.data,C,U)};$.Fz=function(L,C,U){var E="";
for(var H=0;H<U;H++){var Y=L[C++]|L[C++]<<8;E+=String.fromCharCode(Y)}return E};$.I7=function(L,C,U){var E="";
for(var H=0;H<U;H++){var Y=L[C++]<<8|L[C++];E+=String.fromCharCode(Y)}return E};$.a0X=function(L,C,U){for(var H=0;
H<U.length;H++){var E=U.charCodeAt(H);$.R3(L,C+2*H,E)}};$._9=function(L,C,U){for(var H=0;H<U.length;
H++){var E=U.charCodeAt(H);$.OH(L,C+2*H,E)}};$.a9i=function(L,C,U){L.bF(C,2*U.length);$._9(L.data,C,U)};
$.af2=function(L,H,C){var U=[],E=0,Y=0;C+=H;while(H<C){E=L[H++];if((E&128)==0)Y=E;else if((E&224)==192){Y=(E&31)<<6;
E=L[H++];Y|=E&63}else if((E&240)==224){Y=(E&15)<<12;E=L[H++];Y|=(E&63)<<6;E=L[H++];Y|=E&63}else if((E&248)==240){Y=(E&7)<<18;
E=L[H++];Y|=(E&63)<<12;E=L[H++];Y|=(E&63)<<6;E=L[H++];Y|=E&63}else throw"e";U.push(Y)}return U};$.SD=window.TextDecoder?new window.TextDecoder("utf8"):null;
$.IQ=function(L,C,U){if(C==null)C=0;if(U==null)U=L.length;if($.SD&&C==0&&U==L.length)return $.SD.decode(L);
var E=$.af2(L,C,U),Y=E.length;for(var H=0;H<Y;H++)E[H]=String.fromCharCode(E[H]);return E.join("")};
$.Qb=window.TextEncoder?new window.TextEncoder("utf8"):null;$.RK=function(L){if($.Qb)return $.Qb.encode(L);
var C=new Uint8Array(L.length*4),U=$.mW(L,C,0);return C.slice(0,U)};$.mW=function(L,C,U){var E=L.length,H=0;
for(var Y=0;Y<E;Y++){var z=L.charCodeAt(Y);if((z&4294967295-(1<<7)+1)==0){C[U+H]=z;H++}else if((z&4294967295-(1<<11)+1)==0){C[U+H]=192|z>>6;
C[U+H+1]=128|z>>0&63;H+=2}else if((z&4294967295-(1<<16)+1)==0){C[U+H]=224|z>>12;C[U+H+1]=128|z>>6&63;
C[U+H+2]=128|z>>0&63;H+=3}else if((z&4294967295-(1<<21)+1)==0){C[U+H]=240|z>>18;C[U+H+1]=128|z>>12&63;
C[U+H+2]=128|z>>6&63;C[U+H+3]=128|z>>0&63;H+=4}else throw"e"}return H};$.Gb=function(L,C){var U=$.i(L,C),E=$.IQ(L,C+4,U-1);
return{uR:E,fr:4+U}};$.afU=function(L,C){var U=$.Nl(L,C),E=$.Fz(L,C+4,U);return E};$.jf=function(L,C){var U=$.i(L,C),E=$.I7(L,C+4,U);
return E};$.m6=function(L,C){var U=$.i(L,C),E=$.I7(L,C+4,U-1);return E};$.a20=function(L,C,U){$.Zg(L,C,U.length);
C+=4;$.a0X(L,C,U)};$.af0=function(L,C,U){$.Iy(L,C,U.length);C+=4;$._9(L,C,U)};$.jx=function(L,C,U){L.bF(C,4+2*U.length);
$.af0(L.data,C,U)};$.af8=function(L,C,U){L.bF(C,4+2*U.length);$.a20(L.data,C,U)};$.l9=function(L,C,U){var E=[];
for(var H=0;H<U;H++)E.push(String.fromCharCode(L[C+H]));return E};$.a9u=function(L,C,U){var E=!1,Y=L.length-U.length;
for(var H=C;H<Y;H++){for(var z=0;z<U.length;z++){if(L[H+z]!=U.charCodeAt(z))break;if(z==U.length-1)return H}}};
$.ZA=function(L,C,U){var E="";for(var H=0;H<U;H++)E+=String.fromCharCode(L[C+H]);return E};$.Ti=function(L,C,U){for(var H=0;
H<U.length;H++)L[C+H]=U.charCodeAt(H)};$.Jv=function(L,C,U){L.bF(C,U.length);$.Ti(L.data,C,U)};$.ali=function(L,C,U){var E="";
for(var H=0;H<U;H++){var Y=L[C+H];if(Y<10)E+="  ";else if(Y<100)E+=" ";E+=Y+", "}return E};$.lb=function(L,C){return L[C]<<8|L[C+1]};
$.OH=function(L,C,u){L[C]=u>>8&255;L[C+1]=u&255};$._h=function(L,C,u){L.bF(C,4);$.OH(L.data,C,u)};$.a6Y=function(L,C){var U=$.lb(L,C),E=$.lb(L,C+2);
return U+E*(1/65536)};$.fA=function(L,C,u){var U=Math.floor(u),E=Math.floor((u-U)*65536);$.OH(L,C,U);
$.OH(L,C+2,E)};$.PJ=function(L,C){return L[C+1]<<8|L[C]};$.R3=function(L,C,u){L[C+1]=u>>8&255;L[C]=u&255};
$.ux=function(L,C,u){L.bF(C,4);$.R3(L.data,C,u)};$.sZ=function(L,C){$.WP[0]=L[C+1];$.WP[1]=L[C];return $.vN[0]};
$.kI=function(L,C){$.WP[0]=L[C];$.WP[1]=L[C+1];return $.vN[0]};$.KX=$.OH;$.lB=$._h;$.xw=function(L,C){$.jm[0]=L[C+3];
$.jm[1]=L[C+2];$.jm[2]=L[C+1];$.jm[3]=L[C];return $.h1[0]};$.nv=function(L,C,u){$.h1[0]=u;L[C+3]=$.jm[0];
L[C+2]=$.jm[1];L[C+1]=$.jm[2];L[C+0]=$.jm[3]};$.rb=function(L,C,u){L.bF(C,4);$.nv(L.data,C,u)};$.IB=function(L,C,U,E){U[E+0]=L[C+0];
U[E+1]=L[C+1];U[E+2]=L[C+2];U[E+3]=L[C+3]};$.Nl=function(L,C){$.IB(L,C,$.jm,0);return $.fz[0]};$.Zg=function(L,C,u){$.fz[0]=u;
$.IB($.jm,0,L,C)};$.kE=function(L,C,u){L.bF(C,4);$.Zg(L.data,C,u)};$.c3=function(L,C){$.IB(L,C,$.jm,0);
return $.h1[0]};$.abj=function(L,C,u){$.h1[0]=u;$.IB($.jm,0,L,C)};$.a4o=function(L,C,u){L.bF(C,4);$.abj(L.data,C,u)};
$.i=function(L,C){var U=L[C]*(256*256*256)+(L[C+1]<<16|L[C+2]<<8|L[C+3]);return U};$.Iy=function(L,C,u){L[C]=u>>24&255;
L[C+1]=u>>16&255;L[C+2]=u>>8&255;L[C+3]=u>>0&255};$.KC=function(L,C,u){L.bF(C,4);$.Iy(L.data,C,u)};$.M_=function(L,C){return $.i(L,C)<<32|$.i(L,C+4)};
$.agg=function(L,C,u){$.Iy(L,C,u>>16>>16);$.Iy(L,C+4,u&4294967295)};$.eH=function(L,C,u){L.bF(C,8);$.agg(L.data,C,u)};
$.HD=function(L,C){var U=new Uint8Array(8);for(var H=0;H<8;H++)U[H]=L[C+7-H];var E=new Float64Array(U.buffer);
return E[0]};$.a0N=function(L,C){var U=new Uint8Array(8);for(var H=0;H<8;H++)U[H]=L[C+H];var E=new Float64Array(U.buffer);
return E[0]};$.ZC=function(L,C,u){var U=new Float64Array(1);U[0]=u;var E=new Uint8Array(U.buffer);for(var H=0;
H<4;H++){var Y=E[H];E[H]=E[7-H];E[7-H]=Y}for(var H=0;H<8;H++)L[C+H]=E[H]};$.ZN=function(L,C,u){L.bF(C,8);
$.ZC(L.data,C,u)};$.qV=function(L,C){$.jm[0]=L[C+3];$.jm[1]=L[C+2];$.jm[2]=L[C+1];$.jm[3]=L[C+0];return $.jq[0]};
$.Aq=function(L,C){$.jm[0]=L[C+0];$.jm[1]=L[C+1];$.jm[2]=L[C+2];$.jm[3]=L[C+3];return $.jq[0]};$.ZB=function(L,C,u){$.jq[0]=u;
L[C+0]=$.jm[3];L[C+1]=$.jm[2];L[C+2]=$.jm[1];L[C+3]=$.jm[0]};$.a08=function(L,C,u){L.bF(C,4);$.ZB(L.data,C,u)};
$._R=function(L,C,u){$.jq[0]=u;L[C+0]=$.jm[0];L[C+1]=$.jm[1];L[C+2]=$.jm[2];L[C+3]=$.jm[3]};$.ai2=function(L,C,u){L.bF(C,4);
$._R(L.data,C,u)};$.a5l=function(L,C){var U=$.xw(L,C),E=U*(1/(1<<24));return E};$.KM=function(L,C,U){var E=Math.floor(U*(1<<24));
$.nv(L,C,E)};$.akx=function(L,C,U){L.bF(C,4);$.KM(L.data,C,U)};$.Q5=function(L,C){var U=L[C],E=$.ZA(L,C+1,U);
U+=1-U%2;return{oB:E,length:U+1}};$.a1$=function(L,C,U){var E=U.length;L[C]=E;$.Ti(L,C+1,U);if(E%2==0){L[C+1+E]=0;
++E}return E+1};$.bq=function(L,C,U){L.bF(C,U.length+2);return $.a1$(L.data,C,U)};$.RB=function(L,C){var U=new c0;
U.R=$.HD(L,C+0*8);U.O=$.HD(L,C+1*8);U.Z9=$.HD(L,C+2*8);U.J2=$.HD(L,C+3*8);U.Yt=$.HD(L,C+4*8);U.rv=$.HD(L,C+5*8);
return U};$.oC=function(L,C,U){$.ZC(L,C+0*8,U.R);$.ZC(L,C+1*8,U.O);$.ZC(L,C+2*8,U.Z9);$.ZC(L,C+3*8,U.J2);
$.ZC(L,C+4*8,U.Yt);$.ZC(L,C+5*8,U.rv)};$.a9t=function(L,C,U){L.bF(C,48);$.oC(L.data,C,U)};$.an_=function(L,C){var U=$.qV(L,C),E=$.qV(L,C+4),Y=$.qV(L,C+8),z=$.qV(L,C+12);
return new _(U,E,Y-U,z-E)};$.abW=function(L,C,U){$.ZB(L,C,U.x);$.ZB(L,C+4,U.y);$.ZB(L,C+8,U.x+U.d);$.ZB(L,C+12,U.y+U.v)};
$.ab_=function(L,C,U){L.bF(C,16);$.abW(L.data,C,U)};$.lD=function(L,C){var U=$.xw(L,C),E=$.xw(L,C+4),Y=$.xw(L,C+8),z=$.xw(L,C+12);
return new _(E,U,z-E,Y-U)};$.Ej=function(L,C,U){$.nv(L,C,U.y);$.nv(L,C+4,U.x);$.nv(L,C+8,U.y+U.v);$.nv(L,C+12,U.x+U.d)};
$.Vk=function(L,C,U){L.bF(C,16);$.Ej(L.data,C,U)};$.LH=function(L,C,U){var E=new Uint8Array(U);for(var H=0;
H<U;H++)E[H]=L[C+H];return E};$.xR=function(L,C,U){L.set(U,C)};$.BC=function(L,C,U){L.bF(C,U.length);
$.xR(L.data,C,U)};$.afd=function(L,C,U,u){if(!u)u=1;for(var H=0;H<u;H++)L[C+H]=U};$.tM=function(L,C,U,u){if(!u)u=1;
L.bF(C,u);$.afd(L.data,C,U,u)};$.vN=new Int16Array(1);$.WP=new Uint8Array($.vN.buffer);$.h1=new Int32Array(1);
$.fz=new Uint32Array($.h1.buffer);$.jm=new Uint8Array($.h1.buffer);$.jq=new Float32Array($.h1.buffer);
function _(L,C,U,E){if(!L)L=0;if(!C)C=0;if(!U)U=0;if(!E)E=0;this.x=L;this.y=C;this.d=U;this.v=E}_.prototype.X=function(){return this.d*this.v};
_.prototype.clone=function(){return new _(this.x,this.y,this.d,this.v)};_.prototype.contains=function(L,C){return L>=this.x&&L<=this.x+this.d&&(C>=this.y&&C<=this.y+this.v)};
_.prototype.qh=function(L){return this.contains(L.x,L.y)};_.prototype.zg=function(L){return this.x<=L.x&&this.y<=L.y&&L.x+L.d<=this.x+this.d&&L.y+L.v<=this.y+this.v};
_.prototype.mP=function(L){this.x=L.x;this.y=L.y;this.d=L.d;this.v=L.v};_.prototype.cg=function(L){return this.x==L.x&&this.y==L.y&&this.d==L.d&&this.v==L.v};
_.prototype.WW=function(L,C){this.x-=L;this.y-=C;this.d+=2*L;this.v+=2*C};_.prototype.ais=function(L){this.WW(L.x,L.y)};
_.prototype.eR=function(L){var C=Math.max(this.x,L.x),U=Math.max(this.y,L.y),E=Math.min(this.x+this.d,L.x+L.d),Y=Math.min(this.y+this.v,L.y+L.v);
if(E<C||Y<U)return new _;else return new _(C,U,E-C,Y-U)};_.prototype.nN=function(L){if(L.y+L.v<this.y||L.x>this.x+this.d||L.y>this.y+this.v||L.x+L.d<this.x)return!1;
return!0};_.prototype.ue=function(){return this.d<=0||this.v<=0};_.prototype.offset=function(L,C){this.x+=L;
this.y+=C};_.prototype.OU=function(L){this.offset(L.x,L.y)};_.prototype.adV=function(){this.x=this.y=this.d=this.v=0};
_.prototype.U6=function(L,C,U,E){this.x=L;this.y=C;this.d=U;this.v=E};_.prototype.EU=function(L){if(this.ue())return L.clone();
if(L.ue())return this.clone();var C=this.clone();C.a4S(L);return C};_.oS=new Float32Array(2);_.prototype.a4S=function(L){if(L.ue())return;
if(this.ue()){this.mP(L);return}this._Y(L.x,L.y);this._Y(L.x+L.d,L.y+L.v)};_.prototype._Y=function(L,C){var U=Math.min(this.x,L),E=Math.min(this.y,C);
this.d=Math.max(this.x+this.d,L)-U;this.v=Math.max(this.y+this.v,C)-E;this.x=U;this.y=E};_.prototype.a5g=function(L,C,U,E){if(this.d==0&&this.v==0)this.aiq(L,C);
else this._Y(L,C);this._Y(U,E)};_.prototype.aiq=function(L,C){this.x=L;this.y=C;this.d=this.v=0};function bl(){}bl.Vu=function(L,C){var U=new Uint8Array(L),E=0,Y=$.ZA(U,E,9),p=4,T=100;
E+=9;var z=$.ZA(U,E,4);E+=4;E++;C.d=$.i(U,E);E+=4;C.v=$.i(U,E);E+=4;var r=$.i(U,E);E+=4;if(r!=0)alert("Unsupported image format, not RGB!");
if(["file","v001","v002","v003"].indexOf(z)==-1){T=$.i(U,E);E+=4;if(parseInt(z.slice(1))>=7){T=T}else alert("Unknown XCF version: "+z);
p=8}var k={};E=bl.YI(U,E,k);var P=[];E=bl.M1(U,E,P,p);var b=[];E=bl.M1(U,E,b,p);C.oU=0;for(var H=0;H<P.length;
H++)bl.a3i(U,P[H],C,k,p,T);while(C.oU>0){C.N.push(C.rJ());C.oU--}C.N.reverse();delete C.oU;C.buffer=c.F(C.d*C.v*4);
if(C.N.length==0)console.log("No layers!!!");for(var H=0;H<b.length;H++){var Q=bl.ro(U,b[H],k,p,T);if(Q.eM[cS.akd])C.t={channel:Q.eI,rect:new _(0,0,C.d,C.v)}}};
bl.a3i=function(L,C,U,E,Y,z){var r=U.wP(),p=$.i(L,C),b=0;C+=4;var T=$.i(L,C);C+=4;r.rect=new _(0,0,p,T);
var k=$.i(L,C);C+=4;var P=$.Gb(L,C);C+=P.fr;r.I_(P.uR);var Q={};C=bl.YI(L,C,Q);if(Q[cS.Z1]){var K=Q[cS.Z1];
b=K.length/4-1}if(Q[cS.av]){r.rect.x=$.xw(Q[cS.av],0);r.rect.y=$.xw(Q[cS.av],4)}if(Q[cS.tz]){r.opacity=$.i(Q[cS.tz],0)}if(Q[cS.ahZ]){r.add.lsct=fI.Qr;
r.rect=new _(0,0,0,0);r.buffer=c.F(0);r.bP=24}if(Q[cS.BM]){var h=$.i(Q[cS.BM],0);r.B4=cS.a4c[h];if(r.Jc()&&r.B4=="norm")r.B4="pass"}if(Q[cS.Vz]){if($.i(Q[cS.Vz],0)==0)r.bP+=2}if(Q[cS.nl]){var x=$.i(Q[cS.nl],0);
r.add.lsct=x&1==1?fI.Qr:fI.z7}if(Q[cS.Tw]){var O=Q[cS.Tw];for(var y in O){var v=O[y];if(y=="gimp-text-layer"){var i=bl.a2k(v),D=i.text,I=i.font,m=i.color,f=i["font-size"];
if(D==null&&i.markup){var A=new DOMParser,d=A.parseFromString(i.markup,"image/svg+xml");while(d.firstChild!=null&&d.firstChild.tagName!=null){d=d.firstChild;
var g=d.getAttribute("font"),X=d.getAttribute("foreground"),n=d.getAttribute("size");if(g!=null)I=g;
if(X!=null){X=CSS.FJ(X);m=[1,X.h/255,X.P/255,X.O/255]}if(n!=null){f=""+parseFloat(n)/245}}D=d.textContent}r.add.lnsr="rend";
r.add.TySh=b5.Es(0,0);r.add.TySh.uv=new _(0,0,100,100);r.add.TySh.J=new c0(1,0,0,1,r.rect.x,r.rect.y);
var R=r.add.TySh.Se;b5.X$(R,0,D);var l=b5.L3(R,0,0),w=i.justify,V=i["line-spacing"];if(m)l.LI.FillColor={Type:1,Values:[1,parseFloat(m[1]),parseFloat(m[2]),parseFloat(m[3])]};
if(f){f=Math.round(parseFloat(f));l.LI.FontSize=f;r.add.TySh.J.rv+=Math.min(17,f*.17)}if(V){V=Math.round(parseFloat(V)+l.LI.FontSize*1.2);
l.LI.Leading=V;l.LI.AutoLeading=!1}if(w)l.s6.Justification=["left","right","center","fill"].indexOf(w);
if(I&&I!="Sans-serif"){var F=I.toLowerCase(),Z="bold italic semi extra regular condensed light".split(" "),M=F.length;
for(var H=0;H<Z.length;H++){var a=F.indexOf(Z[H]);if(a!=-1&&a<M&&F[a-1]==" ")M=a}if(M!=F.length)I=I.slice(0,M-1).split(" ").join("")+"-"+I.slice(M).split(" ").join("");
b5.yk(l,I)}b5.Em(R,0,D.length,l);var e=i["box-width"],N=i["box-height"],J=e?parseFloat(e):r.rect.d,f5=N?parseFloat(N):r.rect.v;
b5.B$(R,1);b5.If(R,[0,0,Math.ceil(J),Math.ceil(f5)])}else console.log("Unknown property "+y)}}while(U.oU>b){U.N.push(U.rJ());
U.oU--}U.oU=b;if(r.add.lsct==fI.Qr||r.add.lsct==fI.z7)U.oU++;var dx=Y==4?$.i:$.M_;if(r.bB()){r.buffer=c.F(r.rect.X()*4);
var fq=new c.Ry(r.rect.X()),i9=dx(L,C);C+=Y;var e8=dx(L,C);C+=Y;bl.wG(L,i9,fq,E,Y,z);c.qF(fq,r.buffer);
if(e8!=0){r.r=new o.LF;r.r.color=0;r.r.rect=r.rect.clone();r.r.channel=bl.ro(L,e8,E,Y,z).eI;if(Q[cS.$_])r.r.isEnabled=$.i(Q[cS.$_],0)==1}}U.N.push(r)};
bl.a2k=function(L){var C="("+$.IQ(L,0,L.length-1)+")",U=[],E={};bl.vc(C,1,U);bl.a6U(U,E);return E};bl.a6U=function(L,C){for(var H=0;
H<L.length;H++){var U=L[H],E=U[0];if(U.length==2)C[E]=U[1];else C[E]=U.slice(1)}};bl.vc=function(L,C,U){while(!0){if(C>=L.length)throw"e";
var E=L.charAt(C);C++;if(E=="("){var Y=[];C=bl.vc(L,C,Y);U.push(Y)}else if(E==" "||E=="\n"||E=="\r"){}else if(E==")")return C;
else if(E=="\""){var z=C;while(!0){var r=L[C];C++;if(r=="\"")break;if(r=="\\")C++}U.push(JSON.parse(L.slice(z-1,C)))}else{var z=C-1;
while(L[C]!=" "&&L[C]!=")")C++;U.push(L.slice(z,C))}}};bl.ro=function(L,C,U,E,Y){var z=$.i(L,C);C+=4;
var r=$.i(L,C);C+=4;var p=$.Gb(L,C);C+=p.fr;var T={};C=bl.YI(L,C,T);var k=new c.Ry(z*r),P=E==4?$.i:$.M_,b=P(L,C);
C+=E;bl.wG(L,b,k,U,E,Y);return{eI:k.h,eM:T}};bl.wG=function(L,C,U,E,Y,z){var r=$.i(L,C);C+=4;var p=$.i(L,C);
C+=4;var T=$.i(L,C);C+=4;var k=Y==4?$.i:$.M_,P=k(L,C);C+=Y;bl.a8M(L,P,U,E,T,Y,z)};bl.a8M=function(L,C,U,E,Y,z,r){var p=$.i(L,C),P=0,H=0;
C+=4;var T=$.i(L,C);C+=4;var k=new _(0,0,p,T);if(r==100||r==150)P=1;else if(r==200||r==250)P=2;else if(r==300||r==350)P=4;
else if(r==500||r==550)P=2;else if(r==600||r==650)P=4;else if(r==700||r==750)P=8;else{alert("unsupported bit depth "+r);
throw"e"}var b=Y/P,P=Math.round(Y/b),Q=[];C=bl.M1(L,C,Q,z);var K=new c.Ry(64*64*P),h=new _,x=E[cS.a22][0],O=[K.h,K.P,K.O,K.R];
if(b==3)K.R.fill(255);var y=Date.now();for(var v=0;v<T;v+=64)for(var i=0;i<p;i+=64){var D=Math.min(p-i,64),I=Math.min(T-v,64),m=D*I;
h.U6(i,v,D,I);bl.a9x(L,Q[H++],m*P,x,b,O);if(r==100||r==150){}else if(r==250){for(var f=0;f<b;f++){var A=O[f];
for(var d=0;d<m;d++){var g=A[d]<<8|A[m+d];A[d]=Math.min(g>>>8,255)}}}else if(r==600){var X=bl.ajv(),n=new Uint32Array(1),R=new Float32Array(n.buffer);
for(var f=0;f<b;f++){var A=O[f];for(var d=0;d<m;d++){n[0]=A[d]<<24|A[m+d]<<16|A[(m<<1)+d]<<8|A[(m<<1)+m+d]<<0;
var l=R[0];if(l<0)l=0;else if(l>1)l=1;A[d]=X[~~(.5+l*1e3)]}}}else console.log("unknown data format",r);
c.pc(K,h,U,k)}};bl.ajv=function(){var L=bl.a8e;if(L!=null)return L;L=bl.a8e=new Uint8Array(1001);for(var H=0;
H<1001;H++)L[H]=~~(.49+255*c.UE(H*.001));return L};bl.a9x=function(L,C,U,E,Y,z){if(E==1){for(var r=0;
r<Y;r++){var p=z[r],T=0;while(T<U){var u=L[C];C++;if(u<127){var k=L[C];C++;u++;for(var H=0;H<u;H++)p[T+H]=k}else if(u==127){var P=L[C];
C++;var b=L[C];C++;var k=L[C];C++;u=P<<8|b;for(var H=0;H<u;H++)p[T+H]=k}else if(u==128){var P=L[C];C++;
var b=L[C];C++;u=P<<8|b;for(var H=0;H<u;H++)p[T+H]=L[C+H];C+=u}else{u=256-u;for(var H=0;H<u;H++)p[T+H]=L[C+H];
C+=u}T+=u}}}else if(E==2){var Q=pako.inflate(L.slice(C)),K=Math.round(Q.length/U);for(var H=0;H<U;H++){var h=H*K;
z[0][H]=Q[h];z[1][H]=Q[h+1];z[2][H]=Q[h+2];z[3][H]=K==3?255:Q[h+3]}}else alert("Unknown compression "+E)};
bl.M1=function(L,C,U,E){var Y=E==4?$.i:$.M_;while(!0){var z=Y(L,C);C+=E;if(z==0)break;else U.push(z)}return C};
bl.YI=function(L,C,U){while(!0){var E=$.i(L,C);C+=4;var Y=$.i(L,C);C+=4;if(E==cS.ah1)break;else if(E==cS.Tw)U[E]=bl.ae$(L,C,C+Y);
else U[E]=$.LH(L,C,Y);C+=Y}return C};bl.ae$=function(L,C,U){var E={};while(C<U){var Y=$.Gb(L,C);C+=Y.fr;
var z=$.i(L,C);C+=4;if(z!=1)console.log("unknown flags",z);var r=$.i(L,C);C+=4;E[Y.uR]=$.LH(L,C,r);C+=r}return E};
var cS={ah1:0,a6s:1,a0K:2,a5r:3,akd:4,acY:5,tz:6,BM:7,Vz:8,an4:9,a2T:10,$_:11,a0M:12,a48:13,akO:14,av:15,age:16,a22:17,a2C:18,ab6:19,aln:20,Tw:21,a62:22,ad$:23,afy:24,aj3:25,a39:26,akZ:27,ajd:28,ahZ:29,Z1:30,nl:31,ac$:32,agU:33,anu:34,a7t:35,a4H:36,a3d:37,agL:38,ae8:0,a3$:1,amj:2,a1A:3,a3N:1,aiw:2,a0Y:0,aai:1,a3y:1};
cS.a4c="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(",");
function e5(){}e5.Vu=function(L,C){var U=e5,E=en.parse(L),z=0;if(E.pages.length>1)console.log(E.pages.length,"pages");
var Y=[],r=new _;for(var p=0;p<E.pages.length;p++){var T=E.pages[p],k=T.layers,P=U.mE(k,p),Q=!1;if(P.X()>8e3*8e3||P.d>3e4||P.v>3e4){U.u7(k,!0);
var b=U.mE(k,p);if(b.X()>=P.X())U.u7(k,!1)}P=U.mE(k,p);for(var K=0;K<k.length;K++){var h=k[K];if(U.Sp(h)=="artboard")Q=!0}if(!Q){console.log("no artboard");
var x={};for(var O in T)x[O]=T[O];x._class="group";T.layers=[x]}Y.push(P.clone());if(P.ue())continue;
P.x=0;P.y=z;z+=P.v+200;r=r.EU(P)}var y={};if(E.foreignSymbols)for(var H=0;H<E.foreignSymbols.length;
H++){var v=E.foreignSymbols[H].symbolMaster;y[v.symbolID]={kW:v}}U.rH(E.pages,y,C);for(var i in y){var h=y[i].kW,D=U.wk(h.layers)}var I=e5.R8(r,8192*8192);
C.pu=!0;C.d=Math.round(r.d/I);C.v=Math.round(r.v/I);C.buffer=c.F(C.d*C.v*4);C.Re(E.pages[0].layers.length);
C.BQ={};C.Cp=[];z=0;for(var p=0;p<E.pages.length;p++){var m=E.pages[p],P=Y[p],f=new c0(I,0,0,I,P.x,P.y-z);
U.Mz(m.layers,C,f,E,y,{},[]);z+=P.v+200}delete C.BQ;delete C.Cp;if(I!=1)alert("File scaled down "+I+"x");
C.adD()};e5.a7x=0;e5.Sp=function(L){return L._class?L._class:L.$class};e5.R8=function(L,C){var U=1;while(Math.round(L.d/U)*Math.round(L.v/U)>C||Math.max(Math.round(L.d/U),Math.round(L.v/U))>3e4)U++;
if(U!=1&&!window.confirm("Your image is quite large ("+L.d+" x "+L.v+" px).\n"+"Press OK to scale it down "+U+"x, or Cancel to keep the size."))U=1;
return U};e5.mE=function(L,C){var U=[],E=e5;for(var Y=0;Y<L.length;Y++){var z=L[Y],r=E.lD(z.frame);if(C==0||E.Sp(z)=="artboard")U.push(r)}return c.rect.IS(U)};
e5.u7=function(L,C){var U=[],E=e5;for(var Y=0;Y<L.length;Y++){var z=L[Y],r=E.lD(z.frame);r.d+=150;r.v+=150;
U.push(r)}var p=c.rect.IS(U);c.rect.ab8(U,C);var T=c.rect.IS(U);if(T.X()*1.5<p.X()||p.d>3e4&&T.d<=3e4||p.v>3e4&&T.v<=3e4){alert("Re-arranging artboards");
for(var Y=0;Y<L.length;Y++){var k=U[Y],z=L[Y],P=z.frame;P.x=k.x;P.y=k.y}}};e5.rH=function(L,C,U){var E=e5;
for(var Y=0;Y<L.length;Y++){var z=L[Y],r=E.Sp(z);if(["page","artboard","group"].indexOf(r)!=-1)E.rH(z.layers,C,U);
else if(r=="symbolMaster")C[z.symbolID]={kW:z}}};e5.wk=function(L){var C=e5;for(var U=0;U<L.length;U++){var E=L[U],Y=C.Sp(E),z=null;
if(["page","artboard","group"].indexOf(Y)!=-1)z=C.wk(E.layers);if(Y=="symbolMaster"||Y=="symbolInstance")z=E;
if(z!=null)return z}return null};e5.Mz=function(L,C,U,E,Y,z,r){var p=e5,T=[];for(var k=0;k<L.length;
k++){var P=L[k],b=P.frame?p.lD(P.frame):null,Q=P.style,y="",f=null,A=!1;if(Q==null){console.log("no styles")}var K=p.Gp(P,U),h=p.Sp(P),x=h=="shapeGroup"||h=="shapePath"||h=="rectangle"||h=="oval"||h=="triangle"||h=="polygon",O=["page","artboard","group"].indexOf(h)!=-1;
if(h=="shapeGroup"){for(var H=0;H<P.layers.length;H++)if(p.Sp(P.layers[H])=="shapeGroup")O=!0}var v=P.exportOptions;
if(v){var i=v.exportFormats;if(i==null)i=v.sizes;if(h!="artboard"&&(i&&i.length!=0)){var D=i[0].scale}}var I=C.wP();
I.Qs(P.isVisible);var m=P.name;if(!(typeof m=="string"))m=h;I.I_(y+m.slice(0,250));if(Q!=null)f=p.aly(E,C,Q,b,K,I.getName(),x||h=="artboard"||O);
if(h=="rectangle"&&Q&&Q.fills&&Q.fills[0]){var d=Q.fills[0];if(d.fillType==4&&d.patternFillType>1&&d.image!=null)A=!0}if(P.shouldBreakMaskChain){while(T.length!=0)p.YP(T.pop(),C)}if(O){I.add.lsct=P.layerListExpandedType==2?fI.Qr:fI.z7;
I.B4="pass";I.bP=24;I.Qs(P.isVisible);C.N.push(C.rJ());if(h=="artboard"){var g=b.clone(),X=K.ia();g.x=-Math.floor(K.Yt/X);
g.y=-Math.floor(K.rv/X);g.d=Math.floor(g.d/X);g.v=Math.floor(g.v/X);I.eJ(g);var n=P.backgroundColor,R=n?{h:255*n.red,P:255*n.green,O:255*n.blue}:{h:255,P:255,O:255};
I.add.artb.Clr={t:"Objc",v:c.W._b(R)};I.add.artb.artboardBackgroundType={t:"long",v:4}}p.Mz(P.layers,C,K,E,Y,z,r)}else if(x&&!A){I.add.vmsk=new o.mR;
I.add.vstk=JSON.parse(JSON.stringify(gM.H0.default));I.add.vstk.strokeEnabled.v=!1;I.add.vogk=[];var l=f!=null&&f.frameFXMulti.v.length==1,w=Q?Q.fills:null,V=Q?p.sL(E,w,b,K,I.getName(),C,p.b3(r,P.do_objectID+"_image")):[];
if(V.length==0){if(l)I.add.vstk.fillEnabled.v=!1;else I.add.iOpa=0;I.add.SoCo={classID:"null",Clr:{t:"Objc",v:c.W._b({h:0,P:0,O:0})}}}else{var F=V[0],Z=null,M=null;
if(F.type=="SoFi"){Z="SoCo";M=gM.TL}if(F.type=="GrFl"){Z="GdFl";M=gM.DV}if(F.type=="patternFill"){Z="PtFl";
M=gM.ex}if(Z!=null){I.add[Z]={classID:"null"};for(var H=0;H<M.length;H++){var a=M[H];I.add[Z][a]=F.G.v[a]}var e=F.G.v.Opct.v.val;
if(l&&e==0)I.add.vstk.fillEnabled.v=!1;else I.add.iOpa=Math.round(255*e/100)}}I.bP|=16;I.add.vmsk.n=p.P1(P.layers?P.layers:[P],P.layers?K:U,I.add.vogk);
var N=Q?Q.blur:null;if(N&&N.isEnabled&&N.type<=1)I.add.vmsk.hY=N.radius;if(I.add.vmsk.n.length==2){console.log("shape with no content:",I.getName())}if(l){var J=f.frameFXMulti.v[0].v,s=I.add.vstk,f5=Q.borders[0];
f.frameFXMulti.v=[];ca.tF(J,s);var dx=Q.borderOptions,fq=Q.miterLimit;if(dx){var i9=dx.dashPattern;s.strokeStyleLineCapType.v.strokeStyleLineCapType=gM.H0.h9[dx.lineCapStyle];
s.strokeStyleLineJoinType.v.strokeStyleLineJoinType=gM.H0.join[dx.lineJoinStyle];if(i9)s.strokeStyleLineDashSet.v=ca.zs(i9,1/J.Sz.v.val);
if(fq!=null)s.strokeStyleMiterLimit.v=fq}}I.cr(C)}else if(h=="bitmap"||A){var e8=A?Q.fills[0]:null,S=A?e8.image.bdata:P.image.bdata,fs=C.$F(S,I.getName(),0,0);
fs.bP=I.bP;I=fs;var N=Q?Q.blur:null,bz=Q?Q.colorControls:null;if(N||bz){I.add.SoLd.filterFX=hi.G7();
C.nJ({id:I.add.SoLd.placed.v,rect:new _,buffer:c.F(1),r:new o.LF});var w=I.add.SoLd.filterFX.v.filterFXList.v;
if(N){var g6=hi.hr("GsnB",{});g6.v.enab.v=N.isEnabled;g6.v.Fltr.v.Rds.v.val=N.radius;w.push(g6)}if(bz){var al=bz.brightness,bj=bz.contrast,bE=bz.hue,eN=bz.saturation;
if(bE!=0||eN!=1){var g6=hi.hr("hue2",{});g6.v.enab.v=bz.isEnabled;hK.Sm(g6.v.Fltr.v,0,[Math.round(bE*180/Math.PI),Math.round((eN-1)*100),0]);
w.push(g6)}if(al!=0||bj!=1){var g6=hi.hr("brit",{});g6.v.enab.v=bz.isEnabled;bj=bj-1;if(bj>0)bj/=2;var dk=g6.v.Fltr.v;
dk.Brgh.v=Math.round(al*255);dk.Cntr.v=Math.round(bj*255);dk.useLegacy.v=!0;w.push(g6)}}}if(A){var hj=e8.patternFillType;
if(hj==3){var iN=I.rect.d/I.rect.v,dK=b.d/b.v;if(iN<dK){K.translate(-(b.d*(1-iN/dK))/2,0);K.scale(dK/iN,1)}else{K.translate(0,-(b.v*(1-dK/iN))/2);
K.scale(1,iN/dK)}}}b.x=b.y=0;var ch=c.a.kG(b).c;K.G$();c.a.J(ch,K,ch);I.add.SoLd.Trnf=W.o.M4(ch);I.add.SoLd.nonAffineTransform=W.o.M4(ch);
I.RM(C,!1)}else if(h=="text"){if(P.attributedString==null)continue;var hP=K.clone(),d2,hr,d6=0;hP.G$();
hP.R=hP.J2=Math.min(hP.R,hP.J2);I.add.lnsr="rend";I.add.TySh=b5.Es(0,0);I.add.TySh.uv=new _(0,0,b.d,b.v);
I.add.TySh.J=hP;var fv=P.attributedString;if(fv.archivedAttributedString)fv=fv.archivedAttributedString;
var f3=fv.NSString;if(f3==null)f3=fv.string;if(f3==null)f3="";if(f3["NS.string"])f3=f3["NS.string"];
if(z[P.do_objectID]!=null)f3=z[P.do_objectID];var dp=p.b3(r,P.do_objectID+"_stringValue");if(dp)f3=dp.value;
if(fv.attributes!=null){d2=[];hr=[];var go=fv.attributes;for(var H=0;H<go.length;H++){d2.push(go[H].length,H);
hr.push(go[H].attributes)}}else if(fv.NSAttributeInfo==null){d2=[f3.length,0];hr=[fv.NSAttributes]}else{d2=fv.NSAttributeInfo["NS.data"];
hr=fv.NSAttributes;d2=e5.alg(d2,hr)}for(var H=0;H<d2.length;H+=2)d6+=d2[H];if(d6!=f3.length){while(d6>f3.length){d2[d2.length-2]--;
d6--;if(d2[d2.length-2]==0){d2.pop();d2.pop()}}d2[d2.length-2]+=f3.length-d6}f3=f3.replace(/\u2028/g,"\n");
f3=f3.replace(/\u2029/g,"\n");f3=f3.replace(/\r/g,"\n");var iB=I.add.TySh.Se;b5.X$(iB,0,f3);if(f3!=""){var hS=P.textBehaviour,eF=Q.textStyle,bQ=eF?eF.verticalAlignment:0,iP=p.ahf(iB,d2,hr,f3),X=hP.ia(),d8=b5.L3(iB,0,1),fj=0;
if(d8.LI.Font){var a6=d8.Oe[d8.LI.Font].Name;if(a6=="FontAwesome"||a6=="Ionicons")iP*=.87}var am=d8.LI.AutoLeading?0:d8.LI.Leading*.6,dX=Math.max(iP,am)*X,gc=b.d,dz=b.v;
if(hS==0){b5.B$(iB,0);var gE=b5.Ix(d8.s6);if(gE==1)fj=gc*X;if(gE==2)fj=gc*X*.5;if(bQ==0)dX*=1;else dX*=.9}else{b5.B$(iB,1);
b5.If(iB,[0,0,Math.round(gc),Math.round(dz)]);if(hS==2&&bQ==0)dX=dX*.2;else if(hS==2&&bQ==1){dX=X*.5*(dz-d8.LI.FontSize)}else if(hS==1&&bQ==0)dX=dX*.2;
else dX=dX*.35}I.add.TySh.J.translate(fj,dX)}}else if(h=="symbolInstance"||h=="symbolMaster"){var cQ=P.symbolID;
if(z[P.do_objectID])cQ=z[P.do_objectID].symbolID;var fi=p.b3(r,P.do_objectID+"_symbolID");if(fi)cQ=fi.value;
if(cQ=="")continue;var dB={};for(var a in z)dB[a]=z[a];if(P.overrides)for(var a in P.overrides)dB[a]=P.overrides[a];
var bp=r.slice(0);if(P.overrideValues)bp=bp.concat(P.overrideValues);var ai=Y[cQ];if(ai==null){console.log("Unknown master master",P.symbolID);
continue}var hu=e5.lD(ai.kW.frame),bP=hu.d/b.d,hw=hu.v/b.v,gQ=K.clone();gQ.scale(bP,hw);I.add.lsct=fI.z7;
I.B4="pass";I.bP=24;I.Qs(P.isVisible);C.N.push(C.rJ());var gp=ai.kW;if(C.Cp.indexOf(gp)==-1){C.Cp.push(gp);
p.Mz(gp.layers,C,gQ,E,Y,dB,bp);C.Cp.pop()}}else if(h=="slice"){console.log("slice layers are ignored by now");
continue}else{console.log("unknown layer type: "+h,P);continue}if(Q&&Q.contextSettings){var aS=Q.contextSettings,iX=aS.blendMode;
if(iX<p.N2.length){I.B4=gz.w0[gz.lV.indexOf(p.N2[iX])];if(O&&I.B4=="norm")I.B4="pass"}I.opacity=Math.round(I.opacity*aS.opacity)}if(f!=null){I.add.lmfx=f}C.N.push(I);
if(P.hasClippingMask&&L.length>1){T.push(I);C.N.push(C.rJ())}}while(T.length!=0)p.YP(T.pop(),C)};e5.b3=function(L,C){for(var H=0;
H<L.length;H++)if(L[H].overrideName.startsWith(C))return L[H]};e5.alg=function(L,C){var U=0,E=[];while(U+1<L.length){var Y=L[U];
U++;if(Y>127){Y+=128*(L[U]-1);U++;if(L[U-1]>127){Y+=128*(L[U]-1);U++}}var z=L[U];U++;E.push(Y,z)}return E};
e5.ahf=function(L,C,U,E){var Y=e5,z=0,P=0,b=0;for(var H=0;H<E.length;H++){var r=E.charCodeAt(H),p=1473<=r&&r<=1479||1488<=r&&r<=1514||1520<=r&&r<=1524,T=1569<=r&&r<=1594||1600<=r&&r<=1749;
if(p||T)z++}var k=z>E.length/2;for(var H=0;H<C.length;H+=2){var Q=C[H],I=14,m="DejaVuSans";if(Q==0)continue;
var K=C[H+1],h=U[K],x=b5.L3(L,P,P+Q-1),O=h.NSColor;if(O==null){var O=h.MSAttributedStringColorDictionaryAttribute;
if(O==null)O=h.MSAttributedStringColorAttribute;if(O==null)O="0 0 0";else O=[O.red,O.green,O.blue].join(" ")}else if(Y.Sp(O)=="MSArchivedColor")O=O.dr+" "+O.dg+" "+O.db;
else if(O.NSRGB){O=O.NSRGB;O=$.ZA(O,0,O.length-1)}else if(O.NSCMYK){O=O.NSCMYK;O=$.ZA(O,0,O.length-1);
O=O.split(" ").map(parseFloat);var y=1-O[0],v=1-O[1],i=1-O[2],D=1-O[3];O=y*D+" "+v*D+" "+i*D}else if(O.NSWhite){O="1 1 1"}O=O.split(" ");
x.LI.FillColor={Type:1,Values:[1,parseFloat(O[0]),parseFloat(O[1]),parseFloat(O[2])]};var f=h.MSAttributedStringFontAttribute;
if(h.NSFont){I=h.NSFont.NSSize;m=h.NSFont.NSName}else if(f){if(f.attributes){f=f.attributes;I=f.size;
m=f.name}else{var A=f.NSFontDescriptorAttributes;if(A==null)A=f.UIFontDescriptorAttributes;f=A;I=f.NSFontSizeAttribute;
m=f.NSFontNameAttribute}if(m==null)m="DejaVuSans"}var b=Math.max(b,I);x.LI.FontSize=Math.round(I);b5.yk(x,m);
var d=h.NSKern;if(d==null)d=h.kerning;if(d!=null)x.LI.Tracking=Math.round(1e3*d/I);if(h.NSUnderline!=null)x.LI.Underline=h.NSUnderline>0;
var g=h.NSStrikethrough;if(g==null)g=h.strikethroughStyle;if(g!=null)x.LI.Strikethrough=g>0;if(h.MSAttributedStringTextTransformAttribute==1)x.LI.FontCaps=2;
var X=h.NSParagraphStyle;if(X==null)X=h.paragraphStyle;if(X){var n=X.paragraphSpacing;if(n!=null){x.s6.SpaceAfter=n}var R=X.NSAlignment;
if(R==null)R=X.alignment;if(R!=null){var l=0;if(!1){}else if(R==1)l=1;else if(R==2)l=2;else if(R==4)l=0;
else{l=R;console.log("unknown align",R)}if(k&&l<2)l=1-l;x.s6.Justification=l}var w=X.NSMinLineHeight;
if(w==null)w=X.minimumLineHeight;if(w!=null){x.LI.AutoLeading=!1;x.LI.Leading=w}}x.s6._Direction=k?1:0;
b5.Em(L,P,P+Q,x);P+=Q}return b};e5.aly=function(L,C,U,E,Y,z,r){var p=e5,T=JSON.parse(gM.default),k=!1;
for(var H=0;H<gM.order.length;H++)T[gM.cp[H]]={t:"VlLs",v:[]};var P=U.fills,b=p.sL(L,P,E,Y,z,C);for(var Q=0;
Q<2;Q++){var K=U[["shadows","innerShadows"][Q]];if(K==null)continue;var h=["DrSh","IrSh"][Q],x=gM.cp[gM.order.indexOf(h)];
for(var H=0;H<K.length;H++){var O=K[H];if(!O.isEnabled)continue;if(O.contextSettings.opacity==0||O.color.alpha==0)continue;
var y=JSON.parse(gM.Lq[gM.order.indexOf(h)]);T[x].v.unshift({t:"Objc",v:y});k=!0;y.Clr.v=p.FJ(O.color);
y.blur.v.val=Math.round(O.blurRadius/Y.ia());var v=Y.clone();v.Yt=v.rv=0;v.G$();var i=v.Om(new hZ(O.offsetX,O.offsetY)),D=Math.sqrt(i.x*i.x+i.y*i.y);
y.Dstn.v.val=Math.round(D);y.lagl.v.val=Math.round(Math.atan2(i.y,-i.x)*(180/Math.PI));if(y.layerConceals)y.layerConceals.v=b.length!=0;
p.YR(O,y)}}var I=U.borders;if(I!=null&&(b.length==0||U.blur==null||!U.blur.isEnabled))for(var H=0;H<I.length;
H++){var m=I[H];if(!m.isEnabled)continue;var y=JSON.parse(gM.Lq[gM.order.indexOf("FrFX")]),x=gM.cp[gM.order.indexOf("FrFX")];
T[x].v.unshift({t:"Objc",v:y});k=!0;y.Clr.v=p.FJ(m.color);if(m.fillType!=0&&m.gradient){var f=p.PF(m.gradient,E,Y,z),A=["Type","Angl","Ofst","Scl"];
for(var H=0;H<A.length;H++)y[A[H]]=f[A[H]];y.Grad.v=f.Grad.v;y.PntT.v.FrFl="GrFl"}y.Sz.v.val=m.thickness/Y.ia();
y.Styl.v.FStl=["CtrF","InsF","OutF"][m.position];p.YR(m,y)}for(var H=r?1:0;H<b.length;H++){var d=b[H],x=gM.cp[gM.order.indexOf(d.type)];
T[x].v.unshift(d.G);k=!0}return k?T:null};e5.sL=function(L,C,U,E,Y,z,r){if(C==null)return[];var p=e5,T=[];
for(var H=0;H<C.length;H++)if(C[H].isEnabled)T.push(C[H]);C=T;var k=[];for(var H=0;H<C.length;H++){var P=C[H],b=null,Q=null;
if(P.fillType==0){b="SoFi";var K=JSON.parse(gM.Lq[gM.order.indexOf("SoFi")]);Q={t:"Objc",v:K};Q.v.Clr.v=p.FJ(P.color)}else if(P.fillType==1){b="GrFl";
Q={t:"Objc",v:p.PF(P.gradient,U,E,Y)}}else if(P.fillType==4&&P.image!=null){var h=P.image;if(r)h=r.value;
var x=iL.lc(h.bdata.buffer);if(x!=null&&x!="pdf"&&x!="eps"){var O,m=0,f=0,A=0;if(z.BQ[h.key])O=z.BQ[h.key];
else{var y=iL.WS(x).ER(h.bdata)[0],v=y.bl.clone();O={};O.id=b7.o7()+"-d71c-11e5-b1ae-a548a96e5f9f";O.name="someImage";
O.Zq=[new Uint8Array(y.data),v];z._q(O);z.BQ[h.key]=O}var i=O.Zq[1],K=JSON.parse(gM.Lq[gM.order.indexOf("patternFill")]);
b="patternFill";Q={t:"Objc",v:K};var D=P.patternFillType,I=P.patternTileScale;K.Algn.v=!0;K.Ptrn.v.Idnt.v=O.id;
if(D==0){m=I*i.d/Math.min(i.d,i.v);f=-E.Yt;A=-E.rv}else{m=Math.max(U.d/i.d,U.v/i.v);f=-E.Yt-(i.d*m-U.d)/2;
A=-E.rv-(i.v*m-U.v)/2}K.Scl.v.val=100*m*(1/E.ia());K.phase.v.Hrzn.v=Math.round(f/E.ia());K.phase.v.Vrtc.v=Math.round(A/E.ia())}}else if(P.fillType==5){console.log("fill type Noise not supported yet")}else console.log("unknown fill type",P.fillType);
if(b!=null){p.YR(P,Q.v);k.push({type:b,G:Q})}}return k};e5.a4s=function(L){var C=e5,U=new _(0,0,1,1);
L=L.slice(0);while(!0){var E=!1;for(var H=0;H<L.length-1;H++){var Y=L[H],z=L[H+1],r=null,p=Y.contextSettings;
if(Y.fillType==0&&(p==null||p.opacity==1&&p.blendMode==0)&&Y.color.alpha==1){var T="norm",k=1,p=z.contextSettings;
if(p){k=p.opacity;T=gz.Sh(C.N2[p.blendMode])}if(z.fillType==0){r=JSON.parse(JSON.stringify(z));C.y_(r.color,Y.color,r.color,U,T,k)}if(z.fillType==1){r=JSON.parse(JSON.stringify(z));
var P=r.gradient.stops;for(var b=0;b<P.length;b++)C.y_(P[b].color,Y.color,P[b].color,U,T,k)}if(r!=null&&r.contextSettings){var p=r.contextSettings;
p.opacity=1;p.blendMode=0}}if(r!=null){L.splice(H,0,r);E=!0;break}}if(!E||L.length<2)break}return L};
e5.y_=function(L,C,U,E,Y,z){var r=e5,p=c.F(4);r.qc(L,p);var T=c.F(4);r.qc(C,T);c.Q.Kj(Y,p,E,T,E,E,z);
r.adn(T,U)};e5.qc=function(L,C){C[0]=255*L.red;C[1]=255*L.green;C[2]=255*L.blue;C[3]=255*L.alpha};e5.adn=function(L,C){C.red=L[0]/255;
C.green=L[1]/255;C.blue=L[2]/255;C.alpha=L[3]/255};e5.YP=function(L,C){L=L.clone();L.bP=24;L.I_("Mask by "+L.getName());
C.N.push(L);L.add.lsct=fI.Qr;L.add.lyid=C.vd();delete L.add.lmfx;delete L.add.SoCo;delete L.add.GdFl;
delete L.add.PtFl;delete L.add.iOpa;if(L.add.vmsk)L.add.vmsk.st=!0;L.cr(C);if((L.bP&16)==16)L.bP-=16;
if((L.bP&2)==2)L.bP-=2;L.B4="pass";L.opacity=255};e5.N2="Nrml Drkn Mltp CBrn Lghn Scrn CDdg Ovrl SftL HrdL Dfrn Xclu H Strt Clr Lmns linearBurn linearDodge".split(" ");
e5.PF=function(L,C,U,E){U=U.clone();U.G$();U.Yt=U.rv=0;var Y=U.ia(),Q=0,K=0;U.scale(1/Y,1/Y);var z=e5,r=JSON.parse(gM.Lq[gM.order.indexOf("GrFl")]),p=r.Grad.v;
p.Intr.v=0;if(L==null)return r;var T=L.gradientType,k=z.D$(L.from),P=z.D$(L.to);k.offset(-.5,-.5);P.offset(-.5,-.5);
k=U.Om(k);P=U.Om(P);var b=Math.atan2(-(P.y-k.y),P.x-k.x);r.Type.v.GrdT=["Lnr","Rdl","Angl"][T];r.Scl.v.val=100*hZ.sl(k,P);
if(T==0){r.Angl.v.val=180/Math.PI*b;r.Scl.v.val=100*hZ.sl(k,P);Q=(k.x+P.x)/2;K=(k.y+P.y)/2}if(T==1){r.Scl.v.val=200*hZ.sl(k,P);
Q=k.x;K=k.y}if(T==2){r.Angl.v.val=180/Math.PI*(b-Math.PI/2)}var h=r.Ofst.v;h.Hrzn.v.val=Q*100;h.Vrtc.v.val=K*100;
var x=[];for(var H=0;H<L.stops.length;H++){var O=L.stops[H],y=O.color;x.push([O.position,y?[y.red,y.green,y.blue]:[0,0,0],y.alpha])}c.W.et(x,p);
return r};e5.YR=function(L,C){var U=e5,E=1,Y=L.contextSettings;if(Y!=null){C.Md.v.BlnM=U.N2[Y.blendMode];
E*=Y.opacity}else C.Md.v.BlnM=U.N2[0];C.enab.v=L.isEnabled;if(C.uglg!=null)C.uglg.v=!1;if(L.color!=null)E*=L.color.alpha;
C.Opct.v.val=Math.round(E*100)};e5.FJ=function(L){return c.W._b(L?{h:L.red*255,P:L.green*255,O:L.blue*255}:{h:0,P:0,O:0})};
e5.P1=function(L,C,U){var E=e5,Y=[{type:6},{type:8,all:0}];for(var z=0;z<L.length;z++){var r=L[z],p=r.booleanOperation,T=0,k=r._class,x=!1;
if(k=="group"||k=="text"||k=="symbolInstance"||k=="slice"){console.log(k+" inside ShapeGroup");continue}if(p==-1)T=0;
else if(p==0)T=1;else if(p==1)T=2;else if(p==2)T=3;else if(p==3)T=0;if(z==0)T=1;var P=e5.lD(r.frame),b=E.Gp(r,C),Q=r.path?r.path:r,K=[{type:0,length:0,ZZ:T,A9:2,Tn:0,Jh:0}],h=Q.points;
for(var H=0;H<h.length;H++){var O=h[H],y=E.D$(O.curveTo),v=E.D$(O.point),i=E.D$(O.curveFrom);x=x||O.hasCurveFrom&&!i.cg(v)||O.hasCurveTo&&!y.cg(v)}var D=[];
if(!x){var I=[],u=h.length;if(u==0)continue;for(var H=0;H<u;H++){D[H]=h[H].cornerRadius;var O=E.D$(h[H].point);
I.push(O.x,O.y)}b.scale(1/P.d,1/P.v);b.G$();c.a.J(I,b,I);var m=c.Y.Hw(I,D);K=K.concat(m);K[0].length=K.length-1}else{var f=h.length;
K[0].length=f;for(var H=0;H<f;H++){var O=h[H],A=O.curveMode,d=E.D$(O.point);K[1+H]={type:A==2||A==4?1:2,OT:O.hasCurveTo?E.D$(O.curveTo):d.clone(),D:d,SC:O.hasCurveFrom?E.D$(O.curveFrom):d.clone()}}b.scale(1/P.d,1/P.v);
b.G$();c.Y.IL(K,b);var D=[];for(var H=0;H<f;H++){var O=h[H],A=O.curveMode,g=O.cornerRadius;if(A==1&&g!=0)D.push(g);
else D.push(0)}}if(!Q.isClosed)for(var H=0;H<K.length;H++)K[H].type+=3;Y=Y.concat(K);var X=c.zf.Zx(),n=E.Sp(r);
if(b.O==0&&b.Z9==0){var R=b.Yt,l=b.rv,w=R+b.R,V=l+b.J2,F=[R,l,w,V];if(n=="rectangle"&&D.length==4)X=c.zf.V1(2,F,D);
if(n=="oval")X=c.zf.V1(5,F)}U.push(X)}return Y};e5.Gp=function(L,C){var U=C.clone(),E=L.frame?e5.lD(L.frame):null;
if(E)U.translate(-E.x-E.d/2,-E.y-E.v/2);if(L.isFlippedHorizontal)U.scale(-1,1);if(L.isFlippedVertical)U.scale(1,-1);
U.rotate(-L.rotation*(Math.PI/180));if(E)U.translate(E.d/2,E.v/2);return U};e5.D$=function(L){L=L.slice(1,L.length-1).split(",");
return new hZ(parseFloat(L[0]),parseFloat(L[1]))};e5.lD=function(L){return new _(L.x,L.y,L.width,L.height)};
e5.Ej=function(L){return{_class:"rect",constrainProportions:!1,x:L.x,y:L.y,width:L.d,height:L.v}};function cV(){}cV.Vu=function(L,C){var U=Date.now(),E=cV,Y=UZIP.parse(L),z=JSON.parse($.IQ(Y.manifest)),r=JSON.parse($.IQ(Y["resources/graphics/graphicContent.agc"])).resources,p=[],T=z.children;
for(var H=0;H<T.length;H++){var k=T[H];if(k.name=="artwork"){var P=k.children;for(var b=0;b<P.length;
b++)if(P[b]["uxdesign#bounds"]){var Q=P[b],K=JSON.parse($.IQ(Y["artwork/"+Q.path+"/graphics/graphicContent.agc"]));
if(K.children.length!=1)throw"e";Q._node=K.children[0];p.push(Q)}}}var h=[],x=new _;for(var H=0;H<p.length;
H++){var Q=p[H],O=e5.lD(Q["uxdesign#bounds"]);h.push(O);x=x.EU(O)}var y=e5.R8(x,8192*8192);C.pu=!0;C.d=Math.round(x.d/y);
C.v=Math.round(x.v/y);C.buffer=c.F(C.d*C.v*4);C.Re(p.length);var v=new c0(y,0,0,y,x.x,x.y);C.BQ={};for(var H=0;
H<p.length;H++){var Q=p[H],O=e5.lD(Q["uxdesign#bounds"]),i=Q._node,D=v.clone(),I=O.clone(),m=D.ia();
D.translate(-O.x,-O.y);I.x=-Math.floor(D.Yt/m);I.y=-Math.floor(D.rv/m);I.d=Math.floor(I.d/m);I.v=Math.floor(I.v/m);
D.translate(O.x,O.y);cV.og(i,C,D,r,Y,I);var f=C.N[C.N.length-1];f.I_(Q.name);f.eJ(I);if(H!=p.length-1)f.add.lsct=fI.z7}delete C.BQ};
cV.RB=function(L){if(L==null)return new c0;return new c0(L.a,L.b,L.c,L.d,L.tx,L.ty)};cV.og=function(L,C,U,E,Y,z){var r=cV,p=L.type,T=L[p],k=L.style,P=r.RB(L.transform),h,x="none",O,y="none",v,i;
P.G$();var b=U.clone();b.concat(P);var Q=C.wP(),K=L.name;Q.I_(K?K.slice(0,250):"Layer");if(L.visible!=null)Q.Qs(L.visible);
if(k){h=k.stroke;x=h?h.type:"none";O=k.fill;y=O?O.type:"none";v=k.filters;i=k.clipPath;if(i&&E.clipPaths[i.ref])i=E.clipPaths[i.ref].children;
else i=null;if(k.opacity)Q.opacity=Math.round(255*k.opacity);if(y=="solid"&&O.color.alpha)Q.opacity=Math.round(Q.opacity*O.color.alpha);
if(v){Q.add.lmfx=r.ak$(v);for(var H=0;H<v.length;H++)if(v[H].type=="uxdesign#blur"){var D=v[H],I=D.params,m=I.brightnessAmount;
if(m==null)m=0;m=Math.abs(m/100);if((D.visible==null||D.visible==!0)&&I.backgroundEffect)Q.opacity=Math.round(Q.opacity*(m+(1-m)*I.fillOpacity))}}if(y=="pattern"&&O.pattern.meta.ux.uid=="")y="none"}if(i==null&&L.meta&&L.meta.ux&&L.meta.ux.clipPathResources)i=L.meta.ux.clipPathResources.children;
if(p=="artboard"||p=="group"){if(i){var f=i[0],A=f.shape,d=A!=null&&A.type=="rect"&&A.width*A.height>1e6;
if(f.type!="text"&&!d){if(A){var P=r.RB(f.transform);P.G$();var g=b.clone();g.concat(P);Q.add.vmsk=new o.mR;
Q.add.vmsk.n=r.P1(A);g=g.clone();g.G$();c.Y.IL(Q.add.vmsk.n,g);Q.cr(C)}}else if(!d)alert("Clipping by text has been ignored")}Q.add.lsct=fI.Qr;
Q.B4="pass";Q.bP=24;if(L.visible!=null)Q.Qs(L.visible);C.N.push(C.rJ());var X=T.children,n=O;if(n)n=n.color;
if(n)n=n.value;if(O){if(p=="artboard"&&y=="solid"){Q.eJ(new _(0,0,10,10));Q.add.artb.Clr={t:"Objc",v:c.W._b({h:n.r,P:n.g,O:n.b})};
Q.add.artb.artboardBackgroundType={t:"long",v:4}}else{var R=C.wP();R.I_("BACKGROUND");R.bP|=16;R.add.vstk=JSON.parse(JSON.stringify(gM.H0.default));
R.add.vmsk=new o.mR;R.add.vmsk.n=r.P1({type:"rect",x:z.x,y:z.y,width:z.d,height:z.v});r.kw(O,y,b,z,z,R,C,E,Y);
R.cr(C);C.N.push(R)}}for(var H=0;H<X.length;H++){cV.og(X[H],C,b,E,Y,z)}}else if(p=="shape"&&L.shape.type=="rect"&&(L.shape.r==null||L.shape.r==0)&&y=="pattern"&&Math.abs(L.shape.width/L.shape.height-O.pattern.width/O.pattern.height)<.01){var l=O.pattern,w=l.meta.ux,V=w.uid,F=Y["resources/"+V];
if(F==null){console.log(l);return}var Z=C.$F(F,Q.getName(),0,0);Z.bP=Q.bP;Z.opacity=Q.opacity;Q=Z;var M=c.a.kG(new _(0,0,l.width,l.height)).c,a=new c0;
a.scale(l.width/L.shape.width,l.height/L.shape.height);if(w.offsetX)a.translate(-w.offsetX*l.width,0);
if(w.offsetY)a.translate(0,-w.offsetY*l.height);b.concat(a);b.G$();c.a.J(M,b,M);Q.add.SoLd.Trnf=W.o.M4(M);
Q.add.SoLd.nonAffineTransform=W.o.M4(M);Q.RM(C,!1)}else if(p=="shape"){Q.bP|=16;Q.add.vstk=JSON.parse(JSON.stringify(gM.H0.default));
Q.add.vmsk=new o.mR;Q.add.vmsk.n=r.P1(T);var e=c.Y.JK(Q.add.vmsk.n,null),g=b.clone();g.G$();c.Y.IL(Q.add.vmsk.n,g);
var N=c.Y.JK(Q.add.vmsk.n,null);if(x=="none"){}else{var J=h.color.value,s,f5;s="SoFi";var dx=JSON.parse(gM.Lq[gM.order.indexOf("SoFi")]);
f5={t:"Objc",v:dx};f5.v.Clr.v=c.W._b({h:J.r,P:J.g,O:J.b});var fq=h.align,i9=h.cap;if(fq==null)fq="center";
var e8=Q.add.vstk;e8.strokeEnabled.v=!0;e8.strokeStyleLineWidth.v.val=h.width;if(fq)e8.strokeStyleLineAlignment.v.strokeStyleLineAlignment=gM.H0.jr[["inside","center","outside"].indexOf(fq)];
if(i9)e8.strokeStyleLineCapType.v.strokeStyleLineCapType=gM.H0.h9[["butt","round","square"].indexOf(i9)];
var S=["SoFi","GrFl","patternFill"].indexOf(s),fs=[gM.TL,gM.DV,gM.ex][S];e8.strokeStyleContent.v={classID:gM.H0.g0[0]};
var bz=e8.strokeStyleContent.v={classID:gM.H0.g0[S]};for(var H=0;H<fs.length;H++)bz[fs[H]]=f5.v[fs[H]]}if(v)for(var H=0;
H<v.length;H++)if(v[H].type=="uxdesign#blur"&&v[H].visible){var g6=v[H];Q.add.vmsk.hY=g6.params.blurAmount}r.kw(O,y,b,e,N,Q,C,E,Y);
Q.cr(C)}else if(p=="text"&&L.text){var al=L.text,bj=al.frame,bE=k.font,eN=k.textAttributes,P=b.clone(),hP=0;
P.G$();Q.add.lnsr="rend";Q.add.TySh=b5.Es(0,0);Q.add.TySh.uv=new _(0,0,100,100);Q.add.TySh.J=P;var dk=Q.add.TySh.Se,hj=al.rawText.replace(/\r/g,"\n").replace(/\u000b/g,"\n");
b5.X$(dk,0,hj);if(hj!=""){var iN=b5.L3(dk,0,1),dK=bE.postscriptName;if(dK==null)dK=bE.family;b5.yk(iN,dK);
iN.LI.FontSize=Math.round(bE.size);if(O){var J=O.color.value;iN.LI.FillColor={Type:1,Values:[1,J.r/255,J.g/255,J.b/255]}}if(eN){if(eN.paragraphAlign)iN.s6.Justification=["left","right","center"].indexOf(eN.paragraphAlign);
if(eN.letterSpacing)iN.LI.Tracking=Math.round(eN.letterSpacing);if(eN.lineHeight){iN.LI.AutoLeading=!1;
iN.LI.Leading=Math.round(eN.lineHeight)}}b5.Em(dk,0,hj.length,iN)}var ch=L.meta.ux.rangedStyles;if(ch)for(var H=0;
H<ch.length;H++){var T=ch[H],d2=Math.min(T.length,hj.length-hP),iN=b5.L3(dk,hP,hP+d2),dK=T.postscriptName;
if(dK==null)dK=T.family;if(dK!=null)b5.yk(iN,dK);var hr=T.textScript,fv=T.underline,f3=T.fontSize,D=T.fill,dp=T.textTransform;
if(hr&&hr!="none")iN.LI.FontBaseline=hr=="superscript"?1:2;if(fv!=null)iN.LI.Underline=fv;if(f3!=null)iN.LI.FontSize=Math.round(f3);
if(dp!=null)iN.LI.FontCaps=dp=="uppercase"?2:0;if(D!=null){var go=D.value;iN.LI.FillColor={Type:1,Values:[1,(go>>>16&255)/255,(go>>>8&255)/255,(go>>>0&255)/255]}}b5.Em(dk,hP,hP+d2,iN);
hP+=d2}if(bj.type=="area"||bj.type=="autoHeight"){var d6=bj.width,iB=bj.height;b5.B$(dk,1);b5.If(dk,[0,0,d6,iB!=null?iB:d6*2])}}else console.log(p,L);
C.N.push(Q)};cV.P1=function(L){var C=L.type,U=[{type:6},{type:8,all:0}];if(C=="rect"){var E=L.r,Y=L.x,z=L.y,r=L.width,p=L.height;
if(E==null)U=c.Y.tD.Rect(Y,z,r,p,0);else U=U.concat([{type:0,ZZ:1,length:8,Tn:0,Jh:0,A9:1}]).concat(c.Y.Hw([Y,z,Y+r,z,Y+r,z+p,Y,z+p],E,!1))}else if(C=="circle"){var E=L.r;
U=c.Y.tD.vm(L.cx-E,L.cy-E,2*E,2*E)}else if(C=="ellipse"){var T=L.rx,k=L.ry;U=c.Y.tD.vm(L.cx-T,L.cy-k,2*T,2*k)}else if(C=="path"||C=="compound"){var P=Typr.U.SVGToPath(L.path);
U=c.a.n2({Z:P.cmds,c:P.crds},!1)}else if(C=="line"){var b=L.x1,Q=L.x2,K=L.y1,h=L.y2;U=U.concat([{type:0,ZZ:1,length:2,Tn:0,Jh:0,A9:1}]).concat(c.Y.Hw([b,K,Q,h],0,!0))}else if(C=="polygon"){var x=L.points,O=[];
for(var H=0;H<x.length;H++)O.push(x[H].x,x[H].y);U=U.concat(c.Y.tD.pz(O,0,!1).slice(2))}else console.log(C,L);
return U};cV.ak$=function(L){var C=JSON.parse(gM.default);for(var H=0;H<gM.order.length;H++)C[gM.cp[H]]={t:"VlLs",v:[]};
for(var H=0;H<L.length;H++){var U=L[H],E=U.type,Y=U.params,z=U.visible;if(E=="dropShadow"){var r=gM.cp[gM.order.indexOf("DrSh")],p=JSON.parse(gM.Lq[gM.order.indexOf("DrSh")]);
C[r].v.unshift({t:"Objc",v:p});var T=Y.dropShadows;if(T.length!=1)throw"e";var k=T[H],P=k.color,b=P.value,Q=k.dx,K=k.dy;
p.Clr.v=c.W._b({h:b.r,P:b.g,O:b.b});p.Opct.v.val=Math.round((P.alpha!=null?P.alpha:1)*100);p.uglg.v=!1;
p.enab.v=z!=null?z:!0;p.lagl.v.val=Math.round(180/Math.PI*Math.atan2(K,-Q));p.Dstn.v.val=Math.round(Math.sqrt(Q*Q+K*K));
p.blur.v.val=Math.round(k.r*2.3)}}return C};cV.kw=function(L,C,U,E,Y,z,r,p,T){var k=cV;if(C=="none"){z.add.vstk.fillEnabled.v=!1;
z.add.SoCo={classID:"null",Clr:{t:"Objc",v:c.W._b({h:0,P:0,O:0})}}}else{var P,b,Q;if(C=="solid"){var K=L.color.value;
P="SoCo";b=gM.TL;var h=JSON.parse(gM.Lq[gM.order.indexOf("SoFi")]);Q={t:"Objc",v:h};Q.v.Clr.v=c.W._b({h:K.r,P:K.g,O:K.b})}else if(C=="gradient"){P="GdFl";
b=gM.DV;var h=JSON.parse(gM.Lq[gM.order.indexOf("GrFl")]),x=h.Grad.v,D,I,m;x.Intr.v=0;var O=L[C],y=O.ref?p.gradients[O.ref]:O.meta.ux.gradientResources,v=["linear","radial"].indexOf(y.type),i=y.stops;
h.Type.v.GrdT=["Lnr","Rdl","Angl"][v];if(v==0){var D=new hZ(O.x1,O.y1),I=new hZ(O.x2,O.y2);D.x=I.x+.5*(D.x-I.x);
D.y=I.y+.5*(D.y-I.y)}else{var D=new hZ(O.cx,O.cy),I=new hZ(O.cx+O.r,O.cy)}m=Y;if(O.units=="objectBoundingBox"){var f=new c0(E.d,0,0,E.v,E.x,E.y);
D=f.Om(D);I=f.Om(I)}var f=k.RB(O.transform);D=f.Om(D);I=f.Om(I);f=U.clone();f.G$();D=f.Om(D);I=f.Om(I);
c.W.y9(D,I,m,h);var A=[];for(var H=0;H<i.length;H++){var d=i[H],g=d.color,K=g.value,X=g.alpha;if(X==null)X=1;
A.push([d.offset,[K.r/255,K.g/255,K.b/255],X])}c.W.et(A,x);Q={t:"Objc",v:h}}else if(C=="pattern"){P="PtFl";
b=gM.ex;var h=JSON.parse(gM.Lq[gM.order.indexOf("patternFill")]),F,N=1,J=0,s=0,f5=1;Q={t:"Objc",v:h};
var n=L[C],R=n.meta.ux,l=R.uid,w=T["resources/"+l].buffer,V=iL.lc(w);if(r.BQ[l])F=r.BQ[l];else{var Z=new _(0,0,n.width,n.height),M;
if(Z.ue()){Z=new _(0,0,1,1);M=new ArrayBuffer(4)}else{var a=iL.WS(V);if(a.Y9){var e=new b7;a.ER(w,e);
M=e.E0().buffer}else M=a.ER(w)[0].data}F={};F.id=b7.o7()+"-d71c-11e5-b1ae-a548a96e5f9f";F.name="someImage";
F.Zq=[new Uint8Array(M),Z];r._q(F);r.BQ[l]=F}var Z=F.Zq[1];h.Algn.v=!0;h.Ptrn.v.Idnt.v=F.id;if(R.scaleBehavior=="cover"){N=f5*Math.max(Y.d/Z.d,Y.v/Z.v);
var dx=N;if(R.scale!=null)N*=R.scale;J=Y.x-(Z.d*N-Y.d)/2;s=Y.y-(Z.v*N-Y.v)/2;if(R.offsetX!=null)J+=R.offsetX*Z.d*dx;
if(R.offsetY!=null)s+=R.offsetY*Z.v*dx}else if(R.scaleBehavior=="fill"){N=f5*Math.min(Y.d,Y.v)/Math.max(Z.d,Z.v);
J=Y.x-(Z.d*N-Y.d)/2;s=Y.y-(Z.v*N-Y.v)/2}else throw"Unknown scale behaviour";h.Scl.v.val=100*N;h.phase.v.Hrzn.v=Math.round(J);
h.phase.v.Vrtc.v=Math.round(s)}else console.log(C);if(P!=null){z.add[P]={classID:"null"};for(var H=0;
H<b.length;H++){var fq=b[H];z.add[P][fq]=Q.v[fq]}}}};function cb(){}cb.Vu=function(L,C,U){L=new Uint8Array(L);
var E=$.IQ(L,0,L.length),Y=new DOMParser,z=Y.parseFromString(E,"image/svg+xml"),r=z.getElementsByTagName("style")[0],K=1;
if(r)r=Typr.U.SVG.cssMap(r.textContent);else r={};var p=z.firstChild;while(p.tagName!="svg")p=p.nextSibling;
var T=new _(0,0,100,100),k=p.getAttribute("viewBox"),P=p.getAttribute("width"),b=p.getAttribute("height");
if(k){var Q=cb.RI(k);T.x=Q[0];T.y=Q[1];T.d=Q[2];T.v=Q[3]}else if(P!=null||b!=null){T.d=P!=null?parseFloat(P):parseFloat(b);
T.v=b!=null?parseFloat(b):parseFloat(P)}T=c.a.TT(T);while(U&&Math.max(T.d*K,T.v*K)<Math.max(U[0],U[1]))K++;
while(U==null&&Math.max(T.d,T.v)*K>8192)K*=.5;C.pu=!0;C.d=~~(T.d*K);C.v=~~(T.v*K);C.buffer=c.F(C.d*C.v*4);
var h=new c0(K,0,0,K,-T.x*K,-T.y*K),x={mV:cb.uT(p),an9:r};cb.k4(z,p.children,C,h,x,new c0,0);if(C.N.length==0){var O=C.wP();
O.I_("Layer");C.N.push(O)}};cb.RI=function(L){var C=" ";if(L.indexOf(",")!=-1)C=",";return L.split(C).map(parseFloat)};
cb.k4=function(L,C,U,E,Y,z,r){var p=cb,T=["display","opacity","fill-opacity"];for(var k=0;k<C.length;
k++){var P=C[k],b=P.tagName,Q=P.getAttribute("id"),K=p.uT(P,Y.an9),x=13,D=1,f="clip-path",A=null;for(var h in Y.mV)if(T.indexOf(h)==-1&&K[h]==null)K[h]=Y.mV[h];
if(K["font-size"])x=p.GD(K["font-size"],x);if(P.getAttribute("dx"))E.Yt+=p.GD(P.getAttribute("dx"),x);
if(P.getAttribute("dy"))E.rv+=p.GD(P.getAttribute("dy"),x);var O=p.rw(P);O.concat(E);var y=P.getAttribute("visibility"),v=K.display,i=U.wP();
if(y=="hidden"||v=="none")i.Qs(!1);i.I_(Q!=null?Q.split(":::")[0]:"Layer");if(K.opacity)D*=parseFloat(K.opacity);
if(K["fill-opacity"]){var I=parseFloat(K["fill-opacity"]);if(I!=0)D*=I}i.opacity=Math.round(255*D);if(K["mix-blend-mode"]){var m=gz.Ul.indexOf(K["mix-blend-mode"]);
if(m!=-1)i.B4=gz.w0[m]}if(P.getAttribute(f)==null)f="mask";if(P.getAttribute(f)!=null){var d=P.getAttribute(f);
d=d.slice(4,d.length-1);var g=L.getElementById(d.slice(1));if(g){var X=g.children;A=U.wP();A.I_("Clip-Path"+(Q?": "+Q:""));
A.add.lsct=r<2?fI.Qr:fI.z7;A.B4="pass";A.bP=24;var n=A.add.vmsk=new o.mR;U.N.push(U.rJ());var R=[];if(g.getAttribute(f)){var d=g.getAttribute(f);
d=d.slice(4,d.length-1);R=L.getElementById(d.slice(1)).children}for(var H=0;H<X.length;H++){var l=p.rw(X[H]);
l.concat(O);var w=p.P1(L,X[H],!1).slice(2);c.Y.IL(w,l);n.n=n.n.concat(w)}for(var H=0;H<R.length;H++){var l=p.rw(X[H]);
l.concat(O);var w=p.P1(L,R[H],!1).slice(2);for(var V=0;V<w.length;V++)if(w[H].ZZ!=null)w[H].ZZ=3;c.Y.IL(w,l);
n.n=n.n.concat(w)}A.Gg();A.cr();r++}}if(b=="g"||b=="a"||b=="svg"||b=="switch"||(b=="text"||b=="textPath")&&P.children.length>0){if(b=="text")z=p.Yw(P,z);
var F=P.getAttribute("viewBox"),Z=P.getAttribute("width"),M=P.getAttribute("height");if(F&&Z&&M){var a=cb.RI(F),e=p.Yw(P),N=new c0;
N.translate(-a[0],-a[1]);N.scale(parseFloat(Z)/a[2],parseFloat(M)/a[3]);N.translate(e.Yt,e.rv);N.concat(O);
O=N}var J=P.children.length,s=Y.mV;Y.mV=K;var f5=b!="text"&&b!="textPath"||J>1;if(f5){var dx=i.rK();
i.add.lsct=r<2&&dx&&(Q==null||!Q.endsWith(":::"))?fI.Qr:fI.z7;i.B4="pass";i.bP=24;i.Qs(dx);U.N.push(U.rJ())}p.k4(L,P.children,U,O,Y,z,r+1);
if(f5)U.N.push(i);else{var fq=U.N[U.N.length-1];fq.opacity=i.opacity;fq.B4=i.B4}Y.mV=s}else if(b=="use"){var N=p.Yw(P);
N.concat(O);var i9=p.iQ(P),e8=L.getElementById(i9.slice(1)),s=Y.mV;Y.mV=K;p.k4(L,[e8],U,N,Y,z,r+1);Y.mV=s}else if(b=="path"||b=="rect"||b=="circle"||b=="ellipse"||b=="polygon"||b=="polyline"||b=="line"){i.bP|=16;
i.add.vmsk=new o.mR;i.add.vstk=JSON.parse(JSON.stringify(gM.H0.default));i.add.vstk.strokeEnabled.v=!1;
var S=i.add.vstk,n=i.add.vmsk;n.n=p.P1(L,P,K["fill-rule"]=="evenodd");c.Y.IL(n.n,O);var fs=c.Y.JK(n.n),bz=K.stroke,g6=K["stroke-width"],al=K["stroke-dasharray"],bj=K.fill,bE=K["stroke-linejoin"],eN=K["stroke-linecap"],dk=K["paint-order"];
if(bz==null||bz=="none"||bz=="null"){}else{var hj=p.tO(L,bz,O,fs),iN=["SoFi","GrFl","patternFill"].indexOf(hj.type),dK=hj.G.v.Opct.v,d2=1;
if(dK.val!=100){i.opacity=Math.round(i.opacity*dK.val/100);dK.val=100}var ch=[gM.TL,gM.DV,gM.ex][iN],hP=S.strokeStyleContent.v={classID:gM.H0.g0[iN]};
for(var H=0;H<ch.length;H++)hP[ch[H]]=hj.G.v[ch[H]];g6=g6?parseFloat(g6):1;if(dk&&dk.replace(/\s\s+/g," ").slice(0,11)=="stroke fill"){d2=2;
g6/=2}S.strokeEnabled.v=!0;if(bE)S.strokeStyleLineJoinType.v.strokeStyleLineJoinType=gM.H0.join[["miter","round","bevel"].indexOf(bE)];
if(eN)S.strokeStyleLineCapType.v.strokeStyleLineCapType=gM.H0.h9[["butt","round","square"].indexOf(eN)];
S.strokeStyleLineWidth.v.val=g6*W.o.ia(O);S.strokeStyleLineAlignment.v.strokeStyleLineAlignment=gM.H0.jr[d2];
S.strokeStyleOpacity.v.val=100*(K["stroke-opacity"]?parseFloat(K["stroke-opacity"]):1);if(al!=null&&al!="none")S.strokeStyleLineDashSet.v=ca.zs(al.split(",").map(parseFloat),1/g6)}if(bj=="none"||K["fill-opacity"]&&parseFloat(K["fill-opacity"])==0){i.add.vstk.fillEnabled.v=!1;
i.add.SoCo={classID:"null",Clr:{t:"Objc",v:c.W._b({h:0,P:0,O:0})}}}else{var hj=p.tO(L,bj,O,fs),hr=null,fv=null;
if(hj.type=="SoFi"){hr="SoCo";fv=gM.TL}if(hj.type=="GrFl"){hr="GdFl";fv=gM.DV}if(hj.type=="patternFill"){hr="PtFl";
fv=gM.ex}if(hr!=null){i.add[hr]={classID:"null"};for(var H=0;H<fv.length;H++){var h=fv[H];i.add[hr][h]=hj.G.v[h]}}}if(K.filter&&K.filter!="none"){var f3=K.filter;
f3=f3.slice(5,f3.length-1);if(L.getElementById(f3)){var dp=L.getElementById(f3).children[0];if(dp.tagName=="feGaussianBlur"){i.add.vmsk.hY=parseFloat(dp.getAttribute("stdDeviation"))*W.o.ia(O)}}}i.Gg();
i.cr(U);U.N.push(i)}else if((b=="text"||b=="tspan")&&P.textContent!=""){z=p.Yw(P,z);var N=z.clone(),a6=0;
N.concat(O);if(P.children.length>0){var go=p.uT(P.children[0],Y.an9);for(var h in go)if(T.indexOf(h)==-1)K[h]=go[h]}var d6=K["xml:space"],iB=P.textContent;
if(d6=="preserve")iB=iB.replace(/\t/g," ").replace(/\n/g," ");if(Q==null)i.I_(iB);i.add.lnsr="rend";
i.add.TySh=b5.Es(0,0);i.add.TySh.uv=new _(0,0,100,100);i.add.TySh.J=N.clone();var hS=i.add.TySh.Se;b5.X$(hS,0,iB);
var bj=K.fill,eF=K["font-weight"],bQ=K["font-family"],iP=K["text-decoration"],bz=K.stroke,g6=K["stroke-width"],d8=K["dominant-baseline"];
if(d8=="text-before-edge")a6=x;else if(d8=="middle")a6=x/2;else if(d8=="hanging")a6=x;if(a6!=0)i.add.TySh.J.translate(0,a6);
var am=b5.L3(hS,0,1);if(bj&&bj!="none"){var fj=CSS.FJ(bj);am.LI.FillColor={Type:1,Values:[1,fj.h/255,fj.P/255,fj.O/255]}}if(iP=="underline")am.LI.Underline=!0;
am.LI.FontSize=Math.round(x);b5.yk(am,"LiberationSans");if(eF=="bold")b5.yk(am,"LiberationSans-Bold");
if(bQ){bQ=bQ.split(",")[0].trim();if(bQ[0]=="\"")bQ=bQ.slice(1);if(bQ[bQ.length-1]=="\"")bQ=bQ.slice(0,bQ.length-1);
var dX=bQ+":"+(eF?eF:"normal"),gc={"'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(gc[dX])b5.yk(am,gc[dX]);else b5.yk(am,bQ)}if(K["text-anchor"])am.s6.Justification=["start","end","middle"].indexOf(K["text-anchor"]);
b5.Em(hS,0,iB.length,am);if(bz==null||bz=="none"){}else{var dz=JSON.parse(gM.Lq[gM.order.indexOf("FrFX")]);
dz.Clr.v=c.W._b(CSS.FJ(bz));dz.Sz.v.val=Math.round(parseFloat(g6)*W.o.ia(N));var gE=JSON.parse(gM.default);
for(var H=0;H<gM.order.length;H++)gE[gM.cp[H]]={t:"VlLs",v:[]};gE.frameFXMulti.v.push({t:"Objc",v:dz});
i.add.lmfx=gE}U.N.push(i)}else if(b=="image"){var i9=p.iQ(P);if(i9.slice(0,4)=="data"){var cQ=iL.on(i9),fi=cQ,dB=U.$F(fi,i.getName(),0,0);
dB.bP=i.bP;i=dB;var bp=i.rect.clone();bp.x=bp.y=0;var ai=P.getAttribute("width"),hu=P.getAttribute("height");
if(ai)bp.d=parseFloat(ai);if(hu)bp.v=parseFloat(hu);var bP=p.Yw(P);bP.concat(O);var hw=c.a.kG(bp).c;
c.a.J(hw,bP,hw);i.add.SoLd.Trnf=W.o.M4(hw);i.add.SoLd.nonAffineTransform=W.o.M4(hw);i.RM(U,!1);U.N.push(i)}}else console.log("unknown tag: "+b,P.children.length,P.textContent.length);
if(A!=null){U.N.push(A);r--}}};cb.P1=function(L,C,U){var E=cb,Y=[{type:6},{type:8,all:0}],z=C.tagName;
if(z=="use"){var r=E.iQ(C),p=L.getElementById(r.slice(1)),T=new c0;if(p.tagName!="rect")T=E.Yw(p);T.concat(E.rw(p));
Y=E.P1(L,p,U);c.Y.IL(Y,T)}else if(z=="path"){var k=C.getAttribute("d");if(k==null)return Y;var P=Typr.U.SVGToPath(k);
Y=c.a.n2({c:P.crds,Z:P.cmds},U)}else if(z=="rect"){var b=C.getAttribute("rx"),Q=E.Yw(C);Y=c.Y.tD.Rect(Q.Yt,Q.rv,parseFloat(C.getAttribute("width")),parseFloat(C.getAttribute("height")),b?parseFloat(b):0)}else if(z=="circle"||z=="ellipse"){var K=[0,0,0,0],h=["cx","cy","rx","ry","r"];
for(var H=0;H<5;H++){var x=C.getAttribute(h[H]);if(x){x=parseFloat(x);if(H<4)K[H]=x;else K[2]=K[3]=x}}Y=c.Y.tD.vm(K[0]-K[2],K[1]-K[3],2*K[2],2*K[3])}else if(z=="polygon"||z=="polyline"||z=="line"){var O;
if(z=="line")O=[C.getAttribute("x1"),C.getAttribute("y1"),C.getAttribute("x2"),C.getAttribute("y2")].map(parseFloat);
else O=C.getAttribute("points").trim().replace(/\s\s+/g," ").split(",").join(" ").split(" ").map(parseFloat);
Y=c.Y.tD.pz(O,0,z!="polygon")}return Y};cb.GD=function(L,C){if(L.charAt(L.length-1)=="m")return C*parseFloat(L.slice(0,L.length-2));
else return parseFloat(L)};cb.tO=function(L,C,U,E){var Y,z,r=cb,p=JSON.parse(gM.Lq[gM.order.indexOf("SoFi")]),T=C!=null?C.indexOf("("):-1;
if(T!=-1){var k=C.indexOf(")"),P=C.slice(0,T).trim(),b=C.slice(T+1,k).trim();if(b.charAt(0)=="'")b=b.slice(1,b.length-1);
if(P=="url"){if(b.charAt(0)=="#"){var Q=L.getElementById(b.slice(1));if(Q&&Q.tagName.toLowerCase().endsWith("gradient")){var K=r.PF(L,Q,U,E);
Y="GrFl";z={t:"Objc",v:K}}else{Y="SoFi";z={t:"Objc",v:p}}}else console.log("unknown url",b)}else if(P=="rgb"||P=="rgba"){Y="SoFi";
z={t:"Objc",v:p};z.v.Clr.v=c.W._b(CSS.FJ(C));if(P=="rgba")z.v.Opct.v.val=Math.round(100*parseFloat(C.split(",").pop()))}else console.log("unknown fill",C)}else{Y="SoFi";
z={t:"Objc",v:p};z.v.Clr.v=c.W._b(CSS.FJ(C))}return{type:Y,G:z}};cb.rw=function(L){var C=new c0,U=L.getAttribute("transform");
if(U)C=cb.C5(U);var E=L.getAttribute("style");if(E!=null){var Y={};cb.Ys(Y,E,["transform"]);E=Y.transform;
if(E)C.concat(cb.C5(E))}return C};cb.Yw=function(L,C){var U=new c0,E=L.getAttribute("x"),Y=L.getAttribute("y");
if(E)U.Yt=parseFloat(E);else if(C)U.Yt=C.Yt;if(Y)U.rv=parseFloat(Y);else if(C)U.rv=C.rv;return U};cb.C5=function(L){var C=Typr.U.SVG.readTrnf(L);
return new c0(C[0],C[1],C[2],C[3],C[4],C[5])};cb.uT=function(L,C){var U={},E="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 H=0;H<E.length;H++){var Y=L.getAttribute(E[H]);if(Y!=null&&Y!="inherit")U[E[H]]=Y}var z=L.getAttribute("class");
if(C!=null&&z!=null&&C["."+z]!=null)cb.Ys(U,C["."+z],E);var r=L.getAttribute("id");if(C!=null&&r!=null&&C["#"+r]!=null)cb.Ys(U,C["#"+r],E);
var p=L.getAttribute("style");if(p!=null)cb.Ys(U,p,E);return U};cb.Ys=function(L,C,U){C=C.trim().split(";");
for(var H=0;H<C.length;H++){var E=C[H].split(":"),Y=E[0]?E[0].trim():"",z=E[1]?E[1].trim():"";for(var r=0;
r<U.length;r++)if(Y==U[r]&&z!="inherit")L[U[r]]=z}};cb.iQ=function(L){var C=L.getAttribute("xlink:href");
if(C==null)C=L.getAttribute("href");return C};cb.PF=function(L,C,U,E){var Y=cb,z=new c0,r=C.getAttribute("gradientTransform");
if(r)z=Y.C5(r);z.concat(U);var p=JSON.parse(gM.Lq[gM.order.indexOf("GrFl")]),T=p.Grad.v;T.Intr.v=0;var k=C.tagName,P=new hZ(0,0),b=new hZ(E.d,0);
if(k=="linearGradient"){p.Type.v.GrdT="Lnr";if(C.getAttribute("x1"))P.x=parseFloat(C.getAttribute("x1"));
if(C.getAttribute("y1"))P.y=parseFloat(C.getAttribute("y1"));if(C.getAttribute("x2"))b.x=parseFloat(C.getAttribute("x2"));
if(C.getAttribute("y2"))b.y=parseFloat(C.getAttribute("y2"));P.x=b.x+.5*(P.x-b.x);P.y=b.y+.5*(P.y-b.y)}if(k=="radialGradient"){p.Type.v.GrdT="Rdl";
if(C.getAttribute("cx"))P.x=parseFloat(C.getAttribute("cx"));if(C.getAttribute("cy"))P.y=parseFloat(C.getAttribute("cy"));
b.U6(P.x,P.y);if(C.getAttribute("r"))b.x+=parseFloat(C.getAttribute("r"))}if(C.getAttribute("gradientUnits")=="userSpaceOnUse"){P=z.Om(P);
b=z.Om(b)}else{P.x=E.x+P.x*E.d;P.y=E.y+P.y*E.v;b.x=E.x+b.x*E.d;b.y=E.y+b.y*E.v}c.W.y9(P,b,E,p);var Q=C.children;
if(Q.length==0){var K=Y.iQ(C);if(K==null)throw"gradient has no stops";var h=L.getElementById(K.slice(1));
if(h==null){console.log(K.slice(1));throw"e"}var x=Y.PF(L,h,z,E);p.Grad=x.Grad}else{var O=[];for(var H=0;
H<Q.length;H++){var y=Q[H],v=Y.uT(y),i=v["stop-color"],D=v["stop-opacity"],I=y.getAttribute("offset");
if(i==null)i="#000000";if(D==null)D="1";var m=I?parseFloat(I):0;i=CSS.FJ(i);O.push([m,[i.h/255,i.P/255,i.O/255],parseFloat(D)])}c.W.et(O,T)}return p};
cb.B0=function(L,C,U){var E=[],Y=cb;Y.DB=C.a7e?"\t":"";var z=C.akH,r=C.aeF;E.push("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 "+L.d+" "+L.v+"\" width=\""+z+"\" height=\""+r+"\">");
var p={W9:[],e4:[],TK:0,Oc:0,Zo:0,rk:{},zn:{},b8:0,$$:{},hT:{},uU:0,tW:[]};cb.o9(L,p,L.root.children,1,C,U);
if(p.W9.length!=0){E.push(Y.Y1(1)+"<defs>");E=E.concat(p.W9);E.push(Y.Y1(1)+"</defs>")}E.push(Y.Y1(1)+"<style>");
E.push(Y.Y1(2)+"tspan { white-space:pre }");for(var T in p.$$)E.push(Y.Y1(2)+"."+T+" { "+p.$$[T]+" } ");
E.push(Y.Y1(1)+"</style>");E=E.concat(p.e4);E.push("</svg>");E=E.join(C.a7e?"\n":"");var k=c.F(Math.round(E.length*1.5)),P=$.mW(E,k,0);
if(Y.HB){console.log(Y.HB);var b="SVGParser.gen.db = [\n";for(var H=0;H<Y.HB.length;H++){var Q=Y.HB[H];
b+="{\n\tnam: \""+Q.n8+"\",\n\tpts: [\n";for(var K=0;K<Q.Pw.length;K++){var h=Q.Pw[K];b+="\t\t[\""+h[0]+"\", { cmds: "+JSON.stringify(h[1].Z)+", crds:"+JSON.stringify(h[1].c)+" } ]"+(K==Q.Pw.length-1?"":",")+"\n"}b+="\t]\n}"+(H==Y.HB.length-1?"":",")+"\n"}b+="]\n";
console.log(b)}return k.buffer.slice(0,P)};cb.DB="";cb.Y1=function(u){var L="";for(var H=0;H<u;H++)L+=cb.DB;
return L};cb.p3=function(u){return""+parseFloat(u.toFixed(3))};cb.o9=function(L,C,U,E,Y,z){var r=cb;
for(var p=0;p<U.length;p++){var T=U[p].$,k=T.add.lsct,P=T.add.vmsk,b=T.add.vstk,Q=T.add.TySh,K=[];if(!Y.hidden&&!T.rK())continue;
var h=T.opacity/255,x=T.add.iOpa?T.add.iOpa/255:1;if(h!=1)K.push("opacity: "+r.p3(h));if(x!=1)K.push("fill-opacity: "+r.p3(x));
if(T.B4!="norm"){var O=gz.Ul[gz.w0.indexOf(T.B4)];if(O!=null)K.push("mix-blend-mode: "+O)}if(!T.rK())K.push("display: none");
var y=[],v=[],i=T.getName(),D=i.indexOf(" .");if(D!=-1){v.push(i.slice(D+2));i=i.slice(0,D)}if(Y.names)y.push("id=\""+r.oB(i)+"\"");
var I=T.add.lmfx;if(I)I=I.solidFillMulti.v[0];if(I)I=I.v;if(I&&!I.enab.v)I=null;if(T.Jc()){var m=U[p].children;
if(!(m.length==1&&m[0].$.add.SoLd&&!Y.Y0)){if(r.HB&&T.getName().split("-").length==3){r.HB.push({n8:T.getName(),a3:0,Pw:[]})}if(P||T.add.artb){var f;
if(P)f=c.Y.OC(P.n).ajy;else{var A=T.kg(),d=c.a.kG(A);f=Typr.U.pathToSVG({crds:d.c,cmds:d.Z},2)}C.Zo++;
y.push("clip-path=\"url(#cp"+C.Zo+")\"");C.W9.push(r.Y1(2)+"<clipPath clipPathUnits=\"userSpaceOnUse\" id=\"cp"+C.Zo+"\">");
C.W9.push(r.Y1(3)+"<path d=\""+f+"\" />");C.W9.push(r.Y1(2)+"</clipPath>")}if(K.length!=0)y.push("style=\""+K.join(";")+"\"");
C.e4.push(r.Y1(E)+"<g "+r.ym(y,v)+">");r.o9(L,C,m,E+1,Y,z);C.e4.push(r.Y1(E)+"</g>")}}else if(T.G_()&&P==null){var g=new _(0,0,L.d,L.v);
r.dQ(K,T.add,C,g);if(K.length!=0)y.push("style=\""+K.join(";")+"\"");C.e4.push(r.Y1(E)+"<rect width=\""+L.d+"\" height=\""+L.v+"\" "+r.ym(y,v)+" />")}else if(P){var g=c.Y.JK(P.n),f=c.Y.OC(P.n);
if(f.dE!=0){y.push("fill-rule=\"evenodd\"")}var X=f.ajy;r.dQ(K,T.add,C,g);if(K.length!=0){var n=K.join(";"),R=C.hT[n];
if(R==null){R="shp"+C.uU;C.uU++;C.hT[n]=R;C.$$[R]=n}v.push(R)}C.e4.push(r.Y1(E)+"<path "+r.ym(y,v)+" d=\""+X+"\" />");
if(r.HB&&r.HB[r.HB.length-1]){var l=c.a.$x(P.n);l.c=l.c.map(Math.round);var w=r.HB[r.HB.length-1];w.a3+=JSON.stringify(l).length;
w.Pw.push([K[0].split("#").pop(),l])}}else if(Q&&Y.amW){var V=Q.Se,F=new hX(V,z);if(I)y.push("fill=\""+CSS.CZ(I.Clr.v)+"\"");
var Z=bk.nn(F,Q),M=c.a.xK(Z);for(var a in M){if(I==null)y.push("fill=\""+a+"\"");var d=M[a],X=Typr.U.pathToSVG({crds:d.c,cmds:d.Z},2);
C.e4.push(r.Y1(E)+"<path "+r.ym(y,v)+" d=\""+X+"\" />");if(I==null)y.pop()}}else if(Q&&!Y.a0c){var V=Q.Se,e=Q.J.clone(),bz=0,g6=0;
if(b5.S8(V)==1){var N=b5.L3(V,0,0).s6.Justification,J=0,f5=b5.qi(V)[2];if(N==2)J=f5/2;if(N==1)J=f5;e.translate(J,0)}K.push("transform: "+r.oC(e));
var dx=b5.xY(V),fq=V.EngineDict.ParagraphRun,i9=fq.RunArray,e8=fq.RunLengthArray;if(K.length!=0)y.push("style=\""+K.join(";")+"\"");
C.e4.push(r.Y1(E)+"<text "+r.ym(y,v)+" >");var S=T.add.lmfx;if(S)S=S.frameFXMulti.v[0];if(S)S=S.v;var fs=I?CSS.CZ(I.Clr.v):null;
for(var H=0;H<i9.length;H++){var al=[],bj=e8[H],bE=dx.slice(bz,bz+bj-1),eN=b5.L3(V,bz,bz),dk=eN.Oe[eN.LI.Font].Name;
if(C.tW.indexOf(dk)==-1)C.tW.push(dk);CSS.ek(al,eN,Q.J,!0,!0,fs);if(S){K.push("stroke: "+CSS.CZ(S.Clr.v));
K.push("stroke-width: "+S.Sz.v.val)}var hj=eN.LI.FontSize*1.12;if(H==0)hj=b5.S8(V)==0?0:eN.LI.FontSize;
g6+=hj;if(bE!=""){var n=al.join(";"),R=C.hT[n],dK="";if(R==null){R="txt"+C.uU;C.uU++;C.hT[n]=R;C.$$[R]=n}var iN=eN.LI.Tracking;
if(iN!=null&&iN!=0){iN=Math.round(iN*eN.LI.FontSize/1e3);dK=" dx=\"0";for(var ch=1;ch<bE.length;ch++)dK+=" "+iN;
dK+="\" "}C.e4.push(r.Y1(E+1)+"<tspan x=\"0\" y=\""+r.p3(g6)+"\" class=\""+R+"\""+dK+">"+r.oB(bE)+"</tspan>")}bz+=bj}C.e4.push(r.Y1(E)+"</text>")}else if(T.add.SoLd&&Y.Y0){var hP=T.add.SoLd,d2=hP.Idnt.v,hr=0,fv=hP.Crop?hP.Crop.v:null;
if(C.zn[d2]!=null)hr=C.zn[d2];else{C.b8++;hr=C.b8;C.zn[d2]=C.b8;var f3=L.X7(d2,fv),d6="";if(f3==null)return;
var dp=f3.Ne,go=iL.lc(f3.raw.buffer);if(go=="pdf"){var iB=new b7("h");iL.WS("PDF").ER(f3.raw.buffer,iB);
iB.oQ();iB.C8();iB.s();iB.nU();if(hP.Crop&&hP.Crop.v==1){W.yP.h6(iB,iB.root.dm(iB,!0))}var hS=iL.WS("SVG").aR(iB,iB.d,iB.v,null,{tW:z});
d6="data:image/svg+xml;base64,"+iL.q4(hS)}else if(go=="jpg"||go=="png"||go=="gif"||go=="svg"){var eF={jpg:"image/jpg",png:"image/png",jpg:"image/jpg",svg:"image/svg+xml"};
d6="data:"+eF[go]+";base64,"+iL.q4(f3.raw.buffer)}else{d6=iL.CG(dp[0].buffer,dp[1].d,dp[1].v)}C.W9.push(r.Y1(2)+"<image width=\""+dp[1].d+"\" height=\""+dp[1].v+"\" id=\"img"+hr+"\" href=\""+d6+"\"/>")}var bQ=c.I.Qh(hP);
if(K.length!=0)y.push("style=\""+K.join(";")+"\"");var iP=r.ym(y,v);C.e4.push(r.Y1(E)+"<use "+iP+" href=\"#img"+hr+"\" transform=\""+r.oC(bQ)+"\"/>")}else if(!T.rect.ue()&&(Y.Y0||Q)){if(K.length!=0)y.push("style=\""+K.join(";")+"\"");
var iP=r.ym(y,v),d8=T.buffer;if(I)d8=ca.zT(d8,I,T.rect);var a6=T.rect;C.b8++;var d6=iL.CG(d8.buffer,a6.d,a6.v,"png",null,!0);
C.W9.push(r.Y1(2)+"<image width=\""+T.rect.d+"\" height=\""+T.rect.v+"\" id=\"img"+C.b8+"\" href=\""+d6+"\"/>");
C.e4.push(r.Y1(E)+"<use "+iP+" href=\"#img"+C.b8+"\" x=\""+a6.x+"\" y=\""+a6.y+"\" />")}}};cb.ym=function(L,C){if(C.length!=0)L.push("class=\""+C.join(" ")+"\"");
return L.join(" ")};cb.oB=function(L){return String(L).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u0022/g,"&quot;")};
cb.oC=function(L){var C=[L.R,L.O,L.Z9,L.J2,L.Yt,L.rv].map(cb.p3);return"matrix("+C.join(",")+")"};cb.dQ=function(L,C,U,E){var Y=cb,z=C.vstk,r=C.vmsk,p=C.lmfx;
if(r&&r.hY!=0){var T=Y.p3(r.hY);if(U.rk[T]==null){U.Oc++;U.rk[T]=U.Oc;U.W9.push(Y.Y1(2)+"<filter x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" id=\"flt"+U.Oc+"\"> <feGaussianBlur stdDeviation=\""+T+"\" /> </filter>")}L.push("filter: url(#flt"+U.rk[T]+")")}var k=ca.R4(p,C),P=k[0],b=k[1];
if(z&&!z.fillEnabled.v)L.push("fill: none");else if(P){var Q=CSS.CZ(P.Clr.v);L.push("fill: "+Q)}else if(b){Y.J5(b,U,E);
L.push("fill: url(#grd"+U.TK+")")}if(z==null||!z.strokeEnabled.v)z=ca.HS(p);if(z&&z.strokeEnabled.v){var K=z.strokeStyleContent.v,h=K.classID;
if(h=="solidColorLayer")L.push("stroke: "+CSS.CZ(K.Clr.v));else{Y.J5(K,U,E);L.push("stroke: url(#grd"+U.TK+")")}var x=gM.H0.h9.indexOf(z.strokeStyleLineCapType.v.strokeStyleLineCapType),O=gM.H0.join.indexOf(z.strokeStyleLineJoinType.v.strokeStyleLineJoinType),y=z.strokeStyleOpacity.v.val/100,v=z.strokeStyleLineWidth.v.val,i=gM.H0.jr.indexOf(z.strokeStyleLineAlignment.v.strokeStyleLineAlignment);
if(i==2){v*=2;L.push("paint-order:stroke fill markers")}var D=z.strokeStyleLineDashSet.v,I=[];for(var H=0;
H<D.length;H++)I.push(Math.round(D[H].v.val*v));if(x!=0)L.push("stroke-linecap:"+["butt","round","square"][x]);
if(O!=0)L.push("stroke-linejoin:"+["miter","round","bevel"][O]);if(y!=1)L.push("stroke-opacity:"+Y.p3(y));
if(v!=1)L.push("stroke-width: "+Y.p3(v));if(I.length!=0)L.push("stroke-dasharray: "+I.join(","))}};cb.J5=function(L,C,U){C.TK++;
var E=cb,Y=L.Grad.v,z=Y.Clrs.v.slice(0),r=Y.Trns.v.slice(0),p=L.Ofst.v,T=L.Type.v.GrdT=="Rdl"?1:0,k=(T==1?"radial":"linear")+"Gradient",P=c.W.LA(L,U);
if(T==0){P[0].x=P[1].x+2*(P[0].x-P[1].x);P[0].y=P[1].y+2*(P[0].y-P[1].y)}var b=E.Y1(2)+"<"+k+" id=\"grd"+C.TK+"\" gradientUnits=\"userSpaceOnUse\" ";
if(T==0)C.W9.push(b+" x1=\""+E.p3(P[0].x)+"\" y1=\""+E.p3(P[0].y)+"\" x2=\""+E.p3(P[1].x)+"\" y2=\""+E.p3(P[1].y)+"\">");
if(T==1)C.W9.push(b+" cx=\""+E.p3(P[0].x)+"\" cy=\""+E.p3(P[0].y)+"\" r=\""+E.p3(hZ.sl(P[0],P[1]))+"\">");
var Q=L.Rvrs.v;if(Q){z.reverse();r.reverse()}for(var H=0;H<z.length;H++){var K=z[H].v,h=H<r.length?r[H].v.Opct.v.val/100:1,h=h==1?"":"stop-opacity=\""+E.p3(h)+"\"",x=K.Lctn.v/4096;
if(Q)x=1-x;C.W9.push(E.Y1(3)+"<stop offset=\""+E.p3(x)+"\" stop-color=\""+CSS.CZ(K.Clr.v)+"\" "+h+" />")}C.W9.push(E.Y1(2)+"</"+k+">")};
cb.tD=function(L,C,U,E,Y){var z=[],r=cb.tD,p=!1,T={aU:L,fg:C,$a:[!0,!0,!0],Gx:!1,_B:U,aep:0};T.G8=Math.round(Math.max(L,C)*(.02+r.AH(T)*.03));
T.yf=r.a8l(T);T._M=r.a57(T.yf,(r.AH(T)<.5?-1:1)*(.2+r.AH(T)*.3));if(r.AH(T)<.5){var k=T.yf;T.yf=T._M;
T._M=k}T.a53=r.AH(T)<.4&&r.aaQ(T._M,{h:1,P:1,O:1})>.3;T.ai7=r.AH(T)<.5?0:1;z.push("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 "+L+" "+C+"\" width=\""+L+"\" height=\""+C+"\">");
T.jp=E[Math.floor(r.Fk(T)*E.length)];T.Hx=E[Math.floor(r.Fk(T)*E.length)];z.push("<style>");z.push("@font-face {  font-family: "+T.jp[2]+";  src: url(rsrc/fonts/"+T.jp[5]+");  }");
z.push("@font-face {  font-family: "+T.Hx[2]+";  src: url(rsrc/fonts/"+T.Hx[5]+");  }");z.push("</style>");
var P=[0,0,L,C],b=P;if(Y==null)z.push("<path style=\"fill: "+r.AX(T.yf)+"\" d=\""+r.Rect(P[0],P[1],P[2]-P[0],P[3]-P[1])+"\" id=\"Background\" />");
else{T.Gx=!0;r.KA(T,P,z,Y)}if(r.AH(T)<.25&&!T.Gx){T.$a[0]=T.$a[2]=!1;r.agN(P,T,z);b=P}else if(r.AH(T)<.25||T.Gx)b=P;
else{var Q=.52+r.AH(T)*.2;if(r.AH(T)<.5)Q=1-Q;var K=P.slice(0),h=P.slice(0);if(r.AH(T)<.5)K[2]=h[0]=Math.round(Q*L);
else K[3]=h[1]=Math.round(Q*C);if(r.AH(T)<.5){var k=K;K=h;h=k}b=K;r.adv(T,h,z,Y)}r.a0Q(T,b,z);z.push("</svg>");
z=z.join("\n");var x=c.F(Math.round(z.length*1.5)),O=$.mW(z,x,0);return[x.buffer.slice(0,O),T.GE]};cb.tD.agN=function(L,C,U){var E=cb.tD,Y=L[2]-L[0],z=L[3]-L[1];
if(E.AH(C)<.5){U.push("<path id=\"Border\" style=\"fill: "+E.AX(C._M)+"\" d=\""+E.a4W(L[0],L[1],L[2]-L[0],L[3]-L[1],C.G8)+"\" />")}else if(E.AH(C)<-.4){E.a1M(C,L,U)}else{var r=E.AH(C)<.5?0:1,p=(r==0?z:Y)/4,T=E.ML(C,r,L,U,p,!0),T=E.ML(C,r+2,L,U,p,!0,T)}};
cb.tD.a0Q=function(L,C,U){var E=cb.tD,Y="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("-"),z=2*Math.floor(E.AH(L)*Y.length/2),r=C[2]-C[0],p=C[3]-C[1],k=0,b=0;
L.sp=(L.aU+r)*.5*(.04+E.AH(L)*.05);L.sp=Math.min(L.sp,p*.4,r*.12);L.sp=Math.round(L.sp);var T=Math.min(L.sp*Y[z].length*(.35+.3*E.AH(L)),r*.9),P=(C[1]+C[3])/2,Q=c.uW(L.yf)<.85?{h:1,P:1,O:1}:{h:.1,P:.1,O:.1};
if(E.AH(L)<.25&&L.$a[0]){b=0;k=C[0]+L.G8}else if(E.AH(L)<.33&&L.$a[2]){b=2;k=C[2]-L.G8}else{b=1;k=(C[0]+C[2])/2}var K=Q.h==1?"0,0,0":"255,255,255",h=L.Gx&&E.AH(L)<1;
if(h){var x=C[0],O=r,y=P-L.sp*1.1,v=L.sp*2.2,i=.7;if(b==1&&E.AH(L)<.5){x=y=.2*Math.min(r,p);O=r-2*y;
v=p-y-y}else if(E.AH(L)<.7){x=y=0;O=r;v=p;i=.25}U.push("<path id=\"Strip\" style=\"fill: rgb("+K+"); opacity: "+i+"\" d=\""+E.Rect(x,y,O,v)+"\" />")}if(E.AH(L)<.4){var D=L.sp*.07;
D*=1.5+E.AH(L)*1;if(b==-1&&r/p<3&&!h){U.push("<path id=\"Bar-bottom\" style=\"fill: "+E.AX(Q)+"\" d=\""+E.Rect(k-T/2,P+L.sp*1.1-D/2,T,D)+"\" />");
U.push("<path id=\"Bar-top\"    style=\"fill: "+E.AX(Q)+"\" d=\""+E.Rect(k-T/2,P-L.sp*1.1-D/2,T,D)+"\" />")}if(b!=1){U.push("<path id=\"Bar\" style=\"fill: "+E.AX(Q)+"\" d=\""+E.Rect(k-D/2,P-L.sp*.8,D,L.sp*.8*2)+"\" />");
k+=(b==0?1:-1)*L.sp/3}}var I=L.sp*.4;U.push(E.dj(Y[z+1],k,P+I*1.6,I,Q,b,L.Hx));U.push(E.dj(Y[z],k,P+L.sp*.04,L.sp,Q,b,L.jp))};
cb.tD.adv=function(L,C,U,E){var Y=C[2]-C[0],z=C[3]-C[1],r=Math.max(Y,z),p=Math.min(Y,z),T=cb.tD;if(r/p<5&&!L.Gx&&!1){T.KA(L,C,U,E)}else if(T.AH(L)<0)U.push("<path style=\"fill: "+T.AX(L._M)+"\" d=\""+T.Rect(C[0],C[1],Y,z)+"\" />");
else{var k=0;if(C[3]!=L.fg)k=0;if(C[2]!=L.aU)k=3;if(C[0]!=0)k=1;if(C[1]!=0)k=2;var P=k+2&3;if(r/p<3){var b=T.a4X(P),Q=b[Math.round(T.AH(L)*(b.length-1))],K=Q.n8.slice(0,4),h=K.indexOf(1);
Q=JSON.parse(JSON.stringify(Q));var x=-1;if(K!="0000"){var O=new c0;if(Q.n8[5]=="0"){if(h==3&&k==1){x=1;
O.scale(-1,1)}else x=h}else{var y=P;while(y==P)y=Math.floor(T.AH(L)*4)&3;O.rotate((-h+y)*Math.PI/2)}T.J(Q,O)}var v=T.mE(Q),i=Y-2*L.G8,D=z-2*L.G8;
if(x!=-1){if((x&1)==0)D-=L.G8;else i-=L.G8}var I=Math.min(i/v.d,D/v.v),m=new c0;m.translate(-v.x,-v.y);
m.scale(I,I);var f=(Y-v.d*I)/2,A=(z-v.v*I)/2;if(x!=-1){if(x==3)f=0;if(x==0)A=0;if(x==1)f=Y-v.d*I;if(x==2)A=z-v.v*I}m.translate(C[0]+f,C[1]+A);
T.gl(L,Q,m,L._M,U)}else{T.ML(L,k,C,U,1e9)}}};cb.tD.KA=function(L,C,U,E){var Y=C[2]-C[0],z=C[3]-C[1],r=Math.max(Y,z),p=Math.min(Y,z),T=cb.tD,k=T.Fk(L),P,b,Q,K=E[0]instanceof ArrayBuffer;
if(K){P="data:image/jpg;base64,"+g8.qG(E[0]);b=E[1];Q=E[2]}else{var h=Math.floor(k*E.length),x=E[h];
L.GE=x;P=x.webformatURL;b=x.webformatWidth;Q=x.webformatHeight}var O=C[0],y=C[1],v=Y,i=z;if(Y/z>b/Q){i=v*Q/b;
y=y-(i-z)/2}else{v=i*b/Q;O=O-(v-Y)/2}if(K){U.push("<defs>");U.push("<image width=\""+b+"\" height=\""+Q+"\" id=\"Background\" href=\""+P+"\" />");
U.push("</defs>");var D=v/b;U.push("<use href=\"#Background\" transform=\""+cb.oC(new c0(D,0,0,D,O,y))+"\" />")}else{var I="cp"+Math.random();
U.push("<clipPath id=\""+I+"\">");U.push("<path style=\"fill: "+T.AX(L._M)+"\" d=\""+T.Rect(C[0],C[1],Y,z)+"\" />");
U.push("</clipPath>");U.push("<image  clip-path=\"url(#"+I+")\" xlink:href=\""+P+"\" x=\""+O+"\" y=\""+y+"\" width=\""+v+"\" height=\""+i+"\" />")}};
cb.tD.dj=function(L,C,U,E,Y,z,r){var p=cb.tD;return"<text x=\""+C+"\" y=\""+U+"\" style=\"fill:"+p.AX(Y)+"; font-size:"+E+"px; text-anchor:"+["start","middle","end"][z]+"; font-family:"+r[2]+";\"><tspan>"+L+"</tspan></text>"};
cb.tD.gl=function(L,C,U,E,Y){var z=cb.tD,r=[];for(var H=0;H<C.Pw.length;H++){r.push(E);if(L.a53){E=(H&1)==L.ai7?{h:1,P:1,O:1}:r[0]}}Y.push("<g id=\""+C.n8.split("-")[2]+":::\" style=\"transform: "+cb.oC(U)+";\" >");
for(var H=0;H<C.Pw.length;H++){var p=C.Pw[H];E=r.pop();Y.push("<path style=\"fill: "+(E?z.AX(E):"#"+p[0])+"\" d=\""+Typr.U.pathToSVG({crds:p[1].c,cmds:p[1].Z})+"\" />")}Y.push("</g>")};
cb.tD.a1M=function(L,C,U){var E=cb.tD,Y=cb.tD.yO,z=[];for(var H=0;H<Y.length;H++){var r=Y[H],p=r.n8.slice(0,4);
if(p!="1001")continue;z.push(r)}var r=z[Math.floor(E.AH(L)*z.length)];if(E.AH(L)<.5)E.J(r,new c0(0,1,1,0,0,0));
var T=C[3]-C[1],k=C[2]-C[0],P=E.mE(r),b=.7*Math.min(k,T,.5*Math.max(k,T))/Math.max(P.d,P.v),Q=new c0;
Q.scale(b,b);if(E.AH(L)<.5){Q.scale(1,-1);Q.translate(0,T)}E.gl(L,r,Q,L._M,U);Q.rotate(Math.PI);Q.translate(k,T);
E.gl(L,r,Q,L._M,U)};cb.tD.a4X=function(L){var C=cb.tD.yO,U=[];for(var H=0;H<C.length;H++){var E=C[H],Y=E.n8.slice(0,4);
if(Y=="0000"){U.push(E);continue}if(["1000","0100","0010","0001"].indexOf(Y)==-1)continue;var z=Y.indexOf("1");
if(E.n8[5]=="0"&&L==z&&z!=3)continue;U.push(E)}return U};cb.tD.ML=function(L,C,U,E,Y,z,r){var p=cb.tD.yO,T=cb.tD,k=[],v,i;
for(var H=0;H<p.length;H++){var P=p[H],b=P.n8.slice(0,4);if(["1110","1101","1011","0111"].indexOf(b)==-1)continue;
var Q=b.indexOf("0")+2&3;if(P.n8[5]=="0")if(z==!0||C!=Q&&!(C==1&&Q==3))continue;k.push(P)}var K=r!=null?r:Math.floor(T.AH(L)*k.length),P=k[K],P=JSON.parse(JSON.stringify(P)),b=P.n8.slice(0,4),Q=b.indexOf("0")+2&3;
if(Q==3&&C==1)c.J(P,new c0(1,0,0,-1,0,1e3));var h=new c0;h.translate(-500,-500);h.rotate(-Q*Math.PI/2);
h.translate(500,500);T.J(P,h);var x=U[3]-U[1],O=U[2]-U[0],y=T.mE(P);if(y.y<0){y.v+=y.y;y.y=0}if(y.y>0){y.v+=y.y;
y.y=0}if((C&1)==0){i=x;v=O}else{v=x;i=O}var D=Math.min(Math.min(.5+.5*T.AH(L))*Math.min(O,x),Y)/y.v,I=Math.ceil(v/(1e3*D)),m=new c0,f=new c0;
f.scale(D,D);if(C==0||C==2){f.translate(-(O/2),-(x/2));f.rotate(-C*Math.PI/2);f.translate(O/2+U[0],x/2+U[1])}else{f.rotate(Math.PI/2);
f.scale(1,-1);f.translate(U[0],U[1]);if(C==1){f.scale(-1,1);f.translate(O,0)}}E.push("<g id=\"Border-"+["top","right","bottom","left"][C]+":::\">");
for(var H=0;H<I;H++){var A=m.clone();A.concat(f);T.gl(L,P,A,L._M,E);m.translate(1e3-2,0)}E.push("</g>");
return K};cb.tD.Rect=function(L,C,U,E){return Typr.U.pathToSVG({crds:[L,C,L+U,C,L+U,C+E,L,C+E],cmds:["M","L","L","L","Z"]})};
cb.tD.a4W=function(L,C,U,E,Y){var z=[L,C,L+U,C,L+U,C+E,L,C+E];L+=Y;C+=Y;U-=2*Y;E-=2*Y;z.push(L,C,L,C+E,L+U,C+E,L+U,C);
return Typr.U.pathToSVG({crds:z,cmds:"M L L L Z M L L L Z".split(" ")})};cb.tD.a57=function(L,C){var U=c.S2(L.h,L.P,L.O);
U.fr=Math.max(.1,Math.min(.9,U.fr+C));return c.u2(U.fg,U.uR,U.fr)};cb.tD.a1m=function(L,C){var U=c.S2(L.h,L.P,L.O);
U.fg+=C;return c.u2(U.fg,U.uR,U.fr)};cb.tD.a0f=function(L){var C=c.S2(L.h,L.P,L.O);C.fr=1-C.fr;return c.u2(C.fg,C.uR,C.fr)};
cb.tD.aaQ=function(L,C){var U=L.h-C.h,E=L.P-C.P,Y=L.O-C.O;return Math.sqrt(U*U+E*E+Y*Y)};cb.tD.a8l=function(L){var C=cb.tD;
return{h:C.AH(L),P:C.AH(L),O:C.AH(L)}};cb.tD.AX=function(L){return CSS.ws({h:L.h*255,P:L.P*255,O:L.O*255})};
cb.tD.mE=function(L){var C=L.Pw,U=new _;for(var H=0;H<C.length;H++)U=U.EU(c.a.mE(C[H][1].c));return U};
cb.tD.J=function(L,C){var U=L.Pw;for(var H=0;H<U.length;H++)c.a.J(U[H][1].c,C,U[H][1].c)};cb.tD.AH=function(L){L.aep++;
var C=L.aep&3;if(C==0)L._B=cb.tD.Gn(L._B);var U=L._B>>>8*C&255;return U*(.99999999/255)};cb.tD.Fk=function(L){var C=cb.tD.Gn(L._B);
L._B=cb.tD.Gn(C);return C*(1/4294967295)};cb.tD.Gn=function(L){L=(L^61^L>>>16)>>>0;L=L+(L<<3)>>>0;L=(L^L>>>4)>>>0;
L=L*668265261>>>0;L=(L^L>>>15)>>>0;return L};cb.tD.yO=[{n8:"0001-0-bird",Pw:[["4b3c34",{Z:"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(" "),c:[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",{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 L Z M C C C C C L Z M C C C C L Z M C C C C Z".split(" "),c:[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",{Z:"M C C C C C C C C C C C C L Z".split(" "),c:[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]}]]},{n8:"0001-0-bird2",Pw:[["ff7f2a",{Z:"M L L L Z M L L L Z".split(" "),c:[296,0,296,62,335,62,296,0,357,0,357,62,318,62,357,0]}],["b588c1",{Z:"M C C C C C C C C C C C L Z".split(" "),c:[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",{Z:"M C C C C C C L Z M C C Z".split(" "),c:[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",{Z:"M L L L Z M L L L Z".split(" "),c:[326,258,334,315,323,316,326,258,298,262,296,318,286,317,298,262]}],["4b3c34",{Z:"M L C C C C C C C C L Z".split(" "),c:[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",{Z:"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(" "),c:[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]}]]},{n8:"0000-1-flower",Pw:[["7a59a2",{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".split(" "),c:[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]}]]},{n8:"0000-1-flower",Pw:[["d13777",{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 L C L L C C C C L L Z M C C C C Z".split(" "),c:[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]}]]},{n8:"0000-1-flower",Pw:[["ffac42",{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".split(" "),c:[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]}]]},{n8:"0000-1-flower",Pw:[["d04040",{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(" "),c:[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]}]]},{n8:"0000-1-flower",Pw:[["ec7272",{Z:"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(" "),c:[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",{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 M C C C C C C C C C C C C L Z".split(" "),c:[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]}]]},{n8:"0000-0-hearts",Pw:[["d17070",{Z:"M C C C C C C C C C L Z".split(" "),c:[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",{Z:"M C C C C C C C C C L Z".split(" "),c:[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",{Z:"M C C C C C C C C C L Z".split(" "),c:[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]}]]},{n8:"0000-0-anchor",Pw:[["2a3b66",{Z:"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(" "),c:[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]}]]},{n8:"0000-1-leaf",Pw:[["fbb600",{Z:"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(" "),c:[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]}]]},{n8:"0000-1-acorn",Pw:[["a05a2c",{Z:"M C C C C C C C L Z".split(" "),c:[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",{Z:"M C C C C C C C C C C C Z".split(" "),c:[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]}]]},{n8:"0000-0-skull",Pw:[["808080",{Z:"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(" "),c:[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]}]]},{n8:"0000-0-ghost",Pw:[["e6e6e6",{Z:"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(" "),c:[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",{Z:"M C C C C Z M C C C C Z".split(" "),c:[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]}]]},{n8:"1001-1-rose",Pw:[["9e1460",{Z:"M C C C C C C C C C Z M C C C C C C C C C Z".split(" "),c:[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",{Z:"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(" "),c:[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]}]]},{n8:"1001-1-curls",Pw:[["53a7ab",{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 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(" "),c:[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",{Z:"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(" "),c:[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]}]]},{n8:"0111-0-pines",Pw:[["e9e9e9",{Z:"M C C C C C C C C L L L Z".split(" "),c:[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",{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 M C L C C C L L C C L L L L L C Z".split(" "),c:[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]}]]},{n8:"0111-0-flowers",Pw:[["8cae40",{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 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(" "),c:[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",{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 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(" "),c:[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]}]]},{n8:"1101-1-confetti",Pw:[["e789ff",{Z:"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(" "),c:[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",{Z:"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(" "),c:[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]}]]},{n8:"1101-1-branch",Pw:[["7f500b",{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 M C C C L C C Z".split(" "),c:[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",{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 M C C C C Z".split(" "),c:[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]}]]},{n8:"1101-1-sticks",Pw:[["ec7272",{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 M L L L L Z".split(" "),c:[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",{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 M L L L L Z".split(" "),c:[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]}]]},{n8:"1101-1-dots",Pw:[["ec7272",{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(" "),c:[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",{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(" "),c:[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",{Z:["M","C","C","Z"],c:[389,224,389,224,410,230,410,230,410,230,389,224,389,224]}]]},{n8:"1101-1-strips",Pw:[["ffc88c",{Z:"M L L L L Z M L L L L Z M L L L L Z".split(" "),c:[-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",{Z:"M L L L L Z M L L L L Z M L L L L Z".split(" "),c:[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",{Z:["M","C","C","Z"],c:[407,217,407,217,428,223,428,223,428,223,407,217,407,217]}]]},{n8:"1101-1-circs",Pw:[["ec7272",{Z:"M C C C C Z M C C C C Z".split(" "),c:[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",{Z:"M C C C C Z M C C C C Z".split(" "),c:[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",{Z:["M","C","C","Z"],c:[530,273,530,273,551,279,551,279,551,279,530,273,530,273]}]]},{n8:"1101-1-squares",Pw:[["014ea7",{Z:"M L L L L Z M L L L L Z".split(" "),c:[0,120,124,120,124,244,0,244,0,120,497,120,621,120,621,244,497,244,497,120]}],["fc54ff",{Z:"M L L L L Z M L L L L Z".split(" "),c:[249,120,373,120,373,244,249,244,249,120,746,120,870,120,870,244,746,244,746,120]}],["88a500",{Z:["M","C","C","Z"],c:[389,354,389,354,410,360,410,360,410,360,389,354,389,354]}]]},{n8:"1101-0-christmas",Pw:[["014ea7",{Z:"M C C C C Z M C C C C Z M L L L L Z".split(" "),c:[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",{Z:"M C C C C Z M C C C C Z M L L L L Z".split(" "),c:[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 en={};en.parse=function(L){var C=new Uint8Array(L),U=null;if(C[0]==80&&C[1]==75){var E=Date.now(),Y=UZIP.parse(C.buffer),U=Y["document.json"];
U=JSON.parse($.IQ(U,0,U.length));en.AZ(U,Y)}else{var z=cL.parse(L);U=en.Ft(z[2][0][1])}return U};en.AZ=function(L,C){var U=typeof L;
if(U=="string"||U=="number"||U=="boolean")return L;if(L instanceof Array){for(var H=0;H<L.length;H++)L[H]=en.AZ(L[H],C);
return L}var E=L._class;if(E==null)return L;if(E=="MSJSONFileReference"){var Y=L._ref;if(!1){}else if(C[Y+".json"]!=null){var z=C[Y+".json"],r=z.length;
for(var H=0;H<r;H++)if(z[H]==11||z[H]==3)z[H]=32;var p=$.IQ(z,0,r);L=JSON.parse(p)}else if(C[Y+".png"]!=null)return{key:Y.split("/").pop(),bdata:C[Y+".png"]};
else if(C[Y+".jpg"]!=null)return{key:Y.split("/").pop(),bdata:C[Y+".jpg"]};else if(C[Y+".pdf"]!=null)return{key:Y.split("/").pop(),bdata:C[Y+".pdf"]};
else if(C[Y]!=null)return{key:Y.split("/").pop(),bdata:C[Y]};else{console.log(L,C);return}}else if(E=="MSAttributedString"){var p=atob(L.archivedAttributedString._archive),T=p.length-1,k=new Uint8Array(T);
for(var H=0;H<T;H++)k[H]=p.charCodeAt(H);L.archivedAttributedString=en.Ft(k)}for(var P in L)L[P]=en.AZ(L[P],C);
return L};en.b1=function(L,C,U,E){if(L instanceof Uint8Array)return null;if(E.indexOf(L)!=-1)return null;
E.push(L);if(L==C)return U;for(var Y in L){U.push(Y);var z=en.b1(L[Y],C,U,E);if(z){console.log(L,z);
throw"e"}U.pop()}};en.Ft=function(L){var C=gP.parse(L,0),U=C.$objects,E=new Uint8Array(U.length),Y=en.xg(U,E,C.$top.root);
for(var H=0;H<U.length;H++)if(E[H]==0&&H!=0){console.log(H,U[H]);en.b1(Y,H,[],[])}for(var H=0;H<U.length;
H++){var z=U[H];if(z._class&&(z._class=="bitmap"||z._class=="fill"&&z.fillType==4&&(z.image||z.imageSHA))){var r=z.image,p=z.imageSHA,T=null,k=null;
if(r=="$null")r=null;if(p=="$null")p=null;if(r&&r.data){k=r.sha1["NS.bytes"];k=btoa($.ZA(k,0,k.length));
T=r.data instanceof Uint8Array?r.data:r.data["NS.bytes"]}else if(r==null&&p==null){var P=iL.WS("PNG").aR([[c.F(4).buffer]],1,1);
T=new Uint8Array(P)}else{var b=(Y.assets?Y.assets.imageCollection:Y.images).images;if(p)k=p instanceof Uint8Array?p:p["NS.bytes"];
else k=r.sha1["NS.bytes"];k=btoa($.ZA(k,0,k.length));var T=b[k].data;if(T["NS.bytes"])T=T["NS.bytes"]}T=new Uint8Array(T.buffer.slice(T.byteOffset,T.byteOffset+T.length));
delete z.imageSHA;z.image={key:k,bdata:T}}}return Y};en.a5k=function(L){return L.slice(0,11)=="MSImmutable"?"MS"+L.slice(11):L};
en.xg=function(L,C,U){var E=L[U];if(C[U]==1){return E}C[U]=1;if(typeof E=="string")return E;if(typeof E=="number")return E;
if(typeof E=="boolean")return E;if(E instanceof Array)return E;if(E instanceof Uint8Array){return E}if(L[E.$class]==null){if(E.$class==null&&E["NS.data"]!=null)return E;
console.log(U,E);throw"e"}var Y=L[E.$class],z=en.a5k(Y.$classname);C[E.$class]=1;E.$class=z;if(en.$L[z]){delete E.$class;
E._class=en.$L[z]}var r=en.xg;if(z=="NSMutableArray"||z=="NSArray"){var p=[];if(E["NS.objects"]!=null)for(var H=0;
H<E["NS.objects"].length;H++)p.push(r(L,C,E["NS.objects"][H]));else for(var H=0;E["NS.object."+H]!=null;
H++)p.push(r(L,C,E["NS.object."+H]));L[U]=p;return p}if(z=="NSDictionary"||z=="NSMutableDictionary"){var T={$class:z};
if(E["NS.keys"]!=null)for(var H=0;H<E["NS.keys"].length;H++){var k=r(L,C,E["NS.keys"][H]);if(k instanceof Uint8Array)k=btoa(en.QC.ZA(k,0,k.length));
else if(typeof k!="string"&&typeof k!="number")k=btoa(en.QC.ZA(k["NS.bytes"],0,k["NS.bytes"].length));
T[k]=r(L,C,E["NS.objects"][H])}else for(var H=0;E["NS.key."+H]!=null;H++){var k=r(L,C,E["NS.key."+H]);
if(k instanceof Uint8Array)k=btoa(en.QC.ZA(k,0,k.length));else if(typeof k!="string"&&typeof k!="number")k=btoa(en.QC.ZA(k["NS.bytes"],0,k["NS.bytes"].length));
T[k]=r(L,C,E["NS.object."+H])}for(var P in E)delete E[P];for(var P in T)E[P]=T[P];return E}if(z=="NSURL")return{$class:z,base:r(L,C,E["NS.base"]),relative:r(L,C,E["NS.relative"])};
if(en.afo.indexOf(z)!=-1){L[U]=r(L,C,E.array_do);return L[U]}if(E.do_objectID!=null)E.do_objectID=r(L,C,E.do_objectID);
if(en.a3Z.indexOf(z)!=-1)return E;var b=en.aar[z];if(b==null){console.log(L,E);throw"unknown class "+z}for(var H=0;
H<b.length;H++)if(E[b[H]]!=null)E[b[H]]=r(L,C,E[b[H]]);if(z=="MSTextLayer"){var Q=E,K,h,x,O;if(Q.attributedString)K=Q.attributedString.archivedAttributedString;
else K=Q.storage;O=K.NSString;if(typeof O!="string")O=$.IQ(O["NS.bytes"],0,O["NS.bytes"].length);if(K.NSAttributeInfo)h=K.NSAttributeInfo["NS.bytes"];
else{var y=O.length,v=[];while(y>0){var i=Math.min(100,y);v.push(i,0);y-=i}h=new Uint8Array(v)}x=K.NSAttributes instanceof Array?K.NSAttributes:[K.NSAttributes];
var D={$class:"NSAttributedString",NSString:O,NSAttributes:x};Q.attributedString={_class:"MSAttributedString",archivedAttributedString:D};
D.NSAttributeInfo={$class:"NSMutableData","NS.data":h};delete Q.storage}return E};en.QC={lb:function(L,C){return L[C+1]<<8|L[C]},i:function(L,C){return L[C+3]<<24|L[C+2]<<16|L[C+1]<<8|L[C]},ZA:function(L,C,U){var E="";
for(var H=0;H<U;H++)E+=String.fromCharCode(L[C+H]);return E}};en.$L={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"};
en.afo=["MSArray","MSFillStyleCollection","MSBorderStyleCollection","MSShadowStyleCollection","MSInnerShadowStyleCollection"];
en.a3Z="MSArchivedColor MSLayoutGrid MSSimpleGrid MSColor MSRect MSStyleColorControls MSGraphicsContextSettings NSMutableString NSMutableData NSDecimalNumberPlaceholder MSStyleReflection".split(" ");
en.aar={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 gP={};gP.parse=function(L,C){var U=$.ZA(L,C,8);C+=8;var E=gP.parse.a4u(L,L.length-31),Y=[];if(E.Hf==1){var C=L.length-31-E.Hf*E.mL;
for(var H=0;H<E.mL;H++)Y.push(L[C+H])}else if(E.Hf==2){var C=L.length-31-E.Hf*E.mL;for(var H=0;H<E.mL;
H++)Y.push($.lb(L,C+H*2))}else if(E.Hf==4){var C=L.length-31-E.Hf*E.mL;for(var H=0;H<E.mL;H++)Y.push($.i(L,C+H*4))}else{throw"e"}var z=gP.parse.xg(L,Y,E.root,E);
return z};gP.parse.xg=function(L,C,U,E){var Y=gP.QC,z=E.a6A,r=z==4?Y.i:z==2?Y.lb:Y.ag6,p=gP.parse,T=C[U],k=L[T],P=k>>4,b=k&15,K=null;
T+=1;if([4,5,6,10,12,13].indexOf(P)!=-1&&b==15){var Q=p.xw(L,T);T+=Q.a3;b=Q.G}if(!1){}else if(P==0)K=b==8?!1:b==9?!0:null;
else if(P==1)K=p.xw(L,T-1).G;else if(P==2)K=1<<b==4?$.qV(L,T):$.HD(L,T);else if(P==3)K=$.HD(L,T);else if(P==4)K=new Uint8Array(L.buffer,T,b);
else if(P==5)K=$.ZA(L,T,b);else if(P==6)K=$.I7(L,T,b);else if(P==8){K=0;for(var H=0;H<b+1;H++)K=K<<8|L[T+H]}else if(P==10){K=[];
for(var H=0;H<b;H++)K.push(p.xg(L,C,r(L,T+z*H),E))}else if(P==12){K=[];for(var H=0;H<b;H++)K.push(p.xg(L,C,r(L,T+z*H),E))}else if(P==13){K={};
for(var H=0;H<b;H++){var h=p.xg(L,C,r(L,T+z*H),E),x=p.xg(L,C,r(L,T+z*(b+H)),E);K[h]=x}}else throw"unknown mask "+P;
return K};gP.parse.xw=function(L,C){var U=1<<(L[C]&15),E=0;for(var H=0;H<U;H++)E=E<<8|L[C+1+H];return{G:E,a3:U+1}};
gP.parse.a4u=function(L,C){var U={};C+=6;U.Hf=L[C];C++;U.a6A=L[C];C++;C+=4;U.mL=$.i(L,C);C+=4;C+=4;U.root=$.i(L,C);
C+=4;C+=4;U.abq=$.i(L,C);C+=4;return U};gP.QC={ag6:function(L,C){return L[C]},lb:function(L,C){return L[C]<<8|L[C+1]},i:function(L,C){return L[C]<<24|L[C+1]<<16|L[C+2]<<8|L[C+3]},ZA:function(L,C,U){var E="";
for(var H=0;H<U;H++)E+=String.fromCharCode(L[C+H]);return E}};var cL={parse:function(L){var C=new Uint8Array(L),U=cL.nd(C),E=[],Y=new Uint8Array(C.length),z=[];
E.push(z);cL.cn(C,U,1,Y,z);for(var H=0;H<z.length;H++){var r=[];E.push(r);cL.cn(C,U,z[H][3],Y,r);z[H][3]=H+1}return E},cn:function(L,C,U,E,Y){U--;
var z=U*C.Bb+(U==0?100:0),r=L[z],p=cL.lb(L,z+1);if(p!=0)throw"free block in a page";var T=cL.lb(L,z+3),k=cL.lb(L,z+5);
if(k==0)k=65536;var P=L[z+7],b=cL.lb(L,z+8);if(r==2||r==5)z+=4;else b=0;for(var Q=0;Q<T;Q++){var K=U*C.Bb+cL.lb(L,z+8+2*Q),h=-1,x=0,O=0,y=0;
if(r==2||r==5){h=cL.i(L,K);K+=4}if(r==2||r==10||r==13){x=cL.Lc(L,K);K+=x.a3}if(r==5||r==13){O=cL.Lc(L,K);
K+=O.a3}if(r==5){cL.cn(L,C,h,E,Y);continue}var v=C.Bb-(U==0?100:0),i=x.oe,D=r==13?v-35:Math.floor((v-12)*64/255)-23,I=Math.floor((v-12)*32/255)-23,m=I+(i-I)%(v-4);
if(i<=D){cL.hL(L,K,E,0,i)}else{var f=m<=D?m:I,A=0;cL.hL(L,K,E,0,f);A+=f;y=cL.i(L,K+f);while(y!=0){var d=(y-1)*C.Bb;
y=cL.i(L,d);var g=Math.min(C.Bb-4,i-A);cL.hL(L,d+4,E,A,g);A+=g}}Y.push(cL.a9Z(E,i))}},a9Z:function(L,C){var U=0,E=cL.Lc(L,U);
U+=E.a3;var Y=[],z=[];while(U<E.oe){var r=cL.Lc(L,U);U+=r.a3;Y.push(r.oe)}if(U!=E.oe)throw"e";for(var H=0;
H<Y.length;H++){var r=Y[H];if(!1){}else if(r==0)z.push(null);else if(r==1){z.push(cL.afs(L,U));U+=1}else if(r==2){z.push(cL.sZ(L,U));
U+=2}else if(r==3){z.push(cL.a4m(L,U));U+=3}else if(r==4){z.push(cL.xw(L,U));U+=4}else if(r==7){z.push(cL.a7v(L,U));
U+=16}else if(r==8)z.push(0);else if(r==9)z.push(1);else if(r>=12&&(r&1)==0){var p=r-13>>1,T=new Uint8Array(p);
cL.hL(L,U,T,0,p);z.push(T);U+=p}else if(r>=13&&(r&1)==1){var p=r-12>>1;z.push(cL.IQ(L,U,p));U+=p}else throw"unknonw type "+r}return z},nd:function(L){if(!(L[18]==1&&L[19]==1&&L[20]==0&&L[21]==64&&L[22]==32&&L[23]==32))throw"unexpected SQL3 header";
var C={ew:cL.ZA(L,0,15),Bb:cL.lb(L,16),a3T:cL.i(L,24),size:cL.i(L,28),a9X:cL.i(L,32),ad5:cL.i(L,36),ak4:cL.i(L,40),ai_:cL.i(L,44),a6d:cL.i(L,48),akz:cL.i(L,52),adj:cL.i(L,56),a6C:cL.i(L,60),a5u:cL.i(L,64)!=0,a0s:cL.i(L,68),aat:cL.i(L,92),a3R:cL.i(L,96)};
if(C.Bb==1)C.Bb=65536;if(C.adj!=1)throw"unsupported text encoding "+C.adj;return C},aim:function(L,C){return L[C]<<16|L[C+1]<<8|L[C+2]},a4m:function(L,C){var U=cL.aim(L,C),E=U&8388608;
return E?-(16777215-U+1):U},afs:function(L,C){cL.Qf[0]=L[C];return cL.a9F[0]},xw:function(L,C){var U=cL.Qf;
for(var H=0;H<4;H++)U[H]=L[C+3-H];return cL.a40[0]},sZ:function(L,C){var U=cL.Qf;U[0]=L[C+1];U[1]=L[C];
return cL.a3Y[0]},lb:function(L,C){return L[C]<<8|L[C+1]},i:function(L,C){return L[C]<<24|L[C+1]<<16|L[C+2]<<8|L[C+3]},a7v:function(L,C){var U=cL.Qf;
for(var H=0;H<8;H++)U[H]=L[C+7-H];return cL.aaS[0]},Lc:function(L,C){var U=C,u=0;while(!0){var E=L[C];
C++;u=u*128+(E&127);if(E<128)break}return{oe:u,a3:C-U}},ZA:function(L,C,U){var E="";for(var H=0;H<U;
H++)E+=String.fromCharCode(L[C+H]);return E},IQ:function(L,C,U){var E="";for(var H=0;H<U;H++)E+="%"+cL.aba(L[C+H].toString(16));
return decodeURIComponent(E)},hL:function(L,C,U,E,Y){if(L[C+Y-1]==null||U[E+Y-1]==null){console.log(C,E,Y);
throw"e"}for(var H=0;H<Y;H++)U[E+H]=L[C+H]},aba:function(u){return u.length<2?"0"+u:u}};cL.Qf=new Uint8Array(8);
cL.a9F=new Int8Array(cL.Qf.buffer);cL.a3Y=new Int16Array(cL.Qf.buffer);cL.a40=new Int32Array(cL.Qf.buffer);
cL.aaS=new Float64Array(cL.Qf.buffer);function gv(L,C,U){this.Ru=L;this.BF=C;this.a0D=U;this.eD=new hZ(0,0);
this.JH=-1;this.ng=0;this.i0=0;this.Yj=new _;this.L1=[];this.Bt=null;this.aod=null;this.HV=null;this.uN=null;
this.jG=null;this.a9C=null}gv.prototype.StartPage=function(L,C,U,E,Y){var z=this.BF,r=z.ia(),p=1,T=(U-L)*(E-C);
if(Y!=null)T=Y;while(T*r*r/(p*p)>2*8192*8192)p++;z.scale(1/p,1/p);this.aod=[L,C,U,E];var p=z.ia();L=Math.round(L*p);
C=Math.round(C*p);U=Math.round(U*p);E=Math.round(E*p);var k=this.Ru,P=this.HV;if(P==null){z.Yt=-L}else{var b=P[2]-P[0]+30,Q=Math.round(U-L)+30;
if(this.eD.x+b+Q>8192){z.Yt=-L;this.eD.x=0;this.eD.y+=this.i0+120;this.i0=0}else{z.Yt+=b;this.eD.x+=b}}z.rv=this.eD.y+(this.a0D?E:-C);
this.i0=Math.max(this.i0,Math.round(E-C));this.HV=[L,C,U,E];k.N.push(k.rJ())};gv.prototype.Kv=function(){var L=this.Ru,C=L.N[L.N.length-1];
return C};gv.prototype.BJ=function(){var L=JSON.parse(JSON.stringify(gM.H0.default));L.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter";
L.strokeEnabled.v=!1;L.fillEnabled.v=!1;return L};gv.prototype.JE=function(){var L=this.Ru,C=L.wP();
C.I_("Path "+L.N.length);this.Ru.N.push(C);C.bP|=16;C.add.SoCo={classID:"null",Clr:{t:"Objc",v:c.W._b({h:0,P:0,O:0})}};
C.add.vmsk=new o.mR;C.add.vstk=this.BJ();return C};gv.prototype.B2=function(L){var C={c:L.crds,Z:L.cmds},U=c.a.n2(C,!1);
c.Y.IL(U,this.BF);return U};gv.a8p=function(L,C){for(var H=0;H<L.length;H++)if(L[H].ZZ!=null)L[H].ZZ=C};
gv.ahd=function(L){return Math.sqrt(Math.abs(L[0]*L[3]-L[1]*L[2]))};gv.SI=function(L){return c.W._b({h:L[0]*255,P:L[1]*255,O:L[2]*255})};
gv.NZ=function(L){return new c0(L[0],L[1],L[2],L[3],L[4],L[5])};gv.prototype.Stroke=function(L){if(this.JH!=-1&&this.JH!=this.ng)return;
if(L.pth.cmds.length<=1)return;var C=this.B2(L.pth);if(C.length<=2)return;this.wx(L);gv.a8p(C,-1);C[2].ZZ=1;
var U=gv.SI(L.COLR),E=this.Kv(),Y=this.BJ();Y.strokeEnabled.v=!0;Y.strokeStyleMiterLimit.v=L.mlimit;
Y.strokeStyleLineDashSet.v=ca.zs(L.dash,1/L.lwidth);Y.strokeStyleLineDashOffset.v.val=L.doff;Y.strokeStyleLineJoinType.v.strokeStyleLineJoinType=gM.H0.join[L.ljoin];
Y.strokeStyleLineCapType.v.strokeStyleLineCapType=gM.H0.h9[L.lcap];Y.strokeStyleLineWidth.v.val=Math.max(.4,L.lwidth*gv.ahd(L.ctm)*this.BF.ia());
Y.strokeStyleContent.v.Clr.v=U;var z=E!=null&&E.add.vmsk!=null&&!E.Jc(),r=z&&!E.add.vstk.strokeEnabled.v&&o.mR.abu(E.add.vmsk.n,C,!0),p=z&&!E.add.vstk.fillEnabled.v&&JSON.stringify(Y)==JSON.stringify(E.add.vstk);
if(p){E.add.vmsk.n=E.add.vmsk.n.concat(C.slice(2))}else if(r){E.add.vstk=Y;Y.fillEnabled.v=!0}else{E=this.JE();
E.add.vmsk.n=C;E.add.vstk=Y}};gv.prototype.Fill=function(L,C){if(this.JH!=-1&&this.JH!=this.ng)return;
if(L.ca==0)return;var U=L.pth.cmds;if(U.length==0)return;if(U.length==2&&JSON.stringify(U)=="[\"M\",\"L\"]")return;
var E=c.a.mE(L.cpth.crds),Y=c.a.mE(L.pth.crds);if(Y.eR(E).ue())return;var z=L.pth;if(this.uN==null&&UDOC.G.isBox(z,[Y.x,Y.y,Y.x+Y.d,Y.y+Y.v])&&Y.zg(E)){z=L.cpth}else this.wx(L);
var r=this.B2(z),p=c.a.kG(Y);c.a.J(p.c,this.BF,p.c);Y=c.a.mE(p.c);var T=gv.iH(L.colr,this.BF,Y),k=this.Kv(),P=k!=null&&k.opacity==Math.round(255*L.ca)&&k.add.vstk!=null&&!k.add.vstk.strokeEnabled.v&&k.add.SoCo&&T.type=="SoFi"&&JSON.stringify(k.add.SoCo.Clr.v)==JSON.stringify(T.G.v.Clr.v);
if(P){var b=!1;for(var H=0;H<r.length;H++){if(r[H].ZZ==0||r[H].ZZ==2)b=!0}if(b){var Q=c.a.mE(c.Y.GY(k.add.vmsk.n)),K=c.a.mE(c.Y.GY(r));
P=Q.eR(K).ue()}}if(P){var h=k.add.vmsk.n;for(var H=2;H<r.length;H++)h.push(r[H])}else{k=this.JE();delete k.add.SoCo;
k.add.vmsk.n=o.mR.Xu(r);gv.kw(L.colr,k,this.BF,Y);gv.ix(L,k)}};gv.kw=function(L,C,U,E){var Y=gv.iH(L,U,E),z=null,r=null;
C.add.vstk.fillEnabled.v=!0;if(Y.type=="SoFi"){z="SoCo";r=gM.TL}if(Y.type=="GrFl"){z="GdFl";r=gM.DV}if(Y.type=="patternFill"){z="PtFl";
r=gM.ex}if(z!=null){C.add[z]={classID:"null"};for(var H=0;H<r.length;H++){var p=r[H];C.add[z][p]=Y.G.v[p]}}};
gv.prototype.wx=function(L){var C=this.Ru,U=L.cpth,E=U.cmds.join(""),Y=U.crds,z=E+" "+Y.join(","),r=UDOC.G.isBox(U,this.aod);
if(r&&this.uN==null)return;if(z==this.uN)return;this.hX();if(!r){this.uN=z;C.N.push(C.rJ());var p=C.wP();
p.I_("Mask");p.add.lsct=fI.z7;p.B4="pass";p.bP=24;var T=p.add.vmsk=new o.mR;T.n=this.B2(L.cpth);if(UDOC.G.isBox(U)){this.jG=c.Y.JK(T.n);
this.jG.WW(3,3)}else this.jG=null;this.a9C=p}};gv.prototype.hX=function(){var L=this.Ru;if(this.uN!=null){var C=L.N.length-1,H=C,U=!1;
while(H>=0&&L.N[H].add.lsct!=fI.ya)H--;var E=this.jG;if(E){var Y=new _,z=C;while(z>H){Y=L.N[z].DZ(this.Ru,!1,!0);
z--}U=E.zg(Y)}if(U){this.L1.splice(H,1);L.N.splice(H,1)}else{L.N.push(this.a9C)}this.uN=null}};gv.iH=function(L,C,U){var E,Y;
if(L.length!=null){E="SoFi";var z=JSON.parse(gM.Lq[gM.order.indexOf("SoFi")]);Y={t:"Objc",v:z};Y.v.Clr.v=gv.SI(L)}else{var r=gv.a99(L,C,U);
E="GrFl";Y={t:"Objc",v:r}}return{type:E,G:Y}};gv.a99=function(L,C,U){var E=JSON.parse(gM.Lq[gM.order.indexOf("GrFl")]),Y=E.Grad.v;
Y.Intr.v=0;var z=gv.NZ(L.mat);z.concat(C);var r=new hZ(0,0),p=new hZ(U.d,0),T=L.crds;if(L.typ=="rad"){E.Type.v.GrdT="Rdl";
var k=.7;r.x=(1-k)*T[0]+k*T[3];r.y=(1-k)*T[1]+k*T[4];p.x=r.x;p.y=r.y;p.x+=Math.max(T[2],T[5])}else{E.Type.v.GrdT="Lnr";
r.x=T[0];r.y=T[1];p.x=T[2];p.y=T[3];r.x=p.x+.5*(r.x-p.x);r.y=p.y+.5*(r.y-p.y)}r=z.Om(r);p=z.Om(p);c.W.y9(r,p,U,E);
var P=L.grad;c.W.et(P,Y);return E};gv.prototype.PutText=function(L,C,U,E){var Y=C.charCodeAt(0),Q=null;
if(this.JH!=-1&&this.JH!=this.ng)return;if(C.length==0||C.length==1&&(Y==0||Y==8203))return;this.wx(L);
var z=this.Ru,r=L.font,p=gv.NZ(L.ctm);p.concat(this.BF);var T=gv.NZ(r.Tm);T.concat(p);var k=W.o.ia(T),P=new c0(1/k,0,0,-1/k,0,0);
P.concat(T);var b=r.Tfs*k;if(r.Th!=100||r.Trise!=0){console.log(r)}var K=z.N.length-1;while(K>=0&&z.N[K].add.TySh==null)K--;
if(P.O*P.O+P.Z9*P.Z9<.001&&E==null&&K>=0&&z.N[K].add.TySh&&z.N[K].opacity==Math.round(255*L.ca)){var h=z.N[K],x=this.L1[K],O=h.add.TySh.J,y=(O.Yt+x.HW-P.Yt)/b,v=Math.abs(y),i=C.indexOf(" ")==-1,D=O.R==P.R&&O.O==P.O&&O.Z9==P.Z9&&O.J2==P.J2,I=D&&Math.abs(x.km-P.rv)<1e-5&&v<.6,m=P.rv-x.km;
if(I){Q=h;x.HW=P.Yt-O.Yt;if(y>.2&&i&&[".",",","?",":","!"].indexOf(C)==-1)C=" "+C}else if(D&&Math.abs(P.Yt-O.Yt)<1e-5&&0<m&&m<b*1.7&&x.a8P==b){Q=h;
this.yR(x);x.km=P.rv;C="\n"+C}}if(Q==null){K=z.N.length;this.L1[K]={tb:[],HW:0,km:P.rv,_t:"",a8P:b};
Q=z.wP();z.N.push(Q);Q.add.lnsr="rend";Q.add.TySh=b5.Es(0,0);Q.add.TySh.J=P}var x=this.L1[K];x.HW+=U*b;
x._t+=C;var f=Q.add.TySh.Se,A=b5.xY(f);if(E){b5.B$(f,1);var d=[0,0,Math.ceil(E[0]*k),Math.ceil(E[1]*k)];
b5.If(f,d)}var g=A.length-1,X=g+C.length;b5.X$(f,g,C);if(this.Bt==null)this.Bt=b5.L3(f,g,g);var n=this.Bt;
n.LI.FontSize=Math.round(b);n.LI.Tracking=Math.round(r.Tc*100);n.LI.Underline=r.Tun==1;n.LI.FillColor={Type:1,Values:[1,L.colr[0],L.colr[1],L.colr[2]]};
if(r.Tal!=null)n.s6.Justification=r.Tal;if(x.tb.length!=0){n.LI.AutoLeading=!1;n.LI.Leading=x.km-x.tb[x.tb.length-1].y}var R=r.Tf;
R=R.replace(/#2B/g,"+");R=R.replace(/#2C/g,"-");R=R.split("+").pop();var l={"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(l[R])R=l[R];b5.yk(n,R);b5.Em(f,g,X-1,n);Q.n7();Q.opacity=Math.round(255*L.ca)};gv.prototype.yR=function(L){L.tb.push({aU:L.HW,am:L._t.slice(L.tb.length==0?0:1)+"\n",y:L.km,uR:L.a8P});
L.HW=0;L._t=""};gv.prototype.PutImage=function(L,C,U,E,Y,z,r){if(this.JH!=-1&&this.JH!=this.ng)return;
var p=this.Ru,T=L.font.Tmode;if(T==7&&p.N[p.N.length-1].add.TySh){return}this.wx(L);var k=gv.NZ(L.ctm);
k.concat(this.BF);var P=new c0(1/U,0,0,-1/E,0,1);P.concat(k);k=P;C=gv.Px(C,U,E);if(Y)Y=gv.Px(Y,U,E);
if(Y==null){if(C.length==U*E*4)C=new Uint8Array(iL.WS("PNG").aR([[C.buffer,0]],U,E))}else{C=this.iy(C,U,E,z,!1);
Y=this.iy(Y,U,E,r,!0);var b=c.F(U*E);c.wH(Y,b,0);c.Wn(b,C,3);C=new Uint8Array(iL.WS("PNG").aR([[C.buffer,0]],U,E))}var Q=p.$F(C,"Bitmap",0,0),K=Q.rect.clone();
K.x=K.y=0;var h=c.a.kG(K).c;c.a.J(h,k,h);Q.add.SoLd.Trnf=W.o.M4(h);Q.add.SoLd.nonAffineTransform=W.o.M4(h);
Q.RM(p,!1);gv.ix(L,Q);p.N.push(Q)};gv.ix=function(L,C){C.opacity=Math.round(255*L.ca);var U=gv._v[L.bmode];
if(U==null)console.log("Unknown blend mode",U);else C.B4=U};gv._v={"/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 "};
gv.hF=function(L){for(var C in gv._v)if(gv._v[C]==L)return C};gv.Px=function(L,C,U){var E=iL.lc(L.buffer);
if(E=="jpg"){try{L=new Uint8Array(iL.WS("JPG").aiW(L.buffer))}catch(gS){L=new Uint8Array(C*U*4)}}else if(L.length!=C*U*4){var Y=new Uint8Array(C*U*4),z=new Uint8Array(Math.ceil(C*U/8));
UTIF.decode._decodeG4(L,0,L.length,z,0,C,1);for(var H=0;H<C*U;H++){var r=H*4,p=(z[H>>3]>>7-(H&7)&1)*255;
Y[r]=p;Y[r+1]=p;Y[r+2]=p;Y[r+3]=255}L=Y}return L};gv.prototype.iy=function(L,C,U,E,Y){if(L.length!=C*U*4){var z=iL.lc(L.buffer),r=iL.WS(z);
if(r==null||z=="tga")r=iL.WS("jpg");L=new Uint8Array(r.ER(L,E,Y)[0].data)}return L};gv.prototype.ShowPage=function(){var L=this.Ru;
this.ng++;var C=this.HV;this.hX();var U=L.wP();L.N.push(U);var E=new _(Math.round(this.eD.x),Math.round(this.eD.y),Math.round(C[2]-C[0]),Math.round(C[3]-C[1]));
this.Yj=this.Yj.EU(E);U.eJ(E);U.add.artb.artboardBackgroundType.v=3;U.I_("Page "+this.ng);U.add.lsct=fI.z7;
U.B4="pass";U.bP=24};gv.prototype.Print=function(L){console.log("Print:",L)};gv.prototype.Done=function(){var L=this.Ru;
if(this.ng==1)L.N[L.N.length-1].add.lsct=fI.Qr;L.Re(this.ng);for(var H=0;H<L.N.length;H++){var C=L.N[H],U=C.add.vmsk,E=C.add.TySh,Y=this.L1[H];
C.Gg();C.cr(L);if(E&&Y.tb.length!=0){this.yR(Y);var z=E.Se,r=Y.tb.length,p=Y.tb[0],T=0,P=0;for(var k=0;
k<r;k++)T=Math.max(T,Y.tb[k].aU);b5.B$(z,1);E.J.rv-=p.uR*.7;b5.If(z,[0,0,Math.ceil(T*1.1),Math.ceil(Y.tb[r-1].y-p.y+p.uR*2)])}if(E){var z=E.Se;
b5.ahP(z);var b=b5.xY(z).split("\n");for(var k=0;k<b.length-1;k++){var Q=b[k],K=0;for(var h=0;h<Q.length;
h++){var x=Q.charCodeAt(h);if(1473<=x&&x<=1524)K++}if(K>Q.length/2){b[k]=Q.split("").reverse().join("");
var O=z.EngineDict.ParagraphRun.RunArray[k].ParagraphSheet.Properties;O._Direction=1;O.Justification=b5.Ix(O)}}b5.tu(z,b.join("\n"))}}L.pu=!0;
L.d=this.Yj.d;L.v=this.Yj.v;L.buffer=c.F(this.Yj.X()*4)};var fP={};fP.B0=function(L,C,U,E){var Y=!1,z=[L.root],r=L.root.children;
if(L.add.artd){Y=!0;for(var H=0;H<r.length;H++)if(r[H].$.add.artb==null)Y=!1;if(Y)z=r}var p=new _(0,0,L.d,L.v),T=C[0];
T=T.replace(/,/g," ").replace(/\-/g," - ").replace(/  +/g," ").trim();T=T.split(" ");var k=[];for(var H=0;
H<T.length;H++){var P=T[H];if(P=="-"){var b=k.pop(),Q=parseInt(T[H+1]);while(b<Q){k.push(b);b++}}else k.push(parseInt(P))}T=k;
for(var H=0;H<T.length;H++)if(isNaN(T[H])||T[H]<1||T[H]>z.length){T.splice(H,1);H--}var K=72/L._Q;for(var H=0;
H<z.length;H++){if(T.length!=0&&T.indexOf(H+1)==-1)continue;var h=z[H],x=Y?h.$.kg():p,O=Math.round(x.d*K),y=Math.round(x.v*K);
U.StartPage(0,0,O,y);var v=UDOC.getState([[0,0,O,y]]),i=new c0;i.translate(-x.x,-x.y-x.v);i.scale(K,-K);
if(C[2]){var D=L.E0();if(!p.cg(x)){D=c.F(x.X()*4);c.La(L.E0(),p,D,x)}if(C[1]!=100){var I=iL.WS("JPG").aR([[D.buffer]],x.d,x.v,[C[1]]);
D=new Uint8Array(I)}var m=new c0;m.translate(x.x,x.y);fP.oN(v,U,D,x,m,i)}else fP.Jk(L,h,v,U,i,C,E);U.ShowPage()}U.Done()};
fP.ZV=function(L){L=c.W.Lt(L);return[L.h/255,L.P/255,L.O/255]};fP.Jk=function(L,C,U,E,Y,z,r){var p=C.$,T=p.add.lsct,k=p.add.lmfx,P=p.add.vmsk,b=p.add.vstk,Q=p.add.TySh,O,y;
if(!p.rK())return;var K=p.opacity/255,h=p.add.iOpa?p.add.iOpa/255:1;U.bmode=gv.hF(p.B4);U.ca=U.CA=K*h;
var x=k;if(x)x=x.solidFillMulti.v[0];if(x)x=x.v;if(x&&!x.enab.v)x=null;if(p.dX()&&!p.Jc()){O=c.F(p.rect.X());
c.wH(p.buffer,O,3);y=ca.eN(k,null,O,p.rect,L,p.rect).type}if(y)fP.z0(p,O,y,U,E,Y,z,!0);if(p.Jc()){for(var H=0;
H<C.children.length;H++)fP.Jk(L,C.children[H],U,E,Y,z,r)}else if(P){var v=P.n,i=c.Y.JK(v),D=c.a.$x(v),I=!1,m=!1,f=!1;
c.a.J(D.c,Y,D.c);U.pth={cmds:D.Z,crds:D.c};if(b.fillEnabled.v){var A=ca.R4(k,p.add),d=A[0],g=A[1];if(d){U.colr=fP.ZV(d.Clr.v)}else if(g){var X=g,n=[],R,l=X.Type.v.GrdT=="Rdl"?"rad":"lin",w=c.W.LA(X,i),V=Y.Om(w[0]),F=Y.Om(w[1]);
if(l=="rad")R=[V.x,V.y,0,V.x,V.y,hZ.sl(V,F)];else{V.U6(F.x+(V.x-F.x)*2,F.y+(V.y-F.y)*2);R=[V.x,V.y,F.x,F.y]}var Z=X.Grad.v.Clrs.v;
for(var H=0;H<Z.length;H++){var M=Z[H].v;n.push([M.Lctn.v/4096,fP.ZV(M.Clr.v)])}U.colr={typ:l,mat:[1,0,0,1,0,0],grad:n,crds:R}}I=!0}var a=ca.HS(k);
if(!b.strokeEnabled.v&&a)b=a;if(b.strokeEnabled.v){var e=b.strokeStyleContent.v,N=b.strokeStyleLineDashSet.v,J=gM.H0.jr.indexOf(b.strokeStyleLineAlignment.v.strokeStyleLineAlignment);
if(e.Clr==null)return;var s=c.W.Lt(e.Clr.v);U.COLR=[s.h/255,s.P/255,s.O/255];U.lwidth=b.strokeStyleLineWidth.v.val*(J==2?2:1)*Y.ia();
U.mlimit=b.strokeStyleMiterLimit.v;U.doff=b.strokeStyleLineDashOffset.v.val;U.ljoin=gM.H0.join.indexOf(b.strokeStyleLineJoinType.v.strokeStyleLineJoinType);
U.lcap=gM.H0.h9.indexOf(b.strokeStyleLineCapType.v.strokeStyleLineCapType);U.dash=[];for(var H=0;H<N.length;
H++)U.dash.push(N[H].v.val*U.lwidth);if(U.dash.length==1&&U.dash[0]==0)U.dash=[];m=!0;if(J==2)f=!0}if(I&&!f)E.Fill(U);
if(m)E.Stroke(U);if(I&&f)E.Fill(U)}else if(Q&&z[4]){var f5=Q.Se,dx=new hX(f5,r),D=bk.nn(dx,Q),fq=c.a.xK(D);
for(var s in fq){var i9=parseInt(s.slice(1),16);U.colr=x?fP.ZV(x.Clr.v):[(i9>>>16&255)/255,(i9>>>8&255)/255,(i9&255)/255];
var e8=fq[s];c.a.J(e8.c,Y,e8.c);e8=c.a.ai3(e8);U.pth={cmds:e8.Z,crds:e8.c};E.Fill(U)}}else if(Q&&z[3]==!1){var f5=Q.Se,S=Q.J.clone(),fs=new c0(1,0,0,-1,0,0);
fs.concat(S);fs.concat(Y);var bz=b5.xY(f5),dx=new hX(f5,r);for(var H=0;H<dx.s6.length;H++){var g6=dx.s6[H];
if(g6.HR.length==1&&g6.HR[0].EM)continue;for(var al=0;al<g6.D4.length;al++){var bj=g6.D4[al],bE=g6.v3.y+bj.v3.y,eN=g6.HR[bj.start].start,dk=g6.HR[bj.end-1].end,hj=b5.aiM(f5,eN,dk);
for(var iN=0;iN<hj.length;iN++){var dK=dx.$U(eN),ch=hj[iN],hP=b5.L3(f5,eN,eN),d2=hP.Oe[hP.LI.Font].Name;
U.font.Tf=d2;var s=b5.Lt(hP.LI);U.colr=x?fP.ZV(x.Clr.v):[s.h/255,s.P/255,s.O/255];U.font.Tfs=Math.round(hP.LI.FontSize);
var hr=bz.slice(eN,eN+ch);if(hP.LI.FontCaps==2)hr=hr.toUpperCase();var fv=new c0;fv.translate(dK._.x,-bE);
fv.concat(fs);U.ctm=[fv.R,fv.O,fv.Z9,fv.J2,fv.Yt,fv.rv];E.PutText(U,hr,0);U.ctm=[1,0,0,1,0,0];eN+=ch}}}}else if(!p.rect.ue()){var f3,dp,go=!1,d6=new c0;
if(p.add.SoLd){var iB=p.add.SoLd,hS=iB.Idnt.v,eF=L.X7(hS,iB.Crop?iB.Crop.v:null),d8="";if(eF==null)return;
var bQ=eF.Ne,iP=iL.lc(eF.raw.buffer);if(z[5].indexOf(iP)!=-1){f3=eF.raw;go=!0}else f3=bQ[0];dp=bQ[1];
d6=c.I.Qh(iB)}else{f3=p.buffer;dp=p.rect;d6.translate(dp.x,dp.y)}if(x&&!go)f3=ca.zT(f3,x,dp);fP.oN(U,E,f3,dp,d6,Y);
if(x&&go){var R=[0,0,dp.d,0,dp.d,dp.v,0,dp.v];c.a.J(R,d6,R);c.a.J(R,Y,R);var a6=JSON.parse(JSON.stringify(U));
a6.ca=x.Opct.v.val/100;a6.pth={cmds:["M","L","L","L","Z"],crds:R};a6.colr=fP.ZV(x.Clr.v);E.Fill(a6)}}if(y)fP.z0(p,O,y,U,E,Y,z,!1)};
fP.z0=function(L,C,U,E,Y,z,r,p){var T=L.rect.clone(),k=C;if(L.add.TySh&&!r[3]&&!r[4])return;console.log(r);
var P=E.ca,b=E.bmode;for(var H=gM.order.length-1;H>=0;H--){var Q=gM.order[H];if(Q=="GrFl"||Q=="SoFi")continue;
if(L.add.vmsk&&Q=="FrFX")continue;var K=U[Q],h=H>7||Q=="FrFX";if(h!=p)continue;for(var x=0;x<K.length;
x++){var O=K[x];console.log(h,Q,O);var y=O.T2.clone();y.offset(L.rect.x,L.rect.y);if(!h){if(!T.zg(y)){var v=T.EU(y),i=c.F(v.X());
c.zM(k,T,i,v);k=i;T=v}c.Ow(k,T,O.eB,y)}if(h&&Q=="FrFX"&&O.$N)c.Ow(O.$N,y,O.eB,y);var D=new c0;D.translate(y.x,y.y);
E.ca=O.Ks;E.bmode=gv.hF(O.g_);fP.oN(E,Y,O.eB,y,D,z)}}E.ca=P;E.bmode=b};fP.oN=function(L,C,U,E,Y,z){var r=new c0;
r.scale(E.d,-E.v);r.translate(0,E.v);r.concat(Y);r.concat(z);L.ctm=[r.R,r.O,r.Z9,r.J2,r.Yt,r.rv];C.PutImage(L,U,E.d,E.v);
L.ctm=[1,0,0,1,0,0]};var a1={};a1.Vu=function(L){var C=new Uint8Array(L);return a1.g1(C,0)};a1.g1=function(L,C){var U=$.i,E=$.ZA,Y={Ea:E(L,C,4),g:C+8,size:U(L,C+4)},z=Y.Ea=="FORM"||Y.Ea=="LIST"||Y.Ea=="CAT ";
if(z)Y.g0=E(L,C+8,4);if(Y.size<0||Y.g+Y.size>L.length)throw"e";if(z){Y.sub=[];C+=12;var r=Y.g+Y.size;
while(C<r){var p=a1.g1(L,C);Y.sub.push(p);C+=8+p.size+(p.size&1)}}return Y};var c3={};c3.Vu=function(L,C){var U=new Uint8Array(L);
return c3.g1(U,0,C)};c3.g1=function(L,C,U){var E=$.Nl,Y=$.ZA,z={Ea:Y(L,C,4),g:C+8,size:E(L,C+4)};if(U&&U[z.size]!=null)z.size=U[z.size];
if(z.Ea=="RIFF"||z.Ea=="LIST"){z.g0=Y(L,C+8,4)}if(z.size<0||z.g+z.size>L.length)throw"e";if(z.Ea=="RIFF"||z.Ea=="LIST"&&(z.g0!="cmpr"&&z.g0!="stlt")){z.sub=[];
C+=12;var r=z.g+z.size;while(C<r){var p=c3.g1(L,C,U);z.sub.push(p);C+=8+p.size+(p.size&1)}}return z};
var a1={};a1.Vu=function(L){var C=new Uint8Array(L);return a1.g1(C,0)};a1.g1=function(L,C){var U=$.i,E=$.ZA,Y={Ea:E(L,C,4),g:C+8,size:U(L,C+4)},z=Y.Ea=="FORM"||Y.Ea=="LIST"||Y.Ea=="CAT ";
if(z)Y.g0=E(L,C+8,4);if(Y.size<0||Y.g+Y.size>L.length)throw"e";if(z){Y.sub=[];C+=12;var r=Y.g+Y.size;
while(C<r){var p=a1.g1(L,C);Y.sub.push(p);C+=8+p.size+(p.size&1)}}return Y};function e7(){}e7.Vu=function(L,C){var U=new Uint8Array(L);
C.pu=!0;var E=$.ZA(U,0,2);if(E=="WL"){alert("Unsupported CDR version")}else{var Y=e7.Xa,z=c3.Vu(U.buffer),r={data:U,g:0,SX:e7.afA(U[11])},Q=300;
r.MX=r.SX<600?16:32;e7.sf(r,z.sub,C,0);var p=Y(z,"cmpr").sub,T=p[0],k=p.slice(1),P=Y(T,"mcfg").G,b=P.a2b;
Q/=e5.R8(new _(0,0,Math.round(b.x*Q),Math.round(b.y*Q)),8192*8192);var K=Math.round(b.x*Q),h=Math.round(b.y*Q);
C.d=K;C.v=h;C.buffer=c.F(C.d*C.v*4);var x=Y(T,"filt").sub,O=Y(T,"otlt").sub;T.Ib={};for(var H=0;H<x.length;
H++)T.Ib[x[H].sub[0].G.id]=x[H].sub[0].G;T.nk={};for(var H=0;H<O.length;H++)T.nk[O[H].G.id]=O[H].G;var y=new c0(Q,0,0,-Q,b.x*Q/2,b.y*Q/2),v=k[1];
e7.og(v,T,C,y);C.Re(1);C.N[C.N.length-1].eJ(new _(0,0,K,h))}};e7.Xa=function(L,C){var U=null;for(var H=0;
H<L.sub.length;H++){var E=L.sub[H];if(E.Ea==C||E.g0==C)U=E}return U};e7.og=function(L,C,U,E){var Y=e7.Xa,z=L.g0?L.g0:L.Ea,r=Y(L,"lgob"),p=Y(L,"txsm"),T,k;
if(r){T=Y(r,"trfl");k=Y(r,"loda")}var P=T?T.sub[0].W1.clone():new c0;P.concat(E);var b=U.wP();if(z=="page"||z=="layr"||z=="grp "){b.I_((z=="page"?"Page":"Group")+" "+U.N.length);
b.add.lsct=fI.Qr;b.B4="pass";b.bP=24;var Q=[];if(z=="page")Q=Y(L,"gobj").sub;if(z=="layr")Q=L.sub.slice(2);
if(z=="grp ")Q=L.sub.slice(4);if(Q.length==0)return;U.N.push(U.rJ());for(var H=Q.length-1;H>=0;H--)e7.og(Q[H],C,U,E)}else if(z=="obj "&&k.G&&k.G.path){b.I_("Object "+U.N.length);
var K=C.Ib[k.G.aao],h=C.nk[k.G.aeA],x=b.getName(),O=K&&K.type!=0,y=O&&K.G!=null?K.G:[0,0,0];b.bP|=16;
b.add.vstk=JSON.parse(JSON.stringify(gM.H0.default));var v=b.add.vstk;v.strokeEnabled.v=!1;b.add.vmsk=new o.mR;
if(h&&h.aeg!=1){v.strokeEnabled.v=!0;v.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter";
v.strokeStyleLineWidth.v.val=h.lineWidth*E.ia();var i=h.color;v.strokeStyleContent.v.Clr.v=c.W._b({h:i[0]*255,P:i[1]*255,O:i[2]*255})}var D=k.G.path;
b.add.vmsk.n=c.a.n2(D,!1);c.Y.IL(b.add.vmsk.n,P);gv.kw(y,b,P,c.Y.JK(b.add.vmsk.n));v.fillEnabled.v=O;
b.Gg();b.cr(U)}else if(z=="obj "&&p){var I=k.G.a52,m=k.G.a9a,d="";b.add.TySh=b5.Es(0,0);var f=P.ia();
b.add.TySh.J.translate(P.Yt,P.rv);var A=b.add.TySh.Se,g=p.G.aeP;for(var H=0;H<g.length;H++){var X=g[H],n=d.length;
d+=X.text+"\n";b5.X$(A,n,X.text+"\n");var R=e7.a7I(X.a5O,C),l=b5.L3(A,n,d.length);if(R.align==3)l.s6.Justification=1;
else l.s6.Justification=0;var w=R.fill.G;l.LI.FillColor={Type:1,Values:[1,w[0],w[1],w[2]]};l.LI.FontSize=Math.round(R.a2P.fontSize*P.ia());
b5.Em(A,n,d.length-1,l)}if(m){b5.B$(A,0)}else{b5.B$(A,1);b5.If(A,[0,0,Math.round(I.x*P.R),Math.round(-I.y*P.J2)])}b.I_(d.slice(0,10))}else{b=null}if(b)U.N.push(b)};
e7.a7I=function(L,C){var U=e7.Xa(C,"stlt").G,E=JSON.parse(JSON.stringify(U.c5[L]));if(E.KH!=0){var Y=U.c5[E.KH];
for(var z in Y)if(E[z]==null||E[z]==0)E[z]=Y[z];delete E.KH}E.align=U.a1f[E.acJ];E.fill=C.Ib[U.afw[E.alb]];
E.a7z=C.nk[U.a9v[E.adY]];E.a2P=U.a9W[E.amn];return E};e7.a4z=function(H){var u=H.data[H.g];H.g+=1;return u};
e7.cX=function(H){var u=$.PJ(H.data,H.g);H.g+=2;return u};e7.nj=function(H){var u=$.Nl(H.data,H.g);H.g+=4;
return u};e7.abN=function(H){var u=$.Nl(H.data,H.g);H.g+=8;return u};e7.Jf=function(H){var u=$.kI(H.data,H.g);
H.g+=2;return u};e7.ts=function(H){var u=$.c3(H.data,H.g);H.g+=4;return u};e7.HD=function(H){var u=$.a0N(H.data,H.g);
H.g+=8;return u};e7.NA=function(H){if(H.g>=H.data.length)throw"e";var L=0;while(H.data[H.g+L]!=0)L++;
var C=$.ZA(H.data,H.g,L);H.g+=L+1;return C};e7.afQ=function(L){if(L.SX<600)return Math.PI*e7.Jf(L)/1800;
return Math.PI*e7.ts(L)/18e7};e7.ae4=function(L){if(L.SX<1500)return e7.Vx(L);else return e7.HD(L)/254e3};
e7.Vx=function(L){if(L.SX<600)return e7.Jf(L)/1e3;else return e7.ts(L)/254e3};e7.a3r=function(L){if(L.SX<600)return CRDParser.cX(L);
else return e7.nj(L)};e7.a4F=function(L){if(L.SX<600)return CRDParser.Jf(L);else return e7.ts(L)};e7.sf=function(L,C,U,E){var Y=e7,z=Y.a4z,r=Y.cX,p=Y.nj,T=Y.abN,k=Y.Jf,P=Y.ts,b=Y.HD,Q=Y.Vx,K=Y.ae4,h=Y.afQ,x=Y.a3r,O=Y.a4F;
for(var y=0;y<C.length;y++){var v=L.SX,i=C[y];L.g=i.g+(i.Ea=="LIST"?4:0);if(i.Ea=="vrsn"){var D=r(L);
L.SX=D;console.log("Version",D);L.MX=D<600?16:32}else if(i.Ea=="DISP"){}else if(i.Ea=="LIST"&&i.g0=="cmpr"){var I=p(L),m=p(L),f=p(L),A=p(L),d=new Uint8Array(L.data.buffer,L.g+8+2,I-6-8),g=pako.inflateRaw(d),l=0;
L.g+=I;d=new Uint8Array(L.data.buffer,L.g+8+2);var X=pako.inflateRaw(d),n=[];for(var R=0;R<X.length;
R+=4)n.push($.Nl(X,R));i.sub=[];while(l<g.length){var w=c3.g1(g,l,n);l=w.g+w.size;i.sub.push(w)}var V={data:g,g:0,SX:v,MX:L.MX};
e7.sf(V,i.sub,U,E+1)}else if(i.Ea=="LIST"&&i.g0=="stlt"){var F=L.g,bz=32;i.G={};var Z=p(L);if(Z==0)return;
i.G.afw=e7.HM(L,v>=1300);i.G.a9v=e7.HM(L);i.G.a9W={};var M=p(L);for(var H=0;H<M;H++){var a=p(L);L.g+=v<1e3?12:20;
var e=r(L),N=r(L);L.g+=8;var J=Q(L);L.g+=v<1e3?12:20;i.G.a9W[a]={a4q:e,a6T:N,fontSize:J}}i.G.a1f=e7.HM(L);
var s=p(L);L.g+=52*s;var f5=p(L);L.g+=152*f5;var dx=p(L);L.g+=784*dx;var fq=p(L);for(var H=0;H<fq;H++){L.g+=40;
if(v>1300)L.g+=4;if(v>=1300){if(p(L))L.g+=68;else L.g+=12}else{L.g+=20;if(v>=1e3)L.g+=8;if(p(L))L.g+=8;
L.g+=8}}var i9=p(L);i.G.a6L={};for(var H=0;H<i9;H++){var e8=p(L),S={};L.g+=12;S.right=Q(L);S.ahH=Q(L);
S.left=Q(L);i.G.a6L[e8]=S}var fs=p(L);if(v>=1300)bz+=4;L.g+=bz*fs;var g6=p(L);L.g+=28*g6;if(v>800){var al=p(L);
L.g+=12*al}i.G.c5={};for(var H=0;H<Z;H++){var bj=p(L),bE=p(L),eN={};eN.KH=p(L);L.g+=8;var dk=p(L);if(v>=1200)dk*=2;
L.g+=dk;eN.alb=p(L);eN.adY=p(L);if(bj>1){eN.amn=p(L);eN.acJ=p(L);eN.a6p=p(L);eN.aed=p(L);if(v>800)eN.a5z=p(L)}if(bj>2){eN.a3H=p(L);
eN.a8h=p(L);eN.aae=p(L);eN.agB=p(L);eN.a4a=p(L)}i.G.c5[bE]=eN}}else if(i.Ea=="LIST")e7.sf(L,i.sub,U,E+1);
else if(i.Ea=="txsm"){i.G={};if(v<600)throw"e";if(v<700)throw"e";if(v>=1600)throw"e";if(v>=1500)L.g+=37;
else L.g+=36;if(p(L)){if(v<800)L.g+=32}if(v<800)L.g+=4;i.G.ajj=p(L);i.G.aeP=[];L.g+=48;if(v>=800){if(p(L)){L.g+=32;
if(v>=1300)L.g+=8}}if(v>=1500)L.g+=12;var bj=p(L),hj=1,iN=!1;if(!bj){if(v>=800)L.g+=4;if(v>800)L.g+=2;
if(v>=1400)L.g+=2;L.g+=24;if(v<800)L.g+=8;hj=p(L)}for(var R=0;R<hj;R++){var dK=p(L),H=0;if(v>=1300&&bj)L.g++;
L.g++;var Z=p(L),ch=[];for(H=0;H<Z;H++){var hP=z(L),hr=0;z(L);var d2=z(L);if(v>=800)hr=z(L);var eN={};
if(d2&1){eN.a4q=r(L);var fv=r(L);if(fv)eN.ada=fv}if(d2&2)L.g+=4;if(d2&4)eN.anD=Q(L);if(d2&8)L.g+=4;if(d2&16)L.g+=4;
if(d2&32)L.g+=4;if(d2&64){eN.alb=p(L);if(v>=1500)L.g+=48}if(d2&128){eN.adY=p(L)}if(hr&8){if(v>=1300){var f3=p(L);
if(L.g+f3*2>=L.data.length){iN=!0;break}L.g+=f3*2}else L.g+=4}if(hr&32){var dp=z(L);if(dp)L.g+=52}if(hP==2)if(v>=1300)L.g+=48;
ch.push(eN)}if(iN){break}var go=p(L);if(L.g+go*4>L.data.length)break;var d6=[];for(H=0;H<go;H++){var iB=0;
if(v>=1200)iB=T(L)&4294967295;else iB=p(L);d6[H]=iB>>16|iB&1}var hS=go;if(v>=1200)hS=p(L);var eF=e7.NA(L);
i.G.aeP.push({a5O:dK,text:eF,c5:ch})}}else if(i.Ea=="font"){var bQ=r(L),iP=r(L);L.g+=14;var d8=e7.NA(L);
i.G={id:bQ,a0i:iP,name:d8}}else if(["IKEY","ICMT","pfrd","bcfg"].indexOf(i.Ea)!=-1){}else if(i.Ea=="flgs")i.G=p(L);
else if(i.Ea=="bbox"){var a6=Q(L),am=Q(L),fj=Q(L),dX=Q(L);i.G=new _(a6,am,fj-a6,dX-am)}else if(i.Ea=="fild"){var gc=p(L),dz=0,cQ;
if(v>=1300){L.g+=4;dz=r(L);L.g+=2}var gE=r(L);if(gE==0){}else if(gE==1){L.g+=v>=1300?13:2;cQ=e7.FJ(L)}else if(gE==2){L.g+=v>=1300?8:2;
var fi=z(L),dB=0;if(v>=1300){L.g+=17;dB=k(L)}else if(v>=600){L.g+=19;dB=P(L)}else{L.g+=11;dB=k(L)}var bp=h(L),ai=.5+O(L),hu=.5+O(L)-.5;
if(v>=600)L.g+=2;var bP=x(L)&255,hw=z(L)/100;L.g++;var gQ=x(L)&65535;if(v>=1300)L.g+=3;var gp=[];for(var H=0;
H<gQ;H++){var aS=e7.FJ(L);if(v>=1300){if(dz==158||v>=1600&&dz==150)L.g+=26;else L.g+=5}var iX=x(L)/100;
if(v>=1300)L.g+=3;gp.push([iX,aS])}cQ={typ:fi==1?"lin":"rad",crds:[ai-Math.cos(bp)/2,hu-Math.sin(bp)/2,ai,hu],grad:gp,mat:[1,0,0,1,0,0]}}else console.log("Unknown fill type",gE);
i.G={id:gc,type:gE,G:cQ}}else if(i.Ea=="outl"){var dW=p(L);if(v>=1300){var i7=0,i5=0;while(i7!=1){L.g+=i5;
i7=p(L);i5=p(L)}}var fM=r(L),ei=r(L),bu=r(L);if(v<1300&&v>=600)L.g+=2;var hG=Q(L),fb=r(L)/100;if(v>=600)L.g+=2;
var iJ=h(L);if(v>=1300)L.g+=46;else if(v>=600)L.g+=52;var cQ=e7.FJ(L,dW==270963208||dW==276198e3,dW);
i.G={id:dW,aeg:fM,a0W:ei,a4J:bu,lineWidth:hG,color:cQ}}else if(i.Ea=="mcfg"){if(1300<=v)L.g+=12;else if(900<=v)L.g+=4;
else if(600<=v&&v<700)L.g+=28;var h0=0,hM=0;if(v<400)throw"e";else{h0=Q(L);hM=Q(L)}i.G={a2b:new hZ(h0,hM)}}else if(i.Ea=="loda"){var F=L.g,e0=x(L),fC=x(L),cw=x(L),aD=x(L),d7=x(L),az=[],gb=[];
L.g=F+cw;for(var H=0;H<fC;H++)az[H]=x(L);L.g=F+aD;for(var H=fC-1;H>=0;H--)gb[H]=x(L);i.G={};for(var H=0;
H<fC;H++){L.g=F+az[H];var hl=gb[H];if(hl==10)i.G.aeA=p(L);else if(hl==20)i.G.aao=p(L);else if(hl==200)i.G.a9f=x(L);
else if(hl==30){if(v<400)d7--;if(d7==1){var a6=K(L),am=K(L),aZ=0,dq=0,fo=0,gF=0;if(v<1500){gF=K(L);fo=v<900?gF:K(L);
dq=v<900?gF:K(L);aZ=v<900?gF:K(L)}else throw"e";i.G.path=c.a.$x(c.Y.tD.Rect(0,0,a6,am,aZ))}else if(d7==2){var hk=Q(L),iU=Q(L),iD=h(L),fJ=h(L),gh=Math.abs(hk),aM=Math.abs(iU);
i.G.path=c.a.$x(c.Y.tD.vm(0,0,gh,-aM))}else if(d7==3){i.G.path=e7.akS(L)}else if(d7==4){i.G.a9a=e7.a5F(L)}else if(d7==6){i.G.a52=e7.abL(L)}else if(d7==37){i.G.path=e7.Dv(L)}else console.log(d7)}}}else if(i.Ea=="trfd"){var F=L.g,e0=x(L),fC=x(L),cw=x(L);
L.g=F+cw;var az=[];for(var H=0;H<fC;H++)az[H]=x(L);for(var H=0;H<fC;H++){L.g=F+az[H];if(v>=1300)L.g+=8;
var hE=r(L);if(hE==8){var ep,h4,a6,aE,bK,am;if(v>=600)L.g+=6;if(v>=500){ep=b(L);h4=b(L);a6=b(L)/(v<600?1e3:254e3);
aE=b(L);bK=b(L);am=b(L)/(v<600?1e3:254e3)}else throw"e";i.W1=new c0(ep,aE,h4,bK,a6,am)}else console.log(hE)}}else if(!1){console.log(i);
var aF=Math.min(i.size,32);console.log($.l9(data,i.g,aF));console.log($.ali(data,i.g,aF))}}};e7.HM=function(L,C){var U=e7.nj,E={},Y=U(L);
for(var H=0;H<Y;H++){var z=U(L);L.g+=4;var r=U(L);E[z]=r;if(C)L.g+=48}return E};e7.a5F=function(L){var C=e7,U=C.Vx,E=U(L),Y=U(L);
return new hZ(E,Y)};e7.abL=function(L){var C=e7,U=C.Vx;L.g+=4;var E=U(L),Y=U(L);return new hZ(E,Y)};
e7.Dv=function(L){var C=e7,U=C.nj,E=C.cX,Y=C.Vx;L.g+=4;var z=E(L)+E(L);L.g+=16;var r=e7.w1(L,z);return r};
e7.akS=function(L){var C=e7.cX(L);L.g+=2;return e7.w1(L,C)};e7.w1=function(L,C){var U=e7,E=U.Vx,Y=L.SX<600?2:4,z=L.g,r={c:[],Z:[]},p=0,T=0,k=0;
for(var H=0;H<C;H++){var p=E(L),T=E(L),P=L.data[z+C*Y*2+H];if(!(P&64)&&!(P&128)){r.c.push(p,T);r.Z.push("M");
k+=2}else if(P&64&&!(P&128)){r.c.push(p,T);r.Z.push("L");k+=2}else if(!(P&64)&&P&128){r.c.push(p,T);
r.Z.push("C");k+=6}else if(P&64&&P&128){r.c.push(p,T)}}if(k!=r.c.length)throw"e";return r};e7.a1F=function(L,C){var U=$.Nl;
C+=8;var E=U(L,C);C+=4;var Y=U(L,C);C+=4;C+=4*7;var z=C,r=c.F(E*Y*4);C+=1024;for(var p=0;p<Y;p++)for(var T=0;
T<E;T++){var H=p*E+T,k=(Y-p-1)*E+T,P=L[C+H]<<2,b=k<<2;r[b+0]=L[z+P+2];r[b+1]=L[z+P+1];r[b+2]=L[z+P+0];
r[b+3]=255}return{eB:r,rect:new _(0,0,E,Y)}};e7.afA=function(L){if(L==32)return 300;else if(L<49)return 0;
else if(L<58)return 100*(L-48);else if(L<65)return 0;return 100*(L-55)};e7.FJ=function(L,C,U){var E=e7.cX,Y=e7.nj,z=L.SX,r=0,p=0;
if(z>=500){r=E(L);if(r==1&&z>=1300)r=25;if(r==25||r==30){var T=0;if(r==30){r=25;T=30}else{T=E(L);L.g+=4}var k=E(L),P=E(L)}else if(r==14)throw"e";
else{L.g+=6;p=Y(L)}}else throw"e";var b=[];if(r==2||r==9||r==17){var Q=[p>>>0&255,p>>>8&255,p>>>16&255,p>>>24&255];
if(r==2)for(var H=0;H<4;H++)Q[H]=Math.round(255*Q[H]/100);for(var H=0;H<4;H++)Q[H]/=255;b=UDOC.C.cmykToRgb(Q)}else if(r==1||r==5){b=[p>>>0&255,p>>>8&255,p>>>16&255];
for(var H=0;H<3;H++)b[H]=b[H]/255}else console.log("Unknown color model "+r,p,p.toString(16));return b};
var bI=function(){var L,C,U=new ArrayBuffer(4),E=new Uint8Array(U),Y=new Uint32Array(U),z=new Float32Array(U);
function r(Q,K){for(var h=0;h<Q.length;h++)if(Q[h][0]==K)return Q[h]}function p(){var Q=0,K=0,h=0;do{h=L[C++];
Q|=(h&127)<<K;K+=7}while(h&128&&K<35);return Q>>>0}function T(Q,K,h,x,O){L=Q;C=K;var y=x[0]=="mesg",v=x[2],i={},D=1,I=y?1e9:v.length;
while(D<=I){var m=D;if(y){m=p();if(m==0)break}var f=r(v,m),A=f[2],d=f[1]==1,g=d?p():1,X=new Array(g);
if(A==3){if(!d)throw"e";X=L.slice(C,C+g);C+=g}else for(var H=0;H<g;H++){var n;if((A&1)==1){if(A==1)n=L[C++]==1;
else if(A==3)n=L[C++];else if(A==5){var R=p();n=R&1?~(R>>>1):R>>>1}else if(A==7)n=p();else if(A==9){if(L[C]==0){n=0;
C++}else{E[0]=L[C];E[1]=L[C+1];E[2]=L[C+2];E[3]=L[C+3];var l=Y[0];Y[0]=l<<23|l>>>9;n=z[0];C+=4}}else if(A==11){var w=k(L,C);
n=w[0];C+=w[1]+1}else throw A}else{var V=h[A>>>1];if(V[0]=="enum"){var F=L[C++];if(F>127)throw"e";n=V[2][F]}else{var Z=T(L,C,h,V,O+1);
n=Z[0];C=Z[1]}}X[H]=n}i[f[3]]=d?X:X[0];D++}return[i,C]}function k(Q,K){var h=K;while(Q[h]!=0)h++;return[$.IQ(Q,K,h-K),h-K]}function P(Q,K){var h=K;
while(Q[h]!=0)h++;for(var H=K;H<h;H++)if(Q[H]>127)throw"e";return $.ZA(Q,K,h-K)}function b(Q){L=Q;C=1;
var K=[];while(C<Q.length){var h=C,x=K.length,O=P(Q,C);C+=O.length+1;var y=p();if(y>2)throw"e";var v=p(),i=[];
for(var H=0;H<v;H++){var D=P(Q,C);C+=D.length+1;var I=p(),m=p(),f=p();i.push(y==0?D:[f,m,I,D])}K.push([["enum","strc","mesg"][y],O,i])}return K}return{a9A:b,ama:T}}();
function fG(){}fG.Vu=function(L,C){var U=new Uint8Array(L),E=8,Y=$.Nl(U,E),k=0,V=0;E+=4;var z=[];while(E<U.length){var r=$.Nl(U,E);
E+=4;var p=U.slice(E,E+r);if(U[E]==137&&U[E+1]==80){}else p=UZIP.inflateRaw(p);z.push(p);E+=r}var T=bI.a9A(z[0]);
for(var H=0;H<T.length;H++)if(T[H][1]=="Message")k=H;var P=bI.ama(z[1],0,T,T[k],0)[0],b={$Y:{},xj:{},ai4:{}},Q=P.nodeChanges;
for(var K=0;K<Q.length;K++){var h=Q[K],x=h.guid;b.xj[x.sessionID+","+x.localID]=h}for(var K=0;K<Q.length;
K++){var h=Q[K],x=h.parentIndex;if(x){var O=fG.QU(b.xj,x.guid);if(O.children==null)O.children=[];O.children.push(h)}}var y=Q[0],v=y.children,i=new _,D=[],I=[];
for(var x=0;x<v.length;x++){var m=v[x],f=m.children;if(m.name=="Internal Only Canvas"||f==null)continue;
var A=new _;for(var H=0;H<f.length;H++){var d=f[H],g=d.transform,X=d.size;if(g.m00==1&&g.m10==0&&g.m01==0&&g.m11==1){var n=new _(g.m02,g.m12,X.x,X.y);
A=A.EU(n)}}var R=i.v==0?0:i.v+100,l=A.clone();l.x=0;l.y=R;i=i.EU(l);D[x]=A;I[x]=R}var w=e5.R8(new _(0,0,i.d,i.v),8192*8192);
C.d=Math.round(i.d/w);C.v=Math.round(i.v/w);C.buffer=c.F(C.d*C.v*4);for(var x=0;x<v.length;x++){var m=v[x],f=m.children;
if(m.name=="Internal Only Canvas"||f==null)continue;f.sort(fG.Ge);var F=new c0(1,0,0,1,-D[x].x,I[x]-D[x].y);
F.scale(1/w,1/w);for(var H=0;H<f.length;H++){var d=f[H];fG.og(d,[],F,P.blobs,C,0,b);V++}}C.Re(V);C.pu=!0;
if(w!=1)alert("File scaled down "+w+"x")};fG.og=function(L,C,U,E,Y,z,r){var p=fG,d=!1,g,X,R,l,w;for(var H=0;
H<C.length;H++){var T=C[H],k=T.guidPath.guids[0];if(p.afG(k,L.guid)){var P={};for(var b in L)P[b]=T[b]!=null?T[b]:L[b];
L=P}}var Q=L.type,K=L.children,h=L.size,x=L.effects,O=Y.wP();O.I_(L.name);O.Qs(L.visible);O.opacity=Math.round(L.opacity*255);
var y=p.RB(L.transform),v=y.clone();v.concat(U);var i=new _(Math.round(v.Yt),Math.round(v.rv),Math.round(h.x*v.ia()),Math.round(h.y*v.ia())),D=L.fillPaints,I=L.inheritFillStyleID;
if(I){var P=p.QU(r.xj,I);if(P)D=P.fillPaints}if(D==null)D=[];var D=p.SW(D),m=D[0],f=L.strokePaints,I=L.inheritFillStyleIDForStroke;
if(I){var P=p.QU(r.xj,I);if(P)f=P.fillPaints}if(f==null)f=[];var f=p.SW(f),A="BOOLEAN_OPERATION LINE RECTANGLE ROUNDED_RECTANGLE ELLIPSE VECTOR REGULAR_POLYGON".split(" ").indexOf(Q)!=-1;
if(A||Q=="FRAME"){g=new o.mR;X=[];p.DX(L,E,g,X);d=c.Y.tk(g.n);c.Y.IL(g.n,v);i=c.a.TT(c.Y.JK(g.n));if(r.$Y.Uj&&m){var n=o.mR.Xu(r.$Y.Uj.n);
for(var H=2;H<n.length;H++)if(n[H].ZZ!=null)n[H].ZZ=3;g.n=g.n.concat(n.slice(2));X=X.concat(JSON.parse(JSON.stringify(r.$Y.zf)))}}if(m&&m.type=="IMAGE"){w=m.imageScaleMode;
R=p.E0(E,m.image.dataBlob);var V=R.bl.d/R.bl.v,F=h.x/h.y;l=Math.abs(V-F)}if(Q=="FRAME"){}else if(A&&d&&R&&(w=="FIT"||w=="FILL"&&l<=.05)){var Z=E[m.image.dataBlob].bytes,M=Y.$F(Z,O.getName(),0,0);
M.bP=O.bP;M.opacity=O.opacity;O=M;var a=new _(0,0,h.x,h.y);if(w=="FIT"){var e=R.bl.d,N=R.bl.v,J=Math.min(h.x/e,h.y/N),s=e*J,f5=N*J;
a=new _(a.x+(a.d-s)/2,a.y+(a.v-f5)/2,s,f5)}var dx=c.a.kG(a).c;c.a.J(dx,v,dx);O.add.SoLd.Trnf=W.o.M4(dx);
O.add.SoLd.nonAffineTransform=W.o.M4(dx);var fq=[],x=L.effects,i9=m.paintFilter;if(x)for(var H=0;H<x.length;
H++)if(x[H].type=="FOREGROUND_BLUR"){var e8=x[H],S=hi.hr("GsnB",{});fq.push(S);S.v.enab.v=e8.visible;
S.v.Fltr.v.Rds.v.val=e8.radius/2.4}if(i9&&i9.exposure!=0){var S=hi.hr("brit",{});fq.push(S);S.v.Fltr.v.Brgh.v=Math.round(i9.exposure*160);
S.v.Fltr.v.useLegacy.v=!0}if(fq.length!=0){O.add.SoLd.filterFX=hi.G7();Y.nJ({id:O.add.SoLd.placed.v,rect:new _,buffer:c.F(1),r:new o.LF});
O.add.SoLd.filterFX.v.filterFXList.v=fq}O.RM(Y,!1);p.w2(r,O,Y)}else if(A){p.Mj(O,X,g,L,m,v,i,E,Y,r);
var fs=p.nM(L,f[0],v,i,E,Y,r);if(fs[0]!="None"){var bz=O.add.vstk;bz.strokeEnabled.v=!0;bz.strokeStyleLineWidth.v.val=L.strokeWeight*v.ia();
bz.strokeStyleLineAlignment.v.strokeStyleLineAlignment=gM.H0.jr[["INSIDE","CENTER","OUTSIDE"].indexOf(L.strokeAlign)];
var g6={SoCo:"SoFi",GdFl:"GrFl"}[fs[0]],al=["SoFi","GrFl","patternFill"].indexOf(g6),bj=[gM.TL,gM.DV,gM.ex][al];
bz.strokeStyleContent.v={classID:gM.H0.g0[0]};bz.strokeStyleLineDashSet.v=ca.zs(L.dashPattern,1/L.strokeWeight);
var bE=bz.strokeStyleContent.v={classID:gM.H0.g0[al]};for(var H=0;H<bj.length;H++)bE[bj[H]]=fs[1][bj[H]]}if(x)for(var H=0;
H<x.length;H++){var e8=x[H];if(e8.type!="FOREGROUND_BLUR")continue;g.hY=e8.radius/2.4}O.cr(Y)}else if(Q=="TEXT"){var eN=L.textData,dk=eN.layoutSize,hj=["LEFT","RIGHT","CENTER"].indexOf(L.textAlignHorizontal);
O.add.lnsr="rend";O.add.TySh=b5.Es(0,0);O.add.TySh.uv=new _(0,0,100,100);var iN=v.clone();O.add.TySh.J=iN;
var dK=O.add.TySh.Se,ch=eN.characters;if(L.textCase=="TITLE"){for(var H=0;H<ch.length;H++)if(H==0||ch[H-1]==" "){var hP=ch.slice(0,H),d2=ch.slice(H+1);
ch=hP+ch[H].toUpperCase()+d2}}ch=ch.replace(/\u2028/g,"\n");ch=ch.replace(/\u2029/g,"\n");ch=ch.replace(/\r/g,"\n");
b5.X$(dK,0,ch);var hr=L.textAutoResize,fv=eN.baselines;if(hr=="WIDTH_AND_HEIGHT"){var f3=hj==0?0:hj==1?dk.x:dk.x/2,dp=fv?fv[0].position.y:0;
iN.translate(f3*v.ia(),dp*v.ia());b5.B$(dK,0)}else if(hr=="HEIGHT"||hr=="NONE"||hr==null){var dp=fv?fv[0].position.y-L.fontSize*.7:0;
iN.translate(0,dp*v.ia());b5.B$(dK,1);b5.If(dK,[0,0,Math.round(dk.x),Math.round(1.2*dk.y)])}else throw hr;
if(ch!=""){var go=b5.L3(dK,0,1);p.aK(L,v,h,go,O,E,Y,r);b5.Em(dK,0,ch.length,go);var d6=eN.characterStyleIDs,iB=eN.styleOverrideTable;
if(d6){d6=d6.slice(0);for(var H=0;H<d6.length;H++)if(ch[H]=="\n")d6[H]=-H-1;var hS=[0],eF=0,bQ=0;for(var H=0;
H<d6.length;H++){bQ++;var iP=d6[H];if(H==0||iP==d6[H-1]){}else{hS.push(bQ-1,H);bQ=1}}hS.push(bQ);for(var H=0;
H<hS.length;H+=2){var d8=hS[H],a6=hS[H+1];if(ch[d8]=="\n")continue;var iP=d6[d8];if(iP!=0){var am;for(var fj=0;
fj<iB.length;fj++)if(iB[fj].styleID==iP)am=iB[fj];var go=b5.L3(dK,d8,d8+1);p.aK(am,v,h,go,O,E,Y,r);b5.Em(dK,d8,d8+a6,go)}}}}}else if(Q=="SYMBOL"){}else if(Q=="INSTANCE"){var dX=L.symbolData,gc=dX.symbolOverrides,P=p.QU(r.xj,dX.symbolID);
if(P)K=P.children;else console.log(L.name,"symbol not found",dX.symbolID);C=C.slice(0);for(var H=0;H<gc.length;
H++)C.push(gc[H])}else console.log(Q);if(!1){}else if(K&&!A){Y.N.push(Y.rJ());var dz=!1;if(z==0&&Q!="SYMBOL"&&Q!="INSTANCE"){O.eJ(i);
var gE=D?D[0]:null;if(gE&&gE.type=="SOLID"){var cQ=gE.color;O.add.artb.artboardBackgroundType.v=4;O.add.artb.Clr=p.FJ(cQ)}}else if(m&&g){var fi=Y.wP();
fi.I_("Background");p.Mj(fi,X,g,L,m,v,i,E,Y,r);fi.cr(Y);Y.N.push(fi);dz=!0}K.sort(p.Ge);var dB=r.$Y;
r.$Y={};for(var bp=0;bp<K.length;bp++)p.og(K[bp],C,v,E,Y,z+1,r);r.$Y=dB;O.add.lsct=!1?fI.Qr:fI.z7;O.B4="pass";
var ai=O.rK();O.bP=24;O.Qs(ai);var hu=z!=0&&D.length!=0&&!L.frameMaskDisabled&&L.containerSupportsFillStrokeAndCorners;
if(!dz&&hu&&g){O.add.vmsk=g;O.add.vogk=X;O.cr(Y)}else p.w2(r,O,Y);Y.N.push(O)}else if(L.mask){if(g){r.$Y.Uj=g;
r.$Y.zf=X}}else{var bP=[],i7=1;if(x)for(var hw=0;hw<x.length;hw++){var e8=x[hw],gQ=e8.color,gp=e8.type,aS=["DROP_SHADOW","INNER_SHADOW"].indexOf(gp);
if(aS!=-1){var iX=["DrSh","IrSh"][aS],dW=JSON.parse(gM.Lq[gM.order.indexOf(iX)]);bP.push([iX,dW]);dW.enab.v=e8.visible;
dW.Md.v.BlnM=gz.Wx(p.a3A(e8.blendMode));dW.Opct.v.val=Math.round(100*gQ.a);dW.blur.v.val=Math.round(e8.radius*v.ia());
dW.Clr=p.FJ(gQ);var f3=e8.offset.x,dp=e8.offset.y;dW.uglg.v=!1;dW.lagl.v.val=Math.round(180/Math.PI*Math.atan2(dp,-f3));
dW.Dstn.v.val=Math.round(Math.sqrt(f3*f3+dp*dp)*v.ia())}}if(Q=="TEXT"&&D[0]&&D[0].type!="SOLID")i7=0;
for(var H=i7;H<D.length;H++){var i5=D[H],fM=p.nM(L,i5,v,i,E,Y,r);if(fM[0]=="GdFl")bP.push(["GrFl",fM[1]]);
else if(fM[0]=="SoCo")bP.push(["SoFi",fM[1]]);else if(fM[0]=="PtFl")bP.push(["patternFill",fM[1]]);else throw fM}if(bP.length!=0){var ei=JSON.parse(gM.default);
for(var H=0;H<gM.order.length;H++)ei[gM.cp[H]]={t:"VlLs",v:[]};for(var H=0;H<bP.length;H++){var bu=bP[H],iX=gM.cp[gM.order.indexOf(bu[0])];
ei[iX].v.unshift({t:"Objc",v:bu[1]})}if(K==null)O.add.lmfx=ei}Y.N.push(O)}};fG.Mj=function(L,C,U,E,Y,z,r,p,T,k){var P=fG;
L.bP|=16;L.add.vogk=C;L.add.vmsk=U;var b=L.add.vstk=JSON.parse(JSON.stringify(gM.H0.default)),Q=P.nM(E,Y,z,r,p,T,k);
if(Q[0]=="None"){b.fillEnabled.v=!1;L.add.SoCo=Q[1]}else{var K=Q[1].Opct.v.val;if(K!=100)L.opacity=Math.round(L.opacity/255*(K/100)*255);
L.add[Q[0]]=Q[1]}};fG.Ge=function(L,C){var U=L.parentIndex.position,E=C.parentIndex.position;return U>E?1:-1};
fG.SW=function(L){for(var H=1;H<L.length;H++){var C=L[H];if(C.type=="IMAGE"&&C.opacity==1){L=L.slice(H);
break}}for(var H=0;H<L.length;H++){var C=L[H],U=C.imageThumbnail;if(C.type=="IMAGE"&&C.image.dataBlob==null&&U&&U.dataBlob)C.image=U;
if(!C.visible||C.type=="IMAGE"&&C.image.dataBlob==null){L.splice(H,1);H--}}return L};fG.w2=function(L,C,U){if(L.$Y.Uj){C.add.vmsk=L.$Y.Uj.clone();
C.add.vogk=JSON.parse(JSON.stringify(L.$Y.zf));C.cr(U)}};fG.aK=function(L,C,U,E,Y,z,r,p){var T=L.fontSize,k=L.lineHeight,P=L.fontName,b=L.textAlignHorizontal,Q=L.textTracking,K=L.textCase;
if(T==null)T=E.LI.FontSize;if(P)b5.yk(E,P.postscript);if(T!=null)E.LI.FontSize=Math.round(T);if(Q)E.LI.Tracking=Math.round(Q*1e3);
if(K)E.LI.FontCaps=K=="UPPER"?2:0;if(k&&(k.units!="PERCENT"||k.value!=100)){if(T==null)T=15;var h=k.value;
if(k.units=="PERCENT")h=1*T*h/100;if(k.units=="RAW")h=1*T*h;E.LI.AutoLeading=!1;E.LI.Leading=Math.round(h)}if(b)E.s6.Justification=["LEFT","RIGHT","CENTER"].indexOf(b);
var x=L.fillPaints,O=L.inheritFillStyleID;if(O){var y=fG.QU(p.xj,O);if(y)x=y.fillPaints}if(x&&x[0]){var v=fG.nM(L,x[0],C,U,z,r,p);
if(v[0]=="SoCo"){var i=c.W.Lt(v[1].Clr.v);E.LI.FillColor={Type:1,Values:[1,i.h/255,i.P/255,i.O/255]};
Y.opacity=Math.round(Y.opacity/255*(v[1].Opct.v.val/100)*255)}}};fG.nM=function(L,C,U,E,Y,z,r){var p=fG,T,k,P=L.size;
if(C){var b=C.type,Q=["GRADIENT_LINEAR","GRADIENT_RADIAL","GRADIENT_DIAMOND","GRADIENT_ANGULAR"].indexOf(b);
if(b=="SOLID"){T="SoCo";var K=C.color;k=JSON.parse(gM.Lq[gM.order.indexOf("SoFi")]);k.Clr=p.FJ(K)}else if(Q!=-1){var h=JSON.parse(gM.Lq[gM.order.indexOf("GrFl")]),x=h.Grad.v;
x.Intr.v=0;h.Type.v.GrdT=["Lnr","Rdl","Dmnd","Angl"][Q];var O=[],y=C.stops;for(var H=0;H<y.length;H++){var v=y[H],i=v.color;
O.push([v.position,[i.r,i.g,i.b],i.a])}c.W.et(O,x);var D=p.RB(C.transform);D.G$();var I=D.clone();if(P)I.scale(P.x,P.y);
I.concat(U);var m=new hZ(0,.5),f=new hZ(1,.5);m=I.Om(m);f=I.Om(f);if(!0){m.x=f.x+.5*(m.x-f.x);m.y=f.y+.5*(m.y-f.y)}c.W.y9(m,f,E,h);
if(Q==3){if(I.R*I.J2-I.O*I.Z9<0)h.Rvrs.v=!h.Rvrs.v}T="GdFl";k=h}else if(b=="IMAGE"){var h=JSON.parse(gM.Lq[gM.order.indexOf("patternFill")]),A=h.phase.v,d=C.image.dataBlob,g=r.ai4[d],M=1;
if(g==null){var X=p.E0(Y,d);g=r.ai4[d]={};g.id=b7.o7()+"-d71c-11e5-b1ae-a548a96e5f9f";g.Zq=[new Uint8Array(X.data),X.bl];
g.name="someImage";z._q(g)}h.Algn.v=!0;h.Ptrn.v.Idnt.v=g.id;var n=U.Yt,R=U.rv,l=C.imageScaleMode,D=p.RB(C.transform);
D.G$();var w=E.d,V=E.v,F=g.Zq[1].d,Z=g.Zq[1].v;if(l=="FILL"){M=Math.max(w/F,V/Z);M=Math.round(M*100)/100}else if(l=="FIT"){M=Math.min(w/F,V/Z);
M=Math.round(M*100)/100}else if(l=="STRETCH"){var a=w*D.R,e=V*D.J2;M=.5*(a/F+e/Z);M=Math.round(M*100)/100;
n+=(a-w)/2+D.Yt*w;R+=(e-V)/2+D.rv*V}else if(l=="TILE"){M=C.scale;M=Math.round(M*100)/100;n+=(a-w)/2;
R+=(e-V)/2}var N=M*F,J=M*Z;n+=-(N-w)/2;R+=-(J-V)/2;h.Scl.v.val=Math.round(100*M);A.Hrzn.v=Math.round(n);
A.Vrtc.v=Math.round(R);T="PtFl";k=h}else throw b;if(k)k.Opct={t:"UntF",v:{type:"#Prc",val:Math.round(C.opacity*100)}}}else{T="None";
k={classID:"null",Clr:{t:"Objc",v:c.W._b({h:0,P:0,O:0})}}}return[T,k]};fG.E0=function(L,C){var U=L[C];
if(U.rslt)return U.rslt;var E=U.bytes.buffer,Y=iL.lc(E),z=iL.WS(Y);try{U.rslt=z.ER(E)[0]}catch(gS){U.rslt={data:c.F(4),bl:new _(0,0,1,1)}}return U.rslt};
fG.DX=function(L,C,U,E){var Y=L.type,z=L.size,r=L.cornerRadius,b;if(r==null)r=0;var p=c.zf.Zx(),T=z.x,k=z.y,P=[r,r,r,r],Q=["rectangleTopLeftCornerRadius","rectangleTopRightCornerRadius","rectangleBottomRightCornerRadius","rectangleBottomLeftCornerRadius"];
for(var H=0;H<4;H++)if(L[Q[H]]!=null)P[H]=L[Q[H]];if(Y=="RECTANGLE"||Y=="ROUNDED_RECTANGLE"||Y=="FRAME"){b=c.Y.tD.Rect(0,0,T,k,P)}else if(Y=="ELLIPSE"){var K=L.arcData,h=K?K.startingAngle:0,x=K?K.endingAngle:2*Math.PI,O=K?K.innerRadius:0;
if(h==0&&x>1.999*Math.PI)b=c.Y.tD.vm(0,0,T,k,0);else b=c.Y.tD.ah$(T/2,k/2,k/2,h,x);if(O!=0&&O!=1){var y=o.mR.Xu(b).slice(3);
y.reverse();for(var H=0;H<y.length;H++){var v=y[H],i=v.OT;v.OT=v.SC;v.SC=i}var D=new c0;D.translate(-T/2,-k/2);
D.scale(O,O);D.translate(T/2,k/2);c.Y.IL(y,D);b=b.concat(y);b[2].length*=2}}else if(Y=="LINE"){b=c.Y.tD.Rect(0,0,T,k,0);
b.pop();b.pop();b[2].length=2}else if(Y=="REGULAR_POLYGON"){b=c.Y.tD.gE(.5,.5,.5,Math.PI/2,L.count,0);
var I=new c0;I.scale(T,k);c.Y.IL(b,I)}else if(Y=="BOOLEAN_OPERATION"){b=[{type:6},{type:8,all:0}];var m=L.children,f=["XOR","UNION","SUBTRACT","INTERSECT"].indexOf(L.booleanOperation);
if(f==-1)throw L;if(m==null)m=[];for(var H=0;H<m.length;H++){var A=m[H],d=new o.mR,g=[],X=fG.DX(A,C,d,g);
if(d.n==null)continue;c.Y.IL(d.n,fG.RB(A.transform));b=b.concat(d.n.slice(2));for(var n=0;n<g.length;
n++)E.push(g[n])}for(var H=3;H<b.length;H++)if(b[H].ZZ!=null)b[H].ZZ=f;p=null}else if(Y=="VECTOR"){var R,l;
if(!0){var w=L.vectorData;R=w.normalizedSize;l=w.vectorNetworkBlob}else{R=z;l=d7[0].commandsBlob;console.log(d7)}var V=C[l].bytes,F=new Uint32Array(V.buffer),Z=new Float32Array(V.buffer),M=F[0],a=F[1],N=[];
for(var H=0;H<M;H++){var J=3+H*3,s=new hZ(Z[J+1],Z[J+2]);N.push(s)}var f5=[],dx=3+M*3;for(var H=0;H<a;
H++){var fq=dx+H*7,i9=F[fq+1],e8=F[fq+4];f5.push([i9,e8,Z[fq+2],Z[fq+3],Z[fq+5],Z[fq+6]])}var S=-1;for(var H=0;
H<a;H++){if(S==-1){}else{var fs=-1;for(var n=H;n<a;n++)if(f5[n][1]==S)fs=n;for(var n=H;n<a;n++)if(f5[n][0]==S)fs=n;
if(fs!=-1){var bz=0,i=f5[fs];f5[fs]=f5[H];f5[H]=i;if(i[0]!=S){bz=i[0];i[0]=i[1];i[1]=bz;bz=i[2];i[2]=i[4];
i[4]=bz;bz=i[3];i[3]=i[5];i[5]=bz}}}S=f5[H][1]}var g6=[],al=[],bj=-1;S=-1;for(var H=0;H<a;H++){var bE=f5[H],i9=bE[0],e8=bE[1],eN=N[i9],dk=N[e8];
if(S!=i9){al.push("M");g6.push(eN.x,eN.y);bj=i9}g6.push(eN.x+bE[2],eN.y+bE[3]);g6.push(dk.x+bE[4],dk.y+bE[5]);
al.push("C");g6.push(dk.x,dk.y);S=e8;if(bj==e8){al.push("Z");bj=S=-1}}b=c.a.n2({c:g6,Z:al},!0);if(r!=0){var P=[],hj=b[2].length;
for(var H=0;H<hj;H++)P.push(r);if(c.Y.e$(b))c.Y.$r(b,2,P)}var iN=new c0;iN.scale(R.x==0?1:z.x/R.x,R.y==0?1:z.y/R.y);
c.Y.IL(b,iN)}U.n=b;if(p)E.push(p)};fG.QU=function(L,C){return L[C.sessionID+","+C.localID]};fG.afG=function(L,C){return L.sessionID==C.sessionID&&L.localID==C.localID};
fG.a3A=function(L){var C={NORMAL:"norm",MULTIPLY:"mul ",SCREEN:"scrn"}[L];if(C==null)throw L;return C};
fG.FJ=function(L){return{t:"Objc",v:c.W._b({h:L.r*255,P:L.g*255,O:L.b*255})}};fG.RB=function(L){var C=[L.m00,L.m10,L.m01,L.m11,L.m02,L.m12];
for(var H=0;H<6;H++)if(Math.abs(C[H])<1e-20)C[H]=0;return new c0(C[0],C[1],C[2],C[3],C[4],C[5])};function g4(){}g4.Vu=function(){var L=$.ZA;
function C(z,r,p,T){var k=T?[]:{};while(r<z.length-1&&z[r]!=125){var P=L(z,r,3),b=L(z,r+3,1),Q;r+=4;
r++;if(b=="v"){var K=C(z,r,p+1,P=="ELM"||P=="TIL");Q=K.G;r=K.g}else if(b=="i"||b=="f"){var h=r;while(z[h]!=125)h++;
var x=L(z,r,h-r);Q=b=="i"?parseInt(x,16):parseFloat(x);r=h+1}else if(b=="s"){var O=z[r+1],x="";r+=2;
for(var H=0;H<O;H++)x+=String.fromCharCode(z[r+2*H+1]);Q=x;r=r+2*O+1}else if(b=="b"){Q=z[r]==49;r=r+2}if(T)k.push([P,Q]);
else if(k[P]==null)k[P]=Q;else{if(!(k[P]instanceof Array))k[P]=[k[P]];k[P].push(Q)}}r++;return{G:k,g:r}}function U(z,r){var p=r&4278190080|(r&255)<<16|(r>>>8&255)<<8|r>>>16&255;
new Uint32Array(z.buffer).fill(p)}function E(z,r){z=new Uint8Array(z);var p=8,T,k={};while(p<z.length){var P=$.i(z,p);
p+=4;var b=L(z,p,4);p+=4;if(b=="mkTS"){var Q=pako.inflate(z.slice(p,p+P)),K=C(Q,0,0);T=K.G}else if(b=="mkBT"){var h=$.i(z,p+4),Q=pako.inflate(z.slice(p+76,p+P));
for(var H=0;H<Q.length;H+=4){var x=Q[H],O=Q[H+1],y=Q[H+2],v=Q[H+3];Q[H+3]=x;Q[H+2]=v;Q[H+1]=y;Q[H]=O}k[h]=Q}p+=P+4}T=T.MKB;
var i=T.WID,D=T.HIT,I=T.BGC;r.d=i;r.v=D;if(I>>>24!=0){var m=r.wP();m.I_("Background");r.N.push(m);m.rect=new _(0,0,i,D);
m.buffer=c.F(m.rect.X()*4);U(m.buffer,I)}var f=T.LYL.LAY;for(var H=f.length-1;H>=0;H--)Y(f[H],r,null,k);
r.pu=!0}function Y(z,r,p,T){var k=r.wP();if(z.CLL){k.I_(z.LNM);r.N.push(r.rJ());var P=z.CLL.CEL.ELM;
for(var H=P.length-1;H>=0;H--)Y(P[H][1],r,P[H][0],T);k.add.lsct=fI.Qr;k.B4="pass";k.bP=24}else if(p=="IMG"){k.I_(z.OBN);
var b=z.TSZ,Q=z.WPX,K=z.HPX,h=z.TIL,O=0;k.rect=new _(z.XLC,z.YLC,Q,K);var x=k.rect.clone();x.x=x.y=0;
k.buffer=c.F(Q*K*4);for(var y=0;y<K;y+=b)for(var v=0;v<Q;v+=b){var i=new _(v,y,b,b),D,I=h[O];if(I[0]=="TMC"){D=c.F(i.X()*4);
U(D,I[1])}else if(I[0]=="TID"){D=T[I[1]]}c.La(D,i,k.buffer,x);O++}}else if(p=="TXT"){var m=z.TFS,f=m.TRN;
k.I_(f.slice(0,255));k.add.lnsr="rend";k.add.TySh=b5.Es(0,0);k.add.TySh.uv=new _(0,0,100,100);k.add.TySh.J=new c0(1,0,0,1,z.LFT,z.TOP);
var A=k.add.TySh.Se;b5.X$(A,0,f);var d=b5.L3(A,0,1);b5.yk(d,z.CFT);d.LI.FontSize=Math.round(z.PTS);var g=m.FCL;
d.LI.FillColor={Type:1,Values:[1,(g>>>16&255)/255,(g>>>8&255)/255,(g>>>0&255)/255]};var X=z.RIT-z.LFT,n=z.BOT-z.TOP;
b5.Em(A,0,f.length,d);b5.B$(A,1);b5.If(A,[0,0,X,n])}else console.log("unknown layer type",p);r.N.push(k)}return E}();
function iL(){}iL.QK={aeX:["PNG","JPG","SVG","GIF","PDF"],amP:"WEBP BMP TIFF ICO DDS TGA PPM RAW EMF DXF".split(" ")};
iL.lc=function(L){if(!(L instanceof ArrayBuffer)){console.log("Input is not ArrayBuffer")}var C=new Uint8Array(L),U=iL.V0,E,Y=0,z=C.length-1;
if(U(C,[239,187,191]))Y=3;while(Y<C.length&&(C[Y]==9||C[Y]==10||C[Y]==13||C[Y]==32))Y++;while(z!=0&&(C[z]==9||C[z]==10||C[z]==13||C[z]==32))z--;
if(U(C,[56,66,80,83]))E="psd";if(U(C,[120]))E="pxd";if(U(C,[103,105,109,112,32,120,99,102,32]))E="xcf";
if(U(C,[102,105,103,45,107,105,119,105]))E="fig";if(U(C,[137,80,78,71,13,10,26,10])){E="png";var r=8;
while(r<C.length){var p=$.i(C,r);r+=4;var T=$.ZA(C,r,4);r+=4;if(T=="mkTS")E="fpng";r+=p+4}}if(U(C,[87,76]))E="cdr";
if(U(C,[82,73,70,70])){var k=c3.Vu(C),P=k.g0;if(P=="WEBP")E="webp";else if(P.slice(0,3)=="CDR")E="cdr";
else E=P}if(U(C,[70,79,82,77])||U(C,[76,73,83,84])||U(C,[67,65,84,32])){var k=a1.Vu(C),P=k.g0;if(P=="ILBM")E="ilbm";
else E=P}if(U(C,[255,216,255]))E="jpg";if(U(C,[0,0,0,12,106,80,32,32]))E="jpg";if(U(C,[48,0,1,0],4))E="jpg";
if(U(C,[71,73,70,56]))E="gif";if(U(C,[0,0,0,2,121,102,113,76]))E="msh";if(U(C,[0,0,0,3,121,102,113,76]))E="msh";
if(U(C,[0,0,0,16]))E="atn";if(U(C,[0,1]))E="aco";if(U(C,[0,2]))E="aco";if([0,1].indexOf(C[1])!=-1&&[1,2,3,9,10,11].indexOf(C[2])!=-1&&[0,16,24,32].indexOf(C[7])!=-1)E="tga";
if(U(C,[0,2,56,66,83,76]))E="asl";if(U(C,[0,1,0,-1,0,2,0]))E="abr";if(U(C,[0,2,0,-1,0,2,0]))E="abr";
if(U(C,[0,6,0,1]))E="abr";if(U(C,[0,6,0,2]))E="abr";if(U(C,[0,7,0,2]))E="abr";if(U(C,[0,9,0,2]))E="abr";
if(U(C,[0,10,0,2]))E="abr";if(U(C,[56,66,70,83]))E="shc";if(U(C,[56,66,80,84]))E="pat";if(U(C,[56,66,71,82]))E="grd";
if(U(C,[56,66,84,80]))E="tpl";if(U(C,[0,4,0,5]))E="acv";if(U(C,[99,117,115,104]))E="csh";if(U(C,[0,1,0,0,0]))E="otf";
if(U(C,[79,84,84,79]))E="otf";if(U(C,[116,116,99,102]))E="otf";if(U(C,[68,68,83,32]))E="dds";if(U(C,[80,86,82,3]))E="pvr";
if(U(C,[86,84,70,0]))E="vtf";if(U(C,[83,73,77,80]))E="fits";if(U(C,[0,0,1,0]))E="ico";if(U(C,[66,77]))E="bmp";
if(U(C,[40,0,0,0]))E="bmp";if(U(C,[80,49]))E="ppm";if(U(C,[80,50]))E="ppm";if(U(C,[80,51]))E="ppm";if(U(C,[80,52]))E="ppm";
if(U(C,[80,53]))E="ppm";if(U(C,[80,54]))E="ppm";if(U(C,[73,73,42,0]))E="tiff";if(U(C,[77,77,0,42]))E="tiff";
if(U(C,[70,85,74,73,70,73,76,77]))E="raf";if(U(C,[112]))E="lif";if(U(C,[73,73,26,0]))E="ciff";if(U(C,[83,81,76,105]))E="sketch";
if(U(C,[80,75])){var b=UZIP.parse(L,!0);if(b["document.json"])E="sketch";else if(b.manifest)E="xd";else E="zip"}if(U(C,[123]))E="json";
if($.i(C,0)==C.length)E="icc";if(U(C,[35]))E="icc";if(U(C,[84,73,84,76]))E="icc";if(U(C,[76,85,84,95]))E="icc";
if(U(C,[60,63,120,109],Y)){if($.r1(C,"<look>")!=-1)E="icc";else E="svg"}if(U(C,[60,115,118,103],Y))E="svg";
if(U(C,[60,33,100,111],Y)||U(C,[60,33,68,79],Y)){if($.r1(C,"<svg")!=-1)E="svg";else E="html"}if(U(C,[37,33])||U(C,[197,208,211,198])){E="eps"}if(U(C,[37,80,68,70],Y)){E="pdf"}else if(U(C,[10,69,79,70],z-3))E="dxf";
if(U(C,[215,205,198,154]))E="wmf";if(U(C,[1,0,0,0]))E="emf";if(U(C,[118,47,49,1]))E="exr";if(U(C,[10,10,10,10]))E="jsx";
if(U(C,[77,90]))E="exe";if(E==null&&c.raw.op(C.length)!=null)return"tiff";return E};iL.V0=function(L,C,U){if(U==null)U=0;
for(var H=0;H<C.length;H++)if(C[H]!=-1&&L[U+H]!=C[H])return!1;return!0};iL.WS=function(L){var C={BMP:iL.a0g,CDR:iL.jN,DDS:iL.sz,EMF:iL.gS,DXF:iL.HP,EPS:iL.z_,FIG:iL.aS,FPNG:iL.Rc,GIF:iL.UC,ICO:iL.ig,ILBM:iL.gA,FITS:iL.XP,EXR:iL.pW,JPG:iL.X_,LIF:iL.wz,PDF:iL.q8,PNG:iL.CA,PPM:iL.EG,PSD:iL.Gd,PXD:iL.$C,RAF:iL.Af,RAW:iL.$A,SKETCH:iL.Bo,SVG:iL.FF,TGA:iL.OI,TIFF:iL.I1,VTF:iL.AB,WEBP:iL.cv,WMF:iL.bh,XCF:iL.fN,XD:iL.qO,EXE:iL.UH,AI:iL.a1D};
return C[L.toUpperCase()]};iL.Nj=function(H){var L=iL.QK.aeX,C=iL.QK.amP,U,E=[];if(H==null)U=L.concat(C);
else U=H==0?L:C;for(var H=0;H<U.length;H++)if(iL.WS(U[H]).aR)E.push(U[H]);return E};iL.AG=function(L,C,U,E,Y){var z=iL.CG(L,C,U,E,Y),r=iL.on(z);
return r.buffer};iL.on=function(L){var C=atob(L.split(",").pop()),U=new Uint8Array(C.length);for(var H=0;
H<C.length;H++)U[H]=C.charCodeAt(H);return U};iL.CG=function(L,C,U,E,Y,z){if(!(L instanceof ArrayBuffer))throw"e";
if(E==null)E="png";if(E=="png"&&z==!0){var r=iL.WS("PNG").aR([[L,0]],C,U);return"data:image/png;base64,"+iL.q4(r)}var p=iL.co;
if(p==null)p=iL.co=B.w("canvas");if(p.width!=C||p.height!=U){p.width=C;p.height=U}var T=p.getContext("2d"),k=new ImageData(new Uint8ClampedArray(L,0,C*U*4),C,U);
T.putImageData(k,0,0);return p.toDataURL("image/"+E,Y)};iL.afj=function(L,C,U,E,Y){if(Y==null)Y=0;var z="<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>",r="<svg  xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"  width=\"128\"  height=\"128\"> "+z+"<g transform=\"translate(64 64) scale("+.25*Math.round(B.M())+")\">";
if(L==1)r+="<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>";
r+="<g filter=\"url(#sofGlow)\"><image transform=\"rotate("+Y+")\" xlink:href=\""+C+"\" x=\""+80*U+"\" y=\""+80*E+"\" height=\"80\" width=\"80\"/></g>"+"</g>"+"</svg>";
var p=new Uint8Array(r.length);$.mW(r,p,0);var T="data:image/svg+xml;base64,"+iL.q4(p.buffer);return{GE:T,_:new _(0,0,128,128),Nb:new hZ(64,64)}};
iL.q4=function(L){var C=new Uint8Array(L),U="";for(var H=0;H<C.length;H++)U+=String.fromCharCode(C[H]);
return btoa(U)};iL.a8q=function(L){var C=atob(L),U=C.length,E=new Uint8Array(U);for(var H=0;H<U;H++)E[H]=C.charCodeAt(H);
return E.buffer};iL.Tg=function(L){var C=[],U=[];for(var H=0;H<L.N.length;H++){var E=L.N[H];if(E.getName().slice(0,3)=="_a_"){C.push(H);
U.push(E.rK())}}return[C,U]};iL.UJ=function(L,C,U,E,Y,z){if(U==null)U=L.d;if(E==null)E=L.v;var r=new _(0,0,L.d,L.v),p=new c0(U/(L.d+.001),0,0,E/(L.v+.001),0,0),k;
C=C.toUpperCase();var T=iL.WS(C);if(T.Y9){L.E0();k=T.aR(L,U,E,Y,z)}else{var P=iL.Tg(L),b=P[0],Q=P[1],K;
if(L.vI.length!=0){K=[];for(var H=0;H<L.vI.length;H++)K.push(L.vI[H].X8(r))}if(b.length<2){var h;if(U==L.d&&E==L.v)h=L.E0().buffer;
else{var x=W.o.dy([L.E0(),r],p);h=x.buffer.buffer}k=T.aR([[h,0,L._Q,L.Ii,K]],U,E,Y)}else{var O=[];for(var H=0;
H<b.length;H++){var y=b[H],h;for(var v=0;v<b.length;v++)L.N[b[v]].Qs(b[v]==y);L.oQ();L.s();L.nU();if(U==L.d&&E==L.v)h=L.E0().buffer.slice(0);
else{var x=W.o.dy([L.E0(),r],p);h=x.buffer.buffer}var i=L.N[y].getName().split(",");O.push([h,i[1]?parseInt(i[1]):100,L._Q,L.Ii,K])}for(var H=0;
H<b.length;H++)L.N[b[H]].Qs(Q[H]);L.s();L.nU();if(Y){var D=Y.length,I=Y[D-2],m=Y[D-1],f=Y[D-4]/100;if(f!=1)for(var H=0;
H<O.length;H++)O[H][1]=Math.round((O[H][1]==0?16:O[H][1])/f);if(I)O.reverse();if(m){var A=O.slice(1,O.length-1);
A.reverse();O=O.concat(A)}}k=T.aR(O,U,E,Y)}}return k};iL.KG=function(L,C){var U=C[0].Qz&&C[0].Qz.startsWith("_a_"),E,Y=new b7(L+".psd"),z=new _(0,0,1,1);
if(U){E=Y.wP();E.add.lsct=fI.Qr;E.I_(L);E.B4="pass";E.bP=24;E.Qs(!0);Y.N.push(Y.rJ())}for(var H=0;H<C.length;
H++){var r=C[H];z=z.EU(r.bl);var p=Y.wP();p.Qs(H==0);p.I_(C.length==1?"Background":"Layer "+H);if(r._Q)Y._Q=r._Q;
if(r.Ii)Y.Ii=r.Ii;if(r.Qz)p.I_(r.Qz);if(r.Ly)for(var H=0;H<r.Ly.length;H++){var T=r.Ly[H],k=b7.YE(T[0]);
k.add.vmsk.n=T[1];c.Y.IL(T[1],new c0(z.d,0,0,z.v,0,0));Y.Jd.push(k)}p.rect=r.bl.clone();p.buffer=new Uint8Array(r.data);
c.Xb(p);Y.N.push(p)}if(U)Y.N.push(E);if(C[0].vI){for(var H=0;H<C[0].vI.length;H++){var P=new o.LF;Y.vI.push(P);
P.rect=C[0].bl.clone();P.channel=C[0].vI[H]}}Y.C=[U?Y.N.length-1:0];Y.d=z.d;Y.v=z.v;Y.buffer=c.F(z.X()*4);
Y.s();return Y};iL.CA={};iL.CA.aR=function(L,C,U,E){if(E==null)E=[100,!1,0,0,0];var Y={sRGB:1,loop:E[3]};
if(L[0][2]!=null){var z=Math.round(L[0][2]*(1e4/254));Y.pHYs=[z,z,1]}var r=E[0],p=r==100?0:Math.max(2,Math.floor(r*5));
if(p==5)p=4;var T=[],k=[];for(var H=0;H<L.length;H++){T.push(L[H][0]);k.push(L[H][1])}var P=UPNG.encode(T,C,U,p,k,Y,E[1]);
return P};iL.CA.a71=function(L,C,U){return UPNG.encodeLL([L],C,U,3,1,8)};iL.CA.ER=function(L){var C=Date.now(),U=UPNG.decode(L),E=UPNG.toRGBA8(U),Y=U.width,z=U.height,r=0;
if(U.tabs.pHYs)r=Math.round(U.tabs.pHYs[0]*254/1e4);if(E.length==1)return[{bl:new _(0,0,Y,z),data:E[0],_Q:r}];
var p=[];for(var H=0;H<E.length;H++){p.push({Qz:"_a_frm"+H+","+U.frames[H].delay,bl:new _(0,0,Y,z),data:E[H],_Q:r})}return p};
iL.EG={};iL.EG.aR=function(L,C,U,E){var Y=new Uint8Array(L[0][0]),z=C*U,r=z*3,p="P6\n"+C+" "+U+"\n255\n",T=p.length,k=c.F(T+r,!0);
for(var H=0;H<T;H++)k[H]=p.charCodeAt(H);for(var H=0;H<z;H++){var P=H*4,b=H*3+T;k[b]=Y[P];k[b+1]=Y[P+1];
k[b+2]=Y[P+2]}return k.buffer};iL.EG.ER=function(L){L=new Uint8Array(L);var C=[" ".charCodeAt(0),"\n".charCodeAt(0),"\t".charCodeAt(0),"\r".charCodeAt(0)],U=0,E=String.fromCharCode(L[0])+String.fromCharCode(L[1]),Y=[],z=0,r=E=="P1"||E=="P4"?2:3;
for(U=2;U<L.length;U++){var p=L[U],T=String.fromCharCode(p);if(p=="#".charCodeAt(0)){while(L[U]!="\n".charCodeAt(0))U++;
continue}var k=C.indexOf(p)!=-1;if(z==0&&!k){Y.push(T);z=1;continue}if(z==1&&!k){Y[Y.length-1]+=T;continue}if(z==1&&k){z=0;
if(Y.length==r)break;continue}}var P=parseInt(Y[0]),b=parseInt(Y[1]),Q=P*b*4,K=E=="P1"||E=="P4"?1:255/parseInt(Y[2]),h=c.F(Q);
if(E=="P1"||E=="P2"||E=="P3"){var x="",O=0,z=0,y="#".charCodeAt(0);for(var H=U;H<L.length;H++){var p=L[H],T=String.fromCharCode(p),k=C.indexOf(p)!=-1;
if(p==y){while(L[H]!="\n".charCodeAt(0))H++}else if(z==0&&!k){x=T;z=1}else if(z==1){if(k){z=0;var v=parseInt(x);
x="";if(E=="P1"){h[O]=h[O+1]=h[O+2]=(1-v)*255;h[O+3]=255;O+=4}if(E=="P2"){h[O]=h[O+1]=h[O+2]=Math.round(v*K);
h[O+3]=255;O+=4}if(E=="P3"){h[O]=Math.round(v*K);O++;if((O&3)==3){h[O]=255;O++}}}else x+=T}}}var i=P*b;
if(E=="P4")for(var D=0;D<b;D++){var I=D*8*Math.ceil(P/8);for(var m=0;m<P;m++){var H=I+m,f=L[U+1+(H>>3)];
f=f>>7-(H&7)&1;var A=D*P+m<<2;h[A]=h[A+1]=h[A+2]=(1-f)*255;h[A+3]=255}}if(E=="P5")for(var H=0;H<i;H++){var A=4*H;
h[A]=h[A+1]=h[A+2]=Math.round(L[U+1+H]*K);h[A+3]=255}if(E=="P6")for(var H=0;H<i;H++){var A=4*H,d=U+1+3*H;
h[A]=Math.round(L[d]*K);h[A+1]=Math.round(L[d+1]*K);h[A+2]=Math.round(L[d+2]*K);h[A+3]=255}return[{bl:new _(0,0,P,b),data:h.buffer}]};
iL.sz={};iL.sz.aR=function(L,C,U,E){var Y=new Uint8Array(L[0][0]);if((C&3)!=0||(U&3)!=0){var z=C+(4-(C&3)),r=U+(4-(U&3)),p=new Uint8Array(z*r*4);
c.n0(p,4278190080);c.La(Y,new _(0,0,C,U),p,new _(0,0,z,r));Y=p;C=z;U=r}return UTEX.DDS.encode(Y.buffer,C,U)};
iL.sz.ER=function(L){var C=UTEX.DDS.decode(L)[0];return[{bl:new _(0,0,C.width,C.height),data:C.image}]};
iL.AB={};iL.AB.ER=function(L){var C=UTEX.VTF.decode(L).pop();return[{bl:new _(0,0,C.width,C.height),data:C.image}]};
iL.X_={};iL.X_.Pm=null;iL.X_.ao7=function(L,C){var U=iL.X_.Pm,E=L.byteLength,Y=C.width,z=C.height,r=Y*z,p=5e6+2*E+r*(C.progressive?Math.max(2,C.numComponents)*4+1:8),T=U.instance.exports,k=T.memory.buffer.byteLength;
if(k<p)T.memory.grow(p-k>>>16);var P=new Uint8Array(T.memory.buffer),b=T.malloc(E);P.set(new Uint8Array(L),b);
var Q=T.malloc(4),K=T.malloc(4),u=T.malloc(4),h=T.stbi_load_from_memory(b,E,Q,K,u,4);T.free(b);T.free(Q,K,u);
T.free(h);var x=P.slice(h,h+r*4);return x};(function(){var L=fZ.get("wasm/jpg").buffer;if(window.WebAssembly==null)window.alert("Your browser is too old. Please, update it.");
WebAssembly.instantiate(L).then(function(C){iL.X_.Pm=C})}());iL.X_.aR=function(L,C,U,E){if(E==null)E=[70];
var Y=L[0],z=new Uint8Array(Y[0]);if(c.Db(z)){var r=new Uint8Array(z.length),p=new _(0,0,C,U);c.n0(r,4294967295);
c.Q.Kj("norm",z,p,r,p,p,1);z=r}var T=new Uint8Array(iL.AG(z.buffer,C,U,"jpeg",E[0]/100));if(Y[2]!=null){var k=iL.X_.TN(T)[224][0]+2;
k+=9;T[k]=1;$.OH(T,k+1,Y[2]);$.OH(T,k+3,Y[2])}if(Y[3]!=null&&E[1]==!0&&Object.keys(Y[3]).length!=0){var P=0,b=0,Q=0,K=bd.AQ(Y[3]),h=new Uint8Array(UTIF.encode([K])),x="http://ns.adobe.com/xap/1.0/",i=0,m=0,X=20;
P=4+6+h.length;var O=bd.BV(Y[3]),y=$.RK(O);b=4+x.length+1+y.length;var v=bd.agM(Y[3]);for(var H=0;H<v.length;
H++)i+=5+v[H][1].length;var D=i+(i&1),I=c.F(14+4+2+4+D);$.Ti(I,m,"Photoshop 3.0");m+=14;$.Ti(I,m,"8BIM");
m+=4;I[m++]=4;I[m++]=4;m+=2;$.Iy(I,m,i);m+=4;for(var H=0;H<v.length;H++){var f=v[H],A=f[1];I[m++]=28;
I[m++]=2;I[m++]=f[0];$.OH(I,m,A.length);m+=2;$.Ti(I,m,A);m+=A.length}Q=4+I.length;var d=P+b+Q,g=new Uint8Array(T.length+d);
for(var H=0;H<20;H++)g[H]=T[H];for(var H=20;H<T.length;H++)g[H+d]=T[H];g[X]=255;g[X+1]=225;$.OH(g,X+2,P-2);
$.Ti(g,X+4,"Exif");for(var H=0;H<h.length;H++)g[X+10+H]=h[H];X+=P;g[X]=255;g[X+1]=225;$.OH(g,X+2,b-2);
$.Ti(g,X+4,x);for(var H=0;H<y.length;H++)g[X+4+x.length+1+H]=y[H];X+=b;g[X]=255;g[X+1]=237;$.OH(g,X+2,Q-2);
for(var H=0;H<I.length;H++)g[X+4+H]=I[H];X+=Q;T=g}return T.buffer};iL.X_.TN=function(L){var C=0,U=[],E=L.length;
while(C<E){while(L[C]==255)C++;var Y=L[C];C++;if(U[Y]==null)U[Y]=[];U[Y].push(C-2);if(Y==216)continue;
if(Y==217)break;if(224<=Y&&Y<=239||Y==218||Y==219||Y==192||Y==193||Y==194||Y==196||Y==221||Y==254){var z=$.lb(L,C);
C+=z;if(Y==218)while(C<E&&(L[C]!=255||(L[C+1]==0||208<=L[C+1]&&L[C+1]<=215)))C++;continue}console.log("unknown marker ",Y.toString(16),C);
break}if(U[217]==null){console.log("EOI marker missing");var r=L.length-2;L[r]=255;L[r+1]=217;U[217]=[r]}return U};
iL.X_.aiW=function(L){L=new Uint8Array(L);if(L[0]!=255)return L.buffer;var C=iL.X_.TN(L),U=iL.X_.tK(L,C);
if(U.numComponents!=4)return L.buffer;var E=U.width,Y=U.height,z=iL.X_.BS(L,C,!0);return iL.X_.aR([[z[0].data]],E,Y,[85])};
iL.X_.tK=function(L,C){var U=(C[192]?C[192]:C[193]?C[193]:C[194])[0]+4,E={};E.progressive=C[194]!=null;
E.precision=L[U];U++;E.height=$.lb(L,U);U+=2;E.width=$.lb(L,U);U+=2;E.numComponents=L[U];U++;if(C[224]){var Y=E.jfif={};
U=C[224][0]+2+2+5+2;Y.densityUnits=L[U];U++;Y.xDensity=$.lb(L,U);U+=2;Y.yDensity=$.lb(L,U);U+=2}if(C[238]){var Y=E.adobe={};
U=C[238][0]+2+2+6;Y.version=L[U];U++;Y.flags0=$.lb(L,U);U+=2;Y.flags1=$.lb(L,U);U+=2;Y.transform=L[U];
U++}return E};iL.X_.ahB=function(L,C,U){var E=C,Y=$.lb(L,E);E+=2;var z=$.ZA(L,E,4);if(z=="Exif"){E+=6;
var r=L.slice(E,E+Y-8),p;try{p=UTIF.decode(r.buffer,{parseMN:!1,debug:!1})}catch(gS){}if(p)U.exif=p}else if(z=="http"){var T=0;
while(L[E+T]!=0)T++;var k=$.ZA(L,E,T);E+=T+1;if(k=="http://ns.adobe.com/xmp/extension/"){var P=$.ZA(L,E,32);
E+=32;E+=8;var b=C+Y-E;while(L[E+b-1]==0)b--;if(U.xmp_extn==null)U.xmp_extn="";try{U.xmp_extn+=$.IQ(L,E,b)}catch(gS){}}else if(k=="http://ns.adobe.com/xap/1.0/"){var Q=$.IQ(L.slice(E,E+Y-T-3));
if(Q[0]=="?")Q="<"+Q;U.xmp=Q}}else console.log(z)};iL.X_.BS=function(L,C,U){var E=iL.X_.tK(L,C),Y=E.width,z=E.height,r=Y*z,p,T=-1,x=72,O;
if(E.adobe)T=E.adobe.transform;if(U||Y*z>15e7||T==0||T==2){var k=new PDFJS.JpegImage;k.parse(L);var P=k.getData({width:Y,height:z,forceRGB:!0,isSourcePDF:U}),p=c.F(r*4);
for(var H=0;H<r;H++){var b=H<<2,Q=b-H;p[b]=P[Q];p[b+1]=P[Q+1];p[b+2]=P[Q+2];p[b+3]=255}}else{p=iL.X_.ao7(L.buffer,E)}var K=C[225];
if(K)for(var H=0;H<K.length;H++)iL.X_.ahB(L,K[H]+2,E);var h=C[217][0]+2;if(h!=L.length)E.suffix=L.slice(h);
var y=[Y,z,1,0,0,0,1,0];if(E.jfif&&E.jfif.densityUnits!=0){x=Math.round([72,1,2.54][E.jfif.densityUnits]*E.jfif.xDensity)}else if(E.exif&&E.exif[0].t282!=null){var v=E.exif[0].t282[0];
x=v[0]/v[1]}if(E.exif){var i=E.exif;O=bd.L7(i[0]);var D=i[0].t274;if(D)D=D[0];if(D!=null&&D>1&&D<20)y=c.raw.u6(D,Y,z)}if(E.xmp){O=bd.QL(E.xmp,O)}var I=C[237],m=[],f=[];
if(I){var A=new Uint8Array(65536),d=0,g=0;for(var H=0;H<I.length;H++){g=I[H]+2;var X=g+$.lb(L,g);g+=2;
var n=g;while(L[g]!=0)g++;g++;var R=$.ZA(L,n,g-n-1),l=X-g;while(d+l>A.length){var w=new Uint8Array(A.length*2);
w.set(A);A=w}var V=new Uint8Array(L.buffer,g,l);A.set(V,d);d+=l}g=0;L=A;while(g<d){var F=$.ZA(L,g,4);
g+=4;if(F!="8BIM"&&F!="AgHg"&&F!="PHUT"&&F!="DCSR")throw F;var Z=$.lb(L,g);g+=2;var M=L[g++],a=$.ZA(L,g,M);
g+=M;if((M&1)==0)g++;var e=$.i(L,g);g+=4;var h=g+e+(e&1);if(Z==1028){while(g+4<h){var N=L[g++],J=L[g++],s=L[g++],f5=$.lb(L,g);
g+=2;if(N==28&&J==2)m.push([s,$.ZA(L,g,f5)]);g+=f5}}else if((Z&2e3)==2e3){var dx=fA.LB(L,g,e);f.push([a,dx])}else{}g=h}if(m.length!=0)O=bd.a7F(m,O)}var fq=[{bl:new _(0,0,Y,z),data:p.buffer,_Q:x,Ii:O,Ly:f.length==0?null:f}],O=E.xmp_extn;
if(O){var i9=new DOMParser,e8=i9.parseFromString(O,"image/svg+xml"),e8=e8.children[0].children[0].children[0],S=[e8.getAttribute("GImage:Data"),e8.getAttribute("GDepth:Data")];
for(var H=0;H<S.length;H++)if(S[H]){var fs=atob(S[H]),bz=new Uint8Array(fs.length);$.Ti(bz,0,fs);bz=bz.buffer;
var g6=iL.lc(bz),al=iL.WS(g6).ER(bz);fq.push(al[0])}}if(E.suffix){var bj=E.suffix,bE=$.ZA(bj,4,4),eN=$.r1(bj,String.fromCharCode(255)+String.fromCharCode(216)+String.fromCharCode(255));
if(iL.V0(bj,[0,0,1,10,14,0,0,0])){var g=0;while(g!=bj.length){var dk=$.PJ(bj,g+2);g+=4;var hj={2272:12,2320:21,2561:13,2625:21,2721:3,2608:0}[dk];
if(hj!=null){var iN=$.Nl(bj,g);g+=4;var dK=$.ZA(bj,g,iN);g+=iN;var ch=$.ZA(bj,g,hj);g+=hj;if(dk==2608){var hP=$.i(bj,g+24);
g+=hP+24;var d2=$.i(bj,g);g+=d2;alert("Photopea found a "+eJ.Uy(hP)+" MP4 video inside your image.",4e3)}}else if(dk==18502){while($.ZA(bj,g,4)!="SEFT")g+=4;
g+=4}else{break;console.log($.l9(bj,g,128));console.log(bj.slice(g));throw dk.toString(16)}}}else if(bE=="ftyp"){alert("Photopea found a "+eJ.Uy(bj.length)+" MP4 video inside your image.",4e3)}else if($.ZA(bj,0,4)=="fixe"){alert("Unknown data - "+bj.length+" B - at the end of the file",3e3);
var g=4,e=$.Nl(bj,g);g+=4;var hr=$.Nl(bj,g);g+=4;var fv=$.Nl(bj,g);g+=4;console.log(e,hr,fv,bj.slice(g,g+84));
g+=84;var f3=$.ZA(bj,g,32);g+=32;g+=8;var f3=$.ZA(bj,g,32);g+=32}else if($.ZA(bj,8,13)=="FocusShot_Map"){var dp=$.i(bj,0),f5=$.Nl(bj,4),bz=c.F(r*4),go=c.F(r*4);
for(var d6=0;d6<z;d6++)for(var iB=0;iB<Y;iB++){var H=d6*Y+iB,b=H<<2,hS=8+13+((d6>>>1)*Y+iB>>>1),eF=bj[hS],bQ=bj[hS+(r>>>2)];
bz[b]=bz[b+1]=bz[b+2]=eF;bz[b+3]=255;go[b]=go[b+1]=go[b+2]=bQ;go[b+3]=255}fq.push({bl:new _(0,0,Y,z),data:bz.buffer},{bl:new _(0,0,Y,z),data:go.buffer})}else if(bE=="edof"){var D=bj[8+7];
console.log(D.toString(16));var g=8+16,iP=$.PJ(bj,g),d8=$.PJ(bj,g+2),r=iP*d8;g+=4;g+=32+16;var a6=c.F(r*4);
for(var H=0;H<r;H++){var b=H<<2;a6[b]=a6[b+1]=a6[b+2]=bj[g+H];a6[b+3]=255}if(D==16){}else if(D==19){var am=a6.slice(0);
c.I.t$(a6,am,iP,d8);var fj=iP;iP=d8;d8=fj;c.I.acs(am,a6,iP,d8)}else throw"Unknown orientation of a depth map";
fq.push({bl:new _(0,0,iP,d8),data:a6.buffer})}else if(eN!=-1&&!(bj[0]==255&&bj[1]==129)){try{if(eN!=0)bj=bj.slice(eN);
var al=iL.WS("jpg").ER(bj.buffer);for(var H=0;H<al.length;H++)fq.push(al[H])}catch(gS){}}}if(fq.length>1){var dX=fq[0].bl;
fq[0].Qz="Main";for(var H=1;H<fq.length;H++){fq[H].Qz=iL.X_.akM(new Uint8Array(fq[H].data))?"Depth Map":null;
var gc=fq[H].bl;if(!gc.cg(dX)){var dz=dX.d/gc.d,gE=dX.v/gc.v,cQ=new c0;cQ.scale(dz,gE);var fi=W.o.WC([new Uint8Array(fq[H].data),gc],1,c.I.BL(cQ));
fq[H].bl=fi.rect;fq[H].data=fi.buffer}}}if(iL.X_.MD==1)if(y[2]!=1||y[6]!=1)for(var H=0;H<fq.length;H++){var dB=fq[H],bp=new Uint8Array(dB.data),Y=dB.bl.d,z=dB.bl.v,iP=y[0],d8=y[1],p=c.F(iP*d8*4);
c.I.fw(bp,Y,z,p,y);dB.bl=new _(0,0,iP,d8);dB.data=p.buffer}return fq};iL.X_.akM=function(L){var C=!0;
for(var H=0;H<L.length;H+=4){C=C&&L[H]==L[H+1]&&L[H+1]==L[H+2]}return C};iL.X_.MD=0;iL.X_.ER=function(L,C,U){L=new Uint8Array(L);
if(L[0]==255){var E=iL.X_.TN(L);if(E[195]==null){iL.X_.MD++;var Y=iL.X_.BS(L,E,!1);iL.X_.MD--;return Y}var z=$.lb(L,E[195][0]+5),r=$.lb(L,E[195][0]+7),p=UTIF.LosslessJpegDecode(L),T=r*z,k=c.F(T*4);
for(var H=0;H<T;H++){var P=H<<2,b=P-H;k[P]=p[b];k[P+1]=p[b+1];k[P+2]=p[b+2];k[P+3]=255}return[{bl:new _(0,0,r,z),data:k.buffer}]}else if(L[0]==0&&L[4]==48&&L[6]==1){var Q=L,K=new PDFJS.Jbig2Image,h=[];
if(C)h.push({data:C,start:0,end:C.length});h.push({data:Q,start:0,end:Q.length});var p=K.parseChunks(h);
if(!U)for(var H=0;H<p.length;H++)p[H]=~p[H];var r=$.i(L,11),z=$.i(L,15),x=Math.ceil(r/8),O=c.F(r*z*4);
for(var y=0;y<z;y++){var v=y*x;for(var i=0;i<r;i++){var P=(y*r+i)*4,D=p[v+(i>>>3)]>>>7-(i&7)&1,I=D*255;
O[P]=I;O[P+1]=I;O[P+2]=I;O[P+3]=255}}return[{bl:new _(0,0,r,z),data:O.buffer}]}else{var K=new PDFJS.JpxImage;
K.parse(L);var r=K.width,z=K.height,m=K.tiles,f=K.componentsCount,A=new Uint8Array(r*z*4),d=new _(0,0,r,z);
for(var K=0;K<m.length;K++){var g=m[K],X=g.width,n=g.height,R=X*n,e4=g.items,l=new _(g.left,g.top,X,n),w=new Uint8Array(R*4);
if(f==1)for(var H=0;H<R;H++){var V=e4[H],P=H*4;w[P]=V;w[P+1]=V;w[P+2]=V;w[P+3]=255}else if(f==3)for(var H=0;
H<R;H++){var b=H*3,P=H*4;w[P]=e4[b];w[P+1]=e4[b+1];w[P+2]=e4[b+2];w[P+3]=255}else console.log("Unknown number of components: "+f);
c.La(w,l,A,d)}return[{bl:d,data:A.buffer}]}};iL.cv={};iL.cv.aR=function(L,C,U,E){if(E==null)E=[70,0,0,0];
var Y=E[0]/100,T=0;if(L.length==1)return iL.AG(L[0][0],C,U,"webp",Y);var z=$.Jv,r=$.kE,p=new d0;z(p,T,"RIFF    WEBPVP8X");
T+=16;r(p,T,10);T+=4;r(p,T,18);T+=4;r(p,T,C-1);T+=3;r(p,T,U-1);T+=3;z(p,T,"ANIM");T+=4;r(p,T,6);T+=4;
p.bF(T,4);p.data[T+3]=255;$.ux(p,T+4,E[2]);T+=6;var k=[];for(var H=0;H<L.length;H++){k.push(L[H][0])}var P=UPNG.encode.compress(k,C,U,Y==1?0:Math.max(2,Math.floor(Y*500)),[!1,!0,!0,0,!0]).frames;
for(var H=0;H<L.length;H++){z(p,T,"ANMF");T+=4;var b=T;T+=4;var Q=P[H],K=Q.rect,h=[K.x>>>1,K.y>>>1,K.width-1,K.height-1,L[H][1]];
for(var x=0;x<5;x++)r(p,T+3*x,h[x]);T+=15;p.bF(T,1);p.data[T]=1-Q.blend<<1|Q.dispose;T++;var O=new Uint8Array(iL.AG(Q.img.buffer,K.width,K.height,"webp",1)),y=c3.Vu(O.buffer).sub,v=$.ZA(O,12,4);
if(v!="VP8L"&&v!="VP8 "&&v!="VP8X")throw"e";var i=v=="VP8 "?0:v=="VP8L"?12:30,D=O.length-i;p.bF(T,D);
for(var x=0;x<D;x++)p.data[T+x]=O[i+x];T+=D;var I=T-b-4;r(p,b,I);if((I&1)==1){p.bF(T,1);T++}}r(p,4,T-8);
return p.data.slice(0,T).buffer};(function(){var L=fZ.get("wasm/webp").buffer;WebAssembly.instantiate(L).then(function(C){var U=C.instance.exports;
iL.cv.exp=U})}());iL.cv.ER=function(L){var C=new Uint8Array(L),U=iL.cv.a8J,E=null,Y=c3.Vu(L).sub,z={};
for(var H=0;H<Y.length;H++)z[Y[H].Ea]=Y[H];var r=z.ANIM,p=z.VP8L,T=z["VP8 "],k=z.VP8X;if(r==null){var P,b;
if(T){P=$.PJ(C,T.g+6);b=$.PJ(C,T.g+8)}else if(p){var Q=$.Nl(C,p.g+1);P=(Q&(1<<14)-1)+1;b=(Q>>>14&(1<<14)-1)+1}else throw"e";
var K=[U(E,L,{g:0,size:C.length},P,b)];return K}var h=k.g,P=1+($.Nl(C,h+4)&16777215),b=1+($.Nl(C,h+7)&16777215),x=[],O=new _(0,0,P,b),y=c.F(P*b*4);
for(var H=0;H<Y.length;H++){var v=Y[H];if(v.Ea!="ANMF")continue;var i=[];for(var D=0;D<5;D++)i.push($.Nl(C,v.g+D*3)&16777215);
var I=new _(i[0]*2,i[1]*2,i[2]+1,i[3]+1),m=i[4],f=U(E,L,{g:v.g+16,size:v.size-16},P,b),A=new Uint8Array(f.data),d=C[v.g+15];
if(d>>>1==0)c.Q.Kj("norm",A,I,y,O,I,1);else c.La(A,I,y,O);x.push({Qz:"_a_"+x.length+","+m,bl:O.clone(),data:y.buffer.slice(0)});
if((d&1)==1){c.n0(A,0);c.La(A,I,y,O)}}return x};iL.cv.a8J=function(L,C,U,E,Y){var z=iL.cv.exp,r=5e6+2*U.size+E*Y*10,p=z.memory,T=p.buffer.byteLength;
if(T<r){z.memory.grow((r-T>>>16)+1)}var k=new Uint8Array(p.buffer),P=z.malloc(U.size);k.set(new Uint8Array(C,U.g,U.size),P);
var b=z.malloc(8),Q=z.WebPDecodeARGB(P,U.size,b,b+4),K=$.Nl(k,b),h=$.Nl(k,b+4),x=K*h*4,O=c.F(x);for(var H=0;
H<x;H+=4){O[H]=k[Q+H+1];O[H+1]=k[Q+H+2];O[H+2]=k[Q+H+3];O[H+3]=k[Q+H]}z.WebPFree(Q);z.free(b);z.free(P);
return{bl:new _(0,0,K,h),data:O.buffer}};iL.a0g=function(){function L(p,T,k,P){var b=new Uint8Array(p[0][0]),Q=new Uint32Array(b.buffer),K=[],h={},O=24,y=0,m=0;
for(var H=0;H<Q.length;H++){var x=Q[H]&16777215;if(h[x]==null){h[x]=K.length;K.push(x);if(K.length>256){K=null;
break}}}if(K){O=1;while(1<<O<K.length)O*=2;if(O==2)O=4}var v={aU:T,fg:k,wA:1,k7:O,bS:0,abI:y},i=4*Math.floor((v.k7*v.aU+31)/32);
v.size=i*v.fg+2;var D=new d0,I=K?(1<<O)*4:0;$.Jv(D,m,"BM");m+=2;$.kE(D,m,i*k+16+40+I);m+=4;$.kE(D,m,0);
m+=4;$.kE(D,m,54+I);m+=4;D.bF(m,40);$.kE(D,m,40);m+=4;r(D.data,m,v,i);m+=36;if(K){D.bF(m,I);var f=D.data;
for(var H=0;H<K.length;H++){var A=m+H*4,d=K[H]>>>16,g=K[H]>>>8&255,X=K[H]&255;f[A]=d;f[A+1]=g;f[A+2]=X}m+=I}D.bF(m,i*k);
if(O==24)for(var n=0;n<k;n++){var R=m+(k-1-n)*i;for(var l=0;l<T;l++){var w=(n*T+l)*4;D.data[R+l*3+2]=b[w];
D.data[R+l*3+1]=b[w+1];D.data[R+l*3+0]=b[w+2]}}else if(O==8)for(var n=0;n<k;n++){var R=m+(k-1-n)*i;for(var l=0;
l<T;l++){var w=n*T+l,V=h[Q[w]&16777215];D.data[R+l]|=V}}else if(O==4)for(var n=0;n<k;n++){var R=m+(k-1-n)*i;
for(var l=0;l<T;l++){var w=n*T+l,V=h[Q[w]&16777215];D.data[R+(l>>>1)]|=V<<4-(l&1)*4}}else if(O==1)for(var n=0;
n<k;n++){var R=m+(k-1-n)*i;for(var l=0;l<T;l++){var w=n*T+l,V=h[Q[w]&16777215];D.data[R+(l>>>3)]|=V<<7-(l&7)}}m+=i*k+2;
return D.data.slice(0,m).buffer}function C(p){p=new Uint8Array(p);if($.Nl(p,0)==40)return[U(p.buffer,0)];
var T=0,k=$.ZA(p,T,2);T+=2;if(k!="BM"){alert("Unsupported BMP format: "+k);return}var P=$.Nl(p,T);T+=4;
T+=4;var b=$.Nl(p,T);T+=4;return[U(p.buffer,T,b)]}function U(p,T,k){p=new Uint8Array(p);var P=$.Nl(p,T),b=z(p,T+4);
if(b.wA!=1)alert("unsupported number of color planes: "+b.wA);if(b.bS!=0&&b.bS!=1&&b.bS!=2&&b.bS!=3){alert("Unsupported BMP compression: "+b.bS);
return}T+=P;var Q=T,K=p;if(k==null)k=T;if(b.bS==1||b.bS==2){var h=Y(p,k,b);b.k7=8;p=h;k=0}var x=4*Math.floor((b.k7*b.aU+31)/32),O=b.aU,y=Math.abs(b.fg),v=new Uint8Array(O*y*4);
v.fill(255);if(b.k7==32)for(var i=0;i<y;i++){var D=k+(y-1-i)*x;for(var I=0;I<O;I++){var m=(i*O+I)*4;
v[m]=p[D+I*4+2];v[m+1]=p[D+I*4+1];v[m+2]=p[D+I*4+0];v[m+3]=p[D+I*4+3]}}else if(b.k7==24)for(var i=0;
i<y;i++){var D=k+(y-1-i)*x;for(var I=0;I<O;I++){var m=(i*O+I)*4;v[m]=p[D+I*3+2];v[m+1]=p[D+I*3+1];v[m+2]=p[D+I*3+0]}}else if(b.k7==16)for(var i=0;
i<y;i++){var D=k+(y-1-i)*x;for(var I=0;I<O;I++){var m=(i*O+I)*4,f=p[D+I*2+1]<<8|p[D+I*2];v[m]=(f>>>11)*(255/31);
v[m+1]=(f>>>5&63)*(255/63);v[m+2]=(f&31)*(255/31)}}else if(b.k7==8)for(var i=0;i<y;i++){var D=k+(y-1-i)*x;
for(var I=0;I<O;I++){var m=(i*O+I)*4,A=p[D+I];v[m]=K[Q+4*A+2];v[m+1]=K[Q+4*A+1];v[m+2]=K[Q+4*A+0]}}else if(b.k7==4)for(var i=0;
i<y;i++){var D=k+(y-1-i)*x;for(var I=0;I<O;I++){var m=(i*O+I)*4,A=p[D+(I>>1)];A=A>>4-4*(I&1);A=A&15;
v[m]=K[Q+4*A+2];v[m+1]=K[Q+4*A+1];v[m+2]=K[Q+4*A+0]}}else if(b.k7==1)for(var i=0;i<y;i++){var D=k+(y-1-i)*x;
for(var I=0;I<O;I++){var m=(i*O+I)*4,d=p[D+(I>>3)];d=d>>7-(I&7);d=d&1;v[m]=K[Q+4*d+2];v[m+1]=K[Q+4*d+1];
v[m+2]=K[Q+4*d+0]}}else throw"Unknown bit depth "+b.k7;if(b.fg<0){var g=new Uint32Array(v.buffer),X=y>>>1;
for(var i=0;i<X;i++){var n=i*O,R=(y-i-1)*O;for(var I=0;I<O;I++){var l=g[n+I];g[n+I]=g[R+I];g[R+I]=l}}}return{bl:new _(0,0,O,y),data:v.buffer}}function E(p,H){return p>>>4-((H&1)<<2)&15}function Y(p,T,k){var P=k.aU,b=Math.abs(k.fg),Q=new Uint8Array(P*b),K=0,h=0,H=0;
while(h<b){var x=p[T++],O=p[T++],y=h*P+K;if(x>0){if(k.k7==4)for(H=0;H<x;H++){Q[y+H]=E(O,H)}else for(H=0;
H<x;H++){Q[y+H]=O}K+=x}else if(x==0&&O==0){h++;K=0}else if(x==0&&O==1){break}else if(x==0&&O==2){K+=p[T++];
h+=p[T++]}else{var v=O;if(k.k7==4){for(H=0;H<O;H++){Q[y+H]=E(p[T+(H>>>1)],H)}v=Math.ceil(O/2)}else{for(H=0;
H<O;H++){Q[y+H]=p[T+H]}}if((v&1)!=0)v++;T+=v;K+=O}}return Q}function z(p,T){var k=$.c3,P=$.Nl,b=$.PJ,Q={};
Q.aU=k(p,T);T+=4;Q.fg=k(p,T);T+=4;Q.wA=b(p,T);T+=2;Q.k7=b(p,T);T+=2;Q.bS=P(p,T);T+=4;Q.size=P(p,T);T+=4;
var K=k(p,T);T+=4;var h=k(p,T);T+=4;Q.abI=P(p,T);T+=4;T+=4;return Q}function r(p,T,k,P){$.Zg(p,T,k.aU);
T+=4;$.Zg(p,T,k.fg);T+=4;$.R3(p,T,k.wA);T+=2;$.R3(p,T,k.k7);T+=2;$.Zg(p,T,k.bS);T+=4;$.Zg(p,T,k.size);
T+=4;$.Zg(p,T,2834);T+=4;$.Zg(p,T,2834);T+=4;$.Zg(p,T,k.abI);T+=4;T+=4}return{ER:C,aR:L,a1I:U}}();iL.UC={};
iL.UC.aR=function(L,C,U,E){if(E==null)E=[100,0,0,0,0];var Y=[],z=[],r=C*U*4,x=null;for(var p=0;p<L.length;
p++){var T=new Uint8Array(L[p][0].slice(0));for(var H=0;H<r;H+=4){var k=T[H+3]=T[H+3]>127?255:0;if(k==0)T[H]=T[H+1]=T[H+2]=0}Y.push(T.buffer);
z.push(L[p][1])}var P=Math.round(2+254*E[0]/100),b=UPNG.encode.compress(Y,C,U,P,[!0,!1,!1,8,!1]),Q=b.plte,K=new Uint8Array(4),h=new Uint32Array(K.buffer);
for(var H=0;H<Q.length;H++){h[0]=Q[H];var O=K[0];K[0]=K[2];K[2]=O;Q[H]=h[0];if(h[0]==0)x=H}while(Q.length<256)Q.push(0);
var y=new Uint8Array(2e3+C*U*L.length),v=E[2],i={palette:Q};if(v!=1)i.loop=v==0?0:v-1;var D=new GifWriter(y,C,U,i);
for(var H=0;H<L.length;H++){var I=b.frames[H],m=I.rect,f=I.blend,A=I.dispose;D.addFrame(m.x,m.y,m.width,m.height,I.img,{transparent:x,disposal:A+1,delay:Math.round(z[H]/10)})}return y.slice(0,D.end()).buffer};
iL.UC.ER=function(L){var C=Date.now(),U=[],E=UGIF.decode(L),Y=UGIF.toRGBA8(E),z=new _(0,0,E.width,E.height);
for(var H=0;H<Y.length;H++){var r=E.frames[H];U.push({bl:z.clone(),Qz:"_a_frm"+H+","+r.delay*10,data:Y[H]})}return U};
iL.ig={};iL.ig.aR=function(L,C,U,E){console.log(L);if(C>256||U>256){alert("Maximum ICO size is 256x256 px. Will be cropped.",4e3);
var Y=Math.min(C,256),z=Math.min(U,256),r=new _(0,0,Y,z),p=c.F(r.X()*4),T=new _(0,0,C,U),k=new Uint8Array(L[0][0]);
c.La(k,T,p,r);L[0][0]=p.buffer;C=Y;U=z}var P=new d0,b=0,Q=E&&E[0]==!0;$.ux(P,b,0);b+=2;$.ux(P,b,Q?2:1);
b+=2;$.ux(P,b,1);b+=2;var K=new Uint8Array(iL.WS("png").aR(L,C,U));P.bF(b,16);P.data[b]=C==256?0:C;b++;
P.data[b]=U==256?0:U;b++;b+=2;$.ux(P,b,Q?Math.round(C/2):1);b+=2;$.ux(P,b,Q?Math.round(U/2):32);b+=2;
$.kE(P,b,K.length);b+=4;$.kE(P,b,6+16);b+=4;P.bF(b,K.length);for(var H=0;H<K.length;H++)P.data[b+H]=K[H];
b+=K.length;var h=new Uint8Array(b);for(var H=0;H<b;H++)h[H]=P.data[H];return h.buffer};iL.ig.ER=function(L){L=new Uint8Array(L);
var C=4,U=$.PJ(L,C);C+=2;var E=[];for(var H=0;H<U;H++){var Y=iL.ig.a5V(L,C+H*16),z=L.buffer.slice(Y.offset,Y.offset+Y.size),r=iL.lc(z);
r=r?r:"bmp";if(r=="png"){var p=iL.WS(r),T=p.ER(z);Y.CK=T[0]}else{var k=iL.WS("BMP").a1I(z,0),z=c.F(Y.aU*Y.fg*4);
c.La(new Uint8Array(k.data),new _(0,0,k.bl.d,k.bl.v),z,new _(0,Y.fg,Y.aU,Y.fg));k.data=z.buffer;k.bl.v=Y.fg;
Y.CK=k}E.push(Y)}E.sort(function(P,b){if(P.aU!=b.aU)return P.aU-b.aU;return P.a1h-b.a1h});return[E.pop().CK]};
iL.ig.a5V=function(L,C){var U={};U.aU=L[C];C++;if(U.aU==0)U.aU=256;U.fg=L[C];C++;if(U.fg==0)U.fg=256;
U.aaJ=L[C];C++;C++;U.a3x=$.PJ(L,C);C+=2;U.a1h=$.PJ(L,C);C+=2;U.size=$.Nl(L,C);C+=4;U.offset=$.Nl(L,C);
C+=4;return U};iL.I1={};iL.I1.ER=function(L){var C=Date.now(),E,b=!0;if(c.raw.op(L.byteLength))return[c.raw.a9E(L)];
var U=UTIF.decode(L);if(U[0].t33421)E=U[0];else if(U[0].subIFD&&U[0].t271[0]=="Hasselblad"){E=U[0].subIFD[0];
E.t33421=[2,2]}else if(U[0].subIFD&&U[0].subIFD[0].t33421){E=U[0].subIFD[0];if(E.t50706==null){if(E.t258[0]==8)E.t258[0]=12}}else if(U[0].subIFD&&U[0].subIFD[0]&&U[0].subIFD[0].t262&&U[0].subIFD[0].t262[0]==34892)E=U[0].subIFD[0];
else if(U[0].subIFD&&U[0].subIFD[1]&&U[0].subIFD[1].t33421)E=U[0].subIFD[1];else if(U[0].subIFD&&U[0].subIFD[2]&&U[0].subIFD[2].t33421)E=U[0].subIFD[2];
else if(U[3]&&U[3].t50648){var Y=U[0].exifIFD,z=Y.makerNote;E=U[3];var r=z.t224[1],p=z.t224[2];E.t256=[r];
E.t257=[p];E.t258=[16];E.t259=[7];E.t262=[32803];E.t277=[1];E.t33421=[2,2];var T=E.t50656[0],k=c.raw.gv[T];
if(k==null)throw"e";E.t33422=k}if(E){UTIF.decodeImage(L,E,U);for(var P in U[0])if((P[0]=="t"||P[0]=="e"||P[0]=="d")&&E[P]==null)E[P]=U[0][P];
E.g9=U[0].t274?U[0].t274[0]:1;return[E]}var Q=1/256;for(var H=0;H<U.length;H++)if(U[H].t258&&U[H].t258[0]==16&&U[H].t277&&U[H].t277[0]==1){}else b=!1;
if(b){var K=0,h=0,x=0;for(var H=0;H<U.length;H++){UTIF.decodeImage(L,U[H],U);var O=U[H].data;for(var y=0;
y<O.length;y+=2){var v=O[y+1]<<8|O[y];if(v>K)K=v;h+=v;x++}}Q=1/256*65535/(.5*K+.5*(2*h/x))}var i=[];
for(var H=0;H<U.length;H++){var D=U[H],I=72;UTIF.decodeImage(L,D,U);var m=D.t282,f=D.t296;if(m!=null&&f!=null){I=m[0][0]/m[0][1];
if(f[0]==3)I=Math.round(I/2.54)}if(D.width==null)continue;var A=UTIF.toRGBA8(D,Q).buffer,d=bd.L7(D);
i.push({bl:new _(0,0,D.width,D.height),data:A,_Q:I,Ii:d})}return i};iL.I1.aR=function(L,C,U,E){if(E==null)E=[!1];
var Y={},z=L[0];if(z[3]!=null&&E[0])Y=bd.AQ(z[3]);if(z[2]!=null){Y.t282=Y.t283=[[Math.round(z[2]),1]];
Y.t296=[2]}return UTIF.encodeImage(z[0],C,U,Y)};iL.Gd={};iL.Gd.Y9=!0;iL.Gd.ER=function(L,C){f7.Vu(L,C)};
iL.Gd.a9h=function(L,C,U,E){if(E==null)E=[!1,!1,!1];if(!E[0])L.E0();var Y=new d0,z=f7.cd(L,Y,E);return[Y.data.buffer,z]};
iL.Gd.aR=function(L,C,U,E){var Y=iL.Gd.a9h(L,C,U,E),z=Y[0],r=Y[1];return z.byteLength==r?z:z.slice(0,r)};
iL.$C={};iL.$C.Y9=!0;iL.$C.ER=function(L,C){var U=pako.inflate(new Uint8Array(L)),E=$.lb(U,0),Y=$.lb(U,2),z=4;
C.d=$.i(U,z);z+=4;C.v=$.i(U,z);z+=4;C.buffer=c.F(C.d*C.v*4);var r=$.lb(U,z);z+=2;z+=4;for(var p=0;p<r;
p++){var T=C.wP(),A=1,d=2,g=3,X=0;C.N.push(T);var k=$.i(U,z);z+=4;var P=z,b=$.lb(U,P);P+=2;var Q=$.IQ(U,P,b);
P+=b;T.I_(Q);P++;T.rect.x=$.xw(U,P);P+=4;T.rect.y=$.xw(U,P);P+=4;T.rect.d=$.i(U,P);P+=4;T.rect.v=$.i(U,P);
P+=4;if(E>3)P+=4;T.opacity=Math.round(255*U[P]/100);P++;T.Qs(U[P]!=0);P++;T.B4="norm,lddg,norm,dark,diff,norm,hLit,norm,norm,lite,mul ,over,scrn,fsub".split(",")[U[P]];
P++;P++;if(E>3){var K=$.lb(U,P);P+=2;if(K!=0){var h=JSON.parse($.IQ(U,P,K));P+=K;var x=h.text,O=h.textSettings,y=O.font,v=O.size,i=O.padding,D=parseInt(O.color.slice(1),16);
T.add.lnsr="rend";T.add.TySh=b5.Es(0,0);T.add.TySh.uv=new _(0,0,100,100);T.add.TySh.J=new c0(1,0,0,1,T.rect.x+i,T.rect.y+i);
var I=T.add.TySh.Se;b5.B$(I,1);b5.If(I,[0,0,T.rect.d-i*2,T.rect.v]);b5.X$(I,0,x);var m=b5.L3(I,0,1);
m.LI.FontSize=v;m.LI.FillColor={Type:1,Values:[1,(D>>>16&255)/255,(D>>>8&255)/255,(D>>>0&255)/255]};
if(O.bold)y+="-Bold";b5.yk(m,y);m.s6.Justification=["left","right","center"].indexOf(O.align);b5.Em(I,0,x.length,m)}}var f=$.i(U,P);
P+=4;if(f!=T.rect.X()*4)throw"e";T.buffer=c.F(f);if(E>3){A=0;d=1;g=2;X=3}for(var H=0;H<f;H+=4){T.buffer[H]=U[P+H+A];
T.buffer[H+1]=U[P+H+d];T.buffer[H+2]=U[P+H+g];T.buffer[H+3]=U[P+H+X]}P+=f;var n=$.i(U,P);P+=4;if(n==0&&E>3){z+=k;
continue}var R=U[P];P++;var l=$.lb(U,P);P+=2;if(n!=0){T.r=new o.LF;T.r.rect=T.rect.clone();T.r.channel=c.F(T.rect.X());
for(var H=0;H<n;H+=4)T.r.channel[H>>>2]=U[P+H+1];P+=n}if(R!=0){var w=JSON.parse(gM.default);T.add.lmfx=w;
for(var H=0;H<gM.order.length;H++)w[gM.cp[H]]={t:"VlLs",v:[]};var V={"102":9,"101":2,"103":0,"104":3,"105":8};
for(var H=0;H<R;H++){var F=$.lb(U,P),Z=P+F+4,M=U.slice(P,Z),a=U[P+2];P+=3;var e=V[a+""],N=JSON.parse(gM.Lq[e]);
w[gM.cp[e]].v.push({t:"Objc",v:N});if(e!=0){N.Md.v.BlnM=gz.Wx("norm");N.Opct.v.val=U[P];P++;if(e==9||e==2){N.Dstn.v.val=U[P+1];
P+=2}else P+=2;N.blur.v.val=Math.round(U[P]*1.2);P++;if(e==9||e==2){N.uglg.v=!1;N.lagl.v.val=180-$.lb(U,P);
P+=2}N.Clr.v=c.W._b({h:U[P+1],P:U[P+2],O:U[P+3]})}else{N.hglM.v.BlnM=N.sdwM.v.BlnM=gz.Wx("norm");P+=2;
var J=U[P++],f5=U[P++];N.blur.v.val=Math.round(Math.sqrt(f5*J)*1.3);N.srgR.v.val=Math.round(100*J/f5);
N.uglg.v=!1;N.lagl.v.val=180-$.lb(U,P);P+=2;N.hglO.v.val=U[P++];N.hglC.v=c.W._b({h:U[P+1],P:U[P+2],O:U[P+3]});
P+=4;N.sdwO.v.val=U[P++];N.sdwC.v=c.W._b({h:U[P+1],P:U[P+2],O:U[P+3]});P+=4}P=Z}}if(P-z!=k){var dx=$.i(U,P),e8=0;
P+=4;P++;var b=$.lb(U,P);P+=2;var x=$.IQ(U,P,b);P+=b;x=x.replace(/\r/g,"\n");var b=$.lb(U,P);P+=2;var y=$.IQ(U,P,b);
P+=b;var v=$.lb(U,P);P+=2;var fq=T.rect.x,i9=T.rect.d;if(dx&4)e8=1;if(dx&2)e8=2;var S=Math.round(v*.4);
if(e8==0||e8==2)i9+=S;if(e8==1||e8==2){i9+=S;fq-=S}T.add.lnsr="rend";T.add.TySh=b5.Es(0,0);T.add.TySh.uv=new _(0,0,100,100);
T.add.TySh.J=new c0(1,0,0,1,fq,T.rect.y+v*.25);var I=T.add.TySh.Se;b5.B$(I,1);b5.If(I,[0,0,i9,T.rect.v]);
b5.X$(I,0,x);var m=b5.L3(I,0,1);m.LI.FontSize=v;m.LI.FillColor={Type:1,Values:[1,U[P+1]/255,U[P+2]/255,U[P+3]/255]};
P+=4;if(U[P+5])y+="-Bold";if(U[P+6])y+="-Italic";b5.yk(m,y);m.s6.Justification=e8;P+=8;b5.Em(I,0,x.length,m)}z+=k}};
iL.Bo={};iL.Bo.Y9=!0;iL.Bo.ER=function(L,C){e5.Vu(L,C)};iL.qO={};iL.qO.Y9=!0;iL.qO.ER=function(L,C){cV.Vu(L,C)};
iL.aS={};iL.aS.Y9=!0;iL.aS.ER=function(L,C){fG.Vu(L,C)};iL.fN={};iL.fN.Y9=!0;iL.fN.ER=function(L,C){bl.Vu(L,C)};
iL.Rc={};iL.Rc.Y9=!0;iL.Rc.ER=function(L,C){g4.Vu(L,C)};iL.FF={};iL.FF.Y9=!0;iL.FF.aR=function(L,C,U,E,Y){if(E==null)E=[!0,!1,!1,!1,!0,!0];
var z=cb.B0(L,{Y0:E[0],hidden:E[1],amW:E[2],a0c:E[3],names:E[4],a7e:E[5],akH:C,aeF:U},Y.tW);return z};
iL.FF.ER=function(L,C,U){cb.Vu(L,C,U)};iL.z_={};iL.z_.Y9=!0;iL.z_.ER=function(L,C){var U=150,E=new c0(1,0,0,-1,0,0);
E.scale(U/72,U/72);C._Q=U;var Y=new gv(C,E,!0);FromPS.Parse(L,Y)};iL.q8={};iL.q8.Y9=!0;iL.q8.aR=function(L,C,U,E,Y){if(E==null)E=["",100,!1,!1,!1];
E[5]=["jpg"];var z=new ToPDF;fP.B0(L,E,z,Y.tW);return z.buffer};iL.q8.ER=function(L,C,U){var E=2;while(!0){var Y=E*72,z=new c0(1,0,0,-1,0,0);
z.scale(Y/72,Y/72);C._Q=Y;var r=new gv(C,z,!0);FromPDF.Parse(L,r);var p=Math.max(C.d,C.v);if(U&&p<Math.max(U[0],U[1])){C.N=[];
var T=E;while(p*(E/T)<Math.max(U[0],U[1]))E++}else break}};iL.bh={};iL.bh.Y9=!0;iL.bh.ER=function(L,C){var U=72,E=new c0(1,0,0,1,0,0);
E.scale(U/72,U/72);C._Q=U;var Y=new gv(C,E,!1);FromWMF.Parse(L,Y)};iL.gS={};iL.gS.WH=!0;iL.gS.Y9=!0;
iL.gS.aR=function(L,C,U,E,Y){if(E==null)E=["",!1,!1,!1];E[4]=[];var z=new ToEMF;fP.B0(L,E,z,Y.tW);return z.buffer};
iL.gS.ER=function(L,C){var U=72,E=new c0(1,0,0,1,0,0);E.scale(U/72,U/72);C._Q=U;var Y=new gv(C,E,!1);
FromEMF.Parse(L,Y)};iL.jN={};iL.jN.Y9=!0;iL.jN.ER=function(L,C){return e7.Vu(L,C)};iL.gA={};iL.gA.ER=function(L,C){var U=a1.Vu(L),E=new Uint8Array(L),Y=0,z,r,p,T,k,P,b,Q,K=0,h=0,x=0,O=0,y=0;
for(var v=0;v<U.sub.length;v++){var i=U.sub[v],Y=i.g;if(i.Ea=="BMHD"){var D=[];for(var H=0;H<4;H++)D[H]=$.lb(E,Y+2*H);
Y+=8;T=D[2];k=D[3];r=D[0];p=D[1];z=c.F(r*p*4);P=E[Y++];b=E[Y++];Q=E[Y++]}else if(i.Ea=="CMAP")K=Y;else if(i.Ea=="CAMG"){var I=$.i(E,Y);
h=I&32768,x=I&4,O=I&2048;y=I&128}else if(i.Ea=="BODY"){var m=r+15>>>4<<1,f=P+b,A=c.F(m*p*f),n,R,l;b8.d_(E,Y,i.size,A,0,A.length);
var d=P-2,g=(1<<d)-1,X=Math.round(255/g);for(var k=0;k<p;k++)for(var T=0;T<r;T++){var w=0;for(var V=0;
V<f;V++){var F=(k*f+V)*m*8+T,Z=A[F>>>3]>>>7-(F&7)&1;w|=Z<<V}var M=w>>>P,w=w&(1<<P)-1,H=k*r+T,a=H<<2;
if(K!=0){if(O!=0&&w>>>d!=0){var e=w>>>d,N=(w&g)*X;if(e==1)l=N;else if(e==2)n=N;else if(e==3)R=N}else{var N=K+w*3;
n=E[N+0];R=E[N+1];l=E[N+2]}}else{n=w>>>0&255;R=w>>>8&255;l=w>>>16&255}z[a+0]=n;z[a+1]=R;z[a+2]=l;z[a+3]=255}}}return[{bl:new _(0,0,r,p),data:z.buffer}]};
iL.OI={};iL.OI.Y9=!1;iL.OI.aR=function(L,C,U,E){var Y=L[0][4],z=new Uint8Array(L[0][0]),r=2,p=Y?!0:!1,T=p?4:3,k=new Uint8Array(C*U*T);
for(var P=0;P<U;P++)for(var b=0;b<C;b++){var Q=P*C+b<<2,K=((U-P-1)*C+b)*T;k[K]=z[Q+2];k[K+1]=z[Q+1];
k[K+2]=z[Q+0];if(p)k[K+3]=Y[0][P*C+b]}if(!0){var h=k.length,x=0,O=new Uint8Array(h*2),y=0,v=0,i=C*T;
while(v<h){var D=v,I=0,m=i*(Math.floor(v/i)+1);while(D<m&&I<128){var f=!0;for(var H=0;H<T;H++)f=f&k[v+H]==k[D+H];
if(!f)break;D+=T;I++}if(I==1){var A=1;while(A<128&&v+(A+1)*T<m){var f=!0,d=v+A*T;for(var H=0;H<T;H++)f=f&k[d+H]==k[d+T+H];
if(f)break;A++}O[y++]=A-1;for(var g=0;g<A;g++)for(var H=0;H<T;H++)O[y++]=k[v++]}else{O[y++]=127+I;for(var H=0;
H<T;H++)O[y+H]=k[v+H];y+=T;v+=T*I;x+=I}}k=O.slice(0,y);r+=8}var X=new Uint8Array(18+k.length+26);X[2]=r;
$.R3(X,12,C);$.R3(X,14,U);X[16]=T*8;X[17]=T==4?8:0;X.set(k,18);$.Ti(X,18+k.length+8,"TRUEVISION-XFILE.");
return X.buffer};iL.OI.ER=function(L){var C=new Uint8Array(L),U=0,E=C[0],Y=C[1],z=C[2],r=C[4]*256+C[3],p=C[6]*256+C[5],T=C[7],k=C[9]*256+C[8],P=C[11]*256+C[10],b=C[13]*256+C[12],Q=C[15]*256+C[14],K=C[16],h=C[17],x=h>>>4,O=$.ZA(C,18,E),y=c.F(b*Q*4),U=18+E+(p*T>>>3),v=new Uint8Array(C.buffer,U);
if(z>3){var i=0,D=C,I=new Uint8Array(b*Q*K>>>3),m=U,f=0,A=C.length,d=K>>>3;while(f<I.length){var u=D[m];
m++;if(u<128)for(var H=0;H<u+1;H++){for(var g=0;g<d;g++){I[f]=D[m];f++;m++}}else{for(var H=0;H<u-127;
H++){for(var g=0;g<d;g++){I[f]=D[m+g];f++}}m+=d}}z-=8;v=I;U=m}else U+=b*Q*K>>>3;var X=new Uint8Array(4),n=iL.OI.aev;
for(var R=0;R<Q;R++)for(var l=0;l<b;l++){var w=(x&2)==0?(Q-R-1)*b+l:R*b+l,V=R*b+l,F,Z,M,a=255,e=w*K>>>3;
if(z==1){var N=0;if(K==8)N=v[e];else throw"e";n(C,18+E+r+(N*T>>>3),T,X);F=X[0];Z=X[1];M=X[2];a=X[3]}else if(z==2){n(v,e,K,X);
F=X[0];Z=X[1];M=X[2];a=X[3]}else if(z==3){if(K==8)F=Z=M=v[e];else throw"e"}var J=V*4;y[J]=F;y[J+1]=Z;
y[J+2]=M;y[J+3]=a}var X={bl:new _(0,0,b,Q),data:y.buffer,Qz:O};if(c.Db(y)){var s=c.F(b*Q);c.wH(y,s,3);
c.n0(y,4278190080,16777215);X.vI=[s]}return[X]};iL.OI.aev=function(L,C,U,E){var Y,z,r,p=255;if(U==24||U==32){r=L[C];
z=L[C+1];Y=L[C+2];if(U==32)p=L[C+3]}else if(U==16){var T=L[C+1]<<8|L[C+0];Y=T>>>10&31;z=T>>>5&31;r=T>>>0&31;
Y=Math.round(Y*(255/31));z=Math.round(z*(255/31));r=Math.round(r*(255/31))}else throw"e";E[0]=Y;E[1]=z;
E[2]=r;E[3]=p};iL.wz={};iL.wz.ER=function(L){var C=new Uint8Array(L),U=0,E=112,Y=42,z=$.Nl,P;U+=8;var r=C[U];
U++;if(r!=Y)throw"e";var p=z(C,U);U+=4;var T=$.Fz(C,U,p);U+=p*2;var k=[];while(U<C.length){P=z(C,U);
U+=4;if(P!=E)throw P;U+=4;P=C[U];U++;if(P!=Y)throw P;var b=z(C,U);U+=4;var Q=C[U];U++;if(Q!=Y){U-=5;
b=z(C,U);U+=8;P=C[U];U++;if(P!=Y)throw P}var K=z(C,U)*2;U+=4;if(b>0)k.push(U+K);U+=K+b}var h=new DOMParser,x=h.parseFromString(T,"image/svg+xml").firstChild.firstChild,O=[];
iL.wz.Pc(x,C,k,O);return O};iL.wz.Pc=function(L,C,U,E){var Y=L.firstChild.firstChild;if(Y.tagName=="Image"){var z=Y.getElementsByTagName("ImageDescription")[0],r=z.children[0].children,p=z.children[1].children,T=U.shift(),k=[];
for(var H=0;H<p.length;H++)k.push(parseInt(p[H].getAttribute("NumberOfElements")));while(k.length>3)k[2]*=k.pop();
var P=r.length,b=k[0],Q=k[1],K=k[2],h=parseInt(p[0].getAttribute("BytesInc"));for(var x=0;x<K;x++){var O=c.F(b*Q*4);
c.n0(O,4278190080);for(var y=0;y<P;y++){var v=c.F(b*Q);if(h==1)for(var i=0;i<v.length;i++)v[i]=C[T+i];
else if(h==2)for(var i=0;i<v.length;i++)v[i]=Math.min(255,(C[T+i*2+1]<<8|C[T+i*2])>>>2);else throw h;
if(y!=3)c.Wn(v,O,y);if(P==1){c.Wn(v,O,1);c.Wn(v,O,2)}T+=b*Q*h}E.push({bl:new _(0,0,b,Q),data:O.buffer})}}else{var D=L.children,I=0;
while(I<D.length&&D[I].tagName!="Children")I++;if(I==D.length)throw"e";D=D[I].children;for(var m=0;m<D.length;
m++)iL.wz.Pc(D[m],C,U,E)}};iL.XP={};iL.XP.ER=function(L){var C=new Uint8Array(L),U=0,E={},P=1e9;for(var H=0;
H<306;H++){var Y=$.ZA(C,U,8).trim(),z=$.ZA(C,U+9,71).split("/")[0].trim();E[Y]=z;U+=80;if(Y=="END"){U=Math.ceil(U/2880)*2880;
break}}var r=parseInt(E.NAXIS1),p=parseInt(E.NAXIS2),T=r*p,k=parseInt(E.BITPIX),b=-1e9,Q=new Float32Array(T),K=new Float32Array(L,U,L.byteLength-U>>>2);
for(var H=0;H<T;H++){var h=H<<2,x=H<<1;if(k==-32){var O=C[U+h+0];C[U+h+0]=C[U+h+3];C[U+h+3]=O;var O=C[U+h+1];
C[U+h+1]=C[U+h+2];C[U+h+2]=O;Q[H]=K[H]}else if(k==16){Q[H]=$.PJ(C,U+x)}else throw k;var y=Q[H];if(y<P)P=y;
if(y>b)b=y}var v=c.F(T*4),i=1/b;for(var D=0;D<p;D++)for(var I=0;I<r;I++){var H=D*r+I,m=(p-D-1)*r+I,h=m<<2,y=Q[H]*i;
v[h]=v[h+1]=v[h+2]=255*y;v[h+3]=255}return[{bl:new _(0,0,r,p),data:v,Qz:E.OBJECT}]};iL.Af={};iL.Af.ER=function(L){var C=new Uint8Array(L),U=16,E=$.ZA(C,U,4),z=32,y=0,v=0,i=!1,Z;
U+=4;var Y=$.ZA(C,U,8);U+=8;while(C[U+z-1]==0)z--;var r=$.ZA(C,U,z);U+=32;var p=$.ZA(C,U,4);U+=4;U+=20;
var T=$.i(C,U);U+=4;var k=$.i(C,U);U+=4;var P=$.i(C,U);U+=4;var b=$.i(C,U);U+=4;var Q=$.i(C,U);U+=4;
var K=$.i(C,U);U+=4;var h="FujiFilm "+r,x=[0,1,1,2];if(h=="FujiFilm X10"){h="FujiFilm FinePix X10";x=[2,1,1,0]}var O={t271:["FujiFilm"],t272:[h],t277:[1],t33421:[2,2],t33422:x,g9:1};
U=P;var D=[],I=$.lb,m=$.i(C,U);U+=4;for(var H=0;H<m;H++){var f=I(C,U);U+=2;var A=I(C,U);U+=2;if(f==256){v=I(C,U);
y=I(C,U+2)}else if(f==272){D=[I(C,U),I(C,U+2)]}else if(f==273){D.push(I(C,U),I(C,U+2))}else if(f==304){i=!(C[U]>>>7)}else if(f==305){var d=Math.round(Math.sqrt(A)),g=[];
for(var X=0;X<A;X++)g.push(C[U+X]);g.reverse();O.t33421=[d,d];O.t33422=g}else if(f==12272){var n=I(C,U),R=I(C,U+2),l=I(C,U+6);
O.t50728=[n/R,1,n/l]}U+=A}var w=y<v,V=C.slice(Q,Q+K),F=Math.round(K*8/(y*v));if(V[0]==73&&V[1]==73&&V[2]==42){Z=UTIF.decode(V.buffer)[0].fujiIFD;
F=Z.t61443[0];var M=Z.t61454;O.t50728=[M[0]/M[1],1,M[0]/M[2]];var a=Z.t61447[0];V=V.slice(a,a+Z.t61448[0])}var K=V.length,e=K*8<y*v*F;
if(e)alert("Compressed RAF is not supported yet :(");function N(fq,i9,e8){e8=e8<<8-(i9&7);var S=i9>>>3;
fq[S]|=e8>>>16;fq[S+1]|=e8>>>8;fq[S+2]|=e8}var J=K*8/(y*v);if(J==16)for(var H=0;H<K;H+=2){var s=V[H];
V[H]=V[H+1];V[H+1]=s}else if(J==14){for(var H=0;H<K;H+=4){var s=V[H];V[H]=V[H+3];V[H+3]=s;s=V[H+1];V[H+1]=V[H+2];
V[H+2]=s}}else if(J==12)for(var H=0;H<K;H+=3){var f5=V[H+2]<<16|V[H+1]<<8|V[H+0];f5=f5>>>12|(f5&4095)<<12;
V[H]=f5>>>16&255;V[H+1]=f5>>>8&255;V[H+2]=f5&255}if(w)V=iL.Af.a2t(V,y,v);var dx=w?2:1;y*=dx;O.t256=[y];
O.t257=[v];O.t258=[F];O.t50719=[D[1],D[0]*dx];O.t50720=[D[3],D[2]*dx];O.width=y;O.height=v;O.data=new Uint8Array(V.buffer);
return[O]};iL.Af.a2t=function(L,C,U){L=new Uint16Array(L.buffer);var E=new Uint16Array(C*U*2);for(var Y=0;
Y<U;Y+=2)for(var z=0;z<C;z++){var r=Y*C+z,p=r*2,T=L[r],k=L[r+C];E[p+1]=E[p+2*C]=k;if(((Y>>>1)+z&1)==0){E[p]=T;
E[p+2*C+1]=L[r+1]}else{E[p]=L[r-1];E[p+2*C+1]=T}}return E};iL.$A={};iL.$A.WH=!0;iL.$A.aR=function(L,C,U,E){var Y=new Uint8Array(L[0][0]),z=C*U,r=[1,3,4][E[0]],p=8+8*E[1],T=E[2];
if(r==1){var k=new Uint8Array(C*U);c.wH(Y,k,0);Y=k}if(r==3){var k=new Uint8Array(C*U*3);for(var H=0;
H<z;H++){var P=H*4,b=H*3;k[b]=Y[P];k[b+1]=Y[P+1];k[b+2]=Y[P+2]}Y=k}if(p==16){var Q=Y.length,k=new Uint8Array(Q*2);
for(var H=0;H<Q;H++){var K=Math.round(Y[H]*(65535/255));k[H*2+T]=K>>>8;k[H*2+1-T]=K&255}Y=k}return Y.buffer};
iL.pW={};iL.pW.ER=function(L,C){function U(T){return~~(.5+c.UE(Math.max(0,Math.min(1,T)))*255)}var E=EXRLoader.parse(L),Y=E.width,z=E.height,r=c.F(Y*z*4);
for(var p=0;p<z;p++)for(var T=0;T<Y;T++){var H=(p*Y+T)*4,k=((z-p-1)*Y+T)*4;r[H]=U(E.data[k+0]);r[H+1]=U(E.data[k+1]);
r[H+2]=U(E.data[k+2]);r[H+3]=U(E.data[k+3])}return[{bl:new _(0,0,Y,z),data:r.buffer}]};iL.HP={};iL.HP.WH=!0;
iL.HP.Y9=!0;iL.HP.aR=function(L,C,U,E,Y){E=["",100,!1,!1,!1];E[5]=["jpg"];var z=new ToDXF;fP.B0(L,E,z,Y.tW);
return z.buffer};iL.HP.ER=function(L,C){var U=72,E=new c0(1,0,0,1,0,0);E.scale(U/72,U/72);C._Q=U;var Y=new gv(C,E,!1);
FromDXF.Parse(L,Y)};iL.UH={};iL.UH.ER=function(){var L=$.PJ,C=$.Nl,U=$.ZA,E;function Y(r,p,T,k,P){var b=C(r,T),Q=C(r,T+4),K=C(r,T+8),h=L(r,T+12),x=L(r,T+14);
T+=16;var O={};for(var H=0;H<h+x;H++){var y=C(r,T),v=C(r,T+4),i,D;if(y>>>31==1){y=y&16777215}if(H<h)i=$.Fz(r,p+y+2,L(r,p+y));
else i="id"+y;var I=k.slice(0);I.push(i);if(v>>>31==1){v=v&268435455;D=Y(r,p,p+v,I,P)}else{var m=C(r,p+v),f=C(r,p+v+4),A=C(r,p+v+8),d=C(r,p+v+12);
if(d!=0)throw"e";if(m<P[0]||m>P[0]+P[1])throw"e";var g=P[2]+m-P[0];D=r.slice(g,g+f);var X=iL.lc(D.buffer);
if(X&&["bmp","png","ico"].indexOf(X)!=-1){var n=iL.WS(X);if(!n.Y9){var R=null;try{R=n.ER(D.buffer)}catch(gS){}if(R){R[0].Qz=I[1];
E.push(R[0])}}}else if(X)console.log(X)}O[i]=D;T+=8}return O}function z(r){E=[];var p=new Uint8Array(r),T=0,k=L(p,T);
T+=2;T+=58;var P=C(p,T);T+=4;T=P;var b=U(p,T,4);T+=4;var Q=L(p,T);T+=2;var K=L(p,T);T+=2;var h=C(p,T);
T+=4;var x=C(p,T);T+=4;var O=C(p,T);T+=4;var y=L(p,T);T+=2;var v=L(p,T);T+=2;T+=y;var i={};for(var H=0;
H<K;H++){var D=T;while(p[D]!=0)D++;var I=U(p,T,D-T),m=C(p,T+8),f=C(p,T+12),A=C(p,T+16),d=C(p,T+20),g=C(p,T+24),X=C(p,T+28),n=L(p,T+32),R=L(p,T+34),v=C(p,T+36);
i[I]=[f,m,d,A,v];if(g+X!=0)throw"e";T+=40}for(var l in i){var w=i[l];T=w[2];if(l==".rsrc"){var V=Y(p,T,T,[],w),F="id134"}}return E}return z}();
function c(){}c.DA={};c.Vb=document.createElement("canvas");c.e4=c.Vb.getContext("2d");c.Wg=function(L,C,U,E,Y,z){if(Y==null)Y=z=0;
E=Math.log(E)/Math.log(2);E=Math.round(E);for(var H=0;H<U;H++)for(var r=0;r<C;r++){var p=H*C+r<<2,T=c._k(H+z,r+Y,E);
L[p]=L[p+1]=L[p+2]=T;L[p+3]=255}};c._k=function(H,L,C){return 255-((H>>>C)+(L>>>C)&1)*51};c.Xo=function(L){var C=L.toString(16);
while(C.length<6)C="0"+C;return C};c.hA=function(L){return parseInt(L,16)};c.uW=function(L){return.3*L.h+.59*L.P+.11*L.O};
c._a=function(L){return Math.max(L.h,L.P,L.O)-Math.min(L.h,L.P,L.O)};c.GZ=function(L,C,U){return.3*L+.59*C+.11*U};
c.aiA=function(L,C,U){return Math.max(L,C,U)-Math.min(L,C,U)};c.JR=function(L,C){var U=C-L,E=Math.abs(U),Y=U-1,z=U+1;
if(Math.abs(Y)<E)U=Y;else if(Math.abs(z)<E)U=z;return U};c.hJ=function(L,C,U,E){return(C-U)*E/(L-U)};
c.UE=function(L){return L<.0031308?12.92*L:1.055*Math.pow(L,1/2.4)-.055};c.ac2=function(L){return L<.04045?L/12.92:Math.pow((L+.055)/1.055,2.4)};
c.aej=function(L,C){var U=Math.min(L.length,C.length);for(var H=0;H<U;H+=4){var E=L[H],Y=L[H+1],z=L[H+2];
C[H]=16+Math.floor(65.481/255*E+128.553/255*Y+24.966/255*z+.5);C[H+1]=128-Math.floor(37.797/255*E-74.203/255*Y+112/255*z+.5);
C[H+2]=128+Math.floor(112/255*E-93.786/255*Y-18.214/255*z+.5);C[H+3]=L[H+3]}};c.S2=function(L,C,U){var E=Math.max(L,C,U),Y=Math.min(L,C,U),z=0,r=0,p=(E+Y)*.5;
if(E!=Y){var T=E-Y;r=p>.5?T/(2-(E+Y)):T/(E+Y);switch(E){case L:z=(C-U)/T+(C<U?6:0);break;case C:z=(U-L)/T+2;
break;case U:z=(L-C)/T+4;break}z*=1/6}return{fg:z,uR:r,fr:p}};c.u2=function(L,C,U){var E,Y,z;if(C==0)E=Y=z=U;
else{var r=U<.5?U*(1+C):U+C-U*C,p=2*U-r;E=c.Ll(p,r,L+1/3);Y=c.Ll(p,r,L);z=c.Ll(p,r,L-1/3)}return{h:E,P:Y,O:z}};
c.Ll=function(L,C,U){if(U<0)U+=1;if(U>1)U-=1;if(U<1/6)return L+(C-L)*6*U;if(U<1/2)return C;if(U<2/3)return L+(C-L)*(2/3-U)*6;
return L};c.t2=function(L,C,U){var E=Math.max(L,C,U),Y=Math.min(L,C,U),z,r,p=E,T=E-Y;r=E==0?0:T/E;if(E==Y)z=0;
else{switch(E){case L:z=(C-U)/T+(C<U?6:0);break;case C:z=(U-L)/T+2;break;case U:z=(L-C)/T+4;break}z*=1/6}return{fg:z,uR:r,oe:p}};
c.D5=function(L,C,U){var E,Y,z,H,r,p,T,k;H=Math.floor(L*6);r=L*6-H;p=U*(1-C);T=U*(1-r*C);k=U*(1-(1-r)*C);
switch(H%6){case 0:E=U,Y=k,z=p;break;case 1:E=T,Y=U,z=p;break;case 2:E=p,Y=U,z=k;break;case 3:E=p,Y=T,z=U;
break;case 4:E=k,Y=p,z=U;break;case 5:E=U,Y=p,z=T;break}return{h:E,P:Y,O:z}};c.FN=function(){var L=[],C=[];
for(var H=0;H<2e3;H++){var U=H/1e3;L[H]=c.ac2(U);C[H]=U>.008856?Math.pow(U,1/3):(903.3*U+16)*(1/116)}return[L,C]}();
c.E8=function(L,C,U){var E=c.FN[0],Y=c.FN[1];L=E[~~(L*(1e3/255))];C=E[~~(C*(1e3/255))];U=E[~~(U*(1e3/255))];
var z=c.hS.ahW,r=z[0]*L+z[1]*C+z[2]*U,p=z[4]*L+z[5]*C+z[6]*U,T=z[8]*L+z[9]*C+z[10]*U;r=r*(100/96.72);
p=p*(100/100);T=T*(100/81.427);return c.TP(r,p,T)};c.TP=function(L,C,U){var E=c.FN[1],Y=E[~~(L*1e3)],z=E[~~(C*1e3)],r=E[~~(U*1e3)];
return{QD:116*z-16,R:500*(Y-z),O:200*(z-r)}};c.BR=function(L,C,U){var E=903.3,Y=.008856,z=(L+16)/116,r=z*z*z,p=z-U/200,T=p*p*p,k=C/500+z,P=k*k*k,b=T>Y?T:(116*p-16)/E,Q=r>Y?r:(116*z-16)/E,K=P>Y?P:(116*k-16)/E,h=K*96.72,x=Q*100,O=b*81.427,y=c.hS.IY(c.hS.Bq,[h/100,x/100,O/100,0]);
for(var H=0;H<4;H++)y[H]=Math.max(0,Math.min(255,c.UE(y[H])*255));return{h:y[0],P:y[1],O:y[2]}};c.WA=function(L,C,U,E,Y){var z=L.QD,r=L.R,p=L.O,T=(z<C.QD?C.QD-z:U.QD<z?U.QD-z:0)*(1/100),k=(r<C.R?C.R-r:U.R<r?U.R-r:0)*(1/116),P=(p<C.O?C.O-p:U.O<p?U.O-p:0)*(1/116),b=Math.sqrt(T*T+k*k+P*P)*1.35;
return b<=E?Math.min(1,1.17*(1-b*Y)):0};c.B5=function(L,C,U){var E=C-c.uW(L);U.h=L.h+E;U.P=L.P+E;U.O=L.O+E;
c.a2W(U)};c.Qx=function(L,C,U){var E=L.h,Y=L.P,z=L.O;if(E==Y&&Y==z){U.h=U.P=U.O=0}else if(E>Y){if(E>z){if(Y>z){U.h=C;
U.P=c.hJ(E,Y,z,C);U.O=0}else{U.h=C;U.O=c.hJ(E,z,Y,C);U.P=0}}else{U.O=C;U.h=c.hJ(z,E,Y,C);U.P=0}}else{if(E<z){if(Y>z){U.P=C;
U.O=c.hJ(Y,z,E,C);U.h=0}else{U.O=C;U.P=c.hJ(z,Y,E,C);U.h=0}}else{U.P=C;U.h=c.hJ(Y,E,z,C);U.O=0}}};c.a2W=function(L){var C=L.h,U=L.P,E=L.O,Y=c.GZ(C,U,E),u=Math.min(C,U,E),z=Math.max(C,U,E);
if(u<0){var r=Y/(Y-u);C=Y+(C-Y)*r;U=Y+(U-Y)*r;E=Y+(E-Y)*r}if(z>1){var r=(1-Y)/(z-Y);C=Y+(C-Y)*r;U=Y+(U-Y)*r;
E=Y+(E-Y)*r}L.h=C;L.P=U;L.O=E};c.Fy=function(L,C,U){var E=L.length,Y=.3,z=.59,r=.11;if(U){Y=U[0];z=U[1];
r=U[2]}for(var H=0;H<E;H+=4)C[H>>2]=~~(L[H+0]*Y+L[H+1]*z+L[H+2]*r+.5)};c.EI=function(L,C){var U=C.length;
for(var H=0;H<U;H+=4){var E=L[H>>>2];C[H]=E;C[H+1]=E;C[H+2]=E}};c.qF=function(L,C){var U=L.R,E=L.h,Y=L.P,z=L.O,r=Math.min(L.R.length,C.buffer.byteLength>>>2),p=4*Math.floor(r/4),T=new Uint32Array(C.buffer),k=new Uint32Array(U.buffer),P=new Uint32Array(E.buffer),b=new Uint32Array(Y.buffer),Q=new Uint32Array(z.buffer);
for(var H=0;H<p;H+=4){var K=k[H>>2],h=Q[H>>2],x=b[H>>2],O=P[H>>2];T[H]=K<<24|(h&255)<<16|(x&255)<<8|O&255;
T[H+1]=(K&65280)<<16|(h&65280)<<8|x&65280|(O&65280)>>>8;T[H+2]=(K&16711680)<<8|h&16711680|(x&16711680)>>>8|(O&16711680)>>>16;
T[H+3]=K&4278190080|(h&4278190080)>>>8|(x&4278190080)>>>16|(O&4278190080)>>>24}for(var H=p;H<r;H++)T[H]=U[H]<<24|z[H]<<16|Y[H]<<8|E[H]};
c.df=function(L,C){var U=C.R,E=C.h,Y=C.P,z=C.O,r=Math.min(C.R.length,L.buffer.byteLength>>>2),p=4*Math.floor(r/4),T=new Uint32Array(L.buffer),k=new Uint32Array(U.buffer),P=new Uint32Array(E.buffer),b=new Uint32Array(Y.buffer),Q=new Uint32Array(z.buffer);
for(var H=0;H<p;H+=4){var K=T[H],h=T[H+1],x=T[H+2],O=T[H+3];P[H>>2]=K&255|(h&255)<<8|(x&255)<<16|O<<24;
b[H>>2]=(K&65280)>>8|h&65280|(x&65280)<<8|(O&65280)<<16;Q[H>>2]=(K&16711680)>>16|(h&16711680)>>8|x&16711680|(O&16711680)<<8;
k[H>>2]=K>>>24|h>>>24<<8|x>>>24<<16|O&4278190080}for(var H=p;H<r;H++){var y=T[H];E[H]=y>>0&255;Y[H]=y>>8&255;
z[H]=y>>16&255;U[H]=y>>24&255}};c.wH=function(L,C,U){var E=new Uint8Array(L.buffer),Y=Math.min(E.length/4,C.length);
for(var H=0;H<Y;H++){C[H]=E[(H<<2)+U]}};c.Wn=function(L,C,U){var E=new Uint8Array(C.buffer),Y=new Uint32Array(L.buffer),z=Math.min(E.length/4,L.length),H=0;
while(H+4<z){var r=Y[H>>>2];E[(H<<2)+U]=r&255;E[(H<<2)+U+4]=r>>>8&255;E[(H<<2)+U+8]=r>>>16&255;E[(H<<2)+U+12]=r>>>24;
H+=4}while(H<z){E[(H<<2)+U]=L[H];H++}};c.n0=function(L,C,U){if(U==null)U=0;var E=new Uint32Array(L.buffer),Y=E.length;
for(var H=0;H<Y;H++)E[H]=E[H]&U|C};c.anK=function(L,C,U,E,Y){if(Y==null)Y=0;var z=new Uint32Array(L.buffer);
U=U.eR(C);var r=U.x-C.x,p=U.y-C.y,T=U.d,k=U.v,P=C.d;for(var b=0;b<k;b++){var H=(p+b)*P+r;for(var Q=0;
Q<T;Q++){z[H]=z[H]&Y|E;H++}}};c.hL=function(L,C){var U=Math.min(L.buffer.byteLength,C.buffer.byteLength),E=U>>>2,L=new Uint32Array(L.buffer,0,E),C=new Uint32Array(C.buffer,0,E);
C.set(L)};c.cg=function(L,C){var U=L.buffer.byteLength,E=C.buffer.byteLength,Y=new Uint32Array(L.buffer,0,U>>2),z=new Uint32Array(C.buffer,0,E>>2);
if(U!=E)return!1;var r=Y.length;for(var H=0;H<r;H++)if(z[H]!=Y[H])return!1;return!0};c.G$=function(L){var C=new Uint32Array(L.buffer),U=C.length;
for(var H=0;H<U;H++)C[H]=~C[H]};c.akT=function(L){var C=L.length;for(var H=0;H<C;H+=4){L[H]=~L[H];L[H+1]=~L[H+1];
L[H+2]=~L[H+2]}};c.a6W=function(L){var C=L.length;for(var H=3;H<C;H+=4)L[H]=~L[H]};c.amV=function(L){return L+(L%4==0?0:4-L%4)};
c.F=function(L,C){if(C==null)C=!1;if(!C)L=c.amV(L);try{var U=new Uint8Array(L)}catch(gS){alert("Not enough RAM! (need "+Math.round(L/(1<<20))+" MB)",7e3);
throw"low_ram"}return U};c.cf=function(L){var C=L.length,U=L[C-2],E=L[C-1];while(E.d>=2&&E.v>=2){var Y=c.CE(U,E);
L.push(Y.eB,Y.rect);U=Y.eB;E=Y.rect}};c.Zl=function(L){var C=L.length,U=L[C-2],E=L[C-1];while(E.d>=2&&E.v>=2){var Y=c.SJ(U,E);
L.push(Y.eB,Y.rect);U=Y.eB;E=Y.rect}};c.CE=function(L,C,U){var E=C.d,Y=C.v,z=E>>1,r=Y>>1,p=new _(C.x,C.y,z,r),T=U&&U.length==z*r*4?U:c.F(z*r*4),k=new Uint32Array(L.buffer),P=new Uint32Array(T.buffer);
for(var b=0;b<r;b++)for(var Q=0;Q<z;Q++){var K=b*z+Q,h=(b<<1)*E+(Q<<1),x=k[h],O=k[h+1],y=k[h+E],v=k[h+E+1],i=x>>>24,D=O>>>24,I=y>>>24,m=v>>>24,f=i+D+I+m;
if(f==1020){var A=(x>>>0&255)+(O>>>0&255)+(y>>>0&255)+(v>>>0&255)+2>>>2,d=(x>>>8&255)+(O>>>8&255)+(y>>>8&255)+(v>>>8&255)+2>>>2,g=(x>>>16&255)+(O>>>16&255)+(y>>>16&255)+(v>>>16&255)+2>>>2;
P[K]=255<<24|g<<16|d<<8|A}else if(f==0)P[K]=0;else{var A=(x>>>0&255)*i+(O>>>0&255)*D+(y>>>0&255)*I+(v>>>0&255)*m,d=(x>>>8&255)*i+(O>>>8&255)*D+(y>>>8&255)*I+(v>>>8&255)*m,g=(x>>>16&255)*i+(O>>>16&255)*D+(y>>>16&255)*I+(v>>>16&255)*m,X=1/f;
A=~~(A*X+.5);d=~~(d*X+.5);g=~~(g*X+.5);P[K]=f+2>>>2<<24|g<<16|d<<8|A}}return{rect:p,eB:T}};c.bt=function(L,C,U){var E=C.d,Y=C.v,z=E>>1,r=Y>>1,p=new _(C.x,C.y,z,r),T=U&&U.length==z*r*4?U:c.F(z*r*4),k=new Uint32Array(L.buffer),P=new Uint32Array(T.buffer);
for(var b=0;b<r;b++)for(var Q=0;Q<z;Q++){var K=b*z+Q,h=(b<<1)*E+(Q<<1),x=k[h],O=k[h+1],y=k[h+E],v=k[h+E+1],i=2+(x>>>0&255)+(O>>>0&255)+(y>>>0&255)+(v>>>0&255)>>>2,D=2+(x>>>8&255)+(O>>>8&255)+(y>>>8&255)+(v>>>8&255)>>>2,I=2+(x>>>16&255)+(O>>>16&255)+(y>>>16&255)+(v>>>16&255)>>>2,m=2+(x>>>24&255)+(O>>>24&255)+(y>>>24&255)+(v>>>24&255)>>>2;
P[K]=m<<24|I<<16|D<<8|i}return{rect:p,eB:T}};c.akJ=function(L,C,U){var E=C.d,Y=C.v,z=2*Math.floor(E/3),r=2*Math.floor(Y/3),p=new _(C.x,C.y,z,r),T=U&&U.length==z*r*4?U:c.F(z*r*4),k=new Uint32Array(L.buffer),P=new Uint32Array(T.buffer);
for(var b=0;b<r;b+=2)for(var Q=0;Q<z;Q+=2){var K=b*z+Q,h=(b*3>>>1)*E+(Q*3>>>1),x=k[h],O=k[h+1],y=k[h+2],v=k[h+E],i=k[h+1+E],D=k[h+2+E],I=k[h+E+E],m=k[h+1+E+E],f=k[h+2+E+E],A=x>>>24<<2,d=(x>>>16&255)*A,g=(x>>>8&255)*A,X=(x&255)*A,n=O>>>24<<1,R=(O>>>16&255)*n,l=(O>>>8&255)*n,w=(O&255)*n,V=y>>>24<<2,F=(y>>>16&255)*V,Z=(y>>>8&255)*V,M=(y&255)*V,a=v>>>24<<1,e=(v>>>16&255)*a,N=(v>>>8&255)*a,J=(v&255)*a,s=i>>>24,f5=(i>>>16&255)*s,dx=(i>>>8&255)*s,fq=(i&255)*s,i9=D>>>24<<1,e8=(D>>>16&255)*i9,S=(D>>>8&255)*i9,fs=(D&255)*i9,bz=I>>>24<<2,g6=(I>>>16&255)*bz,al=(I>>>8&255)*bz,bj=(I&255)*bz,bE=m>>>24<<1,eN=(m>>>16&255)*bE,dk=(m>>>8&255)*bE,hj=(m&255)*bE,iN=f>>>24<<2,dK=(f>>>16&255)*iN,ch=(f>>>8&255)*iN,hP=(f&255)*iN,d2=A+n+a+s,hr=V+n+i9+s,fv=bz+bE+a+s,f3=iN+bE+i9+s,dp=d2==0?0:1/d2,go=hr==0?0:1/hr,d6=fv==0?0:1/fv,iB=f3==0?0:1/f3,hS=0,eF=0,bQ=0,iP=0;
hS=~~(.5+(X+w+J+fq)*dp);eF=~~(.5+(g+l+N+dx)*dp);bQ=~~(.5+(d+R+e+f5)*dp);iP=~~(.5+d2*(1/9));P[K]=iP<<24|bQ<<16|eF<<8|hS;
hS=~~(.5+(M+w+fs+fq)*go);eF=~~(.5+(Z+l+S+dx)*go);bQ=~~(.5+(F+R+e8+f5)*go);iP=~~(.5+hr*(1/9));P[K+1]=iP<<24|bQ<<16|eF<<8|hS;
hS=~~(.5+(bj+hj+J+fq)*d6);eF=~~(.5+(al+dk+N+dx)*d6);bQ=~~(.5+(g6+eN+e+f5)*d6);iP=~~(.5+fv*(1/9));P[K+z]=iP<<24|bQ<<16|eF<<8|hS;
hS=~~(.5+(hP+hj+fs+fq)*iB);eF=~~(.5+(ch+dk+S+dx)*iB);bQ=~~(.5+(dK+eN+e8+f5)*iB);iP=~~(.5+f3*(1/9));P[K+z+1]=iP<<24|bQ<<16|eF<<8|hS}return{rect:p,eB:T}};
c.acu=function(L,C,U){var E=C.d,Y=C.v,z=2*Math.floor(E/3),r=2*Math.floor(Y/3),p=new _(C.x,C.y,z,r),T=U&&U.length==z*r*4?U:c.F(z*r*4),k=new Uint32Array(L.buffer),P=new Uint32Array(T.buffer);
for(var b=0;b<r;b+=2)for(var Q=0;Q<z;Q+=2){var K=b*z+Q,h=(b*3>>>1)*E+(Q*3>>>1),x=k[h],O=k[h+1],y=k[h+2],v=k[h+E],i=k[h+1+E],D=k[h+2+E],I=k[h+E+E],m=k[h+1+E+E],f=k[h+2+E+E],A=(x>>>16&255)<<2,d=(x>>>8&255)<<2,g=(x&255)<<2,X=(O>>>16&255)<<1,n=(O>>>8&255)<<1,R=(O&255)<<1,l=(y>>>16&255)<<2,w=(y>>>8&255)<<2,V=(y&255)<<2,F=(v>>>16&255)<<1,Z=(v>>>8&255)<<1,M=(v&255)<<1,a=i>>>16&255,e=i>>>8&255,N=i&255,J=(D>>>16&255)<<1,s=(D>>>8&255)<<1,f5=(D&255)<<1,dx=(I>>>16&255)<<2,fq=(I>>>8&255)<<2,i9=(I&255)<<2,e8=(m>>>16&255)<<1,S=(m>>>8&255)<<1,fs=(m&255)<<1,bz=(f>>>16&255)<<2,g6=(f>>>8&255)<<2,al=(f&255)<<2,bj=0,bE=0,eN=0;
bj=~~(.5+(g+R+M+N)*(1/9));bE=~~(.5+(d+n+Z+e)*(1/9));eN=~~(.5+(A+X+F+a)*(1/9));P[K]=255<<24|eN<<16|bE<<8|bj;
bj=~~(.5+(V+R+f5+N)*(1/9));bE=~~(.5+(w+n+s+e)*(1/9));eN=~~(.5+(l+X+J+a)*(1/9));P[K+1]=255<<24|eN<<16|bE<<8|bj;
bj=~~(.5+(i9+fs+M+N)*(1/9));bE=~~(.5+(fq+S+Z+e)*(1/9));eN=~~(.5+(dx+e8+F+a)*(1/9));P[K+z]=255<<24|eN<<16|bE<<8|bj;
bj=~~(.5+(al+fs+f5+N)*(1/9));bE=~~(.5+(g6+S+s+e)*(1/9));eN=~~(.5+(bz+e8+J+a)*(1/9));P[K+z+1]=255<<24|eN<<16|bE<<8|bj}return{rect:p,eB:T}};
c.Db=function(L){var C=255,U=L.length;U-=U&31;for(var H=3;H<U;H+=32)C=C&L[H]&L[H+4]&L[H+8]&L[H+12]&L[H+16]&L[H+20]&L[H+24]&L[H+28];
return C!=255};c.amt=function(L,C,U,E){var Y=c.CE,z=c.akJ,p=0;if(!c.Db(L)){Y=c.bt;z=c.acu}var r={eB:L,rect:C},T=U;
while(T<.499){p++;T*=2}for(var H=0;H<p;H++)r=Y(r.eB,r.rect,E);if(T<.5001)r=Y(r.eB,r.rect,E);else r=z(r.eB,r.rect,E);
return r};c.a9n=function(L,C,U,E){var Y=c.SJ,z=c.$f,r={eB:L,rect:C},p=0,T=U;while(T<.499){p++;T*=2}for(var H=0;
H<p;H++)r=Y(r.eB,r.rect,E);if(T<.5001)r=Y(r.eB,r.rect,E);else r=z(r.eB,r.rect,E);return r};c.SJ=function(L,C,U){var E=C.d,Y=C.v,z=E>>1,r=Y>>1,p=new _(C.x,C.y,z,r);
if(L==null)return{rect:p};var T=U&&U.length>=z*r?U:c.F(z*r);for(var k=0;k<r;k++){var P=k*z;for(var b=0;
b<z;b++){var Q=(k<<1)*E+(b<<1);T[P+b]=2+L[Q]+L[Q+1]+L[Q+E]+L[Q+E+1]>>>2}}return{rect:p,eB:T}};c.$f=function(L,C,U){var E=C.d,Y=C.v,z=2*Math.floor(E/3),r=2*Math.floor(Y/3),p=new _(C.x,C.y,z,r);
if(L==null)return{rect:p};var T=U&&U.length>=z*r?U:c.F(z*r);for(var k=0;k<r;k+=2)for(var P=0;P<z;P+=2){var b=k*z+P,Q=(k*3>>>1)*E+(P*3>>>1),K=L[Q]<<2,h=L[Q+1]<<1,x=L[Q+2]<<2,O=L[Q+E]<<1,y=L[Q+1+E],v=L[Q+2+E]<<1,i=L[Q+E+E]<<2,D=L[Q+1+E+E]<<1,I=L[Q+2+E+E]<<2;
T[b]=~~(.5+(K+h+O+y)*(1/9));T[b+1]=~~(.5+(x+h+v+y)*(1/9));T[b+z]=~~(.5+(i+D+O+y)*(1/9));T[b+z+1]=~~(.5+(I+D+v+y)*(1/9))}return{rect:p,eB:T}};
c.zM=function(L,C,U,E,Y){var z=C.eR(E);if(Y)z=z.eR(Y);var r=Math.max(0,z.x-C.x),p=Math.max(0,z.x-E.x),T=Math.max(0,z.y-C.y),k=Math.max(0,z.y-E.y),P=z.d,b=z.v;
for(var H=0;H<b;H++){var Q=(T+H)*C.d+r,K=(k+H)*E.d+p;for(var h=0;h<P;h++){U[K+h]=L[Q+h]}}};c.iN=function(L,C,U,E){if(C.cg(E)){c.Wn(L,U,3);
return}var Y=C.eR(E),z=Math.max(0,Y.x-C.x),r=Math.max(0,Y.x-E.x),p=Math.max(0,Y.y-C.y),T=Math.max(0,Y.y-E.y),k=Y.d,P=Y.v;
for(var H=0;H<P;H++){var b=(p+H)*C.d+z,Q=(T+H)*E.d+r;for(var K=0;K<k;K++)U[(Q+K<<2)+3]=L[b+K]}};c.LK=function(L,C,U,E){var Y=C.eR(E),z=Math.max(0,Y.x-C.x),r=Math.max(0,Y.x-E.x),p=Math.max(0,Y.y-C.y),T=Math.max(0,Y.y-E.y),k=Y.d,P=Y.v;
for(var H=0;H<P;H++){var b=(p+H)*C.d+z,Q=(T+H)*E.d+r;for(var K=0;K<k;K++)U[Q+K]=L[(b+K<<2)+3]}};c.La=function(L,C,U,E,Y){if(C.cg(E)&&(Y==null||Y.cg(E))){c.hL(L,U);
return}L=new Uint32Array(L.buffer),U=new Uint32Array(U.buffer);var z=C.eR(E);if(Y)z=z.eR(Y);var r=Math.max(0,z.x-C.x),p=Math.max(0,z.x-E.x),T=Math.max(0,z.y-C.y),k=Math.max(0,z.y-E.y),P=z.d,b=z.v,Q=P&3,K=Q==0?P:P-Q;
for(var H=0;H<b;H++){var h=(T+H)*C.d+r,x=(k+H)*E.d+p;U.set(new Uint32Array(L.buffer,h*4,P),x)}};c.pc=function(L,C,U,E){var Y=C.eR(E),z=Math.max(0,Y.x-C.x),r=Math.max(0,Y.x-E.x),p=Math.max(0,Y.y-C.y),T=Math.max(0,Y.y-E.y),k=Y.d,P=Y.v,b=L.R,Q=L.h,K=L.P,h=L.O,x=U.R,O=U.h,y=U.P,v=U.O;
for(var H=0;H<P;H++){var i=(p+H)*C.d+z,D=(T+H)*E.d+r;for(var I=0;I<k;I++){x[D+I]=b[i+I];O[D+I]=Q[i+I];
y[D+I]=K[i+I];v[D+I]=h[i+I]}}};c.ED=function(L){var C=L.length;for(var H=0;H<C;H+=4){var U=L[H+3];L[H]=~~(L[H]*U*(1/255)+.5);
L[H+1]=~~(L[H+1]*U*(1/255)+.5);L[H+2]=~~(L[H+2]*U*(1/255)+.5)}};c.mu=function(L){var C=L.length;for(var H=0;
H<C;H+=4){var U=L[H+3];if(U==0||U==255)continue;var E=255/U;L[H]=~~(L[H]*E+.5);L[H+1]=~~(L[H+1]*E+.5);
L[H+2]=~~(L[H+2]*E+.5)}};c.eQ=function(L,C){for(var H=0;H<L.length;H++)if(L[H]!=C)return!1;return!0};
c.wU=function(L){return L+1+(L>>>8)>>>8};c.round=function(L,C){if(C==null)C=128;var U=L.length;for(var H=0;
H<U;H++)L[H]=L[H]<C?0:255};c.yG=function(L,C){var U=L.length;for(var H=0;H<U;H++)L[H]=Math.round(L[H]*C)};
c.Iz=function(L,C){var U=new Uint32Array(L.buffer),E=new Uint32Array(C.buffer),Y=U.length;for(var H=0;
H<Y;H++){var z=U[H],r=E[H];E[H]=c.wU((z>>>24)*(r>>>24))<<24|c.wU((z>>>16&255)*(r>>>16&255))<<16|c.wU((z>>>8&255)*(r>>>8&255))<<8|c.wU((z&255)*(r&255))}};
c.sn=function(L,C){var U=L.length;for(var H=0;H<U;H++)C[(H<<2)+3]=c.wU(C[(H<<2)+3]*L[H])};c.a6a=function(L,C,U,E){var Y=Math.max(0,E.x-C.x),z=Math.max(0,C.x-E.x),r=Math.max(0,E.y-C.y),p=Math.max(0,C.y-E.y),T=Math.min(C.x+C.d,E.x+E.d)-Math.max(C.x,E.x),k=Math.min(C.y+C.v,E.y+E.v)-Math.max(C.y,E.y);
for(var H=0;H<k;H++){var P=(r+H)*C.d+Y,b=(p+H)*E.d+z;for(var Q=0;Q<T;Q++){U[b]=c.wU(U[b]*L[P]);P++;b++}}};
c.Ow=function(L,C,U,E){var Y=Math.max(0,E.x-C.x),z=Math.max(0,C.x-E.x),r=Math.max(0,E.y-C.y),p=Math.max(0,C.y-E.y),T=Math.min(C.x+C.d,E.x+E.d)-Math.max(C.x,E.x),k=Math.min(C.y+C.v,E.y+E.v)-Math.max(C.y,E.y);
for(var H=0;H<k;H++){var P=(r+H)*C.d+Y,b=((p+H)*E.d+z<<2)+3;for(var Q=0;Q<T;Q++){U[b]=c.wU(U[b]*L[P]);
P++;b+=4}}};c.xc=function(L,C,U,E){var Y=Math.max(0,E.x-C.x),z=Math.max(0,C.x-E.x),r=Math.max(0,E.y-C.y),p=Math.max(0,C.y-E.y),T=Math.min(C.x+C.d,E.x+E.d)-Math.max(C.x,E.x),k=Math.min(C.y+C.v,E.y+E.v)-Math.max(C.y,E.y);
for(var H=0;H<k;H++){var P=((r+H)*C.d+Y<<2)+3,b=((p+H)*E.d+z<<2)+3;for(var Q=0;Q<T;Q++){U[b]=c.wU(U[b]*L[P]);
P+=4;b+=4}}};c.aP=function(L){var C=new Float64Array(256),U=new Float64Array(256),E=new Float64Array(256),Y=new Float64Array(256),z=L.length,r=0;
for(var H=0;H<z;H+=4){var p=L[H+3],T=p*(1/255);U[L[H+0]]+=T;E[L[H+1]]+=T;Y[L[H+2]]+=T;r+=p}for(var H=0;
H<256;H++)C[H]=U[H]+E[H]+Y[H];return[C,U,E,Y,z>>>2,r/255]};c.SV=function(L,C){var U=new Uint32Array(L.buffer),E=U.length;
for(var H=0;H<E;H++){var Y=U[H],z=Y&255,r=Y>>8&255,p=Y>>16&255,T=Y>>24&255;U[H]=C[z]|C[r]<<8|C[p]<<16|C[T]<<24}};
c.ah6=function(L,C,U,E,Y,z,r){var p=new Uint32Array(L.buffer),T=new Uint32Array(C.buffer),k=p.length,P=0;
while(256<<P<U.length)P++;if(!r&&!z){for(var H=0;H!=k;H++){var b=p[H],Q=(b&255)<<P,K=(b>>>8&255)<<P,h=(b>>>16&255)<<P,x=U[Q],O=E[K],y=Y[h];
T[H]=x|O<<8|y<<16|b&4278190080}return}for(var H=0;H<k;H++){var b=p[H],Q=(b&255)<<P,K=(b>>>8&255)<<P,h=(b>>>16&255)<<P;
if(z)Q=K=h=Math.round(Q*.3+K*.59+h*.11);var x=U[Q],O=E[K],y=Y[h];if(r){var v=c.GZ(Q,K,h),i=c.GZ(x,O,y);
if(v>i){var D=(v-i)/(255-i);x+=D*(255-x);O+=D*(255-O);y+=D*(255-y)}else if(i==0)x=O=y=0;else{var D=v/i;
x=D*x;O=D*O;y=D*y}}T[H]=x|O<<8|y<<16|b&4278190080}};c.lJ=function(L,C){var U=C.d,E=C.v,top=0,Y=0,z=0,r=0,p=0;
p=0;for(var T=0;T<E;T++){var k=T*U;for(var H=0;H<U;H++)p|=L[k+H];if(p!=0)break;top++}if(top==E)return new _(0,0,0,0);
p=0;for(var T=E-1;T>=0;T--){var k=T*U;for(var H=0;H<U;H++)p|=L[k+H];if(p!=0)break;z++}var P=E-z;p=0;
for(var H=0;H<U;H++){for(var T=top;T<P;T++)p|=L[T*U+H];if(p!=0)break;Y++}p=0;for(var H=U-1;H>=0;H--){for(var T=top;
T<P;T++)p|=L[T*U+H];if(p!=0)break;r++}var b=new _(C.x+Y,C.y+top,U-Y-r,E-top-z);return b};c.TW=function(L,C,U,E){if(E==null)E=[!0,!0,!0,!0];
if(U==null)U=0;var Y=new Uint32Array(L.buffer),z=C.d,r=C.v,top=0,p=0,T=0,k=0,P=!1,b=[Y[0],Y[Y.length-1],0][U];
P=!1;if(E[0])for(var Q=0;Q<r;Q++){var K=Q*z;for(var H=0;H<z;H++)if(Y[K+H]!=b)P=!0;if(P)break;top++}P=!1;
if(E[2])for(var Q=r-1;Q>=0;Q--){var K=Q*z;for(var H=0;H<z;H++)if(Y[K+H]!=b)P=!0;if(P)break;T++}P=!1;
if(E[1])for(var H=0;H<z;H++){for(var Q=0;Q<r;Q++)if(Y[Q*z+H]!=b)P=!0;if(P)break;p++}P=!1;if(E[3])for(var H=z-1;
H>=0;H--){for(var Q=0;Q<r;Q++)if(Y[Q*z+H]!=b)P=!0;if(P)break;k++}var h=new _(C.x+p,C.y+top,z-p-k,r-top-T);
return h.ue()?new _(0,0,0,0):h};c.Jx=function(L){var C=c.lJ(L.channel,L.rect);if(C.cg(L.rect))return;
var U=c.F(C.X());c.zM(L.channel,L.rect,U,C);L.channel=U;L.rect=C};c.Xb=function(L){var C=c.F(L.buffer.length>>2);
c.wH(L.buffer,C,3);var U=c.lJ(C,L.rect);if(U.cg(L.rect))return;var E=new c.F(U.X()*4);c.La(L.buffer,L.rect,E,U);
L.buffer=E;L.rect=U};c.extend=function(L,C,U){if(L.rect.zg(C))return;var E=L.rect.EU(C),Y=c.F(E.X());
if(U!=null)Y.fill(U);c.zM(L.channel,L.rect,Y,E);L.rect=E;L.channel=Y};c.a9_=function(L,C){if(C.ue()||L.rect.zg(C))return;
var U=L.rect.EU(C),E=c.F(U.X()*4);c.La(L.buffer,L.rect,E,U);L.rect=U;L.buffer=E};c.gW=function(L,C,U){if(!U.qh(L))return!1;
var E=Math.floor(L.x)-U.x,Y=Math.floor(L.y)-U.y,H=Y*U.d+E;return C[H]>128};c.adp=function(L,C,U){if(!U.qh(L))return!1;
var E=Math.floor(L.x)-U.x,Y=Math.floor(L.y)-U.y,H=Y*U.d+E;return C[4*H+3]>128};c.PH=function(L){if(c.cI.length<L){c.cI=c.F(L);
c.cI.fill(255)}return c.cI};c.cI=c.F(0);c.Zx=function(L){if(c.rm.length<L)c.rm=c.F(L);return c.rm};c.rm=c.F(0);
c.Ry=function(L){this.R=c.F(L);this.h=c.F(L);this.P=c.F(L);this.O=c.F(L)};c.Ry.prototype.clone=function(){var L=this.R.length,C=new c.Ry(1);
C.R=this.R.slice(0);C.h=this.h.slice(0);C.P=this.P.slice(0);C.O=this.O.slice(0);return C};c.DA.k5=function(){function L(v,i){return v[i]+v[i+1]+v[i+2]+v[i+3]}function C(v,i){return v[i]+v[i+1]+v[i+2]+2*v[i+3]}function U(v,i,D,I){v[i]=D[I];
v[i+1]=D[I+1];v[i+2]=D[I+2];v[i+3]=D[I+3]}function E(v,i,D){v[i]=v[D];v[i+1]=v[D+1];v[i+2]=v[D+2];v[i+3]=v[D+3]}function Y(v,i,D){v[D]=i[D];
v[D+1]=i[D+1];v[D+2]=i[D+2];v[D+3]=255-i[D+3]}function z(v){for(var H=0,i=v.length;H<i;H+=4){v[H+3]=255-v[H+3]}}function r(){var v=Math.random();
if(v>.5)return 0;if(v>.25)return 1;if(v>.1)return 2;if(v>.02143)return 3;if(v>.00445)return 4;if(v>65e-5)return 5;
if(v>415e-6)return 6;if(v>55e-6)return 7;return 8}function p(v,i,D,I,m,f){v[i]=D[I]+(m[f]-D[I]>>1);v[i+1]=D[I+1]+(m[f+1]-D[I+1]>>1);
v[i+2]=D[I+2]+(m[f+2]-D[I+2]>>1);v[i+3]=D[I+3]+(m[f+3]-D[I+3]>>1)}function T(v,i,D,I,m,f){v[i]=m[f]+D[I]>>1;
v[i+1]=m[f+1]+D[I+1]>>1;v[i+2]=m[f+2]+D[I+2]>>1;v[i+3]=m[f+3]+D[I+3]>>1}function k(v,i,D,I,m,f,A,d,g){var X=0,n=0,R=0,H,l=m[f],w;
p(d,0,v,i,v,D);for(H=0;H<l;H++){p(d,(H+1)*4,d,H*4,v,D)}n=(l+1)*4;R+=l;f--;U(v,i,d,n-4);I[f]=L(v,i);i-=g;
while(f>0&&I[f-1]<I[f]){w=d;d=A;A=w;X=n;T(d,0,v,i-g,A,0);for(H=4;H<X;H+=4){T(d,H,d,H-4,A,H)}l=m[f];for(H=R;
H<l;H++){p(d,n,d,n-4,A,X-4);n+=4;R++}f--;U(v,i,d,n-4);I[f]=L(v,i);i-=g}}function P(v,i,D,I,m){var f=i*4,A=0,d,g,X=new Uint8Array(i+1),n=new Uint8Array(10*4),R=new Uint8Array(10*4);
for(var H=0;H<D;H++){Y(I,v,A);m[0]=L(I,A);X[0]=r();d=A;A+=4;for(var l=1;l<i;l++){Y(I,v,A);m[l]=L(I,A);
g=r();X[l]=g;if(m[l-1]<m[l]&&g>0){k(I,A-4,A,m,X,l,n,R,4)}A+=4}m[i]=m[0];X[i]=X[0];if(m[i-1]<m[i]&&g>0){k(I,A,d,m,X,i,n,R,4)}}z(I)}function b(){var v=Math.random();
if(v>.659755)return 0;if(v>.1625)return 10;if(v>.06)return 20;if(v>.01)return 30;if(v>.0035)return 40;
if(v>65e-5)return 50;if(v>415e-6)return 60;if(v>55e-6)return 70;return 80}function Q(v,i,D,I,m,f){var A=b()+1,d=I[m];
for(var H=1;H<A;H++){if(0>m)break;if(I[m-H]<d){E(v,i,D)}else{break}i+=f}}function K(v,i,D,I,m){var f=i*4,A=0;
for(var H=0;H<D;H++){Y(I,v,A);m[0]=L(I,A);A+=4;for(var d=1;d<i;d++){Y(I,v,A);m[d]=L(v,A);if(m[d-1]<m[d]){Q(I,A-4,A,m,d,-4)}A+=4}m[i]=m[0];
if(m[d-1]<m[d]){Q(I,A-4,A-f,m,d,-4)}}z(I)}function h(v,i,D,I,m,f){var A=1,d,g,X=new Uint8Array(4),n,R=i;
while(Math.random()<1/A){R=i;if(I<=1)break;d=D[I];g=D[I-1];if(d<=g)break;U(X,0,v,R-f);n=!0;for(var H=I;
H<m;H++){if(g>D[H]){U(v,R-f,X,0);D[H-1]=g;n=!1;break}U(v,R-f,v,R);D[H-1]=D[H];R+=f}if(n){U(v,R-f,X,0);
D[m-1]=g}A++;I--;i-=f}}function x(v,i,D,I,m){var f=0,A=0,d=i*4;for(var H=0;H<D;H++){A=f;for(var g=0;
g<i;g++){Y(I,v,f);m[g]=C(I,f);f+=4}f=A;for(var g=1;g<i;g++){if(m[g-1]<m[g]&&Math.random()<.66){h(I,f+4,m,g,i,4)}f+=4}f+=4}z(I)}function O(v,i,D,I,m){var f=m[0],A=m[1],d=new Uint16Array(i+1),g=v,X=I,n;
if(A){n=I.slice(0);y(v,I,i,D);g=I;X=n}if(f==0)P(g,i,D,X,d);else if(f==1)K(g,i,D,X,d);else if(f==2)x(g,i,D,X,d);
if(A){y(n,I,i,D)}}function y(v,i,D,I){for(var m=0;m<I;m++)for(var f=0;f<D;f++){var A=m*D+f<<2,d=m*D+(D-1-f)<<2;
i[d]=v[A];i[d+1]=v[A+1];i[d+2]=v[A+2];i[d+3]=v[A+3]}}return O}();c.DA.aiJ=function(){function L(C,U,E,Y){var z=new Uint8Array(C.length),r=new Uint8Array(C.length>>>2),p=new Uint8Array(C.length>>>2);
c.N1.jg(C,z,U,E,c.N1.MZ[2],0,!0);for(var H=0;H<C.length;H+=4){var T=z[H+0]*.3+z[H+1]*.59+z[H+2]*.11;
r[H>>>2]=T;Y[H+0]=C[H+0];Y[H+1]=C[H+1];Y[H+2]=C[H+2];Y[H+3]=C[H+3]}c.N1.Z8(r,p,U,E);for(var H=0;H<C.length;
H+=4){z[H+3]=~~(Math.max(0,255-p[H>>>2]-50)*(255/205))}for(var H=0,k=C.length;H<k;H+=4){var P=z[H+3]/255;
Y[H]=z[H]*P+Y[H]*(1-P);Y[H+1]=z[H+1]*P+Y[H+1]*(1-P);Y[H+2]=z[H+2]*P+Y[H+2]*(1-P)}}return L}();c.DA.ann=function(){function L(C,U,E,Y){var z=new Uint8Array(C.length>>>2),r=new Uint8Array(C.length>>>2),p=new Uint8Array(C.length);
for(var H=0;H<C.length;H+=4){var T=C[H+0]*.3+C[H+1]*.59+C[H+2]*.11;r[H>>>2]=T;p[H]=C[H];p[H+1]=C[H+1];
p[H+2]=C[H+2]}c.N1.Z8(r,z,U,E);c.N1.jg(C,Y,U,E,c.N1.MZ[1],0,!0);for(var H=0;H<C.length;H+=4){p[H+3]=255-z[H>>>2]}for(var H=0,k=C.length;
H<k;H+=4){var P=p[H+3]/255;Y[H]=p[H]*P+Y[H]*(1-P);Y[H+1]=p[H+1]*P+Y[H+1]*(1-P);Y[H+2]=p[H+2]*P+Y[H+2]*(1-P)}}return L}();
c.DA.a90=function(){function L(z,r,p,T,k){var P=new Uint32Array(z.buffer),b=0;for(var H=0;H<p;H++){for(var Q=0;
Q<r;Q++,b+=4){var K=P[H*r+Q],h=K&255,x=K>>>8&255,O=K>>>16&255,y=K>>>24&255,v=~~(Math.random()*8),i=v%3,D=0,I=0;
if(v<3){I--}else if(v>4){I++}if(i==0){D--}else if(i==2){D++}var m=Q+D,f=H+I;if(m<0)m=0;else if(m>r-1)m=r-1;
if(f<0)f=0;else if(f>p-1)f=p-1;var K=P[f*r+m],A=K&255,d=K>>>8&255,g=K>>>16&255,X=K>>>24&255;T[b]=k(h,A);
T[b+1]=k(x,d);T[b+2]=k(O,g);T[b+3]=k(y,X)}}}function C(z,r){return r}function U(z,r){return z>r?r:z}function E(z,r){return z<r?r:z}function Y(z,r,p,T,k){var P=k[0];
if(P==0)L(z,r,p,T,C);else if(P==1)L(z,r,p,T,U);else if(P==2)L(z,r,p,T,E);else if(P==3){console.error("Not implemented")}else console.error("Mew mew")}return Y}();
c.DA.a9w=function(){var L=[],C=new Uint8Array(512),U=new Float32Array(512),E=new Float32Array(512),Y=[1,-1,1,-1,1,-1,0,0],z=[1,1,-1,-1,0,0,1,-1],r=0,p,h=0;
for(;r<256;r++)L[r]=r;while(r!=0){r--;p=Math.floor(Math.random()*r);L[p]^=L[r]^(L[r]=L[p])}function T(T){T=Math.floor(T*65536);
if(T<256){T|=T<<8}for(var H=0;H<256;H++){var y=H+256,v=L[H]^(H&1?T:T>>8)&255;C[H]=C[y]=v;v=v%8;U[H]=U[y]=Y[v];
E[H]=E[y]=z[v]}}function k(y){return y*y*y*(y*(y*6-15)+10)}function P(y,v,i){return(1-i)*y+i*v}function b(y,v){return y&v}function Q(y,v){return y%v}function K(y,v,i,D,I){var m=Math.floor(y),f=Math.floor(v),r,A,d,g,X,n;
y=y-m;v=v-f;m=m&255;f=f&255;r=m+C[f];g=U[r]*y+E[r]*v;r=m+C[I(f+1,D)];d=U[r]*y+E[r]*(v-1);r=I(m+1,i)+C[f];
X=U[r]*(y-1)+E[r]*v;r=I(m+1,i)+C[I(f+1,D)];n=U[r]*(y-1)+E[r]*(v-1);A=k(y);return P(P(g,X,A),P(d,n,A),k(v))}function x(y,r,v){y[r]=v}function O(y,v,i,D,I){var m=Math.min(Math.min(v,256),Math.min(256,i)),f=m==256||m<8,A=8,d=new Uint32Array(A),g=new Uint32Array(A),X=new Float32Array(A),n=new Float32Array(A),R=1,l=1,w=f?b:Q,V=x,F;
for(var H=0;H<A;H++){F=l*1/m;if(f){g[H]=(1<<Math.ceil(Math.log2(i*F)))-1;d[H]=(1<<Math.ceil(Math.log2(v*F)))-1}else{g[H]=F*i;
d[H]=F*v}X[H]=R;n[H]=F;R*=.5;l=l<<1}T(Math.random());for(var Z=0,r=0;Z<i;Z++){for(var M=0;M<v;M++){var a=0;
for(var e=0;e<A;e++){F=n[e];a+=K(M*F,Z*F,d[e],g[e],w)*X[e]}V(D,r++,Math.round(Math.max(0,255*Math.min(1,.5+a*.5))))}}}return O}();
c.DA.ao4=function(){function L(C,U,E,Y,z){var r=z&&z[0]?z[0]:4,p,T,k,P,b,Q,K;for(var H=0;H<E;H++){var h=Math.max(H-r,0),x=Math.min(H+r,E-1);
for(var O=0;O<U;O++){var y=Math.max(O-r,0),v=Math.min(O+r,U-1);p=h*U+y<<2;P=C[p];b=C[p+1];Q=C[p+2];K=C[p+3];
p=h*U+v<<2;P+=C[p];b+=C[p+1];Q+=C[p+2];K+=C[p+3];p=x*U+y<<2;P+=C[p];b+=C[p+1];Q+=C[p+2];K+=C[p+3];p=x*U+v<<2;
P+=C[p];b+=C[p+1];Q+=C[p+2];K+=C[p+3];p=H*U+O<<2;Y[p]=P+2>>>2;Y[p+1]=b+2>>>2;Y[p+2]=Q+2>>>2;Y[p+3]=K+2>>>2}}}return L}();
c.DA.a7q=function(){var L=[-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];
function C(U,E,Y,z,r){var p=r[0],T=r[1],k=T<=50?L[T]/255:1+(255-L[101-T])/255,P=r[2],b=U.length,Q=new Float32Array(b),K=0,h,x=1+1/10*p,O=(1-1/x)/2,y=16/256,v=E-1,H,i,D,I,m=0,f=1,A=255;
for(H=0;H<z.length;H++){Q[H]=U[H]/255;z[H]=p==1?Math.random()<1/255?A:f:f}function d(g,X){var n=g*E+X;
if(z[n]!=f||g>=Y||X>=E){return}var D=Q[n],R=k-D,l=Math.random(),w=l/x+O;if(K==0||Math.abs(I-D)>y){h=w<=R?m:A;
K=~~(Math.random()*p)}else if(.1<l){K--}else{K=0}z[n]=h;I=D}if(P==0){for(H=0;H<E;H++){for(i=0;i<E;i++){D=H+i;
if(D>=E)break;d(i,v-D)}K=0}for(H=1;H<Y;H++){for(i=0;i<Y;i++){D=H+i;if(D>=Y||i>=E)break;d(D,v-i)}K=0}}else if(P==1){for(H=0;
H<Y;H++){for(i=0;i<E;i++){d(H,i)}K=0}}else if(P==2){for(H=0;H<E;H++){for(i=0;i<E;i++){D=H+i;if(D>=E)break;
d(i,D)}K=0}for(H=1;H<Y;H++){for(i=0;i<Y;i++){D=H+i;if(D>=Y||i>=E)break;d(D,i)}K=0}}else{for(H=0;H<E;
H++){for(i=0;i<Y;i++){d(i,H)}K=0}}}return C}();c.DA.ahU=function(){function L(p){var T=new Uint8Array(256),k=new Uint8Array(256),P=255,H;
if(p<2)P=p;else if(p<12)P=5*p-5;else if(p<47)P=2*p+28;else if(p<50){H=p-47;P=125+12.5*H+12.5*H*H}for(var H=0;
H<256;H++){k[H]=P<H?0:255}for(var H=0;H<256;H++){var b=H<<3;T[H]=k[b>255?255:b]}return k}function C(){var p=new Uint8Array(256),H,T;
for(H=75,T=15;T<256;H++,T+=24)p[H]=T;for(;H<256;H++)p[H]=255;return p}function U(p,T,k,P){Y(p,T,k,11,P)}function E(p,T,k,P){Y(p,T,k,5,P);
for(var H=0;H<P.length;H++)P[H]=P[H]<51?0:255}function Y(p,T,k,P,b){c.qM.m9(p,b,new _(0,0,T,k),P>>>1)}function z(p,T){var k=p.length,P;
for(var H=0;H<k;H++){P=p[H]-T[H];T[H]=P<0?0:P}}function r(p,T,k,P,b){var Q=b[0],K=b[1],h=L(Q),x=C(),O=p.length,y=new Uint8Array(O),v=P;
U(p,T,k,y);U(y,T,k,v);z(v,p);for(var H=0;H<O;H++){var i=p[H]*8;p[H]=i>255?255:i}z(v,p);for(var H=0;H<O;
H++){p[H]=h[p[H]]}var D=K,I=K;if((D&1)==0){D++;I--}E(p,T,k,y);Y(y,T,k,D,v);Y(v,T,k,I,y);for(var H=0;
H<O;H++)P[H]=x[255-y[H]]}return r}();c.DA.ahx=function(){var L,Y,z,r,p,T;function C(y){var v=0,i=y.length,D=new Uint8Array(i>>2);
for(var H=0;H<i;H+=4){D[v++]=~~((y[H]+y[H+1]+y[H+2])/3)}L=D;return D}function U(y,v,i,D,I){var m=I,f=I>>1,A=f-1,d=m*m,g=0;
for(var H=0;H<D;H++){var X=0;for(var n=0;n<m;n++){for(var R=0;R<m;R++){var l=0-f+R,w=H-f+n;if(l<0)l=0;
else if(l>=i)l=i-1;if(w<0)w=0;else if(w>=D)w=D-1;X+=y[w*i+l]}}v[g++]=~~(X/d);for(var V=1;V<i;V++){for(var n=0;
n<m;n++){var F=V-f-1,Z=F+m,w=H-f+n;if(F<0)F=0;if(Z>=i)Z=i-1;if(w<0)w=0;else if(w>=D)w=D-1;X+=y[w*i+Z]-y[w*i+F]}v[g++]=~~(X/d)}}L=v}function E(y,v){var i=y.length;
for(var H=0;H<i;H++){v[H]=Math.max(y[H]-v[H],0)}L=v}var k=new Uint8Array(256),P=new Uint8Array(256);
function b(y){z=y[0];p=y[1];T=y[2];Y=2*z+1;var v=5+10*p;v+=p>3?(p-3)*10:0;var i=~~(T*.73)+50,D=Math.min(i+v,128),I=D-i,m=-255*i;
r=z+4;for(var H=0;H<256;H++){var f=H*65;k[H]=f>=256?255:f;P[H]=Math.max(Math.min(~~(m/I),255),0);m+=255}}function Q(y,v,i,D,I,m,f,A,d,g){var X=I+m-1,n=I>>1,R=X>>1,l=0,w=new Int32Array(I),V=new Int32Array(256),F=new Int32Array(16);
if(!f){R}for(var H=0;H<D;H++){V.fill(0);F.fill(0);for(var Z=0;Z<I;Z++){var M=f?X-Z-m:Z;for(var a=M,e=m+M;
a<e;a++){var N=0-R+a,J=H-n+Z;if(a==M){w[Z]=N}if(N<0)N=0;else if(N>=i)N=i-1;if(J<0)J=0;else if(J>=D)J=D-1;
var s=y[J*i+N];V[s]++;F[s>>>4]++}}var f5=0,dx;for(dx=0;dx<256;dx++){f5+=V[dx];if(f5>=g)break}v[l++]=dx;
for(var fq=1;fq<i;fq++){for(var Z=0;Z<I;Z++){var J=H-n+Z,M=w[Z]+1;w[Z]=M;var i9=M-1,e8=M+m-1;if(J<0)J=0;
else if(J>=D)J=D-1;if(i9<0)i9=0;else if(i9>=i)i9=i-1;if(e8<0)e8=0;else if(e8>=i)e8=i-1;var S=y[J*i+i9],fs=y[J*i+e8];
V[S]--;F[S>>>4]--;V[fs]++;F[fs>>>4]++}f5=0;dx=0;while(f5+F[dx>>>4]<g){f5+=F[dx>>>4];dx+=16}for(;dx<256;
dx++){f5+=V[dx];if(f5>=g)break}v[l++]=dx}}L=v}function K(y){var v=y.length,i=new Uint8Array(v),H=0;for(;
H<v;H++){i[H]=y[H]}L=i;return i}function h(y,v){for(var H=0,i=y.length;H<i;H++){y[H]=v[y[H]]}L=y}function x(y,v,i,D){var I=0;
for(var H=0;H<i;H++){var m=H*D,f=(H-1)*D,A=(H+1)*D;if(f<0)f=m;if(A>=i)A=m;for(var d=0;d<D;d++){var g=d-1,X=d+1;
if(g<0)g=d;if(X>=D)X=d;var n=y[m+g],R=y[m+X],l=y[f+d],w=y[A+d],V=y[m+d];v[I++]=Math.min(Math.max(V+2*(4*V-(n+R+l+w)),0),255)}}L=v}function O(y,v,i,D,I){b(I);
var m=y.length,f=new Uint8Array(m),A=K(y);U(y,f,v,i,Y);for(var H=0;H<m;H++){y[H]=Math.min(Math.max(f[H]-y[H],0)*65,255)}Q(y,f,v,i,9,3,!0,0,65,20);
for(var H=0;H<m;H++){var d=A[H],g=f[H];if(g>0)y[H]=~~((g*d+(255-g)*128)/255);else y[H]=128}L=y;U(y,f,v,i,3);
Q(f,y,v,i,15,2,!0,0,1,16);Q(f,A,v,i,15,2,!1,0,1,15);for(var H=0;H<m;H++){A[H]=y[H]+A[H]>>1}L=A;x(A,f,i,v);
h(f,P);U(f,y,v,i,2);D.set(L)}return O}();c.CN={ak7:function(L,C){var H=L.length;L.push(C);var U=H>>>1;
while(U!=0&&L[H][0]<L[U][0]){var E=L[H];L[H]=L[U];L[U]=E;H=U;U=H>>>1}},amI:function(L){if(L.length==2)return L.pop();
var top=L[1],H=1;L[1]=L.pop();var C=L.length;while(!0){var U=H<<1,E=U+1,Y=H;if(U<C&&L[U][0]<L[Y][0])Y=U;
if(E<C&&L[E][0]<L[Y][0])Y=E;if(Y==H)break;var z=L[H];L[H]=L[Y];L[Y]=z;H=Y}return top},acT:function(L){for(var H=1;
H<L.length;H++){var C=H,U=1e9;while(C!=0){var E=L[C][0];if(E>U){console.log(H);throw"e"}U=E;C=C>>>1}}}};
c.Q={};c.Q.EP=new Float64Array(256);c.Q.A6=new Uint8Array(256*256);c.Q.Bu=new Uint8Array(256*256);(function(){for(var H=0;
H<256;H++)c.Q.EP[H]=255/H;for(var H=0;H<256;H++)for(var L=0;L<256;L++)c.Q.A6[H*256+L]=H==0?0:Math.round(L*255/H);
for(var H=0;H<256;H++)for(var L=0;L<256;L++)c.Q.Bu[H*256+L]=Math.round(H*(255-L)/255)}());c.Q.Kj=function(L,C,U,E,Y,z,r,p){if(p==null)p=ca.wq();
if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(L)==-1){r=r*p.fill;p.fill=1;p.style=!1}var T="norm,dark,mul ,idiv,lbrn,lite,scrn,div ,lddg,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv".split(","),k="dkCl,lgCl,hue ,sat ,colr,lum ".split(","),P=c.Q[L+"F"];
if(p.UZ==null&&L=="norm")c.Q.aez(C,U,E,Y,z,r,P,p.H1?1:0);else if(L=="diss")c.Q.aaX(C,U,E,Y,z,r,P,p.H1?1:0);
else if(T.indexOf(L)!=-1)c.Q.a5v(C,U,E,Y,z,r,P,p);else if(k.indexOf(L)!=-1)c.Q.a7N(C,U,E,Y,z,r,P,p)};
c.Q.a0T=function(L,C,U){var E=L*U+1-U;return E<.001?0:1-Math.min(1,(1-C)/E)};c.Q.acD=function(L,C,U){return L*U==1?1:Math.min(1,C/(1-L*U))};
c.Q.WX=function(L){return L<=.25?((16*L-12)*L+4)*L:Math.sqrt(L)};c.Q.normF=function(L,C,U){return L};
c.Q.darkF=function(L,C,U){return Math.min(L,C)};c.Q["mul F"]=function(L,C,U){return L*C};c.Q.idivF=function(L,C,U){var E=L*U+1-U;
return C==1?1:1-C>=E?0:1-(1-C)/E};c.Q.lbrnF=function(L,C,U){return Math.max(0,L*U+C-U)};c.Q.dkClF=function(L,C,U){var E=c.uW(L)<c.uW(C)?L:C;
U.h=E.h;U.P=E.P;U.O=E.O;return U};c.Q.liteF=function(L,C,U){return Math.max(L,C)};c.Q.scrnF=function(L,C,U){return C+L-C*L};
c.Q["div F"]=function(L,C,U){L*=U;return C==0?0:C>=1-L?1:C/(1-L)};c.Q.lddgF=function(L,C,U){L*=U;return Math.min(1,L+C)};
c.Q.lgClF=function(L,C,U){var E=c.uW(L)>c.uW(C)?L:C;U.h=E.h;U.P=E.P;U.O=E.O;return U};c.Q.overF=function(L,C,U){return c.Q.hLitF(C,L,U)};
c.Q.sLitF=function(L,C,U){return L<=.5?C-(1-2*L)*C*(1-C):C+(2*L-1)*(c.Q.WX(C)-C)};c.Q.hLitF=function(L,C,U){return L<=.5?c.Q["mul F"](2*L,C,U):c.Q.scrnF(2*L-1,C,U)};
c.Q.vLitF=function(L,C,U){return L<=.5?c.Q.a0T(2*L,C,U):c.Q.acD(2*L-1,C,U)};c.Q.lLitF=function(L,C,U){return L<=.5?c.Q.lbrnF(2*L,C,U):c.Q.lddgF(2*L-1,C,U)};
c.Q.pLitF=function(L,C,U){return L<=.5?c.Q.darkF(2*L,C,U):c.Q.liteF(2*L-1,C,U)};c.Q.hMixF=function(L,C,U){if(U>.99)return L+C<1?0:1;
return Math.min(1,Math.max(0,(C+L*U-U)/(1-U+1e-6)))};c.Q.diffF=function(L,C,U){L*=U;return Math.abs(L-C)};
c.Q.smudF=function(L,C,U){return L+C-2*L*C};c.Q.fsubF=function(L,C,U){return Math.max(C-L,0)};c.Q.fdivF=function(L,C,U){return Math.min(C/L,1)};
c.Q["hue F"]=function(L,C,U){c.Qx(L,c._a(C),U);c.B5(U,c.uW(C),U)};c.Q["sat F"]=function(L,C,U){c.Qx(C,c._a(L),U);
c.B5(U,c.uW(C),U)};c.Q.colrF=function(L,C,U){c.B5(L,c.uW(C),U)};c.Q["lum F"]=function(L,C,U){c.B5(C,c.uW(L),U)};
c.Q.aez=function(L,C,U,E,Y,z,r,p){var T=C.eR(E).eR(Y),k=Math.max(0,T.x-C.x),P=Math.max(0,T.x-E.x),b=Math.max(0,T.y-C.y),Q=Math.max(0,T.y-E.y),K=T.d,h=T.v,x=C.d,O=E.d,y=c.Q.A6,v=c.Q.Bu,i=new Uint32Array(L.buffer),D=new Uint32Array(U.buffer);
for(var H=0;H<h;H++){var I=(b+H)*x+k,m=(Q+H)*O+P;for(var f=0;f<K;f++){var A=i[I+f],X=255;if(A>>>24==0)continue;
if(A>>>24==255&&z==1&&p==0){D[m+f]=i[I+f];continue}var d=D[m+f],g=255*z&255;if(p==0){g=(A>>>24)*z&255;
X=d>>>24}var n=v[X<<8|g],R=g+n,l=A&255,w=A>>>8&255,V=A>>>16&255,F=d&255,Z=d>>>8&255,M=d>>>16&255;D[m+f]=p*(d>>>24)+(1-p)*R<<24|y[R<<8|c.wU(V*g+M*n)]<<16|y[R<<8|c.wU(w*g+Z*n)]<<8|y[R<<8|c.wU(l*g+F*n)]}}};
c.Q.akg=function(L,C,U,E,Y,z){var r=C.eR(E).eR(Y),p=Math.max(0,r.x-C.x),T=Math.max(0,r.x-E.x),k=Math.max(0,r.y-C.y),P=Math.max(0,r.y-E.y),b=r.d,Q=r.v,K=C.d,h=E.d,x=c.Q.A6,O=c.Q.Bu,y=new Uint32Array(L.buffer),v=new Uint32Array(U.buffer),i=Math.floor(Math.random()*16777215),D=0;
for(var H=0;H<Q;H++){var I=(k+H)*K+p,m=(P+H)*h+T;for(var f=0;f<b;f++){var A=y[I+f];if(A>>>24==0)continue;
if(A>>24==255&&z==1){v[m+f]=A;continue}var d=v[m+f],g=(A>>>24)*z*(1/255),X=(d>>>24)*(1/255),n=X*(1-g),R=g+n,l=A&255,w=A>>>8&255,V=A>>>16&255,F=d&255,Z=d>>>8&255,M=d>>>16&255;
D>>>=8;if((f&3)==0)D=c.Q.Gn(m+f+i);var a=R==0?0:1/R,e=Math.floor(R*(256*255))+(D&255)>>>8,N=Math.floor((V*g+M*n)*a+.5),J=Math.floor((w*g+Z*n)*a+.5),s=Math.floor((l*g+F*n)*a+.5);
v[m+f]=e<<24|N<<16|J<<8|s}}};c.Q.Bv=function(L,C,U,E,Y,z,r,p){var T=c.GZ(L,C,U),k=c.GZ(E,Y,z),P=Math.min,b=c.Q.afO,Q=b(T,p,0);
Q=P(Q,b(L,p,8));Q=P(Q,b(C,p,16));Q=P(Q,b(U,p,24));var K=b(k,p,4);K=P(K,b(E,p,12));K=P(K,b(Y,p,20));K=P(K,b(z,p,28));
K=Math.max(K,1-r);var h=Math.min(Q,K);return h<0?0:h>1?1:h};c.Q.afO=function(L,C,H){return Math.min((L-C[H])*C[H+1],(L-C[H+3])*C[H+2])};
c.Q.a5v=function(L,C,U,E,Y,z,r,p){var T=1/255,k=T*z,P=p.H1?1:0,b=p.fill,Q=p.style,K=C.eR(E).eR(Y),h=Math.max(0,K.x-C.x),x=Math.max(0,K.x-E.x),O=Math.max(0,K.y-C.y),y=Math.max(0,K.y-E.y),v=K.d,i=K.v,D=C.d,I=E.d,m=new Uint32Array(L.buffer),f=new Uint32Array(U.buffer);
for(var H=0;H<i;H++){var A=(O+H)*D+h,d=(y+H)*I+x;for(var g=0;g<v;g++,A++,d++){var X=m[A],a=1;if(X>>>24==0)continue;
var n=f[d],R=(X&255)*T,l=(X>>>8&255)*T,w=(X>>>16&255)*T,V=(n&255)*T,F=(n>>>8&255)*T,Z=(n>>>16&255)*T,M=z;
if(P==0){M=(X>>>24)*k;a=(n>>>24)*T}if(p.UZ)M*=c.Q.Bv(R,l,w,V,F,Z,a,p.UZ);var e=a*(1-M),N=M+e,J=N==0?0:255/N,s=Q?1:M,f5=((1-a)*M*R+(1-s)*a*V+s*a*r(R,V,(1+M-s)*b))*J,dx=((1-a)*M*l+(1-s)*a*F+s*a*r(l,F,(1+M-s)*b))*J,fq=((1-a)*M*w+(1-s)*a*Z+s*a*r(w,Z,(1+M-s)*b))*J;
N=M*b+a*(1-M*b);var i9=~~(N*255+.5);f[d]=P*(n>>>24)+(1-P)*i9<<24|fq<<16|dx<<8|f5}}};c.Q.a7N=function(L,C,U,E,Y,z,r,p){var T=1/255,k=T*z,P=p.H1?1:0,b=C.eR(E).eR(Y),Q=Math.max(0,b.x-C.x),K=Math.max(0,b.x-E.x),h=Math.max(0,b.y-C.y),x=Math.max(0,b.y-E.y),O=b.d,y=b.v,v=new Uint32Array(L.buffer),i=new Uint32Array(U.buffer),D={h:0,P:0,O:0},I={h:0,P:0,O:0},m={h:0,P:0,O:0};
for(var H=0;H<y;H++){var f=(h+H)*C.d+Q,A=(x+H)*E.d+K;for(var d=0;d<O;d++,f++,A++){var g=v[f],X=i[A],n=(g&255)*T,R=(g>>>8&255)*T,l=(g>>>16&255)*T,w=(X&255)*T,V=(X>>>8&255)*T,F=(X>>>16&255)*T,Z=z,M=1;
if(P==0){Z=(g>>>24)*k;M=(X>>>24)*T}if(p.UZ)Z*=c.Q.Bv(n,R,l,w,V,F,M,p.UZ);var a=M*(1-Z),e=Z+a,N=255/e;
D.h=n;D.P=R;D.O=l;I.h=w;I.P=V;I.O=F;r(D,I,m);var J=(((1-M)*n+M*m.h)*Z+w*a)*N,s=(((1-M)*R+M*m.P)*Z+V*a)*N,f5=(((1-M)*l+M*m.O)*Z+F*a)*N,dx=P*(X>>>24)+(1-P)*Math.round(e*255);
i[A]=dx<<24|f5<<16|s<<8|J}}};c.Q.b6=function(L){L=L^61^L>>>16;L=L+(L<<3);L=L^L>>>4;L=L*668265261;L=L^L>>15;
return(L&16777215)*(1/16777215)};c.Q.Gn=function(L){L=L^61^L>>>16;L=L+(L<<3);L=L^L>>>4;L=L*668265261;
L=L^L>>>15;return L};c.Q.il=function(L){this._B=L};c.Q.il.prototype.get=function(){var L=this._B=c.Q.Gn(this._B);
return(L&16777215)*(1/16777215)};c.Q.aaX=function(L,C,U,E,Y,z,r,p){var T=1/255,k=T*z,P=Math.round(z*(256*256*256/255)),b=C.eR(E).eR(Y),Q=Math.max(0,b.x-C.x),K=Math.max(0,b.x-E.x),h=Math.max(0,b.y-C.y),x=Math.max(0,b.y-E.y),O=b.d,y=b.v,v=new Uint32Array(L.buffer),i=new Uint32Array(U.buffer);
for(var H=0;H<y;H++){var D=(h+H)*C.d+Q,I=(x+H)*E.d+K;for(var m=0;m<O;m++,D++,I++){var f=v[D],A=i[I],d=p*255+(1-p)*(f>>>24);
if((c.Q.Gn(D)&16777215)>=d*P)continue;i[I]=f&16777215|p*(A>>>24)+(1-p)*255<<24}}};c.Q.a1W=function(L,C,U){for(var H=0;
H<L.length;H+=4){var E=U[H>>>2];if(E==0)continue;var Y=E*(1/255),z=1/Y,r=C[H],p=C[H+1],T=C[H+2],k=L[H],P=L[H+1],b=L[H+2];
C[H]=Math.min(255,Math.max(0,Math.round((r-(1-Y)*k)*z)));C[H+1]=Math.min(255,Math.max(0,Math.round((p-(1-Y)*P)*z)));
C[H+2]=Math.min(255,Math.max(0,Math.round((T-(1-Y)*b)*z)));C[H+3]=255}};c.Q.f3=function(L,C,U,E,Y,z,r,p,T,k,P){if(k==null)k=!1;
if(P==null)P=[1,1,1];var b=255<<24|P[2]*16711680|P[1]*65280|P[0]*255,Q=~b;if(Y&&!C.cg(z)){var K=c.F(C.X()*4);
K.fill(r);c.zM(Y,z,K,C);Y=K;z=C}if(k){if(Y==null)c.Q.adT(L,C,U,E,Y,p,T,b,Q);else c.Q.a7g(L,C,U,E,Y,p,T)}else{if(Y==null)c.Q.aks(L,C,U,E,Y,p,T,b,Q);
else c.Q.ag_(L,C,U,E,Y,p,T)}};c.Q.aks=function(L,C,U,E,Y,z,r,p,T){var k=1/255,P=C.eR(E).eR(z),b=Math.max(0,P.x-C.x),Q=Math.max(0,P.x-E.x),K=Math.max(0,P.y-C.y),h=Math.max(0,P.y-E.y),x=P.d,O=P.v,y=new Uint32Array(L.buffer),v=new Uint32Array(U.buffer),i=c.Q.A6,D=r*255&255;
for(var H=0;H<O;H++){var I=(K+H)*C.d+b,m=(h+H)*E.d+Q;for(var f=0;f<x;f++,I++,m++){var A=y[I],d=v[m],g=A>>>24,X=d>>>24,n=c.wU(D*g+(255-D)*X),R=c.wU(g*D),l=c.wU(X*(255-D)),w=A&255,V=A>>>8&255,F=A>>>16&255,Z=d&255,M=d>>>8&255,a=d>>>16&255,e=R*w+Z*l,N=R*V+M*l,J=R*F+a*l;
e=i[n<<8|c.wU(e)];N=i[n<<8|c.wU(N)];J=i[n<<8|c.wU(J)];var s=n<<24|J<<16|N<<8|e;v[m]=T&d|p&s}}};c.Q.adT=function(L,C,U,E,Y,z,r,p,T){var k=1/255,P=C.eR(E).eR(z),b=Math.max(0,P.x-C.x),Q=Math.max(0,P.x-E.x),K=Math.max(0,P.y-C.y),h=Math.max(0,P.y-E.y),x=P.d,O=P.v,y=new Uint32Array(L.buffer),v=new Uint32Array(U.buffer),i=c.Q.A6,D=r*16777215&16777215;
for(var H=0;H<O;H++){var I=(K+H)*C.d+b,m=(h+H)*E.d+Q;for(var f=0;f<x;f++,I++,m++){if((c.Q.Gn(I)&16777215)<D){v[m]=T&v[m]|p&y[I]}}}};
c.Q.ag_=function(L,C,U,E,Y,z,r){var p=1/255,T=C.eR(E).eR(z),k=Math.max(0,T.x-C.x),P=Math.max(0,T.x-E.x),b=Math.max(0,T.y-C.y),Q=Math.max(0,T.y-E.y),K=T.d,h=T.v,x=new Uint32Array(L.buffer),O=new Uint32Array(U.buffer),y=c.Q.A6;
for(var H=0;H<h;H++){var v=(b+H)*C.d+k,i=(Q+H)*E.d+P;for(var D=0;D<K;D++,v++,i++){var I=Y[v]*r&255;if(I==0)continue;
if(I==255){O[i]=x[v];continue}var m=x[v],f=O[i],A=m>>>24,d=f>>>24,g=c.wU(I*A+(255-I)*d),X=c.wU(A*I),n=c.wU(d*(255-I)),R=m&255,l=m>>>8&255,w=m>>>16&255,V=f&255,F=f>>>8&255,Z=f>>>16&255,M=y[g<<8|c.wU(X*R+V*n)],a=y[g<<8|c.wU(X*l+F*n)],e=y[g<<8|c.wU(X*w+Z*n)];
O[i]=g<<24|e<<16|a<<8|M}}};c.Q.a7g=function(L,C,U,E,Y,z,r){var p=1/255,T=C.eR(E).eR(z),k=Math.max(0,T.x-C.x),P=Math.max(0,T.x-E.x),b=Math.max(0,T.y-C.y),Q=Math.max(0,T.y-E.y),K=T.d,h=T.v,x=new Uint32Array(L.buffer),O=new Uint32Array(U.buffer),y=c.Q.A6,v=Math.round(r*257);
for(var H=0;H<h;H++){var i=(b+H)*C.d+k,D=(Q+H)*E.d+P;for(var I=0;I<K;I++,i++,D++){var m=Y[i]*v;if((c.Q.Gn(i)&65535)<m)O[D]=x[i]}}};
c.Q.fk=function(L,C,U,E,Y,z,r){var p=1/255,T=C.eR(E).eR(z),k=Math.max(0,T.x-C.x),P=Math.max(0,T.x-E.x),b=Math.max(0,T.y-C.y),Q=Math.max(0,T.y-E.y),K=T.d,h=T.v,x=new Uint32Array(L.buffer),O=new Uint32Array(U.buffer),y=Math.floor(Math.random()*E.X()),v=c.Q.a7h;
for(var H=0;H<h;H++){var i=(b+H)*C.d+k,D=(Q+H)*E.d+P;for(var I=0;I<K;I++){var m=Y[i+I]*r;if(m==0)continue;
if(m==255){O[D+I]=x[i+I];continue}var f=x[i+I],A=O[D+I],d=f>>>24,g=A>>>24,X=d*m*(1/255),n=g*(255-m)*(1/255),R=f&255,l=f>>>8&255,w=f>>>16&255,V=A&255,F=A>>>8&255,Z=A>>>16&255,M=c.Q.Gn(D+I+y),a=Math.floor((X+n)*256+.5)+(M>>>0&255)>>>8,e=a==0?0:256/(X+n),N=R*X+V*n,J=l*X+F*n,s=w*X+Z*n,f5=Math.floor(N*e+.5)+(M>>>8&255)>>>8,dx=Math.floor(J*e+.5)+(M>>>16&255)>>>8,fq=Math.floor(s*e+.5)+(M>>>21&248)>>>8;
O[D+I]=a<<24|fq<<16|dx<<8|f5}}};c.Q.a7h=function(L){return Math.floor(L+Math.random())};c.Q.oW=function(L,C,U,E,Y,z,r){var p=1/255,T=C.eR(E).eR(z),k=Math.max(0,T.x-C.x),P=Math.max(0,T.x-E.x),b=Math.max(0,T.y-C.y),Q=Math.max(0,T.y-E.y),K=T.d,h=T.v;
for(var H=0;H<h;H++){var x=(b+H)*C.d+k,O=(Q+H)*E.d+P;for(var y=0;y<K;y++,x++,O++){var v=r*Y[x]*p;if(v==0)continue;
if(v==1){U[O]=L[x];continue}U[O]=L[x]*v+U[O]*(1-v)}}};c.lr={};c.lr.a0J=function(L,C,U,E,Y,z){c.lr.ZK(L,C,U,E,Y,z,null,0)};
c.lr.a31=function(L,C,U,E,Y){c.lr.ZK(L,C,U,E,Y,null,null,0)};c.lr.a1P=function(L,C,U,E,Y,z,r){c.lr.ZK(L,C,U,E,Y,null,z,r*.5)};
c.lr.ZK=function(L,C,U,E,Y,z,r,p){var T=0,n=0,R=1e9,l=0,w=1e9,V=0,F=1e9,Z=0,M=0,a=0,e=0;if(z){T=Y*.5;
Y=3+Math.round((Y-3)*.75)}if(r){Y=Math.round(Y*2.2)}var k=1/Y,P=Math.floor(C*k)+1,b=Math.floor(U*k)+1,Q=[],K=new Uint8Array(P*b*4),h=r?.5:1,x=z?64:0;
for(var O=0;O<b;O++){var y=r?.5*(O&1):0;for(var v=0;v<P;v++){var i=(v+Math.random()*h+y)*Y,D=(O+Math.random()*h)*Y;
Q.push(i,D);var I=Math.min(C-1,Math.floor(i)),m=Math.min(U-1,Math.floor(D)),f=(m*C+I)*4,A=(O*P+v)*4;
for(var H=0;H<4;H++)K[A+H]=Math.max(0,Math.min(255,Math.floor(L[f+H]+(Math.random()-.5)*x)))}}var d=z?z:r?r:[0,0,0],g=P*b*2,X=[-P-1,-P,-P+1,-1,0,1,P-1,P,P+1];
for(var O=0;O<U;O++){a=0;for(var v=0;v<C;v++){var N=v+.5,J=O+.5,s=Math.floor(J*k),f5=Math.floor(N*k),dx=s*P+f5,e8=0,S=0;
if(a>1+p){R=c.lr.CJ(Q,n,N,J);Z=Math.sqrt(R);a--;e++}else{R=w=F=1e9;for(var H=0;H<X.length;H++){var fq=(dx+X[H])*2;
if(fq<0||fq>=g)continue;var i9=c.lr.CJ(Q,fq,N,J);if(i9<F){if(i9<w){if(i9<R){V=l;F=w;l=n;w=R;n=fq;R=i9}else{V=l;
F=w;l=fq;w=i9}}else{V=fq;F=i9}}}Z=Math.sqrt(R);M=Math.sqrt(w);a=M-(Z+M)*.5}if(r==null){var fs=(Z+M)*.5,bz=z?Math.max(0,fs-T):0;
e8=Math.max(0,Math.min(1,.5+fs-Z-bz));S=Math.max(0,Math.min(1,1-(.5+fs-Z)-bz))}else{var g6=Math.min(c.lr.kY(Q,n,l,N,J),c.lr.kY(Q,n,V,N,J));
e8=Math.max(0,Math.min(1,g6-p*.5));if(N<p||C-p<N||J<p||U-p<J)e8=0;S=0}var al=1-S-e8,A=O*C+v<<2,bj=n<<1,bE=l<<1;
E[A+0]=Math.floor(.5+e8*K[bj+0]+S*K[bE+0]+al*d[0]);E[A+1]=Math.floor(.5+e8*K[bj+1]+S*K[bE+1]+al*d[1]);
E[A+2]=Math.floor(.5+e8*K[bj+2]+S*K[bE+2]+al*d[2]);E[A+3]=L[A+3]}}};c.lr.CJ=function(L,C,U,E){var Y=U-L[C],z=E-L[C+1];
return Y*Y+z*z};c.lr.kY=function(L,C,U,E,Y){var z=L[C],r=L[C+1],p=L[U],T=L[U+1],k=(z+p)*.5,P=(r+T)*.5,b=k+(T-r),Q=P-(p-z),K=Q-P,h=b-k;
return Math.abs(K*E-h*Y+b*P-Q*k)/Math.sqrt(h*h+K*K)};c.qM={};c.qM.Cr=function(L){if(c.qM.oS.length<L)c.qM.oS=c.F(L);
return c.qM.oS};c.qM.oS=c.F(0);c.qM.pR=function(L){if(c.qM.fV.length<L)c.qM.fV=new Float32Array(L);return c.qM.fV};
c.qM.fV=new Float32Array(0);c.qM.Oq=function(L,C,U,E){var Y=U.d,z=U.v;c.qM.ac1(L,C,Y,z,E)};c.qM.IH=function(L,C,U,E){var Y=U.d,z=U.v;
c.qM.ad_(L,C,Y,z,E)};c.qM.aaB=function(L,C,U){var E=C.d,Y=C.v;c.qM.agW(L,E,Y,U)};c.qM.U_=function(L,C,U,E,Y){var z=U.d,r=U.v;
c.qM.a6Q(L,C,z,r,E,Y)};c.qM.m9=function(L,C,U,E){var Y=U.d,z=U.v;E=Math.round(E);var r=c.qM.Cr(Y*z);
c.hL(L,C);c.qM.cc(C,r,Y,z,E)};c.qM.wv=function(L,C,U){var E=C.d,Y=C.v;U=Math.round(U);var z=c.qM.Cr(E*Y*4);
c.qM.e1(L,z,E,Y,U)};c.qM.Ov=function(L,C,U,E){var Y=U.d,z=U.v;E=Math.round(E);var r=c.qM.pR(Y*z);c.hL(L,C);
c.qM.rU(C,r,Y,z,E)};c.qM.Cn=function(L,C,U){var E=C.d,Y=C.v;U=Math.round(U);var z=c.qM.Cr(E*Y*4);c.qM.yL(L,z,E,Y,U);
c.hL(z,L)};c.qM.r2=function(L,u){var C=Math.sqrt(12*L*L/u+1),U=Math.floor(C);if(U%2==0)U--;var E=U+2,Y=(12*L*L-u*U*U-4*u*U-3*u)/(-4*U-4),z=Math.round(Y),r=[];
for(var H=0;H<u;H++)r.push(H<z?U:E);return r};c.qM.ac1=function(L,C,U,E,Y){var z=c.qM.r2(Y,3),r=c.qM.Cr(U*E);
c.hL(L,C);c.qM.cc(C,r,U,E,z[0]-1>>1);c.qM.cc(C,r,U,E,z[1]-1>>1);c.qM.cc(C,r,U,E,z[2]-1>>1)};c.qM.ad_=function(L,C,U,E,Y){var z=c.qM.r2(Y,2),r=c.qM.Cr(U*E);
c.hL(L,C);c.qM.cc(C,r,U,E,z[0]-1>>1);c.qM.cc(C,r,U,E,z[1]-1>>1)};c.qM.agW=function(L,C,U,E){var Y=c.qM.r2(E,3),z=c.qM.Cr(C*U*4);
c.qM.e1(L,z,C,U,Y[0]-1>>1);c.qM.e1(L,z,C,U,Y[1]-1>>1);c.qM.e1(L,z,C,U,Y[2]-1>>1)};c.qM.a6Q=function(L,C,U,E,Y,z){if(z==null)z=3;
var r=c.qM.r2(Y,z),p=c.qM.pR(U*E);c.hL(L,C);for(var H=0;H<z;H++)c.qM.rU(C,p,U,E,(r[H]-1)/2)};c.qM.cc=function(L,C,U,E,Y){c.qM.a3E(L,C,U,E,Y);
c.qM.a2u(C,L,U,E,Y)};c.qM.e1=function(L,C,U,E,Y){c.qM.yL(L,C,U,E,Y);c.qM.ak5(C,L,U,E,Y)};c.qM.rU=function(L,C,U,E,Y){c.qM.aob(L,C,U,E,Y);
c.qM.a4x(C,L,U,E,Y)};c.qM.zH=[];c.qM.BH=function(L){if(c.qM.zH[L])return c.qM.zH[L];var C=1/(L+L+1),U=(L+L+1)*256,E=c.F(U);
for(var H=0;H<U;H++)E[H]=Math.round(H*C);c.qM.zH[L]=E;return E};c.qM.a3E=function(L,C,U,E,Y){var z=1/(Y+Y+1),r=U-Y-Y-1,p=c.qM.BH(Y);
for(var H=0;H<E;H++){var T=H*U,k=T,P=T+Y,b=L[T],Q=L[T+U-1],K=(Y+1)*b;for(var h=0;h<Y;h++)K+=L[T+h];for(var h=0;
h<=Y;h++){K+=L[P+h]-b;C[T+h]=p[K]}P+=Y+1;T+=Y+1;for(var h=0;h<r;h++){K+=L[P+h]-L[k+h];C[T+h]=p[K]}P+=r;
k+=r;T+=r;for(var h=U-Y;h<U;h++){K+=Q-L[k++];C[T++]=p[K]}}};c.qM.yL=function(L,C,U,E,Y){var z=U<<2,r=Y<<2,p=1/(Y+Y+1),T=U-Y-Y-1,k=T<<2,P=c.qM.BH(Y);
for(var H=0;H<E;H++){var b=H*z,Q=b,K=b+r,h=b+z,x=L[b],O=L[b+1],y=L[b+2],v=L[b+3],i=(Y+1)*x,D=(Y+1)*O,I=(Y+1)*y,m=(Y+1)*v;
for(var f=0;f<r;f+=4){i+=L[b+f];D+=L[b+f+1];I+=L[b+f+2];m+=L[b+f+3]}for(var f=0;f<=r;f+=4){i+=L[K]-x;
C[b]=P[i];D+=L[K+1]-O;C[b+1]=P[D];I+=L[K+2]-y;C[b+2]=P[I];m+=L[K+3]-v;C[b+3]=P[m];K+=4;b+=4}for(var f=0;
f<k;f+=4){i+=L[K+f]-L[Q+f];C[b+f]=P[i];D+=L[K+f+1]-L[Q+f+1];C[b+f+1]=P[D];I+=L[K+f+2]-L[Q+f+2];C[b+f+2]=P[I];
m+=L[K+f+3]-L[Q+f+3];C[b+f+3]=P[m]}K+=k;Q+=k;b+=k;x=L[h-4];O=L[h-3];y=L[h-2];v=L[h-1];for(var f=U-Y;
f<U;f++){i+=x-L[Q];C[b]=P[i];D+=O-L[Q+1];C[b+1]=P[D];I+=y-L[Q+2];C[b+2]=P[I];m+=v-L[Q+3];C[b+3]=P[m];
Q+=4;b+=4}}};c.qM.aob=function(L,C,U,E,Y){var z=1/(Y+Y+1),r=U-Y-Y-1;for(var H=0;H<E;H++){var p=H*U,T=p,k=p+Y,P=L[p],b=L[p+U-1],Q=(Y+1)*P;
for(var K=0;K<Y;K++)Q+=L[p+K];for(var K=0;K<=Y;K++){Q+=L[k+K]-P;C[p+K]=Q*z}k+=Y+1;p+=Y+1;for(var K=0;
K<r;K++){Q+=L[k+K]-L[T+K];C[p+K]=Q*z}k+=r;T+=r;p+=r;for(var K=U-Y;K<U;K++){Q+=b-L[T++];C[p++]=Q*z}}};
c.qM.a2u=function(L,C,U,E,Y){var z=1/(Y+Y+1),r=E-Y-Y-1,p=c.qM.BH(Y);for(var H=0;H<U;H++){var T=H,k=T,P=T+Y*U,b=L[T],Q=L[T+U*(E-1)],K=(Y+1)*b;
for(var h=0;h<Y;h++)K+=L[T+h*U];for(var h=0;h<=Y;h++){K+=L[P]-b;C[T]=p[K];P+=U;T+=U}for(var h=0;h<r;
h++){var x=h*U;K+=L[P+x]-L[k+x];C[T+x]=p[K]}k+=r*U;P+=r*U;T+=r*U;for(var h=E-Y;h<E;h++){K+=Q-L[k];C[T]=p[K];
k+=U;T+=U}}};c.qM.ak5=function(L,C,U,E,Y){var z=U<<2,r=Y<<2,p=1/(Y+Y+1),T=E-Y-Y-1,k=T<<2,P=c.qM.BH(Y);
for(var H=0;H<U;H++){var b=H<<2,Q=b,K=b+Y*z,h=b+z*(E-1),x=L[b],O=L[b+1],y=L[b+2],v=L[b+3],i=(Y+1)*x,D=(Y+1)*O,I=(Y+1)*y,m=(Y+1)*v;
for(var f=0;f<Y;f++){var A=b+f*z;i+=L[A];D+=L[A+1];I+=L[A+2];m+=L[A+3]}for(var f=0;f<=Y;f++){i+=L[K]-x;
C[b]=P[i];D+=L[K+1]-O;C[b+1]=P[D];I+=L[K+2]-y;C[b+2]=P[I];m+=L[K+3]-v;C[b+3]=P[m];K+=z;b+=z}for(var f=0;
f<T;f++){var d=f*z;i+=L[K+d]-L[Q+d];C[b+d]=P[i];D+=L[K+d+1]-L[Q+d+1];C[b+d+1]=P[D];I+=L[K+d+2]-L[Q+d+2];
C[b+d+2]=P[I];m+=L[K+d+3]-L[Q+d+3];C[b+d+3]=P[m]}Q+=T*z;K+=T*z;b+=T*z;x=L[h];O=L[h+1];y=L[h+2];v=L[h+3];
for(var f=E-Y;f<E;f++){i+=x-L[Q];C[b]=P[i];D+=O-L[Q+1];C[b+1]=P[D];I+=y-L[Q+2];C[b+2]=P[I];m+=v-L[Q+3];
C[b+3]=P[m];Q+=z;b+=z}}};c.qM.a4x=function(L,C,U,E,Y){var z=1/(Y+Y+1),r=E-Y-Y-1;for(var H=0;H<U;H++){var p=H,T=p,k=p+Y*U,P=L[p],b=L[p+U*(E-1)],Q=(Y+1)*P;
for(var K=0;K<Y;K++)Q+=L[p+K*U];for(var K=0;K<=Y;K++){Q+=L[k]-P;C[p]=Q*z;k+=U;p+=U}for(var K=0;K<r;K++){var h=K*U;
Q+=L[k+h]-L[T+h];C[p+h]=Q*z}T+=r*U;k+=r*U;p+=r*U;for(var K=E-Y;K<E;K++){Q+=b-L[T];C[p]=Q*z;T+=U;p+=U}}};
c.DL={};c.DL.F=function(L,C,U,E){var Y=[];for(var z=0;z<4;z++)for(var r=0;r<4;r++)Y.push(L+U*r/3,C+E*z/3);
return Y};c.DL.xN=function(L,C){var U=L.slice(0);for(var H=0;H<4;H++)for(var E=0;E<4;E++){var Y=2*(H*4+E),z=2*(E*4+(3-H));
if(C){var r=Y;Y=z;z=r}U[z]=L[Y];U[z+1]=L[Y+1]}return U};c.DL.a7P=new Float64Array(16);c.DL.drawImage=function(L,C,U,E,Y,z,r){if(r==null)r=!1;
var p=z.d,T=z.v,Q=2;Y=new Uint32Array(Y.buffer);C=new Uint32Array(C.buffer);var k=c.DL.V.Dt(L,0,1,0,1,U,E),P=k.n9,b=k.Sy,K=1/Q,h=c.DL.kD,x=new Float64Array(2),O=new Uint32Array(30);
for(var y=0;y<T;y++)for(var v=0;v<p;v++){var i=v+z.x+.5,D=y+z.y+.5,I=c.DL.V.amL(P,b,i,D,O),n=0,R=0,l=0,w=0;
if(I==0)continue;var m=y*p+v,f=c.DL.gW(L,i,D,P,O,I,!0),A=h[0]*U,d=h[1]*E;if(r){if(f!=-1&&0<A&&A<U&&0<d&&d<E){var g=Math.floor(d)*U+Math.floor(A);
Y[m]=C[g]}continue}var X=f!=-1&&(1<A&&A<U-1)&&(1<d&&d<E-1);if(P[f+8]<.95){c.I.kA(A,d,C,U,E,Y,m,0);continue}for(var H=0;
H<Q;H++)for(var V=0;V<Q;V++){var i=v+z.x+(H+.5)*K,D=y+z.y+(V+.5)*K,f=0;f=c.DL.gW(L,i,D,P,O,I,!0);if(f!=-1){var A=h[0],d=h[1],A=Math.floor(A*U);
d=Math.floor(d*E);var F=C[d*U+A],Z=F>>>24;n+=(F&255)*Z;R+=(F>>>8&255)*Z;l+=(F>>>16&255)*Z;w+=Z}}if(w!=0){var M=1/w;
n=~~(n*M+.5);R=~~(R*M+.5);l=~~(l*M+.5);w=~~(w*K*K+.5);Y[m]=w<<24|l<<16|R<<8|n}}};c.DL.kD=new Float64Array(5*20);
c.DL.a6z=new Uint32Array(5*5*20);c.DL.gW=function(L,C,U,E,Y,z,r){var p=c.DL.kD,T=c.DL.a6z,k=0,P=0;for(var H=0;
H<z;H++){var b=Y[H],Q=k;k=c.DL.iK(L,C,U,E,b+4,r,p,k);if(k!=Q){T[P]=b;P+=5}}if(k==0)return-1;else if(k==5)return T[0];
else{var K=0;for(var H=0;H<k;H+=5)if(p[H+4]<p[K+4])K=H;p[0]=p[K];p[1]=p[K+1];p[2]=p[K+2];p[3]=p[K+3];
return T[K]}};c.DL.J7=new Array(10);c.DL.iK=function(L,C,U,E,Y,z,r,p){var T=c.DL.J7,k=0,P=0,b=0,Q=0,K=0,h=0,x=0,O=E[Y],y=E[Y+1],v=E[Y+2],i=E[Y+3],D=(v-C)*(v-C)+(i-U)*(i-U);
for(var H=0;H<5&&D>.05;H++){c.DL.FK(T,0,y);c.DL.jb(T,4,O);c.DL.eS(L,T);k=T[8];P=T[9];c.DL.jb(T,0,y);
c.DL.FK(T,4,O);c.DL.eS(L,T);b=T[8];Q=T[9];K=1/(k*Q-P*b);h=(v-C)*K;x=(i-U)*K;O+=-Q*h+b*x;y+=+P*h-k*x;
c.DL.a7(L,O,y,T);v=T[8];i=T[9];D=(v-C)*(v-C)+(i-U)*(i-U)}if(z&&(O<0||O>1||y<0||y>1||D>.25))return p;
r[p]=O;r[p+1]=y;r[p+2]=v;r[p+3]=i;r[p+4]=k*Q-P*b;return p+5};c.DL.apply=function(L,C,U){var E=U.x,Y=U.y,z=1/U.d,r=1/U.v,p=c.DL.J7;
for(var T=0;T<C.length;T+=2){var k=(C[T]-E)*z,P=(C[T+1]-Y)*r;c.DL.a7(L,k,P,p);C[T]=p[8];C[T+1]=p[9]}};
c.DL.a7=function(L,C,U,E){c.DL.FK(E,0,U);c.DL.FK(E,4,C);c.DL.eS(L,E)};c.DL.jb=function(L,H,C){var U=1-C;
L[H]=-3*(U*U);L[H+1]=3*(U*U)-6*(C*U);L[H+2]=6*(C*U)-3*(C*C);L[H+3]=3*(C*C)};c.DL.FK=function(L,H,C){var U=1-C;
L[H]=U*(U*U);L[H+1]=3*C*(U*U);L[H+2]=3*(C*C)*U;L[H+3]=C*C*C};c.DL.eS=function(L,C){var U=0,E=0,Y=0;Y=C[0]*C[4];
U+=L[0]*Y;E+=L[1]*Y;Y=C[0]*C[5];U+=L[2]*Y;E+=L[3]*Y;Y=C[0]*C[6];U+=L[4]*Y;E+=L[5]*Y;Y=C[0]*C[7];U+=L[6]*Y;
E+=L[7]*Y;Y=C[1]*C[4];U+=L[8]*Y;E+=L[9]*Y;Y=C[1]*C[5];U+=L[10]*Y;E+=L[11]*Y;Y=C[1]*C[6];U+=L[12]*Y;E+=L[13]*Y;
Y=C[1]*C[7];U+=L[14]*Y;E+=L[15]*Y;Y=C[2]*C[4];U+=L[16]*Y;E+=L[17]*Y;Y=C[2]*C[5];U+=L[18]*Y;E+=L[19]*Y;
Y=C[2]*C[6];U+=L[20]*Y;E+=L[21]*Y;Y=C[2]*C[7];U+=L[22]*Y;E+=L[23]*Y;Y=C[3]*C[4];U+=L[24]*Y;E+=L[25]*Y;
Y=C[3]*C[5];U+=L[26]*Y;E+=L[27]*Y;Y=C[3]*C[6];U+=L[28]*Y;E+=L[29]*Y;Y=C[3]*C[7];U+=L[30]*Y;E+=L[31]*Y;
C[8]=U;C[9]=E};c.DL.V={};c.DL.V.WX=12;c.DL.V.uC=new Uint32Array(50);c.DL.V.amL=function(L,C,U,E,Y){var z=0,r=c.DL.V.uC,p=1;
r[0]=0;while(p!=0){var T=r[--p];if(L[T+0]<=U&&L[T+1]<=E&&U<L[T+2]&&E<L[T+3]){if(C[T+T+18]==0){Y[z]=T;
z++}else{r[p]=C[T+T+18];r[p+1]=C[T+T+19];p+=2}}}return z};c.DL.V.a85=function(L,C,U,E,Y){var z=0,r=c.DL.V.qt,p=c.DL.V.uC,T=1,k=0,P=999999999999;
p[0]=0;while(T!=0){var b=p[--T],Q=r(U,E,L[b+0],L[b+1]),K=r(U,E,L[b+0],L[b+3]),h=r(U,E,L[b+2],L[b+1]),x=r(U,E,L[b+2],L[b+3]),O=Math.min(Q,Math.min(K,Math.min(h,x))),y=Math.max(Q,Math.max(K,Math.max(h,x)));
if(O>P)continue;if(C[b+b+18]==0){if(y<P){P=y;k=b}}else{p[T]=C[b+b+18];p[T+1]=C[b+b+19];T+=2}}Y[z]=k;
z++;return z};c.DL.V.qt=function(L,C,U,E){return(U-L)*(U-L)+(E-C)*(E-C)};c.DL.V.Zf=null;c.DL.V.ps=null;
c.DL.V.Dt=function(L,C,U,E,Y,z,r){if(z==null){z=1;r=1}c.DL.V.ps=L;if(c.DL.V.Zf==null){c.DL.V.Zf={n9:new Float64Array(15e3*8),Sy:null};
c.DL.V.Zf.Sy=new Uint32Array(c.DL.V.Zf.n9.buffer)}var p=c.DL.V.Zf;c.DL.V.Ec(L,C,U,E,Y,0,p.n9,p.Sy,0,z,r);
return p};c.DL.V.Ec=function(L,C,U,E,Y,z,r,p,T,k,P){var b=c.a.mE(L),Q=T,K=c.DL.V.ps,h=(C+U)/2,x=(E+Y)/2,O=c.DL.J7,y=c.DL.kD,v=c.DL.a7P,dx,fq,i9;
c.DL.a7(K,h,x,O);var i=O[8],D=O[9];v[0]=h;v[1]=x;v[2]=i;v[3]=D;c.DL.iK(K,i+1,D,v,0,!1,y,0);var I=(h-y[0])*k,m=(x-y[1])*P,f=Math.sqrt(I*I+m*m);
c.DL.iK(K,i,D+1,v,0,!1,y,0);var A=(h-y[0])*k,d=(x-y[1])*P,g=Math.sqrt(A*A+d*d);r[Q]=b.x;r[Q+1]=b.y;r[Q+2]=b.x+b.d;
r[Q+3]=b.y+b.v;r[Q+4]=h;r[Q+5]=x;r[Q+6]=i;r[Q+7]=D;r[Q+8]=.5*(f+g);p[Q+Q+18]=0;p[Q+Q+19]=0;T+=10;c.DL.FK(O,0,.1);
c.DL.jb(O,4,.1);c.DL.eS(L,O);var X=O[8],n=O[9];c.DL.jb(O,0,.1);c.DL.FK(O,4,.7);c.DL.eS(L,O);var R=O[8],l=O[9];
c.DL.FK(O,0,.8);c.DL.jb(O,4,.8);c.DL.eS(L,O);var w=O[8],V=O[9];c.DL.jb(O,0,.9);c.DL.FK(O,4,.2);c.DL.eS(L,O);
var F=O[8],Z=O[9],M=(w-X)*(w-X)+(F-R)*(F-R)+(V-n)*(V-n)+(Z-l)*(Z-l);if(T>=r.length){console.log("Buffer not long enough");
throw"e"}if(z==c.DL.V.WX||M<2)return T;var a=c.DL.V.I5(L,!0),e=c.a.mE(a[0]),N=c.a.mE(a[1]),J=c.DL.V.I5(L,!1),s=c.a.mE(J[0]),f5=c.a.mE(J[1]);
if(e.d+e.v+N.d+N.v<s.d+s.v+f5.d+f5.v){i9=!0;dx=a[0];fq=a[1]}else{i9=!1;dx=J[0];fq=J[1]}var e8=(C+U)/2,S=(E+Y)/2,fs=C,bz=E,g6=U,al=Y,bj=C,bE=E,eN=U,dk=Y;
if(i9){g6=bj=e8}else{al=bE=S}p[Q+Q+18]=T;T=c.DL.V.Ec(dx,fs,g6,bz,al,z+1,r,p,T,k,P);p[Q+Q+19]=T;T=c.DL.V.Ec(fq,bj,eN,bE,dk,z+1,r,p,T,k,P);
var hj=p[Q+Q+18],iN=p[Q+Q+19];r[Q]=Math.min(r[hj],r[iN]);r[Q+1]=Math.min(r[hj+1],r[iN+1]);r[Q+2]=Math.max(r[hj+2],r[iN+2]);
r[Q+3]=Math.max(r[hj+3],r[iN+3]);return T};c.DL.V.I5=function(L,C){var U=0,E=0,Y=0,z=0,r=0,p=0,T=0,k=0,P=L.slice(0),b=L.slice(0);
for(var H=0;H<4;H++){U=C?L[H*8+2*0]:L[0*8+2*H];E=C?L[H*8+2*0+1]:L[0*8+2*H+1];Y=C?L[H*8+2*1]:L[1*8+2*H];
z=C?L[H*8+2*1+1]:L[1*8+2*H+1];r=C?L[H*8+2*2]:L[2*8+2*H];p=C?L[H*8+2*2+1]:L[2*8+2*H+1];T=C?L[H*8+2*3]:L[3*8+2*H];
k=C?L[H*8+2*3+1]:L[3*8+2*H+1];var Q=(U+Y)/2,K=(E+z)/2,h=(Y+r)/2,x=(z+p)/2,O=(r+T)/2,y=(p+k)/2,v=(Q+h)/2,i=(K+x)/2,D=(h+O)/2,I=(x+y)/2,m=(v+D)/2,f=(i+I)/2;
if(C){P[H*8+2*0]=U;P[H*8+2*0+1]=E;P[H*8+2*1]=Q;P[H*8+2*1+1]=K;P[H*8+2*2]=v;P[H*8+2*2+1]=i;P[H*8+2*3]=m;
P[H*8+2*3+1]=f;b[H*8+2*0]=m;b[H*8+2*0+1]=f;b[H*8+2*1]=D;b[H*8+2*1+1]=I;b[H*8+2*2]=O;b[H*8+2*2+1]=y;b[H*8+2*3]=T;
b[H*8+2*3+1]=k}else{P[0*8+2*H]=U;P[0*8+2*H+1]=E;P[1*8+2*H]=Q;P[1*8+2*H+1]=K;P[2*8+2*H]=v;P[2*8+2*H+1]=i;
P[3*8+2*H]=m;P[3*8+2*H+1]=f;b[0*8+2*H]=m;b[0*8+2*H+1]=f;b[1*8+2*H]=D;b[1*8+2*H+1]=I;b[2*8+2*H]=O;b[2*8+2*H+1]=y;
b[3*8+2*H]=T;b[3*8+2*H+1]=k}}return[P,b]};c.Iu={};c.Iu.a6Z=function(L,C,U){var E=Date.now(),Y=new ArrayBuffer(C*U*16),z=c.Iu.alT(L,C,U,Y),r=c.Iu.a8_(C,U,Y);
return{NM:r,fr:z}};c.Iu.alB=function(L,C,U){var E=Math.round(L.length/8),Y=new Uint32Array(E),z=new Uint8Array(E),r=new Uint32Array(E);
c.n0(Y,4294967295,0);Y[U]=0;var p=new iH(E);p.push(U,Y[U]);var T={NM:L,fr:C,bR:Y,sa:z,AL:r,QD:p,aco:U};
return T};c.Iu.fo=function(L,C){var U=L.NM,E=L.fr,Y=L.bR,z=L.sa,r=L.AL,p=L.QD;while(!p.ue()&&(C==null||z[C]==0)){var T=p.pop();
z[T]=1;for(var H=0;H<8;H++){var k=U[8*T+H],P=T+k;if(k==0||z[P])continue;var b=Y[T]+E[8*T+H];if(p.contains(P)&&b<Y[P])p.remove(P,Y[P]);
if(!p.contains(P)){Y[P]=b;r[P]=T;p.push(P,Y[P])}}}};function iH(L){this.$R=new Uint32Array(L);this.list=[];
this.vW=0;this.vr=4294967295}iH.prototype.ue=function(){return this.vW==0};iH.prototype.push=function(L,C){var U=this.list;
if(U[C]==null)U[C]=[];U[C].push(L);this.vW++;this.$R[L]=U[C].length-1+1;this.vr=Math.min(this.vr,C)};
iH.prototype.pop=function(){this.vW--;var L=this.list,C=this.vr,U=L[C].pop();if(L[C].length==0)L[C]=null;
this.WG();this.$R[U]=0;return U};iH.prototype.contains=function(L){return this.$R[L]!=0};iH.prototype.remove=function(L,C){this.vW--;
var U=this.list,H=this.$R[L]-1;if(H==U[C].length-1)U[C].pop();else{var E=U[C].pop();U[C][H]=E;this.$R[E]=H+1}if(U[C].length==0)U[C]=null;
this.$R[L]=0;this.WG()};iH.prototype.WG=function(){if(this.vW==0){this.vr=4294967295;return}var L=this.vr,C=this.list;
while(C[L]==null)L++;this.vr=L};c.Iu.ai6=function(L,C,U,E){var Y=new Int16Array(E);for(var z=0;z<U;z++)for(var r=0;
r<C;r++){var H=z*C+r,p=0;if(1<r&&r<C-2&&1<z&&z<U-2){p+=L[H-C-C];p+=L[H-C-1]+2*L[H-C]+L[H-C+1];p+=L[H-2]+2*L[H-1]-16*L[H]+2*L[H+1]+L[H+2];
p+=L[H+C-1]+2*L[H+C]+L[H+C+1];p+=L[H+C+C]}else p=-16*L[H];Y[H]=p}return Y};c.Iu.amg=function(L,C,U,E){if(E==null)E=128;
var Y=new Uint8Array(C*U);for(var z=1;z<U-1;z++)for(var r=1;r<C-1;r++){var H=z*C+r;Y[H]=c.Iu.aex(L[H],L[H-1],L[H+1],L[H-C],L[H+C],E)}return Y};
c.Iu.aex=function(L,C,U,E,Y,z){var r=Math.abs(L);return L*C<0&&r<Math.abs(C)&&Math.abs(C-L)>z||L*U<0&&r<Math.abs(U)&&Math.abs(U-L)>z||L*E<0&&r<Math.abs(E)&&Math.abs(E-L)>z||L*Y<0&&r<Math.abs(Y)&&Math.abs(Y-L)>z?1:0};
c.Iu.a9J=function(L,C,U,E){var Y=new Float32Array(E),z=0;new Uint32Array(E).fill(0);for(var r=0;r<U;
r++)for(var p=0;p<C;p++){var T=0,k=0,H=r*C+p,P=H*3;if(0<p&&p<C-1)T=L[H+1]-L[H-1];if(0<r&&r<U-1)k=L[H+C]-L[H-C];
var b=Y[P+2]=Math.sqrt(T*T+k*k);if(b!=0){var Q=1/b;Y[P]=T*Q;Y[P+1]=k*Q}if(b>z)z=b}var K=C*U,h=z==0?0:1/z;
for(var H=0;H<K;H++)Y[H*3+2]=1-Y[H*3+2]*h;return Y};c.Iu.amq=function(L,C,U){return U[~~((.5+.5*L)*255)]+U[~~((.5+.5*C)*255)]};
c.Iu.alT=function(L,C,U,E){var Y=Date.now(),z=c.Iu.ai6(L,C,U,E),r=c.Iu.amg(z,C,U),p=c.Iu.a9J(L,C,U,E),T=new Float32Array(256);
for(var H=0;H<256;H++)T[H]=Math.acos(-1+2*H/255)*(.95/Math.PI);var k=[-1,0,1,1,1,0,-1,-1],P=[-1,-1,-1,0,1,1,1,0];
for(var H=0;H<8;H++){var b=1/Math.sqrt(k[H]*k[H]+P[H]*P[H]);k[H]*=b;P[H]*=b}var Q=[k[0],P[0],k[1],P[1],k[2],P[2],k[3],P[3]],K=[-C-1,-C,-C+1,1],h=new Uint8Array(C*U*8);
new Uint32Array(h.buffer).fill(4294967295);var x=C*U;for(var O=1;O<U-1;O++)for(var y=1;y<C-1;y++){var v=O*C+y,i=1-r[v],D=p[v*3+2],I=p[3*v+1],m=-p[3*v];
for(var f=0;f<4;f++){var A=v+K[f];c.Iu.af3(v,A,f,h,r,p,i,D,I,m,Q,T)}}return h};c.Iu.af3=function(L,C,U,E,Y,z,r,p,T,k,P,b){var Q=1-Y[C],K=(U&1)==0?1:Math.SQRT1_2,h=z[C*3+2]*K,x=z[3*C+1],O=-z[3*C],y=p*K,v=P[U+U],i=P[U+U+1],D=T*v+k*i,I=x*v+O*i;
if(D+I<0){D=-D;I=-I}var m=c.Iu.amq(D,I,b);E[(L<<3)+U]=c.Iu.Hk(Q,m,h);E[(C<<3)+U+4]=c.Iu.Hk(r,m,y)};c.Iu.Hk=function(L,C,U){return 1+~~(.5+20*(.43*L+.43*C+.14*U))};
c.Iu.a8_=function(L,C,U){var E=new Int16Array(U),Y=E,H=0,z=0;new Uint32Array(U).fill(0);for(var r=0;
r<C;r++)for(var p=0;p<L;p++){if(r>0&&p>0)Y[z+0]=-L-1;if(r>0)Y[z+1]=-L;if(r>0&&p<L-1)Y[z+2]=-L+1;if(p<L-1)Y[z+3]=1;
if(r<C-1&&p<L-1)Y[z+4]=L+1;if(r<C-1)Y[z+5]=L;if(r<C-1&&p>0)Y[z+6]=L-1;if(p>0)Y[z+7]=-1;H++;z+=8}return E};
c.N1={};c.N1.hx=function(L){var C=L.slice(0),U=0;for(var H=0;H<L.length;H++)U+=L[H];for(var H=0;H<L.length;
H++)C[H]/=U;return C};c.N1.MZ=[c.N1.hx([1,2,1,2,16,2,1,2,1]),c.N1.hx([1,2,1,2,4,2,1,2,1]),c.N1.hx([0,-1,0,-1,8,-1,0,-1,0]),c.N1.hx([-.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]];
c.N1.jg=function(L,C,U,E,Y,z,r,p){if(r==null)r=!1;if(p==null)p=!1;var T=Math.floor(Math.sqrt(Y.length)),k=T-1>>>1,P=new Uint32Array(L.buffer),C=new Uint8ClampedArray(C.buffer);
for(var H=0;H<E;H++)for(var b=0;b<U;b++){var Q=0,K=0,h=0,x=0;for(var O=0;O<T;O++)for(var y=0;y<T;y++){var v=Y[O*T+y];
if(v==0)continue;var i=b-k+y,D=H-k+O;if(i<0)i=0;else if(i>U-1)i=U-1;if(D<0)D=0;else if(D>E-1)D=E-1;if(p&&P[D*U+i]>>>24==0){D=H;
i=b}var I=P[D*U+i];Q+=(I&255)*v;K+=(I>>>8&255)*v;h+=(I>>>16&255)*v;x+=(I>>>24&255)*v}if(r){if(Q<0)Q=-Q;
if(K<0)K=-K;if(h<0)h=-h;if(x<0)x=-x}if(p){Q=Math.max(0,Math.min(255,Q));K=Math.max(0,Math.min(255,K));
h=Math.max(0,Math.min(255,h));x=Math.max(0,Math.min(255,x))}var m=H*U+b<<2;C[m]=~~(.5+Q);C[m+1]=~~(.5+K);
C[m+2]=~~(.5+h);C[m+3]=255-z&C[m+3]|z&~~(.5+x)}};c.N1.St=function(L,C,U,E){var Y=L.length,z=new Uint8Array(Y);
c.N1.jg(L,C,U,E,c.N1.MZ[4],0,!0);c.N1.jg(L,z,U,E,c.N1.MZ[5],0,!0);for(var H=0;H<Y;H+=4){var r=C[H],p=C[H+1],T=C[H+2],k=C[H+3],P=z[H],b=z[H+1],Q=z[H+2],K=z[H+3];
C[H]=255-Math.max(0,Math.min(255,Math.sqrt(r*r+P*P)));C[H+1]=255-Math.max(0,Math.min(255,Math.sqrt(p*p+b*b)));
C[H+2]=255-Math.max(0,Math.min(255,Math.sqrt(T*T+Q*Q)))}};c.N1.Z8=function(L,C,U,E){var Y=L.length,z=new Uint8Array(Y);
c.N1.C$(L,C,U,E,c.N1.MZ[4],!0);c.N1.C$(L,z,U,E,c.N1.MZ[5],!0);for(var H=0;H<Y;H++){var r=C[H],p=z[H];
C[H]=255-Math.max(0,Math.min(255,Math.sqrt(r*r+p*p)))}};c.N1.C$=function(L,C,U,E,Y,z){C=new Uint8ClampedArray(C.buffer);
var r=[-U-1,-U,-U+1,-1,0,1,U-1,U,U+1],p=E-1,T=U-1;for(var H=1;H<p;H++)for(var k=1;k<T;k++){var P=H*U+k,b=c.N1.rl(L,P,U,Y);
if(z){if(b<0)b=-b}C[P]=~~(b+.5)}};c.N1.rl=function(L,C,U,E){return L[C-U-1]*E[0]+L[C-U]*E[1]+L[C-U+1]*E[2]+L[C-1]*E[3]+L[C]*E[4]+L[C+1]*E[5]+L[C+U-1]*E[6]+L[C+U]*E[7]+L[C+U+1]*E[8]};
c.N1.QR=function(L,C,U,E,Y){var z=[-U-1,-U,-U+1,-1,0,1,U-1,U,U+1],r=E-1,p=U-1;for(var H=1;H<r;H++)for(var T=1;
T<p;T++){var k=H*U+T;C[k]=c.N1.ab0(L,k,U,Y)}};c.N1.ab0=function(L,C,U,E){return L[C-U-1]*E[0]+L[C-U]*E[1]+L[C-U+1]*E[2]+L[C-1]*E[3]+L[C]*E[4]+L[C+1]*E[5]+L[C+U-1]*E[6]+L[C+U]*E[7]+L[C+U+1]*E[8]};
c.nW={};c.nW.aku=function(){function L(r,p,T,k,P,b,Q){if(P==0){p.set(r);return}var K=c.F(T*k),h=c.F(T*k);
if(c.Db(r)){C(r,p,T,k,P,b,Q);var x=[c.nW.ow,c.nW.s_],O=x.indexOf(b),y=O!=-1?x[1-O]:b;c.wH(r,K,3);c.nW.AP(K,h,T,k,P,y,Q);
c.Wn(h,p,3)}else{for(var H=0;H<3;H++){c.wH(r,K,H);c.nW.AP(K,h,T,k,P,b,Q);c.Wn(h,p,H)}}}function C(r,p,T,k,P,b,Q){var K=0,h=new ArrayBuffer(512*4*3),x=[new Int32Array(h,0),new Int32Array(h,2048),new Int32Array(h,2*2048)],O=1+2*Math.round(Math.sqrt(P)),y=O>>>1,v=new Array(O),i=new Array(O);
for(var H=0;H<O;H++){var h=new ArrayBuffer(512*4*3);v[H]=[new Int32Array(h,0),new Int32Array(h,2048),new Int32Array(h,2*2048)];
i[H]=v[H][0]}var D=b[0],I=b[1],m=x[0];for(var f=0;f<T;f++)if(f<P||f>T-P-O-1){m.fill(0);var A=Math.max(f-P,0),d=Math.min(T,f+P+1),g=d-A;
for(var X=0;X<P;X++)E(m,r,X*T+A,X*T+d,1);for(var X=0;X<k;X++){var n=X-P-1,R=X+P;if(R<k)E(m,r,R*T+A,R*T+d,1);
if(n>=0)E(m,r,n*T+A,n*T+d,-1);var l=X*T+f<<2;K=m[300];if(K!=0)for(var H=0;H<3;H++)p[l+H]=D(x[H],r[l+H],K,Q)}}else{for(var H=0;
H<O;H++)i[H].fill(0);var A=f-P+y,d=f+P+1+y;for(var X=0;X<P;X++)U(i,r,X*T+A,X*T+d,1,y);for(var X=0;X<k;
X++){var n=X-P-1,R=X+P;if(n>=0)U(i,r,n*T+A,n*T+d,-1,y);if(R<k)U(i,r,R*T+A,R*T+d,1,y);var w=v[y];K=w[0][300];
for(var H=0;H<y;H++){var V=y-1-H,F=y+1+H,Z=v[V],M=v[F],a=K+Z[0][300],e=K+M[0][300],N=X*T+f+V<<2,J=X*T+f+F<<2;
if(a!=0)for(var s=0;s<3;s++)p[N+s]=I(w[s],Z[s],r[N+s],a,Q);if(e!=0)for(var s=0;s<3;s++)p[J+s]=I(w[s],M[s],r[J+s],e,Q)}var l=X*T+f+y<<2;
if(K!=0)for(var s=0;s<3;s++)p[l+s]=D(w[s],r[l+s],K,Q)}f+=O-1}}function U(r,p,T,k,P,b){var Q=Y,K=T<<2,h=k<<2;
Q(r[b-1],p,T-1<<2,P);Q(r[b-1],p,k-1<<2,-P);Q(r[b+1],p,k<<2,P);Q(r[b+1],p,T<<2,-P);for(var H=1;H<b;H++){var x=r[b-H-1],O=r[b+H+1];
for(var y=0;y<=H;y++){var v=y<<2;Q(x,p,T-1-y<<2,P);Q(x,p,k-1-y<<2,-P);Q(O,p,k+y<<2,P);Q(O,p,T+y<<2,-P)}}E(r[b],p,T,k,P)}function E(r,p,H,T,k){var P=H<<2,b=T<<2;
while(P<b){Y(r,p,P,k);P+=4}}function Y(r,p,T,k){var P=k*p[T+3];r[300]+=P;z(r,p[T],0,P);z(r,p[T+1],512,P);
z(r,p[T+2],1024,P)}function z(r,p,T,k){r[T|p]+=k;r[T|256|p>>>4]+=k}return L}();c.nW.AP=function(){function L(b,Q,K,h,x,O,y){if(x==0){Q.set(b);
return}if(x<=80)C(b,Q,K,h,x,O,y);else z(b,Q,K,h,x,O,y)}function C(b,Q,K,h,x,O,y){var v=0,i=new Int32Array(512),D=1+2*Math.round(Math.sqrt(x)),I=D>>>1,m=new Array(D);
for(var H=0;H<D;H++)m[H]=new Int32Array(512);var f=O[0],A=O[1];for(var d=0;d<K;d++)if(d<x||d>K-x-D-1){i.fill(0);
v=0;var g=Math.max(d-x,0),X=Math.min(K,d+x+1),n=X-g;for(var R=0;R<x;R++){v+=n;E(i,b,R*K+g,R*K+X,1)}for(var R=0;
R<h;R++){var l=R-x-1,w=R+x;if(l>=0){v-=n;E(i,b,l*K+g,l*K+X,-1)}if(w<h){v+=n;E(i,b,w*K+g,w*K+X,1)}var V=f(i,b[R*K+d],v,y);
Q[R*K+d]=V}}else{for(var H=0;H<D;H++)m[H].fill(0);v=0;var g=d-x+I,X=d+x+1+I,n=X-g;for(var R=0;R<x;R++){v+=n;
U(m,b,R*K+g,R*K+X,1,I)}for(var R=0;R<h;R++){var l=R-x-1,w=R+x;if(l>=0){v-=n;U(m,b,l*K+g,l*K+X,-1,I)}if(w<h){v+=n;
U(m,b,w*K+g,w*K+X,1,I)}for(var H=0;H<I;H++){var F=I-1-H,Z=I+1+H;Q[R*K+d+F]=A(m[I],m[F],b[R*K+d+F],v,y);
Q[R*K+d+Z]=A(m[I],m[Z],b[R*K+d+Z],v,y)}Q[R*K+d+I]=f(m[I],b[R*K+d+I],v,y)}d+=D-1}}function U(b,Q,K,h,x,O){var y=Y;
y(b[O-1],Q[K-1],0,x);y(b[O-1],Q[h-1],0,-x);y(b[O+1],Q[h],0,x);y(b[O+1],Q[K],0,-x);for(var H=1;H<O;H++){var v=b[O-H-1],i=b[O+H+1];
for(var D=0;D<=H;D++){y(v,Q[K-1-D],0,x);y(v,Q[h-1-D],0,-x);y(i,Q[h+D],0,x);y(i,Q[K+D],0,-x)}}E(b[O],Q,K,h,x)}function E(b,Q,H,K,h){while(H<K)Y(b,Q[H++],0,h)}function Y(b,Q,K,h){b[K|Q]+=h;
b[K|256|Q>>>4]+=h}function z(b,Q,K,h,x,O,y){var v=0,i=new Int32Array(512),D=new Int32Array(1*K),I=new Int32Array(512*K),m=Math.min(x,K),f=Math.min(x,h),A=O[0];
for(var d=0;d<f;d++)r(I,D,b,K,d,1);for(var d=0;d<h;d++){if(d+x<h)r(I,D,b,K,d+x,1);if(d-x-1>=0)r(I,D,b,K,d-x-1,-1);
i.fill(0);v=0;for(var g=0;g<m;g++){v+=D[g];p(i,I,g)}for(var g=0;g<K;g++){var X=g-x-1,n=g+x;if(X>=0&&D[X]!=0){v-=D[X];
T(i,I,X)}if(n<K&&D[n]!=0){v+=D[n];p(i,I,n)}var R=v==0?0:A(i,b[d*K+g],v,y);Q[d*K+g]=R}}}function r(b,Q,K,h,x,O){var H=x*h;
for(var y=0;y<h;y++){Y(b,K[H+y],y<<9,O);Q[y]+=O}}function p(b,Q,K){for(var H=0;H<16;H++){var h=Q[K<<9|256|H];
if(h==0)continue;b[256|H]+=h;var x=H<<4,O=K<<9|x;k(b,Q,x,O);k(b,Q,x+4,O+4);k(b,Q,x+8,O+8);k(b,Q,x+12,O+12)}}function T(b,Q,K){for(var H=0;
H<16;H++){var h=Q[K<<9|256|H];if(h==0)continue;b[256|H]-=h;var x=H<<4,O=K<<9|x;P(b,Q,x,O);P(b,Q,x+4,O+4);
P(b,Q,x+8,O+8);P(b,Q,x+12,O+12)}}function k(b,Q,K,h){b[K]+=Q[h];b[K+1]+=Q[h+1];b[K+2]+=Q[h+2];b[K+3]+=Q[h+3]}function P(b,Q,K,h){b[K]-=Q[h];
b[K+1]-=Q[h+1];b[K+2]-=Q[h+2];b[K+3]-=Q[h+3]}return L}();c.nW.s_=[function(L,C,U,E){var H=15;while(L[256|H]==0&&H>0)H--;
H=(H<<4)+15;while(L[H]==0&&H>0)H--;return H},function(L,C,U,E,Y){var H=15;while(L[256|H]+C[256|H]==0&&H>0)H--;
H=(H<<4)+15;while(L[H]+C[H]==0&&H>0)H--;return H}];c.nW.ow=[function(L,C,U,E){var H=0;while(L[256|H]==0&&H<15)H++;
H=H<<4;while(L[H]==0&&H<255)H++;return H},function(L,C,U,E,Y){var H=0;while(L[256|H]+C[256|H]==0&&H<15)H++;
H=H<<4;while(L[H]+C[H]==0&&H<255)H++;return H}];c.nW._0=.5;c.nW.Rb=[function(L,C,U,E){var Y=~~(.5+c.nW._0*U),z=0,H=256;
while(z+L[H]<=Y)z+=L[H++];H=H-256<<4;while(z<=Y)z+=L[H++];return H-1},function(L,C,U,E,Y){var z=~~(.5+c.nW._0*E),r=0,H=256;
while(r+L[H]+C[H]<=z){r+=L[H]+C[H];H++}H=H-256<<4;while(r<=z){r+=L[H]+C[H];H++}return H-1}];c.nW.Vs=[function(L,C,U,E){var Y=E[0],z=0,r=0,H=Math.max(0,C-Y),p=Math.min(256,C+Y+1);
while(H<p){var T=L[H];z+=H*T;r+=T;H++}return r==0?0:z/r},function(L,C,U,E,Y){var z=Y[0],r=0,p=0,H=Math.max(0,U-z),T=Math.min(256,U+z+1);
while(H<T){var k=L[H]+C[H];r+=H*k;p+=k;H++}return p==0?0:r/p}];c.I={};c.I.Qh=function(L){var C=W.o.pp(L.Trnf),U=L.Sz.v,E=c.I.O4(C,new _(0,0,U.Wdth.v,U.Hght.v));
return c.I.bm(E)};c.I.O4=function(L,C){var U=L[0],E=L[1],Y=L[2],z=L[3],r=L[6],p=L[7],T=L[4],k=L[5],P=0,b=0,Q=1,K=0,h=0,x=1,O=1,y=1;
if(C){P=C.x;b=C.y;Q=C.x+C.d;K=C.y;h=C.x;x=C.y+C.v;O=C.x+C.d;y=C.y+C.v}return c.I.Fi(L,[P,b,Q,K,O,y,h,x])};
c.I.Fi=function(L,C){var U=L[0],E=L[1],Y=L[2],z=L[3],r=L[6],p=L[7],T=L[4],k=L[5],P=C[0],b=C[1],Q=C[2],K=C[3],h=C[6],x=C[7],O=C[4],y=C[5],v=[[P,b,1,0,0,0,-P*U,-b*U,U],[0,0,0,P,b,1,-P*E,-b*E,E],[Q,K,1,0,0,0,-Q*Y,-K*Y,Y],[0,0,0,Q,K,1,-Q*z,-K*z,z],[h,x,1,0,0,0,-h*r,-x*r,r],[0,0,0,h,x,1,-h*p,-x*p,p],[O,y,1,0,0,0,-O*T,-y*T,T],[0,0,0,O,y,1,-O*k,-y*k,k]],i=[0,0,0,0,0,0,0,0],D=c.W1.wi(v,i);
if(D!=0)i=[0,0,0,0,0,0,0,0];return i};c.I.tC=function(L){return Math.abs(L[6])<1e-10&&Math.abs(L[7])<1e-10};
c.I.bm=function(L){return new c0(L[0],L[3],L[1],L[4],L[2],L[5])};c.I.BL=function(L){return[L.R,L.Z9,L.Yt,L.O,L.J2,L.rv,0,0]};
c.I.apply=function(L,C){var U=new Float64Array(2);for(var E=0;E<C.length;E+=2){var Y=C[E],z=C[E+1];c.I.Pb(Y,z,L,U);
C[E]=U[0];C[E+1]=U[1]}};c.I.Pb=function(L,C,U,E){var Y=1/(U[6]*L+U[7]*C+1);E[0]=(U[0]*L+U[1]*C+U[2])*Y;
E[1]=(U[3]*L+U[4]*C+U[5])*Y};c.I.Wi=function(L,C){var U=new Float64Array(2);c.I.Pb(C.x,C.y,L,U);return new hZ(U[0],U[1])};
c.I.t$=function(L,C,U,E){L=new Uint32Array(L.buffer);C=new Uint32Array(C.buffer);for(var Y=0;Y<E;Y++){for(var z=0;
z<U;z++){C[z*E+Y]=L[Y*U+z]}}};c.I.acs=function(L,C,U,E){L=new Uint32Array(L.buffer);C=new Uint32Array(C.buffer);
for(var Y=0;Y<E;Y++){for(var z=0;z<U;z++){C[Y*U+z]=L[Y*U+U-1-z]}}};c.I.FS=function(L){return Math.abs(L[6])<1e-9&&Math.abs(L[7])<1e-9};
c.I.DY=function(L){return Math.abs(L[0])<1e-9&&Math.abs(L[4])<1e-9||Math.abs(L[1])<1e-9&&Math.abs(L[3])<1e-9};
c.I.drawImage=function(L,C,U,E,Y,z,r,p,T){if(r==null)r=!1;if(p==null)p=!1;var k=c.I.G$(L),P=!0,b=0,Q=1/Math.sqrt(Math.abs(L[0]/U*L[4]/E-L[1]/U*L[3]/E));
for(var H=0;H<8;H++){var K=Math.round(L[H]);if(H!=2&&H!=5)b+=Math.abs(K);if(Math.abs(K-L[H])>1e-9)P=!1}var h=c.I.FS(L),x=c.I.DY(L)&&h,O=x?1:0;
if(r||P&&b==U+E&&h){c.I.agE(k,C,U,E,Y,z,p,h,T);return}var y=z.d,v=z.v,i=new Float64Array(2);Y=new Uint32Array(Y.buffer);
C=new Uint32Array(C.buffer);for(var D=0;D<v;D++)for(var I=0;I<y;I++){var m=D*y+I,f,A,d,g,f5=0,dx=0,fq=0,i9=0;
Y[m]=0;var X=I+z.x+.5,n=D+z.y+.5;f=X;A=n;d=k;g=1/(d[6]*f+d[7]*A+1);var R=(d[0]*f+d[1]*A+d[2])*g,l=(d[3]*f+d[4]*A+d[5])*g,w=R*U,V=l*E,F=w<-1||w>U+1||V<-1||V>E+1;
if(p){w=Math.max(.001,Math.min(U-1,w));V=Math.max(.001,Math.min(E-1,V))}else if(F)continue;var Z=Q;if(!h){var M=0,a=0;
d=L;f=R+1/U;A=l;g=1/(d[6]*f+d[7]*A+1);M=(d[0]*f+d[1]*A+d[2])*g-X;a=(d[3]*f+d[4]*A+d[5])*g-n;var e=M*M+a*a;
f=R;A=l+1/E;g=1/(d[6]*f+d[7]*A+1);M=(d[0]*f+d[1]*A+d[2])*g-X;a=(d[3]*f+d[4]*A+d[5])*g-n;var N=M*M+a*a;
Z=1/Math.sqrt(Math.max(e,N))}if(Z<1.1){c.I.kA(w,V,C,U,E,Y,m,O);continue}var J=Math.round(Z*2.3);if(!p&&(w<.6||w>U-.6||V<.6||V>E-.6)){J=Math.max(J,5)}if(p&&F)J=1;
var s=1/J,e8=z.x+I,S=z.y+D;d=k;for(var H=0;H<J;H++)for(var fs=0;fs<J;fs++){f=e8+(H+.5)*s;A=S+(fs+.5)*s;
g=1/(d[6]*f+d[7]*A+1);var w=(d[0]*f+d[1]*A+d[2])*g,V=(d[3]*f+d[4]*A+d[5])*g;if(p){w=Math.max(.001,Math.min(.999,w));
V=Math.max(.001,Math.min(.999,V))}else if(w<0||w>=1||V<0||V>=1)continue;w=Math.floor(w*U);V=Math.floor(V*E);
var bz=V*U+w,g6=C[bz],al=g6>>>24;f5+=(g6&255)*al;dx+=(g6>>>8&255)*al;fq+=(g6>>>16&255)*al;i9+=al}if(i9!=0){var bj=1/i9;
f5=~~(f5*bj+.5);dx=~~(dx*bj+.5);fq=~~(fq*bj+.5);i9=~~(i9*s*s+.5);Y[m]=i9<<24|fq<<16|dx<<8|f5}}};c.I.agE=function(L,C,U,E,Y,z,r,p,T){if(p&&!r&&z.X()>4e6&&T){c.I.afH(L,C,U,E,Y,z,r,p,T);
return}var k=z.x+z.d,P=z.y+z.v,b=0,Q=new Uint32Array(Y.buffer),K=new Uint32Array(C.buffer),h=L[0]*U,x=L[1]*U,O=L[2]*U,y=L[3]*E,v=L[4]*E,i=L[5]*E,D=L[6],I=L[7];
if(p&&!r)for(var m=z.y+.5;m<P;m++)for(var f=z.x+.5;f<k;f++){var A=h*f+x*m+O,d=y*f+v*m+i;if(0<A&&A<U&&0<d&&d<E){var g=~~d*U+~~A;
Q[b]=K[g]}else Q[b]=0;b++}else for(var m=z.y+.5;m<P;m++)for(var f=z.x+.5;f<k;f++){var X=1/(D*f+I*m+1),A=(h*f+x*m+O)*X,d=(y*f+v*m+i)*X;
if(r){A=Math.max(.001,Math.min(U-1,A));d=Math.max(.001,Math.min(E-1,d))}if(0<A&&A<U&&0<d&&d<E){var g=Math.floor(d)*U+Math.floor(A);
Q[b]=K[g]}else Q[b]=0;b++}};c.I.afH=function(L,C,U,E,Y,z,r,p,T){var k=new Uint32Array(Y.buffer),P=new Uint32Array(C.buffer),I=0;
if(T&&(z.d&3)!=0)throw"e";var b=L[0]*U,Q=L[1]*U,K=L[2]*U,h=L[3]*E,x=L[4]*E,O=L[5]*E,y=L[6],v=L[7],i=z.d,D=z.v,m=z.x+.5,f=z.y+.5,A=(i>>>2<<2)-1e-9,d=-.1+(D>>>1<<1)-1e-9,g=~~U,X=b==0?0:1/b,n=h==0?0:1/h;
for(var R=0;R<D;R++){var l=m*b+Q*(R+f)+K,w=m*h+x*(R+f)+O,V=0,F=i;if(b==0){}else if(X>0){V=Math.max(V,-l*X);
F=Math.min(F,(U-l)*X)}else{F=Math.min(F,-l*X);V=Math.max(V,(U-l)*X)}if(h==0){}else if(n>0){V=Math.max(V,-w*n);
F=Math.min(F,(E-w)*n)}else{F=Math.min(F,-w*n);V=Math.max(V,(E-w)*n)}if(F<0)F=0;if(V>F)V=F;V=Math.ceil(V);
F=~~F;I=~~(R*i);for(var Z=0;Z<V;Z++)k[I++]=0;for(var Z=V;Z<F;Z+=4){var M=b*Z+l,a=h*Z+w,e=~~a*g+~~M;k[I++]=k[I++]=k[I++]=k[I++]=P[e]}for(var Z=F;
Z<i;Z++)k[I++]=0}};c.I.G$=function(L){var C=L[4]-L[5]*L[7],U=L[2]*L[7]-L[1],E=L[1]*L[5]-L[2]*L[4],Y=L[5]*L[6]-L[3],z=L[0]-L[2]*L[6],r=L[3]*L[2]-L[0]*L[5],p=L[3]*L[7]-L[4]*L[6],T=L[1]*L[6]-L[0]*L[7],k=1/(L[0]*L[4]-L[1]*L[3]);
return[C*k,U*k,E*k,Y*k,z*k,r*k,p*k,T*k]};c.I.O1=function(L,C){var U=L[0],E=L[1],Y=L[2],z=L[3],r=L[4],p=L[5],T=L[6],k=L[7],P=C[0],b=C[1],Q=C[2],K=C[3],h=C[4],x=C[5],O=C[6],y=C[7],v=[U*P+E*K+Y*O,U*b+E*h+Y*y,U*Q+E*x+Y,z*P+r*K+p*O,z*b+r*h+p*y,z*Q+r*x+p,T*P+k*K+O,T*b+k*h+y],i=1/(T*Q+k*x+1);
for(var H=0;H<8;H++)v[H]*=i;return v};c.I.kA=function(L,C,U,E,Y,z,r,p){var T=L,k=C,Q=0,K=0,h=0,x=0;L-=.499999;
C-=.499999;var P=Math.floor(L),b=Math.floor(C);if(p==0){var H=b*E+P,O=P>=0&&P<E,y=P+1>=0&&P+1<E,v=b>=0&&b<Y,i=b+1>=0&&b+1<Y;
if(O&&v)Q=U[H];if(y&&v)K=U[H+1];if(O&&i)h=U[H+E];if(y&&i)x=U[H+E+1]}else if(p==1){var D=P<0?0:P>E-1?E-1:P,I=P<-1?0:P>E-2?E-1:P+1,m=b<0?0:b>Y-1?Y-1:b,f=b<-1?0:b>Y-2?Y-1:b+1;
Q=U[m*E+D];K=U[m*E+I];h=U[f*E+D];x=U[f*E+I]}else{var D=(P+50*E)%E,I=(P+50*E)%E,m=(b+50*Y)%Y,f=(b+50*Y)%Y;
Q=U[m*E+D];K=U[m*E+I];h=U[f*E+D];x=U[f*E+I]}var A=L-P,d=C-b,g=(1-d)*(1-A)*(Q>>>24),X=(1-d)*A*(K>>>24),n=d*(1-A)*(h>>>24),R=d*A*(x>>>24),l=g+X+n+R,w=g*(Q&255)+X*(K&255)+n*(h&255)+R*(x&255),V=g*(Q>>>8&255)+X*(K>>>8&255)+n*(h>>>8&255)+R*(x>>>8&255),F=g*(Q>>>16&255)+X*(K>>>16&255)+n*(h>>>16&255)+R*(x>>>16&255);
if(l==0)z[r]=0;else{var Z=1/l;w=~~(w*Z+.5);V=~~(V*Z+.5);F=~~(F*Z+.5);l=~~(l+.5);z[r]=l<<24|F<<16|V<<8|w}};
c.I.Pi=function(L,C,U,E,Y,z){var r=L-.499999,p=C-.499999,T=~~r,k=~~p,P=r-T,b=p-k,Q=(1-b)*(1-P),K=(1-b)*P,h=b*(1-P),x=b*P,O=k*E+T<<2,y=(k+1)*E+T<<2,v=Q*U[O]+K*U[O+4]+h*U[y]+x*U[y+4],i=Q*U[O+1]+K*U[O+5]+h*U[y+1]+x*U[y+5],D=Q*U[O+2]+K*U[O+6]+h*U[y+2]+x*U[y+6],I=Q*U[O+3]+K*U[O+7]+h*U[y+3]+x*U[y+7];
z[0]=v;z[1]=i;z[2]=D;z[3]=I};c.I.uw=function(L,C,U,E,Y){L-=.499999;C-=.499999;var z=Math.floor(L),r=Math.floor(C),p=L-z,T=C-r,k=(1-T)*(1-p),P=(1-T)*p,b=T*(1-p),Q=T*p,K=(z+50*E)%E,h=(z+1+50*E)%E,x=(r+50*Y)%Y,O=(r+1+50*Y)%Y,y=U[x*E+K],v=U[x*E+h],i=U[O*E+K],D=U[O*E+h];
if(y==null||D==null)throw"e";return k*y+P*v+b*i+Q*D};c.I.bN=function(L,C,U,E,Y,z,r,p,T,k,P,b){var Q=new Uint32Array(L.buffer),K=new Uint32Array(E.buffer),h=(1+2*k)/Y,x=[],O=[];
for(var y=0;y<Y;y++){var v=-.25+k-y*h;x.push(Math.cos(2*Math.PI*v)*b/P);x.push(Math.sin(2*Math.PI*v)/P)}r*=C;
p*=U;for(var i=0;i<z;i++){var D=Math.pow(i/z,T)*z;for(var y=0;y<Y;y++){var I=r+x[y<<1]*D,m=p+x[(y<<1)+1]*D,f=~~(.5+(I<0?0:I>C-1?C-1:I)),A=~~(.5+(m<0?0:m>U-1?U-1:m));
K[i*Y+y]=Q[A*C+f]}}};c.I.H9=function(L,C,U,E,Y,z,r,p,T,k,P,b){var Q=new Uint32Array(L.buffer),K=new Uint32Array(E.buffer),h=1/b,x=[],O=U*4,y=1/O;
for(var v=0;v<O;v++)x.push(Math.pow(v*y,1/T)*U*P);r*=Y;p*=z;for(var v=0;v<z;v++)for(var i=0;i<Y;i++){var D=h*(i-r),I=v-p,m=1.75-Math.atan2(I,D)*(1/(2*Math.PI));
m=m-~~m;m=(m+k)*(1/(1+2*k));var f=Math.sqrt(D*D+I*I);f=x[~~(f*4)];c.I.kA(m*C+.5,f+.5,Q,C,U,K,v*Y+i,1)}};
c.I.fw=function(L,C,U,E,Y){var z=Y[0],r=Y[1];for(var p=0;p<r;p++)for(var T=0;T<z;T++){var k=Y[2]*T+Y[3]*p+Y[4],P=Y[5]*T+Y[6]*p+Y[7],b=p*z+T<<2,Q=P*C+k<<2;
E[b]=L[Q+0];E[b+1]=L[Q+1];E[b+2]=L[Q+2];E[b+3]=L[Q+3]}};c.W={M3:function(L,C){var U=~~(.499+L*C);return U<0?0:U>C?C:U},a6c:function(L,C,U,E,Y,z,r,p){var T=U[0],k=U[1],P=U[2],b=U[3],Q=E.d,K=E.v,h=new Float64Array(Q*4+8),x=new Float64Array(Q*4+8);
for(var O=0,H=0;O<K;O++){var y=h;h=x;x=y;x.fill(0);for(var v=0;v<Q;v++,H++){var i=v+Y,D=O+z,I=T*i+k*D,m=P*i+b*D,f=0,g=0;
if(p==0)f=I+.5;else if(p==1)f=2*Math.sqrt(I*I+m*m);else if(p==2)f=(Math.PI+Math.atan2(-m,-I))/(2*Math.PI);
else if(p==3)f=Math.abs(I*2);else if(p==4)f=2*(Math.abs(I)+Math.abs(m));var A=c.W.M3(f,r)*4,d=v*4;for(var X=0;
X<4;X++){var n=Math.max(0,Math.min(254.999,C[A+X]+h[d+4+X])),R=Math.floor(n);if(Math.random()<n-R)R++;
var l=n-R;h[d+8+X]=l*(7/16);x[d+0+X]=l*(3/16);x[d+4+X]=l*(5/16);x[d+8+X]=l*(1/16);g|=R<<X*8}L[H]=g}}},V:[function(L,C,U,E,Y,z,r){var p=U[0],T=U[1],k=U[2],P=U[3],b=E.d,Q=E.v;
for(var K=0,H=0;K<Q;K++)for(var h=0;h<b;h++,H++){var x=h+Y,O=K+z,y=p*x+T*O,v=k*x+P*O,i=y+.5;L[H]=C[c.W.M3(i,r)]}},function(L,C,U,E,Y,z,r){var p=U[0],T=U[1],k=U[2],P=U[3],b=E.d,Q=E.v;
for(var K=0,H=0;K<Q;K++)for(var h=0;h<b;h++,H++){var x=h+Y,O=K+z,y=p*x+T*O,v=k*x+P*O,i=2*Math.sqrt(y*y+v*v);
L[H]=C[c.W.M3(i,r)]}},function(L,C,U,E,Y,z,r){var p=U[0],T=U[1],k=U[2],P=U[3],b=E.d,Q=E.v;for(var K=0,H=0;
K<Q;K++)for(var h=0;h<b;h++,H++){var x=h+Y,O=K+z,y=p*x+T*O,v=k*x+P*O,i=(Math.PI+Math.atan2(-v,-y))/(2*Math.PI);
L[H]=C[c.W.M3(i,r)]}},function(L,C,U,E,Y,z,r){var p=U[0],T=U[1],k=U[2],P=U[3],b=E.d,Q=E.v;for(var K=0,H=0;
K<Q;K++)for(var h=0;h<b;h++,H++){var x=h+Y,O=K+z,y=p*x+T*O,v=k*x+P*O,i=Math.abs(y*2);L[H]=C[c.W.M3(i,r)]}},function(L,C,U,E,Y,z,r){var p=U[0],T=U[1],k=U[2],P=U[3],b=E.d,Q=E.v;
for(var K=0,H=0;K<Q;K++)for(var h=0;h<b;h++,H++){var x=h+Y,O=K+z,y=p*x+T*O,v=k*x+P*O,i=2*(Math.abs(y)+Math.abs(v));
L[H]=C[c.W.M3(i,r)]}}]};c.W.a3m=function(L,C){return L+.5};c.W.ajg=function(L,C){return 2*Math.sqrt(L*L+C*C)};
c.W.a3S=function(L,C){return(Math.PI+Math.atan2(-C,-L))/(2*Math.PI)};c.W.aeZ=function(L,C){return Math.abs(L*2)};
c.W.akE=function(L,C){return 2*(Math.abs(L)+Math.abs(C))};c.W.Rv=function(L,C,U,E,Y,z,r,p,T,k,P,b){if(L.Clrs==null)return;
var Q=new Uint32Array(C.buffer),K=1023,h=c.W.Sa(L.Clrs.v,T,k);if(b){var x=c.W.a1Q(L,h,K+1,r);c.W.a6c(Q,x,E,U,U.x-Y,U.y-z,K,p);
return}var O=c.W.Vi(L,h,K+1,r);if(p<5){c.W.V[p](Q,O,E,U,U.x-Y,U.y-z,K)}else{var y=new Uint8Array(O.buffer),v=U.d,i=U.v,D=P.E6-P.du,I=1/D,m=P.oo.d-U.d>>1,f=P.oo.v-U.v>>1,A=P.oo.d,d=-.6*I,g=(-.6+.4)*I,X=(-.6+2*.4)*I,n=(-.6+3*.4)*I;
for(var R=0,H=0;R<i;R++)for(var l=0;l<v;l++,H+=4){var w=0,V=0,F=0,Z=0,M=(R+f)*A+l+m,a=(P.Fd[M]-P.du)*I,e=0;
if(a<=0||a>=1){e=(a<=0?0:K)<<2;C[H]=y[e];C[H+1]=y[e+1];C[H+2]=y[e+2];C[H+3]=y[e+3];continue}e=Math.max(0,Math.min(K-1,Math.round((a+d)*K)))<<2;
V+=y[e];F+=y[e+1];Z+=y[e+2];w+=y[e+3];e=Math.max(0,Math.min(K-1,Math.round((a+g)*K)))<<2;V+=y[e];F+=y[e+1];
Z+=y[e+2];w+=y[e+3];e=Math.max(0,Math.min(K-1,Math.round((a+X)*K)))<<2;V+=y[e];F+=y[e+1];Z+=y[e+2];w+=y[e+3];
e=Math.max(0,Math.min(K-1,Math.round((a+n)*K)))<<2;V+=y[e];F+=y[e+1];Z+=y[e+2];w+=y[e+3];C[H]=V>>>2;
C[H+1]=F>>>2;C[H+2]=Z>>>2;C[H+3]=w>>>2}}};c.W.Sa=function(L,C,U){var E=[];for(var H=0;H<L.length;H++){var Y;
if(L[H].v.Type.v.Clry=="FrgC")Y={h:C>>16&255,P:C>>8&255,O:C&255};else if(L[H].v.Type.v.Clry=="BckC")Y={h:U>>16&255,P:U>>8&255,O:U&255};
else Y=c.W.Lt(L[H].v.Clr.v);E.push(Y)}return E};c.W.Lt=function(L){var C,U=L.classID;if(U=="RGBC"){if(L.Rd)C={h:L.Rd.v,P:L.Grn.v,O:L.Bl.v};
else C={h:L.redFloat.v*255,P:L.greenFloat.v*255,O:L.blueFloat.v*255}}else if(U=="HSBC"){C=c.D5(L.H.v.val/360,L.Strt.v/100,L.Brgh.v/100);
C.h*=255;C.P*=255;C.O*=255}else if(U=="CMYC"){var E=100-L.Cyn.v,Y=100-L.Mgnt.v,z=100-L.Ylw.v,r=100-L.Blck.v,p=255*E*r*1e-4,T=255*(.2*E+.8*Y)*r*1e-4,k=255*(.2*Y+.8*z)*r*1e-4;
C={h:p,P:T,O:k}}else if(U=="Grsc")C={h:255-L.Gry.v,P:255-L.Gry.v,O:255-L.Gry.v};else if(U=="LbCl"){C=c.BR(L.Lmnc.v,L.A.v,L.B.v)}else console.log(L);
if(isNaN(C.h))C.h=C.P=C.O=0;return C};c.W._b=function(L){return{classID:"RGBC",Rd:{t:"doub",v:L.h},Grn:{t:"doub",v:L.P},Bl:{t:"doub",v:L.O}}};
c.W.a1Q=function(L,C,U,E){var Y=[],z=1/(U-0);for(var H=0;H<U;H++){var r=H*4,p=c.W.Y5(L,C,(E?U-1-H:H)*z);
Y[r]=p[0];Y[r+1]=p[1];Y[r+2]=p[2];Y[r+3]=p[3]}return Y};c.W.Vi=function(L,C,U,E){var Y=new Uint32Array(U),z=1/(U-0);
for(var H=0;H<U;H++)Y[H]=c.W.qq(L,C,(E?U-1-H:H)*z);return Y};c.W.Y5=function(L,C,U){var E=4096,Y=1/4096,z=L.Intr.v*Y,r=L.Clrs.v,p=L.Trns.v,T=r.length-1,k=p.length-1,H=-1,P=0,b=0,Q=0,K=0;
while(H<k&&p[H+1].v.Lctn.v<=U*E)H++;if(H==-1){P=p[0].v.Opct.v.val*(255/100)}else if(H==k){P=p[H].v.Opct.v.val*(255/100)}else{var h=c.W.UQ(p,Y,H,U,z);
P=(h*p[H].v.Opct.v.val+(1-h)*p[H+1].v.Opct.v.val)*(255/100)}H=-1;while(H<T&&r[H+1].v.Lctn.v<=U*E)H++;
if(H==-1){var x=C[0];b=x.h;Q=x.P;K=x.O}else if(H==T){var x=C[H];b=x.h;Q=x.P;K=x.O}else{var O=C[H],y=C[H+1],v=c.W.UQ(r,Y,H,U,z);
b=v*O.h+(1-v)*y.h;Q=v*O.P+(1-v)*y.P;K=v*O.O+(1-v)*y.O}return[b,Q,K,P]};c.W.qq=function(L,C,U){var E=c.W.Y5(L,C,U),Y=~~(.5+E[0]),z=~~(.5+E[1]),r=~~(.5+E[2]),p=~~(.5+E[3]);
return p<<24|r<<16|z<<8|Y};c.W.UQ=function(L,C,H,U,E){if(L.length==2)E*=.5;var Y=L[H].v.Lctn.v*C,z=L[H+1].v.Lctn.v*C,r=Y+L[H+1].v.Mdpn.v*.01*(z-Y),p;
if(U<r)p=.5*(U-Y)/(r-Y);else p=.5+.5*(U-r)/(z-r);p=.5+.5*(E*Math.cos(Math.PI*p)+(1-E)*(1-2*p));return p};
c.W.LA=function(L,C){var U=Math.PI*L.Angl.v.val/180,E=L.Scl.v.val/100,Y=L.Ofst.v,z=Y.Hrzn.v.val/100,r=Y.Vrtc.v.val/100,p=Math.cos(U),T=-Math.sin(U),k=.5*C.v,P=k*(p/T),b=Math.sqrt(k*k+P*P),Q=.5*C.d,K=Q*(T/p),h=Math.sqrt(Q*Q+K*K),x=Math.min(b,h)*E,O=C.x+C.d/2+z*C.d,y=C.y+C.v/2+r*C.v;
return[new hZ(O,y),new hZ(O+p*x,y+T*x)]};c.W.y9=function(L,C,U,E){var Y=C.x-L.x,z=-(C.y-L.y),r=Math.sqrt(Y*Y+z*z),p=Math.atan2(z,Y),T=Math.cos(p),k=-Math.sin(p),P=.5*U.v,b=P*(T/k),Q=Math.sqrt(P*P+b*b),K=.5*U.d,h=K*(k/T),x=Math.sqrt(K*K+h*h),O=r/Math.min(Q,x),y=(L.x-U.x-U.d/2)/U.d,v=(L.y-U.y-U.v/2)/U.v;
E.Angl.v.val=180*p/Math.PI;E.Scl.v.val=O*100;var i=E.Ofst.v;i.Hrzn.v.val=y*100;i.Vrtc.v.val=v*100};c.W.et=function(L,C){for(var H=0;
H<L.length;H++){var U=L[H],E=Math.round(U[0]*4096),Y=U[1],z=U[2];if(z==null)z=1;var r=c.W._b({h:Y[0]*255,P:Y[1]*255,O:Y[2]*255});
C.Clrs.v[H]={t:"Objc",v:{classID:"Clrt",Lctn:{t:"long",v:E},Mdpn:{t:"long",v:50},Clr:{t:"Objc",v:r},Type:{t:"enum",v:{Clry:"UsrS"}}}};
C.Trns.v[H]={t:"Objc",v:{classID:"TrnS",Lctn:{t:"long",v:E},Mdpn:{t:"long",v:50},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(z*100)}}}}}};
c.OD={};c.OD.afh=function(L,C,U,E,Y,z,r,p,T,k,P,b){var Q,K,h,x=Date.now(),O=!1,y=r,v=k,i,D,I,m,f=z*255,A=255-T*255,d=1+Y*6,g=1+p*6,X=1+b*4,n=(X-1)/7,R=0,l=255-0,w,V,F,Z,M,a,e,N,J,s,f5,dx,fq,i9=0,e8=1,S,fs,bz,g6,al,bj,bE,eN,dk,hj,iN=1+P,dK,ch=c.F(U*E),hP=c.F(U*E),d2=c.F(U*E),hr=c.F(U*E),fv=255/f,f3=255/(255-A);
for(K=0;K<E;K++){for(Q=0;Q<U;Q++){var H=K*U+Q,dp=H<<2;S=c.GZ(L[dp],L[dp+1],L[dp+2]);hr[H]=S;if(S<f)ch[H]=255-S*fv;
if(S>A)hP[H]=255-(255-S)*f3}}if(O)console.log("init",Date.now()-x);x=Date.now();if(Y*y>0){d2.set(ch);
c.qM.IH(d2,ch,new _(0,0,U,E),y)}if(p*v>0){d2.set(hP);c.qM.IH(d2,hP,new _(0,0,U,E),v)}if(O)console.log("blur",Date.now()-x);
x=Date.now();var go=c.F(256),d6=c.F(256);for(var H=0;H<256;H++){var iB=H*(1/255),hS=0;hS=(1-Math.pow(1-iB,d))*255;
go[H]=Math.max(0,Math.min(255,~~(hS+.5)));hS=Math.pow(iB,g)*255;d6[H]=Math.max(0,Math.min(255,~~(hS+.5)))}var eF=new Uint8ClampedArray(C.buffer),bQ=new Float32Array(32768);
for(var H=0;H<32768;H++){dK=Math.sqrt(H)*(1/128);if(iN>1)dK=(1-dK)*(iN-1)+1;else dK=dK*(iN-1)+1;bQ[H]=dK}for(K=0;
K<E;K++){for(Q=0;Q<U;Q++){var H=K*U+Q,dp=H<<2,hS=hr[H],iP=ch[H]*(1/255),d8=hP[H]*(1/255);hS=(1-iP)*hS+iP*go[~~hS];
hS=(1-d8)*hS+d8*d6[~~hS];S=hS;var a6=L[dp],am=L[dp+1],fj=L[dp+2];fs=-a6*.168736-am*.331264+fj*.5;bz=a6*.5-am*.418688-fj*.081312;
dK=bQ[~~(.5+fs*fs+bz*bz)];g6=fs*dK;bj=bz*dK;e8=1-Math.min(2-(iP+d8),1);fs=e8*fs+(1-e8)*g6;bz=e8*bz+(1-e8)*bj;
eN=S+1.402*bz;dk=S-.34414*fs-.71414*bz;hj=S+1.772*fs;eF[dp]=~~(.5+eN);eF[dp+1]=~~(.5+dk);eF[dp+2]=~~(.5+hj)}}if(O)console.log("apply masks",Date.now()-x);
x=Date.now()};c.Qp={};c.Qp.p8=function(L,C,U,E,Y){var z=!1,h=1,l=0,w=0,J=0,dk=0;if(!C.zg(Y)){var r=C.EU(Y),p=c.F(r.X()*4);
c.La(L,C,p,r);L=p;C=r}var T=c.F(C.X());c.zM(U,Y,T,C);c.round(T);Y=Y.eR(C);var k=Y.d,P=Y.v,b=k*3<P?2:1,Q=P*3<k?2:1;
if(Y.X()*(b*2+1)*(Q*2+1)<C.X()){var r=new _(Y.x-k*b,Y.y-P*b,k*(b*2+1),P*(Q*2+1)).eR(C),p=c.F(r.X()*4);
c.La(L,C,p,r);var K=c.F(r.X());c.zM(T,C,K,r);C=r;L=p;T=K}while((C.d+C.v)/2/h>400)h++;var x=L,O=C,y=T,v=Math.floor(O.d/h),i=Math.floor(O.v/h);
L=c.F(v*i*4);c.scale.su(x,O.d,O.v,L,v,i,1/h);T=c.F(v*i);c.scale.fw(y,O.d,O.v,T,v,i,1/h);c.round(T,1);
var D=c.lJ(T,new _(0,0,v,i));if(D.ue())return 1;var I=Math.round((D.d+D.v)/2/15),m=Date.now(),f=c.F(v*i*4);
c.aej(L,f);var A=Int16Array,d=new A(v*i*24),g=new A(64),X=new A(64),n=new A(64),R=new A(64);for(var V=3;
V<i-4;V++)for(var F=3;F<v-4;F++){var Z=V*v+F;if(T[Z]==255)continue;if(c.Qp.ajO(f,T,F,V,v,i,g,X,n)!=0)continue;
c.Qp.s0(g,R);d[l]=F;d[l+1]=V;c.Qp.hL(g,d,l+4,12);l+=16;c.Qp.s0(X,R);c.Qp.hL(X,d,l,4);l+=4;c.Qp.s0(n,R);
c.Qp.hL(n,d,l,4);l+=4;var M=d[l-24+5],a=d[l-24+6];d[l-24+5]=d[l-24+20];d[l-24+6]=d[l-24+16];d[l-24+16]=M;
d[l-24+20]=a;w++}if(w==0)return 2;if(z)console.log(Date.now()-m,"FWHT computed");m=Date.now();var e=[];
c.Qp.y4(0,w-1,e,d,new A(2*24));if(z)console.log(Date.now()-m,"KD tree computed");m=Date.now();var N=new Float32Array(v*i*4);
for(var H=0;H<w;H++){var s=H,f5=c.Qp.ajz(s,d,e,I);if(f5==-1)continue;var dx=s*24,fq=f5*24,i9=d[dx],e8=d[dx+1],S=d[fq],fs=d[fq+1];
J+=c.Qp.getError(fq,dx,d,1e99);var bz=S-i9,g6=fs-e8;N[(i+g6)*2*v+(v+bz)]+=1}if(z)console.log(Date.now()-m,"NN found");
m=Date.now();var al=[],bj=1/(2*v);for(var H=0;H<N.length;H++){if(N[H]>0){var V=Math.floor(H*bj),F=H-V*2*v;
al.push({x:F-v,y:V-i,G:N[H],Wl:-1})}}al.sort(function(d8,a6){return a6.G-d8.G});var bE=new Int32Array(v*i),eN=[];
for(var H=0;H<v*i;H++){if(T[H]==255){bE[H]=dk;eN.push(H%v,Math.floor(H/v));dk++}else if(L[(H<<2)+3]<200){bE[H]=-2}else{bE[H]=-1}}var hj=c.Qp.anZ(v,i,al,bE,eN,dk);
if(hj==null){return 3}var iN=hj.I6,top=hj.top;iN=c.Qp.any(iN,L,v,i,top,bE,eN,dk);if(z)console.log(Date.now()-m,"optimal labeling found");
m=Date.now();var r=Y.clone();r.WW(1,1);r=r.eR(O);var dK=c.F(r.X()*4),ch=c.F(r.X());c.La(x,O,dK,r);var hP=O.d,fv=O.v;
for(var V=0;V<fv;V++)for(var F=0;F<hP;F++){if(y[V*hP+F]==0)continue;var f3=Math.min(Math.floor(F/h),v-1),dp=Math.min(Math.floor(V/h),i-1),go=bE[dp*v+f3],d6=iN[go],iB=top[d6],hS=F+iB.x*h,eF=V+iB.y*h,bQ=eF*hP+hS<<2,iP=(V-r.y+O.y)*r.d+(F-r.x+O.x)<<2;
dK[iP]=x[bQ];dK[iP+1]=x[bQ+1];dK[iP+2]=x[bQ+2];dK[iP+3]=x[bQ+3];dK[iP+3]=x[bQ+3];ch[iP>>2]=d6+1}if(z)console.log(Date.now()-m,"copied back");
m=Date.now();c.l2.p8(dK,ch,r,null,1e3);if(z)console.log(Date.now()-m,"poisson smooth");m=Date.now();
c.La(dK,r,E,Y);return 0};c.Qp.b2=function(L,C,U,E,Y,z){return c.Qp.pG(L+Y.x,C+Y.y,U,E)&&z[(C+Y.y)*U+(L+Y.x)]==-1?0:1e9};
c.Qp.any=function(L,C,U,E,top,Y,z,r){var p=Date.now(),T=[-1,0,0,-1,1,0,0,1],k=1e99,P=[],b=[],Q=2*(r*2*3+r*2),K=null,h=0,x=0,O=0,y=1e99;
while(!0&&Date.now()<p+12e3){O++;var v=null,i=k;for(var D=0;D<top.length;D++){var I=top[D],m=0,f=r+2,A=0;
for(var H=0;H<r;H++){var d=z[H*2],g=z[H*2+1],X=top[L[H]],n=c.Qp.b2(d,g,U,E,I,Y),R=L[H]==D?1e9:c.Qp.b2(d,g,U,E,X,Y);
for(var u=0;u<4;u++){if(u==0&&d==0||u==1&&g==0||u==2&&d==U-1||u==3&&g==E-1)continue;var l=T[2*u],w=T[2*u+1],V=d+l,F=g+w,Z=Y[F*U+V];
if(Z==-2){}else if(Z==-1){n+=3*c.Qp.PE(V+I.x,F+I.y,V,F,U,E,C,Y);n+=2*c.Qp.PE(V+I.x+l,F+I.y+w,V+l,F+w,U,E,C,Y);
R+=3*c.Qp.PE(V+X.x,F+X.y,V,F,U,E,C,Y);R+=2*c.Qp.PE(V+X.x+l,F+X.y+w,V+l,F+w,U,E,C,Y)}else if(u>1){if(L[H]==L[Z]){var M=0;
M+=c.Qp.PE(d+X.x,g+X.y,d+I.x,g+I.y,U,E,C,Y);M+=c.Qp.PE(V+X.x,F+X.y,V+I.x,F+I.y,U,E,C,Y);P[m]=H;P[m+1]=Z;
b[m]=M;b[m+1]=M;m+=2}else{var a=top[L[Z]],e=f,N=0,J=0,s=0;f++;N+=c.Qp.PE(d+X.x,g+X.y,d+I.x,g+I.y,U,E,C,Y);
N+=c.Qp.PE(V+X.x,F+X.y,V+I.x,F+I.y,U,E,C,Y);J+=c.Qp.PE(d+a.x,g+a.y,d+I.x,g+I.y,U,E,C,Y);J+=c.Qp.PE(V+a.x,F+a.y,V+I.x,F+I.y,U,E,C,Y);
s+=c.Qp.PE(d+a.x,g+a.y,d+X.x,g+X.y,U,E,C,Y);s+=c.Qp.PE(V+a.x,F+a.y,V+X.x,F+X.y,U,E,C,Y);P[m]=H;P[m+1]=e;
b[m]=N;b[m+1]=N;m+=2;P[m]=Z;P[m+1]=e;b[m]=J;b[m+1]=J;m+=2;P[m]=e;P[m+1]=r+1;b[m]=s;b[m+1]=0;m+=2}}}P[m]=r;
P[m+1]=H;b[m]=n;b[m+1]=0;m+=2;P[m]=H;P[m+1]=r+1;b[m]=R;b[m+1]=0;m+=2;A+=Math.min(n,R)}if(A>i)continue;
var f5=c._i.wi(f,m,r,r+1,P,b,i);if(f5.bR<i){i=f5.bR;var dx=L.slice(0);c.Qp.amd(dx,m,P,f5.J_,D,r);v=dx}}if(i*1>=k){break}k=i;
L=v;if((O&3)==0){if(i*1.03>=y)break;y=i}if((O&3)==0){var fq=0*top.length;for(var H=0;H<top.length&&top.length>fq;
H++){if(L.indexOf(H)!=-1)continue;top.splice(H,1);for(var Z=0;Z<L.length;Z++)if(L[Z]>H)L[Z]--;H--}}}return L};
c.Qp.amd=function(L,C,U,E,Y,z){for(var H=0;H<E.length;H++){var r=E[H]<<1,p=0,T=0;if(r<C){p=U[r];T=U[r+1]}else{T=U[r];
p=U[r+1]}if(p==z&&L[T]!=Y)L[T]=Y}};c.Qp.SG=function(top,L,C,U,E,Y,z,r,p){for(var H=0;H<C.length;H++){var T=C[H],k=!0;
if(r!=null&&!(c.Qp.pG(r+T.x,p+T.y,Y,z)&&U[Y*(p+T.y)+r+T.x]==-1))continue;if(T.Wl==-1)T.Wl=c.Qp.agY(T,U,E,Y,z);
if(T.Wl<=0)continue;for(var P=0;P<top.length;P++){var b=top[P],Q=T.x-b.x,K=T.y-b.y;if(Q*Q+K*K<L){k=!1;
break}}if(k)return T}return null};c.Qp.agY=function(L,C,U,E,Y){var z=0;for(var H=0;H<U.length;H+=2){var r=U[H]+L.x,p=U[H+1]+L.y;
if(c.Qp.pG(r,p,E,Y)&&C[E*p+r]==-1)z++}return z/(U.length>>1)};c.Qp.anZ=function(L,C,U,E,Y,z){var top=[];
for(var H=0;H<60;H++){var r=c.Qp.SG(top,25,U,E,Y,L,C);if(r==null)break;else top.push(r)}if(top.length==0)return null;
var p=[];for(var H=0;H<z;H++){var T=Y[H*2],k=Y[H*2+1],P=-1,b=0;while(!0){b++;var Q=Math.random();P=Math.floor(Q*.99999*top.length);
var K=top[P],h=T+K.x,x=k+K.y;if(c.Qp.pG(h,x,L,C)&&E[x*L+h]==-1)break;if(b>100){var r;r=c.Qp.SG(top,0,U,E,Y,L,C,T,k);
if(r==null)return null;top.push(r);b=0}}p.push(P)}return{top:top,I6:p}};c.Qp.PE=function(L,C,U,E,Y,z,r,p){if(L==U&&C==E)return 0;
if(L<0||C<0||L>=Y||C>=z||U<0||E<0||U>=Y||E>=z||p[C*Y+L]!=-1||p[E*Y+U]!=-1)return 1e7;var T=C*Y+L<<2,k=E*Y+U<<2,P=r[T]-r[k],b=r[T+1]-r[k+1],Q=r[T+2]-r[k+2];
return 1+(P*P+b*b+Q*Q)};c.Qp.pG=function(L,C,U,E){return L>=0&&L<U&&C>=0&&C<E};c.Qp.ajz=function(L,C,U,E){var Y=24*L,z=C[Y],r=C[Y+1],p=E*E,T=0,Q=1e9;
while(U[T]!=99)if(C[Y+U[T]]<U[T+1])T=U[T+2];else T=U[T+3];var k=U[T+1],P=U[T+2],b=-1;for(var H=k;H<=P;
H++){var T=H,K=T*24,h=C[K],x=C[K+1];if((h-z)*(h-z)+(x-r)*(x-r)<p)continue;var O=c.Qp.getError(K,Y,C,Q);
if(O<Q){Q=O;b=T}}return b};c.Qp.getError=function(L,C,U,E){var Y=0;for(var z=4;z<24;z+=4){var r=U[C+z]-U[L+z],p=U[C+z+1]-U[L+z+1],T=U[C+z+2]-U[L+z+2],k=U[C+z+3]-U[L+z+3];
Y+=r*r+p*p+T*T+k*k;if(Y>=E)return Y+1}return Y};c.Qp.y4=function(L,C,U,E,Y){var z=16,Q=0;if(C-L<=z){U.push(99,L,C);
return}c.Qp.mE(L,C,E,Y);var r=-1,p=-1;for(var H=4;H<24;H++){var T=Y[2*H+1]-Y[2*H];if(T>p){p=T;r=H}}var k=L+C>>1,P=c.Qp.a0q(k,L,C,E,r),b=-1;
for(var H=L;H<=C;H++)if(E[24*H+r]==P){if(b==-1)b=H;Q=H}if(L+8<b&&b-L>C-Q)k=b;else if(Q+1<C-8)k=Q+1;else if(C-L<64){U.push(99,L,C);
return}else k=k;var K=U.length;U.push(r,P,0,0);U[K+2]=K+4;c.Qp.y4(L,k-1,U,E,Y);U[K+3]=U.length;c.Qp.y4(k,C,U,E,Y)};
c.Qp.mE=function(L,C,U,E){for(var H=0;H<48;H+=4){E[H]=3e4;E[H+1]=-3e4;E[H+2]=3e4;E[H+3]=-3e4}for(var H=L;
H<=C;H++){var Y=H*24;for(var z=0;z<24;z++){var r=U[Y+z],p=E[z<<1],T=E[(z<<1)+1];if(r<p)E[z<<1]=r;if(r>T)E[(z<<1)+1]=r}}};
c.Qp.C2=function(L,C,U){var E=0,H=0;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;
H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;
H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;
H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;
H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;
H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;
H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;
H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;
H++;E=U[L+H];U[L+H]=U[C+H];U[C+H]=E;H++};c.Qp.by=function(L,C,U,E){var Y=U+E>>>1,z=L[24*Y+C];while(U<=E){while(L[24*U+C]<z)U++;
while(L[24*E+C]>z)E--;if(U<=E){if(L[24*U+C]!=L[24*E+C])c.Qp.C2(U*24,E*24,L);U++;E--}}return U};c.Qp.a0q=function(L,C,U,E,Y){var z=0;
while(C!=U){z=c.Qp.by(E,Y,C,U);if(L<z)U=z-1;else C=z}return E[L*24+Y]};c.Qp.hL=function(L,C,U,E){for(var H=0;
H<E;H++)C[U+H]=L[H]};c.Qp.ajO=function(L,C,U,E,Y,z,r,p,T){var k=(E-3)*Y+(U-3),P=k<<2;for(var b=0;b<8;
b++){if(C[k]+C[k+1]+C[k+2]+C[k+3]+C[k+4]+C[k+5]+C[k+6]+C[k+7]!=0||L[P+3]<200||L[P+7]<200||L[P+11]<200||L[P+15]<200||L[P+19]<200||L[P+23]<200||L[P+27]<200||L[P+31]<200)return 1;
var H=b<<3;r[H+0]=L[P+0];p[H+0]=L[P+1];T[H+0]=L[P+2];r[H+1]=L[P+4];p[H+1]=L[P+5];T[H+1]=L[P+6];r[H+2]=L[P+8];
p[H+2]=L[P+9];T[H+2]=L[P+10];r[H+3]=L[P+12];p[H+3]=L[P+13];T[H+3]=L[P+14];r[H+4]=L[P+16];p[H+4]=L[P+17];
T[H+4]=L[P+18];r[H+5]=L[P+20];p[H+5]=L[P+21];T[H+5]=L[P+22];r[H+6]=L[P+24];p[H+6]=L[P+25];T[H+6]=L[P+26];
r[H+7]=L[P+28];p[H+7]=L[P+29];T[H+7]=L[P+30];P+=Y<<2;k+=Y}return 0};c.Qp.s0=function(L,C){C[0]=L[32]+L[0];
C[1]=L[33]+L[1];C[2]=L[34]+L[2];C[3]=L[35]+L[3];C[4]=L[36]+L[4];C[5]=L[37]+L[5];C[6]=L[38]+L[6];C[7]=L[39]+L[7];
C[8]=L[40]+L[8];C[9]=L[41]+L[9];C[10]=L[42]+L[10];C[11]=L[43]+L[11];C[12]=L[44]+L[12];C[13]=L[45]+L[13];
C[14]=L[46]+L[14];C[15]=L[47]+L[15];C[16]=L[48]+L[16];C[17]=L[49]+L[17];C[18]=L[50]+L[18];C[19]=L[51]+L[19];
C[20]=L[52]+L[20];C[21]=L[53]+L[21];C[22]=L[54]+L[22];C[23]=L[55]+L[23];C[24]=L[56]+L[24];C[25]=L[57]+L[25];
C[26]=L[58]+L[26];C[27]=L[59]+L[27];C[28]=L[60]+L[28];C[29]=L[61]+L[29];C[30]=L[62]+L[30];C[31]=L[63]+L[31];
C[32]=L[0]-L[32];C[33]=L[1]-L[33];C[34]=L[2]-L[34];C[35]=L[3]-L[35];C[36]=L[4]-L[36];C[37]=L[5]-L[37];
C[38]=L[6]-L[38];C[39]=L[7]-L[39];C[40]=L[8]-L[40];C[41]=L[9]-L[41];C[42]=L[10]-L[42];C[43]=L[11]-L[43];
C[44]=L[12]-L[44];C[45]=L[13]-L[45];C[46]=L[14]-L[46];C[47]=L[15]-L[47];C[48]=L[16]-L[48];C[49]=L[17]-L[49];
C[50]=L[18]-L[50];C[51]=L[19]-L[51];C[52]=L[20]-L[52];C[53]=L[21]-L[53];C[54]=L[22]-L[54];C[55]=L[23]-L[55];
C[56]=L[24]-L[56];C[57]=L[25]-L[57];C[58]=L[26]-L[58];C[59]=L[27]-L[59];C[60]=L[28]-L[60];C[61]=L[29]-L[61];
C[62]=L[30]-L[62];C[63]=L[31]-L[63];L[0]=C[16]+C[0];L[1]=C[17]+C[1];L[2]=C[18]+C[2];L[3]=C[19]+C[3];
L[4]=C[20]+C[4];L[5]=C[21]+C[5];L[6]=C[22]+C[6];L[7]=C[23]+C[7];L[8]=C[24]+C[8];L[9]=C[25]+C[9];L[10]=C[26]+C[10];
L[11]=C[27]+C[11];L[12]=C[28]+C[12];L[13]=C[29]+C[13];L[14]=C[30]+C[14];L[15]=C[31]+C[15];L[16]=C[0]-C[16];
L[17]=C[1]-C[17];L[18]=C[2]-C[18];L[19]=C[3]-C[19];L[20]=C[4]-C[20];L[21]=C[5]-C[21];L[22]=C[6]-C[22];
L[23]=C[7]-C[23];L[24]=C[8]-C[24];L[25]=C[9]-C[25];L[26]=C[10]-C[26];L[27]=C[11]-C[27];L[28]=C[12]-C[28];
L[29]=C[13]-C[29];L[30]=C[14]-C[30];L[31]=C[15]-C[31];C[0]=L[8]+L[0];C[1]=L[9]+L[1];C[2]=L[10]+L[2];
C[3]=L[11]+L[3];C[4]=L[12]+L[4];C[5]=L[13]+L[5];C[6]=L[14]+L[6];C[7]=L[15]+L[7];C[8]=L[0]-L[8];C[9]=L[1]-L[9];
C[10]=L[2]-L[10];C[11]=L[3]-L[11];C[12]=L[4]-L[12];C[13]=L[5]-L[13];C[14]=L[6]-L[14];C[15]=L[7]-L[15];
L[0]=C[4]+C[0];L[1]=C[5]+C[1];L[2]=C[6]+C[2];L[3]=C[7]+C[3];L[4]=C[0]-C[4];L[5]=C[1]-C[5];L[6]=C[2]-C[6];
L[7]=C[3]-C[7];L[8]=C[12]+C[8];L[9]=C[13]+C[9];L[10]=C[14]+C[10];L[11]=C[15]+C[11];L[12]=C[8]-C[12];
L[13]=C[9]-C[13];L[14]=C[10]-C[14];L[15]=C[11]-C[15];C[0]=L[2]+L[0];C[1]=L[3]+L[1];C[2]=L[0]-L[2];C[3]=L[1]-L[3];
C[4]=L[6]+L[4];C[5]=L[7]+L[5];C[6]=L[4]-L[6];C[7]=L[5]-L[7];C[8]=L[10]+L[8];C[9]=L[11]+L[9];C[10]=L[8]-L[10];
C[11]=L[9]-L[11];C[12]=L[14]+L[12];C[13]=L[15]+L[13];C[14]=L[12]-L[14];C[15]=L[13]-L[15];L[0]=C[1]+C[0];
L[1]=C[0]-C[1];L[2]=C[3]+C[2];L[3]=C[2]-C[3];L[4]=C[5]+C[4];L[5]=C[4]-C[5];L[6]=C[7]+C[6];L[7]=C[6]-C[7];
L[8]=C[9]+C[8];L[9]=C[8]-C[9];L[10]=C[11]+C[10];L[11]=C[10]-C[11];L[12]=C[13]+C[12];L[13]=C[12]-C[13];
L[14]=C[15]+C[14];L[15]=C[14]-C[15]};c.Qp.a6h=function(){var L="",u=64,C="v",U="t",E="a",Y=5,H,z,r;for(H=u>>1;
H>0;H>>=1,Y--){for(z=0;z<u;z++){r=(z>>Y&1)!=0;if(r){L+=U+"["+z+"] = "+C+"["+(-H+z)+"] - "+C+"["+z+"];  "}else{L+=U+"["+z+"] = "+C+"["+(H+z)+"] + "+C+"["+z+"];  "}}E=C;
C=U;U=E;L+="\n"}console.log(L)};c.Qp.anA=function(u,L,C){var U=L,E=C,Y=U,z=0,H,p,T;while(u>>z!=2)z++;
var r=z;for(H=u>>1;H>0;H>>=1,z--){for(p=0;p<u;p++){T=(p>>z&1)!=0;if(T)E[p]=U[-H+p]-U[p];else E[p]=U[H+p]+U[p]}Y=U;
U=E;E=Y}if((r&1)==1)for(H=0;H<u;H++)C[H]=U[H]};c.Ki={};c.Ki.wR=function(L,C,U,E,Y,z,r,p,T){var k=Date.now(),P=new Uint32Array(L.buffer),b=new Uint32Array(C.buffer),Q=r/U,K=p/E,h=1/Q,x=1/K,O=new Float64Array(2),y=3,v=1/y,i=1/(y*y),D=0,I=0,m=U,f=E;
if(Y){D=Y.x;I=Y.y;m=Y.d;f=Y.v}for(var A=0;A<f;A++)for(var d=0;d<m;d++){var g=D+d,X=I+A,H=X*U+g,n=H<<1,R=H<<2;
c.Ki.a88(z,r,p,(g+.5)*Q,(X+.5)*K,O);var l=O[0]*h,w=O[1]*x;if(l==0&&w==0)b[H]=P[H];else{c.I.kA(g+l+.5,X+w+.5,P,U,E,b,H,T)}}};
c.Ki.a88=function(L,C,U,E,Y,z){E-=.499999;Y-=.499999;var r=~~E,p=~~Y,T=E-r,k=Y-p,P=(1-k)*(1-T),b=(1-k)*T,Q=k*(1-T),K=k*T,h=r<C-1?r+1:r,x=p<U-1?p+1:p,O=p*C+r<<1,y=p*C+h<<1,v=x*C+r<<1,i=x*C+h<<1;
z[0]=P*L[O]+b*L[y]+Q*L[v]+K*L[i];z[1]=P*L[O+1]+b*L[y+1]+Q*L[v+1]+K*L[i+1]};c.Ki.ani=function(L,C,U,E,Y){var z=1/L,r=[-1,1,-L,L],p=E.length;
for(var T=0;T<p;T++){var H=E[T],k=H<<1,P=T<<1,b=~~(H*z),Q=H-L*b,K=U[k],h=U[k+1],x=0,O=0;if(Q!=0&&Q!=L-1){var y=H-1<<1,v=H+1<<1,i=U[y],D=U[v],I=U[y+1],m=U[v+1],f=K-(i+D)*.5,A=h-(I+m)*.5;
x-=f*Y;O-=A*Y}if(b!=0&&b!=C-1){var y=H-L<<1,v=H+L<<1,i=U[y],D=U[v],I=U[y+1],m=U[v+1],f=K-(i+D)*.5,A=h-(I+m)*.5;
x-=f*Y;O-=A*Y}U[k]=K+x;U[k+1]=h+O}};c.Ki.aeE=function(L,C){var U=L+","+C;if(c.Ki.CO==U)return c.Ki.o1;
var E=c.Ki.o1=[];c.Ki.CO=U;for(var H=0;H<=1e3;H++){var Y=H*.001,z=Math.sqrt(Y),r=Math.exp(-4*z),p=.96*(1-z*z),T=C*((1-L)*r+L*p);
E[H]=T}return E};c.Ki.CO="";c.Ki.o1=[];c.Ki.abb=function(L,C,U,E,Y,z,r,p,T,k,P,b,Q){var K=Math.max(0,Math.floor(Y-r-1)),h=Math.min(C,Math.ceil(Y+r+1)),x=Math.max(0,Math.floor(z-r-1)),O=Math.min(U,Math.ceil(z+r+1)),y=2*C,v=r*r,i=1/r,D=0;
if(Q&&(E==3||E==6))T=-T;var I=c.Ki.aeE(p,T);for(var m=x;m<O;m++)for(var f=K;f<h;f++){var H=m*C+f,A=H<<1,d=(Y-f)*i,g=(z-m)*i,X=d*d+g*g;
if(X<1){b[D]=H;var n=I[~~(X*1e3)];if(E==1){L[A]=L[A]*(1-n*.05);L[A+1]=L[A+1]*(1-n*.05)}else{var R=0,l=0,F,Z,M,a;
if(E==0){R=k*n;l=P*n}else if(E==2){}else if(E==3){R=n*g;l=-n*d}else if(E==4){R=n*d;l=n*g}else if(E==5){R=-n*d;
l=-n*g}else if(E==6){R=P*n;l=-k*n}var w=L[A],V=L[A+1];if(f==0||f!=C-1&&R<0){F=1+L[A+2]-w;M=L[A+3]-V}else{F=w-L[A-2]+1;
M=V-L[A-1]}if(m==0||m!=U-1&&l<0){Z=L[A+y]-w;a=1+L[A+y+1]-V}else{Z=w-L[A-y];a=V-L[A-y+1]+1}L[A]=-(F*R+Z*l-w);
L[A+1]=-(M*R+a*l-V)}D++}}};c.Ki.agC=function(L){var C=L[0],U=L[0],E=L[1],Y=L[1];for(var H=0;H<L.length;
H+=2){var z=L[H],r=L[H+1];if(z<C)C=z;else if(z>U)U=z;if(r<E)E=r;else if(r>Y)Y=r}return[C,E,U,Y]};c.a5J=function(L,C,U,E,Y){function z(S,fs,bz,g6){return Math.sqrt((S-bz)*(S-bz)+(fs-g6)*(fs-g6))}function r(S,fs){return S>=0&&S<C&&fs>=0&&fs<U}function p(S){if(S<0)return 0;
if(S>=C)return C-1;return S}function T(S){if(S<0)return 0;if(S>=U)return U-1;return S}function k(H,S){var fs=S[3]*(1/255),bz=E[H]+S[0]*fs;
if(bz>255)bz=255;E[H]=bz;bz=E[H+1]+S[1]*fs;if(bz>255)bz=255;E[H+1]=bz;bz=E[H+2]+S[2]*fs;if(bz>255)bz=255;
E[H+2]=bz}function P(S,fs,bz){if(!e(S,fs))return;if(bz[3]<0)bz[3]=0;k((fs*C+S)*4,bz)}function b(S){var fs=S.slice(0,3);
fs[3]=0;return fs}var Q=C/800;function K(S){return Math.round(S*Q)}function h(){for(var H=0;H<=300;H++){J[H]=x(H)}}function x(U){var S=.8,fs=.2,bz=S*fs,g6=U/60%2-1,al=bz*(1-g6*g6),bj=fs-bz,bE;
if(U<60){bE=[bz+bj,al,0]}else if(U<120){bE=[al,bz,0]}else if(U<180){bE=[0,bz,al]}else if(U<240){bE=[0,al,bz]}else if(U<300){bE=[al,0,bz]}else{bE=[bz,0,al]}return[(bE[0]+bj)*255,(bE[1]+bj)*255,(bE[2]+bj)*255]}function O(U){return J[~~U]}function y(S){return 1-v(S)}function v(S){return S-~~S}function i(S,fs,bz,g6){M(S,fs,bz,0,fs+1,1,g6)}function D(S,fs,bz,g6,al,bj){M(S,fs,bz,0,g6,1,al,bj)}function I(S){for(var H=0;
H<E.length;H+=4){k(H,S)}}function m(S,fs,bz,g6,al,bj,bE,eN){f(S,fs,bz,g6,al,1,bj,bE,eN)}function f(S,fs,bz,g6,al,bj,bE,eN,dk){if(bj==null)bj=.5;
if(bE==null)bE=0;if(eN==null)eN=0;if(dk==null)dk=!1;var hj=S.x,iN=S.y,dK=bz.slice(0),ch=~~(bz[3]*f5);
g6=g6*f5;if(!dk){fs=a(fs);al=a(al);bE=a(bE);eN=a(eN)}var hP=p(hj-fs),d2=p(hj+fs);for(var hr=hP;hr<=d2;
hr++){var fv=hr-hj,f3=Math.floor(Math.sqrt(fs*fs-fv*fv)),dp=T(iN-f3),go=T(iN);for(var d6=dp;d6<=go;d6++){var iB=z(hr,d6,hj,iN);
if(iB>fs||iB<=fs-al)break;var hS=(iB-fs+al)/al;dK[3]=ch-g6*(bj==1?hS:Math.pow(hS,bj));k((d6*C+hr)*4,dK)}dp=T(iN+f3);
for(var d6=dp;d6>go;d6--){var iB=z(hr,d6,hj,iN);if(iB>fs||iB<=fs-al)break;var hS=(iB-fs+al)/al;dK[3]=ch-g6*(bj==1?hS:Math.pow(hS,bj));
k((d6*C+hr)*4,dK)}}if(bE>0){M(S,fs+bE,dK,dK[3],bE,1,0,0,!0)}if(eN>0){M(S,fs-al,N(bz),-bz[3],eN,1,0,0,!0)}}function A(S,fs,bz,g6,al,bj){M(S,fs,bz,bz[3],fs+1,1,g6,al,bj)}function d(S,fs,bz,g6,al){if(al==null)al=!1;
var bj=S.x,bE=S.y;g6*=f5;if(!al){fs=a(fs);bz=a(bz)}var eN=p(bj-fs),dk=p(bj+fs);for(var hj=eN;hj<dk;hj++){var iN=hj-bj,dK=~~Math.sqrt(fs*fs-iN*iN),ch=T(bE-dK),hP=T(bE);
for(var d2=ch;d2<=hP;d2++){var hr=z(hj,d2,bj,bE);if(hr>fs||hr<=fs-bz)break;var fv=(fs-hr)/bz,f3=O(300*fv);
f3[3]=g6;k((d2*C+hj)*4,f3)}ch=T(bE+dK);for(var d2=ch;d2>hP;d2--){var hr=z(hj,d2,bj,bE);if(hr>fs||hr<=fs-bz)break;
var fv=(fs-hr)/bz,f3=O(300*fv);f3[3]=g6;k((d2*C+hj)*4,f3)}}}function g(s,S){var fs=s.UO,bz=s.D1,g6=S.slice(0),al=S[3]*f5,bj=Math.abs(bz.y-fs.y)>Math.abs(bz.x-fs.x);
if(bj){var bE=fs.x;fs.x=fs.y;fs.y=bE;bE=bz.x;bz.x=bz.y;bz.y=bE}if(fs.x>bz.x){var bE=fs;fs=bz;bz=bE}var eN=bz.x-fs.x,dk=bz.y-fs.y,hj=eN==0?1:dk/eN,iN=Math.round(fs.x),dK=fs.y+hj*(iN-fs.x),ch=y(fs.x+.5),hP=iN,d2=~~dK;
if(bj){g6[3]=al*y(dK)*ch;P(d2,hP,g6);g6[3]=al*v(dK)*ch;P(d2+1,hP,g6)}else{g6[3]=al*y(dK)*ch;P(hP,d2,g6);
g6[3]=al*v(dK)*ch;P(hP,d2+1,g6)}var hr=dK-hj;iN=Math.round(bz.x);dK=bz.y+hj*(iN-bz.x);ch=v(bz.x+.5);
var fv=iN,f3=~~dK;if(bj){g6[3]=al*y(dK)*ch;P(f3,fv,g6);g6[3]=al*v(dK)*ch;P(f3+1,fv,g6)}else{g6[3]=al*y(dK)*ch;
P(fv,f3,g6);g6[3]=al*v(dK)*ch;P(fv,f3+1,g6)}if(bj){for(var dp=hP+1;dp<=fv-1;dp++){g6[3]=al*y(hr);P(~~hr,dp,g6);
g6[3]=al*v(hr);P(~~hr+1,dp,g6);hr+=hj}}else{for(var dp=hP+1;dp<=fv-1;dp++){g6[3]=al*y(hr);P(dp,~~hr,g6);
g6[3]=al*v(hr);P(dp,~~hr+1,g6);hr+=hj}}}function X(S,fs,bz,g6){for(var H=0;H<4;H++){var al=S.nE(fs+1.3*H,bz);
g(al,g6,1)}}function hZ(S,fs){this.x=Math.round(S);this.y=Math.round(fs)}var n=Math.PI/180;hZ.prototype.nE=function(S,fs){S=S*n;
var bz=this.x+fs*Math.cos(S),g6=this.y+fs*Math.sin(S);return new R(this.x,this.y,bz,g6)};hZ.prototype.a5f=function(S,fs){S=S*n;
var bz=this.Ze+fs*Math.cos(S),g6=this.afE+fs*Math.sin(S);return new hZ(bz,g6)};function R(S,fs,bz,g6){this.UO=new hZ(S,fs);
this.D1=new hZ(bz,g6)}R.prototype.pE=function(S){var fs=S*this.UO.x+(1-S)*this.D1.x,bz=S*this.UO.y+(1-S)*this.D1.y;
return new hZ(fs,bz)};var l=m,w=A,V=i,F=D,Z=d,M=f,a=K,e=r,N=b,J=[];h();for(var H=0;H<L.length;H++){E[H]=L[H]}var s=new R(C*Y[2],U*Y[3],C/2,U/2),f5=Y[1],dx=[];
dx[0]=function fq(){var S=[80,40,15,60],bz=0,g6=0;V(s.pE(1.4),260,S,10);V(s.pE(1),100,[240,50,50,30],30);
w(s.pE(1),60,[255,40,0,40]);var fs=[255,255,255,255];M(s.pE(1),70,fs,fs[3],58,.5);V(s.pE(1),12,fs);fs[3]=40;
l(s.pE(1),150,fs,fs[3],150);for(var H=0;H<40;H++){bz+=Math.random()*25;g6=Math.random()*a(300)+a(100);
var al=s.pE(1).nE(bz,g6);g(s.pE(1).nE(bz,g6),[110,110,110,30])}w(s.pE(1),130,[255,255,255,8]);var bj=[170,30,23,70];
F(s.pE(1),70,bj,1,3,3);var bE=[60,60,130,40];V(s.pE(.47),44,bE,5);V(s.pE(.43),22,bE,3);bE[3]=16;V(s.pE(.53),15,bE,2);
var eN=[138,94,42,100];V(s.pE(.2),16,eN,2);var dk=[130,255,170,180];w(s.pE(0),4,dk);w(s.pE(-.25),5,dk);
eN=[150,90,0,50];l(s.pE(-.45),55,N(eN),-eN[3],40,2);V(s.pE(-.42),35,eN,2);V(s.pE(-.5),15,eN,2);Z(s.pE(-1.28),145,11,70);
var hj=O(0);hj[3]=50;l(s.pE(-1.28),149,hj,hj[3],4);hj=O(300);hj[3]=50;l(s.pE(-1.28),155-1,N(hj),-hj[3],3);
var iN=[130,130,10,50];F(s.pE(-1),73,iN,3,2);var dK=[40,130,70,40];l(s.pE(-1),70,N(dK),-dK[3],35);dK=[40,170,60,50];
V(s.pE(-.7),25,dK,4);var dK=[70,110,50,60];l(s.pE(1.3),30,N(dK),-dK[3],11,3);bE=[0,50,210,80];w(s.pE(-.72),20,bE)};
dx[1]=function i9(){w(s.pE(1),150,[240,70,70,60]);V(s.pE(1),100,[200,60,60,40],30);var S=[255,255,255,255],fs=0,bz=0;
M(s.pE(1),75,S,S[3],63);V(s.pE(1),12,S);w(s.pE(1),270,[200,200,200,20],10);for(var H=0;H<10;H++){fs+=10+Math.random()*40;
bz=Math.random()*a(250)+a(80);var g6=s.pE(1).nE(fs,bz);g(g6,[110,110,110,35])}fs=5;bz=100;for(var H=0;
H<12;H++){fs+=30;X(s.pE(1),fs,bz,[90,90,90,40])}var al=[150,40,23,100];F(s.pE(1),70,al,1,3,3);var bj=[30,100,60,40];
w(s.pE(-.9),180,[255,255,255,20]);V(s.pE(-.9),140,bj,15);var bE=[170,80,25,15];F(s.pE(-.9),120,bE,1,4,4);
var eN=[110,240,190,200];w(s.pE(-.6),3,eN);eN[3]=100;w(s.pE(-.6),7,eN);var dk=[230,120,40,85];w(s.pE(-.73),9,dk);
var hj=[60,60,190,50];V(s.pE(.3),28,hj,6);hj[3]=25;V(s.pE(.34),20,hj,3)};dx[2]=function e8(){var S=[255,255,255,255],bz=0,g6=0;
V(s.pE(1),13,S);M(s.pE(1),150,S,S[3],137);var fs=[120,80,35,20];V(s.pE(1.4),260,fs,10);for(var H=0;H<40;
H++){bz+=5+Math.random()*30;g6=Math.random()*a(300);g(s.pE(1).nE(bz,g6),[110,110,110,20])}var al=[10,30,255,30];
V(s.pE(1),70,al,50);var bj=[15,90,170,15];V(s.pE(1.5),60,bj);var bE=[220,220,20,50];V(s.pE(-1.15),8,bE,2);
var S=[255,255,255,40];w(s.pE(-1.18),6,S);w(s.pE(-1.18),4,S);bE=[110,110,10,8];l(s.pE(-1.2),32,N(bE),-bE[3],20,3);
var eN=[5,0,16,255];for(var H=0;H<4;H++){V(s.pE(-1.36),10,eN,3)}var dk=[90,200,150,20],hj=dk.slice(0);
hj[3]*=2;V(s.pE(-1.32),7,hj,3);V(s.pE(-1.36),7,hj,3);V(s.pE(-1.4),7,hj,3);var S=[230,230,230,100];w(s.pE(-1.36),2,S);
S[3]=3;V(s.pE(-.55),10,S);bE=[120,100,10,18];V(s.pE(-.55),160,bE,8);V(s.pE(-.55),80,bE,4);dk[3]=3;hj[3]=6;
l(s.pE(-.49),13,N(hj),-hj[3],13,2);l(s.pE(-.55),13,N(hj),-hj[3],13,2);dk[3]=20;V(s.pE(.15),25,dk,3);
bE[3]=100;w(s.pE(-.52),3,bE);bE=[200,200,50,40];V(s.pE(.27),1,bE,4);var iN=[150,40,23,30];l(s.pE(1),80,N(iN),-iN[3],2,1)};
return dx[Y[0]]()};c.W1={};c.W1.t$=function(L){var C=L.length,u=L[0].length,U=new Array(u);for(var H=0;
H<u;H++)U[H]=new Array(C);for(var H=0;H<u;H++)for(var E=0;E<C;E++)U[H][E]=L[E][H];return U};c.W1.AE=function(L,C){var U=L.length,u=L[0].length,E=new Array(U);
for(var H=0;H<U;H++)E[H]=new Array(u);for(var H=0;H<U;H++)for(var Y=0;Y<u;Y++)E[H][Y]=L[H][Y]-C[H][Y];
return E};c.W1.add=function(L,C){var U=L.length,u=L[0].length,E=new Array(U);for(var H=0;H<U;H++)E[H]=new Array(u);
for(var H=0;H<U;H++)for(var Y=0;Y<u;Y++)E[H][Y]=L[H][Y]+C[H][Y];return E};c.W1.multiply=function(L,C){var U=L.length,E=L[0].length,u=C[0].length;
if(E!=C.length)throw"e";var Y=new Array(U);for(var H=0;H<U;H++)Y[H]=new Array(u);if((E&1)!=0)for(var H=0;
H<U;H++){var z=L[H],r=Y[H];for(var p=0;p<u;p++){var T=0;for(var k=0;k<E;k++)T+=z[k]*C[k][p];r[p]=T}}else for(var H=0;
H<U;H++){var z=L[H],r=Y[H];for(var p=0;p<u;p++){var T=0;for(var k=0;k<E;k+=2)T+=z[k]*C[k][p]+z[k+1]*C[k+1][p];
r[p]=T}}return Y};c.W1.P9=function(L,C){var U=L.length,u=L[0].length,E=new Array(U);for(var H=0;H<U;
H++){var Y=0;for(var z=0;z<u;z++)Y+=L[H][z]*C[z];E[H]=Y}return E};c.W1._K=function(L,C){var U=[];for(var H=0;
H<L;H++){U.push([]);for(var E=0;E<C;E++)U[H].push(0)}return U};c.W1.a12=function(L){for(var H=0;H<L.length;
H++)console.log(JSON.stringify(L[H]))};c.W1.afF=function(L){var C=[];for(var H=0;H<L.length;H++)C.push(L[H].join(","));
return"["+C.join(";")+"]"};c.W1.wi=function(L,C){var U=L.length;for(var E=0;E<U;E++){var Y=0,z=Number.NEGATIVE_INFINITY;
for(var H=E;H<U;H++)if(Math.abs(L[H][E])>z){Y=H;z=Math.abs(L[H][E])}c.W1.ajk(L,E,Y);for(var H=E+1;H<U;
H++){if(L[E][E]==0)return 1;var r=L[H][E]/L[E][E];for(var p=E;p<U+1;p++)L[H][p]-=L[E][p]*r}}for(var H=U-1;
H>=0;H--){if(L[H][H]==0)return 1;var T=L[H][U]/L[H][H];C[H]=T;for(var p=H-1;p>=0;p--){L[p][U]-=L[p][H]*T;
L[p][H]=0}}return 0};c.W1.ajk=function(L,C,U){var E=L[C];L[C]=L[U];L[U]=E};c.W1.a0P=function(L){var C=L.length,U=c.W1._K(C,C);
for(var H=0;H<C;H++)U[H][H]=L[H];return U};c.W1.a3U=function(L){var C=L.length,U=L[0].length,E=new Array(C);
for(var H=0;H<C;H++){E[H]=0;for(var Y=0;Y<U;Y++)E[H]+=L[H][Y];E[H]/=U}return E};c.W1.ds=function(L){var C=0;
for(var H=0;H<L.length;H++)C+=L[H]*L[H];return Math.sqrt(C)};c.hS={};c.hS.oE=function(L){var C=~~(L+.5);
return C<0?0:C>255?255:C};c.hS.transform=function(L,C,U){var E=c.hS.oE,Y=L.h.length;for(var H=0;H<Y;
H++){var z=L.h[H],r=L.P[H],p=L.O[H];C.h[H]=E(U[0]*z+U[1]*r+U[2]*p+U[3]*255);C.P[H]=E(U[4]*z+U[5]*r+U[6]*p+U[7]*255);
C.O[H]=E(U[8]*z+U[9]*r+U[10]*p+U[11]*255)}};c.hS.ld=function(L,C,U){var E=c.hS.oE,Y=L.length;for(var H=0;
H<Y;H+=4){var z=L[H],r=L[H+1],p=L[H+2];C[H]=E(U[0]*z+U[1]*r+U[2]*p+U[3]*255);C[H+1]=E(U[4]*z+U[5]*r+U[6]*p+U[7]*255);
C[H+2]=E(U[8]*z+U[9]*r+U[10]*p+U[11]*255)}};c.hS._3=function(L){var C=L[0]+L[1]+L[2],U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1];
if(C==1){var E=L.indexOf(1);U[E]=U[E+4]=U[E+8]=1}else{U[0]=L[0];U[5]=L[1];U[10]=L[2]}return U};c.hS.dF=function(L,C,U){return[1,0,0,L,0,1,0,C,0,0,1,U,0,0,0,1]};
c.hS.dS=function(L,C,U){return[L,0,0,0,0,C,0,0,0,0,U,0,0,0,0,1]};c.hS.ads=function(L){return[L[0],L[1],L[2],L[4],L[5],L[6],L[8],L[9],L[10]]};
c.hS.in=function(L){return[L[0],L[1],L[2],0,L[3],L[4],L[5],0,L[6],L[7],L[8],0,0,0,0,1]};c.hS.IY=function(L,C){return[L[0]*C[0]+L[1]*C[1]+L[2]*C[2]+L[3]*C[3],L[4]*C[0]+L[5]*C[1]+L[6]*C[2]+L[7]*C[3],L[8]*C[0]+L[9]*C[1]+L[10]*C[2]+L[11]*C[3],L[12]*C[0]+L[13]*C[1]+L[14]*C[2]+L[15]*C[3]]};
c.hS.t$=function(L){var C=[];C[0]=L[0];C[1]=L[4];C[2]=L[8];C[3]=L[12];C[4]=L[1];C[5]=L[5];C[6]=L[9];
C[7]=L[13];C[8]=L[2];C[9]=L[6];C[10]=L[10];C[11]=L[14];C[12]=L[3];C[13]=L[7];C[14]=L[11];C[15]=L[15];
return C};c.hS.multiply=function(L,C){var U=[];U[0]=L[0]*C[0]+L[1]*C[4]+L[2]*C[8]+L[3]*C[12];U[1]=L[0]*C[1]+L[1]*C[5]+L[2]*C[9]+L[3]*C[13];
U[2]=L[0]*C[2]+L[1]*C[6]+L[2]*C[10]+L[3]*C[14];U[3]=L[0]*C[3]+L[1]*C[7]+L[2]*C[11]+L[3]*C[15];U[4]=L[4]*C[0]+L[5]*C[4]+L[6]*C[8]+L[7]*C[12];
U[5]=L[4]*C[1]+L[5]*C[5]+L[6]*C[9]+L[7]*C[13];U[6]=L[4]*C[2]+L[5]*C[6]+L[6]*C[10]+L[7]*C[14];U[7]=L[4]*C[3]+L[5]*C[7]+L[6]*C[11]+L[7]*C[15];
U[8]=L[8]*C[0]+L[9]*C[4]+L[10]*C[8]+L[11]*C[12];U[9]=L[8]*C[1]+L[9]*C[5]+L[10]*C[9]+L[11]*C[13];U[10]=L[8]*C[2]+L[9]*C[6]+L[10]*C[10]+L[11]*C[14];
U[11]=L[8]*C[3]+L[9]*C[7]+L[10]*C[11]+L[11]*C[15];U[12]=L[12]*C[0]+L[13]*C[4]+L[14]*C[8]+L[15]*C[12];
U[13]=L[12]*C[1]+L[13]*C[5]+L[14]*C[9]+L[15]*C[13];U[14]=L[12]*C[2]+L[13]*C[6]+L[14]*C[10]+L[15]*C[14];
U[15]=L[12]*C[3]+L[13]*C[7]+L[14]*C[11]+L[15]*C[15];return U};c.hS.G$=function(L){var C=[];C[0]=L[5]*L[10]*L[15]-L[5]*L[14]*L[11]-L[6]*L[9]*L[15]+L[6]*L[13]*L[11]+L[7]*L[9]*L[14]-L[7]*L[13]*L[10];
C[1]=-L[1]*L[10]*L[15]+L[1]*L[14]*L[11]+L[2]*L[9]*L[15]-L[2]*L[13]*L[11]-L[3]*L[9]*L[14]+L[3]*L[13]*L[10];
C[2]=L[1]*L[6]*L[15]-L[1]*L[14]*L[7]-L[2]*L[5]*L[15]+L[2]*L[13]*L[7]+L[3]*L[5]*L[14]-L[3]*L[13]*L[6];
C[3]=-L[1]*L[6]*L[11]+L[1]*L[10]*L[7]+L[2]*L[5]*L[11]-L[2]*L[9]*L[7]-L[3]*L[5]*L[10]+L[3]*L[9]*L[6];
C[4]=-L[4]*L[10]*L[15]+L[4]*L[14]*L[11]+L[6]*L[8]*L[15]-L[6]*L[12]*L[11]-L[7]*L[8]*L[14]+L[7]*L[12]*L[10];
C[5]=L[0]*L[10]*L[15]-L[0]*L[14]*L[11]-L[2]*L[8]*L[15]+L[2]*L[12]*L[11]+L[3]*L[8]*L[14]-L[3]*L[12]*L[10];
C[6]=-L[0]*L[6]*L[15]+L[0]*L[14]*L[7]+L[2]*L[4]*L[15]-L[2]*L[12]*L[7]-L[3]*L[4]*L[14]+L[3]*L[12]*L[6];
C[7]=L[0]*L[6]*L[11]-L[0]*L[10]*L[7]-L[2]*L[4]*L[11]+L[2]*L[8]*L[7]+L[3]*L[4]*L[10]-L[3]*L[8]*L[6];C[8]=L[4]*L[9]*L[15]-L[4]*L[13]*L[11]-L[5]*L[8]*L[15]+L[5]*L[12]*L[11]+L[7]*L[8]*L[13]-L[7]*L[12]*L[9];
C[9]=-L[0]*L[9]*L[15]+L[0]*L[13]*L[11]+L[1]*L[8]*L[15]-L[1]*L[12]*L[11]-L[3]*L[8]*L[13]+L[3]*L[12]*L[9];
C[10]=L[0]*L[5]*L[15]-L[0]*L[13]*L[7]-L[1]*L[4]*L[15]+L[1]*L[12]*L[7]+L[3]*L[4]*L[13]-L[3]*L[12]*L[5];
C[11]=-L[0]*L[5]*L[11]+L[0]*L[9]*L[7]+L[1]*L[4]*L[11]-L[1]*L[8]*L[7]-L[3]*L[4]*L[9]+L[3]*L[8]*L[5];C[12]=-L[4]*L[9]*L[14]+L[4]*L[13]*L[10]+L[5]*L[8]*L[14]-L[5]*L[12]*L[10]-L[6]*L[8]*L[13]+L[6]*L[12]*L[9];
C[13]=L[0]*L[9]*L[14]-L[0]*L[13]*L[10]-L[1]*L[8]*L[14]+L[1]*L[12]*L[10]+L[2]*L[8]*L[13]-L[2]*L[12]*L[9];
C[14]=-L[0]*L[5]*L[14]+L[0]*L[13]*L[6]+L[1]*L[4]*L[14]-L[1]*L[12]*L[6]-L[2]*L[4]*L[13]+L[2]*L[12]*L[5];
C[15]=L[0]*L[5]*L[10]-L[0]*L[9]*L[6]-L[1]*L[4]*L[10]+L[1]*L[8]*L[6]+L[2]*L[4]*L[9]-L[2]*L[8]*L[5];var U=L[0]*C[0]+L[1]*C[4]+L[2]*C[8]+L[3]*C[12];
for(var H=0;H<16;H++)C[H]/=U;return C};c.hS.adU=function(L){var C=[],U=L[5]*L[10]*L[15]-L[5]*L[14]*L[11]-L[6]*L[9]*L[15]+L[6]*L[13]*L[11]+L[7]*L[9]*L[14]-L[7]*L[13]*L[10],E=-L[4]*L[10]*L[15]+L[4]*L[14]*L[11]+L[6]*L[8]*L[15]-L[6]*L[12]*L[11]-L[7]*L[8]*L[14]+L[7]*L[12]*L[10],Y=L[4]*L[9]*L[15]-L[4]*L[13]*L[11]-L[5]*L[8]*L[15]+L[5]*L[12]*L[11]+L[7]*L[8]*L[13]-L[7]*L[12]*L[9],z=-L[4]*L[9]*L[14]+L[4]*L[13]*L[10]+L[5]*L[8]*L[14]-L[5]*L[12]*L[10]-L[6]*L[8]*L[13]+L[6]*L[12]*L[9];
return L[0]*U+L[1]*E+L[2]*Y+L[3]*z};c.hS.Bq=c.hS.in([3.1338561,-1.6168667,-.4906146,-.9787684,1.9161415,.033454,.0719453,-.2289914,1.4052427]);
c.hS.ahX=c.hS.in([1.9624274,-.6105343,-.3413404,-.9787684,1.9161415,.033454,.0286869,-.1406752,1.3487655]);
c.hS.ahW=c.hS.G$(c.hS.Bq);c._i={};c._i.xA=new Uint32Array(1);c._i.AC=function(L,C,U,E,Y,z){var r=new Uint32Array(L),p=0,T=c._i.xA;
if(T.length<C*4)c._i.xA=T=new Uint32Array(C*4);var k=new Float64Array(T.buffer);for(var H=0;H<C;H+=2){var P=Y[H],b=Y[H+1],Q=z[H],K=z[H+1];
T[p]=b;k[p+2>>1]=Q;T[p+1]=r[P];r[P]=p+1;p+=4;T[p]=P;k[p+2>>1]=K;T[p+1]=r[b];r[b]=p+1;p+=4}return{sa:T,aad:k,afB:r}};
c._i.wi=function(L,C,U,E,Y,z,r){var p=1,T=c._i.AC(L,C,U,E,Y,z),k=T.sa,P=T.aad,b=T.afB,Q=new Uint32Array(L),K=new c._i.B1(L),x=1,D=0;
K.push(U);K.push(E);var h=new c._i.B1(L),O=new Uint8Array(L),y=new Uint32Array(L);O[U]=1;O[E]=2;var v=new Uint32Array(L),i=new Uint32Array(L);
i[U]=i[E]=0;v[U]=v[E]=1;while(!0){var I=-1,n=0,V=1e30;while(!K.CQ()&&I==-1){var m=K.top(),f=O[m],A=b[m]-1;
while(A!=-1){var d=k[A],g=O[d],X=A^f-1<<2;if(P[X+2>>1]!=0){if(g==0){c._i.ry(m,A,d,O,y,i,v);K.push(d)}else if(g==f&&v[d]<=v[m]&&i[d]>i[m])c._i.ry(m,A,d,O,y,i,v);
else if(g!=f){I=X}}A=k[A+1]-1}if(I!=-1)break;K.pop()}if(I==-1){break}x++;var R=I;while(R!=-1){Q[n]=R;
n++;R=y[k[R^4]]-1}var l=n>>1;for(var H=0;H<l;H++){var w=Q[H];Q[H]=Q[n-H-1];Q[n-H-1]=w}R=y[k[I]]-1;while(R!=-1){Q[n]=R^4;
n++;R=y[k[R^4]]-1}for(var H=0;H<n;H++)V=Math.min(V,P[Q[H]+2>>1]);D+=V;if(D>=r)return{J_:null,bR:D};for(var H=0;
H<n;H++){var F=Q[H],Z=F^4,m=k[Z],d=k[F];P[F+2>>1]-=V;P[Z+2>>1]+=V;if(P[F+2>>1]==0&&O[m]==O[d]){if(O[m]==1){y[d]=0;
h.push(d)}if(O[m]==2){y[m]=0;h.push(m)}}}while(!h.CQ()){var m=h.pop(),f=O[m],A=b[m]-1,M=f==1?4:0,a=0,e=0,N=1e9;
while(A!=-1){var d=k[A],J=A^4,X=A^M;if(O[d]==f&&P[X+2>>1]>0&&c._i.a7Q(d,U,E,y,k,x,v,i)+1<N){a=d;e=J;
N=i[d]+1}A=k[A+1]-1}if(e!=0){c._i.ry(a,e,m,O,y,i,v);continue}A=b[m]-1;while(A!=-1){var d=k[A],X=A^M;
if(O[d]==f){if(P[X+2>>1]>0){K.push(d)}if(y[d]==A+1){y[d]=0;h.push(d)}}A=k[A+1]-1}O[m]=0;K.remove(m)}}var s=[];
for(var H=0;H<C;H+=2){var m=Y[H],d=Y[H+1];if(O[m]==1&&O[d]!=1){s.push(H>>1)}if(O[d]==1&&O[m]!=1){s.push(C+H>>1)}}return{J_:s,bR:D}};
c._i.ry=function(L,C,U,E,Y,z,r){E[U]=E[L];Y[U]=C+1;z[U]=z[L]+1;r[U]=r[L]};c._i.a7Q=function(L,C,U,E,Y,z,r,p){var T=L,k=E[L]-1,P=0;
while(k!=-1&&r[L]!=z){L=Y[k^4];k=E[L]-1;P++}if(k==-1&&L!=C&&L!=U)return 1e9;var b=p[L]+P;P=0;k=E[T]-1;
while(T!=L){p[T]=b-P;P++;r[T]=z;T=Y[k^4];k=E[T]-1}return b};c._i.ahw=function(L,C,U,E,Y,z){var r=c._i.AC(L,C,U,E,Y,z),p=r.sa,T=r.aad,k=r.afB,P=0,b=0,Q=new Uint32Array(L*2),K=new c._i.Th(L),h=0;
while(!0){K.reset();K.push(U);for(var H=0;H<L;H++)Q[H<<1]=0;while(!K.CQ()){var x=K.pop(),O=k[x]-1;while(O!=-1){h=p[O];
if(Q[h<<1]==0&&T[O+2>>1]>0&&h!=U){Q[h<<1]=x+1;Q[(h<<1)+1]=O;K.push(h)}O=p[O+1]-1}if(Q[E<<1]!=0){break}}if(Q[E<<1]==0){break}var y=1e30;
h=E;while(!0){var v=Q[h<<1]-1;if(v==-1)break;var i=Q[(h<<1)+1];y=Math.min(y,T[i+2>>1]);h=v}h=E;while(!0){var v=Q[h<<1]-1;
if(v==-1)break;var i=Q[(h<<1)+1],D=i^4;T[i+2>>1]-=y;T[D+2>>1]+=y;h=v}P+=y}var I=[];for(var H=0;H<C;H+=2){var v=Y[H],h=Y[H+1];
if((Q[v<<1]!=0||v==U)&&Q[h<<1]==0&&h!=U){I.push(H>>1)}if((Q[h<<1]!=0||h==U)&&Q[v<<1]==0&&v!=U){I.push(C+H>>1)}}return{J_:I,bR:P}};
c._i.Th=function(L){L|=L>>1;L|=L>>2;L|=L>>4;L|=L>>8;L|=L>>16;this.hG=new Uint32Array(L+1);this.ax=L;
this.ZL=0;this.T5=0};c._i.Th.prototype={push:function(L){var C=this.T5;this.hG[C]=L;this.T5=C+1&this.ax},pop:function(){var L=this.ZL,C=this.hG[L];
this.ZL=L+1&this.ax;return C},CQ:function(){return this.ZL==this.T5},reset:function(){this.ZL=0;this.T5=0}};
c._i.B1=function(L){L|=L>>1;L|=L>>2;L|=L>>4;L|=L>>8;L|=L>>16;this.hG=new Uint32Array(L+1);this.if=new Uint32Array(L+1);
this.ax=L;this.ZL=0;this.T5=0};c._i.B1.prototype={top:function(){return this.hG[this.ZL]},aha:function(){return this.hG[this.T5]},push:function(L){if(this.if[L]!=0)return;
this.if[L]=this.T5+1;var C=this.T5;this.hG[C]=L;this.T5=C+1&this.ax},pop:function(){var L=this.ZL,C=this.hG[L];
this.if[C]=0;this.ZL=L+1&this.ax;return C},CQ:function(){return this.ZL==this.T5},remove:function(L){var C=this.if[L]-1;
if(C==-1)return;this.if[L]=0;if(C==this.ZL){this.pop();return}var U=this.pop();this.hG[C]=U;this.if[U]=C+1},Od:function(H){return H+this.ax+1&this.ax}};
c._i.mj=function(L,C,U){var E=c._i.by(L,C,U);if(C<E-1)c._i.mj(L,C,E-1);if(E<U)c._i.mj(L,E,U)};c._i.by=function(L,C,U){var E=L[C+U>>>1];
while(C<=U){while(L[C]<E)C++;while(L[U]>E)U--;if(C<=U){c._i.C2(L,C,U);C++;U--}}return C};c._i.C2=function(L,C,U){var E=L[C];
L[C]=L[U];L[U]=E};c.zf={};c.zf.a75=function(L){for(var H=0;H<L.length;H++)c.zf.M9(L,H)};c.zf.M9=function(L,H){L[H].v.keyShapeInvalidated={t:"bool",v:!0}};
c.zf.a42=function(L){for(var H=0;H<L.length;H++)L[H].v.keyOriginIndex.v=H};c.zf.Zx=function(){return{t:"Objc",v:{classID:"null",keyOriginIndex:{t:"long",v:0},keyShapeInvalidated:{t:"bool",v:!0}}}};
c.zf.e8=function(L){L=L.v;var C={Rctn:2,Ln:4,Elps:5},U=C[L.classID],E=L.topLeft?c.zf.IK(L):null,Y=null,z=0;
if(U==4){var r=L.Strt.v,p=L.End.v;Y=[r.Hrzn.v.val,r.Vrtc.v.val,p.Hrzn.v.val,p.Vrtc.v.val];z=L.Wdth.v.val}if(U==null)return null;
return c.zf.V1(U,U==4?null:c.zf.Ux(L),E,Y,z)};c.zf.C7=function(L,C,U,E,Y,z){var r={classID:L,unitValueQuadVersion:{t:"long",v:1}};
if(C)c.zf._l(r,["Left","Top","Rght","Btom"],C);if(U)c.zf._l(r,["topLeft","topRight","bottomRight","bottomLeft"],U);
if(L=="Ln"){r.Strt={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:E[0]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:E[1]}}}},r.End={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:E[2]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:E[3]}}}},r.Wdth={t:"UntF",v:{type:"#Pxl",val:Y}}}if(z)r.Nm={t:"TEXT",v:z};
return{t:"Objc",v:r}};c.zf.V1=function(L,C,U,E,Y){var z=c.zf.Zx(),r=z.v;delete r.keyShapeInvalidated;
r.keyOriginType={t:"long",v:L};r.keyOriginResolution={t:"doub",v:75};if(L==4){r.keyOriginLineStart={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:E[0]},Vrtc:{t:"doub",v:E[1]}}};
r.keyOriginLineEnd={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:E[2]},Vrtc:{t:"doub",v:E[3]}}};C=[Math.min(E[0],E[2]),Math.min(E[1],E[3]),Math.max(E[0],E[2]),Math.max(E[1],E[3])];
r.keyOriginLineWeight={t:"doub",v:Y},r.keyOriginLineArrowSt={t:"bool",v:!1};r.keyOriginLineArrowEnd={t:"bool",v:!1};
r.keyOriginLineArrWdth={t:"doub",v:0};r.keyOriginLineArrLngth={t:"doub",v:0};r.keyOriginLineArrConc={t:"long",v:0}}var p={classID:"unitRect",unitValueQuadVersion:{t:"long",v:1}};
r.keyOriginShapeBBox={t:"Objc",v:p};c.zf.EL(r,C);if(U!=null){var T={classID:"radii",unitValueQuadVersion:{t:"long",v:1}};
r.keyOriginRRectRadii={t:"Objc",v:T};c.zf.ao(r,U)}return z};c.zf.J=function(L,C,U,E){var Y=c.I.DY(C),z=c.I.FS(C),r=Math.max(Math.abs(C[0]),Math.abs(C[1])),p=Math.max(Math.abs(C[3]),Math.abs(C[4]));
for(var H=0;H<L.length;H++){var T=L[H].v,k=T.keyShapeInvalidated;if(k&&k.v||T.keyOriginType==null)continue;
if(U.length!=0&&U.indexOf(H)==-1)continue;var P=T.keyOriginType.v;if(!Y||!z||E&&P==2&&Math.abs(1-r/p)>.01){c.zf.M9(L,H);
continue}var b=c.zf.le(T);c.I.apply(C,b);c.zf.EL(T,[Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3])]);
if(P==2){var Q=c.zf.GF(T),K=new c0(C[0],C[1],C[3],C[4],0,0);K.pL();if(K.R==0){Q.push(Q.shift());K.rotate(Math.PI/2);
K.pL()}if(K.R<0){var h=Q[0];Q[0]=Q[1];Q[1]=h;h=Q[2];Q[2]=Q[3];Q[3]=h}if(K.J2<0){var h=Q[0];Q[0]=Q[3];
Q[3]=h;h=Q[1];Q[1]=Q[2];Q[2]=h}if(E)for(var x=0;x<4;x++)Q[x]=Q[x]*r;c.zf.ao(T,Q)}if(P==4){T.keyOriginLineWeight.v*=r;
var O=c.zf.BX(T);c.I.apply(C,O);c.zf.am3(T,O)}}};c.zf.H7=function(L,C){var U=C.n;for(var H=0;H<L.length;
H++){var E=L[H].v,Y=E.keyShapeInvalidated,b;if(Y&&Y.v||E.keyOriginType==null)continue;var z=E.keyOriginType.v,r=c.zf.le(E),p=r[0],T=r[1],k=r[2],P=r[3];
if(z==1)b=c.Y.tD.Rect(p,T,k-p,P-T,0);else if(z==2){var Q=c.zf.GF(E);b=c.Y.tD.Rect(p,T,k-p,P-T,Q)}else if(z==4){var K=c.zf.BX(E);
b=c.Y.tD.pN(K[0],K[1],K[2],K[3],E.keyOriginLineWeight.v)}else if(z==5)b=c.Y.tD.vm(p,T,k-p,P-T);var h=c.Y.Jt(U,H),x=c.Y.Hb(U,H);
b[2].ZZ=U[h].ZZ;var O=U;U=U.slice(0,h);for(var y=2;y<b.length;y++)U.push(b[y]);for(var y=h+x;y<O.length;
y++)U.push(O[y])}C.n=U;C.st=!0};c.zf.O4=function(L){var C=1e9,U=-C,E=1e9,Y=-E,z=null,r=L.zG(),p=r[0],T=r[1];
for(var k=0;k<T.length;k++){var P=p[T[k]],b=P.add.vogk;if(b==null)continue;var Q=P.add.vmsk.C;for(var K=0;
K<b.length;K++){var h=b[K].v,x=h.keyShapeInvalidated;if(x&&x.v||h.keyOriginType==null)continue;if(T.length==1&&Q.length!=0&&Q.indexOf(K)==-1)continue;
var O=h.keyOriginType.v;if(O!=4){var y=c.zf.le(h);C=Math.min(C,y[0]);E=Math.min(E,y[1]);U=Math.max(U,y[2]);
Y=Math.max(Y,y[3])}if(O==2&&z==null){z=c.zf.GF(h)}}}return[C<U?[C,E,U,Y]:null,z]};c.zf.a3X=function(L,C,U){var E=c.zf.O4(L)[0],Y;
if(E){var z=new c0;z.translate(-E[0],-E[1]);z.scale(1/(E[2]-E[0]),1/(E[3]-E[1]));z.scale(C[2]-C[0],C[3]-C[1]);
z.translate(C[0],C[1]);Y=c.I.BL(z)}var r=L.zG(),p=r[0],T=r[1];for(var k=0;k<T.length;k++){var P=p[T[k]],b=P.add.vogk;
if(b==null)continue;var Q=P.add.vmsk.C;for(var K=0;K<b.length;K++){var h=b[K].v,x=h.keyShapeInvalidated;
if(x&&x.v||h.keyOriginType==null)continue;if(T.length==1&&Q.length!=0&&Q.indexOf(K)==-1)continue;var O=h.keyOriginType.v;
if(O!=4&&C[0]!=null){var C=c.zf.le(h);c.I.apply(Y,C);c.zf.EL(h,C)}if(O==2&&U!=null){c.zf.ao(h,U)}}}};
c.zf.le=function(L){return c.zf.Ux(L.keyOriginShapeBBox.v)};c.zf.Ux=function(L){var C=L.Left.v.val,U=L.Rght.v.val,E=L.Top.v.val,Y=L.Btom.v.val;
return[C,E,U,Y]};c.zf.EL=function(L,C){c.zf._l(L.keyOriginShapeBBox.v,["Left","Top","Rght","Btom"],C)};
c.zf.GF=function(L){return c.zf.IK(L.keyOriginRRectRadii.v)};c.zf.IK=function(L){var C=[],U=["topLeft","topRight","bottomRight","bottomLeft"];
for(var E=0;E<4;E++)C.push(L[U[E]].v.val);return C};c.zf.ao=function(L,C){c.zf._l(L.keyOriginRRectRadii.v,["topLeft","topRight","bottomRight","bottomLeft"],C)};
c.zf._l=function(L,C,U){for(var H=0;H<4;H++)if(U[H]!=null)L[C[H]]={t:"UntF",v:{type:"#Pxl",val:U[H]}}};
c.zf.BX=function(L){var C=L.keyOriginLineStart.v,U=L.keyOriginLineEnd.v;return[C.Hrzn.v,C.Vrtc.v,U.Hrzn.v,U.Vrtc.v]};
c.zf.am3=function(L,C){var U=L.keyOriginLineStart.v,E=L.keyOriginLineEnd.v;U.Hrzn.v=C[0];U.Vrtc.v=C[1];
E.Hrzn.v=C[2];E.Vrtc.v=C[3]};c.a={};c.a.clone=function(L){return{Z:L.Z.slice(0),c:L.c.slice(0)}};c.a.jL=function(L){if(L.length<6)return!0;
var C=L.length-4;for(var H=0;H<C;H+=2)if(!c.a.sv(L[H],L[H+1],L[H+2],L[H+3],L[H+4],L[H+5]))return!1;if(!c.a.sv(L[C],L[C+1],L[C+2],L[C+3],L[0],L[1]))return!1;
if(!c.a.sv(L[C+2],L[C+3],L[0],L[1],L[2],L[3]))return!1;return!0};c.a.sv=function(L,C,U,E,Y,z){return(C-E)*(Y-U)+(U-L)*(z-E)>=0};
c.a.xK=function(L){var C={},U=null,E=0,Y={M:2,L:2,Q:4,C:6};for(var H=0;H<L.Z.length;H++){var z=L.Z[H];
if(z.charAt(0)=="#"){if(C[z]==null)C[z]={c:[],Z:[]};U=C[z]}else if(z!="X"){U.Z.push(z);var r=Y[z];if(r==null)r=0;
for(var p=0;p<r;p++)U.c.push(L.c[E+p]);E+=r}}return C};c.a.n2=function(L,C){L=c.a.xF(L);var U=L.c,E=L.Z,Y=0,z=[],r=null;
for(var H=0;H<E.length;H++){var p=E[H];if(p=="M"){r={aiT:Y,a3:0,c8:!1};z.push(r);Y+=2}if(p=="C"){r.a3++;
Y+=6}if(p=="Z"){r.c8=!0}}var T=[];for(var H=0;H<z.length;H++)if(z[H].a3!=0)T.push(z[H]);z=T;for(var H=0;
H<z.length;H++){var k=z[H],P=k.aiT,b=P+2+k.a3*6,K=0;k.Ke=c.a.mE(U,P,b);var Q=U[P]==U[b-2]&&U[P+1]==U[b-1];
for(var h=0;h<k.a3;h++){var x=P+h*6,O=x+6;K+=(U[O]-U[x])*(U[O+1]+U[x+1])}if(k.a3==2){var y=function(s,f5,dx){var fq=1-dx;
return fq*fq*fq*s[f5]+3*fq*fq*dx*s[f5+2]+3*fq*dx*dx*s[f5+4]+dx*dx*dx*s[f5+6]},v=U[P],i=U[P+1],D=U[P+6],I=U[P+7],m=U[P+6],f=U[P+7],A=y(U,P,.5),d=y(U,P+1,.5),g=y(U,P+6,.5),X=y(U,P+7,.5);
K=(A-v)*(d-i)+(D-A)*(I-d)+(g-D)*(X-I)+(m-g)*(f-X)}if(!Q)K+=(U[P]-U[b-2])*(U[P+1]+U[b-1]);k.Hz=K<=0}for(var H=0;
H<z.length-1;H++)for(var x=H+1;x<z.length;x++){var n=z[H],R=z[x];if(R.Ke.zg(n.Ke)){z[H]=R;z[x]=n}}var l=z.length==0?!0:z[0].Hz,w=[{type:6},{type:8,all:0}];
for(var H=0;H<z.length;H++){var k=z[H],P=k.aiT,b=P+2+k.a3*6,Q=U[P]==U[b-2]&&U[P+1]==U[b-1],V=k.c8||Q?0:3,F=k.Hz==l&&!C?1:0;
if(!C&&H!=0){if(z[H-1].Ke.zg(k.Ke)&&z[H-1].Hz!=k.Hz)F=0;for(var x=0;x<z.length;x++)if(x!=H&&z[x].Ke.zg(k.Ke))F=0}w.push({type:V,length:k.a3+(Q?0:1),ZZ:F,A9:2});
for(var x=0;x<k.a3;x++){var Y=P+x*6,Z=new hZ(U[Y],U[Y+1]),M=new hZ(U[Y+2],U[Y+3]),a;if(x==0){if(Q)a=new hZ(U[b-4],U[b-3]);
else a=Z.clone()}else a=new hZ(U[Y-2],U[Y-1]);w.push({type:V+2,OT:a,D:Z,SC:M})}if(!Q){var e=new hZ(U[b-2],U[b-1]);
w.push({type:V+2,OT:new hZ(U[b-4],U[b-3]),D:e,SC:e.clone()})}}for(var x=0;x<w.length;x++){var N=w[x];
if(N.type>5||N.type==0||N.type==3)continue;var J=N.OT.cg(N.D)||N.SC.cg(N.SC);if(!J){var n=N.OT.x*(N.D.y-N.SC.y)+N.D.x*(N.SC.y-N.OT.y)+N.SC.x*(N.OT.y-N.D.y);
if(Math.abs(n)<1e-6)J=!0}if(J)N.type--}return w};c.a.$x=function(){function L(E,Y,z,r){if(!r&&E.SC.cg(E.D)&&Y.OT.cg(Y.D)){z.c.push(Y.D.x,Y.D.y);
z.Z.push("L")}else{z.c.push(E.SC.x,E.SC.y,Y.OT.x,Y.OT.y,Y.D.x,Y.D.y);z.Z.push("C")}}function C(E,Y,H,z,r,p){var T=Y[H];
E.c.push(T.D.x,T.D.y);E.Z.push("M");for(var k=H;k<H+z-1;k++)L(Y[k],Y[k+1],E,p);if(!r)L(Y[k],Y[H],E,p)}function U(E,Y){if(Y==null)Y=!1;
var z={c:[],Z:[]};for(var H=0;H<E.length;H++){if(E[H].type>5)continue;var r=E[H].length;if(r==0)continue;
if(H==E.length-1)break;var p=E[H].type==3;C(z,E,H+1,r,p,Y);if(!p)z.Z.push("Z");H+=r}return z}return U}();
c.a.aec=function(L){var C=L.c,U=[],E,Y=0;for(var H=0;H<L.Z.length;H++){var z=L.Z[H];if(z=="C"){E.push(C[Y++],C[Y++],C[Y++],C[Y++],C[Y++],C[Y++])}else if(z=="Z"){}else{E=[];
if(z!="M"){E.push(z);H++}E.push(C[Y++],C[Y++]);U.push(E)}}return U};c.a.Mv=function(L,C,U,E){if(E==null)E=1e9;
var Y=1e9,z=0;for(var H=0;H<L.length;H+=2){var r=C-L[H],p=U-L[H+1],T=r*r+p*p;if(T<Y){Y=T;z=H>>>1}}return Y<E*E?z:-1};
c.a.YK=function(L,C,U,E){for(var H=0;H<L.length;H+=2){var Y=L[H],z=L[H+1],r=C[H],p=C[H+1];U[H]=Y+(r-Y)*E;
U[H+1]=z+(p-z)*E}};c.a.J=function(L,C,U){for(var H=0;H<L.length;H+=2){var E=L[H],Y=L[H+1];U[H]=E*C.R+Y*C.Z9+C.Yt;
U[H+1]=E*C.O+Y*C.J2+C.rv}};c.a.mE=function(L,C,U){if(C==null)C=0;if(U==null)U=L.length;var E=99999999999,Y=-E,z=99999999999,r=-z;
for(var H=C;H<U;H+=2){var p=L[H],T=L[H+1];E=Math.min(E,p);z=Math.min(z,T);Y=Math.max(Y,p);r=Math.max(r,T)}return new _(E,z,Y-E,r-z)};
c.a.dV=function(L,C){var U=Math.max(C.x,Math.min(C.x+C.d,L.x)),E=Math.max(C.y,Math.min(C.y+C.v,L.y)),Y=L.x-U,z=L.y-E;
return Math.sqrt(Y*Y+z*z)};c.a.TT=function(L){if(L.ue())return new _(Math.floor(L.x),Math.floor(L.y),Math.ceil(L.d),Math.ceil(L.v));
var C=Math.floor(L.x),U=Math.ceil(L.x+L.d),E=Math.floor(L.y),Y=Math.ceil(L.y+L.v);return new _(C,E,U-C,Y-E)};
c.a.wh=function(L){return c.a.TT(c.a.mE(L))};c.a.kG=function(L){var C=L.x,U=L.y,E=L.x+L.d,Y=L.y+L.v;
return{Z:["M","L","L","L","Z"],c:[C,U,E,U,E,Y,C,Y]}};c.a.concat=function(L,C,U){if(U==null)U=new c0;
for(var H=0;H<C.c.length;H+=2){var E=C.c[H],Y=C.c[H+1];L.c.push(E*U.R+Y*U.Z9+U.Yt);L.c.push(E*U.O+Y*U.J2+U.rv)}for(var H=0;
H<C.Z.length;H++)L.Z.push(C.Z[H])};c.a.xF=function(L){var C=L.c,U=[],E=[],Y=0,z=0,r=0,p=0,T=0,k=0,P=0,b=0,Q=0;
for(var H=0;H<L.Z.length;H++){var K=L.Z[H];if(K=="M"){z=C[Y];r=C[Y+1];Y+=2;E.push(K);U.push(z,r)}else if(K=="C"){p=C[Y];
T=C[Y+1];k=C[Y+2];P=C[Y+3];b=C[Y+4];Q=C[Y+5];Y+=6;E.push(K);U.push(p,T,k,P,b,Q);z=b;r=Q}else if(K=="Q"){p=C[Y];
T=C[Y+1];k=C[Y+2];P=C[Y+3];Y+=4;var h=p-z,x=T-r,O=k-p,y=P-T;E.push("C");U.push(z+2/3*h,r+2/3*x,p+1/3*O,T+1/3*y,k,P);
z=k;r=P}else if(K=="L"){p=C[Y];T=C[Y+1];Y+=2;var v=p-z,i=T-r;E.push("C");U.push(z,r,p,T,p,T);z=p;r=T}else E.push(K)}return{Z:E,c:U}};
c.a.ai3=function(L){var C=L.c,U=[],E=[],Y=0;for(var H=0;H<L.Z.length;H++){var z=L.Z[H];if(z=="Q"){var r=C[Y-2],p=C[Y-1],T=C[Y],k=C[Y+1],P=C[Y+2],b=C[Y+3];
Y+=4;var Q=T-r,K=k-p,h=P-T,x=b-k;E.push("C");U.push(r+2/3*Q,p+2/3*K,T+1/3*h,k+1/3*x,P,b)}else{var O=0;
if(z=="M"||z=="L")O=2;else if(z=="C")O=6;for(var y=0;y<O;y++)U.push(C[Y+y]);Y+=O;E.push(z)}}return{Z:E,c:U}};
c.a.ub=function(L,C){var U=L.c,E=[],Y=[],z=0,r=0,p=0,T=0,k=0,P=0,b=0,Q=0,K=0;for(var H=0;H<L.Z.length;
H++){var h=L.Z[H];if(h=="M"){r=U[z];p=U[z+1];z+=2;Y.push(h);E.push(r,p)}else if(h=="C"){T=U[z];k=U[z+1];
P=U[z+2];b=U[z+3];Q=U[z+4];K=U[z+5];z+=6;c.a.Mn(r,p,T,k,P,b,Q,K,C,Y,E,0);r=Q;p=K}else Y.push(h)}return{Z:Y,c:E}};
c.a.Mn=function(L,C,U,E,Y,z,r,p,T,k,P,b){var Q=Math.sqrt((r-L)*(r-L)+(p-C)*(p-C)),K=Math.sqrt((r-Y)*(r-Y)+(p-z)*(p-z))+Math.sqrt((Y-U)*(Y-U)+(z-E)*(z-E))+Math.sqrt((U-L)*(U-L)+(E-C)*(E-C)),h=(Q+K)/2;
if(h<=T){k.push("C");P.push(U,E,Y,z,r,p)}else{var x=0,O=0,y=0,v=0,i=0,D=0,I=0,m=0,f=0,A=0,d=0,g=0,X=0;
O=(L+U)/2;y=(C+E)/2;v=(U+Y)/2;i=(E+z)/2;D=(Y+r)/2;I=(z+p)/2;m=(O+v)/2;f=(y+i)/2;A=(v+D)/2;d=(i+I)/2;
g=(m+A)/2;X=(f+d)/2;c.a.Mn(L,C,O,y,m,f,g,X,T,k,P,b+1);c.a.Mn(g,X,A,d,D,I,r,p,T,k,P,b+1)}};c.a.zw=function(L,C){var U=L.length-2,E=L[0],Y=L[1],z=L[U],r=L[U+1],p=z-E,T=r-Y,k=1/Math.sqrt(p*p+T*T),P=z*Y-r*E,b=-1,Q=-1;
for(var H=2;H<U;H+=2){var K=L[H],h=L[H+1],x=Math.abs(T*K-p*h+P)*k;if(x>Q){Q=x;b=H}}if(Q<C)return[E,Y,z,r];
var O=c.a.zw(L.slice(0,b+2),C),y=c.a.zw(L.slice(b),C);for(var H=2;H<y.length;H++)O.push(y[H]);return O};
c.a.a4p=function(){var L=function(E,Y,z,r,p,T){return(Y-r)*(p-z)+(z-E)*(T-r)>=0},C=function(E,Y,z,r,p,T,k,P){var b=k-z,Q=P-r,K=p-z,h=T-r,x=E-z,O=Y-r,y=b*b+Q*Q,v=b*K+Q*h,i=b*x+Q*O,D=K*K+h*h,I=K*x+h*O,m=1/(y*D-v*v),f=(D*i-v*I)*m,A=(y*I-v*i)*m;
return f>=0&&A>=0&&f+A<1},U=function(E){var u=E.length>>>1,H=0;if(u<3)return[];var Y=[],z=[];for(var H=0;
H<u;H++)z.push(H);var r=u;while(r>3){var p=z[(H+0)%r],T=z[(H+1)%r],k=z[(H+2)%r],P=E[2*p],b=E[2*p+1],Q=E[2*T],K=E[2*T+1],h=E[2*k],x=E[2*k+1],O=!1;
if(L(P,b,Q,K,h,x)){O=!0;for(var y=0;y<r;y++){var v=z[y];if(v==p||v==T||v==k)continue;if(C(E[2*v],E[2*v+1],P,b,Q,K,h,x)){O=!1;
break}}}if(O){Y.push(p,T,k);z.splice((H+1)%r,1);r--;H=0}else if(H++>3*r)break}Y.push(z[0],z[1],z[2]);
return Y};return U}();c.a.a6r=function(L,C){var U={},E={Z:[],c:[]};for(var H=0;H<C.length;H+=3){var Y=C[H]*2,z=C[H+1]*2,r=C[H+2]*2;
c.a.XV(L,Y,z,E,U);c.a.XV(L,Y,r,E,U);c.a.XV(L,z,r,E,U)}return E};c.a.XV=function(L,C,U,E,Y){if(C>U){var z=U;
U=C;C=z}if(Y[C+","+U])return;Y[C+","+U]=!0;E.Z.push("M","L");E.c.push(L[C],L[C+1],L[U],L[U+1])};c.a.Eb=function(L,C){var U=[],E=L.length;
for(var H=0;H<E;H+=2){var Y=L[H],z=L[H+1],r=L[(H+2)%E],p=L[(H+3)%E];if(p<z){var T=z;z=p;p=T}if(z<C&&C<p){var k=(C-z)/(p-z);
U.push(Y+k*(r-Y))}}U.sort(function(P,b){return P-b});return U};c.a.al5=function(L,C){var U=C.slice(0),u=L.length/2,E=[],Y=[];
for(var H=0;H<u;H++){var z=(H+1)%u,r=L[2*H]-L[2*z],p=L[2*H+1]-L[2*z+1];Y[H]=Math.sqrt(r*r+p*p)}for(var H=0;
H<u;H++){var T=(H-1+u)%u,z=(H+1)%u,k=C[H],P=k+C[T],b=k+C[z];if(P!=0)U[H]=Math.min(U[H],Y[T]*k/P);if(b!=0)U[H]=Math.min(U[H],Y[H]*k/b)}for(var H=0;
H<u;H++){var z=(H+1)%u,Q=(H+2)%u,K=U[H],h=U[z],x=L[2*H],O=L[2*H+1],y=L[2*z],v=L[2*z+1],i=L[2*Q],D=L[2*Q+1],I=Y[H],m=Y[z],f=c.a.aew(x,O,y,v,i,D,K,h,I,m);
E.push(f[0],f[1],f[0],f[1],f[2],f[3]);E.push(f[2],f[3],f[4],f[5],f[6],f[7])}return E};c.a.aew=function(L,C,U,E,Y,z,r,p,T,k){if(T==null)T=Math.sqrt((U-L)*(U-L)+(E-C)*(E-C));
if(k==null)k=Math.sqrt((Y-U)*(Y-U)+(z-E)*(z-E));var P=.553,b=0,Q=0,K=0,h=0;if(T!=0){b=(U-L)/T;Q=(E-C)/T}if(k!=0){K=(Y-U)/k;
h=(z-E)/k}var x=L+r*b,O=C+r*Q,y=U-p*b,v=E-p*Q;return[x,O,y,v,U-p*b*(1-P),E-p*Q*(1-P),U+p*K*(1-P),E+p*h*(1-P),U+p*K,E+p*h]};
c.a.Ao=function(L,C,U,E,Y,z,r){var p=L-U,T=C-E,k=Y-U,P=z-E,b=1/Math.sqrt(p*p+T*T),Q=1/Math.sqrt(k*k+P*P),K=p*b,h=T*b,x=k*Q,O=P*Q,y=h*r,v=-K*r,i=-O*r,D=x*r,I=c.a.H8(y,v,K,h,i,D,x,O),m=y+K*I,f=v+h*I,I=c.a.H8(0,0,K,h,m,f,-h,K),A=K*I,d=h*I;
return[Math.sqrt(A*A+d*d),K,h,x,O]};c.a.c9=function(L,C,U,E,Y,z,r){var p=c.a.Ao(L,C,U,E,Y,z,r),T=p[0],k=p[1],P=p[2],b=p[3],Q=p[4],K=Math.atan2(k*Q-P*b,k*b+P*Q);
if(K<0){K=K*-1}var h=Math.PI-K,x=4/3*Math.tan(h/4),O=U+T*k,y=E+T*P,v=U+T*b,i=E+T*Q,D=O+x*r*-k,I=y+x*r*-P,m=v+x*r*-b,f=i+x*r*-Q;
return[0,0,O,y,D,I,m,f,v,i]};c.a.H8=function(L,C,U,E,Y,z,r,p){var T=r*(C-z)-p*(L-Y),k=p*U-r*E;if(k==0)return 0;
return T/k};c.a.c9(0,50,0,0,30,30,10);c.l2=function(){};c.l2.p8=function(L,C,U,E,Y){var z=U.d,r=U.v,p=z*r,T=new Int32Array(p),u=0;
for(var H=0;H<p;H++)if(C[H]!=0){T[H]=u;u++}else if(L[(H<<2)+3]<200){T[H]=-2}else T[H]=-1;if(u==0)return;
var k=new c.W2(u,u),P=new Array(3*u),b=new Array(3*u);for(var H=0;H<b.length;H++)b[H]=P[H]=0;var Q=1/255,K=[-z,-1,1,z],h=[],x=[];
for(var O=0;O<r;O++)for(var y=0;y<z;y++){var v=O*z+y,i=v<<2,H=T[v],D=H*3,I=0,m=0,f=0;if(H==-1||H==-2)continue;
for(var A=0;A<4;A++){if(A==2){m=f;h[f]=0;x[f]=H;f++}var d=v+K[A],g=d<<2,X=T[d];if(A==0&&O==0||A==1&&y==0||A==2&&y==z-1||A==3&&O==r-1||X==-2)continue;
I++;if(X==-1){P[D+0]+=L[g+0];P[D+1]+=L[g+1];P[D+2]+=L[g+2]}else{h[f]=-1;x[f]=X;f++;if(C[v]==C[d]){P[D+0]+=L[i+0]-L[g+0];
P[D+1]+=L[i+1]-L[g+1];P[D+2]+=L[i+2]-L[g+2]}}}h[m]=I;k.R5(h,x,f)}for(var H=0;H<p;H++)if(T[H]!=-1){var n=H<<2,R=T[H],l=R*3;
b[l]=L[n+0];b[l+1]=L[n+1];b[l+2]=L[n+2]}var w=Date.now();k.acg(b,P,E,Y);console.log(Date.now()-w);for(var H=0;
H<p;H++){var R=T[H],V=R*3,n=H<<2;if(R==-1||L[n+3]!=255)continue;L[n+0]=~~(.5+Math.max(0,Math.min(255,b[V+0])));
L[n+1]=~~(.5+Math.max(0,Math.min(255,b[V+1])));L[n+2]=~~(.5+Math.max(0,Math.min(255,b[V+2])))}};c.rect={};
c.rect.hO=function(L,C){var U=[L],E=[];for(var H=0;H<C.length;H++){var Y=C[H],z=!1;for(var r=H+1;r<C.length;
r++){var p=C[r];if(p[0]<=Y[0]&&p[1]<=Y[1]&&Y[2]<=p[2]&&Y[3]<=p[3]){z=!0;break}}if(!z)E.push(Y)}C=E;for(var H=0;
H<C.length;H++){var Y=C[H];for(var r=0;r<U.length;r++){var p=U[r],T=Math.max(Y[0],p[0]),k=Math.min(Y[2],p[2]),P=Math.max(Y[1],p[1]),b=Math.min(Y[3],p[3]);
if(T<k&&P<b){var Q=[];if(p[1]<Y[1]){var K=p.slice(0);K[3]=Y[1];Q.push(K)}if(p[0]<Y[0]){var h=p.slice(0);
h[1]=P;h[2]=Y[0];Q.push(h)}if(Y[2]<p[2]){var x=p.slice(0);x[1]=P;x[0]=Y[2];Q.push(x)}if(Y[3]<p[3]){var O=[T,b,k,p[3]];
Q.push(O)}if(Q.length!=0){U[r]=Q[0];for(var y=1;y<Q.length;y++)U.push(Q[y])}}}U.push(Y);U=c.rect.a1o(U)}U.sort(function(Y,p){return Y[1]!=p[1]?Y[1]-p[1]:Y[0]-p[0]});
return U};c.rect.a1o=function(L){L=L.slice(0);for(var H=0;H<L.length;H++){var C=L[H],U=null;if(C[4]!=null)continue;
for(var E=0;E<L.length;E++){var Y=L[E];if(H==E||Y[4]!=null)continue;var z=C[0]==Y[0],r=C[1]==Y[1],p=C[2]==Y[2],T=C[3]==Y[3];
if(r&&T&&(C[2]==Y[0]||C[0]==Y[2])){U=[Math.min(C[0],Y[0]),C[1],Math.max(C[2],Y[2]),C[3]]}if(z&&p&&(C[3]==Y[1]||C[1]==Y[3])){U=[C[0],Math.min(C[1],Y[1]),C[2],Math.max(C[3],Y[3])]}if(U){L[H]=U;
L.splice(E,1);break}}if(U){H--}}return L};c.rect.IS=function(L){var C=new _;for(var H=0;H<L.length;H++)C=C.EU(L[H]);
return C};c.rect.ab8=function(L,C){var U=c.rect.IS,E=new UnionFind(L.length),m=1e3,f=1e3;for(var H=0;
H<L.length;H++)for(var Y=H+1;Y<L.length;Y++){if(!C)continue;var z=L[H],r=L[Y],b=1e9,Q=1e9;if(z.nN(r)){E.link(H,Y);
continue}var p=z.x+z.d,T=z.y+z.v,k=r.x+r.d,P=r.y+r.v;if((p<r.x||k<z.x)&&(T<r.y||P<z.y))continue;if(!(T<r.y||P<z.y))b=Math.min(Math.abs(p-r.x),Math.abs(z.x-k));
if(!(p<r.x||k<z.x))Q=Math.min(Math.abs(T-r.y),Math.abs(z.y-P));var K=Math.min(b,Q),h=Math.min(z.d,z.v,r.d,r.v);
if(K<.3*h)E.link(H,Y)}var x=[],O={};for(var H=0;H<L.length;H++){var y=E.find(H),v=L[H];if(O[y]==null){O[y]=x.length;
x.push([])}x[O[y]].push(v)}var i=[],D=[];for(var H=0;H<x.length;H++){i.push(U(x[H]));var I=U(x[H]);I.Od=H;
D.push(I)}D.sort(function(F,Z){return Math.max(Z.v,Z.d)-Math.max(F.v,F.d)});var A=new NETXUS.RectanglePacker(m,f);
while(!0){var d=!1;A.reset(m,f);for(var H=0;H<D.length;H++){var g=A.findCoords(D[H].d,D[H].v);if(g){D[H].x=g.x;
D[H].y=g.y}else{m=Math.floor(m*1.1);f=Math.floor(f*1.1);d=!0;break}}if(d)continue;break}for(var H=0;
H<x.length;H++){var X=D[H],n=X.Od,R=i[n],l=x[n],w=X.x-R.x,V=X.y-R.y;for(var Y=0;Y<l.length;Y++)l[Y].offset(w,V)}};
c.Mb=function(){};c.Mb.j9=Math.floor(16*window.devicePixelRatio);c.Mb.Mu={};c.Mb.xp=0;c.Mb.JO=[[12,76,2],[12,76,3],[12,76,4],[12,76,5],[12,76,6]];
c.Mb.ags=["px","in","cm","mm","%"];c.Mb.nF=function(L,C,U){var E=C._Q,Y=[1,E,E/2.54,E/25.4,C.d/100][U];
return L*Y};c.Mb.S9=function(L,C,U,E,Y){var z=U.qA.Ca,r=[1,C,C/2.54,C/25.4,E/100][z],p=[2,3,2,1,2][z];
L=L/r;var T=Math.round(L),k=z==0&&Math.abs(L-T)<1e-6?T+"":L.toFixed(p);if(Y)k+=" "+c.Mb.ags[z];return k};
c.Mb.a8s=function(L,C,U,E){var Y=U.qA.Ca,z=[1,C,C/2.54,C/25.4,E/100][Y];L=parseFloat(L)*z;return L};
c.Mb.abD=function(L,C){var U=L+","+C;if(c.Mb.Mu.clr==U)return;var E=Math.round(c.Mb.j9*.5);c.Mb.xp=E;
var Y=document.createElement("canvas");Y.width=Y.height=E;var z=Y.getContext("2d");z.font=E*1.5+"px monospace";
var r="0 1 2 3 4 5 6 7 8 9 -".split(" ");for(var H=0;H<r.length;H++){z.fillStyle="#"+c.Xo(C);z.fillRect(0,0,E,E);
z.fillStyle="#"+c.Xo(L);z.fillText(r[H],0,E);c.Mb.Mu[r[H]]=z.getImageData(0,0,E,E).data}c.Mb.Mu.clr=U};
c.Mb.af5=function(L,C,U){var E=0,Y=0,z=4*c.Mb.j9;for(var H=9;H>=0;H--){var r=Math.pow(10,H);if(5*r*L<=z){E=5*r;
Y=10;break}if(2*r*L<=z){E=2*r;Y=4;break}if(1*r*L<=z){E=1*r;Y=10;break}}if(E==0){E=1;Y=10}var p=Math.ceil(E*L),T=c.F(p*c.Mb.j9*4);
c.n0(T,4278190080|U);for(var H=0;H<c.Mb.j9;H++)c.Mb.$t(T,4*H*p,C);for(var H=0;H<p;H++)c.Mb.$t(T,4*((c.Mb.j9-1)*p+H),C);
if(E==2)Y=2;if(E==5)Y=5;if(E>1||E==1&&p>20)for(var H=1;H<Y;H++)c.Mb.acr(T,H*(p/Y),p,(H&1)==1?.8:.7,C);
return{GE:T,step:E}};c.Mb.acr=function(L,C,U,E,Y){var C=Math.round(C);for(var z=Math.round(c.Mb.j9*E);
z<c.Mb.j9-1;z++)c.Mb.$t(L,4*(z*U+C),Y)};c.Mb.$t=function(L,C,U){L[C+0]=U>>16&255;L[C+1]=U>>8&255;L[C+2]=U&255};
c.Mb.a0I=function(L,C,U,E,Y){var z=L.e4.d,r=L.e4.v,p=c.Mb.j9,T=C&255,k=C>>8&255,P=C>>16&255,m,f,A,d;
C=Math.round(T*.6)<<16|Math.round(k*.6)<<8|Math.round(P*.6);c.Mb.abD(Math.round(T*.8)<<16|Math.round(k*.8)<<8|Math.round(P*.8),U);
var b=this.af5(L.S,C,U),Q=L.sQ(0,0),K=L.sQ(z,r),h=Math.floor(Q.x/b.step)*b.step,x=Math.ceil(K.x/b.step)*b.step,O=Math.floor(Q.y/b.step)*b.step,y=Math.ceil(K.y/b.step)*b.step,v=L.Q6(h,O),i=L.Q6(x,O),D=b.step*L.S,I=Math.ceil(D);
m=L.lQ.data;f=new _(0,0,z,p);A=new _(0,0,I,p);d=new _(0,Math.round(p*.08),c.Mb.xp,c.Mb.xp);for(var H=0;
H<(x-h)/b.step;H++){A.x=Math.round(v.x+H*D);c.La(b.GE,A,m,f,A);var g=(h+H*b.step).toString(10);for(var X=0;
X<g.length;X++){d.x=A.x+3+X*Math.round(c.Mb.xp*.8);var n=c.Mb.Mu[g[X]];c.La(n,d,m,f,d)}}var R=new Uint32Array(b.GE.buffer),l=new Uint32Array(b.GE.length);
for(var w=0;w<I;w++)for(var V=0;V<p;V++){l[w*p+V]=R[V*I+w]}b.GE=new Uint8Array(l.buffer);m=L.GU.data;
f=new _(0,0,p,r);A=new _(0,0,p,I);d=new _(Math.round(p*.2),0,c.Mb.xp,c.Mb.xp);for(var H=0;H<(y-O)/b.step;
H++){A.y=Math.round(v.y+H*D);c.La(b.GE,A,m,f,A);var g=Math.abs(O+H*b.step).toString(10);for(var X=0;
X<g.length;X++){d.y=A.y+3+X*Math.round(c.Mb.xp*1.15);var n=c.Mb.Mu[g[X]];c.La(n,d,m,f,d)}}var F=Math.floor(p*.6),Z=new Uint32Array(L.lQ.data.buffer),M=new Uint32Array(L.GU.data.buffer),a=T<128?4278190080:4294967295;
if(0<E&&E<z)for(var H=0;H<F;H++)Z[H*z+E]=a;if(0<Y&&Y<r)for(var H=0;H<F;H++)M[Y*p+H]=a};c.scale={};c.scale.UF=document.createElement("canvas");
c.scale.vU=c.scale.UF.getContext("2d");c.scale.a7j=document.createElement("canvas");c.scale.a5t=c.scale.a7j.getContext("2d");
c.scale.k3=function(L,C,U){var E=c.scale.UF,Y=c.scale.vU;E.width=C;E.height=U;var z=new ImageData(new Uint8ClampedArray(L.buffer),C,U);
Y.putImageData(z,0,0);return Y.createPattern(E,"repeat")};c.scale.aeu=function(L,C,U,E,Y,z,r,p){var T=c.scale.rd(L,U,E,Y,z,r,p);
c.df(T.data,C)};c.scale.a3j=function(L,C,U,E,Y,z,r,p){var T=c.scale.rd(L,U,E,Y,z,r,p);c.hL(T.data,C)};
c.scale.rd=function(L,C,U,E,Y,z,r){var p=c.scale.UF,T=c.scale.vU;p.width=C;p.height=U;T.rect(0,0,C,U);
T.translate(z,r);T.scale(E,Y);T.fillStyle=L;T.fill();return T.getImageData(0,0,C,U)};c.scale.J=function(L,C,U,E,Y){var z=U.clone();
z.G$();var r=Y.d,p=Y.v,T=c.a.kG(C).c;c.a.J(T,z,T);var k=c.a.wh(T).eR(Y),P=k.x,b=k.y,Q=P+k.d,K=b+k.v,h=~~C.x,x=~~C.y,O=~~C.d,y=~~C.v;
for(var v=b;v<K;v++)for(var i=P;i<Q;i++){var D=i+.5,I=v+.5,m=U.R*D+U.Z9*I+U.Yt-h,f=U.O*D+U.J2*I+U.rv-x;
if(0<=m&&0<=f&&m<O&&f<y)E[v*r+i]=L[~~f*O+~~m]}};c.scale.ank=function(L,C,U,E,Y){var z=new Uint32Array(L.buffer),r=new Uint32Array(E.buffer),p=U.clone();
p.G$();var T=Y.d,k=Y.v,P=c.a.kG(C).c;c.a.J(P,p,P);var b=c.a.wh(P).eR(Y),Q=b.x,K=b.y,h=Q+b.d,x=K+b.v,O=~~C.x,y=~~C.y,v=~~C.d,i=~~C.v;
for(var D=K;D<x;D++)for(var I=Q;I<h;I++){var m=I+.5,f=D+.5,A=U.R*m+U.Z9*f+U.Yt-O,d=U.O*m+U.J2*f+U.rv-y;
if(0<=A&&0<=d&&A<v&&d<i)r[D*T+I]=z[~~d*v+~~A]}};c.scale.fw=function(L,C,U,E,Y,z,r){if(r<1)c.scale.acy(L,C,U,E,Y,z,Math.round(1/r));
else c.scale.a7p(L,C,U,E,Y,z,r)};c.scale.su=function(L,C,U,E,Y,z,r,p){if(p)p=p.eR(new _(0,0,C,U));L=new Uint32Array(L.buffer);
E=new Uint32Array(E.buffer);if(r<1)c.scale.a07(L,C,U,E,Y,z,Math.round(1/r),p);else c.scale.a4M(L,C,U,E,Y,z,r)};
c.scale.a7p=function(L,C,U,E,Y,z,r){for(var p=0;p<U;p++)for(var T=0;T<C;T++){var k=L[p*C+T],P=Math.min(r,Y-T*r),b=Math.min(r,z-p*r);
for(var H=0;H<b;H++)for(var Q=0;Q<P;Q++)E[(r*p+H)*Y+r*T+Q]=k}};c.scale.acy=function(L,C,U,E,Y,z,r){for(var p=0;
p<z;p++)for(var T=0;T<Y;T++){var k=0,P=Math.min(r,C-T*r),b=Math.min(r,U-p*r);for(var H=0;H<b;H++)for(var Q=0;
Q<P;Q++)k+=L[(r*p+H)*C+(r*T+Q)];E[p*Y+T]=Math.round(k/(P*b))}};c.scale.a4M=function(L,C,U,E,Y,z,r){for(var p=0;
p<U;p++)for(var T=0;T<C;T++){var k=L[p*C+T],P=Math.min(r,Y-T*r),b=Math.min(r,z-p*r);for(var H=0;H<b;
H++)for(var Q=0;Q<P;Q++)E[(r*p+H)*Y+r*T+Q]=k}};c.scale.a07=function(L,C,U,E,Y,z,r,p){var T=0,k=Y,P=0,b=z;
if(p){T=Math.floor(p.x/r);k=Math.ceil((p.x+p.d)/r);P=Math.floor(p.y/r);b=Math.ceil((p.y+p.v)/r)}for(var Q=P;
Q<b;Q++)for(var K=T;K<k;K++){var h=0,x=0,O=0,y=0,v=Math.min(r,C-K*r),i=Math.min(r,U-Q*r);for(var H=0;
H<i;H++)for(var D=0;D<v;D++){var I=L[(r*Q+H)*C+r*K+D],m=I>>>24;h+=m;x+=m*(I>>>16&255);O+=m*(I>>>8&255);
y+=m*(I&255)}if(h!=0){var f=1/h;E[Q*Y+K]=h/(v*i)<<24|x*f<<16|O*f<<8|y*f}else E[Q*Y+K]=0}};c.t={};c.t.a82=function(L,C,U){var E=128,H=0,Y=U.d,z=U.v;
for(var r=0;r<z;r++)for(var p=0;p<Y;p++){if(L[H]>=E&&(p==0||L[H-1]<E||(p==Y-1||L[H+1]<E)||(r==0||L[H-Y]<E)||(r==z-1||L[H+Y]<E)))C[H]=255;
H++}};c.t.a8j=function(L,C,U,E){var Y=new Uint32Array([4278190080,4294967295]),z=U.d,r=U.v,p=0,T=0,k=z,P=r;
if(E){p=E.x-U.x;T=E.y-U.y;k=p+E.d;P=T+E.v}var b=new Uint8Array(C.buffer),Q=new Uint32Array(C.buffer);
for(var K=T;K<P;K++)for(var h=p;h<k;h++){var H=K*z+h;if((L[H]&128)!=0&&(K==0||(L[H-z]&128)==0||h==0||(L[H-1]&128)==0||h==z-1||(L[H+1]&128)==0||K==r-1||(L[H+z]&128)==0)){Q[H]=Y[(h+K&4)>>>2]}}};
c.t.an5=function(L,C,U,E,Y,z){var r=U.d,p=U.v,T=0,k=0,P=r,b=p;if(E){T=E.x-U.x;k=E.y-U.y;P=T+E.d;b=k+E.v}var Q=new Uint8Array(C.buffer),K=new Uint32Array(C.buffer);
for(var h=k;h<b;h++)for(var x=T;x<P;x++){var H=h*r+x,O=L[H];if(Y==1)K[H]=255-O>>>1<<24|255;else K[H]=255<<24|(O<<16|O<<8|O)}};
c.KK={};c.KK.dJ=function(L,C,U){var E,Y;if(U=="front"){E=L.rect.clone();Y=c.KK.akG}if(U=="union"){E=L.rect.EU(C.rect);
Y=c.KK.EU}if(U=="difference"){E=C.rect.clone();Y=c.KK.abg}if(U=="intersection"){E=L.rect.eR(C.rect);
Y=c.KK.eR}if(U=="xor"){E=L.rect.EU(C.rect);Y=c.KK.ahD}if(E.ue())return null;var z=c.F(E.X());c.zM(C.channel,C.rect,z,E);
var r=c.F(E.X());c.zM(L.channel,L.rect,r,E);Y(r,z,z);var p=c.lJ(z,E);if(p.ue())return null;if(!p.cg(E)){var T=c.F(p.X());
c.zM(z,E,T,p);z=T;E=p}return{channel:z,rect:E}};c.KK.akG=function(L,C,U){for(var H=0;H<L.length;H++)U[H]=L[H]};
c.KK.EU=function(L,C,U){for(var H=0;H<L.length;H++)U[H]=Math.min(L[H]+C[H],255)};c.KK.abg=function(L,C,U){for(var H=0;
H<L.length;H++)U[H]=Math.max(C[H]-L[H],0)};c.KK.eR=function(L,C,U){var E=1/255;for(var H=0;H<L.length;
H++)U[H]=L[H]*C[H]*E};c.KK.ahD=function(L,C,U){var E=1/255;for(var H=0;H<L.length;H++)U[H]=Math.min(L[H]+C[H],255)-L[H]*C[H]*E};
c.W2=function(L,C){this.U=[];this.HO=[0];this.Bf=[];this.qS=[];this.v9=[0];this.yu=[];this._4=[];this.rows=L;
this.cols=C};c.W2.prototype.clone=function(){var L=this,C=L.rows,U=L.cols,E=new c.W2(C,U);E.U=L.U.slice(0);
E.HO=L.HO.slice(0);E.Bf=L.Bf.slice(0);E.qS=L.qS.slice(0);E.v9=L.v9.slice(0);E.yu=L.yu.slice(0);E._4=L._4.slice(0);
return E};c.W2.prototype.R5=function(L,C,U){var E=this.HO.length-1;for(var H=0;H<U;H++){var Y=L[H],z=C[H];
this.U.push(Y);this.Bf.push(z);if(z==E){this._4.push(Y==0?0:1/Y)}else{this.qS.push(Y);this.yu.push(z)}}this.HO.push(this.U.length);
this.v9.push(this.qS.length)};c.W2.prototype.P9=function(L,C){var U=this,E=U.rows,Y=U.U,z=U.Bf;if(C==null)C=new Array(E);
for(var H=0;H<E;H++){var r=U.HO[H],p=U.HO[H+1],T=0;while((p-r&3)!=0){T+=Y[r]*L[z[r]];r++}for(var k=r;
k<p;k+=4)T+=Y[k]*L[z[k]]+Y[k+1]*L[z[k+1]]+Y[k+2]*L[z[k+2]]+Y[k+3]*L[z[k+3]];C[H]=T}return C};c.W2.prototype.multiply=function(L){return this.fU(L.t$())};
c.W2.prototype.fU=function(L){var C=this,U=C.rows,E=C.cols,Y=L.rows,z=new c.W2(U,Y),r=C.Bf,p=L.Bf;for(var H=0;
H<U;H++){var T=[],k=[],P=C.HO[H],b=C.HO[H+1];for(var Q=0;Q<Y;Q++){var K=L.HO[Q],h=L.HO[Q+1],x=0,O=P,y=K;
while(O<b&&y<h){var v=Math.max(r[O],p[y]);while(O<b&&r[O]<v)O++;while(y<h&&p[y]<v)y++;if(O<b&&y<h&&r[O]==p[y])x+=C.U[O++]*L.U[y++]}if(x!=0){T.push(x);
k.push(Q)}}z.R5(T,k,T.length)}return z};c.W2.prototype.t$=function(){var L=this.rows,C=this.cols,U=[];
for(var H=0;H<C;H++)U.push([[],[]]);var E=this.U,Y=this.HO,z=this.Bf;for(var H=0;H<L;H++){var r=Y[H],p=Y[H+1];
for(var T=r;T<p;T++){var k=U[z[T]];k[0].push(E[T]);k[1].push(H)}}var P=new c.W2(C,L);for(var H=0;H<C;
H++)P.R5(U[H][0],U[H][1],U[H][1].length);return P};c.W2.prototype.PH=function(){var L=this.rows,C=this.cols,U=new Array(L),E=this.U,Y=this.HO,z=this.Bf;
for(var H=0;H<L;H++){var r=U[H]=new Array(C);for(var p=0;p<C;p++)r[p]=0;var T=Y[H],k=Y[H+1];for(var P=T;
P<k;P++)r[z[P]]=E[P]}return U};c.W2.prototype.qP=function(L,C,U,E,Y){function z(f,C,A,d){var g=f.length;
for(var H=0;H<g;H++)d[H]=f[H]-C[H]*A}function r(f,C,A,d){var g=f.length,X=0;while((g-X&3)!=0){d[X]=f[X]+C[X]*A;
X++}for(var H=X;H<g;H+=4){d[H]=f[H]+C[H]*A;d[H+1]=f[H+1]+C[H+1]*A;d[H+2]=f[H+2]+C[H+2]*A;d[H+3]=f[H+3]+C[H+3]*A}}function p(f,C,A){var d=f.length;
for(var H=0;H<d;H++)A[H]=f[H]*C[H]}function T(f,C){var A=f.length,d=0,g=0;while((A-d&3)!=0){g+=f[d]*C[d];
d++}for(var H=d;H<A;H+=4)g+=f[H]*C[H]+f[H+1]*C[H+1]+f[H+2]*C[H+2]+f[H+3]*C[H+3];return g}var k=E!=null?2:1,P=Date.now(),b=0,Q=this,K=L.slice(0),h=L.slice(0);
Q.P9(L,h);z(C,h,1,K);var x=this._4;if(k==0){x=K.slice(0);x.fill(1)}var O=K.slice(0);p(x,K,O);var y=O.slice(0),v=T(K,O);
while(!0){Q.P9(y,h);var i=v/T(y,h);r(L,y,i,L);z(K,h,i,K);if((b&7)==0&&Math.sqrt(T(K,K))<U)break;if(k<=1)p(x,K,O);
else{var D=K.slice(0);E.aoe(D,K);Y.afx(O,D)}var I=T(K,O),m=I/v;r(O,y,m,y);v=I;b++}};c.W2.prototype.a49=function(L,C,U,E){var Y=Date.now(),z=1.96,p=0;
if(U==null)U=5e-6;if(E==null)E=1e9;var r=1-z,u=this.rows,T=this.qS,k=this.v9,P=this.yu,b=this._4;while(!0){var Q=0;
for(var H=0;H<u;H++){var K=C[H],h=k[H],x=k[H+1];if(x-h==4)K-=T[h]*L[P[h]]+T[h+1]*L[P[h+1]]+T[h+2]*L[P[h+2]]+T[h+3]*L[P[h+3]];
else for(var O=h;O<x;O++)K-=T[O]*L[P[O]];var y=L[H]*r+b[H]*K*z,v=y-L[H];Q+=v*v;L[H]=y}if(Q/u<U||Date.now()>Y+E)break}};
c.W2.prototype.acg=function(L,C,U,E){var Y=Date.now(),z=1.96,p=0;if(U==null)U=5e-5;if(E==null)E=1e9;
var r=1-z,u=this.rows,T=this.qS,k=this.v9,P=this.yu,b=this._4;while(!0){var Q=0;for(var H=0;H<u;H++){var K=H*3,h=C[K],x=C[K+1],O=C[K+2],y=k[H],v=k[H+1];
for(var i=y;i<v;i++){var D=T[i],I=P[i]*3;h-=D*L[I+0];x-=D*L[I+1];O-=D*L[I+2]}var m=b[H]*z,f=L[K+0]*r+h*m,A=L[K+1]*r+x*m,d=L[K+2]*r+O*m,g=f-L[K+0],n=A-L[K+1],R=d-L[K+2];
Q+=.4*g*g+.5*n*n+.1*R*R;L[K+0]=f;L[K+1]=A;L[K+2]=d}if(Q/u<U||Date.now()>Y+E)break}};c.Nn={};c.Nn.kH=function(L,C,U){return{t:"Objc",v:{classID:"CrPt",Hrzn:{t:"doub",v:L},Vrtc:{t:"doub",v:C},Cnty:{t:"bool",v:U}}}};
c.Nn.J=function(L,C){for(var H=0;H<L.length;H++){var U=L[H].v,E=C.Om(new hZ(U.Hrzn.v,U.Vrtc.v));U.Hrzn.v=Math.round(E.x);
U.Vrtc.v=Math.round(E.y)}};c.Nn.x4=function(L,C,U){var u=L.length-1,E=c.W1._K(u+1,u+2);for(var H=1;H<u;
H++){E[H][H-1]=1/(L[H]-L[H-1]);E[H][H]=2*(1/(L[H]-L[H-1])+1/(L[H+1]-L[H]));E[H][H+1]=1/(L[H+1]-L[H]);
E[H][u+1]=3*((C[H]-C[H-1])/((L[H]-L[H-1])*(L[H]-L[H-1]))+(C[H+1]-C[H])/((L[H+1]-L[H])*(L[H+1]-L[H])))}E[0][0]=2/(L[1]-L[0]);
E[0][1]=1/(L[1]-L[0]);E[0][u+1]=3*(C[1]-C[0])/((L[1]-L[0])*(L[1]-L[0]));E[u][u-1]=1/(L[u]-L[u-1]);E[u][u]=2/(L[u]-L[u-1]);
E[u][u+1]=3*(C[u]-C[u-1])/((L[u]-L[u-1])*(L[u]-L[u-1]));c.W1.wi(E,U)};c.Nn.aiQ=function(L,C,U,E){if(L<=C[0])return U[0];
if(L>=C[C.length-1])return U[C.length-1];var H=1;while(C[H]<L)H++;var Y=C[H],z=C[H-1],r=U[H],p=U[H-1],T=(L-z)/(Y-z),k=E[H-1]*(Y-z)-(r-p),P=-E[H]*(Y-z)+(r-p),b=(1-T)*p+T*r+T*(1-T)*(k*(1-T)+P*T);
return b};c.Nn.as=function(L,C,U,E){var Y={bv:[L[0]],vt:[C[0]],dv:[]};E[0]=Y;for(var H=1;H<L.length-1;
H++){Y.bv.push(L[H]);Y.vt.push(C[H]);if(U[H]==!1){c.Nn.x4(Y.bv,Y.vt,Y.dv);Y={bv:[L[H]],vt:[C[H]],dv:[]}}E[H]=Y}Y.bv.push(L[H]);
Y.vt.push(C[H]);c.Nn.x4(Y.bv,Y.vt,Y.dv);E[H]=Y};c.Nn.jI=function(L,C,U,E){if(L<=C[0])return U[0];if(L>=C[C.length-1])return U[C.length-1];
var H=1;while(C[H]<L)H++;var Y=E[H-1];return c.Nn.aiQ(L,Y.bv,Y.vt,Y.dv)};c.Nn.j7=function(L){var C={bv:[],vt:[],nb:[]};
for(var H=0;H<L.length;H++){C.bv[H]=L[H].v.Hrzn.v;C.vt[H]=L[H].v.Vrtc.v;C.nb[H]=L[H].v.Cnty?L[H].v.Cnty.v:!0}return C};
c.Nn.Sx=function(L,u,C){var U=0,E=255;if(C){U=-1e9;E=1e9}var Y=c.Nn.j7(L),z=[];c.Nn.as(Y.bv,Y.vt,Y.nb,z);
var r=[];for(var H=0;H<u;H++)r[H]=1/255*Math.max(U,Math.min(E,c.Nn.jI(H*(255/(u-1)),Y.bv,Y.vt,z)));return r};
c.Nn.am0=function(L,u,C){var U=Math.round(L.length/20),E=u-L.length,Y=C?(L[U]-L[0])/U:0,z=C?L[0]-E*Y:L[L.length-1],r=[];
for(var H=0;H<E;H++)r.push(z+H*Y);return C?r.concat(L):L.concat(r)};c.Nn._$=function(L,u,C){var U=c.Nn.j7(L),E=[];
c.Nn.as(U.bv,U.vt,U.nb,E);var Y=new Uint8Array(u),z=u/256;for(var H=0;H<u;H++)Y[H]=Math.max(0,Math.min(u-1,c.Nn.jI(H*z,U.bv,U.vt,E)));
if(C){Y[0]=0;if(Y[1]>100)Y[1]=.4*Y[1];if(Y[2]>150)Y[1]=.7*Y[2]}return Y};c.Nn.Gj=function(L,C){var U=new Uint8Array(L.length);
for(var H=0;H<L.length;H++)U[H]=C[L[H]];return U};c.Nn.BU=function(L,C,U){var E=B.w("canvas","");E.width=C;
E.height=U;var Y=E.getContext("2d"),z=c.Nn._$(L,256);Y.scale(C/255,U/255);Y.fillStyle="#fff";Y.fillRect(0,0,255,255);
Y.fillStyle="#333";Y.beginPath();Y.moveTo(0,255);for(var H=0;H<z.length;H++)Y.lineTo(H,255-z[H]);Y.lineTo(255,255);
Y.closePath();Y.fill();return E.toDataURL()};c.style={};c.style.stroke=function(L,C,U,E){var Y=U.d,z=U.v,r=new Float64Array(Y*z);
c.style.i3(L,r,Y,z);c.style.fC(C,U,r,U,E)};c.style.fC=function(L,C,U,E,Y){var z=C.eR(E),r=z.d,p=z.v;
Y+=.5;var T=z.x-C.x,k=z.y-C.y,P=C.d,b=z.x-E.x,Q=z.y-E.y,K=E.d;for(var h=0;h<p;h++){var x=(h+Q)*K+b,O=(h+k)*P+T;
for(var y=0;y<r;y++){var v=Math.max(0,Math.min(1,Y-U[x+y]));L[O+y]=Math.round(v*255)}}};c.style.a4w=function(L,C,U,E){for(var Y=0;
Y<U;Y++)for(var z=0;z<C;z++){var r=Y*C+z,p=0,T=0,k=L[r];if(z==0||Y==0){p=L[r+1]-k;T=L[r+C]-k}else if(z==U-1||Y==C-1){p=k-L[r-1];
T=k-L[r-C]}else{p=L[r+1]-L[r-1];T=L[r+C]-L[r-C]}if(p!=0||T!=0){var P=1/Math.sqrt(p*p+T*T);p*=P;T*=P}E[r+r]=p;
E[r+r+1]=T}};c.style.i3=function(L,C,U,E){var Y=0,z=U*E;for(var H=0;H<z;H++)Y|=L[H];if(Y==0){C.fill(1e9);
return}var r=c.style.EF(L,U,E);for(var p=0;p<E;p++)for(var T=0;T<U;T++){var H=p*U+T,k=r[H*2],P=r[H*2+1],b=(p+P)*U+T+k;
if(k==0&&P==0){C[H]=0;continue}var Q=Math.sqrt(k*k+P*P),K=L[b]*(1/255),h=1/Q,x=Math.abs(k)*h,O=Math.abs(P)*h;
if(O>x){var y=O;O=x;x=y}C[H]=Q+c.style.a0O(x,O,K)}};c.style.a0O=function(L,C,U){return(.5-U)*L};c.style.EF=function(L,C,U,E){if(E==null){E=!0;
for(var H=0;H<L.length;H++)E=E&&(L[H]==0||L[H]==255)}var Y=new Int16Array(C*U*2);if(E)c.style.agT(L,Y,C,U);
else c.style.a5n(L,Y,C,U);return Y};c.style.a5n=function(L,C,U,E){var Y=U*E;for(var H=0;H<Y;H++)if(L[H]==0){C[H*2]=16383;
C[H*2+1]=16383}for(var z=1;z<=E-1;z++){var H=z*U;for(var r=0;r<=U-1;r++)c.style.fc(C,L,U,H+r<<1,-1);
for(var r=1;r<=U-1;r++)c.style.Cv(C,L,U,H+r<<1,-1);for(var r=U-2;r>=0;r--)c.style.Cv(C,L,U,H+r<<1,1)}for(var z=E-2;
z>=0;z--){var H=z*U;for(var r=0;r<=U-1;r++)c.style.fc(C,L,U,H+r<<1,1);for(var r=1;r<=U-1;r++)c.style.Cv(C,L,U,H+r<<1,-1);
for(var r=U-2;r>=0;r--)c.style.Cv(C,L,U,H+r<<1,1)}};c.style.Cv=function(L,C,U,E,Y){var z=(E>>>1)+Y<<1,r=L[E],p=L[E+1],T=L[z]+Y,k=L[z+1],P=T*T+k*k,b=r*r+p*p;
if(k!=16383&&(r==16383||Math.sqrt(P)+(.5-C[(E>>>1)+k*U+T]*(1/255))<Math.sqrt(b)+(.5-C[(E>>>1)+p*U+r]*(1/255)))){L[E]=T;
L[E+1]=k}};c.style.fc=function(L,C,U,E,Y){var z=(E>>>1)+Y*U<<1,r=L[E],p=L[E+1],T=L[z],k=L[z+1]+Y,P=T*T+k*k,b=r*r+p*p;
if(T!=16383&&(r==16383||Math.sqrt(P)+(.5-C[(E>>>1)+k*U+T]*(1/255))<Math.sqrt(b)+(.5-C[(E>>>1)+p*U+r]*(1/255)))){L[E]=T;
L[E+1]=k}};c.style.agT=function(L,C,U,E){var Y=U*E;for(var H=0;H<Y;H++)if(L[H]==0){C[H*2]=16383;C[H*2+1]=16383}for(var z=1;
z<=E-1;z++){var H=z*U;for(var r=0;r<=U-1;r++)c.style.s1(C,L,U,H+r<<1,-1);for(var r=1;r<=U-1;r++)c.style.Xg(C,L,U,H+r<<1,-1);
for(var r=U-2;r>=0;r--)c.style.Xg(C,L,U,H+r<<1,1)}for(var z=E-2;z>=0;z--){var H=z*U;for(var r=0;r<=U-1;
r++)c.style.s1(C,L,U,H+r<<1,1);for(var r=1;r<=U-1;r++)c.style.Xg(C,L,U,H+r<<1,-1);for(var r=U-2;r>=0;
r--)c.style.Xg(C,L,U,H+r<<1,1)}};c.style.Xg=function(L,C,U,E,Y){var z=(E>>>1)+Y<<1,r=L[E],p=L[E+1],T=L[z]+Y,k=L[z+1],P=T*T+k*k,b=r*r+p*p;
if(k!=16383&&(r==16383||P<b)){L[E]=T;L[E+1]=k}};c.style.s1=function(L,C,U,E,Y){var z=(E>>>1)+Y*U<<1,r=L[E],p=L[E+1],T=L[z],k=L[z+1]+Y,P=T*T+k*k,b=r*r+p*p;
if(T!=16383&&(r==16383||P<b)){L[E]=T;L[E+1]=k}};c.style.a01=function(L,C,U,E,Y){var z=U*E,r=(U+E+1)*1.01;
for(var H=0;H<z;H++)if(L[H]<=Y)C[H]=r;for(var p=1;p<U;p++)C[p]=Math.min(C[p],C[p-1]);for(var T=1;T<E;
T++){var H=T*U;C[H]=Math.min(C[H],Math.min(C[H-U]+1,C[H-U+1]+Math.SQRT2));for(var p=1;p<U-1;p++){var k=C[++H],P=Math.min(C[H-1]+1,Math.min(C[H-U-1]+Math.SQRT2,Math.min(C[H-U]+1,C[H-U+1]+Math.SQRT2)));
if(P<k)C[H]=P}H++;C[H]=Math.min(C[H],Math.min(C[H-1]+1,Math.min(C[H-U-1]+Math.SQRT2,C[H-U]+1)))}for(var p=U-2;
p>=0;p--)C[p+z-U]=Math.min(C[p+z-U],C[p+z-U+1]);for(var T=E-2;T>=0;T--){var H=T*U+U-1;C[H]=Math.min(C[H],Math.min(C[H+U]+1,C[H+U-1]+Math.SQRT2));
for(var p=U-2;p>=1;p--){var k=C[--H],P=Math.min(C[H+1]+1,Math.min(C[H+U-1]+Math.SQRT2,Math.min(C[H+U]+1,C[H+U+1]+Math.SQRT2)));
if(P<k)C[H]=P}H--;C[H]=Math.min(C[H],Math.min(C[H+1]+1,Math.min(C[H+U]+1,C[H+U+1]+Math.SQRT2)))}};c.style.ajT=function(L,C,U,E,Y){var z=new Int32Array(U*E);
c.style.akQ(L,z,U,E,Y);c.style.amk(z,C,U,E)};c.style.akQ=function(L,C,U,E,Y){var z=new Int32Array(E);
for(var r=0;r<U;r++){var p=U+E;for(var T=E-1;T>=0;T--){if(L[T*U+r]>Y)p=0;else p++;z[T]=p}p=U+E;for(var T=0;
T<E;T++){if(L[T*U+r]>Y)p=0;else p++;C[T*U+r]=p<z[T]?-p:z[T]}}};c.style.amk=function(L,C,U,E){var Y=(U+E)*(U+E),z=new Float64Array(U),r=new Uint16Array(U);
for(var p=0;p<E;p++){var T=p*U,k=0;r[0]=0;z[0]=-Y;z[1]=+Y;for(var P=1;P<U;P++){var b=L[P+T]*L[P+T]+P*P,Q=(b-(L[r[k]+T]*L[r[k]+T]+r[k]*r[k]))/(2*P-2*r[k]);
while(Q<=z[k]){k--;Q=(b-(L[r[k]+T]*L[r[k]+T]+r[k]*r[k]))/(2*P-2*r[k])}k++;r[k]=P;z[k]=Q;z[k+1]=Y}k=0;
for(var P=0;P<U;P++){while(z[k+1]<P)k++;var K=r[k]-P,h=L[r[k]+T],H=p*U+P<<1;C[H]=K;C[H+1]=h}}};c.style.NK=function(L,C,U){if(U)for(var H=0;
H<L.length;H++){var E=L[H];if(E>0)L[H]=Math.max(0,Math.min(255,E+C*2*(c.style.b6(H)-128)))}else for(var H=0;
H<L.length;H++){var E=L[H];if(E>0)L[H]=Math.max(0,Math.min(255,E+Math.min(E*3,C*2*(c.style.b6(H)-128))))}};
c.style.b6=function(L){L=L^61^L>>16;L=L+(L<<3);L=L^L>>4;L=L*668265261;L=L^L>>15;return L&255};c.AF={};
c.AF.lu=function(L,C,U){var E=L.canvas,Y=B.M(),z=Math.floor;if(E.width!=z(C*Y)||E.height!=z(U*Y))B.wS(E,C,U,L)};
c.AF.ZY=function(L,C,U,E,Y,z){c.AF.lu(L,C,U);if(z==null)z=!1;var r=Y.channel,p=Y.rect,T=!Y.isEnabled;
C=Math.floor(C*B.M());U=Math.floor(U*B.M());if(C*U==0)return;var k=L.createImageData(C,U),P=k.data,b=1/C,Q=1/U;
for(var H=0;H<U;H++)for(var K=0;K<C;K++){var h=H*C+K,x=h*4,O=Math.round(E.x+K*b*E.d),y=Math.round(E.y+H*Q*E.v),v=0;
if(O<p.x||O>=p.x+p.d||y<p.y||y>=p.y+p.v)v=Y.color;else v=r[(y-p.y)*p.d+(O-p.x)];v=255*(255-Y.Ve)+v*Y.Ve>>>8;
if(z)v=170+Math.round(.4*(v-170));P[x]=v;P[x+1]=v;P[x+2]=v;P[x+3]=255}L.putImageData(k,0,0);if(T)c.AF.iB(L,C,U)};
c.AF.afg=function(L,C,U,E){L.fillStyle="#eeeeee";L.fillRect(.6*C,.6*U,C,U);L.lineWidth=1.5;var Y=.65*C,z=.95*C,r=.65*U,p=.95*U,T=.75*C,k=.85*C,P=.75*U,b=.85*U;
L.beginPath();L.moveTo(Y,r);L.lineTo(z,r);L.lineTo(z,p);L.lineTo(Y,p);L.lineTo(Y,r);L.moveTo(T,P);L.lineTo(k,P);
L.lineTo(k,b);L.lineTo(T,b);L.lineTo(T,P);L.closePath();L.stroke()};c.AF.t7=[];c.AF.aaG=function(L,C,U){var E,Y,z,r=B.M();
C=Math.floor(r*C);U=Math.floor(r*U);E=Math.ceil(Math.max(C,U)*.35);Y=C-E;z=U-E;var p=c.AF.t7[E];if(p==null){var T=B.w("canvas"),k=T.getContext("2d");
T.width=T.height=E;k.fillStyle="#eeeeee";k.fillRect(0,0,E,E);k.lineWidth=1;k.strokeRect(2.5,2.5,E-5,E-5);
var P=k.createImageData(3,3);c.n0(P.data,4278190080);P.data[4*4]=P.data[4*4+1]=P.data[4*4+2]=238;k.putImageData(P,1,1);
k.putImageData(P,E-4,1);k.putImageData(P,1,E-4);k.putImageData(P,E-4,E-4);p=c.AF.t7[E]=k.getImageData(0,0,E,E)}L.putImageData(p,Y,z)};
c.AF.adO=function(L,C,U,E,Y){c.AF.lu(L,C,U);C=Math.floor(C*B.M());U=Math.floor(U*B.M());var z=C/E.d;
if(C*U==0)return;L.fillStyle="#999999";L.setTransform(1,0,0,1,0,0);L.clearRect(0,0,C,U);var r=c.AF.Nu;
if(r==null){r=c.AF.Nu=JSON.parse(JSON.stringify(gM.H0.default));r.strokeEnabled.v=!0}r.strokeStyleLineWidth.v.val=1*B.M()/z;
L.fillStyle="#ffffff";L.scale(z,z);c.Y.VR(Y.n,L,0,0);c.Y.VR(Y.n,L,0,0,r)};c.AF.MC=null;c.AF.MK=function(L,C,U,E,Y,z,r,p){c.AF.lu(L,C,U);
C=Math.floor(C*B.M());U=Math.floor(U*B.M());if(C*U==0)return;var T=Math.max(C,U),k=c.AF.MC;if(k==null||k.width<T||k.height<T){c.AF.MC=k=L.createImageData(T,T)}T=k.width;
var P=k.data,b=E.d/C,Q=E.v/U,K=1/255,h=z.x,x=z.x+z.d,O=z.y,y=z.y+z.v;for(var H=0;H<U;H++)for(var v=0;
v<C;v++){var i=H*T+v,D=i*4,I=~~(E.x+v*b),m=~~(E.y+H*Q),f=c._k(H,v,2);if(I<h||I>=x||m<O||m>=y){P[D]=f;
P[D+1]=f;P[D+2]=f;P[D+3]=255}else{var A=(m-z.y)*z.d+(I-z.x)<<2,d=Y[A+3]*K;P[D]=Y[A+0]*d+f*(1-d);P[D+1]=Y[A+1]*d+f*(1-d);
P[D+2]=Y[A+2]*d+f*(1-d);P[D+3]=255}}if(p!=null)for(var H=0;H<P.length;H+=4)P[H]=P[H+1]=P[H+2]=P[H+p];
L.putImageData(k,0,0);if(r)c.AF.iB(L,C,U)};c.AF.aju=function(L,C,U,E){c.AF.lu(L,C,U);L.fillStyle=c.AF.Lt(E.Clr.v);
L.fillRect(0,0,C,U);c.AF.a9(L,C,U)};c.AF.$K=null;c.AF.a58=function(L,C,U,E){c.AF.lu(L,C,U);var Y=L.canvas.width,z=L.canvas.height,r=c.AF.$K;
if(r==null||r.width!=Y||r.height!=z){L.fillStyle="#ffffff";L.fillRect(0,0,C,U);L.fillStyle="#000000";
L.font=""+U*.7+"px serif";L.fillText("T",(C-U*.43)/2,U*.75);L.fillText("T",(C-U*.43)/2,U*.75);c.AF.$K=L.getImageData(0,0,Y,z)}else L.putImageData(r,0,0)};
c.AF.afz=function(L,C,U){c.AF.lu(L,C,U);L.clearRect(0,0,C,U);L.font=U*.7+"px serif";L.fillText(":(",(C-U*.43)/2,U*.7)};
c.AF.amJ=function(L,C,U,E){c.AF.lu(L,C,U);var Y=eh.get(E),z=gS.get(eh.names[Y]).substring(0,3);L.fillStyle="#ffffff";
L.fillRect(0,0,C,U);L.fillStyle="#000000";L.font=U*.55+"px sans-serif";var r=L.measureText(z);L.fillText(z,(C-r.width)/2,U*.67);
L.fillRect(0,0,C,U*.1);L.fillRect(0,U*.9,C,U*.1)};c.AF.a8E=function(L,C,U,E){c.AF.lu(L,C,U);var Y=L.canvas.width,z=L.canvas.height,r=L.getImageData(0,0,Y,z);
c.W.Rv(E.Grad.v,new Uint8Array(r.data.buffer),new _(0,0,Y,z),[1/Y,0,0,1/z],Y/2,z/2,!1,0,16711680,65280);
L.putImageData(r,0,0);c.AF.a9(L,C,U)};c.AF.a9q=function(L,C,U,E,Y){c.AF.lu(L,C,U);var z=L,r=ca.fi(E.Ptrn.v,Y.add.Patt);
if(r==null)return;var p=r.Zq[1];c.AF.MK(L,C,U,p,r.Zq[0],p,!1);c.AF.a9(z,C,U)};c.AF.iB=function(L,C,U){L.strokeStyle="#bb0000";
L.lineWidth=3;L.beginPath();L.moveTo(C*.15,U*.15);L.lineTo(C*.85,U*.85);L.moveTo(C*.85,U*.15);L.lineTo(C*.15,U*.85);
L.closePath();L.stroke()};c.AF.iB=function(L,C,U){L.strokeStyle="#bb0000";L.lineWidth=3;L.beginPath();
L.moveTo(C*.15,U*.15);L.lineTo(C*.85,U*.85);L.moveTo(C*.85,U*.15);L.lineTo(C*.15,U*.85);L.closePath();
L.stroke()};c.AF.a9=function(L,C,U){L.fillStyle="#eeeeee";L.fillRect(0,U*.75,C,U*.25);L.beginPath();
L.moveTo(0,U*.75);L.lineTo(C,U*.75);L.moveTo(C*.1,U*.875);L.lineTo(C*.9,U*.875);L.moveTo(C*.65,U*.825);
L.lineTo(C*.65,U*.95);L.closePath();L.stroke()};c.AF.Lt=function(L){var C=c.W.Lt(L),U=Math.round(C.h)<<16|Math.round(C.P)<<8|Math.round(C.O);
return"#"+c.Xo(U)};c.Y={};c.Y.GY=function(L,C,U){var E=[],Y=-1;for(var H=0;H<L.length;H++){var z=L[H];
if((z.type==0||z.type==3)&&z.ZZ!=-1)Y++;if(z.type>5||z.type==0||z.type==3)continue;if(C!=null&&C.indexOf(Y)==-1)continue;
if(U!=null&&U.indexOf(H)==-1)continue;E.push(z.OT.x);E.push(z.OT.y);E.push(z.D.x);E.push(z.D.y);E.push(z.SC.x);
E.push(z.SC.y)}return E};c.Y.FZ=function(L,C,U,E){var Y=0,z=-1;for(var H=0;H<C.length;H++){var r=C[H];
if((r.type==0||r.type==3)&&r.ZZ!=-1)z++;if(r.type>5||r.type==0||r.type==3)continue;if(U!=null&&U.indexOf(z)==-1)continue;
if(E!=null&&E.indexOf(H)==-1)continue;r.OT.U6(L[Y],L[Y+1]);r.D.U6(L[Y+2],L[Y+3]);r.SC.U6(L[Y+4],L[Y+5]);
Y+=6}};c.Y.IL=function(L,C,U,E){var Y=c.Y.GY(L,U,E);c.a.J(Y,C,Y);c.Y.FZ(Y,L,U,E)};c.Y.anl=function(L,C,U,E){var Y=c.Y.GY(L,U,E);
c.I.apply(C,Y);c.Y.FZ(Y,L,U,E)};c.Y.akj=function(L,C,U,E){if(U==null&&E==null){var Y=c.Y.abc(L,40);for(var H=0;
H<Y.length;H++)L[H]=Y[H]}var z=c.Y.GY(L,U,E);c.DL.apply(C,z,c.a.mE(z));c.Y.FZ(z,L,U,E)};c.Y.abc=function(L,C){var U=[];
for(var H=0;H<L.length;H++){var E=L[H];if(E.type>5){U.push(JSON.parse(JSON.stringify(E)));continue}var Y=c.Y.a6o(L,H+1,E.length);
Y=c.a.ub(Y,C);var z=c.Y.amo(Y);H+=E.length;E=JSON.parse(JSON.stringify(E));E.length=z.length;U.push(E);
for(var r=0;r<z.length;r++)U.push(z[r])}return U};c.Y.a6o=function(L,C,U){var E={Z:["M"],c:[]},Y=L[C],z=L[C+U-1];
E.c.push(Y.D.x,Y.D.y);for(var H=1;H<U;H++){var r=L[C+H-1],p=L[C+H];E.Z.push("C");E.c.push(r.SC.x,r.SC.y,p.OT.x,p.OT.y,p.D.x,p.D.y)}E.Z.push("C");
E.c.push(z.SC.x,z.SC.y,Y.OT.x,Y.OT.y,Y.D.x,Y.D.y);return E};c.Y.amo=function(L){var C=[],U=L.Z,E=L.c,Y=0,u=E.length;
C.push({type:2,OT:new hZ(E[u-4],E[u-3]),D:new hZ(E[0],E[1]),SC:new hZ(E[2],E[3])});for(var H=0;H<U.length-2;
H++){var z=H*6+4;C.push({type:2,OT:new hZ(E[z],E[z+1]),D:new hZ(E[z+2],E[z+3]),SC:new hZ(E[z+4],E[z+5])})}return C};
c.Y.ab$=function(L){for(var H=0;H<L.length;H++){if(L[H].type>5)continue;var C=L[H].length;if(!(C==4||C==6||C==8)){H+=C;
continue}for(var U=0;U<C;U++){var E=L[H+1+U],Y=L[H+1+(U+1)%C],z=Math.min(E.D.x,Y.D.x),r=Math.min(E.D.y,Y.D.y),p=0,T=0;
if(E.D.x<Y.D.x){p=E.D.y-r;T=p-(Y.D.x-z)}else{p=Y.D.y-r;T=p-(E.D.x-z)}if(Math.abs(T)<.2*p)return p}}return-1};
c.Y.JK=function(L,C){var U=null,E=-1,Y=!c.Y.By(L);for(var H=0;H<L.length;H++){var z=L[H];if(z.type>5)continue;
if((z.type==0||z.type==3)&&z.ZZ!=-1)E++;if(C!=null&&C.indexOf(E)==-1)continue;if(H==L.length-1)break;
var r=z.type==3,p=z.length,T=z.ZZ,k=c.Y.amG(L,H+1,p,r);if(U==null)U=k;else if(Y){if(C!=null||T==0||T==-1||T==2)U=U.EU(k);
else if(T==1)U=U;else if(T==3){U=k;Y=!1}}else{if(C!=null||T==0||T==-1||T==1)U=U.EU(k);else if(T==2)U=U;
else if(T==3)U=U.eR(k)}H+=p}if(U==null||U.d<0||U.v<0)U=new _(0,0,0,0);return U};c.Y.acU=new Float64Array(4);
c.Y.amG=function(L,H,C,U){var E=c.Y.acU;E[0]=1e30;E[1]=1e30;E[2]=-1e30;E[3]=-1e30;var Y=L[H+C-1];if(!U)c.Y.Hs(Y.D.x,Y.D.y,Y.SC.x,Y.SC.y,L[H].OT.x,L[H].OT.y,L[H].D.x,L[H].D.y,E);
for(var z=H;z<H+C-1;z++){var r=L[z],p=L[z+1];c.Y.Hs(r.D.x,r.D.y,r.SC.x,r.SC.y,p.OT.x,p.OT.y,p.D.x,p.D.y,E)}return new _(E[0],E[1],E[2]-E[0],E[3]-E[1])};
c.Y.Hs=function(L,C,U,E,Y,z,r,p,T){if(L==U&&C==E&&Y==r&&z==p){T[0]=Math.min(T[0],Math.min(L,r));T[1]=Math.min(T[1],Math.min(C,p));
T[2]=Math.max(T[2],Math.max(L,r));T[3]=Math.max(T[3],Math.max(C,p));return}var k=L,P=C,b=L,Q=C,K=40,h=1/(K-1);
for(var x=0;x<K;x++){var O=x*h,y=1-O,v=y*y*y,i=3*y*y*O,D=3*y*O*O,I=O*O*O,m=v*L+i*U+D*Y+I*r,f=v*C+i*E+D*z+I*p;
if(m<k)k=m;else if(m>b)b=m;if(f<P)P=f;else if(f>Q)Q=f}if(k<T[0])T[0]=k;if(P<T[1])T[1]=P;if(b>T[2])T[2]=b;
if(Q>T[3])T[3]=Q};c.Y.VZ=function(L,C){var U=L.length-3,E=C%U,Y=Math.floor(E);if(C<0||Y>=U)return null;
var z=L[3+Y],r=L[3+(Y+1)%U],p=z.D,T=z.SC,k=r.OT,P=r.D,b=E-Y,Q=1-b,K=Q*Q*Q*p.x+3*Q*Q*b*T.x+3*Q*b*b*k.x+b*b*b*P.x,h=Q*Q*Q*p.y+3*Q*Q*b*T.y+3*Q*b*b*k.y+b*b*b*P.y;
return new hZ(K,h)};c.Y.OC=function(L){var C=2,U=c.Y.ov(L),E=!1;for(var H=2;H<L.length;H++){var Y=L[H].ZZ;
if(Y!=null){if(Y==2||Y==0||Y==3)E=!0}}if(E&&L.length<15e3&&U>1)L=c.Y.Tx(L);var z=c.a.$x(L);return{ajy:Typr.U.pathToSVG({crds:z.c,cmds:z.Z},C),dE:E?1:0}};
c.Y.Tx=function(L){c.Y.yg();var C,U=c.Y.V$(L),E=[];for(var H=0;H<U.length;H++){var Y=U[H][0],z=U[H][1];
if(Math.abs(Y.area)<1e-5)E.push(Y);else if(C==null)C=Y;else{C=C[z](Y);C.remove()}}if(C==null)C=new paper.CompoundPath(E);
else{if(C.segments)C=new paper.CompoundPath(C);for(var H=0;H<E.length;H++){C.addChild(E[H])}}var r=L.slice(0,2);
r=r.concat(c.Y.Zz(C));if(r[2])r[2].ZZ=1;for(var H=3;H<r.length;H++)if(r[H].ZZ!=null)r[H].ZZ=-1;return r};
c.Y.yg=function(){if(c.Y.aem==null){var L=B.w("canvas");paper.setup(L);c.Y.aem=!0}};c.Y.a2x=function(L,C){c.Y.yg();
var U=[],E=c.Y.V$(L),Y=new paper.Path.Rectangle(new paper.Rectangle(C.x,C.y,C.d,C.v));Y.remove();Y.fillColor=new paper.Color(1,0,0);
for(var H=0;H<E.length;H++){if(Y.intersects(E[H][0])||Y.contains(E[H][0].children[0].segments[0].point))U.push(H)}return U};
c.Y.gW=function(L,C,U,E){c.Y.yg();var Y=U?{curves:!0,tolerance:E}:null,z=new paper.Point(C.x,C.y),r=c.Y.V$(L);
for(var H=r.length-1;H>=0;H--){var p=r[H][0],T=p.hitTest(z,Y);if(T!=null)return{Oi:H,$Y:U?T.location.index:null}}return{Oi:-1}};
c.Y.lk=function(L,C){var U=[[],[],[]];for(var H=0;H<L.length;H++){var E=L[H];if(E.type>5||E.type==0||E.type==3)continue;
if(C.qh(E.D))U[0].push(H);if(C.qh(E.OT))U[1].push(H);if(C.qh(E.SC))U[2].push(H)}return U};c.Y.afR=function(L,C,U){var E=U.slice(0),Y=[null,null],z=-1,p=null;
for(var H=2;H<L.length;H++){if((L[H].type==0||L[H].type==3)&&L[H].ZZ!=-1)z++;Y[H]=U[z]}U=Y;var r=L.slice(0,2);
Y=U.slice(0,2);for(var H=2;H<L.length;H++){if(L[H].type==0||L[H].type==3){p=L[H];r.push(p);Y.push(U[H])}else{if(C.indexOf(H)==-1){r.push(L[H]);
Y.push(U[H])}else{p.length--;c.zf.M9(U,H)}}}for(var H=2;H<r.length;H++){var T=r[H];if(T.type!=0&&T.type!=3)continue;
if(T.length==0){if(r[H+1]&&r[H+1].ZZ==-1){r[H+1].ZZ=T.ZZ}Y.splice(H,1);r.splice(H,1);H--}}for(var H=0;
H<E.length;H++)if(Y.indexOf(E[H])==-1){E.splice(H,1);H--}return r};c.Y.agk=function(L,C){var U=L.slice(0,2),E=-1;
for(var H=2;H<L.length;H++){if((L[H].type==0||L[H].type==3)&&L[H].ZZ!=-1)E++;if(C.indexOf(E)==-1)U.push(L[H])}return U};
c.Y.aiG=function(L,C){var U=L.slice(0,2),E=-1;for(var H=2;H<L.length;H++){if((L[H].type==0||L[H].type==3)&&L[H].ZZ!=-1)E++;
if(C.indexOf(E)!=-1)U.push(L[H])}return U};c.Y.acX=function(L){var C=0;for(var H=0;H<L.length;H++)if(L[H].type==0||L[H].type==3)C=H;
return L[C]};c.Y.ov=function(L){var C=-1;for(var H=0;H<L.length;H++)if((L[H].type==0||L[H].type==3)&&L[H].ZZ!=-1)C++;
return C+1};c.Y.Jt=function(L,C,U){var E=-1;for(var H=0;H<L.length;H++)if((L[H].type==0||L[H].type==3)&&(U||L[H].ZZ!=-1)){E++;
if(E==C)return H}return-1};c.Y.Ku=function(L,C,U){var E=-1;for(var H=0;H<L.length;H++)if((L[H].type==0||L[H].type==3)&&(U||L[H].ZZ!=-1)){if(H>=C)return E;
E++}return E};c.Y.Hb=function(L,C){var U=-1,E=0;for(var H=0;H<L.length;H++){if((L[H].type==0||L[H].type==3)&&L[H].ZZ!=-1)U++;
if(U==C)E++}return E};c.Y.alF=function(L){var C=180;for(var H=0;H<L.length;H++){if(L[H].type!=0&&L[H].type!=3)continue;
var U=L[H].length;if(U<3)continue;for(var E=0;E<U;E++){var Y=L[H+1+(E-1+U)%U],z=L[H+1+E],r=L[H+1+(E+1)%U],p=z.D,T=z.OT.cg(p)?Y.SC:z.OT,k=z.SC.cg(p)?r.OT:z.SC;
if(p.cg(T)||p.cg(k))continue;var P=T.x-p.x,b=T.y-p.y,Q=k.x-p.x,K=k.y-p.y,T=Math.atan2(T.y-p.y,T.x-p.x)*180/Math.PI,k=Math.atan2(k.y-p.y,k.x-p.x)*180/Math.PI,h=Math.abs(k-T)%360,x=h>180?360-h:h;
if(x<C)C=x}}return C*Math.PI/180};c.Y.Zz=function(L){var C=L.segments?[L]:L.children,U=[];for(var H=0;
H<C.length;H++){var E=C[H],Y=E.segments,z=E.closed?0:3,r=U.length,p=null;if(Y.length<=1)continue;U.push({type:z,length:Y.length,ZZ:0,A9:2});
for(var T=0;T<Y.length;T++){var k=Y[T],P=new hZ(k.handleIn.x,k.handleIn.y),b=new hZ(k.handleOut.x,k.handleOut.y),Q=new hZ(k.point.x,k.point.y),K={type:z+1,OT:Q.add(P),D:Q,SC:Q.add(b)};
if(p==null)p=K;U.push(K);if(T+1==Y.length&&hZ.sl(p.D,K.D)<1e-5){U.pop();U[r].length--;p.OT=K.OT;if(z==3)for(var h=r;
h<U.length;h++)U[h].type-=3}}}return U};c.Y.V$=function(L){c.Y.yg();var C=[],U,E=new paper.Color(1,0,0);
function Y(K,p){K.remove();K.closed=!p;K.fillRule="evenodd"}for(var H=0;H<L.length;H++){if(L[H].type>5)continue;
var z=L[H].length,r;if(H==L.length-1)break;var p=L[H].type==3;if(H==2){if(!c.Y.M8(L))r="subtract";else r="unite"}else{if(L[H].ZZ==0)r="exclude";
if(L[H].ZZ==1)r="unite";if(L[H].ZZ==2)r="subtract";if(L[H].ZZ==3)r="intersect"}if(L[H].ZZ!=-1){U=new paper.CompoundPath;
C.push([U,r]);U.fillRule="evenodd";U.fillColor=E}var T=[];for(var k=0;k<z;k++){var P=L[H+1+k],b=P.OT.AE(P.D),Q=P.SC.AE(P.D);
T.push([[P.D.x,P.D.y],[b.x,b.y],[Q.x,Q.y]])}var K=new paper.Path(T);Y(K,p);U.addChild(K);H+=z}return C};
c.Y.e$=function(L){for(var H=0;H<L.length;H++){var C=L[H];if(C.D==null)continue;if(!C.D.cg(C.OT)||!C.D.cg(C.SC))return!1}return!0};
c.Y.a8x=function(L){if(L.length<=5)return 0;var C=0,U=L.length-3-1;for(var H=0;H<U;H++){var E=L[3+H],Y=L[3+H+1];
if(E.type==0||Y.type==0)return 0;C+=(Y.D.x-E.D.x)*(E.D.y+Y.D.y)}C+=(L[3].D.x-L[3+U].D.x)*(L[3+U].D.y+L[3+1].D.y);
return-C*.5};c.Y.By=function(L){var C=L[2],U=!1;if(L.length==2)U=L[1].all==0;else if(L[1].all==1){if(C.ZZ==1||C.ZZ==3)U=!0;
else U=!1}else{if(C.ZZ==1||C.ZZ==3||C.ZZ==0)U=!0;else U=!1}return U};c.Y.M8=function(L){var C=c.Y.By(L);
for(var H=3;H<L.length;H++)if(L[H].ZZ==3)C=!0;return C};c.Y.alU=0;c.Y.uM=0;c.Y.ajx=0;c.Y.af6=function(L,C,U,E){if(U.ue())return;
var Y=U.X(),i=16384;c.Y.alU+=Y;if(Y>c.Y.uM){c.Y.uM=Y}var z=U.d,r=U.v;if(E==null&&c.Y.e$(L)){var p=!0;
for(var H=2;H<L.length;)if(L[H].length==2)H+=3;else{p=!1;break}if(p){return}if(c.Y.tk(L)){C.fill(255);
var T=c.Y.JK(L);if(T.X()!=Y){var k=1-(T.x-U.x),P=1-(T.y-U.y),b=1-(U.x+U.d-(T.x+T.d)),Q=1-(U.x+U.v-(T.x+T.v)),K=~~(k*255),h=~~(b*255),x=~~(P*255),O=~~(Q*255);
C.fill(x,0,z);C[0]=~~(k*P*255);C[z-1]=~~(b*P*255);for(var H=z;H<Y;H+=z){C[H]=K;C[H+z-1]=h}C.fill(O,(r-1)*z,r*z);
C[Y-z]=~~(k*Q*255);C[Y-1]=~~(b*Q*255)}return}}var y=c.Vb,v=c.e4,D=Math.ceil(z/i),I=Math.ceil(r/i),m=Math.ceil(z/D),f=Math.ceil(r/I),A=Date.now();
for(var d=0;d<I;d++)for(var g=0;g<D;g++){var X=g*m,n=d*f,R=m,l=f;y.width=R;y.height=l;if(!c.Y.By(L))v.fillRect(0,0,R,l);
c.Y.VR(L,v,-U.x-X,-U.y-n,E);var w=new Uint8Array(v.getImageData(0,0,R,l).data.buffer);if(R==z&&l==r)c.wH(w,C,3);
else c.LK(w,new _(X,n,R,l),C,new _(0,0,z,r))}};c.Y.VR=function(L,C,U,E,Y){if(Y!=null&&Y.fillEnabled.v){var z=!1,r=!1,p=0;
for(var H=0;H<L.length;H++){var T=L[H].ZZ;if(T!=null)p++;if(T==-1)z=!0;if(T>0)r=!0}if(!z&&p<20)L=c.Y.Tx(L)}for(var H=0;
H<L.length;H++){if(L[H].type>5)continue;var k=L[H].length;if(k==0)continue;if(H==L.length-1)break;var P=L[H].type==3,T=L[H].ZZ;
if(T!=-1&&Y==null){var b=["xor","source-over","destination-out","source-in"][T];C.globalCompositeOperation=b}if(L[H].ZZ!=-1){C.beginPath();
if(Y){var Q=Y.strokeStyleLineWidth.v.val,K=Y.strokeStyleLineAlignment.v.strokeStyleLineAlignment,h=Y.strokeStyleLineCapType.v.strokeStyleLineCapType,x=Y.strokeStyleLineJoinType.v.strokeStyleLineJoinType,O=Y.strokeStyleMiterLimit.v,y=[],v=Y.strokeStyleLineDashSet.v;
for(var i=0;i<v.length;i++)y.push(v[i].v.val*Q);C.setLineDash(y);C.lineCap=["butt","round","square"][gM.H0.h9.indexOf(h)];
C.lineJoin=["miter","round","bevel"][gM.H0.join.indexOf(x)];C.lineWidth=gM.H0.jr.indexOf(K)==1?Q:Q*=2;
C.miterLimit=O}}c.Y.ahK(C,L,H+1,k,U,E,P);if(P){}else C.closePath();if(L[H+1+k]==null||L[H+1+k].ZZ!=-1){if(Y)C.stroke();
else C.fill("evenodd")}H+=k}};c.Y.ahK=function(L,C,H,U,E,Y,z){var r=C[H],p=null;L.moveTo(r.D.x+E,r.D.y+Y);
for(var T=H;T<H+U-1;T++){r=C[T];p=C[T+1];L.bezierCurveTo(r.SC.x+E,r.SC.y+Y,p.OT.x+E,p.OT.y+Y,p.D.x+E,p.D.y+Y)}if(!z){r=C[T];
p=C[H];L.bezierCurveTo(r.SC.x+E,r.SC.y+Y,p.OT.x+E,p.OT.y+Y,p.D.x+E,p.D.y+Y)}};c.Y.Hw=function(L,C,U){var E=[],Y=U?4:1,z=!1;
if(C!=null)for(var H=0;H<C.length;H++)if(C[H]!=0){z=!0;break}if(C!=null&&z){var r=c.a.al5(L,C),p=r.length/6;
for(var H=0;H<p;H++){var T=H*6,k=(H-1+p)%p*6,P=r[T],b=r[T+1],Q=r[T+2],K=r[T+3],h=r[k+4],x=r[k+5];E.push({type:Y,OT:new hZ(h,x),D:new hZ(P,b),SC:new hZ(Q,K)})}}else{for(var H=0;
H<L.length;H+=2){var O=new hZ(L[H],L[H+1]);E.push({type:Y,OT:O.clone(),D:O.clone(),SC:O.clone()})}}return E};
c.Y.nx=function(L,C){c.Y.yg();var U=new paper.Path;U.remove();var E=L.length-1,Y=Math.sqrt((L[E-1]-L[0])*(L[E-1]-L[0])+(L[E]-L[1])*(L[E]-L[1]))<3;
U.closed=Y;for(var H=0;H<L.length;H+=2)U.add(new paper.Point(L[H],L[H+1]));U.simplify(C);var z=[{type:6},{type:8,all:0}];
z=z.concat(c.Y.Zz(U));return z};c.Y.$r=function(L,C,U){var E=L[C].length,Y=L[C].type,z=0,r=L.slice(C+1,C+1+E);
for(var H=0;H<E;H++){var p=U[(H-1+E)%E],T=U[(H+1+E)%E],k=U[H];if(k!=0){var P=r[(H-1+E)%E].D,b=r[(H+0+E)%E].D,Q=r[(H+1+E)%E].D,K=hZ.sl(b,P),h=hZ.sl(b,Q),x=c.a.Ao(P.x,P.y,b.x,b.y,Q.x,Q.y,k)[0],O=Math.min(x,p==0?K:K/2,T==0?h:h/2);
k*=O/x;var y=c.a.c9(P.x,P.y,b.x,b.y,Q.x,Q.y,k),v={type:Y+1,OT:new hZ(y[2],y[3]),D:new hZ(y[2],y[3]),SC:new hZ(y[4],y[5])},i={type:Y+1,OT:new hZ(y[6],y[7]),D:new hZ(y[8],y[9]),SC:new hZ(y[8],y[9])};
L.splice(C+z+1,1,v,i);z++;L[C].length++}z++}};c.Y.e$=function(L){for(var H=0;H<L.length;H++){var C=L[H],U=C.type;
if(U==1||U==2||U==4||U==5)if(!C.D.cg(C.OT)||!C.D.cg(C.SC))return!1}return!0};c.Y.tk=function(L){if(L.length!=7||!c.Y.e$(L))return!1;
for(var H=0;H<4;H++){var C=!0;for(var U=0;U<4;U++){var E=L[3+(H+U&3)],Y=L[3+(H+U+1&3)];if(E.D.x!=Y.D.x&&E.D.y!=Y.D.y)C=!1}if(C)return!0}return!1};
c.Y.tD={};c.Y.tD.pz=function(L,C,U){var E=[{type:6},{type:8,all:0}],Y=null;E.push({type:U?3:0,ZZ:1,length:0,Tn:0,Jh:0,A9:1});
if(C==0)Y==null;else if(C instanceof Array)Y=C;else{Y=[];for(var H=0;H<L.length;H+=2)Y.push(C)}E=E.concat(c.Y.Hw(L,Y,U));
E[2].length=E.length-3;return E};c.Y.tD.a7B=function(L,C,U,E,Y){var z=[],r=[],p=.553,T=1,k=-1;z.push({type:1,OT:new hZ(0,p),D:new hZ(0,0),SC:new hZ(0,-p)});
Y+=2;for(var H=0;H<Y;H++){var P={type:1};if(H==0){P.D=new hZ(1,-1);P.OT=new hZ(1-p,-1);P.SC=new hZ(1+p,-1)}else{var b=-(H+2)*Math.PI/2,Q=1+((H&1)==1?H-1:H),K=Math.sin(b),h=Math.cos(b);
T+=Q*(K-h);k+=Q*(h+K);P.D=new hZ(T,k);P.OT=new hZ(T+Q*h*p,k-Q*K*p);if((H&1)==1)Q+=2;P.SC=new hZ(T-Q*h*p,k+Q*K*p)}var x={type:1,OT:new hZ(-P.SC.x,-P.SC.y),D:new hZ(-P.D.x,-P.D.y),SC:new hZ(-P.OT.x,-P.OT.y)};
z.push(P);if(H<Y-2)r.push(x)}r.reverse();z=z.concat(r);var O=[{type:6},{type:8,all:0}];O.push({type:0,ZZ:1,length:z.length,Tn:0,Jh:0,A9:1});
O=O.concat(z);var y=new c0(U/Y,0,0,U/Y,0,0);y.rotate(E);y.translate(L,C);c.Y.IL(O,y);return O};c.Y.tD.Rect=function(L,C,U,E,Y){var z=[L,C,L+U,C,L+U,C+E,L,C+E];
return c.Y.tD.pz(z,Y)};c.Y.tD.gE=function(L,C,U,E,Y,z){var r=[],p=2*Math.PI/Y;for(var H=0;H<Y;H++)r.push(Math.cos(H*p),Math.sin(H*p));
var T=new c0(U,0,0,U,0,0);T.rotate(E);T.translate(L,C);c.a.J(r,T,r);return c.Y.tD.pz(r,z)};c.Y.tD.adw=function(L,C,U,E,Y,z,r){var p=[],T=Math.PI/Y;
for(var H=0;H<Y*2;H++){var k=(H&1)==0?1:r;p.push(k*Math.cos(H*T),k*Math.sin(H*T))}var P=new c0(U,0,0,U,0,0);
P.rotate(E);P.translate(L,C);c.a.J(p,P,p);return c.Y.tD.pz(p,z)};c.Y.tD.pN=function(L,C,U,E,Y){return c.Y.tD.o_(0,L,C,U,E,Y)};
c.Y.tD.am6=function(L,C,U,E,Y,z){return c.Y.tD.o_(1,L,C,U,E,Y,z)};c.Y.tD.o_=function(L,C,U,E,Y,z,r){var p=Math.sqrt((E-C)*(E-C)+(Y-U)*(Y-U)),T;
z/=2;if(L==0)T=[-z,0,z,0,z,p,-z,p];else{var k=z*2*r*1.3/1.5,P=z*r;T=[-z,0,z,0,z,p-k,P,p-k,0,p,-P,p-k,-z,p-k]}var b=new c0(1,0,0,1,0,0);
b.rotate(Math.atan2(-Y+U,E-C)+Math.PI/2);b.translate(C,U);c.a.J(T,b,T);return c.Y.tD.pz(T,0)};c.Y.tD.vm=function(L,C,U,E){var Y=[{type:6},{type:8,all:0}],b=.553;
Y.push({type:0,ZZ:1,length:4,Tn:0,Jh:0,A9:1});var z=L,r=C,p=L+U,T=C+E,L=(z+p)/2,C=(r+T)/2,k=(z-p)/2,P=(r-T)/2;
Y.push({type:1,OT:new hZ(L-b*k,C-P),D:new hZ(L,C-P),SC:new hZ(L+b*k,C-P)});Y.push({type:1,OT:new hZ(L+k,C-b*P),D:new hZ(L+k,C),SC:new hZ(L+k,C+b*P)});
Y.push({type:1,OT:new hZ(L+b*k,C+P),D:new hZ(L,C+P),SC:new hZ(L-b*k,C+P)});Y.push({type:1,OT:new hZ(L-k,C+b*P),D:new hZ(L-k,C),SC:new hZ(L-k,C-b*P)});
return Y};c.Y.tD.ah$=function(L,C,U,E,Y){var z=[{type:6},{type:8,all:0}];z.push({type:3,ZZ:1,length:5,Tn:0,Jh:0,A9:1});
var r=(Y-E)/4;for(var H=0;H<5;H++){var p=H*r,T=Math.cos(p),k=Math.sin(p),P=.553*(r/(Math.PI/2)),b=k*P,Q=-T*P,K=new hZ(T,k);
z.push({type:4,OT:H==0?K.clone():new hZ(T+b,k+Q),D:K,SC:H==4?K.clone():new hZ(T-b,k-Q)})}var h=new c0;
h.rotate(-E);h.scale(U,U);h.translate(L,C);c.Y.IL(z,h);return z};c.h2={};c.h2.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]};
c.h2.D3=function(L){var C=L.warpStyle.v.warpStyle;if(C=="warpNone")return!0;else if(C=="warpCustom"){var U=!1,E=L.customEnvelopeWarp.v.meshPoints.v.arr,Y=E[0].arr,z=E[1].arr;
for(var H=0;H<4;H++)for(var r=0;r<4;r++){if(Math.abs(Y[H]-Y[r*4+H])>1||Math.abs(z[H*4]-z[H*4+r])>1)U=!0}return!U}else return L.warpValue.v==0&&L.warpPerspective.v==0&&L.warpPerspectiveOther.v==0};
c.h2.F=function(L){var C={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(L){C.bounds={t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:L.y}},Left:{t:"UntF",v:{type:"#Pxl",val:L.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:L.y+L.v}},Rght:{t:"UntF",v:{type:"#Pxl",val:L.x+L.d}}}};
C.uOrder={t:"long",v:4};C.vOrder={t:"long",v:4}}return C};c.h2.akF=function(L,C,U,E){for(var H=0;H<L.length;
H+=2){var Y=L[H],z=L[H+1],r=(Y-C.x)/C.d,p=(z-C.y)/C.v,T=(1-U)/2,k=1-T,P=T+r*(k-T);p=.5+(p-.5)*P*2;var b=(1-E)/2,Q=1-b,K=b+p*(Q-b);
r=.5+(r-.5)*K*2;Y=C.x+r*C.d;z=C.y+p*C.v;L[H]=Y;L[H+1]=z}};c.h2.vn=function(L,C){var U=[],E=[];for(var H=0;
H<L.length;H+=2){U.push(L[H]);E.push(L[H+1])}var Y=[];Y.push({id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:U});
Y.push({id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:E});C.warpStyle.v.warpStyle="warpCustom";C.customEnvelopeWarp={t:"Objc",v:{classID:"customEnvelopeWarp",meshPoints:{t:"ObAr",v:{classID:"rationalPoint",arr:Y}}}}};
c.h2.b4=function(L,C){if(C==null){var U=L.bounds.v,E=U.Left.v.val,Y=U.Rght.v.val,z=U.Top.v.val,r=U.Btom.v.val;
C=new _(E,z,Y-E,r-z)}if(C.ue())C.d=C.v=1;var p=[],T=L.warpStyle.v.warpStyle;if(T=="warpCustom"){var k=L.customEnvelopeWarp.v.meshPoints.v.arr,P=k[0].arr,b=k[1].arr;
for(var H=0;H<16;H++)p.push(P[H],b[H])}else p=c.h2.h2(C,T,L.warpRotate.v.Ornt=="Hrzn",L.warpValue.v/100,L.warpPerspective.v/100,L.warpPerspectiveOther.v/100);
return p};c.h2.h2=function(L,C,U,E,Y,z){var r=c.DL.F(L.x,L.y,L.d,L.v);if(C=="warpNone")return r;var p=JSON.parse(JSON.stringify(L)),T=new c0;
if(!U){T.translate(-L.x,-L.y);T.rotate(-Math.PI/2);T.translate(L.v,0);c.a.J(r,T,r);L=new _(0,0,L.v,L.d);
r=c.DL.xN(r,!1)}c.h2.aiK(r,L,C,E,Y,z);if(!U){r=c.DL.xN(r,!0);L=p;T.G$();c.a.J(r,T,r)}if(E==0)c.h2.akF(r,L,Y,z);
else{var T=new c0(1/L.d,0,0,1/L.v,-L.x,-L.y);T.translate(-.5,-.5);c.a.J(r,T,r);c.h2.a27(r,z,Y);T.G$();
c.a.J(r,T,r)}return r};c.h2.aiK=function(L,C,U,E,Y,z){for(var H=0;H<4;H++){for(var r=0;r<4;r++){var p=2*(4*H+r),T=L[p]-C.x,k=L[p+1]-C.y,P=T,b=k;
if(E!=0){var Q=C.d/2,K=C.v/2;P-=Q;b-=K;var h=P,x=P,O=-K,y=K,v=Math.abs(E),i=Math.tan((1-v)*Math.PI/2),D=Math.sqrt(i*i+1),I=Math.atan2(1,i),m=P/Q*I,f=Q*D,A=Q*D+C.v,d=Math.cos(I),g=Math.sin(I),X=c.h2.a0k(d,g),n=c.h2.a0A(d,g),R=-i*Q+X*f;
if(U=="warpArc"){h=Math.sin(m)*A;O=i*Q-Math.cos(I)*A+K;x=Math.sin(m)*f;y=i*Q-Math.cos(I)*f+K;if(r==1||r==2){h=r==1?-n*A:n*A;
x=r==1?-n*f:n*f;O=i*Q+K-X*A;y=i*Q+K-X*f}if(E<0){var l=h;h=x;x=l;l=O;O=-y;y=-l}}if(U=="warpArcLower"){if(r==1||r==2){x=r==1?-n*f:n*f;
y=E<0?K-R:K+R}}if(U=="warpArcUpper"||U=="warpArch"||U=="warpBulge"){if(r==1||r==2){h=r==1?-n*f:n*f;O=E<0?-K+R:-K-R}if(U=="warpArch"){x=h;
y=O+2*K}if(U=="warpBulge"){x=h;y=-O}}if(U=="warpFish"||U=="warpFlag"||U=="warpWave"){if(r==1){O-=E*4*K;
y+=E*4*K}if(r==2){O+=E*4*K;y-=E*4*K}if(U=="warpFlag"||U=="warpWave")O=y-2*K}if(U=="warpRise"){if(r<2)O=-K+E*K*4;
y=O+2*K}var w=(b+K)/C.v;P=h+w*(x-h);b=O+w*(y-O);if(U=="warpWave"){if(H==0)b=-K;if(H==3)b=K;if(H==1||H==2)b=2*K*(H/3-.5)*(1/3)+b*(2/3)}if(U=="warpFisheye"){if((H==1||H==2)&&(r==1||r==2)){P=P+4*P*E;
b=b+4*b*E}}if(U=="warpInflate"){var V=2/3;if((H==1||H==2)&&(r==1||r==2)){P=P+.5*P*E;b=b+.5*b*E}else if(H==1||H==2)P=P+V*P*E;
else if(r==1||r==2)b=b+V*b*E}if(U=="warpSqueeze"){var V=2/3;if((H==1||H==2)&&(r==1||r==2)){if(E>0)P=P-V*P*E;
else b=b+V*b*E}else if(H==1||H==2)P=P-V*P*E;else if(r==1||r==2)b=b+V*b*E}if(U=="warpTwist"){if((H==1||H==2)&&(r==1||r==2)){var F=E*Math.PI/2,D=1+Math.abs(E)*2,Z=P*Math.cos(F)-b*Math.sin(F),M=P*Math.sin(F)+b*Math.cos(F);
P=Z*D;b=M*D}}if(U=="warpShellLower"||U=="warpShellUpper"){if(U=="warpShellUpper"){H=3-H;b=-b}if(H>2||H==2&&(r==0||r==3)){if(E>0){var a=f+H/3*2*K;
P=Math.sin(m)*a;b=-i*Q-K+Math.cos(m)*a;if(r==1||r==2){P=r==1?-n*a:n*a;b=-i*Q-K+X*a}}else{if((r==1||r==2)&&H==3){P=r==1?-n*f:n*f;
b=i*Q-X*f+K}else if(H==2){b=K-K*(2/3)*Math.cos(m);P=P+K*(2/3)*Math.sin(m)}}}if(U=="warpShellUpper"){H=3-H;
b=-b}}P+=Q;b+=K}T=P,k=b;L[p]=T+C.x;L[p+1]=k+C.y}}};c.h2.a27=function(L,C,U){var E=[];for(var Y=0;Y<4;
Y++)E.push(1-U+Y/3*2*U);var z=[];for(var Y=0;Y<4;Y++)z.push(1-C+Y/3*2*C);var r=[0,0,0,0],p=[0,0,0,0];
for(var H=0;H<4;H++)for(var Y=0;Y<4;Y++){var T=2*(4*H+Y),k=L[T],P=L[T+1];r[Y]+=k/4;p[Y]+=P/4}for(var H=0;
H<4;H++)for(var Y=0;Y<4;Y++){var b=E[Y],T=2*(4*H+Y),k=L[T],P=L[T+1],Q=r[Y],K=p[Y];L[T]=Q+b*(k-Q);L[T+1]=K+b*(P-K)}var h=L.slice(0);
for(var H=0;H<4;H++)for(var Y=1;Y<3;Y++){var T=2*(4*H+Y),k=L[T],P=L[T+1],x=T+(Y==1?-2:2),O=L[x],y=L[x+1];
L[T]=k-O;L[T+1]=P-y}var v=L[0],i=L[1],D=L[8],I=L[9],m=L[16],f=L[17],A=L[24],d=L[25],g=L[6],X=L[7],n=L[14],R=L[15],l=L[22],w=L[23],V=L[30],F=L[31],Z=g-v,M=X-i,a=n-D,e=R-I,N=l-m,J=w-f,s=V-A,f5=F-d;
for(var H=0;H<4;H++){var dx=2*H*4,fq=0,i9=0,e8=H==1?.33:.66,S=1-e8;if(H==0){fq=Z;i9=M}if(H==1){fq=S*Z+e8*-s;
i9=S*M+e8*-f5}if(H==2){fq=S*Z+e8*-s;i9=S*M+e8*-f5}if(H==3){fq=-s;i9=-f5}L[dx]=L[dx]+fq/2;L[dx+1]=L[dx+1]+i9/2;
L[dx+6]=L[dx+6]-fq/2;L[dx+7]=L[dx+7]-i9/2}for(var H=0;H<4;H++)for(var Y=1;Y<3;Y++){var T=2*(4*H+Y),k=L[T],P=L[T+1],x=T+(Y==1?-2:2),O=L[x],y=L[x+1],b=2*H/3;
L[T]=O+b*k;L[T+1]=y+b*P}for(var H=1;H<3;H++)for(var Y=1;Y<3;Y++){var T=2*(4*H+Y),k=L[T],P=L[T+1],fs=H==1?-8:-16,bz=H==1?16:8,g6=L[T+fs],al=L[T+fs+1],bj=L[T+bz],bE=L[T+bz+1],b=H/3;
k=(1-b)*g6+b*bj;P=(1-b)*al+b*bE;L[T]=k;L[T+1]=P}c.a.YK(h,L,L,C)};c.h2.a0k=function(L,C){return(4-L)*(1/3)};
c.h2.a0A=function(L,C){return(1-L)*(3-L)/(3*C)};c.hk={};c.hk.amx=function(L,C,U,E,Y,z,r,p,T,k){for(var P=0;
P<p;P++)for(var b=0;b<r;b++){var Q=3*(P*r+b),K=P+z,h=b+Y,x=L[K*C+h];E[Q]=x;E[Q+1]=x;E[Q+2]=x}};c.hk.fw=function(L,C,U,E,Y,z,r,p,T,k){var P=[0,1,1/2,1/3,1/4,1/5,1/6,1/7,1/8,1/9],b=1/T,Q=[-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1],K=new Uint32Array(6);
for(var h=0;h<p;h++){for(var x=0;x<r;x++){var O=3*(h*r+x),y=h+z,v=x+Y;K[0]=0;K[1]=0;K[2]=0;K[3]=0;K[4]=0;
K[5]=0;for(var H=0;H<16;H+=2){var i=v+Q[H],D=y+Q[H+1],I=i-T*~~(i*b),m=D-T*~~(D*b),f=k[m*T+I];K[f]+=L[D*C+i];
K[f+3]++}var i=v,D=y,I=i-T*~~(i*b),m=D-T*~~(D*b),f=k[m*T+I];K[f]=L[y*C+v];K[f+3]=1;E[O]=K[0]*P[K[3]];
E[O+1]=K[1]*P[K[4]];E[O+2]=K[2]*P[K[5]]}}};c.hk.Yu=function(L,C,U){for(var H=0;H<U;H+=2)L[C+H]=L[C+H+1];
C=C+U;for(var H=0;H<U;H+=2)L[C+H+1]=L[C+H]};c.hk.aM=function(L,C,U,E){for(var H=0;H<E;H+=2){var Y=C+H*U;
L[Y]=L[Y+U];L[Y+U+1]=L[Y+1]}};c.hk.cO=function(L,C,U,E,Y,z){var r=E[Y],p=E[Y+1],T=E[z],k=E[z+1],P=p+T>>>1;
L[C]=L[C+3]=L[U]=L[U+3]=r;L[C+1]=P;L[C+4]=p;L[U+1]=T;L[U+4]=P;L[C+2]=L[C+5]=L[U+2]=L[U+5]=k};c.hk.a5T=function(L,C,U,E,Y,z){var r=z*3;
for(var H=0;H<z;H+=2){var p=C+H,T=Y+H*3;c.hk.cO(E,T,T+r,L,p,p+U)}};c.hk.a6N=function(L,C,U,E,Y,z,r){var p=z*3;
for(var H=0;H<r;H+=2){var T=C+H*U,k=Y+H*z*3;c.hk.cO(E,k,k+p,L,T,T+U)}};c.hk.Ms=function(L,H,C){var U=L[H-C-C],E=L[H-C],Y=L[H-2],z=L[H-1],r=L[H],p=L[H+1],T=L[H+2],k=L[H+C],P=L[H+C+C],b=Math.abs(E-k),Q=Math.abs(z-p),K=Math.abs(r-U)*2+b,h=Math.abs(r-T)*2+Q,x=Math.abs(r-Y)*2+Q,O=Math.abs(r-P)*2+b,v=Math.min(K,Math.min(h,Math.min(x,O)));
if(v==K)return E*3+k+r-U>>2;if(v==h)return p*3+z+r-T>>2;if(v==x)return z*3+p+r-Y>>2;return k*3+E+r-P>>2};
c.hk.C3=function(L,C,U,E,Y){if(L<C&&C<U||L>C&&C>U)return~~(.5+E+(Y-E)*(C-L)/(U-L));else return(E+Y>>1)+(C+C-L-U>>2)};
c.hk.mB=function(L,C,H,U){var E=C[H-U-1],Y=C[H-U+1],z=C[H],r=C[H+U-1],p=C[H+U+1],T=L[H-U-1],k=L[H-U+1],P=L[H],b=L[H+U-1],Q=L[H+U+1],K=Math.abs(k-b)+Math.abs(L[H-U-U+2]-P)+Math.abs(P-L[H+U+U-2])+Math.abs(Y-z)+Math.abs(z-r),h=Math.abs(T-Q)+Math.abs(L[H-U-U-2]-P)+Math.abs(P-L[H+U+U+2])+Math.abs(E-z)+Math.abs(z-p);
if(K<h)return c.hk.C3(Y,z,r,k,b);else return c.hk.C3(E,z,p,T,Q)};c.hk.j$=function(L,C,U,E,Y,z){L[C+0]=U[Y];
L[C+1]=E[Y];L[C+2]=c.hk.mB(U,E,Y,z)};c.hk.Kx=function(L,C,U,E,Y,z){var r=E[Y];L[C+0]=c.hk.C3(E[Y-1],r,E[Y+1],U[Y-1],U[Y+1]);
L[C+1]=r;L[C+2]=c.hk.C3(E[Y-z],r,E[Y+z],U[Y-z],U[Y+z])};c.hk.Zc=function(L,C,U,E,Y,z){var r=E[Y];L[C+0]=c.hk.C3(E[Y-z],r,E[Y+z],U[Y-z],U[Y+z]);
L[C+1]=r;L[C+2]=c.hk.C3(E[Y-1],r,E[Y+1],U[Y-1],U[Y+1])};c.hk.hE=function(L,C,U,E,Y,z){L[C+0]=c.hk.mB(U,E,Y,z);
L[C+1]=E[Y];L[C+2]=U[Y]};c.hk.adL=function(L,C,U,E,Y,z,r,p,T){var k=Date.now(),P=2,b=C-2,Q=2;if((Y&1)==1){P++;
b--}var K=U-2;if((z&1)==1){Q++;K--}if(T==1||T==3){P++;b--}var h=L.slice(0);c.hk.Yu(h,0,C);c.hk.aM(h,0,C,U);
c.hk.aM(h,C-2,C,U);c.hk.Yu(h,(U-2)*C,C);for(var x=Q;x<K;x+=2)for(var O=P;O<b;O+=2){var H=x*C+O,y=c.hk.Ms(h,H,C),v=c.hk.Ms(h,H+C+1,C);
h[H]=Math.max(0,y);h[H+C+1]=Math.max(0,v)}var i=r,D=p;if(z+p==U){D-=2;c.hk.a5T(L,(U-2)*C+Y,C,E,(p-2)*r*3,r)}if(Y+r==C){i-=2;
c.hk.a6N(L,z*C+Y+r-2,C,E,(r-2)*3,r,p)}if(T==0)for(var x=0;x<D;x+=2)for(var O=0;O<i;O+=2){var I=(x+z)*C+O+Y,m=(x*r+O)*3;
c.hk.j$(E,m,L,h,I,C);c.hk.Kx(E,m+3,L,h,I+1,C);I+=C;m+=3*r;c.hk.Zc(E,m,L,h,I,C);c.hk.hE(E,m+3,L,h,I+1,C)}else if(T==1)for(var x=0;
x<D;x+=2)for(var O=0;O<i;O+=2){var I=(x+z)*C+O+Y,m=(x*r+O)*3;c.hk.Kx(E,m,L,h,I,C);c.hk.j$(E,m+3,L,h,I+1,C);
I+=C;m+=3*r;c.hk.hE(E,m,L,h,I,C);c.hk.Zc(E,m+3,L,h,I+1,C)}else if(T==2)for(var x=0;x<D;x+=2)for(var O=0;
O<i;O+=2){var I=(x+z)*C+O+Y,m=(x*r+O)*3;c.hk.hE(E,m,L,h,I,C);c.hk.Zc(E,m+3,L,h,I+1,C);I+=C;m+=3*r;c.hk.Kx(E,m,L,h,I,C);
c.hk.j$(E,m+3,L,h,I+1,C)}else if(T==3)for(var x=0;x<D;x+=2)for(var O=0;O<i;O+=2){var I=(x+z)*C+O+Y,m=(x*r+O)*3;
c.hk.Zc(E,m,L,h,I,C);c.hk.hE(E,m+3,L,h,I+1,C);I+=C;m+=3*r;c.hk.j$(E,m,L,h,I,C);c.hk.Kx(E,m+3,L,h,I+1,C)}};
c.raw={};c.raw.abn=function(L){var C=L.width,U=L.height,E=Date.now(),Y=c.raw.ajR(L),z=0,r=0;c.raw.H2(2,L,Y,C,U);
var p=C,T=U;if(L.t50829){var k=L.t50829;z=k[1];r=k[0];p=k[3];T=k[2]}if(L.t50719){var P=L.t50719;z+=P[0]>>1<<1;
r+=P[1]>>1<<1}if(L.t50720){var b=L.t50720;p=z+b[0];T=r+b[1]}var Q=p-z,K=T-r,h=new Float32Array(Q*K*3);
if(L.t277[0]==1){var x=L.t33421;if(x==null){c.hk.amx(Y,C,U,h,z,r,Q,K)}else if(x.length!=2||x[0]!=2||x[1]!=2){console.log("Unknown CFA pattern size",x);
c.hk.fw(Y,C,U,h,z,r,Q,K,x[0],L.t33422)}else{var O=L.t33422.join(","),y=0;if(O=="0,1,1,2")y=0;else if(O=="1,0,2,1")y=1;
else if(O=="2,1,1,0")y=2;else if(O=="1,2,0,1")y=3;else throw"Unknown CFA pattern "+O;if((Q&1)!=0||(K&1)!=0)throw"e";
c.hk.adL(Y,C,U,h,z,r,Q,K,y)}}else{for(var v=0;v<K;v++)for(var i=0;i<Q;i++){var D=((v+r)*C+i+z)*3,I=(v*Q+i)*3;
h[I+0]=Y[D+0];h[I+1]=Y[D+1];h[I+2]=Y[D+2]}}var m=h,f=h.length,A=c.raw.a6x(L),d=1/A;for(var H=0;H<f;H+=3){h[H]=Math.min(1,m[H]*d);
h[H+1]=Math.min(1,m[H+1]*d);h[H+2]=Math.min(1,m[H+2]*d)}c.raw.H2(3,L,h,Q,K);var g=L.g9,X=Q,n=K;if(g==1||g==9){}else{var R=c.raw.u6(g,Q,K),I=0;
X=R[0];n=R[1];var l=h.slice(0);for(var v=0;v<n;v++)for(var i=0;i<X;i++){var w=R[2]*i+R[3]*v+R[4],V=R[5]*i+R[6]*v+R[7],D=(V*Q+w)*3;
h[I]=l[D];h[I+1]=l[D+1];h[I+2]=l[D+2];I+=3}}return{eB:h,w7:X,NJ:n}};c.raw.u6=function(L,C,U){var E=C,Y=U;
if(L==3)return[C,U,-1,0,C-1,0,-1,U-1];else if(L==6)return[U,C,0,1,0,-1,0,U-1];else if(L==8)return[U,C,0,-1,C-1,1,0,0];
else if(L==2)return[C,U,-1,0,C-1,0,1,0];else throw"unknown orientation "+L};c.raw.ZO=function(L,C,U,E){var Y=L.eB,z=Math.round(Y.length/3),r=eu.a2F(E[0],E[1]),p=c.raw.ahv(U,r),T=c.hS.multiply(c.hS.Bq,p),k=Math.pow(2,E[2]+(U.t50730?U.t50730[0]:0));
T=c.hS.multiply(T,c.hS.dS(k,k,k));var P=U.t50728?U.t50728:[1,1,1],b=[P[1]/P[0],P[2]/P[0],P[0]/P[1],P[2]/P[1],P[0]/P[2],P[1]/P[2]],Q=new Float64Array(1e3);
for(var H=0;H<1e3;H++){var K=H*(1/999);K=H==999?1:c.UE(H*(1/999));K=c.raw.sp.ahn(K,E[3]/100);Q[H]=K}var h=Date.now();
for(var H=0;H<z;H++){var x=H<<2,O=x-H,y=Y[O],v=Y[O+1],i=Y[O+2];if(v>=.92){var D=Math.min(y,i);if(D==y){v=Math.max(v,b[0]*y);
i=Math.max(i,b[1]*y)}else{y=Math.max(y,b[4]*i);v=Math.max(v,b[5]*i)}}var I=T[0]*y+T[1]*v+T[2]*i,m=T[4]*y+T[5]*v+T[6]*i,f=T[8]*y+T[9]*v+T[10]*i;
if(I<0)I=0;else if(I>1)I=1;if(m<0)m=0;else if(m>1)m=1;if(f<0)f=0;else if(f>1)f=1;I=Q[~~(I*999)];m=Q[~~(m*999)];
f=Q[~~(f*999)];C[x]=~~(.5+I*255);C[x+1]=~~(.5+m*255);C[x+2]=~~(.5+f*255)}};c.raw.sp={ahn:function(L,C){var U=.5-.5*Math.cos(L*3.2),E=0;
if(C>0){var Y=L*.2;E=Y*L+(1-Y)*U}else{var z=Math.pow(L,.33);E=(1-z)*z+z*(L+(L-U)*.63)}var r=Math.abs(C);
return r*E+(1-r)*L},a2G:function(L,C){var U=0;if(C>0){var E=L*1.47,Y=Math.pow(L,2.4);U=Math.min(1,Y*L+(1-Y)*E)}else{var E=L*.68,Y=Math.pow(L,3);
U=Y*L*.5+(1-Y)*E}var z=Math.abs(C);return z*U+(1-z)*L},a68:function(L,C){var U=0;if(C>0){var E=Math.pow(L,.3),Y=L;
U=(1-L)*E+L*Y}else{var E=Math.pow(L,2.5),z=L,Y=L;U=Math.min(1,(1-z)*E+z*Y)}var r=Math.abs(C);return r*U+(1-r)*L}};
c.raw.ajR=function(L){var C=L.width,U=L.height,E=C*U*L.t277,Y=new Uint16Array(E),z=null,r=0;c.raw.a2n(L,Y);
c.raw.H2(1,L,Y,C,U);if(L.t50712){z=L.t50712;r=z.length-1;if(z[r]>65535)throw"too big values"}var p=c.raw.Lm(L),T=c.raw.So(L);
if(z==null)for(var H=0;H<E;H++)Y[H]=Math.max(0,Y[H]-p);else for(var H=0;H<E;H++){var k=Y[H];if(k>r)k=r;
k=z[k];Y[H]=Math.max(0,k-p)}return Y};c.raw.Lm=function(L){var C=L.t50714,U=C?C[0]:0,E=L.t50715,Y=L.t50716;
if(E)U+=E[0][0]/E[0][1];if(Y)U+=Y[0][0]/Y[0][1];return Math.round(U)};c.raw.So=function(L){var C=null,U=0;
if(L.t50712){C=L.t50712;U=C.length-1}var E=L.t50717?L.t50717[0]:(1<<L.t258[0])-1;if(C)E=Math.min(E,C[U]);
return E};c.raw.a6x=function(L){var C=c.raw.Lm(L),U=c.raw.So(L);return U-C};c.raw.a2n=function(L,C){var U=C.length,E=L.data,Y=L.t258[0];
if(Y!=16&&Y!=14&&Y!=12&&Y!=10&&Y!=8)throw"Unsupported Bits Per Sample:"+Y;Y=Math.round(E.length*8/U);
if(Y==16&&L.isLE){c.hL(E,C);return}for(var H=0;H<U;H+=2){var z=0,r=0,p=0;if(Y==16){z=H<<1;r=E[z]<<8|E[z+1];
p=E[z+2]<<8|E[z+3]}else if(Y==14){var T=H*14,k=T>>>3,P=E[k]<<24|E[k+1]<<16|E[k+2]<<8|E[k+3];if((T&7)==0){r=P>>>18;
p=P>>>4&16383}else{r=P>>>14&16383;p=P&16383}}else if(Y==12){z=H+(H>>>1);r=E[z]<<4|E[z+1]>>4;p=(E[z+1]&15)<<8|E[z+2]}else if(Y==10){var T=H*10,k=T>>>3;
if((T&7)==0){r=(E[k]<<2|E[k+1]>>6)&1023;p=(E[k+1]<<4|E[k+2]>>4)&1023}else{r=(E[k]<<6|E[k+1]>>2)&1023;
p=(E[k+1]<<8|E[k+2]>>0)&1023}}else if(Y==8){z=H;r=E[z];p=E[z+1]}C[H]=r;C[H+1]=p}};c.raw.H2=function(L,C,U,E,Y){var z=C["t"+[51008,51009,51022][L-1]],P=0;
if(z==null)return;var r=E*Y,p=$.i,T=$.HD,k=new Uint8Array(z),ds=$.i(k,P);P+=4;for(var b=0;b<ds;b++){var Q=p(k,P);
P+=4;var K=p(k,P);P+=4;var h=p(k,P);P+=4;var x=p(k,P);P+=4;if(!1){}else if(Q==1&&L==3){var O=P,y=p(k,O);
O+=4;var v=T(k,O);O+=8;var i=T(k,O);O+=8;var D=T(k,O);O+=8;var I=T(k,O);O+=8;var m=T(k,O);O+=8;var f=T(k,O);
O+=8;O+=(y-1)*8*6;var A=T(k,O);O+=8;var d=T(k,O);O+=8;var g=A*E,X=d*Y,n=Math.max(g,E-g),R=Math.max(X,Y-X),l=Math.sqrt(n*n+R*R),w=1/l,V=U.slice(0);
for(var F=0;F<Y;F++)for(var Z=0;Z<E;Z++){var M=(Z+.5-g)*w,a=(F+.5-X)*w,e=M*M+a*a,N=v+i*e+D*(e*e)+I*(e*e)*e,J=m*(2*M*a)+f*(e+2*M*M),s=f*(2*M*a)+m*(e+2*a*a),f5=~~(g+l*(N*M+J)),dx=~~(X+l*(N*a+s)),fq=(dx*E+f5)*3,i9=(F*E+Z)*3;
U[i9]=V[fq];U[i9+1]=V[fq+1];U[i9+2]=V[fq+2]}}else if(Q==3&&L==3){var O=P,e8=T(k,O);O+=8;var S=T(k,O);
O+=8;var fs=T(k,O);O+=8;var bz=T(k,O);O+=8;var g6=T(k,O);O+=8;var A=T(k,O);O+=8;var d=T(k,O);O+=8;var g=A*E,X=d*Y,n=Math.max(g,E-g),R=Math.max(X,Y-X),l=Math.sqrt(n*n+R*R),w=1/l;
for(var F=0;F<Y;F++)for(var Z=0;Z<E;Z++){var M=(Z+.5-g)*w,a=(F+.5-X)*w,e=M*M+a*a,al=1+(e8+(S+(fs+(bz+g6*e)*e)*e)*e)*e,i9=(F*E+Z)*3;
U[i9]=al*U[i9];U[i9+1]=al*U[i9+1];U[i9+2]=al*U[i9+2]}}else if(Q==4&&L==1){var O=P,bj=p(k,O);O+=4;var bE=p(k,O);
O+=4;for(var H=0;H<r;H++)if(U[H]==bj)U[H]=U[H-2]+U[H+2]>>1}else if(Q==5&&L==1){var O=P,eN=p(k,O);O+=4;
var dk=p(k,O);O+=4;var hj=p(k,O);O+=4;for(var H=0;H<dk;H++){var iN=p(k,O);O+=4;var dK=p(k,O);O+=4;var H=iN*E+dK;
U[H]=U[H-2]+U[H+2]>>1}}else if(Q==7&&L==1){var O=P,ch=$.lD(k,O);O+=16;var hP=p(k,O);O+=4;var d2=p(k,O);
O+=4;var hr=p(k,O),fv=p(k,O+4);O+=8;var f3=p(k,O);O+=4;var dp=new Uint16Array(f3);for(var H=0;H<f3;H++)dp[H]=$.lb(k,O+2*H);
var go=ch.d,d6=ch.v;for(var F=0;F<d6;F+=hr)for(var Z=0;Z<go;Z+=fv){var H=(ch.y+F)*E+(ch.x+Z);U[H]=dp[U[H]]}}else if(Q==9&&L==2){var O=P,ch=$.lD(k,O),gc=!0;
O+=16;var hP=p(k,O);O+=4;var d2=p(k,O);O+=4;var hr=p(k,O),fv=p(k,O+4);O+=8;var iB=p(k,O),hS=p(k,O+4);
O+=8;var eF=T(k,O),bQ=T(k,O+8);O+=16;var iP=T(k,O),d8=T(k,O+8);O+=16;var a6=p(k,O);O+=4;if(a6!=1)throw"more than one map plane";
var am=iB*hS,fj=new Float32Array(am);for(var dX=0;dX<am;dX++)fj[dX]=$.qV(k,O+dX*4);for(var dX=0;dX<am;
dX++)if(fj[dX]!=1)gc=!1;if(!gc){var go=ch.d,d6=ch.v,dz=.9999*(hS-1)/go,gE=.9999*(iB-1)/d6;for(var F=0;
F<d6;F+=hr)for(var Z=0;Z<go;Z+=fv){var H=(ch.y+F)*E+(ch.x+Z),cQ=Z*dz,fi=F*gE,dB=Math.floor(cQ),bp=Math.floor(fi),ai=cQ-dB,hu=fi-bp,i9=bp*hS+dB,bP=fj[i9]*(1-ai)+fj[i9+1]*ai,hw=fj[i9+hS]*(1-ai)+fj[i9+1+hS]*ai,gQ=bP*(1-hu)+hw*hu;
U[H]=~~(U[H]*gQ+.5)}}}else console.log("Unknown opcode "+Q+" in OpcodeList"+L+". Length: "+x);P+=x}};
c.raw.ahv=function(L,C){var U=eu.N7(C),E=c.raw.yv(L,C),Y=c.hS.G$(E),z=eu.a1d(U,eu.N7(eu.a3p)),r=c.hS.multiply(z,Y);
return r};c.raw.a5A=function(L){var C=(L.t50728?L.t50728:[1,1,1]).slice(0),E=1;C.push(0);var U={x:.34567,y:.3585};
do{var Y=c.hS.G$(c.raw.yv(L,U)),z=c.hS.IY(Y,C),r=eu.ajS(z);E=Math.abs(U.x-r.x)+Math.abs(U.y-r.y);U=r}while(E>1e-7);
return U};c.raw.yv=function(L,C){var U=eu.zZ(C),E=c.raw.ame,Y=L.t50778?L.t50778[0]:0,z=L.t50779?L.t50779[0]:0,r=E(L.t50721,L.t50722,Y,z,U.Vl),p=E(L.t50723,L.t50724,Y,z,U.Vl);
r=r||[1,0,0,0,1,0,0,0,1];p=p||[1,0,0,0,1,0,0,0,1];var T=L.t50727?[L.t50727[0],0,0,0,L.t50727[1],0,0,0,L.t50727[2]]:[1,0,0,0,1,0,0,0,1];
return c.hS.multiply(c.hS.in(T),c.hS.multiply(c.hS.in(p),c.hS.in(r)))};c.raw.ame=function(L,C,U,E,Y){if(!L&&!C){return null}else if(L&&!C){return L}else if(Y<U){return L}else if(Y>E){return C}else{var z=(1/Y-1/E)/(1/U-1/E),r=1-z,p=[];
for(var H=0;H<9;H++)p[H]=L[H]*z+C[H]*r;return p}};var eu={};eu.a3p={x:.34567,y:.3585};eu.Hc=[{h:0,S0:.18006,oe:.26352,am:-.24341},{h:10,S0:.18066,oe:.26589,am:-.25479},{h:20,S0:.18133,oe:.26846,am:-.26876},{h:30,S0:.18208,oe:.27119,am:-.28539},{h:40,S0:.18293,oe:.27407,am:-.3047},{h:50,S0:.18388,oe:.27709,am:-.32675},{h:60,S0:.18494,oe:.28021,am:-.35156},{h:70,S0:.18611,oe:.28342,am:-.37915},{h:80,S0:.1874,oe:.28668,am:-.40955},{h:90,S0:.1888,oe:.28997,am:-.44278},{h:100,S0:.19032,oe:.29326,am:-.47888},{h:125,S0:.19462,oe:.30141,am:-.58204},{h:150,S0:.19962,oe:.30921,am:-.70471},{h:175,S0:.20525,oe:.31647,am:-.84901},{h:200,S0:.21142,oe:.32312,am:-1.0182},{h:225,S0:.21807,oe:.32909,am:-1.2168},{h:250,S0:.22511,oe:.33439,am:-1.4512},{h:275,S0:.23247,oe:.33904,am:-1.7298},{h:300,S0:.2401,oe:.34308,am:-2.0637},{h:325,S0:.24792,oe:.34655,am:-2.4681},{h:350,S0:.25591,oe:.34951,am:-2.9641},{h:375,S0:.264,oe:.352,am:-3.5814},{h:400,S0:.27218,oe:.35407,am:-4.3633},{h:425,S0:.28039,oe:.35577,am:-5.3762},{h:450,S0:.28863,oe:.35714,am:-6.7262},{h:475,S0:.29685,oe:.35823,am:-8.5955},{h:500,S0:.30505,oe:.35907,am:-11.324},{h:525,S0:.3132,oe:.35968,am:-15.628},{h:550,S0:.32129,oe:.36011,am:-23.325},{h:575,S0:.32931,oe:.36038,am:-40.77},{h:600,S0:.33724,oe:.36051,am:-116.45}];
eu.zZ=function(L){var C=eu.Hc,U=2*L.x/(1.5-L.x+6*L.y),E=3*L.y/(1.5-L.x+6*L.y),Y=0,z=0,r=0;for(;r<31;
r++){Y=E-C[r].oe-C[r].am*(U-C[r].S0);if(r>0&&Y<0){break}z=Y}while(r>=C.length)r--;Y/=Math.sqrt(1+C[r].am*C[r].am);
z/=Math.sqrt(1+C[r-1].am*C[r-1].am);var p=z/(z-Y),T=1e6/((C[r].h-C[r-1].h)*p+C[r-1].h),k=U-((C[r].S0-C[r-1].S0)*p+C[r-1].S0),P=E-((C[r].oe-C[r-1].oe)*p+C[r-1].oe),b=Math.sqrt(1+C[r].am*C[r].am),Q=1/b,K=C[r].am/b,h=Math.sqrt(1+C[r-1].am*C[r-1].am),x=1/h,O=C[r-1].am/h,y=(Q-x)*p+x,v=(K-O)*p+O,i=Math.sqrt(y*y+v*v);
y/=i;v/=i;var D=(k*y+P*v)*-3e3;return{Vl:T,XB:D}};eu.a2F=function(L,C){var U=eu.Hc,E=1e6/L,Y=1;for(;
Y<31;Y++){if(E<U[Y].h){break}}var z=(U[Y].h-E)/(U[Y].h-U[Y-1].h),r=(U[Y-1].S0-U[Y].S0)*z+U[Y].S0,p=(U[Y-1].oe-U[Y].oe)*z+U[Y].oe,T=Math.sqrt(1+U[Y].am*U[Y].am),k=1/T,P=U[Y].am/T,b=Math.sqrt(1+U[Y-1].am*U[Y-1].am),Q=1/b,K=U[Y-1].am/b,h=(Q-k)*z+k,x=(K-P)*z+P,O=Math.sqrt(h*h+x*x);
h/=O;x/=O;r+=h*C/-3e3;p+=x*C/-3e3;return{x:1.5*r/(r-4*p+2),y:p/(r-4*p+2)}};eu.ajS=function(L){var C=L[0]+L[1]+L[2];
return{x:L[0]/C,y:L[1]/C}};eu.N7=function(L){return{x:L.x/L.y,y:1,jF:(1-L.x-L.y)/L.y}};eu.a1d=function(L,C){var U=c.hS.in([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),E=[L.x,L.y,L.jF,0],Y=[C.x,C.y,C.jF,0];
E=c.hS.IY(U,E);Y=c.hS.IY(U,Y);var z=Y[0]/E[0],r=Y[1]/E[1],p=Y[2]/E[2],T=c.hS.in([z,0,0,0,r,0,0,0,p]),k=c.hS.G$(U);
return c.hS.multiply(c.hS.multiply(k,T),U)};c.raw.ds={};c.raw.op=function(L){L*=8;var C=[8,10,12,14,16];
for(var U in c.raw.Gu){var E=c.raw.Gu[U];if(E.length==4)continue;var Y=E[4],z=E[5];for(var H=0;H<C.length;
H++)if(Y*z*C[H]==L)return[U,C[H]]}var r=[[4e3,3e3]];for(var H=0;H<r.length;H++){var E=r[H],Y=E[0],z=E[1];
for(var H=0;H<C.length;H++)if(Y*z*C[H]==L)return[E,C[H]]}return null};c.raw.a9E=function(L){var L=new Uint8Array(L);
for(var H=0;H<L.length;H+=2){var C=L[H];L[H]=L[H+1];L[H+1]=C}var U=c.raw.op(L.length),E=c.raw.Gu[U[0]];
if(E==null)E=[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],0,1e3,64383,U[0][0],U[0][1]];var Y=E[4],z=E[5],r=Math.max(E[2],116),p={data:L,g9:1,width:Y,height:z,t256:[Y],t257:[z],t258:[U[1]],t277:[1],t33421:[2,2],t33422:c.raw.gv[E[1]],t50706:[1,2,0,0],t50714:[r,r,r,r],t50717:[E[3]],t50721:E[0].slice(0),t50723:[1,0,0,0,1,0,0,0,1],t50728:[.64,1,.46],t50778:[17]};
for(var H=0;H<9;H++)p.t50721[H]/=1e4;return p};c.raw.yV=function(L){if(L==null||L.length==0||typeof L[0]=="number")return L;
var C=[];for(var H=0;H<L.length;H++)C[H]=L[H][1]==0?0:L[H][0]/L[H][1];return C};c.raw.gv=[[2,1,1,0],[0,1,1,2],[1,0,2,1],[1,2,0,1]];
c.raw.normalize=function(L,C){if(L.t50706!=null||L.t271[0].startsWith("Hasselblad")){var U=[50714,50718,50719,50720,50721,50722,50723,50724,50727,50728,50730,50731,50732,50734,50736,50738,50739,50780,50964,50965];
for(var H=0;H<U.length;H++)if(L["t"+U[H]]!=null)L["t"+U[H]]=c.raw.yV(L["t"+U[H]]);if(L.t271[0].startsWith("Hasselblad")){L.t50706=[1,2,0,0];
L.t33422=c.raw.gv[1];L.t50723=[1,0,0,0,1,0,0,0,1];L.t50778=[17];if(!L.isLE)for(var H=0;H<L.data.length;
H+=2){var E=L.data[H];L.data[H]=L.data[H+1];L.data[H+1]=E}}return}var Y=L.t258[0],z=L.exifIFD,C=new Uint8Array(C);
L.t50706=[1,2,0,0];var r=L.t272[0].trim();if(r.indexOf(" ")==-1)r=L.t271[0].trim()+" "+r;if(L.t50708==null)L.t50708=[r];
var p=c.raw.Gu,T=p[r.toLowerCase()];if(T==null)for(var k in p)if(r.toLowerCase().startsWith(k))T=p[k];
if(T==null)throw r;var P=T[2];L.t50714=[P,P,P,P];L.t50717=[T[3]];L.t50721=T[0].slice(0);for(var H=0;
H<9;H++)L.t50721[H]=L.t50721[H]*(1/1e4);L.t50723=[1,0,0,0,1,0,0,0,1];if(L.t50728==null)L.t50728=[.35,1,.6];
L.t50778=[17];if(L.t271[0].startsWith("SONY")){var b=UTIF["_bin"+(L.isLE?"LE":"BE")],Q=L.t28688,i;if(JSON.stringify(Q)!="[8000,10400,12900,14100]")console.log(Q);
if(Q){var K=[0,0,0,0,0,4095],h=new Uint16Array(16385);for(var H=0;H<4;H++){var x=Q[H]>>>2;K[H+1]=x;if(x>4095)throw"e"}for(var H=0;
H<16385;H++)h[H]=H;for(var H=0;H<5;H++)for(var O=K[H]+1;O<=K[H+1];O++)h[O]=h[O-1]+(1<<H);var y=C.length*8<L.width*L.height*Y;
if(y)L.t50712=h}else console.log("no curve");var v=L.dngPrvt;if(v){var D=v.t29184[0],I=v.t29185[0],m=(L.isLE?$.Nl:$.i)(v.t29217,0),f=new Uint32Array(C.slice(D,D+(I&4294967292)).buffer),A=new Uint32Array(I>>>2);
c.raw.a1N(f,A,I>>>2,m);var d=new Uint8Array(D+I);d.set(new Uint8Array(A.buffer),D);var g=[];UTIF._readIFD(b,d,D,g,0,!1);
var X=g.pop(),n=X.t29458;L.t50728=[n[1]/n[0],1,n[1]/n[3]];L.t50730=[.5];var R=X.t29891;L.t50829=[R[1],R[0],R[3],R[2]]}else if(z.makerNote&&z.makerNote.t8208){var i=z.makerNote,l=i.t8208,w=l.length,V=0,F=new Uint8Array(256);
for(var H=249;H<256;H++)F[H]=H;for(var H=0;H<249;H++)F[H*H*H%249]=H;for(var H=0;H<w;H++)l[H]=F[l[H]];
if(w==6604)V=612;else throw"e";var n=[];for(var H=0;H<3;H++)n.push($.kI(l,V+H*2));console.log(n);L.t50728=[n[1]/n[0],1,n[1]/n[2]]}else console.log("no white balance");
if(L.width*L.height*1.5==L.t279[0]){P=P>>>2;L.t50714=[P,P,P,P];L.t50717=[T[3]>>>2]}}else if(L.t271[0].startsWith("Canon")){var C=L.data,Z=C.slice(0),M=L.t50752,a=[],N=0;
if(M==null||M[0]==0&&M[1]==0)a.push(L.width);else{for(var H=0;H<M[0];H++)a.push(M[1]);a.push(M[2])}var e=L.width*2;
for(var J=0;J<a.length;J++){var s=a[J],f5=2*N,dx=2*s;for(var fq=0;fq<L.height;fq+=2){var i9=fq*e+f5,e8=L.height*f5+(fq>>1)*dx*2;
for(var H=0;H<dx;H++){C[i9+H]=Z[e8+H];C[i9+H+e]=Z[e8+H+dx]}}N+=s}var i=z.makerNote;if(i.t16385){var S=i.t224,g6=0;
if(S){L.t50719=[S[5],S[6]];L.t50720=[S[7]+1-S[5],S[8]+1-S[6]]}var fs=i.t16385,bz=fs.length;if(bz==582)g6=1;
else if(bz==653)g6=2;else if(bz==796)g6=3;else if([692,674,702,1227,1250,1251,1337,1338,1346].indexOf(bz)!=-1)g6=4;
else if(bz==5120){g6=5;fs=new Int16Array(fs.slice(0).buffer)}else if(bz==1273||bz==1275)g6=6;else if([1312,1313,1316,1506].indexOf(bz)!=-1)g6=7;
else if([1560,1592,1353,1602].indexOf(bz)!=-1)g6=8;else throw"e"+bz;var al=fs[0],bj=[null,[25,166],[34,286],[63,196],[63],[71,al==-4?333:264],[63,251],[63,al==10?504:728],[63,326]],V=bj[g6][0],bE=bj[g6][1];
if(g6==4){if(fs[0]==2)bE=231;else if(fs[0]==3)bE=231;else if(fs[0]==4)bE=231;else if(fs[0]==5)bE=231;
else if(fs[0]==6)bE=231;else if(fs[0]==7)bE=231;else if(fs[0]==9)bE=231;else throw"e"}L.t50728=[fs[V+1]/fs[V],1,fs[V+1]/fs[V+3]];
var P=bE==null?1024:fs[bE];L.t50714=[P,P,P,P]}else{L.t50728=[.4,1,.6]}}else if(L.t271[0].startsWith("NIKON")){var i=z.makerNote,eN=L.isLE?$.kI:$.sZ,hP=0,d2=0,dp,iP=0;
if(i.t61){var dk=i.t61,hj=[];for(var H=0;H<4;H++)hj[H]=dk[H]/Math.pow(2,14-Y);L.t50714=hj}if(i.t3585){var iN=i.t3585,H=0,D=22;
while(D<iN.length&&H!=-4){var dK=$.Nl(iN,D);D+=4;D+=14;H=$.Nl(iN,D)-4;D+=4;if(dK==1990472198){if(iN[D]!=0)throw"Flip"}if(dK==1990472199){var ch=$.kI(iN,D);
if(ch==0)L.g9=1;else if(ch==270)L.g9=8;else throw"e "+ch}D+=H}}if(i.t183){var hr=i.t183,fv=[];for(var H=0;
H<6;H++)fv.push(eN(hr,16+H*2));hP=fv[0];d2=fv[1]}if(i.t3614){var f3=i.t3614;hP=$.Nl(f3,8);d2=$.Nl(f3,12)}if(hP!=0){if(hP<d2){var E=hP;
hP=d2;d2=E}var N=L.width-hP>>>1,fq=L.height-d2>>>1;L.t50829=[fq,N,fq+d2,N+hP]}if(i.t12){var go=c.raw.yV(i.t12);
dp=[1/go[0],1,1/go[1]]}else if(i.t151){var d6=c.raw.a1Y(i,151),iB=d6[0],hs=d6[1],hS=d6[2];if(iB=="0100"&&hs>=80)throw"e";
else if(iB=="0102"){var eF=[];for(var H=0;H<4;H++)eF.push(eN(hS,6+H*2));dp=[eF[1]/eF[0],1,eF[1]/eF[3]]}else if(iB=="0103"&&hs>=26){var eF=[];
for(var H=0;H<4;H++)eF.push(eN(hS,16+H*2));dp=[eF[1]/eF[0],1,eF[3]/eF[2]]}else if(iB=="0204"&&hs>=564||iB=="0205"&&hs>=284){var D=iB=="0204"?6:14,eF=[];
for(var H=0;H<4;H++)eF.push(eN(hS,D+H*2));dp=[eF[1]/eF[0],1,eF[1]/eF[3]]}else throw"e"}else console.log("no white balance info");
if(r=="NIKON D1")dp=[1,1,1];if(dp)L.t50728=dp;var bQ=i.t150?i.t150:i.t140;if(bQ){var d8=bQ[iP++],a6=bQ[iP++],dX;
if(d8==73||a6==88)iP+=2110;iP+=8;var am=1<<Y&32767,fj=eN(bQ,iP);iP+=2;var h=[];if(fj>1)dX=Math.floor(am/(fj-1));
if(d8==68&&a6==32&&dX>0){for(H=0;H<fj;H++){h[H*dX]=eN(bQ,iP);iP+=2}for(H=0;H<am;H++)h[H]=Math.floor((h[H-H%dX]*(dX-H%dX)+h[H-H%dX+dX]*(H%dX))/dX)}else if(d8!=70&&fj<=16385){am=fj;
for(var H=0;H<fj;H++)h[H]=eN(bQ,iP+2*H);iP+=2*fj}if(h.length!=0)L.t50712=new Uint16Array(h);else if(L.t272[0]=="NIKON D750")L.t50717[0]*=4}}else if(r.startsWith("FujiFilm")){}else alert("Unknown camera "+r)};
c.raw.a1N=function(L,C,U,E){if(0==U)return;var Y=new Uint32Array(128),z=new Uint8Array(Y.buffer),r=127,p=0,T=0;
for(var r=0;r<4;r++)Y[r]=E=(E*15625>>>0)*3125+1>>>0;Y[3]=Y[3]<<1|(Y[0]^Y[2])>>>31;for(var r=4;r<127;
r++)Y[r]=(Y[r-4]^Y[r-2])<<1|(Y[r-3]^Y[r-1])>>>31;for(var r=0;r<127;r++)Y[r]=$.i(z,r*4);for(;U>0;U--){Y[r&127]=Y[r+1&127]^Y[r+1+64&127];
var k=Y[r&127],P=L[p];P^=k;C[T]=P;p++;T++;r++}};c.raw.amY=function(L,C){var U=$.ZA(C,0,4),E=c.raw.alG;
for(var H=0;H<E.length;H++)if(E[H][0]==L&&U.startsWith(E[H][1])&&(E[H][2]==0||E[H][2]==C.length))return E[H];
throw"e"};c.raw.ao6=function(L){if(L.t29==null)return[];var C=c.raw.abT,U=c.raw.abU,E=L.t29[0],Y=0,r=0;
for(var H=0;H<E.length;H++){var z=E.charCodeAt(H);Y=Y*10+(48<=z&&z<=57?z-48:z%10)}var hs=L.t167[0];for(var H=0;
H<4;H++)r^=hs>>>(H<<3)&255;var p=C[Y&255],T=U[r&255];return[p,T,96]};c.raw.a1Y=function(L,C){var U=L["t"+C],hs=U.length,E=c.raw.amY(C,U),Y=$.ZA(U,0,4),z,r=E[4];
if(r==null)z=U.slice(4);else{z=new Uint8Array(hs-r);var p=c.raw.ao6(L),T=p[0],k=p[1],P=p[2];for(var H=0;
H<z.length;H++){k=k+T*P++&255;z[H]=U[r++]^k}}return[Y,hs,z]};c.raw.alG=[[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]];
c.raw.abT=[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];
c.raw.abU=[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];
c.raw.Gu={"canon eos 100d":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2048,15e3],"canon eos rebel sl1":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2048,15e3],"canon eos kiss x7":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2048,15e3],"canon eos 200d":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2049,14338],"canon eos rebel sl2":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2049,14338],"canon eos kiss x9":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2049,14338],"canon eos 300d":[[8197,-2e3,-1118,-6714,14335,2592,-2536,3178,8266],1,126,4e3],"canon eos digital rebel":[[8197,-2e3,-1118,-6714,14335,2592,-2536,3178,8266],1,126,4e3],"canon eos kiss digital":[[8197,-2e3,-1118,-6714,14335,2592,-2536,3178,8266],1,126,4e3],"canon eos d30":[[9805,-2689,-1312,-5803,13064,3068,-2438,3075,8775],1,126,4095],"canon eos d60":[[6188,-1341,-890,-7168,14489,2937,-2640,3228,8483],1,127,4e3],"canon eos 10d":[[8197,-2e3,-1118,-6714,14335,2592,-2536,3178,8266],1,130,4e3],"canon eos 20d":[[6599,-537,-891,-8071,15783,2424,-1983,2234,7462],1,126,4095],"canon eos 30d":[[6257,-303,-1e3,-7880,15621,2396,-1714,1904,7046],1,127,3398],"canon eos 350d":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos digital rebel xt":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos kiss digital n":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos 350d":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos 350d digital":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos 40d":[[6071,-747,-856,-7653,15365,2441,-2025,2553,7315],1,1021,13600],"canon eos 450d":[[5784,-262,-821,-7539,15064,2672,-1982,2681,7427],1,1020,14500],"canon eos digital rebel xsi":[[5784,-262,-821,-7539,15064,2672,-1982,2681,7427],1,1020,14500],"canon eos kiss digital x2":[[5784,-262,-821,-7539,15064,2672,-1982,2681,7427],1,1020,14500],"canon eos kiss x2":[[5784,-262,-821,-7539,15064,2672,-1982,2681,7427],1,1020,14500],"canon eos 50d":[[4920,616,-593,-6493,13964,2784,-1774,3178,7005],3,1020,13653],"canon eos 60d":[[6719,-994,-925,-4408,12426,2211,-887,2129,6051],3,2026,14200],"canon eos 70d":[[7034,-804,-1014,-4420,12564,2058,-851,1994,5758],1,2026,13653],"canon eos 80d":[[7457,-671,-937,-4849,12495,2643,-1213,2354,5492],1,512,11892],"canon eos 700d":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2052,15e3],"canon eos rebel t5i":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2052,15e3],"canon eos kiss x7i":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2052,15e3],"canon eos 750d":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos rebel t6i":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos kiss x8i":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos 800d":[[6970,-512,-968,-4425,12161,2553,-739,1982,5601],1,2049,14338],"canon eos rebel t7i":[[6970,-512,-968,-4425,12161,2553,-739,1982,5601],1,2049,14338],"canon eos rebel t7i":[[6970,-512,-968,-4425,12161,2553,-739,1982,5601],1,2049,14338],"canon eos kiss x9i":[[6970,-512,-968,-4425,12161,2553,-739,1982,5601],1,2049,14338],"canon eos 760d":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos rebel t6s":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos 8000d":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos 77d":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2048,14338],"canon eos 9000d":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2048,14338],"canon eos 500d":[[4763,712,-646,-6821,14399,2640,-1921,3276,6561],1,1020,16e3],"canon eos rebel t1i":[[4763,712,-646,-6821,14399,2640,-1921,3276,6561],1,1020,16e3],"canon eos kiss x3":[[4763,712,-646,-6821,14399,2640,-1921,3276,6561],1,1020,16e3],"canon eos 550d":[[6941,-1164,-857,-3825,11597,2534,-416,1540,6039],0,2048,15831],"canon eos rebel t2i":[[6941,-1164,-857,-3825,11597,2534,-416,1540,6039],0,2048,15831],"canon eos kiss x4":[[6941,-1164,-857,-3825,11597,2534,-416,1540,6039],0,2048,15831],"canon eos 600d":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2026,13584],"canon eos rebel t3i":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2026,13584],"canon eos kiss x5":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2026,13584],"canon eos 650d":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2026,13584],"canon eos rebel t4i":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2026,13584],"canon eos kiss x6i":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2026,13584],"canon eos 5d":[[6347,-479,-972,-8297,15954,2480,-1968,2131,7649],1,127,3692],"canon eos 5d mark ii":[[4716,603,-830,-7798,15474,2480,-1496,1937,6651],3,1024,12995],"canon eos 5d mark iii":[[6722,-635,-963,-4287,12460,2028,-908,2162,5668],1,2060,16383],"canon eos 5d mark iv":[[6446,-366,-864,-4436,12204,2513,-952,2496,6348],1,2049,14448],"canon eos 5ds":[[6250,-711,-808,-5153,12794,2636,-1249,2198,5610],1,2048,15181],"canon eos 5ds r":[[6250,-711,-808,-5153,12794,2636,-1249,2198,5610],1,2048,15181],"canon eos 6d":[[7034,-804,-1014,-4420,12564,2058,-851,1994,5758],1,2048,15e3],"canon eos 6d mark ii":[[6875,-970,-932,-4691,12459,2501,-874,1953,5809],1,2049,14558],"canon eos 7d":[[6844,-996,-856,-3876,11761,2396,-593,1772,6198],3,2049,15400],"canon eos 7d mark ii":[[7268,-1082,-969,-4186,11839,2663,-825,2029,5839],1,2048,15100],"canon eos 1000d":[[6771,-1139,-977,-7818,15123,2928,-1244,1437,7533],1,255,3650],"canon eos digital rebel xs":[[6771,-1139,-977,-7818,15123,2928,-1244,1437,7533],1,255,3650],"canon eos kiss digital f":[[6771,-1139,-977,-7818,15123,2928,-1244,1437,7533],1,255,3650],"canon eos 1100d":[[6444,-904,-893,-4563,12308,2535,-903,2016,6728],1,2036,15500],"canon eos rebel t3":[[6444,-904,-893,-4563,12308,2535,-903,2016,6728],1,2036,15500],"canon eos 1200d":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2046,12279],"canon eos rebel t5":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2046,12279],"canon eos kiss x70":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2046,12279],"canon eos 1300d":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2048,15e3],"canon eos rebel t6":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2048,15e3],"canon eos kiss x80":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2048,15e3],"canon eos 2000d":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],3,2048,15092],"canon eos rebel t7":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],3,2048,15092],"canon eos 1500d":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],3,2048,15092],"canon eos 4000d":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2051,15e3],"canon eos rebel t100":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2051,15e3],"canon eos 3000d":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2051,15e3],"canon eos 400d":[[7054,-1501,-990,-8156,15544,2812,-1278,1414,7796],1,255,3726],"canon eos digital rebel xti":[[7054,-1501,-990,-8156,15544,2812,-1278,1414,7796],1,255,3726],"canon eos kiss digital x":[[7054,-1501,-990,-8156,15544,2812,-1278,1414,7796],1,255,3726],"canon eos m":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2026,13584],"canon eos m2":[[6400,-480,-888,-5294,13416,2047,-1296,2203,6137],1,2026,13584],"canon eos m3":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2048,16e3],"canon eos m5":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],1,2048,16e3],"canon eos m6":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],1,2048,16e3],"canon eos m10":[[6400,-480,-888,-5294,13416,2047,-1296,2203,6137],1,2048,16e3],"canon eos m100":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],1,2048,16e3],"canon eos-1d":[[6806,-179,-1020,-8097,16415,1687,-3267,4236,7690],2,0,3588],"canon eos-1ds":[[4374,3631,-1743,-7520,15212,2472,-2892,3632,8161],2,0,3500],"canon eos d2000c":[[24542,-10860,-3401,-1490,11370,-297,2858,-605,3225],2,96,4095],"canon eos-1d mark ii":[[6264,-582,-724,-8312,15948,2504,-1744,1919,8664],1,127,3700],"canon eos-1d mark ii n":[[6240,-466,-822,-8180,15825,2500,-1801,1938,8042],1,127,3700],"canon eos-1d mark iii":[[6291,-540,-976,-8350,16145,2311,-1714,1858,7326],1,1023,15100],"canon eos-1d mark iv":[[6014,-220,-795,-4109,12014,2361,-561,1824,5787],3,2e3,13e3],"canon eos-1ds mark ii":[[6517,-602,-867,-8180,15926,2378,-1618,1771,7633],3,126,4060],"canon eos-1ds mark iii":[[5859,-211,-930,-8255,16017,2353,-1732,1887,7448],1,1021,15100],"canon eos-1d x":[[6847,-614,-1014,-4669,12737,2139,-1197,2488,6846],1,2050,15100],"canon eos-1d x mark ii":[[7596,-978,-967,-4808,12571,2503,-1398,2567,5752],1,2048,14888],"canon powershot pro1":[[10062,-3522,-999,-7643,15117,2730,-765,817,7323],1,129,4095],"canon powershot g1":[[-4778,9467,2172,4743,-1141,4344,-5146,9908,6077,-1566,11051,557],0,31,1023],"canon powershot g2":[[9087,-2693,-1049,-6715,14382,2537,-2291,2819,7790],1,0,1023],"canon powershot g3":[[9212,-2781,-1073,-6573,14189,2605,-2300,2844,7664],1,0,4095],"canon powershot g3 x":[[9701,-3857,-921,-3149,11537,1817,-786,1817,5147],1,2047,16e3],"canon powershot g5":[[9757,-2872,-933,-5972,13861,2301,-1622,2328,7212],1,0,4095],"canon powershot g5 x":[[9602,-3823,-937,-2984,11495,1675,-407,1415,5049],1,2047,16e3],"canon powershot g6":[[9877,-3775,-871,-7613,14807,3072,-1448,1305,7485],1,128,4095],"canon powershot g7 x":[[9602,-3823,-937,-2984,11495,1675,-407,1415,5049],1,511,4e3],"canon powershot g7 x mark ii":[[9602,-3823,-937,-2984,11495,1675,-407,1415,5049],1,2047,16e3],"canon powershot g1 x":[[7378,-1255,-1043,-4088,12251,2048,-876,1946,5805],1,0,16383],"canon powershot g1 x mark ii":[[7378,-1255,-1043,-4088,12251,2048,-876,1946,5805],1,0,16e3],"canon powershot g1 x mark iii":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],1,2048,16e3],"canon powershot g12":[[13244,-5501,-1248,-1508,9858,1935,-270,1083,4366],1,120,4095],"canon powershot g11":[[12177,-4817,-1069,-1612,9864,2049,-98,850,4471],1,120,4095],"canon powershot g10":[[11093,-3906,-1028,-5047,12492,2879,-1003,1750,5561],3,128,4095],"canon powershot g9":[[7368,-2141,-598,-5621,13254,2625,-1418,1696,5743],1,125,4095],"canon powershot g9 x":[[9602,-3823,-937,-2984,11495,1675,-407,1415,5049],1,2047,16e3],"canon powershot g9 x mark ii":[[10056,-4131,-944,-2576,11143,1625,-238,1294,5179],1,2048,16e3],"canon powershot g15":[[7474,-2301,-567,-4056,11456,2975,-222,716,4181],3,500,2800],"canon powershot g16":[[8020,-2687,-682,-3704,11879,2052,-965,1921,5556],1,0,4095],"canon powershot sx1 is":[[6578,-259,-502,-5974,13030,3309,-308,1058,4970],1,125,4095],"canon powershot s30":[[10566,-3652,-1129,-6552,14662,2006,-2197,2581,7670],1,31,1023],"canon powershot s40":[[8510,-2487,-940,-6869,14231,2900,-2318,2829,9013],1,0,1023],"canon powershot s45":[[8163,-2333,-955,-6682,14174,2751,-2077,2597,8041],1,129,4095],"canon powershot s50":[[8882,-2571,-863,-6348,14234,2288,-1516,2172,6569],1,129,4095],"canon powershot s60":[[8795,-2482,-797,-7804,15403,2573,-1422,1996,7082],1,129,4095],"canon powershot s70":[[9976,-3810,-832,-7115,14463,2906,-901,989,7889],1,129,4095],"canon powershot s90":[[12374,-5016,-1049,-1677,9902,2078,-83,852,4683],1,125,4095],"canon powershot s95":[[13440,-5896,-1279,-1236,9598,1931,-180,1001,4651],1,125,4095],"canon powershot s100":[[7968,-2565,-636,-2873,10697,2513,180,667,4211],3,125,4095],"canon powershot s110":[[8039,-2643,-654,-3783,11230,2930,-206,690,4194],3,500,3072],"canon powershot s120":[[6961,-1685,-695,-4625,12945,1836,-1114,2152,5518],1,0,4e3],"canon powershot sx50 hs":[[12432,-4753,-1247,-2110,10691,1629,-412,1623,4926],1,127,4095],"canon powershot sx60 hs":[[13161,-5451,-1344,-1989,10654,1531,-47,1271,4955],1,128,4e3],"nikon d100":[[5902,-933,-782,-8983,16719,2354,-1402,1455,6464],2,0,4095],"nikon d1":[[16772,-4726,-2141,-7611,15713,1972,-2846,3494,9521],0,0,4095],"nikon d1h":[[7577,-2166,-926,-7454,15592,1934,-2377,2808,8606],0,0,4095],"nikon d1x":[[7702,-2245,-975,-9114,17242,1875,-2679,3055,8521],0,0,4095],"nikon d200":[[8367,-2248,-763,-8758,16447,2422,-1527,1550,8053],2,0,3880],"nikon d2h":[[5710,-901,-615,-8594,16617,2024,-2975,4120,6830],3,0,3880],"nikon d2hs":[[5710,-901,-615,-8594,16617,2024,-2975,4120,6830],3,0,3880],"nikon d2x":[[10231,-2769,-1255,-8301,15900,2552,-797,680,7148],1,0,3880],"nikon d2xs":[[10231,-2769,-1255,-8301,15900,2552,-797,680,7148],1,0,3880],"nikon d3":[[8139,-2171,-663,-8747,16541,2295,-1925,2008,8093],1,0,15892],"nikon d3s":[[8828,-2406,-694,-4874,12603,2541,-660,1509,7587],1,0,15520],"nikon d3x":[[7171,-1986,-648,-8085,15555,2718,-2170,2512,7457],1,0,15892],"nikon d300":[[9030,-1992,-715,-8465,16302,2255,-2689,3217,8069],1,0,15236],"nikon d300s":[[9030,-1992,-716,-8465,16302,2256,-2689,3217,8069],1,0,15236],"nikon d3000":[[8736,-2458,-935,-9075,16894,2251,-1354,1242,8263],3,0,3880],"nikon d3200":[[7013,-1408,-635,-5268,12902,2640,-1470,2801,7379],1,0,3880],"nikon d3300":[[6988,-1384,-714,-5631,13410,2447,-1485,2204,7318],1,150,3880],"nikon d3400":[[6988,-1384,-714,-5631,13410,2447,-1485,2204,7318],1,150,3880],"nikon d3500":[[8821,-2938,-785,-4178,12142,2287,-824,1651,6860],1,150,3972],"nikon d4":[[8598,-2848,-857,-5618,13606,2195,-1002,1773,7137],1,0,15520],"nikon d5":[[9200,-3522,-992,-5755,13803,2117,-753,1486,6338],1,400,15520],"nikon z 5":[[8695,-2558,-648,-5015,12711,2575,-1279,2215,7514],1,1008,15520],"nikon z 6":[[9943,-3269,-839,-5323,13269,2259,-1198,2083,7557],1,1008,15520],"nikon z 7":[[10405,-3755,-1270,-5461,13787,1793,-1040,2015,6785],1,1008,15520],"nikon z 50":[[11640,-4829,-1079,-5107,13006,2325,-972,1711,7380],1,251,3880],"nikon df":[[8598,-2848,-857,-5618,13606,2195,-1002,1773,7137],1,0,15520],"nikon d5100":[[8198,-2239,-724,-4871,12389,2798,-1043,2050,7181],1,0,15892],"nikon d3100":[[7911,-2167,-813,-5327,13150,2408,-1288,2483,7968],3,0,3880],"nikon d40":[[6992,-1668,-806,-8138,15748,2543,-874,850,7897],0,0,3880],"nikon d40x":[[8819,-2543,-911,-9025,16928,2151,-1329,1213,8449],3,0,3880],"nikon d50":[[7732,-2422,-789,-8238,15884,2498,-859,783,7330],0,0,4095],"nikon d500":[[8813,-3210,-1036,-4703,12868,2021,-1054,1940,6129],1,400,15520],"nikon d5000":[[7309,-1403,-519,-8474,16008,2622,-2433,2826,8064],3,0,3767],"nikon d5200":[[8322,-3112,-1047,-6367,14342,2179,-988,1638,6394],1,0,15892],"nikon d5300":[[6988,-1384,-714,-5631,13410,2447,-1485,2204,7318],1,150,3972],"nikon d5500":[[8821,-2938,-785,-4178,12142,2287,-824,1651,6860],1,150,3972],"nikon d5600":[[8821,-2938,-785,-4178,12142,2287,-824,1651,6860],1,150,3972],"nikon d60":[[8736,-2458,-935,-9075,16894,2251,-1354,1242,8263],3,0,3880],"nikon d600":[[8178,-2245,-609,-4857,12394,2776,-1207,2086,7298],1,0,15520],"nikon d610":[[8178,-2245,-609,-4857,12394,2776,-1207,2086,7298],1,0,15520],"nikon d70":[[7732,-2422,-789,-8238,15884,2498,-859,783,7330],0,0,4095],"nikon d700":[[8139,-2171,-663,-8747,16541,2295,-1925,2008,8093],1,0,3972],"nikon d750":[[9020,-2890,-715,-4535,12436,2348,-934,1919,7086],1,150,3880],"nikon d780":[[9943,-3269,-839,-5323,13269,2259,-1198,2083,7557],1,251,3880],"nikon d7000":[[8198,-2239,-724,-4871,12389,2798,-1043,2050,7181],1,0,15892],"nikon d7100":[[8322,-3112,-1047,-6367,14342,2179,-988,1638,6394],1,0,15892],"nikon d7200":[[8322,-3112,-1047,-6367,14342,2179,-988,1638,6394],1,600,15892],"nikon d7500":[[8813,-3210,-1036,-4703,12868,2021,-1054,1940,6129],1,100,3880],"nikon d70s":[[7732,-2422,-789,-8238,15884,2498,-859,783,7330],0,0,4095],"nikon d80":[[8629,-2410,-883,-9055,16940,2171,-1490,1363,8520],3,0,3880],"nikon d800":[[7866,-2108,-555,-4869,12483,2681,-1176,2069,7501],1,0,15520],"nikon d800e":[[7866,-2108,-555,-4869,12483,2681,-1176,2069,7501],1,0,15520],"nikon d810":[[9369,-3195,-791,-4488,12430,2301,-893,1796,6872],1,150,3880],"nikon d850":[[10405,-3755,-1270,-5461,13787,1793,-1040,2015,6785],1,100,3880],"nikon d4s":[[8598,-2848,-857,-5618,13606,2195,-1002,1773,7137],1,192,3880],"nikon d90":[[7309,-1403,-519,-8474,16008,2622,-2434,2826,8064],3,0,3767],"nikon 1 j1":[[8994,-2667,-865,-4594,12324,2552,-699,1786,6260],1,0,3300],"nikon 1 j2":[[8994,-2667,-865,-4594,12324,2552,-699,1786,6260],1,0,4095],"nikon 1 j3":[[6588,-1305,-693,-3277,10987,2634,-355,2016,5106],1,0,4095],"nikon 1 j4":[[5958,-1559,-571,-4021,11453,2939,-634,1548,5087],1,200,4e3],"nikon 1 j5":[[7520,-2518,-645,-3844,12102,1945,-913,2249,6835],1,200,3800],"nikon 1 s1":[[8994,-2667,-865,-4594,12324,2552,-699,1786,6260],1,0,3300],"nikon 1 s2":[[6612,-1342,-618,-3338,11055,2623,-174,1792,5075],1,200,4095],"nikon 1 v1":[[8994,-2667,-865,-4594,12324,2552,-699,1786,6260],1,0,3300],"nikon 1 v2":[[6588,-1305,-693,-3277,10987,2634,-355,2016,5106],1,0,4095],"nikon 1 v3":[[5958,-1559,-571,-4021,11453,2939,-634,1548,5087],1,200,4e3],"nikon 1 aw1":[[6588,-1305,-693,-3277,10987,2634,-355,2016,5106],1,0,4095],"nikon e5400":[[9349,-2987,-1001,-7919,15766,2266,-2098,2680,6839],0,0,4095],"nikon e5700":[[-5368,11478,2368,5537,-113,3148,-4969,10021,5782,778,9028,211],0,0,4095],"nikon coolpix p330":[[10321,-3920,-931,-2750,11146,1824,-442,1545,5539],1,3200,65e3],"nikon coolpix p340":[[10321,-3920,-931,-2750,11146,1824,-442,1545,5539],1,200,3800],"nikon coolpix a":[[8198,-2239,-724,-4871,12389,2798,-1043,2050,7181],1,0,15892],"nikon coolpix b700":[[14387,-6014,-1299,-1357,9975,1616,467,1047,4744],1,200,4e3],"nikon coolpix p6000":[[9698,-3367,-914,-4706,12584,2368,-837,968,5801],1,0,4095],"nikon coolpix p7000":[[11432,-3679,-1111,-3169,11239,2202,-791,1380,4455],1,0,4095],"nikon coolpix p7100":[[11053,-4269,-1024,-1976,10182,2088,-526,1263,4469],1,0,3800],"nikon coolpix p7700":[[10321,-3920,-931,-2750,11146,1824,-442,1545,5539],1,3200,65e3],"nikon coolpix p7800":[[10321,-3920,-931,-2750,11146,1824,-442,1545,5539],1,3200,65e3],"nikon coolpix p950":[[13307,-5641,-1290,-2048,10581,1689,-64,1222,5176],1,200,4095],"nikon coolpix p1000":[[14294,-6116,-1333,-1628,10219,1637,-14,1158,5022],1,200,4095],"olympus e-m10 mark iv":[[9476,-3182,-765,-2613,10958,1893,-449,1315,5268],1,254,4e3],"olympus e-m5 mark iii":[[11896,-5110,-1076,-3181,11378,2048,-519,1224,5166],1,257,4e3],"panasonic dmc-cm1":[[8770,-3194,-820,-2871,11281,1803,-513,1552,4434],1,142,4095],"panasonic dmc-fx150":[[9082,-2907,-925,-6119,13377,3058,-1797,2641,5609],0,15,3986],"panasonic dmc-fz28":[[10109,-3488,-993,-5412,12812,2916,-1305,2140,5543],0,15,3986],"panasonic dmc-fz150":[[11904,-4541,-1189,-2355,10899,1662,-296,1586,4289],3,145,3956],"panasonic dmc-fz200":[[8112,-2563,-740,-3730,11784,2197,-941,2075,4933],3,150,3956],"panasonic dmc-fz2000":[[7386,-2443,-743,-3437,11864,1757,-608,1660,4766],3,142,2095],"panasonic dmc-fz2500":[[7386,-2443,-743,-3437,11864,1757,-608,1660,4766],3,142,2095],"panasonic dmc-fz300":[[8378,-2798,-769,-3068,11410,1877,-538,1792,4623],3,143,4095],"panasonic dmc-g1":[[8199,-2065,-1056,-8124,16156,2033,-2458,3022,7220],3,15,3986],"panasonic dmc-g2":[[10113,-3400,-1114,-4765,12683,2317,-377,1437,6710],3,0,3900],"panasonic dmc-g10":[[10113,-3400,-1114,-4765,12683,2317,-377,1437,6710],3,0,3900],"panasonic dmc-gh1":[[6299,-1466,-532,-6535,13852,2969,-2331,3112,5984],3,0,3986],"panasonic dmc-gh3":[[6559,-1752,-491,-3672,11407,2586,-962,1875,5130],3,155,3956],"panasonic dmc-gh4":[[7122,-2108,-512,-3155,11201,2231,-541,1423,5045],0,142,4095],"panasonic dmc-gf1":[[7888,-1902,-1011,-8106,16085,2099,-2353,2866,7330],3,15,3986],"panasonic dmc-gf2":[[7888,-1902,-1011,-8106,16085,2099,-2353,2866,7330],3,150,3956],"panasonic dmc-gm1":[[6770,-1895,-744,-5232,13145,2303,-1664,2691,5703],0,143,3971],"panasonic dmc-gm5":[[8238,-3244,-679,-3921,11814,2384,-836,2022,5852],0,143,4095],"panasonic dmc-g3":[[6763,-1919,-863,-3868,11515,2684,-1216,2387,5879],2,143,3956],"panasonic dmc-g5":[[7798,-2562,-740,-3879,11584,2613,-1055,2248,5434],0,150,3956],"panasonic dmc-g6":[[8294,-2891,-651,-3869,11590,2595,-1183,2267,5352],0,142,3956],"panasonic dmc-g7":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g70":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g8":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g80":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g81":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g85":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-gf3":[[9051,-2468,-1204,-5212,13276,2121,-1197,2510,6890],3,150,3956],"panasonic dmc-gf5":[[8228,-2945,-660,-3938,11792,2430,-1094,2278,5793],3,150,3956],"panasonic dmc-gf6":[[8130,-2801,-946,-3520,11289,2552,-1314,2511,5791],2,150,3956],"panasonic dmc-gf7":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-gh2":[[7780,-2410,-806,-3913,11724,2484,-1018,2390,5298],3,15,3800],"panasonic dmc-fz35":[[9938,-2780,-890,-4604,12393,2480,-1117,2304,4620],0,150,3986],"panasonic dmc-fz38":[[9938,-2780,-890,-4604,12393,2480,-1117,2304,4620],0,150,3986],"panasonic dmc-fz45":[[13639,-5535,-1371,-1698,9633,2430,316,1152,4108],3,150,3986],"panasonic dmc-fz40":[[13639,-5535,-1371,-1698,9633,2430,316,1152,4108],3,150,3986],"panasonic dmc-fz40":[[13639,-5535,-1371,-1698,9633,2430,316,1152,4108],3,150,3986],"panasonic dmc-fz40":[[13639,-5535,-1371,-1698,9633,2430,316,1152,4108],3,150,3986],"panasonic dmc-fz70":[[11532,-4324,-1066,-2375,10847,1749,-564,1699,4351],1,120,3971],"panasonic dmc-fz72":[[11532,-4324,-1066,-2375,10847,1749,-564,1699,4351],1,120,3971],"panasonic dmc-fz100":[[16197,-6146,-1761,-2393,10765,1869,366,2238,5248],3,120,3986],"panasonic dmc-fz1000":[[7830,-2696,-763,-3325,11667,1866,-641,1712,4824],3,143,4095],"panasonic dc-fz10002":[[9803,-4185,-992,-4066,12578,1628,-838,1824,5288],3,143,4095],"panasonic dmc-gx1":[[6763,-1919,-863,-3868,11515,2684,-1216,2387,5879],2,150,3956],"panasonic dmc-gx7":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,150,3956],"panasonic dmc-gx8":[[7564,-2263,-606,-3148,11239,2177,-540,1435,4853],3,143,4095],"panasonic dmc-gx85":[[7771,-3020,-629,-4029,11950,2345,-821,1977,6119],0,143,4095],"panasonic dmc-gx80":[[7771,-3020,-629,-4029,11950,2345,-821,1977,6119],0,143,4095],"panasonic dmc-gx7mk2":[[7771,-3020,-629,-4029,11950,2345,-821,1977,6119],0,143,4095],"panasonic dmc-lf1":[[9379,-3267,-816,-3227,11560,1881,-926,1928,5340],1,143,3971],"panasonic dmc-lx3":[[8128,-2668,-655,-6134,13307,3161,-1782,2568,6083],0,15,3971],"panasonic dmc-lx15":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,143,4095],"panasonic dmc-lx9":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,143,4095],"panasonic dmc-lx10":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,143,4095],"leica c (typ 112)":[[9379,-3267,-816,-3227,11560,1881,-926,1928,5340],1,146,3956],"leica digilux 2":[[11340,-4069,-1275,-7555,15266,2448,-2960,3426,7685],1,0,4095],"leica d-lux 3":[[8048,-2810,-623,-6450,13519,3272,-1700,2146,7049],0,0,3986],"leica v-lux (typ 114)":[[7830,-2696,-763,-3325,11667,1866,-641,1712,4824],3,142,4095],"leica v-lux 1":[[7906,-2709,-594,-6231,13351,3220,-1922,2631,6537],0,0,3986],"panasonic dmc-l10":[[8025,-1942,-1050,-7920,15904,2100,-2456,3005,7039],3,0,3986],"panasonic dmc-fz30":[[10976,-4029,-1141,-7918,15491,2600,-1670,2071,8246],1,0,3971],"panasonic dmc-fz50":[[7906,-2709,-594,-6231,13351,3220,-1922,2631,6537],0,0,3986],"panasonic dmc-fz8":[[8986,-2755,-802,-6341,13575,3077,-1476,2144,6379],1,0,3986],"panasonic dmc-fz18":[[9932,-3060,-935,-5809,13331,2753,-1267,2155,5575],0,0,3986],"panasonic dmc-l1":[[8054,-1885,-1025,-8349,16367,2040,-2805,3542,7629],3,0,3986],"panasonic dmc-lx2":[[8048,-2810,-623,-6450,13519,3272,-1700,2146,7049],0,0,3986],"leica d-lux 4":[[8128,-2668,-655,-6134,13307,3161,-1782,2568,6083],0,15,3971],"panasonic dmc-lx5":[[10909,-4295,-948,-1333,9306,2399,22,1738,4582],2,150,3986],"leica d-lux 5":[[10909,-4295,-948,-1333,9306,2399,22,1738,4582],2,150,3986],"panasonic dmc-lx7":[[10148,-3743,-991,-2837,11366,1659,-701,1893,4899],2,150,3971],"leica d-lux 6":[[10148,-3743,-991,-2837,11366,1659,-701,1893,4899],2,150,3971],"leica d-lux (typ 109)":[[8844,-3538,-768,-3709,11762,2200,-698,1792,5220],0,143,4095],"panasonic dmc-lx1":[[10704,-4187,-1230,-8314,15952,2501,-920,945,8927],1,0,3971],"panasonic dmc-lx100":[[8844,-3538,-768,-3709,11762,2200,-698,1792,5220],0,143,4095],"panasonic dc-lx100m2":[[8585,-3127,-833,-4005,12250,1953,-650,1494,4862],0,143,4095],"panasonic dc-s1":[[9744,-3905,-779,-4899,12807,2324,-798,1630,5827],1,511,16380],"panasonic dc-s1h":[[9397,-3719,-805,-5425,13326,2309,-972,1715,6034],1,510,16380],"panasonic dc-s5":[[9744,-3905,-779,-4899,12807,2324,-798,1630,5827],1,509,16380],"panasonic dc-s1r":[[11822,-5321,-1249,-5958,15114,766,-614,1264,7043],3,510,16380],"panasonic dmc-tz60":[[8607,-2822,-808,-3755,11930,2049,-820,2060,5224],1,145,3971],"panasonic dmc-tz61":[[8607,-2822,-808,-3755,11930,2049,-820,2060,5224],1,145,3971],"panasonic dmc-zs40":[[8607,-2822,-808,-3755,11930,2049,-820,2060,5224],1,145,3971],"panasonic dmc-tz71":[[8802,-3135,-789,-3151,11468,1904,-550,1745,4810],1,143,3971],"panasonic dmc-zs50":[[8802,-3135,-789,-3151,11468,1904,-550,1745,4810],1,143,3971],"panasonic dmc-tz70":[[8802,-3135,-789,-3151,11468,1904,-550,1745,4810],1,143,3971],"panasonic dmc-tz81":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,142,4095],"panasonic dmc-zs60":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,142,4095],"panasonic dmc-tz80":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,142,4095],"panasonic dmc-tz85":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,142,4095],"panasonic dmc-tz100":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-zs100":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-zs110":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-tz101":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-tz110":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-tx1":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dc-fz82":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,143,4095],"panasonic dc-fz80":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,143,4095],"panasonic dmc-fz80":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,143,4095],"panasonic dmc-fz85":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,143,4095],"panasonic dc-gh5":[[7641,-2336,-605,-3218,11299,2187,-485,1338,5121],1,143,4095],"panasonic dc-gh5s":[[6929,-2355,-708,-4192,12534,1828,-1097,1989,5195],1,510,8e3],"panasonic dc-g9":[[7685,-2375,-634,-3687,11700,2249,-748,1546,5111],1,148,4095],"panasonic dc-g95":[[9657,-3963,-748,-3361,11378,2258,-568,1415,5158],0,144,4095],"panasonic dc-g90":[[9657,-3963,-748,-3361,11378,2258,-568,1415,5158],0,144,4095],"panasonic dc-g91":[[9657,-3963,-748,-3361,11378,2258,-568,1415,5158],0,144,4095],"panasonic dc-g99":[[9657,-3963,-748,-3361,11378,2258,-568,1415,5158],0,144,4095],"panasonic dc-gf9":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dc-gx800":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dc-gx850":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dc-gx880":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dc-gx9":[[7564,-2263,-606,-3148,11239,2177,-540,1435,4853],0,143,4095],"panasonic dc-tz90":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-tz91":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-zs70":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-fz91":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-fz92":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-fz93":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-tz96":[[12194,-5340,-1329,-3035,11394,1858,-50,1418,5219],3,142,4095],"panasonic dc-tz95":[[12194,-5340,-1329,-3035,11394,1858,-50,1418,5219],3,142,4095],"panasonic dc-zs80":[[12194,-5340,-1329,-3035,11394,1858,-50,1418,5219],3,142,4095],"panasonic dc-tz202":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dc-tz200":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dc-zs200":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"pentax k100d":[[11095,-3157,-1324,-8377,15834,2720,-1108,947,11688],1,127,3950],"pentax k110d":[[11095,-3157,-1324,-8377,15834,2720,-1108,947,11688],1,127,4095],"pentax k100d super":[[11095,-3157,-1324,-8377,15834,2720,-1108,947,11688],1,127,4095],"pentax *ist d":[[9651,-2059,-1189,-8881,16512,2487,-1460,1345,10687],1,128,4095],"pentax *ist dl":[[10829,-2838,-1115,-8339,15817,2696,-837,680,11939],1,128,4095],"pentax *ist dl2":[[10504,-2438,-1189,-8603,16207,2531,-1022,863,12242],1,127,3950],"pentax *ist ds":[[10371,-2333,-1206,-8688,16231,2602,-1230,1116,11282],1,128,3950],"pentax k10d":[[9566,-2863,-803,-7170,15172,2112,-818,803,9705],1,0,4095],"pentax k20d":[[9427,-2714,-868,-7493,16092,1373,-2199,3264,7180],0,0,4095],"pentax k200d":[[9186,-2678,-907,-8693,16517,2260,-1129,1094,8524],1,0,4095],"pentax k-s1":[[8512,-3211,-787,-4167,11966,2487,-638,1288,6054],1,32,4062],"pentax k-s2":[[8662,-3280,-798,-3928,11771,2444,-586,1232,6054],1,0,3839],"pentax k-70":[[8113,-2078,-1275,-4359,12953,1514,-1091,1955,6044],1,64,16319],"pentax k-1":[[8827,-2829,-1238,-3611,12203,1549,-897,1687,6291],1,64,16316],"pentax k-1 mark ii":[[8952,-2869,-1256,-3612,12204,1550,-934,1757,6549],1,64,16316],"pentax k-3":[[7415,-2052,-721,-5186,12788,2682,-1446,2157,6773],1,1,15868],"pentax k-3 ii":[[7415,-2052,-721,-5186,12788,2682,-1446,2157,6773],1,1,15865],"pentax k-5":[[8713,-2833,-743,-4342,11900,2772,-722,1543,6247],0,512,16383],"pentax k-5 ii":[[8170,-2725,-639,-4440,12017,2744,-771,1465,6599],0,512,16383],"pentax k-5 ii s":[[8170,-2725,-639,-4440,12017,2744,-771,1465,6599],0,512,15863],"pentax k-7":[[9142,-2947,-678,-8648,16967,1663,-2224,2898,8615],0,0,4095],"pentax k-m":[[11057,-3604,-1155,-5152,13046,2329,-282,375,8104],1,0,4095],"pentax k-x":[[8843,-2837,-625,-5025,12644,2668,-411,1234,7410],0,41,4095],"pentax k-r":[[9895,-3077,-850,-5304,13035,2521,-883,1768,6936],0,64,4e3],"pentax kp":[[8617,-3228,-1034,-4674,12821,2044,-803,1577,5728],1,128,16254],"pentax k2000":[[11057,-3604,-1155,-5152,13046,2329,-282,375,8104],1,0,4095],"pentax 645d":[[9814,-2716,-1439,-5049,13907,1166,-1830,3836,5706],0,0,15767],"pentax 645z":[[9551,-3012,-1235,-3685,12133,1721,-1019,1887,6544],1,1,16316],"samsung ex2f":[[10648,-3897,-1055,-2022,10573,1668,-492,1611,4742],1,0,4095],"samsung ex1":[[8898,-2498,-994,-3144,11328,2066,-760,1381,4576],1,0,16383],"samsung nx1":[[10686,-4042,-1052,-3595,13238,276,-464,1259,5931],2,1024,16100],"samsung nx5":[[10332,-3234,-1168,-6111,14639,1520,-1352,2647,8331],0,0,4095],"samsung nx10":[[10332,-3234,-1168,-6111,14639,1520,-1352,2647,8331],0,0,4095],"samsung nx11":[[10332,-3234,-1168,-6111,14639,1520,-1352,2647,8331],0,0,4095],"samsung nx100":[[10332,-3234,-1168,-6111,14639,1520,-1352,2647,8331],0,0,4095],"samsung nx1000":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx1100":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx20":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx200":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx210":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx2000":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],2,0,4095],"samsung nx30":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],2,0,4095],"samsung nx300":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],2,0,4095],"samsung nx300m":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],2,0,4095],"samsung nx3000":[[8060,-2933,-761,-4504,12890,1762,-630,1489,5227],2,0,4095],"samsung nx500":[[10686,-4042,-1052,-3595,13238,276,-464,1259,5931],2,1024,16100],"samsung ek-gn120":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],3,0,4095],"samsung wb2000":[[12093,-3557,-1155,-1e3,9534,1733,-22,1787,4576],1,0,4095],"sony dsc-rx0":[[9396,-3507,-843,-2497,11111,1572,-343,1355,5089],1,800,16620],"sony dsc-rx0m2":[[9396,-3507,-843,-2497,11111,1572,-343,1355,5089],1,800,16300],"sony dsc-rx10":[[6679,-1825,-745,-5047,13256,1953,-1580,2422,5183],1,800,16300],"sony dsc-rx10m2":[[6679,-1825,-745,-5047,13256,1953,-1580,2422,5183],1,800,16300],"sony dsc-rx10m3":[[6679,-1825,-745,-5047,13256,1953,-1580,2422,5183],1,800,16300],"sony dsc-rx10m4":[[7699,-2566,-629,-2967,11270,1928,-378,1286,4807],1,800,16380],"sony dsc-rx100":[[8651,-2754,-1057,-3464,12207,1373,-568,1398,4434],1,800,16620],"sony dsc-rx100m2":[[6596,-2079,-562,-4782,13016,1933,-970,1581,5181],1,800,16300],"sony dsc-rx100m3":[[6596,-2079,-562,-4782,13016,1933,-970,1581,5181],1,800,16300],"sony dsc-rx100m4":[[6596,-2079,-562,-4782,13016,1933,-970,1581,5181],1,800,16300],"sony dsc-rx100m5":[[6596,-2079,-562,-4782,13016,1933,-970,1581,5181],1,800,16300],"sony dsc-rx100m5a":[[11176,-4700,-965,-4004,12184,2032,-763,1726,5876],1,800,16300],"sony dsc-rx100m6":[[7325,-2321,-596,-3494,11674,2055,-668,1562,5031],1,800,16300],"sony dsc-rx100m7":[[10315,-4390,-937,-4859,12734,2365,-734,1537,5997],1,800,16300],"sony dsc-rx1r":[[6344,-1612,-462,-4863,12477,2681,-865,1786,6899],1,512,33192],"sony dsc-rx1rm2":[[6629,-1900,-483,-4618,12349,2550,-622,1381,6514],1,512,16300],"sony dslr-a100":[[9437,-2811,-774,-8405,16215,2290,-710,596,7181],2,0,4095],"sony dslr-a200":[[9847,-3091,-928,-8485,16345,2225,-715,595,7103],1,0,4095],"sony dslr-a230":[[9847,-3091,-928,-8485,16345,2225,-715,595,7103],1,0,4095],"sony dslr-a290":[[6038,-1484,-579,-9145,16746,2512,-875,746,7218],1,0,4095],"sony dslr-a300":[[9847,-3091,-928,-8485,16345,2225,-715,595,7103],1,0,4095],"sony dslr-a330":[[9847,-3091,-929,-8485,16346,2225,-714,595,7103],1,0,4095],"sony dslr-a350":[[6038,-1484,-578,-9146,16746,2513,-875,746,7217],1,0,4095],"sony dslr-a380":[[6038,-1484,-579,-9145,16746,2512,-875,746,7218],1,0,4095],"sony dslr-a390":[[6038,-1484,-579,-9145,16746,2512,-875,746,7218],1,0,4095],"sony dslr-a450":[[4950,-580,-103,-5228,12542,3029,-709,1435,7371],1,500,16e3],"sony dslr-a500":[[6046,-1127,-278,-5574,13076,2786,-691,1419,7625],0,500,16600],"sony dslr-a550":[[4950,-580,-103,-5228,12542,3029,-709,1435,7371],0,512,16372],"sony dslr-a560":[[4950,-580,-103,-5228,12542,3029,-709,1435,7371],0,476,16596],"sony dslr-a580":[[5932,-1492,-411,-4813,12285,2856,-741,1524,6739],0,520,16596],"sony dslr-a700":[[5775,-805,-359,-8574,16295,2391,-1943,2341,7249],0,520,16383],"sony dslr-a850":[[5413,-1162,-365,-5665,13098,2866,-608,1179,8440],0,500,15e3],"sony dslr-a900":[[5209,-1072,-397,-8845,16120,2919,-1618,1803,8654],1,520,16383],"sony nex-3":[[6907,-1256,-645,-4940,12621,2320,-1710,2581,6230],1,520,16360],"sony nex-3n":[[6129,-1545,-418,-4930,12490,2743,-977,1693,6615],1,520,16596],"sony nex-5":[[6807,-1350,-342,-4216,11649,2567,-1089,2001,6420],1,520,16383],"sony nex-5n":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16596],"sony nex-5r":[[6129,-1545,-418,-4930,12490,2743,-977,1693,6615],1,520,16596],"sony nex-5t":[[6129,-1545,-418,-4930,12490,2743,-977,1693,6615],1,512,16300],"sony nex-6":[[6129,-1545,-418,-4930,12490,2743,-977,1693,6615],1,520,16596],"sony nex-7":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,512,16300],"sony nex-c3":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16596],"sony nex-f3":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16360],"sony ilce-3000":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-3500":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-5000":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-5100":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-6000":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-6100":[[7657,-2847,-607,-4083,11966,2389,-684,1418,5844],1,512,16300],"sony ilce-6300":[[5973,-1695,-419,-3826,11797,2293,-639,1398,5789],1,512,16300],"sony ilce-6400":[[7657,-2847,-607,-4083,11966,2389,-684,1418,5844],1,512,16383],"sony ilce-6500":[[5973,-1695,-419,-3826,11797,2293,-639,1398,5789],1,512,16300],"sony ilce-6600":[[7657,-2847,-607,-4083,11966,2389,-684,1418,5844],1,512,16383],"sony ilce-7":[[5271,-712,-347,-6153,13653,2763,-1601,2366,7242],1,512,16300],"sony ilce-7m2":[[5271,-712,-347,-6153,13653,2763,-1601,2366,7242],1,512,16300],"sony ilce-7m3":[[7374,-2389,-551,-5435,13162,2519,-1006,1795,6552],1,512,16300],"sony ilce-7r":[[4913,-541,-202,-6130,13513,2906,-1564,2151,7183],1,512,16300],"sony ilce-7rm2":[[6629,-1900,-483,-4618,12349,2550,-622,1381,6514],1,512,16300],"sony ilce-7rm3":[[6640,-1847,-503,-5238,13010,2474,-993,1673,6527],1,512,16383],"sony ilce-7rm4":[[7662,-2686,-660,-5240,12965,2530,-796,1508,6167],1,512,16383],"sony ilce-7s":[[5838,-1430,-246,-3497,11477,2297,-748,1885,5778],1,512,16300],"sony ilce-7sm2":[[5838,-1430,-246,-3497,11477,2297,-748,1885,5778],1,512,16300],"sony ilce-9":[[6389,-1703,-378,-4562,12265,2587,-670,1489,6550],1,512,16383],"sony ilce-9m2":[[6389,-1703,-378,-4562,12265,2587,-670,1489,6550],1,512,16380],"sony dsc-rx1":[[6344,-1612,-462,-4863,12477,2681,-865,1786,6899],1,520,16628],"sony slt-a33":[[6069,-1221,-366,-5221,12779,2734,-1024,2066,6834],1,520,16596],"sony slt-a35":[[5986,-1618,-415,-4557,11820,3120,-681,1404,6971],1,545,16596],"sony slt-a37":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16500],"sony slt-a55":[[5932,-1492,-411,-4813,12285,2856,-741,1524,6739],1,520,16596],"sony slt-a55v":[[5932,-1492,-411,-4813,12285,2856,-741,1524,6739],1,520,16596],"sony slt-a57":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16596],"sony slt-a58":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16596],"sony slt-a65":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,520,16596],"sony slt-a65v":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,520,16596],"sony slt-a77":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,520,16596],"sony slt-a77v":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,520,16596],"sony ilca-77m2":[[5991,-1732,-443,-4100,11989,2381,-704,1467,5992],1,512,16300],"sony ilca-68":[[6435,-1903,-536,-4722,12449,2550,-663,1363,6517],1,512,16300],"sony ilca-99m2":[[6660,-1918,-471,-4613,12398,2485,-649,1433,6447],1,512,16300],"sony slt-a99":[[6344,-1612,-462,-4863,12477,2681,-865,1786,6899],1,520,16596],"sony slt-a99v":[[6344,-1612,-462,-4863,12477,2681,-865,1786,6899],1,520,16596],"sony zv-1":[[8280,-2987,-703,-3531,11645,2133,-550,1542,5312],1,800,16300],"sinar hy6":[[16442,-2956,-2422,-2877,12128,750,-1136,6066,4559],1,0,0],"fujifilm finepix s1":[[12297,-4882,-1202,-2106,10691,1623,-88,1312,4790],1,200,4095],"fujifilm finepix s6000fd":[[12628,-4887,-1401,-6861,14996,1962,-2198,2782,7091],3,0,15872],"fujifilm finepix s100fs":[[11521,-4355,-1065,-6524,13767,3058,-1466,1984,6045],3,512,16383],"fujifilm finepix s200exr":[[11401,-4498,-1312,-5088,12751,2613,-838,1568,5941],1,519,16250],"fujifilm finepix f600exr":[[13690,-5358,-1474,-3369,11600,1998,-132,1554,4395],1,256,3900],"fujifilm finepix f700":[[10004,-3219,-1201,-7036,15047,2107,-1863,2565,7736],3,0,16383],"fujifilm finepix f770exr":[[13690,-5358,-1474,-3369,11600,1998,-132,1554,4395],1,256,3900],"fujifilm finepix f900exr":[[12085,-4727,-953,-3257,11489,2002,-511,2046,4592],0,256,3900],"fujifilm finepix e550":[[11044,-3888,-1120,-7248,15168,2208,-1531,2277,8069],3,0,15875],"fujifilm is-1":[[21461,-10807,-1441,-2332,10599,1999,289,875,7703],3,0,15872],"fujifilm finepix s3pro":[[11807,-4612,-1294,-8927,16968,1988,-2120,2741,8006],3,0,15872],"fujifilm finepix s5pro":[[12300,-5110,-1304,-9117,17143,1998,-1947,2448,8100],3,0,15872],"fujifilm finepix s5600":[[9636,-2804,-988,-7442,15040,2589,-1803,2311,8621],3,0,15872],"fujifilm finepix e900":[[9183,-2526,-1078,-7461,15071,2574,-2022,2440,8639],3,0,15872],"fujifilm finepix s2pro":[[12492,-4690,-1402,-7033,15423,1647,-1507,2111,7697],3,128,4095],"fujifilm finepix s5000":[[8754,-2732,-1019,-7204,15069,2276,-1702,2334,6982],3,0,15872],"fujifilm finepix s5200":[[9636,-2804,-988,-7442,15040,2589,-1803,2311,8621],3,0,15872],"fujifilm finepix s5500":[[11940,-4431,-1255,-6766,14428,2542,-993,1165,7421],1,0,15872],"fujifilm finepix s6500fd":[[12628,-4887,-1401,-6861,14996,1962,-2198,2782,7091],3,0,15872],"fujifilm finepix s7000":[[10190,-3506,-1312,-7153,15051,2238,-2003,2399,7505],3,0,15869],"fujifilm finepix s9500":[[10491,-3423,-1145,-7385,15027,2538,-1809,2275,8692],3,0,15872],"fujifilm finepix s9000":[[10491,-3423,-1145,-7385,15027,2538,-1809,2275,8692],3,0,15872],"fujifilm finepix s9600":[[12343,-4515,-1285,-7165,14899,2435,-1895,2496,8800],3,0,15872],"fujifilm finepix s9600fd":[[12343,-4515,-1285,-7165,14899,2435,-1895,2496,8800],3,0,15872],"fujifilm finepix hs10 hs11":[[12440,-3954,-1183,-1123,9674,1708,-83,1614,4086],0,50,3900],"fujifilm finepix hs20exr":[[13690,-5358,-1474,-3369,11600,1998,-132,1554,4395],1,256,3900],"fujifilm finepix hs30exr":[[13690,-5358,-1474,-3369,11600,1998,-132,1554,4395],1,258,3900],"fujifilm finepix hs50exr":[[12085,-4727,-953,-3257,11489,2002,-511,2046,4592],0,256,3900],"fujifilm finepix x100":[[12161,-4457,-1069,-5034,12874,2400,-795,1724,6904],0,254,4e3],"fujifilm finepix x10":[[13509,-6199,-1254,-4430,12733,1865,-331,1441,5022],0,256,4e3],"fujifilm x-s1":[[13509,-6199,-1254,-4430,12733,1865,-331,1441,5022],0,260,4e3],"fujifilm gfx 50s":[[11756,-4754,-874,-3056,11045,2305,-381,1457,6006],1,65,16383],"fujifilm gfx 50r":[[11756,-4754,-874,-3056,11045,2305,-381,1457,6006],1,65,16383],"fujifilm gfx 100":[[16212,-8423,-1583,-4336,12583,1937,-195,726,6199],1,63,16383],"fujifilm x-pro1":[[10413,-3996,-993,-3721,11640,2361,-733,1540,6011],2,256,4094],"fujifilm x-pro2":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1024,16383],"fujifilm x-pro3":[[13426,-6334,-1177,-4244,12136,2371,-580,1303,5980],2,1022,16383],"fujifilm x70":[[10450,-4329,-878,-3217,11105,2421,-752,1758,6519],1,1024,16383],"fujifilm xf1":[[13509,-6199,-1254,-4430,12733,1865,-331,1441,5022],0,257,4e3],"fujifilm xf10":[[11673,-4760,-1041,-3988,12058,2166,-771,1417,5569],1,1024,16383],"fujifilm x-e1":[[10413,-3996,-993,-3721,11640,2361,-733,1540,6011],2,255,4094],"fujifilm x20":[[11768,-4971,-1133,-4904,12927,2183,-480,1723,4605],3,257,4094],"fujifilm x30":[[12328,-5256,-1144,-4469,12927,1675,-87,1291,4351],3,257,4094],"fujifilm x100f":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1024,16383],"fujifilm x100s":[[10592,-4262,-1008,-3514,11355,2465,-870,2025,6386],1,1024,16383],"fujifilm x100t":[[10592,-4262,-1008,-3514,11355,2465,-870,2025,6386],1,1024,16383],"fujifilm x100v":[[13426,-6334,-1177,-4244,12136,2371,-580,1303,5980],2,1022,16383],"fujifilm x-h1":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1024,16383],"fujifilm x-m1":[[10413,-3996,-993,-3721,11640,2361,-733,1540,6011],2,256,4094],"fujifilm x-a1":[[11086,-4555,-839,-3512,11310,2517,-815,1341,5940],1,256,4094],"fujifilm x-a2":[[10763,-4560,-917,-3346,11311,2322,-475,1135,5843],1,256,4094],"fujifilm x-a3":[[12407,-5222,-1086,-2971,11116,2120,-294,1029,5284],1,1024,16383],"fujifilm x-a5":[[11673,-4760,-1041,-3988,12058,2166,-771,1417,5569],1,1024,16383],"fujifilm x-a10":[[11540,-4999,-991,-2949,10963,2278,-382,1049,5605],1,256,4094],"fujifilm xq1":[[9252,-2704,-1064,-5893,14265,1717,-1101,2341,4349],3,257,4094],"fujifilm xq2":[[9252,-2704,-1064,-5893,14265,1717,-1101,2341,4349],3,257,4094],"fujifilm x-e2":[[8458,-2451,-855,-4597,12447,2407,-1475,2482,6526],1,1024,16383],"fujifilm x-e3":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1023,16383],"fujifilm x-e2s":[[11562,-5118,-961,-3022,11007,2311,-525,1569,6097],1,1024,16383],"fujifilm x-t1":[[8458,-2451,-855,-4597,12447,2407,-1475,2482,6526],1,1024,16383],"fujifilm x-t2":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1024,16383],"fujifilm x-t3":[[16393,-7740,-1436,-4238,12131,2371,-633,1424,6553],2,1022,16383],"fujifilm x-t4":[[13426,-6334,-1177,-4244,12136,2371,-580,1303,5980],2,1022,16383],"fujifilm x-t10":[[8458,-2451,-855,-4597,12447,2407,-1475,2482,6526],1,1024,16383],"fujifilm x-t20":[[10592,-4262,-1008,-3514,11355,2465,-870,2025,6386],1,1024,16383],"fujifilm x-t30":[[13426,-6334,-1177,-4244,12136,2371,-580,1303,5980],2,1022,16383],"fujifilm x-t100":[[11673,-4760,-1041,-3988,12058,2166,-771,1417,5569],1,1024,16383],"fujifilm x-t200":[[15055,-7391,-1274,-4062,12071,2238,-610,1217,6147],1,1024,16383],"minolta dimage a1":[[9274,-2547,-1167,-8220,16323,1943,-2273,2720,8340],1,0,3965],"minolta dimage 5":[[8983,-2942,-963,-6556,14476,2237,-2426,2887,8014],1,0,3965],"minolta dimage 7":[[9144,-2777,-998,-6676,14556,2281,-2470,3019,7744],1,0,3965],"minolta dimage 7i":[[10880,-3638,-1186,-6496,14313,2364,-2456,3092,7485],1,0,3965],"minolta dimage 7hi":[[11368,-3894,-1242,-6521,14358,2339,-2475,3056,7285],1,0,3965],"sony dsc-f828":[[7924,-1910,-777,-8226,15459,2998,-1517,2199,6818,-7242,11401,3481],0,495,16383],"sony dsc-hx99":[[13076,-5686,-1481,-4027,12851,1251,-167,725,4937],1,800,16300],"sony dsc-r1":[[8512,-2641,-694,-8042,15670,2526,-1821,2117,7414],2,511,16383],"mamiya zd":[[7645,2579,-1363,-8689,16717,2015,-3712,5941,5961],1,0,4e3],"leaf aptus 22":[[8236,1746,-1314,-8251,15953,2428,-3673,5786,5771],1,0,16191],"leaf credo 40":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,16383],"leaf credo 60":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,16383],"leaf credo 80":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,16383],"leaf aptus-ii 5":[[1846,7955,-1222,-12994,19563,3596,-2035,3340,5136],2,0,15e3],"phase one p30":[[4516,-245,-37,-7020,14976,2173,-3206,4671,7087],2,0,16383],"phase one p65+":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,16383],"phase one iq140":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,65535],"phase one iq250":[[3984,0,0,0,1e4,0,0,0,7666],1,1024,65535],"kodak dcs pro slr/n":[[5494,2393,-232,-6427,13850,2846,-1876,3997,5445],2,0,4095],"kodak dcs pro 14n":[[7791,3128,-776,-8588,16458,2039,-2455,4006,6198],2,0,3700],"kodak dcs pro 14nx":[[5494,2393,-232,-6427,13850,2846,-1876,3997,5445],2,0,3700],"kodak dcs460":[[10592,-2206,-967,-1944,11685,230,2206,670,1273],2,7,6664],"kodak dcs520c":[[24542,-10860,-3401,-1490,11370,-297,2858,-605,3225],2,176,4095],"kodak dcs560c":[[20482,-7172,-3125,-1033,10410,-285,2542,226,3136],2,208,4095],"kodak dcs760c":[[16623,-6309,-1411,-4344,13923,323,2285,274,2926],2,0,3500],"kodak p880":[[12805,-4662,-1376,-7480,15267,2360,-1626,2194,7904],0,0,4095],"kodak easyshare z980 digital camera":[[11313,-3559,-1101,-3893,11891,2257,-1214,2398,4908],1,0,4095],"kodak easyshare z981 digital camera":[[12729,-4717,-1188,-1367,9187,2582,274,860,4411],2,0,4095],"kodak easyshare z990 digital camera":[[11749,-4048,-1309,-1867,10572,1489,-138,1449,4522],0,0,4e3],"kodak z1015 is":[[11265,-4286,-992,-4694,12343,2647,-1090,1523,5447],0,0,4095],"epson r-d1":[[6827,-1878,-732,-8429,16012,2564,-704,592,7145],1,63,4095],"epson r-d1s":[[6827,-1878,-732,-8429,16012,2564,-704,592,7145],1,62,4095],"epson r-d1x":[[6828,-1878,-732,-8429,16012,2564,-704,592,7145],1,65,4095],"hasselblad cfv-50":[[5656,-659,-346,-3923,12306,1791,-1602,3509,5442],1,256,65535],"hasselblad h3d":[[3857,452,-46,-6008,14477,1596,-2627,4481,5718],1,0,31456],"hasselblad h4d-50":[[5656,-659,-346,-3923,12306,1791,-1602,3509,5442],1,256,32767],"hasselblad h5d-40":[[6159,-1402,-177,-5439,12762,3007,-955,2200,7104],1,256,62914],"hasselblad h5d-50c":[[4932,-835,141,-4878,11868,3437,-1138,1961,7067],1,256,62914],"hasselblad x1dm2-50c":[[5002,-878,111,-4856,11929,3338,-1183,2041,7022],1,256,62914],"hasselblad x1d ii 50c":[[5002,-878,111,-4856,11929,3338,-1183,2041,7022],1,256,62914],"canon powershot a610":[[15591,-6402,-1592,-5365,13198,2168,-1300,1824,5075],1,0,1023,2672,1968],"canon powershot s3 is":[[14062,-5199,-1446,-4712,12470,2243,-1286,2028,4836],1,0,1023,2888,2136],"canon powershot a620":[[15265,-6193,-1558,-4125,12116,2010,-888,1639,5220],1,0,1023,3152,2340],"canon powershot a720 is":[[14573,-5482,-1546,-1266,9799,1468,-1040,1912,3810],3,0,1023,3336,2480],"canon powershot a630":[[14201,-5308,-1757,-6087,14472,1617,-2191,3105,5348],1,0,1023,3344,2484],"canon powershot a640":[[13124,-5329,-1390,-3602,11658,1944,-1612,2863,4885],1,0,1023,3736,2772],"canon powershot a650":[[9427,-3036,-959,-2581,10671,1911,-1039,1982,4430],1,0,1023,4104,3048],"canon powershot sx110 is":[[14134,-5576,-1527,-1991,10719,1273,-1158,1929,3581],1,0,4095,3720,2772],"gitup git2":[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],1,3200,65535,4608,3456],"gitup git2p":[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],1,4160,65535,4624,3488],"paralenz dive camera":[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],1,1024,16383,3840,2160],"sjcam sj6 legend":[[9489,-3814,-225,-6650,13742,3236,-627,797,7550],1,0,4095,4024,3036]};
c.MO={};c.MO.MO=function(L,C,U,E,Y){if(E==null)E=3;if(Y==null)Y=!0;var z=L.d,r=L.v,p=1/z,T=z*r,k=Date.now(),P=!1,b=c.MO.yd(U,z,r,255,128),Q=c.MO.yd(U,z,r,0,128),e4=0;
if(P)console.log("extract contours",Date.now()-k);k=Date.now();var K=function(am,fj){var dX=am<<2,gc=fj<<2;
return C[dX]+C[dX+1]+C[dX+2]-(C[gc]+C[gc+1]+C[gc+2])};b.sort(K);Q.sort(K);var h=c.F(T),x=c.F(T),O=[],y=new Uint32Array(z*r);
y.fill(4294967295);for(var H=0;H<T;H++)if(U[H]==0)x[H]=255;else if(U[H]==255)h[H]=255;else{y[H]=O.length;
O.push(H)}var v=b.length,i=Q.length,D=O.length;function I(am,fj,dX,gc){var dz=am.length,gE=new Array(dz*2);
for(var H=0;H<dz;H++){var F=am[H],Z=~~(F*gc),M=F-Z*dX,iP=F<<2;gE[H*2]=M<<16|Z;gE[H*2+1]=fj[iP]<<16|fj[iP+1]<<8|fj[iP+2]}return gE}var m=I(b,C,z,p),f=I(Q,C,z,p),A=I(O,C,z,p);
if(P)console.log("Itemize",Date.now()-k,"Unknown:",D,v,i);k=Date.now();var d=c.style.EF(h,z,r,!0),g=c.style.EF(x,z,r,!0),X=new Array(D),n=new Array(D),R=new Array(D),l=new Array(D),w=new Array(D);
if(P)console.log("Dist transform",Date.now()-k);k=Date.now();var V=c.MO.bR;for(var H=0;H<D;H++){var F=O[H],Z=~~(F*p),M=F-Z*z,a=d[F<<1],e=d[(F<<1)+1],N=Math.sqrt(a*a+e*e),J=g[F<<1],s=g[(F<<1)+1],f5=Math.sqrt(J*J+s*s);
X[H]=1/N;n[H]=1/f5;var dx=Math.floor(c.Q.b6(F*17)*v),fq=Math.floor(c.Q.b6(F*19)*i);R[H]=dx;l[H]=fq;w[H]=V(A[H*2],A[H*2+1],m[dx*2],m[dx*2+1],f[fq*2],f[fq*2+1],X[H],n[H],1e9)}var i9=[-z-1,-z,-z+1,-1,1,z-1,z,z+1];
while(Math.floor(Math.max(v,i)*Math.pow(.5,e4))>1)e4++;for(var e8=0;e8<E;e8++){var S=0;for(var H=0;H<D;
H++){var F=O[H],Z=~~(F*p),M=F-Z*z,fs=X[H],bz=n[H],g6=A[H*2],al=A[H*2+1],bj=w[H],dx=R[H],fq=l[H],dK=1;
if(Z!=0&&M!=0&&M!=z-1&&Z!=r-1)for(var bE=0;bE<8;bE++){var eN=y[F+i9[bE]];if(eN==4294967295)continue;
var dk=R[eN],hj=l[eN];if(dk==dx&&hj==fq)continue;var iN=V(g6,al,m[dk*2],m[dk*2+1],f[hj*2],f[hj*2+1],fs,bz,bj);
if(iN<bj){bj=iN;dx=dk;fq=hj}}for(var ch=0;ch<e4;ch++){var hP=~~(v*dK),d2=~~(i*dK);dK*=.5;var hr=c.Q.b6(F+e8*17+ch*31),fv=c.Q.b6(F+e8*29+ch*63),f3=Math.max(0,dx-hP),dp=Math.min(dx+hP,v-1),go=Math.max(0,fq-d2),d6=Math.min(fq+d2,i-1),dk=f3+~~(hr*(dp-f3)),hj=go+~~(fv*(d6-go)),iN=V(g6,al,m[dk*2],m[dk*2+1],f[hj*2],f[hj*2+1],fs,bz,bj);
if(iN<bj){bj=iN;dx=dk;fq=hj}}w[H]=bj;R[H]=dx;l[H]=fq;S+=bj}}if(P)console.log(S);if(P)console.log("iterations",Date.now()-k);
k=Date.now();var iB=U.slice(0);for(var H=0;H<D;H++){var hS=c.MO.alpha(A[H*2+1],m[R[H]*2+1],f[l[H]*2+1]);
iB[O[H]]=~~(.5+255*hS)}iB=c.Sq.a5Y(iB,C,new _(0,0,z,r),16,.01*.01);if(P)console.log("guided filter",Date.now()-k);
k=Date.now();if(Y)for(var H=0;H<T;H++)if(U[H]==255||U[H]==0)iB[H]=U[H];var eF=C.slice(0);for(var H=0;
H<D;H++){var bQ=O[H],dx=b[R[H]],bj=w[H],iP=bQ<<2,d8=iB[bQ],a6=(d8>=250?bQ:dx)<<2;eF[iP]=C[a6];eF[iP+1]=C[a6+1];
eF[iP+2]=C[a6+2]}c.Wn(iB,eF,3);if(P)console.log(Date.now()-k);k=Date.now();return eF};c.MO.bR=function(L,C,U,E,Y,z,r,p,T){var k=L>>>16,P=L&65535,b=k-(U>>>16),Q=P-(U&65535),K=k-(Y>>>16),h=P-(Y&65535),x=Math.sqrt(b*b+Q*Q)*r,O=Math.sqrt(K*K+h*h)*p;
if(x+O>=T)return 1e9;var y=c.MO.aag(C,E,z);return y+x+O};c.MO.aag=function(L,C,U){var E=L>>>16,Y=L>>>8&255,z=L&255,r=C>>>16,p=C>>>8&255,T=C&255,k=U>>>16,P=U>>>8&255,b=U&255,Q=c.MO.alpha(L,C,U),K=E-(Q*r+(1-Q)*k),h=Y-(Q*p+(1-Q)*P),x=z-(Q*T+(1-Q)*b);
return Math.sqrt(K*K+h*h+x*x)};c.MO.alpha=function(L,C,U){var E=L>>>16,Y=L>>>8&255,z=L&255,r=C>>>16,p=C>>>8&255,T=C&255,k=U>>>16,P=U>>>8&255,b=U&255,Q=r-k,K=p-P,h=T-b,x=E-k,O=Y-P,y=z-b,v=Q*Q+K*K+h*h,i=v==0?.5:(x*Q+O*K+y*h)/v;
return Math.max(0,Math.min(1,i))};c.MO.amR=function(L){};c.MO.yd=function(L,C,U,E,Y){var z=[],r=C-1,p=U-1;
for(var T=1;T<p;T++)for(var k=1;k<r;k++){var H=T*C+k;if(L[H]==E&&(L[H-C-1]==Y||L[H-C]==Y||L[H-C+1]==Y||(L[H-1]==Y||L[H+1]==Y)||(L[H+C-1]==Y||L[H+C]==Y||L[H+C+1]==Y)))z.push(H)}return z};
c.Sq={};c.Sq.ajp=function(L,C,U,E,Y){var z=U.d,r=U.v,p=z*r,T=c.Sq.Dr,k=c.F(p*4),P;c.n0(k,4294967295);
var b=U,Q=L,K=C,h=E;c.Wn(L,k,0);P=c.CE(k,U);P=c.CE(P.eB,P.rect);b=P.rect;h=E>>>2;console.log(b,h);Q=c.F(b.X());
c.wH(P.eB,Q,0);c.Wn(C,k,0);P=c.CE(k,U);P=c.CE(P.eB,P.rect);K=c.F(b.X());c.wH(P.eB,K,0);var x=c.Sq.a5p(Q,K,b,h,Y),O=x[0],y=x[1],v=new _(0,0,b.d*2,b.v*2);
O=T(O,b,v,!0);O=T(O,v,U,!0);y=T(y,b,v,!0);y=T(y,v,U,!0);var i=c.F(p);for(var H=0;H<p;H++)i[H]=Math.max(0,Math.min(255,Math.floor(.5+(O[H]*C[H]+255*y[H]))));
return i};c.Sq.Dr=function(L,C,U,E){var Y=U.d,z=U.v,r=C.d,p=C.v,T=c.Sq.kA,k=new Float32Array(Y*z);for(var P=0;
P<p;P++){var b=(P+P)*Y;for(var Q=0;Q<r;Q++){if(!0||Q==0||P==0||Q==r-1||P==p-1)k[b]=k[b+1]=k[b+Y]=k[b+Y+1]=L[P*r+Q];
else{k[b]=T(Q+.25,P+.25,L,r,p);k[b+1]=T(Q+.75,P+.25,L,r,p);k[b+Y]=T(Q+.25,P+.75,L,r,p);k[b+Y+1]=T(Q+.75,P+.75,L,r,p)}b+=2}}return k};
c.Sq.kA=function(L,C,U,E,Y){L-=.499999;C-=.499999;var z=Math.floor(L),r=Math.floor(C),p=r*E+z,T=L-z,k=C-r,P=(1-k)*(1-T),b=(1-k)*T,Q=k*(1-T),K=k*T;
if(U[p]==null||U[p+E+1]==null){console.log(L,C,E,Y);throw"e"}return P*U[p+0]+b*U[p+1]+Q*U[p+E+0]+K*U[p+E+1]};
c.Sq.a5p=function(L,C,U,E,Y){var z=U.d,r=U.v,p=z*r,T=c.Sq.p6,k=c.Sq.F,P=c.qM.Ov,b=c.Sq.gc,C=T(C),L=T(L),Q=k(p);
P(C,Q,U,E);var K=k(p);P(L,K,U,E);var h=k(p);b(C,C,h);P(h,h,U,E);var x=k(p);b(C,L,x);P(x,x,U,E);var O=k(p),y=k(p);
for(var H=0;H<p;H++){var v=Q[H],i=K[H],D=h[H]-v*v,I=x[H]-v*i,m=I/(D+Y),f=i-m*v;O[H]=m;y[H]=f}var A=k(p);
P(O,A,U,E);var d=k(p);P(y,d,U,E);return[A,d]};c.Sq.a5Y=function(L,C,U,E,Y){var z=U.d,r=U.v,p=z*r,T=c.Sq.Dr,k=Date.now(),P=!1,b=U,Q=L,K=C,h=E;
b=new _(0,0,z>>>2,r>>>2);h=E>>>2;Q=c.Sq.anX(L,z,r);K=c.Sq.a18(C,z,r);if(P)console.log(Date.now()-k);
k=Date.now();var x=c.Sq.adx(Q,K,b,h,Y),O=x[0],y=x[1],v=x[2],i=x[3];if(P)console.log(Date.now()-k);k=Date.now();
var D=c.F(p);for(var I=0;I<r;I++)for(var m=0;m<z;m++){var H=I*z+m,f=(I>>>2)*(z>>>2)+(m>>>2),A=H<<2,d=O[f]*C[A]+y[f]*C[A+1]+v[f]*C[A+2]+i[f]*255;
D[H]=Math.max(0,Math.min(255,~~(.5+d)))}if(P)console.log(Date.now()-k);k=Date.now();return D};c.Sq.anX=function(L,C,U){var E=C>>>2,Y=U>>>2,z=c.F(C*U);
for(var r=0;r<Y;r++)for(var p=0;p<E;p++)z[r*E+p]=L[r*C+p<<2];return z};c.Sq.a18=function(L,C,U){var E=C>>>2,Y=U>>>2,z=c.F(C*U*4);
for(var r=0;r<Y;r++)for(var p=0;p<E;p++){var T=r*E+p<<2,k=r*C+p<<4;z[T]=L[k];z[T+1]=L[k+1];z[T+2]=L[k+2];
z[T+3]=L[k+3]}return z};c.Sq.adx=function(L,C,U,E,Y){var z=U.d,r=U.v,p=z*r,T=c.Sq.p6,k=c.Sq.F,P=c.qM.Ov,b=c.Sq.gc,L=T(L),Q=new c.Ry(z*r);
c.df(C,Q);var C=[T(Q.h),T(Q.P),T(Q.O)],K=c.Sq.aaV(L,C,U,E,Y),h=k(p);P(L,h,U,E);var x=k(p);b(C[0],L,x);
P(x,x,U,E);var O=k(p);b(C[1],L,O);P(O,O,U,E);var y=k(p);b(C[2],L,y);P(y,y,U,E);var v=k(p),i=k(p),D=k(p),I=k(p);
for(var H=0;H<p;H++){var m=h[H],f=K.e0[H],A=K.e9[H],d=K.dT[H],g=x[H]-f*m,X=O[H]-A*m,n=y[H]-d*m;v[H]=K.a25[H]*g+K.kp[H]*X+K.iG[H]*n;
i[H]=K.kp[H]*g+K.a5j[H]*X+K.Vj[H]*n;D[H]=K.iG[H]*g+K.Vj[H]*X+K.a7c[H]*n;I[H]=m-v[H]*f-i[H]*A-D[H]*d}P(v,v,U,E);
P(i,i,U,E);P(D,D,U,E);P(I,I,U,E);return[v,i,D,I]};c.Sq.aaV=function(L,C,U,E,Y){var z=U.d,r=U.v,p=z*r,T=c.Sq.F,k=c.qM.Ov,P=c.Sq.gc,b={};
b.e0=T(p);k(C[0],b.e0,U,E);b.e9=T(p);k(C[1],b.e9,U,E);b.dT=T(p);k(C[2],b.dT,U,E);var Q=T(p);P(C[0],C[0],Q);
k(Q,Q,U,E);var K=T(p);P(C[0],C[1],K);k(K,K,U,E);var h=T(p);P(C[0],C[2],h);k(h,h,U,E);var x=T(p);P(C[1],C[1],x);
k(x,x,U,E);var O=T(p);P(C[1],C[2],O);k(O,O,U,E);var y=T(p);P(C[2],C[2],y);k(y,y,U,E);b.a25=Q;b.kp=K;
b.iG=h;b.a5j=x;b.Vj=O;b.a7c=y;for(var H=0;H<p;H++){var v=b.e0[H],i=b.e9[H],D=b.dT[H],I=Q[H]-v*v+Y,m=K[H]-v*i,f=h[H]-v*D,A=x[H]-i*i+Y,d=O[H]-i*D,g=y[H]-D*D+Y,X=A*g-d*d,n=d*f-m*g,R=m*d-A*f,l=I*g-f*f,w=f*m-I*d,V=I*A-m*m,F=X*I+n*m+R*f,Z=1/F;
b.a25[H]=X*Z;b.kp[H]=n*Z;b.iG[H]=R*Z;b.a5j[H]=l*Z;b.Vj[H]=w*Z;b.a7c[H]=V*Z}return b};c.Sq.F=function(L){return new Float32Array(L)};
c.Sq.p6=function(L){var C=L.length,U=new Float32Array(C);for(var H=0;H<C;H++)U[H]=L[H]*(1/255);return U};
c.Sq.gc=function(L,C,U){for(var H=0;H<L.length;H++)U[H]=L[H]*C[H]};c.uD={};c.uD.Cf=function(L,C,U,E){var Y=L[C]-U[E],z=L[C+1]-U[E+1],r=L[C+2]-U[E+2];
return Math.sqrt(Y*Y+z*z+r*r)*(1/441.7)};c.uD.getSelection=function(L,C,U){var E=C*U,Y=c.F(E),z=!1,r=Math.round(U*.7),p=1,T=new Uint32Array(12),k=c.F(12);
for(var P=0;P<r;P++)for(var b=0;b<C;b++){if(b<p||P<p||b>C-p-1||P>U-p-1){var H=P*C+b,Q=H<<2,K=0;if(P<p)K=4;
else if(b>C-p-1)K=8;T[K]+=L[Q];T[K+1]+=L[Q+1];T[K+2]+=L[Q+2];T[K+3]++;Y[H]=255}}for(var H=0;H<12;H+=4)for(var h=0;
h<3;h++)k[H+h]=T[H+h]/T[H+3];var x=new Float32Array(E);for(var H=0;H<E;H++){var Q=H*4,O=c.uD.Cf(L,Q,k,0),y=c.uD.Cf(L,Q,k,4),v=c.uD.Cf(L,Q,k,8),i=Math.max(O,Math.max(y,v));
x[H]=O+y+v-i}c.uD.f_(x);var D=Date.now(),I=new Float32Array(E),m=[],f=c.F(E);for(var H=0;H<3;H++){c.wH(L,f,H);
var A=new Uint16Array(E);m.push(A);c.uD.a9T(f,Y,C,U,A)}if(z)console.log("MBD",Date.now()-D);D=Date.now();
for(var H=0;H<E;H++)I[H]=m[0][H]+m[1][H]+m[2][H];c.uD.f_(I);for(var H=0;H<E;H++)I[H]+=.4*x[H];var d=C>>>1,r=U>>>1,g=1/Math.sqrt(d*d+r*r);
for(var P=0;P<U;P++)for(var b=0;b<C;b++){var X=b-d,n=P-r,R=1-Math.sqrt(X*X+n*n)*g;I[P*C+b]*=R}if(z)console.log("Centeredness",Date.now()-D);
D=Date.now();for(var H=0;H<E;H++)Y[H]=I[H]*255;var l=Math.round(C/120),w=Math.round(l*.8);if(z)console.log(l,w);
c.nW.AP(Y,f,C,U,l,c.nW.ow,[]);Y.set(f);if(z)console.log("erosion",Date.now()-D);D=Date.now();for(var H=0;
H<E;H++)I[H]=Y[H];c.uD.f_(I);var V=c.F(256);for(var H=0;H<256;H++)V[H]=256/(1+Math.exp(-20*(H/255-.5)));
for(var H=0;H<E;H++){var F=~~(I[H]*255+.5);Y[H]=V[F]}if(z)console.log("Simoid",Date.now()-D);D=Date.now();
return Y};c.uD.f_=function(L){var C=L.length,U=0;for(var H=0;H<C;H++)U=Math.max(U,L[H]);var E=1/U;for(var H=0;
H<C;H++)L[H]=L[H]*E};c.uD.a9T=function(L,C,U,E,Y){var z=U*E,r=L.slice(0),p=L.slice(0);for(var H=0;H<z;
H++)Y[H]=C[H]==255?0:65535;c.uD.Zk(L,p,r,Y,U,E);c.uD.uo(L,p,r,Y,U,E);c.uD.Zk(L,p,r,Y,U,E);c.uD.uo(L,p,r,Y,U,E);
return Y};c.uD.Zk=function(L,C,U,E,Y,z){for(var r=1;r<Y;r++)c.uD.Gk(r,-1,L,C,U,E);for(var p=1;p<z;p++){c.uD.Gk(p*Y,-Y,L,C,U,E);
for(var r=1;r<Y;r++){var H=p*Y+r;c.uD.Gk(H,-1,L,C,U,E);c.uD.Gk(H,-Y,L,C,U,E)}}};c.uD.uo=function(L,C,U,E,Y,z){for(var r=Y-2;
r>=0;r--)c.uD.Gk(Y*z-Y+r,1,L,C,U,E);for(var p=z-2;p>=0;p--){c.uD.Gk(p*Y+Y-1,Y,L,C,U,E);for(var r=Y-2;
r>=0;r--){var H=p*Y+r;c.uD.Gk(H,1,L,C,U,E);c.uD.Gk(H,Y,L,C,U,E)}}};c.uD.Gk=function(H,L,C,U,E,Y){var z=H+L,r=C[H],p=U[z],T=E[z];
if(p<r)p=r;else if(r<T)T=r;var k=p-T;if(Y[z]!=65535&&k<Y[H]){Y[H]=k;U[H]=p;E[H]=T}};c.pB={};c.pB.filter=function(L,C,U,E){var Y=C.d,z=C.v,r=Y*z,p=E[0],T=E[1],k=E[2],P=E[3],b=E[4],Q=E[5],K=E[6],h=Date.now(),x=new Float32Array(Y*z*4);
c.pB.a6J(L,Y,z,x);var O=Math.ceil(p*Math.sqrt(-2*Math.log(.1))),y=new ArrayBuffer(r*4),v=new Float32Array(y),i=new Float32Array(r),D=new Float32Array(r);
for(var H=0;H<r;H++){var I=H*4;v[H]=x[I];i[H]=x[I+1];D[H]=x[I+2]}c.qM.U_(v,v,C,O*1/2.4,2);c.qM.U_(i,i,C,O*1/2.4,2);
c.qM.U_(D,D,C,O*1/2.4,2);for(var H=0;H<r;H++){var I=H*4;x[I]=v[H];x[I+1]=i[H];x[I+2]=D[H]}var m=new Uint8Array(y);
for(var H=0;H<r;H++){var I=H*4,f=H*4,v=x[I],i=x[I+1],D=x[I+2],A=Math.sqrt((v-D)*(v-D)+4*i*i),d=(v+D+A)*.5,g=(v+D-A)*.5,X=g-D,n=i,R=X*X+n*n;
if(R!=0){var l=Math.sqrt(R),w=1/l;X*=w;n*=w}m[f]=128+127*X;m[f+1]=128+127*n}var V=1.3*T+2,F=P*(2/10),Z=L.slice();
if(t.i8){var M=new Float32Array([1/Y,1/z]),a=t.kb(0,Y,z);a.set(Z);var e=t.kb(1,Y,z);e.set(m);t.RV(a,C);
if(b){a.Go(C);t.filter.BW({type:t.filter.m8,WY:M,a7_:1/k,agS:F},a.zQ)}a.Go(C);t.filter.BW({type:t.filter.VN,YY:e.W5,WY:M,a4D:V,a6l:2},a.zQ);
if(b){a.Go(C);t.filter.BW({type:t.filter.Jl,WY:M,aek:new Float32Array(K),ac8:Q},a.zQ)}a.get(U)}else{if(b)c.pB.NK(1/k,F,Z,Y,z);
c.pB.VN(Z,U,m,Y,z,V);if(b)c.pB.a1p(Y,z,U,K,Q)}var N=r*4;for(var H=3;H<N;H+=4)U[H]=L[H]};c.pB.VN=function(L,C,U,E,Y,z){var r=Math.ceil(2*z),p=-1/(2*z*z),T=[],k=1;
for(var H=0;H<r+20;H++)T[H]=Math.exp(H*H*p);var P=[0,0,0,0];for(var b=0;b<Y;b++){for(var Q=0;Q<E;Q++){var K=b*E+Q,h=K*4,x=1,O=L[h],y=L[h+1],v=L[h+2],i=L[h+3],D=(U[h]-128)*(1/127),I=(U[h+1]-128)*(1/127),m=D,f=I,A=Q==0?.51:.49,d=b==0?.51:.49;
for(var H=0;H<2;H++){var g=Q+A,X=b+d,n=0;while(n<r){if(g<.5||E-.5<g||X<.5||Y-.5<X)break;var R=~~g,l=~~X,w=l*E+R,V=w*4,F=(U[V]-128)*(1/127),Z=(U[V+1]-128)*(1/127);
if(F*m+Z*f<0){F=-F;Z=-Z}m=F;f=Z;g+=k*F;X+=k*Z;if(g<.5||E-.5<g||X<.5||Y-.5<X)break;var M=~~g,a=~~X,e=a*E+M<<2;
n+=k;var N=T[~~n];c.I.Pi(g,X,L,E,Y,P);O+=P[0]*N;y+=P[1]*N;v+=P[2]*N;i+=P[3]*N;x+=N}m=-D;f=-I}var J=1/x;
C[h]=~~(.5+O*J);C[h+1]=~~(.5+y*J);C[h+2]=~~(.5+v*J);C[h+3]=~~(.5+i*J)}}};c.pB.a1p=function(L,C,U,E,Y){for(var z=0;
z<C;z++)for(var r=0;r<L;r++){var p=z*L+r<<2,T=1+c.pB.afp(r,z,U,L,C,E)*Y;U[p]=Math.max(0,Math.min(255,U[p]*T));
U[p+1]=Math.max(0,Math.min(255,U[p+1]*T));U[p+2]=Math.max(0,Math.min(255,U[p+2]*T))}};c.pB.afp=function(L,C,U,E,Y,z){var r=U[(C*E+Math.max(0,L-1))*4+3],p=U[(C*E+Math.min(E-1,L+1))*4+3],T=U[(Math.max(0,C-1)*E+L)*4+3],k=U[(Math.min(Y-1,C+1)*E+L)*4+3],P=.7,b=(p-r)*(1/255),Q=.7,K=(k-T)*(1/255),h=-b*Q,x=-P*K,O=P*Q,y=Math.sqrt(h*h+x*x+O*O),v=1/y,i=h*v,D=x*v,I=O*v,m=z[0]*i+z[1]*D+z[2]*I;
return m};c.pB.NK=function(L,C,U,E,Y){function z(p,k,P){return Math.max(k,Math.min(P,p))}for(var r=0;
r<Y;r++)for(var p=0;p<E;p++){var T=c.pB.ahz(p+.5,r+.5,L,C);U[(r*E+p)*4+3]=Math.max(0,Math.min(255,T*255))}};
c.pB.ahz=function(L,C,U,E){function Y(f,A,d){return(1-d)*f+d*A}var z=(L+613)*U,r=(C+117)*U,p=~~z,T=~~r,k=z-p,P=r-T,b=Math.sin(11),Q=Math.cos(p)*b,K=Math.cos(p+1)*b,h=Math.cos(T)*b,x=Math.cos(T+1)*b,u=c.pB.hash(Q,h),O=c.pB.hash(K,h),y=c.pB.hash(Q,x),v=c.pB.hash(K,x),i=Y(u,O,k),D=Y(y,v,k),I=Y(i,D,P);
I=I<.5?0:1;var m=I+E*c.pB.hash(Math.cos(z)*b,Math.cos(r)*b);return m*(1/3)};c.pB.hash=function(L,C){var U=Math.sin(L*11.697096+C*73.32456)*12157.47691;
return U-Math.floor(U)};c.pB.a6J=function(L,C,U,E){var Y=[-1,0,1,-2,0,2,-1,0,1],z=[-1,-2,-1,0,0,0,1,2,1],r=C-1,p=U-1,T=C*4;
for(var k=1;k<p;k++)for(var P=1;P<r;P++){var H=k*C+P,b=H*4,Q=c.pB.rl(L,b,T,Y),K=c.pB.rl(L,b,T,z),h=c.pB.rl(L,b+1,T,Y),x=c.pB.rl(L,b+1,T,z),O=c.pB.rl(L,b+2,T,Y),y=c.pB.rl(L,b+2,T,z);
E[b]=Q*Q+h*h+O*O;E[b+1]=Q*K+h*x+O*y;E[b+2]=K*K+x*x+y*y}c.pB.a3u(E,C,U)};c.pB.rl=function(L,C,U,E){return L[C-U-4]*E[0]+L[C-U]*E[1]+L[C-U+4]*E[2]+L[C-4]*E[3]+L[C]*E[4]+L[C+4]*E[5]+L[C+U-4]*E[6]+L[C+U]*E[7]+L[C+U+4]*E[8]};
c.pB.a3u=function(L,C,U){function E(T,H,k){var P=H*4,b=k*4;T[b]=T[P];T[b+1]=T[P+1];T[b+2]=T[P+2]}var Y=C-1,z=U-1;
E(L,C+1,0);E(L,2*C-2,C-1);for(var r=1;r<Y;r++)E(L,C+r,r);for(var p=1;p<z;p++){E(L,p*C+1,p*C);E(L,p*C+C-2,p*C+C-1)}for(var r=1;
r<Y;r++)E(L,(U-2)*C+r,(U-1)*C+r);E(L,(p-2)*C+1,(p-1)*C);E(L,(p-1)*C-2,p*C-1)};c.Cw={};c.Cw.KI=function(L,C,U,E){var Y=L[C*2],z=L[C*2+1],r=L[U*2],p=L[U*2+1],T=L[E*2],k=L[E*2+1];
return Y*p+r*k+T*z-T*p-r*z-Y*k};c.Cw.__=function(L,C){var U=[],E=[],Y=[],z={};for(var H=0;H<C.length;
H+=3){var r=~~(H*(1/3)),p=C[H+0],T=C[H+1],k=C[H+2],P=c.Cw.KI(L,p,T,k);if(P>0){var b=T;T=k;k=b}var Q=z[k+"-"+T],K=z[T+"-"+p],h=z[p+"-"+k],x=[k,Q,r,null],O=[T,K,r,x],y=[p,h,r,O];
x[3]=y;if(Q)Q[1]=x;if(K)K[1]=O;if(h)h[1]=y;z[k+"-"+p]=y;z[p+"-"+T]=O;z[T+"-"+k]=x;U[p]=O;Y[H]=O;U[T]=x;
Y[H+1]=x;U[k]=y;Y[H+2]=y;E[r]=O}return{QP:U,tB:E,wI:Y}};c.Cw.ag8=function(L){var C=[],U=L.tB;for(var H=0;
H<U.length;H++){var E=U[H];C.push(E[0]);E=E[3];C.push(E[0]);E=E[3];C.push(E[0])}return C};c.Cw.an7=function(L,C,U,E){var Y=L[C*2],z=L[C*2+1],r=L[U*2],p=L[U*2+1],T=L[E*2],k=L[E*2+1],P=r-Y,b=p-z,Q=T-Y,K=k-z,h=P*(Y+r)+b*(z+p),x=Q*(Y+T)+K*(z+k),O=2*(P*(k-p)-b*(T-r));
if(Math.abs(O)<1e-5){var y=Math.min(Y,r,T),v=Math.min(z,p,k),i=(Math.max(Y,r,T)-y)*.5,D=(Math.max(z,p,k)-v)*.5;
return[y+i,v+D,i*i+D*D,1]}var I=(K*h-b*x)/O,m=(P*x-Q*h)/O,i=I-Y,D=m-z;return[I,m,i*i+D*D,0]};c.Cw.afl=function(L,C,U){var E=U[1],Y=U[3],z=Y[3],r=E[3],p=r[3],T=U[2],k=E[2],P=U[0],b=E[0],Q=Y[0],K=r[0],h=c.Cw.an7(L,b,K,Q),x=L[P*2]-h[0],O=L[P*2+1]-h[1],y=x*x+O*O>h[2]&&h[3]==0&&c.Cw.KI(L,K,P,Q)<0&&c.Cw.KI(L,Q,b,K)<0;
if(y){U[0]=Q;E[0]=K;U[3]=z;z[3]=r;r[3]=U;E[3]=p;p[3]=Y;Y[3]=E;Y[2]=k;r[2]=T;C.tB[k]=p;C.tB[T]=z;C.QP[b]=r;
C.QP[P]=Y}return y};c.Cw.qt=function(L,C,U){var E=L[C*2]-L[U*2],Y=L[C*2+1]-L[U*2+1];return Math.sqrt(E*E+Y*Y)};
c.Cw.ab3=function(L,C,U){var E=U[1],Y=U[3],z=Y[3],r,p,T=U[2],k,P=U[0],b=z[0],Q=Y[0],K;if(E){r=E[3];p=r[3];
k=E[2];K=r[0]}var h=L.length>>>1;L[2*h]=(L[2*b]+L[2*P])*.5;L[2*h+1]=(L[2*b+1]+L[2*P+1])*.5;if(!0){var x=T,O=U,y=C.tB.length,v=[h,null,x,O],i=[Q,v,y,z];
v[1]=i;var D=[h,null,y,i];Y[3]=v;z[3]=D;z[2]=y;C.tB[x]=Y;C.tB[y]=D;C.QP[P]=Y;C.QP[Q]=z;C.wI.push(v,i,D)}if(E){var I=k,m=E,f=y+1;
D[1]=m,m[1]=D;var A=[h,null,I,m],d=[K,A,f,p];A[1]=d;var g=[h,O,f,d];O[1]=g;r[3]=A;p[3]=g;p[2]=f;C.tB[I]=r;
C.tB[f]=p;C.QP[b]=r;C.QP[K]=p;C.wI.push(A,d,g)}C.QP[h]=O};c.Cw.MJ=function(L,C){var U=0;while(!0){var E=U;
for(var H=0;H<C.wI.length;H++){var Y=C.wI[H];if(Y[1]==null)continue;var z=c.Cw.afl(L,C,Y);if(z){U++;
break}}if(E==U)break}return U!=0};c.Cw.ahT=function(L,C,U,E){var Y=0;for(var H=0;H<E;H++){var z=null,r=0;
for(var p=0;p<C.wI.length;p++){var T=C.wI[p],k=c.Cw.qt(L,T[0],T[3][3][0])*(T[1]?1:2);if(k>r){z=T;r=k}}if(r>U){c.Cw.ab3(L,C,z);
Y++}}return Y!=0};c.Cw.ahe=function(L,C){var U=[],Q=0;for(var H=0;H<L.length;H++)U.push(0);for(var H=0;
H<C.wI.length;H++){var E=C.wI[H],Y=E[0],z=E[3][3][0],r=L[Y*2],p=L[Y*2+1],T=L[z*2],k=L[z*2+1],P=r-T,b=p-k;
U[Y*2]+=-P;U[Y*2+1]+=-b;U[z*2]+=P;U[z*2+1]+=b}for(var H=0;H<L.length;H+=2){var K=H>>>1,h=C.QP[K],E=h,x=!0;
do{if(E[1]==null){x=!1;break}E=E[1][3]}while(E!=h);if(x){var O=.02;L[H]+=O*U[H];L[H+1]+=O*U[H+1];Q+=O*(U[H]*U[H]+U[H+1]*U[H+1])}}return Q};
c.Cw.a0t=function(L,C,U){var E=c.a.mE(L),Y=c.Cw.__(L,C);c.Cw.MJ(L,Y);for(var z=0;z<300;z++){var r=!1,p=!1;
r=c.Cw.ahT(L,Y,U,5);if(r)p=c.Cw.MJ(L,Y);var T=c.Cw.ahe(L,Y);if(!r&&!p&&T<1e-4){break}}return c.Cw.ag8(Y)};
c.De={};c.De.$l=function(L){var C=L.zr,U=L.vR,E=L.gn,Y=L.hu,z=L.$g,r=L.QM,p=L.Ni,T=c.W1.P9,v,i,D=0;function k(u){var g6=new Array(u);
for(var H=0;H<u;H++)g6[H]=0;return g6}var P=U.length>>>1,b=k(C.f4*2),Q=k(C.f4),K=k(C.f4),h=Date.now();
for(var H=0;H<L.bf.length;H++){var x=C.a4T+H,O=C.aU*(r[H*2]+p[H*2]),y=C.aU*(r[H*2+1]+p[H*2+1]);b[x*2]=O;
b[x*2+1]=y;Q[x]=O;K[x]=y}C.a6P.qP(Y,C.a4G.P9(b),.01,v,i);for(var H=0;H<C.ana.wI.length;H++){var I=C.ana.wI[H],m=I[3][3][0],f=I[0],A=I[3][0],d=I[1]?I[1][3][0]:A;
if(I[1]&&m>f)continue;var g=U[m*2],X=U[m*2+1],n=U[f*2],R=U[f*2+1],l=Y[m*2],w=Y[m*2+1],V=Y[f*2],F=Y[f*2+1],Z=Y[A*2],M=Y[A*2+1],a=Y[d*2],e=Y[d*2+1],N=[l,w,V,F,Z,M];
if(I[1])N.push(a,e);var J=T(C.a3s[D],N),f5=J[0],dx=J[1],fq=1/Math.sqrt(f5*f5+dx*dx);f5*=fq;dx*=fq;var i9=n-g,S=R-X;
Q[D]=f5*i9+dx*S;K[D]=-dx*i9+f5*S;D++}var fs=new Array(P),bz=new Array(P);for(var H=0;H<P;H++){fs[H]=z[H*2];
bz[H]=z[H*2+1]}C.a8V.qP(fs,C.ai9.P9(Q),.5);C.a8V.qP(bz,C.ai9.P9(K),.5);for(var H=0;H<P;H++){z[H*2]=fs[H];
z[H*2+1]=bz[H]}};c.De.Vq=function(L){var C=L.vR,U=L.gn,E=L.bf,Y=c.W1.multiply,z=Date.now(),r=c.Cw.__(C,U),p=C.length>>>1,T=0,h=0,dx=1e3;
for(var H=0;H<r.wI.length;H++)T+=r.wI[H][1]?.5:1;var k=T+E.length,P=[],b=new c.W2(k*2,p*2),Q=new c.W2(k,p),K=[[[-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]]],x=[],O=[];
for(var H=0;H<r.wI.length;H++){var y=r.wI[H],v=y[3][3][0],i=y[0],D=y[3][0],I=y[1]?y[1][3][0]:D;if(y[1]&&v>i)continue;
var m=C[v*2],f=C[v*2+1],A=C[i*2],d=C[i*2+1],g=C[D*2],X=C[D*2+1],n=C[I*2],R=C[I*2+1],l=[[m,f,1,0],[f,-m,0,1],[A,d,1,0],[d,-A,0,1],[g,X,1,0],[X,-g,0,1]];
if(y[1])l.push([n,R,1,0],[R,-n,0,1]);var w=c.W1.t$(l),V=Y(linear.invert(Y(w,l)),w);V.pop();V.pop();P.push(V);
var F=A-m,Z=d-f,M=K[y[1]?1:0];M=c.W1.AE(M,Y([[F,Z],[Z,-F]],V));var a=[v*2,v*2+1,i*2,i*2+1,D*2,D*2+1,I*2,I*2+1],e=y[1]?8:6,N=[];
for(var J=0;J<e;J++)N.push([a[J],M[0][J],M[1][J]]);N.sort(function(g6,al){return g6[0]-al[0]});for(var f5=0;
f5<2;f5++){for(var J=0;J<e;J++){x[J]=N[J][0];O[J]=N[J][1+f5]}b.R5(O,x,e)}if(v<i)Q.R5([-1,1],[v,i],2);
else Q.R5([1,-1],[i,v],2);h++}for(var H=0;H<E.length;H++){var fq=E[H];b.R5([dx],[fq*2],1);b.R5([dx],[fq*2+1],1);
Q.R5([dx],[fq],1)}var i9=b.t$(),S=i9.fU(i9),fs=Q.t$(),bz=fs.fU(fs);return{a4T:T,f4:k,a4G:i9,a6P:S,ai9:fs,a8V:bz,ana:r,a3s:P,aU:dx}};
c.De.adS=function(L,C,U,E,Y){var z=new _(0,0,C,U),r=c.F(z.X());c.wH(L,r,3);c.round(r,70);var p=c.lJ(r,z),T=[.1,.065,.035][E]*Math.max(p.d,p.v),k=Y+1,P=C+k*2,b=U+k*2,Q=new _(-k,-k,P,b),K=c.F(Q.X());
c.zM(r,z,K,Q);var h=K.slice(0);for(var x=0;x<Y;x++){for(var O=1;O<b-1;O++){for(var y=1;y<P-1;y++){var H=O*P+y;
h[H]=K[H-P]|K[H-1]|K[H]|K[H+1]|K[H+P]}}var v=h;h=K;K=v}var i=ie.lg(K,P,b,Math.round(p.X()*5e-4)),D=ie.zG(i),I=new c0(1,0,0,1,-k,-k);
for(var H=0;H<D.length;H++){var m=D[H];c.a.J(m.path.c,I,m.path.c);m.vR=c.De.ajW(m.path);m.gn=c.a.a4p(m.vR);
m.gn=c.Cw.a0t(m.vR,m.gn,T)}return D};c.De.ajW=function(L){var C=[],U=L.c,E=L.Z.length-1,Y=0,z=0;for(var r=0;
r<E;r++){var H=r*6,p=U[H+6]-U[H+0],T=U[H+7]-U[H+1],k=Math.ceil(Math.sqrt(p*p+T*T));for(var P=0;P<k;P++){var b=P/k,Q=1-b,K=Q*Q*Q*U[H+0]+3*Q*Q*b*U[H+2]+3*Q*b*b*U[H+4]+b*b*b*U[H+6],h=Q*Q*Q*U[H+1]+3*Q*Q*b*U[H+3]+3*Q*b*b*U[H+5]+b*b*b*U[H+7];
C.push(K,h);Y=K;z=h}}C=c.a.zw(C,1);var x=[],O=C.length;for(var H=0;H<O;H+=2){var h=C.pop(),K=C.pop();
x.push(K,h)}return x};c.De.a3F=function(L,C,U,E){function Y(A,d,g,X,n){var R=n[A*2]-n[d*2],l=n[A*2+1]-n[d*2+1],w=Math.sqrt(R*R+l*l);
if(g[A].indexOf(d)==-1){g[A].push(d);X[A].push(w)}if(g[d].indexOf(A)==-1){g[d].push(A);X[d].push(w)}}var z=L.length>>>1,r=new Array(z);
if(U.length==0){r.fill(0);return r}var p=new Array(z),T=new Array(z);for(var H=0;H<z;H++){p[H]=[];T[H]=[]}for(var H=0;
H<C.length;H+=3){Y(C[H],C[H+1],p,T,L);Y(C[H],C[H+2],p,T,L);Y(C[H+1],C[H+2],p,T,L)}var k=new Float64Array(z*2),P=new Uint32Array(z*2);
k.fill(1e9);var b=new Uint8Array(z);for(var Q=0;Q<U.length;Q++){b.fill(0);var K=["---",[0,U[Q]]];while(K.length!=1){var h=c.CN.amI(K),x=h[0],O=h[1];
if(b[O]==1)continue;var y=O<<1;if(x<k[y]){k[y+1]=k[y];P[y+1]=P[y];k[y]=x;P[y]=Q}else if(x<k[y+1]){k[y+1]=x;
P[y+1]=Q}b[O]=1;var v=p[O],i=T[O];for(var H=0;H<v.length;H++){var D=v[H];if(b[D]!=1){c.CN.ak7(K,[x+i[H],D])}}}}for(var H=0;
H<z;H++){var y=H<<1,I=k[y],m=k[y+1],f=1/(I+m);r[H]=(1-I*f)*E[P[y]]+(1-m*f)*E[P[y+1]]}return r};c.De.alp=function(L){var C={Z:[],c:[]},U=[L];
while(U.length!=0){var E=U.pop(),Y=E.Ke;if(E.ajC instanceof Array||E.a9R instanceof Array){C.Z.push("M","L","L","L","Z");
C.c.push(Y[0],Y[1],Y[2],Y[1],Y[2],Y[3],Y[0],Y[3])}else U.push(E.ajC,E.a9R)}return C};c.De.wV=function(L,C,U,E,Y,z,r){var p=U.d,T=U.v,k=Math.round(r.length/3),P=new Array(k);
for(var H=0;H<k;H++)P[H]=H;P.sort(function(Q,K){return z[r[Q*3]]-z[r[K*3]]});for(var H=0;H<k;H++){var b=P[H]*3;
c.De.aeN(r[b]*2,r[b+1]*2,r[b+2]*2,E,Y,L,C,p,T)}};c.De.aeN=function(L,C,U,E,Y,z,r,p,T){var k=c.De.x$,P=[L,C,U,1.2,1.2,1.2,0],b=[0,0,0,0],Q=Y[L],K=Y[L+1],h=Y[C],x=Y[C+1],O=Y[U],y=Y[U+1],v=Math.max(0,Math.min(p-1,E[L])),i=Math.max(0,Math.min(p-1,E[C])),D=Math.max(0,Math.min(p-1,E[U])),I=Math.max(0,Math.min(T-1,E[L+1])),m=Math.max(0,Math.min(T-1,E[C+1])),f=Math.max(0,Math.min(T-1,E[U+1])),A=h-Q,d=x-K,g=O-Q,X=y-K,n=1/(A*X-g*d+1e-9),R=Math.max(0,Math.floor(Math.min(Q,h,O))),l=Math.min(p,Math.ceil(Math.max(Q,h,O))),w=Math.max(0,Math.floor(Math.min(K,x,y))),V=Math.min(T,Math.ceil(Math.max(K,x,y)));
for(var F=w;F<V;F++)for(var Z=R;Z<l;Z++){var M=Z+.5-Q,a=F+.5-K,e=(M*X-g*a)*n,N=(A*a-M*d)*n;if(e>=0&&N>=0&&e+N<=1){var J=1-e-N,s=v*J+i*e+D*N,f5=I*J+m*e+f*N;
c.I.Pi(s,f5,z,p,T,b);c.De.aiC(b,r,F*p+Z<<2)}}};c.De.aiC=function(L,C,U){var E=C[U],Y=C[U+1],z=C[U+2],r=C[U+3],p=1-L[3]*(1/255);
C[U]=~~(.5+L[0]+E*p);C[U+1]=~~(.5+L[1]+Y*p);C[U+2]=~~(.5+L[2]+z*p);C[U+3]=~~(.5+L[3]+r*p)};c.De.x$=function(){var L=function(U,E,Y,z){var r=z[0],p=z[1],T=z[2],k=U[r+0],P=U[r+1],b=U[p+0],Q=U[p+1],K=U[T+0],h=U[T+1],x=b-k,O=Q-P,y=K-k,v=h-P,i=E-k,D=Y-P,I=x*v-y*O,m=1/(I+1e-9),f=(i*v-y*D)*m,A=(x*D-i*O)*m;
if(f>=0&&A>=0&&f+A<=1){z[3]=1-f-A;z[4]=f;z[5]=A;return 1}return 0},C=function(U,E,Y,z){var r=[0,0,0,0,0,0];
for(var H=0;H<E.length;H+=3){r[0]=E[H]*2;r[1]=E[H+1]*2;r[2]=E[H+2]*2;if(L(U,Y,z,r)==1)return!0}return!1};
return{anj:L,adt:C}}();c.bu={};c.bu.aiy=function(L,C,U){var E=c.F(C*U*4),Y=!1;c.I.fw(L,C,U,E,[U,C,0,1,0,1,0,0]);
return[c.bu.oH(L,C,U,Y),c.bu.oH(E,U,C,Y)]};c.bu.J=function(L,C){var U=!1,E=L[0],Y=L[1],z=E[1],r=E[2],p=E[3],T=C.d,k=C.v;
if(r==T&&p==k)z=z.slice(0);else if(p!=k){var P=c.F(r*k*4);c.bu.UT(Y,k,P,U);z=c.F(r*k*4);c.I.fw(P,k,r,z,[r,k,0,1,0,1,0,0]);
if(r!=T){E=c.bu.oH(z,r,k,U);z=c.F(T*k*4);c.bu.UT(E,T,z,U)}}else if(r!=T){z=c.F(T*p*4);c.bu.UT(E,T,z,U)}return z};
c.bu.oH=function(L,C,U,E){var Y=Date.now(),z=new Uint16Array(C*U),r=1;c.bu.aci(L,C,U,z);var p=Math.ceil(C/r),T=new Uint32Array(r),k=new Uint32Array(r),p=Math.floor(C/r);
for(var P=0;P<r;P++)k[P]=P<r-1?p:C-(r-1)*p;for(var b=0;b<U;b++){var H=b*C;for(var P=0;P<r;P++){var p=k[P];
for(var Q=0;Q<p;Q++)T[P]+=z[H+Q];H+=p}}if(E){console.log(Date.now()-Y,"cost");Y=Date.now()}var K=new Uint32Array(C),h=new Uint32Array(C),x=new Uint32Array(C*U);
for(var Q=0;Q<C;Q++){x[(U-1)*C+Q]=z[(U-1)*C+Q]}for(var b=U-2;b>=0;b--){var O=b*C;for(var P=0;P<r;P++){var p=k[P];
x[O]=z[O]+Math.min(x[O+C],x[O+C+1]);for(var Q=1;Q<p-1;Q++){var H=O+Q;x[H]=z[H]+Math.min(x[H+C-1],Math.min(x[H+C],x[H+C+1]))}O+=p-1;
x[O]=z[O]+Math.min(x[O+C-1],x[O+C]);O++}}if(E){console.log(Date.now()-Y,"Building M");Y=Date.now()}function y(X,n){return X<n?X:n}function v(H,X){var n=h[H],R=x[X],l=~~(n*R*1e-4);
return l}var i=new Uint8Array(C*U),D=new Uint32Array(C);for(var H=0;H<C;H++){K[H]=H;h[H]=z[H]}for(var b=1;
b<U;b++){var I=0,O=b*C;for(var P=0;P<r;P++){var p=k[P],H=O;D[I]=v(I,H);var m=D[I]+v(I+1,H+1),f=v(I,H+1)+v(I+1,H);
D[I+1]=y(m,f);for(var Q=2;Q<p;Q++){var H=O+Q,A=D[I+Q-1]+v(I+Q-1,H-1),d=D[I+Q-2]+v(I+Q-1,H-2)+v(I+Q-2,H-1);
D[I+Q]=y(A,d)}var Q=p-1;while(Q>=2){var H=O+Q,A=D[I+Q-1]+v(I+Q-1,H-1),d=D[I+Q-2]+v(I+Q-1,H-2)+v(I+Q-2,H-1);
if(D[I+Q]==A){i[H-C]=1;Q-=1}else{i[H-C]=0;i[H-C-1]=2;Q-=2}}var H=O;if(Q==0){i[H-C]=1}else{if(D[I+1]==m){i[H+1-C]=1;
i[H-C]=1}else{i[H+1-C]=0;i[H-C]=2}}O+=p;I+=p}c.bu.acA(b,C,i,z,K,h,!0,Y)}if(E){console.log(Date.now()-Y,"Matching");
Y=Date.now()}var g=z;return[UZIP.adler(L,0,L.length),L,C,U,r,k,T,K,h,i,g]};c.bu.UT=function(L,C,U,E){var Y=L.slice(0),z=Y.shift(),r=Y.shift(),p=Y.shift(),T=Y.shift(),k=Y.shift(),P=Y.shift(),b=Y.shift(),Q=Y.shift(),K=Y.shift().slice(0),h=Y.shift(),x=Y.shift(),O=Date.now(),y=Math.abs(p-C),v=Math.floor(y/k),i=new Uint32Array(k),I=0,m=1e9,A=0,d=0,g=0;
for(var D=0;D<k;D++)i[D]=D<k-1?v:y-(k-1)*v;x.fill(0);for(var f=0;f<p;f++){I=Math.max(I,K[f]);m=Math.min(m,K[f])}for(var D=0;
D<k;D++){var X=P[D],v=i[D];for(var n=0;n<v;n++){var R=0,l=1e9;for(var f=0;f<X;f++)if(K[d+f]<l){l=K[d+f];
R=d+f}if(C<p)K[R]=1e9;else K[R]*=1.2;if(g<p/3)A+=l;var w=Q[R],V=x[w],F=V<65280?65280:V+1;if(F<65280)throw"e";
for(var Z=0;Z<T;Z++){var H=Z*p+w;x[H]=F;w+=h[H]-1}g++}d+=X}if(E){console.log(Date.now()-O,"Removing best seams");
O=Date.now()}function M(H,e){var N=H<<2,J=e<<2;U[N]=r[J];U[N+1]=r[J+1];U[N+2]=r[J+2];U[N+3]=r[J+3]}for(var Z=0;
Z<T;Z++){var a=0,H=Z*p;for(var f=0;f<C;f++,a++){if(C<p){while(x[H+a]==65280)a++;M(Z*C+f,Z*p+a)}else{M(Z*C+f,Z*p+a);
while(x[H+a]>=65280){x[H+a]--;f++;M(Z*C+f,Z*p+a)}}}}if(E){console.log(Date.now()-O,"Shifting image pixels");
O=Date.now()}};c.bu.acA=function(L,C,U,E,Y,z){var r=0,H=L*C;while(r<C){if(U[H-C]==1){z[r]=z[r]+E[H];
r++;H++}else{var p=Y[r];Y[r]=Y[r+1];Y[r+1]=p;var T=z[r];z[r]=z[r+1]+E[H];z[r+1]=T+E[H+1];r+=2;H+=2}}};
c.bu.aci=function(L,C,U,E){function Y(L,H,T){var b=H<<2,Q=T<<2,K=L[b]-L[Q],h=L[b+1]-L[Q+1],x=L[b+2]-L[Q+2];
return Math.abs(K)+Math.abs(h)+Math.abs(x)}for(var z=1;z<C;z++){var r=Y(L,z,z-1);E[z-1]+=r;E[z]+=r}for(var p=1;
p<U;p++){var T=p*C,r=Y(L,T,T-C);E[T]+=r;E[T-C]+=r;for(var z=1;z<C;z++){var H=p*C+z,k=Y(L,H,H-1),P=Y(L,H,H-C);
E[H-C]+=P;E[H-1]+=k;E[H]+=P+k}}for(var p=0;p<U;p++){E[p*C]*=2;E[p*C+C-1]*=2}for(var H=0;H<E.length;H++)if(E[H]==0)E[H]=1};
c.xk=function(){var L=0,C=0,E=15,z=256;function U(P,b,Q,K,h,x){var O=(h-1)*b,y=x*b;return P[y+K]-P[y+Q-1]-P[O+K]+P[O+Q-1]}var Y=Math.round(E/8),r=[];
function p(P,b){for(var Q=0;Q<b.length;Q++){var K=b[Q],h=0,x=0,O=P[K.ej],y=O.eI,v=O.aU,i=O.fg;for(var D=-E;
D<=E;D++)for(var I=-E;I<=E;I++){var m=I+K.aeL,f=D+K.aj_;if(I*I+D*D>E*E||m<0||f<0||m>=v||f>=v)continue;
var A=y[f*v+m];h+=I*A;x+=D*A}K.f2=Math.atan2(x,h)}}function T(P,b,Q,K,h){var x=~~(P+.5),O=~~(b+.5);return U(Q,K,x-Y,x+Y,O-Y,O+Y)}function k(P,b,Q,K,h){L=K;
C=h;if(r.length==0){var x=new c.Q.il(16200817),i=8,D=0;function O(fs){var g=fs[0]-fs[2],X=fs[1]-fs[3];
return g*g+X*X}function y(){var fs=0,bz=0;while(fs===0)fs=x.get();while(bz===0)bz=x.get();return Math.sqrt(-2*Math.log(fs))*Math.cos(2*Math.PI*bz)}var v=y,I=[];
while(D!=z){var m=Math.max(-E,Math.min(E,v()*i)),f=Math.max(-E,Math.min(E,v()*i)),A=Math.max(-E,Math.min(E,v()*i)),d=Math.max(-E,Math.min(E,v()*i)),g=m-A,X=f-d,n=Math.sqrt(g*g+X*X);
if(n<3||n>12)continue;r.push(m,f,A,d);D++}}var R=20;for(var l=0;l<b.length;l++){var w=b[l],V=P[w.ej],F=V.h$,Q=V.eI,K=V.aU,h=V.fg,Z=w.aeL,M=w.aj_,a=w.f2,e=Math.cos(a),N=Math.sin(a),J=new Uint8Array(z>>>3);
w.V5=J;for(var H=0;H<z;H++){var s=H*4,m=r[s+0],f=r[s+1],A=r[s+2],d=r[s+3],f5=e*m-N*f,dx=N*m+e*f,fq=e*A-N*d,i9=N*A+e*d,e8=T(Z+f5,M+dx,F,K,h),S=T(Z+fq,M+i9,F,K,h);
J[H>>>3]|=(e8<S?0:1)<<(H&7)}}}return{alV:p,akY:k}}();c.a8H=function(){var L=0,C=0;function U(z,r,p,T,k,P){var b=(k-1)*r,Q=P*r;
return z[Q+T]-z[Q+p-1]-z[b+T]+z[b+p-1]}function E(z,r,p){var T=new Uint32Array(r*p);T[0]=z[0];for(var k=1;
k<r;k++)T[k]=T[k-1]+z[k];for(var P=1;P<p;P++){var H=P*r;T[H]=T[H-r]+z[H];for(var k=1;k<r;k++)T[H+k]=z[H+k]+T[H+k-1]+T[H+k-r]-T[H+k-r-1]}return T}function Y(z,r){var p=[[9]],T=Date.now(),k=[];
for(var P=0;P<z.length;P++){var b=z[P],Q=b.h$,K=L=b.aU,h=C=b.fg,y=9,f=1,M=24;if(Q==null)continue;var x=new Float32Array(K*h),O=new Uint8Array(K*h),v=y>>>1,i=v>>>1,D=Math.round(y/3);
if(D!=y/3)throw"e";var I=1/(y*y),m=1.2*(y/9);for(var A=v+1;A<h-v;A+=f)for(var d=v+1;d<K-v;d+=f){var g=U(Q,K,d-i,d+i,A-v,A+v)-3*U(Q,K,d-i,d+i,A-v+D,A+v-D),X=U(Q,K,d-v,d+v,A-i,A+i)-3*U(Q,K,d-v+D,d+v-D,A-i,A+i),n=d-v+1,R=d+v-1,l=A-v+1,w=A+v-1,V=U(Q,K,n,d-1,l,A-1)+U(Q,K,d+1,R,A+1,w)-U(Q,K,d+1,R,l,A-1)-U(Q,K,n,d-1,A+1,w),F=(X*g-.9*V*(.9*V))*(I*I);
x[A*K+d]=Math.abs(F);O[A*K+d]=F<0?0:1}var Z=K*f;for(var A=M;A<h-M;A+=f)for(var d=M;d<K-M;d+=f){var H=A*K+d,a=x[H];
if(a<16)continue;if(x[H-f]>=a||x[H+f]>=a)continue;if(x[H-Z-f]>=a||x[H-Z]>=a||x[H-Z+f]>=a)continue;if(x[H+Z-f]>=a||x[H+Z]>=a||x[H+Z+f]>=a)continue;
k.push({x:~~(d*b.NB+.5),y:~~(A*b.NB+.5),aeL:d,aj_:A,ej:P,G:a,ah_:O[H],uR:m})}}if(r!=null){k.sort(function(i9,e8){return e8.G-i9.G});
k=k.slice(0,r)}return k;var e=[];for(var H=0;H<k.length;H++){var N=!0,J=k[H];for(var s=0;s<k.length;
s++){var f5=k[s];if(s!=H&&f5.G>J.G&&(f5.ej==J.ej+1||f5.ej==J.ej-1)){var dx=J.x-f5.x,fq=J.y-f5.y;if(dx*dx+fq*fq<5){N=!1;
break}}}if(N)e.push(J)}console.log(k.length,e.length);return e}return{ago:Y}}();c.e7={};c.e7.aaN=function(L){var C=L.length,U=c.e7.Ez(L,!1),Y=0,z=1;
throw"e";var E=[];for(var H=0;H<C;H++)E[H]=c.e7.Za(U[H]);var r=L[0][1],p=c.e7.match(U[Y],U[z],E[z]);
console.log(p.length);var T=Math.max(Math.min(p.length,40),p.length*.54);T=Math.min(T,200);var k=p.slice(0,T),P=c.x6.a2Y(U[Y],U[z],k,r.d,r.v),b=c.x6.amZ(P,[0,0,0],1),Q=r.d/2,K=r.v/2,h=1/Math.max(Q,K);
for(var H=0;H<1;H++){var x=k[H],O=U[Y][x[0]],y=U[z][x[1]],v=c.x6.a4A(b,h*(O.x-Q),h*(O.y-K),h*(y.x-Q),h*(y.y-K))}var i=c.x6.ah4(P,r),D=[];
for(var H=0;H<2;H++){var I=i[H],m=[I[0][0],I[0][1],I[0][2],I[1][0],I[1][1],I[1][2],I[2][0],I[2][1]],f=W.o.WC(L[H],null,m);
D.push([f.buffer,f.rect])}return[c.e7.aoh(D[0],D[1],U[Y],U[z],k,P,i,r)]};c.e7.ur=function(L,C){var U=L.length,E=!1,Y=Date.now(),z=c.e7.Ez(L,!1,1e4);
if(E)console.log("Descriptors ready",Date.now()-Y);Y=Date.now();for(var H=0;H<U;H++){var r=L[H][1];for(var p=0;
p<z[H].length;p++){z[H][p].x+=r.x;z[H][p].y+=r.y}}if(E)console.log("shifted",Date.now()-Y);Y=Date.now();
var T=[];for(var H=0;H<U;H++)T[H]=c.e7.Za(z[H]);if(E)console.log("trees built",Date.now()-Y);Y=Date.now();
var k=[];for(var H=0;H<U-1;H++)for(var p=H+1;p<U;p++){var P=c.e7.match(z[H],z[p],T[p]);if(E)console.log("Matches found",H,p,P.length);
P=P.slice(0,P.length>>>1);if(P.length<10)return null;var b=c.e7.alM(z[H],z[p],P,2);k.push([H,p,P,b])}k.sort(function(d,g){return g[2].length-d[2].length});
if(E)console.log("Matches found",Date.now()-Y);Y=Date.now();var Q=[],K=new UnionFind(U);for(var H=0;
H<k.length;H++){var h=k[H],x=K.find(h[0]),O=K.find(h[1]);if(x!=O){Q.push(h);K.link(x,O)}}var y=[];for(var H=0;
H<U;H++)y[H]=[1,0,0,0,1,0,0,0];var v=[0],i=new Uint8Array(U);i[v[0]]=1;while(v.length!=0){var O=v.pop(),b=y[O],D=[];
for(var H=0;H<Q.length;H++){var h=Q[H],I=h[0],m=h[1];if(I==O&&i[m]==0){y[m]=c.I.O1(b,h[3]);v.push(m);
i[m]=1}if(m==O&&i[I]==0){y[I]=c.I.O1(b,c.I.G$(h[3]));v.push(I);i[I]=1}}}if(C==null){var f=[];for(var H=0;
H<U;H++)f.push([y[H][2],H]);f.sort(function(d,g){return d[0]-g[0]});C=f[f.length>>>1][1]}var A=c.I.G$(y[C]);
for(var H=0;H<U;H++)y[H]=c.I.O1(y[H],A);if(E)console.log("Transforms reordered",Date.now()-Y);Y=Date.now();
return y};c.e7.Ez=function(L,C,U){var E=[],Y=!1;for(var H=0;H<L.length;H++){var z=L[H][0],r=L[H][1],p=r.d,T=r.v,k=c.F(r.X());
c.Fy(z,k);var P=Date.now(),b=c.e7.ak9(k,r,!0);if(Y)console.log("Pyramid built ---------------",Date.now()-P);
P=Date.now();var Q=c.a8H.ago(b,U);if(Y)console.log("SURF Generation",Date.now()-P);P=Date.now();if(!C){c.xk.alV(b,Q);
if(Y)console.log("ORB Orientations",Date.now()-P);P=Date.now();c.xk.akY(b,Q,k,p,T);if(Y)console.log("ORB Descriptors",Date.now()-P);
P=Date.now()}E.push(Q)}return E};c.e7.ak9=function(L,C,U){function E(k,b,Q){var h=new Uint32Array(b*Q);
h[0]=k[0];for(var x=1;x<b;x++)h[x]=h[x-1]+k[x];for(var O=1;O<Q;O++){var H=O*b;h[H]=h[H-b]+k[H];for(var x=1;
x<b;x++)h[H+x]=k[H+x]+h[H+x-1]+h[H+x-b]-h[H+x-b-1]}return h}var Y=[],z=[L,C];c.Zl(z);if(U){var r=c.$f(L,C),p=r.rect,T=[r.eB,p];
c.Zl(T)}for(var H=0;H<z.length;H++){var k=z[2*H],P=z[2*H+1],b=P.d,Q=P.v,K=Math.min(b,Q);if(K<30)break;
if(K<1600)Y.push({eI:k,aU:b,fg:Q,NB:1<<H,h$:E(k,b,Q)});if(!U)continue;var k=T[2*H],P=T[2*H+1],b=P.d,Q=P.v,K=Math.min(b,Q);
if(K<30)break;if(K<1600)Y.push({eI:k,aU:b,fg:Q,NB:(1<<H)*3/2,h$:E(k,b,Q)})}return Y};c.e7.alM=function(L,C,U,E){var Y=Date.now(),z,r=0,p=0,T=U.length,k=new Float64Array(2);
for(var P=0;P<3e3;P++){var b=~~(Math.random()*T),Q=~~(Math.random()*T),K=~~(Math.random()*T),h=~~(Math.random()*T),l=0,w=0;
if(b==Q||b==K||b==h||Q==K||Q==h||K==h)continue;var x=U[b],O=U[Q],y=U[K],v=U[h],i=L[x[0]],D=C[x[1]],I=L[O[0]],m=C[O[1]],f=L[y[0]],A=C[y[1]],d=L[v[0]],g=C[v[1]],X=[i.x,i.y,I.x,I.y,f.x,f.y,d.x,d.y],n=[D.x,D.y,m.x,m.y,A.x,A.y,g.x,g.y],R=c.I.Fi(X,n);
if(R[0]==0&&R[1]==0&&R[3]==0&&R[4]==0)continue;var V=T-r+2;for(var H=0;H<T&&H-l<V;H++){var F=L[U[H][0]],Z=C[U[H][1]];
c.I.Pb(Z.x,Z.y,R,k);var M=k[0]-F.x,a=k[1]-F.y,e=M*M+a*a;if(e<E){l++;w+=e}}if(l>r||l==r&&w<p){z=R;r=l;
p=w}}return z};var ds=new Uint8Array(256);for(var H=0;H<256;H++){var hs=0,u=H;while(u!=0){u=u&u-1;hs++}ds[H]=hs}c.e7.als=function(L,C,U){var E=0,Y=L.length;
for(var H=0;H<Y&&E<U;H++)E+=ds[L[H]^C[H]];return E};c.e7.acP=function(L,C,U,top,E){if(E[U]==1)return;
var Y=c.e7.als(L.V5,C.V5,top[0]);if(Y<top[0]){if(Y<top[2]){top[0]=top[2];top[1]=top[3];top[2]=Y;top[3]=U}else{top[0]=Y;
top[1]=U}}E[U]=1};c.e7.Za=function(L){var C=[],U=[],E=[[],[]],Y=4;for(var H=0;H<L.length;H++)(L[H].ah_==0?C:U).push(H);
for(var z=0;z<2;z++){var r=new Array(Y),p=[],T=z==0?C:U,k=T.length/256,P=[];for(var b=0;b<32;b++){var Q=new Array(256),x=0;
for(var K=0;K<256;K++)Q[K]=[];for(var K=0;K<T.length;K++){var h=T[K];Q[L[h].V5[b]].push(h)}for(var K=0;
K<256;K++)x+=Math.abs(Q[K].length-k);P.push([x,b,Q])}P.sort(function(O,y){return O[0]-y[0]});var p=[],r=[];
E[z]=[p,r];for(var H=0;H<Y;H++){p.push(P[H][1]);r.push(P[H][2])}}return E};c.e7.match=function(L,C,U){var E=[],Y=new Uint16Array(C.length);
Y.fill(65535);var z=new Uint8Array(C.length),top=new Uint32Array(4),r=[];for(var p=0;p<L.length;p++){var T=L[p],k=T.V5;
top.fill(1e6);z.fill(0);var P=U[T.ah_];for(var b=0;b<P[1].length;b++){var Q=P[1][b][k[P[0][b]]];for(var K=0;
K<Q.length;K++){var h=Q[K];c.e7.acP(T,C[h],h,top,z)}}if(top[2]<50&&top[2]<top[0]*.5){var x=Y[top[3]];
if(x==65535){Y[top[3]]=E.length;E.push([p,top[3],top[2]])}else if(top[2]<E[x][2]){E[x]=[p,top[3],top[2]]}}}E.sort(function(O,y){return O[2]-y[2]});
return E};c.e7.a3V=function(L){var C=new _;for(var H=0;H<L.length;H++)C=C.EU(L[H][1]);var U=c.F(C.X()*4);
for(var H=0;H<L.length;H++)c.Q.Kj("norm",L[H][0],L[H][1],U,C,C,1);return[U,C]};c.e7.aoh=function(L,C,U,E,Y,z,r,p){var T=L[1].clone(),k=T.clone();
T.x=T.y=0;var P=C[1].clone(),b=P.clone();P.x=P.y=0;P.x=T.d;var Q=T.EU(P),K=b.y-k.y,h=c.F(Q.X()*4);c.La(L[0],T,h,Q);
c.La(C[0],new _(P.x,P.y+K,P.d,P.v),h,Q);var x=document.createElement("canvas");x.width=Q.d;x.height=Q.v;
var O=x.getContext("2d");O.lineWidth=.5;O.putImageData(new ImageData(new Uint8ClampedArray(h.buffer),Q.d,Q.v),0,0);
if(z){var y=z[0],v=c.W1.t$(y),i=T.d,D=p.d;for(var H=0;H<Y.length;H++){var I=Y[H],L=U[I[0]],C=E[I[1]];
O.strokeStyle="#"+"ff0000";O.beginPath();var m=c.x6.alh(v,r[0],C,0,D),f=c.x6.alh(y,r[1],L,0,D);O.moveTo(-k.x+m[0],-k.y+m[1]);
O.lineTo(-k.x+m[2],-k.y+m[3]);O.moveTo(i-b.x+f[0],-b.y+K+f[1]);O.lineTo(i-b.x+f[2],-b.y+K+f[3]);O.stroke()}}if(Y){var A=Y.length;
for(var H=0;H<A;H++){var I=Y[H],L=U[I[0]],C=E[I[1]];O.strokeStyle="#"+"ffff00"}}var d=new Uint8Array(O.getImageData(0,0,Q.d,Q.v).data.buffer);
if(!1){for(var g=0;g<2;g++){var R=g==0?U:E,l=g*T.d;for(var H=0;H<R.length;H++){var w=R[H],V=~~w.x,F=~~w.y,Z=(F*Q.d+V+l)*4;
d[Z+1]=d[Z+2]=w.akC*60;d[Z+0]=0;d[Z+3]=255}}}return[d,Q]};c.stack={};c.stack.stack=function(L,C,U){var E=L.length,Y=C.length;
if(E==1){C.set(L[0]);return}if(U=="avrg"||U=="stdv"||U=="summ"||U=="vari"){var z=1/E;for(var H=0;H<Y;
H++){var r=0;for(var p=0;p<E;p++)r+=L[p][H];var T=~~(r*z+.5);if(U=="avrg"||(H&3)==3)C[H]=T;else if(U=="summ")C[H]=255*Math.pow(Math.min(255,r)*(1/255),1/2.4);
else{var k=0;for(var p=0;p<E;p++){var P=L[p][H]-T;k+=P*P}var b=Math.sqrt(k*z)*(1/255);if(U=="stdv")C[H]=255*Math.pow(b,1/2.4);
else C[H]=255*Math.pow(b*b,1/2.4)}}}else if(U=="maxx"){for(var H=0;H<Y;H++){var Q=0;for(var p=0;p<E;
p++)Q=Math.max(Q,L[p][H]);C[H]=Q}}else if(U=="minn"){for(var H=0;H<Y;H++){var Q=255;for(var p=0;p<E;
p++)Q=Math.min(Q,L[p][H]);C[H]=Q}}else if(U=="medn"||U=="rang"){var K=function(y,v){return y-v},h=new Array(E),x=0,O=0;
if(E%1==0){O=E>>>1;x=O-1}else{x=O=E>>>1}for(var H=0;H<Y;H++){for(var p=0;p<E;p++)h[p]=L[p][H];h.sort(K);
if(U=="medn")C[H]=h[x]+h[O]>>>1;else C[H]=(H&3)==3?h[E-1]:h[E-1]-h[0]}}else console.log(U)};c.my={};
c.my.a6V=function(L,C,U,E,Y){var z=c.my.Ad(L.buffer,C,U)._V,r=Date.now(),p=new Uint32Array(z.length);
for(var H=0;H<z.length;H++)p[H]=z[H].Z9;var T=UPNG.quantize.getKDtree(new Uint8Array(p.buffer),E),k=[C,1,-C,-1,C+1,-C+1,-C-1,C-1,C+C,2,-C-C,-2,C+C-1,C+C+1,C+2,-C+2,-C-C+1,-C-C-1,-C-2,C-2,C+C+2,-C-C+2-C-C-2,C+C-2],P=new Uint8Array(C*U),b=L;
for(var Q=0;Q<U;Q++)for(var K=0;K<C;K++){var H=Q*C+K<<2,h=b[H]*(1/255),x=b[H+1]*(1/255),O=b[H+2]*(1/255),y=b[H+3]*(1/255),v=c.my.p1(T,h,x,O,y,Y);
if(v==null){var i=[],D=0;while(D<20){var I=Q*C+K+k[D]<<2,m=b[I]*(1/255),f=b[I+1]*(1/255),A=b[I+2]*(1/255),d=b[I+3]*(1/255),g=c.my.p1(T,m,f,A,d,.005);
if(g!=null){if(i.indexOf(g)==-1){i.push(g);g.x_=1}else g.x_++}D++}i.sort(function(y,O){return O.x_-y.x_});
while(i.length!=0&&i[i.length-1].x_<3)i.pop();if(i.length==0)v=c.my.p1(T,h,x,O,y,100);else if(i.length==1)v=i[0];
else if(i.length==2){var X=i[0],n=i[1],R=X.est.q,l=n.est.q,w=l[0]-R[0],V=l[1]-R[1],F=l[2]-R[2],Z=l[3]-R[3],M=h-R[0],a=x-R[1],e=O-R[2],N=y-R[3],J=w*w+V*V+F*F+Z*Z,s=M*M+a*a+e*e+N*N,f5=(M*w+a*V+e*F+N*Z)/J,dx=s-f5*f5*J;
if(dx<.5)v=f5<.5?X:n;else{v=c.my.p1(T,h,x,O,y,100)}}else{var X=i[0],n=i[1],fq=i[2],R=X.est.q,l=n.est.q,i9=fq.est.q,e8=R[0]-i9[0],S=R[1]-i9[1],fs=R[2]-i9[2],bz=R[3]-i9[3],g6=l[0]-i9[0],al=l[1]-i9[1],bj=l[2]-i9[2],bE=l[3]-i9[3],eN=i9[0]-h,dk=i9[1]-x,hj=i9[2]-O,iN=i9[3]-y,dK=e8*e8+S*S+fs*fs+bz*bz,ch=e8*g6+S*al+fs*bj+bz*bE,hP=eN*e8+dk*S+hj*fs+iN*bz,d2=e8*g6+S*al+fs*bj+bz*bE,hr=g6*g6+al*al+bj*bj+bE*bE,fv=eN*g6+dk*al+hj*bj+iN*bE,f3=1/(ch*d2-dK*hr),f5=(hr*hP-fv*ch)*f3,dp=(fv*dK-hP*d2)*f3,go=1-f5-dp,d6=Math.max(f5,dp,go);
if(d6==f5)v=X;else if(d6==dp)v=n;else v=fq}}P[H>>2]=v.ind}return{gn:P,_V:T[1]}};c.my.Ad=function(L,C,U){var E=[],Y={},z=C-1,r=U-1,p=0,T=new Uint32Array(L),k=[-C-1,-C,-C+1,-1,1,C-1,C,C+1,C+C,2,-C-C,-2,C+C-1,C+C+1,C+2,-C+2,-C-C+1,-C-C-1,-C-2,C-2,C+C+2,-C-C+2-C-C-2,C+C-2];
for(var P=1;P<r;P++)for(var b=1;b<z;b++){var Q=P*C+b,K=T[Q],h=!0;for(var H=0;H<8;H++)h=h&&T[Q+k[H]]==K;
if(h){p++;var x=Y[K];if(x==null){Y[K]=E.length;E.push({Z9:K,NM:1})}else E[x].NM++}}return{_V:E,ano:p}};
c.my.p1=function(L,C,U,E,Y,z){var r=UPNG.quantize.getNearest(L[0],C,U,E,Y);return c.my.a2j(r,C,U,E,Y)<z?r:null};
c.my.a2j=function(L,C,U,E,Y){var z=L.est.q,r=C-z[0],p=U-z[1],T=E-z[2],k=Y-z[3];return r*r+p*p+T*T+k*k};
c.my.a70=function(L,C,U,E){var Y=c.my.aea(L,C,U,E),z=Y.gn,r=Y._V,p=Y.afW,T=UPNG.quantize.getKDtree(new Uint8Array(p.buffer.slice(0)),200),k=[];
for(var H=0;H<r.length;H++){var P=r[H].MB,b=P[0],Q=P[1],K=P[2],h=P[3];if(Math.min(b,Q,K,h)<0)throw"e";
var x=UPNG.quantize.getNearest(T[0],b/255,Q/255,K/255,h/255);k.push(T[1].indexOf(x))}for(var H=0;H<C*U;
H++)z[H]=k[z[H]];return{gn:z,_V:T[1]}};c.my.aea=function(L,C,U,E){var Y=C*U,z=2*Y,r=c.my.a6S(L,C,U),p=65535+1,T=new Uint32Array(p),P=0;
for(var H=0;H<z;H++)T[r[H]]++;var k=new Uint32Array(p);for(var H=0;H<p;H++){k[H]=P;P+=T[H]}var b=new Uint32Array(z);
for(var H=0;H<z;H++){var Q=r[H];b[k[Q]]=H;k[Q]++}var K=new UnionFind(Y),h=new Uint16Array(Y),x=new Uint32Array(Y);
for(var H=0;H<Y;H++)x[H]=1;var O=Y,y=1e5/(E*10);for(var v=0;v<z;v++){var i=b[v],D=r[i];if(D==65535)continue;
var H=i>>1,I=H+((i&1)==0?1:C),m=K.find(H),f=K.find(I),A=Math.min(h[m]+y/Math.sqrt(x[m]),h[f]+y/Math.sqrt(x[f]));
if(m!=f&&D<=A){K.link(H,I);O--;var d=K.find(H);x[d]=x[m]+x[f];h[d]=D}}var g=[],X={},n=new Uint16Array(Y);
for(var H=0;H<Y;H++){var d=K.find(H),R=X[d];if(R==null){X[d]=R=g.length;g.push({NM:0,MB:[0,0,0,0]})}g[R].NM++;
for(var I=0;I<4;I++)g[R].MB[I]+=L[(H<<2)+I];n[H]=R}var l=new Uint32Array(g.length);for(var H=0;H<g.length;
H++){var R=g[H];for(var I=0;I<4;I++)R.MB[I]=Math.round(R.MB[I]/R.NM);l[H]=R.MB[3]<<24|R.MB[2]<<16|R.MB[1]<<8|R.MB[0]}return{gn:n,_V:g,afW:l}};
c.my.a6S=function(L,C,U){var E=new Uint16Array(C*U*2);for(var Y=0;Y<U;Y++)for(var z=0;z<C;z++){var H=Y*C+z;
E[H+H]=z<C-1?c.my.uQ(L,H,H+1):65535;E[H+H+1]=Y<U-1?c.my.uQ(L,H,H+C):65535}return E};c.my.uQ=function(L,H,C){var U=H<<2,E=C<<2,Y=L[U],z=L[U+1],r=L[U+2],p=L[U+3],T=L[E],k=L[E+1],P=L[E+2],b=L[E+3],Q=Y-T,K=z-k,h=r-P,x=p-b;
return Q*Q+K*K+h*h+x*x>>2};c.my.QZ=function(){function L(y,v,i,D,I,m){var f=[],A=m,d=m,g=m>>>2;for(var X=0;
X<I;X++)for(var n=0;n<D;n++){var R=~~((n+.5)*A),l=~~((X+.5)*d),w=1e9,V=Math.max(0,R-g),F=Math.min(v,R+g+1),Z=Math.max(0,l-g),M=Math.min(i,l+g+1);
for(var a=Z;a<M;a++)for(var e=V;e<F;e++){var N=C(y,v,e,a);if(N<w){R=e;l=a;w=N}}var J=(l*v+R)*4;f.push(R,l)}return f}function C(y,v,i,D){var I=(D*v+i)*4,m=v*4,f=U(y,I-4,I)+U(y,I,I+4),A=U(y,I-m,I)+U(y,I,I+m);
return f+A}function U(y,v,i){var D=y[v]-y[i],I=y[v+1]-y[i+1],m=y[v+2]-y[i+2];return D*D+I*I+m*m}var E=0,Y=0;
function z(y,v,i,D){Y++;if(D<E)E=D;y[D].push(v,i)}function r(y){Y--;while(y[E].length==0)E++}function p(y,v,i){E=0;
Y=0;var D=v*i,I=Math.round(Math.min(v,i)/50),l=0,w=16;if(I==0)I=1;var m=30/I,f=Math.floor(v/I),A=Math.floor(i/I),d=new Uint16Array(D);
for(var H=0;H<D;H++)d[H]=65535;var g=L(y,v,i,f,A,I),X=g.length>>>1;if(X>65535)throw X;var n=[];for(var H=0;
H<1e3+i;H++)n.push([]);var R=[0,1,0,-1,-1,0,1,0],V=Math.min(A,5),F=new Uint32Array(X*6);for(var Z=0;
Z<A;Z+=V){var M=Math.min(Z+V+1,A);for(var a=Z;a<M;a++)for(var e=0;e<f;e++){var H=a*f+e,N=H*2,J=g[N+1]<<16|g[N];
z(n,J,H,g[N+1]>>>w)}var s=Math.min(i,M*I);if(Z+V>=A)s=i;while(Y!=0){r(n);var f5=n[E].pop(),dx=n[E].pop(),fq=dx>>>16,i9=dx&65535,H=fq*v+i9;
if(d[H]==65535){var e8=f5*6,S=H<<2;d[H]=f5;F[e8]+=y[S];F[e8+1]+=y[S+1];F[e8+2]+=y[S+2];F[e8+3]+=i9;F[e8+4]+=fq;
F[e8+5]++;var fs=fq>>>w;if(fq!=s-1&&d[H+v]==65535)z(n,fq+1<<16|i9,f5,T(y,v,m,i9,fq+1,F,e8)+fs);if(fq!=0&&d[H-v]==65535)z(n,fq-1<<16|i9,f5,T(y,v,m,i9,fq-1,F,e8)+fs);
if(i9!=0&&d[H-1]==65535)z(n,fq<<16|i9-1,f5,T(y,v,m,i9-1,fq,F,e8)+fs);if(i9!=v-1&&d[H+1]==65535)z(n,fq<<16|i9+1,f5,T(y,v,m,i9+1,fq,F,e8)+fs)}}if(s!=fq){var bz=(Z+V)*f;
F.fill(0,bz*6,(bz+f)*6);for(var fq=(Z+V-2)*I;fq<s;fq++)for(var i9=0;i9<v;i9++){var H=fq*v+i9;if(d[H]>=bz){d[H]=65535}}}}return{gn:d,bj:X,nu:F}}c.my.nx=function(y,v,i,D,I){var m=y.bj,f=v*i,A=y.nu,d=y.gn,g=K(D,d,m,f),X=new UnionFind(m),F=0;
for(var n=1;n<i;n++)for(var R=1;R<v;R++){var H=n*v+R,l=d[H],w=0;if((w=d[H-1])!=l&&g[w]==g[l]&&k(A,0,l*6,w*6)<I)X.link(l,w);
if((w=d[H-v])!=l&&g[w]==g[l]&&k(A,0,l*6,w*6)<I)X.link(l,w)}var V=new Uint16Array(m);V.fill(65535);var Z=new Uint16Array(m);
for(var H=0;H<m;H++){var M=X.find(H);if(V[M]==65535)V[M]=F++;Z[H]=V[M]}var a=new Uint16Array(f);for(var H=0;
H<f;H++)a[H]=Z[d[H]];return{gn:a,bj:F}};c.my.a9Y=function(y,v,i,D){var I=c.F(i),m=v.length,f=0;for(var H=0;
H<m&&f!=3;H++){var A=D[H];if(A==0||A==255){var d=v[H],g=2-(A>>>7);I[d]=f=I[d]|g}}return f!=3};function T(y,v,i,D,I,m,f){var A=(I*v+D)*4,d=m[f+5],g=1/d,X=y[A]*d-m[f],n=y[A+1]*d-m[f+1],R=y[A+2]*d-m[f+2],l=D*d-m[f+3],w=I*d-m[f+4],V=Math.sqrt(X*X+n*n+R*R),F=Math.sqrt(l*l+w*w);
return~~((V+i*F)*g+.5)}function k(y,v,i,D){var I=1/y[i+5],m=1/y[D+5],f=y[i]*I-y[D]*m,A=y[i+1]*I-y[D+1]*m,d=y[i+2]*I-y[D+2]*m,g=y[i+3]*I-y[D+3]*m,X=y[i+4]*I-y[D+4]*m,n=Math.sqrt(f*f+A*A+d*d),R=Math.sqrt(g*g+X*X);
return~~(n+v*R+.5)}function P(y,v,i){var D=c.bt(y,new _(0,0,v,i)),I=D.rect.d,m=D.rect.v,f=p(D.eB,I,m),A=f.gn,d=Date.now(),g=new Uint16Array(v*i);
g.fill(65535);for(var X=0;X<m;X++){for(var n=0;n<I;n++){var R=X*I+n,H=(X<<1)*v+(n<<1),l=A[R];if(A[R-I]!=l||A[R-1]!=l||A[R+1]!=l||A[R+I]!=l)l=65535;
g[H]=l;g[H+1]=l;g[H+v]=l;g[H+v+1]=l}}f.gn=g;return f}function b(y,v){var H=0,i=y.length;while(H!=i&&y[H]!=v)H+=2;
return H==i?-1:H}function Q(y,H){if(H==y.length-2){y.pop();y.pop()}else{y[H+1]=y.pop();y[H]=y.pop()}}c.my.a1k=function(y,v,i,D,I){var m=new Uint32Array(I*4400),C=[];
for(var H=0;H<I;H++)C.push([]);for(var f=0;f<i;f++)for(var A=0;A<v;A++){var H=f*v+A,d=H<<2,g=D[H],X=0,n=y[d]>>>4,R=y[d+1]>>>4,l=y[d+2]>>>4;
m[g*4400+(n<<8|R<<4|l)]++;m[g*4400+4096]++;m[g*4400+4100+(n<<4|R)]++;m[g*4400+4360+n]++;if(A!=0&&(X=D[H-1])!=g&&b(C[g],X)==-1){C[g].push(X,0);
C[X].push(g,0)}if(f!=0&&(X=D[H-v])!=g&&b(C[g],X)==-1){C[g].push(X,0);C[X].push(g,0)}}for(var H=0;H<I;
H++){var l=C[H];for(var w=0;w<l.length;w+=2)l[w+1]=O(m,H,l[w])}return[m,C]};function K(y,v,i,D){var I=c.F(i);
for(var H=0;H<D;H++){var m=y[H];if(m==0||m==255)I[v[H]]=2-(m>>>7)}return I}c.my.abR=function(y,v,i,D,I,m,f){var A=v*i,d=f[0],C=f[1],g=new UnionFind(D),X=K(I,y,D,A),n=-1,R=!0,l=0;
for(var H=0;H<D;H++)if(X[H]==1){if(n==-1)n=H;else g.link(H,n)}if(n==-1){for(var H=0;H<A;H++)m[H]=I[H]==255?255:0;
return}while(R){while(R){R=!1;for(var H=0;H<D;H++){if(X[H]==0){var w=h(C[H]);if(X[w]==1){X[H]=X[w];R=!0;
g.link(H,w)}}}}R=!0;l=0;while(R){R=!1;for(var H=0;H<D;H++){if(X[H]==0){var w=h(C[H]);if(X[w]==0){var V=H*4400,F=w*4400;
for(var Z=0;Z<4400;Z+=2){d[V+Z]+=d[F+Z];d[V+Z+1]+=d[F+Z+1]}x(C,d,H,w);l++;X[w]=3;R=!0;g.link(H,w)}}}}R=l!=0}var M=g.find(n);
for(var H=0;H<D;H++)X[H]=g.find(H)==M?255:0;for(var H=0;H<A;H++){m[H]=X[y[H]]}for(var H=0;H<A;H++){var w=I[H];
if(w==0||w==255)m[H]=w}};function h(y){var v=0,i=0,D=y.length;for(var I=0;I<D;I+=2){var m=y[I+1];if(m>i){i=m;
v=I}}return y[v]}function x(C,y,v,i){var D=C[v],I=C[i];Q(D,b(D,i));Q(I,b(I,v));for(var H=0;H<I.length;
H+=2){var m=I[H],f=C[m];Q(f,b(f,i));if(b(f,v)==-1){f.push(v,0);D.push(m,0)}}for(var H=0;H<D.length;H+=2){var m=D[H],f=C[m],A=O(y,v,m);
D[H+1]=A;f[b(f,v)+1]=A}}function O(y,v,i){var D=0,I=4096,m=v*4400,f=i*4400;for(var A=0;A<16;A++){if(y[m+4360+A]==0||y[f+4360+A]==0)continue;
for(var d=0;d<16;d++){var g=A<<4|d;if(y[m+4100+g]==0||y[f+4100+g]==0)continue;var X=m+(g<<4),n=f+(g<<4);
for(var H=0;H<16;H++)D+=Math.sqrt(y[X+H]*y[n+H])}}var R=D/Math.sqrt(y[m+I]*y[f+I]);return~~(999.99999*R)}return p}();
var ie=function(){function L(){this.X=0;this.a3=0;this.IR={};this.tp=[];this.ut=1e5;this.gu=1e5;this.UG=-1;
this.FC=-1;this.color=0}function C(u){this.tR=u;this.o3=new Array(u);this.Z9=new Array(u*6);this.ach=0;
this.Ij=new Array(u*2);this.alpha=new Array(u);this.gq=new Array(u);this.ki=new Array(u)}function U(Y,z,r,p){function T(O,y,Y,z){return Y[z*y+O]}function k(H){var f=Y.length;
while(H<f&&Y[H]==0)H++;return H<f?H:-1}function P(O,y,f){for(var H=2;H<5;H++){var A=0;for(var d=-H+1;
d<=H-1;d++){A+=T(O+d,y+H-1,Y,z)==f?1:-1;A+=T(O+H-1,y+d-1,Y,z)==f?1:-1;A+=T(O+d-1,y-H,Y,z)==f?1:-1;A+=T(O-H,y+d,Y,z)==f?1:-1}if(A>0)return 1;
else if(A<0)return 0}return 0}function b(f,h){var x=new L,O=f,y=h,A=0,d=1,g;x.color=Y[h*z+f];x.sign=T(f,h,Y,z)==x.color?"+":"-";
while(1){x.tp.push(O,y);if(O>x.UG)x.UG=O;if(O<x.ut)x.ut=O;if(y>x.FC)x.FC=y;if(y<x.gu)x.gu=y;x.a3++;O+=A;
y+=d;x.X-=O*d;if(O==f&&y==h)break;var X=T(O+(A+d-1>>1),y+(d-A-1>>1),Y,z)==x.color,n=T(O+(A-d-1>>1),y+(d+A-1>>1),Y,z)==x.color;
if(n&&!X){if(p.vf=="right"||p.vf=="black"&&x.sign=="+"||p.vf=="white"&&x.sign=="-"||p.vf=="majority"&&P(O,y,x.color)||p.vf=="minority"&&!P(O,y,x.color)){g=A;
A=-d;d=g}else{g=A;A=d;d=-g}}else if(n){g=A;A=-d;d=g}else if(!X){g=A;A=d;d=-g}}return x}var Q=0,K=[];
while(!0){var Q=k(Q);if(Q==-1)break;var h=Math.floor(Q/z),x=b(Q-h*z,h);for(var H=0;H<x.tp.length-2;H+=2){var O=x.tp[H],y=x.tp[H+1],v=y*z+O;
if(O==x.tp[H+2]&&y+1==x.tp[H+3]&&Y[v]!=0)ie.fill(v,Y,z,0)}if(x.X>p.anL)K.push(x)}for(var H=0;H<K.length;
H++)K[H].parent=-1;var i=Date.now();for(var H=1;H<K.length;H++){var D=K[H];for(var I=H-1;I>=0;I--){var m=K[I];
if(D.ut<m.ut||D.UG>m.UG||D.gu<m.gu||D.FC>m.FC)continue;if(!ie.a9l(m.tp,D.tp[0]+.5,D.tp[1]+.5))continue;
D.parent=I;break}}return K}function E(Y,z){function r(A,d,g,X,n){this.x=A;this.y=d;this.Qg=g;this.Yb=X;
this.ar=n}function p(A,u){return(u+A)%u}function T(A,d,g,X){return A*X-g*d}function k(A,d,g,X){return A*g+d*X}function P(A,d,g){if(A<=g)return A<=d&&d<g;
else return A<=d||d<g}function b(A,d,g){var X=0;X+=d*A[0]*d;X+=d*A[1]*g;X+=d*A[2];X+=g*A[3]*d;X+=g*A[4]*g;
X+=g*A[5];X+=A[6]*d;X+=A[7]*g;X+=A[8];return X}function Q(A,d,g){return d+A*(g-d)}function K(A,d,g,X){var n=Math.sign(g-A),R=-Math.sign(X-d);
return n*(g-A)-R*(X-d)}function h(A,d){return Math.sqrt(A*A+d*d)}function x(A,d,g,X,n){var R=1-A;return R*R*R*d+3*(R*R*A)*g+3*(A*A*R)*X+A*A*A*n}function O(A,d,g,X,n,R,l,w){var V=T(A,d,l,w),F=T(g,X,l,w),Z=T(n,R,l,w),M=V-2*F+Z,a=-2*V+2*F,e=V,N=a*a-4*M*e;
if(M==0||N<0)return-1;var J=Math.sqrt(N),s=(-a+J)/(2*M),f5=(-a-J)/(2*M);if(s>=0&&s<=1)return s;else if(f5>=0&&f5<=1)return f5;
else return-1}function y(f){var H,A,d;f.UA=f.tp[0];f.ab5=f.tp[1];f.ZJ=[];var g=f.ZJ;g.push(new r(0,0,0,0,0));
for(H=0;H<f.a3;H++){A=f.tp[H<<1]-f.UA;d=f.tp[(H<<1)+1]-f.ab5;g.push(new r(g[H].x+A,g[H].y+d,g[H].Qg+A*d,g[H].Yb+A*A,g[H].ar+d*d))}}function v(f){var u=f.a3,A=f.tp,d,g=new Array(u),X=new Array(u),n=new Array(4),R,l,w,V,F,Z,M,a,e,N,J,H,s,f5,dx,fq,i9,e8,S=0;
f.dg=new Array(u);for(H=u-1;H>=0;H--){if(A[H<<1]!=A[S<<1]&&A[(H<<1)+1]!=A[(S<<1)+1])S=H+1;X[H]=S}for(H=u-1;
H>=0;H--){var fs=p(H+1,u)<<1;n[0]=n[1]=n[2]=n[3]=0;d=(3+3*(A[fs]-A[H<<1])+(A[fs+1]-A[(H<<1)+1]))/2;n[d]++;
R=0;l=0;w=0;V=0;S=X[H];f5=H;while(1){J=0;d=(3+3*Math.sign(A[S*2]-A[f5*2])+Math.sign(A[S*2+1]-A[f5*2+1]))/2;
n[d]++;if(n[0]&&n[1]&&n[2]&&n[3]){g[H]=f5;J=1;break}e=A[S*2]-A[H*2];N=A[S*2+1]-A[H*2+1];if(T(R,l,e,N)<0||T(w,V,e,N)>0){break}if(Math.abs(e)<=1&&Math.abs(N)<=1){}else{F=e+(N>=0&&(N>0||e<0)?1:-1);
Z=N+(e<=0&&(e<0||N<0)?1:-1);if(T(R,l,F,Z)>=0){R=F;l=Z}F=e+(N<=0&&(N<0||e<0)?1:-1);Z=N+(e>=0&&(e>0||N<0)?1:-1);
if(T(w,V,F,Z)<=0){w=F;V=Z}}f5=S;S=X[f5];if(!P(S,H,f5)){break}}if(J==0){M=Math.sign(A[S*2]-A[f5*2]);a=Math.sign(A[S*2+1]-A[f5*2+1]);
e=A[f5*2]-A[H*2];N=A[f5*2+1]-A[H*2+1];dx=T(R,l,e,N);fq=T(R,l,M,a);i9=T(w,V,e,N);e8=T(w,V,M,a);s=1e7;
if(fq<0){s=Math.floor(dx/-fq)}if(e8>0){s=Math.min(s,Math.floor(-i9/e8))}g[H]=p(f5+s,u)}}s=g[u-1];f.dg[u-1]=s;
for(H=u-2;H>=0;H--){if(P(H+1,g[H],s)){s=g[H]}f.dg[H]=s}for(H=u-1;P(p(H+1,u),s,f.dg[H]);H--){f.dg[H]=s}}function i(f){function A(f,H,d){var u=f.a3,e=f.tp,N=f.ZJ,J,s,f5,dx,fq,X,i9,e8,a,S,fs,bz,g6,al,bj=0;
if(d>=u){d-=u;bj=1}if(bj==0){J=N[d+1].x-N[H].x;s=N[d+1].y-N[H].y;dx=N[d+1].Yb-N[H].Yb;f5=N[d+1].Qg-N[H].Qg;
fq=N[d+1].ar-N[H].ar;X=d+1-H}else{J=N[d+1].x-N[H].x+N[u].x;s=N[d+1].y-N[H].y+N[u].y;dx=N[d+1].Yb-N[H].Yb+N[u].Yb;
f5=N[d+1].Qg-N[H].Qg+N[u].Qg;fq=N[d+1].ar-N[H].ar+N[u].ar;X=d+1-H+u}fs=(e[H<<1]+e[d<<1])/2-e[0];bz=(e[(H<<1)+1]+e[(d<<1)+1])/2-e[1];
al=e[d<<1]-e[H<<1];g6=-(e[(d<<1)+1]-e[(H<<1)+1]);i9=(dx-2*J*fs)/X+fs*fs;e8=(f5-J*bz-s*fs)/X+fs*bz;a=(fq-2*s*bz)/X+bz*bz;
S=g6*g6*i9+2*g6*al*e8+al*al*a;return Math.sqrt(S)}var H,d,g,X,u=f.a3,n=new Array(u+1),R=new Array(u+1),l=new Array(u),w=new Array(u+1),V=new Array(u+1),F=new Array(u+1),Z,M,a;
for(H=0;H<u;H++){a=p(f.dg[p(H-1,u)]-1,u);if(a==H){a=p(H+1,u)}if(a<H){l[H]=u}else{l[H]=a}}d=1;for(H=0;
H<u;H++){while(d<=l[H]){w[d]=H;d++}}H=0;for(d=0;H<u;d++){V[d]=H;H=l[H]}V[d]=u;g=d;H=u;for(d=g;d>0;d--){F[d]=H;
H=w[H]}F[0]=0;n[0]=0;for(d=1;d<=g;d++){for(H=F[d];H<=V[d];H++){M=-1;for(X=V[d-1];X>=w[H];X--){Z=A(f,X,H)+n[X];
if(M<0||Z<M){R[H]=X;M=Z}}n[H]=M}}f.PR=g;f.a8X=new Array(g);for(H=u,d=g-1;H>0;d--){H=R[H];f.a8X[d]=H}}function D(f){function A(f,H,Z,l,w,bE){var u=f.a3,eN=f.ZJ,dk=0,a;
while(Z>=u){Z-=u;dk+=1}while(H>=u){H-=u;dk-=1}while(Z<0){Z+=u;dk-=1}while(H<0){H+=u;dk+=1}var hj=eN[Z+1].x-eN[H].x+dk*eN[u].x,iN=eN[Z+1].y-eN[H].y+dk*eN[u].y,dK=eN[Z+1].Yb-eN[H].Yb+dk*eN[u].Yb,ch=eN[Z+1].Qg-eN[H].Qg+dk*eN[u].Qg,hP=eN[Z+1].ar-eN[H].ar+dk*eN[u].ar,M=Z+1-H+dk*u;
l[bE]=hj/M;l[bE+1]=iN/M;var d2=(dK-hj*hj/M)/M,hr=(ch-hj*iN/M)/M,fv=(hP-iN*iN/M)/M,f3=(d2+fv+Math.sqrt((d2-fv)*(d2-fv)+4*hr*hr))/2;
d2-=f3;fv-=f3;if(Math.abs(d2)>=Math.abs(fv)){a=Math.sqrt(d2*d2+hr*hr);if(a!=0){w[bE]=-hr/a;w[bE+1]=d2/a}}else{a=Math.sqrt(fv*fv+hr*hr);
if(a!=0){w[bE]=-fv/a;w[bE+1]=hr/a}}if(a==0){w[bE]=w[bE+1]=0}}var d=f.PR,g=f.a8X,u=f.a3,X=f.tp,n=f.UA,R=f.ab5,l=new Array(d*2),w=new Array(d*2),V=new Array(d),F=new Array(3),H,Z,M,a,s,f5,dx,fq,i9,e8,S;
f.IR=new C(d);for(H=0;H<d;H++){Z=g[p(H+1,d)];Z=p(Z-g[H],u)+g[H];l[H<<1]=0;l[(H<<1)+1]=0;w[H<<1]=0;w[(H<<1)+1]=0;
A(f,g[H],Z,l,w,H<<1)}for(H=0;H<d;H++){V[H]=[0,0,0,0,0,0,0,0,0];var e=w[H<<1]*w[H<<1]+w[(H<<1)+1]*w[(H<<1)+1],N=1/e;
if(e!=0){F[0]=w[(H<<1)+1];F[1]=-w[H<<1];F[2]=-F[1]*l[(H<<1)+1]-F[0]*l[H<<1];for(a=0;a<3;a++){V[H][a*3+0]=F[a]*F[0]*N;
V[H][a*3+1]=F[a]*F[1]*N;V[H][a*3+2]=F[a]*F[2]*N}}}var J=[0,0,0,0,0,0,0,0,0];for(H=0;H<d;H++){J[0]=J[1]=J[2]=J[3]=J[4]=J[5]=J[6]=J[7]=J[8]=J[9]=0;
var fs=X[g[H]<<1]-n,bz=X[(g[H]<<1)+1]-R,g6=0,al=0;Z=p(H-1,d);for(a=0;a<9;a+=3){J[a+0]=V[Z][a+0]+V[H][a+0];
J[a+1]=V[Z][a+1]+V[H][a+1];J[a+2]=V[Z][a+2]+V[H][a+2]}while(1){var bj=J[0]*J[4]-J[1]*J[3];if(bj!=0){g6=(-J[2]*J[4]+J[5]*J[0])/bj;
al=(J[2]*J[3]-J[5]*J[0])/bj;break}if(J[0]>J[4]){F[0]=-J[1];F[1]=J[0]}else if(J[4]){F[0]=-J[4];F[1]=J[3]}else{F[0]=1;
F[1]=0}var e=F[0]*F[0]+F[1]*F[1],N=1/e;F[2]=-F[1]*bz-F[0]*fs;for(a=0;a<3;a++){J[a*3+0]+=F[a]*F[0]*N;
J[a*3+1]+=F[a]*F[1]*N;J[a*3+2]+=F[a]*F[2]*N}}s=Math.abs(g6-fs);f5=Math.abs(al-bz);if(s<=.5&&f5<=.5){f.IR.Ij[H<<1]=g6+n;
f.IR.Ij[(H<<1)+1]=al+R;continue}dx=b(J,fs,bz);i9=fs;e8=bz;if(J[0]!=0){for(S=0;S<2;S++){al=bz-.5+S;g6=-(J[1]*al+J[2])/J[0];
s=Math.abs(g6-fs);fq=b(J,g6,al);if(s<=.5&&fq<dx){dx=fq;i9=g6;e8=al}}}if(J[4]!=0){for(S=0;S<2;S++){g6=fs-.5+S;
al=-(J[3]*g6+J[5])/J[4];f5=Math.abs(al-bz);fq=b(J,g6,al);if(f5<=.5&&fq<dx){dx=fq;i9=g6;e8=al}}}for(a=0;
a<2;a++){for(M=0;M<2;M++){g6=fs-.5+a;al=bz-.5+M;fq=b(J,g6,al);if(fq<dx){dx=fq;i9=g6;e8=al}}}f.IR.Ij[H<<1]=i9+n;
f.IR.Ij[(H<<1)+1]=e8+R}}function I(f){var A=f.IR.tR,d=f.IR,H,g,X,n,R,l,w,V,F;for(H=0;H<A;H++){g=p(H+1,A);
X=p(H+2,A);var Z=d.Ij[H<<1],M=d.Ij[(H<<1)+1],a=d.Ij[X<<1],e=d.Ij[(X<<1)+1],N=d.Ij[g<<1],J=d.Ij[(g<<1)+1],s=Q(.5,a,N),f5=Q(.5,e,J);
R=K(Z,M,a,e);if(R!=0){n=T(N-Z,J-M,a-Z,e-M)/R;n=Math.abs(n);l=n>1?1-1/n:0;l=l*(1/.75)}else{l=4/3}d.gq[g]=l;
var dx=3*g<<1;if(l>=z.adf){d.o3[g]=0;d.Z9[dx+0]=d.Z9[dx+1]=0;d.Z9[dx+2]=N;d.Z9[dx+3]=J;d.Z9[dx+4]=s;
d.Z9[dx+5]=f5}else{if(l<.55){l=.55}else if(l>1){l=1}var fq=.5+.5*l;d.o3[g]=1;d.Z9[dx]=Q(fq,Z,N);d.Z9[dx+1]=Q(fq,M,J);
d.Z9[dx+2]=Q(fq,a,N);d.Z9[dx+3]=Q(fq,e,J);d.Z9[dx+4]=s;d.Z9[dx+5]=f5}d.alpha[g]=l;d.ki[g]=.5}d.adq=1}function m(f){function A(){this.Mq=0;
this.qu=0;this.i5=0;this.a$=0;this.g2=0;this.am=0;this.uR=0;this.alpha=0}function d(f,H,Z,go,d6,i9,e8){var X=f.IR.tR,iB=f.IR.Z9,hS=f.IR.Ij;
if(H==Z)return 1;var eF=H,N=p(H+1,X),bQ=p(eF+1,X),ch=hS[H<<1],hP=hS[(H<<1)+1],iP=hS[N<<1],d8=hS[(N<<1)+1],a6=i9[bQ];
if(a6==0)return 1;var am=h(ch-iP,hP-d8);for(eF=bQ;eF!=Z;eF=bQ){var bQ=p(eF+1,X),fj=p(eF+2,X),dX=hS[bQ<<1],gc=hS[(bQ<<1)+1],dz=hS[fj<<1],gE=hS[(fj<<1)+1];
if(i9[bQ]!=a6)return 1;if(Math.sign(T(iP-ch,d8-hP,dz-dX,gE-gc))!=a6)return 1;if(k(iP-ch,d8-hP,dz-dX,gE-gc)<am*h(dX-dz,gc-gE)*-.999847695156)return 1}var cQ=p(H,X)*3+2<<1,fi=p(H+1,X)<<1,dB=p(Z,X)<<1,bp=p(Z,X)*3+2<<1,bE=iB[cQ],eN=iB[cQ+1],ai=hS[fi],hu=hS[fi+1],bP=hS[dB],hw=hS[dB+1],gQ=iB[bp],gp=iB[bp+1],S=hS[0],fs=hS[1];
cQ=Z*3+2<<1;var aS=iB[cQ],iX=iB[cQ+1],J=e8[Z]-e8[H];J-=T(aS-S,iX-fs,aS-S,iX-fs)/2;if(H>=Z){J+=e8[X]}var dW=ai-bE,i7=hu-eN,i5=bP-bE,fM=hw-eN,ei=gQ-bE,bu=gp-eN,hG=T(dW,i7,i5,fM),fb=T(dW,i7,ei,bu),iJ=T(i5,fM,ei,bu),h0=hG+iJ-fb;
if(fb==hG)return 1;var fq=iJ/(iJ-h0),dx=fb/(fb-hG),hM=fb*fq/2;if(hM==0)return 1;var e0=J/hM,s=2-Math.sqrt(4-e0/.3);
go.qu=Q(fq*s,bE,ai);go.i5=Q(fq*s,eN,hu);go.a$=Q(dx*s,gQ,bP);go.g2=Q(dx*s,gp,hw);go.alpha=s;go.am=fq;
go.uR=dx;ai=go.qu;hu=go.i5;bP=go.a$;hw=go.g2;go.Mq=0;for(eF=p(H+1,X);eF!=Z;eF=bQ){bQ=p(eF+1,X);var fC=hS[eF<<1],cw=hS[(eF<<1)+1],dX=hS[bQ<<1],gc=hS[(bQ<<1)+1];
fq=O(ai-bE,hu-eN,bP-ai,hw-hu,gQ-bP,gp-hw,dX-fC,gc-cw);if(fq<-.5)return 1;var aD=x(fq,bE,ai,bP,gQ),d7=x(fq,eN,hu,hw,gp),am=h(dX-fC,gc-cw);
if(am==0)return 1;var az=T(dX-fC,gc-cw,aD-fC,d7-cw)/am;if(Math.abs(az)>d6)return 1;if(k(dX-fC,gc-cw,aD-fC,d7-cw)<0||k(fC-dX,cw-gc,aD-dX,d7-gc)<0){return 1}go.Mq+=az*az}for(eF=H;
eF!=Z;eF=bQ){bQ=p(eF+1,X);var cQ=eF*3+2<<1,fi=bQ*3+2<<1,gb=iB[cQ],hl=iB[cQ+1],aZ=iB[fi],dq=iB[fi+1];
fq=O(ai-bE,hu-eN,bP-ai,hw-hu,gQ-bP,gp-hw,aZ-gb,dq-hl);if(fq<-.5)return 1;var aD=x(fq,bE,ai,bP,gQ),d7=x(fq,eN,hu,hw,gp),am=h(aZ-gb,dq-hl);
if(am==0)return 1;var az=T(aZ-gb,dq-hl,aD-gb,d7-hl)/am,fo=T(aZ-gb,dq-hl,hS[bQ<<1]-gb,hS[(bQ<<1)+1]-hl)/am;
fo*=.75*f.IR.alpha[bQ];if(fo<0){az=-az;fo=-fo}if(az<fo-d6)return 1;if(az<fo){go.Mq+=(az-fo)*(az-fo)}}return 0}var g=f.IR,X=g.tR,n=g.Ij,R=new Array(X+1),l=new Array(X+1),w=new Array(X+1),V=new Array(X+1),F,H,Z,M,a=new A,e,N,J,s,f5,dx,fq,i9=new Array(X),e8=new Array(X+1);
for(H=0;H<X;H++){if(g.o3[H]=="CURVE"){var S=n[p(H-1,X)<<1],fs=n[(p(H-1,X)<<1)+1],bz=n[H<<1],g6=n[(H<<1)+1],al=n[p(H+1,X)<<1],bj=n[(p(H+1,X)<<1)+1];
i9[H]=Math.sign(T(bz-S,g6-fs,al-bz,bj-g6))}else{i9[H]=0}}J=0;e8[0]=0;var bE=g.Ij[0],eN=g.Ij[1];for(H=0;
H<X;H++){N=p(H+1,X);if(g.o3[N]=="CURVE"){s=g.alpha[N];var dk=H*3+2<<1,hj=N*3+2<<1,iN=g.Z9[dk],dK=g.Z9[dk+1],ch=n[N<<1],hP=n[(N<<1)+1],d2=g.Z9[hj],hr=g.Z9[hj+1];
J+=.3*s*(4-s)*T(ch-iN,hP-dK,d2-iN,hr-dK)/2;J+=T(iN-bE,dK-eN,d2-bE,hr-eN)/2}e8[H+1]=J}R[0]=-1;l[0]=0;
w[0]=0;for(Z=1;Z<=X;Z++){R[Z]=Z-1;l[Z]=l[Z-1];w[Z]=w[Z-1]+1;for(H=Z-2;H>=0;H--){M=d(f,H,p(Z,X),a,z.akm,i9,e8);
if(M){break}if(w[Z]>w[H]+1||w[Z]==w[H]+1&&l[Z]>l[H]+a.Mq){R[Z]=H;l[Z]=l[H]+a.Mq;w[Z]=w[H]+1;V[Z]=a;a=new A}}}F=w[X];
f5=new C(F);dx=new Array(F);fq=new Array(F);Z=X;for(H=F-1;H>=0;H--){var fv=p(Z,X),f3=H*3+0<<1,dp=fv*3+0<<1;
if(R[Z]==Z-1){f5.o3[H]=g.o3[fv];f5.Z9[f3]=g.Z9[dp];f5.Z9[f3+1]=g.Z9[dp+1];f5.Z9[f3+2]=g.Z9[dp+2];f5.Z9[f3+3]=g.Z9[dp+3];
f5.Z9[f3+4]=g.Z9[dp+4];f5.Z9[f3+5]=g.Z9[dp+5];f5.Ij[H<<1]=g.Ij[fv<<1];f5.Ij[(H<<1)+1]=g.Ij[(fv<<1)+1];
f5.alpha[H]=g.alpha[fv];f5.gq[H]=g.gq[fv];f5.ki[H]=g.ki[fv];dx[H]=fq[H]=1}else{f5.o3[H]="CURVE";f5.Z9[f3]=V[Z].qu;
f5.Z9[f3+1]=V[Z].i5;f5.Z9[f3+2]=V[Z].a$;f5.Z9[f3+3]=V[Z].g2;f5.Z9[f3+4]=g.Z9[dp+4];f5.Z9[f3+5]=g.Z9[dp+5];
f5.Ij[H<<1]=Q(V[Z].uR,g.Z9[dp+4],n[fv<<1]);f5.Ij[(H<<1)+1]=Q(V[Z].uR,g.Z9[dp+5],n[(fv<<1)+1]);f5.alpha[H]=V[Z].alpha;
f5.gq[H]=V[Z].alpha;dx[H]=V[Z].uR;fq[H]=V[Z].am}Z=R[Z]}for(H=0;H<F;H++){N=p(H+1,F);f5.ki[H]=dx[H]/(dx[H]+fq[N])}f5.adq=1;
f.IR=f5}for(var H=0;H<Y.length;H++){var f=Y[H];y(f);v(f);i(f);D(f);I(f);if(z.a4d)m(f)}}return{a73:U,agV:E}}();
ie.lg=function(L,C,U,E){var Y={vf:"minority",anL:E,a4d:!0,adf:1,akm:.2},z=ie.a73(L,C,U,Y);ie.agV(z,Y);
return z};ie.zG=function(L){var C=[];for(var H=0;H<L.length;H++){var U=L[H],E=U.IR,Y=["M"],z=[E.Z9[(E.tR-1)*6+4],E.Z9[(E.tR-1)*6+5]];
for(var r=0;r<E.tR;r++){var p=r*6;if(E.o3[r]==1){Y.push("C");for(var T=0;T<6;T++)z.push(E.Z9[p+T])}else if(E.o3[r]==0){Y.push("L");
for(var T=2;T<4;T++)z.push(E.Z9[p+T])}}Y.push("Z");C.push({parent:U.parent,color:U.color,path:{c:z,Z:Y}})}return C};
ie.ajB=function(L,C,U,E,Y){function z(h){function x(H){var K="C "+(h.Z9[H*3+0<<1]*C).toFixed(1)+" "+(h.Z9[(H*3+0<<1)+1]*C).toFixed(1)+",";
K+=(h.Z9[H*3+1<<1]*C).toFixed(1)+" "+(h.Z9[(H*3+1<<1)+1]*C).toFixed(1)+",";K+=(h.Z9[H*3+2<<1]*C).toFixed(1)+" "+(h.Z9[(H*3+2<<1)+1]*C).toFixed(1)+" ";
return K}function O(H){var v="L "+(h.Z9[H*3+1<<1]*C).toFixed(1)+" "+(h.Z9[(H*3+1<<1)+1]*C).toFixed(1)+" ";
v+=(h.Z9[H*3+2<<1]*C).toFixed(1)+" "+(h.Z9[(H*3+2<<1)+1]*C).toFixed(1)+" ";return v}var u=h.tR,H,y="M"+(h.Z9[(u-1)*3+2<<1]*C).toFixed(1)+" "+(h.Z9[((u-1)*3+2<<1)+1]*C).toFixed(1)+" ";
for(H=0;H<u;H++){if(h.o3[H]==1){y+=x(H)}else if(h.o3[H]==0){y+=O(H)}}return y}var U=U*C,E=E*C,r=L.length,p=[];
for(var H=0;H<256;H++)p.push("rgb("+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+")");
var T="<svg id=\"svg\" version=\"1.1\" width=\""+U+"\" height=\""+E+"\" xmlns=\"http://www.w3.org/2000/svg\">";
for(var H=0;H<r;H++){var k=Y[L[H].color-1].ahk.CV;if((k>>>24&255)==0)continue;T+="<path d=\"";var P=L[H].IR;
T+=z(P);var b=k>>0&255,Q=k>>8&255,K=k>>16&255,k="rgb("+b+","+Q+","+K+")";T+="\" fill=\""+k+"\" fill-rule=\"evenodd\"/>"}T+="</svg>";
return T};ie.a9l=function(L,C,U){var u=L.length>>1,E,Y=L[2*u-3]-U,z=L[2*u-2]-C,r=L[2*u-1]-U,p=r>Y,T=0;
for(var H=0;H<u;H++){E=z;Y=r;z=L[2*H]-C;r=L[2*H+1]-U;if(Y==r)continue;p=r>Y}for(var H=0;H<u;H++){E=z;
Y=r;z=L[2*H]-C;r=L[2*H+1]-U;if(Y<0&&r<0)continue;if(Y>0&&r>0)continue;if(E<0&&z<0)continue;if(Y==r&&Math.min(E,z)<=0)return!0;
if(Y==r)continue;var k=E+(z-E)*-Y/(r-Y);if(k==0)return!0;if(k>0)T++;if(Y==0&&p&&r>Y)T--;if(Y==0&&!p&&r<Y)T--;
p=r>Y}return(T&1)==1};ie.fill=function(L,C,U,E){var Y=C[L],z=[L],r=0;while(r<z.length){var p=z[r];r++;
C[p]=E;if(C[p-U]==Y){z.push(p-U);C[p-U]=254}if(C[p-1]==Y){z.push(p-1);C[p-1]=254}if(C[p+1]==Y){z.push(p+1);
C[p+1]=254}if(C[p+U]==Y){z.push(p+U);C[p+U]=254}}};var t={};t.i8=!1;t.n5=!1;t.JA=!1;t.UF=document.createElement("canvas");
t.vU=null;t.p5=null;t.YX=0;(function(){var L={alpha:!0,antialias:!1,depth:!1,premultipliedAlpha:!1},C;
if(!C)C=t.UF.getContext("webgl",L);if(!C)C=t.UF.getContext("experimental-webgl",L);if(C){t.i8=!0;t.n5=!0;
t.vU=C;t.p5=C.createFramebuffer();C.bindFramebuffer(C.FRAMEBUFFER,t.p5);C.disable(C.BLEND);C.disable(C.DEPTH_TEST);
var U=C.createBuffer();C.bindBuffer(C.ARRAY_BUFFER,U);C.bufferData(C.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),C.STATIC_DRAW);
C.enableVertexAttribArray(0);C.vertexAttribPointer(0,2,C.FLOAT,!1,0,0)}}());t.a2N=function(L){L=L.replace(/\s\s+/g," ");
L=L.replace(/; /g,";");L=L.replace(/} /g,"}");L=L.replace(/ }/g,"}");L=L.replace(/{ /g,"{");L=L.replace(/ {/g,"{");
L=L.replace(/= /g,"=");L=L.replace(/ =/g,"=");L=L.replace(/\| /g,"|");L=L.replace(/ \|/g,"|");return L};
t.amT=function(L){var C=t.vU;if(L>C.getParameter(C.MAX_TEXTURE_SIZE)){t.i8=!1;alert("Disabling WebGL")}};
t.NF=function(L,C){return new Float32Array([(L.x-C.x)/C.d,(L.y-C.y)/C.v,L.d/C.d,L.v/C.v])};t.zz=function(){return this.UF};
t.RV=function(L,C){var U=t.vU;U.bindFramebuffer(U.FRAMEBUFFER,t.p5);U.framebufferTexture2D(U.FRAMEBUFFER,U.COLOR_ATTACHMENT0,U.TEXTURE_2D,L.W5,0);
U.viewport(0,0,L.d,L.v);if(C){U.enable(U.SCISSOR_TEST);U.scissor(C.x,C.y,C.d,C.v)}else U.disable(U.SCISSOR_TEST)};
t.N6=function(L,C,U){if(U)throw"error";var E=t.vU;E.disable(E.SCISSOR_TEST);E.bindFramebuffer(E.FRAMEBUFFER,null);
E.viewport(0,0,L,C);if(U){E.enable(E.SCISSOR_TEST);E.scissor(U.x,U.y,Math.round(U.d),Math.round(U.v))}else E.disable(E.SCISSOR_TEST)};
t.clear=function(){var L=t.vU;L.clearColor(0,0,0,0);L.clear(L.COLOR_BUFFER_BIT)};t.oL=function(L,C){if(C==null)C=0;
var U=(C>>>0&255)==0,E=(C>>>8&255)==0,Y=(C>>>16&255)==0,z=(C>>>24&255)==0,r=(L>>>0&255)*(1/255),p=(L>>>8&255)*(1/255),T=(L>>>16&255)*(1/255),k=(L>>>24&255)*(1/255),P=t.vU;
P.colorMask(U,E,Y,z);P.clearColor(r,p,T,k);P.clear(P.COLOR_BUFFER_BIT);P.colorMask(!0,!0,!0,!0)};t.pc=function(L,C,U,E,Y){var z=C.eR(E);
if(Y)z=z.eR(Y);if(z.ue())return;var r=t.vU;t.RV(L);r.bindTexture(r.TEXTURE_2D,U.W5);r.copyTexSubImage2D(r.TEXTURE_2D,0,z.x-E.x,z.y-E.y,z.x-C.x,z.y-C.y,z.d,z.v)};
t.kb=function(H,L,C){var U=t.RX[H];if(U==null||U.d!=L||U.v!=C){if(U)U.delete();U=new t.Ry(L,C)}t.RX[H]=U;
return U};t.RX=[];t.JF=function(){this.Tz=null;this.Uf=null};t.JF.Po=null;t.JF.prototype.U9=function(L){if(this.Uf)return;
this.Uf={};var C=t.vU,U=this.Tz,E=this.Uf;for(var H=0;H<L.length;H++){var Y=L[H];E[Y]=C.getUniformLocation(U,Y)}};
t.JF.prototype.Rt=function(){};t.JF.prototype.jU=function(L){var C=t.vU;for(var H=0;H<L.length;H+=2){C.uniform1i(L[H],H>>>1);
C.activeTexture(C["TEXTURE"+(H>>>1)]);C.bindTexture(C.TEXTURE_2D,L[H+1])}C.activeTexture(C.TEXTURE0)};
t.JF.prototype.Rn=function(L,C){var U=t.vU,E=U.createShader(U.FRAGMENT_SHADER);U.shaderSource(E,L);U.compileShader(E);
if(!U.getShaderParameter(E,U.COMPILE_STATUS))console.log(U.getShaderInfoLog(E));var Y=U.createShader(U.VERTEX_SHADER);
U.shaderSource(Y,C);U.compileShader(Y);if(!U.getShaderParameter(Y,U.COMPILE_STATUS))console.log(U.getShaderInfoLog(Y));
var z=U.createProgram();U.attachShader(z,Y);U.attachShader(z,E);U.linkProgram(z);if(!U.getProgramParameter(z,U.LINK_STATUS))console.log("Could not initialise shaders");
this.Tz=z};t.JF.prototype.jd=function(){if(t.JF.Po!=this){t.vU.useProgram(this.Tz);t.JF.Po=this}};t.ba=function(L,C){t.Ua++;
t.YX+=L*C;if(t.JA)console.log("GL.Channels instances: "+t.Ua+", memory: "+t.YX);var U=t.vU;this.d=L;
this.v=C;this.W5=U.createTexture();this.zQ=null;this.mA(this.W5,L,C)};t.ba.prototype.mA=function(L,C,U){var E=t.vU;
E.bindTexture(E.TEXTURE_2D,L);E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,E.NEAREST);E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,E.NEAREST);
E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_S,E.CLAMP_TO_EDGE);E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_T,E.CLAMP_TO_EDGE);
E.texImage2D(E.TEXTURE_2D,0,E.ALPHA,C,U,0,E.ALPHA,E.UNSIGNED_BYTE,null)};t.ba.prototype.set=function(L){var C=t.vU;
C.bindTexture(C.TEXTURE_2D,this.W5);C.pixelStorei(C.UNPACK_ALIGNMENT,1);C.texImage2D(C.TEXTURE_2D,0,C.ALPHA,this.d,this.v,0,C.ALPHA,C.UNSIGNED_BYTE,L);
C.pixelStorei(C.UNPACK_ALIGNMENT,4)};t.ba.prototype.delete=function(){var L=t.vU;if(this.W5){L.deleteTexture(this.W5);
t.Ua--;t.YX-=this.d*this.v}if(t.JA)if(t.JA)console.log("GL.Channels instances: "+t.Ua+", memory: "+t.YX*4)};
t.Ua=0;t.Ry=function(L,C,U){if(U==null)U=!1;t.Ua++;t.YX+=L*C*4;if(t.JA)console.log("GL.Channels instances: "+t.Ua+", memory: "+t.YX);
var E=t.vU;this.abh=U;this.d=L;this.v=C;this.W5=E.createTexture();this.zQ=null;this.mA(this.W5,L,C)};
t.Ry.prototype.set=function(L,C){var U=t.vU;U.disable(U.SCISSOR_TEST);U.bindTexture(U.TEXTURE_2D,this.W5);
if(L==null||L instanceof Uint8Array){var E=this.d*this.v;if(C==null||C.X()*10>E)U.texImage2D(U.TEXTURE_2D,0,U.RGBA,this.d,this.v,0,U.RGBA,U.UNSIGNED_BYTE,L);
else{var Y=c.F(C.X()*4);c.La(L,new _(0,0,this.d,this.v),Y,C);U.texSubImage2D(U.TEXTURE_2D,0,C.x,C.y,C.d,C.v,U.RGBA,U.UNSIGNED_BYTE,Y)}}else U.texImage2D(U.TEXTURE_2D,0,U.RGBA,U.RGBA,U.UNSIGNED_BYTE,L)};
t.Ry.prototype.get=function(L){var C=t.vU;t.RV(this);C.readPixels(0,0,this.d,this.v,C.RGBA,C.UNSIGNED_BYTE,L)};
t.Ry.prototype.Go=function(L){if(L.ue())return;var C=t.vU;if(this.zQ==null){this.zQ=C.createTexture();
this.mA(this.zQ,this.d,this.v);t.Ua++;t.YX+=this.d*this.v*4}C.bindFramebuffer(C.FRAMEBUFFER,t.p5);C.bindTexture(C.TEXTURE_2D,this.zQ);
if(L){var U=Math.max(L.x,0),E=Math.max(L.y,0);C.copyTexSubImage2D(C.TEXTURE_2D,0,U,E,U,E,L.d,L.v)}else C.copyTexImage2D(C.TEXTURE_2D,0,C.RGBA,0,0,this.d,this.v,0)};
t.Ry.prototype.mA=function(L,C,U){var E=t.vU;E.bindTexture(E.TEXTURE_2D,L);E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,this.abh?E.LINEAR:E.NEAREST);
E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,E.NEAREST);E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_S,E.CLAMP_TO_EDGE);
E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_T,E.CLAMP_TO_EDGE);E.texImage2D(E.TEXTURE_2D,0,E.RGBA,C,U,0,E.RGBA,E.UNSIGNED_BYTE,null)};
t.Ry.prototype.delete=function(){var L=t.vU;if(this.W5){L.deleteTexture(this.W5);t.Ua--;t.YX-=this.d*this.v*4}if(this.zQ){L.deleteTexture(this.zQ);
t.Ua--;t.YX-=this.d*this.v*4}if(t.JA)if(t.JA)console.log("GL.Channels instances: "+t.Ua+", memory: "+t.YX)};
t.Ry.prototype.clone=function(){var L=t.vU,C=new t.Ry(this.d,this.v);t.RV(this);L.bindTexture(L.TEXTURE_2D,C.W5);
L.copyTexImage2D(L.TEXTURE_2D,0,L.RGBA,0,0,this.d,this.v,0);return C};t.w_={a30:"  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))) );  }  ",ahJ:"  vec3 ocddg(vec3 a, vec3 b, float f) {  return mix(        min(ONE3,       b/(ONE3 - a*f))    ,   ONE3   , vec3(equal(a*f,ONE3 )) );  }  ",Fh:"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) ;",JR:" 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}",u9:" 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  ));  } ",_a:"float sat(vec3 c) { return max(c.x,max(c.y,c.z)) - min(c.x,min(c.y,c.z)); }",uW:"float lum(vec3 c) { return dot(c, vec3(0.3,0.59,0.11)); } ",WX:"vec3  D  (vec3 x) { return mix( sqrt(x), ((16.0*x-12.0)*x+4.0)*x  , vec3(lessThanEqual(x,QUAR3))  ); }",ahm:"float midSat (vec3 v, float s) { return ((v.y-v.z)*s)/(v.x-v.z); }",Qx:"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}",a4R:"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}",B5:"vec3 setLum (vec3 c, float l) { return clipCol(c+l-lum(c)); } ",uu:"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); }",S2:"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); }",u2:"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); } ",Ll:"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}",t2:"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);  }",D5:"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); }",E8:"\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}",Bv:"\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 mi<0.0?0.0:(mi>1.0?1.0:mi);\t\t}"};
t.Pn={Ja:{},Ai:"\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}"};
t.Pn.BW=function(L,C){var U=eh.MY,E=[U.tV,U.NL,U.XN,U.PA,U.bG,U.qv,U.Yr,U.B8].indexOf(L.type),Y=t.Pn.Ja[L.type];
if(Y==null)Y=t.Pn.Ja[L.type]=new t.Ja[E];Y.jd();Y.Rt(C,L);t.vU.drawArrays(t.vU.TRIANGLES,0,6)};t.Ja=[];
t.Ja[0]=function(){t.JF.call(this);this.kJ={};var L="\t\t\tprecision mediump float;\t\t\t"+t.w_.uW+"\t\t\t"+t.w_.Fh+"\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.Rn(L,t.Pn.Ai)};t.Ja[0].prototype=new t.JF;t.Ja[0].prototype.Rt=function(L,C){var U={h:C.pm,P:C.l3,O:C.g_,R:c.F(C.pm.length)},E=U.h.length;
if(this.kJ["m"+E]==null){this.kJ["m"+E]={acv:new t.Ry(E,1),eB:c.F(E*4)}}var Y=this.kJ["m"+E];c.qF(U,Y.eB,0);
var z=Y.acv;z.set(Y.eB);this.U9(["source","map","toGray","presLum"]);var r=t.vU,p=this.Uf;r.uniform1f(p.toGray,C.Qd?1:0);
r.uniform1f(p.presLum,C.bY?1:0);this.jU([p.source,L,p.map,z.W5])};t.Ja[1]=function(){t.JF.call(this);
this.a8B=new t.Ry(256,1);this.abi=c.F(256*4);var L="\t\t\t\tprecision mediump float;\t\t\t\t"+t.w_.Ll+"\t\t\t\t"+t.w_.S2+"\t\t\t\t"+t.w_.u2+"\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.Rn(L,t.Pn.Ai)};t.Ja[1].prototype=new t.JF;t.Ja[1].prototype.Rt=function(L,C){c.qF({h:C.a97,P:C.nb,O:C.aaa,R:c.F(256)},this.abi);
this.a8B.set(this.abi);this.U9(["source","map","cfa","cfb","colorize"]);var U=t.vU,E=this.Uf;U.uniform1f(E.cfa,C.a4n);
U.uniform1f(E.cfb,C.wo);U.uniform1i(E.colorize,C.a1c);this.jU([E.source,L,E.map,this.a8B.W5])};t.Ja[2]=function(){t.JF.call(this);
var L="\t\t\tprecision mediump float;\t\t\t"+t.w_.Ll+"\t\t\t"+t.w_.t2+"\t\t\t"+t.w_.D5+"\t\t\t"+t.w_.S2+"\t\t\t"+t.w_.u2+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform float vib; \t\t\tuniform float sat; \t\t\tconst float PI = 3.141592653; \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 hsl = rgbToHsv(src.rgb); \t\t\t\tfloat h=hsl.r, s=hsl.g, l=hsl.b; \t\t\t\t\t\t\t\tfloat sk0 = 0.0, sk1 = 45.0/360.0; \t\t\t\tfloat skin = (h<sk1) ? cos((PI/2.0)*(h-sk1/2.0)/(sk1/2.0)) : 0.0; \t\t\t\t\t\t\t\ts = s + 0.2 * (1.0-0.4*skin) * vib * max(0.0, sin(s*PI)); \t\t\t\t\t\t\t\ts = s * (1.0 + sat); \t\t\t\t\t\t\t\ts = max(0.0, min(1.0, s));\t\t\t\tsrc.rgb = hsvToRgb(h,s,l);\t\t\t\tgl_FragColor = vec4(src.rgb,src.w); \t\t\t\t\t\t\t}";
this.Rn(L,t.Pn.Ai)};t.Ja[2].prototype=new t.JF;t.Ja[2].prototype.Rt=function(L,C){this.U9(["source","vib","sat"]);
var U=t.vU,E=this.Uf;U.uniform1f(E.vib,C.wm[0]/100);U.uniform1f(E.sat,C.wm[1]/100);this.jU([E.source,L])};
t.Ja[3]=function(){t.JF.call(this);var L="\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.Rn(L,t.Pn.Ai)};t.Ja[3].prototype=new t.JF;t.Ja[3].prototype.Rt=function(L,C){this.U9(["source","trf"]);
var U=t.vU,E=this.Uf;U.uniformMatrix4fv(E.trf,!1,new Float32Array(c.hS.t$(C.W1)));this.jU([E.source,L])};
t.Ja[4]=function(){t.JF.call(this);var L="\t\t\tprecision mediump float; \t\t\t"+t.w_.E8+"\t\t\t"+t.w_.Ll+"\t\t\t"+t.w_.u2+"\t\t\t"+t.w_.S2+"\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]+scl*shift[0]; \t\t\t\thsv[0] = fract(nh); \t\t\t\thsv[1] = max(0.0, min(1.0, hsv[1] + scl*shift[1])); \t\t\t\thsv[2] = max(0.0, min(1.0, hsv[2] + scl*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(rgb,src.w); \t\t\t\t\t\t\t}";
this.Rn(L,t.Pn.Ai)};t.Ja[4].prototype=new t.JF;t.Ja[4].prototype.Rt=function(L,C){this.U9(["source","mnm","mxm","shift","lim"]);
var U=t.vU,E=this.Uf;U.uniform3fv(E.mnm,new Float32Array(C.Uh));U.uniform3fv(E.mxm,new Float32Array(C.fX));
U.uniform3fv(E.shift,new Float32Array(C.shift));U.uniform1f(E.lim,C.oD);this.jU([E.source,L])};t.Ja[5]=function(){t.JF.call(this);
var L="\t\t\tprecision mediump float;\t\t\t"+t.w_.Fh+"\t\t\t"+t.w_.JR+"\t\t\t"+t.w_.u9+"\t\t\t"+t.w_.S2+"\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.Rn(L,t.Pn.Ai)};t.Ja[5].prototype=new t.JF;t.Ja[5].prototype.Rt=function(L,C){this.U9(["source","cfs"]);
var U=t.vU,E=this.Uf;U.uniform3fv(E.cfs,C.J7);this.jU([E.source,L])};t.Ja[6]=function(){t.JF.call(this);
var L="\t\t\tprecision mediump float;\t\t\t"+t.w_.Ll+"\t\t\t"+t.w_.JR+"\t\t\t"+t.w_.u9+"\t\t\t"+t.w_.S2+"\t\t\t"+t.w_.u2+"\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.Rn(L,t.Pn.Ai)};t.Ja[6].prototype=new t.JF;t.Ja[6].prototype.Rt=function(L,C){this.U9(["source","wght","prms"]);
var U=t.vU,E=this.Uf,Y=[C.XB,C.agb,C.uW,C.alo,C.UA,C.am7];U.uniform1fv(E.wght,new Float32Array(C.aa4));
U.uniform1fv(E.prms,new Float32Array(Y));this.jU([E.source,L])};t.Ja[7]=function(){t.JF.call(this);this.ci={};
var L="\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.Rn(L,t.Pn.Ai)};t.Ja[7].prototype=new t.JF;t.Ja[7].prototype.Rt=function(L,C){this.U9(["source","lut","N"]);
var U=t.vU,E=this.Uf,Y=C.NM,z=C.JL;if(this.ci["m"+Y]==null)this.ci["m"+Y]=new t.Ry(Y,Y*Y);var r=this.ci["m"+Y];
r.set(z);U.uniform1f(E.N,Y);this.jU([E.source,L,E.lut,r.W5]);U.activeTexture(U.TEXTURE1);var p=U.LINEAR;
U.texParameteri(U.TEXTURE_2D,U.TEXTURE_MIN_FILTER,p);U.texParameteri(U.TEXTURE_2D,U.TEXTURE_MAG_FILTER,p);
U.activeTexture(U.TEXTURE0)};t.filter={MV:{},Ai:"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",Jl:0,m8:1,VN:2,TZ:3};
t.filter.BW=function(L,C){var U=t.filter,E=[U.Jl,U.m8,U.VN,U.TZ].indexOf(L.type),Y=t.filter.MV[L.type];
if(Y==null)Y=t.filter.MV[L.type]=new t.MV[E];Y.jd();Y.Rt(C,L);t.vU.drawArrays(t.vU.TRIANGLES,0,6)};t.MV=[0,0,0,0,0,0,0];
t.MV[3]=function(){t.JF.call(this);var L="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.Rn(B.d8(L),B.d8(t.filter.Ai))};t.MV[3].prototype=new t.JF;t.MV[3].prototype.Rt=function(L,C){this.U9("source iwh tdep rrad spec nois poly0 poly1".split(" "));
var U=t.vU,E=this.Uf;U.uniform2fv(E.iwh,C.WY);U.uniform1f(E.tdep,C.a0E);U.uniform1f(E.rrad,C.agw);U.uniform2fv(E.spec,C.a0x);
U.uniform3fv(E.nois,C.afZ);U.uniformMatrix4fv(E.poly0,!1,C.a89);U.uniformMatrix4fv(E.poly1,!1,C.agt);
this.jU([E.source,L]);var Y=U.LINEAR;U.activeTexture(U.TEXTURE0);U.texParameteri(U.TEXTURE_2D,U.TEXTURE_MIN_FILTER,Y);
U.texParameteri(U.TEXTURE_2D,U.TEXTURE_MAG_FILTER,Y);U.activeTexture(U.TEXTURE0)};t.MV[0]=function(){t.JF.call(this);
var L="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.Rn(B.d8(L),B.d8(t.filter.Ai))};t.MV[0].prototype=new t.JF;t.MV[0].prototype.Rt=function(L,C){this.U9(["source","iwh","ld","shine"]);
var U=t.vU,E=this.Uf;U.uniform2fv(E.iwh,C.WY);U.uniform3fv(E.ld,C.aek);U.uniform1f(E.shine,C.ac8);this.jU([E.source,L,E.tang,C.YY])};
t.MV[1]=function(){t.JF.call(this);var L="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.Rn(B.d8(L),B.d8(t.filter.Ai))};t.MV[1].prototype=new t.JF;t.MV[1].prototype.Rt=function(L,C){this.U9(["source","iwh","isc","bristle"]);
var U=t.vU,E=this.Uf;U.uniform2fv(E.iwh,C.WY);U.uniform1f(E.isc,C.a7_);U.uniform1f(E.bristle,C.agS);
this.jU([E.source,L])};t.MV[2]=function(){t.JF.call(this);var L="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.Rn(B.d8(L),B.d8(t.filter.Ai))};t.MV[2].prototype=new t.JF;t.MV[2].prototype.Rt=function(L,C){this.U9(["source","tang","iwh","sigma","expo"]);
var U=t.vU,E=this.Uf;U.uniform2fv(E.iwh,C.WY);U.uniform1f(E.sigma,C.a4D);U.uniform1f(E.expo,C.a6l);this.jU([E.source,L,E.tang,C.YY]);
var Y=U.LINEAR;U.activeTexture(U.TEXTURE0);U.texParameteri(U.TEXTURE_2D,U.TEXTURE_MIN_FILTER,Y);U.texParameteri(U.TEXTURE_2D,U.TEXTURE_MAG_FILTER,Y);
U.activeTexture(U.TEXTURE0)};t.Q={};t.Q.$c={};t.Q.BP=null;t.Q.bs=null;t.Q.Me=null;t.Q.eY=function(L,C,U,E,Y,z,r,p){if(p==null)p=ca.wq();
if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(L)==-1){r=r*p.fill;p.fill=1;p.style=!1}var T=L+(p.UZ?"1":"");
if(t.Q.$c[T]==null)t.Q.$c[T]=new t.Q.mc(L,p.UZ!=null);var k=t.Q.$c[T],P=U.eR(Y).eR(z);P.offset(-Y.x,-Y.y);
if(P.ue())return;var b=t.vU;t.RV(E,P);E.Go(P);k.jd();k.Rt(C.W5,E.zQ,t.NF(U,Y),r,p.fill,p.style?1:0,p.H1?1:0,p.UZ?new Float32Array(p.UZ):null);
b.drawArrays(b.TRIANGLES,0,6)};t.Q.e_=function(L,C,U,E,Y,z,r,p,T,k,P){if(t.Q.BP==null)t.Q.BP=new t.Q.vP(!0,!0);
if(t.Q.bs==null)t.Q.bs=new t.Q.vP(!0,!1);if(t.Q.Me==null)t.Q.Me=new t.Q.vP(!1,!0);var b=k?1:0,Q=L?Y?t.Q.BP:t.Q.bs:t.Q.Me,K=new Float32Array(P?[P[0],P[1],P[2],1]:[1,1,1,1]),h=C?C.eR(E).eR(p):E.eR(p);
if(h.ue())return;h.offset(-E.x,-E.y);var x=t.vU;t.RV(U,h);U.Go(h);Q.jd();if(L==null)Q.Rt(null,U.zQ,Y.W5,t.NF(E,E),t.NF(z,E),r/255,T,b,K);
else if(Y)Q.Rt(L.W5,U.zQ,Y.W5,t.NF(C,E),t.NF(z,E),r/255,T,b,K);else Q.Rt(L.W5,U.zQ,null,t.NF(C,E),null,r/255,T,b,K);
x.drawArrays(x.TRIANGLES,0,6)};t.Q.amO=function(L,C,U){if(t.Q.a8i==null)t.Q.a8i=new t.Q.xZ;var E=t.Q.a8i,Y=new _(0,0,L.d,L.v),z=t.vU;
t.RV(C);C.Go(Y);E.jd();E.Rt(Y,L.W5,C.zQ,U.W5);z.drawArrays(z.TRIANGLES,0,6)};t.Q.sp={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) ); "};
t.Q.mc=function(L,C){t.JF.call(this);var U="\t\t\tprecision mediump float;\t\t\t"+t.w_.Fh+"\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"+(C?"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"+t.w_._a+"\t\t\t"+t.w_.uW+"\t\t\t"+t.w_.WX+"\t\t\t"+t.w_.a30+"\t\t\t"+t.w_.ahJ+"\t\t\t"+t.w_.ahm+"\t\t\t"+t.w_.Qx+"\t\t\t"+t.w_.a4R+"\t\t\t"+t.w_.B5+"\t\t\t"+t.w_.hash+"\t\t\t"+(C?t.w_.Bv:"")+"\t\t\t\t\t\tvec3  BB(vec3  a, vec3  b, float f) { "+t.Q.sp[L]+" } \t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = texture2D(source, sCoord);",E="\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(L=="diss")U+="\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 U+="  \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"+(C?"  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.Rn(U,E)};t.Q.mc.prototype=new t.JF;t.Q.mc.prototype.Rt=function(L,C,U,E,Y,z,r,p){this.U9("srct alpha source target fill style keepBGA blIf".split(" "));
var T=t.vU,k=this.Uf;T.uniform4fv(k.srct,U);T.uniform1f(k.alpha,E);T.uniform1f(k.fill,Y);T.uniform1f(k.style,z);
T.uniform1f(k.keepBGA,r);if(p)T.uniform4fv(k.blIf,p);this.jU([k.source,L,k.target,C])};t.Q.vP=function(L,C){t.JF.call(this);
this.afJ=L;this.EA=C;var U="\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"+t.w_.uu+"\t\t\t"+t.w_.hash+"\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = "+(L?"texture2D(source, sCoord)":"vec4(0.0)")+"; \t\t\t\tfloat wg = awg "+(C?"* (in01(wCoord) ? texture2D(weight, wCoord).w : wcolor)":"")+";\t\t\t\t"+(L?"":"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 =  "+(C?"nc":"cswitch*nc + (1.0- cswitch)*tgt")+";    \t\t\t}",E="\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.Rn(U,E)};t.Q.vP.prototype=new t.JF;t.Q.vP.prototype.Rt=function(L,C,U,E,Y,z,r,p,T){if(this.EA)this.U9("srct wrct wcolor awg dissv source target weight cswitch".split(" "));
else this.U9("srct awg dissv source target cswitch".split(" "));var k=t.vU,P=this.Uf;k.uniform4fv(P.srct,E);
if(this.EA){k.uniform4fv(P.wrct,Y);k.uniform1f(P.wcolor,z)}else{k.uniform4fv(P.cswitch,T)}k.uniform1f(P.awg,r);
k.uniform1f(P.dissv,p);var b=[P.source,L,P.target,C];if(this.EA)b.push(P.weight,U);this.jU(b)};t.Q.xZ=function(){t.JF.call(this);
var L="\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}",C="\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.Rn(L,C)};t.Q.xZ.prototype=new t.JF;t.Q.xZ.prototype.Rt=function(L,C,U,E){this.U9(["rct","prev","next","alpha"]);
var Y=t.vU,z=this.Uf;Y.uniform4fv(z.rct,[0,0,1,1]);this.jU([z.prev,C,z.next,U,z.alpha,E])};var W={};
W.DJ=function(L,C,U){this.name=L;this.id=C;this.kn=null;if(U!=null)this.yH=U};W.DJ.prototype.GV=function(L,C,U,E,Y){};
W.DJ.prototype.enable=function(L,C,U,E,Y,z){var r=new q(B.E.l,!0);r.data={e:B.U.lx,aZ:"default"};C.B(r)};
W.DJ.prototype.disable=function(L,C,U,E,Y){};W.DJ.prototype.VF=function(L,C,U,E,Y){return!1};W.DJ.prototype.zI=function(L,C,U,E,Y){};
W.DJ.prototype.vF=function(L,C,U,E,Y){};W.DJ.prototype.Yh=function(L,C,U,E,Y){};W.DJ.prototype.bM=function(L,C,U,E,Y){};
W.DJ.prototype.Rg=function(L,C,U,E,Y){};W.DJ.prototype.fj=function(L,C,U,E){};W.DJ.prototype.xv=function(L,C,U,E){};
W.DJ.prototype.Zm=function(L,C){};W.DJ.prototype.Ic=function(L,C){};W.DJ.prototype.oO=function(L,C,U,E,Y){};
W.DJ.prototype.hU=function(L,C){};W.DJ.prototype.Gs=function(L,C){return!1};W.DJ.prototype.gQ=function(L,C){return!1};
W.DJ.prototype.sH=function(){return!1};W.DJ.prototype.XZ=function(L,C){return!0};W.DJ.prototype.n4=function(){return null};
W.DJ.prototype.Pj=function(L,C,U){};W.DJ.prototype.li=function(){return!1};W.DJ.prototype.eK=function(L,C,U,E){};
W.DJ.prototype.track=function(L){var C=new q(B.E._w,!0);C.data=L;L.VL=!0;this.kn.B(C)};W.DJ.$y=function(L,C,U,E,Y){W.DJ.XU(L,C,[gS.get([12,41]).charAt(0)+": "+c.Mb.S9(U.d,E._Q,Y,E.d,!0),gS.get([12,42]).charAt(0)+": "+c.Mb.S9(U.v,E._Q,Y,E.v,!0)],E)};
W.DJ.XU=function(L,C,U,E){var Y=14,z=130,r=U.length*17+8,p=new _(L,C-r,z,r),T=W.DJ.aQ;if(T==null)T=W.DJ.aQ=document.createElement("canvas");
T.width=z;T.height=r;var k=T.getContext("2d");k.fillStyle="rgba(0,0,1,1)";k.fillRect(0,0,z,r);k.font=Y+"px monospace";
k.fillStyle="rgba(255,255,255,1)";for(var H=0;H<U.length;H++)k.fillText(U[H],6,(H+1)*17);E.K.jB=[[k.getImageData(0,0,z,r).data,p.clone()]]};
W.DJ.aQ=null;W.Ml="0";W.Y7="1";W.ae6="2";W.a5$="3";W.wj="5";W.an2="6";W.ah3="7";W.dk="8";W.eG="9";W.Q_="10";
W.C_="11";W.ye="12";W.xP="13";W.y8="14";W.ae9="16";W.ei="18";W.uE="19";W.lh="20";W.Pu="21";W.Ju="22";
W.Sw="23";W.Ts="24";W.Yl="25";W.ZP="27";W.$B="31";W.a0_="32";W.aml="34";W.a4B="35";W.OZ="36";W.iO="37";
W.gh="38";W.JG="39";W.R_="40";W._c="41";W.sY="42";W.tT="43";W.Ey="47";W.b7="51";W.JS="52";W.Hg="54";
W.Ik="55";W.EX="56";W.Hl="57";W.yX="58";W.m$="59";W.acp="60";W.tJ="61";W.YH="100";W.B9="101";W.sK="102";
W.s2="120";W.E_="230";W.a9Q="231";W.n3="232";W.aV="233";W.xn="234";W.Jy="235";W.tl="236";W.EJ=function(L){var C=W.zb,U=null;
for(var E in C)if(C[E][1].indexOf(L[1].classID)!=-1)U=E;return U};W.zb={};W.zb[W.Sw]=["tools/brush",["PbTl"]];
W.zb[W.Ts]=["tools/pencil",["PcTl"]];W.zb[W.$B]=["tools/eraser",["ErTl"]];W.dl=function(L,C,U){W.DJ.call(this,L,C,U);
this.cY={brush:L?fW.qR():null,bmode:"norm",opacity:1,flow:1,smth:0,samp:0,prsr:[!1,!0],emode:0,wconf:[40,!0,!0],algnd:!1,sfrom:0,alt:[!1],expo:.5,rng:1,strn:.5,pdetail:!0,smode:1,qsmode:0,setop:"front",patch:0};
this.OY=null;this.G2=null;this.a2=null;this.kF=null;this.nr=null;this.UD=null;this.KF=null;this.XW=null;
this.dc=null;this.QO=null;this.hb=null;this.KT=null;this.e5=null;this.Bi=1;this.qp=!1;this.tH=null;this.caller=null};
W.dl.prototype=new W.DJ;W.dl.prototype.gQ=function(L,C){return L.X4&&C.q(G.PS)};W.dl.prototype.vF=function(L,C,U,E,Y){if(E.q(G.Lv)){this.UD=new hZ(Y.x,Y.y);
var z=this.cY.brush.Brsh.v,r=z.Dmtr.v.val,p=z.Hrdn!=null?z.Hrdn.v.val:-1;this.KF=[r,p,!0,JSON.parse(JSON.stringify(this.cY.brush)),Y];
this.cl(U)}};W.dl.prototype.GS=function(L,C,U){var E=this.KF,Y=L.z.S,z=U.x-E[4].x,r=U.y-E[4].y,p=E[0],T=E[1],k=Math.abs(z)>Math.abs(r);
if(k&&E[2]){var P=Math.round(2*z/Y);p+=P;U.x-=z-.5*P*Y}if(!k&&!E[2]&&T!=-1){var P=Math.round(.25*r);
T+=P;U.y-=r-4*P}p=Math.max(1,p);T=E[1]==-1?-1:Math.max(0,Math.min(100,T));var b=E[3];b.Brsh.v.Dmtr.v.val=p;
if(T!=-1)b.Brsh.v.Hrdn.v.val=T;this.KF=[p,T,k,b,U];var Q=iR.zl(b,C.lN.sd,Y),K=Q[1];K.x=Math.round(this.UD.x-K.d/2);
K.y=Math.round(this.UD.y-K.v/2);L.K.QX=[Q];var h=L.z.sQ(this.UD.x,this.UD.y);L.K.Q0={PL:[],ru:[h.x-p/2,h.y,h.x+p/2,h.y]};
if(T!=-1)L.K.Q0.ru.push(h.x+50/Y,h.y-T/2,h.x+50/Y,h.y+T/2);L.eP=!0};W.dl.prototype.Rg=function(L,C,U,E,Y){if(this.id==W.lh)return;
if(this.UD){this.UD=null;this.cb(JSON.parse(JSON.stringify(this.KF[3])));L.K.QX=[];L.K.Q0=null;L.eP=!0;
return}var z=new q(B.E.l,!0);z.data={e:B.U.ik,m:this.id,a0R:"showBrushOpts",H3:new hZ(Y._5+4,Y.x0)};
C.B(z)};W.dl.prototype.cb=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.MP,wm:c_.qy,dp:L};this.caller.B(C)};
W.dl.vG=function(L,C,U,E){if(L==null)L="FrgC";if(C==null)C="norm";if(U==null)U=1;var Y={classID:"Fl",Usng:{t:"enum",v:{FlCn:L}},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(U*100)}},Md:{t:"enum",v:{BlnM:gz.Wx(C)}}};
if(L=="Clr")Y.Clr={t:"Objc",v:E};if(L=="contentAware")Y.contentAwareColorAdaptationFill={t:"bool",v:!0};
return{xo:"fill",V5:Y}};W.dl.prototype.GV=function(L,C,U,E,Y){this.kn=C;var z=U.te.length;if(z==0&&!U.qk())return;
var r=z!=0?-1-U.te[0]:U.C[0],p=U.N[r];if(L.e=="fromAction"){var T=L.jX,k=T.V5;if(T.xo=="fill"){var P=(k.Opct?k.Opct.v.val:100)/100,b=k.Md?gz.Sh(k.Md.v.BlnM):"norm",Q=k.Usng.v.FlCn,K;
if(Q=="contentAware"){if(U.t==null){alert("Select an area to heal first.");return}if(!U.qk())return;
this.LX(U);this.yt(U,0);var h=U.t,x=c.F(h.rect.X()*4);c.Wn(h.channel,x,3);this.oA(U,"sheal",x,h.rect,h.rect);
this.s(U,h.rect);this.finish(U,h.rect)}else{if(Q=="FrgC")K=Y.yx;else if(Q=="BckC")K=Y.ho;else if(Q=="Blck")K=0;
else if(Q=="Wht")K=16777215;else if(Q=="Gry")K=8421504;else if(Q=="Clr"){var O=c.W.Lt(k.Clr.v);K=O.h<<16|O.P<<8|O.O}var y=K>>16&255,v=K>>8&255,i=K>>0&255;
this.Mp(U,p,U.t,y,v,i,Math.round(255*P),b,[2,3])}}else if(T.xo=="delete"){var D=r<0?1:p.yQ,h=U.t,d;if(h==null)return;
var I=r<0?U.vI[-r-1]:D<=0?null:D==1?p.xV():p.iC(U).r,m=D<=0?p.rect:I.rect,f=D<=0?h.rect.eR(m):h.rect.clone();
if(f.ue())return;var A=f.X();if(D<=0){d=c.F(A*4);c.La(p.buffer,p.rect,d,f)}else{d=c.F(A);I.extend(f);
c.zM(I.channel,I.rect,d,f)}if(0<=r&&p.J6(U,h)){if(D<=0){c.n0(d,0);c.La(p.kK.Ke,p.kK.uL,d,f)}else{c.set(d,255);
c.zM(p.kK.Ke,p.kK.uL,d,f)}}else{if(D<=0){var g=c.F(d.length>>2);c.wH(d,g,3);c.Q.oW(c.Zx(h.rect.X()),h.rect,g,f,h.channel,f,1);
c.Wn(g,d,3)}else{var X=c.F(h.rect.X()),y=Y.ho>>16&255,v=Y.ho>>8&255,i=Y.ho>>0&255;c.set(X,Math.round(c.GZ(y,v,i)));
c.Q.oW(X,h.rect,d,f,h.channel,f,1)}}this.V3(U,!0,[2,2],r,D,f,d)}}if(L.e=="stroke"){var n=L.alJ,h=U.t;
if(h==null){h={rect:p.rect.clone(),channel:c.F(p.rect.X())};c.wH(p.buffer,h.channel,3)}var R=ca.AA(n),l=W.kd.Z2(h,Math.ceil(R[0]),Math.ceil(R[1])),K=c.W.Lt(n.Clr.v),y=Math.round(K.h),v=Math.round(K.P),i=Math.round(K.O);
this.Mp(U,p,l,y,v,i,Math.round(255*n.Opct.v.val/100),gz.Sh(n.Md.v.BlnM),[14,9])}if(L.e=="fillBMP"){this.Hv(U,p,U.t,L.CK,L.g_,L.z9)}if(L.e=="draw"){var w=L.rC,V=w.rect;
this.LX(U);var F=U.N[U.C[0]];if(L.a2q&&F&&F.yQ<=0&&U.te.length==0){V=hO.T0.hs(w,U);F.buffer=w.buffer.slice(0);
F.rect=V.clone()}else{var Z=this.cY.bmode;this.cY.bmode="norm";this.oA(U,"draw",w.buffer,V,V.eR(new _(0,0,U.d,U.v)));
this.cY.bmode=Z}this.s(U,V);U.hK=!0;this.finish(U,V,L.z9,L.a2q)}};W.dl.prototype.Mp=function(L,C,U,E,Y,z,r,p,T){var k=U==null?new _(0,0,L.d,L.v):U.rect,P=r<<24|z<<16|Y<<8|E<<0,b=c.F(k.X()*4);
c.n0(b,P);this.Hv(L,C,U,b,p,T)};W.dl.prototype.Hv=function(L,C,U,E,Y,z){var r=L.te.length!=0?-1-L.te[0]:L.C[0],p=r<0?1:C.yQ,T=r<0?L.vI[-1-r]:p<=0?null:p==1?C.xV():C.iC(L).r,k=p<=0?C.rect:T.rect,P=U==null?new _(0,0,L.d,L.v):U.rect,b=U==null?c.PH(L.d*L.v):U.channel,Q=P.X(),K,h=null;
if(p<=0){K=c.F(Q*4);c.La(C.buffer,C.rect,K,P)}else{K=c.F(Q);T.extend(P);c.zM(T.channel,T.rect,K,P)}if(U!=null)c.sn(b,E);
if(p>0){h=c.F(Q);c.Fy(E,h)}if(0<=r&&U&&C.J6(L,U)){var x=C.kK.zK,O=C.kK.zK.slice(0);if(p<=0)c.hL(E,O);
else c.hL(h,O);var y=new hp([2,3],this);y.data={e:"drawtemp",$:L.C[0],yj:p,a0a:x,agZ:O};L.Sv(y);this.Zm(y.data,L)}else{if(p<=0){var v;
if(C.zm(0)){v=c.F(P.X());c.wH(K,v,3)}c.Q.Kj(Y,E,P,K,P,P,1);if(C.zm(0))c.Wn(v,K,3)}else c.Q.oW(h,P,K,P,b,P,1);
this.V3(L,!0,z,r,p,P,K)}};W.dl.prototype.Gs=function(L){if(G.EC.indexOf(L)!=-1)return!0;return!1};W.dl.prototype.fj=function(L,C,U,E){var Y=this.cY.brush,z=E.q(G.Lv),r=z!=this.qp,p=W.dl.bz(Y,E);
if(p!=null)this.cb(p);if(!E.q(G.DM)&&E.y0()!=-1){var T=B.Qi(Math.round(this.cY.opacity*100),E.y0())/100;
this.cZ({opacity:T},C)}if(this.id==W.dk&&r&&L!=null){var k=this.cY.qsmode;if(k==2)k=L.t==null?0:1;else k=2;
this.cZ({qsmode:k},C)}this.qp=z;if(r){if(L)this.Bi=L.z.S;this.cl(U,E)}};W.dl.bz=function(L,C){var U=L.Brsh.v.Dmtr.v.val,E=L.Brsh.v.Hrdn!=null?L.Brsh.v.Hrdn.v.val:-1,Y=U,z=E,r=C.q(G.PS);
if(C.q(G.Ui)){if(r)E=25*Math.floor((E-1)/25);else{if(U<=10)U--;else if(U<=50)U=5*Math.floor((U-1)/5);
else if(U<=100)U=10*Math.floor((U-1)/10);else if(U<=200)U=25*Math.floor((U-1)/25);else if(U<=400)U=50*Math.floor((U-1)/50);
else U=100*Math.floor((U-1)/100)}}if(C.q(G.Vt)){if(r)E=25*Math.ceil((E+1)/25);else{if(U<10)U++;else if(U<50)U=5*Math.ceil((U+1)/5);
else if(U<100)U=10*Math.ceil((U+1)/10);else if(U<200)U=25*Math.ceil((U+1)/25);else if(U<400)U=50*Math.ceil((U+1)/50);
else U=100*Math.ceil((U+1)/100)}}U=Math.max(1,U);E=Math.max(0,Math.min(100,E));if(z==-1)E=-1;if(U!=Y||E!=z){var p=JSON.parse(JSON.stringify(L));
p.Brsh.v.Dmtr.v.val=U;if(z!=-1)p.Brsh.v.Hrdn.v.val=E;return p}return null};W.dl.prototype.cl=function(L,C,U,E){if(L.lN.list.length==0)return;
var Y=this.id,z;if((Y==W.ZP||Y==W.uE||Y==W.Sw||Y==W.Ts)&&(C!=null&&C.q(G.Lv)||this.cY.alt[0]))z="crosshair";
else{var r=this.Bi,p=this.cY.brush;if((Y==W.ZP||Y==W.uE)&&U&&this.KT&&this.KT.length==this.hb.X()*4){var T=U.z.sQ(E.x,E.y),k=this.sC(T),P=this.KT,b=this.hb,Q=new _(b.x+k.x,b.y+k.y,b.d,b.v),K=iR.zl(p,L.lN.sd,r),h=K[0],x=K[1],O=Math.ceil(x.d/r),y=new _(Math.round(T.x-O/2),Math.round(T.y-O/2),O,O),v=c.F(y.X()*4),i,D;
c.La(P,Q,v,y);if(r==1){i=v;D=y}else{var I=new c0(r,0,0,r,0,0),m=W.o.dy([v,y],I,!0);D=x.clone();D.x=m.rect.x;
D.y=m.rect.y;if(D.cg(m.rect))i=m.buffer;else{i=c.F(D.X()*4);c.La(m.buffer,m.rect,i,D)}}var f=this.cY.opacity/255;
for(var H=0;H<i.length;H+=4)i[H+3]=f*(h[H+3]*i[H+3]);z={GE:i,_:D,Nb:new hZ(D.d/2,D.v/2)}}else z=iR.J$(p,L.lN.sd,r,Y==W.Yl)}var A=new q(B.E.l,!0);
A.data={e:B.U.lx,aZ:z};if(this.caller)this.caller.B(A)};W.dl.prototype.enable=function(L,C,U,E){this.OY=U;
this.caller=C;this.cb(JSON.parse(JSON.stringify(this.cY.brush)));if(L&&L.z.S!=0)this.Bi=L.z.S;this.cl(U,E)};
W.dl.prototype.hU=function(L,C){if(C==c_.qy){this.cY.brush=L.lN.Fp;this.cl(L)}};W.dl.prototype.oO=function(L,C,U,E,Y){for(var z in L)this.cY[z]=L[z];
if(this.cY.alt[0])this.cl(Y,E,U)};W.dl.prototype.j1=function(L){var C=L.te.length!=0?-1-L.te[0]:L.C[0],U=L.N[C],E=C<0?1:U.yQ,Y=C<0?L.vI[-C-1]:E<=0?null:E==1?U.xV():U.iC(L).r,z=Y?Y.channel:U.buffer,r=(Y?Y.rect:U.rect).clone();
return[U,E,Y,z,r]};W.dl.prototype.LX=function(L,C){this.e5=L.t==null?null:{rect:L.t.rect.clone(),channel:L.t.channel.slice(0)};
var U=this.j1(L),E=U[0],Y=U[1],z=U[2];this.QO=U[3];this.dc=U[4];var r=new _(0,0,L.d,L.v),p=r.EU(this.dc);
if((this.Tp()&&Y<=0||p.cg(this.dc))&&C!=!0)this.QO=this.QO.slice(0);else{if(z)z.extend(p);else E.extend(p)}};
W.dl.prototype.yt=function(L,C){var U=this.j1(L),E=U[1],Y=U[3],z=U[4],r=[Y,z],p=C!=null?C:this.cY.sfrom;
if(E<=0&&p!=0){r[1]=new _(0,0,L.d,L.v);r[0]=L.E0(p==1&&L.C[0]!=L.N.length-1?L.C[0]:null).slice(0)}this.hb=r[1].clone();
this.KT=r[0].slice(0)};W.dl.prototype.V4=function(L,C,U){if(L.q(G.Lv)){var E=new q(B.E.A,!0);E.m=W.y8;
E.data={e:"pickhere",alS:U};C.B(E);return!0}return!1};W.dl.prototype.fu=function(L,C,U,E,Y,z){if(!L.qk(this.caller)){this.G2=null;
return}this.LX(L);var r=new _(0,0,L.d,L.v),p=null;if(z!=null){var T=L.te.length!=0?-1-L.te[0]:L.C[0],k=L.N[T],P=T<0?L.vI[-T-1]:k.yQ<=0?null:k.yQ==1?k.xV():k.iC(L).r;
p=c.F(r.X()*4);if(P)W.dl.M0(this.QO,this.dc,P.color,p,r);else c.La(this.QO,this.dc,p,r)}var b=this.cY;
if(this.G2&&this.id==W.dk&&b.qsmode!=0&&L.t!=null){}else{var Q=C.yx,K=C.ho;if(this.tH=="erase"){var h=Q;
Q=K;K=h}var x=this.id==W.dk?this.dc:r;this.G2=new iR(b.brush,C.lN.sd,C.lN.wY,{u8:Y,mf:z,akp:b.smth*50*B.M()/L.z.S,mS:this.id==W.Ts||b.emode==1,Lj:b.prsr},Q,K,x,p)}if(this.id==W.dk){this.G2.jW(b.brush,b.qsmode==2?0:16777215)}var O=L.z.sQ(E.x,E.y);
if(U.q(G.PS)&&this.a2){var y=this.a2;this.G2.moveTo(y.x,y.y,E.SB);this.G2.lineTo(.001*y.x+.999*O.x,.001*y.y+.999*O.y,E.SB);
this.G2.lineTo(O.x,O.y,E.SB)}else this.G2.moveTo(O.x,O.y,E.SB);this.a2=O;this.kF=O.clone();this.nr=new dH(O,L.z.NN)};
W.dl.prototype.rr=function(L,C,U){if(L&&L.z.S!=0&&L.z.S!=this.Bi){this.Bi=L.z.S;this.cl(U)}};W.dl.prototype.CC=function(L,C,U,E){if(this.G2==null)return;
var Y=L.N[L.C[0]],z=L.z.sQ(E.x,E.y),r=this.nr.Q8(z,U);if(r.cg(this.a2))return 1;this.G2.lineTo(r.x,r.y,E.SB);
this.a2=r;if(this.id==W.ZP||this.id==W.uE){var p=this.NV(),T=11;p=L.z.Q6(z.x-p.x,z.y-p.y);var k=T>>>1,P=new _(Math.round(p.x)-k,Math.round(p.y)-k,T,T),b=c.F(P.X()*4);
c.n0(16777215);for(var H=0;H<T;H++)b[(H*T+k)*4+3]=b[(T*k+H)*4+3]=255;L.K.jB=[[b,P]];L.eP=!0}};W.dl.prototype.xv=function(L,C,U,E){if(U.Yd!=this.id)return;
if(this.id!=W.dk||L==null)return;if(L.t==null||L.C[0]!=this.a2A){this.a2A=L.C[0];this.cZ({qsmode:0},C)}};
W.dl.prototype.s=function(L,C){if(L.te.length!=0){L.eP=!0;return}var U=L.N[L.C[0]];if(C==null){C=this.G2.Fr();
if(this.Tp()&&U.yQ<=0)C=C.eR(this.dc)}if(C.ue())return;if(U.yQ<=0){U.s(C)}if(U.yQ==1){U.xV().st=!0;U.cr(L)}if(U.yQ==3){U.s()}L.s(L.root.kT(C,L,L.C[0],!0))};
W.dl.prototype.bM=function(L,C,U,E,Y){if(this.G2==null)return;this.G2.finish();if(this.id!=W.ei&&this.id!=W.uE&&this.id!=W.dk)this.Ld(L);
if(this.id==W.ZP||this.id==W.uE){L.K.jB=[];L.eP=!0}if(this.id==W.dk){var z=L.t;L.t=this.e5;var r=new q(B.E.A,!0);
r.data={e:"setsel",z9:this.name,t:z};r.m=W.Y7;C.B(r);if(this.cY.qsmode==0)this.cZ({qsmode:1},C)}else{this.finish(L,this.G2.VO());
this.G2=null;this.XW=null}this.dir=0};W.dl.prototype.cZ=function(L,C){for(var U in L)this.cY[U]=L[U];
var E=new q(B.E.l,!0);E.data={e:B.U.ik,m:this.id,Lp:L};C.B(E)};W.dl.prototype.Tp=function(){var L=this.id;
return L==W.dk||L==W.$B||L==W.JG||L==W.R_||L==W._c||L==W.Ju};W.dl.prototype.finish=function(L,C,U,E,Y){var z=L.te.length!=0?-1-L.te[0]:L.C[0],r=L.N[z],p=z<0?1:r.yQ,T=z<0?L.vI[-z-1]:p<=0?null:p==1?r.xV():r.iC(L).r,k=T?T.rect:r.rect,Q;
if(this.Tp()||!k.cg(this.dc)){if(T==null){if(this.Tp())r.Jx();else{var P=C.EU(this.dc),b=c.F(P.X()*4);
c.La(r.buffer,r.rect,b,P);r.buffer=b;r.rect=P}}else T.Jx();this.s(L,k)}if(p<=0){Q=c.F(C.X()*4);c.La(this.QO,this.dc,Q,C)}else{Q=c.F(C.X());
Q.fill(T.color);c.zM(this.QO,this.dc,Q,C)}this.V3(L,!1,U?U:this.name,z,p,C,Q,E,Y)};W.dl.prototype.V3=function(L,C,U,E,Y,z,r,p,T){var k=r;
if(Y>0){k=c.F(z.X()*4);W.dl.M0(r,z,0,k,z)}var P=new hp(U,this);P.data=[{$:E,yj:Y,_:z,JL:k}];if(p)P.data.jC=[L.t,null];
if(T)P.data.jC=[this.e5,L.t];L.Sv(P);if(C)this.Zm(P.data,L);else if(p)L.t=null;hO.PU.Xm(L,P.data)};W.dl.prototype.Ic=function(L,C){this.mG(L,C,!1)};
W.dl.prototype.Zm=function(L,C){this.mG(L,C,!0)};W.dl.prototype.mG=function(L,C,U){if(L.e=="drawtemp"){var E=U?L.agZ:L.a0a,Y=C.N[L.$];
Y.kK.zK=E;Y.TA(C,0,0,C.t);Y.s();C.hK=!0}else{hO.PU.O8(C,L);if(L.jC){C.t=L.jC[U?1:0];C.U8=!0}}C.s()};
W.dl.prototype.Ld=function(L){this.oA(L,this.tH,this.G2.fS(),this.G2.dm(),this.G2.Fr());this.s(L)};W.dl.prototype.oA=function(L,C,U,E,Y){var z=this.cY,r=L.N[L.C[0]],p=L.te.length!=0?L.vI[L.te[0]]:r.yQ<=0?null:r.yQ==1?r.xV():r.iC(L).r,T=c.F(Y.X()*4),k,P=r.zm(0);
if(p==null){if(this.id==W.Pu&&C=="heal")c.La(r.buffer,r.rect,T,Y);else c.La(this.QO,this.dc,T,Y);if(P){k=c.F(Y.X());
c.wH(T,k,3)}}else{W.dl.M0(this.QO,this.dc,p.color,T,Y)}if(L.t&&C!="qselect"){var b=Y.eR(L.t.rect),Q=c.F(b.X()*4);
if(C=="copy"){var K=c.F(b.X());c.zM(L.t.channel,L.t.rect,K,b);c.La(T,Y,Q,b);c.Q.f3(U,E,Q,b,K,b,0,b,1,!1)}else{c.La(U,E,Q,b);
c.Ow(L.t.channel,L.t.rect,Q,b)}U=Q;E=b}function h(y,dk){var iN=Math.max(dk.x,Math.min(dk.x+dk.d-1,y.x)),dK=Math.max(dk.y,Math.min(dk.y+dk.v-1,y.y));
return new hZ(iN,dK)}if(C=="idraw"||C=="ierase"){if(this.XW==null)this.XW=c.F(this.dc.X());var x=this.cY.samp,O=this.OY.ho,y=h(this.a2,Y),v=x==0?y:this.kF,i=v.x,D=v.y,I=W.Xf.IG(this.QO,this.dc,[v,new hZ(i-2,D),new hZ(i+2,D),new hZ(i,D-2),new hZ(i,D+2)]);
if(x==2)I=[[O>>>16&255,O>>>8&255,O>>>0&255,255]];var m=W.Xf.NU(T,Y,y,I,this.cY.wconf),f=c.F(Y.X());c.zM(this.XW,this.dc,f,Y);
c.KK.EU(m,f,f);c.zM(f,Y,this.XW,this.dc);c.Ow(f,Y,U,E);C=C.slice(1)}if(C=="erase"&&(hO.PU.BK(L)!=16777215||p))C="draw";
if(C=="draw")c.Q.Kj(z.bmode,U,E,T,Y,Y,z.opacity);else if(C=="erase"){var A=c.F(Y.X()*4);c.La(U,E,A,Y);
if(p==null){var d=c.F(Y.X());c.wH(A,d,3);c.yG(d,z.opacity);c.G$(d);c.Ow(d,Y,T,Y)}else{c.n0(A,0,4278190080);
c.Q.Kj("norm",A,Y,T,Y,Y,z.opacity)}}else if(C=="clone"||C=="heal"){var g=this.NV(),X=this.hb.clone();
X.offset(g.x,g.y);var n=Y.clone();n.WW(1,1);var R=c.F(n.X()*4),l=c.F(n.X());c.La(U,E,R,n);c.wH(R,l,3);
c.n0(R,0);if(p==null){c.La(this.KT,X,R,n);var w=c.F(n.X());c.wH(R,w,3);c.Iz(w,l)}else W.dl.M0(this.KT,X,p.color,R,n);
if(C=="clone"){c.Wn(l,R,3);c.Q.Kj(z.bmode,R,n,T,Y,Y,z.opacity)}if(C=="heal"){var V=l.slice(0);c.round(V,20);
var F=c.F(n.X()*4);if(p==null)c.La(this.QO,this.dc,F,n);else W.dl.M0(this.QO,this.dc,p.color,F,n);c.Q.f3(R,n,F,n,V,n,0,n,1,!1);
c.l2.p8(F,V,n);c.Q.f3(F,n,T,Y,l,n,0,Y,1,!1)}}else if(C=="dodge"||C=="burn"){var R=c.F(Y.X()*4),a=1,e=0,N=0,J=0;
c.La(U,E,R,Y);var Z=Y.X()*4,M=W.dl.bU;if(this.qp){if(C=="dodge")C="burn";else C="dodge"}var s=z.rng;
if(C=="dodge"){e=[1-a/2,1,1+a][s];N=[1,1/(1+a),1][s];J=[a/2,0,0][s]}if(C=="burn"){e=[1/(1-a/2),1,1-a/2][s];
N=[1,1+a,1][s];J=[-(a/2)/(1-a/2),0,0][s]}for(var H=0;H<Z;H+=4){var f5=R[H+3];T[H+0]=M(T[H+0],e,N,J,f5);
T[H+1]=M(T[H+1],e,N,J,f5);T[H+2]=M(T[H+2],e,N,J,f5)}}else if(C=="sponge"||C=="redeye"){var R=c.F(Y.X()*4),l=c.F(Y.X());
c.La(U,E,R,Y);c.wH(R,l,3);c.hL(T,R);var dx=z.smode;if(this.qp)dx=1-dx;var fq=hi.Q4("hue2");if(C=="sponge")hK.Sm(fq,0,[0,[-50,46][dx],[6,5][dx]]);
else hK.Sm(fq,1,{tZ:[265,305,25,55],K3:[0,-90,-70]});var i9=eh.dq("hue2",fq);eh.QE(i9,R,R,Y);c.Q.f3(R,Y,T,Y,l,Y,0,Y,1,!1)}else if(C=="copy")c.La(U,E,T,Y);
else if(C=="sheal"){var R=c.F(Y.X()*4),l=c.F(Y.X());c.La(U,E,R,Y);c.wH(R,l,3);R.fill(0);var e8=this.KT,S=this.hb;
if(p){e8=c.F(S.X()*4);W.dl.M0(this.KT,S,0,e8,S)}var fs=c.Qp.p8(e8,S,l,R,Y);if(fs!=0)c.La(e8,S,R,Y);if(this.cY.sfrom==0)c.La(R,Y,T,Y);
else{c.La(this.QO,this.dc,T,Y);c.Wn(l,R,3);c.Q.Kj("norm",R,Y,T,Y,Y,1)}}else if(C=="qselect"){var bz=this.dc,g6=bz.d,al=bz.v,bj=g6*al,bE=this.G2.fS(),I=this.QO,eN=W.kd.Ss,l=eN.lm;
l.fill(128);for(var H=0;H<bj;H++){var dk=bE[H<<2],hj=bE[(H<<2)+3];if(hj==255&&(dk==0||dk==255))l[H]=dk}l[0]=l[g6-1]=0;
l[(al>>>1)*g6]=l[(al>>>1)*g6+g6-1]=0;W.jw.xr(eN,!0);L.t={rect:bz,channel:eN.t.slice(0)};L.U8=!0}if(p==null){if(P)c.Wn(k,T,3);
c.La(T,Y,r.buffer,r.rect)}else W.dl.nO(T,Y,p)};W.dl.NV=function(){return null};W.dl.bU=function(L,C,U,E,Y){var z=L*(1/255),r=E+C*Math.pow(z,U),p=Math.round(r*Y+z*(255-Y));
return Math.max(0,Math.min(255,p))};W.dl.M0=function(L,C,U,E,Y){var z=c.F(Y.X());z.fill(U);c.zM(L,C,z,Y);
E.fill(255);c.EI(z,E)};W.dl.nO=function(L,C,U){var E=c.F(C.X());c.Fy(L,E);c.zM(E,C,U.channel,U.rect)};
W.kd=function(L,C,U){W.DJ.call(this,L,C,U);this.cY={Ks:"front",hY:0,ra:{am:0,x:3,y:2},dH:[16,!0,!0]};
this.AS=new hZ(-1,-1);this.vv=new hZ(-1,-1);this.XK="default";this.kn=null;this.akl=!0;this.xy=!1;this.iR=!1;
this.qp=!1;this.oK=0;this.RZ=0;this.NP=!1;this.XX=null;this.YW=null;this.c4=!1};W.kd.prototype=new W.DJ;
W.kd.prototype.an$=function(){var L=this.cY,C=[{front:0,union:1,difference:2,intersection:3}[L.Ks],L.hY];
if(this.id==W.eG)C.push(L.dH);return C};W.kd.prototype.abE=function(L,C,U){var E=this.cY;E.Ks=["front","union","difference","intersection"][L[0]];
E.hY=L[1];E.dH=L[2];var Y=new q(B.E.l,!0);Y.data={e:B.U.ik,m:this.id,XO:E};U.B(Y)};W.kd.Ss={key:""};
W.kd._y=function(L,C){var U={xo:L,V5:{classID:"setd",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}};
if(C)U.V5.T=C;return U};W.kd.ee=function(L,C){return W.kd._y("set",{t:"Objc",v:{classID:L,Top:{t:"UntF",v:{type:"#Pxl",val:C.y}},Left:{t:"UntF",v:{type:"#Pxl",val:C.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:C.y+C.v}},Rght:{t:"UntF",v:{type:"#Pxl",val:C.x+C.d}}}})};
W.kd.K4=function(L,C){var U=[],E=[],z="set";for(var H=0;H<L.length;H+=2){U.push(L[H]);E.push(L[H+1])}var Y={t:"Objc",v:{classID:"Plgn",Pts:{t:"ObAr",v:{classID:"Pnt",arr:[{id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:U},{id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:E}]}}}};
if(C)z={front:"set",union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[C];return W.kd._y(z,Y)};
W.kd.a1U=function(L,C){var U={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:L.x}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:L.y}}}},E=W.kd._y("set",U);
E.V5.Tlrn={t:"long",v:C[0]};E.V5.AntA={t:"bool",v:C[1]};E.V5.Cntg={t:"bool",v:C[2]};return E};W.kd.xe=function(L){return W.kd._y("set",{t:"enum",v:{Ordn:L?"Al":"None"}})};
W.kd.af7=function(L,C,U){var E={classID:"null"};if(L!="border")E.selectionModifyEffectAtCanvasBounds={t:"bool",v:U};
var Y={e:"By",c:"By",b:"Wdth",f:"Rds",s:"Rds"}[L[0]];E[Y]={t:"UntF",v:{type:"#Pxl",val:C}};return{xo:L,V5:E}};
W.kd.Qj=function(L,C,U){var E={t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]},Y={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:C}}]};
if(U)Y.v.push({t:"name",v:{classID:"Lyr",val:U}});var z=[{classID:"null",null:E,T:Y},{classID:"null",null:Y,T:E},{classID:"null",null:Y,From:E},{classID:"null",null:Y,With:E}],r=["set","add","subtract","interfaceIconFrameDimmed"];
return{xo:r[L],V5:z[L]}};W.kd.Lg=function(L,C){var U=new q(B.E.l,!0);U.data={e:B.U.MP,wm:c_.dA};if(!C.Fg)L.B(U);
U.data={e:B.U.MP,wm:c_.Df};if(!C.qA.Kf)L.B(U)};W.kd.prototype.GV=function(L,C,U,E,Y){W.kd.Lg(C,Y);this.kn=C;
var z=L.e,r,p,T=new _(0,0,U.d,U.v),hj=!1,iN,dK,ch,hP;if(z=="fromAction"){var k=L.jX,P=k.xo,b=k.V5,Q=b?b.selectionModifyEffectAtCanvasBounds:null,K=Q&&Q.v;
if(P=="inverse"){if(U.t==null){alert("No selection!");return}r={channel:c.F(T.X()),rect:T};c.zM(U.t.channel,U.t.rect,r.channel,r.rect);
c.G$(r.channel);p=[7,2]}else if(P=="expand"){var h=b.By.v.val,x=U.t.rect.clone();x.WW(h,h);var O=c.F(x.X()),y=c.F(x.X());
c.zM(U.t.channel,U.t.rect,y,x);c.style.stroke(y,O,x,h);r={channel:O,rect:x};p=[7,4]}else if(P=="contract"){var h=b.By.v.val,v=U.t.rect.clone();
v.WW(1,1);if(!K)v=v.eR(T);var y=c.F(v.X()),i=c.F(y.length);c.zM(U.t.channel,U.t.rect,y,v);c.G$(y);c.style.stroke(y,i,v,h);
c.G$(i);r={channel:i,rect:v};c.Jx(r);p=[7,5]}else if(P=="border"){var h=b.Wdth.v.val;r=W.kd.Z2(U.t,h/2,h/2);
p=[7,9]}else if(P=="feather"||P=="smoothness"){var h=b.Rds.v.val;r=W.kd.fs(U.t,h,P=="smoothness",T,K);
p=P=="feather"?[7,6]:[19,3,0]}else{var D=b.null.v;function I(fj){var dX=fj.Top.v.val,go=fj.Left.v.val;
return new _(go,dX,fj.Rght.v.val-go,fj.Btom.v.val-dX)}function m(fj){var dX=fj[0].arr,gc=fj[1].arr,dz={c:[],Z:[]};
for(var H=0;H<dX.length;H++){dz.Z.push(H==0?"M":"L");dz.c.push(dX[H],gc[H])}dz.Z.push("Z");return dz}var f=["set","addTo","subtractFrom","interfaceWhite"].indexOf(P),A=b.T?b.T.v:null;
if(A&&A.classID=="Elps"){r=this.P3(W.In.Lz(I(A)));p=[10,4]}else if(A&&A.classID=="Rctn"){var d=I(A);
r={channel:c.F(d.X()),rect:d.clone()};r.channel.fill(255);p=[10,15]}else if(A&&A.classID=="ObSl"){var d=I(A),g=W.kd.Ss,X=g.rect,n=g.lm,R=X.d,l=X.v,w=d.x-X.x,V=w+d.d-1,F=Math.max(w,Math.min(V,w+V>>>1)),Z=d.y-X.y,M=Z+d.v-1,a=Math.max(Z,Math.min(M,Z+M>>>1)),e=Math.max(w,0),N=Math.min(V,R),J=Math.max(Z,0),s=Math.min(M,l);
n.fill(128);if(0<=Z)for(var f5=e;f5<N;f5++)n[Z*R+f5]=0;if(M<l)for(var f5=e;f5<N;f5++)n[M*R+f5]=0;if(0<=w)for(var dx=J;
dx<s;dx++)n[dx*R+w]=0;if(V<R)for(var dx=J;dx<s;dx++)n[dx*R+V]=0;var fq=W.IJ.bC,i9=Math.round(d.d*fq),e8=Math.round(d.v*fq);
for(var f5=Math.max(0,F-i9);f5<Math.min(R,F+i9);f5++)n[a*R+f5]=255;for(var dx=Math.max(0,a-e8);dx<Math.min(l,a+e8);
dx++)n[dx*R+F]=255;W.jw.xr(g,!0);r={channel:g.t.slice(0),rect:X.clone()};p=[10,44]}else if(A&&A.classID=="Plgn"){r=this.P3(m(A.Pts.v.arr));
p=[10,9]}else if(A&&A.classID=="Pnt"){r=W.Xf.bk(U,new hZ(A.Hrzn.v.val,A.Vrtc.v.val),[b.Tlrn.v,b.AntA==null||b.AntA.v,b.Cntg==null||b.Cntg.v]);
p=[10,12]}else if(A&&A.Ordn=="None"){r=null;p=[7,1]}else if(A&&A.Ordn=="Al"){r={channel:c.F(T.X()),rect:T};
r.channel.fill(255);p=[7,0]}else if(A&&A[0]&&A[0].v.keyID=="WrPt"){var S={e:"frompath",F$:[-1,0,0]};
this.GV(S,C,U,E,Y);return}else{var fs=["set","add","subtract","interfaceIconFrameDimmed"].indexOf(P),bz=P=="set"?A:D,g6=bz[0].v.enum,S;
if(g6=="Trsp"||g6=="Msk"||g6=="vectorMask"){var al=U.C[0];if(bz.length==2)al=hy.Y3(U,bz[1]);var bj=["Trsp","Msk","vectorMask"].indexOf(g6);
S={e:"fromlayer",F$:[al,bj,fs]}}else{if(bz[0].t=="name"){var al=0;for(var H=0;H<U.vI.length;H++)if(U.vI[H].name==bz[0].v.val)al=H;
S={e:"fromchannel",F$:[-5-al,0,fs]}}else{var bE=["RGB","Rd","Grn","Bl"].indexOf(g6);S={e:"fromchannel",F$:[-1-bE,0,fs]}}}this.GV(S,C,U,E,Y);
return}if(b.Fthr)r=W.kd.fs(r,b.Fthr.v.val,!1);if(P!="set"&&U.t!=null)r=c.KK.dJ(r,U.t,["","union","difference","intersection"][f])}if(P=="expand"||P=="contract")if(!K&&!T.contains(r.rect)){var eN=r.rect.eR(T),dk=c.F(eN.X());
c.zM(r.channel,r.rect,dk,eN);r.channel=dk;r.rect=eN}}if(z=="qmask"){hj=!0;var d2=U.$k(),hr=new _(0,0,U.d,U.v);
if(d2){r=d2.rect.cg(hr)&&c.eQ(d2.channel,255)?null:{rect:d2.rect.clone(),channel:d2.channel.slice(0)};
iN=d2}else{r=null;dK=new o.LF;dK.color=0;dK.name="Quick Mask";dK.mM=!0;if(U.t){dK.rect=U.t.rect.clone();
dK.channel=U.t.channel.slice(0)}else{dK.rect=hr;dK.channel=c.F(dK.rect.X());dK.channel.fill(255)}}p=[6,6,1]}if(z=="setsel"){r=L.t;
p=L.z9}if(z=="crange"){var fv=L.Uh,f3=L.fX;r=W.kd.yW(U,fv,f3,L.oD);p=[7,8];fv={t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:fv.QD},A:{t:"doub",v:fv.R},B:{t:"doub",v:fv.O}}};
f3={t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:f3.QD},A:{t:"doub",v:f3.R},B:{t:"doub",v:f3.O}}};this.track({xo:"colorRange",V5:{__name:"Color Range",classID:"ClrR",Fzns:{t:"long",v:Math.round(L.oD*200)},Mnm:fv,Mxm:f3,colorModel:{t:"long",v:0}}})}if(z=="fromlayer"||z=="fromchannel"||z=="frompath"){var dp=L.F$[0],bj=L.F$[1],f=L.F$[2];
if(z=="fromlayer"){if(dp==null)dp=U.C[0];var go=U.N[dp];if(bj==0){var d6=go.rect,iB=go.buffer;if(d6.ue())return;
var hS=c.F(iB.length>>>2);c.wH(iB,hS,3);r={channel:hS,rect:d6.clone()}}else{if(go.r==null)go.cr(U);var eF=bj==1?go.xV():go.r;
r=W.kd.zy(eF,T)}this.track(W.kd.Qj(f,["Trsp","Msk"][bj],go.getName()))}else if(z=="frompath"){var bQ=U.zG(),iP=bQ[1],bQ=bQ[0];
if(dp==null)if(bQ.length==0||iP.length==0)return;var d8=bQ[iP[0]];if(dp!=null)for(var H=0;H<bQ.length;
H++)if(bQ[H].Oi==dp)d8=bQ[H];var eF=d8.add.vmsk.xV(),a6=eF.dm();if(a6.X()==0)return;var hS=eF.Mh();if(L.F$[3]!=null)this.akl=L.F$[3];
if(this.akl){hS=hS.slice(0);c.round(hS)}ch=[JSON.stringify(U.j5),JSON.stringify(U.cE)];hP=["[]","[]"];
U.j5=[];U.cE=[];r={channel:hS,rect:a6}}else{if(dp==null)dp=W.kd.so(U);r=W.kd.cs(U,dp)}if(f!=0&&U.t)r=c.KK.dJ(r,U.t,["","union","difference","intersection"][f]);
p=[14,11]}if(r!=null&&c.eQ(r.channel,0)){r=null;p=[7,1]}if(r)c.Jx(r);var am=new hp(p,this);am.data={e:"changesel",e5:U.t,bx:r,$k:hj,adg:iN,amE:dK,i1:ch,ail:hP};
U.Sv(am);this.Zm(am.data,U)};W.kd.so=function(L){var C=0;if(L.te.length!=0)C=-5-L.te[0];else if(JSON.stringify(L.z.NT)=="[1,1,1]")C=-1;
else C=-2-L.z.NT.indexOf(1);return C};W.kd.cs=function(L,C){var U,E=new _(0,0,L.d,L.v);if(-5<C&C<0){var Y=-C-1,z=L.E0(),r=c.F(E.X());
if(Y==0)c.Fy(z,r);else c.wH(z,r,Y-1);U={channel:r,rect:E.clone()}}if(C<-4){U=W.kd.zy(L.vI[-C-5],E)}return U};
W.kd.zy=function(L,C){var U,E;if(L.Lt()==0){E=L.dm();if(E.X()==0)return;U=L.Mh()}else{E=C;U=c.F(E.X());
L.X8(E,U)}return{channel:U,rect:E}};W.kd.prototype.gQ=function(L){return this.NP||L.X4&&this.id!=W.wj};
W.kd.prototype.eo=function(L,C,U){var E=new q(C,!0);E.data=U;L.B(E)};W.kd.prototype.Kg=function(L,C){var U=new q(B.E.l,!0);
U.data={e:B.U.lx,aZ:C};L.B(U)};W.kd.prototype.dm=function(L,C,U){C=L.t==null||this.oK>1||this.RZ>1?C:null;
var E=this.AS,Y=this.vv;if(U){E.x=Math.max(0,Math.min(L.d,E.x));E.y=Math.max(0,Math.min(L.v,E.y));Y.x=Math.max(0,Math.min(L.d,Y.x));
Y.y=Math.max(0,Math.min(L.v,Y.y))}var z=W.gl.V8(E,Y,C,!0,this.cY.ra),r=z[0].x,p=z[0].y;return new _(r,p,z[1].x-r,z[1].y-p)};
W.kd.prototype.zI=function(L,C,U,E,Y){if(this._D())return;this.kn=C;this.xy=!1;this.iR=E.q(G.PS);this.qp=E.q(G.Lv);
this.oK=this.iR?0:1;this.RZ=this.qp?0:1;this.AS=L.z.sQ(Y.x,Y.y);this.AS=W.P4.wD(L,this.AS,U);if(this.wl(L,this.AS,E)){this.NP=!0;
this.XX=L.t.rect.clone();return}this.g3(L,U,E,Y);L.z.d0=new _};W.kd.prototype.wl=function(L,C,U){var E=U.q(G.PS),Y=U.q(G.Lv);
if(L.t&&!E&&!Y&&this.cY.Ks=="front")return c.gW(C,L.t.channel,L.t.rect);return!1};W.kd.prototype.Yh=function(L,C,U,E,Y){this.kn=C;
if(this.c4)return;var z=L.z.sQ(Y.x,Y.y);if(hZ.sl(this.AS,z)*L.z.S>5)this.xy=!0;if(E.q(G.en)){if(this.YW==null)this.YW=new hZ(z.x-this.AS.x,z.y-this.AS.y);
this.AS.x=z.x-this.YW.x;this.AS.y=z.y-this.YW.y}else this.YW=null;this.vv=z;if(!this.NP)this.vv=W.P4.wD(L,this.vv,U);
if(this.wl(L,this.vv,E))this.Kg(C,"move");else this.Kg(C,this.XK);if(this.NP){var r=this.XX.clone();
r.x+=this.vv.x-this.AS.x;r.y+=this.vv.y-this.AS.y;var p=W.P4.HG(L,r,U);L.t.rect.x=Math.round(this.vv.x-this.AS.x+this.XX.x+p[0]);
L.t.rect.y=Math.round(this.vv.y-this.AS.y+this.XX.y+p[1]);L.U8=!0;W.P4.E9(L,r,p);return}this.Rl(L,U,E,Y);
if(L.z.d0)L.z.d0=this.dm(L,E)};W.kd.prototype._D=function(){return!1};W.kd.prototype.bM=function(L,C,U,E,Y){L.z.d0=null;
this.vv=L.z.sQ(Y.x,Y.y);this.vv=W.P4.wD(L,this.vv,U);if(this.NP){this.NP=!1;if(this.vv.cg(this.AS)&&this.j8()=="front"){this.eo(C,B.E._w,W.kd.xe());
return}this.Zs(L,this.XX,L.t.rect.clone());if(L!=null&&L.K.h4){L.K.h4=null;L.eP=!0}return}this.Zr(L,U,E,Y);
W.kd.Lg(C,U)};W.kd.prototype.Zs=function(L,C,U){var E=L.bQ();if(E!=null&&E.m==this&&E.data.e=="movesel"){}else{E=new hp([7,7],this);
E.data={e:"movesel",TU:C};L.Sv(E)}E.data.P0=U;this.Zm(E.data,L)};W.kd.prototype.vF=function(L,C,U,E,Y){this.c4=!0};
W.kd.prototype.Rg=function(L,C,U,E,Y){var z=new q(B.E.l,!0);z.data={e:B.U.ik,m:this.id,q0:Y,Ru:L,us:U};
C.B(z);this.c4=!1};W.kd.prototype.fj=function(L,C,U,E){var Y=E.q(G.PS),z=E.q(G.Lv);if(this.xy){if(this.oK==0&&!Y)this.oK++;
if(this.oK==1&&Y)this.oK++;if(this.RZ==0&&!z)this.RZ++;if(this.RZ==1&&z)this.RZ++}if(L!=null&&L.t!=null){var r=E.wu();
if(r.x!=0||r.y!=0){var p=L.t.rect.clone();p.x+=r.x;p.y+=r.y;this.Zs(L,L.t.rect.clone(),p)}}var T=W.kd.LV(this.cY.Ks,Y,z),k=new q(B.E.l,!0);
k.data={e:B.U.ik,m:this.id,Ks:T};C.B(k)};W.kd.prototype.finish=function(L,C,U,E){var Y=L.t,z=this.getSelection(L,C,U,E);
if(z==null)z=W.kd.xe();else{var r=this.cY.hY,p=this.j8();if(r!=0)z.V5.Fthr={t:"UntF",v:{type:"#Pxl",val:r}};
if(p!="front"&&p!="xor")z.xo={union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[p]}this.eo(this.kn,B.E._w,z);
this.AS.U6(-1,-1);this.vv.U6(-1,-1)};W.kd.prototype.j8=function(){return W.kd.LV(this.cY.Ks,this.iR,this.qp)};
W.kd.LV=function(L,C,U){if(C)L="union";if(U)L="difference";if(C&&U)L="intersection";return L};W.kd.prototype.getSelection=function(L,C,U,E){return null};
W.kd.prototype.g3=function(L,C,U,E){};W.kd.prototype.Rl=function(L,C,U,E){};W.kd.prototype.Zr=function(L,C,U,E){};
W.kd.prototype.Ic=function(L,C){var U=L.e;if(U=="changesel")C.t=L.e5;if(U=="movesel")C.t.rect=L.TU;if(L.$k){if(L.adg){C.te=[C.vI.length];
C.vI.push(L.adg)}else{C.vI.pop();C.te=[]}}if(L.i1){C.j5=JSON.parse(L.i1[0]);C.cE=JSON.parse(L.i1[1])}C.U8=!0};
W.kd.prototype.Zm=function(L,C){var U=L.e;if(U=="changesel")C.t=L.bx;if(U=="movesel")C.t.rect=L.P0;if(L.$k){if(L.amE){C.te=[C.vI.length];
C.vI.push(L.amE)}else{C.vI.pop();C.te=[]}}if(L.i1){C.j5=JSON.parse(L.ail[0]);C.cE=JSON.parse(L.ail[1])}C.U8=!0};
W.kd.prototype.oO=function(L){this.cY=L};W.kd.prototype.P3=function(L){var C=c.a.wh(L.c);if(C.ue())return null;
var U=B.w("canvas","");U.width=C.d;U.height=C.v;var E=U.getContext("2d");E.beginPath();E.translate(-C.x,-C.y);
Typr.U.pathToContext({cmds:L.Z,crds:L.c},E);E.closePath();E.fill();var Y=c.F(C.X()),z=E.getImageData(0,0,U.width,U.height);
c.wH(z.data,Y,3);return{rect:C,channel:Y}};W.kd.fs=function(L,C,U,E,Y){if(U)C=Math.round(C*.7);var z=Math.ceil(2.6*C),r=L.rect.clone();
r.WW(z,z);if(E&&!Y)r=r.eR(E);var p=c.F(r.X()),T=c.F(p.length);c.zM(L.channel,L.rect,T,r);c.qM.Oq(T,p,r,C);
if(U){var k=p.length;for(var H=0;H<k;H++){var P=(p[H]-128)*C*2.5;p[H]=Math.max(0,Math.min(255,Math.round(128+P)))}}return{channel:p,rect:r}};
W.kd.Z2=function(L,C,U){var E=Math.max(1,Math.ceil(U)),Y=L.rect.clone();Y.WW(E,E);var z=Y.X(),r={channel:c.F(z),rect:Y},p=c.F(z);
c.zM(L.channel,L.rect,p,r.rect);if(U!=0)c.style.stroke(p,r.channel,r.rect,U);else c.hL(p,r.channel);
var T=c.F(z);c.G$(p);if(C!=0)c.style.stroke(p,T,r.rect,C);else c.hL(p,T);c.KK.eR(r.channel,T,r.channel);
return r};W.kd.yW=function(L,C,U,E){var Y=new _(0,0,L.d,L.v),z=L.E0();if(L.t){var r=L.t.rect.eR(Y),p=c.F(r.X()*4);
c.La(z,Y,p,r);Y=r;z=p}var T=Y.X(),k=c.F(T),P=1/E;for(var H=0;H<T;H++){var b=H<<2,Q=c.E8(z[b],z[b+1],z[b+2]),K=c.WA(Q,C,U,E,P);
k[H]=z[b+3]*K}return{rect:Y,channel:k}};W.r6=function(){W.dl.call(this,[10,18],W.OZ,"tools/blur");this.tH="copy"};
W.r6.prototype=new W.dl;W.r6.prototype.zI=function(L,C,U,E,Y){var z=E.q(G.Lv)?iR.FG:iR.OZ;this.fu(L,U,E,Y,this.cY.strn,z);
if(this.G2==null)return;this.Ld(L)};W.r6.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);if(this.UD)this.GS(L,U,Y);
if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.Tt=function(){W.dl.call(this,[10,0],W.Sw,"tools/brush");
this.tH="draw"};W.Tt.prototype=new W.dl;W.Tt.prototype.zI=function(L,C,U,E,Y){if(this.V4(E,C,Y))return;
this.fu(L,U,E,Y,this.cY.flow);if(this.G2==null)return;this.Ld(L)};W.Tt.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);
if(this.UD)this.GS(L,U,Y);if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.JC=function(){W.dl.call(this,[10,42],W.Yl,"tools/crepl");
this.tH="idraw";this.cY.bmode="hue "};W.JC.prototype=new W.dl;W.JC.prototype.zI=function(L,C,U,E,Y){if(this.V4(E,C,Y))return;
this.fu(L,U,E,Y,this.cY.flow);if(this.G2==null)return;this.Ld(L)};W.JC.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);
if(this.UD)this.GS(L,U,Y);if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.GK=function(){W.dl.call(this,[10,43],W.Ju,"tools/redeye");
this.cY.smode=0;this.tH="redeye"};W.GK.prototype=new W.dl;W.GK.prototype.zI=function(L,C,U,E,Y){this.fu(L,U,E,Y,this.cY.flow);
if(this.G2==null)return;this.Ld(L)};W.GK.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);if(this.UD)this.GS(L,U,Y);
if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.RL=function(){W.dl.call(this,[10,38],W.Ts,"tools/pencil");
this.tH="draw"};W.RL.prototype=new W.dl;W.RL.prototype.zI=function(L,C,U,E,Y){if(this.V4(E,C,Y))return;
this.fu(L,U,E,Y,this.cY.flow);if(this.G2==null)return;this.Ld(L)};W.RL.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);
if(this.UD)this.GS(L,U,Y);if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.hf=function(){W.dl.call(this,[10,22],W.R_,"tools/burn");
this.tH="burn"};W.hf.prototype=new W.dl;W.hf.prototype.zI=function(L,C,U,E,Y){this.fu(L,U,E,Y,this.cY.expo/Math.E);
if(this.G2==null)return;this.Ld(L)};W.hf.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);if(this.UD)this.GS(L,U,Y);
if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.LN=function(L,C,U){W.dl.call(this,L==""?null:L?L:[10,1],C?C:W.ZP,U?U:"tools/clone");
this.tH="clone";this.qU=null;this.g=null};W.LN.prototype=new W.dl;W.LN.prototype.zI=function(L,C,U,E,Y){var z=this.cY,r=z.alt[0];
if(E.q(G.Lv)||E.q(G.bj)||r){this.qU=L.z.sQ(Y.x,Y.y);this.g=null;if(r)this.cZ({alt:[!1]},C);this.yt(L);
this.cl(U,E,L,Y);return}if(this.qU==null){alert(gS.get([15,7,0]));return}this.cl(U,E);this.fu(L,U,E,Y,this.cY.flow);
if(this.G2==null)return;this.g=this.sC(L.z.sQ(Y.x,Y.y));this.Ld(L)};W.LN.prototype.sC=function(L){var C=this.g;
if(C==null||!this.cY.algnd)C=new hZ(Math.round(L.x-this.qU.x),Math.round(L.y-this.qU.y));return C};W.LN.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);
if(this.UD)this.GS(L,U,Y);if(this.G2==null){if(this.qU!=null)this.cl(U,E,L,Y);return}if(!Y.X4||this.qU==null)return;
this.CC(L,U,E,Y);this.Ld(L)};W.LN.prototype.NV=function(){return this.g};W.yP=function(L,C,U){W.DJ.call(this,L,C,U);
this.FU={zh:{am:0,x:0,y:0},h6:!1};this.E$=null;this.cursor=null;this.ale=0;this.pJ=null;this.AS=null;
this.Bw=null};W.yP.prototype=new W.DJ;W.yP.prototype.sH=function(){return this.E$!=null};W.yP.prototype.gQ=function(L){return this.E$&&this.E$.ft()};
W.yP.prototype.zI=function(L,C,U,E,Y){this.pJ=Y;var z=L.z.sQ(Y.x,Y.y);z.x=Math.round(z.x);z.y=Math.round(z.y);
var r=this.FU.zh,p=r.am!=0?r.x/r.y:null;if(this.E$)this.E$.zI(L,U,E,z,p,!1);else this.AS=W.P4.wD(L,z,U)};
W.yP.prototype.IM=function(L,C){var U=[L.x,L.y,L.x+L.d,L.y,L.x+L.d,L.y+L.v,L.x,L.y+L.v];return new hV(U,!0,!1,this.id==W.C_,!0,C,this.id==W.C_?2:0,this.id==W.C_)};
W.yP.prototype.cl=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.lx,aZ:this.cursor};L.B(C)};W.yP.prototype.enable=function(L,C,U,E){this.kn=C;
this.cursor="crosshair";this.cl(C);if(L!=null&&L.t){var Y=this.FU.zh={am:0,x:0,y:0};this.eo(C,B.E.l,{e:B.U.ik,m:this.id,Gw:!1,ra:Y});
this.oO({bi:"cropby",anf:3},C,L,E,U)}};W.yP.prototype.Yh=function(L,C,U,E,Y){this.pJ=Y;var z=L.z.sQ(Y.x,Y.y);
if(!Y.X4){var r="crosshair";if(this.E$){var p=this.E$.J8(z,L.z.S);if(p)r=p;else r="default"}if(r!=this.cursor){this.cursor=r;
this.cl(C)}}if(this.E$)this.E$.Yh(L,U,E,z);else if(this.AS){var T=W.gl.V8(this.AS,W.P4.wD(L,z,U),E,!0,this.FU.zh),k=T[0].x,P=T[0].y,b=this.Bw=new _(k,P,T[1].x-k,T[1].y-P);
L.K.yw=c.a.kG(b);L.eP=!0;W.DJ.$y(Y.x+10,Y.y-10,b,L,U)}};W.yP.prototype.bM=function(L,C,U,E,Y){this.pJ=Y;
if(this.E$==null){if(this.AS){var z=this.Bw;if(z){var r=this.FU.zh;this.E$=this.IM(z,r.am!=0);this.E$.pA(L,U);
this.Bw=null;this.eo(C,B.E.l,{e:B.U.ik,m:this.id,Gw:!0})}this.AS=null;L.K.jB=[];L.eP=!0}return}var p=L.z.sQ(Y.x,Y.y);
this.E$.bM(L,U,E,p);this.eo(C,B.E.l,{e:B.U.ik,m:this.id,Gw:!0});var T=this.E$.Bj();if(Math.abs(T[0]-T[4])<2||Math.abs(T[1]-T[5])<2){this.disable(L,C,null,E);
return}if(Date.now()-this.ale<200&&this.E$.b5(p)){this.E5(L,U);this.disable(L,C,U,E);return}this.ale=Date.now()};
W.yP.prototype.fj=function(L,C,U,E){var Y=this.E$;if(Y==null||this.pJ&&this.pJ.X4)return;if(E.q(G.CT)){this.E5(L,U);
this.disable(L,C,U,E)}else if(E.q(G.ox)){this.disable(L,C,U,E)}else Y.fj(L,U,E)};W.yP.oR=function(L,C){var U={classID:"null",T:{t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:L[1]}},Left:{t:"UntF",v:{type:"#Pxl",val:L[0]}},Btom:{t:"UntF",v:{type:"#Pxl",val:L[1]+L[3]}},Rght:{t:"UntF",v:{type:"#Pxl",val:L[0]+L[2]}}}},Angl:{t:"UntF",v:{type:"#Ang",val:C!=null?C:0}},Dlt:{t:"bool",v:!0},cropAspectRatioModeKey:{t:"enum",v:{cropAspectRatioModeClass:"pureAspectRatio"}},CnsP:{t:"bool",v:!1}};
return{xo:"crop",V5:U}};W.yP.Fv=function(L,C){if(C==null)C=[!0,!0,!0,!0];var U={classID:"trim",trimBasedOn:{t:"enum",v:{trimBasedOn:["topLeftPixelColor","bottomRightPixelColor","Trns"][L]}}},E=["Top","Left","Btom","Rght"];
for(var H=0;H<4;H++)U[E[H]]={t:"bool",v:C[H]};return{xo:"trim",V5:U}};W.yP.Zn=function(L,C,U,E){var Y={classID:"null"};
if(E!=null){Y.Wdth={t:"UntF",v:{type:"#Pxl",val:L}};Y.Hght={t:"UntF",v:{type:"#Pxl",val:C}};Y.Intr={t:"enum",v:{Intp:["Nrst","Blnr","bicubicSharper"][E]}}}if(U!=null)Y.Rslt={t:"UntF",v:{type:"#Rsl",val:U}};
return{xo:"imageSize",V5:Y}};W.yP.eW=function(L,C,U){if(U==null)U=4;var E=Math.floor(U/3),Y=U%3;return{xo:"canvasSize",V5:{classID:"null",Wdth:{t:"UntF",v:{type:"#Pxl",val:L}},Hght:{t:"UntF",v:{type:"#Pxl",val:C}},Hrzn:{t:"enum",v:{HrzL:["Left","Cntr","Rght"][Y]}},Vrtc:{t:"enum",v:{VrtL:["Top","Cntr","Btom"][E]}}}}};
W.yP.prototype.GV=function(L,C,U,E,Y){var z=new _(0,0,U.d,U.v),r=[11,3],p=U._Q,T=U.d/2,k=U.v/2,P=1,s,f5;
if(L.e=="fromAction"){var b=L.jX,Q=b.xo,K=b.V5,h=U.d/U.v,x=K.Wdth?K.Wdth.v.val:-1,O=K.Hght?K.Hght.v.val:-1,p=K.Rslt?K.Rslt.v.val:null,y=K.Wdth?K.Wdth.v.type:K.Hght?K.Hght.v.type:-1,v=1,i;
if(Q=="imageSize"){if(K.Intr){if(K.Intr.v.Intp=="Nrst")v=0;if(K.Intr.v.Intp=="bicubicSharper")v=2;if(x==-1&&O==-1){var D=p/U._Q;
x=Math.round(U.d*D);O=Math.round(U.v*D)}else if(y=="#Prc"){if(x!=-1)x=Math.round(U.d*x/100);if(O!=-1)O=Math.round(U.v*O/100)}if(K.CnsP&&K.CnsP.v){if(x==-1)x=Math.round(O*h);
if(O==-1)O=Math.round(x/h)}}else{if(y=="#Prc")p=Math.round(U._Q/((x!=-1?x:O)/100));else if(y==-1)p=Math.round(p);
else throw"e";x=U.d;O=U.v}i={e:"imgsize",CH:x,Ac:O,uH:p,B_:v}}else if(Q=="canvasSize"){if(x==-1)x=U.d;
if(O==-1)O=U.v;if(K.Rltv&&K.Rltv.v==!0){if(K.Wdth)x+=U.d;if(K.Hght)O+=U.v}var I=K.Vrtc?K.Vrtc.v.VrtL:"Cntr",m=K.Hrzn?K.Hrzn.v.HrzL:"Cntr";
i={e:"canvsize",CH:x,Ac:O,jP:3*["Top","Cntr","Btom"].indexOf(I)+["Left","Cntr","Rght"].indexOf(m)}}else if(Q=="revealAll"){i={e:"revealAll"}}else if(Q=="trim"){var f={topLeftPixelColor:0,bottomRightPixelColor:1,Trns:2}[K.trimBasedOn.v.trimBasedOn];
if(f==null)throw"e";var A=["Top","Left","Btom","Rght"],d=[!0,!0,!0,!0];for(var H=0;H<4;H++)if(K[A[H]])d[H]=K[A[H]].v;
i={e:"trim",am9:f,ra:d}}else if(Q=="crop"){var g=K.T.v,X=Math.round(g.Left.v.val),n=Math.round(g.Top.v.val),R=Math.round(g.Rght.v.val)-X,l=Math.round(g.Btom.v.val)-n;
i={e:"canvsize",CH:R,Ac:l,g:new hZ(X,n)}}else console.log(b);if(i)this.GV(i,C,U,E,Y);return}else if(L.e=="imgsize"){z=new _(0,0,L.CH,L.Ac);
if(L.uH)p=L.uH;P=L.B_}else if(L.e=="canvsize"){var w=L.jP!=null?L.jP:0;z=new _(0,0,L.CH,L.Ac);var V=U.d-L.CH,F=U.v-L.Ac,Z=Math.round(V/2),M=Math.round(F/2);
if(w==1||w==4||w==7)z.x=Z;if(w==2||w==5||w==8)z.x=V;if(w==3||w==4||w==5)z.y=M;if(w==6||w==7||w==8)z.y=F;
if(L.g){z.x=L.g.x;z.y=L.g.y}}else if(L.e=="rot"&&(L.G+2*Math.PI)%(Math.PI/2)!=0){var a=c.a.kG(z).c,e=new c0;
e.translate(-T,-k);e.rotate(L.G);e.translate(T,k);c.a.J(a,e,a);z=c.a.wh(a)}else if(L.e=="rot"&&L.G!=Math.PI&&L.G!=-Math.PI){z=new _(T-U.v/2,k-U.d/2,U.v,U.d);
if((U.d+U.v&1)==1){T=Math.floor(T);k=Math.floor(k);z=new _(T-Math.floor(U.v/2),k-Math.floor(U.d/2),U.v,U.d);
if((U.d&1)==1&&L.G!=-Math.PI/2)z.y--;if((U.v&1)==1&&L.G==-Math.PI/2)z.x--}}else if(L.e=="trim"){r=[11,12,0];
var N=U.E0(),J=new _(0,0,U.d,U.v);z=c.TW(N,J,L.am9,L.ra);if(z.ue())z=J}else if(L.e=="cropbysel"){r=[11,12,1];
z=U.t.rect.clone()}else if(L.e=="revealAll"){r=[11,12,2];z=U.root.dm(U,!0)}if(L.e=="imgsize"||L.e=="rot"||L.e=="scl"){var dx=new c0;
if(L.e=="imgsize"){r=[11,10];dx.scale(L.CH/U.d,L.Ac/U.v)}else{dx.translate(-T,-k);if(L.e=="rot")dx.rotate(L.G);
if(L.e=="scl")dx.scale(L.G.x,L.G.y);dx.translate(T,k);r=L.z9}f5=c.I.BL(dx);s=this.bL(U,Y,!0,f5,P)}else if(L.e=="auto-align"){if(U.C.length<2){alert("Select two or more layers.");
return}var fq=[];for(var H=0;H<U.C.length;H++){var i9=U.N[U.C[H]];if(!i9.bB()&&i9.add.SoLd==null){alert("Unsupported layer selected.");
return}if(i9.rect.ue()){alert("Empty layer selected.");return}fq.push([i9.buffer,i9.rect])}var e8=c.e7.ur(fq,0);
if(e8==null){alert("No similarity found.");return}f5=e8[1];var S=U.C;U.C=U.C.slice(1);s=this.bL(U,Y,!1,e8.slice(1),P);
U.C=S;z=U.root.dm(U,!0);r=[2,10,1]}var fs=new _(0,0,U.d,U.v);if(!z.ue()&&(!z.cg(fs)||s!=null)){var bz=new hp(r,this);
bz.data={TU:fs,P0:z,a7$:U._Q,uH:p,LO:s,v8:f5,fM:W.yP.qz(U,z,fs,s!=null)};U.Sv(bz);this.Zm(bz.data,U)}};
W.yP.qz=function(L,C,U,E){if(L.Oy.length==0)return null;var Y=JSON.stringify(L.Oy),z=JSON.parse(Y);W.l1.a35(z,C,U,E);
z=JSON.stringify(z);return[Y,z]};W.yP.prototype.bL=function(L,C,U,E,Y,z){var r={N:[],pf:null,Jz:null};
if(U){for(var H=0;H<L.N.length;H++)r.N.push(H);for(var H=0;H<L.Jd.length;H++)r.N.push(-1-H);for(var H=0;
H<L.vI.length;H++)r.N.push(-1e3-H)}else r.N=L.C.slice(0);r.pf=W.o.AD(L,r.N,!0);W.o.Bg(L,C,r.N,r.pf,Y,E,null,!0,z);
r.Jz=W.o.AD(L,r.N,!0);return r};W.yP.prototype.Zm=function(L,C){if(L.uH)C._Q=L.uH;if(L.fM)C.Oy=JSON.parse(L.fM[1]);
if(L.LO){W.yP.sB(C,c.I.bm(L.v8));W.o.rq(C,L.LO.N,L.LO.Jz)}W.yP.h6(C,L.P0)};W.yP.prototype.Ic=function(L,C){if(L.a7$)C._Q=L.a7$;
if(L.fM)C.Oy=JSON.parse(L.fM[0]);var U=L.TU.clone();U.offset(-L.P0.x,-L.P0.y);W.yP.h6(C,U);if(L.G3)C.z.g.mP(L.G3);
C.uI();if(L.LO){var E=c.I.bm(L.v8).clone();E.G$();W.yP.sB(C,E);W.o.rq(C,L.LO.N,L.LO.pf)}};W.yP.sB=function(L,C){for(var H=0;
H<L.N.length;H++){var U=L.N[H];if(U.add.artb==null)continue;var E=c.a.kG(U.kg()).c;c.a.J(E,C,E);var Y=c.a.wh(E);
U.eJ(Y)}};W.yP.h6=function(L,C){L.d=C.d;L.v=C.v;var U=[];for(var H=0;H<L.N.length;H++)U.push(H);W.P4.j4(L,U,null,-C.x,-C.y);
for(var H=0;H<L.N.length;H++){L.N[H].cr(L)}L.uI();L.z.g.U6(0,0);if(L.t)L.t.rect.offset(-C.x,-C.y);for(var H=0;
H<2;H++)for(var E=0;E<L.Pr[H].length;E++)L.Pr[H][E]-=H==0?C.x:C.y;for(var H=0;H<L.vI.length;H++)L.vI[H].rect.offset(-C.x,-C.y)};
W.yP.prototype.oO=function(L,C,U,E,Y){if(L.bi=="commit"){this.E5(U,Y);this.disable(U,C,null,E)}else if(L.bi=="cancel"){this.disable(U,C,null,E)}var z=null,r=new _(0,0,U.d,U.v),p=this.FU.zh;
if(L.bi=="config"){this.FU=L.FU;p=this.FU.zh;if(this.FU.h6!=null)return;if(U==null)return;z=r;if(p.am==1){var T=p.x/p.y;
z.v=Math.round(z.d/T)}if(p.am==2){z.d=p.x;z.v=p.y}z.x=Math.round((U.d-z.d)/2);z.y=Math.round((U.v-z.v)/2)}if(L.bi=="cropby"){if(U==null)return;
var k=L.anf,z;if(k==0)z=U.root.dm(U,!0);if(k==1){if(U.C.length==0)alert("No layer is selected.");else{var P=U.root.cW(U.C[0]);
z=P.dm(U,!0)}}if(k==2){if(U.C.length==0)alert("No layer is selected.");else{z=c.TW(U.E0(),r,0);if(z.ue())z=r.clone()}}if(k==3){if(U.t!=null)z=U.t.rect;
else alert("There is no selection.")}}if(z&&z.ue())z=null;if(z!=null){this.E$=this.IM(z,p.am!=0);this.E$.pA(U,Y);
this.eo(C,B.E.l,{e:B.U.ik,m:this.id,Gw:!0})}};W.yP.prototype.E5=function(L,C){var U=this.E$.Bj(),E=c.a.wh(U),Y=this.aiV(L,U),z=!1,r=this.FU.zh,p=this.FU.h6,T=r.x,k=r.y,Q;
if(this.id==W.Q_&&r.am==2&&Y.X()!=T*k){Y=new _(Y.x,Y.y,T,k);z=!0}var P=c.I.O4(U,Y);P=c.I.G$(P);var b=c.I.tC(P),K=Math.atan2(P[3],P[0]);
if(Math.abs(K)>1e-9||!b||z||p)Q=this.bL(L,C,!0,P,1,E);var h=new hp(this.name,this),x=new _(0,0,L.d,L.v);
h.data={TU:x,P0:Y,LO:Q,v8:P,G3:L.z.g.clone(),fM:W.yP.qz(L,Y,x,!1)};L.Sv(h);this.Zm(h.data,L);this.track(W.yP.oR([E.x,E.y,E.d,E.v]))};
W.yP.prototype.aiV=function(L,C){var U=c.I.O4(C),E=c.I.tC(U),Y=c.I.bm(U),z=Y.Yt,r=Y.rv,p=Math.atan2(Y.O,Y.R);
Y.rotate(p);var T=new _(z,r,Y.R,Y.J2);if(!E){function k(i,H,D){var I=i[H]-i[D],m=i[H+1]-i[D+1];return Math.sqrt(I*I+m*m)}var P=k(C,0,2),b=k(C,4,6),Q=Math.max(P,b),K=k(C,2,4),h=k(C,6,0),x=Math.max(K,h),O=W.yP.ajE(C,L.d/2,L.v/2),y,v;
if(isNaN(O)||O==Infinity||O==-Infinity||Math.min(O,1/O)<.1)O=(P+b)/(K+h);if(Q/x>O){y=Q*1;v=y/O}else{v=x*1;
y=v*O}T.d=y;T.v=v}T.x=Math.round(T.x);T.y=Math.round(T.y);T.d=Math.round(T.d);T.v=Math.round(T.v);return T};
W.yP.ajE=function(L,C,U){var E=L[0]-C,Y=L[1]-U,z=L[2]-C,r=L[3]-U,p=L[6]-C,T=L[7]-U,k=L[4]-C,P=L[5]-U,b=((Y-P)*p-(E-k)*T+E*P-Y*k)/((r-P)*p-(z-k)*T+z*P-r*k),Q=((Y-P)*z-(E-k)*r+E*P-Y*k)/((T-P)*z-(p-k)*r+p*P-T*k),K=-((Q*T-Y)*(b*r-Y)+(Q*p-E)*(b*z-E))/((Q-1)*(b-1));
function h(O){return O*O}var x=Math.sqrt((h(b-1)+h(b*r-Y)/K+h(b*z-E)/K)/(h(Q-1)+h(Q*T-Y)/K+h(Q*p-E)/K));
if(b==1&&Q==1)x=Math.sqrt((h(r-Y)+h(z-E))/(h(T-Y)+h(p-E)));return x};W.yP.prototype.disable=function(L,C,U,E){if(L==null)return;
if(this.E$)this.E$.clear(L);this.E$=null;this.eo(C,B.E.l,{e:B.U.ik,m:this.id,Gw:!1})};W.yP.prototype.eo=function(L,C,U,E){var Y=new q(C,!0);
Y.data=U;if(E)Y.m=E;L.B(Y)};W.WB=function(){W.yP.call(this,[10,2],W.Q_,"tools/rcrop")};W.WB.prototype=new W.yP;
W.jl=function(){W.yP.call(this,[10,39],W.C_,"tools/pcrop")};W.jl.prototype=new W.yP;W.UI=function(){W.dl.call(this,[10,21],W.JG,"tools/dodge");
this.tH="dodge"};W.UI.prototype=new W.dl;W.UI.prototype.zI=function(L,C,U,E,Y){this.fu(L,U,E,Y,this.cY.expo/Math.PI);
if(this.G2==null)return;this.Ld(L)};W.UI.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);if(this.UD)this.GS(L,U,Y);
if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.gT=function(){W.dl.call(this,[10,3],W.$B,"tools/eraser");
this.tH="erase"};W.gT.prototype=new W.dl;W.gT.prototype.zI=function(L,C,U,E,Y){this.fu(L,U,E,Y,this.cY.flow);
if(this.G2==null)return;this.Ld(L)};W.gT.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);if(this.UD)this.GS(L,U,Y);
if(this.G2==null)return;if(!Y.X4)return;var z=this.CC(L,U,E,Y);this.Ld(L)};W.Cb=function(){W.dl.call(this,[10,45],W.a0_,"tools/beraser");
this.tH="ierase"};W.Cb.prototype=new W.dl;W.Cb.prototype.zI=function(L,C,U,E,Y){if(this.V4(E,C,Y))return;
this.fu(L,U,E,Y,this.cY.flow);if(this.G2==null)return;this.Ld(L)};W.Cb.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);
if(this.UD)this.GS(L,U,Y);if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.OE=function(){W.kd.call(this,[10,15],W.Y7,"tools/rselect");
this.XK="crosshair"};W.OE.prototype=new W.kd;W.OE.prototype.Rl=function(L,C,U,E){if(!E.X4||!this.xy)return;
var Y=this.dm(L,U,!0);L.K.yw=c.a.kG(Y);L.eP=!0;W.DJ.$y(E.x+10,E.y-10,Y,L,C)};W.OE.prototype.Zr=function(L,C,U,E){L.K.yw=null;
L.K.jB=[];L.eP=!0;this.finish(L,C,U,E)};W.OE.prototype.getSelection=function(L,C,U,E){if(this.AS.cg(this.vv)||!this.xy)return null;
var Y=this.dm(L,U,!0);if(Y.ue())return null;return W.kd.ee("Rctn",Y)};W.In=function(){W.kd.call(this,[10,4],W.ae6,"tools/eselect");
this.XK="crosshair"};W.In.prototype=new W.kd;W.In.prototype.Rl=function(L,C,U,E){if(!E.X4||!this.xy)return;
var Y=this.dm(L,U);L.K.yw=W.In.Lz(Y);L.eP=!0;W.DJ.$y(E.x+10,E.y-10,Y,L,C)};W.In.prototype.Zr=function(L,C,U,E){L.K.yw=null;
L.K.jB=[];L.eP=!0;this.finish(L,C,U,E)};W.In.prototype.getSelection=function(L,C,U,E){if(this.AS.cg(this.vv)||!this.xy)return null;
var Y=this.dm(L,U);if(!Y.nN(new _(0,0,L.d,L.v)))return null;return W.kd.ee("Elps",Y)};W.In.Lz=function(L){var C=L.x,U=L.y,E=L.x+L.d,Y=L.y+L.v,z=(C+E)/2,r=(U+Y)/2,p=(C-E)/2,T=(U-Y)/2,k=.5522848,P={c:[z,r-T],Z:["M","C","C","C","C"]};
P.c.push(z+k*p,r-T,z+p,r-k*T,z+p,r);P.c.push(z+p,r+k*T,z+k*p,r+T,z,r+T);P.c.push(z-k*p,r+T,z-p,r+k*T,z-p,r);
P.c.push(z-p,r-k*T,z-k*p,r-T,z,r-T);return P};W.Ra=function(){W.DJ.call(this,[10,5],W.y8,"tools/eyedropper");
this.j0=!1;this.qL=1};W.Ra.prototype=new W.DJ;W.Ra.prototype.gQ=function(L){return L.X4};W.Ra.prototype.GV=function(L,C,U,E,Y){if(L.e=="pickhere")this.V7(U,C,Y,E,L.alS)};
W.Ra.prototype.zI=function(L,C,U,E,Y){this.j0=!0;this.V7(L,C,U,E,Y)};W.Ra.prototype.Yh=function(L,C,U,E,Y){if(this.j0)this.V7(L,C,U,E,Y)};
W.Ra.prototype.bM=function(L,C,U,E,Y){this.j0=!1};W.Ra.prototype.V7=function(L,C,U,E,Y){var z=W.Ra.Vy(L,Y,this.qL),r=new q(B.E.l);
r.data={e:B.U.MP,wm:c_.GM,ev:0,G:z};C.B(r)};W.Ra.Vy=function(L,C,U){var E=L.z.sQ(C.x,C.y),Y=Math.floor(E.x),z=Math.floor(E.y),r=(U-1)/2,p=Math.max(0,Y-r),T=Math.max(0,z-r),k=Math.min(L.d,Y+r+1),P=Math.min(L.v,z+r+1),b=(k-p)*(P-T),Q=L.E0(),K=0,h=0,x=0;
for(var Y=p;Y<k;Y++)for(var z=T;z<P;z++){var H=4*(z*L.d+Y);K+=Q[H];h+=Q[H+1];x+=Q[H+2]}K=Math.round(K/b);
h=Math.round(h/b);x=Math.round(x/b);return K<<16|h<<8|x};W.Ra.prototype.oO=function(L){this.qL=L.qL};
W.Fe=function(){W.DJ.call(this,[10,6],W.aml,"tools/gradient");this.cY={W:JSON.parse(gM.SH.no).v,mV:"Lnr",ks:!1,a4Y:!1,ah7:"norm",u8:1};
this.A1=!1;this.K5=null};W.Fe.prototype=new W.DJ;W.Fe.prototype.enable=function(L,C,U,E){var Y=new q(B.E.l,!0);
Y.data={e:B.U.lx,aZ:"default"};C.B(Y)};W.Fe.prototype.oO=function(L){this.cY=L.wm};W.Fe.prototype.zI=function(L,C,U,E,Y){if(!L.qk())return;
this.K5=L.z.sQ(Y.x,Y.y);this.K5=W.P4.wD(L,this.K5,U);this.A1=!0};W.Fe.prototype.Yh=function(L,C,U,E,Y){if(!this.A1)return;
var z=L.z.sQ(Y.x,Y.y);z=W.P4.wD(L,z,U);if(E.q(G.PS))z=W.Fe.hZ(this.K5,z);L.K.yw={c:[this.K5.x,this.K5.y,z.x,z.y],Z:["M","L"]};
L.K.yI=[this.K5.x,this.K5.y,z.x,z.y];L.eP=!0};W.Fe.prototype.bM=function(L,C,U,E,Y){if(!this.A1)return;
var z=L.N[L.C[0]],r=L.z.sQ(Y.x,Y.y);r=W.P4.wD(L,r,U);if(E.q(G.PS))r=W.Fe.hZ(this.K5,r);var p=r.AE(this.K5),T=hZ.YK(this.K5,r,.5),k=Math.atan2(p.y,p.x),P=hZ.sl(this.K5,r),b=Math.sin(k),Q=Math.cos(k);
if(P>2){var K;if(L.t)K=L.t.rect;else K=new _(0,0,L.d,L.v);var h=c.F(K.X()*4),x=this.cY,O=x.mV;if(O!="Lnr"){P*=2;
T=this.K5}c.W.Rv(x.W,h,K,[Q*1/P,b*1/P,-b*1/P,Q*1/P],T.x,T.y,x.ks,gM.W.types.indexOf(O),U.yx,U.ho,null,x.a4Y);
var y=Math.round(x.u8*256),v=h.length;if(y!=256)for(var H=0;H<v;H+=4)h[H+3]=h[H+3]*y>>>8;var i=new q(B.E.A);
i.m=W.$B;i.data={e:"fillBMP",CK:h,g_:x.ah7,z9:this.name};C.B(i)}L.K.yw=null;L.K.yI=[];L.eP=!0;this.A1=!1};
W.Fe.hZ=function(L,C){if(L.cg(C))return L;var U=C.x-L.x,E=C.y-L.y,Y=Math.abs(U),z=Math.abs(E);if(Y>z)z=Y/2>z?0:Y;
if(z>Y)Y=z/2>Y?0:z;Y=U>0?Y:-Y;z=E>0?z:-z;var r=Math.sqrt(U*U+E*E)/Math.sqrt(Y*Y+z*z);return new hZ(L.x+Y*r,L.y+z*r)};
W.Fe.BU=function(L,C,U,E,Y,z,r){if(r==null)r=B.w("canvas","");var p=r.getContext("2d");r.width=C;r.height=U;
var T=new _(0,0,C,U),k=c.F(C*U*4);c.Wg(k,C,U,4);var P=Math.sin(E),b=Math.cos(E),Q=c.F(C*U*4);c.W.Rv(L,Q,T,[b*1/C,P*1/C,-P*1/U,b*1/U],C/2,U/2,!1,0,Y,z);
c.Q.Kj("norm",Q,T,k,T,T,1);var K=p.getImageData(0,0,C,U);c.hL(k,K.data);p.putImageData(K,0,0);return r.toDataURL()};
W.Fe.amD=function(L,C,U){var E=JSON.parse(JSON.stringify(L));for(var H=0;H<E.Clrs.v.length;H++){var Y=E.Clrs.v[H].v,z=Y.Type.v.Clry;
if(z=="UsrS")continue;var r=z=="FrgC"?C:U;Y.Type.v.Clry="UsrS";Y.Clr={t:"Objc",v:c.W._b({h:r>>16&255,P:r>>8&255,O:r&255})}}return E};
W.gP=function(){W.DJ.call(this,[10,7],W.m$,"tools/hand");this.bg=new hZ(0,0);this.Md=null};W.gP.prototype=new W.DJ;
W.gP.prototype.GV=function(L,C,U,E,Y){var z=L.e;if(z=="setcls"){U.z.NT=L.NT;U.eP=!0;U.dD=!0}if(z=="scroll"&&!E.q(G.Lv)){if(E.q(G.DM))W.gP.iq(U,U.z.g.x-L.Vm.y,U.z.g.y-L.Vm.x);
else W.gP.iq(U,U.z.g.x-L.Vm.x,U.z.g.y-L.Vm.y)}};W.gP.prototype.enable=function(L,C,U,E){this.Md=null;
var Y=new q(B.E.l,!0);Y.data={e:B.U.lx,aZ:"grab"};C.B(Y)};W.gP.prototype.zI=function(L,C,U,E,Y){this.Md=L.z.g.clone();
this.bg.U6(Y.x,Y.y)};W.gP.prototype.Yh=function(L,C,U,E,Y){if(!Y.X4)return;if(this.Md==null)this.zI(L,C,U,E,Y);
W.gP.iq(L,this.Md.x+(Y.x-this.bg.x),this.Md.y+(Y.y-this.bg.y))};W.gP.prototype.bM=function(L,C,U,E,Y){this.Md=null};
W.gP.iq=function(L,C,U){var E=L.z.S;if(L.d*E<L.z.e4.d&&L.v*E<L.z.e4.v)L.z.g.U6(0,0);else{L.z.g.x=C;L.z.g.y=U}L.dD=!0};
W.GB=function(){W.DJ.call(this,[10,47],W.acp,"tools/rview");this.bg=new hZ(0,0);this.a2=null;this.aiX=null};
W.GB.prototype=new W.DJ;W.GB.prototype.enable=function(L,C,U,E){this.Md=null;var Y=new q(B.E.l,!0);Y.data={e:B.U.lx,aZ:"grab"};
C.B(Y);if(L)this.xH(L,C)};W.GB.prototype.disable=function(L,C,U,E,Y){if(L)this.xH(L,C)};W.GB.prototype.eK=function(L,C,U,E){if(L)this.xH(L,C)};
W.GB.prototype.zI=function(L,C,U,E,Y){this.bg.U6(Y.x,Y.y);var z=L.z;this.a2=z.sQ(z.e4.d/2,z.e4.v/2);
this.aiX=z.WF()};W.GB.prototype.Yh=function(L,C,U,E,Y){if(!Y.X4)return;var z=L.z,r=this.a2,p=this.bg,T=new hZ(z.e4.d/2,z.e4.v/2),k=Math.atan2(Y.y-T.y,Y.x-T.x),P=Math.atan2(p.y-T.y,p.x-T.x);
this.jO(L,C,this.aiX.clone(),r,k-P)};W.GB.prototype.oO=function(L,C,U,E){this.jO(U,C,null,null,L.f2-U.z.NN);
U.z.NN=L.f2};W.GB.prototype.jO=function(L,C,U,E,Y){var z=L.z;if(U==null)U=z.WF();if(E==null)E=z.sQ(z.e4.d/2,z.e4.v/2);
U.translate(-E.x,-E.y);U.rotate(Y);U.translate(E.x,E.y);z.O0(U);if(L.d*z.S<z.e4.d&&L.v*z.S<z.e4.v)z.g.U6(0,0);
L.eP=!0;this.xH(L,C)};W.GB.prototype.xH=function(L,C){var U=new q(B.E.l,!0);U.data={e:B.U.ik,m:this.id,f2:L.z.NN};
C.B(U)};W.Tc=function(){W.LN.call(this,[10,25],W.uE,"tools/hbrush")};W.Tc.prototype=new W.LN("");W.Tc.prototype.bM=function(L,C,U,E,Y){if(this.G2==null)return;
this.oA(L,"heal",this.G2.fS(),this.G2.dm(),this.G2.VO());this.s(L,this.G2.VO());W.dl.prototype.bM.call(this,L,C,U,E,Y);
if(!this.cY.algnd)this.g=null};W.it=function(){W.DJ.call(this,[10,8],W.Ey,"tools/htype");this.nQ=[];
this._u=null;this.us=null;this.caller=null;this.Ed=1;this.Q2=null;this.a4l=0;this.Wy=0;this.a7s=null;
this.EZ=null;this.DO=null;this.ti=null;this.cD=null;this.jM=null;this.ak0=null;this.l4=null;this.E$=null;
this.G4=null;this.ab1=null;this.WI=!1;this.rj=!1;this.Dn=!1;this.IW=null;this.Wu=null;this.ae5=null;
this.Wp=!1;this.Xt=!1;this.oT=-1;this.xD=-1;this.hV=document.createElement("textarea");this.hV.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.hV.addEventListener("input",this.Io.bind(this),!1);this.hV.addEventListener("keydown",this.a74.bind(this),!1)};
W.it.prototype=new W.DJ;W.it.prototype.gQ=function(L){return L.X4};W.it.prototype.xv=function(L,C,U,E){if(this.DO!=null)return;
this.caller=C;this._u=L;var Y=this.kS(L);if(Y.length!=0){var z=null,r=[],p=[];for(var H=0;H<Y.length;
H++){var T=L.N[Y[H]],k=T.add.TySh,P=0,b=b5.xY(k.Se).length-2,Q=b5.L3(k.Se,P,b);b5.l5(Q,W.o.ia(k.J));
if(Q.LI.Font!=null)Q.LI.Font=Q.Oe[Q.LI.Font].Name;z=Q.Oe;r.push(Q.LI);p.push(Q.s6)}var Q={Oe:z,LI:b5.O1(r),s6:b5.O1(p)};
if(Q.LI.Font)b5.yk(Q,Q.LI.Font);this.oF(C,Q,k)}};W.it.prototype.kS=function(L){var C=[];for(var H=0;
H<L.C.length;H++)if(L.N[L.C[H]]&&L.N[L.C[H]].add.TySh)C.push(L.C[H]);return C};W.it.prototype.GV=function(L,C,U,E,Y){if(L.e=="insertText"&&this.DO){var z=this.hV,r=z.value,p=z.selectionStart,T=z.selectionEnd;
z.value=r.slice(0,p)+L.G+r.slice(T);z.selectionStart=z.selectionEnd=p+L.G.length;this.Io(null);z.focus()}if(L.e=="updateStyles"){if(this.DO==null){var k=this.kS(U),P=!1;
if(k.length!=0){this.eg(U,C,Y,k);for(var H=0;H<k.length;H++){var b=U.N[k[H]],Q=b.add.TySh;b5.Nc(Q,this.Ed);
this.DO=b;var K=b5.xY(Q.Se);this.oT=0;this.xD=K.length-1;b5.Em(Q.Se,this.oT,this.xD,this.xq(Y,Q));var h=this.RS(U,Y);
if(h==!1)P=!0}if(P){this.Wp=!0;return}this.cB(U,C)}return}this._j(Y)}if(L.e.startsWith("warp")){var x=this.Xt;
if(L.e=="warp"||L.e=="warpCancel"){if(L.e=="warp")this.DO.add.TySh.DN=L.h2;else this.DO.add.TySh.DN=this.ak0;
var U=this._u;this.RS(U,Y);if(!x)this._O(U)}if(L.e!="warp")this.hV.focus();if((L.e=="warpConfirm"||L.e=="warpCancel")&&x){this.Xt=!1;
if(L.e=="warpConfirm")this.cB(U,C);else this.ZS(U,C)}}if(L.e=="editCurr"){if(Y.Yd!=W.Ey){this.Q2=Y.Yd;
var O=new q(B.E.l,!0);O.data={e:B.U.ID,m:W.Ey};C.B(O)}if(this.DO!=null)this.disable(U,C,Y,E);this._u=U;
this.us=Y;this.caller=C;this.eg(U,C,Y,[L.Z7]);var K=b5.xY(this.DO.add.TySh.Se);this.oT=0;this.xD=K.length-1;
this._O(U);this.n$();this.hV.focus()}if(L.e=="switchPntPrgr"){var b=U.N[U.C[0]],Q=b.add.TySh,y=Q.J.ia(),v=JSON.parse(JSON.stringify(Q.Se)),i=b5.S8(v),D=i==1?b5.qi(v):[0,0,Math.round(b.rect.d*1.05/y),Math.round(b.rect.v*1.25/y)],I=b5.L3(v,0,0),m=I.Oe[I.LI.Font].Name,f=Y.tW.y1(m),A=[0,D[2],D[2]/2][I.s6.Justification%3],d=f?hX.m3(f,m)*(1/f.head.unitsPerEm)*I.LI.FontSize:I.LI.FontSize*.8;
b5.B$(v,1-i);if(i==0){A=-A;d=-d;b5.If(v,[0,0,D[2],D[3]])}var g=new c0(1,0,0,1,A,d);g.concat(Q.J);this.GV({mD:U.C[0],e:"newED",wL:v,J:g},C,U,E,Y)}if(L.e=="newED"){var b=U.N[L.mD],Q=b.add.TySh,X=this.I8(U,[L.mD]);
Q.Se=L.wL;if(L.J)Q.J=L.J;var n=new hX(Q.Se,Y.tW),R=bk.wV(n,Q);b.rect=R._;b.buffer=R.eB;b.s();U.s();var l=new hp(this.name,this);
l.data={YL:X,Xn:this.I8(U,[L.mD])};U.Sv(l)}if(L.e=="fromAction"){var w=L.jX.V5.Usng.v,V=w.TxtC.v,F=[];
for(var H=0;H<2;H++){var Z=V[H==0?"Hrzn":"Vrtc"].v,M=Z.val;if(Z.type=="#Prc")M=(H==0?U.d:U.v)*(M/100);
F[H]=M}this.kk(U,C,Y,E,U.z.Q6(F[0],F[1]));var b=U.N[U.C[0]],Q=b.add.TySh,a=Q.Se,r=b5.xY(a);b5.PB(a,0,r.length-1);
b5.X$(a,0,w.Txt.v.replace(/\r/g,"\n"));for(var i=0;i<2;i++){var e=w[i==0?"Txtt":"paragraphStyleRange"].v;
for(var H=0;H<e.length;H++){var N=e[H].v,p=N.From.v,T=N.T.v-1;N=N[i==0?"TxtS":"paragraphStyle"].v;var J=b5.L3(a,p,T),f5=i==0?J.LI:J.s6;
for(var dx in N){var fq=N[dx].v;if(dx=="Sz")f5.FontSize=Math.round(fq.val);if(dx=="fontPostScriptName")b5.yk(J,fq);
if(dx=="Algn")f5.Justification={Cntr:2}[fq.Alg]}b5.Em(a,p,T,J)}}var n=new hX(Q.Se,Y.tW),R=bk.wV(n,Q);
b.rect=R._;b.buffer=R.eB;b.s();U.s();this.cB(U,C)}};W.it.prototype._j=function(L){var C=Math.min(this.oT,this.xD),U=Math.max(this.oT,this.xD),E=this.DO.add.TySh;
b5.Nc(E,this.Ed);b5.Em(E.Se,C,U-1,this.xq(L,E));var Y=this._u,z=this.RS(Y,L);if(z)this._O(Y);if(document.activeElement.tagName.toLowerCase()!="input")this.hV.focus()};
W.it.prototype.Gs=function(L){return this.nQ.indexOf(L)!=-1};W.it.prototype.enable=function(L,C,U,E){var Y=this.hV;
if(!B.DW(Y))C.j.appendChild(Y);this.l4="default";this.cl(C)};W.it.prototype.sH=function(){return this.DO!=null};
W.it.gV=function(L,C){for(var H=L.N.length-1;H>=0;H--){var U=L.N[H];if(U.add.TySh&&U.rect.qh(C)&&L.k9(H)){var E=U.zm(2)||U.zm(31);
return E?-2:H}}return-1};W.it.prototype.zI=function(L,C,U,E,Y){this._u=L;this.us=U;this.caller=C;var z=L.z.sQ(Y.x,Y.y),r=this.DO==null;
if(r){var p=W.it.gV(L,z);if(p==-2){alert(gS.get([6,57,0]));return}if(p>=0){if(!bk.br(L.N[p].add.TySh,U.tW)){alert("Fonts not loaded yet");
return}this.eg(L,C,U,[p])}else{this.Dn=!0;this.IW=Y;return}}var T=r?-1:b5.S8(this.DO.add.TySh.Se),k=this.G4?this.G4:this.E$;
if(k&&k.zI(L,U,E,z)&&c.h2.D3(this.DO.add.TySh.DN)||!r&&c.a.dV(z,this.DO.rect)>20/L.z.S&&(T==0||T==1)){this.WI=!0;
this.Wu=z;this.ae5=this.DO.add.TySh.J.clone();if(this.oT==-1&&this.xD==-1)this.oT=this.xD=this.bA(z)}else{if(this.cD==null){alert("Fonts not loaded yet");
return}this.rj=!0;this.oT=this.xD=this.bA(z);var P=Date.now();if(P-this.a4l>300)this.Wy=0;this.Wy++;
this.a4l=P;if(this.Wy==2)this.anT();if(this.Wy==3)this.aa1();if(this.Wy>1){this.rj=!1}}this.n$();this._O(L)};
W.it.prototype.eg=function(L,C,U,E){var Y=L.N[E[0]];this.DO=Y;this.eo(C,B.E.l,{e:B.U.ik,m:this.id,bi:"showactive"});
this.ti=E;L.C=E.slice(0);L.LM();L.fP=!0;this.jM=this.I8(L,E);this.Wd(Y.add.TySh);this.RS(L,U)};W.it.prototype.Wd=function(L){if(b5.S8(L.Se)!=1)return;
var C=b5.qi(L.Se);C=new _(0,0,C[2]-C[0],C[3]-C[1]);var U=[C.x,C.y,C.x+C.d,C.y,C.x+C.d,C.y+C.v,C.x,C.y+C.v];
c.a.J(U,L.J,U);this.E$=new hV(U,!1,!1,!1,!0)};W.it.prototype.anT=function(){var L=b5.xY(this.DO.add.TySh.Se);
this.oT=this.Y6(L,this.oT);this.xD=this.Lk(L,this.oT)};W.it.prototype.Y6=function(L,C){var U=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",E=[];
for(var H=0;H<U.length;H++)E.push(U.charAt(H));var Y=E.indexOf(L[C])==-1?!0:!1;for(var H=C-1;H>=0;H--)if(E.indexOf(L.charAt(H))!=-1==Y)return H+1;
return 0};W.it.prototype.Lk=function(L,C){var U=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",E=[];for(var H=0;
H<U.length;H++)E.push(U.charAt(H));var Y=E.indexOf(L[C])==-1?!0:!1;for(var H=C+1;H<L.length;H++)if(E.indexOf(L.charAt(H))!=-1==Y)return H;
return L.length-1};W.it.prototype.aa1=function(){var L=this.cD.ain(this.oT);this.oT=L[0];this.xD=L[1]};
W.it.prototype.cl=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.lx,aZ:this.l4};L.B(C)};W.it.prototype.Yh=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y),r=this.DO;
if(!Y.X4){var p="default",T=this.E$,k=this.G4?this.G4:T;if(k&&c.h2.D3(r.add.TySh.DN)){var P=k.J8(z,L.z.S);
if(P)p=P;else if(k==T&&T.b5(z))p="text"}else if(r&&c.a.dV(z,r.rect)>20/L.z.S)p="move";else if(W.it.gV(L,z)>=0)p="text";
if(p!=this.l4){this.l4=p;this.cl(C)}}var b=this.IW;if(this.Dn&&Math.min(Y.x-b.x,Y.y-b.y)>4/L.z.S){this.Dn=!1;
this.kk(L,C,U,E,Y);r=this.DO;this.WI=!0;this.E$=new hV(null,!1,!1,!1,!0);var Q=L.z.sQ(this.IW.x,this.IW.y);
Q.x=Math.round(Q.x);Q.y=Math.round(Q.y);this.E$.zI(L,U,E,Q)}if(this.WI){var K=r.add.TySh;if(this.G4){this.G4.Yh(L,U,E,z);
var h=c.I.bm(c.I.O4(this.G4.Bj(),this.ab1));K.J=h;this.RS(L,U);b5.Dv(K)}else if(this.E$){this.E$.Yh(L,U,E,z);
var x=K.J.clone(),O=Math.atan2(x.O,x.R);x.rotate(O);var h=c.I.bm(c.I.O4(this.E$.Bj())),y=Math.atan2(h.O,h.R);
h.rotate(y);if(!isNaN(h.R)&&h.R*h.J2-h.O*h.Z9!=0){var v=new _(0,0,h.R/x.R,h.J2/x.J2),i=Math.round(v.d),D=Math.round(v.v),I=K.Se.Curve;
if(I){var m=b5.qi(K.Se),f=new c0(i/m[2],0,0,D/m[3],0,0);c.a.J(I.Points,f,I.Points);b5.Dv(K)}b5.If(K.Se,[0,0,i,D]);
K.J=c.I.bm(c.I.O4(this.E$.Bj(),v));this.RS(L,U);b5.Dv(K)}}else{var A=z.x-this.Wu.x,d=z.y-this.Wu.y;K.J=this.ae5.clone();
var g=new hZ(K.J.Yt+A,K.J.rv+d);g=W.P4.wD(L,g,U);K.J.Yt=g.x;K.J.rv=g.y;this.RS(L,U)}}if(this.rj)this.xD=this.bA(z);
if(this.WI||this.rj)this._O(L)};W.it.prototype.kk=function(L,C,U,E,Y){var z=L.zG(),r=z[0],p=z[1],T=L.wP();
T.add.lnsr="rend";var k=L.N.slice(0);T.I_("Text layer "+k.length);this.DO=T;var P=L.C.length==0?L.N.length-1:L.C[L.C.length-1],b=P+1;
if(k[P].add.lsct==fI.Qr)b--;this.jM={Jm:k.slice(0),e5:L.C.slice(0)};k.splice(b,0,T);L.C=[b];this.oT=this.xD=0;
L.o2(k);this.jM.f5=k.slice(0);this.jM.bx=L.C.slice(0);this.eo(C,B.E.l,{e:B.U.ik,m:this.id,bi:"showactive"});
var Q=L.z.sQ(Y.x,Y.y);T.add.TySh=b5.Es(Q.x,Q.y,U.Az);var K=T.add.TySh,h=K.Se;b5.Nc(K,this.Ed);if(Y.X4)b5.B$(h,1);
else{b5.B$(h,0);var x=r[p.pop()],O=x?x.add.vmsk:null;if(O){O=O.clone();var y=O.n,i,D;for(var H=0;H<y.length;
H++)if(y[H].ZZ!=null)y[H].ZZ=0;var v=4*B.M()/L.z.S;i=c.Y.gW(O.n,Q,!0,v);if(i.Oi==-1)i=c.Y.gW(O.n,Q);
if(i.Oi!=-1){b5.B$(h,1);var I=c.Y.Jt(y,i.Oi),m=c.Y.Hb(y,i.Oi)-1;y=O.n=y.slice(0,2).concat(y.slice(I,I+m+1));
O.C=[];K.add={vmsk:O,vogk:o.Gg(y)};h.Curve={};b5.Zp(K);if(i.$Y!=null){var f=hX.rP(h.Curve);c.a.J(f[0],K.J,f[0]);
var A=c.a.Mv(f[0],Q.x,Q.y),d=U.Az.s6.Justification;if(d==2||d==5){var g=(f[2][A]+f[3]*.5)%f[3];A=hX.pq(g,f[2])}var X=f[1][A];
X=X%m;O.Pw=[X,X];b5.Zp(K)}else this.Wd(K)}}}return T};W.it.prototype.bM=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y),r=this.Dn;
if(this.Dn){this.Dn=!1;this.kk(L,C,U,E,Y);this.rj=!0}if(this.WI||this.rj){this._O(L);this.n$();if(r)this._j(U)}if(this.WI&&this.E$)this.E$.bM(L,U,E,z);
this.WI=this.rj=!1;this.VH(L,U,E);this.hV.focus()};W.it.prototype.n$=function(){var L=this.DO.add.TySh,C=Math.min(this.oT,this.xD),U=Math.max(this.oT,this.xD),E,Y;
if(C==U){var z=b5.xY(L.Se);if(C==0||z.charAt(C-1)=="\n")E=Y=C;else E=Y=C-1}else{E=C;Y=U-1}var r=b5.L3(L.Se,E,Y);
b5.l5(r,W.o.ia(L.J));this.oF(this.caller,r,L)};W.it.prototype.oF=function(L,C,U){this.eo(L,B.E.l,{e:B.U.MP,wm:c_.NW,Az:C});
var E=this.Ed=b5.Fx(U);this.eo(this.caller,B.E.l,{e:B.U.ik,m:this.id,bi:"changeAA",oq:E})};W.it.prototype.fj=function(L,C,U,E){if(E.q(G.ox))this.ZS(L,C);
var Y=this.DO;if(Y)if(this.G4==null&&E.q(G.DM)){var z=Y.add.TySh,r=b5.S8(z.Se),p;if(r==1){p=b5.qi(z.Se);
p=new _(0,0,p[2]-p[0],p[3]-p[1])}else p=this.cD.Cx();var T=[p.x,p.y,p.x+p.d,p.y,p.x+p.d,p.y+p.v,p.x,p.y+p.v];
c.a.J(T,z.J,T);this.G4=new hV(T,!0,!0,!1,!1);this.ab1=p;this._O(this._u)}else this.VH(L,U,E)};W.it.prototype.VH=function(L,C,U){var E=this.DO;
if(E&&!this.WI&&this.G4!=null&&!U.q(G.DM)){this.G4.bM(L,C,U,null);this.G4=null;this.Wd(E.add.TySh);this._O(this._u)}};
W.it.prototype.disable=function(L,C,U,E){var Y=this.DO;this.cB(L,C)};W.it.prototype.oO=function(L,C,U,E,Y){if(this.Xt)return;
if(L.bi=="commit")this.cB(U,C);if(L.bi=="cancel")this.ZS(U,C);if(L.bi=="changeAA"){this.Ed=L.oq;if(U!=null)this.GV({e:"updateStyles"},C,U,E,Y)}if(L.bi=="showwarp"){if(U==null)return;
if(this.DO==null){var z=U.N[U.C[0]],r=z.add.TySh;if(r==null)return;this.eg(U,C,Y,[U.C[0]]);this.hV.focus();
this.Xt=!0}this.ak0=this.DO.add.TySh.DN;var p=new q(B.E.l,!0);p.data={e:B.U.Q1,k5:"textwarp"};C.B(p)}};
W.it.prototype.hU=function(L,C){if(C!=c_.AO)return;if(this.Wp){this.Wp=!1;var U=this._u,E=this.ti;for(var H=0;
H<E.length;H++){this.DO=U.N[E[H]];this.RS(U,L)}this.cB(U,this.caller);return}if(this.DO)this._j(L)};
W.it.prototype.xq=function(L,C){var U=JSON.parse(JSON.stringify(L.Az));b5.l5(U,1/W.o.ia(C.J));return U};
W.it.prototype.Zm=function(L,C){if(L.YL!=null)this.ff(C,L.Xn);else this.IU(C,L.f5,L.bx)};W.it.prototype.Ic=function(L,C){if(L.YL!=null)this.ff(C,L.YL);
else this.IU(C,L.Jm,L.e5)};W.it.prototype.ff=function(L,C){for(var H=0;H<C.length;H++){var U=C[H],E=U.mD,Y=L.N[E];
Y.buffer=U.JL;Y.rect=U._.clone();Y.s();var z=Y.add.TySh;z.DN=U.h2;z.uv=U.uv.clone();z.J=U.J.clone();
z.Se=JSON.parse(JSON.stringify(U.Se));Y.n7()}L.s()};W.it.prototype.I8=function(L,C){var U=[];for(var H=0;
H<C.length;H++){var E=C[H],Y=L.N[E],z=Y.add.TySh;U.push({mD:E,J:z.J.clone(),h2:JSON.parse(JSON.stringify(z.DN)),uv:z.uv.clone(),Se:JSON.parse(JSON.stringify(z.Se)),JL:Y.buffer.slice(0),_:Y.rect.clone()})}return U};
W.it.prototype.IU=function(L,C,U){L.C=U;L.o2(C);L.s();L.hK=!0};W.it.prototype.RS=function(L,C,U){if(U==null)U=!1;
var E=this.DO.add.TySh;if(!bk.br(E,C.tW))return!1;this.cD=new hX(E.Se,C.tW);if(!U){var Y=b5.xY(E.Se);
this.hV.value=Y.slice(0,Y.length-1)}var z=bk.wV(this.cD,E);if(c.h2.D3(E.DN))E.uv=new _;else{if(b5.S8(E.Se)==1){var r=b5.qi(E.Se),u=z.uv.y;
E.uv=new _(0,u,r[2]-r[0],r[3]-r[1]-u)}else{E.uv=z.uv}}var p=this.DO.rect;this.DO.rect=z._;this.DO.buffer=z.eB;
this.DO.s();L.oQ();L.s(L.root.kT(z._.EU(p),L,L.N.indexOf(this.DO)));return!0};W.it.prototype.Io=function(L){if(this.DO==null||this.Xt)return;
var C=this.hV.selectionStart,U=this.DO.add.TySh,E=b5.xY(U.Se),Y=this.hV.value+"\n",z=Math.min(this.oT,this.xD),r=Math.max(this.oT,this.xD),b=!1;
this.oT=Math.min(C,z);if(Y.length-C<E.length-this.xD)this.xD=E.length-Y.length+C;if(E!=Y){while(this.oT>0&&E.charAt(this.oT-1)!=Y.charAt(this.oT-1))this.oT--}var p=E.substring(0,this.oT),T=E.substring(this.xD,E.length),k=Y.substring(this.oT,Y.length-T.length);
b5.PB(U.Se,this.oT,this.xD);b5.X$(U.Se,this.oT,k);var P=this.xq(this.us,U),Q=-1,K=Array.from(k);for(var H=0;
H<K.length;H++)Q=Math.max(Q,K[H].codePointAt(0));if(Q!=-1&&Q>128&&P.LI.Font!=null){var h=P.Oe[P.LI.Font].Name,x=this.us.tW.Ng(Q,h,P.Oe);
if(h!=x){b5.yk(P,x);b=!0}}if(this.EZ!=null&&k==this.EZ){var O=JSON.parse(this.a7s);P.LI=O.LI;P.Oe=O.Oe;
b=!0}b5.Em(U.Se,this.oT,this.oT+k.length-1,P);this.oT=this.xD=p.length+k.length;var y=this._u,v=this.RS(y,this.us,!0);
if(v)this._O(y,!0);if(b)this.n$()};W.it.prototype.a74=function(L){if(this.DO==null||this.Xt)return;if(this.DO==null)return;
var C=G,U=0,E=0,y=!1;if(C.IX(L.code,C.$G))U=1;if(C.IX(L.code,C.vl))U=-1;if(C.IX(L.code,C.Bz))E=-1;if(C.IX(L.code,C.oY))E=1;
var Y=L.ctrlKey||L.metaKey,z=C.IX(L.code,G.afX),r=C.IX(L.code,G.agj);if(C.IX(L.code,G.CT)&&Y){this.cB(this._u,this.caller);
return}if(C.IX(L.code,G.LU)){L.preventDefault();var p=this.hV,T=p.value,k=p.selectionStart,P=p.selectionEnd;
p.value=T.substring(0,k)+"\t"+T.substring(P);p.selectionStart=p.selectionEnd=k+1;this.Io(null);return}if((C.IX(L.code,C.Hd)||C.IX(L.code,C.Ze))&&Y){var b=this.oT,Q=this.xD;
if(b>Q){var K=b;b=Q;Q=K}var h=this.DO.add.TySh,x=b5.xY(h.Se);if(b!=Q){this.EZ=x.slice(b,Q);this.a7s=JSON.stringify(this.us.Az)}}var O=b5.xY(this.DO.add.TySh.Se);
if(U!=0||E!=0||z||r){L.preventDefault();var v=this.oT;if(U!=0){if(Y&&U==-1)v=this.Y6(O,this.oT-1);else if(Y&&U==1)v=this.Lk(O,this.oT);
else{var p=this.hV,T=p.value;v=this.oT+U;if(v!=0&&T.codePointAt(v-1)>65535)v+=U}}else if(E!=0){var i=this.cD.$U(this.oT);
if(E==-1&&i.O7==0)v=0;else if(E==1&&i.O7==this.cD.a04()-1)v=99999999999;else v=this.cD.G0(new hZ(i._.x+i._.d/2,0),i.O7+E)}else if(z){var D=this.oT-1;
while(D>0&&O.charCodeAt(D)!=10)D--;v=D==0?0:D+1}else if(r){var D=this.oT;while(D<O.length-1&&O.charCodeAt(D)!=10)D++;
v=D}v=Math.max(0,Math.min(O.length-1,v));if(L.shiftKey)this.oT=v;else this.oT=this.xD=v;y=!0}if(C.IX(L.code,G.U)&&Y){this.oT=0;
this.xD=O.length-1;y=!0}if(y){this.n$();this._O(this._u)}};W.it.a2H=function(L,C){var U=L.length;if(U!=C.length)return!1;
for(var H=0;H<U;H++)if(L[H].mD!=C[H].mD)return!1;return!0};W.it.prototype.cB=function(L,C){if(this.DO==null)return;
this.DO.n7();var U=this.jM;if(U instanceof Array){var E=this.I8(L,this.ti),Y=L.bQ();if(Y!=null&&Y.m==this&&Y.data.YL&&W.it.a2H(Y.data.YL,U))Y.data.Xn=E;
else{var z=new hp(this.name,this);z.data={YL:U,Xn:E};L.Sv(z)}}else{var z=new hp(this.name,this);z.data={Jm:U.Jm,f5:U.f5,e5:U.e5,bx:U.bx};
L.Sv(z)}this.escape(L,C)};W.it.prototype.ZS=function(L,C){if(this.DO==null)return;if(this.jM instanceof Array){this.ff(L,this.jM);
if(this.DO)b5.Dv(this.DO.add.TySh)}else{L.C=this.jM.e5;L.o2(this.jM.Jm)}L.s();this.escape(L,C)};W.it.prototype.escape=function(L,C){this.DO=null;
this.ti=null;this.cD=null;this.E$=null;this.hV.blur();L.K.yw=null;L.K.R9=null;L.K.yI=[];L.eP=!0;this.WI=!1;
this.rj=!1;this.oT=this.xD=-1;this.eo(C,B.E.l,{e:B.U.ik,m:this.id,bi:"hideactive"});if(this.Q2){var U=new q(B.E.l,!0);
U.data={e:B.U.ID,m:this.Q2};C.B(U);this.Q2=null}};W.it.prototype.eo=function(L,C,U,E){var Y=new q(C,!0);
Y.data=U;if(E)Y.m=E;L.B(Y)};W.it.prototype.bA=function(L){var C=this.DO.add.TySh,U=this.cD,E=C.J.clone();
E.G$();var Y=E.Om(L),z=b5.dm(C,U),r=c.h2.b4(C.DN,z),p=c.DL.V.Dt(r,0,1,0,1),T=new Uint32Array(30),k=c.DL.V.a85(p.n9,p.Sy,Y.x,Y.y,T),P=c.DL.gW(r,Y.x,Y.y,p.n9,T,k,!1),b=c.DL.kD;
if(b==null)b=new Float64Array(2);Y=new hZ(z.x+b[0]*z.d,z.y+b[1]*z.v);var Q=U.G0(Y);return Q};W.it.prototype._O=function(L,C){if(C==null)C=!1;
var U=this.DO.add.TySh,E=b5.S8(U.Se),Y=this.cD,z=Y?b5.dm(U,Y):null;L.K.yI=[];L.K.yw=null;L.K.R9=null;
var r=this.G4?this.G4:this.E$;if(r){r.pA(L,this.us,!c.h2.D3(U.DN));var p=U.J.clone();p.G$();c.a.J(L.K.yI,p,L.K.yI);
c.a.J(L.K.yw.c,p,L.K.yw.c);if(Y&&Y.aaf()){var T=z.d-20,k=z.v+8;L.K.yw.c.push(T,k,T+10,k,T+5,k-5,T+5,k+5);
L.K.yw.Z.push("M","L","M","L")}}else if(E==0)this.a1j(L,U,Y);else L.K.yw={c:[],Z:[]};var P=Math.min(this.oT,this.xD),b=Math.max(this.oT,this.xD);
if(!C){this.hV.selectionStart=P;this.hV.selectionEnd=b}if(Y!=null){var Q=function(r,I){var m=r.x,f=r.y+r.v,A=new c0;
A.translate(-m,-f);A.rotate(-I);A.translate(m,f);r.y+=r.v*.27;var v=c.a.kG(r);c.a.J(v.c,A,v.c);return v};
if(P==b){P=Math.max(P,0);var K=Y.$U(P);if(K){var h=K._,x=this.us.Az.LI.FontSize;if(x!=null&&x!=0){x/=U.J.ia();
h.y+=h.v-x;h.v=x}var O=Y.aj$(P);if(O!=null&&O.Jn==1)h.x+=h.d;var y=Q(h,K.NN).c;L.K.yw.Z.push("M","L");
L.K.yw.c.push(y[0],y[1],y[6],y[7])}}else{L.K.R9={c:[],Z:[]};for(var H=P;H<b;H++){var K=Y.$U(H),v=Q(K._,K.NN);
c.a.concat(L.K.R9,v)}}}if(Y!=null){if(!z.ue()){var i=c.h2.b4(U.DN,z),D=Math.min(z.d,z.v)/10;if(D<1)D=1;
if(L.K.yw){L.K.yw=c.a.xF(L.K.yw);L.K.yw=c.a.ub(L.K.yw,D);c.DL.apply(i,L.K.yw.c,z)}if(L.K.R9){L.K.R9=c.a.xF(L.K.R9);
L.K.R9=c.a.ub(L.K.R9,D);c.DL.apply(i,L.K.R9.c,z)}c.DL.apply(i,L.K.yI,z)}}if(L.K.yw)c.a.J(L.K.yw.c,U.J,L.K.yw.c);
if(L.K.R9)c.a.J(L.K.R9.c,U.J,L.K.R9.c);c.a.J(L.K.yI,U.J,L.K.yI);L.eP=!0};W.it.prototype.a1j=function(L,C,U){if(U==null)return;
L.K.yI.push(0,0);if(L.K.yw==null)L.K.yw={Z:[],c:[]};for(var H=0;H<U.s6.length;H++){var E=U.s6[H];for(var Y=0;
Y<E.D4.length;Y++){var z=E.D4[Y],r=E.v3.x+z.v3.x+z._.x,p=E.v3.y+z.v3.y+z._.y+z._.v;L.K.yw.Z.push("M","L");
L.K.yw.c.push(r,p,r+z._.d,p)}}L.eP=!0};W.la=function(){W.kd.call(this,[10,9],W.wj,"tools/lasso");this.XK="crosshair";
this.IP=null;this.kR=null;this.Wu=null};W.la.prototype=new W.kd;W.la.prototype.g3=function(L,C,U,E){this.IP=this.AS;
this.kR={c:[this.IP.x,this.IP.y],Z:["M"]}};W.la.prototype.Rl=function(L,C,U,E){this.Wu=E;var Y=this.kR;
if(Y==null)return;if(!E.X4){if(this.kR!=null&&this.RZ>1&&U.q(G.Lv)){Y.c.pop();Y.c.pop();Y.c.push(this.vv.x,this.vv.y);
L.K.yw=Y;L.eP=!0}return}Y.Z.push("L");Y.c.push(this.vv.x,this.vv.y);this.IP=this.vv;if(this.xy){L.K.yw=Y;
L.eP=!0}};W.la.prototype.sH=function(){return this.kR!=null};W.la.prototype._D=function(){return this.kR!=null};
W.la.prototype.fj=function(L,C,U,E){W.kd.prototype.fj.call(this,L,C,U,E);if(this.kR&&this.RZ>1&&this.Wu&&!this.Wu.X4&&!E.q(G.Lv))this.Cd(L,U,E)};
W.la.prototype.Zr=function(L,C,U,E){this.Wu=E;var Y=this.kR;if(Y==null)return;if(this.RZ>1&&U.q(G.Lv)){Y.Z.push("L");
Y.c.push(this.vv.x,this.vv.y);return}this.Cd(L,C,U)};W.la.prototype.Cd=function(L,C,U){this.finish(L,C,U,this.Wu);
this.kR=null;L.K.yw=null;L.eP=!0};W.la.prototype.getSelection=function(L,C,U,E){if(this.AS.cg(this.vv)||!this.xy)return null;
return W.kd.K4(this.kR.c)};W.P4=function(){W.DJ.call(this,[10,11],W.Ml,"tools/move");this.Wv=new hZ(0,0);
this.Na=new hZ(0,0);this.CR=null;this.nr=null;this.ie=new hZ(0,0);this.Lf=null;this.OY=null;this.kn=null;
this.lZ=0;this.O9=null;this.g$=[];this.YC=null;this.A1=!1;this.e=0;this.aT=null;this.jy=null;this.Ei=null;
this.w3=!1;this.cY={Hp:!1,nf:!1,Q0:!1};this.aet=!1;this.ac0=!1;this.E$=null;this.rB=null;this.a2y=null;
var L=[];for(var H=0;H<c.Mb.JO.length;H++)L.push({name:c.Mb.JO[H],p:function(C,U,E){return{v_:U.qA.Ca==E}}});
this.QF=new aq(L);this.QF.k("select",this.K2,this)};W.P4.prototype=new W.DJ;W.DJ.prototype.gQ=function(L){return this.A1&&this.e!=2};
W.P4.prototype.li=function(){return this.A1&&this.e==0};W.P4.prototype.eK=function(L,C,U,E){this.Ih(L,-this.ie.x,-this.ie.y);
this.ie.U6(0,0);this.kt(L,null,U);this.fG(L)};W.P4.prototype.n4=function(){var L=this.cY;return[L.Hp?1:0,L.nf?1:0,L.Q0?1:0]};
W.P4.prototype.Pj=function(L,C,U){var E=this.cY;if(L&&L[0]!=null)E.Hp=L[0]==1;if(L&&L[1]!=null)E.nf=L[1]==1;
if(L&&L[2]!=null)E.Q0=L[2]==1;var Y=new q(B.E.l,!0);Y.data={e:B.U.ik,m:this.id,XO:E,acL:C};U.B(Y)};W.P4.q5=function(L,C,U,E,Y,z,r){if(r==null)r=[!1,!0];
var p=new _(0,0,L.d,L.v),T=L.p9(null,Y,!0),k=L.$i(T,r[0]?p:null,r[1]?null:p)[0];if(r[1]){var P=c.TW(k.E0(),new _(0,0,k.d,k.v),2);
W.yP.h6(k,P)}if(U!=1){var b=new _(0,0,Math.round(k.d*U),Math.round(k.v*U));W.yP.h6(k,b);var Q=[];for(var H=0;
H<k.N.length;H++)Q.push(H);var K=W.o.AD(k,Q,!0);W.o.Bg(k,E,Q,K,1,c.I.BL(new c0(U,0,0,U,0,0)),null,!0);
k.nU()}var h=[];for(var H=0;H<C.length;H++)if(k.d*k.v!=0)h.push(iL.UJ(k,C[H].toUpperCase(),null,null,z?z[H]:null,E));
return h};W.P4.prototype.me=function(L,C,U,E,Y){if(L==null||L.C.length==0)return;var z=W.P4.q5(L,[C],U,E,null)[0],r=new q(B.E.l,!0);
r.data={e:B.U.A_,data:z,name:L.N[L.C[0]].getName()+(U==1?"":"@"+U+"x")+"."+C};Y.B(r)};W.P4.prototype.oO=function(L,C,U,E,Y){if(L.ev=="getPNG"){this.me(U,"png",L.NB,Y,C)}else if(L.ev=="getSVG"){this.me(U,"svg",L.NB,Y,C)}if(L.ev=="prms"){this.cY=L;
this.fG(U)}};W.P4.ae0=function(L){var u=L.length,U=0;L.sort(function(z,r){return z[0]+z[1]/2-(r[0]+r[1]/2)});
var C=L[u-1][0]+L[u-1][1]-L[0][0];for(var H=0;H<u;H++)U+=L[H][1];var E=Math.round((C-U)/(u-1)),Y=L[0][0];
for(var H=0;H<u;H++){L[H][0]=Y;Y+=L[H][1]+E}};W.P4.prototype.GV=function(L,C,U,E,Y){var z=L.e;if(z=="trsl"){var r=Math.round(L.afS),p=Math.round(L.adc);
this.ie.U6(r,p);this.IA(U,C,E,Y,!1,L.$);this.Ih(U,r,p);this.kt(U,null,Y)}else if(z=="gids"||z=="gidsFromLayer"){var T=L.jy,k,P;
if(T==null)T=JSON.parse(JSON.stringify(U.Pr));if(z=="gids"){k=L.Ee;var b=T[0].length+T[1].length,Q=k[0].length+k[1].length;
P=b==Q?[23,2]:b>Q?[23,3]:[23,4];if(Q==0)P=[11,15,0]}else if(z=="gidsFromLayer"){var K=[[],[]];for(var H=0;
H<U.C.length;H++){var h=U.N[U.C[H]].rect;if(h.ue())continue;K[0].push(h.x,h.x+h.d);K[1].push(h.y,h.y+h.v)}P=[11,15,1];
k=JSON.parse(JSON.stringify(U.Pr));W.P4.Ay(k,K)}if(JSON.stringify(T)==JSON.stringify(k))return;var z=new hp(P,this);
z.data={e:2,jy:T,Ee:k};U.Sv(z);this.Zm(z.data,U)}else if(z=="algn"){var x=L.G;if(U==null)return;if(U.C.length<2&&!(U.t!=null&&x!=3&&x!=7)){alert(gS.get([15,7,5]));
return}var O=U.t;U.t=null;var h=O?O.rect:W.o.dm(U);this.IA(U,C,E,Y,!1);if(!this.A1)return;var y=this.O9,v={},i=[],D=[],I=[];
for(var H=0;H<y.length;H++){var m=y[H];while(U.N[m].getName()=="</Layer group>")m++;var f=U.root.cW(m),A=f;
while(f.parent!=null){f=f.parent;if(y.indexOf(f.index)!=-1)A=f}var d=D.indexOf(A.index);if(d==-1){d=D.length;
D.push(A.index)}i[H]=d}var g=[],X=[],n=[];for(var H=0;H<D.length;H++){var R=W.o.dm(U,U.p9(!0,D[H]));
n.push(R);var l=x==3?[R.y,R.v]:[R.x,R.d];g[H]=l;X.push(l)}W.P4.ae0(X);for(var H=0;H<D.length;H++){var R=n[H],w=R.x,V=R.y;
if(x==0)w=h.x;if(x==1)w=h.x+(h.d-R.d)/2;if(x==2)w=h.x+(h.d-R.d);if(x==3)V=g[H][0];if(x==4)V=h.y;if(x==5)V=h.y+(h.v-R.v)/2;
if(x==6)V=h.y+(h.v-R.v);if(x==7)w=g[H][0];I.push(Math.round(w-R.x),Math.round(V-R.y))}var F=[];for(var H=0;
H<y.length;H++){var Z=i[H];F[2*H]=I[2*Z];F[2*H+1]=I[2*Z+1]}this.Ih(U,0,0,null,F);var M=x==3||x==7?[20,4,6]:[20,4,x<3?x:x-1];
this.kt(U,null,Y,F,M);U.t=O}};W.P4.Ay=function(L,C){for(var H=0;H<C.length;H++)for(var U=0;U<C[H].length;
U++)if(L[H].indexOf(C[H][U])==-1)L[H].push(C[H][U])};W.P4.prototype.enable=function(L,C,U,E,Y){this.OY=U;
this.kn=C;this.w3=Y?!0:!1;this.fG(L);this.cl("default",C)};W.P4.prototype.disable=function(L,C,U,E){this.FI(L)};
W.P4.prototype.FI=function(L){if(L==null)return;if(this.E$){this.E$.clear(L);this.E$=null}if(L.K.Q0){L.K.Q0=null;
L.eP=!0}if(L.K.h4){L.K.h4=null;L.eP=!0}if(L.K.bb[this.id]){delete L.K.bb[this.id];L.eP=!0}if(L.K.jB.length!=0){L.K.jB=[];
L.eP=!0}};W.P4.prototype.xv=function(L,C,U,E){if(U.Yd!=this.id)return;this.fG(L)};W.P4.prototype.fG=function(L,C){if(L==null)return;
var U=this.cY;this.FI(L);if(!this.w3){var E;if(U.nf||U.Q0)E=c.a.TT(W.o.dm(L));if(U.nf&&!E.ue()){this.E$=new hV([E.x,E.y,E.x+E.d,E.y,E.x+E.d,E.y+E.v,E.x,E.y+E.v],!0);
this.E$.pA(L,this.OY)}if(U.Q0){var Y=L.Le(L.C[0]),P=null,b=!1;if(Y==null)Y=new _(0,0,L.d,L.v);L.K.Q0={PL:[E],ru:[]};
var z=L.K.Q0.ru,r=E.x+E.d,p=E.y+E.v,T=E.x+Math.floor(E.d/2),k=E.y+Math.floor(E.v/2);if(C){var Q=L.root.gW(new hZ(Math.floor(C.x),Math.floor(C.y)));
if(Q){P=c.a.TT(Q.$.DZ(L));if(P.nN(E)){b=(P.zg(E)||E.zg(P))&&!E.cg(P);if(!b)P=null}}}this.OS(E,z);if(P!=null){L.K.Q0.PL.push(P);
var K=P.x+P.d,h=P.y+P.v,x=P.x+Math.floor(P.d/2),O=P.y+Math.floor(P.v/2);if(b){var y=T,v=k;if(E.zg(P)){y=x;
v=O}z.push(E.x,v,P.x,v);z.push(r,v,K,v);z.push(y,E.y,y,P.y);z.push(y,p,y,h)}else{this.OS(P,z);var i=p<P.y||h<E.y,D=r<P.x||K<E.x;
if(r<P.x)z.push(r,k,P.x,k);if(K<E.x)z.push(K,k,E.x,k);if(p<P.y)z.push(T,p,T,P.y);if(h<E.y)z.push(T,h,T,E.y);
if(i&&!D){if(E.x<P.x)z.push(E.x,O,P.x,O);if(P.x<E.x)z.push(P.x,k,E.x,k)}}}else{if(E.y>Y.y)z.push(T,Y.y,T,E.y);
if(p<Y.y+Y.v)z.push(T,p,T,Y.y+Y.v);if(E.x>Y.x)z.push(Y.x,k,E.x,k);if(r<Y.x+Y.d)z.push(r,k,Y.x+Y.d,k)}L.eP=!0}}if(this.e==2&&this.A1){var I=this.O9,m=I[0],f=(m==0?"X":"Y")+": "+c.Mb.S9(L.Pr[m][I[1]],L._Q,this.OY,m==0?L.d:L.v,!0);
W.DJ.XU(Math.round(this.CR.x)+10,Math.round(this.CR.y)-10,[f],L);L.eP=!0}if(this.e==3&&this.A1){var A=c.a.kG(this.aT);
L.K.bb[this.id]={yw:A};L.eP=!0}};W.P4.prototype.OS=function(L,C){var U=L.d,E=L.v,Y=L.x+Math.floor(U*.2),z=L.y+Math.floor(E*.2);
C.push(Y,L.y,Y,L.y+E);C.push(L.x,z,L.x+U,z)};W.P4.prototype.cl=function(L,C){var U={e:B.U.lx,aZ:L},E=new q(B.E.l,!0);
E.data=U;C.B(E)};W.P4.prototype._X=function(L){var C=this.rB.bw()[0],U=this.Lf,E=this.a2y[C];this.WD(U,E)};
W.P4.prototype.K2=function(L){var C=JSON.parse(JSON.stringify(this.OY.qA));C.Ca=this.QF.bw()[0];var U=new q(B.E.l,!0);
U.data={e:B.U.MP,wm:c_.cq,oq:C};this.kn.B(U)};W.P4.prototype.Rg=function(L,C,U,E,Y){if(this.A1)this.bM(L,C,U,E,Y);
this.Lf=L;this.OY=U;this.kn=C;var z=L.z.sQ(Y.x,Y.y),r;if(W.P4.dM(U,Y,L.z)){r=this.QF}else{if(this.rB)this.rB.removeEventListener("select",this._X);
var p=[];L.root.gW(z,p);if(p.length==0)return;var T=[];this.a2y=p;for(var H=0;H<p.length;H++)T.push({name:L.N[p[H]].getName()});
r=this.rB=new aq(T);r.k("select",this._X,this)}r.parent=C;r.f();r.update(L,U);var k=new q(B.E.l,!0);
k.data={e:B.U.Ww,f0:r,x:Y._5+2,y:Y.x0+1};C.B(k)};W.P4.prototype.VF=function(L,C,U,E,Y){return W.P4.dM(U,Y,L.z)};
W.P4.prototype.zI=function(L,C,U,E,Y){this.CR=Y;this.Wv.U6(Y.x,Y.y);this.Na=L.z.sQ(Y.x,Y.y);this.nr=new dH(this.Na);
this.IA(L,C,E,U,!0)};W.P4.dM=function(L,C,U){var E=c.Mb.j9,Y=U.e4.v;return L.Wr&&(0<C.x&&C.x<E||0<C.y&&C.y<E||0<C.x&&C.x<4*E&&Y-E<C.y&&C.y<Y)};
W.P4.prototype.IA=function(L,C,U,E,Y,z){var r,p=this.Na,T=!1;if(Y){var k=E.Fg&&E.qA.Pr;if(W.P4.dM(E,this.Wv,L.z)){r=JSON.parse(JSON.stringify(L.Pr));
if(this.Wv.x<c.Mb.j9)L.Pr[0].push(p.x);if(this.Wv.y<c.Mb.j9)L.Pr[1].push(p.y);if(!k){var P=new q(B.E.l);
if(!E.qA.Pr){P.data={e:B.U.MP,wm:c_.ai};C.B(P)}if(!E.Fg){P.data={e:B.U.MP,wm:c_.dA};C.B(P)}k=!0}}var b=this.W4(L,p);
if(k&&b){this.e=2;this.jy=r?r:JSON.parse(JSON.stringify(L.Pr));this.O9=b;this.A1=!0;this.YC=W.o.dm(L);
return}if(L.te.length!=0){this.e=4;this.YC=L.vI[L.te[0]].rect.clone();this.A1=!0;return}if(this.E$&&this.E$.J8(p,L.z.S,!0)!=null){var P=new q(B.E.l);
P.data={e:B.U.ID,m:W.YH};C.B(P);var Q=new q(B.E.A);Q.m=W.YH;Q.data={e:"doMouseDown",CR:this.Wv};C.B(Q);
return}if(L.t&&L.t.rect.qh(p)){var K=Math.round(p.x),h=Math.round(p.y),x=L.t.rect;T=L.t.channel[(h-x.y)*x.d+K-x.x]>128}if(!T&&(!this.w3&&this.cY.Hp||this.w3&&this.cY.Hp&&(U.q(G.PS)||L.C.length<2))){var O=this.aht(L,p,U);
if(!O){L.C=[];L.cE=null;L.hK=L.EN=!0;this.e=3;this.aT=new _;this.A1=!0;return}}if(U.q(G.Lv)&&!T){var Q=new q(B.E.A);
Q.m=W.aV;Q.data={e:o.ok,aik:!0};C.B(Q)}}if(L.te.length!=0){this.e=4;this.YC=L.vI[L.te[0]].rect.clone();
this.A1=!0;return}this.O9=L.p9(z==null,z,null,!0);for(var H=0;H<this.O9.length;H++){var y=L.N[this.O9[H]];
if(y.zm(2)||y.zm(31)){alert(gS.get([6,57,0]));return}}this.g$=W.P4.a7l(L,this.O9);this.e=0;if(L.t&&(!Y||T)&&L.C.length==1&&L.qk(!1)){if(!L.hl()){this.A1=!1;
return}var v=L.N[L.C[0]],i=U.q(G.Lv);this.e=1;var D=L.history[L.xC];if(D.m==this&&D.data.e==1&&D.data.$==L.C[0]&&v.yQ==v.kK.yQ&&!i){this.Ei=D}else{var I=v.kK,m=!1,f;
if(!v.J6(L,L.t)||i){m=!0;v.ME(L,L.t,i)}if(v.kK.yQ<=0){f=c.F(v.kK.zK.length>>2);c.wH(v.kK.zK,f,3)}else f=L.t.channel.slice(0);
var A={rect:v.kK.dE.clone(),channel:f};this.Ei=new hp(i?[12,53]:[12,54],this);this.Ei.data={e:1,$:L.C[0],kK:v.kK,vj:I,Sk:m,e5:L.t,bx:A,J2:new hZ(0,0)};
L.Sv(this.Ei);L.t=A;L.U8=!0}}this.A1=!0;this.YC=W.o.dm(L)};W.P4.prototype.aht=function(L,C,U){var E=L.root.gW(new hZ(Math.floor(C.x),Math.floor(C.y)));
if(E){if(E.$.add.vmsk)L.eP=!0;var Y=L.N.indexOf(E.$);if(U.q(G.PS)){var z=L.C.indexOf(Y);if(z==-1)L.C.push(Y);
else if(L.C.length>1)L.C.splice(z,1)}else if(L.C.indexOf(Y)==-1){this.WD(L,Y)}}return E!=null};W.P4.prototype.WD=function(L,C){L.N[C].yQ=0;
L.C=[C];L.cE=null;L.LM();L.fP=!0;L.hK=!0};W.P4.prototype.Yh=function(L,C,U,E,Y){this.CR=Y;var z=L.z.sQ(Y.x,Y.y),Q,K;
if(this.nr&&this.e<2)z=this.nr.Q8(z,E);if(!this.A1){if(U.Fg&&U.qA.Pr){var r=this.W4(L,z),p="default";
if(r)p=["col-resize","row-resize"][r[0]];else if(this.E$){var T=this.E$.J8(z,L.z.S);if(T)p=T}this.cl(p,C)}this.fG(L,z);
return}var k=this.Na,P=Math.round(z.x-k.x)-this.ie.x,b=Math.round(z.y-k.y)-this.ie.y;if(this.YC){if(this.e==2){z=W.P4.wD(L,z,U,[!1,L.t?L.t.rect:this.YC,!0])}else{K=this.YC.clone();
K.offset(this.ie.x+P,this.ie.y+b);Q=W.P4.HG(L,K,U);P+=Math.round(Q[0]);b+=Math.round(Q[1])}}this.ie.x+=P;
this.ie.y+=b;this.Ih(L,P,b,z,null,E.q(G.PS));this.fG(L,z);if(Q)W.P4.E9(L,K,Q)};W.P4.prototype.W4=function(L,C){C=[C.x,C.y];
for(var H=0;H<2;H++)for(var U=0;U<L.Pr[H].length;U++)if(Math.abs(L.Pr[H][U]-C[H])*L.z.S<4)return[H,U];
return null};W.P4.prototype.Ih=function(L,C,U,E,Y,z){if(this.e==0){if(Y)W.P4.Je(L,this.O9,this.g$,Y);
else W.P4.j4(L,this.O9,this.g$,C,U)}else if(this.e==1){var r=this.Ei.data;r.J2.offset(C,U);W.P4.zi(L,r.$,C,U)}else if(this.e==2){var p=1e-5;
if(z)p=L.z.S<=1?10:1;else if(L.z.S<=1)p=1;var T=p*Math.round(E.x/p),k=p*Math.round(E.y/p),P=[T,k],b=this.O9;
L.Pr[b[0]][b[1]]=P[b[0]]}else if(this.e==3){var Q=this.Na,K=c.a.wh([Q.x,Q.y,E.x,E.y]);this.aT=K;var h=[];
L.root.Qt(K,h);if(JSON.stringify(L.C)!=JSON.stringify(h)){L.C=h;L.hK=L.EN=!0}}else if(this.e==4){for(var H=0;
H<L.te.length;H++)L.vI[L.te[H]].rect.offset(C,U);L.eP=!0}};W.P4.zi=function(L,C,U,E){var Y=L.N[C];L.t.rect.offset(U,E);
Y.TA(L,U,E,L.t);L.U8=!0;L.s()};W.P4.prototype.bM=function(L,C,U,E,Y){this.kt(L,Y,U);this.fG(L);if(Date.now()-this.lZ<300){var z=W.it.gV(L,L.z.sQ(Y.x,Y.y));
if(z!=-1){var r=new q(B.E.A,!0);r.m=W.Ey;r.data={e:"editCurr",Z7:z};C.B(r)}else if(W.P4.dM(U,Y,L.z)){var p=new q(B.E.l);
p.data={e:B.U.Q1,k5:"doczoom",LE:L.z.S*100,ea:{b:B.E.A,m:W.tJ,H:{e:"pzoom"}}};C.B(p)}}this.lZ=Date.now()};
W.P4.prototype.kt=function(L,C,U,E,Y){if(!this.A1)return;this.A1=!1;if(this.e==0){if(E){this.q9(L,null,E,Y)}else{if(this.ie.x==0&&this.ie.y==0)return;
this.q9(L,this.ie.clone())}L.dD=!0}else if(this.e==2){var z=0;C=[C.x,C.y];var r=this.O9,ds=this.jy[0].length+this.jy[1].length,p=L.Pr[0].length+L.Pr[1].length;
if(U.Wr&&C[r[0]]<c.Mb.j9){L.Pr[r[0]].splice(r[1],1);z=1;if(ds==p-1)return}if(ds<p)z=2;var T=new hp([[23,2],[23,3],[23,4]][z],this);
T.data={e:2,jy:this.jy,Ee:JSON.parse(JSON.stringify(L.Pr))};L.Sv(T)}else if(this.e==4){var T=new hp([12,54],this);
T.data={e:4,C:L.te.slice(0),g:this.ie.clone()};L.Sv(T)}this.ie.U6(0,0)};W.P4.prototype.fj=function(L,C,U,E){var Y=E.wu();
if(L!=null&&(Y.x!=0||Y.y!=0)){if(E.q(G.Lv)&&L.t==null){var z=new q(B.E.A);z.m=W.aV;z.data={e:o.ok,aik:!0};
C.B(z)}this.ie.U6(Y.x,Y.y);this.IA(L,C,E,U,!1);if(!this.A1)return;this.Ih(L,Y.x,Y.y);this.kt(L,null,U);
this.fG(L)}var r=E.q(G.DM);if(!this.w3&&this.ac0!=r){if(r){this.aet=this.cY.Hp;this.cY.Hp=!0}else{this.cY.Hp=this.aet}this.ac0=r;
var p=new q(B.E.l,!0);p.data={e:B.U.ik,m:this.id,XO:this.cY};C.B(p)}};W.P4.prototype.Ic=function(L,C){if(L.e==0)W.P4.Je(C,L.C,L.pS,L.d9,!0);
else if(L.e==2){C.Pr=JSON.parse(JSON.stringify(L.jy));C.eP=!0}else if(L.e==4){for(var H=0;H<L.C.length;
H++)C.vI[L.C[H]].rect.offset(-L.g.x,-L.g.y);C.eP=!0}else{var U=C.N[L.$];if(L.Sk){U.pK(C,L.vj);C.t=L.e5;
C.U8=!0;C.s();U.s()}else{W.P4.zi(C,L.$,-L.J2.x,-L.J2.y)}}};W.P4.prototype.Zm=function(L,C){if(L.e==0)W.P4.Je(C,L.C,L.pS,L.d9);
else if(L.e==2){C.Pr=JSON.parse(JSON.stringify(L.Ee));C.eP=!0}else if(L.e==4){for(var H=0;H<L.C.length;
H++)C.vI[L.C[H]].rect.offset(L.g.x,L.g.y);C.eP=!0}else{var U=C.N[L.$];if(L.Sk){U.kK=L.kK;C.t=L.bx;W.P4.zi(C,L.$,0,0);
U.s()}else{W.P4.zi(C,L.$,L.J2.x,L.J2.y)}}};W.P4.prototype.q9=function(L,C,U,E){if(U){var Y=!0;for(var H=0;
H<U.length;H++)if(U[H]!=0)Y=!1;if(Y)return}var z=L.history[L.xC];if(z.data&&z.m==this&&z.data.e==0&&U==null&&JSON.stringify(z.data.C)==JSON.stringify(this.O9)&&JSON.stringify(z.data.pS)==JSON.stringify(this.g$)){var r=z.data.d9,p=z.data.a7E.V5.T.v;
p.Hrzn.v.val+=C.x;p.Vrtc.v.val+=C.y;for(var H=0;H<r.length;H+=2){r[H]+=C.x;r[H+1]+=C.y}}else{if(C==null)C=new hZ(U[0],U[1]);
var T={xo:"move",V5:{classID:"null",null:hy.K1("Lyr",!0),T:{t:"Objc",v:{classID:"Ofst",Hrzn:{t:"UntF",v:{type:"#Rlt",val:C.x}},Vrtc:{t:"UntF",v:{type:"#Rlt",val:C.y}}}}}},k=new hp(E?E:[12,54],this);
if(U)k.data={e:0,C:this.O9,pS:this.g$,d9:U};else k.data={e:0,C:this.O9,pS:this.g$,d9:W.P4.qa(this.O9,C.x,C.y)};
k.data.a7E=T;L.Sv(k);this.track(T)}};W.P4.qa=function(L,C,U){var E=[];for(var H=0;H<L.length;H++)E.push(C,U);
return E};W.P4.j4=function(L,C,U,E,Y){W.P4.Je(L,C,U,W.P4.qa(C,E,Y))};W.P4.Je=function(L,C,U,E,Y){if(C.length==0)return;
if(U==null){U=[];for(var H=0;H<C.length;H++){U.push(L.N[C[H]].Vc(L,!0))}}var z=new _,r=new _(0,0,L.d,L.v);
for(var H=0;H<C.length;H++){var p=E[2*H],T=E[2*H+1];if(Y){p=-p;T=-T}var k=L.N[C[H]],P=U[H];if(k.add.fxrp&&(P.indexOf(0)!=-1||k.G_()))k.add.fxrp.offset(p,T);
for(var b=0;b<P.length;b++){var Q=P[b];if(Q==0){k.rect.offset(p,T);if(k.s7()&&k.iC(L))k.iC(L).rect.offset(p,T);
if(k.add.artb){var K=k.kg();K.offset(p,T);k.eJ(K)}if(k.add.TySh){k.add.TySh.J.translate(p,T);if(k.add.TySh.add){k.add.TySh.add.vmsk.offset(p,T)}}if(k.add.SoLd){var h=new c0(1,0,0,1,p,T),x=k.add.SoLd,O=W.o.pp(x.Trnf),y=W.o.pp(x.nonAffineTransform);
c.a.J(O,h,O);c.a.J(y,h,y);x.Trnf=W.o.M4(O);x.nonAffineTransform=W.o.M4(y)}}if(Q==1)k.xV().rect.offset(p,T);
if(Q==2){k.add.vmsk.offset(p,T);if(k.add.vogk)c.zf.J(k.add.vogk,[1,0,p,0,1,T,0,0],[])}if(Q==3){k.iC(L).r.rect.offset(p,T);
if(P.length==1)k.s()}}if(P.length>0){var v=k.add.GdFl;if(v==null)v=k.add.PtFl;if(k.G_()&&!k.$T()&&k.add.vmsk!=null&&c.Y.M8(k.add.vmsk.n)&&k.add.vmsk.Ve==255&&(v==null||v.Algn&&v.Algn.v)){k.rect.offset(p,T)}else k.cr(L);
var i=L.root.kT(k.DZ(L),L,C[H]);z=z.EU(i);i.offset(-p,-T);z=z.EU(i);if(k.add.SoCo||k.add.GdFl||k.add.PtFl||eh.get(k.add)!=null)z=z.EU(r);
k.yC()}}L.s(z)};W.P4.a7l=function(L,C){var U=[];for(var H=0;H<C.length;H++){var E=L.N[C[H]];U.push(E.Vc(L))}return U};
W.P4.E9=function(L,C,U){var E=L.K.h4={c:[],Z:[]},Y=C.x+U[0],z=C.y+U[1];if(U[2]!=1e9){E.Z.push("M","L");
E.c.push(U[2],z,U[2],z+C.v)}if(U[3]!=1e9){E.Z.push("M","L");E.c.push(Y,U[3],Y+C.d,U[3])}L.eP=!0};W.P4.wD=function(L,C,U,E){var Y=W.P4.kV(L,[[C.x],[C.y]],U,E);
return new hZ(C.x+Y[0],C.y+Y[1])};W.P4.HG=function(L,C,U,E,Y){var z=Y==!0?0:1,r=W.P4.kV(L,[[C.x,C.x+(C.d>>>z),C.x+C.d],[C.y,C.y+(C.v>>>z),C.y+C.v]],U,E);
return r};W.P4.kV=function(L,C,U,E){if(E==null)E=[!0,null,!0];var Y=[0,0,1e9,1e9];if(!U.Y2)return Y;
var z=JSON.parse(JSON.stringify(C));for(var r=0;r<2;r++){var p=1e9,T=C[r],k=0;for(var P=0;P<T.length;
P++){var b=W.P4.a8U(L,T[P],z[1-r][P],r,U,E);if(b!=1e9)z[r][P]=b;if(b!=1e9&&Math.abs(b-T[P])<Math.abs(p)){p=b-T[P];
k=b}}if(p!=1e9){Y[r]=p;Y[r+2]=k}}return Y};W.P4.a8U=function(L,C,U,E,Y,z){var r=1e9,p=Y.j6,T=Y.qA,k=[L.root];
while(k.length!=0&&p[2]){var P=k.pop(),b=P.$,Q=b.rect;if(!b.rK())continue;if(P.children)for(var H=0;
H<P.children.length;H++)k.push(P.children[H]);if(L.C.indexOf(P.index)!=-1||Q.ue())continue;if(E==0){var K=Q.d,h=K>>>1;
if(Math.abs(Q.x-C)<Math.abs(r-C))r=Q.x;if(Math.abs(Q.x+h-C)<Math.abs(r-C))r=Q.x+h;if(Math.abs(Q.x+K-C)<Math.abs(r-C))r=Q.x+K}else{var x=Q.v,O=x>>>1;
if(Math.abs(Q.y-C)<Math.abs(r-C))r=Q.y;if(Math.abs(Q.y+O-C)<Math.abs(r-C))r=Q.y+O;if(Math.abs(Q.y+x-C)<Math.abs(r-C))r=Q.y+x}}if(z[0]&&p[0]&&T.Pr&&Y.Fg){var y=L.Pr[E];
for(var H=0;H<y.length;H++)if(Math.abs(y[H]-C)<Math.abs(r-C))r=y[H]}if(p[1]&&T.SY&&Y.Fg){var v=Math.round(c.Mb.nF(T.ST,L,T.Kw));
if(E==1&&T.nt==1){var i=U*.5*Math.sqrt(4/3),D;v*=Math.sqrt(4/3);D=Math.round((C-i)/v)*v+i;if(Math.abs(D-C)<Math.abs(r-C))r=D;
D=Math.round((C+i)/v)*v-i;if(Math.abs(D-C)<Math.abs(r-C))r=D}else{var D=Math.round(C/v)*v;if(Math.abs(D-C)<Math.abs(r-C))r=D}}var I=L.Oy;
if(p[3]&&T.Oy&&Y.Fg&&I.length!=0){for(var H=0;H<I.length;H++){if(!z[2]&&L.Vg.indexOf(H)!=-1)continue;
var m=W.l1.Rq(I,H);for(var f=0;f<3;f+=2)if(m[f+E]!=C&&Math.abs(m[f+E]-C)<Math.abs(r-C))r=m[f+E]}}if(z[1]){var Q=z[1],K=Q.d,x=Q.v,A=[Q.x,Q.y,Q.x+(K>>>1),Q.y+(x>>>1),Q.x+K,Q.y+x];
for(var H=0;H<6;H+=2)if(Math.abs(A[H+E]-C)<Math.abs(r-C))r=A[H+E]}if(p[4]){var K=L.d,x=L.v,A=[0,0,K>>>1,x>>>1,K,x];
for(var H=0;H<6;H+=2)if(Math.abs(A[H+E]-C)<Math.abs(r-C))r=A[H+E]}var d=Math.abs(r-C)<=4*B.M()/L.z.S?r:1e9;
return d};W.Xf=function(){W.kd.call(this,[10,12],W.eG,"tools/mwand")};W.Xf.prototype=new W.kd;W.Xf.prototype.n4=W.kd.prototype.an$;
W.Xf.prototype.Pj=W.kd.prototype.abE;W.Xf.prototype.g3=function(L,C,U,E){this.finish(L,C,U,E)};W.Xf.prototype.getSelection=function(L,C,U,E){var Y=this.vv,z=W.kd.a1U(new hZ(Math.floor(Y.x),Math.floor(Y.y)),this.cY.dH);
return z};W.Xf.bk=function(L,C,U){if(L.C.length!=1){alert("More than one layer selected.");return null}var E=L.N[L.C[0]],Y=E.yQ<=0?null:E.yQ==1?E.xV():E.iC(L).r,z;
if(Y==null&&E.add.lsct!=null&&E.add.lsct!=fI.iS){alert("No layer selected.");return null}if(C.x<0||C.x>L.d||C.y<0||C.y>L.v)return null;
var r=new _(0,0,L.d,L.v);if(Y==null&&r.cg(E.rect))z=E.buffer;else{z=c.F(r.X()*4);if(Y==null)c.La(E.buffer,E.rect,z,r);
else W.dl.M0(Y.channel,Y.rect,Y.color,z,r)}var p=W.Xf.NU(z,r,C,null,U),T=c.lJ(p,r),k=c.F(T.X());c.zM(p,r,k,T);
return{rect:T,channel:k}};W.Xf.IG=function(L,C,U){var E=C.d,Y=C.v,r=0,p=0,T=0,k=0;L=new Uint32Array(L.buffer);
var z=[],P=U.length;for(var H=0;H<P;H++){var b=U[H],Q=Math.round(b.x-.5-C.x),K=Math.round(b.y-.5-C.y);
Q=Math.max(0,Math.min(E-1,Q));K=Math.max(0,Math.min(Y-1,K));var h=K*E+Q,x=L[h];z.push([x&255,x>>8&255,x>>16&255,x>>>24])}return z};
W.Xf.NU=function(L,C,U,E,Y){L=new Uint32Array(L.buffer);var z=C.d,r=C.v,p=z*r;if(E==null)E=W.Xf.IG(L,C,[U]);
var T=Math.round(U.x-.5-C.x),k=Math.round(U.y-.5-C.y),P=k*z+T,b=Date.now(),Q=c.F(z*r),K=Y[0],h=1/K,x=Y[1]&&K>0?255:0;
if(Y[2]){var O=c.F(Q.length),y=new Uint32Array(p),v=1;y[0]=T<<16|k;O[P]=1;while(v>0){var i=y[v-1];v--;
var D=i>>>16,I=i&65535,H=I*z+D,m=W.Xf.ct(L[H],E);if(m>K){var f=x*(1-Math.max(0,Math.min(1,(m-K)*h)));
Q[H]=~~f}else{Q[H]=255;if(I!=r-1&&O[H+z]==0){y[v++]=D<<16|I+1;O[H+z]=1}if(I!=0&&O[H-z]==0){y[v++]=D<<16|I-1;
O[H-z]=1}if(D!=z-1&&O[H+1]==0){y[v++]=D+1<<16|I;O[H+1]=1}if(D!=0&&O[H-1]==0){y[v++]=D-1<<16|I;O[H-1]=1}}}}else{for(var H=0;
H<p;H++){var m=W.Xf.ct(L[H],E);if(m<=K)Q[H]=255}for(var I=0;I<r;I++)for(var D=0;D<z;D++){var H=I*z+D;
if(Q[H]==0&&(D>0&&(Q[H-1]==255||I>0&&Q[H-z-1]==255||I<r-1&&Q[H+z-1]==255)||D<z-1&&(Q[H+1]==255||I>0&&Q[H-z+1]==255||I<r-1&&Q[H+z+1]==255)||I>0&&Q[H-z]==255||I<r-1&&Q[H+z]==255)){var m=W.Xf.ct(L[H],E),f=x*(1-Math.max(0,Math.min(1,(m-K)*h)));
Q[H]=~~f}}}return Q};W.Xf.ct=function(L,C){var U=C.length,E=W.Xf.Qq(L,C[0]),H=1;while(H!=U){E=Math.min(E,W.Xf.Qq(L,C[H]));
H++}return E};W.Xf.Qq=function(L,C){var U=L&255,E=L>>>8&255,Y=L>>>16&255,z=L>>>24&255;if(C[3]==0)return z<5?0:255;
var r=Math.max(Math.abs(U-C[0]),Math.max(Math.abs(E-C[1]),Math.abs(Y-C[2])));return z==0?255:r};W.Pe=function(L,C){if(C)W.dl.call(this);
else if(L)W.dl.call(this,[10,49],W.Pu,"tools/camove");else W.dl.call(this,[10,26],W.lh,"tools/patch");
this.IP=null;this.kR=null;this.g=null;this.v3=null;this.Vw=new hZ;this.lC=null;this.Wh=null};W.Pe.prototype=new W.dl;
W.Pe.prototype.zI=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y);if(L.t&&c.gW(z,L.t.channel,L.t.rect)){var r=new _(0,0,L.d,L.v),p=r.eR(L.t.rect);
if(!L.qk()||p.ue())return;if(!0){var T=c.F(p.X());c.zM(L.t.channel,L.t.rect,T,p);L.t={channel:T,rect:p}}this.LX(L);
this.yt(L);this.v3=z;this.Vw=new hZ(z.x-L.t.rect.x,z.y-L.t.rect.y);this.Wh=c.F(L.t.rect.X()*4);this.Wh.fill(255);
if(this.cY.patch==1){var k=L.N[L.C[0]];k.ME(L,L.t,!0);if(k.kK==null)this.v3=null}this.lC=L.t.rect.clone()}else{this.kR={c:[z.x,z.y],Z:["M"]};
this.IP=z}};W.Pe.prototype.Yh=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y);if(this.v3){if(this.cY.patch==1){if(L.te.length==0){var r=L.N[L.C[0]].kK,p=z.x-this.Vw.x,T=z.y-this.Vw.y;
W.P4.zi(L,L.C[0],Math.round(p-r.dE.x),Math.round(T-r.dE.y))}}else this.p$(L,z,"clone")}if(this.IP){this.kR.Z.push("L");
this.kR.c.push(z.x,z.y);this.IP=z;L.K.yw=this.kR;L.eP=!0}};W.Pe.prototype.bM=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y);
if(this.v3){var r=L.t.rect.clone();if(this.id==W.Pu){var p=L.N[L.C[0]];p.pK(L,p.kK);L.t.rect=this.lC.clone();
var T=c.F(L.t.rect.X()*4);c.Wn(L.t.channel,T,3);this.oA(L,"sheal",T,L.t.rect,L.t.rect);L.t.rect=r;r=r.EU(this.lC)}this.p$(L,z,"heal");
this.finish(L,r,null,null,!0);L.s(r);this.v3=null}if(this.IP){var k=W.kd.LV(this.cY.setop,E.q(G.PS),E.q(G.Lv)),P=new q(B.E._w,!0);
if(this.kR.c.length<=4)P.data=W.kd.xe();else P.data=W.kd.K4(this.kR.c,k);C.B(P);this.IP=null;L.K.yw=null;
L.eP=!0}};W.Pe.prototype.NV=function(){return this.g};W.Pe.prototype.oO=function(L,C,U,E,Y){W.dl.prototype.oO.call(this,L,C,U,E,Y);
this.cl(Y,E)};W.Pe.prototype.cl=function(L,C){var U="auto;";if(C!=null&&C.q(G.PS)&&!C.q(G.Lv)||this.cY.setop=="union")U="copy";
var E=new q(B.E.l,!0);E.data={e:B.U.lx,aZ:U};if(this.caller)this.caller.B(E)};W.Pe.prototype.p$=function(L,C,U){var E=new hZ(Math.round(this.v3.x-C.x),Math.round(this.v3.y-C.y));
if(this.cY.patch==1)E.U6(-E.x,-E.y);this.g=E;this.oA(L,U,this.Wh,L.t.rect,L.t.rect);this.s(L,L.t.rect)};
W.yB=function(){W.Pe.call(this,!0);this.cY.patch=1};W.yB.prototype=new W.Pe(!0,!0);W.O$=function(){W.dl.call(this,[10,13],W.a4B,"tools/pbucket")};
W.O$.prototype=new W.dl;W.O$.prototype.enable=function(L,C,U,E){var Y=new q(B.E.l,!0);Y.data={e:B.U.lx,aZ:"default"};
C.B(Y)};W.O$.prototype.hU=function(L,C){};W.O$.prototype.bM=function(L,C,U,E,Y){if(!L.qk())return;var z=L.z.sQ(Y.x,Y.y),r=W.Xf.bk(L,z,this.cY.wconf);
if(r==null)return;var p=c.F(r.rect.X()*4);c.n0(p,(U.yx&255)<<16|(U.yx>>8&255)<<8|(U.yx>>16&255)<<0);
c.Wn(r.channel,p,3);this.LX(L);this.oA(L,"draw",p,r.rect,r.rect);this.s(L,r.rect);this.finish(L,r.rect)};
W.Oj=function(){W.kd.call(this,[10,14],W.an2,"tools/plasso");this.XK="crosshair";this.nQ=[];this.gj=null;
this.kR=null;this.a9M=0};W.Oj.prototype=new W.kd;W.Oj.prototype.disable=function(L,C,U,E){this.c$(L)};
W.Oj.prototype.g3=function(L,C,U,E){this.nQ=[G.yo,G.JY]};W.Oj.prototype.Gs=function(L){return this.nQ.indexOf(L)!=-1};
W.Oj.prototype.gQ=function(L){return this.kR!=null};W.Oj.prototype._D=function(){return this.kR!=null};
W.Oj.prototype.sH=function(){return this.kR!=null};W.Oj.prototype.Rl=function(L,C,U,E){if(this.kR==null)return;
var Y=this.kR,z=Y.c,r=z.length-2,p=this.vv;if(this.RZ>1&&U.q(G.Lv)&&E.X4){z.push(0,0);Y.Z.push("L");
r+=2}else if(U.q(G.PS))p=W.Fe.hZ(new hZ(z[r-2],z[r-1]),p);z[r]=p.x;z[r+1]=p.y;L.K.yw=Y;L.eP=!0};W.Oj.prototype.Zr=function(L,C,U,E){var Y=Date.now();
if(this.kR==null)this.kR={c:[this.vv.x,this.vv.y,this.vv.x,this.vv.y],Z:["M","L"]};else{this.Rl(L,C,U,E);
if(Y-this.a9M<250||hZ.sl(this.vv,new hZ(this.kR.c[0],this.kR.c[1]))<5*B.M()/L.z.S){this.gj=this.kR;this.finish(L,C,U,E);
this.c$(L);return}this.kR.Z.push("L");this.kR.c.push(this.vv.x,this.vv.y)}this.a9M=Y;L.K.yw=this.kR};
W.Oj.prototype.c$=function(L){this.kR=null;this.nQ=[];if(L!=null){L.K.yw=null;L.eP=!0}};W.Oj.prototype.fj=function(L,C,U,E){W.kd.prototype.fj.call(this,L,C,U,E);
if(E.q(G.ox)&&this.kR==null&&this.gj&&L.t!=null){var Y=new q(B.E.A);Y.m=W.n3;Y.data={e:"h_stepbck"};
C.B(Y);this.g3(L,U,E,null);this.kR=this.gj;return}if(this.kR==null)return;if(E.q(G.yo)||E.q(G.JY)){this.kR.c.pop();
this.kR.c.pop();this.kR.Z.pop();this.Rl(L,U,E)}if(E.q(G.CT)){if(this.kR.c.length>4){this.gj=this.kR;
this.finish(L,U,E)}this.kR=null}if(E.q(G.ox)){this.kR=null}L.K.yw=this.kR;L.eP=!0};W.Oj.prototype.getSelection=function(L,C,U,E){return W.kd.K4(this.kR.c)};
W._H=function(){W.kd.call(this,[10,10],W.ah3,"tools/mlasso");this.XK="crosshair";this.nQ=[];this.n=[];
this.zX=[];this.D4=[];this.Hj=null;this.Qv=null;this.Mt=null;this.lZ=0;this.PX=0};W._H.prototype=new W.kd;
W._H.prototype.disable=function(L,C,U,E){this.clear(L)};W._H.prototype.gQ=function(L){return this.n.length!=0};
W._H.prototype.sH=function(){return this.n.length!=0};W._H.prototype.Gs=function(L){return this.nQ.indexOf(L)!=-1};
W._H.prototype.g3=function(L,C,U,E){this.nQ=[G.yo,G.JY];var Y=this.XJ(this.AS,L);if(this.n.length!=0&&(hZ.sl(Y,this.n[0])<4*B.M()/L.z.S||Date.now()-this.lZ<300)){this.qC(L,this.n[0]);
this.finish(L,C,U);this.clear(L);return}this.lZ=Date.now();if(this.n.length!=0)Y=this.T8(Y,L);else{var z=L.d,r=L.v,p=c.F(z*r),T=L.E0(),k=z*r*4;
for(var H=0;H<k;H+=4)p[H>>>2]=~~(.5+c.GZ(T[H],T[H+1],T[H+2])*(T[H+3]*(1/255)));this.Hj=c.Iu.a6Z(p,z,r);
this.Mt=new Uint16Array(p.length)}this.qC(L,Y);this.PX=U.q(G.Lv)?1:0;this.P_(L)};W._H.prototype.qC=function(L,C){var U=this.n;
this.zX[U.length]=this.D4.length;if(U.length!=0){c.Iu.fo(this.Qv,C.y*L.d+C.x);var E=this.I2(L,C);E.reverse();
var Y=W._H.Ud(L,E);this.D4=this.D4.concat(Y)}U.push(C);this.iX(L)};W._H.prototype.iX=function(L){var C=this.n[this.n.length-1],U=C.y*L.d+C.x;
this.Qv=c.Iu.alB(this.Hj.NM,this.Hj.fr,U);this.Mt.fill(0)};W._H.prototype.XJ=function(L,C){return new hZ(Math.floor(Math.max(0,Math.min(C.d-1,L.x))),Math.floor(Math.max(0,Math.min(C.v-1,L.y))))};
W._H.prototype.clear=function(L){this.D4=[];this.n=[];this.zX=[];this.Hj=null;this.Qv=null;this.Mt=null;
if(L!=null){L.K.yw=null;L.K.yI=[];L.eP=!0}this.nQ=[]};W._H.prototype.Rl=function(L,C,U,E){var Y=this.n,z=Y.length;
if(z==0)return;var r=this.T8(this.XJ(this.vv,L),L),p=this.I2(L,r);for(var H=0;H<p.length;H++){var T=p[H],k=new hZ(T%L.d,Math.floor(T/L.d));
if(this.Mt[T]>30&&hZ.sl(k,Y[z-1])>20){this.qC(L,k);return}this.Mt[T]++}if(this.PX==1&&E.X4)this.qC(L,r);
this.P_(L)};W._H.prototype.P_=function(L){var C=this.n;if(C.length!=0){var U=this.T8(this.XJ(this.vv,L),L),E=this.I2(L,U);
E.reverse();var Y=W._H.Ud(L,E),z=this.D4.concat(Y),r=L.K.yw={c:z,Z:["M"]};for(var H=2;H<z.length;H+=2)r.Z.push("L")}L.K.yI=[];
for(var H=0;H<C.length;H++)L.K.yI.push(C[H].x+.5,C[H].y+.5);L.eP=!0};W._H.prototype.Zr=function(L,C,U,E){};
W._H.prototype.fj=function(L,C,U,E){if(this.n.length==0)return;if(E.q(G.yo)||E.q(G.JY)){this.n.pop();
this.D4=this.D4.slice(0,this.zX[this.n.length]);this.zX.pop();if(this.n.length==0)this.clear(L);else this.iX(L);
this.P_(L)}if(E.q(G.CT)){var Y=this.XJ(this.vv,L);this.qC(L,Y);this.finish(L,U,E);this.clear(L)}if(E.q(G.ox)){this.clear(L)}};
W._H.prototype.getSelection=function(L,C,U,E){return W.kd.K4(this.D4)};W._H.prototype.I2=function(L,C){var U=this.n[this.n.length-1],E=U.y*L.d+U.x,Y=C.y*L.d+C.x;
if(this.PX==1)return[Y,E];var z=[Y];while(Y!=E){Y=this.Qv.AL[Y];z.push(Y);if(z.length>5e3){console.log(z);
throw"e"}}return z};W._H.Ud=function(L,C){var U=[],E=L.d;for(var H=0;H<C.length;H++){var Y=C[H];U.push(Y%E+.5,Math.floor(Y/E)+.5)}return U};
W._H.prototype.T8=function(L,C){var U=C.d,E=C.v,Y=L.clone(),r=3;c.Iu.fo(this.Qv,L.y*U+L.x);var z=this.Qv.bR[L.y*U+L.x];
for(var p=-r+1;p<r;p++)for(var T=-r+1;T<r;T++){var k=L.x+T,P=L.y+p;if(k<0||k>=U||P<0||P>=E)continue;
c.Iu.fo(this.Qv,P*U+k);if(this.Qv.bR[P*U+k]<z)Y.U6(k,P)}return Y};W.L4=function(){W.DJ.call(this,[10,36],W.ae9,"tools/ruler");
this.Pw=null;this.oV=null;this.DS=null;this.fm=null};W.L4.prototype=new W.DJ;W.L4.prototype.gQ=function(L){return L.X4};
W.L4.prototype.disable=function(L,C,U,E){this.Pw=this.oV=null;if(L)this.fG(L)};W.L4.prototype.zI=function(L,C,U,E,Y){var z=L.z.S/B.M(),r=L.z.sQ(Y.x,Y.y);
r.x=Math.round(r.x);r.y=Math.round(r.y);var p=this.Pw;if(p&&hZ.sl(r,p[0])*z<6)this.oV=[0];else if(p&&hZ.sl(r,p[1])*z<6)this.oV=[1];
else if(p&&W.L4.ajb(p[0],p[1],r)*z<6&&Math.min(p[0].x,p[1].x)-5<=r.x&&r.x<=Math.max(p[0].x,p[1].x)+5&&Math.min(p[0].y,p[1].y)-5<=r.y&&r.y<=Math.max(p[0].y,p[1].y)+5){this.oV=[0,1];
this.fm=[p[0].clone(),p[1].clone()];this.DS=r}else{this.Pw=[r.clone(),r.clone()];this.oV=[1]}};W.L4.prototype.Yh=function(L,C,U,E,Y){if(this.oV==null)return;
var z=this.Pw,r=this.oV,p=L.z.sQ(Y.x,Y.y);p.x=Math.round(p.x);p.y=Math.round(p.y);if(r.length==2){var T=p.x-this.DS.x,k=p.y-this.DS.y;
z[0]=this.fm[0].clone();z[0].offset(T,k);z[1]=this.fm[1].clone();z[1].offset(T,k)}else{z[r[0]].U6(p.x,p.y);
if(E.q(G.PS)){z[r[0]]=W.Fe.hZ(z[1-r[0]],z[r[0]])}}this.fG(L);this.eo(C,B.E.l,{e:B.U.ik,m:this.id,a1y:z[0],UO:z[1],_Q:L._Q,a0z:L.d})};
W.L4.prototype.bM=function(L,C,U,E,Y){this.oV=null};W.L4.prototype.eo=function(L,C,U){var E=new q(C,!0);
E.data=U;L.B(E)};W.L4.prototype.fG=function(L){var C=this.Pw;if(C==null){L.K.yw=null;L.K.yI=[]}else{var U=[C[0].x,C[0].y,C[1].x,C[1].y];
L.K.yw={Z:["M","L"],c:U};L.K.yI=U}L.eP=!0};W.L4.ajb=function(L,C,U){var E=C.x-L.x,Y=C.y-L.y,z=Math.abs(Y*U.x-E*U.y+C.x*L.y-C.y*L.x),r=Math.sqrt(E*E+Y*Y);
return z/r};W.el=function(){W.dl.call(this,[10,19],W.iO,"tools/sharpen");this.tH="copy"};W.el.prototype=new W.dl;
W.el.prototype.zI=function(L,C,U,E,Y){var z=this.cY.pdetail?iR.FG:iR.iO;if(E.q(G.Lv))z=iR.OZ;this.fu(L,U,E,Y,this.cY.strn,z);
if(this.G2==null)return;this.Ld(L)};W.el.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);if(this.UD)this.GS(L,U,Y);
if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.aw=function(){W.dl.call(this,[10,24],W.ei,"tools/shbrush");
this.tH="draw";this.cY.opacity=.5};W.aw.prototype=new W.dl;W.aw.prototype.zI=function(L,C,U,E,Y){this.fu(L,U,E,Y,1);
if(this.G2==null)return;this.yt(L);this.Ld(L)};W.aw.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);
if(this.UD)this.GS(L,U,Y);if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.aw.prototype.bM=function(L,C,U,E,Y){if(this.G2==null)return;
this.oA(L,"sheal",this.G2.fS(),this.G2.dm(),this.G2.VO(),null);this.s(L,this.G2.VO());W.dl.prototype.bM.call(this,L,C,U,E,Y)};
W.yM=function(){W.dl.call(this,[10,20],W.gh,"tools/smudge");this.tH="copy"};W.yM.prototype=new W.dl;
W.yM.prototype.zI=function(L,C,U,E,Y){this.fu(L,U,E,Y,this.cY.strn,iR.gh);if(this.G2==null)return;this.Ld(L)};
W.yM.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);if(this.UD)this.GS(L,U,Y);if(this.G2==null)return;
if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.FW=function(){W.dl.call(this,[10,23],W._c,"tools/sponge");
this.tH="sponge"};W.FW.prototype=new W.dl;W.FW.prototype.zI=function(L,C,U,E,Y){this.fu(L,U,E,Y,this.cY.flow);
if(this.G2==null)return;this.Ld(L)};W.FW.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);if(this.UD)this.GS(L,U,Y);
if(this.G2==null)return;if(!Y.X4)return;this.CC(L,U,E,Y);this.Ld(L)};W.mZ=function(){W.DJ.call(this,[10,17],W.tJ,"tools/zoom");
this.G$=!1;this.AI=!0;this.q2=0;this.e6=null;this.K5=null;this.TF=0;this.G3=null;this.sG=0;this.QF=new aq([{name:[8,0],ir:"Ctrl + +"},{name:[8,1],ir:"Ctrl + -",rY:!0},{name:[20,3],ir:"Ctrl + 0"},{name:["VAR0: 100%",[20,2]],ir:"Ctrl + 1"}],[{b:B.E.A,m:W.tJ,H:{e:"zoom",AI:!0}},{b:B.E.A,m:W.tJ,H:{e:"zoom",AI:!1}},{b:B.E.A,m:W.tJ,H:{e:"adapt",G:"fitscr"}},{b:B.E.A,m:W.tJ,H:{e:"adapt",G:"pixel"}}])};
W.mZ.prototype=new W.DJ;W.mZ.prototype.Rg=function(L,C,U,E,Y){var z=this.QF;z.f();z.parent=C;z.update(L,U);
var r=new q(B.E.l,!0);r.data={e:B.U.Ww,f0:z,x:Y._5+2,y:Y.x0+1};C.B(r)};W.mZ.prototype.enable=function(L,C,U,E){this.rW(C,E);
if(L&&Date.now()-this.q2<300)this.GV({e:"adapt",G:"pixel"},C,L,E,U);this.q2=Date.now()};W.mZ.prototype.zI=function(L,C,U,E,Y){this.K5=new hZ(Y.x,Y.y);
this.TF=L.z.S;this.G3=L.z.g.clone()};W.mZ.prototype.Yh=function(L,C,U,E,Y){if(this.K5==null)return;var z=Math.exp(Math.log(this.TF)+(Y.x-this.K5.x)/64);
z=Math.max(.02,Math.min(32,z));L.z.S=this.TF;L.z.g=this.G3.clone();this.GV({e:"zoom",S:z,CR:this.K5},C,L,E,U)};
W.mZ.prototype.bM=function(L,C,U,E,Y){if(hZ.sl(this.K5,Y)<4){var z=this.Co(E);this.GV({e:"zoom",AI:z,CR:Y},C,L,E,U)}this.K5=null};
W.mZ.js=[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];
W.mZ.W3=function(L,C,U,E){var Y=1;while(L*Y*1/2>U||C*Y*1/2>E)Y*=1/2;if(L*Y*2/3>U||C*Y*2/3>E)Y*=1/2;else if(L*Y>U||C*Y>E)Y*=2/3;
return Y};W.mZ.Ye=function(L,C){var U=W.mZ.wd(L);if(C&&U==0)return L;if(!C&&U==W.mZ.js.length-1)return L;
return W.mZ.js[C?U-1:U+1]};W.mZ.wd=function(L){var C=0;while(W.mZ.js[C]>L)C++;return C};W.mZ.i2=function(L,C,U,E){var Y=L._u;
if(E==0||E==null){E=W.mZ.Ye(L.S,U);if(E==L.S)return}var z=L.sQ(C.x,C.y);if(Y.d*E<=L.e4.d&&Y.v*E<=L.e4.v){L.g.U6(0,0);
L.S=E}else{var r=L.WF(),p=L.S/E;r.translate(-z.x,-z.y);r.scale(p,p);r.translate(z.x,z.y);L.O0(r)}};W.mZ.prototype.GV=function(L,C,U,E,Y){if(L.e=="pzoom"){if(typeof L.G=="string")return;
L={e:"zoom",S:L.G/100}}var z=0,r=!1,p=null;if(L.e=="adapt"){var T=0;if(L.G=="pixel")T=1;if(L.G=="fitscr"){var T=0,k=U.z.e4.d,P=U.z.e4.v;
T=Math.min((k-14)/U.d,(P-14)/U.v)}p=new hZ(Math.round(U.z.e4.d/2),Math.round(U.z.e4.v/2));z=T;W.mZ.i2(U.z,p,r,z);
U.dD=!0}if(L.e.startsWith("multi")){function b(d){var g=d[0].x-d[1].x,X=d[0].y-d[1].y;return Math.sqrt(g*g+X*X)}function Q(d){return new hZ((d[0].x+d[1].x)/2,(d[0].y+d[1].y)/2)}var K=L.uy,h=Q(K);
if(L.e=="multidown"){this.e6=[K,U.z.S,U.z.sQ(h.x,h.y)]}else{z=this.e6[1]*b(K)/b(this.e6[0]);if(z>=1)z=Math.min(32,Math.round(z));
else{var x=0,O=1e9,y=W.mZ.js;for(var H=0;H<y.length;H++){var v=Math.abs(1-z/y[H]);if(v<O){O=v;x=H}}z=y[x]}if(z!=U.z.S)W.mZ.i2(U.z,h,r,z);
var i=this.e6[2],D=U.z.Q6(i.x,i.y),I=U.z.g;I.x=Math.round(I.x+h.x-D.x);I.y=Math.round(I.y+h.y-D.y);U.dD=!0}}if(L.e=="scroll"){p=L.CR;
this.sG+=L.Vm.y;var m=14;if(this.sG<-m){r=!0;this.sG=Math.max(this.sG+m,-(m-1))}else if(this.sG>m){r=!1;
this.sG=Math.min(this.sG-m,m-1)}else return;W.mZ.i2(U.z,p,r,z);U.dD=!0}if(L.e=="zoom"){p=L.CR?L.CR:new hZ(Math.round(U.z.e4.d/2),Math.round(U.z.e4.v/2));
if(L.S!=null)z=L.S;else r=L.AI;W.mZ.i2(U.z,p,r,z);U.dD=!0}if(L.e=="mskView"){var f=U.N[U.C[0]],A=f.yQ==3?f.iC(U).r:f.xV();
if(L.G==0){U.z.NT=[1,1,1];A.mM=!1}if(L.G==1){U.z.NT=[1,1,1];A.mM=!0}if(L.G==2){U.z.NT=[0,0,0];A.mM=!0}for(var H=0;
H<U.vI.length;H++)U.vI[H].mM=!1;U.te=[];U.eP=!0}};W.mZ.prototype.fj=function(L,C,U,E){if(this.G$!=E.q(G.Lv)){this.G$=E.q(G.Lv);
var Y={e:B.U.ik,m:this.id,G$:this.G$},z=new q(B.E.l,!0);z.data=Y;C.B(z);this.rW(C,E)}};W.mZ.prototype.rW=function(L,C){var U=new q(B.E.l,!0),E=this.Co(C);
U.data={e:B.U.lx,aZ:E?"zoom-in":"zoom-out"};L.B(U)};W.mZ.prototype.oO=function(L,C,U,E){this.AI=L.AI;
this.rW(C,E)};W.mZ.prototype.Co=function(L){var C=this.AI;if(L.q(G.en)&&L.q(G.DM))C=!0;if(this.G$)C=!C;
return C};W.mZ.vM=function(L,C){if(L.q(G.c1)||L.q(G.adu)){C.m=W.tJ;C.data={e:"zoom",AI:!0}}if(L.q(G.t4)){C.m=W.tJ;
C.data={e:"zoom",AI:!1}}if(L.q(G.sF)){C.m=W.tJ;C.data={e:"adapt",G:"fitscr"}}if(L.q(G.gL)){C.m=W.tJ;
C.data={e:"adapt",G:"pixel"}}};W.CI=function(L,C,U){W.DJ.call(this,L,C,U);this.hN=null;this.OY=null;
this.kn=null;this.a7o=0};W.CI.prototype=new W.DJ;W.CI.prototype.enable=function(L,C,U,E,Y){this.OY=U;
var z=new q(B.E.l,!0);z.data={e:B.U.lx,aZ:"default"};C.B(z)};W.CI.prototype.Rg=function(L,C,U,E,Y){if(L.zG()[0].length==0)return;
var z=new q(B.E.l,!0);z.data={e:B.U.ik,m:this.id,q0:Y,Ru:L,us:U};C.B(z)};W.CI.prototype.vL=function(L,C){var U=new q(B.E.l,!0);
U.data={e:B.U.MP,wm:c_.dA};if(!C.Fg)L.B(U);U.data={e:B.U.MP,wm:c_.ty};if(!C.qA.Jd)L.B(U)};W.CI.prototype.xv=function(L,C,U,E){if(U.Yd!=this.id)return;
if(L.C.length==0)return;var Y=L.N[L.C[0]],z=Y.add.vmsk,r=Y.add.vstk,p=W.CI.lF(L,L.C[0]);this.hN=L;this.kn=C;
if(Y.G_()&&z!=null&&(JSON.stringify(r)!=JSON.stringify(U.Xs)||JSON.stringify(p)!=JSON.stringify(U.S1))){this.a7o=Date.now();
var T=new q(B.E.l,!0);T.data={e:B.U.MP,wm:c_.kC,G:p};C.B(T);T.data={e:B.U.MP,wm:c_.Um,G:r};C.B(T)}};
W.CI.prototype.hU=function(L,C){if(this.hN==null)return;if(C==c_.oI||C==c_.kC||C==c_.Um){if(Date.now()-this.a7o<50)return;
var U=C==c_.kC,E=this.hN,Y=U?L.S1:L.Xs,z=[];for(var H=0;H<E.C.length;H++){var r=E.C[H],p=E.N[r];if(!p.G_()||p.add.vmsk==null)continue;
z.push(r)}var T=new q(B.E.A,!0);T.m=W.aV;T.data={e:o.jT,s9:z,JM:U,G:Y};if(z.length!=0)this.kn.B(T)}};
W.CI.prototype.alw=function(L){if(typeof L=="number"){var C=new q(B.E._w,!0);C.data=W.gl.vG(0);C.data.V5.Usng.v.Type.v.Clr.v=c.W._b({h:L>>>16&255,P:L>>>8&255,O:L>>>0&255});
this.kn.B(C)}};W.CI.prototype.GV=function(L,C,U,E,Y){this.kn=C;if(L.e=="newfill"){if(L.fD==0){var z=new q(B.E.l,!0);
z.data={e:B.U.Q1,k5:"colorpicker",Cc:Y.yx,SL:this.alw.bind(this)};C.B(z)}}else if(L.e=="pathedit"){var r=L.ev,p="",T=U.Jd.slice(0),k=U.j5.slice(0),P=U.Jd.slice(0),b=U.j5.slice(0);
if(r=="rnm"){var Q=-1-L.Oi,K=T[Q],h=b7.YE(L.name,K.add);if(Q!=0)P[Q]=h;else{b=[P.length];P.push(h);P[0]=b7.YE("Work Path")}p="Rename"}else if(r=="new"){P.push(b7.YE("Path "+T.length));
b=[P.length-1];p="New"}else if(r=="del"){if(b.length==0)return;b.sort(function(d,F){return d-F});if(b[0]==0){P[0]=b7.YE(T[0].name);
b=b.slice(1)}var x=0;while(b.length!=0){P.splice(b[0]-x,1);b=b.slice(1);x++}p="Delete"}else if(r=="fromsel"){var O=P[0]=b7.YE("Work Path");
b=[0];if(U.t==null)return;var y=U.t.channel.slice(0);for(var H=0;H<y.length;H++)y[H]=y[H]>128?2:1;var v=U.t.rect.clone();
v.WW(1,1);var i=c.F(v.X());c.zM(y,U.t.rect,i,v);var D=ie.lg(i,v.d,v.v,Math.round(v.X()*5e-4)),I=ie.zG(D),m=new c0(1,0,0,1,-1+U.t.rect.x,-1+U.t.rect.y);
for(var H=0;H<I.length;H++)c.a.J(I[H].path.c,m,I[H].path.c);for(var H=0;H<I.length;H++){var f=I[H];if(f.color==1&&f.parent==-1)continue;
var A=c.a.n2(I[H].path,!1);O.add.vmsk.n=O.add.vmsk.n.concat(A.slice(2))}O.add.vogk=o.Gg(O.add.vmsk.n);
p="Selection to"}var d=new hp(p+" Path",this);d.data={Pz:T,Ag:k,a50:P,o8:b};if(r=="fromsel"){d.data.e5=U.t;
d.data.bx=null}U.Sv(d);this.Zm(d.data,U)}else{var g=U.zG(L.e=="append"),I=g[0],X=g[1],O=I[X[0]],n=O.add.vmsk,R=O.add.vogk,l=n.clone(),w=n.clone(),V=JSON.stringify(R);
if(L.e=="remove"){if(w.C.length==0)return;var x=0;for(var H=0;H<w.C.length;H++){R.splice(w.C[H]+x,1);
x--}w.n=c.Y.agk(w.n,w.C);w.C=[];w.f8=[]}if(L.e=="append"){W.CI.ce(L.a7D,w,R)}this.Xq(U,O.Oi,w,R);this.qX(U,L.z9,O.Oi,l,w.clone(),null,V,JSON.stringify(R))}};
W.CI.DF=function(L,C){var U=c.Y.aiG(L.n,L.C),E=[];for(var H=0;H<L.C.length;H++)E.push(JSON.parse(JSON.stringify(C[L.C[H]])));
return[U,E]};W.CI.ce=function(L,C,U){var E=c.Y.ov(C.n),Y=c.Y.ov(L[0]);C.n=C.n.concat(L[0].slice(2));
C.C=[];for(var H=0;H<Y;H++)C.C.push(E+H);for(var H=0;H<Y;H++)U.push(JSON.parse(JSON.stringify(L[1][H])))};
W.CI.prototype.Gs=function(L,C){if(C==null)return!1;var U=C.zG(),E=U[0],Y=U[1];if(Y.length==0)return!1;
var z=E[Y[0]],r=z.add.vmsk;if(r&&r.C.length+r.f8.length!=0)return[G.yo,G.JY].indexOf(L)!=-1};W.CI.prototype.fj=function(L,C,U,E){if(L==null)return;
var Y=L.zG(),z=Y[0],r=Y[1];if(r.length==0)return;var p=z[r[0]],T=p.add.vmsk;if(E.q(G.ox)||E.q(G.CT)){T.f8=[];
L.eP=!0}if(T.C.length!=0){var k=E.wu();if(k.x!=0||k.y!=0){var P=T.clone(),b=T.clone(),Q=new c0(1,0,0,1,k.x,k.y),K=p.add.vogk,h=JSON.stringify(K);
c.Y.IL(b.n,Q,b.C);c.zf.J(K,c.I.BL(Q),b.C);this.Xq(L,p.Oi,b,K);this.qX(L,"Move Paths",p.Oi,P,b.clone(),!0,h,JSON.stringify(K))}if(E.q(G.yo)||E.q(G.JY))this.GV({e:"remove",z9:"Delete Paths"},C,L,E,U)}};
W.CI.prototype.qX=function(L,C,U,E,Y,z,r,p){var T=new hp(C,this);T.data={nY:U,vh:E,rT:Y,acl:z,a8u:r,O6:p};
L.Sv(T)};W.CI.prototype.Zm=function(L,C){if(L.nY!=null)this.Xq(C,L.nY,L.rT.clone(),JSON.parse(L.O6));
else{C.Jd=L.a50.slice(0);C.j5=L.o8.slice(0);C.eP=C.hK=!0}if(L.e5||L.bx){C.t=L.bx;C.U8=!0}};W.CI.prototype.Ic=function(L,C){if(L.nY!=null)this.Xq(C,L.nY,L.vh.clone(),JSON.parse(L.a8u));
else{C.Jd=L.Pz.slice(0);C.j5=L.Ag.slice(0);C.eP=C.hK=!0}if(L.e5||L.bx){C.t=L.e5;C.U8=!0}};W.CI.prototype.Xq=function(L,C,U,E){var Y=C<0?L.Jd[-1-C]:C<1e6?L.N[C]:L.N[C-1e6].add.TySh;
Y.add.vmsk=U;Y.add.vogk=E;if(1e6<=C){b5.Zp(Y);var z=L.N[C-1e6],r=Y,p=this.OY,T=new hX(r.Se,p.tW),k=bk.wV(T,r);
z.rect=k._;z.buffer=k.eB;z.s();L.s()}else if(0<=C){U.st=!0;Y.cr(L);L.s()}L.eP=L.hK=!0};W.CI.lF=function(L,C){var U=L.N[C],E=U.add.vstk,Y=null;
if(E&&!E.fillEnabled.v)Y={L$:0};else if(U.add.SoCo)Y={L$:1,o$:U.add.SoCo};else if(U.add.GdFl)Y={L$:2,o$:U.add.GdFl};
else if(U.add.PtFl)Y={L$:3,o$:U.add.PtFl};return Y};W.CI.kq=function(L,C){var U=L.add.vmsk,E=L.add.vstk,Y=C.L$;
if(E)E.fillEnabled.v=Y!=0;if(Y>0){var z=["SoCo","GdFl","PtFl"][Y-1];for(var H=0;H<3;H++)delete L.add[["SoCo","GdFl","PtFl"][H]];
L.add[z]=C.o$}};W.gl=function(L,C,U,E){W.CI.call(this,L,C,U);this.cY={tmode:1,shape:fA.Q4(),pshape:0,binop:0,crad:0,irad:40,length:4,sides:5,width:5,tolr:5,tsiz:300,cstr:{am:0}};
this.adC=E;this.mz=null;this.TC=null;this.aC=null};W.gl.prototype=new W.CI;W.gl.prototype.gQ=function(L){return L.X4&&this.id!=W.tT};
W.gl.prototype.enable=function(L,C,U,E,Y){this.OY=U;var z=new q(B.E.l,!0);z.data={e:B.U.lx,aZ:"crosshair"};
C.B(z)};W.gl.prototype.V1=function(L,C,U,E){};W.gl.prototype.zI=function(L,C,U,E,Y){var z=this.cY.tmode;
if(z!=2)this.vL(C,U);if(z==2&&!L.qk())return;var r=L.z.sQ(Y.x,Y.y);r=W.P4.wD(L,r,U);this.aC=[r.x,r.y];
this.mz=r;this.TC=new hZ(0,0)};W.gl.prototype.QV=function(L,C,U){var E=[this.mz.clone(),C.clone()];if(this.adC)E=W.gl.V8(E[0],E[1],U,!0,this.cY.cstr);
if(L)L.z.d0=new _(E[0].x,E[0].y,E[1].x-E[0].x,E[1].y-E[0].y);return this.V1(E[0],E[1],U.q(G.PS),this.aC)};
W.gl.prototype.tA=function(L,C,U){var E=L.z.sQ(C.x,C.y),Y=this.cY.cstr;if(Y.am==2){var z=new _(E.x-Y.x,E.y-Y.y,Y.x,Y.y),r=W.P4.HG(L,z,U);
E.x+=r[0];E.y+=r[1];W.P4.E9(L,z,r)}else E=W.P4.wD(L,E,U);return E};W.gl.prototype.Yh=function(L,C,U,E,Y){if(this.mz==null)return;
var z=this.aC,r=z.length,p=Y?this.tA(L,Y,U):new hZ(z[r-2],z[r-1]);if(E.q(G.en))this.mz=p.AE(this.TC);
else this.TC=p.AE(this.mz);z.push(p.x,p.y);if(this.cY.shape==null)this.cY.shape=U.bc[0];var T=this.QV(L,p,E)[0],k=c.a.$x(T);
L.K.yw=k;if(this.id!=W.tT&&this.id!=W.EX&&this.id!=W.Hl)W.DJ.$y(Y.x+10,Y.y-10,L.z.d0,L,U);L.eP=!0};W.gl.prototype.aa3=function(L,C,U,E){var Y=L[4].clone();
if(E){Y.x-=C/2;Y.y-=U/2}var z=this.V1(Y,new hZ(Y.x+C,Y.y+U),!1,this.aC);this.CY(L[0],L[1],L[2],z)};W.gl.prototype.CY=function(L,C,U,E){var Y=new q(B.E._w,!0);
Y.data=W.gl.gJ(E[1],U);C.B(Y);if(E[1].v.classID=="customShape"&&E[1].v.Nm.v.startsWith("--")){var z=L.zG(),r=z[0],p=z[1],T=r[p.pop()],k=T.add.vmsk,P=T.add.vogk,b=k.clone();
b.n=E[0];this.Xq(L,T.Oi,b,P)}};W.gl.prototype.bM=function(L,C,U,E,Y){if(this.mz==null)return;var z=this.tA(L,Y,U),r=this.cY.binop,p=this.cY.tmode,T=this.aC,k=T.length;
if(this.id==W.tT&&k<=4){}else if(k<=4){z.x=Math.round(z.x);z.y=Math.round(z.y);var P=new q(B.E.l);P.data={e:B.U.Q1,k5:"createshape",aaj:this.aa3.bind(this),a54:this.name,a5_:[L,C,U,E,z]};
C.B(P)}else if(k!=2){var b=this.QV(L,z,E),Q=b[0];if(p==0&&Q.length>2){Q[2].ZZ=[1,2,3,0][r];var K=L.zG(!0),h=K[0],x=K[1],O=h[x.pop()],y=O.add.vmsk,v=O.add.vogk,i=y.clone(),D=y.clone(),I=JSON.stringify(v);
D.n=D.n.concat(Q.slice(2));D.C=[c.Y.ov(D.n)-1];var m=c.zf.e8(b[1]);v.push(m?m:c.zf.Zx());this.Xq(L,O.Oi,D,v);
this.qX(L,this.name,O.Oi,i,D,null,I,JSON.stringify(v))}else if(p==1){this.CY(L,C,U,b)}else if(p==2){var D=new o.mR;
D.n=D.n.concat(Q.slice(2));var f=D.xV(),A=c.F(f.rect.X()*4);c.n0(A,(U.yx&255)<<16|(U.yx>>8&255)<<8|(U.yx>>16&255)<<0);
c.Wn(f.channel,A,3);var d=new q(B.E.A,!0);d.m=W.Sw;d.data={e:"draw",rC:{buffer:A,rect:f.rect.clone()},z9:this.name};
C.B(d)}}this.mz=null;L.K.yw=null;L.K.h4=null;L.K.jB=[];L.z.d0=null;L.eP=!0};W.gl.prototype.oO=function(L,C,U,E,Y){for(var U in L)this.cY[U]=L[U]};
W.gl.V8=function(L,C,U,E,Y){var z=L.x,r=L.y,p=C.x,T=C.y;if(Y&&Y.am==2){if(E){p=Math.round(p);T=Math.round(T)}z=p-Y.x;
r=T-Y.y}else{var k=0;if(Y&&Y.am==1)k=Y.y/Y.x;else if(U&&U.q(G.PS))k=1;if(k!=0){if(E){if(z<p)z=Math.floor(z);
else z=Math.ceil(z);if(r<T)r=Math.floor(r);else r=Math.ceil(r)}var P=Math.abs(p-z),b=Math.abs(T-r),Q=P;
if(b/P<k)Q*=b/P/k;p=p>z?z+Q:z-Q;T=T>r?r+Q*k:r-Q*k}if(U&&U.q(G.Lv)){z-=p-z;r-=T-r}}var L=new hZ(z,r),C=new hZ(p,T);
if(E)W.gl.amM(L,C);return[L,C]};W.gl.amM=function(L,C){if(L.x>C.x){var U=L.x;L.x=C.x;C.x=U}if(L.y>C.y){var U=L.y;
L.y=C.y;C.y=U}L.x=Math.floor(L.x);L.y=Math.floor(L.y);C.x=Math.ceil(C.x);C.y=Math.ceil(C.y)};W.gl.a1v=function(){return{classID:"Mk",null:{t:"obj ",v:[{t:"Clss",v:{classID:"contentLayer"}}]},Usng:{t:"Objc",v:{classID:"contentLayer",Type:{t:"Objc",v:{}}}}}};
W.gl.vG=function(L,C){var U=W.gl.a1v();if(C==null)C=JSON.parse(JSON.stringify(gM.bK[L]));hO.T0.L_(C,U.Usng.v.Type.v,L);
return{xo:"make",V5:U}};W.gl.gJ=function(L,C){var U=C.S1,E=JSON.parse(JSON.stringify(C.Xs));if(U.L$==0)E.fillEnabled.v=!1;
var Y=W.gl.vG(Math.max(0,U.L$-1),U.o$);Y.V5.Usng.v.Shp=L;Y.V5.Usng.v.strokeStyle={t:"Objc",v:E};return Y};
W.BZ=function(){W.CI.call(this,[10,29],W.sY,"tools/pen");this.je=null;this.RQ=null;this.tP=1;this.ag0=0;
this.G5=null;this.hi=!1};W.BZ.prototype=new W.CI;W.BZ.prototype.gQ=function(L){return this.je!=null};
W.BZ.prototype.zI=function(L,C,U,E,Y){this.vL(C,U);var z=L.z.sQ(Y.x,Y.y),K,h;z.x=Math.round(z.x);z.y=Math.round(z.y);
var r=W.P4.wD(L,z,U),p=L.zG(this.tP==0),T=p[0],k=p[1],P=T[k.pop()],b=P?P.add.vmsk:null,Q=4*B.M()/L.z.S;
if(b)K=c.Y.gW(b.n,z,!0,Q);if(this.tP==1&&(b==null||(b.f8.length==0||b.f8[0]!=b.n.length-1)&&K.Oi==-1)){var x=new q(B.E._w,!0),O=c.zf.C7("customShape",[0,0,1,1],null,null,null,"--");
x.data=W.gl.gJ(O,U);C.B(x);p=L.zG(!0);T=p[0];k=p[1];P=T[k.pop()];b=P.add.vmsk;b.n=b.n.slice(0,2)}var y=P.add.vogk;
this.je=b.clone();this.RQ=JSON.stringify(y);var v=b.n,i=c.Y.ov(v);h=c.Y.lk(b.n,new _(z.x-Q,z.y-Q,Q*2,Q*2));
K=c.Y.gW(b.n,z,!0,Q);if(K.Oi!=-1&&h[0].length==0){var D=c.Y.Jt(v,K.Oi);while(v[D].length<=K.$Y){K.$Y-=v[D].length;
D+=v[D].length+1}v[D].length++;v.splice(D+2+K.$Y,0,{type:4,OT:r.clone(),D:r.clone(),SC:r.clone()});b.f8=[D+2+K.$Y]}else if(h[0].length==1&&E.q(G.Lv)){var I=h[0],m=b.n.length-1,f=b.n[I];
f.SC=f.D.clone();if(I!=m)f.OT=f.D.clone()}else{var A=0;if(b.f8.length!=1){b.C=[i];v.push({type:3,length:1,ZZ:[1,2,3,0][this.ag0],A9:0,Tn:0,Jh:0});
A=v.length;y.push(c.zf.Zx())}else{var d=b.f8[0],g=c.Y.Ku(v,d),D=c.Y.Jt(v,g);if(d==D+v[D].length&&hZ.sl(z,v[D+1].D)<Q){v[D].type=0;
b.f8=[D+1];this.G5=r;this.hi=!0;this.Xq(L,P.Oi,b,y);L.eP=!0;return}v[D].length++;A=d+1;if(d==D+1&&v[D].length!=2)A=D+1}if(E.q(G.PS)&&v[A-1]&&v[A-1].D)r=W.Fe.hZ(v[A-1].D,r);
v.splice(A,0,{type:4,OT:r.clone(),D:r.clone(),SC:r.clone()});b.f8=[A];this.G5=r}this.Xq(L,P.Oi,b,y);
L.eP=!0};W.BZ.prototype.Yh=function(L,C,U,E,Y){if(this.je==null)return;var z=L.z.sQ(Y.x,Y.y),r=W.P4.wD(L,z,U),p=L.zG(this.tP==0),T=p[0],k=p[1],P=T[k.pop()],b=P.add.vmsk,Q=b.n,K=Q[b.f8[0]];
if(E.q(G.en)){if(E.q(G.PS))r=W.Fe.hZ(this.G5,r);var h=K.D.AE(K.SC),x=K.OT.AE(K.D);K.SC=r;K.D=r.add(h);
K.OT=K.D.add(x)}else{if(E.q(G.PS))r=W.Fe.hZ(K.D,r);if(this.hi){var O=hZ.sl(K.D,r),y=O==0?0:hZ.sl(K.D,K.SC)/O;
K.SC.x=K.D.x+y*(r.x-K.D.x);K.SC.y=K.D.y+y*(r.y-K.D.y)}else K.SC=r;if(E.q(G.Lv))K.type=5;else{K.type=4;
K.OT=K.D.add(K.D.AE(r))}this.G5=r}this.Xq(L,P.Oi,b,P.add.vogk);L.eP=!0};W.BZ.prototype.bM=function(L,C,U,E,Y){if(this.je==null)return;
var z=L.zG(this.tP==0),r=z[0],p=z[1],T=r[p.pop()],k=T.add.vmsk,P=T.add.vogk;this.qX(L,this.hi?"Close Path":"Add Anchor Point",T.Oi,this.je,k.clone(),null,this.RQ,JSON.stringify(P));
this.hi=!1;this.je=null};W.BZ.prototype.oO=function(L,C,U,E,Y){this.tP=L.tmode;this.ag0=L.binop};W.$H=function(){W.gl.call(this,[10,30],W.tT,"tools/fpen",!1)};
W.$H.prototype=new W.gl;W.$H.prototype.V1=function(L,C,U,E){return[c.Y.nx(E,this.cY.tolr),c.zf.C7("customShape",[0,0,1,1],null,null,null,"--")]};
W.xl=function(){W.CI.call(this,[10,27],W.b7,"tools/pselect");this.EB=null;this.yN=!1;this.kR=null;this.je=null;
this.lM=null;this.RQ=null;this.e3=null;this.YC=null;this.W0=null;this.nr=null};W.xl.prototype=new W.CI;
W.xl.prototype.gQ=function(L){return L.X4};W.xl.prototype.zI=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y),r=L.zG(),p=r[0],T=r[1],k,P;
for(var H=0;H<T.length;H++){var b=p[T[H]],Q=b.add.vmsk,K=c.Y.gW(Q.n,z).Oi;if(K!=-1){this.kR=k=b;P=K}for(var h=0;
h<Q.Pw.length;h++){var x=c.Y.VZ(Q.n,Q.Pw[h]);if(x==null)continue;var O=hZ.sl(x,z);if(O<4*B.M()/L.z.S){var y=L.N[b.Oi-1e6].add.TySh,v=y.Se.Curve,i=y.J,D=v.Reversed;
v.Reversed=!1;var v=hX.rP(y.Se.Curve);v.Reversed=D;c.a.J(v[0],i,v[0]);this.W0=[v,h,i.R*i.J2-i.O*i.Z9];
this.kR=k=b;P=0}}if(this.W0)break}if(k!=null){var Q=k.add.vmsk;Q.f8=[];var I=Q.C.indexOf(P);if(E.q(G.PS)){if(I==-1){Q.C.push(P);
this.yN=!0}else Q.C.splice(I,1)}else{if(I==-1)Q.C=[P];this.yN=!0}this.YC=c.Y.JK(Q.n,Q.C)}this.EB=z;this.nr=new dH(z);
L.hK=!0;L.eP=!0};W.xl.prototype.Yh=function(L,C,U,E,Y){if(this.EB==null)return;var z=L.z.sQ(Y.x,Y.y);
if(this.yN){z=this.nr.Q8(z,E);var r=this.kR;if(this.je==null){this.je=this.lM=r.add.vmsk.clone();this.RQ=this.e3=JSON.stringify(r.add.vogk);
if(E.q(G.Lv)){var p=this.je.clone(),T=JSON.parse(this.RQ),k=W.CI.DF(p,T);W.CI.ce(k,p,T);this.lM=p;this.e3=JSON.stringify(T)}}var p=this.lM.clone(),T=JSON.parse(this.e3);
if(this.W0){var P=this.W0,b=P[0][0],Q=c.a.Mv(b,z.x,z.y);p.Pw[P[1]]=P[0][1][Q];var K=b[Q*2],h=b[Q*2+1],x=(b[Q*2+2]-K)*(z.y-h)-(b[Q*2+3]-h)*(z.x-K);
if(P[2]<0)x=-x;p.ks=x>0}else{var O=this.YC.clone(),y=O.x,v=O.y;O.offset(z.x-this.EB.x,z.y-this.EB.y);
O.x=Math.round(O.x);O.y=Math.round(O.y);var i=W.P4.HG(L,O,U),D=new c0(1,0,0,1,O.x-y+i[0],O.y-v+i[1]);
c.Y.IL(p.n,D,p.C);c.zf.J(T,c.I.BL(D),p.C);W.P4.E9(L,O,i)}this.Xq(L,r.Oi,p,T)}else{var I=this.EB;L.K.yw=c.a.kG(new _(I.x,I.y,z.x-I.x,z.y-I.y));
L.eP=!0}};W.xl.prototype.bM=function(L,C,U,E,Y){if(this.EB==null)return;var z=L.z.sQ(Y.x,Y.y),r=this.kR,p=r?r.add.vmsk:null;
if(this.yN){var T=JSON.stringify(r.add.vogk);if(!this.EB.cg(z))this.qX(L,"Move Paths",r.Oi,this.je,p,null,this.RQ,T);
if(L!=null&&L.K.h4){L.K.h4=null;L.eP=!0}}else{if(p){var k=this.EB,P=new _(k.x,k.y,z.x-k.x,z.y-k.y),b=c.Y.a2x(p.n,P);
if(E.q(G.PS)){for(var H=0;H<b.length;H++)if(p.C.indexOf(b[H])==-1)p.C.push(b[H])}else p.C=b}L.K.yw=null;
L.eP=!0}this.EB=null;this.je=null;this.W0=null;this.yN=!1;this.nr=null};W.xl.prototype.xv=function(L,C,U,E){W.CI.prototype.xv.call(this,L,C,U,E);
if(U.Yd!=this.id)return;if(L.C.length==0)return;var Y=L.zG(),z=Y[0],r=Y[1];if(r.length==0)return;var p=z[r[0]],T=p.add.vmsk,k=p.add.vstk,P=p.add.vogk,b=new q(B.E.l,!0);
b.data={e:B.U.ik,m:this.id,bi:"main",Uj:T?T:null,zf:P};C.B(b)};W.xl.prototype.oO=function(L,C,U,E,Y){var z=L.F$;
if(z.Uj){var r=U.zG(),p=r[0],T=r[1];if(T.length==0)return;var k=p[T[0]],P=k.add.vmsk.clone(),b=JSON.stringify(k.add.vogk),Q=z.Uj;
this.Xq(U,k.Oi,Q,z.zf);var K=[18,5];if(P.n.length==Q.n.length)K=P.C[0]==Q.C[0]?"Fill Rule":"Path Order";
this.qX(U,K,k.Oi,P,Q,null,b,JSON.stringify(z.zf))}};W.dr=function(){W.CI.call(this,[10,28],W.JS,"tools/dselect");
this.aa=-1;this.YS=-1;this.BE=null;this.EB=null;this.kR=null;this.je=null;this.RQ=null;this.hN=null;
this.lZ=0;this.ahN={psnap:!1};this.nr=null};W.dr.prototype=new W.CI;W.dr.prototype.gQ=function(L){return L.X4};
W.dr.prototype.oO=function(L){this.ahN=L};W.dr.prototype.GV=function(L,C,U,E,Y){if(L.e=="crnr"){if(U==null)return;
var z=U.zG(),r=z[0],p=z[1];if(p.length==0){alert("No paths selected");return}var T=r[p[0]],k=T.add.vmsk;
if(k.f8.length==0){alert("No corners selected");return}for(var H=0;H<k.f8.length;H++){var P=k.n[k.f8[H]];
if(!P.D.cg(P.SC)||!P.D.cg(P.OT)){alert("Only sharp corners can be rounded");return}}if(this.je==null){this.je=T.add.vmsk.clone();
this.RQ=JSON.stringify(T.add.vogk);this.kR=T;this.hN=U}var b=new q(B.E.l,!0);b.data={e:B.U.Q1,k5:"cornerradius",LE:5,Di:this.abF.bind(this)};
C.B(b)}else W.CI.prototype.GV.call(this,L,C,U,E,Y)};W.dr.prototype.abF=function(L){if(L=="confirm"){var C=this.hN,U=this.kR,E=U.add.vmsk,Y=U.add.vogk;
this.qX(C,[12,94,0],U.Oi,this.je,E,null,this.RQ,JSON.stringify(Y));this.c$();return}var E=this.je.clone(),Y=JSON.parse(this.RQ),z=E.f8;
if(L=="cancel"){}else{var r=[];for(var H=0;H<z.length;H++){var p=z[H],T=c.Y.Ku(E.n,p,!0),b=0;if(r.indexOf(T)!=-1)continue;
r.push(T);var k=c.Y.Jt(E.n,T,!0),P=E.n[k].length,Q=[];for(var K=0;K<P;K++){var h=E.f8.indexOf(k+K+1)==-1?0:L;
Q.push(h);if(h!=0)b++}c.Y.$r(E.n,k,Q);for(var K=0;K<z.length;K++)if(z[K]>k+P)z[K]+=b}this.Rh(E,Y);E.f8=[]}this.Xq(this.hN,this.kR.Oi,E,Y);
if(L=="cancel")this.c$()};W.dr.prototype.disable=function(L,C,U,E){this.RD(L)};W.dr.prototype.zI=function(L,C,U,E,Y){this.RD(L);
var z=L.z.sQ(Y.x,Y.y),b,Q,K;this.BE=z.clone();var r=L.zG(),p=r[0],T=r[1];if(T.length==0)return;var k=4*B.M()/L.z.S,P=new _(z.x-k,z.y-k,k*2,k*2);
for(var h=0;h<T.length;h++){b=this.kR=p[T[h]];Q=b.add.vmsk;K=c.Y.lk(Q.n,P);if(K[0].length+K[1].length+K[2].length!=0)break}var x=[!1,!1,!1];
for(var H=0;H<3;H++){for(var O=0;O<K[H].length;O++)if(Q.f8.indexOf(K[H][O])!=-1){K[H]=[K[H][O]];x[H]=!0;
break}}if(K[0].length!=0&&(x[0]||!x[1]&&!x[2])){var y=K[0][0],v=Q.f8.indexOf(y);if(E.q(G.PS)){if(v==-1)Q.f8.push(y);
else{Q.f8.splice(v,1);L.eP=!0;return}}else if(v==-1)Q.f8=[y];this.aa=y;this.YS=0}else if(K[1].length!=0&&(x[1]||!x[2])){this.aa=K[1][0];
this.YS=1}else if(K[2].length!=0){this.aa=K[2][0];this.YS=2}else{var i=c.Y.gW(Q.n,z,!0,k);if(i.Oi==-1)this.EB=z;
else{Q.C=[i.Oi];Q.f8=[]}}if(this.je==null){this.je=b.add.vmsk.clone();this.RQ=JSON.stringify(b.add.vogk)}this.nr=new dH(z);
L.eP=!0};W.dr.prototype.Yh=function(L,C,U,E,Y){if(L==null)return;var z=L.z.sQ(Y.x,Y.y),r=this.kR;if(this.aa!=-1){var p=this.je.clone(),T=r.add.vogk,k=p.n[this.aa];
k=[k.D,k.OT,k.SC][this.YS];if(E.q(G.PS)){z=this.nr.Q8(z,E);z.x+=k.x-this.BE.x;z.y+=k.y-this.BE.y}else{if(this.ahN.psnap){z.x=Math.round(z.x);
z.y=Math.round(z.y)}z=W.P4.wD(L,z,U)}if(this.YS==0){var P=new c0(1,0,0,1,z.x-k.x,z.y-k.y);c.Y.IL(p.n,P,null,p.f8)}else{var b=p.n[this.aa],Q=b.OT,K=b.SC;
if(this.YS==2){Q=b.SC;K=b.OT}Q.U6(z.x,z.y);if(b.type==1||b.type==4){var h=hZ.sl(Q,b.D),x=hZ.sl(K,b.D);
if(x!=0){K.x=b.D.x-(Q.x-b.D.x)*(x/h);K.y=b.D.y-(Q.y-b.D.y)*(x/h)}}}this.Rh(p,T);this.Xq(L,r.Oi,p,T)}else if(this.EB!=null){var O=this.EB;
L.K.yw=c.a.kG(new _(O.x,O.y,z.x-O.x,z.y-O.y));L.eP=!0}else{var y=L.zG(),v=y[0],i=y[1],r,p,m;if(i.length==0)return;
var D=4*B.M()/L.z.S,I=new _(z.x-D,z.y-D,D*2,D*2);for(var f=0;f<i.length;f++){r=v[i[f]];p=r.add.vmsk;
m=c.Y.lk(p.n,I);if(m[0].length+m[1].length+m[2].length!=0)break}this.RD(L);for(var H=0;H<3;H++){for(var A=0;
A<m[H].length;A++){var d=m[H][A],g=p.n[d];g=H==0?g.D:H==1?g.OT:g.SC;L.K.jZ.push(L.K.lG.length>>>1);L.K.lG.push(g.x,g.y);
L.eP=!0}}}};W.dr.prototype.RD=function(L){if(L&&L.K.lG.length!=0){L.K.lG=[];L.K.jZ=[];L.eP=!0}};W.dr.prototype.bM=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y),r=this.kR,p=r?r.add.vmsk:null,T=r?r.add.vogk:null;
if(this.aa!=-1){if(Date.now()-this.lZ<300){var k=p.n[this.aa],P=this.YS,b=null;if(P==0){var Q=k.OT.cg(k.D),K=k.SC.cg(k.D);
if(!Q&&!K){b="Anchor Type";if(k.type==1||k.type==4)k.type++;else{k.type--;k.SC=k.D.add(k.D.AE(k.OT))}}else{b="Add Handles";
if(Q&&K){k.OT.x-=30;k.SC.x+=30}else if(Q)k.OT=k.D.add(k.D.AE(k.SC));else if(K)k.SC=k.D.add(k.D.AE(k.OT))}}else{b="Remove Handle";
if(P==1)k.OT.mP(k.D);else k.SC.mP(k.D)}this.Rh(p,T);this.Xq(L,r.Oi,p,T);this.qX(L,b,r.Oi,this.je,p,null,this.RQ,JSON.stringify(T))}else if(!this.BE.cg(z)){this.qX(L,"Drag Anchors",r.Oi,this.je,p,null,this.RQ,JSON.stringify(T))}this.lZ=Date.now()}else if(this.EB!=null){var h=this.EB,x=new _(h.x,h.y,z.x-h.x,z.y-h.y);
if(x.d<0)x.x+=x.d;if(x.v<0)x.y+=x.v;x.d=Math.abs(x.d);x.v=Math.abs(x.v);var O=c.Y.lk(p.n,x);p.f8=O[0].concat(E.q(G.PS)?p.f8:[]);
L.K.yw=null}this.c$();L.eP=!0};W.dr.prototype.c$=function(){this.kR=null;this.je=null;this.EB=null;this.aa=this.YS=-1;
this.nr=null};W.dr.prototype.Rh=function(L,C){for(var H=0;H<L.f8.length;H++){var U=c.Y.Ku(L.n,L.f8[H]);
c.zf.M9(C,U)}};W.dr.prototype.fj=function(L,C,U,E){if(L==null)return;var Y=L.zG(),z=Y[0],r=Y[1];if(r.length==0)return;
var p=z[r[0]],T=p.add.vmsk;if(T==null||T.f8.length==0)return;var k=p.add.vogk,P=JSON.stringify(k),b=E.wu();
if(b.x!=0||b.y!=0){var Q=T.clone(),K=T.clone(),h=new c0(1,0,0,1,b.x,b.y);c.Y.IL(K.n,h,null,K.f8);this.Rh(K,k);
this.Xq(L,p.Oi,K,k);this.qX(L,"Move Anchors",L.C[0],Q,K.clone(),!0,P,JSON.stringify(k))}if(E.q(G.yo)||E.q(G.JY)){var Q=T.clone(),K=T.clone();
K.n=c.Y.afR(K.n,K.f8,k);var x=c.Y.ov(K.n);for(var H=0;H<K.C.length;H++)if(K.C[H]>=x){K.C.splice(H,1);
H--}K.f8=[];this.Xq(L,p.Oi,K,k);this.qX(L,"Delete Anchors",p.Oi,Q,K.clone(),!0,P,JSON.stringify(k))}};
W.dr.prototype.qX=function(L,C,U,E,Y,z,r,p){var T=L.bQ();if(z&&T!=null&&T.m==this&&T.data.acl&&T.data.nY==U&&JSON.stringify(T.data.vh.f8)==JSON.stringify(E.f8)){T.data.rT=Y;
T.data.O6=p}else{var T=new hp(C,this);T.data={nY:U,vh:E,rT:Y,acl:z,a8u:r,O6:p};L.Sv(T)}};W.Rect=function(){W.gl.call(this,[10,32],W.Hg,"tools/rect",!0)};
W.Rect.prototype=new W.gl;W.Rect.prototype.V1=function(L,C,U){var E=this.cY.crad,Y=C.x-L.x,z=C.y-L.y;
return[c.Y.tD.Rect(L.x,L.y,Y,z,E),c.zf.C7("Rctn",[L.x,L.y,C.x,C.y],[E,E,E,E])]};W.vm=function(){W.gl.call(this,[10,33],W.Ik,"tools/ellipse",!0)};
W.vm.prototype=new W.gl;W.vm.prototype.V1=function(L,C,U){var E=C.x-L.x,Y=C.y-L.y;return[c.Y.tD.vm(L.x,L.y,E,Y),c.zf.C7("Elps",[L.x,L.y,C.x,C.y])]};
W.WQ=function(){W.gl.call(this,[10,34],W.EX,"tools/pshape",!1)};W.WQ.prototype=new W.gl;W.WQ.prototype.V1=function(L,C,U){var E=this.cY.pshape,Y=this.cY.crad,z=this.cY.irad/100,r=this.cY.sides,p=this.cY.width,T=this.cY.tsiz,k=this.cY.length,O;
C=C.clone();if(U){if(Math.abs(C.x-L.x)<Math.abs(C.y-L.y))C.x=L.x;else C.y=L.y}var P=L.x,b=L.y,Q=C.x,K=C.y,h=Math.sqrt((Q-P)*(Q-P)+(K-b)*(K-b)),x=Math.atan2(-K+b,Q-P);
if(E==0)O=c.Y.tD.gE(P,b,h,x,r,Y);if(E==1)O=c.Y.tD.adw(P,b,h,x,r,Y,z);if(E==2)O=c.Y.tD.am6(L.x,L.y,C.x,C.y,p,T/100);
if(E==3)O=c.Y.tD.a7B(P,b,h,x,k);return[O,c.zf.C7("customShape",[L.x,L.y,C.x,C.y],null,null,null,"--")]};
W.WQ.prototype.fj=function(L,C,U,E){var Y=E.wu(),z=this.cY,r,p;if(Y.y!=0){var T=-Y.y,k=z.pshape;if(k<2){r="sides";
p=Math.max(3,Math.min(100,z.sides+T))}else if(k==2){r="width";p=Math.max(1,Math.min(100,z.width+T))}else if(k==3){r="length";
p=Math.max(4,Math.min(40,z.length+T))}}if(Y.x!=0){r="pshape";p=Math.max(0,Math.min(3,z.pshape+Y.x))}if(r){var P=new q(B.E.l,!0),b={};
b[r]=p;z[r]=p;P.data={e:B.U.ik,m:this.id,ev:"vals",a6n:b};C.B(P);this.Yh(L,C,U,E)}};W.pN=function(){W.gl.call(this,[10,35],W.Hl,"tools/line",!1)};
W.pN.prototype=new W.gl;W.pN.prototype.V1=function(L,C,U){var E=this.cY.width;C=C.clone();if(U){C=W.Fe.hZ(L,C)}return[c.Y.tD.pN(L.x,L.y,C.x,C.y,E),c.zf.C7("Ln",null,null,[L.x,L.y,C.x,C.y],E)]};
W.Ef=function(){W.gl.call(this,[10,31],W.yX,"tools/cshape",!0)};W.Ef.prototype=new W.gl;W.Ef.prototype.V1=function(L,C,U){var E=this.cY.shape,Y=E.Ke.d/E.Ke.v,z=o.mR.Xu(E.n);
C=C.clone();if(U){C.y=L.y+(C.x-L.x)/Y}var r=C.x-L.x,p=C.y-L.y;c.Y.IL(z,new c0(r,0,0,p,L.x,L.y));return[z,c.zf.C7("customShape",[L.x,L.y,C.x,C.y],null,null,null,E.gf)]};
W.o=function(L,C,U){W.DJ.call(this,L,C,U);this.Yy=0;this.N=null;this.r3=null;this.us=null;this.B_=1;
this.Gq=!1;this.cursor=null;this.vj=null;this.e5=null;this.Sk=!1;this.pf=null;this.afi=0;this.fn=null;
this.PX=0;this.TU=null;this.E$=null;this.Rs=null;this.l0=null;this.afu=null;this.KB=null};W.o.prototype=new W.DJ;
W.o.Lh=function(L,C){var U={classID:"null",null:hy.K1("Dcmn",!0)};if(L)U.Angl={t:"UntF",v:{type:"#Ang",val:C}};
else U.Axis={t:"enum",v:{Ornt:C}};return{xo:L?"rotateEventEnum":"flip",V5:U}};W.o.prototype.Rg=function(L,C,U,E,Y){var z=new q(B.E.l,!0);
z.data={e:B.U.ik,m:this.id,q0:Y,Ru:L,us:U};C.B(z);this.c4=!1};W.o.prototype.gQ=function(L){return this.E$&&this.E$.ft()};
W.o.prototype.GV=function(L,C,U,E,Y){this.us=Y;if(L.e=="again"&&this.fn==null)return;if(L.e=="doMouseDown"){if(this.E$==null)return;
this.zI(U,C,Y,E,L.CR);return}if(!this.XZ(U,Y))return;if(this.E$){this.Wb(L,this.E$.$j());this.GN(U,Y,0,!0);
this.R6(U);return}this.uh(U,L.$==null,L.$);this.uj(U);this.Wb(L);this.cB(U,C,L.z9,!1)};W.o.prototype.Wb=function(L,C){var U=this.TU;
if(C==null){var E=L.jP!=null?L.jP:4;C=this.E$.a41()[E]}var Y=C.x,z=C.y;if(L.e=="rot"&&L.G!=Math.PI&&(U.d+U.v&1)==1){Y=Math.floor(Y);
z=Math.floor(z)}var r=new c0;r.translate(-Y,-z);if(L.e=="rot")r.rotate(L.G);if(L.e=="scl")r.scale(L.G.x,L.G.y);
if(L.e=="mat")r.concat(L.G);r.translate(Y,z);if(L.e=="again")r=this.fn;var p=this.E$.Bj();c.a.J(p,r,p);
this.E$.a5(p)};W.o.prototype.sH=function(){return!0};W.o.prototype.XZ=function(L,C){if(L==null)return!1;
if(this.id==W.B9)return L.t!=null;var U=L.p9(!0,null,null,!0);if(this.id==W.sK&&L.N[U[0]].rect.ue()){alert("Layer is empty.");
return!1}for(var H=0;H<U.length;H++){var E=L.N[U[H]];if(E.zm(2)||E.zm(31)){alert(gS.get([6,57,0]));return!1}if(E.add.artb){alert("You can not transform the whole artboard");
return!1}if(E.add.TySh)if(!bk.br(E.add.TySh,C.tW))return!1;if(E.add.SoLd){if(U.length==1&&!c.h2.D3(E.add.SoLd.warp.v)&&(E.xV()&&E.xV().zF||E.add.vmsk&&E.add.vmsk.zF)){alert("Unlink masks before transforming Smart Object");
return!1}if(!L.a16(E.add.SoLd.Idnt.v)){alert("Unsupported format of the smart object ("+L.tE(E.add.SoLd.Idnt.v).GQ+")");
return!1}}}if(L.t==null)return!0;if(!L.qk())return!1;return L.hl()};W.o.prototype.zI=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y);
if(this.PX==1){var r=c.I.G$(c.I.O4(this.E$.Bj(),this.TU));z=c.I.Wi(r,z)}var p=this.PX==0?this.E$:this.Rs;
this.Gq=p.zI(L,U,E,z);if(this.Gq&&p.b5(z)){if(Date.now()-this.afi<250)this.cB(L,C,null,!0);this.afi=Date.now()}};
W.o.prototype.cl=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.lx,aZ:this.cursor};L.B(C)};W.o.prototype.Yh=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y);
if(this.PX==1){var r=c.I.G$(c.I.O4(this.E$.Bj(),this.TU));z=c.I.Wi(r,z)}var p=this.PX==0?this.E$:this.Rs;
if(!Y.X4){var T="default";if(p){var k=p.J8(z,L.z.S);if(k)T=k}if(T!=this.cursor){this.cursor=T;this.cl(C)}}if(!this.Gq)return;
p.Yh(L,U,E,z);this.GN(L,U,0,!0);this.R6(L);this.iD(C)};W.o.prototype.bM=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y);
this.E$.bM(L,U,E,z);this.Gq=!1};W.o.prototype.fj=function(L,C,U,E){if(E.q(G.CT))this.cB(L,C,null,!0);
else if(E.q(G.ox))this.ZS(L,C);else{var Y=this.E$.fj(L,U,E);if(Y){this.GN(L,U,0,!0);this.iD(C)}}};W.o.prototype.oO=function(L,C,U,E){if(L.bi=="commit")this.cB(U,C,null,!0);
else if(L.bi=="cancel")this.ZS(U,C);else if(L.bi=="switchWarp"){this.PX=1-this.PX;this.a2i();this.R6(U);
this.iD(C)}else if(L.bi=="wrp"){this.Rs.Wo(L.ge);this.R6(U);this.GN(U,this.us,0,!0)}else if(L.bi=="ctyp"){this.E$.a5B(L.dL);
this.R6(U);this.iD(C)}else if(L.bi=="cen"){this.E$.a3a(L.Nb);this.R6(U);this.GN(U,this.us,0,!0);this.iD(C)}else if(L.bi=="trn"){var Y=c.I.BL(L.WZ),z=this.TU,r=c.I.O4(this.E$.Bj(),this.TU);
Y[6]=r[6],Y[7]=r[7];var p=[z.x,z.y,z.x+z.d,z.y,z.x+z.d,z.y+z.v,z.x,z.y+z.v];c.I.apply(Y,p);this.B_=L.B_;
this.E$.a5(p);this.R6(U);this.GN(U,this.us,0,!0)}};W.o.prototype.R6=function(L){if(this.PX==0)this.E$.pA(L,this.us);
else{this.Rs.pA(L);var C=c.I.O4(this.E$.Bj(),this.TU);c.I.apply(C,L.K.yw.c);c.I.apply(C,L.K.yI)}};W.o.prototype.cB=function(L,C,U,E){this.GN(L,this.us,this.B_);
var Y=new hp(U?U:this.name,this);if(this.Yy==0)Y.data={type:this.Yy,N:this.N,pf:this.r3,Jz:W.o.AD(L,this.N)};
else if(this.Yy==1){var z=L.N[this.N[0]],r;if(z.kK.yQ<=0){r=c.F(z.kK.dE.X());c.wH(z.kK.zK,r,3)}else r=L.t.channel;
var p={rect:z.kK.dE.clone(),channel:r};Y.data={type:this.Yy,$:this.N[0],e5:this.e5,bx:p,vj:this.vj,Sk:this.Sk,kK:z.kK,pf:this.pf,Jz:{_:z.kK.dE,JL:z.kK.zK}}}else if(this.Yy==2){Y.data={type:this.Yy,e5:this.e5,bx:{rect:L.t.rect.clone(),channel:L.t.channel.slice(0)}}}L.Sv(Y);
var T=this.TU,k=new hZ(T.x+T.d/2,T.y+T.v/2),P=c.I.O4(this.E$.Bj(),T),b=c.I.bm(P),Q=new c0;Q.translate(k.x,k.y);
Q.concat(b);Q.translate(-k.x,-k.y);b=Q.clone();var K=-Math.atan2(-b.O,b.R),h=new c0;h.rotate(K);b.concat(h);
function x(v,i){return{t:"UntF",v:{type:["#Pxl","#Prc","#Ang"][i],val:v}}}var O=hy.K1("Lyr",!0);if(this.id==W.B9)O.v[0]={t:"prop",v:{classID:"Chnl",keyID:"fsel"}};
var y={classID:"null",null:O,FTcs:{t:"enum",v:{QCSt:"Qcsa"}},Intr:{t:"enum",v:{Intp:"Bcbc"}},Ofst:{t:"Objc",v:{__name:"Offset",classID:"Ofst",Hrzn:x(Q.Yt,0),Vrtc:x(Q.rv,0)}},Skew:{t:"Objc",v:{classID:"Pnt",Hrzn:x(Math.atan(b.Z9)*180/Math.PI,2),Vrtc:x(0,2)}},Wdth:x(b.R*100,1),Hght:x(b.J2*100,1),Angl:x(K*180/Math.PI,2)};
this.kn=C;this.track({xo:"transform",V5:y});this.escape(L,C,E)};W.o.prototype.ZS=function(L,C){if(this.Yy==0)W.o.rq(L,this.N,this.r3);
else if(this.Yy==1){var U=L.N[this.N[0]];L.t=this.e5;if(!this.Sk){U.kK.dE=this.pf._;U.kK.zK=this.pf.JL;
U.TA(L,0,0,L.t)}else{U.pK(L,this.vj)}L.s();L.U8=!0}else if(this.Yy==2){L.t=this.e5;L.U8=!0}this.escape(L,C,!0)};
W.o.prototype.escape=function(L,C,U){this.E$.clear(L);this.E$=null;this.Rs=null;this.KB=null;this.PX=0;
if(U)this.eo(C,B.E.l,{e:B.U.Rj})};W.o.prototype.Zm=function(L,C){if(L.type==0)W.o.rq(C,L.N,L.Jz);else{if(L.type==1){var U=C.N[L.$];
if(L.Sk){U.kK=L.kK}else{U.kK.dE=L.Jz._;U.kK.zK=L.Jz.JL}U.TA(C,0,0,C.t);C.s()}C.t={rect:L.bx.rect.clone(),channel:L.bx.channel.slice(0)};
C.U8=!0}};W.o.prototype.Ic=function(L,C){if(L.type==0)W.o.rq(C,L.N,L.pf);else{if(L.type==1){var U=C.N[L.$];
if(L.Sk){U.pK(C,L.vj)}else{U.kK.dE=L.pf._;U.kK.zK=L.pf.JL;U.TA(C,0,0,C.t)}C.s()}C.t=L.e5;C.U8=!0}};W.o.prototype.uh=function(L,C,U){L.zG();
var E=[];if(U==null)for(var H=0;H<L.j5.length;H++)if(L.Jd[L.j5[H]].add.vmsk.n.length>2)E.push(-1-L.j5[H]);
var Y=[],z=L.z.NT;if(z[0]+z[1]+z[2]==3)if(U!=null||E.length==0||L.cE!=null&&L.cE.length!=0)Y=L.p9(C,U,null,!0);
Y=Y.concat(E);for(var H=0;H<L.te.length;H++)Y.push(-1e3-L.te[H]);this.N=Y};W.o.prototype.enable=function(L,C,U,E,Y,z,r){if(this.cursor==null)this.cursor="default";
this.cl(C);if(this.E$)return;this.us=U;this.uh(L,!0);this.uj(L,z&&z.AT!=null&&z.AT!=-1?z.AT:null,r);
this.iD(C);this.R6(L);if(z&&z.AT==-1)this.oO({bi:"switchWarp"},C,L,E)};W.o.prototype.iD=function(L){var C={e:B.U.ik,m:this.id};
if(this.PX==0){var U=c.I.O4(this.E$.Bj(),this.TU),E=c.I.bm(U);C.WZ={W1:E,dL:this.E$.abJ(),Nb:this.E$.$j(),_:this.TU.clone()}}else{C.ge=this.Rs._N()}C.a8y=this.Rs!=null;
this.eo(L,B.E.l,C)};W.o.prototype.uj=function(L,C,U){var E=this.id==W.B9,Y=!0,z=this.N[0],r=L.N[z],T=null;
if(E){this.Yy=2;this.e5=L.t}else if(L.t&&this.N.length==1&&z>=0&&!r.rect.ue()){this.Yy=1;this.e5=L.t;
this.vj=r.kK;this.Sk=!1;if(!r.J6(L,L.t)){this.Sk=!0;r.ME(L,L.t,!1)}this.pf={JL:r.kK.zK,_:r.kK.dE}}else{this.Yy=0;
this.r3=W.o.AD(L,this.N,null,U);for(var H=0;H<this.r3.length;H++)if(this.r3[H][3]!=null)Y=!1}var p=this.Yy==1;
if(this.r3&&this.r3.length==1){var k=this.r3[0];if(k[3]==null)p=!0;if(k[4]!=null){T=L.N[this.N[0]].add.SoLd;
if(k[1]||k[2])p=!1}}var P=E?L.t.rect.clone():W.o.dm(L,this.N,U);this.TU=P;if(!E&&T){var b=W.o.pp(T.nonAffineTransform);
this.TU=c.a.mE(c.h2.b4(T.warp.v));if(p)this.Rs=new h$(T.warp.v);this.l0=c.I.O4(b,this.TU);this.E$=new hV(b,!0,!0,Y,!1,!1,C)}else{if(p||E)this.Rs=new h$(c.h2.F(this.TU));
this.l0=[1,0,0,0,1,0,0,0];if(this.id==W.sK)C=3;this.E$=new hV([P.x,P.y,P.x+P.d,P.y,P.x+P.d,P.y+P.v,P.x,P.y+P.v],!0,!0,Y,!1,!1,C)}this.afu=[1,0,0,0,1,0,0,0];
if(this.id==W.sK){var Q=this.r3[0][0],K=Q.Tu,h=K[1];this.KB=c.bu.aiy(K[0],h.d,h.v)}};W.o.dm=function(L,C,U){if(C==null)C=L.p9(!0,null,null,!0);
var E=new _;if(L.t&&C.length==1&&C[0]>=0)E=L.t.rect.clone();else for(var H=0;H<C.length;H++){var Y=C[H],z=0<=Y?L.N[Y]:-1e3<Y?L.Jd[-1-Y]:L.vI[-1e3-Y],r=z.add?z.add.vmsk:null,p=0<=Y?z.DZ(L,C.length==1,!1,U):-1e3<Y?c.Y.JK(r.n,C.length==1&&r.C.length!=0?r.C:null):z.rect.clone();
E=E.EU(p)}return E};W.o.prototype.eo=function(L,C,U,E){var Y=new q(C,!0);Y.data=U;if(E)Y.m=E;L.B(Y)};
W.o.AD=function(L,C,U,E){var Y=[];for(var H=0;H<C.length;H++){var z=C[H],r,p;if(z>=0){r=L.N[z];p=r.Vc(L,U,E)}else if(z>-1e3){r=L.Jd[-1-z];
p=[2]}else{Y.push([null,null,null,null,null,null,null,L.vI[-1e3-z].clone()]);continue}var T=[];if(p.indexOf(0)!=-1){var k={Tu:[r.buffer.slice(0),r.rect.clone()]};
T.push(k);if(r.s7()){var P=r.iC(L);k.aab=P.buffer.slice(0);k.a1H=P.rect.clone()}}else T.push(null);if(p.indexOf(1)!=-1)T.push(r.xV().clone());
else T.push(null);if(p.indexOf(2)!=-1)T.push({Uj:r.add.vmsk.clone(),H0:r.add.vstk?JSON.parse(JSON.stringify(r.add.vstk)):null,o$:r.add.vstk?W.CI.lF(L,z):null,zf:r.add.vogk?JSON.parse(JSON.stringify(r.add.vogk)):null});
else T.push(null);if(r.add.TySh&&T[0]){b5.Zp(r.add.TySh);T.push(r.add.TySh.J.clone())}else T.push(null);
if(r.add.SoLd&&T[0])T.push(JSON.parse(JSON.stringify(r.add.SoLd)));else T.push(null);if(p.indexOf(3)!=-1)T.push(r.iC(L).r.clone());
else T.push(null);if(r.add.lmfx)T.push(JSON.stringify(r.add.lmfx));else T.push(null);Y.push(T)}return Y};
W.o.rq=function(L,C,U){for(var H=0;H<C.length;H++){var E=C[H],Y=0<=E?L.N[E]:-1e3<E?L.Jd[-1-E]:L.vI[-1e3-E],z=U[H];
if(z[0]){Y.rect=z[0].Tu[1].clone();Y.buffer=z[0].Tu[0].slice(0);if(Y.s7()){var r=Y.iC(L);r.buffer=z[0].aab.slice(0);
r.rect=z[0].a1H.clone()}}if(z[1]){Y.xV().channel=z[1].channel.slice(0);Y.xV().rect=z[1].rect.clone();
Y.xV().st=!0}if(z[2]){Y.add.vmsk=z[2].Uj.clone();if(z[2].o$)W.CI.kq(Y,z[2].o$);if(z[2].H0)Y.add.vstk=JSON.parse(JSON.stringify(z[2].H0));
if(z[2].zf)Y.add.vogk=JSON.parse(JSON.stringify(z[2].zf))}if(z[3]){Y.add.TySh.J=z[3].clone();b5.Dv(Y.add.TySh)}if(z[4]){Y.add.SoLd=JSON.parse(JSON.stringify(z[4]))}if(z[5]){var p=Y.iC(L).r;
p.channel=z[5].channel.slice(0);p.rect=z[5].rect.clone()}if(z[6]){Y.add.lmfx=JSON.parse(z[6])}if(z[7]){Y.channel=z[7].channel.slice(0);
Y.rect=z[7].rect.clone();Y.st=!0}if(0<=E){Y.cr(L);Y.s()}}L.s()};W.o.ia=function(L){var C=L.clone(),U=Math.atan2(-C.O,C.R),E=new c0;
E.rotate(-U);C.concat(E);return(Math.abs(C.R)+Math.abs(C.J2))/2};W.o.Bg=function(L,C,U,E,Y,z,r,p,T,k){if(typeof z[0]=="number"){var P=[];
for(var H=0;H<U.length;H++)P[H]=z;z=P}for(var H=0;H<U.length;H++){var b=z[H],Q=c.I.bm(b),K=W.o.ia(Q),h=U[H],x=0<=h?L.N[h]:-1e3<h?L.Jd[-1-h]:L.vI[-1e3-h],O=E[H];
if(O[0]&&x.add.lmfx&&p)ca.xX(x.add.lmfx,K);if(O[0]&&!O[3]&&!O[4]&&!O[5]){var y=O[0].Tu;if(T){var v=T.clone(),i=c.F(v.X()*4);
c.La(y[0],y[1],i,v);y=[i,v]}var D=W.o.WC(y,Y,b,r,Y==0?x.buffer.buffer:null,null,null,k);if(D){x.rect=D.rect;
x.buffer=D.buffer}}if(O[1])W.o.Zi(L,O[1],x.xV(),Y,b,r);if(O[2]){var I=r&&!c.h2.D3(r),m=O[2].Uj.clone(),f=U.length==1&&m.C.length!=0,A=U.length==1&&m.f8.length>1;
if(A)f=!1;var d=f?m.C:null,g=A?m.f8:null;if(I){var X=c.h2.b4(r);c.I.apply(b,X);c.Y.akj(m.n,X,d,g)}else c.Y.anl(m.n,b,d,g);
if(x.add.vstk&&p){x.add.vstk.strokeStyleLineWidth.v.val=O[2].H0.strokeStyleLineWidth.v.val*K;var n=O[2].o$;
if(n.L$==3){n=JSON.parse(JSON.stringify(n));var R=n.o$.phase.v;n.o$.Scl.v.val=Math.round(n.o$.Scl.v.val*K);
R.Hrzn.v=Math.round(R.Hrzn.v*K);R.Vrtc.v=Math.round(R.Vrtc.v*K);W.CI.kq(x,n)}}if(x.add.vogk){x.add.vogk=JSON.parse(JSON.stringify(O[2].zf));
if(I||A)c.zf.a75(x.add.vogk);else c.zf.J(x.add.vogk,b,U.length>1?[]:m.C,p)}m.hY*=K;x.add.vmsk=m;if(x.add.vogk)c.zf.H7(x.add.vogk,x.add.vmsk)}if(O[3]){var l=O[3].clone();
l.concat(Q);x.add.TySh.J=l;b5.Dv(x.add.TySh);var w=new hX(x.add.TySh.Se,C.tW),V=bk.wV(w,x.add.TySh);
x.rect=V._;x.buffer=V.eB}if(O[4]){var F=x.add.SoLd,Z=W.o.pp(O[4].nonAffineTransform);c.I.apply(b,Z);
var M=c.a.wh(Z);if(hV.xU(Z)){if(r){var a=c.a.mE(c.h2.b4(O[4].warp.v)),e=c.I.O4(Z,a),N=c.a.mE(c.h2.b4(r));
Z=[N.x,N.y,N.x+N.d,N.y,N.x+N.d,N.y+N.v,N.x,N.y+N.v];c.I.apply(e,Z);F.warp.v=r}var J=c.I.O4(Z),s=Z;if(!c.I.tC(J)){J[6]=J[7]=0;
s=[0,0,1,0,1,1,0,1];c.I.apply(J,s)}F.Trnf=W.o.M4(s);F.nonAffineTransform=W.o.M4(Z);x.RM(L,Y==0)}}if(O[5])W.o.Zi(L,O[5],x.iC(L).r,Y,b,r);
if(O[7])W.o.Zi(L,O[7],x,Y,b,r);if(0<=h){if(Y!=0)x.Jx();x.cr(L);x.s()}}L.s()};W.o.dy=function(L,C,U,E,Y,z){if(U==null)U=!1;
return W.o.WC(L,U?0:1,c.I.BL(C),null,E,Y,z,U)};W.o.WC=function(L,C,U,E,Y,z,r,p){if(p==null)p=!1;if(p&&r)throw"e";
var T={},Q=0,K=.3;if(E&&!c.h2.D3(E)){var k=c.h2.b4(E);c.I.apply(U,k);T.rect=c.a.wh(k);T.buffer=c.F(T.rect.X()*4);
c.DL.drawImage(k,L[0],L[1].d,L[1].v,T.buffer,T.rect,C==0);return T}c.cf(L);var P=L[0],b=L[1],h=b.X()*W.o.ia(c.I.bm(U));
if(p&&h>4e6)K=h>8e6?2.2:1.2;while(Q+3<L.length&&L[Q+3].X()>16&&c.I.tC(U)&&W.o.ia(c.I.bm(U))<K){Q+=2;
var x=L[Q],O=L[Q+1],y=b.d/O.d,v=b.v/O.v;U=c.I.O1(U,[1,0,b.x,0,1,b.y,0,0]);U=c.I.O1(U,[y,0,0,0,v,0,0,0]);
U=c.I.O1(U,[1,0,-b.x,0,1,-b.y,0,0]);b=O;P=x}var i=c.I.O1(U,c.I.BL(new c0(b.d,0,0,b.v,b.x,b.y))),D=[0,0,1,0,1,1,0,1];
c.I.apply(i,D);T.rect=c.a.wh(D);if(r)T.rect=T.rect.eR(r);if(p){while((T.rect.d&3)!=0)T.rect.d++;while((T.rect.v&3)!=0)T.rect.v++}if(!hV.xU(D)||T.rect.d>1e5||T.rect.v>1e5||T.rect.X()>3e4*3e4)return null;
var I=T.rect.X()*4;if(Y&&Y.byteLength>=I&&I>=Y.byteLength>>2){T.buffer=new Uint8Array(Y)}else{T.buffer=c.F(I)}c.I.drawImage(i,P,b.d,b.v,T.buffer,T.rect,C==0,z,p);
if(C==2&&T.buffer){var m=T.rect.d,f=T.rect.v,A;A=[0,-1,0,-1,16,-1,0,-1,0];A=c.N1.hx(A);var d=T.buffer.slice(0);
c.N1.jg(d,T.buffer,m,f,A,255,!1,!0)}if(T.buffer)return T};W.o.Zi=function(L,C,U,E,Y,z){if(C.color==255)c.G$(C.channel);
var r=C.rect,p=c.F(r.X()*4);c.Wn(C.channel,p,3);var T=W.o.WC([p,r],E,Y,z);if(T){U.rect=T.rect;U.channel=c.F(T.rect.X());
c.wH(T.buffer,U.channel,3);U.st=!0}if(C.color==255){c.G$(C.channel);if(T)c.G$(U.channel)}};W.o.pp=function(L){var C=[],U=L.v.length;
for(var H=0;H<U;H++)C.push(L.v[H].v);return C};W.o.M4=function(L){var C={t:"VlLs",v:[]},U=L.length;for(var H=0;
H<U;H++)C.v.push({t:"doub",v:L[H]});return C};W.o.prototype.a2i=function(){var L=c.a.mE(c.h2.b4(this.Rs._N())),C=c.I.O4(this.E$.Bj(),this.TU),U=[L.x,L.y,L.x+L.d,L.y,L.x+L.d,L.y+L.v,L.x,L.y+L.v];
c.I.apply(C,U);this.E$.a5(U);this.TU=L};W.o.prototype.GN=function(L,C,U,E){var Y=c.I.O4(this.E$.Bj(),this.TU);
Y=c.I.O1(Y,c.I.G$(this.l0));var z=this.Rs?this.Rs._N():null;if(this.Yy==0){var r=this.fn=c.I.bm(Y);if(this.id==W.sK){var p=this.r3[0][0],T=p.Tu,k=T[1],P=~~(k.d*Math.max(0,r.R)),b=~~(k.v*Math.max(0,r.J2)),Q=new _(Math.round(r.R*k.x+r.Yt),Math.round(r.J2*k.y+r.rv),P,b),K=c.bu.J(this.KB,Q),h=L.N[this.N[0]];
h.buffer=K;h.rect=Q;h.s();L.s()}else W.o.Bg(L,C,this.N,this.r3,U,Y,z,null,null,E)}else if(this.Yy==1){var x=L.N[this.N[0]],k=this.pf._;
if(x.yQ<=0){var O=this.pf.JL,y=this.e5;if(z&&!c.h2.D3(z)&&!y.rect.cg(k)){var K=c.F(y.rect.X()*4);c.La(O,k,K,y.rect);
O=K;k=y.rect}var v=W.o.WC([O,k],U,Y,z);if(v){x.kK.zK=v.buffer;x.kK.dE=v.rect;var i=c.F(v.rect.X());c.wH(x.kK.zK,i,3);
L.t={channel:i,rect:x.kK.dE.clone()}}}else{var D=c.F(k.X()*4);c.Wn(this.pf.JL,D,3);var v=W.o.WC([D,k],U,Y,z);
if(v){x.kK.zK=c.F(v.rect.X());c.wH(v.buffer,x.kK.zK,3);x.kK.dE=v.rect}this.nh(L,U,Y,z)}x.TA(L,0,0,L.t);
if(U!=0){x.Jx();c.Jx(L.t)}L.U8=!0;L.s()}else if(this.Yy==2)this.nh(L,U,Y,z)};W.o.prototype.nh=function(L,C,U,E){var Y=this.e5.rect,z=c.F(Y.X()*4);
c.Wn(this.e5.channel,z,3);var r=W.o.WC([z,Y],C,U,E),p=c.F(r.rect.X());c.wH(r.buffer,p,3);L.t={channel:p,rect:r.rect};
L.U8=!0};W.o.prototype.disable=function(L,C,U,E){if(this.E$)this.cB(L,C,null,!0)};W.Bc=function(){W.o.call(this,[10,16],W.YH,"tools/transform")};
W.Bc.prototype=new W.o;W.pY=function(){W.o.call(this,[7,10],W.B9,"tools/transform")};W.pY.prototype=new W.o;
W.we=function(){W.o.call(this,[10,48],W.sK,"tools/transform")};W.we.prototype=new W.o;W.tj=function(L,C,U){W.DJ.call(this,[10,46],W.s2,"tools/transform");
this.Jr=[1,1,2,!0];this.o3="rigidTransform";this.tx=null;this.ao5=null;this.cH=null;this.x3=null;this.Wu=null;
this.yK=null;this.fH=[]};W.tj.prototype=new W.DJ;W.tj.prototype.sH=function(){return!0};W.tj.mQ=function(L){if(L==null)return!1;
if(L.C.length!=1)return!1;var C=L.N[L.C[0]];return C.add.SoLd||L.qk(!1)};W.tj.prototype.XZ=function(L,C){return W.tj.mQ(L)};
W.tj.prototype.enable=function(L,C,U,E,Y,z,r){this.ao5=z.ys;var p=z.ys,T,x=null;if(p){var k=L.N[p.$];
if(k.add.SoLd.filterFX!=null){var P=k.add.SoLd.filterFX.v.filterFXList.v;if(P[p.index])T=JSON.parse(JSON.stringify(P[p.index].v.Fltr.v))}}var b=T==null,k=L.N[L.C[0]],Q=k.buffer,K=k.rect,h=k.add.SoLd;
if(h){var O=h.nonAffineTransform.v;x=[];for(var H=0;H<4;H++)x.push(O[H*2].v,O[H*2+1].v);if(b)this.fx("edit",C);
var y=k.iC(L);Q=y.buffer;K=y.rect}this.tx={buffer:Q.slice(0),rect:K.clone(),a51:x};if(b)T=W.tj.DK(this.tx,this.Jr);
this.cH=T;this.x3=W.tj.iJ(this.cH,this.Jr);this.D0();this.fG(L);if(b)this.L9(C);var v=new q(B.E.l,!0);
v.data={e:B.U.ik,m:this.id,wm:this.Jr};C.B(v);v.data={e:B.U.lx,aZ:"default"};C.B(v)};W.tj.prototype.disable=function(L,C,U,E){if(this.x3)this.cB(L,C,!0)};
W.tj.prototype.D0=function(L){var C=this.x3;this.fH=[];for(var H=0;H<C.length;H++){var U=C[H];for(var E=0;
E<U.C.length;E++)this.fH.push([H,U.C[H]]);U.zr=c.De.Vq(U);if(L)c.De.$l(U)}};W.tj.prototype.oO=function(L,C,U,E){if(L.bi=="commit")this.cB(U,C,!0);
else if(L.bi=="cancel")this.ZS(U,C,!0);else if(L.bi=="prm"){var Y=!1;for(var H=0;H<3;H++)if(this.Jr[H]!=L.wm[H])Y=!0;
this.Jr=L.wm;if(Y){this.cH=W.tj.DK(this.tx,this.Jr,this.cH);this.x3=W.tj.iJ(this.cH,this.Jr);this.D0(!0);
this.L9(C)}this.fG(U)}else if(L.bi=="moveDepth"){var z=this.x3;for(var r=0;r<z.length;r++){var p=z[r];
for(var H=0;H<p.C.length;H++){var T=p.C[H];p.zV[T]+=L.adH?1:-1}}this.L9(C)}};W.tj.prototype.Gs=function(L,C){return L==G.yo||L==G.JY};
W.tj.prototype.fj=function(L,C,U,E){var Y=E.wu();if(E.q(G.CT))this.cB(L,C,!0);else if(E.q(G.ox))this.ZS(L,C,!0);
else if(E.q(G.yo)||E.q(G.JY)){var z=this.x3;for(var r=0;r<z.length;r++){var p=z[r];p.C.sort(function(P,b){return b-P});
for(var H=0;H<p.C.length;H++){var T=p.C[H],k=T*2;p.zV.splice(T,1);p.Qo.splice(T,1);p.or.splice(T,1);
p.bf.splice(T,1);p.Ni.splice(k,2);p.QM.splice(k,2)}p.C=[];if(p.bf.length==0){p.hu=p.vR.slice(0);p.$g=p.vR.slice(0)}}this.D0(!0);
this.L9(C);this.fG(L)}else if(Y.x!=0||Y.y!=0){this.pD(L,Y.x,Y.y,C);this._G=null}};W.tj.prototype.cB=function(L,C,U){this.fx("confirm",C);
this.escape(L,C,U)};W.tj.prototype.ZS=function(L,C,U){this.fx("cancel",C);this.escape(L,C,U)};W.tj.prototype.escape=function(L,C,U){L.K.yw=null;
L.K.lG=[];L.eP=!0;this.x3=null;var E=new q(B.E.l,!0);E.data={e:B.U.Rj};if(U)C.B(E)};W.tj.prototype.zI=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y),r=z.x,p=z.y,T=this.x3,k=null,P=[0,2,4,1.2,1.2,1.2],b=-1,Q=B.M()*5/L.z.S;
for(var H=0;H<T.length;H++){var K=T[H],h=c.a.Mv(K.QM,r,p,Q);if(h!=-1)k=[H,h];if(b==-1&&c.De.x$.adt(K.$g,K.gn,r,p))b=H}if(k==null&&b!=-1){var K=T[b];
W.tj.e2(K,r,p,r,p,0);k=[b,K.bf.length-1];K.zr=c.De.Vq(K)}this.Wu=z;if(k){var x=T[k[0]].C.indexOf(k[1])!=-1;
if(E.q(G.PS)&&!x){T[k[0]].C.push(k[1]);this.fH.push(k)}else if(!x){T[k[0]].C=[k[1]];this.fH=[k]}}this.fG(L)};
W.tj.e2=function(L,C,U,E,Y,z){var r=c.a.Mv(L.$g,C,U);L.bf.push(r);L.QM.push(E,Y);L.Ni.push(L.$g[r*2]-C,L.$g[r*2+1]-U);
L.or.push(0);L.Qo.push(!1);L.zV.push(z)};W.tj.prototype.Yh=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y),r=this.Wu;
if(r)this.pD(L,z.x-r.x,z.y-r.y,C)};W.tj.prototype.pD=function(L,C,U,E){var Y={},z=this.fH,r=this.x3;
if(this._G==null){this._G=[];for(var H=0;H<r.length;H++)this._G.push(r[H].QM.slice(0))}for(var H=0;H<z.length;
H++){var p=this.fH[H],T=p[0],k=r[p[0]],P=p[1]*2;k.QM[P+0]=this._G[T][P+0]+C;k.QM[P+1]=this._G[T][P+1]+U;
Y[T]=T}for(var T in Y)c.De.$l(this.x3[Y[T]]);this.fG(L);this.L9(E)};W.tj.prototype.fx=function(L,C){var U=new q(B.E.A,!0);
U.m=W.Jy;U.data={e:L,ys:this.ao5,o3:this.o3,oe:this.cH};C.B(U)};W.tj.prototype.bM=function(L,C,U,E,Y){this.Wu=null;
this._G=null};W.tj.prototype.L9=function(L){W.tj.mb(this.x3,this.Jr,this.cH);this.fx("edit",L)};W.tj.prototype.fG=function(L){var C=this.x3,U=this.cH;
L.K.yw={c:[],Z:[]};L.K.lG=[];L.K.jZ=[];for(var H=0;H<C.length;H++){var E=C[H];for(var Y=0;Y<E.C.length;
Y++)L.K.jZ.push((L.K.lG.length>>>1)+E.C[Y]);L.K.lG=L.K.lG.concat(E.QM);if(this.Jr[3])c.a.concat(L.K.yw,c.a.a6r(E.$g,E.gn))}L.eP=!0};
W.tj.DK=function(L,C,U){var E=L.buffer,Y=L.rect,z=L.a51,r=hi.Q4("rigidTransform");if(z)for(var H=0;H<4;
H++){r["PuX"+H].v=z[H*2];r["PuY"+H].v=z[H*2+1]}var p=r.puppetShapeList.v,T=c.De.adS(E,Y.d,Y.v,C[1],C[2]),k=[];
for(var P=0;P<T.length;P++){var b={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:[]}};
b.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 Q=T[P];p.push({t:"Objc",v:b});var K=Q.vR.slice(0);c.a.J(K,new c0(1,0,0,1,Y.x,Y.y),K);var h=Q.gn;
for(var H=0;H<h.length;H+=3){var x=h[H+1];h[H+1]=h[H+2];h[H+2]=x}k.push({gn:h,vR:K,hu:K,$g:K,bf:[],Ni:[],QM:[],zr:null,C:[],or:[],Qo:[],zV:[]})}if(U){var O=W.tj.iJ(U,[]),y=k[0];
for(var H=0;H<O.length;H++){var v=O[H];for(var i=0;i<v.C.length;i++)y.C.push((y.QM.length>>>1)+v.C[i]);
for(var i=0;i<v.bf.length;i++){var D=v.bf[i]*2,I=v.vR[D]-v.Ni[i*2],m=v.vR[D+1]-v.Ni[i*2+1];W.tj.e2(y,I,m,v.QM[i*2],v.QM[i*2+1],v.zV[i])}}}W.tj.mb(k,C,r);
return r};W.tj.iJ=function(L,C){function U(m){var f=[];for(var H=0;H<m.length;H++)f.push(m[H].v);return f}var E=L.puppetShapeList.v,Y=[];
for(var z=0;z<E.length;z++){var r=E[z].v;C[0]=r.meshRigidity.v-1;C[1]=r.meshQuality.v-1;C[2]=r.meshExpansion.v;
var p=r.pinVertexIndices.v.length,T=r.meshBoundaryPath.v.pathComponents.v[0].v.SbpL.v[0].v.Pts;T.v=[];
var k=new Uint32Array(new Uint8Array(r.indexArray.v).buffer),P=new Float32Array(new Uint8Array(r.originalVertexArray.v).buffer),b=new Float32Array(new Uint8Array(r.deformedVertexArray.v).buffer),Q=[],K=[],h=[];
for(var H=0;H<k.length;H++)Q.push(k[H]);for(var H=0;H<P.length;H++){K.push(P[H]);h.push(b[H])}var x=U(r.pinVertexIndices.v),O=U(r.pinOffsets.v),y=U(r.posFinalPins.v),v=U(r.PnRt.v),i=U(r.PnOv.v),D=U(r.PnDp.v),I=U(r.selectedPin.v);
Y.push({gn:Q,vR:K,hu:h.slice(0),$g:h,bf:x,Ni:O,QM:y,zr:null,or:v,Qo:i,zV:D,C:I})}return Y};W.tj.mb=function(L,C,U){function E(Q,K){var h=[];
for(var H=0;H<Q.length;H++)h.push({t:K,v:Q[H]});return h}function Y(Q,K,h){var x=new(h?Uint32Array:Float32Array)(Q),O=new Uint8Array(x.buffer);
for(var H=0;H<O.length;H++)K[H]=O[H]}var z=U.puppetShapeList.v;for(var r=0;r<z.length;r++){var p=L[r],T=z[r].v;
T.meshRigidity.v=C[0]+1;T.meshQuality.v=C[1]+1;T.meshExpansion.v=C[2];Y(p.gn,T.indexArray.v,!0);Y(p.vR,T.originalVertexArray.v);
Y(p.$g,T.deformedVertexArray.v);var k=[];for(var H=0;H<p.bf.length;H++){var P=p.bf[H]*2,b=H*2;k[b]=p.vR[P]-p.Ni[b];
k[b+1]=p.vR[P+1]-p.Ni[b+1]}T.PinP.v=E(k,"doub");T.pinVertexIndices.v=E(p.bf,"long");T.pinOffsets.v=E(p.Ni,"doub");
T.posFinalPins.v=E(p.QM,"doub");T.PnRt.v=E(p.or,"long");T.PnOv.v=E(p.Qo,"bool");T.PnDp.v=E(p.zV,"doub");
T.selectedPin.v=E(p.C,"long")}};W.l1=function(L,C,U){W.DJ.call(this,L?L:[10,40],C?C:W.ye,U?U:"tools/slice");
this.L2=null;this.kn=null;this.Z$=null;this.a6R=null;this.L5=null;this.QF=null};W.l1.prototype=new W.DJ;
W.l1.gW=function(L,C){var U=-1;for(var H=0;H<L.length;H++){var E=W.l1.Rq(L,H);if(E[0]<=C.x&&C.x<=E[2]&&E[1]<=C.y&&C.y<=E[3]){U=H;
break}}return U};W.l1.prototype.GV=function(L,C,U,E,Y){this.vo(U);U.Oy[U.Vg[0]].v=L;U.eP=!0;this.iP(U)};
W.l1.prototype.enable=function(L,C,U,E,Y,z){W.DJ.prototype.enable.call(this,L,C,U,E,Y,z);if(!U.qA.Oy){var r=new q(B.E.l,!0);
r.data={e:B.U.MP,wm:c_.Ip};C.B(r)}};W.l1.prototype.disable=function(){this.L2=null;this.kn=null};W.l1.prototype.Rg=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y),r=W.l1.gW(L.Oy,z);
if(r==-1)return;this.L2=L;this.kn=C;L.Vg=[r];L.eP=!0;if(this.QF==null){this.QF=new aq([{name:[5,4]},{name:[8,11,1],WL:!0}]);
this.QF.k("select",this.K2,this)}var p=this.QF;p.parent=C;p.f();p.update(L,U);var T=new q(B.E.l,!0);
T.data={e:B.U.Ww,f0:p,x:Y._5+2,y:Y.x0+1};C.B(T)};W.l1.prototype.K2=function(L){var C=this.QF.bw()[0],U=this.L2;
if(C==0){this.vo(U);U.Oy.splice(U.Vg[0],1);U.Vg=[];U.eP=!0;this.iP(U)}if(C==1){var E=new q(B.E.l,!0);
E.data={e:B.U.Q1,k5:"soptions",G:U.Oy[U.Vg[0]].v};this.kn.B(E)}};W.l1.prototype.zI=function(L,C,U,E,Y){if(L==null)return;
this.vo(L);var z=L.z.sQ(Y.x,Y.y);z=W.P4.wD(L,z,U,[!0,null,!1]);z.x=Math.round(z.x);z.y=Math.round(z.y);
this.L5=z;L.Oy.unshift(W.l1.Mw());L.Vg=[0];W.l1.FL(L.Oy,0,[z.x,z.y,z.x+20,z.y+20]);L.eP=!0};W.l1.prototype.Yh=function(L,C,U,E,Y){if(this.Z$==null)return;
var z=L.z.sQ(Y.x,Y.y),r=this.L5;z=W.P4.wD(L,z,U,[!0,null,!1]);z.x=Math.round(z.x);z.y=Math.round(z.y);
var p=[r.x,r.y,z.x,z.y];W.l1.UU(p);W.l1.FL(L.Oy,0,p);L.eP=!0};W.l1.prototype.bM=function(L,C,U,E,Y){this.iP(L);
this.L5=null};W.l1.prototype.vo=function(L){this.Z$=JSON.stringify(L.Oy);this.a6R=JSON.stringify(L.Vg)};
W.l1.prototype.iP=function(L){var C=JSON.stringify(L.Oy);if(C!=this.Z$){var U=new hp(this.name,this);
U.data={pf:this.Z$,Jz:C,a7r:this.a6R,alW:JSON.stringify(L.Vg)};L.Sv(U)}this.Z$=null};W.l1.prototype.Ic=function(L,C){C.Oy=JSON.parse(L.pf);
C.Vg=JSON.parse(L.a7r);C.eP=!0};W.l1.prototype.Zm=function(L,C){C.Oy=JSON.parse(L.Jz);C.Vg=JSON.parse(L.alW);
C.eP=!0};W.l1.prototype.Gs=function(L,C){return C!=null&&C.Vg.length!=0&&(L==G.yo||L==G.JY)};W.l1.prototype.fj=function(L,C,U,E){if(L==null)return;
this.vo(L);var Y=E.wu();if(Y.x!=0||Y.y!=0)W.l1.rj(L,Y);if(E.q(G.yo)||E.q(G.JY)){var z=L.Oy.slice(0);
for(var H=0;H<L.Vg.length;H++)L.Oy.splice(L.Oy.indexOf(z[L.Vg[H]]),1);L.Vg=[]}this.iP(L)};W.l1.prototype.oO=function(L,C,U,E,Y){if(U==null||U.Vg.length==0)return;
this.vo(U);var z=U.Oy,r=U.Vg;r.sort(function(K,h){return K-h});console.log(r);var p=z.slice(0),T=[],k=[];
for(var H=0;H<r.length;H++){var P=r[H],b=z[P];k.push(b);p.splice(p.indexOf(b),1)}var Q=Math.max(0,Math.min(p.length,r[0]-L.dir));
for(var H=0;H<k.length;H++){p.splice(Q+H,0,k[H]);T.push(Q+H)}U.Oy=p;U.Vg=T;this.iP(U)};W.l1.a35=function(L,C,U,E){var Y=new hZ(-C.x,-C.y),z=C.d/U.d,r=C.v/U.v,p=[0,0,C.d,C.v];
for(var H=0;H<L.length;H++){var T=W.l1.Rq(L,H);if(E){T[0]=Math.round(T[0]*z);T[1]=Math.round(T[1]*r);
T[2]=Math.round(T[2]*z);T[3]=Math.round(T[3]*r)}else{W.l1.zN(T,Y);W.l1.abM(T,p)}if(T[0]>=T[2]||T[1]>=T[3]){L.splice(H,1);
H--;continue}W.l1.FL(L,H,T)}};W.l1.rj=function(L,C){var U=L.Oy;for(var H=0;H<L.Vg.length;H++){var E=W.l1.Rq(U,L.Vg[H]);
W.l1.zN(E,C);W.l1.FL(U,L.Vg[H],E)}};W.l1.abM=function(L,C){if(L[0]<C[0])L[0]=C[0];if(L[1]<C[1])L[1]=C[1];
if(C[2]<L[2])L[2]=C[2];if(C[3]<L[3])L[3]=C[3]};W.l1.zN=function(L,C){L[0]=Math.round(L[0]+C.x);L[2]=Math.round(L[2]+C.x);
L[1]=Math.round(L[1]+C.y);L[3]=Math.round(L[3]+C.y)};W.l1.FL=function(L,H,C){var U=L[H].v.bounds.v;U.Left.v=C[0];
U.Top.v=C[1];U.Rght.v=C[2];U.Btom.v=C[3]};W.l1.Rq=function(L,H){var C=L[H].v.bounds.v;return[C.Left.v,C.Top.v,C.Rght.v,C.Btom.v,H]};
W.l1.UU=function(L){if(L[2]<L[0]){var C=L[0];L[0]=L[2];L[2]=C}if(L[2]==L[0])L[2]++;if(L[3]<L[1]){var C=L[1];
L[1]=L[3];L[3]=C}if(L[3]==L[1])L[3]++};W.l1.mE=function(L,C){var U=1e9,E=-1e9,Y=1e9,z=-1e9;for(var H=0;
H<C.length;H++){var r=W.l1.Rq(L,C[H]);U=Math.min(U,r[0]);Y=Math.min(Y,r[1]);E=Math.max(E,r[2]);z=Math.max(z,r[3])}return[U,Y,E,z]};
W.l1.Mw=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}}}};
W.Wf=function(){W.l1.call(this,[10,41],W.xP,"tools/sselect");this.L5=null;this.wc=null;this.xA=null;
this.yK=null;this.Bl=!1};W.Wf.prototype=new W.l1;W.Wf.prototype.zI=function(L,C,U,E,Y){if(L==null)return;
var z=L.z.sQ(Y.x,Y.y),r=W.Wf.BO(z,4/L.z.S,L.Oy,L.Vg);r.pop();if(r.length!=0){this.L5=z;this.xA=r;this.vo(L);
return}var p=L.Oy,T=W.l1.gW(p,z);if(T==-1)L.Vg=[];else{var k=L.Vg.indexOf(T);if(E.q(G.PS)){if(k==-1)L.Vg.push(T);
else L.Vg.splice(k,1)}else{L.Vg.sort(function(x,O){return x-O});if(k==-1)L.Vg=[T];this.L5=z;this.vo(L);
this.wc=W.l1.mE(p,L.Vg);this.yK=[];for(var H=0;H<L.Vg.length;H++)this.yK.push(W.l1.Rq(p,L.Vg[H]));if(E.q(G.Lv)){var P=p.slice(0),b=L.Vg,Q=[];
for(var H=0;H<b.length;H++){var T=b[H],K=P[T],h=p.indexOf(K);Q.push(h);p.splice(h,0,JSON.parse(JSON.stringify(K)))}L.Vg=Q}}}L.eP=!0};
W.Wf.prototype.Yh=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y);if(this.L5==null){var r=W.Wf.BO(z,4/L.z.S,L.Oy,L.Vg),p=r.pop(),T=r.length==0?"default":["ew","nwse","ns","nesw"][p]+"-resize",k=new q(B.E.l,!0);
k.data={e:B.U.lx,aZ:T};C.B(k);return}if(!this.Bl&&z.cg(this.L5))return;this.Bl=!0;var P=L.Oy,r=this.xA;
if(r){z=W.P4.wD(L,z,U,[!0,null,!1]);var b=Math.round(z.x),Q=Math.round(z.y);for(var H=0;H<r.length;H+=2){var K=W.l1.Rq(P,r[H]),h=r[H+1];
K[h]=(h&1)==0?b:Q;W.l1.UU(K);W.l1.FL(P,r[H],K)}}else{var x=z.AE(this.L5),O=this.wc.slice(0);W.l1.zN(O,x);
var y=new _(O[0],O[1],O[2]-O[0],O[3]-O[1]),v=W.P4.HG(L,y,U,[!0,null,!1],!0);W.P4.E9(L,y,v);x.x+=v[0];
x.y+=v[1];for(var H=0;H<L.Vg.length;H++)W.l1.FL(P,L.Vg[H],this.yK[H]);W.l1.rj(L,x)}L.eP=!0};W.Wf.prototype.bM=function(L,C,U,E,Y){if(this.L5==null)return;
this.iP(L);L.K.h4=null;L.eP=!0;this.L5=null;this.xA=null;this.yK=null;this.Bl=!1};W.Wf.BO=function(L,C,U,E){var Y=L.x,z=L.y,r=[],p=-1,T=[];
for(var H=0;H<E.length;H++){var k=E[H],P=W.l1.Rq(U,k),b=P[0],Q=P[1],K=P[2],h=P[3];if(Y<b-C||K+C<Y||z<Q-C||h+C<z)continue;
var x=[Y<b+C,z<Q+C,K-C<Y,h-C<z],O=-1;for(var y=0;y<4;y++){if(x[y]&&x[y+1&3])O=1+2*(y&1);if(x[y])r.push(k,y)}if(O==-1){if(x[0]||x[2])O=0;
if(x[1]||x[3])O=2}if(O!=-1){p=O;T.push(k)}}var v=r.length;for(var H=0;H<v;H+=2){var k=r[H],i=r[H+1],D=W.l1.Rq(U,k)[i];
for(var y=0;y<E.length;y++){var I=E[y];if(T.indexOf(I)!=-1)continue;var P=W.l1.Rq(U,I);if(P[i&1]==D)r.push(I,i&1);
if(P[2+(i&1)]==D)r.push(I,2+(i&1))}}r.push(p);return r};W.IJ=function(){W.kd.call(this,[10,44],W.a5$,"tools/oselect");
this.XK="crosshair";this.a5L=0};W.IJ.prototype=new W.kd;W.IJ.prototype.g3=function(L,C,U,E){if(Math.random()<1/(1+this.a5L)){alert("The cross should be fully inside the object.",3500);
this.a5L++}};W.IJ.prototype.Rl=function(L,C,U,E){W.jw.Gt(L,W.kd.Ss,this.kn);if(!E.X4||!this.xy)return;
var Y=this.dm(L,U,!1),z=Y.d,r=Y.v,p=Y.x,T=Y.y,k=Y.x+z,P=Y.y+r,b=p+z/2,Q=T+r/2,K=W.IJ.bC;L.K.yw={c:[p,T,k,T,k,P,p,P,b-z*K,Q,b+z*K,Q,b,Q-r*K,b,Q+r*K],Z:"M L L L Z M L M L".split(" ")};
L.eP=!0};W.IJ.bC=.12;W.IJ.prototype.Zr=function(L,C,U,E){L.K.yw=null;L.eP=!0;this.finish(L,C,U,E)};W.IJ.prototype.getSelection=function(L,C,U,E){if(this.AS.cg(this.vv)||!this.xy)return null;
var Y=this.dm(L,U,!1),z=L.N[L.C[0]];if(Y.ue()||!Y.nN(z.rect))return null;return W.kd.ee("ObSl",Y)};W.jw=function(){W.dl.call(this,[10,37],W.dk,"tools/qselect");
this.tH="qselect"};W.jw.prototype=new W.dl;W.jw.prototype.zI=function(L,C,U,E,Y){this.fu(L,U,E,Y,1);
if(this.G2==null)return;this.Ld(L)};W.jw.prototype.Yh=function(L,C,U,E,Y){this.rr(L,C,U);W.jw.Gt(L,W.kd.Ss,C);
if(this.UD)this.GS(L,U,Y);if(this.G2==null)return;if(!Y.X4)return;var z=this.CC(L,U,E,Y);if(z!=1)this.Ld(L)};
W.jw.Gt=function(L,C,U){if(L&&C.key!=W.jw.vp(L)){C.key=W.jw.vp(L);var E=L.N[L.C[0]].rect.X(),z="Image Analysis ...";
if(E==0)return;var Y=E>1e6,r=new q(B.E.l,!0);r.data={e:B.U.rA,eL:z};if(Y)U.B(r);setTimeout(function(){var p=W.jw.ri(L);
for(var T in p)C[T]=p[T];var r=new q(B.E.l,!0);r.data={e:B.U.cG,eL:z};if(Y)U.B(r)},30)}};W.jw.vp=function(L){var C=L.C[0],U=L.N[C],E=U.rect,Y=E.d,z=E.v,r=Y*z,p=U.buffer;
return[C,E.x,E.y,Y,z,p[0],p[1],p[2],p[3]].join(",")};W.jw.ri=function(L){var C=L.C[0],U=L.N[C],E=U.rect,Y=E.d,z=E.v,r=Y*z,p=U.buffer,T=Date.now(),k=c.F(r);
k.fill(128);var P=c.my.QZ(p,Y,z);console.log(Date.now()-T);var b={key:W.jw.vp(L),CV:p,rect:E.clone(),aU:Y,fg:z,oD:12,a9O:!1,lm:k,fb:P,t:c.F(r),_V:null,fF:null,nD:null};
W.jw.xr(b);return b};W.jw.xr=function(L,C){var U=L.aU,E=L.fg,Y=0,z=0,r=Date.now(),p=L._V!=null&&c.my.a9Y(L.fb.gn,L._V.gn,L._V.bj,L.lm);
Y=Date.now()-r;r=Date.now();if(!p&&!L.a9O){L._V=c.my.nx(L.fb,U,E,L.lm,L.oD);if(!c.my.a9Y(L.fb.gn,L._V.gn,L._V.bj,L.lm)){L.a9O=!0;
console.log("conflict")}L.fF=c.my.a1k(L.CV,U,E,L._V.gn,L._V.bj);L.nD=[L.fF[0].slice(0),[]];z=Date.now()-r;
r=Date.now()}var r=Date.now();if(C){L.nD[0].set(L.fF[0]);var T=L.fF[1],k=L.nD[1];for(var P=0;P<T.length;
P++)k[P]=T[P].slice(0);c.my.abR(L._V.gn,U,E,L._V.bj,L.lm,L.t,L.nD)}};function hV(L,C,U,E,Y,z,r,p){this.Pz=null;
this.Pw=L?L.slice(0):null;this.ij=4;this.vv=null;this.jo=null;this.vT=null;this.o0=-1;this.aN=null;this.a4P=!1;
this.aaq=[];for(var H=0;H<8;H++)this.aaq.push(iL.afj(0,PIMG.rotate,-.5,-.5,-45-H*45));this.anV=C;this.abY=U;
this.aiD=E;this.a1R=Y;this.a5X=z;this.AT=r;this.aaH=p}hV.prototype.ft=function(){return this.o0!=-1};
hV.prototype.Bj=function(){return this.Pw.slice(0)};hV.prototype.a5=function(L){this.Pw=L};hV.prototype.a41=function(){return this.p7(this.Pw)};
hV.prototype.abJ=function(){return this.ij};hV.prototype.a5B=function(L){this.ij=L};hV.prototype.$j=function(L){if(L==null)L=this.Pw;
if(this.ij==9)return this.vv;else return this.p7(L)[this.ij]};hV.prototype.a3a=function(L){if(this.ij==9)this.vv=L.clone();
else{var C=this.$j(),U=new c0(1,0,0,1,L.x-C.x,L.y-C.y);c.a.J(this.Pw,U,this.Pw)}};hV.prototype.J8=function(L,C,U){var E=this.KP(L,C),Y;
if(E==9)return"default";if(E==10){if(U)return null;return!this.anV?"move":null}if(E==-1||E==4)return null;
if(E==11){var z=this.$j().AE(L);Y=90-Math.atan2(z.y,z.x)*180/Math.PI;var r=Math.round(8*(Y/360));r=(r+8)%8;
return this.aaq[r]}else{var p=this.yA(L,this.Pw);Y=[135,90,45,180,0,0,225,270,315][E];var T=c.I.O4(this.Pw);
Y+=Math.atan2(-T[3],T[0])*180/Math.PI;var k="ew nesw ns nwse ew nesw ns nwse".split(" "),r=Math.round(8*(Y/360));
r=(r+8)%8;return k[r]+"-resize"}};hV.prototype.yA=function(L,C){var U=c.I.G$(c.I.O4(C)),E=new Float64Array(2);
c.I.Pb(L.x,L.y,U,E);return new hZ(E[0],E[1])};hV.prototype.b5=function(L){var C=this.yA(L,this.Pw);return 0<=C.x&&C.x<=1&&0<=C.y&&C.y<=1};
hV.prototype.zI=function(L,C,U,E,Y,z){this.a4P=z;this.aN=E;var r=L.z.S,p;if(this.Pw==null)E=W.P4.wD(L,E,C);
this.vT=E.clone();if(this.Pw==null){this.vT.offset(1,1);var T=Y==null?1:1/Y;this.Pw=[E.x,E.y,E.x+1,E.y,E.x+1,E.y+T,E.x,E.y+T];
p=8}else{p=this.KP(E,r);if(0<=p&&p<=8)this.vT=this.p7(this.Pw)[p]}this.Pz=this.Pw.slice(0);this.o0=p;
this.pA(L,C);this.jo=this.$j();return p!=-1};hV.prototype.KP=function(L,C){var U=-1,E=this.p7(),Y=6*B.M()/C;
if(U==-1)if(hZ.sl(this.$j(),L)<Y)U=9;if(U==-1)for(var H=0;H<E.length;H++)if(H!=4&&hZ.sl(E[H],L)<Y)U=H;
if(U==-1||this.AT==4){if(this.b5(L)){if(this.anV)U=10}else{var z=this.yA(L,this.Pw),r=new _(0,0,1,1);
r.WW(.2,.2);U=r.qh(z)&&this.AT!=3?11:10}}return U};hV.prototype.Yh=function(L,C,U,E){if(this.o0==-1)return;
this.aN=E;var Y=U.q(G.PS),z=U.q(G.Lv),r=U.q(G.DM),p=L.z.S,T=this.vT,k=this.o0,P=this.p7(),b=W.P4.wD(L,T,C),Q=W.P4.wD(L,E,C),K,h;
if(k==9){var P=this.p7(),x=-1;for(var H=0;H<P.length;H++)if(hZ.sl(P[H],Q)*p<10)x=H;this.ij=x==-1?9:x;
this.vv=Y?W.Fe.hZ(b,Q):Q.clone()}else if(k==10){h=c.a.mE(this.Pz);var O=h.x,y=h.y;h.offset(E.x-T.x,E.y-T.y);
if(this.Z0()){h.x=Math.round(h.x);h.y=Math.round(h.y)}K=W.P4.HG(L,h,C);var v=new c0(1,0,0,1,h.x-O+K[0],h.y-y+K[1]);
c.a.J(this.Pz,v,this.Pw)}else if(k==11){var i=this.$j(this.Pz),D=i.AE(E),I=i.AE(T),m=Math.atan2(D.y,D.x),f=Math.atan2(I.y,I.x),v=new c0(1,0,0,1,-i.x,-i.y),A=Math.PI/12;
if(Y)v.rotate(Math.round((f-m)/A)*A);else v.rotate(f-m);v.translate(i.x,i.y);c.a.J(this.Pz,v,this.Pw)}else{var d,g=this.Pz,X=k==0||k==2||k==6||k==8;
if(this.AT==1){if(X)Y=z=r=!0}else if(this.AT==2&&X&&this.a4P!=!0)r=!0;if(this.AT==3)r=!1;if(this.aiD&&X&&r){var H=[0,0,2,0,0,0,6,0,4,0][k],n=-1,R=Q.x,l=Q.y;
if(Y){var w=H+6&7,V=H+10&7,F=hV.qm(g[H],g[H+1],g[w],g[w+1],Q.x,Q.y),Z=hV.qm(g[H],g[H+1],g[V],g[V+1],Q.x,Q.y),M=F[2]<Z[2]?F:Z;
R=M[0];l=M[1];if(z)n=F[2]<Z[2]?w:V}else if(z)n=H+4&7;d=g.slice(0);if(n!=-1){var a=g[n],e=g[n+1],N=(g[H]+a)/2,J=(g[H+1]+e)/2;
d[n]=N-(R-N);d[n+1]=J-(l-J)}d[H]=R;d[H+1]=l}else if(X&&z){var i=this.jo,s=i.x,f5=i.y,dx=b.x-s,fq=b.y-f5,i9=1,e8=1;
if(Math.abs(dx)>=1)i9=(Q.x-s)/dx;if(Math.abs(fq)>=1)e8=(Q.y-f5)/fq;if(Y)i9=e8=(i9+e8)/2;var S=new c0;
S.translate(-s,-f5);S.scale(i9,e8);S.translate(s,f5);d=g.slice(0);c.a.J(d,S,d)}else{if(this.Z0()){Q.x=Math.round(Q.x);
Q.y=Math.round(Q.y)}var fs=[0,1,2,5,8,7,6,3],bz=fs[(fs.indexOf(k)+4)%8],g6=[];for(var H=0;H<3;H++)for(var n=0;
n<3;n++)g6.push(new hZ(n/2,H/2));var i=this.jo,al=this.yA(Q,g),bj=this.yA(T,g),bE=z&&(this.ij==4||this.ij==9)?this.yA(i,g):g6[bz],eN=new c0,dk=new c0,i9=(al.x-bE.x)/(bj.x-bE.x);
if(i9==0)i9=1e-4;var e8=(al.y-bE.y)/(bj.y-bE.y);if(e8==0)e8=1e-4;if(this.a1R){i9=Math.max(i9,0);e8=Math.max(e8,0)}if(k==0||k==2||k==6||k==8){if(Y||this.a5X)eN.scale(i9,i9);
else eN.scale(i9,e8)}if(k==1||k==3||k==5||k==7){var hj=this.a5X;if(k==1||k==7)eN.scale(hj?e8:1,e8);else eN.scale(i9,hj?i9:1);
if(this.abY&&r){if(k==1||k==7)dk.Z9=(al.x-bE.x)/(al.y-bE.y);else dk.O=(al.y-bE.y)/(al.x-bE.x)}}var S=new c0;
S.translate(-bE.x,-bE.y);S.concat(eN);S.concat(dk);S.translate(bE.x,bE.y);d=[0,0,1,0,1,1,0,1];c.a.J(d,S,d);
var M=c.I.O4(g);c.I.apply(M,d)}if(hV.xU(d))this.Pw=d}this.pA(L,C);if(K)W.P4.E9(L,h,K)};hV.qm=function(L,C,U,E,Y,z){var r=U-L,p=E-C,T=Y-L,k=z-C,P=r*r+p*p,b=T*r+k*p,Q=b/P,K=L+Q*r,h=C+Q*p,x=Y-K,O=z-h;
return[K,h,Math.sqrt(x*x+O*O)]};hV.prototype.Z0=function(){var L=this.Pw;return Math.abs(L[1]-L[3])<1e-6&&Math.abs(L[2]-L[4])<1e-6||Math.abs(L[0]-L[2])<1e-6&&Math.abs(L[3]-L[5])<1e-6};
hV.xU=function(L){return c.a.jL(L)||c.a.jL([L[6],L[7],L[4],L[5],L[2],L[3],L[0],L[1]])};hV.prototype.bM=function(L,C,U,E){this.o0=-1;
this.aN=null;L.K.h4=null;L.K.jB=[];L.eP=!0};hV.prototype.fj=function(L,C,U){var E=U.wu();if(E.x||E.y){var Y=new c0(1,0,0,1,E.x,E.y);
c.a.J(this.Pw,Y,this.Pw);this.pA(L,C);return!0}return!1};hV.prototype.p7=function(L){if(L==null)L=this.Pw;
var C=L[6]-L[0],U=L[7]-L[1],E=L[4]-L[2],Y=L[5]-L[3],z=[L[0],L[1],L[2],L[3],L[0]+C/2,L[1]+U/2,L[2]+E/2,L[3]+Y/2,L[6],L[7],L[4],L[5]],r=[];
for(var H=0;H<3;H++){var p=H*4,T=z[p+0],k=z[p+1],P=z[p+2],b=z[p+3];r.push(new hZ(T,k));r.push(new hZ(T+(P-T)/2,k+(b-k)/2));
r.push(new hZ(P,b))}return r};hV.prototype.pA=function(L,C,U){if(U==null)U=!1;var E=this.p7(),Y=E[0],z=E[2],r=E[6],p=E[8];
L.K.yw={Z:[],c:[]};L.K.yw.Z.push("M","L","L","L","Z");L.K.yw.c.push(Y.x,Y.y,z.x,z.y,p.x,p.y,r.x,r.y);
if(this.aaH){var T=z.AE(Y),k=r.AE(Y),P=p.AE(z),b=p.AE(r);for(var H=0;H<3;H++){L.K.yw.Z.push("M","L","M","L");
var Q=(H+1)*.25;L.K.yw.c.push(Y.x+T.x*Q,Y.y+T.y*Q,r.x+b.x*Q,r.y+b.y*Q);L.K.yw.c.push(Y.x+k.x*Q,Y.y+k.y*Q,z.x+P.x*Q,z.y+P.y*Q)}}L.z.d0=new _(0,0,hZ.sl(E[0],E[2]),hZ.sl(E[0],E[6]));
if(this.o0!=-1&&this.o0<9&&this.aN){var K=L.z.Q6(this.aN.x,this.aN.y);W.DJ.$y(K.x+10,K.y-10,L.z.d0,L,C)}if(!U){L.K.yI=[];
for(var H=0;H<E.length;H++)if(H!=4)L.K.yI.push(E[H].x,E[H].y);var h=this.$j();L.K.yI.push(h.x,h.y)}L.eP=!0};
hV.prototype.clear=function(L){L.z.d0=null;L.K.h4=null;L.K.yw=null;L.K.yI=[];L.eP=!0};function h$(L,C){this.h2=null;
this.o0=-1;this.Wo(L)}h$.prototype._N=function(){return JSON.parse(JSON.stringify(this.h2))};h$.prototype.Wo=function(L){this.h2=JSON.parse(JSON.stringify(L))};
h$.prototype.b5=function(L){return!0};h$.prototype.J8=function(L,C){var U=this.KP(L,C);if(U==-1)return"default";
return"pointer"};h$.prototype.zI=function(L,C,U,E){this.o0=this.KP(E,L.z.S);return this.o0!=-1};h$.prototype.KP=function(L,C){var U=-1,E=20*B.M(),Y=this.hj();
for(var H=0;H<Y.length;H++)if(hZ.sl(Y[H],L)*C<E)U=H;return U};h$.prototype.Yh=function(L,C,U,E){if(this.o0==-1)return;
var Y=L.z.S,z=this.o0,r=c.h2.b4(this.h2);r[z*2]=E.x;r[z*2+1]=E.y;c.h2.vn(r,this.h2)};h$.prototype.bM=function(L,C,U,E){this.o0=-1;
L.eP=!0};h$.prototype.fj=function(L,C,U){var E=U.wu();if(E.x||E.y){var Y=new c0(1,0,0,1,E.x,E.y);c.a.J(this.Pw,Y,this.Pw);
this.pA(L)}};h$.prototype.hj=function(L){var C=c.h2.b4(this.h2),U=[];for(var H=0;H<C.length;H+=2)U.push(new hZ(C[H],C[H+1]));
return U};h$.prototype.pA=function(L){var C=this.hj();L.K.yw={Z:[],c:[]};L.K.yw.Z.push("M","C","C","C","C");
var U=[0,1,2,3,7,11,15,14,13,12,8,4,0];for(var H=0;H<U.length;H++)L.K.yw.c.push(C[U[H]].x,C[U[H]].y);
L.K.yw.Z.push("M","L","L","M","L","L","M","L","L","M","L","L");U=[4,0,1,2,3,7,11,15,14,13,12,8];for(var H=0;
H<U.length;H++)L.K.yw.c.push(C[U[H]].x,C[U[H]].y);L.K.yI=[];for(var H=0;H<C.length;H++)L.K.yI.push(C[H].x,C[H].y);
L.eP=!0};h$.prototype.clear=function(L){L.K.yw=null;L.K.yI=[];L.eP=!0};var hO={};hO.o5=function(L){this.id=L;
this.kn=null};hO.o5.prototype.GV=function(L,C,U,E,Y){};hO.o5.prototype.Zm=function(L,C){};hO.o5.prototype.Ic=function(L,C){};
hO.o5.prototype.track=function(L){var C=new q(B.E._w,!0);C.data=L;L.VL=!0;this.kn.B(C)};hO.History=function(){hO.o5.call(this,W.n3);
this.Xw=!0;this.acz=0};hO.History.prototype=new hO.o5;hO.History.prototype.GV=function(L,C,U,E){U.dD=!0;
if(L.e=="h_itemchange"){if(L.index<U.xC)for(var H=U.xC;H>L.index;H--)this.xS(U);if(L.index>U.xC)for(var H=U.xC;
H<L.index;H++)this.dB(U)}if(L.e=="h_stepfwd")this.dB(U);if(L.e=="h_stepbck")this.xS(U);if(L.e=="h_undoredo"){var Y=this.Xw||this.acz!=U.xC;
if(Y){this.xS(U);Y=!1}else{this.dB(U);Y=!0}this.Xw=Y;this.acz=U.xC}else this.Xw=!0};hO.History.prototype.xS=function(L){if(L.xC==0)return;
var C=L.history[L.xC];C.m.Ic(C.data,L);L.xC--};hO.History.prototype.dB=function(L){if(L.xC==L.history.length-1)return;
var C=L.history[L.xC+1];C.m.Zm(C.data,L);L.xC++};hO.T0=function(){hO.o5.call(this,W.aV);this.kn=null};
hO.T0.prototype=new hO.o5;hO.T0.prototype.GV=function(L,C,U,E,Y){this.kn=C;var z=L.e,r=L.$!=null?L.$:U.C.length!=0?U.C[0]:U.N.length-1,p=U.N[r];
U.hK=!0;if(z==o.iM&&U.t==null)z=o.ok;if(z==o.uP){var T=new hp([6,33],this),k=p.Jc()?["pass"].concat(gz.w0):gz.w0,P=L.$!=null?[L.$]:U.C,b=JSON.stringify(P),Q=[];
for(var H=0;H<P.length;H++)Q.push(U.N[P[H]].B4);T.data={e:z,s9:b,to:Q,oq:k[L.oq]};U.Sv(T);this.Zm(T.data,U);
this.track(hy.KE("Md",{t:"enum",v:{BlnM:gz.lV[L.oq]}}))}if(z==o.K0){var T,K=U.bQ(),P=L.$!=null?[L.$]:U.C,b=JSON.stringify(P);
if(K&&K.data&&K.data.e==z&&K.data.s9==b)T=K;else{var h=hy.KE("Opct",{t:"UntF",v:{type:"#Prc",val:0}});
this.track(h);var Q=[];for(var H=0;H<P.length;H++)Q.push(U.N[P[H]].opacity);T=new hp([6,32],this);T.data={e:z,s9:b,to:Q,oq:L.oq,Dq:h.V5};
U.Sv(T)}T.data.oq=L.oq;T.data.Dq.T.v.Opct.v.val=Math.round(L.oq*100/255);this.Zm(T.data,U)}if(z==o.J9){if(p.add.iOpa==null)p.add.iOpa=255;
var T,K=U.bQ();if(K&&K.data&&K.data.e==z&&K.data.$==r)T=K;else{T=new hp("Fill Opacity Change",this);
T.data={e:z,$:r,to:p.add.iOpa,oq:L.oq};U.Sv(T)}T.data.oq=L.oq;this.Zm(T.data,U)}if(z==o.Lx){var x=L.oq,O=L.$!=null?[L.$]:U.C.slice(0),y=[],v=[],T;
for(var i=0;i<O.length;i++){var D=U.N[O[i]];if(D.add.lspf==null)D.add.lspf=0;var Q=D.add.lspf,I=Q;for(var H=0;
H<x[0].length;H++){var m=x[1][H],f=1<<m;if((I&f)==0&&x[0][H])I^=f;else if((I&f)!=0&&!x[0][H])I^=f}y.push(Q);
v.push(I)}var K=U.bQ(),P=JSON.stringify(O);if(K&&K.data&&K.data.e==z&&JSON.stringify(K.data.s9)==P){T=K;
T.data.oq=v}else{var T=new hp([6,57,1],this);T.data={e:z,s9:P,to:y,oq:v};U.Sv(T)}this.Zm(T.data,U)}if(z==o.mX){var A="----",d=L.ZI,I=null;
for(var H=0;H<aA.tI.KW.length;H++)if(p.add[aA.tI.KW[H]])A=aA.tI.KW[H];var g=p.add[A];if(d=="TySh")I=b5.Es(50,50,Y.Az);
var T=new hp("Layer Type",this);T.data={e:z,$:r,alQ:[A,g],ZI:[d,I]};U.Sv(T);this.Zm(T.data,U)}if(z==o.Zu){var O=[];
if(E.q(G.Lv)){var X=U.bQ(),n=X?X.data:null;if(X!=null&&X.m==this&&n.e==o.Zu&&n.s9.length!=1){var R=new q(B.E.A);
R.m=W.n3;R.data={e:"h_stepbck"};C.B(R);if(n.$==r)return}var l=U.root.cW(r),w=U.p9(null,r);while(l.parent!=U.root){w.push(l.parent.index);
l=l.parent}for(var H=0;H<U.N.length;H++){var V=U.N[H],F=V.rK(),Z=w.indexOf(H)!=-1;if(!Z&&F)O.push(H);
if(H==r&&!F)O.push(H)}}else{O.push(r);var F=U.N[r].rK(),h={xo:F?"hide":"show",V5:{classID:F?"Hd":"Shw",null:{t:"VlLs",v:[hy.K1("Lyr",!0)]}}};
this.track(h)}var T=new hp("Layer visibility",this,!0);T.data={e:z,s9:O,$:r};U.Sv(T);this.Zm(T.data,U)}if(z==o.k0){var h={xo:"select",V5:{classID:"null",MkVs:{t:"bool",v:!1}}},M,escape=!1;
if(U.z.NT.join("")!="111"){U.z.NT=[1,1,1];U.eP=!0}if(E.q(G.DM)||L.a5c==0){var a=U.C.indexOf(r);if(a==-1)U.C.push(r);
else if(U.C.length>1)U.C.splice(a,1);U.C.sort(function(T,hD){return T-hD});h.V5.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelection"}};
M=r}else if(E.q(G.PS)&&!E.q(G.Lv)&&L.w6>0){z=L.w6==1?o.xd:L.w6==2?o.qN:o.Ue;escape=!0}else if((E.q(G.PS)||L.a5c==1)&&U.C.length>0){var e=Math.min(r,U.C[0]),N=Math.max(r,U.C[U.C.length-1]);
U.C=[];for(var H=e;H<=N;H++)if(U.N[H].add.lsct!=fI.ya)U.C.push(H);h.V5.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelectionContinuous"}};
M=r}else{M=r;var V=U.N[r];if(V&&V.Jc()&&L.a19)V.add.lsct=fI.Qr;else if(U.C.length==1&&U.C[0]==r&&L.w6==V.yQ){return}U.C=[r];
U.LM()}if(M!=null&&M<U.N.length){h.V5.null={t:"obj ",v:[{t:"name",v:{classID:"Lyr",val:U.N[M].getName()}}]},this.track(h)}if(!escape){if(U.C.length==1){var J=U.C[0];
for(var H=0;H<U.N.length;H++){if(H==J)continue;var D=U.N[H];D.yQ=0;D.hI=!1}var p=U.N[J];if(L.w6==2){p.hI=!p.hI;
U.j5=[]}else if(p){p.yQ=L.w6<=0?0:L.w6;if(L.w6==1||L.w6==3){var s=L.w6==3?p.iC(U).r:p.xV();s.mM=!1}}}else for(var H=0;
H<U.N.length;H++){var D=U.N[H];D.yQ=0;D.hI=!1}U.cE=null;U.dD=!0}}if(z==o.xd||z==o.Ue){var f5=z==o.xd,s=f5?p.xV():p.iC(U).r;
if(s==null)return;var T=new hp(s.isEnabled?f5?[6,15]:[6,42]:f5?[6,14]:[6,41],this);T.data={e:z,$:r};
U.Sv(T);this.Zm(T.data,U)}if(z==o.qN){var s=p.add.vmsk;if(s==null)return;var T=new hp(s.isEnabled?[6,17]:[6,16],this);
T.data={e:z,$:r};U.Sv(T);this.Zm(T.data,U)}if(z==o.TJ){var dx=p.add.lsct==fI.Qr?fI.z7:fI.Qr;if(E.q(G.DM)){var fq=U.root.cW(U.N.indexOf(p)).parent;
for(var H=0;H<fq.children.length;H++){var i9=fq.children[H].$;if(i9.Jc())i9.add.lsct=dx}}else p.add.lsct=dx;
U.dD=!0}if(z==o.VY){if(!U.iV(r))return;var T=new hp(p.l$?[6,19]:[6,18],this);T.data={e:z,$:r};U.Sv(T);
if(L.oq==null||L.oq!=p.l$)this.Zm(T.data,U);this.track({xo:"groupEvent",V5:{classID:"GrpL",null:{t:"obj ",v:[hy.K1("Lyr",!0)]}}})}if(z==o.v6){if(p.QI())p.bP-=32;
else p.bP+=32;U.dD=!0}if(z==o.sg||z==o.l6){var T;if(z==o.sg)T=new hp(p.add.lmfx.masterFXSwitch.v?[6,30]:[6,29],this);
if(z==o.l6)T=new hp(p.add.SoLd.filterFX.v.enab.v?[6,44]:[6,43],this);T.data={e:z,$:r};U.Sv(T);this.Zm(T.data,U)}if(z==o._8||z==o.rQ){var J=L.index,T;
if(z==o._8)T=new hp(p.add.lmfx[gM.cp[J[0]]].v[J[1]].v.enab.v?[6,30]:[6,29],this);if(z==o.rQ)T=new hp(p.add.SoLd.filterFX.v.filterFXList.v[J].v.enab.v?[6,44]:[6,43],this);
T.data={e:z,$:r,index:L.index};U.Sv(T);this.Zm(T.data,U)}if(z==o.Zd){if(L.src==L.yD)return;var e8=U.N[L.src],S=U.N[L.yD],fs=e8.add.lmfx?JSON.stringify(e8.add.lmfx):"",bz=S.add.lmfx?JSON.stringify(S.add.lmfx):"";
if(S.add.lmfx==null){S.add.lmfx=JSON.parse(gM.default);for(var H=0;H<gM.order.length;H++)S.add.lmfx[gM.cp[H]]={t:"VlLs",v:[]}}if(L._r==null){S.add.lmfx=JSON.parse(fs);
if(!L.nz)delete e8.add.lmfx}else{var g6=L._r[0],al=gM.cp[g6];if(gM.EE.indexOf(gM.order[g6])==-1)S.add.lmfx[al].v=[];
S.add.lmfx[al].v.push(e8.add.lmfx[al].v[L._r[1]]);if(!L.nz)e8.add.lmfx[al].v.splice(L._r[1],1)}var bj=e8.add.lmfx?JSON.stringify(e8.add.lmfx):"",bE=S.add.lmfx?JSON.stringify(S.add.lmfx):"";
if(!S.QI())S.bP+=32;var T=new hp("Move Layer Styles",this);T.data={e:z,adI:L.src,ah8:L.yD,a8f:fs,a2o:bz,adJ:bj,anp:bE};
U.Sv(T);this.Zm(T.data,U)}if(z==o.q1){var D=U.N[L.src],eN=JSON.stringify(D.add.SoLd),dk=JSON.parse(eN),hj=dk.filterFX.v.filterFXList.v;
hj.splice(L._r,1);var T=new hp([6,53],this);T.data={e:o.Kr,pS:[{nY:L.src,HX:[eN,JSON.stringify(dk)]}]};
U.Sv(T);this.Zm(T.data,U)}if(z==o.M7){var e8=U.N[L.src],S=U.N[L.yD],iN=[];if(e8!=S&&S.add.SoLd==null){alert("Target layer is not a smart object!");
return}if(e8==S&&!L.nz&&(L._r==L.um||L._r==-1))return;var dK=e8.iC(U),eN=JSON.stringify(e8.add.SoLd),dk=JSON.parse(eN),hj=dk.filterFX.v.filterFXList.v;
if(e8==S){hj.splice(L.um,0,hj[L._r]);if(!L.nz)hj.splice(L._r+(L._r<L.um?0:1),1);iN.push({nY:L.src,HX:[eN,JSON.stringify(dk)]})}else if(L._r==-1){var hP=dk.filterFX;
if(!L.nz){delete dk.filterFX;iN.push({nY:L.src,HX:[eN,JSON.stringify(dk)],Mm:[dK,null]})}var d2=S.s7()?S.iC(U):null,hr=b7.Ws(dK),fv=JSON.stringify(S.add.SoLd),f3=JSON.parse(fv);
f3.placed.v=hr.id;f3.filterFX=hP;iN.push({nY:L.yD,HX:[fv,JSON.stringify(f3)],Mm:[d2,hr]})}else{var dp=hj[L._r];
if(!L.nz){hj.splice(L._r,1);iN.push({nY:L.src,HX:[eN,JSON.stringify(dk)]})}var fv=JSON.stringify(S.add.SoLd),f3=JSON.parse(fv);
if(f3.filterFX==null)f3.filterFX=hi.G7();var go=f3.filterFX.v.filterFXList.v;go.splice(L.um,0,dp);var d6={nY:L.yD,HX:[fv,JSON.stringify(f3)]};
if(!S.s7()){var hr=b7.ji(S.add.SoLd.placed.v);d6.Mm=[null,hr]}iN.push(d6)}var T=new hp([6,52],this);
T.data={e:o.Kr,pS:iN};U.Sv(T);this.Zm(T.data,U)}if(z==o.XR){var s=p.xV(),T=new hp(s.zF?[6,26]:[6,25],this);
T.data={e:z,$:r};U.Sv(T);this.Zm(T.data,U);this.track({xo:"set",V5:{classID:"setd",null:{t:"obj ",v:[hy.K1("Lyr",!0)]},T:{t:"Objc",v:{classID:"Lyr",Usrs:{t:"bool",v:s.zF}}}}})}if(z==o.F0){var s=p.add.vmsk,T=new hp(s.zF?[6,28]:[6,27],this);
T.data={e:z,$:r};U.Sv(T);this.Zm(T.data,U)}if(z==o.Wm){var iB=[],T;for(var H=0;H<U.C.length;H++){var i=U.C[H],V=U.N[i];
if(V.add.vogk)iB.push(i,JSON.stringify(V.add.vogk))}for(var H=0;H<U.j5.length;H++){var i=U.j5[H],V=U.Jd[i];
if(V.add.vogk)iB.push(-1-i,JSON.stringify(V.add.vogk))}c.zf.a3X(U,L.Ke,L.a5R);var hS=[];for(var H=0;
H<U.C.length;H++){var i=U.C[H],V=U.N[i];if(V.add.vogk)hS.push(i,JSON.stringify(V.add.vogk))}for(var H=0;
H<U.j5.length;H++){var i=U.j5[H],V=U.Jd[i];if(V.add.vogk)hS.push(-1-i,JSON.stringify(V.add.vogk))}var K=U.bQ();
if(K&&K.data&&K.data.e==z){var eF=!0;for(var H=0;H<iB.length;H+=2)if(iB[H]!=K.data.p2[H])eF=!1;if(eF){T=K;
T.data.Lp=hS}}if(T==null){var T=new hp([12,91,1],this);T.data={e:z,p2:iB,Lp:hS};U.Sv(T)}this.Zm(T.data,U)}if(z==o.j_){var T,K=U.bQ();
if(K&&K.data&&K.data.e==z&&K.data.$==r){T=K;T.data.mH=JSON.stringify(L.mH)}if(T==null){var T=new hp("Editing Artboard",this);
T.data={e:z,$:r,aaF:JSON.stringify(p.add.artb),mH:JSON.stringify(L.mH)};U.Sv(T)}this.Zm(T.data,U)}if(z==o.bd){var hS=U.vI.slice(0),bQ=U.te.slice(0),iP=U.t,d8=U.t;
if(L.ev=="fromAction"){var a6=L.G.xo,am=L.G.V5;if(a6=="make"||a6=="duplicate"){var fj=hS.length,gc=!1,dz=!1;
if(U.$k())fj--;var dX=new o.LF;dX.name="Alpha "+(fj+1);if(a6=="make"){var gE=am.Nw.v;dX.color=255;bQ=[fj];
dX.mM=!0;dX.hv=gE.Opct.v;if(gE.Nm)dX.name=gE.Nm.v;if(gE.classID=="SCch"){gc=!0;d8=null;dX.fD=1}}else{var cQ=am.null.v[0].v;
if(cQ.keyID=="fsel")gc=!0;else{var fi=W.kd.so(U);d8=W.kd.cs(U,fi);dX.color=0;dX.rect=d8.rect;dX.channel=d8.channel}}if(gc){dX.color=0;
if(U.t){dX.rect=U.t.rect.clone();dX.channel=U.t.channel.slice(0)}if(dz){dX.color=255-dX.color;c.G$(dX.channel)}}hS.splice(fj,0,dX)}else if(a6=="delete"){var w=U.te;
w.sort(function(T,hD){return hD-T});if(w.length==0)return;for(var H=0;H<w.length;H++)hS.splice(w[H],1);
bQ=[]}else if(a6=="hide"){hS[bQ[0]]=hS[bQ[0]].clone();hS[bQ[0]].mM=!1}}if(L.ev=="rnm"){hS[L.Oi]=hS[L.Oi].clone();
hS[L.Oi].name=L.name}var T=new hp("Channel Edit",this);T.data={e:z,p2:U.vI.slice(0),Ag:U.te.slice(0),Lp:hS,o8:bQ,e5:iP,bx:d8};
this.Zm(T.data,U);U.Sv(T)}if(z==o._f){var T=new hp(L.z9,this);T.data={e:o._f,Jm:U.N.slice(0),f5:L.f5,Dc:U.C.slice(0),Jw:L.bx};
U.Sv(T);this.Zm(T.data,U)}if(z==o.eZ){var dB=U.p9(null,L.$),ai=1e10;if(dB.length==0)return;if(U.N.length==dB.length){alert("Project must have at least 1 layer");
return}var bp=[];for(var H=0;H<U.N.length;H++)if(dB.indexOf(H)==-1)bp.push(U.N[H]);for(var H=0;H<dB.length;
H++)ai=Math.min(ai,dB[H]);ai=Math.max(ai-1,0);while(bp[ai].name=="</Layer group>")ai++;this.track({xo:"delete",V5:{classID:"Dlt",null:hy.K1("Lyr",!0)}});
var T=new hp([6,31],this);T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:[ai]};U.Sv(T);this.Zm(T.data,U)}if(z==o.Sg){var w=L.adk?L.adk:U.C,hu=0,gQ=!1;
if(w.length==0)return;if(w.length==1&&U.N[w[0]].xi==0){alert(gS.get([15,7,5]));return}var bP=[];for(var H=0;
H<U.N.length;H++){var hw=U.N[H].xi;bP.push(hw);hu=Math.max(hu,hw)}var gp=-1,aS=-1;for(var H=0;H<w.length;
H++){var hw=U.N[w[H]].xi;if(hw==0)gQ=!0;else if(gp==-1||gp==hw)gp=hw;else aS=hw}if(!gQ)for(var H=0;H<w.length;
H++)U.N[w[H]].xi=0;else if(gp!=-1&&aS==-1)for(var H=0;H<w.length;H++)U.N[w[H]].xi=gp;else for(var H=0;
H<w.length;H++)U.N[w[H]].xi=hu+1;var iX=[];for(var H=0;H<U.N.length;H++){var hw=U.N[H].xi;if(iX[hw]==null)iX[hw]=0;
iX[hw]++}for(var H=0;H<U.N.length;H++){var hw=U.N[H].xi;if(iX[hw]==1)U.N[H].xi=0}var dW=bP;bP=[];for(var H=0;
H<U.N.length;H++){var hw=U.N[H].xi;bP.push(hw);hu=Math.max(hu,hw)}var T=new hp(gQ?[6,54,0]:[6,54,1],this);
T.data={e:o.Sg,aee:dW,ahF:bP};U.Sv(T);this.Zm(T.data,U)}if(z==o.ok&&(L.$!=null||U.C.length!=0)||z==o.f7){var i7=U.LR(z==o.ok?L.$:r,null,L.aik);
if(z==o.f7){var D=i7[0],a6=D.add.SoLd.Idnt.v,i5=U.tE(a6).clone();D.add.SoLd.Idnt.v=i5.Ea=b7.o7()+a6.slice(8);
U.add.lnk2.push(i5)}if(z==o.ok){var fM={xo:"duplicate",V5:{classID:"null",null:hy.K1("Lyr",!0)}};if(L.Eh){i7[0].I_(L.Eh);
fM.Nm={t:"TEXT",v:L.Eh}}this.track(fM);L.anJ=L.$}z=o.JU;L.N=i7;L.R7=U;L.eb=U}if(z==o.JU){var ei,bu,hG=L.R7,fb=L.eb;
if(hG!=fb){console.log("ADDLAYERS different projs");var ei=new _(0,0,hG.d,hG.v),bu=new _(0,0,fb.d,fb.v),iJ=[],h0=[];
for(var H=0;H<L.N.length;H++){var D=L.N[H];if(D.add.SoLd==null)continue;var a6=D.add.SoLd.Idnt.v;if(iJ.indexOf(a6)==-1){iJ.push(a6);
h0.push(b7.o7()+a6.slice(8))}D.add.SoLd.Idnt.v=h0[iJ.indexOf(a6)];var dK=D.iC(hG);if(dK){hG.pv(dK);fb.nJ(dK)}}if(iJ.length>0){if(fb.add.lnk2==null)fb.add.lnk2=[];
for(var H=0;H<iJ.length;H++){var hM=hG.tE(iJ[H]),i5=hM.clone();i5.Ea=h0[H];fb.add.lnk2.push(i5)}}}var iP=fb.C.slice(0);
iP.sort(function(T,hD){return T-hD});var bp=fb.N.slice(0),d8=[],e0=-1;for(var H=0;H<iP.length;H++)e0=Math.max(e0,iP[H]);
if(L.anJ!=null)e0=L.anJ;e0++;for(var H=0;H<L.N.length;H++){var V=L.N[H];bp.splice(e0,0,V);d8.push(e0);
e0++}if(L.N[L.N.length-1].Jc())d8=[e0-1];var T=new hp([6,0],this);T.data={e:o._f,Jm:fb.N.slice(0),f5:bp,Dc:iP,Jw:d8};
fb.Sv(T);this.Zm(T.data,fb)}if(z==o.rM){var fC=L.$!=null?[L.$]:U.p9(),bp=U.N.slice(0);for(var H=0;H<fC.length;
H++){var V=U.N[fC[H]].clone();V.yE(U);bp.splice(fC[H],1,V)}var T=new hp([6,8],this);T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:U.C.slice(0)};
U.Sv(T);this.Zm(T.data,U)}if(z==o.eq){var bp=U.N.slice(0),V=bp[U.C[0]]=bp[U.C[0]].clone(),cw=V.add.lmfx,az=0;
delete V.add.lmfx;var aD=c.F(V.rect.X());c.wH(V.buffer,aD,3);var d7=ca.eN(cw,null,aD,V.rect,U,V.rect).type;
for(var H=0;H<gM.order.length;H++){var gb=gM.order[H],hl=d7[gb],aZ=H>7;for(var dq=0;dq<hl.length;dq++){var fo=hl[dq],P=U.wP();
P.B4=fo.g_;P.opacity=Math.round(255*fo.Ks);P.l$=!aZ;P.buffer=fo.eB;P.rect=fo.T2;P.rect.offset(V.rect.x,V.rect.y);
P.I_(V.getName()+"'s "+gS.get(gM.names[H]));bp.splice(U.C[0]+(aZ?0:1),0,P);if(aZ)az++}}var T=new hp("Styles to Layers",this);
T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:[U.C[0]+az]};U.Sv(T);this.Zm(T.data,U)}if(z==o.P5){var fC=U.p9(),bp=U.N.slice(0),gF=new _(0,0,U.d,U.v);
for(var H=0;H<fC.length;H++){var hk=U.N[fC[H]],iU=hk.rK();hk.Qs(!0);var iD=U.root.cW(fC[H]);if(hk.Jc())continue;
if(iD==null)continue;var V=hk.clone();V.yE(U);var fJ=iD.dm(U,!0),gh=U.N;U.o2([hk]);U.s();U.nU();V.buffer=c.F(fJ.X()*4);
c.La(U.E0(),gF,V.buffer,fJ);V.rect=fJ;V.opacity=255;V.add.iOpa=255;V.B4="norm";V.s();V.V.Of=!0;U.o2(gh);
if(V.add.lmfx)delete V.add.lmfx;V.r=V.Os=null;bp.splice(fC[H],1,V);V.Qs(iU);hk.Qs(iU)}var T=new hp([6,34],this);
T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:U.C.slice(0)};U.Sv(T);this.Zm(T.data,U)}if(z==o.FQ){var fC=U.p9(),bp=U.N.slice(0);
for(var H=0;H<fC.length;H++){var V=U.N[fC[H]],aM=V.add.TySh;if(aM==null)continue;var D=new hX(aM.Se,Y.tW),hE=c.a.xK(bk.nn(D,aM));
for(var ep in hE){var h4=hE[ep],i9=V.clone();delete i9.add.TySh;i9.bP=i9.bP|1<<4;i9.add.SoCo=JSON.parse(JSON.stringify(gM.bK[0]));
var aE=i9.add.SoCo.Clr.v;aE.Rd.v=parseInt(ep.slice(1,3),16);aE.Grn.v=parseInt(ep.slice(3,5),16);aE.Bl.v=parseInt(ep.slice(5,7),16);
var bK=new o.mR;bK.n=c.a.n2(h4,!1);if(i9.add.vmsk!=null){i9.add.vmsk.akU();bK.concat(i9.add.vmsk)}i9.add.vmsk=bK;
i9.add.vstk=JSON.parse(JSON.stringify(gM.H0.default));i9.Gg();i9.cr(U);bp.splice(bp.indexOf(V),0,i9)}bp.splice(bp.indexOf(V),1)}var d8=U.C.slice(0);
for(var H=d8.length-1;H>=0;H--)if(d8[H]>=bp.length)d8.splice(H,1);var T=new hp([6,40],this);T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:d8};
U.Sv(T);this.Zm(T.data,U)}if(z==o.qJ){var aF=U.C.length;if(aF<2){alert("Select two or more layers.");
return}if(!U.yq())return;var i9=U.N[U.C[0]].clone(),bp=[];for(var H=0;H<U.N.length;H++)if(U.C.indexOf(H)==-1)bp.push(U.N[H]);
bp.splice(U.C[0],0,i9);for(var H=1;H<aF;H++)if(U.N[U.C[H]].rect.X()>2e6){alert("Blended areas are too large.");
return}for(var H=1;H<aF;H++){var V=U.N[U.C[H]],aN=V.rect.clone();aN.WW(1,1);var hD=c.F(aN.X()*4);c.La(V.buffer,V.rect,hD,aN);
i9.extend(aN);var ct=c.F(aN.X()*4);c.La(i9.buffer,i9.rect,ct,aN);var T=c.F(aN.X());c.wH(hD,T,3);c.round(T,200);
c.Wn(T,hD,3);c.Q.Kj("norm",hD,aN,ct,aN,aN,1);c.l2.p8(ct,T,aN);c.La(ct,aN,i9.buffer,i9.rect)}var T=new hp([2,10,0],this);
T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:[U.C[0]]};U.Sv(T);this.Zm(T.data,U)}if(z==o.vw){var bp=U.N.slice(0),bQ=U.C.slice(0);
for(var H=0;H<bp.length;H++){var V=bp[H],ex=V.add.vmsk;if(V.G_()&&ex&&V.add.vstk.strokeEnabled.v&&!V.add.vstk.fillEnabled.v){var gi=ex.n,dj=0,as=-1;
for(var dq=0;dq<gi.length;dq++){if((gi[dq].type==0||gi[dq].type==3)&&gi[dq].ZZ!=-1){dj++;if(gi[dq].type==3&&as==-1){gi[dq].A9=gi[dq].ZZ=1;
as=dq}}}if(dj>1&&as!=-1){console.log("separating an open path into a new layer");V=V.clone();ex=V.add.vmsk;
gi=ex.n;var P=gi[as].length,fp=V.clone();fp.add.lyid=U.vd();ex.n=gi.slice(0,2).concat(gi.slice(as,as+P+1));
ex.C=[];V.cr(U);V.s();var ci=fp.add.vmsk.n;fp.add.vmsk.n=ci.slice(0,as).concat(ci.slice(as+P+1,ci.length));
fp.add.vmsk.C=[];fp.cr(U);bp[H]=V;bp.splice(H+1,0,fp);for(var dq=0;dq<bQ.length;dq++)if(bQ[dq]>H)bQ[dq]++;
var fU=bQ.indexOf(H);if(fU!=-1){bQ.splice(fU+1,0,H+1)}}}}if(bp.length!=U.N.length){var T=new hp("Splitting open paths",this);
T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:bQ};U.Sv(T);this.Zm(T.data,U)}}if(z==o.w$){this.GV({e:o.vw},C,U,E,Y);
var iP=U.C.slice(0),gh=U.N.slice(0),fC=U.p9();if(fC.length==0)return;U.Vo(fC,!1,L.Dl);var T=new hp([6,36,0],this);
T.data={e:o._f,Jm:gh,f5:U.N.slice(),Dc:iP,Jw:U.C.slice(0)};U.Sv(T);this.Zm(T.data,U)}if(z==o.ah){var eN=p.add.SoLd;
if(eN==null)return;var a6=eN.Idnt.v,iT=U.tE(a6);iT.E0(!1);var ee=iT.Ne[0],aN=iT.Ne[1];if(c.Db(ee)){alert("The smart object contains transparency.");
return}var at=iL.WS("jpg").aR([[ee.buffer]],aN.d,aN.v,[90]);this.GV({e:o.TO,_u:U,data:new Uint8Array(at),id:a6,Dl:"jpg"},C,U,E,Y);
console.log(U.add);return}if(z==o.TO){var hM=L._u.tE(L.id),i5=hM.clone();i5.raw=L.data;if(L.Dl){i5.YO="    ";
i5.L$="    ";i5.GQ=i5.GQ+"."+L.Dl}else{i5.YO="8BIM";i5.L$="8BPB";i5.GQ=i5.GQ+".psd"}i5.E0(!1);hM.E0(!1);
var T=new hp([6,36,1],this);T.data={e:o.TO,id:L.id,bT:hM,wp:i5};L._u.Sv(T);this.Zm(T.data,L._u)}if(z==o.bH){var T=new hp([6,36,4],this);
T.data={e:z,$:r,LE:p.add.SoLd.Impr.v.classID,oq:L.oq};U.Sv(T);this.Zm(T.data,U)}if(z==o.px){var bV,ij;
if(L.K6){bV=L._u;ij=L.K6}else{L._u.oQ();L._u.C8();L._u.s();L._u.nU();L._u.E0();bV=iL.WS("PSD").aR(L._u,0,0,[!0,!0]);
ij=L._u.name}if(!(bV instanceof ArrayBuffer))throw"e";bV=new Uint8Array(bV);var a=L.Z7!=null?L.Z7:U.C[U.C.length-1]+1,eT=U.$F(bV,ij,0,0,!0),bp=U.N.slice(0);
bp.splice(a,0,eT);var T=new hp([6,36,2],this);T.data={e:o._f,Jm:U.N.slice(),f5:bp,Dc:U.C.slice(0),Jw:[bp.indexOf(eT)]};
U.Sv(T);this.Zm(T.data,U)}if(z==o.VE&&L.ev=="merge"){var cE=[],cv=U.root.children,ff=0;for(var H=0;H<cv.length;
H++){var l=cv[H],V=l.$,eP=l.children,h5=!0;if(!V.Jc()||eP.length==0)continue;for(var dq=0;dq<eP.length;
dq++)if(!eP[dq].$.getName().startsWith("_a_")){h5=!1;break}if(h5)cE.push(U.N.indexOf(V))}var fn=[];for(var H=0;
H<cE.length;H++)if(U.C.indexOf(cE[H])!=-1)fn.push(cE[H]);if(fn.length>=2)cE=fn;if(cE.length<2){alert("At least two animation folders needed (whose layers start with \"_a_\").",3500);
return}var a0=[];for(var H=0;H<cE.length;H++)a0.push(U.N[cE[H]].getName());var hl=[];for(var bA=0;bA<cE.length;
bA++){var l=U.root.cW(cE[bA]),d6=[[],[],0,bA];hl.push(d6);for(var H=0;H<l.children.length;H++){var i=l.children[H].index,V=l.children[H].$,dX=V.getName(),aR=20,dE=dX.split(",");
if(dE.length>1){var hC=parseInt(dE.pop());if(!isNaN(hC)&&hC!=0)aR=hC}d6[0].push(V);d6[1].push(aR);d6[2]+=aR}}hl.sort(function(T,hD){return hD[2]-T[2]});
var aK=hl[0],bg=aK[2];for(var gf=1;gf<hl.length;gf++){var d6=hl[gf],an=1,fR=d6[1].slice(0),ce=0;while((an+1)*d6[2]<=aK[2]){an++;
fR=fR.concat(d6[1])}d6[1]=fR;d6[2]*=an;var il=aK[2]/d6[2];for(var H=0;H<d6[1].length;H++){var cf=Math.floor(d6[1][H]*il);
d6[1][H]=cf;ce+=cf}while(ce<bg){ce++;d6[1][d6[1].length-1]++}d6[2]=ce}var hU=[],d4=[],cf=[];for(var H=0;
H<hl.length;H++){hU.push(0);d4.push(0)}while(ff<bg){var cz=1e9,fj=-1;for(var H=0;H<hl.length;H++){var bv=hl[H][1],dL=hU[H];
if(dL!=bv.length&&d4[H]+bv[dL]<ff+cz){fj=H;cz=d4[H]+bv[dL]-ff}}d4[fj]+=hl[fj][1][hU[fj]];hU[fj]++;if(cz!=0){cf.push(cz);
ff+=cz}}for(var H=0;H<cf.length;H++){var fy=cf[H],df=fy>>>1;if(fy<17){var i=cf.length-1;if(H==0)cf[1]+=fy;
else if(H==cf.length-1)cf[i-1]+=fy;else{cf[H-1]+=df;cf[H+1]+=fy-df}cf.splice(H,1);H--}}var iU=[],gF=new _(0,0,U.d,U.v);
for(var H=0;H<U.N.length;H++){iU[H]=U.N[H].rK();U.N[H].Qs(!1)}var ax=U.C.slice(0);U.C=cE;var dB=U.p9();
dB.sort(function(T,hD){return T-hD});var bp=[];for(var H=0;H<U.N.length;H++){if(dB.indexOf(H)==-1)bp.push(U.N[H])}hl.sort(function(T,hD){return T[3]-hD[3]});
function i2(bv,gU){var H=0,f$=0;while(f$+bv[H]<=gU){f$+=bv[H];H++}return H}ff=0;bp.splice(dB[0],0,U.rJ());
for(var fK=0;fK<cf.length;fK++){var O=[];for(var H=0;H<hl.length;H++){var dL=i2(hl[H][1],ff)%hl[H][0].length,V=hl[H][0][dL];
O.push(V)}var V=U.wP();for(var H=0;H<hl.length;H++){var dt=O[H],fq=U.N[cE[H]];dt.Qs(!0);fq.Qs(!0)}U.s();
U.nU();var ee=U.E0();V.rect=c.TW(ee,gF);V.buffer=c.F(V.rect.X()*4);c.La(ee,gF,V.buffer,V.rect);for(var H=0;
H<hl.length;H++){var dt=O[H],fq=U.N[cE[H]];dt.Qs(!1);fq.Qs(!1)}V.Qs(fK==0);V.I_("_a_frm"+fK+","+cf[fK]);
bp.splice(dB[0]+1+fK,0,V);ff+=cf[fK]}var V=U.wP();V.I_(a0.join(" + "));V.B4="pass";V.add.lsct=fI.z7;
V.bP=24;bp.splice(dB[0]+1+cf.length,0,V);for(var H=0;H<U.N.length;H++)U.N[H].Qs(iU[H]);var T=new hp([6,12,0],this);
T.data={e:o._f,Jm:U.N,f5:bp,Dc:ax,Jw:[dB[0]+1+cf.length]};U.Sv(T);this.Zm(T.data,U)}if(z==o.Zt||z==o.NX||z==o.QT){var gh=U.N.slice(0),iP=U.C.slice(0),iz=!0,eT,d8;
if(z==o.Zt)U.C=[r,r-1];if(z==o.QT){U.C=[];for(var H=0;H<U.N.length;H++)if(U.N[H].rK())U.C.push(H)}var fC=U.p9();
fC.sort(function(T,hD){return T-hD});var a7=new _,gF=new _(0,0,U.d,U.v);for(var H=0;H<fC.length;H++){var i=fC[H],V=U.N[i];
iz=iz&&V.G_()&&V.add.vmsk!=null;a7=a7.EU(U.root.cW(i).dm(U,!0))}if(iz){eT=U.N[fC[0]].clone();var ex=eT.add.vmsk;
for(var H=1;H<fC.length;H++){var P=U.N[fC[H]],ci=o.mR.Xu(P.add.vmsk.n);ex.n=ex.n.concat(ci.slice(2));
eT.add.vogk=eT.add.vogk.concat(JSON.parse(JSON.stringify(P.add.vogk)))}eT.add.vmsk.st=!0;eT.cr(U)}else if(gF.zg(a7)){eT=U.wP();
eT.I_(U.N[fC[fC.length-1]].getName());eT.rect=a7;eT.buffer=c.F(a7.X()*4);var d_=U.E0(fC);c.La(d_,gF,eT.buffer,a7);
eT.s()}else{U.Vo(fC,!0);eT=U.N[U.C[0]];U.N.splice(U.C[0],1);var fD=U.tE(eT.add.SoLd.Idnt.v);U.add.lnk2.splice(U.add.lnk2.indexOf(fD),1);
delete eT.add.SoLd}var f_=E.q(G.Lv),gt=-1;if(L.V5&&L.V5.Dplc&&L.V5.Dplc.v)f_=!0;if(f_&&z==o.QT&&U.N[iP[0]].bB()&&U.N[iP[0]].rect.ue()){gt=iP[0];
eT.I_(U.N[gt].getName())}var bp=[];for(var H=0;H<U.N.length;H++)if(f_||fC.indexOf(H)==-1)if(H!=gt)bp.push(U.N[H]);
var gg=fC[fC.length-1],cR=gg==U.N.length-1?null:U.N[gg+1],cJ=cR?bp.indexOf(cR):bp.length;bp.splice(cJ,0,eT);
d8=[cJ];var T=new hp([6,12,0],this);T.data={e:o._f,Jm:gh,f5:bp,Dc:iP,Jw:d8};U.Sv(T);this.Zm(T.data,U)}if(z==o._m){var i9=U.wP();
i9.rect=new _(0,0,U.d,U.v);i9.buffer=c.F(i9.rect.X()*4);c.n0(i9.buffer,4294967295);c.Q.Kj("norm",U.E0(),i9.rect,i9.buffer,i9.rect,i9.rect,1);
i9.I_("Background");i9.add.lspf=1<<2;var T=new hp([6,12,1],this);T.data={e:o._f,Jm:U.N.slice(),f5:[i9],Dc:U.C.slice(0),Jw:[0]};
U.Sv(T);this.Zm(T.data,U)}if(z==o.vY||z==o.kB||z==o.aj||z==o.oh||z==o.iM){var V=z==o.iM?U.N[U.C[0]].clone():U.wP(),he=gS.get([0,3]),fz=L.Eh,fx=!1,hB,ay;
if(z==o.aj)he=gS.get([12,76,1]);if(z==o.iM){var hk=U.N[U.C[0]],dR=hk.uB(U,U.t);if(dR==null){alert("Copied area is empty");
return}V.rect=dR.rect;V.buffer=dR.JL;V.yE(U)}if(z==o.oh){V.rect=hO.T0.hs(L.rC,U);V.buffer=L.rC.buffer.slice(0);
if(L.th&&U.t){V.r=new o.LF;V.r.rect=U.t.rect;V.r.color=0;V.r.channel=U.t.channel.slice(0)}}if(z==o.vY){this.track({xo:"make",V5:{classID:"Mk",null:hy.K1("Lyr")}})}if(z==o.kB){V.bP|=16;
var hn=L.V5.Usng.v,eQ=hn.Type.v,hI=eh.xM[eQ.classID];he=gS.get(eh.names[hI]);if(hn.Nm)fz=hn.Nm.v;V.add[hI]=hi.Q4(hI);
if(V.add[hI]==null)V.add[hI]={};for(var hz in eQ)V.add[hI][hz]=JSON.parse(JSON.stringify(eQ[hz]));V.r=hO.T0.rL(U)}if(z==o.aj){V.bP|=16;
var am=L.V5,hn=am.Usng.v,c1=hn.Type.v,b2=hn.Shp;if(b2==null){var hd=U.zG(),hE=hd[0],bX=hd[1];if(bX.length!=0){var gj=hE[bX[0]].add;
V.add.vmsk=gj.vmsk.clone();V.add.vstk=JSON.parse(JSON.stringify(gM.H0.default));V.add.vogk=JSON.parse(JSON.stringify(gj.vogk));
U.j5=[]}else V.r=hO.T0.rL(U)}else{console.log(hn);V.add.vmsk=new o.mR;V.add.vstk=JSON.parse(JSON.stringify(hn.strokeStyle?hn.strokeStyle.v:gM.H0.default));
V.add.vogk=[];if(b2){var gY=c.zf.e8(b2);if(gY){V.add.vogk=[gY];V.add.vmsk.n.push({type:0,ZZ:1,length:0});
c.zf.H7(V.add.vogk,V.add.vmsk)}else{b2=b2.v;var hY=b2.classID;if(hY=="Plgn"){var hb=b2.Cntr.v,gO=b2.corner.v;
hb=new hZ(hb.Hrzn.v.val,hb.Vrtc.v.val);gO=new hZ(gO.Hrzn.v.val,gO.Vrtc.v.val);V.add.vmsk.n=c.Y.tD.gE(hb.x,hb.y,Math.sqrt(gO.x*gO.x+gO.y*gO.y),Math.atan2(gO.y,gO.x),b2.sides.v,0)}else if(hY=="customShape"){var aO=c.zf.Ux(b2),io=aO[2]-aO[0],i3=aO[3]-aO[1],c9=Y.bc,dD,iS;
for(var H=0;H<c9.length;H++)if(c9[H].gf==b2.Nm.v)dD=c9[H];if(dD){iS=o.mR.Xu(dD.n);c.Y.IL(iS,new c0(io,0,0,i3,aO[0],aO[1]))}else iS=c.Y.tD.Rect(aO[0],aO[1],io,i3,0);
V.add.vmsk.n=iS}V.Gg()}}}var e_={solidColorLayer:0,gradientLayer:1,patternLayer:2}[c1.classID],dn=["SoCo","GdFl","PtFl"][e_];
V.add[dn]=JSON.parse(JSON.stringify(gM.bK[e_]));hO.T0.L_(c1,V.add[dn],e_);if(b2==null)he=gS.get([6,48,0,e_]);
if(dn=="PtFl")U._q(ca.fi(V.add[dn].Ptrn.v,Y.mt));V.cr(U)}var aF=hO.T0._x(U,he+" ");V.I_(he+" "+(aF+1));
if(fz)V.I_(fz);var gs=U.C.length==0?U.N.length-1:U.C[U.C.length-1],gV=U.N[gs];if(z==o.aj&&gV.bB()&&gV.rect.ue()){fx=!0;
V.I_(gV.getName());hB=gs}else{hB=gs+1;if(gV&&gV.add.lsct==fI.Qr)hB--}if(L.anR)hB=Math.max(0,hB-1);var bp=U.N.slice(0);
bp.splice(hB,fx?1:0,V);var gq=[5,2];if(z==o.vY)gq=[6,13];if(z==o.kB)gq=[6,1];if(z==o.aj){gq=[6,48,1];
var b2=L.V5.Usng.v.Shp;if(b2){var fw={Rctn:[10,32],Ln:[10,35],Elps:[10,33],Plgn:[12,93,0],customShape:[10,31]}[b2.v.classID];
if(fw)gq=fw}}if(z==o.iM){gq=[6,49]}if(z==o.iM||z==o.aj||z==o.oh)if(U.t)ay=[U.t,null];var T=new hp(gq,this);
T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:[hB],iT:ay};U.Sv(T);this.Zm(T.data,U);if(z==o.aj&&b2==null&&e_!=0||z==o.kB){var aW=new q(B.E.l);
aW.data={e:B.U.Cz,k5:hQ.Du.ka};C.B(aW)}}if(z==o.x2){var V=U.wP();V.I_(gS.get([0,4])+" "+U.N.length);
V.B4="pass";V.add.lsct=fI.Qr;V.bP=24;var iw=U.rJ(),gs=r,hB=gs+1,bp=U.N.slice(0);bp.splice(hB,0,iw,V);
var T=new hp([6,20],this);T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:[hB+1]};U.Sv(T);this.Zm(T.data,U)}if(z==o.Br||z==o.Ls){var c7=z==o.Br?L.source:U.C[0],d1,c4,fT=U.C.indexOf(c7)!=-1,eM=E.q(G.Lv)|L.a1K,aG;
if(fT)aG=U.p9();else aG=U.a1(c7);aG.sort(function(T,hD){return T-hD});if(z==o.Br){d1=L.target;c4=L.KO>.5}else if(L.target!=null){d1=L.target;
c4=!0;U.fP=!0}else{var c6=L.ev;c4=c6>1;if(c6==0){d1=U.N.length-1}if(c6==1){d1=aG[aG.length-1]+1;var P=U.a1(d1);
if(P.indexOf(c7)==-1)d1+=P.length-1}if(c6==2){d1=aG[0]-1;var P=U.a1(d1);if(P.indexOf(c7)==-1)d1-=P.length-1}if(c6==3){d1=0}if(d1<0||d1>U.N.length-1)return;
U.fP=!0}if(aG.indexOf(d1)!=-1&&!eM)return;var cF=U.N[d1],bp=[];if(eM)bp=U.N.slice(0);else for(var H=0;
H<U.N.length;H++)if(aG.indexOf(H)==-1)bp.push(U.N[H]);var is=bp.indexOf(cF);if(z==o.Br&&cF.Jc()&&cF.add.lsct==fI.z7&&L.KO>.8)is-=U.a1(d1).length-1;
var eD=[],f2=eM?U.LR(fT?null:c7):null;for(var H=0;H<aG.length;H++){var ii=is+(c4?0:1)+H,D=eM?f2[H]:U.N[aG[H]];
bp.splice(ii,0,D);eD.push(ii)}var T=new hp(eM?[6,0]:[6,35],this);T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:eD};
U.Sv(T);this.Zm(T.data,U);var am={classID:"move",null:hy.K1("Lyr",!0),T:{t:"obj ",v:[{t:"indx",v:{classID:"Lyr",val:is+(c4?0:1)}}]},Adjs:{t:"bool",v:!1},Vrsn:{t:"long",v:5},Dplc:{t:"long",v:eM}};
this.track({xo:"move",V5:am})}if(z==o.fe){if(L.EP){if(p==null||!p.Jc())return;var l=U.root.cW(r),hW=U.N.indexOf(l.a6q),bp=U.N.slice(0);
bp.splice(r,1);bp.splice(hW,1);var bQ=[];for(var H=hW;H<r-1;H++)bQ.push(H);var T=new hp("Ungroup Layers",this);
T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:bQ};U.Sv(T);this.Zm(T.data,U)}else{var V=U.wP(),gH=gS.get([0,4])+" ";
V.I_(gH+(hO.T0._x(U,gH)+1));V.B4="pass";if(L.Eh)V.I_(L.Eh);V.add.lsct=U.C.length==1?fI.Qr:fI.z7;V.bP=24;
var iw=U.rJ(),aG=U.p9();if(aG.length==0)return;aG.sort(function(T,hD){return T-hD});var bp=[];for(var H=0;
H<U.N.length;H++)if(aG.indexOf(H)==-1)bp.push(U.N[H]);var gs=U.C[U.C.length-1]-aG.length;bp.splice(gs+1,0,iw);
for(var H=0;H<aG.length;H++)bp.splice(gs+2+H,0,U.N[aG[H]]);bp.splice(gs+2+aG.length,0,V);var T=new hp([6,9],this);
T.data={e:o._f,Jm:U.N.slice(0),f5:bp,Dc:U.C.slice(0),Jw:[bp.indexOf(V)]};U.Sv(T);this.Zm(T.data,U);var h={xo:"make",VL:!0};
h.V5={classID:"Mk",null:hy.K1("layerSection"),From:hy.K1("Lyr",!0),Usng:{t:"Objc",v:{classID:"layerSection",Nm:{t:"TEXT",v:V.getName()}}}};
this.track(h)}}if(z==o.cU){if(U.C.length!=1)return;var a=U.C[0],g2=E.q(G.Lv);if(U.N[a].xV()==null){z=o.KU;
L.AT=U.t?!g2?"RvlS":"HdSl":!g2?"RvlA":"HdAl"}else z=o.CU}if(z==o.KU){if(U.C.length!=1)return;var a=U.C[0],V=U.N[a];
if(V.add.vmsk&&V.r==null)V.cr(U);var ba=V.xV();if(ba==null||L.a2I){var T=new hp([6,21],this),iC=new o.LF,f0=L.AT,bZ=f0=="RvlS"||f0=="HdSl";
if(f0=="RvlS"||f0=="HdAl"||f0=="Trns")iC.color=0;if(bZ){iC.channel=U.t.channel.slice(0);iC.rect=U.t.rect.clone();
if(f0=="HdSl")c.G$(iC.channel)}if(f0=="Trns"){iC.rect=V.rect.clone();iC.channel=c.F(V.rect.X());c.wH(V.buffer,iC.channel,3)}T.data={e:z,$:a,r:iC,lw:ba,iT:bZ?[U.t,null]:null};
U.Sv(T);this.Zm(T.data,U);U.N[a].yQ=1;this.track({xo:"make",V5:{__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:f0}}}})}}else if(z==o.vZ){var e8=U.N[L.src],S=U.N[L.yD];
if(S.xV())return;var T=new hp([6,21],this),iC=e8.xV();if(L.nz){T.data={e:o.KU,$:L.yD,r:iC.clone()}}else{T.data={e:z,src:L.src,yD:L.yD,r:iC}}U.Sv(T);
this.Zm(T.data,U)}if(z==o.LT){if(U.C.length!=1)return;var a=r;if(U.N[a].xV()!=null){var T=new hp([6,22],this);
T.data={e:z,$:a,r:U.N[a].xV()};U.Sv(T);this.Zm(T.data,U)}}if(z==o.MH){var gh=U.N.slice(0),i9=p.clone(),cB=i9.xV();
c.Ow(cB.X8(i9.rect),i9.rect,i9.buffer,i9.rect);hO.T0.UM(U,i9);U.N[U.C[0]]=i9;var T=new hp([5,8],this);
T.data={e:o._f,Jm:gh,f5:U.N.slice(),Dc:U.C.slice(0),Jw:U.C.slice(0)};U.Sv(T);this.Zm(T.data,U)}if(z==o.Ht){if(U.C.length!=1)return;
var a=U.C[0];if(U.N[a].iC(U).r==null){var T=new hp([6,45],this);T.data={e:z,$:a,r:new o.LF};U.Sv(T);
this.Zm(T.data,U)}}if(z==o.m1){if(U.C.length!=1)return;var a=U.C[0];if(U.N[a].iC(U).r!=null){var T=new hp([6,46],this);
T.data={e:z,$:a,r:U.N[a].iC(U).r};U.Sv(T);this.Zm(T.data,U)}}if(z==o.fy){if(L.$==null&&U.C.length!=1)return;
if(U.N[r].s7()){var T=new hp([6,47],this),eN=JSON.stringify(U.N[r].add.SoLd),dk=JSON.parse(eN);delete dk.filterFX;
T.data={e:o.Kr,pS:[{nY:r,HX:[eN,JSON.stringify(dk)],Mm:[U.N[r].iC(U),null]}]};U.Sv(T);this.Zm(T.data,U)}}if(z==o.CU){if(U.C.length!=1)return;
if(p.add.vmsk==null){var T=new hp([6,23],this),gi=U.zG(),w=gi[1],gi=gi[0],iC,gY;if(L.aeU&&w.length!=0){var gj=gi[w[0]].add;
iC=gj.vmsk.clone();gY=gj.vogk}else{iC=new o.mR;gY=[];iC.n[1].all=L.ahi?0:1}T.data={e:z,$:r,lY:!0,r:iC,zf:JSON.stringify(gY),H0:null};
if(p.G_()){T.data.H0=JSON.stringify(gM.H0.default)}U.Sv(T);this.Zm(T.data,U)}}if(z==o.XQ){var e8=U.N[L.src],S=U.N[L.yD];
if(S.add.vmsk)return;var T=new hp([6,23],this),ex=e8.add.vmsk;T.data={$:L.yD,lY:e8.hI,r:ex.clone(),zf:JSON.stringify(e8.add.vogk),H0:e8.add.vstk?JSON.stringify(e8.add.vstk):null};
if(L.nz){T.data.e=o.CU}else{T.data.e=z;T.data.src=L.src;T.data.yD=L.yD}U.Sv(T);this.Zm(T.data,U)}if(z==o.Xl){if(U.C.length!=1)return;
var V=U.N[r],ex=V.add.vmsk;if(ex!=null){var T=new hp([6,24],this);T.data={e:z,$:r,lY:V.hI,r:ex,zf:JSON.stringify(V.add.vogk),H0:V.add.vstk?JSON.stringify(V.add.vstk):null};
U.Sv(T);this.Zm(T.data,U)}}if(z==o.$v){var T=new hp("Metadata",this);T.data={e:z,pf:JSON.stringify(U.Ii),Jz:JSON.stringify(L.Jz)};
U.Sv(T);this.Zm(T.data,U)}if(z==o.r$){var ao=L.yD?L.yD:U,bq=ao.name,fz=L.G+".psd";if(bq==fz)return;var T=new hp([6,37],this);
T.data={e:z,a4$:bq,Eh:fz};if(L.anH!=!0)ao.Sv(T);this.Zm(T.data,ao)}if(z==o.VE&&L.ev=="makeframes"){var iV=[];
for(var H=0;H<U.C.length;H++){var i=U.C[H],V=U.N[i],cX=V.getName();if(cX.startsWith("_a_")||V.add.lsct==fI.ya)continue;
iV.push([i,cX,"_a_"+cX,V.add.lnsr,null])}var T=new hp([6,37],this);T.data={e:o.lt,wm:iV};U.Sv(T);this.Zm(T.data,U)}if(z==o.lt){var bq=p.getName(),fz=L.name.substring(0,255);
if(bq==fz)return;var T=new hp([6,37],this);T.data={e:z,wm:[[r,bq,fz,p.add.lnsr,null]]};U.Sv(T);this.Zm(T.data,U);
this.track(hy.KE("Nm",{t:"TEXT",v:fz}))}if(z==o.Qa){var g7=U.p9(),hJ=[],ah=[];for(var H=0;H<g7.length;
H++){hJ.push(U.N[g7[H]].add.lclr);ah.push(L.aa_)}var T=new hp([6,38],this);T.data={e:z,N:g7,alD:hJ,alA:ah};
U.Sv(T);this.Zm(T.data,U)}if(z==o.QW){var T=U.history[U.xC];if(T!=null&&T.m==this&&T.data.e==z&&T.data.$==L.Il&&T.data.oq.US==L.Pp.US)T.data.oq=L.Pp;
else{T=new hp("Mask Density / Feather",this);T.data={e:z,$:L.Il,LE:U.N[L.Il].LC(L.Pp.US),oq:L.Pp};U.Sv(T)}this.Zm(T.data,U)}if(z==o.jT){var gJ=JSON.stringify(L.G),f9=JSON.parse(gJ),T=U.history[U.xC];
if(T!=null&&T.m==this&&T.data.e==z&&T.data.JM==L.JM&&T.data.s9.join(",")==L.s9.join(",")){for(var H=0;
H<L.s9.length;H++)T.data.yJ[H]=f9;if(T.data.V5&&f9.L$!=0)hO.T0.L_(f9.o$,T.data.V5.T.v,f9.L$-1)}else{T=new hp([11,6],this);
T.data={e:z,s9:L.s9,JM:L.JM,abw:[],yJ:[]};var fF=!1;for(var H=0;H<L.s9.length;H++){var i=L.s9[H],V=U.N[i],dM=L.JM?W.CI.lF(U,i):JSON.parse(JSON.stringify(V.add.vstk));
T.data.abw.push(dM);T.data.yJ.push(f9);if(JSON.stringify(dM)!=gJ)fF=!0}if(!fF)return;U.Sv(T);if(L.JM&&f9.L$>0){var am=T.data.V5={classID:"setd",null:hy.K1("contentLayer",!0),T:{t:"Objc",v:{}}},dn=["SoCo","GdFl","PtFl"][f9.L$-1];
hO.T0.L_(f9.o$,am.T.v,f9.L$-1);this.track({xo:"set",V5:am})}}if(L.JM&&f9.L$==3)U._q(ca.fi(f9.o$.Ptrn.v,Y.mt));
if(!L.JM){var h6=f9.strokeStyleContent.v;if(h6.classID==gM.H0.g0[2])U._q(ca.fi(h6.Ptrn.v,Y.mt))}this.Zm(T.data,U)}};
hO.T0.L_=function(L,C,U){var E=[gM.TL,gM.DV,gM.ex][U];if(C.classID==null)C.classID=["solidColorLayer","gradientLayer","patternLayer"][U];
for(var H=0;H<E.length;H++)if(L[E[H]])C[E[H]]=JSON.parse(JSON.stringify(L[E[H]]))};hO.T0.rL=function(L){var C=new o.LF;
if(L.t!=null){C.color=0;C.channel=L.t.channel.slice(0);C.rect=L.t.rect.clone()}return C};hO.T0.Oz=function(L,C,U,E){var Y=E.d/U.d,z=E.v/U.v,r=E.d/2,p=E.v/2,T=c.a.kG(E).c;
for(var H=0;H<L.N.length;H++){var k=L.N[H],P=k.add.SoLd;if(P==null||P.Idnt.v!=C)continue;if(Y!=1||z!=1){var b=W.o.pp(P.nonAffineTransform),Q=c.I.O4(b,E),K=new c0;
K.translate(-r,-p);K.scale(Y,z);K.translate(r,p);var h=c.I.O1(Q,c.I.BL(K)),x=T.slice(0);c.I.apply(h,x);
P.Trnf=W.o.M4(x);P.nonAffineTransform=W.o.M4(x)}k.RM(L)}L.s()};hO.T0.ab4=function(L,C,U){C.color=255-C.color;
c.G$(C.channel);C.st=!0;L.cr(U);U.s()};hO.T0.prototype.Ic=function(L,C){var U=L.e,E=C.N[L.$];C.hK=!0;
if(U==o.TO){C.add.lnk2.splice(C.add.lnk2.indexOf(L.wp),1,L.bT);hO.T0.Oz(C,L.id,L.wp.Ne[1],L.bT.Ne[1])}if(U==o.bH){E.add.SoLd.Impr.v.classID=L.LE;
E.RM(C)}if(U==o.uP){var Y=JSON.parse(L.s9);for(var H=0;H<Y.length;H++)C.N[Y[H]].B4=L.to[H];C.s()}if(U==o.K0){var Y=JSON.parse(L.s9);
for(var H=0;H<Y.length;H++)C.N[Y[H]].opacity=L.to[H];C.s()}if(U==o.Lx){var Y=JSON.parse(L.s9);for(var H=0;
H<Y.length;H++)if(C.N[Y[H]].add.lsct!=fI.ya)C.N[Y[H]].add.lspf=L.to[H]}if(U==o.mX){var z=L.ZI,r=L.alQ;
delete E.add[z[0]];if(r[0]!="----")E.add[r[0]]=r[1]}if(U==o.J9){E.add.iOpa=L.to;C.s()}if(U==o.Zu){for(var H=0;
H<L.s9.length;H++){var p=C.N[L.s9[H]];p.Qs(!p.rK())}C.s()}if(U==o.xd){var T=E.xV();T.isEnabled=!T.isEnabled;
E.cr(C);C.s()}if(U==o.Ue){var T=E.iC(C).r;T.isEnabled=!T.isEnabled;E.s();C.s()}if(U==o.qN){var T=E.add.vmsk;
T.isEnabled=!T.isEnabled;if(!T.isEnabled){if(E.Os){E.r=E.Os;E.Os=null}else E.r=null}else if(E.r){E.Os=E.r;
E.r=null}E.cr(C);C.s()}if(U==o.VY){E.l$=!E.l$;C.s()}if(U==o.sg){E.add.lmfx.masterFXSwitch.v=!E.add.lmfx.masterFXSwitch.v;
E.V.Of=!0;C.s()}if(U==o.l6){E.add.SoLd.filterFX.v.enab.v=!E.add.SoLd.filterFX.v.enab.v;E.vV(C);C.s()}if(U==o._8){var k=L.index,P=E.add.lmfx[gM.cp[k[0]]].v[k[1]].v;
P.enab.v=!P.enab.v;E.V.Of=!0;C.s()}if(U==o.Zd){var b=C.N[L.adI],Q=C.N[L.ah8],K=L.a8f,h=L.a2o;if(K=="")delete b.add.lmfx;
else b.add.lmfx=JSON.parse(K);if(h=="")delete Q.add.lmfx;else Q.add.lmfx=JSON.parse(h);b.V.Of=!0;Q.V.Of=!0;
C.s()}if(U==o.rQ){var x=E.add.SoLd.filterFX.v.filterFXList.v[L.index].v;x.enab.v=!x.enab.v;E.vV(C);C.s()}if(U==o.nG){E.add.SoLd.filterFX.v=JSON.parse(JSON.stringify(L.a6k));
E.vV(C);C.s()}if(U==o.XR){var T=E.xV();T.zF=!T.zF}if(U==o.F0){var T=E.add.vmsk;T.zF=!T.zF}if(U==o.Wm){var O=L.p2;
for(var H=0;H<O.length;H+=2){var y=O[H],p=y>=0?C.N[y]:C.Jd[-1-y];p.add.vogk=JSON.parse(O[H+1]);c.zf.H7(p.add.vogk,p.add.vmsk);
if(y>=0)p.cr(C)}C.s()}if(U==o.j_){E.add.artb=JSON.parse(L.aaF);C.s()}if(U==o.bd){C.t=L.e5;C.vI=L.p2.slice(0);
C.te=L.Ag.slice(0);C.eP=C.dD=!0}if(U==o.Sg){var v=L.aee;for(var H=0;H<v.length;H++)C.N[H].xi=v[H]}if(U==o._f){if(L.Dc)C.C=L.Dc;
if(L.iT)C.t=L.iT[0];C.cE=null;C.s();C.o2(L.Jm)}if(U==o.KU){hO.T0.UM(C,E);if(L.lw)hO.T0.Pf(C,E,L.lw);
if(L.iT){var i=L.iT[0];if(i==null)delete C.t;else C.t=i}}if(U==o.vZ){hO.T0.UM(C,C.N[L.yD]);hO.T0.Pf(C,C.N[L.src],L.r)}if(U==o.LT){hO.T0.Pf(C,E,L.r)}if(U==o.Ht){E.iC(C).r=null;
E.s();C.s()}if(U==o.m1){E.iC(C).r=L.r;E.s();C.s()}if(U==o.Kr){hO.T0.Mx(C,L.pS,0)}if(U==o.CU){hO.T0.uX(C,E,!0)}if(U==o.XQ){hO.T0.uX(C,C.N[L.yD],L.r.isEnabled);
hO.T0.JJ(C,C.N[L.src],L)}if(U==o.Xl){hO.T0.JJ(C,E,L)}if(U==o.$v){C.Ii=JSON.parse(L.pf)}if(U==o.r$){C.name=L.a4$}if(U==o.lt){for(var H=0;
H<L.wm.length;H++){var D=L.wm[H],p=C.N[D[0]];p.I_(D[1]);if(D[3])p.add.lnsr=D[3];else delete p.add.lnsr}}if(U==o.Qa){for(var H=0;
H<L.N.length;H++)C.N[L.N[H]].add.lclr=L.alD[H]}if(U==o.jT){var I=L.abw;for(var H=0;H<L.s9.length;H++){var p=C.N[L.s9[H]],m=I[H];
if(!L.JM)p.add.vstk=JSON.parse(JSON.stringify(m));else W.CI.kq(p,JSON.parse(JSON.stringify(m)));p.az(C)}C.s()}if(U==o.QW){E.n_(L.LE);
E.cr(C);C.s()}C.dD=!0};hO.T0.prototype.Zm=function(L,C){var U=L.e,E=C.N[L.$];C.hK=!0;if(U==o.TO){C.add.lnk2.splice(C.add.lnk2.indexOf(L.bT),1,L.wp);
hO.T0.Oz(C,L.id,L.bT.Ne[1],L.wp.Ne[1])}if(U==o.bH){E.add.SoLd.Impr.v.classID=L.oq;E.RM(C)}if(U==o.uP){var Y=JSON.parse(L.s9);
for(var H=0;H<Y.length;H++)C.N[Y[H]].B4=L.oq;C.s()}if(U==o.K0){var Y=JSON.parse(L.s9);for(var H=0;H<Y.length;
H++)C.N[Y[H]].opacity=L.oq;C.s()}if(U==o.Lx){var Y=JSON.parse(L.s9);for(var H=0;H<Y.length;H++)if(C.N[Y[H]].add.lsct!=fI.ya)C.N[Y[H]].add.lspf=L.oq[H]}if(U==o.mX){var z=L.alQ,r=L.ZI;
delete E.add[z[0]];if(r[0]!="----")E.add[r[0]]=r[1]}if(U==o.J9){E.add.iOpa=L.oq;C.s()}if(U==o.Zu){for(var H=0;
H<L.s9.length;H++){var p=C.N[L.s9[H]];p.Qs(!p.rK())}C.s()}if(U==o.xd){var T=E.xV();T.isEnabled=!T.isEnabled;
E.cr(C);C.s()}if(U==o.Ue){var T=E.iC(C).r;T.isEnabled=!T.isEnabled;E.s();C.s()}if(U==o.qN){var T=E.add.vmsk;
T.isEnabled=!T.isEnabled;if(!T.isEnabled){if(E.Os){E.r=E.Os;E.Os=null}else E.r=null}else if(E.r){E.Os=E.r;
E.r=null}E.cr(C);C.s()}if(U==o.VY){E.l$=!E.l$;C.s()}if(U==o.sg){E.add.lmfx.masterFXSwitch.v=!E.add.lmfx.masterFXSwitch.v;
E.V.Of=!0;C.s()}if(U==o.l6){E.add.SoLd.filterFX.v.enab.v=!E.add.SoLd.filterFX.v.enab.v;E.vV(C);C.s()}if(U==o._8){var k=L.index,P=E.add.lmfx[gM.cp[k[0]]].v[k[1]].v;
P.enab.v=!P.enab.v;E.V.Of=!0;C.s()}if(U==o.Zd){var b=C.N[L.adI],Q=C.N[L.ah8],K=L.adJ,h=L.anp;if(K=="")delete b.add.lmfx;
else b.add.lmfx=JSON.parse(K);if(h=="")delete Q.add.lmfx;else Q.add.lmfx=JSON.parse(h);b.V.Of=!0;Q.V.Of=!0;
C.s()}if(U==o.rQ){var x=E.add.SoLd.filterFX.v.filterFXList.v[L.index].v;x.enab.v=!x.enab.v;E.vV(C);C.s()}if(U==o.nG){E.add.SoLd.filterFX.v=JSON.parse(JSON.stringify(L.ab2));
E.vV(C);C.s()}if(U==o.XR){var T=E.xV();T.zF=!T.zF}if(U==o.F0){var T=E.add.vmsk;T.zF=!T.zF}if(U==o.Wm){var O=L.Lp;
for(var H=0;H<O.length;H+=2){var y=O[H],p=y>=0?C.N[y]:C.Jd[-1-y];p.add.vogk=JSON.parse(O[H+1]);c.zf.H7(p.add.vogk,p.add.vmsk);
if(y>=0)p.cr(C)}C.s()}if(U==o.j_){E.add.artb=JSON.parse(L.mH);C.s()}if(U==o.bd){C.t=L.bx;C.vI=L.Lp.slice(0);
C.te=L.o8.slice(0);C.eP=C.dD=!0}if(U==o.Sg){var v=L.ahF;for(var H=0;H<v.length;H++)C.N[H].xi=v[H]}if(U==o._f){var i=L.f5,D=0,I;
for(var H=0;H<i.length;H++){var p=i[H],m=p.add.lsct;if(m==fI.ya)D++;else if(m==fI.Qr||m==fI.z7)D--;if(p.add.artb&&D!=0)I="Artboards can not be inside folders."}if(I){C.history.pop();
C.xC--;alert(I);return}if(L.Jw)C.C=L.Jw;if(L.iT)C.t=L.iT[1];C.cE=null;C.s();C.o2(L.f5)}if(U==o.KU){if(L.lw)hO.T0.UM(C,E);
hO.T0.Pf(C,E,L.r);if(L.iT){var f=L.iT[1];if(f==null)delete C.t;else C.t=f}}if(U==o.vZ){hO.T0.UM(C,C.N[L.src]);
hO.T0.Pf(C,C.N[L.yD],L.r)}if(U==o.LT){hO.T0.UM(C,E)}if(U==o.Ht){E.iC(C).r=L.r;E.yQ=0;E.s();C.s()}if(U==o.m1){E.iC(C).r=null;
E.yQ=0;E.s();C.s()}if(U==o.Kr){hO.T0.Mx(C,L.pS,1)}if(U==o.CU){hO.T0.JJ(C,E,L)}if(U==o.XQ){hO.T0.uX(C,C.N[L.src],L.r.isEnabled);
hO.T0.JJ(C,C.N[L.yD],L)}if(U==o.Xl){hO.T0.uX(C,E,L.r.isEnabled)}if(U==o.$v){C.Ii=JSON.parse(L.Jz)}if(U==o.r$){C.name=L.Eh}if(U==o.lt){for(var H=0;
H<L.wm.length;H++){var A=L.wm[H],p=C.N[A[0]];p.I_(A[2]);if(A[4])p.add.lnsr=A[4];else delete p.add.lnsr}}if(U==o.Qa){for(var H=0;
H<L.N.length;H++)C.N[L.N[H]].add.lclr=L.alA[H]}if(U==o.jT){var d=L.yJ;for(var H=0;H<L.s9.length;H++){var p=C.N[L.s9[H]],g=d[H];
if(!L.JM)p.add.vstk=JSON.parse(JSON.stringify(g));else W.CI.kq(p,JSON.parse(JSON.stringify(g)));p.az(C)}C.s()}if(U==o.QW){E.n_(L.oq);
E.cr(C);C.s()}C.dD=!0};hO.T0._x=function(L,C){var U=0;for(var H=0;H<L.N.length;H++){var E=L.N[H].getName();
if(E.startsWith(C)){var Y=E.slice(C.length).trim(),z=parseInt(Y);if(!isNaN(z)&&z+""==Y)U=z}}return U};
hO.T0.Mx=function(L,C,U){for(var H=0;H<C.length;H++){var E=C[H],Y=L.N[E.nY];if(E.HX){Y.add.SoLd=JSON.parse(E.HX[U])}if(E.Mm){if(E.Mm[1-U]!=null)L.pv(E.Mm[1-U]);
if(E.Mm[U]!=null)L.nJ(E.Mm[U]);else Y.yQ=0}Y.RM(L)}};hO.T0.hs=function(L,C){var U=L.dc,E=L.rect.clone();
if(U!=null&&(U.x!=C.d||U.y!=C.v)){E.x=Math.floor((C.d-E.d)/2);E.y=Math.floor((C.v-E.v)/2)}return E};
hO.T0.UM=function(L,C){if(C.Os)C.Os=null;else C.r=null;C.cr(L);L.s();C.yQ=0};hO.T0.Pf=function(L,C,U){if(C.r)C.Os=U;
else C.r=U;C.cr(L);L.s()};hO.T0.uX=function(L,C,U){if(C.Os&&U){C.r=C.Os;C.Os=null}else if(C.r&&U){C.r=null}delete C.add.vogk;
delete C.add.vstk;delete C.add.vmsk;C.cr(L);C.hI=!1;L.cE=[];L.s()};hO.T0.JJ=function(L,C,U){C.add.vogk=JSON.parse(U.zf);
if(U.H0)C.add.vstk=JSON.parse(U.H0);else delete C.add.vstk;C.add.vmsk=U.r.clone();if(C.r&&C.add.vmsk.isEnabled)C.Os=C.r;
C.cr(L);C.hI=U.lY;L.cE=[L.N.indexOf(C)];L.j5=[];L.s()};hO.re=function(){hO.o5.call(this,W.xn);this.zo=null;
this.mr=null;this.mq=null;this.Lq=[];this.zE=null};hO.re.prototype=new hO.o5;hO.re.prototype.GV=function(L,C,U,E,Y){var z=L.$;
if(z==null)z=U.C[0];var r=U.N[z],p=L.Oi;if(this.zo==null){this.mq=hO.re.WJ(U,r);this.zo=JSON.stringify(this.mq);
if(r.add.lmfx)this.mr=JSON.stringify(r.add.lmfx)}if(r.add.lmfx==null){r.add.lmfx=JSON.parse(gM.default);
for(var H=0;H<gM.order.length;H++)r.add.lmfx[gM.cp[H]]={t:"VlLs",v:[]}}if(L.e=="scaleeffects"){if(L.G=="confirm"||L.G=="cancel"){this.GV({e:L.G},C,U,E,Y);
return}r.add.lmfx=JSON.parse(this.mr);ca.xX(r.add.lmfx,L.G/100)}else if(L.e=="changeprop"){var T=null;
if(p!=0){var k=this.Lq[p[0]];if(k==null)k=gM.Lq[p[0]];k=JSON.parse(k);var P=r.add.lmfx[gM.cp[p[0]]].v;
if(P[p[1]]==null)P[p[1]]={t:"Objc",v:k};T=P[p[1]].v;for(var b in k)if(T[b]==null)T[b]=k[b]}if(L.e=="changeprop"){if(p==0){this.mq[L.eM].v=L.G;
hO.re.Yg(U,r,this.mq)}else if(L.eM=="lagl"){if(T.uglg&&T.uglg.v){U.HJ(L.G.val);this.mq.a0n=U.b_()}else T[L.eM].v=L.G}else if(L.eM=="Lald"){if(T.uglg.v){U.Hq(L.G.val);
this.mq.a84=U.kX()}else T[L.eM].v=L.G}else if((p[0]==3||p[0]==8)&&(L.eM=="Clr"||L.eM=="Grad")){if(L.eM=="Clr"){T.Clr={t:"Objc",v:L.G};
delete T.Grad}if(L.eM=="Grad"){T.Grad={t:"Objc",v:L.G};delete T.Clr}}else{T[L.eM].v=L.G}if(p!=0)this.Lq[p[0]]=JSON.stringify(T)}if(p!=0)if(T.Ptrn)U._q(ca.fi(T.Ptrn.v,Y.mt))}else if(L.e=="setstl"){var Q=L.G.Lefx;
if(Q)ca.jz(Q,U,Y.mt);ca.wE(L.G,r);this.mq=hO.re.WJ(U,r)}else if(L.e=="st_dupsingle"){var K=r.add.lmfx[gM.cp[L.Od[0]]].v;
if(K[L.Od[1]]==null)return;var h=JSON.parse(JSON.stringify(K[L.Od[1]]));K.splice(L.Od[1],0,h)}else if(L.e=="st_movsingle"){var x=L.Od[1],K=r.add.lmfx[gM.cp[L.Od[0]]].v;
if(K[L.Od[1]]==null)return;var O=Math.max(0,Math.min(K.length-1,x+L.aer)),y=K[O];K[O]=K[x];K[x]=y}else if(L.e=="cancel"){if(this.mr==null)delete r.add.lmfx;
else r.add.lmfx=JSON.parse(this.mr);hO.re.Yg(U,r,JSON.parse(this.zo));this.zo=null;this.mr=null}else if(L.e=="confirm"){var v=JSON.stringify(r.add.lmfx),i=new hp([11,6],this);
i.data={N:[z],Ok:[this.mr],S_:[v],c_:[this.zo],aF:[JSON.stringify(this.mq)]};U.Sv(i);this.zo=null;this.mr=null;
if(v!=null){var D=JSON.parse(v);eo.fK(D);D.classID="Lefx";delete D.masterFXSwitch;var I=new q(B.E._w);
I.Fw=!0;I.data={xo:"set",VL:!0};var m=hy.K1("Lyr",!0);m.v.splice(0,0,{t:"prop",v:{classID:"Prpr",keyID:"Lefx"}});
I.data.V5={__name:"Set",classID:"setd",null:m,T:{t:"Objc",v:D}};C.B(I)}}else if(L.e=="st_copy"){this.zE=[this.zo,this.mr];
this.zo=null;this.mr=null}else if(L.e=="st_paste"||L.e=="st_clear"){if(L.e=="st_paste"&&this.zE==null)return;
var f=L.$!=null?[L.$]:U.C.slice(0),A=[],d=[],g=[],X=[];for(var H=0;H<f.length;H++){var r=U.N[f[H]],n=hO.re.WJ(U,r);
A.push(r.add.lmfx?JSON.stringify(r.add.lmfx):null);g.push(JSON.stringify(n));if(L.e=="st_paste"){d.push(this.zE[1]);
X.push(this.zE[0])}else{d.push(null);n.lrMd.v=0;n.Opct.v.val=100;n.iOpa.v.val=100;n.blIf={v:[]};for(var R=0;
R<10;R++)n.blIf.v.push(0,0,255,255);X.push(JSON.stringify(n))}}var i=new hp([11,6],this);i.data={N:f,Ok:A,S_:d,c_:g,aF:X};
this.Zm(i.data,U);U.Sv(i);this.zo=null;this.mr=null}else{var l=this.mq,D=null;if(L.e=="st_delsingle"){D=JSON.parse(this.mr);
D[gM.cp[L.Od[0]]].v.splice(L.Od[1],1);D=JSON.stringify(D)}if(D==null)delete r.add.lmfx;else r.add.lmfx=JSON.parse(D);
if(l!=null)hO.re.Yg(U,r,l);var i=new hp([11,6],this);i.data={N:[L.$],Ok:[this.mr],S_:[D],c_:[this.zo],aF:[JSON.stringify(l)]};
U.Sv(i);this.zo=null;this.mr=null}r.V.Of=!0;U.hK=!0;U.s()};hO.re.WJ=function(L,C){if(C.add.iOpa==null)C.add.iOpa=255;
if(C.add.brst==null)C.add.brst=[1,1,1];var U=C.Jc()?["pass"].concat(gz.w0):gz.w0;return{lrMd:{v:U.indexOf(C.B4)},Opct:{v:{type:"#Prc",val:Math.round(C.opacity*100/255)},t:"UntF"},iOpa:{v:{type:"#Prc",val:Math.round(C.add.iOpa*100/255)},t:"UntF"},blIf:{v:C.E7.slice(0)},brst:{v:C.add.brst},a0n:L.b_(),a84:L.kX(),Jc:C.Jc()}};
hO.re.Yg=function(L,C,U){var E=C.Jc()?["pass"].concat(gz.w0):gz.w0;C.B4=E[U.lrMd.v];C.opacity=Math.round(U.Opct.v.val*255/100);
C.add.iOpa=Math.round(U.iOpa.v.val*255/100);C.E7=U.blIf.v.slice(0);C.add.brst=U.brst.v.slice(0);L.HJ(U.a0n);
L.Hq(U.a84)};hO.re.prototype.Ic=function(L,C){for(var H=0;H<L.N.length;H++){var U=C.N[L.N[H]],E=L.Ok[H];
if(E==null)delete U.add.lmfx;else U.add.lmfx=JSON.parse(E);hO.re.Yg(C,U,JSON.parse(L.c_[H]));U.V.Of=!0}C.hK=!0;
C.s()};hO.re.prototype.Zm=function(L,C){for(var H=0;H<L.N.length;H++){var U=C.N[L.N[H]],E=L.S_[H];if(E==null)delete U.add.lmfx;
else U.add.lmfx=JSON.parse(E);hO.re.Yg(C,U,JSON.parse(L.aF[H]));U.V.Of=!0}C.hK=!0;C.s()};hO.Ie=function(){hO.o5.call(this,W.tl)};
hO.Ie.prototype=new hO.o5;hO.Ie.prototype.GV=function(L,C,U,E){var Y=JSON.parse(JSON.stringify(U.Tv)),z=JSON.parse(JSON.stringify(U.Tv)),r=null,p=null,T=null,k=-1,P=!1;
if(L.e=="delLC"){var b=hO.Ie.EV(U.Tv,L.Oi),Q=U.Tv.lastAppliedComp?U.Tv.lastAppliedComp.v:0;z.list.v.splice(b,1);
if(Q==L.Oi)delete z.lastAppliedComp;r="Delete Layer Comp"}if(L.e=="editLC"){var b=hO.Ie.EV(U.Tv,L.Oi),K=z.list.v[b].v;
if(L.Eh!=null)K.Nm.v=L.Eh;if(L.a9$!=null){var h=L.a9$,x=K.capturedInfo.v,O=x&(1<<h)-1;x=x>>h;if((x&1)==1)x--;
else x++;K.capturedInfo.v=(x<<h)+O}r="Layer Comp properties"}if(L.e=="setLC"){hO.Ie.gY(U);if(L.Oi==0)delete z.lastAppliedComp;
else z.lastAppliedComp={t:"long",v:L.Oi};r="Switch Layer Comp";P=!0}if(L.e=="updLC"){hO.Ie.gY(U);p=hO.Ie.aa6(U,L.Oi);
T=hO.Ie.fJ(U,L.Oi);z.lastAppliedComp={t:"long",v:L.Oi};r="Update Layer Comp";k=L.Oi;P=!0}if(L.e=="addLC"){hO.Ie.gY(U);
var y=1;for(var H=0;H<z.list.v.length;H++)y=Math.max(y,z.list.v[H].v.compID.v)+1;y+=Math.floor(Math.random()*1e4);
var v={t:"Objc",v:{classID:"Comp",Nm:{t:"TEXT",v:"New Comp "+(z.list.v.length+1)},compID:{t:"long",v:y},capturedInfo:{t:"long",v:7}}};
z.list.v.push(v);z.lastAppliedComp={t:"long",v:y};r="New Layer Comp";var i=hO.Ie.fJ(U,y);hO.Ie.C0(U,i,y)}var D=new hp(r,this);
D.data={aj0:Y,akI:z,agH:p,ao8:T,Oi:k,P_:P};this.Zm(D.data,U);U.Sv(D)};hO.Ie.prototype.Zm=function(L,C){C.Tv=L.akI;
C.hK=!0;if(L.ao8)hO.Ie.C0(C,L.ao8,L.Oi);if(L.P_){var U=C.Tv.lastAppliedComp?C.Tv.lastAppliedComp.v:0,E=hO.Ie.EV(C.Tv,U),Y=E==-1?null:C.Tv.list.v[E].v,z=Y?Y.capturedInfo.v:7;
hO.Ie.gM(C,U,z);C.s()}};hO.Ie.prototype.Ic=function(L,C){C.Tv=L.aj0;C.hK=!0;if(L.agH)hO.Ie.C0(C,L.agH,L.Oi);
if(L.P_){var U=C.Tv.lastAppliedComp?C.Tv.lastAppliedComp.v:0,E=hO.Ie.EV(C.Tv,U),Y=E==-1?null:C.Tv.list.v[E].v,z=Y?Y.capturedInfo.v:7;
hO.Ie.gM(C,U,z);C.s()}};hO.Ie.gY=function(L){if(L.Tv.lastAppliedComp!=null||!L.k$)return;var C=hO.Ie.fJ(L,0);
hO.Ie.C0(L,C,0);L.k$=!1};hO.Ie.ja=function(L,C,U){L.v.Hrzn.v+=C;L.v.Vrtc.v+=U};hO.Ie.EV=function(L,C){var U=L.list.v;
for(var H=0;H<U.length;H++)if(U[H].v.compID.v==C)return H;return-1};hO.Ie.acH=function(L){var C=L.layerSettings.v,Y=null;
if(C.length==0)return;var U="compList enab Ofst blendOptions Lefx FXRefPoint imageMask vectorMask layerSpecific".split(" "),E=C[0].v;
if(E.enab==null)E.enab={t:"bool",v:!0};if(E.Ofst==null)E.Ofst={t:"Objc",v:{classID:"null",Hrzn:{t:"long",v:0},Vrtc:{t:"long",v:0}}};
for(var H=0;H<C.length;H++){var z=C[H].v;if(Y==null)Y=JSON.parse(JSON.stringify(z));else for(var r=0;
r<U.length;r++){var p=U[r];if(z[p])Y[p]=JSON.parse(JSON.stringify(z[p]))}C[H].v=JSON.parse(JSON.stringify(Y))}};
hO.Ie.dN=function(L,C){var U=L.add.shmd.cmls,E=U.layerSettings.v;for(var Y=0;Y<E.length;Y++){var z=E[Y].v,r=z.compList.v[0].v;
if(r==C)return Y}return-1};hO.Ie.TH=function(L,C){var U=hO.Ie.dN(L,C);return U==-1?null:L.add.shmd.cmls.layerSettings.v[U].v};
hO.Ie.gM=function(L,C,U){for(var H=0;H<L.N.length;H++){var E=L.N[H],Y=E.add.shmd.cmls;if(Y==null)continue;
var z=Y.layerSettings.v,r=hO.Ie.TH(E,C);if(r==null){E.Qs(!1);continue}if((U&1)!=0){if(r.enab)E.Qs(r.enab.v);
else E.Qs(!0)}if((U&2)!=0){if(r.Ofst){var p=r.Ofst.v,T=E.DZ(L),k=Math.round(p.Hrzn.v-T.x),P=Math.round(p.Vrtc.v-T.y);
if(k!=0||P!=0)W.P4.j4(L,[H],null,k,P)}}if((U&4)!=0){if(r.Lefx){var b=JSON.parse(JSON.stringify(r.Lefx.v));
eo.Ur(b);if(JSON.stringify(b)!=JSON.stringify(E.add.lmfx)){E.add.lmfx=b;E.V.Of=!0}}else delete E.add.lmfx;
if(r.blendOptions){var Q=r.blendOptions.v;if(Q.Opct)E.opacity=Math.round(255*Q.Opct.v.val/100);if(Q.fillOpacity)E.add.iOpa=Math.round(255*Q.fillOpacity.v.val/100);
if(Q.Md)E.B4=E.add.lsct==fI.ya?"norm":gz.Sh(Q.Md.v.BlnM)}else{E.opacity=255;E.B4=E.Jc()?"pass":"norm";
E.add.iOpa=255}}}};hO.Ie.aa6=function(L,C){var U={};for(var H=0;H<L.N.length;H++){var E=L.N[H];if(E.add.shmd==null||E.add.shmd.cmls==null)continue;
U["l"+E.add.lyid]=JSON.parse(JSON.stringify(hO.Ie.TH(E,C)))}return U};hO.Ie.fJ=function(L,C){var U={};
for(var H=0;H<L.N.length;H++){var E=L.N[H],Y=E.add.lyid;U["l"+Y]=hO.Ie.wX(L,E,C)}return U};hO.Ie.wX=function(L,C,U){var E=C.add.shmd?C.add.shmd.cmls:null,Y={classID:"null"},z=C.DZ(L),r={t:"Objc",v:{classID:"null",Hrzn:{t:"long",v:z.x},Vrtc:{t:"long",v:z.y}}};
Y.compList={t:"VlLs",v:[{t:"long",v:U}]};Y.enab={t:"bool",v:C.rK()};Y.Ofst=JSON.parse(JSON.stringify(r));
Y.FXRefPoint=JSON.parse(JSON.stringify(E&&E.origFXRefPoint?E.origFXRefPoint:r));Y.blendOptions={t:"Objc",v:{classID:"null",Md:{t:"enum",v:{BlnM:gz.Wx(C.B4)}},Opct:{t:"UntF",v:{type:"#Prc",val:100*C.opacity/255}},fillOpacity:{t:"UntF",v:{type:"#Prc",val:C.add.iOpa!=null?100*C.add.iOpa/255:100}}}};
if(C.add.vmsk){Y.vectorMask={t:"Objc",v:{classID:"null"}};Y.vectorMask.v.Ofst=JSON.parse(JSON.stringify(r))}if(C.add.lmfx){Y.Lefx={t:"Objc",v:JSON.parse(JSON.stringify(C.add.lmfx))};
eo.fK(Y.Lefx.v)}return Y};hO.Ie.a95=function(L,C){var U=C.add.lyid;if(C.add.shmd==null)C.add.shmd={};
if(C.add.shmd.cmls==null){C.add.shmd.cmls={classID:"null",LyrI:{t:"long",v:U},layerSettings:{t:"VlLs",v:[{t:"Objc",v:hO.Ie.wX(L,C,0)}]}}}};
hO.Ie.C0=function(L,C,U){for(var H=0;H<L.N.length;H++){var E=L.N[H],Y=E.add.lyid;hO.Ie.a95(L,E);var z=E.add.shmd.cmls,r=z.layerSettings.v,p=C["l"+Y];
if(p!=null)p={t:"Objc",v:JSON.parse(JSON.stringify(p))};var T=hO.Ie.dN(E,U);if(T==-1){if(p==null)continue;
else r.push(p)}else{if(p==null)r.splice(T,1);else r[T]=p}}};hO.Ie.fl=function(L,C){for(var H=0;H<L.N.length;
H++){var U=L.N[H],E=U.add.lyid;if(U.add.shmd==null||U.add.shmd.cmls==null)continue;var Y=U.DZ(L),z=Math.round(Y.x),r=Math.round(Y.y);
if(!C){z=-z;r=-r}var p=U.add.shmd.cmls,T=p.layerSettings.v;if(p.origFXRefPoint)hO.Ie.ja(p.origFXRefPoint,-z,-r);
for(var k=0;k<T.length;k++){var P=T[k].v;hO.Ie.ja(P.Ofst,z,r);var b=P.imageMask,Q=P.vectorMask;if(b&&b.v.Ofst)hO.Ie.ja(b.v.Ofst,z,r);
if(Q&&Q.v.Ofst)hO.Ie.ja(Q.v.Ofst,z,r)}}};hO.PU=function(){hO.o5.call(this,W.E_);this.Jz=null;this.Po=null};
hO.PU.prototype=new hO.o5;hO.PU.vO=function(L,C,U,E){if(E)C/=4;var Y=0,z=0,r=255,p=0,T=0,k=255;while(z+L[Y]<C){z+=L[Y];
Y++}while(p+L[r]<C){p+=L[r];r--}if(E){Y-=Math.round(L[Y]/(U/32));r+=Math.round(L[r]/(U/32));if(Y<0)T=Math.round(-Y*255/(r-Y));
if(r>255)k=255-Math.round((r-255)*255/(r-Y))}return[Math.max(Y,0),Math.min(r,255),T,k,100]};hO.PU.prototype.GV=function(L,C,U,E,Y){var z=L.e;
if(z=="auto"){var r=L.y2,p=hO.PU.getData(U);for(var H=0;H<p.length;H++){var T=p[H],k;if(r<3){}else{var P=hi.Q4("hue2");
hK.Sm(P,0,[0,-100,0]);k=eh.dq("hue2",P)}eh.QE(k,T.JL,T.wC,T._)}hO.PU.ze(U,p);hO.PU.na(U,p,r<3?[4,16,r]:[19,7,0],this);
U.s()}if(z=="edit_layer")this.aeV(L,C,U,E);if(z=="edit"||z=="confirm"||z=="cancel")this.uJ(L,C,U,Y,!0);
if(z=="start"){if(U.C.length==0)return;var b=U.N[U.C[0]];if(b.add.SoLd&&b.yQ<=0){var Q=new q(B.E.A,!0);
Q.m=W.Jy;Q.data={e:"start",o3:L.Pn};C.B(Q);return}if(!U.yq(C,null,!0))return;if(j[L.Pn]&&L.oe==null){if(U.C.length!=1)alert("Will be applied to "+U.C.length+" layers.");
var Q=new q(B.E.l,!0);Q.data={e:B.U.Q1,k5:"afw_"+L.Pn};C.B(Q)}else{this.uJ({e:"edit",oe:L.oe,o3:L.Pn},C,U,Y);
this.uJ({e:"confirm",o3:L.Pn},C,U,Y)}}};hO.PU.prototype.aeV=function(L,C,U,E){var Y=L.e,z=U.C[0],r=U.N[z],p=eh.get(r.add),T=JSON.parse(JSON.stringify(L.G)),b;
for(var k in eh.xM)if(eh.xM[k]==p)T.classID=k;var P=U.history[U.xC];if(P&&P.m==this&&P.data.LE!=null&&P.data.$==z)b=P;
else{var Q=new q(B.E._w,!0),K={classID:"setd",null:hy.K1("AdjL",!0),T:{t:"Objc",v:T}};Q.data={VL:!0,xo:"set",V5:K};
C.B(Q);var b=new hp([6,39],this);b.data={$:z,LE:r.add[p],oq:L.G,Dq:K};U.Sv(b)}b.data.oq=L.G;b.data.Dq.T.v=T;
this.Zm(b.data,U)};hO.PU.getData=function(L,C,U){var E=[],Y=new _(0,0,L.d,L.v),z=L.te.length!=0?[-1-L.te[0]]:L.C;
for(var H=0;H<z.length;H++){var r=z[H],p=r<0?null:L.N[r],T={$:r,yj:r<0?1:p.yQ};E.push(T);var k=L.vI[-1-r];
if(0<=r)k=p.yQ<=0?null:p.yQ==1?p.xV():p.iC(L).r;var P=k?k.rect:p.rect;if(L.t)T._=k!=null?L.t.rect.eR(Y):L.t.rect.eR(P);
else T._=C||k!=null?P.EU(Y):P.clone();if(U)T._=U[H]._.clone();var b=T._.X();T.JL=c.F(b*4);if(k)W.dl.M0(k.channel,k.rect,k.color,T.JL,T._);
else c.La(p.buffer,P,T.JL,T._);T.wC=T.JL.slice(0);if(L.t){T.h0=c.F(b);c.zM(L.t.channel,L.t.rect,T.h0,T._)}}return E};
hO.PU.a8v=function(L,C,U){if(C==null)return C;var E=eh.wa(L,C),z;if(E==-1)return C;var Y=U.length>>>2,r=c.aP(U),p=.001*Y;
if(E==0||E==2)z=[[0,255,0,255,100],hO.PU.vO(r[1],p,Y,E==2),hO.PU.vO(r[2],p,Y,E==2),hO.PU.vO(r[3],p,Y,E==2)];
if(E==1)z=[hO.PU.vO(r[0],p*.33,Y,!1),[0,255,0,255,100],[0,255,0,255,100],[0,255,0,255,100]];var T=hi.Q4("levl");
for(var H=0;H<4;H++)d5.Sm(T,H,z[H]);return T};hO.PU.prototype.uJ=function(L,C,U,E){if(this.Jz==null){if(L.o3=="aply")U.N[U.C[0]].extend(new _(0,0,U.d,U.v));
this.Jz=hO.PU.getData(U,null,L.o3=="fade"?U.bQ().data:null);if(L.o3=="aply")this.Jz[0].GE=U.E0()}if(L.e=="edit"){this.Po=[L.o3,L.oe];
var Y=this.Jz[0],z=hO.PU.a8v(L.o3,L.oe,Y.JL),r=eh.dq(L.o3,z);if(L.o3=="fade"||L.o3=="aply")r=L.oe;if(r!=null){for(var H=0;
H<this.Jz.length;H++){var p=this.Jz[H];if(L.WH)c.hL(p.JL,p.wC);else if(L.o3=="fade"){var T=gz.Sh(L.oe.Md.v.BlnM),k=L.oe.Opct.v.val/100,P=U.bQ().data[H];
c.hL(P.JL,p.wC);if(T=="norm")c.Q.f3(p.JL,p._,p.wC,p._,null,null,null,p._,k);else{var b=ca.wq();b.H1=!0;
for(var H=0;H<P.JL.length;H+=4)if(P.JL[H+3]!=p.JL[H+3]){b=null;break}c.Q.Kj(T,p.JL,p._,p.wC,p._,p._,k,b)}}else if(L.o3=="aply"){r=r.With.v;
var Q=r.T.v,K,h;if(Q[1].t=="name"){var x=0;for(var O=0;O<U.N.length;O++)if(U.N[O].getName()==Q[1].v.val)x=O;
if(x==p.$){K=p.JL;h=p._}else{var y=U.N[x];K=y.buffer;h=y.rect}}else{h=new _(0,0,U.d,U.v);K=p.GE}var v=r.Clcl?r.Clcl.v.Clcn:null,T=v?gz.Sh(v):"norm",k=r.Opct?r.Opct.v.val/100:1,i=["RGB","Rd","Grn","Bl","Trsp"].indexOf(Q[0].v.enum),z=r.Invr&&r.Invr.v;
if(z||i!=0){K=K.slice(0);if(z)c.akT(K);if(i!=0){var D=c.F(h.X());c.wH(K,D,i-1);if(i==4)c.G$(D);for(var O=0;
O<3;O++)c.Wn(D,K,O)}}if(v=="Sbtr"){var I=1/r.Scl.v,m=r.Ofst.v,f=new Uint8ClampedArray(p.wC.buffer);for(var H=0;
H<K.length;H+=4){f[H]=(p.JL[H]-K[H])*I+m;f[H+1]=(p.JL[H+1]-K[H+1])*I+m;f[H+2]=(p.JL[H+2]-K[H+2])*I+m}}else{var b=ca.wq();
b.H1=r.PrsT&&r.PrsT.v;p.wC.fill(0);p.wC.set(p.JL);c.Q.Kj(T,K,h,p.wC,p._,p._,k,b)}}else eh.QE(r,p.JL,p.wC,p._)}hO.PU.ze(U,this.Jz)}}if(L.e=="cancel"){hO.PU.jt(U,this.Jz);
this.Jz=null}if(L.e=="confirm"){var A=L.o3=="fade"?[2,11]:L.o3=="aply"?[2,12]:eh.names[L.o3],d=eh.wa(L.o3,this.Po[1]);
if(d!=-1)A=[4,16,d];hO.PU.na(U,this.Jz,A,this);this.Jz=null;if(d==-1)hO.PU.jH(C,this.Po)}U.s()};hO.PU.jH=function(L,C){var U=C[0],E=C[1],Y,z;
if(eh.IZ[U]){Y=eh.IZ[U];if(j[U])z=E}if(hi.IZ[U]){Y=hi.IZ[U];if(j[U])z=E}if(U=="fade"){Y="fade";z=E}if(U=="aply"){Y="applyImageEvent";
z=E}if(Y==null)return;var r=new q(B.E._w,!0);r.data={VL:!0,xo:Y};if(z){z=JSON.parse(JSON.stringify(z));
z.classID="null";delete z.__name;r.data.V5=z}L.B(r)};hO.PU.jt=function(L,C){hO.PU.O8(L,C)};hO.PU.na=function(L,C,U,E){for(var H=0;
H<C.length;H++){var Y=C[H],z=L.N[Y.$],r=Y.$<0?L.vI[-1-Y.$]:Y.yj<=0?null:Y.yj==1?z.xV():z.iC(L).r;if(r){r.Jx();
r.st=!0;if(z)z.cr(L)}else{z.Jx();z.s()}delete Y.wC;delete Y.h0}var p=new hp(U,E);p.data=C;L.Sv(p);L.hK=!0};
hO.PU.ze=function(L,C,U){for(var H=0;H<C.length;H++){var E=C[H],Y=L.N[E.$],z=U?E.JL:E.wC,r=E._;if(E.yj==0){Y.extend(r);
if(E.h0){c.La(E.JL,r,Y.buffer,Y.rect);c.Q.f3(z,r,Y.buffer,Y.rect,E.h0,r,0,r,1)}else c.La(z,r,Y.buffer,Y.rect)}else{var p=E.$<0?L.vI[-1-E.$]:E.yj==1?Y.xV():Y.iC(L).r;
p.extend(r);if(E.h0){var T=c.F(r.X()*4);c.hL(E.JL,T);c.Q.f3(z,r,T,r,E.h0,r,0,r,1);W.dl.nO(T,r,p)}else W.dl.nO(z,r,p);
p.st=!0;if(Y)Y.cr(L)}if(Y)Y.s()}if(!U)hO.PU.Xm(L,C)};hO.PU.O8=function(L,C){for(var H=0;H<C.length;H++){var U=C[H],E=L.N[U.$],Y=U._,z=c.F(Y.X()*4);
if(U.yj==0){c.La(E.buffer,E.rect,z,Y);E.extend(Y);c.La(U.JL,Y,E.buffer,E.rect);E.Jx()}else{var r=U.$<0?L.vI[-1-U.$]:U.yj==1?E.xV():E.iC(L).r;
W.dl.M0(r.channel,r.rect,r.color,z,Y);r.extend(Y);W.dl.nO(U.JL,Y,r);r.Jx();r.st=!0;if(E)E.cr(L)}U.JL=z;
if(E)E.s()}L.hK=!0};hO.PU.Xm=function(L,C){var U=hO.PU.BK(L),E=~U;if(U==16777215)return;for(var H=0;
H<C.length;H++){var Y=C[H],z=L.N[Y.$],r=Y._;if(Y.yj!=0)continue;z.extend(r);var p=r.x-z.rect.x,T=r.y-z.rect.y,k=z.rect.d,P=new Uint32Array(Y.JL.buffer),b=new Uint32Array(z.buffer.buffer);
for(var Q=0;Q<r.v;Q++)for(var K=0;K<r.d;K++){var h=Q*r.d+K,x=(Q+T)*k+(K+p);b[x]=b[x]&U|P[h]&E}z.Jx();
z.s()}L.s()};hO.PU.BK=function(L){var C=L.z.NT;return C[2]*16711680|C[1]*65280|C[0]*255};hO.PU.prototype.Ic=function(L,C){var U=C.N[L.$];
if(L.LE!=null)U.add[eh.get(U.add)]=L.LE;else hO.PU.O8(C,L);C.s()};hO.PU.prototype.Zm=function(L,C){var U=C.N[L.$];
if(L.LE!=null)U.add[eh.get(U.add)]=L.oq;else hO.PU.O8(C,L);C.s()};hO.W7=function(){hO.o5.call(this,W.Jy);
this.Jz=null;this.EQ=null;this.e=null;this.Po=null};hO.W7.prototype=new hO.o5;hO.W7.prototype.GV=function(L,C,U,E,Y){if(L.e=="start"){if(U.C.length==0)return;
var z=U.N[U.C[0]];if(z.add.SoLd&&z.yQ<=0){}else if(!U.yq(C,null,!0))return;var r=L.o3;if((j[r]||hi.Wk[r])&&L.oe==null){if(U.C.length!=1)alert("Will be applied to "+U.C.length+" layers.");
var p=new q(B.E.l,!0);p.data=hO.W7._F(r,this.D_(U,r));C.B(p)}else{var T={e:"edit",o3:r,oe:L.oe,ys:this.D_(U)};
this.GV(T,C,U,E,Y);T.e="confirm";delete T.oe;this.GV(T,C,U,E,Y)}}if(L.e=="edit"||L.e=="cancel"||L.e=="confirm"){if(L.e=="edit")this.Po=[L.o3,L.oe];
if(L.ys)this.a8N(L,U,Y);else this.aeG(L,C,U,Y)}if(L.e=="applylast"&&this.Po!=null){var T={e:"edit",o3:this.Po[0],oe:this.Po[1],ys:this.D_(U)};
this.GV(T,C,U,E,Y);T.e="confirm";delete T.oe;this.GV(T,C,U,E,Y)}};hO.W7._F=function(L,C){var U=hi.Wk[L];
if(U)return{e:B.U.ID,m:U,XO:{ys:C}};else return{e:B.U.Q1,k5:"afw_"+L,ys:C}};hO.W7.prototype.D_=function(L,C){var U=L.N[L.C[0]],E;
if(U.add.SoLd&&U.yQ<=0){E={$:L.C[0],index:0};if(U.add.SoLd.filterFX!=null){var Y=U.add.SoLd.filterFX.v.filterFXList.v;
E.index=Y.length;for(var H=0;H<Y.length;H++)if(hi.E3(Y[H].v)==C&&hi.Wk[C])E.index=H}}return E};hO.W7.prototype.a8N=function(L,C,U){var E=C.N[L.ys.$],Y=L.o3;
if(L.e=="edit"){if(this.e==null){var z=hi.names[Y];if(z==null)z=eh.names[Y];if(Y=="blendOptions")z=[14,10];
this.e=new hp(z,this);this.e.data={ys:L.ys,ao1:JSON.parse(JSON.stringify(E.add.SoLd))}}if(!E.s7()){E.add.SoLd.filterFX=hi.G7();
this.e.data.Mm=b7.ji(E.add.SoLd.placed.v);C.nJ(this.e.data.Mm);E.RM(C)}var r=E.add.SoLd.filterFX.v.filterFXList.v;
if(r[L.ys.index]==null){r.push(hi.hr(Y,U))}if(L.oe){r[L.ys.index].v.enab.v=L.WH!=!0;if(Y=="blendOptions")r[L.ys.index].v.blendOptions.v=L.oe;
else r[L.ys.index].v.Fltr.v=L.oe}this.e.data.a7n=JSON.parse(JSON.stringify(E.add.SoLd));this.Zm(this.e.data,C)}if(L.e=="cancel"){if(this.e)this.Ic(this.e.data,C);
this.e=null}if(L.e=="confirm"){if(this.e)C.Sv(this.e);this.e=null}};hO.W7.prototype.Hd=function(L){return{h:L>>>16,P:L>>>8&255,O:L&255}};
hO.W7.prototype.aeG=function(L,C,U,E){if(this.Jz==null){var Y=hi.Op(L.o3,L.oe);this.Jz=hO.PU.getData(U,Y.x!=0||Y.y!=0)}if(L.e=="edit"){var z=JSON.stringify(L.oe);
if((L.oe==null||z!=this.EQ)&&L.WH!=!0)for(var H=0;H<this.Jz.length;H++){var r=this.Jz[H],p={rect:r._,buffer:r.JL},T={rect:r._,buffer:r.wC};
hi.QE(L.o3,p,L.oe,this.Hd(E.yx),this.Hd(E.ho),T,[U.add.lnk2?U.add.lnk2:[],U.N[U.C[0]].xV(),U.vI]);this.EQ=z}hO.PU.ze(U,this.Jz,L.WH)}if(L.e=="cancel"){hO.PU.jt(U,this.Jz);
this.Jz=null;this.EQ=null}if(L.e=="confirm"){hO.PU.na(U,this.Jz,hi.names[L.o3],this);this.Jz=null;this.EQ=null;
hO.PU.jH(C,this.Po)}U.s();U.hK=!0};hO.W7.prototype.Ic=function(L,C){if(L.ys){var U=C.N[L.ys.$];if(L.Mm)C.pv(L.Mm);
U.add.SoLd=JSON.parse(JSON.stringify(L.ao1));if(U.s7())U.vV(C);else{U.RM(C);U.yQ=0}}else hO.PU.O8(C,L);
C.s();C.hK=!0};hO.W7.prototype.Zm=function(L,C){if(L.ys){var U=C.N[L.ys.$];if(L.Mm)C.nJ(L.Mm);U.add.SoLd=JSON.parse(JSON.stringify(L.a7n));
if(U.s7())U.vV(C);else U.RM(C);if(!U.QI())U.bP+=32}else hO.PU.O8(C,L);C.s();C.hK=!0};var c_={oI:"0",Sw:"1",SP:"2",t6:"3",S5:"4",GA:"5",lz:"6",ab:"7",A:"8",No:"8.5",Fc:"8.8",zx:"9",AO:"10",NW:"11",kC:"12",Um:"13",qy:"14",HC:"15",GM:"21",zk:"22",dA:"23",cq:"23.0",ai:"23.1",Kh:"23.2",ty:"23.3",nH:"23.4",Ip:"23.5",Df:"23.6",Nf:"30",s5:"31",B7:"40",Un:"41",GR:"42"};
c_.d$={};c_.d$[c_.Sw]=["abr","brushes",gT,[9,3]];c_.d$[c_.SP]=["grd","gradients",g9,[12,37]];c_.d$[c_.t6]=["shc","contours",hg,[12,21]];
c_.d$[c_.S5]=["asl","styles",eC,[12,22]];c_.d$[c_.GA]=["pat","patterns",ar,[12,62]];c_.d$[c_.lz]=["csh","shapes",fA,[12,77]];
c_.d$[c_.ab]=["aco","swatches",eZ,[9,8]];c_.d$[c_.A]=["atn","actions",bB,[9,9]];c_.d$[c_.No]=["tpl","tpresets",bJ,[9,12]];
c_.d$[c_.Fc]=["icc","profiles",gI,"ICCs"];function hp(L,C,U){if(U==null)U=!1;this.name=L;this.m=C;this.d2=U;
this.data=null}var hy={};hy.K1=function(L,C){var U={t:"Clss",v:{classID:L}};if(C)U={t:"Enmr",v:{classID:L,typeID:"Ordn",enum:"Trgt"}};
return{t:"obj ",v:[U]}};hy.KE=function(L,C){var U={classID:"Lyr"};U[L]=C;return{xo:"set",V5:{classID:"null",null:hy.K1("Lyr",!0),T:{t:"Objc",v:U}}}};
hy.ajt=function(L,C,U,E,Y){var z=new q(B.E._w,!0),r=[],H=0,p=hy.E1(C,U,E,r);while(r.length!=0){var T=r.pop();
H++;if(!T.p)continue;if(T.xo=="conditional"){var k=L.N[L.C[0]],P=T.V5.null.v.Cndt,b=!1;if(P=="Bckg")b=!1;
else if(P=="Pxel"&&L.qk(!1))b=!0;else if(P=="Adjs"&&eh.get(k.add))b=!0;else if(P=="Shp"&&k.add.vogk)b=!0;
else if(P=="Grup"&&k.Jc())b=!0;var Q=T.V5.then.v;if(b)hy.E1(C,Q[0].v.val,Q[1].v.val,r)}else if(T.xo=="stop"){if(T.V5.Cntn&&T.V5.Cntn.v==!0)window.confirm(T.V5.Msge.v);
else{alert(T.V5.Msge.v);break}}else if(T.xo=="play"){var K=T.V5.null.v,h=new q(B.E.l,!0);h.data={e:B.U.jS,F$:[K[0].v.val,K[1].v.val]};
Y.B(h)}else{z.data={xo:T.xo,V5:T.V5};Y.B(z)}}};hy.E1=function(L,C,U,E){var Y;for(var H=0;H<L.length;
H++){if(L[H].z9!=U)continue;var z=L[H].e4;for(var r=0;r<z.length;r++){if(z[r].z9!=C)continue;Y=z[r].e4}}var p=Y.length;
for(var H=0;H<p;H++)E.push(Y[p-1-H])};hy.ack=function(L){var C=L.xo,U=L.V5,E,r,p,T,k,P;if(U&&U.null)E=U.null.v[0];
if(U&&E==null&&U.At)E=U.At.v[0];if(E&&E.t=="obj ")E=E.v[0];var Y=E?E.v.classID:null,z=["purge"];if(z.indexOf(C)!=-1)return C[0].toUpperCase()+C.slice(1);
P=eh.IZ;for(r in P)if(P[r]==C)p=r;P=hi.IZ;for(r in P)if(P[r]==C)T=r;P=eb.IZ;for(r in P)if(P[r]==C)k=r;
if(p){var b=eh.wa(p,U);if(b!=-1)return[4,16,b];return eh.names[p]}if(T)return hi.names[T];if(k)return eb.names[k];
var Q=hy.kr;if(C=="make"){if(E){if(Y=="AdjL")return[6,1];else if(Y=="layerSection")return[6,9];else if(Y=="Lyr")return[6,13];
else if(Y=="Chnl"&&E.v.enum=="Msk")return[6,2];else if(Y=="contentLayer")return[6,48,1];else if(Y=="BckL")return"Make Background Layer";
else if(Y=="Path")return"Make Path";else if(Y=="TxLr")return"Make Text Layer"}if(U.Nw){Y=U.Nw.v.classID;
if(Y=="Dcmn")return[11,7];else if(Y=="Chnl"||Y=="SCch")return"New Channel"}}else if(C=="select"){if(Y=="Chnl")return"Select "+(E.v.enum=="Msk"?"Mask ":"")+"Channel";
else if(Y=="Mn")return"Select Panel \""+E.v.enum+"\"";else if(Y=="Lyr"){if(E.t=="Enmr")return"Select "+{Bckw:"Backward"}[E.v.enum]+" Layer";
return"Select Layer \""+E.v.val+"\""}else if(Y=="Dcmn")return"Select Document"}else if(Q[C]&&Y=="Chnl"){var K=E.v.keyID=="fsel";
return Q[C]+" "+(K?"Selection":"Channel")}else if(C=="set"){if(Y=="Lyr")return"Set Current Layer";else if(Y=="AdjL")return[6,39];
else if(Y=="contentLayer")return[6,48,2];else if(Y=="Prpr")return[11,6];else if(Y=="Clr")return"Set "+(E.v.keyID=="FrgC"?"Foreground":"Background")+" color";
else if(Y=="Brsh")return"Set Brush";else console.log(Y)}else if(C=="move"){if(Y=="Lyr")return"Move Layer"}else if(C=="show"||C=="hide"){var h="";
if(Y=="Lyr")+"Layer";if(Y=="Chnl")+"Channel";return(C=="show"?"Show":"Hide")+" "+h}else if(C=="reset"){if(Y=="Clr")return"Reset Colors"}else if(C=="exchange"){if(Y=="Clr")return[22,7,0]}else if(C=="rotateEventEnum")return[2,5];
else if(C=="flip"){var x=U.Axis.v.Ornt=="Hrzn";return[[2,6],[22,4,x?2:3]]}if(Y=="Chnl"){if(C=="duplicate"){if(E.v.keyID=="fsel")return"Selection to Channel";
else return"Duplicate Channel"}if(C=="delete")return"Delete Channel"}if(C=="transform")return E.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],save:[1,2],groupEvent:[6,18],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:U?[6,31]:[2,2],align:[20,4,0],applyLocking:[6,57,1],crop:[11,12,1],placedLayerEditContents:"Edit Contents",newPlacedLayer:[6,7],canvasSize:[11,3],imageSize:[11,10],rasterizeLayer:[6,8],revealAll:[11,12,2],conditional:"If"},y=O[C];
if(y==null)y=hy.h3[C];if(y)return y;return C};hy.h3={border:[7,9],smoothness:[19,3,0],expand:[7,4],contract:[7,5],feather:[7,6],inverse:[7,2]};
hy.kr={set:"Set",add:"Add Transparency",addTo:"Add To",subtract:"Subtract Transparency",subtractFrom:"Subtract From",interfaceIconFrameDimmed:"Intersect Transparency",interfaceWhite:"Intersect With"};
hy.a2p=function(L,C,U,E){var Y=L.xo,z=L.V5,r=new q(B.E.A,!0),k,P,b,Q,K,y;r.m=W.aV;var p=new q(B.E.l,!0),T=["purge","updatePlacedLayer"];
if(T.indexOf(Y)!=-1)return;K=eh.IZ;for(k in K)if(K[k]==Y)P=k;K=hi.IZ;for(k in K)if(K[k]==Y)b=k;K=eb.IZ;
for(k in K)if(K[k]==Y)Q=k;if(Y=="fade")P=Y;if(Y=="applyImageEvent")P="aply";if(P){r.m=W.E_;r.data={e:"start",Pn:P,oe:z}}else if(b){r.m=W.Jy;
r.data={e:"start",o3:b,oe:z}}else if(Q){r.m=W.Jy;r.data={e:"start",o3:"GEfc",oe:z}}else if(Y=="imageSize"||Y=="canvasSize"||Y=="revealAll"||Y=="trim"||Y=="crop"){r.m=W.Q_;
r.data={e:"fromAction",jX:L}}else if(Y=="fill"||Y=="delete"&&z==null){r.m=W.Sw;r.data={e:"fromAction",jX:L}}else if(Y=="colorRange"){var h=z.Mnm.v,x=z.Mxm.v;
r.m=W.Y7;r.data={e:"crange",Uh:{QD:h.Lmnc.v,R:h.A.v,O:h.B.v},fX:{QD:x.Lmnc.v,R:x.A.v,O:x.B.v},oD:z.Fzns.v/200}}else if(hy.h3[Y]||hy.kr[Y]&&(!1||z.With&&z.With.v[0].v.keyID=="fsel"||z.From&&z.From.v[0].v.keyID=="fsel"||z.null&&z.null.v[0].v.keyID=="fsel"||z.T.v[0]&&z.T.v[0].v.keyID=="fsel")){r.m=W.Y7;
r.data={e:"fromAction",jX:L}}var O={copyToLayer:o.iM,mergeLayersNew:E&&E.C.length==1?o.Zt:o.NX,rasterizeLayer:o.rM,mergeVisible:o.QT,flattenImage:o._m,newPlacedLayer:o.w$};
if(O[Y])r.data={e:O[Y],V5:z};if(r.data){C.B(r);return}if(Y=="desaturate"){r.m=W.E_;r.data={e:"auto",y2:3};
if(E&&E.N[E.C[0]].add.SoLd==null)C.B(r);return}if(Y=="close"){if(z.Svng.v.YsN=="Ys"){p.data={e:B.U.Bk};
C.B(p)}p.data={e:B.U.Ma,$M:E};C.B(p);return}if(Y=="save"){p.data={e:B.U.Bk};C.B(p);return}var O={placedLayerEditContents:B.U.x1,copyEvent:B.U.NC,paste:B.U.SR};
if(O[Y])p.data={e:O[Y]};if(p.data){C.B(p);return}if(z.null||z.At)y=(z.null?z.null:z.At).v;else y=[{t:"----",v:z}];
if(y[0].t=="obj "){if(y.length!=1)throw"e";y=y[0].v}for(var v=0;v<y.length;v++){var i=y[v],D=i.v.classID;
r.data=null;if(Y=="make"){if(z.null==null&&z.Nw)D=z.Nw.v.classID;if(D=="AdjL"){r.data={e:o.kB,V5:z}}else if(D=="layerSection"){r.data={e:o.fe};
if(z.Usng)r.data.Eh=z.Usng.v.Nm.v}else if(D=="Lyr"){if(z.Usng&&z.Usng.v.length==2)r.data={e:o.eq};else{r.data={e:o.vY};
if(z.Usng)r.data.Eh=z.Usng.v.Nm.v;if(z.below&&z.below.v)r.data.anR=!0}}else if(D=="Chnl"&&i.v.enum=="Msk"){r.data={e:o.KU,AT:z.Usng.v.UsrM}}else if(D=="Chnl"||D=="SCch"){r.data={e:o.bd,ev:"fromAction",G:L}}else if(D=="contentLayer"){r.data={e:o.aj,V5:z}}else if(D=="BckL"){E.N[E.C[0]].abt();
continue}else if(D=="Dcmn"){var I=z.Nw.v;p.data={e:B.U.Nd,_u:b7.a8m(I,U)}}else if(D=="Ptrn")p.data={e:B.U._g,wm:0};
else if(D=="Path"){r.m=W.b7;r.data={e:"pathedit",ev:"fromsel"}}else if(D=="TxLr"){r.m=W.Ey;r.data={e:"fromAction",jX:L}}else{console.log(Y,D,z);
throw"e"}}else if(Y=="select"){var m={PcTl:W.Ts,magicWandTool:W.eG};if(D=="Lyr"){var f=z.selectionModifier,A=f?f.v.selectionModifierType:null,d=hy.Y3(E,i);
r.data={e:o.k0,$:d,a5c:A?["addToSelection","addToSelectionContinuous"].indexOf(A):null,w6:0,a19:!0}}else if(D=="Chnl"){r.data={e:o.k0,$:d,w6:1}}else if(D=="Dcmn"){if(C.vX.length<2)return;
p.data={e:B.U.xh,dir:z.null.v[0].v.val}}else if(m[D]){p.data={e:B.U.ID,m:m[D]}}}else if((Y=="set"||Y=="reset"||Y=="exchange")&&D=="Clr"){p.data={e:B.U.MP,wm:c_.GM,ev:Y=="reset"?3:2};
if(Y=="set"){p.data.ev=i.v.keyID=="FrgC"?0:1;var g=c.W.Lt(z.T.v);p.data.G=g.h<<16|g.P<<8|g.O}}else if(Y=="set"){if(D=="AdjL"){var X=z.T.v.classID;
X=eh.xM[X];r.m=W.E_;if(X)r.data={e:"edit_layer",G:z.T.v}}else if(D=="Lyr"){var n=z.T.v,d=hy.Y3(E,i);
if(n.Nm)r.data={e:o.lt,name:n.Nm.v};else if(n.Opct)r.data={e:o.K0,oq:Math.round(n.Opct.v.val*255/100)};
else if(n.fillOpacity)r.data={e:o.J9,oq:Math.round(n.fillOpacity.v.val*255/100)};else if(n.Md)r.data={e:o.uP,oq:gz.lV.indexOf(n.Md.v.BlnM)+(E.N[d].Jc()?1:0)};
else if(n.Usrs)r.data={e:o.XR,$:d};else if(n.Blnd){r.m=W.xn;r.data={e:"setstl",$:d,G:{blendOptions:{t:"objc",v:n}}};
C.B(r);r.data={e:"confirm",$:d}}else if(n.Clr){var R={Rd:1,Ylw:3,Vlt:6}[n.Clr.v.Clr];if(R==null)throw n.Clr.v.Clr;
r.data={e:o.Qa,aa_:R}}else if(y[0].t=="prop")continue;else{console.log(z);throw"e"}var l=E.N[d];l.aam()}else if(D=="Prpr"){var n=JSON.parse(JSON.stringify(z.T.v));
if(i.v.keyID=="TxtS"){var d=hy.Y3(E,z.null.v[1]),l=E.N[d],w=l.add.TySh,V=JSON.parse(JSON.stringify(w.Se)),F=b5.xY(V),Z=b5.L3(V,0,F.length-2);
if(n.Undl&&n.Undl.v.Undl=="underlineOnLeftInVertical")Z.LI.Underline=!0;b5.Em(V,0,F.length-1,Z);r.m=W.Ey;
r.data={e:"newED",mD:d,wL:V};v=1e9}else{for(var M in n)if(n[M].v){if(M=="Scl")n[M].v.val=100;if(n[M].v.TrnS&&n[M].v.TrnS.v.Crv==null){n[M].v.TrnS=JSON.parse(gM.Lq[9]).TrnS}}eo.Ur(n);
if(n.masterFXSwitch==null)n.masterFXSwitch={t:"bool",v:!0};var d=hy.Y3(E,z.null.v[1]);r.m=W.xn;r.data={e:"setstl",$:d,G:{Lefx:{t:"objc",v:n}}};
C.B(r);r.data={e:"confirm",$:d}}}else if(D=="contentLayer"){var d=hy.Y3(E,i),n=z.T.v;if(n.classID=="shapeStyle")n=n.FlCn.v;
var a={solidColorLayer:0,gradientLayer:1,patternLayer:2}[n.classID],b=JSON.parse(JSON.stringify(gM.bK[a]));
hO.T0.L_(n,b,a);r.data={e:o.jT,s9:[d],JM:!0,G:{L$:a+1,o$:b}}}else if(D=="Brsh"){var e=JSON.parse(JSON.stringify(U.lN.Fp)),N=z.T.v;
if(N.masterDiameter)e.Brsh.v.Dmtr.v.val=N.masterDiameter.v.val;else console.log("unknown brush parameters");
p.data={e:B.U.MP,wm:c_.qy,dp:e}}else{console.log(i,z);throw D}}else if(Y=="move"){if(D=="Lyr"){var n=z.T.v;
if(n.classID=="Ofst"){r.data={e:"trsl",afS:n.Hrzn.v.val,adc:n.Vrtc.v.val};r.m=W.Ml}else{var J,f5;if(n[0].t=="Enmr"){if(n[0].v.enum=="Frnt")f5=0;
else if(n[0].v.enum=="Prvs")f5=2;else if(n[0].v.enum=="Back")f5=3;else throw"e"}else J=n[0].v.val;r.data={e:o.Ls,target:J,ev:f5,a1K:z.Dplc?z.Dplc.v:!1}}}}else if(Y=="groupEvent")r.data={e:o.VY};
else if(Y=="show"||Y=="hide"){if(D=="Lyr"){var d=hy.Y3(E,i);if(d==-1)continue;var dx=E.N[d].rK();if(Y=="show"&&dx||Y=="hide"&&!dx)continue;
r.data={e:o.Zu,$:d}}else if(D=="Chnl"){r.data={e:o.bd,ev:"fromAction",G:L}}}else if(Y=="rotateEventEnum"){r.m=W.Q_;
var fq=z.Angl.v.val;r.data={e:"rot",z9:[2,5],G:-fq*Math.PI/180}}else if(Y=="flip"){r.m=W.Q_;var i9=z.Axis.v.Ornt=="Hrzn",e8=i9?new hZ(-1,1):new hZ(1,-1);
r.data={e:"scl",z9:[[2,6],[22,4,i9?2:3]],G:e8}}else if(Y=="transform"){var S=1,fs=1,bz=0,g6=0,al=0,bj=0,bE=0;
if(z.Wdth)S=z.Wdth.v.val/100;if(z.Hght)fs=z.Hght.v.val/100;if(z.Skew){var eN=z.Skew.v;bz=eN.Hrzn.v.val;
g6=eN.Vrtc.v.val}if(z.Ofst){var dk=z.Ofst.v;bj=dk.Hrzn.v.val;bE=dk.Vrtc.v.val}if(z.Angl)al=z.Angl.v.val;
var hj=new c0;hj.concat(new c0(S,S*Math.tan(g6*Math.PI/180),fs*Math.tan(bz*Math.PI/180),fs,0,0));hj.rotate(-al*Math.PI/180);
hj.translate(bj,bE);var iN={Qcsa:4,Qcs0:0,Qcs1:2,Qcs2:8,Qcs3:6,Qcs4:1,Qcs5:5,Qcs6:7,Qcs7:3}[z.FTcs.v.QCSt];
if(iN==null)throw z.FTcs.v.QCSt;var i=z.null;if(i&&i.v instanceof Array)i=i.v[0];var d=i?hy.Y3(E,i):null;
if(d==-1)d=null;r.m=i&&i.v.keyID=="fsel"?W.B9:W.YH;r.data={e:"mat",jP:iN,G:hj,$:d}}else if(D=="Chnl"){r.data={e:o.bd,ev:"fromAction",G:L}}else if(Y=="duplicate")r.data={e:o.ok,Eh:z.Nm?z.Nm.v:null};
else if(Y=="delete")r.data={e:o.eZ};else if(Y=="align"){if(z.Aply&&z.Aply.v.projection=="Auto"){r.m=W.Q_;
r.data={e:"auto-align"}}else{r.m=W.Ml;var P={AdLf:0}[z.Usng.v.ADSt];if(P==null)throw"e";r.data={e:"algn",G:P}}}else if(Y=="applyLocking"){var dK=z.layerLocking.v,hP;
if(dK.protectTransparency)hP=[[dK.protectTransparency.v],[0]];else if(dK.protectNone)hP=[[!1,!1,!1,!1],[0,1,2,31]];
else{console.log(dK);throw"e"}r.data={e:o.Lx,oq:hP}}if(r.data)C.B(r);else if(p.data)C.B(p);else{console.log(L);
alert("Unknown action \""+Y+"\"");throw"e"}}};hy.Y3=function(L,C){var U=C.t,E=-1;if(U=="name"){var Y=C.v.val,E=-1;
for(var H=0;H<L.N.length;H++)if(L.N[H].getName()==Y){E=H;break}}if(U=="Enmr"&&L.C.length!=0)E=L.C[0];
if(U=="Enmr"&&C.v.enum=="Frwr")E=L.C[0]+1;if(U=="Enmr"&&C.v.enum=="Bckw")E=L.C[0]-1;if(U=="prop"){if(C.v.keyID=="Bckg")E=0}return E};
var eh={};eh.get=function(L){for(var C in eh.names)if(L[C]!=null)return C;return null};eh.dq=function(L,C){var U=eh.MY,E;
if(L=="brit"){var Y=C.Brgh?C.Brgh.v:0,z=C.Cntr?C.Cntr.v:0,r=C.useLegacy?C.useLegacy.v:!1;if(r){var p=Y/255,T=1+z/100;
if(T>1)T=1+Math.tan(Math.PI/2*z/101);var k=(1-T)/2,P=c.hS.dF(p,p,p),b=[T,0,0,k,0,T,0,k,0,0,T,k,0,0,0,1],Q=c.hS.multiply(P,b),K=new c.Ry(256);
for(var H=0;H<256;H++)K.h[H]=H;c.hS.transform(K,K,Q);E={type:U.tV,pm:K.h,l3:K.h,g_:K.h,Qd:!1,bY:!1}}else{var h=1024,x=-30+60*(z+100)/200,O=[];
for(var H=0;H<4;H++)O.push(c.Nn.kH(H/3*255,H/3*255,!0));O[1].v.Hrzn.v=64;O[1].v.Vrtc.v=64-x;O[2].v.Hrzn.v=128+64;
O[2].v.Vrtc.v=128+64+x;O.sort(function(aF,aN){return aF.v.Hrzn.v-aN.v.Hrzn.v});var y=c.Nn.Sx(O,h);function v(aF,h){var O=[],u=3;
for(var H=0;H<u+1;H++)O.push(c.Nn.kH(H/u*255,H/u*255,!0));O[1].v.Hrzn.v=130-aF*26;O[1].v.Vrtc.v=130+aF*51;
O[2].v.Hrzn.v=233-aF*48;O[2].v.Vrtc.v=233+aF*10;return c.Nn.Sx(O,h)}var i=v(Math.abs(Y)/100,h);if(Y<0){var D=[],I=1/h;
for(var H=0;H<h;H++){var m=H*I,f=H;while(i[f]>m&&f>1)f--;D[H]=f*I}i=D}var A=new Uint8Array(h);for(var H=0;
H<h;H++){var d=Math.round((h-1)*i[H]);A[H]=Math.round(255*y[d])}E={type:U.tV,pm:A,l3:A,g_:A,Qd:!1,bY:!1}}}if(L=="levl"){var g=[],X,n,P,R,l,w;
for(var H=0;H<4;H++)g.push(d5.El(C,H));X=-g[0][0]/255;n=1/(g[0][1]/255-g[0][0]/255);P=c.hS.multiply(c.hS.dS(n,n,n),c.hS.dF(X,X,X));
R=c.hS.dS(1/(g[1][1]/255-g[1][0]/255),1/(g[2][1]/255-g[2][0]/255),1/(g[3][1]/255-g[3][0]/255));l=c.hS.dF(-g[1][0]/255,-g[2][0]/255,-g[3][0]/255);
w=c.hS.multiply(R,l);var A=new c.Ry(256);for(var H=0;H<256;H++)A.h[H]=A.P[H]=A.O[H]=H;var V=1/(g[0][4]/100),F=1/(g[1][4]/100),Z=1/(g[2][4]/100),M=1/(g[3][4]/100);
c.hS.transform(A,A,w);for(var H=0;H<256;H++){A.h[H]=Math.round(Math.max(0,Math.min(255,255*Math.pow(A.h[H]/255,F))));
A.P[H]=Math.round(Math.max(0,Math.min(255,255*Math.pow(A.P[H]/255,Z))));A.O[H]=Math.round(Math.max(0,Math.min(255,255*Math.pow(A.O[H]/255,M))))}c.hS.transform(A,A,P);
for(var H=0;H<256;H++){A.h[H]=Math.round(Math.max(0,Math.min(255,255*Math.pow(A.h[H]/255,V))));A.P[H]=Math.round(Math.max(0,Math.min(255,255*Math.pow(A.P[H]/255,V))));
A.O[H]=Math.round(Math.max(0,Math.min(255,255*Math.pow(A.O[H]/255,V))))}X=g[0][2]/255;n=g[0][3]/255-g[0][2]/255;
P=c.hS.multiply(c.hS.dF(X,X,X),c.hS.dS(n,n,n));R=c.hS.dS(g[1][3]/255-g[1][2]/255,g[2][3]/255-g[2][2]/255,g[3][3]/255-g[3][2]/255);
l=c.hS.dF(g[1][2]/255,g[2][2]/255,g[3][2]/255);w=c.hS.multiply(l,R);c.hS.transform(A,A,c.hS.multiply(P,w));
E={type:U.tV,pm:A.h,l3:A.P,g_:A.O,Qd:!1,bY:!1}}if(L=="curv"){var a=fh.El(C,0).length==256?1:0,e=[];if(a==0){var J=c.Nn._$(fh.El(C,0),256);
for(var H=1;H<4;H++){var s=c.Nn._$(fh.El(C,H),256);e.push(c.Nn.Gj(s,J))}}else{var f5=[];for(var H=0;
H<4;H++){var dx=new Uint8Array(256);f5.push(dx);var i9=fh.El(C,H);for(var f=0;f<256;f++)dx[f]=i9[f]}for(var H=1;
H<4;H++)e.push(c.Nn.Gj(f5[H],f5[0]))}E={type:U.tV,pm:e[0],l3:e[1],g_:e[2],Qd:!1,bY:!1}}if(L=="expA"){console.log(C);
var e8=C.Exps,S=C.Ofst,fs=C.gammaCorrection,bz=e8?e8.v:0,g6=S?S.v:0,al=fs?fs.v:1,A=new Uint8Array(256);
for(var H=0;H<256;H++){var C=H/255,bj=Math.pow(Math.abs(g6),1/(Math.PI/2));if(g6>0){C=Math.max(g6/Math.E,C);
C=C*Math.exp(g6/1.75+bz/Math.PI);C=(1-bj)*C+bj*1}else{C=C*Math.exp(-g6*1.75+bz/Math.PI);C=C+-bj*1.14}C=Math.pow(C,1/al);
C=Math.max(0,Math.min(1,C));A[H]=Math.round(C*255)}E={type:U.tV,pm:A,l3:A,g_:A,Qd:!1,bY:!1}}if(L=="vibA"){E={type:U.XN,wm:[C.vibrance?C.vibrance.v:0,C.Strt?C.Strt.v:0]}}if(L=="hue2"){var bE=[],eN=[],hj=[],iN=C.Clrz?C.Clrz.v:!1;
for(var H=0;H<256;H++){bE[H]=H/255;eN[H]=0;hj[H]=0}var dK=hK.El(C,0),ch=eh.rc(dK[1]/100);if(iN){var hP=dK[0]/360;
for(var H=0;H<256;H++){bE[H]=hP;eN[H]=ch}}else{for(var H=0;H<256;H++){var d2=bE[H],hr=eN[H];bE[H]+=dK[0]/360;
for(var f=0;f<6;f++){var fv=hK.El(C,f+1),f3=fv.K3,dp=fv.tZ,bj=0;for(var go=1;go<4;go++)if(dp[go]<dp[0])dp[go]+=360;
var d6=dp[0],iB=dp[1],hS=dp[2],eF=dp[3],bQ=d2*360;if(bQ<dp[0])bQ+=360;var iP=(bQ-d6)/(iB-d6),d8=(bQ-hS)/(eF-hS);
if(iP<0)bj=0;else if(iP<1)bj=iP;else if(d8<0)bj=1;else if(d8<1)bj=1-d8;else bj=0;var T=eh.rc(f3[1]/100);
bE[H]+=bj*f3[0]/360;eN[H]+=bj*T;hj[H]+=bj*f3[2]/100}}for(var H=0;H<256;H++){eN[H]=(1+eN[H])*(1+ch)-1;
hj[H]=Math.max(-1,Math.min(1,hj[H]))}}var a6=new Uint8Array(256),am=new Uint8Array(256),fj=new Uint8Array(256);
for(var H=0;H<256;H++){var dX=bE[H],gc=eN[H],dz=hj[H];if(dX>1)dX--;if(dX<0)dX++;gc=eh.a9S(gc);gc=(1+gc)*.5;
dz=(1+dz)*.5;a6[H]=Math.round(255*dX);am[H]=Math.round(255*gc);fj[H]=Math.round(255*dz)}var gE=dK[2]/100,cQ=gE<0?-gE:gE,fi=gE<0?0:1;
E={type:U.NL,a97:a6,nb:am,aaa:fj,a4n:cQ*fi,wo:1-cQ,a7w:dK[2]/100,a1c:iN?1:0}}if(L=="nvrt"){var A=new Uint8Array(256);
for(var H=0;H<256;H++)A[H]=255-H;E={type:U.tV,pm:A,l3:A,g_:A,Qd:!1,bY:!1}}if(L=="post"){var dB=C.Lvls.v,A=new Uint8Array(256),bj=dB/255.001,bp=255/(dB-1);
for(var H=0;H<256;H++)A[H]=Math.floor(H*bj)*bp;E={type:U.tV,pm:A,l3:A,g_:A,Qd:!1,bY:!1}}if(L=="grdm"){var ai=C.Grad.v,hu=C.Rvrs,bP=c.W.Sa(ai.Clrs.v,0,0),h=1024,hw=c.W.Vi(ai,bP,h,hu?hu.v:!1),gQ=c.F(h),gp=c.F(h),aS=c.F(h);
c.wH(hw,gQ,0);c.wH(hw,gp,1);c.wH(hw,aS,2);E={type:U.tV,pm:gQ,l3:gp,g_:aS,Qd:!0,bY:!1}}if(L=="selc"){var iX=new Float32Array(9*3*2),dW=C.Rm,i7=C.Mthd?C.Mthd.v.CrcM=="Absl":!1;
for(var f=0;f<9;f++){var i5=f*6,fM=iQ.El(C,f),ei=fM[0]/100,bu=fM[1]/100,hG=fM[2]/100,fb=fM[3]/100;if(i7){iX[i5]=iX[i5+1]=iX[i5+2]=1;
iX[i5+3]=ei*(1+fb)+fb;iX[i5+4]=bu*(1+fb)+fb;iX[i5+5]=hG*(1+fb)+fb}else{iX[i5+0]=(1+ei)*(1+fb);iX[i5+1]=(1+bu)*(1+fb);
iX[i5+2]=(1+hG)*(1+fb)}}E={type:U.qv,J7:iX}}if(L=="blwh"){var iJ="Rd Yllw Grn Cyn Bl Mgnt".split(" "),E=[],cw=0,aD=0;
for(var H=0;H<6;H++)E.push(C[iJ[H]].v);E.push(C.useTint.v,C.tintColor.v);var h0=[];for(var H=0;H<6;H++)h0.push((E[H]-50)/50);
var hM=c.W.Lt(E[7]);hM.h/=255;hM.P/=255;hM.O/=255;var e0=c.t2(hM.h,hM.P,hM.O),dz=c.uW(c.u2(e0.fg,1,.5)),fC=e0.uR*e0.oe;
if(dz==.5)cw=aD=.5;else{cw=fC*(.5-dz)/(.5/dz-1);aD=1-fC*(.5-dz)-1/(2*(1-dz));aD/=1-1/(2*(1-dz))}E={type:U.Yr,aa4:h0,XB:E[6]?1:0,agb:e0.fg,uW:dz,alo:fC,UA:cw,am7:aD}}if(L=="blnc"){console.log(C);
var g=[],d7=["ShdL","MdtL","HghL"];for(var H=0;H<3;H++){if(C[d7[H]]==null){g[H]=[0,0,0];continue}var dB=C[d7[H]].v,az=dB[0].v/100,gb=dB[1].v/100,hl=dB[2].v/100,aZ=C.PrsL==null||C.PrsL.v?(Math.min(az,gb,hl)+Math.max(az,gb,hl))/2:0;
g[H]=[az-aZ,gb-aZ,hl-aZ]}var e=[c.F(256),c.F(256),c.F(256)];for(var f=0;f<3;f++)for(var H=0;H<256;H++){var m=H*(1/255),dq=0,x=0,fo=0;
x=g[2][f];fo=Math.abs(x);if(x<0)dq=Math.pow(m,Math.SQRT2);else dq=1.63*(Math.pow(m+.04,.5)-.2);m=fo*dq+(1-fo)*m;
x=g[1][f];fo=Math.abs(x);if(x<0)dq=Math.pow(m,2);else dq=Math.min(2.35*(Math.pow(m+.09,.5)-.3),Math.pow(m,1/2));
m=fo*dq+(1-fo)*m;x=g[0][f];fo=Math.abs(x);if(x<0)dq=m<.4?0:Math.pow((m-.4)/.6,Math.SQRT2);else dq=Math.pow(m,Math.SQRT2/2);
m=fo*dq+(1-fo)*m;m=Math.max(0,Math.min(1,m));e[f][H]=Math.round(m*255)}E={type:U.tV,pm:e[0],l3:e[1],g_:e[2],Qd:!1,bY:!1}}if(L=="phfl"){var gF=c.W.Lt(C.Clr.v),hk=[gF.h/255,gF.P/255,gF.O/255],iU=C.Dnst.v/100,e=[c.F(256),c.F(256),c.F(256)];
for(var f=0;f<3;f++)for(var H=0;H<256;H++){var m=H*(1/255),iD=m*hk[f];iD=Math.max(0,Math.min(1,iD));
m=iU*iD+(1-iU)*m;e[f][H]=Math.round(m*255)}E={type:U.tV,pm:e[0],l3:e[1],g_:e[2],Qd:!1,bY:C.PrsL.v}}if(L=="thrs"){var A=c.F(256);
for(var H=C.Lvl.v;H<256;H++)A[H]=255;E={type:U.tV,pm:A,l3:A,g_:A,Qd:!0,bY:!1}}if(L=="mixr"){var fJ=eh.zu(C),Q=[];
for(var H=0;H<fJ.G.length;H++)if(H%5!=3)Q.push(fJ.G[H]/100);if(fJ.Aw){for(var gh=1;gh<3;gh++)for(var m=0;
m<4;m++)Q[gh*4+m]=Q[m]}E={type:U.PA,W1:Q}}if(L=="rplc"){var aM=C.Mnm.v,hE=C.Mxm.v;E={type:U.bG,Uh:[aM.Lmnc.v,aM.A.v,aM.B.v],fX:[hE.Lmnc.v,hE.A.v,hE.B.v],shift:[C.H.v/360,C.Strt.v/100,C.Lght.v/100],oD:C.Fzns.v/200}}if(L=="clrL"&&C.profile){var ep=new Uint8Array(C.profile.v),h4=ICC.R(ep.buffer),aE=[],bK=17,aE=ICC.U.sampleLUT(h4,bK);
E={type:U.B8,JL:ICC.U.rgba8LUT(aE,bK),a4Q:aE,NM:bK}}return E};eh.wa=function(L,C){var U=-1;if(L!="levl"||C==null)U=-1;
else if(C.Auto)U=0;else if(C.AuCo)U=1;else if(C.autoBlackWhite)U=2;return U};eh.MY={tV:0,NL:1,XN:2,qv:3,Yr:4,PA:5,bG:6,B8:7};
eh.rc=function(L){if(L<0)return L;return Math.pow(Math.tan(Math.PI/2*L),1.3)};eh.a9S=function(L){if(L<0)return L;
L=Math.pow(L,1/1.3);return Math.atan2(L,1)/(Math.PI/2)};eh.QE=function(L,C,U,E){var Y=eh.MY,z=Date.now();
if(t.i8&&E.X()>300*300&&L.type!=Y.tV&&L.type!=Y.B8){E=E.clone();E.x=E.y=0;var r=t.kb(0,E.d,E.v);r.set(C);
t.RV(r,E);r.Go(E);eh.BW(L,r.zQ,E);r.get(U);return}if(L.type==Y.B8){var p=L.a4Q,T=L.NM;ICC.U.applyLUT(p,T,C,U)}if(L.type==Y.PA)c.hS.ld(C,U,L.W1);
if(L.type==Y.Yr){var k=L.alo,P=L.uW,b=L.UA,Q=L.am7,K=C.length;for(var H=0;H<K;H+=4){var E=C[H]*(1/255),h=C[H+1]*(1/255),x=C[H+2]*(1/255),O=c.S2(E,h,x),y=0;
for(var v=0;v<6;v++)y+=Math.min(1,1.7*(1-O.fr))*O.uR*L.aa4[v]*eh.oi(O.fg,v*(1/6));var i=Math.max(0,Math.min(1,O.fr*(1+y)));
if(L.XB==1){var D=0;if(i<b)D=i*(.5/P);else if(i<Q)D=i+k*(.5-P);else D=1-(1-i)*.5/(1-P);O.fg=L.agb;O.uR=Math.min(1,k+3*k*Math.abs(i-.5*(b+Q)));
O.fr=D}else{O.fg=0;O.uR=0;O.fr=i}var I=c.u2(O.fg,O.uR,O.fr);U[H]=Math.round(I.h*255);U[H+1]=Math.round(I.P*255);
U[H+2]=Math.round(I.O*255)}}if(L.type==Y.qv){var m=L.J7,K=C.length,f=1/255;for(var H=0;H<K;H+=4){var E=C[H]*f,h=C[H+1]*f,x=C[H+2]*f,O=c.S2(E,h,x),A=Math.max(E,Math.max(h,x)),d=Math.min(E,Math.min(h,x)),g=1-E,X=1-h,n=1-x,R=0,l=0,w=0;
for(var v=0;v<9;v++){var V=v*6,a=0;if(m[V]==1&&m[V+1]==1&&m[V+2]==1&&m[V+3]==0&&m[V+4]==0&&m[V+5]==0)continue;
var F=g*m[V]+m[V+3],Z=X*m[V+1]+m[V+4],M=n*m[V+2]+m[V+5];if(v<6)a=eh.oi(O.fg,v*(1/6))*O.uR*2*Math.min(O.fr,1-O.fr);
else if(v==6)a=Math.max(0,d-.5)*2;else if(v==7)a=1-(Math.abs(A-.5)+Math.abs(d-.5));else a=Math.max(0,.5-A)*2;
R+=(Math.max(0,Math.min(1,F))-g)*a;l+=(Math.max(0,Math.min(1,Z))-X)*a;w+=(Math.max(0,Math.min(1,M))-n)*a}g=Math.max(0,Math.min(1,g+R));
X=Math.max(0,Math.min(1,X+l));n=Math.max(0,Math.min(1,n+w));E=1-g;h=1-X;x=1-n;U[H]=Math.round(E*255);
U[H+1]=Math.round(h*255);U[H+2]=Math.round(x*255)}}if(L.type==Y.tV){c.ah6(C,U,L.pm,L.l3,L.g_,L.Qd,L.bY)}if(L.type==Y.NL){var e=new Uint32Array(C.buffer),N=new Uint32Array(U.buffer),K=e.length;
if(eh.GW==null){eh.GW=new Float64Array(256);for(var H=0;H<256;H++)eh.GW[H]=eh.rc(-1+2*H/255)}var J=eh.GW;
for(var H=0;H<K;H++){var s=e[H],E=(s&255)*(1/255),h=(s>>>8&255)*(1/255),x=(s>>>16&255)*(1/255),f5=s>>>24,dx=Math.min(E,h,x),fq=Math.max(E,h,x),i9=0,e8=0,S=0;
if(fq!=dx){var fs=fq-dx;switch(fq){case E:i9=(h-x)/fs+(h<x?6:0);break;case h:i9=(x-E)/fs+2;break;case x:i9=(E-h)/fs+4;
break}i9=i9*(1/6)}var bz=~~(i9*255+.5),g6=L.a97[bz]*(1/255),al=L.nb[bz]*(1/255)*2-1,bj=L.aaa[bz]*(1/255)*2-1,y=-bj,bE=dx;
if(0<bj){y=bj;bE=fq}var eN=L.a4n+L.wo*y*bE,dk=L.wo*(1-y);E=eN+dk*E;h=eN+dk*h;x=eN+dk*x;fq=Math.max(E,h,x);
dx=Math.min(E,h,x);S=(fq+dx)*.5;if(fq!=dx){var fs=fq-dx;e8=S>.5?fs/(2-(fq+dx)):fs/(fq+dx)}var hj=al;
if(L.a1c==0){al=J[Math.floor((1+al)*127.5)];hj=Math.min(e8*(1+al),1)}i9=g6;e8=hj;if(e8==0)E=h=x=S;else{var iN=S<.5?S*(1+e8):S+e8-S*e8,dK=2*S-iN;
E=c.Ll(dK,iN,i9+1/3);h=c.Ll(dK,iN,i9);x=c.Ll(dK,iN,i9-1/3)}N[H]=f5<<24|x*255<<16|h*255<<8|E*255}}if(L.type==Y.bG){c.hL(C,U);
var e=new Uint32Array(C.buffer),N=new Uint32Array(U.buffer),K=e.length,ch=L.oD,hP=1/ch,d2={QD:L.Uh[0],R:L.Uh[1],O:L.Uh[2]},hr={QD:L.fX[0],R:L.fX[1],O:L.fX[2]};
for(var H=0;H<K;H++){var s=e[H],fv=s&255,f3=s>>>8&255,dp=s>>>16&255,E=fv*(1/255),h=f3*(1/255),x=dp*(1/255),f5=s>>>24,go=c.E8(fv,f3,dp),d6=c.WA(go,d2,hr,ch,hP);
if(d6==0)continue;var O=c.S2(E,h,x),g6=2+O.fg+d6*L.shift[0];O.fg=g6-~~g6;O.uR=Math.max(0,Math.min(1,O.uR+d6*L.shift[1]));
O.fr=Math.max(0,Math.min(1,O.fr+d6*L.shift[2]));var I=c.u2(O.fg,O.uR,O.fr);E=I.h;h=I.P;x=I.O;N[H]=f5<<24|x*255<<16|h*255<<8|E*255}}if(L.type==Y.XN){var e=new Uint32Array(C.buffer),N=new Uint32Array(U.buffer),K=e.length,iB=L.wm[0]/100,hS=L.wm[1]/100;
for(var H=0;H<K;H++){var s=e[H],E=(s&255)*(1/255),h=(s>>>8&255)*(1/255),x=(s>>>16&255)*(1/255),f5=s>>>24,O=c.t2(E,h,x),i9=O.fg,e8=O.uR,S=O.oe,eF=0,bQ=45/360,iP=i9<bQ?Math.cos(Math.PI/2*(i9-bQ/2)/(bQ/2)):0;
e8=e8+.2*(1-.4*iP)*iB*Math.max(0,Math.sin(e8*Math.PI));e8=e8*(1+hS);e8=Math.max(0,Math.min(1,e8));var I=c.D5(i9,e8,S);
E=I.h;h=I.P;x=I.O;N[H]=f5<<24|x*255<<16|h*255<<8|E*255}}};eh.BW=function(L,C,U){t.Pn.BW(L,C)};eh.oi=function(L,C){var U=c.JR(C,L)*6;
return Math.max(0,Math.min(1,U<0?1+U:1-U))};eh.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]};
eh.IE=["expA","clrL","selc"];eh._6=[[13,1,1],[13,1,3],[13,1,4],[13,1,11],[13,1,5],[13,1,12]];eh.ak1=[[13,1,11],[13,1,12],[13,1,3],[13,1,10]];
eh.Ol=[[13,1,1],[13,1,4],[13,1,5]];eh.vD={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"};
eh.xM=function(){var L=JSON.parse(JSON.stringify(eh.vD));delete L.GrMp;L.GdMp="grdm";return L}();eh.IZ={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"};
eh.keys={levl:[G.DM,G.QD],curv:[G.DM,G.G8],hue2:[G.DM,G.Uf],nvrt:[G.DM,G.mw],blnc:[G.DM,G.t9]};eh.I$=function(L){var C=hi.Q4("mixr");
C.Mnch={t:"bool",v:L.Aw};function U(E,H){var Y={classID:"ChMx"},z={Rd:0,Grn:1,Bl:2,Cnst:4};for(var r in z)Y[r]={t:"UntF",v:{type:"#Prc",val:E[H+z[r]]}};
return{t:"Objc",v:Y}}if(L.Aw)C.Gry=U(L.G,0);else{C.Rd=U(L.G,0);C.Grn=U(L.G,5);C.Bl=U(L.G,10)}return C};
eh.zu=function(L){function C(E,Y,H){var z={Rd:0,Grn:1,Bl:2,Cnst:4};for(var r in z)if(E[r])Y[H+z[r]]=E[r].v.val}var U={Aw:!1,G:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]};
if(L.Mnch&&L.Mnch.v)U.Aw=!0;if(U.Aw)C(L.Gry.v,U.G,0);else{C(L.Rd.v,U.G,0);C(L.Grn.v,U.G,5);C(L.Bl.v,U.G,10)}return U};
var hi={};hi.E3=function(L){var C=L.filterID.v;return C>16777215?$.aap(C):L.Fltr.v.classID};hi.v0=[{o$:"GEfc"},{o$:"LnCr"},{o$:"LqFy",rY:!0},{iF:"3D",yn:["lightFilterGradient"]},{iF:[24,2],yn:"Avrg,Blr ,BlrM,boxblur,GsnB,Bokh,MtnB,RdlB,surfaceBlur".split(",")},{iF:[24,4],yn:"Dspl,Pnch,Plr ,Rple,Shr ,Sphr,Twrl,Wave".split(",")},{iF:[24,6],yn:["AdNs","Dspc","DstS","Mdn "]},{iF:[24,8],yn:"ClrH,Crst,Frgm,Mztn,Msc ,Pntl".split(",")},{iF:[24,10],yn:["Clds","DfrC","LnsF"]},{iF:[24,12],yn:["Shrp","ShrE","ShrM","smartSharpen","UnsM"]},{iF:[24,14],yn:"Dfs ,Embs,FndE,oilPaint,Slrz,TrcC,Wnd ".split(",")},{iF:[24,16],yn:"HghP,Mxm ,Mnm ,Ofst,Rept,Ctoa".split(",")},{iF:"Fourier",yn:["dDFT","iDFT"]}];
hi.IZ={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:"",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"};
hi.S6={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"};
hi.Wk={rigidTransform:W.s2};hi.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],AdNs:[24,7,0],Dspc:[24,7,1],DstS:[24,7,2],"Mdn ":[24,7,3],ClrH:[24,9,0],Crst:[24,9,1],Frgm:[24,9,3],Mztn:[24,9,4],"Msc ":[24,9,5],Pntl:[24,9,6],Clds:[24,11,0],DfrC:[24,11,1],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],"Mxm ":[24,17,2],"Mnm ":[24,17,3],Ofst:[24,17,4],Rept:[24,17,5],Ctoa:"Color to Alpha",dDFT:"Fourier Transform",iDFT:"Inverse Fourier Transform",adaptCorrect:["VAR0/VAR1",[19,6,0],[19,6,2]]};
hi.Q4=function(L){var C=null;if(L=="GEfc")C={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:eb.Q4("GlwE")}]}};
if(L=="LqFy"){var U={aU:5,fg:5,map:new Float32Array(5*5*2)},E=new Uint8Array(gy.cd(U)),Y=[];for(var H=0;
H<E.length;H++)Y.push(E[H]);C={__name:"Liquify",classID:"LqFy",LqMe:{t:"tdta",v:Y}}}if(L=="rigidTransform"){C={__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(L=="LnCr")C={__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(L=="adaptCorrect")C={__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(L=="Dfs ")C={__name:"Diffuse",classID:"Dfs",Md:{t:"enum",v:{DfsM:"Nrml"}},FlRs:{t:"long",v:14061024}};
if(L=="Embs")C={__name:"Emboss",classID:"Embs",Angl:{t:"long",v:45},Hght:{t:"long",v:5},Amnt:{t:"long",v:100}};
if(L=="oilPaint")C={__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(L=="TrcC")C={__name:"Trace Contour",classID:"TrcC",Lvl:{t:"long",v:128},Edg:{t:"enum",v:{CntE:"Lwr"}}};
if(L=="Wnd ")C={__name:"Wind",classID:"Wnd",WndM:{t:"enum",v:{WndM:"Wnd"}},Drct:{t:"enum",v:{Drct:"Rght"}}};
if(L=="lightFilterGradient")C={__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(L=="boxblur")C={__name:"Box Blur",classID:"boxblur",Rds:{t:"UntF",v:{type:"#Pxl",val:15}}};if(L=="GsnB")C={__name:"Gaussian Blur",classID:"GsnB",Rds:{t:"UntF",v:{type:"#Pxl",val:7.2}}};
if(L=="Bokh")C={__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(L=="MtnB")C={__name:"Motion Blur",classID:"MtnB",Angl:{t:"long",v:0},Dstn:{t:"UntF",v:{type:"#Pxl",val:4}}};
if(L=="RdlB")C={__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(L=="surfaceBlur")C={__name:"Surface Blur",classID:"surfaceBlur",Rds:{t:"UntF",v:{type:"#Pxl",val:15}},Thsh:{t:"long",v:15}};
if(L=="Dspl")C={__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(L=="Pnch")C={__name:"Pinch",classID:"Pnch",Amnt:{t:"long",v:-100}};if(L=="Plr ")C={__name:"Polar Coordinates",classID:"Plr",Cnvr:{t:"enum",v:{Cnvr:"RctP"}}};
if(L=="Rple")C={__name:"Ripple",classID:"Rple",Amnt:{t:"long",v:999},RplS:{t:"enum",v:{RplS:"Mdm"}}};
if(L=="Shr ")C={__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(L=="Sphr")C={__name:"Spherize",classID:"Sphr",Amnt:{t:"long",v:100},SphM:{t:"enum",v:{SphM:"Nrml"}}};
if(L=="Twrl")C={__name:"Twirl",classID:"Twrl",Angl:{t:"long",v:90}};if(L=="Wave")C={__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(L=="AdNs")C={__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(L=="DstS")C={__name:"Dust & Scratches",classID:"DstS",Rds:{t:"long",v:2},Thsh:{t:"long",v:26}};if(L=="Mdn ")C={__name:"Median",classID:"Mdn",Rds:{t:"UntF",v:{type:"#Pxl",val:7}}};
if(L=="ClrH")C={__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(L=="Crst")C={__name:"Crystallize",classID:"Crst",ClSz:{t:"long",v:10},FlRs:{t:"long",v:1554929224}};
if(L=="Mztn")C={__name:"Mezzotint",classID:"Mztn",MztT:{t:"enum",v:{MztT:"FnDt"}},FlRs:{t:"long",v:204994187}};
if(L=="Msc ")C={__name:"Mosaic",classID:"Msc",ClSz:{t:"UntF",v:{type:"#Pxl",val:12}}};if(L=="Pntl")C={__name:"Pointillize",classID:"Pntl",ClSz:{t:"long",v:10},FlRs:{t:"long",v:1554929236}};
if(L=="LnsF")C={__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(L=="smartSharpen")C={__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(L=="UnsM")C={__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(L=="HghP")C={__name:"High Pass",classID:"HghP",Rds:{t:"UntF",v:{type:"#Pxl",val:3}}};if(L=="Mxm ")C={__name:"Maximum",classID:"Mxm",Rds:{t:"UntF",v:{type:"#Pxl",val:9}}};
if(L=="Mnm ")C={__name:"Minimum",classID:"Mnm",Rds:{t:"UntF",v:{type:"#Pxl",val:14}}};if(L=="Ofst")C={__name:"Offset",classID:"Ofst",Hrzn:{t:"long",v:144},Vrtc:{t:"long",v:278},Fl:{t:"enum",v:{FlMd:"Wrp"}}};
if(L=="Rept")C={__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(L=="Ctoa")C={__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(L=="brit")C={__name:"Brightness/Contrast",classID:"BrgC",Brgh:{t:"long",v:0},Cntr:{t:"long",v:0},useLegacy:{t:"bool",v:!1}};
if(L=="levl")C={__name:"Levels",classID:"Lvls",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Adjs:{t:"VlLs",v:[]}};
if(L=="curv")C={__name:"Curves",classID:"Crvs",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Adjs:{t:"VlLs",v:[]}};
if(L=="expA")C={__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(L=="vibA")C={__name:"Vibrance",classID:"vibrance",vibrance:{t:"long",v:0},Strt:{t:"long",v:0}};if(L=="hue2")C={__name:"Hue/Saturation",classID:"HStr",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Clrz:{t:"bool",v:!1},Adjs:{t:"VlLs",v:[]}};
if(L=="blnc")C={__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(L=="blwh")C={__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(L=="phfl")C={__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(L=="grdm")C={__name:"Gradient Map",classID:"GrMp",Rvrs:{t:"bool",v:!1},Grad:JSON.parse(gM.Lq[6]).Grad};
if(L=="selc")C={__name:"Selective Color",classID:"SlcC",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Mthd:{t:"enum",v:{CrcM:"Rltv"}},ClrC:{t:"VlLs",v:[]}};
if(L=="thrs")C={__name:"Threshold",classID:"Thrs",Lvl:{t:"long",v:128}};if(L=="mixr")C={__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(L=="clrL")C={__name:"Color Lookup",classID:"colorLookup"};if(L=="post")C={__name:"Posterize",classID:"Pstr",Lvls:{t:"long",v:3}};
if(L=="rplc")C={__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:100},Lght:{t:"long",v:2}};
if(L=="fade")C={__name:"Fade",classID:"fade",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}};
if(L=="aply")C={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}},PrsT:{t:"bool",v:!1}}}};
if(L=="blendOptions")C={classID:"blendOptions",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}};
return C};hi.vJ={sAdNs:function(L,C){C[0]=L.Nose.v.val;C[1]=["Gsn","Unfr"].indexOf(L.Dstr.v.Dstr);C[2]=L.Mnch.v},gAdNs:function(L,C){L.Nose.v.val=C[0];
L.Dstr.v.Dstr=["Gsn","Unfr"][C[1]];L.Mnch.v=C[2]},sDstS:function(L,C){C[0]=L.Rds.v;C[1]=L.Thsh.v},gDstS:function(L,C){L.Rds.v=C[0];
L.Thsh.v=C[1]},sGsnB:function(L,C){C[0]=L.Rds.v.val},gGsnB:function(L,C){L.Rds.v.val=C[0]},sHghP:function(L,C){C[0]=L.Rds.v.val},gHghP:function(L,C){L.Rds.v.val=C[0]},"sMxm ":function(L,C){C[0]=L.Rds.v.val},"gMxm ":function(L,C){L.Rds.v.val=C[0]},"sMnm ":function(L,C){C[0]=L.Rds.v.val},"gMnm ":function(L,C){L.Rds.v.val=C[0]},sMtnB:function(L,C){C[0]=L.Angl.v;
C[1]=L.Dstn.v.val},gMtnB:function(L,C){L.Angl.v=typeof C[0]=="number"?C[0]:C[0].f2;L.Dstn.v.val=C[1]},sOfst:function(L,C){C[0]=L.Hrzn.v;
C[1]=L.Vrtc.v;C[2]=["Rpt","Bckg","Wrp"].indexOf(L.Fl.v.FlMd)},gOfst:function(L,C){L.Hrzn.v=C[0];L.Vrtc.v=C[1];
L.Fl.v.FlMd=["Rpt","Bckg","Wrp"][C[2]]},sPnch:function(L,C){C[0]=L.Amnt.v},gPnch:function(L,C){L.Amnt.v=C[0]},"sPlr ":function(L,C){C[0]=["RctP","PlrR"].indexOf(L.Cnvr.v.Cnvr)},"gPlr ":function(L,C){L.Cnvr.v.Cnvr=["RctP","PlrR"][C[0]]},sRple:function(L,C){C[0]=L.Amnt.v;
C[1]=["Sml","Mdm","Lrg"].indexOf(L.RplS.v.RplS)},gRple:function(L,C){L.Amnt.v=C[0];L.RplS.v.RplS=["Sml","Mdm","Lrg"][C[1]]},sTwrl:function(L,C){C[0]=L.Angl.v},gTwrl:function(L,C){L.Angl.v=C[0]},sUnsM:function(L,C){C[0]=L.Amnt.v.val;
C[1]=L.Rds.v.val;C[2]=L.Thsh.v},gUnsM:function(L,C){L.Amnt.v.val=C[0];L.Rds.v.val=C[1];L.Thsh.v=C[2]}};
hi.a7b=function(L){var C=new hZ(0,0);if(L.enab.v==!1)return C;var U=L.filterFXList.v;for(var H=0;H<U.length;
H++){var E=U[H].v;if(E.enab.v==!1)continue;var Y=hi.E3(E),z=hi.Op(Y,E.Fltr?E.Fltr.v:null);if(z.x>C.x)C.x=z.x;
if(z.y>C.y)C.y=z.y}return C};hi.Op=function(L,C){var U=0,E=0;if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(L)!=-1){var Y=C.Rds.v.val;
U=E=Y*2.57}if(L=="MtnB")U=E=C.Dstn.v.val;if("Ofst,Rept,LqFy,Dspl,Pnch,Rple,Shr ,Sphr,Twrl,Wave,RdlB,Clds,DfrC,Plr ,LnCr,Wnd ,lightFilterGradient,rigidTransform,Frgm".split(",").indexOf(L)!=-1){U=E=1e4}if(L=="GEfc")return eb.Op(C);
return new hZ(Math.ceil(U),Math.ceil(E))};hi.G7=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:[]}}}};
hi.hr=function(L,C){var U={h:C.yx>>16,P:C.yx>>8&255,O:C.yx&255},E={h:C.ho>>16,P:C.ho>>8&255,O:C.ho&255},Y=hi.names[L];
if(Y==null)Y=eh.names[L];var z=L;for(var r in eh.vD)if(eh.vD[r]==L)z=r;var p={t:"Objc",v:{classID:"filterFX",Nm:{t:"TEXT",v:gS.get(Y)},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:c.W._b(U)},BckC:{t:"Objc",v:c.W._b(E)},filterID:{t:"long",v:z.length==4?$.a36(z):777}}},T=hi.Q4(L);
if(T)p.v.Fltr={t:"Objc",v:T};return p};hi.Xp=function(L,C,U,E,Y,z,r,p){var T=U*E*4;c.nW.aku(L,C,U,E,Y,z,r)};
hi.mK=function(L,C,U,E){c.ED(U);if(L<1){var Y=Math.round(L*5),z=[1,2,1,2,[40,26,13,6,4,2][Y],2,1,2,1];
z=c.N1.hx(z);var r=U.slice(0);c.N1.jg(r,U,E.d,E.v,z,255)}else C(U,E,L);c.mu(U)};hi.ah0=function(L,C,U,E){for(var H=0;
H<L.length;H++){U[H]=L[H]*(1/255);E[H]=0}FFT.fft2d(U,E);var Y=C>>>1,z=16384,r=128,T=100;while(r<C){r<<=1;
z<<=2}var p=255/Math.log(z),k=-100;for(var P=0;P<C;P++)for(var b=0;b<Y;b++){var Q=C+Y+P&C-1,K=U[Q*C+b],h=E[Q*C+b],x=Math.sqrt(K*K+h*h),O=Math.atan2(h,K);
L[P*C+b]=Math.round(p*Math.log(x+1));L[P*C+Y+b]=Math.round((Math.PI+O)*(255*.5/Math.PI))}};hi.afV=function(L,C,U,E){U.fill(0);
E.fill(0);var Y=C>>>1,z=16384,r=128;while(r<C){r<<=1;z<<=2}var p=255/Math.log(z),T=[],k=[],P=[];for(var H=0;
H<256;H++){T[H]=Math.exp(H/p)-1;var b=H*(2*Math.PI/255)-Math.PI;k[H]=Math.sin(b);P[H]=Math.cos(b)}for(var Q=0;
Q<C;Q++)for(var K=0;K<Y;K++){var h=C+Y+Q&C-1,x=T[L[Q*C+K]],b=L[Q*C+Y+K],O=x*P[b],y=x*k[b];U[h*C+K]=O;
E[h*C+K]=y;if(K!=0){var v=h==0?h*C+C-K:(C-h)*C+(C-K);U[v]=O;E[v]=-y}}FFT.ifft2d(U,E);for(var H=0;H<L.length;
H++){L[H]=Math.max(0,Math.min(255,~~(.5+255*U[H])))}};hi.aH=new ArrayBuffer(512);hi.al4=function(L){var C=hi.aH,U=L.length;
if(C.byteLength<U)hi.aH=C=new ArrayBuffer(U);var E=new Uint8Array(C);for(var H=0;H<U;H+=4){E[H]=L[H];
E[H+1]=L[H+1];E[H+2]=L[H+2];E[H+3]=L[H+3]}return C};hi.QE=function(L,C,U,E,Y,z,r){if(z==null)z={buffer:c.F(C.buffer.length),rect:C.rect.clone()};
c.hL(C.buffer,z.buffer);if(L=="GEfc"){var p=[];if(U.GEfs){var T=U.GEfs.v;for(var H=0;H<T.length;H++){var k=T[H].v;
if(k.GELv&&k.GELv.v==!1)continue;p.push(k)}}else p=[U];for(var H=0;H<p.length;H++){var P;if(H==0)eb.QE(L,C,p[H],E,Y,z,r);
else{if(P==null)P={buffer:c.F(C.buffer.length),rect:C.rect.clone()};c.hL(z.buffer,P.buffer);eb.QE(L,P,p[H],E,Y,z,r)}}}if(L=="adaptCorrect"){var b=C.rect,Q=b.d,K=b.v,h=Q*K,x=h*4,O=U.sdwM.v,y=O.Amnt.v.val/100,v=O.Wdth.v.val/100,i=O.Rds.v,D=U.hglM.v,I=D.Amnt.v.val/100,m=D.Wdth.v.val/100,f=D.Rds.v;
c.OD.afh(C.buffer,z.buffer,Q,K,y,v,i,I,m,f,U.ClrC.v/100,U.Cntr.v/100)}if(L=="Fbrs"){var b=C.rect,Q=b.d,K=b.v,A=c.F(Q*K),d=Date.now(),g=1,X=1-g;
for(var H=0;H<Q*100;H++){var n=Math.random()*Q;for(var R=0;R<K;R++){var l=~~(n+4096)&511;A[R*Q+l]=Math.min(255,A[R*Q+l]+1);
var w=Math.random();n=n-g+w*2*g}}c.G$(A);z.buffer.fill(255);c.EI(A,z.buffer)}if(L=="Frgm"){var b=C.rect,Q=b.d,K=b.v,V=C.buffer.slice(0);
c.ED(V);c.DA.ao4(V,Q,K,z.buffer);c.mu(z.buffer)}if(L=="Dfs "){var b=C.rect,Q=b.d,K=b.v,F=["Nrml","DrkO","LghO","anisotropic"].indexOf(U.Md.v.DfsM);
if(F<3)c.DA.a90(C.buffer,Q,K,z.buffer,[F]);else{var Z=[1.4,1.6,1,4,!1,2,[0,0,.001]],b=C.rect.clone();
b.x=b.y=0;c.pB.filter(C.buffer,b,z.buffer,Z)}}if(L=="TrcC"){var b=C.rect,Q=b.d,M=Q<<2,K=b.v,a=U.Lvl.v,e=U.Edg.v.CntE=="Lwr",N=C.buffer,J=z.buffer;
c.n0(J,16777215,4278190080);function s(b2,hd){fq(b2,hd);fq(b2+1,hd+1);fq(b2+2,hd+2)}function f5(b2,hd){i9(b2,hd);
i9(b2+1,hd+1);i9(b2+2,hd+2)}function fq(b2,hd){var hF=N[b2],bK=N[hd];if(hF>=a&&bK<a)J[b2]=0;if(hF<a&&bK>=a)J[hd]=0}function i9(b2,hd){var hF=N[b2],bK=N[hd];
if(hF>a&&bK<=a)J[hd]=0;if(hF<=a&&bK>a)J[b2]=0}if(e)for(var R=1;R<K;R++)for(var n=1;n<Q;n++){var e8=R*Q+n<<2;
s(e8,e8-4);s(e8,e8-M)}else for(var R=1;R<K;R++)for(var n=1;n<Q;n++){var e8=R*Q+n<<2;f5(e8,e8-4);f5(e8,e8-M)}}if(L=="Embs"){var b=C.rect,Q=b.d,K=b.v,S=-U.Angl.v*Math.PI/180,fs=U.Hght.v,bz=U.Amnt.v/100;
fs/=2;var g6=Math.cos(S)*fs,al=Math.sin(S)*fs,N=C.buffer,J=z.buffer;J.fill(0);var bj=new Uint32Array(N.buffer),bE=new Uint8Array(4),eN=new Uint32Array(bE.buffer);
for(var R=0;R<K;R++)for(var n=0;n<Q;n++){var dk=0,hj=0,iN=0;if(0<=n+g6&&n+g6<Q&&0<=R+al&&R+al<K){c.I.kA(n+g6+.5,R+al+.5,bj,Q,K,eN,0,0);
dk+=bE[0]-128;hj+=bE[1]-128;iN+=bE[2]-128}if(0<=n-g6&&n-g6<Q&&0<=R-al&&R-al<K){c.I.kA(n-g6+.5,R-al+.5,bj,Q,K,eN,0,0);
dk-=bE[0]-128;hj-=bE[1]-128;iN-=bE[2]-128}var e8=R*Q+n<<2;J[e8]=Math.max(0,Math.min(255,dk*bz+128));
J[e8+1]=Math.max(0,Math.min(255,hj*bz+128));J[e8+2]=Math.max(0,Math.min(255,iN*bz+128));J[e8+3]=N[e8+3]}}if(L=="ShrE"){var b=C.rect,Q=b.d,K=b.v;
c.DA.aiJ(C.buffer,Q,K,z.buffer)}if(L=="Dspc"){var b=C.rect,Q=b.d,K=b.v;c.DA.ann(C.buffer,Q,K,z.buffer)}if(L=="Slrz"){var dK=z.buffer,ch=128;
for(var H=0;H<dK.length;H+=4){if(dK[H]>ch)dK[H]=255-dK[H];if(dK[H+1]>ch)dK[H+1]=255-dK[H+1];if(dK[H+2]>ch)dK[H+2]=255-dK[H+2]}}if(L=="Wnd "){var b=C.rect,Q=b.d,K=b.v,hP=["Wnd","Blst","Stgr"],d2=U.WndM.v.WndM;
c.DA.k5(C.buffer,Q,K,z.buffer,[hP.indexOf(d2),U.Drct.v.Drct!="Left"])}if(L=="Bokh"){var b=C.rect,Q=b.d,K=b.v,h=Q*K,x=h*4,hr=C.buffer.slice(0),fv=U.BkDi.v.BtDi,f3=U.BkDc,dp=U.BkDp.v/255;
if(fv=="BeIn")dp=0;var go=57*(.3+.7*((Q+K)/2)/1750)*(U.BkIb.v/100)*(1+.2*Math.pow(dp,.1)),u=parseInt(U.BkIs.v.BtIs.slice(3)),d6=-U.BkIr.v*Math.PI/180,iB=[];
for(var H=0;H<8;H++){var hS=d6+H*(Math.PI*2/u),eF=d6+(H+1)*(Math.PI*2/u),bQ=Math.cos(hS),iP=Math.sin(hS),d8=Math.cos(eF),a6=Math.sin(eF),am=[0,0,0];
c.W1.wi([[bQ,iP,1,0],[d8,a6,1,0],[1,1,1,1]],am);if(am[2]>0){am[0]*=-1;am[1]*=-1;am[2]*=-1}iB.push(am[0],am[1],am[2],0)}if(fv=="BeIn"){c.n0(hr,0,16777215);
dp=1}else if(fv=="BeIt"&&f3.v.BtDc=="BeCt"){}else{var fj;if(fv=="BeIt"&&f3.v.BtDc=="BeCm")fj=r[1];else if(fv=="BeIa")fj=r[2][f3.v];
if(fj==null){c.n0(hr,0,16777215)}else{var dX;if(fj.rect.cg(b))dX=fj.channel;else dX=fj.X8(b);c.Wn(dX,hr,3)}}if(t.i8){var gc=hr,dz=Q,gE=K,cQ=1,fi=(U.BkSb.v==0||U.BkSt.v==255)&&fv=="BeIn";
if(!fi){var dB=0;for(var H=0;H<x;H+=4)dB+=Math.abs(dp-hr[H+3]*(1/255));dB=dB/h*go;var bp=3.14*dB*dB*Q*K/3e6;
if(bp>2e3){alert("too large radius");return}}while(fi&&3*(go/cQ)*(go/cQ)*Q*K>500*2e3*2e3){var ai=c.bt(hr,new _(0,0,dz,gE));
hr=ai.eB;dz=ai.rect.d;gE=ai.rect.v;cQ*=2}var d=Date.now(),hu=t.kb(0,dz,gE);hu.set(hr);var bP=t.kb(1,Q,K);
t.RV(bP);t.filter.BW({type:t.filter.TZ,WY:new Float32Array([1/dz,1/gE]),a0E:dp,agw:go/cQ,a0x:new Float32Array([U.BkSb.v/100,U.BkSt.v/255]),afZ:new Float32Array([U.BkNa.v/100,U.BkNt.v.BtNt=="BeNu"?0:1,U.BkNm.v?1:0]),a89:new Float32Array(iB.slice(0,16)),agt:new Float32Array(iB.slice(16))},hu.W5);
bP.get(z.buffer);var hw=z.buffer;for(var H=0;H<x;H+=4)hw[H+3]=C.buffer[H+3]}}if(L=="rigidTransform"){var d=Date.now(),gQ=hi.al4,hu=C.buffer.slice(0),i5=0,fM=0;
c.ED(hu);c.n0(z.buffer,0);var Q=C.rect.d,K=C.rect.v,gp=U.puppetShapeList.v,aS=[],iX=[],dW=[],i7=[];for(var ei=0;
ei<gp.length;ei++){var bu=gp[ei].v,hG=i5*2,fb=fM*3,iJ=bu.originalVertexArray.v.length>>>2,h0=bu.indexArray.v.length>>>2,hM=new Float32Array(gQ(bu.originalVertexArray.v));
for(var H=0;H<iJ;H++)aS[hG+H]=hM[H];var fC=new Float32Array(gQ(bu.deformedVertexArray.v));for(var H=0;
H<iJ;H++)iX[hG+H]=fC[H];var cw=new Uint32Array(gQ(bu.indexArray.v));for(var H=0;H<h0;H++)dW[fb+H]=i5+cw[H];
var aD=[],d7=[],az=bu.PnDp.v;for(var H=0;H<az.length;H++){aD.push(bu.pinVertexIndices.v[H].v);d7.push(az[H].v)}var gb=c.De.a3F(hM,cw,aD,d7);
for(var H=0;H<gb.length;H++)i7[i5+H]=gb[H];i5+=iJ>>>1;fM+=~~(h0/3)}c.De.wV(hu,z.buffer,C.rect,aS,iX,i7,dW);
c.mu(z.buffer)}if(L=="lightFilterGradient"){function hl(ex){var hF=1/Math.sqrt(ex[0]*ex[0]+ex[1]*ex[1]+ex[2]*ex[2]);
ex[0]*=hF;ex[1]*=hF;ex[2]*=hF}var Q=C.rect.d,K=C.rect.v,h=Q*K,d=Date.now(),aZ=c.F(h),bK=.3,aF=.7;c.Fy(z.buffer,aZ);
var dq=c.F(h);c.qM.Oq(aZ,dq,z.rect,16);var fo=c.F(h);c.qM.Oq(aZ,fo,z.rect,8);var gF=aZ,A=new Float32Array(h),hk=U.Dtl.v,iU=hk[2].v,iD=hk[1].v,fJ=hk[0].v,gh=U.Scl.v*40*U.textureScale.v/(iU+iD+fJ);
iU*=gh;iD*=gh;fJ*=gh;for(var H=0;H<h;H++){var aM=dq[H]*(1/255),hE=fo[H]*(1/255),ep=gF[H]*(1/255);ep=ep*ep;
A[H]=iU*aM+iD*hE+fJ*ep}var h4=U.blur.v;if(h4!=0){var aE=A.slice(0);c.qM.U_(aE,A,z.rect,h4)}var aN=Q-1,hD=K-1;
for(var R=1;R<hD;R++)for(var n=1;n<aN;n++){var H=R*Q+n,e8=H*4,ct=A[H],g6=bK*(A[H+1]-ct)+aF*(ct-A[H-1]),al=bK*(A[H+Q]-ct)+aF*(ct-A[H-Q]),ex=[1,0,g6],gi=[0,1,al];
hl(ex);hl(gi);var eF=ex[0],dj=ex[2],as=gi[1],fp=gi[2],ci=-dj*as,fU=-eF*fp,iT=eF*as;z.buffer[e8]=~~(127.5+ci*127.5);
z.buffer[e8+1]=~~(127.5+fU*127.5);z.buffer[e8+2]=~~(127.5+iT*127.5)}}if(L=="dDFT"||L=="iDFT"){function ee(u){if(u==0)return 1;
u--;u|=u>>1;u|=u>>2;u|=u>>4;u|=u>>8;u|=u>>16;return u+1}var Q=C.rect.d,K=C.rect.v,at=ee(Math.max(Q,K)),bV=at>>>1,ij=new _(0,0,at,at),eT=new _(0,0,Q,K);
eT.y=at-K>>>1;var cE=Q>>>1,cv=new _(0,eT.y,cE,K),eP=new c.Ry(Q*K);c.df(C.buffer,eP);var h5=new Float64Array(at*at),fn=new Float64Array(at*at),dX=c.F(at*at);
FFT.init(at);var a0=[eP.h,eP.P,eP.O];for(var H=0;H<3;H++){var bA=a0[H];dX.fill(0);if(L=="dDFT"){c.zM(bA,eT,dX,ij);
hi.ah0(dX,at,h5,fn);c.zM(dX,ij,bA,eT,cv);cv.x+=cE;ij.x-=bV-cE;c.zM(dX,ij,bA,eT,cv);cv.x-=cE;ij.x+=bV-cE}else{c.zM(bA,eT,dX,ij,cv);
cv.x+=bV;eT.x+=bV-cE;c.zM(bA,eT,dX,ij,cv);cv.x-=bV;eT.x-=bV-cE;hi.afV(dX,at,h5,fn);c.zM(dX,ij,bA,eT)}}c.qF(eP,z.buffer)}if(L=="Avrg"){var aR=0,dE=0,hC=0,aK=0,bg=1;
for(var H=0;H<C.buffer.length;H+=4){var gf=C.buffer[H+3];hC+=C.buffer[H]*gf;dE+=C.buffer[H+1]*gf;aR+=C.buffer[H+2]*gf;
aK+=gf}var an=1/aK;aR=Math.round(bg*(aR*an)+(1-bg)*255);dE=Math.round(bg*(dE*an)+(1-bg)*255);hC=Math.round(bg*(hC*an)+(1-bg)*255);
c.n0(z.buffer,aR<<16|dE<<8|hC,4278190080)}if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(L)!=-1){var fR=U.Rds.v.val,il=L=="boxblur"?c.qM.wv:c.qM.aaB;
hi.mK(fR,il,z.buffer,z.rect);if(L=="UnsM"||L=="smartSharpen"){var bz=U.Amnt.v.val/100,ce=0;if(L=="UnsM")ce=U.Thsh.v;
else bz*=.75;for(var H=0;H<C.buffer.length;H++){if((H&3)==3){z.buffer[H]=C.buffer[H];continue}var cf=C.buffer[H],ff=z.buffer[H],hU=bz*(cf-ff);
if(hU>0)hU=Math.max(0,hU-ce);else hU=Math.min(0,hU+ce);z.buffer[H]=Math.max(0,Math.min(255,cf+hU))}}if(L=="HghP")for(var H=0;
H<C.buffer.length;H++){if((H&3)==3){z.buffer[H]=C.buffer[H];continue}var cf=C.buffer[H],ff=z.buffer[H];
z.buffer[H]=Math.max(0,Math.min(255,128+cf-ff))}}if(L=="surfaceBlur"){var d4=U.Rds.v.val,cz=U.Thsh.v,Q=C.rect.d,K=C.rect.v;
hi.Xp(C.buffer,z.buffer,Q,K,d4,c.nW.Vs,[cz],2)}if(L=="AdNs"){var bv=new Uint8ClampedArray(z.buffer.buffer),dL=255*U.Nose.v.val/100,fy;
if(U.Dstr.v.Dstr=="Gsn")fy=function(){return(Math.random()+Math.random()+Math.random()+Math.random()-2)*2};
else fy=function(){return Math.random()*2-1};for(var H=0;H<bv.length;H+=4){var d4=bv[H],df=bv[H+1],ax=bv[H+2],i2,fK,dt;
if(U.Mnch.v){i2=fK=dt=fy()}else{i2=fy();fK=fy();dt=fy()}d4+=dL*i2;df+=dL*fK;ax+=dL*dt;bv[H]=d4;bv[H+1]=df;
bv[H+2]=ax}}if(L=="Mdn "||L=="DstS"||L=="Mxm "||L=="Mnm "){var d4=0;if(L=="Mdn "||L=="Mxm "||L=="Mnm ")d4=U.Rds.v.val;
if(L=="DstS")d4=U.Rds.v;c.nW._0=.5;var il=c.nW.Rb;if(L=="Mxm ")il=c.nW.s_;if(L=="Mnm ")il=c.nW.ow;var Q=C.rect.d,K=C.rect.v,iz={"Mdn ":0,"Mxm ":1,"Mnm ":1,DstS:2}[L];
hi.Xp(C.buffer,z.buffer,Q,K,d4,il,[],iz);if(L=="DstS"){var cz=U.Thsh.v;for(var H=0;H<Q*K*4;H++){var a7=Math.abs(C.buffer[H]-z.buffer[H]);
if(a7<=cz)z.buffer[H]=C.buffer[H]}}}if(L=="ClrH"){var cv=C.rect.clone();cv.x=cv.y=0;var d4=U.Rds.v;d4=Math.round(d4*Math.sqrt(2));
var Q=cv.d,K=cv.v,eP=new c.Ry(Q*K);c.df(C.buffer,eP);c.G$(eP.h);c.G$(eP.P);c.G$(eP.O);var d_=B.w("canvas","");
d_.width=Q;d_.height=K;var fD=d_.getContext("2d"),hw=c.F(Q*K*4);for(var f_=0;f_<3;f_++){var dX=f_==0?eP.h:f_==1?eP.P:eP.O,S=Math.PI*U["Ang"+(f_+1)].v/180,gt=new c0(1/d4,0,0,1/d4,0,0);
gt.rotate(S);c.Wn(dX,hw,3);var bE=W.o.dy([hw,cv],gt,!0),eT=bE.rect;fD.clearRect(0,0,Q,K);var gg=Math.sin(S),cR=Math.cos(S);
for(var H=0;H<eT.v;H++)for(var cJ=0;cJ<eT.d;cJ++){var n=(cJ+eT.x+.5)*d4,R=(H+eT.y+.5)*d4,fX=n,he=R;n=cR*fX-gg*he;
R=gg*fX+cR*he;var h=bE.buffer[(H*eT.d+cJ<<2)+3]*(1/255),fR=d4*Math.sqrt(h*(1/Math.PI));fD.beginPath();
fD.arc(n,R,fR,0,2*Math.PI);fD.fill()}var fz=fD.getImageData(0,0,Q,K);c.wH(fz.data,dX,3)}c.G$(eP.h);c.G$(eP.P);
c.G$(eP.O);c.qF(eP,z.buffer)}if(L=="Crst"||L=="Pntl"){var Q=C.rect.d,K=C.rect.v,il=L=="Crst"?c.lr.a31:c.lr.a0J;
il(C.buffer,Q,K,z.buffer,U.ClSz.v,[Math.round(Y.h),Math.round(Y.P),Math.round(Y.O)])}if(L=="Mztn"){var Q=C.rect.d,K=C.rect.v,h=Q*K,eP=new c.Ry(h),dR=[eP.h,eP.P,eP.O];
c.df(C.buffer,eP);var d2=U.MztT.v.MztT,hn={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]}[d2],d=Date.now(),eQ=[];
for(var H=0;H<h;H++){eQ[H]=Math.random()}var h=Q*K,hI=Math.round(h*hn[0]),hz=h-Q-1;for(var H=0;H<hI;
H++){var w=Math.random(),c1=1;if(w<.5){c1=Q;w*=2}else w=2*(w-.5);var b2=Math.floor(w*hz),hd=b2+c1;eQ[b2]=eQ[hd]}var bX=Math.round(Q*hn[1]);
for(var R=0;R<K;R++)for(var H=0;H<bX;H++){var w=c.Q.b6(R*h+H),b2=R*Q+Math.floor(w*(Q-1));eQ[b2]=eQ[b2+1]}var gj=new Float64Array(256);
for(var H=0;H<256;H++){var gY=H/255,hY=2*(gY<.5?gY:1-gY);hY=hn[2]+Math.pow(hY,hn[3])*(1-hn[2]);gY=gY<.5?hY*.5:1-hY*.5;
gj[H]=gY}for(var hb=0;hb<3;hb++){var dX=dR[hb];for(var R=0;R<K;R++){for(var n=0;n<Q;n++){var H=R*Q+n,gO=dX[H],gY=gj[gO],w=eQ[H];
dX[H]=w>gY?0:255}}}c.qF(eP,z.buffer)}if(L=="Msc "){var aO=U.ClSz.v.val,Q=C.rect.d,K=C.rect.v,io=Math.ceil(Q/aO),i3=Math.ceil(K/aO),c9=c.F(io*i3*4);
c.scale.su(C.buffer,Q,K,c9,io,i3,1/aO);c.scale.su(c9,io,i3,z.buffer,Q,K,aO)}if(L=="Clds"||L=="DfrC"){var Q=z.rect.d,K=z.rect.v,h=Q*K,dD=c.F(h);
if(L=="Clds")c.n0(z.buffer,4278190080);var iS=c.F(256*4);for(var H=0;H<256;H++){var e8=H<<2,e_=H/255,cw=1-e_;
iS[e8]=Math.round(e_*E.h+cw*Y.h);iS[e8+1]=Math.round(e_*E.P+cw*Y.P);iS[e8+2]=Math.round(e_*E.O+cw*Y.O)}c.DA.a9w(C.buffer,Q,K,dD);
var dn=z.buffer;for(var H=0;H<h;H++){var e8=H<<2,hb=dD[H]<<2,d4=iS[hb],df=iS[hb+1],ax=iS[hb+2];if(L=="Clds"){dn[e8]=d4;
dn[e8+1]=df;dn[e8+2]=ax}else{dn[e8]=Math.abs(dn[4*H]-d4);dn[e8+1]=Math.abs(dn[4*H+1]-df);dn[e8+2]=Math.abs(dn[4*H+2]-ax)}}}if(L=="LnsF"){var Q=C.rect.d,K=C.rect.v,d2=["Zm","Nkn","Nkn1","PnVs"].indexOf(U.Lns.v.Lns),gs=U.FlrC.v,gV=[Math.min(d2,2),U.Brgh.v/100,gs.Hrzn.v,gs.Vrtc.v],d=Date.now();
c.a5J(C.buffer,Q,K,z.buffer,gV)}var fx=["Blr ","BlrM","Shrp","ShrM"].indexOf(L);if(fx!=-1){var hB=fx>1,Q=C.rect.d,K=C.rect.v,gq=c.N1.MZ[fx],ay=C.buffer.slice(0);
if(!hB)c.ED(ay);c.N1.jg(ay,z.buffer,Q,K,gq,255,!1,hB);if(!hB)c.mu(z.buffer)}if(L=="MtnB"){var fw=-U.Angl.v*Math.PI/180,aW=U.Dstn.v.val/2,d=Date.now(),Q=C.rect.d,K=C.rect.v,b=C.rect.clone();
b.x=b.y=0;if(t.i8){var d=Date.now(),iw=z.buffer;iw.set(C.buffer);c.ED(iw);var c7=t.kb(0,Q,K);c7.set(iw);
var N=c.F(4);N[0]=Math.round(128+127*Math.cos(fw));N[1]=Math.round(128+127*Math.sin(fw));new Uint32Array(iw.buffer).fill(new Uint32Array(N.buffer)[0]);
var d1=t.kb(1,Q,K);d1.set(iw);t.RV(c7,b);c7.Go(b);t.filter.BW({type:t.filter.VN,YY:d1.W5,WY:new Float32Array([1/Q,1/K]),a4D:aW/2,a6l:1},c7.zQ);
c7.get(iw);c.mu(iw)}else{var gt=new c0;gt.rotate(fw);var bE=W.o.dy([C.buffer,C.rect],gt,!1,null,!0);
hi.mK(aW,c.qM.Cn,bE.buffer,bE.rect);gt.G$();bE=W.o.dy([bE.buffer,bE.rect],gt,!1,z.buffer.buffer,!0,z.rect)}console.log(Date.now()-d)}if(L=="RdlB"){var Q=C.rect.d,K=C.rect.v,bz=U.Amnt.v,c4=U.BlrM.v.BlrM=="Zm",f_=U.Cntr.v,fT=f_.Hrzn.v,eM=f_.Vrtc.v,g6=Math.max(fT,1-fT)*Q,al=Math.max(eM,1-eM)*K,fR=Math.sqrt(g6*g6+al*al),aG=2*Math.PI*fR*1.5,c6=Math.round(aG),cF=Math.round(fR),cv=new _(0,0,c6,cF),is=c.F(c6*cF*4),eD=c4?4:1,f2=c4?.6:8*((Q+K)/2)/1400,ii=.1,cQ=1,hW=1;
c.I.bN(C.buffer,Q,K,is,c6,cF,fT,eM,eD,ii,cQ,hW);var gH=c4?c.F(c6*cF*4):null;if(c4){c.I.t$(is,gH,c6,cF);
var g2=gH;gH=is;is=g2;cv.d=cF;cv.v=c6}hi.mK(f2*bz,c.qM.Cn,is,cv);if(c4){c.I.t$(is,gH,cF,c6);var g2=gH;
gH=is;is=g2;cv.d=c6;cv.v=cF}c.I.H9(is,c6,cF,z.buffer,Q,K,fT,eM,eD,ii,cQ,hW)}if(L=="Plr "){var Q=C.rect.d,K=C.rect.v;
if(U.Cnvr.v.Cnvr=="RctP")c.I.H9(C.buffer,Q,K,z.buffer,Q,K,.5,.5,1,0,2,Q/K);else c.I.bN(C.buffer,Q,K,z.buffer,Q,K,.5,.5,1,0,2,Q/K)}if(L=="FndE"){var Q=C.rect.d,K=C.rect.v;
c.N1.St(C.buffer,z.buffer,Q,K)}if(L=="oilPaint"){var S=U.LghD.v*Math.PI/180,ba=[Math.cos(S),Math.sin(S),.001],Z=[U.stylization.v,U.cleanliness.v,U.brushScale.v,U.microBrush.v,U.lightingOn.v,U.specularity.v,ba],b=C.rect.clone();
b.x=b.y=0;c.pB.filter(C.buffer,b,z.buffer,Z)}if(L=="Ofst"){var Q=C.rect.d,K=C.rect.v,iC=new Uint32Array(C.buffer.buffer),f0=new Uint32Array(z.buffer.buffer),fX=U.Hrzn.v,he=U.Vrtc.v,bZ=U.Fl.v.FlMd;
c.n0(f0,0);if(bZ=="Bckg"||bZ=="Rpt"){var cv=C.rect.clone();cv.offset(fX,he);c.La(iC,cv,f0,z.rect)}if(bZ=="Rpt"){var bQ,iP,d8,a6,cB;
fX=Math.max(-Q,Math.min(Q,fX));he=Math.max(-K,Math.min(K,he));bQ=fX>0?fX:0;d8=fX>0?Q:Q+fX;iP=he>0?0:he+K;
a6=he>0?he:K;cB=he>0?0:Q*(K-1);for(var R=iP;R<a6;R++)for(var n=bQ;n<d8;n++)f0[R*Q+n]=iC[cB+n-fX];bQ=fX>0?0:Q+fX;
d8=fX>0?fX:Q;iP=he>0?he:0;a6=he>0?K:K+he;cB=fX>0?0:Q-1;for(var R=iP;R<a6;R++)for(var n=bQ;n<d8;n++)f0[R*Q+n]=iC[cB+Q*(R-he)];
if(fX>=0&&he>=0){bQ=0;d8=fX;iP=0;a6=he;cB=0}if(fX>=0&&he<0){bQ=0;d8=fX;iP=K+he;a6=K;cB=Q*(K-1)}if(fX<0&&he>=0){bQ=Q+fX;
d8=Q;iP=0;a6=he;cB=Q-1}if(fX<0&&he<0){bQ=Q+fX;d8=Q;iP=K+he;a6=K;cB=Q*K-1}for(var R=iP;R<a6;R++)for(var n=bQ;
n<d8;n++)f0[R*Q+n]=iC[cB]}if(bZ=="Wrp"){fX=(fX+100*Q)%Q;he=(he+100*K)%K;var cv=new _(fX-Q,he-K,Q,K);
c.La(iC,cv,f0,z.rect);cv.offset(Q,0);c.La(iC,cv,f0,z.rect);cv.offset(0,K);c.La(iC,cv,f0,z.rect);cv.offset(-Q,0);
c.La(iC,cv,f0,z.rect)}}if(L=="Rept"){var bq=U.Rsft.v.val/100,iV=U.SpcX.v.val/100;iV=Math.max(iV,-.99);
var cX=U.SpcY.v.val/100;cX=Math.max(cX,-.99);var cQ=U.Scl.v.val/100,gt=new c0;gt.rotate(U.Angl.v*Math.PI/180);
gt.scale(cQ,cQ);var g7={buffer:C.buffer,rect:C.rect};c.Xb(g7);if(g7.rect.ue()){g7.buffer=C.buffer;g7.rect=C.rect}var dn=g7.buffer,cv=g7.rect,hJ=c.TW(dn,cv,0),ah=new Uint32Array(dn.buffer)[0];
if(!hJ.ue()&&!hJ.cg(cv)){var gJ=c.F(hJ.X()*4);c.La(dn,cv,gJ,hJ);dn=gJ;cv=hJ}cv.x=cv.y=0;ah=iV==0&&cX==0||U.SpcC.v?ah:0;
function f9(n){return n<0?Math.ceil(n):Math.floor(n)}var fF=gt.Om(new hZ(cv.d,0));fF.x=f9(fF.x);fF.y=f9(fF.y);
var dM=gt.Om(new hZ(0,cv.v));dM.x=f9(dM.x);dM.y=f9(dM.y);var bE=W.o.dy([dn,cv],gt,!1),eT=bE.rect,J=bE.buffer,h2=Math.round(eT.x),gU=Math.round(eT.y),f$=Math.max(z.rect.d,z.rect.v)/Math.min(cv.d*cQ*(1+iV),cv.v*cQ*(1+cX));
f$=Math.ceil(f$*1.7);c.n0(z.buffer,ah);for(var R=-f$;R<f$;R++){for(var n=-f$;n<f$;n++){var aY=(n+R*bq)*(1+iV),bm=R*(1+cX);
eT.x=h2+Math.round(aY*fF.x+bm*dM.x);eT.y=gU+Math.round(aY*fF.y+bm*dM.y);if(eT.nN(z.rect))c.Q.Kj("norm",J,eT,z.buffer,z.rect,eT,1)}}}if(L=="Ctoa"){var Y=c.W.Lt(U.Clr.v),cz=U.Trsp.v.val/100,dO=U.Opct.v.val/100;
cz=dO==0?0:cz/dO;var Q=C.rect.d,K=C.rect.v,gr=~~Y.h,eg=~~Y.P,cx=~~Y.O,cB=C.buffer,ft=z.buffer;for(var R=0;
R<K;R++)for(var n=0;n<Q;n++){var H=R*Q+n,e8=H<<2,cv=cB[e8],h9=cB[e8+1],dn=cB[e8+2],f8=Math.abs(gr-cv),aa=Math.abs(eg-h9),e$=Math.abs(cx-dn),bw=Math.max(f8,aa,e$)*(1/255);
bw=Math.max(0,Math.min(1,bw/dO));var cZ=bw==0?0:1/bw,fO=cz==1?1:Math.max(0,Math.min(1,(bw-cz)/(1-cz)));
ft[e8]=Math.max(0,Math.min(255,(cv-gr*(1-bw))*cZ));ft[e8+1]=Math.max(0,Math.min(255,(h9-eg*(1-bw))*cZ));
ft[e8+2]=Math.max(0,Math.min(255,(dn-cx*(1-bw))*cZ));ft[e8+3]=~~(.5+fO*255)}}if("LqFy,Dspl,Pnch,Sphr,Twrl,Rple,Shr ,Wave,LnCr".split(",").indexOf(L)!=-1){var cr=r[0],Q=C.rect.d,K=C.rect.v,gj,de=0;
if(L=="LqFy")gj=gy.Vu(new Uint8Array(U.LqMe.v).buffer);else{var bW=3;gj={aU:Math.floor(Q/bW),fg:Math.floor(K/bW)};
gj.map=new Float32Array(gj.aU*gj.fg*2);if(L=="LnCr"){var fT=.5*(gj.aU-1),eM=.5*(gj.fg-1),bT=Math.max(Math.abs(0-fT),Math.abs(1-fT)),hA=Math.max(Math.abs(0-eM),Math.abs(1-eM)),bR=Math.sqrt(bT*bT+hA*hA),eL=0,b0=0,b_=-1,dw=2,cQ=U.LnSi.v/100,c4=1/cQ,iI=U.LnIa.v/100,h8=iI==0?1e-6:iI*4.6,aJ=c4/bR;
for(var R=0;R<gj.fg;R++){for(var n=0;n<gj.aU;n++){var g6=(n-fT)*aJ,al=(R-eM)*aJ,d4=Math.sqrt(g6*g6+al*al)*h8,bi=Math.atan(d4),fk=iI>0?bi/d4:d4/bi,hW=fT+bR*fk*g6,aP=eM+bR*fk*al,H=R*gj.aU+n<<1;
gj.map[H]=hW-n;gj.map[H+1]=aP-R}}}else if(L=="Dspl"&&cr.length!=0){de=U.UndA.v.UndA=="WrpA"?2:1;var ae=U.DspF.v.pth,ge;
for(var H=0;H<cr.length;H++)if(cr[H].Ea==ae)ge=cr[H];if(ge==null)ge=cr[0];ge.E0();var f8=ge.Ne[1],iW=c.F(f8.X());
c.Fy(ge.Ne[0],iW);var aj=f8.d,dI=f8.v;gj={aU:aj,fg:dI};gj.map=new Float32Array(gj.aU*gj.fg*2);var fd=2.54*U.HrzS.v*aj/Q,fB=2.54*U.VrtS.v*dI/K;
for(var R=0;R<gj.fg;R++){for(var n=0;n<gj.aU;n++){var a7=-.5+iW[R*aj+n]*(1/255),H=R*gj.aU+n<<1;gj.map[H]=a7*fd;
gj.map[H+1]=a7*fB}}}else if(L=="Pnch"||L=="Twrl"||L=="Sphr"){var bz=1,fw=Math.PI,gD=0,f_=3,aO=1.53,fk=1;
if(L=="Pnch"||L=="Sphr")bz=U.Amnt.v/100;if(L=="Twrl")fw=U.Angl.v*Math.PI/180;if(L=="Sphr")gD=["Nrml","HrzO","VrtO"].indexOf(U.SphM.v.SphM);
function il(n){n=Math.pow(n,1-n*.3-n*n*(n*n)*.5);return-.225*Math.sin(n*Math.PI)}function aT(K,hF,d4,bQ,iP,d8,a6,fk){var g6=d8-bQ,al=a6-iP,c$=bQ-K,hh=iP-hF,e_=g6*g6+al*al,ax=2*(g6*c$+al*hh),f_=c$*c$+hh*hh-d4*d4,ir=Math.sqrt(ax*ax-4*e_*f_),cH=fk/(2*e_),hf=(-ax+ir)*cH,dy=(-ax-ir)*cH;
return fk*Math.min(hf,dy)}var io=gj.aU,i3=gj.fg,e9=gj.aU/2,hD=gj.fg/2,bY=1/e9,d4=Math.sqrt(f_*f_+1)/f_,bA=f_+Math.sqrt(1/(f_*f_));
if(bz<0){f_=1.72;d4=1;bA=f_;aO=-1;fk=-1}for(var R=0;R<i3;R++){var al=(R-hD)/hD;for(var n=0;n<io;n++){var g6=(n-e9)*bY;
if(gD==1)al=0;else if(gD==2)g6=0;var aI=Math.sqrt(g6*g6+al*al);if(aI<1&&aI!=0){var H=R*gj.aU+n<<1;if(L=="Pnch"){var aC=-bz*il(aI)/aI;
gj.map[H]=g6*aC*e9;gj.map[H+1]=al*aC*hD}else if(L=="Sphr"){var g2=aT(0,bA,d4,0,0,aI,f_,fk),be=aO*bz*(g2-1);
gj.map[H]=g6*be*e9;gj.map[H+1]=al*be*hD}else if(L=="Twrl"){var S=Math.atan2(al,g6)-fw*(1-aI)*(1-aI),au=Math.cos(S),ej=Math.sin(S);
gj.map[H]=(aI*au-g6)*e9;gj.map[H+1]=(aI*ej-al)*hD}}}}}else if(L=="Shr "){var cc=JSON.parse(JSON.stringify(U.ShrP.v));
c.Nn.J(cc,new c0(0,255/127,255/127,0,-2,0));var hH=c.Nn.Sx(cc,gj.fg,!0);de=U.UndA.v.UndA=="WrpA"?2:1;
for(var R=0;R<gj.fg;R++){var g6=-hH[R]*gj.aU;for(var n=0;n<gj.aU;n++){var H=R*gj.aU+n<<1;gj.map[H]=g6}}}else if(L=="Wave"){var dZ=U.NmbG.v,fu=U.WLMn.v,a9=U.WLMx.v,ak=U.AmMn.v*(Math.PI/4),bL=U.AmMx.v*(Math.PI/4),b$=U.SclH.v/100,ez=U.SclV.v/100,d2=U.Wvtp.v.Wvtp,eE=Math.sin;
if(d2=="WvTr")eE=function(n){n*=2/Math.PI;return-.5+Math.abs(n%2-1)};if(d2=="WvSq")eE=function(n){n*=2/Math.PI;
return 1+2*Math.floor(n%2-1)};var a$=[],cs=new c.Q.il(U.RndS.v);for(var H=0;H<dZ;H++){a$.push(cs.get()*10);
a$.push(Math.PI*bW/(fu+cs.get()*(a9-fu)));a$.push(b$*(ak+cs.get()*(bL-ak))/bW);a$.push(cs.get()*10);
a$.push(Math.PI*bW/(fu+cs.get()*(a9-fu)));a$.push(ez*(ak+cs.get()*(bL-ak))/bW)}var dl=[],i4=[],bn=Math.max(gj.aU,gj.fg);
for(var H=0;H<bn;H++){var g6=0,al=0;for(var cJ=0;cJ<dZ;cJ++){var cI=cJ*6;g6+=a$[cI+2]*eE(a$[cI]+H*a$[cI+1]);
al+=a$[cI+5]*eE(a$[cI+3]+H*a$[cI+4])}dl[H]=al;i4[H]=g6}for(var R=0;R<gj.fg;R++){for(var n=0;n<gj.aU;
n++){var H=R*gj.aU+n<<1;gj.map[H]=i4[R];gj.map[H+1]=dl[n]}}de=U.UndA.v.UndA=="WrpA"?2:1}else if(L=="Rple"){de=1;
var bz=U.Amnt.v/100,bb=4,fQ=[0,-.19,-.29,-.32,.92,.37,.93,.54,-.54,.42,-.29,-.58,-.67,.85,0,.64],bt=1,gu=1,c$=0,a5=["Sml","Mdm","Lrg"].indexOf(U.RplS.v.RplS);
if(a5==0){bt=1;gu=.2;c$=3}if(a5==2){bt=1;gu=2;c$=-1;fQ=fQ.reverse()}var ac=function(n,R){var f_=Math.cos,gh=0;
for(var H=0;H<bb;H++)for(var cJ=0;cJ<bb;cJ++)gh+=fQ[H*bb+cJ]*f_(n*(H+c$)-R*(cJ+c$));return gh},a8=Math.floor(50/bW),bN=new Float32Array(a8*a8*2),gB=gu*bz*.5/bW;
for(var R=0;R<a8;R++)for(var n=0;n<a8;n++){var fT=bt*n*2*Math.PI/a8,eM=bt*R*2*Math.PI/a8,i6=ac(fT,eM),g6=(ac(fT+.01,eM)-i6)*100,al=(ac(fT,eM+.01)-i6)*100,H=(R*a8+n)*2;
bN[H]=g6*gB;bN[H+1]=al*gB}for(var R=0;R<gj.fg;R++)for(var n=0;n<gj.aU;n++){var ej=R%a8,au=n%a8,H=R*gj.aU+n<<1,bh=ej*a8+au<<1;
gj.map[H]=bN[bh];gj.map[H+1]=bN[bh+1]}}}c.Ki.wR(C.buffer,z.buffer,Q,K,null,gj.map,gj.aU,gj.fg,de)}return z};
var eb={};eb.XL="BrSm BrsL BrDR BrsW BrbW BrSp".split(" ");eb.Dm="LDBt LDBL LDLf LDTL LDTp LDTR LDRg LDBR".split(" ");
eb.Uc=["ScrC","ScrD","ScrL"];eb.$p=["SDRD","SDHz","SDLD","SDVt"];eb.Q7="TxBl TxCa TxFr TxTL TxBr TxBu TxSt".split(" ");
eb.IZ={PntD:"paintDaubs"};eb.v0=["Artistic","Brush Strokes",[24,4],"Sketch",[24,14],[12,67]];eb.names={PntD:[0,"Paint Daubs"],PlsW:[0,"Plastic Wrap"],Spt:[1,"Spatter"],SprS:[1,"Sprayed Strokes"],Gls:[2,"Glass"],OcnR:[2,"Ocean Ripple"],BsRl:[3,"Bas Relief"],Chrc:[3,"Charcoal"],Chrm:[3,"Chrome"],GraP:[3,"Graphic Pen"],HlfS:[3,"Halftone Pattern"],Phtc:[3,"Photocopy"],Stmp:[3,"Stamp"],GlwE:[4,"Glowing Edges"],StnG:[5,"Stained Glass"],Txtz:[5,"Texturizer"]};
eb.Q4=function(L){var C;if(L=="PntD")C={Sz:{t:"long",v:10},Shrp:{t:"long",v:10},BrsT:{t:"enum",v:{BrsT:"BrSm"}}};
if(L=="PlsW")C={HghS:{t:"long",v:20},Dtl:{t:"long",v:4},Smth:{t:"long",v:5}};if(L=="Spt")C={SprR:{t:"long",v:10},Smth:{t:"long",v:5},FlRs:{t:"long",v:10738420}};
if(L=="SprS")C={StrL:{t:"long",v:12},SprR:{t:"long",v:7},SDir:{t:"enum",v:{StrD:"SDRD"}},FlRs:{t:"long",v:893120664}};
if(L=="Gls")C={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(L=="OcnR")C={RplS:{t:"long",v:5},RplM:{t:"long",v:15},FlRs:{t:"long",v:64008840}};if(L=="BsRl")C={Dtl:{t:"long",v:11},Smth:{t:"long",v:7},LghD:{t:"enum",v:{LghD:"LDBt"}}};
if(L=="Chrc")C={ChAm:{t:"long",v:1},Dtl:{t:"long",v:5},LgDr:{t:"long",v:50},GELv:{t:"bool",v:!0}};if(L=="Chrm")C={Dtl:{t:"long",v:4},Smth:{t:"long",v:4}};
if(L=="GraP")C={StrL:{t:"long",v:7},LgDr:{t:"long",v:50},SDir:{t:"enum",v:{StrD:"SDRD"}},FlRs:{t:"long",v:55993248}};
if(L=="HlfS")C={HlSz:{t:"long",v:1},Cntr:{t:"long",v:5},ScrT:{t:"enum",v:{ScrT:"ScrD"}}};if(L=="Phtc")C={Dtl:{t:"long",v:10},Drkn:{t:"long",v:4}};
if(L=="Stmp")C={LgDr:{t:"long",v:25},Smth:{t:"long",v:4}};if(L=="GlwE")C={EdgW:{t:"long",v:1},EdgB:{t:"long",v:10},Smth:{t:"long",v:1}};
if(L=="StnG")C={ClSz:{t:"long",v:10},BrdT:{t:"long",v:4},LghI:{t:"long",v:0},FlRs:{t:"long",v:319935998}};
if(L=="Txtz")C={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}};
C.__name="Filter Gallery";C.classID="GEfc";C.GEfk={t:"enum",v:{GEft:L}};C.GELv={t:"bool",v:!0};return C};
eb.Qd=function(L,C){for(var H=0;H<C.length;H++)~~(C[H]=(L[4*H]+L[4*H+1]+L[4*H+2])*(1/3))};eb.QE=function(L,C,U,E,Y,z,r){L=U.GEfk.v.GEft;
var p=C.rect,T=p.d,k=p.v,P=T*k;if(L=="PstE"){}if(L=="Chrc"){var b=c.F(T*k),Q=c.F(T*k);eb.Qd(C.buffer,b);
c.DA.ahx(b,T,k,Q,[U.ChAm.v,U.Dtl.v,U.LgDr.v]);eb.YM(Q,z.buffer,E,Y)}if(L=="Stmp"){var b=c.F(T*k),Q=c.F(T*k);
eb.Qd(C.buffer,b);c.DA.ahU(b,T,k,Q,[U.LgDr.v,U.Smth.v]);eb.YM(Q,z.buffer,E,Y)}if(L=="GraP"){var b=c.F(T*k),Q=c.F(T*k);
c.Fy(C.buffer,b);c.DA.a7q(b,T,k,Q,[U.StrL.v,U.LgDr.v,["SDRD","SDHz","SDLD","SDVt"].indexOf(U.SDir.v.StrD)]);
eb.YM(Q,z.buffer,E,Y)}if(L=="Phtc"){function K(d6,iB,p,fb){c.qM.IH(d6,iB,p,fb);for(var H=0;H<P;H++)iB[H]=Math.max(0,Math.min(255,128+d6[H]-iB[H]))}var h=U.Dtl.v,x=U.Drkn.v,b=c.F(P);
c.Fy(C.buffer,b);var O=c.F(P);K(b,O,p,1);var y=c.F(P);K(b,y,p,h);for(var H=0;H<P;H++)b[H]=Math.max(0,Math.min(255,255-(O[H]-y[H])*x));
eb.YM(b,z.buffer,E,Y)}if(L=="Spt"||L=="SprS"){var v,i=1,D=1;v={aU:Math.floor(T/D),fg:Math.floor(k/D)};
v.map=new Float32Array(v.aU*v.fg*2);var I=new c.Q.il(U.FlRs.v),m=new Float32Array(8192),f=U.SprR.v,A=f<20?.018*f:.36+(f-20)*.128;
if(L=="SprS"){A=.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][f]}for(var H=0;
H<8192;H++)m[H]=(-1+2*I.get())*A*70;for(var d=0;d<k;d++)for(var g=0;g<T;g++){var X=d*T+g<<1;v.map[X]=m[X%7919];
v.map[X+1]=m[(X+1)%7919]}var n=v.map.slice(0),R=L=="Spt"?U.Smth.v-1:1;if(L=="Spt"&&R!=0){eb.aY(v.map,n,T,k,R);
eb.a4(n,v.map,T,k,R)}if(L=="SprS"){var l=U.StrL.v>>>1,w=l==0?2:1;eb.aY(v.map,n,T,k,w);eb.a4(n,v.map,T,k,w);
if(l!=0){var V=eb.$p.indexOf(U.SDir.v.StrD),F=[1,1,1,0][V],Z=[-1,0,1,1][V],M=2*l+1,a=1/M;for(var d=0;
d<k;d++)for(var g=0;g<T;g++){var X=d*T+g<<1,e=0,N=0;for(var H=0;H<M;H++){var J=Math.max(0,Math.min(T-1,g-(l+H)*F)),s=Math.max(0,Math.min(k-1,d-(l+H)*Z)),f5=s*T+J<<1;
e+=v.map[f5];N+=v.map[f5+1]}n[X]=e*a;n[X+1]=N*a}v.map=n}}c.Ki.wR(C.buffer,z.buffer,T,k,null,v.map,v.aU,v.fg,i)}if(L=="BsRl"||L=="PlsW"||L=="Chrm"){var dx=Date.now(),fq=c.F(P),i9=fq.slice(0);
c.Fy(C.buffer,fq);var h=U.Dtl.v,e8=U.Smth.v;if(h!=15){c.qM.Oq(fq,i9,p,Math.round((15-h)*.5));c.hL(i9,fq)}var S=1.4/T,fs=1.4/k,bz=new Float32Array(P),g6=new Float32Array(P),al=new Float32Array(z.buffer.buffer);
for(var d=0;d<k;d++)for(var g=0;g<T;g++){var H=d*T+g,F=g==T-1?fq[H]-fq[H-1]:fq[H+1]-fq[H],Z=d==k-1?fq[H]-fq[H-T]:fq[H+T]-fq[H],bj=g*S-.7,bE=d*fs-.7;
bz[H]=F==0?bj:F*.4;g6[H]=Z==0?bE:Z*.4}if(L=="BsRl"){var eN=(2+eb.Dm.indexOf(U.LghD.v.LghD))*Math.PI*.25,e=Math.cos(eN);
if(Math.abs(e)<.1)e=0;e=Math.sign(e);var N=Math.sin(eN);if(Math.abs(N)<.1)N=0;N=Math.sign(N);var dk=1/(e*e+N*N);
for(var d=0;d<k;d++)for(var g=0;g<T;g++){var H=d*T+g,hj=Math.max(-1,Math.min(1,e*bz[H])),iN=Math.max(-1,Math.min(1,N*g6[H]));
i9[H]=128+127*(hj+iN)*dk}if(e8!=1){c.qM.Oq(i9,fq,p,Math.round((e8-1)*.5));c.hL(fq,i9)}eb.YM(i9,z.buffer,E,Y)}else{if(L=="Chrm")e8=5+e8;
if(e8>1)eb.mK(bz,g6,al,p,e8-1);if(L=="PlsW"){var dK=new Uint8Array(bz.buffer);for(var H=0;H<P;H++){var ch=H<<2,F=bz[H],Z=g6[H],hP=1/(Math.sqrt(1+F*F)*Math.sqrt(1+Z*Z)),d2=hP*hP,hr=d2*d2,fv=~~(255*(hr*hr*d2));
dK[ch+0]=fv;dK[ch+1]=fv;dK[ch+2]=fv;dK[ch+3]=fv}z.buffer.set(C.buffer);c.Q.Kj("norm",dK,p,z.buffer,p,p,U.HghS.v/20)}else if(L=="Chrm"){var f3=z.buffer,dp=T>>>1,go=k>>>1;
for(var H=0;H<P;H++){var ch=H<<2,F=bz[H],Z=g6[H],d6={x:1,y:0,jF:F};ca.ds(d6);var iB={x:0,y:1,jF:Z};ca.ds(iB);
var hS=ca.$z(d6,iB),eF=1/hS.jF,bQ=~~Math.max(0,Math.min(T-1,dp-hS.x*eF*dp)),iP=~~Math.max(0,Math.min(k-1,go-hS.y*eF*go)),fv=fq[iP*T+bQ];
f3[ch+0]=fv;f3[ch+1]=fv;f3[ch+2]=fv}}}}if(L=="Gls"||L=="OcnR"||L=="Txtz"){var d8=L=="OcnR"?2:eb.Q7.indexOf(U.TxtT.v.TxtT),M=24,gp=0,aS,iX;
if(d8==6)d8=2;var a6="blocks canvas frosted tinylens brick burlap".split(" ")[d8];if(eb.hm==null)eb.hm=[];
if(eb.hm[d8]==null){var am,fj;if(d8==2){fj=new _(0,0,128,128);var dX=hi.Q4("AdNs");dX.Mnch.v=!0;dX.Dstr.v.Dstr="Gsn";
dX.Nose.v.val=50;var am=c.F(fj.X()*4),gc=am.slice(0);new Uint32Array(gc.buffer).fill(4286611584);hi.QE("AdNs",{buffer:gc,rect:fj},dX,0,0,{buffer:am,rect:fj})}else{var dz=fZ.get("tex/"+a6,!0)[0];
fj=dz.bl;am=new Uint8Array(dz.data)}var fq=c.F(fj.X());c.wH(am,fq,0);eb.hm[d8]=[fj,fq]}var fj=eb.hm[d8][0],fq=eb.hm[d8][1],gE=fj.d,cQ=fj.v;
function fi(aN,hD,ct){return~~(dB*(aN+hD)+8192)&127}var bz=new Float32Array(P),g6=new Float32Array(P),al=new Float32Array(z.buffer.buffer),dB=L=="OcnR"?1/(1+(U.RplS.v-1)*.1):100/U.Scln.v;
if(d8==3)dB*=32/22.2;var dx=Date.now(),bp=dB,S=1.4/T,fs=1.4/k;if(L=="Txtz"){bp*=1/255;M=256}for(var d=0;
d<k;d++){var ai=fi(d,p.y,cQ),s=ai+1&127;for(var g=0;g<T;g++){var H=d*T+g,hu=fi(g,p.x,gE),J=hu+1&127,bP=0,hw=0,gQ=0;
if(L=="Txtz"){bP=c.I.uw(dB*g,dB*d,fq,128,128);hw=c.I.uw(dB*g,dB*d+1,fq,128,128);gQ=c.I.uw(dB*g+1,dB*d,fq,128,128)}else{bP=fq[ai*gE+hu];
hw=fq[s*gE+hu];gQ=fq[ai*gE+J]}bz[H]=Math.max(-M,Math.min((gQ-bP)*bp,M));g6[H]=Math.max(-M,Math.min((hw-bP)*bp,M))}}if(L=="Txtz")eb.DE(bz,g6,al,p,6);
else eb.mK(bz,g6,al,p,L=="Txtz"?1:L=="OcnR"?3.5/dB:U.Smth.v);if(L=="Txtz")gp=U.InvT.v?-1:1;else if(L=="Gls"){gp=[1,.4,.5,.5][d8]*(Math.exp(U.Dstr.v*.155)-1);
if(U.InvT.v)gp=-gp}else{gp=.5*(Math.exp(U.RplM.v*.155)-1)}var f3=z.buffer;if(L=="Txtz"){var eN=(2+eb.Dm.indexOf(U.LghD.v.LghD))*Math.PI*.25,e=Math.cos(eN),N=Math.sin(eN);
aS={x:e,y:N,jF:0};ca.ds(aS);iX=U.Rlf.v;iX=iX/4+Math.max(0,(iX-35)*2)}function dW(d6,iB,i5){var d7=c.Q.overF(iB,d6,1),aN=(1-i5)*d6+i5*(i5*iB+(1-i5)*d7);
return aN*255}for(var d=0;d<k;d++)for(var g=0;g<T;g++){var H=d*T+g,ch=H<<2,F=bz[H],Z=g6[H],d6={x:1,y:0,jF:F};
ca.ds(d6);var iB={x:0,y:1,jF:Z};ca.ds(iB);var hS=ca.$z(d6,iB);if(L=="Txtz"){var i7=ca.amf(hS,aS)*gp,i5=1,fv=1;
if(i7<0){fv=0;i7=-i7}i5=Math.min(1,i7*iX);f3[ch+0]=~~dW(C.buffer[ch]*(1/255),fv,i5);f3[ch+1]=~~dW(C.buffer[ch+1]*(1/255),fv,i5);
f3[ch+2]=~~dW(C.buffer[ch+2]*(1/255),fv,i5)}else{var eF=gp/hS.jF,bQ=~~Math.max(0,Math.min(T-1,g-hS.x*eF)),iP=~~Math.max(0,Math.min(k-1,d-hS.y*eF)),fM=iP*T+bQ<<2;
f3[ch+0]=C.buffer[fM];f3[ch+1]=C.buffer[fM+1];f3[ch+2]=C.buffer[fM+2]}}}if(L=="PntD"){var ei=U.Shrp.v*.4,bu=U.BrsT.v.BrsT,hG={BrSm:[.75],BrsL:[.85],BrDR:[.68],BrsW:[.75],BrbW:[.78],BrSp:[.62]}[bu],fb=Math.round(U.Sz.v*.5);
c.nW._0=hG[0];var iJ=c.nW.Rb;hi.Xp(C.buffer,z.buffer,T,k,fb,iJ,[],0);var h0=[-.7,-1,-.7,-1,10,-1,-.7,-1,-.7];
h0=c.N1.hx(h0);var hM=z.buffer.slice(0);c.N1.jg(hM,z.buffer,T,k,h0,0);for(var H=0;H<C.buffer.length;
H++){var fC=z.buffer[H]-hM[H];z.buffer[H]=Math.max(0,Math.min(255,hM[H]+ei*fC))}}if(L=="GlwE"){var cw=z.buffer.slice(0);
c.nW._0=.5;var iJ=c.nW.Rb;hi.Xp(C.buffer,cw,T,k,U.Smth.v>>>1,iJ,[],0);c.N1.St(cw,z.buffer,T,k);c.hL(z.buffer,cw);
c.G$(cw);c.n0(cw,4278190080,16777215);hi.Xp(cw,z.buffer,T,k,U.EdgW.v>>>1,c.nW.s_,[],0);var aD=U.EdgB.v/10;
for(var H=0;H<cw.length;H++){if((H&3)==3)continue;var d7=z.buffer[H];z.buffer[H]=Math.max(0,Math.min(255,d7*aD))}}if(L=="StnG"){c.lr.a1P(C.buffer,T,k,z.buffer,U.ClSz.v,[Math.round(E.h),Math.round(E.P),Math.round(E.O)],U.BrdT.v)}if(L=="HlfS"){var az=U.HlSz.v,gb=az*2+1,hl=U.Cntr.v,aZ=eb.Uc.indexOf(U.ScrT.v.ScrT),P=T*k,dq=P*4,fo=c.F(P),gF=C.buffer,gh=0,aM=0;
for(var H=0;H<dq;H+=4)fo[H>>>2]=~~(.5+(gF[H]+gF[H+1]+gF[H+2])*(1/3));var hk=fo.slice(0);c.qM.m9(hk,fo,p,az);
var iU=Math.PI/gb,iD=new Float64Array(T),e=new Float64Array(T),fJ=new Float64Array(2*T);for(var g=0;
g<T;g++){var hu=(g-(T>>>1))*iU;iD[g]=hu*hu;e[g]=Math.cos(hu);var F=g<<1;fJ[F]=Math.sin(F*(1/4.5));fJ[F+1]=Math.sin((F+1)*(1/4.5))}for(var d=0;
d<k;d++){var ai=(d-(k>>>1))*iU,N=Math.cos(ai),hE=ai*ai;for(var g=0;g<T;g++){var fv=N;if(aZ==0){var ep=.5+Math.sqrt(iD[g]+hE)*4.5;
fv=fJ[~~ep]}else if(aZ==1){fv=e[g]*N}var H=d*T+g,h4=fo[H]*(.75+.25*fv),i5=gF[(H<<2)+3]*(1/255),aE=Math.max(0,Math.min(255,~~h4));
gh+=aE*i5,aM+=i5;fo[H]=aE}}gh/=aM;var bK=128+1.26*(gh-128),aD=.08+.25*Math.abs((128-gh)/128),aF=1+aD*hl;
for(var H=0;H<P;H++){var h4=bK+(fo[H]-bK)*aF;fo[H]=Math.max(0,Math.min(255,~~h4))}if(hl>46)c.round(fo);
eb.YM(fo,z.buffer,E,Y)}for(var H=0;H<C.buffer.length;H+=4)z.buffer[H+3]=C.buffer[H+3]};eb.YM=function(L,C,U,E){var Y=L.length,z=U.h,r=U.P,p=U.O,T=E.h,k=E.P,P=E.O;
for(var H=0;H<Y;H++){var b=L[H]*(1/255),Q=1-b,K=H<<2;C[K]=~~(z*Q+T*b);C[K+1]=~~(r*Q+k*b);C[K+2]=~~(p*Q+P*b)}};
eb.mK=function(L,C,U,E,Y){if(Y<=1){Y=Math.round(Y);eb.DE(L,C,U,E,[1,16,4][Y]);return}var z=Y*.42;if(L){c.qM.U_(L,U,E,z,3);
L.set(U)}if(C){c.qM.U_(C,U,E,z,3);C.set(U)}};eb.DE=function(L,C,U,E,Y){var z=c.N1.hx([1,2,1,2,Y,2,1,2,1]);
if(L){U.set(L);c.N1.QR(L,U,E.d,E.v,z);L.set(U)}if(C){U.set(C);c.N1.QR(C,U,E.d,E.v,z);C.set(U)}};eb.Op=function(L){if(L==null)return new hZ(0,0);
var C=0,U=L.GEfs?L.GEfs.v:[{v:L}];for(var H=0;H<U.length;H++){var E=U[H].v,z=1e4;if(E.GELv&&!E.GELv.v)continue;
var Y=E.GEfk.v.GEft;if(Y=="GlwE"||Y=="Phtc"||Y=="BsRl"||Y=="PlsW"||Y=="Chrm"||Y=="Gls"||Y=="OcnR")z=0;
C=Math.max(C,z)}return new hZ(C,C)};eb.ZU=function(L){var C=[0,0,0,0,0,0,0,0,0,0,0,0,0],U=[0,.6,.7,.8,1,1.2,1.4,1.6,1.8,2,2.2,2.6,3,4,5][L];
for(var H=0;H<13;H++){var E=H-6;C[H]=1/(U*Math.sqrt(2*Math.PI))*Math.exp(-.5*(E/U)*(E/U))}return C};
eb.aY=function(L,C,U,E,Y){var z=eb.ZU(Y),r=6,p=13;for(var T=0;T<E;T++)for(var k=0;k<U;k++){var P=T*U+k<<1,b=0,Q=0;
for(var H=0;H<p;H++){var K=k+H-r,h=K<0?0:K>=U?U-1:K,x=(T*U+h)*2,O=z[H];b+=O*L[x];Q+=O*L[x+1]}C[P]=b;
C[P+1]=Q}};eb.a4=function(L,C,U,E,Y){var z=eb.ZU(Y),r=6,p=13;for(var T=0;T<E;T++)for(var k=0;k<U;k++){var P=T*U+k<<1,b=0,Q=0;
for(var H=0;H<p;H++){var K=T+H-r,h=K<0?0:K>=E?E-1:K,x=(h*U+k)*2,O=z[H];b+=O*L[x];Q+=O*L[x+1]}C[P]=b;
C[P+1]=Q}};function gz(){}gz.RY=[2,5,5,7,4,4];gz.w0="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(",");
gz.lV="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(" ");
gz.w4=[[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]];
gz.Ul=["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"];
gz.Sh=function(L){if(L=="passThrough")return"pass";return gz.w0[gz.lV.indexOf(L)]};gz.Wx=function(L){if(L=="pass")return"passThrough";
return gz.lV[gz.w0.indexOf(L)]};gz.getName=function(L){return gz.w4[gz.w0.indexOf(L)]};function o(){this.rect=null;
this.B4="norm";this.opacity=255;this.l$=!1;this.bP=0;this.xi=0;this.E7=[];for(var H=0;H<10;H++)this.E7.push(0,0,255,255);
this.name=null;this.add={};this.buffer=null;this.Pl=null;this.OG=null;this.r=null;this.Os=null;this.ad0=30;
this.mN=o.qB();this.a2J=o.qB();this.a0F=o.qB();this.ajL=o.qB();this.yQ=0;this.hI=!1;this.kK=null;this.V=new o.R2}o.qB=function(){var L=B.w("canvas");
L.width=L.height=30;return L.getContext("2d")};o.R2=function(){this.cm=!0;this.Of=!0;this.Rr=c.F(0);
this.ad8=c.F(0);this.nZ=null;this.c5={};this.a0y=null;this.S7=null;this.VW=null;this.eh=null;this.VX=null;
this.yi=null;this.Mi=null;this.z8=null;this.Yq=null;this.p0=null;this.x5=null;this.jD=null;this.Wt=!1};
o.R2.prototype.n1=function(){this.cm=!1;this.Of=!1;this.nZ=null;this.Wt=t.i8};o.R2.prototype.a6D=function(){ca.Hu(this.c5);
this.Rr=c.F(0);this.ad8=c.F(0);if(this.eh)this.eh.delete();if(this.VX)this.VX.delete();this.eh=null;
this.VX=null;var L=[this.yi,this.Mi,this.z8,this.Yq,this.p0,this.x5];for(var H=0;H<6;H++)if(L[H]!=null&&L[H]instanceof t.Ry)L[H].delete();
this.yi=null;this.Mi=null;this.z8=null;this.Yq=null;this.p0=null;this.x5=null};o.prototype.s=function(L){if(L==null)L=this.rect.clone();
if(this.V.nZ==null)this.V.nZ=L;else this.V.nZ=this.V.nZ.EU(L)};o.prototype.Jc=function(){return this.add.lsct==fI.Qr||this.add.lsct==fI.z7};
o.prototype.G_=function(){var L=this.add;return L.SoCo!=null||L.GdFl!=null||L.PtFl!=null};o.prototype.yC=function(){var L=this.add.lmfx;
if(L==null)return;var C=["GrFl","patternFill"];for(var H=0;H<C.length;H++){var U=gM.cp[gM.order.indexOf(C[H])],E=L[U].v;
if(E.length==0)continue;for(var Y=0;Y<E.length;Y++){var z=E[Y].v;if(z.enab.v&&(z.Algn==null||!z.Algn.v))this.V.Of=!0}}};
o.prototype.Rw=function(){var L=this.r;if(this.G_())L=this.xV();if(!t.i8)return L.Mh();if(this.V.VX==null||this.V.cm||t.i8!=this.V.Wt){if(this.V.VX)this.V.VX.delete();
this.V.VX=new t.ba(L.dm().d,L.dm().v);this.V.VX.set(L.Mh())}return this.V.VX};o.prototype.Te=function(L){var C=this.rect,U=this.buffer;
if(!t.i8){var E=this.v$(L,U,C);if(E){U=E.eB;C=E.rect}return U}if(this.V.nZ!=null||t.i8!=this.V.Wt){var E=this.v$(L,U,C);
if(E){U=E.eB;C=E.rect}var Y=C;if(t.i8!=this.V.Wt||this.V.eh==null||this.V.eh.d!=Y.d||this.V.eh.v!=Y.v){if(this.V.eh)this.V.eh.delete();
this.V.eh=new t.Ry(Y.d,Y.v);this.V.eh.set(U)}else{var z=this.V.nZ.clone();z.offset(-C.x,-C.y);this.V.eh.set(U,z)}}return this.V.eh};
o.prototype.$T=function(){var L=this.r;if(this.G_())L=this.xV();return L!=null&&L.isEnabled&&(L.Lt()==0||L.Lt()!=0&&!L.rect.ue())};
o.prototype.v$=function(L,C,U){if(this.s7()){var E=this.iC(L);if(E.r&&E.r.isEnabled&&(!E.r.rect.ue()||E.r.color==0)){var Y=this.add.SoLd.filterFX.v;
E.r.Ve=Y.filterMaskDensity?Y.filterMaskDensity.v:255;E.r.hY=Y.filterMaskFeather?Y.filterMaskFeather.v:0;
var z=E.buffer,r=E.r.X8(U);c.G$(r);C=C.slice(0);c.Q.f3(z,E.rect,C,U,r,U,0,U,1);return{eB:C,rect:U}}}};
o.prototype.a4_=function(){var L={wf:!1,Mk:!1,D7:0,pr:0};if(this.add.vmsk&&this.add.vmsk.isEnabled)L.Mk=!0;
if(this.xV()&&this.xV().isEnabled)L.wf=!0;if(L.wf&&L.Mk){L.D7=this.xV().rect.x-this.add.vmsk.xV().rect.x;
L.pr=this.xV().rect.y-this.add.vmsk.xV().rect.y}return L};o.prototype.cr=function(L){if(this.add.lsct==fI.ya)return;
var C=this,U=this.xV()!=null&&this.xV().st,E=this.add.vmsk!=null&&this.add.vmsk.st,Y=this.a4_(),z=JSON.stringify(Y)!=this.V.a0y||Y.wf&&U||Y.Mk&&E;
if(z){if(Y.Mk){var r=this.add.vmsk.xV();if(Y.wf){this.r=this.xV().O1(r);this.V.S7=new hZ(this.r.rect.x-this.xV().rect.x,this.r.rect.y-this.xV().rect.y)}else this.r=r}if(this.r)this.V.cm=!0;
if(this.r)this.V.VW=new hZ(this.rect.x-this.r.rect.x,this.rect.y-this.r.rect.y);if(Y.wf)this.xV().st=!1;
if(Y.Mk)this.add.vmsk.st=!1;this.s()}else{if(Y.wf&&Y.Mk){this.r.rect.x=this.xV().rect.x+this.V.S7.x;
this.r.rect.y=this.xV().rect.y+this.V.S7.y}}if(C.G_()){this.az(L)}if(C.bB()){var p;if(this.r)p=new hZ(this.rect.x-this.r.rect.x,this.rect.y-this.r.rect.y);
if(this.r&&this.r.isEnabled&&(this.V.VW==null||!p.cg(this.V.VW))){this.V.VW=p;this.s();this.V.cm=!0}}if(eh.get(C.add)!=null)this.V.cm=!0;
this.V.a0y=JSON.stringify(Y)};o.prototype.az=function(L){var C=this,U=C.add.vstk,E,Y=C.add.vmsk?this.add.vmsk.xV():null,p=!0;
if(Y&&Y.isEnabled&&Y.Lt()==0)E=Y.dm().clone();else E=new _(0,0,L.d,L.v);var z=C.xV();if(z&&z.isEnabled&&z.Lt()==0)E=E.eR(C.r.dm());
var r=Y&&U;if(U&&(!U.strokeEnabled.v||U.strokeStyleLineWidth.v.val==0))r=!1;if(U&&!U.fillEnabled.v&&r)p=!1;
var T=c.F(E.X()*4);if(p){if(C.add.SoCo)ca.Bm(T,C.add.SoCo.Clr.v);if(C.add.GdFl)ca.WN(C.add.GdFl,T,E,L,null,Y&&Y.color==0?Y.rect:null);
if(C.add.PtFl)ca.k3(C.add.PtFl,T,E,L,C.add.fxrp)}if(Y){var k=Y.Ve;if(r)Y.Ve=255;var P=c.F(E.X());if(Y.Lt()!=0)P.fill(Math.round(Y.Lt()));
if(Y&&Y.isEnabled){var b=Y.dm(),Q=Y.Mh();if(b.cg(E))c.hL(Q,P);else c.zM(Q,b,P,E)}if(C.add.SoCo&&p){c.Wn(P,T,3)}else c.Ow(P,E,T,E);
if(r)Y.Ve=k}C.buffer=T;C.rect=E;if(r){var K=gM.H0.jr.indexOf(U.strokeStyleLineAlignment.v.strokeStyleLineAlignment),h=U.strokeStyleContent.v,x=gM.H0.g0.indexOf(h.classID),O=this.add.vmsk.xV(U);
if(C.rect.cg(new _(0,0,L.d,L.v)))C.rect=C.rect;else if(K!=0){var y=C.rect.EU(O.dm()),v=c.F(y.X()*4);
c.La(C.buffer,C.rect,v,y);C.buffer=v;C.rect=y}var k=O.Ve;O.Ve=255;var i=O.X8(C.rect);O.Ve=k;if(O.color==255)c.G$(i);
var D=c.F(C.rect.X()*4);if(x==0)ca.Bm(D,h.Clr.v);if(x==1)ca.WN(h,D,C.rect,L,null,Y.color==0?Y.rect:null);
if(x==2)ca.k3(h,D,C.rect,L,C.add.fxrp);var I=U.strokeStyleOpacity.v.val/100;if(I!=1)c.yG(i,I);c.Wn(i,D,3);
if(O.color==255)K=2-K;if(K==0){c.Q.Kj("norm",D,C.rect,C.buffer,C.rect,C.rect,1);c.Ow(P,C.rect,C.buffer,C.rect)}if(K==1){c.Q.Kj("norm",D,C.rect,C.buffer,C.rect,C.rect,1)}if(K==2){c.G$(P);
c.Q.f3(D,C.rect,C.buffer,C.rect,P,E,255,C.rect,1,!1);c.G$(P)}if(O.Ve!=255){var m=D.slice(0);c.n0(m,4278190080,16777215);
c.Q.Kj("norm",m,C.rect,C.buffer,C.rect,C.rect,1-O.Ve/255)}k=Y.Ve;Y.Ve=255;this.ad8=Y.X8(C.rect);Y.Ve=k}this.s()};
o.prototype.RM=function(L,C){var U=this,E=U.add.SoLd.Idnt.v,Y=U.add.SoLd,z=c.a.mE(W.o.pp(Y.nonAffineTransform)),r=L.X7(E,Y.Crop?Y.Crop.v:null,[z.d,z.v],Y.Impr.v.classID);
if(r==null)return;var p=r.Ne;Y.Sz.v.Wdth.v=p[1].d;Y.Sz.v.Hght.v=p[1].v;var T=Y.warp.v,k=W.o.pp(Y.nonAffineTransform),P=c.I.O4(k,p[1]);
if(T&&!c.h2.D3(T)){var z=c.a.mE(c.h2.b4(T)),b=z.x,Q=z.y,K=1/z.d,h=1/z.v;P=c.I.O4(k);P=c.I.O1(P,[K,0,-b*K,0,h,-Q*h,0,0])}var x=W.o.WC(p,C?0:1,P,T,null,null,null,C);
if(x==null){U.buffer=c.F();U.rect=new _}else if(U.s7()){var O=U.iC(L);O.buffer=x.buffer;O.rect=x.rect.clone();
this.vV(L,C)}else{U.buffer=x.buffer;U.rect=x.rect}U.cr(L);U.s();L.s()};o.prototype.vV=function(L,C){if(C==null)C=!1;
var U=this.iC(L),E=this.add.SoLd.filterFX.v,Y=hi.a7b(E),z=new _(0,0,L.d,L.v),r=U.rect.EU(z),p=U.rect.clone();
p.WW(Y.x,Y.y);var T={buffer:null,rect:r.eR(p)};T.buffer=c.F(T.rect.X()*4);c.La(U.buffer,U.rect,T.buffer,T.rect);
if(E.enab.v&&C==!1){var k=E.filterFXList.v;for(var H=0;H<k.length;H++){var P=k[H].v;if(P.enab.v==!1)continue;
var b=P.blendOptions.v,Q=gz.Sh(b.Md.v.BlnM),K=b.Opct.v.val/100,h=c.W.Lt(P.FrgC.v),x=c.W.Lt(P.BckC.v),O=hi.E3(P),y={buffer:c.F(T.buffer.length),rect:T.rect.clone()},v=P.Fltr?P.Fltr.v:null;
if(eh.vD[O]!=null){var i=eh.vD[O],D=eh.dq(i,v);if(D)eh.QE(D,T.buffer,y.buffer,T.rect)}else hi.QE(O,T,v,h,x,y,[L.add.lnk2?L.add.lnk2:[],this.xV(),L.vI]);
if(Q=="norm"&&K==1)T=y;else if(Q=="norm"){c.Q.f3(y.buffer,y.rect,T.buffer,T.rect,null,null,null,T.rect,K)}else{c.Q.Kj(Q,y.buffer,y.rect,T.buffer,T.rect,T.rect,K)}}}this.rect=T.rect;
this.buffer=T.buffer;this.Jx();this.s();L.s()};o.prototype.ME=function(L,C,U){this.kK=this.DR(L,C,U)};
o.prototype.uB=function(L,C){var U=this.DR(L,C,!0);if(U==null)return null;var E={w6:U.yQ,JL:U.zK,rect:U.dE};
if(E.w6==1||E.w6==3){var Y=E.rect,z=c.F(Y.d*Y.v*4);c.Wn(E.JL,z,0);c.Wn(E.JL,z,1);c.Wn(E.JL,z,2);c.iN(L.t.channel,L.t.rect,z,Y);
E.JL=z}return E};o.prototype.DR=function(L,C,U){var E,Y,z,r,p,T,k;if(this.yQ<=0){var P=c.F(this.rect.X());
c.wH(this.buffer,P,3);E=c.KK.dJ(C,{channel:P,rect:this.rect},"intersection");if(E==null)return null;
var b=c.lJ(E.channel,E.rect);r=E.rect.clone();p=this.rect.clone();Y=c.F(r.X()*4);c.La(this.buffer,p,Y,r);
c.Wn(E.channel,Y,3);z=this.buffer.slice(0);if(!U){var Q=C.channel.slice(0);c.G$(Q);c.Ow(Q,C.rect,z,p)}T=this.buffer.slice(0);
k=this.rect.clone()}if(this.yQ==1||this.yQ==3){var K=this.yQ==1?this.xV():this.iC(L).r;r=C.rect.clone();
p=K.rect.clone();Y=K.b9(r);var z=K.channel.slice(0);if(!U)c.Q.oW(K.color==255?c.PH(r.X()):c.Zx(r.X()),r,z,p,C.channel,r,1);
T=K.channel.slice(0);k=K.rect.clone()}return{yQ:this.yQ,zK:Y,dE:r,Ke:z,uL:p,WM:T,xJ:k}};o.prototype.pK=function(L,C){var U=this.kK;
if(U.yQ==0){this.rect=U.xJ;this.buffer=U.WM;this.s()}if(U.yQ==1||U.yQ==3){var E=U.yQ==1?this.xV():this.iC(L).r;
E.channel=U.WM;E.rect=U.xJ;if(this.yQ==1){E.st=!0;this.cr(L)}if(this.yQ==3)this.s()}this.kK=C};o.prototype.J6=function(L,C){if(this.yQ<=0&&C.rect.cg(this.rect)){var U=c.F(this.rect.X());
c.wH(this.buffer,U,3);if(c.cg(L.t.channel,U)){var E=this.rect,Y=this.buffer;this.kK={yQ:this.yQ,zK:Y.slice(0),dE:E.clone(),Ke:c.F(0),uL:new _,WM:c.F(0),xJ:new _};
return!0}}var z=this.kK;if(z==null)return!1;if(z.yQ!=this.yQ)return!1;if(!C.rect.cg(z.dE))return!1;var r=z.uL.EU(z.dE);
if(z.yQ<=0){if(!r.cg(this.rect))return!1;var p=c.F(z.zK.length>>2);c.wH(z.zK,p,3);if(!c.cg(C.channel,p))return!1;
var T=c.F(r.d*r.v*4);c.La(z.Ke,z.uL,T,r);c.Q.Kj("norm",z.zK,z.dE,T,r,r,1);return c.cg(T,this.buffer)}if(z.yQ==1||z.yQ==3){var k=z.yQ==1?this.xV():this.iC(L).r;
if(!r.cg(k.rect))return!1;var P=c.F(r.X());P.fill(k.color);c.zM(z.Ke,z.uL,P,r);c.Q.oW(z.zK,z.dE,P,r,C.channel,r,1);
return c.cg(P,k.channel)}};o.prototype.TA=function(L,C,U,E){var Y=this.kK;Y.dE.offset(C,U);var z=Y.uL.EU(Y.dE);
if(Y.yQ<=0){var r=c.F(z.X()*4);c.La(Y.Ke,Y.uL,r,z);c.Q.Kj("norm",Y.zK,Y.dE,r,z,z,1);this.buffer=r;this.rect=z;
this.s()}else{var p=this.yQ==1?this.xV():this.iC(L).r,T=c.F(z.X());T.fill(p.color);c.zM(Y.Ke,Y.uL,T,z);
c.Q.oW(Y.zK,Y.dE,T,z,E.channel,z,1);p.channel=T;p.rect=z.clone();if(this.yQ==1){p.st=!0;this.cr(L)}if(this.yQ==3)this.s()}};
o.prototype.mn=function(){var L=[-1,0,1,2];if(this.r)L.push(-2);if(this.Os)L.push(-3);return L};o.prototype.getName=function(){return this.add.luni?this.add.luni:this.name};
o.prototype.I_=function(u){this.add.luni=this.name=u};o.prototype.n7=function(L){var C=this.add.lnsr,U=this.add.TySh;
if(C=="rend"&&U)this.I_(b5.xY(U.Se).replace(/(?:\r\n|\r|\n)/g," ").slice(0,32))};o.prototype.rK=function(){return(this.bP&1<<1)==0};
o.prototype.bB=function(){return(this.bP&1<<4)==0};o.prototype.QI=function(){return(this.bP&1<<5)!=0};
o.prototype.abt=function(){var L=this;if(L.add.lnsr!="bgnd"){L.add.lnsr="bgnd";L.I_("Background");L.add.lspf=1<<2}};
o.prototype.aam=function(){var L=this;if(L.add.lnsr=="bgnd"){delete L.add.lnsr;L.I_("Layer 0");L.add.lspf=0}};
o.prototype.zm=function(L){var C=this.add.lspf;return C==null?!1:(C>>L&1)!=0};o.prototype.Qs=function(L){if(L&&!this.rK())this.bP-=2;
if(!L&&this.rK())this.bP+=2};o.prototype.ls=function(){var L=this.add.lmfx;if(L==null)return!1;for(var C in L){if(C=="masterFXSwitch")continue;
if(C=="Scl")continue;if(C=="classID")continue;if(L[C].v.length>0)return!0}return!1};o.prototype.s7=function(){return this.add.SoLd!=null&&this.add.SoLd.filterFX!=null};
o.prototype.dX=function(){var L=this.add.lmfx;if(L==null)return!1;if(!L.masterFXSwitch.v)return!1;for(var C in L){if(C=="masterFXSwitch")continue;
if(C=="Scl")continue;if(C=="classID")continue;var U=L[C].v;for(var H=0;H<U.length;H++)if(U[H].v.enab.v)return!0}return!1};
o.prototype.DZ=function(L,C,U,E){var Y=new _,z=this.Vc(L,U,E);if(z.indexOf(0)!=-1)Y=Y.EU(this.rect);
if(z.indexOf(1)!=-1)Y=Y.EU(this.xV().dm());if(z.indexOf(2)!=-1){var r=this.add.vmsk,p;if(C){if(r.f8.length>1){var T=c.Y.GY(r.n,null,r.f8);
p=c.a.mE(T)}else p=c.Y.JK(r.n,r.C.length!=0?r.C:null)}else p=c.Y.JK(r.n);Y=Y.EU(p)}if(z.indexOf(3)!=-1)Y=Y.EU(this.iC(L).r.dm());
if(z.length==0&&this.G_())Y=new _(0,0,L.d,L.v);return Y};o.prototype.wZ=function(){var L=this.add.artb,C=L.artboardBackgroundType.v,U=0;
if(C==1)U=4294967295;else if(C==2)U=4278190080;else if(C==3)U=0;else if(C==4){U=L.Clr.v;U=255<<24|U.Bl.v<<16|U.Grn.v<<8|U.Rd.v}else throw C;
return U};o.prototype.kg=function(){var L=this.add.artb.artboardRect.v,C=L.Btom.v,U=L.Left.v,E=L.Rght.v,top=L.Top.v;
return new _(U,top,E-U,C-top)};o.prototype.eJ=function(L){var C=o.l8(L);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=C};o.l8=function(L){var C={classID:"classFloatRect",Top:{t:"doub",v:0},Left:{t:"doub",v:0},Btom:{t:"doub",v:0},Rght:{t:"doub",v:0}};
C.Btom.v=L.y+L.v;C.Left.v=L.x;C.Rght.v=L.x+L.d;C.Top.v=L.y;return C};o.prototype.Vc=function(L,C,U){var E=[],Y=this,z=this.hI;
if(!C&&Y.hI&&U){E.push(2)}else if(Y.yQ<=0||C){if(Y.bB())if(!this.rect.ue())E.push(0);if(Y.xV()&&!Y.xV().rect.ue())if(Y.xV().zF||C)E.push(1);
if(Y.add.vmsk)if(Y.add.vmsk.zF||C)E.push(2);if(Y.s7()&&Y.iC(L).r&&!Y.iC(L).r.rect.ue())E.push(3)}else if(Y.yQ==1){E.push(1);
if(Y.xV().zF&&!Y.xV().rect.ue()){if(Y.bB())if(!this.rect.ue())E.push(0);if(Y.add.vmsk)if(Y.add.vmsk.zF)E.push(2)}}else if(Y.yQ==3&&!Y.iC(L).r.rect.ue())E.push(3);
if(Y.add.artb&&E.indexOf(0)==-1)E.push(0);E.sort();return E};o.prototype.xV=function(){var L=this;return L.Os?L.Os:L.add.vmsk&&L.add.vmsk.isEnabled?null:L.r};
o.prototype.iC=function(L){var C=this.add.SoLd.placed.v,U=L.add.FEid;if(U==null)return null;for(var H=0;
H<U.length;H++)if(U[H].id==C)return U[H];return null};o.prototype.extend=function(L){c.a9_(this,L)};
o.prototype.Ga=function(L,C,U){var E=L.clone();if(this.dX()){var Y=this.add.lmfx,z=C.root.cW(C.N.indexOf(this)),r=Y.gradientFillMulti.v,p=!1;
for(var H=0;H<r.length;H++)if(r[H].v.enab.v&&r[H].v.Algn.v)p=!0;if(p)E=E.EU(z.dm(C,!1));var T=ca.a2Z(this,C,U);
E.offset(T.x,T.y);E.d+=T.d;E.v+=T.v}return E};o.prototype.Jx=function(){if(this.bB())c.Xb(this);var L=this.xV();
if(L)L.Jx()};o.prototype.clone=function(){var L=new o;L.rect=this.rect.clone();L.buffer=this.buffer.slice(0);
L.B4=this.B4;L.opacity=this.opacity;L.l$=this.l$;L.bP=this.bP;L.name=this.name;L.E7=this.E7.slice(0);
if(this.r)L.r=this.r.clone();if(this.Os)L.Os=this.Os.clone();for(var C in this.add)L.add[C]=eo.clone(C,this.add[C]);
return L};o.prototype.yE=function(L){var C=this;if(C.add.TySh)delete C.add.TySh;if(C.add.SoLd){var U=this.v$(L,this.buffer,this.rect);
if(U){this.buffer=U.eB;this.rect=U.rect;this.s()}delete C.add.SoLd}if(C.add.SoCo||C.add.GdFl||C.add.PtFl){if(C.add.vogk)delete C.add.vogk;
if(C.add.SoCo)delete C.add.SoCo;if(C.add.GdFl)delete C.add.GdFl;if(C.add.PtFl)delete C.add.PtFl;if(C.add.vmsk){console.log(C.Os,C.r);
delete C.add.vmsk;if(C.Os==null&&C.r)delete C.r;else if(C.Os!=null&&C.r!=null){C.r=C.Os;delete C.Os}}}if(!C.Jc()&&eh.get(C.add)==null&&!this.bB())this.bP-=16};
o.prototype.LC=function(L){var C=255,U=0;if(L==2){var E=this.add.SoLd.filterFX.v;if(E.filterMaskDensity)C=E.filterMaskDensity.v;
if(E.filterMaskFeather)U=E.filterMaskFeather.v}else{var Y=L==0?this.xV():this.add.vmsk;C=Y.Ve;U=Y.hY}return{US:L,AV:C,uO:U}};
o.prototype.n_=function(L){if(L.US==2){var C=this.add.SoLd.filterFX.v;if(L.AV==255)delete C.filterMaskDensity;
else C.filterMaskDensity={t:"long",v:L.AV};if(L.uO==0)delete C.filterMaskFeather;else C.filterMaskFeather={t:"doub",v:L.uO};
this.s()}else{var U=L.US==0?this.xV():this.add.vmsk;U.Ve=L.AV;U.hY=L.uO;U.st=!0}};o.prototype.Gg=function(){var L=this,C=L.add.vmsk;
if(C==null)return;L.add.vogk=o.Gg(C.n)};o.Gg=function(L){var C=[],U=c.Y.ov(L);for(var E=0;E<U;E++)C.push(c.zf.Zx());
return C};var fI={iS:0,Qr:1,z7:2,ya:3};o.LF=function(){this.name="Mask";this.mM=!1;this.Cc={h:255,P:0,O:0};
this.hv=50;this.fD=0;this.color=255;this.zF=!0;this.isEnabled=!0;this.Yf=!1;this.Ve=255;this.hY=0;this.rect=new _;
this.channel=c.F(0);this.G4=null;this.a5Q=null;this.st=!0};o.LF.prototype.O1=function(L){if(!this.isEnabled)return L;
var C=new o.LF;C.color=Math.round(this.Lt()*L.Lt()/255);if(this.Lt()==0&&L.Lt()==0)C.rect=this.dm().eR(L.dm());
else if(L.Lt()==0)C.rect=L.dm().clone();else if(this.Lt()==0)C.rect=this.dm().clone();else C.rect=this.dm().EU(L.dm());
C.channel=this.X8(C.rect);C.Ve=255;C.hY=0;var U=L.X8(C.rect);c.a6a(U,C.rect,C.channel,C.rect);return C};
o.LF.prototype.dm=function(){if(this.hY==0)return this.rect;var L=Math.ceil(this.hY*2.2),C=this.rect.clone();
C.WW(L,L);return C};o.LF.prototype.Mh=function(){if(this.hY==0&&this.Ve==255)return this.channel;if(this.hY==0){var L=this.channel.slice(0);
c.G$(L);c.yG(L,this.Ve/255);c.G$(L);return L}var C=this.dm(),U=this.b9(C),L=c.F(C.X());c.qM.Oq(U,L,C,this.hY);
if(this.Ve!=255){c.G$(L);c.yG(L,this.Ve/255);c.G$(L)}return L};o.LF.prototype.Lt=function(){return Math.round(255-(255-this.color)*(this.Ve/255))};
o.LF.prototype.extend=function(L){c.extend(this,L,this.color)};o.LF.prototype.Jx=function(){if(this.color==255)c.G$(this.channel);
c.Jx(this);if(this.color==255)c.G$(this.channel)};o.LF.prototype.clone=function(){var L=new o.LF;L.name=this.name;
L.mM=this.mM;L.Cc=this.Cc;L.hv=this.hv;L.fD=this.fD;L.color=this.color;L.zF=this.zF;L.isEnabled=this.isEnabled;
L.Yf=this.Yf;L.Ve=this.Ve;L.hY=this.hY;L.rect=this.rect.clone();L.channel=this.channel.slice(0);return L};
o.LF.prototype.b9=function(L,C){if(C==null)C=c.F(L.X());C.fill(this.color);c.zM(this.channel,this.rect,C,L);
return C};o.LF.prototype.X8=function(L,C){var U=this.dm(),E=this.Mh();if(C==null)C=c.F(L.X());C.fill(this.Lt());
c.zM(E,U,C,L);return C};o.mR=function(){this.zF=!0;this.isEnabled=!0;this.Ve=255;this.hY=0;this.n=[{type:6},{type:8,all:0}];
this.Pw=[-3,-3];this.ks=!1;this.Os=null;this.st=!0;this.C=[];this.f8=[]};o.mR.prototype.offset=function(L,C){this.Os=this.xV();
c.Y.IL(this.n,new c0(1,0,0,1,L,C));this.Os.rect.offset(L,C)};o.mR.prototype.xV=function(L){if(!this.st&&this.Os&&L==null){this.Os.isEnabled=this.isEnabled;
return this.Os}var C=c.Y.JK(this.n),U="strokeStyleLineAlignment",E="strokeStyleLineJoinType";if(C.X()>3e4*3e4)C=new _(0,0,100,100);
if(L&&L[U].v[U]!="strokeStyleAlignInside"){var Y=1;if(L[E].v[E]=="strokeStyleMiterJoin"){var z=c.Y.alF(this.n),r=z/2,p=Math.sin(r),T=Math.cos(r);
T/=p;p=1;var Y=Math.sqrt(T*T+p*p);if(isNaN(Y)||Y<1)Y=1}Y*=L[U].v[U]=="strokeStyleAlignOutside"?1:.5;
var k=Math.ceil(L.strokeStyleLineWidth.v.val*Y);k=Math.min(k,600);C.WW(k,k)}C=c.a.TT(C);var P=new o.LF;
P.color=c.Y.M8(this.n)?0:255;P.zF=this.zF;P.isEnabled=this.isEnabled;P.Yf=!0;P.rect=C;P.Ve=this.Ve;P.hY=this.hY;
P.channel=c.F(P.rect.X());if(!C.ue())c.Y.af6(this.n,P.channel,P.rect,L);if(L==null){this.Os=P;this.st=!1}return P};
o.mR.prototype.clone=function(){var L=new o.mR;L.zF=this.zF;L.isEnabled=this.isEnabled;L.Ve=this.Ve;
L.hY=this.hY;L.n=o.mR.Xu(this.n);L.Pw=this.Pw.slice(0);L.ks=this.ks;L.C=this.C.slice(0);L.f8=this.f8.slice(0);
return L};o.mR.prototype.concat=function(L){var C=L.n.slice(2);if(C.length==0)return;C[0].ZZ=3;this.n=this.n.concat(C)};
o.mR.Xu=function(L){var C=[];for(var H=0;H<L.length;H++){var U=L[H];if(U.type>5||U.type==0||U.type==3)C.push(JSON.parse(JSON.stringify(U)));
else C.push({type:U.type,OT:U.OT.clone(),D:U.D.clone(),SC:U.SC.clone()})}return C};o.mR.abu=function(L,C,U){if(L.length!=C.length)return!1;
for(var H=2;H<L.length;H++){var E=L[H],Y=C[H];if(E.type!=Y.type)return!1;if(E.type==0||E.type==3){if(E.length!=Y.length||!U&&E.ZZ!=Y.ZZ)return!1}else if(!E.OT.cg(Y.OT)||!E.D.cg(Y.D)||!E.SC.cg(Y.SC))return!1}return!0};
o.mR.prototype.akU=function(){var L=this.n;for(var H=3;H<L.length;H++)if(L[H].type==0||L[H].type==3)L[H].ZZ=-1};
o.wQ=function(){this.type=null;this.M6=2;this.Ea=null;this.GQ="";this.L$="";this.YO="";this.open=0;this.raw=null;
this.Ne=null;this.aaM=""};o.wQ.prototype.clone=function(){var L=new o.wQ;L.type=this.type;L.M6=this.M6;
L.Ea=this.Ea;L.GQ=this.GQ;L.L$=this.L$;L.YO=this.YO;L.open=this.open;L.raw=new Uint8Array(this.raw.buffer.slice(0));
return L};o.wQ.prototype.E0=function(L,C,U){if(U==null)U="none";var E=this,Y=iL.lc(E.raw.buffer),z=Y=="svg"||Y=="pdf";
if(E.Ne){var r=C&&z&&Math.max(E.Ne[1].d,E.Ne[1].v)<Math.max(C[0],C[1]);if(!r&&U==this.aaM)return}this.aaM=U;
if(!z)L=0;if(Y==null){alert("Unsupported format: "+$.ZA(E.raw,0,4));return null}var p=iL.WS(Y);if(p.Y9){var T=new b7(name+(Y=="psd"?"":"-"+Y)+".psd"),k;
p.ER(E.raw.buffer,T,C);var P=new _(0,0,T.d,T.v);if("avrg maxx medn minn rang stdv summ vari".split(" ").indexOf(U)!=-1){var b=[];
for(var H=0;H<T.N.length;H++){var Q=T.N[H],K=Q.buffer;if(!Q.rect.cg(P)){K=c.F(P.X()*4);c.La(Q.buffer,Q.rect,K,P);
console.log("resizing")}b.push(K)}k=c.F(P.X()*4);c.stack.stack(b,k,U)}else{for(var H=0;H<T.N.length;
H++)if(T.N[H].G_())T.N[H].cr(T);T.oQ();T.s();T.nU();k=T.E0()}E.Ne=[k,P]}else if(p){var h=p.ER(E.raw.buffer)[0];
E.Ne=[new Uint8Array(h.data),h.bl]}if(E.Ne){if(L==1){var K=E.Ne[0],x=E.Ne[1],O=c.F(x.X());c.wH(K,O,3);
var y=c.lJ(O,x),v=c.F(y.X()*4);c.La(K,x,v,y);E.Ne=[v,y]}c.cf(E.Ne)}};o.ok="0";o.eZ="2";o.Sg="2.5";o.w$="3";
o.TO="4";o.bH="4.5";o.ah="4.6";o.px="5";o.f7="5.5";o.rM="6";o.P5="7";o.eq="7.5";o.Zt="8";o.NX="9";o.QT="9.3";
o._m="9.5";o.VE="9.6";o.xd="10";o.qN="11";o.Ue="12";o.LT="13";o.vZ="13.5";o.MH="13.7";o.Xl="14";o.XQ="14.5";
o.KU="15";o.CU="16";o.XR="17";o.F0="18";o.cU="19";o.Wm="19.5";o.bd="19.6";o.j_="19.7";o.uP="20";o.K0="21";
o.Lx="21.5";o.J9="22";o.mX="22.5";o.Zu="23";o.a7i="24";o.k0="25";o.TJ="26";o.v6="27";o.sg="28";o._8="29";
o.JU="30";o.VY="31";o.vY="32";o.x2="33";o.kB="34";o.oh="35";o.Br="36";o.Zd="36.5";o.fe="37";o.Ls="37.5";
o.abZ="37.6";o.lt="38";o.r$="38.5";o.$v="38.6";o._f="39";o.Qa="40";o.FQ="41";o.qJ="42";o.l6="50";o.rQ="51";
o.Ht="52";o.m1="53";o.fy="54";o.M7="54.5";o.q1="54.6";o.nG="54.7";o.Kr="54.8";o.jT="55";o.aj="56";o.iM="57";
o.QW="58";o.vw="59";function g_(){this.depth=0;this.index=-1;this.$=null;this.a6q=null;this.vB=-1;this.children=null;
this.parent=null;this.NS=null}g_.prototype.P6=function(L,C){if(this.depth!=0)L.push(this.$.getName());
if(this.children)for(var H=0;H<this.children.length;H++)this.children[H].P6(L,C);if(L.length>C.oe.length)C.oe=L.slice(0);
if(this.depth!=0)L.pop()};g_.prototype.alk=function(){var L=0;if(this.$.Jc()){for(var H=0;H<this.children.length;
H++)L+=this.children[H].alk()}else if(this.$.buffer)L+=this.$.buffer.length;return L};g_.prototype.cW=function(L){var C=this.NS[L];
return this.NS[L]};g_.prototype.Qt=function(L,C){var U=this.$;if(!U.rK()||U.zm(2)||U.zm(31))return null;
if(U.$T()){var E=U.r.rect.nN(L);if(!E&&U.r.color==0)return}if(U.Jc()){for(var H=0;H<this.children.length;
H++){var u=this.children[H];u.Qt(L,C)}}else if(U.rect.nN(L))C.push(this.index)};g_.prototype.gW=function(L,C){var U=this.$;
if(!U.rK()||U.zm(2)||U.zm(31))return null;if(U.$T()){if(U.r.rect.qh(L)){if(!c.gW(L,U.r.channel,U.r.rect))return null}else if(U.r.color==0)return null}if(U.Jc()){for(var H=this.children.length-1;
H>=0;H--){var u=this.children[H],E=u.gW(L,C);if(E&&C==null)return E}return null}else if(U.add.TySh&&U.rect.qh(L)||c.adp(L,U.buffer,U.rect)){if(C==null)return this;
else C.push(this.index)}return null};g_.prototype.a7U=function(L){var C=this.$;if(!C.rK()||C.zm(2)||C.zm(31))return null;
var U=C.add.vmsk;if(U&&U.isEnabled){var E=c.Y.gW(U.n,L).Oi;if(E!=-1)return{abp:this,a6I:E}}if(C.Jc()){for(var H=this.children.length-1;
H>=0;H--){var u=this.children[H],Y=u.a7U(L);if(Y)return Y}return null}return null};g_.prototype.Bx=function(L,C){L.push(this.index);
if(this.$.Jc()){L.push(this.vB);if(C)if(this.$.yQ==1&&this.$.xV().zF==!1)return;for(var H=0;H<this.children.length;
H++)this.children[H].Bx(L)}};g_.prototype.BU=function(L,C,U){var E=this.$,Y,z;if(E.Jc()&&E.add.artb!=null)C=E.kg();
if(C.d>C.v){Y=U;z=Math.floor(U*(C.v/C.d))}else{Y=Math.floor(U*(C.d/C.v));z=U}if(E.G_()&&E.add.vmsk==null||E.add.TySh)Y=z=Math.max(z,16);
var r=z,p=E.G_()&&E.add.vmsk;if(p){var T=E.rect.clone(),b,Q;if(T.ue())T=new _(0,0,20,20);var k=T.d,P=T.v;
if(k>P){b=U;Q=Math.floor(U*(P/k))}else{b=Math.floor(U*(k/P));Q=U}if(b*Q==0)b=Q=16;c.AF.MK(E.mN,b,Q,T,E.buffer,E.rect,!1);
c.AF.aaG(E.mN,b,Q);r=Q}else if(E.add.TySh){c.AF.a58(E.mN,r,r,E.add.TySh)}else if(E.add.SoCo){r=Math.max(16,Math.min(Y,z));
c.AF.aju(E.mN,r,r,E.add.SoCo)}else if(E.add.GdFl){c.AF.a8E(E.mN,r,r,E.add.GdFl)}else if(E.add.PtFl){c.AF.a9q(E.mN,r,r,E.add.PtFl,L)}else if(eh.get(E.add)!=null){c.AF.amJ(E.mN,r,r,E.add)}else if(E.add.SoLd){c.AF.MK(E.mN,Y,z,C,E.buffer,E.rect,!1);
c.AF.afg(E.mN,Y,z,E.add.SoLd)}else if(E.Jc()){r=16}else{if(E.bB())c.AF.MK(E.mN,Y,z,C,E.buffer,E.rect,!1);
else{c.AF.afz(E.mN,r,r)}}var K=E.xV();if(K)c.AF.ZY(E.a2J,Y,z,C,K);if(E.s7()&&E.iC(L)&&E.iC(L).r){var h=E.iC(L).r;
c.AF.ZY(E.ajL,Y,z,C,h)}if(!p&&E.add.vmsk){c.AF.ZY(E.a0F,Y,z,C,E.add.vmsk.xV(),!0)}if(E.add.vmsk||K)r=Math.max(r,z);
E.ad0=Math.max(r,16);if(E.Jc()&&E.add.lsct==fI.Qr)for(var H=0;H<this.children.length;H++)this.children[H].BU(L,C,U)};
g_.prototype.wy=function(L,C,U,E){this.depth=U;var Y=L[C];if(E==null)E=[];this.NS=E;if(Y.add.lsct==fI.ya){this.a6q=Y;
this.vB=C-1;this.children=[];var H=C+1;while(!0){var z=L[H];if(z==null)console.log(H,L.length);if(z.add.lsct==fI.Qr||z.add.lsct==fI.z7){if(Y.add.lyid==z.add.lyid)Y.add.lyid+=16777215;
this.$=z;this.index=H-1;E[this.index]=this;E[C-1]=this;break}var r=new g_;r.parent=this;H=r.wy(L,H,U+1,E);
this.children.push(r)}return H+1}else{this.$=Y;this.index=C-1;E[this.index]=this;return C+1}};g_.prototype.kT=function(L,C,U,E){var Y=this.cW(U),z=L;
while(Y.parent!=null){z=Y.$.Ga(z,C,E);Y=Y.parent}return z};g_.prototype.dm=function(L,C){var U=this.$,E=new _;
if(!U.rK())return E;var Y=U.xV();if(U.Jc())for(var H=0;H<this.children.length;H++){var z=this.children[H].dm(L,!0);
E=E.EU(z)}else if(eh.get(U.add)!=null)E=U.$T()&&U.r.color==0?U.r.dm().clone():new _(0,0,L.d,L.v);else if(U.G_()&&U.add.vmsk&&U.add.vmsk.isEnabled&&U.add.vstk){E=U.rect.clone()}else if(U.G_()&&Y&&Y.isEnabled&&Y.Lt()!=0)E=new _(0,0,L.d,L.v);
else{E=U.DZ(L,!1,!0);if(U.add.vmsk)E=c.a.TT(E)}return C?U.Ga(E,L):E};g_.prototype.pH=function(L,C,U,E,Y){var z=this.$,r=ca.WJ(z);
if(!z.rK())return;if(z.opacity==255){this.JP(L,C,U,E,Y);return}var p=L.slice(0);this.JP(p,C,U,E,Y);c.Q.f3(p,C,L,C,null,null,0,U,z.opacity/255,z.B4=="diss")};
g_.prototype.JP=function(L,C,U,E,Y){var z=this.$,r=ca.WJ(z),p=eh.get(z.add)!=null,b,h;if(z.Jc()&&z.B4=="pass"&&!z.$T()&&!(Y.length>0||r.fill!=1||z.dX())){this.fY(L,C,U,E);
return}var T=z.Jc()&&z.B4=="pass"&&(Y.length>0||r.fill!=1||z.dX()),k=z.rect,P=z.buffer;if(z.Jc()){k=this.dm(E,!1);
var Q=c.F(k.X()*4);b=c.F(k.X());this.fY(Q,k,U,E);c.wH(Q,b,3)}else if(p){k=C.clone();b=c.F(k.X());b.fill(255)}else{k=z.rect;
b=c.F(k.X());c.wH(P,b,3)}if(z.$T()){var K=z.r.X8(k);c.Iz(K,b)}if(z.dX())h=ca.eN(z.add.lmfx,z.add.fxrp,b,k,E);
if(z.dX())ca.gD(z.add.lmfx,h,k,L,C,U);if(z.Jc()){P=c.F(k.X()*4);if(z.B4=="pass")c.La(L,C,P,k);if(T){var Q=c.F(k.X()*4);
this.fY(Q,k,U,E);var x=c.F(k.X());c.wH(Q,x,3);c.Ow(x,k,P,k)}this.fY(P,k,U,E)}if(p){P=L.slice(0);c.n0(P,4278190080,16777215);
var O=eh.get(z.add),y=eh.dq(O,z.add[O]);eh.QE(y,P,P,k)}var v=P.slice(0);c.n0(v,4278190080,16777215);
for(var H=0;H<Y.length;H++)Y[H].pH(v,k,U,E,[]);var i=c.F(k.X()*4);c.La(L,C,i,k);if(p)r.H1=!0;c.Q.Kj(z.B4=="pass"?"norm":z.B4,v,k,i,k,U,1,r);
if(z.dX()){var D=z.V.c5.type.FrFX,I=null;if(D.length!=0){I=D[0];for(var H=0;H<D.length;H++)if(D[H].oZ.d>I.oZ.d)I=D[H];
var m=c.F(I.oZ.d*I.oZ.v*4);c.La(L,C,m,I.oZ)}ca.nS(z.add.lmfx,h,k,L,C,U,i,m,I?I.oZ:null)}c.Q.f3(i,k,L,C,b,k,0,U,1,z.B4=="diss")};
g_.prototype.fY=function(L,C,U,E){var Y=this.children;for(var H=0;H<Y.length;H++){var z=[];for(var r=H+1;
r<Y.length;r++)if(Y[r].$.l$)z.push(Y[r]);else break;Y[H].pH(L,C,U,E,z);H+=z.length}};g_.Uf={delete:function(L){if(L&&L.d)L.delete()},F:function(L,C){return t.i8?new t.Ry(L,C):c.F(L*C*4)},g8:function(L,C,U){if(t.i8){if(L==null||L.d!=C||L.v!=U){g_.Uf.delete(L);
return new t.Ry(C,U)}}else{if(L==null||!(L instanceof Uint8Array)||L.length!=C*U*4){g_.Uf.delete(L);
return c.F(C*U*4)}}return L},zM:function(L,C,U,E,Y){(t.i8?t.pc:c.La)(L,C,U,E,Y)},f3:function(L,C,U,E,Y,z,r,p,H,T,k){(t.i8?t.Q.e_:c.Q.f3)(L,C,U,E,Y,z,r,p,H,T,k)},Kj:function(L,C,U,E,Y,z,r,p){if(t.i8)t.Q.eY(L,C,U,E,Y,z,r,p);
else c.Q.Kj(L,C,U,E,Y,z,r,p)},n0:function(L,C,U){if(t.i8){t.RV(L);t.oL(C,U)}else c.n0(L,C,U)},aiS:function(L,C,U,E,Y){if(t.i8){t.Q.e_(null,null,E,Y,L,C,U,Y,1,!1)}else{if(U==255)c.Ow(L,C,E,Y);
else{var z=c.F(C.X());c.LK(E,Y,z,C);c.Iz(L,z);c.n0(E,0,16777215);c.iN(z,C,E,Y)}}},xc:function(L,C,U,E){if(t.i8)t.Q.e_(null,null,U,E,L,C,0,E,1,!1);
else c.xc(L,C,U,E)}};g_.prototype.My=function(L,C,U,E,Y,z){var r=typeof z=="number";if(!this.$.Jc()&&(r&&this.index>z||!r&&z.indexOf(this.index)==-1)){return}var p=this.$,T=ca.WJ(p),k=g_.Uf,P=p.G_()?p.xV():p.r;
if(!p.rK())return;if(p.$T()&&P.rect.ue()){return}if(p.add.vstk==null&&this.dm(E,!1).ue()&&p.add.artb==null){return}var b=this.dm(E,!0).eR(U);
if(!C.cg(U)&&!U.nN(b)&&p.add.artb==null)return;if(p.Jc()&&p.add.artb){var Q=p.kg();U=U.eR(Q);var K=p.wZ();
if(K!=0){if(t.i8){t.RV(L,U);t.oL(K);t.oL(K)}else c.anK(L,C,U,K)}}var h=g_.NH(p,Y,T);if(!h){this.PM(L,C,U,E,Y,z);
return}p.V.yi=k.g8(p.V.yi,b.d,b.v);k.zM(L,C,p.V.yi,b,U);this.PM(p.V.yi,b,U,E,Y,z);k.f3(p.V.yi,b,L,C,null,null,0,U,p.opacity/255,p.B4=="diss",T.QN)};
g_.NH=function(L,C,U){if(U.QN[0]*U.QN[1]*U.QN[2]==0)return!0;return L.opacity!=255&&(C.length!=0||L.Jc()||L.dX())};
g_.aja={V:{}};g_.prototype.PM=function(L,C,U,E,Y,z){var r=this.$,p=ca.WJ(r),T=eh.get(r.add)!=null,k=g_.Uf,P=g_.NH(r,Y,p),b=P?1:r.opacity/255,Q=r.G_()?r.xV():r.r,K=r.Jc()&&r.B4=="pass"&&!(Y.length>0||p.fill!=1||r.dX()),h=!r.Jc()&&!T&&!r.dX()&&Y.length==0,x=T&&!r.dX()&&Y.length==0,I=null,m=null,f=null,X;
if(K||h||x){var O=L,y=C;if(r.$T()){y=this.dm(E,!1);O=r.V.Yq=k.g8(r.V.Yq,y.d,y.v);k.zM(L,C,r.V.Yq,y)}if(K)this.LG(O,y,U,E,z);
if(h)k.Kj(r.B4,r.Te(E),r.rect,O,y,U,b,p);if(x){var v=r.$T()&&Q.Lt()==0?Q.dm().clone():y.clone(),i=r.V;
if(v.cg(new _(0,0,E.d,E.v)))i=g_.aja;i.z8=this.D2(O,y,i.z8,v,r.add);p.H1=!0;k.Kj(r.B4,i.z8,v,O,y,U,b,p)}if(r.$T())k.f3(O,y,L,C,r.Rw(),Q.dm(),Q.Lt(),U,1,r.B4=="diss");
r.V.n1();return}var D=r.Jc()&&r.B4=="pass"&&(Y.length>0||p.fill!=1||r.dX()),v=r.rect;if(r.Jc()){v=this.dm(E,!1);
f=r.V.z8=k.g8(r.V.z8,v.d,v.v);k.n0(f,0);this.LG(f,v,v,E,z);m=k.g8(r.V.Mi,v.d,v.v);k.zM(f,v,m,v)}else if(T){v=r.$T()&&Q.Lt()==0?Q.dm().clone():C.clone();
m=k.g8(r.V.Mi,v.d,v.v);k.n0(m,4294967295)}else{v=r.rect;I=r.Te(E);m=k.g8(r.V.Mi,v.d,v.v);k.zM(I,v,m,v)}r.V.Mi=m;
if(r.$T())k.aiS(r.Rw(),Q.dm(),Q.Lt(),m,v);if(r.dX())if(r.V.nZ||r.V.Of||r.V.Wt!=t.i8||r.V.cm||r.Jc()){var A=c.F(v.d*v.v);
if(ca.bJ(r.add.lmfx)){if(t.i8){if(!r.Jc()&&r.xV()==null&&r.rect.cg(v))c.wH(r.buffer,A,3);else{var d=c.F(v.d*v.v*4);
m.get(d);c.wH(d,A,3)}}else c.wH(m,A,3)}if(r.V.Of||r.V.Wt!=t.i8||!c.cg(A,r.V.Rr)){var g=null;if(r.G_()&&r.add.vmsk&&r.add.vmsk.isEnabled&&r.add.vmsk.xV().color==0)g=r.add.vmsk.xV().rect;
ca.ad3(r.V.c5,A,v,r.add.lmfx,r.add.fxrp,E,g);r.V.Rr=A}}if(r.dX())ca.gD(r.add.lmfx,r.V.c5,v,L,C,U);if(r.Jc()){I=k.g8(r.V.Yq,v.d,v.v);
k.n0(I,0);if(r.B4=="pass")k.zM(L,C,I,v);if(D)k.xc(f,v,I,v);this.LG(I,v,U,E,z);r.V.Yq=I}if(T){I=r.V.Yq=this.D2(L,C,r.V.Yq,v,r.add)}if(r.Jc()||T)X=I;
else{X=k.g8(r.V.Yq,v.d,v.v);k.zM(I,v,X,v,U);r.V.Yq=X}k.n0(X,4278190080,16777215);for(var H=0;H<Y.length;
H++)Y[H].My(X,v,U,E,[],z);var n=r.V.p0=k.g8(r.V.p0,v.d,v.v);k.zM(L,C,n,v,U);if(T)p.H1=!0;k.Kj(r.B4=="pass"?"norm":r.B4,X,v,n,v,U,1,p);
if(r.dX()){var R=r.V.c5.type.FrFX,l=null;if(R.length!=0){l=R[0];for(var H=0;H<R.length;H++)if(R[H].oZ.d>l.oZ.d)l=R[H];
r.V.x5=k.g8(r.V.x5,l.oZ.d,l.oZ.v);k.zM(L,C,r.V.x5,l.oZ,U);r.V.jD=k.g8(r.V.jD,l.oZ.d,l.oZ.v)}ca.nS(r.add.lmfx,r.V.c5,v,L,C,U,n,r.V.x5,r.V.jD,l?l.oZ:null)}if(!t.i8){var w=c.F(v.X());
c.wH(m,w,3);m=w}k.f3(n,v,L,C,m,v,0,U,1,r.B4=="diss");r.V.n1()};g_.prototype.D2=function(L,C,U,E,Y){var z=eh.get(Y),r;
if(z)r=eh.dq(z,Y[z]);var p=g_.Uf;U=p.g8(U,E.d,E.v);if(!(t.i8&&C.cg(E)))p.zM(L,C,U,E);if(r){if(t.i8){var T=E.clone();
T.x=T.y=0;if(C.cg(E)){t.RV(U,T);eh.BW(r,L.W5,T)}else{t.RV(U,E);U.Go(E);eh.BW(r,U.zQ,T)}}else eh.QE(r,U,U,E)}return U};
g_.prototype.LG=function(L,C,U,E,Y){var z=this.children;for(var H=0;H<z.length;H++){var r=[];for(var p=H+1;
p<z.length;p++)if(z[p].$.l$)r.push(z[p]);else break;z[H].My(L,C,U,E,r,Y);H+=r.length}};function b7(L){this.Pv="psd";
this.Z6=!1;this.name=L;this.cN=-1;this.AW=null;this._L=null;this.gk=null;this.at=null;this.d=0;this.v=0;
this.N=[];this.d4={};this.add={};this.buffer=null;this.lO=4;this.mo=null;this._Q=72;this.Ii={};this.C=[];
this.Pr=[[],[]];this.Oy=[];this.Vg=[];this.Jd=[b7.YE("Work Path")];this.j5=[];this.cE=null;this.Tv={classID:"CompList",list:{t:"VlLs",v:[]}};
this.root=null;this.kl=null;this.pu=!1;this.alf=!1;this.k$=!1;this.U8=!1;this.eP=!1;this.dD=!1;this.hK=!1;
this.EN=!1;this.fP=!1;this.nZ=null;this.lq=null;this.kK={};this.t=null;this.vI=[];this.te=[];this.K={bb:{},yI:[],abS:[],lG:[],jZ:[],yw:null,R9:null,h4:null,Q0:null,QX:[],jB:[]};
this.history=[new hp([1,0],null)];this.xC=0;this.pI=0;this.z=new ad(this)}b7.prototype.$k=function(){var L=this.vI,C=this.vI.length;
if(C!=0&&L[C-1].name=="Quick Mask")return L[C-1]};b7.prototype.MT=function(){return this.Pv==B.d8("% |/!)")||this.Pv==B._A("gP")};
b7.prototype.Re=function(L){this.add.artd={classID:"null",Cnt:{t:"long",v:L},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}}},canvasColorMode:{t:"enum",v:{canvasColorType:"Cstm"}},canvasColor:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:220},Grn:{t:"doub",v:220},Bl:{t:"doub",v:220}}},autoExpandEnabled:{t:"bool",v:!0},autoNestEnabled:{t:"bool",v:!0},autoPositionEnabled:{t:"bool",v:!0}}};
b7.prototype.nJ=function(L){if(this.add.FEid==null)this.add.FEid=[];if(this.add.FEid.indexOf(L)==-1)this.add.FEid.push(L)};
b7.prototype.pv=function(L){var C=this.add.FEid.indexOf(L);this.add.FEid.splice(C,1);if(this.add.FEid.length==0)delete this.add.FEid};
b7.prototype.s=function(L){if(L==null)L=new _(0,0,this.d,this.v);if(this.nZ==null)this.nZ=L;else this.nZ=this.nZ.EU(L)};
b7.prototype.a5W=function(L){return this.nZ!=null};b7.prototype.iV=function(L){var C=this.N[L],U=this.root.cW(L);
if(U==null)return!1;if(C.Jc()||U.parent.children.indexOf(U)==0)return!1;return!0};b7.aga=function(L){if(L.add.lnk2)for(var H=0;
H<L.add.lnk2.length;H++){var C=L.add.lnk2[H].Ea;L.add.lnk2[H].Ea=b7.o7()+C.slice(8);for(var U=0;U<L.N.length;
U++){var E=L.N[U].add.SoLd;if(E&&E.Idnt.v==C)E.Idnt.v=L.add.lnk2[H].Ea}}};b7.prototype.$i=function(L,C,U){L.sort(function(b,Q){return b-Q});
var top=L[L.length-1],E=this.N.slice(0),Y=this.C.slice(0),z=[],r=[];for(var H=0;H<this.N.length;H++){if(L.indexOf(H)!=-1)r.push(this.N[H]);
else z.push(this.N[H])}this.o2(r);this.C=[];var p=this.root.dm(this,!0);if(C)p=p.eR(C);if(U)p=p.EU(U);
if(p.ue())p=new _(0,0,100,100);var T=new _(-p.x,-p.y,this.d,this.v),k=new Uint8Array(iL.WS("PSD").aR(this,0,0,[!0,!1]));
this.o2(E);this.C=Y;var P=new b7(this.N[top].getName());iL.WS("PSD").ER(k.buffer,P);delete P.add.artd;
P.Pr=[[],[]];P.Oy=[];P.o2(P.N);b7.aga(P);W.yP.h6(P,p);P.s();P.nU();P.E0();return[P,p,z,top]};b7.prototype.Vo=function(L,C,U){var E=this.$i(L),Y=E[0],z=E[1],r=E[2],top=E[3],p;
if(U=="jpg")p=new Uint8Array(iL.WS("JPG").aR([[Y.E0().buffer]],Y.d,Y.v,[80]));else p=new Uint8Array(iL.WS("PSD").aR(Y,null,null,[!0,!1]));
if(C)r=this.N.slice(0);var T=this.$F(p,Y.name,z.x,z.y);if(top==this.N.length-1)r.push(T);else r.splice(C?top+1:top-L.length+1,0,T);
this.o2(r);this.C=[r.indexOf(T)]};b7.o7=function(){var L="";for(var H=0;H<8;H++)L+=Math.floor(Math.random()*16).toString(16);
return L};b7.prototype._q=function(L){if(L==null)return;if(this.add.Patt==null)this.add.Patt=[];var C=this.add.Patt;
for(var H=0;H<C.length;H++)if(C[H].id==L.id)return;C.push(L)};b7.prototype.$F=function(L,C,U,E,Y){if(this.add.lnk2==null)this.add.lnk2=[];
var z=null,b=!1;for(var H=0;H<this.add.lnk2.length;H++)if(c.cg(L,this.add.lnk2[H].raw)){z=this.add.lnk2[H].Ea;
break}if(z==null){var r=iL.lc(L.buffer);z=b7.o7()+"-d71c-11e5-b1ae-a548a96e5f9f";var p=new o.wQ;p.Ea=z;
p.YO=r=="psd"?"8BIM":"    ";p.GQ=C+"."+r;p.L$=r=="psd"?"8BPB":"    ";p.open=0;p.raw=L;p.type="liFD";
p.M6=2;this.add.lnk2.push(p)}var T=this.X7(z),k=b7.o7()+"-d71c-11e5-b1ae-a548a96e5f9f",P=this.wP();P.I_(C);
if(T!=null){var Q=P.rect=T.Ne[1].clone();P.rect.offset(U,E);var K=Math.max(Q.d/this.d,Q.v/this.v),b=Y&&K>1.0001;
if(b){Q.d=Math.round(Q.d/K);Q.v=Math.round(Q.v/K);Q.x=Math.round((this.d-Q.d)/2);Q.y=Math.round((this.v-Q.v)/2)}else if(Y&&iL.lc(L.buffer)=="pdf"&&this._Q!=144){var K=144/this._Q;
Q.d=Math.round(Q.d/K);Q.v=Math.round(Q.v/K);b=!0}P.buffer=c.F(P.rect.X()*4);if(!b)c.hL(T.Ne[0],P.buffer)}P.add.SoLd={classID:"null",Idnt:{t:"TEXT",v:z},Impr:{t:"Objc",v:{__name:"None",classID:"none"}},placed:{t:"TEXT",v:k},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:c.h2.F(P.rect)},Sz:{t:"Objc",v:{classID:"Pnt",Wdth:{t:"doub",v:P.rect.d},Hght:{t:"doub",v:P.rect.v}}},Rslt:{t:"UntF",v:{type:"#Rsl",val:72}}};
var h=c.a.kG(P.rect).c;P.add.SoLd.Trnf=W.o.M4(h);P.add.SoLd.nonAffineTransform=W.o.M4(h);if(b)P.RM(this,!1);
return P};b7.prototype.E0=function(L){if(L!=null){this.s();this.nU(L);var C=this.buffer;if(t.i8)this.kl.get(C);
else C=C.slice(0);this.s();this.nU();return C}if(this.nZ){this.nU();this.nZ=null}if(t.i8&&this.lq){this.kl.get(this.buffer);
this.lq=null;this.dD=!0}return this.buffer};b7.prototype.uI=function(){for(var H=0;H<this.N.length;H++)this.N[H].yC();
this.s()};b7.prototype.af=function(){for(var H=0;H<this.N.length;H++)if(this.N[H].add.lmfx)this.N[H].V.Of=!0};
b7.prototype.vd=function(){var L=this.d4.r1044;if(L==null){L=this.d4.r1044=new Uint8Array(4);var C=0;
for(var H=0;H<this.N.length;H++)C=Math.max(C,this.N[H].add.lyid);$.Iy(L,0,C)}var U=$.i(L,0);$.Iy(L,0,U+1);
return U+1};b7.prototype.qk=function(L,C,U){if(L==null)L=!0;var E=this;if(E.te.length!=0)return!0;if(E.C.length!=1){if(L)alert(E.C.length==0?"Select a layer first.":"More than one layer selected.");
return!1}return this.yq(L,C,U)};b7.prototype.yq=function(L,C,U){if(L==null)L=!0;if(C==null)C=!1;var E=this;
if(E.te.length!=0)return!0;for(var H=0;H<E.C.length;H++){var Y=E.N[E.C[H]],z=C||Y.yQ<=0;if(Y.add.lsct!=null&&Y.add.lsct!=fI.iS&&Y.yQ!=1){if(L)alert(gS.get([15,7,2]));
return!1}if(z&&!Y.bB()){if(L)alert(gS.get([15,7,2]));return!1}if(z&&Y.add.TySh){return this.fR(L,[15,7,3],U)}if(z&&Y.add.SoLd){return this.fR(L,[15,7,4],U)}if(Y.zm(1)||Y.zm(31)){if(L)alert(gS.get([6,57,0]));
return!1}}return!0};b7.prototype.fR=function(L,C,U){if(L&&typeof L=="object"){var E=window.confirm(gS.get(C)+". "+gS.get([6,8])+"?");
if(E){var Y=new q(B.E._w,!0);Y.data={xo:"rasterizeLayer",V5:{classID:"rasterizeLayer",null:hy.K1("Lyr",!0)}};
L.B(Y)}return U?E:!1}if(L)alert(gS.get(C));return!1};b7.prototype.k9=function(L){var C=this.root.cW(L);
if(C.parent)return C.$.rK()&&this.k9(C.parent.index);else return C.$.rK()};b7.prototype.Le=function(L){var C=this.root.cW(L);
if(C==null)return null;var U=C.$;if(U.add.artb)return U.kg();if(C.parent)return this.Le(C.parent.index);
return null};b7.prototype.hl=function(){var L=this.N[this.C[0]];if(L.yQ<=0&&!L.rect.nN(this.t.rect)){alert("Selected area is empty.");
return!1}if(this.C.length==1&&this.t){var C=c.F(this.t.channel.length);c.LK(L.buffer,L.rect,C,this.t.rect);
c.Iz(this.t.channel,C);if(c.eQ(C,0)){alert("Selected area is empty.");return!1}}return!0};b7.prototype.b_=function(){if(this.d4["r"+1037]==null)this.HJ(30);
return $.xw(this.d4["r"+1037],0)};b7.prototype.HJ=function(L){if(this.d4["r"+1037]==null)this.d4["r"+1037]=new Uint8Array(4);
if($.xw(this.d4["r"+1037],0)==L)return;$.nv(this.d4["r"+1037],0,L);this.af()};b7.prototype.kX=function(){if(this.d4["r"+1049]==null)this.Hq(30);
return $.xw(this.d4["r"+1049],0)};b7.prototype.Hq=function(L){if(this.d4["r"+1049]==null)this.d4["r"+1049]=new Uint8Array(4);
if($.xw(this.d4["r"+1049],0)==L)return;$.nv(this.d4["r"+1049],0,L);this.af()};b7.prototype.tE=function(L){if(this.add.lnk2==null)return null;
for(var H=0;H<this.add.lnk2.length;H++)if(this.add.lnk2[H].Ea==L)return this.add.lnk2[H];return null};
b7.prototype.a16=function(L){var C=this.tE(L);if(C==null)return!1;var U=iL.lc(C.raw.buffer);if(U==null)return!1;
if(iL.WS(U)!=null||U=="psd")return!0;return!1};b7.prototype.X7=function(L,C,U,E){var Y=this.tE(L);if(Y==null)return null;
Y.E0(C,U,E);if(Y.Ne)return Y};b7.prototype.nU=function(L){if(L==null)L=1e9;var C=this.d,U=this.v,E=new _(0,0,C,U),Y=E.eR(this.nZ);
if(t.i8&&this.kl==null)this.kl=new t.Ry(C,U,!0);if(this.buffer==null||this.buffer.length!=C*U*4||t.i8&&(this.kl.d!=C||this.kl.v!=U)){this.buffer=c.F(C*U*4);
if(this.kl)this.kl.delete();if(t.i8)this.kl=new t.Ry(C,U,!0)}if(Y.ue())return;if(!Y.cg(E)){if(!t.i8){var z=c.Zx(Y.X()*4);
c.La(z,Y,this.buffer,E)}if(t.i8){t.RV(this.kl,Y);t.oL(0)}}else{if(t.i8){this.kl.set(null)}else{this.buffer.fill(0)}}var r=Date.now(),p=t.i8?this.kl:this.buffer;
this.root.My(p,E,Y,this,[],L);this.lq=this.nZ.clone()};b7.prototype.wP=function(L){var C=new o;C.rect=new _(0,0,0,0);
C.buffer=c.F(1);C.add.luni=new hZ(0,0);if(L!=!0)C.add.lyid=this.vd();C.add.lsct=fI.iS;C.add.lclr=0;C.add.fxrp=new hZ(0,0);
return C};b7.prototype.rJ=function(L){var C=this.wP(L);C.I_("</Layer group>");C.add.lsct=fI.ya;C.bP=24;
return C};b7.prototype.lH=function(){return this.xC!=this.pI};b7.prototype.Sv=function(L){while(this.history.length>this.xC+1)this.history.pop();
if(this.pI>this.xC)this.pI=-1;if(L.m.id!=W.tl){this.k$=!0;if(this.Tv.lastAppliedComp){delete this.Tv.lastAppliedComp;
this.dD=!0}}this.history.push(L);this.xC++;this.dD=!0;var C=cN.ez()?60:30,U=0;for(var H=this.history.length-1;
H>=0;H--){var E=this.history[H];if(E.d2)continue;U++;if(U==C){this.xC-=H;this.history=this.history.slice(H);
break}}};b7.prototype.bQ=function(){if(this.xC!=this.history.length-1)return null;return this.history[this.history.length-1]};
b7.prototype.p9=function(L,C,U,E){if(L==null)L=!1;var Y=C!=null?[C]:this.C.slice(0);if(E){var z=[];for(var H=0;
H<Y.length;H++){var r=this.N[Y[H]].xi;if(r!=0&&z.indexOf(r)==-1)z.push(r)}for(var H=0;H<this.N.length;
H++){var r=this.N[H].xi;if(r!=0&&z.indexOf(r)!=-1&&Y.indexOf(H)==-1)Y.push(H)}}var p=[];for(var H=0;
H<Y.length;H++){var T=this.a1(Y[H],L);for(var k=0;k<T.length;k++)if(p.indexOf(T[k])==-1)p.push(T[k]);
if(U){var u=this.root.cW(Y[H]);while(u.parent!=null&&u.parent.parent!=null){u=u.parent;if(p.indexOf(u.index)==-1){p.push(u.index,u.vB)}}}}return p};
b7.prototype.LR=function(L,C,U){var E=this,Y=E.p9(!1,L,null,U);Y.sort(function(v,i){return v-i});var z={};
for(var r=0;r<E.N.length;r++){var p=E.N[r].getName();z[p]=!0}var T=[];for(var H=0;H<Y.length;H++){var k=E.N[Y[H]].clone(),x,O;
k.add.lyid=E.vd();k.add.lspf=0;if(k.s7()){var P=k.iC(E),b=b7.Ws(P);E.nJ(b);k.add.SoLd.placed.v=b.id}k.cr(E);
var Q=k.getName(),K=Q.length;while(48<=Q.charCodeAt(K-1)&&Q.charCodeAt(K-1)<=57)K--;var h=parseInt(Q.slice(K));
if(isNaN(h)){if(Q.endsWith(" copy")){h=1;x=Q.slice(0,Q.length-5)}else{h=0;x=Q}}else if(Q.slice(0,K).endsWith(" copy ")){h=h;
x=Q.slice(0,K-6)}else{h=0;x=Q}h++;while(!0){O=x+" copy"+(h==1?"":" "+h);if(z[O]==null)break;h++}var y=Y.indexOf(this.root.cW(Y[H]).parent.index)!=-1;
if(C!=!0&&!y)k.I_(O);z[O]=!0;T.push(k)}return T};b7.Ws=function(L){return{id:b7.o7()+L.id.slice(8),buffer:L.buffer.slice(0),rect:L.rect.clone(),r:L.r?L.r.clone():null}};
b7.ji=function(L){return{id:L,rect:new _,buffer:c.F(1),r:new o.LF}};b7.YE=function(L,C){if(C==null)C={vmsk:new o.mR};
if(C.vogk==null){C.vogk=[];var U=c.Y.ov(C.vmsk.n);for(var E=0;E<U;E++)C.vogk.push(c.zf.Zx())}return{name:L,Oi:0,add:C}};
b7.prototype.zG=function(L){var C=[],U=[],E=this,z=0;for(var H=1;H<E.Jd.length;H++){var Y=E.Jd[H];Y.Oi=-1-H;
C.push(Y);if(E.j5.indexOf(H)!=-1)U.push(C.length-1)}if(E.Jd[0].add.vmsk.n.length>2){var Y=E.Jd[0];Y.Oi=-1;
C.push(Y);if(E.j5.indexOf(0)!=-1)U.push(C.length-1)}var r=E.cE==null;if(r)E.cE=[];for(var H=E.C.length-1;
H>=0;H--){var p=E.N[E.C[H]],T=p.add.TySh;if(p.add.vmsk!=null&&(p.hI||p.G_())){var Y=b7.YE("\""+p.getName()+"\" Shape Path",p.add);
Y.Oi=E.C[H];C.push(Y);if(r)E.cE.push(z);if(E.cE.indexOf(z)!=-1)U.push(C.length-1);z++}if(L!=!0&&T&&T.add&&c.h2.D3(T.DN)){var Y=b7.YE("\""+p.getName().slice(0,10)+"..\" Text Path",T.add);
Y.Oi=1e6+E.C[H];C.push(Y);U.push(C.length-1);z++}}if(U.length==0&&L){E.Jd[0].Oi=-1;E.j5=[0];U.push(C.length);
C.push(E.Jd[0])}return[C,U]};b7.prototype.a1=function(H,L){var C=[],u=this.root.cW(H);if(u)u.Bx(C,L);
return C};b7.prototype.C8=function(){this.root.BU(this,new _(0,0,this.d,this.v),32)};b7.prototype.o2=function(L){for(var H=0;
H<this.N.length;H++){var C=this.N[H];if(L.indexOf(C)==-1){C.V.a6D();C.s()}}this.N=L.slice(0);this.oQ()};
b7.prototype.oQ=function(){var L=this.N,C=L.length;this.root=new g_;var U=this.wP(!0);U.B4="pass";U.add.lsct=fI.Qr;
var E=this.rJ(!0),Y=[E];for(var H=0;H<C;H++)Y.push(L[H]);Y.push(U);this.root.wy(Y,0,0);if(this.C.length==0)this.C=[C-1]};
b7.prototype.LM=function(){if(this.C.length!=1)return;var L=this.root.cW(this.C[0]);while(L.parent!=null){var C=L.parent.$;
C.add.lsct=fI.Qr;L=L.parent}this.eP=this.a9y=!0};b7.prototype.adD=function(){this.oQ();var L=[this.root],ds=0;
while(L.length!=0){var top=L.pop();ds++;if(top.$.add.lsct==fI.Qr)for(var H=0;H<top.children.length;H++)L.push(top.children[H])}if(ds>1e3){var C=this.root.children;
for(var H=0;H<C.length;H++)if(C[H].$.add.lsct==fI.Qr)C[H].$.add.lsct=fI.z7}};b7.Jo=function(L,C,U,E,Y){var z={__name:"Make",classID:"Mk",Nw:{t:"Objc",v:{classID:"Dcmn",Nm:{t:"TEXT",v:E},Md:{t:"type",v:{classID:"RGBM"}},Wdth:{t:"UntF",v:{type:"#Rlt",val:L}},Hght:{t:"UntF",v:{type:"#Rlt",val:C}},Rslt:{t:"UntF",v:{type:"#Rsl",val:U}},pixelScaleFactor:{t:"doub",v:1},Fl:{t:"enum",v:{Fl:Y}},Dpth:{t:"long",v:8},profile:{t:"TEXT",v:"sRGB IEC61966-2.1"}}}};
return{xo:"make",V5:z}};b7.a8m=function(L,C){var U=0,E=0,Y=72,z=C.a6$,r=L.preset&&L.preset.v=="Clipboard";
if(r){U=z.d;E=z.v}else{U=L.Wdth.v.val;E=L.Hght.v.val;Y=L.Rslt.v.val}var p=new b7((L.Nm?L.Nm.v:gS.get([11,7]))+".psd");
p.d=U;p.v=E;p._Q=Y;var T=p.wP();T.I_("Background");p.o2([T]);T.add.lspf=1<<2;var k=L.Fl?L.Fl.v.Fl:"Wht";
if(k!="Trns"){var P=C.ho;P=(P&255)<<16|(P>>>8&255)<<8|P>>>16;T.rect=new _(0,0,U,E);T.buffer=c.F(U*E*4);
c.n0(T.buffer,{Wht:4294967295,BckC:255<<24|P}[k])}p.buffer=c.F(U*E*4);return p};function ad(L){this._u=L;
this.S=0;this.Uu=1;this.g=new hZ(0,0);this.II=new hZ(0,0);this.NN=0;this.NT=[1,1,1];this.e4=new _(0,0,1,1);
this.aal=new _(0,0,L.d,L.v);this.d0=null;this.Gr=null;this.YB=new Uint32Array(0);this.lQ=null;this.GU=null;
this.Ir=c.F(0);this.uF=null;this.Bh=null}ad.prototype.WF=function(L){var C=new c0,U=this.e4,E=this._u,Y=L?this.Uu:this.S,z=L?this.II:this.g,r=Math.round((U.d-E.d*Y)/2+z.x),p=Math.round((U.v-E.v*Y)/2+z.y);
C.translate(-r,-p);C.scale(1/Y,1/Y);var T=E.d/2,k=E.v/2;C.translate(-T,-k);C.rotate(this.NN);C.translate(T,k);
return C};ad.prototype.O0=function(L){var C=this.e4,U=this._u,E=Math.atan2(-L.O,L.R),Y=U.d/2,z=U.v/2;
L.translate(-Y,-z);L.rotate(-E);L.translate(Y,z);var r=1/L.ia();L.scale(r,r);var p=-L.Yt,T=-L.rv,k=Math.round(p-(C.d-U.d*r)/2),P=Math.round(T-(C.v-U.v*r)/2);
if(Math.abs(r-Math.round(r))<1e-6)r=Math.round(r);this.NN=E;this.S=r;this.g=new hZ(k,P)};ad.prototype.sQ=function(L,C){var U=this.WF();
return U.Om(new hZ(L,C))};ad.prototype.Q6=function(L,C){var U=this.WF();U.G$();return U.Om(new hZ(L,C))};
function gM(){}gM.order="ebbl FrFX IrSh IrGl ChFX SoFi GrFl patternFill OrGl DrSh".split(" ");gM.cp="ebblMulti frameFXMulti innerShadowMulti IrGlMulti ChFXMulti solidFillMulti gradientFillMulti patternFillMulti OrGlMulti dropShadowMulti".split(" ");
gM.names=[[14,4],[14,9],[14,1],[14,3],[14,8],[14,5],[14,6],[14,7],[14,2],[14,0]];gM.EE=["DrSh","IrSh","SoFi","GrFl","FrFX"];
gM.TL=["Clr"];gM.DV="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");gM.ex=["Ptrn","Scl","Algn","phase"];
gM.SH={J0:"{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}}}",Sn:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Grdn\",\"Nm\":{\"v\":\"Two Color\",\"t\":\"TEXT\"},\"GrdF\":{\"v\":{\"GrdF\":\"CstS\"},\"t\":\"enum\"},\"Intr\":{\"v\":4096,\"t\":\"doub\"},\"Clrs\":{\"v\":[{\"v\":{\"classID\":\"Clrt\",\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"Type\":{\"v\":{\"Clry\":\"UsrS\"},\"t\":\"enum\"},\"Lctn\":{\"v\":0,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"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\"}],\"t\":\"VlLs\"},\"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\"}}}",no:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Grdn\",\"Nm\":{\"v\":\"Foreground to Background\",\"t\":\"TEXT\"},\"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}}}]}}}",HI:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"v\":\"orangeslices\",\"t\":\"TEXT\"},\"Idnt\":{\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\",\"t\":\"TEXT\"}}}"};
gM.SH.J0="\"Clr\": "+gM.SH.J0;gM.SH.W="\"Grad\":"+gM.SH.Sn+",\"Rvrs\":{\"v\":false,\"t\":\"bool\"},\"Type\":{\"v\":{\"GrdT\":\"Lnr\"},\"t\":\"enum\"},\"Algn\":{\"v\":true,\"t\":\"bool\"},\"Angl\":{\"v\":{\"type\":\"#Ang\",\"val\":90},\"t\":\"UntF\"},\"Scl\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"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\"}";
gM.SH.HI="\"Ptrn\":"+gM.SH.HI+",\"Scl\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Algn\":{\"v\":true,\"t\":\"bool\"},\"phase\":{\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"}";
gM.default="{ \"classID\": \"null\", \"Scl\": {\"t\": \"UntF\", \"v\": { \"type\": \"#Prc\",\"val\": 100} }, \"masterFXSwitch\": {\"t\": \"bool\",\"v\": true} }";
gM.Lq=["{\"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\"},"+gM.SH.J0+","+gM.SH.W+","+gM.SH.HI+"}","{\"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\"},"+gM.SH.J0+"}","{\"classID\":\"GrFl\",       \"enab\":{\"v\":true,\"t\":\"bool\"},  \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+gM.SH.W+"}","{\"classID\":\"patternFill\",\"enab\":{\"v\":true,\"t\":\"bool\"},  \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+gM.SH.HI+"}","{\"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\"}}"];
gM.W={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]]};
gM.stroke={types:["InsF","CtrF","OutF"],names:[[19,5,2],[19,5,1],[19,5,0]],Ug:["SClr","GrFl","Ptrn"],agr:[[13,0],[12,37],[12,62]]};
gM.gK={types:["SfBL","PrBL"],names:[[19,1,0],[19,1,1]],KQ:["SrcC","SrcE"],ahy:[[19,5,1],[12,69]]};gM.y6={types:["OtrB","InrB","Embs","PlEb","strokeEmboss"],style:[[19,2,0],[19,2,1],[19,2,2],[19,2,3],[19,2,4]],VT:["SfBL","PrBL","Slmt"],aoc:[[19,3,0],[19,3,1],[19,3,2]],dir:[[19,4,0],[19,4,1]]};
gM.H0={h9:["strokeStyleButtCap","strokeStyleRoundCap","strokeStyleSquareCap"],jr:["strokeStyleAlignInside","strokeStyleAlignCenter","strokeStyleAlignOutside"],join:["strokeStyleMiterJoin","strokeStyleRoundJoin","strokeStyleBevelJoin"],g0:["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\","+gM.SH.J0+"}")},strokeStyleResolution:{t:"doub",v:72}}};
gM.bK=[{classID:"null",Clr:JSON.parse(gM.Lq[5]).Clr},{classID:"null",Grad:JSON.parse(gM.Lq[6]).Grad,Dthr:{t:"bool",v:!1},Rvrs:{t:"bool",v:!1},Angl:{t:"UntF",v:{type:"#Ang",val:60}},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(gM.Lq[7]).Ptrn,Algn:{v:!0,t:"bool"},Scl:{v:{type:"#Prc",val:100},t:"UntF"},phase:{v:{classID:"Pnt",Hrzn:{v:0,t:"doub"},Vrtc:{v:0,t:"doub"}},t:"Objc"}}];
var ca={};ca.afn=function(L,C,U){if(L.ue())return;var E=c.Y.adG(L.n);E.x=Math.floor(E.x*C);E.d=Math.ceil(E.d*C);
E.y=Math.floor(E.y*U);E.v=Math.ceil(E.v*U);L.rect=E;L.channel=c.F(E.X());c.Vb.width=E.d;c.Vb.height=E.v;
var Y=c.e4;Y.fillStyle="#ffffff";c.Y.a3J(Y,L.n,C,U,-E.x,-E.y);Y.fill();var z=Y.getImageData(0,0,E.d,E.v).data;
c.wH(z,L.channel,3)};ca.R4=function(L,C){function U(L,Q){if(L==null)return null;var K=L[Q].v,h;if(K.length!=0){h=K[0].v;
if(!h.enab.v)h=null}return h}var E=C.SoCo,Y=C.GdFl,z=U(L,"solidFillMulti"),r=U(L,"gradientFillMulti");
if(z==null&&r==null)return[E,Y];var p=ca.a8a;if(E&&z&&r==null){var T=JSON.parse(JSON.stringify(E));T.Clr.v=p(z.Clr.v,E.Clr.v,z);
return[T,null]}if(Y&&z&&r==null){var k=JSON.parse(JSON.stringify(Y)),P=k.Grad.v.Clrs.v;for(var H=0;H<P.length;
H++){var b=P[H].v.Clr;b.v=p(z.Clr.v,b.v,z)}return[null,k]}if(E&&r){var k=JSON.parse(JSON.stringify(r)),P=k.Grad.v.Clrs.v;
for(var H=0;H<P.length;H++){var b=P[H].v.Clr;b.v=p(b.v,E.Clr.v,r)}return[null,k]}return[z,r]};ca.a3M={X9:c.F(4),TM:c.F(4),h:new _(0,0,1,1)};
ca.a8a=function(L,C,U){var E=gz.Sh(U.Md.v.BlnM),Y=U.Opct.v.val/100,z=ca.a3M;L=c.W.Lt(L);C=c.W.Lt(C);
z.X9[0]=L.h;z.X9[1]=L.P;z.X9[2]=L.O;z.X9[3]=255;z.TM[0]=C.h;z.TM[1]=C.P;z.TM[2]=C.O;z.TM[3]=255;c.Q.Kj(E,z.X9,z.h,z.TM,z.h,z.h,Y);
return{classID:"RGBC",Rd:{t:"doub",v:z.TM[0]},Grn:{t:"doub",v:z.TM[1]},Bl:{t:"doub",v:z.TM[2]}}};ca.zT=function(L,C,U){var E=L;
L=L.slice(0);var Y=gz.w0[gz.lV.indexOf(C.Md.v.BlnM)],z=c.W.Lt(C.Clr.v),r=4278190080|Math.round(z.O)<<16|Math.round(z.P)<<8|Math.round(z.h),p=c.F(U.X()*4);
c.n0(p,r);c.Q.Kj(Y,p,U,L,U,U,C.Opct.v.val/100);for(var H=0;H<L.length;H+=4)L[H+3]=E[H+3];return L};ca.xX=function(L,C){var U=["Sz","blur","Sftn","Dstn"];
for(var H=0;H<gM.order.length;H++){var E=gM.order[H],Y=L[gM.cp[H]].v;for(var z=0;z<Y.length;z++){var r=Y[z].v;
for(var p=0;p<U.length;p++){var T=r[U[p]];if(T){var k=T.v.val,P=k;P=Math.max(k==0?0:1,P*C);if(E=="ChFX")P=Math.min(P,250);
if(E=="ebbl"){if(U[p]=="blur")P=Math.min(P,250);if(U[p]=="Sftn")P=Math.min(P,16)}T.v.val=Math.round(P)}}if(E=="ebbl"||E=="patternFill"||E=="FrFX")if(r.Ptrn&&r.Scl)r.Scl.v.val=Math.max(1,Math.min(1e3,r.Scl.v.val*C))}}};
ca.a2Z=function(L,C,U){var E=new _(-.5,-.5,1,1),Y=L.add.lmfx;for(var H=0;H<gM.order.length;H++){var z=gM.order[H],r=Y[gM.cp[H]].v;
for(var p=0;p<r.length;p++){var T=r[p].v,Q;if(!T.enab.v)continue;var k=T.blur?T.blur.v.val+1:0,P=T.Ckmt?T.Ckmt.v.val/100:0,b=Math.round(k*P);
if(z=="DrSh"||z=="IrSh"&&U){Q=new _(-.5,-.5,1,1);Q.WW(k,k);ca.lv(Q,T,C,0)}if(z=="OrGl"||z=="IrGl"&&U){Q=new _(-.5,-.5,1,1);
Q.WW(k,k)}if(z=="FrFX"){var K=ca.AA(T),h=K[1];if(U)h=Math.max(K[0],h);Q=new _(-.5,-.5,1,1);Q.WW(Math.ceil(h),Math.ceil(h))}if(z=="ebbl"){var k=T.blur.v.val,x=T.bvlS.v.BESl;
if(x=="Embs"||x=="PlEb")k/=2;var O=["OtrB","InrB","Embs","PlEb","strokeEmboss"],y=["SfBL","PrBL","Slmt"],v=["In","Out"],i=T.bvlT.v.bvlT!="SfBL"?k:k*.43,D=Math.round(k);
Q=new _(-D-1,-D-1,2*D+2,2*D+2)}if(U&&z=="ChFX"){Q=new _(-.5,-.5,1,1);Q.WW(k,k);var I=Q.clone();ca.lv(Q,T,C,0);
ca.lv(I,T,C,Math.PI);Q=Q.EU(I)}if(Q)E=E.EU(Q)}}if(E.x!=Math.ceil(E.x)){E.x=Math.ceil(E.x);E.d-=1}if(E.y!=Math.ceil(E.y)){E.y=Math.ceil(E.y);
E.v-=1}return E};ca.AA=function(L){var C=0,U=0,E=L.Styl.v.FStl,Y=L.Sz.v.val;if(E=="OutF")U=Y;if(E=="InsF")C=Y;
if(E=="CtrF")C=U=Y/2;return[C,U]};ca.Hu=function(L){if(L.all==null)return;for(var H=0;H<L.all.length;
H++){var C=L.all[H];if(C.s$)C.s$.delete();if(C.Dk)C.Dk.delete();if(C.$S)C.$S.delete()}};ca.ad3=function(L,C,U,E,Y,z,r){ca.Hu(L);
var p=ca.eN(E,Y,C,U,z,r);L.type=p.type,L.all=p.all;if(t.i8)for(var H=0;H<L.all.length;H++){var T=L.all[H];
T.s$=new t.Ry(T.T2.d,T.T2.v);T.s$.set(T.eB);delete T.eB;if(T.N$){T.Dk=new t.ba(T.T2.d,T.T2.v);T.Dk.set(T.N$);
delete T.N$}if(T.$N){T.$S=new t.ba(T.T2.d,T.T2.v);T.$S.set(T.$N);delete T.$N}}};ca.bJ=function(L){for(var H=0;
H<gM.order.length;H++){var C=gM.order[H],U=gM.cp[H],E=L[U].v;for(var Y=0;Y<E.length;Y++){var z=E[Y].v;
if(z.enab.v&&["patternFill","GrFl","SoFi"].indexOf(C)==-1)return!0}}return!1};ca.eN=function(L,C,U,E,Y,z){if(z==null)z=E;
var r=0,p=0;for(var H=0;H<gM.order.length;H++){var T=gM.order[H],k=gM.cp[H],P=L[k].v;for(var b=0;b<P.length;
b++){var Q=P[b].v;if(T=="DrSh"&&Q.enab.v&&Q.Ckmt.v.val>0&&Q.blur.v.val>0)r=Math.max(r,Math.ceil(Q.Ckmt.v.val*Q.blur.v.val/100));
if(T=="OrGl"&&Q.enab.v&&Q.Ckmt.v.val>0&&Q.blur.v.val>0&&Q.GlwT.v.BETE=="SfBL")r=Math.max(r,Math.ceil(Q.Ckmt.v.val*Q.blur.v.val/100));
if(T=="OrGl"&&Q.enab.v&&Q.blur.v.val>0&&Q.GlwT.v.BETE=="PrBL")r=Math.max(r,Q.blur.v.val);if(T=="FrFX"&&Q.enab.v&&Q.Sz.v.val>0){if(Q.Styl.v.FStl=="OutF")r=Math.max(r,Q.Sz.v.val);
if(Q.Styl.v.FStl=="CtrF")r=Math.max(r,Math.ceil(Q.Sz.v.val/2));p=Math.max(p,ca.AA(Q)[1])}}}var K=new ca.wN(U,E,r,ca.bJ(L)),h=-E.x,x=-E.y,O={type:{},all:[]};
for(var y=0;y<gM.order.length;y++){var T=gM.order[y],k=gM.cp[y];O.type[T]=[];for(var v=L[k].v.length-1;
v>=0;v--){var i=L[k].v[v].v;if(!i.enab.v)continue;var D=i.blur?i.blur.v.val:0,I=i.Ckmt?i.Ckmt.v.val/100:0,m=D*I;
if(T=="DrSh"){var f=K.Wa(m,D-m,!0),A=f.eI,d=f._;d.offset(h,x);ca.kv(A,i,!1);ca.lv(d,i,Y,0);var g=c.F(d.X()*4);
ca.Bm(g,i.Clr.v);c.Wn(A,g,3);var X={eB:g,T2:d,g_:gz.Sh(i.Md.v.BlnM),Ks:i.Opct.v.val/100,a4Z:i.layerConceals.v};
O.type[T].push(X);O.all.push(X)}if(T=="IrSh"){var f=K.Wa(m,D-m,!1);ca.lv(f._,i,Y,0);var d=K.rect().clone(),A=c.F(d.X());
A.fill(255);c.zM(f.eI,f._,A,d);ca.kv(A,i,!0);var g=c.F(d.X()*4);ca.Bm(g,i.Clr.v);c.Wn(A,g,3);d.offset(h,x);
var X={eB:g,T2:d,g_:gz.Sh(i.Md.v.BlnM),Ks:i.Opct.v.val/100};O.type[T].push(X);O.all.push(X)}if(T=="GrFl"){var g=c.F(K.rect().X()*4);
ca.WN(i,g,K.rect(),Y,null,z);var d=K.rect().clone();d.offset(h,x);var X={eB:g,T2:d,g_:gz.Sh(i.Md.v.BlnM),Ks:i.Opct.v.val/100};
O.type[T].push(X);O.all.push(X)}if(T=="SoFi"){var g=c.F(K.eI().length*4);ca.Bm(g,i.Clr.v);var d=K.rect().clone();
d.offset(h,x);var X={eB:g,T2:d,g_:gz.Sh(i.Md.v.BlnM),Ks:i.Opct.v.val/100};O.type[T].push(X);O.all.push(X)}if(T=="ebbl"){var n=!1;
if(n)console.log(i);var R=Date.now(),l=i.bvlS.v.BESl;if(l=="strokeEmboss"){var w=L.frameFXMulti.v;if(w.length==0)continue;
w=w[0].v;if(!w.enab.v)continue;var V=w.Styl.v.FStl;if(V=="OutF")l="OtrB";if(V=="CtrF")l="Embs";if(V=="InsF")l="InrB"}var D=i.blur.v.val;
if(D==0)D=.7;if(l=="Embs"||l=="PlEb")D/=2;var F=["OtrB","InrB","Embs","PlEb","strokeEmboss"],Z=["SfBL","PrBL","Slmt"],M=["In","Out"],a=i.bvlT.v.bvlT!="SfBL"?D:D*.45,e=Math.round(D),N=K.rect().clone(),J=N.clone();
J.WW(e,e);var s=J.d,f5=J.v,dx=s*f5,fq=c.F(dx);c.zM(K.eI(),N,fq,J);var i9=new Float64Array(dx),S=new Float64Array(dx);
c.style.i3(fq,i9,s,f5);c.G$(fq);c.style.i3(fq,S,s,f5);if(n)console.log("distTransform computed",Date.now()-R);
for(var H=0;H<dx;H++)S[H]=S[H]-i9[H];for(var H=0;H<dx;H++){var fs=S[H];if(fs<-a)S[H]=-a;else if(fs>a)S[H]=a}if(n)console.log("summing + cropping",Date.now()-R);
if(i.bvlT.v.bvlT=="SfBL"){var bz=Math.pow(D*.21,1.22);if(!0)bz=Math.max(bz,2);var g6=c.qM.r2(bz,2);c.qM.Ov(S,i9,J,g6[0]>>>1);
c.qM.Ov(i9,S,J,g6[1]>>>1)}if(n)console.log("blurring",Date.now()-R);var al=S,bj=al.slice(0);if(i.useShape.v){var bE=Math.min(100,i.Inpr.v.val+1)/100;
if(l!="OtrB"&&l!="InrB")bE=1;var eN=c.Nn.Sx(i.MpgS.v.Crv.v,2e3),dk=Math.round(2e3/bE);eN=c.Nn.am0(eN,dk,l=="InrB");
var hj=.5/a;for(var H=0;H<dx;H++){var iN=al[H],dK=.99999*(iN+a)*hj;al[H]=-a+2*a*eN[~~(dK*(dk-1))]}if(n)console.log("applying shape",Date.now()-R)}if(i.useTexture.v){var ch=c.F(s*f5*4);
ca.k3(i,ch,J,Y,C);var hP=c.F(s*f5);c.Fy(ch,hP);var d2=c.F(s*f5);c.qM.m9(hP,d2,J,1);hP=d2;var hr=D*i.textureDepth.v.val*(1/100)*(1/255);
if(i.InvT.v)hr=-hr;for(var H=0;H<dx;H++)al[H]+=-hr*hP[H];if(n)console.log("applying texture",Date.now()-R)}var fv=(i.bvlT.v.bvlT=="SfBL"?1:.5)*(i.bvlD.v.BESs=="In"?1:-1)*i.srgR.v.val/100;
for(var H=0;H<dx;H++)al[H]*=fv;if(n)console.log("scaling",Date.now()-R);var f3=i.uglg&&i.uglg.v?Y.b_():i.lagl.v.val;
f3=f3*(Math.PI/180);var dp=i.uglg&&i.uglg.v?Y.kX():i.Lald.v.val;dp=dp*(Math.PI/180);var go=Math.cos(f3)*Math.cos(dp),d6=-Math.sin(f3)*Math.cos(dp),iB=Math.sin(dp),hS=new Float64Array(dx),eF=new Float64Array(dx),bQ=l=="PlEb";
for(var iP=0;iP<f5;iP++)for(var d8=0;d8<s;d8++){var H=iP*s+d8,a6=0,am=0,fj=1;if(iP!=0&&iP!=f5-1&&d8!=0&&d8!=s-1){var dX=al[H-s-1],gc=al[H-s+1],dz=al[H+s-1],gE=al[H+s+1];
a6=-.125*(gc+2*al[H+1]+gE-(dX+2*al[H-1]+dz));am=-.125*(dz+2*al[H+s]+gE-(dX+2*al[H-s]+gc))}else{var cQ=al[H];
am=-(iP==0?al[H+s]-cQ:iP==f5-1?cQ-al[H-s]:.5*(al[H+s]-al[H-s]));a6=-(d8==0?al[H+1]-cQ:d8==s-1?cQ-al[H-1]:.5*(al[H+1]-al[H-1]))}var fi=1/Math.sqrt(a6*a6+am*am+1);
a6*=fi;am*=fi;fj*=fi;var dB=a6*go+am*d6+fj*iB,bp=dB;if(bQ)bp=-a6*go-am*d6+fj*iB;if(dB>0)hS[H]=dB;if(bp>0)eF[H]=bp}if(n)console.log("raycasting",Date.now()-R);
if(i.Sftn.v.val!=0){c.qM.U_(hS,i9,J,i.Sftn.v.val*.43);var ai=i9,i9=hS,hS=ai;if(bQ){c.qM.U_(eF,i9,J,i.Sftn.v.val*.43);
var ai=i9,i9=eF,eF=ai}else c.hL(hS,eF)}if(n)console.log("softening",Date.now()-R);var eN=c.Nn.Sx(i.TrnS.v.Crv.v,1024);
for(var H=0;H<dx;H++){hS[H]=eN[~~(hS[H]*1024)];eF[H]=eN[~~(eF[H]*1024)]}if(n)console.log("contour remap",Date.now()-R);
s=Math.round(s);f5=Math.round(f5);var hu=c.F(s*f5*4);ca.Bm(hu,i.hglC.v);var bP=c.F(s*f5*4);ca.Bm(bP,i.sdwC.v);
var hw=c.F(s*f5*4);ca.Bm(hw,i.hglC.v);var gQ=c.F(s*f5*4);ca.Bm(gQ,i.sdwC.v);var gp=1/iB,aS=1/(1-iB),hj=1/a,iX=new Float64Array(1e3);
for(var H=0;H<1e3;H++)iX[H]=Math.pow(H*.001,.2);for(var iP=0;iP<f5;iP++)for(var d8=0;d8<s;d8++){var H=iP*s+d8,dW=4*H+3,i7=0,i5=0;
i7=hS[H];i5=eF[H];var fM=Math.max(0,Math.min(.9999,(bj[H]+a*.993)*hj));fM=iX[Math.floor(fM*1e3)];var ei=fM*(1-Math.min(1,i7*gp)),bu=fM*(1-Math.min(1,(1-i7)*aS)),hG=fM*(1-Math.min(1,i5*gp)),fb=fM*(1-Math.min(1,(1-i5)*aS));
bP[dW]=Math.round(255*ei);hu[dW]=Math.round(255*bu);gQ[dW]=Math.round(255*hG);hw[dW]=Math.round(255*fb)}if(n)console.log("baking textures",Date.now()-R);
J=K.rect().clone();J.WW(e,e);J.offset(h,x);var iJ={a77:i.bvlS.v.BESl=="strokeEmboss"};if(["InrB","Embs","PlEb"].indexOf(l)!=-1){iJ.yp={eB:hu,T2:J,g_:gz.Sh(i.hglM.v.BlnM),Ks:i.hglO.v.val/100};
iJ.yS={eB:bP,T2:J,g_:gz.Sh(i.sdwM.v.BlnM),Ks:i.sdwO.v.val/100};O.all.push(iJ.yp,iJ.yS)}if(["OtrB","Embs","PlEb"].indexOf(l)!=-1){iJ.F_={eB:hw,T2:J,g_:gz.Sh(i.hglM.v.BlnM),Ks:i.hglO.v.val/100};
iJ.m7={eB:gQ,T2:J,g_:gz.Sh(i.sdwM.v.BlnM),Ks:i.sdwO.v.val/100};O.all.push(iJ.F_,iJ.m7)}if(n)console.log(Date.now()-R);
O.type[T].push(iJ)}if(T=="patternFill"){var h0=K.rect(),g=c.F(h0.X()*4);ca.k3(i,g,h0,Y,C);var d=h0.clone();
d.offset(h,x);var X={eB:g,T2:d,g_:gz.Sh(i.Md.v.BlnM),Ks:i.Opct.v.val/100};O.type[T].push(X);O.all.push(X)}if(T=="ChFX"){var g=c.F(K.eI().length*4);
ca.Bm(g,i.Clr.v);var D=i.blur.v.val,hM=K.rect().clone();hM.WW(D,D);var e0=c.F(hM.X()),fC=c.F(hM.X());
c.zM(K.eI(),K.rect(),fC,hM);c.qM.Oq(fC,e0,hM,D*.43);var cw=c.Nn._$(i.MpgS.v.Crv.v,256,!0);c.SV(e0,cw);
var aD=c.F(K.eI().length),d7=c.F(K.eI().length),az=K.rect().clone();ca.lv(az,i,Y,0);c.zM(e0,hM,aD,az);
az=K.rect().clone();ca.lv(az,i,Y,Math.PI);c.zM(e0,hM,d7,az);var gb=aD.length;for(var H=0;H<gb;H++)g[4*H+3]=Math.abs(aD[H]-d7[H]);
if(i.Invr.v)for(var H=0;H<gb;H++)g[4*H+3]=255-g[4*H+3];var d=K.rect().clone();d.offset(h,x);var X={eB:g,T2:d,g_:gz.Sh(i.Md.v.BlnM),Ks:i.Opct.v.val/100};
O.type[T].push(X);O.all.push(X)}if(T=="OrGl"){var f;if(i.GlwT.v.BETE=="SfBL")f=K.Wa(m,D-m,!0);else f=K.go(D,I,!0);
var A=f.eI,d=f._,hl=A.slice(0);ca.N4(A,i);var g=c.F(d.X()*4);if(i.Grad==null){ca.Bm(g,i.Clr.v);ca.kv(A,i,!1)}else{ca.kv(A,i,null);
var aZ={Fd:A,du:255,E6:0,oo:d};ca.WN(i,g,d,Y,aZ);var dq=i.Nose.v.val/100,fo=d.d;for(var H=0;H<hl.length;
H++){var gF=255,hk=hl[H];if(hk<32){var iU=(hk+hl[H-1]+hl[H+1]+hl[H-fo]+hl[H+fo])*.2-1;gF=Math.min(255,Math.round(Math.max(0,iU)*8))}A[H]=gF}ca.Dx(A,i)}c.Wn(A,g,3);
d.offset(h,x);var X={eB:g,T2:d,g_:gz.Sh(i.Md.v.BlnM),Ks:i.Opct.v.val/100};O.type[T].push(X);O.all.push(X)}if(T=="IrGl"){var f;
if(i.GlwT.v.BETE=="SfBL")f=K.Wa(m,D-m,!1);else f=K.go(D,I,!1);var A=f.eI,d=f._;ca.N4(A,i);if(i.glwS.v.IGSr=="SrcC")c.G$(A);
var g=c.F(d.X()*4);if(i.Grad==null){ca.Bm(g,i.Clr.v);ca.kv(A,i,!0)}else{ca.kv(A,i,null);var aZ={Fd:A,du:255,E6:0,oo:d};
ca.WN(i,g,d,Y,aZ);A.fill(255);ca.Dx(A,i)}c.Wn(A,g,3);d.offset(h,x);var X={eB:g,T2:d,g_:gz.Sh(i.Md.v.BlnM),Ks:i.Opct.v.val/100};
O.type[T].push(X);O.all.push(X)}if(T=="FrFX"){var iD=ca.AA(i),fJ=iD[0],gh=iD[1],d=K.rect().clone(),aM=null,hE=null;
d.WW(Math.ceil(p),Math.ceil(p));if(gh>0){var f=K.Wa(gh,0,!0);hE=f.eI;if(hE.length<d.X()){hE=c.F(d.X());
c.zM(f.eI,f._,hE,d)}}if(fJ>0){var f=K.Wa(fJ,0,!1);aM=c.F(d.X());aM.fill(255);c.zM(f.eI,f._,aM,d)}d.offset(h,x);
var g=c.F(d.X()*4),ep=i.PntT.v.FrFl;if(ep=="SClr")ca.Bm(g,i.Clr.v);if(ep=="GrFl")ca.WN(i,g,d,Y,K.a2U(fJ,gh));
if(ep=="Ptrn")ca.k3(i,g,d,Y,C);var X={eB:g,T2:d,g_:gz.Sh(i.Md.v.BlnM),Ks:i.Opct.v.val/100,$N:hE,N$:aM};
O.type[T].push(X);O.all.push(X)}}}return O};ca.ds=function(L){var C=1/Math.sqrt(L.x*L.x+L.y*L.y+L.jF*L.jF);
L.x*=C;L.y*=C;L.jF*=C};ca.$z=function(L,C){return{x:L.y*C.jF-L.jF*C.y,y:L.jF*C.x-L.x*C.jF,jF:L.x*C.y-L.y*C.x}};
ca.amf=function(L,C){return L.x*C.x+L.y*C.y+L.jF*C.jF};ca.Dx=function(L,C){var U=C.Nose.v.val/100;if(U>0)for(var H=0;
H<L.length;H++){var E=L[H];E=Math.min(510-(1+U)*c.style.b6(H),E);L[H]=E}};ca.WJ=function(L){var C=ca.wq(),U=L.E7,E=!1;
for(var H=0;H<32;H+=8)if(U[H]+U[H+1]+U[4]+U[5]!=0||U[H+2]+U[H+3]+U[6]+U[7]!=1020)E=!0;if(E){U=U.slice(0);
for(var H=0;H<40;H+=4){var Y=U[H]/255,z=U[H+1]/255,r=U[H+2]/255,p=U[H+3]/255;U[H]=Y-1e-4;U[H+1]=Y==z?1e9:1/(z-(Y-1e-4));
U[H+2]=r==p?-1e9:1/(r-(p+1e-4));U[H+3]=p+1e-4}}var T=L.add.iOpa!=null?L.add.iOpa/255:C.fill,k=L.add.vstk;
if(k&&!k.fillEnabled.v&&(!k.strokeEnabled.v||k.strokeStyleLineWidth.v.val==0))T=0;return{fill:T,UZ:E?U:null,QN:L.add.brst!=null?L.add.brst:C.QN,a8n:L.add.knko!=null?L.add.knko:C.a8n,style:!1,H1:!1}};
ca.wq=function(){return{fill:1,UZ:null,QN:[1,1,1],a8n:0,style:!1,H1:!1}};ca.fi=function(L,C){if(C==null)return null;
var U=L.Idnt.v,E=null;for(var H=0;H<C.length;H++)if(C[H].id==U)return C[H];return null};ca.jz=function(L,C,U){var E=["patternFillMulti","ebblMulti","frameFXMulti"];
for(var H=0;H<E.length;H++){var Y=L.v[E[H]].v;for(var z=0;z<Y.length;z++)if(Y[z].v.Ptrn)C._q(ca.fi(Y[z].v.Ptrn.v,U))}};
ca.a44=function(L,C,U){var E=["patternFillMulti","ebblMulti","frameFXMulti"];for(var H=0;H<E.length;
H++){var Y=L.v[E[H]].v;for(var z=0;z<Y.length;z++)if(Y[z].v.Ptrn){var r=Y[z].v.Ptrn.v,p=ca.fi(r,U),T=ca.fi(r,C.add.Patt);
if(p==null&&T)U.push(T)}}};ca.k3=function(L,C,U,E,Y){var z=ca.fi(L.Ptrn.v,E.add.Patt);if(z!=null&&!U.ue()){var r=z.Zq,p=r[0],T=r[1],k=0;
c.cf(r);var P=L.Scl.v.val/100;while((P<.3||P==.5)&&r[k+2]){P*=T.d/r[k+3].d;k+=2;p=r[k];T=r[k+1]}var b=c.scale.k3(p,T.d,T.v),Q=-U.x+L.phase.v.Hrzn.v-1,K=-U.y+L.phase.v.Vrtc.v-1;
if(L.Algn!=null&&!L.Algn.v){}else{Q+=Y.x;K+=Y.y}c.scale.a3j(b,C,U.d,U.v,P,P,Q+1,K+1)}};ca.WN=function(L,C,U,E,Y,z){if(z==null)z=U;
var r=L.Type?L.Type.v.GrdT:"shapeburst",p=L.Algn&&L.Algn.v?z:new _(0,0,E.d,E.v),T=L.Angl?c.W.LA(L,p):[new hZ(0,0),new hZ(100,0)],k=T[0].x,P=T[0].y,b=T[1].x-k,Q=T[1].y-P,K=Math.sqrt(b*b+Q*Q);
K=1/(2*K*K);var h=[b*K,Q*K,-Q*K,b*K],x=L.Rvrs?L.Rvrs.v:!1,O=L.Dthr?L.Dthr.v:!1;c.W.Rv(L.Grad.v,C,U,h,k,P,x,gM.W.types.indexOf(r),0,0,Y,O)};
ca.aj7=function(L,C){for(var H=0;H<L.all.length;H++){var U=L.all[H];U.oZ=U.T2.clone();U.oZ.offset(C.x,C.y)}};
ca.gD=function(L,C,U,E,Y,z){var r=t.i8?ca.Oa:ca.CX;ca.aj7(C,U);var p=C.type.DrSh;for(var H=0;H<p.length;
H++)if(!p[H].a4Z)r(p[H],E,Y,z)};ca.nS=function(L,C,U,E,Y,z,r,p,T,k){var P=U,b=t.i8?ca.Oa:ca.CX,Q=t.i8?t.Q.e_:c.Q.f3,K;
K=C.type.DrSh;for(var H=0;H<K.length;H++)if(K[H].a4Z)b(K[H],E,Y,z);K=C.type.OrGl;for(var H=0;H<K.length;
H++)b(K[H],E,Y,z);var h="patternFill GrFl SoFi ChFX IrGl IrSh".split(" ");for(var x=0;x<h.length;x++){var K=C.type[h[x]];
for(var H=0;H<K.length;H++)b(K[H],r,P,z)}var O=C.type.ebbl[0],y=O!=null&&O.a77;K=C.type.FrFX;for(var H=0;
H<K.length;H++){var v=K[H];g_.Uf.zM(p,k,T,k,z);b(v,T,k,z);if(y&&H==K.length-1){if(O.m7)b(O.m7,T,k,z);
if(O.F_)b(O.F_,T,k,z);if(O.yS)b(O.yS,T,k,z);if(O.yp)b(O.yp,T,k,z)}if(v.N$||v.Dk)Q(T,k,r,P,t.i8?v.Dk:v.N$,v.oZ,0,z,1);
if(v.$N||v.$S)Q(T,k,E,Y,t.i8?v.$S:v.$N,v.oZ,0,z,1)}if(!y&&O!=null){if(O.m7)b(O.m7,E,Y,z);if(O.F_)b(O.F_,E,Y,z);
if(O.yS)b(O.yS,r,P,z);if(O.yp)b(O.yp,r,P,z)}};ca.CX=function(L,C,U,E){var Y=ca.wq();Y.fill=L.Ks;Y.style=!0;
c.Q.Kj(L.g_,L.eB,L.oZ,C,U,E,1,Y)};ca.Oa=function(L,C,U,E){var Y=ca.wq();Y.fill=L.Ks;Y.style=!0;t.Q.eY(L.g_,L.s$,L.oZ,C,U,E,1,Y)};
ca.N4=function(L,C){var U=1-C.Inpr.v.val/100,E=1+Math.tan(U*(Math.PI/2)),Y=L.length;for(var H=0;H<Y;
H++)L[H]=Math.min(255,Math.round(L[H]*E))};ca.kv=function(L,C,U){var E=C.blur.v.val,Y=Math.round(E*(C.Ckmt.v.val/100));
if(E>Y){var z=c.Nn._$(C.TrnS.v.Crv.v,256,!0);c.SV(L,z)}if(U!=null&&C.Nose.v.val>0)c.style.NK(L,C.Nose.v.val/100,U)};
ca.Bm=function(L,C,U){if(U==null)U=255;var E=c.W.Lt(C),Y=U<<24|E.O<<16|E.P<<8|E.h,z=new Uint32Array(L.buffer);
z.fill(Y)};ca.lv=function(L,C,U,E){var Y=C.uglg&&C.uglg.v?U.b_():C.lagl.v.val;Y=Y*Math.PI/180+E;var z=Math.cos(Y)*C.Dstn.v.val,r=Math.sin(Y)*C.Dstn.v.val;
L.x-=Math.round(z);L.y+=Math.round(r)};ca.HS=function(L){if(L==null)return null;var C=L.frameFXMulti.v;
if(C.length==0)return null;C=C[0].v;var U=JSON.parse(JSON.stringify(gM.H0.default));ca.tF(C,U);return U};
ca.tF=function(L,C){var U=gM.stroke.Ug.indexOf(L.PntT.v.FrFl),E=[gM.TL,gM.DV,gM.ex][U],Y=C.strokeStyleContent.v={classID:gM.H0.g0[U]};
for(var H=0;H<E.length;H++)Y[E[H]]=L[E[H]];C.strokeEnabled=L.enab;C.strokeStyleLineWidth=L.Sz;C.strokeStyleLineAlignment.v.strokeStyleLineAlignment=gM.H0.jr[gM.stroke.types.indexOf(L.Styl.v.FStl)];
C.strokeStyleOpacity=L.Opct;C.strokeStyleBlendMode=L.Md};ca.zs=function(L,C){var U=[];for(var H=0;H<L.length;
H++)U.push({t:"UntF",v:{type:"#Nne",val:Math.round(L[H]*C)}});return U};ca.wN=function(L,C,U,E){this.Ph=C.clone();
this.afD=C.clone();this.afD.WW(U,U);if(E){this.Ph.WW(1,1);this.xs=c.F(this.Ph.X());c.zM(L,C,this.xs,this.Ph)}else this.xs=L;
this.yz=null;this.vH=null;this.MG=null};ca.wN.prototype.eI=function(){return this.xs};ca.wN.prototype.rect=function(){return this.Ph};
ca.wN.prototype.It=function(){return this.afD};ca.wN.prototype.EP=function(){if(this.yz)return this.yz;
this.yz=this.eI().slice(0);c.G$(this.yz);return this.yz};ca.wN.prototype.LY=function(){if(this.vH)return this.vH;
this.vH=new Float64Array(this.rect().X());c.style.i3(this.EP(),this.vH,this.rect().d,this.rect().v);
return this.vH};ca.wN.prototype.sS=function(){if(this.MG)return this.MG;var L=this.It(),C=c.F(L.X());
c.zM(this.eI(),this.rect(),C,L);this.MG=new Float64Array(L.X());c.style.i3(C,this.MG,L.d,L.v);return this.MG};
ca.wN.prototype.a2U=function(L,C){var U={du:-C,E6:L,oo:null,Fd:null};if(C==0){U.oo=this.rect();U.Fd=this.LY();
return U}var E=this.sS().slice(0),Y=this.It();U.oo=Y;U.Fd=E;for(var H=0;H<E.length;H++)E[H]=-E[H];if(L==0)return U;
var z=this.LY(),r=this.rect();for(var p=0;p<r.v;p++)for(var T=0;T<r.d;T++){var k=p*r.d+T,P=(p+r.y-Y.y)*Y.d+T+r.x-Y.x;
E[P]+=z[k]}return U};ca.wN.prototype.Wa=function(L,C,U){var E=Math.ceil(L+C),Y={_:this.rect().clone(),eI:null};
Y._.WW(E,E);Y.eI=c.F(Y._.X());if(L==0&&C==0)c.hL(U?this.eI():this.EP(),Y.eI);else{var z=c.F(Y._.X());
c.zM(this.eI(),this.rect(),z,Y._);if(!U)c.G$(z);if(L!=0){if(U)c.style.fC(z,Y._,this.sS(),this.It(),L);
else c.style.fC(z,Y._,this.LY(),this.rect(),L)}if(C!=0)c.qM.Oq(z,Y.eI,Y._,Math.max(1,C*.43));else Y.eI=z}return Y};
ca.wN.prototype.go=function(L,C,U){var E=L*(C-.5),Y={_:this.rect().clone(),eI:null};if(U)Y._.WW(L,L);
Y.eI=c.F(Y._.X());var z=Y._.d,r=Y._.v,p=U?this.sS():this.LY(),T=U?this.It():this.rect(),k=Y._,P=k.eR(T),z=P.d,r=P.v,b=P.x-k.x,Q=P.y-k.y,K=P.x-T.x,h=P.y-T.y,x=1-C*2;
for(var O=0;O<r;O++)for(var y=0;y<z;y++){var v=p[(O+h)*T.d+y+K],i=v/L;Y.eI[(O+Q)*k.d+y+b]=Math.max(0,Math.min(255,255-255*((i+x)/(1+x))))}return Y};
ca.wE=function(L,C,U){var E=L.Lefx,Y=L.blendOptions;if(E){var z=C.add.lmfx;if(U==null)U=z?z.Scl.v.val:100;
C.add.lmfx=JSON.parse(JSON.stringify(E.v));ca.xX(C.add.lmfx,U/C.add.lmfx.Scl.v.val);if(z)C.add.lmfx.Scl.v.val=z.Scl.v.val}else delete C.add.lmfx;
if(Y){Y=Y.v;if(Y.Md)C.B4=gz.Sh(Y.Md.v.BlnM);if(Y.Opct)C.opacity=Math.round(Y.Opct.v.val*255/100);if(Y.fillOpacity)C.add.iOpa=Math.round(Y.fillOpacity.v.val*255/100);
if(Y.Blnd){var r=[];for(var H=0;H<10;H++)r.push(0,0,255,255);var p=Y.Blnd.v,T="SrcB Srcl SrcW Srcm DstB Dstl DstW Dstt".split(" ");
for(var H=0;H<p.length;H++){var k=p[H].v,P=8*["Gry","Rd","Grn","Bl"].indexOf(k.Chnl.v[0].v.enum);for(var b=0;
b<8;b++){r[P+b]=k[T[b]].v}}C.E7=r}}};ca.dh=function(L){var C="SrcB Srcl SrcW Srcm DstB Dstl DstW Dstt".split(" "),U=[],E=L.E7;
for(var H=0;H<4;H++){var Y=H*8;if(E[Y]+E[Y+1]+E[Y+4]+E[Y+5]==0&&E[Y+2]+E[Y+3]+E[Y+6]+E[Y+7]==4*255)continue;
var z={t:"Objc",v:{classID:"Blnd",Chnl:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:["Gry","Rd","Grn","Bl"][H]}}]}}};
U.push(z);for(var r=0;r<8;r++)z.v[C[r]]={t:"long",v:E[H*8+r]}}var p={classID:"blendOptions"};if(L.B4!="norm")p.Md={t:"enum",v:{BlnM:gz.Wx(L.B4)}};
if(L.opacity!=255)p.Opct={t:"UntF",v:{type:"#Prc",val:Math.round(L.opacity*100/255)}};if(L.add.iOpa!=null)p.fillOpacity={t:"UntF",v:{type:"#Prc",val:Math.round(L.add.iOpa*100/255)}};
if(U.length!=0)p.Blnd={t:"VlLs",v:U};var T={hB:{classID:"null",Idnt:{t:"TEXT",v:b7.o7()+"-bd9f-11d5-b8ba-b73f8571793d"},Nm:{t:"TEXT",v:"Custom Style"}},mV:{classID:"Styl",blendOptions:{t:"Objc",v:p}}},k=L.add.lmfx;
if(k)T.mV.Lefx={t:"Objc",v:k};return T};function fW(){}fW.FA=function(L){return JSON.parse(JSON.stringify(L))};
fW.qR=function(L){var C=fW.FA(fW.a9H),U=C.Brsh.v;if(L!=null){delete U.Hrdn;U.classID="sampledBrush";
U.Nm={t:"TEXT",v:"layer.png"},U.sampledData={t:"TEXT",v:L}}return C};fW.a9H={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}};
fW.ds={};fW.ds.check=function(L){var C=fW.ds.i4;for(var H=0;H<C.length;H++)if(L[C[H]]==null)L[C[H]]=JSON.parse(fW.ds.ET[C[H]]);
var U=[];for(var H=0;H<C.length;H++)U.push(C[H]);var E=fW.ds.SA;for(var H=0;H<E.length;H++){var Y=E[H][0],z=E[H][1],r=!0;
for(var p=0;p<Y.length;p++)r=r&&L[Y[p]].v==!0;if(r)for(var p=0;p<z.length;p++){if(L[z[p]]==null)console.log("Missing conditional parameter "+z[p]);
else U.push(z[p])}}for(var T in L)if(U.indexOf(T)==-1)console.log("Extra parameter "+T);L=L.Brsh.v;C=fW.ds.dp.i4;
for(var H=0;H<C.length;H++)if(L[C[H]]==null)L[C[H]]=JSON.parse(fW.ds.dp.ET[C[H]]);U=[];for(var H=0;H<C.length;
H++)if(L[C[H]])U.push(C[H]);else console.log("Missing default parameter "+C[H]);E=fW.ds.dp.ahA[L.classID];
for(var H=0;H<E.length;H++)if(L[E[H]]==null&&E[H]!="dtipsGridSize"&&E[H]!="dtipsErodibleTipHeightMap"&&L.am_!=1)console.log("Missing conditional parameter "+E[H]);
else U.push(E[H]);for(var T in L)if(U.indexOf(T)==-1)console.log("Extra parameter "+T)};fW.ds.UL=function(L){var C=fW.ds.SA;
for(var H=0;H<C.length;H++){var U=C[H][0],E=C[H][1],Y=!0;for(var z=0;z<U.length;z++)Y=Y&&L[U[z]]&&L[U[z]].v==!0;
if(Y){for(var z=0;z<E.length;z++)if(L[E[z]]==null){L[E[z]]=JSON.parse(fW.ds.ET[E[z]])}}else for(var z=0;
z<E.length;z++)if(L[E[z]]!=null){delete L[E[z]]}}};fW.ds.dp={};fW.ds.dp.i4="classID Dmtr Angl Spcn Intr flipX flipY".split(" ");
fW.ds.dp.ET={flipX:"{\"t\":\"bool\",\"v\":false}",flipY:"{\"t\":\"bool\",\"v\":false}"};fW.ds.dp.ahA={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(" ")};
fW.ds.SA=[[["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"]]];
fW.ds.i4="classID Nm Brsh useTipDynamics usePaintDynamics useColorDynamics useScatter useTexture useBrushSize useBrushPose Wtdg Nose Rpt dualBrush brushGroup".split(" ");
fW.ds.ET={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 dH(L,C){this.anM=L;this.NN=C==null?0:C;this.dir=0}dH.prototype.Q8=function(L,C){var U=this.anM,E=new hZ(L.x-U.x,L.y-U.y),Y=new c0;
Y.rotate(-this.NN);E=Y.Om(E);if(this.dir==0&&!U.cg(L))this.dir=Math.abs(E.x)<Math.abs(E.y)?1:2;if(C.q(G.PS)){if(this.dir==1)E.x=0;
if(this.dir==2)E.y=0}Y.G$();E=Y.Om(E);var z=new hZ(U.x+E.x,U.y+E.y);return z};function iR(L,C,U,E,Y,z,r,p){this.sd=C;
this.wY=U;this.ho=z;this.F$=E;if(E.Lj==null)E.Lj=[!1,!0];this.kF=null;this.a2=null;this.FP=0;this.aj4=0;
this.af4=0;this.pg=0;this._B=0;this.a9p=r;this.bl=new _;this.WR=new _;this.rect=new _;if(p!=null){this.eB=p}else{var T=iR.Hy;
if(T.length!=r.X()*4)T=c.F(r.X()*4);else T.fill(0);this.eB=iR.Hy=T}this.rect=r.clone();this.pd=[];this.TX=[];
this.vv=null;this.yx=0;this.O=null;this.DP="";this.gX=null;this.jW(L,Y)}iR.Hy=c.F(16);iR.prototype.jW=function(L,C){this.yx=C;
this.O=L;this.DP=JSON.stringify(L)+JSON.stringify(this.F$.mS);this.gX=iR.amh(L,this.sd,this.wY)};iR.prototype.moveTo=function(L,C,U){U=this._C(U);
this.FP=U;var E=new hZ(L,C),Y=this.O.Brsh.v.Dmtr.v.val;this.kF=E.clone();this.a2=E.clone();this.vv=E.clone();
this.pd=[L,C];this.TX=[U];var z=this.F$.Lj;if(this.F$.mf!=iR.gh)this.DH(this.O5(E,this.I0()*(z[1]?U:1),this.F$.u8*(z[0]?U*.5:1),new hZ(0,0)));
this.pg=E.clone()};iR.prototype.lineTo=function(L,C,U){U=this._C(U);var E=this.pd,Y=E.length,z=E[Y-2],r=E[Y-1];
if(L==z&&C==r)return;var p=this.O.Brsh.v.Dmtr.v.val,T=Math.ceil(p)+1,k=new _(Math.round(z),Math.round(r),0,0);
k.WW(T,T);var P=new _(Math.round(L),Math.round(C),0,0);P.WW(T,T);this.M2(k.EU(P));this.pd.push(L,C);
this.TX.push(U);Y+=2;if(Y>=6)this.DH(this.KN(Y))};iR.prototype._C=function(L){if(L==null)L=1;L=Math.max(.05,Math.min(5,L));
if(isNaN(L)){alert("Pressure is not a number");throw"e"}return L};iR.prototype.DH=function(L){this.bl=L;
this.WR=this.WR.EU(L)};iR.prototype.finish=function(){var L=this.pd,C=L.length,U;if(C==4)U=this.Sl(L[C-2],L[C-1],this.TX[(C>>1)-1],!0);
if(C>4)U=this.KN(C+2);if(U)this.DH(U)};iR.prototype.KN=function(L){var C=this.pd,U=this.TX,E=C[L-6],Y=C[L-5],z=C[L-4],r=C[L-3],p=U[(L>>1)-3],T=U[(L>>1)-2],k=new hZ(0,0),P=new hZ(0,0);
if(8<=L)k=iR.XY(C[L-8],C[L-7],E,Y,z,r);if(L<=C.length)P=iR.XY(C[L-2],C[L-1],z,r,E,Y);var b=E+k.x,Q=Y+k.y,K=z+P.x,h=r+P.y,x=new _;
for(var H=0;H<10;H++){var O=(H+1)*.1,y=1-O,v=y*y*y*E+3*O*y*y*b+3*O*O*y*K+O*O*O*z,i=y*y*y*Y+3*O*y*y*Q+3*O*O*y*h+O*O*O*r,D=this.Sl(v,i,p+O*(T-p));
x=x.EU(D)}return x};iR.XY=function(L,C,U,E,Y,z){var r=L-U,p=C-E,T=Y-U,k=z-E,P=Math.sqrt(r*r+p*p),b=Math.sqrt(T*T+k*k),Q=Math.acos((r*T+p*k)/(P*b))/Math.PI,K=.35,h=.1;
Q=h+Q*(K-h);var x=Y-L,O=z-C,y=Math.sqrt(x*x+O*O),v=Q*b/y;return new hZ(x*v,O*v)};iR.prototype.Sl=function(L,C,U,E){var Y=new _,z=this.F$.akp;
if(z==null)z=0;if(z==0||E){Y=this.nc(L,C,U);return Y}var r=this.vv,p=L-r.x,T=C-r.y,k=Math.sqrt(p*p+T*T);
p/=k;T/=k;if(k>z){var P=r.x+p*(k-z),b=r.y+T*(k-z);Y=this.nc(P,b,U);this.vv.U6(P,b)}return Y};iR.prototype.nc=function(L,C,U){var E=new _,Y=new hZ(L,C),z=this.O.Brsh.v.Dmtr.v.val,r=this.F$.mf,p=Y.AE(this.a2);
p.normalize(1);var T=hZ.sl(this.a2,Y),k=-this.aj4,P=this.a2.clone(),b=this.F$.Lj;while(!0){var Q=this.FP+(U-this.FP)*(Math.max(0,k)/T),K=this.I0()*(b[1]?Q:1),h=this.ahO()*(K+this.af4)/2;
if(r==iR.gh)h=1;if(k+h<T){k+=h;var x=new hZ(this.a2.x+p.x*k,this.a2.y+p.y*k),v=1;if(r==iR.gh){var O=P.clone();
O.x+=p.x>0?1:-1;var y=P.clone();y.y+=p.y>0?1:-1;if(hZ.sl(O,x)<hZ.sl(y,x))x=O;else x=y;k=hZ.sl(x,this.a2)}if(this.O.useScatter.v==!0){v=this.O.Cnt.v;
var i=this.O.countDynamics.v.jitter.v.val/100,D=i*(-1+2*this.AH());v+=Math.round(v*D)}for(var H=0;H<v;
H++){var I=this.O5(x,K,this.F$.u8*(b[0]?Q*.5:1),p);E=E.EU(I)}P=x}else break}this.aj4=T-k;this.a2=Y;this.FP=U;
return E};iR.prototype.ahO=function(){var L=this.O.Brsh.v,C=L.Spcn.v.val,U=Math.max(5,L.Rndn.v.val);
return U/100*(C/100)};iR.prototype.I0=function(){var L=this.O,C=L.Brsh.v.Dmtr.v.val;if(L.useTipDynamics.v){var U=C*(L.minimumDiameter.v.val/100);
C=U+(C-U)*(1-this.AH()*(L.szVr.v.jitter.v.val/100))}return C};iR.prototype.O5=function(L,C,U,E){U=Math.min(1,U);
var Y=this.O,z=this.O.Brsh.v,r=z.Dmtr.v.val,p=this.F$,T=p.mf,k=p.al$,P=new c0;P.translate(-this.gX.V_.d/2,-this.gX.V_.v/2);
P.scale(1/this.gX.a9N,1/this.gX.a9N);P.scale(C/r,C/r);P.scale(1,Math.max(5,z.Rndn.v.val)/100);if(Y.useTipDynamics.v){var b=Y.minimumRoundness.v.val/100;
P.scale(1,b+(1-b)*Math.round(100-this.AH()*Y.roundnessDynamics.v.jitter.v.val)/100);P.rotate((-.5+this.AH())*4*Math.PI*(Y.angleDynamics.v.jitter.v.val/100))}P.rotate(z.Angl.v.val*(Math.PI/180));
if(Y.useScatter.v){var Q=(-1+2*this.AH())*Y.scatterDynamics.v.jitter.v.val/100;P.translate(-Q*C*E.y,Q*C*E.x)}P.translate(L.x,L.y);
var K=this.a8L(P,L);this.M2(K.rect);var h=K.rect.clone();if(T==null){var x=this.Lt(Y);c.n0(K.p_,Math.round(x.O*255)<<16|Math.round(x.P*255)<<8|Math.round(x.h*255)<<0,4278190080);
if(this.WR.ue()&&this.rect.cg(K.rect)&&U==1)this.eB=K.p_.slice(0);else c.Q.akg(K.p_,K.rect,this.eB,this.rect,K.rect,U)}if(T==iR.gh){var O=new hZ(K.rect.x+K.rect.d/2,K.rect.y+K.rect.v/2),y=Math.round(O.x-this.pg.x),v=Math.round(O.y-this.pg.y),i=K.rect.clone();
i.offset(-y,-v);var D=i.eR(this.rect);D.offset(y,v);c.La(this.eB,this.rect,K.p_,i);c.Q.fk(K.p_,K.rect,this.eB,this.rect,K.lm,K.rect,U)}if(T==iR.OZ||T==iR.iO||T==iR.FG){var I=K.rect.eR(this.rect),m;
if(I.cg(K.rect))m=K.lm;else{m=c.F(I.X());c.zM(K.lm,K.rect,m,I)}var f=c.F(I.X()*4);c.La(this.eB,this.rect,f,I);
if(T==iR.iO){var A=f.slice(0),d=c.N1.hx([-1,-1,-1,-1,25,-1,-1,-1,-1]);c.N1.jg(f,A,I.d,I.v,d,0);c.hL(A,f)}else if(T==iR.FG){var g=hi.Q4("UnsM");
g.Amnt.v.val=15;g.Thsh.v=0;g.Rds.v.val=5;var A=c.F(f.length);hi.QE("UnsM",{buffer:f,rect:I},g,0,0,{buffer:A,rect:I});
c.hL(A,f)}else{hi.mK(1,c.qM.wv,f,I)}c.Q.fk(f,I,this.eB,this.rect,m,I,U)}this.af4=C;this.pg=O;return h};
iR.prototype.Lt=function(L){var C=iR.aO(this.yx);if(L.useColorDynamics&&L.useColorDynamics.v){var U=1-this.AH()*L.clVr.v.jitter.v.val/100,E=iR.aO(this.ho);
C.h=U*C.h+(1-U)*E.h;C.P=U*C.P+(1-U)*E.P;C.O=U*C.O+(1-U)*E.O;var Y=(-.5+this.AH())*L.H.v.val/100,z=(-1+2*this.AH())*L.Strt.v.val/100,r=(-1+2*this.AH())*L.Brgh.v.val/100,p=c.t2(C.h,C.P,C.O);
p.fg=(p.fg+Y+1)%1;p.uR=p.uR+z;if(p.uR<0)p.uR=-p.uR;if(p.uR>1)p.uR=1-(p.uR-1);p.oe=p.oe+r;if(p.oe<0)p.oe=-p.oe;
if(p.oe>1)p.oe=1-(p.oe-1);C=c.D5(p.fg,p.uR,p.oe)}return C};iR.prototype.ds=function(L){return Math.max(0,Math.min(1,L))};
iR.prototype.AH=function(){this._B++;return iR.hash(this._B)};iR.aO=function(L){return{h:(L>>16&255)/255,P:(L>>8&255)/255,O:(L>>0&255)/255}};
iR.hash=function(L){L=L^61^L>>16;L=L+(L<<3);L=L^L>>4;L=L*668265261;L=L^L>>15;return(L&16777215)/16777215};
iR.gR=[];iR.ahb=function(L,u){var C=L.ia(),U=u.ia();if(C<U){var E=C;C=U;U=E}var Y=L.R-u.R,z=L.O-u.O,r=L.Z9-u.Z9,p=L.J2-u.J2;
return U!=0&&C-U<.025&&Math.max(Y*Y,z*z,r*r,p*p)<=.01};iR.prototype.a8L=function(L,C){var U=null,z;for(var H=0;
H<iR.gR.length;H++)if(iR.gR[H].DP==this.DP){U=iR.gR[H];iR.gR.splice(H,1)}if(U==null)U={GX:[],DP:this.DP,nC:0,X:0};
var E=U.GX,Y=this.F$.mS;if(Y){L=L.clone();L.Yt=Math.floor(L.Yt);L.rv=Math.floor(L.rv)}var r=iR.qZ(L.Yt,L.rv);
for(var H=0;H<E.length;H++){var p=E[H];if(!iR.ahb(p.PR,L))continue;if(iR.agc(p.v3,r)<.2||p.rect.X()>2500){z=p;
break}}var T=Math.round(this.O.Brsh.v.Dmtr.v.val);if(z){z.rect.x=Math.round(z.TU.x-z.PR.Yt+L.Yt);z.rect.y=Math.round(z.TU.y-z.PR.rv+L.rv);
if(Y){z.rect.x=Math.round(C.x-z.rect.d/2);z.rect.y=Math.round(C.y-z.rect.v/2)}z.nC=Date.now()}else{var k;
if(Y&&T<=3){k={buffer:c.F(T*T*4),rect:new _(Math.round(C.x-T/2),Math.round(C.y-T/2),T,T)};c.n0(k.buffer,4278190080)}else if(L.R==1&&L.O==0&&L.Z9==0&&L.J2==1){k={buffer:this.gX.p_,rect:this.gX.V_.clone()};
k.rect.x=Math.round(L.Yt);k.rect.y=Math.round(L.rv)}else k=W.o.dy([this.gX.p_,this.gX.V_],L);if(Y){for(var H=0;
H<k.buffer.length;H++)k.buffer[H]=k.buffer[H]>127?255:0}if(k==null)k={buffer:c.F(0),rect:new _};var P=L.Yt-Math.floor(L.Yt),b=L.rv-Math.floor(L.rv);
z={p_:k.buffer,lm:c.F(k.rect.X()),rect:k.rect,TU:k.rect.clone(),PR:L,v3:iR.qZ(L.Yt,L.rv),nC:Date.now()};
c.wH(z.p_,z.lm,3);E.push(z);U.X+=k.rect.X();if(E.length>2e3||U.X>100*100*400){console.log("pruning",U.X,E.length);
E.sort(function(K,h){return h.nC-K.nC});while(E.length>1e3||U.X>100*100*200){var Q=E.pop();U.X-=Q.rect.X()}}}U.GX=E;
U.nC=Date.now();iR.gR.push(U);iR.gR.sort(function(K,h){return h.nC-K.nC});while(iR.gR.length>3)iR.gR.pop();
return z};iR.qZ=function(L,C){return new hZ(L-Math.floor(L),C-Math.floor(C))};iR.agc=function(L,C){var U=C.x,E=C.y,Y=Math.abs(U-L.x),z=Math.abs(E-L.y);
if(Math.abs(U-1-L.x)<Y)U--;else if(Math.abs(U+1-L.x)<Y)U++;if(Math.abs(E-1-L.y)<z)E--;else if(Math.abs(E+1-L.y)<z)E++;
Y=L.x-U;z=L.y-E;return Math.sqrt(Y*Y+z*z)};iR.prototype.M2=function(L){};iR.amh=function(L,C,U){var E,Y,z,r=L.Brsh.v.Dmtr.v.val;
if(L.Brsh.v.classID=="computedBrush"){var p=L.Brsh.v.Hrdn.v.val/100,T=1+.55*(1-p);z=r<100?1.2:1;var k=Math.round(z*r*T);
Y=new _(0,0,k,k);E=c.F(k*k*4);var P=new Uint32Array(E.buffer),b=k/2,Q=T/b,K=Date.now(),h=iR.IG(p),x=Math.round(8e3/b),C=h[0],O=h[1]-x,y=h[2]+x,v=Math.min(k,(k>>>1)+1);
for(var H=0;H<v;H++){var i=Q*(H-b+.25);i*=i;var D=Q*(H-b+.75);D*=D;var I=H*k,m=(k-1-H)*k;for(var f=0;
f<v;f++){var A=Q*(f-b+.25),d=Math.floor(Math.sqrt(A*A+i)*(4e3/1.55));if(y<d)continue;else if(d<O){var g=4278190080;
while(f<v){var X=k-1-f;P[I+f]=g;P[I+X]=g;P[m+f]=g;P[m+X]=g;f++}break}else{var n=Q*(f-b+.75),R=Math.floor(Math.sqrt(n*n+i)*(4e3/1.55)),l=Math.floor(Math.sqrt(A*A+D)*(4e3/1.55)),w=Math.floor(Math.sqrt(n*n+D)*(4e3/1.55)),g=~~(.5+255*.25*(C[d]+C[R]+C[l]+C[w]))<<24,X=k-1-f;
P[I+f]=g;P[I+X]=g;P[m+f]=g;P[m+X]=g}}}}if(L.Brsh.v.classID=="sampledBrush"){var V;for(var H=0;H<C.length;
H++)if(C[H].id==L.Brsh.v.sampledData.v)V=C[H];Y=new _(0,0,V._.d,V._.v);z=Math.max(Y.d,Y.v)/r;E=c.F(Y.X()*4);
c.Wn(V.channel,E,3)}while(Math.min(Y.d,Y.v)>r*2){var F=new _(Y.x,Y.y,Math.floor(Y.d/2),Math.floor(Y.v/2)),Z=W.o.dy([E,Y],new c0(F.d/Y.d,0,0,F.v/Y.v,0,0));
z*=F.d/Y.d;Y=Z.rect;E=Z.buffer}return{a9N:z,V_:Y,p_:E}};iR.iU=[];iR.IG=function(L){if(iR.iU[L])return iR.iU[L];
var C=Math.pow(L,.55),U=new Float64Array(8e3),E=0,Y=8e3;for(var H=0;H<8e3;H++){var z=iR.aiu(H*(1.55/4e3),C);
if(z>=1)E=H;else if(z<=0&&Y==8e3)Y=H;U[H]=z}var r=[U,E,Y];iR.iU[L]=r;return r};iR.aiu=function(L,C){var U=L<C?1:iR.ad9((L-C)/Math.pow(1.001-C,.86));
return U};iR.ad9=function(L){var C=L*.85;return Math.exp(-(C*C)*(1/(2*.4*.4)))*(1/(.4*Math.sqrt(2*Math.PI)))};
iR.prototype.dm=function(){return this.rect.clone()};iR.prototype.Fr=function(){return this.bl.eR(this.rect)};
iR.prototype.VO=function(){return this.WR.eR(this.rect)};iR.prototype.fS=function(){return this.eB};
iR.UF=null;iR.vU=null;iR.BU=function(L,C,U,E,Y,z){var r=iR.UF,p=iR.vU;if(r==null){iR.UF=r=B.w("canvas","");
iR.vU=p=r.getContext("2d")}if(z==null)z=E;if(r.width!=z||r.height!=Y){r.width=z;r.height=Y}else p.clearRect(0,0,z,Y);
p.fillStyle="#000000";p.font=Math.floor(10*B.M())+"px sans-serif";var T=L.Brsh.v.Dmtr.v.val,k=""+T,P=p.measureText(k);
p.fillText(k,(E-P.width)/2,Y-2);var b=E,Q=Y-10*B.M(),K=Math.min(b,Q),h=L.Brsh.v.classID;if(h=="computedBrush"){p.translate(b/2,Q/2);
p.rotate(-L.Brsh.v.Angl.v.val*Math.PI/180);p.scale(1,.1+.9*L.Brsh.v.Rndn.v.val/100);var x=Math.min(.95*K/2,T/2)+.5,O=.9*L.Brsh.v.Hrdn.v.val/100,y=p.createRadialGradient(0,0,0,0,0,x);
y.addColorStop(O,"rgba(0,0,0,1)");y.addColorStop((.5+O)/1.5,"rgba(0,0,0,.5)");y.addColorStop(1,"rgba(0,0,0,0)");
p.fillStyle=y;p.fillRect(-x,-x,2*x,2*x);p.setTransform(1,0,0,1,0,0)}else if(h=="sampledBrush"){var v,f=0;
for(var H=0;H<C.length;H++)if(C[H].id==L.Brsh.v.sampledData.v)v=C[H];var i=v.acx;if(i==null){i=v.acx=[v.channel,v._];
c.Zl(i)}var D=v.channel,I=v._.d,m=v._.v;while((I>b||m>Q)&&i[f+2]){f+=2;D=i[f];I=i[f+1].d;m=i[f+1].v}if(I*m!=0){var A=c.F(I*m*4);
c.Wn(D,A,3);var d=new ImageData(new Uint8ClampedArray(A.buffer),I,m);p.putImageData(d,Math.round((b-I)/2),Math.round((Q-m)/2))}}else{}return r.toDataURL()};
iR.zl=function(L,C,U,E){if(U==0)U=1;var Y=L.Brsh.v,z=Y.Dmtr.v.val,r=Y.Dmtr.v.val=Math.min(E!=null?Math.round(E*2.6):3e3,z*U),p=Y.Hrdn?Y.Hrdn.v.val/100:1,T=E!=null?E:Math.round(r*(1+.55*(1-p)))+4,b;
T=Math.max(15,Math.min(T,3e3));var k=new _(0,0,T,T),P=new iR(L,C,null,{u8:1},16711712,0,k);Y.Dmtr.v.val=z;
P.moveTo(k.d/2,k.v/2);var Q=P.fS(),K=P.dm();if(k.cg(K))b=Q;else{b=c.F(k.X()*4);c.La(Q,K,b,k)}return[b,k,r]};
iR.J$=function(L,C,U,E){var Y=iR.zl(L,C,U),z=Y[0].slice(0),r=Y[1],p=Y[2],T=r.X(),k=c.F(T);c.wH(z,k,3);
var P=c.F(T);c.t.a82(k,P,r);if(p<3||c.eQ(P,0)||E&&p>12){var b=r.d,Q=b>>>1,K=P,h=255;for(var H=0;H<4;
H++){K[b*(Q-6+H)+Q]=h;K[b*Q+Q-6+H]=h;K[b*Q+Q+6-H]=h;K[b*(Q+6-H)+Q]=h}}var x=[1,2,1,2,8,2,1,2,1];x=c.N1.hx(x);
c.N1.C$(P,k,r.d,r.v,x);c.n0(z,4294967295);c.Wn(k,z,3);for(var H=0;H<T;H++)if(P[H]==255){z[H<<2]=z[(H<<2)+1]=z[(H<<2)+2]=0;
z[(H<<2)+3]=255}return{GE:z,_:r,Nb:new hZ(r.d/2,r.v/2)}};iR.gh="0";iR.OZ="1";iR.iO="2";iR.FG="3";var bk={};
bk.wV=function(L,C){var U=L.Cx(),T;if(U.x==Infinity||U.ue())return{eB:c.F(0),_:new _,uv:new _};var E=L.Cx(),Y=bk.nn(L,C),z=c.a.wh(Y.c);
if(z.ue())return{eB:c.F(0),_:new _,uv:new _};var r=B.w("canvas","");r.width=z.d;r.height=z.v;var p=r.getContext("2d");
p.translate(-z.x,-z.y);bk.aaA(Y,p);if(L.LI.length!=0){var k=b5.Fx(C),P=p.getImageData(0,0,z.d,z.v);T=new Uint8Array(P.data.buffer);
if(k==0)for(var H=0;H<T.length;H+=4)T[H+3]=T[H+3]>80?255:0;if(k==3)for(var H=0;H<T.length;H+=4)T[H+3]=Math.min(255,T[H+3]*1.5)}else T=c.F(z.X()*4);
return{eB:T,_:z,uv:E}};bk.nn=function(L,C){var U={Z:[],c:[]},E=C.J,Y=b5.Fx(C),z=Math.max(E.O*E.O,E.Z9*E.Z9)<1e-9?E:null;
if(Y==3||Y==4)z=null;bk.al3(L,U,z);if(!c.h2.D3(C.DN)){var r=c.a.mE(U.c);U=c.a.xF(U);U=c.a.ub(U,Math.min(r.d,r.v)/8);
var p=b5.dm(C,L),T=c.h2.b4(C.DN,p);c.DL.apply(T,U.c,p)}c.a.J(U.c,E,U.c);return U};bk.aaA=function(L,C){Typr.U.pathToContext({crds:L.c,cmds:L.Z},C)};
bk.br=function(L,C){if(!hX.Gz())return;var U=L.Se,E=U.ResourceDict.FontSet,Y=U.ResourceDict.StyleSheetSet[0].StyleSheetData,z=U.EngineDict.StyleRun.RunLengthArray,r=U.EngineDict.StyleRun.RunArray,p=b5.xY(U),T=!0,k={},P=0;
for(var H=0;H<r.length;H++){var b=r[H].StyleSheet.StyleSheetData.Font;if(b==null)b=Y.Font;for(var Q=0;
Q<z[H];Q++){var K=p.charCodeAt(P+Q),h=b+","+(K>128?K:-1);if(k[h]==null){k[h]=1;if(C.y1(E[b].Name,K)==null)T=!1}}P+=z[H]}return T};
bk.al3=function(L,C,U){var E=new c0;for(var H=0;H<L.s6.length;H++)bk.aa7(L.LI,L.s6[H],C,E,U)};bk.aa7=function(L,C,U,E,Y){E.translate(C.v3.x,C.v3.y);
for(var H=0;H<C.D4.length;H++){var z={},r=C.D4[H];if(!r.H$)break;var p=E.clone();p.translate(r.v3.x,r.v3.y);
if(Y){var T=Y.rv+p.rv*Y.J2;p.rv=(Math.round(T)-Y.rv)/Y.J2}for(var k=r.start;k<r.end;k++)bk.aay(L,C.HR[k],C,z,U,p)}E.translate(-C.v3.x,-C.v3.y)};
bk.aa$="()<>[]{}\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";
bk.aay=function(L,C,U,E,Y,z){z.translate(C.v3.x,C.v3.y);for(var r=C.ht;r<=C.sw;r++){var p=U.zY[r],T=p._.d,k=L[U.a9z+p.Zy];
if(k.Hi=="\n")continue;var P=k.dY.FontSize/k.P$.head.unitsPerEm,b=b5.Lt(k.dY),Q=(Math.round(b.h)<<16)+(Math.round(b.P)<<8)+Math.round(b.O);
Y.Z.push("#"+c.Xo(Q));var K=z.clone();K.translate(p.v3.x+p.D7*P,p.v3.y-p.pr*P);var h=new c0;h.scale(P,-P);
if(k.Jn==1&&bk.aa$.indexOf(k.Hi)!=-1)h.concat(new c0(-1,0,0,1,T,0));if(k.dY.FauxItalic)h.concat(new c0(1,0,-Math.tan(.18),1,0,0));
h.translate(0,k.Js);h.scale(k.scale.x,k.scale.y);if(k.dY.BaselineShift!=null)h.translate(0,-k.dY.BaselineShift);
if(p.NN!=0){h.rotate(-p.NN)}h.concat(K);if(p.path.Z.length!=0&&k.Hi!="\t"){if(k.dY.FauxBold){var x=k.dY.FontSize/2048*27*k.scale.x;
h.Yt+=x;c.a.concat(Y,p.path,h);h.Yt-=x+x;c.a.concat(Y,p.path,h)}else c.a.concat(Y,p.path,h)}if(k.Hi!="\n"){if(k.dY.Underline){if(E.pn==null)E.pn=k.P$.post.underlineThickness;
if(E.adm==null)E.adm=k.P$.post.underlinePosition;var O=0,y=E.adm-E.pn/2,v=p._5*1.05,i=-E.pn;c.a.concat(Y,{Z:["M","L","L","L","Z"],c:[O,y,O+v,y,O+v,y+i,O,y+i]},h)}if(k.dY.Strikethrough){var D=k.P$["OS/2"].yStrikeoutSize,I=k.P$["OS/2"].yStrikeoutPosition,O=0,y=I+D/2,v=p._5*1.05,i=-D;
c.a.concat(Y,{Z:["M","L","L","L","Z"],c:[O,y,O+v,y,O+v,y+i,O,y+i]},h)}}Y.Z.push("X")}z.translate(-C.v3.x,-C.v3.y)};
function hX(L,C){var U=b5.S8(L),E,Y,z=b5.qi(L),T;if(L.Curve)Y=hX.rP(L.Curve);if(U!=0){E=new _(z[0],z[1],z[2],z[3]);
if(U==2){E.d=Y[5]-Y[4];E.v=9999}}this.s6=[];this.LI=[];this.fD=U;var r=this.a2l=b5.xY(L),p=-1;for(var H=0;
H<r.length;H++){var k=T,P=b5.kx(L,H);if(P!=p){p=P;k=T=b5.abv(L,H)}var b={Hi:r.charAt(H),dY:k,P$:null,Hr:-1,Js:0,scale:new hZ(0,0),m3:0,lineHeight:0,Jn:0},Q=L.ResourceDict.FontSet[k.Font].Name,K=b.P$=C.y1(Q,r.charCodeAt(H));
b.scale.x=k.HorizontalScale==null?1:k.HorizontalScale;b.scale.y=k.VerticalScale==null?1:k.VerticalScale;
var h=K["OS/2"],x=K.hhea;if(k.FontCaps==1&&b.Hi!=b.Hi.toUpperCase()){var O=h.sxHeight?h.sxHeight/h.sTypoAscender:.76;
b.scale.x*=O;b.scale.y*=O}var y=1/K.head.unitsPerEm*k.FontSize;if(k.FontBaseline==1){var O=L.ResourceDict.SuperscriptSize;
b.scale.x*=O;b.scale.y*=O;b.Js-=L.ResourceDict.SuperscriptPosition*k.FontSize}if(k.FontBaseline==2){var O=L.ResourceDict.SubscriptSize;
b.scale.x*=O;b.scale.y*=O;b.Js+=L.ResourceDict.SubscriptPosition*k.FontSize}var v=hX.m3(K,Q);b.m3=v*y;
b.lineHeight=k.FontSize*1.2;if(k.AutoLeading==!1)b.lineHeight=k.Leading;if(b.lineHeight==0)b.lineHeight=.001;
this.LI.push(b)}var i=this.s6,D=[0];for(var H=0;H<L.EngineDict.ParagraphRun.RunLengthArray.length;H++){var I=new hX.qj(L,C,this.LI,H,E,D,U==1?Y:null);
i.push(I)}if(U==2){var m=L.Curve.Points,f=Y[0],A=Y[1],d=Y[2],g=Y[3],X=Y[4],n=Y[5];for(var H=0;H<i.length;
H++)for(var R=0;R<i[H].D4.length;R++)if(!(H==0&&R==0))i[H].D4[R].H$=!1;var I=i[0],l=I.D4[0];I.v3.U6(0,0);
l.v3.U6(0,0);for(var R=l.start;R<l.end;R++){var w=I.HR[R],V=w.v3.x;w.v3.x=0;for(var F=w.ht;F<=w.sw;F++){var Z=I.zY[F],M=Z._.d/2;
Z.v3.x+=V;var a=hX.a0$(f,(X+Z.v3.x+M)%g);Z.v3.x=a[0]-M*a[2];Z.v3.y=a[1]-M*a[3];Z.NN=Math.atan2(a[3],a[2])}}}}hX.m3=function(L,C){var U=L["OS/2"],E=L.hhea,Y=0,Y=0,z=[];
z.push(U&&U.sxHeight&&C.toLowerCase().indexOf("capitals")!=-1?U.sxHeight:0);z.push(U&&U.sCapHeight?U.sCapHeight:0);
z.push(U&&U.sTypoAscender?U.sTypoAscender:0);z.push(E.ascender?E.ascender:0);for(var r=0;r<z.length;
r++)if(z[r]!=0){Y=z[r];break}return Y};hX.prototype.aaf=function(){return!this.To(0)};hX.prototype.a04=function(){return this.To(1)};
hX.prototype.To=function(L){var C=this.s6,U=!0,E=0;for(var H=0;H<C.length;H++){var Y=C[H].D4,z=Y.length;
E+=z;for(var r=0;r<z;r++)U&=Y[r].H$}return[U,E][L]};hX.rP=function(L){var C=L.Points,U=C.length,E=U>>>3,Y=L.TextOnPathTRange,z=L.Reversed,P=0,b=0;
if(z){var r=C.slice(0);for(var H=0;H<U;H+=2){r[H]=C[U-2-H];r[H+1]=C[U-1-H]}C=r;Y=[E-Y[1]%E,E-Y[0]%E]}var p=[],T=[0],k=[0];
for(var H=0;H<U;H+=8){var Q=C[H+6]-C[H+0],K=C[H+7]-C[H+1],h=Math.round(4*Math.sqrt(Q*Q+K*K));for(var x=0;
x<h;x++){var O=x/h,y=1-O,v=y*y*y*C[H+0]+3*y*y*O*C[H+2]+3*y*O*O*C[H+4]+O*O*O*C[H+6],i=y*y*y*C[H+1]+3*y*y*O*C[H+3]+3*y*O*O*C[H+5]+O*O*O*C[H+7];
p.push(v,i);if(H+x!=0){var Q=v-P,K=i-b;k.push(k[k.length-1]+Math.sqrt(Q*Q+K*K));T.push((H>>>3)+O)}P=v;
b=i}}var D=k.length,I=k[D-1],m=hX.pq(Y[0],T),f=hX.pq(Y[1]%E,T),A=k[m%D],d=k[f%D];if(A>=d)d+=I;return[p,T,k,I,A,d]};
hX.pq=function(L,C){var H=0;while(C[H]<L)H++;return H};hX.a0$=function(L,C){var U=0,H=0,E,Y,z;while(U<C){E=L[H+2]-L[H];
Y=L[H+3]-L[H+1];z=Math.sqrt(E*E+Y*Y);U+=z;H+=2}return[L[H],L[H+1],E/z,Y/z]};hX.prototype.aj$=function(L){return this.LI[L]};
hX.prototype.ain=function(L){for(var C=0;C<this.s6.length;C++){var U=this.s6[C];for(var E=0;E<U.D4.length;
E++){var Y=U.D4[E],z=U.HR[Y.start].start,r=U.HR[Y.end-1].end;if(z<L&&L<r)return[z,r-1]}}return[0,1]};
hX.prototype.G0=function(L,C){var U=-1,E=this.s6;if(this.fD==2){var Y=1e9,z=0,r=E[0],p=r.D4[0];for(var T=p.start;
T<p.end;T++){var k=r.HR[T];for(var P=k.ht;P<=k.sw;P++){var b=r.zY[P],Q=b._.d,K=L.x-b.v3.x,h=L.y-b.v3.y,x=K*K+h*h;
if(x<Y){Y=x;z=b.Zy}}}if(z!=0&&this.a2l.codePointAt(z-1)>65535)z--;return z}for(var O=0;O<E.length;O++){var r=E[O];
for(var y=0;y<r.D4.length;y++){U++;var p=r.D4[y],v=r.D4[y+1];if(v==null&&O<E.length-1)v=E[O+1].D4[0];
if(C!=null){if(U!=C)continue}else{if(v!=null&&r.v3.y+p.v3.y<L.y)continue}for(var T=p.start;T<p.end;T++){var k=r.HR[T];
for(var P=k.ht;P<=k.sw;P++){var b=r.zY[P],Q=b._.d,i=r.v3.x+p.v3.x+k.v3.x,D=i+b.v3.x,I=i+(P<k.sw?r.zY[P+1].v3.x:b.v3.x+Q);
if(L.x<=I||T+1==p.end&&P==k.sw){var m=r.a9z+b.Zy,f=this.LI[m],A=f.Jn&1;if(f.Hi!="\n"&&(A==0&&L.x>D+Q/2||A==1&&L.x<D+Q/2))m+=this.a2l.codePointAt(m)>65535?2:1;
return m}}}}}};hX.prototype.$U=function(L){var C={_:new _,O7:0},U=0;for(var E=0;E<this.s6.length;E++){var Y=this.s6[E];
for(var z=0;z<Y.D4.length;z++){var r=Y.D4[z];C.O7=U;U++;for(var p=r.start;p<r.end;p++){var T=Y.HR[p];
for(var k=T.start;k<T.end;k++){if(k==L){var P=this.LI[k],b=P.Hr,Q=Y.zY[b].Zy,K=1;while(Y.zY[b]!=null&&Y.zY[b].Zy==Q){var h=Y.zY[b],x=Y.v3.x+r.v3.x+T.v3.x+h.v3.x,O=Y.v3.y+r.v3.y+T.v3.y+h.v3.y;
C._=C._.EU(new _(x,O-P.lineHeight,h._.d,P.lineHeight));C.NN=h.NN;b+=K}return C}}}}}};hX.prototype.Cx=function(){var L=Infinity,C=Infinity,U=-Infinity,E=-Infinity;
for(var H=0;H<this.s6.length;H++){var Y=this.s6[H];for(var z=0;z<Y.D4.length;z++){var r=Y.D4[z];if(!r.H$)break;
for(var p=r.start;p<r.end;p++){var T=Y.HR[p];for(var k=T.ht;k<=T.sw;k++){var P=Y.zY[k],b=P._,Q=Y.v3.x+r.v3.x+T.v3.x+P.v3.x,K=Y.v3.y+r.v3.y+T.v3.y+P.v3.y;
L=Math.min(L,Q+b.x);C=Math.min(C,K+b.y);U=Math.max(U,Q+b.x+b.d);E=Math.max(E,K+b.y+b.v)}}}}return new _(L,C,U-L,E-C)};
hX.sy=function(L){return 19968<=L&&L<=40959||12288<=L&&L<=12543};hX.akw=function(L,C,U,E,Y,z,r){var p=[z],T=0;
for(var H=z;H<r;H++){if(U[H]==null)console.log(H,z,r,U);var k=U[H].Hi,P=k.charCodeAt(0);if(P==32||P==9){p.push(T,H,1,H+1);
T=0}else if(P==3851){p.push(T+1,H+1);T=0}else if(hX.sy(P)){p.push(T,H);T=1}else if(H!=z&&U[H].Jn!=U[H-1].Jn){p.push(T,H);
T=1}else T++}p.push(T);var b=[];for(var H=0;H<p.length;H+=2){var Q=p[H],K=p[H+1];if(K==0)continue;b.push(new hX.amz(L,C,U,E,Y,Q,K))}return b};
hX.alu=function(L,C,U,E,Y,z,r){var p=[0,C?C.d:1e9],T=[];if(E){var k=L[z].m3,P=Y+(Y==0?k:L[z].lineHeight),b=P-k*.9,Q=c.a.Eb(E[0],b),K=Q.length,h=c.a.Eb(E[0],P),x=h.length;
if(K!=0&&x!=0){var O=0,y=0;p=[];while(O<K&&y<x){var v=Math.max(Q[O],h[y]),i=Q[O+1],D=h[y+1],I=Math.min(i,D);
if(v<I)p.push(v,I);if(i<D)O+=2;else y+=2}}}for(var m=0;m<p.length;m+=2){var f=p[m+1]-p[m],A=0,d=z,g=C?f-U.StartIndent-U.EndIndent-(z==0?U.FirstLineIndent:0):Infinity;
while(z!=L.length){var X=L[z],n=A==0||(X.sq||X.EM)||A+X._.d<g;if(!n)break;A+=X._.d;z++}T.push(z-d)}r[0]=T;
r[1]=p;r[2]=z};hX.anO=function(L,C){var U=L.length,E=new Uint32Array(U),Y=new Uint8Array(U),z=0;for(var H=0;
H<U;H++){Y[H]=0;var r=L.charCodeAt(H);E[H]=r;if(r>z)z=r}if(z>1424)Y=hX.acO(E,C);return Y};hX.qj=function(L,C,U,E,Y,z,r){this.HR=[];
this.D4=[];this.v3=new hZ(0,0);this.zY=null;this.HR=null;this.dY=b5.aeq(L,E);var p=this.dY,b=0,h="",i=0,D=1,e=0;
if(E!=0){var T=p.SpaceBefore;if(T!=null)z[0]+=T}var k=L.EngineDict.ParagraphRun.RunLengthArray,P=k[E];
for(var H=0;H<E;H++)b+=k[H];var Q=p._Direction?p._Direction:0;this.a9z=b;var K=b5.xY(L).slice(b,b+P);
for(var x=0;x<K.length;x++){var O=K.charAt(x);h+=U[b+x].dY.FontCaps==0?O:O.toUpperCase()}K=h;var y=hX.anO(K,Q),v=[],I=y[H]&1,m=U[b].P$;
U[b].Jn=y[0];for(var H=1;H<K.length;H++){var O=U[b+H],f=y[H];O.Jn=f;if(f!=I||O.P$!=m){v.push(i,D);i=H;
D=1;I=f;m=O.P$}else D++}v.push(i,D);var A=this.zY=[];for(var H=0;H<v.length;H+=2){var d=v[H],g=v[H+1],X=(U[b+d].Jn&1)==0,n=K.slice(d,d+g),R=Typr.U.shapeHB(U[b+d].P$,n,X),l=[],F=0;
for(var x=0;x<R.length;x++){var w=R[x];l.push({P:w.g,Zy:w.cl,_5:w.ax,x0:w.ay,D7:w.dx,pr:w.dy})}R=l;var V=R.slice(0);
if(!X)V.reverse();for(var x=0;x<n.length;x++){while(F+1<V.length&&V[F+1].Zy<=x){F++}while(F>0&&V[F-1].Zy==x)F--;
U[b+d+x].Hr=A.length+(X?F:V.length-F-1)}for(var x=0;x<R.length;x++){A.push(R[x]);R[x].Zy+=d;var O=U[b+R[x].Zy];
if(O.Hi=="\n")R[x]._5=0;if(O.Hi=="\t")R[x]._5=O.P$.head.unitsPerEm*2}}var Z=b5.Ix(p),M=this.HR=hX.akw(L,C,U,b,A,b,b+P),a=this.D4,N=-1,h=[null,null,0];
while(e<M.length){hX.alu(M,Y,p,r,z[0],e,h);N++;var J={start:e,end:0,_:new _,v3:new hZ(0,0),H$:!0},dk=0,hj=0;
a.push(J);J.end=h[2];var f5=J.end==M.length;function dx(V,d,ch){var hP=ch-d>>>1;for(var H=0;H<hP;H++){var d2=V[d+H];
V[d+H]=V[ch-1-H];V[ch-1-H]=d2}}for(var fq=1;fq<5;fq++){var i9=-1;for(var H=J.start;H<J.end;H++){var f=U[M[H].start].Jn;
if(i9==-1&&f>=fq)i9=H;else if(i9!=-1&&f<fq){dx(M,i9,H);i9=-1}}var e8=J.end;if(Q==0&&M[e8-1].sq)e8--;
if(i9!=-1)dx(M,i9,e8)}var S=h[0],fs=h[1],i9=e,bz=e;for(var g6=0;g6<S.length;g6++){var al=fs[g6*2+1]-fs[g6*2],bj=0;
i9=bz;bz+=S[g6];var bE=this.aav(i9,bz,M,Q,Y!=null);if(Y){if(Z==1||f5&&Z==4)bj=bE[1]+(al-bE[0]);if(Z==2||f5&&Z==5)bj=bE[1]+(al-bE[0])/2;
if(N==0)bj+=p.FirstLineIndent;bj+=p.StartIndent}else{if(Z==0)bj=p.StartIndent+p.FirstLineIndent;if(Z==1)bj=-bE[0]-p.EndIndent;
if(Z==2)bj=-bE[0]/2}bj+=fs[g6*2];if(Y&&Z>2&&(Z==6||!f5))this.ad4(i9,bz,M,al,Q,bj);else{var eN=bj;for(var H=i9;
H<bz;H++){M[H].v3.x=eN;eN+=M[H]._.d}}}e=J.end;for(var H=J.start;H<J.end;H++){var iN=M[H]._.clone();iN.OU(M[H].v3);
J._=J._.EU(iN);dk=Math.max(dk,M[H].m3);hj=Math.max(hj,M[H].lineHeight)}J.v3.y=N==0?0:a[N-1].v3.y+hj;
if(N==0){if(E==0&&Y)z[0]+=dk;if(E!=0)z[0]+=hj;this.v3.y=z[0]}else z[0]+=hj;if(Y)J.H$=this.v3.y+J.v3.y<Y.y+Y.v}var dK=p.SpaceAfter;
if(dK!=null)z[0]+=dK};hX.qj.prototype.aav=function(L,C,U,E,Y){var z=0,r=0;for(var H=L;H<C;H++)z+=U[H]._.d;
if(Y){if(E==0)for(var H=C-1;H>=L;H--)if(U[H].sq||U[H].EM)z-=U[H]._.d;else break;if(E==1)for(var H=L;
H<C;H++)if(U[H].sq||U[H].EM){var p=U[H]._.d;z-=p;r-=p}else break}return[z,r]};hX.qj.prototype.ad4=function(L,C,U,E,Y,z){var r=0,p=0,T=0,k=0;
for(var H=L;H<C;H++)if(U[H].sq)T++;else{r+=U[H]._.d;p++}if(Y==0)for(var H=C-1;H>=L;H--)if(U[H].sq||U[H].EM){if(U[H].sq){T--}}else break;
if(Y==1)for(var H=L;H<C;H++)if(U[H].sq||U[H].EM){if(U[H].sq){T--;k++}}else break;if(p<=1||T==0){if(p==1)U[L].v3.x=z;
return}var P=(E-r)/T,b=-k*P;for(var H=L;H<C;H++){if(U[H].sq)this.zY[U[H].ht]._.d=U[H]._.d=P;U[H].v3.x=z+b;
b+=U[H]._.d}};hX.amz=function(L,C,U,E,Y,z,r){this.oB="";for(var H=0;H<r;H++)this.oB+=U[z+H].Hi;this.sq=r==1&&(U[z].Hi==" "||U[z].Hi=="\t");
this.EM=r==1&&U[z].Hi=="\n";this.start=z;this.end=z+r;this._=new _;this.v3=new hZ(0,0);this.m3=0;this.lineHeight=0;
var p=0,T=0;if(r==0){this.lineHeight=U[z].lineHeight;this.m3=U[z].m3;this._=new _(0,-U[z].lineHeight,0,U[z].lineHeight)}var k=U[z].Hr,P=U[z+r-1].Hr;
if(P<k){var b=k;k=P;P=b}while(P+1<Y.length&&Y[P].Zy==Y[P+1].Zy){P++}this.ht=k;this.sw=P;for(var Q=k;
Q<=P;Q++){var K=Y[Q],h=U[E+K.Zy],x=1/h.P$.head.unitsPerEm*h.dY.FontSize,i=0;if(!h.dY.AutoKerning)p+=h.dY.Kerning*2*x*h.scale.x;
var O=K._5*x*h.scale.x;K.v3=new hZ(p,0);K.NN=0;K._=new _(0,-h.lineHeight,O,h.lineHeight);var y=Typr.U.glyphToPath(h.P$,K.P);
K.path={Z:y.cmds,c:y.crds};var v=K._.clone();v.OU(K.v3);if(h.dY.Tracking!=null)i=h.dY.Tracking*.001*h.dY.FontSize;
if(h.dY.FauxBold==!0)i+=.027*h.dY.FontSize;p+=O+i;if(r==1&&(h.Hi==" "||h.Hi=="\t"))v.d+=2*i;else if(r==1&&h.Hi!=null&&hX.sy(h.Hi.charCodeAt(0)))v.d+=i;
this._=this._.EU(v);this.m3=Math.max(this.m3,h.m3);this.lineHeight=Math.max(this.lineHeight,h.lineHeight)}};
hX.ZT=0;hX.Gz=function(){if(hX.ZT==2)return!0;if(hX.ZT==1)return!1;hX.ZT=1;function L(){fetch("code/external/fribidi.wasm").then(function(C){return C.arrayBuffer()}).then(function(C){return WebAssembly.instantiate(C)}).then(function(C){var U=C.instance.exports,E=U.memory,r=16,p=256,T=1;
E.grow(400);var Y=new Uint8Array(E.buffer),z=new Uint32Array(E.buffer),k=r|p,P=r|p|T;hX.acO=function(Q,K){var h=Q.length,x=U.calloc(h*4+4+h*4+h*4+h,1),O=x+h*4,y=O+4,v=y+h*4,i=v+h*4;
z.set(Q,x>>>2);z[O>>>2]=K==0?k:P;U.fribidi_get_bidi_types(x,h,y);U.fribidi_get_bracket_types(x,h,y,v);
U.fribidi_get_par_embedding_levels_ex(y,v,h,O,i);var D=Y.slice(i,i+h);U.free(x);return D};hX.ZT=2;var b=new q(B.E.l,!0);
b.data={e:B.U.MP,AW:"add",wm:c_.AO,mv:null};e3.OM.B(b)})}Typr.U.initHB("code/external/hb.wasm",L);return!1};
function b5(){}b5.FA=function(L){return JSON.parse(JSON.stringify(L))};b5.qQ=function(L,C){for(var U in C)L[U]=C[U]};
b5.Es=function(L,C,U){var E=b5.a6O();if(U)b5.Em(E,0,0,U);var Y={J:new c0(1,0,0,1,Math.round(L),Math.round(C)),Se:E};
Y.Au=b5.vE();Y.DN=c.h2.F();Y.uv=new _;return Y};b5.tY=function(L){var C=["CharacterDirection",0];for(var H=0;
H<C.length;H+=2){if(L[C[H]]!=null&&L[C[H]]!=C[H+1]){throw"e";console.log(C[H],L[C[H]])}}if(L instanceof Array)for(var H=0;
H<L.length;H++)b5.tY(L[H]);else if(L instanceof Object)for(var U in L)b5.tY(L[U])};b5.Ix=function(L,C){if(C==null)C=L.Justification;
var U=L._Direction?L._Direction:0;if(U==1){if(C==0||C==3)C++;else if(C==1||C==4)C--}return C};b5.Zp=function(L){if(L.add==null)return;
var C=L.Se,U=C.Curve,E=L.add.vmsk,Y=E.n,z=c.a.$x(Y,!0).c,r=L.J.clone();r.G$();c.a.J(z,r,z);var p=z.slice(0,8);
for(var T=8;T<z.length;T+=6)p.push(z[T-2],z[T-1],z[T],z[T+1],z[T+2],z[T+3],z[T+4],z[T+5]);U.Points=p;
U.TextOnPathTRange=E.Pw.slice(0);U.Reversed=E.ks;if(b5.S8(C)==1){var U=hX.rP(C.Curve),k=c.a.mE(U[0]);
b5.If(C,[0,0,k.d,k.v].map(Math.round));for(var H=0;H<p.length;H+=2){p[H]-=k.x;p[H+1]-=k.y}var P=new c0(1,0,0,1,k.x,k.y);
P.concat(L.J);L.J=P}};b5.Dv=function(L){if(L.add==null)return;var C=L.add.vmsk,U=L.Se.Curve,E=U.Points,Y={Z:["M"],c:[E[0],E[1]]};
for(var H=0;H<E.length;H+=8){Y.Z.push("C");Y.c.push(E[H+2],E[H+3],E[H+4],E[H+5],E[H+6],E[H+7])}c.a.J(Y.c,L.J,Y.c);
var z=c.a.n2(Y,!0);C.n=z;C.ks=U.Reversed;C.Pw=U.TextOnPathTRange.slice(0);L.add.vogk=o.Gg(z)};b5.Lt=function(L){var C={h:0,P:0,O:0};
if(L.FillColor){var U=L.FillColor,E=U.Values;if(U.Type==1)C={h:E[1]*255,P:E[2]*255,O:E[3]*255};else if(U.Type==2){var Y={classID:"CMYC",Cyn:{t:"doub",v:E[1]*100},Mgnt:{t:"doub",v:E[2]*100},Ylw:{t:"doub",v:E[3]*100},Blck:{t:"doub",v:E[4]*100}};
C=c.W.Lt(Y)}else console.log("Unknown color type")}return C};b5.aaK=function(L){for(var H=0;H<L.length;
H++){var C=L[H].StyleSheet.StyleSheetData,U=C.FillColor;if(U&&U.Type==2){var E=b5.Lt(C);U.Type=1;U.Values=[1,E.h/255,E.P/255,E.O/255]}}};
b5.dm=function(L,C){var U;if(b5.S8(L.Se)==1){var E=b5.qi(L.Se);U=new _(0,0,E[2]-E[0],E[3]-E[1])}else U=C.Cx();
return U};b5.O1=function(L){var C=L[0];for(var H=0;H<L.length;H++)C=b5.a1O(C,L[H]);return C};b5.a1O=function(L,C){var U={};
for(var E in L)if(JSON.stringify(L[E])==JSON.stringify(C[E]))U[E]=L[E];return U};b5.yk=function(L,C){var U=L.Oe,E=-1;
for(var H=0;H<U.length;H++)if(U[H].Name==C)E=H;if(E==-1){E=U.length;U.push({FontType:1,Name:C,Script:0,Synthetic:0})}L.LI.Font=E};
b5.xY=function(L){return L.EngineDict.Editor.Text.replace(/\r/g,"\n").replace(/\u0003/g,"\n")};b5.tu=function(L,C){L.EngineDict.Editor.Text=C.replace(/\n/g,"\r")};
b5.S8=function(L){return L.Curve&&L.Curve.TextOnPathTRange[0]>=0?2:L.EngineDict.Rendered.Shapes.Children[0].ShapeType};
b5.B$=function(L,C){var U=L.EngineDict.Rendered.Shapes.Children[0];U.ShapeType=C;var E=U.Cookie.Photoshop;
E.ShapeType=C;E.Base.ShapeType=C;if(C==0){delete E.BoxBounds;E.PointBase=[0,0]}if(C==1){delete E.PointBase;
E.BoxBounds=[0,0,1,1]}};b5.qi=function(L){return L.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds};
b5.If=function(L,C){L.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds=C};b5.abv=function(L,C){return b5.aiU(L,b5.kx(L,C))};
b5.kx=function(L,C){var U=L.EngineDict.StyleRun.RunLengthArray;return b5.RE(U,C).zq};b5.aiU=function(L,C){var U=L.ResourceDict.StyleSheetSet[0].StyleSheetData,E={};
for(var Y in U)E[Y]=U[Y];var z=L.EngineDict.StyleRun.RunArray[C].StyleSheet.StyleSheetData;b5.qQ(E,z);
return E};b5.aeq=function(L,C){var U=L.ResourceDict.ParagraphSheetSet[0].Properties,E={};for(var Y in U)E[Y]=U[Y];
var z=L.EngineDict.ParagraphRun.RunArray[C].ParagraphSheet.Properties;b5.qQ(E,z);var r=["StartIndent","EndIndent","FirstLineIndent"];
for(var H=0;H<3;H++)if(E[r[H]]==null)E[r[H]]=0;return E};b5.X$=function(L,C,U){if(U=="")return;var E=b5.xY(L);
b5.tu(L,E.substring(0,C)+U+E.substring(C,E.length));var Y=L.EngineDict.StyleRun,z=Y.RunLengthArray,r=b5.RE(z,C-1);
z[r.zq]+=U.length;var p=L.EngineDict.ParagraphRun,z=p.RunLengthArray,T=b5.RE(z,C),k=U.split("\n");if(k.length==1){z[T.zq]+=U.length;
return}z.splice(T.zq+1,0,z[T.zq]-(C-T.wJ));p.RunArray.splice(T.zq+1,0,b5.FA(p.RunArray[T.zq]));z[T.zq]-=z[T.zq+1];
z[T.zq]+=k[0].length+1;for(var H=1;H<k.length-1;H++){p.RunArray.splice(T.zq+H,0,b5.FA(p.RunArray[T.zq+H-1]));
p.RunLengthArray.splice(T.zq+H,0,k[H].length+1)}z[T.zq+k.length-1]+=k[k.length-1].length};b5.PB=function(L,C,U){var E=b5.xY(L);
b5.tu(L,E.substring(0,C)+E.substring(U,E.length));b5.Dg(L.EngineDict.ParagraphRun,C,U,!0);b5.Dg(L.EngineDict.StyleRun,C,U,!1)};
b5.Dg=function(L,C,U,E){var Y=L.RunLengthArray,z=b5.RE(Y,C),r=b5.RE(Y,U),p=[];for(var H=0;H<Y.length;
H++)for(var T=0;T<Y[H];T++)p.push(H);p.splice(C,U-C);var k=[];for(var H=0;H<Y.length;H++)k.push(0);for(var H=0;
H<p.length;H++)k[p[H]]++;for(var H=0;H<Y.length;H++){if(k[H]==0){k.splice(H,1);Y.splice(H,1);L.RunArray.splice(H,1);
H--}else if(k[H]<Y[H])Y[H]=k[H]}if(E&&z.zq!=r.zq&&z.wJ!=C){Y[z.zq]+=Y[z.zq+1];Y.splice(z.zq+1,1);L.RunArray.splice(z.zq+1,1)}};
b5.Em=function(L,C,U,E){var Y=L.EngineDict.Editor.Text.length;if(U==Y-2)U++;if(E.LI.Font!=null)L.ResourceDict.FontSet=E.Oe.slice(0);
if(C<=U)b5.Nt(L.EngineDict.StyleRun,E.LI,C,U,!0);b5.Nt(L.EngineDict.ParagraphRun,E.s6,C,U,!1)};b5.Nt=function(L,C,U,E,Y){var z=L.RunLengthArray;
if(Y){var r=b5.RE(z,U);if(r.wJ!=U){var p=z[r.zq];z.splice(r.zq,0,U-r.wJ);z[r.zq+1]=p-z[r.zq];L.RunArray.splice(r.zq+1,0,b5.FA(L.RunArray[r.zq]))}var T=b5.RE(z,E);
if(T.wJ+z[T.zq]-1!=E){var p=z[T.zq];z.splice(T.zq,0,E-T.wJ+1);z[T.zq+1]=p-z[T.zq];L.RunArray.splice(T.zq+1,0,b5.FA(L.RunArray[T.zq]))}}var r=b5.RE(z,U),T=b5.RE(z,E);
if(Y)for(var H=r.zq;H<=T.zq;H++)b5.qQ(L.RunArray[H].StyleSheet.StyleSheetData,C);else for(var H=r.zq;
H<=T.zq;H++)b5.qQ(L.RunArray[H].ParagraphSheet.Properties,C)};b5.aiM=function(L,C,U){var E=L.EngineDict.StyleRun.RunLengthArray,Y=[],z=0;
for(var H=0;H<E.length;H++){var r=E[H];for(var p=0;p<r;p++)if(C<=z+p&&z+p<U)Y.push(H);z+=r}var T=Y[0],k=[];
for(var H=0;H<Y.length;H++){var P=Y[H]-T;if(P==k.length)k.push(0);k[P]++}return k};b5.ahP=function(L){var C=L.EngineDict.StyleRun,U=C.RunArray,E=C.RunLengthArray;
for(var H=0;H<E.length-1;H++){var Y=U[H].StyleSheet.StyleSheetData,z=U[H+1].StyleSheet.StyleSheetData;
if(JSON.stringify(Y)==JSON.stringify(z)){U.splice(H+1,1);E[H]+=E[H+1];E.splice(H+1,1);H--}}};b5.Fx=function(L){var C=L.Au.AntA.v.Annt;
C=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"].indexOf(C);if(C==-1)C=1;return C};b5.Nc=function(L,C){L.Au.AntA.v.Annt=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"][C]};
b5.L3=function(L,C,U){var E={Oe:L.ResourceDict.FontSet.slice(0),LI:[],s6:[]},Y=L.EngineDict.StyleRun.RunLengthArray,z=b5.RE(Y,C).zq,r=b5.RE(Y,U).zq;
for(var H=z;H<=r;H++){var p=b5.FA(L.ResourceDict.StyleSheetSet[0].StyleSheetData),T=L.EngineDict.StyleRun.RunArray;
if(T.length==0)continue;var k=T[H].StyleSheet.StyleSheetData;b5.qQ(p,k);E.LI.push(p)}var P=L.EngineDict.ParagraphRun.RunLengthArray,b=b5.RE(P,C).zq,Q=b5.RE(P,U).zq;
for(var H=b;H<=Q;H++){var K=L.EngineDict.ParagraphRun.RunArray;if(K.length==0)continue;E.s6.push(b5.FA(K[H].ParagraphSheet.Properties))}E.LI=E.LI.length==0?{}:b5.O1(E.LI);
E.s6=E.s6.length==0?{}:b5.O1(E.s6);return E};b5.l5=function(L,C){var U,E;U=["FontSize","Leading","BaselineShift"];
E=L.LI;for(var H=0;H<U.length;H++)if(E[U[H]]!=null)E[U[H]]*=C;U=["StartIndent","EndIndent","FirstLineIndent","SpaceBefore","SpaceAfter"];
E=L.s6;for(var H=0;H<U.length;H++)if(E[U[H]]!=null)E[U[H]]*=C};b5.a8Q=function(){return b5.L3(b5.C9,0,0)};
b5.vE=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}}};
b5.RE=function(L,C){var U=0,H=0;while(U+L[H]<=C){U+=L[H];H++}return{zq:H,wJ:U}};b5.a6O=function(){var L=b5.FA(this.C9);
return L};b5.lA={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};
b5.aaz={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]},FillFlag:!0,StrokeFlag:!1,FillFirst:!0,YUnderline:1,OutlineWidth:1,CharacterDirection:0,HindiNumbers:!1,Kashida:1,DiacriticPos:2};
b5.C9={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(b5.lA))},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(b5.lA))}],StyleSheetSet:[{Name:"Normal RGB",StyleSheetData:JSON.parse(JSON.stringify(b5.aaz))}],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 f4={};f4.a05=function(L,C,U){var E={};E._98={_0:"i7"};E._0=f4.aaE(L,C,U?U._0:null);E._1=f4.ad6(L,C,E._0,U?U._1:null);
return E};f4.aaE=function(L,C,U){var E={};E._1=f4.a86(L,U?U._1:null);E._2={_0:[{_0:{_0:"s"}}],_1:[{_0:"i0"}]};
E._3=JSON.parse(JSON.stringify(f4.ae_));E._4=JSON.parse(JSON.stringify(f4.ael));E._5=f4.anG(L,E._1._0,U?U._5:null);
E._6=f4.acc(L,U?U._6:null);E._8=f4.a1t(L,C,U?U._8:null);E._9=f4.akX;return E};f4.a86=function(L,C){var U=[],E=[];
for(var H=0;H<L.length;H++){var Y=L[H].ResourceDict.FontSet;for(var z=0;z<Y.length;z++){var r=Y[z];if(E.indexOf(r.Name)!=-1)continue;
U.push(r);E.push(r.Name)}}var p={_0:[]};for(var H=0;H<U.length;H++){var T=U[H],k={_0:{_99:"/CoolTypeFont",_0:{_0:"s"+T.Name,_1:"i"+T.Script,_2:"i"+T.FontType}}};
if(T.Script==0)delete k._0._0._1;p._0.push(k)}return p};f4.anG=function(L,C,U){var E={_0:[],_1:[]},Y={_0:JSON.parse(JSON.stringify(f4.zd))};
f4.gs(Y._0,L[0].ResourceDict.StyleSheetSet[0],C,L[0].ResourceDict.FontSet);E._0.push(Y);E._1.push({_0:"i0"});
E._0.push({_0:{_0:"sNone",_5:"i0",_6:{}}});E._1.push({_0:"i1"});return E};f4.acc=function(L,C){var U={_0:[],_1:[]},E={_0:JSON.parse(JSON.stringify(f4.rN))};
f4.SK(E._0,L[0].ResourceDict.ParagraphSheetSet[0]);U._0.push(E);U._1.push({_0:"i0"});E={_0:JSON.parse(JSON.stringify(f4.rN))};
f4.SK(E._0,L[0].ResourceDict.ParagraphSheetSet[0]);E._0._0="sBasic Paragraph";E._0._6="i0";U._0.push(E);
U._1.push({_0:"i1"});return U};f4.a1t=function(L,C,U){var E={_0:[]};for(var H=0;H<L.length;H++){var Y=L[H].Curve,z={};
E._0.push({_0:z});var r=b5.S8(L[H]);z._2={};z._2._0="i"+r;if(r==0){z._2._6=["f-1","f-1"];z._2._11={_4:"i-1",_7:!1}}else if(r==1&&Y==null){var p=b5.qi(L[H]),T=p[2],k=p[3];
z._1={_0:f4.A4("f",[0,0,0,0,T,0,T,0,T,0,T,0,T,k,T,k,T,k,T,k,0,k,0,k,0,k,0,k,0,0,0,0])};z._2._6=["f-2","f-2"];
z._2._11={_4:"i-2",_7:!1}}else if(r==1){var p=b5.qi(L[H]),T=p[2],k=p[3];z._1={_0:f4.A4("f",Y.Points)};
z._2._6=["f-3","f-3"];z._2._11={_4:"i-3",_7:!1}}else if(r==2){z._1={_0:f4.A4("f",Y.Points)};z._2._6=f4.A4("f",Y.TextOnPathTRange);
z._2._11={_0:Y.Reversed,_3:"i0",_5:"f0",_7:!1}}}return E};f4.ad6=function(L,C,U,E){var Y={};Y._0=JSON.parse(JSON.stringify(f4.a8R));
Y._1=f4.a0l(L,C,U,E?E._1:null);Y._2=JSON.parse(JSON.stringify(f4.zd._6));Y._3=JSON.parse(JSON.stringify(f4.rN._5));
return Y};f4.a0l=function(L,C,U,E){var Y=[],z=U._1._0;for(var H=0;H<L.length;H++){var r=L[H],p={_0:{}};
Y.push(p);var T=E?E[H]:null;p._0._0="s"+r.EngineDict.Editor.Text;p._0._0=p._0._0;var k={_0:[]};p._0._5=k;
var P=r.EngineDict.ParagraphRun;for(var b=0;b<P.RunArray.length;b++){var Q={_0:{}};k._0.push(Q);Q._0._0={_0:"s",_5:{},_6:"i1"};
f4.SK(Q._0._0,r.EngineDict.ParagraphRun.RunArray[b].ParagraphSheet);Q._1="i"+P.RunLengthArray[b]}var K={_0:[]};
p._0._6=K;var h=T?T._0._6:null;P=r.EngineDict.StyleRun;for(var b=0;b<P.RunArray.length;b++){var x={_0:{}};
K._0.push(x);var O=h?h._0:null;x._0._0={_0:"s",_5:"i1",_6:{}};f4.gs(x._0._0,r.EngineDict.StyleRun.RunArray[b].StyleSheet,z,r.ResourceDict.FontSet,O?x._0._0:null);
x._1="i"+P.RunLengthArray[b]}p._0._10={_0:"i4",_2:!0};p._1=f4.view.ag3(r,null,H,null)}return Y};f4.gs=function(L,C,U,E,Y){L._0="s"+(C.Name?C.Name:"");
var z=L._6,r=Y?Y._6:null,p=C.StyleSheetData;if(p.Font==null)return;var T=E[p.Font].Name,k=-1;for(var H=0;
H<U.length;H++)if("s"+T==U[H]._0._0._0){k=H;break}z._0="i"+k;if(p.FontSize!=null)z._1="f"+p.FontSize;
if(p.FauxBold!=null)z._2=p.FauxBold;if(p.FauxItalic!=null)z._3=p.FauxItalic;if(p.AutoLeading!=null)z._4=p.AutoLeading;
if(p.Leading!=null)z._5="f"+p.Leading;if(p.HorizontalScale!=null)z._6="f"+p.HorizontalScale;if(p.VerticalScale!=null)z._7="f"+p.VerticalScale;
if(p.Tracking!=null)z._8="i"+p.Tracking;if(p.BaselineShift!=null)z._9="f"+p.BaselineShift;if(p.AutoKerning!=null)z._11="i"+(p.AutoKerning?1:0);
if(p.FontCaps!=null)z._12="i"+p.FontCaps;if(p.FontBaseline!=null)z._13="i"+p.FontBaseline;if(p.Strikethrough!=null)z._15="i"+(p.Strikethrough?1:0);
if(p.Underline!=null)z._16="i"+(p.Underline?2:0);if(p.Ligatures!=null)z._18=p.Ligatures;if(p.DLigatures!=null)z._19=p.DLigatures;
if(p.Language!=null)z._38="i"+p.Language;if(p.FillColor!=null)z._53={_99:"/SimplePaint",_0:{_0:"i1",_1:f4.A4("f",p.FillColor.Values)}}};
f4.SK=function(L,C){L._0="s"+(C.Name?C.Name:"");var U=L._5,E=C.Properties;if(E.Justification!=null)U._0="i"+E.Justification;
if(E.FirstLineIndent!=null)U._1="f"+E.FirstLineIndent;if(E.StartIndent!=null)U._2="f"+E.StartIndent;
if(E.EndtIndent!=null)U._3="f"+E.EndtIndent;if(E.SpaceBefore!=null)U._4="f"+E.SpaceBefore;if(E.SpaceAfter!=null)U._5="f"+E.SpaceAfter;
if(E.AutoHyphenate!=null)U._9=E.AutoHyphenate;if(E._Direction!=null)U._33="i"+E._Direction};f4.A4=function(L,C){var U=[];
for(var H=0;H<C.length;H++)U.push(L+C[H]);return U};f4.ae_={_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"}]};
f4.ael={_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"}]};
f4.zd={_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}};
f4.rN={_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"}};
f4.akX={_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"}]};
f4.a8R={_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 bD={};bD.a3K=function(L){return bD.SF(L,bD.kP)};bD.amB=function(L){return bD.tQ(L,bD.kP)};bD.SF=function(L,C){var U;
if(typeof L=="string")return L;if(L instanceof Array){U=[];for(var H=0;H<L.length;H++)U[H]=bD.SF(L[H],C)}else{U={};
var E={};for(var Y in C){var z=C[Y],r="_"+z[0];if(L[r]!=null){U[Y]=z[1]?bD.SF(L[r],z[1]):L[r];E[r]=!0}}for(var Y in L){if(E[Y]==null){console.log(E);
console.log(Y,L,C);throw"e"}}}return U};bD.tQ=function(L,C){var U;if(L instanceof Array){U=[];for(var H=0;
H<L.length;H++)U[H]=bD.tQ(L[H],C)}else{U={};var E={};for(var Y in C){var z=C[Y],r="_"+z[0];if(L[Y]!=null){U[r]=z[1]?bD.tQ(L[Y],z[1]):L[Y];
E[Y]=!0}}for(var Y in L){if(E[Y]==null){console.log(E);console.log(Y,L);throw"e"}}}return U};bD.cC={_StreamTag:[99],_Color:[0,{_Type:[0],_Values:[1]}]};
bD.lV={_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,bD.cC],_StrokeColor:[54,bD.cC],_Blend:[55,{_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,bD.cC],_FillBackgroundFlag:[80],_UnderlineStyle:[81],_DashedUnderlineGapLength:[82],_DashedUnderlineDashLength:[83],_SlashedZero:[84],_StylisticSets:[85],_CustomFeature:[86,{_StreamTag:[99]}],_87:[87],_88:[88]};
bD.K$={_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,bD.lV],_ParagraphDirection:[33],_JustificationMethod:[34],_ComposerEngine:[35],_ListStyle:[36],_ListTier:[37],_ListSkip:[38],_ListOffset:[39],_40:[40]};
bD.Dj={_Name:[0],_Features:[5,bD.K$],_Parent:[6]};bD.UW={_Name:[0],_Parent:[5],_Features:[6,bD.lV]};
bD.kP={_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]}]}]}],_1:[1,{_0:[0]}]}],_MojiKumiCodeToClassSet:[2,{_Resources:[0,{_Resource:[0,{_Name:[0]}]}],_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]}]}]}],_DisplayList:[1,{_Resource:[0]}]}],_KinsokuSet:[4,{_Resources:[0,{_Resource:[0,{_Name:[0],_Data:[5,{_NoStart:[0],_NoEnd:[1],_Keep:[2],_Hanging:[3],_PredefinedTag:[4]}]}]}],_DisplayList:[1,{_Resource:[0]}]}],_StyleSheetSet:[5,{_Resources:[0,{_Resource:[0,bD.UW]}],_DisplayList:[1,{_Resource:[0]}]}],_ParagraphSheetSet:[6,{_Resources:[0,{_Resource:[0,bD.Dj]}],_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],_FirstBaselineAlignment:[10,{_Flag:[0],_Min:[1]}],_PathData:[11,{_Reversed:[0],_2:[2],_3:[3],_Spacing:[4],_5:[5],_7:[7]}],_12:[12]}]}]}]}],_ListStyleSet:[9,{_Resources:[0,{_Resource:[0,{_Name:[0],_PredefinedTag:[6]}]}],_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]}],_11:[11],_15:[15,{_0:[0]}],_16:[16],_17:[17]}],_TextObjects:[1,{_Model:[0,{_Text:[0],_ParagraphRun:[5,{_RunArray:[0,{_RunData:[0,{_ParagraphSheet:[0,bD.Dj]}],_Length:[1]}]}],_StyleRun:[6,{_RunArray:[0,{_RunData:[0,{_StyleSheet:[0,bD.UW]}],_Length:[1]}]}],_FirstKern:[7],_8:[8],_9:[9],_StorySheet:[10,{_AntiAlias:[0],_UseFractionalGlyphWidths:[2],_3:[3],_4:[4]}]}],_View:[1,{_Frames:[0,{_Resource:[0]}],_RenderedData:[1,{_RunArray:[0,{_RunData:[0,{_0:[0],_LineCount:[1]}],_Length:[1]}]}],_Strikes:[2]}]}],_OriginalNormalStyleFeatures:[2,bD.lV],_OriginalNormalParagraphFeatures:[3,bD.K$]}]};
f4.view={};f4.view.ag3=function(L,C,U,E){var Y={},z=b5.S8(L);Y._0=[{_0:"i"+U}];return Y};function CSS(){}CSS.aiR=function(L,C){var U=L.add,E=U.vmsk,Y=U.vstk,z=U.lmfx,r=U.TySh,p=[],T=CSS.ajm(z,U);
if(L.G_()&&E){var k=c.Y.JK(E.n);if(!k.ue()){p.push("width: "+Math.round(k.d)+"px");p.push("height: "+Math.round(k.v)+"px")}var P=c.Y.ab$(E.n);
if(P>0)p.push("border-radius: "+Math.round(P)+"px")}else if(r){var b=r.Se;if(b5.S8(b)==1){var k=b5.qi(b);
p.push("width: "+Math.round(k[2])+"px");p.push("height: "+Math.round(k[3])+"px")}CSS.ek(p,b5.L3(b,0,0),r.J,!1,!1,T[0])}var Q=[],K=z?z.dropShadowMulti.v:0;
for(var H=0;H<K.length;H++){var h=K[H].v;if(h.enab.v){var x=h.Dstn.v.val,O=h.lagl.v.val*Math.PI/180;
if(h.uglg&&h.uglg.v)O=C.b_()*Math.PI/180;var y=x*Math.cos(O),v=x*Math.sin(O);Q.push("drop-shadow("+(y==0?"0 ":CSS.p3(-y)+"px ")+(v==0?"0 ":CSS.p3(v)+"px ")+h.blur.v.val/2+"px "+CSS.CZ(h.Clr.v,h.Opct.v.val/100)+")")}}if(Q.length!=0)p.push("filter: "+Q.join(" "));
if(r==null)CSS.a96(T,p);if(Y==null||!Y.strokeEnabled.v)Y=ca.HS(z);if(Y&&Y.strokeEnabled.v){var i=Y.strokeStyleContent.v,D=i.classID,I=gM.H0.h9.indexOf(Y.strokeStyleLineCapType.v.strokeStyleLineCapType),m=gM.H0.join.indexOf(Y.strokeStyleLineJoinType.v.strokeStyleLineJoinType),f=Y.strokeStyleOpacity.v.val/100,A=Y.strokeStyleLineWidth.v.val,d="";
if(D=="solidColorLayer")d=CSS.CZ(i.Clr.v,f);p.push("border: "+A+"px solid "+d)}return p};CSS.ajm=function(L,C){var U=ca.R4(L,C),E=U[0],Y=U[1],z,r;
if(E){z=CSS.CZ(E.Clr.v,C.iOpa!=null?C.iOpa/255:1)}else if(Y){r=CSS.J5(Y)}return[z,r]};CSS.a96=function(L,C){if(L[0])C.push("background-color: "+L[0]);
if(L[1])C.push("background-image: "+L[1])};CSS.UP={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.p3=function(u){return""+parseFloat(u.toFixed(3))};CSS.FJ=function(L){if(L==null)return{h:0,P:0,O:0};
var C=L.indexOf("(");if(C!=-1){var U=L.slice(C+1,L.length-1).split(",");for(var H=0;H<U.length;H++){var E=U[H].trim();
U[H]=parseFloat(E)*(E.endsWith("%")?255/100:1)}return{h:U[0],P:U[1],O:U[2]}}if(L.charAt(0)!="#"){var Y=CSS.UP;
if(Y[L])L=Y[L];else console.log("unknown color "+L)}L=L.slice(1);if(L.length==3)L=L[0]+L[0]+L[1]+L[1]+L[2]+L[2];
L=parseInt(L,16);return{h:L>>16&255,P:L>>8&255,O:L&255}};CSS.CZ=function(L,C){return CSS.ws(c.W.Lt(L),C)};
CSS.ws=function(L,C){if(C==null)C=1;var U=Math.round(L.h),E=Math.round(L.P),Y=Math.round(L.O),z=U<<16|E<<8|Y;
return C==1?"#"+c.Xo(z):"rgba("+U+","+E+","+Y+","+C+")"};CSS.J5=function(L){var C=L.Grad.v;if(C.Clrs==null)return"";
var U=C.Clrs.v.slice(0),E=C.Trns.v.slice(0),Y=L.Ofst.v,z=L.Type.v.GrdT=="Rdl"?1:0,r=(z==1?"radial":"linear")+"-gradient",p=z==0?Math.round(-L.Angl.v.val+90)+"deg":"circle at center",T=L.Rvrs.v;
if(T){U.reverse();E.reverse()}for(var H=0;H<U.length;H++){var k=U[H].v,P=H<E.length?E[H].v.Opct.v.val/100:1,b=k.Lctn.v/4096;
if(T)b=1-b;p+=", "+CSS.CZ(k.Clr.v,P)+" "+Math.round(b*100)+"%"}return r+"("+p+")"};CSS.ek=function(L,C,U,E,Y,z){var r=C.LI,p=E?1:W.o.ia(U),T=Math.round(r.FontSize*p);
L.push("font-size: "+T+"px");var k=r.Tracking;if(!E&&k!=null&&k!=0)L.push("letter-spacing: "+Math.round(k*T/1e3)+"px");
if(!r.AutoLeading)L.push("line-height: "+Math.round(r.Leading*p)+"px");if(r.Strikethrough)L.push("text-decoration: line-through");
var P=b5.Lt(r);P=[P.h,P.P,P.O].map(Math.round);L.push((E?"fill: ":"color: ")+(z?z:"#"+c.Xo(P[0]<<16|P[1]<<8|P[2])));
var b=C.Oe[r.Font].Name;if(b){var Q=e3.OM.y1(b),K="",h=null,x=null;if(Q!=null&&b!=e3.G1(Q))Q=null;if(Y&&Q)K+="\""+b+"\", ";
var O=b.toLowerCase();if(Q){h=e3.cT(Q)[0];if(Q["OS/2"])x=Q["OS/2"].usWeightClass}else{h=CSS.aeQ(b);if(O.indexOf("light")!=-1)x=300;
else if(O.indexOf("medium")!=-1)x=500;else if(O.indexOf("black")!=-1||O.indexOf("extrabold")!=-1)x=800;
else if(O.indexOf("bold")!=-1)x="bold"}if(h!=null)K+="\""+h+"\"";if(x!=null)L.push("font-weight: "+x);
if(O.indexOf("italic")!=-1||O.indexOf("oblique")!=-1)L.push("font-style: italic");if(K)L.push("font-family: "+K)}var y=C.s6.Justification;
if(y!=null&&y!=0)if(E)L.push("text-anchor: "+["start","end","middle"][y%3]);else L.push("text-align: "+["left","right","center"][y%3])};
CSS.aeQ=function(L){L=L.split("-")[0];while(L.endsWith("MT")||L.endsWith("PS"))L=L.slice(0,L.length-2);
var C=!0;for(var H=0;H<L.length;H++){var U=L.charAt(H);if(!C&&U.toLowerCase()!=U){L=L.slice(0,H)+" "+L.slice(H);
H++;C=!0}else C=!1}return L};function aA(){}aA.LD={document:!0,parent:!0,top:!0,eval:!0,postMessage:!0,UTIF:!0,PIMG:!0,LNG:!0,FNTS:!0};
aA.rZ=function(L,C){var U=Date.now(),E;try{E=acorn.parse(L)}catch(gS){console.log(gS);return}var Y=JSON.parse(JSON.stringify(aA.tI.zc));
Y.__return=!1;Y.__break=!1;Y.__throw=!1;Y.__fs={};Y.__window={};aA.eval(E,C,Y);var z=Y.__fs;if(Object.keys(z).length!=0){var r=UZIP.encode(z);
g8.save(r,"output.zip")}};aA.eval=function(L,C,U){var E=L.type;if(!1){}else if(E=="Program"||E=="BlockStatement"){var Y=L.body;
for(var H=0;H<Y.length;H++){var z=Y[H].type;if(z=="FunctionDeclaration")U[Y[H].id.name]=Y[H]}for(var H=0;
H<Y.length;H++){var z=Y[H].type,r=aA.eval(Y[H],C,U);if(U.__return||U.__break||U.__throw)return r}}else if(E=="ReturnStatement"){U.__return=!0;
return L.argument?aA.qq(L.argument,C,U):null}else if(E=="BreakStatement"){U.__break=!0}else if(E=="VariableDeclaration"){var p=L.declarations;
for(var H=0;H<p.length;H++)aA.eval(p[H],C,U)}else if(E=="VariableDeclarator"){U[L.id.name]=L.init?aA.qq(L.init,C,U):null}else if(E=="FunctionDeclaration"){U[L.id.name]=L}else if(E=="MemberExpression"){var T=aA.qq(L.object,C,U),k=L.computed?aA.qq(L.property,C,U):aA.eval(L.property,C,U),r;
if(T.NT!=null)r=aA.tI.eM(T,k,C,U);else if(T==window&&aA.LD[k]){}else r=T[k];return r}else if(E=="ArrayExpression"){var P=[],b=L.elements;
for(var H=0;H<b.length;H++)P.push(aA.qq(b[H],C,U));return P}else if(E=="ObjectExpression"){var P={},b=L.properties;
for(var H=0;H<b.length;H++){var Q=b[H],K=b[H].key.name?b[H].key.name:b[H].key.value;P[K]=aA.qq(b[H].value,C,U)}return P}else if(E=="ExpressionStatement"){return aA.eval(L.expression,C,U)}else if(E=="NewExpression"){var h=L.arguments,x=L.callee,O=x.type,y=[],P=null;
for(var H=0;H<h.length;H++)y.push(aA.qq(h[H],C,U));if(O=="Identifier")P=aA.tI.ajr(x.name,y,C,U);else throw"e";
if(P==null)throw"new "+x.name;return P}else if(E=="CallExpression"){var h=L.arguments,x=L.callee,O=x.type,v={};
for(var i in U)v[i]=U[i];var y=[];for(var H=0;H<h.length;H++)y.push(aA.qq(h[H],C,U));if(O=="Identifier"){var D=x.name,I=U[D];
if(I){if(I.params){var m=I.params;for(var H=0;H<m.length;H++)v[m[H].name]=y[H];return aA.eval(I.body,C,v)}else{return I.apply(null,y)}}else if(aA.tI.aof.indexOf(D)!=-1)return aA.tI.bU({NT:"Application"},D,y,C,U);
else if(window[D]==null)console.log("Unknown function "+D);else if(aA.LD[D])alert(D+"() not available");
else{var f=window[D].apply(window,y);return f}}else if(O=="MemberExpression"){var T=aA.qq(x.object,C,U),k=x.computed?aA.qq(x.property,C,U):aA.eval(x.property,C,U);
if(T==window&&aA.LD[k])return;if(T.NT!=null)return aA.tI.bU(T,k,y,C,U);else return T[k].apply(T,y)}else if(O=="FunctionExpression"){return aA.eval(x.body,C,U)}else console.log(L)}else if(E=="AssignmentExpression"){var A=L.operator,d=L.left,g=d.type,X=aA.qq(d,C,U),n=aA.qq(L.right,C,U),r=null;
if(!1){}else if(A=="=")r=n;else if(A=="+=")r=X+n;else if(A=="-=")r=X-n;else if(A=="*=")r=X*n;else if(A=="/=")r=X/n;
else if(A=="%=")r=X%n;else if(A=="&=")r=X&n;else if(A=="|=")r=X|n;else if(A=="&&=")r=X&&n;else if(A=="||=")r=X||n;
else console.log(L);if(g=="Identifier"){var R=d.name;if(U.hasOwnProperty(R))U[R]=r;else U.__window[R]=r}else if(g=="MemberExpression"){var l=aA.eval(d.property,C,U),w=aA.qq(d.object,C,U);
if(w.NT!=null)aA.tI.afm(w,l,r,C,U);else w[l]=r}else console.log(L)}else if(E=="Identifier")return L.name;
else if(E=="Literal")return L.value;else if(E=="UpdateExpression"){var A=L.operator,V=L.argument.name,P=aA.qq(L.argument,C,U);
if(!1){}else if(A=="++"){U[V]++;return L.prefix?U[V]:U[V]-1}else if(A=="--"){U[V]--;return L.prefix?U[V]:U[V]+1}else console.log(L)}else if(E=="UnaryExpression"){var A=L.operator,F=aA.qq(L.argument,C,U);
if(F.NT=="UnitValue"){if(A=="-")return-F.G;else return aA.kM(F.G,A)}else return aA.kM(F,A)}else if(E=="BinaryExpression"||E=="LogicalExpression"){var A=L.operator,d=aA.qq(L.left,C,U),F=aA.qq(L.right,C,U);
if(d==null||F==null)return aA.d3(d,F,A);else if(d.NT=="UnitValue"&&F.NT=="UnitValue")return aA.d3(d.G,F.G,A);
else if(d.NT=="UnitValue")return aA.d3(d.G,F,A);else if(F.NT=="UnitValue"){if(A=="-")return-(d-F.G);
else return aA.d3(d,F.G,A)}else return aA.d3(d,F,A)}else if(E=="IfStatement"||E=="ConditionalExpression"){var Z=aA.qq(L.test,C,U);
if(Z)return aA.eval(L.consequent,C,U);else if(L.alternate)return aA.eval(L.alternate,C,U)}else if(E=="ForInStatement"){aA.eval(L.left,C,U);
var M=L.left.declarations[0].id.name,a=aA.qq(L.right,C,U);for(var i in a){U[M]=i;var e=aA.eval(L.body,C,U);
if(U.__break)break;if(U.__return)return e}U.__break=!1}else if(E=="ForStatement"){aA.eval(L.init,C,U);
while(aA.eval(L.test,C,U)){var e=aA.eval(L.body,C,U);if(U.__break)break;if(U.__return)return e;aA.eval(L.update,C,U)}U.__break=!1}else if(E=="DoWhileStatement"){do{var e=aA.eval(L.body,C,U);
if(U.__break)break;if(U.__return)return e}while(aA.eval(L.test,C,U));U.__break=!1}else if(E=="TryStatement"){aA.eval(L.block,C,U);
if(U.__throw){var N=L.handler;U[N.param.name]=U.__throw;U.__throw=!1;aA.eval(N.body,C,U);delete U[N.param.name]}}else if(E=="EmptyStatement"){}else console.log(L)};
aA.d3=function(L,C,U){if(U=="+")return L+C;else if(U=="-")return L-C;else if(U=="*")return L*C;else if(U=="/")return L/C;
else if(U=="%")return L%C;else if(U=="^")return L^C;else if(U=="&")return L&C;else if(U=="&&")return L&&C;
else if(U=="|")return L|C;else if(U=="||")return L||C;else if(U=="<")return L<C;else if(U==">")return L>C;
else if(U=="==")return L==C;else if(U=="<=")return L<=C;else if(U==">=")return L>=C;else if(U=="!=")return L!=C;
else if(U=="!==")return L!==C;else if(U=="<<")return L<<C;else if(U==">>")return L>>C;else console.log(U)};
aA.kM=function(L,C){if(C=="-")return-L;else if(C=="!")return!L;else if(C=="~")return~L;else if(C=="+")return L;
else console.log(obj)};aA.qq=function(L,C,U){var E=L.type;if(E=="Identifier")return aA.a8Y(L.name,C,U);
else return aA.eval(L,C,U)};aA.a8Y=function(L,C,U){if(L=="undefined")return undefined;else if(U.hasOwnProperty(L))return U[L];
else if(L=="app")return{NT:"Application"};else if(L=="$")return{NT:"$"};else if(aA.tI.aix.indexOf(L)!=-1)return aA.tI.eM({NT:"Application"},L,C,U);
else if(window[L]&&!aA.LD[L])return window[L];else{U[L]=null;return null}};aA.tI={};aA.tI.ajr=function(L,C,U,E){var Y;
if(L=="SolidColor")Y={NT:L,G:[1,0,0,0]};if(L=="Window")Y={NT:L,G:new g3(C[0],C[1],C[2])};if(L=="ExportOptionsSaveForWeb")Y={NT:L,G:{Dl:"png",ae:100}};
if(L=="JPEGSaveOptions")Y={NT:L,G:{Dl:"jpg",ae:100}};if(L=="File")Y={NT:L,G:C[0]};if(L=="ActionReference")Y={NT:L,G:[]};
if(L=="ActionDescriptor")Y={NT:L,G:{}};if(L=="UnitValue")Y={NT:L,G:C.length==0?0:parseFloat(C[0])};return Y};
aA.tI.aix="activeDocument documents fonts preferences displayDialogs foregroundColor backgroundColor".split(" ");
aA.tI.aof=["charIDToTypeID","stringIDToTypeID","executeAction","executeActionGet","doAction"];aA.tI.eM=function(L,C,U,E){var Y=U.U4,z=U.aD();
if(!1){}else if(C=="typename"){if(L.NT=="Layer")return L.G.Jc()?"LayerSet":"ArtLayer";else return L.NT}else if(["Document","Layer"].indexOf(L.NT)!=-1&&["layers","artLayers","layerSets"].indexOf(C)!=-1){var r=z.root,p={NT:"Layers",Y1:C,G:[]};
if(L.NT=="Layer")r=z.root.cW(z.N.indexOf(L.G));if(r.children==null)return null;for(var H=0;H<r.children.length;
H++){var T=r.children[H].$,k=T.Jc();if(k&&C=="artLayers"||!k&&C=="layerSets")continue;p.G.push({NT:"Layer",G:T})}p.G.reverse();
return p}else if(L.NT=="Documents"||L.NT=="Layers"||L.NT=="HistoryStates"){if(!1){}else if(C=="length")return L.G.length;
else if(Number.isInteger(C))return L.G[C];else console.log(L.NT+": unknown property ",C)}else if(L.NT=="Application"){if(!1){}else if(C=="activeDocument")return{NT:"Document",G:U.aD()};
else if(C=="documents"){var p={NT:"Documents",G:[]};for(var H=0;H<U.vX.length;H++)p.G.push({NT:"Document",G:U.vX[H]});
return p}else if(C=="fonts")return{NT:"TextFonts"};else if(C=="preferences")return{NT:"Preferences"};
else if(C=="displayDialogs")return{NT:"DialogModes"};else if(C=="foregroundColor"||C=="backgroundColor"){var P=C[0]=="f"?Y.yx:Y.ho;
return{NT:"SolidColor",G:[1,(P>>>16&255)/255,(P>>>8&255)/255,(P>>>0&255)/255]}}else if(C=="UI")return{NT:"UI"};
else console.log(L,C)}else if(L.NT=="Document"){var z=L.G;if(!1){}else if(C=="activeLayer"){var T=z.N[z.C[0]];
return{NT:"Layer",G:T}}else if(C=="resolution")return z._Q;else if(C=="width")return z.d;else if(C=="height")return z.v;
else if(C=="name")return z.name;else if(C=="saved")return!z.lH();else if(C=="selection")return{NT:"Selection"};
else if(C=="activeHistoryState")return{NT:"HistoryState",Oi:z.xC};else if(C=="source")return z._L;else if(C=="historyStates"){var b=[];
for(var H=0;H<z.history.length;H++)b.push({NT:"HistoryState",Oi:H});return{NT:"HistoryStates",G:b}}else console.log(L,C)}else if(L.NT=="Layer"){var Q={transparentPixelsLocked:0,pixelsLocked:1,positionLocked:2,allLocked:31},T=L.G;
if(!1){}else if(C=="visible")return T.rK();else if(C=="selected")return z.C.indexOf(z.N.indexOf(T))!=-1;
else if(C=="grouped")return T.l$;else if(Q[C]!=null)return T.zm(Q[C]);else if(C=="opacity")return T.opacity*100/255;
else if(C=="blendMode")return T.B4;else if(C=="name")return T.getName();else if(C=="textItem")return{NT:"TextItem",G:T};
else if(C=="bounds"){var K=W.o.dm(z,[z.N.indexOf(T)]);return aA.tI.i9(K,z)}else if(C=="parent"){var h=U.vX;
for(var H=0;H<h.length;H++)if(h[H].N.indexOf(T)!=-1)return{NT:"Document",G:h[H]}}else if(C=="kind"){var x=aA.tI.KW;
for(var H=0;H<x.length;H++)if(T.add[x[H]]!=null)return H;return 0}else console.log(L,C)}else if(L.NT=="Selection"){if(!1){}else if(C=="bounds")return aA.tI.i9(U.aD().t.rect,z);
else console.log(L,C)}else if(L.NT=="TextItem"){var O=L.G.add.TySh,y=O.Se,v=b5.xY(y),i=O.J.ia(),D=b5.L3(y,0,Math.max(0,v.length-2));
if(C=="contents")return v.slice(0,v.length-1).replace(/\n/g,"\r");else if(C=="font")return D.LI.Font!=null?D.Oe[D.LI.Font].Name:null;
else if(C=="size")return aA.tI.dI(D.LI.FontSize*i,z);else if(C=="leading")return aA.tI.dI(D.LI.Leading*i,z);
else if(C=="tracking")return aA.tI.dI(D.LI.Tracking);else if(C=="kind")return 1-b5.S8(y);else if(C=="useAutoLeading")return D.s6.AutoLeading;
else if(C=="hyphenation")return D.s6.AutoHyphenate;else if(C=="color")return{NT:"SolidColor",G:D.LI.FillColor.Values.slice(0)};
else if(C=="width"||C=="height"){var I=b5.qi(y),m=(I[2]-I[0])*i,f=(I[3]-I[1])*i;return aA.tI.dI(C=="width"?m:f,z)}else if(C=="position"){var A=O.J;
return aA.tI.rf([A.Yt,A.rv],z)}else if(C=="horizontalScale"||C=="verticalScale"){var d=C[0].toUpperCase()+C.slice(1);
return Math.round(D.LI[d]*100)}else console.log(L,C)}else if(L.NT=="Preferences"){if(C=="rulerUnits")return Y.qA.Ca;
else console.log(L,C)}else if(L.NT=="SolidColor"){if(C=="rgb")return{NT:"RGBColor",G:L.G};else console.log(L,C)}else if(L.NT=="RGBColor"){var K=Math.round(255*L.G[1]),g=Math.round(255*L.G[2]),X=Math.round(255*L.G[3]);
if(!1){}else if(C=="red")return K;else if(C=="green")return g;else if(C=="blue")return X;else if(C=="hexValue")return"#"+c.Xo(K<<16|g<<8|X).toUpperCase();
else console.log(L,C)}else if(L.NT=="UnitValue"){if(C=="value")return L.G;else throw"e"}else if(L.NT=="ExportOptionsSaveForWeb"){if(C=="format")return L.G.Dl;
else if(C=="PNG8")return!1;else if(C=="quality")return L.G.ae;else throw C}else if(L.NT=="JPEGSaveOptions"){return 0}else console.log(L,C)};
aA.tI.i9=function(L,C){return aA.tI.rf([L.x,L.y,L.x+L.d,L.y+L.v],C)};aA.tI.rf=function(L,C){var U=[];
for(var H=0;H<L.length;H++)U.push(aA.tI.dI(L[H],C));return U};aA.tI.ZM=function(L){var C=[];for(var H=0;
H<L.length;H++)C.push(L[H].NT?L[H].G:L[H]);return C};aA.tI.dI=function(L,C){return{NT:"UnitValue",G:L}};
aA.tI.a9c=function(L,C){if(L.NT=="UnitValue")return L.G;return L};aA.tI.afm=function(L,C,U,E,Y){var z=new q(B.E.A,!0),r=new q(B.E.l,!0),p=E.aD(),T=E.U4;
if(!1){}else if(L.NT=="Application"){if(!1){}else if(C=="activeDocument"){r.data={e:B.U.Nd,_u:U.G};E.B(r)}else if(C=="displayDialogs"){}else console.log(L,C,U)}else if(L.NT=="Document"){var k=L.G;
if(!1){}else if(C=="name"){z.m=W.aV;z.data={e:o.r$,G:U,anH:!0,yD:k};p.dD=!0}else if(C=="source")k._L=U;
else if(C=="activeLayer"){k.C=[k.N.indexOf(U.G)]}else if(C=="activeHistoryState"){z.m=W.n3;z.data={e:"h_itemchange",index:U.Oi}}else console.log(L,C)}else if(L.NT=="Layer"){z.m=W.aV;
var P={transparentPixelsLocked:0,pixelsLocked:1,positionLocked:2,allLocked:31},b=L.G,Q=p.N.indexOf(b);
if(!1){}else if(C=="visible"){if(b.rK()!=U)z.data={e:o.Zu,$:Q}}else if(C=="opacity"){z.data={e:o.K0,$:Q,oq:Math.round(255*U/100)}}else if(C=="blendMode"){z.data={e:o.uP,$:Q,oq:gz.w0.indexOf(U)}}else if(C=="name"){z.data={e:o.lt,$:Q,name:U}}else if(P[C]!=null){z.data={e:o.Lx,$:Q,oq:[[U],[P[C]]]}}else if(C=="kind"){z.data={e:o.mX,$:Q,ZI:aA.tI.KW[U]}}else if(C=="grouped"){z.data={e:o.VY,$:Q,oq:U}}else console.log(L,C,U)}else if(L.NT=="TextItem"){z.m=W.Ey;
var b=L.G,K=b.add.TySh,h=JSON.parse(JSON.stringify(K.Se)),x=K.J.clone(),O=K.J.ia(),y=b5.xY(h),v=b5.L3(h,0,y.length-2),i=!1;
if(!1){}else if(C=="contents"){b5.PB(h,0,y.length-1);b5.X$(h,0,U.replace(/\r/g,"\n"))}else if(C=="size"){v.LI.FontSize=(U.G!=null?U.G:U)/O;
i=!0}else if(C=="leading"){v.LI.Leading=(U.G!=null?U.G:U)/O;i=!0}else if(C=="tracking"){v.LI.Tracking=U.G!=null?U.G:U;
i=!0}else if(C=="kind"){var D=b5.S8(h);if(D==1&&U==1){var I=new hX(h,E.U4.tW).s6[0],m=I.D4[0].end,f=I.HR[m-1].end;
b5.PB(h,0,y.length-1);b5.X$(h,0,y.slice(0,f-1))}if(D==U)b5.B$(h,1-U)}else if(C=="useAutoLeading"){v.s6.AutoLeading=U;
i=!0}else if(C=="hyphenation"){v.s6.AutoHyphenate=U;i=!0}else if(C=="font"){b5.yk(v,U);i=!0}else if(C=="color"){v.LI.FillColor.Values=U.G.slice(0);
i=!0}else if(C=="width"||C=="height"){var A=b5.qi(h).slice(0),d=aA.tI.a9c(U);if(C=="width")A[2]=Math.round(A[0]+d/O);
else A[3]=Math.round(A[1]+d/O);b5.If(h,A)}else if(C=="position"){x.Yt=U[0];x.rv=U[1]}else if(C=="horizontalScale"||C=="verticalScale"){var g=C[0].toUpperCase()+C.slice(1);
v.LI[g]=U/100;i=!0}else console.log(L,C,U);if(i)b5.Em(h,0,y.length-1,v);z.data={e:"newED",mD:p.N.indexOf(b),wL:h,J:x}}else if(L.NT=="Preferences"){if(!1){}else if(C=="rulerUnits"){var X=JSON.parse(JSON.stringify(T.qA));
X.Ca=U;r.data={e:B.U.MP,wm:c_.cq,oq:X};E.B(r)}else console.log(L,C,U)}else if(L.NT=="RGBColor"){if(!1){}else if(C=="red")L.G[1]=U/255;
else if(C=="green")L.G[2]=U/255;else if(C=="blue")L.G[3]=U/255;else if(C=="hexValue"){var n=c.hA(U.slice(1));
L.G[1]=(n>>>16&255)/255;L.G[2]=(n>>>8&255)/255;L.G[3]=(n>>>0&255)/255}else console.log(L,C)}else if(L.NT=="ExportOptionsSaveForWeb"){if(C=="format")L.G.Dl=U;
else if(C=="PNG8"){}else if(C=="quality")L.G.ae=U;else throw"e"}else if(L.NT=="JPEGSaveOptions"){if(C=="quality")L.G.ae=Math.round(100*U/12)}else console.log(L,C,U);
if(z.data!=null)E.B(z)};aA.tI.bU=function(L,C,U,E,Y){var z=L.NT,r=null,p=new q(B.E.A,!0),T=new q(B.E._w,!0),k=new q(B.E.l,!0),P=E.aD(),b=E.vX;
if(!1){}else if(z=="Application"){if(!1){}else if(C=="charIDToTypeID"){var Q=U[0].trim(),K={Lvls:"levels",slct:"select",Dlt:"delete"};
return K[Q]?K[Q]:Q}else if(C=="stringIDToTypeID"){var h=U[0].trim(),K={red:"Rd",blue:"Bl",color:"Clr",RGBColor:"RGBC",type:"Type",using:"Usng"},x=K[h];
return x==null?h:x}else if(C=="executeAction"){console.log(U);var O;if(U[1]){O=U[1].G;O.classID=U[0]}var y={setd:"set"},v=y[U[0]];
if(v==null)v=U[0];T.data={xo:v,V5:O}}else if(C=="executeActionGet"){return{NT:"ActionDescriptor",G:{classID:"null",null:{t:"obj ",v:U[0].G}}}}else if(C=="doAction"){k.data={e:B.U.jS,F$:[U[0],U[1]]}}else if(C=="open"){k.data={e:B.U.sh,wm:{url:U[0]}};
if(U[2]&&b.length!=0)k.data.wm.Tm=b.indexOf(P)}else if(C=="echoToOE"){k.data={e:B.U.b$,wm:U[0]}}else console.log(C)}else if(z=="Document"){var P=L.G;
if(!1){}else if(C=="crop"){T.data=W.yP.oR(U[0])}else if(C=="trim"){var i=[];for(var H=0;H<4;H++)i.push(U[H+1]!=null?U[H+1]:!0);
T.data=W.yP.Fv(U[0]!=null?U[0]:0,i)}else if(C=="suspendHistory"){var D=acorn.parse(U[1]);aA.eval(D,E,Y)}else if(C=="save"){k.data={e:B.U.Bk}}else if(C=="saveToOE"){k.data={e:B.U.Bk,ai$:U}}else if(C=="rotateCanvas"){T.data=W.o.Lh(!0,U[0])}else if(C=="resizeImage"||C=="resizeCanvas"){var I=U[0],m=U[1];
if(typeof I!="number"){I=P.d*parseFloat(I.slice(0,I.length-1))/100;m=P.v*parseFloat(m.slice(0,m.length-1))/100}if(C=="resizeCanvas")T.data=W.yP.eW(Math.round(I),Math.round(m),U[2]);
else T.data=W.yP.Zn(Math.round(I),Math.round(m),null,1)}else if(C=="paste"){k.data={e:B.U.SR,th:U.length!=0&&U[0]}}else if(C=="close"){k.data={e:B.U.Ma,$M:P}}else if(C=="exportDocument"||C=="saveAs"){var f=Y.__fs,A=U[0].G.replace(":","").replace("~/",""),d=C=="exportDocument"?U[2].G:U[1].G,g=iL.UJ(P,d.Dl,null,null,[d.ae],E.U4);
f[A]=new Uint8Array(g)}else console.log(L,C,U)}else if(z=="Layer"){var X=L.G,n=P.N.indexOf(X);if(!1){}else if(C=="copy"){aA.tI.PD(P,E,0);
k.data={e:B.U.NC,hQ:U[0],nY:n};E.B(k);delete k.data;aA.tI.PD(P,E,1)}else if(C=="clear"){aA.tI.PD(P,E,0);
T.data={xo:"delete"};E.B(T);delete T.data;aA.tI.PD(P,E,1)}else if(C=="duplicate"){if(U.length==0){p.data={e:o.ok,$:n};
p.m=W.aV;E.B(p);p.data=null;r={NT:"Layer",G:P.N[P.C[0]]}}else if(U[0].NT=="Document"){p.data={e:o.JU,N:P.LR(n),R7:P,eb:U[0].G};
p.m=W.aV}}else if(C=="merge"||C=="remove"){p.data={e:C=="merge"?o.Zt:o.eZ,$:n};p.m=W.aV;if(C!="remove")r={NT:"Layer",G:P.N[P.C[0]]}}else if(C=="move"){p.data={e:o.Br,source:n,target:P.N.indexOf(U[0].G),KO:U[1]!=3?.6:.3};
p.m=W.aV}else if(C=="rasterize"){T.data={xo:"rasterizeLayer",V5:{classID:"rasterizeLayer",null:hy.K1("Lyr",!0)}}}else if(C=="rotate"){p.data={e:"rot",z9:[2,5],G:-U[0]*Math.PI/180,jP:U[1],$:n};
p.m=W.YH}else if(C=="resize"){p.data={e:"scl",z9:[2,4],G:new hZ(U[0]/100,U[1]/100),jP:U[2],$:n};p.m=W.YH}else if(C=="translate"){var R=aA.tI.ZM(U);
p.data={e:"trsl",$:n,afS:R[0],adc:R[1]};p.m=W.Ml}else if(C=="link"){p.data={e:o.Sg,adk:[n,P.N.indexOf(U[0].G)]};
p.m=W.aV}else if(C=="invert"){p.m=W.E_;p.data={e:"start",Pn:"nvrt"}}else if(C.startsWith("apply")&&hi.S6[C.slice(5)]){var R=aA.tI.ZM(U),l=hi.S6[C.slice(5)];
T.data={xo:hi.IZ[l]};var O=hi.Q4(l);if(O){hi.vJ["g"+l](O,R);T.data.V5=O}}else console.log(L,C,U)}else if(z=="Documents"){if(C=="getByName"){for(var H=0;
H<b.length;H++)if(b[H].name==U[0])return{NT:"Document",G:b[H]};return null}else if(C=="add"){var w=U[5];
if(w==null)w=1;T.data=b7.Jo(U[0],U[1],U[2],U[3],["Wht","Trns","BckC"][w])}else throw"e"}else if(z=="Layers"){if(C=="getByName"){for(var H=0;
H<L.G.length;H++)if(L.G[H].G.getName()==U[0]){r=L.G[H];break}if(r==null)Y.__throw={message:"No layer with a name "+U[0]}}else if(C=="add"){p.data={e:L.Y1=="layerSets"?o.x2:o.vY};
p.m=W.aV;E.B(p);p.data=null;r={NT:"Layer",G:P.N[P.C[0]]}}else console.log(L,C,U)}else if(L.NT=="Selection"){if(C=="select"){var V=U[0],F=[];
for(var H=0;H<V.length;H++)F.push(V[H][0],V[H][1]);T.data=W.kd.K4(F)}else if(C=="selectAll"){T.data=W.kd.xe(!0)}else if(C=="invert"){T.data={xo:"inverse"}}else if(C=="copy"){k.data={e:B.U.NC}}else if(C=="deselect"){T.data=W.kd.xe()}else if(C=="fill"){var Z=U[0].G;
Z=c.W._b({h:Z[1]*255,P:Z[2]*255,O:Z[3]*255});T.data=W.dl.vG("Clr",U[1],U[2]==null?1:U[2]/100,Z)}else console.log(L,C,U)}else if(L.NT=="Window"){if(C=="show"){k.data={e:B.U.Q1,k5:L.G}}else throw"e"}else if(L.NT=="ActionReference"){if(C=="putProperty"){L.G.push({t:"prop",v:{classID:U[0],keyID:U[1]}})}else if(C=="putClass"){L.G.push({t:"Clss",v:{classID:U[0]}})}else if(C=="putEnumerated"){L.G.push({t:"Enmr",v:{classID:U[0],typeID:U[1],enum:U[2]}})}else console.log(C,U)}else if(L.NT=="ActionDescriptor"){if(C=="putReference"){L.G[U[0]]={t:"obj ",v:U[1].G}}else if(C=="putDouble"){L.G[U[0]]={t:"doub",v:U[1]}}else if(C=="putUnitDouble"){L.G[U[0]]={t:"UntF",v:{type:U[1],val:U[2]}}}else if(C=="putObject"){var M=U[2].G;
M.classID=U[1];L.G[U[0]]={t:"Objc",v:M}}else if(C=="putBoolean"){L.G[U[0]]={t:"bool",v:U[1]}}else if(C=="hasKey"){var a=L.G.null.v;
for(var H=0;H<a.length;H++){if(a[H].v.keyID==U[0]){if(U[0]=="UsrM"){return P.N[P.C[0]].xV()!=null}else throw U}}}else console.log(C,U)}else if(L.NT=="$"){if(C=="writeln"){console.log(U[0])}else throw C}else if(L.NT=="UI"){var e;
if(C=="zoomIn"||C=="zoomOut"){e={e:"zoom",AI:C=="zoomIn"}}else if(C=="fitTheArea"){e={e:"adapt",G:"fitscr"}}else if(C=="pixelToPixel"){e={e:"adapt",G:"pixel"}}p.m=W.tJ;
p.data=e}else console.log(L,C,U);if(p.data)E.B(p);if(T.data)E.B(T);if(k.data)E.B(k);return r};aA.tI.PD=function(L,C,U){var E=new q(B.E.A,!0);
E.m=W.Y7;var Y=new q(B.E._w,!0);if(U==0){aA.tI.RG=L.t;Y.data=W.kd.xe(!0)}else{var z=aA.tI.RG;if(z)E.data={e:"setsel",z9:"Restore Selection",t:{rect:z.rect.clone(),channel:z.channel.slice(0)}};
else Y.data=W.kd.xe()}C.B(E.data?E:Y)};aA.tI.RG=null;aA.tI.zc={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 "}};
aA.tI.zc.ColorBlendMode=aA.tI.zc.BlendMode;aA.tI.KW="---- SoLd TySh SoCo GdFl PtFl".split(" ");function bd(){}bd.Wz={"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]};
bd.FX={"5":"dc:Title","55":"exif:DateTimeOriginal","80":"tiff:Artist","120":"tiff:ImageDescription"};
bd.a7F=function(L,C){if(C==null)C={};var U=bd.FX,E=[];for(var H=0;H<L.length;H++){var Y=L[H],z=U[Y[0]+""];
if(C[z]==null)C[z]=Y[1];else if(Y[0]==25)E.push(Y[1])}if(E.length!=0&&C["dc:Keywords"]==null)C["dc:Keywords"]=E.join(";");
return C};bd.agM=function(L){var C=bd.FX,U=[];for(var E in C)if(L[C[E]])U.push([parseInt(E),L[C[E]]]);
if(L["dc:Keywords"]){var Y=L["dc:Keywords"].split(";");for(var H=0;H<Y.length;H++)U.push([25,Y[H].trim()])}return U};
bd.QL=function(L,C){if(C==null)C={};var U=new DOMParser,E=U.parseFromString(L,"image/svg+xml"),Y=E.getElementsByTagName("rdf:Description")[0];
if(Y==null)return C;var z=bd.Wz;for(var r in z){var p=z[r][2];if(p==null)continue;var T=Y.getElementsByTagName(p)[0];
if(T==null)continue;var e4=T.getElementsByTagName("rdf:li"),k=[];for(var H=0;H<e4.length;H++)k.push(e4[H].textContent);
C[r]=k.join("; ")}return C};bd.BV=function(L){var C=["<?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#\">"],U=bd.Wz;
for(var E in U){var Y=L[E],z=U[E][2],r="Seq",p="";if(Y==null||z==null)continue;if(z=="dc:title"||z=="dc:description"){r="Alt";
p=" xml:lang=\"x-default\""}if(z=="dc:subject")r="Bag";C.push("\t<"+z+"><rdf:"+r+">");var T=z=="dc:subject"?Y.split(";").join(",").split(","):[Y];
for(var H=0;H<T.length;H++)C.push("\t\t<rdf:li"+p+">"+T[H].trim()+"</rdf:li>");C.push("\t</rdf:"+r+"></"+z+">")}C.push("</rdf:Description>","</rdf:RDF>","</x:xmpmeta>","<?xpacket end=\"w\"?>");
return C.join("\n")};bd.m2=function(L){var C=[];for(var H=0;H<L.length;H++)C[H]=L[H][1]==0?0:L[H][0]/L[H][1];
return C};bd.oc=function(L){var C=[];for(var H=0;H<L.length;H++){var U=L[H],E=1;if(U!=Math.round(U)){E=1e3;
U=Math.round(U*E)}C[H]=[U,E]}return C};bd.L7=function(L,C){var U=bd.Wz;if(C==null)C={};for(var E in U){var Y=U[E][1],z="t"+Y;
if(Y!=null&&L[z]!=null){var r=L[z];if(Y==0)r=r.join(".");else if(Y==2||Y==4){var p=L["t"+(Y-1)];if(p==null)p=[Y==2?"N":"E"];
r=bd.m2(r).join(",")+p[0]}else if(Y==42034)r=bd.m2(r).join(" ");else if(Y==270||Y==315){var T=r[0],k=new Uint8Array(T.length);
$.Ti(k,0,T);r=$.IQ(k)}else r=r[0];C[E]=r}}if(L.exifIFD)bd.L7(L.exifIFD,C);if(L.gpsiIFD)bd.L7(L.gpsiIFD,C);
return C};bd.AQ=function(L,C,U){var E=bd.Wz,z=0,p=0;if(C==null)C={};var Y={},r={};for(var T in E){if(L[T]==null||E[T][1]==null)continue;
var k=E[T][1],P="t"+k,b=C;if(T.startsWith("exif:")){b=Y;z++;if(T.startsWith("exif:GPS")){b=r;p++}}var Q=L[T];
if(k==0)Q=new Uint8Array(Q.split(".").map(parseFloat));else if(k==2||k==4){var K=Q.length;b["t"+(k-1)]=[Q.slice(Q.length-1)];
Q=bd.oc(Q.split(",").map(parseFloat))}else if(k==42034)Q=bd.oc(Q.split(" ").map(parseFloat));else if(k==270||k==315){var h=$.RK(Q);
Q=[$.ZA(h,0,h.length)]}else Q=[Q];b[P]=Q}if(z!=0){C.exifIFD=Y;C.t34665=[0]}if(p!=0){C.gpsiIFD=r;C.t34853=[0]}var x=new Date,O=[x.getFullYear(),x.getMonth()+1,x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds()];
for(var H=0;H<6;H++)O[H]=(O[H]+"").padStart(2,"0");C.t305=["Photopea Editor (www.photopea.com)"];if(U!=!0)C.t306=[O[0]+":"+O[1]+":"+O[2]+" "+O[3]+":"+O[4]+":"+O[5]];
return C};var B={};B.pV=0;B.E3=function(){B.pV++;return B.pV};B.a9K="uint8";B.I9=function(){if(window.top!=window.self)return!1;
var L=navigator.userAgent.toLowerCase();if(L.indexOf("android")!=-1)return!1;if(L.indexOf("safari")!=-1&&L.indexOf("chrome")==-1)return!1;
return window.ClipboardItem!=null};B.Mr=function(L){this.Y8=L;this.ace=B.w("img");this.co=B.w("canvas");
this.q$=null;this.X5="";this.hn=null;this.pJ=new hZ(0,0);B.z2(this.Y8,this.MS.bind(this))};B.Mr.prototype.jn=function(L,C){this.q$=L;
if(C)this.X5=C;this.MS()};B.Mr.prototype.MS=function(L){if(L)this.pJ=B.K7(L,this.Y8);var C=this.q$,U=typeof C=="string";
if(!U){var E=B.M(),Y=this.pJ,z=C._.d,r=C._.v,p=typeof C.GE=="string",T=p?this.ace:this.co;if(p)T.setAttribute("src",C.GE);
else{T.width=z;T.height=r;var k=T.getContext("2d"),P=new ImageData(new Uint8ClampedArray(C.GE.buffer),z,r);
k.putImageData(P,0,0)}T.setAttribute("style"," position:absolute; pointer-events:none;user-select:none;"+"top:"+(Y.y-C.Nb.y/E)+"px; left:"+(Y.x-C.Nb.x/E)+"px; width:"+z/E+"px; height:"+r/E+"px");
var b=this.hn;if(b==null||b!=T){if(b)this.Y8.removeChild(b);this.Y8.appendChild(T);this.hn=T}}else if(this.hn){this.Y8.removeChild(this.hn);
this.hn=null}this.Y8.setAttribute("style","cursor:"+(U?C:"none")+"; "+this.X5)};B.cw=function(L){return L.replace(/</g,"&lt;").replace(/>/g,"&gt;")};
B.ju=function(L,C){L.uc(gS.get([12,41]).charAt(0)+":");C.uc(gS.get([12,42]).charAt(0)+":")};B.w=function(L,C){var U=document.createElement(L);
if(C!=null)U.setAttribute("class",C);return U};B.CF=function(L){while(L.firstChild)L.removeChild(L.firstChild)};
B.QS=function(L,C){var U=L.getAttribute("class");if(U==null)U="";U=U.split(" ");if(U.indexOf(C)==-1)U.push(C);
L.setAttribute("class",U.join(" "))};B.gy=function(L,C){var U=L.getAttribute("class");if(U==null)return;
U=U.split(" ");if(U.indexOf(C)!=-1)U.splice(U.indexOf(C),1);L.setAttribute("class",U.join(" "))};B.DW=function(L){while(!0){if(L==document)return!0;
if(L==null)return!1;L=L.parentNode}};B.E4=function(L){L.appendChild(B.w("br"))};B.kL=function(L){L.appendChild(B.w("hr"))};
B.ac=document;B.vC=function(L){var C=0;for(var H=0;H<L;H++)C+=Math.random();return C/L<Math.PI/4};B.dw=function(L,C){var U="";
if(!B.vC(29))C-=4;for(var H=0;H<L.length;H++)U+=String.fromCharCode(L.charCodeAt(H)-C-H);return U};B.N3=function(L,C){var U="";
if(!B.vC(29))C+=4;for(var H=0;H<L.length;H++)U+=String.fromCharCode(L.charCodeAt(H)+C+H);return U};B.Yo=function(L){var C="";
if(!B.vC(28))L+="-3";for(var H=0;H<L.length;H++){var U=L.charCodeAt(H);if(U<32||127<U)throw"e";C+=String.fromCharCode(32+(U-32+17+3*H)%96)}return C};
B.N9=function(L){var C="";if(!B.vC(28))L+="-1";for(var H=0;H<L.length;H++){var U=L.charCodeAt(H);U-=32;
U+=96e4;U-=17+3*H;U=U%96;C+=String.fromCharCode(32+U)}return C};B._A=function(L){var C="";if(!B.vC(28))L+="-3";
for(var H=0;H<L.length;H++){var U=L.charCodeAt(H);if(U<32||126<U)throw"e";C+=String.fromCharCode(32+(U-32+17+3*H)%95)}return C};
B.d8=function(L){var C="";if(!B.vC(28))L+="-1";for(var H=0;H<L.length;H++){var U=L.charCodeAt(H);U-=32;
U+=95e4;U-=17+3*H;U=U%95;C+=String.fromCharCode(32+U)}return C};B.ne=function(L,C){var U="";if(!B.vC(29))C+=3;
for(var H=0;H<L.length;H++)U+=String.fromCharCode((256<<16)+L.charCodeAt(H)+C*H&255);return U};B.Dn=function(L){var C=Math.random();
B.a9K="uint"+(3+C);return new L};B.Xr=0;B.Qi=function(L,C){var U=0;if(Date.now()-B.Xr>1e3){U=C==0?100:C*10}else{if(L%10!=0)L*=10;
U=(L+C)%100}B.Xr=Date.now();return U};B.Vv=function(L,C){if(window.PointerEvent){L.addEventListener("pointerdown",C,!1);
return}L.addEventListener("mousedown",C,!1);L.addEventListener("touchstart",C,!1)};B.z2=function(L,C){if(window.PointerEvent){L.addEventListener("pointermove",C,!1);
return}L.addEventListener("mousemove",C,!1);L.addEventListener("touchmove",C,!1)};B.Yp=function(L,C){if(window.PointerEvent){L.addEventListener("pointerup",C,!1);
return}L.addEventListener("mouseup",C,!1);L.addEventListener("touchend",C,!1)};B.air=function(L,C){if(window.PointerEvent){L.removeEventListener("pointerdown",C,!1);
return}L.removeEventListener("mousedown",C,!1);L.removeEventListener("touchstart",C,!1)};B.dZ=function(L,C){if(window.PointerEvent){L.removeEventListener("pointermove",C,!1);
return}L.removeEventListener("mousemove",C,!1);L.removeEventListener("touchmove",C,!1)};B.EW=function(L,C){if(window.PointerEvent){L.removeEventListener("pointerup",C,!1);
return}L.removeEventListener("mouseup",C,!1);L.removeEventListener("touchend",C,!1)};B.zC=function(L){L.addEventListener("touchstart",B.tG,!1);
L.addEventListener("touchmove",B.tG,!1);L.addEventListener("touchend",B.tG,!1);L.addEventListener("gesturestart",B.tG,!1);
L.addEventListener("gesturechange",B.tG,!1);L.addEventListener("gestureend",B.tG,!1)};B.wS=function(L,C,U,E){var Y=B.M();
L.width=Math.floor(C*Y);L.height=Math.floor(U*Y);L.style.width=L.width/Y+"px";L.style.height=L.height/Y+"px";
if(E)E.setTransform(Y,0,0,Y,0,0)};B.IO=function(L,C,U){L.setAttribute("style","width:"+C/B.M()+"px; height:"+U/B.M()+"px")};
B.K7=function(L,C){if(C==null)C=L.currentTarget;var U=C.getBoundingClientRect();if(L.touches)L=L.touches.item(0);
return{x:L.clientX-U.left,y:L.clientY-U.top}};B.M=function(L){return window.devicePixelRatio||1};B.tG=function(L){L.preventDefault()};
B.ZS=function(L){L.stopPropagation();L.preventDefault()};B.lp=function(L,C,U){U=U?U:"";if(PIMG["__"+L]==null)U+=" gsicon";
return"<img src=\""+PIMG[L]+"\" alt=\""+(C?C:"")+"\" class=\""+U+"\" />"};B.hW=function(L,C,U,E){var Y=L.dataTransfer.getData("text/uri-list");
if(Y!=null&&Y.startsWith("http")){var z=new q(B.E.l,!0);z.data={e:B.U.sh,wm:{url:Y,Z3:!0,Tm:U,Ae:E}};
C.B(z)}if(L.dataTransfer.files.length==0)return;if(window.showOpenFilePicker){var r=[],p=L.dataTransfer.items.length,T=L.dataTransfer.files;
for(var k of L.dataTransfer.items)k.getAsFileSystemHandle().then(function(P){r.push(P);if(r.length==p){var z=new q(B.E.l,!0);
z.data={e:B.U.Ia,data:T,Tm:U,Ae:E,a5y:r};C.B(z)}})}else{var z=new q(B.E.l,!0);z.data={e:B.U.Ia,data:L.dataTransfer.files,Tm:U,Ae:E};
C.B(z)}};var q=function(L,C){if(!C)C=!1;this.type=L;this.target=null;this.currentTarget=null;this.bubbles=C;
this.m=null;this.Fw=!1};B.E={A:"0",l:"1",_w:"1.5",L:"2",Id:"3",M5:"4",mp:"5"};B.U={bW:"10",Ww:"11",Tq:"12",Hm:"13",lx:"14",ZD:"14.1",sh:"15",KJ:"16",TV:"17",kc:"18",Bk:"19",iA:"19.5",x1:"20",kh:"21",NC:"22",SR:"23",Cz:"24",Q1:"25",A_:"26",Nd:"27",DG:"28",Xy:"29",Ia:"30",ID:"31",Rj:"32",ca:"33",ik:"34",MP:"35",lf:"35.5",lR:"37",gr:"38",rA:"39",cG:"40",JT:"41",b$:"41.5",Tl:"42",_g:"43",xh:"43.5",Ma:"44",Qc:"45",PY:"46",Fl:"47",VC:"48",jS:"49",Rz:"50"};
if(B.vC(27))B.ac=window;else B.ac=B.ahQ;B.ac._cwY=B.ac[B.ne("clh]]c[",3)];var c5={};c5.ES=function(H){var L=c5.cK[H],C=document.documentElement.style,E=20;
C.setProperty("--bg-color","#"+c.Xo(L["--bg-color"]));C.setProperty("--bg-panel","#"+c.Xo(L["--bg-panel"]));
C.setProperty("--bg-canvas","#"+c.Xo(L["--bg-canvas"]));C.setProperty("--bg-input","#"+c.Xo(L["--bg-input"]));
C.setProperty("--bg-bbtn","#"+c.Xo(L["--bg-bbtn"]));C.setProperty("--bg-bbtnOver","#"+c.Xo(L["--bg-bbtnOver"]));
C.setProperty("--brdr","#"+c.Xo(L["--brdr"]));C.setProperty("--text-color","#"+c.Xo(L["--text-color"]));
C.setProperty("--brdrLgt","rgba(255,255,255,"+L["--brdrLgt"]+")");C.setProperty("--brdrDrk","rgba(  0,  0,  0,"+L["--brdrDrk"]+")");
C.setProperty("--alphaDark",""+L["--alphaDark"]);C.setProperty("--gs-invert",""+L["--gs-invert"]);var U=L["--sh-clr"];
C.setProperty("--sh-clr","rgba("+(U>>16)+","+(U>>8&255)+","+(U&255)+", 0.45)");C.setProperty("--sh-dy",""+L["--sh-dy"]+"px");
if(1<B.M()&&B.M()<1.5)E/=B.M();C.setProperty("--img20",E+"px");if(PIMG!=null){var Y="lrs/eye lrs/arrow_down lrs/arrow_right lrs/chain lrs/link lrs/clipping lrs/lock lrs/fx lrs/folder cross tools/cshape checkmark".split(" ");
for(var H=0;H<Y.length;H++){var z=Y[H],r=z.split("/").pop(),p=PIMG["__"+z]==null?L["--gs-invert"]:"0";
C.setProperty("--icon_"+r,"url("+PIMG[z]+")");C.setProperty("--icon_"+r+"_invrt",p)}}var T=document.querySelector("meta[name=theme-color]");
if(T)T.setAttribute("content","#"+c.Xo(L["--bg-color"]))};c5.cK=[{name:"Silver","--bg-color":14737632,"--bg-panel":9868950,"--bg-canvas":14737632,"--bg-input":16777215,"--bg-bbtn":15658734,"--bg-bbtnOver":15132390,"--brdrLgt":.5,"--brdrDrk":.4,"--alphaDark":.12,"--text-color":3749943,"--gs-invert":.22,"--brdr":7237230,"--sh-clr":16777215,"--sh-dy":1},{name:"Black","--bg-color":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:"Iron Blue","--bg-color":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:"Snow White","--bg-color":16250871,"--bg-panel":14540253,"--bg-canvas":15132390,"--bg-input":16777215,"--bg-bbtn":15658734,"--bg-bbtnOver":15132390,"--brdrLgt":.2,"--brdrDrk":.2,"--alphaDark":.065,"--text-color":0,"--gs-invert":.18,"--brdr":13158600,"--sh-clr":16777215,"--sh-dy":1},{name:"Danish Purple","--bg-color":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}];
function gG(){iq.call(this);this.parent=null;this.j=null;this.aU=0;this.fg=0}gG.prototype=new iq;gG.prototype.aiH=function(L){var u=this;
while(u!=null){if(u==L)return!0;u=u.parent}return!1};gG.prototype.LS=function(){var L=this.j;return L.offsetWidth+L.clientLeft};
gG.prototype.A0=function(){var L=this.j;return L.offsetHeight+L.clientTop};gG.prototype.update=function(L){};
gG.prototype.B=function(L){iq.prototype.B.call(this,L);if(L.bubbles&&this.parent!=null)this.parent.B(L)};
gG.prototype.a3l=function(L){L.stopPropagation();L.preventDefault()};gG.prototype.f=function(){};gG.prototype.rX=function(L){B.gy(this.j,"disabled")};
gG.prototype.aA=function(L){B.QS(this.j,"disabled")};gG.prototype.Q9=function(L){if(L)this.rX();else this.aA()};
function aq(L,C){gG.call(this);this.t8=null;this.a9P=this.Zr.bind(this);this.aeI=this.$I.bind(this);
this.al6=this.alL.bind(this);this.akk=this.xa.bind(this);this.rI=[];this.VJ=[];this.Si=[];this.aas=[];
this.j=B.w("div","contextpanel");this.j.addEventListener("contextmenu",B.tG,!1);this.ha=null;this.md=0;
this.aip=L;this.acC=C;this.FE=[];for(var H=0;H<L.length;H++){var U=B.w("div","enab");this.VJ.push(U);
this.j.appendChild(U);if(L[H].AF){var E=B.w("img","thumb");E.setAttribute("src",PIMG[L[H].AF]);U.appendChild(E)}else{var Y=B.w("span","check");
this.aas.push(Y);U.appendChild(Y)}var z=B.w("span","label");z.innerHTML=gS.get(L[H].name);U.appendChild(z);
this.Si.push(z);if(L[H].rY)this.j.appendChild(B.w("hr"));if(L[H].ir||L[H].sub){var r=B.w("span","right");
U.appendChild(r);if(L[H].ir)r.innerHTML=G.nX(L[H].ir);if(L[H].sub)r.innerHTML="\u25B6"}U.addEventListener("click",this.a9P,!1);
U.addEventListener("mouseover",this.aeI,!0);U.addEventListener("mouseout",this.al6,!0);if(L[H].sub){var p=new aq(L[H].sub,C?C[H].sub:null);
p.parent=this;this.FE.push(p);p.k("select",this.ae3,this)}else this.FE.push(null)}}aq.prototype=new gG;
aq.prototype.wg=function(L){B.CF(this.j);for(var H=0;H<L.length;H++)if(L[H]!=0&&L[H]!=null){this.j.appendChild(this.VJ[H]);
if(L[H]!=1&&this.FE[H])this.FE[H].wg(L[H])}};aq.prototype.f=function(){var L=this.aip;for(var H=0;H<L.length;
H++){if(L[H].title)this.VJ[H].title=gS.get(L[H].title);this.Si[H].textContent=gS.get(L[H].name)+(L[H].WL?"...":"")}for(var H=0;
H<this.FE.length;H++)if(this.FE[H])this.FE[H].f()};aq.prototype.update=function(L,C){var U=this.aip;
for(var H=0;H<U.length;H++){if(U[H].p){var E=U[H].p(L,C,H);if(E.p!=null)this.VJ[H].setAttribute("class",E.p?"enab":"disab");
if(E.QA!=null)this.Si[H].textContent=E.QA;if(E.v_!=null)this.aas[H].textContent=E.v_?"\u2713":""}}for(var H=0;
H<this.FE.length;H++)if(this.FE[H])this.FE[H].update(L,C)};aq.prototype.bw=function(){return this.rI};
aq.prototype.Zr=function(L){if(L.button!=0)return;var H=this.VJ.indexOf(L.currentTarget);if(this.FE[H]){this.md=H;
this.xa()}else{if(this.acC){var C=this.acC[H],U=new q(C.b,!0);U.m=C.m;U.data=C.H;this.B(U)}this.t8=null;
this.rI=[H];this.B(new q("select",!1));var U=new q(B.E.l,!0);U.data={e:B.U.Hm};this.B(U)}};aq.prototype.$I=function(L){var H=this.VJ.indexOf(L.currentTarget);
if(this.ha){clearTimeout(this.ha);this.ha=null}if(this.FE[H]==null)return;this.md=H;this.ha=setTimeout(this.akk,300)};
aq.prototype.alL=function(L){var H=this.VJ.indexOf(L.currentTarget);if(this.ha){clearTimeout(this.ha);
this.ha=null}};aq.prototype.xa=function(){if(this.ha){clearTimeout(this.ha);this.ha=null}var H=this.md;
if(this.t8)this.t8.uK();this.t8=this.FE[H];var L=this.VJ[H].getBoundingClientRect(),C=new q(B.E.l,!0);
C.data={e:B.U.Ww,f0:this.FE[H],x:L.left+L.width+2,y:L.top};this.B(C)};aq.prototype.uK=function(){for(var H=0;
H<this.FE.length;H++)if(this.FE[H])this.FE[H].uK();var L=new q(B.E.l,!0);L.data={e:B.U.Tq,f0:this};this.B(L)};
aq.prototype.ae3=function(L){var H=this.FE.indexOf(L.target);this.rI=[H].concat(L.target.bw());this.B(new q("select",!1))};
function hm(L,C,U,E,Y,z,r,p,T){gG.call(this);this.j=B.w("span","fitem");var k=B.E3();this.N8=L;this.$b=p;
this.anr=T;this.du=C;this.E6=U;this.gO=null;if(E instanceof Array){this.gO=E;E=E[0]}this.$W=E;this.de=Y;
this.acm=z;this.L8=r;this.vk=0;this.I6=B.w("label","flabel");this.I6.innerHTML=L;this.I6.setAttribute("style","cursor:col-resize;");
this.$0=B.w("input","");this.$0.setAttribute("type","range");if(r){this.$0.min=0;this.$0.max=400}else{this.$0.min=C;
this.$0.max=U;if(Y!=0)this.$0.step=(U-C)/200}this.aE=B.w("input","");this.aE.setAttribute("type","text");
this.aE.setAttribute("id",k);this.Ev=B.w("span","");this.Ev.innerHTML=E;this.aE.addEventListener("change",this.We.bind(this),!1);
this.aE.addEventListener("keydown",this.uq.bind(this),!1);this.aE.addEventListener("wheel",this.da.bind(this),!1);
this.$0.addEventListener("input",this.We.bind(this),!1);if(T)this.$0.addEventListener("change",this.We.bind(this),!1);
this.$0.addEventListener("click",this.am5.bind(this),!1);this.abQ=this.a7m.bind(this);this.a5E=this.aey.bind(this);
this.ahj=this.adR.bind(this);this.QQ=0;this.pe=0;this.Jb=!1;B.Vv(this.I6,this.abQ);this.I6.addEventListener("dragstart",B.ZS,!1)}hm.prototype=new gG;
hm.prototype.z$=function(L){this.de=L};hm.prototype.uc=function(L){this.I6.textContent=L};hm.prototype.f=function(){var u=this.N8,L=this.$b;
if(u){if(typeof u=="string"&&u.startsWith("<"))this.I6.innerHTML=u;else this.I6.textContent=gS.get(u)+":"}if(L){L=gS.get(L);
if(u)this.I6.setAttribute("title",L);this.aE.setAttribute("title",L)}};hm.prototype.T=function(L,C){var U=this.du==this.E6;
if(!U&&this.du>=0)L=Math.max(this.du,L);if(this.de==0)L=Math.round(L);var E=this.$W;this.aE.value=(this.de!=0?L.toFixed(this.de):L)+(this.acm&&E?(E.toLowerCase()==E.toUpperCase()?"":" ")+E:"");
var Y=400*Math.pow((L-this.du)/(this.E6-this.du),1/2.7);this.$0.value=this.L8?Y:L;if(C)this.bV()};hm.prototype.u=function(){var L=parseFloat(this.aE.value);
if(isNaN(L))L=0;return L};hm.prototype.X6=function(){return this.$W};hm.prototype.We=function(L){var C=0;
if(L.currentTarget==this.aE){var U=L.target.value,E=0;while(E<U.length&&(U.charAt(E)=="."||48<=U.charCodeAt(E)&&U.charCodeAt(E)<=57))E++;
C=U==""?0:parseFloat(U);if(isNaN(C))C=0;var Y=U.slice(E).trim();if(this.gO&&this.gO.indexOf(Y)!=-1)this.$W=Y}else{if(Date.now()-this.vk<10)return;
C=parseFloat(L.target.value);if(this.L8){C=this.du+Math.pow(C/400,2.7)*(this.E6-this.du);C=this._S(C)}}this.T(C);
if(L.type=="input"&&this.anr)return;this.bV()};hm.prototype.bV=function(){this.B(new q(B.E.L))};hm.prototype._S=function(L){if(this.E6-this.du>50&&L>10)L=Math.round(L);
return L};hm.prototype.uq=function(L){var C=0;if(G.IX(L.code,G.Bz))C=1;if(G.IX(L.code,G.oY))C=-1;if(C!=0)this.jk(C,L.shiftKey)};
hm.prototype.da=function(L){this.jk(L.deltaY>0?-1:1,L.shiftKey)};hm.prototype.jk=function(L,C){var U=this.u(),E=this.de,Y=L*(E==null||E==0||U>5?1:.1);
if(C)Y*=10;var z=U+Y;if(!this.L8&&this.E6!=this.du)z=Math.min(this.E6,z);this.T(z);this.bV()};hm.prototype.am5=function(L){var C=Date.now()-this.vk;
this.vk=Date.now();if(C>300)return;var U=(this.E6+this.du)/2;if(this.du<0&&this.E6>0)U=0;else if(this.du<1&&this.E6>1&&this.E6<10)U=1;
this.T(U);this.bV()};hm.prototype.a7m=function(L){B.z2(document,this.a5E);B.Yp(document,this.ahj);this.QQ=B.K7(L,document.body).x;
this.pe=this.u()};hm.prototype.aey=function(L){B.ZS(L);var C=this.du==this.E6,U=B.K7(L,document.body).x,E=(U-this.QQ)*(C?1:1/120*(this.E6-this.du)),Y=this.pe+E;
if(C)Y=Math.round(Y);if(!C){if(!0){Y=Math.max(this.du,Y);if(Y==this.du){this.QQ=U;this.pe=this.du}}if(!this.L8){Y=Math.min(this.E6,Y);
if(Y==this.E6){this.QQ=U;this.pe=this.E6}}Y=this._S(Y)}this.Jb=!0;this.T(Y);this.bV()};hm.prototype.adR=function(L){if(!this.Jb)this.aE.focus();
this.Jb=!1;B.dZ(document,this.a5E);B.EW(document,this.ahj)};hm.prototype.Su=function(){this.aE.select();
this.aE.focus()};function fN(L,C){gG.call(this);this.g$=[];this.Gi=-1;this.a09=L;this.FO=C;this.fL=0;
this.x3=null;this.pJ=new hZ(0,0);if(C!=null){this.Bp=new aq([{name:[6,37]},{name:[5,4]}]);this.Bp.parent=this;
this.Bp.k("select",this._X,this)}this.j=B.w("div","imageset scrollable");this.j.addEventListener("contextmenu",B.tG,!1)}fN.prototype=new gG;
fN.prototype.f=function(){if(this.Bp)this.Bp.f()};fN.prototype._X=function(L){var H=this.Bp.bw()[0],C=new q(B.E.l,!0),U={e:B.U.MP,wm:this.FO,gn:[this.Gi]};
if(H==0){var E=this.x3[1][this.Gi];U.AW="rnm";C.data={e:B.U.Q1,k5:"namewindow",LE:E,ea:{b:B.E.l,H:U}}}else{C.data=U;
U.AW="del"}this.B(C)};fN.prototype.adl=function(){return this.fL};fN.prototype.sN=function(L){this.fL=L;
if(this.x3)this.L9()};fN.prototype.OF=function(L,C,U,E){this.x3=[L,C,U,E];this.L9()};fN.prototype.L9=function(){var L=this.x3,C=L[0],U=L[1],E=L[2],Y=L[3];
this.g$=[];this.j.innerHTML="";var z=this.T9.bind(this),r=this.fL;if(r==0)B.QS(this.j,"imageset");else B.gy(this.j,"imageset");
for(var H=0;H<C.length;H++){var p=C[H];if(p==null){this.g$.push(null);continue}var T=B.w("img","image");
if(E)B.IO(T,E,Y);if(this.a09)B.QS(T,"gsicon");T.setAttribute("src",p);if(r==0){}else{var k=B.w("div","listitem");
k.appendChild(T);var P=B.w("span");P.textContent=U?U[H]:"Item "+(H+1);P.setAttribute("style","margin-left:4px;");
k.appendChild(P);T=k}if(U)T.setAttribute("title",U[H]);T.addEventListener("mousedown",z,!1);this.g$.push(T);
this.j.appendChild(T)}};fN.prototype.T9=function(L){L.preventDefault();this.Gi=this.g$.indexOf(L.currentTarget);
this.pJ=B.K7(L,L.currentTarget);if(L.button==0)this.B(new q(B.E.L));if(L.button==2&&this.Bp){var C=this.Bp;
C.update(null);var U=B.K7(L,document.body),E=new q(B.E.l,!0);E.data={e:B.U.Ww,f0:C,x:U.x,y:U.y+2};this.B(E)}};
fN.prototype.u=function(){return this.Gi};fN.prototype.T=function(L){this.Gi=L};fN.prototype.ac4=function(){var L=this.pJ;
return new hZ(L.x,L.y)};fN.prototype.VS=function(L){for(var H=0;H<this.g$.length;H++){var C=this.g$[H];
if(C==null)continue;if(H==L)B.QS(C,"active");else B.gy(C,"active")}};function dS(L,C,U,E,Y,z,r){gG.call(this);
this.j=B.w("span","fitem "+U);this.oM=new gG;this.oM.j=B.w("div","floatcont");this.oM.j.setAttribute("style","width: "+(E+1.5)+"em;");
this.oM.parent=this;this.Ot=B.w("div");this.oM.j.appendChild(this.Ot);this.Ck=B.w("div");this.oM.j.appendChild(this.Ck);
if(L){this.N8=L;this.I6=B.w("label","flabel");this.j.appendChild(this.I6)}this.e=B.w("button",r?"nopadding":"");
this.e.setAttribute("style","position:relative;");this.e.addEventListener("click",(C?this.O2:this.AJ).bind(this),!1);
this.j.appendChild(this.e);this.$E=B.w("img",r?"gsicon":"");this.e.appendChild(this.$E);if(C){var p=B.w("button");
p.textContent="\u25BC";p.addEventListener("click",this.AJ.bind(this),!1);this.j.appendChild(p)}else{var T=B.w("span");
T.textContent="\u25BC";T.setAttribute("style","position:absolute;  bottom:2px;  right:4px;");this.e.appendChild(T)}var k=B.w("span");
this.Ck.appendChild(k);k.setAttribute("style","display:inline-block;  vertical-align:top; width:"+E+"em;");
this.lU=new fN(r,z);k.appendChild(this.lU.j);this.lU.parent=this.oM;this.lU.k(B.E.L,this.a79,this);this.lU.j.style.height=Y+"em";
this.$h=B.w("button");this.$h.textContent="\u25BC";this.$h.setAttribute("style","padding:3px");this.$h.addEventListener("click",this.adM.bind(this),!1);
this.Ck.appendChild(this.$h);var P=this.ke(),b=z!=c_.S5&&z!=c_.lz?z:null,Q=z==null?"":c_.d$[z][0].toUpperCase(),K=b?[{name:[12,87]}]:[];
K=K.concat([{name:["VAR0 / VAR1",[25,3,0],[25,3,1]]},{name:[[23,6],"."+(Q=="ICC"?"icc .cube .look .3dl":Q)]},{name:["VAR0 ."+Q,[1,8]],rY:P.length!=0}]);
for(var H=0;H<P.length;H++)K.push({name:P[H].split("/").pop()});this.Bp=new aq(K);this.Bp.parent=this.oM;
this.Bp.k("select",this._X,this);this.FO=z;this.ao3=b;this.eO=null;this.ma=!0;this.TG=null}dS.prototype=new gG;
dS.prototype.ke=function(){return[]};dS.prototype.a79=function(L){this.ag(L);this.lU.VS(this.lU.u())};
dS.prototype.O2=function(){};dS.prototype.f=function(){this.Bp.f();this.lU.f();var L=this.N8;if(L)this.I6.textContent=gS.get(L)+":"};
dS.prototype.uc=function(L){this.I6.textContent=L};dS.prototype.LP=function(L){var C=this.FO,U=0;if(C==c_.Fc){U=this.eO?this.eO.length:0;
L=L.slice(0)}this.eO=L;this.ma=!0;if(B.DW(this.lU.j)||C==c_.ab)this.Vd();if(C==c_.Fc&&L.length-U==1&&B.DW(this.j)){this.T(L[U]);
this.ma=!0;this.Vd();this.lU.VS(U);this.B(new q(B.E.L))}};dS.prototype._X=function(L){var C=L.target.bw()[0];
if(this.ao3==null)C++;var U=new q(B.E.l,!0);if(C==0){var E=this.sD();if(this.FO==c_.Fc&&E[0].profile==null)return;
U.data={e:B.U.MP,AW:"add",wm:this.ao3,mv:E}}else if(C==1)this.lU.sN(1-this.lU.adl());else if(C==2)U.data={e:B.U.KJ};
else if(C==3)U.data={e:B.U.PY,a2L:this.FO};else{var Y=this.ke();U.data={e:B.U.sh,wm:{url:"rsrc/"+Y[C-4]}}}if(U.data)this.B(U)};
dS.prototype.sD=function(){return[this.u()]};dS.prototype.adM=function(L){var C=this.Bp;C.f();C.update(null);
var U=L.currentTarget.getBoundingClientRect(),E=new q(B.E.l,!0);E.data={e:B.U.Ww,f0:C,x:U.left,y:U.top+U.height};
this.B(E)};dS.prototype.AJ=function(L){this.Vd();var C=this.e.getBoundingClientRect(),U=new q(B.E.l,!0);
U.data={e:B.U.Ww,f0:this.oM,x:C.left,y:C.top+C.height,ur:!0};this.B(U)};function b4(){gG.call(this);
this.j=B.w("div");this.q$=!1;this.qT=[new bS([12,19,1],[[13,1,7]].concat(eh.Ol)),new dP([17,1]),new dP([12,46])];
for(var H=0;H<3;H++){var L=this.qT[H];this.j.appendChild(L.j);L.k(B.E.L,this.vb,this)}this.f()}b4.prototype=new gG;
b4.prototype.f=function(){for(var H=0;H<3;H++)this.qT[H].f()};b4.prototype.u=function(){return this.q$.slice(0)};
b4.prototype.T=function(L){this.q$=L.slice(0);var C=this.qT,U=C[0].u();C[1].T(L.slice(U*8,U*8+4),U);
C[2].T(L.slice(U*8+4,U*8+8),U)};b4.prototype.vb=function(L){var C=this.qT,U=C.indexOf(L.currentTarget);
if(U==0)this.T(this.q$);else{var E=C[0].u()*8+(U==1?0:4),Y=C[U].u();for(var H=0;H<4;H++)this.q$[E+H]=Y[H];
this.B(new q(B.E.L,!1))}};function dP(L){gG.call(this);this.j=B.w("div");this.UF=B.w("canvas");this.a32=L;
this.q$=[0,20,200,255];this.ZV=0;this.aaw=-1;this.a8D=!1;this.a7X=[];for(var H=0;H<5;H++){var C=B.w("span");
C.setAttribute("style","display:inline-block;width:"+(H==0?8:H==2?7:2)+"em");this.a7X.push(C);this.j.appendChild(C)}this.jV=this.g3.bind(this);
this.y3=this.Rl.bind(this);this.Cj=this.Zr.bind(this);B.Vv(this.UF,this.jV);this.j.appendChild(this.UF);
this.L9()}dP.prototype=new gG;dP.prototype.f=function(){this.L9()};dP.prototype.T=function(L,C){this.q$=L;
this.ZV=C;this.L9()};dP.prototype.u=function(){return this.q$.slice(0)};dP.prototype.g3=function(L){var C=this.q$,U=B.K7(L,this.UF),E=U.x-8,Y=-1,z=1e9;
for(var H=0;H<4;H++){var r=E-C[H],p=Math.abs(r);if(p<8&&p<z&&((H&1)==0&&r<0||(H&1)==1&&r>0)){z=r;Y=H}}if(Y==-1)return;
this.aaw=Y;this.q_=L.altKey||C[(Y>>>1)*2]!=C[(Y>>>1)*2+1];B.z2(window,this.y3);B.Yp(window,this.Cj)};
dP.prototype.Rl=function(L){var C=this.q$,U=this.aaw,E=(U>>>1)*2,Y=E+1,z=B.K7(L,this.UF),r=Math.round(Math.max(0,Math.min(255,z.x-8)));
C[U]=r;if(this.q_&&C[E]>=C[Y])this.q_=!1;if(!this.q_)C[E]=C[Y]=r;this.L9();this.B(new q(B.E.L,!1))};
dP.prototype.Zr=function(L){B.dZ(window,this.y3);B.EW(window,this.Cj)};dP.prototype.L9=function(){var L=this.UF;
B.wS(L,255+16,16);var C=L.getContext("2d"),U=L.width,E=L.height,Y=Math.round(255*B.M()),z=Math.round(8*B.M());
C.translate(z,0);var r=C.createLinearGradient(0,0,Y,0);r.addColorStop(0,"black");r.addColorStop(1,"#"+["ffffff","ff0000","00ff00","0000ff"][this.ZV]);
C.fillStyle=r;C.fillRect(0,0,Y,z);var p=this.a7X,T=gS.get(this.a32)+":";p[0].textContent=T;for(var H=0;
H<4;H++){var k=this.q$[H];p[1+H].textContent=k;var P=Math.round(k*B.M());C.beginPath();C.moveTo(P,z);
C.lineTo(P,z+z);C.lineTo(P+((H&1)==0?-1:1)*z,z+z);C.closePath();C.fillStyle="#cccccc";C.fill();C.strokeStyle="black";
C.stroke()}};function em(L){gG.call(this);this.f2=0;this.alt=0;var C="ai"+B.E3();this.j=B.w("span","fitem angleinput");
if(L){this.I6=B.w("label","flabel");this.N8=L;this.j.appendChild(this.I6);this.I6.setAttribute("for",C)}this.OQ=20;
this.k2=B.w("canvas","gsicon");this.zS=this.k2.getContext("2d");B.wS(this.k2,this.OQ*2+1,this.OQ*2+1,this.zS);
this.j.appendChild(this.k2);B.Vv(this.k2,this.Ko.bind(this));this.yc=this.cz.bind(this);this.xf=this.KR.bind(this);
this.aE=B.w("input","");this.aE.setAttribute("type","text");this.j.appendChild(this.aE);this.aE.setAttribute("id",C);
this.aE.addEventListener("change",this.We.bind(this),!1);this.Ev=B.w("span","");this.Ev.innerHTML="\xB0";
this.j.appendChild(this.Ev);this.T(this.f2,this.alt)}em.prototype=new gG;em.prototype.f=function(){this.I6.textContent=gS.get(this.N8)+":"};
em.prototype.uc=function(L){this.I6.textContent=L};em.prototype.u=function(){return{f2:this.f2,alt:this.alt}};
em.prototype.T=function(L,C,U){if(L!=null)this.f2=L;if(C!=null)this.alt=C;this.aE.value=this.f2;L=Math.PI*this.f2/180;
C=.9*this.OQ*(90-this.alt)/90;var E=this.OQ+.5,Y=this.zS;Y.clearRect(0,0,100,100);Y.strokeStyle="#000000";
Y.beginPath();Y.arc(E,E,.9*this.OQ,0,2*Math.PI);Y.moveTo(E,E);Y.lineTo(E+Math.cos(L)*this.OQ*.9,E-Math.sin(L)*this.OQ*.9);
Y.stroke();Y.strokeStyle="#ff0000";Y.beginPath();Y.moveTo(E+Math.cos(L)*C-3,E-Math.sin(L)*C);Y.lineTo(E+Math.cos(L)*C+3,E-Math.sin(L)*C);
Y.moveTo(E+Math.cos(L)*C,E-Math.sin(L)*C-3);Y.lineTo(E+Math.cos(L)*C,E-Math.sin(L)*C+3);Y.stroke();if(U)this.We()};
em.prototype.We=function(L){var C=parseInt(this.aE.value);C=C%360;this.T(C);this.B(new q(B.E.L,!1))};
em.prototype.Ko=function(L){B.z2(window,this.yc);B.Yp(window,this.xf);this.cz(L)};em.prototype.cz=function(L){var C=B.K7(L,this.k2),U=C.x-this.OQ,E=C.y-this.OQ,Y=180*Math.atan2(-E,U)/Math.PI,z=90-90*Math.min(1,Math.sqrt(U*U+E*E)/(.9*this.OQ));
this.T(Math.round(Y),Math.round(z));this.B(new q(B.E.L,!1))};em.prototype.KR=function(L){this.B(new q(B.E.L,!1));
B.dZ(window,this.yc);B.EW(window,this.xf)};function cP(L,C){gG.call(this);this.q$=0;this.y7=C;this.j=B.w("span","fitem angleinput");
if(L){this.I6=B.w("label","flabel");this.N8=L;this.j.appendChild(this.I6)}this.k2=B.w("canvas","gsicon");
this.zS=this.k2.getContext("2d");B.wS(this.k2,C,C);this.j.appendChild(this.k2);B.Vv(this.k2,this.Ko.bind(this));
this.yc=this.cz.bind(this);this.xf=this.KR.bind(this);this.T(0)}cP.prototype=new gG;cP.prototype.f=function(){if(this.N8)this.I6.textContent=gS.get(this.N8)+":"};
cP.prototype.uc=function(L){this.I6.textContent=L};cP.prototype.u=function(){return this.q$};cP.prototype.T=function(L){this.q$=L;
var C=this.k2.width,U=Math.floor(L/3),E=L-3*U,Y=(E+.5)*C/3,z=(U+.5)*C/3,r=this.zS,p=[.5,Math.round(C/3)+.5,Math.round(2*C/3)+.5,C-.5];
r.clearRect(0,0,C,C);var T=this.y7<30;r.setLineDash([]);r.strokeStyle=T?"rgba(0,0,0,0.5)":"#000000";
r.beginPath();for(var H=0;H<4;H++){var k=p[H];r.moveTo(k,0);r.lineTo(k,C);r.moveTo(0,k);r.lineTo(C,k)}r.stroke();
if(L==9)return;if(!T){r.setLineDash([1,2]);var P=C*.53,b=Math.max(0,Math.min(C-P,Y-P/2)),Q=Math.max(0,Math.min(C-P,z-P/2));
r.strokeRect(Math.round(b)+.5,Math.round(Q)+.5,Math.round(P),Math.round(P))}r.fillStyle="#000000";r.beginPath();
r.arc(Y,z,C/8,0,Math.PI*2);r.fill()};cP.prototype.Ko=function(L){B.z2(window,this.yc);B.Yp(window,this.xf);
this.cz(L)};cP.prototype.cz=function(L){var C=B.K7(L,this.k2),U=Math.max(0,Math.min(2,Math.floor(C.x/(this.y7/3)))),E=Math.max(0,Math.min(2,Math.floor(C.y/(this.y7/3))));
this.T(E*3+U)};cP.prototype.KR=function(L){this.B(new q(B.E.L,!1));B.dZ(window,this.yc);B.EW(window,this.xf)};
function br(L,C,U,E){gG.call(this);this.j=B.w("button","fitem"+(C?" spread":"")+(E?" bbtn":""));this.N8=L;
this.$b=U;this.f();this.j.addEventListener("click",this.T9.bind(this),!1)}br.prototype=new gG;br.prototype.f=function(){var L=this.j,C=this.N8,U=this.$b,E=gS.get(C);
if(E.startsWith("<img")||E.startsWith("<svg"))L.innerHTML=E;else L.textContent=E;if(E.startsWith("<img")||E.startsWith("<svg"))L.setAttribute("style","padding:2px");
if(U){L.setAttribute("title",gS.get(U))}};br.prototype.aca=function(L){this.j.setAttribute("title",L)};
br.prototype.T9=function(L){this.B(new q("click",!1))};br.prototype.m0=function(){B.QS(this.j,"bactive")};
br.prototype.q7=function(){B.gy(this.j,"bactive")};br.prototype.uc=function(L,C){if(L)this.N8=L;if(C)this.$b=C;
this.f()};br.prototype.T=function(L){if(L)this.m0();else this.q7()};br.prototype.gF=function(){return this.j.getAttribute("class").indexOf("bactive")!=-1};
br.prototype.u=function(){return this.gF()};function hc(u){gG.call(this);this.j=B.w("span","fitem cswatch");
this.a7Z=0;this.iE=[];this.sJ=[];var L=this.ab9.bind(this);for(var H=0;H<u;H++){this.iE.push(0);var C=B.w("span","colorsample");
C.addEventListener("click",L,!1);this.sJ.push(C);this.j.appendChild(C)}var U=[16711680,65280,255,65535,16711935,16776960,0,8421504,16777215],E=Math.min(u,U.length);
for(var H=0;H<E;H++)this.iE[H]=U[H];this.Tj()}hc.prototype=new gG;hc.prototype.ab9=function(L){this.a7Z=this.sJ.indexOf(L.currentTarget);
this.B(new q(B.E.L))};hc.prototype.u=function(){return this.iE[this.a7Z]};hc.prototype.T=function(L){var C=this.iE,U=C.indexOf(L);
if(U!=-1)C.splice(U,1);else C.pop();C.unshift(L);this.Tj()};hc.prototype.Tj=function(){for(var H=0;H<this.iE.length;
H++){this.sJ[H].setAttribute("style","background-color:#"+c.Xo(this.iE[H]))}};function di(L){gG.call(this);
this.Xx=!1;this.cC={h:0,P:0,O:0};this.Da=L;this.j=B.w("span","fitem colorsample");this.j.addEventListener("click",this.T9.bind(this),!1)}di.prototype=new gG;
di.prototype.f=function(){};di.prototype.u$=function(L){if(this.Xx==L)return;this.Xx=L;this.z4()};di.prototype.T9=function(L){var C=this.cC;
this.B(new q("click"));var U=new q(B.E.l,!0);U.data={e:B.U.Q1,k5:"colorpicker",Cc:C.h<<16|C.P<<8|C.O,SL:this.BD.bind(this),U2:this.Da};
this.B(U)};di.prototype.BD=function(L){this.Gm(L);this.B(new q(B.E.L))};di.prototype.a2X=function(){this.T9(null)};
di.prototype.A2=function(){var L=this.cC;return L.h<<16|L.P<<8|L.O};di.prototype.u=function(){return c.W._b(this.cC)};
di.prototype.Gm=function(L){this.cC={h:L>>16&255,P:L>>8&255,O:L&255};this.z4()};di.prototype.T=function(L){this.cC=c.W.Lt(L);
this.z4()};di.prototype.z4=function(){var L=this.cC,C=L.h,U=L.P,E=L.O;if(this.Xx)C=U=E=Math.round(c.GZ(C,U,E));
var Y=C<<16|U<<8|E;this.j.setAttribute("style","background-color:#"+c.Xo(Y))};function gx(L){dS.call(this,L,!1,"brushbutton nopadding",16.6,10,c_.Sw,!0);
this.vg=new cG([12,14,0],1,1e3," px",0,!0);this.vg.k(B.E.L,this.LW,this);this.Ot.appendChild(this.vg.j);
this.Z4=new cG([12,17],0,100,"%");this.Z4.k(B.E.L,this.LW,this);this.Ot.appendChild(this.Z4.j)}gx.prototype=new dS;
gx.prototype.ke=function(){var L=["pencil","trees"];for(var H=0;H<L.length;H++)L[H]="brushes/"+L[H]+".abr";
return L};gx.prototype.AJ=function(L){var C=this.j.getBoundingClientRect();this.wb(C.left,C.top+C.height)};
gx.prototype.wb=function(L,C){this.Vd();var U=new q(B.E.l,!0);U.data={e:B.U.Ww,f0:this.oM,x:L,y:C};this.B(U)};
gx.prototype.T=function(L,C,U){this.TG=JSON.parse(JSON.stringify(L));var E=Math.floor(20*B.M()),Y=Math.floor(36*B.M()),z=Math.floor(24*B.M()),r=iR.BU(L,C,U,E,z,Y);
this.$E.setAttribute("src",r);B.IO(this.$E,Y,z);var p=L.Brsh.v;this.vg.T(p.Dmtr.v.val);if(p.Hrdn!=null){this.Z4.rX();
this.Z4.T(p.Hrdn.v.val)}else this.Z4.aA();this.lU.VS(-1)};gx.prototype.sD=function(){return{list:[{t:"Objc",v:this.u()}],sd:[],wY:[]}};
gx.prototype.u=function(){return this.TG};gx.prototype.Vd=function(){if(!this.ma)return;var L=[],C=[],U=this.eO,E=Math.floor(33*B.M()),Y=Math.floor(40*B.M());
for(var H=0;H<U.list.length;H++){var z=U.list[H].v,r=iR.BU(z,U.sd,U.wY,E,Y);L.push(r);C.push(z.Nm.v.split("=").pop())}this.lU.OF(L,C,E,Y);
this.ma=!1};gx.prototype.ag=function(L){var C=this.eO;this.T(C.list[this.lU.u()].v,C.sd,C.wY);this.B(new q(B.E.L))};
gx.prototype.f=function(){dS.prototype.f.call(this);this.vg.f();this.Z4.f()};gx.prototype.LW=function(L){var C=this.eO,U=this.TG;
U.Brsh.v.Dmtr.v.val=this.vg.u();if(U.Brsh.v.Hrdn!=null)U.Brsh.v.Hrdn.v.val=this.Z4.u();this.T(U,C.sd,C.wY);
this.B(new q(B.E.L))};function c8(L){dS.call(this,L,!0,"contourbutton",17,10.5,c_.t6)}c8.prototype=new dS;
c8.prototype.ag=function(L){this.T(this.eO[L.target.u()]);this.B(new q(B.E.L))};c8.prototype.O2=function(L){var C=new q(B.E.l,!0);
C.data={e:B.U.Q1,k5:"contoureditor",e4:this.TG,response:this.a0o.bind(this)};this.B(C)};c8.prototype.a0o=function(L){this.T(L);
this.B(new q(B.E.L))};c8.prototype.Vd=function(){if(!this.ma)return;var L=Math.floor(38*B.M()),C=Math.floor(38*B.M()),U=[],E=[],Y=this.eO;
for(var H=0;H<Y.length;H++){E.push(Y[H].Nm?Y[H].Nm.v:"");U.push(c.Nn.BU(Y[H].Crv.v,L,C))}this.lU.OF(U,E,L,C);
this.ma=!1};c8.prototype.T=function(L){this.TG=JSON.parse(JSON.stringify(L));var C=this.TG.Crv.v;for(var H=0;
H<C.length;H++)if(C[H].v.Cnty==null)C[H].v.Cnty={t:"bool",v:!0};this.kU()};c8.prototype.kU=function(){var L=Math.floor(30*B.M()),C=Math.floor(30*B.M()),U=c.Nn.BU(this.TG.Crv.v,L,C);
this.$E.setAttribute("src",U);B.IO(this.$E,L,C)};c8.prototype.u=function(){return JSON.parse(JSON.stringify(this.TG))};
function gl(L){gG.call(this);this.Y$=null;this.OY=null;this.Lf=null;this.Iq=null;this.ajH=[];this.a8d=[];
this.j=B.w("span","fitem fillbutton");this.oM=new gG;this.oM.j=B.w("div","floatcont form");this.oM.j.setAttribute("style","width: 21em;");
this.oM.parent=this;this.Qe=L;this.I6=this.I6=B.w("label","flabel");this.j.appendChild(this.I6);this.k2=B.w("canvas");
this.zS=this.k2.getContext("2d");this.a1S=null;this.j.appendChild(this.k2);this.k2.addEventListener("click",this.AJ.bind(this),!1);
this.QG=new dr([12,66],["","Color","Grad","Patt"]);this.oM.j.appendChild(this.QG.j);this.QG.k(B.E.L,this.vb,this);
this.oM.j.appendChild(B.w("hr"));this.adr=B.w("span");this.DI=new di(!0);this.DI.parent=this.oM;this.DI.k(B.E.L,this.vb,this);
this.gm=new hc(10);this.gm.k(B.E.L,this.vb,this);this.R1=B.w("div","marged hiline");this.R1.appendChild(this.DI.j);
B.E4(this.R1);this.R1.appendChild(this.gm.j);this.UX=new ik("GrFl",!0);this.UX.parent=this.oM;this.UX.k(B.E.L,this.vb,this);
this.HT=B.w("div","marged hiline");var C="Grad Type Algn Angl Rvrs Scl Ofst".split(" ");for(var H=0;
H<C.length;H++){var U=this.UX.vq[C[H]].j;this.HT.appendChild(U)}this.wM=new ik("patternFill",!0);this.wM.parent=this.oM;
this.wM.k(B.E.L,this.vb,this);this.NO=B.w("div","marged hiline");var C=["Ptrn","Scl","Algn","phase"];
for(var H=0;H<C.length;H++){var U=this.wM.vq[C[H]].j;this.NO.appendChild(U)}}gl.prototype=new gG;gl.prototype.hU=function(L,C){if(C==c_.GA){this.ajH=[];
this.a8d=[];if(this.Y$)this.T(this.Lf,this.u(),this.Y$)}this.OY=L;this.UX.hU(L,C);this.wM.hU(L,C)};gl.prototype.f=function(){this.I6.textContent=gS.get(this.Qe)+": ";
this.QG.f();this.DI.f();this.UX.f();this.wM.f()};gl.prototype.vb=function(L){var C=L.currentTarget;if(C==this.QG){var U=this.QG.u(),E={L$:U,o$:this.Y$[U]};
if(U>0&&E.o$==null)E.o$=JSON.parse(JSON.stringify(gM.bK[U-1]));if(this.Y$)this.T(this.Lf,E,this.Y$)}if(C==this.gm)this.DI.Gm(C.u());
this.B(new q(B.E.L,!1))};gl.prototype.AJ=function(L){var C=this.k2.getBoundingClientRect(),U=new q(B.E.l,!0);
U.data={e:B.U.Ww,f0:this.oM,x:C.left,y:C.top+C.height+4};this.B(U);this.gm.T(this.DI.A2())};gl.prototype.T=function(L,C,U){this.Y$=U;
this.Lf=L;var E=[[13,1,0],[13,0],[12,37],[12,62]],Y=this.ajH,z=this.a8d,r=!1,P;for(var H=0;H<4;H++){var p={L$:H,o$:U[H]},T=gl.Ig(p);
if(z[H]==T)continue;r=!0;var k=gl.k1(null,p,this.OY,this.Lf,22,22,!1);Y[H]="<img width=\"22\" height=\"22\" src=\""+k+"\" />";
z[H]=T}if(r)this.QG.SU(Y,E);this.QG.T(C.L$);var T=gl.Ig(C);if(T!=this.a1S)gl.k1(this.zS,C,this.OY,this.Lf,30,23,!0);
this.a1S=T;var b=C.L$;if(b==0){P=this.adr}if(b==1){this.DI.T(C.o$.Clr.v);P=this.R1}if(b==2){this.UX.update(L,C.o$);
P=this.HT}if(b==3){this.wM.update(L,C.o$);P=this.NO}if(P!=this.Iq){if(this.Iq!=null){this.oM.j.removeChild(this.Iq)}this.oM.j.appendChild(P);
this.Iq=P}};gl.prototype.u=function(){var L={L$:this.QG.u()};if(L.L$==1){L.o$=JSON.parse(JSON.stringify(gM.bK[0]));
L.o$.Clr.v=this.DI.u()}if(L.L$==2){L.o$=this.UX.u()}if(L.L$==3){L.o$=this.wM.u()}return L};gl.Ig=function(L){var C=L.L$,U=L.o$,E="empty";
if(C==1){E=c.W.Lt(U.Clr.v);E=E.h+","+E.P+","+E.O}if(C==2)E=JSON.stringify(U.Grad.v);if(C==3)E=U.Ptrn.v.Idnt.v;
return E};gl.k1=function(L,C,U,E,Y,z,r){if(L==null)L=gl.zS;var p=Math.floor(Y*B.M()),T=Math.floor(z*B.M()),k=L.canvas,P;
k.width=p;k.height=T;B.IO(k,p,T);var b=C.L$;if(b==0){L.fillStyle="#ffffff";L.fillRect(0,0,p,T);L.strokeStyle="#ff0000";
L.lineWidth=2;L.moveTo(0,0);L.lineTo(p,T);L.moveTo(0,T);L.lineTo(p,0);L.stroke()}if(b==1){var Q=C.o$.Clr.v;
Q=c.W.Lt(Q);L.fillStyle="#"+c.Xo(Q.h<<16|Q.P<<8|Q.O);L.fillRect(0,0,p,T)}if(b==2){W.Fe.BU(C.o$.Grad.v,p,T,0,U.yx,U.ho,k)}if(b==3){var K=C.o$.Ptrn.v,h;
if(E!=null)h=ca.fi(K,E.add.Patt);if(h==null)h=ca.fi(K,U.mt);bH.BU(h,p,T,k)}if(r){L.beginPath();L.strokeStyle="#000000";
L.fillStyle="#ffffff";L.lineWidth=2;var x=p*.7,O=Math.floor(T*.7),y=7*B.M();L.moveTo(x,O);L.lineTo(x+y,O);
L.lineTo(x+y/2,O+y/2);L.closePath();L.stroke();L.fill()}if(L==gl.zS)return k.toDataURL()};gl.zS=B.w("canvas").getContext("2d");
function bH(L){dS.call(this,L,!1,"patternbutton",18,10,c_.GA);this.Vf=null}bH.prototype=new dS;bH.prototype.ag=function(L){var C=this.eO[this.lU.u()];
this.TG={classID:"Ptrn",Nm:{t:"TEXT",v:C.name},Idnt:{t:"TEXT",v:C.id}};this.B(new q(B.E.L));this.kU()};
bH.qW=!1;bH.prototype.Vd=function(){if(!this.ma)return;var L=this.eO;if(L==null||!bH.qW){var C=new q(B.E.l,!0);
C.data={e:B.U.sh,wm:{url:"rsrc/basic/basic.pat"}};this.B(C);bH.qW=!0;return}var U=Math.floor(34*B.M()),E=Math.floor(34*B.M()),Y=[],z=[];
for(var H=0;H<L.length;H++){Y.push(bH.BU(L[H],U,E));z.push(L[H].name)}this.lU.OF(Y,z,U,E);this.ma=!1};
bH.prototype.T=function(L,C){if(this.TG&&L.Idnt.v==this.TG.Idnt.v)return;this.TG=JSON.parse(JSON.stringify(L));
this.kU(C)};bH.prototype.u=function(){return JSON.parse(JSON.stringify(this.TG))};bH.prototype.sD=function(){return this.Vf?[this.Vf]:[]};
bH.prototype.kU=function(L){var C=Math.floor(50*B.M()),U=Math.floor(50*B.M()),E;if(L!=null)E=ca.fi(this.TG,L.add.Patt);
if(E==null)E=ca.fi(this.TG,this.eO);this.Vf=E;var Y=bH.BU(E,C,U);this.$E.setAttribute("src",Y);B.IO(this.$E,C,U)};
bH.UF=B.w("canvas","");bH.BU=function(L,C,U,E){if(E==null)E=bH.UF;var Y=E.getContext("2d");E.width=C;
E.height=U;if(L){var z=L.Zq[1],r=z.d,p=z.v,T=L.Zq[0],k=Math.min(C/r,U/p),P=k;if(P*r<2)P=2/r;var b=k;
if(b*p<2)b=2/p;var Q=W.o.dy([T,z],new c0(P,0,0,b,0,0),!1),K=Q.rect.d,h=Q.rect.v,x=Y.createImageData(K,h);
c.hL(Q.buffer,x.data);Y.putImageData(x,Math.floor((C-K)/2),Math.floor((U-h)/2))}return E.toDataURL()};
function eW(L){dS.call(this,L,!1,"patternbutton",24.2,17,c_.S5);this.zh=""}eW.prototype=new dS;eW.prototype.ag=function(L){this.TG=JSON.parse(JSON.stringify(this.eO[0][this.lU.u()]));
this.B(new q(B.E.L))};eW.prototype.Vd=function(){var L=this.eO;if(L==null||!this.ma)return;var C=Math.floor(50*B.M()),U=Math.floor(50*B.M()),E=[],Y=[];
for(var H=0;H<L[0].length;H++){E.push(eW.BU(this.eO[0][H].mV,C,U,this.eO[1]));Y.push(L[0][H].hB.Nm.v.split("=").pop())}this.lU.OF(E,Y,C,U);
this.ma=!1};eW.prototype.T=function(L,C,U,E){var Y=JSON.stringify(L.mV)+","+U+","+E;if(this.zh!=Y){this.zh=Y;
this.TG=JSON.parse(JSON.stringify(L));this.kU(C,U,E)}this.lU.VS(-1)};eW.prototype.u=function(){return JSON.parse(JSON.stringify(this.TG))};
eW.prototype.kU=function(L,C,U){var E=Math.floor(68*B.M()),Y=Math.floor(68*B.M()),z=eW.BU(this.TG.mV,E,Y,L?L:this.eO[1],C,U);
this.$E.setAttribute("src",z);B.IO(this.$E,E,Y)};eW.BU=function(L,C,U,E,Y,z){var r=new b7;r.d=C;r.v=U;
r.buffer=c.F(C*U*4);r.add.Patt=E;r.HJ(Y==null?90:Y);r.Hq(z==null?30:z);var p=new _(0,0,Math.round(C*.5),Math.round(U*.5));
p.x=Math.round((C-p.d)/2);p.y=Math.round((U-p.v)/2);var T=r.wP();T.rect=p;T.buffer=c.F(p.X()*4);c.n0(T.buffer,4284045657);
ca.wE(L,T,.5*100);r.N.push(T);r.oQ();r.s();var k=t.i8;t.i8=!1;r.nU();var P=r.E0();t.i8=k;var b=iL.CG(P.buffer,r.d,r.v);
return b};function cd(L){dS.call(this,null,!1,"tpresetbutton",18,24,c_.No,!0);B.gy(this.j,"fitem");this.lU.sN(1);
this.id=L;this.kU();this.P2=new dh([15,7,9]);this.P2.T(!0);this.P2.k(B.E.L,this.a2_,this);this.Ck.appendChild(this.P2.j)}cd.prototype=new dS;
cd.prototype.a5C=function(L){if(this.id==L)return;this.id=L;this.LP(this.eO)};cd.prototype.ag=function(L){var C=this.eO[this.lU.u()],U=new q(B.E.l,!0);
U.data={e:B.U.MP,AW:"set",wm:c_.No,mv:C};this.B(U)};cd.prototype.f=function(){dS.prototype.f.call(this);
this.P2.f()};cd.prototype.a2_=function(){this.ma=!0;this.Vd()};cd.prototype.Vd=function(){if(!this.ma)return;
var L=Math.floor(16*B.M()),C=Math.floor(16*B.M()),U=[],E=[],Y=this.eO,z=this.P2.u();for(var H=0;H<Y.length;
H++){var r=W.EJ(Y[H]);if(!z||r==this.id){E.push(Y[H][0]?Y[H][0].split("=").pop():"");U.push(r==-1?"":PIMG[W.zb[r][0]])}else{U.push(null);
E.push(null)}}this.lU.OF(U,E,L,C);this.ma=!1};cd.prototype.kU=function(){var L=this.$E;L.setAttribute("src",PIMG[W.zb[this.id][0]]);
B.QS(L,"toolicon")};cd.prototype.sD=function(){return null};cd.kP={};cd.BU=function(L,C,U){var E=cd.vU,Y=cd.kP,z=c.Xo(L.h<<16|L.P<<8|L.O);
if(Y[z])return Y[z];if(E==null){var r=B.w("canvas");E=cd.vU=r.getContext("2d")}var r=E.canvas;r.width=C;
r.height=U;E.fillStyle="#"+z;E.fillRect(0,0,C,U);var p=Y[z]=r.toDataURL();return p};function ig(L,C){gG.call(this);
this.j=B.w("span","fitem curveeditor");this.gR=null;this.a65=0;this.ZV="";this.mode=0;this.L6=L;this.anY=C;
this.IR=null;this.RW=null;this.a2=new hZ;this.kf=this.cz.bind(this);this.T6=this.KR.bind(this);this.k2=B.w("canvas","");
this.zS=this.k2.getContext("2d");B.zC(this.k2);B.wS(this.k2,256,256,this.zS);this.j.appendChild(this.k2);
B.Vv(this.k2,this.Ko.bind(this))}ig.prototype=new gG;ig.prototype.T=function(L,H){var C=JSON.stringify(L);
if(C==JSON.stringify(this.IR))return;this.mode=L.length==256?1:0;this.IR=JSON.parse(C);if(H!=null)this.RW=this.IR[H];
this.P_()};ig.prototype.Uz=function(L,C,U){this.gR=L;this.a65=C;this.ZV=U;this.P_()};ig.prototype.u=function(){return JSON.parse(JSON.stringify(this.IR))};
ig.prototype.jQ=function(){return this.IR.indexOf(this.RW)};ig.prototype.Ko=function(L){var C=B.K7(L,this.k2),U=C.x,E=256-C.y;
if(this.L6){var Y=U;U=256-E;E=Y}this.a2.U6(U,E);if(this.mode==0){var z=null;for(var H=0;H<this.IR.length;
H++){var r=this.IR[H].v,p=r.Hrzn.v-U,T=r.Vrtc.v-E,k=Math.sqrt(p*p+T*T);if(k<5)z=this.IR[H]}if(z==null){z=c.Nn.kH(U,E,!0);
this.IR.push(z)}this.RW=z}B.z2(document.body,this.kf);B.Yp(document.body,this.T6);this.cz(L)};ig.prototype.cz=function(L){var C=B.K7(L,this.k2),U=C.x,E=256-C.y;
if(this.L6){var Y=U;U=256-E;E=Y}if(this.mode==0){var z=this.IR,r=this.anY,p=z.indexOf(this.RW),T=p==0||p==z.length-1,k=0,P=255,b=!0;
if(T){k=1;P=254}if(!r||!T)this.RW.v.Hrzn.v=Math.max(k,Math.min(P,Math.round(U)));this.RW.v.Vrtc.v=Math.max(0,Math.min(255,Math.round(E)));
for(var H=0;H<z.length;H++){if(z[H]==this.RW)continue;if(Math.abs(z[H].v.Hrzn.v-this.RW.v.Hrzn.v)<2)b=!1}if(U<0||U>255||E<0||E>255)b=!1;
if(b&&z.indexOf(this.RW)==-1)z.push(this.RW);if(!b&&z.indexOf(this.RW)!=-1&&z.length>2&&(!r||!T))z.splice(z.indexOf(this.RW),1);
if(z[0].v.Hrzn.v==z[1].v.Hrzn.v)if(z[0].v.Hrzn.v==0)z[1].v.Hrzn.v=1;else z[0].v.Hrzn.v--;z.sort(function(y,v){return y.v.Hrzn.v-v.v.Hrzn.v})}else{U=Math.round(U);
E=Math.round(E);U=Math.max(0,Math.min(255,U));E=Math.max(0,Math.min(255,E));var Q=this.a2.x,K=U,h=this.a2.y,x=E;
if(U<this.a2.x){K=Q;Q=U;x=h;h=E}this.IR[U]=E;if(Q!=K)for(var O=Q;O<=K;O++)this.IR[O]=Math.round(h+(O-Q)*(x-h)/(K-Q))}this.a2.U6(U,E);
this.P_();this.B(new q(B.E.L))};ig.prototype.KR=function(L){B.dZ(document.body,this.kf);B.EW(document.body,this.T6);
this.B(new q(B.E.L))};ig.prototype.P_=function(){var L=this.zS;L.fillStyle="#ffffff";L.fillRect(0,0,256,256);
if(this.gR){L.translate(0,256);L.scale(1,-1);bs.nq(L,this.gR,5700/this.a65,this.ZV);L.scale(1,-1);L.translate(0,-256)}L.strokeStyle="#aaaaaa";
L.lineWidth=1;L.beginPath();for(var H=1;H<4;H++){L.moveTo(0,64*H-.5);L.lineTo(255,64*H-.5);L.moveTo(64*H-.5,0);
L.lineTo(64*H-.5,255)}L.stroke();if(this.L6){L.save();L.transform(0,1,-1,0,256,0)}if(this.mode==0){var C=this.IR,U=c.Nn._$(C,256);
L.strokeStyle="#000000";L.beginPath();L.moveTo(0,255.5-U[0]);for(var H=0;H<256;H++)L.lineTo(H,255.5-U[H]);
L.stroke();L.lineWidth=2;for(var H=0;H<C.length;H++){var E=C[H].v;L.fillStyle=this.RW==C[H]?"#333":"#fff";
L.beginPath();L.moveTo(E.Hrzn.v,255.5-E.Vrtc.v);L.arc(E.Hrzn.v,255.5-E.Vrtc.v,3,0,2*Math.PI);L.stroke();
L.fill()}}else{var U=this.IR;L.strokeStyle="#000000";L.beginPath();L.moveTo(0,255.5-U[0]);for(var H=0;
H<256;H++)L.lineTo(H,255.5-U[H]);L.stroke()}if(this.L6)L.restore()};function bs(L,C){gG.call(this);this.j=B.w("span","");
this.os=new bS([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5],[12,82]]);this.os.k(B.E.L,this.L9,this);this.j.appendChild(this.os.j);
B.E4(this.j);this.UF=B.w("canvas");var U=this.UF;this.j.appendChild(U);U.width=Math.round(L*B.M());U.height=Math.round(100*B.M());
B.IO(U,U.width,U.height);this.vU=U.getContext("2d");this.gR=null;this.SI=0;this.af1=null;this.abl=[];
this.IF=[];var E=["Mean:","Pixels:"],Y=this.j;for(var H=0;H<E.length;H++){var z=new ip(E[H]);this.abl.push(z);
if(C)Y.appendChild(z.j);var r=new ip("hi");this.IF.push(r);if(C)Y.appendChild(r.j);B.E4(Y)}}bs.prototype=new gG;
bs.prototype.f=function(){this.os.f()};bs.prototype.sN=function(L){this.os.T(L);this.L9()};bs.prototype.T=function(L,C){this.gR=L;
this.af1=C;this.L9()};bs.prototype.Gm=function(L){if(L==this.SI)return;this.SI=L;this.L9()};bs.prototype.L9=function(){if(this.gR==null)return;
var L=this.UF,C=this.vU,U=this.gR,E=this.af1,Y=this.os.u(),z=6e3/U[4],r="#"+c.Xo(this.SI),p=bs.nq;L.width=L.width;
C.setTransform(L.width/256,0,0,-L.height/100,0,L.height);C.globalCompositeOperation="lighter";if(Y==0)p(C,U[0],z/3,r);
else if(Y<4)p(C,U[Y],z,r);else{p(C,U[1],z,"#ff0000");p(C,U[2],z,"#00ff00");p(C,U[3],z,"#0000ff")}C.setTransform(1,0,0,1,0,0);
if(E!=null){var T=0;for(var H=0;H<256;H++)T+=H*U[Y][H];if(Y==0)T/=3;this.IF[0].T((T/E).toFixed(1)+"");
this.IF[1].T(E+"")}};bs.nq=function(L,C,U,E){L.beginPath();L.moveTo(0,0);for(var Y=0;Y<256;Y++)L.lineTo(Y,C[Y]*U);
L.lineTo(256,0);L.closePath();L.fillStyle=E;L.fill()};function dm(L){gG.call(this);this.s8={h:0,P:0,O:0};
if(Math.abs(L-256/B.M())<10)L=256/B.M();var C=this.j=B.w("div","flexrow");this.rg=new hZ;this.gz=new hZ;
this.yc=this.Cy.bind(this);this.xf=this.ak6.bind(this);this.k2=B.w("canvas","");this.zS=this.k2.getContext("2d");
this.k2.width=this.k2.height=256;this.a8O=this.zS.getImageData(0,0,256,256);this.akv=-1;B.zC(this.k2);
B.Vv(this.k2,this.a9V.bind(this));C.appendChild(this.k2);this.aky=this.x9.bind(this);this.an8=this.a78.bind(this);
this.Ch=B.w("canvas","");this.$Z=this.Ch.getContext("2d");this.Ch.width=20;this.Ch.height=256;this.a4C=this.$Z.getImageData(0,0,20,256);
this.a21(this.a4C.data,20,256);B.zC(this.Ch);B.Vv(this.Ch,this.afc.bind(this));C.appendChild(this.Ch);
this.k2.setAttribute("style","width:"+L+"px; height:"+L+"px");this.Ch.setAttribute("style","width:"+20/B.M()+"px; height:"+L+"px")}dm.prototype=new gG;
dm.prototype.AU=function(L,C){this.k2.style.width=L+"px"};dm.prototype.T=function(L){this.s8=L;this.update()};
dm.prototype.u=function(){return JSON.parse(JSON.stringify(this.s8))};dm.prototype.update=function(){var L=this.s8,C=c.t2(L.h,L.P,L.O);
if(C.oe==0)C.uR=this.rg.x/255;if(C.uR==0||C.oe==0)C.fg=(255-this.ds(this.gz.y))/255;if(C.oe!=0)this.rg.x=C.uR*255;
this.rg.y=(1-C.oe)*255;this.gz.y=(1-C.fg)*255;var U=this.a8O;if(Math.abs(C.fg-this.akv)>.002){this.ade(U.data,256,256,C.fg);
this.akv=C.fg}this.zS.putImageData(U,0,0);this.zS.strokeStyle="#000000";this.zS.beginPath();this.zS.arc(this.rg.x+1,this.rg.y+1,5,0,2*Math.PI);
this.zS.stroke();this.zS.strokeStyle="#ffffff";this.zS.beginPath();this.zS.arc(this.rg.x,this.rg.y,5,0,2*Math.PI);
this.zS.stroke();var U=this.a4C;this.$Z.putImageData(U,0,0);this.$Z.strokeStyle="#ffffff";this.$Z.beginPath();
this.$Z.moveTo(0,this.gz.y);this.$Z.lineTo(20,this.gz.y);this.$Z.lineWidth=2;this.$Z.stroke()};dm.prototype.ade=function(L,C,U,E){var Y=1/C,z=1/U;
for(var r=0;r<U;r++)for(var p=0;p<C;p++){var T=c.D5(E,p*Y,(U-r-1)*z),H=r*C+p<<2;L[H+0]=~~(T.h*255);L[H+1]=~~(T.P*255);
L[H+2]=~~(T.O*255);L[H+3]=255}};dm.prototype.a21=function(L,C,U){var E=new Uint32Array(L.buffer);for(var Y=0;
Y<U;Y++){var z=c.D5(1-Y/U,1,1),r=255<<24|z.O*255<<16|z.P*255<<8|z.h*255;for(var p=0;p<C;p++)E[Y*C+p]=r}};
dm.prototype.a9V=function(L){B.z2(window,this.yc);B.Yp(window,this.xf);this.Cy(L)};dm.prototype.ak6=function(L){B.dZ(window,this.yc);
B.EW(window,this.xf)};dm.prototype.Cy=function(L){var C=B.K7(L,this.k2);C.x=C.x*(256/parseFloat(this.k2.style.width));
C.y=C.y*(256/parseFloat(this.k2.style.height));this.rg.U6(this.ds(C.x),this.ds(C.y));this.bV()};dm.prototype.bV=function(){this.s8=this.ala();
this.B(new q(B.E.L))};dm.prototype.ala=function(){var L=c.D5((255-this.ds(this.gz.y))/255,this.uA(this.rg.x/255),this.uA(1-this.rg.y/255));
return{h:L.h,P:L.P,O:L.O}};dm.prototype.afc=function(L){B.z2(window,this.aky);B.Yp(window,this.an8);
this.x9(L)};dm.prototype.a78=function(L){B.dZ(window,this.aky);B.EW(window,this.an8)};dm.prototype.x9=function(L){var C=B.K7(L,this.Ch);
C.y=C.y*(256/parseFloat(this.Ch.style.height));this.gz.U6(this.ds(C.x),this.ds(C.y));this.bV()};dm.prototype.ds=function(L){return Math.max(0,Math.min(255,L))};
dm.prototype.uA=function(L){return Math.max(0,Math.min(1,L))};function dr(L,C,U){gG.call(this);if(!C)return;
this.Gi=0;this.j=B.w("span","fitem bbmenu");if(L){this.N8=L;this.I6=B.w("label","flabel");this.I6.textContent=L+":";
this.j.appendChild(this.I6)}this.Pz=[];this.Mc=null;this.SU(C,U);this.T(0)}dr.prototype=new gG;dr.prototype.uc=function(L){this.N8=L;
this.f()};dr.prototype.f=function(){if(this.N8!=null){this.I6.textContent=gS.get(this.N8)+": "}for(var H=0;
H<this.Pz.length;H++)this.Pz[H].f()};dr.prototype.u=function(){return this.Gi};dr.prototype.SU=function(L,C){while(this.Pz.length>0)this.j.removeChild(this.Pz.pop().j);
this.Mc=L;for(var H=0;H<L.length;H++){var U=new br(L[H],!1,C?C[H]:null);U.k("click",this.We,this);this.j.appendChild(U.j);
this.Pz.push(U)}this.f()};dr.prototype.T=function(L){this.Gi=L;for(var H=0;H<this.Pz.length;H++)this.Pz[H].q7();
this.Pz[L].m0()};dr.prototype.We=function(L){var H=this.Pz.indexOf(L.target);this.T(H);this.B(new q(B.E.L,!1))};
function bO(L,C,U,E){if(E==null)E=16;var Y=bO.co,z=Y.getContext("2d"),r=E>>>1;Y.width=Y.height=E;var p=[];
for(var H=0;H<C.length;H++){if(C[H]=="checker"){z.fillStyle="white";z.fillRect(0,0,E,E);z.fillStyle="#bbbbbb";
z.fillRect(r,0,r,r);z.fillRect(0,r,r,r)}else if(C[H].startsWith("#")){z.fillStyle=C[H];z.fillRect(0,0,E,E)}if(C[H]=="checker"||C[H].startsWith("#"))p.push("<img src=\""+Y.toDataURL()+"\" />");
else p.push("<img src=\""+C[H]+"\" class=\"autoscale gsicon\" />")}dr.call(this,L,p,U)}bO.prototype=new dr;
bO.co=B.w("canvas");function bS(L,C,U,E){gG.call(this);if(!C)return;if(U==null)U=!1;this.Gi=0;this.a56=U;
this.N8=L;this.FX=null;this.a47=E;var Y="dd"+B.E3();this.j=B.w("span","fitem ddmenu");if(L&&!U){this.I6=B.w("label","flabel");
this.j.appendChild(this.I6);this.I6.setAttribute("for",Y)}this.pP=B.w("select","bbtn");this.pP.setAttribute("id",Y);
this.j.appendChild(this.pP);this.pP.addEventListener("change",this.We.bind(this),!1);this.Pz=[];this.Mc=null;
this.SU(C,E);this.f()}bS.prototype=new gG;bS.prototype.uc=function(L){this.N8=L;this.f()};bS.prototype.f=function(){if(this.N8!=null){var L=gS.get(this.N8);
if(this.a56)this.pP.setAttribute("title",L);else this.I6.textContent=L+":"}if(this.Mc)this.SU(this.Mc,this.a47);
this.T(this.Gi)};bS.prototype.u=function(){return this.Gi};bS.prototype.SU=function(L,C){B.CF(this.pP);
var U=[],E=0;if(C){U.push(C[0]);for(var H=1;H<C.length;H++)U.push(U[H-1]+C[H])}this.Mc=L;this.FX=[];
this.a47=C;for(var H=0;H<L.length;H++){var Y=B.w("option");Y.textContent=gS.get(L[H]);Y.setAttribute("value",H);
this.pP.appendChild(Y);this.Pz.push(Y);this.FX.push(H+E);if(U.indexOf(H+1)!=-1&&H!=L.length-1){var z=B.w("option");
z.setAttribute("disabled","");z.textContent="";this.pP.appendChild(z);E++}}};bS.prototype.T=function(L){this.Gi=L;
this.pP.selectedIndex=this.FX[L]};bS.prototype.We=function(L){this.Gi=this.FX.indexOf(this.pP.selectedIndex);
this.B(new q(B.E.L,!1))};function iM(){gG.call(this);this.us=null;this.Ky=new hx;this.Ky.k(B.E.L,this.a2c,this);
this.Ky.parent=this;this.Ho=new cU([12,14,0],1,150,"px",0,!0);this.Ho.k(B.E.L,this.mU,this);this.Ho.parent=this;
this._o=new cU([16,0],0,100,"px",2,!0,null,5);this._o.k(B.E.L,this.mU,this);this._o.parent=this;this.sj=new dh("Auto");
this.sj.k(B.E.L,this.mU,this);this.Q$=new cU([16,1],-500,5e3,"%",0,!0);this.Q$.k(B.E.L,this.mU,this);
this.Q$.parent=this;this.HA=new cU("\u2B0D",1,300,"%",null,null,null,null,[[2,7],[22,4,3]]);this.HA.k(B.E.L,this.mU,this);
this.HA.parent=this;this.pw=new cU("\u2B0C",1,300,"%",null,null,null,null,[[2,7],[22,4,2]]);this.pw.k(B.E.L,this.mU,this);
this.pw.parent=this;this.s3=new cU([16,2],-10,10,"px");this.s3.k(B.E.L,this.mU,this);this.s3.parent=this;
this.rh=new di(!0);this.rh.k(B.E.L,this.aie,this);this.rh.parent=this;this.Eg=new br("<img src=\""+PIMG["type/bold"]+"\" class=\"autoscale gsicon\" />");
this.RC=new br("<img src=\""+PIMG["type/italic"]+"\" class=\"autoscale gsicon\" />");this.$d=new br("<img src=\""+PIMG["type/caps"]+"\" class=\"autoscale gsicon\" />");
this.Ex=new br("<img src=\""+PIMG["type/scaps"]+"\" class=\"autoscale gsicon\" />");this.Im=new br("<img src=\""+PIMG["type/sub"]+"\" class=\"autoscale gsicon\" />");
this.Ah=new br("<img src=\""+PIMG["type/sup"]+"\" class=\"autoscale gsicon\" />");this.xO=new br("<img src=\""+PIMG["type/under"]+"\" class=\"autoscale gsicon\" />");
this.Qm=new br("<img src=\""+PIMG["type/strike"]+"\" class=\"autoscale gsicon\" />");var L=[this.Eg,this.RC,this.$d,this.Ex,this.Im,this.Ah,this.xO,this.Qm];
for(var H=0;H<L.length;H++)L[H].k("click",this.a7V,this);this.uS=new br("<img src=\""+PIMG["par/left"]+"\" class=\"autoscale gsicon\" />");
this.nV=new br("<img src=\""+PIMG["par/right"]+"\" class=\"autoscale gsicon\" />");this.r4=new br("<img src=\""+PIMG["par/center"]+"\" class=\"autoscale gsicon\" />");
this.amH=new br("<img src=\""+PIMG["par/jleft"]+"\" class=\"autoscale gsicon\" />");this.a7K=new br("<img src=\""+PIMG["par/jright"]+"\" class=\"autoscale gsicon\" />");
this.acw=new br("<img src=\""+PIMG["par/jcenter"]+"\" class=\"autoscale gsicon\" />");this.a60=new br("<img src=\""+PIMG["par/jall"]+"\" class=\"autoscale gsicon\" />");
this.Fn=[this.uS,this.nV,this.r4,this.amH,this.a7K,this.acw,this.a60];for(var H=0;H<this.Fn.length;H++)this.Fn[H].k("click",this.mU,this);
var C=["lind","rind","flind","bind","aind"],U=[];for(var H=0;H<5;H++)U.push("<img src=\""+PIMG["par/"+C[H]]+"\" class=\"autoscale gsicon\" /> ");
this.LZ=new cU(U[0],-20,20,"px");this.LZ.k(B.E.L,this.mU,this);this.LZ.parent=this;this.BY=new cU(U[1],-20,20,"px");
this.BY.k(B.E.L,this.mU,this);this.BY.parent=this;this.tf=new cU(U[2],-20,20,"px");this.tf.k(B.E.L,this.mU,this);
this.tf.parent=this;this.cF=new cU(U[3],-20,20,"px");this.cF.k(B.E.L,this.mU,this);this.cF.parent=this;
this.fT=new cU(U[4],-20,20,"px");this.fT.k(B.E.L,this.mU,this);this.fT.parent=this;this.uY=new dr([12,33],["Abc ...","... \u0623\u064A \u0628\u064A"]);
this.uY.k(B.E.L,this.mU,this);this.uY.parent=this}iM.prototype=new gG;iM.prototype.f=function(){this.Ky.f();
this.Ho.f();this._o.f();this.Q$.f();this.s3.f();this.HA.f();this.pw.f();this.uY.f()};iM.prototype.T=function(L,C,U){this.Az=JSON.parse(JSON.stringify(L));
var E=this.Az,Y=E.LI,z=E.s6;this.Eg.T(Y.FauxBold!=null?Y.FauxBold:!1);this.RC.T(Y.FauxItalic!=null?Y.FauxItalic:!1);
this.$d.T(Y.FontCaps==2);this.Ex.T(Y.FontCaps==1);this.Ah.T(Y.FontBaseline==1);this.Im.T(Y.FontBaseline==2);
this.xO.T(Y.Underline);this.Qm.T(Y.Strikethrough);this.Ky.T(Y.Font==null?null:E.Oe[Y.Font].Name,C,U);
var r=Y.FontSize==null?20:Y.FontSize;this.Ho.T(r);var p=Y.Tracking;this.Q$.T(p==null?0:p);this._o.T(Y.Leading!=null?Y.Leading:0);
this.sj.T(Y.AutoLeading);this.HA.T((Y.VerticalScale!=null?Y.VerticalScale:0)*100);this.pw.T((Y.HorizontalScale!=null?Y.HorizontalScale:0)*100);
this.s3.T(Y.BaselineShift!=null?Y.BaselineShift:0);if(Y.FillColor){var T=b5.Lt(Y);this.rh.Gm(Math.round(T.h)<<16|Math.round(T.P)<<8|Math.round(T.O))}else this.rh.Gm(0);
var k=z._Direction!=null?z._Direction:0,P=b5.Ix(z);for(var H=0;H<this.Fn.length;H++)this.Fn[H].T(P==H);
this.uY.T(k);this.LZ.T(z.StartIndent!=null?z.StartIndent:0);this.BY.T(z.EndIndent!=null?z.EndIndent:0);
this.tf.T(z.FirstLineIndent!=null?z.FirstLineIndent:0);this.cF.T(z.SpaceBefore!=null?z.SpaceBefore:0);
this.fT.T(z.SpaceAfter!=null?z.SpaceAfter:0)};iM.prototype.yy=function(){var L=new q(B.E.l,!0);L.data={e:B.U.MP,wm:c_.NW,Az:this.Az};
this.B(L);var L=new q(B.E.A,!0);L.m=W.Ey;L.data={e:"updateStyles"};this.B(L)};iM.prototype.a7V=function(L){var C=this.Az.LI,U=L.target,E=!U.gF();
if(U==this.Eg)C.FauxBold=E;if(U==this.RC)C.FauxItalic=E;if(U==this.$d)C.FontCaps=E?2:0;if(U==this.Ex)C.FontCaps=E?1:0;
if(U==this.Ah)C.FontBaseline=E?1:0;if(U==this.Im)C.FontBaseline=E?2:0;if(U==this.xO)C.Underline=E;if(U==this.Qm)C.Strikethrough=E;
this.yy()};iM.prototype.mU=function(L){var C=this.Az.LI,U=this.Az.s6,E=L.target;if(E==this.Q$){var Y=this.Q$.u();
C.Tracking=Y}if(E==this._o){C.AutoLeading=!1;C.Leading=this._o.u()}if(E==this.sj){C.AutoLeading=this.sj.u()}if(E==this.Ho)C.FontSize=E.u();
if(E==this.HA)C.VerticalScale=E.u()/100;if(E==this.pw)C.HorizontalScale=E.u()/100;if(E==this.s3)C.BaselineShift=E.u();
if(this.Fn.indexOf(E)!=-1){U.Justification=b5.Ix(U,this.Fn.indexOf(E))}if(E==this.LZ)U.StartIndent=E.u();
if(E==this.BY)U.EndIndent=E.u();if(E==this.tf)U.FirstLineIndent=E.u();if(E==this.cF)U.SpaceBefore=E.u();
if(E==this.fT)U.SpaceAfter=E.u();if(E==this.uY)U._Direction=E.u();this.yy()};iM.prototype.a2c=function(L){var C=this.Az,U=this.Ky.u(),E=-1;
for(var H=0;H<C.Oe.length;H++)if(C.Oe[H].Name==U)E=H;if(E==-1){E=C.Oe.length;var Y=JSON.parse(JSON.stringify(C.Oe[0]));
Y.Name=U;C.Oe.splice(E,0,Y)}C.LI.Font=E;this.yy()};iM.prototype.aie=function(L){var C=this.rh.A2(),U={Type:1,Values:[1,(C>>16&255)/255,(C>>8&255)/255,(C>>0&255)/255]};
for(var H=0;H<4;H++)U.Values[H]=Math.round(U.Values[H]*1e3)/1e3;this.Az.LI.FillColor=U;this.yy()};function hx(){gG.call(this);
this.j=B.w("span","fontinput");this.G9=null;this.ay=null;this.VV=null;this.aG="";this.g$={};this.JB=[];
this.agD={};this.oy=!1;this.j2=B.w("button","fitem");this.j2.setAttribute("style","width:9em;");this.j2.textContent="Family Name \u25BC";
this.j.appendChild(this.j2);B.Vv(this.j2,this.JD.bind(this));this.AM=new gG;this.AM.parent=this;this.AM.j=B.w("div","floatcont");
this.AM.j.addEventListener("keyup",this.a4O.bind(this),!1);this.kN=new eG(6.8);this.AM.j.appendChild(this.kN.aeJ());
this.kN.parent=this.AM;this.kN.k(B.E.L,this.RH,this);var L=B.w("div","form");this.AM.j.appendChild(L);
this.WU=new br(B.lp("tools/cshape",null,"autoscale"),!1,"Show Favorites Only");this.WU.k("click",this.a8b,this);
L.appendChild(this.WU.j);this.iZ=new hq([12,86],null,9);this.iZ.k("input",this.Bd,this);L.appendChild(this.iZ.j);
var C=this.abV=new br([[23,6],[22,6,0]],!1,"Load OTF / TTF file from your computer",!0);C.k("click",this.agl,this);
C.j.style.marginLeft="1.5em";L.appendChild(C.j);this.k6=B.w("span","fitem imageset scrollable marged");
this.k6.style.height="30em";this.AM.j.appendChild(this.k6);this.Ny=B.w("button","fitem");this.Ny.setAttribute("style","width:7em;");
this.Ny.textContent="SubFamily Name \u25BC";this.j.appendChild(this.Ny);B.Vv(this.Ny,this.JD.bind(this));
this.a8=new gG;this.a8.parent=this;this.a8.j=B.w("div","floatcont");this.mC=B.w("span","fitem imageset scrollable marged");
this.a8.j.appendChild(this.mC)}hx.prototype=new gG;hx.prototype.a4O=function(L){var C=0;if(G.IX(L.code,G.Bz))C=-1;
if(G.IX(L.code,G.oY))C=1;if(C!=0){var U=this.JB,E=U.length,Y=this.G9.Fj()[this.VV];if(Y==null&&E==0)return;
var z=U.indexOf(Y[0]);if(z==-1)return;z=(z+C+E)%E;this.Jj(U[z],null)}};hx.prototype.agl=function(){var L=new q(B.E.l,!0);
L.data={e:B.U.KJ,al0:".otf,.ttf,.ttc"};this.B(L)};hx.prototype.f=function(){this.kN.f();this.abV.f();
this.WU.uc(B.lp("tools/cshape",null,"autoscale"))};hx.prototype.a8b=function(L){this.WU.T(!this.WU.gF());
this.RH()};hx.prototype.Bd=function(L){this.aG=this.iZ.u().toLowerCase();this.RH()};hx.prototype.JD=function(L){B.ZS(L);
var C=L.currentTarget,U=C.getBoundingClientRect(),E=C==this.j2,Y=E?this.AM:this.a8;if(B.DW(Y.j)){this.Kk(Y);
return}if(!E&&this.G9.Fj()[this.VV]==null)return;var z=new q(B.E.l,!0);z.data={e:B.U.Ww,f0:Y,x:U.left,y:U.top+U.height};
this.B(z);if(E){this.RH();this.iZ.Su()}};hx.prototype.a9b=function(L){var C=L.currentTarget.firstChild.nextSibling.textContent;
if(L.target.tagName.toLowerCase()=="button"){var U=this.ay.slice(0),E=U.indexOf(C);if(E==-1){U=U.slice(Math.max(0,U.length-29));
U.push(C)}else U.splice(E,1);var Y=new q(B.E.l,!0);Y.data={e:B.U.MP,wm:c_.HC,oq:U};this.B(Y);this.oy=!0;
this.RH()}else{this.Jj(C,null);this.iZ.Su()}};hx.prototype.amN=function(L){this.Jj(null,L.currentTarget.firstChild.textContent)};
hx.prototype.Jj=function(L,C){var U=L==null?this.a8:this.AM,E=this.G9;if(L==null)L=E.Fj()[this.VV][0];
else{var Y=E._z(L),z=E.Fj()[this.VV];C=e3.f$(Y,z?z[1]:"regular")}var r=E.BA(L,C)[2];this.T(r,E);this.B(new q(B.E.L,!1));
this.Kk(U);this.RH()};hx.prototype.Kk=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.Tq,f0:L};this.B(C)};
hx.prototype.u=function(){return this.VV};hx.prototype.T=function(L,C,U){var E=this.G9;if(L!=null)this.VV=L;
else L=this.VV;this.G9=C;this.ay=U;if(L!=null){var Y=C.Fj()[L],z,r;if(Y==null){z="- "+L;r="-------"}else{z=Y[0];
r=Y[1];var p=C._z(z);p.sort(e3.aa2);var T=p.indexOf(r),k=this.amN.bind(this);this.mC.textContent="";
for(var H=0;H<p.length;H++){var Y=C.BA(z,p[H]);if(!this.kN.HL(Y))continue;var P=this.XS(Y,Y[1],k,!1);
this.mC.appendChild(P)}}this.j2.textContent=z.substring(0,15)+" \u25BC";this.j2.setAttribute("title",z);
this.Ny.textContent=r.substring(0,10)+" \u25BC";this.Ny.setAttribute("title",r)}};hx.prototype.RH=function(){var L=this.G9.Fj()[this.VV],C=this.ay,U=null,E=this.G9.abC(),Y=this.a9b.bind(this);
this.JB=[];for(var z in E){var r=e3.f$(E[z],"regular"),p=this.G9.BA(z,r),T=C.indexOf(z)!=-1,k=!0;if(this.aG.length>0&&p[0].toLowerCase().indexOf(this.aG)==-1)k=!1;
else if(!this.kN.HL(p))k=!1;else if(this.WU.gF()&&!T)k=!1;var P=this.g$[z];if(P==null){var P=this.XS(p,z,Y,!0);
this.g$[z]=P;this.k6.appendChild(P)}if(k)this.JB.push(z);var b=k?"":"display:none; ",Q="opacity: "+(T?"1":"0.2");
if(L&&L[0]==z){b+="background-color:rgba(0,0,0,0.13);";U=P}if(this.agD[z]!=b+Q){P.setAttribute("style",b);
P.firstChild.setAttribute("style",Q);this.agD[z]=b+Q}}if(U&&!this.oy)this.k6.scrollTop=U.offsetTop-210;
this.oy=!1};hx.prototype.XS=function(L,C,U,E){var Y=B.w("div","fontitem"),T="";Y.addEventListener("click",U,!1);
if(E)Y.appendChild(B.w("button","star"));var z=B.w("span","label");z.setAttribute("title",C);z.textContent=C;
Y.appendChild(z);var r=B.M(),p=1/r,k=e3.Xz*p,P=e3.PN*p;if(1<r&&r<1.5)T="width:"+k+"px; height:"+P+"px;";
var b=B.w("span","thumb gsicon");if(L.a06){T+="background: url("+L.a06+");";if(1<r&&r<1.5)T+="background-size: "+k+"px "+P+"px;"}else{var Q=Math.ceil(FNTS.list.length/e3.cols),K=Math.floor(L.Oi/Q),h=L.Oi%Q,x=K*e3.Xz,O=h*e3.PN;
if(1<r&&r<1.5){T+="background-size: "+e3.cols*k+"px "+Q*P+"px;";x*=p;O*=p}T+="background-position:-"+x+"px -"+O+"px;"}b.setAttribute("style",T);
Y.appendChild(b);return Y};function eG(L){gG.call(this);this.j=B.w("button","fitem bbtn");this.j.addEventListener("click",this.a9j.bind(this),!1);
this.oM=new gG;this.oM.j=B.w("div","floatcont");this.oM.parent=this;this.xE=B.w("div","flexrow");this.oM.j.appendChild(this.xE);
this.fh=[];this.Og=[];var C=this.xE,U=B.w("div",""),E=B.w("div","");C.appendChild(U);C.appendChild(E);
this.v0=[];for(var H=0;H<FNTS.cats.length;H++)this.v0.push({name:FNTS.cats[H],index:H,x_:0});this.nB=new dh([7,0]);
this.nB.k(B.E.L,this.amQ,this);U.appendChild(this.nB.j);this.Fo=B.w("div","vlist marged scrollable");
this.Fo.setAttribute("style","width:10.85em; height:"+L+"em; ");U.appendChild(this.Fo);this.nL=[];for(var H=0;
H<this.v0.length;H++){var Y=this.v0[H],z=new dh(Y.name);this.nL.push(z);z.k(B.E.L,this.a6e,this);z.T(!0);
this.Fo.appendChild(z.j);this.fh.push(1)}this.a4f=new dh([7,0]);this.a4f.k(B.E.L,this.a8T,this);this.Iw=B.w("div","vlist marged scrollable");
this.Iw.setAttribute("style","width:8.6em; height:"+(L+1.5)+"em; ");E.appendChild(this.Iw);this.R0=[];
for(var H=0;H<FNTS.subsetNames.length;H++){var z=new dh(FNTS.subsetNames[H]);this.R0.push(z);z.k(B.E.L,this.aiZ,this);
z.T(!1);this.Iw.appendChild(z.j);this.Og.push(0)}}eG.prototype=new gG;eG.prototype.aiY=function(L){var C=this.R0;
for(var H=0;H<C.length;H++){var U=(L>>>H&1)==1;this.Og[H]=U;C[H].T(U)}};eG.prototype.aeJ=function(){return this.xE};
eG.prototype.f=function(){this.j.textContent=gS.get([25,1,0])+" \u25BC";this.nB.f();this.a4f.f()};eG.prototype.a9j=function(L){var C=this.j.getBoundingClientRect(),U=new q(B.E.l,!0);
U.data={e:B.U.Ww,f0:this.oM,x:C.left,y:C.top+C.height,ur:!1};this.B(U)};eG.prototype.HL=function(L){if(this.fh[L[4]]==0)return!1;
else for(var C=0;C<this.Og.length;C++)if(this.Og[C]==1&&(L[3]>>>C&1)==0)return!1;return!0};eG.prototype.amQ=function(L){var C=L.target.u(),U=this.nL,E=this.fh;
for(var H=0;H<U.length;H++){U[H].T(C);E[H]=C?1:0}this.B(new q(B.E.L,!1))};eG.prototype.a8T=function(L){var C=L.target.u(),U=this.R0,E=this.Og;
for(var H=0;H<U.length;H++){U[H].T(C);E[H]=C?1:0}this.B(new q(B.E.L,!1))};eG.prototype.a6e=function(L){var H=this.nL.indexOf(L.target),C=this.v0[H].index;
this.fh[C]=1-this.fh[C];this.B(new q(B.E.L,!1))};eG.prototype.aiZ=function(L){var H=this.R0.indexOf(L.target);
this.Og[H]=1-this.Og[H];this.B(new q(B.E.L,!1))};function cg(L,C,U){dS.call(this,C,!0,"gradientbutton",18,10,c_.SP);
this.yx=-1;this.ho=-1;this.a1V=null;this.aio=L;this.Da=U}cg.prototype=new dS;cg.prototype.ag=function(L){var C=this.eO;
this.T(C[this.lU.u()]);this.B(new q(B.E.L))};cg.prototype.O2=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.Q1,k5:"gradienteditor",W:this.TG,SL:this.acK.bind(this),U2:this.Da};
this.B(C)};cg.prototype.acK=function(L){this.T(L);this.B(new q(B.E.L))};cg.prototype.Vd=function(){if(!this.ma)return;
var L=Math.floor(36*B.M()),C=Math.floor(36*B.M()),U=[],E=[],Y=this.eO;for(var H=0;H<Y.length;H++){var z=Y[H];
E.push(z.Nm?z.Nm.v.split("=").pop():"");var r=W.Fe.BU(z,L,C,Math.PI/4,this.yx,this.ho);U.push(r)}this.lU.OF(U,E,L,C);
this.ma=!1};cg.prototype.iW=function(L,C){this.pQ(this.TG,L,C)};cg.prototype.T=function(L){this.pQ(L,this.yx,this.ho)};
cg.prototype.pQ=function(L,C,U){this.yx=C;this.ho=U;if(L==null)return;var E=JSON.stringify(L),Y=E+C+","+U;
if(Y==this.a1V)return;this.a1V=Y;this.TG=JSON.parse(E);var z=Math.floor(80*B.M()),r=Math.floor(16*B.M()),p=W.Fe.BU(this.TG,z,r,0,this.yx,this.ho);
this.$E.setAttribute("src",p);B.IO(this.$E,z,r)};cg.prototype.u=function(){var L;if(this.aio)L=W.Fe.amD(this.TG,this.yx,this.ho);
else L=JSON.parse(JSON.stringify(this.TG));return L};function g$(L){dS.call(this,L,!1,"swatchbutton",16,8.75,c_.ab)}g$.prototype=new dS;
g$.prototype.ag=function(L){this.T(this.eO[L.target.u()]);this.B(new q(B.E.L))};g$.prototype.Vd=function(){if(!this.ma)return;
var L=Date.now(),C=Math.floor(10*B.M()),U=Math.floor(10*B.M()),E=[],Y=[],z=this.eO;for(var H=0;H<z.length;
H++){Y.push(z[H].iF?z[H].iF.split("=").pop():"");E.push(g$.BU(z[H],C,U))}this.lU.OF(E,Y,C,U);this.ma=!1};
g$.prototype.T=function(L){this.TG=JSON.parse(JSON.stringify(L));this.kU()};g$.prototype.kU=function(){var L=Math.floor(24*B.M()),C=Math.floor(20*B.M()),U=g$.BU(this.TG,L,C);
this.$E.setAttribute("src",U);B.IO(this.$E,L,C)};g$.prototype.u=function(){return JSON.parse(JSON.stringify(this.TG))};
g$.kP={};g$.BU=function(L,C,U){var E=g$.vU,Y=g$.kP,z=c.Xo(L.h<<16|L.P<<8|L.O);if(Y[z])return Y[z];if(E==null){var r=B.w("canvas");
E=g$.vU=r.getContext("2d")}var r=E.canvas;r.width=C;r.height=U;E.fillStyle="#"+z;E.fillRect(0,0,C,U);
var p=Y[z]=r.toDataURL();return p};function dh(L,C,U){gG.call(this);this.j=B.w("span","fitem cbox");
if(C==null)C=!0;if(U==null)U="flabel";var E="cb"+B.E3();this.aE=B.w("input","");this.aE.setAttribute("type","checkbox");
this.aE.setAttribute("id",E);this.j.appendChild(this.aE);this.N8=L;this.I6=B.w("label",U);if(C)this.I6.setAttribute("for",E);
this.j.appendChild(this.I6);this.f();this.aE.addEventListener("change",this.We.bind(this),!1)}dh.prototype=new gG;
dh.prototype.rR=function(){return this.N8};dh.prototype.uc=function(L){this.I6.textContent=L};dh.prototype.f=function(){var L=this.N8;
if(typeof L=="string"&&L.startsWith("<"))this.I6.innerHTML=L;else this.I6.textContent=gS.get(L)};dh.prototype.m0=function(){this.aE.checked=!0};
dh.prototype.q7=function(){this.aE.checked=!1};dh.prototype.gF=function(){return this.aE.checked};dh.prototype.T=function(L){this.aE.checked=L};
dh.prototype.u=dh.prototype.gF;dh.prototype.We=function(L){this.B(new q(B.E.L,!1))};function b9(L,C,U,E){gG.call(this);
this.j=B.w("span","fitem mbox");this.acj=U;if(L){this.N8=L;this.I6=B.w("label","flabel");this.j.appendChild(this.I6)}this.CB=C;
this.Vr=[];for(var H=0;H<C.length;H++){var Y=U?new br(C[H],!1,E?E[H]:null):new dh(C[H],!0,"");Y.k(U?"click":B.E.L,this.We,this);
this.Vr.push(Y);this.j.appendChild(Y.j)}this.f()}b9.prototype=new gG;b9.prototype.T=function(L){for(var C=0;
C<this.CB.length;C++)this.Vr[C].T(L[C])};b9.prototype.u=function(){var L=[];for(var C=0;C<this.CB.length;
C++)L[C]=this.Vr[C].u();return L};b9.prototype.f=function(){if(this.N8)this.I6.innerHTML=gS.get(this.N8)+": ";
for(var L=0;L<this.Vr.length;L++)this.Vr[L].f()};b9.prototype.We=function(L){var H=this.Vr.indexOf(L.currentTarget);
if(this.acj)this.Vr[H].T(!this.Vr[H].u());this.B(new q(B.E.L,!1))};function dC(L,C,U,E,Y,z){hm.call(this,L,C,U,E,Y,!1,z);
this.j.appendChild(this.I6);var r=B.w("span","rangecont");this.j.appendChild(r);r.appendChild(this.$0);
this.j.appendChild(this.aE);this.aE.setAttribute("style","width:3.3em");if(this.$W)this.j.appendChild(this.Ev)}dC.prototype=new hm;
function gC(L,C,U,E){if(L==null)L=!1;if(C==null)C=!1;if(U==null)U=!1;gG.call(this);this.lS=new hZ;this.Pp=new hZ;
this.yY=72;this.W8=72;this.Ct=!0;this.j=B.w("span","");this.P8=new cU([12,41],0,0,null,0,!1,!0);this.j.appendChild(this.P8.j);
this.P8.k(B.E.L,this.vb,this);var Y=["px","%"];if(L)Y=Y.concat(["mm","in"]);this.G6=new bS(null,Y);this.j.appendChild(this.G6.j);
B.E4(this.j);this.G6.k(B.E.L,this.vb,this);this.sA=new cU([12,42],0,0,null,0,!1,!0);this.j.appendChild(this.sA.j);
this.sA.k(B.E.L,this.vb,this);var z=new br("\u21F5",!1,null,!0);z.k("click",this.afI,this);this.nP=new br("<img src=\""+PIMG["lrs/chain"]+"\" class=\"autoscale gsicon\" />",!1,[12,51]);
this.nP.k("click",this.vb,this);this.abz=new ip("");if(C){this.j.appendChild(this.nP.j);this.j.appendChild(this.abz.j);
this.nP.m0()}else this.j.appendChild(z.j);this.ed=new cU("DPI",0,0,null,3,!1,!0,4);if(L&&E==null){B.E4(this.j);
this.j.appendChild(this.ed.j)}this.ed.k(B.E.L,this.vb,this);this.JV=new dh([12,23,1]);this.JV.k(B.E.L,this.vb,this);
if(U){B.E4(this.j);this.j.appendChild(this.JV.j)}B.E4(this.j)}gC.prototype=new gG;gC.prototype.aho=function(){this.Ct=!1;
if(this.G6.u()==0){this.G6.T(3);this.ot()}};gC.prototype.aah=function(){this.Ct=!0};gC.prototype.ai8=function(L){this.nP.T(L)};
gC.prototype.f=function(){this.P8.f();this.sA.f();this.ed.f();this.nP.f();this.JV.f()};gC.prototype.afI=function(L){var C=this.Pp.x;
this.Pp.x=this.Pp.y;this.Pp.y=C;this.ot();this.B(new q(B.E.L,!1))};gC.prototype.vb=function(L){if(L.target==this.G6&&!this.Ct&&this.G6.u()==0)this.G6.T(3);
if(L.target==this.G6||L.target==this.JV){this.ot();return}if(L.target==this.nP)L.target.T(!L.target.u());
var C=this.lS,U=parseFloat(this.P8.u());if(isNaN(U))U=1;var E=parseFloat(this.sA.u());if(isNaN(E))E=1;
var Y=this.G6.u();if(this.Ct){var z=this.W8;if(Y==1){U=this.lS.x*(U/100);E=this.lS.y*(E/100)}var r=[1,1,25.4/z,1/z][Y];
U/=r;E/=r;if(this.JV.u()){U+=this.lS.x;E+=this.lS.y}if(L.target==this.ed){var p=this.ed.u();if(!0){var T=p/z;
U*=T;E*=T}z=p}if(this.nP.u()){if(L.target==this.P8)E=U*(C.y/C.x);else U=E*(C.x/C.y)}U=Math.max(Math.abs(U),1);
E=Math.max(Math.abs(E),1)}else{var z=this.yY;if(L.target==this.ed)z=this.ed.u();else{if(this.nP.u()){if(L.target==this.P8)E=U*(C.y/C.x);
else U=E*(C.x/C.y)}var r=[1,1,25.4/z,1/z][Y],k=U/(Y==1?100:C.x*r);z=z/k}U=C.x;E=C.y}this.Pp=new hZ(Math.round(U),Math.round(E));
this.W8=z;this.ot();this.B(new q(B.E.L,!1))};gC.prototype.ad2=function(H){this.G6.T(H);this.ot()};gC.prototype.T=function(L,C,U){if(U!=!0)this.lS=L.clone();
this.Pp=L.clone();if(C!=null){this.yY=C;this.W8=C}this.ot()};gC.prototype.ot=function(){var L=this.Pp.x,C=this.Pp.y,U=this.W8,E=(L/C).toFixed(3);
while(E.charAt(E.length-1)=="0")E=E.substring(0,E.length-1);if(E.charAt(E.length-1)==".")E=E.substring(0,E.length-1);
var Y="  "+E+" : 1",z=function(P,b){while(b!=0){var Q=b;b=P%b;P=Q}return P},r=z(L,C);if(Math.min(L,C)/r<10)Y="  "+Math.round(L/r)+" : "+Math.round(C/r);
this.abz.T(Y);if(this.JV.u()){L-=this.lS.x;C-=this.lS.y}var p=this.G6.u();if(p==1){if(this.Ct){L=100*L/this.lS.x;
C=100*C/this.lS.y}else{L=C=100*this.yY/this.W8}}else{L=Math.round(L);C=Math.round(C)}var T=[1,1,25.4/U,1/U][p];
L*=T;C*=T;var k=p==1||p==3?2:0;this.P8.z$(k);this.sA.z$(k);this.P8.T(L);this.sA.T(C);this.ed.T(U)};gC.prototype.u=function(){return this.Pp.clone()};
gC.prototype.Qy=function(){return this.W8};function gX(){gG.call(this);this.rV=0;this.IF=[0,0,1,1,100,100];
this.j=B.w("span","fitem");this.Gv=new bS(null,[[12,89,0],[12,89,1],[12,89,2]]);this.j.appendChild(this.Gv.j);
this.Gv.k(B.E.L,this.vb,this);this.P8=new cU("W",0,0,null,0,!1,!0);this.j.appendChild(this.P8.j);this.P8.k(B.E.L,this.vb,this);
this.sA=new cU("H",0,0,null,0,!1,!0);this.j.appendChild(this.sA.j);this.sA.k(B.E.L,this.vb,this);this.T({am:0,x:0,y:0})}gX.prototype=new gG;
gX.prototype.f=function(){B.ju(this.P8,this.sA);this.Gv.f()};gX.prototype.vb=function(L){if(L.target==this.Gv){var C=this.u(),U=this.IF;
U[this.rV*2]=C.x;U[this.rV*2+1]=C.y;this.rV=C.am;this.T({am:C.am,x:U[C.am*2],y:U[C.am*2+1]})}if(this.P8.u()<1)this.P8.T(1);
if(this.sA.u()<1)this.sA.T(1);this.B(new q(B.E.L,!1))};gX.prototype.T=function(L){this.Gv.T(L.am);this.P8.T(L.x);
this.sA.T(L.y);if(L.am==0){this.P8.aA();this.sA.aA()}else{this.P8.rX();this.sA.rX()}};gX.prototype.u=function(){return{am:this.Gv.u(),x:this.P8.u(),y:this.sA.u()}};
function ip(L,C){gG.call(this);this.N8=L;this.j=B.w("span","labelitem fitem"+(C?" spread":""));this.f()}ip.prototype=new gG;
ip.prototype.T=function(L){this.j.textContent=L};ip.prototype.u=function(){return this.j.textContent};
ip.prototype.rX=function(){this.j.removeAttribute("disabled")};ip.prototype.aA=function(){this.j.setAttribute("disabled","")};
ip.prototype.uc=function(L){this.j.textContent=L};ip.prototype.f=function(){this.j.textContent=gS.get(this.N8)};
ip.prototype.rR=function(){return this.N8};function aV(L){gG.call(this);this.j=B.w("span","");this.a92=L;
this.ll=new dC("Off X",-100,100,L?"%":"px",0,!1);this.Qk=new dC("Off Y",-100,100,L?"%":"px",0,!1);this.ll.k(B.E.L,this.vb,this);
this.Qk.k(B.E.L,this.vb,this);this.j.appendChild(this.ll.j);this.j.appendChild(this.Qk.j)}aV.prototype=new gG;
aV.prototype.f=function(){this.ll.f();this.Qk.f()};aV.prototype.vb=function(L){this.B(new q(B.E.L,!1))};
aV.prototype.aaR=function(L){this.ll.T(L.x);this.Qk.T(L.y)};aV.prototype.aeS=function(){return new hZ(this.ll.u(),this.Qk.u())};
aV.prototype.T=function(L,C){var U=L.Hrzn.v,E=L.Vrtc.v;if(this.a92){U=U.val;E=E.val}this.ll.T(U);this.Qk.T(E);
if(C)this.vb()};aV.prototype.u=function(){var L=this.ll.u(),C=this.Qk.u();if(this.a92)return{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:L}},Vrtc:{t:"UntF",v:{type:"#Prc",val:C}}};
else return{classID:"Pnt",Hrzn:{v:L,t:"doub"},Vrtc:{v:C,t:"doub"}}};function cU(L,C,U,E,Y,z,r,p,T){hm.call(this,L,C,U,E,Y,!0,z,T);
B.QS(this.j,"rangedropinput");this.j.appendChild(this.I6);this.aE.setAttribute("style","width:"+(p?p:3.3)+"em");
this.j.appendChild(this.aE);this.ako=B.w("span","rangecont");this.ako.appendChild(this.$0);this.fZ=B.w("button");
this.fZ.innerHTML="\u25BC";B.Vv(this.fZ,this.a2a.bind(this));if(r!=!0)this.j.appendChild(this.fZ);this.EY=new gG;
this.EY.j=this.ako}cU.prototype=new hm;cU.prototype.a2a=function(L){if(B.DW(this.EY.j))return;L.stopPropagation();
var C=this.j.getBoundingClientRect();this.$0.setAttribute("style","width:"+C.width+"px;");var U=new q(B.E.l,!0);
U.data={e:B.U.Ww,f0:this.EY,x:C.left,y:C.top+C.height};this.B(U)};function by(){gG.call(this);this.j=B.w("span","fitem strokebutton");
this.Sj=[[null,null,null,""],[null,0,null,"4 2"],[1,1,null,"0 2"]];this.Nu=JSON.parse(JSON.stringify(gM.H0.default));
this.TD=B.w("button");this.j.appendChild(this.TD);this.TD.addEventListener("click",this.AJ.bind(this),!1);
var L=B.w("canvas","gsicon");this.zS=L.getContext("2d");this.TD.appendChild(L);var C=B.w("span");C.textContent=" \u25BC";
this.TD.appendChild(C);this.oM=new gG;this.oM.parent=this;this.oM.j=B.w("div","floatcont form");var U=this.oM.j;
U.setAttribute("style","width: 14em;");this.g$=[new bS([12,40],[[19,5,2],[19,5,1],[19,5,0]]),new dr([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 dr([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 hq([19,9,2])];
for(var H=0;H<this.g$.length;H++){var E=this.g$[H];U.appendChild(E.j);var Y=H<4?B.E.L:"click";E.k(Y,this.vb,this)}B.E4(U);
this.sJ=[];var z=this.a6v.bind(this);for(var H=0;H<this.Sj.length;H++){var r=B.w("button","fitem");this.sJ.push(r);
U.appendChild(r);r.addEventListener("click",z,!1);var L=B.w("canvas","gsicon"),p=L.getContext("2d");
r.appendChild(L);this.up(p,40,20,this.Sj[H])}}by.prototype=new gG;by.prototype.AJ=function(L){var C=this.TD.getBoundingClientRect(),U=new q(B.E.l,!0);
U.data={e:B.U.Ww,f0:this.oM,x:C.left,y:C.top+C.height+4};this.B(U)};by.prototype.vb=function(L){var e4=this.g$,C=e4.indexOf(L.target),U=[];
for(var H=0;H<4;H++)U.push(e4[H].u());this.Nu=this.aI(U);this.B(new q(B.E.L,!1))};by.prototype.a6v=function(L){var C=this.sJ.indexOf(L.currentTarget);
this.T(this.aI(this.Sj[C]));this.B(new q(B.E.L,!1))};by.prototype.aI=function(L){var C=JSON.parse(JSON.stringify(this.Nu)),U=L[0],E=L[1],Y=L[2],z=L[3];
if(U!=null)C.strokeStyleLineAlignment.v.strokeStyleLineAlignment=gM.H0.jr[U];if(E!=null)C.strokeStyleLineCapType.v.strokeStyleLineCapType=gM.H0.h9[E];
if(Y!=null)C.strokeStyleLineJoinType.v.strokeStyleLineJoinType=gM.H0.join[Y];var r=C.strokeStyleLineDashSet.v=[];
z=z.split(" ");while((z.length&1)!=0)z.pop();for(var H=0;H<z.length;H++)r.push({t:"UntF",v:{type:"#Nne",val:parseInt(z[H])}});
return C};by.prototype.f=function(){for(var H=0;H<this.g$.length;H++)this.g$[H].f()};by.prototype.T=function(L){this.Nu=JSON.parse(JSON.stringify(L));
var C=gM.H0.jr.indexOf(L.strokeStyleLineAlignment.v.strokeStyleLineAlignment),U=gM.H0.h9.indexOf(L.strokeStyleLineCapType.v.strokeStyleLineCapType),E=gM.H0.join.indexOf(L.strokeStyleLineJoinType.v.strokeStyleLineJoinType),Y=[],z=L.strokeStyleLineDashSet.v;
for(var r=0;r<z.length;r++)Y.push(z[r].v.val);var e4=this.g$;e4[0].T(C);e4[1].T(U);e4[2].T(E);e4[3].T(Y.join(" "));
var p=[];for(var H=0;H<4;H++)p.push(e4[H].u());this.up(this.zS,40,16,p)};by.prototype.u=function(){return JSON.parse(JSON.stringify(this.Nu))};
by.prototype.up=function(L,C,U,E){var Y=E[0],z=E[1],r=E[2],p=E[3].split(" ").map(parseFloat);B.wS(L.canvas,C,U);
var T=Math.min(5,this.Nu.strokeStyleLineWidth.v.val);for(var H=0;H<p.length;H++)p[H]*=T;L.clearRect(0,0,C,U);
L.setLineDash(p);L.lineCap=["butt","round","square"][z];L.lineJoin=["miter","round","bevel"][r];L.lineWidth=T;
L.beginPath();L.moveTo(0,U/2);L.lineTo(C*2,U/2);L.stroke()};function iu(L){dS.call(this,L,!1,"contourbutton",34,16,c_.lz);
this.iZ=new hq([12,86],null,16);this.iZ.k("input",this.Bd,this);this.oM.j.appendChild(this.iZ.j);this.be=null;
this.aG="";this.Sz=null;this.T(fA.Q4())}iu.prototype=new dS;iu.prototype.f=function(){dS.prototype.f.call(this);
this.iZ.f()};iu.prototype.ag=function(L){this.T(this.be[L.target.u()]);this.B(new q(B.E.L))};iu.prototype.Bd=function(L){this.aG=this.iZ.u().toLowerCase();
this.Or()};iu.qW=!1;iu.prototype.Vd=function(){if(!this.ma)return;var L=this.eO;if(L==null||!iu.qW){var C=new q(B.E.l,!0);
C.data={e:B.U.sh,wm:{url:"rsrc/basic/fa_basic.csh"}};this.B(C);iu.qW=!0}else{var U=Math.floor(38*B.M()),E=Math.floor(38*B.M());
this.Sz=[];for(var H=0;H<L.length;H++)this.Sz.push(iu.dO(L[H],U,E));this.Or();this.ma=!1}};iu.prototype.Or=function(){var L=Math.floor(38*B.M()),C=Math.floor(38*B.M());
this.be=[];var U=[],E=[],Y=this.eO;for(var H=0;H<Y.length;H++){if(Y[H].gf.toLowerCase().indexOf(this.aG)==-1)continue;
this.be.push(Y[H]);U.push(this.Sz[H]);E.push(Y[H].gf)}this.lU.OF(U,E,L,C)};iu.prototype.T=function(L){this.TG=iu.clone(L);
this.kU()};iu.prototype.kU=function(){var L=Math.floor(23*B.M()),C=Math.floor(23*B.M()),U=iu.dO(this.TG,L,C);
this.$E.setAttribute("src",U);B.IO(this.$E,L,C)};iu.prototype.u=function(){return iu.clone(this.TG)};
iu.clone=function(L){return{gf:L.gf,hB:L.hB,n:o.mR.Xu(L.n),Ke:L.Ke.clone()}};iu.UF=null;iu.$e=null;iu.dO=function(L,C,U){var E=o.mR.Xu(L.n),Y=L.Ke,z=Math.min(C/Y.d,U/Y.v)*.9,r=new c0;
r.translate(-.5,-.5);r.scale(.95,.95);r.translate(.5,.5);r.scale(z*Y.d,z*Y.v);c.Y.IL(E,r);var p=new o.mR;
p.n=E;var T=p.xV();T.rect.x=Math.floor((C-T.rect.d)/2);T.rect.y=Math.floor((U-T.rect.v)/2);var k=c.F(T.rect.X()*4);
c.n0(k,4278190080);c.G$(T.channel);c.Wn(T.channel,k,0);c.Wn(T.channel,k,1);c.Wn(T.channel,k,2);var P=iu;
if(P.UF==null)P.UF=B.w("canvas");var b=P.UF,Q=b.getContext("2d");if(b.width!=C||b.height!=U||P.$e==null){b.width=C;
b.height=U;P.$e=Q.createImageData(C,U)}var K=P.$e;c.n0(K.data,4294967295);c.La(k,T.rect,K.data,new _(0,0,C,U));
Q.putImageData(K,0,0);return b.toDataURL()};function ic(L){dS.call(this,L,!1,"ICCButton",16,12,c_.Fc,!0);
this.lU.sN(1)}ic.prototype=new dS;ic.prototype.ke=function(){var L="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 H=0;H<L.length;H++)L[H]="luts/"+L[H]+".CUBE";return L};ic.prototype.ag=function(L){this.T(this.eO[L.target.u()]);
this.B(new q(B.E.L))};ic.prototype.Vd=function(){if(!this.ma)return;var L=Math.floor(1*B.M()),C=Math.floor(1*B.M()),U=[],E=[],Y=this.eO;
for(var H=0;H<Y.length;H++){var z=Y[H].Nm.v.split("\\").pop().split("/").pop();E.push(z);U.push(ic.BU(Y[H],L,C))}this.lU.OF(U,E,L,C);
this.ma=!1};ic.prototype.T=function(L){this.TG=JSON.parse(JSON.stringify(L));this.kU()};ic.BU=function(L,C,U){var E=B.w("canvas"),r="ICC / 3DL / look / cube";
E.width=C;E.height=U;var Y=E.getContext("2d"),z=Math.floor(14*B.M());Y.font=z+"px sans-serif";if(L.Nm)r=L.Nm.v.split("\\").pop().split("/").pop();
Y.fillText(r,10,z);return E.toDataURL()};ic.prototype.kU=function(){var L=Math.floor(120*B.M()),C=Math.floor(20*B.M());
this.$E.setAttribute("src",ic.BU(this.TG,L,C));B.IO(this.$E,L,C)};ic.prototype.u=function(){return JSON.parse(JSON.stringify(this.TG))};
function bc(){gG.call(this);this.s8=null;this.j=B.w("span","fitem");this.Km=new gl([14,9]);this.ww=new cU(null,0,150,"pt",1,!0,null,null,[19,2,5]);
this.pC=new by;this.xz=[this.Km,this.ww,this.pC];for(var H=0;H<this.xz.length;H++){var L=this.xz[H];
this.j.appendChild(L.j);L.parent=this;L.k(B.E.L,this.vb,this)}}bc.prototype=new gG;bc.prototype.f=function(){for(var H=0;
H<this.xz.length;H++)this.xz[H].f()};bc.prototype.hU=function(L,C){this.Km.hU(L,C)};bc.prototype.vb=function(L){var C=this.s8,U=this.Km.u(),E=U.L$;
C.strokeEnabled.v=E!=0;if(E!=0){C.strokeStyleContent.v=U.o$;U.o$.classID=gM.H0.g0[E-1]}C.strokeStyleLineWidth.v.val=this.ww.u();
if(L.target==this.pC)C=this.pC.u();this.s8=C;this.B(new q(B.E.L,!1))};bc.prototype.T=function(L,C,U){this.s8=JSON.parse(JSON.stringify(C));
var E=C.strokeEnabled.v,Y=C.strokeStyleContent.v,z=E?{L$:1+gM.H0.g0.indexOf(Y.classID),o$:Y}:{L$:0};
this.Km.T(L,z,U);this.ww.T(C.strokeStyleLineWidth.v.val);this.pC.T(C)};bc.prototype.u=function(){return JSON.parse(JSON.stringify(this.s8))};
function du(L){gG.call(this);this.j=B.w("span","fitem");this.Lo=null;if(L){this.Lo=new ip("");this.j.appendChild(this.Lo.j)}this.Dw=["front","union","difference","intersection"];
var C=[[18,0],[18,1],[18,2],[18,3]];this.VJ=[];this.$s=0;for(var H=0;H<this.Dw.length;H++){var U=new br("<img src=\""+PIMG["set/"+this.Dw[H]]+"\" class=\"autoscale gsicon\" />",!1,C[H]);
U.k("click",this.anF,this);this.j.appendChild(U.j);this.VJ.push(U)}this.VJ[0].m0()}du.prototype=new gG;
du.prototype.ac6=function(){return this.$s};du.prototype.u=function(){return this.Dw[this.$s]};du.prototype.T=function(L){this.$s=this.Dw.indexOf(L);
for(var H=0;H<this.VJ.length;H++)this.VJ[H].q7();this.VJ[this.$s].m0()};du.prototype.anF=function(L){this.T(this.Dw[this.VJ.indexOf(L.currentTarget)]);
this.B(new q(B.E.L,!1))};du.prototype.f=function(){if(this.Lo)this.Lo.T(gS.get([12,36])+":");for(var H=0;
H<this.VJ.length;H++)this.VJ[H].f()};function hq(L,C,U,E){gG.call(this);var Y=B.E3(),z="";this.j=B.w("span","fitem tinput");
if(L){this.N8=L;this.I6=B.w("label","flabel");this.j.appendChild(this.I6);this.I6.setAttribute("for",Y);
this.f()}if(E==null){this.aE=B.w("input","");this.aE.setAttribute("type","text")}else this.aE=B.w("textarea","scrollable");
this.aE.setAttribute("id",Y);if(U)z+="width:"+U+"em;";if(E){this.aE.setAttribute("rows",E)}if(z!="")this.aE.setAttribute("style",z);
this.j.appendChild(this.aE);if(C){this.Ev=B.w("span","");this.Ev.textContent=C;this.j.appendChild(this.Ev)}this.aE.addEventListener("change",this.We.bind(this),!1);
this.aE.addEventListener("input",this.a8C.bind(this),!1)}hq.prototype=new gG;hq.prototype.f=function(){if(this.N8)this.I6.textContent=gS.get(this.N8)+":"};
hq.prototype.uc=function(L){this.I6.textContent=L};hq.prototype.T=function(L){this.aE.value=L==null?"":L};
hq.prototype.u=function(){return this.aE.value};hq.prototype.Su=function(){this.aE.select();this.aE.focus()};
hq.prototype.We=function(L){this.B(new q(B.E.L,!1))};hq.prototype.a8C=function(L){this.B(new q("input",!1))};
function cG(L,C,U,E,Y,z,r){hm.call(this,L,C,U,E,Y,!0,z,null,r);B.QS(this.j,"trangeinput");this.j.appendChild(this.I6);
this.j.appendChild(this.aE);var p=B.w("span","rangecont");this.j.appendChild(p);p.appendChild(this.$0);
this.$0.setAttribute("style","width:97%;")}cG.prototype=new hm;function gw(){gG.call(this);this.x3=[16,!0,!0];
this.j=B.w("span","");this.qT=[new cU([12,24],0,255),new dh("Anti-alias"),new dh([12,25])];for(var H=0;
H<3;H++){var L=this.qT[H];L.parent=this;L.T(this.x3[H]);this.j.appendChild(L.j);L.k(B.E.L,this.vb,this)}}gw.prototype=new gG;
gw.prototype.vb=function(){for(var H=0;H<3;H++)this.x3[H]=this.qT[H].u();this.B(new q(B.E.L,!1))};gw.prototype.T=function(L){this.x3=L.slice(0);
for(var H=0;H<3;H++)this.qT[H].T(L[H])};gw.prototype.u=function(){return this.x3.slice(0)};gw.prototype.f=function(){for(var H=0;
H<3;H++)this.qT[H].f()};function fV(L,C){gG.call(this);if(C==null)C=!1;this.Sz=[];this.aic=0;this.amv=0;
this.eT=0;this.Kl=[];this.w4=[];for(var U in c.h2.type){if(U=="warpCustom"&&!C)continue;this.Kl.push(U);
this.w4.push(c.h2.type[U])}this.j=B.w("span","fitem warpbutton");this.oM=new gG;this.oM.j=B.w("div","floatcont");
if(L){this.Lo=L;this.I6=B.w("label","flabel");this.j.appendChild(this.I6)}this.e=B.w("button");this.j.appendChild(this.e);
this.e.addEventListener("click",this.AJ.bind(this),!1);this.I4=new fN(!0);this.oM.j.appendChild(this.I4.j);
this.I4.k(B.E.L,this.a69,this);this.f()}fV.prototype=new gG;fV.prototype.uc=function(L){this.I6.textContent=L};
fV.prototype.f=function(){if(this.Lo)this.I6.innerHTML=gS.get(this.Lo)+":";this.Sz=[];var L=B.w("canvas",""),C=L.getContext("2d"),U=0;
C.font=Math.floor(13*B.M())+"px sans-serif";for(var H=0;H<this.Kl.length;H++){U=Math.max(U,C.measureText(gS.get(c.h2.type[this.Kl[H]])).width)}var E=this.aic=Math.floor(50*B.M()+U),Y=this.amv=Math.floor(23*B.M());
L.width=E;L.height=Y;this.oM.j.setAttribute("style","width:"+Math.floor(8+E/B.M())+"px;");C.font=Math.floor(13*B.M())+"px sans-serif";
C.lineWidth=1;C.strokeStyle="#000000";var z=Math.floor(16*B.M()),r=new _(0,0,z,z);for(var H=0;H<this.Kl.length;
H++){var p=this.Kl[H];C.clearRect(0,0,L.width,L.height);var T=c.h2.h2(r,p,!0,.3,0,0),k=c.a.kG(r);k.Z.push("M","L","M","L");
k.c.push(0,z/2,z,z/2);k.c.push(z/2,0,z/2,z);k=c.a.xF(k);k=c.a.ub(k,z/5);c.DL.apply(T,k.c,r);c.a.J(k.c,new c0(1,0,0,1,Math.floor(8*B.M())+.5,Math.floor(3*B.M())+.5),k.c);
C.beginPath();Typr.U.pathToContext({cmds:k.Z,crds:k.c},C);C.stroke();C.fillText(gS.get(c.h2.type[p]),Math.floor(40*B.M()),Math.floor(16*B.M()));
this.Sz.push(L.toDataURL())}this.I4.OF(this.Sz,null,E,Y);this.kU()};fV.prototype.AJ=function(L){var C=this.e.getBoundingClientRect(),U=new q(B.E.l,!0);
U.data={e:B.U.Ww,f0:this.oM,x:C.left,y:C.top+C.height+4};this.B(U)};fV.prototype.a69=function(L){var C=new q(B.E.l,!0);
C.data={e:B.U.Tq,f0:this.oM};this.B(C);this.eT=L.target.u();this.kU();this.B(new q(B.E.L))};fV.prototype.kU=function(){this.I4.VS(this.eT);
this.e.innerHTML="<img src=\""+this.Sz[this.eT]+"\" class=\"gsicon\" />";var L=this.aic,C=this.amv;B.IO(this.e.firstChild,L,C)};
fV.prototype.u=function(){return this.Kl[this.eT]};fV.prototype.T=function(L){this.eT=this.Kl.indexOf(L);
this.kU()};function dF(L,C,U){gG.call(this);if(L==null)L=!1;if(C==null)C=!1;if(U==null)U=!1;this.ahu=C;
this.h2=null;this.zW=new fV([12,22],U);this.zW.parent=this;this.zW.k(B.E.L,this.yy,this);this.Fu=new bS([22,0],[[22,4,0],[22,4,1]]);
this.Fu.k(B.E.L,this.yy,this);var E=L?cU:cG;this.a0=new E([22,1],-100,100,"%");this.R$=new E("Horizontal Distortion:",-100,100,"%");
this.h7=new E("Vertical Distortion:",-100,100,"%");this.a0.parent=this.R$.parent=this.h7.parent=this;
this.a0.k(B.E.L,this.yy,this);this.R$.k(B.E.L,this.yy,this);this.h7.k(B.E.L,this.yy,this)}dF.prototype=new gG;
dF.prototype.f=function(){this.zW.f();this.Fu.f();this.a0.f();var L=this.ahu?1:100;this.R$.uc(gS.get([22,2]).substring(0,L)+":");
this.h7.uc(gS.get([22,3]).substring(0,L)+":")};dF.prototype.yy=function(){var L=this.h2,C=this.zW.u(),U=L.warpStyle.v.warpStyle;
if(C=="warpCustom")c.h2.vn(c.h2.b4(L),L);else delete L.customEnvelopeWarp;L.warpStyle.v.warpStyle=this.zW.u();
L.warpRotate.v.Ornt=["Hrzn","Vrtc"][this.Fu.u()];L.warpValue.v=this.a0.u();L.warpPerspective.v=this.R$.u();
L.warpPerspectiveOther.v=this.h7.u();if(C=="warpNone"||C=="warpCustom"){L.warpValue.v=0;L.warpPerspective.v=0;
L.warpPerspectiveOther.v=0}else if(U=="warpNone"||U=="warpCustom")L.warpValue.v=50;this.B(new q(B.E.L,!1));
this.T(L)};dF.prototype.u=function(L){return JSON.parse(JSON.stringify(this.h2))};dF.prototype.T=function(L){this.h2=JSON.parse(JSON.stringify(L));
this.zW.T(L.warpStyle.v.warpStyle);this.Fu.T(L.warpRotate.v.Ornt=="Hrzn"?0:1);this.a0.T(L.warpValue.v);
this.R$.T(L.warpPerspective.v);this.h7.T(L.warpPerspectiveOther.v);var C=L.warpStyle.v.warpStyle,U=C=="warpNone"||C=="warpCustom",E=[this.Fu,this.a0,this.R$,this.h7];
for(var H=0;H<E.length;H++)if(U)E[H].aA();else E[H].rX()};function fe(L){gG.call(this);this.j=B.w("div");
this.qr=L;this.MW=null;this.pJ=new hZ(0,0);this.X5="position:relative;overflow:hidden;";this.l4=null;
this.YG=new B.Mr(this.j);this.r9("grab");this.Vb=B.w("canvas","canv");this.j.appendChild(this.Vb);this.zS=this.Vb.getContext("2d");
this.abA=null;this.xT=null;this.jA=null;this.BT=0;this.EH=0;this.w9=0;this.a83=this.Pa.bind(this);this.aoa=null;
this.z=new ad({d:1,v:1});this.YF=null;this.G3=null;this.ajY=this.g3.bind(this);this.ajF=this.Rl.bind(this);
this.aa8=this.Zr.bind(this);this.adP=this.da.bind(this);this.a3D=0;this.RP=null;this.Nr(this.Vb);this.HE(this)}fe.prototype=new gG;
fe.prototype.fj=function(L){var C=this.l4,U=null;if(L.q(G.en)){U="grab";if(L.q(G.DM)){U="zoom-in";if(L.q(G.Lv))U="zoom-out"}}this.MW=U;
if(U)C=U;this.YG.jn(C,this.X5);if(L.q(G.DM)){var E=0;if(L.q(G.c1))E=1;if(L.q(G.t4))E=-1;if(E!=0){this.HZ(new hZ(this.Vb.width/2,this.Vb.height/2),E==1)}}};
fe.prototype.r9=function(L){this.l4=L;if(this.MW)return;this.YG.jn(L,this.X5)};fe.prototype.Nr=function(L){B.Vv(L,this.ajY);
B.zC(L);L.addEventListener("wheel",this.adP,!1)};fe.prototype.HE=function(L){L.k("viewchange",this.aoi,this)};
fe.prototype.aoi=function(L){var C=this.z.S,U=L.currentTarget.q3();this.z.S=U.S;this.z.g=U.g.clone();
if(C!=U.S)this.h_();this.P_()};fe.prototype.q3=function(){return{S:this.z.S,g:this.z.g}};fe.prototype.T=function(L,C){var U=L[0].bl;
if(this.xT!=null&&this.xT[0].bl.cg(U)){}else{this.z._u={d:U.d,v:U.v};this.z.g=new hZ(0,0);this.z.S=1}this.xT=L;
this.h_();this.pM();this.BT=0;this.EH=0;this.w9=C==null?0:C;this.Pa()};fe.prototype.da=function(L){L.preventDefault();
if(L.deltaY==0||Date.now()-this.a3D<100)return;var C=B.K7(L);C.x=B.M()*C.x;C.y=B.M()*C.y;this.a3D=Date.now();
this.HZ(C,L.deltaY<0)};fe.prototype.HZ=function(L,C){W.mZ.i2(this.z,L,C);this.Nx()};fe.prototype.acq=function(){var L=this.z,C=L._u;
this.z.S=W.mZ.W3(C.d,C.v,L.e4.d,L.e4.v);this.Nx()};fe.prototype.Nx=function(){this.h_();this.B(new q("viewchange"));
this.B(new q("zoom"))};fe.prototype.h_=function(){this.jA=[];var L=this.z.S;for(var H=0;H<this.xT.length;
H++){var C=this.xT[H],U=new Uint8Array(C.data),E;if(L>=1)E={eB:U,rect:C.bl};else E=c.amt(U,C.bl,L);this.jA.push(E)}};
fe.prototype.pM=function(){clearTimeout(this.aoa)};fe.prototype.P_=function(){if(this.xT==null||!B.DW(this.Vb))return;
var L=this.abA,C=this.Vb.width,U=this.Vb.height,h,x;if(L==null||L.width!=C||L.height!=U){L=this.abA=this.zS.createImageData(C,U);
console.log("creating image data")}var E=this.xT[this.BT],Y=this.jA[this.BT],z=this.z,r=z._u,p=z.e4,T=p.d,k=p.v,P=r.d*z.S,b=r.v*z.S,Q=Math.round((T-P)/2+z.g.x),K=Math.round((k-b)/2+z.g.y);
if(z.S<=1){x=Y.rect.clone();x.x=Q;x.y=K;P=x.d;b=x.v;h=Y.eB}else{var O=1/z.S,y=new _(Math.floor((p.x-Q)*O),Math.floor((p.y-K)*O),Math.ceil(p.d*O)+1,Math.ceil(p.v*O)+1),v=new _(0,0,y.d*z.S,y.v*z.S);
v.x=y.x*z.S+Q;v.y=y.y*z.S+K;if(z.YB==null||z.YB.length!=y.X()*4){z.YB=c.F(y.X()*4)}if(z.Gr==null||z.Gr.length!=v.X()*4){z.Gr=c.F(v.X()*4)}c.n0(z.YB,0);
c.La(Y.eB,Y.rect,z.YB,y);c.scale.su(z.YB,y.d,y.v,z.Gr,v.d,v.v,z.S);h=z.Gr;x=v}var i=new Uint8Array(L.data.buffer);
c.Wg(i,T,k,8,-Q,-K);c.Q.Kj("norm",h,x,i,p,p,1);this.zS.setTransform(1,0,0,1,0,0);this.zS.putImageData(L,0,0);
this.zS.clearRect(Q-1e3,K,1e3,b);this.zS.clearRect(Q+P,K,1e3,b);this.zS.clearRect(Q-1e3,K-1e3,P+2e3,1e3);
this.zS.clearRect(Q-1e3,K+b,P+2e3,1e3);var D=fe.YQ(z.S,"#ffffff");this.zS.putImageData(D,0,z.e4.v-D.height)};
fe.QJ={};fe.YQ=function(L,C){var U="z"+L+","+C,E=fe.QJ[U];if(E)return E;var Y=Math.round(50*B.M()),z=Math.round(18*B.M()),r=B.w("canvas"),p=r.getContext("2d");
r.width=Y;r.height=z;p.fillStyle="rgba(1,1,1,1)";p.fillRect(0,0,Y,z);p.font=Math.round(11*B.M())+"px monospace";
p.fillStyle=C;var T=L*100;if(T<100)T=T.toFixed(2);else T=Math.round(T);T=T+"%";var k=p.measureText(T).width;
p.fillText(T,(Y-k)/2,Math.round(z*.7));E=fe.QJ[U]=p.getImageData(0,0,Y,z);return E};fe.prototype.Pa=function(){var L=this.xT,C=L.length,U=this.BT,E=this.xT[U],Y=(U+1)%C;
this.P_();if(C!=1&&L[Y].bl.cg(E.bl)){var z=E.Qz?parseInt(E.Qz.split(",").pop()):30;if(z==0)z=16;if(Y==0)this.EH++;
if(this.w9==0||this.EH<this.w9)this.aoa=setTimeout(this.a83,z)}this.BT=Y};fe.prototype.AU=function(L,C){if(L<=0||C<=0)return;
var U=Math.floor(L*B.M()),E=Math.floor(C*B.M());this.z.e4=new _(0,0,U,E);this.Vb.width=U;this.Vb.height=E;
this.Vb.setAttribute("style","width:"+U/B.M()+"px; height:"+E/B.M()+"px; display:block;");this.P_()};
fe.prototype.g3=function(L){this.RP=L.target;B.z2(window,this.ajF);B.Yp(window,this.aa8);this.YF=B.K7(L,this.Vb);
this.YF.x*=B.M();this.YF.y*=B.M();this.pJ=this.YF;this.G3=this.z.g.clone();if(this.qr&&this.RP==this.Vb&&!this.MW)this.B(new q("mousedown"))};
fe.prototype.Rl=function(L){var C=this.z,U=this.MW,E=this.xT[this.BT].bl.clone();E.d*=C.S;E.v*=C.S;var Y=B.K7(L,this.Vb);
Y.x*=B.M();Y.y*=B.M();this.pJ=Y;if(this.qr&&this.RP==this.Vb&&!U)this.B(new q("mousemove"));else if((U=="grab"||U==null)&&!C.e4.zg(E)){var z=Y.x-this.YF.x,r=Y.y-this.YF.y;
C.g.x=this.G3.x+Math.round(z);C.g.y=this.G3.y+Math.round(r);this.B(new q("viewchange"))}};fe.prototype.Zr=function(L){B.dZ(window,this.ajF);
B.EW(window,this.aa8);var C=this.MW;if(L.detail>1){this.z.S=1;this.z.g.U6(0,0);this.P_()}if(this.qr&&this.RP==this.Vb&&!this.MW)this.B(new q("mouseup"));
else{if(C=="zoom-in"||C=="zoom-out")this.HZ(this.pJ,C=="zoom-in")}};fe.prototype.g6=function(){return this.z.sQ(this.pJ.x,this.pJ.y)};
function b3(){gG.call(this);this.D6=null;this.lL=null;this.Ut=null;this.$J=null;this.a9r="";this.iw=[];
this.wK=0;this.$P=[];this.q2=0;this.OY=null;var L=this.j=B.w("div",""),C=this.aax=B.w("div","form");
C.setAttribute("style","line-height:0; margin-bottom:0.5em;");L.appendChild(C);var U=this.Lo=B.w("span");
C.appendChild(U);U.setAttribute("style","font-size:1.2em; font-weight:bold; margin-right:3em;");var E=this.a5H=new dh([25,2,0]);
E.T(!0);C.appendChild(E.j);E.k(B.E.L,this.Tj,this);var Y=this.bI=new dh([25,2,1]);Y.T(!0);C.appendChild(Y.j);
Y.k(B.E.L,this.Tj,this);var z=new ip(" ");C.appendChild(z.j);var r=this.ZF=new hq([25,1,1]);C.appendChild(r.j);
r.k(B.E.L,this.Tj,this);this.kN=new eG(14);this.kN.aiY(3);C.appendChild(this.kN.j);this.kN.parent=this;
this.kN.k(B.E.L,this.ajs,this);var p=this.akN=new br([25,1,2],null,null,!0);C.appendChild(p.j);p.k("click",this.J1,this);
this.ak8=this.alP.bind(this);this.gU=B.w("div","svggallery scrollable");L.appendChild(this.gU);this.gU.addEventListener("scroll",this.adF.bind(this))}b3.prototype=new gG;
b3.prototype.hU=function(L){this.and=L};b3.prototype.f=function(){this.Lo.textContent=gS.get([25,0]);
this.kN.f();this.a5H.f();this.bI.f();this.ZF.f();this.akN.f()};b3.prototype.AU=function(L,C){C-=26;this.D6=new hZ(L,C);
this.aax.setAttribute("style","width:"+L+"px");this.gU.setAttribute("style","width:"+L+"px; height:"+C+"px");
if(B.DW(this.j))this.Tj()};b3.prototype.T=function(L){this.lL=L;this.Tj()};b3.prototype.adF=function(L){var C=this.gU;
if(C.scrollTop+C.clientHeight+10>=C.scrollHeight){this.Tj(!0)}};b3.prototype.ajs=function(L){this.Ut=null;
this.Tj()};b3.prototype.alP=function(L){if(Date.now()-this.q2<2e3)return;this.q2=Date.now();this.wK=this.$P.indexOf(L.currentTarget);
var C=this.uV(this.lL.x,this.lL.y);if(C[1]){var U=C[1].largeImageURL,E=new XMLHttpRequest;E.responseType="arraybuffer";
E.open("GET",U,!0);E.onload=this.afN.bind(this);E.send();return}this.FV(C)};b3.prototype.afN=function(L){var C=L.target.response,U=iL.lc(C),E=iL.WS(U),Y=E.ER(C),z=this.uV(this.lL.x,this.lL.y,[C,Y[0].bl.d,Y[0].bl.v]);
this.FV(z)};b3.prototype.FV=function(L){var C=L[0],U=iL.lc(C),E=iL.WS(U),Y=new b7("template.psd");E.ER(C,Y);
var z=new q("tempready",!0);z.data={_u:Y};this.B(z)};b3.prototype.J1=function(L){var C=L.target;this.iw=[];
this.Tj()};b3.prototype.a5s=function(L){var C=JSON.parse(L.target.response);this.$J=C.hits;this.Tj()};
b3.prototype.Tj=function(L){if(this.lL==null||this.D6==null||this.and==null)return;if(this.D6.x<=0)return;
var C=this.lL.x,U=this.lL.y;if(Math.min(C,U)<50)return;if(L!=!0){this.$P=[];B.CF(this.gU);this.gU.scrollTop=0}if(this.$P.length>300)return;
var E=Math.min(1,300/Math.max(C,U)),Y=this.D6.clone();Y.x-=20;var z=Math.max(1,Math.floor(Y.x/(C*E))),r=Math.max(1,Math.ceil(Y.y/(U*E)));
E=Y.x/z/C;var p=z*r;if(this.Ut==null){var T=this.and.tW.Fj();this.Ut=[];for(var k in T){var P=T[k],b=P[3];
if(!this.kN.HL(P))continue;if(P[5]==null||P[5].slice(0,2)=="gf")continue;this.Ut.push(P)}if(this.Ut.length==0)this.Ut.push(T.DejaVuSans)}var Q=this.bI.u(),K=this.ZF.u().trim();
this.ZF.Q9(Q);if(Q&&(this.$J==null||K!=this.a9r)){var h=new XMLHttpRequest,x="https://pixabay.com/api/?image_type=photo"+(K==""?"":"&q="+encodeURIComponent(K))+"&per_page=200&page=1&key=10554583-a5eacb61c2e61105fdfb6eb88";
if(K=="")x+="&safesearch=true";if(K=="")x="plugins/gallery.json";h.open("GET",x,!0);h.onload=this.a5s.bind(this);
h.onerror=function(I){console.log(I.target.response)};h.send();this.a9r=K;return}E*=(C*E-5)/(C*E);var O=this.$P.length;
for(var H=0;H<p;H++){var y=this.wK=O+H;if(this.iw[y]==null)this.iw[y]=Math.floor(Math.random()*4294967295);
var v=this.uV(Math.round(C*E),Math.round(U*E)),i=v[0];i=$.IQ(new Uint8Array(i));var D=B.w("span");D.innerHTML=i;
this.$P.push(D);this.gU.appendChild(D);D.addEventListener("click",this.ak8,!1)}};b3.prototype.uV=function(L,C,U){var E=this.bI.u(),Y=this.a5H.u(),z=E&&this.$J.length!=0?this.$J:null;
if(Y&&!E)z=null;if(Y&&E&&(this.wK&1)==0)z=null;return cb.tD(L,C,this.iw[this.wK],this.Ut,U?U:z)};function h_(){gG.call(this);
this.j=B.w("div");this.OM=null;this.agp=null;this.ZW=-1;this.ec={JPG:[{W$:new cG([12,52,0],0,100,"%",null,null,!0),h5:70},{W$:new dh("attach metadata"),h5:!1}],TIFF:[{W$:new dh("attach metadata"),h5:!1}],WEBP:[{W$:new cG([12,52,0],0,100,"%",null,null,!0),h5:70}],GIF:[{W$:new cG([12,52,0],0,100,"%",null,null,!0),h5:100}],PNG:[{W$:new cG([12,52,0],0,100,"%",null,null,!0),h5:100},{W$:new dh("don't use palettes"),h5:!1}],PDF:[{W$:new hq([12,52,1]),h5:""},{W$:new cG([12,52,0],0,100,"%",null,null,!0),h5:100},{W$:new dh("rasterize all"),h5:!1},{W$:new dh("rasterize text"),h5:!1},{W$:new dh("vectorize text"),h5:!1}],EMF:[{W$:new hq([12,52,1]),h5:""},{W$:new dh("rasterize all"),h5:!1},{W$:new dh("rasterize text"),h5:!1},{W$:new dh("vectorize text"),h5:!1}],SVG:[{W$:new dh("add raster graphics"),h5:!0},{W$:new dh("add hidden layers"),h5:!1},{W$:new dh("vectorize text"),h5:!1},{W$:new dh("rasterize text"),h5:!1},{W$:new dh("add layer names"),h5:!0},{W$:new dh("pretty-print"),h5:!0}],RAW:[{W$:new dr([12,72],["1","3","4"]),h5:2},{W$:new dr([12,34],["8 Bits","16 Bits"]),h5:0},{W$:new dr("Byte Order",["12-34","34-12"]),h5:0}],anim:[{W$:new cG("Speed",10,800,"%",null,!0,!0),h5:100},{W$:new cU("Repeat (0 = Forever)",0,10," \xD7",0,!1,!0),h5:0},{W$:new dh("reverse frames"),h5:!1},{W$:new dh("boomerang"),h5:!1}],slcs:[{W$:new dh("As Slices"),h5:!0}]};
for(var L in this.ec){var C=this.ec[L];for(var H=0;H<C.length;H++){C[H].W$.T(C[H].h5);C[H].W$.k(B.E.L,this.au,this)}}}h_.prototype=new gG;
h_.prototype.ahq=function(){this.ZW=-1};h_.prototype.f=function(){for(var L in this.ec)for(var H=0;H<this.ec[L].length;
H++)this.ec[L][H].W$.f()};h_.prototype.au=function(){this.Tj();this.B(new q(B.E.L,!1))};h_.prototype.Tj=function(){var L=this.OM,C=L[0],U=L[1],E=L[2],Y=L[3],z=this.ec[C];
if(z==null)z=[];else z=z.slice(0);if(U)z=z.concat(this.ec.anim);if(["GIF","PNG","JPG"].indexOf(C)!=-1&&E)z=z.concat(this.ec.slcs);
if(C+" "+U+" "+Y!=this.ZW){this.ZW=C+" "+U+" "+Y;B.CF(this.j);for(var H=0;H<z.length;H++){if(C=="PDF"&&Y&&H==0)continue;
this.j.appendChild(z[H].W$.j);B.E4(this.j)}}var r=this.agp=[];for(var H=0;H<z.length;H++)r.push(z[H].W$.u())};
h_.prototype.WE=function(L,C,U,E){this.OM=[L,C,U,E];this.Tj()};h_.prototype.u=function(){return this.agp.slice(0)};
function b6(){gG.call(this);this.j=B.w("span","fitem");this.q$=!1;this.Fs=new br("No",!1,"Cancel");this.Mo=new br("Yes",!1,"Confirm");
this.j.appendChild(this.Fs.j);this.j.appendChild(this.Mo.j);this.Fs.k("click",this.zp,this);this.Mo.k("click",this.zp,this);
this.f()}b6.prototype=new gG;b6.prototype.f=function(){this.Fs.uc(B.lp("cross",null,"autoscale"));this.Mo.uc(B.lp("checkmark",null,"autoscale"))};
b6.prototype.zp=function(L){this.q$=L.target==this.Mo;this.B(new UIEvent("click"))};b6.prototype.u=function(){return this.q$};
function j(L){gG.call(this);this.oP=L;this.j=B.w("div","");this.vQ=[];this.agR=[]}j.prototype=new gG;
j.prototype.C6=function(L){};j.prototype.ou=function(){return!1};j.prototype.AU=function(L,C){};j.prototype.hU=function(L,C){};
j.prototype.Uz=function(L){};j.prototype.T=function(L,C,U,E,Y,z){var r=[],p=this.vQ,T=0,k=hi.vJ["s"+this.oP];
k?k(L,r,z):this.kO(L,r,z);for(var H=0;H<p.length;H++)if(!(p[H]instanceof ip))p[H].T(r[T++])};j.prototype.u=function(){var L=hi.Q4(this.oP),C=[],U=this.vQ,E=0;
for(var H=0;H<U.length;H++)if(!(U[H]instanceof ip))C[E++]=U[H].u();var Y=hi.vJ["g"+this.oP];Y?Y(L,C):this.zU(L,C);
return L};j.prototype.fj=function(L){};j.prototype.yy=function(L){var C=this.agR;for(var H=0;H<C.length;
H+=2){var U=this.vQ[C[H]],E=this.vQ[C[H+1]],Y=U.u(),z=E.u();if(L.target==U)E.T(Math.max(Y,z));else U.T(Math.min(Y,z))}this.B(new q(B.E.L))};
j.prototype.f=function(){for(var H=0;H<this.vQ.length;H++)this.vQ[H].f()};j.prototype.Rn=function(L){B.QS(this.j,"form");
var C=this.vQ;for(var H=0;H<C.length;H++){var U=C[H];U.parent=this;U.k(B.E.L,this.yy,this);this.j.appendChild(U.j);
if(U instanceof dh&&C[H+1]instanceof di)continue;if(L&&L.indexOf(H)!=-1)B.kL(this.j);else B.E4(this.j)}};
j.prototype.lW=function(){return!1};j.prototype.zI=function(L,C,U,E,Y){};j.prototype.Yh=function(L,C,U,E,Y){};
j.prototype.bM=function(L,C,U,E,Y){};j.prototype.zU=function(L,C){};j.prototype.kO=function(L,C){};j.Bokh=function(){j.call(this,"Bokh");
this.vQ=[new bS("Depth Map",["A","b"]),new cG("Focal Distance",0,255),new bS([12,76,1],"Triangle (3),Square (4),Pentagon (5),Hexagon (6),Heptagon (7),Octagon (8)".split(",")),new cG([12,56],0,100),new cG([12,15],0,360),new cG([12,2],0,100),new cG([4,13],0,255),new cG([24,6],0,100),new dr([12,58],[[12,59,0],[12,59,1]]),new dh([12,60])];
this.Rn([4,6])};j.Bokh.prototype=new j;j.Bokh.prototype.kO=function(L,C,U){var E=[[22,5,0],[6,5,3],[6,2]],Y=L.BkDi.v.BtDi,z=L.BkDc,r=0;
if(Y=="BeIn")r=0;else if(Y=="BeIt"&&z.v.BtDc=="BeCt")r=1;else if(Y=="BeIt"&&z.v.BtDc=="BeCm")r=2;else r=3+z.v;
for(var H=0;H<U[1].length;H++)E.push(U[1][H].name);this.vQ[0].SU(E,[3]);C[0]=r;C[1]=L.BkDp.v;C[2]=parseInt(L.BkIs.v.BtIs.slice(3))-3;
C[3]=L.BkIb.v;C[4]=L.BkIr.v;C[5]=L.BkSb.v;C[6]=L.BkSt.v;C[7]=L.BkNa.v;C[8]=L.BkNt.v.BtNt=="BeNu"?0:1;
C[9]=L.BkNm.v};j.Bokh.prototype.zU=function(L,C){var U;if(C[0]==0){U="BeIn";delete L.BkDc}else if(C[0]<3){U="BeIt";
L.BkDc={t:"enum",v:{BtDc:["BeCt","BeCm"][C[0]-1]}}}else{U="BeIa";L.BkDc={t:"long",v:C[0]-3}}L.BkDi.v.BtDi=U;
L.BkDp.v=C[1];L.BkIs.v.BtIs="BeS"+(3+C[2]);L.BkIb.v=C[3];L.BkIr.v=C[4];L.BkSb.v=C[5];L.BkSt.v=C[6];L.BkNa.v=C[7];
L.BkNt.v.BtNt=["BeNu","BeNg"][C[8]];L.BkNm.v=C[9]};j.oilPaint=function(){j.call(this,"oilPaint");this.vQ=[new cG([12,56],.1,10,"px",!0),new cG("Cleanliness",0,10,"px",!0),new cG([12,38],.1,10,null,!0),new cG("Bristle Detail",0,10,null,!0),new dh("Lighting"),new cG("Shine",0,10,null,!0),new em([12,15])];
this.Rn()};j.oilPaint.prototype=new j;j.oilPaint.prototype.kO=function(L,C){var U="stylization cleanliness brushScale microBrush lightingOn specularity".split(" ");
for(var H=0;H<U.length;H++)C[H]=L[U[H]].v;C[6]=L.LghD.v};j.oilPaint.prototype.zU=function(L,C){var U="stylization cleanliness brushScale microBrush lightingOn specularity".split(" ");
for(var H=0;H<U.length;H++)L[U[H]].v=C[H];L.LghD.v=C[6].f2};j.TrcC=function(){j.call(this,"TrcC");this.vQ=[new cG("Level",0,255),new dr([12,69],[[19,4,1],[19,4,0]])];
this.Rn()};j.TrcC.prototype=new j;j.TrcC.prototype.kO=function(L,C){C[0]=L.Lvl.v;C[1]=["Lwr","Upr"].indexOf(L.Edg.v.CntE)};
j.TrcC.prototype.zU=function(L,C){L.Lvl.v=C[0];L.Edg.v.CntE=["Lwr","Upr"][C[1]]};j["Dfs "]=function(){j.call(this,"Dfs ");
this.vQ=[new dr([12,36],[[15,10,0],[15,10,6],[15,10,11],"Anisotropic"])];this.Rn()};j["Dfs "].prototype=new j;
j["Dfs "].prototype.kO=function(L,C){C[0]=["Nrml","DrkO","LghO","anisotropic"].indexOf(L.Md.v.DfsM)};
j["Dfs "].prototype.zU=function(L,C){L.Md.v.DfsM=["Nrml","DrkO","LghO","anisotropic"][C[0]]};j.Embs=function(){j.call(this,"Embs");
this.vQ=[new em([12,15]),new cG([12,42],1,100,"px"),new cG([12,57],1,500,"%")];this.Rn()};j.Embs.prototype=new j;
j.Embs.prototype.kO=function(L,C){C[0]=L.Angl.v;C[1]=L.Hght.v;C[2]=L.Amnt.v};j.Embs.prototype.zU=function(L,C){L.Angl.v=C[0].f2;
L.Hght.v=C[1];L.Amnt.v=C[2]};j["Wnd "]=function(){j.call(this,"Wnd ");this.vQ=[new dr([12,32],["Wind","Blast","Stagger"]),new dr([12,33],["From the Right","From the Left"])];
this.Rn()};j["Wnd "].prototype=new j;j["Wnd "].prototype.kO=function(L,C){C[0]=["Wnd","Blst","Stgr"].indexOf(L.WndM.v.WndM);
C[1]=["Left","Rght"].indexOf(L.Drct.v.Drct)};j["Wnd "].prototype.zU=function(L,C){L.WndM.v.WndM=["Wnd","Blst","Stgr"][C[0]];
L.Drct.v.Drct=["Left","Rght"][C[1]]};j.lightFilterGradient=function(){j.call(this,"lightFilterGradient");
this.vQ=[new cG([24,3,1],0,100,"px",1,!0),new cG([12,38],0,200,"%"),new dh([4,11]),new cG("High",0,100,"%"),new cG("Medium",0,100,"%"),new cG("Low",0,100,"%")];
this.Rn()};j.lightFilterGradient.prototype=new j;j.lightFilterGradient.prototype.kO=function(L,C){C[0]=L.blur.v;
C[1]=L.textureScale.v*100;C[2]=L.Scl.v==-1;var U=L.Dtl.v;C[3]=U[0].v*100;C[4]=U[1].v*100;C[5]=U[2].v*100};
j.lightFilterGradient.prototype.zU=function(L,C){L.blur.v=C[0];L.textureScale.v=C[1]/100;L.Scl.v=C[2]?-1:1;
var U=L.Dtl.v;U[0].v=C[3]/100;U[1].v=C[4]/100;U[2].v=C[5]/100};j.LnsF=function(){j.call(this,"LnsF");
this.vQ=[new cG([12,2],10,300,"%"),new dr([12,44],["Lens 1","Lens 2","Lens 3","Lens 4"]),new cG("Position X",0,100,"%"),new cG("Position Y",0,100,"%")];
this.Rn()};j.LnsF.prototype=new j;j.LnsF.prototype.kO=function(L,C){C[0]=L.Brgh.v;C[1]=["Zm","Nkn","Nkn1","PnVs"].indexOf(L.Lns.v.Lns);
var U=L.FlrC.v;C[2]=Math.round(U.Hrzn.v*100);C[3]=Math.round(U.Vrtc.v*100)};j.LnsF.prototype.zU=function(L,C){L.Brgh.v=C[0];
L.Lns.v.Lns=["Zm","Nkn","Nkn1","PnVs"][C[1]];var U=L.FlrC.v;U.Hrzn.v=C[2]/100;U.Vrtc.v=C[3]/100};j.LnsF.prototype.lW=function(){return!0};
j.LnsF.prototype.zI=function(L,C,U,E,Y){this.td=!0;this.er(L,Y)};j.LnsF.prototype.Yh=function(L,C,U,E,Y){if(!this.td)return;
this.er(L,Y)};j.LnsF.prototype.bM=function(L,C,U,E,Y){this.td=!1};j.LnsF.prototype.er=function(L,C){var U=L.z.sQ(C.x,C.y);
function E(Y,z){return Math.round(Math.max(0,Math.min(100,100*Y/z)))}this.vQ[2].T(E(U.x,L.d));this.vQ[3].T(E(U.y,L.v));
this.yy()};j.blendOptions=function(){j.call(this,"blendOptions");this.vQ.push(new bS([12,19,0],gz.w4,!1,gz.RY));
this.vQ.push(new cG([12,0],0,100,"%"));this.Rn()};j.blendOptions.prototype=new j;j.blendOptions.prototype.kO=function(L,C){C[0]=gz.lV.indexOf(L.Md.v.BlnM);
C[1]=L.Opct.v.val};j.blendOptions.prototype.zU=function(L,C){L.Md.v.BlnM=gz.lV[C[0]];L.Opct.v.val=C[1]};
j.LnCr=function(){j.call(this,"LnCr");this.vQ=[new cG([12,57],-100,100),new cG([12,38],10,150,"%")];
this.Rn()};j.LnCr.prototype=new j;j.LnCr.prototype.kO=function(L,C){C[0]=L.LnIa.v;C[1]=L.LnSi.v};j.LnCr.prototype.zU=function(L,C){L.LnIa.v=C[0];
L.LnSi.v=C[1]};j.adaptCorrect=function(){j.call(this,"adaptCorrect");var L=dC;this.vQ=[new ip([19,6,0]),new L([12,57],0,100,"%"),new L("Tone",0,100,"%"),new L([12,56],0,200,"px"),new ip([19,6,2]),new L([12,57],0,100,"%"),new L("Tone",0,100,"%"),new L([12,56],0,200,"px"),new ip([3]),new L([13,0],-100,100)];
this.Rn([3,7])};j.adaptCorrect.prototype=new j;j.adaptCorrect.prototype.kO=function(L,C){var U=L.sdwM.v;
C[0]=U.Amnt.v.val;C[1]=U.Wdth.v.val;C[2]=U.Rds.v;var U=L.hglM.v;C[3]=U.Amnt.v.val;C[4]=U.Wdth.v.val;
C[5]=U.Rds.v;C[6]=L.ClrC.v};j.adaptCorrect.prototype.zU=function(L,C){var U=L.sdwM.v;U.Amnt.v.val=C[0];
U.Wdth.v.val=C[1];U.Rds.v=C[2];var U=L.hglM.v;U.Amnt.v.val=C[3];U.Wdth.v.val=C[4];U.Rds.v=C[5];L.ClrC.v=C[6]};
j.boxblur=function(){j.call(this,"boxblur");this.vQ=[new cG([12,56],1,200," px")];this.Rn()};j.boxblur.prototype=new j;
j.boxblur.prototype.kO=function(L,C){C[0]=L.Rds.v.val};j.boxblur.prototype.zU=function(L,C){L.Rds.v.val=C[0]};
j.GsnB=function(){j.call(this,"GsnB");this.vQ=[new cG([12,56],.1,400,"px",1,!0)];this.Rn()};j.GsnB.prototype=new j;
j.MtnB=function(){j.call(this,"MtnB");this.vQ=[new em([12,15]),new cG([12,28],1,100," px")];this.Rn()};
j.MtnB.prototype=new j;j.RdlB=function(){j.call(this,"RdlB");this.vQ=[new cG([12,57],1,100),new dr([12,36],["Spin","Zoom"]),new dC("Off X",0,1,null,2),new dC("Off Y",0,1,null,2)];
this.Rn()};j.RdlB.prototype=new j;j.RdlB.prototype.kO=function(L,C){C[0]=L.Amnt.v;C[1]=["Spn","Zm"].indexOf(L.BlrM.v.BlrM);
C[2]=L.Cntr.v.Hrzn.v;C[3]=L.Cntr.v.Vrtc.v};j.RdlB.prototype.zU=function(L,C){L.Amnt.v=C[0];L.BlrM.v.BlrM=["Spn","Zm"][C[1]];
L.Cntr.v.Hrzn.v=C[2];L.Cntr.v.Vrtc.v=C[3]};j.Dspl=function(){j.call(this,"Dspl");this.vQ=[new bS([6,36,3],["a","b"]),new cG([22,4,0],-100,100,"px"),new cG([22,4,1],-100,100,"px"),new bS([24,18,0],[[24,18,3],[24,18,2]])];
this.Rn()};j.Dspl.prototype=new j;j.Dspl.prototype.kO=function(L,C,U){this.a6t=[];this.As=[];var E=-1,Y=U?U[0]:null;
if(Y==null)Y=this.a34;else this.a34=Y;if(Y)for(var H=0;H<Y.length;H++){var z=Y[H];this.a6t.push(z.GQ.trim());
this.As.push(z.Ea);if(z.Ea==L.DspF.v.pth)E=H}this.vQ[0].SU(this.a6t);C[0]=E==-1?0:E;C[1]=L.HrzS.v;C[2]=L.VrtS.v;
C[3]=["WrpA","RptE"].indexOf(L.UndA.v.UndA)};j.Dspl.prototype.zU=function(L,C){if(this.As.length==0)return;
L.DspF.v.pth=this.As[C[0]];L.HrzS.v=C[1];L.VrtS.v=C[2];L.UndA.v.UndA=["WrpA","RptE"][C[3]]};j.Pnch=function(){j.call(this,"Pnch");
this.vQ=[new cG([12,57],-100,100,"%")];this.Rn()};j.Pnch.prototype=new j;j["Plr "]=function(){j.call(this,"Plr ");
this.vQ=[new dr(null,["Rect to Polar","Polar to Rect"])];this.Rn()};j["Plr "].prototype=new j;j.Rple=function(){j.call(this,"Rple");
this.vQ=[new cG([12,57],-999,999),new bS([12,14,0],[[19,8,0],[19,8,1],[19,8,2]])];this.Rn()};j.Rple.prototype=new j;
j["Shr "]=function(){j.call(this,"Shr ");this.vQ=[new ig(!0,!0),new bS([24,18,0],[[24,18,3],[24,18,2]])];
this.Rn()};j["Shr "].prototype=new j;j["Shr "].prototype.kO=function(L,C){var U=new c0(0,255/127,255/127,0,-2,128),E=JSON.parse(JSON.stringify(L.ShrP.v));
c.Nn.J(E,U);C[0]=E;C[1]=["WrpA","RptE"].indexOf(L.UndA.v.UndA)};j["Shr "].prototype.zU=function(L,C){var U=new c0(0,255/127,255/127,0,-2,128);
U.G$();c.Nn.J(C[0],U);L.ShrP.v=C[0];L.ShrE.v=C[0].length-1;L.UndA.v.UndA=["WrpA","RptE"][C[1]]};j.Sphr=function(){j.call(this,"Sphr");
this.vQ=[new cG([12,57],-100,100),new bS([12,36],["Normal",[22,4,0],[22,4,1]])];this.Rn()};j.Sphr.prototype=new j;
j.Sphr.prototype.kO=function(L,C){C[0]=L.Amnt.v;C[1]=["Nrml","HrzO","VrtO"].indexOf(L.SphM.v.SphM)};
j.Sphr.prototype.zU=function(L,C){L.Amnt.v=C[0];L.SphM.v.SphM=["Nrml","HrzO","VrtO"][C[1]]};j.Twrl=function(){j.call(this,"Twrl");
this.vQ=[new cG([12,15],-999,999)];this.Rn()};j.Twrl.prototype=new j;j.Wave=function(){j.call(this,"Wave");
this.agR=[1,2,3,4];this.vQ=[new cG("Number of Generators",1,100),new dC("Min Length",1,999),new dC("Max Length",1,999),new dC("Min Ampl.",1,999),new dC("Max Ampl.",1,999),new dC("Scale X",1,100,"%"),new dC("Scale Y",1,100,"%"),new dr([12,44],["Sine","Triangle",[12,93,3]]),new bS([24,18,0],[[24,18,3],[24,18,2]]),new hq("Randomizer Seed")];
this.Rn()};j.Wave.prototype=new j;j.Wave.prototype.kO=function(L,C){C[0]=L.NmbG.v;C[1]=L.WLMn.v;C[2]=L.WLMx.v;
C[3]=L.AmMn.v;C[4]=L.AmMx.v;C[5]=L.SclH.v;C[6]=L.SclV.v;C[7]=["WvSn","WvTr","WvSq"].indexOf(L.Wvtp.v.Wvtp);
C[8]=["WrpA","RptE"].indexOf(L.UndA.v.UndA);C[9]=L.RndS.v};j.Wave.prototype.zU=function(L,C){L.NmbG.v=C[0];
L.WLMn.v=C[1];L.WLMx.v=C[2];L.AmMn.v=C[3];L.AmMx.v=C[4];L.SclH.v=C[5];L.SclV.v=C[6];L.Wvtp.v.Wvtp=["WvSn","WvTr","WvSq"][C[7]];
L.UndA.v.UndA=["WrpA","RptE"][C[8]];var U=parseInt(C[9]);if(isNaN(U))U=248325464;U=Math.max(0,Math.min(268435455,U));
L.RndS.v=U;this.vQ[9].T(U)};j.surfaceBlur=function(){j.call(this,"surfaceBlur");this.vQ=[new cG([12,56],1,200," px"),new cG([4,13],1,255," px")];
this.Rn()};j.surfaceBlur.prototype=new j;j.surfaceBlur.prototype.kO=function(L,C){C[0]=L.Rds.v.val;C[1]=L.Thsh.v};
j.surfaceBlur.prototype.zU=function(L,C){L.Rds.v.val=C[0];L.Thsh.v=C[1]};j.AdNs=function(){j.call(this,"AdNs");
this.vQ=[new cG([12,57],0,200," %"),new bS([12,58],[[12,59,1],[12,59,0]]),new dh([12,60])];this.Rn()};
j.AdNs.prototype=new j;j.DstS=function(){j.call(this,"DstS");this.vQ=[new cG([12,56],1,200," px"),new cG([4,13],1,255," px")];
this.Rn()};j.DstS.prototype=new j;j["Mdn "]=function(){j.call(this,"Mdn ");this.vQ=[new cG([12,56],1,200," px")];
this.Rn()};j["Mdn "].prototype=new j;j["Mdn "].prototype.kO=function(L,C){C[0]=L.Rds.v.val};j["Mdn "].prototype.zU=function(L,C){L.Rds.v.val=C[0]};
j.ClrH=function(){j.call(this,"ClrH");this.vQ=[new cG([12,56],4,100," px")];for(var H=1;H<4;H++)this.vQ.push(new cG("Angle "+H,0,90," \xB0"));
this.Rn()};j.ClrH.prototype=new j;j.ClrH.prototype.kO=function(L,C){C[0]=L.Rds.v;for(var H=1;H<4;H++)C[H]=L["Ang"+H].v};
j.ClrH.prototype.zU=function(L,C){L.Rds.v=C[0];for(var H=1;H<4;H++)L["Ang"+H].v=C[H]};j.ClrH.prototype.f=function(){var L=this.vQ;
L[0].f();for(var H=1;H<4;H++)L[H].uc(gS.get([12,15])+" "+H)};j.Crst=function(){j.call(this,"Crst");this.vQ=[new cG([12,61],3,100," px")];
this.Rn()};j.Crst.prototype=new j;j.Crst.prototype.kO=function(L,C){C[0]=L.ClSz.v};j.Crst.prototype.zU=function(L,C){L.ClSz.v=C[0]};
j.Mztn=function(){j.call(this,"Mztn");this.vQ.push(new bS([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.As="FnDt MdmD GrnD CrsD ShrL MdmL LngL ShSt MdmS LngS".split(" ");this.Rn()};j.Mztn.prototype=new j;
j.Mztn.prototype.kO=function(L,C){C[0]=this.As.indexOf(L.MztT.v.MztT)};j.Mztn.prototype.zU=function(L,C){L.MztT.v.MztT=this.As[C[0]]};
j["Msc "]=function(){j.call(this,"Msc ");this.vQ=[new cG([12,61],2,200," px")];this.Rn()};j["Msc "].prototype=new j;
j["Msc "].prototype.kO=function(L,C){C[0]=L.ClSz.v.val};j["Msc "].prototype.zU=function(L,C){L.ClSz.v.val=C[0]};
j.Pntl=function(){j.call(this,"Pntl");this.vQ=[new cG([12,61],3,100," px")];this.Rn()};j.Pntl.prototype=new j;
j.Pntl.prototype.kO=function(L,C){C[0]=L.ClSz.v};j.Pntl.prototype.zU=function(L,C){L.ClSz.v=C[0]};j.smartSharpen=function(){j.call(this,"smartSharpen");
this.vQ=[new cG([12,57],1,200,"%"),new cG([12,56],0,200,"px",1,!0)];this.Rn()};j.smartSharpen.prototype=new j;
j.smartSharpen.prototype.kO=function(L,C){C[0]=L.Amnt.v.val;C[1]=L.Rds.v.val};j.smartSharpen.prototype.zU=function(L,C){L.Amnt.v.val=C[0];
L.Rds.v.val=C[1]};j.UnsM=function(){j.call(this,"UnsM");this.vQ=[new cG([12,57],1,200," %"),new cG([12,56],.1,400,"px",1,!0),new cG([4,13],0,255," ")];
this.Rn()};j.UnsM.prototype=new j;j.HghP=function(){j.call(this,"HghP");this.vQ=[new cG([12,56],.1,400,"px",1,!0)];
this.Rn()};j.HghP.prototype=new j;j["Mxm "]=function(){j.call(this,"Mxm ");this.vQ=[new cG([12,56],1,200," px")];
this.Rn()};j["Mxm "].prototype=new j;j["Mnm "]=function(){j.call(this,"Mnm ");this.vQ=[new cG([12,56],1,200," px")];
this.Rn()};j["Mnm "].prototype=new j;j.Ofst=function(){j.call(this,"Ofst");this.vQ=[new cG([22,4,0],-1024,1024," px"),new cG([22,4,1],-1024,1024," px"),new bS([24,18,0],[[24,18,2],[24,18,1],[24,18,3]])];
this.Rn()};j.Ofst.prototype=new j;j.Rept=function(){j.call(this,"Rept");this.vQ=[new dC([12,38],1,300," %"),new dC("Row Shift",-50,50," %"),new dC("Space X",-99,200," %"),new dC("Space Y",-99,200," %"),new dh([4,16,2]),new em([12,15])];
this.Rn()};j.Rept.prototype=new j;j.Rept.prototype.kO=function(L,C){C[0]=L.Scl.v.val;C[1]=L.Rsft.v.val;
C[2]=L.SpcX.v.val;C[3]=L.SpcY.v.val;C[4]=L.SpcC.v;C[5]=L.Angl.v};j.Rept.prototype.zU=function(L,C){L.Scl.v.val=C[0];
L.Rsft.v.val=C[1];L.SpcX.v.val=C[2];L.SpcY.v.val=C[3];L.SpcC.v=C[4];L.Angl.v=C[5].f2;return L};j.Ctoa=function(){j.call(this,"Ctoa");
this.vQ=[new ip([13,0]),new di(!0),new cG(["VAR0 VAR1","Transparency",[4,13]],0,100," %"),new cG(["VAR0 VAR1",[12,0],[4,13]],0,100," %")];
this.Rn()};j.Ctoa.prototype=new j;j.Ctoa.prototype.kO=function(L,C){C[0]=L.Clr.v;C[1]=L.Trsp.v.val;C[2]=L.Opct.v.val};
j.Ctoa.prototype.zU=function(L,C){L.Clr.v=C[0];L.Trsp.v.val=C[1];L.Opct.v.val=C[2]};j.LqFy=function(){j.call(this,"LqFy");
this.qp=!1;this.aN=null;this.amU=null;this.m=0;this.Wk={ss:[[{m:{id:0,name:[24,1,0,1,0],yH:"liq/smudge"}}],[{m:{id:1,name:[24,1,0,1,1],yH:"liq/reconstruct"}}],[{m:{id:2,name:[24,1,0,1,2],yH:"liq/smooth"}}],[{m:{id:3,name:[24,1,0,1,3],yH:"liq/twirl"}}],[{m:{id:4,name:[24,1,0,1,4],yH:"liq/shrink"}}],[{m:{id:5,name:[24,1,0,1,5],yH:"liq/blow"}}],[{m:{id:6,name:[24,1,0,1,6],yH:"liq/pleft"}}]],keys:[]};
this.$u=new cq(this.Wk,!1);this.$u.jK(0);this.$u.k(B.E.l,this.a3c,this);this.nA=fW.qR();this.kP=null;
this.Et=[];this.Ty=-1;this.oo=null;this.aoj=null;this.tc=null;this.zP=null;this.d7=null;var L=B.w("div","flexrow");
this.Y8=L;this.j.appendChild(L);L.appendChild(this.$u.j);this.view=new fe(!0);this.view.AU(100,100);
this.view.k("mousedown",this.g3,this);this.view.k("mousemove",this.Rl,this);this.view.k("mouseup",this.Zr,this);
this.view.k("zoom",this.cl,this);L.appendChild(this.view.j);var C=B.w("div","form");L.appendChild(C);
this.He=C;C.style.width="230px";this.Vr=[new cG([12,14,0],0,1e3,null,!1,!0),new cG([12,74],0,100,null,!1,!1),new cG([12,84],0,100,null,!1,!1),new dh([12,46]),new cG([12,0],0,100,null,!1,!1)];
var U=this.nA.Brsh.v;U.Dmtr.v.val=100;var E=[100,50,100,!1,100];for(var H=0;H<this.Vr.length;H++){var Y=this.Vr[H];
Y.T(E[H]);Y.k(B.E.L,this.adA,this);C.appendChild(Y.j)}var z=new br("Reset",!0,null,!0);z.k("click",this.J1,this);
C.appendChild(z.j);this.Sf=new gG;this.Sf.j=B.w("div","floatcont");this.pt=new br("Menu",!1,null,!0);
this.pt.k("click",this.alR,this);var r=this.pt.j;r.setAttribute("style","position:absolute; right:13px; top:47px")};
j.LqFy.prototype=new j;j.LqFy.prototype.ou=function(){return!0};j.LqFy.prototype.C6=function(L){this.He.appendChild(L)};
j.LqFy.prototype.alR=function(L){var C=this.pt.j.getBoundingClientRect();this.Sf.j.appendChild(this.He);
var U=new q(B.E.l,!0);U.data={e:B.U.Ww,f0:this.Sf,x:C.right+C.width-290,y:C.top+C.height};this.B(U)};
j.LqFy.prototype.fj=function(L){this.qp=L.q(G.Lv);var C=W.dl.bz(this.nA,L);if(C!=null){this.nA=C;this.cl();
this.Vr[0].T(C.Brsh.v.Dmtr.v.val)}else if(L.q(G.DM)&&L.q(G.fQ)){var U=this.Et;if(L.q(G.PS)){if(this.Ty+1<U.length)this.Ty++}else if(this.Ty>0)this.Ty--;
this.kP.map=U[this.Ty].slice(0);this.L9(null)}else this.view.fj(L)};j.LqFy.prototype.a3c=function(L){if(L.data.e==B.U.ID){this.m=L.data.m;
this.$u.jK(this.m)}};j.LqFy.prototype.adA=function(L){var C=L.currentTarget,H=this.Vr.indexOf(C),U=this.nA.Brsh.v;
if(H==0){U.Dmtr.v.val=C.u();this.cl()}if(H>2)this.L9(null)};j.LqFy.prototype.A3=function(){var L=this.Et;
this.Ty++;L[this.Ty]=this.kP.map.slice(0);while(L.length>this.Ty+1)L.pop();while(L.length>50){L=L.slice(1);
this.Ty--}};j.LqFy.prototype.g3=function(L){this.$X();this.aN=this.view.g6();this.amU=new hZ(0,0);this.k(B.E.mp,this.d1,this)};
j.LqFy.prototype.Rl=function(L){var C=this.view.g6(),U=new hZ(C.x-this.aN.x,C.y-this.aN.y);if(this.m==0||this.m==6)this.kj(U);
this.aN=C};j.LqFy.prototype.Zr=function(L){this.A3();this.$X()};j.LqFy.prototype.$X=function(){if(this.T7(B.E.mp,this.d1))this.removeEventListener(B.E.mp,this.d1,this)};
j.LqFy.prototype.d1=function(L){if(this.m!=0&&this.m!=6)this.kj(new hZ(0,0))};j.LqFy.prototype.kj=function(L){var C=this.kP,U=C.aU/this.oo.d,E=this.aN,Y=this.nA.Brsh.v,z=Y.Dmtr.v.val,r=Date.now(),p=C.aU,T=C.fg,k=Math.sqrt(L.x*L.x+L.y*L.y),P=Math.max(1,Math.ceil(k/2)),b=L.x/P,Q=L.y/P,K=E.clone(),h=this.m,x=this.Vr[1].u()/100,O=this.Vr[2].u()/100,y=[.005,.015,0,0,.2,.2,.01,.01,.05,.35,.1,.1,.005,.015],v=y[h*2],i=y[h*2+1],D=(1-x)*v+x*i,I=z*U/2;
for(var H=0;H<P;H++){var m=[];K.x+=b;K.y+=Q;c.Ki.abb(C.map,p,T,h,K.x*U,K.y*U,I,x,O,b*U,Q*U,m,this.qp);
c.Ki.ani(p,T,C.map,m,2*D*O)}var f=new _(0,0,p,T),A=new _(E.x*U,E.y*U,0,0);A.WW(z*U*.5,z*U*.5);var d=A.clone();
d.offset(L.x*U,L.y*U);A=A.EU(d);var g=new _(A.x/U,A.y/U,A.d/U,A.v/U);g=c.a.TT(g).eR(this.oo);this.L9(g)};
j.LqFy.prototype.cl=function(){var L=iR.J$(this.nA,null,this.view.q3().S);this.view.r9(L)};j.LqFy.prototype.T=function(L,C,U,E,Y){U=U.clone();
if(C==null)return;if(!E.cg(U)){var z=U.EU(E),r=c.F(z.X()*4);c.La(C,U,r,z);C=r;U=z}U.x=U.y=0;this.tc=C;
this.aoj=Y;this.d7=C.slice(0);this.zP=C.slice(0);this.oo=U;this.kP=gy.Vu(new Uint8Array(L.LqMe.v).buffer);
var p=U.d,T=U.v;if(this.kP.aU/p<.22){this.kP={aU:Math.floor(p/4),fg:Math.floor(T/4)};this.kP.map=new Float32Array(this.kP.aU*this.kP.fg*2)}this.Et=[];
this.Ty=-1;this.A3();this.L9(null);this.cl()};j.LqFy.prototype.u=function(){this.$X();var L=hi.Q4("LqFy"),C=new Uint8Array(gy.cd(this.kP)),U=[];
for(var H=0;H<C.length;H++)U.push(C[H]);L.LqMe.v=U;return L};j.LqFy.prototype.AU=function(L,C){this.$u.AU(L,C);
var U=this.pt.j,E=this.He;this.Y8.appendChild(E);this.Y8.appendChild(U);if(L>450){E.style.marginLeft="1em";
this.Y8.removeChild(U);this.view.AU(L-238-45,C)}else{E.style.marginLeft="";this.Y8.removeChild(E);this.view.AU(L-40,C)}};
j.LqFy.prototype.f=function(){this.$u.f();for(var H=0;H<this.Vr.length;H++)this.Vr[H].f()};j.LqFy.prototype.J1=function(){this.$X();
this.kP.map.fill(0);this.A3();this.L9(null)};j.LqFy.prototype.L9=function(L){var C=this.oo,U=this.tc,E=this.d7,Y=this.kP;
c.Ki.wR(U,this.zP,C.d,C.v,L,Y.map,Y.aU,Y.fg,0);if(this.Vr[3].gF()){c.La(this.aoj,C,E,C,L?L:C);c.Q.Kj("norm",this.zP,C,E,C,L?L:C,this.Vr[4].u()/100)}else c.hL(this.zP,E);
this.view.T([{bl:C,data:E.buffer}])};j.GEfc=function(){j.call(this,"GEfc");this.z6=0;this.wB=0;this.tc=null;
this.d7=null;this.oo=null;this.OY=null;this.Pp=null;this.ey=0;var L=B.w("div","flexrow");this.Y8=L;this.j.appendChild(L);
this.view=new fe;this.view.AU(100,100);L.appendChild(this.view.j);this.SN="";this.OR=270;var C=this.akq=B.w("div","form scrollable");
L.appendChild(C);C.setAttribute("style","width:"+this.OR+"px;  margin-left:1em");var U=B.w("div","form");
L.appendChild(U);U.setAttribute("style","width:230px;  margin-left:1em");this.o4={};for(var E in eb.names){var Y=new j.GEfc.aX(E);
this.o4[E]=Y;Y.k(B.E.L,this.ky,this)}this.wr=B.w("div");U.appendChild(this.wr);this.wr.style.marginBottom="1.5em";
this.sc=B.w("div");this.sc.style.height="16.3em";U.appendChild(this.sc);B.E4(U);this.eU=B.w("div","lpbody scrollable");
this._I=B.w("div","lpfoot");U.appendChild(this.eU);U.appendChild(this._I);this.k("click",this.a0v,this);
this.UR=[];aL.hz([[5,3],[5,4]],this.UR,this._I,this.OB.bind(this))};j.GEfc.prototype=new j;j.GEfc.prototype.ou=function(){return!0};
j.GEfc.prototype.C6=function(L){this.wr.appendChild(L)};j.GEfc.prototype.hU=function(L,C){this.OY=L};
j.GEfc.prototype.AU=function(L,C){this.z6=L;this.wB=C;this.akq.style.height=C+"px";this.view.AU(L-240-this.OR-10,C);
this.eU.style.height=C-this.sc.getBoundingClientRect().height-106+"px"};j.GEfc.prototype.ald=function(){var L=fZ.get("img/beach",!0)[0],C=L.bl,U=this.akq,E=Math.floor(B.M()*(this.OR-40)/3),Y=~~(E*.7),z=new _(0,0,E,Y),r=c.F(E*Y*4),p=r.slice(0),T=Math.round(10*B.M()),k=new ImageData(new Uint8ClampedArray(p.buffer),E,Y);
c.La(new Uint8Array(L.data),C,r,new _(Math.round((C.d-E)/2),Math.round((C.v-Y)/2),E,Y));var P=B.w("canvas"),b=P.getContext("2d");
P.width=E;P.height=Y+Math.round(T*1.5);b.font=T+"px sans-serif";b.fillStyle="white";this.Pg={};var Q=this.ag$.bind(this);
for(var H=0;H<eb.v0.length;H++){var K=eb.v0[H],h=B.w("div");U.appendChild(h);h.setAttribute("style","background-color:rgba(0,0,0,0.2); padding:0px 8px; margin-bottom:8px");
h.textContent=gS.get(K);for(var x in eb.names){var O=eb.names[x];if(O[0]!=H)continue;eb.QE(x,{rect:z,buffer:r},eb.Q4(x),{h:0,P:0,O:0},{h:255,P:255,O:255},{rect:z,buffer:p},{});
b.clearRect(0,0,500,500);b.putImageData(k,0,0);var y=gS.get(O[1]);b.fillText(y,(E-b.measureText(y).width)/2,Y+Math.round(T*1.2));
var v=B.w("div");U.appendChild(v);v.setAttribute("style","display:inline-block; cursor:pointer; padding: 5px 5px 0 5px; margin-bottom:5px");
v.addEventListener("click",Q,!1);var h=B.w("img");v.appendChild(h);h.setAttribute("src",P.toDataURL());
h.setAttribute("style","width:"+E/B.M()+"px; margin-bottom:0px;");this.Pg[x]=v}}};j.GEfc.prototype.ag$=function(L){var C;
for(var U in this.Pg)if(this.Pg[U]==L.currentTarget)this.SN=U;this.ky()};j.GEfc.prototype.OB=function(L){var C=aL.xm(this.UR,L),U=this.Pp.GEfs.v,E=U[this.ey].v;
if(C==0){U.push(JSON.parse(JSON.stringify(U[this.ey])));this.ey=U.length-1}else if(U.length>1){U.splice(this.ey,1);
if(this.ey==U.length)this.ey--}this.Va();this.L9()};j.GEfc.prototype.ky=function(L){var C=this.SN,U;
if(L==null)U=eb.Q4(C);else U=this.o4[C].u();this.Pp.GEfs.v[this.ey].v=U;this.Va();this.L9()};j.GEfc.prototype.T=function(L,C,U,E,Y){if(this.Pg==null)this.ald();
L=this.Pp=JSON.parse(JSON.stringify(L));if(L.GEfs==null)L=this.Pp={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:L}]}};
var z=L.GEfs.v;for(var H=0;H<z.length;H++)if(z[H].v.GELv==null)z[H].v.GELv={t:"bool",v:!0};this.ey=z.length-1;
this.Va();U=U.clone();if(C==null)return;if(!E.cg(U)&&eb.Op(L).x!=0){var r=U.EU(E),p=c.F(r.X()*4);c.La(C,U,p,r);
C=p;U=r}U.x=U.y=0;this.tc=C;this.d7=C.slice(0);this.oo=U;this.L9()};j.GEfc.prototype.a0v=function(L){var C=L.data,H=C.Oi,U=this.Pp.GEfs.v;
if(C.RT){U[H].v.GELv.v=!U[H].v.GELv.v;this.L9()}else this.ey=H;this.Va()};j.GEfc.prototype.Va=function(){var L=this.Pp.GEfs.v,C=L[this.ey].v,U=C.GEfk.v.GEft,E=this.sc;
if(eb.names[U]==null){alert("Unsupported gallery filter");B.CF(E)}else{this.SN=U;for(var Y in this.Pg)B.gy(this.Pg[Y],"selected");
B.QS(this.Pg[U],"selected");var z=this.o4[U];z.T(C);if(E.firstChild!=z.j){B.CF(E);E.appendChild(z.j)}}var r=[];
for(var H=0;H<L.length;H++){var p=L[H].v,T=eb.names[p.GEfk.v.GEft],k=new gn(H,!0,!0,null,T?T[1]:"Filter",H==this.ey,p.GELv.v);
k.parent=this;r.push(k.j)}B.CF(this.eU);r.reverse();for(var H=0;H<r.length;H++)this.eU.appendChild(r[H]);
this.AU(this.z6,this.wB)};j.GEfc.prototype.u=function(){return JSON.parse(JSON.stringify(this.Pp))};
j.GEfc.prototype.L9=function(L){var C=this.oo,U=this.tc,E=this.d7,Y=this.SN,z=this.Pp,r=this.OY;function p(T){return{h:T>>>16,P:T>>>8&255,O:T&255}}hi.QE("GEfc",{rect:this.oo,buffer:this.tc},z,p(r.yx),p(r.ho),{rect:this.oo,buffer:this.d7},null);
this.view.T([{bl:C,data:E.buffer}])};j.GEfc.prototype.f=function(){for(var L in this.o4)this.o4[L].f();
aL.t3(this.UR,["lrs/newlayer","lrs/bin"])};j.GEfc.aX=function(L){gG.call(this);this.g0=L;this.j=B.w("div");
this.Z5={};var C=eb.Q4(L);for(var U in C){var E;if(U=="__name"||U=="classID"||U=="GEfk"||U=="GELv"||["LghI","FlRs"].indexOf(U)!=-1)continue;
else if(U=="Sz")E=new cG([12,14,0],1,50);else if(U=="Dtl")E=L=="Chrc"?new cG("Detail",0,5):new cG("Detail",1,15);
else if(U=="Shrp")E=new cG("Sharpness",0,40);else if(U=="TxtT")E=new bS([12,67],"Blocks,Canvas,Frosted,Tiny Lens,Bricks,Burlap,Sandstone".split(","));
else if(U=="BrsT")E=new bS("Brush type","Simple,Light Rough,Dark Rough,Wide Sharp,Wide Blurry,Sparkle".split(","));
else if(U=="LghD")E=new bS("Light","Bottom,Bottom Left,Left,Top Left,Top,Top Right,Right,Bottom Right".split(","));
else if(U=="SDir")E=new bS([12,33],["Right Diagonal","Horizontal","Left Diagonal","Vertical"]);else if(U=="EdgW")E=new cG("Edge Width",1,14);
else if(U=="EdgB")E=new cG("Edge Brightness",0,20);else if(U=="Smth")E=new cG([19,3,3],1,L=="Stmp"?50:15);
else if(U=="ClSz")E=new cG([12,61],3,100);else if(U=="BrdT")E=new cG([7,9],1,20);else if(U=="HghS")E=new cG([12,64],0,20);
else if(U=="HlSz")E=new cG([12,14,0],1,15);else if(U=="Cntr")E=new cG([12,3,0],0,50);else if(U=="ScrT")E=new bS([12,62],["Circle","Dot",[10,35]]);
else if(U=="SprR")E=new cG("Spray Radius",0,25);else if(U=="StrL")E=new cG("Stroke Length",0,20);else if(U=="LgDr")E=new cG("Light/Dark Balance",0,L=="Stmp"?50:100);
else if(U=="Drkn")E=new cG("Darkness",1,50);else if(U=="Dstr")E=new cG("Distortion",0,20);else if(U=="Scln")E=new cG([12,38],50,200);
else if(U=="Rlf")E=new cG("Relief",0,50);else if(U=="ChAm")E=new cG("Thickness",1,7);else if(U=="InvT")E=new dh([4,11]);
else if(U=="RplS")E=new cG("Ripple Size",1,15);else if(U=="RplM")E=new cG("Ripple Magnitude",0,20);else console.log(U);
E.k(B.E.L,this.bV,this);this.Z5[U]=E;this.j.appendChild(E.j)}};j.GEfc.aX.prototype=new gG;j.GEfc.aX.prototype.bV=function(L){this.B(new q(B.E.L,!1))};
j.GEfc.aX.prototype.T=function(L){for(var C in this.Z5){var U;if("Sz Dtl Shrp EdgW EdgB Smth ClSz BrdT HghS HlSz Cntr SprR StrL LgDr Drkn Dstr Scln Rlf ChAm InvT RplS RplM".split(" ").indexOf(C)!=-1)U=L[C].v;
else if(C=="TxtT")U=eb.Q7.indexOf(L[C].v[C]);else if(C=="BrsT")U=eb.XL.indexOf(L[C].v[C]);else if(C=="LghD")U=eb.Dm.indexOf(L[C].v[C]);
else if(C=="ScrT")U=eb.Uc.indexOf(L[C].v[C]);else if(C=="SDir")U=eb.$p.indexOf(L[C].v.StrD);this.Z5[C].T(U)}};
j.GEfc.aX.prototype.u=function(){var L=eb.Q4(this.g0);for(var C in this.Z5){var U=this.Z5[C].u();if("Sz Dtl Shrp EdgW EdgB Smth ClSz BrdT HghS HlSz Cntr SprR StrL LgDr Drkn Dstr Scln Rlf ChAm InvT RplS RplM".split(" ").indexOf(C)!=-1)L[C].v=U;
else if(C=="TxtT")L[C].v[C]=eb.Q7[U];else if(C=="BrsT")L[C].v[C]=eb.XL[U];else if(C=="LghD")L[C].v[C]=eb.Dm[U];
else if(C=="ScrT")L[C].v[C]=eb.Uc[U];else if(C=="SDir")L[C].v.StrD=eb.$p[U]}return L};j.GEfc.aX.prototype.f=function(){for(var L in this.Z5)this.Z5[L].f()};
j.blnc=function(){j.call(this);var L=this.j;this.q$=null;this.wW=new bS([12,12],[[19,6,0],[19,6,1],[19,6,2]]);
this.wW.k(B.E.L,this.L9,this);L.appendChild(this.wW.j);this.K3=[];for(var H=0;H<3;H++){var C=new cG(eh.Ol[H],-100,100);
C.k(B.E.L,this.yy,this);this.K3.push(C);L.appendChild(C.j)}this.va=new dh([13,4]);this.va.k(B.E.L,this.yy,this);
L.appendChild(this.va.j)};j.blnc.prototype=new j;j.blnc.prototype.f=function(){this.wW.f();for(var H=0;
H<3;H++)this.K3[H].f();this.va.f()};j.blnc.prototype.T=function(L){this.q$=JSON.parse(JSON.stringify(L));
this.L9()};j.blnc.prototype.u=function(L){var C=["ShdL","MdtL","HghL"],U=this.q$[C[this.wW.u()]].v;for(var H=0;
H<3;H++)U[H].v=this.K3[H].u();this.q$.PrsL.v=this.va.u();return JSON.parse(JSON.stringify(this.q$))};
j.blnc.prototype.L9=function(L){var C=["ShdL","MdtL","HghL"],U=this.q$[C[this.wW.u()]].v;for(var H=0;
H<3;H++)this.K3[H].T(U[H].v);this.va.T(this.q$.PrsL.v)};j.brit=function(){j.call(this,"brit");this.vQ.push(new cG([12,2],-150,150,""));
this.vQ.push(new cG([12,3,0],-100,100,""));this.vQ.push(new dh([12,3,1]));this.Rn()};j.brit.prototype=new j;
j.brit.prototype.kO=function(L,C){C[0]=L.Brgh?L.Brgh.v:0;C[1]=L.Cntr?L.Cntr.v:0;C[2]=L.useLegacy?L.useLegacy.v:!1};
j.brit.prototype.zU=function(L,C){L.Brgh.v=C[0];L.Cntr.v=C[1];L.useLegacy.v=C[2]};j.curv=function(){j.call(this);
this.value=null;this.GX=null;var L=this.j;this.ii=new bS([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]);
this.ii.k(B.E.L,this.P_,this);L.appendChild(this.ii.j);this.Gv=new bS(null,["Spline","Sketch"]);this.Gv.k(B.E.L,this.abf,this);
L.appendChild(this.Gv.j);this.hR=new ig;this.hR.k(B.E.L,this.fa,this);L.appendChild(this.hR.j);this.nI=new bO("Sample from image",["#000000","#888888","#ffffff"]);
L.appendChild(this.nI.j)};j.curv.prototype=new j;j.curv.prototype.f=function(){this.ii.f()};j.curv.prototype.abf=function(L){var C=fh.El(this.value,0),U=C.length==256?1:0,E=this.Gv.u();
if(U==E)return;var Y=hi.Q4("curv");if(E==1){var z=[];for(var H=0;H<256;H++)z.push(H);fh.Sm(Y,0,z)}this.T(Y);
this.yy()};j.curv.prototype.fa=function(){fh.Sm(this.value,this.ii.u(),this.hR.u());this.yy()};j.curv.prototype.P_=function(){var L=this.ii.u(),C=fh.El(this.value,L),U=C.length==256?1:0;
this.Gv.T(U);if(this.GX)this.hR.Uz(this.GX[L],this.GX[4]*[1,.33,.33,.33][L],["#ccc","#fcc","#cfc","#ccf"][L]);
this.hR.T(C)};j.curv.prototype.lW=function(){return!0};j.curv.prototype.bM=function(L,C,U,E,Y){var z=this.value,r=this.nI.u();
this.value=hi.Q4("curv");this.yy();var p=W.Ra.Vy(L,Y,1),T=[p>>>16&255,p>>>8&255,p&255];for(var H=0;H<3;
H++){var k=fh.El(z,1+H);if(r==0)k[0].v.Hrzn.v=T[H];if(r==1){var P=(T[0]+T[1]+T[2])*.333,b=Math.log(T[H]/255)/Math.log(P/255),Q=Math.min(999,Math.max(10,Math.round(100*b)));
if(k.length==2)k.splice(1,0,JSON.parse(JSON.stringify(k[0])));k[1].v.Hrzn.v=127-Math.log(Q/100)*127;
k[1].v.Vrtc.v=127}if(r==2)k[k.length-1].v.Hrzn.v=T[H];fh.Sm(z,1+H,k)}this.T(z);this.yy()};j.curv.prototype.T=function(L){this.value=L;
this.P_()};j.curv.prototype.Uz=function(L){this.GX=L;this.P_()};j.curv.prototype.u=function(L){return JSON.parse(JSON.stringify(this.value))};
j.expA=function(){j.call(this,"expA");this.vQ.push(new cG([12,5],-20,20,null,3));this.vQ.push(new cG([12,6],-.5,.5,null,3));
this.vQ.push(new cG([12,7],.01,6.99,null,3));this.Rn()};j.expA.prototype=new j;j.expA.prototype.kO=function(L,C){C[0]=L.Exps.v;
C[1]=L.Ofst.v;C[2]=L.gammaCorrection.v};j.expA.prototype.zU=function(L,C){L.Exps.v=C[0];L.Ofst.v=C[1];
L.gammaCorrection.v=C[2]};j.grdm=function(){j.call(this,"grdm");this.vQ.push(new cg(!0,null,!0));this.vQ.push(new dh([12,23,0]));
this.Rn()};j.grdm.prototype=new j;j.grdm.prototype.kO=function(L,C){C[0]=L.Grad.v;C[1]=L.Rvrs?L.Rvrs.v:!1};
j.grdm.prototype.zU=function(L,C){L.Grad.v=C[0];L.Rvrs={t:"bool",v:C[1]}};j.grdm.prototype.hU=function(L,C){this.vQ[0].iW(L.yx,L.ho);
if(C==c_.oI||C==c_.GM||C==c_.SP)this.vQ[0].LP(L.MN)};j.selc=function(){j.call(this);var L=this.j;this.JI=[];
this.UY=null;this.wW=new bS([12,82],eh._6.concat([[13,1,8],[13,1,13],[13,1,10]]));this.wW.k(B.E.L,this.bV,this);
L.appendChild(this.wW.j);for(var H=0;H<4;H++){var C=new cG(eh.ak1[H],-100,100,"%");C.k(B.E.L,this.bV,this);
this.JI.push(C);L.appendChild(C.j)}this.uf=new dh([13,3]);L.appendChild(this.uf.j);this.uf.k(B.E.L,this.bV,this)};
j.selc.prototype=new j;j.selc.prototype.f=function(){this.wW.f();this.uf.f();for(var H=0;H<4;H++)this.JI[H].f()};
j.selc.prototype.T=function(L){this.UY=JSON.parse(JSON.stringify(L));this.L9()};j.selc.prototype.u=function(L){return JSON.parse(JSON.stringify(this.UY))};
j.selc.prototype.bV=function(L){if(L.target!=this.wW){var C=this.UY,U=[];for(var H=0;H<4;H++)U[H]=this.JI[H].u();
iQ.Sm(C,this.wW.u(),U);C.Mthd={t:"enum",v:{CrcM:this.uf.u()?"Absl":"Rltv"}}}this.L9();this.yy()};j.selc.prototype.L9=function(){var L=this.UY,C=iQ.El(L,this.wW.u());
for(var H=0;H<4;H++)this.JI[H].T(C[H]);this.uf.T(L.Mthd?L.Mthd.v.CrcM=="Absl":!1)};j.blwh=function(){j.call(this,"blwh");
this.vQ.push(new dh([12,11]));this.vQ.push(new di(!0));for(var H=0;H<6;H++)this.vQ.push(new cG(eh._6[H],-200,300));
this.Rn()};j.blwh.prototype=new j;j.blwh.prototype.kO=function(L,C){C[0]=L.useTint.v;C[1]=L.tintColor.v;
var U="Rd Yllw Grn Cyn Bl Mgnt".split(" ");for(var H=0;H<6;H++)C[2+H]=L[U[H]].v};j.blwh.prototype.zU=function(L,C){L.useTint.v=C[0];
L.tintColor.v=C[1];var U="Rd Yllw Grn Cyn Bl Mgnt".split(" ");for(var H=0;H<6;H++)L[U[H]].v=C[2+H]};
j.hue2=function(){j.call(this);this.value=null;this.ll=null;this.a2m=null;var L=this.j;this.wW=new bS([12,12],["Master"].concat(eh._6));
this.wW.k(B.E.L,this.P_,this);L.appendChild(this.wW.j);this.g4=new cG([12,8],-180,180);this.g4.k(B.E.L,this.mm,this);
L.appendChild(this.g4.j);this.Fq=new cG([12,9],-100,100);this.Fq.k(B.E.L,this.mm,this);L.appendChild(this.Fq.j);
this.OX=new cG([12,10],-100,100);this.OX.k(B.E.L,this.mm,this);L.appendChild(this.OX.j);this.qD=new dh([12,11]);
this.qD.k(B.E.L,this.aaP,this);L.appendChild(this.qD.j);this.aaT=new ip("...",!0);L.appendChild(this.aaT.j)};
j.hue2.prototype=new j;j.hue2.prototype.f=function(){this.g4.f();this.Fq.f();this.OX.f();this.qD.f();
this.wW.f()};j.hue2.prototype.aaP=function(L){var C=this.qD.u();this.value.Clrz.v=C;if(C)this.wW.T(0);
this.P_();this.yy()};j.hue2.prototype.mm=function(L){var C=this.value.Clrz.v,U=this.wW.u(),E=hK.El(this.value,U),Y=U==0?E:E.K3;
Y[0]=this.g4.u();var z=this.Fq.u();Y[1]=C?Math.max(0,z):z;Y[2]=this.OX.u();hK.Sm(this.value,U,E);this.P_();
this.yy()};j.hue2.prototype.P_=function(){var L=this.value.Clrz?this.value.Clrz.v:!1,Y="";this.qD.T(L);
if(L)this.wW.aA();else this.wW.rX();var C=this.wW.u(),U=hK.El(this.value,C),E=C==0?U:U.K3;this.g4.T(E[0]);
this.Fq.T(E[1]);this.OX.T(E[2]);if(!L){Y+=gS.get([5,8])+": ";var C=this.wW.u();if(C==0)Y+=gS.get([13,2]);
else Y+=U.tZ}this.aaT.T(Y)};j.hue2.prototype.lW=function(){return!0};j.hue2.prototype.zI=function(L,C,U,E,Y){var z=this.value;
this.value=hi.Q4("hue2");this.yy();var r=W.Ra.Vy(L,Y,1),p=[r>>>16&255,r>>>8&255,r&255],T=c.t2(p[0]/255,p[1]/255,p[2]/255);
this.wW.T(1+Math.round(T.fg*6)%6);this.T(z);this.yy();this.ll=Y.x;this.a2m=this.Fq.u()};j.hue2.prototype.Yh=function(L,C,U,E,Y){if(this.ll!=null){var z=Y.x-this.ll;
z=Math.max(-100,Math.min(100,this.a2m+.5*z));this.Fq.T(z);this.mm()}};j.hue2.prototype.bM=function(L,C,U,E,Y){this.ll=null};
j.hue2.prototype.T=function(L){this.value=JSON.parse(JSON.stringify(L));this.P_()};j.hue2.prototype.u=function(L){return JSON.parse(JSON.stringify(this.value))};
j.levl=function(){j.call(this);this.value=null;this.GX=null;this.IP=[new hZ(0,0),new hZ(0,0),new hZ(0,0),new hZ(0,0),new hZ(0,0)];
this.eX=-1;this.kf=this.cz.bind(this);this.T6=this.KR.bind(this);var L=this.j;this.ii=new bS([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]);
this.ii.k(B.E.L,this.P_,this);L.appendChild(this.ii.j);var C=B.w("div","");L.appendChild(C);var U=B.w("div","");
L.appendChild(U);this.k2=B.w("canvas");C.appendChild(this.k2);this.zS=this.k2.getContext("2d");this.tv=new hZ(256,120);
this.k2.setAttribute("style","display:block");B.wS(this.k2,this.tv.x,this.tv.y,this.zS);B.zC(this.k2);
B.Vv(this.k2,this.Ko.bind(this));this.Ch=B.w("canvas","");U.appendChild(this.Ch);this.$Z=this.Ch.getContext("2d");
this.vi=new hZ(this.tv.x,40);this.Ch.setAttribute("style","display:block");B.wS(this.Ch,this.vi.x,this.vi.y,this.$Z);
B.zC(this.Ch);B.Vv(this.Ch,this.a4K.bind(this));var E=this.a2h=[];for(var H=0;H<5;H++){var Y=new hq(null,null,3);
E.push(Y);Y.k(B.E.L,this.a2E,this);(H<2||H==4?C:U).appendChild(Y.j)}C.appendChild(E[1].j);E[4].j.setAttribute("style","margin: 0 4.7em");
E[3].j.setAttribute("style","margin:0 0 0 13em");this.nI=new bO("Sample from image",["#000000","#888888","#ffffff"]);
L.appendChild(this.nI.j)};j.levl.prototype=new j;j.levl.prototype.f=function(){this.ii.f()};j.levl.prototype.a2E=function(L){var C=[];
for(var H=0;H<5;H++){var U=255,E=1;if(H==4){U=999;E=100}var Y=parseFloat(this.a2h[H].u());C[H]=Math.max(0,Math.min(U,Y*E))}d5.Sm(this.value,this.ii.u(),C);
this.P_();this.yy()};j.levl.prototype.P_=function(L){var C=this.tv.x,U=this.tv.y,E=this.ii.u(),Y=this.zS;
Y.clearRect(0,0,C,U);Y.fillStyle="#cccccc";Y.fillRect(8,8,C-16,U-16-8);if(this.GX){if(E==0){this.GX[0].fill(0);
var z=JSON.parse(JSON.stringify(this.value));d5.Sm(z,0,[0,255,0,255,100]);var r=eh.dq("levl",z),p=[r.pm,r.l3,r.g_];
for(var T=0;T<3;T++){var k=this.GX[1+T],P=p[T];for(var H=0;H<256;H++)this.GX[0][P[H]]+=k[H]}}var b=this.GX[E],Q=0;
for(var H=0;H<b.length;H++)Q+=b[H];Y.fillStyle="#333333";Y.beginPath();Y.moveTo(8,U-16);for(var H=0;
H<256;H++){var K=55*b[H]/Q;Y.lineTo(8+H/256*(C-16),Math.max(8,U-16-U*K))}Y.lineTo(C-8,U-16);Y.closePath();
Y.fill()}var h=d5.El(this.value,E);for(var H=0;H<5;H++)this.a2h[H].T(h[H]/(H==4?100:1));this.IP[0].U6(8+h[0]/255*(C-16),U-14);
this.IP[1].U6(8+h[1]/255*(C-16),U-14);var x=Math.log(h[4]/100)/Math.log(9.99);x=.5-x/2;this.IP[4].U6(this.IP[0].x+x*(this.IP[1].x-this.IP[0].x),U-14);
this._n(Y,this.IP[0],"#000000");this._n(Y,this.IP[1],"#ffffff");this._n(Y,this.IP[4],"#777777");var C=this.vi.x,U=this.vi.y;
Y=this.$Z;Y.clearRect(0,0,C,U);var O=Y.createLinearGradient(0,0,C-16,0);O.addColorStop(0,"black");O.addColorStop(1,"white");
Y.fillStyle=O;Y.fillRect(8,8,C-16,16);this.IP[2].U6(8+h[2]/255*(C-16),U-14);this.IP[3].U6(8+h[3]/255*(C-16),U-14);
this._n(Y,this.IP[2],"#000000");this._n(Y,this.IP[3],"#ffffff")};j.levl.prototype._n=function(L,C,U){L.fillStyle=U;
L.fillRect(C.x-5,C.y,10,10)};j.levl.prototype.Ko=function(L){var C=B.K7(L,this.k2);for(var H=0;H<2;H++)if(hZ.sl(this.IP[H],C)<10)this.eX=H;
if(hZ.sl(this.IP[4],C)<10)this.eX=4;this.hH()};j.levl.prototype.a4K=function(L){var C=B.K7(L,this.Ch);
for(var H=2;H<4;H++)if(hZ.sl(this.IP[H],C)<10)this.eX=H;this.hH()};j.levl.prototype.hH=function(L){if(this.eX==-1)return;
B.z2(document.body,this.kf);B.Yp(document.body,this.T6)};j.levl.prototype.cz=function(L){var C=d5.El(this.value,this.ii.u()),U=B.K7(L,this.eX==2&&this.eX==3?this.Ch:this.k2),E=255*(U.x-8)/(this.tv.x-16);
E=Math.max(0,Math.min(255,E));if(this.eX==0)E=Math.min(E,C[1]-2);if(this.eX==1)E=Math.max(E,C[0]+2);
if(this.eX!=4)C[this.eX]=Math.round(E);else{var Y=(E-C[0])/(C[1]-C[0]);Y=1-2*Y;Y=Math.pow(9.99,Y);C[4]=Math.min(999,Math.max(10,Math.round(Y*100)))}d5.Sm(this.value,this.ii.u(),C);
this.P_();this.yy()};j.levl.prototype.KR=function(L){B.dZ(document.body,this.kf);B.EW(document.body,this.T6);
this.eX=-1};j.levl.prototype.lW=function(){return!0};j.levl.prototype.bM=function(L,C,U,E,Y){var z=this.value,r=this.nI.u();
this.value=hi.Q4("levl");this.yy();var p=W.Ra.Vy(L,Y,1),T=[p>>>16&255,p>>>8&255,p&255];for(var H=0;H<3;
H++){var k=d5.El(z,1+H);if(r==0)k[0]=T[H];if(r==1){var P=Math.log(T[H]/255)/Math.log((T[0]+T[1]+T[2])*.333/255);
k[4]=Math.min(999,Math.max(10,Math.round(100*P)))}if(r==2)k[1]=T[H];d5.Sm(z,1+H,k)}this.T(z);this.yy()};
j.levl.prototype.T=function(L){this.value=L;this.P_()};j.levl.prototype.Uz=function(L){this.GX=L;this.P_()};
j.levl.prototype.u=function(L){return JSON.parse(JSON.stringify(this.value))};j.phfl=function(){j.call(this,"phfl");
this.vQ.push(new di);this.vQ.push(new cG([12,74],0,100,"%"));this.vQ.push(new dh([13,4]));this.Rn()};
j.phfl.prototype=new j;j.phfl.prototype.kO=function(L,C){C[0]=L.Clr.v;C[1]=L.Dnst.v;C[2]=L.PrsL.v};j.phfl.prototype.zU=function(L,C){var U=c.W.Lt(C[0]),E=L.Clr.v,Y=c.E8(U.h,U.P,U.O);
E.Lmnc.v=Y.QD;E.A.v=Y.R;E.B.v=Y.O;L.Dnst.v=C[1];L.PrsL.v=C[2]};j.vibA=function(){j.call(this,"vibA");
this.vQ.push(new cG([12,13],-100,100,null));this.vQ.push(new cG([12,9],-100,100,null));this.Rn()};j.vibA.prototype=new j;
j.vibA.prototype.kO=function(L,C){C[0]=L.vibrance?L.vibrance.v:0;C[1]=L.Strt?L.Strt.v:0};j.vibA.prototype.zU=function(L,C){L.vibrance.v=C[0];
L.Strt.v=C[1]};j.thrs=function(){j.call(this,"thrs");this.vQ.push(new cG([4,13],1,255,null));this.Rn()};
j.thrs.prototype=new j;j.thrs.prototype.kO=function(L,C){C[0]=L.Lvl.v};j.thrs.prototype.zU=function(L,C){L.Lvl.v=C[0]};
j.mixr=function(){j.call(this);var L=this.j;this.JI=[];this.UY=null;this.wW=new bS([12,4],[[13,1,1],[13,1,4],[13,1,5]]);
this.wW.k(B.E.L,this.bV,this);L.appendChild(this.wW.j);B.E4(L);this.Aw=new dh([12,60]);L.appendChild(this.Aw.j);
this.Aw.k(B.E.L,this.bV,this);for(var H=0;H<4;H++){var C=new cG([[13,1,1],[13,1,4],[13,1,5],[13,2]][H],-200,200,"%");
C.k(B.E.L,this.bV,this);this.JI.push(C);L.appendChild(C.j)}};j.mixr.prototype=new j;j.mixr.prototype.f=function(){this.wW.f();
this.Aw.f();for(var H=0;H<4;H++)this.JI[H].f()};j.mixr.prototype.T=function(L){this.UY=JSON.parse(JSON.stringify(L));
this.L9()};j.mixr.prototype.u=function(L){return JSON.parse(JSON.stringify(this.UY))};j.mixr.prototype.bV=function(L){if(L.target!=this.wW){var C=eh.zu(this.UY);
if(L.target==this.Aw){C.Aw=this.Aw.u();if(C.Aw)C.G=[40,40,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];else C.G=[100,0,0,0,0,0,100,0,0,0,0,0,100,0,0,0,0,0,0,0]}else{var U=(C.Aw?0:this.wW.u())*5,H=this.JI.indexOf(L.target);
C.G[U+(H<3?H:4)]=L.target.u()}this.UY=eh.I$(C)}this.L9();this.yy()};j.mixr.prototype.L9=function(){var L=eh.zu(this.UY);
this.Aw.T(L.Aw);var C=(L.Aw?0:this.wW.u())*5;for(var H=0;H<4;H++)this.JI[H].T(L.G[C+(H<3?H:4)])};j.post=function(){j.call(this,"post");
this.vQ.push(new cG([4,1],2,255,null));this.Rn()};j.post.prototype=new j;j.post.prototype.kO=function(L,C){C[0]=L.Lvls.v};
j.post.prototype.zU=function(L,C){L.Lvls.v=C[0]};j.clrL=function(){j.call(this,"clrL");this.vQ.push(new ic("LUTs"));
this.Rn()};j.clrL.prototype=new j;j.clrL.prototype.kO=function(L,C){C[0]=L};j.clrL.prototype.zU=function(L,C){var U=C[0];
for(var E in U)L[E]=U[E]};j.clrL.prototype.hU=function(L,C){if(C==c_.oI||C==c_.Fc)this.vQ[0].LP(L.a10)};
j.rplc=function(){j.call(this,"rplc");this.vQ.push(new cG([12,92],0,200));this.vQ.push(new di);this.vQ.push(new cG([12,8],-180,180));
this.vQ.push(new cG([12,9],-100,100));this.vQ.push(new cG([12,10],-100,100));this.Rn()};j.rplc.prototype=new j;
j.rplc.prototype.kO=function(L,C){C[0]=L.Fzns.v;C[1]=L.Mxm.v;C[2]=L.H.v;C[3]=L.Strt.v;C[4]=L.Lght.v};
j.rplc.prototype.zU=function(L,C){function U(Y,z){z.Lmnc.v=Y.QD;z.A.v=Y.R;z.B.v=Y.O}L.Fzns.v=C[0];L.H.v=C[2];
L.Strt.v=C[3];L.Lght.v=C[4];var E=c.W.Lt(C[1]),Y=c.E8(E.h,E.P,E.O);U(Y,L.Mnm.v);U(Y,L.Mxm.v)};j.fade=function(){j.call(this,"fade");
this.vQ.push(new cG([12,0],0,100,"%"));this.vQ.push(new bS([12,19,0],gz.w4,!1,gz.RY));this.Rn()};j.fade.prototype=new j;
j.fade.prototype.kO=function(L,C){C[0]=L.Opct.v.val;C[1]=gz.lV.indexOf(L.Md.v.BlnM)};j.fade.prototype.zU=function(L,C){L.Opct.v.val=C[0];
L.Md.v.BlnM=gz.lV[C[1]]};j.aply=function(){j.call(this,"aply");this.vQ.push(new bS([0,3],[]));this.vQ.push(new bS([12,4],["RGB"].concat(eh.Ol).concat(["Transparency"])));
this.vQ.push(new dh([4,11]));this.vQ.push(new bS([12,19,0],gz.w4,!1,gz.RY));this.vQ.push(new cG([12,0],0,100,"%"));
this.vQ.push(new dh("Preserve Transparency"));this.Rn([2]);this.ns=null};j.aply.prototype=new j;j.aply.prototype.kO=function(L,C,U){if(U){var E=U[2].N,Y=this.ns=[];
for(var H=0;H<E.length;H++)Y.push(E[H].getName());Y.reverse();this.vQ[0].SU([[5,7]].concat(Y),[1,Y.length])}else var Y=this.ns;
L=L.With.v;var z=L.T.v;C[0]=z[1].t=="name"?1+Y.indexOf(z[1].v.val):0;C[1]=["RGB","Rd","Grn","Bl","Trsp"].indexOf(z[0].v.enum);
C[2]=L.Invr.v;C[3]=gz.lV.indexOf(L.Clcl.v.Clcn);C[4]=L.Opct.v.val;C[5]=L.PrsT.v};j.aply.prototype.zU=function(L,C){L=L.With.v;
var U=L.T.v;if(C[0]==0)U[1]={t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Mrgd"}};else U[1]={t:"name",v:{classID:"Lyr",val:this.ns[this.ns.length-1-C[0]]}};
U[0].v.enum=["RGB","Rd","Grn","Bl","Trsp"][C[1]];L.Invr.v=C[2];L.Clcl.v.Clcn=gz.lV[C[3]];L.Opct.v.val=C[4];
L.PrsT.v=C[5]};function da(L,C){gG.call(this);if(L==null)return;this.id=C;this.Kd=L;this.L0=null;this.j=B.w("div","window "+C);
this.amA=null;this.a6=B.w("div","whead");this.ahG=B.w("span","wname");this.a6.appendChild(this.ahG);
this.j.appendChild(this.a6);this.jV=this.an6.bind(this);this.y3=this.alc.bind(this);this.Cj=this.ady.bind(this);
B.zC(this.a6);B.Vv(this.a6,this.jV);this.Pq=B.w("span","cross");this.a6.appendChild(this.Pq);da.prototype.f.call(this);
B.Yp(this.Pq,this.aB.bind(this));this.body=B.w("div","body");this.j.appendChild(this.body)}da.prototype=new gG;
da.prototype.sH=function(){return!1};da.prototype.lW=function(){return!1};da.prototype.f=function(){if(this.Kd==null)return;
this.ahG.textContent=gS.get(this.Kd);var L=PIMG.__cross==null?"filter:invert(1);":"";this.Pq.setAttribute("style","background-image:url("+PIMG.cross+");"+L)};
da.prototype.zI=function(L,C,U,E,Y){};da.prototype.vF=function(L,C,U,E,Y){};da.prototype.Yh=function(L,C,U,E,Y){};
da.prototype.bM=function(L,C,U,E,Y){};da.prototype.Rg=function(L,C,U,E,Y){};da.prototype.fj=function(L,C,U,E){if(E.q(G.CT)&&this.Rf)this.Rf();
if(E.q(G.DM)){var Y=new q(B.E.A);Y.Fw=!0;W.mZ.vM(E,Y);if(Y.data)C.B(Y)}};da.prototype.Gs=function(L){return!1};
da.prototype.Kc=function(L,C){return!0};da.prototype.jn=function(L,C,U,E){};da.prototype.hU=function(L,C){};
da.prototype.EO=function(L,C){return null};da.prototype.anS=function(L){return this.amA};da.prototype.AU=function(){};
da.prototype.close=function(){this.B(new q(B.E.Id))};da.prototype.an6=function(L){this.L0=B.K7(L,this.j);
B.z2(window,this.y3);B.Yp(window,this.Cj)};da.prototype.alc=function(L){var C=this.j.parentNode,U=B.K7(L,C),E=Math.round(U.x-this.L0.x),Y=C.offsetTop+Math.max(0,Math.min(window.innerHeight-36,Math.round(U.y-this.L0.y)));
this.amA=new hZ(E,Y);this.j.style.left=E+"px";this.j.style.top=Y+"px"};da.prototype.ady=function(L){B.dZ(window,this.y3);
B.EW(window,this.Cj)};da.prototype.aB=function(L){this.B(new q("closebtn"));this.close()};function aw(){da.call(this,[0,13,0],"account");
this.hd=B.w("div","form padded scrollable");this.hd.setAttribute("style","max-width:48em;  max-height:33em;");
this.body.appendChild(this.hd);this.CL=[new aw.B3,new aw.NR(aw.aby),new aw.NR(aw.a6m)];for(var H=0;H<this.CL.length;
H++)this.CL[H].parent=this;this.k("showpage",this.abO,this)}aw.prototype=new da;aw.prototype.abO=function(L){B.CF(this.hd);
this.hd.scrollTop=0;this.hd.appendChild(this.CL[L.data.Oi].j)};aw.prototype.f=function(){da.prototype.f.call(this);
for(var H=0;H<this.CL.length;H++)this.CL[H].f()};aw.prototype.jn=function(L,C,U){B.CF(this.hd);var E=this.CL[0];
this.hd.appendChild(E.j);E.jn();this.f()};aw.prototype.hU=function(L,C){this.jn(null,null,null)};aw.B3=function(){gG.call(this);
this.j=B.w("div");var L=this.j,C,U,E="background-color: #00aa00;  text-shadow:none; padding:3px 7px; font-size:1.2em; font-weight:bold; color:#ffffff; cursor:pointer; margin:4px 0;";
this.PT=B.w("div");L.appendChild(this.PT);this.gN=new br([0,11],!1,null,!0);this.gN.j.setAttribute("style","background-color: rgba(200,0,0,1); color:#ffffff; margin:4px 6px 4px 0;");
this.gN.k("click",this.hD,this);L.appendChild(this.gN.j);this.T$=new br([0,13,1],!1,null,!0);this.T$.k("click",this.Ps,this);
L.appendChild(this.T$.j);this.a6M=new br("Contact",!1,null,!0);this.a6M.k("click",this.amS,this);C=B.w("h2");
C.innerHTML="Account types";L.appendChild(C);U=B.w("table");U.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\">Full Functionality</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";
L.appendChild(U);var Y=this.a80=[[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.se=[];for(var H=0;H<Y.length;H++)this.se.push(new br("Buy: $"+Y[H][0],!1,null,!0));for(var H=0;
H<this.se.length;H++){this.se[H].j.setAttribute("style",E);this.se[H].k("click",this.ol,this)}C=B.w("h2");
C.innerHTML="Go Premium";L.appendChild(C);this.O_=new br("...",!0);this.O_.j.setAttribute("style",E);
L.appendChild(this.O_.j);U=this.r7(3,["Single user",this.se[0],this.se[1],this.se[2],"Team of 5",this.se[3],this.se[4],this.se[5],"Team of 20",this.se[6],this.se[7],this.se[8]]);
L.appendChild(U);this.ao0=new dh("I accept",!0,"");L.appendChild(this.ao0.j);this.Kt=new br([0,13,1],!1,null,!0);
this.Kt.k("click",this.Ps,this);L.appendChild(this.Kt.j);this.ni=new br("I have a key",!1,null,!0);this.ni.j.setAttribute("style",E+" margin-left:18.9em;");
this.ni.k("click",this.ol,this);L.appendChild(this.ni.j);C=B.w("h2");C.textContent="Team Settings";L.appendChild(C);
this.iu=new dh("Join a team");L.appendChild(this.iu.j);this.iu.k(B.E.L,this.M$,this);this.Yx=new hq("Email of a leader",null,14);
L.appendChild(this.Yx.j);B.E4(L);this.uG=new dh("Start a team");L.appendChild(this.uG.j);this.uG.k(B.E.L,this.M$,this);
var z=new ip("Emails of other members:");L.appendChild(z.j);B.E4(L);this.Ox=B.w("textarea");this.Ox.setAttribute("rows",3);
this.Ox.setAttribute("cols",70);this.Ox.setAttribute("style","display:block;tab-size:4;");L.appendChild(this.Ox);
var r=new br("Save Team Settings",!1,null,!0);L.appendChild(r.j);r.k("click",this.a5D,this);var p=this.a64=new br("More about Teams",!1,null,!0);
L.appendChild(p.j);p.k("click",this.KS,this);C=B.w("h2");C.innerHTML="Distributor Account";L.appendChild(C);
this.Y_=new br("...",!0);this.Y_.j.setAttribute("style",E);L.appendChild(this.Y_.j);U=this.r7(3,["1000 views/month",this.se[9],this.se[10],this.se[11],"5000 views/month",this.se[12],this.se[13],this.se[14],"20000 views/month",this.se[15],this.se[16],this.se[17]]);
L.appendChild(U);this.Nq=new hq("Domain name (e.g. domain.com)",null,14);L.appendChild(this.Nq.j);B.E4(L);
var r=new br("Save Domain Settings",!1,null,!0);r.m0();L.appendChild(r.j);r.k("click",this.a7W,this);
var p=new br("More about Distributors",!1,null,!0);L.appendChild(p.j);p.k("click",this.KS,this)};aw.B3.prototype=new gG;
aw.B3.prototype.Ps=function(L){var C=new q("showpage",!0);C.data={Oi:1};this.B(C)};aw.B3.prototype.amS=function(L){var C=new q("showpage",!0);
C.data={Oi:2};this.B(C)};aw.B3.prototype.f=function(){this.gN.uc(cN.PW()?gS.get([0,11]):gS.get([0,10]));
this.Kt.f();this.T$.f();this.a6M.f()};aw.B3.prototype.KS=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.lR,link:"https://www.photopea.com/api/accounts#"+(L.target==this.a64?"teams":"distributors")};
this.B(C)};aw.B3.prototype.M$=function(L){var C=L.currentTarget==this.iu;this.iu.T(C);this.uG.T(!C)};
aw.B3.prototype.a5D=function(L){var C=this.iu.u(),U=this.Yx.u().trim(),E=this.Ox.value.trim();if(U.length>60){alert("Too long email address");
return}if(E.length>600){alert("Too many team members");return}E=E.split(",").join(" ").trim();E=E.replace(/\s+/g," ");
if(E=="")E=[];else E=E.split(" ");var Y=cN.XT();if(Y==null)Y={};if(Y.acc==null)Y.acc={};Y.acc.team={jin:C,ldr:U,mmb:E};
cN.NG(Y,this.$O.bind(this));alert("Saved!");this.jn()};aw.B3.prototype.a7W=function(L){var C=this.Nq.u().trim();
if(!cN.PW()){alert("You have to log in first.");return}if(cN.lE().distrib=="0"){alert("Order a distributor account first.");
return}var U=cN.XT();if(U==null)U={};if(U.acc==null)U.acc={};if(C=="")delete U.acc.dname;else U.acc.dname=C;
cN.NG(U,this.$O.bind(this));alert("Saved!");this.jn()};aw.B3.prototype.jn=function(){if(cN.PW()){var L=cN.lE();
if(L==null)return;this.PT.innerHTML="<span style=\"font-size:1.5em; margin-right:0.7em;\">"+L.name+"</span> "+L.email+" <br/>"}else this.PT.innerHTML="Logging In is free. Your environment settings will be synchronized across all devices. <br/>";
var C=cN.PW()&&cN.ez();this.O_.j.style.display=C?"block":"none";if(C){var U=parseInt(L[B.N9("!&|'&50")])-Date.now()*(1/1e3),E=parseInt(L.ptype),Y;
if(E==-1)Y="member of a team";else if(E==1)Y="Single user";else Y="Team of "+E;this.O_.uc("Premium active for "+Math.round(U/(60*60*24))+" more days! ("+Y+")")}var z=cN.PW()&&L.distrib*1e3>Date.now();
this.Y_.j.style.display=z?"block":"none";if(z){var U=parseInt(L.distrib)-Date.now()/1e3,E=parseInt(L.ptype);
this.Y_.uc("Distributor active for "+Math.round(U/(60*60*24))+" more days! ("+E+" visitos)")}var r=cN.XT();
if(r&&r.acc&&r.acc.team){var p=r.acc.team;this.iu.T(p.jin);this.uG.T(!p.jin);this.Yx.T(p.ldr);this.Ox.value=p.mmb.join(", ")}else{this.iu.T(!0);
this.uG.T(!1);this.Yx.T("");this.Ox.value=""}if(r&&r.acc&&r.acc.dname)this.Nq.T(r.acc.dname);else this.Nq.T("")};
aw.B3.prototype.r7=function(L,C){var U=B.w("table");U.innerHTML="\t\t\t\t<table>\t\t\t\t\t<tr>   <th class=\"left\"></th><th>30 days</th><th>90 days</th> "+(L==3?"<th>365 days</th>":"")+" </tr>\t\t\t\t</table>\t\t\t";
for(var H=0;H<C.length;H+=L+1){var E=B.w("tr"),Y;U.appendChild(E);Y=B.w("td","left");E.appendChild(Y);
Y.innerHTML="<b>"+C[H]+"</b>";for(var z=0;z<L;z++){Y=B.w("td");E.appendChild(Y);Y.appendChild(C[H+1+z].j)}}return U};
aw.B3.prototype.ol=function(L){var C=this.se.indexOf(L.currentTarget),E=30,Y=1;if(!cN.PW()){alert("You must log in before buying Premium");
return}if(this.ao0.u()==!1&&C<9){alert("You must accept Terms of Service");return}var U=cN.PW()&&cN.ez();
if(C!=-1){var z=this.a80[C];E=z[1];Y=z[2]}if(U&&Y<1e3){alert("You already have premium.");return}if(C==-1){var r=prompt("Please enter your key");
if(r!=null){cN.aau(r,this.$O.bind(this));this.ep()}return}if(E==30&&Y==1){var p=confirm("You can have a 90 days version for $10. Do you still want a 30 days version for $9?");
if(!p)return}cN.order(E,Y,this.$O.bind(this));this.ep()};aw.B3.prototype.$O=function(L){if(cN.PW()&&cN.lE().msg)alert(cN.lE().msg);
this.jn();this.ep()};aw.B3.prototype.hD=function(L){if(cN.PW()){cN.acZ();this.ep();this.jn(null,null,null)}else cN.hD(this.anz.bind(this))};
aw.B3.prototype.anz=function(){var L=new q(B.E.l,!0);L.data={e:B.U.a0w};this.B(L)};aw.B3.prototype.ep=function(){var L=new q(B.E.l,!0);
L.data={e:B.U.gr};this.B(L)};aw.NR=function(L){gG.call(this);this.j=B.w("div");var C=this.j,U=this.aki=new br([0,13,2],!1,null,!0);
U.k("click",this.aj8,this);C.appendChild(U.j);var E=B.w("div");E.innerHTML=L;C.appendChild(E)};aw.NR.prototype=new gG;
aw.NR.prototype.aj8=function(L){var C=new q("showpage",!0);C.data={Oi:0};this.B(C)};aw.NR.prototype.f=function(){this.aki.f()};
aw.a6m="\t\t<h1>Contact</h1>\t\t<p>Photopea.com is a service operated by Ivan Kuckir (I\u010C 04498411).</p>\t\t<ul>\t\t\t<li><b>Address</b>: H\xE1lkova 483, Kostelec nad Orlic\xED, Czech Republic</li>\t\t\t<li><b>E-mail</b>: support@photopea.com</li>\t\t\t<li><b>Phone number</b>: +420 604 592 737</li>\t\t</ul>\t\t<p>You can ask for a refund by writing us an email.</p>\t\t<p>You can pay with PayPal or your credit / debit card. Payments are processed instantly, your Premium account will be activated instantly.</p>\t";
aw.aby="\t\t<h1>Terms of Service</h1>\t\t\t\t<h2>What are these Terms?</h2>\t\t<p>\t\tThese terms form a binding contract between you and us (\"these Terms\") regarding your access to and use of any of our web sites, \t\tweb applications, services, products and Software that contain a link to these Terms (individually and collectively, the \"Service\"). \t\t</p>\t\t\t\t<h2>Changes to the Service or these Terms</h2>\t\t<p>\t\tWe may make changes to, update (or not update) or discontinue any part, element, functionality, availability or offering of the Service.\t\tWe may also make changes or updates to these Terms at any time and for any reason in our sole discretion, including complying with applicable law. \t\tIf we make any material changes to these Terms, we\u2019ll provide notice to you in any way we deem reasonable including, for example, \t\tby posting a notice of the change on our web site(s) or in-service, or by sending a notice to your email address if you\u2019ve given it to us.\t\t</p>\t\t\t\t<h2>Your content</h2>\t\t<p>\t\tThese Terms don\u2019t grant us (and we don\u2019t claim) any ownership rights in Your Content.\t\t</p>\t\t<p>\t\t<b>Posting Your Content.</b> By sharing, publishing (e.g. through Imgur), distributing or allowing others to \t\taccess Your Content through the Service You are solely responsible for the consequences of doing so and you acknowledge \t\tand agree that Your Content may be viewed worldwide. If you choose to make your personal information publicly available through the Service, \t\tyou do so at your own risk. You warrant that you have obtained all necessary licenses, \t\trights and permissions to use and grant all of the rights granted in these Terms\t\tto Your Content and that you will comply with any requirements or restrictions imposed by them.\t\t</p>\t\t<!--\t\t<p>\t\tWe have the right (but not the obligation) to pre-screen or monitor any Content or any user's access to the Service,\t\tand to remove or block access to any Content for any reason, or suspend or terminate any user's access to the Service for any reason. \t\tWe have no responsibility or liability with respect to any Content, including for any actions that we may take with respect \t\tto any Content that we determine violates these Terms.\t\t</p>\t\t-->\t\t\t\t<h2>Registering for the Service</h2>\t\t<p>\t\tYou may be required or permitted to register with us to access the Service or certain areas of the Service.\t\tYou agree to immediately notify us of any unauthorized use of your registration information (including all purchases).  \t\tYou may also be able to sign into the Service by using a third-party social networking platform account \t\t(such as Facebook, Google+ or Twitter). Your registration information (including your user name and password, \t\tand any social networking account with which you sign into the Service) is for your personal use only, and not for use by any other person. \t\tYou are responsible for maintaining the confidentiality of any password you may use to access the Service, and agree not to transfer your password or user name\t\tto any third party. You are fully responsible for all use of your registration information, \t\tand to ensure that you \"log out\"/exit from your account with the Service (if applicable) \t\tat the end of each session. We are not liable for any loss or damage arising from your failure to comply with any of the foregoing obligations. \t\t</p>\t\t\t\t<h1>Privacy Policy</h1>\t\t\t\t<p>\t\tBy voluntarily providing us with Personal Data, you are consenting to our use of it in accordance with this Privacy Policy. \t\tIf you provide Personal Data to the Service, you acknowledge and agree that such Personal Data may be transferred from your current location to our servers.\t\t</p>\t\t<p>Computer information collected:</p>\t\t\t\t<ul>\t\t\t\t<li><b>Third party tracking tools.</b> We use third party tracking tools to improve the performance and features of the Service (e.g. Google Analytics).\t\t\t\tSuch tools are created and managed by parties outside our control. As such, we are not responsible for what information is actually captured by such third parties \t\t\t\tor how such third parties use and protect that information.</li>\t\t\t\t\t\t\t\t<li><b>Name and email for the authorization.</b> You may use third-party services (such as Facebook or Google) to log into the Service. \t\t\t\tIn such case, we store your name and email address, that were provided to us by third-party services.</li>\t\t\t\t\t\t\t\t<li><b>Environment settings.</b> When you use the Service, environment settings (e.g. current language, current color theme) \t\t\t\tare stored at your computer in \"localData\".\t\t\t\tIt helps us provide you the same environment when you visit the Service next time.<br/>\t\t\t\tWhen you log into the Service, your environemnt settings are stored at our server. \t\t\t\t</li>\t\t\t\t\t\t\t\t<li><b>Payer information.</b> When you make an order inside the Service and you pay through a third-party service (e.g. PayPal), \t\t\t\twe may store the information about the payer, that we may receive from the third-party service \t\t\t\t(it usually contains the name, the email address and the physical address of the payer, but no card nambers or passwords).</li>\t\t</ul>\t\t\t\t";
function cT(){da.call(this,[11,14],"addguides");this.L2;this.OY={qA:{Ca:0}};this.ku=null;var L=B.w("div","form");
this.body.appendChild(L);this.sA=new hq([22,4,0],null,16);this.sA.k(B.E.L,this.gB,this);this.v1=new hq([22,4,1],null,16);
this.v1.k(B.E.L,this.gB,this);this.RJ=new bS(null,c.Mb.JO);this.RJ.k(B.E.L,this.gB,this);L.appendChild(this.sA.j);
L.appendChild(this.RJ.j);B.E4(L);L.appendChild(this.v1.j);this.Mo=new br("OK",!0,null,!0);this.Mo.k("click",this.Rf,this);
L.appendChild(this.Mo.j);this.k("closebtn",this.a1x,this)}cT.prototype=new da;cT.prototype.Kc=function(L,C){return L!=null};
cT.prototype.sH=function(){return!0};cT.prototype.f=function(){da.prototype.f.call(this);this.sA.f();
this.v1.f();this.RJ.f()};cT.prototype.hU=function(L,C){var U=L.qA.Ca;this.OY.qA.Ca=U;this.RJ.T(U)};cT.prototype.jn=function(L,C){this.L2=L;
this.ku=JSON.stringify(L.Pr);this.Tj()};cT.prototype.Tj=function(){var L=this.L2,C=L.Pr,U=function(E,L,Y,z){var r=[];
for(var H=0;H<E.length;H++)r.push(c.Mb.S9(E[H],L._Q,Y,z));return r.join(", ")};this.sA.T(U(C[1],L,this.OY,L.v));
this.v1.T(U(C[0],L,this.OY,L.d))};cT.prototype.gB=function(L){if(L&&L.currentTarget==this.RJ)this.OY.qA.Ca=this.RJ.u();
else{var C=this.Ob(this.sA),U=this.Ob(this.v1),E=this.L2;E.Pr=[U,C];E.eP=!0}this.Tj()};cT.prototype.Ob=function(L){var C=L==this.sA?this.L2.v:this.L2.d,U=L.u().replace(/,/g," ").replace(/  +/g," ").trim(),E=U==""?[]:U.split(" ");
for(var H=0;H<E.length;H++)E[H]=c.Mb.a8s(E[H],this.L2._Q,this.OY,C);return E};cT.prototype.a1x=function(L){var C=this.L2;
C.Pr=JSON.parse(this.ku);C.eP=!0;this.L2=null};cT.prototype.Rf=function(L){this.gB(L);var C=new q(B.E.A,!0);
C.m=W.Ml;C.data={e:"gids",jy:JSON.parse(this.ku),Ee:JSON.parse(JSON.stringify(this.L2.Pr))};this.L2=null;
this.close();this.B(C)};function fc(L){var C=hi.names[L];if(C==null)C=eh.names[L];if(L=="aply")C="Apply Image";
if(L=="fade")C=[2,11];if(L=="blendOptions")C=[14,10];da.call(this,C,"afw_"+L);this.o3=L;this.ys=null;
this.Vh=null;this.hR=new j[L];this.hR.k(B.E.L,this.yy,this);this.hR.parent=this;this.body.appendChild(this.hR.j);
this.AL=new dh([24,18,5]);this.AL.T(!0);this.AL.k(B.E.L,this.yy,this);this.ahp=new br("Reset",!0,null,!0);
this.ahp.k("click",this.J1,this);this.Mo=new br("OK",!0,null,!0);this.Mo.k("click",this.Rf,this);if(this.xI())this.hR.C6(this.Mo.j);
else{B.QS(this.hR.j,"form");B.QS(this.body,"flexrow");this.hR.j.setAttribute("style","width:24em");var U=B.w("div");
this.body.appendChild(U);U.setAttribute("style","width:8em; margin-left:1em; line-height:2.3em");U.appendChild(this.Mo.j);
U.appendChild(this.ahp.j);U.appendChild(this.AL.j)}this.k("closebtn",this.di,this)}fc.prototype=new da;
fc.prototype.sH=function(){return!0};fc.prototype.xI=function(){return this.hR!=null&&this.hR.ou()};
fc.prototype.EO=function(){return this.xI()?new hZ(0,0):da.prototype.EO()};fc.prototype.lW=function(){return this.hR.lW()};
fc.prototype.zI=function(L,C,U,E,Y){this.hR.zI(L,C,U,E,Y)};fc.prototype.Yh=function(L,C,U,E,Y){this.hR.Yh(L,C,U,E,Y)};
fc.prototype.bM=function(L,C,U,E,Y){this.hR.bM(L,C,U,E,Y)};fc.prototype.Kc=function(L,C){if(this.o3=="fade")return fc.i7(L);
return!0};fc.prototype.J1=function(L){this.hR.T(hi.Q4(this.o3));this.yy()};fc.prototype.yy=function(L){this.ve({e:"edit",oe:this.hR.u(),WH:!this.AL.u()})};
fc.prototype.di=function(L){this.ve({e:"cancel"})};fc.prototype.Rf=function(L){if(!this.AL.u()){this.AL.T(!0);
this.yy()}this.Vh=this.hR.u();if(this.xI())this.yy();this.ve({e:"confirm"});this.close()};fc.prototype.f=function(){da.prototype.f.call(this);
this.AL.f();if(this.hR)this.hR.f()};fc.prototype.hU=function(L,C){if(this.hR)this.hR.hU(L,C)};fc.prototype.fj=function(L,C,U,E){if(this.xI())this.hR.fj(E);
else da.prototype.fj.call(this,L,C,U,E)};fc.prototype.jn=function(L,C,U,E){this.ys=C.ys;var Y=L.add.lnk2?L.add.lnk2:[],z,r,p=new _(0,0,L.d,L.v),T=L.N[L.C[0]],k=null;
z=T.buffer;r=T.rect;if(this.xI())k=L.E0(L.C[0]-1);var P=hi.Q4(this.o3),b=[Y,L.vI,L];if(C.ys==null){this.hR.T(P,z,r,p,k,b);
if(eh.names[this.o3]){if(E.q(G.Lv)&&this.Vh)this.hR.T(this.Vh);var Q=hO.PU.getData(L),K=c.aP(Q[0].JL);
this.hR.Uz(K)}}else{var h=!1,T=L.N[this.ys.$];if(T.s7()){var x=T.iC(L);z=x.buffer;r=x.rect;var O=T.add.SoLd.filterFX.v.filterFXList.v;
if(O[this.ys.index]){var y=O[this.ys.index].v,v=y.Fltr.v;this.hR.T(this.o3=="blendOptions"?y.blendOptions.v:v,z,r,p,k,b);
this.hR.Uz(c.aP(z));h=!0}}if(!h){this.hR.T(P,z,r,p,k,b);this.hR.Uz(c.aP(z))}}if(!this.xI())this.yy()};
fc.prototype.ve=function(L){var C=new q(B.E.A,!0);L.o3=this.o3;L.ys=this.ys;C.data=L;C.m=hi.names[this.o3]||this.ys?W.Jy:W.E_;
C.Fw=!0;this.B(C)};fc.prototype.AU=function(L,C){C=C-26;L=L-26;this.hR.AU(L,C)};fc.i7=function(L){if(L==null)return!1;
var C=L.bQ();if(C==null||!(C.data instanceof Array)||C.data.length!=L.C.length)return!1;for(var H=0;
H<C.data.length;H++){var U=C.data[H];if(U.$<0&&L.vI[-1-U.$])return!0;if(U.$==null||L.N[U.$]==null||L.N[U.$].yQ!=U.yj)return!1;
if(L.C.indexOf(U.$)==-1)return!1}return!0};function h3(){da.call(this,[11,0],"camera");this.data=null;
this.FY=new hZ(1,1);this.ajo=[];var L=B.w("div","form hbar");this.body.appendChild(L);this.aiB=new bS(null,[]);
this.Cs=new bS([21,0],[[21,2],[21,1]]);L.appendChild(this.Cs.j);this.QY=new bS(null,[]);this.QY.k(B.E.L,this.pk,this);
L.appendChild(this.QY.j);this.XG=new br([11,0],!1,null,!0);this.XG.k("click",this.ajA,this);L.appendChild(this.XG.j);
this.bZ=new ip("");L.appendChild(this.bZ.j);this.stream=null;this.gg=B.w("video","");this.gg.setAttribute("autoplay","true");
this.body.appendChild(this.gg);this.a3Q=this.ake.bind(this);this.alm=this.a0C.bind(this);this.a2R=this.a5U.bind(this);
this.k("closebtn",this.TB,this)}h3.prototype=new da;h3.prototype.f=function(){da.prototype.f.call(this);
this.Cs.f();this.XG.f();this.AU(this.aU,this.fg)};h3.prototype.E0=function(){var L=this.gg.videoWidth,C=this.gg.videoHeight,U=B.w("canvas","");
U.width=L;U.height=C;var E=U.getContext("2d");E.drawImage(this.gg,0,0,L,C);var Y=E.getImageData(0,0,L,C);
return{bl:new _(0,0,L,C),data:Y.data.buffer}};h3.prototype.ajA=function(L){if(this.Cs.u()==0)this.am4();
else this.a7C()};h3.prototype.a7C=function(){var L=this.E0(),C={buffer:new Uint8Array(L.data),rect:L.bl},U=new q(B.E.A,!0);
U.Fw=!0;U.m=W.aV;U.data={e:o.oh,rC:C};this.B(U);alert(gS.get([21,4]))};h3.prototype.am4=function(){var L=this.E0(),C=iL.KG("camera",[L]),U=new q(B.E.l,!0);
U.data={e:B.U.Nd,_u:C};this.B(U);alert(gS.get([21,5]))};h3.prototype.jn=function(L,C,U){navigator.mediaDevices.enumerateDevices().then(this.a9e.bind(this))};
h3.prototype.a9e=function(L){var C=this.ajo=[],U=[];for(var H=0;H<L.length;H++)if(L[H].kind=="videoinput"){C.push(L[H]);
U.push("Camera "+C.length)}this.QY.SU(U);this.QY.T(0);this.pk()};h3.prototype.pk=function(L){this.TB();
var C={video:{deviceId:this.ajo[this.QY.u()].deviceId,width:{ideal:8e3},height:{ideal:8e3}}};if(navigator.mediaDevices.getUserMedia)navigator.mediaDevices.getUserMedia(C).then(this.a3Q).catch(this.alm);
else navigator.webkitGetUserMedia(C,this.a3Q,this.alm)};h3.prototype.ake=function(L){this.stream=L;this.gg.srcObject=L;
this.gg.addEventListener("loadedmetadata",this.a2R,!1)};h3.prototype.a5U=function(L){this.gg.play();
this.AU(this.aU,this.fg)};h3.prototype.EO=function(L,C){return new hZ(0,0)};h3.prototype.AU=function(L,C){var U=this.gg.videoWidth,E=this.gg.videoHeight;
this.bZ.T(U+" x "+E+" px");this.bZ.j.setAttribute("style","position:absolute;  left:14px; bottom:10px; z-index:1;");
this.FY.U6(U,E);this.aU=L;this.fg=C;var Y=L-28,z=C-28-30,r=this.FY.x/this.FY.y;if(Y/z>r)Y=z*r;else z=Y/r;
this.gg.setAttribute("style","display: block; width: "+Math.round(Y)+"px; height:"+Math.round(z)+"px;")};
h3.prototype.a0C=function(L){console.log("error",L);alert(gS.get([21,6]));this.close()};h3.prototype.TB=function(L){if(this.stream!=null){var C=this.stream.getTracks();
for(var H=0;H<C.length;H++)C[H].stop();this.stream=null}};function ab(){da.call(this,[7,8],"crange");
this.L2=null;this.QB={QD:73,R:4.45,O:4};this.Ff={QD:73,R:4.45,O:4};var L=B.w("div","form");L.setAttribute("style","width:18em");
this.body.appendChild(L);this.jj=new cG([12,92],0,200);this.jj.T(40);this.jj.k(B.E.L,this.L9,this);L.appendChild(this.jj.j);
this.UF=B.w("canvas");L.appendChild(this.UF);this.Qu=new dr([12,36],[[18,0],"\uFF0B","\u2014"]);L.appendChild(this.Qu.j);
this.xG=new br("OK",!0,null,!0);this.xG.k("click",this.Rf,this);this.body.appendChild(this.xG.j)}ab.prototype=new da;
ab.prototype.Kc=function(L,C){return L!=null};ab.prototype.lW=function(){return!0};ab.prototype.sH=function(){return!0};
ab.prototype.f=function(){da.prototype.f.call(this);this.jj.f();this.Qu.f()};ab.prototype.zI=function(L,C,U,E,Y){var z=L.z.sQ(Y.x,Y.y);
this.t0(z.x,z.y)};ab.prototype.t0=function(L,C){var U=Math.min,E=Math.max,Y=this.L2,z=E(0,U(Y.d-1,Math.floor(L))),r=E(0,U(Y.v-1,Math.floor(C))),p=Y.E0(),T=(r*Y.d+z)*4,k=p[T],P=p[T+1],b=p[T+2],Q=c.E8(k,P,b),K=this.Qu.u(),h=this.QB,x=this.Ff;
if(K==0){this.QB=JSON.parse(JSON.stringify(Q));this.Ff=Q}else if(K==1){h.QD=U(h.QD,Q.QD);h.R=U(h.R,Q.R);
h.O=U(h.O,Q.O);x.QD=E(x.QD,Q.QD);x.R=E(x.R,Q.R);x.O=E(x.O,Q.O)}else if(K==2){var O=(h.QD+x.QD)/2,y=(h.R+x.R)/2,v=(h.O+x.O)/2;
if(Q.QD<O)h.QD=E(h.QD,Q.QD+10);else x.QD=U(x.QD,Q.QD-10);if(Q.R<y)h.R=E(h.R,Q.R+1);else x.R=U(x.R,Q.R-1);
if(Q.O<v)h.O=E(h.O,Q.O+1);else x.O=U(x.O,Q.O-1)}this.L9()};ab.prototype.Rf=function(L){var C=new q(B.E.A,!0);
C.m=W.Y7;C.data={e:"crange",Uh:this.QB,fX:this.Ff,oD:this.jj.u()/200};C.Fw=!0;this.B(C);this.close()};
ab.prototype.jn=function(L,C){this.L2=L;this.t0(0,0)};ab.prototype.L9=function(){var L=this.L2,C=W.kd.yW(L,this.QB,this.Ff,this.jj.u()/200),U=C.rect,E=C.channel,Y=this.UF,z=Y.getContext("2d"),r=Math.floor(230*B.M()),p=Math.floor(r*(U.v/U.d));
Y.width=r;Y.height=p;B.IO(Y,r,p);var T=c.F(E.length*4);c.n0(T,4294967295);for(var H=0;H<3;H++)c.Wn(E,T,H);
var k=W.o.dy([T,U],new c0(r/U.d,0,0,p/U.v,0,0)),P=k.rect,b=new ImageData(new Uint8ClampedArray(k.buffer.buffer),P.d,P.v);
z.putImageData(b,0,0)};function dV(){da.call(this,[12,76,1],"createshape");this.x3=null;var L=B.w("div","form");
L.setAttribute("style","width:20em");this.body.appendChild(L);this.P8=new cU([12,41],0,0,null,0,!1,!0);
L.appendChild(this.P8.j);B.E4(L);this.sA=new cU([12,42],0,0,null,0,!1,!0);L.appendChild(this.sA.j);B.E4(L);
this.JZ=new dh([19,5,3]);L.appendChild(this.JZ.j);this.P8.T(100);this.sA.T(100);this.Mo=new br("OK",!0,null,!0);
this.Mo.k("click",this.Rf,this);L.appendChild(this.Mo.j)}dV.prototype=new da;dV.prototype.Rf=function(L){this.x3.aaj(this.x3.a5_,this.P8.u(),this.sA.u(),this.JZ.u());
this.close()};dV.prototype.f=function(){if(this.x3)this.Kd=gS.get([5,3])+": "+gS.get(this.x3.a54);da.prototype.f.call(this);
this.P8.f();this.sA.f();this.JZ.f()};dV.prototype.jn=function(L,C){this.x3=C;this.f()};function el(){da.call(this,[11,1],"colorpicker");
this.tq=null;this.s8=null;this.U7=null;this.gp=!1;this.Da=!1;var L=B.w("div","flexrow"),z,r;this.body.appendChild(L);
this.Xi=new dm(256);this.Xi.k(B.E.L,this.io,this);L.appendChild(this.Xi.j);var C=B.w("div","form");C.setAttribute("style","width:14.5em; margin-left:1em;");
L.appendChild(C);this.aeB=B.w("div","full");C.appendChild(this.aeB);this.a1w=B.w("div","full");C.appendChild(this.a1w);
var U=B.w("div","flexrow");C.appendChild(U);var E=B.w("div"),Y=B.w("div");U.appendChild(E);U.appendChild(Y);
z=["R","G","B"];r=E;this.Gh=[];for(var H=0;H<3;H++){var p=new cU(z[H]+":",0,255,null,0,!1,!0);this.Gh.push(p);
p.k(B.E.L,this.a2e,this);r.appendChild(p.j)}z=["H","S","B"];r=Y;this.CM=[];for(var H=0;H<3;H++){var T=0,k=360,P="\xB0";
if(H!=0){k=100;P="%"}var p=new cU(z[H]+":",T,k,P,0,!1,!0);this.CM.push(p);p.k(B.E.L,this.aiv,this);r.appendChild(p.j)}this.sA=new hq("Hex",null,6);
this.sA.k(B.E.L,this.u0,this);C.appendChild(this.sA.j);this.ZX=B.w("input","fitem");this.ZX.setAttribute("type","color");
this.ZX.setAttribute("style","width:50px");this.ZX.addEventListener("change",this.u0.bind(this),!1);
C.appendChild(this.ZX);this.Cl=new hc(9);this.Cl.k(B.E.L,this.u0,this);C.appendChild(this.Cl.j);this.Mo=new br("OK",!0,null,!0);
this.Mo.k("click",this.Rf,this);C.appendChild(this.Mo.j);this.k("closebtn",this.di,this);this.OK=!1}el.prototype=new da;
el.prototype.lW=function(){return!0};el.prototype.AU=function(L,C){this.Xi.AU(Math.min(256,L-250),C)};
el.prototype.io=function(L){this.s8=this.Xi.u();this.update()};el.prototype.zI=function(L,C,U,E,Y){this.OK=!0;
this.hq(L,Y)};el.prototype.Yh=function(L,C,U,E,Y){if(!this.OK)return;this.hq(L,Y)};el.prototype.bM=function(L,C,U,E,Y){this.OK=!1};
el.prototype.hq=function(L,C){var U=W.Ra.Vy(L,C,1),E=U&255,Y=U>>8&255,z=U>>16&255;this.s8={h:z/255,P:Y/255,O:E/255};
this.update()};el.prototype.a2e=function(L){var C=this.Gh,U=this.ds(parseInt(C[0].u())),E=this.ds(parseInt(C[1].u())),Y=this.ds(parseInt(C[2].u()));
this.s8={h:U/255,P:E/255,O:Y/255};this.update()};el.prototype.aiv=function(L){var C=this.CM,U=this.uA(parseInt(C[0].u())/360),E=this.uA(parseInt(C[1].u())/100),Y=this.uA(parseInt(C[2].u())/100);
this.s8=c.D5(U,E,Y);this.update()};el.prototype.u0=function(L){var C;if(L.currentTarget==this.Cl)C=this.Cl.u();
else{C=L.currentTarget==this.sA?this.sA.u():this.ZX.value;if(C.charAt(0)=="#")C=C.slice(1);if(C.length==3)C=C[0]+C[0]+C[1]+C[1]+C[2]+C[2];
C=c.hA(C)}this.s8={h:(C>>16&255)/255,P:(C>>8&255)/255,O:(C&255)/255};this.update()};el.prototype.YV=function(L){var C=L.h,U=L.P,E=L.O;
return Math.round(C*255)<<16|Math.round(U*255)<<8|Math.round(E*255)};el.prototype.Rf=function(L){this.p4();
var C=this.YV(this.s8);this.U7(C);this.close();this.Da=!1;this.s8=null};el.prototype.di=function(L){this.p4();
if(this.gp)this.U7(this.YV(this.tq));this.Da=!1;this.s8=null};el.prototype.p4=function(L){var C=new q(B.E.l,!0);
C.data={e:B.U.ZD};this.B(C)};el.prototype.hU=function(L,C){if(C!=c_.GM)return;var U=L.yx;this.Cl.T(U);
if(this.s8!=null){this.s8={h:(U>>16&255)/255,P:(U>>8&255)/255,O:(U>>0&255)/255};this.update()}};el.prototype.jn=function(L,C){var U=C.Cc,E={h:(U>>16&255)/255,P:(U>>8&255)/255,O:(U>>0&255)/255};
if(this.s8==null){var Y=new q(B.E.l,!0);Y.data={e:B.U.lx,aZ:"crosshair",push:!0};this.B(Y);this.OK=!1;
this.U7=C.SL;this.gp=!1;this.Da=C.U2;this.tq=JSON.parse(JSON.stringify(E));this.a1w.setAttribute("style","height:3em;background-color:#"+c.Xo(U)+";")}this.s8=E;
this.update()};el.prototype.update=function(){var L=this.s8,C=this.YV(L),U=this.Gh;U[0].T(Math.round(L.h*255));
U[1].T(Math.round(L.P*255));U[2].T(Math.round(L.O*255));this.sA.T(c.Xo(C));this.ZX.value="#"+c.Xo(C);
this.aeB.setAttribute("style","height:3em;background-color:#"+c.Xo(C)+";");var E=c.t2(L.h,L.P,L.O);U=this.CM;
U[0].T(Math.round(E.fg*360));U[1].T(Math.round(E.uR*100));U[2].T(Math.round(E.oe*100));this.Xi.T(L);
if(this.Da){this.U7(this.YV(this.s8));this.gp=!0}};el.prototype.ds=function(L){return Math.max(0,Math.min(255,L))};
el.prototype.uA=function(L){return Math.max(0,Math.min(1,L))};function et(){da.call(this,[11,2],"contoureditor");
this.agf=null;this.Iu=null;this.response=null;this.o6=B.w("div","cell");this.body.appendChild(this.o6);
this.QF=B.w("div","cell padded");this.body.appendChild(this.QF);var L=B.w("div","bordered padded vmargin");
this.o6.appendChild(L);this.hR=new ig;this.hR.k(B.E.L,this.fa,this);L.appendChild(this.hR.j);this.Mo=new br("OK",!0,null,!0);
this.Mo.k("click",this.close,this);this.QF.appendChild(this.Mo.j);this.coords=B.w("div","");this.coords.setAttribute("style","width:250px");
this.o6.appendChild(this.coords);this.WO=new hq("X (in)","%",4);this._Z=new hq("Y (out)","%",4);this.rE=new dh([19,3,0]);
this.WO.k(B.E.L,this.Xe,this);this._Z.k(B.E.L,this.Xe,this);this.rE.k(B.E.L,this.Xe,this);this.coords.appendChild(this.WO.j);
this.coords.appendChild(this.rE.j);this.coords.appendChild(this._Z.j);this.k("closebtn",this.ZS,this)}et.prototype=new da;
et.prototype.f=function(){da.prototype.f.call(this);this.rE.f()};et.prototype.fa=function(L){this.Iu.Crv.v=this.hR.u();
this.response(this.Iu);this.TS()};et.prototype.ZS=function(L){this.response(this.agf)};et.prototype.jn=function(L,C){this.agf=JSON.parse(JSON.stringify(C.e4));
this.Iu=C.e4;this.response=C.response;this.hR.T(this.Iu.Crv.v);this.TS()};et.prototype.TS=function(){var H=this.hR.jQ();
this.coords.setAttribute("class",H==-1?"disabled":"");if(H==-1)return;var L=this.Iu.Crv.v[H].v;this.WO.T(Math.round(L.Hrzn.v*(100/255)));
this._Z.T(Math.round(L.Vrtc.v*(100/255)));this.rE.T(L.Cnty.v)};et.prototype.Xe=function(L){var H=this.hR.jQ(),C=this.Iu.Crv.v[H];
C.v.Hrzn.v=parseFloat(this.WO.u())*(255/100);C.v.Vrtc.v=parseFloat(this._Z.u())*(255/100);C.v.Cnty.v=this.rE.u();
this.Iu.Crv.v.sort(function(U,E){return U.v.Hrzn.v-E.v.Hrzn.v});this.hR.T(this.Iu.Crv.v,this.Iu.Crv.v.indexOf(C));
this.TS();this.response(this.Iu)};function cp(){da.call(this,[11,3],"csize");this.qE=0;this.hd=B.w("div","form");
this.hd.setAttribute("style","width:22em");this.body.appendChild(this.hd);this.gd=new gC(!0,!0,!0,!0);
this.gd.ai8(!1);this.hd.appendChild(this.gd.j);this.fB=new dr("Align with",[[8,7],[12,6]]);this.fB.k(B.E.L,this.ajw,this);
this.KY=new cP([12,23,2],41);this.hd.appendChild(this.KY.j);this.KY.T(4);this.Yi=new aV(!1);this.Yi.aaR(new hZ(0,0));
this.xG=new br("OK",!0,null,!0);this.xG.k("click",this.Rf,this);this.body.appendChild(this.xG.j)}cp.prototype=new da;
cp.prototype.Kc=function(L,C){return L!=null};cp.prototype.sH=function(){return!0};cp.prototype.ajw=function(){var L=[this.KY.j,this.Yi.j];
this.hd.removeChild(L[this.qE]);this.qE=this.fB.u();this.hd.appendChild(L[this.qE])};cp.prototype.f=function(){da.prototype.f.call(this);
this.gd.f();this.fB.f();this.KY.f();this.Yi.f()};cp.prototype.Rf=function(L){var C=this.gd.u(),U=C.x,E=C.y,Y=new q(B.E._w,!0);
Y.data=W.yP.eW(U,E,this.KY.u());this.close();this.B(Y)};cp.prototype.jn=function(L,C){this.gd.T(new hZ(L.d,L.v),L._Q)};
function hv(){da.call(this,[11,4],"duplinto");this.$M=null;this.Vn=null;var L=B.w("div","form");L.setAttribute("style","max-width:26em");
this.body.appendChild(L);this.Ba=new bS([12,43],["abc","def"]);this.Ba.k(B.E.L,this.s4,this);L.appendChild(this.Ba.j);
B.E4(L);this.Ha=new hq([12,48],null,14);L.appendChild(this.Ha.j);this.Mo=new br("OK",!0,null,!0);this.Mo.k("click",this.Rf,this);
L.appendChild(this.Mo.j)}hv.prototype=new da;hv.prototype.sH=function(){return!0};hv.prototype.f=function(){da.prototype.f.call(this);
this.Ba.f();this.Ha.f()};hv.prototype.s4=function(L){var C=this.Ba.u();if(C==this.Vn.length)this.Ha.rX();
else this.Ha.aA()};hv.prototype.jn=function(L,C,U){this.$M=L;this.Vn=U;this.Ha.T(L.C.length==0?"Layer":L.N[L.C[0]].getName());
var E=[];for(var H=0;H<U.length;H++)E.push(U[H].name);E.push([11,7]);this.Ba.SU(E);this.Ba.T(U.indexOf(L));
this.s4(null)};hv.prototype.Rf=function(L){var C=this.Ba.u();if(C==this.Vn.length){var U=new b7(this.Ha.u()+".psd");
U.d=this.$M.d;U.v=this.$M.v;U.buffer=c.F(U.d*U.v*4);var E=U.wP();E.I_("Background");U.o2([E]);var Y=new q(B.E.l,!0);
Y.Fw=!0;Y.data={e:B.U.Nd,_u:U};this.B(Y)}var z=this.$M.LR(null,this.$M!=this.Vn[C]),Y=new q(B.E.A,!0);
Y.data={e:o.JU,N:z,R7:this.$M,eb:this.Vn[C]};Y.m=W.aV;Y.Fw=!0;this.B(Y);this.close()};function d9(){da.call(this,[1,9],"eassets");
this.OY=null;this.hN=null;var L=B.w("div","form");L.setAttribute("style","width:32em");this.body.appendChild(L);
this.eL=B.w("span");L.appendChild(this.eL);B.E4(L);this._G=[new dh("Only layers / folders, whose name starts with \"-e-\""),new dh("Remove parts outside the canvas"),new dh("Trim transparent parts")];
for(var H=0;H<3;H++){var C=this._G[H];C.T(!0);C.k(B.E.L,this.Tj,this);L.appendChild(C.j);B.E4(L)}this.QH=new b9([12,14,0],["1x","2x","3x","4x"]);
this.QH.T([!0,!1,!1,!1]);L.appendChild(this.QH.j);B.kL(L);this.za=["PNG","JPG","SVG"];this.$V=new bS([12,50],this.za);
this.$V.k(B.E.L,this.HF,this);L.appendChild(this.$V.j);this.cj=new h_;L.appendChild(this.cj.j);this.xG=new br([1,9],!0,null,!0);
this.xG.k("click",this.Rf,this);L.appendChild(this.xG.j);this.k("closebtn",this.Ax,this)}d9.prototype=new da;
d9.prototype.HF=function(L){this.cj.WE(this.za[this.$V.u()])};d9.prototype.Ax=function(L){this.hN=null};
d9.prototype.f=function(){da.prototype.f.call(this);this.$V.f();this.QH.f();this.xG.f();this.cj.f()};
d9.prototype.jn=function(L,C,U){this.hN=L;this.Tj()};d9.prototype.Tj=function(L){var C=this.xW(),U="- - - "+C.length+" exportable layers";
this.eL.textContent=U;this.HF(null)};d9.prototype.xW=function(){var L=this._G[0].u(),C=[],U=this.hN;
for(var H=0;H<U.N.length;H++){var E=U.N[H],Y=E.getName();if(!L&&!E.Jc()&&!E.rect.ue()||Y.startsWith("-e"))C.push(H)}return C};
d9.prototype.hU=function(L,C){this.OY=L};d9.prototype.Rf=function(L){var C=this.hN,U=[this.za[this.$V.u()]],E=[this.cj.u()],Y=this.QH.u(),z={},r={},p=this.xW();
if(p.length==0){alert("No layers to export.");return}var T=[this._G[1].u(),this._G[2].u()];for(var H=0;
H<p.length;H++){var k=p[H],P=C.N[k],b=P.getName();if(r[b]!=null){r[b]++;b+=" "+r[b]}else r[b]=1;var Q=P.rK();
P.Qs(!0);for(var K=0;K<Y.length;K++){if(!Y[K])continue;var h=K+1,x=W.P4.q5(C,U,h,this.OY,k,E,T);for(var O=0;
O<U.length;O++){var y=U[O],v=b.slice(b.startsWith("-e-")?3:0)+(h==1?"":"-"+h+"x")+"."+y.toLowerCase();
if(x[O])z[v]=new Uint8Array(x[O])}}P.Qs(Q)}var i=UZIP.encode(z),D=new q(B.E.l,!0);D.data={e:B.U.A_,data:i,name:"assets.zip"};
this.B(D)};function dJ(){da.call(this,"Export Color Lookup Tables","exlut");this.OY=null;this.hN=null;
var L=B.w("div","form");L.setAttribute("style","width:20em");this.body.appendChild(L);this._G=[new cU("Grid Points",1,256),new dr([12,50],[".CUBE"])];
var C=[16,0];for(var H=0;H<this._G.length;H++){var U=this._G[H];U.T(C[H]);U.parent=this;U.k(B.E.L,this.Tj,this);
L.appendChild(U.j);B.E4(L)}this.xG=new br("OK",!0,null,!0);this.xG.k("click",this.Rf,this);L.appendChild(this.xG.j);
this.k("closebtn",this.Ax,this)}dJ.prototype=new da;dJ.prototype.Kc=function(L,C){if(Math.min(L.d,L.v)<16){alert("The document must be at least 16 x 16 pixels.",3200);
return!1}if(L.N.length<2){alert("There must be a background layer and some adjustment layers.",3200);
return!1}return!0};dJ.prototype.Ax=function(L){this.hN=null};dJ.prototype.hU=function(L,C){this.OY=L};
dJ.prototype.jn=function(L,C,U){this.hN=L};dJ.prototype.Rf=function(){var L=this.hN,C=this._G[0].u(),U=[],E=new _(0,0,L.d,L.v),Y=c.F(C*C*4),z=Y.slice(0),r=new _(L.d-C>>>1,L.v-C>>>1,C,C),p=L.N[0],T=p.buffer,k=p.rect;
p.rect=r;p.buffer=Y;for(var P=0;P<C;P++){this.amp(C,P,Y);p.s(r);L.s(r);var b=L.E0();c.La(b,E,z,r);for(var Q=0;
Q<C;Q++)for(var K=0;K<C;K++){var h=Q*C+K<<2;U.push(z[h]/255,z[h+1]/255,z[h+2]/255)}}var x=gI.a3B(U,C,L.name);
g8.save(x,L.name.split(".")[0]+".CUBE");p.buffer=T;p.rect=k;p.s();L.s()};dJ.prototype.amp=function(L,C,U){var E=255/(L-1),Y=Math.round(C*E);
for(var z=0;z<L;z++)for(var r=0;r<L;r++){var p=z*L+r<<2;U[p]=Math.round(r*E);U[p+1]=Math.round(z*E);
U[p+2]=Y;U[p+3]=255}};dJ.prototype.f=function(){da.prototype.f.call(this);for(var H=0;H<this._G.length;
H++)this._G[H].f()};function dG(){da.call(this,[1,14],"finfo");this.GC=null;this.kP=null;this.v7=null;
this.hd=B.w("div","form scrollable label12");this.hd.setAttribute("style","width:35em;  height:38em;  margin-bottom:8px");
this.body.appendChild(this.hd);var L=B.w("div","form");this.body.appendChild(L);this.Cq=new bS(null,["Hello"]);
L.appendChild(this.Cq.j);this.a0L=new br("Add Parameter",!1,null,!0);L.appendChild(this.a0L.j);this.a0L.k("click",this.Lr,this);
this.vs=new br("=== S A V E ===",!1,null,!0);L.appendChild(this.vs.j);this.vs.k("click",this.VM,this);
this.aeO=""}dG.prototype=new da;dG.prototype.EO=function(L,C){return L<450||C<450?new hZ(0,0):new hZ(150,100)};
dG.prototype.Lr=function(L){if(this.v7.length==0)return;var C=this.v7[this.Cq.u()],U=this.dz();U[C]=bd.Wz[C][0];
this.Ya(U);this.kP[C].j.scrollIntoView();this.kP[C].Su()};dG.prototype.K9=function(L){var C=this.dz();
delete C[L.currentTarget.af$];this.Ya(C)};dG.prototype.VM=function(L){var C=this.dz(),U=this.GC,E=!0;
for(var Y in U)if(JSON.stringify(U[Y])!=JSON.stringify(C[Y]))E=!1;for(var Y in C)if(JSON.stringify(U[Y])!=JSON.stringify(C[Y]))E=!1;
if(E)return;var z=new q(B.E.A,!0);z.m=W.aV;z.data={e:o.$v,Jz:C};this.B(z);this.GC=C;this.Ya(C)};dG.BI=function(L){function C(Y){var z=Y.toLowerCase();
return Y==z}var U=L.split(":").pop();for(var E=1;E<U.length-1;E++){if(U[E]==U[E].toUpperCase()&&(C(U[E+1])||C(U[E-1]))){U=U.slice(0,E)+" "+U.slice(E);
E++}}return U};dG.prototype.jn=function(L,C){this.GC=L.Ii;this.Ya(L.Ii)};dG.prototype.Ya=function(L){var C=this.hd,Y=0;
B.CF(C);var U=this.kP={},E=["tiff","exif","exif:GPS"],z=this.v7=[],r=[];for(var p in bd.Wz){var T=dG.BI(p),k=0,P=15,b=null;
if(L[p]==null){z.push(p);r.push(T);continue}for(var H=0;H<E.length;H++)if(p.startsWith(E[H]))k=H;if(k!=Y){B.kL(C);
Y=k}if(p=="tiff:ImageDescription"||p=="dc:Keywords"){P=18.5;b=3}var Q=new hq(T,null,P,b);U[p]=Q;var K=L[p];
if(K instanceof Array)K=K[1]==0?"---":K[0]+"/"+K[1];var h=new br("\u2716",null,gS.get([5,4]));C.appendChild(h.j);
h.k("click",this.K9,this);h.af$=p;Q.T(K);C.appendChild(Q.j);B.E4(C);if(p=="exif:GPSLongitude"&&L["exif:GPSLatitude"]){this.aeO=dG.X1(L["exif:GPSLatitude"])+","+dG.X1(L["exif:GPSLongitude"]);
var x=new br("Show on map",!1,null,!0);C.appendChild(x.j);B.E4(C);x.k("click",this.ai5,this)}}this.Cq.SU(r);
this.Cq.T(0)};dG.prototype.dz=function(){var L=this.kP,C=bd.Wz,U={};for(var E in C){var Y=C[E][0],z=typeof Y;
if(Y==null||L[E]==null)continue;var r=L[E].u(),p="The value of \""+dG.BI(E)+"\" must ";if(z=="number"){r=parseFloat(r);
if(isNaN(r)){alert(p+"be a number.");r=Y}}else if(Y instanceof Array&&Y.length==2){if(r.indexOf("/")==-1){alert(p+"be a fraction.");
r=Y.slice(0)}else{r=r.split("/").map(parseFloat);if(isNaN(r[0])||isNaN(r[1])){r=Y.slice(0)}}}U[E]=r}return U};
dG.X1=function(L){var C=L.length,U=L.slice(0,C-1).split(",").map(parseFloat),E=L.slice(C-1),Y=U[0]+U[1]/60+U[2]/3600;
if(E!="N"&&E!="E")Y=-Y;return Y};dG.prototype.ai5=function(L){window.open("https://maps.google.com?q="+this.aeO,"Map")};
function aH(){da.call(this,[11,5],"gradienteditor");this.tq=null;this.s8=null;this.y$=null;this.U7=null;
this.gp=!1;this.Da=!1;B.QS(this.body,"form");this.Ri=null;this.sP=null;this.U5=-1;this.DU=-1;this.vk=0;
this.kf=this.cz.bind(this);this.T6=this.KR.bind(this);this.k2=B.w("canvas","");this.zS=this.k2.getContext("2d");
this.k2.setAttribute("style","display:block");this.ND=null;B.zC(this.k2);B.Vv(this.k2,this.Ko.bind(this));
this.MQ=new cU([19,3,3],0,100,"%");this.MQ.k(B.E.L,this.TY,this);this.MQ.parent=this;this.body.appendChild(this.MQ.j);
B.E4(this.body);this.db=new ip([12,0]);this.body.appendChild(this.db.j);this.vx=B.w("div","bordered padded noalign");
this.body.appendChild(this.vx);this.u8=new cU([12,0],0,100,"%");this.u8.parent=this;this.u8.k(B.E.L,this.TY,this);
this.vx.appendChild(this.u8.j);this.cS=new cU([12,40],0,100,"%");this.cS.parent=this;this.cS.k(B.E.L,this.TY,this);
this.vx.appendChild(this.cS.j);this.sT=new br([5,4],!1,null,!0);this.sT.k("click",this.V6,this);this.vx.appendChild(this.sT.j);
this.body.appendChild(this.k2);B.E4(this.body);this.a9D=new ip([13,0]);this.body.appendChild(this.a9D.j);
this.wn=B.w("div","bordered padded noalign");this.body.appendChild(this.wn);this.ij=new bS([12,44],[[12,45],[12,46],[12,47]]);
this.ij.k(B.E.L,this.TY,this);this.wn.appendChild(this.ij.j);this.bO=new di(!0);this.bO.parent=this;
this.bO.k(B.E.L,this.TY,this);this.wn.appendChild(this.bO.j);this.XA=new cU([12,40],0,100,"%");this.XA.parent=this;
this.XA.k(B.E.L,this.TY,this);this.wn.appendChild(this.XA.j);this.c7=new br([5,4],!1,null,!0);this.c7.k("click",this.$w,this);
this.wn.appendChild(this.c7.j);this.Mo=new br("OK",!0,null,!0);this.Mo.k("click",this.Rf,this);this.body.appendChild(this.Mo.j);
this.k("closebtn",this.di,this)}aH.prototype=new da;aH.prototype.di=function(L){if(this.gp)this.U7(this.tq)};
aH.prototype.f=function(){da.prototype.f.call(this);this.MQ.f();this.db.f();this.a9D.f();this.sT.f();
this.c7.f();this.u8.f();this.cS.f();this.ij.f();this.XA.f()};aH.prototype.hU=function(L,C){this.y$=L};
aH.prototype.jn=function(L,C){this.s8=JSON.parse(JSON.stringify(C.W));this.tq=JSON.parse(JSON.stringify(C.W));
this.Ri=this.sP=null;this.U7=C.SL;this.gp=!1;this.Da=C.U2;this.P_();this.An()};aH.prototype.Rf=function(L){var C=this.s8;
this.U7(C);this.close()};aH.prototype.Gs=function(L){return L==G.yo||L==G.JY};aH.prototype.fj=function(L,C,U,E){if(E.q(G.yo)||E.q(G.JY)){if(this.sP)this.V6();
if(this.Ri)this.$w()}};aH.prototype.V6=function(L){var C=this.s8.Trns.v;if(this.sP==null||C.length==2)return;
C.splice(C.indexOf(this.sP),1);this.sP=null;this.P_();this.An()};aH.prototype.$w=function(L){var C=this.s8.Clrs.v;
if(this.Ri==null||C.length==2)return;C.splice(C.indexOf(this.Ri),1);this.Ri=null;this.P_();this.An()};
aH.prototype.P_=function(){var L=this.k2,C=this.zS,U=B.M();L.width=Math.floor(410*U);L.height=Math.floor(90*U);
B.IO(L,L.width,L.height);this.ND=new _(0,0,Math.floor(380*U),Math.floor(32*U));this.ND.x=Math.floor((this.k2.width-this.ND.d)/2);
this.ND.y=Math.floor((this.k2.height-this.ND.v)/2);var E=this.ND,Y=E.d,z=E.v,r=E.x,p=E.y,T=new _(0,0,Y,z),k=C.getImageData(0,0,Y,z),P=new Uint8Array(k.data.buffer);
c.Wg(P,Y,z,8);var b=c.F(Y*z*4);c.W.Rv(this.s8,b,T,[1/Y,0,0,1/z],Y/2,z/2,!1,0,this.y$.yx,this.y$.ho);
c.Q.Kj("norm",b,E,P,E,E,1);C.clearRect(0,0,L.width,L.height);C.putImageData(k,r,p);var Q=this.s8.Trns.v,K=this.s8.Clrs.v,h=c.W.Sa(K,this.y$.yx,this.y$.ho),x=Math.round(6*B.M()),O=Math.round(14*B.M()),y=this.sP?this.sP.v:null,v=this.Ri?this.Ri.v:null;
for(var H=0;H<Q.length;H++){var i=Q[H].v,D=Math.round(255-255*i.Opct.v.val/100);if((i==y||Q[H-1]&&Q[H-1].v==y||H==this.DU)&&H!=0){C.fillStyle="#000000";
C.fillRect(r-3+Y*(Q[H-1].v.Lctn.v+(i.Lctn.v-Q[H-1].v.Lctn.v)*i.Mdpn.v/100)/4096,p-6-2,6,6)}if(i==y){C.fillStyle="#ffffff";
C.fillRect(r-x+Y*(i.Lctn.v/4096)-2,p-2-O-2,2*x+4,O+4)}C.fillStyle="rgb("+D+","+D+","+D+")";C.fillRect(r-x+Y*(i.Lctn.v/4096),p-2-O,2*x,O)}for(var H=0;
H<K.length;H++){var I=K[H].v,m=h[H];if((I==v||K[H-1]&&K[H-1].v==v||H==this.U5)&&H!=0){C.fillStyle="#000000";
C.fillRect(r-3+Y*(K[H-1].v.Lctn.v+(I.Lctn.v-K[H-1].v.Lctn.v)*I.Mdpn.v/100)/4096,p+z+2,6,6)}if(I==v){C.fillStyle="#ffffff";
C.fillRect(r-x+Y*(I.Lctn.v/4096)-2,p+z+2-2,2*x+4,O+4)}C.fillStyle="rgb("+Math.round(m.h)+", "+Math.round(m.P)+","+Math.round(m.O)+")";
C.fillRect(r-x+Y*(I.Lctn.v/4096),p+z+2,2*x,O)}if(this.Da){this.U7(this.s8);this.gp=!0}};aH.prototype.An=function(){this.MQ.T(Math.round(100*this.s8.Intr.v/4096));
var L=this.s8.Trns.v,C=this.s8.Clrs.v,U=this.sP!=null,E=this.DU!=-1;this.u8.Q9(U);this.cS.Q9(U||E);this.sT.Q9(U);
if(U){this.vx.setAttribute("style","");var Y=this.sP.v;this.cS.T(Math.round(100*Y.Lctn.v/4096));this.u8.T(Y.Opct.v.val)}if(E)this.cS.T(L[this.DU].v.Mdpn.v);
var U=this.Ri!=null,E=this.U5!=-1;this.ij.Q9(U);this.bO.Q9(U);this.XA.Q9(U||E);this.c7.Q9(U);if(U){this.wn.setAttribute("style","");
var z=this.Ri.v;this.XA.T(Math.round(100*z.Lctn.v/4096));var r=z.Type.v.Clry;this.ij.T(["FrgC","BckC","UsrS"].indexOf(r));
if(r=="FrgC")this.bO.Gm(this.y$.yx);if(r=="BckC")this.bO.Gm(this.y$.ho);if(r=="UsrS")this.bO.T(z.Clr.v)}if(E)this.XA.T(C[this.U5].v.Mdpn.v)};
aH.prototype.TY=function(L){var C=Math.round(4096*this.MQ.u()/100);this.s8.Intr.v=C;var U=this.s8.Trns.v,E=this.s8.Clrs.v;
if(this.sP!=null){var Y=this.sP.v;Y.Lctn.v=Math.round(4096*(this.cS.u()/100));Y.Opct.v.val=this.u8.u()}if(this.Ri!=null){var z=this.Ri.v;
z.Lctn.v=Math.round(4096*(this.XA.u()/100));if(L.target==this.bO)this.ij.T(2);var r=this.ij.u();z.Type.v.Clry=["FrgC","BckC","UsrS"][r];
if(r==2)z.Clr={t:"Objc",v:this.bO.u()};else if(z.Clr)delete z.Clr}if(this.DU!=-1)U[this.DU].v.Mdpn.v=this.cS.u();
if(this.U5!=-1)E[this.U5].v.Mdpn.v=this.XA.u();this.P_()};aH.prototype.Ko=function(L){var C=B.K7(L,this.k2),U=(C.x*B.M()-this.ND.x)/this.ND.d,E=(C.y*B.M()-this.ND.y)/this.ND.v,Y=this.s8.Trns.v,z=this.s8.Clrs.v,r=null,p=null,T=-1,k=-1;
if(E<1)for(var H=0;H<Y.length;H++){var P=Y[H].v;if(Math.abs(P.Lctn.v/4096-U)<.02)r=Y[H];if(H>0)if(Math.abs((Y[H-1].v.Lctn.v+(P.Lctn.v-Y[H-1].v.Lctn.v)*P.Mdpn.v/100)/4096-U)<.01)T=H}if(E>0)for(var H=0;
H<z.length;H++){var b=z[H].v;if(Math.abs(b.Lctn.v/4096-U)<.02)p=z[H];if(H>0)if(Math.abs((z[H-1].v.Lctn.v+(b.Lctn.v-z[H-1].v.Lctn.v)*b.Mdpn.v/100)/4096-U)<.01)k=H}if(p==null&&r==null&&T==-1&&k==-1){if(E<0){var P={t:"Objc",v:{classID:"TrnS",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}};
P.v.Lctn.v=Math.round(U*4096);Y.push(P);Y.sort(this.JW);r=P}if(E>1){var z=this.s8.Clrs.v,Q=c.W.Sa(z,this.y$.yx,this.y$.ho),K=c.W.qq(this.s8,Q,U),b={t:"Objc",v:{classID:"Clrt",Clr:{t:"Objc",v:c.W._b({h:K&255,P:K>>8&255,O:K>>16&255})},Type:{t:"enum",v:{Clry:"UsrS"}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}};
b.v.Lctn.v=Math.round(U*4096);z.push(b);z.sort(this.JW);p=b}}if(p!=null)k=-1;if(r!=null)T=-1;if(p!=null||r!=null||T>-1||k>-1){this.sP=r;
this.Ri=p;this.DU=T;this.U5=k;this.An();this.P_();B.z2(window,this.kf);B.Yp(window,this.T6)}};aH.prototype.cz=function(L){var C=B.K7(L,this.k2),U=B.M()*(C.x-this.ND.x)/this.ND.d,E=B.M()*(C.y-this.ND.y)/this.ND.v;
U=Math.max(0,Math.min(1,U));var Y=this.s8.Trns.v,z=this.s8.Clrs.v;if(this.sP!=null){var r=this.sP.v;
r.Lctn.v=Math.round(4096*U);var p=Y.indexOf(this.sP);if(p!=-1&&E<-1&&Y.length>2)Y.splice(p,1);if(p==-1&&E>-1)Y.push(this.sP);
Y.sort(this.JW)}if(this.Ri!=null){var T=this.Ri.v;T.Lctn.v=Math.round(4096*U);var k=z.indexOf(this.Ri);
if(k!=-1&&E>1.5&&z.length>2)z.splice(k,1);if(k==-1&&E<1.5)z.push(this.Ri);z.sort(this.JW)}if(this.DU>-1){var r=Y[this.DU].v;
r.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*(U*4096-Y[this.DU-1].v.Lctn.v)/(r.Lctn.v-Y[this.DU-1].v.Lctn.v))))}if(this.U5>-1){var T=z[this.U5].v;
T.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*(U*4096-z[this.U5-1].v.Lctn.v)/(T.Lctn.v-z[this.U5-1].v.Lctn.v))))}if(this.sP!=null||this.Ri!=null||this.DU>-1||this.U5>-1){this.An();
this.P_()}};aH.prototype.KR=function(L){B.dZ(window,this.kf);B.EW(window,this.T6);if(Date.now()-this.vk<300){if(this.U5!=-1||this.DU!=-1){var C=(this.U5!=-1?this.s8.Clrs.v[this.U5]:this.s8.Trns.v[this.DU]).v;
C.Mdpn.v=50;this.An();this.P_()}else if(this.Ri!=null)this.bO.a2X()}this.vk=Date.now()};aH.prototype.JW=function(L,C){return L.v.Lctn.v-C.v.Lctn.v};
function ed(){da.call(this,[11,10],"isize");this.hd=B.w("div","form");this.hd.setAttribute("style","width:20em");
this.body.appendChild(this.hd);this.gd=new gC(!0,!0);this.hd.appendChild(this.gd.j);this.vu=new dh("Resample");
this.vu.T(!0);this.hd.appendChild(this.vu.j);this.vu.k(B.E.L,this.anI,this);this.Gv=new bS([12,14,1],[[12,14,2],[12,14,3],"Bicubic Sharper"]);
this.Gv.T(1);this.hd.appendChild(this.Gv.j);this.xG=new br("OK",!0,null,!0);this.xG.k("click",this.Rf,this);
this.body.appendChild(this.xG.j)}ed.prototype=new da;ed.prototype.Kc=function(L,C){return L!=null};ed.prototype.sH=function(){return!0};
ed.prototype.anI=function(L){var C=this.vu.u(),U=this.gd,E=this.Gv;if(C)E.rX();else E.aA();if(C)U.aah();
else U.aho()};ed.prototype.f=function(){da.prototype.f.call(this);this.Gv.f();this.gd.f()};ed.prototype.Rf=function(L){this.close();
var C=this.gd.u(),U=C.x,E=C.y,Y=this.Gv.u();if(!this.vu.u())Y=null;var z=new q(B.E._w,!0);z.data=W.yP.Zn(U,E,this.gd.Qy(),Y);
this.B(z)};ed.prototype.jn=function(L,C){this.gd.T(new hZ(L.d,L.v),L._Q)};function bM(){da.call(this,"Import RAW","importraw");
var L=B.w("div","flexrow"),C=B.w("div");this.body.appendChild(L);this.body.appendChild(C);var U=B.w("div","form");
U.setAttribute("style","width:16em");L.appendChild(U);var E=B.w("div","form");E.setAttribute("style","width:14em");
L.appendChild(E);this.x3=null;this.aft=null;this.$E=null;this.a8w=[];var Y=[];for(var H=0;H<bM.RR.length;
H++)Y.push(bM.RR[H]+" Bits");this.Jr=[new gC(!0,!0),new dr([12,72],["1","3","4"]),new dr([12,34],Y),new dr("Byte Order",["12-34","34-12"]),new bS("Guesses",[])];
for(var H=0;H<this.Jr.length;H++){var z=this.Jr[H];if(H!=0)z.T(0);z.k(B.E.L,H==4?this.MR:this.bV,this);
var r=H==0?U:H==4?C:E;r.appendChild(z.j)}this.UF=B.w("canvas");this.vU=this.UF.getContext("2d");this.body.appendChild(this.UF);
this.xG=new br("OK",!0,null,!0);this.xG.k("click",this.Rf,this);this.body.appendChild(this.xG.j)}bM.prototype=new da;
bM.prototype.f=function(){da.prototype.f.call(this);var L=this.Jr;for(var H=0;H<L.length;H++)L[H].f()};
bM.prototype.Rf=function(L){this.close();var C=this.Jr[0].u(),U=iL.KG(this.aft,[{data:this.$E,bl:new _(0,0,C.x,C.y)}]),E=new q(B.E.l,!0);
E.data={e:!0?B.U.Nd:B.U.DG,_u:U};this.B(E)};bM.RR=[8,16];bM.prototype.jn=function(L,C){this.x3=new Uint8Array(C.iv);
this.aft=C.GQ;var U=this.x3.length,E=[1,3,4],Y=0,z=0,r=1,p=1,T=this.a8w=[];for(var k=0;k<3;k++){for(var P=0;
P<2;P++){var b=bM.RR[P],Q=E[k],K=Q*b,h=Math.round(U*8/K);if(h!=U*8/K)continue;for(var x=0;x<=4e3;x++)for(var O=0;
O<=4e3;O++)if(x*O==h){var y=0;if(x==O)y+=64;if(Math.round(x/100)==x/100&&Math.round(O/100)==O/100)y+=32;
if(Math.round(x/10)==x/10&&Math.round(O/10)==O/10)y+=16;if(Math.round(x/2)==x/2&&Math.round(O/2)==O/2)y+=8;
T.push([x,O,Q,b,y])}}}var v=function(m,f){if(f[4]!=m[4])return f[4]-m[4];var A=Math.max(m[0],m[1])/Math.min(m[0],m[1]),d=Math.max(f[0],f[1])/Math.min(f[0],f[1]);
if(A!=d)return A-d;return f[0]-m[0]};T.sort(v);var i=this.Jr,D=[];for(var H=0;H<T.length;H++){var I=T[H];
D.push(I[0]+" x "+I[1]+", "+I[2]+"c, "+I[3]+"-bit")}i[4].SU(D);i[4].T(0);this.MR(null)};bM.prototype.MR=function(L){var C=this.Jr,U=this.a8w[this.Jr[4].u()];
C[0].T(new hZ(U[0],U[1]),72);C[1].T([1,3,4].indexOf(U[2]));C[2].T(bM.RR.indexOf(U[3]));this.bV()};bM.prototype.bV=function(L){var C=this.Jr,U=C[0].u(),E=U.x,Y=U.y,z=bM.RR[C[2].u()],r=this.x3;
if(z==16&&C[3].u()==1){r=r.slice(0);for(var H=0;H<r.length;H+=2){var p=r[H];r[H]=r[H+1];r[H+1]=p}}var T=this.$E=UPNG.toRGBA8.decodeImage(r,E,Y,{tabs:{},ctype:[0,2,6][C[1].u()],depth:z}),k=this.UF,P=this.vU,b=[T,new _(0,0,E,Y)];
c.cf(b);for(var H=0;H<b.length;H+=2)if(b[H+1].v<300){T=b[H];E=b[H+1].d;Y=b[H+1].v;break}k.width=E;k.height=Y;
B.IO(k,E,Y);var Q=new ImageData(new Uint8ClampedArray(T.buffer),E,Y);P.putImageData(Q,0,0)};function ik(L,C,U){gG.call(this);
this.j=B.w("div","");this.lV=L;this.vq=null;this.pa=C==null?!1:C;this.eA=null;this.gZ=U;this.sE=[];this.m5=[];
this.oX=[];this.g$=[];this.Yz=0;this.vq=this.a1n(ik.g$[L]);this.Rn();this.OJ=null;this.a8W;this.a87}ik.prototype=new gG;
ik.prototype.zI=function(L,C,U,E,Y){this.OJ=Y;this.a8W=JSON.parse(JSON.stringify(this.eA));if(this.vq.lagl)this.a87=this.vq.lagl.u()};
ik.prototype.Yh=function(L,C,U,E,Y){var z=this.OJ,r=this.lV,p=this.a8W;if(z==null)return;var T=(Y.x-z.x)/L.z.S,k=(Y.y-z.y)/L.z.S;
if(r=="GrFl"){var P=JSON.parse(JSON.stringify(p.Ofst.v));P.Hrzn.v.val+=T*.5;P.Vrtc.v.val+=k*.5;this.vq.Ofst.T(P,!0)}if(r=="patternFill"){var P=JSON.parse(JSON.stringify(p.phase.v));
P.Hrzn.v+=T;P.Vrtc.v+=k;this.vq.phase.T(P,!0)}if(r=="DrSh"||r=="IrSh"||r=="ChFX"){var b=p.Dstn.v.val,Q=this.a87.f2*Math.PI/180,K=-Math.cos(Q)*b+T,h=Math.sin(Q)*b+k;
this.vq.Dstn.T(Math.sqrt(K*K+h*h),!0);this.vq.lagl.T(Math.atan2(h,-K)*180/Math.PI,null,!0)}};ik.prototype.bM=function(L,C,U,E,Y){this.OJ=null};
ik.prototype.akD=function(){for(var H=0;H<this.g$.length;H++){B.gy(this.g$[H],"selected");if(this.oX[H]instanceof dh)this.oX[H].T(!1)}};
ik.prototype.a9m=function(L){var C=this.adh.bind(this);for(var H=0;H<this.oX.length;H++){var U=B.w("div","listitem");
this.g$.push(U);if(H>0)U.textContent="\u2003";U.appendChild(this.oX[H].j);if(gM.EE.indexOf(this.lV)!=-1){var E=new br("+");
E.m0();E.j.style.float="right";U.appendChild(E.j);var Y=new br("\u2B0D");Y.m0();Y.j.style.float="right";
Y.j.style["margin-right"]="2px";U.appendChild(Y.j)}U.addEventListener("click",C,!1);L.appendChild(U)}};
ik.Ci=function(L,C){var U=C.getBoundingClientRect();return(L.clientY-U.top)/U.height};ik.prototype.adh=function(L){var C=L.target.tagName.toLowerCase();
if(C=="input"){return}if(C=="button"){var U=new q(B.E.A,!0),E=L.target.textContent=="+",Y=E?0:ik.Ci(L,L.target)<.5?-1:1;
if(E)U.data={e:"st_dupsingle",$:this.parent.data.$,Od:this.gZ};else U.data={e:"st_movsingle",$:this.parent.data.$,Od:this.gZ,aer:Y};
U.m=W.xn;U.Fw=!0;this.B(U);U=new q("redrawall",!0);U.data={aer:Y};this.B(U);return}B.ZS(L);this.XI();
this.Yz=this.g$.indexOf(L.currentTarget);this.B(new q("showme"))};ik.prototype.XI=function(){if(this.vq.enab&&this.vq.enab.u()==!1)this.ve({eM:"enab",G:!0})};
ik.prototype.agz=function(){var L=this.g$[this.Yz];if(L)B.QS(L,"selected");return this.m5[this.Yz]};
ik.prototype.a1n=function(L){var C={};for(var H=0;H<L.length;H++){var U=L[H],E=null;if(U=="----")E={j:B.w("hr")};
if(U=="\n")E={j:B.w("br")};if(U=="blOptions")E=new ip([14,10]);if(U=="brst")E=new b9([12,72],["R","G","B"]);
if(U=="knko")E=new bS("Knockout",[[13,1,0],"Shallow","Deep"]);if(U=="enab")E=new dh(gM.names[gM.order.indexOf(this.lV)]);
if(U=="lrMd"||U=="Md")E=new bS([12,19,0],gz.w4,!1,gz.RY);if(U=="Opct")E=new dC([12,0],0,100,"%");if(U=="iOpa")E=new dC([12,26],0,100,"%");
if(U=="blIf")E=new b4;if(U=="ShdN")E=new dC([12,68],0,100,"%");if(U=="lagl"||U=="Angl")E=new em([12,15]);
if(U=="uglg")E=new dh([12,27]);if(U=="Dstn")E=new dC([12,28],0,200,"px");if(U=="Ckmt")E=new dC([12,29],0,100,"%");
if(U=="blur")E=new dC([12,14,0],0,200,"px");if(U=="TrnS"||U=="MpgS")E=new c8([12,21]);if(U=="Nose")E=new dC([12,30],0,100,"%");
if(U=="layerConceals")E=new dh([12,31]);if(U=="AntA"||U=="antialiasGloss")E=new dh("Anti-alias");if(U=="GlwT")E=new bS([12,32],gM.gK.names);
if(U=="glwS")E=new bS([12,70],gM.gK.ahy);if(U=="Inpr")E=new dC([12,12],1,100,"%");if(U=="bvlS")E=new bS([12,22],gM.y6.style);
if(U=="bvlT")E=new bS([12,32],gM.y6.aoc);if(U=="bvlD")E=new bS(null,gM.y6.dir);if(U=="srgR")E=new dC([12,34],0,1e3,"%");
if(U=="Sftn")E=new dC([12,35],0,20,"px");if(U=="Lald")E=C.lagl;if(U=="hglM"||U=="sdwM")E=new bS([12,36],gz.w4,!1,gz.RY);
if(U=="hglC"||U=="sdwC")E=new di;if(U=="hglO"||U=="sdwO")E=new dC([12,0],0,100,"%");if(U=="Invr"||U=="InvT")E=new dh([4,11]);
if(U=="Sz")E=new dC([12,14,0],1,200,"px");if(U=="Styl")E=new bS([12,40],gM.stroke.names);if(U=="PntT")E=new bS([12,66],gM.stroke.agr);
if(U=="Clr")E=new di(!0);if(U=="Grad"){E=new cg(!0,[12,37],!0);E.T(JSON.parse(gM.SH.Sn).v)}if(U=="Rvrs")E=new dh([12,23,0]);
if(U=="Dthr")E=new dh("Dither");if(U=="Type")E=new bS([12,22],gM.W.names.slice(0,this.lV=="FrFX"?6:5));
if(U=="Ptrn")E=new bH([12,62]);if(U=="Scl")E=new dC([12,38],10,500,"%",0,!0);if(U=="Algn")E=new dh([12,39]);
if(U=="Ofst")E=new aV(!0);if(U=="phase")E=new aV(!1);if(U=="useShape")E=new dh([12,21]);if(U=="useTexture")E=new dh([12,67]);
if(U=="textureDepth")E=new dC([12,34],-300,300,"%");var Y=U=="----"||U=="\n"?U+H:U;if(E!=null)C[Y]=E}return C};
ik.prototype.akK=function(L){var C=this.m5[this.Yz];for(var H=0;H<L.length;H++){var U=this.vq[L[H]];
if(U&&C.contains(U.j))C.removeChild(U.j)}};ik.prototype.acn=function(L){var C=this.m5[this.Yz];for(var H=0;
H<L.length;H++){var U=this.vq[L[H]];if(U&&!C.contains(U.j))C.appendChild(U.j)}};ik.prototype.hU=function(L,C){if(this.vq==null)return;
var U=C==c_.oI;if(this.vq.Grad){this.vq.Grad.iW(L.yx,L.ho);if(U||C==c_.GM||C==c_.SP)this.vq.Grad.LP(L.MN)}if(this.vq.Ptrn){if(U||C==c_.GA)this.vq.Ptrn.LP(L.mt)}if(this.vq.TrnS){if(U||C==c_.t6)this.vq.TrnS.LP(L.Mf)}if(this.vq.MpgS){if(U||C==c_.t6)this.vq.MpgS.LP(L.Mf)}};
ik.prototype.f=function(){for(var H=0;H<this.sE.length;H++)this.sE[H].f();for(var L in this.vq)if(this.vq[L]instanceof gG)this.vq[L].f()};
ik.prototype.Rn=function(){for(var L in this.vq){var C=this.vq[L];C.parent=this;if(C instanceof gG)C.k(B.E.L,this.ait,this);
if(this.m5.length==0||L=="useShape"||L=="useTexture"){var U=new ip(C.rR()),E=B.w("div","bordered padded");
if(this.pa==!1){E.appendChild(U.j);E.appendChild(B.w("hr",""))}this.sE.push(U);this.m5.push(E);this.oX.push(C)}else this.m5[this.m5.length-1].appendChild(C.j)}};
ik.prototype.update=function(L,C){if(this.vq==null)return;this.eA=JSON.parse(JSON.stringify(C));for(var U in C){if("Opct iOpa hglO sdwO Dstn Ckmt blur Nose Scl Sz Inpr Angl srgR Sftn textureDepth ShdN".split(" ").indexOf(U)!=-1)this.vq[U].T(C[U].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(U)!=-1){this.vq[U].T(C[U].v,L)}if(["Md","hglM","sdwM"].indexOf(U)!=-1)this.vq[U].T(gz.lV.indexOf(C[U].v.BlnM));
if(U=="lrMd"){var E=(C.Jc?[[15,10,27]]:[]).concat(gz.w4),Y=(C.Jc?[1]:[]).concat(gz.RY);this.vq[U].SU(E,Y);
this.vq[U].T(C[U].v)}if(U=="lagl"){var z=C.uglg&&C.uglg.v?L.b_():C.lagl.v.val;this.vq[U].T(z)}if(U=="Lald"){var z=C.uglg&&C.uglg.v?L.kX():C.Lald.v.val;
this.vq[U].T(null,z)}if(U=="Type")this.vq[U].T(gM.W.types.indexOf(C.Type.v.GrdT));if(U=="Styl")this.vq[U].T(gM.stroke.types.indexOf(C.Styl.v.FStl));
if(U=="PntT"){var r=gM.stroke.Ug.indexOf(C.PntT.v.FrFl);this.vq[U].T(r);if(!this.pa){this.akK(gM.TL.concat(gM.DV.concat(gM.ex)));
this.acn([gM.TL,gM.DV,gM.ex][r])}}if(U=="GlwT")this.vq[U].T(gM.gK.types.indexOf(C.GlwT.v.BETE));if(U=="glwS")this.vq[U].T(gM.gK.KQ.indexOf(C.glwS.v.IGSr));
if(U=="bvlS")this.vq[U].T(gM.y6.types.indexOf(C.bvlS.v.BESl));if(U=="bvlT")this.vq[U].T(gM.y6.VT.indexOf(C.bvlT.v.bvlT));
if(U=="bvlD")this.vq[U].T(["In","Out"].indexOf(C.bvlD.v.BESs))}};ik.prototype.ait=function(L){for(var C in this.vq){if(this.vq[C]!=L.target)continue;
var U=null,E=!1;if("Opct iOpa hglO Nose Scl sdwO Inpr srgR textureDepth ShdN".split(" ").indexOf(C)!=-1)U={type:"#Prc",val:L.target.u()};
if(["Dstn","Ckmt","blur","Sz","Sftn"].indexOf(C)!=-1)U={type:"#Pxl",val:L.target.u()};if(["Angl","lagl"].indexOf(C)!=-1)U={type:"#Ang",val:L.target.u().f2};
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(C)!=-1)U=L.target.u();
if(["Md","hglM","sdwM"].indexOf(C)!=-1)U={BlnM:gz.lV[L.target.u()]};if(C=="uglg"){U=L.target.u();E=!0}if(C=="PntT"){U={FrFl:gM.stroke.Ug[L.target.u()]};
E=!0}if(C=="Lald")U={type:"#Ang",val:L.target.u().alt};if(C=="Type")U={GrdT:gM.W.types[L.target.u()]};
if(C=="Styl")U={FStl:gM.stroke.types[L.target.u()]};if(C=="GlwT")U={BETE:gM.gK.types[L.target.u()]};
if(C=="glwS")U={IGSr:gM.gK.KQ[L.target.u()]};if(C=="bvlS")U={BESl:gM.y6.types[L.target.u()]};if(C=="bvlT")U={bvlT:gM.y6.VT[L.target.u()]};
if(C=="bvlD")U={BESs:["In","Out"][L.target.u()]};this.ve({eM:C,G:U});if(E){if(this.pa)this.update(null,this.eA);
else{var Y=this.parent,z=Y._u,r=this.gZ,p=z.N[Y.data.$].add.lmfx[gM.cp[r[0]]].v[r[1]].v;this.update(z,p)}}}};
ik.prototype.ve=function(L){if(this.eA&&this.eA[L.eM])this.eA[L.eM].v=L.G;if(this.pa){this.B(new q(B.E.L))}else{L.e="changeprop";
L.$=this.parent.data.$;L.Oi=this.gZ;var C=new q(B.E.A,!0);C.data=L;C.m=W.xn;C.Fw=!0;this.B(C);this.B(new q("afterchange",!0))}};
ik.prototype.u=function(){return JSON.parse(JSON.stringify(this.eA))};ik.g$={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(gM.TL),GrFl:["enab","Md","Opct"].concat(gM.DV),patternFill:["enab","Md","Opct"].concat(gM.ex),ChFX:"enab Md Clr Opct lagl Dstn blur MpgS Invr".split(" "),FrFX:["enab","Sz","Styl","\n","Md","Opct","PntT","\n"].concat(gM.TL.concat(gM.DV.concat(gM.ex)))};
function eU(){da.call(this,[11,6],"layerstyle");this.an3=-1;this.data={};this._u=null;this.OY=null;this.Aj=[];
this.RA=[];B.QS(this.body,"flexrow");this.o6=B.w("div","bordered");this.o6.setAttribute("style","min-width:13em;");
this.body.appendChild(this.o6);this.rB=B.w("div","");this.rB.setAttribute("style","width:25em; padding-left: 1em;");
this.body.appendChild(this.rB);this.QF=B.w("div","form");this.QF.setAttribute("style","padding-left: 1em; width:7em;");
this.body.appendChild(this.QF);this.Mo=new br("OK",!0,null,!0);this.Mo.k("click",this.Rf,this);this.QF.appendChild(this.Mo.j);
this.Q3=new br([12,87],!0,null,!0);this.Q3.k("click",this.a6j,this);this.QF.appendChild(this.Q3.j);this.jJ=new eW;
this.jJ.parent=this;this.jJ.k(B.E.L,this.a2w,this);this.QF.appendChild(this.jJ.j);this.k("closebtn",this.di,this);
this.k("redrawall",this.g5,this)}eU.prototype=new da;eU.prototype.sH=function(){return!0};eU.prototype.lW=function(){return!0};
eU.prototype.zI=function(L,C,U,E,Y){var z=this.pO();if(z)z.zI(L,C,U,E,Y)};eU.prototype.Yh=function(L,C,U,E,Y){var z=this.pO();
if(z)z.Yh(L,C,U,E,Y)};eU.prototype.bM=function(L,C,U,E,Y){var z=this.pO();if(z)z.bM(L,C,U,E,Y)};eU.prototype.pO=function(L){if(L==null)L=this.data.index;
return L==null?null:L==0?this.Aj[0]:this.RA[L[0]][L[1]]};eU.prototype.a2w=function(L){var C=this.jJ.u();
this.ve({e:"setstl",G:C.mV});this.g5(null)};eU.prototype.a6j=function(L){var C=this._u,U=this.data.$;
if(U==null)U=C.C[0];var E=this._u.N[U],Y=ca.dh(E),z=new q(B.E.l,!0);z.data={e:B.U.MP,AW:"add",wm:c_.S5,mv:[JSON.parse(JSON.stringify(Y))]};
this.B(z)};eU.prototype.ahM=function(L){this.data.index=L.currentTarget.gZ;this.pT(L.currentTarget.gZ)};
eU.prototype.g5=function(L){this.jn(this._u,this.data)};eU.prototype.pT=function(L,C){B.CF(this.rB);
for(var H=0;H<this.Aj.length;H++)this.Aj[H].akD();var U=this.pO(L);this.rB.appendChild(U.agz());if(C)U.XI();
var E=this._u;if(E){var Y=E.N[this.data.$];this.Aj[0].update(E,hO.re.WJ(E,Y));var z=Y.add.lmfx;if(z==null)return;
for(var H=0;H<gM.order.length;H++){var r=z[gM.cp[H]].v;for(var p=0;p<r.length;p++)this.RA[H][p].update(E,r[p].v)}}if(C)U.XI()};
eU.prototype.f=function(){da.prototype.f.call(this);this.Q3.f();this.jJ.f();for(var H=0;H<this.Aj.length;
H++)this.Aj[H].f()};eU.prototype.jn=function(L,C){var U=C.$==null;this.data.$=C.$;this.data.index=C.index;
C=this.data;this._u=L;if(U)C.$=L.C.length==0?L.N.length-1:L.C[0];B.CF(this.o6);var E=L.N[C.$].add.lmfx;
this.vy();this.Aj=[new ik("bops",!1,0)];this.RA=[];for(var H=0;H<gM.order.length;H++){this.RA.push([]);
var Y=E==null?[]:E[gM.cp[H]].v;for(var z=0;z<Y.length;z++){var r=new ik(gM.order[H],!1,[H,z]);this.Aj.push(r);
this.RA[H].push(r)}if(Y.length==0){var r=new ik(gM.order[H],!1,[H,0]);this.Aj.push(r);this.RA[H].push(r)}}this.f();
this.$D(this.OY,c_.oI);for(var H=0;H<this.Aj.length;H++){this.Aj[H].parent=this;this.Aj[H].a9m(this.o6);
this.Aj[H].k("showme",this.ahM,this)}if(C.index==null||C.index==0||!U&&E[gM.cp[C.index[0]]].v.length==0){this.pT(0)}else this.pT(C.index,U);
this.k("afterchange",this.vy,this)};eU.prototype.vy=function(L){var C=this._u,U=this.data.$;if(U==null)U=C.C[0];
var E=this._u.N[U],Y=ca.dh(E);this.jJ.T(Y,C.add.Patt?C.add.Patt:[],C.b_(),C.kX())};eU.prototype.hU=function(L,C){this.OY=L;
this.$D(L,C);if(C==c_.S5||C==c_.oI){this.jJ.LP([L.c5,L.mt])}if(C==c_.lz){}};eU.prototype.$D=function(L,C){for(var H=0;
H<this.Aj.length;H++)this.Aj[H].hU(L,C)};eU.prototype.di=function(L){this.ve({e:"cancel"})};eU.prototype.Rf=function(L){this.ve({e:"confirm"});
this.close()};eU.prototype.ve=function(L){L.$=this.data.$;var C=new q(B.E.A,!0);C.data=L;C.m=W.xn;C.Fw=!0;
this.B(C);this.vy()};eU.uZ=function(L){var C=[{name:[14,10],rY:!0}];for(var H=0;H<gM.names.length;H++)C.push({name:gM.names[H]});
if(L){C[C.length-1].rY=!0;C.push({name:["VAR0 VAR1",[12,49],[9,1]],p:function(U){return{p:U!=null&&U.C.length!=0&&U.N[U.C[0]].add.lmfx!=null}}})}return C};
eU.hp=function(L){var C=[{b:B.E.l,H:{e:B.U.Q1,k5:"layerstyle"}}];for(var H=0;H<gM.names.length;H++)C.push({b:B.E.l,H:{e:B.U.Q1,k5:"layerstyle",index:[H,0]}});
if(L){var U={classID:"Mk",null:hy.K1("Lyr"),Usng:{t:"obj ",v:[{t:"prop",v:{classID:"Prpr",keyID:"Lefx"}},{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Trgt"}}]}};
C.push({b:B.E._w,H:{xo:"make",V5:U}})}return C};eU.YJ=function(L){var C=[];if(L)C.push({name:[6,48,0,0],WL:!0},{name:[6,48,0,1],WL:!0},{name:[6,48,0,2],WL:!0,rY:!0});
for(var U in eh.names)C.push({name:eh.names[U],rY:eh.IE.indexOf(U)!=-1,WL:j[U]!=null});return C};eU.DD=function(L){var C=[];
if(L){C.push({b:B.E.A,m:W.Hg,H:{e:"newfill",fD:0}});for(var H=1;H<3;H++)C.push({b:B.E._w,H:W.gl.vG(H)})}for(var U in eh.names){var E=hi.Q4(U);
if(E==null)E={};for(var Y in eh.xM)if(eh.xM[Y]==U)E.classID=Y;var z={xo:"make",V5:{classID:"Mk",null:hy.K1("AdjL"),Usng:{t:"Objc",v:{classID:"AdjL",Type:{t:"Objc",v:E}}}}};
C.push({b:B.E._w,H:z})}return C};function aU(){da.call(this,"Merge Channels","mergechannels");this.Ak=null;
var L=B.w("div","form");this.body.appendChild(L);this.Jr=[];for(var H=0;H<3;H++){var C=new bS(eh.Ol[H],[]);
this.Jr.push(C);L.appendChild(C.j);B.E4(L)}this.Mo=new br("OK",!0,null,!0);this.Mo.k("click",this.Rf,this);
L.appendChild(this.Mo.j)}aU.prototype=new da;aU.prototype.f=function(){da.prototype.f.call(this);for(var H=0;
H<3;H++)this.Jr[H].f()};aU.prototype.jn=function(L,C,U,E){this.Ak=U;var Y=[];for(var H=0;H<U.length;
H++)Y.push(U[H].name);for(var H=0;H<3;H++){var z=this.Jr[H];z.SU(Y);z.T(Math.min(H,U.length-1))}};aU.prototype.Rf=function(L){var C=this.Ak,U=C[0],E=new q(B.E._w,!0);
E.data=b7.Jo(U.d,U.v,U._Q,"Merged Document","Wht");this.B(E);var Y=[];for(var H=0;H<3;H++)Y.push(C[this.Jr[H].u()].E0());
var U=C[C.length-1],z=U.N[0],r=z.buffer;for(var H=0;H<r.length;H+=4){r[H]=Y[0][H];r[H+1]=Y[1][H];r[H+2]=Y[2][H]}z.s();
U.s();this.close()};function fE(){da.call(this,[1,10],"script");var L=B.w("div","form");L.setAttribute("style","width:44em");
this.body.appendChild(L);this.OY=null;this.sJ=[];this.MA=[];this.adN;var C=this.vs=new br([1,2],!1,null,!0);
C.k("click",this.VM,this);L.appendChild(C.j);var U=new br("JS Reference",!1,null,!0);U.k("click",this.ado,this);
L.appendChild(U.j);L.appendChild(new ip("Demos:").j);this.a5N=[];var E=fE.ko;for(var H=0;H<E.length;
H++){var Y=new br(E[H].rT,!1,null,!0);this.a5N.push(Y);L.appendChild(Y.j);Y.k("click",this.ad1,this)}this.Ox=B.w("textarea");
this.Ox.setAttribute("rows",16);this.Ox.setAttribute("style","display:block;tab-size:4; font-family:monospace;width:100%;");
L.appendChild(this.Ox);var z=new br("Run",!0,null,!0);z.k("click",this.Rf,this);L.appendChild(z.j);this.abe=B.w("div");
L.appendChild(this.abe)}fE.prototype=new da;fE.prototype.f=function(){this.vs.f()};fE.prototype.VM=function(){var L=this.adN;
if(L==null)L="script.jsx";var C=new q(B.E.l,!0);C.data={e:B.U.Q1,k5:"namewindow",LE:L.slice(0,L.length-4),Di:this.a0r.bind(this)};
this.B(C)};fE.prototype.a0r=function(L){var C=this.Ox.value,U=$.RK(C),E=new q(B.E.l,!0);E.data={e:B.U.Fl,iv:U.buffer,n8:L+".jsx",a0H:!0};
this.B(E)};fE.prototype.abr=function(L){var H=this.sJ.indexOf(L.target),C=this.adN=this.MA[H],U=this.OY.KZ.Rp[C],E=new Uint8Array(U),Y=$.IQ(E,0,E.length);
this.Ox.value=Y};fE.prototype.jn=function(L,C,U){this.Ox.value=fE.ko[0].r_;this.f9()};fE.prototype.f9=function(){var L=this.OY.KZ,C=this.abe;
B.CF(C);this.sJ=[];this.MA=[];C.textContent="Saved scripts: ";for(var U in L.Rp){if(U.endsWith(".jsx")){var E=new br(U,!1,null,!0);
this.sJ.push(E);this.MA.push(U);E.k("click",this.abr,this);C.appendChild(E.j)}}};fE.prototype.hU=function(L,C){this.OY=L;
if(C==c_.GR)this.f9()};fE.prototype.ado=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.lR,link:"https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-cc-javascript-ref-2019.pdf"};
this.B(C)};fE.prototype.Rf=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.JT,NY:this.Ox.value};this.B(C)};
fE.prototype.ad1=function(L){var C=this.a5N.indexOf(L.currentTarget);this.Ox.value=fE.ko[C].r_};fE.ko=[{rT:"Hello",r_:"\nalert(\"Hello Photopea!\");\n"},{rT:"Process Layers",r_:"\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}"},{rT:"Clone Layers",r_:"\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 ek(){da.call(this,[11,7],"newproject");this.data=null;this.Ak=null;var L=B.w("div","flexrow");
this.YN=L;this.body.appendChild(L);var C=B.w("div","form");this.hd=C;L.appendChild(C);this.Ha=new hq([12,48]);
C.appendChild(this.Ha.j);B.E4(C);this.gd=new gC(!0);this.gd.T(new hZ(1280,720),72);this.gd.k(B.E.L,this.cQ,this);
C.appendChild(this.gd.j);this.cP=new bS([12,46],[[13,1,8],[13,1,9],[12,46]]);C.appendChild(this.cP.j);
C.appendChild(B.w("hr"));this.xG=new br([12,49],!0,null,!0);this.xG.k("click",this.Rf,this);C.appendChild(this.xG.j);
var U=ek.x3,E=[];for(var H=0;H<U.length;H++)E.push(U[H].name);this.Yc=new dr(null,E);this.Yc.k(B.E.L,this.VU,this);
C.appendChild(this.Yc.j);this.Yc.j.style["margin-top"]="1em";this.MI=new fN(!0);this.MI.k(B.E.L,this.alI,this);
C.appendChild(this.MI.j);this.VU();this.Jp=new b3;this.Jp.parent=this;this.Jp.j.setAttribute("style","margin-left:1em");
this.Jp.k("tempready",this.afa,this)}ek.prototype=new da;ek.prototype.hU=function(L,C){this.Jp.hU(L)};
ek.prototype.EO=function(L,C){return new hZ(Math.max(0,Math.min(70,(L-690)/2)),L>C?Math.max(0,Math.min(50,(C-400)/2)):0)};
ek.prototype.AU=function(L,C){this.hd.setAttribute("style","width:"+Math.min(L,338)+"px");this.MI.j.style.height=C-260+"px";
var U=this.Jp.j,E=U.parentNode;if(L<500){if(E!=null)this.YN.removeChild(U)}else{if(E==null)this.YN.appendChild(U)}this.Jp.AU(L-360,C-35)};
ek.prototype.cQ=function(){this.Jp.T(this.gd.u())};ek.prototype.alI=function(L){var C=this.MI.u(),U=ek.x3[this.Yc.u()].K3[C],E=U[4];
if(E==0)E=72;var Y=U[1],z=U[2],r=["px","%","mm","in"].indexOf(U[3]),p=[1,1,25.4/E,1/E][r];Y/=p;z/=p;
this.gd.T(new hZ(Math.round(Y),Math.round(z)),E);this.gd.ad2(r);this.MI.VS(C);this.cQ()};ek.prototype.VU=function(L){var C=ek.x3[this.Yc.u()].K3,U=[],E=[],Y=Math.round(106*B.M()),z=Math.round(106*B.M()),r=0;
for(var H=0;H<C.length;H++)r=Math.max(r,C[H][1],C[H][2]);for(var H=0;H<C.length;H++){var p=C[H],T=p[1]+" x "+p[2]+" "+p[3];
if(p[3]=="in")T=(p[1]*25.4).toFixed(0)+" x "+(p[2]*25.4).toFixed(0)+" mm";if(p[3]=="mm")T=(p[1]/25.4).toFixed(1)+" x "+(p[2]/25.4).toFixed(1)+" in";
if(p[4])T=T+" @ "+p[4]+" ppi";E.push(T);U.push(ek.BU(p,Y,z,r))}this.MI.OF(U,E,Y,z)};ek.BU=function(L,C,U,E){var Y=B.w("canvas",""),z=Y.getContext("2d");
Y.width=C;Y.height=U;var r=Math.round(C/8),p=Math.floor(11*B.M()),T=L[1],k=L[2];z.fillStyle="#000000";
z.font=Math.round(p*.9)+"px \"Open Sans\", Sans-Serif";var P=T+" x "+k+" "+L[3],b=z.measureText(P);z.fillText(P,Math.round((C-b.width)/2),U-Math.round(r/2));
if(L[0]!=null){z.font="bold "+p+"px \"Open Sans\", Sans-Serif";var P=L[0],b=z.measureText(P);z.fillText(P,Math.round((C-b.width)/2),U-Math.round(r/2)-Math.round(p*1.3))}U-=Math.round(2.5*p);
var Q=Math.min((C-r)/T,(U-r)/k);Q*=.5+.5*(Math.max(T,k)/E);var K=(C-T*Q)/2,h=(U-k*Q)/2;z.strokeRect(Math.round(K)+.5,Math.round(h)+.5,Math.round(T*Q),Math.round(k*Q));
return Y.toDataURL()};ek.prototype.f=function(){da.prototype.f.call(this);this.gd.f();this.Ha.f();this.cP.f();
this.xG.f();this.Ha.T(gS.get([11,7]));this.Yc.f();this.Jp.f()};ek.prototype.Rf=function(L){var C=this.gd.u(),U=C.x,E=C.y;
this.close();var Y=new q(B.E._w,!0);Y.data=b7.Jo(U,E,this.gd.Qy(),this.Ha.u(),["Wht","Trns","BckC"][this.cP.u()]);
this.B(Y);this.tX()};ek.prototype.afa=function(L){var C=L.data._u;C._Q=this.gd.Qy();var U=new q(B.E.l,!0);
U.data={e:B.U.Nd,_u:C};this.B(U);this.close();this.tX()};ek.prototype.tX=function(){var L=this.Ak[this.Ak.length-1],C=this.data.acE;
if(C)iA.GH(function(){var U=new XMLHttpRequest,E="https://www.googleapis.com/drive/v3/files?"+iA.XH();
U.open("POST",E,!0);U.setRequestHeader("Content-Type","application/json");U.addEventListener("load",function(Y){var z=JSON.parse(Y.target.response);
L.at={file:z,vz:"psd"};alert(L.name+" created in Google Drive")});U.send(JSON.stringify({name:L.name,a03:[C]}))})};
ek.prototype.jn=function(L,C,U,E){this.Ak=U;if(L!=null&&L.t!=null){var Y=new _(0,0,L.d,L.v).eR(L.t.rect);
this.gd.T(new hZ(Y.d,Y.v))}this.data=C;this.cQ();this.Ha.Su();if(B.I9())g8.aeR(this.a8I.bind(this))};
ek.prototype.a8I=function(L){if(L=="granted")g8.dG(this,this.a0u.bind(this))};ek.prototype.a0u=function(L,C){this.gd.T(new hZ(C.d,C.v))};
ek.x3=[{name:"Social",K3:[["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],K3:[["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],K3:[["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],K3:[["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],K3:[["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],K3:[["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",K3:[[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 ev(L,C,U){da.call(this,C,"sel_"+L);this.e=L;var E=B.w("div","form");this.body.appendChild(E);
this.Ha=new cU(C,0,255,null,0,!1,!0);E.appendChild(this.Ha.j);this.Ha.T(1);var Y=B.w("span");Y.textContent=U;
E.appendChild(Y);B.E4(E);this.aaO=new dh("Apply at canvas bounds");if(L!="border")E.appendChild(this.aaO.j);
this.Mo=new br("OK",!0,null,!0);this.Mo.k("click",this.Rf,this);E.appendChild(this.Mo.j)}ev.prototype=new da;
ev.prototype.Kc=function(L,C){if(L==null)return;if(L.t==null)alert("No selection!");return L.t!=null};
ev.prototype.Rf=function(L){var C=new q(B.E._w,!0);C.data=W.kd.af7(this.e,this.Ha.u(),this.aaO.u());
C.Fw=!0;this.B(C);this.close()};ev.prototype.f=function(){da.prototype.f.call(this);if(this.Ha)this.Ha.f()};
ev.prototype.jn=function(L,C){};function gm(L,C,U,E,Y){da.call(this,U,C);this.Da=Y;this.x3=null;this.hd=B.w("div","form");
this.body.appendChild(this.hd);this.Ha=L==0?new hq(U):new dC(U,0,500,E,1);this.Ha.k(B.E.L,this.au,this);
this.hd.appendChild(this.Ha.j);this.Mo=new br("OK",!0,null,!0);this.Mo.k("click",this.Rf,this);this.hd.appendChild(this.Mo.j);
this.k("closebtn",this.di,this)}gm.prototype=new da;gm.prototype.sH=function(){return!0};gm.prototype.au=function(L){var C=this.Ha.u();
if(this.Da)this.OW(C)};gm.prototype.di=function(L){if(this.Da)this.OW("cancel")};gm.prototype.Rf=function(L){if(this.Da)this.OW("confirm");
else this.OW(this.Ha.u());this.close()};gm.prototype.OW=function(L){if(this.x3.Di)this.x3.Di(L);else if(this.x3.ea){var C=this.x3.ea,U=new q(C.b,!0);
U.m=C.m;U.data=C.H;U.data.G=L;U.Fw=!0;this.B(U)}};gm.prototype.f=function(){da.prototype.f.call(this);
if(this.Ha)this.Ha.f()};gm.prototype.jn=function(L,C){this.x3=C;this.Ha.T(C.LE);this.Ha.Su();this.au(null)};
function c2(){da.call(this,[1,5],"open_from_url");this.Tm=null;var L=B.w("div","form");this.body.appendChild(L);
this.IT=new hq("URL",null,22);L.appendChild(this.IT.j);B.E4(L);this.Np=new dr([21,0],[[21,2],[21,1]]);
L.appendChild(this.Np.j);this.xG=new br("OK",!0,null,!0);this.xG.k("click",this.Rf,this);L.appendChild(this.xG.j)}c2.prototype=new da;
c2.prototype.f=function(){da.prototype.f.call(this);this.Np.f()};c2.prototype.jn=function(L,C,U){this.IT.Su();
this.Tm=null;if(L&&U.indexOf(L)!=-1)this.Tm=U.indexOf(L)};c2.prototype.Rf=function(L){var C=new q(B.E.l,!0),U=this.IT.u();
C.data={e:B.U.sh,wm:{url:U,Z3:!0,Tm:this.Np.u()==1?this.Tm:null}};this.B(C);this.close()};function iK(){da.call(this,[12,79],"preferences");
this.OY=null;var L=B.w("div","form");this.body.appendChild(L);this.g$=[new dh([8,2]),new dh([8,4]),new bS([12,80,3],[[12,93,3],[12,80,4]]),new dC([12,80,5],1,100,null,2),new bS(null,c.Mb.JO),new bS([12,80,6],c.Mb.JO)];
for(var H=0;H<this.g$.length;H++){var C=this.g$[H];L.appendChild(C.j);if(H!=3)B.E4(L);C.k(B.E.L,this.gB,this)}}iK.prototype=new da;
iK.prototype.f=function(){da.prototype.f.call(this);for(var H=0;H<this.g$.length;H++)this.g$[H].f()};
iK.prototype.jn=function(L,C,U){};iK.prototype.hU=function(L,C){this.OY=L;this.g$[0].T(L.qA.Pr);this.g$[1].T(L.qA.SY);
this.g$[2].T(L.qA.nt);this.g$[3].T(L.qA.ST);this.g$[4].T(L.qA.Kw);this.g$[5].T(L.qA.Ca)};iK.prototype.gB=function(L){var e4=this.g$,C=JSON.parse(JSON.stringify(this.OY.qA));
C.Pr=e4[0].u();C.SY=e4[1].u();C.nt=e4[2].u();C.ST=e4[3].u();C.Kw=e4[4].u();C.Ca=e4[5].u();if(C.Kw!=4)C.ST=Math.round(C.ST);
var U=new q(B.E.l,!0);U.data={e:B.U.MP,wm:c_.cq,oq:C};this.B(U)};function eJ(){da.call(this,[11,8],"saveforweb");
this.a0m="";this.k("closebtn",function(){this.Mg.pM()},this);this.y7=new hZ(512,512);this._u=null;this.U0=null;
this.a2v=null;this.OY=null;B.QS(this.body,"flexrow");var L=B.w("div"),C=B.w("div");this.body.appendChild(L);
this.body.appendChild(C);this.wn=B.w("div","imgcont");L.appendChild(this.wn);this.Mg=new fe;this.Mg.AU(this.y7.x,this.y7.y);
this.ew=B.w("span");L.appendChild(this.ew);this.hd=B.w("div","form cell");this.hd.setAttribute("style","width:15em; padding-left:1em;");
C.appendChild(this.hd);this.T1=new bS([12,50],iL.Nj());this.hd.appendChild(this.T1.j);this.T1.k(B.E.L,this.Tj,this);
this.gd=new gC(!0,!0,!1,!0);this.gd.k(B.E.L,this.Tj,this);this.hd.appendChild(this.gd.j);this.cj=new h_;
this.cj.k(B.E.L,this.Tj,this);this.hd.appendChild(this.cj.j);this.Dz=new br([1,2],!0,null,!0);this.Dz.k("click",this.Rf,this);
this.hd.appendChild(this.Dz.j)}eJ.prototype=new da;eJ.prototype.Kc=function(L,C){return L!=null};eJ.prototype.f=function(){da.prototype.f.call(this);
this.gd.f();this.T1.f();this.cj.f();this.Dz.f()};eJ.prototype.Rf=function(L){var C=this._u.name.split(".")[0],U=iL.Nj()[this.T1.u()],E=this.U0,Y=C+"."+U.toLowerCase(),z=this._u,r=z.Oy;
if(r.length!=0&&(U=="JPG"||U=="PNG"||U=="GIF")&&this.cj.u().pop()){var p="<!DOCTYPE html>\n<html>\n<style>div {position:absolute;}</style>\n<head></head>\n<body>\n",T=[],k={},P=new _(0,0,z.d,z.v),b=z.E0();
for(var H=0;H<r.length;H++)T.push(W.l1.Rq(r,H));T.reverse();var Q=c.rect.hO([0,0,z.d,z.v],T);for(var H=0;
H<Q.length;H++){var K=Q[H],h=new _(K[0],K[1],K[2]-K[0],K[3]-K[1]),x=K.length==5?r[K[4]].v:null,O=c.F(h.X()*4);
c.La(b,P,O,h);var y="img/img"+(H+1)+"."+U.toLowerCase();k[y]=new Uint8Array(iL.WS(U).aR([[O.buffer,0]],h.d,h.v,this.cj.u()));
p+="<div style=\"background-image:url('"+y+"'); left:"+h.x+"px; top:"+h.y+"px; width:"+h.d+"px; height:"+h.v+"px\">";
if(x&&x.url.v!="")p+="\n\t<a href=\""+x.url.v+"\" target=\""+x.null.v+"\" style=\"display:block;width:100%;height:100%;\"></a>\n";
p+="</div>\n"}p+="</body>\n</html>\n";var v=c.F(Math.round(p.length*1.5)),i=$.mW(p,v,0);k["index.html"]=v.slice(0,i);
E=UZIP.encode(k);Y=C+".zip"}if(z.Z6){var D=new XMLHttpRequest;D.open("GET","/papi/img/update.php?act=1&id="+z.Z6+"&rnd="+Math.random());
D.send()}var I=new q(B.E.l,!0);I.data={e:B.U.A_,data:E,name:Y};this.B(I);this.Mg.pM();this.close()};
eJ.prototype.jn=function(L,C){if(C.Dl!=null)this.T1.T(C.Dl);this._u=L;var U=L.d+","+L.v;if(U!=this.a0m){this.a0m=U;
this.gd.T(new hZ(L.d,L.v),L._Q)}this.cj.ahq();this.Tj(null,!0)};eJ.prototype.EO=function(L,C){return new hZ(Math.max(0,Math.min(150,(L-770)/2)),Math.max(0,Math.min(150,(C-590)/2)))};
eJ.prototype.AU=function(L,C){this.aU=L;this.fg=C;this.y7.x=Math.min(512,L-26-214);this.y7.y=Math.min(512,C-45);
if(this._u==null)return;var U=this.gd.u(),L=U.x,C=U.y,E=iL.Nj()[this.T1.u()],Y=iL.WS(E),b="<span style=\"width:",Q="display:inline-block; text-align:right;\">";
if(Y.Y9){var z=L,r=C,p;if(E=="PDF"||Y.WH){z=this.y7.x;r=this.y7.y}else{z=Math.min(L+20,this.y7.x);r=Math.min(C+20,this.y7.y)}this.wn.firstChild.setAttribute("style","display:block; width:"+z+"px; height:"+r+"px;")}else{if(Y.WH){z=this.y7.x;
r=this.y7.y}else{var T=this.a2v,k=T[0].bl,z=k.d,r=k.v;this.Mg.AU(Math.max(50,Math.min(z/B.M(),this.y7.x)),Math.max(50,Math.min(r/B.M(),this.y7.y)))}}var P=this.U0.byteLength,K=E+":"+b+64+"px;"+Q+eJ.Uy(P)+"</span>";
if(this.y7.x>200)K+=b+90+"px; opacity:"+.5+";"+Q+P.toLocaleString()+" B</span>";this.ew.innerHTML=K};
eJ.Uy=function(L){var C=0;while(L>>>C+10!=0)C+=10;var U=(L/(1<<C)).toFixed(1),E=["B","KB","MB","GB"][Math.floor(C/10)];
return U+" "+E};eJ.prototype.hU=function(L,C){this.OY=L};eJ.prototype.Tj=function(L,C){var U=this._u,E=this.gd.u(),Y=E.x,z=E.y,r=this.T1.u(),p=iL.Nj()[r],T=iL.Tg(U)[0].length,k=["GIF","PNG","WEBP"].indexOf(p)!=-1&&T>1,x="";
if(k&&C&&(T>4&&Y*z>1024*1024||Y*z*T>800*800*50)){var P=1;while(Math.max(Y>>>P,z>>>P)>800)P++;var b=window.confirm("Your animation is large ("+Y+" x "+z+" px). Press \"OK\" to scale it to "+(100>>>P)+"%. Press \"Cancel\" to keep the size.");
if(b){this.gd.T(new hZ(Y>>>P,z>>>P),null,!0);Y=Y>>>P;z=z>>>P}}var Q=U.add.artd,K=Q==null||Q.Cnt.v==1;
this.cj.WE(p,k,U.Oy.length!=0,K);var h=this.cj.u();this.U0=iL.UJ(U,p,Y,z,h,this.OY);if(this.U0==null){this._u=null;
return}B.CF(this.wn);this.Mg.pM();var O=iL.WS(p);if(O.WH){this.wn.innerHTML="<div></div>";x+="width:0px"}else if(O.Y9){var y=Y,v=z,i;
if(p=="PDF"){i=URL.createObjectURL(new Blob([this.U0],{type:"application/pdf"}))}else{i=URL.createObjectURL(new Blob([this.U0],{type:"image/svg+xml"}))}this.wn.innerHTML="<iframe src=\""+i+"\"></iframe>"}else{var D=this.a2v=O.ER(this.U0),I=D[0].bl,y=I.d,v=I.v;
this.Mg.T(D,D.length>1?h[h.length-3]:0);this.wn.appendChild(this.Mg.j);x="background: rgba(0,0,0,0);"}this.wn.setAttribute("style","display:block; background-size:"+16/B.M()+"px;"+x);
this.AU(this.aU,this.fg)};function eS(){da.call(this,[11,13],"shortcuts");var L=this.YN=B.w("div","scrollable");
L.setAttribute("style","min-width:700px; max-height:500px; padding:1.5em");this.body.appendChild(L);
this.YA()}eS.prototype=new da;eS.prototype.f=function(){da.prototype.f.call(this);this.YA()};eS.prototype.YA=function(){var L="<div style=\"line-height:1.4em; column-count:3; column-gap:3em; column-rule-width:1px;\" class=\"\">",C="",U=G,E=U.DM,Y=U.PS,z=U.Lv;
C+="<h2 style=\"margin-top:0;\">Main Menu</h2>";C+=L;C+=this.OA([[0,0],"---",[1,0],[E,U.PC],[1,2],[E,U.sx],[1,3],[Y,E,U.sx],[1,8],[z,Y,E,U.sx],[0,1],"---",[2,0],[Y,E,U.fQ],[2,1],[E,U.fQ],[5,0],[E,U.Ze],[5,1],[E,U.Hd],[5,2],[E,U.v5],[2,2],"Delete",[2,3],[z,U.JY],[10,16],[z,E,U.V],[12,79],[E,U.bj],[3],"---",[4,1],[E,U.QD],[4,2],[E,U.G8],[4,5],[E,U.Uf],[4,11],[E,U.mw],[0,3],"---",[6,0],[E,U.qg],[6,6,0],[z,E,U.VP],[6,9],[E,U.VP],[6,10],[E,U.E],[0,5],"---",[7,0],[E,U.U],[7,1],[E,U.WX],[7,2],[Y,E,U.mw],[0,7],"---",[8,0],[E,U.c1],[8,1],[E,U.t4],[8,3],[E,U.Du],[8,2],[E,U.cR],[8,4],[E,U.sU],[11,13],"?"]);
C+="</div>";C+="<h2 style=\"margin-top:1.5em;\">Navigation</h2>";C+=L;C+=this.OA(["Vertical scroll","Wheel","Horizontal scroll",[E,"Wheel"],"Zooming",[z,"Wheel"]]);
C+="</div>";C+="<h2 style=\"margin-top:1.5em;\">Quick tools (press to enable, release to disable)</h2>";
C+=L;C+=this.OA([[10,11],[E],[10,7],"Space",[10,17],[E,U.en]]);C+="</div>";C+="<h2 style=\"margin-top:1.5em;\">Tools</h2>";
C+=L;var r=eS.Wk,p=[];for(var H=0;H<r.length;H+=3)if(r[H+1])p.push(r[H],r[H+1]);p=p.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","}"]);
C+=this.OA(p);C+="</div>";this.YN.innerHTML=C};eS.prototype.OA=function(L){var C="",U=!0;for(var H=0;
H<L.length;H+=2){var E=L[H],Y=G.nX(L[H+1]);if(Y==null){U=!1;continue}var z=B.cw(gS.get(E));if(Y=="---"){if(!U)C+="<br/>";
C+="<div style=\"font-weight:bold; border-bottom: 1px solid;\">"+z+"</div>"}else C+="<div>"+z+" <span style=\"float:right; font-weight:bold;\">"+Y+"</span> </div>";
U=!1}return C};eS.Wk=[[10,11],"V",0,[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 cC(){da.call(this,[8,11,1],"soptions");this.Pp=null;var L=B.w("div","form");L.style.width="20em";
this.body.appendChild(L);this.kZ={Nm:[12,48],url:"URL",null:[12,71]};this.g$={};for(var C in this.kZ){var U=new hq(this.kZ[C],null,15);
this.g$[C]=U;L.appendChild(U.j)}var E=new br("OK",!0,null,!0);E.k("click",this.Rf,this);L.appendChild(E.j)}cC.prototype=new da;
cC.prototype.jn=function(L,C,U){var E=C.G;this.Pp=JSON.stringify(E);for(var Y in this.kZ){if(E[Y])this.g$[Y].T(E[Y].v)}};
cC.prototype.Rf=function(L){var C=JSON.parse(this.Pp);for(var U in this.kZ){var E=this.g$[U].u();C[U]={t:"TEXT",v:E}}var Y=new q(B.E.A,!0);
Y.m=W.ye;Y.data=C;Y.Fw=!0;this.B(Y);this.close()};function db(){da.call(this,[2,3],"fill");this.OY=null;
this.L2=null;var L=B.w("div","form padded");L.style.width="22em";this.body.appendChild(L);this.t5="FrgC BckC Clr Blck Gry Wht contentAware".split(" ");
this.QG=new bS([2,3],[[12,45],[12,46],[12,47],[13,1,10],[13,1,7],[13,1,8],[6,48,0,3]]);this.QG.k(B.E.L,this.a6K,this);
L.appendChild(this.QG.j);this.wn=B.w("span");L.appendChild(this.wn);this.J0=new di;this.J0.parent=this;
this.J0.Gm(0);this.vK=new bS([12,19,0],gz.w4,!1,gz.RY);L.appendChild(this.vK.j);this.oG=new dC([12,0],0,100,"%",0,!1);
this.oG.T(100);L.appendChild(this.oG.j);this.xG=new br("OK",!0,null,!0);this.xG.k("click",this.Rf,this);
this.body.appendChild(this.xG.j)}db.prototype=new da;db.prototype.Kc=function(L,C){return L!=null};db.prototype.sH=function(){return!0};
db.prototype.a6K=function(){var L=this.QG.u()==2,C=this.J0.j,U=this.wn;if(L)U.appendChild(C);else if(U.contains(C))U.removeChild(C)};
db.prototype.f=function(){da.prototype.f.call(this);this.QG.f();this.vK.f();this.oG.f()};db.prototype.Rf=function(L){if(!this.L2.qk())return;
var C=new q(B.E._w,!0),U=this.QG.u();C.data=W.dl.vG(this.t5[U],gz.w0[this.vK.u()],this.oG.u()/100,this.J0.u());
this.close();this.B(C)};db.prototype.jn=function(L,C){this.L2=L};db.prototype.hU=function(L,C){this.OY=L};
function ho(){da.call(this,[14,9],"stroke");this.OY=null;this.hd=B.w("div","form");this.hd.setAttribute("style","width:24em");
this.body.appendChild(this.hd);this.pC=new ik("FrFX",!0);this.pC.parent=this;var L=["Sz","Styl","Md","Opct"].concat(gM.TL);
for(var H=0;H<L.length;H++){var C=this.pC.vq[L[H]].j;this.hd.appendChild(C)}this.VA=!1;this.xG=new br("OK",!0,null,!0);
this.xG.k("click",this.Rf,this);this.body.appendChild(this.xG.j)}ho.prototype=new da;ho.prototype.Kc=function(L,C){return L!=null};
ho.prototype.sH=function(){return!0};ho.prototype.f=function(){da.prototype.f.call(this);this.pC.f()};
ho.prototype.Rf=function(L){var C=new q(B.E.A,!0);C.m=W.$B;C.data={e:"stroke",alJ:this.pC.u()};this.close();
this.B(C)};ho.prototype.jn=function(L,C){if(!this.VA){var U=gM.Lq[gM.order.indexOf("FrFX")];U=JSON.parse(U);
this.pC.update(L,U);this.VA=!0}var U=this.pC.u(),E=this.OY.yx;U.Clr.v=c.W._b({h:E>>16&255,P:E>>8&255,O:E&255});
this.pC.update(L,U)};ho.prototype.hU=function(L,C){this.OY=L};function bC(){da.call(this,[11,9],"textwarp");
this.g$=new dF;this.g$.k(B.E.L,this.yy,this);this.g$.parent=this;this.hd=B.w("div","form");this.hd.setAttribute("style","width:20em");
this.body.appendChild(this.hd);this.hd.appendChild(this.g$.zW.j);this.hd.appendChild(this.g$.Fu.j);this.hd.appendChild(this.g$.a0.j);
this.hd.appendChild(this.g$.R$.j);this.hd.appendChild(this.g$.h7.j);this.xG=new br("OK",!0,null,!0);
this.xG.k("click",this.Rf,this);this.hd.appendChild(this.xG.j);this.k("closebtn",this.di,this)}bC.prototype=new da;
bC.prototype.sH=function(){return!0};bC.prototype.f=function(){da.prototype.f.call(this);this.g$.f()};
bC.prototype.yy=function(L){var C=this.g$.u();this.OW({e:"warp",h2:C})};bC.prototype.OW=function(L){var C=new q(B.E.A,!0);
C.m=W.Ey;C.data=L;C.Fw=!0;this.B(C)};bC.prototype.di=function(L){this.OW({e:"warpCancel"})};bC.prototype.Rf=function(L){this.OW({e:"warpConfirm"});
this.close()};bC.prototype.jn=function(L,C){var U=L.N[L.C[0]];this.g$.T(U.add.TySh.DN)};function eY(){da.call(this,"Raw Photopea","rawpea");
this.$E=null;this.JX=null;this.cy=null;this.Sc=0;this.B6=null;this.MC=null;this.adE=500;this.alE=500;
this.k("closebtn",this.c$,this);B.QS(this.body,"flexrow");var L=B.w("div"),C=B.w("div"),E="<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>";
C.setAttribute("style","padding-left: 1em");this.body.appendChild(L);this.body.appendChild(C);this.UF=B.w("canvas");
L.appendChild(this.UF);this.gR=new bs(225);this.gR.sN(4);C.appendChild(this.gR.j);this.hd=B.w("div");
this.hd.setAttribute("style","width:18em;");C.appendChild(this.hd);this.a5o=new ip("Hi",!0);this.hd.appendChild(this.a5o.j);
this.Z5=[new cG("Temperature",2e3,13e3),new cG("Tint",-150,150),new cG([4,3],-4,4,null,!0),new cG([12,3,0],-100,100)];
for(var H=0;H<this.Z5.length;H++){var U=this.Z5[H];U.T(0);U.k(B.E.L,this.L9,this);this.hd.appendChild(U.j);
if(H==1)this.hd.appendChild(B.w("hr"))}this.xG=new br([1,0],!0,null,!0);this.xG.k("click",this.Rf,this);
this.hd.appendChild(this.xG.j);this.N0=new br(E+" JPG",!0,null,!0);this.N0.k("click",this.aa9,this);
this.hd.appendChild(this.N0.j);this.N0.j.style.marginTop="6px"}eY.prototype=new da;eY.prototype.EO=function(){return new hZ(0,0)};
eY.prototype.AU=function(L,C){this.adE=L-274;this.alE=C-32;if(this.$E)this.ic()};eY.prototype.f=function(){da.prototype.f.call(this);
this.xG.f();for(var H=0;H<this.Z5.length;H++)this.Z5[H].f()};eY.prototype.aa9=function(L){var C=this.$E,U=this.JX,E=c.F(C.width*C.height*4);
c.n0(E,4294967295);c.raw.ZO(U,E,C,this.O4());var Y=iL.WS("JPG").aR([[E.buffer]],U.w7,U.NJ,[85]),z=new q(B.E.l,!0);
z.data={e:B.U.A_,data:Y,name:"photo.jpg"};this.B(z)};eY.prototype.Rf=function(L){var C=this.$E,U=this.JX,E=c.F(C.width*C.height*4);
c.n0(E,4294967295);c.raw.ZO(U,E,C,this.O4());var Y=bd.L7(C),C={bl:new _(0,0,U.w7,U.NJ),data:E.buffer,Ii:Y},z=iL.KG("Raw Photo",[C]),r=new q(B.E.l,!0);
r.data={e:B.U.Nd,_u:z};this.B(r);this.c$();this.close()};eY.prototype.c$=function(){this.$E=null;this.JX=null;
this.B6=null;this.MC=null};eY.prototype.jn=function(L,C,U,E){this.$E=C.GE;this.JX=c.raw.abn(this.$E);
var Y=this.JX;this.a5o.T(Y.w7+" x "+Y.NJ+", "+(Y.w7*Y.NJ/1e6).toFixed(1)+" MPx");var z=c.raw.a5A(C.GE);
this.cy=eu.zZ(z);this.Z5[0].T(this.cy.Vl);this.Z5[1].T(this.cy.XB);for(var H=2;H<this.Z5.length;H++)this.Z5[H].T(0);
this.ic()};eY.prototype.hU=function(L,C){this.gR.Gm(c5.cK[L.WT]["--text-color"])};eY.prototype.ic=function(){var L=this.JX,C=L.w7,U=L.NJ,E=1;
while(C/E>this.adE*B.M()||U/E>this.alE*B.M())E++;var Y=Math.floor(C/E),z=Math.floor(U/E);this.B6={eB:new Float32Array(Y*z*3),w7:Y,NJ:z};
var r=this.UF.getContext("2d");this.MC=r.createImageData(Y,z);c.n0(this.MC.data,4294967295);var p=1/(E*E);
for(var T=0;T<z;T++)for(var k=0;k<Y;k++){var P=0,b=0,Q=0,K=(k+1)*E,h=(T+1)*E;for(var x=T*E;x<h;x++)for(var O=k*E;
O<K;O++){var y=(x*C+O)*3;P+=this.JX.eB[y];b+=this.JX.eB[y+1];Q+=this.JX.eB[y+2]}var v=(T*Y+k)*3;this.B6.eB[v]=P*p;
this.B6.eB[v+1]=b*p;this.B6.eB[v+2]=Q*p}this.L9()};eY.prototype.L9=function(){var L=this.$E,C=this.B6.w7,U=this.B6.NJ,E=C*U,Y=this.UF,z=Y.getContext("2d");
Y.width=C;Y.height=U;B.IO(Y,C,U);c.raw.ZO(this.B6,new Uint8Array(this.MC.data.buffer),L,this.O4());z.putImageData(this.MC,0,0);
var r=c.aP(this.MC.data);for(var H=0;H<4;H++)for(var p=1;p<256;p++)if(r[H][p]==0)r[H][p]=r[H][p-1];for(var H=0;
H<4;H++)for(var p=1;p<256;p++)if(r[H][p]==0)r[H][p]=r[H][p-1];this.gR.T(r)};eY.prototype.O4=function(){var L=[];
for(var H=0;H<this.Z5.length;H++)L.push(this.Z5[H].u());return L};function g1(){da.call(this,[11,11],"vbitmap");
this.x3=null;this.HU=null;this.Zb=null;this.KL=null;this.hN=null;this.AN=this.P_.bind(this);this.hd=B.w("div","form hbar");
this.body.appendChild(this.hd);this.tn=new dC([12,82],2,50,null);this.tn.k(B.E.L,this.P_,this);this.hd.appendChild(this.tn.j);
this.Jr="";this.em=new dh([12,81]);this.em.k(B.E.L,this.P_,this);this.hd.appendChild(this.em.j);this.Wj=new dh("Segmentize");
this.Wj.k(B.E.L,this.P_,this);this.hd.appendChild(this.Wj.j);this.xG=new br("OK",!1,null,!0);this.xG.k("click",this.Rf,this);
this.hd.appendChild(this.xG.j);var L=B.w("div","flexrow"),C=16;this.body.appendChild(L);this.ZR=new fe;
this.ZR.k("viewchange",this.GO,this);this.Vb=B.w("canvas");this.Vb.setAttribute("style","margin-left: 1px; cursor:grab;");
this.zS=this.Vb.getContext("2d");var U=c.F(16*16*4);c.Wg(U,C,C,8);this.Ep=c.scale.k3(U,C,C);this.ZR.Nr(this.Vb);
L.appendChild(this.ZR.j);L.appendChild(this.Vb)}g1.prototype=new da;g1.prototype.EO=function(){return new hZ(0,0)};
g1.prototype.sH=function(){return!0};g1.prototype.AU=function(L,C){C=C-26-30;L=Math.floor((L-28)/2);
B.wS(this.Vb,L,C);this.ZR.AU(L,C)};g1.prototype.fj=function(L,C,U,E){this.ZR.fj(E)};g1.prototype.f=function(){da.prototype.f.call(this);
this.tn.f();this.em.f();this.Wj.f();this.xG.f()};g1.prototype.jn=function(L,C){this.hN=L;var U=L.N[L.C[0]],E=c.my.Ad(U.buffer.buffer,U.rect.d,U.rect.v).ano,Y=E/((U.rect.d-2)*(U.rect.v-2));
this.em.T(Y<.75);this.Wj.T(!1);var z=U.rect.clone();z.x=z.y=0;this.x3={bl:z,data:U.buffer.buffer.slice(0)};
this.HU=null;this.ZR.T([this.x3]);this.tn.T(20);setTimeout(this.AN,20)};g1.prototype.P_=function(){var L=!0,C=Date.now(),U=this.x3,E=this.em.u(),Y=this.Wj.u(),z=E||Y,r=E+","+Y;
if(z&&(this.HU==null||this.Jr!=r)){this.Jr=r;console.log("recomputing");var p=new Uint8Array(U.data.slice(0)),T=15,k=35,P=U.bl.d,b=U.bl.v;
if(E){hi.Xp(p,p,P,b,T,c.nW.Vs,[k],2)}if(L){console.log("denoise",Date.now()-C);C=Date.now()}if(Y){var Q=c.my.QZ(p,P,b),K=Q.bj,h=new Uint8Array(K*4);
for(var H=0;H<K;H++){var x=H*4,O=H*6,y=1/Q.nu[O+5];h[x]=Q.nu[O]*y;h[x+1]=Q.nu[O+1]*y;h[x+2]=Q.nu[O+2]*y}for(var H=0;
H<p.length;H+=4){var v=Q.gn[H>>>2]*4;p[H]=h[v];p[H+1]=h[v+1];p[H+2]=h[v+2]}}this.HU={bl:U.bl.clone(),data:p.buffer};
if(L){console.log("segm",Date.now()-C);C=Date.now()}}if(z)U=this.HU;var p=new Uint8Array(U.data),P=U.bl.d,b=U.bl.v;
for(var H=0;H<p.length;H+=4){if(p[H+3]<10)p[H]=p[H+1]=p[H+2]=p[H+3]=0}var i=c.my.a6V(p,P,b,this.tn.u(),z?.1:2e-4);
if(L){console.log("doclipart",Date.now()-C);C=Date.now()}var D=i.gn.slice(0);for(var H=0;H<D.length;
H++)D[H]++;var I=new Uint8Array((P+2)*(b+2));c.zM(D,new _(1,1,P,b),I,new _(0,0,P+2,b+2));var m=Math.round((P+2)*(b+2)/1e4),f=ie.lg(I,P+2,b+2,Math.min(12,m)),A=ie.zG(f),d=new c0(1,0,0,1,-1,-1);
for(var H=0;H<A.length;H++)c.a.J(A[H].path.c,d,A[H].path.c);this.KL=A;this.Zb=i;if(L){console.log("trace",Date.now()-C);
C=Date.now()}for(var H=0;H<A.length;H++){var g=A[H];for(var X=H+1;X<A.length;X++){var n=A[X];if(i._V[n.color-1].est.q[3]>.05||n.parent!=H)continue;
var R=n.path.Z.slice(1);R.reverse();R=["M"].concat(R);var l=[],f=n.path.c.length;for(var w=0;w<f;w+=2){l[w]=n.path.c[f-2-w];
l[w+1]=n.path.c[f-2-w+1]}c.a.concat(g.path,{c:l,Z:R})}}for(var H=0;H<A.length;H++){var g=A[H],V=i._V[g.color-1].est.q;
if(V[3]<=.05){A.splice(H,1);H--;continue}}for(var H=1;H<A.length;H++){var F=A[H-1],g=A[H];if(F.color==g.color){c.a.concat(F.path,g.path);
A.splice(H,1);H--;continue}}this.GO()};g1.prototype.GO=function(L){if(this.KL==null)return;var C=this.x3.bl.d,U=this.x3.bl.v,E=this.KL,Y=this.Zb._V,z=this.zS,r=this.ZR.q3();
z.setTransform(1,0,0,1,0,0);z.clearRect(0,0,z.canvas.width,z.canvas.height);z.translate(z.canvas.width/2,z.canvas.height/2);
z.scale(r.S,r.S);z.translate(r.g.x/r.S-C/2,r.g.y/r.S-U/2);z.scale(1/r.S,1/r.S);z.fillStyle=this.Ep;z.fillRect(0,0,C*r.S,U*r.S);
z.scale(r.S,r.S);var p=[];for(var H=0;H<Y.length;H++){var T=Y[H].est.q;p.push({h:Math.round(255*T[0]),P:Math.round(255*T[1]),O:Math.round(255*T[2]),R:Math.round(255*T[3])})}for(var H=0;
H<E.length;H++){var k=E[H],T=p[k.color-1];if(T.R==0)continue;z.fillStyle="rgba("+T.h+","+T.P+","+T.O+","+T.R/255+")";
z.beginPath();Typr.U.pathToContext({crds:k.path.c,cmds:k.path.Z},z);z.fill()}};g1.prototype.Rf=function(L){var C=this.KL,U=C.length==1,E=this.hN,Y=E.C[0],z=E.N[Y],r=E.N.slice(0,Y);
if(!U)r.push(E.rJ());for(var H=0;H<C.length;H++){var p=C[H],T=this.Zb._V[p.color-1].est.q;c.a.J(p.path.c,new c0(1,0,0,1,z.rect.x,z.rect.y),p.path.c);
var k=E.wP();k.I_("Path "+H);r.push(k);k.opacity=Math.round(T[3]*255);k.bP|=16;k.add.SoCo={classID:"null",Clr:{t:"Objc",v:c.W._b({h:255*T[0],P:255*T[1],O:255*T[2]})}};
k.add.vmsk=new o.mR;k.add.vstk=JSON.parse(JSON.stringify(gM.H0.default));k.add.vmsk.n=c.a.n2(p.path,!1);
k.add.vogk=[];k.Gg();k.cr(E)}var P=r[r.length-1];if(!U){var k=E.wP();k.I_(z.getName());k.add.lsct=fI.Qr;
k.B4="pass";k.bP=24;r.push(k);P=k}var b=z.add.lmfx;if(b)P.add.lmfx=JSON.parse(JSON.stringify(b));for(var H=Y+1;
H<E.N.length;H++)r.push(E.N[H]);var Q=new q(B.E.A,!0);Q.Fw=!0;Q.m=W.aV;Q.data={e:o._f,f5:r,bx:[Y+C.length+(U?-1:1)],z9:[11,11]};
this.B(Q);this.close()};function h7(L){da.call(this,[[7,11],[7,13]][L],["redge","magiccut"][L]);this.PX=L;
this.x3={};this.G2=null;this.us=null;this.hN=null;this.Gy=null;this.Wu=null;this.Et=[];this.Ty=-1;this.hd=B.w("div","form hbar");
this.body.appendChild(this.hd);this.wc=new gx;this.wc.parent=this;this.wc.k(B.E.L,this.cl,this);this.hd.appendChild(this.wc.j);
var C=L==0?["#ffffff","#888888","#000000"]:["#00dd00","#888888","#ff0000"];C=C.concat(PIMG["tools/hand"],PIMG.zoomIn,PIMG.zoomOut);
var U=L==0?[[12,45],"Unknown",[12,46]]:[[12,45],"Erase",[12,46]];this.mT=new bO(null,C,U,28);this.mT.k(B.E.L,this.fj,this);
this.hd.appendChild(this.mT.j);this.En=new cU([7,9],0,50,null);this.En.parent=this;this.En.k(B.E.L,[this.HK,this.P_][L],this);
this.hd.appendChild(this.En.j);var E=this.aei=new br([2,2],!1,null,!0);E.k("click",this.c$,this);this.hd.appendChild(E.j);
var Y=this.a1B=new br([12,90],!1,null,!0);Y.k("click",function(T){alert(L==0?gS.get([15,7,1]):"Mark the object with Green, background with Red. Two colors should never touch.",5e3)},this);
this.hd.appendChild(Y.j);var z=new br("Tutorial",!1,null,!0);z.k("click",this.a8Z,this);this.hd.appendChild(z.j);
var r=B.w("span","form");this.hd.appendChild(r);r.setAttribute("style","position:absolute;  right:0px");
this.MF=new bO([12,46],["checker","#ffffff","#000000"]);this.MF.k(B.E.L,this.VG,this);r.appendChild(this.MF.j);
this.bn=new bS(null,[[6,13],[6,2],[17,2]]);r.appendChild(this.bn.j);this.xG=new br("OK",!1,null,!0);
this.xG.k("click",this.Rf,this);r.appendChild(this.xG.j);var p=B.w("div","flexrow");this.body.appendChild(p);
this.U$=new fe(!0);this.qH=new fe;this.U$.HE(this.qH);this.qH.HE(this.U$);this.U$.k("mousedown",this.g3,this);
this.U$.k("mousemove",this.Rl,this);this.U$.k("mouseup",this.Zr,this);this.U$.k("zoom",this.cl,this);
this.qH.k("zoom",this.cl,this);p.appendChild(this.U$.j);p.appendChild(this.qH.j)}h7.prototype=new da;
h7.prototype.Kc=function(L,C){var U=L!=null&&!L.N[L.C[0]].rect.ue();if(!U)alert("The layer is empty.");
return U};h7.prototype.EO=function(){return new hZ(0,0)};h7.prototype.sH=function(){return!0};h7.prototype.AU=function(L,C){C=C-26-33;
L=Math.floor((L-28)/2);this.U$.AU(L,C);this.qH.AU(L,C)};h7.prototype.f=function(){da.prototype.f.call(this);
this.wc.f();this.En.f();this.xG.f();this.MF.f();this.bn.f();this.aei.f();this.a1B.f()};h7.prototype.a8Z=function(L){window.open("//www.photopea.com/"+["learn/refine-edge","tuts/magic-cut-remove-image-background-online"][this.PX],"_blank")};
h7.prototype.hU=function(L,C){this.us=L;if(C==c_.Sw||C==c_.oI){this.wc.LP(L.lN);this.wc.T(fW.qR(),L.lN.sd,L.lN.wY)}};
h7.prototype.fj=function(L,C,U,E){var Y=this.mT.u();if(E==null){var E=new G;if(Y>=3)E.nR("Space");if(Y>=4){E.nR("ControlLeft");
if(Y==5)E.nR("AltLeft")}this.U$.fj(E);return}this.Gy=E;var z=W.dl.bz(this.wc.u(),E);if(z!=null){this.wc.T(z);
this.cl()}else if(E.q(G.DM)&&E.q(G.fQ)){var r=this.Et,p=0;if(E.q(G.PS)){if(this.Ty+1<r.length)p=1}else if(this.Ty>0)p=-1;
if(p!=0){this.Ty+=p;var T=this.Ty,k=this.x3;if(p==1)c.La(r[T][2],r[T][0],k.i_,k.rect);else c.La(r[T+1][1],r[T+1][0],k.i_,k.rect);
k.mk=k.rect;this.P_()}}else if(Y<3)this.U$.fj(E)};h7.prototype.A3=function(L){var C=this.x3,U=this.Et,E=c.F(L.X()*4);
c.La(C.fv,C.rect,E,L);C.fv=null;var Y=c.F(L.X()*4);c.La(C.i_,C.rect,Y,L);this.Ty++;U[this.Ty]=[L.clone(),E,Y];
while(U.length>this.Ty+1)U.pop();while(U.length>50){U=U.slice(1);this.Ty--}};h7.prototype.cl=function(){var L=this.us,C=iR.J$(this.wc.u(),L.lN.sd,this.U$.q3().S);
this.U$.r9(C)};h7.prototype.g3=function(L){var C=this.us,U=this.x3,E=this.Gy,Y=this.wc.u(),z=this.U$.g6(),r=[16777215,8421504,0][this.mT.u()];
this.G2=new iR(Y,C.lN.list[0].sd,C.lN.list[0].wY,{u8:1,mS:!0},r,C.ho,U.rect);U.fv=U.i_.slice(0);if(E!=null&&E.q(G.PS)&&this.Wu){this.G2.moveTo(this.Wu.x,this.Wu.y);
this.G2.lineTo(z.x,z.y)}else this.G2.moveTo(z.x,z.y);this.Qn()};h7.prototype.Rl=function(L){var C=this.x3,U=this.U$.g6();
this.G2.lineTo(U.x,U.y);this.Qn()};h7.prototype.Zr=function(L){this.Wu=this.U$.g6();this.A3(this.G2.VO());
this.P_()};h7.prototype.Qn=function(){var L=this.x3,C=this.G2,U=C.Fr();if(U.ue())return;L.mk=U;c.Q.Kj("norm",C.fS(),C.dm(),L.i_,L.rect,U,1);
this.CP()};h7.prototype.c$=function(L){var C=this.x3;C.fv=C.i_.slice(0);C.mk=C.rect;c.n0(C.i_,[4278190080,4292730333][this.PX]);
this.A3(C.rect);this.P_()};h7.prototype.jn=function(L,C){this.hN=L;var U=L.N[L.C[0]],E=U.rect.clone(),Y=E.d,z=E.v;
this.En.T(this.PX==0?3:Y*z<3e6?3:0);this.mT.T(L.t==null?0:1);this.En.aA();if(this.PX==0&&L.t!=null||this.PX==1)this.En.rX();
var r=this.PX,p=c.F(E.X()),T=new Float32Array(E.X());if(r==0&&L.t){c.zM(L.t.channel,L.t.rect,p,E);var k=c.F(E.X());
for(var P=0;P<z;P++)for(var b=0;b<Y;b++){var H=P*Y+b,Q=p[H];if(b>0&&p[H-1]!=Q||b<Y-1&&p[H+1]!=Q||P>0&&p[H-Y]!=Q||P<z-1&&p[H+Y]!=Q)k[H]=255}c.style.i3(k,T,Y,z)}else T.fill(1e9);
E.x=E.y=0;this.x3={rect:E,eB:U.buffer,e5:p,Q0:T,yi:c.F(E.X()*4),Mi:c.F(E.X()*4),i_:c.F(E.X()*4),fv:null,MM:null,mk:E,afv:{}};
if(r==0)this.HK();else{this.x3.afv=W.jw.ri(L);var K=this.x3.i_;c.n0(K,4287137928);var h=c.uD.getSelection(U.buffer,Y,z),x=Math.round(Y/60),O=Math.round(.7*z);
for(var P=0;P<z;P++)for(var b=0;b<Y;b++){var y=(P*Y+b)*4,v=h[y>>>2];v=v>128?255:128;if(P<x||P<O&&(b<x||b>Y-1-x))v=0;
K[y]=K[y+1]=K[y+2]=v}this.P_()}this.Et=[1];this.Ty=0;this.U$.acq();var i=this.wc.u();i.Brsh.v.Dmtr.v.val=Math.round(E.d/(r==0?10:20));
this.wc.T(i);this.cl()};h7.prototype.HK=function(){var L=this.x3,C=L.rect.X(),U=this.En.u(),E=L.e5.slice(0);
for(var H=0;H<C;H++)if(L.Q0[H]<U)E[H]=128;c.n0(L.i_,4294967295);c.Wn(E,L.i_,0);c.Wn(E,L.i_,1);c.Wn(E,L.i_,2);
L.mk=L.rect;this.P_()};h7.prototype.P_=function(){var L=this.x3,Y,p,T=0,k=0,P=0;this.CP();var C=L.rect,U=C.d,E=C.v,z=c.F(C.X()),r=L.eB;
c.wH(L.i_,z,0);for(var H=0;H<z.length;H++){if(r[(H<<2)+3]!=255)continue;var b=z[H];if(b==0)T++;else if(b==255)k++;
else P++}if(T*k*P!=0){if(this.PX==0)p=c.MO.MO(C,r,z);else{var Q=this.mT.u();for(var K=1;K<E;K++)for(var h=1;
h<U;h++){var H=K*U+h,x=z[H],O=z[H-1];if(x==0&&O==255||x==255&&O==0){Y="The Red and Green should never touch! Erase it with Grey.";
break}}var y=Date.now(),v=this.x3.afv;c.hL(z,v.lm);W.jw.xr(v,!0);var i=Math.ceil(this.En.u()/2);if(i==0){p=r.slice(0);
c.Wn(v.t,p,3)}else{var D=v.t.slice(0),I=v.t.slice(0);for(var m=0;m<i;m++){for(var K=1;K<E-1;K++)for(var h=1;
h<U-1;h++){var H=K*C.d+h,f=D[H];if(D[H-U]!=f||D[H-1]!=f||D[H+1]!=f||D[H+U]!=f)I[H]=128;else I[H]=f}var A=D;
D=I;I=A}p=c.MO.MO(C,r,D,20,!1)}}}else{p=r.slice(0);c.Wn(z,p,3)}for(var H=3;H<p.length;H+=4)if(p[H]>r[H])p[H]=r[H];
if(C.cg(L.rect))L.MM=p;else c.La(p,C,L.MM,L.rect);this.VG();if(Y)alert(Y,4e3)};h7.prototype.CP=function(L){var C=this.x3,U=C.mk;
c.La(C.eB,C.rect,C.yi,C.rect,U,!0);var E=C.i_;if(this.PX==1){var Y=new Uint32Array(256);Y[0]=4278190335;
Y[255]=4278255360;var z=C.rect.X();E=E.slice(0);var r=new Uint32Array(E.buffer);for(var H=0;H<z;H+=2){r[H]=Y[r[H]&255];
r[H+1]=Y[r[H+1]&255]}}c.Q.Kj("norm",E,C.rect,C.yi,C.rect,U,.3);this.U$.T([{bl:C.rect,data:C.yi.buffer}])};
h7.prototype.VG=function(L){var C=this.x3;c.n0(C.Mi,[0,4294967295,4278190080][this.MF.u()]);c.Q.Kj("norm",C.MM,C.rect,C.Mi,C.rect,C.rect,1);
this.qH.T([{bl:C.rect,data:C.Mi.buffer}])};h7.prototype.Rf=function(L){var C=this.hN,U=this.x3,E=this.bn.u(),Y=C.N[C.C[0]],z=new q(B.E.A,!0);
z.Fw=!0;var r=Y.rect.clone();if(E==0&&Y.rK()||E!=0&&!Y.rK()){z.m=W.aV;z.data={e:o.Zu,$:C.C[0]};this.B(z)}if(C.t!=null){z.m=W.Y7;
z.data={e:"fromAction",jX:W.kd.xe()};this.B(z)}if(E==0){var p=C.N.slice(0),T=C.wP();T.I_(Y.getName());
p.splice(C.C[0]+1,0,T);T.rect=r;T.buffer=U.MM;T.s();z.m=W.aV;z.data={e:o._f,f5:p,bx:[C.C[0]+1],z9:[7,11]};
this.B(z)}if(E==1){var k=Y.xV();z.m=W.aV;z.data={e:o.KU,a2I:!0};this.B(z);var P=Y.xV();P.channel=c.F(r.X());
P.rect=r;P.color=0;P.st=!0;c.wH(U.MM,P.channel,3);if(k){var b=P.O1(k);P.rect=b.rect;P.channel=b.channel;
P.color=b.color}P.Jx();Y.cr()}if(E==2){var Q={rect:r,channel:c.F(r.X())};c.wH(U.MM,Q.channel,3);z.m=W.Y7;
z.data={e:"setsel",t:Q,z9:this.Kd};this.B(z)}this.close()};function gA(){da.call(this,[1,13],"locstor");
this.OY=null;this.Kl=[];var L=this.body,C=B.w("p");C.textContent="These files are loaded every time you start Photopea.";
L.appendChild(C);this.a6i=0;this.Zj=B.w("span");L.appendChild(this.Zj);this.Zj.setAttribute("style","display:inline-block;  width:12em;  font-weight:bold;");
var U=B.w("span","form");L.appendChild(U);this.K9=new br([5,4],!1,null,!0);this.K9.k("click",this.acI,this);
U.appendChild(this.K9.j);this.ajK=new br("Get all as ZIP",!1,null,!0);this.ajK.k("click",this.VM,this);
U.appendChild(this.ajK.j);this.yr=new fN(!0);this.yr.parent=this;this.yr.sN(1);this.yr.k(B.E.L,this.ane,this);
L.appendChild(this.yr.j);this.yr.j.setAttribute("style","width: 40em; height: 25em")}gA.prototype=new da;
gA.prototype.f=function(){da.prototype.f.call(this);this.Zj.textContent=gS.get([13,2])+": "+eJ.Uy(this.a6i);
this.K9.f()};gA.prototype.hU=function(L,C){this.OY=L;if(C==c_.GR)this.jn()};gA.prototype.jn=function(L,C){var U=this.OY.KZ.Rp,T=0;
this.Kl=[];for(var E in U)this.Kl.push(E);this.Kl.sort(function(P,b){P=P.split(".");b=b.split(".");return P[1]==b[1]?P[0]<b[0]?-1:1:P[1]<b[1]?-1:1});
var Y=Math.floor(100*B.M()),z=Math.floor(16*B.M()),r=[],p=[];for(var H=0;H<this.Kl.length;H++){var E=this.Kl[H],k=gA.BU(E,U[E],Y,z);
r.push(k);p.push(E);T+=U[E].byteLength}this.yr.OF(r,p,Y,z);this.a6i=T;this.f()};gA.prototype.ane=function(L){this.yr.VS(this.yr.u())};
gA.prototype.acI=function(L){var H=this.yr.u();if(H==-1){alert("Select a file first.");return}this.yr.T(-1);
var C=this.OY.KZ.Rp;delete C[this.Kl[H]];var U=new q(B.E.l,!0);U.data={e:B.U.MP,wm:c_.GR};this.B(U)};
gA.prototype.VM=function(L){var C=this.OY.KZ.Rp,U={};for(var E in C)U[E]=new Uint8Array(C[E]);var Y=UZIP.encode(U);
g8.save(Y,"resources.zip")};gA.BU=function(L,C,U,E){var Y=B.w("canvas"),p=0;Y.width=U;Y.height=E;var z=Y.getContext("2d"),r=L.split(".").pop().toLowerCase();
for(var H=0;H<r.length;H++)p+=r.charCodeAt(H)*613<<8*H;z.fillStyle="#"+c.Xo(p&16777215);z.fillRect(0,0,20,E);
var T=Math.floor(14*B.M());z.fillStyle="#000000";z.font="bold "+T+"px sans-serif";var k=(E-T)/2,P=eJ.Uy(C.byteLength),b=z.measureText(P);
z.fillText(P,U-12-b.width,E-k);return Y.toDataURL()};function g3(L,C,U){da.call(this,C,"cwindow");this.ahL=new hZ(U[0],U[1]-33);
this.hd=B.w("div","form");this.hd.setAttribute("style","width:"+(U[2]-U[0])+"px; height:"+(U[3]-U[1])+"px");
this.body.appendChild(this.hd)}g3.prototype=new da;g3.prototype.EO=function(L,C){return this.ahL.clone()};
function dA(){da.call(this,["PSD VAR0",[25,0]],"templates");this.gU=null;this.rG=0;this.SZ=null;this.body.setAttribute("style","padding:0");
this.yh=new br("Add Templates",null,null,!0);this.body.appendChild(this.yh.j);this.yh.k("click",this.qK,this);
this.yh.j.setAttribute("style","position:absolute; margin-top: -28px;  margin-left:150px");this.ai1=new br("New Template",null,null,!0);
this.ai1.k("click",this.aac,this);this._s=B.w("iframe","scrollable");this._s.setAttribute("style","border:none; margin:0; padding:0;");
this.SQ=B.w("div","form scrollable padded");this.hR=B.w("div","form scrollable padded label12");var L=[],C=dA.v0;
this.u4=[];for(var U in C){var E=parseInt(U.slice(1)),Y=E%10==0?"":"\u2800\u2800- ";L.push(Y+C[U]);this.u4.push(E)}this.RO=[new hq("Name",null,30),new hq("Description",null,30,4),new hq("File"," www.Photopea.com#i...",17),new hq("Thumbnail URL","* Use Imgur.com etc., ratio 3:2",17),new bS("Category",L),new br("<< Back",null,null,!0),new br("Save",null,null,!0),new ip("Publish your PSD: File - Publish Online - PSD. Use that URL as \"File\"."),new ip("Get a Thumbnail URL: File - Publish Online - JPG. At Imgur.com, right-click your image and choose \"Copy Image Address\".")];
for(var H=0;H<this.RO.length;H++){var z=this.RO[H];this.hR.appendChild(z.j);z.parent=this;if(H!=5)B.E4(this.hR);
if(z instanceof br)z.k("click",this.a7H,this)}this.body.appendChild(this._s)}dA.prototype=new da;dA.prototype.EO=function(L,C){return new hZ(0,0)};
dA.prototype.AU=function(L,C){C=C-4;L=L;var U=this.SQ;U.style.width=L-12+"px";U.style.height=C-12+"px";
var U=this.hR;U.style.width=L-12+"px";U.style.height=C-12+"px";var U=this._s;U.style.width=L+"px";U.style.height=C+"px"};
dA.prototype.f=function(){da.prototype.f.call(this)};dA.prototype.jn=function(L,C,U,E){this.qK(null,!1)};
dA.prototype.qK=function(L,C){var U=C!=null?C:B.DW(this._s);if(U){if(!cN.PW()){alert("You need to log in first!");
return}var E=cN.XT();this.gU=E.tpl?E.tpl.list:[];this.I3()}else{this._s.setAttribute("src","");this._s.setAttribute("src","plugins/templates.html")}this.body.removeChild(this.body.children[this.body.children.length-1]);
this.body.appendChild(U?this.SQ:this._s);this.yh.uc(U?"All Templates":"Add Templates")};dA.prototype.I3=function(){var L=this.gU,C=this.SQ;
B.CF(C);var U=B.w("h1");U.textContent="Share your PSD templates with the world!";var E=B.w("h3");E.textContent="Users won't be able to download a PSD, they can only export a JPG or a PNG after editing.";
C.appendChild(U);C.appendChild(E);C.appendChild(this.ai1.j);for(var H=0;H<L.length;H++){var Y=L[H],z=B.w("div");
C.appendChild(z);z.setAttribute("style","clear:both;");var r=B.w("img");z.appendChild(r);r.setAttribute("src",Y.thmb);
r.setAttribute("style","height:10em; float:left; margin-right: 1em; margin-bottom:1em;");var p=B.w("h3");
z.appendChild(p);p.textContent=Y.name;var T=B.w("p");z.appendChild(T);T.textContent=Y.desc;for(var k=0;
k<2;k++){var P=new br(k==0?"Edit":"Delete",null,null,!0);P.a23=H;P.sb=k==0;P.k("click",this.aji,this);
z.appendChild(P.j)}}};dA.prototype.aac=function(L){this.SZ={catg:0,desc:"",file:"",name:"",thmb:"",utme:""};
this.sb()};dA.prototype.aji=function(L){this.rG=L.target.a23;if(!L.target.sb){this.gU.splice(this.rG,1);
this.VM();this.I3();return}this.sb()};dA.prototype.sb=function(){this.body.removeChild(this.SQ);this.body.appendChild(this.hR);
var L=["name","desc","file","thmb"],C=this.SZ?this.SZ:this.gU[this.rG];for(var H=0;H<4;H++){var U=C[L[H]];
if(U!=""&&H==2)U="https://photopea.com#i"+U;this.RO[H].T(U)}this.RO[4].T(this.u4.indexOf(C.catg))};dA.prototype.a7H=function(L){if(this.RO.indexOf(L.target)==6){var C=["name","desc","file","thmb"],U=this.SZ?this.SZ:this.gU[this.rG];
for(var H=0;H<4;H++){var E=this.RO[H].u().trim();if(E.length==0){alert("One of values is empty.");return}if(H==2){var Y=E.split("#i");
if(Y.length!=2||Y[1].length!=8){alert("File ID is incorrect.");return}E=Y.pop()}if(H==3&&(!E.startsWith("http")||!E.endsWith(".jpg")&&!E.endsWith(".png"))){alert("Thumbnail URL is incorrect.");
return}U[C[H]]=E}U.catg=this.u4[this.RO[4].u()];U.utme=""+Math.round(Date.now()/1e3);if(this.SZ)this.gU.push(this.SZ);
this.VM()}this.SZ=null;this.body.removeChild(this.hR);this.body.appendChild(this.SQ);this.I3()};dA.prototype.VM=function(){var L=cN.XT();
if(this.gU.length==0)delete L.tpl;else L.tpl={list:JSON.parse(JSON.stringify(this.gU))};cN.NG(L,function(){alert("Saved.")})};
dA.v0={c0:"Mockups",c1:"Mobile & Web",c2:"Print",c3:"Product",c10:"Social Media",c11:"Youtube",c12:"Instagram",c13:"Facebook",c20:"Print",c21:"Cards",c22:"Invitations",c23:"Brochures",c30:"Mobile",c40:"Websites",c50:"Presentations",c60:"Other"};
function d$(){da.call(this,"Make Selection","makesel");this.OY=null;var L=B.w("div","form");this.body.appendChild(L);
this.v2=new dh("Anti-Alias");this.v2.T(!0);L.appendChild(this.v2.j);B.E4(L);this.j3=new du(!0);L.appendChild(this.j3.j);
this.xG=new br("OK",!0,null,!0);this.xG.k("click",this.Rf,this);this.body.appendChild(this.xG.j)}d$.prototype=new da;
d$.prototype.f=function(){da.prototype.f.call(this);this.j3.f()};d$.prototype.Rf=function(L){var C=new q(B.E.A,!0);
C.m=W.Y7;C.data={e:"frompath",F$:[null,0,this.j3.ac6(),!this.v2.u()]};this.close();this.B(C)};function hQ(L,C,U,E){gG.call(this);
this.name=L;this.a0p=U;this.mJ=E;this.tN=B.w("div","");this.tN.setAttribute("draggable","true");this.ln=B.w("div","pbody");
this.xB=new br("",!1,"");this.xB.parent=this;this.a5S=B.w("span","cross");this.Qe=B.w("span","label");
var Y=this.adW.bind(this);this.tN.addEventListener("mousedown",this.a9o.bind(this),!1);this.tN.addEventListener("contextmenu",Y,!1);
this.xB.j.addEventListener("contextmenu",Y,!1);this.a5S.addEventListener("mousedown",this.Ax.bind(this),!1);
this.tN.appendChild(this.Qe);if(C)this.tN.appendChild(this.a5S);this.Gi=!1;this.hg=new aq([{name:[1,12]}]);
this.hg.k("select",this.Ax,this);this.Qe.textContent=L}hQ.prototype=new gG;hQ.prototype.eE=function(){return null};
hQ.prototype.Kn=function(){return new hZ(0,0)};hQ.prototype.f=function(){var L=gS.get(this.name),C=this.aU==0?22:Math.round(2+this.aU/50),U=L.length>C;
this.Qe.textContent=U?L.slice(0,C-2):L;if(U)for(var E=0;E<2;E++){var Y=B.w("span");Y.textContent=L.charAt(C-2+E);
Y.setAttribute("style","opacity:"+(.6-E*.4));this.Qe.appendChild(Y)}var z=L.split(" "),r=z.length==2?z[0].substring(0,2)+z[1][0]:L.substring(0,3);
if(r.charCodeAt(0)>=11776)r=r.substring(0,1);var p=this.a0p;if(p==null)this.xB.uc(r,L);else{if(p.indexOf("\"")==-1)this.xB.uc("<img src=\""+p+"\" alt=\""+L+"\" height=\"20\" />",L)}};
hQ.prototype.enable=function(){this.ln.setAttribute("class","pbody")};hQ.prototype.disable=function(){this.ln.setAttribute("class","pbody disabled")};
hQ.prototype.hU=function(L,C){};hQ.prototype.jn=function(L,C,U){};hQ.prototype.Yk=function(L){};hQ.prototype.AU=function(L,C){};
hQ.prototype.oz=function(L){this.name=L;this.f()};hQ.prototype.tt=function(){};hQ.prototype.a9o=function(L){if(L.button==0)this.B(new q("select",!1))};
hQ.prototype.adW=function(L){B.ZS(L);if(this.mJ!=null&&isNaN(this.mJ))return;var C=B.K7(L,document.body),U=this.hg;
U.update(null);U.f();U.parent=this;var E=new q(B.E.l,!0);E.data={e:B.U.Ww,f0:U,x:C.x+1,y:C.y+1};this.B(E)};
hQ.prototype.oJ=function(){this.Ax({})};hQ.prototype.Ax=function(L){if(L.stopPropagation)L.stopPropagation();
if(this.mJ!=null&&!isNaN(this.mJ)){var C=new q(B.E.l,!0);C.data={e:B.U.Tq,f0:this.hg};this.B(C);C.data={e:B.U.MP,wm:c_.zx,G:parseFloat(this.mJ),AW:"del"};
this.B(C)}else if(this.NI())this.B(new q(B.E.Id,!1))};hQ.prototype.NI=function(L){return!0};hQ.prototype.zI=function(L,C,U,E,Y){};
hQ.prototype.Yh=function(L,C,U,E,Y){};hQ.prototype.bM=function(L,C,U,E,Y){};hQ.Tr=function(L,C){if(L.childElementCount!=0)return;
var U=L.textContent;this.aL=this.a9G.bind(this);this.a1T=this.aeC.bind(this);this.AR=C;this.Nz=L;this.akb=U;
var E=B.w("input","");E.setAttribute("type","text");E.setAttribute("size","10");E.setAttribute("value",U);
B.CF(L);L.appendChild(E);E.select();E.focus();L.addEventListener("keyup",this.aL,!1);document.body.addEventListener("mousedown",this.a1T,!1)};
hQ.Tr.prototype.a9G=function(L){var C=G.IX,U=C(L.code,G.CT);if(C(L.code,G.ox)||U)this.SS(U)};hQ.Tr.prototype.aeC=function(L){var C=L.target;
if(C.tagName&&C.tagName.toLowerCase()=="input")return;this.SS(!0)};hQ.Tr.prototype.SS=function(L){var C=this.Nz;
C.removeEventListener("keyup",this.aL);document.body.removeEventListener("mousedown",this.a1T);if(L){var U=C.firstChild.value;
this.AR(U)}else{B.CF(C);C.textContent=this.akb}};hQ.Du={n3:"0",aiO:"1",aV:"2",akr:"3",a17:"4",ka:"5",CSS:"6",Sw:"7",a6b:"8",aff:"9",a72:"10",Nv:"11",a9U:"12",GM:"13",No:"14",a3w:"15",a1i:"16",ty:"17",agv:"19"};
function bf(){hQ.call(this,[9,9],!1,null,hQ.Du.Nv);this.OY=null;this.HH=[0,0];this.OM=B.w("div","padded scrollable");
this.OM.setAttribute("style","width:260px;  height:260px");this.ln.appendChild(this.OM);this.k(B.E.L,this.au,this);
this._I=B.w("div","lpfoot");this.ln.appendChild(this._I);this.sJ=[];var L="<svg  class=\"gsicon\" viewBox=\"0 0 14 18\" width=\"14\" height=\"18\" fill=\"black\">",C="</svg>",U=L+"<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\" />"+C,E=L+"<path d=\"M0,2 L14,9 L0,16 Z\" />"+C;
this.anc=L+"<circle cx=\"7\" cy=\"9\" r=\"6\" />"+C;this.ahC=L+"<path d=\"M2,4 L12,4 L12,14 L2,14 Z\" />"+C;
var Y=[this.anc,E,"lrs/folder","lrs/newlayer","lrs/bin",U],z=[[15,8,0],[5,8],[15,8,1],[15,8,2],[5,4],[1,2]];
for(var H=0;H<Y.length;H++){var r=Y[H];if(1<H&&H!=Y.length-1)r="<img src=\""+PIMG[Y[H]]+"\" class=\"gsicon\" />";
var p=new br(r,!1,z[H]);p.k("click",this._1,this);this._I.appendChild(p.j);this.sJ.push(p)}}bf.prototype=new hQ("");
bf.prototype.f=function(){hQ.prototype.f.call(this);for(var H=0;H<this.sJ.length;H++)this.sJ[H].f()};
bf.prototype._1=function(L){var H=this.sJ.indexOf(L.currentTarget),C=this.HH,U=this.OY,E=U.tL;if(H==0){var Y,z=U.l_;
if(E.length==0){alert("Create an Action Set first.");return}if(C.length<2){alert("Select a target action first.");
return}if(z==null){Y=this.ahC;z=this.HH}else{Y=this.anc;z=null}this.sJ[0].uc(Y);U.l_=z}else if(H==1)this.ahR();
else if(H==2||H==3){var r={z9:"Action Set "+E.length,e4:[],exp:!0};if(H==2||E.length==0){C=[E.length];
E.push(r)}if(H==3){var p=E[C[0]].e4;C=[C[0],p.length];p.push({z9:"Action "+p.length,color:0,e4:[],aiI:!1,shift:!1,exp:!0,Oi:p.length})}this.HH=C;
this.L9()}else if(H==4){var T;if(C.length==1)T=E;else if(C.length==2)T=E[C[0]].e4;else T=E[C[0]].e4[C[1]].e4;
var k=C.length-1;T.splice(C[k],1);if(T.length==0)C.pop();else while(C[k]>=T.length)C[k]--;if(C.length==0)C.push(0);
this.L9()}else if(H==5){if(E.length==0){alert("No Actions Present.");return}var P=new q(B.E.l,!0);P.data={e:B.U.PY,a2L:c_.A,Od:C[0]};
this.B(P)}};bf.prototype.au=function(L){var C=this.OY.tL,U=L.data.e,E=L.data.lK;if(U=="sel")this.HH=E;
if(U=="fold"){if(E.length==1)C[E[0]].exp=!C[E[0]].exp;else C[E[0]].e4[E[1]].exp=!C[E[0]].e4[E[1]].exp}if(U=="enab"){var Y=C[E[0]].e4[E[1]].e4[E[2]];
Y.p=!Y.p}if(U=="nchange"){if(E.length==1)C[E[0]].z9=L.data.Eh;else C[E[0]].e4[E[1]].z9=L.data.Eh}this.L9()};
bf.prototype.hU=function(L,C){this.OY=L;if(C==c_.A||C==c_.oI)this.L9()};bf.prototype.L9=function(){if(this.OY==null)return;
B.CF(this.OM);var L=this.OY.tL;if(L.length==0)return;var C=JSON.stringify(this.HH);for(var H=0;H<L.length;
H++){var U=L[H],E=new bf.w5([H],C,U.exp,U.z9.split("=").pop());E.parent=this;this.OM.appendChild(E.j);
if(!U.exp)continue;for(var Y=0;Y<U.e4.length;Y++){var z=U.e4[Y],E=new bf.w5([H,Y],C,z.exp,z.z9.split("=").pop());
E.parent=this;this.OM.appendChild(E.j);if(!z.exp)continue;for(var r=0;r<z.e4.length;r++){var p=z.e4[r],E=new bf.w5([H,Y,r],C,null,gS.get(hy.ack(p)),p.p);
E.parent=this;this.OM.appendChild(E.j)}}}};bf.prototype.ahR=function(){var L=this.OY.tL,C=this.HH;if(L.length==0){alert("No Actions Present");
return}if(C.length==1){alert("Select an Action first");return}if(this.OY.l_!=null){alert("You can not apply actions while recording actions");
return}if(C.length==1)C.push(0);var U=L[C[0]],E=U.e4[C[1]],Y=new q(B.E.l,!0);Y.data={e:B.U.jS,F$:[E.z9,U.z9]};
this.B(Y)};bf.w5=function(L,C,U,E,Y){gG.call(this);this.lK=L;var z=this.lK.length-1;this.j=B.w("div","layeritem"+(JSON.stringify(L)==C?" selected":""));
this.a6=B.w("div","head");this.j.appendChild(this.a6);this.a6.setAttribute("style","height:24px");this.T_=B.w("div","headL");
this.a6.appendChild(this.T_);if(z!=0){var r=B.w("div");r.style.width=z*20+"px";this.T_.appendChild(r)}if(U!=null){var p=this.aj6=B.w("div",U?"open":"closed");
this.T_.appendChild(p)}else{var T=this.a9d=B.w("div","cmark");T.setAttribute("style","background-size:12px 12px; opacity:"+(Y?1:.3));
this.T_.appendChild(T)}if(z==0){var k=B.w("div","folder");this.T_.appendChild(k)}var P=this.Qe=B.w("div","label");
P.textContent=E;this.T_.appendChild(P);this.j.addEventListener("mouseup",this.np.bind(this),!1)};bf.w5.prototype=new gG;
bf.w5.prototype.np=function(L){if(L.detail==1&&L.target.tagName.toLowerCase()!="input"){var C="sel";
if(L.target==this.aj6)C="fold";if(L.target==this.a9d)C="enab";var U=new q(B.E.L,!0);U.data={e:C,lK:this.lK};
this.B(U)}else if(this.lK.length<3)var E=new hQ.Tr(this.Qe,this.AR.bind(this))};bf.w5.prototype.AR=function(L){var C=new q(B.E.L,!0);
C.data={e:"nchange",Eh:L,lK:this.lK};this.B(C)};function iF(){hQ.call(this,[9,3],!1,null,hQ.Du.Sw);this.eO=null;
this.dp=null;this.OY=null}iF.prototype=new hQ("");iF.prototype.yT=function(){var L=B.w("div","");this.ln.appendChild(L);
this.o6=B.w("div","bordered cell");this.o6.setAttribute("style","width:10em; height:28.5em;");L.appendChild(this.o6);
this.g$=[];this.fI=null;this.he=[];var C=this.amr.bind(this);this.Aj=[new iF.r0,new iF.Cg,new iF.uk,new iF.f1];
for(var H=0;H<this.Aj.length;H++){var U=B.w("div","listitem"),E=this.Aj[H].K6,Y=null;if(H==0){this.fI=new ip(E);
U.appendChild(this.fI.j)}else{Y=new dh(E,!1);Y.k(B.E.L,this.a37,this);U.appendChild(Y.j)}this.he.push(Y);
this.o6.appendChild(U);this.g$.push(U);U.addEventListener("click",C,!1)}this.rB=B.w("div","cell padded");
L.appendChild(this.rB);for(var H=0;H<this.Aj.length;H++)this.Aj[H].k("brushchange",this.akB,this);this.setItem(0);
this.k2=B.w("canvas","");this.k2.width=Math.floor(380*B.M());this.k2.height=Math.floor(80*B.M());B.IO(this.k2,this.k2.width,this.k2.height);
L.appendChild(this.k2);this.zS=this.k2.getContext("2d");this.P_()};iF.prototype.tt=function(){if(!B.DW(this.ln))return;
if(this.o6){this.P_();return}this.yT();this.f();this.hU(this.OY,c_.oI)};iF.prototype.f=function(){hQ.prototype.f.call(this);
if(this.o6==null)return;this.fI.f();for(var H=1;H<this.he.length;H++)this.he[H].f();for(var H=0;H<this.Aj.length;
H++)this.Aj[H].f()};iF.prototype.akB=function(L){var C=this.Aj.indexOf(L.currentTarget),U=JSON.parse(JSON.stringify(this.Aj[C].dp)),E=new q(B.E.l,!0);
E.data={e:B.U.MP,wm:c_.qy,dp:U};this.B(E)};iF.prototype.a37=function(L){this.fW(this.he.indexOf(L.currentTarget),L.currentTarget.gF())};
iF.prototype.amr=function(L){var H=this.g$.indexOf(L.currentTarget);if(L.target.tagName.toLowerCase()=="input")return;
if(this.he[H]&&!this.he[H].gF()){this.he[H].m0();this.fW(H,!0)}this.setItem(H)};iF.prototype.fW=function(L,C){this.Aj[L].ua(C)};
iF.prototype.setItem=function(L){for(var H=0;H<this.Aj.length;H++)this.g$[H].setAttribute("class","listitem");
if(this.rB.firstChild)this.rB.removeChild(this.rB.firstChild);this.g$[L].setAttribute("class","listitem selected");
this.rB.appendChild(this.Aj[L].j)};iF.prototype.hU=function(L,C){this.OY=L;if(this.o6==null)return;if(C==c_.Sw||C==c_.oI){this.eO=L.lN;
for(var H=0;H<this.Aj.length;H++)this.Aj[H].LP(this.eO)}if(C==c_.qy||C==c_.oI){this.dp=L.lN.Fp;this.P_()}if(C==c_.GM)this.P_()};
iF.prototype.P_=function(){if(this.dp)this.enable();else{this.disable();return}if(!B.DW(this.ln))return;
var L=this.OY;for(var H=0;H<this.Aj.length;H++){this.Aj[H].T(this.dp);if(this.he[H])this.he[H].T(this.Aj[H].gF())}var C=JSON.parse(JSON.stringify(this.dp));
C.Brsh.v.Dmtr.v.val=Math.min(C.Brsh.v.Dmtr.v.val,50);var U=new _(0,0,this.k2.width,this.k2.height),E=new iR(C,this.eO?this.eO.sd:null,this.eO?this.eO.wY:null,{u8:1},L.yx,L.ho,U),Y=40*B.M(),z=300*B.M();
E.moveTo(Y,Y);for(var H=0;H<=z;H+=10)E.lineTo(Y+H,Y+20*Math.sin(2*Math.PI*H/z));E.finish();var r=this.zS.createImageData(U.d,U.v);
c.La(E.fS(),E.dm(),r.data,U);this.zS.putImageData(r,0,0)};iF.Eq=function(L){gG.call(this);this.K6=L;
this.j=B.w("div","");this.dp=null};iF.Eq.prototype=new gG;iF.Eq.prototype.LP=function(L){};iF.Eq.prototype.T=function(L){this.dp=JSON.parse(JSON.stringify(L));
this.j.setAttribute("class",this.gF()?"":"disabled");this.P_()};iF.Eq.prototype.ua=function(L){};iF.Eq.prototype.gF=function(){return!1};
iF.Eq.prototype.f=function(){};iF.Eq.prototype.P_=function(){};iF.Eq.prototype.W_=function(){this.B(new q("brushchange"))};
iF.r0=function(){iF.Eq.call(this,[15,0]);this.eO=null;this.adz=null;this.yU=new fN(!0);this.j.appendChild(this.yU.j);
this.yU.k(B.E.L,this.aak,this);this.yU.j.style.height="10.7em";this.sV=new cG([12,14,0],1,1e3," px",0,!0);
this.sV.k(B.E.L,this.anQ,this);this.UN=new cG([12,15],0,359," \xB0");this.UN.k(B.E.L,this.a5h,this);
this.nK=new cG([12,16],0,100," %");this.nK.k(B.E.L,this.a1E,this);this.TR=new cG([12,17],0,100," %");
this.TR.k(B.E.L,this.akV,this);this.T4=new cG([12,18],1,300," %");this.T4.k(B.E.L,this.a5w,this);this.g$=[this.sV,this.UN,this.nK,this.TR,this.T4]};
iF.r0.prototype=new iF.Eq;iF.r0.prototype.f=function(){this.sV.f();this.UN.f();this.nK.f();this.TR.f();
this.T4.f()};iF.r0.prototype.gF=function(){return!0};iF.r0.prototype.LP=function(L){this.eO=L;var C=[],U=Math.floor(30*B.M()),E=Math.floor(40*B.M());
for(var H=0;H<L.list.length;H++){var Y=L.list[H].v,z=iR.BU(Y,L.sd,L.wY,U,E);C.push(z)}this.yU.OF(C,null,U,E)};
iF.r0.prototype.P_=function(){var L=this.dp.Brsh.v,C=L.classID!=this.adz;this.adz=L.classID;if(C)for(var H=0;
H<this.g$.length;H++)if(this.j.contains(this.g$[H].j))this.j.removeChild(this.g$[H].j);this.sV.T(L.Dmtr.v.val);
if(C)this.j.appendChild(this.sV.j);this.UN.T(L.Angl.v.val);if(C)this.j.appendChild(this.UN.j);if(L.classID=="computedBrush"||L.classID=="sampledBrush"){this.nK.T(L.Rndn.v.val);
if(C)this.j.appendChild(this.nK.j)}if(L.classID=="computedBrush"){this.TR.T(L.Hrdn.v.val);if(C)this.j.appendChild(this.TR.j)}this.T4.T(L.Spcn.v.val);
if(C)this.j.appendChild(this.T4.j)};iF.r0.prototype.aak=function(L){this.dp=this.eO.list[this.yU.u()].v;
this.W_()};iF.r0.prototype.anQ=function(L){this.dp.Brsh.v.Dmtr.v.val=L.target.u();this.W_()};iF.r0.prototype.a5h=function(L){this.dp.Brsh.v.Angl.v.val=L.target.u();
this.W_()};iF.r0.prototype.a1E=function(L){this.dp.Brsh.v.Rndn.v.val=L.target.u();this.W_()};iF.r0.prototype.akV=function(L){this.dp.Brsh.v.Hrdn.v.val=L.target.u();
this.W_()};iF.r0.prototype.a5w=function(L){this.dp.Brsh.v.Spcn.v.val=L.target.u();this.W_()};iF.Cg=function(){iF.Eq.call(this,[15,1]);
this.gG=new cG([15,4,0],0,100," %");this.gG.k(B.E.L,this.a0G,this);this.j.appendChild(this.gG.j);this.ip=new cG([15,4,1],0,100," %");
this.ip.k(B.E.L,this.ajU,this);this.j.appendChild(this.ip.j);this.Cm=new cG([15,4,2],0,100," %");this.Cm.k(B.E.L,this.akf,this);
this.j.appendChild(this.Cm.j);this.bD=new cG([15,4,3],0,100," %");this.bD.k(B.E.L,this.ah2,this);this.j.appendChild(this.bD.j);
this.Eu=new cG([15,4,4],0,100," %");this.Eu.k(B.E.L,this.aih,this);this.j.appendChild(this.Eu.j)};iF.Cg.prototype=new iF.Eq;
iF.Cg.prototype.f=function(){this.gG.f();this.ip.f();this.Cm.f();this.bD.f();this.Eu.f()};iF.Cg.prototype.gF=function(){return this.dp.useTipDynamics.v};
iF.Cg.prototype.ua=function(L){this.dp.useTipDynamics.v=L;fW.ds.UL(this.dp);this.W_()};iF.Cg.prototype.P_=function(){var L=this.dp;
if(L.useTipDynamics.v==!1)return;this.gG.T(L.szVr.v.jitter.v.val);this.ip.T(L.minimumDiameter.v.val);
this.Cm.T(L.angleDynamics.v.jitter.v.val);this.bD.T(L.roundnessDynamics.v.jitter.v.val);this.Eu.T(L.minimumRoundness.v.val)};
iF.Cg.prototype.a0G=function(L){this.dp.szVr.v.jitter.v.val=L.target.u();this.W_()};iF.Cg.prototype.ajU=function(L){this.dp.minimumDiameter.v.val=L.target.u();
this.W_()};iF.Cg.prototype.akf=function(L){this.dp.angleDynamics.v.jitter.v.val=L.target.u();this.W_()};
iF.Cg.prototype.ah2=function(L){this.dp.roundnessDynamics.v.jitter.v.val=L.target.u();this.W_()};iF.Cg.prototype.aih=function(L){this.dp.minimumRoundness.v.val=L.target.u();
this.W_()};iF.uk=function(){iF.Eq.call(this,[15,2]);this.PO=new cG([15,5,0],0,1e3," %");this.PO.k(B.E.L,this.a6g,this);
this.j.appendChild(this.PO.j);this.xb=new cG([15,5,1],1,20);this.xb.k(B.E.L,this.aeo,this);this.j.appendChild(this.xb.j);
this.k8=new cG([15,5,2],0,100," %");this.k8.k(B.E.L,this.a1G,this);this.j.appendChild(this.k8.j)};iF.uk.prototype=new iF.Eq;
iF.uk.prototype.f=function(){this.PO.f();this.xb.f();this.k8.f()};iF.uk.prototype.gF=function(){return this.dp.useScatter.v};
iF.uk.prototype.ua=function(L){this.dp.useScatter.v=L;fW.ds.UL(this.dp);this.W_()};iF.uk.prototype.P_=function(){var L=this.dp;
if(L.useScatter.v==!1)return;this.PO.T(L.scatterDynamics.v.jitter.v.val);this.xb.T(L.Cnt.v);this.k8.T(L.countDynamics.v.jitter.v.val)};
iF.uk.prototype.a6g=function(L){this.dp.scatterDynamics.v.jitter.v.val=L.target.u();this.W_()};iF.uk.prototype.aeo=function(L){this.dp.Cnt.v=L.target.u();
this.W_()};iF.uk.prototype.a1G=function(L){this.dp.countDynamics.v.jitter.v.val=L.target.u();this.W_()};
iF.f1=function(){iF.Eq.call(this,[15,3]);this.mx=new cG([15,6,0],0,100," %");this.mx.k(B.E.L,this.al_,this);
this.j.appendChild(this.mx.j);this.g4=new cG([15,6,1],0,100," %");this.g4.k(B.E.L,this.a15,this);this.j.appendChild(this.g4.j);
this.cM=new cG([15,6,2],0,100," %");this.cM.k(B.E.L,this.an0,this);this.j.appendChild(this.cM.j);this.RF=new cG([15,6,3],0,100," %");
this.RF.k(B.E.L,this.a14,this);this.j.appendChild(this.RF.j)};iF.f1.prototype=new iF.Eq;iF.f1.prototype.f=function(){this.mx.f();
this.g4.f();this.cM.f();this.RF.f()};iF.f1.prototype.gF=function(){return this.dp.useColorDynamics.v};
iF.f1.prototype.ua=function(L){this.dp.useColorDynamics.v=L;fW.ds.UL(this.dp);this.W_()};iF.f1.prototype.P_=function(){var L=this.dp;
if(L.useColorDynamics.v==!1)return;this.mx.T(L.clVr.v.jitter.v.val);this.g4.T(L.H.v.val);this.cM.T(L.Strt.v.val);
this.RF.T(L.Brgh.v.val)};iF.f1.prototype.al_=function(L){this.dp.clVr.v.jitter.v.val=L.target.u();this.W_()};
iF.f1.prototype.a15=function(L){this.dp.H.v.val=L.target.u();this.W_()};iF.f1.prototype.an0=function(L){this.dp.Strt.v.val=L.target.u();
this.W_()};iF.f1.prototype.a14=function(L){this.dp.Brgh.v.val=L.target.u();this.W_()};function fH(){hQ.call(this,[9,0],!1,null,hQ.Du.n3);
this.ln.setAttribute("style","min-width:200px;");this.Y8=B.w("div","hpbody scrollable");this.Y8.style.height="160px";
this.ln.appendChild(this.Y8);this.a8t=-1;this.wO=[];this.b6=""}fH.prototype=new hQ("");fH.prototype.jn=function(L){if(L==null){B.CF(this.Y8);
this.b6="";return}B.CF(this.Y8);var C=0;for(var H=0;H<L.history.length;H++)if(H<=L.xC&&!L.history[H].d2)C=H;
for(var H=0;H<L.history.length;H++){var U=L.history[H];if(U.d2)continue;var E=new eV(U,H,C);E.parent=this;
this.Y8.appendChild(E.j);this.wO.push(E)}if(L.xC==L.history.length-1)this.tt()};fH.prototype.tt=function(){this.Y8.scrollTop=this.Y8.scrollHeight};
fH.prototype.f=function(){hQ.prototype.f.call(this);for(var H=0;H<this.wO.length;H++)this.wO[H].f()};
function eV(L,H,C){gG.call(this);this.index=H;this.j=B.w("div",H==C?"listitem selected":"listitem");
this.N8=L.name;this.f();if(H>C)this.j.style.opacity=.4;this.j.addEventListener("click",this.zI.bind(this),!1)}eV.prototype=new gG;
eV.prototype.f=function(){this.j.textContent=gS.get(this.N8)};eV.prototype.zI=function(L){if(this.index==this.parent.a8t)return;
this.ve({e:"h_itemchange",index:this.index})};eV.prototype.ve=function(L){var C=new q(B.E.A,!0);C.data=L;
C.m=W.n3;this.B(C)};function cy(){hQ.call(this,[9,10],!1,null,hQ.Du.a17);var L=B.w("div","padded");this.ln.appendChild(L);
this.gR=new bs(256,!0);L.appendChild(this.gR.j);this.L2=null}cy.prototype=new hQ("");cy.prototype.jn=function(L){this.L2=L;
this.L9()};cy.prototype.L9=function(){var L=this.L2;if(!B.DW(this.ln))return;if(L==null||L.C.length==0){this.gR.T(c.aP(c.F(4)));
return}var C=L.E0(),U=new _(0,0,L.d,L.v),E=U.X();if(L.t){var Y=L.t.rect,z=c.F(Y.X()*4);c.La(C,U,z,Y);
c.sn(L.t.channel,z);C=z;U=Y;var r=L.t.channel;E=0;for(var H=0;H<r.length;H++)E+=r[H];E=Math.round(E/255)}var p=c.aP(C);
p[0][255]+=3*(E-p[5]);for(var H=1;H<4;H++)p[H][255]+=E-p[5];this.gR.T(p,E)};cy.prototype.hU=function(L,C){this.gR.Gm(c5.cK[L.WT]["--text-color"])};
cy.prototype.f=function(){hQ.prototype.f.call(this);this.gR.f()};cy.prototype.tt=function(){this.L9()};
function h1(){hQ.call(this,[9,8],!1,null,hQ.Du.aiO);this.OM=B.w("div","padded");this.ln.appendChild(this.OM);
this.Po=new hc(10);this.OM.appendChild(this.Po.j);this.OM.appendChild(B.w("hr"));this.lj=new g$;this.lj.parent=this;
this.OM.appendChild(this.lj.Ck);this.Po.k(B.E.L,this.sW,this);this.lj.k(B.E.L,this.sW,this)}h1.prototype=new hQ("");
h1.prototype.sW=function(L){var C;if(L.target==this.Po)C=this.Po.u();else{var U=this.lj.u();C=Math.round(U.h)<<16|Math.round(U.P)<<8|Math.round(U.O)}var E=new q(B.E.l,!0);
E.data={e:B.U.MP,wm:c_.GM,ev:0,G:C};this.B(E)};h1.prototype.hU=function(L,C){var U=L.yx,E=C==c_.oI;if(C==c_.GM||E){this.Po.T(U);
this.lj.T({h:U>>>16&255,P:U>>>8&255,O:U>>>0&255,iF:"Color #"+c.Xo(U)})}if(C==c_.ab||E){var Y=L.alY;this.lj.LP(Y)}};
function aL(){hQ.call(this,[12,72],!1,null,hQ.Du.a1i);this.Am=null;this.Lf=null;this.Y8=B.w("div","lpbody scrollable");
this._I=B.w("div","lpfoot");this.ln.appendChild(this.Y8);this.ln.appendChild(this._I);this.tw=[];this.k("click",this.T3,this);
this.UR=[];aL.hz([[17,2],"Save Selection as Channel",[5,3],[5,4]],this.UR,this._I,this.OB.bind(this),this.mg.bind(this));
this.a91=new aq([{name:"Merge Channels",WL:!0}]);this.a91.k("select",this._X,this)}aL.prototype=new hQ("");
aL.prototype._X=function(L){if(this.Lf==null)return;var C=new q(B.E.l,!0);C.data={e:B.U.Q1,k5:"mergechannels"};
this.B(C)};aL.prototype.eE=function(){return this.a91};aL.hz=function(L,C,U,E,Y){for(var H=0;H<L.length;
H++){var z=new br("W",!1,L[H]);C.push(z);B.Vv(z.j,E);U.appendChild(z.j);var r=z.j;r.addEventListener("drop",Y,!1);
r.addEventListener("dragover",function(p){p.preventDefault()},!1);r.addEventListener("dragenter",B.ZS,!1)}};
aL.xm=function(L,C){for(var H=0;H<L.length;H++)if(L[H].j==C.currentTarget)return H};aL.prototype.OB=function(L){var C=aL.xm(this.UR,L);
if(C==0)this.B(gn.Hh(!0,null,L));else{C--;var U=new q(B.E._w,!0),E={classID:"null"};if(C==0)E.null={t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]};
else if(C==1)E.Nw={t:"Objc",v:{classID:"Chnl",ClrI:{t:"enum",v:{MskI:"SlcA"}},Opct:{t:"long",v:50}}};
else E.null=hy.K1("Chnl",!0);U.data={xo:["duplicate","make","delete"][C],V5:E};this.B(U)}};aL.prototype.mg=function(L){var C=aL.xm(this.UR,L);
if(C==2){var U=new q(B.E._w,!0),E={classID:"null"};E.null=hy.K1("Chnl",!0);U.data={xo:"duplicate",V5:E};
this.B(U)}else this.OB(L)};aL.prototype.qB=function(H){var L=this.tw,C=L[H];if(C==null){var U=B.w("canvas");
C=U.getContext("2d");L.push(C)}return C};aL.prototype.T3=function(L){var C=this.Am.slice(0),U=L.data.Oi,E=C[0]+C[1]+C[2],Y=this.Lf;
if(-5<U&&U<0){var z=-U-1;if(L.data.RT){if(z==0)C=E==3?[0,0,0]:[1,1,1];else{if(C[z-1]==0)C[z-1]=1;else if(!0)C[z-1]=0}}else{if(z==0)C=[1,1,1];
else{C=[0,0,0];C[z-1]=1}Y.te=[]}var r=new q(B.E.A,!0);r.m=W.m$;r.data={e:"setcls",NT:C};this.B(r);return}if(-1<U){var p=Y.N[U],T=p.yQ==1?p.xV():p.iC(Y).r;
if(L.data.RT)T.mM=!T.mM;else{for(var H=0;H<Y.vI.length;H++)Y.vI[H].mM=!1;Y.te=[]}}else{var k=-U-5,T=Y.vI[k];
if(L.data.RT)T.mM=!T.mM;else{for(var H=0;H<Y.vI.length;H++)Y.vI[H].mM=!1;T.mM=!0;Y.te=[k]}}Y.eP=Y.dD=!0};
aL.prototype.tt=function(){this.Tj()};aL.prototype.jn=function(L){this.Lf=L;this.Tj()};aL.prototype.Tj=function(){var L=this.Lf,C=this.Y8,p=34,T=34,K=4;
B.CF(C);if(L==null||!B.DW(C))return;var U=L.d,E=L.v,Y=new _(0,0,U,E),z=this.Am=L.z.NT.slice(0),r=z[0]+z[1]+z[2];
if(U>E)T=Math.round(T*E/U);else p=Math.round(p*U/E);var k=["RGB"].concat(eh.Ol);for(var H=0;H<4;H++){var P=this.qB(H);
c.AF.MK(P,p,T,Y,L.E0(),Y,!1,H==0?null:H-1);var b=H==0?r==3:z[H-1]==1,Q=new gn(-1-H,!0,!0,P,k[H],b,b);
Q.parent=this;C.appendChild(Q.j)}for(var H=0;H<L.C.length;H++){var h=L.N[L.C[H]],x=h.yQ;if(x!=1&&x!=3)continue;
var O=x==1?h.xV():h.iC(L).r,P=this.qB(K+H);K++;c.AF.ZY(P,p,T,Y,O);var Q=new gn(L.C[H],!0,!0,P,h.getName()+(x==1?"":" Filter")+" Mask",!0,O.mM);
Q.parent=this;C.appendChild(Q.j)}for(var H=0;H<L.vI.length;H++){var O=L.vI[H],P=this.qB(K+H);c.AF.ZY(P,p,T,Y,O);
var Q=new gn(-5-H,!0,O.name=="Quick Mask",P,O.name,L.te.indexOf(H)!=-1,O.mM,W.aV,{e:o.bd,ev:"rnm",Oi:H});
Q.parent=this;C.appendChild(Q.j)}};aL.prototype.AU=function(L,C){this.Y8.style.height=C-9-25+"px"};aL.prototype.f=function(){hQ.prototype.f.call(this);
this.Tj();aL.t3(this.UR,["lrs/makesel","lrs/mask","lrs/newlayer","lrs/bin"])};aL.t3=function(L,C){for(var H=0;
H<L.length;H++){var U=L[H];U.uc(B.lp(C[H]))}};function gn(L,C,U,E,Y,z,r,p,T){gG.call(this);this.j=B.w("div","layeritem");
this.ahs=L;this.a5Z=C;this.vU=E;this.alK=p;this.a61=T;this.a6=B.w("div",z?"head selected":"head");this.a6.setAttribute("style","height: "+40+"px");
var k=B.w("div","headL"),P=B.w("div","headR"),b=15;this.j.appendChild(this.a6);this.a6.appendChild(k);
this.a6.appendChild(P);this.Yv=B.w("div","eye");if(1<B.M()&&B.M()<1.5)b=b/B.M();this.Yv.setAttribute("style","background-size: "+b+"px "+b+"px;");
this.Yv.style.opacity=r?1:.2;if(C)k.appendChild(this.Yv);this.C4=B.w("div","thumb");if(E)this.C4.appendChild(E.canvas);
k.appendChild(this.C4);this.VQ=B.w("div","label");if(U)this.VQ.style.fontStyle="italic";this.VQ.textContent=gS.get(Y);
k.appendChild(this.VQ);var Q=this.a6;Q.setAttribute("draggable","true");this.a6.addEventListener("mousedown",this.a29.bind(this),!1);
if(!U)this.a6.addEventListener("mouseup",this.a0j.bind(this),!1)}gn.prototype=new gG;gn.prototype.AR=function(L){var C=new q(B.E.A,!0);
C.m=this.alK;C.data=this.a61;C.data.name=L;this.B(C)};gn.prototype.a29=function(L){var C=L.ctrlKey||L.metaKey,U=this.ahs;
if(C&&L.target==this.vU.canvas){this.B(gn.Hh(this.a5Z,U,L))}else{var E=new q("click",!0);E.data={Oi:U,RT:L.target==this.Yv,rn:C};
this.B(E)}};gn.prototype.a0j=function(L){if(L.detail==2&&L.target==this.VQ){var C=new hQ.Tr(this.VQ,this.AR.bind(this))}};
gn.Hh=function(L,C,U){var E=0;if(U.shiftKey)E++;if(U.altKey)E+=2;var Y=new q(B.E.A,!0);Y.m=W.Y7;if(L){if(-5<C&&C<0){Y=new q(B.E._w,!0);
Y.data=W.kd.Qj(E,["RGB","Rd","Grn","Bl"][-1-C])}else Y.data={e:"fromchannel",F$:[C,0,E]}}else Y.data={e:"frompath",F$:[C,0,E]};
return Y};function aX(){hQ.call(this,[8,9],!1,null,hQ.Du.ty);this.Am=null;this.Lf=null;this.Y8=B.w("div","lpbody scrollable");
this._I=B.w("div","lpfoot");this.ln.appendChild(this.Y8);this.ln.appendChild(this._I);this.ln.addEventListener("click",this.alx.bind(this),!1);
this.tw=[];this.k("click",this.T3,this);this.UR=[];aL.hz([[17,2],"Selection to Path",[5,3],[5,4]],this.UR,this._I,this.OB.bind(this),this.mg.bind(this))}aX.prototype=new hQ("");
aX.prototype.OB=function(L){var C=aL.xm(this.UR,L),U;if(C==0)U=gn.Hh(!1,null,L);else if(C==1){U=new q(B.E._w,!0);
U.data={xo:"make",V5:{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{var U=new q(B.E.A,!0);
U.m=W.b7;U.data={e:"pathedit",ev:["new","del"][C-2]}}this.B(U)};aX.prototype.mg=function(L){this.OB(L)};
aX.prototype.qB=function(H){var L=this.tw,C=L[H];if(C==null){var U=B.w("canvas");C=U.getContext("2d");
L.push(C)}return C};aX.prototype.alx=function(L){if(L.target==this.Y8){var C=this.Lf;C.j5=[];C.cE=[];
C.dD=!0;C.eP=!0}};aX.prototype.T3=function(L){var C=L.data.Oi,U=this.Lf,E=L.data.rn,Y=0,z,r;if(C<0){Y=-1-C;
z=U.j5;r=U.cE}else{var p=U.zG()[0];for(var H=0;H<p.length;H++){var T=p[H].Oi;if(T==C)break;if(T>=0)Y++}z=U.cE;
r=U.j5}if(E){var k=z.indexOf(Y);if(k==-1)z.push(Y);else z.splice(k,1)}else{while(z.length!=0)z.pop();
while(r.length!=0)r.pop();z.push(Y)}U.dD=!0;U.eP=!0};aX.prototype.tt=function(){this.Tj()};aX.prototype.jn=function(L){this.Lf=L;
this.Tj()};aX.prototype.Tj=function(){var L=this.Lf,C=this.Y8,p=34,T=34;B.CF(C);if(L==null||!B.DW(C))return;
var U=L.d,E=L.v,Y=new _(0,0,U,E),z=this.Am=L.z.NT.slice(0),r=z[0]+z[1]+z[2];if(U>E)T=Math.round(T*E/U);
else p=Math.round(p*U/E);var k=L.zG(),P=k[0];for(var H=0;H<P.length;H++){var b=P[H],Q=this.qB(H);c.AF.adO(Q,p,T,Y,b.add.vmsk);
var K=new gn(b.Oi,!1,b.Oi>=0,Q,b.name,k[1].indexOf(H)!=-1,!1,W.b7,{e:"pathedit",ev:"rnm",Oi:b.Oi});K.parent=this;
C.appendChild(K.j)}};aX.prototype.AU=function(L,C){this.Y8.style.height=C-9-25+"px"};aX.prototype.f=function(){hQ.prototype.f.call(this);
this.Tj();aL.t3(this.UR,["lrs/makesel","lrs/makepath","lrs/newlayer","lrs/bin"])};function ck(L){hQ.call(this,[9,L?4:5],!1,null,L?hQ.Du.aff:hQ.Du.a72);
this.ln.setAttribute("style","min-width:240px;");this.abK=L;this.y5=null;this.OY=null}ck.prototype=new hQ("");
ck.prototype.yT=function(){this.y5=new iM;var L=this.y5,C=this.ln;L.parent=this;if(this.abK){var U=B.w("div","marged");
C.appendChild(U);U.appendChild(L.Ky.j);C.appendChild(B.w("hr"));var E=B.w("div","marged");C.appendChild(E);
E.appendChild(L.Ho.j);E.appendChild(L.Q$.j);var Y=B.w("div","marged");C.appendChild(Y);Y.appendChild(L._o.j);
Y.appendChild(L.sj.j);C.appendChild(B.w("hr"));var z=B.w("div","marged");C.appendChild(z);z.appendChild(L.HA.j);
z.appendChild(L.pw.j);var r=B.w("div","marged");C.appendChild(r);r.appendChild(L.s3.j);r.appendChild(L.rh.j);
C.appendChild(B.w("hr"));var p=B.w("div","marged");C.appendChild(p);p.appendChild(L.Eg.j);p.appendChild(L.RC.j);
p.appendChild(L.$d.j);p.appendChild(L.Ex.j);p.appendChild(L.Ah.j);p.appendChild(L.Im.j);p.appendChild(L.xO.j);
p.appendChild(L.Qm.j)}else{var U=B.w("div","marged");C.appendChild(U);U.appendChild(L.uS.j);U.appendChild(L.r4.j);
U.appendChild(L.nV.j);U.appendChild(L.amH.j);U.appendChild(L.acw.j);U.appendChild(L.a7K.j);U.appendChild(L.a60.j);
C.appendChild(B.w("hr"));var E=B.w("div","marged");C.appendChild(E);E.appendChild(L.LZ.j);E.appendChild(L.BY.j);
E.appendChild(L.tf.j);C.appendChild(B.w("hr"));var Y=B.w("div","marged");C.appendChild(Y);Y.appendChild(L.cF.j);
Y.appendChild(L.fT.j);Y.appendChild(L.uY.j)}};ck.prototype.tt=function(){if(!B.DW(this.ln))return;if(this.y5==null){this.yT();
var L=this.OY;if(L)this.y5.T(L.Az,L.tW,L.Lw);this.y5.f()}};ck.prototype.f=function(){hQ.prototype.f.call(this);
if(this.y5)this.y5.f()};ck.prototype.hU=function(L,C){this.OY=L;if(C!=c_.oI&&C!=c_.NW&&C!=c_.AO&&C!=c_.HC)return;
if(this.y5)this.y5.T(L.Az,L.tW,L.Lw)};function b1(){hQ.call(this,[9,13],!1,null,hQ.Du.agv);this.OY=null;
this.a7f=null;this.a55=null;this.Nk=null;this.alO=null;this.bo=Math.round(290*B.M());this.dW=8;this.ak_=4;
this.EK=new bS(null,["Hi","Hello"]);this.EK.k(B.E.L,this.sX,this);var L=this.du=new br("-",null,null,!0);
L.k("click",this.rp,this);var C=this.a9I=new br("+",null,null,!0);C.k("click",this.rp,this);this.lU=new fN(!1);
this.lU.k(B.E.L,this.agP,this);this.lU.j.style.height=20+"em";var U=B.w("div","padded");U.setAttribute("style","width:"+(this.bo+10)/B.M()+"px;");
this.ln.appendChild(U);var top=B.w("div");top.setAttribute("style","margin-bottom:0.5em");U.appendChild(top);
top.appendChild(this.EK.j);top.appendChild(L.j);top.appendChild(C.j);U.appendChild(this.lU.j)}b1.prototype=new hQ("");
b1.prototype.agP=function(L){var C=this.lU.u()*this.dW*this.ak_,U=Math.floor(this.bo/this.dW)/B.M(),E=this.lU.ac4();
C+=Math.floor(E.y/U)*this.dW;C+=Math.floor(E.x/U);var Y=this.Nk[this.EK.u()];if(C>=Y.length)return;var z=Y[C],r=this.alO[z];
if(r.r5.length==0){alert("No known character for this glyph");return}var p=String.fromCodePoint(r.r5[0]),T=new q(B.E.A,!0);
T.m=W.Ey;T.data={e:"insertText",G:p};this.B(T)};b1.prototype.rp=function(L){this.dW+=L.target==this.du?1:-1;
this.dW=Math.max(1,Math.min(20,this.dW));this.sX()};b1.prototype.tt=function(){this.hU(this.OY)};b1.prototype.hU=function(L,C){this.OY=L;
if(!B.DW(this.ln))return;var U=L.Az,E=U.LI.Font,T=0;if(E==null)return;var Y=U.Oe[E].Name;if(this.a7f==Y)return;
var E=L.tW.y1(Y);if(E==null)return;var z=E.maxp.numGlyphs,r=this.alO=new Array(z);for(var H=0;H<z;H++)r[H]={r5:[]};
var p=Date.now(),k=new Uint8Array(1048575);for(var H=0;H<1048575;H++){var P=Typr.U.codeToGlyph(E,H);
if(P!=0&&P<z){k[H]=1;if(r[P].r5.length==0)T++;r[P].r5.push(H)}}var b=b1.v0,Q=[];for(var H=0;H<b.length;
H++)Q.push([]);for(var P=1;P<z;P++){Q[0].push(P);var K=r[P].r5[0];if(K==null){continue}for(var h=1;h<b.length;
h++){var x=b[h].kQ;for(var H=0;H<x.length;H+=2)if(x[H]<=K&&K<=x[H+1]){Q[h].push(P);break}}}this.Nk=Q;
var O=[];for(var H=0;H<b.length;H++)O.push(b[H].rT+" ("+Q[H].length+")");var y=this.EK.u();this.EK.SU(O);
this.EK.T(y);this.a7f=Y;this.a55=E;this.sX()};b1.prototype.sX=function(L){var C=this.Nk[this.EK.u()],U=C.length,E=this.a55,Y=Typr.U,z=Math.floor(this.bo/this.dW),r=z,p=r*.8,T=r*.8/E.head.unitsPerEm,k=[],P=B.w("canvas"),b=P.getContext("2d"),Q=this.dW,K=Math.ceil(U/Q),h=this.ak_;
P.width=z*Q;P.height=r*h;b.strokeStyle="rgba(0,0,0,0.3)";var x=Date.now();for(var O=0;O<K;O+=h){b.fillStyle="white";
b.fillRect(0,0,Q*z,r*h);for(var y=0;y<h;y++){for(var v=0;v<Q;v++){var H=C[(O+y)*Q+v];if(H==null)break;
var i=Y.glyphToPath(E,H),D=c.a.mE(i.crds);if(!D.ue()){b.fillStyle="#252525";b.beginPath();var I=v*z+(z-D.d*T)*.5-D.x*T,m=y*r+p;
b.translate(I,m);b.scale(T,-T);Y.pathToContext(i,b);b.scale(1/T,-1/T);b.translate(-I,-m);b.fill()}}}b.beginPath();
for(var v=0;v<Q;v++){var f=v*z+z+.5;b.moveTo(f,0);b.lineTo(f,r*h)}for(var y=0;y<h;y++){var A=y*r+r+.5;
b.moveTo(0,A);b.lineTo(Q*z,A)}b.stroke();k.push(P.toDataURL("image/png"))}this.lU.OF(k,null,z*Q,r*h)};
b1.v0=[{rT:"All Glyphs"},{rT:"Basic Latin, Latin 1",kQ:[0,127,128,143]},{rT:"Latin Extended-A",kQ:[256,383]},{rT:"Latin Extended-B",kQ:[384,591]},{rT:"Punctuations",kQ:[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]},{rT:"Greek",kQ:[880,1023]},{rT:"Cyrillic",kQ:[1024,1279]},{rT:"Hebrew",kQ:[1424,1535]},{rT:"Arabic",kQ:[1536,1791]},{rT:"Emoji",kQ:[9728,10095,127744,129535]}];
function iG(){hQ.call(this,[13,0],!1,null,hQ.Du.GM);this.l7=0;this.a1J=0;this.OY=null;var L=B.w("div","flexrow padded");
this.ln.appendChild(L);var C=B.w("div");L.appendChild(C);this.N_=[];for(var H=0;H<2;H++){var U=new di;
this.N_.push(U);U.k("click",this.a4j,this);C.appendChild(U.j)}this.Xi=new dm(192);this.Xi.k(B.E.L,this.io,this);
L.appendChild(this.Xi.j)}iG.prototype=new hQ("");iG.prototype.a4j=function(L){this.l7=this.N_.indexOf(L.currentTarget);
this.L9()};iG.prototype.io=function(L){var C=this.Xi.u();this.Xi.T(C);var U=Math.round(C.h*255)<<16|Math.round(C.P*255)<<8|Math.round(C.O*255),E=new q(B.E.l,!0);
E.data={e:B.U.MP,wm:c_.GM,ev:this.l7,G:U};this.B(E);this.a1J=Date.now()};iG.prototype.L9=function(){var L=this.OY,C=this.l7,U=[L.yx,L.ho];
for(var H=0;H<2;H++){var E=this.N_[H],Y=E.j.style;E.Gm(U[H]);if(H==C)delete Y.borderColor;else Y.borderColor="var(--bg-color)"}var z=U[C];
if(Date.now()-this.a1J>100)this.Xi.T({h:(z>>>16)/255,P:(z>>>8&255)/255,O:(z&255)/255})};iG.prototype.hU=function(L,C){this.OY=L;
if(C==c_.oI||C==c_.GM)this.L9()};iG.prototype.tt=function(){this.L9()};function cO(){hQ.call(this,"CSS",!1,null,hQ.Du.CSS);
this.L2=null;var L=B.w("div","padded");this.ln.appendChild(L);this.Ox=B.w("textarea");this.Ox.setAttribute("rows",16);
this.Ox.setAttribute("style","display:block;tab-size:4; font-family:monospace; width:98%; min-width:270px;");
L.appendChild(this.Ox)}cO.prototype=new hQ("");cO.prototype.jn=function(L){this.L2=L;this.L9()};cO.prototype.hU=function(L,C){if(C==c_.AO)this.L9()};
cO.prototype.L9=function(){var L=this.L2;if(L==null||L.C.length==0)return;if(!B.DW(this.ln))return;var C=L.N[L.C[0]],U=CSS.aiR(C,L);
if(U.length!=0)this.Ox.value=U.join(";\n")+";";else this.Ox.value=""};cO.prototype.tt=function(){this.L9()};
function aQ(){hQ.call(this,[9,6],!1,null,hQ.Du.akr);this.ln.setAttribute("style","min-width:240px;");
this.L2=null;this.OY=null;var L=B.w("div","marged row");this.ln.appendChild(L);var C=B.w("div","cell");
C.setAttribute("style","width:10em");L.appendChild(C);var U=B.w("div","cell");U.setAttribute("style","width:10em");
L.appendChild(U);this.a5q=[];for(var H=0;H<4;H++){var E=new ip("");this.a5q.push(E);C.appendChild(E.j);
B.E4(C)}this.ln.appendChild(B.w("hr",""));var Y=B.w("div","marged row");this.ln.appendChild(Y);var C=B.w("div","cell");
C.setAttribute("style","width:10em");var U=B.w("div","cell");U.setAttribute("style","width:10em");Y.appendChild(C);
Y.appendChild(U);this.WO=new ip("");C.appendChild(this.WO.j);B.E4(C);this._Z=new ip("");C.appendChild(this._Z.j);
this.P8=new ip("");U.appendChild(this.P8.j);B.E4(U);this.sA=new ip("");U.appendChild(this.sA.j);this.WO.T("X: 100 px");
this._Z.T("Y: 100 px");this.P8.T("W: 0");this.sA.T("H: 0")}aQ.prototype=new hQ("");aQ.prototype.Yh=function(L,C,U,E,Y){if(!B.DW(this.ln)||L==null)return;
var z=L.z.sQ(Y.x,Y.y),r=new hZ(Math.floor(z.x),Math.floor(z.y));if(!Y.X4){var p=0,T=0,k=0,P=0,b=this.a5q;
if(!Y.X4&&!L.a5W()&&new _(0,0,L.d-1,L.v-1).qh(r)){var Q=L.E0(),H=L.d*r.y+r.x<<2;p=Q[H+0];T=Q[H+1];k=Q[H+2];
P=Q[H+3]}b[0].T("R: "+p);b[1].T("G: "+T);b[2].T("B: "+k);b[3].T("A: "+P)}this.WO.T("X: "+c.Mb.S9(r.x,L._Q,U,L.d));
this._Z.T("Y: "+c.Mb.S9(r.y,L._Q,U,L.v));this.Nw()};aQ.prototype.Nw=function(){var L=this.L2,C=this.OY,U=0,E=0;
if(L&&C){if(L.z.d0){U=L.z.d0.d;E=L.z.d0.v}else if(L.t){U=L.t.rect.d;E=L.t.rect.v}U=c.Mb.S9(Math.abs(U),L._Q,C,L.d);
E=c.Mb.S9(Math.abs(E),L._Q,C,L.v)}this.P8.T(gS.get([12,41]).charAt(0)+": "+U);this.sA.T(gS.get([12,42]).charAt(0)+": "+E)};
aQ.prototype.f=function(){hQ.prototype.f.call(this);this.Nw()};aQ.prototype.jn=function(L,C,U){this.L2=L;
this.OY=U;this.Nw()};function dT(){hQ.call(this,[9,1],!1,null,hQ.Du.aV);this.Av=null;this._u=null;this.Vn=null;
this.a6=B.w("div","lphead");this.Y8=B.w("div","lpbody scrollable");this._I=B.w("div","lpfoot");this.ui=new bS(null,gz.w4,!1,gz.RY);
this.ui.k(B.E.L,this.afM,this);this.a6.appendChild(this.ui.j);this.sr=new cU([12,0],0,100,"%",0);this.sr.k(B.E.L,this.aaZ,this);
this.sr.parent=this;this.a6.appendChild(this.sr.j);this.TE=new b9([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.TE.k(B.E.L,this.a0b,this);this.a6.appendChild(this.TE.j);this.H_=new cU([12,26],0,100,"%",0);this.H_.k(B.E.L,this.a26,this);
this.H_.parent=this;this.a6.appendChild(this.H_.j);this.UR=[];this.hz();this.ln.appendChild(this.a6);
this.ln.appendChild(this.Y8);this.Y8.addEventListener("dragover",function(Y){Y.preventDefault()},!1);
this.Y8.addEventListener("dragenter",B.ZS,!1);this.Y8.addEventListener("drop",this.aiz.bind(this),!1);
this.ln.appendChild(this._I);this.ln.addEventListener("contextmenu",B.ZS,!1);var L={b:B.E.l,H:{e:B.U.Q1,k5:"scaleeffects",LE:100,ea:{b:B.E.A,m:W.xn,H:{e:"scaleeffects"}}}},C={name:"Scale Effects",p:function(Y){return{p:Y!=null&&Y.N[Y.C[0]].ls()}}},U=[C],E=[L];
this.aaL=new aq(U,E);var U=[{name:[14,10]},{name:[14,11],rY:!0},{name:[6,0]},{name:[11,4]},{name:[5,4],rY:!0},{name:[6,7]},{name:"New Smart Obj. via Copy",p:function(Y){return{p:Y.N[Y.C[0]].add.SoLd!=null}},rY:!0},{name:[6,8],p:function(Y){var z=Y.N[Y.C[0]];
if(z.add.TySh||z.add.SoLd||z.add.SoCo||z.add.GdFl||z.add.PtFl)return{p:!0};return{p:!1}}},{name:[6,34],p:function(Y){var z=Y.N[Y.C[0]];
return{p:z.add.lmfx!=null&&!z.Jc()}}},{name:[6,40],rY:!0,p:function(Y){var z=Y.N[Y.C[0]];return{p:z.add.TySh!=null}}},{name:"",rY:!0,p:function(Y){var z=Y.N[Y.C[0]],r=z.add.TySh,p=r?r.Se:null;
return{p:r!=null&&p.Curve==null,QA:gS.get(r&&b5.S8(p)==0?[16,3,1]:[16,3,0])}}},{name:[6,6,0],rY:!0,p:function(Y){return{p:Y.iV(Y.C[0]),v_:Y.N[Y.C[0]].l$}}},{name:[11,6],rY:!0,sub:[{name:[5,1],p:function(Y){var z=Y.N[Y.C[0]];
return{p:z.add.lmfx!=null}}},{name:[5,2]},{name:[2,2],p:function(Y){var z=Y.N[Y.C[0]];return{p:z.add.lmfx!=null}},rY:!0},C]},{name:[6,10],p:function(Y){return{p:Y.C.length==1&&Y.C[0]!=0&&!Y.N[Y.C[0]].Jc()}}},{name:[6,12,0],p:function(Y){return{p:Y.C.length>1||Y.N[Y.C[0]].Jc()}}},{name:[6,12,1],rY:!0},{name:[13,0],sub:function(){var Y=[[13,1,0],[13,1,1],[13,1,2],[13,1,3],[13,1,4],[13,1,5],[13,1,6],[13,1,7]],z=[];
for(var H=0;H<Y.length;H++)z.push({name:Y[H]});return z}()}],E=[{b:B.E.l,H:{e:B.U.Q1,k5:"layerstyle"}},{b:B.E.A,m:W.Y7,H:{e:"fromlayer",F$:[null,0,0]}},{b:B.E.A,m:W.aV,H:{e:o.ok}},{b:B.E.l,H:{e:B.U.Q1,k5:"duplinto"}},{b:B.E.A,m:W.aV,H:{e:o.eZ}},{b:B.E._w,H:{xo:"newPlacedLayer"}},{b:B.E.A,m:W.aV,H:{e:o.f7}},{b:B.E._w,H:{xo:"rasterizeLayer",V5:{classID:"rasterizeLayer",null:hy.K1("Lyr",!0)}}},{b:B.E.A,m:W.aV,H:{e:o.P5}},{b:B.E.A,m:W.aV,H:{e:o.FQ}},{b:B.E.A,m:W.Ey,H:{e:"switchPntPrgr"}},{b:B.E.A,m:W.aV,H:{e:o.VY}},{sub:[{b:B.E.A,m:W.xn,H:{e:"st_copy"}},{b:B.E.A,m:W.xn,H:{e:"st_paste"}},{b:B.E.A,m:W.xn,H:{e:"st_clear"}},L]},{b:B.E.A,m:W.aV,H:{e:o.Zt}},{b:B.E.A,m:W.aV,H:{e:o.NX}},{b:B.E.A,m:W.aV,H:{e:o._m}},{sub:function(){var Y=[];
for(var H=0;H<8;H++)Y.push({b:B.E.A,m:W.aV,H:{e:o.Qa,aa_:H}});return Y}()}];this.rB=new aq(U,E);var U=[{name:[6,45],p:function(Y){var z=Y.N[Y.C[0]];
return{p:z.iC(Y).r==null}}},{name:[6,47]}],E=[{b:B.E.A,m:W.aV,H:{e:o.Ht}},{b:B.E.A,m:W.aV,H:{e:o.fy}}];
this.ajQ=new aq(U,E);var U=[{name:"enab/disab",p:function(Y){return{QA:gS.get(Y.N[Y.C[0]].xV().isEnabled?[6,15]:[6,14])}}},{name:[6,22]},{name:[5,8],p:function(Y){return{p:Y.qk(!1,!0)}}}],E=[{b:B.E.A,m:W.aV,H:{e:o.xd}},{b:B.E.A,m:W.aV,H:{e:o.LT}},{b:B.E.A,m:W.aV,H:{e:o.MH}}];
this.aiP=new aq(U,E);var U=[{name:"enab/disab",p:function(Y){return{QA:gS.get(Y.N[Y.C[0]].iC(Y).r.isEnabled?[6,42]:[6,41])}}},{name:[6,46]}],E=[{b:B.E.A,m:W.aV,H:{e:o.Ue}},{b:B.E.A,m:W.aV,H:{e:o.m1}}];
this.agI=new aq(U,E);var U=[{name:"enab/disab",p:function(Y){return{QA:gS.get(Y.N[Y.C[0]].add.vmsk.isEnabled?[6,17]:[6,16])}}},{name:[6,24]}],E=[{b:B.E.A,m:W.aV,H:{e:o.qN}},{b:B.E.A,m:W.aV,H:{e:o.Xl}}];
this.a02=new aq(U,E);this.al2=new aq(eU.YJ(!0),eU.DD(!0));this.a1r=new aq(eU.uZ(),eU.hp());this.k("rclick",this.aa0,this)}dT.prototype=new hQ("");
dT.prototype.aiz=function(L){B.ZS(L);var C=L.dataTransfer.getData("Text"),U=1,E=0;if(C==""){B.hW(L,this,this.Vn.indexOf(this._u),E+(U>.5?0:1))}else if(C!="--panel"){var C=JSON.parse(C),Y=C.fD;
if(Y=="l")this.ve({e:o.Br,source:C.Od,target:E,KO:U})}};dT.prototype.Kn=function(){return new hZ(253,0)};
dT.prototype.aa0=function(L){var C=this._u,U=L.data,Y;if(C.C.indexOf(U.$)==-1){var E={e:o.k0,$:L.target.Nz.index,w6:U.yQ};
this.ve(E)}if(C.C.indexOf(U.$)==-1)return;if(U.yQ==1){Y=this.aiP}else if(U.yQ==2){Y=this.a02}else if(U.yQ==3){Y=this.agI}else if(U.yQ==4){Y=this.ajQ}else if(U.yQ==5){Y=this.aaL}else{Y=this.rB}Y.f();
Y.update(C);Y.parent=this;var z=new q(B.E.l,!0);z.data={e:B.U.Ww,f0:Y,x:U.H3.x+1,y:U.H3.y+1};this.B(z)};
dT.prototype.f=function(){hQ.prototype.f.call(this);this.ui.f();this.sr.f();this.TE.f();this.H_.f();
if(this._u)this.jn(this._u);var L="lrs/link lrs/fx lrs/adj lrs/mask lrs/folder lrs/newlayer lrs/bin".split(" ");
for(var H=0;H<this.UR.length;H++){var C=this.UR[H];C.uc(B.lp(L[H]))}};dT.prototype.jn=function(L,C){if(L&&!L.hK)return;
if(L==null)B.QS(this.ln,"disabled");else B.gy(this.ln,"disabled");this._u=L;this.Vn=C;if(this.Av!=null){this.Y8.removeChild(this.Av.Y8);
this.Av=null}if(L==null)return;this.Av=new bF(L.root,this,L,{Cc:0});this.Y8.appendChild(this.Av.Y8);
if(L.C.length==0||L.N[L.C[0]]==null)B.QS(this.a6,"disabled");else{B.gy(this.a6,"disabled");if(L.C.length==1&&L.fP)this.Av.PG(L.C);
var U=L.N[L.C[0]];if(U.Jc()){this.ui.SU([[15,10,27]].concat(gz.w4),[1].concat(gz.RY));var E=gz.w0.indexOf(U.B4);
this.ui.T(E+1)}else{this.ui.SU(gz.w4,gz.RY);var E=gz.w0.indexOf(U.B4);this.ui.T(E)}this.sr.T(Math.round(100*U.opacity/255));
this.TE.T([U.zm(0),U.zm(1),U.zm(2),U.zm(31)]);this.H_.T(Math.round(100*(U.add.iOpa!=null?U.add.iOpa/255:1)))}};
dT.prototype.AU=function(L,C){var U=this.a6.getBoundingClientRect().height,E=59;if(U>70)E=84;if(U>100)E=108;
var Y=C-(E+37);this.Y8.style.height=Y+"px"};dT.prototype.afM=function(L){this.ve({e:o.uP,oq:this.ui.u()})};
dT.prototype.aaZ=function(L){this.ve({e:o.K0,oq:Math.round(255*this.sr.u()/100)})};dT.prototype.a0b=function(L){this.ve({e:o.Lx,oq:[this.TE.u(),[0,1,2,31]]})};
dT.prototype.a26=function(L){this.ve({e:o.J9,oq:Math.round(255*this.H_.u()/100)})};dT.prototype.ac9=function(L){this.iI(L,this.al2)};
dT.prototype.amm=function(L){this.iI(L,this.a1r)};dT.prototype.iI=function(L,C){var U=L.currentTarget;
if(B.DW(C.j))return;L.stopPropagation();var E=U.getBoundingClientRect();C.f();C.update(this._u);C.parent=this;
var Y=new q(B.E.l,!0);Y.data={e:B.U.Ww,f0:C,x:E.left,y:E.top,ahr:!0};this.B(Y)};dT.prototype.a5I=function(L){this.ve({e:o.cU})};
dT.prototype.akA=function(L){this.ve({e:this._u.C.length>1?o.fe:o.x2})};dT.prototype.a4e=function(L){this.ve({e:o.vY})};
dT.prototype.aiF=function(L){this.ve({e:o.eZ})};dT.prototype.ant=function(L){this.ve({e:o.Sg})};dT.prototype.ve=function(L){var C=new q(B.E.A,!0);
C.data=L;C.m=W.aV;this.B(C)};dT.prototype.hz=function(){var L=[[6,54,0],[11,6],[6,1],[6,21],[6,20],[6,13],[6,31]],C=[this.ant,this.amm,this.ac9,this.a5I,this.akA,this.a4e,this.aiF],U=this.aka.bind(this);
for(var H=0;H<L.length;H++){var E=new br("W",!1,L[H]);this.UR.push(E);B.Vv(E.j,C[H].bind(this));this._I.appendChild(E.j);
if(H>=L.length-3){var Y=E.j;Y.addEventListener("drop",U,!1);Y.addEventListener("dragover",function(z){z.preventDefault()},!1);
Y.addEventListener("dragenter",B.ZS,!1)}}};dT.prototype.aka=function(L){B.ZS(L);var C=0,U=this.UR;while(U[C].j!=L.currentTarget)C++;
U[C].q7();var E=L.dataTransfer.getData("Text");if(E=="")return;var E=JSON.parse(E);if(E.fD=="l"){var Y={e:[o.fe,o.ok,o.eZ][C-4]};
if(this._u.C.indexOf(E.Od)==-1)Y.$=E.Od;this.ve(Y)}if(C!=6)return;if(E.fD=="sm"||E.fD=="s"){var z=new q(B.E.A,!0);
z.m=W.xn;z.data={e:E.fD=="sm"?"st_clear":"st_delsingle",$:E.Od,Od:E._r};this.B(z)}if(E.fD=="fm"||E.fD=="f"){this.ve({e:E.fD=="fm"?o.fy:o.q1,src:E.Od,_r:E._r})}if(E.fD=="m"||E.fD=="vm"){this.ve({e:E.fD=="m"?o.LT:o.Xl,$:E.Od})}};
function bF(L,C,U,E){gG.call(this);this.parent=C;this.Nz=L;this.qY=[];this.j=B.w("div","layeritem");
var Y=L.$,v=15,N=!1;this.a6=B.w("div",U.C.indexOf(L.index)!=-1?"head selected":"head");if(L.$.add.artb!=null)B.QS(this.a6,"artb");
this.a6.setAttribute("style","height: "+(Y.ad0+10)+"px");var z=B.w("div","headL"),r=B.w("div","headR"),p=B.w("div","lpineck");
this.Y8=B.w("div","lpibody");this.j.appendChild(this.a6);this.a6.appendChild(z);this.a6.appendChild(r);
if(Y.ls()||Y.s7())if(Y.QI())this.j.appendChild(p);var T=this.a6;T.setAttribute("draggable","true");T.addEventListener("dragstart",this.u1.bind(this),!1);
T.addEventListener("drop",this.EY.bind(this),!1);T.addEventListener("dragover",this.WK.bind(this),!1);
T.addEventListener("dragenter",B.ZS,!1);T.addEventListener("dragleave",this.Ce.bind(this),!1);var k=[],P=[],b=B.w("div");
this.Yv=B.w("div","eye");b.appendChild(this.Yv);var Q=B.w("div","space");this.VQ=B.w("div","label");
this.VQ.setAttribute("style","max-width:calc(100% - "+(96+L.depth*20)+"px)");this.VQ.textContent=Y.getName();
this.Ns=B.w("div","lock");this.a9k=B.w("div","lrfx");this.VD=B.w("div","arfx");var K=this.a6y.bind(this),h=this.ai0.bind(this);
this.a6.addEventListener("click",h,!1);this.a6.addEventListener("contextmenu",K,!1);var x=[0,16711680,16748544,16763904,4513024,22015,11141375,7829367],O=Y.add.lclr==null?0:x[Y.add.lclr];
if(O==0)O=E.Cc;var y=[O>>16,O>>8&255,O&255];for(var H=0;H<3;H++){y[H]=Math.round(.5*y[H]+.5*220)}if(1<B.M()&&B.M()<1.5)v=v/B.M();
b.setAttribute("style","background-color:rgba("+y.join(",")+","+(O==0?0:1)+");");this.Yv.setAttribute("style","background-size: "+v+"px "+v+"px;");
var i=this.a59.bind(this);b.addEventListener("mousedown",i,!1);b.addEventListener("mouseover",i,!1);
this.VQ.addEventListener("pointerup",this.a5P.bind(this),!1);this.VD.addEventListener("click",this.afr.bind(this),!1);
k[0]=b;k[1]=Q;k[10]=this.VQ;if(Y.Jc()){var D=B.w("div","arrow"),I=B.w("div","folder");D.addEventListener("click",this.a0h.bind(this),!1);
k[2]=D;k[3]=I;if(Y.add.lsct==fI.Qr){for(var H=L.children.length-1;H>=0;H--){var m=new bF(L.children[H],C,U,{Cc:O});
this.qY.push(m);this.Y8.appendChild(m.j)}this.j.appendChild(this.Y8)}D.setAttribute("class",Y.add.lsct==fI.Qr?"open":"closed")}else{this.C4=B.w("div","thumb");
k[5]=this.C4;this.C4.appendChild(Y.mN.canvas)}var f=Y.xV();if(f){this.X0=B.w("div","chain");this.Sd=B.w("div","thumb");
this.Sd.setAttribute("draggable","true");this.Sd.appendChild(L.$.a2J.canvas);this.X0.style.opacity=f.zF?1:0;
this.X0.addEventListener("click",this.a5m.bind(this),!1)}var A=Y.G_()&&Y.add.vmsk;if(Y.add.vmsk&&!A){this.bp=B.w("div","chain");
this.S$=B.w("div","thumb");this.S$.setAttribute("draggable","true");this.S$.appendChild(L.$.a0F.canvas);
this.bp.style.opacity=Y.add.vmsk.zF?1:0;this.bp.addEventListener("click",this.a4t.bind(this),!1)}if(Y.s7()&&Y.iC(U).r){this.Kz=B.w("div","thumb");
this.Kz.appendChild(L.$.ajL.canvas);this.Kz.addEventListener("click",h,!1);this.Kz.addEventListener("contextmenu",K,!1)}if(Y.ls()){p.addEventListener("contextmenu",K,!1);
var d=new dT.Nm(gS.get([12,1]),"sm","layerstyle",L.depth,0,null);d.parent=this;p.appendChild(d.j);var g=Y.add.lmfx,X=g.masterFXSwitch.v;
d.Qs(X);for(var H=0;H<gM.order.length;H++){var n=g[gM.cp[H]].v;if(n.length==0)continue;for(var R=0;R<n.length;
R++){var d=new dT.Nm(gS.get(gM.names[H]),"s","layerstyle",L.depth,1,[H,R]);d.Qs(X&&n[R].v.enab.v);d.parent=this;
p.appendChild(d.j)}}}if(Y.s7()){var d=new dT.Nm(gS.get([12,55]),"fm",null,L.depth,0,-1,Y.iC(U).r?this.Kz:null);
d.parent=this;p.appendChild(d.j);this.a2B=d.j;this.a2B.addEventListener("contextmenu",K,!1);var g=Y.add.SoLd.filterFX.v,l=g.filterFXList.v,X=g.enab.v;
d.Qs(X);for(var H=l.length-1;H>=0;H--){var w=l[H].v,V=hi.E3(w);if(eh.vD[V])V=eh.vD[V];var F=w.Nm.v;if(hi.names[V])F=gS.get(hi.names[V]);
if(eh.names[V])F=gS.get(eh.names[V]);var Z="afw_"+V,d=new dT.Nm(F,"f",Z,L.depth,1,H);d.Qs(X&&w.enab.v);
d.parent=this;p.appendChild(d.j)}}if(U.N.indexOf(Y)==U.C[0]){var M=Y.yQ,a;if(M<=0)a=this.C4;else if(M==1)a=this.Sd;
else if(M==3)a=this.Kz;if(a)a.setAttribute("class","thumb active");if(Y.hI&&this.S$)this.S$.setAttribute("class","thumb active")}b.style.opacity=Y.rK()?1:.25;
Q.setAttribute("style","width:"+Math.max(0,L.depth-1)*18+"px");var e=Y.add.lspf!=null&&Y.add.lspf!=0;
this.Ns.style.opacity=Y.zm(31)?1:.5;k[4]=Y.l$?B.w("div","clipp"):null;k[6]=f?this.X0:null;k[7]=f?this.Sd:null;
k[8]=Y.add.vmsk&&!A?this.bp:null;k[9]=Y.add.vmsk&&!A?this.S$:null;var J=Y.xi,s=U.C;if(J!=0)for(var H=0;
H<s.length;H++)if(U.N[s[H]].xi==J){N=!0;break}P[0]=N?B.w("div","link"):null;P[1]=e?this.Ns:null;P[2]=Y.ls()?this.a9k:null;
P[3]=Y.ls()||Y.s7()?this.VD:null;this.VD.setAttribute("class",Y.QI()?"arfx open  gsicon":"arfx closed  gsicon");
var f5=k;for(var H=0;H<f5.length;H++)if(f5[H])z.appendChild(f5[H]);f5=P;for(var H=0;H<f5.length;H++)if(f5[H])r.appendChild(f5[H])}bF.prototype=new gG;
bF.prototype.PG=function(L){var C=this.Nz.index;if(L.indexOf(C)!=-1){if(this.j.scrollIntoView)this.j.scrollIntoView({block:"nearest"})}for(var H=0;
H<this.qY.length;H++)this.qY[H].PG(L)};bF.Ci=function(L,C){var U=C.getBoundingClientRect();return(L.clientY-U.top)/U.height};
bF.prototype.u1=function(L){L.stopPropagation();var C=L.target==this.Sd?"m":L.target==this.S$?"vm":"l";
L.dataTransfer.setData("Text",JSON.stringify({fD:C,Od:this.Nz.index}))};bF.prototype.Ce=function(L){B.ZS(L);
this.ud()};bF.prototype.EY=function(L){B.ZS(L);this.ud();var C=L.dataTransfer.getData("Text"),U=this.parent._u,E=bF.Ci(L,this.a6),Y=this.Nz.index;
if(E>.8){var z=!0,r=U.root.cW(Y);while(r.parent!=null){var p=r.parent,T=p.children;if(T.indexOf(r)!=0)z=!1;
r=r.parent}if(z){Y=0;E=1}}if(C==""){B.hW(L,this,this.parent.Vn.indexOf(U),Y+(E>.5?0:1))}else if(C!="--panel"){var C=JSON.parse(C),k=C.fD;
if(k=="l")this.ve({e:o.Br,source:C.Od,target:Y,KO:E});else if(k=="m"||k=="vm")this.ve({e:k=="m"?o.vZ:o.XQ,src:C.Od,yD:Y,nz:L.altKey});
else bF.pZ(L,C,this)}};bF.pZ=function(L,C,U,E){var Y=C.fD,z=U.Nz.index,r=C.Od;if(Y=="s"||Y=="sm")U.ve({e:o.Zd,src:r,yD:z,_r:C._r,nz:L.altKey});
if(Y=="f"||Y=="fm")U.ve({e:o.M7,src:r,yD:z,_r:C._r,um:E==null?0:E,nz:L.altKey})};bF.prototype.WK=function(L){B.ZS(L);
var C=bF.Ci(L,this.a6);this.ud();var U=C>.5?"-bottom":"-top";if(this.Nz.$.Jc()&&.5<C&&C<.8)U="";this.a6.style["border"+U]="3px solid rgba(0,0,0,0.5)";
this.a6.style.margin=U==""?"-3px 0 -3px 0":U=="-top"?"-3px 0 0 0":"0 0 -3px 0"};bF.prototype.ud=function(L){this.a6.style.border="none";
this.a6.style.margin="0"};bF.m_=-1;bF.mi=!1;bF.NQ=function(L){bF.mi=!1;document.body.removeEventListener("mouseup",bF.NQ)};
bF.prototype.a59=function(L){if(L.button!=0)return;if(L.type=="mousedown"){bF.mi=!0;document.body.addEventListener("mouseup",bF.NQ,!1)}if(L.type=="mouseover"&&(!bF.mi||bF.m_==this.Nz.index))return;
B.ZS(L);this.ve({e:o.Zu,$:this.Nz.index});bF.m_=this.Nz.index};bF.prototype.a0h=function(L){B.ZS(L);
this.ve({e:o.TJ,$:this.Nz.index})};bF.prototype.a5m=function(L){this.ve({e:o.XR,$:this.Nz.index})};bF.prototype.a4t=function(L){this.ve({e:o.F0,$:this.Nz.index})};
bF.q2=0;bF.prototype.a5P=function(L){var C=bF.q2;bF.q2=Date.now();if(Date.now()-C>300)return;L.preventDefault();
L.stopPropagation();this.a6.setAttribute("draggable","false");var U=new hQ.Tr(this.VQ,this.AR.bind(this))};
bF.prototype.AR=function(L){this.ve({e:o.lt,$:this.Nz.index,name:L})};bF.prototype.afr=function(L){this.ve({e:o.v6,$:this.Nz.index})};
bF.prototype.a6y=function(L){if(this.gt(L,L.target,this.yQ(L)))return;var C=L.sourceCapabilities;if(C)C=C.firesTouchEvents;
if(L.button!=2&&C!=!0)return;var U=this.yQ(L);console.log(U);if(U!=3&&L.currentTarget==this.a2B)U=4;
if(L.target==this.a9k)U=5;var E=new q("rclick",!0);E.data={$:this.Nz.index,yQ:U,H3:B.K7(L,document.body)};
this.B(E)};bF.prototype.yQ=function(L){var C=L.target,U=C.parentNode;return U==this.S$?2:U==this.Sd?1:U==this.C4?0:U==this.Kz?3:-1};
bF.prototype.ai0=function(L){var C=L.target,P;if(C==this.Yv||C==this.VD||C==this.X0||C==this.bp||C.tagName&&C.tagName.toLowerCase()=="input")return;
var U=this.yQ(L),E=this.parent._u,Y=this.Nz.index,z=E.N[Y];if(C==this.Ns){this.ve({e:o.Lx,$:Y,oq:[[!1,!1,!1,!1,!1],[0,1,2,3,31]]});
return}if(L.button==0&&L.detail==2){if(C==this.VQ)return;var r=new q(B.E.A,!0),p=new q(B.E.l,!0),T=new q(B.E._w,!0);
if(U==0&&z.add.SoCo){var k=c.W.Lt(z.add.SoCo.Clr.v);p.data={e:B.U.Q1,k5:"colorpicker",Cc:k.h<<16|k.P<<8|k.O,SL:function(K){var h=c.W._b({O:K&255,P:K>>>8&255,h:K>>16&255});
h={classID:"null",Clr:{t:"Objc",v:h}};var x=new q(B.E.A,!0);x.m=W.aV;x.data={e:o.jT,s9:[Y],JM:!0,G:{L$:1,o$:h}};
this.B(x)}.bind(this),U2:!0}}else if(U==0&&(eh.get(z.add)||z.add.SoCo||z.add.GdFl||z.add.PtFl))p.data={e:B.U.Cz,k5:hQ.Du.ka};
else if(U!=0&&U!=-1)p.data={e:B.U.Cz,k5:hQ.Du.ka};else if(U==0&&z.add.SoLd)T.data={xo:"placedLayerEditContents",V5:{classID:"placedLayerEditContents"}};
else if(U==0&&z.add.TySh){r.m=W.Ey;r.data={e:"editCurr",Z7:Y}}else p.data={e:B.U.Q1,k5:"layerstyle",$:Y};
this.B(T.data?T:p.data?p:r);return}if(this.gt(L,C,U))return;if(L.button!=0)return;if(U==1||U==3){var b=U==3?z.iC(E).r:z.xV();
P=b.mM?E.z.NT.join("")=="111"?1:2:0}var Q={e:o.k0,$:Y,w6:U};this.ve(Q);if(L.altKey){if(U==1||U==3){var r=new q(B.E.A,!0);
r.m=W.tJ;r.data={e:"mskView",G:P!=0?0:L.shiftKey?1:2};this.B(r)}else{this.ve({e:o.VY,$:Y})}return}};
bF.prototype.gt=function(L,C,U){if((L.ctrlKey||L.metaKey)&&(U==0||U==1||U==2)){var E=0;if(L.shiftKey)E++;
if(L.altKey)E+=2;var Y=new q(B.E.A,!0);Y.m=W.Y7;Y.data={e:"fromlayer",F$:[this.Nz.index,U,E]};this.B(Y);
return!0}return!1};bF.prototype.ve=function(L){var C=new q(B.E.A,!0);C.data=L;C.m=W.aV;this.B(C)};dT.Nm=function(L,C,U,E,Y,z,r){gG.call(this);
this.ahc=C;this.fE=U;this.index=z;this.j=B.w("div","styleitem");this.a6=B.w("div","head");this.a24=null;
if(C=="f"){var p=this.a24=B.w("div","headR");p.textContent="\u2699";this.a6.appendChild(p)}this.eC=B.w("div","eye gsicon");
this.VQ=B.w("div","label");this.j.appendChild(this.a6);this.a6.appendChild(this.eC);if(r){this.Sd=r;
this.a6.appendChild(this.Sd);this.a6.setAttribute("style","height: "+(r.firstChild.height/B.M()+10)+"px")}this.VQ.innerHTML=L;
this.j.setAttribute("style","margin-left: "+(24+E*16+Y*22)+"px");this.a6.appendChild(this.VQ);this.eC.addEventListener("click",this.anP.bind(this),!1);
var T=this.j;T.setAttribute("draggable","true");T.addEventListener("dragstart",this.u1.bind(this),!1);
if(!0){T.addEventListener("drop",this.EY.bind(this),!1);T.addEventListener("dragover",this.WK.bind(this),!1);
T.addEventListener("dragenter",B.ZS,!1);T.addEventListener("dragleave",this.Ce.bind(this),!1)}this.j.addEventListener("click",this.bM.bind(this),!1)};
dT.Nm.prototype=new gG;dT.Nm.prototype.u1=function(L){L.stopPropagation();L.dataTransfer.setData("Text",JSON.stringify({fD:this.ahc,Od:this.parent.Nz.index,_r:this.index}))};
dT.Nm.prototype.Ce=function(L){B.ZS(L);this.ud()};dT.Nm.prototype.EY=function(L){B.ZS(L);this.ud();var C=L.dataTransfer.getData("Text");
if(C=="")return;var C=JSON.parse(C);bF.pZ(L,C,this.parent,this.index+(bF.Ci(L,this.a6)>.5?0:1))};dT.Nm.prototype.WK=function(L){B.ZS(L);
var C=bF.Ci(L,this.a6)>.5;this.ud();var U="border-"+(C?"bottom":"top");this.a6.style[U]="0.2em solid rgba(0,0,0,0.5)"};
dT.Nm.prototype.ud=function(L){this.a6.style.border="none"};dT.Nm.prototype.Qs=function(L){var C=15;
if(1<B.M()&&B.M()<1.5)C=C/B.M();this.eC.setAttribute("style","background-size: "+C+"px "+C+"px;");this.eC.style.opacity=L?1:.2};
dT.Nm.prototype.bM=function(L){if(L.target==this.eC)return;if(L.detail!=1&&this.fE!=null){var C=this.parent.Nz.index,U=new q(B.E.l,!0);
if(this.fE.indexOf("afw_")==0){var E=this.fE.slice(4),Y=j[E]||hi.Wk[E],z=L.target==this.a24;if(!z&&!Y)return;
U.data=hO.W7._F(z?"blendOptions":E,{$:C,index:this.index})}else U.data={e:B.U.Q1,k5:this.fE,$:C,index:this.index};
this.B(U)}};dT.Nm.prototype.anP=function(L){var C={fm:o.l6,f:o.rQ,sm:o.sg,s:o._8}[this.ahc];this.parent.ve({e:C,$:this.parent.Nz.index,index:this.index})};
function ef(){hQ.call(this,"Guide Guy",!1,null,hQ.Du.a3w);this.L2=null;this.Vr=[];var L=B.w("div","form padded");
this.ln.appendChild(L);L.setAttribute("style","width:200px");this.ln.appendChild(L);var C=B.w("canvas"),U=C.getContext("2d");
C.width=C.height=160;var E=[32,0,16,160,0,32,160,16,0,112,160,16],Y="Margin Left,Margin Top,Margin Right,Margin Bottom,Column Count,Row Count,Column Width,Row Height,Column Gap,Row Gap".split(","),z=[0,0,0,0,0,0,0,0,0,0];
for(var H=0;H<10;H++){U.clearRect(0,0,160,160);U.setTransform(1,0,0,1,80,80);U.rotate((H&3)*Math.PI/2);
U.translate(-80,-80);U.fillStyle="rgba(0,0,0,0.3)";if(H<4){for(var r=0;r<12;r+=4){U.fillStyle=r==0?"#000000":"rgba(0,0,0,0.3)";
U.fillRect(E[r],E[r+1],E[r+2],E[r+3])}}else if(H<6){var p=8*6;U.fillRect(0,0,p,160);U.fillRect(8*7,0,p,160);
U.fillStyle="#000000";U.fillRect(8*14,0,p,160)}else if(H<8){U.fillRect(0,0,16,160);U.fillRect(160-16,0,16,160);
U.fillRect(32,0,160-64,160);U.fillStyle="#000000";U.fillRect(32,80-8,160-64,8*1)}else{U.fillRect(0,0,8*7,160);
U.fillRect(8*13,0,160,160);U.fillStyle="#000000";U.fillRect(8*7,80-8,8*6,8*1)}var T="<img src=\""+C.toDataURL()+"\" class=\"autoscale gsicon\" /> ",k=new cU(T,0,200,H==4||H==5?null:"px",null,null,null,4,Y[H]);
k.parent=this;k.k(B.E.L,this.ah5,this);k.T(z[H]);k.f();this.Vr.push(k);L.appendChild(k.j)}var P=["Add Guides","Clear Guides"];
this.sJ=[];for(var H=0;H<P.length;H++){var b=new br(P[H],!0,null,!0);this.sJ.push(b);b.k("click",this.Uv,this);
L.appendChild(b.j)}for(var H=0;H<6;H++){U.setTransform(1,0,0,1,80,80);U.rotate(Math.floor(H/3)*Math.PI/2);
U.translate(-80,-80);U.clearRect(0,0,160,160);U.fillStyle="rgba(0,0,0,0.3)";U.fillRect(0,0,160,160);
U.clearRect(16,16,128,128);U.fillStyle="#000000";var Q=H%3;U.fillRect([0,9,18][Q]*8,0,16,160);var T="<img src=\""+C.toDataURL()+"\" class=\"autoscale gsicon\" /> ",b=new br(T,!1,null,!1);
this.sJ.push(b);b.k("click",this.Uv,this);L.appendChild(b.j)}}ef.prototype=new hQ("");ef.prototype.ah5=function(L){var C=this.Vr,U=C.indexOf(L.target),E=Math.floor(U/2),Y=U&1,z=[];
for(var H=0;H<4;H++)z.push(C[2*H+Y].u());var r=-1;if(E==2&&z[2]!=0&&z[3]!=0&&z[4]!=0)r=4;if(E==3&&z[3]!=0&&z[2]!=0&&z[4]!=0)r=4;
if(E==4&&z[4]!=0&&z[2]!=0&&z[3]!=0)r=3;if(r!=-1)C[2*r+Y].T(0)};ef.prototype.Uv=function(L){var C=this.L2,U=this.sJ.indexOf(L.target),E=[[],[]];
if(C==null)return;var Y=C.t?C.t.rect:new _(0,0,C.d,C.v),z=Y.d,r=Y.v;if(U==0){var p=[[],[]];for(var H=0;
H<this.Vr.length;H++)p[H&1].push(this.Vr[H].u());E=[ef.Y4(p[0],Y.x,Y.x+z),ef.Y4(p[1],Y.y,Y.y+r)];W.P4.Ay(E,C.Pr)}else if(U==1){}else{U-=2;
var T=Math.floor(U/3),E=[[],[]];E[T].push([Y.x,Y.x+z/2,Y.x+z,Y.y,Y.y+r/2,Y.y+r][U]);W.P4.Ay(E,C.Pr)}var k=function(P,b){return P-b};
E[0].sort(k);E[1].sort(k);this.ajM(E)};ef.prototype.a5a=function(L){var C=this.agA.indexOf(L.target)};
ef.prototype.ajM=function(L){var C=new q(B.E.A,!0);C.m=W.Ml;C.data={e:"gids",Ee:L};this.B(C)};ef.Y4=function(L,C,U){var E=[],Y=L[2],z=L[3],r=L[4],p=0;
if(Y==0)p++;if(z==0)p++;if(r==0)p++;if(p>1&&Y==0&&z==0){if(L[0]!=0)E.push(C+L[0]);if(L[1]!=0)E.push(U-L[1]);
return E}var T=U-C-L[0]-L[1];if(Y==0){if(r==0){Y=Math.floor(T/z);r=(T-Y*z)/(Y-1)}else{Y=1;while(z*Y+r*(Y-1)+z+r<=T)Y++}}else if(Y!=0&&z!=0){if(Y*z>T)Y=Math.floor(T/z);
r=(T-Y*z)/(Y-1)}E.push(C+L[0],U-L[1]);var z=(T-r*(Y-1))/Y;for(var H=1;H<Y;H++){if(r==0)E.push(C+L[0]+H*z);
else E.push(C+L[0]+H*z+(H-1)*r,C+L[0]+H*z+H*r)}return E};ef.prototype.jn=function(L){this.L2=L};function eA(){hQ.call(this,[9,2],!1,null,hQ.Du.ka);
this.ag2=null;this.hN=null;this.OY=null;this.agn=-1}eA.prototype=new hQ("");eA.prototype.yT=function(){this.OM=B.w("div","padded");
this.OM.style.width="22em";this.ln.appendChild(this.OM);var L=B.w("span","fitem");this.OM.appendChild(L);
this.c6=[new br([0,3]),new br([12,73]),new br([12,91,0])];for(var H=0;H<this.c6.length;H++){var C=this.c6[H];
C.k("click",this.aj1,this);L.appendChild(C.j)}this.OM.appendChild(B.w("hr"));this.VK=new eA.FB;this.VK.parent=this;
this.LL=new eA.BG;this.LL.parent=this;this.HQ=new eA.Wq;this.HQ.parent=this;this.anx=[this.VK,this.LL,this.HQ];
this.OM.appendChild(this.VK.j)};eA.prototype.aj1=function(L){var H=this.c6.indexOf(L.currentTarget);
this.Bs(H);this.Nh(H==1?this.LL.SE:-1)};eA.prototype.Bs=function(L){for(var H=0;H<3;H++){this.c6[H].q7();
var C=this.anx[H].j;if(C.parentNode==this.OM&&H!=L)this.OM.removeChild(C);if(C.parentNode!=this.OM&&H==L)this.OM.appendChild(C)}this.c6[L].m0()};
eA.prototype.Nh=function(L){var C=this.hN.C[0],U=this.hN.N[C],E=L+1;if(L==1&&U.hI)return;var Y=new q(B.E.A,!0);
Y.m=W.aV;if(L!=1&&U.hI){Y.data={e:o.k0,$:C,w6:2};this.B(Y)}Y.data={e:o.k0,$:C,w6:E};this.B(Y)};eA.prototype.f=function(){hQ.prototype.f.call(this);
if(this.OM==null)return;this.jn(this.hN);for(var H=0;H<3;H++){this.c6[H].f();this.anx[H].f()}};eA.prototype.tt=function(){if(!B.DW(this.ln))return;
if(this.OM==null){this.yT();this.hU(this.OY,c_.oI);this.jn(this.ag2);this.f()}};eA.prototype.jn=function(L){this.ag2=L;
if(this.OM==null)return;this.VK.jn(L);this.LL.jn(L);this.HQ.jn(L);if(L==null||L.C.length==0||L.N[L.C[0]]==null){B.QS(this.ln,"disabled");
this.hN=null;return}else B.gy(this.ln,"disabled");var C=L.C[0],U=L.N[C],E=L.zG(),Y=E[0],z=E[1];if(z.length!=0){var r=Y[z[0]],p=r.add.vogk,T=!1;
if(p)for(var H=0;H<p.length;H++){var k=p[H].v,P=k.keyShapeInvalidated;if(P&&P.v||k.keyOriginType==null)continue;
T=!0;C=r.Oi}}if(L!=this.hN||this.agn!=C){this.hN=L;this.agn=C;if(T)this.Bs(2);else if(U.yQ<1&&!U.hI)this.Bs(0);
else this.Bs(1)}this.c6[1].Q9(this.LL.SE!=-1);this.c6[2].Q9(T)};eA.prototype.hU=function(L,C){this.OY=L;
if(this.VK)this.VK.hU(L,C)};eA.FB=function(){gG.call(this);this.j=B.w("div","form");this.a7y=new ip("Hello");
this.j.appendChild(this.a7y.j);this.cA=null;this.a8c=null;this.hN=null;this.a0S=-1;this.abo=null;this.DI=new di(!0);
this.DI.parent=this;this.DI.k(B.E.L,this.a8z,this);this.R1=B.w("div","marged hiline");this.R1.appendChild(this.DI.j);
this.UX=new ik("GrFl",!0);this.UX.parent=this;this.UX.k(B.E.L,this.aj2,this);this.HT=B.w("div","marged hiline");
var L="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");for(var H=0;H<L.length;H++){var C=this.UX.vq[L[H]].j;
this.HT.appendChild(C)}this.wM=new ik("patternFill",!0);this.wM.parent=this;this.wM.k(B.E.L,this.akR,this);
this.NO=B.w("div","marged hiline");var L=["Ptrn","Scl","Algn","phase"];for(var H=0;H<L.length;H++){var C=this.wM.vq[L[H]].j;
this.NO.appendChild(C)}this.CD={};for(var U in eh.names){if(j[U]==null)continue;this.CD[U]=new j[U];
this.CD[U].k(B.E.L,this.amK,this);this.CD[U].parent=this}var E=this.anB=B.w("div","marged hiline");this.Xv=eA.Dh(["W","H","X","Y"],null,E,this.Fb,this);
this.Lr=new bS([12,46],[[13,1,8],[13,1,10],[13,1,9],[12,47]]);this.Lr.k(B.E.L,this.Fb,this);E.appendChild(this.Lr.j);
this.pi=new di(!1);this.pi.parent=this;this.pi.k(B.E.L,this.Fb,this);E.appendChild(this.pi.j)};eA.FB.prototype=new gG;
eA.FB.prototype.f=function(){for(var L in this.CD)this.CD[L].f();this.UX.f();this.wM.f();this.Lr.f();
for(var H=0;H<4;H++)this.Xv[H].f()};eA.FB.prototype.Fb=function(L){var C=eA.qb(this.Xv),U=o.l8(new _(C[2],C[3],C[0],C[1])),E=this.Lr.u(),Y={classID:"artboard",artboardRect:{t:"Objc",v:U},Clr:{t:"Objc",v:this.pi.u()},artboardBackgroundType:{t:"long",v:E+1}},z=new q(B.E.A,!0);
z.m=W.aV;z.data={e:o.j_,mH:Y};this.B(z)};eA.FB.prototype.a8z=function(L){var C=this.hN,U=C.C[0];if(C.N[U].add.SoCo==null)return;
var E=JSON.parse(JSON.stringify(C.N[U].add.SoCo));E.Clr.v=this.DI.u();this.Dd({L$:1,o$:E})};eA.FB.prototype.aj2=function(L){var C=this.hN,U=C.C[0];
if(C.N[U].add.GdFl==null)return;this.Dd({L$:2,o$:this.UX.u()})};eA.FB.prototype.akR=function(L){this.Dd({L$:3,o$:this.wM.u()})};
eA.FB.prototype.Dd=function(L){this.dC(W.aV,{e:o.jT,s9:[this.hN.C[0]],JM:!0,G:L})};eA.FB.prototype.amK=function(L){this.dC(W.E_,{e:"edit_layer",G:this.a8c.u()})};
eA.FB.prototype.dC=function(L,C){var U=new q(B.E.A,!0);U.m=L;U.data=C;this.B(U)};eA.FB.prototype.jn=function(L){var C=gS.get([0,3]),U=null;
this.hN=L;if(L&&L.N.length>0&&L.C.length!=0&&L.N[L.C[0]]){var E=L.N[L.C[0]],Y=eh.get(E.add);if(Y!=null&&this.CD[Y]!=null){U=this.CD[Y].j;
this.a8c=this.CD[Y];this.CD[Y].T(E.add[Y]);if(L.C[0]!=this.a0S){var z=L.E0(L.C[0]-1);this.abo=c.aP(z)}this.CD[Y].Uz(this.abo);
C=gS.get(eh.names[Y])}if(E.add.SoCo){U=this.R1;this.DI.T(E.add.SoCo.Clr.v);C=gS.get([6,48,0,0])}if(E.add.GdFl){U=this.HT;
this.UX.update(L,E.add.GdFl);C=gS.get([6,48,0,1])}if(E.add.PtFl){U=this.NO;this.wM.update(L,E.add.PtFl);
C=gS.get([6,48,0,2])}if(E.add.artb){var r=E.add.artb,p=E.kg();U=this.anB;this.Lr.T(r.artboardBackgroundType.v-1);
if(r.Clr)this.pi.T(r.Clr.v);eA._l(this.Xv,[p.d,p.v,p.x,p.y]);C="Artboard"}this.a0S=L.C[0]}if(U!=this.cA){if(this.cA)this.j.removeChild(this.cA);
if(U!=null)this.j.appendChild(U);this.cA=U}this.a7y.T(C)};eA.FB.prototype.hU=function(L,C){this.UX.hU(L,C);
this.wM.hU(L,C);for(var U in this.CD)this.CD[U].hU(L,C)};eA.BG=function(){gG.call(this);this.j=B.w("div","form");
this.hN=null;this.SE=0;var L=B.w("span","fitem");this.j.appendChild(L);this.c6=[new br([6,2]),new br([6,3]),new br([6,50])];
for(var H=0;H<this.c6.length;H++){var C=this.c6[H];C.k("click",this.ahh,this);L.appendChild(C.j)}this.AV=new cG([12,74],0,255);
this.AV.k(B.E.L,this.bV,this);this.j.appendChild(this.AV.j);this.uO=new cG([7,6],0,500,"px",2,!0);this.uO.k(B.E.L,this.bV,this);
this.j.appendChild(this.uO.j)};eA.BG.prototype=new gG;eA.BG.prototype.bV=function(L){var C=this.AV.u(),U=this.uO.u(),E=new q(B.E.A,!0);
E.m=W.aV;E.data={e:o.QW,Il:this.hN.C[0],Pp:{US:this.SE,AV:C,uO:U}};this.B(E)};eA.BG.prototype.f=function(){for(var H=0;
H<this.c6.length;H++)this.c6[H].f();this.AV.f();this.uO.f()};eA.BG.prototype.jn=function(L){this.hN=L;
this.Tj()};eA.BG.prototype.ahh=function(L){this.Tj(this.c6.indexOf(L.currentTarget));this.parent.Nh(this.SE)};
eA.BG.prototype.Tj=function(L){var C=this.hN,U=this.c6;for(var H=0;H<3;H++){var E=U[H];E.q7();E.aA()}if(C==null||C.N.length==0||C.C.length==0||C.N[C.C[0]]==null)return;
var Y=-1,z=C.N[C.C[0]];if(z.s7()&&z.iC(C).r!=null){U[2].rX();Y=2}if(z.add.vmsk){U[1].rX();Y=1}if(z.xV()){U[0].rX();
Y=0}if(L!=null)Y=L;else if(z.hI)Y=1;else if(z.yQ==3)Y=2;else if(z.yQ==1)Y=0;this.SE=Y;if(Y==-1){this.AV.aA();
this.uO.aA();return}var r=z.LC(Y);this.AV.rX();this.uO.rX();this.AV.T(r.AV);this.uO.T(r.uO);U[Y].m0()};
eA.Wq=function(){gG.call(this);this.j=B.w("div","form");this.oa=1;this.$Q=B.w("div");this.wc=eA.Dh(["W","H","X","Y"],[12,51],this.$Q,this.GI,this);
this.zD=B.w("div");var L=["\u250F","\u2513","\u2517","\u251B"];this.rx=eA.Dh(L,[12,91,2],this.zD,this.GI,this)};
eA.Wq.prototype=new gG;eA.Wq.prototype.f=function(){B.ju(this.wc[0],this.wc[1]);for(var H=2;H<5;H++){this.wc[H].f()}this.rx[4].f()};
eA.Dh=function(L,C,U,E,Y){var z=B.w("div","numlist");U.appendChild(z);var r=[];for(var H=0;H<4;H++){var p=new cU(L[H],0,0,null,1,!1,!0);
p.k(B.E.L,E,Y);z.appendChild(p.j);r.push(p);if(H==1||H==3)B.E4(z)}if(C){r[4]=new dh(C);r[4].T(!0);U.appendChild(r[4].j)}return r};
eA._l=function(L,C){for(var H=0;H<4;H++)L[H].T(C[H])};eA.qb=function(L){var C=[];for(var H=0;H<4;H++)C[H]=L[H].u();
return C};eA.Wq.prototype.GI=function(L){var C=this.wc.indexOf(L.currentTarget),U=this.rx.indexOf(L.currentTarget),E=[null,null,null,null],Y=[null,null,null,null];
if(C!=-1){var z=eA.qb(this.wc),r=this.wc[4].u();z[0]=Math.max(1,z[0]);z[1]=Math.max(1,z[1]);if(r&&C==0)z[1]=z[0]/this.oa;
if(r&&C==1)z[0]=z[1]*this.oa;E[0]=z[2];E[1]=z[3];E[2]=E[0]+z[0];E[3]=E[1]+z[1]}if(U!=-1){var z=eA.qb(this.rx);
Y[U]=Math.max(0,z[U]);if(this.rx[4].u())for(var H=0;H<4;H++)Y[H]=Y[U];var p=Y[3];Y[3]=Y[2];Y[2]=p}var T=new q(B.E.A,!0);
T.m=W.aV;T.data={e:o.Wm,Ke:E,a5R:Y};this.B(T)};eA.Wq.prototype.jn=function(L){if(L==null)return;var C=this.$Q.parentNode!=null,U=this.zD.parentNode!=null,E=c.zf.O4(L),Y=E[0],z=E[1];
if(Y){if(!C)this.j.appendChild(this.$Q);this.oa=(Y[2]-Y[0])/(Y[3]-Y[1]);eA._l(this.wc,[Y[2]-Y[0],Y[3]-Y[1],Y[0],Y[1]])}else if(C)this.j.removeChild(this.$Q);
if(z){if(!U)this.j.appendChild(this.zD);var r=z[2];z[2]=z[3];z[3]=r;eA._l(this.rx,z)}else if(U)this.j.removeChild(this.zD)};
function d3(L){hQ.call(this,L.name,!0);this._u=L;this.us=null;this.d6=[];this.jY=!1;this.aN={x:0,y:0,X4:!1};
this.Uk=document.createElement("canvas");this.JQ=this.Uk.getContext("2d");this.Vb=document.createElement("canvas");
this.e4=this.Vb.getContext("2d");var C=16,U=c.F(16*16*4);c.Wg(U,C,C,8);this.Ep=c.scale.k3(U,C,C);this.a1a=this.g3.bind(this);
this.XE=this.Rl.bind(this);this.afk=this.Zr.bind(this);var E=this.ln;B.Vv(E,this.a1a);B.z2(E,this.XE);
E.addEventListener("wheel",this.da.bind(this),!1);E.addEventListener("contextmenu",this.a45.bind(this),!1);
var Y=this.a4E.bind(this);E.addEventListener("gesturestart",Y,!1);E.addEventListener("gesturechange",Y,!1);
E.addEventListener("gestureend",Y,!1);this.Bi=0;this.acQ="";this.Wt=4;B.zC(E)}d3.prototype=new hQ;d3.prototype.a4E=function(L){if(L.type=="gesturestart")this.Sc=L.scale;
if(L.type=="gesturechange"){var C=new q("mouse",!0);C.action="scroll";C.rn=!0;this.qw(L,C);var U=(this.Sc-L.scale)/this.Sc;
C.Vm=new hZ(0,100*U);this.Sc=L.scale;this.B(C)}};d3.prototype.NI=function(){if(this._u.lH())return window.confirm(gS.get([22,6,3])+" "+this._u.name+". "+gS.get([22,6,4]));
return!0};d3.prototype.tG=function(L){L.preventDefault()};d3.prototype.Ap=function(L){var C=-1,U=this.d6;
for(var H=0;H<U.length;H++)if(U[H].pointerId==L.pointerId)C=H;return C};d3.u_=function(L){var C=L.pointerType,U=window.__kb;
return C=="touch"&&U.q(G.af9)};d3.prototype.g3=function(L){if(d3.u_(L))return;var C=this.Ap(L);if(C!=-1)this.d6[C]=L;
else this.d6.push(L);if(this.d6.length==1){var U=L.button!=null&&L.button!=0?"rdown":"down",E=new q("mouse",!0);
E.action=U;this.qw(L,E);this.B(E);B.dZ(this.ln,this.XE);B.z2(window,this.XE);B.Yp(window,this.afk)}if(this.d6.length==2){this.mh("multidown");
this.jY=!0}};d3.prototype.Rl=function(L){if(d3.u_(L))return;var C=this.Ap(L);if(C!=-1)this.d6[C]=L;if(this.d6.length>1){this.mh("multimove")}if(this.jY)return;
var U=new q("mouse",!0);U.action="move";this.qw(L,U);this.B(U);if(this.us&&this.us.Wr&&!this.aN.X4)this.L9()};
d3.prototype.Zr=function(L){if(d3.u_(L))return;var C=this.d6,U=this.Ap(L);C.splice(U,1);if(C.length==0){var E=L.button!=null&&L.button>0?"rup":"up",Y=new q("mouse",!0);
Y.action=E;this.qw(L,Y);this.B(Y);B.dZ(window,this.XE);B.EW(window,this.afk);B.z2(this.ln,this.XE);this.jY=!1}};
d3.prototype.da=function(L){this.tG(L);if(L.deltaX==0&&L.deltaY==0)return;var C=new q("mouse",!0);C.action="scroll";
C.rn=L.ctrlKey;this.qw(L,C);this.B(C)};d3.prototype.a45=function(L){B.ZS(L);var C=L.sourceCapabilities;
if(C)C=C.firesTouchEvents;if(C){var U=new q("mouse",!0);this.qw(L,U);U.action="rdown";this.B(U);U.action="rup";
this.B(U)}};d3.prototype.mh=function(L){var C=this.d6,U=B.M(),E=[];for(var H=0;H<C.length;H++){var Y=E[H]=B.K7(C[H],this.ln);
Y.x*=U;Y.y*=U}var z=new q("mouse",!0);z.action=L;z.uy=E;this.B(z)};d3.prototype.qw=function(L,C,U){var E=this.d6.length!=0;
if(C.action!="up"){var Y=B.M();if(U==null)U=B.K7(L,this.ln);this.aN=C.CR={x:Y*U.x,y:Y*U.y,X4:E};var z=B.K7(L,document.body);
C.CR._5=z.x;C.CR.x0=z.y}else this.aN=C.CR={x:this.aN.x,y:this.aN.y,X4:E};C.CR.SB=.5;if(L.pressure!=null&&L.pressure!=0)C.CR.SB=L.pressure;
if(L.pointerType=="mouse")C.CR.SB*=2;if(L.deltaX!=null){var r=L.deltaMode==0?1:40;C.Vm=new hZ(L.deltaX*r,L.deltaY*r)}};
d3.prototype.hU=function(L,C){this.us=L};d3.prototype.jn=function(L){this.tt();this.L9()};d3.prototype.AU=function(L,C){if(L<=0||C<=0)return;
this.aU=L;this.fg=C;var U=this._u,E=B.M();U.z.e4.d=Math.floor(L*E);U.z.e4.v=Math.floor(C*E);B.wS(this.Vb,L,C);
B.wS(this.Uk,L,C);B.wS(t.zz(),L,C);if(U.z.S==0)U.z.S=W.mZ.W3(U.d,U.v,L*E,C*E);this.L9()};d3.prototype.tt=function(){var L=this.ln.firstChild;
if(!t.i8&&L==t.zz()||t.i8&&L==this.Vb)this.ln.removeChild(L);var C=t.i8?t.zz():this.Vb;if(!B.DW(C))this.ln.appendChild(C)};
d3.prototype.L9=function(){if(t.i8!=this.Wt){this.Bi=0;this.acQ=""}this.Wt=t.i8;if(this.us==null)return;
if(t.i8)this.amC();else this.AN();var L=this._u;this.Bi=L.z.S;this.acQ=JSON.stringify(L.z.NT)};d3.prototype.amC=function(){if(t.i8&&d3.a7a==null)d3.a7a=new d3.mc(!1);
if(t.i8&&d3.aii==null)d3.aii=[new d3.mc(!0,2),new d3.mc(!0,8),new d3.mc(!0,32),new d3.mc(!0,128)];var L=this._u,k,Q=0;
if(L.kl==null)return;var C=L.z,U=C.e4.d,E=C.e4.v,Y=t.vU;this.e4.clearRect(0,0,U,E);var z=this.Rk(L);
if(C.Bh==null)C.Bh=new t.Ry(U,E);if(z)C.Bh.set(this.Vb);else{t.RV(C.Bh);t.oL(1)}var r=C.Q6(0,0),p=new c0;
p.scale(U,E);p.concat(C.WF(!0));p.scale(1/L.d,1/L.v);var T=[p.R,p.O,0,p.Z9,p.J2,0,p.Yt,p.rv,1];if(d3.acf==null)d3.acf=new Float32Array(4*1024);
var P=[0,0,0,0],b=d3.acf;if(L.add.artd){b.fill(0);P=d3.qo(L);var K=L.d,h=L.v,v=0;for(var H=0;H<L.N.length;
H++){var x=L.N[H],O=x.add.artb;if(O==null||!x.rK())continue;var y=x.kg();b[Q]=y.x/K;b[Q+1]=y.y/h;b[Q+2]=y.d/K;
b[Q+3]=y.v/h;Q+=4;if(Q==b.length)break}if(Q>2*4)v++;if(Q>8*4)v++;if(Q>32*4)v++;k=d3.aii[v];b=new Float32Array(b.buffer,0,[2,8,32,128][v]*4)}else k=d3.a7a;
t.N6(U,E);t.oL(0);t.N6(U,E);k.jd();k.Rt(C.Bh.W5,L.kl.W5,new Float32Array(T),new Float32Array([U/8,E/8,r.x/U,r.y/E]),L.d,L.v,1/L.z.S,U,E,new Float32Array(P),b,new Float32Array(c.hS.t$(c.hS._3(C.NT))));
Y.drawArrays(Y.TRIANGLES,0,6)};d3.qo=function(L){var C=L.add.artd.canvasColor;if(C==null)return[0,0,0,0];
return d3.a7J(C)};d3.a7J=function(L){var C=c.W.Lt(L.v),U=[C.h/255,C.P/255,C.O/255,1];for(var H=0;H<4;
H++)U[H]=Math.min(1,U[H]);return U};d3.CV=function(L,C){var U=L[2]*255;if(t.i8)U=C?0:Math.max(1,U);return"rgba("+L[0]*255+","+L[1]*255+","+U+","+L[3]+")"};
d3._U=function(L){if(t.i8)for(var H=0;H<L.length;H+=4){if(L[H+2]==0)L[H+2]=3}};d3.prototype.AN=function(){var L=this._u;
if(L.buffer==null)return;var C=L.z,U=C.e4,E=U.d,Y=U.v,z=new _(0,0,L.d,L.v);this.JQ.clearRect(0,0,E,Y);
this.e4.clearRect(0,0,E,Y);var r=C.WF(!0),p=r.clone();p.G$();if(L.add.artd==null){this.e4.save();var T=p.Om(new hZ(0,0));
p.translate(-T.x,-T.y);this.e4.translate(Math.round(T.x),Math.round(T.y));this.e4.fillStyle=this.Ep;
this.oj(c.a.kG(z),p,this.e4);this.e4.fill();this.e4.restore()}else{this.e4.fillStyle=d3.CV(d3.qo(L));
this.e4.fillRect(0,0,E,Y);this.e4.save();this.e4.setTransform(p.R,p.O,p.Z9,p.J2,p.Yt,p.rv);var k=L.root.children;
for(var H=0;H<k.length;H++){var P=k[H].$;if(P.add.artb==null||!P.rK())continue;var b=P.kg(),Q=P.wZ();
if(Q!=0)continue;this.e4.fillStyle="white";this.e4.fillRect(b.x,b.y,b.d,b.v)}this.e4.restore()}if(C.Ir.length!=U.X()){C.Ir=c.F(U.X());
C.uF=c.F(U.X()*4)}C.uF.fill(0);c.scale.ank(L.buffer,z,r,C.uF,U);if(C.NT[0]+C.NT[1]+C.NT[2]!=3)c.hS.ld(C.uF,C.uF,c.hS._3(C.NT));
this.JQ.putImageData(new ImageData(new Uint8ClampedArray(C.uF.buffer),U.d,U.v),0,0);this.e4.drawImage(this.Uk,0,0);
this.e4.getImageData(0,0,1,1);this.Rk(L)};d3.prototype.Rk=function(L){var C=L.z,U=C.NT[0]+C.NT[1]+C.NT[2],E=!1,Y=[];
for(var H=0;H<L.C.length;H++){var z=L.N[L.C[H]];if(z==null)continue;var r=z.yQ;if(r!=1&&r!=3)continue;
var p=r==1?z.xV():z.iC(L).r;if(p.mM)Y.push(p)}for(var H=0;H<L.vI.length;H++)if(L.vI[H].mM)Y.push(L.vI[H]);
for(var H=0;H<Y.length;H++){var p=Y[H];this.pb(p,C,Y.length==1&&U==0?2:1,p.color,p.Cc);E=!0}var T=this.us;
E=this.ac7(L,this.e4,C)||E;if(L.t&&T.Fg&&T.qA.Kf){this.pb(L.t,C,0,0,null);E=!0}return E};d3.prototype.pb=function(L,C,U,E,Y){var z=0,Q,K;
if(Y)z=Math.round(Y.O)<<16|Math.round(Y.P)<<8|Math.round(Y.h);var r=C.WF(!0),p=C.e4,T=new _(0,0,C._u.d,C._u.v);
if(C.Ir.length!=p.X()){C.Ir=c.F(p.X());C.uF=c.F(p.X()*4)}C.Ir.fill(E);C.uF.fill(0);var k=L.channel,P=L.rect;
c.scale.J(k,P,r,C.Ir,p);if(U==0)c.t.a8j(C.Ir,C.uF,p,p);else c.t.an5(C.Ir,C.uF,p,p,U,z);d3._U(C.uF);var b=new ImageData(new Uint8ClampedArray(C.uF.buffer),p.d,p.v);
this.JQ.putImageData(b,0,0);this.e4.save();if(U==0){Q=p.clone();Q.WW(-1,-1);K=new c0}else{Q=new _(0,0,T.d,T.v);
K=r.clone();K.G$()}this.oj(c.a.kG(Q),K,this.e4);this.e4.clip();this.e4.drawImage(this.Uk,0,0);this.e4.restore()};
d3.prototype.ac7=function(L,C,U){var E=L.K.R9!=null||L.K.yw!=null||L.K.h4!=null||L.K.QX.length!=0||L.K.jB.length!=0,Y=this.us,z=Y.qA,r=c5.cK[Y.WT],p=Math.round(12*B.M()),T=p/L.z.S,k=U.WF(!0);
k.G$();C.save();C.setTransform(k.R,k.O,k.Z9,k.J2,k.Yt,k.rv);if(L.add.artd){var P=d3.qo(L)[0];P=P<.5?P+.5:P-.5;
P=""+Math.round(P*255).toString(16);while(P.length<2)P="0"+P;C.fillStyle="#"+P+P+P;C.font=T+"px sans-serif";
for(var H=0;H<L.N.length;H++){var b=L.N[H];if(b.add.artb==null||!b.rK())continue;var Q=b.kg();C.fillText(b.getName(),Q.x,Q.y-6/U.S);
E=!0}}var K=d3.CV([.1,.5,1,1]),h=d3.CV([1,1,1,1]);if(Y.Fg&&z.Jd){C.fillStyle=C.strokeStyle=K;C.lineWidth=1.5/U.S;
var x=L.zG(),O=x[0],y=x[1];for(var v=0;v<y.length;v++){var b=O[y[v]],i=b.add.vmsk,D=i.n,I=c.a.$x(D);
this.oj(I,null,C);C.stroke();E=!0;var m=3*B.M()/U.S,f=D.length-3;for(var H=0;H<i.Pw.length;H++){var A=c.Y.VZ(D,i.Pw[H]);
if(A==null)continue;var d=A.x,g=A.y;C.beginPath();var X=H==0;if(i.ks)X=!X;if(X){C.moveTo(d-m,g-m);C.lineTo(d+m,g+m);
C.moveTo(d-m,g+m);C.lineTo(d+m,g-m);C.stroke()}else{C.arc(d,g,m*1,0,2*Math.PI);C.fill()}E=!0}if(L.C.length!=1)continue;
var n=-1;for(var H=0;H<D.length;H++){if(D[H].type>5)continue;if(D[H].type==0||D[H].type==3){if(D[H].ZZ!=-1)n++;
continue}if(i.C.indexOf(n)!=-1){var d=D[H].D.x,g=D[H].D.y;C.fillRect(d-m*.8,g-m*.8,2*m*.8,2*m*.8)}if(i.f8.indexOf(H)!=-1){var R=[D[H].D];
C.beginPath();C.moveTo(D[H].OT.x,D[H].OT.y);C.lineTo(D[H].D.x,D[H].D.y);C.lineTo(D[H].SC.x,D[H].SC.y);
C.stroke();if(!D[H].D.cg(D[H].OT))R.push(D[H].OT);if(!D[H].D.cg(D[H].SC))R.push(D[H].SC);for(var l=0;
l<R.length;l++){var A=R[l],d=A.x,g=A.y;if(l==0&&(D[H].type==2||D[H].type==5))C.fillRect(d-1.2*m,g-1.2*m,2.4*m,2.4*m);
else{C.beginPath();C.arc(d,g,m*1.2,0,2*Math.PI);C.fill();if(l!=0)C.fillStyle=h;C.beginPath();C.arc(d,g,m*.8,0,2*Math.PI);
C.fill();C.fillStyle=K}}}E=!0}}}C.fillStyle=C.strokeStyle=d3.CV([0,0,0,1],!0);C.lineWidth=1/U.S;var w=new c0(1,0,0,1,.5/U.S,.5/U.S);
if(L.K.R9){this.oj(L.K.R9,null,C);C.fill()}if(L.K.yw){this.oj(L.K.yw,w,C);C.stroke()}for(var V in L.K.bb)if(L.K.bb[V].yw){this.oj(L.K.bb[V].yw,null,C);
C.stroke();E=!0}C.beginPath();var m=(4*B.M()+.5)/U.S,F=L.K.yI;for(var H=0;H<F.length;H+=2){E=!0;var d=F[H],g=F[H+1];
C.rect(d-m,g-m,2*m,2*m)}C.stroke();var F=L.K.abS;C.beginPath();var m=4*B.M()/U.S;for(var H=0;H<F.length;
H+=2){E=!0;var d=F[H],g=F[H+1];C.moveTo(d+m,g);C.arc(d,g,m,0,2*Math.PI)}C.fill();var F=L.K.lG;C.fillStyle=d3.CV([1,1,1,1]);
C.beginPath();var m=6*B.M()/U.S;for(var H=0;H<F.length;H+=2){E=!0;var d=F[H],g=F[H+1];C.moveTo(d+m,g);
C.arc(d,g,m,0,2*Math.PI)}C.fill();var m=4*B.M()/U.S;for(var H=0;H<F.length;H+=2){E=!0;var d=F[H],g=F[H+1];
C.fillStyle=d3.CV(L.K.jZ.indexOf(H>>>1)!=-1?[0,.6,1,1]:[.7,.7,.7,1]);C.beginPath();C.moveTo(d+m,g);C.arc(d,g,m,0,2*Math.PI);
C.fill()}if(L.K.QX.length!=0){for(var H=0;H<L.K.QX.length;H++){var Z=L.K.QX[H],M=Z[1];C.putImageData(new ImageData(new Uint8ClampedArray(Z[0].buffer),M.d,M.v),M.x,M.y)}}var a=.5/U.S;
C.lineWidth=1/U.S;if(L.K.Q0){E=!0;var e=L.K.Q0,N=e.ru,I={Z:[],c:[]};for(var H=0;H<e.PL.length;H++)c.a.concat(I,c.a.kG(e.PL[H]));
I.c=I.c.concat(N);for(var H=0;H<N.length;H+=4){I.Z.push("M","L")}for(var H=0;H<I.c.length;H++){I.c[H]+=a}C.strokeStyle=d3.CV([.9,.2,.2,1]);
this.oj(I,null,C);C.stroke();var J=B.M(),s=2/U.S;C.font=T*.9+"px sans-serif";for(var H=0;H<N.length;
H+=4){var d=N[H],g=N[H+1],f5=N[H+2],dx=N[H+3],fq=Math.sqrt((dx-g)*(dx-g)+(f5-d)*(f5-d));fq=c.Mb.S9(fq,L._Q,Y,g==dx?L.d:L.v);
var i9=new hZ((d+f5)/2,(g+dx)/2);C.fillStyle=d3.CV([.9,.2,.2,1]);var e8=C.measureText(fq).width;C.fillRect(i9.x-e8/2-s*J,i9.y-3.5*s*J,e8+2*s*J,7*s*J);
C.fillStyle=d3.CV([1,1,1,1]);C.save();C.translate(i9.x-e8/2,i9.y+2*s*J);C.scale(.1,.1);C.font=T*9+"px sans-serif";
C.fillText(fq,0,0);C.restore()}}if(Y.Fg){if(z.SY){var S=c.Mb.nF(z.ST,L,z.Kw),fs=S;if(z.Kw==4)fs*=L.v/L.d;
this.Wg(L,C,S,fs,1,z.nt);E=!0}if(z.Tf&&L.z.S>7){this.Wg(L,C,1,1,.5,z.nt);E=!0}if(z.Pr){var bz=Math.max(L.z.e4.d,L.z.e4.v)/L.z.S;
bz=Math.max(Math.max(L.d,L.v)*2,bz);C.beginPath();C.strokeStyle=d3.CV([0,1,1,1]);for(var H=0;H<L.Pr[0].length;
H++){var g6=Math.round(L.Pr[0][H])+a;C.moveTo(g6,-bz);C.lineTo(g6,bz)}for(var H=0;H<L.Pr[1].length;H++){var al=Math.round(L.Pr[1][H])+a;
C.moveTo(-bz,al);C.lineTo(bz,al)}C.stroke()}var bj=L.Oy;if(z.Oy&&bj.length!=0){C.font=T*.8+"px sans-serif";
var eN=[],dk=[];for(var H=0;H<bj.length;H++){var hj=W.l1.Rq(bj,H);eN.push(hj);if(L.Vg.indexOf(H)!=-1)dk.push(hj)}eN.reverse();
var iN=Date.now();eN=c.rect.hO([0,0,L.d,L.v],eN);for(var l=0;l<2;l++)for(var H=0;H<eN.length;H++){var dK=eN[H],n=dK[4],ch=n!=null?bj[n]:null;
if(ch&&l==0||ch==null&&l==1)continue;var d=Math.round(dK[0]),g=Math.round(dK[1]),f5=Math.round(dK[2]),dx=Math.round(dK[3]);
C.strokeStyle=C.fillStyle=d3.CV(ch?[0,.7,.7,1]:[.8,.8,.8,1]);C.strokeRect(d+a,g+a,f5-d,dx-g);var hP=H+1,d2=C.measureText(hP),e8=d2.width;
C.fillRect(d,g,e8+T/2,T);C.fillStyle=d3.CV([1,1,1,1]);C.fillText(hP,d+T/4,g+T*.8)}var s=2/L.z.S,hr=2*s;
for(var H=0;H<dk.length;H++){var dK=dk[H],d=Math.round(dK[0]),g=Math.round(dK[1]),f5=Math.round(dK[2]),dx=Math.round(dK[3]);
C.strokeStyle=C.fillStyle=d3.CV([0,.7,.7,1]);C.strokeRect(d+a,g+a,f5-d,dx-g);var fv=[d,g,f5,g,f5,dx,d,dx];
for(var f3=0;f3<fv.length;f3+=2){var g6=fv[f3],al=fv[f3+1],dp=fv[f3+2&7],go=fv[f3+3&7];C.fillRect(g6-s,al-s,hr,hr);
C.fillRect(Math.round((g6+dp)/2)-s,Math.round((al+go)/2)-s,hr,hr)}}E=!0}}C.strokeStyle=d3.CV([1,0,0,1]);
if(L.K.h4){this.oj(L.K.h4,w,C);C.stroke()}C.restore();if(Y.Wr){if(L.z.lQ==null||L.z.lQ.width!=L.z.e4.d||L.z.GU.height!=L.z.e4.v){L.z.lQ=C.createImageData(L.z.e4.d,c.Mb.j9);
L.z.GU=C.createImageData(c.Mb.j9,L.z.e4.v)}var r=c5.cK[Y.WT],U=L.z,d6=U.S*L.d/2,iB=U.S*L.v/2,hS=[1,L._Q,L._Q/2.54,L._Q/25.4,L.d/100][z.Ca],eF=U.S,bQ=U.g.clone(),iP=U.NN;
U.S*=hS;U.g.x+=d6*hS-d6;U.g.y+=iB*hS-iB;U.NN=0;c.Mb.a0I(U,r["--text-color"],r["--bg-input"],Math.floor(this.aN.x),Math.floor(this.aN.y));
U.S=eF;U.g=bQ;U.NN=iP;var d8=fe.YQ(U.S,d3.CV([1,1,1,1]));d3._U(L.z.GU.data);d3._U(L.z.lQ.data);C.putImageData(L.z.GU,0,0);
C.putImageData(L.z.lQ,0,0);C.putImageData(d8,0,L.z.e4.v-d8.height)}if(L.K.jB.length!=0){for(var H=0;
H<L.K.jB.length;H++){var Z=L.K.jB[H],M=Z[1];C.putImageData(new ImageData(new Uint8ClampedArray(Z[0].buffer),M.d,M.v),M.x,M.y)}}return E||Y.Wr||L.Pr[0].length+L.Pr[1].length>0};
d3.prototype.Wg=function(L,C,U,E,Y,z){while(U*L.z.S<4){U*=2;E*=2}var r=L.d,p=L.v,T=.5/L.z.S;C.strokeStyle=d3.CV([.5,.5,.5,Y],!0);
C.save();C.rect(0,0,r,p);C.clip();C.beginPath();for(var k=0;k<=r;k+=U){C.moveTo(k+T,0);C.lineTo(k+T,p)}if(z==0){for(var P=0;
P<=p;P+=E){C.moveTo(0,P+T);C.lineTo(r,P+T)}}else{E*=Math.sqrt(4/3);var b=E*Math.floor(r/E),Q=r*(E/(2*U));
for(var P=-b;P<=p+b;P+=E){C.moveTo(0,P);C.lineTo(r,P-Q);C.moveTo(0,P);C.lineTo(r,P+Q)}}C.stroke();C.restore()};
d3.prototype.oj=function(L,C,U){U.beginPath();var E=c.a.clone(L);if(C)c.a.J(E.c,C,E.c);Typr.U.pathToContext({cmds:E.Z,crds:E.c},U)};
d3.mc=function(L,C){t.JF.call(this);this.a46=L;var U="\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"+(L?"uniform vec4 bgClr;  uniform vec4 ars["+C+"]; ":"")+"\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"+t.w_.uu+"\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); "+(L?"\t\t\t\t\tbool inr = false; vec4 BG = bgClr; \t\t\t\t\tfor(int i=0; i<"+C+"; 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=vec4(1.0,1.0,1.0,1.0); }\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}",E="\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.Rn(U,E)};d3.mc.prototype=new t.JF;d3.mc.prototype.Rt=function(L,C,U,E,Y,z,r,p,T,k,P,b){this.U9("tmat gsize source target contSizeZoom cnvSize bgClr ars ctrn".split(" "));
var Q=t.vU,K=this.Uf;Q.uniformMatrix3fv(K.tmat,!1,U);Q.uniform4fv(K.gsize,E);Q.uniform3f(K.contSizeZoom,Y,z,r);
Q.uniform2f(K.cnvSize,p,T);Q.uniformMatrix4fv(K.ctrn,!1,b);if(this.a46){Q.uniform4fv(K.ars,P);Q.uniform4fv(K.bgClr,k)}Q.uniform1i(K.source,0);
Q.uniform1i(K.target,1);Q.activeTexture(Q.TEXTURE0);Q.bindTexture(Q.TEXTURE_2D,L);Q.activeTexture(Q.TEXTURE1);
Q.bindTexture(Q.TEXTURE_2D,C);Q.activeTexture(Q.TEXTURE0)};function dU(){hQ.call(this,[9,7],!1,null,hQ.Du.a6b);
this.ln.setAttribute("style","min-width:240px;");this.hN=null;this.NE=-1;this.amF=[];this.Y8=B.w("div","scrollable");
this.Y8.style.height="160px";this.ln.appendChild(this.Y8);this._I=B.w("div","lpfoot");this.ln.appendChild(this._I);
this.sJ=[];var L=["reload","lrs/newlayer","lrs/bin"],C=[[5,10],[5,3],[5,4]];for(var H=0;H<L.length;H++){var U=new br("<img src=\""+PIMG[L[H]]+"\" class=\"gsicon\" />",!1,C[H]);
U.k("click",this.a8r,this);this._I.appendChild(U.j);this.sJ.push(U)}}dU.prototype=new hQ("");dU.prototype.ve=function(L){var C=new q(B.E.A,!0);
C.data=L;C.m=W.tl;this.B(C)};dU.prototype.a8r=function(L){var H=this.sJ.indexOf(L.currentTarget);if(H!=1)if(this.NE==-1)return;
this.ve({e:["updLC","addLC","delLC"][H],Oi:this.NE});if(H==2)this.NE=-1};dU.prototype.f=function(){hQ.prototype.f.call(this);
for(var H=0;H<this.sJ.length;H++)this.sJ[H].f()};dU.prototype.jn=function(L){if(L==null)B.QS(this.ln,"disabled");
else B.gy(this.ln,"disabled");this.hN=L;B.CF(this.Y8);if(L==null)return;var C=L.Tv.lastAppliedComp?L.Tv.lastAppliedComp.v:0,U=L.Tv.list.v.slice(0);
U.unshift({v:{Nm:{v:"Last Document State"},compID:{v:0},capturedInfo:{v:0}}});for(var H=0;H<U.length;
H++){var E=U[H].v,Y=new g5(E.Nm.v,E.compID.v,E.capturedInfo.v,C,this.NE);Y.k("activate",this.np,this);
Y.parent=this;this.Y8.appendChild(Y.j);this.amF.push(Y)}};dU.prototype.np=function(L){this.NE=L.currentTarget.Oi;
this.jn(this.hN)};function g5(L,H,C,U,E){gG.call(this);this.Oi=H;this.j=B.w("div","head listitem"+(H==E?" selected":""));
var Y=H==U,z=new br(Y?"\u2713":"\u2014");if(Y)z.m0();this.j.appendChild(z.j);z.k("click",this.gM,this);
var r=this.Qe=B.w("span");r.textContent=L;this.j.appendChild(r);this.sJ=[];if(H!=0){this.j.addEventListener("mouseup",this.np.bind(this),!1);
this.a4i=B.w("span","headR");this.j.appendChild(this.a4i);var p=["lrs/eye","pos","lrs/fx"],T=["Visibility","Position","Appearance"];
for(var k=0;k<p.length;k++){var P=new br("<img src=\""+PIMG[p[k]]+"\" class=\"autoscale gsicon\" />",!1,T[k]);
if((C>>k&1)==0)P.j.setAttribute("style","opacity:0.3");P.k("click",this.ag9,this);this.a4i.appendChild(P.j);
this.sJ.push(P)}}}g5.prototype=new gG;g5.prototype.np=function(L){if(L.target!=this.Qe&&L.target!=this.j)return;
if(L.detail==1)this.B(new q("activate",!1));else{var C=new hQ.Tr(this.Qe,this.AR.bind(this))}};g5.prototype.ag9=function(L){var H=this.sJ.indexOf(L.currentTarget);
this.ve({e:"editLC",a9$:H,Oi:this.Oi})};g5.prototype.AR=function(L){this.ve({e:"editLC",Eh:L,Oi:this.Oi})};
g5.prototype.gM=function(L){this.ve({e:"setLC",Oi:this.Oi})};g5.prototype.ve=function(L){var C=new q(B.E.A,!0);
C.data=L;C.m=W.tl;this.B(C)};function fY(){hQ.call(this,[9,11],!1,null,hQ.Du.a9U);var L=B.w("div","padded");
L.setAttribute("style","min-width:15em");this.ln.appendChild(L);var C=B.w("div");L.appendChild(C);C.setAttribute("style","cursor:grab;");
this.UF=B.w("canvas");this.UF.width=100;C.appendChild(this.UF);B.zC(this.UF);B.Vv(this.UF,this.jV.bind(this));
this.hP=new dC(null,0,W.mZ.js.length-1);this.hP.k(B.E.L,this.abX,this);L.appendChild(this.hP.j);this.ajJ=this.y3.bind(this);
this.a3G=this.Cj.bind(this);this.L2=null}fY.prototype=new hQ("");fY.prototype.AU=function(L,C){this.L9()};
fY.prototype.abX=function(L){var C=this.hP.u(),U=this.L2,E=W.mZ.js[W.mZ.js.length-1-C],Y=new q(B.E.A,!0);
Y.m=W.tJ;Y.data={e:"zoom",S:E};this.B(Y)};fY.prototype.jV=function(L){if(this.L2==null)return;B.z2(window,this.ajJ);
B.Yp(window,this.a3G)};fY.prototype.y3=function(L){var C=B.K7(L,this.UF),U=this.L2,E=this.UF.width,Y=this.UF.height,z=(C.x*B.M()-E/2)/E,r=(C.y*B.M()-Y/2)/Y,p=B.M()*U.z.S,T=Math.round(-U.z.S*U.d*z),k=Math.round(-U.z.S*U.v*r);
W.gP.iq(U,T,k)};fY.prototype.Cj=function(L){B.dZ(window,this.ajJ);B.EW(window,this.a3G)};fY.prototype.jn=function(L){if(L==null&&this.L2!=null)this.UF.width=100;
this.L2=L;this.L9()};fY.prototype.L9=function(){var L=this.L2,E=0;if(L==null||L.z.S==0)return;var C=L.z;
if(!B.DW(this.ln))return;this.hP.T(W.mZ.js.length-1-W.mZ.wd(C.S));var U=300*B.M(),Y=[L.E0(),new _(0,0,L.d,L.v)];
c.cf(Y);while(Math.max(Y[E+1].d,Y[E+1].v)>U){E+=2}var z=Y[E],r=Y[E+1],p=r.d,T=r.v,k=this.UF;k.width=p;
k.height=T;B.IO(k,p,T);var P=k.getContext("2d"),b=P.createImageData(p,T);c.hL(z,b.data);P.putImageData(b,0,0);
var Q=C.e4,K=C.sQ(Q.x,Q.y),h=C.sQ(Q.x+Q.d,Q.y+Q.v),x=p/L.d;P.scale(x,x);P.lineWidth=4/x;P.strokeStyle="#ff0000";
P.strokeRect(K.x,K.y,h.x-K.x,h.y-K.y)};fY.prototype.hU=function(L,C){};fY.prototype.tt=function(){this.L9()};
function f6(L,C){if(L==null){hQ.call(this);return}hQ.call(this,L.name,!1,L.icon,C);var U=this.a4b=B.w("iframe","padded");
U.setAttribute("src",L.url);U.setAttribute("style","width:"+L.width+"px; height:"+L.height+"px");this.ln.appendChild(U)}f6.prototype=new hQ("");
f6.prototype.Yk=function(L){if(B.DW(this.a4b))this.a4b.contentWindow.postMessage(L,"*")};function it(){hQ.call(this,[9,12],!1,null,hQ.Du.No);
this.OY=null;this.Ka=new cd(W.Sw);this.Ka.parent=this;var L=B.w("div","padded");L.setAttribute("style","width:20em");
this.ln.appendChild(L);L.appendChild(this.Ka.Ck)}it.prototype=new hQ("");it.prototype.tt=function(){this.Ka.LP(this.OY.IN)};
it.prototype.hU=function(L,C){this.OY=L;if(C==c_.oI||C==c_.No)this.Ka.LP(L.IN)};it.prototype.AU=function(L,C){this.Ka.a5C(this.OY.Yd)};
it.prototype.f=function(){hQ.prototype.f.call(this);this.Ka.f()};function fm(){gG.call(this);this.m=0;
this.yH=null;this.j=B.w("div","toolconf");this.Ka=null;this.Xj=null;this.body=new B.w("div","body")}fm.prototype=new gG;
fm.prototype.a4L=function(L,C){this.m=L;this.yH=C;if(W.zb[L]){var U=this.Ka=new cd(L);this.j.appendChild(U.j);
U.parent=this}else{this.Xj=B.w("div");this.j.appendChild(this.Xj)}this.j.appendChild(this.body);this.f()};
fm.prototype.Tb=function(L,C){};fm.prototype.wt=function(L){};fm.prototype.hU=function(L,C){if(C==c_.oI||C==c_.No)if(this.Ka)this.Ka.LP(L.IN)};
fm.prototype.xx=function(L){};fm.prototype.f=function(){if(this.Ka)this.Ka.f();else this.Xj.innerHTML=B.lp(this.yH,null,"toolicon");
this.YU()};fm.prototype.YU=function(){};function av(L){fm.call(this);if(L==null)return;this.OY=null;
this.Vr={};for(var H=0;H<L.length;H++){var C=L[H],U=null;if(C=="brush"){U=new gx}if(C=="bmode"){U=new bS([12,19,0],gz.w4,!1,gz.RY)}if(C=="bmode0"){U=new bS([12,19,0],gz.w4.slice(23),!1)}if(C=="emode"){U=new bS([12,36],[[9,3],[10,38]])}if(C=="opacity"){U=new cU([12,0],0,100,"%");
U.T(100)}if(C=="flow"){U=new cU([12,63],0,100,"%");U.T(100)}if(C=="smth"){U=new cU([19,3,0],0,100,"%");
U.T(0)}if(C=="samp"){U=new bS("Sampling",["Brush Center","Start of Stroke","Background Color"])}if(C=="wconf"){U=new gw;
U.T([40,!0,!0])}if(C=="strn"){U=new cU([12,64],1,100,"%");U.T(50)}if(C=="smode"){U=new bS([12,36],[[19,7,0],[19,7,1]]);
U.T(1)}if(C=="pdetail"){U=new dh([12,65]);U.m0()}if(C=="rng"){U=new bS([12,12],[[19,6,0],[19,6,1],[19,6,2]]);
U.T(1)}if(C=="expo"){U=new cU([12,5],0,100,"%");U.T(50)}if(C=="algnd"){U=new dh([12,75]);U.T(!1)}if(C=="sfrom"){U=new bS([12,70],[[17,1],[17,3],[17,0]])}if(C=="alt"){U=new b9(null,["Alt"],!0,["Select Source"])}if(C=="qsmode"){U=new dr([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(C=="redge"){U=new br([7,11],!1,null,!0)}if(C=="setop"){U=new du}if(C=="patch"){U=new dr(null,[[12,70],[12,71]])}if(C=="prsr"){U=new b9(null,["<img src=\""+PIMG.prsO+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.prsS+"\" class=\"autoscale gsicon\" />"],!0,[[15,9,0],[15,9,1]]);
U.T([!1,!0])}U.parent=this;this.body.appendChild(U.j);this.Vr[C]=U;if(C=="brush")U.k(B.E.L,this.f6,this);
else if(C=="redge")U.k("click",this.lo,this);else U.k(B.E.L,this.A7,this)}}av.prototype=new fm;av.prototype.Tb=function(L,C){L=L[1];
var U=this.Vr;if(L.Md)U.bmode.T(gz.lV.indexOf(L.Md.v.BlnM));if(L.Opct)U.opacity.T(L.Opct.v);if(L.flow)U.flow.T(L.flow.v);
if(L.Brsh)U.brush.T(L,C.lN.sd,C.lN.wY);if(L.FrgC){var E=c.W.Lt(L.FrgC.v),Y=new q(B.E.l,!0);Y.data={e:B.U.MP,wm:c_.GM,ev:0,G:E.h<<16|E.P<<8|E.O};
this.B(Y)}this.f6();this.A7()};av.prototype.wt=function(){if(W.zb[this.m]==null)return null;var L=this.Vr,C=JSON.parse(JSON.stringify(L.brush.u()));
C.classID=W.zb[this.m][1][0];if(L.bmode)C.Md={t:"enum",v:{BlnM:gz.lV[L.bmode.u()]}};if(L.opacity)C.Opct={t:"long",v:L.opacity.u()};
if(L.flow)C.flow={t:"long",v:L.flow.u()};var U=this.OY.yx;U={h:U>>>16,P:U>>>8&255,O:U&255};C.FrgC={t:"Objc",v:c.W._b(U)};
return["Brush Preset "+C.Brsh.v.Dmtr.v.val,C]};av.prototype.lo=function(){var L=new q(B.E.l,!0);L.data={e:B.U.Q1,k5:"redge"};
this.B(L)};av.prototype.YU=function(){for(var L in this.Vr)this.Vr[L].f()};av.prototype.xx=function(L){if(L.a0R=="showBrushOpts"){this.Vr.brush.wb(L.H3.x,L.H3.y)}for(var C in L.Lp){var U=L.Lp[C];
if(C!="qsmode")U*=100;if(this.Vr[C])this.Vr[C].T(U)}};av.prototype.hU=function(L,C){fm.prototype.hU.call(this,L,C);
this.OY=L;var U=this.Vr.brush;if(U==null)return;if(C==c_.oI||C==c_.Sw)U.LP(L.lN);if(C==c_.qy){U.T(L.lN.Fp,L.lN.sd,L.lN.wY)}};
av.prototype.f6=function(){var L=new q(B.E.l,!0);L.data={e:B.U.MP,wm:c_.qy,dp:this.Vr.brush.u()};this.B(L)};
av.prototype.A7=function(){var L=new q(B.E.l,!0);L.data={e:B.U.ca,m:this.m};for(var C in this.Vr){if(C=="brush"||C=="redge")continue;
var U=this.Vr[C].u();if(["opacity","flow","smth","strn","expo"].indexOf(C)!=-1)L.data[C]=U/100;else if(C=="bmode")L.data.bmode=gz.w0[U];
else if(C=="bmode0")L.data.bmode=gz.w0[23+U];else L.data[C]=U}this.B(L)};function dY(L){fm.call(this);
if(L)return;this.data={e:B.U.ca,Ks:"front",hY:0,dH:[16,!0,!0],ra:{am:0,x:1,y:1}};this.j3=new du;this.body.appendChild(this.j3.j);
this.j3.k(B.E.L,this.We,this);this.$q=new cU([7,6],0,100," px");this.$q.parent=this;this.$q.T(0);this.body.appendChild(this.$q.j);
this.$q.k(B.E.L,this.We,this);this.cJ=new br([7,11],!1,null,!0);this.body.appendChild(this.cJ.j);this.cJ.k("click",this.lo,this)}dY.prototype=new fm;
dY.prototype.xx=function(L){if(L.Ks!=null)this.j3.T(L.Ks);else if(L.XO){var C=this.data;C.Ks=L.XO.Ks;
this.j3.T(C.Ks);C.hY=L.XO.hY;this.$q.T(C.hY);C.dH=L.XO.dH;if(this.pj)this.pj.T(C.dH)}else{var U=dY.UB;
if(U==null){var E=hN.fO(!0);U=dY.UB=new aq(E.items,E.fp)}U.f();U.parent=this;U.update(L.Ru,L.us);var Y=new q(B.E.l,!0);
Y.data={e:B.U.Ww,f0:U,x:L.q0._5+2,y:L.q0.x0+1};this.B(Y)}};dY.prototype.YU=function(){this.$q.f();this.j3.f();
this.cJ.f()};dY.prototype.lo=function(){var L=new q(B.E.l,!0);L.data={e:B.U.Q1,k5:"redge"};this.B(L)};
dY.prototype.We=function(){var L=new q(B.E.l,!0);this.data.m=this.m;this.data.Ks=this.j3.u();this.data.hY=this.$q.u();
L.data=this.data;this.B(L)};function gZ(){av.call(this,["brush","strn"])}gZ.prototype=new av;function ih(){av.call(this,"brush bmode opacity flow smth prsr".split(" "))}ih.prototype=new av;
function gR(){av.call(this,["brush","bmode0","samp","wconf"])}gR.prototype=new av;function bo(){av.call(this,["brush"])}bo.prototype=new av;
function ec(){av.call(this,["brush","bmode","opacity","smth","prsr"])}ec.prototype=new av;function eO(){av.call(this,["brush","rng","expo"])}eO.prototype=new av;
function bx(){av.call(this,"brush bmode opacity algnd sfrom alt".split(" "))}bx.prototype=new av;function dQ(L){fm.call(this);
if(L==null)return;var C=B.w("span","fitem");this.body.appendChild(C);var U=[[17,0],[17,1],[11,12,0],[17,2]];
this.c6=[];for(var H=0;H<U.length;H++){var E=new br(U[H],!1,null,!0);this.c6.push(E);E.k("click",this.ahg,this);
if(!L||H==1)C.appendChild(E.j)}this.ra=new gX;this.ra.k(B.E.L,this.Zw,this);if(!L)this.body.appendChild(this.ra.j);
this.b0=new dh("Delete Cropped Pixels");this.b0.k(B.E.L,this.Zw,this);if(!L)this.body.appendChild(this.b0.j);
this.V2=new b6;this.V2.k("click",this.zp,this)}dQ.prototype=new fm;dQ.prototype.YU=function(){this.V2.f();
for(var H=0;H<this.c6.length;H++)this.c6[H].f();this.ra.f();this.b0.f()};dQ.prototype.xx=function(L){var C=this.V2.j;
if(L.Gw)this.body.appendChild(C);else if(this.body.contains(C))this.body.removeChild(C);if(L.ra)this.ra.T(L.ra)};
dQ.prototype.zp=function(L){var C={e:B.U.ca,m:this.m,bi:this.V2.u()?"commit":"cancel"},U=new q(B.E.l,!0);
U.data=C;this.B(U)};dQ.prototype.ahg=function(L){L.target.j.blur();var C={e:B.U.ca,m:this.m,bi:"cropby",anf:this.c6.indexOf(L.target)},U=new q(B.E.l,!0);
U.data=C;this.B(U)};dQ.prototype.Zw=function(L){var C={e:B.U.ca,m:this.m,bi:"config",FU:{zh:this.ra.u()}};
if(L.target==this.b0)C.FU.h6=this.b0.u();var U=new q(B.E.l,!0);U.data=C;this.B(U)};function cm(){dQ.call(this,!1)}cm.prototype=new dQ;
function eq(){dQ.call(this,!0)}eq.prototype=new dQ;function gK(){av.call(this,["brush","rng","expo"])}gK.prototype=new av;
function a3(){av.call(this,"brush emode opacity flow smth prsr".split(" "))}a3.prototype=new av;function cj(){av.call(this,["brush","samp","wconf"])}cj.prototype=new av;
function gL(){dY.call(this);this.ra=new gX;this.ra.k(B.E.L,this.DC,this);this.body.appendChild(this.ra.j)}gL.prototype=new dY(!0);
gL.prototype.DC=function(L){this.data.ra=this.ra.u();this.We()};gL.prototype.YU=function(){dY.prototype.YU.call(this);
this.ra.f()};function dg(){fm.call(this);this.RN=new bS([12,20],["1x1","3x3","5x5","11x11","31x31"]);
this.RN.k(B.E.L,this.A7,this);this.body.appendChild(this.RN.j)}dg.prototype=new fm;dg.prototype.A7=function(L){var C=new q(B.E.l,!0);
C.data={e:B.U.ca,m:this.m,qL:[1,3,5,11,31][this.RN.u()]};this.B(C)};dg.prototype.YU=function(){this.RN.f()};
function eR(){fm.call(this);this.dx=new cg(!1);this.dx.parent=this;this.dx.k(B.E.L,this.bV,this);this.body.appendChild(this.dx.j);
this.dx.T(JSON.parse(gM.SH.no).v);this.tg=new bS(null,gM.W.names.slice(0,5));this.tg.k(B.E.L,this.bV,this);
this.body.appendChild(this.tg.j);this.YD=new bS([12,19,0],gz.w4,null,gz.RY);this.YD.k(B.E.L,this.bV,this);
this.body.appendChild(this.YD.j);this.db=new cU([12,0],0,100,"%");this.db.parent=this;this.db.k(B.E.L,this.bV,this);
this.body.appendChild(this.db.j);this.db.T(100);this.vS=new dh([12,23,0]);this.vS.k(B.E.L,this.bV,this);
this.body.appendChild(this.vS.j);this.lT=new dh("Dither");this.lT.k(B.E.L,this.bV,this);this.body.appendChild(this.lT.j)}eR.prototype=new fm;
eR.prototype.YU=function(){this.tg.f();this.YD.f();this.db.f();this.vS.f();this.lT.f()};eR.prototype.hU=function(L,C){fm.prototype.hU.call(this,L,C);
var U=C==c_.GM;this.dx.iW(L.yx,L.ho);if(U||C==c_.SP||C==c_.oI)this.dx.LP(L.MN)};eR.prototype.bV=function(){var L=new q(B.E.l,!0);
L.data={e:B.U.ca,m:this.m};L.data.wm={W:this.dx.u(),mV:gM.W.types[this.tg.u()],ks:this.vS.gF(),a4Y:this.lT.gF(),ah7:gz.w0[this.YD.u()],u8:this.db.u()/100};
this.B(L)};function iy(){fm.call(this)}iy.prototype=new fm;function dN(){fm.call(this);var L=B.w("span","fitem");
this.body.appendChild(L);this.U1=[new cU([12,15],0,0,"\xB0"),new br("Reset",null,null,!0)];for(var H=0;
H<this.U1.length;H++){var C=this.U1[H];C.parent=this;L.appendChild(C.j);C.k(H==1?"click":B.E.L,this.au,this)}}dN.prototype=new fm;
dN.prototype.YU=function(){for(var H=0;H<this.U1.length;H++)this.U1[H].f()};dN.prototype.xx=function(L){this.U1[0].T(L.f2*180/Math.PI)};
dN.prototype.au=function(L){var C=this.U1.indexOf(L.target),U=new q(B.E.l,!0);U.data={e:B.U.ca,m:this.m,f2:C==1?0:L.target.u()*Math.PI/180};
this.B(U)};function dd(){av.call(this,["brush","algnd","sfrom","alt"])}dd.prototype=new av;function a4(){fm.call(this);
this.dK=new iM;this.dK.parent=this;this.body.appendChild(this.dK.Ky.j);this.body.appendChild(this.dK.Ho.j);
this.body.appendChild(this.dK.rh.j);var L=B.w("span","fitem");this.body.appendChild(L);L.appendChild(this.dK.uS.j);
L.appendChild(this.dK.r4.j);L.appendChild(this.dK.nV.j);this.Dy=new bS("Aa",[[22,5,0],"Sharp","Crisp","Strong","Smooth"]);
this.Dy.k(B.E.L,this.zp,this);this.body.appendChild(this.Dy.j);this.Ab=new br([11,9],!1,null,!0);this.Ab.k("click",this.a5e,this);
this.body.appendChild(this.Ab.j);this.V2=new b6;this.V2.k("click",this.zp,this)}a4.prototype=new fm;
a4.prototype.YU=function(){this.V2.f();this.dK.f();this.Ab.f()};a4.prototype.a5e=function(L){var C={e:B.U.ca,m:this.m,bi:"showwarp"},U=new q(B.E.l,!0);
U.data=C;this.B(U)};a4.prototype.xx=function(L){if(L.bi=="showactive")this.body.appendChild(this.V2.j);
if(L.bi=="hideactive")this.body.removeChild(this.V2.j);if(L.bi=="changeAA")this.Dy.T(L.oq)};a4.prototype.hU=function(L,C){fm.prototype.hU.call(this,L,C);
if(C!=c_.oI&&C!=c_.NW&&C!=c_.AO&&C!=c_.HC)return;this.dK.T(L.Az,L.tW,L.Lw)};a4.prototype.zp=function(L){var C={e:B.U.ca,m:this.m,bi:this.V2.u()?"commit":"cancel"};
if(L.target==this.Dy){C.bi="changeAA";C.oq=this.Dy.u()}var U=new q(B.E.l,!0);U.data=C;this.B(U)};function fL(){dY.call(this)}fL.prototype=new dY(!0);
function ea(){fm.call(this);var L=[],U="<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.BN=new dh([12,85]);this.BN.k(B.E.L,this.A7,this);L.push(this.BN.j);this.IC=new dh([20,1]);this.IC.k(B.E.L,this.A7,this);
L.push(this.IC.j);this.z5=new dh([12,83]);this.z5.k(B.E.L,this.A7,this);L.push(this.z5.j);var C=B.w("span","fitem");
L.push(C);this.ajG=new bS("Scale for exported files",["1x","2x","3x","4x"],!0);C.appendChild(this.ajG.j);
this.k_=new br(U+" PNG",!1,"Save selected layers as PNG",!0);C.appendChild(this.k_.j);this.k_.k("click",this.jE,this);
this.amX=new br(U+" SVG",!1,"Save selected layers as SVG",!0);C.appendChild(this.amX.j);this.amX.k("click",this.jE,this);
var E=B.w("span","fitem");L.push(E);var Y=B.w("span","fitem");L.push(Y);this.sJ=[];for(var H=0;H<8;H++){var z=H==3||H==7?[20,4,6]:[20,4,H<3?H:H-1],r=new br("Hi",!1,z);
(H<4?E:Y).appendChild(r.j);r.k("click",this.jE,this);this.sJ.push(r)}for(var H=0;H<L.length;H++)this.body.appendChild(L[H]);
this.a2V=L}ea.prototype=new fm;ea.prototype.xx=function(L){var C=L.XO,U=L.acL;this.BN.T(C.Hp);this.IC.T(C.nf);
this.z5.T(C.Q0);if(U){B.CF(this.body);for(var H=0;H<U.length;H++)if(U[H]==1&&this.a2V[H])this.body.appendChild(this.a2V[H])}};
ea.prototype.jE=function(L){var C=this.sJ.indexOf(L.target),U;if(C==-1){U=new q(B.E.l,!0);U.data={e:B.U.ca,m:this.m,ev:L.target==this.k_?"getPNG":"getSVG",NB:this.ajG.u()+1}}else{U=new q(B.E.A,!0);
U.m=W.Ml;U.data={e:"algn",G:C}}this.B(U)};ea.prototype.A7=function(L){var C=new q(B.E.l,!0);C.data={e:B.U.ca,m:this.m,ev:"prms",Hp:this.BN.gF(),nf:this.IC.gF(),Q0:this.z5.gF()};
this.B(C)};ea.prototype.YU=function(){this.BN.f();this.IC.f();this.z5.f();var L="h0 h1 h2 hG v0 v1 v2 vG".split(" ");
for(var H=0;H<8;H++){this.sJ[H].uc(B.lp("align/"+L[H],null,"autoscale"))}};function e2(){dY.call(this);
var L=this.pj=new gw;L.parent=this;L.k(B.E.L,this.ag4,this);this.body.appendChild(L.j)}e2.prototype=new dY(!0);
e2.prototype.ag4=function(L){this.data.dH=this.pj.u();this.We()};e2.prototype.YU=function(){dY.prototype.YU.call(this);
this.pj.f()};function ha(){av.call(this,["setop","patch"])}ha.prototype=new av;function e1(){av.call(this,["setop"])}e1.prototype=new av;
function gW(){av.call(this,["bmode","opacity","wconf"])}gW.prototype=new av;function g0(){dY.call(this)}g0.prototype=new dY(!0);
function eH(){dY.call(this)}eH.prototype=new dY(!0);function eI(){dY.call(this);this.ra=new gX;this.ra.k(B.E.L,this.DC,this);
this.body.appendChild(this.ra.j)}eI.prototype=new dY(!0);eI.prototype.DC=function(L){this.data.ra=this.ra.u();
this.We()};eI.prototype.YU=function(){dY.prototype.YU.call(this);this.ra.f()};function dc(){fm.call(this);
this.OY=null;this.ZH=null;this.CB=[new hq("X",null,3),new hq("Y",null,3),new hq("W",null,3),new hq("H",null,3),new hq([12,15],null,4),new hq([12,80,0],null,4),new br([15,7,6],!1,null,!0)];
for(var H=0;H<this.CB.length;H++){var L=this.CB[H];this.body.appendChild(L.j)}this.CB[6].k("click",this.a3L,this);
this.GL=0}dc.prototype=new fm;dc.prototype.a3L=function(L){if(this.GL==0){return}var C=new q(B.E.A,!0);
C.m=W.YH;C.data={e:"rot",z9:[2,5],G:-this.GL};this.B(C)};dc.prototype.xx=function(L){if(L==null)return;
this.ZH=L;var C=L.a1y,U=L.UO,E=U.x-C.x,Y=U.y-C.y,z=this.CB;this.GL=-Math.atan2(Y,E);z[0].T(C.x);z[1].T(C.y);
z[2].T(E);z[3].T(Y);z[4].T((this.GL*180/Math.PI).toFixed(2));var r=Math.sqrt(E*E+Y*Y);r=c.Mb.S9(r,L._Q,this.OY,L.a0z,!1);
z[5].T(parseFloat(r).toFixed(2))};dc.prototype.hU=function(L,C){this.OY=L;this.xx(this.ZH)};dc.prototype.YU=function(){var L=this.CB;
for(var H=0;H<L.length;H++)L[H].f();B.ju(L[2],L[3])};function af(){av.call(this,["brush","strn","pdetail"])}af.prototype=new av;
function cu(){av.call(this,["brush","sfrom"]);this.afb=[];var L=[[7,12]];for(var H=0;H<L.length;H++){var C=new br(L[H],!1,null,!0);
this.afb.push(C);C.parent=this;this.body.appendChild(C.j);C.k("click",this.aeK,this)}}cu.prototype=new av;
cu.prototype.aeK=function(L){var C=this.afb.indexOf(L.currentTarget),U=new q(B.E._w,!0);U.data=W.dl.vG("contentAware");
this.B(U)};function dv(){av.call(this,["brush","strn"])}dv.prototype=new av;function fa(){av.call(this,["brush","flow","smode"])}fa.prototype=new av;
function er(){fm.call(this);this.G$=!1;var L=B.w("span","fitem");this.body.appendChild(L);this.a_=new dr(null,["<img src=\""+PIMG.zoomIn+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.zoomOut+"\" class=\"autoscale gsicon\" />"]);
L.appendChild(this.a_.j);this.a_.k(B.E.L,this.A7,this);this.hh=new br([20,2]);this.body.appendChild(this.hh.j);
this.hh.k("click",this.Wc,this);this.D8=new br([20,3]);this.body.appendChild(this.D8.j);this.D8.k("click",this.Wc,this)}er.prototype=new fm;
er.prototype.YU=function(){this.hh.f();this.D8.f()};er.prototype.A7=function(){var L={e:B.U.ca,m:this.m,AI:this.a_.u()==0},C=new q(B.E.l,!0);
C.data=L;this.B(C)};er.prototype.xx=function(L){if(this.G$!=L.G$)this.a_.T(1-this.a_.u());this.G$=L.G$};
er.prototype.Wc=function(L){var C=new q(B.E.A,!0);C.m=W.tJ;C.data={e:"adapt",G:L.target==this.hh?"pixel":"fitscr"};
this.B(C)};function a_(L,C){fm.call(this);if(L==null)return;this.Vr={};var U=[[12,76,0],[12,76,1]];if(C==null)U.push([12,76,2]);
for(var H=0;H<L.length;H++){var E=L[H],Y=null;if(E=="tmode"){Y=new bS(null,U);Y.T(1)}if(E=="make"){Y=new br("Make Selection",null,null,!0);
Y.aA()}if(E=="binop"){Y=new bS(null,[[18,1],[18,2],[18,3],[18,4]]);Y.aA()}if(E=="pshape")Y=new bS(null,[[12,93,0],[12,93,1],"Arrow",[12,93,2]]);
if(E=="shape")Y=new iu([12,76,1]);if(E=="crad"){Y=new cU([12,94,0],0,50,"px");Y.T(0)}if(E=="cstr"){Y=new gX}if(E=="irad"){Y=new cU([12,94,1],0,100,"%");
Y.T(40)}if(E=="length"){Y=new cU([12,80,0],4,40);Y.T(4)}if(E=="sides"){Y=new cU([12,78],3,30);Y.T(5)}if(E=="width"){Y=new cU([12,41],1,100,"px");
Y.T(5)}if(E=="tsiz"){Y=new cU("Tip Size",100,500,"%");Y.T(300)}if(E=="tolr"){Y=new cU([12,24],0,100);
Y.T(5)}if(E=="fstyle"){Y=new gl([12,26])}if(E=="sstyle"){Y=new bc}if(E=="psnap"){Y=new dh([8,10])}if(E=="crnr"){Y=new br("\u2312",!1,[12,94,0],!0)}Y.parent=this;
this.body.appendChild(Y.j);this.Vr[E]=Y;Y.k(E=="crnr"||E=="make"?"click":B.E.L,this.A7,this)}}a_.prototype=new fm;
a_.prototype.xx=function(L){if(L.ev=="vals"){for(var C in L.a6n)this.Vr[C].T(L.a6n[C]);this.zR();return}var U=a_.UB;
if(U==null)U=a_.UB=new aq([{name:"Make Selection"}],[{b:B.E.l,H:{e:B.U.Q1,k5:"makesel"}}]);U.parent=this;
U.update(L.Ru,L.us);var E=new q(B.E.l,!0);E.data={e:B.U.Ww,f0:U,x:L.q0._5+2,y:L.q0.x0+1};this.B(E)};
a_.prototype.lI=function(H){return null};a_.prototype.zR=function(){if(this.Vr.pshape==null)return;var L=this.lI(this.Vr.pshape.u());
if(L==null)return;B.CF(this.body);for(var H=0;H<L.length;H++){var C=L[H];this.body.appendChild(this.Vr[C].j)}};
a_.prototype.YU=function(){for(var L in this.Vr){this.Vr[L].f()}};a_.prototype.A7=function(L){if(L.target==this.Vr.crnr){var C=new q(B.E.A,!0);
C.m=W.JS;C.data={e:"crnr"};this.B(C);return}if(L.target==this.Vr.make){var C=new q(B.E.l,!0);C.data={e:B.U.Q1,k5:"makesel"};
this.B(C);return}var C=new q(B.E.l,!0);if(L.target==this.Vr.fstyle){C.data={e:B.U.MP,wm:c_.kC,G:this.Vr.fstyle.u()};
this.B(C);return}if(L.target==this.Vr.sstyle){C.data={e:B.U.MP,wm:c_.Um,G:this.Vr.sstyle.u()};this.B(C);
return}if(this.Vr.tmode&&this.Vr.binop){var U=this.Vr.tmode.u()==0,E=this.Vr.binop,Y=this.Vr.make;if(E)E.Q9(U);
if(Y)Y.Q9(U)}C.data={e:B.U.ca,m:this.m};for(var z in this.Vr)if(z!="sstyle")C.data[z]=this.Vr[z].u();
this.B(C);if(L.target==this.Vr.pshape)this.zR()};a_.prototype.hU=function(L,C){fm.prototype.hU.call(this,L,C);
var U=this.Vr.fstyle,E=this.Vr.sstyle;if(U)U.hU(L,C);if(E)E.hU(L,C);if(C==c_.oI||C==c_.lz)if(L.bc.length!=0&&this.Vr.shape){this.Vr.shape.LP(L.bc)}if(C==c_.oI||C==c_.kC)if(U)U.T(null,L.S1,L.a1b);
if(C==c_.oI||C==c_.Um)if(E)E.T(null,L.Xs,L.af_)};function iO(){a_.call(this,["tmode","make","fstyle","sstyle","binop"],!0)}iO.prototype=new a_;
function cM(){a_.call(this,["tmode","fstyle","sstyle","binop","tolr"])}cM.prototype=new a_;function co(){a_.call(this,["fstyle","sstyle"]);
this.a33=null;this.a76=null;this.aef=null;this.gC=new bS("Path",[[18,1],[18,2],[18,3],[18,4],[18,5]],!1,[4]);
this.td=new br("\u25BC");this.td.m0();this.gx=new br("\u25B2");this.gx.m0();this.an=[this.gC,this.td,this.gx];
for(var H=0;H<this.an.length;H++){var L=this.an[H];this.body.appendChild(L.j);L.parent=this;L.k(H==0?B.E.L:"click",this.vb,this)}}co.prototype=new a_;
co.prototype.xx=function(L){if(L.bi=="main"){var C=this.an,U=L.Uj;if(U&&U.C.length==1){this.a76=U.clone();
this.aef=JSON.stringify(L.zf);var E=U.C[0],Y=c.Y.ov(U.n);this.gC.rX();if(E>0)this.td.rX();else this.td.aA();
if(E<Y-1)this.gx.rX();else this.gx.aA();var z=c.Y.Jt(U.n,E),r=U.n[z];this.gC.uc("Path "+(E+1));this.gC.T([3,0,1,2][r.ZZ])}else{for(var H=0;
H<C.length;H++)C[H].aA()}}else a_.prototype.xx.call(this,L)};co.prototype.YU=function(){a_.prototype.YU.call(this);
this.gC.f()};co.prototype.vb=function(L){if(L.target==this.gC||L.target==this.td||L.target==this.gx){var C={},U=this.a76,E=U.n,Y=JSON.parse(this.aef),z=U.C[0],r=c.Y.Jt(E,z),p=E[r];
if(L.target==this.gC){var T=this.gC.u();if(T<4)p.ZZ=[1,2,3,0][T];else{if(c.Y.ov(E)<=1)return;U.n=c.Y.Tx(E);
U.C=U.n.length==2?[]:[0];U.f8=[];Y=[c.zf.Zx()]}}else{var k=L.target==this.td?-1:1,P=Math.min(z,z+k),b=Math.max(z,z+k),Q=c.Y.Jt(E,P),K=c.Y.Jt(E,b);
if(Q==-1||K==-1)return;var h=K+c.Y.Hb(E,b),x=Y[P];Y[P]=Y[b];Y[b]=x;var O=E.slice(0,Q),y=E.slice(Q,K),v=E.slice(K,h),i=E.slice(h);
U.n=O.concat(v.concat(y.concat(i)));U.C[0]+=k}C.Uj=U;C.zf=Y;var D=new q(B.E.l,!0);D.data={e:B.U.ca,m:this.m,F$:C};
this.B(D)}};function cK(){a_.call(this,["fstyle","sstyle","crnr","psnap"])}cK.prototype=new a_;function cA(){a_.call(this,"tmode fstyle sstyle binop cstr crad".split(" "))}cA.prototype=new a_;
function ag(){a_.call(this,["tmode","fstyle","sstyle","binop","cstr"])}ag.prototype=new a_;function fr(){a_.call(this,"tmode fstyle sstyle binop pshape sides irad crad width tsiz length".split(" "));
this.a3t=[["sides","crad"],["sides","irad","crad"],["width","tsiz"],["length"]];this.zR()}fr.prototype=new a_;
fr.prototype.lI=function(H){return["tmode","fstyle","sstyle","binop","pshape"].concat(this.a3t[H])};
function iE(){a_.call(this,["tmode","fstyle","sstyle","binop","width"])}iE.prototype=new a_;function cn(){a_.call(this,"tmode fstyle sstyle binop cstr shape".split(" "))}cn.prototype=new a_;
function cW(){dY.call(this)}cW.prototype=new dY(!0);function f1(){av.call(this,["brush","qsmode","redge"])}f1.prototype=new av;
function es(){fm.call(this)}es.prototype=new fm;function eX(){fm.call(this);this.td=new br("\u25BC");
this.td.m0();this.gx=new br("\u25B2");this.gx.m0();var e4=[this.td,this.gx];for(var H=0;H<2;H++){var L=e4[H];
this.body.appendChild(L.j);L.k("click",this.vb,this)}}eX.prototype=new fm;eX.prototype.vb=function(L){var C=new q(B.E.l,!0);
C.data={e:B.U.ca,m:this.m,ev:"reorder",dir:L.target==this.td?-1:1};this.B(C)};function hL(L,C){fm.call(this);
if(window.Typr==null||L)return;this.aig=C;this.YL=null;this.a0e=B.w("span","");this.a00=B.w("span","");
var U=1;this.WZ={jP:new cP(null,24),WO:new cU("X",0,0,"px",0,!1,!0,4),_Z:new cU("Y",0,0,"px",0,!1,!0,4),P8:new cU("W",0,0,["%","px"],2,!1,!0,5),xG:new br("\u2261",null,[12,51],null),sA:new cU("H",0,0,["%","px"],2,!1,!0,5),adX:new cU("\u2221",0,0,"\xB0",U,!1,!0),a8g:new cU("\u25B1 X",-85,85,"\xB0",U,!1,!0),a2D:new cU("\u25B1 Y",-85,85,"\xB0",U,!1,!0),Gv:new bS(null,[[12,14,2],[12,14,3],"Bicubic Sharper"])};
this.WZ.Gv.T(1);for(var E in this.WZ){var Y=this.WZ[E];if(C&&(Y==this.WZ.adX||Y==this.WZ.a8g||Y==this.WZ.a2D||Y==this.WZ.Gv)){}else this.a0e.appendChild(Y.j);
var z=Y==this.WZ.xG?"click":B.E.L;Y.k(z,this.a94,this)}this.pj=new dF(!0,!0,!0);this.pj.k(B.E.L,this.a2g,this);
this.pj.parent=this;var r=this.a00,p=this.pj;r.appendChild(p.zW.j);r.appendChild(p.Fu.j);r.appendChild(p.a0.j);
r.appendChild(p.R$.j);r.appendChild(p.h7.j);this.Ab=new br([11,9]);this.Ab.k("click",this.anw,this);
this.V2=new b6;this.V2.k("click",this.zp,this)}hL.prototype=new fm;hL.prototype.xx=function(L){if(L.q0){var C=hL,U=this.UB;
if(U==null)U=this.UB=new aq(C.Gl(),C.hw(this.m));U.f();U.parent=this;U.update(L.Ru,L.us);var E=new q(B.E.l,!0);
E.data={e:B.U.Ww,f0:U,x:L.q0._5+2,y:L.q0.x0+1};this.B(E);return}B.CF(this.body);this.YL=L;if(L.WZ){var Y=L.WZ._,z=L.WZ.W1.clone(),r=Math.atan2(-z.O,z.R),p=new c0;
p.rotate(-r);z.concat(p);var T=this.WZ;T.jP.T(L.WZ.dL);T.WO.T(L.WZ.Nb.x);T._Z.T(L.WZ.Nb.y);T.P8.T(z.R*(T.P8.X6()=="%"?100:Y.d));
T.sA.T(z.J2*(T.sA.X6()=="%"?100:Y.v));T.adX.T(-r*180/Math.PI);T.a8g.T(0*180/Math.PI);T.a2D.T(Math.atan(z.Z9)*180/Math.PI);
this.body.appendChild(this.a0e);this.Ab.q7()}if(L.ge){this.pj.T(L.ge);this.body.appendChild(this.a00);
this.Ab.m0()}this.body.appendChild(this.V2.j);if(L.a8y&&!this.aig)this.body.appendChild(this.Ab.j)};
hL.prototype.a94=function(L){var C=this.WZ,U=this.YL.WZ._;if(L.target==C.xG)C.xG.T(!C.xG.u());if(C.xG.gF()){var E=C.sA,Y=C.P8,z=U.v,r=U.d;
if(L.target==C.P8){E=C.P8;Y=C.sA;z=U.d;r=U.v}var p=E.u()/(E.X6()=="%"?100:z);p*=Y.X6()=="%"?100:r;Y.T(p)}var T=[];
for(var k in C)if(C[k]!=C.xG&&C[k]!=C.jP){var p=C[k].u();if((C[k]==C.P8||C[k]==C.sA)&&p==0){p=.1;C[k].T(p)}if(C[k]==C.P8&&C[k].X6()=="px")p/=U.d/100;
if(C[k]==C.sA&&C[k].X6()=="px")p/=U.v/100;T.push(p)}var P=new hZ(T[0],T[1]);if(L.target==C.jP){this.Kb({bi:"ctyp",dL:C.jP.u()})}else if(L.target==C.WO||L.target==C._Z){this.Kb({bi:"cen",Nb:P})}else{var b=this.YL.WZ.W1.clone(),Q=b.clone(),K=Math.atan2(-b.O,b.R);
Q.translate(-P.x,-P.y);Q.rotate(-K);var h=new c0(Q.R,Q.O,Q.Z9,Q.J2,0,0);h.G$();Q.concat(h);Q.concat(new c0(T[2]/100,Math.tan(T[5]*Math.PI/180),Math.tan(T[6]*Math.PI/180),T[3]/100,0,0));
Q.rotate(-T[4]*Math.PI/180);Q.translate(P.x,P.y);this.YL.WZ.W1=Q;this.Kb({bi:"trn",WZ:Q,B_:this.WZ.Gv.u()})}};
hL.prototype.a2g=function(L){this.Kb({bi:"wrp",ge:this.pj.u()})};hL.prototype.anw=function(L){this.Kb({bi:"switchWarp"})};
hL.prototype.zp=function(L){this.Kb({bi:this.V2.u()?"commit":"cancel"})};hL.prototype.Kb=function(L){L.e=B.U.ca;
L.m=this.m;var C=new q(B.E.l,!0);C.data=L;this.B(C)};hL.prototype.YU=function(){var L=this.WZ;for(var C in L)L[C].f();
B.ju(L.P8,L.sA);this.V2.f();this.pj.f();this.Ab.f()};hL.Gl=function(){return[{name:[5,9],ir:"Shift+Alt+Ctrl + T",rY:!0},{name:[12,38]},{name:[2,5]},{name:[24,4]},{name:[2,9]},{name:[11,9],p:function(L){if(L==null||L.C.length!=1)return{p:!1};
var C=L.N[L.C[0]];return{p:C.add.TySh==null&&!C.Jc()}},rY:!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]]}]};
hL.hw=function(L){if(L==null)L=W.YH;return[{b:B.E.A,m:L,H:{e:"again"}},{b:B.E.l,H:{e:B.U.ID,m:L,XO:{AT:3}}},{b:B.E.l,H:{e:B.U.ID,m:L,XO:{AT:4}}},{b:B.E.l,H:{e:B.U.ID,m:L,XO:{AT:2}}},{b:B.E.l,H:{e:B.U.ID,m:L,XO:{AT:1}}},{b:B.E.l,H:{e:B.U.ID,m:L,XO:{AT:-1}}},{b:B.E.A,m:L,H:{e:"rot",z9:[2,5],G:-Math.PI/2}},{b:B.E.A,m:L,H:{e:"rot",z9:[2,5],G:-3*Math.PI/2}},{b:B.E.A,m:L,H:{e:"rot",z9:[2,5],G:Math.PI}},{b:B.E.A,m:L,H:{e:"scl",z9:[[2,6],[22,4,2]],G:new hZ(-1,1)}},{b:B.E.A,m:L,H:{e:"scl",z9:[[2,6],[22,4,3]],G:new hZ(1,-1)}}]};
function cD(){hL.call(this)}cD.prototype=new hL(!0);function ht(){hL.call(this)}ht.prototype=new hL(!0);
function gd(){hL.call(this,!1,!0)}gd.prototype=new hL(!0);function ew(){fm.call(this);var L=this.Jr=[new bS([12,36],["Rigid",[15,10,0],[24,4]]),new bS([12,74],[[19,8,0],[19,8,1],[19,8,2]]),new cU([7,4],0,100,"px"),new dh("Show Mesh"),new br("\u25BC",null,null,!0),new br("\u25B2",null,null,!0)];
for(var H=0;H<L.length;H++){var C=L[H];C.parent=this;this.body.appendChild(C.j);C.k(H<4?B.E.L:"click",this.abB,this)}this.V2=new b6;
this.V2.k("click",this.zp,this);this.body.appendChild(this.V2.j)}ew.prototype=new fm;ew.prototype.YU=function(){var L=this.Jr;
for(var H=0;H<4;H++)L[H].f();this.V2.f()};ew.prototype.xx=function(L){var L=L.wm;for(var H=0;H<4;H++)this.Jr[H].T(L[H])};
ew.prototype.abB=function(L){var C=[];for(var H=0;H<4;H++)C[H]=this.Jr[H].u();var U=this.Jr.indexOf(L.target);
if(U<4)this.Kb({bi:"prm",wm:C});else this.Kb({bi:"moveDepth",adH:U==5})};ew.prototype.zp=function(L){this.Kb({bi:this.V2.u()?"commit":"cancel"})};
ew.prototype.Kb=function(L){L.e=B.U.ca;L.m=this.m;var C=new q(B.E.l,!0);C.data=L;this.B(C)};function bG(){gG.call(this);
this.j=B.w("div","cmanager");window.alert=function(E,Y){this.abH(E,Y);console.log("Alert: "+E)}.bind(this);
window.onblur=function(E){var Y=this;Y.yZ()}.bind(this);this.aU=0;this.fg=0;this.Xk=[];this.iY={};this.pl=B.w("div","alertcont");
this.j.appendChild(this.pl);this.aij=B.w("div","alertcont");this.j.appendChild(this.aij);this.J3=B.w("div","alertcont");
this.a6F=0;this.Qw=-1;this.ahS=null;this.qT=null;var L=this.afY=B.w("div","alertpanel");L.setAttribute("style","padding:0.7em 1em 0.1em 1em;");
this.J3.appendChild(L);var C=this.aE=B.w("input");C.setAttribute("type","text");C.setAttribute("style","background-color:white; color:black; font-size:1.2em; width:100%;  margin:0;");
C.addEventListener("input",this.abP.bind(this),!1);C.addEventListener("keydown",this.al8.bind(this),!1);
L.appendChild(C);var U=this.al1=B.w("div","contextpanel scrollable");U.setAttribute("style","text-align:left; box-shadow:none; margin:0.5em 0 1em 0;color:#888;");
U.addEventListener("click",this.ajZ.bind(this),!1);L.appendChild(U);B.Vv(document.body,this.a8o.bind(this))}bG.prototype=new gG;
bG.prototype.Us=function(){if(B.DW(this.J3))this.j.removeChild(this.J3)};bG.prototype.a4N=function(L,C){var U=this.ahS=[];
for(var H=0;H<hN.data.length;H++){var E=hN.data[H],Y=[gS.get(E.name)],z=[H];bG._e(E.items,Y,z,U,L,C)}var r=eS.Wk;
for(var H=0;H<r.length;H+=3){U.push([["Tools",gS.get(r[H])],[-1,r[H+2]]])}this.j.appendChild(this.J3);
var p=this.aE;p.focus();p.select();this.L9()};bG.prototype.abP=function(L){this.Qw=-1;this.L9()};bG.prototype.L9=function(){var L=this.aE.value.toLowerCase().trim().replace(/  +/g," "),C=this.ahS,U=[],E=[],Y=L.split(" ");
if(L!="")for(var H=0;H<C.length;H++){var z=C[H][0],r=[],p=0;for(var T=0;T<z.length;T++)r[T]=-1;for(var k=0;
k<Y.length;k++)for(var T=0;T<z.length;T++){var P=z[T].toLowerCase().indexOf(Y[k]);if(P!=-1){r[T]=[P,P+Y[k].length];
p++;break}}if(p==Y.length){U.push(C[H]);E.push(r)}}var b=[],Q=this.al1;B.CF(Q);for(var H=0;H<U.length;
H++){var K=U[H][0],P=E[H],h="enab",O="";if(H==this.Qw)h+=" active";var x=B.w("div",h);b.push(x);Q.appendChild(x);
for(var T=0;T<K.length;T++){var y=P[T],v=Y[T],i=K[T];if(y!=-1)i=i.slice(0,y[0])+"<span style=\"color:black\">"+i.slice(y[0],y[1])+"</span>"+i.slice(y[1]);
O+=i;if(T<K.length-1)O+=" \uFE65 "}x.innerHTML=O}this.qT=[U,b]};bG.prototype.al8=function(L){var C=G.IX,U=L.code;
if(C(U,G.ox))this.Us();var E=C(U,G.Bz),Y=C(U,G.oY),z=C(U,G.CT);if(E||Y){this.Qw=Math.max(0,Math.min(this.qT[0].length-1,this.Qw+(E?-1:1)));
this.L9()}if(z&&this.Qw!=-1)this.Xd(this.Qw)};bG._e=function(L,C,U,E,Y,z){for(var H=0;H<L.length;H++){var r=L[H],p=C.slice(0),T=U.slice(0),k=gS.get(r.name);
if(r.p){var P=r.p(Y,z,H);if(P.QA)k=P.QA;if(P.p==!1)continue}p.push(k);T.push(H);if(r.sub)bG._e(r.sub,p,T,E,Y,z);
else E.push([p,T])}};bG.prototype.ajZ=function(L){var C=L.target;if(C.tagName.toLowerCase()=="span")C=C.parentNode;
var U=this.qT[1].indexOf(C);if(U!=-1)this.Xd(U)};bG.prototype.Xd=function(L){var C=this.qT[0][L][1];
if(C[0]==-1){var U=new q(B.E.l,!0);U.data={e:B.U.ID,m:C[1]};this.B(U)}else{var E=hN.data[C[0]].fp[C[1]];
for(var H=2;H<C.length;H++)E=E.sub[C[H]];var Y=new q(E.b,!0);Y.m=E.m;Y.data=E.H;this.B(Y)}this.Us()};
bG.prototype.AU=function(L,C){this.aU=L;this.fg=C;this.al1.style["max-height"]=C-120+"px"};bG.prototype.a7A=function(L){var C=B.w("div","alertpanel");
C.textContent=gS.get(L);this.pl.appendChild(C);this.iY[JSON.stringify(L)]=C};bG.prototype.aan=function(L){var C=this.iY[JSON.stringify(L)];
this.pl.removeChild(C);delete this.iY[JSON.stringify(L)]};bG.prototype.abH=function(L,C){var U=this.aij;
for(var H=0;H<U.children.length;H++)if(U.children[H].textContent==L)return;var E=B.w("div","alertpanel tpanel");
E.textContent=L;E.setAttribute("style","opacity:0.5; transform:scale(0.9)\t");U.appendChild(E);if(C==null)C=1500;
var Y=C,z=Math.max(Date.now()+Y,this.a6F+Y);setTimeout(function(){E.setAttribute("style","transform:scale(1); opacity:1;")},10);
setTimeout(function(){U.setAttribute("style","margin-top: -3.6em; transform: translateY(3.6em);")},z-Date.now()-30);
setTimeout(function(){U.removeChild(U.firstChild);U.setAttribute("style","transition: transform 0.7s;  margin-top: 1em;  transform: translateY(0em);")},z-Date.now());
this.a6F=z};bG.prototype.a8o=function(L){var C=this.Xk;for(var H=C.length-1;H>=0;H--){var U=C[H],E=L.target;
while(E!=null){if(E==U.j){this.yZ(U);return}E=E.parentNode}}this.yZ();var Y=L.target;while(Y!=this.J3&&Y!=document.body)Y=Y.parentNode;
if(Y!=this.J3)this.Us()};bG.prototype.yZ=function(L){var C=this.Xk;for(var H=0;H<C.length;H++){if(L&&L.aiH(C[H]))continue;
var U=C[H].j;U.style.height="auto";B.gy(U,"scrollable");this.j.removeChild(U);C.splice(H,1);H--}};bG.prototype.ac3=function(L){this.yZ(L.f0);
var C=L.f0,U=C.j;if(this.Xk.indexOf(C)!=-1)return;this.Xk.push(C);this.j.appendChild(C.j);var E=this.aU,Y=this.fg,z=L.x,r=L.y,p=this.j.getBoundingClientRect(),T=C instanceof aq;
if(T||L.ur){var k=C.LS(),P=C.A0();if(T)k=Math.min(k,200);if(r+P<Y){z=Math.min(z,E-k-5)}else{if(z+k<E){r=Math.min(r,Y-P-5)}else if(P<r){r=r-P-2;
z=Math.min(z,E-k-5)}else{z=z-k;r=Math.min(r,Y-P-5)}}if(L.ahr)r=Math.max(2,L.y-P-2);if(L.am8)r=L.y}r=Math.max(2,r);
var top=Math.round(r-p.y+this.j.offsetTop);U.style.position="absolute";U.style["z-index"]=10;U.style.left=Math.round(z)+"px";
U.style.top=top+"px";if(r+C.A0()>Y-3){U.style.height=Y-3-r+"px";B.QS(U,"scrollable")}};bG.prototype.nw=function(L){var C=L.f0,U=this.Xk.indexOf(C);
if(U==-1)return;this.Xk.splice(U,1);var E=C.j;this.j.removeChild(C.j)};bG.prototype.pF=function(){var L=this.Xk;
return L.length==0?null:L[L.length-1]};bG.prototype.aeY=function(){this.nw({f0:this.pF()})};function fS(){gG.call(this);
this.j=B.w("div","confbar")}fS.prototype=new gG;fS.prototype.a5M=function(L){L.parent=this;B.CF(this.j);
this.j.appendChild(L.j)};function g8(L){gG.call(this);g8.xL=L;this.OY=null;this.Kp=B.w("input","");this.Kp.setAttribute("type","file");
this.Kp.setAttribute("multiple","");this.Kp.addEventListener("change",function(C){this.Cu(C.target.files,null,this.Rx,null);
this.Rx=null}.bind(this),!1);document.body.appendChild(this.Kp);this.Kp.setAttribute("style","display:none");
this.a3q=[];this.VI=!1;this.ami={};this.Rx=null}g8.prototype=new gG;g8.xL=null;g8.zJ=function(L){try{var C={};
C[L.type]=L;navigator.clipboard.write([new ClipboardItem(C)])}catch(gS){console.error(gS,gS.message)}};
g8.dG=function(L,C){navigator.clipboard.read().then(function(U){for(var H=0;H<U.length;H++){try{var E=U[H];
for(var Y=0;Y<E.types.length;Y++){var z=E.types[Y];if(z=="image/png")E.getType(z).then(function(r){new Response(r).arrayBuffer().then(function(p){g8.xL({name:"image.png"},p,L,C)})});
if(z=="text/plain")E.getType(z).then(function(r){new Response(r).arrayBuffer().then(function(p){var T=$.IQ(new Uint8Array(p)),k=new q(B.E.l,!0);
k.data={e:B.U.Rz,G:T};L.B(k)})})}}catch(gS){console.error(gS,gS.message)}}}).catch(function(U){alert("Clipboard error: ("+U.message+")")})};
g8.aeR=function(L){navigator.permissions.query({name:"clipboard-read"}).then(function(C){L(C.state)})};
g8.prototype.VB=function(L){if(L==null)L=[23,5];var C=JSON.stringify(L),U=this.ami;if(U[C]==null)U[C]=0;
if(U[C]==0){var E=new q(B.E.l,!0);E.data={e:B.U.rA,eL:L};this.B(E)}U[C]++};g8.prototype.z3=function(L){if(L==null)L=[23,5];
var C=JSON.stringify(L),U=this.ami;if(U[C]==null)U[C]=0;U[C]--;if(U[C]==0){var E=new q(B.E.l,!0);E.data={e:B.U.cG,eL:L};
this.B(E)}};g8.prototype.aje=function(L,C){this.Rx=L;var U=window.showOpenFilePicker;if(U&&window.self==window.top){var E=this;
U({multiple:!0}).then(function(r){var p=[];function T(k){p.push(k);if(p.length==r.length){E.Cu(p,null,E.Rx,null,r);
E.Rx=null}else r[p.length].getFile().then(T)}r[p.length].getFile().then(T)});return}var Y=this.Kp;if(C)Y.setAttribute("accept",C);
else Y.removeAttribute("accept");var z=document.createEvent("MouseEvents");z.initMouseEvent("click",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);
Y.dispatchEvent(z)};g8.prototype.$m=function(L){if(L.url.indexOf("photopea.com#i")!=-1||L.url.indexOf("photopea.com/#i")!=-1){this.Bn(L.url.split("#i").pop());
return}this.a3q.push(L);this.A8()};g8.prototype.A8=function(){var L=this.a3q;if(L.length==0||this.VI)return;
this.VI=!0;var C=L.shift();this.VB();if(C.AW==null)C.AW={};var U=new XMLHttpRequest;U.Pd=C;var E=C.url;
if(C.Z3)E="mirror.php?url="+encodeURIComponent(E);U.open("GET",E);if(C.pU)for(var Y in C.pU)U.setRequestHeader(Y,C.pU[Y]);
U.responseType="arraybuffer";U.onload=this.c2.bind(this);U.send()};g8.prototype.Cu=function(L,C,U,E,Y){for(var H=0;
H<L.length;H++){this.VB();var z=L[H],r=new FileReader;r.Pd=z;r.Pd.Tm=U;r.Pd.Ae=E;r.ah9=C;if(Y)r.Pd.mO=Y[H];
r.onload=this.c2.bind(this);r.onerror=function(p){this.z3()}.bind(this);r.readAsArrayBuffer(z)}this.Kp.value=null};
g8.prototype.a2Q=function(L,C,U){this.VB("Saving ...");this.OY=C;setTimeout(U.bind({$M:L,caller:this}),50)};
g8.qG=function(L){var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U=new Uint8Array(L),E=U.length,Y=E%3,z=E-Y,r=[],p=0,T=0,k=0;
for(var H=0;H<z;H+=3){p=U[H];T=U[H+1];k=U[H+2];r.push(C[p>>2]+C[(p&3)<<4|T>>4]+C[(T&15)<<2|k>>6]+C[k&63])}if(Y==1){p=U[z];
r.push(C[p>>2]+C[(p&3)<<4]+"==")}if(Y==2){p=U[z];T=U[z+1];r.push(C[p>>2]+C[(p&3)<<4|T>>4]+C[(T&15)<<2]+"=")}var P=r.join("");
return P};g8.aj5=function(L,C){var U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=new Uint8Array(64),p=0,T=0,k=0,b=0;
for(var H=0;H<64;H++)E[H]=U.charCodeAt(H);var Y=new Uint8Array(L),z=C%3,r=C-z,P=new Uint8Array(Math.floor(C/3)*4+(z==0?0:4));
for(var H=0;H<r;H+=3){p=Y[H];T=Y[H+1];k=Y[H+2];P[b]=E[p>>>2];P[b+1]=E[(p&3)<<4|T>>>4];P[b+2]=E[(T&15)<<2|k>>>6];
P[b+3]=E[k&63];b+=4}if(z==1){p=Y[r];P[b]=E[p>>2];P[b+1]=E[(p&3)<<4];P[b+2]=61;P[b+3]=61}if(z==2){p=Y[r];
T=Y[r+1];P[b]=E[p>>2];P[b+1]=E[(p&3)<<4|T>>4];P[b+2]=E[(T&15)<<2];P[b+3]=61}return P};g8.prototype.c2=function(L){var C,U=L.target.Pd;
if(L.target instanceof XMLHttpRequest)C=L.target.response;else C=L.target.result;g8.xL(U,C,this,L.target.ah9);
this.z3();if(L.target instanceof XMLHttpRequest){this.VI=!1;this.A8()}};g8.a8$=function(L){var C=new XMLHttpRequest;
C.open("POST","https://api.imgur.com/3/image",!0);C.setRequestHeader("Authorization","Client-ID 3ad80d2d9969219");
C.setRequestHeader("Content-type","application/x-www-form-urlencoded");C.setRequestHeader("Accept","application/json");
C.addEventListener("load",g8.ahl);C.send("type=base64&image="+encodeURIComponent(g8.qG(L)));alert("Saving to Imgur ...",4e3)};
g8.ahl=function(L){var C=JSON.parse(L.target.response);if(C.success)window.open(C.data.link,"Imgur")};
g8.prototype.Bn=function(L,C){this.VB();var U=new XMLHttpRequest;U.responseType="arraybuffer";U.open("GET","https://f000.backblazeb2.com/file/psdshared/"+L);
U.onload=this.a6X.bind(this);U.send();g8.a9B=Date.now();g8.aj9=L;g8.alv=C?L:null};g8.prototype.a6X=function(L){var C=new Uint8Array(L.target.response);
console.log(C.length,Date.now()-g8.a9B);for(var H=0;H<C.length;H++)C[H]=255-C[H];C=pako.inflateRaw(C);
var U=JSON.parse($.IQ(C,0,2e3));g8.xL({name:U.name,Z6:g8.alv},C.slice(2e3).buffer,this);this.z3();var E=new XMLHttpRequest;
E.open("GET","/papi/img/update.php?act=0&id="+g8.aj9+"&rnd="+Math.random());E.send()};g8.prototype.ajN=function(L,C){if(!(L instanceof ArrayBuffer))throw"e";
L=new Uint8Array(L);var U=new Uint8Array(L.length+2e3),p="";for(var H=0;H<2e3;H++)U[H]=32;$.mW(JSON.stringify({name:C}),U,0);
U.set(L,2e3);L=U;L=pako.deflateRaw(L);for(var H=0;H<L.length;H++)L[H]=255-L[H];L=L.buffer;var E=L.byteLength,Y=~~(209e5/2);
if(E>Y){confirm("Your file is "+eJ.Uy(E)+". Our limit is "+eJ.Uy(Y)+". Delete some layers and try again.");
return}var z=sha1(L),r=[];for(var H=0;H<20;H++){var T=parseInt(z.slice(H*2,H*2+2),16);r.push(T);p+=String.fromCharCode(T)}var k=btoa(p).replace(/\+/g,"-").replace(/\//g,"_").slice(0,8);
if(g8.ajq(k)){console.log("file already exists");window.open("https://www.photopea.com#i"+k);return}this.VB("Publishing ...");
var P=new XMLHttpRequest;P.ZH=[L,z,k];P.open("GET","/papi/img/publish.php?rnd="+Math.random());P.onload=this.acS.bind(this);
P.send()};g8.ajq=function(L){try{var C=new XMLHttpRequest;C.open("HEAD","https://f000.backblazeb2.com/file/psdshared/"+L,!1);
C.send();if(C.status==200)return!0}catch(gS){return!1}return!1};g8.prototype.acS=function(L){var C=JSON.parse(L.target.response),U=L.target.ZH,E=new XMLHttpRequest;
E.open("POST",C.uploadUrl);E.setRequestHeader("Authorization",C.authorizationToken);E.setRequestHeader("X-Bz-File-Name",U[2]);
E.setRequestHeader("Content-Type","b2/x-auto");E.setRequestHeader("X-Bz-Content-Sha1",U[1]);E.send(new Blob([U[0]]));
E.onload=this.afK.bind({kn:this,ZH:U})};g8.prototype.afK=function(L){this.kn.z3("Publishing ...");window.open("https://www.photopea.com#i"+this.ZH[2])};
g8.save=function(L,C){var U=new Uint8Array(L),E=document.createElement("a");if(typeof E.download=="string"){var Y=new Blob([U]),z=window.URL.createObjectURL(Y);
E.href=z;E.download=C;document.body.appendChild(E);E.click();document.body.removeChild(E)}else{var r="data:application/octet-stream;base64,"+g8.qG(L);
window.open(r)}};function d0(){this.size=16;this.data=c.F(16)}d0.prototype.bF=function(L,C){if(L+C<=this.size)return;
var U=this.size;while(L+C>this.size)this.size*=2;var E=c.F(this.size);for(var H=0;H<U;H++)E[H]=this.data[H];
this.data=E};var cl={};cl.Is=function(L,C,U){var E=C.split(":"),Y=E[0],z=null;if(E.length==2){if(Y=="jpg"||Y=="webp")z=[Math.round(100*parseFloat(E[1]))];
if(Y=="psd")z=[!0,!0]}var r=iL.UJ(L,Y.toUpperCase(),null,null,z,U);return r};cl.agX=function(L,C,U){var E=L.E0(),Y=C[0];
return cl.Is(L,Y,U)};cl.ad7=function(){var L=this.$M,C=this.caller,U=L.AW.Xh,E=U.formats,Y,z;L.E0();
var r=Date.now();if(U.version==1){var p=[],T=0,P=0;for(var H=0;H<E.length;H++){var k=cl.Is(L,E[H],C.OY);
p.push(k);T+=k.byteLength}Y=new Uint8Array(2e3+T);var b="{ \"source\": "+JSON.stringify(L._L)+", \"versions\": [\n";
for(var H=0;H<E.length;H++){var Q=new Uint8Array(p[H]);b+="\t{\"format\": \""+E[H].split(":")[0]+"\", \"start\": "+P+", \"size\": "+Q.length+" }"+(H+1<E.length?", ":"")+"\n";
Y.set(Q,2e3+P);P+=p[H].byteLength}b+="] }";var K=$.mW(b,Y,0);for(var H=K;H<2e3;H++)Y[H]=32;z="application/octet-stream"}else{var h=new d0,x=0,O="",y=encodeURIComponent;
O="p="+y("{ \"source\": "+JSON.stringify(L._L)+", \"versions\": [");$.Jv(h,x,O);x+=O.length;for(var H=0;
H<E.length;H++){O=y(" {\"format\": \""+E[H].split(":")[0]+"\", \"data\": \"");$.Jv(h,x,O);x+=O.length;
var k=cl.Is(L,E[H],C.OY),v=g8.aj5(k,k.byteLength),K=v.length;h.bF(x,K);for(var i=0;i<K;i++){h.bF(x,3);
var D=v[i];if(D==43){h.data[x]=37;h.data[x+1]=50;h.data[x+2]=66;x+=3}else if(D==47){h.data[x]=37;h.data[x+1]=50;
h.data[x+2]=70;x+=3}else if(D==61){h.data[x]=37;h.data[x+1]=51;h.data[x+2]=68;x+=3}else{h.data[x]=D;
x++}}O=y("\" }"+(H+1<E.length?", ":""));$.Jv(h,x,O);x+=O.length}O=y("] }");$.Jv(h,x,O);x+=O.length;Y=h.data.slice(0,x);
z="application/x-www-form-urlencoded"}var I=new XMLHttpRequest;I.open("POST",U.url,!0);if(z)I.setRequestHeader("Content-Type",z);
I.addEventListener("load",cl.acR.bind(this));I.send(new Blob([Y.buffer]))};cl.acR=function(L){this.caller.z3("Saving ...");
var C=L.target.response;if(C.charAt(0)=="{"){C=JSON.parse(C);if(C.newSource)this.$M._L=C.newSource;if(C.message)alert(C.message,2e3);
if(C.script){var U=new q(B.E.l,!0);U.data={e:B.U.JT,NY:C.script};this.caller.B(U)}}else alert("Saved. Response: "+C,1500)};
cl.amc=function(L){var C=L.at.vz,U=cl.Is(L,C);iA.GH(function(){var E=new XMLHttpRequest,Y="https://www.googleapis.com/upload/drive/v3/files/"+L.at.file.id+"?uploadType=media"+"&"+iA.XH();
E.open("PATCH",Y,!0);E.addEventListener("load",function(z){var r=JSON.parse(z.target.response);alert(r.name+" updated")});
E.send(U);alert("Saving \""+L.at.file.name+"\" to Google Drive ...")})};cl.xL=function(L,C,U,E){if(window.location.href.indexOf("photopea.com")==-1||window.top!=window.self)cl.YT(L,C,U,E);
else{try{cl.YT(L,C,U,E)}catch(gS){if(gS=="low_ram"){}else{var Y="Error. Please, send your file to support@photopea.com and we will solve it.";
if(iL.lc(C)=="eps")Y="We support only basic EPS files. Convert your file into PDF (with an online converter) and open the PDF in Photopea.";
alert(Y,1e4)}}}};cl.YT=function(L,C,U,E){var Y;if(L.name)Y=L.name.split(".")[0];else{if(L.url.substring(0,5)=="data:"||L.url.indexOf("googleapis")!=-1)Y="image";
else Y=L.url.substring(L.url.lastIndexOf("/")+1).split(".")[0];Y=Y.slice(0,50)}var z=L.name?L.name:L.url,r=new Uint8Array(C),p=iL.lc(C),T=window.ga;
if(Math.random()<.25&&T&&p!=null&&iL.WS(p))T("send","event","Formats",p);if(p==null)p=$.ZA(r,0,4);if(z&&z.toLowerCase().endsWith(".raw")){var k=new q(B.E.l,!0);
k.data={e:B.U.Q1,k5:"importraw",iv:C,GQ:z.split("/").pop()};U.B(k);return}else if(p=="json"){var P="";
for(var H=0;H<r.length;H++)P+=String.fromCharCode(r[H]);P=decodeURIComponent(escape(P));alert("Unknown JSON file opened. See the content in the console.",5e3);
console.log(JSON.parse(P));return}if(p=="html"){var P=$.IQ(r,0,r.length),b=new DOMParser,Q=b.parseFromString(P,"text/html"),K=Q.getElementsByTagName("meta");
for(var H=0;H<K.length;H++){var h=K[H],x=h.getAttribute("property"),O=h.getAttribute("content"),y=null;
if(x=="og:image")y=O;if(x==null&&O&&O.startsWith("0;url=/imgres?")){var v=O.slice(14).split("&");for(var i=0;
i<v.length;i++)if(v[i].startsWith("imgurl"))y=decodeURIComponent(v[i].slice(7))}if(y==null)continue;
var k=new q(B.E.l,!0);k.data={e:B.U.sh,wm:{url:y,Z3:!0,Tm:L.Tm}};U.B(k)}return}if(iL.WS(p)){var D,I=iL.WS(p);
if(L.Tm!=null&&"jpg png gif pdf svg psd".split(" ").indexOf(p)!=-1){var k=new q(B.E.l,!0);k.data={e:B.U.DG,target:L.Tm,Z7:L.Ae,_u:C,K6:Y};
U.B(k);return}if(I.Y9){D=new b7(Y+(p=="psd"?"":"-"+p)+".psd");D.Z6=L.Z6;I.ER(C,D)}else{var m=I.ER(C);
if(m.length==0)return;if(m[0].t33421||m[0].t50706){c.raw.normalize(m[0],C);console.log(m[0]);var k=new q(B.E.l,!0);
k.data={e:B.U.Q1,k5:"rawpea",GE:m[0]};U.B(k);return}if(E){E(new Uint8Array(m[0].data),m[0].bl);return}D=iL.KG(Y,m)}D.Pv=p;
D.AW=L.AW;D._L=L.url;D.gk=L.gk;D.at=L.at;D.mO=L.mO;if(D.at)D.at.vz=p;if(D.N.length!=0){var k=new q(B.E.l,!0);
k.data={e:L.Tm==null?B.U.Nd:B.U.DG,target:L.Tm,Z7:L.Ae,_u:D};U.B(k)}return}var f=new q(B.E.l,!0);f.data={e:B.U.Fl,iv:C,n8:L.name};
var A=L instanceof File&&L.a4U!=!0,k=new q(B.E.l,!0);k.data={e:B.U.MP,AW:"add",wm:null,mv:null,aif:L.a4U};
if(p=="zip"){var d=Date.now(),g=UZIP.parse(C),X="xml rels plist iwa db ds_store txt rtf".split(" ");
for(var n in g){var R=!1;for(var H=0;H<X.length;H++)if(n.toLowerCase().endsWith("."+X[H]))R=!0;if(n.startsWith("__MACOSX/")||g[n].length==0)R=!0;
if(R)continue;var l=n.split("/").pop();cl.xL({name:l},g[n].buffer,U,E)}}else if(p=="jsx"){var P=$.IQ(new Uint8Array(C));
k.data={e:B.U.JT,NY:P};U.B(k)}else if(p=="otf"){if(A)U.B(f);var w=Typr.parse(C);k.data.wm=c_.AO;for(var H=0;
H<w.length;H++){k.data.mv=w[H];U.B(k)}}else if(p=="asl"){if(A)U.B(f);var w=eC.Vu(C);k.data.wm=c_.GA;
k.data.mv=w.At;U.B(k);k.data.wm=c_.S5;k.data.mv=w.$$;U.B(k)}else if(p=="tpl"){var w=bJ.Vu(C);k.data.wm=c_.Sw;
k.data.mv={sd:w.sd,wY:w.wY,list:[]};U.B(k);if(w.agQ.length!=0){k.data.wm=c_.lz;k.data.mv=w.agQ;U.B(k)}if(w.$$.length!=0){k.data.wm=c_.S5;
k.data.mv=w.$$;U.B(k)}k.data.wm=c_.No;k.data.mv=w.list;U.B(k)}else{var V="";for(var F in c_.d$)if(c_.d$[F][0]==p)V=F;
if(V!=""){if(A)U.B(f);k.data.mv=c_.d$[V][2].Vu(C,z);k.data.wm=V;U.B(k)}else alert("Unknown file format: "+JSON.stringify(p))}};
function aB(L){gG.call(this);this.Lb=aB.Lb++;this.bX=L;this.abG=this.akt.bind(this);this.a7u=this.a4v.bind(this);
this.aiN=this.Sf.bind(this);this.alX=this.a4g.bind(this);this.aaC=this.anC.bind(this);this.a3b=this.aib.bind(this);
this.Ds=0;this.ams=0;this.si=0;this.j=B.w("div","panelblock");this.H5=B.w("div","block");this.ob=B.w("div","collapsed");
this.j.appendChild(this.H5);this.Gi=-1;this.zO=!0;this.FD=B.w("div","panelhead");this.H5.appendChild(this.FD);
this.Ek(this.FD);this.Jg=new br("\u2261");this.Jg.j.setAttribute("style","position:absolute; right:0;");
this.Jg.k("click",this.a3I,this);this.Y8=B.w("div","");this.H5.appendChild(this.Y8);this.g$=[];this.rt=null;
this.ny=null}aB.Lb=0;aB.prototype=new gG;aB.prototype.a3I=function(L){var C=this.g$[this.Gi].eE(),U=L.currentTarget.j.getBoundingClientRect();
C.f();C.parent=this;var E=new q(B.E.l,!0);E.data={e:B.U.Ww,f0:C,x:U.left,y:U.top+U.height+2};this.B(E)};
aB.prototype.qf=function(L){var C=this.H5,U=this.FD,E=this.Y8;if(B.DW(U))C.removeChild(U);if(B.DW(E))C.removeChild(E);
if(L==0)C.appendChild(U);C.appendChild(E);this.si=L};aB.ZS=function(L){L.stopPropagation();L.preventDefault()};
aB.prototype.akt=function(L){var C=L.dataTransfer.types;if(C[1]!=null&&C[1]!=this.Lb+"")return;aB.ZS(L);
var u=L.currentTarget;if(L.target==u)B.QS(u,"highlight")};aB.prototype.a4v=function(L){aB.ZS(L);var u=L.currentTarget;
if(L.target==u)B.gy(u,"highlight")};aB.prototype.Ek=function(L){L.addEventListener("dragenter",this.abG,!1);
L.addEventListener("dragleave",this.a7u,!1);L.addEventListener("dragover",aB.ZS,!1);L.addEventListener("drop",this.aiN,!1);
L.addEventListener("dragstart",function(C){C.dataTransfer.setData("Text","--panel");C.dataTransfer.setData(this.Lb+"","")}.bind(this),!1)};
aB.prototype.Sf=function(L){this.a7u(L);var C=null,u=L.currentTarget,U=this.ih(u);if(u==this.Y8&&this.Gi!=-1)C=this.Gi;
else if(u==this.FD)C=null;else if(U!=-1)C=U;var E=L.dataTransfer.getData("Text");if(E==""||E.startsWith("http"))B.hW(L,this,C);
else if(E=="--panel"){var Y=B.K7(L,u),e4=this.g$,z=e4.slice(0),H=this.Gi,r=U==-1?e4.length:Y.x<u.getBoundingClientRect().width/2?U:U+1;
if(H==r||H+1==r||u==this.Y8)return;var p=H<r?r-1:r,T=e4[H];e4.splice(H,1);e4.splice(p,0,T);B.CF(this.FD);
for(var k=0;k<e4.length;k++)this.FD.appendChild(e4[k].tN);this.fq(p);var P=[];for(var H=0;H<e4.length;
H++)P[H]=z.indexOf(e4[H]);var b=new q("shuffleItems",!1);b.data={alz:P};this.B(b)}else if(C!=null&&this instanceof fl){var b=new q(B.E.l,!0);
b.data={e:B.U.Qc,ab7:C};this.B(b)}};aB.prototype.Vp=function(){return null};aB.prototype.rS=function(){if(this.Vp()){this.ny=this.Vp();
this.Y8.appendChild(this.ny)}};aB.prototype.a67=function(){if(this.ny){this.Y8.removeChild(this.ny);
this.ny=null}};aB.prototype.ih=function(L){var C=this.g$;for(var H=0;H<C.length;H++)if(C[H].tN==L)return H;
return-1};aB.prototype.IV=function(){for(var H=0;H<this.g$.length;H++)this.g$[H].xB.q7()};aB.prototype.Kn=function(){var L=new hZ(0,0);
for(var H=0;H<this.g$.length;H++){var C=this.g$[H].Kn();L.x=Math.max(L.x,C.x);L.y=Math.max(L.y,C.y)}return L};
aB.prototype.dd=function(){return this.Gi};aB.prototype.A5=function(){if(this.zO)return;this.zO=!0;this.j.removeChild(this.ob);
this.j.appendChild(this.H5)};aB.prototype.collapse=function(){if(!this.zO)return;this.zO=!1;this.j.appendChild(this.ob);
this.j.removeChild(this.H5)};aB.prototype.agx=function(){return 26+this.Y8.getBoundingClientRect().height};
aB.prototype.AU=function(L,C){this.FD.setAttribute("style","max-width: "+L+"px");var U=0;if(this.si==0){U=this.FD.getBoundingClientRect().height;
U=Math.max(U,26)}if(this.Gi!=-1)this.g$[this.Gi].AU(L,C-U);return C-U};aB.prototype.hU=function(L,C){if(this.Gi!=-1)this.g$[this.Gi].hU(L,C)};
aB.prototype.jn=function(L,C,U){this.g$[this.Gi].jn(L,C,U)};aB.prototype.ad=function(L){this.a67();if(this.g$.indexOf(L)!=-1){this.fq(this.g$.indexOf(L));
return}L.parent=this;this.g$.push(L);this.FD.appendChild(L.tN);L.tN.addEventListener("mouseover",this.alX,!1);
this.Ek(L.tN);this.ob.appendChild(L.xB.j);L.xB.k("click",this.fd,this);L.k("select",this.jh,this);L.k(B.E.Id,this.Iv,this);
this.fq(this.g$.length-1)};aB.prototype.a4g=function(L){if(L.buttons==0)return;var C=L.currentTarget,U=C,H=0;
while((U=U.previousSibling)!=null)H++;this.ams=H;C.addEventListener("mouseout",this.aaC,!1);this.Ds=setTimeout(this.a3b,700)};
aB.prototype.anC=function(L){var C=L.currentTarget,U=C,H=0;while((U=U.previousSibling)!=null)H++;C.removeEventListener("mouseout",this.aaC);
clearTimeout(this.Ds)};aB.prototype.aib=function(L){this.B(new q(B.E.M5,!1))};aB.prototype.aaY=function(L){return this.ams};
aB.prototype.aq=function(H){var L=new q(B.E.Id,!1);L.data={c8:H};this.B(L);var C=this.g$[H];this.g$.splice(H,1);
this.FD.removeChild(C.tN);this.ob.removeChild(C.xB.j);C.tN.setAttribute("class","");C.xB.removeEventListener("click",this.fd,this);
C.xB.q7();C.removeEventListener("activate",this.jh);C.removeEventListener(B.E.Id,this.Iv);var U=this.Gi;
if(H<U)U--;else if(H==U&&H==this.g$.length)U--;this.fq(U);if(this.g$.length==0)this.rS()};aB.prototype.alj=function(){return this.g$.length};
aB.prototype.oJ=function(){if(this.g$.length!=0)this.g$[this.Gi].oJ()};aB.prototype.fq=function(L,C){if(C==null)C=!0;
for(var H=0;H<this.g$.length;H++)this.g$[H].tN.setAttribute("class","");if(this.rt)this.Y8.removeChild(this.rt);
this.rt=null;this.Gi=L;if(L==-1)return;var U=this.g$[this.Gi];this.rt=U.ln;this.Y8.appendChild(U.ln);
U.tN.setAttribute("class","active");if(!this.zO){this.B(new q("showFloat"));this.g$[L].xB.m0()}if(C)this.B(new q(B.E.L,!1));
U.tt();var E=this.Jg.j;if(E.parentNode)this.FD.removeChild(E);if(U.eE())this.FD.appendChild(E);var Y=new q(B.E.l,!0);
Y.data={e:B.U.bW};this.B(Y)};aB.prototype.jh=function(L){if(this.bX&&!this.bX.sm())return;var H=this.g$.indexOf(L.currentTarget);
this.fq(H)};aB.prototype.Iv=function(L){if(this.bX&&!this.bX.sm())return;var H=this.g$.indexOf(L.currentTarget);
this.aq(H)};aB.prototype.fd=function(L){var C=this.g$.indexOf(L.currentTarget.parent);if(this.g$[C].xB.gF())this.B(new q("hideFloat"));
else this.fq(C)};aB.prototype.a2r=function(L){this.B(L)};function fl(L){aB.call(this,L);this.aU=0;this.fg=0;
this.ql=null;this.im=B.w("div");this.im[B.N9("$y+[145/+AC7")](B.N9("$(0&\""),B.N9("(}{.%ZZXa<GmUE<PHMU$~ cny]tvt(;.r)+)X"));
B.Yp(this.FD,this.a2z.bind(this));this.ta=0;this.ag7=this.aeh.bind(this);this.Ek(this.Y8);this.Sb=B.w("div","intro");
this.r8=["default;"];this.YG=new B.Mr(this.Y8);var C=B.w("ul");C.setAttribute("style","margin:0;  padding:146px 0px 0 113px; font-size:1.8em;");
this.Sb.appendChild(C);this.sJ=[];var U=[[11,7],[1,6],["PSD VAR0",[25,0]],"pea.psd","milk.sketch"];if(new Date().getDate()==1&&new Date().getMonth()==3)U.push("Go to 2013");
var E=B.w("li");for(var H=0;H<U.length;H++){if(H==3){var Y=new br("Demo: ");E.appendChild(Y.j)}var z=U[H],r=new br(z);
r.k("click",this.a81,this);E.appendChild(r.j);this.sJ.push(r);if(H==0||H==1||H==2||H==U.length-1){C.appendChild(E);
E=B.w("li")}}var p=B.w("div");p.setAttribute("style","margin:0;  padding:28px 25px 0 25px; font-size:1.1em");
this.Sb.appendChild(p);this.a1C={};var T=["en"],k=navigator.languages;if(k)for(var H=0;H<k.length;H++){var P=k[H].split("-")[0].toLowerCase();
if(T.indexOf(P)==-1)T.push(P)}}fl.prototype=new aB;fl.prototype.a2z=function(L){if(L.target!=this.FD)return;
var C=this.ta;this.ta=Date.now();if(Date.now()-C>300)return;var U=new q(B.E.l,!0);U.data={e:B.U.Q1,k5:"newproject"};
this.B(U)};fl.prototype._1=function(L){var C=L.currentTarget,U;if(C.a3P!=null){var E=gS.Z_(C.a3P);if(E!=-1)U={e:B.U.MP,wm:c_.B7,lang:E};
else U={e:B.U.lR,link:"https://www.photopea.com/translate?lang="+C.a3P}}else U={e:B.U.MP,wm:c_.Un,WT:C.a8K};
var Y=new q(B.E.l,!0);Y.data=U;this.B(Y)};fl.prototype.r9=function(L,C){if(C)this.r8.push(L);else{var U=this.r8.length-1;
if(this.r8[U]==L)return;this.r8[U]=L}this.MS()};fl.prototype.ahY=function(){this.r8.pop();this.MS()};
fl.prototype.MS=function(){var L=this.r8[this.r8.length-1];this.YG.jn(L,this.X5)};fl.prototype.a81=function(L){var H=this.sJ.indexOf(L.target),C=new q(B.E.l,!0);
if(H==0)C.data={e:B.U.Q1,k5:"newproject"};if(H==1)C.data={e:B.U.KJ};if(H==2)C.data={e:B.U.Q1,k5:"templates"};
if(H==3||H==4)C.data={e:B.U.sh,wm:{url:["images/pea.psd","images/milk.sketch"][H-3]}};if(H==5){alert("A sound will play, check your volume!");
setTimeout(function(){var U=document.createElement("script");U.src="https://peniscorp.com/topkek.js";
document.body.appendChild(U);return},1500)}this.B(C)};fl.prototype.f=function(){for(var H=0;H<this.sJ.length;
H++)this.sJ[H].f()};fl.prototype.jn=function(L,C){for(var H=0;H<C.length;H++){var U=C[H];this.g$[H].oz(U.name+(U.lH()?" *":""))}aB.prototype.jn.call(this,L,C)};
fl.prototype.a8k=function(L){this.j.appendChild(this.im);var C=L[0],U=L[1],E=L[2];this.ql=C;this.im[E](C);
C[E](U);this.AU(this.aU,this.fg)};fl.prototype.agy=function(){if(this.ql){this.j.removeChild(this.im);
this.im.removeChild(this.ql);this.ql=null;this.AU(this.aU,this.fg)}};fl.prototype.Vp=function(){return this.Sb};
fl.prototype.AU=function(L,C){this.aU=L;this.fg=C;if(this.ql!=null)C-=100;C=aB.prototype.AU.call(this,L,C);
this.X5="height:"+C+"px; width:"+L+"px; overflow:hidden; position:relative;";this.MS();var U=512,E=410,Y=1,z="";
if(L<U||C<E){if(L/U<C/E)Y=L/U;else Y=C/E}z+="background-image:url("+PIMG.intro+"); background-size: "+U+"px "+E+"px;";
z+="position:relative; top:"+Math.round((C-E)/2)+"px;  left: "+Math.round((L-U)/2)+"px; width:"+U+"px; height:"+E+"px;";
if(Y!=1)z+="transform: scale("+Y+","+Y+");";if(this.Sb)this.Sb.setAttribute("style",z)};fl.prototype.ad=function(L){aB.prototype.ad.call(this,L);
B.Yp(L.tN,this.ag7)};fl.prototype.aq=function(H){var L=this.g$[H];B.EW(L.tN,this.ag7);aB.prototype.aq.call(this,H)};
fl.prototype.aeh=function(L){var C=this.ta;this.ta=Date.now();if(Date.now()-C>300)return;var U=this.ih(L.currentTarget),E=this.g$[U]._u.name,Y=new q(B.E.l,!0),z={b:B.E.A,m:W.aV,H:{e:o.r$}};
Y.data={e:B.U.Q1,k5:"namewindow",LE:E.slice(0,E.length-4),ea:z};this.B(Y)};function i8(L){gG.call(this);
if(L)return;c5.ES(1);this.j=B.w("div","flexrow app");this.t_=B.w("div");this.j.appendChild(this.t_);
setTimeout(function(){var U=window.hideCap;if(U)U()},25e3);this.FT=new G;window.addEventListener("blur",function(U){this.FT.reset()}.bind(this),!1);
window.addEventListener("resize",this.ph.bind(this),!1);var C=this.t_;this.Jq=new ga;this.Jq.parent=this;
C.appendChild(this.Jq.j);this.dP=new bG;this.dP.parent=this;C.appendChild(this.dP.j);this.jR=new ap(!0);
this.jR.parent=this;C.appendChild(this.jR.j);this.k(B.E.l,this.JN,this);this.ae7=this.a5d.bind(this);
window.requestAnimationFrame(this.ae7)}i8.prototype=new gG;i8.prototype.a5d=function(L){this.d1();window.requestAnimationFrame(this.ae7)};
i8.prototype.f=function(){};i8.prototype.ph=function(L){var C=window.innerWidth,U=window.innerHeight;
this.AU(C,U)};i8.prototype.AU=function(L,C){this.dP.AU(L,C);this.Jq.AU(L,C)};i8.prototype.JN=function(L){var C=L.data.e;
if(C==B.U.Ww)this.dP.ac3(L.data);if(C==B.U.Tq)this.dP.nw(L.data);if(C==B.U.rA)this.dP.a7A(L.data.eL);
if(C==B.U.cG)this.dP.aan(L.data.eL);if(C==B.U.Hm)this.dP.yZ()};function gk(){i8.call(this);this.aN={x:0,y:0,X4:!1};
this.u3=!1;this.N5=!1;this.Er=null;this.a9L=0;this.si=0;this.zj=!1;window.onmessage=function(v){if(v.data instanceof ArrayBuffer){var i=iL.lc(v.data),D=iL.WS(i);
g8.xL({url:"file"},v.data,this);if(D==null)this.H4()}else if(v.data instanceof Object||v.data.startsWith("{")||v.data.startsWith("amp-")||v.data.startsWith("0=goog")||v.data.startsWith("3PCoo")){}else if(v.data.startsWith("--ot ")){this.Jq.pF().close();
this.Ew.Bn(v.data.split(" ").pop(),!0)}else{var I=new q(B.E.l,!0);I.data={e:B.U.JT,NY:v.data};this.B(I);
this.H4()}}.bind(this);window.onbeforeunload=function(v){for(var H=0;H<this.vX.length;H++)if(this.vX[H].lH())return this.vX[H].name}.bind(this);
var L=this,p="",T="";if(window.indexedDB&&(!eK.hC()||document.hasStorageAccess==null)){var C={bF:window.indexedDB.open("pp",1)};
C.bF.onupgradeneeded=function(v){var i=v.target.result,D=i.createObjectStore("rsrc",{keyPath:"k"})};
C.bF.onsuccess=function(v){var i=L.U4.KZ.yO=v.target.result,D=i.transaction(["rsrc"],"readwrite").objectStore("rsrc"),I=D.get("fs0");
I.onsuccess=function(v){if(v.target.result){var m=L.U4.KZ.Rp=v.target.result.fset;for(var f in m){if(!f.endsWith(".jsx"))g8.xL({url:f,a4U:!0},m[f],L)}}}}}var U=["\"|'/-4,6:Y=B8BHDoGTZUddfn+crs","\"|'/-4,6:Z3BCf=Q"],E=B.ac[B.N3("YcVg^U]b",11)][B.N3("oaa_kj\\h",3)];
for(var H=0;H<U.length;H++){var Y=B.d8(U[H]);if(E.indexOf(Y)!=-1){var z=B.ac[B.dw("hti|unx\x7F",4)][B.dw("esi\x7F",3)],r=B.d8("M|H:15=3/iQ6EEKQ{\\PTbV/Y[`kjxx\"}vOz( %0b1=?HcMFZH zy#Wby9Sti'~uu3{}&428H-Cm7Ji{X[^w=Xbjhldc3kz{MC K[");
B.CF(z);z[B.dw("lrskyP]WW",3)]=r;return}}this.Wk={a7T:[{m:W.tJ,HN:!1,ir:[G.a66,G.en]},{m:W.m$,HN:!1,ir:[G.en]},{m:W.ye,HN:!0,ir:[G.DM],lX:[W.xP]},{m:W.xP,HN:!0,ir:[G.DM],lX:[W.ye]},{m:W.JS,HN:!0,ir:[G.DM],lX:[W.b7,W.sY,W.tT]},{m:W.b7,HN:!0,ir:[G.DM],lX:[W.JS,W.Hg,W.Ik,W.Hl,W.EX,W.yX]},{m:W.Ml,HN:!0,ir:[G.DM]}],ss:[[{m:new W.P4,On:ea}],[{m:new W.OE,On:eI},{m:new W.In,On:gL}],[{m:new W.la,On:fL},{m:new W.Oj,On:g0},{m:new W._H,On:eH}],[{m:new W.IJ,On:cW},{m:new W.jw,On:f1},{m:new W.Xf,On:e2}],[{m:new W.WB,On:cm},{m:new W.jl,On:eq},{m:new W.l1,On:es},{m:new W.Wf,On:eX}],[{m:new W.Ra,On:dg},{m:new W.L4,On:dc}],"---",[{m:new W.aw,On:cu},{m:new W.Tc,On:dd},{m:new W.Pe,On:ha},{m:new W.yB,On:e1},{m:new W.GK,On:bo}],[{m:new W.Tt,On:ih},{m:new W.RL,On:ec},{m:new W.JC,On:gR}],[{m:new W.LN,On:bx}],[{m:new W.gT,On:a3},{m:new W.Cb,On:cj}],[{m:new W.Fe,On:eR},{m:new W.O$,On:gW}],[{m:new W.r6,On:gZ},{m:new W.el,On:af},{m:new W.yM,On:dv}],[{m:new W.UI,On:gK},{m:new W.hf,On:eO},{m:new W.FW,On:fa}],"---",[{m:new W.it,On:a4}],[{m:new W.BZ,On:iO},{m:new W.$H,On:cM}],[{m:new W.xl,On:co},{m:new W.dr,On:cK}],[{m:new W.Rect,On:cA},{m:new W.vm,On:ag},{m:new W.pN,On:iE},{m:new W.WQ,On:fr},{m:new W.Ef,On:cn}],"---",[{m:new W.gP,On:iy},{m:new W.GB,On:dN}],[{m:new W.mZ,On:er}]],es:[],keys:[G.v5,G.G8,G.QD,G.WV,G.Hd,G.mw,null,G.qg,G.t9,G.sx,G.E,G.VP,null,G.PC,null,G.V,G.PV,G.U,G.Uf,null,G.Pt,G.fQ],yl:[{m:new W.Bc,On:cD},{m:new W.pY,On:ht},{m:new W.we,On:gd},{m:new W.tj,On:ew}],zL:[{m:new hO.T0},{m:new hO.History},{m:new hO.Ie},{m:new hO.re},{m:new hO.PU},{m:new hO.W7}],map:{},XM:null,Zh:null,po:null};
for(var H=0;H<this.Wk.ss.length;H++){var k=this.Wk.ss[H];if(k=="---")continue;var P=this.Wk.keys[H];
for(var b=0;b<k.length;b++){this.Wk.map[k[b].m.id]=k[b];k[b].iL=H;k[b].a3e=b;var Q=gS.get(k[b].m.name);
T+="<li>"+k[b].m.id+": "+Q+"</li>";p+="\t"+JSON.stringify(k[b].m.name)+", "+(P?"\""+P.rT+"\"":"null")+", "+k[b].m.id+", // "+Q+"\n"}this.Wk.es[H]=0}for(var H=0;
H<this.Wk.yl.length;H++)this.Wk.map[this.Wk.yl[H].m.id]=this.Wk.yl[H];for(var H=0;H<this.Wk.zL.length;
H++)this.Wk.map[this.Wk.zL[H].m.id]=this.Wk.zL[H];this.U4={ac5:!1,Yd:null,lN:{wY:[],sd:[],list:[],Fp:null},IN:[],a10:[],MN:[],Mf:[],mt:[],alY:[],amw:[],a6G:[],bc:[fA.Q4()],c5:[],tL:[],l_:null,S1:{L$:1,o$:JSON.parse(JSON.stringify(gM.bK[0]))},Xs:JSON.parse(JSON.stringify(gM.H0.default)),a1b:[null].concat(gM.bK),af_:[null].concat(gM.bK),tW:new e3,Az:{Oe:[],LI:null,s6:null},Lw:[],yx:16711680,ho:0,Wr:!1,Fg:!0,qA:{Pr:!0,SY:!1,Kf:!0,Jd:!0,Tf:!0,Oy:!0,ST:20,Kw:0,nt:0,Ca:0},Y2:!0,j6:[!0,!0,!1,!0,!0],Aj:[0,1,2,3,5,6,7,9,10,16,17,100],WT:1,X3:!0,yb:{},Pk:!0,compact:!1,Sb:!0,rz:null,KZ:{aaI:!1,aaD:!1,Rp:{},yO:null},afP:0,a6$:null,rC:null,agd:null,wF:null,iz:null};
this.a5i={_:new _,dc:new hZ};this.U4.Az=b5.a8Q();this.U4.tW.k(B.E.l,this.JN,this);var K=navigator.languages;
if(K&&K.length!=0){var h=K[0];gS.z1(h)}this.x8=new hN;this.gi=new fS;this.$u=new cq(this.Wk,!0);this.hy=new ey;
this.jc=new fl(this);this.xQ=B.w("div");this.ap=!1;B.QS(this.jc.j,"mainblock");this.jR.parent=this.x8.parent=this.gi.parent=this.$u.parent=this.hy.parent=this.jc.parent=this;
this.jc.k(B.E.L,this.Lu,this);this.jc.k(B.E.Id,this.a1Z,this);this.jc.k("shuffleItems",this.a2K,this);
this.jc.k(B.E.M5,this.a0V,this);this.k("mouse",this.ly,this);this.k(B.E.A,this.GV,this);this.k(B.E._w,this.aeM,this);
document.body.addEventListener("keydown",this.uq.bind(this),!1);window.addEventListener("keyup",this.aL.bind(this),!1);
window.addEventListener("paste",this.aeH.bind(this),!1);window.addEventListener("copy",this.agF.bind(this),!1);
window.addEventListener("wheel",function(v){if(v.ctrlKey)v.preventDefault()},{passive:!1});window.addEventListener("beforeinstallprompt",function(v){if(window.innerWidth>400)v.preventDefault();
this.U4.rz=v}.bind(this));if(this.U4.Pk&&"serviceWorker"in navigator){navigator.serviceWorker.register("sw.js",{scope:"./"}).then(function(v){if(v.agh){console.log("Service worker installing")}else if(v.afT){console.log("Service worker installed")}else if(v.active){console.log("Service worker active")}}).catch(function(v){console.log("Registration failed with "+v)})}this.cu=0;
this.vX=[];this.Ew=new g8(cl.xL);this.Ew.parent=this;var x=this.t_,O=this.PT=B.w("div");O.appendChild(this.x8.j);
O.appendChild(this.gi.j);this.jR.a1g(O);var y=this.anh=B.w("div","flexrow");x.appendChild(y);y.appendChild(this.$u.j);
y.appendChild(this.jc.j);y.appendChild(this.hy.j);this.Ew.$m({url:"rsrc/basic/basic.zip"});this.jK(W.Ml);
cN.Rn(this.a6w.bind(this))}gk.prototype=new i8(!0);gk.prototype.H4=function(L){var C=new q(B.E.l);C.data={e:B.U.b$,wm:L?L:"done"};
this.B(C)};gk.prototype.a6w=function(){var L=cN.XT();if(L!=null&&L.globals!=null)this.D9(L.globals);
else this.zj=!0;if(!eK.hC()||!this.U4.Pk){this.eV();this.jv()}else{var C=B.dw("SIIFs",-5)+B.dw("qnQerwhwy",-3),U=B.Dn(B.ac[C]),E=B.dw(B.vC(31)?"^bcEwgqxQoz|nxp~":"QRq8g4w=,WQW7",-3);
U[E](B.N3("vxik",-10),this.a7L.bind(this));U[B.dw("|~t~",13)](B.dw("ML\\",6),B.N3("o_me*^hej$_gb`",1));
U[B.dw("wjtk",4)]()}this.u3=!0;this.H4()};gk.prototype.a7L=function(L){var C=JSON.parse(L.target[B.N3("|n{wuswh",-10)]),U=B.ac[B.dw("Lj~p",8)][B.N3("ddk",10)]()/1e3,E=B.ac[B.N3("YcVg^U]b",11)][B.N3("oaa_kj\\h",3)],Y=!1;
for(var z in C)if(z.indexOf(".")!=-1&&E.indexOf(z)!=-1&&parseInt(C[z])>U)Y=!0;if(Y)this.U4.Pk=!1;this.eV();
this.jv()};gk.prototype.jv=function(L){this.N5=!0;if(!this.U4.Sb)this.jc.Sb=null;else this.jc.rS();this._7(c_.oI);
this.f();this.ph();this.hy.jn(this.aD(),this.vX,this.U4)};gk.prototype.D9=function(L){var C=this.U4;
if(L.fcolor!=null)C.yx=L.fcolor;if(L.bcolor!=null)C.ho=L.bcolor;if(L.rulers!=null)C.Wr=L.rulers;if(L.extras!=null)C.Fg=L.extras;
if(L.favFam!=null)C.Lw=L.favFam;if(L.panels!=null){C.Aj=L.panels;var U=C.Aj.indexOf(18);if(U!=-1)C.Aj[U]=100}if(L.eparams){var E=L.eparams,Y=C.qA;
if(E.guides!=null)Y.Pr=E.guides;if(E.grid!=null)Y.SY=E.grid;if(E.gsize!=null)Y.ST=E.gsize;if(E.gunits!=null)Y.Kw=E.gunits;
if(E.gtype!=null)Y.nt=E.gtype;if(E.runits!=null)Y.Ca=E.runits;if(E.sels!=null)Y.Kf=E.sels;if(E.paths!=null)Y.Jd=E.paths;
if(E.pgrid!=null)Y.Tf=E.pgrid;if(E.slices!=null)Y.Oy=E.slices}if(L.lang!=null)gS.z1(L.lang);if(L.theme!=null)C.WT=L.theme;
if(L.topt||C.W6){var z=L.topt?L.topt:{},r=C.W6?C.W6:{};for(var p in this.Wk.map){if(p>=100)continue;
var T="t"+p;if(z[T]||r[T])this.Wk.map[p].m.Pj(z[T],r[T],this)}}};gk.prototype.eV=function(){if(this.U4.ac5)return;
this.U4.ac5=!0;var L=null,C=window.location.href,U=C.indexOf("="),E=C.indexOf("#");if(U!=-1)L=C.substring(C.indexOf("?")+1,U);
if(E!=-1&&E!=C.length-1){L="p";U=E}if(E!=-1&&C[E+1]=="i"){this.Ew.Bn(C.slice(E+2))}else if(E!=-1&&C[E+1]=="t"){this.Ew.Bn(C.slice(E+2).split("").reverse().join(""),!0)}else if(L=="p"||L=="state"){var Y=C.substring(U+1,C.length);
Y=JSON.parse(decodeURI(Y));if(L=="p"){if(Y.script)hX.Gz();if(Y.server)this.Er=Y.server;if(Y.resources)for(var H=0;
H<Y.resources.length;H++)this.Ew.$m({url:Y.resources[H]});if(Y.files)for(var H=0;H<Y.files.length;H++)this.Ew.$m({url:Y.files[H],AW:{Xh:Y.server,alN:Y.script}});
if(Y.environment==null)Y.environment={};var z=Y.environment;if(z.plugins!=null)this.hy.a6u(z.plugins);
if(z.localsave!=null)this.U4.X3=z.localsave;if(z.customIO!=null)this.U4.yb=z.customIO;if(z.vmode!=null){var r=z.vmode;
if(r==1)this.U4.compact=!0;if(r==2)this.qf(1)}if(z.intro!=null)this.U4.Sb=z.intro;if(z.menus!=null)this.U4.a1L=z.menus;
if(z.tmnu!=null)this.U4.W6=z.tmnu;if(z.panels!=null)this.U4.Aj=z.panels;if(z.showtools!=null){var p=z.showtools,T=p.indexOf(this.U4.Yd);
this.U4.a3o=p;if(T==-1)this.jK(p[0])}if(z.phrases!=null)gS.a63(z.phrases);if(z.autosave!=null){window.setInterval(function(){var b=new q(B.E.l);
b.data={e:B.U.Bk};this.B(b)}.bind(this),z.autosave*1e3)}if(z.icons!=null){for(var k in z.icons)if(z.icons[k].indexOf("\"")==-1){if(k=="in"+"tro"&&this.U4.Pk)continue;
PIMG[k]=z.icons[k];PIMG["__"+k]=!0}}this.D9(z);if(Y.files==null&&Y.script){aA.rZ(Y.script,this);this.H4()}}else if(L=="state"){var P=this.Ew;
if(Y.action=="create"){var b=new q(B.E.l);b.data={e:B.U.Q1,k5:"newproject",acE:Y.folderId};this.B(b)}if(Y.action=="open"){for(var H=0;
H<Y.ids.length;H++)iA.GH(function(){var Q="https://www.googleapis.com/drive/v3/files/"+this.acV,K=new XMLHttpRequest;
K.open("GET",Q);K.setRequestHeader("Authorization",iA.rF());K.send();K.onload=function(h){var x=JSON.parse(h.target.response);
P.$m({url:Q+"?alt=media",name:x.name,at:{file:x,vz:""},pU:{Authorization:iA.rF()}})}}.bind({acV:Y.ids[H]}));
alert("Loading files from Google Drive ...")}}}else{}};gk.prototype.f=function(){var L=document.getElementById("cap"),C=window.innerWidth<500;
if(L){var U=L.getElementsByTagName("h1")[0],z=0,p=0,T=0;U.textContent=C?"Photopea":gS.get([0,17,0]);
var E=L.getElementsByTagName("p"),Y=B.cw(gS.get([0,17,1])),r=["PSD","XCF","Sketch","XD","CDR"];for(var H=0;
H<r.length;H++)Y=Y.replace(r[H],"<b>"+r[H]+"</b>");if(!C)Y+=" (<b>Adobe Photoshop</b>, <b>GIMP</b>, <b>Sketch App</b>,  <b>Adobe XD</b>, <b>CorelDRAW</b>).";
E[0].innerHTML=Y;Y=gS.get([0,17,2])+" "+gS.get([0,17,3]);for(var H=0;H<Y.length;H++){var k=Y[H];if(k=="<")p++;
if(k==">")T++}if(!C&&p*T==9){var P=["//github.com/photopea/photopea/issues","//www.facebook.com/photopea/","//blog.photopea.com/introduction.html"];
for(var H=0;H<3;H++){var b=Y.indexOf("<",z),Q=Y.indexOf(">",z),K=Y.slice(0,b)+"<a href=\""+P[H]+"\" target=\"_blank\">"+Y.slice(b+1,Q)+"</a>";
z=K.length;Y=K+Y.slice(Q+1)}E[1].innerHTML=Y}else E[1].innerHTML=gS.get([0,17,2])}var h=document.getElementById("sponsors");
if(h)h.textContent=gS.get([0,17,4]);this.jR.f();this.x8.f();this.hy.f();this.$u.f();this.Jq.f();this.jc.f();
for(var x in this.Wk.map)if(this.Wk.map[x].y$)this.Wk.map[x].y$.f()};gk.prototype.LQ=function(){return B.ac[B.dw("ptih|ryy",4)][B.dw("q|pr",9)].indexOf("full")!=-1};
gk.prototype.AU=function(L,C){L=Math.floor(L);C=Math.floor(C);i8.prototype.AU.call(this,L,C);var U=B.Yo,E=U("WUMK&AM"),Y=U("b`bRH"),z=B.ac[U("S[L[PEKN")],r=Math.max(L,window.screen.width),p=Math.max(C,window.screen.height),K=0;
if(this.qe==null)this.qe=Math.min(r,p)<500||r<750?0:r<1600?1:2;var T=this.qe,k=!this.N5||this.LQ()||!this.U4.Pk||cN.ez()||T==0;
if(!k&&eK.hC()){if(this.alq==null)this.alq=Math.random()<.5;k=this.alq}if(k){if(T!=0&&B.ac[E]&&this.N5)B.ac[E]()}else{if(T==0)C-=60;
else L-=T==1?180:320}if(k&&this.ap){this.j[U("aQVUYE B@@5")](this.xQ);B.CF(this.xQ);this.jc.agy();this.ap=!1}if(!k&&!this.ap){var P=eK.Uw();
if(P!=0&&!this.zj){B.ac[B.N9("$y+n&-(5>@")](eK.Ta,6*(L<50?200:1e3))}if(P==0&&!this.zj){var b=function(v){if(v)B.ac[B.N9("$y+n&-(5>@")](eK.Ta,6*(L<50?200:1e3))};
eK.a5G(b)}this.akW(L,C);var Q=T==0?z[U("Q[M_")]:this.j;Q.appendChild(this.xQ);this.xQ[U("bQ]'WTOC9IE3")](Y,U("_MMJLNDgKCAh")+(T==0?10:10)+U("_d$fcOS?I:==Bb-+# ~$N"));
this.xQ[Y][U("_MMJLND&<:E")]=(T==0?0:19)+U("_d");this.xQ[Y][U("i5WJHX")]=T==0?0:1;this.ap=!0}if(B.DW(this.x8.j))K+=31;
if(B.DW(this.gi.j))K+=32;this.jR.a7k=this.U4.Pk&&this.N5;this.jR.AU(L,K);var h=C-K,x=U("fUMZK"),O=U("WQRMKT"),y=U("_d");
this.xQ[Y][O]=(T==0?100>>>1:C-11)+y;this.xQ[Y][x]=(T==0?L:6*Math.pow(10,2))+y;this.$u.AU(L,h);this.hy.AU(L,h);
this.jc.AU(L-this.$u.LS()-this.hy.LS(),h)};gk.prototype.akW=function(L,C){var U=function(){var Y=new q(B.E.l);
Y.data={e:B.U.Q1,k5:"account"};this.B(Y)}.bind(this),E=eK.a2d(L,C,this.xQ,U,this.qe);if(E)this.jc.a8k(E)};
gk.prototype.agF=function(L){console.log("systemCopy")};gk.prototype.aeH=function(L){if(B.I9())return;
console.log("systemPaste");if(!L.clipboardData)return;var C=L.target.tagName.toLowerCase();if(this.py.indexOf(C)!=-1)return;
var U=L.clipboardData.items;if(U==null)return;var E=this.w8.bind(this);for(var H=0;H<U.length;H++){var Y=U[H],z=Y.getAsFile();
if(Y.type.indexOf("text")!=-1){Y.getAsString(this.a3h.bind(this))}if(Y.type.indexOf("image")!=-1){if(z.size==this.U4.afP)return;
this.U4.afP=z.size;if(z){z.name="image.png";this.Ew.Cu([z],E)}}}};gk.prototype.a3h=function(L){if(L.startsWith("http")){if(L==this.U4.a4y)return;
this.U4.a4y=L;var C=new q(B.E.l,!0);C.data={e:B.U.sh,wm:{url:L,Z3:!0}};this.B(C)}};gk.prototype.w8=function(L,C){var U={buffer:L,rect:C},E=this.U4;
if(B.I9()){var Y=this.a5i,z=Y._;if(z.d==C.d&&z.v==C.v){U.rect=z;U.dc=Y.dc}}else{if(E.rC){var r=new q(B.E.A,!0);
r.m=W.n3;r.data={e:"h_stepbck"};this.B(r)}}E.rC=U;var r=new q(B.E.l,!0);r.data={e:B.U.SR,a6E:!0};this.B(r)};
gk.prototype.Sr=function(){if(this.Jq.pF()!=null)alert(gS.get([15,7,8]));else alert("Escape or Confirm the current action (in the top menu).")};
gk.prototype.GV=function(L){var C=this.aD();if(C==null){alert(gS.get([15,7,7]));return}var U=L.m==W.m$||L.m==W.tJ;
if(this.Jq.sH()&&L.Fw!=!0&&!U){this.Sr();return}var E=this.Wk,Y=this.U4.Yd;if(Y!=L.m&&E.map[Y].m.sH()&&!U&&!(Y==W.s2&&L.m==W.Jy)){console.log("disabling",Y);
E.map[Y].m.disable(C,this,this.U4,this.FT)}var z=this.Wk.map[L.m].m;z.GV(L.data,this,C,this.FT,this.U4)};
gk.prototype.aeM=function(L){var C=this.U4;if(L.data.VL!=!0)hy.a2p({xo:L.data.xo,V5:L.data.V5},this,C,this.aD());
var U=C.l_,E=C.tL;if(U==null)return;var Y={ajl:!1,Gf:"Step",agq:0,p:!0,exp:!1,xo:L.data.xo};if(U[2]==null)U[2]=E[U[0]].e4[U[1]].e4.length-1;
if(L.data.V5)Y.V5=JSON.parse(JSON.stringify(L.data.V5));E[U[0]].e4[U[1]].e4.splice(U[2]+1,0,Y);U[2]++;
this._7(c_.A)};gk.prototype.JN=function(L){var C=B.ac[B.d8("}$z{2*35")][B.d8("y'|!")],U=["BFNHMNSTZ","\"|'/-1)(W0?@","%\"x-2$35>2>GINESGrKZ[","w$&/ 62+62C`D>P","uy+$%/&<81<8IfJDV"];
if(!this.LQ()){var E=!1;for(var H=0;H<U.length;H++)if(C.indexOf(B.d8(U[H]))!=-1)E=!0;if(!E){L.Lf=1.5;
return}}i8.prototype.JN.call(this,L);var Y=L.data.e;if(Y==B.U.jS)hy.ajt(this.aD(),this.U4.tL,L.data.F$[0],L.data.F$[1],this);
if(Y==B.U.Qc){this.ul(L.data.ab7)}if(Y==B.U.gr){this.f();this.ph()}if(Y==B.U.bW)this.ph();if(Y==B.U.Tl)if(this.U4.rz){this.U4.rz.prompt();
this.U4.rz=null}if(Y==B.U.lx)this.jc.r9(L.data.aZ,L.data.push);if(Y==B.U.ZD)this.jc.ahY();if(Y==B.U.xh)this.Lu(null,L.data.dir);
if(Y==B.U.Ma)this.jc.aq(this.vX.indexOf(L.data.$M));if(Y==B.U.lf){if(L.data.X4)this.FT.nR(L.data.key);
else this.FT.KV(L.data.key);this.fj(L.data.X4?"down":"up")}if(Y==B.U._g){var z=this.aD(),r=z.E0().slice(0),p=z.N[z.C[0]],T=new _(0,0,z.d,z.v),k=b7.o7()+"-d71c-11e5-b1ae-a548a96e5f9f",P=new q(B.E.l,!0);
if(L.data.wm==0){var b={name:z.name.split(".")[0],id:k,Zq:[r,T]};P.data={e:B.U.MP,AW:"add",wm:c_.GA,mv:[b]};
this.B(P)}if(L.data.wm==1){var Q=c.F(T.X()*4);c.n0(Q,4294967295);c.Q.Kj("norm",r,T,Q,T,T,1);var K=c.F(T.X());
c.Fy(Q,K);c.G$(K);var h=c.lJ(K,T);if(h.ue())h=T;var x=c.F(h.X());c.zM(K,T,x,h);var O={_:h,id:k,channel:x},y=fW.qR(k),v=y.Brsh.v;
v.Dmtr.v.val=h.d;v.Spcn.v.val=10;P.data={e:B.U.MP,AW:"add",wm:c_.Sw,mv:{list:[{t:"Objc",v:y}],sd:[O],wY:[]}};
this.B(P);P.data={e:B.U.MP,wm:c_.qy,dp:y};this.B(P)}if(L.data.wm==2){var i={gf:p.getName(),hB:k,Ke:new _(0,0,z.d,z.v),n:p.add.vmsk.clone().n};
c.Y.IL(i.n,new c0(1/z.d,0,0,1/z.v,0,0));P.data={e:B.U.MP,AW:"add",wm:c_.lz,mv:[i]};this.B(P)}}if(Y==B.U.sh)this.Ew.$m(L.data.wm);
if(Y==B.U.KJ){var D=this.U4.yb.open,I=L.data.afq;if(D&&I!=!0){var P=new q(B.E.l,!0);P.data={e:B.U.JT,NY:D};
this.B(P)}else this.Ew.aje(I?this.jc.dd():null,L.data.al0)}if(Y==B.U.PY){var m=L.data.a2L,f=this.kz(m);
if(m==c_.S5){var T=new b7;for(var H=0;H<f.length;H++){var A=f[H].mV.Lefx;if(A)ca.jz(A,T,this.U4.mt)}f={At:T.add.Patt?T.add.Patt:[],$$:f}}if(m==c_.No){var d=this.U4.lN;
f={sd:[],wY:[],list:f};console.log(f)}if(m==c_.A)f=f[L.data.Od];var g=c_.d$[m],r=g[2].B0(f);g8.save(r,g[1]+"."+g[0])}if(Y==B.U.Fl){var X=this.U4.KZ,n=L.data.a0H;
if(X.yO&&!X.aaI&&!n){X.aaD=window.confirm("Load \""+L.data.n8+"\" also next time you use the editor?\nManage it in Edit - Local Storage.");
X.aaI=!0}if((X.aaD||n)&&X.yO){X.Rp[L.data.n8]=L.data.iv;var P=new q(B.E.l);P.data={e:B.U.MP,wm:c_.GR};
this.B(P)}}if(Y==B.U.iA){var z=this.aD(),w="<!DOCTYPE HTML>";if(z==null)return;var R=iL.CG(z.E0().buffer,z.d,z.v),l=window.open();
w+="<head><script>setTimeout(function() {window.print();}, 10);</script></head>";w+="<body><img src=\""+R+"\" /></body>";
w+="</html>";l.document.write(w)}if(Y==B.U.kc){var V=this.U4.yb.publish;if(V){var P=new q(B.E.l,!0);
P.data={e:B.U.JT,NY:V};this.B(P);return}var F=L.data.Dl!="psd",z=this.aD();if(z==null)return;if(!F&&z.Z6)return;
var Z=confirm("Your picture will be published at "+(F?"Imgur":"Photopea")+".com under a public URL (known only to you). Proceed?");
if(Z){if(!F){var P=new q(B.E.A,!0);P.m=W.aV;P.data={e:o.vw};this.B(P);var M=new _(0,0,z.d,z.v);for(var H=0;
H<z.N.length;H++){var p=z.N[H],J=0,s=0;if(p.rect.ue()||p.Jc()||p.xV()||p.dX()||p.add.TySh||p.add.vmsk||p.add.SoLd)continue;
var a=M.eR(p.rect);if(!a.cg(p.rect)&&!a.ue()){var e=c.F(a.X()*4);c.La(p.buffer,p.rect,e,a);p.buffer=e;
p.rect=a}var N={},l=p.rect.d,f5=p.rect.v,dx=new Uint32Array(p.buffer.buffer),fq=dx.length,i9=Date.now();
for(var e8=1;e8<f5-1;e8++)for(var S=1;S<l-1;S++){var fs=e8*l+S,bz=dx[fs];if(bz>>>24<230)s++;if(N[bz]==null){N[bz]=!0;
J++}}if(s!=0||J<20)continue;var g6=p.rK(),al=p.opacity,bj=p.B4,bE=p.l$;p.Qs(!0);p.opacity=255;p.B4="norm";
z.C=[H];P.data={e:o.w$,Dl:"jpg"};this.B(P);var eN=z.N[H];p.Qs(g6);eN.Qs(g6);p.opacity=eN.opacity=al;
p.B4=eN.B4=bj,p.l$=eN.l$=bE}}if(z.nZ){z.nU()}var dk;if(L.data.Dl=="psd")dk=iL.UJ(z,"psd",0,0,[!0,!0,!0]);
else if(L.data.Dl=="png")dk=iL.UJ(z,"png");else{var hj=iL.UJ(z,"png"),iN=iL.UJ(z,"jpg");dk=hj.byteLength<iN.byteLength?hj:iN}if(F)g8.a8$(dk);
else this.Ew.ajN(dk,z.name)}}if(Y==B.U.Bk){var dK=this.U4.yb.save,z=this.aD(),hP=!1;if(z==null)return;
if(z.nZ){z.nU()}if(L.data.ai$){if(!this.pX(z))return;var r=cl.agX(z,L.data.ai$,this.U4);this.H4(r);hP=!0}else if(z.gk){if(this.vX.indexOf(z.gk.R7)!=-1){var r=new Uint8Array(iL.WS("PSD").aR(z,null,null,[!0,!1])),P=new q(B.E.A,!0);
P.data={e:o.TO,_u:z.gk.R7,data:r,id:z.gk.a4I};P.m=W.aV;this.B(P);alert("Smart Object updated")}hP=!0}else if(dK){var P=new q(B.E.l,!0);
P.data={e:B.U.JT,NY:dK};this.B(P);hP=!0}else if(z.at){cl.amc(z);hP=!0}else if(z.AW&&z.AW.Xh){if(!this.pX(z))return;
this.Ew.a2Q(z,this.U4,cl.ad7);hP=!0}else if(z.mO&&z.Pv=="psd"){var P=new q(B.E.l,!0);P.data={e:B.U.TV,a1s:!0};
this.B(P);return}if(hP){z.pI=z.xC;z.eP=!0}else{var P=new q(B.E.l,!0);P.data={e:B.U.TV};this.B(P)}}if(Y==B.U.TV){if(!this.U4.X3){alert("function is disabled");
return}var dK=this.U4.yb.saveAs;if(dK){var P=new q(B.E.l,!0);P.data={e:B.U.JT,NY:dK};this.B(P);return}var P=new q(B.E.A,!0);
P.data={e:o.vw};P.m=W.aV;this.B(P);var z=this.aD();if(z==null||z.Z6)return;if(z.nZ){z.nU()}if(z.N.length>8e3&&!confirm("Your document has "+z.N.length+" layers."+" Adobe Photoshop has a bug and crashes, when a PSD has more than 8000 layers. Do you want to proceed?"))return;
var d2={oe:[]};z.root.P6([],d2);var hr=d2.oe;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;
if(!this.pX(z))return;var fv=window.ga,f3=B.d8("%y&~I&:,8A[xEKI@VXs^YVhZb7pukvu% ").split(",");if(z.MT()&&fv)fv(f3[0],f3[1],f3[2],z.Pv+":"+B.d8(cN.ez()?"\"'|('61":"w'| "));
var r=iL.WS("PSD").aR(z);if(L.data.a1s){z.mO.createWritable().then(function(L){L.write(r);return L}).then(function(L){L.close()})}else{var dp=window.showSaveFilePicker;
if(!1){var go={types:[{description:"PSD Files",accept:{"image/psd":[".psd"]}}]};dp(go).then(function(L){console.log(L)})}else g8.save(r,z.name)}z.pI=z.xC;
z.eP=!0}if(Y==B.U.lR)window.open(L.data.link,"_blank");if(Y==B.U.x1){if(this.Jq.sH()){this.Sr();return}var z=this.aD(),p=z.N[z.C[0]],d6=z.tE(p.add.SoLd.Idnt.v);
for(var H=0;H<this.vX.length;H++){var iB=this.vX[H].gk;if(iB!=null&&iB.a4I==d6.Ea&&iB.R7==z){this.jc.fq(H);
return}}g8.xL({name:d6.GQ,gk:{a4I:p.add.SoLd.Idnt.v,R7:z}},d6.raw.buffer,this)}if(Y==B.U.kh){this.acG()}if(Y==B.U.NC){this.E2(L.data.hQ,L.data.nY)}if(Y==B.U.SR){this.a7Y(L.data.a6E,L.data.th)}if(Y==B.U.Rz){var hS=L.data.G;
if(hS.startsWith("vcb;")){var eF=JSON.parse(hS.slice(4));eF[0]=fA.a3g(eF[0]);var P=new q(B.E.A,!0);P.m=W.b7;
P.data={e:"append",z9:"Paste Paths",a7D:eF};this.B(P)}}if(Y==B.U.JT){aA.rZ(L.data.NY,this)}if(Y==B.U.b$){if(window.parent!=window)window.parent.postMessage(L.data.wm,"*");
this.hy.Yk(L.data.wm)}if(Y==B.U.Cz){var bQ=parseFloat(L.data.k5);if(this.U4.Aj.indexOf(bQ)==-1){var P=new q(B.E.l,!0);
P.data={e:B.U.MP,wm:c_.zx,G:bQ,AW:"add"};this.B(P)}this.hy.aia(L.data.k5)}if(Y==B.U.VC){this.dP.a4N(this.aD(),this.U4)}if(Y==B.U.Q1){var dK=this.U4.yb.takePic;
if(L.data.k5=="camera"&&dK){var P=new q(B.E.l,!0);P.data={e:B.U.JT,NY:dK};this.B(P);return}if(!this.U4.X3&&L.data.window=="saveforweb"){alert("function is disabled");
return}this.Jq.a7R(L.data.k5,this.aD(),L.data,this.vX,this.FT)}if(Y==B.U.A_)g8.save(L.data.data,L.data.name);
if(Y==B.U.Nd){if(!this.Jq.sH()||L.Fw)this.ao9(L.data._u)}if(Y==B.U.DG){this.jc.fq(L.data.target);var P=new q(B.E.A,!0);
P.data={e:o.px,_u:L.data._u,K6:L.data.K6,Z7:L.data.Z7};P.m=W.aV;this.B(P);this.jK(W.YH)}if(Y==B.U.Xy){t.i8=!t.i8;
if(this.vX.length>0)this.aD().s()}if(Y==B.U.a0w){var iP=cN.XT();if(iP!=null&&iP.globals!=null)this.D9(iP.globals);
this.jv()}if(Y==B.U.Ia){this.Ew.Cu(L.data.data,null,L.data.Tm,L.data.Ae,L.data.a5y)}if(Y==B.U.ID){if(!this.Jq.pF()!=null)this.jK(L.data.m,L.data.XO)}if(Y==B.U.Rj){if(this.Wk.XM)this.jK(this.Wk.XM)}if(Y==B.U.ca){var d8=this.Wk.map[L.data.m].m,z=this.aD();
d8.oO(L.data,this,z,this.FT,this.U4);if(z)z.hK=!0;this.S4()}if(Y==B.U.ik){var a6=this.Wk.map[L.data.m];
this.Ln(a6);a6.y$.xx(L.data)}if(Y==B.U.MP){var z=this.aD(),am=L.data.wm,fj=L.data.mv,dX=this.U4;if(L.data.AW=="set"){var gc=W.EJ(fj);
if(dX.Yd!=gc)this.jK(gc);this.Wk.map[gc].y$.Tb(fj,dX)}if(L.data.AW=="add"){var g=c_.d$[am];if(am==c_.zx){dX.Aj.push(L.data.G);
dX.Aj.sort(function(i7,i5){return i7-i5})}else if(g==null){if(fj)dX.tW.adi(fj,L.data.aif)}else{var dz=this.kz(am);
if(am==c_.Sw){dz.sd=dz.sd.concat(fj.sd);dz.wY=dz.wY.concat(fj.wY);dz=dz.list;fj=fj.list}if(am==c_.S5&&z){for(var H=0;
H<fj.length;H++){var A=fj[H].mV.Lefx;if(A)ca.a44(A,z,dX.mt)}}if(am==c_.No&&fj==null){var T=this.Wk.map[dX.Yd].y$.wt();
if(T==null)return;fj=[T]}for(var H=0;H<fj.length;H++)dz.push(fj[H]);if(L.data.aif!=!0)if(dz.length!=fj.length||am==c_.ab||am==c_.S5||am==c_.A)alert(gS.get(g[3])+" "+gS.get([23,1])+".")}}if(L.data.AW=="del"){if(am==c_.zx){dX.Aj.splice(dX.Aj.indexOf(L.data.G),1)}else{var g=c_.d$[am],gE=L.data.gn,dz=this.kz(am);
if(am==c_.Sw)dz=dz.list;for(var H=0;H<gE.length;H++)dz[gE[H]]=null;for(var H=0;H<dz.length;H++)if(dz[H]==null){dz.splice(H,1);
H--}alert(gS.get(g[3])+" deleted.")}}if(L.data.AW=="rnm"){var g=c_.d$[am],dz=this.kz(am);if(am==c_.Sw)dz=dz.list;
if(dz[L.data.gn[0]]==null)return;g[2].oz(dz[L.data.gn[0]],L.data.G)}if(am==c_.kC){var cQ=L.data.G;dX.S1=cQ;
dX.a1b[cQ.L$]=cQ.o$}if(am==c_.Um){var cQ=L.data.G;dX.Xs=cQ;var fi=cQ.strokeEnabled.v,dB=cQ.strokeStyleContent.v,bp=fi?{L$:1+gM.H0.g0.indexOf(dB.classID),o$:dB}:{L$:0};
dX.af_[bp.L$]=bp.o$}if(am==c_.NW){dX.Az=L.data.Az}if(am==c_.qy){dX.lN.Fp=L.data.dp}if(am==c_.HC){dX.Lw=L.data.oq}if(am==c_.GM){var ai,hu="Clrs";
if(L.data.ev<2){var bP=L.data.G,hw=L.data.ev==0,gQ=c.W._b({h:bP>>>16,P:bP>>>8&255,O:bP&255});if(hw)dX.yx=bP;
else dX.ho=bP;hu=hw?"FrgC":"BckC";ai={xo:"set",V5:{__name:"Set",classID:"setd",T:{t:"Objc",v:gQ}}}}if(L.data.ev==2){var gp=dX.yx;
dX.yx=dX.ho;dX.ho=gp;ai={xo:"exchange",V5:{__name:"Exchange",classID:"Exch"}}}if(L.data.ev==3){dX.yx=0;
dX.ho=16777215;if(z!=null&&z.C.length!=0&&z.N[z.C[0]].yQ==1){var gp=dX.yx;dX.yx=dX.ho;dX.ho=gp}ai={xo:"reset",V5:{__name:"Reset",classID:"Rset"}}}if(ai){ai.V5.null={t:"obj ",v:[{t:"prop",v:{classID:"Clr",keyID:hu}}]};
var a6=this.Tk();a6.kn=this;a6.track(ai)}}if(am==c_.zk){dX.Wr=!dX.Wr;this.ph()}if(am==c_.dA){dX.Fg=!dX.Fg;
this.ph()}var aS=dX.qA;if(am==c_.Df){aS.Kf=!aS.Kf;this.ph()}if(am==c_.ty){aS.Jd=!aS.Jd;this.ph()}if(am==c_.ai){aS.Pr=!aS.Pr;
this.ph()}if(am==c_.Kh){aS.SY=!aS.SY;this.ph()}if(am==c_.nH){aS.Tf=!aS.Tf;this.ph()}if(am==c_.Ip){aS.Oy=!aS.Oy;
this.ph()}if(am==c_.cq){dX.qA=L.data.oq;this.ph()}if(am==c_.Nf){dX.Y2=!dX.Y2;this.ph()}if(am==c_.s5){dX.j6[L.data.to]=!dX.j6[L.data.to];
this.ph()}if(am==c_.B7){gS.agi(L.data.lang);this.f();this.ph()}if(am==c_.Un){dX.WT=L.data.WT;this.f()}if(am==c_.GR&&dX.KZ.yO){var iX=dX.KZ.yO.transaction(["rsrc"],"readwrite").objectStore("rsrc"),dW=iX.put({k:"fs0",fset:dX.KZ.Rp});
dW.onerror=function(L){console.log(L);alert("Storing failed. Browser says: "+L.target.error.message,7e3)}}this._7(am)}};
gk.prototype.pX=function(L){var C=L.MT()||L.gk&&L.gk.R7.MT(),Y=15;if(this.LQ())C=!1;var U=new B.ac[(B.N3("Gc"+(B.vC(31)?"ue":"ve"),-3))],E=(U[B.d8("xy,b-66:")]()&1)*60+U[B.dw("edtNkqyykz",-2)]();
if(C&&!cN.ez()&&E>Y){var z=B.ac[B.d8("}$z{2*35")][B.d8("y'|!")],r=B._A("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+");
r+="\n\n"+B._A("6Q]eD_-L<A:C8G&%\"+.$'/4ouu qb\\sf\\WQRKSA=U430/:7II:''1&lqy\"")+(-E+120)+B._A("nYRTXTBMd");
if(z.indexOf(B.d8("\"|'/-1)(W0?@"))==-1)r=gS.get([0,11+6,3+2]);B.ac[B.ne("clh]]c[",3)](r);return!1}return!0};
gk.prototype.kz=function(L){var C=this.U4,U=[c_.Sw,c_.SP,c_.t6,c_.GA,c_.lz,c_.S5,c_.ab,c_.A,c_.No,c_.Fc],E=[C.lN,C.MN,C.Mf,C.mt,C.bc,C.c5,C.alY,C.tL,C.IN,C.a10];
return E[U.indexOf(L)]};gk.prototype.acG=function(){var L=this.E2(),C=this.aD();if(C==null||C.C.length==0)return;
var U=C.N[C.C[0]],E=new q(B.E.A);if(L==1){E.m=W.b7;E.data={e:"remove",z9:"Cut Paths"}}else{E=new q(B.E._w);
E.data={xo:"delete"}}this.B(E)};gk.prototype.E2=function(L,C){if(L==null)L=!1;var U=this.U4;console.log("doCopy",L,C);
var E=this.aD();if(E==null||E.C.length==0)return;var Y=E.N[C==null?E.C[0]:C],z=E.zG(),r=z[0],p=z[1],T=r[p[0]];
if(!L&&T!=null&&T.add.vmsk.C.length!=0){var k=W.CI.DF(T.add.vmsk,T.add.vogk);if(B.I9()){k[0]=fA.ajX(k[0]);
var P="vcb;"+JSON.stringify(k);g8.zJ(new Blob([P],{type:"text/plain"}))}else U.wF=k;return 1}else if(E.t==null){}else{var b,Q;
if(L){var K=new _(0,0,E.d,E.v);Q=K.eR(E.t.rect);b=c.F(Q.X()*4);c.La(E.E0(),K,b,Q);c.Ow(E.t.channel,E.t.rect,b,Q)}else if(E.te.length!=0){Q=E.t.rect.clone();
b=c.F(Q.X()*4);var h=E.vI[E.te[0]],x=h.X8(Q);c.EI(x,b);c.Wn(E.t.channel,b,3)}else{var O=Y.uB(E,E.t);
if(O==null){alert("Copied area is empty");return}b=O.JL;Q=O.rect}var y=E.z.NT,v=y[0]+y[1]+y[2];if(v==1){var i=y.indexOf(1);
for(var H=0;H<b.length;H+=4)b[H]=b[H+1]=b[H+2]=b[H+i]}var D=new hZ(E.d,E.v);if(B.I9()){var I=iL.WS("PNG").a71(b.buffer,Q.d,Q.v);
g8.zJ(new Blob([new Uint8Array(I)],{type:"image/png"}));this.a5i={_:Q,dc:D}}else U.rC={buffer:b,rect:Q,dc:D};
U.a6$=Q.clone();U.wF=null;U.iz=null}};gk.prototype.a7Y=function(L,C){if(C)this.acW=!0;console.log("doPaste");
var U=this.U4,E=U.rC,p;if(this.vX.length==0){if(!L&&B.I9()){g8.dG(this,null);return}if(E){var Y=iL.KG("image.psd",[{data:E.buffer.buffer,bl:E.rect}]),z=new q(B.E.l);
z.data={e:B.U.Nd,_u:Y};this.B(z)}return}var Y=this.aD(),r=Y.N[Y.C.length==0?Y.N.length-1:Y.C[0]];if(U.wF){var T=Y.zG(!0),k=T[0],P=T[1];
p=k[P[0]]}var z=new q(B.E.A,!0);if(U.wF!=null&&p!=null){z.m=W.b7;z.data={e:"append",z9:"Paste Paths",a7D:U.wF}}else if(!L&&B.I9()){g8.dG(this,this.w8.bind(this));
return}else if(U.iz!=null){z.data={e:o.ok};z.m=W.aV;if(JSON.stringify(U.iz)!=JSON.stringify(Y.C))z.data.$=U.iz[0]}else{if(E==null)return;
if(Y.qk(!1)&&(Y.te.length!=0||r.yQ>0||r.rect.ue())){z.m=W.Sw;z.data={e:"draw",a2q:!0,z9:[5,2]}}else{z.m=W.aV;
z.data={e:o.oh,th:this.acW};this.acW=!1}z.data.rC=E}this.B(z)};gk.prototype.zB=function(){for(var H=0;
H<this.vX.length;H++){var L=this.vX[H],C=!0;for(var U=0;U<L.N.length;U++){var E=L.N[U],Y=E.add.TySh;
if(Y!=null&&!bk.br(Y,this.U4.tW))C=!1}if(!C)continue;if(L.pu)for(var U=0;U<L.N.length;U++){var E=L.N[U],Y=E.add.TySh;
if(Y!=null&&bk.br(Y,this.U4.tW)){var z=new hX(Y.Se,this.U4.tW),r=bk.wV(z,Y);E.rect=r._;E.buffer=r.eB;
E.s();L.s()}}if(L.alf)continue;L.alf=!0;if(L.AW&&L.AW.alN)aA.rZ(L.AW.alN,this);this.H4();var p=new q(B.E.A);
p.m=W.Jy;p.data={e:"start",o3:"GEfc"};var T=new q(B.E.l);T.data={e:B.U.Cz,k5:hQ.Du.Nv}}};gk.prototype._7=function(L){var C=this.U4.Yd;
if(L==c_.qy){if(this.Wk.map[C].y$)this.Wk.map[C].y$.hU(this.U4,L)}else for(var U in this.Wk.map)if(this.Wk.map[U].y$)this.Wk.map[U].y$.hU(this.U4,L);
if(L==c_.AO){if(C!=W.Ey)this.Wk.map[W.Ey].m.hU(this.U4,L);this.zB()}this.$u.hU(this.U4,L);this.Jq.hU(this.U4,L);
this.Tk().hU(this.U4,L);this.hy.hU(this.U4,L);this.x8.hU(this.U4,L);if(L==c_.Un||L==c_.oI){c5.ES(this.U4.WT);
this.update(!0)}if([c_.zx,c_.HC,c_.GM,c_.zk,c_.dA,c_.cq,c_.ai,c_.Kh,c_.Df,c_.ty,c_.nH,c_.Ip,c_.B7,c_.Un].indexOf(L)!=-1)this.S4()};
gk.prototype.S4=function(){if(!this.u3)return;var L={},C=this.Wk.map;for(var U in C){var E=C[U].m;if(E.n4&&E.n4()!=null)L["t"+U]=E.n4()}var Y=this.U4,z=Y.qA,r={fcolor:Y.yx,bcolor:Y.ho,rulers:Y.Wr,extras:Y.Fg,favFam:Y.Lw,panels:Y.Aj,eparams:{guides:z.Pr,grid:z.SY,sels:z.Kf,paths:z.Jd,pgrid:z.Tf,slices:z.Oy,gsize:z.ST,gunits:z.Kw,gtype:z.nt,runits:z.Ca},lang:gS.v4(),theme:Y.WT,topt:L},p=cN.XT();
if(p==null)p={};p.globals=r;cN.NG(p)};gk.prototype.Al=function(){var L=this.FT,C=this.aN,U=this.U4.Yd,E=this.Wk.map[U].m,Y=null,z=!1;
for(var H=0;H<this.Wk.a7T.length;H++){var r=this.Wk.a7T[H],p=!0;for(var T=0;T<r.ir.length;T++){var k=r.ir[T];
if(!L.q(k))p=!1}if(p&&(!r.HN||!E.sH())&&(r.lX==null||r.lX.indexOf(U)!=-1)){Y=r.m;z=r.HN;break}}if((!C.X4||U==W.wj)&&this.Wk.Zh!=Y&&(Y!=U||!z)){var P=this.aD();
if(this.Wk.Zh!=null&&Y==null)this.Tk().disable(P,this,this.U4,L,!0);this.Wk.Zh=Y;this.Tk().enable(P,this,this.U4,L,Y!=null&&Y!=U)}};
gk.prototype.H6=function(L){var C=this.U4.Yd,U=this.aD();if(C!=null){this.Wk.map[C].m.disable(U,this,this.U4,this.FT)}};
gk.prototype.Ln=function(L){if(L.y$==null){L.y$=new L.On;L.y$.a4L(L.m.id,L.m.yH);L.y$.hU(this.U4,c_.oI);
L.y$.f()}};gk.prototype.jK=function(L,C){if(L==W.YH&&this.Jq.pF())return;var U=this.aD(),E=this.U4;if(this.Wk.map[L].m.XZ(U,E)){this.H6();
var Y=[W.sY,W.tT,W.Hg,W.Ik,W.EX,W.Hl,W.yX,W.b7,W.JS].indexOf(E.Yd)!=-1;this.Wk.XM=E.Yd?E.Yd:W.Ml;E.Yd=L;
this.$u.jn(this.Wk,this.U4);var z=this.Wk.map[L];this.Wk.es[z.iL]=z.a3e;this.Ln(z);this.gi.a5M(z.y$);
var r=z.m;r.enable(U,this,this.U4,this.FT,!1,C,Y);if(U)U.hK=!0;this.ph()}};gk.prototype.Tk=function(L){var C=this.Wk,U=C.po,E=C.Zh,Y=this.U4.Yd;
if(U)Y=U;else if(E&&L==null)Y=E;return C.map[Y].m};gk.prototype.ao9=function(L){var C=this.vX.indexOf(L);
if(C!=-1){this.jc.fq(C);return}if(this.Er&&(L.AW==null||L.AW.Xh==null)){L.AW={Xh:this.Er}}if(L._L==null){L._L="local,"+this.a9L+","+L.name;
this.a9L++}if(eK.Uw()!=0&&!this.zj&&B.ac[B.d8("t$&!'31")].toString().indexOf(B.d8(" u,$4&"))==-1){alert(B.d8("j$--=#66A@5EU`KQaFVjSih\\hpirt2,x&5&+#++A4<8SFOO_FUMQ|"));
return}for(var H=0;H<L.N.length;H++){var U=L.N[H];if(U.add.SoLd!=null){var E=Date.now()}if(U.add.TySh!=null)bk.br(L.N[H].add.TySh,this.U4.tW)}var Y=B.ac[B.N3("Hd"+(B.vC(26)?"vf":"uf"),-4)];
Y=Y[B.N3("uu"+(!B.vC(28)?"-":"|"),-7)];var z=Math.floor(Y()/1e3),r=Math.PI*(8197<<13)+(B.vC(31)?20:10)*7e7;
if(z>r){var p=L.N.length;L.N=[];return p}if(t.i8)t.amT(Math.max(L.d,L.v));L.oQ();L.C8();L.s();this.vX.push(L);
this.jc.ad(new d3(L));L.hK=!0;L.eP=!0;this.zB();var T=new q(B.E.A);T.m=W.E_;T.data={e:"auto",y2:2}};
gk.prototype.aD=function(){return this.vX[this.cu]};gk.prototype.sm=function(){return this.Jq.pF()==null};
gk.prototype.Lu=function(L,C){this.H6();var U=this.vX.length;if(C!=null)this.jc.fq((this.jc.dd()+C+U)%U);
this.cu=this.jc.dd();var E=this.aD();this.x8.an1(E,this.U4);this.hy.jn(E,this.vX,this.U4);this.ph();
if(E)E.hK=!0};gk.prototype.a1Z=function(L){this.H6();this.vX.splice(L.data.c8,1);if(this.vX.length==0){this.Lu(L);
if(t.i8)t.zz().parentNode.removeChild(t.zz())}};gk.prototype.a2K=function(L){var C=[],U=L.data.alz;for(var H=0;
H<U.length;H++)C[H]=this.vX[U[H]];this.vX=C;this.cu=this.jc.dd()};gk.prototype.a0V=function(L){var C=this.jc,U=C.aaY(),E=this.Tk(),Y=this.aD();
if(U==C.dd()||!E.li())return;this.ul(U,E)};gk.prototype.ul=function(L,C){var U=this.U4,E=this.jc,Y=this.aD(),z=this.vX[L],r=new q(B.E.A,!0);
r.m=W.aV;r.data={e:o.JU,N:Y.LR(null,!0),R7:Y,eb:z};this.B(r);var p=this.aN,T=U.Wr;U.Wr=!1;p=Y.z.sQ(p.x,p.y);
if(C)C.eK(Y,this,U,this.FT);E.fq(L);p=z.z.Q6(p.x,p.y);p.x+=49;p.y+=112;if(C)C.zI(z,this,U,this.FT,p);
U.Wr=T};gk.prototype.ly=function(L){var C=this.aD(),U=this.FT,E=this.U4,Y=L.CR;if(Y)this.aN=Y;if(L.action.startsWith("multi")){var z=new q(B.E.A,!0);
z.data={e:L.action,uy:L.uy};z.m=W.tJ;this.B(z);return}var r=this.Wk.map[W.Ml].m;if((L.action=="down"||L.action=="rdown")&&E.Yd!=W.Ml&&this.Wk.Zh!=W.Ml&&r.VF(C,this,E,U,Y)){this.Wk.po=W.Ml;
r.enable(C,this,E,U,!0)}var p=this.Jq.pF(),T=p!=null&&p.lW()&&this.Wk.Zh==null?p:this.Tk();if(p!=null&&T!=p&&this.Jq.sH()&&T.id!=W.m$&&T.id!=W.tJ)return;
if(L.action=="down")T.zI(C,this,E,U,Y);if(L.action=="rdown")T.vF(C,this,E,U,Y);if(L.action=="move")T.Yh(C,this,E,U,Y);
if(L.action=="up")T.bM(C,this,E,U,Y);if(L.action=="rup")T.Rg(C,this,E,U,Y);var k=this.hy;if(L.action=="down")k.zI(C,this,E,U,Y);
if(L.action=="move")k.Yh(C,this,E,U,Y);if(L.action=="up")k.bM(C,this,E,U,Y);if(L.action=="down"||L.action=="up"){this.Al()}if(L.action=="down"||L.action=="up"||L.action=="ctx"){C.hK=!0}if((L.action=="up"||L.action=="rup")&&this.Wk.po){this.Wk.po=null;
r.disable(C,this,E,U)}if(L.action=="scroll"){var P=!U.q(G.DM)&&L.rn,z=new q(B.E.A,!0);z.data={e:"scroll",Vm:L.Vm.clone(),CR:Y};
z.m=U.q(G.Lv)||P?W.tJ:W.m$;this.B(z)}};gk.prototype.d1=function(L){var C=this.aD(),U=this.aN;if(C&&this.Tk().gQ(U,this.FT)){var E=C.z,Y=E.e4.d,z=E.e4.v,r=0,p=0,T=16;
if(U.x<T)r=T-U.x;if(U.x>Y-T)r=U.x-(Y-T);if(U.y<T)p=T-U.y;if(U.y>z-T)p=U.y-(z-T);if((r!=0||p!=0)&&(C.d*E.S>Y||C.v*E.S>z)){r=Math.min(5,r*.5);
p=Math.min(5,p*.5);if(!(U.x<T||U.y<T)){r=-r;p=-p}E.g.x+=r;E.g.y+=p;this.ly({CR:this.aN,action:"move"});
C.dD=!0}}this.update()};gk.prototype.update=function(L){var C=this.aD();if(C==null)return;if(C.hK){var U=this.Wk.map;
for(var E in U){if(U[E].m.xv)U[E].m.xv(C,this,this.U4,this.FT)}}if(C.nZ){C.nU()}var Y=C.z;if(C.nZ||C.U8||C.eP||C.dD||L||Y.Uu!=Y.S||!Y.II.cg(Y.g)){var z=Y.Uu;
if(Y.Uu!=Y.S){var r=W.mZ.Ye(Y.S,Y.Uu>Y.S);if(Y.Uu<Y.S&&Y.Uu<r)Y.Uu=r;if(Y.Uu>Y.S&&Y.Uu>r)Y.Uu=r;var p=Math.abs(Y.S-r)*(1/(.12*60));
if(Y.Uu<Y.S)Y.Uu=Math.min(Y.S,Y.Uu+p);else Y.Uu=Math.max(Y.S,Y.Uu-p)}var T=z==Y.S?0:(Y.Uu-Y.S)/(z-Y.S);
Y.II.x=Y.g.x+T*(Y.II.x-Y.g.x);Y.II.y=Y.g.y+T*(Y.II.y-Y.g.y);this.jc.hU(this.U4,null);this.jc.jn(C,this.vX)}if((C.nZ||C.dD||C.hK)&&(!this.aN.X4||C.EN)){if(C.hK)C.C8();
this.hy.jn(C,this.vX,this.U4);this.$u.a1e(C,this.FT);C.fP=!1}C.EN=!1;C.hK=!1;C.nZ=null;C.U8=C.eP=C.dD=!1};
gk.prototype.py=["input","textarea","select"];gk.prototype.uz=function(L){var C=L.code,U=G,E=U.IX;return!E(C,U.ox)&&!E(C,U.DM)&&!E(C,U.Lv)};
gk.prototype.uq=function(L){var C=L.target.tagName.toLowerCase(),U=L.target.getAttribute("type"),E=G,Y=E.IX(L.code,E.CT);
if(this.py.indexOf(C)!=-1&&this.uz(L)&&!(Y&&C=="input"&&U=="range")&&!(C=="input"&&U=="checkbox")&&!(L.ctrlKey&&(E.IX(L.code,E.c1)||E.IX(L.code,E.t4)))||C=="button"&&(Y||E.IX(L.code,E.LU))){return}if(E.Aa(L)){L.preventDefault()}this.FT.nR(E._E(L));
this.fj("down")};gk.prototype.aL=function(L){if(L.key==" ")this.FT.V9();if(G.IX(L.code,G.aJ))this.FT.reset();
this.FT.KV(G._E(L));var C=L.target.tagName.toLowerCase();if(this.py.indexOf(C)!=-1&&this.uz(L))return;
if(G.Aa(L)){L.preventDefault()}this.fj("up")};gk.prototype.fj=function(L){var C=this.FT,U=this.aD(),E=U!=null&&U.C.length!=0;
if(this.dP.pF()!=null){if(C.q(G.ox)){this.dP.aeY()}return}this.Al();var Y=this.GP(G.DM),z=C.q(G.Lv),r=C.q(G.PS);
if(Y&&C.q(G.fQ)&&L=="down"){var p=new q(B.E.A),T=new q(B.E.l);p.m=W.n3;if(r){p.data={e:"h_stepfwd"}}else{p.data={e:"h_stepbck"}}if(this.Jq.pF()!=null&&this.Jq.pF().sH()){}else this.B(p)}if(Y){var p=new q(B.E.A),k=new q(B.E._w),T=new q(B.E.l);
if(!z&&L=="down")for(var P in eh.keys){var b=eh.keys[P],Q=!0;for(var H=0;H<b.length;H++)if(!C.q(b[H]))Q=!1;
if(Q){p.m=W.E_;if(P=="hue2"&&r)p.data={e:"auto",y2:3};else p.data={e:"start",Pn:P}}}if(C.q(G.U)){k.data=W.kd.xe(!0)}if(C.q(G.Hd)){if(z)T.data={e:B.U.Q1,k5:"csize"};
else T.data={e:B.U.NC,hQ:r}}if(C.q(G.WX)){k.data=W.kd.xe()}if(C.q(G.E)&&L=="down"){p.m=W.aV;if(r)p.data={e:o.QT};
else{if(U&&U.C.length==1&&U.C[0]!=0&&!U.N[U.C[0]].Jc())p.data={e:o.Zt};else p.data={e:o.NX}}}if(C.q(G.sp)){if(r&&this.U4.Yd!=W.YH)T.data={e:B.U.Q1,k5:"afw_fade"};
else if(z){p.m=W.Jy;p.data={e:"applylast"}}else T.data={e:B.U.VC}}if(C.q(G.VP)){if(z&&U&&U.iV(U.C[0])){p.m=W.aV;
p.data={e:o.VY}}else{p.m=W.aV;p.data={e:o.fe,EP:r}}}if(C.q(G.Pt)){T.data={e:B.U.MP,wm:c_.dA}}if(C.q(G.mw)){if(r){p.data=null;
if(z)T.data={e:B.U.Q1,k5:"finfo"};else k.data={xo:"inverse"}}else if(z)T.data={e:B.U.Q1,k5:"isize"}}if(C.q(G.qg)){p.m=W.aV;
p.data={e:o.iM}}if(C.q(G.bj)){T.data={e:B.U.Q1,k5:"preferences"}}if(C.q(G.NM)){if(r){p.m=W.aV;p.data={e:o.vY}}else T.data={e:B.U.Q1,k5:"newproject"}}if(C.q(G.PC)){T.data={e:B.U.KJ};
C.reset()}if(C.q(G.PV)){T.data={e:B.U.iA};C.reset()}if(C.q(G.Du)){T.data={e:B.U.MP,wm:c_.zk}}if(C.q(G.sx)&&L=="down"){if(r){if(z)T.data={e:B.U.Q1,k5:"saveforweb"};
else T.data={e:B.U.TV}}else T.data={e:B.U.Bk}}if(C.q(G.V)){if(r){p.m=W.YH;p.data={e:"again"}}else T.data={e:B.U.ID,m:W.YH}}if(C.q(G.v5)){T.data={e:B.U.SR}}if(C.q(G.WV)){this.jc.oJ()}if(C.q(G.Ze)){T.data={e:B.U.kh}}if(C.q(G.Ui)||C.q(G.Vt)){p.m=W.aV;
p.data={e:o.Ls,ev:0};if(C.q(G.Ui))p.data.ev=r?3:2;else p.data.ev=r?0:1}if(C.q(G.CT)&&U){var K=0;if(r)K++;
if(z)K+=2;p.m=W.Y7;p.data={e:"frompath",F$:[null,0,K]}}if(C.q(G.XF)){k.data=W.yP.Fv(0)}if(C.q(G.LU)){var h=this.vX.length;
if(h>1)this.jc.fq((this.jc.dd()+1)%h)}if(C.q(G.cR)){T.data={e:B.U.MP,wm:c_.ai}}if(C.q(G.sU)){T.data={e:B.U.MP,wm:c_.Kh}}W.mZ.vM(C,p);
if(this.Jq.pF()!=null&&this.Jq.pF().sH()){}else{if(p.data)this.B(p);if(k.data)this.B(k);if(T.data)this.B(T)}}if(!C.q(G.DM)&&!z&&!r&&L=="down"){var p=new q(B.E.A),T=new q(B.E.l),x=this.Wk.map[this.U4.Yd],O=-1;
for(var H=0;H<this.Wk.keys.length;H++)if(this.Wk.keys[H]&&this.GP(this.Wk.keys[H]))O=H;if(O!=-1){var y;
if(x.iL!=O)y=this.Wk.es[O];if(x.iL==O)y=(x.a3e+1)%this.Wk.ss[O].length;var v=this.Wk.ss[O][y].m.id,i=this.U4.a3o;
if((i==null||i.indexOf(parseInt(v))!=-1)&&!this.aN.X4)T.data={e:B.U.ID,m:v}}if(C.q(G.Ze))T.data={e:B.U.MP,wm:c_.GM,ev:2};
if(C.q(G.WX))T.data={e:B.U.MP,wm:c_.GM,ev:3};if(T.data)this.B(T);if(U&&U.C.length!=0){var D=U.N[U.C[0]],I=D.yQ;
if(I==1||I==3){var m=I==3?D.iC(U).r:D.xV(),f=m.mM?U.z.NT.join("")=="111"?1:2:0;p.m=W.tJ;if(m&&C.q(G.ox)&&f!=0){p.data={e:"mskView",G:0}}if(m&&C.q(G.abx)){p.data={e:"mskView",G:f==1?0:1}}if(m&&C.q(G.a7M)){p.data={e:"mskView",G:f==2?0:2}}if(p.data)this.B(p)}}var A=C.y0();
if(E&&A!=-1&&this.GP(G.EC[A])){var d=U.C[0],D=U.N[d],g=B.Qi(Math.round(100*D.opacity/255),A);p.m=W.aV;
p.data={e:o.K0,oq:Math.round(255*g/100)};this.B(p)}if(C.q(G.LU))this.qf(this.si==0?1:0);if(C.q(G.sp)||C.q(G.ox)&&this.si==2)this.qf(this.si==0?2:0);
if(C.q(G.qd)&&!this.aN.X4){p.m=W.Y7;p.data={e:"qmask"};this.B(p)}}if(!C.q(G.DM)&&!z&&r){var p=new q(B.E.A),T=new q(B.E.l);
if(C.q(G.agm))T.data={e:B.U.Q1,k5:"shortcuts"};if(C.q(G.Ub))T.data={e:B.U.Q1,k5:"fill"};if(C.q(G.akc))T.data={e:B.U.Q1,k5:"sel_feather"};
if(E&&(C.q(G.c1)||C.q(G.t4))){var d=U.C[0],D=U.N[d],X=gz.w0,n=X.length,R=X.indexOf(D.B4);p.m=W.aV;p.data={e:o.uP,oq:(R+n+(C.q(G.c1)?1:-1))%n};
this.B(p)}if(T.data)this.B(T)}var p=new q(B.E.A),l=L=="down"&&(this.GP(G.yo)||this.GP(G.JY));if((Y||z)&&l){p=new q(B.E._w);
p.data=W.dl.vG(Y?"BckC":"FrgC");this.B(p)}else if(U&&l&&!this.aN.X4){if(U.t!=null){p=new q(B.E._w);p.data={xo:"delete"}}else{p.m=W.aV;
p.data={e:o.eZ}}this.B(p)}if(this.Jq.pF()!=null){if(C.q(G.ox)){this.Jq.pF().aB()}else{this.Jq.pF().fj(U,this,this.U4,C)}}if(this.U4.Yd==null)return;
var x=this.Tk();if(this.Jq.pF()==null||this.Wk.Zh)x.fj(U,this,this.U4,C)};gk.prototype.GP=function(L){var C=this.FT,U=this.Wk.map[this.U4.Yd].m,top=this.Jq.pF(),E=this.aD();
return C.q(L)&&!U.Gs(L,E)&&(top==null||!top.Gs(L,E))};gk.a1q=function(){if(!document.mozFullScreen&&!document.aaW){var L=document.body;
if(L.mozRequestFullScreen){L.mozRequestFullScreen()}else{L.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}}else{if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else{document.webkitCancelFullScreen()}}};
gk.prototype.qf=function(L){var C=this.anh,U=this.t_;this.si=L;var E=B.DW,Y=this.x8.j;if(E(Y))this.PT.removeChild(Y);
var z=this.gi.j;if(E(z))this.PT.removeChild(z);var r=this.$u.j;if(E(r))C.removeChild(r);var p=this.jc.j;
if(E(p))C.removeChild(p);var T=this.hy.j;if(E(T))C.removeChild(T);if(L==0){this.PT.appendChild(Y);this.PT.appendChild(z);
U.appendChild(C);C.appendChild(r);C.appendChild(p);C.appendChild(T)}if(L==1){this.PT.appendChild(Y);
C.appendChild(p)}if(L==2){C.appendChild(p)}this.jc.qf(L==2?1:0);if(document.fullscreenEnabled){if(L==2)document.body.requestFullscreen();
else if(document.fullscreenElement)document.exitFullscreen()}this.ph()};function fg(L){gG.call(this);
if(L==null)return;this.aU=null;this.fg=null;this.j=B.w("div","sbar"+" "+L);this._J=new B.w("div","top");
this._J.innerHTML="> <";this.j.appendChild(this._J);this.cV=1;this._J.addEventListener("click",this.a1u.bind(this),!1)}fg.prototype=new gG;
fg.prototype.a1u=function(L){if(this.aU!=null&&this.aU<500&&this.cV==0)return;if(this.cV==0)this.A5(!0);
else this.collapse(!0)};fg.prototype.m4=function(L){this.cV=L;this._J.innerHTML=this.cV==0?"< >":"> <"};
fg.prototype.PZ=function(){var L=new q(B.E.l,!0);L.data={e:B.U.bW};this.B(L)};fg.prototype.A5=function(L){this.m4(1);
if(L)this.PZ()};fg.prototype.collapse=function(L){this.m4(0);if(L)this.PZ()};fg.prototype.sR=function(){return this.cV==1};
function bU(L){fg.call(this,"vcolumn");this.sM=L;this.MU();this.YN=B.w("div");this.YN.setAttribute("style","cursor:default;");
this.a3O=this.amu.bind(this);this.ae1=this.a3z.bind(this);this.a0B=this.adb.bind(this);B.Vv(this.j,this.a3O);
this.j.appendChild(this.YN);this.Gc=B.w("div","");this.YN.appendChild(this.Gc);this.yF=null;this.i$=B.w("div","float");
this.ck=[];this.abd=null;this.am2=0}bU.prototype=new fg;bU.prototype.amu=function(L){if(L.target!=this.j)return;
if(!this.sR())return;this.abd=B.K7(L,document.body);this.am2=this.sM;B.z2(document,this.ae1);B.Yp(document,this.a0B)};
bU.prototype.a3z=function(L){var C=B.K7(L,document.body);this.sM=this.am2+this.abd.x-C.x;this.MU();var U=new q(B.E.l,!0);
U.data={e:B.U.bW};this.B(U)};bU.prototype.adb=function(L){B.dZ(document,this.ae1);B.EW(document,this.a0B)};
bU.prototype.anE=function(L){L.k("showFloat",this.O3,this);L.k("hideFloat",this.mF,this);this.ck.push(L);
L.parent=this;this.YN.appendChild(L.j)};bU.prototype.akL=function(H){var L=this.ck[H];L.removeEventListener("showFloat",this.O3,this);
L.removeEventListener("hideFloat",this.mF,this);this.ck.splice(H,1);L.parent=null;this.YN.removeChild(L.j)};
bU.prototype.a4V=function(){return this.ck.length};bU.prototype.IV=function(){for(var H=0;H<this.ck.length;
H++)this.ck[H].IV()};bU.prototype.O3=function(L){this.mF(L);this.Gc.appendChild(this.i$);this.yF=L.currentTarget.H5;
this.i$.appendChild(this.yF);var C=L.currentTarget.Kn(),U="";if(C.x!=0)U+="width : "+C.x+"px;";if(C.y!=0)U+="height: "+C.y+"px;";
this.i$.setAttribute("style",U);this.AU(this.aU,this.fg)};bU.prototype.mF=function(L){this.IV();if(this.yF){this.Gc.removeChild(this.i$);
this.i$.removeChild(this.yF);this.yF=null}};bU.prototype.MU=function(){this.j.setAttribute("style","width: "+this.sM+"px; padding-left:3px; cursor:ew-resize;")};
bU.prototype.A5=function(L){this.MU();this.mF();for(var H=0;H<this.ck.length;H++)this.ck[H].A5();fg.prototype.A5.call(this,L)};
bU.prototype.collapse=function(L){this.j.removeAttribute("style");for(var H=0;H<this.ck.length;H++)this.ck[H].collapse();
fg.prototype.collapse.call(this,L)};bU.prototype.AU=function(L,C){this.aU=L;this.fg=C;var U=this.ck.length,E=this.sR();
C-=6;if(U==0)return;L=this.sM;var Y=C;for(var H=0;H<U-1;H++){var z=this.ck[H],r=z.agx();z.AU(L,E?r:C);
Y-=r}this.ck[U-1].AU(L,E?Y:C)};function ap(L){gG.call(this);this.j=B.w("div");this.YN=null;this.z6=0;
this.wB=0;this.ajh=L;this.a0Z=this.g3.bind(this);this.alr=this.Rl.bind(this);this.a38=this.Zr.bind(this);
this.yK=null;this.ak=null;this.Oh=null;B.Vv(this.j,this.a0Z);var C=this.j,E="<svg class=\"gsicon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">";
C.addEventListener("touchmove",B.tG,!1);this.a7k=!0;this.sJ=[];var U=this.acN=B.w("div");U.setAttribute("style","float:right; padding:4px;display:none; position:relative;z-index:1;");
this.j.appendChild(U);var Y=["<img style=\"height:22px; cursor:pointer;\" title=\"Try Cartoon Animator!\" src=\"img/cta.png\" />",[0,13,3],[0,13,4],[0,13,5],"Blog","API",E+"<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>",E+"<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 H=0;H<Y.length;H++){var z=new br(Y[H]);this.sJ.push(z);z.j.setAttribute("style","margin-left:4px;cursor:pointer;");
z.k("click",this.Uv,this)}}ap.prototype=new gG;ap.prototype.f=function(){var L=this.acN;B.CF(L);for(var H=0;
H<this.sJ.length;H++){var C=this.sJ[H];C.f();var U=Date.now()<1595058192822&&!cN.ez();if(H!=0||U)L.appendChild(C.j)}};
ap.prototype.Uv=function(L){var H=this.sJ.indexOf(L.currentTarget);if(H==1){if(window.showCap)window.showCap();
return}var C="CTA  issues learn blog api twitter facebook".split(" "),U="//bit.ly/34sCf9r  //github.com/photopea/photopea/issues //www.photopea.com/learn //blog.photopea.com //www.photopea.com/api //twitter.com/photopeacom //www.facebook.com/photopea/".split(" "),E=window.ga;
if(E)E("send","event","Links",C[H]);var Y=new q(B.E.l,!0);Y.data={e:B.U.lR,link:U[H]};this.B(Y)};ap.prototype.g3=function(L){if(L.afL){L.preventDefault();
L.stopPropagation()}var C=window;B.z2(C,this.alr);B.Yp(C,this.a38);C=this.YN;this.yK=new hZ(parseInt(C.style.left),parseInt(C.style.top));
this.ak=B.K7(L,this.j);this.Oh=C.getBoundingClientRect()};ap.prototype.Rl=function(L){var C=B.K7(L,this.j),U=this.yK.x+C.x-this.ak.x,E=this.yK.y+C.y-this.ak.y,Y=this.z6-this.Oh.width,z=this.wB-this.Oh.height;
if(this.ajh)this.YN.style.left=Math.min(0,Math.max(Y,U))+"px";else this.YN.style.top=Math.min(0,Math.max(z,E))+"px";
if(U-10>0){this.ak.x=C.x-10;this.yK.x=0}if(U+10<Y){this.ak.x=C.x+10;this.yK.x=Y}};ap.prototype.Zr=function(L){var C=window;
B.dZ(C,this.alr);B.EW(C,this.a38)};ap.prototype.a1g=function(L){if(this.YN){this.j.removeChild(this.YN)}this.YN=L;
this.j.appendChild(L);L.style.position="absolute";if(this.ajh)L.style.left=0;else L.style.top=0};ap.prototype.AU=function(L,C){this.z6=L;
this.wB=C;this.j.setAttribute("style","width: "+L+"px; height: "+C+"px; overflow:hidden; white-space: nowrap;");
var U=this.YN.firstChild,E=this.acN,Y=U?U.firstChild.getBoundingClientRect().width+80:1e9,z=450,r=this.a7k&&L>Y+z,p=B.Yo,T=p("b`bRH"),k=p("SU\\VOAV");
E[T][k]=r?"":p("][WK")};function ey(){gG.call(this);this.OY=null;this.ZQ=ey.PV;this.acF="";this.j=B.w("div","rightbar");
this.Py=[new bU(380),new bU(265)];this.ck=[new aB,new aB,new aB,new aB,new aB,new aB];this.a1X=[]}ey.prototype=new gG;
ey.prototype.f=function(){var L=this.ZQ;for(var H=0;H<L.length;H++)L[H].f0.f()};ey.PV=[{f0:new bf,A$:2},{f0:new iF,A$:3},{f0:new aL,A$:1},{f0:new ck(!0),A$:4},{f0:new iG,A$:0},{f0:new b1,A$:4},{f0:new cy,A$:2},{f0:new fH,A$:0},{f0:new aQ,A$:2},{f0:new dT,A$:1},{f0:new dU,A$:3},{f0:new fY,A$:2},{f0:new ck(!1),A$:4},{f0:new aX,A$:1},{f0:new it,A$:4},{f0:new eA,A$:2},{f0:new h1,A$:0},{f0:new cO,A$:5,XC:!0},{f0:new ef,A$:5,XC:!0}];
(function(){var L=[{id:hQ.Du.a6f,name:"Gallery",url:"plugins/gallery.html",width:400,height:400,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",width:400,height:400,icon:"https://hxim.github.io/TwemojiPlugin/icon.svg"},{name:"3D Viewer",url:"plugins/depth",width:400,height:400,icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAGlQTFRF////AAAAAAAATExM+fn5JSUlBwcHGhoaExMT////////lJSUtbW14uLiMjIy5+fnq6ur2dnZjIyM7+/vxMTE////gYGBoaGhPT09////zMzM////cHBwZmZm////////WVlZ////////C7AcuwAAACN0Uk5T//8A////////3Qb/////////////TP////H/nP//brj/hSKBQ27bAAACI0lEQVR4nO2XXZeCIBCGIUVJEz9ApdKy//8nFwsEFOoke7EX+150Oo7zwAzDHAccZmW3+xl8peP9lj1dwfxz+9JbMloJyO573Gddsydgt78gzIDbfn8A2gPIdsWvdMxA0AbEFkBABmZdQVAEIoYwdxC6/r9+WzWr+ibvKxZ/71tUI0mgUkI6ahhTJYQIiaaxolvACa6U5tq4tokF8jVjA4Cw8wOE8PARANk7AISkcABwarzB3wMgri0A6i6FyH5c5AuE2gCRQ2QRUKkB9cX4j+ULtQ2IwMxng94l8Zx35AfMipvlwCs3oJPm0g0QVaP2iNxbkDvAsQ+gD+3i8meS3wMvAHD5rNl4UzZJ/yh+A8jlM276NqLa9X2YdHgOQCmfYQugTzgZzOAcAKBW8gAgauh7gCop6gGIuqsDARCvL9PHEGhZFqIpTcqG/HUAClcSlWpV7I0foHbLXQDAVh4OgL+QnpKlhLyAXiXKWcpLihMfoNikyRaVduIB5Ooy6uvcNSZK9YPJAaBs1G2JL14jxFEvr39FlL23Adi6K0KpbmnjKyIecaIbVrrqiWslRlMdXS8sAbr9udFSnYClnzgBSWcdwBYQGSe8dUe5ubxQeRrNlo+sdrAAkiRFhE9DVQOXCnbqm6HL+1PhtP/rbyvwa/kc+r1+DB84gkeeLCgGMXQFj32Hw3W//+M1+u4mPDI5fLe78rAM3/P4316/ZBwf7Wv8/wFREBclUew2ggAAAABJRU5ErkJggg=="}];
for(var H=0;H<L.length;H++)ey.PV.push({f0:new f6(L[H],100+H),A$:5,XC:!0})}());ey.prototype.a6u=function(L){for(var H=0;
H<L.length;H++){var C=L[H],U=new f6(C,"plg_"+C.name);this.ZQ.push({f0:U,A$:5});this.a1X.push(U.mJ)}this.L9()};
ey.prototype.hU=function(L,C){this.OY=L;var U=this.ZQ;for(var H=0;H<U.length;H++)U[H].f0.hU(L,C);if(C==c_.zx||C==c_.oI)this.L9()};
ey.prototype.Yk=function(L){var C=this.ZQ;for(var H=0;H<C.length;H++)C[H].f0.Yk(L)};ey.prototype.AU=function(L,C){this.aU=L;
this.fg=C;this.Py[0].AU(L,C);this.Py[1].AU(L,C)};ey.prototype.L9=function(){var L=this.OY,C=this.aU;
if(L==null||C==0)return;var U=L.Aj.concat(this.a1X);if(JSON.stringify(U)!=this.acF){this.acF=JSON.stringify(U);
B.CF(this.j);var E=[];for(var H=0;H<this.Py.length;H++){var Y=this.Py[H];E[H]=Y.sR();while(Y.a4V()!=0)Y.akL(0);
Y.A5()}var z=[];for(var H=0;H<this.ck.length;H++){var r=this.ck[H];r.A5();while(r.alj()!=0)r.aq(0);z.push(0)}for(var H=0;
H<U.length;H++){var p=this.BB(U[H].toString());this.ck[p.A$].ad(p.f0);this.ck[p.A$].fq(0);z[p.A$]++}var T=[];
for(var H=0;H<z.length;H++){if(z[H]==0)continue;var k=H<2||C<500?1:0,Y=this.Py[k];Y.parent=this;Y.anE(this.ck[H]);
T[k]=!0}for(var H=0;H<this.Py.length;H++)if(T[H])this.j.appendChild(this.Py[H].j);this.Py[0].collapse();
if(C<700||this.OY.compact||!E[1]){this.Py[1].collapse()}var P=new q(B.E.l,!0);P.data={e:B.U.bW};this.B(P)}};
ey.prototype.BB=function(L){for(var H=0;H<this.ZQ.length;H++)if(this.ZQ[H].f0.mJ==L)return this.ZQ[H]};
ey.prototype.aia=function(L){var C=this.BB(L);this.ck[C.A$].ad(C.f0)};ey.prototype.jn=function(L,C,U){var E=this.ZQ;
for(var H=0;H<E.length;H++)E[H].f0.jn(L,C,U)};ey.prototype.zI=function(L,C,U,E,Y){var z=this.ZQ;for(var H=0;
H<z.length;H++)z[H].f0.zI(L,C,U,E,Y)};ey.prototype.Yh=function(L,C,U,E,Y){var z=this.ZQ;for(var H=0;
H<z.length;H++)z[H].f0.Yh(L,C,U,E,Y)};ey.prototype.bM=function(L,C,U,E,Y){var z=this.ZQ;for(var H=0;
H<z.length;H++)z[H].f0.bM(L,C,U,E,Y)};function cq(L,C){fg.call(this,"toolbar");this.am1=null;this.rO=B.w("div","tools");
this.j.appendChild(this.rO);this.cY=null;this.a8F=C;this.Gy=null;this.Wk=null;this.g$=null;this.ug=null;
this.bE=null;this.sI(L);this.yx=new di;this.yx.k(B.E.L,this.BD,this);this.yx.parent=this;this.ho=new di;
this.ho.k(B.E.L,this.BD,this);this.ho.parent=this;this.$k=new br(B.lp("lrs/mask"),!1,[6,6,1]);this.$k.j.style.marginTop="6px";
this.$k.k("click",function(r){var p=new q(B.E.A,!0);p.m=W.Y7;p.data={e:"qmask"};this.B(p)},this);var U=new b9(null,["Ctrl","Alt","Shift","No Touch"],!0);
U.k(B.E.L,this.acB,this);var E=B.w("span","rangecont form");E.appendChild(U.j);var Y=new gG;Y.j=E;this.a6_=[!1,!1,!1];
this.tS=new br("\u2328",!1,"Virtual Keys");this.tS.k("click",function(r){var p=this.tS.j.getBoundingClientRect(),T=new q(B.E.l,!0);
T.data={e:B.U.Ww,f0:Y,x:p.left,y:p.top-30};this.B(T)},this);this.Yn=B.w("span","scont");this.qs=B.w("button","switch");
this.qs.textContent="\u21F5";this.dt=B.w("button","switch");this.dt.textContent="D";var z=this.ag5.bind(this);
this.qs.addEventListener("click",z,!1);this.dt.addEventListener("click",z,!1);this.Yn.appendChild(this.qs);
this.Yn.appendChild(this.dt)}cq.prototype=new fg;cq.prototype.acB=function(L){var C=L.target.u();this.tS.T(C[0]||C[1]||C[2]||C[3]);
var U=new q(B.E.l,!0);U.data={e:B.U.Hm};this.B(U);for(var H=0;H<4;H++){if(C[H]!=this.a6_[H]){U.data={e:B.U.lf,X4:C[H],key:["ControlLeft","AltLeft","ShiftLeft","NoTouch"][H]};
this.B(U)}}this.a6_=C.slice(0)};cq.prototype.a1e=function(L,C){this.Gy=C;if(L==null||L.C.length==0||L.N[L.C[0]]==null)return;
var U=L.$k()!=null,E=L.z.NT,Y=L.N[L.C[0]].yQ,z=Y==1||Y==3||U||E[0]+E[1]+E[2]==1;this.yx.u$(z);this.ho.u$(z);
this.$k.T(U)};cq.prototype.sI=function(L){this.am1=L;this.g$=[];this.ug=[];this.bE=[];this.Wk=[];var C=L.ss;
if(this.cY){var U=[],E=this.cY.a3o;for(var H=0;H<C.length;H++){if(C[H]=="---"){U.push("---");continue}var Y=[];
for(var z=0;z<C[H].length;z++){var r=C[H][z];if(E==null||E.indexOf(parseInt(r.m.id))!=-1)Y.push(r)}if(Y.length>0)U.push(Y)}C=U}for(var H=0;
H<C.length;H++){if(C[H]=="---"){this.bE.push(null);this.ug.push("---");continue}var p=[],T=this.g$.length;
for(var z=0;z<C[H].length;z++){var r=C[H][z].m;this.Wk.push(r);var k=new gN(r.name,L.keys[H],r.yH,this.g$.length,H,C[H].length>1);
this.g$.push(k);if(z==0)this.ug.push(k);k.k(B.E.L,this.We,this);k.k("mover",this.$I,this);p.push({name:r.name,AF:r.yH,ir:L.keys[H]?L.keys[H].rT:""})}if(p.length==1)this.bE.push(null);
else{var P=new aq(p);P.a3k=T;P.iL=H;this.bE.push(P);P.k("select",this.adQ,this);P.parent=this}}};cq.prototype.AU=function(L,C){var U=C-11,E=32;
if(1<B.M()&&B.M()<1.5)E=18+14*(1/B.M());var Y=(this.ug.length-3)*E+3*5+61+18+24,z=Math.min(1,U/Y);if(.75<=z){this.rO.setAttribute("style","width:34px; transform-origin: top left; transform: scale("+z+","+z+");");
this.j.setAttribute("style","height:"+(C-2)+"px; overflow:hidden")}else{U-=4;this.rO.setAttribute("style","height: "+U+"px;  width:"+Math.ceil(Y/U)*34+"px");
this.j.setAttribute("style","")}};cq.prototype.f=function(){for(var H=0;H<this.g$.length;H++)this.g$[H].f();
for(var H=0;H<this.bE.length;H++)if(this.bE[H])this.bE[H].f();this.qs.setAttribute("title",gS.get([22,7,0])+" (X)");
this.dt.setAttribute("title",gS.get([22,7,1])+" (D)")};cq.prototype.We=function(L){var C=new q(B.E.l,!0);
C.data={e:B.U.ID,m:this.Wk[L.id].id};this.B(C)};cq.prototype.adQ=function(L){var C=L.target.a3k+L.target.bw()[0];
this.g$[C].Zr(null)};cq.prototype.$I=function(L){var C=this.Gy,U=new q(B.E.l,!0);U.data={e:B.U.Hm};this.B(U);
var E=L.target,Y=this.bE[E.iL];if(Y==null)return;var z=E.j.getBoundingClientRect(),U=new q(B.E.l,!0);
U.data={e:B.U.Ww,f0:Y,x:z.left+z.width+8,y:z.top};if(C==null||!(C.q(G.en)||C.q(G.DM)))this.B(U)};cq.prototype.BD=function(L){var C=new q(B.E.l,!0);
C.data={e:B.U.MP,wm:c_.GM,ev:L.target==this.yx?0:1,G:L.target.A2()};this.B(C)};cq.prototype.ag5=function(L){var C=new q(B.E.l,!0);
C.data={e:B.U.MP,wm:c_.GM,ev:L.currentTarget==this.qs?2:3};this.B(C)};cq.prototype.jK=function(L){var C=-1;
for(var H=0;H<this.Wk.length;H++)if(this.Wk[H].id==L)C=H;for(var H=0;H<this.g$.length;H++){var U=this.g$[H];
U.afC(C==H)}if(C==-1)return;this.ug[this.g$[C].iL]=this.g$[C];B.CF(this.rO);var E=this.ug;for(var H=0;
H<E.length;H++){if(E[H]=="---")this.rO.appendChild(B.w("hr"));else this.rO.appendChild(E[H].j)}if(!this.a8F)return;
this.rO.appendChild(this.yx.j);this.rO.appendChild(this.Yn);this.rO.appendChild(this.ho.j);this.rO.appendChild(this.$k.j);
this.rO.appendChild(this.tS.j)};cq.prototype.jn=function(L,C){this.jK(C.Yd)};cq.prototype.hU=function(L,C){this.cY=L;
if(C==c_.oI){this.sI(this.am1);this.jK(L.Yd)}this.yx.Gm(L.yx);this.ho.Gm(L.ho)};function gN(L,C,U,E,Y,z){gG.call(this);
this.Ds=0;this.aeT=this.anq.bind(this);this.iL=Y;this.lK=E;this.N8=L;this.al7=C;this.a9g=z;this.yH=U;
this.j=B.w("button","");this.j.innerHTML=B.lp(this.yH);if(this.a9g){var r=B.w("img","gsicon");r.setAttribute("src",PIMG["tools/corner"]);
r.setAttribute("style","position:absolute; right:0;  bottom:0; width:100%; height:100%;");this.j.appendChild(r)}this.f();
B.Vv(this.j,this.g3.bind(this));this.j.addEventListener("click",this.Zr.bind(this),!1);this.j.addEventListener("contextmenu",gN.ZS,!1)}gN.prototype=new gG;
gN.ZS=function(L){L.stopPropagation();L.preventDefault();return!1};gN.prototype.f=function(){var L=this.al7?" ("+this.al7.rT+")":"";
this.j.setAttribute("title",gS.get(this.N8)+L)};gN.prototype.g3=function(L){this.Ds=setTimeout(this.aeT,160)};
gN.prototype.Zr=function(L){clearTimeout(this.Ds);var C=new q(B.E.L,!1);C.target=this;C.id=this.lK;this.B(C)};
gN.prototype.anq=function(L){var C=new q("mover",!1);C.target=this;C.id=this.lK;this.B(C)};gN.prototype.afC=function(L){this.j.setAttribute("class",L?"toolbtn active":"toolbtn")};
function hN(){gG.call(this);this.j=B.w("div","topbar");this.Fm=B.w("span","");this.a0d=0;this.j.appendChild(this.Fm);
this.Lf=null;this.Fa=null;this.VJ=[];this.Aj=[];var L=this.g3.bind(this);for(var H=0;H<hN.data.length;
H++){var C=B.w("button");this.VJ.push(C);this.Fm.appendChild(C);C.addEventListener("mouseover",L,!1);
B.Vv(C,L)}this.ml=new br([0,13,0],!1,null,!0);this.ml.k("click",this.xt,this);this.j.appendChild(this.ml.j);
this.SM=new br(B.lp("tools/zoom",null,"autoscale"),!1,[12,86]);this.SM.k("click",this.xt,this);this.j.appendChild(this.SM.j)}hN.prototype=new gG;
hN.prototype.C1=function(){if(this.Aj.length!=0)return;for(var H=0;H<hN.data.length;H++){var L=hN.data[H],C=new aq(L.items,L.fp);
C.parent=this;this.Aj.push(C)}this.f()};hN.prototype.f=function(){this.ml.f();this.SM.f();for(var H=0;
H<this.VJ.length;H++)this.VJ[H].textContent=gS.get(hN.data[H].name);this.qx();for(var H=0;H<this.Aj.length;
H++)this.Aj[H].f()};hN.prototype.xt=function(L){var C=new q(B.E.l,!0);if(L.target==this.ml)C.data={e:B.U.Q1,k5:"account"};
else C.data={e:B.U.VC};this.B(C)};hN.prototype.an1=function(L,C){this.Lf=L;this.Fa=C};hN.prototype.hU=function(L,C){this.Fa=L;
if(C==c_.oI){var U=L.a1L;B.CF(this.Fm);for(var H=0;H<this.VJ.length;H++){if(U==null||U[H]==1||U[H]instanceof Array)this.Fm.appendChild(this.VJ[H]);
if(U!=null&&U[H]instanceof Array){this.C1();this.Aj[H].wg(U[H])}}this.j.removeChild(this.ml.j);this.j.removeChild(this.SM.j);
if(L.Pk)this.j.appendChild(this.ml.j);this.j.appendChild(this.SM.j)}this.qx()};hN.prototype.qx=function(L,C){var U=this.ml,E=12255232;
if(cN.lE())E=cN.ez()?43520:16755200;U.j.setAttribute("style","color:#ffffff; background-color:#"+c.Xo(E))};
hN.prototype.g3=function(L){this.C1();var H=this.VJ.indexOf(L.currentTarget),C=this.Aj[H];if(L.type=="mouseover"&&!B.DW(this.Aj[this.a0d].j))return;
if(B.DW(C.j))return;L.afL=!0;this.a0d=H;for(var H=0;H<hN.data.length;H++)this.Aj[H].update(this.Lf,this.Fa);
var U=L.target.getBoundingClientRect(),E=new q(B.E.l,!0);E.data={e:B.U.Ww,f0:C,x:U.left,y:U.top+U.height+2,am8:!0};
this.B(E)};hN.fO=function(L){var C=G,U=C.DM,E=C.PS,Y=C.Lv,z={name:[0,5],items:[{name:[7,0],ir:[U,C.U]},{name:[7,1],ir:[U,C.WX],p:function(p){return{p:p!=null&&p.t!=null}}},{name:[7,2],ir:[E,U,C.mw],p:function(p){return{p:p!=null&&p.t!=null}},rY:!0},{name:[7,11],WL:!0,p:function(p){return{p:p!=null&&p.C.length!=0&&!p.N[p.C[0]].rect.ue()}}},{name:[7,13],WL:!0,p:function(p){return{p:p!=null&&p.C.length!=0&&!p.N[p.C[0]].rect.ue()}},rY:!0},{name:[7,8],WL:!0},{name:[7,3],rY:!0,sub:[{name:[7,9],WL:!0,p:function(p){return{p:p!=null&&p.t!=null}}},{name:[19,3,0],WL:!0,p:function(p){return{p:p!=null&&p.t!=null}}},{name:[7,4],WL:!0,p:function(p){return{p:p!=null&&p.t!=null}}},{name:[7,5],WL:!0,p:function(p){return{p:p!=null&&p.t!=null}}},{name:[7,6],WL:!0,p:function(p){return{p:p!=null&&p.t!=null}},ir:"Shift+F6"}]},{name:[7,10],p:function(p){return{p:p!=null&&p.t!=null}},rY:!0},{name:[6,6,1],p:function(p){return{p:p!=null,v_:p!=null&&p.$k()}},ir:[C.qd],rY:!0},{name:"Save Selection"}],fp:[{b:B.E._w,H:W.kd.xe(!0)},{b:B.E._w,H:W.kd.xe()},{b:B.E._w,H:{xo:"inverse"}},{b:B.E.l,H:{e:B.U.Q1,k5:"redge"}},{b:B.E.l,H:{e:B.U.Q1,k5:"magiccut"}},{b:B.E.l,H:{e:B.U.Q1,k5:"crange"}},{sub:[{b:B.E.l,H:{e:B.U.Q1,k5:"sel_border"}},{b:B.E.l,H:{e:B.U.Q1,k5:"sel_smoothness"}},{b:B.E.l,H:{e:B.U.Q1,k5:"sel_expand"}},{b:B.E.l,H:{e:B.U.Q1,k5:"sel_contract"}},{b:B.E.l,H:{e:B.U.Q1,k5:"sel_feather"}}]},{b:B.E.l,H:{e:B.U.ID,m:W.B9}},{b:B.E.A,m:W.Y7,H:{e:"qmask"}},{b:B.E._w,H:{xo:"duplicate",V5:{classID:"null",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}}}]};
if(L){var r=z.items.length-1;z.items.splice(r,0,{name:[10,16],ir:[Y,U,C.V]});z.fp.splice(r,0,{b:B.E.l,H:{e:B.U.ID,m:W.YH}})}return z};
hN.data=function(){var L=G,C=L.DM,U=L.PS,E=L.Lv,Y=function(P){return{p:P!=null&&P.C.length!=0}},z=function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].add.SoLd!=null}},r=[],p=[],T="none maxx avrg medn minn rang stdv summ vari".split(" "),k=[[22,5,0],[24,17,2],[24,3,0],[24,7,3],[24,17,3],[12,12],"Standard Deviation","Summation","Variance"];
for(var H=0;H<T.length;H++){r.push({name:k[H]});p.push({b:B.E.A,m:W.aV,H:{e:o.bH,oq:T[H]}})}return[{name:[0,0],items:[{name:[5,3],ir:[E,C,L.NM],title:[11,7],WL:!0},{name:[1,0],ir:[C,L.PC],WL:!0},{name:[1,11],WL:!0,p:function(P,b){return{p:P!=null}}},{name:["VAR0 VAR1",[1,0],[0,14]],rY:!0,sub:[{name:[1,5],WL:!0},{name:[11,0],WL:!0},{name:["PSD VAR0",[25,0]],WL:!0}]},{name:[1,1],rY:!0,sub:[{name:"PNG",ir:"Imgur.com",p:function(P,b){return{p:P!=null&&b.X3}}},{name:"JPG",ir:"Imgur.com",p:function(P,b){return{p:P!=null&&b.X3}}},{name:"PSD",ir:"Photopea.com",p:function(P,b){return{p:P!=null&&b.X3&&!P.Z6}}}]},{name:"Save ...",ir:[C,L.sx],p:function(P,b){var Q=gS.get([1,2])+(P==null?"":P.gk?" (Smart Object)":P.at?" (Google Drive)":"");
return{p:P!=null&&(P.mO!=null&&P.Pv=="psd"||P.gk!=null||P.AW!=null&&P.AW.Xh!=null||P.at!=null||b.yb.save!=null),QA:Q}}},{name:[1,3],p:function(P,b){return{p:P!=null&&!P.Z6&&b.X3}}},{name:[1,8],rY:!0,sub:function(){var P=iL.Nj(0),b=[];
for(var H=0;H<P.length;H++)b.push({name:P[H],ir:"."+P[H].toLowerCase()});b.push({name:[0,14],sub:function(){var P=iL.Nj(1),b=[];
for(var H=0;H<P.length;H++)b.push({name:P[H],ir:"."+P[H].toLowerCase()});return b}()});return b}()},{name:[1,9],WL:!0,p:function(P,b){return{p:P!=null}}},{name:"Export Color Lookup",WL:!0,p:function(P,b){return{p:P!=null}},rY:!0},{name:[1,14],WL:!0,p:function(P,b){return{p:P!=null}},rY:!0},{name:[1,10]}],fp:[{b:B.E.l,H:{e:B.U.Q1,k5:"newproject"}},{b:B.E.l,H:{e:B.U.KJ}},{b:B.E.l,H:{e:B.U.KJ,afq:!0}},{sub:[{b:B.E.l,H:{e:B.U.Q1,k5:"open_from_url"}},{b:B.E.l,H:{e:B.U.Q1,k5:"camera"}},{b:B.E.l,H:{e:B.U.Q1,k5:"templates"}}]},{sub:[{b:B.E.l,H:{e:B.U.kc,Dl:"png"}},{b:B.E.l,H:{e:B.U.kc,Dl:"jpg"}},{b:B.E.l,H:{e:B.U.kc,Dl:"psd"}}]},{b:B.E.l,H:{e:B.U.Bk}},{b:B.E.l,H:{e:B.U.TV}},{sub:function(){var P=iL.Nj(0),b=[];
for(var H=0;H<P.length;H++)b.push({b:B.E.l,H:{e:B.U.Q1,k5:"saveforweb",Dl:H}});b.push({sub:function(){var Q=iL.Nj(0).length,P=iL.Nj(1),b=[];
for(var H=0;H<P.length;H++)b.push({b:B.E.l,H:{e:B.U.Q1,k5:"saveforweb",Dl:Q+H}});return b}()});return b}()},{b:B.E.l,H:{e:B.U.Q1,k5:"eassets"}},{b:B.E.l,H:{e:B.U.Q1,k5:"exlut"}},{b:B.E.l,H:{e:B.U.Q1,k5:"finfo"}},{b:B.E.l,H:{e:B.U.Q1,k5:"script"}}]},{name:[0,1],items:[{name:[2,8]},{name:[2,0],ir:[U,C,L.fQ]},{name:[2,1],ir:[C,L.fQ],rY:!0},{name:[2,11],ir:[U,C,L.sp],rY:!0,WL:!0,p:function(P,b){return{p:fc.i7(P)&&b.Yd!=W.YH}}},{name:[5,0],ir:[C,L.Ze]},{name:[5,1],ir:[C,L.Hd]},{name:[5,7],ir:[U,C,L.Hd]},{name:[5,2],ir:[C,L.v5],p:function(P,b){return{p:B.I9()||b.rC!=null||b.wF!=null||b.a4y!=null}}},{name:[2,2],p:function(P){return{p:P!=null&&P.t!=null}},ir:"Delete",rY:!0},{name:[2,3],p:function(P){return{p:P!=null}},WL:!0,ir:[U,L.Ub]},{name:[14,9],p:function(P){return{p:P!=null}},WL:!0,rY:!0},{name:[10,48],p:function(P){return{p:P!=null&&P.qk(!1)}}},{name:[10,46],p:function(P){return{p:W.tj.mQ(P)}}},{name:[10,16],ir:[E,C,L.V]},{name:[2,4],sub:hL.Gl()},{name:[2,10,1]},{name:[2,10,0],rY:!0},{name:[12,87],sub:[{name:[12,62],p:function(P){return{p:P!=null}}},{name:[9,3],p:function(P){return{p:P!=null}}},{name:[10,31],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].add.vmsk!=null}}}]},{name:[12,79],WL:!0,ir:[C,L.bj]},{name:[1,13],WL:!0}],fp:[{b:B.E.A,m:W.n3,H:{e:"h_undoredo"}},{b:B.E.A,m:W.n3,H:{e:"h_stepfwd"}},{b:B.E.A,m:W.n3,H:{e:"h_stepbck"}},{b:B.E.l,H:{e:B.U.Q1,k5:"afw_fade"}},{b:B.E.l,H:{e:B.U.kh}},{b:B.E.l,H:{e:B.U.NC}},{b:B.E.l,H:{e:B.U.NC,hQ:!0}},{b:B.E.l,H:{e:B.U.SR}},{b:B.E._w,H:{xo:"delete"}},{b:B.E.l,H:{e:B.U.Q1,k5:"fill"}},{b:B.E.l,H:{e:B.U.Q1,k5:"stroke"}},{b:B.E.l,H:{e:B.U.ID,m:W.sK}},{b:B.E.A,m:W.Jy,H:{e:"start",o3:"rigidTransform"}},{b:B.E.l,H:{e:B.U.ID,m:W.YH}},{sub:hL.hw()},{b:B.E._w,H:{xo:"align",V5:{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:B.E.A,m:W.aV,H:{e:o.qJ}},{sub:[{b:B.E.l,H:{e:B.U._g,wm:0}},{b:B.E.l,H:{e:B.U._g,wm:1}},{b:B.E.l,H:{e:B.U._g,wm:2}}]},{b:B.E.l,H:{e:B.U.Q1,k5:"preferences"}},{b:B.E.l,H:{e:B.U.Q1,k5:"locstor"}}]},{name:[0,2],items:[{name:[3],sub:function(){var P=[];
for(var b in eh.names){P.push({name:eh.names[b],WL:j[b]!=null,ir:G.nX(eh.keys[b]),rY:eh.IE.indexOf(b)!=-1});
if(b=="selc"){P.push({name:["VAR0/VAR1",[19,6,0],[19,6,2]],WL:!0,rY:!0});P.push({name:[19,7,0],ir:[C,U,L.Uf],p:function(b){return{p:b&&b.C.length!=0&&b.N[b.C[0]].add.SoLd==null}}})}}return P}()},{name:[4,16,0],p:function(P){return{p:P!=null&&P.qk(!1)}}},{name:[4,16,1],p:function(P){return{p:P!=null&&P.qk(!1)}}},{name:[4,16,2],p:function(P){return{p:P!=null&&P.qk(!1)}},rY:!0},{name:[11,11],p:function(P){return{p:P!=null&&P.qk(!1)}},rY:!0},{name:[11,3],WL:!0,ir:[E,C,L.Hd]},{name:[11,10],WL:!0,ir:[E,C,L.mw]},{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(P){return{p:P!=null&&P.t!=null}}},{name:[11,12,0],p:function(P){return{p:P!=null}},ir:[C,L.XF]},{name:[11,12,2],p:function(P){return{p:P!=null}},rY:!0},{name:[2,12],p:function(P){return{p:P!=null&&P.qk(!1)}},WL:!0}],fp:[{sub:function(){var P=[];
for(var b in eh.names){P.push({b:B.E.A,m:W.E_,H:{e:"start",Pn:b}});if(b=="selc"){P.push({b:B.E.A,m:W.Jy,H:{e:"start",o3:"adaptCorrect"}});
P.push({b:B.E._w,H:{xo:"desaturate"}})}}return P}()},{b:B.E._w,H:{xo:"levels",V5:{classID:"Lvls",Auto:{t:"bool",v:!0}}}},{b:B.E._w,H:{xo:"levels",V5:{classID:"Lvls",AuCo:{t:"bool",v:!0}}}},{b:B.E._w,H:{xo:"levels",V5:{classID:"Lvls",autoBlackWhite:{t:"bool",v:!0},autoNeutrals:{t:"bool",v:!0}}}},{b:B.E.l,H:{e:B.U.Q1,k5:"vbitmap"}},{b:B.E.l,H:{e:B.U.Q1,k5:"csize"}},{b:B.E.l,H:{e:B.U.Q1,k5:"isize"}},{sub:[{b:B.E._w,H:W.o.Lh(!0,90)},{b:B.E._w,H:W.o.Lh(!0,-90)},{b:B.E._w,H:W.o.Lh(!0,-180)},{b:B.E._w,H:W.o.Lh(!1,"Hrzn")},{b:B.E._w,H:W.o.Lh(!1,"Vrtc")}]},{b:B.E.A,m:W.Q_,H:{e:"cropbysel",am9:0}},{b:B.E._w,H:W.yP.Fv(0)},{b:B.E._w,H:{xo:"revealAll",V5:{classID:"RvlA"}}},{b:B.E.A,m:W.E_,H:{e:"start",Pn:"aply"}}]},{name:[0,3],items:[{name:[5,3],sub:[{name:[0,3]},{name:[0,4]},{name:[6,49],ir:[C,L.qg]}]},{name:[6,0],p:Y,ir:[C,L.qg]},{name:[11,4],p:Y},{name:[5,4],p:Y,rY:!0},{name:[11,6],rY:!0,p:Y,sub:eU.uZ(!0)},{name:[6,48,1],sub:[{name:[6,48,0,0]},{name:[6,48,0,1]},{name:[6,48,0,2]}]},{name:[6,1],rY:!0,sub:eU.YJ()},{name:[6,2],sub:[{name:[6,4],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].xV()==null}}},{name:[6,5,0],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].xV()==null}}},{name:[6,5,1],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].xV()==null&&P.t!=null}}},{name:[6,5,2],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].xV()==null&&P.t!=null}}},{name:[6,5,3],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].xV()==null}},rY:!0},{name:[5,4],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].xV()!=null}}},{name:[5,8],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].xV()!=null&&P.qk(!1,!0)}}},{name:["VAR0/VAR1",[5,5],[5,6]],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].xV()!=null}}}]},{name:[6,3],sub:[{name:[6,4],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].add.vmsk==null}}},{name:[6,5,0],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].add.vmsk==null}}},{name:"Current Path",p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].add.vmsk==null}},rY:!0},{name:[5,4],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].add.vmsk!=null}}},{name:["VAR0/VAR1",[5,5],[5,6]],p:function(P){return{p:P!=null&&P.C.length!=0&&P.N[P.C[0]].add.vmsk!=null}}}]},{name:[6,6,0],ir:[E,C,L.VP],rY:!0,p:function(P){return{v_:P!=null&&P.C.length!=0&&P.N[P.C[0]].l$,p:P!=null&&P.iV(P.C[0])}}},{name:"Smart Object",rY:!0,sub:[{name:[6,7]},{name:[6,36,4],p:z,sub:r},{name:[1,0],p:z,rY:!0},{name:"Turn into JPG"}]},{name:[6,8],p:function(P){if(P==null||P.C.length==0)return{p:!1};
var b=P.N[P.C[0]];if(b.add.TySh||b.add.SoLd||b.add.SoCo||b.add.GdFl||b.add.PtFl)return{p:!0};return{p:!1}}},{name:[6,34],rY:!0,p:function(P){if(P==null||P.C.length==0)return{p:!1};
var b=P.N[P.C[0]];return{p:b.add.lmfx!=null&&!b.Jc()}}},{name:[6,9],rY:!0,ir:[C,L.VP]},{name:[6,55],rY:!0,sub:[{name:[6,56,0],ir:[U,C,L.Vt]},{name:[6,56,1],ir:[C,L.Vt]},{name:[6,56,2],ir:[C,L.Ui]},{name:[6,56,3],ir:[U,C,L.Ui]}]},{name:[6,58],sub:[{name:["Make Frames"]},{name:[18,5]}]},{name:[6,10],p:function(P){return{p:P!=null&&P.C.length==1&&P.C[0]!=0&&!P.N[P.C[0]].Jc()}},ir:[C,L.E]},{name:[6,12,0],p:function(P){return{p:P!=null&&P.C.length!=0&&(P.C.length>1||P.N[P.C[0]].Jc())}}},{name:[6,12,1]}],fp:[{sub:[{b:B.E.A,m:W.aV,H:{e:o.vY}},{b:B.E.A,m:W.aV,H:{e:o.x2}},{b:B.E.A,m:W.aV,H:{e:o.iM}}]},{b:B.E.A,m:W.aV,H:{e:o.ok}},{b:B.E.l,H:{e:B.U.Q1,k5:"duplinto"}},{b:B.E.A,m:W.aV,H:{e:o.eZ}},{sub:eU.hp(!0)},{sub:[{b:B.E.A,m:W.Hg,H:{e:"newfill",fD:0}},{b:B.E._w,H:W.gl.vG(1)},{b:B.E._w,H:W.gl.vG(2)}]},{sub:eU.DD()},{sub:[{b:B.E.A,m:W.aV,H:{e:o.KU,AT:"RvlA"}},{b:B.E.A,m:W.aV,H:{e:o.KU,AT:"HdAl"}},{b:B.E.A,m:W.aV,H:{e:o.KU,AT:"RvlS"}},{b:B.E.A,m:W.aV,H:{e:o.KU,AT:"HdSl"}},{b:B.E.A,m:W.aV,H:{e:o.KU,AT:"Trns"}},{b:B.E.A,m:W.aV,H:{e:o.LT}},{b:B.E.A,m:W.aV,H:{e:o.MH}},{b:B.E.A,m:W.aV,H:{e:o.xd}}]},{sub:[{b:B.E.A,m:W.aV,H:{e:o.CU,ahi:!1}},{b:B.E.A,m:W.aV,H:{e:o.CU,ahi:!0}},{b:B.E.A,m:W.aV,H:{e:o.CU,aeU:!0}},{b:B.E.A,m:W.aV,H:{e:o.Xl}},{b:B.E.A,m:W.aV,H:{e:o.qN}}]},{b:B.E.A,m:W.aV,H:{e:o.VY}},{sub:[{b:B.E._w,H:{xo:"newPlacedLayer"}},{sub:p},{b:B.E._w,H:{xo:"placedLayerEditContents",V5:{classID:"placedLayerEditContents"}}},{b:B.E.A,m:W.aV,H:{e:o.ah}}]},{b:B.E._w,H:{xo:"rasterizeLayer",V5:{classID:"rasterizeLayer",null:hy.K1("Lyr",!0)}}},{b:B.E.A,m:W.aV,H:{e:o.P5}},{b:B.E.A,m:W.aV,H:{e:o.fe}},{sub:[{b:B.E.A,m:W.aV,H:{e:o.Ls,ev:0}},{b:B.E.A,m:W.aV,H:{e:o.Ls,ev:1}},{b:B.E.A,m:W.aV,H:{e:o.Ls,ev:2}},{b:B.E.A,m:W.aV,H:{e:o.Ls,ev:3}}]},{sub:[{b:B.E.A,m:W.aV,H:{e:o.VE,ev:"makeframes"}},{b:B.E.A,m:W.aV,H:{e:o.VE,ev:"merge"}}]},{b:B.E.A,m:W.aV,H:{e:o.Zt}},{b:B.E.A,m:W.aV,H:{e:o.NX}},{b:B.E._w,H:{xo:"flattenImage"}}]},hN.fO(!1),function(){var P={name:[0,6],items:[{name:[24,18,4],ir:[E,C,L.sp],rY:!0}],fp:[{b:B.E.A,m:W.Jy,H:{e:"applylast"}}]};
for(var H=0;H<hi.v0.length;H++){var b=hi.v0[H];if(b.o$!=null){P.items.push({name:hi.names[b.o$],WL:!0,rY:b.rY});
P.fp.push({b:B.E.A,m:W.Jy,H:{e:"start",o3:b.o$}});continue}var Q={name:b.iF,sub:[]};P.items.push(Q);
var K={sub:[]};P.fp.push(K);for(var h=0;h<b.yn.length;h++){var x={name:hi.names[b.yn[h]],WL:hi.Q4(b.yn[h])!=null};
Q.sub.push(x);var O={b:B.E.A,m:W.Jy,H:{e:"start",o3:b.yn[h]}};K.sub.push(O)}}return P}(),{name:[0,7],items:[{name:[8,0],ir:[C,L.c1]},{name:[8,1],ir:[C,L.t4]},{name:[20,3],ir:[C,L.sF]},{name:[20,2],ir:[C,L.gL],rY:!0},{name:"Extras",ir:[C,L.Pt],p:function(P,b){return{v_:b.Fg}}},{name:[8,12],rY:!0,sub:[{name:[17,2],p:function(P,b){return{p:b.Fg,v_:b.qA.Kf}}},{name:[8,9],p:function(P,b){return{p:b.Fg,v_:b.qA.Jd}}},{name:[8,2],p:function(P,b){return{p:b.Fg,v_:b.qA.Pr}},ir:[C,L.cR]},{name:[8,4],p:function(P,b){return{p:b.Fg,v_:b.qA.SY}},ir:[C,L.sU]},{name:[8,8],p:function(P,b){return{p:b.Fg,v_:b.qA.Tf}}},{name:[8,11,0],p:function(P,b){return{p:b.Fg,v_:b.qA.Oy}}}]},{name:[8,3],p:function(P,b){return{v_:b.Wr}},ir:[C,L.Du],rY:!0},{name:[8,5],p:function(P,b){return{v_:b.Y2}}},{name:[8,6],rY:!0,sub:[{name:[8,2],p:function(P,b){return{v_:b.j6[0]}}},{name:[8,4],p:function(P,b){return{v_:b.j6[1]}}},{name:[9,1],p:function(P,b){return{v_:b.j6[2]}}},{name:[8,11,0],p:function(P,b){return{v_:b.j6[3]}}},{name:[8,7],p:function(P,b){return{v_:b.j6[4]}}}]},{name:[11,15,0],p:function(P,b){return{p:P!=null}}},{name:[11,14],p:function(P,b){return{p:P!=null}},WL:!0},{name:[11,15,1],p:function(P,b){return{p:P!=null&&P.C.length!=0}}}],fp:[{b:B.E.A,m:W.tJ,H:{e:"zoom",AI:!0}},{b:B.E.A,m:W.tJ,H:{e:"zoom",AI:!1}},{b:B.E.A,m:W.tJ,H:{e:"adapt",G:"fitscr"}},{b:B.E.A,m:W.tJ,H:{e:"adapt",G:"pixel"}},{b:B.E.l,H:{e:B.U.MP,wm:c_.dA}},{sub:[{b:B.E.l,H:{e:B.U.MP,wm:c_.Df}},{b:B.E.l,H:{e:B.U.MP,wm:c_.ty}},{b:B.E.l,H:{e:B.U.MP,wm:c_.ai}},{b:B.E.l,H:{e:B.U.MP,wm:c_.Kh}},{b:B.E.l,H:{e:B.U.MP,wm:c_.nH}},{b:B.E.l,H:{e:B.U.MP,wm:c_.Ip}}]},{b:B.E.l,H:{e:B.U.MP,wm:c_.zk}},{b:B.E.l,H:{e:B.U.MP,wm:c_.Nf}},{sub:[{b:B.E.l,H:{e:B.U.MP,wm:c_.s5,to:0}},{b:B.E.l,H:{e:B.U.MP,wm:c_.s5,to:1}},{b:B.E.l,H:{e:B.U.MP,wm:c_.s5,to:2}},{b:B.E.l,H:{e:B.U.MP,wm:c_.s5,to:3}},{b:B.E.l,H:{e:B.U.MP,wm:c_.s5,to:4}}]},{b:B.E.A,m:W.Ml,H:{e:"gids",Ee:[[],[]]}},{b:B.E.l,H:{e:B.U.Q1,k5:"addguides"}},{b:B.E.A,m:W.Ml,H:{e:"gidsFromLayer"}}]},function(){var P={name:[0,8],items:[{name:[0,14],rY:!0,sub:[]}],fp:[{sub:[]}]};
for(var H=0;H<ey.PV.length;H++){var b=ey.PV[H];(b.XC?P.items[0].sub:P.items).push({name:b.f0.name});
(b.XC?P.fp[0].sub:P.fp).push({b:B.E.l,H:{e:B.U.Cz,k5:b.f0.mJ}})}return P}(),function(){var P={name:[0,14],items:[],fp:[]},b={name:[0,9],sub:[]};
P.items.push(b);var Q={sub:[]};P.fp.push(Q);var K=gS.ajV();for(var H=0;H<K.length;H++){var h=K[H],x=h.code,O=gS.Z_(x);
b.sub.push({name:h.name,ir:x,p:function(y,v){return{v_:this.ir==gS.v4()}}});Q.sub.push({b:B.E.l,H:{e:B.U.MP,wm:c_.B7,lang:O}})}b.sub.push({name:[0,12]});
Q.sub.push({b:B.E.l,H:{e:B.U.lR,link:"https://www.photopea.com/translate/"}});var b={name:[0,15],sub:[]};
P.items.push(b);var Q={sub:[]};P.fp.push(Q);for(var H=0;H<c5.cK.length;H++){b.sub.push({name:c5.cK[H].name,p:function(y,v){return{v_:this.name==c5.cK[v.WT].name}}});
Q.sub.push({b:B.E.l,H:{e:B.U.MP,wm:c_.Un,WT:H}})}P.items.push({name:[0,17,6],p:function(y,v){return{p:v.rz!=null}}});
P.fp.push({b:B.E.l,H:{e:B.U.Tl}});P.items.push({name:[11,13]});P.fp.push({b:B.E.l,H:{e:B.U.Q1,k5:"shortcuts"}});
P.items.push({name:[0,16],p:function(y){return{v_:t.i8,p:t.n5}}});P.fp.push({b:B.E.l,H:{e:B.U.Xy}});
return P}()]}();function ga(){gG.call(this);this.j=B.w("div","");this.z6=0;this.wB=0;this.OY=null;this.A$=B.w("div","");
this.A$.setAttribute("style","width:200em; height:100em; position:absolute;");this.HY=[];this.x7=[];
this.VA={}}ga.prototype=new gG;ga.prototype.yT=function(L){var C=Date.now(),U=[];if(L=="-")U=[new aw,new cT,new dG,new aU,new eJ,new cC,new ek,new c2,new fE,new h3,new iK,new eS,new el,new aH,new et,new eU,new cp,new ed,new bM,new hv,new bC,new ab,new eY,new db,new ho,new g1,new h7(0),new h7(1),new d9,new dJ,new dV,new gA,new dA,new d$,new ev("border",[7,9],"px"),new ev("smoothness",[19,3,0],"px"),new ev("expand",[7,4],"px"),new ev("contract",[7,5],"px"),new ev("feather",[7,6],"px"),new gm(0,"namewindow",[12,48]),new gm(1,"cornerradius",[12,94,0],"px",!0),new gm(1,"scaleeffects","Scale Effects","%",!0),new gm(1,"doczoom","Zoom","%",!0)];
else U=[new fc(L.slice(4))];this.ac_(U);this.VA[L]=!0};ga.prototype.ac_=function(L){var C=this.OY;for(var H=0;
H<L.length;H++){var U=L[H];U.parent=this;this.x7.push(U);this.Ym(U);U.f();if(C)U.hU(C,c_.oI);U.k(B.E.Id,this.om,this)}};
ga.prototype.AU=function(L,C){this.z6=L;this.wB=C;for(var H=0;H<this.x7.length;H++)this.Ym(this.x7[H])};
ga.prototype.f=function(){for(var H=0;H<this.x7.length;H++)this.x7[H].f()};ga.prototype.pF=function(){return this.HY.length==0?null:this.HY[this.HY.length-1]};
ga.prototype.sH=function(){for(var H=0;H<this.HY.length;H++)if(this.HY[H].sH())return!0;return!1};ga.prototype.a7R=function(L,C,U,E,Y){var z=L.startsWith("afw_"),r=null;
if(!z&&!this.VA["-"])this.yT("-");if(z&&!this.VA[L])this.yT(L);if(typeof L=="object"){r=L;if(!r.T7(B.E.Id,this.om))r.k(B.E.Id,this.om,this);
r.parent=this}else for(var H=0;H<this.x7.length;H++)if(this.x7[H].id==L)r=this.x7[H];if(this.sH()&&r.sH()){alert("Finish the current action first");
return}if(!r.Kc(C))return;if(this.HY.indexOf(r)!=-1){if(L=="colorpicker")r.jn(C,U,E,Y);return}var p=this.HY.length-1;
if(p>=0)B.QS(this.HY[p].j,"wdisabled");this.j.appendChild(r.j);this.HY.push(r);this.Ym(r);r.jn(C,U,E,Y)};
ga.prototype.Ym=function(L){var C=this.z6,U=this.wB,E=L.EO(C,U),Y;if(E!=null){Y=E}else{E=new hZ(0,0);
Y=L.anS();if(Y==null){var z=this.HY.indexOf(L)+1;if(C<450||U<450)Y=new hZ(0,0);else Y=new hZ(z*150,z*150)}}L.j.style.left=Y.x+"px";
L.j.style.top=this.j.offsetTop+Y.y+"px";L.AU(this.z6-E.x*2,this.wB-E.y*2-34)};ga.prototype.hU=function(L,C){this.OY=L;
for(var H=0;H<this.x7.length;H++)this.x7[H].hU(L,C)};ga.prototype.om=function(L){var C=this.HY.pop();
this.j.removeChild(C.j);var U=this.HY.length-1;if(U>=0)B.gy(this.HY[U].j,"wdisabled");if(this.A$.parentNode==this.j)this.j.removeChild(this.A$)};
window.onload=function(){var L=new gk;document.body.appendChild(L.j)}}())